import{a as J}from"./chunk-WBPIWZ7Q.js";import{c as xt}from"./chunk-FVUFPTGH.js";import{a as mt}from"./chunk-LXFJ7QGK.js";import{a as wt,b as St}from"./chunk-DQPTWMB2.js";import{e as vt,f as yt}from"./chunk-MQVHFWCE.js";import{b as Vt,c as kt,f as ee}from"./chunk-G7E24J2R.js";import{a as ht,b as gt}from"./chunk-5TTXT2K2.js";import{N as Ct,n as bt}from"./chunk-3NJAM5KX.js";import{c as _t}from"./chunk-BQPO535K.js";import{a as et}from"./chunk-HLLBCLO6.js";import{u as ft}from"./chunk-4P6SOZDY.js";import{c as dt,d as pt,h as ut,i as N}from"./chunk-2MELUOYA.js";import{Ba as st,Ea as ct,H as me,O as ot,Q as at,b as tt,l as nt,q as G,sa as rt,va as lt,wa as X,x as it}from"./chunk-WOPE6PPO.js";import{E as Ge,c as ze,h as $e,i as Ue,k as Ze,o as qe,p as Ye}from"./chunk-MDIMQ3H3.js";import{a as Qe,c as Je}from"./chunk-HJJJ4ZT2.js";import{a as Xe}from"./chunk-GH5XWMYK.js";import{a as We}from"./chunk-3DEA4WWC.js";import{$b as k,Ad as q,Bb as u,Bc as Pe,Bd as Y,Ca as v,Cc as z,Da as xe,Db as m,Dc as y,Fa as we,Fb as w,Gb as S,Ha as re,Hb as V,Ib as f,Jb as a,Ka as le,Kb as l,Kc as $,Lb as g,Lc as pe,Mc as Fe,O as Ce,Tc as ue,Ub as b,Vd as Re,Wd as He,Xb as h,Xd as je,Ya as Se,Yc as P,Za as s,Zb as c,Zc as U,_b as W,ac as Q,ad as Be,ba as ve,cc as I,d as _e,dc as E,eb as x,ed as Ke,fc as De,fd as Z,gc as Ie,gd as Oe,ib as H,jb as j,jc as ce,kc as Ee,lb as Ve,lc as de,mb as ke,mc as _,na as B,nb as Me,nc as O,nd as Le,oa as R,ob as se,oc as L,pa as ye,ra as K,rc as M,rd as Ae,sc as T,sd as Ne,tc as D,u as be,va as d,wa as p,xb as Te,xc as A}from"./chunk-GJDGQISV.js";import{a as F,b as ge}from"./chunk-SNAKHGZS.js";var te=class t{_openDialog=new _e;openDialog$=this._openDialog.asObservable();openDialog(){this._openDialog.next()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mt=`
    .p-popover {
        margin-block-start: dt('popover.gutter');
        background: dt('popover.background');
        color: dt('popover.color');
        border: 1px solid dt('popover.border.color');
        border-radius: dt('popover.border.radius');
        box-shadow: dt('popover.shadow');
        will-change: transform;
    }

    .p-popover-content {
        padding: dt('popover.content.padding');
    }

    .p-popover-flipped {
        margin-block-start: calc(dt('popover.gutter') * -1);
        margin-block-end: dt('popover.gutter');
    }

    .p-popover:after,
    .p-popover:before {
        bottom: 100%;
        left: calc(dt('popover.arrow.offset') + dt('popover.arrow.left'));
        content: ' ';
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .p-popover:after {
        border-width: calc(dt('popover.gutter') - 2px);
        margin-left: calc(-1 * (dt('popover.gutter') - 2px));
        border-style: solid;
        border-color: transparent;
        border-bottom-color: dt('popover.background');
    }

    .p-popover:before {
        border-width: dt('popover.gutter');
        margin-left: calc(-1 * dt('popover.gutter'));
        border-style: solid;
        border-color: transparent;
        border-bottom-color: dt('popover.border.color');
    }

    .p-popover-flipped:after,
    .p-popover-flipped:before {
        bottom: auto;
        top: 100%;
    }

    .p-popover.p-popover-flipped:after {
        border-bottom-color: transparent;
        border-top-color: dt('popover.background');
    }

    .p-popover.p-popover-flipped:before {
        border-bottom-color: transparent;
        border-top-color: dt('popover.border.color');
    }
`;var Ot=["content"],Lt=["*"],At=t=>({closeCallback:t});function Nt(t,o){}function Rt(t,o){t&1&&se(0,Nt,0,0,"ng-template")}function Ht(t,o){if(t&1){let e=b();a(0,"div",1),h("click",function(i){d(e);let r=c();return p(r.onOverlayClick(i))})("pMotionOnEnter",function(i){d(e);let r=c();return p(r.onAnimationStart(i))})("pMotionOnAfterLeave",function(){d(e);let i=c();return p(i.onAnimationEnd())}),a(1,"div",2),h("click",function(i){d(e);let r=c();return p(r.onContentClick(i))})("mousedown",function(i){d(e);let r=c();return p(r.onContentClick(i))}),k(2),se(3,Rt,1,0,null,3),l()()}if(t&2){let e=c();Ee(e.sx("root")),de(e.cn(e.cx("root"),e.styleClass)),f("pBind",e.ptm("root"))("ngStyle",e.style)("pMotion",e.overlayVisible)("pMotionAppear",!0)("pMotionOptions",e.computedMotionOptions()),Te("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),s(),de(e.cx("content")),f("pBind",e.ptm("content")),s(2),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",y(17,At,e.onCloseClick.bind(e)))}}var jt={root:()=>({position:"absolute"})},Wt={root:"p-popover p-component",content:"p-popover-content"},Tt=(()=>{class t extends ct{name="popover";style=Mt;classes=Wt;inlineStyles=jt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=le(t)))(i||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),Dt=new ye("POPOVER_INSTANCE"),Qt=(()=>{class t extends pt{componentName="Popover";$pcPopover=K(Dt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=K(N,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo=P("body");autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";motionOptions=P(void 0);computedMotionOptions=ue(()=>F(F({},this.ptm("motion")),this.motionOptions()));onShow=new v;onHide=new v;$appendTo=ue(()=>this.appendTo()||this.config.overlayAppendTo());container;overlayVisible=!1;render=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=K(Tt);zone=K(xe);overlayService=K(rt);onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="content"&&(this._contentTemplate=e.template)})}bindDocumentClickListener(){if(Y(this.platformId)&&!this.documentClickListener){let e=ot()?"touchstart":"click",n=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(n,e,i=>{this.dismissable&&(!this.container?.contains(i.target)&&this.target!==i.target&&!this.target.contains(i.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,n){this.overlayVisible?(this.hasTargetChanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){n&&e&&e.stopPropagation(),this.container&&!this.overlayVisible&&(this.container=null),this.target=n||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){let n=e.target;this.selfClick=e.offsetX<n.clientWidth&&e.offsetY<n.clientHeight}hasTargetChanged(e,n){return this.target!=null&&this.target!==(n||e.currentTarget||e.target)}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?G(this.document.body,this.container):G(this.$appendTo(),this.container))}restoreAppend(){this.container&&this.$appendTo()&&this.$appendTo()!=="self"&&G(this.el.nativeElement,this.container)}setZIndex(){this.autoZIndex&&ee.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay)}align(){if(this.target&&this.container){nt(this.container,this.target,!1);let e=me(this.container),n=me(this.target),i=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),r=0;e.left<n.left&&(r=n.left-e.left-parseFloat(i)*2),this.container.style.setProperty(st("popover.arrow.left").name,`${r}px`),e.top<n.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.$unstyled()&&tt(this.container,"p-popover-flipped"))}}onAnimationStart(e){this.container=e.element,this.container?.setAttribute(this.$attrSelector,""),this.appendOverlay(),this.align(),this.setZIndex(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=n=>{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)}onAnimationEnd(){this.overlayVisible||(this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.autoZIndex&&ee.clear(this.container),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1,this.container=null)}focus(){let e=it(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!at()&&this.hide()}bindDocumentResizeListener(){if(Y(this.platformId)&&!this.documentResizeListener){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){Y(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new ut(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&ee.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=le(t)))(i||t)}})();static \u0275cmp=H({type:t,selectors:[["p-popover"]],contentQueries:function(n,i,r){if(n&1&&Q(r,Ot,4)(r,lt,4),n&2){let C;I(C=E())&&(i.contentTemplate=C.first),I(C=E())&&(i.templates=C)}},hostBindings:function(n,i){n&1&&h("keydown.escape",function(C){return i.onEscapeKeydown(C)},Se)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",Z],style:"style",styleClass:"styleClass",appendTo:[1,"appendTo"],autoZIndex:[2,"autoZIndex","autoZIndex",Z],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",Oe],focusOnShow:[2,"focusOnShow","focusOnShow",Z],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[Pe([Tt,{provide:Dt,useExisting:t},{provide:dt,useExisting:t}]),ke([N]),Me],ngContentSelectors:Lt,decls:1,vars:1,consts:[["role","dialog","pMotionName","p-anchored-overlay",3,"pBind","class","style","ngStyle","pMotion","pMotionAppear","pMotionOptions"],["role","dialog","pMotionName","p-anchored-overlay",3,"click","pMotionOnEnter","pMotionOnAfterLeave","pBind","ngStyle","pMotion","pMotionAppear","pMotionOptions"],[3,"click","mousedown","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(W(),u(0,Ht,4,19,"div",0)),n&2&&m(i.render?0:-1)},dependencies:[q,Ne,Ae,X,N,kt,Vt],encapsulation:2,changeDetection:0})}return t})(),It=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=R({imports:[Qt,X,X]})}return t})();var ie=class t{startInput=null;lockInput(o,e){let n=e.key;if(e.key=="Backspace"||e.key=="Delete"?o.set(null):o.set(n),n)if(n==""||n.length==0)this.startInput=new Date;else{let i=new Date;this.startInput=this.startInput?this.startInput:new Date,i.getTime()-this.startInput.getTime()>500&&o.set(null)}}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};function $t(t,o){return{key:t,value:o}}var oe=class t{constructor(o){this.differs=o}differ;keyValues=[];compareFn=Et;transform(o,e=Et){if(!o||!(o instanceof Map)&&typeof o!="object")return null;this.differ??=this.differs.find(o).create();let n=this.differ.diff(o),i=e!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem(r=>{this.keyValues.push($t(r.key,r.currentValue))})),this.keyValues}static \u0275fac=function(e){return new(e||t)(x(Ke,16))};static \u0275pipe=Ve({name:"keyvalueUnsort",type:t,pure:!1})};function Et(t,o){let e=t.key,n=o.key;if(e===n)return 0;if(e===void 0)return 1;if(n===void 0)return-1;if(e===null)return 1;if(n===null)return-1;if(typeof e=="string"&&typeof n=="string")return e<n?-1:1;if(typeof e=="number"&&typeof n=="number")return e-n;if(typeof e=="boolean"&&typeof n=="boolean")return e<n?-1:1;let i=String(e),r=String(n);return i==r?0:i<r?-1:1}var Zt=["navTabs"],qt=["pageFilterTemplate"],Yt=["toggleColumnTemplate"],Gt=["searchFilter"],Xt=["actionButtons"],Jt=["barcodeScanInput"],en=[[["custom-header"]],[["actions"]],[["content"]],[["filters"]],[["nav-tabs"]]],tn=["custom-header","actions","content","filters","nav-tabs"],nn=t=>({"bg-gradient-danger":t}),on=t=>({"my-3":t}),fe=()=>({standalone:!0}),an=t=>({"d-none":t}),rn=t=>({"border-bottom-0":t}),he=t=>[t],ln=t=>({"subscription-overdue-class":t});function sn(t,o){if(t&1&&(a(0,"h1",8)(1,"span",32),_(2),a(3,"small",33),_(4),l()(),a(5,"span",34),_(6),$(7,"limitTo"),l()()),t&2){let e=c();f("matTooltip",e.tooltipTitle?e.tooltipTitle:(e.pageData==null?null:e.pageData.H)+" "+(e.pageData!=null&&e.pageData.SH?e.pageData==null?null:e.pageData.SH:"")),s(2),L("",e.pageData==null?null:e.pageData.H," "),s(2),O(e.pageData!=null&&e.pageData.SH?e.pageData==null?null:e.pageData.SH:""),s(2),O(Fe(7,4,(e.pageData==null?null:e.pageData.H)+(e.pageData!=null&&e.pageData.SH?e.pageData==null?null:e.pageData.SH:""),e.titleLimit))}}function cn(t,o){if(t&1){let e=b();a(0,"div",35),h("click",function(){d(e);let i=c();return i.isSearchBoxVisible=!i.isSearchBoxVisible,i.isActionBtnVisible=!1,p(i.collapseActionBtn())}),g(1,"i",36),l()}}function dn(t,o){if(t&1){let e=b();a(0,"p-checkbox",45),D("ngModelChange",function(i){d(e);let r=c(2).$implicit;return T(r.value.selected,i)||(r.value.selected=i),p(i)}),h("onChange",function(){d(e);let i=c(4);return p(i.onChangeColumnCheckbox.emit())}),l()}if(t&2){let e=c(2).$implicit;M("ngModel",e.value.selected),f("binary",!0)}}function pn(t,o){if(t&1){let e=b();a(0,"p-checkbox",46),D("ngModelChange",function(i){d(e);let r=c(2).$implicit;return T(r.value.selected,i)||(r.value.selected=i),p(i)}),l()}if(t&2){let e=c(2).$implicit;M("ngModel",e.value.selected),f("binary",!0)}}function un(t,o){t&1&&(a(0,"span",44),_(1,"*"),l())}function mn(t,o){if(t&1&&(a(0,"div",42),u(1,dn,1,2,"p-checkbox",43),u(2,pn,1,2,"p-checkbox",43),a(3,"span"),_(4),l(),u(5,un,2,0,"span",44),l()),t&2){let e=c().$implicit;f("matTooltip",A(e.value.advanced?"Data will be retrieved via API request.":"")),s(),m(e.value.advanced?1:-1),s(),m(e.value.advanced?-1:2),s(2),O(e.value.name??e.key),s(),m(e.value.advanced?5:-1)}}function fn(t,o){if(t&1&&(a(0,"li",41),u(1,mn,6,6,"div",42),l()),t&2){let e=o.$implicit;s(),m(e.value.role||e.value.role===void 0?1:-1)}}function hn(t,o){if(t&1&&(a(0,"div",12)(1,"div",37),g(2,"i",38),a(3,"ul",39)(4,"div",40)(5,"h6"),_(6,"Columns to View"),l()(),S(7,fn,2,1,"li",41,w),$(9,"keyvalueUnsort"),l()()()),t&2){let e=c();s(7),V(pe(9,0,e.column))}}function gn(t,o){if(t&1){let e=b();a(0,"autocompleteV2",47),h("optionSelected",function(i){d(e);let r=c();return p(r.onAutoCompleteChange(i))})("onInputEnter",function(i){d(e);let r=c();return p(r.onAutoCompleteEnter(i))}),l(),a(1,"div")(2,"button",48),h("click",function(){d(e);let i=c();return p(i.submit())}),g(3,"i",49),l()()}if(t&2){let e=c();f("requestUrl",e.requestUrl)("customClass","autocomplete-mainpanel")("placeholder",e.searchBoxPlaceholder||"Search..")("inputTextValue",e.text)}}function _n(t,o){if(t&1){let e=b();a(0,"input",50),D("ngModelChange",function(i){d(e);let r=c();return T(r.text,i)||(r.text=i),p(i)}),h("keyup",function(){d(e);let i=c();return p(i.onTextChange())}),l(),a(1,"div")(2,"button",48),h("click",function(){d(e);let i=c();return p(i.submit())}),g(3,"i",49),l()()}if(t&2){let e=c();f("ngModelOptions",z(3,fe)),M("ngModel",e.text),f("placeholder",e.searchBoxPlaceholder)}}function bn(t,o){if(t&1){let e=b();a(0,"input",51,3),h("paste",function(i){d(e);let r=c();return p(r.barcodeInputLock()?i.preventDefault():"")}),D("ngModelChange",function(i){d(e);let r=c();return T(r.barcodeQuery,i)||(r.barcodeQuery=i),p(i)}),h("keydown",function(i){d(e);let r=c();return p(r.onInputBarcode(i))}),l(),a(2,"div")(3,"button",52),h("click",function(){d(e);let i=c();return p(i.onBarcodeQueryChange())}),g(4,"i",53),l()()}if(t&2){let e=c();f("ngModelOptions",z(2,fe)),M("ngModel",e.barcodeQuery)}}function Cn(t,o){if(t&1){let e=b();a(0,"a",55)(1,"i",56),g(2,"i",57),l()(),a(3,"form",58),k(4,3),a(5,"button",59),h("click",function(){d(e);let i=c(2);return p(i.submit())}),g(6,"i",60),_(7,"Search "),l()()}}function vn(t,o){if(t&1){let e=b();a(0,"div",61),h("click",function(){d(e);let i=c(2);return p(i.openFilterDialog())}),a(1,"i",56),g(2,"i",57),l()()}}function yn(t,o){if(t&1&&(a(0,"div",19),u(1,Cn,8,0)(2,vn,3,0,"div",54),l()),t&2){let e=c();s(),m(e.isFilterOnDropdown?1:2)}}function xn(t,o){if(t&1){let e=b();a(0,"p-checkbox",45),D("ngModelChange",function(i){d(e);let r=c(2).$implicit;return T(r.value.selected,i)||(r.value.selected=i),p(i)}),h("onChange",function(){d(e);let i=c(4);return p(i.onChangeColumnCheckbox.emit())}),l()}if(t&2){let e=c(2).$implicit;M("ngModel",e.value.selected),f("binary",!0)}}function wn(t,o){if(t&1){let e=b();a(0,"p-checkbox",46),D("ngModelChange",function(i){d(e);let r=c(2).$implicit;return T(r.value.selected,i)||(r.value.selected=i),p(i)}),l()}if(t&2){let e=c(2).$implicit;M("ngModel",e.value.selected),f("binary",!0)}}function Sn(t,o){t&1&&(a(0,"span",44),_(1,"*"),l())}function Vn(t,o){if(t&1&&(a(0,"div",42),u(1,xn,1,2,"p-checkbox",43),u(2,wn,1,2,"p-checkbox",43),a(3,"span"),_(4),l(),u(5,Sn,2,0,"span",44),l()),t&2){let e=c().$implicit;f("matTooltip",A(e.value.advanced?"Data will be retrieved via API request.":"")),s(),m(e.value.advanced?1:-1),s(),m(e.value.advanced?-1:2),s(2),O(e.value.name??e.key),s(),m(e.value.advanced?5:-1)}}function kn(t,o){if(t&1&&(a(0,"li",62),u(1,Vn,6,6,"div",42),l()),t&2){let e=o.$implicit;f("ngClass",y(2,an,e.value.show===!1)),s(),m(e.value.role||e.value.role===void 0?1:-1)}}function Mn(t,o){if(t&1&&(a(0,"div",20)(1,"div",37),g(2,"i",38),a(3,"ul",39)(4,"div",40)(5,"h6"),_(6,"Columns to View"),l()(),S(7,kn,2,4,"li",62,w),$(9,"keyvalueUnsort"),l()()()),t&2){let e=c();s(7),V(pe(9,0,e.column))}}function Tn(t,o){if(t&1){let e=b();a(0,"div",63),h("click",function(){d(e);let i=c();return i.isActionBtnVisible=!i.isActionBtnVisible,i.isSearchBoxVisible=!1,p(i.collapseSearchFilter())}),g(1,"i",64),l()}}function Dn(t,o){if(t&1&&(a(0,"li",68)(1,"a",69),_(2),l()()),t&2){let e=o.$implicit;s(),f("routerLink",y(2,he,"/menu/"+e.U)),s(),L(" ",e.T," ")}}function In(t,o){if(t&1&&(a(0,"ul",67),S(1,Dn,3,4,"li",68,w),l()),t&2){let e=c(2);s(),V(e.pageData.N.TM)}}function En(t,o){if(t&1&&(a(0,"nav",65)(1,"div",66),k(2,4),u(3,In,3,0,"ul",67),l()()),t&2){let e=c();ce("margin-top-animation",e.isSearchBoxVisible&&!e.isActionBtnVisible)("margin-top-animation-act",e.isActionBtnVisible&&!e.isSearchBoxVisible)("all-margin-top-animation",e.isSearchBoxVisible&&e.isActionBtnVisible),f("ngClass",y(8,rn,e.hasNavTabs)),s(3),m(e.hasNavTabs?-1:3)}}function Pn(t,o){if(t&1&&(a(0,"a",79),g(1,"i",80),_(2),l()),t&2){let e=c().$implicit;f("target",A(e.Ta))("routerLink",y(4,he,"/menu/"+(e.U?e.U:"#"))),s(2),L(" ",e.T," ")}}function Fn(t,o){if(t&1&&(a(0,"div",70),u(1,Pn,3,6,"a",79),l()),t&2){let e=o.$implicit;s(),m(e.U?1:-1)}}function Bn(t,o){if(t&1&&(a(0,"a",82),g(1,"i",80),_(2),l()),t&2){let e=o.$implicit;f("routerLink",y(2,he,"/menu/"+(e==null?null:e.U))),s(2),L(" ",e==null?null:e.T," ")}}function Kn(t,o){if(t&1&&(a(0,"div")(1,"div",81),_(2),l(),a(3,"div"),S(4,Bn,3,4,"a",82,w),l()()),t&2){let e=c().$implicit;s(2),L(" ",e.T," "),s(2),V(e.SI)}}function On(t,o){if(t&1&&(a(0,"div",70),u(1,Kn,6,1,"div"),l()),t&2){let e=o.$implicit;s(),m(e!=null&&e.SI&&(e==null?null:e.SI.length)!=0?1:-1)}}function Ln(t,o){if(t&1&&(a(0,"div",76),_(1),l(),g(2,"div",77),S(3,Fn,2,1,"div",70,w),a(5,"div",78),S(6,On,2,1,"div",70,w),l()),t&2){let e=c().$implicit;s(),O(e.T),s(2),V(e.SI),s(3),V(e.SI)}}function An(t,o){if(t&1&&(a(0,"div",75),u(1,Ln,8,1),l()),t&2){let e=o.$implicit;s(),m(e.SI?1:-1)}}function Nn(t,o){if(t&1&&(a(0,"div",31)(1,"div",70)(2,"a",71),g(3,"i",72),l(),a(4,"div",73)(5,"div",74),S(6,An,2,1,"div",75,w),l()()()()),t&2){let e=c();f("ngClass",y(1,ln,e.isNotEmpty(e.currentSubStatus)&&e.currentSubStatus!==e.subsStatusEnum.PAID)),s(6),V(e.pageData.N.SM)}}var Pt=class t{constructor(o,e,n,i,r,C,Rn){this.toggleSidebar=o;this.authService=e;this.matDialog=n;this.breakpointObserver=i;this.intercom=r;this.openDialogFilterService=C;this.inputLockService=Rn;this.searchBoxPlaceholder=this.searchBoxPlaceholder||"Search..",this.toggleSidebar.toggleState$.subscribe(ae=>this.isChange=ae),this.listenToOpenDialogFilter(),re(()=>{this.searchFilterBt=new bootstrap.Collapse(this.searchFilter().nativeElement,{toggle:!1})}),re(()=>{this.actionBtnBt=new bootstrap.Collapse(this.actionBtn().nativeElement,{toggle:!1});let ae=this.actionBtn()?.nativeElement?.childNodes[0]?.children?.length;this.hasActionButtons=ae>=0}),this.showColumnToggle=!0}navTabs;hasNavTabs=!1;filterDialogWidth=P("450px");titleLimit=11;tooltipTitle="";searchFilter=U("searchFilter");searchFilterBt=null;actionBtn=U("actionButtons");actionBtnBt=null;barcodeScanInput=U("barcodeScanInput");isActionBtnVisible=!1;isSearchBoxVisible=!1;autoFocusBarcodeScanInput=P(!1);filter=Be();column;showColumnToggle=!1;isFilterOnDropdown=!0;hasActionButtons=!1;filterTemplate;toggleColumnTemplate;text;textChange=new v;showBarcodeScanner=!1;barcodeQuery=we("");barcodeInputLock=P(!1);barcodeQueryChange=new v;offline;pageData;hideSearchBox;hideSearchDropdown;searchBoxPlaceholder;hideMoreMenu=!1;hideMenu=!1;filterAutoComplete=!1;requestUrl;onSelect=new v;onChangeColumnCheckbox=new v;onEnter=new v;onSubmit=new v;onOkToggleColumnDialog=new v;isChange;currentSubStatus;subsStatusEnum=Qe;ngAfterContentInit(){this.hasNavTabs=!!this.navTabs}ngOnInit(){this.initHelperSuggestion(),this.getCurrentSubscriptionStatus()}ngAfterViewInit(){this.autoFocusBarcodeScanInput()&&setTimeout(()=>{this.barcodeScanInput()?.nativeElement?.focus()},100)}listenToOpenDialogFilter(){this.openDialogFilterService.openDialog$.pipe(et()).subscribe(()=>{this.openFilterDialog()})}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}initHelperSuggestion(){(this.pageData?.HelpCenterSuggestion!=null||this.pageData?.HelpCenterSuggestion!=null)&&window.zE("webWidget","helpCenter:setSuggestions",{labels:this.pageData.HelpCenterSuggestion})}submit(){this.onSubmit.emit()}onTextChange(){this.textChange.emit(this.text)}onBarcodeQueryChange(){this.barcodeQueryChange.emit(this.barcodeQuery()),this.barcodeQuery.set(null)}onInputBarcode(o){o.key==="Enter"?this.onBarcodeQueryChange():this.barcodeInputLock()&&this.inputLockService.lockInput(this.barcodeQuery,o)}toggleDropdown(o){o.stopPropagation()}toggleMenu(){this.toggleSidebar.toggleSidebar()}onAutoCompleteChange(o){this.onSelect.emit(o)}onAutoCompleteEnter(o){this.onEnter.emit(o)}isNotEmpty(o){return We.IsNotEmpty(o)}openFilterDialog(){this.intercom.hideLauncher();let o=F({},this.filter);this.breakpointObserver.observe(["(max-width: 576px)"]).pipe(be(e=>{let n={data:{filters:this.filterTemplate,filterData:this.filter,customWidth:this.filterDialogWidth()},panelClass:"dialog-filter"};return e.matches&&(n=ge(F({},n),{height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%"})),n}),ve(e=>this.matDialog.open(xt,e).afterClosed()),Ce(1)).subscribe(e=>{if(e==="ok")this.submit();else if(Object.keys(o)?.length!==0)for(let n in this.filter)this.filter[n]=o[n];this.intercom.showLauncher()})}collapseActionBtn(){this.actionBtnBt.hide()}collapseSearchFilter(){this.searchFilterBt.hide()}static \u0275fac=function(e){return new(e||t)(x(mt),x(Je),x(_t),x(ft),x(Xe),x(te),x(ie))};static \u0275cmp=H({type:t,selectors:[["mainpanel-cmp"]],contentQueries:function(e,n,i){if(e&1&&Q(i,Zt,5)(i,qt,5)(i,Yt,5),e&2){let r;I(r=E())&&(n.navTabs=r.first),I(r=E())&&(n.filterTemplate=r.first),I(r=E())&&(n.toggleColumnTemplate=r.first)}},viewQuery:function(e,n){e&1&&De(n.searchFilter,Gt,5)(n.actionBtn,Xt,5)(n.barcodeScanInput,Jt,5),e&2&&Ie(3)},inputs:{filterDialogWidth:[1,"filterDialogWidth"],titleLimit:"titleLimit",autoFocusBarcodeScanInput:[1,"autoFocusBarcodeScanInput"],filter:[1,"filter"],column:"column",isFilterOnDropdown:"isFilterOnDropdown",text:"text",showBarcodeScanner:"showBarcodeScanner",barcodeInputLock:[1,"barcodeInputLock"],offline:"offline",pageData:"pageData",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceholder:"searchBoxPlaceholder",hideMoreMenu:"hideMoreMenu",hideMenu:"hideMenu",filterAutoComplete:"filterAutoComplete",requestUrl:"requestUrl"},outputs:{filter:"filterChange",textChange:"textChange",barcodeQueryChange:"barcodeQueryChange",onSelect:"onSelect",onChangeColumnCheckbox:"onChangeColumnCheckbox",onEnter:"onEnter",onSubmit:"onSubmit",onOkToggleColumnDialog:"onOkToggleColumnDialog"},standalone:!1,ngContentSelectors:tn,decls:43,vars:24,consts:[["form","ngForm"],["searchFilter",""],["actionButtons",""],["barcodeScanInput",""],[1,"navbar","navbar-default","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white",3,"ngClass"],[1,"row","mx-0",2,"margin-top","9px",3,"ngClass"],[1,"col-auto","pe-0","order-1","ps-lg-7","ps-0"],[1,"d-flex","align-items-center","justify-content-start"],[1,"navbar-brand","me-5","float-start","my-1",3,"matTooltip"],["data-bs-toggle","collapse","data-bs-target","#search-filter",1,"text-muted","h5","pointer","d-block","d-sm-none","mt-2","me-6"],[1,"text-muted","h5","pointer","d-block","d-sm-none","mt-2",3,"click"],[1,"fa","fa-filter",2,"font-size","18px"],[1,"text-muted","h5","pointer","ms-5","d-block","d-sm-none"],["id","action-filter",1,"col-auto","d-sm-flex","d-none","order-lg-1","ps-0","order-2"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-start","mb-sm-0","mb-5"],[1,"ps-lg-0","ps-7"],[3,"ngSubmit"],[1,"input-group"],[1,"dropdown","text-secondary","ps-5","d-none","d-sm-block"],[1,"text-muted","h5","pointer","ms-5"],[1,"d-lg-none","d-flex","align-items-center","col-auto","order-2","ms-auto"],["data-bs-toggle","collapse","data-bs-target","#action-button",1,"d-lg-none","me-2"],[1,"col-auto","d-lg-none","d-flex","justify-content-start","align-items-center","order-lg-2","order-0"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0","border-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","search-filter",1,"col-lg","col-12","justify-content-end","collapse","order-3","mb-md-0"],["data-cy","Search","type","text","id","search-box",1,"form-control","input","w-100","mt-5",2,"font-size","1rem",3,"ngModelChange","keyup","ngModelOptions","ngModel","placeholder"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3","mb-md-0"],[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg",3,"margin-top-animation","margin-top-animation-act","all-margin-top-animation","ngClass"],[1,"main-panel-content"],[1,"navbar","more-menu","d-print-none",3,"ngClass"],[1,"d-lg-block","d-none"],[2,"font-size","14px"],[1,"d-block","d-lg-none"],["data-bs-toggle","collapse","data-bs-target","#search-filter",1,"text-muted","h5","pointer","d-block","d-sm-none","mt-2","me-6",3,"click"],[1,"fa","fa-magnifying-glass",2,"font-size","18px"],[1,"btn-group"],["data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"fa-solid","fa-columns-3","position-relative","column"],[1,"dropdown-menu","p-5"],[1,"border-bottom","pb-3"],[1,"column-toggle-group"],["matTooltipPosition","above",1,"mt-5",3,"matTooltip"],["inputId","binary",1,"me-3",3,"ngModel","binary"],[1,"text-danger","ms-3"],["inputId","binary",1,"me-3",3,"ngModelChange","onChange","ngModel","binary"],["inputId","binary",1,"me-3",3,"ngModelChange","ngModel","binary"],[1,"input-left",3,"optionSelected","onInputEnter","requestUrl","customClass","placeholder","inputTextValue"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-magnifying-glass"],["data-cy","Search","type","text","id","search-box",1,"form-control","input",2,"font-size","1rem",3,"ngModelChange","keyup","ngModelOptions","ngModel","placeholder"],["id","barcodeScanInput","type","text","placeholder","Scan Your Code",1,"form-control","input",2,"width","9.375rem","font-size","1rem",3,"paste","ngModelChange","keydown","ngModelOptions","ngModel"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0",3,"click"],[1,"fa","fa-barcode"],[1,"text-muted","h5","pointer"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter","d-flex"],[1,"fa-solid","fa-caret-down","mt-1","fs-6"],[1,"dropdown-menu",2,"left","auto !important"],["matTooltipPosition","above","matTooltip","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-magnifying-glass","pointer"],[1,"text-muted","h5","pointer",3,"click"],[1,"column-toggle-group",3,"ngClass"],["data-bs-toggle","collapse","data-bs-target","#action-button",1,"d-lg-none","me-2",3,"click"],[1,"fa-solid","fa-caret-down","text-muted",2,"font-size","16px"],[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg",3,"ngClass"],[1,"container-fluid"],[1,"nav","navbar-nav","navbar-left","nav-tab-arrow","d-flex","flex-row","flex-nowrap","justify-content-between","align-items-center","overflow-auto","nav-menu"],["routerLinkActive","active",1,"nav-item","me-6",2,"white-space","nowrap"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink"],[1,"dropdown"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-flex"],[1,"dropdown-header","text-dark","col"],[1,"h5","mb-4"],[1,"dropdown-divider","m-0"],[1,"d-flex","flex-row"],[1,"dropdown-item",3,"target","routerLink"],["aria-hidden","true",1,"fa-regular","fa-file"],[1,"my-3","h6","text-muted"],[1,"dropdown-item",3,"routerLink"]],template:function(e,n){if(e&1){let i=b();W(en),a(0,"nav",4),g(1,"subscription-alert"),a(2,"div",5)(3,"div",6)(4,"div",7),u(5,sn,8,7,"h1",8),k(6),u(7,cn,2,0,"div",9),a(8,"div",10),h("click",function(){return n.openFilterDialog()}),g(9,"i",11),l(),u(10,hn,10,2,"div",12),l()(),a(11,"div",13)(12,"div",14)(13,"div",15)(14,"div",16)(15,"form",17,0),h("ngSubmit",function(){return n.submit()}),a(17,"div",18),u(18,gn,4,4),u(19,_n,4,4),u(20,bn,5,3),l()()(),u(21,yn,3,1,"div",19),u(22,Mn,10,2,"div",20),l()()(),a(23,"div",21),u(24,Tn,2,0,"div",22),l(),a(25,"div",23)(26,"button",24),h("click",function(){return n.toggleMenu()}),g(27,"span",25)(28,"span",25)(29,"span",25),l()(),a(30,"div",26,1)(32,"form",17,0),h("ngSubmit",function(){return n.submit()}),a(34,"input",27),D("ngModelChange",function(C){return d(i),T(n.text,C)||(n.text=C),p(C)}),h("keyup",function(){return n.onTextChange()}),l()()(),a(35,"div",28,2),k(37,1),l()()(),u(38,En,4,10,"nav",29),a(39,"div",30),u(40,Nn,8,3,"div",31),a(41,"div"),k(42,2),l()()}e&2&&(f("ngClass",y(19,nn,n.offline)),s(2),f("ngClass",y(21,on,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)),s(3),m(n.pageData!=null&&n.pageData.H||n.pageData!=null&&n.pageData.SH?5:-1),s(2),m(n.hideSearchBox?-1:7),s(3),m(n.column?10:-1),s(8),m(n.filterAutoComplete?18:-1),s(),m(n.hideSearchBox?-1:19),s(),m(n.showBarcodeScanner?20:-1),s(),m(n.hideSearchDropdown?-1:21),s(),m(n.column?22:-1),s(2),m(n.hasActionButtons?24:-1),s(2),ce("change",n.isChange),s(8),f("placeholder",A(n.searchBoxPlaceholder))("ngModelOptions",z(23,fe)),M("ngModel",n.text),s(4),m(n.pageData&&(!(n.pageData.N==null||n.pageData.N.TM==null)&&n.pageData.N.TM.length)&&!n.hideMenu?38:-1),s(2),m(n.pageData&&(!(n.pageData.N==null||n.pageData.N.SM==null)&&n.pageData.N.SM.length)&&!n.hideMoreMenu?40:-1))},dependencies:[Re,He,Le,Ye,ze,$e,Ue,qe,Ze,vt,ht,J,wt,bt,oe],styles:[`#search-box{width:10.4rem}.navbar-toggler:focus{box-shadow:none!important}.change .burger-lines{transition:.4s}.change .burger-lines:nth-child(1){-webkit-transform:rotate(-45deg) translate(-8px,4px);transform:rotate(-45deg) translate(-8px,4px)}.change .burger-lines:nth-child(2){opacity:0}.change .burger-lines:nth-child(3){-webkit-transform:rotate(45deg) translate(-5px,0px);transform:rotate(45deg) translate(-5px)}.more-menu{position:absolute;right:20px;top:70px;border-bottom:0!important;background:transparent}.subscription-overdue-class{top:110px!important}.search-box .dropdown-menu{border-radius:4px!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:270px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control.input{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:26rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media(max-width:468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media(max-width:480px){.navbar.page-nav{height:auto}.dropdown-menu{position:absolute}}@media(min-width:1366px){.navbar.page-nav{height:44px}}@media(max-width:992px){.action-bar{width:100%}.dropdown-menu{position:absolute;right:-4%}#action-button,#search-filter{padding:0 12px 15px}#search-box{width:50%}.more-menu{top:74px}.navbar .container-fluid{padding-right:35px}.margin-top-animation{margin-top:65px;transition:margin-top .35s ease}.margin-top-animation-act{margin-top:60px;transition:margin-top .35s ease}.all-margin-top-animation{margin-top:125px;transition:margin-top .35s ease}.nav-link{color:#0976b4}}.nav-menu{-ms-overflow-style:none;scrollbar-width:none}.nav-menu::-webkit-scrollbar{display:none}
`],encapsulation:2})},Ft=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=j({type:t});static \u0275inj=R({imports:[je,q,Ge,Ct,yt,gt,J,It,St]})};export{te as a,Qt as b,It as c,ie as d,oe as e,Pt as f,Ft as g};
