PageSourceSearch

https://www.lapp.com/chunk-UVWYSUCC.js

js lapp.com collected 2026-09-26 00:41:43 UTC 31,333 bytes, 1 lines download raw bytes

1import{k as V,m as $}from"./chunk-KWMUWNJE.js";import{a as le}from"./chunk-XPKON5TD.js";import{a as j,b as A}from"./chunk-BULTE4WP.js";import{N as ht,O as Ot,P as kt,Q as St,S as It}from"./chunk-IRK2WTFP.js";import"./chunk-GZGKDBFW.js";import{a as bt}from"./chunk-NHU36NJV.js";import{a as vt}from"./chunk-23DRD4QL.js";import{a as xt,b as Pt}from"./chunk-SUBT3WC5.js";import{c as Mt}from"./chunk-ZRASNZSW.js";import"./chunk-34GWIWQC.js";import"./chunk-MTAQD6NJ.js";import{a as se}from"./chunk-PXX3ZBNN.js";import{e as st,h as lt,i as dt,j as mt,k as ut,l as gt,p as _t}from"./chunk-BEMGGPOD.js";import"./chunk-5OW7AIN6.js";import"./chunk-6SOYWEFH.js";import"./chunk-43PNYKN7.js";import"./chunk-E55KD4MH.js";import"./chunk-RSZBV64U.js";import"./chunk-BW3LVV52.js";import"./chunk-TGUWAUVM.js";import"./chunk-5C4TJJ5R.js";import"./chunk-3AJ2BILB.js";import"./chunk-25HF54HG.js";import"./chunk-2TXBNGKL.js";import{a as yt}from"./chunk-UUEWUQGP.js";import"./chunk-57QXNG5B.js";import"./chunk-WPOJNNZT.js";import"./chunk-6BPCMFXJ.js";import{c as ft}from"./chunk-JTXJ6KTQ.js";import{b as ot,c as ct,d as Me,e as pt,f as G}from"./chunk-US763PND.js";import"./chunk-WVTITDTK.js";import{a as Ze,b as Je,h as Xe,q as et,r as tt,s as it,w as nt}from"./chunk-5XYZUNFP.js";import{a as at}from"./chunk-BIZE3S6I.js";import"./chunk-RO52GCHQ.js";import"./chunk-O3F55M5D.js";import"./chunk-7L65X44F.js";import"./chunk-WRLLRT7T.js";import{b as rt}from"./chunk-R45NNEXL.js";import"./chunk-URDP65RZ.js";import"./chunk-XB3EHWOK.js";import"./chunk-MMG3NRJA.js";import"./chunk-PIBBGEN7.js";import{a as Ct}from"./chunk-K4Y7FNK6.js";import"./chunk-KPSSL46X.js";import"./chunk-QBLCV6RV.js";import"./chunk-PL3A4O7R.js";import"./chunk-CRTT2IJS.js";import"./chunk-LCA2M4EI.js";import"./chunk-4E2ZJJ66.js";import"./chunk-MJSHSRJI.js";import{a as pe}from"./chunk-ECU2SZUS.js";import"./chunk-MO3FJSUD.js";import{B as Ye,G as ze,L as He,U as We}from"./chunk-GEB2B2G7.js";import{Ib as Ke}from"./chunk-3XNWBP7W.js";import{$a as a,Ae as we,Ag as Ae,Cf as Be,Ec as xe,Eg as $e,Fc as ae,Fd as M,G as be,He as De,Jb as p,Jg as ce,Kb as s,Kg as b,Lb as l,Ma as ee,Mb as _,Nc as o,Oc as c,Ph as Ue,Qb as L,Qh as Ge,Rb as T,Rc as F,Sb as ke,Ud as Ee,Wb as I,Yb as x,Yh as R,Zf as Re,Zh as N,_b as d,a as he,aa as Oe,cc as ie,dc as ne,ec as re,ha as Z,ic as D,ig as Ne,jb as v,je as Le,kg as Ve,lg as je,mb as w,nb as y,nc as m,o as H,oc as E,of as Fe,pc as f,pf as Qe,qa as J,qd as oe,ra as C,rb as te,rc as Se,rd as Q,sb as u,ta as X,u as k,ua as S,v as W,ve as Te,wd as Ie,xd as B,ya as P,ye as qe,za as h,zc as q}from"./chunk-53A2PL7G.js";import"./chunk-JGSK7KMF.js";var Bt=["quickorderInput"];function Rt(t,i){if(t&1){let e=I();s(0,"ul",9)(1,"li",10)(2,"input",11,0),o(4,"cxTranslate"),x("keydown",function(r){P(e);let g=d();return h(g.submitQuickorder(r))}),l()()()}t&2&&(a(2),p("placeholder",q(c(4,2,"quickorder.small.placeholder"))))}function Nt(t,i){if(t&1&&(_(0,"i-saved-cart-button",12),o(1,"async")),t&2){let e=d();p("cartEntries",c(1,1,e.cartEntries$))}}var de=class t{constructor(i,e){this.quickorderFacade=i;this.globalMessageService=e}quickorderFacade;globalMessageService;userIdService=S(Re);basketFacade=S(nt);lappUserPermissionService=S(se);quickorderInput;isLoggedIn$=this.userIdService.getUserId().pipe(k(i=>!(i&&i==="anonymous")));cartEntries$=this.basketFacade.getCurrentCart(!1).pipe(k(i=>i.entries));showSavedCartCtrls$=W([this.lappUserPermissionService.hasSavedCartPermission(),this.cartEntries$]).pipe(k(([i,e])=>i&&e?.length>0));entries$=H([{material:"",quantity:"1"}]);adding=!1;cartRoute;submitQuickorderParent(i){this.adding=!0;let e=[];this.entries$.subscribe(n=>{for(let r of n)r.material!==void 0&&r.material.trim().length!==0&&((r.quantity===void 0||r.quantity==="")&&(r.quantity="1"),r.entrySourceType="QUICK_ORDER",e.push(r))}),e.length!==0&&this.quickorderFacade.addMultipleToCart(e).pipe(Z(n=>{if(n&&(n?.failedProducts?.length>0&&this.globalMessageService.add({key:"basket.quickorder.error"},b.MSG_TYPE_ERROR),n?.requestedProducts?.length>0))for(let r of n.requestedProducts)this.globalMessageService.add({key:"basket.quickorder.requestprice",params:{code:[r]}},b.MSG_TYPE_ERROR);return n||this.globalMessageService.add({key:"iaddons.basket.quickorder.generalerror"},b.MSG_TYPE_ERROR),this.adding=!1,this.quickorderInput.nativeElement.value="",this.basketFacade.getCurrentCart(!0)})).subscribe()}submitQuickorder(i){i&&!this.adding&&(i instanceof KeyboardEvent&&i.keyCode===13||!(i instanceof KeyboardEvent))&&this.entries$.subscribe(e=>{e[0].material=this.quickorderInput.nativeElement.value,this.submitQuickorderParent(i)})}removeEntry(i){}addLine(){}quantityChanged(i,e){}onPaste(i){}static \u0275fac=function(e){return new(e||t)(v(yt),v(ce))};static \u0275cmp=w({type:t,selectors:[["i-small-quick-order"]],viewQuery:function(e,n){if(e&1&&ie(Bt,5),e&2){let r;ne(r=re())&&(n.quickorderInput=r.first)}},standalone:!1,decls:15,vars:12,consts:[["quickorderInput",""],[1,"small-quickorder-container"],[1,"entry-wrapper"],[1,"headline","fs_extra_small"],[1,"entry"],["class","quickorderEntry quickorderEntry-js",4,"ngFor","ngForOf"],["id","submitQuickOrder",1,"btn","btn-primary","icon-cart",3,"click"],[1,"controls"],[3,"cartEntries",4,"ngIf"],[1,"quickorderEntry","quickorderEntry-js"],[1,"materialNumber-holder"],["type","text","name","material","autocomplete","off",1,"form-control","form-input-field","material","quickorderInput",3,"keydown","placeholder"],[3,"cartEntries"]
1],template:function(e,n){e&1&&(s(0,"div",1)(1,"div",2)(2,"div",3),m(3),o(4,"cxTranslate"),l(),s(5,"div",4),u(6,Rt,5,4,"ul",5),o(7,"async"),s(8,"button",6),x("click",function(g){return n.submitQuickorder(g)}),m(9),o(10,"cxTranslate"),l()()(),s(11,"div",7),u(12,Nt,2,3,"i-saved-cart-button",8),o(13,"async"),_(14,"lapp-cart-totals"),l()()),e&2&&(a(3),f(" ",c(4,4,"quickorder.small.headline")," "),a(3),p("ngForOf",c(7,6,n.entries$)),a(3),f(" ",c(10,8,"quickorder.small.submit")," "),a(3),p("ngIf",c(13,10,n.showSavedCartCtrls$)))},dependencies:[oe,Q,$,j,B,R],styles:["[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .materialNumber-holder[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:40px;padding:10px 12px;border-radius:4px;border:solid 1px #bdbdbd;background-color:#fff}[_nghost-%COMP%]   .small-quickorder-container[_ngcontent-%COMP%]{padding-top:var(--spacing-s)}[_nghost-%COMP%]   .headline[_ngcontent-%COMP%]{color:var(--grey-700)}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;width:100%}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .materialNumber-holder[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin:5px 0 0}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   #submitQuickOrder[_ngcontent-%COMP%]{padding:0;height:40px;width:40px;margin:5px 0 0 var(--spacing-xxs);border:none}"]})};var jt=["quickorderMultiInput"],At=t=>({$implicit:t});function $t(t,i){t&1&&ke(0)}function Ut(t,i){if(t&1&&(_(0,"i-saved-cart-button",11),o(1,"async")),t&2){let e=d(2);p("cartEntries",c(1,1,e.cartEntries$))}}function Gt(t,i){if(t&1&&(s(0,"div",5)(1,"div",6)(2,"div",7),m(3),o(4,"cxTranslate"),l(),u(5,$t,1,0,"ng-container",8),l(),s(6,"div",9),u(7,Ut,2,3,"i-saved-cart-button",10),o(8,"async"),_(9,"lapp-cart-totals"),l()()),t&2){let e=i.ngIf,n=d(),r=D(3),g=D(5);a(3),f(" ",c(4,4,"quickorder.small.headline")," "),a(2),p("ngTemplateOutlet",e==="single"?r:g)("ngTemplateOutletContext",ae(8,At,e)),a(2),p("ngIf",c(8,6,n.showSavedCartCtrls$))}}function Kt(t,i){if(t&1){let e=I();s(0,"ul",15)(1,"li",16)(2,"input",17,2),o(4,"cxTranslate"),x("keydown",function(r){P(e);let g=d(2);return h(g.submitQuickorder(r))}),l()(),s(5,"li")(6,"div",18),x("click",function(){P(e);let r=d().$implicit,g=d();return h(g.toggleDisplayMode(r))}),_(7,"i",19),s(8,"span"),m(9),o(10,"cxTranslate"),l()()()()}t&2&&(a(2),p("placeholder",q(c(4,4,"quickorder.small.placeholder"))),a(4),p("appEcondaTracking","cart/quick-entry/expand/open"),a(3),E(c(10,6,"quickorder.small.toggle")))}function Yt(t,i){if(t&1){let e=I();s(0,"div",12),u(1,Kt,11,8,"ul",13),o(2,"async"),s(3,"button",14),x("click",function(r){P(e);let g=d();return h(g.submitQuickorder(r))}),m(4),o(5,"cxTranslate"),l()()}if(t&2){let e=d();a(),p("ngForOf",c(2,2,e.entries$)),a(3),f(" ",c(5,4,"quickorder.small.submit")," ")}}function zt(t,i){if(t&1){let e=I();s(0,"div",20),m(1),o(2,"cxTranslate"),l(),s(3,"div",21)(4,"ul",15)(5,"li",22),_(6,"textarea",23,3),o(8,"cxTranslate"),l(),s(9,"li")(10,"div",18),x("click",function(){let r=P(e).$implicit,g=d();return h(g.toggleDisplayMode(r))}),_(11,"i",24),s(12,"span"),m(13),o(14,"cxTranslate"),l()()()(),s(15,"button",25),x("click",function(r){P(e);let g=d();return h(g.submitQuickOrderMulti(r))}),m(16),o(17,"cxTranslate"),l()()}t&2&&(a(),f(" ",c(2,6,"quickorder.multi.subline")," "),a(5),p("placeholder",q(c(8,8,"quickorder.multi.placeholder"))),a(4),p("appEcondaTracking","cart/quick-entry/expand/close"),a(3),E(c(14,10,"quickorder.multi.toggle")),a(3),f(" ",c(17,12,"quickorder.multi.submit")," "))}var me=class t extends de{displayMode$;quickorderMultiInput;ngOnInit(){this.displayMode$=this.quickorderFacade.getCurrentDisplayMode()}toggleDisplayMode(i){i==="single"?this.quickorderFacade.setCurrentDisplayMode("expanded"):this.quickorderFacade.setCurrentDisplayMode("single")}submitQuickOrderMulti(i){(i&&i instanceof KeyboardEvent&&i.keyCode===13||!(i instanceof KeyboardEvent))&&this.quickorderMultiInput?.nativeElement?.value&&this.quickorderFacade.addAsPlainString(this.quickorderMultiInput?.nativeElement?.value).subscribe(()=>{this.quickorderMultiInput.nativeElement.value=null})}submitQuickorderParent(i){this.adding=!0;let e=[];this.entries$.subscribe(n=>{for(let r of n)r.material!==void 0&&r.material.trim().length!==0&&((r.quantity===void 0||r.quantity==="")&&(r.quantity="1"),r.entrySourceType="QUICK_ORDER",e.push(r))}),e.length!==0&&this.quickorderFacade.addMultipleToCart(e).pipe(Z(n=>{if(n&&(n?.failedProducts?.length>0&&(n.failedProducts[0]?.endsWith("--KMAT")?this.globalMessageService.add({key:"basket.quickorder.errorKMAT"},b.MSG_TYPE_ERROR):this.globalMessageService.add({key:"basket.quickorder.error"},b.MSG_TYPE_ERROR)),n?.requestedProducts?.length>0))for(let r of n.requestedProducts)this.globalMessageService.add({key:"basket.quickorder.requestprice",params:{code:[r]}},b.MSG_TYPE_ERROR);return n||this.globalMessageService.add({key:"iaddons.basket.quickorder.generalerror"},b.MSG_TYPE_ERROR),this.adding=!1,this.quickorderInput.nativeElement.value="",this.basketFacade.getCurrentCart(!0)})).subscribe()}static \u0275fac=(()=>{let i;return function(n){return(i||(i=ee(t)))(n||t)}})();static \u0275cmp=w({type:t,selectors:[["lapp-quickorder"]],viewQuery:function(e,n){if(e&1&&ie(jt,5),e&2){let r;ne(r=re())&&(n.quickorderMultiInput=r.first)}},standalone:!1,features:[te],decls:6,vars:3,consts:[["single",""],["expanded",""],["quickorderInput",""],["quickorderMultiInput",""],["class","small-quickorder-container",4,"ngIf"],[1,"small-quickorder-container"],[1,"entry-wrapper"],[1,"headline","fs_small"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"controls"],[3,"cartEntries",4,"ngIf"],[3,"cartEntries"],[1,"entry","single-upload","input"],["class","quickorderEntry quickorderEntry-js",4,"ngFor","ngForOf"],["id","submitQuickOrder",1,"btn","btn-primary","icon-cart",3,"click"],[1,"quickorderEntry","quickorderEntry-js"],[1,"materialNumber-holder"],["type","text","name","material","autocomplete","off",1,"form-control","form-input-field","material","quickorderInput",3,"keydown","placeholder"],[1,"display-mode","ctrl",3,"click","appEcondaTracking"],[1,"icon-plus"],[1,"subline","fs_extra_small"],[1,"entry","multi-upload","text-area"],[1,"material-multi-upload"],["type","text","name","material","autocomplete","off",1,"form-control","form-input-field","material","quickorderInput",3,"placeholder"],[1,"icon-m
1inus"],["id","submitQuickOrderMulti",1,"btn","btn-primary","icon-cart",3,"click"]],template:function(e,n){e&1&&(u(0,Gt,10,10,"div",4),o(1,"async"),u(2,Yt,6,6,"ng-template",null,0,F)(4,zt,18,14,"ng-template",null,1,F)),e&2&&p("ngIf",c(1,1,n.displayMode$))},dependencies:[oe,Q,Ie,$,j,pe,B,R],styles:["[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .materialNumber-holder[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:40px;padding:10px 12px;border-radius:4px;border:solid 1px #bdbdbd;background-color:#fff}[_nghost-%COMP%]   .small-quickorder-container[_ngcontent-%COMP%]{padding-top:var(--spacing-s)}[_nghost-%COMP%]   .headline[_ngcontent-%COMP%]{color:var(--grey-900)}[_nghost-%COMP%]   .subline[_ngcontent-%COMP%]{color:var(--grey-600);padding:6px 0 0}[_nghost-%COMP%]   .entry-wrapper[_ngcontent-%COMP%]{max-width:100%;width:100%}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .entry.multi-upload.text-area[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;width:100%;max-width:90%}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .materialNumber-holder[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin:5px 0 0}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .material-multi-upload[_ngcontent-%COMP%]{display:flex;flex-basis:100%;max-width:100%}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .material-multi-upload[_ngcontent-%COMP%]   .form-control.form-input-field.material.quickorderInput[_ngcontent-%COMP%]{display:flex;min-height:110px;min-width:100%;background-color:var(--white)}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .display-mode.ctrl[_ngcontent-%COMP%]{display:flex;padding-top:var(--spacing-xs);cursor:pointer}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .display-mode.ctrl[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:16px;line-height:22px;color:#ff7002;font-weight:400}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .display-mode.ctrl[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .display-mode.ctrl[_ngcontent-%COMP%]   .icon-plus[_ngcontent-%COMP%], [_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   .quickorderEntry[_ngcontent-%COMP%]   .display-mode.ctrl[_ngcontent-%COMP%]   .icon-minus[_ngcontent-%COMP%]{width:18px;height:18px;margin:2px 8px 0 0;object-fit:contain;border:1px solid #ff7002;border-radius:50%;font-size:10px;padding:3px}[_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   #submitQuickOrder[_ngcontent-%COMP%], [_nghost-%COMP%]   .entry[_ngcontent-%COMP%]   #submitQuickOrderMulti[_ngcontent-%COMP%]{padding:0;height:40px;width:40px;margin:5px 0 0 var(--spacing-xxs);border:none}"]})};var Wt=()=>({cxRoute:"register"}),Zt=()=>({cxRoute:"login"}),Jt=t=>({isSaveForLater:!1,optionalBtn:t});function Xt(t,i){t&1&&(s(0,"button",15),m(1),o(2,"cxTranslate"),l()),t&2&&(a(),f(" ",c(2,1,"cartDetails.proceedToCheckout")," "))}function ei(t,i){if(t&1&&(s(0,"a",16),o(1,"cxUrl"),m(2),o(3,"cxTranslate"),l()),t&2){let e=d(2).ngIf;p("routerLink",e.useCdcLogin?"/mylapp/registration":c(1,3,xe(7,Wt)))("appEcondaTracking","cart/register"),a(2),f(" ",c(3,5,"loginForm.register")," ")}}function ti(t,i){if(t&1&&(s(0,"a",17),o(1,"cxUrl"),m(2),o(3,"cxTranslate"),l()),t&2){let e=d(2).ngIf;p("routerLink",e.useCdcLogin?"/mylapp/login":c(1,3,xe(7,Zt)))("appEcondaTracking","cart/login"),a(2),f(" ",c(3,5,"miniLogin.signInRegister")," ")}}function ii(t,i){if(t&1&&(s(0,"div",8)(1,"div",9)(2,"span",10),m(3),o(4,"cxTranslate"),o(5,"cxTranslate"),l()(),s(6,"div",11),u(7,Xt,3,3,"button",12)(8,ei,4,8,"a",13)(9,ti,4,8,"a",14),l()()),t&2){let e=d().ngIf;a(3),E(e.isLoggedIn?c(4,4,"basket.emptyOptions.loggedIn"):c(5,6,"basket.emptyOptions.notLoggedIn")),a(4),p("ngIf",e.isLoggedIn),a(),p("ngIf",!e.isLoggedIn),a(),p("ngIf",!e.isLoggedIn)}}function ni(t,i){t&1&&(L(0),_(1,"cx-cart-validation-warnings"),T())}function ri(t,i){if(t&1&&(s(0,"div",30)(1,"p",31),m(2),o(3,"cxTranslate"),s(4,"span"),m(5),l()()()),t&2){let e=i.ngIf;
1a(2),Se(" ",c(3,4,"lapp.copperPrice"),"/",e==null?null:e.base," ",e==null?null:e.unit,": "),a(3),E(e==null||e.price==null?null:e.price.formattedValue)}}function ai(t,i){if(t&1&&_(0,"i-saved-cart-button",36),t&2){let e=d(3).ngIf;p("cartEntries",e)}}function oi(t,i){if(t&1&&(s(0,"div",32)(1,"div",33),_(2,"lapp-login-info"),l(),s(3,"div",34),u(4,ai,1,1,"i-saved-cart-button",35),o(5,"async"),_(6,"lapp-cart-totals"),l()()),t&2){let e=d(5);a(4),p("ngIf",c(5,1,e.showSavedCartCtrls$))}}function ci(t,i){if(t&1&&(L(0),m(1),T()),t&2){let e=i.ngIf;a(),f(" ",e," ")}}function pi(t,i){t&1&&(m(0),o(1,"cxTranslate")),t&2&&f(" ",c(1,1,"basket.pricedisclaimer")," ")}function si(t,i){if(t&1){let e=I();s(0,"div",19),u(1,ni,2,0,"ng-container",20)(2,ri,6,6,"div",21),o(3,"async"),u(4,oi,7,3,"div",22),s(5,"div",23)(6,"p",24),u(7,ci,2,1,"ng-container",25),o(8,"async"),u(9,pi,2,3,"ng-template",null,1,F),l(),s(11,"div",26)(12,"button",27),x("click",function(){P(e);let r=d(4);return h(r.doEmptyCart())}),_(13,"span",28),s(14,"span",10),m(15
1),o(16,"cxTranslate"),l()()()(),_(17,"lapp-cart-item-list",29),o(18,"async"),l()}if(t&2){let e=D(10),n=d().ngIf,r=d().ngIf,g=d().ngIf,U=d(),ve=D(3);a(),p("cxFeatureLevel","4.2"),a(),p("ngIf",c(3,13,U.copperPrice$)),a(2),p("ngIf",r.isLoggedIn),a(3),p("ngIf",c(8,15,U.lappCartNote$))("ngIfElse",e),a(8),E(c(16,17,"basket.empty")),a(2),p("items",n)("cartIsLoading",c(18,19,U.cartLoaded$)===!1)("promotionLocation",U.promotionLocation)("showPriceConditions",!1)("isCheckout",!1)("options",ae(21,Jt,ve))("cart",g)}}function li(t,i){if(t&1&&(L(0),u(1,si,19,23,"div",18),T()),t&2){let e=d(2).ngIf;a(),p("ngIf",e.totalItems>0)}}function di(t,i){if(t&1&&(L(0),u(1,ii,10,8,"div",7)(2,li,2,1,"ng-container",2),o(3,"async"),T()),t&2){let e=i.ngIf,n=d().ngIf,r=d();a(),p("ngIf",!e.isLoggedIn||!n||!n.entries||(n==null||n.entries==null?null:n.entries.length)===0),a(),p("ngIf",c(3,2,r.entries$))}}function mi(t,i){if(t&1&&(s(0,"div",38)(1,"h3",39),m(2),o(3,"cxTranslate"),l(),s(4,"h3",40),m(5),l(),_(6,"lapp-tooltip",41),o(7,"cxTranslate"),l()),t&2){let e=d(2).ngIf;a(2),f(" ",c(3,4,"basket.summary.provisionalTotalPrice")," "),a(3),f(" ",e.totalPrice==null?null:e.totalPrice.formattedValue," "),a(),p("text",q(c(7,6,"basket.summary.provisionalTotalPriceInfo")))}}function ui(t,i){if(t&1&&(L(0),u(1,mi,8,8,"div",37),T()),t&2){let e=d().ngIf;a(),p("ngIf",(e.entries==null?null:e.entries.length)>0)}}function gi(t,i){if(t&1&&(L(0),s(1,"div",3)(2,"a",4),_(3,"span",5),m(4),o(5,"cxTranslate"),l()(),s(6,"div",6)(7,"h1"),m(8),o(9,"cxTranslate"),l()(),u(10,di,4,4,"ng-container",2),o(11,"async"),u(12,ui,2,1,"ng-container",2),o(13,"async"),o(14,"async"),T()),t&2){let e=d();a(4),f(" ",c(5,4,"lapp.back")," "),a(4),E(c(9,6,"basket.headline")),a(2),p("ngIf",c(11,8,e.vm$)),a(2),p("ngIf",c(13,10,e.hidePrice$)===!1&&c(14,12,e.hasReadPricesPermission$)===!0)}}function _i(t,i){if(t&1){let e=I();s(0,"div",43)(1,"button",44),x("click",function(){P(e);let r=d().$implicit,g=d();return h(g.saveForLater(r.item))}),m(2),o(3,"cxTranslate"),l()()}if(t&2){let e=d().$implicit;a(),p("disabled",e.loading),a(),f(" ",c(3,2,"saveForLaterItems.saveForLater")," ")}}function fi(t,i){if(t&1&&u(0,_i,4,4,"div",42),t&2){let e=d();p("ngIf",e.selectiveCartEnabled)}}var ue=class t extends ut{constructor(e,n,r,g,U,ve,yi,vi,bi){super(e,n,r,g,ve);this.activeCartService=e;this.selectiveCartService=n;this.authService=r;this.routingService=g;this.activatedRoute=U;this.cartConfig=ve;this.lappBaseSiteService=yi;this.lappLocalizedDataService=vi;this.globalMessageService=bi;this.vm$=W([this.authService.isUserLoggedIn(),this.baseSiteService.get()]).pipe(k(([Dt,Ft])=>({isLoggedIn:Dt,useCdcLogin:Ft.useCdcLogin})))}activeCartService;selectiveCartService;authService;routingService;activatedRoute;cartConfig;lappBaseSiteService;lappLocalizedDataService;globalMessageService;materialPriceFacade=S(le);lappProductService=S(ft);lappUserPermissionService=S(se);baseSiteService=S(Fe);copperPrice$=this.materialPriceFacade.getMaterialPrice("001");showSavedCartCtrls$;subscription=new he;hidePrice$=this.lappProductService.getHidePrice();lappCartNote$;hasReadPricesPermission$=this.lappUserPermissionService.hasReadPricesPermission();vm$;ngOnInit(){super.ngOnInit(),this.initCartMessageHandling(),this.showSavedCartCtrls$=this.lappUserPermissionService.hasSavedCartPermission(),this.lappCartNote$=this.lappLocalizedDataService.getLocalizedData().pipe(k(e=>e.lappCartNote))}initCartMessageHandling(){this.subscription.add(this.activeCartService.hasCalculationErrors().pipe(be(e=>!!e)).subscribe(()=>{this.globalMessageService.add({key:"basket.error.calc"},b.MSG_TYPE_ERROR)})),this.subscription.add(this.activeCartService.getCartMessages().pipe(be(e=>e?.length>0)).subscribe(e=>{for(let n of e)n.messageType==="warning"||n.messageType==="error"?this.globalMessageService.add({key:n.messageKey},b.MSG_TYPE_ERROR):this.globalMessageService.add({key:n.messageKey},b.MSG_TYPE_INFO)}))}ngOnDestroy(){this.subscription.unsubscribe()}doEmptyCart(){this.activeCartService.clearCart()}static \u0275fac=function(n){return new(n||t)(v(G),v(He),v($e),v(Ae),v(Te),v(it),v(rt),v(Mt),v(ce))};static \u0275cmp=w({type:t,selectors:[["lapp-cart-details"]],standalone:!1,features:[te],decls:5,vars:3,consts:[["saveForLaterBtn",""],["defaultCartNote",""],[4,"ngIf"],[1,"lapp-back-button"],["appLappBack",""],[1,"icon-arrow-back"],[1,"heading"],["class","empty-cart-options row d-flex justify-content-between",4,"ngIf"],[1,"empty-cart-options","row","d-flex","justify-content-between"],[1,"empty-cart-options-info","d-flex","align-items-center","col-md-12","col-lg-7"],[1,"fs_small"],[1,"empty-cart-options-buttons","
1justify-content-end","d-flex","col-md-12","col-lg-5"],["disabled","disabled","class","btn btn-primary",4,"ngIf"],["class","btn btn-secondary",3,"routerLink","appEcondaTracking",4,"ngIf"],["class","btn btn-primary",3,"routerLink","appEcondaTracking",4,"ngIf"],["disabled","disabled",1,"btn","btn-primary"],[1,"btn","btn-secondary",3,"routerLink","appEcondaTracking"],[1,"btn","btn-primary",3,"routerLink","appEcondaTracking"],["class","cart-details-wrapper",4,"ngIf"],[1,"cart-details-wrapper"],[4,"cxFeatureLevel"],["class","lapp-cart-material-price",4,"ngIf"],["class","small-quickorder-container",4,"ngIf"],[1,"cart-subhead","row"],[1,"price-disclaimer","col-12","col-md-9","fs_extra_extra_small"],[4,"ngIf","ngIfElse"],[1,"col-12","col-md-3"],[1,"empty-cart","link",3,"click"],[1,"icon-trashcan","fs_small"],[3,"items","cartIsLoading","promotionLocation","showPriceConditions","isCheckout","options","cart"],[1,"lapp-cart-material-price"],[1,"fs_extra_small"],[1,"small-quickorder-container"],[1,"entry-wrapper"],[1,"controls"],[3,"cartEntries",4,"ngIf"],[3,"cartEntries"],["class","lapp-cart-total",4,"ngIf"],[1,"lapp-cart-total"],[1,"lapp-cart-total-text"],[1,"lapp-cart-total-price"],[3,"text"],["class","col-md-3 col-lg-3 col-xl-3 cx-sfl-btn",4,"ngIf"],[1,"col-md-3","col-lg-3","col-xl-3","cx-sfl-btn"],["type","button",1,"link","cx-action-link",3,"click","disabled"]],template:function(n,r){n&1&&(u(0,gi,15,14,"ng-container",2),o(1,"async"),u(2,fi,1,1,"ng-template",null,0,F),_(4,"lapp-quickorder")),n&2&&p("ngIf",c(1,1,r.cart$))},dependencies:[Q,Ne,qe,It,dt,bt,$,j,Pt,at,pe,me,B,Ue,R],styles:["[_nghost-%COMP%]   .heading[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:var(--spacing-l)}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]{align-items:flex-end;margin-top:var(--spacing-xl);margin-bottom:var(--spacing-xs);gap:var(--spacing-xxs) 0}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .price-disclaimer[_ngcontent-%COMP%]{color:var(--grey-600)}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-xxs)}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--grey-700)}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:not(.icon-trashcan){font-weight:600}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]:not(.icon-trashcan){text-decoration:underline}@media(max-width:767px){[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]{margin-top:20px}[_nghost-%COMP%]   .cart-subhead[_ngcontent-%COMP%]   .empty-cart[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:14px;line-height:18px;color:var(--grey-700);font-weight:400}}[_nghost-%COMP%]   .lapp-cart-material-price[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:var(--spacing-m)}[_nghost-%COMP%]   .lapp-cart-material-price[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--grey-700);font-weight:var(--font-semibold)}[_nghost-%COMP%]   .lapp-cart-material-price[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%]   .cart-details-wrapper[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .lapp-cart-total[_ngcontent-%COMP%]{display:flex;align-items:center;padding:var(--spacing-xs) var(--spacing-l);background-color:var(--grey-100);gap:var(--spacing-xs);border-top:1px solid var(--grey-300)}[_nghost-%COMP%]   .lapp-cart-total[_ngcontent-%COMP%]   .lapp-cart-total-text[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .lapp-cart-total[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .empty-cart-options[_ngcontent-%COMP%]{background-color:var(--grey-100);padding:var(--spacing-l);border-top:1px solid var(--grey-300);margin-left:0;margin-right:0}@media(max-width:1199px){[_nghost-%COMP%]   .empty-cart-options[_ngcontent-%COMP%]{padding:var(--spacing-s)}}[_nghost-%COMP%]   .empty-cart-options-info[_ngcontent-%COMP%]{padding-left:0;padding-right:0}[_nghost-%COMP%]   .empty-cart-options-buttons[_ngcontent-%COMP%]{flex-wrap:wrap;padding-left:0;padding-right:0}@media(min-width:992px){[_nghost-%COMP%]   .empty-cart-options-buttons[_ngcontent-%COMP%]   a.btn-primary[_ngcontent-%COMP%]{margin-left:1rem;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%]   .empty-cart-options-buttons[_ngcontent-%COMP%]   a.btn-secondary[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}}@media(max-width:991px){[_nghost-%COMP%]   .empty-cart-options-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], [_nghost-%COMP%]   .empty-cart-options-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;margin-top:.5rem}}"]})};var ge=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({imports:[M,N,V,A]})};var _e=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({imports:[M,N,V,A,ge]}
1)};var K=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({imports:[M,je,Ge,N,we,Ke,st,lt,ht,gt,mt,vt,V,A,xt,Ct,_e,Ve.withConfig({cmsComponents:{CartComponent:{component:ue,guards:[]}}})]})};var fe=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({imports:[M,K,K]})};var Y=class t extends ot{constructor(e,n,r){super(e,n,r);this.http=e;this.occEndpointsService=n;this.converterService=r}http;occEndpointsService;converterService;loadAll(e){return this.http.get(this.occEndpointsService.buildUrl("carts",{urlParams:{userId:e}})).pipe(Oe("carts"),k(n=>n??[]),this.converterService.pipeableMany(We))}load(e,n){return n?super.load(e,n):H(void 0)}create(e,n,r){return super.create(e,n,r)}static \u0275fac=function(n){return new(n||t)(X(Ee),X(Qe),X(Be))};static \u0275prov=J({token:t,factory:t.\u0275fac})};var Ci={backend:{occ:{endpoints:{cart:"users/${userId}/carts/${cartId}?fields=DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(reqDeliveryDateChanged,totalPrice(formattedValue),product(lappEndOfSales,images(FULL),stock(FULL),minOrderQuantity,orderQuantityInterval,cuttable,parentProductCategoryName,parentProductCategoryCode,displayNewIcon,displayLocalMadeIcon,localMadeIconOrigin),basePrice(formattedValue,value),updateable,remainingLength,reqDeliveryDate,lappKMATEntry),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue, value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user,saveTime,name,description,conditions,billToAddress(FULL),deliveryAddress(FULL),messages,noCreateSalesOrderPermission,noProceedToCheckoutPermission,generatedPurchaseOrderNumber,reqDeliveryDateOnEntryLevel,reqDeliveryDateOnEarliest,orderSimulateRefreshCountdown,delContactRecipient,delContactPhone,completeDelivery,missingPONDialogShown",carts:"users/${userId}/carts?fields=carts(DEFAULT,potentialProductPromotions,appliedProductPromotions,potentialOrderPromotions,appliedOrderPromotions,entries(reqDeliveryDateChanged,totalPrice(formattedValue),product(lappEndOfSales,images(FULL),stock(FULL),minOrderQuantity,orderQuantityInterval,cuttable,parentProductCategoryName,parentProductCategoryCode),basePrice(formattedValue,value),updateable,remainingLength,reqDeliveryDate,lappKMATEntry),totalPrice(formattedValue),totalItems,totalPriceWithTax(formattedValue),totalDiscounts(value,formattedValue),subTotal(formattedValue),deliveryItemsQuantity,deliveryCost(formattedValue),totalTax(formattedValue, value),pickupItemsQuantity,net,appliedVouchers,productDiscounts(formattedValue),user,saveTime,name,description,conditions,billToAddress(FULL),deliveryAddress(FULL),messages,generatedPurchaseOrderNumber,reqDeliveryDateOnEntryLevel,reqDeliveryDateOnEarliest,orderSimulateRefreshCountdown,delContactRecipient,delContactPhone,completeDelivery,missingPONDialogShown)",updateEntries:"users/${userId}/carts/${cartId}/lapp/entry/${entryNumber}/update"}}}},Ce=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({providers:[De(Ci),Y,{provide:Xe,useClass:Y},Me,{provide:Je,useClass:Me}],imports:[M]})};var z=class t extends et{removeCart(i){this.store.dispatch(new Ze.RemoveCart({cartId:i}))}static \u0275fac=(()=>{let i;return function(n){return(i||(i=ee(t)))(n||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"})};var ye=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({providers:[z,{provide:Ye,useClass:z},G,{provide:ze,useExisting:G},le,pt,St],imports:[M,Le.forFeature(Ot,kt)]})};var wt=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=C({imports:[tt,ct,_t,ye,Ce,fe]})};export{wt as LappCartBaseModule};

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.