!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(this,(()=>(()=>{"use strict";var t={514:function(t,e,n){var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]")},e.readAsDataURL(t)}))}},e.prototype.showEfect=function(t){var e=0,n=setInterval((function(){e<17&&(e+=1),t.style.opacity=e/20}),50);setTimeout((function(){clearInterval(n)}),1e3)},e.prototype.hideEfect=function(t){var e=20,n=setInterval((function(){e-=1,t.style.opacity=e/10}),20);setTimeout((function(){clearInterval(n),t.remove()}),1500)},e.prototype.hexToRgb=function(t){var e=t.replace(/^#/,""),n=parseInt(e,16);return[n>>16&255,n>>8&255,255&n]},e.prototype.isColorDark=function(t){var e=this.hexToRgb(t);return(.299*e[0]+.587*e[1]+.114*e[2])/255<.4},e.prototype.setButtonFontColor=function(t){var e="#2f2f2f";return this.isColorDark(t)&&(e="#e0e0e0"),e},e.prototype.makeBox=function(){var t=document.body.clientHeight,e=document.body.clientWidth,n="35%",o="30%";e<780&&(n="100%",o="0%");var i=this.setButtonFontColor(this.dialogData.buttons[1].color),r="Enter Your First Name and Email",a="First Name",s="Enter your Email",c="Send Data";-1!=navigator.language.indexOf("es")&&(r="Ingresa tu primer nombre y email",a="Primer Nombre",s="Ingresa tu Email",c="Enviar Datos"),-1!=navigator.language.indexOf("pt")&&(r="Digite seu Primeiro Nome e E-mail",a="Primeiro Nome",s="Digite seu E-mail",c="Enviar Dados"),-1!=navigator.language.indexOf("fr")&&(r="Entrez votre prénom et email",a="Prénom",s="Entrer votre Email",c="Envoyer des Données"),-1!=navigator.language.indexOf("it")&&(r="Inserisci il tuo Nome e la tua Email",a="Nome di Battesimo",s="Scrivi la tua Email",c="Invia i Dati"),-1!=navigator.language.indexOf("ko")&&(r="이름과 이메일을 입력하세요",a="이름",s="이메일을 입력하세요",c="데이터 전송");var u='\n
\n
\n \n
\n
\n
\n
'.concat(this.dialogData.title,'
\n
').concat(this.dialogData.message,'
\n \n \n
\n '),l='\n
\n
\n \n
\n
'.concat(this.dialogData.title,'
\n
').concat(this.dialogData.message,'
\n \n \n
\n ');return e<780&&(u=l),"\n \n\n
\n
\n
\n
\n
\n
\n
\n ').concat(u,'\n
\n\n \n \n\n
\n
\n\n
\n\n \n \n
\n
\n \n
\n
\n
\n ')},e.prototype.showDialog=function(t,e){var n=!1;("yes"==e&&"https:"==window.location.protocol||"no"==e)&&(n=!0);var o=(0,a.safeGetElement)("notBtDialog");if(1==n&&!o){var i=void 0;if("box"==this.dialogData.type){i=this.makeBox(),document.body.insertAdjacentHTML("afterbegin",i),this.makeImage(this.dialogData.image);var r=(0,a.safeGetElement)("notBtDialogBack");r&&this.showEfect(r);var s=(0,a.safeGetElement)("notBtDialog");if(s){var c=new CustomEvent("notBtDialogBox",{detail:s});document.dispatchEvent(c)}}this.makeLogo(t),this.dialogEvents()}0==n&&console.error("NotificationButton Error: (SSL ERROR) Login to your account and configure your website correctly")},e.prototype.dialogEvents=function(){var t=new r.PageData,e=(0,a.safeGetElement)("notBtLater"),n=(0,a.safeGetElement)("notBtAllow");t.sendGtag("notificationButton_dialogBox","show","show web push dialog box",""),e&&e.addEventListener("click",(function(){t.sendGtag("notificationButton_dialogBox","click","clicked the later button","")})),n&&n.addEventListener("click",(function(){t.sendGtag("notificationButton_dialogBox","click","clicked the allow button","")}))},e}(r.PageData);e.DialogBox=s},668:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PageData=void 0;var o=n(566),i=function(){function t(){this.title="",this.description="",this.maxDescChars=600,this.firstH1="",this.firstP="",this.firstText="",this.textPage=""}return t.prototype.setPageData=function(){this.title=(0,o.safeGetTitle)(),this.description=(0,o.safeGetMetaContent)("description"),this.firstH1=this.setFirstH1(),this.firstP=this.setFirstP1(),this.firstText=this.setFirstText(),this.textPage=(0,o.safeGetBodyText)(),this.buttons=(0,o.safeGetElementsByTagName)("button"),this.submits=(0,o.safeGetElementsByTagName)("input"),this.videos=(0,o.safeGetElementsByTagName)("video"),this.imgs=(0,o.safeGetElementsByTagName)("img")},t.prototype.setFirstH1=function(){var t=(0,o.safeGetElementByTagName)("H1",0);return t&&t.innerText||""},t.prototype.setFirstP1=function(){for(var t="",e=this.description.length,n=this.maxDescChars-e,i=(0,o.safeGetElementsByTagName)("p"),r=0;r100&&n>40&&(c||(n-=(t+=u.slice(0,n)+" ...").length))}catch(t){console.warn("Error processing paragraph at index ".concat(r,":"),t);continue}return t},t.prototype.setFirstText=function(){var t="",e=this.description.length,n=this.maxDescChars-e;try{for(var i=(0,o.safeGetBodyText)().split("\n"),r=0;r100&&n>40&&(n-=(t+=a.slice(0,n)+" ...").length)}}catch(t){return console.warn("Error processing body text:",t),""}return t},t.prototype.getElementTree=function(t){var e=[];try{for(;t;)e.push(t),t=t.parentElement}catch(t){console.warn("Error building element tree:",t)}return e},t.prototype.checkContainClass=function(t,e){void 0===e&&(e="modal");try{for(var n=0;n40&&(t=this.description),t.length300&&this.imgs[o].naturalHeight>150&&e.push([this.imgs[o]]);return e.forEach((function(n,o){try{var i=n[0],r=t.getElementTree(i),a=t.checkContainClass(r,"menu-content");a||(a=t.checkContainClass(r,"menu-dropdown")),a||(a=t.checkContainClass(r,"menu-item")),a&&e.splice(o,1)}catch(t){console.warn("Error processing image:",t)}})),e.forEach((function(t){try{t[0].width>199&&t[0].height>149&&n.length<1&&-1==t[0].currentSrc.indexOf("logo")&&-1==t[0].className.indexOf("logo")&&(n=t)}catch(t){console.warn("Error selecting final image:",t)}})),n},t.prototype.sendGtag=function(t,e,n,o){try{this.gtag("event",e,{event_category:t,event_label:n,value:o})}catch(o){try{this.ga&&this.ga("send","event",t,e,n)}catch(t){console.log("analytics undefined")}}},t}();e.PageData=i},453:function(t,e,n){var o,i=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]

Selecciona "Abrir en Chrome"
u otro navegador'),-1!=navigator.language.indexOf("pt")&&(n='Para ver esta página de maneira ideal, toque nos 3 pontos acima


Selecione "Abrir no Chrome"
ou outro navegador'),-1!=navigator.language.indexOf("fr")&&(n='Pour afficher cette page de manière optimale, touchez les 3 points ci-dessus


Sélectionnez "Ouvrir dans Chrome"
ou un autre navigateur'),-1!=navigator.language.indexOf("it")&&(n='Per visualizzare questa pagina in modo ottimale, tocca i 3 punti sopra


Seleziona "Apri in Chrome"
o un altro browser'),-1!=navigator.language.indexOf("ko")&&(n="이 페이지를 최적으로 보려면 위의 3개 지점을 터치하세요.


'Chrome에서 열기'를 선택하거나
다른 브라우저를 선택하세요."),scrollTo(0,0);var o='
\n
\n \n
\n
\n \n
\n \n \n \n \n
\n \n '+n+'\n
\n
X
\n
\n
\n
\n ';document.body.insertAdjacentHTML("afterbegin",o);var i=(0,l.safeGetElement)("ntButton-webview-close");if(i)i.onclick=function(){var t=(0,l.safeGetElement)("ntButton-webview");t&&(t.style.display="none")};else{var r=(0,l.safeGetElement)("ntButton-webview");r&&(r.style.display="none")}}return e},e.prototype.chTime=function(){var e=this,n=this;function o(){n.stConf.siteConfig.widgets&&1==n.stConf.siteConfig.widgets.button.status&&1==n.stConf.siteConfig.st&&new c.ButtonWidget(n.stConf.siteConfig.widgets.button).showButton(n.stConf.accSt,n)}function i(){var t=!1;return n.stConf.siteConfig.aiPush.rememberPage&&(1!=n.stConf.siteConfig.aiPush.rememberPage.status&&1!=n.stConf.siteConfig.aiPush.rememberPage.trial.status||(t=!0)),t}function r(t){var e=setInterval((function(){var o,i,r;try{if("hiddenFeatureEnable"==t){var a=(0,l.isPageHidden)();null!==a&&a||n.setSec()}else n.setSec();(null===(r=null===(i=null===(o=n.stConf)||void 0===o?void 0:o.siteConfig)||void 0===i?void 0:i.dialog)||void 0===r?void 0:r.delay_time)?n.gtSec()>=n.stConf.siteConfig.dialog.delay_time&&(clearInterval(e),n.notifyPermit().then((function(t){console.log(t)})).catch((function(t){console.error("Permission error:",t)}))):(clearInterval(e),console.warn("Invalid site configuration"))}catch(t){console.error("Error in timeToShowDialogBox:",t),clearInterval(e)}}),1e3);setTimeout((function(){clearInterval(e)}),3e5)}1!=this.stDiag?(t.prototype.setPermissionsFunctions.call(this,this.getEndpoint,this.updateEndpoint,this.sendSubscriptionToBackEnd),this.siteConfig().then((function(n){t.prototype.setSiteConfigUserData.call(e,n),e.checkAndroidWebview(n),e.stConf=n,o(),e.checkPermChanges(),void 0!==document.hidden?r("hiddenFeatureEnable"):r("default"),i()&&t.prototype.initUserActions.call(e,e.stConf.siteConfig.ssl)})).catch((function(t){console.error(t)}))):"granted"==(0,l.safeLocalStorage)("get","notBtPermEmail")&&this.siteConfig().then((function(n){t.prototype.setSiteConfigUserData.call(e,n),e.stConf=n,o(),e.checkPermChanges(),i()&&t.prototype.initUserActions.call(e,e.stConf.siteConfig.ssl)})),-1==navigator.userAgent.indexOf("wv")&&this.checkSWstatus()},e.prototype.checkSWstatus=function(){var t=this,e=this,n=new Date;n.setHours(n.getHours()-8),(0,l.safeLocalStorage)("get","diaExpSW")||(0,l.safeLocalStorage)("set","diaExpSW",Date()),n>new Date((0,l.safeLocalStorage)("get","diaExpSW"))&&"granted"==this.getNotification.permission&&((0,l.safeLocalStorage)("set","diaExpSW",Date()),navigator.serviceWorker.getRegistrations().then((function(n){for(var o,i=function(n){-1!=n.active.scriptURL.indexOf("serviceNotButton.js")&&(o=n,t.getEndpoint().then((function(t){"not exist"==t.endpoint?navigator.serviceWorker.ready.then((function(t){t.pushManager&&t.pushManager.getSubscription().then((function(t){e.updateEndpoint(t.endpoint).then((function(t){setTimeout((function(){n.unregister().then((function(t){setTimeout((function(){e.resubscribeUser()}),2e3)}))}),1e3),console.log("endpoint was updated")})).catch((function(t){console.log("Can not update endpoint and resuscribe: ",t)}))}))})):console.log("SW and endpoint exist")})))},r=0,a=n;rn.lastDiag)){var a=n.stConf.siteConfig.ssl,c=n;(0,l.safeLocalStorage)("set","diaExp",Date());var u=new s.DialogBox;if(u.setDialogData(n.stConf.siteConfig.dialog),n.disableDB)c.registerPushUser(c,a,u,r);else{u.showDialog(n.stConf.siteConfig.logo,a);var d=(0,l.safeGetElement)("diagPwBy");d&&(d.style.display="none"),-1!=n.stConf.pn.indexOf("free")&&d&&(d.style.display="inline-block");var p=(0,l.safeGetElement)("notBtAllow");p&&(p.onclick=function(){"email"==c.stConf.siteConfig.dialog.channelFirst?c.displayEmailCapture(c).then((function(){c.registerPushUser(c,a,u,r).then((function(t){c.hideDialogBox(u,"notBtBox"),c.hideDialogBox(u,"notBtDialog"),c.checkAndSendEmailSubscription(c,t,a),o(t.resPermission)}))})):c.registerPushUser(c,a,u,r).then((function(t){c.displayEmailCapture(c).then((function(){c.hideDialogBox(u,"notBtBox"),c.hideDialogBox(u,"notBtDialog"),c.checkAndSendEmailSubscription(c,t,a),o(t.resPermission)}))}))});var f=(0,l.safeGetElement)("notBtDialog"),g=(0,l.safeGetElement)("notBtLater");g&&f?g.onclick=function(){u.hideEfect(f)}:f&&u.hideEfect(f)}}}else n.siteConfig().then((function(o){t.prototype.setSiteConfigUserData.call(n,o),n.stConf=o,n.notifyPermit(e)}));else o("cancel dialog");else r.permission,o(r)})).catch((function(t){console.log("Error:",t)}))},e.prototype.checkAndSendEmailSubscription=function(t,e,n){"granted"==e.resPermission.permission?t.sendAdditionalData(t,e.responseData):t.checkOnlyEmailSubscription(t,n)},e.prototype.registerPushUser=function(t,e,n,o){return!1===t.stConf.siteConfig.capturePush||"default"!=(0,l.safeLocalStorage)("get","notBtPerm")?new Promise((function(t,e){t({resPermission:o,responseData:""})})):new Promise((function(n,i){t.askPermission(e).then((function(i){switch((0,l.safeLocalStorage)("set","diaExp",Date()),o.permission=i.permission,i.permission){case"granted":console.log("granted dia Exp"),(0,l.safeLocalStorage)("set","diaExp","Aug 6, 1976"),t.sendGtag("notificationButton_dialogBox","subscription","permission granted",""),"yes"==e?t.subscribeUserToPush(t.base).then((function(e){t.sendSubscriptionToBackEnd(e,t.stConf.siteConfig.list.id,"yes",!0,!1).then((function(t){o.response=JSON.stringify(t),n({resPermission:o,responseData:t})}))})):t.sendSubscriptionToBackEnd(i.subscriptionNoSsl,t.stConf.siteConfig.list.id,"no",!0,!1).then((function(e){o.response=JSON.stringify(e),t.updateEndpoint(i.subscriptionNoSsl.endpoint),n({resPermission:o,responseData:e})}));break;case"denied":console.log("blocked"),(0,l.safeLocalStorage)("set","notBtPerm","denied"),t.sendGtag("notificationButton_dialogBox","subscription","permission denied",""),n({resPermission:o,responseData:""});break;case"default":console.log("default"),t.sendGtag("notificationButton_dialogBox","subscription","permission not decided",""),n({resPermission:o,responseData:""})}}))}))},e.prototype.displayEmailCapture=function(t){return 0==t.stConf.siteConfig.captureEmail||"default"!=(0,l.safeLocalStorage)("get","notBtPermEmail")?new Promise((function(t,e){t("default")})):new Promise((function(e,n){var o=(0,l.safeGetElement)("notBtBoxTitle"),i=(0,l.safeGetElement)("notBtBoxMsg"),r=(0,l.safeGetElement)("notBtAllowNotifications"),a=(0,l.safeGetElement)("notBtBoxEmailTitle"),s=(0,l.safeGetElement)("notBtBoxEmailFields"),c=(0,l.safeGetElement)("notBtAllowSendEmail"),u=(0,l.safeGetElement)("notBtBoxUserName"),d=(0,l.safeGetElement)("notBtBoxUserEmail"),p=(0,l.safeGetElement)("notBtBoxSendEmailData");o&&(o.style.display="none"),i&&(i.style.display="none"),r&&(r.style.display="none"),a&&(a.style.display="inherit"),s&&(s.style.display="inherit"),c&&(c.style.display="inherit"),u&&(u.focus(),console.log("focus name first"),u.addEventListener("keydown",(function(e){"Enter"===e.key?t.validateFields(u,d,!0):t.validateFields(u,d)}))),p&&(p.onclick=function(){t.validateFields(u,d,!0)&&(u&&d?(t.setUserProfile({name:u.value.trim(),email:d.value.trim()}),e(!0)):(console.warn("Form elements not available"),e(!1)))}),d&&d.addEventListener("keydown",(function(n){"Enter"===n.key?t.validateFields(u,d,!0)&&u&&d&&(t.setUserProfile({name:u.value.trim(),email:d.value.trim()}),e(!0)):t.validateFields(u,d)}))}))},e.prototype.validateFields=function(t,e,n){if(void 0===n&&(n=!1),!t||!e)return console.warn("Form elements not found"),!1;var o=t,i=e;return o.style.color="inherit",i.style.color="inherit",this.validateName(o.value)?!!this.validateEmail(i.value)||(n&&i.focus(),i.style.color=this.wrongFieldColor,!1):(n&&o.focus(),o.style.color=this.wrongFieldColor,!1)},e.prototype.validateName=function(t){if("string"!=typeof t)return!1;var e=t.trim();if(e.length<3||e.length>50)return!1;try{return new RegExp("[\\p{L}]","u").test("a"),/^[\p{L}\p{M}\s.'-]+$/u.test(e)}catch(t){return/^[a-zA-ZÀ-ÿĀ-žĂ-ǿА-я\u0100-\u017F\u0180-\u024F\u1E00-\u1EFF\u0370-\u03FF\u0400-\u04FF\u0500-\u052F\u0530-\u058F\u0590-\u05FF\u0600-\u06FF\u0700-\u074F\u0780-\u07BF\u0900-\u097F\u0980-\u09FF\u0A00-\u0A7F\u0A80-\u0AFF\u0B00-\u0B7F\u0B80-\u0BFF\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F\u0D80-\u0DFF\u0E00-\u0E7F\u0E80-\u0EFF\u0F00-\u0FFF\u1000-\u109F\u10A0-\u10FF\u1100-\u11FF\u1200-\u137F\u13A0-\u13FF\u1400-\u167F\u1680-\u169F\u16A0-\u16FF\u1700-\u171F\u1720-\u173F\u1740-\u175F\u1760-\u177F\u1780-\u17FF\u1800-\u18AF\u1900-\u194F\u1950-\u197F\u1980-\u19DF\u19E0-\u19FF\u1A00-\u1A1F\u1A20-\u1AAF\u1AB0-\u1AFF\u1B00-\u1B7F\u1B80-\u1BBF\u1BC0-\u1BFF\u1C00-\u1C4F\u1C50-\u1C7F\u1C80-\u1C8F\u1CC0-\u1CCF\u1CD0-\u1CFF\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u1E00-\u1EFF\u1F00-\u1FFF\u2C00-\u2C5F\u2C60-\u2C7F\u2C80-\u2CFF\u2D00-\u2D2F\u2D30-\u2D7F\u2D80-\u2DDF\u2DE0-\u2DFF\u2E00-\u2E7F\u2E80-\u2EFF\u2F00-\u2FDF\u2FF0-\u2FFF\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\u3100-\u312F\u3130-\u318F\u3190-\u319F\u31A0-\u31BF\u31C0-\u31EF\u31F0-\u31FF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FFF\uA000-\uA48F\uA490-\uA4CF\uA4D0-\uA4FF\uA500-\uA63F\uA640-\uA69F\uA6A0-\uA6FF\uA700-\uA71F\uA720-\uA7FF\uA800-\uA82F\uA830-\uA83F\uA840-\uA87F\uA880-\uA8DF\uA8E0-\uA8FF\uA900-\uA92F\uA930-\uA95F\uA960-\uA97F\uA980-\uA9DF\uA9E0-\uA9FF\uAA00-\uAA5F\uAA60-\uAA7F\uAA80-\uAADF\uAAE0-\uAAFF\uAB00-\uAB2F\uAB30-\uAB6F\uAB70-\uABBF\uABC0-\uABFF\uAC00-\uD7AF\uD7B0-\uD7FF\uF900-\uFAFF\uFB00-\uFB4F\uFB50-\uFDFF\uFE00-\uFE0F\uFE10-\uFE1F\uFE20-\uFE2F\uFE30-\uFE4F\uFE50-\uFE6F\uFE70-\uFEFF\uFF00-\uFFEF\s.'-]+$/.test(e)}},e.prototype.validateEmail=function(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim())},e.prototype.sendAdditionalData=function(e,n){var o=this;e.tagId&&e.setTagId(e.tagId),e.userProfile&&setTimeout((function(){if((0,l.safeLocalStorage)("set","notBtPermEmail","granted"),"email not exists"==n.message)if(n.subscriptor){var i={endpoint:n.subscriptor.endpoint,data:e.setProfileData(e.userProfile)};t.prototype.updateUserData.call(o,i,"notBtProfile","dayExpProfile")}else e.setUserProfile({name:e.userProfile.name,email:e.userProfile.email})}),1e3)},e.prototype.checkOnlyEmailSubscription=function(t,e){if(t.userProfile){var n=t.stConf.siteConfig.list.id,o={endpoint:n+"-"+t.userProfile.email,keys:{auth:"none",p256dh:"none"}};this.getEndpoint().then((function(i){"not exist"!=i.endpoint?(o.endpoint=i.endpoint,t.sendOnlyEmailSubscription(t,e,n,o)):t.sendOnlyEmailSubscription(t,e,n,o)})).catch((function(i){t.sendOnlyEmailSubscription(t,e,n,o),console.error("error getEndpoint: ",i)}))}},e.prototype.sendOnlyEmailSubscription=function(e,n,o,i){var r=this;e||(e=this),e.sendSubscriptionToBackEnd(i,o,n,!0,!0).then((function(n){if("email not exists"==n.message){var o={endpoint:i.endpoint,data:e.setProfileData(e.userProfile)};t.prototype.updateUserData.call(r,o,"notBtProfile","dayExpProfile")}if(e.updateEndpoint(i.endpoint),(0,l.safeLocalStorage)("set","notBtPermEmail","granted"),e.tagId){var a={endpoint:i.endpoint,data:{tag:e.tagId}};t.prototype.addOtherAddedTags.call(r,e.tagId),t.prototype.updateUserTag.call(r,a)}})).catch((function(t){console.error("error sendOnlyEmailSubscription: ",t)}))},e}(u.UserData);e.ButtonPermission=d,e.fixWebviewCheck=function(){navigator.userAgent.indexOf("wv")}},331:function(t,e,n){var o,i=this&&this.__extends||(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.UserData=void 0;var r=n(668),a=n(566),s=function(t){function e(){var e=t.call(this)||this;return e.addedTags=[],e.totalSec=0,e.mousePos=[0,0],e.actionsPage=[],e.sslStatus="yes",e.currentEndpoint="",e.endpointChecked=!1,e.base1=e.urlBase64ToUint8Array1("BCmKaLv3l2Wx1AuxYh4Qp29tc_UZmlPyGCJWf68rnFeOOsBoEifHv2ysj8n1UXLtJjXZKeiANTEd4e7d8_gWNBc"),e.getEndpointOfPermission=function(){},e.updateEndpointOfPermission=function(){},e.sendSubscriptionToBackEndOfPermission=function(){},e.userAgent=navigator.userAgent,e.browsers=[{search:"AppleWebKit",resolv:"AppleWebKit"},{search:"Safari",resolv:"Firefox"},{search:"Firefox",resolv:"Firefox"},{search:"SeaMonkey",resolv:"SeaMonkey"},{search:"FxiOS",resolv:"Firefox"},{search:"Chrome",resolv:"Chrome"},{search:"Chromium",resolv:"Chromium"},{search:"Edge",resolv:"Edge"},{search:"OPR",resolv:"Opera"},{search:"Opera",resolv:"Opera"},{search:".NET",resolv:"Internet Explorer"},{search:"MSIE",resolv:"Internet Explorer"},{search:"wv",resolv:"Webview"}],e.deviceTypes=[{search:"iPhone",resolv:"iPhone"},{search:"iPad",resolv:"iPad"},{search:"iPod",resolv:"iPod"},{search:"Mac",resolv:"Mac"},{search:"Tablet",resolv:"Tablet"},{search:"TV",resolv:"TV"},{search:"Maemo",resolv:"Mobile"},{search:"Mobile",resolv:"Mobile"},{search:"Mobi/",resolv:"Mobile"}],e.system=[{search:"iPhone",resolv:"IOS"},{search:"IOS",resolv:"IOS"},{search:"Macintosh",resolv:"Mac OS"},{search:"Mac OS",resolv:"Mac OS"},{search:"Windows",resolv:"Windows"},{search:"Windows NT 10",resolv:"Windows 10"},{search:"Android",resolv:"Android"},{search:"Linux",resolv:"Linux"}],e.userEvents={beforeunload:{event:window,init:!1},mousemove:{event:window,init:!1},scroll:{event:document,init:!1},keyup:{event:document,init:!1},click:{event:document,init:!1}},e}return i(e,t),e.prototype.setPermissionsFunctions=function(t,e,n){this.getEndpointOfPermission=t,this.updateEndpointOfPermission=e,this.sendSubscriptionToBackEndOfPermission=n},e.prototype.setSiteConfigUserData=function(t){this.stConfOfPermission=t},e.prototype.addOtherAddedTags=function(t){this.addedTags.push(t)},e.prototype.urlBase64ToUint8Array1=function(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(e),o=new Uint8Array(n.length),i=0;i100&&(n=100),this.actionsPage[0].readPercent=Math.round(n)},e.prototype.pathFormatWithParams=function(){var t="",e=window.location.pathname;return["id","_id","productId","product_id","prodId","prod_id","t","sec","section","product","producto"].forEach((function(e){var n=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n0&&(e+="?"+t),e},e.prototype.getSubDomainEndpoint=function(){var t=this,e=this;return new Promise((function(n,o){var i=window.location.hostname.replace("www.","").split("."),r=t.fixHostPart(i),a=t.subdomainComunication(r);a?window.addEventListener("message",(function(i){if(i.origin=="https://"+r[0]+".notificationbutton.com")if(i.data.getSubscription)a.close(),n(i.data.getSubscription);else if(i.data.resubscribe)1==i.data.resubscribe?a.postMessage({fn:"reSubscribeUserToPush",base:t.base1},"https://"+r[0]+".notificationbutton.com"):(a.close(),n({permission:"granted"}));else if(i.data.reSubscription){a.close();var s=JSON.parse(i.data.reSubscription);e.sendSubscriptionToBackEndOfPermission(s,e.stConfOfPermission.siteConfig.list.id,"no",!1),n(s.endpoint)}else i.data.getSubscriptionError?(console.log("Error Get Subscription subdomain: ",i.data.getSubscriptionError),a.close(),o("endpoint error subdomain")):(a.close(),o("not get endpoint data "))})):o("The window wasn't allowed to open")}))},e.prototype.checkCurrentEndpoint=function(){var t=this,e=this,n=document.body;function o(t){var i=!1;t.path&&t.path.forEach((function(t){t.href&&(i=!0)})),e.currentEndpoint||i||(e.getSubDomainEndpoint().then((function(t){e.currentEndpoint=t,e.updateEndpointOfPermission(t)})).catch((function(t){(0,a.safeLocalStorage)("set","notBtPerm","default"),console.log("get subdomain error: ",t)})),n.removeEventListener("click",o,!1))}this.currentEndpoint||this.getEndpointOfPermission().then((function(i){"not exist"==i.endpoint&&"granted"==(0,a.safeLocalStorage)("get","notBtPerm")?"no"==t.sslStatus?n.addEventListener("click",o,!1):"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(t){t.pushManager.getSubscription().then((function(t){e.updateEndpointOfPermission(t.endpoint),e.currentEndpoint=t.endpoint}))})).catch((function(t){console.error("Service worker error checking endpoint.",t)})):t.currentEndpoint=i.endpoint}))},e.prototype.registerPageActions=function(){this.endpointChecked||(this.checkCurrentEndpoint(),this.endpointChecked=!0),this.setPageData();var t=this,e=this.submits;function n(e){return t.textPage.match(e)?1:0}function o(){t.actionsPage[0].countBtnClicks+=1,t.actionsPage[0].countClicks-=1}function i(){t.actionsPage[0].countImgClicks+=1,t.actionsPage[0].countClicks-=1}function r(){t.actionsPage[0].countVideoClicks+=1,t.actionsPage[0].countClicks-=1}this.imgs,this.actionsPage[0].pageName=this.pathFormatWithParams();var s=this.selectImg();if(s.length>0){var c=s[0].currentSrc.split("?");this.actionsPage[0].imgSelected=c[0]}this.actionsPage[0].title=this.selectTitle(),this.actionsPage[0].message=this.selectDescription(),this.actionsPage[0].priceHere=n(/\$ *[0-9]|\$s *[0-9]|s\$ *[0-9]/i),0==this.actionsPage[0].priceHere&&(this.actionsPage[0].priceHere=n(/\€ *[0-9]|\€s *[0-9]|s\€ *[0-9]/i)),0==this.actionsPage[0].priceHere&&(this.actionsPage[0].priceHere=n(/\₩ *[0-9]|\₩s *[0-9]|s\₩ *[0-9]/i)),this.actionsPage[0].cartOrBuyBtnHere=function(n){for(var o,i,r=0;rwindow.innerWidth-5||t.mousePos[1]<5||t.mousePos[1]>window.innerHeight-5)&&(t.actionsPage[0].abandonedPage=1),(0,a.safeLocalStorage)("set","notBtUserActions",JSON.stringify(t.actionsPage)),t.sendActionsToServer()})),t.userEvents.mousemove.event.addEventListener("mousemove",(function(e){t.mousePos=[e.clientX,e.clientY]})),t.userEvents.scroll.event.addEventListener("scroll",(function(){var e=window.scrollY,n=document.body.offsetHeight,o=window.innerHeight,i=document.body.offsetHeight;n>o&&(i=n-o);var r=e/i,a=Math.round(100*r);a>100&&(a=100),a>t.actionsPage[0].scrollPercent&&null!=a&&(t.actionsPage[0].scrollPercent=a)})),t.userEvents.keyup.event.body.addEventListener("keyup",(function(){t.actionsPage[0].countWriteLetters+=1})),t.userEvents.click.event.body.addEventListener("click",(function(){t.actionsPage[0].countClicks+=1})));for(var u=0;ui.getTime()+288e5&&(e=!0)}else e=!0;return e},e.prototype.checkUserId=function(t){var e=this;function n(t,n){var o={endpoint:t,data:{uId:n}};e.updateUserData(o,"notBtWebId","diaExpWebId")}this.verifyAddUserData("diaExpWebId")&&("serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.pushManager.getSubscription().then((function(e){n(e.endpoint,t)}))})).catch((function(t){console.error("Service worker error sending uId.",t)})),"default"==(0,a.safeLocalStorage)("get","notBtPerm")&&"granted"==(0,a.safeLocalStorage)("get","notBtPermEmail")&&n(e.currentEndpoint,t))},e.prototype.checkUserIdSubdomain=function(t){var e=this;if(this.verifyAddUserData("diaExpWebId"))if(this.currentEndpoint)r(e.currentEndpoint,t);else{var n=window.location.hostname.replace("www.","").split("."),o=this.fixHostPart(n),i=this.subdomainComunication(o);null!=i?window.addEventListener("message",(function(n){n.origin=="https://"+o[0]+".notificationbutton.com"&&(n.data.getSubscription?(r(n.data.getSubscription,t),i.close()):n.data.getSubscriptionError?(console.log("Error Get Subscription: ",n.data.getSubscriptionError),r(e.currentEndpoint,t),i.close()):i.close())})):r(e.currentEndpoint,t)}function r(t,n){var o={endpoint:t,data:{uId:n}};e.updateUserData(o,"notBtWebId","diaExpWebId")}},e.prototype.setProfileData=function(t){var e={};return t.name&&(e["profile.name"]=t.name),t.phone&&(e["profile.phone"]=t.phone),t.email&&(e["profile.email"]={user:t.email,status:1}),e},e.prototype.checkUserProfile=function(t){var e=this;function n(t,n){var o={endpoint:t,data:e.setProfileData(n)};e.updateUserData(o,"notBtProfile","dayExpProfile")}this.verifyAddUserData("dayExpProfile")&&("serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.pushManager.getSubscription().then((function(e){n(e.endpoint,t)}))})).catch((function(t){console.error("Service worker error sending uId.",t)})),"default"==(0,a.safeLocalStorage)("get","notBtPerm")&&"granted"==(0,a.safeLocalStorage)("get","notBtPermEmail")&&n(this.currentEndpoint,t))},e.prototype.checkUserProfileSubdomain=function(t){var e=this,n=this;if(this.verifyAddUserData("dayExpProfile")){var o=window.location.hostname.replace("www.","").split("."),i=this.fixHostPart(o),r=this.subdomainComunication(i);null!=r?window.addEventListener("message",(function(n){n.origin=="https://"+i[0]+".notificationbutton.com"&&(n.data.getSubscription?(a(n.data.getSubscription,t),r.close()):n.data.getSubscriptionError?(console.log("Error Get Subscription: ",n.data.getSubscriptionError),a(e.currentEndpoint,t),r.close()):r.close())})):a(this.currentEndpoint,t)}function a(t,e){var o={endpoint:t,data:n.setProfileData(e)};n.updateUserData(o,"notBtProfile","dayExpProfile")}},e.prototype.checkTags=function(t){return(0,a.safeLocalStorage)("get","notBtTags")||(0,a.safeLocalStorage)("set","notBtTags","[]"),this.addedTags=JSON.parse((0,a.safeLocalStorage)("get","notBtTags")),this.addedTags.filter((function(e){return e==t}))},e.prototype.checkTagId=function(t){var e=this;function n(t,n){var o={endpoint:t,listId:e.stConfOfPermission.siteConfig.list.id,data:{tag:n}};e.addedTags.push(n),e.updateUserTag(o)}this.checkTags(t),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.pushManager.getSubscription().then((function(e){n(e.endpoint,t)}))})).catch((function(t){console.error("Service worker error sending uId.",t)})),"default"==(0,a.safeLocalStorage)("get","notBtPerm")&&"granted"==(0,a.safeLocalStorage)("get","notBtPermEmail")&&n(this.currentEndpoint,t)},e.prototype.checkTagIdSubdomain=function(t){var e=this;if(this.checkTags(t),this.currentEndpoint)r(e.currentEndpoint,t);else{var n=window.location.hostname.replace("www.","").split("."),o=this.fixHostPart(n),i=this.subdomainComunication(o);null!=i?window.addEventListener("message",(function(n){n.origin=="https://"+o[0]+".notificationbutton.com"&&(n.data.getSubscription?(r(n.data.getSubscription,t),i.close()):n.data.getSubscriptionError?(console.log("Error Get Subscription: ",n.data.getSubscriptionError),r(e.currentEndpoint,t),i.close()):i.close())})):r(e.currentEndpoint,t)}function r(t,n){var o={endpoint:t,listId:e.stConfOfPermission.siteConfig.list.id,data:{tag:n}};e.addedTags.push(n),e.updateUserTag(o)}},e.prototype.fixHostPart=function(t){return"tienda"!=t[0]&&"store"!=t[0]&&"shop"!=t[0]||(t[0]=t[1]),t},e.prototype.subdomainComunication=function(t){var e=null;return-1==navigator.userAgent.indexOf("wv")&&(e=window.open("https://"+t[0]+".notificationbutton.com","notButton_Subs","menubar=0,visible=0,location=0,toolbar=0,resizable=0,personalbar=0,scrollbars=0,status=0,close=no,titlebar=0, width=20, height=20, top=10000, left=10000"),window.onfocus=function(){window.focus()},setTimeout((function(){e&&e.postMessage({fn:"getSubscription"},"https://"+t[0]+".notificationbutton.com")}),1e3)),e},e}(r.PageData);e.UserData=s},676:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonWidget=void 0;var o=n(668),i=n(566),r=function(){function t(t){this.bottom=t.bottom,this.right=t.right,this.color=t.color,this.text=t.text}return t.prototype.setDialogTooltipExpire=function(){this.dateExpTooltip=new Date,this.dateExpTooltip.setHours(this.dateExpTooltip.getHours()-4)},t.prototype.setLastTooltip=function(){var t=this;setTimeout((function(){(0,i.safeLocalStorage)("get","dateExpTooltip")||(0,i.safeLocalStorage)("set","dateExpTooltip","Aug 6, 1976"),t.lastTooltip=new Date((0,i.safeLocalStorage)("get","dateExpTooltip"))}),3e3)},t.prototype.makeButton=function(){return'\n \n '+'
\n
\n \n
x
\n
').concat(this.text,'
\n \n \n \n \n \n \n \n \n \n \n \n
\n
')},t.prototype.showButton=function(t,e){if(!(0,i.safeGetElement)("notBtButtonAlert")){var n=this.makeButton();document.body.insertAdjacentHTML("beforeend",n);var o=(0,i.safeGetElement)("bellPwBy");if(o&&(o.style.display="none"),this.widgetClickEvents(e),e.stConf&&-1!=e.stConf.pn.indexOf("free")){var r=(0,i.safeGetElement)("bellPwBy");r&&(r.style.display="inline-block")}this.setDialogTooltipExpire(),this.setLastTooltip(),this.checkActive(t),this.showToolTip(t)}},t.prototype.widgetClickEvents=function(t){var e=this,n=(0,i.safeGetElement)("tooltiptext"),o=(0,i.safeGetElement)("ntBellShape");n&&n.addEventListener("click",(function(){e.buttonSubscription(t)})),o&&o.addEventListener("click",(function(){e.buttonSubscription(t)}))},t.prototype.checkActive=function(t){var e="Notification Service Suspended";if(-1!=navigator.language.indexOf("es")&&(e="Servicio de Notificaciones Suspendido"),-1!=navigator.language.indexOf("pt")&&(e="Serviço de notificação suspenso"),-1!=navigator.language.indexOf("fr")&&(e="Service de notification suspendu"),-1!=navigator.language.indexOf("it")&&(e="Servizio di notifica sospeso"),-1!=navigator.language.indexOf("ko")&&(e="알림 서비스 일시 중단됨"),1!=t){var n=(0,i.safeGetElement)("tooltiptext");n&&(n.innerText=e)}},t.prototype.showToolTip=function(t){var e=this,n=1e4;1!=t&&(n=0);var o=(0,i.safeLocalStorage)("get","notBtPerm"),r=(0,i.safeGetElement)("ntButtonToolTipTextClose"),a=(0,i.safeGetElementsByClassName)("tooltiptext"),s=(0,i.safeGetElementsByClassName)("tooltip-btn");r&&r.addEventListener("click",(function(){a.length>0&&(a[0].style.visibility="",a[0].style.display="none")})),s.length>0&&s[0].addEventListener("mouseover",(function(){a.length>0&&(a[0].style.display="")})),setTimeout((function(){"default"==o&&e.dateExpTooltip>e.lastTooltip&&a.length>0&&(a[0].style.visibility="inherit",(0,i.safeLocalStorage)("set","dateExpTooltip",Date())),0==n&&a.length>0&&(a[0].style.visibility="inherit",a[0].style.backgroundColor="red")}),n)},t.prototype.buttonSubscription=function(t){var e=!0;0!=t.stConf.accSt&&2!=t.stConf.accSt||(e=!1);var n="You are already subscribed to our notifications";if(-1!=navigator.language.indexOf("es")&&(n="Ya estás suscripto a nuestras notificaciones"),-1!=navigator.language.indexOf("pt")&&(n="Você já está inscrito em nossas notificações"),-1!=navigator.language.indexOf("fr")&&(n="Vous êtes déjà abonné à nos notifications"),-1!=navigator.language.indexOf("it")&&(n="Sei già iscritto alle nostre notifiche"),-1!=navigator.language.indexOf("ko")&&(n="이미 알림을 구독하고 있습니다."),(0,i.safeLocalStorage)("get","notBtPerm"),(0,i.safeLocalStorage)("get","notBtPermEmail"),1==e)if(this.checkAlreadySubscribed(t.stConf.siteConfig)){var r=(0,i.safeGetElement)("tooltiptext");r&&(r.innerText=n)}else t.notifyPermit("action").then((function(t){if("granted"==t.permission){var e=(0,i.safeGetElement)("tooltiptext");e&&(e.innerText=n)}}));(new o.PageData).sendGtag("notificationButton_bellButton","click","clicked the bell button","")},t.prototype.checkAlreadySubscribed=function(t){var e=!1,n=!1,o=(0,i.safeLocalStorage)("get","notBtPerm"),r=(0,i.safeLocalStorage)("get","notBtPermEmail");return 1==t.captureEmail?"granted"==r&&(n=!0):n=!0,1==t.capturePush?"granted"==o&&(e=!0):e=!0,1==e&&1==n},t}();e.ButtonWidget=r},566:(t,e)=>{function n(t){try{return"undefined"!=typeof document&&document.getElementsByTagName?document.getElementsByTagName(t)||[]:(console.warn("document.getElementsByTagName not available"),[])}catch(e){return console.warn('Error getting elements by tag name "'.concat(t,'":'),e),[]}}Object.defineProperty(e,"__esModule",{value:!0}),e.safeGetBodyText=e.safeGetTitle=e.isPageHidden=e.safeGetBodyProperty=e.safeGetDocumentProperty=e.safeGetMetaContent=e.safeGetElementsByTagName=e.safeGetElementByTagName=e.safeGetElementsByClassName=e.safeGetElement=e.safeLocalStorage=void 0,e.safeLocalStorage=function(t,e,n){try{if("get"===t)return localStorage.getItem(e);"set"===t?localStorage.setItem(e,n):"remove"===t&&localStorage.removeItem(e)}catch(t){return console.warn("localStorage operation failed:",t),null}},e.safeGetElement=function(t){try{return document.getElementById(t)}catch(e){return console.warn("Element ".concat(t," not found:"),e),null}},e.safeGetElementsByClassName=function(t){try{return"undefined"!=typeof document&&document.getElementsByClassName?document.getElementsByClassName(t)||[]:(console.warn("document.getElementsByClassName not available"),[])}catch(e){return console.warn('Error getting elements by class name "'.concat(t,'":'),e),[]}},e.safeGetElementByTagName=function(t,e){void 0===e&&(e=0);try{var o=n(t);return o.length>e?o[e]:null}catch(n){return console.warn('Error getting element by tag name "'.concat(t,'" at index ').concat(e,":"),n),null}},e.safeGetElementsByTagName=n,e.safeGetMetaContent=function(t){try{if("undefined"==typeof document)return"";for(var e=n("meta"),o=0;o