1"use strict";(self.webpackChunkweb_bakery_page=self.webpackChunkweb_bakery_page||[]).push([[105],{69105(ot,F,t){t.d(F,{EntireModule:()=>k});var p=t(14616),X=t(53588),E=t(5235),B=t(93049),C=t(74523),S=t(67376),i=t(35547),f=t(42667),a=t(28487),u=t(60177),O=t(5964),g=t(96697),h=t(78601),H=t(17705),m=t(16245),V=t(24641),j=t(51683);let L=(()=>{class o extends h.CustomComponent{_platformId;_router;_route;_cdr;_context;_store;_cart;_componentResolver;_modalOpener;constructor(n,e,r,l,c,w,q,_,tt){super(),this._platformId=n,this._router=e,this._route=r,this._cdr=l,this._context=c,this._store=w,this._cart=q,this._componentResolver=_,this._modalOpener=tt}ngOnInit(){this._initOrderProcessContext(),this._subscribe()}_initOrderProcessContext(){(0,u.UE)(this._platformId)?this._store.pipe((0,f.Lt)(a.getCart),(0,O.p)(n=>!!n),(0,g.s)(1)).subscribe(n=>this._context.setOrderProcessContext(n.sourceType)):this._context.setStandardContext()}_subscribe(){var n=this;this.addSubscriber(this._route.queryParams.subscribe(function(){var e=(0,C.A)(function*(r){const l=(0,S.toUpper)((0,S.get)(r,"popup"));if(l&&(yield n._router.navigate([],{replaceUrl:!0}),n._cdr.detach(),setTimeout(()=>n._cdr.reattach(),100),a.AUTH_FORMS[l]))try{const c=yield n._modalOpener.showAuth(n._componentResolver,a.AUTH_FORMS[l]);c&&c.hasCustomerId&&(yield n._cart.resetCart())}catch{}});return function(r){return e.apply(this,arguments)}}()))}static \u0275fac=function(e){return new(e||o)(i.rXU(i.Agw),i.rXU(m.Ix),i.rXU(m.nX),i.rXU(H.gRc),i.rXU(V.e),i.rXU(f.il),i.rXU(a.CartServiceV2),i.rXU(i.OM3),i.rXU(j.y))};static \u0275cmp=i.VBU({type:o,selectors:[["entire-root"]],standalone:!1,features:[i.Vt3],decls:1,vars:0,template:function(e,r){1&e&&i.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2})}return o})();var d=t(7673),I=t(25558),U=t(99437),K=t(88141),s=t(85802);let P=(()=>{class o{store;_platformId;constructor(n,e){this.store=n,this._platformId=e}canActivate(){return(0,u.UE)(this._platformId)?this.checkStore().pipe((0,I.n)(n=>(0,d.of)(n)),(0,U.W)(()=>(0,d.of)(!1)),(0,K.M)(n=>{})):(0,d.of)(!0)}checkStore(){return this.store.select(a.getCartLoaded).pipe((0,K.M)(n=>{n||this.store.dispatch(new a.LoadCart)}),(0,O.p)(n=>n),(0,g.s)(1))}static \u0275fac=function(e){return new(e||o)(s.KVO(f.il),s.KVO(i.Agw))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac})}return o})();var M=t(50208),N=t(1796);let R=(()=>{class o{_router;_platformId;_context;_navigationService;_redirectService;constructor(n,e,r,l,c){this._router=n,this._platformId=e,this._context=r,this._navigationService=l,this._redirectService=c}canActivate(n){var e=this;return(0,C.A)(function*(){const{isSubdomain:r}=e._context.settings;let l=yield e._navigationService.getProductsOverviewUrlTree();return(0,u.Vy)(e._platformId)&&r&&e._redirectService.redirect(l,301),e._router.navigateByUrl(l,{replaceUrl:!0})})()}static \u0275fac=function(e){return new(e||o)(s.KVO(m.Ix),s.KVO(i.Agw),s.KVO(V.e),s.KVO(M.o),s.KVO(N.r))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac})}return o})();var x=t(96207);let v=(()=>{class o{_router;_uiContext;constructor(n,e){this._router=n,this._uiContext=e}canActivate(n){const e=this._uiContext.isMobile(),r=this._isMobilePath(n),l=n.url[0].path;return e&&!r?this._router.navigate(["/",l,"m"]):!e&&r?this._router.navigate(["/",l]):(0,d.of)(!0)}_isMobilePath(n){const e=n.firstChild.url;return e.length&&"m"===e[0].path}static \u0275fac=function(e){return new(e||o)(s.KVO(m.Ix),s.KVO(h.UiContextService))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac})}return o})(),D=(()=>{class o{store;_navigationService;_platformId;constructor(n,e,r){this.store=n,this._navigationService=e,this._platformId=r}canActivate(n,e){return(0,u.UE)(this._platformId)?this.checkStore().pipe((0,I.n)(r=>r?(this._navigationService.goToProductsOverview(),(0,d.of)(!1)):(0,d.of)(!0))).pipe((0,U.W)(()=>(0,d.of)(!1))):(0,d.of)(!0)}checkStore(){return this.store.select(a.getUser).pipe((0,g.s)(1))}static \u0275fac=function(e){return new(e||o)(s.KVO(f.il),s.KVO(M.o),s.KVO(i.Agw))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
1)();var y=t(54843);let A=(()=>{class o{_store;_navigation;constructor(n,e){this._store=n,this._navigation=e}canActivate(){var n=this;return(0,C.A)(function*(){const e=yield n._getCart();if(!(0,a.isReturnStepRequired)(e))return!0;const r=e.returnPackaging;return!(!r||(0,a.isReturnLineOutdated)(r,e.delivery,(0,a.getReturnSettings)(e)))||(yield n._navigation.goToReturn(),!1)})()}_getCart(){return(0,y._)(this._store.select(a.getCart).pipe((0,O.p)(Boolean),(0,g.s)(1)))}static \u0275fac=function(e){return new(e||o)(s.KVO(f.il),s.KVO(M.o))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac})}return o})();const G=B.iI.forChild([{path:"login",canActivate:[D],loadChildren:()=>Promise.all([t.e(361),t.e(922)]).then(t.bind(t,99922)).then(o=>o.LoginPageModule)},{path:"request",loadChildren:()=>Promise.all([t.e(361),t.e(402)]).then(t.bind(t,93402)).then(o=>o.OrderRequestModule)},{path:"offer",loadChildren:()=>Promise.all([t.e(361),t.e(76),t.e(247)]).then(t.bind(t,20247)).then(o=>o.ResponseToOfferModule)},{path:"order-extra-payment",loadChildren:()=>Promise.all([t.e(361),t.e(401)]).then(t.bind(t,26401)).then(o=>o.OrderExtraPaymentModule)},{path:"",canActivate:[P,R],pathMatch:"full",children:[]},{path:"",component:L,canActivate:[P],children:[{path:"profile",canActivate:[x.M],loadChildren:()=>Promise.all([t.e(361),t.e(377)]).then(t.bind(t,28377)).then(o=>o.ProfileModule)},{path:"order",loadChildren:()=>Promise.all([t.e(361),t.e(532)]).then(t.bind(t,27532)).then(o=>o.OrderViewModule)},{path:"order-details",loadChildren:()=>Promise.all([t.e(76),t.e(574)]).then(t.bind(t,68574)).then(o=>o.OrderDetailsModule)},{path:"portfolio",loadChildren:()=>Promise.all([t.e(361),t.e(478)]).then(t.bind(t,95478)).then(o=>o.PortfolioModule)},{path:"kategori",loadChildren:()=>Promise.all([t.e(361),t.e(259),t.e(543)]).then(t.bind(t,20543)).then(o=>o.ChooseCakeModule)},{path:"bestill",loadChildren:()=>Promise.all([t.e(361),t.e(87)]).then(t.bind(t,3087)).then(o=>o.BuildProductModule)},{path:"bestall",loadChildren:()=>Promise.all([t.e(361),t.e(87)]).then(t.bind(t,3087)).then(o=>o.BuildProductModule)},{path:"levering",canActivate:[v],loadChildren:()=>Promise.all([t.e(361),t.e(387)]).then(t.bind(t,25387)).then(o=>o.ChooseDeliveryModule)},{path:"leverans",canActivate:[v],loadChildren:()=>Promise.all([t.e(361),t.e(387)]).then(t.bind(t,25387)).then(o=>o.ChooseDeliveryModule)},{path:"retur",canActivate:[v],loadChildren:()=>Promise.all([t.e(361),t.e(80)]).then(t.bind(t,7080)).then(o=>o.ChooseReturnModule)},{path:"betaling",canActivate:[x.M,v,A],loadChildren:()=>Promise.all([t.e(361),t.e(76),t.e(491)]).then(t.bind(t,80491)).then(o=>o.ChoosePaymentModule)},{path:"betalning",canActivate:[x.M,v,A],loadChildren:()=>Promise.all([t.e(361),t.e(76),t.e(491)]).then(t.bind(t,80491)).then(o=>o.ChoosePaymentModule)},{path:"kvittering",loadChildren:()=>Promise.all([t.e(361),t.e(76),t.e(8)]).then(t.bind(t,93008)).then(o=>o.OrderReceiptModule)},{path:"kvitto",loadChildren:()=>Promise.all([t.e(361),t.e(76),t.e(8)]).then(t.bind(t,93008)).then(o=>o.OrderReceiptModule)},{path:"personvern",loadChildren:()=>Promise.all([t.e(361),t.e(954)]).then(t.bind(t,94954)).then(o=>o.PrivacyPolicyModule)},{path:"personuppgiftspolicy",loadChildren:()=>Promise.all([t.e(361),t.e(954)]).then(t.bind(t,94954)).then(o=>o.PrivacyPolicyModule)}]}]);var J=t(76621),T=t(49769),Q=t(64216),$=t(12642);let z=(()=>{class o extends h.TransferableGetApiService{constructor(n,e,r,l){super(e,n,r,l)}getOutletsByBakeryId(n){return(0,y._)(this.getWithCaching("api.bakery","outlets",{id:n})).then(e=>e.map(r=>this._extendOutlet(r)))}getBakeryDeliveryPrice(n,e){return this.api.get("api.bakery","delivery_prices",{bakeryId:n},{params:{postNumber:e}})}getDeliveryInfo(n){return(0,y._)(this.getWithCaching("api.bakery","delivery_info",{id:n}))}_extendOutlet(n){return n.formattedWorkingDays=h.scheduleHelper.getOutletSchedule(n.workingDays),n}static \u0275fac=function(e){return new(e||o)(s.KVO("AppConfig"),s.KVO(h.ApiService),s.KVO(i.Agw),s.KVO(i.pJN))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Y=(()=>{class o extends h.TransferableGetApiService{constructor(n,e,r,l){super(l,n,r,e)}searchLocationByPostNumber(n,e){return(0,y._)(this.api.get("api.city","city_by_post_number",{countryCode:n,postNumber:e})).catch(r=>null)}static \u0275fac=function(e){return new(e||o)(s.KVO("AppConfig"),s.KVO(i.pJN),s.KVO(i.Agw),s.KVO(h.ApiService))};static \u0275prov=s.jDH({token:o,factory:o.\u0275fac})}return o}
1)();var Z=t(72897),b=t(69605);let k=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=i.$C({type:o});static \u0275inj=s.G2t({providers:[P,R,v,D,A,z,Y,T.QX,{provide:p.er,useClass:Q.Xf},b.Ks],imports:[T.MD,G,p.h,J.L,E.UN,$.CakeItEasyWebUiModule,X.xG.forRoot(),Z.D]})}return o})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.