import{a as ke}from"./chunk-HTPSKIT6.js";import{a as q}from"./chunk-64JTGTPA.js";import{b as Oe}from"./chunk-UIGFCYGO.js";import{c as $}from"./chunk-72JDPJS6.js";import{b as U}from"./chunk-5OZTUYJC.js";import{J as H}from"./chunk-CWWVHRJU.js";import{a as Ie}from"./chunk-7JA7UHZ2.js";import{c as Pe}from"./chunk-QMZQK3O6.js";import{a as Ee}from"./chunk-6IGMG2LM.js";import{a as j}from"./chunk-RU43IR5J.js";import{d as D}from"./chunk-ZSVIZXE3.js";import{a as N}from"./chunk-Y7IP5WLG.js";import{b as Se}from"./chunk-ISDPQX42.js";import{I as Fe,a as Ae}from"./chunk-SLGBXDUF.js";import{a as Te}from"./chunk-LY6HB4BL.js";import{a as R}from"./chunk-SU6CJJJO.js";import{r as P}from"./chunk-L7CU4UNF.js";import{a as W}from"./chunk-HBJ2IG4O.js";import{r as he,t as ye}from"./chunk-MXUIPT66.js";import{I as Ce,b as ge,f as fe,l as be}from"./chunk-DX7LHTFF.js";import{$b as le,Aa as x,Ab as o,Ba as g,Bb as h,Cb as I,Db as T,Dc as B,Eb as K,Fb as y,Gd as V,Kb as b,Lb as l,Og as L,Ua as n,Va as C,Vc as pe,Wc as se,Xb as S,Xc as de,Yb as _,Zb as k,_b as u,ad as _e,bd as me,cc as Q,dc as z,ec as G,fh as ve,gb as ae,gd as ue,ib as f,jc as O,lc as w,ob as c,qb as ce,rc as p,rg as M,sc as m,ta as oe,tc as J,vc as X,wc as A,yh as xe,zb as r}from"./chunk-N6B2OJOY.js";var Me=function(t,s,e,a){var i=arguments.length,d=i<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,e):a,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(t,s,e,a);else for(var E=t.length-1;E>=0;E--)(v=t[E])&&(d=(i<3?v(d):i>3?v(s,e,d):v(s,e))||d);return i>3&&d&&Object.defineProperty(s,e,d),d},Le=function(t,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,s)},De=(t,s,e)=>({currencyCode:t,localeCode:s,hasFees:e}),we=t=>({max:t}),Ve=(t,s,e)=>[t,s,"symbol","1.2",e],Re=t=>({open:t}),je=t=>({"container mb-2 mt-2":t});function Ne(t,s){t&1&&(_(0),p(1,"cxTranslate")),t&2&&u(" ",m(1,1,"approval.info")," ")}function We(t,s){if(t&1){let e=y();r(0,"button",27),b("click",function(){x(e);let i=l(2);return g(i.approveOrder(!0))}),h(1,"cx-icon",12),_(2),p(3,"cxTranslate"),o()}if(t&2){let e=l(2);c("disabled",e.shouldDisableApproveButton),n(),c("type",e.icons.SUCCESS),n(),u(" ",m(3,3,"approval.approveOrder")," ")}}function He(t,s){if(t&1){let e=y();r(0,"button",28),b("click",function(){x(e);let i=l(2);return g(i.approveOrder(!1))}),h(1,"cx-icon",12),_(2),p(3,"cxTranslate"),o()}if(t&2){let e=l(2);c("disabled",e.isLoading),n(),c("type",e.icons.CLOSE),n(),u(" ",m(3,3,"approval.rejectOrder")," ")}}function Ue(t,s){t&1&&(r(0,"div"),h(1,"cx-spinner"),o())}function $e(t,s){if(t&1&&h(0,"foerch-checkout-info",57),t&2){let e=l(3);c("checkoutInfo",e.order.checkoutInfo)}}function qe(t,s){t&1&&K(0)}function Ke(t,s){if(t&1&&(r(0,"div",59)(1,"div",35),_(2),p(3,"cxTranslate"),o(),r(4,"div",38),_(5),o()()),t&2){let e=l(4);n(2),u(" ",m(3,2,"orderDetails.value")," "),n(3),u(" ",e.order.subTotal.formattedValue||"-"," ")}}function Qe(t,s){if(t&1&&(r(0,"div",59)(1,"div",35),_(2),o(),r(3,"div",38),_(4),p(5,"currency"),o()()),t&2){let e=s.$implicit,a=l(4).ngIf;n(2),u(" ",e.type.name," "),n(2),u(" ",(e.value==null?null:e.value.formattedValue)||X(5,2,w(8,Ve,e.value==null?null:e.value.value,a.currencyCode,a.localeCode))," ")}}function ze(t,s){if(t&1&&(I(0),f(1,Qe,6,12,"div",60),T()),t&2){let e=l(4);n(),c("ngForOf",e.order.fees)("ngForTrackBy",e.trackByIndex)}}function Ge(t,s){if(t&1&&(r(0,"div",34)(1,"div",33),f(2,Ke,6,4,"div",58)(3,ze,2,2,"ng-container",7),r(4,"div",59)(5,"div",35),_(6),p(7,"cxTranslate"),o(),r(8,"div",38),_(9),o()()()()),t&2){let e=l(3);n(2),c("ngIf",e.order.subTotal),n(),c("ngIf",e.order.fees&&e.order.fees.length>0),n(3),u(" ",m(7,4,"orderDetails.totalValue")," "),n(3),u(" ",(e.order.totalPrice==null?null:e.order.totalPrice.formattedValue)||"-"," ")}}function Je(t,s){if(t&1&&(r(0,"div",34)(1,"div",35),_(2),p(3,"cxTranslate"),o(),r(4,"div",38),_(5),o()()),t&2){let e=l(3);n(2),u(" ",m(3,2,"orderDetails.value")," "),n(3),u(" ",(e.order.totalPrice==null?null:e.order.totalPrice.formattedValue)||"-"," ")}}function Xe(t,s){t&1&&(r(0,"div",59)(1,"div",35),_(2),p(3,"cxTranslate"),o(),r(4,"div",38),_(5),p(6,"cxTranslate"),o()()),t&2&&(n(2),u(" ",m(3,2,"common.info")," "),n(3),u(" ",m(6,4,"approval.deliveryAddressInfo")," "))}function Ye(t,s){if(t&1&&(r(0,"div",59)(1,"div",35),_(2),p(3,"cxTranslate"),h(4,"br"),o(),r(5,"div",38),h(6,"foerch-address",61),o()()),t&2){let e=l(3);n(2),u(" ",m(3,3,"orderDetails.shippedOn"),""),n(4),c("address",e.order.deliveryAddress)("showAddressName",!1)}}function Ze(t,s){if(t&1){let e=y();I(0),r(1,"div",62)(2,"button",63),b("click",function(){x(e);let i=l(4);return g(i.isCollapsedEditCostCenter=!i.isCollapsedEditCostCenter)}),r(3,"div",64)(4,"div",53),_(5),p(6,"cxTranslate"),o(),r(7,"div",54),h(8,"cx-icon",12),o()()(),r(9,"div",55)(10,"div",45)(11,"ng-select",65),p(12,"cxTranslate"),b("change",function(i){x(e);let d=l(4);return g(d.costCenterChanged(i))}),o()(),r(13,"div",45)(14,"ng-select",66),p(15,"async"),p(16,"async"),p(17,"cxTranslate"),G("ngModelChange",function(i){x(e);let d=l(4);return z(d.selectedPurchaseReasonValue,i)||(d.selectedPurchaseReasonValue=i),g(i)}),b("change",function(i){x(e);let d=l(4);return g(d.purchaseReasonChanged(i))}),o()(),r(18,"button",67),b("click",function(){x(e);let i=l(4);return g(i.applyCostCenterToOrder(!0))}),_(19),p(20,"cxTranslate"),o(),r(21,"button",68),b("click",function(){x(e);let i=l(4);return g(i.applyCostCenterToOrder(!1))}),_(22),p(23,"cxTranslate"),o()()(),T()}if(t&2){let e,a=l().ngIf,i=l(3);n(),c("ngClass",O(30,Re,!i.isCollapsedEditCostCenter)),n(4),u(" ",m(6,16,"cartDetails.editCostCenter")," "),n(3),c("type",i.icons.ARROW_DOWN),n(),c("ngbCollapse",i.isCollapsedEditCostCenter),n(2),c("clearable",!1)("items",a)("placeholder",m(12,18,"cartDetails.selectCostCenterPlaceHolder")),n(3),c("clearable",!1)("disabled",!(((e=m(15,20,i.purchaseReasons$))==null?null:e.length)>0))("items",m(16,22,i.purchaseReasons$))("placeholder",m(17,24,"cartDetails.selectPurchaseReasonPlaceHolder")),Q("ngModel",i.selectedPurchaseReasonValue),n(4),c("disabled",!i.selectedCostCenter),n(),u(" ",m(20,26,"cartHeader.applyCostCenter")," "),n(2),c("disabled",!i.selectedCostCenter),n(),u(" ",m(23,28,"cartHeader.applyForSelected")," ")}}function et(t,s){if(t&1&&(I(0),f(1,Ze,24,32,"ng-container",7),T()),t&2){let e=s.ngIf;n(),c("ngIf",e.length)}}function tt(t,s){if(t&1){let e=y();I(0),r(1,"button",69),b("click",function(){x(e);let i=l(3);return g(i.openWatchlistDialogToAddInOrder())}),h(2,"cx-icon",12),_(3),p(4,"cxTranslate"),o(),T()}if(t&2){let e=l(3);n(2),c("type",e.icons.WATCHLIST),n(),u(" ",m(4,2,"cartHeader.searchWatchlist")," ")}}function nt(t,s){if(t&1){let e=y();I(0),f(1,$e,1,1,"foerch-checkout-info",29),p(2,"foerchCheckoutDisplayHint"),r(3,"div",30),_(4),p(5,"cxTranslate"),o(),r(6,"div",31)(7,"div",14)(8,"div",32)(9,"div",33)(10,"div",34)(11,"div",35),_(12),p(13,"cxTranslate"),o(),r(14,"div",36)(15,"span",37),_(16),o()()(),r(17,"div",34)(18,"div",35),_(19),p(20,"cxTranslate"),o(),r(21,"div",38),_(22),p(23,"cxDate"),o()(),r(24,"div",34)(25,"div",35),_(26),p(27,"cxTranslate"),o(),r(28,"div",38),_(29),o()(),r(30,"div",34)(31,"div",35),_(32),p(33,"cxTranslate"),o(),r(34,"div",38),_(35),o()(),r(36,"div",34)(37,"div",35),_(38),p(39,"cxTranslate"),o(),r(40,"div",38),_(41),o()(),r(42,"div",34)(43,"div",35),_(44),p(45,"cxTranslate"),o(),r(46,"div",38),_(47),p(48,"cxTranslate"),o()()(),r(49,"div",33),f(50,qe,1,0,"ng-container",39)(51,Ge,10,6,"ng-template",null,2,A)(53,Je,6,4,"ng-template",null,3,A),o(),r(55,"foerch-input",40),p(56,"cxTranslate"),p(57,"cxTranslate"),b("valueChanged",function(i){x(e);let d=l(2);return g(d.setPurchaseNumber(i))}),o(),r(58,"foerch-input",41),p(59,"cxTranslate"),p(60,"cxTranslate"),b("valueChanged",function(i){x(e);let d=l(2);return g(d.setComment(i))}),o()(),h(61,"div",42),r(62,"div",32)(63,"div",33),f(64,Xe,7,6,"div",43)(65,Ye,7,5,"ng-template",null,4,A),o(),r(67,"div",33)(68,"div",44)(69,"div",45)(70,"div",46)(71,"textarea",47),p(72,"cxTranslate"),b("blur",function(i){x(e);let d=l(2);return g(d.setCommentApprover(i.target.value))}),o(),r(73,"label",48),_(74),p(75,"cxTranslate"),o()()()()()()()(),r(76,"div",49),f(77,et,2,1,"ng-container",7),p(78,"async"),r(79,"div",50)(80,"button",51),b("click",function(){x(e);let i=l(2);return g(i.isCollapsedAddArticle=!i.isCollapsedAddArticle)}),r(81,"div",52)(82,"div",53),_(83),p(84,"cxTranslate"),o(),r(85,"div",54),h(86,"cx-icon",12),o()()(),r(87,"div",55)(88,"foerch-quick-add-entry",56),b("addToCart",function(i){x(e);let d=l(2);return g(d.quickAddEntriesToOrder(i))}),o(),f(89,tt,5,4,"ng-container",7),o()()(),T()}if(t&2){let e=S(52),a=S(54),i=S(66),d=l().ngIf,v=l();n(),c("ngIf",m(2,37,v.order.checkoutInfo)),n(3),le(" ",m(5,39,"approval.orderNumber")," ",v.order.code," "),n(8),u(" ",m(13,41,"ordersList.table.status")," "),n(4),u(" ",v.order.statusDisplay||"-"," "),n(3),u(" ",m(20,43,"common.orderedAt")," "),n(3),u(" ",m(23,45,v.order.created)||"-"," "),n(4),u(" ",m(27,47,"ordersList.table.channel")," "),n(3),u(" ",v.order.salesApplication||"-"," "),n(3),u(" ",m(33,49,"ordersList.table.user")," "),n(3),u(" ",(v.order.user==null?null:v.order.user.name)||"-"," "),n(3),u(" ",m(39,51,"ordersList.table.customerId")," "),n(3),u(" ",(v.order.unit==null?null:v.order.unit.displayUid)||(v.order.unit==null?null:v.order.unit.uid)||"-"," "),n(3),u(" ",m(45,53,"ordersList.table.paymentMethod")," "),n(3),u(" ",v.order.paymentInfo||m(48,55,"orderDetails.paymentInvoice")," "),n(3),c("ngTemplateOutlet",d.hasFees?e:a),n(5),c("dynamicHelpText",v.maxPurchaseOrderNumberLength<v.standardStringLength?J(56,57,"checkoutReview.internalOrderNumberHelpText",O(75,we,v.maxPurchaseOrderNumberLength)):"")("labelAndPlaceholder",m(57,60,"approval.yourOrderNumber"))("maxLength",v.maxPurchaseOrderNumberLength)("value",v.order.purchaseOrderNumber),n(3),c("dynamicHelpText",v.maxOrderCommentLength<v.standardStringLength?J(59,62,"checkoutReview.orderCommentLengthHelpText",O(77,we,v.maxOrderCommentLength)):"")("labelAndPlaceholder",m(60,65,"approval.comment"))("maxLength",v.maxOrderCommentLength)("value",v.order.b2BComment==null?null:v.order.b2BComment.comment),n(6),c("ngIf",(v.order.consignments==null?null:v.order.consignments.length)>1)("ngIfElse",i),n(7),c("placeholder",m(72,67,"approval.notes")),n(3),u(" ",m(75,69,"approval.notes")," "),n(3),c("ngIf",m(78,71,v.costCenters$)),n(2),ce("open",!v.isCollapsedAddArticle),n(4),u(" ",m(84,73,"cartHeader.addArticle")," "),n(3),c("type",v.icons.ARROW_DOWN),n(),c("ngbCollapse",v.isCollapsedAddArticle),n(),c("cartMode",v.cartMode)("disableAddButton",v.isLoading),n(),c("ngIf",(v.watchlistItems==null?null:v.watchlistItems.length)>0)}}function it(t,s){t&1&&K(0)}function rt(t,s){if(t&1&&(r(0,"div",86)(1,"div",84),_(2),p(3,"cxTranslate"),o(),r(4,"div",85),_(5),o()()),t&2){let e=l(4);n(2),u(" ",m(3,2,"orderDetails.value"),": "),n(3),u(" ",e.order.subTotal.formattedValue||"-"," ")}}function ot(t,s){if(t&1&&(r(0,"div",52)(1,"div",84),_(2),o(),r(3,"div",85),_(4),p(5,"currency"),o()()),t&2){let e=s.$implicit,a=l(4).ngIf;n(2),u(" ",e.type.name,": "),n(2),u(" ",(e.value==null?null:e.value.formattedValue)||X(5,2,w(8,Ve,e.value==null?null:e.value.value,a.currencyCode,a.localeCode))," ")}}function at(t,s){if(t&1&&(I(0),f(1,ot,6,12,"div",87),T()),t&2){let e=l(4);n(),c("ngForOf",e.order.fees)("ngForTrackBy",e.trackByIndex)}}function ct(t,s){if(t&1&&(f(0,rt,6,4,"div",82)(1,at,2,2,"ng-container",7),r(2,"div",83)(3,"div",84),_(4),p(5,"cxTranslate"),o(),r(6,"div",85)(7,"strong"),_(8),o()()()),t&2){let e=l(3);c("ngIf",e.order.subTotal),n(),c("ngIf",e.order.fees&&e.order.fees.length>0),n(3),u(" ",m(5,4,"orderDetails.totalValue"),": "),n(4),k((e.order.totalPrice==null?null:e.order.totalPrice.formattedValue)||"-")}}function lt(t,s){if(t&1&&(r(0,"div",88),_(1),p(2,"cxTranslate"),r(3,"strong"),_(4),o()()),t&2){let e=l(3);n(),u(" ",m(2,2,"common.netTotal"),": "),n(3),k(e.order.totalPrice==null?null:e.order.totalPrice.formattedValue)}}function pt(t,s){if(t&1){let e=y();I(0),r(1,"foerch-cart-mobile-body",70),b("applyCostCenterToEntry",function(i){x(e);let d=l(2);return g(d.applyCcmToEntry(i))})("markEntry",function(i){x(e);let d=l(2);return g(d.markCartEntry(i))})("removeEntry",function(i){x(e);let d=l(2);return g(d.deleteOrderEntry(i))})("updateComment",function(i){x(e);let d=l(2);return g(d.updateEntryComment(i))})("vpeChange",function(i){x(e);let d=l(2);return g(d.onVpeChange(i))}),o(),r(2,"div",71)(3,"div",72)(4,"div",73)(5,"div",74),f(6,it,1,0,"ng-container",39),o(),f(7,ct,9,6,"ng-template",null,5,A)(9,lt,5,4,"ng-template",null,6,A),o(),r(11,"div",73)(12,"div",75)(13,"div",76)(14,"div",54)(15,"div",77)(16,"input",78),G("ngModelChange",function(i){x(e);let d=l(2);return z(d.areAllEntriesSelected,i)||(d.areAllEntriesSelected=i),g(i)}),b("click",function(){x(e);let i=l(2);return g(i.toggleSelectAll())}),o(),r(17,"label",79),_(18),p(19,"cxTranslate"),o()()(),r(20,"div",80)(21,"button",81),b("click",function(){x(e);let i=l(2);return g(i.deleteBulkAction())}),_(22),p(23,"cxTranslate"),o()()()()()()(),T()}if(t&2){let e=S(8),a=S(10),i=l().ngIf,d=l();n(),c("cartConfig",d.cartConfig)("checkoutInfo",d.order.checkoutInfo)("isLoading$",d.isOrderLoading$)("items",d.orderEntries)("selectionHelper",d.selectionHelper),n(4),c("ngClass",O(15,je,i.hasFees)),n(),c("ngTemplateOutlet",i.hasFees?e:a),n(10),c("disabled",d.isLoading),Q("ngModel",d.areAllEntriesSelected),n(2),k(m(19,11,"common.selectAll")),n(4),u(" ",m(23,13,"common.delete")," ")}}function st(t,s){if(t&1){let e=y();r(0,"button",89),b("click",function(){x(e);let i=l(2);return g(i.approveOrder(!0))}),h(1,"cx-icon",12),_(2),p(3,"cxTranslate"),o()}if(t&2){let e=l(2);c("disabled",e.shouldDisableApproveButton),n(),c("type",e.icons.SUCCESS),n(),u(" ",m(3,3,"approval.approveOrder")," ")}}function dt(t,s){if(t&1){let e=y();r(0,"button",90),b("click",function(){x(e);let i=l(2);return g(i.approveOrder(!1))}),h(1,"cx-icon",12),_(2),p(3,"cxTranslate"),o()}if(t&2){let e=l(2);c("disabled",e.isLoading),n(),c("type",e.icons.CLOSE),n(),u(" ",m(3,3,"approval.rejectOrder")," ")}}function _t(t,s){t&1&&(r(0,"div",92)(1,"div",59)(2,"div",93),_(3),p(4,"cxTranslate"),o()()()),t&2&&(n(3),u(" ",m(4,1,"approval.emptyTable")," "))}function mt(t,s){if(t&1&&f(0,_t,5,3,"div",91),t&2){let e=l(2);c("ngIf",e.isLoaded)}}function ut(t,s){if(t&1){let e=y();I(0),r(1,"div",8)(2,"div",9)(3,"div",10),_(4),p(5,"cxTranslate"),r(6,"button",11),h(7,"cx-icon",12),o(),f(8,Ne,2,3,"ng-template",null,0,A),o()(),r(10,"div",13)(11,"div",14)(12,"div",15),f(13,We,4,5,"button",16),o(),r(14,"div",17),f(15,He,4,5,"button",18),o()()()(),f(16,Ue,2,0,"div",7)(17,nt,90,79,"ng-container",7)(18,pt,24,17,"ng-container",19),r(19,"div",20)(20,"div",21),f(21,st,4,5,"button",22),o(),r(22,"div",23),f(23,dt,4,5,"button",24),o(),r(24,"div",25)(25,"a",26),b("click",function(){x(e);let i=l();return g(i.cancel())}),_(26),p(27,"cxTranslate"),o()()(),f(28,mt,1,1,"ng-template",null,1,A),T()}if(t&2){let e=S(9),a=S(29),i=l();n(4),u(" ",m(5,12,"approval.headline")," "),n(2),c("ngbPopover",e),n(),c("type",i.icons.INFO),n(6),c("ngIf",i.areApprovalButtonsVisible),n(2),c("ngIf",i.areApprovalButtonsVisible),n(),c("ngIf",i.isLoading),n(),c("ngIf",i.order),n(),c("ngIf",!i.isEmptyList)("ngIfElse",a),n(3),c("ngIf",i.areApprovalButtonsVisible),n(2),c("ngIf",i.areApprovalButtonsVisible),n(3),u(" ",m(27,14,"approval.back")," ")}}var F,Be=(F=class extends ke{constructor(s,e,a,i,d,v,E,Y,Z,ee,te,ne,ie,re){super(e,v,a,Y,i,d,E,Z,ee,te,ne,ie,s,re),this.translationService=s,this.activatedRoute=e,this.orderService=a,this.activeCartService=i,this.permissionService=d,this.modalService=v,this.cd=E,this.watchlistService=Y,this.unitsService=Z,this.currencyService=ee,this.currencyLocaleService=te,this.routingService=ne,this.baseSiteService=ie,this.checkoutInfoPipe=re,this.isCollapsedEditCostCenter=!0,this.isCollapsedAddArticle=!0}},F.\u0275fac=function(e){return new(e||F)(C(L),C(V),C($),C(H),C(j),C(N),C(B),C(R),C(q),C(M),C(U),C(W),C(D),C(P))},F.\u0275cmp=oe({type:F,selectors:[["foerch-order-approval-process-mobile"]],features:[ae],decls:3,vars:9,consts:[["popoverContent",""],["noArticles",""],["headerWithFees",""],["headerWithoutFees",""],["oneDeliveryAddress",""],["footerWithFees",""],["footerWithoutFees",""],[4,"ngIf"],[1,"row","mb-2","mb-md-3"],[1,"col-md-auto"],[1,"h3","mb-1","mb-md-0"],["container","body","placement","bottom","popoverClass","costCenterManagement-popover","triggers","mouseenter:mouseleave:click","type","button",1,"btn-icon","orderApprovalProcessInfo-btn","ms-2",3,"ngbPopover"],[3,"type"],[1,"col-md-auto","ms-auto"],[1,"row","g-0"],[1,"col-md-auto","ps-md-m"],["class","btn btn-success btn-block btn-icon_left mt-2 mt-md-0 mw-sm-only-400","type","button",3,"disabled","click",4,"ngIf"],[1,"col-md-auto","order-md-first"],["class","btn btn-danger btn-block btn-icon_left mt-2 mt-md-0 mw-sm-only-400","type","button",3,"disabled","click",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"row","align-items-center","flex-md-row-reverse","mw-sm-only-400"],[1,"col-md-auto","mt-3","mt-md-0"],["class","btn btn-success btn-block btn-icon_left","type","button",3,"disabled","click",4,"ngIf"],[1,"col-md-auto","mt-2","mt-md-0"],["class","btn btn-danger btn-block btn-icon_left","type","button",3,"disabled","click",4,"ngIf"],[1,"col-md-auto","mt-2","mt-md-0","text-center","text-sm-left"],[1,"btn","btn-link_secondary",3,"click"],["type","button",1,"btn","btn-success","btn-block","btn-icon_left","mt-2","mt-md-0","mw-sm-only-400",3,"click","disabled"],["type","button",1,"btn","btn-danger","btn-block","btn-icon_left","mt-2","mt-md-0","mw-sm-only-400",3,"click","disabled"],["class","mb-2",3,"checkoutInfo",4,"ngIf"],[1,"orderApprovalProcessNr"],[1,"orderApprovalProcess"],[1,"col-md-6","px-2"],[1,"row"],[1,"col-6"],[1,"orderApprovalProcess-key"],[1,"orderApprovalProcess-value","orderApprovalProcess-value_status","mb-2"],[1,"text-warning"],[1,"orderApprovalProcess-value","mb-2"],[4,"ngTemplateOutlet"],["inputId","customOrderNumber",3,"valueChanged","dynamicHelpText","labelAndPlaceholder","maxLength","value"],["inputId","commentOrderer",3,"valueChanged","dynamicHelpText","labelAndPlaceholder","maxLength","value"],[1,"orderApprovalProcess-mobileBorder","col-12","d-block","d-md-none"],["class","col-12",4,"ngIf","ngIfElse"],[1,"col-md-12"],[1,"form-group"],[1,"form-floating"],["id","comment","name","comment","rows","1",1,"form-control",3,"blur","placeholder"],["for","comment",1,"form-label"],[1,"orderApprovalProcessCartBox"],[1,"cartBox","mt-2"],["type","button",1,"btn","btn-block","cartBox-headBtn","align-items-center",3,"click"],[1,"row","justify-content-between"],[1,"col","text-start"],[1,"col-auto"],[1,"cartBox-body",3,"ngbCollapse"],[3,"addToCart","cartMode","disableAddButton"],[1,"mb-2",3,"checkoutInfo"],["class","col-12",4,"ngIf"],[1,"col-12"],["class","col-12",4,"ngFor","ngForOf","ngForTrackBy"],[3,"address","showAddressName"],[1,"cartBox",3,"ngClass"],["type","button",1,"btn","btn-block","cartBox-headBtn",3,"click"],[1,"row","justify-content-between","align-items-center"],["bindLabel","name","bindValue","PK","labelForId","costCenters",3,"change","clearable","items","placeholder"],["bindLabel","name","bindValue","PK","labelForId","purchaseReasons",3,"ngModelChange","change","clearable","disabled","items","placeholder","ngModel"],["type","button",1,"btn","btn-secondary","btn-block","mt-2",3,"click","disabled"],[1,"btn","btn-secondary","btn-block","mt-2",3,"click","disabled"],["type","button",1,"btn","btn-link","cartBox-link",3,"click"],[3,"applyCostCenterToEntry","markEntry","removeEntry","updateComment","vpeChange","cartConfig","checkoutInfo","isLoading$","items","selectionHelper"],[1,"orderApprovalProcessFooter"],[1,"row","g-0","flex-md-row-reverse"],[1,"col-md-6"],[3,"ngClass"],[1,"bulkEdit"],[1,"row","align-items-center"],[1,"form-check","form-checkbox"],["id","markAllDesktop","name","markAllDesktop","type","checkbox",1,"form-check-input",3,"ngModelChange","click","disabled","ngModel"],["for","markAllDesktop",1,"form-check-label"],[1,"col-auto","ms-auto","ms-sm-0"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"],["class","row justify-content-between mb-1",4,"ngIf"],[1,"row","justify-content-between","mt-1"],[1,"col-auto","offset-4","orderApprovalProcess-key"],[1,"col-auto","orderApprovalProcess-value"],[1,"row","justify-content-between","mb-1"],["class","row justify-content-between",4,"ngFor","ngForOf","ngForTrackBy"],[1,"cartTotal","text-end"],["type","button",1,"btn","btn-success","btn-block","btn-icon_left",3,"click","disabled"],["type","button",1,"btn","btn-danger","btn-block","btn-icon_left",3,"click","disabled"],["class","row emptyState",4,"ngIf"],[1,"row","emptyState"],[1,"emptyState-text"]],template:function(e,a){e&1&&(f(0,ut,30,16,"ng-container",7),p(1,"async"),p(2,"async")),e&2&&c("ngIf",w(5,De,m(1,1,a.currencyCode$),m(2,3,a.localeCode$),(a.order==null||a.order.fees==null?null:a.order.fees.length)>0))},dependencies:[pe,se,de,_e,he,Ae,Fe,ge,fe,be,Ce,ye,Oe,Se,Ee,Ie,Pe,me,ue,xe,ve,P],encapsulation:2}),F);Be=Me([Te(),Le("design:paramtypes",[L,V,$,H,j,N,B,R,q,M,U,W,D,P])],Be);export{Be as a};