dealpos 25.45.2 → 25.45.3
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-4KBU47GN.js → chunk-22NVMHH6.js} +1 -1
- package/browser/{chunk-XRLRUCRR.js → chunk-2C4IBLGB.js} +1 -1
- package/browser/{chunk-MXGNASOC.js → chunk-2DIXJDGB.js} +1 -1
- package/browser/{chunk-6Q7J43H4.js → chunk-33ZPF662.js} +1 -1
- package/browser/{chunk-FAGD2TBB.js → chunk-3BWHPHJH.js} +1 -1
- package/browser/{chunk-W5N6DMDQ.js → chunk-3CUAWAR5.js} +1 -1
- package/browser/{chunk-JGWQC4DI.js → chunk-3KOU5F5K.js} +1 -1
- package/browser/{chunk-KDOS4X4T.js → chunk-3VIZOW4E.js} +1 -1
- package/browser/{chunk-7USHMTB5.js → chunk-4625NAET.js} +1 -1
- package/browser/{chunk-L453AX2W.js → chunk-46LKSZ72.js} +1 -1
- package/browser/{chunk-XF5XKXE6.js → chunk-4AZPLO6R.js} +1 -1
- package/browser/{chunk-MHZV4BL7.js → chunk-4EBEGG7N.js} +1 -1
- package/browser/{chunk-7FUWLNHK.js → chunk-4ERXA7JB.js} +1 -1
- package/browser/{chunk-DU7W2G2L.js → chunk-4F3O7MBT.js} +1 -1
- package/browser/{chunk-5ZU5FBGM.js → chunk-5E73XXM5.js} +1 -1
- package/browser/{chunk-PUFGTKWO.js → chunk-6OAVGGZR.js} +1 -1
- package/browser/{chunk-G4XFK7EF.js → chunk-6VCRA6WE.js} +1 -1
- package/browser/{chunk-NM3RF6OH.js → chunk-6YBAFFT7.js} +1 -1
- package/browser/{chunk-DG4IHOM2.js → chunk-77EIGTXF.js} +1 -1
- package/browser/{chunk-T3HVVJIV.js → chunk-AAIREWAF.js} +1 -1
- package/browser/{chunk-FAN4YDVT.js → chunk-AVKLOI56.js} +1 -1
- package/browser/{chunk-SICZ4VWZ.js → chunk-BG3UC4MA.js} +1 -1
- package/browser/{chunk-OKVQYK4Y.js → chunk-CGHND263.js} +1 -1
- package/browser/{chunk-TWVDGGTY.js → chunk-CH65LZTB.js} +1 -1
- package/browser/{chunk-M4BTEXS6.js → chunk-CIOPCHTA.js} +1 -1
- package/browser/{chunk-NERV3W42.js → chunk-CMG3JZBL.js} +1 -1
- package/browser/{chunk-RKCNENWQ.js → chunk-CR53NEWY.js} +1 -1
- package/browser/{chunk-WXJTNRD3.js → chunk-CUZ2P4GN.js} +1 -1
- package/browser/{chunk-YM2ZQTDF.js → chunk-CYDUVVNV.js} +1 -1
- package/browser/{chunk-6VM27TUY.js → chunk-DM5KRX4N.js} +1 -1
- package/browser/{chunk-KB64CIW5.js → chunk-DZ5UEHSP.js} +2 -2
- package/browser/{chunk-TPHEWWHE.js → chunk-EOVLGUH4.js} +2 -2
- package/browser/{chunk-WRZUQ2QI.js → chunk-F5QXBEYT.js} +1 -1
- package/browser/{chunk-HC2YTBED.js → chunk-FRIGXAFX.js} +1 -1
- package/browser/{chunk-M76YU6SQ.js → chunk-GC42WNFK.js} +1 -1
- package/browser/{chunk-BXGUZIC4.js → chunk-GRYOWZWF.js} +1 -1
- package/browser/{chunk-W34NDG3T.js → chunk-GVDW25BL.js} +1 -1
- package/browser/{chunk-2BSYBLS4.js → chunk-H2F3XJG4.js} +1 -1
- package/browser/{chunk-PCFR4J66.js → chunk-HAUYP6EM.js} +1 -1
- package/browser/{chunk-MFDMUMA4.js → chunk-HHA2WIAI.js} +1 -1
- package/browser/{chunk-A6F6V3WW.js → chunk-HSO5UAHM.js} +1 -1
- package/browser/{chunk-VBX5VOJG.js → chunk-I2VB7YW5.js} +1 -1
- package/browser/{chunk-KTV4REGV.js → chunk-ILF6INR3.js} +1 -1
- package/browser/{chunk-KL5VH4OU.js → chunk-ILVJN5WK.js} +1 -1
- package/browser/{chunk-DZA27E5L.js → chunk-ITGKZZKN.js} +1 -1
- package/browser/{chunk-HHSXXJFJ.js → chunk-KAP3XAKD.js} +1 -1
- package/browser/{chunk-XHA6WGTO.js → chunk-KIGK4MIG.js} +1 -1
- package/browser/{chunk-GINPKODK.js → chunk-LJEV2ZV2.js} +1 -1
- package/browser/chunk-LX5Y3A5M.js +1 -0
- package/browser/{chunk-5I74KDE7.js → chunk-MJ47GTOZ.js} +1 -1
- package/browser/{chunk-IPJU7D3K.js → chunk-MWTYJ7IH.js} +1 -1
- package/browser/{chunk-UYXD7WPN.js → chunk-NEGD2WNQ.js} +1 -1
- package/browser/{chunk-ZEXXJZ7U.js → chunk-NMCQUNZH.js} +1 -1
- package/browser/{chunk-IJXCL7KL.js → chunk-O5KA5MMP.js} +1 -1
- package/browser/{chunk-IAFZ6YAO.js → chunk-ORRKQYPI.js} +1 -1
- package/browser/{chunk-J3OQGBIN.js → chunk-PPZ32IZ2.js} +1 -1
- package/browser/{chunk-YQE3PJGM.js → chunk-Q2J2SO2R.js} +2 -2
- package/browser/{chunk-IE2H4VRD.js → chunk-Q6OIURPZ.js} +1 -1
- package/browser/{chunk-PNN75KZR.js → chunk-QFX4AV7Q.js} +1 -1
- package/browser/{chunk-HBH23XBO.js → chunk-QN5Q4MBZ.js} +1 -1
- package/browser/{chunk-TCR2YYM5.js → chunk-QWRZNHUN.js} +1 -1
- package/browser/{chunk-USEPOJ5L.js → chunk-RGVY2URX.js} +1 -1
- package/browser/{chunk-IUE6IUOH.js → chunk-RNR2IPVG.js} +1 -1
- package/browser/{chunk-EGADVOKH.js → chunk-RSG2H3EZ.js} +1 -1
- package/browser/{chunk-OLT6DXR7.js → chunk-RYP3CAST.js} +1 -1
- package/browser/{chunk-GUF6JXSS.js → chunk-SARRXJEA.js} +1 -1
- package/browser/{chunk-B6EKSPI2.js → chunk-SF6Y2ZD7.js} +1 -1
- package/browser/{chunk-3MUHZKUR.js → chunk-SSWQWX6U.js} +1 -1
- package/browser/{chunk-IQ7VK4UE.js → chunk-U3OOMEJP.js} +2 -2
- package/browser/{chunk-IAFZ75L3.js → chunk-UIBGGB5A.js} +2 -2
- package/browser/{chunk-X6XUOWVT.js → chunk-UJEMS3PZ.js} +2 -2
- package/browser/{chunk-PIW2M2DH.js → chunk-UL4VWOCQ.js} +1 -1
- package/browser/{chunk-N43HXORE.js → chunk-V7BXEFFF.js} +1 -1
- package/browser/{chunk-OKEI5RKW.js → chunk-VIKPSX57.js} +1 -1
- package/browser/{chunk-6A3BN6JC.js → chunk-VKFHCLH2.js} +1 -1
- package/browser/{chunk-7EVERJPZ.js → chunk-VPLMHY4N.js} +1 -1
- package/browser/{chunk-XKAKP3E6.js → chunk-WAGPHMU4.js} +1 -1
- package/browser/{chunk-L3JI6OZ3.js → chunk-WLUHQZCT.js} +1 -1
- package/browser/{chunk-IT7I47UZ.js → chunk-XFKVXTNV.js} +1 -1
- package/browser/{chunk-N7C7P5QN.js → chunk-XHCWRYJP.js} +1 -1
- package/browser/{chunk-DJNB7COU.js → chunk-XKPLC5YT.js} +1 -1
- package/browser/{chunk-5PWOYB4R.js → chunk-ZD7XFJLT.js} +2 -2
- package/browser/{chunk-3RGQWWNI.js → chunk-ZG2NIMQL.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-7FKCOQYA.js → main-GDASXFAJ.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-FSGCO2Z5.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ct,b as St}from"./chunk-RFVQHGYD.js";import{b as _t}from"./chunk-V7HBROQ5.js";import{a as ft}from"./chunk-G7HGWSUU.js";import{a as ht,b as yt,c as bt,d as vt,e as xt}from"./chunk-2QD46TNT.js";import{a as Te,b as Le}from"./chunk-YQ5GJPDB.js";import{a as mt}from"./chunk-KMYTSO3Q.js";import{a as Tt}from"./chunk-BRHHRJLT.js";import{c as gt}from"./chunk-
|
|
1
|
+
import{a as Ct,b as St}from"./chunk-RFVQHGYD.js";import{b as _t}from"./chunk-V7HBROQ5.js";import{a as ft}from"./chunk-G7HGWSUU.js";import{a as ht,b as yt,c as bt,d as vt,e as xt}from"./chunk-2QD46TNT.js";import{a as Te,b as Le}from"./chunk-YQ5GJPDB.js";import{a as mt}from"./chunk-KMYTSO3Q.js";import{a as Tt}from"./chunk-BRHHRJLT.js";import{c as gt}from"./chunk-ILF6INR3.js";import{b as pt,c as ut}from"./chunk-VQBUIUJC.js";import{a as Ye}from"./chunk-DB3W42KN.js";import{a as ve,b as at,c as ct,d as dt}from"./chunk-TX6ZFPHY.js";import{b as ot,c as Fe,i as st}from"./chunk-YZP4FX7D.js";import{E as tt,G as nt,U as Ve,V as it,a as z,da as Oe,la as Z,m as Xe,ma as H,na as lt,oa as rt,u as De,ua as be,v as Ze,w as X,y as se,z as et}from"./chunk-WAXYETAG.js";import{F as ae,a as Je,h as me,o as _e}from"./chunk-OJ5SEYSF.js";import{a as he}from"./chunk-TS6CZC3J.js";import{Bb as s,Bc as qe,Ca as pe,Cb as h,Cc as Ke,Db as y,Eb as N,Ha as Re,Hc as k,Ia as W,Ib as I,Jb as w,Kb as C,Kc as P,Lb as D,Nb as x,Oc as je,Pb as a,Pc as oe,Sb as T,Tb as M,Ub as m,Vb as _,Wa as c,Xa as v,Xc as b,Y as we,Yc as $,Zb as G,_b as Me,ac as Y,bc as f,ca as Ee,cb as te,cc as L,cd as We,d as He,dc as ge,ec as J,ed as le,ee as ye,fa as Pe,fd as re,ga as ke,gb as R,hb as ue,hc as Qe,ic as Be,id as fe,jc as Ue,jd as q,ka as ce,kb as ne,kd as Ge,la as j,ma as de,mb as d,o as Ie,oa as ze,pa as O,rc as ie,rd as K,sb as E,ta as u,tc as A,ua as g,ub as Q,uc as U,va as F,vc as $e,wb as B}from"./chunk-VS3RTXZC.js";import{a as ee}from"./chunk-SNAKHGZS.js";var Nt=`
|
|
2
2
|
.p-tree {
|
|
3
3
|
display: block;
|
|
4
4
|
background: dt('tree.background');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as _t}from"./chunk-LJMHI6I5.js";import{a as ct,b as dt,c as ut,d as ht,e as mt}from"./chunk-2QD46TNT.js";import{a as rt}from"./chunk-YQ5GJPDB.js";import{a as pt}from"./chunk-KMYTSO3Q.js";import{a as ft}from"./chunk-BRHHRJLT.js";import{b as at}from"./chunk-
|
|
1
|
+
import{a as _t}from"./chunk-LJMHI6I5.js";import{a as ct,b as dt,c as ut,d as ht,e as mt}from"./chunk-2QD46TNT.js";import{a as rt}from"./chunk-YQ5GJPDB.js";import{a as pt}from"./chunk-KMYTSO3Q.js";import{a as ft}from"./chunk-BRHHRJLT.js";import{b as at}from"./chunk-ILF6INR3.js";import{a as st,d as pe}from"./chunk-3LPZYQS6.js";import{a as ot,d as lt}from"./chunk-TX6ZFPHY.js";import{b as se,c as ce,f as it,g as nt}from"./chunk-YZP4FX7D.js";import{E as Ue,G as H,O as je,P as Ze,R as Te,S as Ye,U as le,V as $,W as Je,Z as Ie,a as Y,ca as Xe,g as Ke,h as Ne,ha as et,i as Ge,la as tt,m as k,ma as J,na as ae,p as xe,t as qe,ua as re,v as L,w as A,y as $e,z as We}from"./chunk-WAXYETAG.js";import{a as Qe}from"./chunk-OJ5SEYSF.js";import{Bb as r,Ca as K,Cb as f,Db as m,Eb as D,Ha as Ve,Hb as Fe,Hc as z,Ia as R,Ib as I,Jb as O,Kb as w,Kc as q,Lb as E,Lc as Pe,Nb as x,Pb as s,Pc as oe,Sb as v,Tb as F,Ub as d,Vb as u,Wa as c,Xa as C,Xc as h,Ya as ie,Yc as V,Zb as G,_b as Me,ac as fe,bc as g,cb as N,cc as Q,dc as j,eb as ke,ec as me,ed as Re,fd as ge,gb as U,hb as ne,hc as De,ib as Le,ic as ze,id as be,jc as Ae,jd as ye,ka as Ee,kb as B,la as ee,ma as te,mb as p,pa as W,rc as Z,rd as ve,sb as T,sc as He,sd as Be,ta as b,tc as S,ua as y,ub as ue,uc as _e,va as M,wb as he}from"./chunk-VS3RTXZC.js";import{a as P,b as Ce}from"./chunk-SNAKHGZS.js";var gt=`
|
|
2
2
|
.p-tooltip {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Et}from"./chunk-RMIJZMA5.js";import{e as Rt}from"./chunk-FADT3LJL.js";import{a as He,b as Ae,c as Ke,d as Ne,e as Qe}from"./chunk-4ZFVM7K7.js";import{a as kt,b as Mt,c as Dt}from"./chunk-XRLRUCRR.js";import{a as St,b as It}from"./chunk-KFUPP33B.js";import{e as Tt}from"./chunk-XF5XKXE6.js";import{e as xt,f as je}from"./chunk-2QD46TNT.js";import{b as Ge}from"./chunk-YQ5GJPDB.js";import{a as Ct}from"./chunk-BRHHRJLT.js";import{d as wt}from"./chunk-KTV4REGV.js";import{a as Z,b as _,c as vt}from"./chunk-3LPZYQS6.js";import{a as _t,e as yt}from"./chunk-TX6ZFPHY.js";import{b as ie,c as Ee,d as f,i as me}from"./chunk-YZP4FX7D.js";import{V as Re,W as ve,fa as ft,ga as Pe,ha as mt,ia as bt,la as ne,ma as Q,ua as oe}from"./chunk-WAXYETAG.js";import{F as Ie,a as fe,g as ut,h as ht,o as gt}from"./chunk-OJ5SEYSF.js";import{$b as at,Ab as ot,Bb as r,Cb as T,Db as S,Eb as z,Fb as A,Gb as K,Ha as Ye,Hb as O,Hc as we,Ia as I,Ib as M,Ja as be,Jb as D,Kb as y,Kc as st,Lb as Y,Ma as et,Mb as W,Nb as N,Pb as c,Pc as X,Sb as m,Tb as G,Ub as h,Vb as g,Vc as Ve,Wa as s,Xa as v,Xc as b,Ya as Le,Yc as V,Zb as ze,_b as xe,ac as _e,bb as tt,bc as x,cb as B,cc as Oe,cd as dt,d as ge,dc as lt,ed as ct,fd as Se,gb as E,hb as se,ib as Ce,id as pt,jd as ee,ka as le,kb as k,la as j,lb as it,ma as re,mb as p,pa as F,rc as U,rd as te,sb as R,sd as ue,ta as $,tc as J,ua as q,ub as de,uc as pe,va as L,wb as ce,wc as Be,xa as Ze,xc as Te,ya as Xe,yc as ye,zb as nt,zc as rt}from"./chunk-VS3RTXZC.js";import{a as Fe,b as Je}from"./chunk-SNAKHGZS.js";var ei=["data-p-icon","filter"],Ft=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter"]],features:[k],attrs:ei,decls:5,vars:2,consts:[["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ti=["data-p-icon","filter-slash"],Lt=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter-slash"]],features:[k],attrs:ti,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ii=["data-p-icon","plus"],zt=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","plus"]],features:[k],attrs:ii,decls:5,vars:2,consts:[["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ni=["data-p-icon","trash"],Ot=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","trash"]],features:[k],attrs:ni,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var oi=["data-p-icon","filter-fill"],Bt=(()=>{class t extends Z{static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter-fill"]],features:[k],attrs:oi,decls:1,vars:0,consts:[["d","M13.7274 0.33847C13.6228 0.130941 13.4095 0 13.1764 0H0.82351C0.590451 0 0.377157 0.130941 0.272568 0.33847C0.167157 0.545999 0.187746 0.795529 0.325275 0.98247L4.73527 6.99588V13.3824C4.73527 13.7233 5.01198 14 5.35292 14H8.64704C8.98798 14 9.26469 13.7233 9.26469 13.3824V6.99588L13.6747 0.98247C13.8122 0.795529 13.8328 0.545999 13.7274 0.33847Z","fill","currentColor"]],template:function(i,n){i&1&&(L(),O(0,"path",0))},encapsulation:2})}return t})();var Vt=`
|
|
1
|
+
import{b as Et}from"./chunk-RMIJZMA5.js";import{e as Rt}from"./chunk-FADT3LJL.js";import{a as He,b as Ae,c as Ke,d as Ne,e as Qe}from"./chunk-4ZFVM7K7.js";import{a as kt,b as Mt,c as Dt}from"./chunk-2C4IBLGB.js";import{a as St,b as It}from"./chunk-KFUPP33B.js";import{e as Tt}from"./chunk-4AZPLO6R.js";import{e as xt,f as je}from"./chunk-2QD46TNT.js";import{b as Ge}from"./chunk-YQ5GJPDB.js";import{a as Ct}from"./chunk-BRHHRJLT.js";import{d as wt}from"./chunk-ILF6INR3.js";import{a as Z,b as _,c as vt}from"./chunk-3LPZYQS6.js";import{a as _t,e as yt}from"./chunk-TX6ZFPHY.js";import{b as ie,c as Ee,d as f,i as me}from"./chunk-YZP4FX7D.js";import{V as Re,W as ve,fa as ft,ga as Pe,ha as mt,ia as bt,la as ne,ma as Q,ua as oe}from"./chunk-WAXYETAG.js";import{F as Ie,a as fe,g as ut,h as ht,o as gt}from"./chunk-OJ5SEYSF.js";import{$b as at,Ab as ot,Bb as r,Cb as T,Db as S,Eb as z,Fb as A,Gb as K,Ha as Ye,Hb as O,Hc as we,Ia as I,Ib as M,Ja as be,Jb as D,Kb as y,Kc as st,Lb as Y,Ma as et,Mb as W,Nb as N,Pb as c,Pc as X,Sb as m,Tb as G,Ub as h,Vb as g,Vc as Ve,Wa as s,Xa as v,Xc as b,Ya as Le,Yc as V,Zb as ze,_b as xe,ac as _e,bb as tt,bc as x,cb as B,cc as Oe,cd as dt,d as ge,dc as lt,ed as ct,fd as Se,gb as E,hb as se,ib as Ce,id as pt,jd as ee,ka as le,kb as k,la as j,lb as it,ma as re,mb as p,pa as F,rc as U,rd as te,sb as R,sd as ue,ta as $,tc as J,ua as q,ub as de,uc as pe,va as L,wb as ce,wc as Be,xa as Ze,xc as Te,ya as Xe,yc as ye,zb as nt,zc as rt}from"./chunk-VS3RTXZC.js";import{a as Fe,b as Je}from"./chunk-SNAKHGZS.js";var ei=["data-p-icon","filter"],Ft=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter"]],features:[k],attrs:ei,decls:5,vars:2,consts:[["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ti=["data-p-icon","filter-slash"],Lt=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter-slash"]],features:[k],attrs:ti,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ii=["data-p-icon","plus"],zt=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","plus"]],features:[k],attrs:ii,decls:5,vars:2,consts:[["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var ni=["data-p-icon","trash"],Ot=(()=>{class t extends Z{pathId;ngOnInit(){super.ngOnInit(),this.pathId="url(#"+ie()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","trash"]],features:[k],attrs:ni,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(L(),A(0,"g"),O(1,"path",0),K(),A(2,"defs")(3,"clipPath",1),O(4,"rect",2),K()()),i&2&&(R("clip-path",n.pathId),s(3),W("id",n.pathId))},encapsulation:2})}return t})();var oi=["data-p-icon","filter-fill"],Bt=(()=>{class t extends Z{static \u0275fac=(()=>{let e;return function(n){return(e||(e=I(t)))(n||t)}})();static \u0275cmp=E({type:t,selectors:[["","data-p-icon","filter-fill"]],features:[k],attrs:oi,decls:1,vars:0,consts:[["d","M13.7274 0.33847C13.6228 0.130941 13.4095 0 13.1764 0H0.82351C0.590451 0 0.377157 0.130941 0.272568 0.33847C0.167157 0.545999 0.187746 0.795529 0.325275 0.98247L4.73527 6.99588V13.3824C4.73527 13.7233 5.01198 14 5.35292 14H8.64704C8.98798 14 9.26469 13.7233 9.26469 13.3824V6.99588L13.6747 0.98247C13.8122 0.795529 13.8328 0.545999 13.7274 0.33847Z","fill","currentColor"]],template:function(i,n){i&1&&(L(),O(0,"path",0))},encapsulation:2})}return t})();var Vt=`
|
|
2
2
|
.p-radiobutton {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Pe}from"./chunk-J3OQGBIN.js";import{a as Ce}from"./chunk-OTT6RJHI.js";import{a as _e}from"./chunk-FAN4YDVT.js";import{a as be}from"./chunk-BJKHMXAA.js";import{b as Se,c as Me}from"./chunk-VQBUIUJC.js";import{a as de}from"./chunk-DB3W42KN.js";import"./chunk-EQLHPWVB.js";import"./chunk-WACBOZDR.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-OJ5SEYSF.js";import{a as T,c as f}from"./chunk-HBH23XBO.js";import{a as ve}from"./chunk-5I74KDE7.js";import{a as M,d as I}from"./chunk-TS6CZC3J.js";import{a as pe}from"./chunk-7EVERJPZ.js";import{$ as q,$b as K,$d as G,Ab as V,Bb as h,Bc as ie,Cb as o,Db as s,Dc as ne,E,Eb as p,Nb as C,Pb as Z,Ra as Y,Vd as ae,Wa as c,Xd as se,Yd as b,Zd as le,_d as ce,bc as $,be as ue,cb as v,cc as m,cd as re,d as J,da as D,dc as B,ec as z,gb as W,hb as x,la as d,ma as y,oa as _,oc as X,pa as l,rd as oe,sb as Q,tc as ee,uc as te,yb as j,zb as F}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.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.currentNavigation().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)(_(f),_(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=(N=>{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)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{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(f);menu=Oe;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 ye=[{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(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.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}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.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 ae),q(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(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,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"],[1,"dropdown-item","h5",3,"routerLink"],[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"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["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),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],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 De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().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(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);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 L=class e{reportService=l(_e);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 Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-XHA6WGTO.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-PCFR4J66.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-IAFZ75L3.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-TR5NO2CB.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-JGWQC4DI.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-IAFZ6YAO.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-7USHMTB5.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-5PWOYB4R.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-FSGCO2Z5.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-TWVDGGTY.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-KB64CIW5.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-IQ7VK4UE.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-YQE3PJGM.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-IE2H4VRD.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-OKEI5RKW.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-X6XUOWVT.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-TPHEWWHE.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-RKCNENWQ.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-USEPOJ5L.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-IPJU7D3K.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-T3HVVJIV.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-VBX5VOJG.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-MFDMUMA4.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-M76YU6SQ.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-PIW2M2DH.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-6Q7J43H4.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-ZEXXJZ7U.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
1
|
+
import{a as Pe}from"./chunk-PPZ32IZ2.js";import{a as Ce}from"./chunk-OTT6RJHI.js";import{a as _e}from"./chunk-AVKLOI56.js";import{a as be}from"./chunk-BJKHMXAA.js";import{b as Se,c as Me}from"./chunk-VQBUIUJC.js";import{a as de}from"./chunk-DB3W42KN.js";import"./chunk-EQLHPWVB.js";import"./chunk-WACBOZDR.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-OJ5SEYSF.js";import{a as T,c as f}from"./chunk-QN5Q4MBZ.js";import{a as ve}from"./chunk-MJ47GTOZ.js";import{a as M,d as I}from"./chunk-TS6CZC3J.js";import{a as pe}from"./chunk-VPLMHY4N.js";import{$ as q,$b as K,$d as G,Ab as V,Bb as h,Bc as ie,Cb as o,Db as s,Dc as ne,E,Eb as p,Nb as C,Pb as Z,Ra as Y,Vd as ae,Wa as c,Xd as se,Yd as b,Zd as le,_d as ce,bc as $,be as ue,cb as v,cc as m,cd as re,d as J,da as D,dc as B,ec as z,gb as W,hb as x,la as d,ma as y,oa as _,oc as X,pa as l,rd as oe,sb as Q,tc as ee,uc as te,yb as j,zb as F}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.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.currentNavigation().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)(_(f),_(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=(N=>{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)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{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(f);menu=Oe;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 ye=[{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(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.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}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.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 ae),q(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(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,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"],[1,"dropdown-item","h5",3,"routerLink"],[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"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["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),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],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 De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().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(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);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 L=class e{reportService=l(_e);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 Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-KIGK4MIG.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-HAUYP6EM.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-UIBGGB5A.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-TR5NO2CB.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-3KOU5F5K.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-ORRKQYPI.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-4625NAET.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-ZD7XFJLT.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-LX5Y3A5M.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-CH65LZTB.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-DZ5UEHSP.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-U3OOMEJP.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-Q2J2SO2R.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-Q6OIURPZ.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-VIKPSX57.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-UJEMS3PZ.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-EOVLGUH4.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-CR53NEWY.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-RGVY2URX.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-MWTYJ7IH.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-AAIREWAF.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-I2VB7YW5.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-HHA2WIAI.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-GC42WNFK.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-UL4VWOCQ.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-33ZPF662.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-NMCQUNZH.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as W}from"./chunk-XWWKCPZS.js";import{a as B}from"./chunk-
|
|
1
|
+
import{a as V,b as W}from"./chunk-XWWKCPZS.js";import{a as B}from"./chunk-CYDUVVNV.js";import{e as J,f as q}from"./chunk-3VIZOW4E.js";import"./chunk-ILF6INR3.js";import{b as I}from"./chunk-RSG2H3EZ.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import{b as E,c as P}from"./chunk-VQBUIUJC.js";import"./chunk-HYXSN2J6.js";import"./chunk-QGYIPOLS.js";import"./chunk-WACBOZDR.js";import"./chunk-YZP4FX7D.js";import"./chunk-2FWFPV5I.js";import"./chunk-WAXYETAG.js";import"./chunk-OJ5SEYSF.js";import"./chunk-QN5Q4MBZ.js";import"./chunk-MJ47GTOZ.js";import"./chunk-TS6CZC3J.js";import"./chunk-VPLMHY4N.js";import{Bb as r,Bc as d,Cb as o,Cc as D,Db as t,Dc as C,Eb as c,Lb as j,Nb as v,Pb as b,Wa as l,Wd as M,cb as m,cc as a,dc as L,ec as x,ee as T,gb as f,kb as y,md as _,nd as k,od as w,rd as R,ta as u,ua as g,ub as h,wb as S}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function A(p,i){if(p&1){let e=j();o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h3"),a(8,"General"),t()(),o(9,"div",6)(10,"div",2)(11,"div",7),c(12,"floatinglabel",8),d(13,"date"),t(),o(14,"div",7),c(15,"floatinglabel",9),d(16,"number"),t()(),o(17,"div",2)(18,"div",7),c(19,"floatinglabel",10),t()()()()()(),o(20,"div",2)(21,"div",7)(22,"div",4)(23,"div",11)(24,"div",12)(25,"h3"),a(26,"Request"),t()(),o(27,"div",13)(28,"button",14),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),a(29,"Copy Request to Clipboard"),t()()(),o(30,"div",6)(31,"pre",15),a(32),d(33,"json"),t()()()(),o(34,"div",7)(35,"div",4)(36,"div",11)(37,"div",12)(38,"h3"),a(39,"Response"),t()(),o(40,"div",13)(41,"button",16),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),a(42,"Copy Response to Clipboard"),t()()(),o(43,"div",6)(44,"pre",17),a(45),d(46,"json"),t()()()()()()()()}if(p&2){let e=b();r("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),r("model",C(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),r("model",C(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),r("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),x('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class p extends B{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||p)(m(I),m(T),m(M))};static \u0275cmp=f({type:p,selectors:[["app-webhook-job-logs-detail"]],features:[y],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&h(0,A,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,W,V,P,E,k,w,_],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re,b as ae}from"./chunk-EAXUIPR5.js";import"./chunk-QCCKEP2R.js";import"./chunk-KNQEOPID.js";import{a as ne}from"./chunk-NJB3X4XL.js";import"./chunk-RMIJZMA5.js";import"./chunk-BLQKJ5OK.js";import"./chunk-FADT3LJL.js";import"./chunk-KFUPP33B.js";import{d as te,e as ie}from"./chunk-I4WJ5CEN.js";import"./chunk-7IRMDCKA.js";import"./chunk-3RK6DDJD.js";import"./chunk-CKGJCUHW.js";import"./chunk-YL6HCV6T.js";import"./chunk-BJG2UU2M.js";import"./chunk-ISY4SDFY.js";import"./chunk-RNEU5YBN.js";import{e as $}from"./chunk-RO5PWDCR.js";import"./chunk-33B62QHS.js";import{c as ee}from"./chunk-
|
|
1
|
+
import{a as re,b as ae}from"./chunk-EAXUIPR5.js";import"./chunk-QCCKEP2R.js";import"./chunk-KNQEOPID.js";import{a as ne}from"./chunk-NJB3X4XL.js";import"./chunk-RMIJZMA5.js";import"./chunk-BLQKJ5OK.js";import"./chunk-FADT3LJL.js";import"./chunk-KFUPP33B.js";import{d as te,e as ie}from"./chunk-I4WJ5CEN.js";import"./chunk-7IRMDCKA.js";import"./chunk-3RK6DDJD.js";import"./chunk-CKGJCUHW.js";import"./chunk-YL6HCV6T.js";import"./chunk-BJG2UU2M.js";import"./chunk-ISY4SDFY.js";import"./chunk-RNEU5YBN.js";import{e as $}from"./chunk-RO5PWDCR.js";import"./chunk-33B62QHS.js";import{c as ee}from"./chunk-SARRXJEA.js";import{a as K}from"./chunk-SSWQWX6U.js";import"./chunk-AVKLOI56.js";import"./chunk-RFVQHGYD.js";import"./chunk-V7HBROQ5.js";import{a as J,e as Y,f as Z}from"./chunk-3VIZOW4E.js";import"./chunk-4AZPLO6R.js";import"./chunk-LJMHI6I5.js";import"./chunk-G7HGWSUU.js";import"./chunk-RCC5SUNH.js";import"./chunk-OYO4SRAO.js";import"./chunk-3MU2GNGM.js";import"./chunk-2QD46TNT.js";import"./chunk-YQ5GJPDB.js";import"./chunk-KMYTSO3Q.js";import"./chunk-BRHHRJLT.js";import"./chunk-ILF6INR3.js";import{b as X}from"./chunk-RSG2H3EZ.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import"./chunk-VQBUIUJC.js";import{O as F}from"./chunk-HYXSN2J6.js";import{d as Q}from"./chunk-2JU7KFOZ.js";import"./chunk-DB3W42KN.js";import"./chunk-EQLHPWVB.js";import"./chunk-QGYIPOLS.js";import"./chunk-WACBOZDR.js";import"./chunk-TX6ZFPHY.js";import"./chunk-YZP4FX7D.js";import{a as z}from"./chunk-2FWFPV5I.js";import"./chunk-WAXYETAG.js";import{F as U,h as j,o as G}from"./chunk-OJ5SEYSF.js";import"./chunk-QN5Q4MBZ.js";import"./chunk-MJ47GTOZ.js";import"./chunk-TS6CZC3J.js";import"./chunk-VPLMHY4N.js";import{Ab as W,Bb as m,Bc as b,Ca as B,Cb as r,Cc as x,Db as a,Eb as S,Hc as O,Lb as y,Nb as w,Pb as s,Wa as c,Y as k,be as H,cb as h,cc as u,ee as q,fa as I,gb as A,hc as g,ic as _,jc as f,kb as M,kd as N,mb as E,pa as P,rd as R,ta as l,ua as p,ub as v,wb as D,xb as L,zb as V}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function le(o,d){if(o&1){let t=y();r(0,"button",6),w("click",function(){l(t);let e=s();return p(e.onPrint())}),S(1,"i",7),r(2,"span"),u(3,"Print"),a()()}}function pe(o,d){if(o&1){let t=y();r(0,"div",8)(1,"h6"),u(2,"Outlet"),a(),r(3,"outlet-selector",9),f("ngModelChange",function(e){l(t);let i=s();return _(i.pageData.Filter.EntityID,e)||(i.pageData.Filter.EntityID=e),p(e)}),a(),r(4,"h6"),u(5,"Sales Order Tag"),a(),r(6,"ng-select",10),f("ngModelChange",function(e){l(t);let i=s();return _(i.pageData.Filter.SalesOrderTagID,e)||(i.pageData.Filter.SalesOrderTagID=e),p(e)}),a(),r(7,"h6"),u(8,"From"),a(),r(9,"div",11)(10,"div",12)(11,"datepicker",13),f("dateChange",function(e){l(t);let i=s();return _(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),a()(),r(12,"div",12)(13,"app-timepicker",14),f("timeChange",function(e){l(t);let i=s();return _(i.pageData.Filter.StartTime,e)||(i.pageData.Filter.StartTime=e),p(e)}),a()()(),r(14,"h6"),u(15,"To"),a(),r(16,"div",11)(17,"div",12)(18,"datepicker",15),f("dateChange",function(e){l(t);let i=s();return _(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),a()(),r(19,"div",12)(20,"app-timepicker",14),f("timeChange",function(e){l(t);let i=s();return _(i.pageData.Filter.EndTime,e)||(i.pageData.Filter.EndTime=e),p(e)}),a()()()()}if(o&2){let t=s();c(3),m("accessType",2),g("ngModel",t.pageData.Filter.EntityID),c(3),m("items",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.SalesOrderTags),g("ngModel",t.pageData.Filter.SalesOrderTagID),c(5),m("isFloatingLabel",!1),g("date",t.pageData.Filter.From),m("hidelClearBtn",!0),c(2),g("time",t.pageData.Filter.StartTime),m("fullWidth",!0),c(5),m("isFloatingLabel",!1)("hidelClearBtn",!0),g("date",t.pageData.Filter.To),c(2),g("time",t.pageData.Filter.EndTime),m("fullWidth",!0)}}function me(o,d){o&1&&(r(0,"div",19),u(1,"\xA0"),a())}function se(o,d){if(o&1&&(S(0,"pos-receipt-a4",16),r(1,"div",17),S(2,"div",18),a(),v(3,me,2,0,"div",19)),o&2){let t=d.$implicit,n=d.$index,e=s(),i=s();m("data",t)("printTemplate",i.printTemplates==null?null:i.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),c(3),D(n!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function ce(o,d){o&1&&V(0,se,4,7,null,null,L),o&2&&W(d.Data)}var oe=class o extends K{constructor(t,n,e){super(t,n,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=n;this.initPrintListener()}dialogFilter=P(J);receipts$;printTemplates;invoiceIds=B([]);preInitList(){this.pageData.Filter.From=new Date,this.pageData.Filter.To=new Date,this.pageData.Filter.StartTime="00:00",this.pageData.Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(F.GetBulkPrintA4,this.pageData.Filter).pipe(I(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",z.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(n=>n?.Invoice?.ID))}),k(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(n=>[n.ID,n]))}onNewPrint(){this.dialogFilter.openDialog()}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(F.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(n){return new(n||o)(h(X),h(q),h(H))};static \u0275cmp=A({type:o,selectors:[["bulk-invoice-A4"]],features:[M],decls:13,vars:10,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","pageData","hideSearchBox","text","hideSearchDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],[3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(n,e){if(n&1){let i=y();r(0,"mainpanel-cmp",1),f("textChange",function(T){return l(i),_(e.pageData.Filter.Number,T)||(e.pageData.Filter.Number=T),p(T)}),w("onSubmit",function(){return l(i),p(e.onFilter())}),r(1,"actions"),v(2,le,4,0,"button",2),b(3,"async"),r(4,"button",3),w("click",function(){return l(i),p(e.onNewPrint())}),u(5,"New"),a()(),r(6,"div",4),E(7,pe,21,14,"ng-template",null,0,O),a(),r(9,"content")(10,"div",5),v(11,ce,2,0),b(12,"async"),a()()()}if(n&2){let i,C;m("pageData",e.menuData)("hideSearchBox",!0),g("text",e.pageData.Filter.Number),m("hideSearchDropdown",!0),c(2),D(((i=x(3,6,e.receipts$))==null||i.Data==null?null:i.Data.length)>0?2:-1),c(9),D((C=x(12,8,e.printTemplates&&e.receipts$))?11:-1,C)}},dependencies:[R,ae,re,Z,Y,ee,Q,ie,te,$,U,j,G,ne,N],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})};export{oe as BulkInvoiceA4Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-NEGD2WNQ.js";import"./chunk-4KMN7PSV.js";import"./chunk-EIH377TR.js";import"./chunk-I4WJ5CEN.js";import"./chunk-7IRMDCKA.js";import"./chunk-3RK6DDJD.js";import"./chunk-CKGJCUHW.js";import"./chunk-YL6HCV6T.js";import"./chunk-BJG2UU2M.js";import"./chunk-ISY4SDFY.js";import"./chunk-RNEU5YBN.js";import"./chunk-33B62QHS.js";import"./chunk-SSWQWX6U.js";import"./chunk-AVKLOI56.js";import"./chunk-3VIZOW4E.js";import"./chunk-RCC5SUNH.js";import"./chunk-OYO4SRAO.js";import"./chunk-3MU2GNGM.js";import"./chunk-ILF6INR3.js";import"./chunk-RSG2H3EZ.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import"./chunk-VQBUIUJC.js";import"./chunk-HYXSN2J6.js";import"./chunk-2JU7KFOZ.js";import"./chunk-QGYIPOLS.js";import"./chunk-WACBOZDR.js";import"./chunk-YZP4FX7D.js";import"./chunk-2FWFPV5I.js";import"./chunk-WAXYETAG.js";import"./chunk-OJ5SEYSF.js";import"./chunk-QN5Q4MBZ.js";import"./chunk-MJ47GTOZ.js";import"./chunk-TS6CZC3J.js";import"./chunk-VPLMHY4N.js";import"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as WebhookJobLogsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as le}from"./chunk-FAGD2TBB.js";import{a as oe,b as ae,c as re}from"./chunk-L5HF7UAT.js";import{a as xe,b as fe}from"./chunk-IZQ5FNXP.js";import{f as ye}from"./chunk-L453AX2W.js";import{c as ve}from"./chunk-GUF6JXSS.js";import{b as se}from"./chunk-HVRLWPZX.js";import{a as _e}from"./chunk-WKB7BKHN.js";import{e as ue,f as ge}from"./chunk-KDOS4X4T.js";import{b as Ce}from"./chunk-EGADVOKH.js";import{b as ne,c as ie}from"./chunk-VQBUIUJC.js";import{a as me,d as pe,e as de}from"./chunk-2JU7KFOZ.js";import{g as ce}from"./chunk-QGYIPOLS.js";import{F as $,c as U,h as X,o as Y,q as Z}from"./chunk-OJ5SEYSF.js";import{d as te}from"./chunk-TS6CZC3J.js";import{Ab as H,Bb as g,Bc as S,Ca as O,Cb as o,Cc as w,Db as a,Eb as j,Hc as G,Ib as F,Jb as M,Lb as T,Lc as R,Nb as V,Pb as r,Wa as i,Zd as K,be as J,cb as h,cc as m,dc as D,ec as y,ee,gb as L,hc as v,ic as x,jc as f,kb as W,mb as A,nc as k,od as q,pa as E,rd as z,ta as C,tc as Q,ua as _,ub as d,wb as s,yb as B,zb as N}from"./chunk-VS3RTXZC.js";import{a as b,b as P}from"./chunk-SNAKHGZS.js";var he=n=>({ID:n});function De(n,p){if(n&1){let e=T();o(0,"button",16),V("click",function(){C(e);let t=r();return _(t.openExportModal())}),j(1,"i",17),m(2," Export "),a()}}function Se(n,p){if(n&1&&(o(0,"span",27),m(1),a()),n&2){let e=p.item;g("matTooltip",k(e.Value)),i(),D(e.Value)}}function we(n,p){if(n&1){let e=T();o(0,"div",18)(1,"div")(2,"h6"),m(3,"Outlet"),a(),o(4,"outlet-selector",19),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.OutletID,t)||(l.pageData.Filter.OutletID=t),_(t)}),a()(),o(5,"div")(6,"h6"),m(7,"Category"),a(),o(8,"POS-product-category-select",20),f("selectedCategoryIDChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductCategoryID,t)||(l.pageData.Filter.ProductCategoryID=t),_(t)}),a()(),o(9,"div")(10,"h6"),m(11,"Brand"),a(),o(12,"ng-select",21),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductBrandID,t)||(l.pageData.Filter.ProductBrandID=t),_(t)}),A(13,Se,2,3,"ng-template",22),a()(),o(14,"div")(15,"h6"),m(16,"Product Tags"),a(),o(17,"ng-select",23),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductTagID,t)||(l.pageData.Filter.ProductTagID=t),_(t)}),a()(),o(18,"div")(19,"h6"),m(20,"Quantity From - To"),a(),o(21,"div",24)(22,"input",25),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyFrom,t)||(l.pageData.Filter.QtyFrom=t),_(t)}),a(),m(23," - "),o(24,"input",26),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyTo,t)||(l.pageData.Filter.QtyTo=t),_(t)}),a()()()()}if(n&2){let e=r();i(4),g("accessType",2),v("ngModel",e.pageData.Filter.OutletID),i(4),v("selectedCategoryID",e.pageData.Filter.ProductCategoryID),g("showClear",!0),i(4),g("items",e.pageData.Options==null?null:e.pageData.Options.Brands),v("ngModel",e.pageData.Filter.ProductBrandID),i(5),g("items",e.pageData.Options==null?null:e.pageData.Options.Tags),v("ngModel",e.pageData.Filter.ProductTagID),i(5),v("ngModel",e.pageData.Filter.QtyFrom),i(2),v("ngModel",e.pageData.Filter.QtyTo)}}function Te(n,p){if(n&1&&(o(0,"th",10),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantName.name," ")}}function Ve(n,p){if(n&1&&(o(0,"th",11),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantCode.name," ")}}function be(n,p){if(n&1&&(o(0,"th",12),m(1),a()),n&2){let e=r();i(),y(" ",e.column.OnHand.name," ")}}function Pe(n,p){if(n&1&&(o(0,"th",13),m(1),a()),n&2){let e=r();i(),y(" ",e.column.DirectAllocated.name," ")}}function Fe(n,p){if(n&1&&(o(0,"th",14),m(1),a()),n&2){let e=r();i(),y(" ",e.column.IndirectAllocated.name," ")}}function Me(n,p){if(n&1&&(o(0,"th",15),m(1),a()),n&2){let e=r();i(),y(" ",e.column.Available.name," ")}}function Ae(n,p){if(n&1&&(o(0,"td")(1,"a",28),m(2),a()()),n&2){let e=r().$implicit;i(),g("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",Q(3,he,e.VariantID)),i(),y(" ",e.VariantName," ")}}function Ee(n,p){if(n&1&&(o(0,"td"),m(1),a()),n&2){let e=r().$implicit;i(),D(e.VariantCode)}}function Oe(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.OnHand))}}function Le(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function We(n,p){if(n&1&&d(0,Le,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Be(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function Ne(n,p){if(n&1&&d(0,Be,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function He(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.IndirectAllocated))}}function je(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.Available))}}function ke(n,p){if(n&1&&(o(0,"tr"),d(1,Ae,3,5,"td"),d(2,Ee,2,1,"td"),d(3,Oe,3,3,"td"),d(4,We,1,1)(5,Ne,1,1),d(6,He,3,3,"td"),d(7,je,3,3,"td"),a()),n&2){let e=r();i(),s(e.column.VariantName&&e.column.VariantName.selected?1:-1),i(),s(e.column.VariantCode&&e.column.VariantCode.selected?2:-1),i(),s(e.column.OnHand&&e.column.OnHand.selected?3:-1),i(),s(e.totalIndirect()>0?4:5),i(2),s(e.column.IndirectAllocated&&e.column.IndirectAllocated.selected&&e.totalIndirect()>0?6:-1),i(),s(e.column.Available&&e.column.Available.selected?7:-1)}}function Qe(n,p){if(n&1){let e=T();o(0,"div")(1,"POS-complex-pagination",29),V("jumpToPage",function(){C(e);let t=r();return _(t.getListData())})("previousPage",function(){C(e);let t=r();return _(t.getListData())})("nextPage",function(){C(e);let t=r();return _(t.getListData())}),a()()}if(n&2){let e=r();i(),g("total",e.data.Data.length)("pageData",e.pageData)}}var Ie=class n extends le{constructor(e,c,t,l,I){super(e,c,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=c;this.csvConverter=l;this.roleService=I;R(()=>{let u=this.totalIndirect();u!==null&&u<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(b({},this.column),{DirectAllocated:P(b({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(b({},this.column.IndirectAllocated),{show:!1})}))})}column={VariantName:{selected:!0,name:"Name",show:!0},VariantCode:{selected:!0,name:"Code",show:!0},OnHand:{selected:!0,name:"On Hand",show:!0},DirectAllocated:{selected:!0,name:"Direct Allocated",show:!0},IndirectAllocated:{selected:!0,name:"Indirect Allocated",show:!0},Available:{selected:!0,name:"Available",show:!0}};totalIndirect=O(null);dialog=E(ce);afterPostInit(e){console.log("Composite Inventory Data",e);let c=e.Data.reduce((t,l)=>t+l.IndirectAllocated,0);console.log("Total Indirect Allocated:",c),this.totalIndirect.set(c)}sortData(e){let c=[...this.data.Data];if(!e.active||e.direction===""){this.infiniteList=c;return}this.infiniteList=c.sort((t,l)=>{let I=e.direction==="asc";return this.compare(t[e.active],l[e.active],I)})}openExportModal(){this.dialog.open(se,{data:{title:"Composite Inventory",exportTypes:[{ID:"inventoryExport/GetExportInventoryComposite",Value:"Default",FileName:"Composite Inventory"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountInventoryComposite",pagination:!0}})}static \u0275fac=function(c){return new(c||n)(h(Ce),h(ee),h(J),h(_e),h(te))};static \u0275cmp=L({type:n,selectors:[["pos-composite-inventory"]],features:[W],decls:22,vars:13,consts:[["pageFilterTemplate",""],["tooltipTitle","Identify and manage unsold inventory that has been stagnant for a long time",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter","column"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary","me-3"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["mat-sort-header","VariantName",2,"width","20%"],["mat-sort-header","VariantCode",2,"width","20%"],["mat-sort-header","OnHand",2,"width","10%"],["mat-sort-header","DirectAllocated",2,"width","10%"],["mat-sort-header","IndirectAllocated",2,"width","10%"],["mat-sort-header","Available",2,"width","10%"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-flex","flex-column","gap-4"],["placeholder","Choose Outlets (Leave Blank to Choose All)",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["bindLabel","Value","bindValue","Key","placeholder","Choose Brand",3,"ngModelChange","items","ngModel"],["ng-option-tmp",""],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center",2,"column-gap","8px"],["type","number","name","QuantityFrom",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["matTooltipPosition","above",3,"matTooltip"],[3,"routerLink","queryParams"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(c,t){if(c&1){let l=T();o(0,"mainpanel-cmp",1),f("textChange",function(u){return C(l),x(t.pageData.Filter.SearchText,u)||(t.pageData.Filter.SearchText=u),_(u)}),V("onSubmit",function(){return C(l),_(t.searchFromPageOne())}),f("filterChange",function(u){return C(l),x(t.pageData.Filter,u)||(t.pageData.Filter=u),_(u)}),F(1,2),d(2,De,3,0,"button",3),M(),F(3,4),A(4,we,25,10,"ng-template",null,0,G),M(),F(6,5),o(7,"div",6)(8,"div",7)(9,"table",8),V("matSortChange",function(u){return C(l),_(t.sortData(u))}),o(10,"thead",9)(11,"tr"),d(12,Te,2,1,"th",10),d(13,Ve,2,1,"th",11),d(14,be,2,1,"th",12),d(15,Pe,2,1,"th",13),d(16,Fe,2,1,"th",14),d(17,Me,2,1,"th",15),a()(),o(18,"tbody"),N(19,ke,8,6,"tr",null,B),a()()(),d(21,Qe,2,2,"div"),a(),M(),a()}c&2&&(g("pageData",t.menuData),v("text",t.pageData.Filter.SearchText),g("isFilterOnDropdown",!1),v("filter",t.pageData.Filter),g("column",t.column),i(2),s(t.roleService.global.Export?2:-1),i(10),s(t.column.VariantName&&t.column.VariantName.selected?12:-1),i(),s(t.column.VariantCode&&t.column.VariantCode.selected?13:-1),i(),s(t.column.OnHand&&t.column.OnHand.selected?14:-1),i(),s(t.column.DirectAllocated&&t.column.DirectAllocated.selected?15:-1),i(),s(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?16:-1),i(),s(t.column.Available&&t.column.Available.selected?17:-1),i(2),H(t.infiniteList),i(2),s(t.data?21:-1))},dependencies:[ge,ue,ve,ye,$,U,Z,X,Y,de,pe,me,ie,ne,fe,xe,z,K,re,oe,ae,q],styles:["[_nghost-%COMP%]{display:block}"]})};export{Ie as a};
|
|
1
|
+
import{a as le}from"./chunk-3BWHPHJH.js";import{a as oe,b as ae,c as re}from"./chunk-L5HF7UAT.js";import{a as xe,b as fe}from"./chunk-IZQ5FNXP.js";import{f as ye}from"./chunk-46LKSZ72.js";import{c as ve}from"./chunk-SARRXJEA.js";import{b as se}from"./chunk-HVRLWPZX.js";import{a as _e}from"./chunk-WKB7BKHN.js";import{e as ue,f as ge}from"./chunk-3VIZOW4E.js";import{b as Ce}from"./chunk-RSG2H3EZ.js";import{b as ne,c as ie}from"./chunk-VQBUIUJC.js";import{a as me,d as pe,e as de}from"./chunk-2JU7KFOZ.js";import{g as ce}from"./chunk-QGYIPOLS.js";import{F as $,c as U,h as X,o as Y,q as Z}from"./chunk-OJ5SEYSF.js";import{d as te}from"./chunk-TS6CZC3J.js";import{Ab as H,Bb as g,Bc as S,Ca as O,Cb as o,Cc as w,Db as a,Eb as j,Hc as G,Ib as F,Jb as M,Lb as T,Lc as R,Nb as V,Pb as r,Wa as i,Zd as K,be as J,cb as h,cc as m,dc as D,ec as y,ee,gb as L,hc as v,ic as x,jc as f,kb as W,mb as A,nc as k,od as q,pa as E,rd as z,ta as C,tc as Q,ua as _,ub as d,wb as s,yb as B,zb as N}from"./chunk-VS3RTXZC.js";import{a as b,b as P}from"./chunk-SNAKHGZS.js";var he=n=>({ID:n});function De(n,p){if(n&1){let e=T();o(0,"button",16),V("click",function(){C(e);let t=r();return _(t.openExportModal())}),j(1,"i",17),m(2," Export "),a()}}function Se(n,p){if(n&1&&(o(0,"span",27),m(1),a()),n&2){let e=p.item;g("matTooltip",k(e.Value)),i(),D(e.Value)}}function we(n,p){if(n&1){let e=T();o(0,"div",18)(1,"div")(2,"h6"),m(3,"Outlet"),a(),o(4,"outlet-selector",19),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.OutletID,t)||(l.pageData.Filter.OutletID=t),_(t)}),a()(),o(5,"div")(6,"h6"),m(7,"Category"),a(),o(8,"POS-product-category-select",20),f("selectedCategoryIDChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductCategoryID,t)||(l.pageData.Filter.ProductCategoryID=t),_(t)}),a()(),o(9,"div")(10,"h6"),m(11,"Brand"),a(),o(12,"ng-select",21),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductBrandID,t)||(l.pageData.Filter.ProductBrandID=t),_(t)}),A(13,Se,2,3,"ng-template",22),a()(),o(14,"div")(15,"h6"),m(16,"Product Tags"),a(),o(17,"ng-select",23),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.ProductTagID,t)||(l.pageData.Filter.ProductTagID=t),_(t)}),a()(),o(18,"div")(19,"h6"),m(20,"Quantity From - To"),a(),o(21,"div",24)(22,"input",25),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyFrom,t)||(l.pageData.Filter.QtyFrom=t),_(t)}),a(),m(23," - "),o(24,"input",26),f("ngModelChange",function(t){C(e);let l=r();return x(l.pageData.Filter.QtyTo,t)||(l.pageData.Filter.QtyTo=t),_(t)}),a()()()()}if(n&2){let e=r();i(4),g("accessType",2),v("ngModel",e.pageData.Filter.OutletID),i(4),v("selectedCategoryID",e.pageData.Filter.ProductCategoryID),g("showClear",!0),i(4),g("items",e.pageData.Options==null?null:e.pageData.Options.Brands),v("ngModel",e.pageData.Filter.ProductBrandID),i(5),g("items",e.pageData.Options==null?null:e.pageData.Options.Tags),v("ngModel",e.pageData.Filter.ProductTagID),i(5),v("ngModel",e.pageData.Filter.QtyFrom),i(2),v("ngModel",e.pageData.Filter.QtyTo)}}function Te(n,p){if(n&1&&(o(0,"th",10),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantName.name," ")}}function Ve(n,p){if(n&1&&(o(0,"th",11),m(1),a()),n&2){let e=r();i(),y(" ",e.column.VariantCode.name," ")}}function be(n,p){if(n&1&&(o(0,"th",12),m(1),a()),n&2){let e=r();i(),y(" ",e.column.OnHand.name," ")}}function Pe(n,p){if(n&1&&(o(0,"th",13),m(1),a()),n&2){let e=r();i(),y(" ",e.column.DirectAllocated.name," ")}}function Fe(n,p){if(n&1&&(o(0,"th",14),m(1),a()),n&2){let e=r();i(),y(" ",e.column.IndirectAllocated.name," ")}}function Me(n,p){if(n&1&&(o(0,"th",15),m(1),a()),n&2){let e=r();i(),y(" ",e.column.Available.name," ")}}function Ae(n,p){if(n&1&&(o(0,"td")(1,"a",28),m(2),a()()),n&2){let e=r().$implicit;i(),g("routerLink","/menu/Products/Catalog/Variants/Info")("queryParams",Q(3,he,e.VariantID)),i(),y(" ",e.VariantName," ")}}function Ee(n,p){if(n&1&&(o(0,"td"),m(1),a()),n&2){let e=r().$implicit;i(),D(e.VariantCode)}}function Oe(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.OnHand))}}function Le(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function We(n,p){if(n&1&&d(0,Le,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function Be(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r(2).$implicit;i(),y(" ",w(2,1,e.DirectAllocated)," ")}}function Ne(n,p){if(n&1&&d(0,Be,3,3,"td"),n&2){let e=r(2);s(e.column.DirectAllocated&&e.column.DirectAllocated.selected?0:-1)}}function He(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.IndirectAllocated))}}function je(n,p){if(n&1&&(o(0,"td"),m(1),S(2,"number"),a()),n&2){let e=r().$implicit;i(),D(w(2,1,e.Available))}}function ke(n,p){if(n&1&&(o(0,"tr"),d(1,Ae,3,5,"td"),d(2,Ee,2,1,"td"),d(3,Oe,3,3,"td"),d(4,We,1,1)(5,Ne,1,1),d(6,He,3,3,"td"),d(7,je,3,3,"td"),a()),n&2){let e=r();i(),s(e.column.VariantName&&e.column.VariantName.selected?1:-1),i(),s(e.column.VariantCode&&e.column.VariantCode.selected?2:-1),i(),s(e.column.OnHand&&e.column.OnHand.selected?3:-1),i(),s(e.totalIndirect()>0?4:5),i(2),s(e.column.IndirectAllocated&&e.column.IndirectAllocated.selected&&e.totalIndirect()>0?6:-1),i(),s(e.column.Available&&e.column.Available.selected?7:-1)}}function Qe(n,p){if(n&1){let e=T();o(0,"div")(1,"POS-complex-pagination",29),V("jumpToPage",function(){C(e);let t=r();return _(t.getListData())})("previousPage",function(){C(e);let t=r();return _(t.getListData())})("nextPage",function(){C(e);let t=r();return _(t.getListData())}),a()()}if(n&2){let e=r();i(),g("total",e.data.Data.length)("pageData",e.pageData)}}var Ie=class n extends le{constructor(e,c,t,l,I){super(e,c,"inventory/GetListInventoryComposite","inventoryloader/GetListInventoryComposite",t,void 0,!1);this.httpService=c;this.csvConverter=l;this.roleService=I;R(()=>{let u=this.totalIndirect();u!==null&&u<=0&&(console.log("Indirect allocation is zero or negative"),this.column=P(b({},this.column),{DirectAllocated:P(b({},this.column.DirectAllocated),{name:"Allocated"}),IndirectAllocated:P(b({},this.column.IndirectAllocated),{show:!1})}))})}column={VariantName:{selected:!0,name:"Name",show:!0},VariantCode:{selected:!0,name:"Code",show:!0},OnHand:{selected:!0,name:"On Hand",show:!0},DirectAllocated:{selected:!0,name:"Direct Allocated",show:!0},IndirectAllocated:{selected:!0,name:"Indirect Allocated",show:!0},Available:{selected:!0,name:"Available",show:!0}};totalIndirect=O(null);dialog=E(ce);afterPostInit(e){console.log("Composite Inventory Data",e);let c=e.Data.reduce((t,l)=>t+l.IndirectAllocated,0);console.log("Total Indirect Allocated:",c),this.totalIndirect.set(c)}sortData(e){let c=[...this.data.Data];if(!e.active||e.direction===""){this.infiniteList=c;return}this.infiniteList=c.sort((t,l)=>{let I=e.direction==="asc";return this.compare(t[e.active],l[e.active],I)})}openExportModal(){this.dialog.open(se,{data:{title:"Composite Inventory",exportTypes:[{ID:"inventoryExport/GetExportInventoryComposite",Value:"Default",FileName:"Composite Inventory"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountInventoryComposite",pagination:!0}})}static \u0275fac=function(c){return new(c||n)(h(Ce),h(ee),h(J),h(_e),h(te))};static \u0275cmp=L({type:n,selectors:[["pos-composite-inventory"]],features:[W],decls:22,vars:13,consts:[["pageFilterTemplate",""],["tooltipTitle","Identify and manage unsold inventory that has been stagnant for a long time",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter","column"],["ngProjectAs","actions",5,["actions"]],[1,"btn","btn-outline-secondary","me-3"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table","border-bottom",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],["mat-sort-header","VariantName",2,"width","20%"],["mat-sort-header","VariantCode",2,"width","20%"],["mat-sort-header","OnHand",2,"width","10%"],["mat-sort-header","DirectAllocated",2,"width","10%"],["mat-sort-header","IndirectAllocated",2,"width","10%"],["mat-sort-header","Available",2,"width","10%"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-flex","flex-column","gap-4"],["placeholder","Choose Outlets (Leave Blank to Choose All)",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["bindLabel","Value","bindValue","Key","placeholder","Choose Brand",3,"ngModelChange","items","ngModel"],["ng-option-tmp",""],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center",2,"column-gap","8px"],["type","number","name","QuantityFrom",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["matTooltipPosition","above",3,"matTooltip"],[3,"routerLink","queryParams"],["api","inventory/GetCountInventoryComposite",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(c,t){if(c&1){let l=T();o(0,"mainpanel-cmp",1),f("textChange",function(u){return C(l),x(t.pageData.Filter.SearchText,u)||(t.pageData.Filter.SearchText=u),_(u)}),V("onSubmit",function(){return C(l),_(t.searchFromPageOne())}),f("filterChange",function(u){return C(l),x(t.pageData.Filter,u)||(t.pageData.Filter=u),_(u)}),F(1,2),d(2,De,3,0,"button",3),M(),F(3,4),A(4,we,25,10,"ng-template",null,0,G),M(),F(6,5),o(7,"div",6)(8,"div",7)(9,"table",8),V("matSortChange",function(u){return C(l),_(t.sortData(u))}),o(10,"thead",9)(11,"tr"),d(12,Te,2,1,"th",10),d(13,Ve,2,1,"th",11),d(14,be,2,1,"th",12),d(15,Pe,2,1,"th",13),d(16,Fe,2,1,"th",14),d(17,Me,2,1,"th",15),a()(),o(18,"tbody"),N(19,ke,8,6,"tr",null,B),a()()(),d(21,Qe,2,2,"div"),a(),M(),a()}c&2&&(g("pageData",t.menuData),v("text",t.pageData.Filter.SearchText),g("isFilterOnDropdown",!1),v("filter",t.pageData.Filter),g("column",t.column),i(2),s(t.roleService.global.Export?2:-1),i(10),s(t.column.VariantName&&t.column.VariantName.selected?12:-1),i(),s(t.column.VariantCode&&t.column.VariantCode.selected?13:-1),i(),s(t.column.OnHand&&t.column.OnHand.selected?14:-1),i(),s(t.column.DirectAllocated&&t.column.DirectAllocated.selected?15:-1),i(),s(t.column.IndirectAllocated&&t.column.IndirectAllocated.selected&&t.totalIndirect()>0?16:-1),i(),s(t.column.Available&&t.column.Available.selected?17:-1),i(2),H(t.infiniteList),i(2),s(t.data?21:-1))},dependencies:[ge,ue,ve,ye,$,U,Z,X,Y,de,pe,me,ie,ne,fe,xe,z,K,re,oe,ae,q],styles:["[_nghost-%COMP%]{display:block}"]})};export{Ie as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J}from"./chunk-
|
|
1
|
+
import{c as J}from"./chunk-SARRXJEA.js";import{a as G}from"./chunk-SSWQWX6U.js";import"./chunk-AVKLOI56.js";import"./chunk-RFVQHGYD.js";import"./chunk-V7HBROQ5.js";import{e as q,f as z}from"./chunk-3VIZOW4E.js";import"./chunk-4AZPLO6R.js";import"./chunk-LJMHI6I5.js";import"./chunk-3MU2GNGM.js";import"./chunk-2QD46TNT.js";import"./chunk-YQ5GJPDB.js";import"./chunk-KMYTSO3Q.js";import"./chunk-BRHHRJLT.js";import"./chunk-ILF6INR3.js";import{b as A}from"./chunk-RSG2H3EZ.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import{b as j,c as k}from"./chunk-VQBUIUJC.js";import"./chunk-HYXSN2J6.js";import"./chunk-DB3W42KN.js";import"./chunk-EQLHPWVB.js";import"./chunk-QGYIPOLS.js";import"./chunk-WACBOZDR.js";import"./chunk-TX6ZFPHY.js";import"./chunk-YZP4FX7D.js";import"./chunk-2FWFPV5I.js";import"./chunk-WAXYETAG.js";import{F as W,h as B,o as H}from"./chunk-OJ5SEYSF.js";import"./chunk-QN5Q4MBZ.js";import"./chunk-MJ47GTOZ.js";import"./chunk-TS6CZC3J.js";import"./chunk-VPLMHY4N.js";import{Ab as w,Bb as d,Bc as C,Cb as i,Cc as F,Db as n,Dc as T,Hc as E,Lb as v,Nb as N,Pb as S,Wa as l,be as V,cb as c,cc as o,dc as u,ee as R,gb as D,hc as _,ic as b,jc as h,kb as y,mb as I,md as P,od as L,rd as O,ta as p,ua as s,xb as x,zb as M}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,z,q,J,W,B,H,k,j,L,P],encapsulation:2})};export{K as InvoiceNumberingComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-6VCRA6WE.js";import"./chunk-3BWHPHJH.js";import"./chunk-L5HF7UAT.js";import"./chunk-IZQ5FNXP.js";import"./chunk-46LKSZ72.js";import"./chunk-SARRXJEA.js";import"./chunk-HVRLWPZX.js";import"./chunk-SSWQWX6U.js";import"./chunk-AVKLOI56.js";import"./chunk-RFVQHGYD.js";import"./chunk-V7HBROQ5.js";import"./chunk-WKB7BKHN.js";import"./chunk-3VIZOW4E.js";import"./chunk-4AZPLO6R.js";import"./chunk-LJMHI6I5.js";import"./chunk-G7HGWSUU.js";import"./chunk-67UQKMLX.js";import"./chunk-RCC5SUNH.js";import"./chunk-OYO4SRAO.js";import"./chunk-3MU2GNGM.js";import"./chunk-AASKAWJ4.js";import"./chunk-2QD46TNT.js";import"./chunk-YQ5GJPDB.js";import"./chunk-KMYTSO3Q.js";import"./chunk-BRHHRJLT.js";import"./chunk-ILF6INR3.js";import"./chunk-RSG2H3EZ.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import"./chunk-VQBUIUJC.js";import"./chunk-HYXSN2J6.js";import"./chunk-2JU7KFOZ.js";import"./chunk-DB3W42KN.js";import"./chunk-EQLHPWVB.js";import"./chunk-QGYIPOLS.js";import"./chunk-WACBOZDR.js";import"./chunk-TX6ZFPHY.js";import"./chunk-YZP4FX7D.js";import"./chunk-2FWFPV5I.js";import"./chunk-WAXYETAG.js";import"./chunk-OJ5SEYSF.js";import"./chunk-QN5Q4MBZ.js";import"./chunk-MJ47GTOZ.js";import"./chunk-TS6CZC3J.js";import"./chunk-VPLMHY4N.js";import"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as CompositeInventoryComponent};
|