1import{b as oe}from"./chunk-G7G5VL7A.js";import"./chunk-KTIQYE5P.js";import"./chunk-642M3O7T.js";import"./chunk-SZF6XL4E.js";import"./chunk-3BZY2OYO.js";import"./chunk-PZEMR2L5.js";import"./chunk-J6NCCWW7.js";import"./chunk-6AG35UPF.js";import"./chunk-EKMRER53.js";import"./chunk-G2DQ5ZAB.js";import"./chunk-U7AGYLW7.js";import"./chunk-NYP2MGTF.js";import"./chunk-ZQACGDLM.js";import"./chunk-BETAZWZD.js";import"./chunk-QVZ7R5K5.js";import"./chunk-FOQDFJMV.js";import"./chunk-OGYZTRLZ.js";import"./chunk-N245CZLW.js";import"./chunk-PV6RHSNB.js";import"./chunk-XBWTI2WF.js";import"./chunk-EWUUHZJN.js";import"./chunk-742NQZET.js";import"./chunk-7DJ7JONO.js";import"./chunk-ZWPCBIH5.js";import"./chunk-PF2HCEW7.js";import"./chunk-YYTQVJTM.js";import"./chunk-W6IZYAIR.js";import"./chunk-QMIFQL7I.js";import"./chunk-SOWLNI5Q.js";import"./chunk-ZWOR7NS3.js";import"./chunk-SF7MU6Q7.js";import"./chunk-BA325W5R.js";import"./chunk-46N5P7DO.js";import"./chunk-I3D4BXWI.js";import"./chunk-7HTWA7MG.js";import"./chunk-RH6ZHAWZ.js";import"./chunk-MJ52DRA5.js";import"./chunk-HG6SI3BV.js";import"./chunk-PZ3HQKOC.js";import"./chunk-UFZKBRL6.js";import"./chunk-LCJSQW3Y.js";import"./chunk-QQHAWUBV.js";import"./chunk-2O6EPLWW.js";import"./chunk-KD7LKDEM.js";import"./chunk-FLIEGRMA.js";import"./chunk-PBVBMEBN.js";import"./chunk-HXBCLNQH.js";import"./chunk-3FTWR225.js";import"./chunk-PCF6VHG4.js";import"./chunk-SI5GJQMC.js";import"./chunk-P4VYLKV3.js";import"./chunk-UVL6J63R.js";import"./chunk-LKXYBJQT.js";import"./chunk-OW5JJRFG.js";import"./chunk-KBT2WZHU.js";import"./chunk-SPAHUCD7.js";import"./chunk-DWDHBCXU.js";import"./chunk-TMXRDM6E.js";import"./chunk-ETG4BLYY.js";import"./chunk-YTMVODW3.js";import"./chunk-UFQPHIRH.js";import"./chunk-WKLBE66B.js";import"./chunk-IWNMWJ2W.js";import"./chunk-3O5P3I7K.js";import"./chunk-RONWZDWR.js";import{a as Y,b as z,c as Z,d as H,e as $,f as B,g as K,h as V,i as J,j as W,k as X,l as _,m as ee,n as te,q as ie,r as re,s as ce,t as D}from"./chunk-KFRE25U2.js";import"./chunk-N3AFMFPM.js";import"./chunk-CVJSDS7M.js";import"./chunk-H7CCOU6M.js";import"./chunk-F4HIK37E.js";import"./chunk-UX35NMJM.js";import"./chunk-LZL2LC4I.js";import"./chunk-WIJLTONJ.js";import"./chunk-TICZJ3OB.js";import"./chunk-ESKAF6IH.js";import"./chunk-NDDQ4HV5.js";import"./chunk-L6EN2BW6.js";import"./chunk-IZDLYJRE.js";import"./chunk-LAXJI4NM.js";import"./chunk-BR5LA4PI.js";import"./chunk-OULBKL7V.js";import"./chunk-EDLENBQR.js";import"./chunk-CE5WL3A7.js";import"./chunk-ZMETWN4U.js";import"./chunk-DR5W6CQF.js";import"./chunk-RI5I43BI.js";import"./chunk-A7YH3TJI.js";import"./chunk-MCQQEV6H.js";import"./chunk-ZOCN6U4I.js";import"./chunk-2W7PDVXL.js";import"./chunk-SXGFXLNS.js";import"./chunk-Y7LV6N2E.js";import"./chunk-6WMWEIOS.js";import"./chunk-ZO4CFGV3.js";import"./chunk-JMFJFBUD.js";import"./chunk-MNDIYD7B.js";import"./chunk-3PGHLUKK.js";import"./chunk-X6WXLEJ5.js";import"./chunk-UMM552OB.js";import"./chunk-XUZPMCRD.js";import"./chunk-JW3HVCPM.js";import"./chunk-TMASSOMY.js";import"./chunk-Y52XVX6B.js";import"./chunk-HHEJWSKA.js";import"./chunk-D3VLNOII.js";import"./chunk-5N6ZNYUY.js";import"./chunk-6JR7EKH4.js";import"./chunk-MLVA2BKI.js";import"./chunk-SUMO55QQ.js";import"./chunk-P5BIUT3A.js";import"./chunk-2JPK6GHX.js";import"./chunk-QCZIRXSN.js";import"./chunk-5Q42DF5J.js";import"./chunk-IPAVTCJR.js";import"./chunk-CZQPPCI2.js";import"./chunk-VLF23WZJ.js";import"./chunk-YR6ZAJ6V.js";import"./chunk-EDINK3NC.js";import"./chunk-BOJ55PH3.js";import"./chunk-P6SMF36Q.js";import"./chunk-AKJJZDJ4.js";import"./chunk-G7MMMJCH.js";import"./chunk-4MHYHNBE.js";import"./chunk-W74VQ2ZW.js";import"./chunk-MIXPOUNZ.js";import"./chunk-7IEM6YIL.js";import"./chunk-QEX7IBDO.js";import"./chunk-B4HBB6J6.js";import{B as g}from"./chunk-CDH54WDO.js";import"./chunk-ROAQJP46.js";import{Ae as R,Da as k,H as U,Mg as N,Ng as q,Pg as G,R as j,dh as p,eh as T,fh as w,ka as h,na as y,oe as L,sa as v,ta as f,ua as F,v as u,va as c,w as E,we as A,yf as Q}from"./chunk-ADQO3XXX.js";import{a as M,b as P}from"./chunk-3JMZ37NM.js";var b=class{},ve=(()=>{let e=class e{constructor(t){this.adapter=t}createAddress(t,i,o){return this.adapter.createAddress(t,i,o)}setAddress(t,i,o){return this.adapter.setAddress(t,i,o)}clearCheckoutDeliveryAddress(t,i){return this.adapter.clearCheckoutDeliveryAddress(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(b))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),x=class{},ye=(()=>{let e=class e{constructor(t){this.adapter=t}setMode(t,i,o){return this.adapter.setMode(t,i,o)}
1getSupportedModes(t,i){return this.adapter.getSupportedModes(t,i)}clearCheckoutDeliveryMode(t,i){return this.adapter.clearCheckoutDeliveryMode(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(x))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),I=class{},pe=(()=>{let e=class e{constructor(t){this.adapter=t}createPaymentDetails(t,i,o){return this.adapter.createPaymentDetails(t,i,o)}setPaymentDetails(t,i,o){return this.adapter.setPaymentDetails(t,i,o)}getPaymentCardTypes(){return this.adapter.getPaymentCardTypes()}};e.\u0275fac=function(i){return new(i||e)(c(I))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),O=class{},le=(()=>{let e=class e{constructor(t){this.adapter=t}getCheckoutDetails(t,i){return this.adapter.getCheckoutDetails(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(O))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),se=(()=>{let e=class e{constructor(t,i,o,l,m,C){this.activeCartFacade=t,this.userIdService=i,this.eventService=o,this.commandService=l,this.checkoutDeliveryAddressConnector=m,this.checkoutQueryFacade=C,this.createDeliveryAddressCommand=this.commandService.create(d=>this.checkoutPreconditions().pipe(h(([a,s])=>this.checkoutDeliveryAddressConnector.createAddress(a,s,d).pipe(u(n=>(n.titleCode=d.titleCode,d.region?.isocodeShort&&(n.region=P(M({},n.region),{isocodeShort:d.region.isocodeShort})),n)),y(n=>this.eventService.dispatch({userId:a,cartId:s,address:n},Z))))),{strategy:p.CancelPrevious}),this.setDeliveryAddressCommand=this.commandService.create(d=>this.checkoutPreconditions().pipe(h(([a,s])=>{let n=d.id;if(!n)throw new Error("Checkout conditions not met");return this.checkoutDeliveryAddressConnector.setAddress(a,s,n).pipe(y(()=>{this.eventService.dispatch({userId:a,cartId:s,address:d},H)}))})),{strategy:p.CancelPrevious}),this.clearDeliveryAddressCommand=this.commandService.create(()=>this.checkoutPreconditions().pipe(h(([d,a])=>this.checkoutDeliveryAddressConnector.clearCheckoutDeliveryAddress(d,a).pipe(y(()=>{this.eventService.dispatch({userId:d,cartId:a},$)})))),{strategy:p.CancelPrevious})}checkoutPreconditions(){return E([this.userIdService.takeUserId(),this.activeCartFacade.takeActiveCartId(),this.activeCartFacade.isGuestCart()]).pipe(j(1),u(([t,i,o])=>{if(!t||!i||t===A&&!o)throw new Error("Checkout conditions not met");return[t,i]}))}getDeliveryAddressState(){return this.checkoutQueryFacade.getCheckoutDetailsState().pipe(u(t=>P(M({},t),{data:t.data?.deliveryAddress})))}createAndSetAddress(t){return this.createDeliveryAddressCommand.execute(t)}setDeliveryAddress(t){return this.setDeliveryAddressCommand.execute(t)}clearCheckoutDeliveryAddress(){return this.clearDeliveryAddressCommand.execute()}};e.\u0275fac=function(i){return new(i||e)(c(g),c(R),c(Q),c(T),c(ve),c(D))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),ae=(()=>{let e=class e{getCheckoutSupportedDeliveryModesQueryReloadEvents(){return[J]}getCheckoutSupportedDeliveryModesQueryResetEvents(){return[W]}constructor(t,i,o,l,m,C,d){this.activeCartFacade=t,this.userIdService=i,this.eventService=o,this.queryService=l,this.commandService=m,this.checkoutDeliveryModesConnector=C,this.checkoutQueryFacade=d,this.supportedDeliveryModesQuery=this.queryService.create(()=>this.checkoutPreconditions().pipe(h(([a,s])=>this.checkoutDeliveryModesConnector.getSupportedModes(a,s))),{reloadOn:this.getCheckoutSupportedDeliveryModesQueryReloadEvents(),resetOn:this.getCheckoutSupportedDeliveryModesQueryResetEvents()}),this.setDeliveryModeCommand=this.commandService.create(a=>this.checkoutPreconditions().pipe(h(([s,n])=>this.checkoutDeliveryModesConnector.setMode(s,n,a).pipe(y(()=>{this.eventService.dispatch({userId:s,cartId:n,cartCode:n,deliveryModeCode:a},B)})))),{strategy:p.CancelPrevious}),this.clearDeliveryModeCommand=this.commandService.create(()=>this.checkoutPreconditions().pipe(h(([a,s])=>this.checkoutDeliveryModesConnector.clearCheckoutDeliveryMode(a,s).pipe(y({next:()=>{this.eventService.dispatch({userId:a,cartId:s,cartCode:s},K)},error:()=>
1{this.eventService.dispatch({userId:a,cartId:s,cartCode:s},V)}})))),{strategy:p.CancelPrevious})}checkoutPreconditions(){return E([this.userIdService.takeUserId(),this.activeCartFacade.takeActiveCartId(),this.activeCartFacade.isGuestCart()]).pipe(j(1),u(([t,i,o])=>{if(!t||!i||t===A&&!o)throw new Error("Checkout conditions not met");return[t,i]}))}getSupportedDeliveryModesState(){return this.supportedDeliveryModesQuery.getState()}getSupportedDeliveryModes(){return this.getSupportedDeliveryModesState().pipe(U(t=>!t.loading),u(t=>t.data??[]))}getSelectedDeliveryModeState(){return this.checkoutQueryFacade.getCheckoutDetailsState().pipe(u(t=>P(M({},t),{data:t.data?.deliveryMode})))}setDeliveryMode(t){return this.setDeliveryModeCommand.execute(t)}clearCheckoutDeliveryMode(){return this.clearDeliveryModeCommand.execute()}};e.\u0275fac=function(i){return new(i||e)(c(g),c(R),c(Q),c(w),c(T),c(ye),c(D))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),ne=(()=>{let e=class e{getCheckoutPaymentCardTypesQueryReloadEvents(){return[ee]}getCheckoutPaymentCardTypesQueryResetEvents(){return[te]}constructor(t,i,o,l,m,C,d){this.activeCartFacade=t,this.userIdService=i,this.queryService=o,this.commandService=l,this.eventService=m,this.checkoutPaymentConnector=C,this.checkoutQueryFacade=d,this.paymentCardTypesQuery=this.queryService.create(()=>this.checkoutPaymentConnector.getPaymentCardTypes(),{reloadOn:this.getCheckoutPaymentCardTypesQueryReloadEvents(),resetOn:this.getCheckoutPaymentCardTypesQueryResetEvents()}),this.createPaymentMethodCommand=this.commandService.create(a=>this.checkoutPreconditions().pipe(h(([s,n])=>this.checkoutPaymentConnector.createPaymentDetails(s,n,a).pipe(y(S=>this.eventService.dispatch({userId:s,cartId:n,paymentDetails:S},X))))),{strategy:p.CancelPrevious}),this.setPaymentMethodCommand=this.commandService.create(a=>this.checkoutPreconditions().pipe(h(([s,n])=>{let S=a?.id;if(!S)throw new Error("Checkout conditions not met");return this.checkoutPaymentConnector.setPaymentDetails(s,n,S).pipe(y(()=>this.eventService.dispatch({userId:s,cartId:n,paymentDetailsId:S},_)))})),{strategy:p.CancelPrevious})}checkoutPreconditions(){return E([this.userIdService.takeUserId(),this.activeCartFacade.takeActiveCartId(),this.activeCartFacade.isGuestCart()]).pipe(j(1),u(([t,i,o])=>{if(!t||!i||t===A&&!o)throw new Error("Checkout conditions not met");return[t,i]}))}getPaymentCardTypesState(){return this.paymentCardTypesQuery.getState()}getPaymentCardTypes(){return this.getPaymentCardTypesState().pipe(u(t=>t.data??[]))}getPaymentDetailsState(){return this.checkoutQueryFacade.getCheckoutDetailsState().pipe(u(t=>P(M({},t),{data:t.data?.paymentInfo})))}createPaymentDetails(t){return this.createPaymentMethodCommand.execute(t)}setPaymentDetails(t){return this.setPaymentMethodCommand.execute(t)}};e.\u0275fac=function(i){return new(i||e)(c(g),c(R),c(w),c(T),c(Q),c(pe),c(D))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),de=(()=>{let e=class e{getCheckoutQueryReloadEvents(){return[Y]}getCheckoutQueryResetEvents(){return[z]}constructor(t,i,o,l){this.activeCartFacade=t,this.userIdService=i,this.queryService=o,this.checkoutConnector=l,this.checkoutQuery$=this.queryService.create(()=>this.checkoutPreconditions().pipe(h(([m,C])=>this.checkoutConnector.getCheckoutDetails(m,C))),{reloadOn:this.getCheckoutQueryReloadEvents(),resetOn:this.getCheckoutQueryResetEvents()})}checkoutPreconditions(){return E([this.userIdService.takeUserId(),this.activeCartFacade.takeActiveCartId(),this.activeCartFacade.isGuestCart()]).pipe(j(1),u(([t,i,o])=>{if(!t||!i||t===A&&!o)throw new Error("Checkout conditions not met");return[t,i]}))}getCheckoutDetailsState(){return this.checkoutQuery$.getState()}};e.\u0275fac=function(i){return new(i||e)(c(g),c(R),c(w),c(le))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let r=e;return r})(),fe=[se,{provide:ie,useExisting:se},ae,{provide:re,useExisting:ae},ne,{provide:ce,useExisting:ne},de,{provide:D,useExisting:de}],ue=(()=>{let e=class e extends N{constructor(t,i,o){super(),this.translationService=t,this.activeCartFacade=i,this.basePageMetaResolver=o,this.pageType=L.CONTENT_PAGE,this.pageTemplate="MultiStepCheckoutSummaryPageTemplate"}resolveTitle(){return this.basePageMetaResolver.resolveTitle()}resolveHeading(){return this.translationService.translate("pageMetaResolver.checkout.title")}resolveDescription(){return this.basePageMetaResolver.resolveDescription()}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(g),c(G))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),me=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=k({type:e}),e.\u0275inj=f({providers:[...fe,ve,ye,pe,le,ue,{provide:N,useExisting:ue,multi:!0}]});let r=e;return r})(),Re=new F("DeliveryModeNormalizer"),Qe=new F("PaymentDetailsSerializer"),Te=new F("PaymentCardTypeNormalizer"),we=new F("CheckoutNormalizer");var Ce=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=k({type:e}),e.\u0275inj=f({imports:[me]});let r=e;return r})();var Le=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=k({type:e}),e.\u0275inj=f({imports:[oe,Ce]});let r=e;return r})();export{Le as SipCheckoutModule};
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.