1import{a as b}from"./chunk-XOK3ZZUR.js";import{a as nt}from"./chunk-RPXXRC2E.js";import{c as x}from"./chunk-ZQWKZS6P.js";import{W as G,_ as Q,e as K}from"./chunk-HXWHD2Q6.js";import{g as H,o as W,q as J,u as X,v as Y}from"./chunk-E3BC3FAP.js";import{e as L,h as R,i as z,l as q,o as g,p as Z,r as $,t as tt,u as et,w as it,x as P}from"./chunk-XKDQEAKP.js";import{$ as M,Db as r,Eb as l,Fb as f,Ha as U,Kc as N,Lb as w,Mb as a,P as F,Sc as A,Wa as o,Xb as c,Yb as S,Za as _,Zb as u,cb as k,ib as d,ic as j,jc as E,kc as v,la as D,lc as V,qa as h,rb as C,sb as p,v as T,w as O,yb as m}from"./chunk-UDRK4HNX.js";var Zt=(()=>{class t{constructor(e,s,n,y,I,rt,st,ct){this.api=e,this.userService=s,this.keycloakService=n,this.config=y,this.router=I,this.affiliateService=rt,this.cartService=st,this.storage=ct}resolve(e){if(this.userService.getUserProfile())return e.queryParams.merged?T(this.cartService.getCart()):(this.cartService.update(),this.api.getCart().pipe(M(1),F(s=>O(s))));if(e.queryParams.forceLogin){let s=this.config.getDomain()+"/warenkorb";this.affiliateService.getAffiliate()&&(s+="?aid="+this.affiliateService.getAffiliate()),this.keycloakService.login({redirectUri:s})}else{if(JSON.parse(this.storage.getLocalItem("cart")))return this.cartService.loadCartFromStorage();{let n={cartId:0,positions:new Array,sum:"0,00",sumValue:0,cartVoucher:void 0,rejectedVoucher:void 0,unusedVoucher:void 0,verificationStep:void 0,paymentStep:void 0};return T(n)}}}static{this.\u0275fac=function(s){return new(s||t)(h(et),h(b),h($),h(Z),h(R),h(it),h(x),h(tt))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ut=(t,i,e)=>({editable:t,done:i,next:e}),B=(t,i)=>({editable:t,next:i}),dt=()=>["/warenkorb"],ft=t=>({editable:t});function Ct(t,i){t&1&&c(0," 1. ")}function ht(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faCartShopping)}}function _t(t,i){if(t&1&&(r(0,"a",1),d(1,Ct,1,0)(2,ht,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a();p("routerLink",j(4,dt)),C("aria-current",e.isCart()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),S(e.messages.cart)}}function gt(t,i){t&1&&c(0," 1. ")}function xt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faCartShopping)}}function St(t,i){if(t&1&&(r(0,"div",2),d(1,gt,1,0)(2,xt,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a();p("ngClass",E(4,ft,e.isCart())),C("aria-current",e.isCart()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),u("",e.messages.cart," ")}}function vt(t,i){if(t&1&&c(0),t&2){let e=a(2);u(" ",e.getCounter("customer"),". ")}}function yt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faAddressCard)}}function kt(t,i){if(t&1&&(r(0,"a",1),d(1,vt,1,1)(2,yt,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a();p("routerLink",e.gotoCustomerData()),C("aria-current",e.isCustomer()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),u("",e.messages.customerData," ")}}function Pt(t,i){if(t&1&&c(0),t&2){let e=a(2);u(" ",e.getCounter("customer"),". ")}}function bt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faAddressCard)}}function Bt(t,i){if(t&1&&(r(0,"div",2),d(1,Pt,1,1)(2,bt,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a();p("ngClass",v(4,B,e.isCustomer(),e.isCart())),C("aria-current",e.isCustomer()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),u("",e.messages.customerData," ")}}function It(t,i){if(t&1&&c(0),t&2){let e=a(2);u(" ",e.getCounter("file-upload"),". ")}}function Tt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faUserCheck)}}function Ot(t,i){if(t&1&&(r(0,"a",1),d(1,It,1,1)(2,Tt,1,1,"fa-icon",3),r(3,"span",4),c(4,"Datei-Upload "),l()()),t&2){let e=a();p("routerLink",e.gotoFileUpload()),C("aria-current",e.isFileUpload()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2)}}function Ft(t,i){if(t&1&&c(0),t&2){let e=a(3);u(" ",e.getCounter("file-upload"),". ")}}function Mt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(3);p("icon",e.faUserCheck)}}function Dt(t,i){if(t&1&&(r(0,"div",2),d(1,Ft,1,1)(2,Mt,1,1,"fa-icon",3),r(3,"span",4),c(4,"Datei-Upload "),l()()),t&2){let e=a(2);p("ngClass",v(3,B,e.isFileUpload(),e.isCustomerWithFileUpload())),C("aria-current",e.isFileUpload()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2)}}function Ut(t,i){if(t&1&&d(0,Dt,5,6,"div",2),t&2){let e=a();m(e.hasVerificationStep()?0:-1)}}function wt(t,i){if(t&1&&c(0),t&2){let e=a(2);u(" ",e.getCounter("payment"),". ")}}function jt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(2);p("icon",e.faCreditCard)}}function Et(t,i){if(t&1&&(r(0,"a",1),d(1,wt,1,1)(2,jt,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a();
1p("routerLink",e.gotoPayment()),C("aria-current",e.isPayment()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),u("",e.messages.paymentSelectionHead," ")}}function Vt(t,i){if(t&1&&c(0),t&2){let e=a(3);u(" ",e.getCounter("payment"),". ")}}function Nt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a(3);p("icon",e.faCreditCard)}}function At(t,i){if(t&1&&(r(0,"div",2),d(1,Vt,1,1)(2,Nt,1,1,"fa-icon",3),r(3,"span",4),c(4),l()()),t&2){let e=a(2);p("ngClass",v(4,B,e.isPayment(),e.isCustomer())),C("aria-current",e.isPayment()?"step":null),o(),m(e.themeService.getConfiguration().stepBar.showNumber?1:2),o(3),u("",e.messages.paymentSelectionHead," ")}}function Lt(t,i){if(t&1&&d(0,At,5,7,"div",2),t&2){let e=a();m(e.hasPaymentStep()?0:-1)}}function Rt(t,i){if(t&1&&c(0),t&2){let e=a();u(" ",e.getCounter("summary"),". ")}}function zt(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a();p("icon",e.faListCheck)}}function qt(t,i){if(t&1&&c(0),t&2){let e=a();u(" ",e.getCounter("confirmation"),". ")}}function Ht(t,i){if(t&1&&f(0,"fa-icon",3),t&2){let e=a();p("icon",e.faCircleCheck)}}var pe=(()=>{class t{constructor(e,s,n,y,I){this.route=e,this.cartService=s,this.userService=n,this.messageService=y,this.themeService=I,this.numberOffset=0,this.faCartShopping=Q,this.faAddressCard=H,this.faCreditCard=J,this.faUserCheck=K,this.faListCheck=G,this.faCircleCheck=W}ngOnInit(){this.messages=this.messageService.getMessages(),this.path=this.route.snapshot.routeConfig.path,this.themeService.getConfiguration().stepBar.cart&&(this.numberOffset=1)}hasVerificationStep(){return this.cartService.hasVerificationStep()}hasPaymentStep(){return this.cartService.hasPaymentStep()}isCart(){return this.path==="warenkorb"}isCartDone(){return(this.isCustomer()||this.isCustomerDone())&&!this.isConfirmation()}isCustomer(){return this.path==="customer"||this.path==="guest"}isCustomerWithFileUpload(){return(this.path==="customer"||this.path==="guest")&&this.hasVerificationStep()}isFileUpload(){return this.path==="file-upload"&&this.hasVerificationStep()}isPayment(){return this.path==="payment-selection"&&this.hasPaymentStep()}isSummary(){return this.path==="summary"||this.path==="guest-summary"}isConfirmation(){return this.path==="order-complete"||this.path==="guest-order-complete"}isSummaryDone(){return this.isConfirmation()}isFileUploadDone(){return this.isSummary()&&this.hasVerificationStep()&&!this.isConfirmation()}isCustomerDone(){return(this.isSummary()||this.isSummaryDone()||this.isFileUpload()||this.isFileUploadDone()||this.isPayment()||this.isPaymentDone())&&!this.isConfirmation()}isPaymentDone(){return this.hasPaymentStep()&&(this.isSummary()||this.isSummaryDone())&&!this.isConfirmation()}gotoCustomerData(){return this.userService.getUserProfile()?g.orderCustomer:g.guest}gotoFileUpload(){return this.userService.getUserProfile()?g.orderFileUpload:g.guestOrderFileUpload}gotoPayment(){return this.userService.getUserProfile()?g.paymentSelection:g.guestPaymentSelection}getCounter(e){switch(e){case"customer":return this.numberOffset+1;case"file-upload":return this.numberOffset+2;case"payment":return this.numberOffset+2+(this.hasVerificationStep()?1:0);case"summary":return this.numberOffset+2+(this.hasVerificationStep()?1:0)+(this.hasPaymentStep()?1:0);case"confirmation":return this.numberOffset+3+(this.hasPaymentStep()?1:0)+(this.hasVerificationStep()?1:0)}}static{this.\u0275fac=function(s){return new(s||t)(_(L),_(x),_(b),_(P),_(nt))}}static{this.\u0275cmp=k({type:t,selectors:[["app-step-bar"]],decls:19,vars:23,consts:[["aria-label","Bestellprozess",1,"md-stepper-horizontal"],[1,"md-step","btn","title","done",3,"routerLink"],[1,"md-step",3,"ngClass"],["aria-hidden","true",1,"me-1",3,"icon"],[1,"d-none","d-md-inline"]],template:function(s,n){s&1&&(r(0,"nav",0),d(1,_t,5,5,"a",1)(2,St,5,6,"div",2)(3,kt,5,4,"a",1)(4,Bt,5,7,"div",2)(5,Ot,5,3,"a",1)(6,Ut,1,1)(7,Et,5,4,"a",1)(8,Lt,1,1),r(9,"div",2),d(10,Rt,1,1)(11,zt,1,1,"fa-icon",3),r(12,"span",4),c(13),l()(),r(14,"div",2),d(15,qt,1,1)(16,Ht,1,1,"fa-icon",3),r(17,"span",4),c(18),l()()()),s&2&&(o(),m(n.isCartDone()?1:-1),o(),m(n.isCartDone()?-1:2),o(),m(n.isCustomerDone()?3:-1),o(),m(n.isCustomerDone()?-1:4),o(),m(n.isFileUploadDone()?5:-1),o(),m(n.isFileUploadDone()?-1:6),o(),m(n.isPaymentDone()?7:-1),o(),m(n.isPaymentDone()?-1:8),o(),p("ngClass",V(16,ut,n.isSummary(),n.isSummaryDone(),n.isCustomer()&&!n.hasVerificationStep()&&!n.hasPaymentStep()||n.isPayment()||n.isFileUpload()&&!n.hasPaymentStep())),C("aria-current",n.isSummary()?"step":null),o(),m(n.themeService.getConfiguration().stepBar.showNumber?10:11),o(3),S(n.messages.orderCheckData),o(),p("ngClass",v(20,B,n.isConfirmation(),n.isSummary())),C("aria-current",n.isConfirmation()?"step":null),o(),m(n.themeService.getConfiguration().stepBar.showNumber?15:16),o(3),u("",n.messages.confirmation," "))},dependencies:[A,N,q,z,Y,X],styles:[".md-stepper-horizontal[_ngcontent-%COMP%] .md-step.editable[_ngcontent-%COMP%]{background-color:var(--bs-secondary);color:#fff}.title[_ngcontent-%COMP%]{color:var(--bs-font);font-weight:600;padding:0;vertical-align:inherit}"]})}}return t})();
1var Ce=(()=>{class t{constructor(e,s){this.cartService=e,this.messageService=s,this.valueChange=new U}ngOnInit(){this.messages=this.messageService.getMessages()}removeFromPackage(){this.cartService.removeFromPackage(this.position).then(()=>this.valueChange.emit(!1))}static{this.\u0275fac=function(s){return new(s||t)(_(x),_(P))}}static{this.\u0275cmp=k({type:t,selectors:[["app-package-info-tile"]],inputs:{position:"position"},outputs:{valueChange:"valueChange"},decls:5,vars:1,consts:[[1,"package-info"],[1,"me-2"],["type","checkbox","checked","","aria-label","Im Paket enthalten",3,"click"],[1,"mark"]],template:function(s,n){s&1&&(r(0,"div",0)(1,"span",1),c(2),l(),r(3,"input",2),w("click",function(){return n.removeFromPackage()}),l(),f(4,"span",3),l()),s&2&&(o(2),S(n.messages.packagePosition))},styles:['.package-info[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{opacity:0;position:absolute;height:25px;width:25px;z-index:2;cursor:pointer}.package-info[_ngcontent-%COMP%] .mark[_ngcontent-%COMP%]{position:absolute;height:25px;width:25px;cursor:pointer}.package-info[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .mark[_ngcontent-%COMP%]{background-color:gray}.package-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .mark[_ngcontent-%COMP%]{background-color:#00f}.package-info[_ngcontent-%COMP%] .mark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.package-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .mark[_ngcontent-%COMP%]:after{display:block}.package-info[_ngcontent-%COMP%] .mark[_ngcontent-%COMP%]:after{left:10px;top:6px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.package-info[_ngcontent-%COMP%]{padding:.5rem;padding-right:30px;background:#d3d3d3;color:#000;border-radius:.375rem;position:relative}']})}}return t})();export{Zt as a,pe as b,Ce as c};
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.