PageSourceSearch

https://www.krups.de/chunk-LUAQAAL6.js

js krups.de collected 2026-09-24 19:10:01 UTC 9,018 bytes, 1 lines download raw bytes

1import{a as U,b as x,d as F,f as $,h as H,q as Y,r as B,s as Z,t as L}from"./chunk-XDSODJAC.js";import"./chunk-5REZYN5Z.js";import"./chunk-XNUBI5NJ.js";import"./chunk-IOHXACAF.js";import"./chunk-H7D5JEIJ.js";import{Fa as l,Nb as k,Ob as O,Pb as N,Q as E,U as C,Z as y,la as v,ma as d,x as j,za as c}from"./chunk-2THTJ2V7.js";import{c as f,g as A,k as u}from"./chunk-XVZXOWV7.js";import{wa as T}from"./chunk-5PJ4363Y.js";import{Aa as g,Ba as S,Ea as a,Fa as p,R as n,bc as w,o as R,v as m,x as M}from"./chunk-VDJNVHIP.js";import"./chunk-NAIKXHWT.js";var q=(()=>{class s{constructor(){this.logger=p(E),this.http=p(u),this.occEndpoints=p(y),this.converter=p(v)}setBillingAddress(e,t,r){return this.http.put(this.getSetBillingAddressEndpoint(e,t),r).pipe(n(i=>R(l(i,this.logger))),c({shouldRetry:d}))}getSetBillingAddressEndpoint(e,t){return this.occEndpoints.buildUrl("setBillingAddress",{urlParams:{userId:e,cartId:t}})}static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),W=(()=>{class s{constructor(e,t,r){this.http=e,this.occEndpoints=t,this.converter=r,this.logger=p(E)}createAddress(e,t,r){return r=this.converter.convert(r,O),this.http.post(this.getCreateDeliveryAddressEndpoint(e,t),r,{headers:new f().set("Content-Type","application/json")}).pipe(n(i=>{throw l(i,this.logger)}),c({shouldRetry:d}),this.converter.pipeable(k))}getCreateDeliveryAddressEndpoint(e,t){return this.occEndpoints.buildUrl("createDeliveryAddress",{urlParams:{userId:e,cartId:t}})}setAddress(e,t,r){return this.http.put(this.getSetDeliveryAddressEndpoint(e,t,r),{}).pipe(n(i=>{throw l(i,this.logger)}),c({shouldRetry:d}))}getSetDeliveryAddressEndpoint(e,t,r){return this.occEndpoints.buildUrl("setDeliveryAddress",{urlParams:{userId:e,cartId:t},queryParams:{addressId:r}})}clearCheckoutDeliveryAddress(e,t){return this.http.delete(this.getRemoveDeliveryAddressEndpoint(e,t)).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}))}getRemoveDeliveryAddressEndpoint(e,t){return this.occEndpoints.buildUrl("removeDeliveryAddress",{urlParams:{userId:e,cartId:t}})}static{this.\u0275fac=function(t){return new(t||s)(a(u),a(y),a(v))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),V=(()=>{class s{constructor(e,t,r){this.http=e,this.occEndpoints=t,this.converter=r,this.logger=p(E)}setMode(e,t,r){return this.http.put(this.getSetDeliveryModeEndpoint(e,t,r),{}).pipe(n(i=>{throw l(i,this.logger)}),c({shouldRetry:d}))}getSetDeliveryModeEndpoint(e,t,r){return this.occEndpoints.buildUrl("setDeliveryMode",{urlParams:{userId:e,cartId:t},queryParams:{deliveryModeId:r}})}getSupportedModes(e,t){return this.http.get(this.getDeliveryModesEndpoint(e,t)).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}),m(r=>r.deliveryModes??[]),this.converter.pipeableMany(Y))}getDeliveryModesEndpoint(e,t){return this.occEndpoints.buildUrl("deliveryModes",{urlParams:{userId:e,cartId:t}})}clearCheckoutDeliveryMode(e,t){return this.http.delete(this.getClearDeliveryModeEndpoint(e,t)).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}))}getClearDeliveryModeEndpoint(e,t){return this.occEndpoints.buildUrl("clearDeliveryMode",{urlParams:{userId:e,cartId:t}})}static{this.\u0275fac=function(t){return new(t||s)(a(u),a(y),a(v))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),G=(()=>{class s{constructor(e,t,r){this.http=e,this.occEndpoints=t,this.converter=r,this.logger=p(E),typeof DOMParser<"u"&&(this.domparser=new DOMParser)}createPaymentDetails(e,t,r){return r=this.converter.convert(r,B),this.getProviderSubInfo(e,t).pipe(m(i=>{let o=this.convertToMap(i.mappingLabels.entry);return{url:i.postUrl,parameters:this.getParamsForPaymentProvider(r,i.parameters.entry,o),mappingLabels:o}}),M(i=>this.createSubWithProvider(i.url,i.parameters).pipe(m(o=>this.extractPaymentDetailsFromHtml(o)),M(o=>(o.defaultPayment=r.defaultPayment??!1,o.savePaymentInfo=!0,this.createDetailsWithParameters(e,t,o).pipe(n(h=>{throw l(h,this.logger)}),c({shouldRetry:d}),this.converter.pipeable(N)))))))}setPaymentDetails(e,t,r){return this.http.put(this.getSetPaymentDetailsEndpoint(e,t,r),{}).pipe(n(i=>{throw l(i,this.logger)}),c({shouldRetry:d}))}getSetPaymentDetailsEndpoint(e,t,r){return this.occEndpoints.buildUrl("setCartPaymentDetails",{urlParam
1s:{userId:e,cartId:t},queryParams:{paymentDetailsId:r}})}deletePaymentDetails(e,t){return this.http.delete(this.occEndpoints.buildUrl("setCartPaymentDetails",{urlParams:{userId:e,cartId:t}})).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}))}getPaymentCardTypes(){return this.http.get(this.getPaymentCardTypesEndpoint()).pipe(n(e=>{throw l(e,this.logger)}),c({shouldRetry:d}),m(e=>e.cardTypes??[]),this.converter.pipeableMany(Z))}getPaymentCardTypesEndpoint(){return this.occEndpoints.buildUrl("cardTypes")}getProviderSubInfo(e,t){return this.http.get(this.getPaymentProviderSubInfoEndpoint(e,t)).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}))}getPaymentProviderSubInfoEndpoint(e,t){return this.occEndpoints.buildUrl("paymentProviderSubInfo",{urlParams:{userId:e,cartId:t}})}createSubWithProvider(e,t){let r=new f({"Content-Type":"application/x-www-form-urlencoded",Accept:"text/html"}),i=new A({encoder:new C});return Object.keys(t).forEach(o=>{i=i.append(o,t[o])}),this.http.post(e,i,{headers:r,responseType:"text"}).pipe(n(o=>{throw l(o,this.logger)}),c({shouldRetry:d}))}createDetailsWithParameters(e,t,r){let i=new A({encoder:new C});Object.keys(r).forEach(h=>{i=i.append(h,r[h])});let o=new f({"Content-Type":"application/x-www-form-urlencoded"});return this.http.post(this.getCreatePaymentDetailsEndpoint(e,t),i,{headers:o}).pipe(n(h=>{throw l(h,this.logger)}),c({shouldRetry:d}))}getCreatePaymentDetailsEndpoint(e,t){return this.occEndpoints.buildUrl("createPaymentDetails",{urlParams:{userId:e,cartId:t}})}getParamsForPaymentProvider(e,t,r){let i=this.convertToMap(t);return i[r.hybris_account_holder_name]=e.accountHolderName,i[r.hybris_card_type]=e.cardType?.code,i[r.hybris_card_number]=e.cardNumber,r.hybris_combined_expiry_date==="true"?i[r.hybris_card_expiry_date]=e.expiryMonth+r.hybris_separator_expiry_date+e.expiryYear:(i[r.hybris_card_expiration_month]=e.expiryMonth,i[r.hybris_card_expiration_year]=e.expiryYear),i[r.hybris_card_cvn]=e.cvn,i[r.hybris_billTo_country]=e.billingAddress?.country?.isocode,i[r.hybris_billTo_firstname]=e.billingAddress?.firstName,i[r.hybris_billTo_lastname]=e.billingAddress?.lastName,i[r.hybris_billTo_street1]=e.billingAddress?.line1+" "+e.billingAddress?.line2,i[r.hybris_billTo_city]=e.billingAddress?.town,e.billingAddress?.region?i[r.hybris_billTo_region]=e.billingAddress.region.isocodeShort:i[r.hybris_billTo_region]="",i[r.hybris_billTo_postalcode]=e.billingAddress?.postalCode,i}extractPaymentDetailsFromHtml(e){let i=this.domparser.parseFromString(e,"text/xml").getElementsByTagName("form")[0].getElementsByTagName("input"),o={};for(let h=0;i[h];h++){let _=i[h],P=_.getAttribute("name"),D=_.getAttribute("value");P&&P!=="{}"&&D&&D!==""&&(o[P]=D)}return o}convertToMap(e){return e.reduce(function(t,r){let i=r.key;return t[i]=r.value,t},{})}static{this.\u0275fac=function(t){return new(t||s)(a(u),a(y),a(v))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),z=(()=>{class s{constructor(e,t,r){this.http=e,this.occEndpoints=t,this.converter=r,this.logger=p(E)}getCheckoutDetails(e,t){return this.http.get(this.getGetCheckoutDetailsEndpoint(e,t)).pipe(n(r=>{throw l(r,this.logger)}),c({shouldRetry:d}),this.converter.pipeable(L))}getGetCheckoutDetailsEndpoint(e,t){return this.occEndpoints.buildUrl("getCheckoutDetails",{urlParams:{userId:e,cartId:t}})}static{this.\u0275fac=function(t){return new(t||s)(a(u),a(y),a(v))}}static{this.\u0275prov=g({token:s,factory:s.\u0275fac})}}return s})(),I="users/${userId}/carts/${cartId}/addresses/delivery",b="users/${userId}/carts/${cartId}/deliverymode",J={backend:{occ:{endpoints:{setDeliveryAddress:I,cardTypes:"cardtypes",createDeliveryAddress:I,removeDeliveryAddress:I,deliveryMode:b,setDeliveryMode:b,clearDeliveryMode:b,deliveryModes:`${b}s`,setCartPaymentDetails:"users/${userId}/carts/${cartId}/paymentdetails",paymentProviderSubInfo:"users/${userId}/carts/${cartId}/payment/sop/request?responseUrl=sampleUrl",createPaymentDetails:"users/${userId}/carts/${cartId}/payment/sop/response",getCheckoutDetails:"users/${userId}/carts/${cartId}?fields=deliveryAddress(FULL),deliveryMode(FULL),paymentInfo(FULL)",setBillingAddress:"users/${userId}/carts/${cartId}/addresses/billing"}}}},le=(()=>{class s{static{this.\u0275fac=function(t){return new(t||s)}}static{this.\u0275mod=w({type:s})}static{this.\u0275inj=S({providers:[j(J),{provide:H,useClass:z},{provide:x,useClass:W},{provide:F,useClass:V},{provide:$,useClass:G},{provide:U,useClass:q}],imports:[T]})}}return s})();export{le as CheckoutOccModule,z as OccCheckoutAdapter,q as OccCheckoutBillingAddressAdapter,W as OccCheckoutDeliveryAddressAdapter,V as OccCheckoutDeliveryModesAdapter,G as OccCheckoutPaymentAdapter};

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.