dealpos 25.43.0 → 25.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/chunk-2HUEFC2T.js +1 -0
- package/browser/{chunk-QDE7PB5F.js → chunk-2LMF4IMC.js} +1 -1
- package/browser/{chunk-NIAATSHN.js → chunk-2QU24F5P.js} +1 -1
- package/browser/{chunk-HIALMESF.js → chunk-346EL5B3.js} +1 -1
- package/browser/{chunk-ZH7IWOYT.js → chunk-3CUWPIMQ.js} +1 -1
- package/browser/{chunk-PHGUFK7B.js → chunk-3XR3MVQE.js} +1 -1
- package/browser/{chunk-QCXWKQ7Z.js → chunk-4G344XSZ.js} +1 -1
- package/browser/{chunk-JORCTO5O.js → chunk-4QQF4IJE.js} +1 -1
- package/browser/{chunk-RDLECCOU.js → chunk-4RRARGON.js} +2 -2
- package/browser/{chunk-NXXNEU5Q.js → chunk-4UYZJCFI.js} +1 -1
- package/browser/{chunk-7O3BTVW2.js → chunk-5EEOIYLP.js} +1 -1
- package/browser/{chunk-KBO5VO7S.js → chunk-5QXTT2Q4.js} +1 -1
- package/browser/{chunk-R6NHGFCL.js → chunk-5YJ2OEBF.js} +1 -1
- package/browser/{chunk-UEQT5HE5.js → chunk-5YRS6BWA.js} +1 -1
- package/browser/{chunk-UP43YMU4.js → chunk-5YUUUZD3.js} +1 -1
- package/browser/{chunk-VSF6PYZW.js → chunk-6647Y35T.js} +1 -1
- package/browser/{chunk-EENVAF36.js → chunk-6CWGCLY5.js} +1 -1
- package/browser/{chunk-5SRC2QUI.js → chunk-6EOWD655.js} +1 -1
- package/browser/{chunk-RADHAROZ.js → chunk-6FSVJ3O6.js} +1 -1
- package/browser/{chunk-ZPZDGQWP.js → chunk-6HXB7UO4.js} +3 -3
- package/browser/{chunk-4SFHOQ3Y.js → chunk-6KPCTTDA.js} +1 -1
- package/browser/{chunk-64EULF5I.js → chunk-6VOFZE3V.js} +1 -1
- package/browser/chunk-7527AL7Q.js +1 -0
- package/browser/{chunk-NGLW2JVN.js → chunk-A7FNJM6G.js} +1 -1
- package/browser/{chunk-CX4UR7ZZ.js → chunk-ACD7MZMQ.js} +3 -3
- package/browser/{chunk-2CU7XQYN.js → chunk-AER2U57P.js} +1 -1
- package/browser/{chunk-IQ4IMICT.js → chunk-ALNSA73T.js} +1 -1
- package/browser/{chunk-R4FFGZYI.js → chunk-AWSD3VOK.js} +1 -1
- package/browser/{chunk-E7L36INB.js → chunk-AXLH4KKX.js} +1 -1
- package/browser/{chunk-GINOZV6C.js → chunk-B6LPY2IZ.js} +1 -1
- package/browser/{chunk-U5OIRIFT.js → chunk-B6STMZWX.js} +14 -14
- package/browser/chunk-BBGWXLHJ.js +1 -0
- package/browser/{chunk-TROJCJRS.js → chunk-BCMMSVJJ.js} +1 -1
- package/browser/{chunk-A7R2DZD3.js → chunk-BJ4ZY3VJ.js} +1 -1
- package/browser/{chunk-MMX7JWK6.js → chunk-BJMIDKW4.js} +1 -1
- package/browser/{chunk-F2Z6MRHX.js → chunk-BPWQFTXE.js} +1 -1
- package/browser/{chunk-WYHR2ET7.js → chunk-CFSBMQ5D.js} +2 -2
- package/browser/{chunk-772SQL5I.js → chunk-CM4CUWDT.js} +1 -1
- package/browser/{chunk-FF56HWOF.js → chunk-CODMBGPI.js} +7 -7
- package/browser/{chunk-2DCP5K6S.js → chunk-CSLHA6EL.js} +1 -1
- package/browser/{chunk-ASGXDOOQ.js → chunk-CURYSM3Y.js} +1 -1
- package/browser/{chunk-3RWVYWJF.js → chunk-DEBIFZGN.js} +1 -1
- package/browser/{chunk-2L54CRB2.js → chunk-DH3PTQ3P.js} +1 -1
- package/browser/{chunk-TZKLOUVL.js → chunk-DK44EJTX.js} +1 -1
- package/browser/{chunk-ZBTG35T6.js → chunk-DKDOVSVH.js} +1 -1
- package/browser/chunk-E4DPE3J5.js +1 -0
- package/browser/{chunk-ZSE5MOHQ.js → chunk-EDXMXTEK.js} +1 -1
- package/browser/{chunk-RXIPRX4H.js → chunk-EJDRY7MH.js} +1 -1
- package/browser/{chunk-TTHREZAR.js → chunk-EKDNW5AX.js} +1 -1
- package/browser/{chunk-QJ4LGJCR.js → chunk-EOVI4KWG.js} +1 -1
- package/browser/{chunk-HAGFCQCM.js → chunk-FIHWJAIR.js} +1 -1
- package/browser/{chunk-UQP7S73H.js → chunk-FRDFUCRO.js} +1 -1
- package/browser/{chunk-D5P4CYL5.js → chunk-FSTDHLYH.js} +1 -1
- package/browser/{chunk-7S4WUQBK.js → chunk-FSXDAB7C.js} +1 -1
- package/browser/chunk-FXKRIVYT.js +1 -0
- package/browser/{chunk-OL6COSQS.js → chunk-FYACJ2YI.js} +1 -1
- package/browser/{chunk-SHMXCJ6Q.js → chunk-G454AF6P.js} +1 -1
- package/browser/{chunk-6G37ZXRX.js → chunk-GIDGCFLX.js} +1 -1
- package/browser/{chunk-6CQ6XYJG.js → chunk-H3OZSV6V.js} +1 -1
- package/browser/{chunk-CD3BSGAP.js → chunk-H7F34T25.js} +1 -1
- package/browser/{chunk-JLL2ILJJ.js → chunk-HFYSK74N.js} +1 -1
- package/browser/{chunk-CXRVPHHO.js → chunk-HJVO2MYG.js} +1 -1
- package/browser/{chunk-Y6VMIGXC.js → chunk-HKJLMHAD.js} +1 -1
- package/browser/{chunk-JU6MGU3M.js → chunk-HKUGK6HF.js} +1 -1
- package/browser/{chunk-TP762HYD.js → chunk-HMU3DWZJ.js} +1 -1
- package/browser/{chunk-GPP3J3W4.js → chunk-HOM424UE.js} +1 -1
- package/browser/{chunk-LGVT3CR2.js → chunk-I3YPVX5L.js} +1 -1
- package/browser/{chunk-7C7GJT3E.js → chunk-I7HV744J.js} +1 -1
- package/browser/{chunk-AEHOTFB4.js → chunk-IAZFUBFX.js} +1 -1
- package/browser/chunk-IFFXFKVP.js +14 -0
- package/browser/{chunk-MXUYJQOT.js → chunk-INZKDGM2.js} +13 -13
- package/browser/{chunk-5CDAHDI5.js → chunk-ITUXL4IU.js} +1 -1
- package/browser/{chunk-EJDIY62U.js → chunk-JEZGFXOM.js} +1 -1
- package/browser/{chunk-JYNN4IZB.js → chunk-JLXCN2NR.js} +1 -1
- package/browser/chunk-K5KGHSAP.js +1 -0
- package/browser/{chunk-YCN42CZP.js → chunk-KIQXPGXN.js} +1 -1
- package/browser/{chunk-RAIYXIUN.js → chunk-KTD4OMXY.js} +1 -1
- package/browser/{chunk-G2NUOEHT.js → chunk-KUN2P3RN.js} +1 -1
- package/browser/{chunk-3A4C23H5.js → chunk-KWTU2B2D.js} +1 -1
- package/browser/{chunk-IUDDIQMT.js → chunk-L7IGIQVH.js} +2 -2
- package/browser/{chunk-INCYKSJF.js → chunk-LAFPISY6.js} +1 -1
- package/browser/{chunk-GNXJCMBC.js → chunk-LDF4ZCJN.js} +1 -1
- package/browser/chunk-MBA7MORK.js +1 -0
- package/browser/{chunk-FAJUK2PL.js → chunk-MK4KDIMG.js} +1 -1
- package/browser/{chunk-IGEAG6HP.js → chunk-MSBIWISH.js} +1 -1
- package/browser/{chunk-IE6UBT7C.js → chunk-N4FKAPLW.js} +1 -1
- package/browser/{chunk-7WLFUG2A.js → chunk-NSXCBKM4.js} +1 -1
- package/browser/chunk-NUV6F5WN.js +1 -0
- package/browser/chunk-O2QDJGKT.js +112 -0
- package/browser/{chunk-NZXT22JH.js → chunk-OB764IZP.js} +1 -1
- package/browser/{chunk-MDGMZ65B.js → chunk-ON5DTHAP.js} +1 -1
- package/browser/chunk-PBEIFRAA.js +1 -0
- package/browser/{chunk-Q3SBBXUT.js → chunk-PD445FIT.js} +1 -1
- package/browser/{chunk-W6A2EZUH.js → chunk-PGSKQYIL.js} +2 -2
- package/browser/{chunk-TZ74SUXJ.js → chunk-QHBWVJIQ.js} +1 -1
- package/browser/{chunk-RJ5DYWUR.js → chunk-QSWKUXSH.js} +1 -1
- package/browser/{chunk-7V7Q67KX.js → chunk-QVTFZ7LA.js} +1 -1
- package/browser/{chunk-M7QHMLIG.js → chunk-R4CTK5NZ.js} +1 -1
- package/browser/{chunk-THXV6YJP.js → chunk-RFO7MTFT.js} +1 -1
- package/browser/{chunk-EMP32K7Q.js → chunk-RHUDY63D.js} +1 -1
- package/browser/{chunk-H6LHYTUN.js → chunk-RKCLO5OA.js} +1 -1
- package/browser/chunk-ROR3RTY5.js +3 -0
- package/browser/{chunk-AQUQUDDZ.js → chunk-RP455IK5.js} +1 -1
- package/browser/{chunk-TJOJSY2L.js → chunk-S4IKR42Q.js} +1 -1
- package/browser/{chunk-D6VG5PSE.js → chunk-SEXUIUP5.js} +1 -1
- package/browser/{chunk-4R4W625N.js → chunk-SGFSKIUE.js} +1 -1
- package/browser/{chunk-TUQ4INQ4.js → chunk-SRRURHLT.js} +1 -1
- package/browser/{chunk-LC3XCQL2.js → chunk-SYQCAXOC.js} +1 -1
- package/browser/{chunk-EYE63KIO.js → chunk-T4OMGJF4.js} +1 -1
- package/browser/chunk-TE3WGV2Q.js +1 -0
- package/browser/{chunk-SEXQYEXV.js → chunk-TLJ2NGVG.js} +1 -1
- package/browser/chunk-TSIYPTYI.js +1 -0
- package/browser/{chunk-HQQWO76P.js → chunk-U6TUYK6J.js} +1 -1
- package/browser/{chunk-DNSE6AZ3.js → chunk-UO2JNN6O.js} +1 -1
- package/browser/{chunk-3LKY4V7E.js → chunk-V2LFW5D3.js} +1 -1
- package/browser/{chunk-3WSASNIT.js → chunk-V73DMOF7.js} +1 -1
- package/browser/{chunk-VFGDPNH2.js → chunk-VPFQM3LL.js} +1 -1
- package/browser/{chunk-ITLMINSX.js → chunk-VQBXUZ6U.js} +1 -1
- package/browser/{chunk-TQZQYUFG.js → chunk-VZEPVRCY.js} +1 -1
- package/browser/{chunk-QEZV5DGZ.js → chunk-WEGDL4GR.js} +1 -1
- package/browser/{chunk-AQC5G2DR.js → chunk-WEQFFBAF.js} +1 -1
- package/browser/{chunk-5BZEOCFN.js → chunk-WXQELZWQ.js} +1 -1
- package/browser/{chunk-XDJ4AOAR.js → chunk-X5OST3RI.js} +1 -1
- package/browser/{chunk-BXAYNP7A.js → chunk-XBRBYCWJ.js} +1 -1
- package/browser/{chunk-DKPNAGIM.js → chunk-XJ7SOVB2.js} +1 -1
- package/browser/{chunk-5NDARG5X.js → chunk-XTL4S3XK.js} +1 -1
- package/browser/{chunk-PRBPKAI4.js → chunk-Y75LR4GR.js} +1 -1
- package/browser/chunk-YEAPJ2OC.js +1 -0
- package/browser/{chunk-IQ26VFNR.js → chunk-YZHVQD5P.js} +1 -1
- package/browser/{chunk-IJ3Y6CA4.js → chunk-Z65FTA7V.js} +1 -1
- package/browser/{chunk-Q3T47ZI6.js → chunk-ZEQ2QQEK.js} +1 -1
- package/browser/{chunk-GFT5QOAV.js → chunk-ZMOEZBOV.js} +1 -1
- package/browser/{chunk-3REOXXPI.js → chunk-ZT3ATOCA.js} +1 -1
- package/browser/{chunk-HYRNR45J.js → chunk-ZZVT4VHZ.js} +1 -1
- package/browser/{chunk-A7PNRSF2.js → chunk-ZZYILM3B.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/main-QGKQ75P4.js +3 -0
- package/package.json +1 -1
- package/browser/chunk-4G2HIE3A.js +0 -1
- package/browser/chunk-5OS5VELO.js +0 -1
- package/browser/chunk-AJCH3WAF.js +0 -1
- package/browser/chunk-EH6IO5FW.js +0 -1
- package/browser/chunk-FMHXEKSH.js +0 -1
- package/browser/chunk-HMER2IC5.js +0 -1
- package/browser/chunk-IFQV5GDJ.js +0 -1
- package/browser/chunk-JDZEWPPQ.js +0 -1
- package/browser/chunk-MDY5R453.js +0 -112
- package/browser/chunk-OEEJBHA6.js +0 -1
- package/browser/chunk-QU4LPPFI.js +0 -14
- package/browser/chunk-RE4ILURJ.js +0 -1
- package/browser/chunk-YWGMCAEP.js +0 -3
- package/browser/main-XJRM5GZV.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as gt,b as ut}from"./chunk-6JAL37Y4.js";import{b as lt}from"./chunk-4QQTEPQT.js";import{a as it}from"./chunk-CWITQVZH.js";import{a as nt,b as at,c as st,d as ct,e as pt}from"./chunk-LMJVRREP.js";import{a as Te,b as De}from"./chunk-3LBZDIW2.js";import{a as dt}from"./chunk-KTCV3KOE.js";import{a as ot}from"./chunk-KZDE63UL.js";import{d as rt}from"./chunk-RXIPRX4H.js";import{b as et,c as tt}from"./chunk-JOXTERIM.js";import{a as He}from"./chunk-7VKFVS7K.js";import{a as ye,b as Xe,c as Ze}from"./chunk-VFTGIP5A.js";import{a as re}from"./chunk-LE3BKIDY.js";import{B as je,T as Ee,U as We,a as A,ca as ke,ea as Ge,la as G,ma as $,na as Ye,oa as Je,r as we,s as qe,t as W,ua as me,v as oe,w as Ke}from"./chunk-EEEAUYZ6.js";import{F as ne,a as Be,h as he,o as _e}from"./chunk-RVXZOIFQ.js";import{a as ue}from"./chunk-ZZGSAFGO.js";import{$a as c,$b as m,Ac as Ue,Db as X,Fa as T,Fc as w,Ia as Le,Ib as h,Jb as _,Kb as E,Lb as v,Mb as N,Mc as y,Nb as S,Nc as U,Ob as k,Qb as b,Rb as s,Wc as Z,Y as ve,Yb as C,Yc as ee,Yd as fe,Zb as D,Zc as te,_b as f,ad as ie,bd as Q,ca as Ne,cd as Qe,d as Oe,db as Y,dc as K,ec as F,fa as Me,fc as pe,ga as Ie,gc as j,ia as le,ja as B,jc as ze,jd as H,ka as ae,kb as P,kc as Ae,lb as se,lc as Re,ma as Fe,na as R,o as Se,ob as J,pc as ge,qb as d,rc as V,sc as z,ua as $e,ub as I,va as g,vb as a,wa as u,wb as ce,yb as de,za as q,zb as M,zc as Pe}from"./chunk-UXRO4UFY.js";import{a as L}from"./chunk-7DCB7DB2.js";var mt=t=>({height:t}),yt=t=>({"p-tree-node-droppoint-active":t}),wt=(t,r)=>({$implicit:t,loading:r}),Et=(t,r)=>({$implicit:t,partialSelected:r,class:"p-tree-node-checkbox"}),Tt=t=>({$implicit:t});function kt(t,r){if(t&1){let e=k();h(0,"li",11),b("drop",function(i){g(e);let o=s(2);return u(o.onDropPoint(i,-1))})("dragover",function(i){g(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){g(e);let o=s(2);return u(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){g(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),_()}if(t&2){let e=s(2);a("ngClass",V(2,yt,e.draghoverPrev)),I("aria-hidden",!0)}}function Dt(t,r){t&1&&E(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Vt(t,r){t&1&&E(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Ot(t,r){if(t&1&&(v(0),d(1,Dt,1,1,"ChevronRightIcon",12)(2,Vt,1,1,"ChevronDownIcon",12),N()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function Mt(t,r){t&1&&(v(0),E(1,"SpinnerIcon",13),N()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function Ft(t,r){if(t&1&&(v(0),d(1,Ot,3,2,"ng-container",5)(2,Mt,2,1,"ng-container",5),N()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function $t(t,r){}function Lt(t,r){t&1&&d(0,$t,0,0,"ng-template")}function zt(t,r){if(t&1&&(h(0,"span",14),d(1,Lt,1,0,null,15),_()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",z(2,wt,e.node.expanded,e.node.loading))}}function At(t,r){}function Rt(t,r){t&1&&d(0,At,0,0,"ng-template")}function Pt(t,r){if(t&1&&d(0,Rt,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",z(2,Et,e.isSelected(),e.node.partialSelected))}}function Ut(t,r){t&1&&(v(0),d(1,Pt,1,5,"ng-template",null,0,w),N())}function Qt(t,r){if(t&1){let e=k();h(0,"p-checkbox",16),b("click",function(i){return g(e),u(i.preventDefault())}),d(1,Ut,3,0,"ng-container",5),_()}if(t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),I("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Ht(t,r){if(t&1&&E(0,"span"),t&2){let e=s(2);M(e.getIcon())}}function Bt(t,r){if(t&1&&(h(0,"span"),F(1),_()),t&2){let e=s(2);c(),pe(e.node.label)}}function qt(t,r){t&1&&S(0)}function Kt(t,r){if(t&1&&(h(0,"span"),d(1,qt,1,0,"ng-container",15),_()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",V(2,Tt,e.node))}}function jt(t,r){if(t&1&&E(0,"p-treeNode",19),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(3);a("node",e)("parentNode",l.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function Wt(t,r){if(t&1&&(h(0,"ul",17),d(1,jt,1,8,"p-treeNode",18),_()),t&2){let e=s(2);ce("display",e.node.expanded?"flex":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Gt(t,r){if(t&1){let e=k();h(0,"li",11),b("drop",function(i){g(e);let o=s(2);return u(o.onDropPoint(i,1))})("dragover",function(i){g(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){g(e);let o=s(2);return u(o.onDropPointDragEnter(i,1))})("dragleave",function(i){g(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),_()}if(t&2){let e=s(2);a("ngClass",V(2,yt,e.draghoverNext)),I("aria-hidden",!0)}}function Yt(t,r){if(t&1){let e=k();d(0,kt,1,4,"li",1),h(1,"li",2),b("keydown",function(i){g(e);let o=s();return u(o.onKeyDown(i))}),h(2,"div",3),b("click",function(i){g(e);let o=s();return u(o.onNodeClick(i))})("contextmenu",function(i){g(e);let o=s();return u(o.onNodeRightClick(i))})("dblclick",function(i){g(e);let o=s();return u(o.onNodeDblClick(i))})("touchend",function(){g(e);let i=s();return u(i.onNodeTouchEnd())})("drop",function(i){g(e);let o=s();return u(o.onDropNode(i))})("dragover",function(i){g(e);let o=s();return u(o.onDropNodeDragOver(i))})("dragenter",function(i){g(e);let o=s();return u(o.onDropNodeDragEnter(i))})("dragleave",function(i){g(e);let o=s();return u(o.onDropNodeDragLeave(i))})("dragstart",function(i){g(e);let o=s();return u(o.onDragStart(i))})("dragend",function(i){g(e);let o=s();return u(o.onDragStop(i))}),h(3,"button",4),b("click",function(i){g(e);let o=s();return u(o.toggle(i))}),d(4,Ft,3,2,"ng-container",5)(5,zt,2,5,"span",6),_(),d(6,Qt,2,8,"p-checkbox",7)(7,Ht,1,2,"span",8),h(8,"span",9),d(9,Bt,2,1,"span",5)(10,Kt,2,4,"span",5),_()(),d(11,Wt,2,4,"ul",10),_(),d(12,Gt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),de(e.node.style),M(e.node.styleClass),a("ngClass",e.nodeClass)("ngStyle",V(29,mt,e.itemSize+"px")),I("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),ce("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),I("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var ht=["filter"],Jt=["node"],Xt=["header"],Zt=["footer"],ei=["loader"],ti=["empty"],ii=["togglericon"],ni=["checkboxicon"],oi=["loadingicon"],ri=["filtericon"],li=["scroller"],ai=["wrapper"],si=t=>({options:t});function ci(t,r){if(t&1&&E(0,"i"),t&2){let e=s(2);M("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function di(t,r){t&1&&E(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function pi(t,r){}function gi(t,r){t&1&&d(0,pi,0,0,"ng-template")}function ui(t,r){if(t&1&&(h(0,"span",17),d(1,gi,1,0,null,9),_()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function hi(t,r){if(t&1&&(v(0),d(1,di,1,2,"SpinnerIcon",14)(2,ui,2,1,"span",15),N()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function _i(t,r){if(t&1&&(h(0,"div",12),d(1,ci,1,2,"i",13)(2,hi,3,2,"ng-container",10),_()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function fi(t,r){t&1&&S(0)}function mi(t,r){t&1&&S(0)}function yi(t,r){if(t&1&&d(0,mi,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",V(2,Tt,e.filterOptions))}}function Ti(t,r){t&1&&E(0,"SearchIcon",21)}function Ci(t,r){}function bi(t,r){t&1&&d(0,Ci,0,0,"ng-template")}function xi(t,r){if(t&1&&(h(0,"span"),d(1,bi,1,0,null,9),_()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Si(t,r){if(t&1){let e=k();h(0,"p-iconField")(1,"input",19,0),b("keydown.enter",function(i){return g(e),u(i.preventDefault())})("input",function(i){g(e);let o=s(2);return u(o._filter(i.target.value))}),_(),h(3,"p-inputIcon"),d(4,Ti,1,0,"SearchIcon",20)(5,xi,2,1,"span",10),_()()}if(t&2){let e=s(2);c(),a("pAutoFocus",e.filterInputAutoFocus),I("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function vi(t,r){if(t&1&&d(0,Si,6,4,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function Ni(t,r){if(t&1&&E(0,"p-treeNode",27,3),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(2).options,p=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)}}function Ii(t,r){if(t&1&&(h(0,"ul",25),d(1,Ni,2,10,"p-treeNode",26),_()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);de(i.contentStyle),a("ngClass",i.contentStyleClass),I("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function wi(t,r){if(t&1&&d(0,Ii,2,7,"ul",24),t&2){let e=r.$implicit;a("ngIf",e)}}function Ei(t,r){t&1&&S(0)}function ki(t,r){if(t&1&&d(0,Ei,1,0,"ng-container",18),t&2){let e=r.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",V(2,si,e))}}function Di(t,r){t&1&&(v(0),d(1,ki,1,4,"ng-template",null,4,w),N())}function Vi(t,r){if(t&1){let e=k();h(0,"p-scroller",23,1),b("onScroll",function(i){g(e);let o=s(2);return u(o.onScroll.emit(i))})("onScrollIndexChange",function(i){g(e);let o=s(2);return u(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){g(e);let o=s(2);return u(o.onLazyLoad.emit(i))}),d(2,wi,1,1,"ng-template",null,2,w)(4,Di,3,0,"ng-container",10),_()}if(t&2){let e=s(2);de(V(9,mt,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Oi(t,r){if(t&1&&E(0,"p-treeNode",32),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",l.loadingMode)}}function Mi(t,r){if(t&1&&(h(0,"ul",30),d(1,Oi,1,6,"p-treeNode",31),_()),t&2){let e=s(3);I("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Fi(t,r){if(t&1&&(v(0),h(1,"div",28,5),d(3,Mi,2,4,"ul",29),_(),N()),t&2){let e=s(2);c(),ce("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function $i(t,r){if(t&1&&(v(0),d(1,Vi,5,11,"p-scroller",22)(2,Fi,4,3,"ng-container",10),N()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function Li(t,r){if(t&1&&(v(0),F(1),N()),t&2){let e=s(2);c(),j(" ",e.emptyMessageLabel," ")}}function zi(t,r){}function Ai(t,r){t&1&&d(0,zi,0,0,"ng-template",null,6,w)}function Ri(t,r){if(t&1&&(h(0,"div",33),d(1,Li,2,1,"ng-container",34)(2,Ai,2,0,null,9),_()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pi(t,r){t&1&&S(0)}var Ui=({dt:t})=>`
|
|
1
|
+
import{a as gt,b as ut}from"./chunk-6JAL37Y4.js";import{b as lt}from"./chunk-4QQTEPQT.js";import{a as it}from"./chunk-CWITQVZH.js";import{a as nt,b as at,c as st,d as ct,e as pt}from"./chunk-LMJVRREP.js";import{a as Te,b as De}from"./chunk-3LBZDIW2.js";import{a as dt}from"./chunk-KTCV3KOE.js";import{a as ot}from"./chunk-KZDE63UL.js";import{d as rt}from"./chunk-EJDRY7MH.js";import{b as et,c as tt}from"./chunk-JOXTERIM.js";import{a as He}from"./chunk-7VKFVS7K.js";import{a as ye,b as Xe,c as Ze}from"./chunk-VFTGIP5A.js";import{a as re}from"./chunk-LE3BKIDY.js";import{B as je,T as Ee,U as We,a as A,ca as ke,ea as Ge,la as G,ma as $,na as Ye,oa as Je,r as we,s as qe,t as W,ua as me,v as oe,w as Ke}from"./chunk-EEEAUYZ6.js";import{F as ne,a as Be,h as he,o as _e}from"./chunk-RVXZOIFQ.js";import{a as ue}from"./chunk-ZZGSAFGO.js";import{$a as c,$b as m,Ac as Ue,Db as X,Fa as T,Fc as w,Ia as Le,Ib as h,Jb as _,Kb as E,Lb as v,Mb as N,Mc as y,Nb as S,Nc as U,Ob as k,Qb as b,Rb as s,Wc as Z,Y as ve,Yb as C,Yc as ee,Yd as fe,Zb as D,Zc as te,_b as f,ad as ie,bd as Q,ca as Ne,cd as Qe,d as Oe,db as Y,dc as K,ec as F,fa as Me,fc as pe,ga as Ie,gc as j,ia as le,ja as B,jc as ze,jd as H,ka as ae,kb as P,kc as Ae,lb as se,lc as Re,ma as Fe,na as R,o as Se,ob as J,pc as ge,qb as d,rc as V,sc as z,ua as $e,ub as I,va as g,vb as a,wa as u,wb as ce,yb as de,za as q,zb as M,zc as Pe}from"./chunk-UXRO4UFY.js";import{a as L}from"./chunk-7DCB7DB2.js";var mt=t=>({height:t}),yt=t=>({"p-tree-node-droppoint-active":t}),wt=(t,r)=>({$implicit:t,loading:r}),Et=(t,r)=>({$implicit:t,partialSelected:r,class:"p-tree-node-checkbox"}),Tt=t=>({$implicit:t});function kt(t,r){if(t&1){let e=k();h(0,"li",11),b("drop",function(i){g(e);let o=s(2);return u(o.onDropPoint(i,-1))})("dragover",function(i){g(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){g(e);let o=s(2);return u(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){g(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),_()}if(t&2){let e=s(2);a("ngClass",V(2,yt,e.draghoverPrev)),I("aria-hidden",!0)}}function Dt(t,r){t&1&&E(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Vt(t,r){t&1&&E(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Ot(t,r){if(t&1&&(v(0),d(1,Dt,1,1,"ChevronRightIcon",12)(2,Vt,1,1,"ChevronDownIcon",12),N()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function Mt(t,r){t&1&&(v(0),E(1,"SpinnerIcon",13),N()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function Ft(t,r){if(t&1&&(v(0),d(1,Ot,3,2,"ng-container",5)(2,Mt,2,1,"ng-container",5),N()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function $t(t,r){}function Lt(t,r){t&1&&d(0,$t,0,0,"ng-template")}function zt(t,r){if(t&1&&(h(0,"span",14),d(1,Lt,1,0,null,15),_()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",z(2,wt,e.node.expanded,e.node.loading))}}function At(t,r){}function Rt(t,r){t&1&&d(0,At,0,0,"ng-template")}function Pt(t,r){if(t&1&&d(0,Rt,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",z(2,Et,e.isSelected(),e.node.partialSelected))}}function Ut(t,r){t&1&&(v(0),d(1,Pt,1,5,"ng-template",null,0,w),N())}function Qt(t,r){if(t&1){let e=k();h(0,"p-checkbox",16),b("click",function(i){return g(e),u(i.preventDefault())}),d(1,Ut,3,0,"ng-container",5),_()}if(t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),I("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Ht(t,r){if(t&1&&E(0,"span"),t&2){let e=s(2);M(e.getIcon())}}function Bt(t,r){if(t&1&&(h(0,"span"),F(1),_()),t&2){let e=s(2);c(),pe(e.node.label)}}function qt(t,r){t&1&&S(0)}function Kt(t,r){if(t&1&&(h(0,"span"),d(1,qt,1,0,"ng-container",15),_()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",V(2,Tt,e.node))}}function jt(t,r){if(t&1&&E(0,"p-treeNode",19),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(3);a("node",e)("parentNode",l.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function Wt(t,r){if(t&1&&(h(0,"ul",17),d(1,jt,1,8,"p-treeNode",18),_()),t&2){let e=s(2);ce("display",e.node.expanded?"flex":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Gt(t,r){if(t&1){let e=k();h(0,"li",11),b("drop",function(i){g(e);let o=s(2);return u(o.onDropPoint(i,1))})("dragover",function(i){g(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){g(e);let o=s(2);return u(o.onDropPointDragEnter(i,1))})("dragleave",function(i){g(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),_()}if(t&2){let e=s(2);a("ngClass",V(2,yt,e.draghoverNext)),I("aria-hidden",!0)}}function Yt(t,r){if(t&1){let e=k();d(0,kt,1,4,"li",1),h(1,"li",2),b("keydown",function(i){g(e);let o=s();return u(o.onKeyDown(i))}),h(2,"div",3),b("click",function(i){g(e);let o=s();return u(o.onNodeClick(i))})("contextmenu",function(i){g(e);let o=s();return u(o.onNodeRightClick(i))})("dblclick",function(i){g(e);let o=s();return u(o.onNodeDblClick(i))})("touchend",function(){g(e);let i=s();return u(i.onNodeTouchEnd())})("drop",function(i){g(e);let o=s();return u(o.onDropNode(i))})("dragover",function(i){g(e);let o=s();return u(o.onDropNodeDragOver(i))})("dragenter",function(i){g(e);let o=s();return u(o.onDropNodeDragEnter(i))})("dragleave",function(i){g(e);let o=s();return u(o.onDropNodeDragLeave(i))})("dragstart",function(i){g(e);let o=s();return u(o.onDragStart(i))})("dragend",function(i){g(e);let o=s();return u(o.onDragStop(i))}),h(3,"button",4),b("click",function(i){g(e);let o=s();return u(o.toggle(i))}),d(4,Ft,3,2,"ng-container",5)(5,zt,2,5,"span",6),_(),d(6,Qt,2,8,"p-checkbox",7)(7,Ht,1,2,"span",8),h(8,"span",9),d(9,Bt,2,1,"span",5)(10,Kt,2,4,"span",5),_()(),d(11,Wt,2,4,"ul",10),_(),d(12,Gt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),de(e.node.style),M(e.node.styleClass),a("ngClass",e.nodeClass)("ngStyle",V(29,mt,e.itemSize+"px")),I("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),ce("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),I("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var ht=["filter"],Jt=["node"],Xt=["header"],Zt=["footer"],ei=["loader"],ti=["empty"],ii=["togglericon"],ni=["checkboxicon"],oi=["loadingicon"],ri=["filtericon"],li=["scroller"],ai=["wrapper"],si=t=>({options:t});function ci(t,r){if(t&1&&E(0,"i"),t&2){let e=s(2);M("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function di(t,r){t&1&&E(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function pi(t,r){}function gi(t,r){t&1&&d(0,pi,0,0,"ng-template")}function ui(t,r){if(t&1&&(h(0,"span",17),d(1,gi,1,0,null,9),_()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function hi(t,r){if(t&1&&(v(0),d(1,di,1,2,"SpinnerIcon",14)(2,ui,2,1,"span",15),N()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function _i(t,r){if(t&1&&(h(0,"div",12),d(1,ci,1,2,"i",13)(2,hi,3,2,"ng-container",10),_()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function fi(t,r){t&1&&S(0)}function mi(t,r){t&1&&S(0)}function yi(t,r){if(t&1&&d(0,mi,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",V(2,Tt,e.filterOptions))}}function Ti(t,r){t&1&&E(0,"SearchIcon",21)}function Ci(t,r){}function bi(t,r){t&1&&d(0,Ci,0,0,"ng-template")}function xi(t,r){if(t&1&&(h(0,"span"),d(1,bi,1,0,null,9),_()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Si(t,r){if(t&1){let e=k();h(0,"p-iconField")(1,"input",19,0),b("keydown.enter",function(i){return g(e),u(i.preventDefault())})("input",function(i){g(e);let o=s(2);return u(o._filter(i.target.value))}),_(),h(3,"p-inputIcon"),d(4,Ti,1,0,"SearchIcon",20)(5,xi,2,1,"span",10),_()()}if(t&2){let e=s(2);c(),a("pAutoFocus",e.filterInputAutoFocus),I("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function vi(t,r){if(t&1&&d(0,Si,6,4,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function Ni(t,r){if(t&1&&E(0,"p-treeNode",27,3),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(2).options,p=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)}}function Ii(t,r){if(t&1&&(h(0,"ul",25),d(1,Ni,2,10,"p-treeNode",26),_()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);de(i.contentStyle),a("ngClass",i.contentStyleClass),I("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function wi(t,r){if(t&1&&d(0,Ii,2,7,"ul",24),t&2){let e=r.$implicit;a("ngIf",e)}}function Ei(t,r){t&1&&S(0)}function ki(t,r){if(t&1&&d(0,Ei,1,0,"ng-container",18),t&2){let e=r.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",V(2,si,e))}}function Di(t,r){t&1&&(v(0),d(1,ki,1,4,"ng-template",null,4,w),N())}function Vi(t,r){if(t&1){let e=k();h(0,"p-scroller",23,1),b("onScroll",function(i){g(e);let o=s(2);return u(o.onScroll.emit(i))})("onScrollIndexChange",function(i){g(e);let o=s(2);return u(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){g(e);let o=s(2);return u(o.onLazyLoad.emit(i))}),d(2,wi,1,1,"ng-template",null,2,w)(4,Di,3,0,"ng-container",10),_()}if(t&2){let e=s(2);de(V(9,mt,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Oi(t,r){if(t&1&&E(0,"p-treeNode",32),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",l.loadingMode)}}function Mi(t,r){if(t&1&&(h(0,"ul",30),d(1,Oi,1,6,"p-treeNode",31),_()),t&2){let e=s(3);I("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Fi(t,r){if(t&1&&(v(0),h(1,"div",28,5),d(3,Mi,2,4,"ul",29),_(),N()),t&2){let e=s(2);c(),ce("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function $i(t,r){if(t&1&&(v(0),d(1,Vi,5,11,"p-scroller",22)(2,Fi,4,3,"ng-container",10),N()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function Li(t,r){if(t&1&&(v(0),F(1),N()),t&2){let e=s(2);c(),j(" ",e.emptyMessageLabel," ")}}function zi(t,r){}function Ai(t,r){t&1&&d(0,zi,0,0,"ng-template",null,6,w)}function Ri(t,r){if(t&1&&(h(0,"div",33),d(1,Li,2,1,"ng-container",34)(2,Ai,2,0,null,9),_()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pi(t,r){t&1&&S(0)}var Ui=({dt:t})=>`
|
|
2
2
|
.p-tree {
|
|
3
3
|
background: ${t("tree.background")};
|
|
4
4
|
color: ${t("tree.color")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as nt}from"./chunk-5M3JINH2.js";import{c as Je,d as et,e as tt}from"./chunk-EMP32K7Q.js";import{a as pe}from"./chunk-WDQ4UKKY.js";import{c as Xe}from"./chunk-JOXTERIM.js";import{N as it}from"./chunk-5OS5VELO.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-ZHY3BUQJ.js";import{a as ze}from"./chunk-RVXZOIFQ.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-UXRO4UFY.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
|
|
1
|
+
import{a as nt}from"./chunk-5M3JINH2.js";import{c as Je,d as et,e as tt}from"./chunk-RHUDY63D.js";import{a as pe}from"./chunk-WDQ4UKKY.js";import{c as Xe}from"./chunk-JOXTERIM.js";import{N as it}from"./chunk-TSIYPTYI.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-ZHY3BUQJ.js";import{a as ze}from"./chunk-RVXZOIFQ.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-UXRO4UFY.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ce}from"./chunk-CXRVPHHO.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-EYE63KIO.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-D5P4CYL5.js";import{a as ge}from"./chunk-QEZV5DGZ.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-HIALMESF.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-HYRNR45J.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-MDY5R453.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-MXUYJQOT.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-AJCH3WAF.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-UP43YMU4.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-MDGMZ65B.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-INCYKSJF.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-FF56HWOF.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-MMX7JWK6.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-U5OIRIFT.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-YWGMCAEP.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-WYHR2ET7.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-CX4UR7ZZ.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-RAIYXIUN.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-3WSASNIT.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-IUDDIQMT.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-QU4LPPFI.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-E7L36INB.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-QDE7PB5F.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-TP762HYD.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-4SFHOQ3Y.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-NZXT22JH.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-RDLECCOU.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-ZBTG35T6.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-AQUQUDDZ.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-D6VG5PSE.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-A7R2DZD3.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|
|
1
|
+
import{a as Ce}from"./chunk-HJVO2MYG.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-T4OMGJF4.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-FSTDHLYH.js";import{a as ge}from"./chunk-WEGDL4GR.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-346EL5B3.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-ZZVT4VHZ.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-O2QDJGKT.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-INZKDGM2.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-2HUEFC2T.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-5YUUUZD3.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-ON5DTHAP.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-LAFPISY6.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-CODMBGPI.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-BJMIDKW4.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-B6STMZWX.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-ROR3RTY5.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-CFSBMQ5D.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-ACD7MZMQ.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-KTD4OMXY.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-V73DMOF7.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-L7IGIQVH.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-IFFXFKVP.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-AXLH4KKX.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-2LMF4IMC.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-HMU3DWZJ.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-6KPCTTDA.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-OB764IZP.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-4RRARGON.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-DKDOVSVH.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-RP455IK5.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-SEXUIUP5.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-BJ4ZY3VJ.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|