1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4259],{4259:(ce,M,a)=>{a.r(M),a.d(M,{AllQueuesModule:()=>pe});var m=a(316),S=a(6227),d=a(7957),h=a(7430),V=a(2197),F=a(3769),e=a(8559),C=a(5520),v=a(7243),u=a(7659),x=a(496),N=a(3903),k=a(7633),X=a(259),$=a(5835);function j(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",17)(1,"app-remote-dropdown",5),e.bIt("onChange",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.onFiltersValueChange(s))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("filter",t.userFilerConfig)("isIndividual",!0)("config",t.filtersConfig)}}function q(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",18)(1,"app-text-input",7),e.bIt("onChange",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.onQueueSizeChange(s))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("filter",t.filter.queue_size)}}function D(n,r){1&n&&e.nrm(0,"span",19)}let A=(()=>{class n{constructor(t,i,s,o){this.activeModal=t,this.stylistsService=i,this.toastService=s,this.elmRef=o,this.filtersConfig={limitSelection:300,badgeShowLimit:8},this.userFilerConfig=S.cloneDeep(d.LC.USER),this.productFilerConfig=S.cloneDeep(d.LC.PRODUCT),this.loading=!1,this.filter={date:{label:"Text Date",filterType:h.RJ.datepicker,filterId:"text_date"},text:{label:"Additional Text",filterType:h.RJ.textinput,filterId:"additional_text"},queue_size:{label:"Queue Size",filterType:h.RJ.textinput,filterId:"queue_size",data:[1]}},this.textDate=null,this.additionalText=null,this.queueSize=1,this.close=new e.bkB,this.usersLoading=!1,this.productsLoading=!1,this.initialLoading=!0,this.hideUsersInput=!1}ngAfterViewInit(){this.hideUsersInput?this.productFilter=this.multiTagInputs.first:(this.userFilter=this.multiTagInputs.first,this.productFilter=this.multiTagInputs.last)}onFiltersValueChange({value:t,dataKey:i}){i===this.userFilerConfig.dataKey?this.selectedUsers=t||[]:this.selectedProducts=t||[]}onDateChange(t){this.textDate=t.value}onQueueSizeChange(t){this.queueSize=parseInt(t.value),this.queueSize=isNaN(this.queueSize)?0:this.queueSize}addToQueue(){const i=this.selectedProducts;this.selectedUsers.length*i.length>200?this.toastService.error({message:"Please don't exceed the 200 user queues limit"}):(this.loading=!0,this.stylistsService.addToUsersQueues({users:this.selectedUsers.map(s=>s.id),products:i.map(s=>s.id),text_date:this.textDate,additional_text:this.additionalText,queue_size:this.queueSize}).subscribe(s=>{(!s.duplicates||s.duplicates.length!==i.length)&&this.toastService.success({message:"Products has been added to the user(s) queue."}),s.duplicates&&s.duplicates.length&&this.toastService.error({message:"Few products hasn't been added to avoid duplicates."}),this.activeModal.close(!0),this.loading=!1},s=>{const o=(0,V.Yf)(s);this.toastService.error({message:o}),this.loading=!1}))}isDisabledAddtoQueue(){return this.loading||!(this.selectedUsers&&this.selectedUsers.length)||!this.selectedProducts.length&&this.queueSize<1}onClose(){this.activeModal.dismiss("Cross click")}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(C.Lw),e.rXU(v.L9),e.rXU(u.fw),e.rXU(e.aKT))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-add-all-queues-to-queue"]],viewQuery:function(i,s){if(1&i&&e.GBs(F.T,5),2&i){let o;e.mGM(o=e.lsd())&&(s.multiTagInputs=o)}},inputs:{usersLoading:"usersLoading"},outputs:{close:"close"},decls:20,vars:11,consts:[[1,"modal-content"],["title","Add to Queue",3,"close"],[1,"modal-body","p-3","pt-4"],["class","filters-form mt-1",4,"ngIf"],[1,"filters-form","mt-4"],[3,"onChange","filter","isIndividual","config"],[1,"filters-form","mt-4","all-queues"],[3,"onChange","filter"],[1,"input-group","form-group-no-border","filter-item","d-flex"],[1,"label","text-end",3,"innerText"],["rows","4",1,"pl-2","w-200px",3,"ngModelChange","ngModel"],["class","filters-form mt-4 mb-2",4,"ngIf"],[1,"modal-footer","py-2"],[1,"d-flex","justify-content-end"],[1,"btn","btn-default","me-2",3,"click","disabled"],[1,"btn","btn-danger","m-0",3,"click","disabled"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[1,"filters-form","mt-1"],[1,"filters-form","mt-4","mb-2"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(i,s){1&i&&(e.j41(0,"div",0)(1,"q-modal-header",1),e.bIt("close",function(){return s.onClose()}),e.k0s(),e.j41(2,"div",2),e.DNE(3,j,2,3,"div",3),e.j41(4,"div",4)(5,"app-remote-dropdown",5),e.bIt("onChange",function(l){return s.onFiltersValueChange(l)}),e.k0s()(),e.j41(6,"div",6)(7,"app-datepicker",7),e.bIt("onChange",function(l){return s.onDateChange(l)}),e.k0s()(),e.j41(8,"div",4)(9,"div",8),e.nrm(10,"label",9),e.j41(11,"textarea",10),e.mxI("ngModelChange",function(l){return e.DH7(s.additionalText,l)||(s.additionalText=l),l}),e.k0s()()(),e.DNE(12,q,2,1,"div",11),e.k0s(),e.j41(13,"div",12)(14,"div",13)(15,"button",14),e.bIt("click",function(){return s.onClose()}),e.EFF(16," Close "),e.k0s(),e.j41(17,"button",15),e.bIt("click",function(){return s.addToQueue()}),e.DNE(18,D,1,0,"span",16),e.EFF(19," Add to Queue(s) "),e.k0s()()()()),2&i&&(e.R7$(3),e.Y8G("ngIf",!s.hideUsersInput),e.R7$(2),e.Y8G("filter",s.productFilerConfig)("isIndividual",!0)("config",s.filtersConfig),e.R7$(2),e.Y8G("filter",s.filter.date),e.R7$(3),e.Y8G("innerText",s.filter.text.label),e.R7$(),e.R50("ngModel",s.additionalText),e.R7$(),e.Y8G("ngIf",!s.selectedProducts.length),e.R7$(3),e.Y8G("disabled",s.loading),e.R7$(2),e.Y8G("disabled",s.isDisabledAddtoQueue()),e.R7$(),e.Y8G("ngIf",s.loading))},dependencies:[m.bT,x.me,x.BC,x.vS,N.lp,k.F,X.O,$.f],styles:["[_nghost-%COMP%] app-dropdown ngb-dropdown, [_nghost-%COMP%] app-remote-dropdown ngb-dropdown{width:calc(100% - 8em)!important}[_nghost-%COMP%] app-remote-dropdown[disabled=true]{pointer-events:none;opacity:.5}[_nghost-%COMP%] .c-btn{min-height:35px!important}[_nghost-%COMP%] .label{flex-basis:8em;text-align:left!important}[_nghost-%COMP%] button.close{outline:none!important}[_nghost-%COMP%] .filters-form{width:calc(79% + 8em)!important;margin:auto}[_nghost-%COMP%] .filters-form input{z-index:2}[_nghost-%COMP%] .filters-form app-dropdown>div, [_nghost-%COMP%] .filters-form app-remote-dropdown>div, [_nghost-%COMP%] .filters-form app-datepicker>div, [_nghost-%COMP%] .filters-form app-text-input>div{justify-content:flex-start!important}[_nghost-%COMP%] .filters-form app-checkbox{flex-basis:12em;margin-left:20px}[_nghost-%COMP%] .filters-form app-checkbox>div{flex-direction:row-reverse}[_nghost-%COMP%] .filters-form app-checkbox>div>div{width:40px}[_nghost-%COMP%] .filters-form app-datepicker{width:100%}[_nghost-%COMP%] .filters-form app-datepicker .datepicker{width:75%}[_nghost-%COMP%] .filters-form app-datepicker .datepicker>input{width:100%;height:35px!important}[_nghost-%COMP%] .filters-form app-datepicker .datepicker .w-200px{width:100%!important}[_nghost-%COMP%] .filters-form ngb-timepicker input{height:35px!important}[_nghost-%COMP%] .filters-form scheduled-at .ngb-timepicker-section{width:200
1px}[_nghost-%COMP%] .filters-form .filter-item>label{margin-top:auto;margin-bottom:auto}[_nghost-%COMP%] .filters-form .filter-item>input{padding:.7em .5em}[_nghost-%COMP%] .filters-form .filter-item i.close-icon{display:none}[_nghost-%COMP%] .filters-form .filter-item .w-200px{width:calc(100% - 9.3rem)!important}[_nghost-%COMP%] .filters-form .filter-item .w-200px, [_nghost-%COMP%] .filters-form ngb-dropdown, [_nghost-%COMP%] .filters-form .datepicker>input, [_nghost-%COMP%] .filters-form ngb-timepicker input, [_nghost-%COMP%] .filters-form .q-control-size>*{border:1px solid #ccc!important;border-radius:4px!important;box-sizing:border-box;min-height:35px!important;background-color:#f4f3f1!important;box-shadow:0 .1rem .2rem #00000028!important}[_nghost-%COMP%] .filters-form q-editor .w-200px>textarea, [_nghost-%COMP%] .filters-form q-editor .grey-border>textarea{border-radius:4px 4px 0 0!important;border-bottom:1px solid #ccc!important}[_nghost-%COMP%] .filters-form q-editor .w-200px app-input-panel, [_nghost-%COMP%] .filters-form q-editor .w-200px app-input-panel>.input-panel, [_nghost-%COMP%] .filters-form q-editor .grey-border app-input-panel, [_nghost-%COMP%] .filters-form q-editor .grey-border app-input-panel>.input-panel{border-radius:4px!important}[_nghost-%COMP%] .readonly-view{opacity:.7}[_nghost-%COMP%] app-remote-dropdown ngb-dropdown{width:calc(100% - 8em)!important}[_nghost-%COMP%] app-datepicker .datepicker{width:calc(100% - 9.3em)!important}"]})}}return n})();var T=a(7683),g=a(9188),B=a(4398),Y=a(9844),L=a(5657),E=a(1561),z=a(6863),K=a(7269),_=a(2166),Q=a(3729),p=a(7799),I=a(565),y=a(3664);class c extends z.v{constructor(r,t,i,s,o,l){super(i,s),this.stylistsService=r,this.router=t,this.deviceService=i,this.authService=s,this.toastService=o,this.modalService=l,this.filtered={},this.queuesForSingleUser=!1,this.filterRolesLoaded=!1,this.selectedUsers=[],this.selectedUserName=null}ngOnInit(){super.ngOnInit()}onInit(){this.getFiltersData(this.stylistsService),this.filterRolesLoaded=!0}openLink(r){E.Q.openLink(r.affiliate_link)}navigateTo(r){window.open(`/console/all-queues/${r.uid}`,"_blank")}onFilterValueChange(){this.getViewTableComponent().filters=this.filtered,this.getViewTableComponent().setPage({offset:0})}isEditable(r){return!r.published&&!r.sent}onTextDateUpdate(r,t){this.onQueueUpdated(t,"text_date",r,{text_date:r})}onAdditionalTextUpdate(r,t){this.onQueueUpdated(t,"additional_text",r,{additional_text:r,text_date:t.text_date})}onMediaUrlUpdate(r,t){this.onQueueUpdated(t,"media_url",r,{media_url:r})}onProductIdUpdate(r,t){this.onQueueUpdated(t,"product_id",r,{product_id:r,uid:t.uid})}onUIDUpdate(r,t){this.onQueueUpdated(t,"uid",r,{product_id:t.product_id,uid:r})}onQueueUpdated(r,t,i,s){const o="product_id"===t?this.onFilterValueChange.bind(this):null;(0,L.C)(this.stylistsService,this.toastService,{queue:r,field:t,nvalue:i,data:s},o)}onProductPriceUpdate(r,t){(0,Q.L5)(this.stylistsService,this.toastService,this.getViewTableComponent(),r,t)}onAvailabilityUpdate(r,t){(0,Q.in)(this.stylistsService,this.toastService,this.getViewTableComponent(),r,t)}onBucketUpdate(r,t){(0,Q.hT)(this.stylistsService,this.toastService,this.getViewTableComponent(),r,t)}onDeleteMenuClick(){if(this.getViewTableComponent().selected.length){const r=this.modalService.open(_.B,{centered:!0});r.componentInstance.buttons=[{classes:"btn-danger",type:_.e.CONFIRM}],r.componentInstance.message="Are you sure to delete these queue(s)?",r.componentInstance.note="Please note that Published Or Sent queues will not be deleted.",r.result.then(t=>{if(t.type===_.e.CONFIRM){const i=this.getViewTableComponent().selected.filter(s=>!s.sent&&!s.published).map(s=>s.text_id);i.length?this.stylistsService.deleteQueue(i).subscribe(s=>{this.toastService.success({message:"Queue(s) has been deleted permanently"}),this.getViewTableComponent().setPage({offset:0}),this.getViewTableComponent().selected=[]},s=>{const o=(0,V.Yf)(s);this.toastService.error({message:o})}):this.toastService.error({message:"Please select queue(s) which are unsent or unpublished"})}},t=>{})}else this.toastService.error({message:"Please select queue(s) to delete"})}onAddMenuClick(){const r=this.modalService.open(A,{centered:!0,size:"lg"});r.componentInstance.selectedProducts=this.getViewTableComponent().selected,this.queuesForSingleUser&&(r.componentInstance.selectedUsers=this.selectedUsers,r.componentInstance.hideUsersInput=!0),r.result.then(t=>{t&&(this.getViewTableComponent().setPage({offset:0}),this.getViewTableComponent().selected=[])},t=>{})}getSentView(r){return this.getViewFor(r.sent)}getPublishedView(r){return this.getViewFor(r.published)}getViewFor(r){return r?'<div class="text-success"><i class="bi bi-check2"></i></div>':""}static{this.\u0275fac=function(t){return new(t||c)(e.rXU(v.L9),e.rXU(p.Ix),e.rXU(I.Kg),e.rXU(y.u),e.rXU(u.fw),e.rXU(C.Bq))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["ng-component"]],features:[e.Vt3],decls:0,vars:0,template:function(t,i){},encapsulation:2})}}function J(n,r){if(1&n&&e.nrm(0,"uikit-breadcrumb",7),2&n){const t=e.XpG();e.Y8G("items",t.breadcrumbItems)}}function Z(n,r){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"h2",10),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",t.selectedUserName," ")}}function H(n,r){if(1&n){const t=e.RV6();e.j41(0,"app-filters",12),e.bIt("valueChange",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.onFilterValueChange())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("filters",t.filters)("filtered",t.filtered)("isAlwaysCollapsible",!0)("retainValues",t.config.filtersValueRetain||!1)("filterId",t.filterId)}}(0,B.Cg)([(0,K.S)(Y.vQ.DEBOUNCE_INTERVAL)],c.prototype,"onFilterValueChange",null);let O=(()=>{class n extends c{constructor(t,i,s,o,l,b){super(i,s,t,o,l,b),this.deviceService=t,this.stylistsService=i,this.router=s,this.authService=o,this.toastService=l,this.modalService=b,this.config={url:"stylist/users/all-queues",dataKey:"queues",selection:!0,page:new T.xf,columns:(0,d.Vc)(this).filter(f=>!["last_stock_check"].includes(f.name)),noContentMessage:"No Queues found",contextMenuConfig:(0,d.hl)(this),filtersValueRetain:!0},this.filterId="all-user-queues",this.showBreadcrumb=!0,this.breadcrumbItems=[{label:"Queues"},{label:"All Queues"}],this.config.page.pageNumber=0,this.filters=(0,d.yO)(this)}ngOnInit(){super.ngOnInit()}postFirebaseAuth(){if(this.isAdmin){const t=JSON.parse(JSON.stringify(d.ZU)),i=JSON.parse(JSON.stringify(d.uG));this.filters.push(...t,...i)}super.onInit()}getViewTableComponent(){return this.viewTableComponent}getNameOfSelectedUser(){return""}usersKey(t){return`${t.uid} - ${t.first_name} ${t.last_name||""}`}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(I.Kg),e.rXU(v.L9),e.rXU(p.Ix),e.rXU(y.u),e.rXU(u.fw),e.rXU(C.Bq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-all-users-queues"]],viewQuery:function(i,s){if(1&i&&e.GBs(g.NV,5),2&i){let o;e.mGM(o=e.lsd())&&(s.viewTableComponent=o.first)}},features:[e.Vt3],decls:7,vars:4,consts:[[1,"container-fluid","non-transparent-header","px-0"],[3,"items",4,"ngIf"],[1,"row","g-0"],["class","author text-center w-100 q-page-header",4,"ngIf"],["class","w-100 always-collapsible-filter card card-plain mb-0 p-0",3,"filters","filtered","isAlwaysCollapsible","retainValues","filterId","valueChange",4,"ngIf"],[1,"mt-2","w-100","q-page-container","card","card-plain","mb-0","p-0"],[3,"config"],[3,"items"],[1,"author","text-center","w-100","q-page-header"],[1,"q-page-header-inner"],[1,"card-title","q-page-header-title","mt-3"],[1,"w-80","underline-text-dark"],[1,"w-100","always-collapsible-filter","card","card-plain","mb-0","p-0",3,"valueChange","filters","filtered","isAlwaysCollapsible","retainValues","filterId"]],template:function(i,s){1&i&&(e.j41(0,"div",0),e.DNE(1,J,1,1,"uikit-breadcrumb",1),e.j41(2,"div",2),e.DNE(3,Z,5,1,"div",3)(4,H,1,5,"app-filters",4),e.j41(5,"div",5),e.nrm(6,"app-view-table",6),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("ngIf",s.showBreadcrumb),e.R7$(2),e.Y8G("ngIf",s.isDesktop&&s.queuesForSingleUser&&s.selectedUserName),e.R7$(),e.Y8G("ngIf",s.viewTableComponent&&s.filterRolesLoaded),e.R7$(2),e.Y8G("config",s.config))},dependencies:[m.bT,g.NV,h.Z1,u.rm]})}}return n})();var W=a(8045),P=a(6861);function ee(n,r){if(1&n&&e.nrm(0,"uikit-breadcrumb",7),2&n){const t=e.XpG();e.Y8G("items",t.breadcrumbItems)}}function te(n,r){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"h2",10),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",t.selectedUserName," ")}}function se(n,r){if(1&n){const t=e.RV6();e.j41(0,"app-filters",12),e.bIt("valueChange",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.onFilterValueChange())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("filters",t.filters)("filtered",t.filtered)("isAlwaysCollapsible",!0)("retainValues",t.config.filtersValueRetain||!1)("filterId",t.filterId)}}let G=(()=>{class n extends c{constructor(t,i,s,o,l,b,f,U){super(i,o,t,l,f,U),this.deviceService=t,this.stylistsService=i,this.route=s,this.router=o,this.authService=l,this.appService=b,this.toastService=f,this.modalService=U,this.config={url:"stylist/users/all-queues",dataKey:"queues",page:new T.xf,columns:(0,d.Vc)(this).filter(w=>!["UID","Name"].includes(w.name)),selection:!0,noContentMessage:"No Queues found",contextMenuConfig:(0,d.kB)(this),tableId:"qatch.c
1olumns./stylists/all-queues/person",onDataLoad:this.getNameOfSelectedUser.bind(this)},this.filterId="single-users-queues",this.showBreadcrumb=!1,this.breadcrumbItems=[{label:"Queues"},{label:"Single User Queues"}],this.queuesForSingleUser=!0,this.filters=JSON.parse(JSON.stringify(d.N$)),this.route.params.subscribe(w=>{this.config.url=`stylist/users/${w.id}/all-queues`,this.config.page.pageNumber=0,this.selectedUsers.push({uid:w.id})})}ngOnInit(){super.ngOnInit()}postFirebaseAuth(){super.onInit()}getViewTableComponent(){return this.viewTableComponent}getNameOfSelectedUser(t){this.user=t[0],this.selectedUserName=`${this.user.uid} - ${this.user.first_name||""} ${this.user.last_name||""}`,this.appService.setTitle(this.selectedUserName)}showAdditionalInfo(t){const i=this.modalService.open(W.m,{centered:!0,size:"lg",windowClass:"app-stylists-detail"});i.componentInstance.user=this.user,i.result.then(s=>{},s=>{})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(I.Kg),e.rXU(v.L9),e.rXU(p.nX),e.rXU(p.Ix),e.rXU(y.u),e.rXU(P.d),e.rXU(u.fw),e.rXU(C.Bq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-single-user-queues"]],viewQuery:function(i,s){if(1&i&&e.GBs(g.NV,5),2&i){let o;e.mGM(o=e.lsd())&&(s.viewTableComponent=o.first)}},features:[e.Vt3],decls:7,vars:4,consts:[[1,"container-fluid","non-transparent-header","px-0"],[3,"items",4,"ngIf"],[1,"row","g-0"],["class","author text-center w-100 q-page-header",4,"ngIf"],["class","w-100 always-collapsible-filter card card-plain mb-0 p-0",3,"filters","filtered","isAlwaysCollapsible","retainValues","filterId","valueChange",4,"ngIf"],[1,"mt-2","w-100","q-page-container","card","card-plain","mb-0","p-0"],[3,"config"],[3,"items"],[1,"author","text-center","w-100","q-page-header"],[1,"q-page-header-inner"],[1,"card-title","q-page-header-title","mt-3"],[1,"w-80","underline-text-dark"],[1,"w-100","always-collapsible-filter","card","card-plain","mb-0","p-0",3,"valueChange","filters","filtered","isAlwaysCollapsible","retainValues","filterId"]],template:function(i,s){1&i&&(e.j41(0,"div",0),e.DNE(1,ee,1,1,"uikit-breadcrumb",1),e.j41(2,"div",2),e.DNE(3,te,5,1,"div",3)(4,se,1,5,"app-filters",4),e.j41(5,"div",5),e.nrm(6,"app-view-table",6),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("ngIf",s.showBreadcrumb),e.R7$(2),e.Y8G("ngIf",s.isDesktop&&s.queuesForSingleUser&&s.selectedUserName),e.R7$(),e.Y8G("ngIf",s.viewTableComponent&&s.filterRolesLoaded),e.R7$(2),e.Y8G("config",s.config))},dependencies:[m.bT,g.NV,h.Z1,u.rm]})}}return n})();function ie(n,r){if(1&n&&e.nrm(0,"uikit-breadcrumb",7),2&n){const t=e.XpG();e.Y8G("items",t.breadcrumbItems)}}function ne(n,r){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"h2",10),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",t.selectedUserName," ")}}function re(n,r){if(1&n){const t=e.RV6();e.j41(0,"app-filters",12),e.bIt("valueChange",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.onFilterValueChange())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("filters",t.filters)("filtered",t.filtered)("isAlwaysCollapsible",!0)("retainValues",t.config.filtersValueRetain||!1)("filterId",t.filterId)}}const oe=[{path:"",component:O,data:{title:"All Queues"}},{path:"todays",component:(()=>{class n extends c{constructor(t,i,s,o,l,b,f,U){super(i,o,t,l,f,U),this.deviceService=t,this.stylistsService=i,this.route=s,this.router=o,this.authService=l,this.appService=b,this.toastService=f,this.modalService=U,this.config={dataKey:"queues",page:new T.xf,columns:(0,d.Fo)(this),selection:!0,noContentMessage:"Apply any filter or sort on table to load the products.",filtersValueRetain:!0,onDataLoad:()=>{this.config.noContentMessage="No Queues found"},contextMenuConfig:{...(0,d.hl)(this),gridHeaderLabel:"Today's Queues"},tableId:"qatch.columns./stylists/all-queues/todays"},this.filterId="todays-queues",this.showBreadcrumb=!0,this.breadcrumbItems=[{label:"Queues"},{label:"Today's Queues"}],this.filters=(0,d.mA)(this),this.route.params.subscribe(w=>{this.config.page.pageNumber=0})}ngOnInit(){super.ngOnInit()}postFirebaseAuth(){this.filterRolesLoaded=!0,setTimeout(()=>{this.config.url="stylist/users/all-queues/todays"},3e3)}productsKey(t){return`${t.product_id} - ${t.product_name}`}usersKey(t){return`${t.uid} - ${t.first_name} ${t.last_name||""}`}getViewTableComponent(){return this.viewTableComponent}getNameOfSelectedUser(){return""}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(I.Kg),e.rXU(v.L9),e.rXU(p.nX),e.rXU(p.Ix),e.rXU(y.u),e.rXU(P.d),e.rXU(u.fw),e.rXU(C.Bq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-todays-messages"]],viewQuery:function(i,s){if(1&i&&e.GBs(g.NV,5),2&i){let o;e.mGM(o=e.lsd())&&(s.viewTableComponent=o.first)}},features:[e.Vt3],decls:7,vars:4,consts:[[1,"container-fluid","non-transparent-header","px-0"],[3,"items",4,"ngIf"],[1,"row","g-0"],["class","author text-center w-100 q-page-header",4,"ngIf"],["class","w-100 always-collapsible-filter card card-plain mb-0 p-0",3,"filters","filtered","isAlwaysCollapsible","retainValues","filterId","valueChange",4,"ngIf"],[1,"mt-2","w-100","q-page-container","card","card-plain","mb-0","p-0"],[3,"config"],[3,"items"],[1,"author","text-center","w-100","q-page-header"],[1,"q-page-header-inner"],[1,"card-title","q-page-header-title","mt-3"],[1,"w-80","underline-text-dark"],[1,"w-100","always-collapsible-filter","card","card-plain","mb-0","p-0",3,"valueChange","filters","filtered","isAlwaysCollapsible","retainValues","filterId"]],template:function(i,s){1&i&&(e.j41(0,"div",0),e.DNE(1,ie,1,1,"uikit-breadcrumb",1),e.j41(2,"div",2),e.DNE(3,ne,5,1,"div",3)(4,re,1,5,"app-filters",4),e.j41(5,"div",5),e.nrm(6,"app-view-table",6),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("ngIf",s.showBreadcrumb),e.R7$(2),e.Y8G("ngIf",s.isDesktop&&s.queuesForSingleUser&&s.selectedUserName),e.R7$(),e.Y8G("ngIf",s.viewTableComponent&&s.filterRolesLoaded),e.R7$(2),e.Y8G("config",s.config))},dependencies:[m.bT,g.NV,h.Z1,u.rm]})}}return n})(),data:{title:"Today's Messages"}},{path:":id",component:G,data:{title:"User Queue"}}];let ae=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[m.MD,p.iI.forChild(oe),p.iI]})}}return n})();var le=a(6497),de=a(180),ue=a(8981);let pe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[u.fw],imports:[m.MD,le.G,ae,ue.E,de.k,u.rm]})}}return n})()}}]); 2//# sourceMappingURL=4259.3ce8e5300bf259d1.js.map
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.