!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=20)}([function(e,t,n){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;na[0]&&t[1] "):"".concat(c.Config.brandingPartner," => ")).concat(e),1===c.Config.debug&&(void 0!==t?console.warn(e,t):console.warn(e))},g.throwError=function(e){throw new Error(e)},g.getParamFromUrl=function(e,t){return new URL(e).searchParams.get(t)},g.izParseQuery=function(e){for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),o=0;on.getTime()&&(t=!0,g.displayLog("Wait until ".concat(e," expire!"))),t},g.syncClick=function(e,t){e={pid:c.Config.client,bkey:c.Config.UUID,rid:e.id,cid:e.cid,op:"click"};t&&(e.cs=1),r.HttpRequest.postForm(g.getEndpoint("notificationClick"),e,!0).then(function(){"News hub click sync successfully with ".concat(c.Config.brandingPartner)}).catch(function(e){})},g.formatDateTime=function(e){var t=(e=void 0===e?new Date:e).getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0"),e=String(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(o," ").concat(i,":").concat(r,":").concat(e)},g.viewPortDetector=function(e){var t=this;this.callbackQue.push(e);if((-1<[39837,22667,22668,22669,29014,34474,46972,47126,51171,51241,51240,51413,60772,9687,57225,49454,47127,51171,1764,2441,9892,19662,4088,32495,4093,30522,30753,57263,62256].indexOf(c.Config.client)||c.Config.hideOSNOnAds)&&"IntersectionObserver"in window&&!g.isViewportDetectorInitialized)try{g.isViewportDetectorInitialized=!0;var n=new IntersectionObserver(function(e){e.forEach(function(e){return g.taboolaElementObj[e.target.id]=e.isIntersecting}),t.callbackQue.forEach(function(e){return e()})});g.runtimeObserverHanlder(n)}catch(e){}},g.runtimeObserverHanlder=function(n){function e(){try{var e=document.querySelectorAll("[id^='taboola-']"),t=Object.values(g.taboolaElementObj).length;t!=e.length&&e.forEach(function(e){g.taboolaElementObj.hasOwnProperty(e.id)||(g.taboolaElementObj[e.id]=!1,n.observe(e))})}catch(e){}}e(),window.addEventListener("scroll",e)},g.isViewportDetectorInitialized=!1,g.taboolaElementObj={},g.callbackQue=[],g);function g(){}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},a=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1].iz-branding{color:white;font-size:25px;position:absolute;top:40%;left:28%;z-index:999999!important;width:50%!important}.iz-arrow img{transform:rotate(180deg)}@media screen and (max-width:600px){#izooto_desktop_overlay{display:none;.iz-arrow{width:100%;position:fixed;top:auto;bottom:35%;left:65%;border-radius:0px}.moz-transfer{width:100%;position:fixed;top:auto;bottom:30%;left:65% !important;border-radius:0px}.moz-transfer img{transform:rotate(180deg) !important}.iz-arrow img{transform:rotate(0deg)}.iz-branding{color:white;font-size:larger;position:fixed;top:40%;left:17%;width:100%}}
"+D.notification.overlayMessage+"
",D.notification.httpsBranding="
Notifications Powered by "+D.brandingPartner+"
",t="desktop",D.global.deviceType==c.KeyMapper.DEVICE_TYPE_DESKTOP?(u.Notification.isWebPushEnabled=!!D.notification.desktopAllowed,D.newsHub.status=null!==(o=null==g?void 0:g.desktopAllowed)&&void 0!==o?o:D.newsHub.status):(t="mobile",u.Notification.isWebPushEnabled=!!D.notification.mobileAllowed,D.newsHub.status=null!==(i=null==g?void 0:g.mobileAllowed)&&void 0!==i?i:D.newsHub.status),D.email.status=null!==(i=null===(i=null==P?void 0:P[t])||void 0===i?void 0:i.status)&&void 0!==i?i:0,D.email.type=null!==(i=null===(i=null==P?void 0:P[t])||void 0===i?void 0:i.type)&&void 0!==i?i:1,D.email.repeatPromptDelay=null!==(i=null===(i=null==P?void 0:P[t])||void 0===i?void 0:i.repeatPromptDelay)&&void 0!==i?i:60,D.exitIntent.titleColor=4==D.exitIntent.templateType?"#fff":D.exitIntent.titleColor,D.onsiteMultiRSSFeedConfigHandler(1),D.onsiteMultiRSSFeedConfigHandler(2),D.multiMessengerConfigHandler(),s.NotificationHelper.canSupportIOSPush()&&s.NotificationHelper.IOSManifestHandler(),t=D.notification,[4,s.NotificationHelper.isSupported()];case 1:return t.isSupported=e.sent(),[2]}})})},D.SDKVersion="8.13.8",D.izootoStatus=null!=d?d:1,D.autoSegmentStatus=null!=M?M:0,D.hashFileName=_||"",D.defaultBrandingPartner="iZooto",D.debug=null!==(_=izConfig.debug)&&void 0!==_?_:0,D.branding=null!==(_=izConfig.branding)&&void 0!==_?_:1,D.promptSequencing=null!==(_=izConfig.promptSequencing)&&void 0!==_?_:1,D.hideOSNOnAds=null!=O?O:1,D.defaultAds=n||0,D.global={isSetCidLoaded:!1,isIncoginito:!1,isSessionHandled:!1,locationProtocol:document.location.protocol,msgReceiverExist:0,cookieDomain:null!==(_=izConfig.cDomain)&&void 0!==_?_:"",cookieExpiryDays:1500,cookieSameSite:"SameSite=Lax;",browserName:"",browserType:0,deviceType:0,browserVer:"",browserMajorVersion:0,os:0,platform:"",isFrame:window.top!=window.self},D.debugger={status:0,err:0,successCode:"color: #228B22",errCode:"color: #FF0000",infoCode:"background: #ffffcc, color: #222",host:document.location.protocol+"//"+document.location.hostname},D.store={subscriberId:!1,lastClick:!1,lastView:!1,syncedEventList:[],isNotificationDisabledManually:!1,isSoftSubscribeTriggered:!1,isTriggerPromptWithDelay:!1,isNotificationCalledManually:!1,isMDSyncingRequired:!1,isSubscriptionLost:!1,subscriptionBasedEventNameList:["event","trigger","userProfile","personalizationProperty","add_property"]},D.notification={tokenExpire:null!==(_=izConfig.tokenExpire)&&void 0!==_?_:86400,repeatPromptDelay:null!==(_=izConfig.repeatPromptDelay)&&void 0!==_?_:0,optInCloseDelay:null!==(_=izConfig.optInCloseDelay)&&void 0!==_?_:60,sourceOrigin:"",domainRoot:"",isSdkHttps:0,serviceWorkerName:"",htmlName:izConfig.htmlName||"/izooto.html",manifestName:"",manifest:"",subscriptionType:0,fcmToken:"",autoPrompt:!0,httpsBranding:"",swSubscribe:null!==(_=izConfig.swSubscribe)&&void 0!==_?_:1,overlay:null!==(_=izConfig.overlay)&&void 0!==_?_:0,overlayMessage:izConfig.overlayMessage||"Click on 'allow' to subscribe to notifications",httpsOverlay:"",clickOnAllowMsg:izConfig.clickOnAllowMsg||"Click On allow to subscribe to notifications",subscribedMsg:izConfig.subscribedMsg||"Subscribed",alreadySubscribedMsg:izConfig.alreadySubscribedMsg||"You've already subscribed to notifications.",blockedMsg:izConfig.blockedMsg||"Blocked",alreadyDeniedMsg:izConfig.alreadyDeniedMsg||"You've blocked notifications from this site.",httpsNoRoot:null!==(_=izConfig.httpsNoRoot)&&void 0!==_?_:0,windowType:0,mobileAllowed:null!==(_=izConfig.mobileAllowed)&&void 0!==_?_:1,desktopAllowed:null!==(_=izConfig.desktopAllowed)&&void 0!==_?_:1,allowedKeys:["bookingurl","landingurl"],webPushId:izConfig.webPushId||"",webServiceUrl:izConfig.webServiceUrl||"",processPriority:null!==(_=izConfig.processPriority)&&void 0!==_?_:0,masterDomain:izConfig.masterDomain||"",masterDomainPath:izConfig.masterDomainPath||"",cdnHost:"cdn.izooto.com",siteUrl:izConfig.siteUrl||"",promptDelay:null!==(_=izConfig.promptDelay)&&void 0!==_?_:0,promptType:null!==(_=izConfig.promptFlow)&&void 0!==_?_:0,defaultOptinDesign:"",hidePopup:null===(_=izConfig.hidePopup)||void 0===_||_,fullPopUp:null!==(_=izConfig.fullPopUp)&&void 0!==_?_:0,promptDesign:p||{message:"",subMessage:"",icon:"",btn1Txt:"",btn2Txt:"",position:"",bgColor:"",titleForeColor:"",messageForeColor:"",btn1bgColor:"",btn1ForeColor:"",btn2bgColor:"",btn2ForeColor:"",poweredbysrc:""},optInDesign:izConfig.optInDesign||"",dialogDesign:"",gdprDialogDesign:"",optInSrc:"https://cdn.izooto.com/optin/",optInDesignType:null!==(_=izConfig.optInDesignType)&&void 0!==_?_:"1",optinModule:{optinType:1,data:""},gdprModule:{gdprType:1,data:""},sourceOriginAlt:izConfig.sourceOriginAlt||"",fcmEnable:null!==(_=izConfig.fcmEnable)&&void 0!==_?_:0,isAddFcm:0,allowedDomain:izConfig.allowedDomain||"",serviceWorkerPath:"",serviceWorkerScope:izConfig.swScope||"",serviceWorkerNameMob:izConfig.serviceWorkerNameMob||"",vapidKey:izConfig.vapidPublicKey||"",subscriptionObj:{},pluginStatus:0,isShopify:null!==(_=izConfig.isShopify)&&void 0!==_?_:0,sysEvents:null!==(_=izConfig.sysEvents)&&void 0!==_?_:1,sysEventsFlag:void 0!==izConfig.sysEvents?1:0,propsTracking:null!==(_=izConfig.propsTracking)&&void 0!==_?_:1,evtTracking:null!==(_=izConfig.evtTracking)&&void 0!==_?_:1,userEvents:null!==(_=izConfig.userEvents)&&void 0!==_?_:0,isTagsEnabled:null!==(_=izConfig.tagsEnabled)&&void 0!==_?_:0,utmKeys:["utm_content","utm_medium","utm_source","utm_campaign","utm_term"],shortutmKeys:["uco","ume","uso","uca","ute"],serviceWorkerVersion:void 0,promptOnScroll:null!==(_=izConfig.promptOnScroll)&&void 0!==_?_:0,isTriggeredOnScoll:0,eventAsTrigger:null!==(_=izConfig.eventAsTrigger)&&void 0!==_?_:0,eventsToSync:(null===(_=null===izConfig||void 0===izConfig?void 0:izConfig.webPush)||void 0===_?void 0:_.syncEvent)||[],syncNotificationView:null!==(_=izConfig.syncNotificationView)&&void 0!==_?_:"",syncNotificationClick:null!==(_=izConfig.syncNotificationClick)&&void 0!==_?_:"",syncVisitType:null!==(_=izConfig.syncVisitType)&&void 0!==_?_:0,isSupported:!0,gdprNotAllowed:["userProfile","personalizationProperty","trigger","event"],isGdprAllowed:1,gdprPrompt:{status:null!==(_=null==f?void 0:f.status)&&void 0!==_?_:0,type:(null==f?void 0:f.type)||1,title:null==f?void 0:f.title,btn1Txt:null==f?void 0:f.btn1Txt,btn2Txt:null==f?void 0:f.btn2Txt},syncLimit:{evtPerDay:null!==(_=izConfig.evtPerDay)&&void 0!==_?_:1e4,propsPerDay:null!==(_=izConfig.propsPerDay)&&void 0!==_?_:1e4,evtPerMonth:null!==(_=izConfig.evtPerMonth)&&void 0!==_?_:1e4,propsPerMonth:null!==(_=izConfig.propsPerMonth)&&void 0!==_?_:1e4},welcomeNotification:{status:null!==(_=null==b?void 0:b.status)&&void 0!==_?_:0,title:(null==b?void 0:b.title)||"",body:(null==b?void 0:b.body)||"",icon:(null==b?void 0:b.icon)||"",url:(null==b?void 0:b.url)||"",showAfter:null!==(_=null==b?void 0:b.showAfter)&&void 0!==_?_:0,timeout:null!==(_=null==b?void 0:b.clickTimeout)&&void 0!==_?_:0}},D.ga={id:"",syncCid:null!==(_=null===izConfig||void 0===izConfig?void 0:izConfig.syncGACid)&&void 0!==_?_:0,swEvents:null!==(_=null===izConfig||void 0===izConfig?void 0:izConfig.gaSwEvents)&&void 0!==_?_:0,syncWebPush:0,syncNewsHub:0,newsHubEvents:[],syncMessenger:0,subscriptionCallback:[],promptDisplayCallback:[],oldId:""},D.messenger={syncPrompt:null!==(_=null===(_=izConfig.messengerConf)||void 0===_?void 0:_.syncPrompt)&&void 0!==_?_:1,status:null!==(_=izConfig.messengerPromptStatus)&&void 0!==_?_:0,pageId:izConfig.messengerPageId||"",repeatDelay:null!==(_=izConfig.messengerRepeatDelay)&&void 0!==_?_:0,prompt:izConfig.messengerPrompt||{},size:"large",color:"blue",buttonTextType:0,autoPrompt:!0},D.tabAbandonment={status:null!==(_=null==E?void 0:E.status)&&void 0!==_?_:0,timeout:null!==(_=null==E?void 0:E.timeout)&&void 0!==_?_:6e3,pushTimeout:null!==(_=null==E?void 0:E.pushTimeout)&&void 0!==_?_:3600,data:(null==E?void 0:E.data)||{},counter:0},D.welcomePlaybook={status:null!==(_=null==C?void 0:C.status)&&void 0!==_?_:0,data:(null==C?void 0:C.data)||{}},D.newsHub={title:(null==g?void 0:g.title)||"",designType:null!==(_=null==g?void 0:g.designType)&&void 0!==_?_:1,mainColor:(null==g?void 0:g.mainColor)||"",iconType:null!==(_=null==g?void 0:g.iconType)&&void 0!==_?_:1,placement:(null==g?void 0:g.placement)||[1,1],allVisitors:null!==(_=null==g?void 0:g.allVisitors)&&void 0!==_?_:1,gaId:(null==g?void 0:g.gaId)||"",autoWidget:null===(_=null==g?void 0:g.autoWidget)||void 0===_||_,callOut:null!==(_=null==g?void 0:g.callOut)&&void 0!==_?_:1,callOutTimeout:null!=g&&g.callOutTimeout&&2<=g.callOutTimeout&&g.callOutTimeout<=10?g.callOutTimeout:10,allowFeed:null!==(_=null==g?void 0:g.allowFeed)&&void 0!==_?_:0,nudgeStatus:null!==(_=null==g?void 0:g.nudgeStatus)&&void 0!==_?_:1,ads:null!==(_=null==g?void 0:g.ads)&&void 0!==_?_:0,adUnit:(null==g?void 0:g.adUnit)||"",callOutAds:null!==(_=null==g?void 0:g.callOutAds)&&void 0!==_?_:0,callOutAdUnit:(null==g?void 0:g.callOutAdUnit)||"",triggered:!1,status:null!==(_=null==g?void 0:g.status)&&void 0!==_?_:0,templateType:null!==(_=null==g?void 0:g.templateType)&&void 0!==_?_:2,isRSS:null!==(_=null==g?void 0:g.isRSS)&&void 0!==_?_:0,rid:(null==g?void 0:g.rid)||"",cid:null!==(_=null==g?void 0:g.cid)&&void 0!==_?_:0,rfiId:null!==(_=null==g?void 0:g.rfiId)&&void 0!==_?_:"",htmlVersion:{1:"3.1",2:"1.1"}},D.videoDropoff={status:null!==(_=null==w?void 0:w.status)&&void 0!==_?_:0,allowedUrls:(null==w?void 0:w.allowedUrls)||[]},D.CRPSPlaybook={status:null!==(_=null==S?void 0:S.status)&&void 0!==_?_:0,data:(null==S?void 0:S.data)||{},isPaidSubscriber:!1},D.exitIntent={status:null!==(_=null==y?void 0:y.status)&&void 0!==_?_:0,mobileAllowed:null!==(_=null==y?void 0:y.mobileAllowed)&&void 0!==_?_:1,desktopAllowed:null!==(_=null==y?void 0:y.desktopAllowed)&&void 0!==_?_:1,title:(null==y?void 0:y.title)||" ",titleColor:(null==y?void 0:y.titleColor)||"#000000",bgColor:(null==y?void 0:y.bgColor)||"#1194FF",onExit:null!==(_=null==y?void 0:y.onExit)&&void 0!==_?_:0,onScrollPercent:null!==(_=null==y?void 0:y.onScrollPercent)&&void 0!==_?_:0,onScroll:null!==(_=null==y?void 0:y.onScroll)&&void 0!==_?_:null!==(o=null==y?void 0:y.onScrollPercent)&&void 0!==o?o:0,onDelay:null!==(o=null==y?void 0:y.onDelay)&&void 0!==o?o:0,onBack:null!==(o=null==y?void 0:y.onBack)&&void 0!==o?o:1,repeatDelay:null!==(o=null==y?void 0:y.repeatDelay)&&void 0!==o?o:0,closeDelay:null!==(o=null==y?void 0:y.closeDelay)&&void 0!==o?o:60,cid:(null==y?void 0:y.cid)||0,rid:(null==y?void 0:y.rid)||"0",featureAdUnit:(null==y?void 0:y.featureAdUnit)||"",ads:null!==(o=null==y?void 0:y.ads)&&void 0!==o?o:0,adUnit:(null==y?void 0:y.adUnit)||"",logoURL:(null==y?void 0:y.logoURL)||"",feedHash:"",osnType:1,autoPopup:!0,multiAds:(null==y?void 0:y.multiAds)||0,adfc:null!==(o=null==y?void 0:y.adfc)&&void 0!==o?o:1,templateType:null!==(o=null==y?void 0:y.templateType)&&void 0!==o?o:2,htmlVersion:{1:"3.0",2:"1.0",3:"1.0",4:"1.0"},adsenceAdClient:"ca-pub-1416813385720292",adsenceAdSlot:"7591505742"},D.stickyBar={status:null!==(o=null==m?void 0:m.status)&&void 0!==o?o:0,title:(null==m?void 0:m.title)||"You might also like",titleColor:(null==m?void 0:m.titleColor)||"#FFFFFF",mobileAllowed:null!==(o=null==m?void 0:m.mobileAllowed)&&void 0!==o?o:1,desktopAllowed:null!==(o=null==m?void 0:m.desktopAllowed)&&void 0!==o?o:1,bgColor:(null==m?void 0:m.bgColor)||"#1194FF",repeatDelay:null!==(o=null==m?void 0:m.repeatDelay)&&void 0!==o?o:0,closeDelay:null!==(o=null==m?void 0:m.closeDelay)&&void 0!==o?o:60,cid:(null==m?void 0:m.cid)||0,rid:(null==m?void 0:m.rid)||"0",ads:null!==(o=null==m?void 0:m.ads)&&void 0!==o?o:0,adUnit:(null==m?void 0:m.adUnit)||"",autoPopup:!0,feedHash:"",osnType:2,adsenceAdClient:"ca-pub-1416813385720292",adsenceAdSlot:"7591505742"},D.articleShare={status:null!==(o=null==h?void 0:h.status)&&void 0!==o?o:0,repeatDelay:null!==(o=null==h?void 0:h.repeatDelay)&&void 0!==o?o:0,closeDelay:null!==(o=null==h?void 0:h.closeDelay)&&void 0!==o?o:60,cid:(null==h?void 0:h.cid)||0,rid:(null==h?void 0:h.rid)||"0",ads:null!==(o=null==h?void 0:h.ads)&&void 0!==o?o:0,adUnit:(null==h?void 0:h.adUnit)||"",type:3},D.convertBlockedUsers={status:null!==(o=null==T?void 0:T.status)&&void 0!==o?o:0,triggerType:null!==(o=null==T?void 0:T.triggerType)&&void 0!==o?o:0,promptDelay:null!==(o=null==T?void 0:T.promptDelay)&&void 0!==o?o:5,title:(null==T?void 0:T.title)||"",message:(null==T?void 0:T.message)||"",btnText:(null==T?void 0:T.btnText)||""},D.recommendArticle={status:null!==(o=null==v?void 0:v.status)&&void 0!==o?o:0},D.email={status:0,type:1,repeatPromptDelay:60,dataClientId:(null==P?void 0:P.dataClientId)||""},D.adBR={status:null!==(o=null==H?void 0:H.status)&&void 0!==o?o:0,adUnit:(null==H?void 0:H.adUnit)||"",logoSrc:(null==H?void 0:H.logoSrc)||"",rid:(null==H?void 0:H.rid)||"",cid:(null==H?void 0:H.cid)||0,templateId:1,htmlVersion:{1:"1.0"}},D);function D(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyMapper=void 0,t.KeyMapper={OPTIN_SHOWN:"optInShown",OPTIN_CLOSED:"optInClosed",OPTIN_ALLOWED:"optInAllowed",PROMPTED:"prompted",PROMPT_CLOSED:"promptclose",PROMPT_DENIED:"denied",PROMPT_ALLOWED:"allowed",SUBSCRIBED:"subscribed",ALREADY_GRANTED:"already_granted",OLD_SUBSCRIPTION:"old_subscription",SUBSCRIBER_REGISTRED:"subscriber_registred",ALREADY_DENIED:"already_denied",ALREADY_UNSUBSCRIBED:"already_unsubscribed",UNSUBSCRIBED:"unsubscribed",POPUP_OPEN:"popupOpened",POPUP_CLOSED:"popClosed",BROWSER_UNSUPPORTED:"browserUnsupported",NOTIFICATION_DISABLED:"notificationDisabled",REPEAT_DELAY:"repeatDelay",MESSENGER_PROMPTED:"messengerPrompted",MESSENGER_READY_SHOW:"messengerReadyToLoad",MESSENGER_READY:"messengerReady",MESSENGER_SUBSCRIBED:"messengerSubscribed",ONETAP:"izootoEmail",EMAIL_READY:"emailReady",EMAIL_INPROGRESS:"emailDisplay",EMAIL_CLOSED:"emailClosed",EMAIL_DISABLED:"emailDisabled",NEWSHUB_READY:"readyToShowNewsHub",NEWSHUB_FAILED:"newsHubFailed",NEWSHUB_OPEN:"newsHubOpen",NEWSHUB_CLOSED:"newsHubClosed",NEWSHUB_ANIMATIONEND:"newsHubAnimationEnd",EXITINTENT_SHOWN:"exitIntentShown",EXITINTENT_CLOSED:"exitIntentClosed",STICKYBAR_READY_SHOW:"stickyBarReadyToShow",STICKYBAR_SHOWN:"stickyBarShown",STICKYBAR_CLOSED:"stickyBarClosed",STICKYBAR_VISIBLE:"stickyBarVisible",STICKYBAR_HIDDEN:"stickyBarHidden",ARTICLESHARE_READY_SHOW:"articleShareReadyToShow",ARTICLESHARE_SHOWN:"articleShareShown",ARTICLESHARE_CLOSED:"articleShareClosed",ONSITE_ADS_ALLOWED:"onsAdsAllowed",ONSITE_ADS_REFRESH_COUNT:"onsAdsRefreshCount",ADBLOCK_READY_SHOW:"adblockReadyToShow",ADBLOCK_CLOSED:"adblockClosed",ONETAP_REPEAT_PROMPT_DELAY:"oneTapPromptDelay",EMAIL_NOT_SYNCED:"emailNotSynced",UUID:"izootoUID",PUSH_TOKEN:"izootoPushToken",STATS:"izootoStats",SYNC:"izootoSync",CONFIG:"izootoConfig",USER_PROPERTY:"izootoUserProp",MASTER_DOMAIN:"izootoMDConfig",SESSION:"izootoSession",RECOMMEND_ARTICLE:"izootoRecommendArticle",MESSENGER:"izootoMessenger",ACTIVE_PROMPT:"izootoActivePrompt",WP_COOKIE:"izootoWpConfig",PROMPT_COUNT:"promptCount",OPTIN_SHOWN_COUNT:"optInShownCount",DM_SYNC_COUNT:"dmSyncCount",EVENT_DAILY:"eventDaily",EVENT_MONTHLY:"eventMonthly",PROPERTY_DAILY:"propDaily",PROPERTY_MONTHLY:"propMonthly",PUSH_TOKEN_NOT_SYNCED:"pushTokenNotSynced",PERMISSION_STATUS:"permissionStatus",REPEAT_PROMPT_DELAY:"notificationPromptDelay",GDPR_CONSENT:"gdprStatus",TAB_ABANDONMENT:"tabAbandonment",IZCID:"IZCID",ALT_DOMAIN_STATUS:"altDomainStatus",IDB_VERSION:"idbVersion",CALLOUT_SHOWN:"calloutShown",TAB_ABANDONMENT_PUSH:"tabAbandonmentPush",LAST_EVENT_SYNC:"lastEventSync",LAST_PROPERTY_SYNC:"lastPropSync",FIRST_SESSION:"firstSession",CRPS_PLAYBOOK:"crpsPlaybook",NH_MARK_ALL_AS_READ:"newsHubMarkAllAsRead",SUBSCRIBED_ON:"subscribedOn",SESSION_EXPIRY:"expiry",SESSION_COUNT:"count",MSNGR_REPEAT_PROMPT_DELAY:"promptDelay",MSNGR_IS_SUBSCRIBED:"isSubscribed",EXITINTENT_DELAY:"exitIntentDelay",STICKYBAR_DELAY:"stickyBarDelay",SHAREARTICLE_DELAY:"shareArticleDelay",NEWSHUB_LASTEST_NOTIFICATION:"nhLatest",NEWSHUB_LATEST_OPEN_NOTIFICATION:"nhLastOpened",LAST_SYNC_OF_RECOMMEND_ARTICLE:"recommendArticle",RECOMMEND_ARTICLE_SYNCED_PATH:"syncedPath",MESSAGE:"izootoMsg",BROWSER_CHROME:"Chrome",BROWSER_SAFARI:"Safari",BROWSER_FIREFOX:"Firefox",BROWSER_OPERA:"Opera",BROWSER_IE:"Microsoft Internet Explorer",BROWSER_OTHER:"Other",BROWSER_UCB:"Ucb",BROWSER_EDGE:"Edge",DEVICE_TYPE_DESKTOP:1,DEVICE_TYPE_TABLET:2,DEVICE_TYPE_MOBILE:3,OS_WINDOWS:"windows",OS_LINUX:"linux",OS_MAC:"mac",OS_ANDROID:"android",OS_IOS:"ios",OS_WP:"wp",OS_OTHER:"other_os",MASTER_TO_CHILD:"izMasterToChild",CHILD_TO_MASTER:"izChildToMaster",MASTER_AS_FRAME:"izMasterAsFrame",DAILY:"daily",MONTHLY:"monthly",REQUEST_QUEUE:"requestQueue",POST_FORM:"postForm",POST_JSON:"postJson",INVALID_PAYLOAD:"Invalid Payload",SOMETHING_WRONG:"Something wrong",IZCIDDOM:"izsetcgid",USER_PROP:"userProp",SCROLL_DOWN:"downScroll",SCROLL_UP:"upScroll",SUBSCRIPTION_SYNCED:"synced",NUDGEUSER_DELAY:"nudgeuserDelay"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorageManager=void 0;var C=n(0),E=n(1),o=n(14),a=n(38),_=n(2),T=n(21),n=(M.updateLastSync=function(e){M.setConfigLocal(e,Date.now(),_.KeyMapper.SYNC)},M.setStorage=function(e,t){var n;a.LocalStorage.isLocalStorageSupport()?(e==_.KeyMapper.PUSH_TOKEN&&(n=decodeURIComponent(t),C.Helper.isJSONString(n)&&(n=JSON.parse(n)),o.CookieStorage.setWpCookie("push_token",n)),localStorage.setItem(e,t)):o.CookieStorage.setCookie(e,t)},M.getStorage=function(e){var t="";return null!=(t=a.LocalStorage.getLocalStorage(e))?e===_.KeyMapper.PUSH_TOKEN?decodeURIComponent(t):t:o.CookieStorage.getCookie(e)},M.removeStorage=function(e){o.CookieStorage.removeCookie(e),a.LocalStorage.removeLocalStorage(e)},M.removeConfigLocal=function(e,t){void 0===t&&(t=_.KeyMapper.CONFIG);var n={},o=a.LocalStorage.getLocalStorage(t);null!=(n=""!=o&&null!=o?C.Helper.parseToJSON(o):n).hasOwnProperty(e)&&delete n[e],a.LocalStorage.isLocalStorageSupport()&&a.LocalStorage.setLocalStorage(t,JSON.stringify(n))},M.setConfigLocal=function(e,t,n){void 0===n&&(n=_.KeyMapper.CONFIG);var o=Math.round((new Date).getTime()/1e3),i={},r=a.LocalStorage.getLocalStorage(n);(i=""!=r&&null!=r?(i=C.Helper.parseToJSON(r))||{}:i)[e]=null!=t&&""!==t?t:o,a.LocalStorage.isLocalStorageSupport()&&a.LocalStorage.setLocalStorage(n,JSON.stringify(i))},M.getConfigLocal=function(e,t){void 0===t&&(t=_.KeyMapper.CONFIG);var n=a.LocalStorage.getLocalStorage(t),o={},t="";return t=null!=(o=""!=n?(o=C.Helper.parseToJSON(n))||{}:o)&&null!=o[e]?o[e]:t},M.legacyStorageMigration=function(){try{if(M.getStorage(_.KeyMapper.UUID)||(E.Config.store.isMDSyncingRequired=!0),1==M.getConfigLocal("isLegacyStorageMigrated"))return;var e=M.getStorage("iztoken");e&&(M.setStorage(_.KeyMapper.PUSH_TOKEN,e),M.updateLastSync(_.KeyMapper.PUSH_TOKEN));var t=M.getConfigLocal("id","izConf");t&&M.setStorage(_.KeyMapper.UUID,t);var n,o=M.getStorage("izooto");o&&(E.Config.store.isMDSyncingRequired=!0,o=decodeURIComponent(o),C.Helper.isJSONString(o)&&(o=C.Helper.parseToJSON(o),n={token:JSON.stringify(o["iz_".concat(E.Config.client)].bkey),subscribed_on:o["iz_".concat(E.Config.client)].subscribed_on,uuid:M.getStorage(_.KeyMapper.UUID)},T.MasterDomain.setMasterStorage(n)));var i=M.getStorage("izstatus");i&&(i=decodeURIComponent(i),C.Helper.isJSONString(i)&&(i=C.Helper.parseToJSON(i),M.setConfigLocal(_.KeyMapper.PERMISSION_STATUS,i.v)));var r=M.getConfigLocal("pmtcount","izConf");r&&M.setConfigLocal(_.KeyMapper.PROMPT_COUNT,r,_.KeyMapper.STATS);var a=M.getConfigLocal("dscount","izConf");a&&M.setConfigLocal(_.KeyMapper.OPTIN_SHOWN_COUNT,a,_.KeyMapper.STATS);var s=M.getConfigLocal("IZCID","izConf");s&&(M.setConfigLocal(_.KeyMapper.IZCID,s),M.updateLastSync(_.KeyMapper.IZCID));var c=M.getStorage("izDl");c&&(c=decodeURIComponent(c),C.Helper.isJSONString(c)&&(c=C.Helper.parseToJSON(c),M.setConfigLocal(_.KeyMapper.REPEAT_PROMPT_DELAY,c.t)));var l=M.getConfigLocal("msngrSubscribed","izConf");l&&M.setConfigLocal(_.KeyMapper.MSNGR_IS_SUBSCRIBED,l);var u,d=M.getConfigLocal("msngrDl","izSync");d&&(d*=1e3,u=(d=new Date(d)).setTime(d.getTime()+60*E.Config.messenger.repeatDelay*1e3),M.setConfigLocal(_.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY,u.getTime()));var p=M.getStorage("izup");p&&M.setStorage(_.KeyMapper.USER_PROPERTY,decodeURIComponent(p));var f=M.getStorage("izmd");f&&M.setConfigLocal(_.KeyMapper.ALT_DOMAIN_STATUS,decodeURIComponent(f));var g=M.getStorage("izgdpr");g&&M.setConfigLocal(_.KeyMapper.GDPR_CONSENT,g);var y,m,h,S,b,v,w=M.getConfigLocal("iz_apihc","izConf");w&&C.Helper.isJSONString(w)&&(w=C.Helper.parseToJSON(w),y={},m=new Date,!w.hasOwnProperty("evt_pd")||(h=w.evt_pd)&&(h=h.split("#"),y[_.KeyMapper.EVENT_DAILY]=h[1],m.setDate(h[0])),w.hasOwnProperty("evt_pm")&&((S=w.evt_pm)&&(S=S.split("#"),y[_.KeyMapper.EVENT_MONTHLY]=S[1],m.setMonth(S[0]-1)),M.setConfigLocal(_.KeyMapper.LAST_EVENT_SYNC,m.getTime(),_.KeyMapper.SYNC)),!w.hasOwnProperty("prop_pd")||(b=w.prop_pd)&&(b=b.split("#"),y[_.KeyMapper.PROPERTY_DAILY]=b[1],m.setDate(b[0])),w.hasOwnProperty("prop_pm")&&((v=w.prop_pm)&&(v=v.split("#"),y[_.KeyMapper.PROPERTY_MONTHLY]=v[1],m.setMonth(v[0]-1)),M.setConfigLocal(_.KeyMapper.LAST_PROPERTY_SYNC,m.getTime(),_.KeyMapper.SYNC)),M.setConfigLocal(_.KeyMapper.DM_SYNC_COUNT,y,_.KeyMapper.STATS)),M.setConfigLocal("isLegacyStorageMigrated",1)}catch(e){M.setConfigLocal("isLegacyStorageMigrated",1)}},M.isSessionStorageSupport=function(){return"sessionStorage"in window&&null!==window.sessionStorage},M.setSessionStorage=function(e,t){sessionStorage.setItem(e,t)},M.getSessionStorage=function(e){return sessionStorage.getItem(e)},M.removeSessionStorage=function(e){sessionStorage.removeItem(e)},M);function M(){}t.StorageManager=n},function(e,t,n){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;na[0]&&t[1]a[0]&&t[1]e.getTime()&&(t=!0,d.Helper.displayLog("Wait until repeat prompt delay expire!"))),t},H.triggerPromptHandler=function(e){void 0===e&&(e=!1),y.Config.store.isNotificationCalledManually||(e&&(y.Config.store.isTriggerPromptWithDelay=!0),y.Config.store.isNotificationCalledManually=!0,H.promptHandler())},H.getCurrentSubscription=function(){return new Promise(function(t,e){try{var n=!1;H.getSWReadyRegistration().then(function(e){null!==(e=null==e?void 0:e.pushManager)&&void 0!==e&&e.getSubscription().then(function(e){e&&(n=JSON.stringify(e)),d.Helper.displayLog("Recovered Subscription : ",n),t(n)})}).catch(function(e){t(n)})}catch(e){}})},H.getSWRegistration=function(){return l(this,void 0,void 0,function(){return g(this,function(e){switch(e.label){case 0:return[4,navigator.serviceWorker.getRegistration(y.Config.notification.serviceWorkerPath)];case 1:return[2,e.sent()]}})})},H.getSWReadyRegistration=function(){return l(this,void 0,void 0,function(){var t=this;return g(this,function(e){return[2,new Promise(function(a,s){return l(t,void 0,void 0,function(){var t,n,o,i,r;return g(this,function(e){switch(e.label){case 0:return t=setTimeout(function(){s("Cannot get ServiceWorkerRegistration")},2e3),y.Config.notification.httpsNoRoot?[4,H.getSWRegistration()]:[3,2];case 1:return(n=e.sent())&&n instanceof ServiceWorkerRegistration?"activated"===(null==(o=n.installing||n.waiting||n.active)?void 0:o.state)?a(n):(i=function(){"activated"===(null==o?void 0:o.state)&&(window.clearTimeout(t),o.removeEventListener("statechange",i),a(n))},null!=o&&o.addEventListener("statechange",i)):s("Cannot get ServiceWorkerRegistration"),[3,4];case 2:return r=a,[4,navigator.serviceWorker.ready];case 3:r.apply(void 0,[e.sent()]),e.label=4;case 4:return[2]}})})})]})})},H.getResponseCode=function(e){var t={};t[b.KeyMapper.PROMPT_ALLOWED]={response:"subscribed",statuscode:1},t[b.KeyMapper.SUBSCRIBED]={response:"subscribed",statuscode:1},t[b.KeyMapper.ALREADY_GRANTED]={response:"already subscribed",statuscode:2},t[b.KeyMapper.PROMPT_DENIED]={response:"blocked",statuscode:3},t[b.KeyMapper.ALREADY_DENIED]={response:"already blocked",statuscode:4},t[b.KeyMapper.BROWSER_UNSUPPORTED]={response:"browser not supported",statuscode:5},t[b.KeyMapper.PROMPT_CLOSED]={response:"prompt closed",statuscode:6},t[b.KeyMapper.UNSUBSCRIBED]={response:"soft unsubscribed",statuscode:7},t[b.KeyMapper.ALREADY_UNSUBSCRIBED]={response:"already soft unsubscribed",statuscode:8},t[b.KeyMapper.OPTIN_ALLOWED]={response:"soft subscribed",statuscode:9},t[b.KeyMapper.SUBSCRIBER_REGISTRED]={response:"subscriber reregistered",statuscode:10};var n={};return n[b.KeyMapper.OPTIN_SHOWN]={response:"soft prompt displayed",statuscode:1},n[b.KeyMapper.OPTIN_CLOSED]={response:"soft prompt closed",statuscode:2},n[b.KeyMapper.PROMPTED]={response:"native prompt displayed",statuscode:3},n[b.KeyMapper.POPUP_OPEN]={response:"prompt window opened",statuscode:4},n[b.KeyMapper.POPUP_CLOSED]={response:"prompt window closed",statuscode:5},void 0!==t[e]?t[e]:void 0!==n[e]?n[e]:void 0},H.sendEvent=function(n,o){var e=this;if(d.Helper.displayLog("Event caught : ",n),P.ChannelEventHandler.event("webPush",n),M.NewsHub.sendEvent(n),H.CBUEvent(n),1!=y.Config.notification.windowType&&6!=y.Config.notification.windowType){var i=[b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.SUBSCRIBED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED,b.KeyMapper.ALREADY_DENIED,b.KeyMapper.BROWSER_UNSUPPORTED,b.KeyMapper.PROMPT_CLOSED,b.KeyMapper.UNSUBSCRIBED,b.KeyMapper.ALREADY_UNSUBSCRIBED,b.KeyMapper.OPTIN_ALLOWED],r=[b.KeyMapper.OPTIN_SHOWN,b.KeyMapper.OPTIN_CLOSED,b.KeyMapper.PROMPTED,b.KeyMapper.POPUP_OPEN,b.KeyMapper.POPUP_CLOSED],a=u([b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED],y.Config.notification.eventsToSync,!0);n!=b.KeyMapper.PROMPT_ALLOWED&&n!=b.KeyMapper.ALREADY_GRANTED||(H.syncPIDset(),S.GDPR.init(),H.syncHookInDb("syncNotificationView"),H.syncHookInDb("syncNotificationClick")),n==b.KeyMapper.PROMPT_ALLOWED&&""!=y.Config.notification.sourceOriginAlt&&H.removeSubsriptionFromAlternateDomain(),n!=b.KeyMapper.PROMPTED&&n!=b.KeyMapper.OPTIN_SHOWN||(H.updatePromptCount(n),H.setActivePrompt(5),p.StorageManager.removeStorage(b.KeyMapper.PUSH_TOKEN),0!=y.Config.notification.repeatPromptDelay&&H.setRepeatPromptDelay(y.Config.notification.repeatPromptDelay)),n==b.KeyMapper.OPTIN_CLOSED&&0!=y.Config.notification.optInCloseDelay&&H.setRepeatPromptDelay(y.Config.notification.optInCloseDelay),n!=b.KeyMapper.PROMPT_DENIED&&n!=b.KeyMapper.ALREADY_DENIED||(H.syncSendChurn(),H.subscribeOnBlocked()),n==b.KeyMapper.PROMPT_CLOSED&&p.StorageManager.removeStorage(b.KeyMapper.ACTIVE_PROMPT),h.IndexedDB.getValueFromiDbOptions("pushToken").then(function(e){var t;-1!=a.indexOf(n)&&(H.isSyncPermissionStatus&&H.updatePermissionStatus(n),null!=o?("object"==typeof o&&(o=JSON.stringify(o)),"object"==typeof e&&(e=JSON.stringify(e)),t=p.StorageManager.getStorage(b.KeyMapper.PUSH_TOKEN),e&&H.saveSubscritionToStorage(e),o!=(e||t)&&H.updateSubscriptionTokenForSync(o),n==b.KeyMapper.PROMPT_ALLOWED||n==b.KeyMapper.ALREADY_GRANTED?H.syncEvent(n,o):H.syncEvent(n)):H.syncEvent(n)),-1!=i.indexOf(n)&&(t=H.getResponseCode(n),n==b.KeyMapper.ALREADY_GRANTED&&(y.Config.store.isSoftSubscribeTriggered&&(t=H.getResponseCode(b.KeyMapper.SUBSCRIBED)),y.Config.store.isSubscriptionLost&&(t=H.getResponseCode(b.KeyMapper.SUBSCRIBER_REGISTRED))),H.subscriptionEventsCallback(n,t)),-1!=r.indexOf(n)&&H.promptDisplayCallback(n,H.getResponseCode(n))})}else try{var t="parent",s=[b.KeyMapper.SUBSCRIBED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED,b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.PROMPT_CLOSED,b.KeyMapper.ALREADY_DENIED];y.Config.global.isFrame||(t="opener",H.popupNoticeHandler(n)),H.getswVersion().then(function(e){d.Helper.postMessage(t,n,o,e)}).catch(function(e){d.Helper.postMessage(t,n,o),d.Helper.displayLog("Error while getting sw version")}).then(function(){return l(e,void 0,void 0,function(){return g(this,function(e){switch(e.label){case 0:return n!=b.KeyMapper.PROMPT_ALLOWED?[3,2]:[4,H.showWelcomeNotification(!1)];case 1:e.sent()&&d.Helper.postMessage(t,"syncWelcomeSent",1),e.label=2;case 2:return-1 "+e):H.sendMsgToSW(i,JSON.stringify(o)).then(function(e){t(e)}).catch(function(e){n(e)})}).catch(function(e){n("rejecting sw version undefined")})})})]})})},H.subscriptionHandler=function(){var e=this;return new Promise(function(o,i){return l(e,void 0,void 0,function(){var n,t;return g(this,function(e){switch(e.label){case 0:if(n=function(e){H.subscribe(e).then(function(e){o(e)}).catch(function(e){i(e)})},!(t=H.getPushTokenFromLStorage()))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,h.IndexedDB.addUpdate("pushToken",t)];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return H.registerServiceWorker().then(function(e){y.Config.notification.swSubscribe,y.Config.notification.serviceWorkerVersion,H.getSWReadyRegistration().then(function(t){y.Config.notification.swSubscribe?H.subscribeFromSW(t).then(function(e){o(e)}).catch(function(){n(t)}):H.subscriptionOnAllow?n(t):null!=t&&t.pushManager.getSubscription().then(function(e){e||(y.Config.store.isSubscriptionLost=!0),n(t)})}).catch(function(e){i({error:b.KeyMapper.BROWSER_UNSUPPORTED})})}).catch(function(e){i({error:b.KeyMapper.BROWSER_UNSUPPORTED})}),[2]}})})})},H.subscribe=function(i){return l(this,void 0,void 0,function(){return g(this,function(e){return y.Config.notification.subscriptionObj={userVisibleOnly:!0,applicationServerKey:d.Helper.urlB64ToUint8Array(y.Config.notification.vapidKey)},[2,new Promise(function(n,o){d.Helper.displayLog("Subscription initiated..."),null!=i&&i.pushManager.subscribe(y.Config.notification.subscriptionObj).then(function(e){d.Helper.displayLog("Subscrption : ",JSON.stringify(e)),n(e)}).catch(function(t){d.Helper.displayLog("Unable to subscribe due to error : ",t),null!=t.message&&(-1e.getTime()},H.updatePermissionStatus=function(e){e===b.KeyMapper.PROMPT_ALLOWED||e===b.KeyMapper.ALREADY_GRANTED||1===e?p.StorageManager.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,1):e===b.KeyMapper.PROMPT_DENIED||e===b.KeyMapper.ALREADY_DENIED||2==e?p.StorageManager.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,2):p.StorageManager.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,0),p.StorageManager.updateLastSync(b.KeyMapper.PERMISSION_STATUS)},H.sendPermissionStatusFromFrame=function(){var e=0;"Notification"in window&&"granted"==window.Notification.permission&&(e=1),d.Helper.postMessage("parent","izPermsStatus",e)},H.updateSubscriptionProcessor=function(e,t){var n=y.Config.UUID,o=p.StorageManager.getConfigLocal(b.KeyMapper.PERMISSION_STATUS);t=p.StorageManager.getStorage(b.KeyMapper.PUSH_TOKEN);t=H.getSubscriptionKey(t);"subscribe"==e?y.Config.store.isSoftSubscribeTriggered||(""!=t&&""!=n&&H.sendSubscriptionUpdate(n,0,function(){d.Helper.displayLog("Re-Subscribing")}),y.Config.store.isSoftSubscribeTriggered=!0,3==o&&p.StorageManager.removeConfigLocal(b.KeyMapper.PERMISSION_STATUS),H.triggerPromptHandler()):"unsubscribe"==e&&""!=t&&""!=n&&H.sendSubscriptionUpdate(n,2,function(){p.StorageManager.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,3),H.sendEvent(b.KeyMapper.UNSUBSCRIBED)})},H.sendSubscriptionUpdate=function(t,n,o){var i=0==n?d.Helper.getEndpoint("SoftSubscribe"):2==n?d.Helper.getEndpoint("SoftUnsubscribe"):d.Helper.getEndpoint("supUrl");d.Helper.getFlagBasedParameter().then(function(e){e.bKey=t,e.action=n,e.izcid=p.StorageManager.getConfigLocal(b.KeyMapper.IZCID),e.ht="https:"==y.Config.global.locationProtocol?1:0,f.HttpRequest.postForm(i,e).then(function(){o()}).catch(function(e){})})},H.scrollHandler=function(e){var t=window.screen.availHeight,n=window.scrollY;1!=y.Config.notification.isTriggeredOnScoll&&(t<=n||document.documentElement.scrollTop>=t)&&(y.Config.notification.isTriggeredOnScoll=1,e())},H.brandingOverlayHandler=function(){1==y.Config.notification.overlay?H.openHttpsOverlay():1==y.Config.branding&&H.openHttpsBranding()},H.openHttpsBranding=function(){var e;if(!(0"+e+""}catch(e){}},H.setManifest=function(){try{if(1!=y.Config.global.browserType||0!=y.Config.notification.subscriptionType)return;var e=document.getElementsByTagName("head")[0],t=document.createElement("link");t.rel="manifest",t.href=y.Config.notification.manifest,e.appendChild(t)}catch(e){}},H.tokenValidator=function(n,e){null==e&&(e=y.Config.UUID);e="".concat(d.Helper.getEndpoint("subscriptionValidator"),"?s=1&bkey=").concat(e,"&pid=").concat(y.Config.client);f.HttpRequest.get(e).then(function(e){var t=1;e=d.Helper.parseToJSON(e),null!=n&&(e.hasOwnProperty("status")&&0==e.status&&(t=0),n(t))}).catch(function(){})},H.checkAlternates=function(){"object"==typeof window._izAlternate?(null!=window._izAlternate.initAlt&&"function"==typeof window._izAlternate.initAlt&&window._izAlternate.initAlt(),Object.keys(window._izAlternate).map(function(n,e){Object.keys(window._izooto).map(function(e,t){e===n&&(window._izooto[e]=window._izAlternate[n])})})):d.Helper.displayLog("No alternate implementations found")},H.subcriptionToObject=function(e){return e="string"==typeof e&&d.Helper.isJSONString(e)?d.Helper.parseToJSON(e):e},H.isCurrentTokenExpired=function(e,t){var n=p.StorageManager.getConfigLocal(t,b.KeyMapper.SYNC),t=new Date;return!(t.getTime()lock icon in the website address bar.","Enable the Notifications toggle","Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_CHROME,"_").concat(b.KeyMapper.OS_MAC)]={type:2,instructions:["Click on the lock icon in the website address bar.","Under notifications, enable the toggle and change it to Allow","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_CHROME,"_").concat(b.KeyMapper.OS_ANDROID)]={type:8,instructions:["Tap on the lock icon in the website address bar","Tap on Permissions, and then Reset permissions","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_SAFARI,"_").concat(b.KeyMapper.OS_MAC)]={type:3,instructions:["Click on Safari -> Preferences","Under Websites -> Notifications, select “Allow” from the dropdown","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:4,instructions:["Click on the Notifications icon in the website address bar","Clear the blocked status and reload the page","Click on “Allow” when prompted to subscribe","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_MAC)]={type:7,instructions:["Click on the Notifications icon in the website address bar","Clear the blocked status and reload the page","Click on “Allow” when prompted to subscribe","All Set! You’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_ANDROID)]={type:9,instructions:["Tap on the lock icon in the website address bar","Under notifications, change status to “Allowed”","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:5,instructions:["Click on the lock icon in the website address bar","Enable the Notifications toggle","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_MAC)]={type:6,instructions:["Click on the lock icon in the website address bar","Enable the Notifications toggle","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_ANDROID)]={type:10,instructions:["Tap on the green tick icon in the website address bar","Under permissions, set notifications as “Allowed”.","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_EDGE,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:11,instructions:["Click on the lock icon in the website address bar","Under ‘Permissions for the site’, click on Allow notifications","All Set! Refresh the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_EDGE,"_").concat(b.KeyMapper.OS_MAC)]={type:12,instructions:["Click on the bell icon in the website address bar","Click on Allow notifications","All Set! Refresh the page and you’re good to go! 🎉"]},!!e.hasOwnProperty(t)&&e[t]},H.setCbuDialogRepeatPromptDelay=function(){var e=(e=new Date).setTime(e.getTime()+6048e5);p.StorageManager.setConfigLocal(b.KeyMapper.NUDGEUSER_DELAY,e)},H.isCbuRepeatDelayed=function(){var e=!1,t=new Date,n=p.StorageManager.getConfigLocal(b.KeyMapper.NUDGEUSER_DELAY);return""!=n&&n>t.getTime()&&(e=!0,d.Helper.displayLog("Wait until convert block user prompt repeat delay expire!")),e},H.subscribeOnBlocked=function(){var t;H.isOnBlockedRegister||(H.isOnBlockedRegister=!0,t=setInterval(function(){var e;"granted"==(null===(e=window.Notification)||void 0===e?void 0:e.permission)&&(clearInterval(t),d.Helper.displayLog("User granted prompt mannually!"),H.nativeHandler())},200))},H.canSupportIOSPush=function(){return m.Notification.isWebPushEnabled&&y.Config.global.browserName==b.KeyMapper.BROWSER_SAFARI&&"16.4"<=y.Config.global.browserVer&&d.Helper.isIos()},H.IOSManifestHandler=function(){return l(this,void 0,void 0,function(){var t,n,o,i,r,a;return g(this,function(e){try{t=document.querySelector("link[rel='manifest']"),n=H.getManifestData(),o=JSON.stringify(n),i=new Blob([o],{type:"application/json"}),r=URL.createObjectURL(i),t?d.Helper.displayLog("Manifest file already exist!",t.href):((a=document.createElement("link")).rel="manifest",a.id="iz-manifest",a.href=r,document.head.appendChild(a),d.Helper.displayLog("Manifest file added by SDK"))}catch(e){d.Helper.displayLog("IOSManifestHandler error",e)}return[2]})})},H.getManifestData=function(){try{var e={name:H.siteName,display:"standalone",start_url:window.location.origin},t=document.querySelector('link[rel="shortcut icon"]')||document.querySelector('link[rel="icon"]');return t&&(e.icons=[{src:null==t?void 0:t.href,sizes:"any"}]),e}catch(e){return{}}},Object.defineProperty(H,"siteName",{get:function(){var e=window.location.hostname.split(".");return"www"===e[0]&&e.splice(0,1),null!=e&&e.pop(),e.map(function(e){return H.capitalizString(e)}).join(" ")},enumerable:!1,configurable:!0}),H.capitalizString=function(e){void 0===e&&(e="");try{if(e)return e[0].toUpperCase()+e.slice(1)}catch(e){}},H.alternateDomainJson="",H.alternateDomainIndex=0,H.permissionDomain="",H.isSyncPermissionStatus=!0,H.subscriptionOnAllow=!0,H.subscriptionSyncedFromSW=!1,H.minSWVersion="4.22",H.isUnBlockPopupInitialize=!1,H.isOnBlockedRegister=!1,H.permissionStatus="",H.subscriptionSource=0,H.syncableEvents=[,b.KeyMapper.PROMPTED,b.KeyMapper.OPTIN_SHOWN,b.KeyMapper.OPTIN_ALLOWED,b.KeyMapper.OPTIN_CLOSED,b.KeyMapper.ALREADY_DENIED],H);function H(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelEventHandler=void 0;var r,a=n(2),o=n(1),i=n(9),s=n(22),c=n(8),l=n(25),u=n(26),d=n(27),p=n(23),f=n(13),g=n(24);(n=r=r||{}).NOT_STARTED="NOT_STARTED",n.COMPLETED="COMPLETED",n.INPROGRESS="INPROGRESS",n.READY_TO_SHOW="READY_TO_SHOW",n.DISABLED="DISABLED";t.ChannelEventHandler=(y.event=function(e,t){var n=[a.KeyMapper.PROMPTED,a.KeyMapper.POPUP_OPEN,a.KeyMapper.OPTIN_SHOWN,a.KeyMapper.OPTIN_ALLOWED],o=[a.KeyMapper.ALREADY_GRANTED,a.KeyMapper.ALREADY_DENIED,a.KeyMapper.PROMPT_DENIED,a.KeyMapper.BROWSER_UNSUPPORTED,a.KeyMapper.PROMPT_ALLOWED,a.KeyMapper.OPTIN_CLOSED,a.KeyMapper.NOTIFICATION_DISABLED,a.KeyMapper.PROMPT_CLOSED,a.KeyMapper.REPEAT_DELAY],i=[a.KeyMapper.NEWSHUB_CLOSED,a.KeyMapper.NEWSHUB_FAILED];"webPush"==e&&(-1a[0]&&t[1]a[0]&&t[1]=e||4==d.Config.exitIntent.templateType&&6<=n.length){t=void 0,t=f.getSortedFeed(n),n=(t=f.getFeaturedFeed(t))[0];return t.shift(),t.sort(function(e,t){return.5-Math.random()}),t.unshift(n),t.splice(0,e)}},f.getSortedFeed=function(e){if(""==e[0].m)for(var t=1;t=window.innerHeight&&(e=!0,u.StickyBar.stickyBarInitializeDialog()),!1)},200);document.addEventListener("scroll",function(){t()},!1)},f.setExitIntentFeed=function(e){if((e.length==s.Main.widgetData.maxAllowedPost||4==d.Config.exitIntent.templateType&&6<=e.length)&&"object"==typeof e)return 1==d.Config.exitIntent.templateType||3==d.Config.exitIntent.templateType?(s.Main.widgetData.largePostData=e[0],e.shift(),s.Main.widgetData.smallPostData=e):s.Main.widgetData.template2PostData=e,!0},f.geStickyBarDialogToDisplay=function(e){return r(this,void 0,void 0,function(){return c(this,function(e){return[2,new Promise(function(e,t){try{f.setStickyBarArticle(),f.stickyBarApplyConfigStyle(),e(f.getTypedDomElement(".iz_osn",d.Config.stickyBar.osnType))}catch(e){t()}})]})})},f.setStickyBarArticle=function(){var e=f.getTypedDomElement(".".concat(f.osnPrefix,"carousel"),d.Config.stickyBar.osnType),t=f.getTypedDomElement(".".concat(f.osnPrefix,"notification"),d.Config.stickyBar.osnType);u.StickyBar.singlePostHTML=t,f.defaultImage=t.querySelector("img").src,null!=t&&t.remove();for(var n=0;n *"),n={},o=new IntersectionObserver(function(e,t){e=e.reduce(function(e,t){return t.intersectionRatio>e.intersectionRatio?t:e});0a[0]&&t[1]o.width&&(t=document.querySelector("".concat(i," .iz-news-hub-customer-icon-container")),(n=v.bluredBackgroudImage.cloneNode(!0)).querySelector("image").setAttribute("href",o.src),t.appendChild(n))}catch(e){u.Helper.displayLog("Newshub error onLoad",e)}}):"title"==t?o.innerHTML=u.Helper.removeHtmlTagsFromString(n[t]):"createdAt"!=t||null==n[t]&&null==n[t]?"createdAt"!=t||null==n[t]&&null==n[t]||(o.style.visibility="hidden"):o.innerText=n[t]}catch(e){u.Helper.displayLog("Error in append news payload- ".concat(t,":"),n)}}(t);null!==(e=document.querySelector("#posts-content-cotainer"))&&void 0!==e&&e.insertAdjacentHTML("beforeend",r.outerHTML),v.nhFeed.isNoNotification&&(v.nhFeed.isNoNotification=!1),v.rtlFlag&&(v.rtlFlag=!1,v.detectRTL()),null!==(e=document.querySelector(i))&&void 0!==e&&e.addEventListener("click",function(e){var t;v.closeShareTab(),v.isFeedSourceRSS||v.nhFeed.setPayloadData(n.id,{clickedAt:Date.now()}),d.GoogleAnalytics.processNewsHub("Article Clicked"),u.Helper.syncClick(v.getPayloadToSync(n),"newshub"),null!==(t=window.open(n.url,"_blank"))&&void 0!==t&&t.focus()},!1),1==l.Config.global.deviceType&&((o=document.querySelector("".concat(i," ").concat(s.ELM_SELECTOR.sharesheetTrigger))).classList.add("share-before-desktop"),null!==(a=document.querySelector(i))&&void 0!==a&&a.addEventListener("mouseleave",function(e){o.style.visibility="hidden",v.closeShareTab()},!1),null!==(a=document.querySelector(i))&&void 0!==a&&a.addEventListener("mouseenter",function(e){o.style.visibility="visible"},!1));var a=document.querySelector("".concat(i," ").concat(s.ELM_SELECTOR.sharesheetTrigger));null!=a&&a.addEventListener("click",function(e){var t=document.querySelector("".concat(i," ").concat(s.ELM_SELECTOR.shareSheetTab));t&&("flex"==t.style.display?v.closeShareTab():(v.closeShareTab(),t.style.display="flex",v.addShareSheetAnimationClass(t),v.setSocialShareLink(i,n),d.GoogleAnalytics.processNewsHub("Clicked Share"))),e.stopPropagation()},!0)},v.addShareSheetAnimationClass=function(e){try{var t=0;e.querySelectorAll("svg").forEach(function(e){v.isCrios?e.style.opacity="1":(setTimeout(function(){e.style.opacity="1",e.classList.add("iz-share-icons-animation")},t),t+=50)})}catch(e){u.Helper.displayLog("Newshub animation error",e)}},v.setSocialShareLink=function(n,e){try{var t,o=v.getSharingLink(e.url);for(t in o)!function(t){var e=document.querySelector("".concat(n," ").concat(s.ELM_SELECTOR.socialSharePrefix).concat(t));"link"==t?e.onclick=function(e){e.stopPropagation(),v.copyNewsLinkToClipboard(o[t]),d.GoogleAnalytics.processNewsHub("Shared on","copy link")}:(e.onclick=function(e){e.stopPropagation(),d.GoogleAnalytics.processNewsHub("Shared on",t)},e.href=o[t])}(t)}catch(e){u.Helper.displayLog("set social share error:",e)}},v.closeShareTab=function(){try{var e=document.querySelectorAll(s.ELM_SELECTOR.shareSheetTab);null!=e&&e.forEach(function(e){e.style.display="none",e.querySelectorAll("svg").forEach(function(e){e.style.opacity="0",e.classList.remove("iz-share-icons-animation")})})}catch(e){u.Helper.displayLog("close action list error:",e)}},v.getSharingLink=function(e){return e=u.Helper.replaceQueryParam(e,"utm_campaign","Share"),{link:decodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","link_copy")),whatsapp:"https://api.whatsapp.com/send?text=".concat(encodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","whatsapp"))),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","facebook"))),twitter:"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","twitter")),"&text="),mail:"mailto:info@example.com?&subject=&cc=&bcc=&body=".concat(encodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","mail"))),linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(u.Helper.replaceQueryParam(e,"utm_content","linkedin")))}},v.render=function(){return n(this,void 0,void 0,function(){return c(this,function(e){return[2,new Promise(function(t,e){var n=l.Config.newsHub.templateType,o=l.Config.newsHub.htmlVersion[n];u.Helper.displayLog("Rendering News Hub");o="https://cdn.izooto.com/newshub/widgets/".concat(n,"/v").concat(o,".html");i.HttpRequest.get(o).then(function(e){try{if(!e)return void a.ChannelEventHandler.event("newsHub",r.KeyMapper.NEWSHUB_FAILED);u.Helper.addHTML("div",e,"iz-newshub-container").style.cssText="position:absolute;z-index:2147483647;",v.setMinimumNotificationToShow(),v.isNewsContainerLoaded=!0,v.animatedLoaderHtmlElement=document.querySelector(s.ELM_SELECTOR.animatedLoader),u.Helper.removeHTML(v.animatedLoaderHtmlElement),v.bluredBackgroudImage=document.querySelector("."+s.NH_PREFIX+"blur-image-container"),u.Helper.removeHTML(v.bluredBackgroudImage),v.noticationHtmlElement=document.querySelector("."+s.NH_PREFIX+"notification"),u.Helper.removeHTML(v.noticationHtmlElement),v.footerTextElement=document.querySelector("#"+s.NH_PREFIX+"end-text"),u.Helper.removeHTML(v.footerTextElement),v.webPushHandler(),v.applyConfigStyle();try{document.querySelector("."+s.NH_PREFIX+"branding-text").href="https://www.izooto.com/campaign/getting-started-with-news-hub-izooto?utm_source=referral&utm_medium=news_hub&utm_campaign="+l.Config.notification.siteUrl}catch(e){u.Helper.displayLog("newshub branding hide error")}v.attachEventListner(),t(1)}catch(e){a.ChannelEventHandler.event("newsHub",r.KeyMapper.NEWSHUB_FAILED),u.Helper.displayLog("Error while rendering newshub : ",e)}})})]})})},v.attachEventListner=function(){var e,t;try{var n=document.querySelector("#"+s.NH_PREFIX+"posts-main-container");n.addEventListener("scroll",function(){n.scrollHeight-50o.verticalOffset&&(e=o.verticalOffset),n.verticalOffset=o.verticalOffset+e),t&&(t<=0&&Math.abs(t)>o.horizontalOffset?(t=o.horizontalOffset,v.userDefinedPositions.shiftHorizontal=t,n.horizontalOffset=v.userDefinedPositions.shiftHorizontal-o.horizontalOffset):n.horizontalOffset=o.horizontalOffset+t),n},v.applyUserDefinedPositions=function(){try{var e=v.getUserDefinedFinalPositions(),t="#iz-news-hub-discovr-outer-wrapper.iz-news-hub-floating-icon-container-".concat(v.topOrBottomPlacement,"-").concat(v.leftOrRightPlacement," {\n\t\t\t\t").concat(void 0!==e.verticalOffset&&null!==e.verticalOffset?"".concat(v.topOrBottomPlacement,": ").concat(e.verticalOffset,"px!important;"):"","\n\t\t\t\t").concat(void 0!==e.horizontalOffset&&null!==e.horizontalOffset?"".concat(v.leftOrRightPlacement,": ").concat(e.horizontalOffset,"px!important;"):"","\n\t\t\t}"),n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");n.appendChild(o),o.type="text/css",o.appendChild(document.createTextNode(t))}catch(e){}},v.getCurrentPosition=function(){var e=v.topOrBottomPlacement,t=v.leftOrRightPlacement,n="iz-news-hub-floating-icon-container-".concat(e,"-").concat(t),n=document.getElementsByClassName(n)[0];if(null!=n){n=window.getComputedStyle(n),e="bottom"===e?n.getPropertyValue("bottom"):n.getPropertyValue("top"),n="right"===t?n.getPropertyValue("right"):n.getPropertyValue("left");return{verticalOffset:parseInt(e.slice(0,-2)),horizontalOffset:parseInt(n.slice(0,-2))}}},v.triggerButtonVisibiltyHandler=function(){try{var e,t,n,o,i,r=document.querySelector(s.ELM_SELECTOR.triggerSticky),a=document.querySelector(s.ELM_SELECTOR.triggerFloating);r.style.display="none",a.style.display="none",l.Config.newsHub.autoWidget&&(2==l.Config.newsHub.designType?(r.style.display="flex",l.Config.newsHub.placement[1]||r.classList.add(s.NH_PREFIX+"sidebar-container-left")):(a.style.display="flex",e=l.Config.newsHub.placement[0]?"bottom":"top",t=l.Config.newsHub.placement[1]?"right":"left",n="".concat(s.NH_PREFIX,"floating-icon-container-").concat(e,"-").concat(t),a.classList.contains(n)||a.classList.add(n)),setTimeout(function(){var e;null!==(e=document.querySelector("".concat(s.ELM_SELECTOR.triggerFloating," ").concat(s.ELM_SELECTOR.mainIcon)))&&void 0!==e&&e.classList.add("izooto-news-hub-swing-animation")},1e3),1==l.Config.newsHub.iconType?document.querySelectorAll(s.ELM_SELECTOR.mainIcon).forEach(function(e){e.style.display="none"}):(1==l.Config.newsHub.designType&&(document.querySelector(s.ELM_SELECTOR.bellIcon).style.display="none"),2==l.Config.newsHub.designType&&document.querySelectorAll("#iz-newshub-bell-svg").forEach(function(e){e.style.display="none"}),o="https://cdn.izooto.com/newshub/icons/".concat(l.Config.newsHub.iconType,".svg"),document.querySelectorAll(s.ELM_SELECTOR.mainIcon).forEach(function(e){e.src=o}))),l.Config.newsHub.mainColor&&(i=document.querySelector("#".concat(s.NH_PREFIX,"sticky-sidebar-dummy-text")),document.querySelector("#"+s.NH_PREFIX+"title-container").style.backgroundColor=l.Config.newsHub.mainColor,r.style.backgroundColor=l.Config.newsHub.mainColor,i.style.backgroundColor=l.Config.newsHub.mainColor,a.querySelector("#"+s.NH_PREFIX+"icon-container").style.backgroundColor=l.Config.newsHub.mainColor,1==l.Config.newsHub.iconType&&(document.querySelector("#iz-news-hub-bell-clapper").style.fill=l.Config.newsHub.mainColor,document.querySelector(".iz-newsHub-bell-shell").style.fill=l.Config.newsHub.mainColor)),l.Config.branding||(document.querySelector("."+s.NH_PREFIX+"header-branding-text").style.display="none")}catch(e){u.Helper.displayLog("Error while applying config:",e)}},v.getAnimationProperty=function(e){var t=document.querySelector(s.ELM_SELECTOR.newsHubCotainerId),n={animationDirection:"open"==e?"normal":"reverse"};return 1==l.Config.newsHub.templateType||2==l.Config.newsHub.designType?(null!=t&&t.classList.add("izootoSlideAnimation"),n.animationClassName="izooto-slide-".concat("open"==e?"in":"out","-").concat(v.leftOrRightPlacement,"-animation")):n.animationClassName="".concat(s.NH_PREFIX,"scale-").concat(v.topOrBottomPlacement,"-").concat(v.leftOrRightPlacement),n},v.openWidget=function(){var e=(t=v.getAnimationProperty("open")).animationClassName,t=t.animationDirection;document.documentElement.style.setProperty("--direction",t),v.isNewsContainerLoaded&&(v.isDataLoaded||(v.isDataLoaded=!0,v.showNotificationContent().then(function(){v.hideNewIndicator()})),(t=document.querySelector(s.ELM_SELECTOR.newsHubCotainerId)).style.display="flex",u.Helper.onAnimationOnEnd(t,e,!0).then(function(){return v.isNewsHubOpened=!0}),a.ChannelEventHandler.event("newsHub",r.KeyMapper.NEWSHUB_OPEN),v.isGAEventSent.open||(v.isGAEventSent.open=!0,d.GoogleAnalytics.processNewsHub("Widget Click")),v.syncEventsWithAPI("syncNewshubOpen","wopen"),e=0,(e=l.Config.newsHub.ads&&l.Config.newsHub.adUnit&&0==v.adLoaded?1:e)&&v.adsHandler(e,!1))},v.closeWidget=function(){var e=(t=v.getAnimationProperty("close")).animationClassName,t=t.animationDirection;document.documentElement.style.setProperty("--direction",t),v.closeShareTab();var n=document.querySelector(s.ELM_SELECTOR.newsHubCotainerId);v.animationProgress=!0,u.Helper.onAnimationOnEnd(n,e,!0).then(function(){v.isNewsHubOpened=!1,n.style.display="none",a.ChannelEventHandler.event("newsHub",r.KeyMapper.NEWSHUB_CLOSED)}),v.isGAEventSent.close||(v.isGAEventSent.close=!0,d.GoogleAnalytics.processNewsHub("Widget Close"))},v.setElmStyles=function(){try{var e=document.querySelector("#iz-news-hub-sticky-sidebar");l.Config.newsHub.placement[1]?(e.style.left="unset",e.style.right="-"+(e.clientWidth/2-e.clientHeight/2)+"px"):(e.clientWidth,e.clientHeight,e.style.right="unset",e.style.left="-"+(e.clientWidth/2-e.clientHeight/2)+"px")}catch(e){}},v.copyNewsLinkToClipboard=function(e){try{v.closeShareTab();var t=document.querySelector("#"+s.NH_PREFIX+"copied-main");if(clearTimeout(v.copiedTimeoutInstance),t.style.display="block",v.copiedTimeoutInstance=setTimeout(function(){t.style.display="none"},3e3),!navigator.clipboard){var n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");n.remove()}catch(e){u.Helper.displayLog("Fallback: Oops, unable to copy",e)}return}navigator.clipboard.writeText(e).then(function(){},function(e){u.Helper.displayLog("Async: Could not copy text: ",e)})}catch(e){u.Helper.displayLog("Error: Could not copy text: ",e)}},v.showLoader=function(e){var t;void 0===e&&(e=1);for(var n=1;n<=e;n++)null!==(t=document.querySelector("#posts-content-cotainer"))&&void 0!==t&&t.insertAdjacentHTML("beforeend",v.animatedLoaderHtmlElement.outerHTML)},v.hideLoader=function(){document.querySelectorAll(s.ELM_SELECTOR.animatedLoader).forEach(function(e){e.parentNode.removeChild(e)})},v.showFooterMessage=function(){var e,t,n;try{if(v.nhFeed.isNoNotification)return;null!==(e=document.querySelector(s.ELM_SELECTOR.notificationWrapperId))&&void 0!==e&&e.appendChild(v.footerTextElement),1==l.Config.newsHub.templateType||(n=u.Helper.getDomElement(s.ELM_SELECTOR.alertContainer),null!==(t=document.querySelector(s.ELM_SELECTOR.notificationWrapperId))&&void 0!==t&&t.appendChild(n)),v.footerTextElement.style.display="block"}catch(e){}},v.detectRTL=function(){var e=document.querySelector("."+s.NH_PREFIX+"customer-icon-container");15o.naturalWidth||o.naturalWidth==o.naturalHeight)&&((t=v.bluredBackgroudImage.cloneNode(!0)).querySelector("image").setAttribute("href",o.src),n.appendChild(t),o.style.objectFit="contain")}catch(e){u.Helper.displayLog("Newshub discoverability image error onLoad",e)}}},v.crossIcon=function(){var e=1==l.Config.newsHub.iconType?s.ELM_SELECTOR.bellIcon:s.ELM_SELECTOR.mainIcon;return{show:function(){u.Helper.hideElement(e),u.Helper.showElement(s.ELM_SELECTOR.crossIcon),u.Helper.addClass(s.ELM_SELECTOR.triggerFloating,"iz-news-hub-cross-visible")},hide:function(){u.Helper.showElement(e),u.Helper.hideElement(s.ELM_SELECTOR.crossIcon),u.Helper.removeClass(s.ELM_SELECTOR.triggerFloating,"iz-news-hub-cross-visible")}}},v.stickyAnimationHandler=function(){b.NHCallout.isCallOutClose=!1,document.querySelector("#iz-news-hub-sticky-sidebar").style.visibility="visible";var e=document.querySelector("#".concat(s.NH_PREFIX,"sticky-sidebar")),t=l.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideIn-right":"iz-news-hub-stickybar-slideIn-left",n=l.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideOut-right":"iz-news-hub-stickybar-slideOut-left";e.classList.add(t),e.addEventListener("animationend",function(){setTimeout(function(){e.classList.replace(t,n),v.widgetClicked?e.classList.remove(n):(b.NHCallout.showCallout(),b.NHCallout.calloutCloseHandler())},3e3)},{once:!0})},v.bellAnimationHandler=function(){try{var e,t,n;b.NHCallout.isCallOutClose=!1,1==l.Config.newsHub.iconType?(e=document.querySelector(s.ELM_SELECTOR.iconContainer),t=document.querySelector("#iz-news-hub-bell-group"),n=document.querySelector("#iz-news-hub-bell-clapper"),e.addEventListener("animationend",function(){setTimeout(function(){t.classList.add("iz-news-hub-bell-group"),n.classList.add("iz-news-hub-bell-clapper"),t.addEventListener("animationend",function(){t.classList.remove("iz-news-hub-bell-group"),n.classList.remove("iz-news-hub-bell-clapper")})},1500)},{once:!0}),t.addEventListener("animationend",function(){setTimeout(function(){v.widgetClicked||(b.NHCallout.showCallout(),b.NHCallout.calloutCloseHandler())},1500)},{once:!0})):document.querySelector("#izooto-news-hub-swing-animation").addEventListener("animationend",function(){setTimeout(function(){v.widgetClicked||(b.NHCallout.showCallout(),b.NHCallout.calloutCloseHandler())},1500)},{once:!0})}catch(e){u.Helper.displayLog("bell animate handler error",e)}},v.sendEvent=function(e){if(l.Config.newsHub.status)switch(e){case r.KeyMapper.PROMPT_ALLOWED:case r.KeyMapper.ALREADY_GRANTED:case r.KeyMapper.PROMPT_DENIED:case r.KeyMapper.ALREADY_DENIED:v.webPushHandler();break;case r.KeyMapper.OPTIN_SHOWN:v.isNotificationOptinShowing=!0,v.webPushHandler();break;case r.KeyMapper.OPTIN_CLOSED:v.isNotificationOptinShowing=!1,v.webPushHandler()}},v.webPushHandler=function(){var e=f.NotificationHelper.getGIFUrl();if(m.Notification.isWebPushEnabled&&l.Config.notification.isSupported&&l.Config.newsHub.nudgeStatus&&v.isNewsContainerLoaded&&e)switch(null===(e=null===window||void 0===window?void 0:window.Notification)||void 0===e?void 0:e.permission){case"default":v.isNotificationOptinShowing?v.hideNudgeBar():v.webPushPermissionDefaultHandler();break;case r.KeyMapper.PROMPT_DENIED:v.webPushPermissionDeniedHandler();break;case"granted":v.hideNudgeBar()}},v.webPushPermissionDefaultHandler=function(){u.Helper.showElement(".".concat(s.NH_PREFIX,"noti-default-wrapper"),!1),u.Helper.hideElement(".".concat(s.NH_PREFIX,"noti-blocked-wrapper"));var e=document.querySelector(".".concat(s.NH_PREFIX,"noti-default-wrapper button"));null!=e&&e.addEventListener("click",function(){f.NotificationHelper.subscriptionSource=1,f.NotificationHelper.nativeHandler()})},v.webPushPermissionDeniedHandler=function(){var e,t;try{var n=f.NotificationHelper.getGIFUrl();0!=n&&(u.Helper.hideElement(".".concat(s.NH_PREFIX,"noti-default-wrapper")),u.Helper.showElement(".".concat(s.NH_PREFIX,"noti-blocked-wrapper"),!1),document.querySelector(".iz-news-hub-noti-blocked-wrapper img").src=n,null!==(e=document.querySelector(".".concat(s.NH_PREFIX,"noti-blocked-wrapper .know-more-txt")))&&void 0!==e&&e.addEventListener("mouseenter",function(){f.NotificationHelper.subscriptionSource=2})),f.NotificationHelper.subscribeOnBlocked(),null!==(t=u.Helper.getDomElement("#".concat(s.NH_PREFIX,"notifications-body-container")))&&void 0!==t&&t.classList.add("iz-news-hub-unsubscribe")}catch(e){}},v.hideNudgeBar=function(){u.Helper.hideElement(".".concat(s.NH_PREFIX,"noti-blocked-wrapper")),u.Helper.hideElement(".".concat(s.NH_PREFIX,"noti-default-wrapper"))},v.setMinimumNotificationToShow=function(){var e;1==l.Config.newsHub.templateType&&(e=parseInt(window.getComputedStyle(u.Helper.getDomElement(s.ELM_SELECTOR.notificationWrapperId)).height),v.minimumNotificationToShow=Math.ceil(e/106+1)||12)},v.getAdConfig=function(i){var t=this;return new Promise(function(o,e){return n(t,void 0,void 0,function(){var t,n;return c(this,function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),i?[4,b.NHCallout.getCalloutAdConfig()]:[3,2];case 1:return n=e.sent(),o(n),[3,3];case 2:t=l.Config.newsHub.adUnit,n=[{adContainerId:"#iz-news-hub-ads-container",adId:"iz-nh-ads",adUnit:t,adFormat:"article",adSize:{GAM:21092==l.Config.client?[[300,250]]:[[320,50],[320,100],[300,50],[300,100]],adgebra:"200x100",tpAdSize:"320x100",Adsence:21092==l.Config.client?[300,250]:[300,100]}}],o(n),e.label=3;case 3:return[3,5];case 4:return e.sent(),o(!1),[3,5];case 5:return[2]}})})})},v.adsHandler=function(i,a){return n(this,void 0,void 0,function(){var r,t,n,o;return c(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,v.getAdConfig(a)];case 1:if(r=e.sent()){if(1==i)for(t=function(e){var t,n=(t=r[e]).adContainerId,o=t.adId,e=t.adUnit,i=t.adSize;g.GAM.createAdContainer(n,o),g.GAM.loadGAMAds(o,e,i.GAM).then(function(){v.adSuccessHandler(a,o)}).catch(function(){h.Adgebra.loadAd(i.adgebra).then(function(e){v.setArticleAd(a,e,n,o),v.adSuccessHandler(a,o,!0)}).catch(function(){v.adFailureHandler(n,a)})})},o=0;o Subscription not found: ",e[0]);if("event"===e[0]&&void 0!==e[1]&&"string"==typeof e[1]&&""!==e[1])o.NotificationHelper.userEventProcessor(e[1],e[2]),o.NotificationHelper.syncAsTrigger(e[1],e[2]),o.NotificationHelper.syncAsUserProperties(e[1],e[2]);else if("triggerPromptWithDelay"==e[0])o.NotificationHelper.triggerPromptHandler(!0);else if("triggerPrompt"==e[0])o.NotificationHelper.triggerPromptHandler();else{if("customizeOptInPrompt"===e[0]&&"object"==typeof e[1])return void o.NotificationHelper.customizeOptInPrompt(e[1]);if("syncFCMToken"===e[0])"string"==typeof e[1]&&""!=e[1]&&(i.Config.notification.subscriptionType=1,i.Config.notification.fcmToken=e[1],o.NotificationHelper.sendEvent(l.KeyMapper.PROMPT_ALLOWED,e[1]));else if("updateSubscription"===e[0])"subscribe"!=e[1]&&"unsubscribe"!=e[1]||o.NotificationHelper.updateSubscriptionProcessor(e[1]);else{if("getSubscriberId"===e[0])return i.Config.store.subscriberId||c.StorageManager.getStorage(l.KeyMapper.UUID);if("getSubscriptionObject"===e[0])return c.StorageManager.getStorage(l.KeyMapper.PUSH_TOKEN);"userProfile"===e[0]&&(void 0!==e[1]||""!==e[1])||"personalizationProperty"===e[0]?o.NotificationHelper.userProfileProcessor(e[1]):"trigger"!==e[0]||void 0===e[1]&&""===e[1]?"gaId"===e[0]&&"string"==typeof e[1]&&"object"==typeof e[2]?s.GoogleAnalytics.init(e):"registerPromptDisplayCallback"===e[0]&&"function"==typeof e[1]?this.promptDisplayCallback=e[1]:"registerSubscriptionCallback"===e[0]&&"function"==typeof e[1]?this.subscriptionCallback=e[1]:"register_callback"===e[0]&&"function"==typeof e[1]?this.userCallback=e[1]:"syncOneTapResponse"===e[0]&&void 0!==e[1]&&""!==e[1]&&void 0!==e[1].credential&&""!==e[1].credential?f.Email.processOneTapEncodedResponse(e[1]):"getNotificationFeed"===e[0]&&"function"==typeof e[1]?p.NotificationFeed.init(e[1]):"syncUserDetailsEmail"===e[0]&&"object"==typeof e[1]?f.Email.processOneTapPlainTextResponse(e[1],e[2]):"newsLetterOptIn"===e[0]&&null!=e[1]&&0!=e[1]?f.Email.subscribeNewsLetter(e[1]):"registerOneTapCallback"===e[0]&&"function"==typeof e[1]&&(g.registerOneTapCallback=e[1]):o.NotificationHelper.triggerProcessor(e[1],e[2],e[3])}}i.Config.notification.isTagsEnabled&&("add_tag"===e[0]||"remove_tag"===e[0]?console.warn("".concat(i.Config.brandingPartner," :: Tags are no longer supported. See https://help.izooto.com/article/segementation/ ")):"add_property"===e[0]&&void 0!==e[1]&&""!==e[1]&&o.NotificationHelper.addPropertyProcessorFallback(e[1]))}else r.Helper.displayLog("Sync action aborted! due to notification module disable");if("triggerMessengerPrompt"===e[0])return i.Config.messenger.autoPrompt=!0,void u.Messenger.init(!0);"triggerNewsHub"===e[0]&&(i.Config.newsHub.designType=2,d.NewsHub.isNewsContainerLoaded?d.NewsHub.openWidget():(i.Config.newsHub.triggered=!0,d.NewsHub.init()))}catch(e){r.Helper.displayLog("Queue error :",e)}},g.readSavedPreferences=function(){window._izq,window._izq.forEach(function(e){var t;"subscriberProfile"==e[0]&&null!=e[1]&&"object"==typeof e[1]&&e[1].hasOwnProperty("isPaid")&&(i.Config.CRPSPlaybook.isPaidSubscriber=e[1].isPaid,r.Helper.displayLog("Paid subscriber is set to : ",e[1].isPaid)),"init"==e[0]&&null!=e[1]&&"object"==typeof e[1]?((e[1].hasOwnProperty("auto_prompt")||e[1].hasOwnProperty("notificationAutoPrompt")||e[1].hasOwnProperty("autoPrompt"))&&(i.Config.notification.autoPrompt=null!=e[1].auto_prompt?e[1].auto_prompt:null!=e[1].autoPrompt?e[1].autoPrompt:e[1].notificationAutoPrompt,r.Helper.displayLog("Notification auto prompt set to : ",e[1].auto_prompt),0==i.Config.notification.autoPrompt&&(i.Config.notification.promptType=2)),e[1].hasOwnProperty("newsHub")&&(e[1].newsHub.hasOwnProperty("shiftHorizontal")&&"number"==typeof e[1].newsHub.shiftHorizontal||e[1].newsHub.hasOwnProperty("shiftVertical")&&"number"==typeof e[1].newsHub.shiftVertical)&&d.NewsHub.changeNewsHubPlacement(e[1].newsHub),e[1].hasOwnProperty("messengerAutoPrompt")&&(i.Config.messenger.autoPrompt=e[1].messengerAutoPrompt,r.Helper.displayLog("Messenger auto prompt set to : ",e[1].messengerAutoPrompt)),e[1].hasOwnProperty("showNewsHubWidget")&&(i.Config.newsHub.autoWidget=e[1].showNewsHubWidget,r.Helper.displayLog("Newshub auto widget set to : ",e[1].showNewsHubWidget)),e[1].hasOwnProperty("onsi")&&(null!==(t=e[1].onsi.exitIntent)&&void 0!==t&&t.hasOwnProperty("enable")&&(i.Config.exitIntent.autoPopup=e[1].onsi.exitIntent.enable,r.Helper.displayLog("Onsite exitIntent auto popup set to : ",i.Config.exitIntent.autoPopup)),null!==(t=e[1].onsi.stickyBar)&&void 0!==t&&t.hasOwnProperty("enable")&&(i.Config.stickyBar.autoPopup=e[1].onsi.stickyBar.enable,r.Helper.displayLog("Onsite stickyBar auto popup set to : ",i.Config.stickyBar.autoPopup)))):"epSyncState"==e[0]&&1==e[1]&&(r.Helper.displayLog("Custom subscription found! waiting for for FCM Token sync command!"),i.Config.store.isNotificationDisabledManually=!0,g.sync())})},g.isValidQueueForGdpr=function(e){return-1=window.innerHeight&&t(),n=e<=0?0:e},!1))},u.widgetData={rfid:null,feedData:[],isDialogInitialize:!1,get maxAllowedPost(){switch(i.Config.exitIntent.templateType){case 1:return 5;case 2:case 3:return i.Config.global.deviceType!=o.KeyMapper.DEVICE_TYPE_DESKTOP?3:4;case 4:return 15;default:return 5}},minimumFullPagePost:6,carsualPost:4,currentPostIndex:0,smallPostAllowed:4,adNotificationNo:void 0,dialogBoxID:"iz-osn-exitIntent",triggerOnEventType:void 0,firstPageStateID:"osn_".concat(Date.now()),largePostData:void 0,smallPostData:void 0,template2PostData:void 0,singlePostHTML:void 0,singleRowHtml:void 0,leftPostHTML:void 0,isHidden:!1,triggerType:null,get htmlSrc(){var e=i.Config.exitIntent.templateType,t=i.Config.exitIntent.htmlVersion[e];return"https://cdn.izooto.com/osn/exitintent/".concat(e,"/v").concat(t,".html")}},u);function u(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CookieStorage=void 0;var i=n(1),r=n(0),a=n(2),n=(s.setCookie=function(e,t,n){void 0===n&&(n=i.Config.global.cookieExpiryDays);var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);o="expires="+o.toUTCString();document.cookie=e+"="+t+";path=/;"+i.Config.global.cookieDomain+o+";"+i.Config.global.cookieSameSite},s.getCookie=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;oa[0]&&t[1]",o.error);var e=null===(e=o.error)||void 0===e?void 0:e.name;e&&"VersionError"===e?(u.currentIdbVersion=4,t(u.init())):n("DB not load")},o.onsuccess=function(){r.StorageManager.setConfigLocal(l.KeyMapper.IDB_VERSION,u.currentIdbVersion);var e=o.result;(u.idbDatabase=e).onversionchange=function(){try{c.Helper.displayLog("idb version change detected! => closing current idb instance!"),e.close(),u.idbDatabase=null}catch(e){}},c.Helper.displayLog("Success : IndexedDB Instance"),u.detectSWVersionChange(e),t(e)},o.onblocked=function(e){n("DB blocked"),c.Helper.displayLog("idb blocked somewhere its still opened ...",e)},o.onupgradeneeded=function(e){try{r.StorageManager.setConfigLocal(l.KeyMapper.IDB_VERSION,e.newVersion);var t=o.result,n=e.oldVersion;e.oldVersion,e.newVersion,n<2&&(t.createObjectStore("swEvents",{keyPath:"eventName"}),t.createObjectStore("options",{keyPath:"key"})),n<3&&t.createObjectStore("notificationLog",{keyPath:"key"}),n<4&&(t.createObjectStore(l.KeyMapper.REQUEST_QUEUE,{keyPath:"key"}),t.createObjectStore("log",{keyPath:"key"}))}catch(e){c.Helper.displayLog("idb upgrade error",e)}}):n("DB not supported")})]})})},u.addUpdateToTable=function(o,i){return new Promise(function(t,n){u.init().then(function(e){e=e.transaction([o],"readwrite").objectStore(o).put(i);e.onsuccess=function(){t(o+" added to db.")},e.onerror=function(){n("Unable to add data in db!")}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})},u.addUpdate=function(o,i){return a(this,void 0,void 0,function(){return s(this,function(e){try{return[2,new Promise(function(t,n){u.init().then(function(e){e=e.transaction(["options"],"readwrite").objectStore("options").put({key:o,val:i});e.onsuccess=function(e){t(o+" added to db.")},e.onerror=function(e){n("Unable to add data in db!")}}).catch(function(e){n(e),c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})]}catch(e){c.Helper.displayLog(e)}return[2]})})},u.getIndexDBData=function(i,r){return a(this,void 0,void 0,function(){return s(this,function(e){try{return[2,new Promise(function(n,o){u.init().then(function(e){var e=e.transaction([i]).objectStore(i),t="all"==r?e.getAll():e.get(r);t.onerror=function(){o("Unable to retrieve data from db!")},t.onsuccess=function(){var e="";t.result?e=t.result:c.Helper.displayLog("Not found in db-> ".concat(i," -> ").concat(r)),n(e)}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})]}catch(e){c.Helper.displayLog(e)}return[2]})})},u.setIndexedDb=function(t){window._izooto.sysEvents=i.Config.notification.sysEvents,"gaId"==t&&1!=i.Config.ga.swEvents||"sysEvents"==t&&1!=i.Config.notification.sysEventsFlag?c.Helper.displayLog("Not saved : ",t):u.getIndexDBData("options",t).then(function(e){(e&&!e.hasOwnProperty("val")||e.val!=window._izooto[t])&&u.addUpdate(t,window._izooto[t]).then(function(e){c.Helper.displayLog(e)}).catch(function(e){c.Helper.displayLog(e)})}).catch(function(e){c.Helper.displayLog(e)})},u.removeKeyFromTable=function(o,i){return a(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,new Promise(function(t,n){u.init().then(function(e){e=e.transaction([o],"readwrite").objectStore(o).delete(i);e.onsuccess=function(e){t(i+" added to db.")},e.onerror=function(e){n("Unable to add data in db!")}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})];case 1:return[2,e.sent()];case 2:return t=e.sent(),c.Helper.displayLog(t),[3,3];case 3:return[2]}})})},u.detectSWVersionChange=function(e,t,n){var o;void 0===t&&(t="options"),void 0===n&&(n="swVer"),i.Config.notification.serviceWorkerVersion<4.21&&(t=e.transaction([t]).objectStore(t),(o="all"==n?t.getAll():t.get(n)).onsuccess=function(){o.result&&o.result.hasOwnProperty("val")&&(i.Config.notification.serviceWorkerVersion=o.result.val)})},u.getValueFromiDbOptions=function(n){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,new Promise(function(t,e){u.getIndexDBData("options",n).then(function(e){if(!e.hasOwnProperty("val"))throw n+" not found in idb options";t(e.val)}).catch(function(e){c.Helper.displayLog(e),t("")})})]})})},u.currentIdbVersion=3,u.idbDatabase=null,u);function u(){}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},a=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]This window will close automatically.
");r.Helper.addHTML("div",e,"iz-integration-overlay")},a.verifyIzootoIntegration=function(){a.showMsgOverlay(),a.init(function(e){r.Helper.postMessage("opener","integrationObj",e)})},a.dash="-",a.debuggerObj={sw:{},izootoHtml:{}},a.debugger={rcvObj:{}},a);function a(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var o=n(1),i=n(0),r=n(3),a=n(2);t.Session=(s.init=function(){o.Config.global.isSessionHandled||(s.sessionHandler(),o.Config.global.isSessionHandled=!0)},s.sessionHandler=function(){var e;s.isSessionExpired()&&(t=r.StorageManager.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION),e=r.StorageManager.getConfigLocal(a.KeyMapper.FIRST_SESSION,a.KeyMapper.SYNC),t&&e&&i.Helper.getDateDiffrenceFromPresent(e)<=s.visitWithinDays?r.StorageManager.setConfigLocal(a.KeyMapper.SESSION_COUNT,t+1,a.KeyMapper.SESSION):(r.StorageManager.setConfigLocal(a.KeyMapper.SESSION_COUNT,1,a.KeyMapper.SESSION),r.StorageManager.updateLastSync(a.KeyMapper.FIRST_SESSION)));var t=(t=new Date).setTime(t.getTime()+60*s.sessionExpiryMinute*1e3);new Date(t),r.StorageManager.setConfigLocal(a.KeyMapper.SESSION_EXPIRY,t,a.KeyMapper.SESSION)},s.isSessionExpired=function(){var e=r.StorageManager.getConfigLocal(a.KeyMapper.SESSION_EXPIRY,a.KeyMapper.SESSION),t=new Date;return!(""!=e&&e>t.getTime())&&(s.isNew=!0)},s.getSessionCount=function(){return r.StorageManager.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION)||0},s.isNew=!1,s.sessionExpiryMinute=30,s.visitWithinDays=7,s);function s(){}},function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},i=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]',document.body.appendChild(o),null!==(t=document.getElementById("izMsngrIframeWrapper"))&&void 0!==t&&t.appendChild(i)}catch(e){u.Helper.displayLog("Error in appending child in messenger-div")}}g.frameElement=i,(g.frameContentWindow=i.contentWindow).fbAsyncInit=function(){g.addHtmlContainer(l.Config.messenger.pageId),g.frameContentWindow.FB.init({appId:g.appId,autoLogAppEvents:!0,xfbml:!0,version:"v18.0"}),g.frameContentWindow.FB.Event.subscribe("send_to_messenger",function(e){"rendered"==e.event&&0==e.is_after_optin&&setTimeout(function(){return s(n,void 0,void 0,function(){var t;return c(this,function(e){return g.frameContentWindow.document.querySelector("#izootoFbMessengerMainContainer")&&(g.isElementFound?(t=window.getComputedStyle(g.frameContentWindow.document.querySelector(".fb-send-to-messenger")),256<(t=parseInt(t.width))&&(t+=33,i.style="max-width: ".concat(t,"px;width: ").concat(t,"px;")),g.syncMessengerEvent()):g.promptSequencing(p.KeyMapper.MESSENGER_READY_SHOW)),[2]})})},400),"opt_in"==e.event&&(g.setMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED,1),g.sendEvent(p.KeyMapper.MESSENGER_SUBSCRIBED),f.GoogleAnalytics.processMessanger("Send to Messenger"),g.promptSequencing(p.KeyMapper.MESSENGER_SUBSCRIBED),setTimeout(function(){g.htmlContainerClose(!0)},1e3))})};setTimeout(function(){var e=document.createElement("script");e.src="https://connect.facebook.net/en_US/sdk.js",i.contentDocument.body.appendChild(e)},200)}}else u.Helper.displayLog("Messenger is disabled for this device!")},g.syncMessengerEvent=function(){g.sendEvent(p.KeyMapper.MESSENGER_PROMPTED),1==o.StorageManager.getConfigLocal("messengerRepeated",p.KeyMapper.STATS)?f.GoogleAnalytics.processMessanger("Repeat Impression"):f.GoogleAnalytics.processMessanger("Impression"),o.StorageManager.setConfigLocal("messengerRepeated",1,p.KeyMapper.STATS),g.promptSequencing(p.KeyMapper.MESSENGER_PROMPTED),g.setRepeatPromptDelay(l.Config.messenger.repeatDelay)},g.showMessenger=function(){document.querySelector("#izMsngrOptinOuterWrapper").style.display="block",g.syncMessengerEvent()},g.htmlContainerClose=function(e){void 0===e&&(e=!1);var t=document.getElementById(g.anyWhereSelector)?g.frameElement:document.querySelector("#izMsngrOptinOuterWrapper");t&&(t.style.display="none"),0==e&&f.GoogleAnalytics.processMessanger("Dismissed"),g.promptSequencing(p.KeyMapper.PROMPT_CLOSED)},g.getHtmlContainer=function(e){return(e=void 0===e||e)?'
'):'
'},g.addHtmlContainer=function(e){var t=g.htmlContainer,n=document.createElement("div");n.setAttribute("id","izootoFbMessengerMainContainer");var o=function(){window.outerWidth<=600?n.setAttribute("class","izmobilemsngr"):n.setAttribute("class","")};o(),window.addEventListener("resize",o),n.innerHTML=t,(g.frameContentWindow.document.body||g.frameContentWindow.document.head).appendChild(n);var o=l.Config.UUID,t=l.Config.client+"=/="+o+"=/="+l.Config.global.os+"=/="+l.Config.global.browserVer+"=/="+l.Config.global.deviceType+"=/="+l.Config.global.browserType,o=document.createElement("div");o.setAttribute("class","fb-send-to-messenger"),o.setAttribute("messenger_app_id",g.appId),o.setAttribute("page_id",e),o.setAttribute("color",g.isElementFound?l.Config.messenger.color:"blue"),o.setAttribute("size",g.isElementFound?l.Config.messenger.size:"large"),o.setAttribute("data-ref",t),l.Config.messenger.buttonTextType&&g.isElementFound&&o.setAttribute("cta_text",g.ctaText[l.Config.messenger.buttonTextType]),null!==(t=g.frameContentWindow.document.querySelector("#izFbContainer"))&&void 0!==t&&t.appendChild(o),u.Helper.izootoBrandingHandler(g.frameContentWindow)},g.isDelayed=function(){return 1==g.getMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED)||g.getMultiMessengerStorage(p.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY)>Date.now()},g.isAlreadySubscribed=function(){return 1==g.getMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED)},g.syncEvent=function(e){var t="",t=e==p.KeyMapper.MESSENGER_SUBSCRIBED?u.Helper.getEndpoint("syncMessenger"):u.Helper.getEndpoint(e),e=g.getParameterToSync(e);i.HttpRequest.postForm(t,e,!0).then(function(){}).catch(function(e){})},g.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Messenger: Setting repeat prompt delay for ".concat(e," minutes"),g.setMultiMessengerStorage(p.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY,t))},g.setMultiMessengerStorage=function(e,t){var n=o.StorageManager.getConfigLocal(l.Config.messenger.pageId,p.KeyMapper.MESSENGER);(n=n?u.Helper.parseToJSON(n):{})[e]=t;n=JSON.stringify(n);o.StorageManager.setConfigLocal(l.Config.messenger.pageId,n,p.KeyMapper.MESSENGER)},g.getMultiMessengerStorage=function(e){var t=o.StorageManager.getConfigLocal(l.Config.messenger.pageId,p.KeyMapper.MESSENGER);return t&&null!=(t=u.Helper.parseToJSON(t))[e]?t[e]:""},g.promptSequencing=function(e){-1<[p.KeyMapper.MESSENGER_PROMPTED,p.KeyMapper.MESSENGER_SUBSCRIBED,p.KeyMapper.PROMPT_CLOSED,p.KeyMapper.MESSENGER_READY_SHOW,p.KeyMapper.MESSENGER_READY].indexOf(e)&&!g.isElementFound&&r.ChannelEventHandler.event("messenger",e)},g.sendEvent=function(e){var t=[p.KeyMapper.MESSENGER_SUBSCRIBED];l.Config.messenger.syncPrompt&&t.push(p.KeyMapper.MESSENGER_PROMPTED),-1!=t.indexOf(e)&&g.syncEvent(e)},g.getParameterToSync=function(e){var t={pid:l.Config.client,btype:l.Config.global.browserType,dtype:l.Config.global.deviceType,os:l.Config.global.os,page_id:l.Config.messenger.pageId,bKey:l.Config.UUID};switch(e){case p.KeyMapper.MESSENGER_SUBSCRIBED:t.ms=1;break;case p.KeyMapper.MESSENGER_PROMPTED:t.msp=1;break;default:t[e]=1}return t},g.anyWhereSelector="izooto-messenger-subscription-button",g.isElementFound=!1,g.frameElement=void 0,g.triggered=!1,g.appId="1061905150807841",g.ctaText=[,"GET_THIS_IN_MESSENGER","RECEIVE_THIS_IN_MESSENGER","SEND_THIS_TO_ME","GET_CUSTOMER_ASSISTANCE","GET_CUSTOMER_SERVICE","GET_SUPPORT","LET_US_CHAT","SEND_ME_MESSAGES","ALERT_ME_IN_MESSENGER","SEND_ME_UPDATES","MESSAGE_ME","LET_ME_KNOW","KEEP_ME_UPDATED","TELL_ME_MORE","SUBSCRIBE_IN_MESSENGER","SUBSCRIBE_TO_UPDATES","GET_MESSAGES","SUBSCRIBE","GET_STARTED_IN_MESSENGER","LEARN_MORE_IN_MESSENGER","GET_STARTED"],g.heightMap={standard:"44px",large:"58px",xlarge:"71px"},g);function g(){}},function(e,t,n){"use strict";var u=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},f=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]div")),o=window.getComputedStyle(n).getPropertyValue("background-image");m.OSNHelper.defaultImage=o.match(/\((.*?)\)/)[1].replace(/('|")/g,""),null!=t&&t.remove(),1!=g.Config.global.deviceType&&(!0===p.ThirdPartyAds.isPIDExcluded()?c.Main.widgetData.smallPostAllowed=3:c.Main.widgetData.smallPostAllowed=g.Config.exitIntent.ads?3:2),3==g.Config.exitIntent.templateType&&(c.Main.widgetData.smallPostAllowed=g.Config.global.deviceType==a.KeyMapper.DEVICE_TYPE_DESKTOP?3:2),g.Config.global.deviceType!==a.KeyMapper.DEVICE_TYPE_DESKTOP&&c.Main.widgetData.smallPostData.unshift(c.Main.widgetData.largePostData);for(var i=0;ia[0]&&t[1]div");300a[0]&&t[1]a[0]&&t[1]t.getTime()&&(e=!0,c.Helper.displayLog("Wait until onetap repeat delay expire!")),e},g.syncSubscription=function(o){return new Promise(function(e,t){var n=c.Helper.getEndpoint("syncEmailSubscription");u.StorageManager.setConfigLocal(d.KeyMapper.EMAIL_NOT_SYNCED,1),l.HttpRequest.postForm(n,o,!0).then(function(){u.StorageManager.removeConfigLocal(d.KeyMapper.EMAIL_NOT_SYNCED),"Email payload synced successfully with ".concat(i.Config.brandingPartner),e(!0)}).catch(function(){return t(!1)})})},g.eventCallbackHandler=function(e){c.Helper.displayLog("one tap callback responce",e),"display"==e.g&&e.h?(g.setRepeatPromptDelay(i.Config.email.repeatPromptDelay),o.ChannelEventHandler.event("email",d.KeyMapper.EMAIL_INPROGRESS),c.Helper.displayLog("OneTap Prompt is Displayed on ".concat(1==c.Helper.getDeviceType()?"Desktop":"Mobile"))):o.ChannelEventHandler.event("email",d.KeyMapper.EMAIL_CLOSED),"skipped"!=e.g&&"dismissed"!=e.g||c.Helper.displayLog("OneTap Prompt is Dismissed or skipped")},g.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Setting email onetap repeat prompt delay for ".concat(e," minutes"),u.StorageManager.setConfigLocal(d.KeyMapper.ONETAP_REPEAT_PROMPT_DELAY,t))},g.isPromptShown=!1,g.emailValidatorRegex=new RegExp(/^\S+@\S+\.\S+$/),g.isFedCMSupported=!1,g.responseObj={SYNCED:{success:!0,response:"Synced"},ALREADY_SYNCED:{success:!0,response:"Already Synced"},INVALID_EMAIL:{success:!1,response:"Invalid Email",errorCode:1},SYNC_FAILED:{success:!1,response:"Sync failed",errorCode:2}},g.syncUserEmail=!1,g.fedcmConfig={configURL:"https://accounts.google.com/gsi/fedcm.json",clientId:"",nonce:"random",use_fedcm_for_prompt:!0},g);function g(){}},function(e,t,n){"use strict";var c=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function o(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,i)}r((c=c.apply(e,a||[])).next())})},l=this&&this.__generator||function(n,o){var i,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(i=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]
')}).join("")},y.checkVisibility=function(e){return(null===(e=p.Helper.getDomElement("#".concat(e)))||void 0===e?void 0:e.offsetParent)||null},y.initPopup=function(t){var e,n;void 0===t&&(t=!1),(s.StorageManager.getConfigLocal(r.KeyMapper.ONSITE_ADS_ALLOWED)||t)&&(e=d.Config.adBR.templateId,n=d.Config.adBR.htmlVersion[e],i.HttpRequest.get("https://cdn.izooto.com/osn/adbr/".concat(e,"/v").concat(n,".html")).then(function(e){p.Helper.addHTML("div",e),y.attachEventListners(),y.setSiteLogo(),y.setScreen(t),3<=s.StorageManager.getConfigLocal(r.KeyMapper.ONSITE_ADS_REFRESH_COUNT)&&(y.showCloseButton(),s.StorageManager.removeConfigLocal(r.KeyMapper.ONSITE_ADS_REFRESH_COUNT)),o.ChannelEventHandler.event("adblock",r.KeyMapper.ADBLOCK_READY_SHOW)}).catch(function(e){}))},y.setSiteLogo=function(){d.Config.adBR.logoSrc?document.querySelectorAll("."+m.brandImage).forEach(function(e){e.src=d.Config.adBR.logoSrc,e.onerror=function(){return y.brandLogoNotAvailable()}}):y.brandLogoNotAvailable()},y.setScreen=function(e){s.StorageManager.getConfigLocal(r.KeyMapper.ONSITE_ADS_ALLOWED)&&0==e?y.showThankyouSection():(y.syncImpression(),s.StorageManager.setConfigLocal(r.KeyMapper.ONSITE_ADS_ALLOWED,1),s.StorageManager.setConfigLocal(r.KeyMapper.ONSITE_ADS_REFRESH_COUNT,(s.StorageManager.getConfigLocal(r.KeyMapper.ONSITE_ADS_REFRESH_COUNT)||0)+1))},y.attachEventListners=function(){var e=p.Helper.getDomElement("."+m.allowADS),t=p.Helper.getDomElement("."+m.refreshButton),n=p.Helper.getDomElement("."+m.closeButton);e.addEventListener("click",function(){p.Helper.hideElement("."+m.section1),p.Helper.hideElement("."+m.section3),p.Helper.showElement("."+m.content)}),t.addEventListener("click",function(){window.location.reload()}),n.addEventListener("click",function(){y.hidePopup(),y.syncDismiss()});var o=document.querySelectorAll("."+m.tabButton);o.forEach(function(e,n){e.addEventListener("click",function(){document.querySelectorAll("."+m.tabContent+" ol").forEach(function(e,t){o[t].classList.add(m.activeTab),n==t?(e.style.display="block",o[t].classList.add(m.activeTab)):(e.style.display="none",o[t].classList.remove(m.activeTab))})})})},y.showThankyouSection=function(){s.StorageManager.removeConfigLocal(r.KeyMapper.ONSITE_ADS_ALLOWED),y.syncClick(),y.showCloseButton(),p.Helper.hideElement("."+m.section1),p.Helper.hideElement("."+m.content),p.Helper.showElement("."+m.section3,!1),y.articleAdsHTML=p.Helper.getDomElement("#iz_osn_adblocker_ad_container").cloneNode(!0),p.Helper.getDomElement("#iz_osn_adblocker_ad_container").innerHTML="";var e=0;(e=d.Config.adBR.adUnit?1:e)&&y.adsHandler(e)},y.adsHandler=function(s){return c(this,void 0,void 0,function(){var t,n,r,o,i,a=this;return l(this,function(e){switch(e.label){case 0:return t=d.Config.adBR.templateId,t={1:y.getAdConfig}[t],1!=s?[3,4]:t?[4,t()]:[3,2];case 1:for(r=e.sent(),n=function(e){var t,n=(t=r[e]).adContainerId,o=t.adId,e=t.adUnit,i=t.adSize;u.GAM.createAdContainer(n,o),u.GAM.loadGAMAds(o,e,i.Gam).then(function(){}).catch(function(){return c(a,void 0,void 0,function(){return l(this,function(e){return u.GAM.createAdContainer(n,o),y.createArticleContainer(o),f.Adgebra.loadAd(i.adgebra).then(function(e){y.setArticleAd(e,o)}).catch(function(){y.adFailureHandler()}),[2]})})})},i=0;ia[0]&&t[1]=r)return{value:!1}}}}}(e);if("object"==typeof t)return t.value}return!0},i.prototype.isDateTimeSegmentValidated=function(e,t,n){var o,e=e[t],i="lci"==t?_.Config.store.lastClick:_.Config.store.lastView;if("px"==t)try{var r=P.StorageManager.getConfigLocal(n,M.KeyMapper.USER_PROPERTY);if(!r)return!1;for(var i=new Date(r).getTime(),a=[],s=null===(o=e[n])||void 0===o?void 0:o.values,c=0,l=s;cg.getTime())return!1;break;case"after":if(ii&&i=n&&(o.notificationShowKeyList.push(e.key),o.notificationShowList.push(e))}),this.notificationShowList.sort(function(e,t){return t.payload.ct-e.payload.ct})},i.prototype.storeSegmentIntoIdb=function(e){for(var t=0,n=e;ta[0]&&t[1]",e.message="Pick up where you left off",e.icon="https://cdnimg.izooto.com/icons/4/JD-12-128.png",e.banner="<~[@featured_image]~>",e.link="<~[@last_visited_url]~>",e.tag="tabAbandonment",e.reqInt=!0,e.id="",e.rid="",e.viewFlag=1,e.clickFlag=1,e.sysEvents=0,e.domainNum=0;var t=window.location.href;t.indexOf("utm_campaign=")<0&&(e.link+=t.includes("?")?"&":"?",e.link+="utm_source=izooto&utm_medium=push_notifications&utm_campaign=recover_abandoned_tab&utm_term=notification1");var n,o=r.Config.tabAbandonment.data;for(n in e)o.hasOwnProperty(n)||(o[n]=e[n]);return o=l.getFilterData(o)},l.urlUtmHandler=function(e,t){var n,o,i=t.split("&"),r={};for(n in i){var a=i[n].split("=");r[a[0]]=a[1]}for(o in e=new URL(e),r)e.searchParams.set(o,r[o]);return e.href},l.getFilterData=function(e){var t,n,o,i={},r=window.location.href;for(t in i.article_title=""!=a.Helper.getMetaValue("og:title")?a.Helper.getMetaValue("og:title"):a.Helper.getMetaValue("title"),i.featured_image=a.Helper.getMetaValue("og:image"),i.last_visited_url=r,e)"string"==typeof e[t]&&0<=e[t].indexOf("<~[@")&&(n=e[t].indexOf("<~[@"),o=e[t].indexOf("]~>"),"last_visited_url"==(n=e[t].substring(n+4,o))&&0",i[n]),e[t]=l.urlUtmHandler(r,o)):e[t]=e[t].replace("<~[@"+n+"]~>",i[n]));return e},l);function l(){}t.TabAbandonments=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdNetwork=void 0;var u=n(3),d=n(1),p=n(0);t.AdNetwork=(f.getAdNetworkParam=function(e){void 0===e&&(e=!1),f.forceSyncAdNetwork=0;var t="",n=u.StorageManager.getStorage("_ga"),o=u.StorageManager.getStorage("taboola global:user-id"),i=u.StorageManager.getStorage("OB-USER-TOKEN"),r=u.StorageManager.getStorage("mgMuidn"),a=u.StorageManager.getConfigLocal("gac"),s=u.StorageManager.getConfigLocal("tbc"),c=u.StorageManager.getConfigLocal("obc"),l=u.StorageManager.getConfigLocal("mgc");return o&&(f.adNetworkObj.tbc=o),i&&(f.adNetworkObj.obc=i),r&&(f.adNetworkObj.mgc=r),n&&1==d.Config.ga.syncCid&&(f.adNetworkObj.gac=n),(f.adNetworkObj.gac&&a!=n||o&&s!=o||i&&c!=i||r&&l!=r)&&(f.forceSyncAdNetwork=1),e?f.adNetworkObj:(0a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]