1"use strict";(self.webpackChunkwebshop_front=self.webpackChunkwebshop_front||[]).push([[557],{61557:(Mt,y,r)=>{r.r(y),r.d(y,{MyAssortmentModule:()=>xt});var l=r(60177),S=r(89417),u=r(51188),I=r(29842),P=r(31108),A=r(19584),h=r(93754),T=r(25558),L=r(84572),g=r(50426),b=r(45312),R=r(96354),t=r(54438),F=r(98736),k=r(99327),_=r(9727),j=r(21626),E=r(88315),f=r(88834),p=r(36013),M=r(99213),m=r(3902),C=r(41780);function $(n,a){if(1&n&&(t.j41(0,"mat-list-option",16)(1,"div",8)(2,"p",9),t.EFF(3),t.k0s()()()),2&n){const e=a.$implicit;t.Y8G("value",e),t.R7$(3),t.JRh(e.firstName)}}function w(n,a){1&n&&(t.j41(0,"button",17),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"mat-icon",18),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"shoppingList.bulk_actions.stepper.next")," "))}let G=(()=>{class n{constructor(){this.customers=[],this.selectedCustomers=[],this.onSecondStepOutput=new t.bkB}ngOnInit(){}onCustomerChange(e){this.onSecondStepOutput.emit(this.selectedCustomers)}deselectAllCustomers(){this.selectedCustomers=[],this.onSecondStepOutput.emit(this.selectedCustomers)}selectAllCustomers(){this.selectedCustomers=[...this.customers],this.onSecondStepOutput.emit(this.selectedCustomers)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-assortment-step-customers"]],inputs:{activeCustomer:"activeCustomer",customers:"customers",selectedCustomers:"selectedCustomers"},outputs:{onSecondStepOutput:"onSecondStepOutput"},decls:26,vars:20,consts:[[1,"stepper-container"],[1,"subtitle"],[1,"btn-actions-container"],["mat-button","",3,"click"],["color","primary","aria-hidden","false","aria-label","Example home icon","fontIcon","check_circle"],["color","warn","aria-hidden","false","aria-label","Example home icon","fontIcon","clear"],["color","primary"],[3,"selected","disabled","value"],[1,"customer-item"],[1,"customer-name"],["color","primary",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","justify-content-space-between","mt-5","mb-5"],["color","primary","mat-flat-button","","matStepperPrevious",""],["aria-hidden","false","aria-label","Example home icon","fontIcon","skip_previous"],["color","primary","mat-flat-button","","matStepperNext","",4,"ngIf"],[3,"value"],["color","primary","mat-flat-button","","matStepperNext",""],["aria-hidden","false","aria-label","Example home icon","fontIcon","skip_next"]],template:function(i,s){1&i&&(t.j41(0,"div",0)(1,"h2",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",2)(5,"button",3),t.bIt("click",function(){return s.selectAllCustomers()}),t.nrm(6,"mat-icon",4),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"button",3),t.bIt("click",function(){return s.deselectAllCustomers()}),t.nrm(10,"mat-icon",5),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"mat-selection-list",6)(14,"mat-list-option",7)(15,"div",8)(16,"p",9),t.EFF(17),t.k0s()()()(),t.j41(18,"mat-selection-list",10),t.mxI("ngModelChange",function(c){return t.DH7(s.selectedCustomers,c)||(s.selectedCustomers=c),c}),t.bIt("ngModelChange",function(c){return s.onCustomerChange(c)}),t.DNE(19,$,4,2,"mat-list-option",11),t.k0s()(),t.j41(20,"div",12)(21,"button",13),t.nrm(22,"mat-icon",14),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.DNE(25,w,4,3,"button",15),t.k0s()),2&i&&(t.R7$(2),t.Lme(" ",t.bMT(3,12,"shoppingList.bulk_actions.customers.tab")," ",s.selectedCustomers.length&&"("+s.selectedCustomers.length+")"," "),t.R7$(5),t.SpI(" ",t.bMT(8,14,"shoppingList.bulk_actions.button.select_all")," "),t.R7$(4),t.SpI(" ",t.bMT(12,16,"shoppingList.bulk_actions.button.deselect_all")," "),t.R7$(3),t.Y8G("selected",!0)("disabled",!0)("value",s.activeCustomer),t.R7$(3),t.JRh(s.activeCustomer.firstName),t.R7$(),t.R50("ngModel",s.selectedCustomers),t.R7$(),t.Y8G("ngForOf",s.customers),t.R7$(4),t.SpI(" ",t.bMT(24,18,"shoppingList.bulk_actions.stepper.previous")," "),t.R7$(2),t.Y8G("ngIf",s.selectedCustomers.length>=0))},dependencies:[l.Sq,l.bT,S.BC,S.vS,M.An,f.$z,m.p6,m.oh,p.F7,p.FR,C.D9],styles:[".subtitle[_ngcontent-%COMP%]{text-align:center}@media screen and (max-width: 768px){.subtitle[_ngcontent-%COMP%]{text-align:left}}.customer-group[_ngcontent-%COMP%]{background-color:#f8f8f8;padding:5px 15px}.customer-group.expanded[_ngcontent-%COMP%]{border-left:4px solid #4BB443;transition:opacity .22s ease}.collapse-grid[_ngcontent-%COMP%]{max-height:0;overflow:hidden;opacity:0;transition:max-height .22s ease,opacity .22s ease}.collapse-grid.open[_ngcontent-%COMP%]{max-height:2000px;opacity:1}.btn-actions-container[_ngcontent-%COMP%]{display:flex;justify-content:center}@media screen and (max-width: 768px){.btn-actions-container[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start;align-items:flex-start}}@supports (display: grid){.collapse-grid[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s ease,opacity .22s ease;opacity:0}
1.collapse-grid.open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1}.collapse-inner[_ngcontent-%COMP%]{overflow:hidden}}"]})}}return n})();var B=r(5951);function Y(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",12),t.bIt("click",function(s){t.eBV(e);const o=t.XpG();return t.Njj(o.onSend(s))}),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"mat-icon",13),t.k0s()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"shoppingList.bulk_actions.stepper.send")," "))}let U=(()=>{class n{constructor(){this.onThirdStepOutput=new t.bkB}onSend(e){this.onThirdStepOutput.emit(this.action)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-assortment-step-actions"]],inputs:{action:"action"},outputs:{onThirdStepOutput:"onThirdStepOutput"},decls:22,vars:15,consts:[[1,"stepper-container"],[1,"subtitle"],[1,"customer-shopping-lists-container"],["role","list"],["role","listitem"],["labelPosition","before",3,"change","value"],["color","primary","aria-hidden","false","aria-label","Example home icon","fontIcon","add_circle"],["color","warn","aria-hidden","false","aria-label","Example home icon","fontIcon","delete"],[1,"d-flex","flex-row","justify-content-space-between","mt-5","mb-5"],["color","primary","mat-flat-button","","matStepperPrevious",""],["aria-hidden","false","aria-label","Example home icon","fontIcon","skip_previous"],["color","primary","mat-flat-button","","matStepperNext","",3,"click",4,"ngIf"],["color","primary","mat-flat-button","","matStepperNext","",3,"click"],["aria-hidden","false","aria-label","Example home icon","fontIcon","send"]],template:function(i,s){1&i&&(t.j41(0,"div",0)(1,"h2",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",2)(5,"mat-list",3)(6,"mat-list-item",4)(7,"mat-radio-button",5),t.bIt("change",function(){return s.action="add"}),t.nrm(8,"mat-icon",6),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"mat-list-item",4)(12,"mat-radio-button",5),t.bIt("change",function(){return s.action="remove"}),t.nrm(13,"mat-icon",7),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()()(),t.j41(16,"div",8)(17,"button",9),t.nrm(18,"mat-icon",10),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.DNE(21,Y,4,3,"button",11),t.k0s()),2&i&&(t.R7$(2),t.SpI(" ",t.bMT(3,7,"shoppingList.bulk_actions.stepper.action.title")," "),t.R7$(5),t.Y8G("value","add"),t.R7$(2),t.SpI(" ",t.bMT(10,9,"shoppingList.bulk_actions.stepper.action.add")," "),t.R7$(3),t.Y8G("value","remove"),t.R7$(2),t.SpI(" ",t.bMT(15,11,"shoppingList.bulk_actions.stepper.action.remove")," "),t.R7$(5),t.SpI(" ",t.bMT(20,13,"shoppingList.bulk_actions.stepper.previous")," "),t.R7$(2),t.Y8G("ngIf",s.action))},dependencies:[l.bT,M.An,f.$z,m.jt,m.YE,B._g,p.F7,p.FR,C.D9],styles:["[_nghost-%COMP%] mat-radio-button{width:100%}[_nghost-%COMP%] mat-radio-button .mdc-form-field{width:100%}[_nghost-%COMP%] mat-radio-button .mdc-form-field label{width:100%;display:flex;justify-content:space-between}[_nghost-%COMP%] mat-radio-button .mdc-form-field label mat-icon{vertical-align:middle}"]})}}return n})();var N=r(81146),X=r(32381),D=r(69076),V=r(83671),z=r(82765),W=r(77899),H=r(18166);function J(n,a){if(1&n&&(t.j41(0,"app-widget-article-wrapper",13),t.nrm(1,"app-widget-article",14),t.k0s()),2&n){const e=a.$implicit,i=t.XpG();t.Y8G("isSearch",!0)("layout",i.layout),t.R7$(),t.Y8G("standalone",!0)("layout",i.layout)("ngClass",i.layout)("articleContainer",i.articleContainerEnum.CONTAINER_SEARCH)("articleShoppingList",e)("article",e.article)("children",e.article.children)}}function Q(n,a){1&n&&(t.j41(0,"button",15),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"mat-icon",16),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"shoppingList.bulk_actions.stepper.next")," "))}let K=(()=>{class n{constructor(e,i,s,o){this.breakpointObserver=e,this.shoppingListService=i,this.filtersService=s,this.searchService=o,this.onFirstStepOutput=new t.bkB,this.selectedArticleShoppingList=[],this.articleContainerEnum=N.tS,this.subscriptions=[],this.myAssortmentActivated=!1,this._mobileWidth="(max-width: 599px)"}ngOnInit(){this.onMobileWidthChange(!0),this.shoppingListService.selectedArticleShoppingList=this.selectedArticleShoppingList,this.subscriptions.push(this.shoppingListService.getSelectedArticleShoppingListState().subscribe(e=>{this.selectedArticleShoppingList=e,this.onFirstStepOutput.emit(this.selectedArticleShoppingList)}),this.breakpointObserver.observe(this._mobileWidth).subscribe(e=>this.onMobileWidthChange(e.matches))),this.onMobileWidthChange(this.breakpointObserver.isMatched(this._mobileWidth)),this.shoppingListService.reset()}
1ngOnDestroy(){this.subscriptions.forEach(e=>{(0,g.hX)(e)||e.unsubscribe()})}onArticleShoppingListChange(e){this.shoppingListService.onArticleShoppingListChange(e.options[0].value,e.options[0].selected)}toggleMyAssortment(){this.myAssortmentActivated=!this.myAssortmentActivated,this.filtersService.setMyAssortment(this.myAssortmentActivated),this.searchService.search()}onMobileWidthChange(e){this.layout=e?"grid":"row"}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(k.QP),t.rXU(X.c),t.rXU(_.dh),t.rXU(_.Sc))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-assortment-step-articles"]],inputs:{selectedArticleShoppingList:"selectedArticleShoppingList"},outputs:{onFirstStepOutput:"onFirstStepOutput"},decls:24,vars:17,consts:[[1,"article-step","d-flex"],[1,"subtitle","mb-10"],[1,"mb-5","mx-5"],[3,"standalone"],[1,"mb-3","mx-5"],["color","primary",3,"change","checked"],[1,"mx-5"],["color","primary",3,"selectionChange"],[3,"layout","standalone"],[1,"selection-container"],[3,"isSearch","layout",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","justify-content-end","mt-5","mb-5"],["color","primary","mat-flat-button","","matStepperNext","",4,"ngIf"],[3,"isSearch","layout"],[3,"standalone","layout","ngClass","articleContainer","articleShoppingList","article","children"],["color","primary","mat-flat-button","","matStepperNext",""],["aria-hidden","false","aria-label","Example home icon","fontIcon","skip_next"]],template:function(i,s){1&i&&(t.j41(0,"div",0)(1,"div")(2,"h2",1),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",2),t.nrm(6,"app-search-bar",3),t.k0s(),t.j41(7,"div",4)(8,"mat-checkbox",5),t.bIt("change",function(){return s.toggleMyAssortment()}),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"div",6)(12,"mat-selection-list",7),t.bIt("selectionChange",function(c){return s.onArticleShoppingListChange(c)}),t.nrm(13,"app-articles-list",8),t.k0s()()(),t.j41(14,"div")(15,"h2",1),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"div",6)(19,"div",9)(20,"mat-selection-list",7),t.bIt("selectionChange",function(c){return s.onArticleShoppingListChange(c)}),t.DNE(21,J,2,9,"app-widget-article-wrapper",10),t.k0s()()()()(),t.j41(22,"div",11),t.DNE(23,Q,4,3,"button",12),t.k0s()),2&i&&(t.R7$(3),t.JRh(t.bMT(4,11,"shoppingList.bulk_actions.stepper.step.articles.title.left")),t.R7$(3),t.Y8G("standalone",!0),t.R7$(2),t.Y8G("checked",s.myAssortmentActivated),t.R7$(),t.SpI(" ",t.bMT(10,13,"search-engine.filters.my-assortment.title")," "),t.R7$(4),t.Y8G("layout",s.layout)("standalone",!0),t.R7$(3),t.JRh(t.bMT(17,15,"shoppingList.bulk_actions.stepper.step.articles.title.right")),t.R7$(3),t.AVh("d-none",!s.selectedArticleShoppingList.length),t.R7$(2),t.Y8G("ngForOf",s.selectedArticleShoppingList),t.R7$(2),t.Y8G("ngIf",s.selectedArticleShoppingList.length>=0))},dependencies:[l.YU,l.Sq,l.bT,D.S,V.D,M.An,f.$z,z.So,m.p6,p.F7,W.L,H.H,C.D9],styles:[".article-step[_ngcontent-%COMP%]{flex-direction:row;width:100%}.article-step[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:10px 10px 25px;width:50%}.article-step[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-right:1px solid rgba(104,104,104,.1)}@media screen and (max-width: 1400px){.article-step[_ngcontent-%COMP%]{flex-direction:column}.article-step[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important}.article-step[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-right:unset;flex-grow:1}}.selection-container[_ngcontent-%COMP%]{width:100%;max-height:880px;overflow-y:auto;border:1px solid rgba(104,104,104,.1);border-radius:4px}.selection-container[_ngcontent-%COMP%] mat-selection-list{padding:0;font-size:14px;position:relative;display:flex;flex-wrap:wrap;flex-grow:1;flex:1 1 auto;touch-action:pan-y!important}"]})}}return n})();var Z=r(95114);const q=["stepper"],d=n=>({count:n}),tt=(n,a)=>({"fa-sort-alpha-up":n,"fa-sort-alpha-down":a}),et=()=>[],nt=()=>["/shopping-lists"];function st(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",11),t.bIt("click",function(){t.eBV(e);const s=t.XpG();return s.sortBy.order="asc"===s.sortBy.order?"desc":"asc",t.Njj(s.sortByLabel())}),t.nrm(1,"i",12),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("disabled",e.isDegradedVersion),t.R7$(),t.Y8G("ngClass",t.l_i(2,tt,"asc"===e.sortBy.order,"desc"===e.sortBy.order))}}function it(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",14)(1,"mat-stepper",15,2)(3,"mat-step",16),t.nI1(4,"translate"),t.j41(5,"app-assortment-step-articles",17),t.bIt("onFirstStepOutput",function(s){t.eBV(e);const o=t.XpG(3);return t.Njj(o.onFirstStepOutput(s))}),t.k0s()(),t.j41(6,"mat-step",16),t.nI1(7,"translate"),t.j41(8,"app-assortment-step-customers",18),t.bIt("onSecondStepOutput",function(s){t.eBV(e);const o=t.XpG(3);return t.Njj(o.onSecondStepOutput(s))}),t.k0s()(),t.j41(9,"mat-step",16),t.nI1(10,"translate"),t.j41(11,"app-assortment-step-actions",19),t.bIt("onThirdStepOutput",function(s){t.eBV(e);const o=t.XpG(3);return t.Njj(o.onThirdStepOutput(s))}),t.k0s()()()()}if(2&n){const e=t.XpG(3);t.R7$(),t.Y8G("orientation",e.stepperOrientation)("linear",!0),t.R7$(2),t.Y8G("label",t.bMT(4,13,"shoppingList.bulk_actions.articles"))("completed",e.firstStep),t.R7$(2),t.Y8G("selectedArticleShoppingList",e.selectedArticleShoppingList),t.R7$(),t.Y8G("label",t.bMT(7,15,"shoppingList.bulk_actions.customers.tab"))("completed",e.secondStep),t.R7$(2),t.Y8G("activeCustomer",e.activeCustomer)("customers",e.customers)("selectedCustomers",e.selectedCustomers),t.R7$(),t.Y8G("label",t.bMT(10,17,"shoppingList.bulk_actions.action"))("completed",e.thirdStep),t.R7$(2),t.Y8G("action",e.selectedAction)}}function ot(n,a){if(1&n&&(t.qex(0),t.DNE(1,it,12,19,"div",13),t.bVm()),2&n){const e=t.XpG(2),i=t.sdS(27);t.R7$(),t.Y8G("ngIf",!e.emptyData)("ngIfElse",i)}}function rt(n,a){if(1&n&&(t.qex(0),t.DNE(1,ot,2,2,"ng-container",10),t.bVm()),2&n){const e=t.XpG(),i=t.sdS(27);t.R7$(),t.Y8G("ngIf",!e.isTerminated)("ngIfElse",i)}}function at(n,a){1&n&&(t.qex(0),t.j41(1,"li"),t.nrm(2,"app-article-placeholder",34),t.k0s(),t.bVm()),2&n&&(t.R7$(2),t.Y8G("ngClass","row"))}function ct(n,a){if(1&n&&(t.j41(0,"div",20)(1,"div",21)(2,"div",22),t.nrm(3,"div",23)(4,"div",23)(5,"div",23),t.k0s(),t.j41(6,"div",24),t.nrm(7,"div")(8,"div")(9,"div")(10,"div"),t.k0s(),t.j41(11,"div",25)(12,"div",26)(13,"div",27),t.nrm(14,"div",28),t.k0s(),t.j41(15,"div",29),t.nrm(16,"div",30),t.j41(17,"ul",31),t.DNE(18,at,3,1,"ng-container",32),t.k0s()()(),t.j41(19,"div",33),t.nrm(20,"div",28),t.k0s()()()()),2&n){const e=t.XpG();t.R7$(18),t.Y8G("ngForOf",t.lJ4(1,et).constructor(e.numberOfItemsPerPage))}}function lt(n,a){1&n&&(t.qex(0),t.j41(1,"h2",38),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",39),t.nI1(5,"translate"),t.nrm(6,"p",39),t.nI1(7,"translate"),t.j41(8,"div",40)(9,"a",41),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.bVm()),2&n&&(t.R7$(2),t.JRh(t.bMT(3,5,"shoppingList.my_assortment_bulk_actions.empty.title")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,7,"shoppingList.my_assortment_bulk_actions.empty.text_1"),t.npT),t.R7$(2),t.Y8G("innerHTML",t.bMT(7,9,"shoppingList.my_assortment_bulk_actions.empty.text_2"),t.npT),t.R7$(3),t.Y8G("routerLink",t.lJ4(13,nt)),t.R7$(),t.SpI(" ",t.bMT(11,11,"shoppingList.my_assortment_bulk_actions.empty.button")," "))}function pt(n,a){if(1&n&&(t.nrm(0,"p",39),t.nI1(1,"translate")),2&n){const e=t.XpG(3);t.Y8G("innerHTML",t.i5U(1,1,"shoppingList.my_assortment_bulk_actions.terminated.text.add",t.eq3(4,d,e.selectedArticleShoppingList.length)),t.npT)}}function mt(n,a){if(1&n&&(t.nrm(0,"p",39),t.nI1(1,"translate")),2&n){const e=t.XpG(3);t.Y8G("innerHTML",t.i5U(1,1,"shoppingList.my_assortment_bulk_actions.terminated.text.remove",t.eq3(4,d,e.selectedArticleShoppingList.length)),t.npT)}}function dt(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"h2",38),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,pt,2,6,"p",42)(5,mt,2,6,"p",42),t.j41(6,"div",40)(7,"a",43),t.bIt("click",function(){t.eBV(e);const s=t.XpG(2);return t.Njj(s.refresh())}),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"a",43),t.bIt("click",function(){t.eBV(e);const s=t.XpG(2);return t.Njj(s.searchInAssortment())}),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.bVm()}if(2&n){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,5,"shoppingList.my_assortment_bulk_actions.terminated.title")),t.R7$(2),t.Y8G("ngIf","add"===e.selectedAction),t.R7$(),t.Y8G("ngIf","remove"===e.selectedAction),t.R7$(3),t.SpI(" ",t.bMT(9,7,"shoppingList.my_assortment_bulk_actions.new.button")," "),t.R7$(3),t.SpI(" ",t.bMT(12,9,"
1shoppingList.my_assortment_bulk_actions.terminated.button")," ")}}function ut(n,a){if(1&n&&(t.j41(0,"div",35)(1,"div",36),t.DNE(2,lt,12,14,"ng-container",37)(3,dt,13,11,"ng-container",37),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.emptyData),t.R7$(),t.Y8G("ngIf",e.isTerminated)}}const gt=[{path:"",data:{pageTitle:"login.page.title"},children:[{path:"bulk-actions",canActivate:[I.p,P.z,A.K],component:(()=>{class n{constructor(e,i,s,o,c,v,x,O,St){this.accountService=e,this.activeCustomerService=i,this.blockingUIService=s,this.breakpointObserver=o,this.filtersService=c,this.http=v,this.router=x,this.searchService=O,this.snackbar=St,this.customers=[],this.emptyData=!0,this.isTerminated=!1,this.numberOfItemsPerPage=b.c.paginationDefaultSize,this.selectedArticleShoppingList=[],this.selectedCustomers=[],this.sortBy={type:"manual",order:"asc"},this.firstStep=!0,this.goToMyAssortment=!1,this.secondStep=!1,this.thirdStep=!1,this.stepperOrientation="horizontal",this.subscriptions=[],this.user=null,this.isDegradedVersion=b.c.degradedVersion}ngOnInit(){this.isLoading=!0,this.filtersService.setIsDiscountPage(!1),this.searchService.reset(),this.loadAll()}ngOnDestroy(){this.goToMyAssortment||this.searchService.reset(),this.subscriptions.forEach(e=>{(0,g.hX)(e)||e.unsubscribe()})}sortByLabel(){this.customers.sort((e,i)=>"asc"===this.sortBy.order?e.firstName.localeCompare(i.firstName):i.firstName.localeCompare(e.firstName))}loadAll(){this.subscriptions.push(this.breakpointObserver.observe("(max-width: 599px)").subscribe(e=>this.stepperOrientation=e.matches?"vertical":"horizontal"),this.accountService.getAuthenticationState().pipe((0,T.n)(e=>(this.user=e,(0,L.z)({activeCustomer:this.activeCustomerService.getActiveCustomerState(),customers:this.activeCustomerService.getCustomerList(),customerUserRoles:this.accountService.getCustomerUserRoles(),myAssortmentCustomers:this.http.get(b.c.apiUrl+h.$hU.CUSTOMERS_URL+"/my_assortment")}))),(0,R.T)(({activeCustomer:e,customers:i,customerUserRoles:s,myAssortmentCustomers:o})=>(this.activeCustomer=e,{adminCustomers:i.filter(v=>{if(v.id===e?.id)return!1;const x=s.find(O=>(0,h.Y$M)(O.customer)===v.id);return x&&x.hasRole(h.q$5.Roles.admin)}),myAssortmentCustomers:o}))).subscribe(({adminCustomers:e,myAssortmentCustomers:i})=>{this.customers=e,this.selectedCustomers=e.filter(s=>i.some(o=>o.id===s.id)),this.selectedCustomers.length>=0&&(this.secondStep=!0),this.emptyData=!e.length,this.isLoading=!1}))}onFirstStepOutput(e){this.selectedArticleShoppingList=e,this.firstStep=e.length>=0}onSecondStepOutput(e){this.selectedCustomers=e,this.secondStep=e.length>=0}onThirdStepOutput(e){this.selectedAction=e;const i={action:this.selectedAction,customers:this.selectedCustomers.map(o=>o.id),articleShoppingLists:this.selectedArticleShoppingList.map(o=>({articleWeb:"/article_webs/"+o.article.id,unit:"/units/"+o.unit.id,weightValue:o.weightValue??null,hasWaste:o.hasWaste??null,maturationValue:o.maturationValue??null}))};this.blockingUIService.open(),this.http.post(b.c.apiUrl+"my_assortment/bulk_actions",i).subscribe(o=>{this.onSuccess(o)},o=>{this.onError(o)})}onSuccess(e){if(!e)return this.snackbar.open("shoppingList.my_assortment_bulk_actions.snackbar.error","Error"),void this.blockingUIService.close();this.isTerminated=!0,this.snackbar.open("shoppingList.my_assortment_bulk_actions.snackbar.success"),this.blockingUIService.close()}onError(e){this.blockingUIService.close(),console.error(e),this.snackbar.open("shoppingList.my_assortment_bulk_actions.snackbar.error","Error")}refresh(){this.firstStep=!1,this.secondStep=!1,this.thirdStep=!1,this.selectedArticleShoppingList=[],this.selectedAction=void 0,this.isTerminated=!1,this.searchService.reset()}searchInAssortment(){this.goToMyAssortment=!0,this.filtersService.setIsMyAssortmentPage(!0),this.router.navigate(["/catalog/my-assortment"])}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(h.Die),t.rXU(F.i),t.rXU(g.jC),t.rXU(k.QP),t.rXU(_.dh),t.rXU(j.Qq),t.rXU(u.Ix),t.rXU(_.Sc),t.rXU(g.vH))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-bulk-actions"]],viewQuery:function(i,s){if(1&i&&t.GBs(q,5),2&i){let o;t.mGM(o=t.lsd())&&(s.myStepper=o.first)}},decls:28,vars:33,consts:[["loading",""],["terminatedOrEmpty",""],["stepper",""],[1,"content-header"],[1,"d-flex","justify-content-space-between","items-center"],[1,"title"],["mat-icon-button","","matTooltipPosition","above",1,"sort-button",3,"disabled"],[1,"bulk-counts"],[1,"bulk-item"],[1,"label"],[4,"ngIf","ngIfElse"],["mat-icon-button","","matTooltipPosition","above",1,"sort-button",3,"click","disabled"],[1,"fas","fa-lg",3,"ngClass"],["class","custom-step-import",4,"ngIf","ngIfElse"],[1,"custom-step-import"],[3,"orientation","linear"],[3,"label","completed"],[3,"onFirstStepOutput","selectedArticleShoppingList"],[3,"onSecondStepOutput","activeCustomer","customers","selectedCustomers"],[3,"onThirdStepOutput","action"],[1,"css-placeholder","mt-0"],[1,"w-100","bg-light","br-1px"],[1,"slider-template","d-flex","align-items-center","justify-content-space-between"],[1,"h-70px","ml-3","mr-3","w-150px","bg-dark","br-4px"],[1,"lds-ellipsis",2,"position","fixed","top","50%","left","50%","transform","translate(-50%, -50%)","z-index","1"],[1,"d-flex","placeholder-cols","mt-2","h-800px"],[1,"mt-3"],[1,"d-flex","justify-content-center"],[1,"h-20px","w-150px","bg-dark","br-4px"],[1,"w-100"],[1,"h-30px","w-100","bg-dark","br-10px","mt-8","placeholder-search"],[1,"mt-7"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","mt-3"],[3,"ngClass"],[1,"articles-list-empty","text-center"],[1,"inner"],[4,"ngIf"],[1,"title-2"],[3,"innerHTML"],[1,"button-list"],[1,"btn","btn--primary",3,"routerLink"],[3,"innerHTML",4,"ngIf"],[1,"btn","btn--primary",3,"click"]],template:function(i,s){if(1&i&&(t.qex(0),t.j41(1,"header",3)(2,"div",4)(3,"h2",5),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,st,2,5,"button",6),t.k0s(),t.j41(7,"div",7)(8,"p",8)(9,"span",9),t.EFF(10),t.nI1(11,"translate"),t.nI1(12,"transplural"),t.k0s()(),t.j41(13,"p",8)(14,"span",9),t.EFF(15),t.nI1(16,"translate"),t.nI1(17,"transplural"),t.k0s()(),t.j41(18,"p",8)(19,"span",9),t.EFF(20),t.nI1(21,"translate"),t.nI1(22,"transplural"),t.k0s()()()(),t.DNE(23,rt,2,2,"ng-container",10),t.bVm(),t.DNE(24,ct,21,2,"ng-template",null,0,t.C5r)(26,ut,4,2,"ng-template",null,1,t.C5r)),2&i){const o=t.sdS(25);t.R7$(4),t.SpI(" ",t.bMT(5,7,"shoppingList.my_assortment_bulk_actions.page.title")," "),t.R7$(2),t.vxM(s.isLoading?-1:6),t.R7$(4),t.SpI(" ",t.i5U(12,12,t.i5U(11,9,"shoppingList.bulk_actions.count.customers",t.eq3(27,d,s.customers.length)),s.customers.length)," "),t.R7$(5),t.SpI(" ",t.i5U(17,18,t.i5U(16,15,"shoppingList.bulk_actions.count.articles",t.eq3(29,d,s.selectedArticleShoppingList.length)),s.selectedArticleShoppingList.length)," "),t.R7$(5),t.SpI(" ",t.i5U(22,24,t.i5U(21,21,"shoppingList.my_assortment_bulk_actions.count.selected_customers",t.eq3(31,d,s.selectedCustomers.length)),s.selectedCustomers.length)," "),t.R7$(3),t.Y8G("ngIf",!s.isLoading)("ngIfElse",o)}},dependencies:[l.YU,l.Sq,l.bT,E.n,f.iY,p.V5,p.M6,u.Wk,G,U,K,Z.R,C.D9],styles:[".content-header[_ngcontent-%COMP%]{position:relative;padding-bottom:10px;border-bottom:1px solid rgba(104,104,104,.1);margin-bottom:20px}.content-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:13px;color:#4bb443;font-weight:700;line-height:30px}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:10px;align-self:flex-start;padding:8px 16px;border:none;border-radius:10px;font-size:16px;font-weight:700;line-height:24px;text-decoration:none;cursor:pointer;transition:background-color .2s ease}@media (min-width: 768px){.btn[_ngcontent-%COMP%]{padding:11px 22px}}.btn--primary[_ngcontent-%COMP%]{background:#4bb443;color:#fff}.btn--primary[_ngcontent-%COMP%]:hover{background:#3c8f35}
1.btn--fixed[_ngcontent-%COMP%]{width:200px}.btn--full[_ngcontent-%COMP%]{width:100%}.btn--large[_ngcontent-%COMP%]{padding:12px 24px;font-size:18px}@media (min-width: 768px){.btn--large[_ngcontent-%COMP%]{font-size:20px}}.btn--rounded[_ngcontent-%COMP%]{border-radius:9999px}.btn--disabled[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:disabled{background:#ccc;cursor:not-allowed;pointer-events:none}[_nghost-%COMP%] .stepper-container{max-width:800px;margin:0 auto;padding-top:25px;padding-bottom:35px}[_nghost-%COMP%] .title{font-weight:700}[_nghost-%COMP%] .subtitle{text-align:center;text-decoration:underline;margin-bottom:10px}[_nghost-%COMP%] .customer-shopping-lists-container{margin-top:20px;border-bottom:1px solid rgba(104,104,104,.1)}.articles-list-empty[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:20px}.articles-list-empty[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:20px;background:#fff;box-shadow:0 3px 8px #0000000d}.articles-list-empty[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] h2.title-2[_ngcontent-%COMP%]{font-size:22px;margin-bottom:22px;font-weight:600}.articles-list-empty[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:13px;font-weight:500;margin-bottom:1em}.articles-list-empty[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p{margin-bottom:1.5em}.articles-list-empty[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ul{list-style:disc outside;padding-left:11px}.articles-list-empty[_ngcontent-%COMP%] div[_ngcontent-%COMP%] li{margin-bottom:.5em}.articles-list-empty[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span{color:#4bb443}.articles-list-empty[_ngcontent-%COMP%] .button-list[_ngcontent-%COMP%]{display:flex;flex-direction:row}.articles-list-empty[_ngcontent-%COMP%] .button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.articles-list-empty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#4bb443;font-weight:500;cursor:pointer}.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%]{flex-direction:row;width:100%}.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:10px 30px 25px;width:50%}.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-right:1px solid rgba(104,104,104,.1)}@media screen and (max-width: 1400px){.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%]{flex-direction:column}.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important}.css-placeholder[_ngcontent-%COMP%] .placeholder-cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-right:unset;flex-grow:1}}.css-placeholder[_ngcontent-%COMP%] .placeholder-search[_ngcontent-%COMP%]{height:48px;border-radius:24px}.button-list[_ngcontent-%COMP%]{display:flex;flex-direction:row}.button-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.button-list[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{align-self:auto}.bulk-counts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:12px}.bulk-item[_ngcontent-%COMP%]{margin:0;padding:12px 14px;border-radius:12px;background:#f7f7fb;border:1px solid rgba(0,0,0,.08);display:flex;align-items:baseline;gap:10px}.count[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:800;line-height:1;color:#686868;white-space:nowrap}.label[_ngcontent-%COMP%]{font-size:.95rem;color:#14161ab3;line-height:1.2}@media (max-width: 640px){.bulk-counts[_ngcontent-%COMP%]{grid-template-columns:1fr;padding:8px}.bulk-item[_ngcontent-%COMP%]{align-items:center;justify-content:space-between}.count[_ngcontent-%COMP%]{font-size:1.4rem}.label[_ngcontent-%COMP%]{text-align:right;max-width:70%}}"]})}}return n})(),data:{pageTitle:"shoppingList.bulk_actions.page.title"}}]}];let bt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[u.iI.forChild(gt),u.iI]})}}return n})();var _t=r(81391),ft=r(87579),Ct=r(78970),vt=r(60850);let xt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[l.MD,S.YN,_t.ad,ft.G,bt,vt.jL,Ct.SearchEngineModule]})}}return n})()}}]);
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.