{"version":3,"sources":["PNotifyCompat.js"],"names":["translateOptions","options","module","moduleName","newOptions","PNotifyCompat","prototype","translateName","badName","goodName","underscoreIndex","indexOf","slice","toUpperCase","name","hasOwnProperty","addClass","addclass","cornerClass","cornerclass","textTrusted","textEscape","titleTrusted","titleEscape","styling","icons","stack","overlay_close","overlayClose","modules","Animate","animate","Buttons","buttons","classes","Confirm","confirm","Desktop","desktop","History","history","Mobile","mobile","NonBlock","nonblock","Reference","reference","Callbacks","beforeInit","afterInit","beforeOpen","afterOpen","beforeClose","afterClose","before_init","target","document","body","data","_get","get","option","undefined","window","jQuery","refs","elem","call","on","e","trigger","value","getCallbacks","text_escape","title_escape","reload","removeAll","removeStack","positionAll","permission","showLast"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,MAAMA,mBAAmB,SAAnBA,gBAAmB,CAACC,OAAD,EAAUC,MAAV,EAAkBC,UAAlB,EAAiC;AACxD;AACA,QAAMC,aAAaF,SAAS,SAAc,EAAd,EAAkBC,aAAaE,cAAcC,SAAd,CAAwBL,OAAxB,CAAgCE,UAAhC,CAAb,GAA2D,EAA7E,EAAiFF,OAAjF,CAAT,GAAqG,SAAc,EAAd,EAAkBI,cAAcC,SAAd,CAAwBL,OAA1C,EAAmDA,OAAnD,CAAxH;AACA,QAAMM,gBAAgB,SAAhBA,aAAgB,CAACC,OAAD,EAAa;AACjC,UAAIC,WAAWD,OAAf;AAAA,UAAwBE,wBAAxB;AACA,aAAO,CAACA,kBAAkBD,SAASE,OAAT,CAAiB,GAAjB,CAAnB,MAA8C,CAAC,CAAtD,EAAyD;AACvDF,mBAAWA,SAASG,KAAT,CAAe,CAAf,EAAkBF,eAAlB,IAAqCD,SAASG,KAAT,CAAeF,kBAAkB,CAAjC,EAAoCA,kBAAkB,CAAtD,EA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../","sourcesContent":["import PNotify from \"./PNotify.html\";\n\n// Translate v3 options to v4 options.\nconst translateOptions = (options, module, moduleName) => {\n // Merge the classic default options.\n const newOptions = module ? Object.assign({}, moduleName ? PNotifyCompat.prototype.options[moduleName] : {}, options) : Object.assign({}, PNotifyCompat.prototype.options, options);\n const translateName = (badName) => {\n let goodName = badName, underscoreIndex;\n while ((underscoreIndex = goodName.indexOf('_')) !== -1) {\n goodName = goodName.slice(0, underscoreIndex) + goodName.slice(underscoreIndex + 1, underscoreIndex + 2).toUpperCase() + goodName.slice(underscoreIndex + 2);\n }\n return goodName;\n };\n\n // Translate all options to the new style.\n for (let name in newOptions) {\n if (newOptions.hasOwnProperty(name) && name.indexOf('_') !== -1) {\n const goodName = translateName(name);\n newOptions[goodName] = newOptions[name];\n delete newOptions[name];\n }\n }\n\n if (!module) {\n // Options that have changed.\n if (newOptions.hasOwnProperty('addclass')) {\n newOptions.addClass = newOptions.addclass;\n delete newOptions.addclass;\n }\n if (newOptions.hasOwnProperty('cornerclass')) {\n newOptions.cornerClass = newOptions.cornerclass;\n delete newOptions.cornerClass;\n }\n if (newOptions.hasOwnProperty('textEscape')) {\n newOptions.textTrusted = !newOptions.textEscape;\n delete newOptions.textEscape;\n }\n if (newOptions.hasOwnProperty('titleEscape')) {\n newOptions.titleTrusted = !newOptions.titleEscape;\n delete newOptions.titleEscape;\n }\n\n // Styling and icons.\n if (newOptions.hasOwnProperty('styling')) {\n if (newOptions.styling === 'bootstrap3') {\n newOptions.icons = 'bootstrap3';\n } else if (newOptions.styling === 'fontawesome') {\n newOptions.styling = 'bootstrap3';\n newOptions.icons = 'fontawesome4';\n }\n }\n\n // Stacks.\n if (newOptions.hasOwnProperty('stack')) {\n if (newOptions.stack.overlay_close) {\n newOptions.stack.overlayClose = newOptions.stack.overlay_close;\n }\n }\n\n // Translate module options.\n newOptions.modules = {};\n if (newOptions.hasOwnProperty('animate')) {\n newOptions.modules.Animate = translateOptions(newOptions.animate, true, 'animate');\n delete newOptions.animate;\n }\n if (newOptions.hasOwnProperty('buttons')) {\n newOptions.modules.Buttons = translateOptions(newOptions.buttons, true, 'buttons');\n delete newOptions.buttons;\n if (newOptions.modules.Buttons.classes) {\n newOptions.modules.Buttons.classes = translateOptions(newOptions.modules.Buttons.classes, true);\n }\n }\n if (newOptions.hasOwnProperty('confirm')) {\n newOptions.modules.Confirm = translateOptions(newOptions.confirm, true, 'confirm');\n delete newOptions.confirm;\n }\n if (newOptions.hasOwnProperty('desktop')) {\n newOptions.modules.Desktop = translateOptions(newOptions.desktop, true, 'desktop');\n delete newOptions.desktop;\n }\n if (newOptions.hasOwnProperty('history')) {\n newOptions.modules.History = translateOptions(newOptions.history, true, 'history');\n delete newOptions.history;\n }\n if (newOptions.hasOwnProperty('mobile')) {\n newOptions.modules.Mobile = translateOptions(newOptions.mobile, true, 'mobile');\n delete newOptions.mobile;\n }\n if (newOptions.hasOwnProperty('nonblock')) {\n newOptions.modules.NonBlock = translateOptions(newOptions.nonblock, true, 'nonblock');\n delete newOptions.nonblock;\n }\n if (newOptions.hasOwnProperty('reference')) {\n newOptions.modules.Reference = translateOptions(newOptions.reference, true, 'reference');\n delete newOptions.reference;\n }\n if (newOptions.hasOwnProperty('beforeInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeInit = newOptions.beforeInit;\n delete newOptions.beforeInit;\n }\n if (newOptions.hasOwnProperty('afterInit')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterInit = newOptions.afterInit;\n delete newOptions.afterInit;\n }\n if (newOptions.hasOwnProperty('beforeOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeOpen = newOptions.beforeOpen;\n delete newOptions.beforeOpen;\n }\n if (newOptions.hasOwnProperty('afterOpen')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterOpen = newOptions.afterOpen;\n delete newOptions.afterOpen;\n }\n if (newOptions.hasOwnProperty('beforeClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.beforeClose = newOptions.beforeClose;\n delete newOptions.beforeClose;\n }\n if (newOptions.hasOwnProperty('afterClose')) {\n if (!newOptions.modules.Callbacks) {\n newOptions.modules.Callbacks = {};\n }\n newOptions.modules.Callbacks.afterClose = newOptions.afterClose;\n delete newOptions.afterClose;\n }\n }\n\n return newOptions;\n}\n\n// The compatibility class.\nclass PNotifyCompat extends PNotify {\n constructor(options) {\n if (typeof options !== \"object\") {\n options = {\"text\": options};\n }\n\n // These need to be called directly, since we're not using PNotify.alert().\n if (PNotify.modules.Callbacks && options.before_init) {\n options.before_init(options);\n }\n\n options = translateOptions(options);\n\n super({target: document.body, data: options});\n\n // Override the get function to retunr the element like it did in v3.\n const _get = this.get;\n this.get = function(option) {\n if (option === undefined) {\n return Object.assign(window.jQuery ? window.jQuery(this.refs.elem) : this.refs.elem, _get.call(this));\n }\n return _get.call(this, option);\n };\n\n // Confirm module events.\n this.on('pnotify.confirm', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.confirm', [this, e.value]);\n }\n });\n this.on('pnotify.cancel', (e) => {\n if (window.jQuery) {\n window.jQuery(this.refs.elem).trigger('pnotify.cancel', this);\n }\n });\n\n if (PNotify.modules.Callbacks) {\n PNotify.modules.Callbacks.getCallbacks(this, null, 'afterInit')(this);\n }\n }\n\n update(options) {\n options = translateOptions(options);\n return super.update(options);\n }\n}\n\n// Lets you change defaults the old way.\nPNotifyCompat.prototype.options = {\n text_escape: false,\n title_escape: false\n};\n\n// Forward static functions.\nPNotifyCompat.reload = () => PNotifyCompat;\nPNotifyCompat.removeAll = () => PNotify.removeAll();\nPNotifyCompat.removeStack = (stack) => PNotify.removeStack(stack);\nPNotifyCompat.positionAll = (animate) => PNotify.positionAll(animate);\n\n// Desktop module permission method.\nPNotifyCompat.desktop = {\n permission: () => {\n PNotify.modules.Desktop.permission();\n }\n};\n\n// Old style showLast() in History module.\nif (window.jQuery) {\n window.jQuery(() => {\n window.jQuery(document.body).on('pnotify.history-last', function() {\n PNotify.modules.History.showLast();\n });\n });\n}\n\nexport default PNotifyCompat;\n"]}