import{a as ct,b as pt}from"./chunk-3P6GZXAL.js";import{a as lt}from"./chunk-FKH74CIW.js";import{a as ot}from"./chunk-77BJAEIL.js";import{I as at,a as rt}from"./chunk-SLGBXDUF.js";import{M as nt,r as tt,s as et,t as it}from"./chunk-MXUIPT66.js";import{C as Z,b as Q,f as X,l as Y}from"./chunk-DX7LHTFF.js";import{Aa as f,Ab as d,Ba as g,Bb as b,Da as O,Eb as A,Fb as y,Kb as h,Kd as j,Lb as a,Na as v,Ua as o,Vc as H,Wg as q,Xb as B,Xg as G,Yb as C,Zb as F,_b as x,ad as R,bd as $,cc as D,dc as V,ec as I,gb as S,gc as L,ib as _,ic as P,jb as T,jc as N,lc as W,mb as k,mc as U,ob as s,qb as M,rc as l,sc as c,ta as E,ub as m,wc as z,yh as J,zb as p,zh as K}from"./chunk-N6B2OJOY.js";var _t=()=>[import("./chunk-7D3ACVQC.js").then(t=>t.FoerchPotentialPromotionsComponent)],st=()=>[import("./chunk-OLAOE2ES.js").then(t=>t.FoerchPromotionCodeFieldComponent)],mt=(t,n,e,i)=>({isAnonymousUser:t,shouldShowPromotionElements:n,activeVoucherCode:e,isCouponEnabled:i}),Ct=t=>({active:t}),ut=(t,n,e)=>({onlyEProcurementOrders:t,eProcurementIDSWithOrder:n,isCartLoading:e}),dt=()=>({cxRoute:"checkout"});function xt(t,n){if(t&1&&(p(0,"div",16)(1,"dl",17)(2,"dt",18),C(3),l(4,"cxTranslate"),d(),p(5,"dd",18)(6,"strong"),C(7),d()()()()),t&2){let e=a(3);o(3),x(" ",c(4,2,"common.intermediateAmount"),": "),o(4),F(e.totalPrice==null?null:e.totalPrice.formattedValue)}}function bt(t,n){if(t&1&&(p(0,"div",5),_(1,xt,8,4,"div",16),d()),t&2){let e=a(2);o(),m(1,e.footerConfig.showTotal?1:-1)}}function ft(t,n){t&1&&b(0,"foerch-potential-promotions",19),t&2&&s("isMobile",!0)}function gt(t,n){t&1&&(_(0,ft,1,1),T(1,0,_t),k(15,1))}function ht(t,n){t&1&&b(0,"foerch-foerch-promotion-code-field")}function Ft(t,n){t&1&&(_(0,ht,1,0),T(1,0,st),k(2,1))}function Mt(t,n){if(t&1&&(p(0,"dl")(1,"dt",18),C(2),l(3,"cxTranslate"),d(),p(4,"dd",18),C(5),d()(),p(6,"dl")(7,"dt",18),C(8),l(9,"cxTranslate"),d(),p(10,"dd",18),C(11),d()()),t&2){let e=a(2),i=a();o(2),x(" ",c(3,4,"common.intermediateAmount"),": "),o(3),F(i.totalPrice==null?null:i.totalPrice.formattedValue),o(3),x(" ",c(9,6,"cartDetails.appliedCoupon"),": "),o(3),x(" ",e.activeVoucherCode||"\u2014"," ")}}function yt(t,n){t&1&&A(0)}function vt(t,n){if(t&1&&(p(0,"div",5)(1,"div",16)(2,"div",20,2),_(4,Ft,3,0)(5,Mt,12,8),p(6,"dl")(7,"dt",18),C(8),l(9,"cxTranslate"),d(),p(10,"dd",18)(11,"strong"),C(12),d()()(),_(13,yt,1,0,"ng-container",21),b(14,"foerch-cart-print-button",22),d()()()),t&2){let e=a(),i=B(21),r=a();o(4),m(4,e.isCouponEnabled?4:-1),o(),m(5,e.isCouponEnabled?5:-1),o(3),x("",c(9,8,"common.netTotal"),":"),o(4),F(r.totalPrice==null?null:r.totalPrice.formattedValue),o(),s("ngTemplateOutlet",i),o(),M("mb-3",e.isAnonymousUser),s("sortModel",r.sortModel)}}function Tt(t,n){if(t&1&&(p(0,"button",24,3),l(2,"cxTranslate"),b(3,"cx-icon",12),d()),t&2){let e=a(6);s("ngbPopover",c(2,2,"cartDetails.cartContainsNonPurchasableProducts")),o(3),s("type",e.iconTypes.INFO)}}function kt(t,n){t&1&&b(0,"cx-spinner",26)}function Pt(t,n){if(t&1&&(_(0,Tt,4,4,"button",24),p(1,"button",25),l(2,"cxUrl"),_(3,kt,1,0,"cx-spinner",26),C(4),l(5,"cxTranslate"),d()),t&2){let e=a(),i=a(4);m(0,i.hasAnyDeletedArticle?0:-1),o(),M("btn-loading",e.isCartLoading||i.isNavigatingToCheckout()),s("disabled",e.isCartLoading||i.isNavigatingToCheckout()||i.footerConfig.disableAll||i.hasAnyDeletedArticle||!i.footerConfig.showCheckout||i.shouldDisableElements)("routerLink",c(2,7,P(11,dt))),o(2),m(3,e.isCartLoading||i.isNavigatingToCheckout()?3:-1),o(),x(" ",c(5,9,"cartDetails.proceedToCheckout")," ")}}function wt(t,n){if(t&1){let e=y();p(0,"button",27),l(1,"cxTranslate"),h("click",function(){f(e);let r=a(6);return g(r.transferCart())}),d(),b(2,"button",28),l(3,"cxTranslate"),l(4,"cxUrl")}if(t&2){let e=a(6);s("innerHTML",c(1,4,"cartDetails.transferCartWithoutOrder"),v),o(2),s("disabled",e.footerConfig.disableAll||e.hasAnyDeletedArticle||e.isNavigatingToCheckout())("innerHTML",c(3,6,"cartDetails.transferCartWithOrder"),v)("routerLink",c(4,8,P(10,dt)))}}function Et(t,n){if(t&1){let e=y();p(0,"button",29),h("click",function(){f(e);let r=a(6);return g(r.transferCart())}),C(1),l(2,"cxTranslate"),d()}t&2&&(o(),x(" ",c(2,1,"cartDetails.transferCart")," "))}function Ot(t,n){if(t&1&&_(0,wt,5,11)(1,Et,3,3),t&2){let e=a();m(0,e.eProcurementIDSWithOrder?0:1)}}function St(t,n){if(t&1&&_(0,Pt,6,12,"button",23)(1,Ot,2,1),t&2){let e=a(4);m(0,e.isEProcurementCart||n.onlyEProcurementOrders?1:0)}}function At(t,n){if(t&1&&(_(0,St,2,1),l(1,"async"),l(2,"async"),l(3,"async")),t&2){let e,i=a(3);m(0,(e=W(7,ut,c(1,1,i.onlyEProcurementOrders$),c(2,3,i.canEProcurementIDSWithOrder$),c(3,5,i.isCartLoading$)))?0:-1,e)}}function Bt(t,n){if(t&1&&_(0,At,4,11),t&2){let e=a(2);m(0,e.footerConfig.showCheckout?0:-1)}}function Dt(t,n){if(t&1){let e=y();p(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"input",8),I("ngModelChange",function(r){f(e);let u=a();return V(u.selectAll,r)||(u.selectAll=r),g(r)}),h("click",function(){f(e);let r=a();return g(r.toggleSelectAll())}),d(),p(5,"label",9),C(6),l(7,"cxTranslate"),d()()(),p(8,"div",10)(9,"button",11),h("click",function(){f(e);let r=a();return g(r.isCollapsedBatchProcessing=!r.isCollapsedBatchProcessing)}),C(10),l(11,"cxTranslate"),b(12,"cx-icon",12),d()()(),p(13,"div",13)(14,"foerch-bulk-action",14),h("changed",function(r){f(e);let u=a();return g(u.applyAction(r))}),d()()(),p(15,"div",15,0),_(17,bt,2,1,"div",5)(18,gt,3,0)(19,vt,15,10,"div",5),d(),_(20,Bt,1,1,"ng-template",null,1,z)}if(t&2){let e=n,i=a();M("mb-2",e.isAnonymousUser),o(4),s("disabled",i.footerConfig.disableAll),D("ngModel",i.selectAll),o(2),F(c(7,15,"common.selectAll")),o(3),s("ngClass",N(19,Ct,!i.isCollapsedBatchProcessing)),o(),x(" ",c(11,17,"common.batchProcessing")," "),o(2),s("type",i.iconTypes.ARROW_DOWN),o(),s("ngbCollapse",i.isCollapsedBatchProcessing),o(),s("disableAll",i.footerConfig.disableAll)("options",i.bulkOptions)("showMobileDesign",!0),o(3),m(17,i.footerConfig.showTotal||i.footerConfig.showCheckout?17:-1),o(),m(18,e.shouldShowPromotionElements?18:-1),o(),m(19,i.footerConfig.showCheckout?19:-1)}}var Kt=(()=>{let n=class n extends pt{constructor(){super(...arguments),this.isCollapsedBatchProcessing=!0}};n.\u0275fac=(()=>{let i;return function(u){return(i||(i=O(n)))(u||n)}})(),n.\u0275cmp=E({type:n,selectors:[["foerch-cart-mobile-footer"]],standalone:!0,features:[S,L],decls:5,vars:14,consts:[["footerContainer",""],["buttons",""],["checkoutBlock",""],["p","ngbPopover"],[1,"bulkEditMobile"],[1,"row"],[1,"col"],[1,"form-check","form-checkbox"],["id","markAll","name","markAll","type","checkbox","role","checkbox",1,"form-check-input",3,"ngModelChange","click","disabled","ngModel"],["for","markAll",1,"form-check-label"],[1,"col","text-end"],["type","button",1,"btn","bulkEditMobile-toggle",3,"click","ngClass"],[3,"type"],[3,"ngbCollapse"],[3,"changed","disableAll","options","showMobileDesign"],[1,"container"],[1,"col-12"],[1,"mt-2"],[1,"text-end"],[3,"isMobile"],[1,"cart-summary"],[4,"ngTemplateOutlet"],[3,"sortModel"],["type","button",1,"btn","btn-block","btn-commerce",3,"btn-loading","disabled","routerLink"],["triggers","mouseenter:mouseleave:click","type","button",1,"btn-icon","mb-2",3,"ngbPopover"],["type","button",1,"btn","btn-block","btn-commerce",3,"disabled","routerLink"],[1,"spinner_small"],[1,"btn","btn-block","btn-primary",3,"click","innerHTML"],[1,"btn","btn-block","btn-primary",3,"disabled","innerHTML","routerLink"],[1,"btn","btn-block","btn-primary",3,"click"]],template:function(r,u){if(r&1&&(_(0,Dt,22,21),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async")),r&2){let w;m(0,(w=U(9,mt,!c(1,1,u.isLoggedIn$),c(2,3,u.shouldShowPromotionElements$),c(3,5,u.activeVoucherCode$),c(4,7,u.isCouponEnabled$)))?0:-1,w)}},dependencies:[$,ct,lt,ot,Z,Q,X,Y,K,J,et,tt,rt,at,H,R,j,nt,it,G,q],styles:[".form-checkbox[_ngcontent-%COMP%]{margin-bottom:0;margin-left:16px}.cartTotal[_ngcontent-%COMP%]{font-size:18px;margin-top:2px;line-height:22px;vertical-align:baseline}.cartTotal[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:300;margin-right:16px}@media (max-width: 991.98px){.cartTotal[_ngcontent-%COMP%]{line-height:1.43;padding:16px 0;display:flex;justify-content:space-between;align-items:center}}.cartTotal-label[_ngcontent-%COMP%]{font-size:14px;line-height:22px;margin-top:2px}.cart-hr[_ngcontent-%COMP%]{margin:16px 0 0;border:0 #999999;border-top:1px solid;opacity:.4}.cart-summary[_ngcontent-%COMP%]{background-color:#fff;padding:16px;margin-top:16px}.cart-summary-row[_ngcontent-%COMP%]{margin-right:0}","dl[_ngcontent-%COMP%]{display:block}dl[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{display:inline-block;width:65%;font-size:14px;line-height:1.14285714;font-weight:400;vertical-align:top;padding-top:4px}dl[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{display:inline-block;width:35%;font-size:18px;line-height:1.22222222}"],changeDetection:0});let t=n;return t})();export{Kt as a};