dealpos 25.45.1 → 25.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-LKKENA2L.js → chunk-2BSYBLS4.js} +1 -1
- package/browser/{chunk-FPO73IWN.js → chunk-3MUHZKUR.js} +1 -1
- package/browser/{chunk-LP2YX47Z.js → chunk-3RGQWWNI.js} +1 -1
- package/browser/{chunk-YTOGQOIP.js → chunk-4KBU47GN.js} +1 -1
- package/browser/{chunk-BA466YBV.js → chunk-5I74KDE7.js} +1 -1
- package/browser/{chunk-4AUOGTXI.js → chunk-5PWOYB4R.js} +2 -2
- package/browser/{chunk-UPC37DMP.js → chunk-5ZU5FBGM.js} +1 -1
- package/browser/{chunk-6MU3ID6Q.js → chunk-6A3BN6JC.js} +1 -1
- package/browser/{chunk-CRLFATTL.js → chunk-6Q7J43H4.js} +1 -1
- package/browser/{chunk-WQNTJH2X.js → chunk-6VM27TUY.js} +1 -1
- package/browser/{chunk-TYUL4J6N.js → chunk-7EVERJPZ.js} +1 -1
- package/browser/{chunk-4NLZJJA4.js → chunk-7FUWLNHK.js} +1 -1
- package/browser/{chunk-RVKNSR2K.js → chunk-7USHMTB5.js} +1 -1
- package/browser/{chunk-AMUMNTYT.js → chunk-A6F6V3WW.js} +1 -1
- package/browser/{chunk-JRP5O56W.js → chunk-B6EKSPI2.js} +1 -1
- package/browser/{chunk-7O6Z7YZS.js → chunk-BXGUZIC4.js} +1 -1
- package/browser/{chunk-UP2UDOTJ.js → chunk-DG4IHOM2.js} +1 -1
- package/browser/{chunk-HQWW3C2M.js → chunk-DJNB7COU.js} +1 -1
- package/browser/{chunk-JTRNQBXF.js → chunk-DU7W2G2L.js} +1 -1
- package/browser/{chunk-B3EZEY4B.js → chunk-DZA27E5L.js} +1 -1
- package/browser/{chunk-J5FCCS76.js → chunk-EGADVOKH.js} +1 -1
- package/browser/{chunk-OZGLZGND.js → chunk-FAGD2TBB.js} +1 -1
- package/browser/{chunk-2TXCUXTF.js → chunk-FAN4YDVT.js} +1 -1
- package/browser/{chunk-IVBM4Y3J.js → chunk-FSGCO2Z5.js} +1 -1
- package/browser/{chunk-3IWVFLM3.js → chunk-G4XFK7EF.js} +1 -1
- package/browser/{chunk-OND3CFSL.js → chunk-GINPKODK.js} +1 -1
- package/browser/{chunk-BZVCDBQR.js → chunk-GUF6JXSS.js} +1 -1
- package/browser/{chunk-W6PT2SCS.js → chunk-HBH23XBO.js} +1 -1
- package/browser/{chunk-QUAMZZS6.js → chunk-HC2YTBED.js} +1 -1
- package/browser/{chunk-DC5TNUBW.js → chunk-HHSXXJFJ.js} +1 -1
- package/browser/{chunk-PXOXHTNI.js → chunk-IAFZ6YAO.js} +1 -1
- package/browser/{chunk-KQXOXN6S.js → chunk-IAFZ75L3.js} +2 -2
- package/browser/{chunk-KFDGG6IE.js → chunk-IE2H4VRD.js} +1 -1
- package/browser/{chunk-ZGSYDQBM.js → chunk-IJXCL7KL.js} +1 -1
- package/browser/{chunk-2SM2HFRR.js → chunk-IPJU7D3K.js} +1 -1
- package/browser/{chunk-JKBJ3O3G.js → chunk-IQ7VK4UE.js} +3 -3
- package/browser/{chunk-ICDZ6ZG2.js → chunk-IT7I47UZ.js} +1 -1
- package/browser/{chunk-IFARYZIK.js → chunk-IUE6IUOH.js} +1 -1
- package/browser/{chunk-V75YVSP3.js → chunk-J3OQGBIN.js} +1 -1
- package/browser/{chunk-IVR7R22T.js → chunk-JGWQC4DI.js} +1 -1
- package/browser/{chunk-UH2PJXPG.js → chunk-KB64CIW5.js} +2 -2
- package/browser/{chunk-36JFFXJO.js → chunk-KDOS4X4T.js} +1 -1
- package/browser/{chunk-NGRJ35NF.js → chunk-KL5VH4OU.js} +1 -1
- package/browser/{chunk-SH3T5X7H.js → chunk-KTV4REGV.js} +1 -1
- package/browser/{chunk-H3RJALHH.js → chunk-L3JI6OZ3.js} +1 -1
- package/browser/{chunk-I26CNUBY.js → chunk-L453AX2W.js} +1 -1
- package/browser/{chunk-MOLMIGZ2.js → chunk-M4BTEXS6.js} +1 -1
- package/browser/{chunk-FQTHN2D5.js → chunk-M76YU6SQ.js} +1 -1
- package/browser/{chunk-THGBNMLF.js → chunk-MFDMUMA4.js} +1 -1
- package/browser/{chunk-4JCHCMUR.js → chunk-MHZV4BL7.js} +1 -1
- package/browser/{chunk-JTTRYU4G.js → chunk-MXGNASOC.js} +1 -1
- package/browser/{chunk-DV6Z7FPV.js → chunk-N43HXORE.js} +1 -1
- package/browser/{chunk-NNONJUQ3.js → chunk-N7C7P5QN.js} +1 -1
- package/browser/{chunk-OTIPYKW7.js → chunk-NERV3W42.js} +1 -1
- package/browser/{chunk-P2CKEL54.js → chunk-NM3RF6OH.js} +1 -1
- package/browser/{chunk-55FE5P6P.js → chunk-OKEI5RKW.js} +1 -1
- package/browser/{chunk-YY3636UT.js → chunk-OKVQYK4Y.js} +1 -1
- package/browser/{chunk-43CXFI4D.js → chunk-OLT6DXR7.js} +1 -1
- package/browser/chunk-PCFR4J66.js +131 -0
- package/browser/{chunk-X6MBRJTG.js → chunk-PIW2M2DH.js} +2 -2
- package/browser/{chunk-7TEDBCUJ.js → chunk-PNN75KZR.js} +1 -1
- package/browser/{chunk-SXPVIX36.js → chunk-PUFGTKWO.js} +1 -1
- package/browser/{chunk-D5RACD33.js → chunk-RKCNENWQ.js} +1 -1
- package/browser/{chunk-M6SFCHJQ.js → chunk-SICZ4VWZ.js} +1 -1
- package/browser/{chunk-E424AX7J.js → chunk-T3HVVJIV.js} +1 -1
- package/browser/{chunk-G4D3XN53.js → chunk-TCR2YYM5.js} +1 -1
- package/browser/{chunk-IMM7CUI7.js → chunk-TPHEWWHE.js} +3 -3
- package/browser/{chunk-KMIXT3V6.js → chunk-TWVDGGTY.js} +1 -1
- package/browser/{chunk-FDH4S2DG.js → chunk-USEPOJ5L.js} +1 -1
- package/browser/{chunk-MFHN36L5.js → chunk-UYXD7WPN.js} +1 -1
- package/browser/{chunk-TNZMSOM3.js → chunk-VBX5VOJG.js} +1 -1
- package/browser/{chunk-GYYMO4YR.js → chunk-W34NDG3T.js} +1 -1
- package/browser/{chunk-BZ44CISC.js → chunk-W5N6DMDQ.js} +1 -1
- package/browser/{chunk-PYATA4SM.js → chunk-WRZUQ2QI.js} +1 -1
- package/browser/{chunk-IGHHLZWC.js → chunk-WXJTNRD3.js} +1 -1
- package/browser/{chunk-5VUKKQUZ.js → chunk-X6XUOWVT.js} +2 -2
- package/browser/{chunk-TIGG24TH.js → chunk-XF5XKXE6.js} +1 -1
- package/browser/{chunk-6ASBLKNZ.js → chunk-XHA6WGTO.js} +1 -1
- package/browser/{chunk-VVB7545X.js → chunk-XKAKP3E6.js} +1 -1
- package/browser/{chunk-Y6JQWF34.js → chunk-XRLRUCRR.js} +1 -1
- package/browser/{chunk-IKJNYXIS.js → chunk-YM2ZQTDF.js} +1 -1
- package/browser/{chunk-EBHLJ7D3.js → chunk-YQE3PJGM.js} +2 -2
- package/browser/{chunk-4JVPFRFP.js → chunk-ZEXXJZ7U.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-WVCGTGWV.js → main-7FKCOQYA.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-VPBOQNZA.js +0 -131
|
@@ -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-GUF6JXSS.js";import{a as K}from"./chunk-3MUHZKUR.js";import"./chunk-FAN4YDVT.js";import"./chunk-RFVQHGYD.js";import"./chunk-V7HBROQ5.js";import{a as J,e as Y,f as Z}from"./chunk-KDOS4X4T.js";import"./chunk-XF5XKXE6.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-KTV4REGV.js";import{b as X}from"./chunk-EGADVOKH.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-HBH23XBO.js";import"./chunk-5I74KDE7.js";import"./chunk-TS6CZC3J.js";import"./chunk-7EVERJPZ.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,4 +1,4 @@
|
|
|
1
|
-
import{a as Ne,b as Pe,c as He,d as Be,e as Ke}from"./chunk-4ZFVM7K7.js";import{b as mt,c as bt}from"./chunk-Y6JQWF34.js";import{a as gt,b as ft}from"./chunk-KFUPP33B.js";import{a as Oe}from"./chunk-G7HGWSUU.js";import{e as Ue}from"./chunk-2QD46TNT.js";import{a as Ve,b as Qe}from"./chunk-YQ5GJPDB.js";import{a as ut}from"./chunk-BRHHRJLT.js";import{b as pt,c as ht}from"./chunk-SH3T5X7H.js";import{c as q,d as Fe}from"./chunk-YZP4FX7D.js";import{B as rt,C as nt,D as le,F as oe,R as Le,U as at,V as z,W as De,a as Ie,b as ke,d as Ee,ea as st,ha as ct,la as ue,ma as Re,q as lt,r as ze,s as ot,u as ee,ua as dt,v as x,w as he,x as Me}from"./chunk-WAXYETAG.js";import{F as it}from"./chunk-OJ5SEYSF.js";import{Bb as a,Cb as w,Db as S,Eb as I,Ha as Je,Hc as de,Ia as be,Ib as H,Ja as _e,Jb as B,Kb as _,Lb as ce,Mb as Te,Nb as A,Pb as h,Sb as m,Tb as k,Ub as u,Vb as g,Vc as Ce,Wa as s,Xa as C,Xc as y,Ya as ie,Yc as K,Zb as we,_b as X,ac as ve,bc as f,cb as M,cd as Se,d as $,ed as et,fd as Z,gb as J,hb as Xe,ib as ye,id as xe,jd as Y,kb as Q,la as me,ma as $e,mb as d,pa as P,rc as j,rd as tt,sb as U,sc as Ze,sd as pe,ta as ae,tc as L,ua as se,uc as G,va as O,wc as Ye}from"./chunk-VS3RTXZC.js";import{a as W,b as We}from"./chunk-SNAKHGZS.js";var wt=["colgroup"],vt=["caption"],Ct=["header"],St=["body"],xt=["footer"],It=["summary"],kt=["emptymessage"],Et=["paginatorleft"],zt=["paginatorright"],Mt=["paginatordropdownitem"],Lt=["frozenheader"],Dt=["frozenbody"],Rt=["frozenfooter"],Ft=["frozencolgroup"],Nt=["loadingicon"],Pt=["reorderindicatorupicon"],Vt=["reorderindicatordownicon"],Ot=["sorticon"],Ht=["checkboxicon"],Bt=["headercheckboxicon"],Kt=["togglericon"],Qt=["paginatorfirstpagelinkicon"],Ut=["paginatorlastpagelinkicon"],At=["paginatorpreviouspagelinkicon"],jt=["paginatornextpagelinkicon"],Gt=["loader"],qt=["resizeHelper"],Wt=["reorderIndicatorUp"],$t=["reorderIndicatorDown"],Jt=["table"],Xt=["scrollableView"],Zt=["scrollableFrozenView"],V=t=>({$implicit:t}),Yt=(t,n)=>({left:t,width:n}),ei=(t,n)=>[t,n],ti=t=>({width:t});function ii(t,n){if(t&1&&I(0,"i"),t&2){let e=h(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function li(t,n){if(t&1&&(O(),I(0,"svg",11)),t&2){let e=h(3);f(e.cx("loadingIcon")),a("spin",!0)}}function oi(t,n){}function ri(t,n){t&1&&d(0,oi,0,0,"ng-template")}function ni(t,n){if(t&1&&(w(0,"span"),d(1,ri,1,0,null,12),S()),t&2){let e=h(3);f(e.cx("loadingIcon")),s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ai(t,n){if(t&1&&(H(0),d(1,li,1,3,"svg",10)(2,ni,2,3,"span",6),B()),t&2){let e=h(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function si(t,n){if(t&1&&(w(0,"div")(1,"div"),d(2,ii,1,2,"i",6)(3,ai,3,2,"ng-container",9),S()()),t&2){let e=h();f(e.cx("loading")),s(),f(e.cx("mask")),s(),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ci(t,n){t&1&&_(0)}function di(t,n){if(t&1&&(w(0,"div"),d(1,ci,1,0,"ng-container",12),S()),t&2){let e=h();f(e.cx("header")),s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function pi(t,n){t&1&&_(0)}function hi(t,n){if(t&1&&d(0,pi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ui(t,n){t&1&&d(0,hi,1,1,"ng-template",14)}function gi(t,n){t&1&&_(0)}function fi(t,n){if(t&1&&d(0,gi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function mi(t,n){t&1&&d(0,fi,1,1,"ng-template",15)}function bi(t,n){t&1&&_(0)}function _i(t,n){if(t&1&&d(0,bi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function yi(t,n){t&1&&d(0,_i,1,1,"ng-template",16)}function Ti(t,n){t&1&&_(0)}function wi(t,n){if(t&1&&d(0,Ti,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function vi(t,n){t&1&&d(0,wi,1,1,"ng-template",17)}function Ci(t,n){if(t&1){let e=ce();w(0,"p-paginator",13),A("onPageChange",function(i){ae(e);let o=h();return se(o.onPageChange(i))}),d(1,ui,1,0,null,9)(2,mi,1,0,null,9)(3,yi,1,0,null,9)(4,vi,1,0,null,9),S()}if(t&2){let e=h();a("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale),s(),a("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),a("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Si(t,n){t&1&&_(0)}function xi(t,n){t&1&&_(0)}function Ii(t,n){t&1&&_(0)}function ki(t,n){if(t&1&&(w(0,"div")(1,"table",18,0),d(3,Si,1,0,"ng-container",19),w(4,"thead",20),d(5,xi,1,0,"ng-container",19),S(),I(6,"tbody",21),w(7,"tfoot",20),d(8,Ii,1,0,"ng-container",19),S()()()),t&2){let e=h();f(e.cx("wrapper")),s(),a("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),s(2),a("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",L(18,V,e.columns)),s(),f(e.cx("thead")),s(),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",L(20,V,e.columns)),s(),f(e.cx("tbody")),a("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),s(),f(e.cx("tfoot")),s(),a("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",L(22,V,e.columns))}}function Ei(t,n){if(t&1&&I(0,"div",24,2),t&2){let e=h(2);a("ngClass",G(5,ei,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",L(8,ti,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function zi(t,n){if(t&1&&(w(0,"div"),d(1,Ei,2,10,"div",22),I(2,"div",23,1),S()),t&2){let e=h();f(e.cx("scrollableWrapper")),s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),f(e.cx("scrollableView")),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",G(9,Yt,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Mi(t,n){t&1&&_(0)}function Li(t,n){if(t&1&&d(0,Mi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Di(t,n){t&1&&d(0,Li,1,1,"ng-template",14)}function Ri(t,n){t&1&&_(0)}function Fi(t,n){if(t&1&&d(0,Ri,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Ni(t,n){t&1&&d(0,Fi,1,1,"ng-template",15)}function Pi(t,n){t&1&&_(0)}function Vi(t,n){if(t&1&&d(0,Pi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oi(t,n){t&1&&d(0,Vi,1,1,"ng-template",16)}function Hi(t,n){t&1&&_(0)}function Bi(t,n){if(t&1&&d(0,Hi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ki(t,n){t&1&&d(0,Bi,1,1,"ng-template",17)}function Qi(t,n){if(t&1){let e=ce();w(0,"p-paginator",13),A("onPageChange",function(i){ae(e);let o=h();return se(o.onPageChange(i))}),d(1,Di,1,0,null,9)(2,Ni,1,0,null,9)(3,Oi,1,0,null,9)(4,Ki,1,0,null,9),S()}if(t&2){let e=h();a("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale),s(),a("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),a("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ui(t,n){t&1&&_(0)}function Ai(t,n){if(t&1&&(w(0,"div"),d(1,Ui,1,0,"ng-container",12),S()),t&2){let e=h();f(e.cx("footer")),s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function ji(t,n){if(t&1&&I(0,"div",null,3),t&2){let e=h();f(e.cx("columnResizerHelper")),X("display","none")}}function Gi(t,n){t&1&&(O(),I(0,"svg",26))}function qi(t,n){}function Wi(t,n){t&1&&d(0,qi,0,0,"ng-template")}function $i(t,n){if(t&1&&(w(0,"span",null,4),d(2,Gi,1,0,"svg",25)(3,Wi,1,0,null,12),S()),t&2){let e=h();f(e.cx("reorderIndicatorUp")),X("display","none"),s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Ji(t,n){t&1&&(O(),I(0,"svg",28))}function Xi(t,n){}function Zi(t,n){t&1&&d(0,Xi,0,0,"ng-template")}function Yi(t,n){if(t&1&&(w(0,"span",null,5),d(2,Ji,1,0,"svg",27)(3,Zi,1,0,null,12),S()),t&2){let e=h();f(e.cx("reorderIndicatorDown")),X("display","none"),s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var el=["pTreeTableBody",""],tl=(t,n,e,l)=>({$implicit:t,node:n,rowData:e,columns:l}),il=(t,n)=>({$implicit:t,frozen:n});function ll(t,n){t&1&&_(0)}function ol(t,n){if(t&1&&(H(0),d(1,ll,1,0,"ng-container",2),B()),t&2){let e=h().$implicit,l=h();s(),a("ngTemplateOutlet",l.template)("ngTemplateOutletContext",Ye(2,tl,e,e.node,e.node.data,l.columns))}}function rl(t,n){if(t&1&&d(0,ol,2,7,"ng-container",1),t&2){let e=n.$implicit;a("ngIf",e.visible)}}function nl(t,n){t&1&&_(0)}function al(t,n){if(t&1&&(H(0),d(1,nl,1,0,"ng-container",2),B()),t&2){let e=h();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",G(2,il,e.columns,e.frozen))}}var sl=["scrollHeader"],cl=["scrollHeaderBox"],dl=["scrollBody"],pl=["scrollTable"],hl=["loadingTable"],ul=["scrollFooter"],gl=["scrollFooterBox"],fl=["scrollableAligner"],ml=["scroller"],bl=["ttScrollableView",""],_l=t=>({height:t}),_t=(t,n)=>({$implicit:t,options:n}),yl=t=>({options:t}),Tl=(t,n)=>({"max-height":t,"overflow-y":n}),wl=()=>({});function vl(t,n){t&1&&_(0)}function Cl(t,n){t&1&&_(0)}function Sl(t,n){t&1&&_(0)}function xl(t,n){if(t&1&&d(0,Sl,1,0,"ng-container",12),t&2){let e=n.$implicit,l=n.options;h(2);let i=we(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",G(2,_t,e,l))}}function Il(t,n){t&1&&_(0)}function kl(t,n){if(t&1&&d(0,Il,1,0,"ng-container",12),t&2){let e=n.options,l=h(3);a("ngTemplateOutlet",l.tt.loaderTemplate||l.tt._loaderTemplate)("ngTemplateOutletContext",L(2,yl,e))}}function El(t,n){t&1&&(H(0),d(1,kl,1,4,"ng-template",null,5,de),B())}function zl(t,n){if(t&1){let e=ce();w(0,"p-scroller",17,3),A("onLazyLoad",function(i){ae(e);let o=h();return se(o.tt.onLazyItemLoad(i))}),d(2,xl,1,5,"ng-template",null,4,de)(4,El,3,0,"ng-container",15),S()}if(t&2){let e=h();ve(L(9,_l,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("styleClass",e.cx("scrollableBody"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ml(t,n){t&1&&_(0)}function Ll(t,n){if(t&1&&(H(0),w(1,"div",11,6),d(3,Ml,1,0,"ng-container",12),S(),B()),t&2){let e=h(),l=we(11);s(),f(e.cx("scrollableBody")),a("ngStyle",G(5,Tl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",l)("ngTemplateOutletContext",G(9,_t,e.serializedValue,Ze(8,wl)))}}function Dl(t,n){t&1&&_(0)}function Rl(t,n){t&1&&I(0,"div",null,8),t&2&&X("background-color","transparent")}function Fl(t,n){if(t&1&&(w(0,"table",18,7),d(2,Dl,1,0,"ng-container",12),I(3,"tbody",19),S(),d(4,Rl,2,2,"div",20)),t&2){let e=n.$implicit,l=n.options,i=h();ve(l.contentStyle),f(i.tt.tableStyleClass),a("ngClass",l.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",L(15,V,i.columns)),s(),f(i.cx("tbody")),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Nl(t,n){t&1&&_(0)}function Pl(t,n){t&1&&_(0)}function Vl(t,n){if(t&1&&(w(0,"div",null,9)(2,"div",null,10)(4,"table",21),d(5,Nl,1,0,"ng-container",12),w(6,"tfoot",13),d(7,Pl,1,0,"ng-container",12),S()()()()),t&2){let e=h();f(e.cx("scrollableFooter")),s(2),f(e.cx("scrollableFooterBox")),s(2),f(e.cx("scrollableFooterTable")),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",L(14,V,e.columns)),s(),f(e.cx("tfoot")),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",L(16,V,e.columns))}}function Ol(t,n){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Hl(t,n){if(t&1&&(O(),I(0,"svg",7)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Bl(t,n){if(t&1&&(O(),I(0,"svg",8)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Kl(t,n){if(t&1&&(H(0),d(1,Ol,1,2,"svg",3)(2,Hl,1,2,"svg",4)(3,Bl,1,2,"svg",5),B()),t&2){let e=h();s(),a("ngIf",e.sortOrder===0),s(),a("ngIf",e.sortOrder===1),s(),a("ngIf",e.sortOrder===-1)}}function Ql(t,n){}function Ul(t,n){t&1&&d(0,Ql,0,0,"ng-template")}function Al(t,n){if(t&1&&(w(0,"span"),d(1,Ul,1,0,null,9),S()),t&2){let e=h();f(e.cx("sortableColumnIcon")),s(),a("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",L(4,V,e.sortOrder))}}function jl(t,n){if(t&1&&I(0,"p-badge",10),t&2){let e=h();f(e.cx("sortableColumnBadge")),a("value",e.getBadgeValue())}}function Gl(t,n){t&1&&(O(),I(0,"svg",5)),t&2&&U("aria-hidden",!0)}function ql(t,n){t&1&&(O(),I(0,"svg",6)),t&2&&U("aria-hidden",!0)}function Wl(t,n){if(t&1&&(H(0),d(1,Gl,1,1,"svg",3)(2,ql,1,1,"svg",4),B()),t&2){let e=h();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function $l(t,n){}function Jl(t,n){t&1&&d(0,$l,0,0,"ng-template")}var Xl=`
|
|
1
|
+
import{a as Ne,b as Pe,c as He,d as Be,e as Ke}from"./chunk-4ZFVM7K7.js";import{b as mt,c as bt}from"./chunk-XRLRUCRR.js";import{a as gt,b as ft}from"./chunk-KFUPP33B.js";import{a as Oe}from"./chunk-G7HGWSUU.js";import{e as Ue}from"./chunk-2QD46TNT.js";import{a as Ve,b as Qe}from"./chunk-YQ5GJPDB.js";import{a as ut}from"./chunk-BRHHRJLT.js";import{b as pt,c as ht}from"./chunk-KTV4REGV.js";import{c as q,d as Fe}from"./chunk-YZP4FX7D.js";import{B as rt,C as nt,D as le,F as oe,R as Le,U as at,V as z,W as De,a as Ie,b as ke,d as Ee,ea as st,ha as ct,la as ue,ma as Re,q as lt,r as ze,s as ot,u as ee,ua as dt,v as x,w as he,x as Me}from"./chunk-WAXYETAG.js";import{F as it}from"./chunk-OJ5SEYSF.js";import{Bb as a,Cb as w,Db as S,Eb as I,Ha as Je,Hc as de,Ia as be,Ib as H,Ja as _e,Jb as B,Kb as _,Lb as ce,Mb as Te,Nb as A,Pb as h,Sb as m,Tb as k,Ub as u,Vb as g,Vc as Ce,Wa as s,Xa as C,Xc as y,Ya as ie,Yc as K,Zb as we,_b as X,ac as ve,bc as f,cb as M,cd as Se,d as $,ed as et,fd as Z,gb as J,hb as Xe,ib as ye,id as xe,jd as Y,kb as Q,la as me,ma as $e,mb as d,pa as P,rc as j,rd as tt,sb as U,sc as Ze,sd as pe,ta as ae,tc as L,ua as se,uc as G,va as O,wc as Ye}from"./chunk-VS3RTXZC.js";import{a as W,b as We}from"./chunk-SNAKHGZS.js";var wt=["colgroup"],vt=["caption"],Ct=["header"],St=["body"],xt=["footer"],It=["summary"],kt=["emptymessage"],Et=["paginatorleft"],zt=["paginatorright"],Mt=["paginatordropdownitem"],Lt=["frozenheader"],Dt=["frozenbody"],Rt=["frozenfooter"],Ft=["frozencolgroup"],Nt=["loadingicon"],Pt=["reorderindicatorupicon"],Vt=["reorderindicatordownicon"],Ot=["sorticon"],Ht=["checkboxicon"],Bt=["headercheckboxicon"],Kt=["togglericon"],Qt=["paginatorfirstpagelinkicon"],Ut=["paginatorlastpagelinkicon"],At=["paginatorpreviouspagelinkicon"],jt=["paginatornextpagelinkicon"],Gt=["loader"],qt=["resizeHelper"],Wt=["reorderIndicatorUp"],$t=["reorderIndicatorDown"],Jt=["table"],Xt=["scrollableView"],Zt=["scrollableFrozenView"],V=t=>({$implicit:t}),Yt=(t,n)=>({left:t,width:n}),ei=(t,n)=>[t,n],ti=t=>({width:t});function ii(t,n){if(t&1&&I(0,"i"),t&2){let e=h(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function li(t,n){if(t&1&&(O(),I(0,"svg",11)),t&2){let e=h(3);f(e.cx("loadingIcon")),a("spin",!0)}}function oi(t,n){}function ri(t,n){t&1&&d(0,oi,0,0,"ng-template")}function ni(t,n){if(t&1&&(w(0,"span"),d(1,ri,1,0,null,12),S()),t&2){let e=h(3);f(e.cx("loadingIcon")),s(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ai(t,n){if(t&1&&(H(0),d(1,li,1,3,"svg",10)(2,ni,2,3,"span",6),B()),t&2){let e=h(2);s(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function si(t,n){if(t&1&&(w(0,"div")(1,"div"),d(2,ii,1,2,"i",6)(3,ai,3,2,"ng-container",9),S()()),t&2){let e=h();f(e.cx("loading")),s(),f(e.cx("mask")),s(),a("ngIf",e.loadingIcon),s(),a("ngIf",!e.loadingIcon)}}function ci(t,n){t&1&&_(0)}function di(t,n){if(t&1&&(w(0,"div"),d(1,ci,1,0,"ng-container",12),S()),t&2){let e=h();f(e.cx("header")),s(),a("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function pi(t,n){t&1&&_(0)}function hi(t,n){if(t&1&&d(0,pi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ui(t,n){t&1&&d(0,hi,1,1,"ng-template",14)}function gi(t,n){t&1&&_(0)}function fi(t,n){if(t&1&&d(0,gi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function mi(t,n){t&1&&d(0,fi,1,1,"ng-template",15)}function bi(t,n){t&1&&_(0)}function _i(t,n){if(t&1&&d(0,bi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function yi(t,n){t&1&&d(0,_i,1,1,"ng-template",16)}function Ti(t,n){t&1&&_(0)}function wi(t,n){if(t&1&&d(0,Ti,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function vi(t,n){t&1&&d(0,wi,1,1,"ng-template",17)}function Ci(t,n){if(t&1){let e=ce();w(0,"p-paginator",13),A("onPageChange",function(i){ae(e);let o=h();return se(o.onPageChange(i))}),d(1,ui,1,0,null,9)(2,mi,1,0,null,9)(3,yi,1,0,null,9)(4,vi,1,0,null,9),S()}if(t&2){let e=h();a("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale),s(),a("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),a("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Si(t,n){t&1&&_(0)}function xi(t,n){t&1&&_(0)}function Ii(t,n){t&1&&_(0)}function ki(t,n){if(t&1&&(w(0,"div")(1,"table",18,0),d(3,Si,1,0,"ng-container",19),w(4,"thead",20),d(5,xi,1,0,"ng-container",19),S(),I(6,"tbody",21),w(7,"tfoot",20),d(8,Ii,1,0,"ng-container",19),S()()()),t&2){let e=h();f(e.cx("wrapper")),s(),a("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),s(2),a("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",L(18,V,e.columns)),s(),f(e.cx("thead")),s(),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",L(20,V,e.columns)),s(),f(e.cx("tbody")),a("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),s(),f(e.cx("tfoot")),s(),a("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",L(22,V,e.columns))}}function Ei(t,n){if(t&1&&I(0,"div",24,2),t&2){let e=h(2);a("ngClass",G(5,ei,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",L(8,ti,e.frozenWidth))("scrollHeight",e.scrollHeight)}}function zi(t,n){if(t&1&&(w(0,"div"),d(1,Ei,2,10,"div",22),I(2,"div",23,1),S()),t&2){let e=h();f(e.cx("scrollableWrapper")),s(),a("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),f(e.cx("scrollableView")),a("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",G(9,Yt,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Mi(t,n){t&1&&_(0)}function Li(t,n){if(t&1&&d(0,Mi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Di(t,n){t&1&&d(0,Li,1,1,"ng-template",14)}function Ri(t,n){t&1&&_(0)}function Fi(t,n){if(t&1&&d(0,Ri,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Ni(t,n){t&1&&d(0,Fi,1,1,"ng-template",15)}function Pi(t,n){t&1&&_(0)}function Vi(t,n){if(t&1&&d(0,Pi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Oi(t,n){t&1&&d(0,Vi,1,1,"ng-template",16)}function Hi(t,n){t&1&&_(0)}function Bi(t,n){if(t&1&&d(0,Hi,1,0,"ng-container",12),t&2){let e=h(3);a("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ki(t,n){t&1&&d(0,Bi,1,1,"ng-template",17)}function Qi(t,n){if(t&1){let e=ce();w(0,"p-paginator",13),A("onPageChange",function(i){ae(e);let o=h();return se(o.onPageChange(i))}),d(1,Di,1,0,null,9)(2,Ni,1,0,null,9)(3,Oi,1,0,null,9)(4,Ki,1,0,null,9),S()}if(t&2){let e=h();a("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale),s(),a("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),a("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),a("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),a("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ui(t,n){t&1&&_(0)}function Ai(t,n){if(t&1&&(w(0,"div"),d(1,Ui,1,0,"ng-container",12),S()),t&2){let e=h();f(e.cx("footer")),s(),a("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function ji(t,n){if(t&1&&I(0,"div",null,3),t&2){let e=h();f(e.cx("columnResizerHelper")),X("display","none")}}function Gi(t,n){t&1&&(O(),I(0,"svg",26))}function qi(t,n){}function Wi(t,n){t&1&&d(0,qi,0,0,"ng-template")}function $i(t,n){if(t&1&&(w(0,"span",null,4),d(2,Gi,1,0,"svg",25)(3,Wi,1,0,null,12),S()),t&2){let e=h();f(e.cx("reorderIndicatorUp")),X("display","none"),s(2),a("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function Ji(t,n){t&1&&(O(),I(0,"svg",28))}function Xi(t,n){}function Zi(t,n){t&1&&d(0,Xi,0,0,"ng-template")}function Yi(t,n){if(t&1&&(w(0,"span",null,5),d(2,Ji,1,0,"svg",27)(3,Zi,1,0,null,12),S()),t&2){let e=h();f(e.cx("reorderIndicatorDown")),X("display","none"),s(2),a("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),a("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var el=["pTreeTableBody",""],tl=(t,n,e,l)=>({$implicit:t,node:n,rowData:e,columns:l}),il=(t,n)=>({$implicit:t,frozen:n});function ll(t,n){t&1&&_(0)}function ol(t,n){if(t&1&&(H(0),d(1,ll,1,0,"ng-container",2),B()),t&2){let e=h().$implicit,l=h();s(),a("ngTemplateOutlet",l.template)("ngTemplateOutletContext",Ye(2,tl,e,e.node,e.node.data,l.columns))}}function rl(t,n){if(t&1&&d(0,ol,2,7,"ng-container",1),t&2){let e=n.$implicit;a("ngIf",e.visible)}}function nl(t,n){t&1&&_(0)}function al(t,n){if(t&1&&(H(0),d(1,nl,1,0,"ng-container",2),B()),t&2){let e=h();s(),a("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",G(2,il,e.columns,e.frozen))}}var sl=["scrollHeader"],cl=["scrollHeaderBox"],dl=["scrollBody"],pl=["scrollTable"],hl=["loadingTable"],ul=["scrollFooter"],gl=["scrollFooterBox"],fl=["scrollableAligner"],ml=["scroller"],bl=["ttScrollableView",""],_l=t=>({height:t}),_t=(t,n)=>({$implicit:t,options:n}),yl=t=>({options:t}),Tl=(t,n)=>({"max-height":t,"overflow-y":n}),wl=()=>({});function vl(t,n){t&1&&_(0)}function Cl(t,n){t&1&&_(0)}function Sl(t,n){t&1&&_(0)}function xl(t,n){if(t&1&&d(0,Sl,1,0,"ng-container",12),t&2){let e=n.$implicit,l=n.options;h(2);let i=we(11);a("ngTemplateOutlet",i)("ngTemplateOutletContext",G(2,_t,e,l))}}function Il(t,n){t&1&&_(0)}function kl(t,n){if(t&1&&d(0,Il,1,0,"ng-container",12),t&2){let e=n.options,l=h(3);a("ngTemplateOutlet",l.tt.loaderTemplate||l.tt._loaderTemplate)("ngTemplateOutletContext",L(2,yl,e))}}function El(t,n){t&1&&(H(0),d(1,kl,1,4,"ng-template",null,5,de),B())}function zl(t,n){if(t&1){let e=ce();w(0,"p-scroller",17,3),A("onLazyLoad",function(i){ae(e);let o=h();return se(o.tt.onLazyItemLoad(i))}),d(2,xl,1,5,"ng-template",null,4,de)(4,El,3,0,"ng-container",15),S()}if(t&2){let e=h();ve(L(9,_l,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),a("items",e.tt.serializedValue)("styleClass",e.cx("scrollableBody"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions),s(4),a("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ml(t,n){t&1&&_(0)}function Ll(t,n){if(t&1&&(H(0),w(1,"div",11,6),d(3,Ml,1,0,"ng-container",12),S(),B()),t&2){let e=h(),l=we(11);s(),f(e.cx("scrollableBody")),a("ngStyle",G(5,Tl,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),a("ngTemplateOutlet",l)("ngTemplateOutletContext",G(9,_t,e.serializedValue,Ze(8,wl)))}}function Dl(t,n){t&1&&_(0)}function Rl(t,n){t&1&&I(0,"div",null,8),t&2&&X("background-color","transparent")}function Fl(t,n){if(t&1&&(w(0,"table",18,7),d(2,Dl,1,0,"ng-container",12),I(3,"tbody",19),S(),d(4,Rl,2,2,"div",20)),t&2){let e=n.$implicit,l=n.options,i=h();ve(l.contentStyle),f(i.tt.tableStyleClass),a("ngClass",l.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),a("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",L(15,V,i.columns)),s(),f(i.cx("tbody")),a("pTreeTableBody",i.columns)("pTreeTableBodyTemplate",i.frozen?i.tt.frozenBodyTemplate||i.tt._frozenBodyTemplate||i.tt.bodyTemplate||i.tt._bodyTemplate:i.tt.bodyTemplate||i.tt._bodyTemplate)("serializedNodes",e)("frozen",i.frozen),s(),a("ngIf",i.frozen)}}function Nl(t,n){t&1&&_(0)}function Pl(t,n){t&1&&_(0)}function Vl(t,n){if(t&1&&(w(0,"div",null,9)(2,"div",null,10)(4,"table",21),d(5,Nl,1,0,"ng-container",12),w(6,"tfoot",13),d(7,Pl,1,0,"ng-container",12),S()()()()),t&2){let e=h();f(e.cx("scrollableFooter")),s(2),f(e.cx("scrollableFooterBox")),s(2),f(e.cx("scrollableFooterTable")),a("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",L(14,V,e.columns)),s(),f(e.cx("tfoot")),s(),a("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",L(16,V,e.columns))}}function Ol(t,n){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Hl(t,n){if(t&1&&(O(),I(0,"svg",7)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Bl(t,n){if(t&1&&(O(),I(0,"svg",8)),t&2){let e=h(2);f(e.cx("sortableColumnIcon"))}}function Kl(t,n){if(t&1&&(H(0),d(1,Ol,1,2,"svg",3)(2,Hl,1,2,"svg",4)(3,Bl,1,2,"svg",5),B()),t&2){let e=h();s(),a("ngIf",e.sortOrder===0),s(),a("ngIf",e.sortOrder===1),s(),a("ngIf",e.sortOrder===-1)}}function Ql(t,n){}function Ul(t,n){t&1&&d(0,Ql,0,0,"ng-template")}function Al(t,n){if(t&1&&(w(0,"span"),d(1,Ul,1,0,null,9),S()),t&2){let e=h();f(e.cx("sortableColumnIcon")),s(),a("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",L(4,V,e.sortOrder))}}function jl(t,n){if(t&1&&I(0,"p-badge",10),t&2){let e=h();f(e.cx("sortableColumnBadge")),a("value",e.getBadgeValue())}}function Gl(t,n){t&1&&(O(),I(0,"svg",5)),t&2&&U("aria-hidden",!0)}function ql(t,n){t&1&&(O(),I(0,"svg",6)),t&2&&U("aria-hidden",!0)}function Wl(t,n){if(t&1&&(H(0),d(1,Gl,1,1,"svg",3)(2,ql,1,1,"svg",4),B()),t&2){let e=h();s(),a("ngIf",e.rowNode.node.expanded),s(),a("ngIf",!e.rowNode.node.expanded)}}function $l(t,n){}function Jl(t,n){t&1&&d(0,$l,0,0,"ng-template")}var Xl=`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as z,f as y}from"./chunk-
|
|
1
|
+
import{e as z,f as y}from"./chunk-KDOS4X4T.js";import"./chunk-KTV4REGV.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import"./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-HBH23XBO.js";import"./chunk-5I74KDE7.js";import"./chunk-TS6CZC3J.js";import"./chunk-7EVERJPZ.js";import{$d as p,Bb as h,Cb as o,Db as i,Eb as g,Wa as c,Yd as x,cb as l,cc as r,dc as v,gb as f,hb as s,ma as a,rd as M}from"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var m=class e{constructor(n){this.router=n;this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(l(x))};static \u0275cmp=f({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,d){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),r(7,"You are not authorized"),i(),o(8,"p"),r(9," This page require "),o(10,"span",5),r(11),i(),r(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(h("pageData",d.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),c(11),v(d.role))},dependencies:[z],encapsulation:2})};var D=[{path:"Main/Unauthorized",component:m},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],u=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[p.forChild(D),p]})};var S=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[M,u,y]})};export{S as UnauthorizedModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-B6EKSPI2.js";import"./chunk-NJIOGT5G.js";import"./chunk-YM2ZQTDF.js";import"./chunk-EIH377TR.js";import"./chunk-3RK6DDJD.js";import"./chunk-CKGJCUHW.js";import"./chunk-RNEU5YBN.js";import"./chunk-KDOS4X4T.js";import"./chunk-RCC5SUNH.js";import"./chunk-OYO4SRAO.js";import"./chunk-AASKAWJ4.js";import"./chunk-KTV4REGV.js";import"./chunk-EGADVOKH.js";import"./chunk-3LPZYQS6.js";import"./chunk-BJKHMXAA.js";import"./chunk-EGUIWOC3.js";import"./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-HBH23XBO.js";import"./chunk-5I74KDE7.js";import"./chunk-TS6CZC3J.js";import"./chunk-7EVERJPZ.js";import"./chunk-VS3RTXZC.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as SensitiveFieldComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"
|
|
1
|
+
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25452",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
|
|
2
2
|
Here is the receipt for your purchase {Number} - {Currency} {Amount}
|
|
3
3
|
{ReceiptLink}
|
|
4
4
|
Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png"};export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Pe}from"./chunk-V75YVSP3.js";import{a as Ce}from"./chunk-OTT6RJHI.js";import{a as _e}from"./chunk-2TXCUXTF.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-W6PT2SCS.js";import{a as ve}from"./chunk-BA466YBV.js";import{a as M,d as I}from"./chunk-TS6CZC3J.js";import{a as pe}from"./chunk-TYUL4J6N.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-6ASBLKNZ.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-VPBOQNZA.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-KQXOXN6S.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-IVR7R22T.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-PXOXHTNI.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-RVKNSR2K.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-4AUOGTXI.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-IVBM4Y3J.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-KMIXT3V6.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-UH2PJXPG.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-JKBJ3O3G.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-EBHLJ7D3.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-KFDGG6IE.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-55FE5P6P.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-5VUKKQUZ.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-IMM7CUI7.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-D5RACD33.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-FDH4S2DG.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-2SM2HFRR.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-E424AX7J.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-TNZMSOM3.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-THGBNMLF.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-FQTHN2D5.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-X6MBRJTG.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-CRLFATTL.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-4JVPFRFP.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-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};
|