(window["proof-factor-plugin"]=window["proof-factor-plugin"]||[]).push([["core"],{"07bd":function(t,e,i){"use strict";var n;i.d(e,"a",(function(){return n})),function(t){t["LiveUserCountNotification"]="live_user_count_notification",t["AggregateUserCountNotification"]="aggregate_user_count_notification",t["AggregateUserActivityNotification"]="aggregate_user_activity_notification",t["UserActivityNotification"]="user_activity_notification"}(n||(n={}))},"127f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("7204"),o=function(){function t(){this.errorMessage="Provided options for vuejs-logger are not valid.",this.logLevels=Object.keys(n.LogLevels).map((function(t){return t.toLowerCase()}))}return t.prototype.install=function(t,e){if(e=Object.assign(this.getDefaultOptions(),e),!this.isValidOptions(e,this.logLevels))throw new Error(this.errorMessage);t.$log=this.initLoggerInstance(e,this.logLevels),t.prototype.$log=t.$log},t.prototype.isValidOptions=function(t,e){return!!(t.logLevel&&"string"===typeof t.logLevel&&e.indexOf(t.logLevel)>-1)&&((!t.stringifyArguments||"boolean"===typeof t.stringifyArguments)&&((!t.showLogLevel||"boolean"===typeof t.showLogLevel)&&((!t.showConsoleColors||"boolean"===typeof t.showConsoleColors)&&((!t.separator||!("string"!==typeof t.separator||"string"===typeof t.separator&&t.separator.length>3))&&("boolean"===typeof t.isEnabled&&!(t.showMethodName&&"boolean"!==typeof t.showMethodName))))))},t.prototype.getMethodName=function(){var t={};try{throw new Error("")}catch(i){t=i}if(void 0===t.stack)return"";var e=t.stack.split("\n")[3];return/ /.test(e)&&(e=e.trim().split(" ")[1]),e&&e.indexOf(".")>-1&&(e=e.split(".")[1]),e},t.prototype.initLoggerInstance=function(t,e){var i=this,n={};return e.forEach((function(o){e.indexOf(o)>=e.indexOf(t.logLevel)&&t.isEnabled?n[o]=function(){for(var e=[],n=0;n0){var i=e[0];i&&i.click()}},e}(r["a"]),s=new a},2877:function(t,e,i){"use strict";function n(t,e,i,n,o,r,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}i.d(e,"a",(function(){return n}))},"2fe1":function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"c",(function(){return l}));var n=i("2b0e"),o="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys; /** * vue-class-component v7.1.0 * (c) 2015-present Evan You * @license MIT */function r(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(i){a(t.prototype,e.prototype,i)})),Object.getOwnPropertyNames(e).forEach((function(i){a(t,e,i)}))}function a(t,e,i){var n=i?Reflect.getOwnMetadataKeys(e,i):Reflect.getOwnMetadataKeys(e);n.forEach((function(n){var o=i?Reflect.getOwnMetadata(n,e,i):Reflect.getOwnMetadata(n,e);i?Reflect.defineMetadata(n,o,t,i):Reflect.defineMetadata(n,o,t)}))}var s={__proto__:[]},c=s instanceof Array;function u(t){return function(e,i,n){var o="function"===typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof n&&(n=void 0),o.__decorators__.push((function(e){return t(e,i,n)}))}}function l(){for(var t=[],e=0;e-1)e[t]=i[t];else{var n=Object.getOwnPropertyDescriptor(i,t);void 0!==n.value?"function"===typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=n.value,e}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return f(this,t)}});var a=t.__decorators__;a&&(a.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),c=s instanceof n["a"]?s.constructor:n["a"],u=c.extend(e);return h(u,t,c),o&&r(u,t),u}var g={prototype:!0,arguments:!0,callee:!0,caller:!0};function h(t,e,i){Object.getOwnPropertyNames(e).forEach((function(n){if(!g[n]){var o=Object.getOwnPropertyDescriptor(t,n);if(!o||o.configurable){var r=Object.getOwnPropertyDescriptor(e,n);if(!c){if("cid"===n)return;var a=Object.getOwnPropertyDescriptor(i,n);if(!p(r.value)&&a&&a.value===r.value)return}0,Object.defineProperty(t,n,r)}}}))}function v(t){return"function"===typeof t?_(t):function(e){return _(e,t)}}v.registerHooks=function(t){d.push.apply(d,t)},e["b"]=v},"38fa":function(t,e,i){"use strict";i.r(e);var n=i("7a4c"),o=i("eaff"),r=i("2294"),a=i("2b0e"),s=i("e54a"),c=i("85ff"),u=i.n(c),l=i("2f62"),p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.rootCSSClass,staticStyle:{display:"block !important"},attrs:{id:"proof-factor-app"}},[t.currentNotification?i("NotificationContainterComponent",{attrs:{currentNotification:t.currentNotification,currentCampaignConfig:t.configOptions},on:{onCloseClick:t.onNotificationCloseClick,onBoxClick:t.onNotificationBoxClick,onBoxMouseEnter:t.onNotificationBoxMouseEnter,onBoxMouseLeave:t.onNotificationBoxMouseLeave,onNotificationShown:t.onNotificationShown}}):t._e(),i("WheelContainerComponent",{attrs:{id:"proof-factor-wheel-container"}}),i("CouponBoxContainerComponent",{attrs:{id:"proof-factor-cb-container"}}),i("NewsletterContainerComponent",{attrs:{id:"proof-factor-nl-container"}}),i("FreeShippingPopupContainerComponent",{attrs:{id:"onestore-popup-bfs-container"}}),i("SalesPopupContainerComponent",{attrs:{id:"onestore-popup-bsp-container"}}),i("ProductPopupContainerComponent",{attrs:{id:"onestore-popup-bpp-container"}})],1)},f=[],d=(i("ac6a"),i("456d"),i("9ab4")),_=i("9d25"),g=i("3e3a"),h=i("69a0"),v=i("1916"),m=i("0e43"),b=i("bccb"),y=i("b8f4"),O=i("8176"),C=i("b69c"),w=i("d9b5"),E=i("ea06"),j=i.n(E),P=i("60a3"),T=i("4bb5"),S=i("5250"),A=i("a38e"),U=i("511b"),L=function(){return i.e("wheel-container").then(i.bind(null,"9cb4"))},k=function(){return i.e("wheel").then(i.bind(null,"cf57"))},I=function(){return i.e("free-shipping-pop").then(i.bind(null,"76ca"))},N=function(){return i.e("sales-pop").then(i.bind(null,"fb0a"))},M=function(){return i.e("product-pop").then(i.bind(null,"794b9"))},D=function(){return i.e("newsletter").then(i.bind(null,"4fab"))},F=function(){return i.e("notification-container").then(i.bind(null,"aafd")).then((function(t){return t.default}))};P["d"],Object.keys||(Object.keys=function(t){if(t!==Object(t))throw new TypeError("Object.keys called on a non-object");var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e});var B="main_app",R=Object(T["b"])("wheel"),x=Object(T["b"])("couponBox"),W=Object(T["b"])("newsletter"),K=Object(T["b"])("freeShippingPopup"),G=Object(T["b"])("salesPopup"),q=Object(T["b"])("productPopup"),V=function(t){function e(){var e=t.call(this)||this;return e.processCBConfig=!1,e.idelTimeoutInstance=null,e.mouseIsInBox=!1,e.rootCSSClass=S["d"],e.configProcessed=!1,Object(y["a"])("proof-factor-app","mounted"),window["proofFactor"]={},window["proofFactor"]["showWheel"]=function(){Object(y["a"])("proof-factor-app","show-wheel-called"),w["c"].show(!0)},window["proofFactor"]["showCouponBox"]=function(){Object(y["a"])("proof-factor-app","show-coupon-box-called"),h["a"].show(!0)},window["proofFactor"]["showNewsletter"]=function(){Object(y["a"])("proof-factor-app","show-newsletter-called"),O["b"].show(!0)},window["proofFactor"]["showFreeShippingPopup"]=function(){Object(y["a"])("proof-factor-app","show-free-shipping-popup-called"),m["a"].show(!0)},window["proofFactor"]["showSalesPopup"]=function(){Object(y["a"])("proof-factor-app","show-sales-popup-called"),m["c"].show(!0)},window["proofFactor"]["showProductPopup"]=function(){Object(y["a"])("proof-factor-app","show-product-popup-called"),m["b"].show(!0)},e}var i;return Object(d["d"])(e,t),i=e,Object.defineProperty(e.prototype,"isCouponBoxActive",{get:function(){return this.couponBoxParams&&this.couponBoxParams.active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isNewsletterActive",{get:function(){return this.newsletterParams&&this.newsletterParams.active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFreeShippingPopupActive",{get:function(){var t;return!!(null===(t=this.freeShippingPopupParams)||void 0===t?void 0:t.active)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSalesPopupActive",{get:function(){var t;return!!(null===(t=this.salesPopupParams)||void 0===t?void 0:t.active)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isProductPopupActive",{get:function(){var t;return!!(null===(t=this.productPopupParams)||void 0===t?void 0:t.active)},enumerable:!0,configurable:!0}),e.stopServices=function(){C["b"].stop(),w["c"].stop(),h["a"].stop(),O["b"].stop(),m["a"].stop(),m["c"].stop(),m["b"].stop(),b["a"].disable()},e.prototype.mounted=function(){var t=this;Object(r["a"])("Plugin Version",o["a"].getters.appVersion),Object(y["a"])("Proof Factor Widget: We Are Not In A Checkout Page"),n["c"].accountOverLimit&&(Object(y["a"])("Your Proof Factor Account is Over its Limit. Please visit https://app.one.store/ to upgrade your plan."),Object(r["a"])("Account Over Limit",!0)),this.onNavigation(),window.addEventListener("hashchange",(function(){Object(y["a"])(B,"hash changed"),t.onNavigation()}));var e=history.pushState;if(history.pushState=function(){for(var i=[],n=0;n0&&404!==o.code?(n["c"].processRemoteConfigData(o),this.processConfig(),window[i]=null):(_["analyticService"].pauseTracking(),n["c"].fetchConfigForLocation(e).then((function(){t.processConfig(),_["analyticService"].resumeTracking()})).catch((function(i){y["b"].error(B,"error fetching config: "+JSON.stringify(i)),t._logPlugins({}),y["b"].warn(B,"⚠️ No valid config for config url:\n"+n["c"].getConfigForLocationUrl(e)),n["c"].paidTrackedEvents=!1,_["analyticService"].resumeTracking()})))},e.prototype.processConfig=function(){var t=this;Object(r["a"])("Is Checkout Page",!1),this.configProcessed=!1;var e=this.configLiveUserCount&&this.configLiveUserCount.active,i=this.configAggregateUserCount&&this.configAggregateUserCount.active,a=this.configAggregateUserActivity&&this.configAggregateUserActivity.active,s=this.configUserActivity&&this.configUserActivity.active,c=this.wheelConfig&&this.wheelConfig.active,u=this.isFreeShippingPopupActive,l=this.isSalesPopupActive,p=this.isProductPopupActive,f=this.isCouponBoxActive,d=this.isNewsletterActive;this._logPlugins({lvc:e,ra:s,fw:c,auc:i,cb:f,nl:d,freeShippingPop:u,salesPop:l,productPop:p}),!n["c"].accountOverLimit&&(d||f||c||i||a||s||e||u||l||p)?n["c"].paidTrackedEvents=!0:n["c"].paidTrackedEvents=!1,U["a"].registerLocale(o["a"].getters.configOptions&&o["a"].getters.configOptions.language&&o["a"].getters.configOptions.language.locale||"en").then((function(o){n["c"].accountOverLimit||((s||i||a||e)&&C["b"].processNotificationConfigs(),c&&w["c"].processWheel(),f&&h["a"].processConfig(),d&&O["b"].processConfig(),u&&m["a"].processConfig(),l&&m["c"].processConfig(),p&&m["b"].processConfig()),g["a"].processConfig(),t.configProcessed=!0,window.dispatchEvent(new CustomEvent("prooffactor:widget:loaded",{}))}))},e.prototype._logPlugins=function(t){var e=t.lvc,i=t.ra,n=t.fw,o=t.auc,r=t.cb,a=t.nl,s=t.freeShippingPop,c=t.salesPop;y["b"].group(B,"Plugins"),Object(y["a"])("",e?"✅":"❌","Live User Count"),Object(y["a"])("",o?"✅":"❌","Aggregate User Count"),Object(y["a"])("",i?"✅":"❌","User Activity"),Object(y["a"])("",n?"✅":"❌","Fortune Wheel"),Object(y["a"])("",r?"✅":"❌","Coupon Box"),Object(y["a"])("",a?"✅":"❌","News Letter"),Object(y["a"])("",s?"✅":"❌","Free Shipping Pop up"),Object(y["a"])("",c?"✅":"❌","Free Shipping Pop up"),y["b"].groupEnd()},e.prototype.onNotificationCloseClick=function(){this.mouseIsInBox=!1,C["b"].resumePausedTimers()},e.prototype.onNotificationBoxClick=function(t,e){t.notification_id?_["analyticService"].trackClick(t,e):Object(y["c"])(B,"This notification doesn't have \"notification_id\". It won't be tracked: "+JSON.stringify(t))},e.prototype.onNotificationBoxMouseEnter=function(t){if(!A["a"].isMobile()){if(this.mouseIsInBox=!0,C["b"].pauseActiveTimers(),!t.notification_id)return void Object(y["c"])(B,"This notification doesn't have \"notification_id\". It won't be tracked: "+JSON.stringify(t));_["analyticService"].trackHover(t)}},e.prototype.onNotificationBoxMouseLeave=function(t){A["a"].isMobile()||(Object(y["a"])(B,"notificationId: "+t),this.mouseIsInBox=!1,C["b"].resumePausedTimers())},e.prototype.onNotificationShown=function(t,e){Object(y["a"])(B,"onNotificationShown: notificationId: "+t+" status: "+e),C["b"].onNotificationShown(t,e)},Object(d["c"])([T["a"]],e.prototype,"configLiveUserCount",void 0),Object(d["c"])([T["a"]],e.prototype,"configAggregateUserCount",void 0),Object(d["c"])([T["a"]],e.prototype,"configAggregateUserActivity",void 0),Object(d["c"])([T["a"]],e.prototype,"configUserActivity",void 0),Object(d["c"])([T["a"]],e.prototype,"notificationStyles",void 0),Object(d["c"])([T["a"]],e.prototype,"notificationVariables",void 0),Object(d["c"])([T["a"]],e.prototype,"currentNotification",void 0),Object(d["c"])([T["a"]],e.prototype,"configOptions",void 0),Object(d["c"])([T["a"]],e.prototype,"accountOverLimit",void 0),Object(d["c"])([R.Getter("config")],e.prototype,"wheelConfig",void 0),Object(d["c"])([R.Getter("popup")],e.prototype,"wheelPopup",void 0),Object(d["c"])([R.Getter("trigger")],e.prototype,"wheelTrigger",void 0),Object(d["c"])([R.Getter("preview")],e.prototype,"wheelPreview",void 0),Object(d["c"])([x.Getter],e.prototype,"couponBoxParams",void 0),Object(d["c"])([W.Getter],e.prototype,"newsletterParams",void 0),Object(d["c"])([K.Getter],e.prototype,"freeShippingPopupParams",void 0),Object(d["c"])([G.Getter],e.prototype,"salesPopupParams",void 0),Object(d["c"])([q.Getter],e.prototype,"productPopupParams",void 0),e=i=Object(d["c"])([Object(P["a"])({components:{CouponBoxContainerComponent:k,NewsletterContainerComponent:D,WheelContainerComponent:L,NotificationContainterComponent:F,FreeShippingPopupContainerComponent:I,SalesPopupContainerComponent:N,ProductPopupContainerComponent:M}})],e),e}(P["d"]),$=V,H=$,J=i("2877"),Q=Object(J["a"])(H,p,f,!1,null,null,null),z=Q.exports;function X(t,e){Object(r["a"])("Render Proof Factor With Account Id:",t),n["c"].accountOverLimit=e,n["c"].paidTrackedEvents=!e;var i=document.getElementById("juicier-container");if(!i){var s=document.createElement("div");s.setAttribute("data-account-id",t),s.setAttribute("id","juicier-container"),s.setAttribute("style","position: relative;bottom: 0;left: 0;"),document.body.appendChild(s)}new a["a"]({el:"#juicier-container",store:o["a"],render:function(t){return t(z,{props:{}})}})}i.d(e,"render",(function(){return X})),a["a"].config.productionTip=!1,a["a"].use(u.a,{isEnabled:!0,logLevel:"error",stringifyArguments:!1,showLogLevel:!0,showMethodName:!0,separator:"|",showConsoleColors:!0}),a["a"].use(l["a"]),a["a"].use(s["a"])},"3e3a":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return conversionCaptureService}));var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__),tslib__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("9ab4"),_services_EnvironmentService__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("c8c5"),_services_FormDataService__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("f0c4"),_services_LogService__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("b8f4"),_services_Service__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("3def"),_store_Store__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("eaff"),_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("2294"),LOG_LABEL="conversion-capture-service",ConversionCaptureService=function(_super){function ConversionCaptureService(){var t=null!==_super&&_super.apply(this,arguments)||this;return t.store=_store_Store__WEBPACK_IMPORTED_MODULE_9__["a"],t.handledForms=[],t}return Object(tslib__WEBPACK_IMPORTED_MODULE_4__["d"])(ConversionCaptureService,_super),Object.defineProperty(ConversionCaptureService.prototype,"config",{get:function(){return this.store.getters.captureOptions},enumerable:!0,configurable:!0}),Object.defineProperty(ConversionCaptureService.prototype,"configOptions",{get:function(){return this.store.getters.configOptions},enumerable:!0,configurable:!0}),ConversionCaptureService.prototype.processConfig=function(){Object(_services_LogService__WEBPACK_IMPORTED_MODULE_7__["a"])(LOG_LABEL,"page: "+document.location.href+" config: "+JSON.stringify(this.config)),this.configOptions&&this.configOptions.post_init_javascript&&""!==this.configOptions.post_init_javascript&&(Object(_services_LogService__WEBPACK_IMPORTED_MODULE_7__["a"])(LOG_LABEL,"evaluating post init javascript: "+this.configOptions.post_init_javascript),eval(this.configOptions.post_init_javascript)),this.config&&this.config.active&&this.attachToFormsOnCurrentPage()},ConversionCaptureService.prototype.attachToOptinForms=function(){if("function"===typeof window.jQuery&&document.getElementsByClassName("optin-submit-btn").length>0){var t=this;window.jQuery("body").on("click",".optin-submit-btn",(function(){var e=window.jQuery(this).parents("form")[0];e&&t.formClickCallback(e)}))}},ConversionCaptureService.prototype.attachToLeadPagesForms=function(){var t=this;if("function"===typeof window.leadpagesForm&&document.getElementById("leadpages-form")){Object(_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__["a"])("PF: Attach To Lead Pages Forms");var e=!1;if(HTMLFormElement.prototype&&HTMLFormElement.prototype.submit&&HTMLFormElement.prototype.submit.call){var i=HTMLFormElement.prototype.submit.call;HTMLFormElement.prototype.submit.call=function(n){e||(e=!0,t.formObjectSubmissionCallback(n)),i(n)}}var n=document.getElementById("leadpages-form"),o=n.submit;o&&(n.submit=function(){e||(e=!0,t.formObjectSubmissionCallback(n)),o()})}},ConversionCaptureService.prototype.attachToFormsWithJQuery=function(){var t=this;if("function"===typeof window.leadpagesForm&&document.getElementById("leadpages-form")){Object(_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__["a"])("PF: Attach To Lead Pages Forms jQuery");var e=HTMLFormElement.prototype.submit.call;HTMLFormElement.prototype.submit.call=function(i){t.formSubmissionCallback(i),e(i)}}else"function"===typeof window.jQuery&&(Object(_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__["a"])("PF: Attach To jQuery Forms"),window.jQuery(document).on("submitted.drip",(function(e,i){t.dripSubmissionCallback(i)})),window.jQuery("form").on("submit",(function(e){e&&e.target&&"FORM"===e.target.tagName&&t.formSubmissionCallback(e)})),window.jQuery("input[type=submit]").on("click",(function(e){if(e.target&&e.target.form){var i=e.target.form;t.formClickCallback(i)}})))},ConversionCaptureService.prototype.attachToFormsWithNativeJavascript=function(){var t=this;Object(_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__["a"])("PF: Attach To Forms with Native Javascript"),document.addEventListener("submit",(function(e){"FORM"===e.target.tagName&&t.formSubmissionCallback(e)}),{capture:!0,passive:!0}),document.querySelectorAll("input[type=submit]").forEach((function(e){e.addEventListener("click",(function(e){if(e.target&&e.target.form){var i=e.target.form;t.formClickCallback(i)}}),{capture:!0,passive:!0})})),document.addEventListener("om.Optin.success",(function(e){t.optinmonsterSubmissionCallback(e.detail.Optin.data)}),{capture:!0,passive:!0})},ConversionCaptureService.prototype.attachToDiviForm=function(){var t=this;if("function"===typeof window.et_pb_submit_newsletter){Object(_utils_widget_log__WEBPACK_IMPORTED_MODULE_10__["a"])("PF: Attach To Divi Forms");var e=window.et_pb_submit_newsletter;window.et_pb_submit_newsletter=function(i,n){t.diviFormSubmissionCallback(i,n),e(i,n)}}},ConversionCaptureService.prototype.attachToFormsOnCurrentPage=function(){this.attachToLeadPagesForms(),this.attachToFormsWithJQuery(),this.attachToFormsWithNativeJavascript(),this.attachToDiviForm(),this.attachToSalonPluginDetailsForm(),this.attachToOptinForms()},ConversionCaptureService.prototype.attachToSalonPluginDetailsForm=function(){var t=this;if("function"===typeof window.jQuery&&document.getElementById("sln-salon")&&window.salon&&"function"===typeof window.sln_init){var e=window.sln_init;window.sln_init=function(i){e(i),t.attachToSalonPluginDetailsStep()},this.attachToSalonPluginDetailsStep()}},ConversionCaptureService.prototype.attachToSalonPluginDetailsStep=function(){var t=this;"function"===typeof window.jQuery&&document.getElementById("sln-salon")&&window.salon&&window.jQuery('[data-salon-toggle="next"]').click((function(e){var i=window.jQuery(e.currentTarget).closest("form")[0];-1!==i.id.indexOf("salon-step-details")&&t.formObjectSubmissionCallback(i)}))},ConversionCaptureService.prototype.diviFormSubmissionCallback=function(t,e){if(t&&"function"===typeof t.closest){var i=t.closest(".et_pb_newsletter_form form")[0];i&&this.formClickCallback(i)}},ConversionCaptureService.prototype.optinmonsterSubmissionCallback=function(t){t&&_services_FormDataService__WEBPACK_IMPORTED_MODULE_6__["a"].sendDataUsingBeacon(_services_EnvironmentService__WEBPACK_IMPORTED_MODULE_5__["a"].formEventsUrl+"/"+this.config.notification_id,document.location.href,t.fields)},ConversionCaptureService.prototype.dripSubmissionCallback=function(t){var e=t;e["fields[email]"]&&(e.email=e["fields[email]"]),_services_FormDataService__WEBPACK_IMPORTED_MODULE_6__["a"].sendDataUsingBeacon(_services_EnvironmentService__WEBPACK_IMPORTED_MODULE_5__["a"].formEventsUrl+"/"+this.config.notification_id,document.location.href,e)},ConversionCaptureService.prototype.formSubmissionCallback=function(t){var e=t.target;Object(_services_LogService__WEBPACK_IMPORTED_MODULE_7__["a"])(LOG_LABEL,"target: "+e+" this: "+this),this.formObjectSubmissionCallback(e)},ConversionCaptureService.prototype.formClickCallback=function(t){Object(_services_LogService__WEBPACK_IMPORTED_MODULE_7__["a"])(LOG_LABEL,"target: "+t+" this: "+this),t&&"function"===typeof t.checkValidity&&t.checkValidity()&&this.formObjectSubmissionCallback(t)},ConversionCaptureService.prototype.formObjectSubmissionCallback=function(t){if(!("function"===typeof window.jQuery&&document.getElementById("sln-salon")&&window.salon&&document.getElementById("salon-step-date"))&&!this.handledForms.includes(t)){this.handledForms.push(t);for(var e={},i=0;i1&&(i+="s"),[t+" "+i+" ago","in "+t+" "+i]},c=["秒","分钟","小时","天","周","个月","年"],u=function(t,e){if(0===e)return["刚刚","片刻后"];var i=c[~~(e/2)];return[t+" "+i+"前",t+" "+i+"后"]},l={},p=function(t,e){l[t]=e},f=function(t){return l[t]||l["en_US"]},d=[60,60,24,7,365/7/12,12];function _(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}function g(t,e){var i=t<0?1:0;t=Math.abs(t);for(var n=t,o=0;t>=d[o]&&o(0===o?9:1)&&(o+=1),e(t,o,n)[i].replace("%s",t)}function h(t,e){return e=e?_(e):new Date,(+e-+_(t))/1e3}var v=function(t,e,i){var n=h(t,i&&i.relativeDate);return g(n,f(e))};p("en_US",s),p("zh_CN",u),i.d(e,"a",(function(){return b}));var m=function(t){function e(){var e=t.call(this)||this;return e.registeredLocales=[],e}return Object(n["d"])(e,t),e.prototype.ago=function(t,e){return e?v(t,e):v(t)},e.prototype.registerLocale=function(t){var e=this;return Object(o["a"])("time","registerLocale: "+t),new Promise((function(i,n){e.registeredLocales.includes(t)&&(Object(o["c"])("time",'"'+t+'" is already loaded'),i()),e.loadLocaleFunction(t).then((function(n){Object(o["a"])("time",'"'+t+'" is loaded');var r=n.default;r&&(e.registeredLocales.push(t),p(t,r)),i()})).catch((function(){return i()}))}))},e.prototype.loadLocaleFunction=function(t){switch(t){case"de":return i.e("i18n-time-de").then(i.bind(null,"309c"));case"ar":return i.e("i18n-time-ar").then(i.t.bind(null,"6212",7));case"be":return i.e("i18n-time-be").then(i.t.bind(null,"495c",7));case"bg":return i.e("i18n-time-bg").then(i.t.bind(null,"125f",7));case"bn_IN":return i.e("i18n-time-bn_IN").then(i.t.bind(null,"c2ca",7));case"ca":return i.e("i18n-time-ca").then(i.t.bind(null,"2243",7));case"da":return i.e("i18n-time-da").then(i.t.bind(null,"f454",7));case"el":return i.e("i18n-time-el").then(i.t.bind(null,"247a",7));case"en_short":return i.e("i18n-time-en_short").then(i.t.bind(null,"9f5b",7));case"es":return i.e("i18n-time-es").then(i.t.bind(null,"9fb2",7));case"eu":return i.e("i18n-time-eu").then(i.t.bind(null,"3dbe",7));case"fa":return i.e("i18n-time-fa").then(i.t.bind(null,"ec86",7));case"fi":return i.e("i18n-time-fi").then(i.t.bind(null,"c9a9",7));case"fr":return i.e("i18n-time-fr").then(i.t.bind(null,"77aa",7));case"gl":return i.e("i18n-time-gl").then(i.t.bind(null,"1b29",7));case"he":return i.e("i18n-time-he").then(i.t.bind(null,"e615",7));case"hi_IN":return i.e("i18n-time-hi_IN").then(i.t.bind(null,"eb2f",7));case"hu":return i.e("i18n-time-hu").then(i.t.bind(null,"71e1",7));case"it":return i.e("i18n-time-it").then(i.t.bind(null,"e579",7));case"ja":return i.e("i18n-time-ja").then(i.t.bind(null,"d9af6",7));case"ka":return i.e("i18n-time-ka").then(i.t.bind(null,"958d",7));case"ko":return i.e("i18n-time-ko").then(i.t.bind(null,"9db8",7));case"ml":return i.e("i18n-time-ml").then(i.t.bind(null,"639f",7));case"my":return i.e("i18n-time-my").then(i.t.bind(null,"b5bc",7));case"nb_NO":return i.e("i18n-time-nb_NO").then(i.t.bind(null,"57fc",7));case"nl":return i.e("i18n-time-nl").then(i.t.bind(null,"6bec",7));case"nn_NO":return i.e("i18n-time-nn_NO").then(i.t.bind(null,"eb26",7));case"pl":return i.e("i18n-time-pl").then(i.t.bind(null,"8716",7));case"pt_BR":return i.e("i18n-time-pt_BR").then(i.t.bind(null,"2ac5",7));case"ro":return i.e("i18n-time-ro").then(i.t.bind(null,"7680",7));case"ru":return i.e("i18n-time-ru").then(i.t.bind(null,"6c0d",7));case"sq":return i.e("i18n-time-sq").then(i.t.bind(null,"4b57",7));case"sr":return i.e("i18n-time-sr").then(i.t.bind(null,"2e83",7));case"sv":return i.e("i18n-time-sv").then(i.t.bind(null,"3b5d",7));case"ta":return i.e("i18n-time-ta").then(i.t.bind(null,"77cf",7));case"th":return i.e("i18n-time-th").then(i.t.bind(null,"6989",7));case"tr":return i.e("i18n-time-tr").then(i.t.bind(null,"728a",7));case"uk":return i.e("i18n-time-uk").then(i.t.bind(null,"6881",7));case"vi":return i.e("i18n-time-vi").then(i.t.bind(null,"522e",7));case"zh_CN":return i.e("i18n-time-zh_CN").then(i.t.bind(null,"706c",7));case"zh_TW":return i.e("i18n-time-zh_TW").then(i.t.bind(null,"ed5d",7));default:return new Promise((function(t,e){t()}))}},e}(r["a"]),b=new m},5250:function(t,e,i){"use strict";i.d(e,"d",(function(){return r})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o}));var n,o,r="proof-factor-app",a="proof-factor-";(function(t){t["notificationBox"]="notification-box",t["notification"]="notification",t["notificationOnDesktop"]="notification-desktop",t["notificationOnMobile"]="notification-mobile",t["userActivityNotification"]="user-activity-notification",t["aggregateUserCountNotification"]="aggregate-user-count-notification",t["liveUserCountNotification"]="live-user-count-notification",t["aggregateUserActivityNotification"]="aggregate-user-activity-notification",t["buttonClose"]="button-close",t["iconBox"]="image-box",t["icon"]="image",t["body"]="body",t["title"]="title",t["titleHighlight"]="title-highlight",t["titleText"]="title-text",t["text"]="subtitle-text",t["details"]="system-box",t["detailsText"]="system-timestamp-text",t["poweredLink"]="system-branding-box",t["poweredText"]="system-branding-verification-text",t["poweredIcon"]="system-branding-icon",t["poweredProofFactor"]="system-branding-company-text"})(n||(n={})),function(t){t["isDesktopLeft"]="is-desktop-left",t["isDesktopRight"]="is-desktop-right",t["isDesktopTop"]="is-desktop-top",t["isDesktopBottom"]="is-desktop-bottom",t["isMobileTop"]="is-mobile-top",t["isMobileBottom"]="is-mobile-bottom",t["isMobileVisible"]="is-mobile-visible",t["isDesktopVisible"]="is-desktop-visible",t["isPreview"]="is-preview",t["isPlaygroundPreview"]="is-playground-preview",t["isRegular"]="is-regular",t["isThemeRounded"]="is-theme-rounded",t["isThemeSquared"]="is-theme-squared",t["isClickable"]="is-clickable",t["isTypeLiveVisitorCount"]="is-type-live-visitor-count",t["isTypeRecentActivity"]="is-type-recent-activity",t["isTypeAggregateVisitorCount"]="is-type-aggregate-visitor-count",t["isTypeAggregateActivity"]="is-type-aggregate-activity",t["isMaskNone"]="is-mask-none",t["isMaskCircle"]="is-mask-circle",t["isMaskRoundedSquare"]="is-mask-rounded-square",t["isIconTypePulse"]="is-icon-type-pulse",t["isIconTypeImage"]="is-icon-type-image",t["isRTL"]="is-rtl",t["isShadowToggle"]="is-shadow-toggle"}(o||(o={}))},"60a3":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"e",(function(){return c})),i.d(e,"c",(function(){return u}));var n=i("2b0e");i.d(e,"d",(function(){return n["a"]}));var o=i("2fe1");i.d(e,"a",(function(){return o["b"]}));var r="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function a(t,e,i){r&&(Array.isArray(t)||"function"===typeof t||"undefined"!==typeof t.type||(t.type=Reflect.getMetadata("design:type",e,i)))}function s(t){return void 0===t&&(t={}),function(e,i){a(t,e,i),Object(o["a"])((function(e,i){(e.props||(e.props={}))[i]=t}))(e,i)}}function c(t,e){void 0===e&&(e={});var i=e.deep,n=void 0!==i&&i,r=e.immediate,a=void 0!==r&&r;return Object(o["a"])((function(e,i){"object"!==typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!==typeof o[t]||Array.isArray(o[t])?"undefined"===typeof o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:i,deep:n,immediate:a})}))}function u(t){return Object(o["a"])((function(e,i){e.computed=e.computed||{},e.computed[i]={cache:!1,get:function(){return this.$refs[t||i]}}}))}},7204:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t["DEBUG"]="debug",t["INFO"]="info",t["WARN"]="warn",t["ERROR"]="error",t["FATAL"]="fatal"}(e.LogLevels||(e.LogLevels={}))},"85ff":function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(i("9eff"));o.default.polyfill();var r=n(i("127f"));e.default=r.default},"9eff":function(t,e,i){"use strict";function n(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var i=Object(t),n=1;n"+t+""},e.prepareTitle=function(t){return h["b"].info("notification-service","prepareTitle: ["+t+"]"),e._trimText(t,120)},e.prepareSubtitle=function(t){return h["b"].info("notification-service","prepareSubtitle: ["+t+"]"),e._trimText(t,87)},e.currentTime=function(){return(new Date).getTime()},e.loadI18n=function(t){switch(t){case"pl":return i.e("i18n-de").then(i.bind(null,"a4f7"));case"da":return i.e("i18n-de").then(i.bind(null,"0359"));case"de":return i.e("i18n-de").then(i.bind(null,"1832"));case"es":return i.e("i18n-fr").then(i.bind(null,"0b73"));case"pt_BR":return i.e("i18n-fr").then(i.bind(null,"f19b"));case"fr":return i.e("i18n-fr").then(i.bind(null,"dac8"));case"ar":return i.e("i18n-ar").then(i.bind(null,"5be6"));case"ru":return i.e("i18n-ru").then(i.bind(null,"4f8d"));case"uk":return i.e("i18n-uk").then(i.bind(null,"3d06"));case"it":return i.e("i18n-uk").then(i.bind(null,"3d13"));case"vi":return i.e("i18n-uk").then(i.bind(null,"0619"));case"ja":return i.e("i18n-uk").then(i.bind(null,"fc86"));case"ro":return i.e("i18n-ro").then(i.bind(null,"abc5"));case"en":default:return i.e("i18n-en").then(i.bind(null,"76aa"))}},e.localizedString=function(t,i){return void 0===i&&(i=null),e.localeTexts[t]||i||t},e.textFromDuration=function(t){var i="aggregate_subtitle_"+t;return e.localizedString(i,"In the last "+t)},e._trimText=function(t,e){return t.length>e&&(t=t.substring(0,e-3)+"…"),t},e._fetchUserActivityEvents=function(t){return u["a"].get(e.eventsUrlForNotification(t))},e.eventsUrlForNotification=function(t){var e=t.id,i=(null===t||void 0===t?void 0:t.active)&&(null===t||void 0===t?void 0:t.display_actual_products);Object(h["a"])(b,"account_id: "+_["c"].accountId+" notificationId: "+e);var n=encodeURIComponent(c["a"].deviceStringIdentifier());if(window.location.pathname.includes("/products/")&&i){var o=window.location.pathname.split("/").pop()||"";return g["a"].notificationEventsUrl(e)+"?account_id="+_["c"].accountId+"&user_agent="+n+(o?"&product_name="+encodeURIComponent(o):"")}return g["a"].notificationEventsUrl(e)+"?account_id="+_["c"].accountId+"&user_agent="+n},e.prototype.fetchAndUpdateLocales=function(t){this.loadI18nIfNeeded(t),this.updateLocaleTexts(t)},e.prototype.processNotificationConfigs=function(){if(e.localeTexts){var t=this.configUserActivity&&this.configUserActivity.active,i=this.configLiveUserCount&&this.configLiveUserCount.active,n=this.configAggregateUserCount&&this.configAggregateUserCount.active,o=this.configAggregateUserActivity&&this.configAggregateUserActivity.active,r={};i&&(r.luc_id=this.configLiveUserCount.id),n&&(r.auc_id=this.configAggregateUserCount.id),o&&(r.uaa_id=this.configAggregateUserActivity.id),this.fetchAdditionalNotificationData(r),t&&C.fetchAndProcessUserActivity()}},e.prototype.fetchAdditionalNotificationData=function(t){var e=this;Object(h["a"])("notification-service","params: ",t);var i=Object.keys(t).map((function(e){return e+"="+t[e]})).join("&"),n=document.location.hostname,o=document.location.pathname+document.location.hash,r=encodeURIComponent(c["a"].deviceStringIdentifier()),a=g["a"].addlNotificationDataUrl,s=o?"&page="+encodeURIComponent(o):"",p=a+"?acc_id="+_["c"].accountId+"&domain="+encodeURIComponent(n)+s+"&user_agent="+r+"&"+i+"&vid="+l["a"].visitorToken();Object(h["a"])("notification-service","final_url: "+p),u["a"].get(p).then((function(t){var i=t.data;if(i.uaa&&i.uaa.events){var n=i.uaa.events;Object(h["a"])(b,"Aggregate User Activity Events:",n),e.store.commit(f["a"].SET_CONFIG_AGGREGATE_USER_ACTIVITY_EVENTS,n),e._processAggregateUserActivityEvents()}i.auc&&(Object(h["a"])(b,"Aggregate User Count:",i.auc),e.store.commit(f["a"].SET_CONFIG_AGGREGATE_USER_COUNT_VISITS,i.auc),e._processAggregateUserCount()),i.luc&&i.luc.count&&(e.store.commit(f["a"].SET_CONFIG_LIVE_USER_COUNT_VISITS,i.luc.count),Object(h["a"])(b,"Live User Count visits:",e.configLiveUserCount.visits),e._processLiveUserCount())})).then((function(){e.singleItemNotificationProcessed=!0,e._startShowingNotifications()})).catch((function(t){console.error("PF Error Fetching Additional Notification Data:",t)}))},e.prototype.getTimerStatus=function(){return this.timer?this.timer.status:"unknown"},e.prototype.fetchAndProcessUserActivity=function(){var t=this,i=this.configUserActivity;e._fetchUserActivityEvents(i).then((function(e){var i=e.data;return t.store.commit(f["a"].SET_CONFIG_USER_ACTIVITY_EVENTS,i.events)})).then((function(){return Object(h["a"])(b,"User Activity Notification Events:",t.configUserActivity.events)})).then((function(){return t._processUserActivity()})).catch((function(t){console.error("PF Error Fetching UAN Events:",t)}))},e.prototype.pauseActiveTimers=function(){this.timer&&(Object(h["a"])(b,"All timers are paused; Timer Status "+this.getTimerStatus()),this.timer.pause())},e.prototype.resumePausedTimers=function(){this.timer&&(Object(h["a"])(b,"All timers are resumed; Timer Status "+this.getTimerStatus()),this.timer.resume())},e.prototype.locale=function(){return this.configOptions&&this.configOptions.language&&this.configOptions.language.locale?this.configOptions.language.locale:"en"},e.prototype.onNotificationShown=function(t,e){Object(h["a"])(b,"onNotificationShown: "+t+" status: "+e),e?this._pushHidingTimer():(this.invalidImageNotifications.push(t),this._clearTimer(),0===this.notifications.length?(this._restartNotifications(),this._pushShowingTimer()):this._showAndIncrementMessage())},e.prototype.stop=function(){Object(h["a"])(b,"Stop service"),this._clearTimer(),this.store.commit(f["a"].REMOVE_CURRENT_ITEM),this.store.commit(f["a"].REMOVE_ALL_ITEMS),this.notificationsStartedShowing=!1},e.prototype.updateLocaleTexts=function(t){var i=this.loadedLocales[t];d["a"].commit(f["a"].SET_LOCALE_TEXTS,i||e.localeTexts)},e.prototype.loadI18nIfNeeded=function(t){var i=this;this.loadedLocales[t]||e.loadI18n(t).then((function(e){i.loadedLocales[t]=e.default,i.updateLocaleTexts(t)})).catch((function(t){console.error("PF Error Loading Locales:",t)}))},e.prototype._restartNotifications=function(){Object(h["a"])(b,"Restarting Notifications from first notification"),this.configAggregateUserActivity.active&&this.configAggregateUserActivity.options.loop&&this._processAggregateUserActivityEvents(),this.configAggregateUserCount.active&&this.configAggregateUserCount.options.loop&&this._processAggregateUserCount(),this.configLiveUserCount.active&&this.configLiveUserCount.options.loop&&this._processLiveUserCount(),this.configUserActivity.active&&this.configUserActivity.options.loop&&(v["a"].setItem(y,JSON.stringify([])),this._processUserActivity())},e.prototype._processLiveUserCount=function(){var t=this.configLiveUserCount,i=t.visits>=t.options.min_visitors;if(Object(h["a"])(b,"Process Live User Count Config"),Object(h["a"])(b,"Show Live User Count notification:",i),i){var n="global"===t.options.context?t.options.title_message_global:t.options.title_message_page;null==n&&(n="global"===t.options.context?"are viewing this site":"are viewing this page");var o=t.visits+" "+t.options.visitor_name,a=e.highlightText(o),s=e.prepareTitle(n),c=a+" "+s,u={title:c,id:t.id,notificationId:t.id,img:t.image,objectives:t.objectives,isCloseable:!0,type:r["a"].LiveUserCountNotification,eventType:"live_user_count_event"};this.store.commit(f["a"].UNSHIFT_ITEM,u),Object(h["a"])(b,"Live User Count notification:",u)}},e.prototype._processAggregateUserActivityEvents=function(){var t=this.locale(),i=this.configAggregateUserActivity;Object(h["a"])(b,"Process Aggregate User Activity Config: "+JSON.stringify(i)+" locale: "+t+" events: "+JSON.stringify(this.configAggregateUserActivity.events));for(var n=0,o=this.configAggregateUserActivity.events;n=t.options.min_visitors;if(Object(h["a"])(b,"Process Aggregate User Count Config"),Object(h["a"])(b,"Show Aggregate User Count notification:",i),i){var n="global"===t.options.context?t.options.title_message_global:t.options.title_message_page;null==n&&(n="global"===t.options.context?"viewed this site":"viewed this page");var o=t.count+" "+t.options.visitor_name,a=e.highlightText(o),s=e.prepareTitle(n),c=a+" "+s,u={title:c,time:e.textFromDuration(t.duration),id:t.id,notificationId:this.configAggregateUserCount.id,objectives:t.objectives,img:t.image,type:r["a"].AggregateUserCountNotification,isCloseable:!0,eventType:"aggregate_user_count_event"};this.store.commit(f["a"].UNSHIFT_ITEM,u),Object(h["a"])(b,"Aggregate User Count notification:",u)}},e.prototype._processUserActivity=function(){var t=this.configUserActivity;if(null!==this.configUserActivity.events&&void 0!==this.configUserActivity.events&&0!==this.configUserActivity.events.length){Object(h["a"])(b,"User Activity Events: "+this.configUserActivity.events);var i="",n=o["a"].Self,a=!(!t.objectives||!t.objectives.clickable);(void 0===t.options.clickable||t.options.clickable)&&t.objectives&&(t.objectives.click_url&&Object.keys(t.objectives.click_url).length&&(i=t.objectives.click_url),t.objectives.click_url_target&&Object.keys(t.objectives.click_url_target).length&&(n=t.objectives.click_url_target));var s=JSON.parse(v["a"].getItem(y)||"[]");if(this.configUserActivity&&this.configUserActivity.events){var c=this.configUserActivity.events.map((function(t){return t.id})).filter((function(t){return s.indexOf(t)<0}));Object(h["a"])(b,"Missing User Activity Events: "+JSON.stringify(c)),0===c.length&&t.options.loop&&(s=[],v["a"].setItem(y,JSON.stringify([])))}var u=t.options.always_display_latest;Object(h["a"])(b,"uaNotification.options.clickable: "+t.options.clickable),Object(h["a"])(b,"clickUrl: "+i);var l=this.locale();if(this.configUserActivity&&this.configUserActivity.events){for(var d=[],_=0,g=this.configUserActivity.events;_0&&s.includes(m.id))Object(h["a"])(b,"Skipping notification: "+m.id+" because we are continuing where we left off");else{(void 0===t.options.clickable||t.options.clickable)&&m.target_url&&Object.keys(m.target_url).length&&(i=m.target_url);var O={notificationId:m.notification_id,uniqueId:m.id,eventType:m.event_type,img:{url:m.image_url},time:t.options.hide_creation_date?null:p["a"].ago(m.created_at,l),title:e.prepareTitle(m.title_message),subtitle:e.prepareSubtitle(m.message),objectives:{click_url_target:n,click_url:i,clickable:a},isCloseable:!0,type:r["a"].UserActivityNotification};d.push(O)}}Object(h["a"])(b,"Final size of events we can display: "+d.length),this.store.commit(f["a"].ADD_ITEMS,d)}var C=this.configLiveUserCount.active||this.configAggregateUserCount.active||this.configAggregateUserActivity.active;Object(h["a"])(b,"anyUserCountNotificationsEnabled: "+C),C?this.singleItemNotificationProcessed?(Object(h["a"])(b,"Started to Show Notifications From Within User Count"),this._startShowingNotifications()):Object(h["a"])(b,"Did Not Start Notifications: singleItemNotifcationProcessed: "+this.singleItemNotificationProcessed):(Object(h["a"])(b,"Started to Show Notifications"),this._startShowingNotifications())}else Object(h["c"])(b,"There are no User Activity events to show.")},e.prototype._startShowingNotifications=function(){var t=0===this.notifications.length,e=!this.notificationsStartedShowing&&this.notifications.length>0;t?Object(h["c"])(b,"There are no notifications to show."):e&&(this.notificationsStartedShowing=!0,this._pushShowingTimer())},e.prototype._clearTimer=function(){Object(h["a"])(b,"Clear Timer Called; Timer Status: "+this.getTimerStatus()),this.timer&&(this.timer.clear(),this.timer=null)},e.prototype._setCurrentNotification=function(t){t&&Object(h["a"])(b,"Set Current Notification:",JSON.stringify(t)),this.store.commit(f["a"].SET_CURRENT_ITEM,t),s["analyticService"].trackImpression({unique_id:t.uniqueId,notification_id:t.notificationId,event_type:t.eventType})},e.prototype._showAndIncrementMessage=function(){var t=this.notifications[0];if(t){if(this.store.commit(f["a"].REMOVE_ITEM,t),this._setCurrentNotification(t||null),t&&t.type===r["a"].UserActivityNotification){var e=JSON.parse(v["a"].getItem(y)||"[]");e.push(t.uniqueId),v["a"].setItem(y,JSON.stringify(e)),Object(h["a"])(b,"Set last show notifications: ",e)}}else Object(h["a"])(b,"Nothing to show")},e.prototype._hideCurrentMessage=function(){Object(h["a"])(b,"Hide Current Message: ",JSON.stringify(this.store.getters.currentNotification)),this.store.commit(f["a"].REMOVE_CURRENT_ITEM),0===this.notifications.length&&this._restartNotifications(),this._pushShowingTimer()},e.prototype._pushShowingTimer=function(){var t=this,e=this._delay;this._isInitialNotificationDisplayed||(this._isInitialNotificationDisplayed=!0),"paused"!==this.getTimerStatus()&&(Object(h["a"])(b,"Show in: "+e/1e3+"s"),this._clearTimer(),this.timer=new a["a"]((function(){return t._showAndIncrementMessage()}),e))},e.prototype._pushHidingTimer=function(){var t=this;if("paused"!==this.getTimerStatus()){var e=1e3*this.configOptions.timing.display_duration;Object(h["a"])(b,"Hide in: "+e/1e3+"s"),this._clearTimer(),this.timer=new a["a"]((function(){return t._hideCurrentMessage()}),e)}},e}(m["a"]),C=new O},e54a:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));const n={};function o(t){return Object.keys(t).reduce((e,i)=>{return!1!==t[i]&&null!==t[i]&&void 0!==t[i]&&(e[i]=t[i]),e},{})}const r={inheritAttrs:!1,render(t){return this.isLoaded?t("svg",{on:this.$listeners,attrs:Object.assign(this.svgAttrs,o(this.$attrs)),domProps:{innerHTML:this.svgContent}}):null},props:{src:{type:String,required:!0},transformSource:{type:Function,default:t=>t}},data(){return{isLoaded:!1,svgAttrs:{},svgContent:""}},watch:{src(t){this.inline(t)}},mounted(){this.inline(this.src)},methods:{inline(t){n[t]||(this.isLoaded&&(this.isLoaded=!1,this.$emit("unloaded")),n[t]=this.download(t)),n[t].then(t=>{this.svgAttrs={};const e=t.attributes;for(let i=e.length-1;i>=0;i--)this.svgAttrs[e[i].name]=e[i].value;this.svgContent=t.innerHTML,this.isLoaded=!0,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(e=>{delete n[t],this.$emit("error",e)})},download(t){return new Promise((e,i)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.onload=()=>{if(n.status>=200&&n.status<400)try{const t=new DOMParser,o=t.parseFromString(n.responseText,"text/xml");let r=o.getElementsByTagName("svg")[0];r?(r=this.transformSource(r),e(r)):i(new Error('Loaded file is not valid SVG"'))}catch(t){i(t)}else i(new Error("Error loading SVG"))},n.onerror=i,n.send()})}}},a={install(t){t.component("inline-svg",r)}}},f0c4:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));i("ac6a"),i("456d");var n=i("9ab4"),o=i("4495"),r=i("7a4c"),a=i("b8f4"),s=i("3def"),c=i("5006"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(n["d"])(e,t),e.sendDataUsingBeacon=function(t,e,i){for(var n={email:i.email,page:e,visitor_id:c["a"].visitorToken(),session_token:c["a"].sessionToken()},s=Object.keys(i),u=0,l=s;u