var elc_service_communications;(()=>{"use strict";var e,t,r={"./node_modules/@estee/elc-service-view-names/src/index.ts":(e,t,r)=>{r.d(t,{R8:()=>o,m_:()=>i,ux:()=>n,yO:()=>s});const s="email-opt-in",o="view-email-opt-in",i="helpful-links",n="product-notify-me"},"./node_modules/@estee/elc-service/node_modules/@estee/elc-telemetry/src/index.ts":(e,t,r)=>{r.d(t,{SV:()=>c,k:()=>o});var s=r("@estee/elc-logging");class o{constructor(e,t){this.startMark=e=>{try{performance.mark(`${this.serviceViewName}_${e}`)}catch(t){this.logger.error({message:`[${this.serviceViewName}]: ${t}`,triggerType:s.TriggerType.other,payload:{error:t}})}},this.endMark=e=>{try{if(performance.getEntriesByName(e)){const t=`${this.serviceViewName}_${e}`;performance.mark(`${t}_end`),performance.measure(`${this.serviceViewName}_measure_${e}`,`${t}`,`${t}_end`),this.clearMark(t)}}catch(t){this.logger.error({message:`[${this.serviceViewName}]: ${t}`,triggerType:s.TriggerType.other,payload:{error:t}})}},this.clearMark=e=>{performance.clearMarks(e),performance.clearMarks(`${e}_end`)},this.logger=e,this.serviceViewName=t}}var i=r("react");r("./node_modules/odiff/odiff.js"),Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var n=r("./node_modules/@estee/elc-service/node_modules/@estee/elc-universal-utils/src/index.ts");class c extends i.Component{constructor(e){super(e),this.state={error:void 0},this.logger=new s.ELCLogger({serviceName:e.serviceName,buid:n.Jz.buid||"",environment:n.Jz.env||"",serviceVersion:(0,n.AM)(e.serviceName)||""})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.logger.error({triggerType:s.TriggerType.render,message:`Error caught in external view ${this.props.name}`,payload:{error:e,context:{serviceRegistry:n.Jz.ServiceRegistry}}})}render(){return this.state.error?null:this.props.children}}},"./node_modules/@estee/elc-service/node_modules/@estee/elc-universal-utils/src/index.ts":(e,t,r)=>{r.d(t,{cY:()=>o,YD:()=>i,AM:()=>c,Jz:()=>s});Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;"object"==typeof self&&(self.self,self);const s="undefined"==typeof window?r.g:window;const o="elc-service-view-renderer",i="data-rendered-view";var n;(e=>{function t(e){document.cookie=`${e}=; Max-Age=-99999999;`}function r(e,t,r){let s="";if(r){s=`; expires=${("number"==typeof r?new Date(Date.now()+24*r*60*60*1e3):r).toUTCString()}`}document.cookie=`${e}=${t||""}${s};path=/`}function s(e){const t=`${e}=`,r=document.cookie.split(";");for(let s=0;s{const s=o(e);r!==s&&(r=s,t(s))}),2e3)}})(n||(n={}));const c=(e,t="")=>{return r=(e=>(s.serviceInfo=s.serviceInfo||{},s.ServiceRegistry=s.ServiceRegistry||{},s.serviceInfo[e]||s.ServiceRegistry[e]))(e),r&&r.version||t;var r}},"./node_modules/@estee/elc-service/src/Service/ServiceManager/BaseComponent.tsx":(e,t,r)=>{r.d(t,{z:()=>h});var s=r("react"),o=r("./node_modules/@estee/elc-service/src/Service/ServiceManager/ServiceManager.ts");const i=new class{constructor(){this.views={}}loadAndSaveModule(e,t){return r=this,s=null,o=function*(){try{if(!this.views[e]){const r=yield t();this.views[e]=r.default}}catch(r){console.error(r)}},new Promise(((e,t)=>{var i=e=>{try{c(o.next(e))}catch(r){t(r)}},n=e=>{try{c(o.throw(e))}catch(r){t(r)}},c=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,n);c((o=o.apply(r,s)).next())}));var r,s,o}getView(e){return this.views[e]}};var n=r("./node_modules/@estee/elc-service/node_modules/@estee/elc-telemetry/src/index.ts"),c=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&v(e,r,t[r]);if(d)for(var r of d(t))m.call(t,r)&&v(e,r,t[r]);return e},f=(e,t)=>a(e,l(t)),_=(e,t,r)=>new Promise(((s,o)=>{var i=e=>{try{c(r.next(e))}catch(t){o(t)}},n=e=>{try{c(r.throw(e))}catch(t){o(t)}},c=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,n);c((r=r.apply(e,t)).next())}));function h(e,t,r){var c;return(c=class extends s.Component{constructor(e){super(e);const s=o.W.serviceHasStarted?o.W.getController(r):void 0;this.state={viewController:s,component:i.getView(t)}}componentDidMount(){return _(this,null,(function*(){try{o.W.serviceHasStarted||(yield o.W.startService()),yield i.loadAndSaveModule(t,e),this.setState({viewController:o.W.getController(r),component:i.getView(t)})}catch(s){console.error(s)}}))}render(){const e=this.state.component;return o.W.serviceHasStarted&&e?s.createElement(n.SV,{serviceName:o.W.serviceName,name:t},s.createElement(e,f(p({},this.props),{viewController:this.state.viewController}))):null}}).controllerName=r,c}},"./node_modules/@estee/elc-service/src/Service/ServiceManager/ServiceManager.ts":(e,t,r)=>{r.d(t,{W:()=>l});var s=r("@estee/elc-service-bus"),o=r("@estee/elc-logging"),i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=(e,t,r)=>new Promise(((s,o)=>{var i=e=>{try{c(r.next(e))}catch(t){o(t)}},n=e=>{try{c(r.throw(e))}catch(t){o(t)}},c=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,n);c((r=r.apply(e,t)).next())}));class a{constructor(){this.ecommStarted=!1,this.getContainer=()=>c(this,null,(function*(){return this.diContainer||(this.diContainer=(yield this.containerImport()).diContainer),this.diContainer})),this.handleServiceBusError=()=>{throw new Error(`\n ServiceBus hasn't been provided to ServiceManager at setServiceStartParams method.\n ServiceBus: ${this.serviceBusBaseClass?"ServiceBus found":this.serviceBusBaseClass}.\n ServiceBusKey: (${this.serviceBusControllerKey})\n `)},this.getServiceBusController=()=>c(this,null,(function*(){let e;try{yield this.startService();if(e=(yield this.getContainer()).get(this.serviceBusControllerKey),!e)throw new Error("ServiceBusController not found inside diContainer")}catch(t){this.logger.error({triggerType:o.TriggerType.render,message:t.message,payload:{error:t}})}return e})),this.setServiceStartParams=({serviceName:e,diContainerImport:t,serviceKey:r,serviceBusControllerKey:s,serviceBus:i})=>{var n;this.serviceName=e,this.containerImport=t,this.serviceKey=r,this.serviceBusControllerKey=s,this.logger=new o.ELCLogger({serviceName:e}),this.serviceBusBaseClass=null==i?void 0:i.serviceBusBaseClass,null==(n=null==i?void 0:i.createServiceBusMethod)||n.call(i)},this.getServiceBusControllerMethod=e=>(...t)=>c(this,null,(function*(){return(yield this.getServiceBusController())[e].call(null,...t)})),this.setDecoratorOnFunction=e=>([t,r])=>{this.serviceBusBaseClass&&this.serviceBusControllerKey?(e(t)(this.serviceBusBaseClass.__proto__,r),this.serviceBusBaseClass[r]=this.getServiceBusControllerMethod(r)):this.handleServiceBusError()},this.setDecoratorOnProperty=e=>([t,r])=>{this.serviceBusBaseClass&&this.serviceBusControllerKey?(e(r)(this.serviceBusBaseClass.__proto__,t),Object.defineProperty(this.serviceBusBaseClass.__proto__,t,{configurable:!0,enumerable:!0,set(e){return this.getServiceBusController().then((r=>{r[t]=e}))}})):this.handleServiceBusError()},this.setEcommHasStarted=()=>{this.ecommStarted=!0},this.onStart=(e,t)=>()=>c(this,null,(function*(){let r;try{if(this.serviceHasStarted)return void e();if(!t&&!this.ecommStarted)return;yield this.getContainer(),this.service=this.diContainer.get(this.serviceKey);let r=t;if(!r){const e=yield(0,s.query)(s.serviceQueries.GET_CONFIG,["ecommConfig"]);if(!e||!e.ecommConfig)throw new Error("EcommConfig not found");r=e.ecommConfig}yield this.service.start(r),(0,s.emit)(s.events.SERVICE_STARTED,{serviceName:this.serviceName})}catch(i){r=i,this.logger.error({triggerType:o.TriggerType.render,message:i.message,payload:{error:i}})}finally{e(r)}})),this.startService=e=>(this.startPromise||(this.startPromise=new Promise(((t,r)=>{let s=null;s=setInterval(this.onStart((e=>{s&&clearInterval(s),e?r(e):t()}),e),200)}))),this.startPromise),this.getController=e=>{if(!this.diContainer){const e="Can't request controller without starting the service first";throw this.logger.error({triggerType:o.TriggerType.render,message:e,payload:{serviceName:this.serviceName,context:{method:"getController method on ServiceManager"}}}),new Error(e)}return e?this.diContainer.get(e):void 0}}get serviceHasStarted(){return Boolean(this.service&&this.service.isStarted)}}((e,t,r,s)=>{for(var o,c=s>1?void 0:s?n(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(c=(s?o(t,r,c):o(c))||c);s&&c&&i(t,r,c)})([(0,s.on)(s.events.ECOMM_STARTED,{replay:!0})],a.prototype,"setEcommHasStarted",2);const l=new a},"./node_modules/@estee/elc-universal-utils/src/index.ts":(e,t,r)=>{r.d(t,{BN:()=>l,$W:()=>a,Jz:()=>n,q8:()=>c});var s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;"object"==typeof self&&(self.self,self);const n="undefined"==typeof window?r.g:window,c=e=>{const t=e,{name:r}=t,c=((e,t)=>{var r={};for(var n in e)o.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&i.call(e,n)&&(r[n]=e[n]);return r})(t,["name"]);n.serviceInfo=n.serviceInfo||{},n.serviceInfo[r]=c};function a(e){return e.replace(/-/g,"_")}var l;(e=>{function t(e){document.cookie=`${e}=; Max-Age=-99999999;`}function r(e,t,r){let s="";if(r){s=`; expires=${("number"==typeof r?new Date(Date.now()+24*r*60*60*1e3):r).toUTCString()}`}document.cookie=`${e}=${t||""}${s};path=/`}function s(e){const t=`${e}=`,r=document.cookie.split(";");for(let s=0;s{const s=o(e);r!==s&&(r=s,t(s))}),2e3)}})(l||(l={}))},"./src/exported/email-opt-in/index.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r("./node_modules/@estee/elc-service/src/Service/ServiceManager/BaseComponent.tsx"),o=r("./node_modules/@estee/elc-service-view-names/src/index.ts"),i=r("./src/service-setup/CommunicationsService.ts");const n=(0,s.z)((()=>Promise.all([r.e("vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4"),r.e("vendors-node_modules_estee_elc-checkbox_src_views_CheckBox_tsx-node_modules_estee_elc-service-e1274d"),r.e("diContainer"),r.e("src_exported_email-opt-in_EmailOptIn_tsx")]).then(r.bind(r,"./src/exported/email-opt-in/EmailOptIn.tsx"))),o.yO,i.Z.emailOptInViewController)},"./src/exported/helpful-links/index.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r("./node_modules/@estee/elc-service/src/Service/ServiceManager/BaseComponent.tsx"),o=r("./node_modules/@estee/elc-service-view-names/src/index.ts");const i=(0,s.z)((()=>Promise.all([r.e("vendors-node_modules_estee_elc-accordion_src_views_Accordion_tsx-node_modules_estee_elc-accor-3a50b2"),r.e("src_exported_helpful-links_HelpfulLinks_tsx")]).then(r.bind(r,"./src/exported/helpful-links/HelpfulLinks.tsx"))),o.m_)},"./src/exported/product-notify-me/index.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r("./node_modules/@estee/elc-service/src/Service/ServiceManager/BaseComponent.tsx"),o=r("./node_modules/@estee/elc-service-view-names/src/index.ts"),i=r("./src/service-setup/CommunicationsService.ts");const n=(0,s.z)((()=>Promise.all([r.e("vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4"),r.e("vendors-node_modules_estee_elc-checkbox_src_views_CheckBox_tsx-node_modules_estee_elc-service-e1274d"),r.e("vendors-node_modules_estee_elc-base-theme_src_ContentSpacing_ts-node_modules_estee_elc-button-8e7d1a"),r.e("diContainer"),r.e("src_exported_product-notify-me_ProductNotifyMePopUp_tsx")]).then(r.bind(r,"./src/exported/product-notify-me/ProductNotifyMePopUp.tsx"))),o.ux,i.Z.productNotifyMeViewController)},"./src/exported/view-email-opt-in/index.ts":(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r("./node_modules/@estee/elc-service/src/Service/ServiceManager/BaseComponent.tsx"),o=r("./node_modules/@estee/elc-service-view-names/src/index.ts"),i=r("./src/service-setup/CommunicationsService.ts");const n=(0,s.z)((()=>Promise.all([r.e("vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4"),r.e("diContainer"),r.e("src_exported_view-email-opt-in_ViewEmailOptIn_tsx")]).then(r.bind(r,"./src/exported/view-email-opt-in/ViewEmailOptIn.tsx"))),o.R8,i.Z.viewEmailOptInViewController)},"./src/service-setup/CommunicationsService.ts":(e,t,r)=>{r.d(t,{U:()=>d,Z:()=>u});var s=r("./node_modules/@estee/elc-service/node_modules/@estee/elc-universal-utils/src/index.ts"),o=r("@estee/elc-logging"),i=(e,t,r)=>new Promise(((s,o)=>{var i=e=>{try{c(r.next(e))}catch(t){o(t)}},n=e=>{try{c(r.throw(e))}catch(t){o(t)}},c=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,n);c((r=r.apply(e,t)).next())}));s.Jz.ServiceRegistry=s.Jz.ServiceRegistry||{};const n=()=>i(void 0,null,(function*(){}));class c{constructor(e,t,r=null){this.name=e,this.version=t,this.serviceInitializer=r,this.isStarted=!1}static setViews(e,t,r,o){s.Jz.ServiceRegistry[e]={name:t,version:r,views:o,isStarted:!0}}initializeService(e){return i(this,null,(function*(){try{const t=this.serviceInitializer||n;yield t(e),this.isStarted=!0}catch(t){this.logger.error({message:`Could not start service ${this.name}`,triggerType:o.TriggerType.render,payload:{error:t,context:{serviceRegistry:s.Jz.ServiceRegistry}}})}finally{this.isStarted=!0}}))}start(e){return this.startPromise||this.isStarted||(this.logger=this.logger||new o.ELCLogger({serviceName:this.name,environment:e.env||s.Jz.env,buid:e.businessUnitId||s.Jz.buid,serviceVersion:this.version}),this.startPromise=this.initializeService(e)),this.startPromise}}const{name:a,version:l}={branchName:"release/5.7",commitHash:"80fe15fbc14fff20eb7fb33971e93d5c5b932779",version:"5.7.0",name:"elc-service-communications"};class d extends c{constructor(e){super(a,l,e)}}const u={configStore:"CONFIG_STORE",serviceBusController:"SERVICE_BUS_CONTROLLER",pubSub:"PUB_SUB_CLIENT",communicationsService:"COMMUNICATIONS_SERVICE",communicationsApiSdk:"COMMUNICATIONS_API_SDK",notifyMeFormValidator:"NOTIFY_ME_FORM_VALIDATOR",httpTransport:"HTTP_TRANSPORT",emailOptInViewController:"EMAIL_OPT_IN_VIEW_CONTROLLER",emailOptInRepository:"EMAIL_OPT_IN_REPOSITORY",productNotifyMeViewController:"PRODUCT_NOTIFY_ME_VIEW_CONTROLLER",viewEmailOptInViewController:"VIEW_EMAIL_OPT_IN_VIEW_CONTROLLER",productNotifyMeRepository:"PRODUCT_NOTIFY_ME_REPOSITORY",notifyMeForm:"NOTIFY_ME_FORM"}},"./node_modules/odiff/odiff.js":e=>{e.exports=function(e,r){var s=[];return t(e,r,s,[]),s};var t=function(e,c,a,l){var d;if(!(e===c||Number.isNaN(e)&&Number.isNaN(c)))if(e instanceof Array&&c instanceof Array){for(var u=e.length-1,m=c.length-1;u>=0&&m>=0;)if(o(e[u],c[m]))u--,m--;else{for(var v=r(o,e,c,u,m,0,0),p=u,f=m;p>v.a&&f>v.b;)if(s(e[p],c[f]))t(e[p],c[f],a,l.concat([p])),p--,f--;else{var _=r(s,e,c,p,f,v.a+1,v.b+1),h=p-_.a,g=f-_.b;1===h&&1===g?w(a,l.concat(_.a+1),c[_.b+1]):1===h&&2===g?(x(a,l,_.a+2,c.slice(_.b+2,f+1)),w(a,l.concat(_.a+1),c[_.b+1])):2===h&&1===g?(C(a,l,_.a+2,1,e),w(a,l.concat(_.a+1),c[_.b+1])):2===h&&2===g?(w(a,l.concat(_.a+2),c[_.b+2]),w(a,l.concat(_.a+1),c[_.b+1])):(h>0&&C(a,l,_.a+1,h,e),g>0&&x(a,l,_.a+1,c.slice(_.b+1,f+1))),p=_.a,f=_.b}p>v.a?C(a,l,v.a+1,p-v.a,e):f>v.b&&x(a,l,p+1,c.slice(v.b+1,f+1)),u=v.a,m=v.b}u>=0?C(a,l,0,u+1,e):m>=0&&x(a,l,0,c.slice(0,m+1))}else if(e instanceof Date&&c instanceof Date)e.getTime()!==c.getTime()&&w(a,l,c);else if(e instanceof Object&&c instanceof Object){var y=n(i(Object.keys(e)),i(Object.keys(c)));for(var b in y){var S=l.concat([b]);b in e&&!(b in c)?(d=S,a.push({type:"unset",path:d})):t(e[b],c[b],a,S)}}else w(a,l,c);function w(e,t,r){e.push({type:"set",path:t,val:r})}function C(e,t,r,s,o){e.push({type:"rm",path:t,index:r,num:s,vals:o.slice(r,r+s)})}function x(e,t,r,s){e.push({type:"add",path:t,index:r,vals:s})}};function r(e,t,r,s,o,i,n){for(var c=s-i,a=o-n,l=Math.max(c,a),d=1;d<=l;d++){var u=t[s-d],m=r[o-d];if(d<=a&&d<=c&&e(u,m))return{a:s-d,b:o-d};for(var v=0;v=2&&s>r||s===e.length)return!1;s++}return!0}if(e instanceof Object){if(!(t instanceof Object))return!1;var a=n(i(Object.keys(e)),i(Object.keys(t))),l=Object.keys(a).length;r=l/10,s=0;for(var d in a){if(!o(e[d],t[d])){if(s>=2&&s>r||s+1===l)return!1;s++}}return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}function o(e,t){if(e instanceof Array){if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var r=0;r{e.exports=ElcServiceBus},"@estee/elc-logging":e=>{e.exports=ElcRuntime.ELCLogger},"hypo-container":e=>{e.exports=ElcRuntime.HypoContainer},react:e=>{e.exports=ElcRuntime.React},"react-dom":e=>{e.exports=ElcRuntime.ReactDom},mobx:e=>{e.exports=ElcRuntime.mobx},"mobx-react":e=>{e.exports=ElcRuntime.mobxReact},"styled-components":e=>{e.exports=ElcRuntime.styled5}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+"."+{"vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4":"acc8ae6e7c0080da8e12",diContainer:"bb03a457488daa8d5933","vendors-node_modules_estee_elc-checkbox_src_views_CheckBox_tsx-node_modules_estee_elc-service-e1274d":"4295a54c843c3f9b075e","src_exported_email-opt-in_EmailOptIn_tsx":"da89fa35f3de086241f9","vendors-node_modules_estee_elc-accordion_src_views_Accordion_tsx-node_modules_estee_elc-accor-3a50b2":"513b18fd5e5390d064c4","src_exported_helpful-links_HelpfulLinks_tsx":"c607de08a1ae7a2b2a7a","vendors-node_modules_estee_elc-base-theme_src_ContentSpacing_ts-node_modules_estee_elc-button-8e7d1a":"22fa53da7c552e134966","src_exported_product-notify-me_ProductNotifyMePopUp_tsx":"4edec8450685e32b1108","src_exported_view-email-opt-in_ViewEmailOptIn_tsx":"33414a4dd38e59b80f9e"}[e]+".bundle.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="elc-service-communications:",o.l=(r,s,i,n)=>{if(e[r])e[r].push(s);else{var c,a;if(void 0!==i)for(var l=document.getElementsByTagName("script"),d=0;d{c.onerror=c.onload=null,clearTimeout(v);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(s))),t)return t(s)},v=setTimeout(m.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=m.bind(null,c.onerror),c.onload=m.bind(null,c.onload),a&&document.head.appendChild(c)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={elc_service_communications:0};o.f.j=(t,r)=>{var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)r.push(s[2]);else{var i=new Promise(((r,o)=>s=e[t]=[r,o]));r.push(s[2]=i);var n=o.p+o.u(t),c=new Error;o.l(n,(r=>{if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+n+")",c.name="ChunkLoadError",c.type=i,c.request=n,s[1](c)}}),"chunk-"+t,t)}};var t=(t,r)=>{var s,i,[n,c,a]=r,l=0;if(n.some((t=>0!==e[t]))){for(s in c)o.o(c,s)&&(o.m[s]=c[s]);if(a)a(o)}for(t&&t(r);l{var e=o("./node_modules/@estee/elc-universal-utils/src/index.ts"),t=o("./node_modules/@estee/elc-service/src/Service/ServiceManager/ServiceManager.ts"),r=o("./node_modules/@estee/elc-service-view-names/src/index.ts"),s=o("./src/service-setup/CommunicationsService.ts");class i{constructor(){this.registerWatchers=void 0}}var n=o("@estee/elc-service-bus"),c=Object.defineProperty,a=Object.getOwnPropertyDescriptor;const l=[[n.serviceQueries.EMAIL_OPT_IN,"emailSignUp"]],d=[[n.events.GET_OPTIN_PROFILE_LOAD,"emailOptInRequestFromAccount"],[n.events.AUTH_SUCCEDED,"emailOptInRequest"],[n.events.APPOINTMENT_BOOKED,"guestEmailOptInRequest"],[n.events.CONTINUE_AS_GUEST_CLICKED,"guestEmailOptInRequest"],[n.events.USER_PROFILE_CHANGED,"userProfileChanged"],[n.events.SIGNED_OUT,"clearEmailOptIn"],[n.events.PRODUCT_NOTIFY_ME_REQUEST,"onProductNotifyMeRequest"],[n.events.PRODUCT_NOTIFY_ME_REQUEST_FAILURE,"onProductNotifyMeRequestFailure"]];class u extends i{constructor(){super(...arguments),this.onEcommStarted=()=>{const e=setInterval((()=>{m&&(clearInterval(e),l.forEach(t.W.setDecoratorOnFunction(n.queryProvider)),d.forEach(t.W.setDecoratorOnFunction(n.on)))}),50)}}}((e,t,r,s)=>{for(var o,i=s>1?void 0:s?a(t,r):t,n=e.length-1;n>=0;n--)(o=e[n])&&(i=(s?o(t,r,i):o(i))||i);s&&i&&c(t,r,i)})([(0,n.on)(n.events.ECOMM_STARTED,{replay:!0})],u.prototype,"onEcommStarted",2);const m=new u;o("./src/exported/email-opt-in/index.ts"),o("./src/exported/helpful-links/index.ts"),o("./src/exported/product-notify-me/index.ts"),o("./src/exported/view-email-opt-in/index.ts");(0,e.q8)({branchName:"release/5.7",commitHash:"80fe15fbc14fff20eb7fb33971e93d5c5b932779",version:"5.7.0",name:"elc-service-communications"});const{name:v,version:p}={branchName:"release/5.7",commitHash:"80fe15fbc14fff20eb7fb33971e93d5c5b932779",version:"5.7.0",name:"elc-service-communications"};s.U.setViews(v,(0,e.$W)(v),p,[r.yO,r.m_,r.ux,r.R8]),t.W.setServiceStartParams({serviceName:v,diContainerImport:()=>Promise.all([o.e("vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4"),o.e("diContainer")]).then(o.bind(o,"./src/service-setup/diContainer.tsx")),serviceKey:s.Z.communicationsService,serviceBusControllerKey:s.Z.serviceBusController,serviceBus:{serviceBusBaseClass:m}})})(),i=l,n={"./diContainer":()=>Promise.all([o.e("vendors-node_modules_estee_elc-form_src_store_FormStore_ts-node_modules_estee_elc-form_src_st-aba1e4"),o.e("diContainer")]).then((()=>()=>o("./src/service-setup/diContainer.tsx"))),"./email-opt-in":()=>Promise.resolve().then((()=>()=>o("./src/exported/email-opt-in/index.ts"))),"./helpful-links":()=>Promise.resolve().then((()=>()=>o("./src/exported/helpful-links/index.ts"))),"./product-notify-me":()=>Promise.resolve().then((()=>()=>o("./src/exported/product-notify-me/index.ts"))),"./view-email-opt-in":()=>Promise.resolve().then((()=>()=>o("./src/exported/view-email-opt-in/index.ts")))},c=(e,t)=>(o.R=t,t=o.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),o.R=void 0,t),a=(e,t)=>{if(o.S){var r="default",s=o.S[r];if(s&&s!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return o.S[r]=e,o.I(r,t)}},o.d(i,{get:()=>c,init:()=>a}),elc_service_communications=l})(); //# sourceMappingURL=bundle.js.map