"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[31],{311:(t,e,n)=>{const r=n(132);(0,n(4).createEntrypoint)("initCustomer",r.InitCustomerContainer)()},132:function(t,e,n){var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,s){function u(t){try{c(r.next(t))}catch(t){s(t)}}function i(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,i)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.InitCustomerContainer=void 0;const o=n(0),s=n(1),u=n(3);e.InitCustomerContainer=({useSharedState:t})=>{const e=t(),{customer:n,getCurrentCustomer:i}=e((t=>({getCustomerAddresses:t.getCustomerAddresses,getCurrentCustomer:t.getCurrentCustomer,customer:t.customer})));return(0,u.useEffect)((()=>{n||function(){r(this,void 0,void 0,(function*(){try{yield i()}catch(t){console.error("User has not logged in.",t)}}))}()}),[]),(0,o.jsx)(s.Fragment,{})}}},t=>{t.O(0,[1,2],(()=>(311,t(t.s=311)))),t.O()}]);