|
1
|
|
-(()=>{var t={9455(t,e,o){"use strict";o.d(e,{A:()=>r});var s=o(1601),n=o.n(s),a=o(6314),i=o.n(a)()(n());i.push([t.id,"/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n\n.toastify {\n padding: 12px 20px;\n color: #ffffff;\n display: inline-block;\n box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n max-width: calc(50% - 20px);\n z-index: 2147483647;\n}\n\n.toastify.on {\n opacity: 1;\n}\n\n.toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n}\n\n.toastify-right {\n right: 15px;\n}\n\n.toastify-left {\n left: 15px;\n}\n\n.toastify-top {\n top: -150px;\n}\n\n.toastify-bottom {\n bottom: -150px;\n}\n\n.toastify-rounded {\n border-radius: 25px;\n}\n\n.toastify-avatar {\n width: 1.5em;\n height: 1.5em;\n margin: -7px 5px;\n border-radius: 2px;\n}\n\n.toastify-center {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n}\n\n@media only screen and (max-width: 360px) {\n .toastify-right, .toastify-left {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n }\n}\n",""]);const r=i},6314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",s=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),s&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),s&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,s,n,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(s)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(i[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);s&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),e.push(d))}},e}},1601(t){"use strict";t.exports=function(t){return t[1]}},5072(t){"use strict";var e=[];function o(t){for(var o=-1,s=0;s<e.length;s++)if(e[s].identifier===t){o=s;break}return o}function s(t,s){for(var a={},i=[],r=0;r<t.length;r++){var l=t[r],c=s.base?l[0]+s.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=o(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(h);else{var f=n(h,s);s.byIndex=r,e.splice(r,0,{identifier:u,updater:f,references:1})}i.push(u)}return i}function n(t,e){var o=e.domAPI(e);return o.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,n){var a=s(t=t||[],n=n||{});return function(t){t=t||[];for(var i=0;i<a.length;i++){var r=o(a[i]);e[r].references--}for(var l=s(t,n),c=0;c<a.length;c++){var d=o(a[c]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}a=l}}},7659(t){"use strict";var e={};t.exports=function(t,o){var s=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(o)}},540(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056(t,e,o){"use strict";t.exports=function(t){var e=o.nc;e&&t.setAttribute("nonce",e)}},7825(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(o){!function(t,e,o){var s="";o.supports&&(s+="@supports (".concat(o.supports,") {")),o.media&&(s+="@media ".concat(o.media," {"));var n=void 0!==o.layer;n&&(s+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),s+=o.css,n&&(s+="}"),o.media&&(s+="}"),o.supports&&(s+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(s,t,e.options)}(e,t,o)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},7736(t){var e;e=function(t){var e=function(t){return new e.lib.init(t)};function o(t,e){return e.offset[t]?isNaN(e.offset[t])?e.offset[t]:e.offset[t]+"px":"0px"}function s(t,e){return!(!t||"string"!=typeof e||!(t.className&&t.className.trim().split(/\s+/gi).indexOf(e)>-1))}return e.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},e.lib=e.prototype={toastify:"1.12.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||e.defaults.text,this.options.node=t.node||e.defaults.node,this.options.duration=0===t.duration?0:t.duration||e.defaults.duration,this.options.selector=t.selector||e.defaults.selector,this.options.callback=t.callback||e.defaults.callback,this.options.destination=t.destination||e.defaults.destination,this.options.newWindow=t.newWindow||e.defaults.newWindow,this.options.close=t.close||e.defaults.close,this.options.gravity="bottom"===t.gravity?"toastify-bottom":e.defaults.gravity,this.options.positionLeft=t.positionLeft||e.defaults.positionLeft,this.options.position=t.position||e.defaults.position,this.options.backgroundColor=t.backgroundColor||e.defaults.backgroundColor,this.options.avatar=t.avatar||e.defaults.avatar,this.options.className=t.className||e.defaults.className,this.options.stopOnFocus=void 0===t.stopOnFocus?e.defaults.stopOnFocus:t.stopOnFocus,this.options.onClick=t.onClick||e.defaults.onClick,this.options.offset=t.offset||e.defaults.offset,this.options.escapeMarkup=void 0!==t.escapeMarkup?t.escapeMarkup:e.defaults.escapeMarkup,this.options.ariaLive=t.ariaLive||e.defaults.ariaLive,this.options.style=t.style||e.defaults.style,t.backgroundColor&&(this.options.style.background=t.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");for(var e in t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)t.style[e]=this.options.style[e];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,""!==this.options.avatar){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(s):t.insertAdjacentElement("afterbegin",s)}if(!0===this.options.close){var n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){var i=this;t.addEventListener("mouseover",function(e){window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",function(){t.timeOutValue=window.setTimeout(function(){i.removeElement(t)},i.options.duration)})}if(void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var r=o("x",this.options),l=o("y",this.options),c="left"==this.options.position?r:"-"+r,d="toastify-top"==this.options.gravity?l:"-"+l;t.style.transform="translate("+c+","+d+")"}return t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var o=e.defaults.oldestFirst?t.firstChild:t.lastChild;return t.insertBefore(this.toastElement,o),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},o={top:15,bottom:15},n={top:15,bottom:15},a=document.getElementsByClassName("toastify"),i=0;i<a.length;i++){t=!0===s(a[i],"toastify-top")?"toastify-top":"toastify-bottom";var r=a[i].offsetHeight;t=t.substr(9,t.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[i].style[t]=n[t]+"px",n[t]+=r+15):!0===s(a[i],"toastify-left")?(a[i].style[t]=e[t]+"px",e[t]+=r+15):(a[i].style[t]=o[t]+"px",o[t]+=r+15)}return this},e.lib.init.prototype=e.lib,e},t.exports?t.exports=e():this.Toastify=e()}},e={};function o(s){var n=e[s];if(void 0!==n)return n.exports;var a=e[s]={id:s,exports:{}};return t[s].call(a.exports,a,a.exports,o),a.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.nc=void 0,(()=>{"use strict";var t=o(7736),e=o.n(t),s=o(5072),n=o.n(s),a=o(7825),i=o.n(a),r=o(7659),l=o.n(r),c=o(5056),d=o.n(c),u=o(540),p=o.n(u),h=o(1113),f=o.n(h),m=o(9455),v={};v.styleTagTransform=f(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=p(),n()(m.A,v),m.A&&m.A.locals&&m.A.locals;const y={text:"",gravity:lpData.toast.gravity,position:lpData.toast.position,className:`${lpData.toast.classPrefix}`,close:1==lpData.toast.close,stopOnFocus:1==lpData.toast.stopOnFocus,duration:lpData.toast.duration},g=(t,o="success",s)=>{let n=y;s&&(n={...n,...s}),new(e())({...n,text:t,className:`${lpData.toast.classPrefix} ${o}`}).showToast()},b="loading",w=(t,e)=>{t&&(e?t.classList.add(b):t.classList.remove(b))},A=(t,e)=>{document.addEventListener(t,o=>{const s=o.target;let n={e:o,target:s};e.forEach(e=>{n={...n,...e},e.conditionBeforeCallBack&&!0!==e.conditionBeforeCallBack(n)||"keydown"===t&&e.checkIsEventEnter&&"Enter"!==o.key||s.closest(e.selector)&&(e.class?e.class[e.callBack](n):e.callBack(n))})})};window.lpToggleEnableInit=0,window.lpFullScreenViewInit=0;class C{constructor(){this.elAddonsPage=null,this.urlParams=new URLSearchParams(window.location.search)}static selectors={elAddonsPage:".lp-addons-page",elLPAddons:"#lp-addons",elAddonItem:".lp-addon-item",elBtnAction:".btn-addon-action",elNavTab:".nav-tab",elNavTabActive:".nav-tab.nav-tab-active",elCategory:".lp-addons-category",elCategoryActive:".lp-addons-category.active",elSearchInput:"#lp-search-addons__input",elItemPurchase:".lp-addon-item__purchase",elPurchaseInstall:".purchase-install",elPurchaseCode:".enter-purchase-code",elLicense:".lp-addon-license"};init(){((t,e)=>{const o=document.querySelector(t);o?e():new MutationObserver((o,s)=>{const n=document.querySelector(t);n&&(s.disconnect(),e())}).observe(document.documentElement,{childList:!0,subtree:!0})})(C.selectors.elLPAddons,()=>{this.elAddonsPage=document.querySelector(C.selectors.elAddonsPage),this.elAddonsPage&&(this.filterAddons(),this.events())})}events(){A("click",[{selector:C.selectors.elBtnAction,class:this,callBack:this.handleBtnAction.name},{selector:C.selectors.elNavTab,class:this,callBack:this.handleTabClick.name},{selector:C.selectors.elCategory,class:this,callBack:this.handleCategoryClick.name},{selector:C.selectors.elPurchaseCode,class:this,callBack:this.handlePurchaseCodeClick.name}]),A("input",[{selector:C.selectors.elSearchInput,class:this,callBack:this.handleSearchInput.name},{selector:C.selectors.elPurchaseCode,class:this,callBack:this.handlePurchaseCodeInput.name}])}getAddonData(t){try{return JSON.parse(t.dataset.addon)}catch(t){return null}}addonsAction(t){const{action:e,addon:o,el:s,elAddonItem:n}=t,a=C.selectors,i={action:"addon_action",action_type:e,addon:o,purchase_code:t.purchase_code||"",id_url:"addon-action"};window.lpAJAXG.fetchAJAX(i,{success:t=>{const{status:o,message:i,data:r}=t;if(g(i,o),"success"===o&&r?.html)n.outerHTML=r.html;else if("install"===e||"update-purchase"===e){const t=s.closest(a.elPurchaseInstall),e=t?t.querySelector(a.elPurchaseCode):null;e&&(e.classList.add("is-error"),e.setAttribute("aria-invalid","true"))}w(s,0)},error:t=>{w(s,0),g(`error js: ${t}`,"error")}})}filterAddons(){const t=C.selectors,e=this.elAddonsPage.querySelectorAll(t.elAddonItem);this.updateTabCounts(e);const o=this.elAddonsPage.querySelector(t.elNavTabActive),s=this.elAddonsPage.querySelector(t.elCategoryActive),n=this.elAddonsPage.querySelector(t.elSearchInput),a=o?o.dataset.tab:"all",i=s?s.dataset.category:"all",r=(n?n.value.trim().toLowerCase():"").split(/\s+/).filter(Boolean);this.updateCategoryCounts(e,a),e.forEach(t=>{const e=JSON.parse(t.dataset.addon),o=t.querySelector("a").textContent.toLowerCase()+e.description,s=(t.dataset.category||"").split(/\s+/).filter(Boolean),n="all"===a||t.classList.contains(a),l="all"===i||s.includes(i),c=r.every(t=>o.includes(t)),d=n&&l&&c;t.classList.toggle("hide",!n),t.classList.toggle("search-not-found",!d)})}updateCategoryCounts(t,e){const o={all:0};t.forEach(t=>{("all"===e||t.classList.contains(e))&&(o.all++,(t.dataset.category||"").split(/\s+/).filter(Boolean).forEach(t=>{o[t]=(o[t]||0)+1}))}),this.elAddonsPage.querySelectorAll(C.selectors.elCategory).forEach(t=>{const e=o[t.dataset.category]||0,s=t.querySelector(".lp-addons-category__count");s&&(s.textContent=`(${e})`),t.hidden="all"!==t.dataset.category&&0===e})}updateTabCounts(t){this.elAddonsPage.querySelectorAll(C.selectors.elNavTab).forEach(e=>{const o=e.dataset.tab,s=Array.from(t).filter(t=>"all"===o||t.classList.contains(o)).length,n=e.querySelector("span");n&&(n.textContent=s)})}handlePurchaseCodeClick(t){const{target:e}=t;if(!e.value.startsWith("***"))return;e.value="";const o=e.closest(C.selectors.elItemPurchase);o&&(o.querySelector("input[name=purchase-code]").value="")}handleBtnAction(t){const{e,target:o}=t,s=C.selectors,n=o.closest(s.elBtnAction);if("A"===n.tagName)return;e.preventDefault(),w(n,1);let a="";const i=n.closest(s.elAddonItem),r=this.getAddonData(i),l=n.dataset.action,c=i.querySelector(s.elItemPurchase);if(r){if("purchase"===l||"update-purchase-code"===l){const t=c.querySelector(s.elPurchaseInstall),e=t.querySelector(s.elPurchaseCode),o=t.querySelector(".lp-addon-purchase__submit");if("update-purchase-code"===l){const t=i.querySelector(s.elLicense);e.value=t&&t.dataset.purchaseCodeMasked||"",o.dataset.action="update-purchase"}else e.value="",o.dataset.action="install";return e.classList.remove("is-error"),e.removeAttribute("aria-invalid"),c.querySelector("input[name=purchase-code]").value="",t.style.display="flex",c.style.display="block",e.focus(),void w(n,0)}if("cancel"===l)return c.style.display="none",c.querySelector(s.elPurchaseInstall).style.display="none",void w(n,0);c&&(a=c.querySelector("input[name=purchase-code]").value),this.addonsAction({purchase_code:a,action:l,addon:r,el:n,elAddonItem:i})}else w(n,0)}handleTabClick(t){const{e,target:o}=t,s=C.selectors,n=o.closest(s.elNavTab);e.preventDefault(),this.elAddonsPage.querySelectorAll(s.elNavTab).forEach(t=>{t.classList.remove("nav-tab-active"),t.setAttribute("aria-pressed","false")}),n.classList.add("nav-tab-active"),n.setAttribute("aria-pressed","true");const a=n.dataset.tab;this.elAddonsPage.querySelector(s.elSearchInput).value="",this.elAddonsPage.querySelectorAll(s.elCategory).forEach(t=>{const e="all"===t.dataset.category;t.classList.toggle("active",e),t.setAttribute("aria-pressed",e?"true":"false")}),this.urlParams.set("tab",a),window.history.pushState({},"",`${window.location.pathname}?${this.urlParams.toString()}`),this.filterAddons()}handleCategoryClick(t){const{e,target:o}=t,s=o.closest(C.selectors.elCategory);e.preventDefault(),this.elAddonsPage.querySelectorAll(C.selectors.elCategory).forEach(t=>{const e=t===s;t.classList.toggle("active",e),t.setAttribute("aria-pressed",e?"true":"false")}),this.filterAddons()}handleSearchInput(){this.filterAddons()}handlePurchaseCodeInput(t){const{e,target:o}=t;e.preventDefault(),o.classList.remove("is-error"),o.removeAttribute("aria-invalid");const s=o.value,n=o.closest(C.selectors.elItemPurchase);n&&(n.querySelector("input[name=purchase-code]").value=s)}}(new C).init()})()})(); |
|
1
|
+(()=>{var e={6184(e,t,s){"use strict";var o=s(7736),a=s.n(o),n=s.cjs(function(e,t){var s=[];function o(e){for(var t=-1,o=0;o<s.length;o++)if(s[o].identifier===e){t=o;break}return t}function a(e,t){for(var a={},i=[],r=0;r<e.length;r++){var l=e[r],c=t.base?l[0]+t.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=o(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)s[p].references++,s[p].updater(h);else{var f=n(h,t);t.byIndex=r,s.splice(r,0,{identifier:u,updater:f,references:1})}i.push(u)}return i}function n(e,t){var s=t.domAPI(t);return s.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;s.update(e=t)}else s.remove()}}e.exports=function(e,t){var n=a(e=e||[],t=t||{});return function(e){e=e||[];for(var i=0;i<n.length;i++){var r=o(n[i]);s[r].references--}for(var l=a(e,t),c=0;c<n.length;c++){var d=o(n[c]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}n=l}}}),i=s.n(n),r=s.cjs(function(e,t){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(s){!function(e,t,s){var o="";s.supports&&(o+="@supports (".concat(s.supports,") {")),s.media&&(o+="@media ".concat(s.media," {"));var a=void 0!==s.layer;a&&(o+="@layer".concat(s.layer.length>0?" ".concat(s.layer):""," {")),o+=s.css,a&&(o+="}"),s.media&&(o+="}"),s.supports&&(o+="}");var n=s.sourceMap;n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,s)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),l=s.n(r),c=s.cjs(function(e,t){var s={};e.exports=function(e,t){var o=function(e){if(void 0===s[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}s[e]=t}return s[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}}),d=s.n(c),u=s.cjs(function(e,t){e.exports=function(e){var t=s.nc;t&&e.setAttribute("nonce",t)}}),p=s.n(u),h=s.cjs(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),f=s.n(h),y=s.cjs(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),g=s.n(y),v=s(9455),m={};m.styleTagTransform=g(),m.setAttributes=p(),m.insert=d().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=f(),i()(v.A,m),v.A&&v.A.locals&&v.A.locals;const b={text:"",gravity:lpData.toast.gravity,position:lpData.toast.position,className:`${lpData.toast.classPrefix}`,close:1==lpData.toast.close,stopOnFocus:1==lpData.toast.stopOnFocus,duration:lpData.toast.duration},S=(e,t="success",s)=>{let o=b;s&&(o={...o,...s}),new(a())({...o,text:e,className:`${lpData.toast.classPrefix} ${t}`}).showToast()},A="loading",C=(e,t)=>{e&&(t?e.classList.add(A):e.classList.remove(A))},w=(e,t)=>{document.addEventListener(e,s=>{const o=s.target;let a={e:s,target:o};t.forEach(t=>{a={...a,...t},t.conditionBeforeCallBack&&!0!==t.conditionBeforeCallBack(a)||"keydown"===e&&t.checkIsEventEnter&&"Enter"!==s.key||o.closest(t.selector)&&(t.class?t.class[t.callBack](a):t.callBack(a))})})};window.lpToggleEnableInit=0,window.lpFullScreenViewInit=0;class x{constructor(){this.elAddonsPage=null,this.urlParams=new URLSearchParams(window.location.search)}static selectors={elAddonsPage:".lp-addons-page",elToolbar:".lp-addons-toolbar",elLPAddons:"#lp-addons",elAddonItem:".lp-addon-item",elBtnAction:".btn-addon-action",elNavTab:".nav-tab",elNavTabActive:".nav-tab.nav-tab-active",elFilter:".lp-addons-filter",elFilterToggle:".lp-addons-filter__toggle",elFilterMenu:".lp-addons-filter__menu",elCategory:".lp-addons-category",elCategoryActive:".lp-addons-category.active",elSearch:".lp-addons-search",elSearchBtn:".lp-addons-search__btn",elSearchBtnClear:".lp-addons-search__btn-clear",elSearchClose:".lp-addons-search__close",elSearchInput:"#lp-search-addons__input",elItemPurchase:".lp-addon-item__purchase",elPurchaseInstall:".purchase-install",elPurchaseCode:".enter-purchase-code",elLicense:".lp-addon-license"};init(){((e,t)=>{const s=document.querySelector(e);s?t():new MutationObserver((s,o)=>{const a=document.querySelector(e);a&&(o.disconnect(),t())}).observe(document.documentElement,{childList:!0,subtree:!0})})(x.selectors.elLPAddons,()=>{if(this.elAddonsPage=document.querySelector(x.selectors.elAddonsPage),!this.elAddonsPage)return;const e=x.selectors,t=this.urlParams.get("tab");if(t){const s=this.elAddonsPage.querySelector(`${e.elNavTab}[data-tab="${t}"]`);s&&(this.elAddonsPage.querySelectorAll(e.elNavTab).forEach(e=>{e.classList.remove("nav-tab-active"),e.setAttribute("aria-pressed","false")}),s.classList.add("nav-tab-active"),s.setAttribute("aria-pressed","true"))}let s=this.elAddonsPage.querySelector(e.elNavTabActive);s||(s=this.elAddonsPage.querySelector(`${e.elNavTab}[data-tab="all"]`)||this.elAddonsPage.querySelector(e.elNavTab),s&&(s.classList.add("nav-tab-active"),s.setAttribute("aria-pressed","true")));let o=this.elAddonsPage.querySelector(e.elCategoryActive);o||(o=this.elAddonsPage.querySelector(`${e.elCategory}[data-category="all"]`)||this.elAddonsPage.querySelector(e.elCategory),o&&(o.classList.add("active"),o.setAttribute("aria-pressed","true"))),this.filterAddons(),this.updateSearchClearBtnState(),this.updateFilterToggleState(),this.events()})}events(){w("click",[{selector:x.selectors.elBtnAction,class:this,callBack:this.handleBtnAction.name},{selector:x.selectors.elNavTab,class:this,callBack:this.handleTabClick.name},{selector:x.selectors.elCategory,class:this,callBack:this.handleCategoryClick.name},{selector:x.selectors.elFilterToggle,class:this,callBack:this.handleFilterToggleClick.name},{selector:x.selectors.elSearchBtn,class:this,callBack:this.handleSearchBtnClick.name},{selector:x.selectors.elSearchBtnClear,class:this,callBack:this.handleSearchClearClick.name},{selector:x.selectors.elSearchClose,class:this,callBack:this.handleSearchCloseClick.name}]),w("input",[{selector:x.selectors.elSearchInput,class:this,callBack:this.handleSearchInput.name},{selector:x.selectors.elPurchaseCode,class:this,callBack:this.handlePurchaseCodeInput.name}]),w("keydown",[{selector:x.selectors.elSearchInput,class:this,callBack:this.handleSearchKeydown.name}]),document.addEventListener("click",e=>{if(!this.elAddonsPage)return;const t=this.elAddonsPage.querySelector(x.selectors.elToolbar);t&&t.classList.contains("is-filter-open")&&(t.contains(e.target)||this.toggleFilterMenu(!1))}),document.addEventListener("keydown",e=>{"Escape"===e.key&&this.toggleFilterMenu(!1)})}getAddonData(e){try{return JSON.parse(e.dataset.addon)}catch(e){return null}}addonsAction(e){const{action:t,addon:s,el:o,elAddonItem:a}=e,n=x.selectors,i={action:"addon_action",action_type:t,addon:s,purchase_code:e.purchase_code||"",id_url:"addon-action"},r=()=>{C(o,0)};window.lpAJAXG.fetchAJAX(i,{success:e=>{r();const{status:s,message:i,data:l}=e;if(S(i,s),"success"===s&&l?.html)a.outerHTML=l.html;else if("install"===t||"update-purchase"===t){const e=o.closest(n.elPurchaseInstall),t=e?e.querySelector(n.elPurchaseCode):null;t&&(t.classList.add("is-error"),t.setAttribute("aria-invalid","true"))}},error:e=>{r(),S(`error js: ${e}`,"error")}})}filterAddons(){const e=x.selectors,t=this.elAddonsPage.querySelectorAll(e.elAddonItem);this.updateTabCounts(t);const s=this.elAddonsPage.querySelector(e.elNavTabActive),o=this.elAddonsPage.querySelector(e.elCategoryActive),a=this.elAddonsPage.querySelector(e.elSearchInput),n=s?s.dataset.tab:"all",i=o?o.dataset.category:"all",r=(a?a.value.trim().toLowerCase():"").split(/\s+/).filter(Boolean);this.updateCategoryCounts(t,n),t.forEach(e=>{const t=JSON.parse(e.dataset.addon),s=e.querySelector("a").textContent.toLowerCase()+t.description,o=(e.dataset.category||"").split(/\s+/).filter(Boolean),a="all"===n||e.classList.contains(n),l="all"===i||o.includes(i),c=r.every(e=>s.includes(e)),d=a&&l&&c;e.classList.toggle("hide",!a),e.classList.toggle("search-not-found",!d)})}updateCategoryCounts(e,t){const s={all:0};e.forEach(e=>{("all"===t||e.classList.contains(t))&&(s.all++,(e.dataset.category||"").split(/\s+/).filter(Boolean).forEach(e=>{s[e]=(s[e]||0)+1}))}),this.elAddonsPage.querySelectorAll(x.selectors.elCategory).forEach(e=>{const t=s[e.dataset.category]||0,o=e.querySelector(".lp-addons-category__count");o&&(o.textContent=`(${t})`),e.hidden="all"!==e.dataset.category&&0===t})}updateTabCounts(e){this.elAddonsPage.querySelectorAll(x.selectors.elNavTab).forEach(t=>{const s=t.dataset.tab,o=Array.from(e).filter(e=>"all"===s||e.classList.contains(s)).length,a=t.querySelector("span");a&&(a.textContent=o)})}handleBtnAction(e){const{e:t,target:s}=e,o=x.selectors,a=s.closest(o.elBtnAction);if("A"===a.tagName)return;t.preventDefault(),C(a,1);let n="";const i=a.closest(o.elAddonItem),r=this.getAddonData(i),l=a.dataset.action,c=i.querySelector(o.elItemPurchase);if(r){if("purchase"===l||"update-purchase-code"===l){const e=c.querySelector(o.elPurchaseInstall),t=e.querySelector(o.elPurchaseCode),s=e.querySelector(".lp-addon-purchase__submit"),n=e.querySelector(".lp-addon-purchase__clear"),r=e.querySelector(".lp-addon-purchase__cancel-clear");let d=!1;if("update-purchase-code"===l){const e=i.querySelector(o.elLicense);t.value=e&&e.dataset.purchaseCodeMasked||"",d=""!==t.value,s.dataset.action="update-purchase"}else t.value="",s.dataset.action="install";return t.disabled=d,s.classList.toggle("lp-hidden",d),n.classList.toggle("lp-hidden",!d),r.classList.add("lp-hidden"),t.classList.remove("is-error"),t.removeAttribute("aria-invalid"),c.querySelector("input[name=purchase-code]").value="",e.style.display="flex",c.style.display="block",d||t.focus(),void C(a,0)}if("clear-license"===l){const e=c.querySelector(o.elPurchaseCode),t=c.querySelector(".lp-addon-purchase__submit"),s=c.querySelector(".lp-addon-purchase__clear"),n=c.querySelector(".lp-addon-purchase__cancel-clear");return e.value="",e.disabled=!1,e.classList.remove("is-error"),e.removeAttribute("aria-invalid"),c.querySelector("input[name=purchase-code]").value="",t.classList.remove("lp-hidden"),s.classList.add("lp-hidden"),n.classList.remove("lp-hidden"),e.focus(),void C(a,0)}if("cancel-clear-license"===l){const e=i.querySelector(o.elLicense),t=c.querySelector(o.elPurchaseCode),s=c.querySelector(".lp-addon-purchase__submit"),n=c.querySelector(".lp-addon-purchase__clear");return t.value=e&&e.dataset.purchaseCodeMasked||"",t.disabled=!0,t.classList.remove("is-error"),t.removeAttribute("aria-invalid"),c.querySelector("input[name=purchase-code]").value="",s.classList.add("lp-hidden"),n.classList.remove("lp-hidden"),a.classList.add("lp-hidden"),void C(a,0)}if("cancel"===l)return c.style.display="none",c.querySelector(o.elPurchaseInstall).style.display="none",void C(a,0);c&&(n=c.querySelector("input[name=purchase-code]").value),this.addonsAction({purchase_code:n,action:l,addon:r,el:a,elAddonItem:i})}else C(a,0)}handleTabClick(e){const{e:t,target:s}=e,o=x.selectors,a=s.closest(o.elNavTab);t.preventDefault(),this.elAddonsPage.querySelectorAll(o.elNavTab).forEach(e=>{e.classList.remove("nav-tab-active"),e.setAttribute("aria-pressed","false")}),a.classList.add("nav-tab-active"),a.setAttribute("aria-pressed","true"),a.scrollIntoView&&a.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"});const n=a.dataset.tab,i=this.elAddonsPage.querySelector(o.elSearchInput);i&&(i.value="");const r=this.elAddonsPage.querySelector(o.elSearch);if(r){r.classList.remove("is-open");const e=r.querySelector(o.elSearchBtn);e&&e.setAttribute("aria-expanded","false")}this.elAddonsPage.querySelectorAll(o.elCategory).forEach(e=>{const t="all"===e.dataset.category;e.classList.toggle("active",t),e.setAttribute("aria-pressed",t?"true":"false")}),this.urlParams.set("tab",n),window.history.pushState({},"",`${window.location.pathname}?${this.urlParams.toString()}`),this.updateFilterToggleState(),this.filterAddons()}handleFilterToggleClick(e){const{e:t}=e;t.preventDefault(),t.stopPropagation(),this.toggleFilterMenu()}toggleFilterMenu(e){const t=x.selectors,s=this.elAddonsPage.querySelector(t.elToolbar),o=this.elAddonsPage.querySelector(t.elFilter);if(!s&&!o)return;const a=this.elAddonsPage.querySelector(t.elFilterToggle),n=void 0!==e?e:s?!s.classList.contains("is-filter-open"):!o.classList.contains("is-open");s&&s.classList.toggle("is-filter-open",n),o&&o.classList.toggle("is-open",n),a&&a.setAttribute("aria-expanded",n?"true":"false")}updateFilterToggleState(){const e=x.selectors,t=this.elAddonsPage.querySelector(e.elFilterToggle);if(!t)return;const s=this.elAddonsPage.querySelector(e.elNavTabActive),o=this.elAddonsPage.querySelector(e.elCategoryActive),a=s?s.dataset.tab:"all",n=o?o.dataset.category:"all",i="all"!==a||"all"!==n;t.classList.toggle("has-filter",i)}handleCategoryClick(e){const{e:t,target:s}=e,o=s.closest(x.selectors.elCategory);t.preventDefault(),this.elAddonsPage.querySelectorAll(x.selectors.elCategory).forEach(e=>{const t=e===o;e.classList.toggle("active",t),e.setAttribute("aria-pressed",t?"true":"false")}),this.updateFilterToggleState(),this.filterAddons()}handleSearchInput(){this.updateSearchClearBtnState(),this.filterAddons()}handleSearchBtnClick(e){const{e:t}=e;t.preventDefault(),this.toggleFilterMenu(!1);const s=x.selectors,o=this.elAddonsPage.querySelector(s.elSearch),a=this.elAddonsPage.querySelector(s.elSearchInput);if(o){o.classList.add("is-open");const e=o.querySelector(s.elSearchBtn);e&&e.setAttribute("aria-expanded","true")}a&&(this.updateSearchClearBtnState(),a.focus())}handleSearchClearClick(e){const{e:t}=e;t.preventDefault();const s=x.selectors,o=this.elAddonsPage.querySelector(s.elSearchInput);o&&(o.value="",this.updateSearchClearBtnState(),this.filterAddons(),o.focus())}updateSearchClearBtnState(){const e=x.selectors,t=this.elAddonsPage.querySelector(e.elSearchInput),s=this.elAddonsPage.querySelector(e.elSearchBtnClear);s&&t&&(s.disabled=!t.value.trim())}handleSearchCloseClick(e){const{e:t}=e;t.preventDefault(),this.closeSearch()}handleSearchKeydown(e){const{e:t}=e;"Escape"===t.key&&(t.preventDefault(),this.closeSearch())}closeSearch(){const e=x.selectors,t=this.elAddonsPage.querySelector(e.elSearch),s=this.elAddonsPage.querySelector(e.elSearchInput);if(t){t.classList.remove("is-open");const s=t.querySelector(e.elSearchBtn);s&&(s.setAttribute("aria-expanded","false"),s.focus())}s&&s.value&&(s.value="",this.filterAddons()),this.updateSearchClearBtnState()}handlePurchaseCodeInput(e){const{e:t,target:s}=e;t.preventDefault(),s.classList.remove("is-error"),s.removeAttribute("aria-invalid");const o=s.value,a=s.closest(x.selectors.elItemPurchase);a&&(a.querySelector("input[name=purchase-code]").value=o)}}(new x).init()},9455(e,t,s){"use strict";var o=s(1601),a=s.n(o),n=s(6314),i=s.n(n)()(a());i.push([e.id,"/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n\n.toastify {\n padding: 12px 20px;\n color: #ffffff;\n display: inline-block;\n box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n max-width: calc(50% - 20px);\n z-index: 2147483647;\n}\n\n.toastify.on {\n opacity: 1;\n}\n\n.toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n}\n\n.toastify-right {\n right: 15px;\n}\n\n.toastify-left {\n left: 15px;\n}\n\n.toastify-top {\n top: -150px;\n}\n\n.toastify-bottom {\n bottom: -150px;\n}\n\n.toastify-rounded {\n border-radius: 25px;\n}\n\n.toastify-avatar {\n width: 1.5em;\n height: 1.5em;\n margin: -7px 5px;\n border-radius: 2px;\n}\n\n.toastify-center {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n}\n\n@media only screen and (max-width: 360px) {\n .toastify-right, .toastify-left {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n }\n}\n",""]);const r=i;s.d(t,["A",0,r])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s="",o=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),o&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),o&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s}).join("")},t.i=function(e,s,o,a,n){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&i[d[0]]||(void 0!==n&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=n),s&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=s):d[2]=s),a&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=a):d[4]="".concat(a)),t.push(d))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},7736(e){var t;t=function(e){var t=function(e){return new t.lib.init(e)};function s(e,t){return t.offset[e]?isNaN(t.offset[e])?t.offset[e]:t.offset[e]+"px":"0px"}function o(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:"1.12.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||t.defaults.text,this.options.node=e.node||t.defaults.node,this.options.duration=0===e.duration?0:e.duration||t.defaults.duration,this.options.selector=e.selector||t.defaults.selector,this.options.callback=e.callback||t.defaults.callback,this.options.destination=e.destination||t.defaults.destination,this.options.newWindow=e.newWindow||t.defaults.newWindow,this.options.close=e.close||t.defaults.close,this.options.gravity="bottom"===e.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=e.positionLeft||t.defaults.positionLeft,this.options.position=e.position||t.defaults.position,this.options.backgroundColor=e.backgroundColor||t.defaults.backgroundColor,this.options.avatar=e.avatar||t.defaults.avatar,this.options.className=e.className||t.defaults.className,this.options.stopOnFocus=void 0===e.stopOnFocus?t.defaults.stopOnFocus:e.stopOnFocus,this.options.onClick=e.onClick||t.defaults.onClick,this.options.offset=e.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==e.escapeMarkup?e.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=e.ariaLive||t.defaults.ariaLive,this.options.style=e.style||t.defaults.style,e.backgroundColor&&(this.options.style.background=e.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");for(var t in e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)e.style[t]=this.options.style[t];if(this.options.ariaLive&&e.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(this.options.escapeMarkup?e.innerText=this.options.text:e.innerHTML=this.options.text,""!==this.options.avatar){var o=document.createElement("img");o.src=this.options.avatar,o.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(o):e.insertAdjacentElement("afterbegin",o)}if(!0===this.options.close){var a=document.createElement("button");a.type="button",a.setAttribute("aria-label","Close"),a.className="toast-close",a.innerHTML="✖",a.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var n=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&n>360?e.insertAdjacentElement("afterbegin",a):e.appendChild(a)}if(this.options.stopOnFocus&&this.options.duration>0){var i=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){i.removeElement(e)},i.options.duration)})}if(void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var r=s("x",this.options),l=s("y",this.options),c="left"==this.options.position?r:"-"+r,d="toastify-top"==this.options.gravity?l:"-"+l;e.style.transform="translate("+c+","+d+")"}return e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var s=t.defaults.oldestFirst?e.firstChild:e.lastChild;return e.insertBefore(this.toastElement,s),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},s={top:15,bottom:15},a={top:15,bottom:15},n=document.getElementsByClassName("toastify"),i=0;i<n.length;i++){e=!0===o(n[i],"toastify-top")?"toastify-top":"toastify-bottom";var r=n[i].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(n[i].style[e]=a[e]+"px",a[e]+=r+15):!0===o(n[i],"toastify-left")?(n[i].style[e]=t[e]+"px",t[e]+=r+15):(n[i].style[e]=s[e]+"px",s[e]+=r+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=t():this.Toastify=t()}};const t={};function s(o){const a=t[o];if(void 0!==a)return a.exports;const n=t[o]={id:o,exports:{}};return e[o].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var a=t[o++],n=t[o++];s.o(e,a)?0===n&&o++:0===n?Object.defineProperty(e,a,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,a,{enumerable:!0,get:n})}else for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.hasOwn(e,t),s.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},s.nc=void 0,s(6184)})(); |