dealpos 25.49.1 → 25.49.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-VBEXFBFU.js → chunk-26CNGJ3T.js} +3 -3
- package/browser/{chunk-U5H7GBER.js → chunk-2ELK4VEE.js} +1 -1
- package/browser/{chunk-ZAO6ERX4.js → chunk-2IQSX3TK.js} +1 -1
- package/browser/{chunk-C35LD5YG.js → chunk-2M3VVSGC.js} +1 -1
- package/browser/{chunk-BM5IULEV.js → chunk-2MU2JN6B.js} +1 -1
- package/browser/{chunk-GWDG5QTL.js → chunk-2MUHOEAS.js} +1 -1
- package/browser/{chunk-XX5XBWXG.js → chunk-326NKS6E.js} +1 -1
- package/browser/{chunk-XRKDICYT.js → chunk-45HQ3R3G.js} +1 -1
- package/browser/{chunk-FZ56777B.js → chunk-5DKILDWP.js} +1 -1
- package/browser/{chunk-HQSVRUNI.js → chunk-5YEAN4WU.js} +1 -1
- package/browser/{chunk-TK35ILPE.js → chunk-6CU2J77W.js} +1 -1
- package/browser/{chunk-47D2COVY.js → chunk-6UDFJ3KL.js} +1 -1
- package/browser/{chunk-V65GPDYY.js → chunk-7GCPXPXG.js} +1 -1
- package/browser/{chunk-RMLJ7VQA.js → chunk-7IHPSNZY.js} +1 -1
- package/browser/{chunk-4PRNLQIE.js → chunk-7MJ36ZVI.js} +1 -1
- package/browser/{chunk-37ULPHH2.js → chunk-A2F4CPF2.js} +1 -1
- package/browser/{chunk-XWHRZOEJ.js → chunk-A2GJQTMM.js} +1 -1
- package/browser/{chunk-JCBG3ACR.js → chunk-ADJWIV2X.js} +2 -2
- package/browser/{chunk-6SAXGCH6.js → chunk-AF5ZP7YV.js} +1 -1
- package/browser/{chunk-MKUP57RB.js → chunk-B2TQCJSQ.js} +1 -1
- package/browser/{chunk-QYXHGLGK.js → chunk-BG2SRLVD.js} +1 -1
- package/browser/{chunk-Y33VA6DU.js → chunk-BWN3N6E3.js} +1 -1
- package/browser/{chunk-YAOTQ7GG.js → chunk-CBQXDARX.js} +1 -1
- package/browser/{chunk-S7FQGZEQ.js → chunk-D54YUJEN.js} +1 -1
- package/browser/{chunk-SX344D4A.js → chunk-DLJQAGDR.js} +1 -1
- package/browser/{chunk-LFZKETHK.js → chunk-DQT5UJRI.js} +1 -1
- package/browser/{chunk-XXBRX76S.js → chunk-DQUCX3MH.js} +8 -8
- package/browser/{chunk-LDKONM3I.js → chunk-DTBM2FVZ.js} +1 -1
- package/browser/{chunk-SYFIQEXY.js → chunk-ENZHEBZ3.js} +1 -1
- package/browser/{chunk-MKMDHSOZ.js → chunk-EULEC2EQ.js} +1 -1
- package/browser/{chunk-VFD5RGTU.js → chunk-F7ZEEN7E.js} +1 -1
- package/browser/{chunk-UQQBBYQY.js → chunk-FFUI35CT.js} +1 -1
- package/browser/{chunk-VCLEFBM3.js → chunk-FG57XHDS.js} +1 -1
- package/browser/{chunk-V2W2VFA7.js → chunk-FWATBVBG.js} +1 -1
- package/browser/{chunk-76WKJFVI.js → chunk-G5YP7DBH.js} +1 -1
- package/browser/{chunk-VTHJ4C6L.js → chunk-GC3NPYZ4.js} +1 -1
- package/browser/{chunk-D5JMNYRA.js → chunk-HCJAEDV7.js} +1 -1
- package/browser/{chunk-QNKYMB7Q.js → chunk-I3NHLTUC.js} +2 -2
- package/browser/{chunk-DJ4SZD4C.js → chunk-IMWEIBLY.js} +1 -1
- package/browser/{chunk-MNFE6F54.js → chunk-IQAICFFM.js} +1 -1
- package/browser/{chunk-5QAW6WWC.js → chunk-IX3NKVEA.js} +1 -1
- package/browser/{chunk-R3FIUJID.js → chunk-JBGXOAKJ.js} +1 -1
- package/browser/{chunk-EFBHAZPP.js → chunk-JDCZ7YOI.js} +2 -2
- package/browser/{chunk-TW3CPYAK.js → chunk-JRWOPFEW.js} +1 -1
- package/browser/{chunk-BAQJKNNI.js → chunk-JYBOJDPO.js} +1 -1
- package/browser/{chunk-BLIWK3U5.js → chunk-K2Y7IODA.js} +1 -1
- package/browser/{chunk-3SHHPAEJ.js → chunk-KBE7ACT6.js} +1 -1
- package/browser/{chunk-H5OSOTOO.js → chunk-KVGIFF2D.js} +1 -1
- package/browser/{chunk-MQLV6ES3.js → chunk-LDQZMMWQ.js} +1 -1
- package/browser/{chunk-SMWIXJ6H.js → chunk-LMSKVJOL.js} +1 -1
- package/browser/{chunk-Q7CDJAD3.js → chunk-LN3Z2YMJ.js} +1 -1
- package/browser/{chunk-MVSINVKK.js → chunk-LWV7P2HF.js} +1 -1
- package/browser/{chunk-XD5ZOYDH.js → chunk-MO5TC272.js} +1 -1
- package/browser/{chunk-7DEDMSKK.js → chunk-MSD6ZNZJ.js} +1 -1
- package/browser/{chunk-RUAJTKBZ.js → chunk-NM7C3KTD.js} +1 -1
- package/browser/{chunk-P5ZX6CVQ.js → chunk-OOTL4WHK.js} +1 -1
- package/browser/{chunk-YZZUTTPY.js → chunk-OYAHMLKS.js} +1 -1
- package/browser/{chunk-BXYTYADP.js → chunk-PFCAE5TL.js} +1 -1
- package/browser/{chunk-MUCXCVRJ.js → chunk-QICBNHRX.js} +1 -1
- package/browser/{chunk-QP3DUYFT.js → chunk-QWQURKKH.js} +4 -4
- package/browser/{chunk-O74UWMO3.js → chunk-RBODUQFT.js} +1 -1
- package/browser/{chunk-KUNJHL3A.js → chunk-RJ456QEQ.js} +1 -1
- package/browser/{chunk-H37JQKPZ.js → chunk-RJZLCRKU.js} +1 -1
- package/browser/{chunk-DEXQ7A42.js → chunk-RSMPFZYJ.js} +4 -4
- package/browser/{chunk-BIILFTYT.js → chunk-S73WE6MZ.js} +1 -1
- package/browser/{chunk-I32K3O6C.js → chunk-SMPSWQDW.js} +1 -1
- package/browser/{chunk-IIST67DU.js → chunk-U564QQHO.js} +2 -2
- package/browser/{chunk-MOZMYNAD.js → chunk-UAUE3L3L.js} +1 -1
- package/browser/{chunk-Z4WZOYPP.js → chunk-UFGFIP7Q.js} +1 -1
- package/browser/{chunk-SIE37I52.js → chunk-UWWD4B2R.js} +1 -1
- package/browser/{chunk-QQEYD7JD.js → chunk-V5FFXPW6.js} +1 -1
- package/browser/{chunk-4RMEKM2P.js → chunk-V5LXL6ED.js} +1 -1
- package/browser/{chunk-HIYAHDFY.js → chunk-VNBUPHIS.js} +1 -1
- package/browser/{chunk-3JH4ZTZM.js → chunk-VPTJ74LS.js} +1 -1
- package/browser/{chunk-H2A7O3X2.js → chunk-VU6OKTDN.js} +1 -1
- package/browser/{chunk-EOX3JR4B.js → chunk-W5CO3TTZ.js} +1 -1
- package/browser/{chunk-GVWWPTQI.js → chunk-WAVD3GYY.js} +1 -1
- package/browser/{chunk-BHRDKUDE.js → chunk-XRZ45CVY.js} +1 -1
- package/browser/{chunk-2KTDVH66.js → chunk-XTPFVMJ5.js} +2 -2
- package/browser/{chunk-K6LYGJ3N.js → chunk-YECQSID5.js} +1 -1
- package/browser/{chunk-S5JIET5M.js → chunk-YIEP4TNX.js} +8 -8
- package/browser/{chunk-UR3E3J3O.js → chunk-ZMQBUTHW.js} +1 -1
- package/browser/{chunk-GIW6KLN7.js → chunk-ZYXRWVB4.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-UCMJN55T.js → main-W4X7ASBA.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Z}from"./chunk-J6M7UWVR.js";import{e as R,f as ie}from"./chunk-LFZKETHK.js";import"./chunk-Y33VA6DU.js";import{a as B,b as j}from"./chunk-6SAXGCH6.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{D as Q}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{F as ee,N as te}from"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-ZAO6ERX4.js";import"./chunk-GWDG5QTL.js";import"./chunk-36GWLMZX.js";import{b as Y}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-XRKDICYT.js";import{p as X,s as L}from"./chunk-LGOSIAUC.js";import{Ab as m,Cb as x,Db as v,Eb as C,Fb as k,Fc as u,Gb as n,Gc as b,Hb as i,Hc as T,Ib as O,Ic as J,Pb as D,Sb as y,Sd as z,Ub as c,Xa as o,d as F,da as _,eb as f,hc as r,ib as w,ic as S,jb as M,jc as p,kc as q,ma as P,mb as $,qd as V,sd as N,ta as g,ua as E,vd as K,yb as s}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function ue(t,a){if(t&1){let e=D();n(0,"a",18),y("click",function(){g(e);let l=c();return E(l.convertToCsv())}),O(1,"i",19),r(2," Export Fail"),i()}}function _e(t,a){if(t&1){let e=D();n(0,"a",20),y("click",function(){g(e);let l=c();return E(l.uploadOrders())}),O(1,"i",21),r(2," Send Transaction"),i()}}function fe(t,a){t&1&&(n(0,"th",13)(1,"i"),r(2,"Actions"),i()())}function xe(t,a){if(t&1&&(n(0,"span"),r(1),i()),t&2){let e=c().$implicit;o(),S(e==null||e.Variant==null?null:e.Variant.Name)}}function ve(t,a){if(t&1&&(n(0,"div",22),s(1,xe,2,1,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function Ce(t,a){if(t&1&&(n(0,"span"),r(1),i()),t&2){let e=c().$implicit;o(),p(" ",e==null?null:e.Quantity," ")}}function Se(t,a){if(t&1&&(n(0,"div",23),s(1,Ce,2,1,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function he(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"number"),i()),t&2){let e=c().$implicit;o(),p(" ",b(2,1,e.Price)," ")}}function Oe(t,a){if(t&1&&(n(0,"div",23),s(1,he,3,3,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function ye(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"number"),i()),t&2){let e=c().$implicit;o(),p(" ",b(2,1,e.Quantity*e.UnitQuantity*e.Price*(1-e.Discount/100)-e.DiscountAmount)," ")}}function be(t,a){if(t&1&&(n(0,"div",23),s(1,ye,3,3,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function ge(t,a){if(t&1){let e=D();n(0,"td",24)(1,"i",25),y("click",function(){g(e);let l=c().$implicit,h=c(2);return E(h.removeOrder(l))}),i()()}}function Ee(t,a){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),u(5,"date"),i(),n(6,"td"),v(7,ve,2,1,"div",22,x),i(),n(9,"td"),v(10,Se,2,1,"div",23,x),i(),n(12,"td"),v(13,Oe,2,1,"div",23,x),i(),n(15,"td"),v(16,be,2,1,"div",23,x),i(),s(18,ge,2,0,"td",24),i()),t&2){let e=a.$implicit,d=c(2);o(2),S(e.Order.Number),o(2),S(T(5,3,e.Order.Date,"dd MMM yyyy")),o(3),C(e.CartItems),o(3),C(e.CartItems),o(3),C(e.CartItems),o(3),C(e.CartItems),o(2),m(d.roleService.sell.Delete?18:-1)}}function De(t,a){if(t&1&&v(0,Ee,19,6,"tr",null,x),t&2){let e=c();C(e.offlineOrders)}}function Te(t,a){t&1&&(n(0,"td",14)(1,"h4",26),r(2,"There is no Offline Order"),i()())}function Ie(t,a){if(t&1&&(n(0,"span"),r(1),n(2,"strong"),r(3),i(),n(4,"strong"),r(5),u(6,"number"),i(),n(7,"strong"),r(8),u(9,"number"),i()()),t&2){let e=c().$implicit;o(),p("",e==null||e.Variant==null?null:e.Variant.Name," "),o(2),p(" ",e.Quantity+" x"," "),o(2),p(" ",b(6,4,e.Price)+" ="," "),o(3),p(" ",b(9,6,e.Quantity*e.UnitQuantity*e.Price*(1-e.Discount/100)-e.DiscountAmount)," ")}}function Fe(t,a){if(t&1&&(n(0,"div",27),s(1,Ie,10,8,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function Pe(t,a){if(t&1&&(n(0,"div",28),r(1),i()),t&2){let e=c().$implicit;o(),p(" ",e.Message," ")}}function we(t,a){if(t&1){let e=D();n(0,"a",33),y("click",function(){g(e);let l=c().$implicit,h=c(2);return E(h.removeFailedOrder(l))}),O(1,"i",34),i()}}function Me(t,a){if(t&1){let e=D();n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),u(5,"date"),i(),n(6,"td"),v(7,Fe,2,1,"div",27,x),i(),n(9,"td"),s(10,Pe,2,1,"div",28),i(),n(11,"td",29)(12,"a",30),y("click",function(){let l=g(e).$implicit,h=c(2);return E(h.uploadFailedOrder(l))}),O(13,"i",31),i(),s(14,we,2,0,"a",32),i()()}if(t&2){let e=a.$implicit,d=c(2);o(2),S(e.Order.Number),o(2),S(T(5,4,e.Order.Date,"dd MMM yyyy")),o(3),C(e.CartItems),o(3),m(e.Message?10:-1),o(4),m(d.roleService.sell.Delete?14:-1)}}function $e(t,a){if(t&1&&v(0,Me,15,7,"tr",null,x),t&2){let e=c();C(e.failedOrders)}}function ke(t,a){t&1&&(n(0,"td",17)(1,"h4",26),r(2,"There is no Failed Order"),i()())}var H=class t extends B{constructor(e,d,l,h,I,W){super(e);this.httpService=d;this.localData=l;this.csvConverter=h;this.toastr=I;this.roleService=W;this.destroy$=new F,this.pageData={Header:"Offline Orders"}}pageData;offlineOrders=[];failedOrders=[];destroy$;ngOnInit(){this.menuData$.pipe(_(this.destroy$)).subscribe(()=>{this.getOfflineOrders(),this.getFailedOrders()})}removeOrder(e){this.localData.removeOrder(e.id).subscribe({next:()=>{this.toastr.success("Successfully removed order "+e.Order.Number,"Offline Order Deleted!"),this.getOfflineOrders()},error:d=>{this.toastr.warning("Failed to remove order "+e.Order.Number,"Failed to delete order!")}})}getOfflineOrders(){this.localData.findAllOrders().pipe(_(this.destroy$)).subscribe({next:e=>{this.offlineOrders=e},error:e=>{this.toastr.error(e.message,"Error!")}})}getFailedOrders(){this.localData.getFailedOrders().pipe(_(this.destroy$)).subscribe({next:e=>{this.failedOrders=e},error:e=>{this.toastr.error(e.message,"Error!")}})}uploadFailedOrder(e){this.localData.uploadFailedOrder(e).pipe(_(this.destroy$)).subscribe({next:()=>{this.toastr.success("Successfully uploaded order "+e.Order.Number,"Sync Successful!"),this.getFailedOrders()},error:()=>{this.toastr.error("Failed to sync failed order "+e.Order.Number,"Error!")}})}removeFailedOrder(e){this.localData.removeFailedOrder(e.id).pipe(_(this.destroy$)).subscribe({next:d=>{this.toastr.success("Success to remove failed offline order","Error!"),this.getFailedOrders()},error:d=>{this.toastr.error("Failed to remove failed offline order","Error!")}})}uploadOrders(){this.localData.uploadOrders().pipe(_(this.destroy$)).subscribe({next:e=>{e?this.getOfflineOrders():(this.getOfflineOrders(),this.getFailedOrders())},error:e=>{this.getOfflineOrders(),this.getFailedOrders()}})}convertToCsv(){this.csvConverter.convertToCSV(this.getExportData(),"Fail_Transaction.csv")}getExportData(){let e=[["Number","Date","Item","Qty","Price","Total"]];return this.failedOrders.forEach(d=>{d.Items.forEach(l=>{let h=d.Order.Number.toString(),I=d.Order.Date.toLocaleString(),W=l.Quantity.toString(),re=l.Price.toString(),oe=(l.Quantity*l.UnitQuantity*(l.Price*(1-l.Discount/100))-l.DiscountAmount).toString(),ae=[h,I,l.Variant.Name,W,re,oe];e.push(ae)})}),e}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(d){return new(d||t)(f(j),f(L),f(Q),f(Z),f(X),f(Y))};static \u0275cmp=w({type:t,selectors:[["pos-orders"]],standalone:!1,features:[$],decls:52,vars:8,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["matTooltipPosition","above","matTooltip","Export",1,"btn","btn-outline-secondary","me-6"],["value","Send Transaction","matTooltipPosition","above","matTooltip","Send Transaction",1,"btn","btn-outline-secondary"],[1,"container-fluid"],[1,"row","mt-10","mb-12"],[1,"col-md"],[1,"table","mt-5"],[1,"thead-light","sticky-top-thead"],[1,"border-end",2,"width","130px"],[1,"border-end",2,"width","90px"],[1,"border-end"],[1,"border-end","text-end",2,"width","103px"],[1,"border-end","text-end",2,"width","200px"],[1,"text-center",2,"width","90px"],["colspan","7"],[1,"row","mt-12"],[1,"border-end",2,"width","102px"],["colSpan","5"],["matTooltipPosition","above","matTooltip","Export",1,"btn","btn-outline-secondary","me-6",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["value","Send Transaction","matTooltipPosition","above","matTooltip","Send Transaction",1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-paper-plane"],[1,"list-unstyled","text-start"],[1,"list-unstyled","text-end"],[1,"text-center","text-danger"],[1,"fa-solid","fa-xmark","fa-2x","cursor-pointer",3,"click"],[1,"text-center","mt-2"],[1,"list-inline","text-start"],[1,"text-danger"],[1,"d-flex","justify-content-center"],["matTooltipPosition","above","matTooltip","Sync",1,"ms-2","me-2","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-cloud-arrow-up","text-primary","fa-2x"],["matTooltipPosition","above","matTooltip","Remove",1,"ms-5","cursor-pointer"],["matTooltipPosition","above","matTooltip","Remove",1,"ms-5","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa-regular","fa-xmark-circle","text-primary","fa-2x"]],template:function(d,l){d&1&&(n(0,"mainpanel-cmp",0)(1,"actions"),s(2,ue,3,0,"a",1),s(3,_e,3,0,"a",2),i(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"Offline Orders"),i(),n(10,"i"),r(11,"Waiting to be uploaded to the server!"),i(),n(12,"table",6)(13,"thead",7)(14,"tr")(15,"th",8),r(16,"Number"),i(),n(17,"th",9),r(18,"Date"),i(),n(19,"th",10),r(20,"item"),i(),n(21,"th",11),r(22,"Qty"),i(),n(23,"th",12),r(24,"Price"),i(),n(25,"th",12),r(26,"Total"),i(),s(27,fe,3,0,"th",13),i()(),n(28,"tbody"),s(29,De,2,0)(30,Te,3,0,"td",14),i()()()(),n(31,"div",15)(32,"div",5)(33,"h5"),r(34,"Synchronization Errors"),i(),n(35,"i"),r(36,"Exception occured when trying to upload these orders"),i(),n(37,"table",6)(38,"thead",7)(39,"tr")(40,"th",9),r(41,"Number"),i(),n(42,"th",9),r(43,"Date"),i(),n(44,"th",10),r(45,"item"),i(),n(46,"th",10),r(47,"Sync exception"),i(),O(48,"th",16),i()(),n(49,"tbody"),s(50,$e,2,0)(51,ke,3,0,"td",17),i()()()()()()()),d&2&&(k("pageData",l.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),o(2),m((l.failedOrders==null?null:l.failedOrders.length)>0?2:-1),o(),m(l.offlineOrders.length>0?3:-1),o(24),m(l.roleService.sell.Delete?27:-1),o(2),m(l.offlineOrders.length>0?29:30),o(21),m(l.failedOrders.length>0?50:51))},dependencies:[R,N,V],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})};function Ve(t,a){if(t&1&&(n(0,"div",1),O(1,"i",5),r(2),u(3,"date"),i()),t&2){let e=c();o(2),p(" ",T(3,1,e.LastSync,"dd MMM yyyy HH:mm:ss")," ")}}function Ne(t,a){if(t&1&&(n(0,"tr")(1,"td",12),r(2),i(),n(3,"td",13),r(4),i(),n(5,"td"),r(6),i(),n(7,"td",9),r(8),u(9,"number"),i()()),t&2){let e=a.$implicit,d=c(2);o(2),S(e.ID),o(2),S(e.Name),o(2),S(e.Code),o(2),q(" ",d.currency," ",T(9,5,e.UnitPrice,"1.0-4")," ")}}function Le(t,a){if(t&1&&(n(0,"table",3)(1,"thead",6)(2,"tr",7)(3,"th",8),r(4,"ID"),i(),n(5,"th",8),r(6,"Name"),i(),n(7,"th",8),r(8,"Code"),i(),n(9,"th",9),r(10,"Unit Price"),i()()(),n(11,"tbody"),v(12,Ne,10,8,"tr",null,x),u(14,"sortBy"),i(),n(15,"tfoot")(16,"tr",10)(17,"td",11)(18,"strong"),r(19),u(20,"number"),i()()()()()),t&2){let e=c();o(12),C(J(14,1,e.variantList,"asc","Name")),o(7),p("",b(20,5,e.variantList.length)," Product ")}}function Be(t,a){t&1&&(n(0,"h3",4),r(1,"Product has not been synced yet!"),i())}var A=class t extends B{constructor(e,d,l){super(e);this.httpService=d;this._localDataService=l;this.destroy$=new F}variantList=[];OriginalList=[];LastSync;currency;destroy$;ngOnInit(){this.menuData$.subscribe(e=>{this.getVariants(),this.getSyncDate(),this.getCurrency()})}getVariants(){this._localDataService.findAllVariant().pipe(_(this.destroy$)).subscribe({next:e=>{this.OriginalList=e,this.variantList=this.OriginalList},error:e=>{console.error(e)}})}getSyncDate(){this._localDataService.getSyncTime().pipe(_(this.destroy$)).subscribe(e=>{this.LastSync=new Date(e.time)})}getCurrency(){this._localDataService.getPOSStorage().pipe(_(this.destroy$)).subscribe(e=>{e&&(this.currency=e.Currencies[0].Symbol)})}filterList(e){this.variantList=this.OriginalList.filter(d=>d.Name.includes(e))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(d){return new(d||t)(f(j),f(L),f(Q))};static \u0275cmp=w({type:t,selectors:[["pos-products"]],standalone:!1,features:[$],decls:7,vars:4,consts:[[3,"textChange","pageData","hideSearchDropdown"],[1,"h5"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table"],[1,"text-center","mt-4"],[1,"fa-solid","fa-sync-alt"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-start"],[1,"text-end"],[1,"table-footer"],["colspan","4",1,"text-start","empty-column"],[2,"max-width","100px"],[2,"max-width","300px"]],template:function(d,l){d&1&&(n(0,"mainpanel-cmp",0),y("textChange",function(I){return l.filterList(I)}),n(1,"actions"),s(2,Ve,4,4,"div",1),i(),n(3,"content")(4,"div",2),s(5,Le,21,7,"table",3)(6,Be,2,0,"h3",4),i()()()),d&2&&(k("pageData",l.menuData)("hideSearchDropdown",!0),o(2),m(l.LastSync?2:-1),o(3),m(l.variantList.length>0?5:6))},dependencies:[R,N,V,ee],encapsulation:2})};var je=[{path:"Products",component:A},{path:"Orders",component:H},{path:"**",redirectTo:"Products",pathMatch:"full"}],U=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=M({type:t});static \u0275inj=P({imports:[z.forChild(je),z]})};var ne=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=M({type:t});static \u0275inj=P({imports:[K,U,ie,te]})};export{ne as OfflineModule};
|
|
1
|
+
import{a as Z}from"./chunk-J6M7UWVR.js";import{e as R,f as ie}from"./chunk-DQT5UJRI.js";import"./chunk-BWN3N6E3.js";import{a as B,b as j}from"./chunk-AF5ZP7YV.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import{D as Q}from"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{F as ee,N as te}from"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-2IQSX3TK.js";import"./chunk-2MUHOEAS.js";import"./chunk-36GWLMZX.js";import{b as Y}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-45HQ3R3G.js";import{p as X,s as L}from"./chunk-LGOSIAUC.js";import{Ab as m,Cb as x,Db as v,Eb as C,Fb as k,Fc as u,Gb as n,Gc as b,Hb as i,Hc as T,Ib as O,Ic as J,Pb as D,Sb as y,Sd as z,Ub as c,Xa as o,d as F,da as _,eb as f,hc as r,ib as w,ic as S,jb as M,jc as p,kc as q,ma as P,mb as $,qd as V,sd as N,ta as g,ua as E,vd as K,yb as s}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function ue(t,a){if(t&1){let e=D();n(0,"a",18),y("click",function(){g(e);let l=c();return E(l.convertToCsv())}),O(1,"i",19),r(2," Export Fail"),i()}}function _e(t,a){if(t&1){let e=D();n(0,"a",20),y("click",function(){g(e);let l=c();return E(l.uploadOrders())}),O(1,"i",21),r(2," Send Transaction"),i()}}function fe(t,a){t&1&&(n(0,"th",13)(1,"i"),r(2,"Actions"),i()())}function xe(t,a){if(t&1&&(n(0,"span"),r(1),i()),t&2){let e=c().$implicit;o(),S(e==null||e.Variant==null?null:e.Variant.Name)}}function ve(t,a){if(t&1&&(n(0,"div",22),s(1,xe,2,1,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function Ce(t,a){if(t&1&&(n(0,"span"),r(1),i()),t&2){let e=c().$implicit;o(),p(" ",e==null?null:e.Quantity," ")}}function Se(t,a){if(t&1&&(n(0,"div",23),s(1,Ce,2,1,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function he(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"number"),i()),t&2){let e=c().$implicit;o(),p(" ",b(2,1,e.Price)," ")}}function Oe(t,a){if(t&1&&(n(0,"div",23),s(1,he,3,3,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function ye(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"number"),i()),t&2){let e=c().$implicit;o(),p(" ",b(2,1,e.Quantity*e.UnitQuantity*e.Price*(1-e.Discount/100)-e.DiscountAmount)," ")}}function be(t,a){if(t&1&&(n(0,"div",23),s(1,ye,3,3,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function ge(t,a){if(t&1){let e=D();n(0,"td",24)(1,"i",25),y("click",function(){g(e);let l=c().$implicit,h=c(2);return E(h.removeOrder(l))}),i()()}}function Ee(t,a){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),u(5,"date"),i(),n(6,"td"),v(7,ve,2,1,"div",22,x),i(),n(9,"td"),v(10,Se,2,1,"div",23,x),i(),n(12,"td"),v(13,Oe,2,1,"div",23,x),i(),n(15,"td"),v(16,be,2,1,"div",23,x),i(),s(18,ge,2,0,"td",24),i()),t&2){let e=a.$implicit,d=c(2);o(2),S(e.Order.Number),o(2),S(T(5,3,e.Order.Date,"dd MMM yyyy")),o(3),C(e.CartItems),o(3),C(e.CartItems),o(3),C(e.CartItems),o(3),C(e.CartItems),o(2),m(d.roleService.sell.Delete?18:-1)}}function De(t,a){if(t&1&&v(0,Ee,19,6,"tr",null,x),t&2){let e=c();C(e.offlineOrders)}}function Te(t,a){t&1&&(n(0,"td",14)(1,"h4",26),r(2,"There is no Offline Order"),i()())}function Ie(t,a){if(t&1&&(n(0,"span"),r(1),n(2,"strong"),r(3),i(),n(4,"strong"),r(5),u(6,"number"),i(),n(7,"strong"),r(8),u(9,"number"),i()()),t&2){let e=c().$implicit;o(),p("",e==null||e.Variant==null?null:e.Variant.Name," "),o(2),p(" ",e.Quantity+" x"," "),o(2),p(" ",b(6,4,e.Price)+" ="," "),o(3),p(" ",b(9,6,e.Quantity*e.UnitQuantity*e.Price*(1-e.Discount/100)-e.DiscountAmount)," ")}}function Fe(t,a){if(t&1&&(n(0,"div",27),s(1,Ie,10,8,"span"),i()),t&2){let e=a.$implicit;o(),m(e!=null?1:-1)}}function Pe(t,a){if(t&1&&(n(0,"div",28),r(1),i()),t&2){let e=c().$implicit;o(),p(" ",e.Message," ")}}function we(t,a){if(t&1){let e=D();n(0,"a",33),y("click",function(){g(e);let l=c().$implicit,h=c(2);return E(h.removeFailedOrder(l))}),O(1,"i",34),i()}}function Me(t,a){if(t&1){let e=D();n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),u(5,"date"),i(),n(6,"td"),v(7,Fe,2,1,"div",27,x),i(),n(9,"td"),s(10,Pe,2,1,"div",28),i(),n(11,"td",29)(12,"a",30),y("click",function(){let l=g(e).$implicit,h=c(2);return E(h.uploadFailedOrder(l))}),O(13,"i",31),i(),s(14,we,2,0,"a",32),i()()}if(t&2){let e=a.$implicit,d=c(2);o(2),S(e.Order.Number),o(2),S(T(5,4,e.Order.Date,"dd MMM yyyy")),o(3),C(e.CartItems),o(3),m(e.Message?10:-1),o(4),m(d.roleService.sell.Delete?14:-1)}}function $e(t,a){if(t&1&&v(0,Me,15,7,"tr",null,x),t&2){let e=c();C(e.failedOrders)}}function ke(t,a){t&1&&(n(0,"td",17)(1,"h4",26),r(2,"There is no Failed Order"),i()())}var H=class t extends B{constructor(e,d,l,h,I,W){super(e);this.httpService=d;this.localData=l;this.csvConverter=h;this.toastr=I;this.roleService=W;this.destroy$=new F,this.pageData={Header:"Offline Orders"}}pageData;offlineOrders=[];failedOrders=[];destroy$;ngOnInit(){this.menuData$.pipe(_(this.destroy$)).subscribe(()=>{this.getOfflineOrders(),this.getFailedOrders()})}removeOrder(e){this.localData.removeOrder(e.id).subscribe({next:()=>{this.toastr.success("Successfully removed order "+e.Order.Number,"Offline Order Deleted!"),this.getOfflineOrders()},error:d=>{this.toastr.warning("Failed to remove order "+e.Order.Number,"Failed to delete order!")}})}getOfflineOrders(){this.localData.findAllOrders().pipe(_(this.destroy$)).subscribe({next:e=>{this.offlineOrders=e},error:e=>{this.toastr.error(e.message,"Error!")}})}getFailedOrders(){this.localData.getFailedOrders().pipe(_(this.destroy$)).subscribe({next:e=>{this.failedOrders=e},error:e=>{this.toastr.error(e.message,"Error!")}})}uploadFailedOrder(e){this.localData.uploadFailedOrder(e).pipe(_(this.destroy$)).subscribe({next:()=>{this.toastr.success("Successfully uploaded order "+e.Order.Number,"Sync Successful!"),this.getFailedOrders()},error:()=>{this.toastr.error("Failed to sync failed order "+e.Order.Number,"Error!")}})}removeFailedOrder(e){this.localData.removeFailedOrder(e.id).pipe(_(this.destroy$)).subscribe({next:d=>{this.toastr.success("Success to remove failed offline order","Error!"),this.getFailedOrders()},error:d=>{this.toastr.error("Failed to remove failed offline order","Error!")}})}uploadOrders(){this.localData.uploadOrders().pipe(_(this.destroy$)).subscribe({next:e=>{e?this.getOfflineOrders():(this.getOfflineOrders(),this.getFailedOrders())},error:e=>{this.getOfflineOrders(),this.getFailedOrders()}})}convertToCsv(){this.csvConverter.convertToCSV(this.getExportData(),"Fail_Transaction.csv")}getExportData(){let e=[["Number","Date","Item","Qty","Price","Total"]];return this.failedOrders.forEach(d=>{d.Items.forEach(l=>{let h=d.Order.Number.toString(),I=d.Order.Date.toLocaleString(),W=l.Quantity.toString(),re=l.Price.toString(),oe=(l.Quantity*l.UnitQuantity*(l.Price*(1-l.Discount/100))-l.DiscountAmount).toString(),ae=[h,I,l.Variant.Name,W,re,oe];e.push(ae)})}),e}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(d){return new(d||t)(f(j),f(L),f(Q),f(Z),f(X),f(Y))};static \u0275cmp=w({type:t,selectors:[["pos-orders"]],standalone:!1,features:[$],decls:52,vars:8,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["matTooltipPosition","above","matTooltip","Export",1,"btn","btn-outline-secondary","me-6"],["value","Send Transaction","matTooltipPosition","above","matTooltip","Send Transaction",1,"btn","btn-outline-secondary"],[1,"container-fluid"],[1,"row","mt-10","mb-12"],[1,"col-md"],[1,"table","mt-5"],[1,"thead-light","sticky-top-thead"],[1,"border-end",2,"width","130px"],[1,"border-end",2,"width","90px"],[1,"border-end"],[1,"border-end","text-end",2,"width","103px"],[1,"border-end","text-end",2,"width","200px"],[1,"text-center",2,"width","90px"],["colspan","7"],[1,"row","mt-12"],[1,"border-end",2,"width","102px"],["colSpan","5"],["matTooltipPosition","above","matTooltip","Export",1,"btn","btn-outline-secondary","me-6",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["value","Send Transaction","matTooltipPosition","above","matTooltip","Send Transaction",1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-paper-plane"],[1,"list-unstyled","text-start"],[1,"list-unstyled","text-end"],[1,"text-center","text-danger"],[1,"fa-solid","fa-xmark","fa-2x","cursor-pointer",3,"click"],[1,"text-center","mt-2"],[1,"list-inline","text-start"],[1,"text-danger"],[1,"d-flex","justify-content-center"],["matTooltipPosition","above","matTooltip","Sync",1,"ms-2","me-2","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-cloud-arrow-up","text-primary","fa-2x"],["matTooltipPosition","above","matTooltip","Remove",1,"ms-5","cursor-pointer"],["matTooltipPosition","above","matTooltip","Remove",1,"ms-5","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa-regular","fa-xmark-circle","text-primary","fa-2x"]],template:function(d,l){d&1&&(n(0,"mainpanel-cmp",0)(1,"actions"),s(2,ue,3,0,"a",1),s(3,_e,3,0,"a",2),i(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"Offline Orders"),i(),n(10,"i"),r(11,"Waiting to be uploaded to the server!"),i(),n(12,"table",6)(13,"thead",7)(14,"tr")(15,"th",8),r(16,"Number"),i(),n(17,"th",9),r(18,"Date"),i(),n(19,"th",10),r(20,"item"),i(),n(21,"th",11),r(22,"Qty"),i(),n(23,"th",12),r(24,"Price"),i(),n(25,"th",12),r(26,"Total"),i(),s(27,fe,3,0,"th",13),i()(),n(28,"tbody"),s(29,De,2,0)(30,Te,3,0,"td",14),i()()()(),n(31,"div",15)(32,"div",5)(33,"h5"),r(34,"Synchronization Errors"),i(),n(35,"i"),r(36,"Exception occured when trying to upload these orders"),i(),n(37,"table",6)(38,"thead",7)(39,"tr")(40,"th",9),r(41,"Number"),i(),n(42,"th",9),r(43,"Date"),i(),n(44,"th",10),r(45,"item"),i(),n(46,"th",10),r(47,"Sync exception"),i(),O(48,"th",16),i()(),n(49,"tbody"),s(50,$e,2,0)(51,ke,3,0,"td",17),i()()()()()()()),d&2&&(k("pageData",l.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),o(2),m((l.failedOrders==null?null:l.failedOrders.length)>0?2:-1),o(),m(l.offlineOrders.length>0?3:-1),o(24),m(l.roleService.sell.Delete?27:-1),o(2),m(l.offlineOrders.length>0?29:30),o(21),m(l.failedOrders.length>0?50:51))},dependencies:[R,N,V],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]})};function Ve(t,a){if(t&1&&(n(0,"div",1),O(1,"i",5),r(2),u(3,"date"),i()),t&2){let e=c();o(2),p(" ",T(3,1,e.LastSync,"dd MMM yyyy HH:mm:ss")," ")}}function Ne(t,a){if(t&1&&(n(0,"tr")(1,"td",12),r(2),i(),n(3,"td",13),r(4),i(),n(5,"td"),r(6),i(),n(7,"td",9),r(8),u(9,"number"),i()()),t&2){let e=a.$implicit,d=c(2);o(2),S(e.ID),o(2),S(e.Name),o(2),S(e.Code),o(2),q(" ",d.currency," ",T(9,5,e.UnitPrice,"1.0-4")," ")}}function Le(t,a){if(t&1&&(n(0,"table",3)(1,"thead",6)(2,"tr",7)(3,"th",8),r(4,"ID"),i(),n(5,"th",8),r(6,"Name"),i(),n(7,"th",8),r(8,"Code"),i(),n(9,"th",9),r(10,"Unit Price"),i()()(),n(11,"tbody"),v(12,Ne,10,8,"tr",null,x),u(14,"sortBy"),i(),n(15,"tfoot")(16,"tr",10)(17,"td",11)(18,"strong"),r(19),u(20,"number"),i()()()()()),t&2){let e=c();o(12),C(J(14,1,e.variantList,"asc","Name")),o(7),p("",b(20,5,e.variantList.length)," Product ")}}function Be(t,a){t&1&&(n(0,"h3",4),r(1,"Product has not been synced yet!"),i())}var A=class t extends B{constructor(e,d,l){super(e);this.httpService=d;this._localDataService=l;this.destroy$=new F}variantList=[];OriginalList=[];LastSync;currency;destroy$;ngOnInit(){this.menuData$.subscribe(e=>{this.getVariants(),this.getSyncDate(),this.getCurrency()})}getVariants(){this._localDataService.findAllVariant().pipe(_(this.destroy$)).subscribe({next:e=>{this.OriginalList=e,this.variantList=this.OriginalList},error:e=>{console.error(e)}})}getSyncDate(){this._localDataService.getSyncTime().pipe(_(this.destroy$)).subscribe(e=>{this.LastSync=new Date(e.time)})}getCurrency(){this._localDataService.getPOSStorage().pipe(_(this.destroy$)).subscribe(e=>{e&&(this.currency=e.Currencies[0].Symbol)})}filterList(e){this.variantList=this.OriginalList.filter(d=>d.Name.includes(e))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(d){return new(d||t)(f(j),f(L),f(Q))};static \u0275cmp=w({type:t,selectors:[["pos-products"]],standalone:!1,features:[$],decls:7,vars:4,consts:[[3,"textChange","pageData","hideSearchDropdown"],[1,"h5"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table"],[1,"text-center","mt-4"],[1,"fa-solid","fa-sync-alt"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-start"],[1,"text-end"],[1,"table-footer"],["colspan","4",1,"text-start","empty-column"],[2,"max-width","100px"],[2,"max-width","300px"]],template:function(d,l){d&1&&(n(0,"mainpanel-cmp",0),y("textChange",function(I){return l.filterList(I)}),n(1,"actions"),s(2,Ve,4,4,"div",1),i(),n(3,"content")(4,"div",2),s(5,Le,21,7,"table",3)(6,Be,2,0,"h3",4),i()()()),d&2&&(k("pageData",l.menuData)("hideSearchDropdown",!0),o(2),m(l.LastSync?2:-1),o(3),m(l.variantList.length>0?5:6))},dependencies:[R,N,V,ee],encapsulation:2})};var je=[{path:"Products",component:A},{path:"Orders",component:H},{path:"**",redirectTo:"Products",pathMatch:"full"}],U=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=M({type:t});static \u0275inj=P({imports:[z.forChild(je),z]})};var ne=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=M({type:t});static \u0275inj=P({imports:[K,U,ie,te]})};export{ne as OfflineModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as W,d as X}from"./chunk-
|
|
1
|
+
import{c as W,d as X}from"./chunk-GC3NPYZ4.js";import{a as Y,b as Z}from"./chunk-L6PKNRWO.js";import{b as Q,c as U}from"./chunk-JBS5UYZC.js";import{a as B}from"./chunk-B7AC4RMR.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as J,h as q,o as G}from"./chunk-DWZ5JTI2.js";import{a as d}from"./chunk-WUV22SZ4.js";import{s as C}from"./chunk-LGOSIAUC.js";import{Ab as V,Fb as l,Fc as k,Gb as c,Gc as F,Hb as m,Lc as N,Ob as L,Pb as j,Sb as E,Ub as n,Xa as _,Y as f,Ya as M,ca as S,cc as I,d as x,eb as b,fa as T,ga as u,hc as v,ib as $,jc as R,la as w,nd as P,o as h,oa as O,ob as a,od as z,pa as D,ta as p,ua as g,vd as A,yb as H}from"./chunk-IEVGW2RT.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-AF5ZP7YV.js";import{K as a}from"./chunk-IEVGW2RT.js";var s=class extends r{constructor(t,e,o,n){super(t);this.httpService=e;let p=this.getInfoID(n);this.menuData$.pipe(a(()=>this.getBindDataObservable(o,p))).subscribe({next:i=>{this.bindData(i),this.postBindData(i)}})}data;getInfoID(t){return t.snapshot.queryParams.ID}getBindDataObservable(t,e){return this.httpService.post(`/API/${t}`,{ID:e})}bindData(t){this.data=t}postBindData(t){}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f}from"./chunk-
|
|
1
|
+
import{c as f}from"./chunk-2IQSX3TK.js";import{a as m}from"./chunk-45HQ3R3G.js";import{p as v,s as u}from"./chunk-LGOSIAUC.js";import{Cd as h,Gd as l,I as c,k as n,la as s,oa as e}from"./chunk-IEVGW2RT.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-363IDTE3.js";import{d as $,e as tt}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as k,b as G,c as A}from"./chunk-AQW4VS3Y.js";import{a as ot,b as nt}from"./chunk-4W3WYXI2.js";import{f as et}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-363IDTE3.js";import{d as $,e as tt}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{a as k,b as G,c as A}from"./chunk-AQW4VS3Y.js";import{a as ot,b as nt}from"./chunk-4W3WYXI2.js";import{f as et}from"./chunk-GC3NPYZ4.js";import{c as it}from"./chunk-LN3Z2YMJ.js";import{b as Q}from"./chunk-VXPORXGI.js";import{a as q}from"./chunk-YECQSID5.js";import"./chunk-6UDFJ3KL.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{e as Y,f as Z}from"./chunk-DQT5UJRI.js";import"./chunk-FWATBVBG.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-BWN3N6E3.js";import{b as K}from"./chunk-AF5ZP7YV.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import{N as X,g as U}from"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as J}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as W,h as B,o as R}from"./chunk-DWZ5JTI2.js";import"./chunk-2IQSX3TK.js";import"./chunk-2MUHOEAS.js";import"./chunk-36GWLMZX.js";import{b as H}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-45HQ3R3G.js";import{s as j}from"./chunk-LGOSIAUC.js";import{Ab as h,Bb as O,Db as T,Eb as V,Fb as s,Fc as y,Gb as i,Gc as L,Hb as o,Hc as F,Ib as v,Lc as N,Pb as _,Sb as S,Ub as m,Xa as p,eb as u,hc as l,ib as b,ic as w,jc as P,mb as I,mc as C,nc as x,ob as M,oc as f,ta as c,ua as d,yb as D}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function rt(r,g){if(r&1){let t=_();i(0,"button",5),S("click",function(){c(t);let e=m();return d(e.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function lt(r,g){if(r&1){let t=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),f("ngModelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Outlet,e)||(a.pageData.Filter.Outlet=e),d(e)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),f("selectedCategoryIDChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Category,e)||(a.pageData.Filter.Category=e),d(e)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),f("modelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Discontinued,e)||(a.pageData.Filter.Discontinued=e),d(e)}),o()}if(r&2){let t=m();p(2),s("accessType",2),C("ngModel",t.pageData.Filter.Outlet),p(3),C("selectedCategoryID",t.pageData.Filter.Category),s("showClear",!0),p(3),s("options",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.Discontinued),C("model",t.pageData.Filter.Discontinued)}}function pt(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",19),l(6),y(7,"quantityFraction"),o()()),r&2){let t=g.$implicit;p(2),w(t.EntityName),p(2),w(t.Name),p(2),P(" ",L(7,3,t.Inventory)," ")}}function mt(r,g){if(r&1){let t=_();i(0,"div",4)(1,"div",10)(2,"table",11),S("matSortChange",function(e){c(t);let a=m();return d(a.onSortData(e))}),i(3,"thead",12)(4,"tr",13)(5,"th",14),l(6,"Outlet"),o(),i(7,"th",15),l(8,"Storage Location"),o(),i(9,"th",16),l(10," On Hand "),o()()(),i(11,"tbody"),T(12,pt,8,5,"tr",null,O),o(),i(14,"tfoot")(15,"tr",17),v(16,"td",18),i(17,"td",18),l(18,"Total :"),o(),i(19,"td",19),l(20),y(21,"sum"),y(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",20),S("jumpToPage",function(){c(t);let e=m();return d(e.getListData())})("previousPage",function(){c(t);let e=m();return d(e.getListData())})("nextPage",function(){c(t);let e=m();return d(e.getListData())}),o()()()}if(r&2){let t=m();p(12),V(t.data.Data),p(8),P(" ",L(22,6,F(21,3,t.data.Data,"Inventory"))," "),p(3),s("total",t.data.Data==null?null:t.data.Data.length)("pageData",t.pageData)}}var at=class r extends q{constructor(t,n,e,a){super(t,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=e;this.roleService=a}datasource;postInit(t){this.datasource=JSON.parse(JSON.stringify(t.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(t){let n=this.data.Data?.slice();if(!t.active||t.direction===""){this.data.Data=this.datasource;return}let e=t.direction==="asc";this.data.Data=n.sort((a,E)=>this.compare(a[t.active],E[t.active],e))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(H))};static \u0275cmp=b({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,e){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),d(e.searchFromPageOne())}),i(1,"actions")(2,"div",2),D(3,rt,3,0,"button",3),o()(),i(4,"filters"),M(5,lt,9,6,"ng-template",null,0,N),o(),i(7,"content"),D(8,mt,24,8,"div",4),o()()}n&2&&(s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),h(e.roleService.global.Export?3:-1),p(5),h(e.data?8:-1))},dependencies:[Z,Y,X,tt,$,et,it,W,B,R,nt,ot,A,k,G,z,U],encapsulation:2})};export{at as StorageLocationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-KBE7ACT6.js";import{C as N,F as j,G as D,c as P,h as A,i as V,k as I,o as R,p as U}from"./chunk-DWZ5JTI2.js";import{c as k}from"./chunk-2IQSX3TK.js";import"./chunk-2MUHOEAS.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as m}from"./chunk-WUV22SZ4.js";import"./chunk-45HQ3R3G.js";import{p as E}from"./chunk-LGOSIAUC.js";import{Gb as i,Hb as n,Ib as u,Pb as y,Pd as M,Sb as h,Xa as b,Yb as _,Zb as S,_b as x,d as f,da as v,eb as d,hc as s,ib as C,mc as w,nc as O,oc as T,ta as l,ua as p}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var F=["totpCode"],z=class g{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){m.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),m.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return m.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return m.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||g)(d(L),d(M),d(k),d(E))};static \u0275cmp=C({type:g,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&_(F,5),t&2){let r;S(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","https://cdn.dealpos.xyz/web-image/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=y();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),h("submit",function(){return l(r),p(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),p(a)}),h("keypress",function(a){return l(r),p(o.numberOnly(a))})("ngModelChange",function(a){return l(r),p(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[D,U,P,A,V,N,j,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{z as AuthTotpComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Re,b as Fe,c as Ae,d as Oe,e as Ue}from"./chunk-DTVCBHPA.js";import{a as je}from"./chunk-5USF4MRW.js";import{d as Qe}from"./chunk-
|
|
1
|
+
import{a as Re,b as Fe,c as Ae,d as Oe,e as Ue}from"./chunk-DTVCBHPA.js";import{a as je}from"./chunk-5USF4MRW.js";import{d as Qe}from"./chunk-FWATBVBG.js";import{a as Ge}from"./chunk-2CL5FM3P.js";import{a as ze}from"./chunk-45E6XCHN.js";import{a as $e}from"./chunk-SIDUUVNA.js";import{a as Le,d as Ne}from"./chunk-S7FOJJP2.js";import{c as ae,d as Ee,k as E,l as Me}from"./chunk-FU2ZGMX4.js";import{I as De,oa as G,pa as U,xa as re}from"./chunk-SLX34TWD.js";import{F as Ve,a as Pe,g as ke,h as Be,o as Se}from"./chunk-DWZ5JTI2.js";import{$c as T,Fb as o,Gb as b,Hb as x,Ia as J,Ib as C,Mb as N,Nb as R,Ob as z,Oc as we,Pb as v,Sb as w,Tc as ye,Ub as l,Xa as u,Xb as S,Ya as O,Yb as _e,Zb as k,_b as B,ad as j,dc as he,eb as ge,gc as f,gd as Te,hc as Z,ib as H,ic as pe,id as Ce,jb as W,jc as fe,jd as te,ka as me,la as Q,ma as K,mb as X,mc as be,md as ve,na as q,nb as Y,nc as xe,nd as ne,ob as c,oc as Ie,pa as A,ta as m,ua as d,va as V,vd as ie,wb as P,wc as ee,xa as de,yc as $}from"./chunk-IEVGW2RT.js";import{a as ue,b as ce}from"./chunk-SNAKHGZS.js";var Ke=`
|
|
2
2
|
.p-inputnumber {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Dt}from"./chunk-L6PKNRWO.js";import{b as kt}from"./chunk-SIQZO2WM.js";import{b as At,d as Pt,e as Nt}from"./chunk-
|
|
1
|
+
import{a as Dt}from"./chunk-L6PKNRWO.js";import{b as kt}from"./chunk-SIQZO2WM.js";import{b as At,d as Pt,e as Nt}from"./chunk-FWATBVBG.js";import{a as Mt,b as Ft,c as Et,d as Lt,e as Bt}from"./chunk-7YUPYNWQ.js";import{a as wt}from"./chunk-QPAUI5EG.js";import{a as Vt}from"./chunk-45E6XCHN.js";import{b as Ot,c as Le}from"./chunk-BWN3N6E3.js";import{b as Tt}from"./chunk-R2GUMKAU.js";import{a as tt}from"./chunk-B7AC4RMR.js";import{a as vt,c as Ct,d as It}from"./chunk-S7FOJJP2.js";import{b as ct,c as ft,d as gt,e as bt,g as yt,j as xt,k as se,l as St}from"./chunk-FU2ZGMX4.js";import{A as lt,F as ot,T as at,V as z,W as Q,X as le,_ as oe,da as rt,fa as st,ka as pt,la as dt,ma as ut,na as mt,oa as _t,pa as ae,qa as re,w as ve,x as H,xa as ht,z as nt}from"./chunk-SLX34TWD.js";import{F as ne,a as ye,h as te,o as ie}from"./chunk-DWZ5JTI2.js";import{s as it}from"./chunk-LGOSIAUC.js";import{$ as Ne,$c as v,Ab as N,Ac as Ue,Ca as B,Fb as r,Fc as ge,Gb as _,Gc as be,Hb as h,Ia as Te,Ib as R,Lc as L,Mb as C,Nb as I,Ob as M,Oc as G,Pb as T,Pc as We,Sb as x,Sc as Ye,Tc as V,Ub as s,Vb as je,Wb as Me,Xa as c,Xb as S,Y as Pe,Ya as w,Yb as k,Za as $e,Zb as f,_b as g,aa as Re,ad as X,ca as He,cc as Y,d as Ie,dc as Ve,eb as _e,fa as de,fc as he,ga as ze,gc as y,gd as Ze,hc as E,ib as W,ic as A,id as Je,jb as qe,jc as fe,jd as Fe,ka as ue,la as me,ma as Qe,mb as we,mc as K,md as Xe,na as Oe,nb as Ge,nc as $,nd as Ee,o as Ae,oa as Ke,ob as p,oc as q,od as et,pa as F,t as pe,ta as u,ua as m,va as U,vd as ee,wb as O,wc as Z,xc as ke,yb as P,yc as D,zc as J}from"./chunk-IEVGW2RT.js";import{a as Be,b as De}from"./chunk-SNAKHGZS.js";var Rt=`
|
|
2
2
|
.p-multiselect {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
cursor: pointer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Re,b as Pe,c as Oe,d as He,e as Ke}from"./chunk-PHH2AA3W.js";import{b as Tt,c as wt}from"./chunk-SMWIXJ6H.js";import{a as _t,b as yt}from"./chunk-FAED643P.js";import{e as Ae}from"./chunk-7YUPYNWQ.js";import{a as Ve}from"./chunk-LGINK7BD.js";import{a as Be,b as Qe}from"./chunk-QPAUI5EG.js";import{a as bt}from"./chunk-SIDUUVNA.js";import{b as ft,c as mt}from"./chunk-Y33VA6DU.js";import{c as ut,d as U,e as Ne,k as L,l as gt}from"./chunk-FU2ZGMX4.js";import{C as at,D as st,E as re,G as ne,S as De,V as dt,W as M,X as Le,a as Ie,b as ke,d as Ee,ha as ct,ka as pt,oa as fe,pa as Fe,q as rt,r as ze,s as nt,v as ie,w as x,x as ge,xa as ht,y as Me}from"./chunk-SLX34TWD.js";import{F as lt}from"./chunk-DWZ5JTI2.js";import{$c as y,Bc as et,Fb as n,Gb as w,Hb as S,Ia as ye,Ib as I,Ja as Xe,Lc as he,Mb as K,Nb as Q,Ob as _,Pb as pe,Qb as we,Sb as q,Ub as h,Xa as s,Xb as m,Ya as C,Yb as k,Za as oe,Zb as u,Zc as tt,_b as g,ad as A,cc as ve,d as X,dc as Y,eb as N,fc as Ce,gc as f,gd as Se,ib as Z,id as it,jb as Ze,jd as ee,kb as Te,la as _e,ma as $e,mb as H,md as xe,na as Je,nb as le,nd as te,ob as c,pa as z,ta as de,ua as ce,va as O,vd as ot,wb as G,wc as W,wd as ue,xc as Ye,yc as D,zc as j}from"./chunk-IEVGW2RT.js";import{a as J,b as je}from"./chunk-SNAKHGZS.js";var xt=["colgroup"],It=["caption"],kt=["header"],Et=["body"],zt=["footer"],Mt=["summary"],Dt=["emptymessage"],Lt=["paginatorleft"],Ft=["paginatorright"],Nt=["paginatordropdownitem"],Rt=["frozenheader"],Pt=["frozenbody"],Bt=["frozenfooter"],Vt=["frozencolgroup"],Ot=["loadingicon"],Ht=["reorderindicatorupicon"],Kt=["reorderindicatordownicon"],Qt=["sorticon"],At=["checkboxicon"],Ut=["headercheckboxicon"],Gt=["togglericon"],qt=["paginatorfirstpagelinkicon"],Wt=["paginatorlastpagelinkicon"],jt=["paginatorpreviouspagelinkicon"],$t=["paginatornextpagelinkicon"],Jt=["loader"],Xt=["resizeHelper"],Zt=["reorderIndicatorUp"],Yt=["reorderIndicatorDown"],ei=["table"],ti=["scrollableView"],ii=["scrollableFrozenView"],V=t=>({$implicit:t}),oi=(t,a)=>({left:t,width:a}),li=(t,a)=>[t,a],ri=t=>({width:t});function ni(t,a){if(t&1&&I(0,"i"),t&2){let e=h(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function ai(t,a){if(t&1&&(O(),I(0,"svg",13)),t&2){let e=h(3);f(e.cx("loadingIcon")),n("spin",!0)}}function si(t,a){}function di(t,a){t&1&&c(0,si,0,0,"ng-template")}function ci(t,a){if(t&1&&(w(0,"span"),c(1,di,1,0,null,14),S()),t&2){let e=h(3);f(e.cx("loadingIcon")),s(),n("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function pi(t,a){if(t&1&&(K(0),c(1,ai,1,3,"svg",12)(2,ci,2,3,"span",10),Q()),t&2){let e=h(2);s(),n("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),n("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function hi(t,a){if(t&1&&(w(0,"div",9)(1,"div",9),c(2,ni,1,2,"i",10)(3,pi,3,2,"ng-container",11),S()()),t&2){let e=h();f(e.cx("loading")),n("pBind",e.ptm("loading")),s(),f(e.cx("mask")),n("pBind",e.ptm("mask")),s(),n("ngIf",e.loadingIcon),s(),n("ngIf",!e.loadingIcon)}}function ui(t,a){t&1&&_(0)}function gi(t,a){if(t&1&&(w(0,"div",9),c(1,ui,1,0,"ng-container",14),S()),t&2){let e=h();f(e.cx("header")),n("pBind",e.ptm("header")),s(),n("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function fi(t,a){t&1&&_(0)}function mi(t,a){if(t&1&&c(0,fi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function bi(t,a){t&1&&c(0,mi,1,1,"ng-template",16)}function _i(t,a){t&1&&_(0)}function yi(t,a){if(t&1&&c(0,_i,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Ti(t,a){t&1&&c(0,yi,1,1,"ng-template",17)}function wi(t,a){t&1&&_(0)}function vi(t,a){if(t&1&&c(0,wi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Ci(t,a){t&1&&c(0,vi,1,1,"ng-template",18)}function Si(t,a){t&1&&_(0)}function xi(t,a){if(t&1&&c(0,Si,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ii(t,a){t&1&&c(0,xi,1,1,"ng-template",19)}function ki(t,a){if(t&1){let e=pe();w(0,"p-paginator",15),q("onPageChange",function(i){de(e);let l=h();return ce(l.onPageChange(i))}),c(1,bi,1,0,null,11)(2,Ti,1,0,null,11)(3,Ci,1,0,null,11)(4,Ii,1,0,null,11),S()}if(t&2){let e=h();n("pt",e.ptm("pcPaginator"))("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(),n("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),n("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),n("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),n("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ei(t,a){t&1&&_(0)}function zi(t,a){t&1&&_(0)}function Mi(t,a){t&1&&_(0)}function Di(t,a){if(t&1&&(w(0,"div",9)(1,"table",20,0),c(3,Ei,1,0,"ng-container",21),w(4,"thead",22),c(5,zi,1,0,"ng-container",21),S(),I(6,"tbody",23),w(7,"tfoot",22),c(8,Mi,1,0,"ng-container",21),S()()()),t&2){let e=h();f(e.cx("wrapper")),n("pBind",e.ptm("wrapper")),s(),n("pBind",e.ptm("table"))("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),s(2),n("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",D(23,V,e.columns)),s(),f(e.cx("thead")),n("pBind",e.ptm("thead")),s(),n("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",D(25,V,e.columns)),s(),f(e.cx("tbody")),n("pBind",e.ptm("tbody"))("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),s(),f(e.cx("tfoot")),n("pBind",e.ptm("tfoot")),s(),n("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",D(27,V,e.columns))}}function Li(t,a){if(t&1&&I(0,"div",26,2),t&2){let e=h(2);n("ngClass",j(6,li,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",D(9,ri,e.frozenWidth))("scrollHeight",e.scrollHeight)("pBind",e.ptm("scrollableView"))}}function Fi(t,a){if(t&1&&(w(0,"div",9),c(1,Li,2,11,"div",24),I(2,"div",25,1),S()),t&2){let e=h();f(e.cx("scrollableWrapper")),n("pBind",e.ptm("scrollableWrapper")),s(),n("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),f(e.cx("scrollableView")),n("pBind",e.ptm("scrollableView"))("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",j(11,oi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Ni(t,a){t&1&&_(0)}function Ri(t,a){if(t&1&&c(0,Ni,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Pi(t,a){t&1&&c(0,Ri,1,1,"ng-template",16)}function Bi(t,a){t&1&&_(0)}function Vi(t,a){if(t&1&&c(0,Bi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Oi(t,a){t&1&&c(0,Vi,1,1,"ng-template",17)}function Hi(t,a){t&1&&_(0)}function Ki(t,a){if(t&1&&c(0,Hi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Qi(t,a){t&1&&c(0,Ki,1,1,"ng-template",18)}function Ai(t,a){t&1&&_(0)}function Ui(t,a){if(t&1&&c(0,Ai,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Gi(t,a){t&1&&c(0,Ui,1,1,"ng-template",19)}function qi(t,a){if(t&1){let e=pe();w(0,"p-paginator",15),q("onPageChange",function(i){de(e);let l=h();return ce(l.onPageChange(i))}),c(1,Pi,1,0,null,11)(2,Oi,1,0,null,11)(3,Qi,1,0,null,11)(4,Gi,1,0,null,11),S()}if(t&2){let e=h();n("pt",e.ptm("pcPaginator"))("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(),n("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),n("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),n("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),n("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Wi(t,a){t&1&&_(0)}function ji(t,a){if(t&1&&(w(0,"div",9),c(1,Wi,1,0,"ng-container",14),S()),t&2){let e=h();f(e.cx("footer")),n("pBind",e.ptm("footer")),s(),n("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function $i(t,a){if(t&1&&I(0,"div",9,3),t&2){let e=h();f(e.cx("columnResizerHelper")),Y("display","none"),n("pBind",e.ptm("columnResizerHelper"))}}function Ji(t,a){t&1&&(O(),I(0,"svg",28))}function Xi(t,a){}function Zi(t,a){t&1&&c(0,Xi,0,0,"ng-template")}function Yi(t,a){if(t&1&&(w(0,"span",9,4),c(2,Ji,1,0,"svg",27)(3,Zi,1,0,null,14),S()),t&2){let e=h();f(e.cx("reorderIndicatorUp")),Y("display","none"),n("pBind",e.ptm("reorderIndicatorUp")),s(2),n("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),n("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function eo(t,a){t&1&&(O(),I(0,"svg",30))}function to(t,a){}function io(t,a){t&1&&c(0,to,0,0,"ng-template")}function oo(t,a){if(t&1&&(w(0,"span",9,5),c(2,eo,1,0,"svg",29)(3,io,1,0,null,14),S()),t&2){let e=h();f(e.cx("reorderIndicatorDown")),Y("display","none"),n("pBind",e.ptm("reorderIndicatorDown")),s(2),n("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),n("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var lo=["pTreeTableBody",""],ro=(t,a,e,o)=>({$implicit:t,node:a,rowData:e,columns:o}),no=(t,a)=>({$implicit:t,frozen:a});function ao(t,a){t&1&&_(0)}function so(t,a){if(t&1&&(K(0),c(1,ao,1,0,"ng-container",2),Q()),t&2){let e=h().$implicit,o=h();s(),n("ngTemplateOutlet",o.template)("ngTemplateOutletContext",et(2,ro,e,e.node,e.node.data,o.columns))}}function co(t,a){if(t&1&&c(0,so,2,7,"ng-container",1),t&2){let e=a.$implicit;n("ngIf",e.visible)}}function po(t,a){t&1&&_(0)}function ho(t,a){if(t&1&&(K(0),c(1,po,1,0,"ng-container",2),Q()),t&2){let e=h();s(),n("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",j(2,no,e.columns,e.frozen))}}var uo=["scrollHeader"],go=["scrollHeaderBox"],fo=["scrollBody"],mo=["scrollTable"],bo=["loadingTable"],_o=["scrollFooter"],yo=["scrollFooterBox"],To=["scrollableAligner"],wo=["scroller"],vo=["ttScrollableView",""],Co=t=>({height:t}),vt=(t,a)=>({$implicit:t,options:a}),So=t=>({options:t}),xo=(t,a)=>({"max-height":t,"overflow-y":a}),Io=()=>({});function ko(t,a){t&1&&_(0)}function Eo(t,a){t&1&&_(0)}function zo(t,a){t&1&&_(0)}function Mo(t,a){if(t&1&&c(0,zo,1,0,"ng-container",13),t&2){let e=a.$implicit,o=a.options;h(2);let i=ve(11);n("ngTemplateOutlet",i)("ngTemplateOutletContext",j(2,vt,e,o))}}function Do(t,a){t&1&&_(0)}function Lo(t,a){if(t&1&&c(0,Do,1,0,"ng-container",13),t&2){let e=a.options,o=h(3);n("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",D(2,So,e))}}function Fo(t,a){t&1&&(K(0),c(1,Lo,1,4,"ng-template",null,5,he),Q())}function No(t,a){if(t&1){let e=pe();w(0,"p-scroller",18,3),q("onLazyLoad",function(i){de(e);let l=h();return ce(l.tt.onLazyItemLoad(i))}),c(2,Mo,1,5,"ng-template",null,4,he)(4,Fo,3,0,"ng-container",16),S()}if(t&2){let e=h();Ce(D(10,Co,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),n("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)("pt",e.ptm("virtualScroller")),s(4),n("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ro(t,a){t&1&&_(0)}function Po(t,a){if(t&1&&(K(0),w(1,"div",12,6),c(3,Ro,1,0,"ng-container",13),S(),Q()),t&2){let e=h(),o=ve(11);s(),f(e.cx("scrollableBody")),n("pBind",e.ptm("scrollableBody"))("ngStyle",j(6,xo,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),n("ngTemplateOutlet",o)("ngTemplateOutletContext",j(10,vt,e.serializedValue,Ye(9,Io)))}}function Bo(t,a){t&1&&_(0)}function Vo(t,a){t&1&&I(0,"div",null,8),t&2&&Y("background-color","transparent")}function Oo(t,a){if(t&1&&(w(0,"table",19,7),c(2,Bo,1,0,"ng-container",13),I(3,"tbody",20),S(),c(4,Vo,2,2,"div",21)),t&2){let e=a.$implicit,o=a.options,i=h();Ce(o.contentStyle),f(i.tt.tableStyleClass),n("pBind",i.ptm("table"))("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),n("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",D(18,V,i.columns)),s(),f(i.cx("tbody")),n("pBind",i.ptm("tbody"))("pBind",i.ptm("tbody"))("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(),n("ngIf",i.frozen)}}function Ho(t,a){t&1&&_(0)}function Ko(t,a){t&1&&_(0)}function Qo(t,a){if(t&1&&(w(0,"div",11,9)(2,"div",11,10)(4,"table",22),c(5,Ho,1,0,"ng-container",13),w(6,"tfoot",14),c(7,Ko,1,0,"ng-container",13),S()()()()),t&2){let e=h();f(e.cx("scrollableFooter")),n("pBind",e.ptm("scrollableFooter")),s(2),f(e.cx("scrollableFooterBox")),n("pBind",e.ptm("scrollableFooterBox")),s(2),f(e.cx("scrollableFooterTable")),n("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle)("pBind",e.ptm("scrollableFooterTable")),s(),n("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",D(18,V,e.columns)),s(),f(e.cx("tfoot")),n("pBind",e.ptm("tfoot")),s(),n("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",D(20,V,e.columns))}}function Ao(t,a){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function Uo(t,a){if(t&1&&(O(),I(0,"svg",7)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function Go(t,a){if(t&1&&(O(),I(0,"svg",8)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function qo(t,a){if(t&1&&(K(0),c(1,Ao,1,3,"svg",3)(2,Uo,1,3,"svg",4)(3,Go,1,3,"svg",5),Q()),t&2){let e=h();s(),n("ngIf",e.sortOrder===0),s(),n("ngIf",e.sortOrder===1),s(),n("ngIf",e.sortOrder===-1)}}function Wo(t,a){}function jo(t,a){t&1&&c(0,Wo,0,0,"ng-template")}function $o(t,a){if(t&1&&(w(0,"span",9),c(1,jo,1,0,null,10),S()),t&2){let e=h();f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon")),s(),n("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",D(5,V,e.sortOrder))}}function Jo(t,a){if(t&1&&I(0,"p-badge",11),t&2){let e=h();f(e.cx("sortableColumnBadge")),n("value",e.getBadgeValue())("pt",e.ptm("pcSortableColumnBadge"))}}function Xo(t,a){if(t&1&&(O(),I(0,"svg",5)),t&2){let e=h(2);n("pBind",e.ptm("nodetoggleicon")),G("aria-hidden",!0)}}function Zo(t,a){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);n("pBind",e.ptm("nodetoggleicon")),G("aria-hidden",!0)}}function Yo(t,a){if(t&1&&(K(0),c(1,Xo,1,2,"svg",3)(2,Zo,1,2,"svg",4),Q()),t&2){let e=h();s(),n("ngIf",e.rowNode.node.expanded),s(),n("ngIf",!e.rowNode.node.expanded)}}function el(t,a){}function tl(t,a){t&1&&c(0,el,0,0,"ng-template")}var il=`
|
|
1
|
+
import{a as Re,b as Pe,c as Oe,d as He,e as Ke}from"./chunk-PHH2AA3W.js";import{b as Tt,c as wt}from"./chunk-LMSKVJOL.js";import{a as _t,b as yt}from"./chunk-FAED643P.js";import{e as Ae}from"./chunk-7YUPYNWQ.js";import{a as Ve}from"./chunk-LGINK7BD.js";import{a as Be,b as Qe}from"./chunk-QPAUI5EG.js";import{a as bt}from"./chunk-SIDUUVNA.js";import{b as ft,c as mt}from"./chunk-BWN3N6E3.js";import{c as ut,d as U,e as Ne,k as L,l as gt}from"./chunk-FU2ZGMX4.js";import{C as at,D as st,E as re,G as ne,S as De,V as dt,W as M,X as Le,a as Ie,b as ke,d as Ee,ha as ct,ka as pt,oa as fe,pa as Fe,q as rt,r as ze,s as nt,v as ie,w as x,x as ge,xa as ht,y as Me}from"./chunk-SLX34TWD.js";import{F as lt}from"./chunk-DWZ5JTI2.js";import{$c as y,Bc as et,Fb as n,Gb as w,Hb as S,Ia as ye,Ib as I,Ja as Xe,Lc as he,Mb as K,Nb as Q,Ob as _,Pb as pe,Qb as we,Sb as q,Ub as h,Xa as s,Xb as m,Ya as C,Yb as k,Za as oe,Zb as u,Zc as tt,_b as g,ad as A,cc as ve,d as X,dc as Y,eb as N,fc as Ce,gc as f,gd as Se,ib as Z,id as it,jb as Ze,jd as ee,kb as Te,la as _e,ma as $e,mb as H,md as xe,na as Je,nb as le,nd as te,ob as c,pa as z,ta as de,ua as ce,va as O,vd as ot,wb as G,wc as W,wd as ue,xc as Ye,yc as D,zc as j}from"./chunk-IEVGW2RT.js";import{a as J,b as je}from"./chunk-SNAKHGZS.js";var xt=["colgroup"],It=["caption"],kt=["header"],Et=["body"],zt=["footer"],Mt=["summary"],Dt=["emptymessage"],Lt=["paginatorleft"],Ft=["paginatorright"],Nt=["paginatordropdownitem"],Rt=["frozenheader"],Pt=["frozenbody"],Bt=["frozenfooter"],Vt=["frozencolgroup"],Ot=["loadingicon"],Ht=["reorderindicatorupicon"],Kt=["reorderindicatordownicon"],Qt=["sorticon"],At=["checkboxicon"],Ut=["headercheckboxicon"],Gt=["togglericon"],qt=["paginatorfirstpagelinkicon"],Wt=["paginatorlastpagelinkicon"],jt=["paginatorpreviouspagelinkicon"],$t=["paginatornextpagelinkicon"],Jt=["loader"],Xt=["resizeHelper"],Zt=["reorderIndicatorUp"],Yt=["reorderIndicatorDown"],ei=["table"],ti=["scrollableView"],ii=["scrollableFrozenView"],V=t=>({$implicit:t}),oi=(t,a)=>({left:t,width:a}),li=(t,a)=>[t,a],ri=t=>({width:t});function ni(t,a){if(t&1&&I(0,"i"),t&2){let e=h(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function ai(t,a){if(t&1&&(O(),I(0,"svg",13)),t&2){let e=h(3);f(e.cx("loadingIcon")),n("spin",!0)}}function si(t,a){}function di(t,a){t&1&&c(0,si,0,0,"ng-template")}function ci(t,a){if(t&1&&(w(0,"span"),c(1,di,1,0,null,14),S()),t&2){let e=h(3);f(e.cx("loadingIcon")),s(),n("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function pi(t,a){if(t&1&&(K(0),c(1,ai,1,3,"svg",12)(2,ci,2,3,"span",10),Q()),t&2){let e=h(2);s(),n("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),n("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function hi(t,a){if(t&1&&(w(0,"div",9)(1,"div",9),c(2,ni,1,2,"i",10)(3,pi,3,2,"ng-container",11),S()()),t&2){let e=h();f(e.cx("loading")),n("pBind",e.ptm("loading")),s(),f(e.cx("mask")),n("pBind",e.ptm("mask")),s(),n("ngIf",e.loadingIcon),s(),n("ngIf",!e.loadingIcon)}}function ui(t,a){t&1&&_(0)}function gi(t,a){if(t&1&&(w(0,"div",9),c(1,ui,1,0,"ng-container",14),S()),t&2){let e=h();f(e.cx("header")),n("pBind",e.ptm("header")),s(),n("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function fi(t,a){t&1&&_(0)}function mi(t,a){if(t&1&&c(0,fi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function bi(t,a){t&1&&c(0,mi,1,1,"ng-template",16)}function _i(t,a){t&1&&_(0)}function yi(t,a){if(t&1&&c(0,_i,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Ti(t,a){t&1&&c(0,yi,1,1,"ng-template",17)}function wi(t,a){t&1&&_(0)}function vi(t,a){if(t&1&&c(0,wi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Ci(t,a){t&1&&c(0,vi,1,1,"ng-template",18)}function Si(t,a){t&1&&_(0)}function xi(t,a){if(t&1&&c(0,Si,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ii(t,a){t&1&&c(0,xi,1,1,"ng-template",19)}function ki(t,a){if(t&1){let e=pe();w(0,"p-paginator",15),q("onPageChange",function(i){de(e);let l=h();return ce(l.onPageChange(i))}),c(1,bi,1,0,null,11)(2,Ti,1,0,null,11)(3,Ci,1,0,null,11)(4,Ii,1,0,null,11),S()}if(t&2){let e=h();n("pt",e.ptm("pcPaginator"))("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(),n("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),n("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),n("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),n("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Ei(t,a){t&1&&_(0)}function zi(t,a){t&1&&_(0)}function Mi(t,a){t&1&&_(0)}function Di(t,a){if(t&1&&(w(0,"div",9)(1,"table",20,0),c(3,Ei,1,0,"ng-container",21),w(4,"thead",22),c(5,zi,1,0,"ng-container",21),S(),I(6,"tbody",23),w(7,"tfoot",22),c(8,Mi,1,0,"ng-container",21),S()()()),t&2){let e=h();f(e.cx("wrapper")),n("pBind",e.ptm("wrapper")),s(),n("pBind",e.ptm("table"))("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),s(2),n("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",D(23,V,e.columns)),s(),f(e.cx("thead")),n("pBind",e.ptm("thead")),s(),n("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",D(25,V,e.columns)),s(),f(e.cx("tbody")),n("pBind",e.ptm("tbody"))("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),s(),f(e.cx("tfoot")),n("pBind",e.ptm("tfoot")),s(),n("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",D(27,V,e.columns))}}function Li(t,a){if(t&1&&I(0,"div",26,2),t&2){let e=h(2);n("ngClass",j(6,li,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("frozen",!0)("ngStyle",D(9,ri,e.frozenWidth))("scrollHeight",e.scrollHeight)("pBind",e.ptm("scrollableView"))}}function Fi(t,a){if(t&1&&(w(0,"div",9),c(1,Li,2,11,"div",24),I(2,"div",25,1),S()),t&2){let e=h();f(e.cx("scrollableWrapper")),n("pBind",e.ptm("scrollableWrapper")),s(),n("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),s(),f(e.cx("scrollableView")),n("pBind",e.ptm("scrollableView"))("ttScrollableView",e.columns)("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",j(11,oi,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function Ni(t,a){t&1&&_(0)}function Ri(t,a){if(t&1&&c(0,Ni,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Pi(t,a){t&1&&c(0,Ri,1,1,"ng-template",16)}function Bi(t,a){t&1&&_(0)}function Vi(t,a){if(t&1&&c(0,Bi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function Oi(t,a){t&1&&c(0,Vi,1,1,"ng-template",17)}function Hi(t,a){t&1&&_(0)}function Ki(t,a){if(t&1&&c(0,Hi,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Qi(t,a){t&1&&c(0,Ki,1,1,"ng-template",18)}function Ai(t,a){t&1&&_(0)}function Ui(t,a){if(t&1&&c(0,Ai,1,0,"ng-container",14),t&2){let e=h(3);n("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Gi(t,a){t&1&&c(0,Ui,1,1,"ng-template",19)}function qi(t,a){if(t&1){let e=pe();w(0,"p-paginator",15),q("onPageChange",function(i){de(e);let l=h();return ce(l.onPageChange(i))}),c(1,Pi,1,0,null,11)(2,Oi,1,0,null,11)(3,Qi,1,0,null,11)(4,Gi,1,0,null,11),S()}if(t&2){let e=h();n("pt",e.ptm("pcPaginator"))("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(),n("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),s(),n("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),s(),n("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),s(),n("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Wi(t,a){t&1&&_(0)}function ji(t,a){if(t&1&&(w(0,"div",9),c(1,Wi,1,0,"ng-container",14),S()),t&2){let e=h();f(e.cx("footer")),n("pBind",e.ptm("footer")),s(),n("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function $i(t,a){if(t&1&&I(0,"div",9,3),t&2){let e=h();f(e.cx("columnResizerHelper")),Y("display","none"),n("pBind",e.ptm("columnResizerHelper"))}}function Ji(t,a){t&1&&(O(),I(0,"svg",28))}function Xi(t,a){}function Zi(t,a){t&1&&c(0,Xi,0,0,"ng-template")}function Yi(t,a){if(t&1&&(w(0,"span",9,4),c(2,Ji,1,0,"svg",27)(3,Zi,1,0,null,14),S()),t&2){let e=h();f(e.cx("reorderIndicatorUp")),Y("display","none"),n("pBind",e.ptm("reorderIndicatorUp")),s(2),n("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),s(),n("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function eo(t,a){t&1&&(O(),I(0,"svg",30))}function to(t,a){}function io(t,a){t&1&&c(0,to,0,0,"ng-template")}function oo(t,a){if(t&1&&(w(0,"span",9,5),c(2,eo,1,0,"svg",29)(3,io,1,0,null,14),S()),t&2){let e=h();f(e.cx("reorderIndicatorDown")),Y("display","none"),n("pBind",e.ptm("reorderIndicatorDown")),s(2),n("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),s(),n("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var lo=["pTreeTableBody",""],ro=(t,a,e,o)=>({$implicit:t,node:a,rowData:e,columns:o}),no=(t,a)=>({$implicit:t,frozen:a});function ao(t,a){t&1&&_(0)}function so(t,a){if(t&1&&(K(0),c(1,ao,1,0,"ng-container",2),Q()),t&2){let e=h().$implicit,o=h();s(),n("ngTemplateOutlet",o.template)("ngTemplateOutletContext",et(2,ro,e,e.node,e.node.data,o.columns))}}function co(t,a){if(t&1&&c(0,so,2,7,"ng-container",1),t&2){let e=a.$implicit;n("ngIf",e.visible)}}function po(t,a){t&1&&_(0)}function ho(t,a){if(t&1&&(K(0),c(1,po,1,0,"ng-container",2),Q()),t&2){let e=h();s(),n("ngTemplateOutlet",e.tt.emptyMessageTemplate)("ngTemplateOutletContext",j(2,no,e.columns,e.frozen))}}var uo=["scrollHeader"],go=["scrollHeaderBox"],fo=["scrollBody"],mo=["scrollTable"],bo=["loadingTable"],_o=["scrollFooter"],yo=["scrollFooterBox"],To=["scrollableAligner"],wo=["scroller"],vo=["ttScrollableView",""],Co=t=>({height:t}),vt=(t,a)=>({$implicit:t,options:a}),So=t=>({options:t}),xo=(t,a)=>({"max-height":t,"overflow-y":a}),Io=()=>({});function ko(t,a){t&1&&_(0)}function Eo(t,a){t&1&&_(0)}function zo(t,a){t&1&&_(0)}function Mo(t,a){if(t&1&&c(0,zo,1,0,"ng-container",13),t&2){let e=a.$implicit,o=a.options;h(2);let i=ve(11);n("ngTemplateOutlet",i)("ngTemplateOutletContext",j(2,vt,e,o))}}function Do(t,a){t&1&&_(0)}function Lo(t,a){if(t&1&&c(0,Do,1,0,"ng-container",13),t&2){let e=a.options,o=h(3);n("ngTemplateOutlet",o.tt.loaderTemplate||o.tt._loaderTemplate)("ngTemplateOutletContext",D(2,So,e))}}function Fo(t,a){t&1&&(K(0),c(1,Lo,1,4,"ng-template",null,5,he),Q())}function No(t,a){if(t&1){let e=pe();w(0,"p-scroller",18,3),q("onLazyLoad",function(i){de(e);let l=h();return ce(l.tt.onLazyItemLoad(i))}),c(2,Mo,1,5,"ng-template",null,4,he)(4,Fo,3,0,"ng-container",16),S()}if(t&2){let e=h();Ce(D(10,Co,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),n("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)("pt",e.ptm("virtualScroller")),s(4),n("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function Ro(t,a){t&1&&_(0)}function Po(t,a){if(t&1&&(K(0),w(1,"div",12,6),c(3,Ro,1,0,"ng-container",13),S(),Q()),t&2){let e=h(),o=ve(11);s(),f(e.cx("scrollableBody")),n("pBind",e.ptm("scrollableBody"))("ngStyle",j(6,xo,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),s(2),n("ngTemplateOutlet",o)("ngTemplateOutletContext",j(10,vt,e.serializedValue,Ye(9,Io)))}}function Bo(t,a){t&1&&_(0)}function Vo(t,a){t&1&&I(0,"div",null,8),t&2&&Y("background-color","transparent")}function Oo(t,a){if(t&1&&(w(0,"table",19,7),c(2,Bo,1,0,"ng-container",13),I(3,"tbody",20),S(),c(4,Vo,2,2,"div",21)),t&2){let e=a.$implicit,o=a.options,i=h();Ce(o.contentStyle),f(i.tt.tableStyleClass),n("pBind",i.ptm("table"))("ngClass",o.contentStyleClass)("ngStyle",i.tt.tableStyle),s(2),n("ngTemplateOutlet",i.frozen?i.tt.frozenColGroupTemplate||i.tt._frozenColGroupTemplate||i.tt.colGroupTemplate||i.tt._colGroupTemplate:i.tt.colGroupTemplate||i.tt._colGroupTemplate)("ngTemplateOutletContext",D(18,V,i.columns)),s(),f(i.cx("tbody")),n("pBind",i.ptm("tbody"))("pBind",i.ptm("tbody"))("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(),n("ngIf",i.frozen)}}function Ho(t,a){t&1&&_(0)}function Ko(t,a){t&1&&_(0)}function Qo(t,a){if(t&1&&(w(0,"div",11,9)(2,"div",11,10)(4,"table",22),c(5,Ho,1,0,"ng-container",13),w(6,"tfoot",14),c(7,Ko,1,0,"ng-container",13),S()()()()),t&2){let e=h();f(e.cx("scrollableFooter")),n("pBind",e.ptm("scrollableFooter")),s(2),f(e.cx("scrollableFooterBox")),n("pBind",e.ptm("scrollableFooterBox")),s(2),f(e.cx("scrollableFooterTable")),n("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle)("pBind",e.ptm("scrollableFooterTable")),s(),n("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",D(18,V,e.columns)),s(),f(e.cx("tfoot")),n("pBind",e.ptm("tfoot")),s(),n("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",D(20,V,e.columns))}}function Ao(t,a){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function Uo(t,a){if(t&1&&(O(),I(0,"svg",7)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function Go(t,a){if(t&1&&(O(),I(0,"svg",8)),t&2){let e=h(2);f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon"))}}function qo(t,a){if(t&1&&(K(0),c(1,Ao,1,3,"svg",3)(2,Uo,1,3,"svg",4)(3,Go,1,3,"svg",5),Q()),t&2){let e=h();s(),n("ngIf",e.sortOrder===0),s(),n("ngIf",e.sortOrder===1),s(),n("ngIf",e.sortOrder===-1)}}function Wo(t,a){}function jo(t,a){t&1&&c(0,Wo,0,0,"ng-template")}function $o(t,a){if(t&1&&(w(0,"span",9),c(1,jo,1,0,null,10),S()),t&2){let e=h();f(e.cx("sortableColumnIcon")),n("pBind",e.ptm("sortableColumnIcon")),s(),n("ngTemplateOutlet",e.tt.sortIconTemplate||e.tt._sortIconTemplate)("ngTemplateOutletContext",D(5,V,e.sortOrder))}}function Jo(t,a){if(t&1&&I(0,"p-badge",11),t&2){let e=h();f(e.cx("sortableColumnBadge")),n("value",e.getBadgeValue())("pt",e.ptm("pcSortableColumnBadge"))}}function Xo(t,a){if(t&1&&(O(),I(0,"svg",5)),t&2){let e=h(2);n("pBind",e.ptm("nodetoggleicon")),G("aria-hidden",!0)}}function Zo(t,a){if(t&1&&(O(),I(0,"svg",6)),t&2){let e=h(2);n("pBind",e.ptm("nodetoggleicon")),G("aria-hidden",!0)}}function Yo(t,a){if(t&1&&(K(0),c(1,Xo,1,2,"svg",3)(2,Zo,1,2,"svg",4),Q()),t&2){let e=h();s(),n("ngIf",e.rowNode.node.expanded),s(),n("ngIf",!e.rowNode.node.expanded)}}function el(t,a){}function tl(t,a){t&1&&c(0,el,0,0,"ng-template")}var il=`
|
|
2
2
|
/* For PrimeNG */
|
|
3
3
|
.p-treetable {
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-ZKOARDC2.js";import{b as ue,c as de}from"./chunk-BQUL7SGN.js";import{g as he}from"./chunk-PRVQ3NAP.js";import{c as ce,d as pe}from"./chunk-
|
|
1
|
+
import{a as ge}from"./chunk-ZKOARDC2.js";import{b as ue,c as de}from"./chunk-BQUL7SGN.js";import{g as he}from"./chunk-PRVQ3NAP.js";import{c as ce,d as pe}from"./chunk-BWN3N6E3.js";import{A as re,G as me}from"./chunk-26YFRPR2.js";import{b as le,c as ae}from"./chunk-JBS5UYZC.js";import{F as ne,G as oe,h as te,o as ie}from"./chunk-DWZ5JTI2.js";import{p as ee,s as se}from"./chunk-LGOSIAUC.js";import{Ab as V,Ca as I,Fb as y,Gb as m,Ha as _,Hb as p,I as O,Ib as E,Ja as D,Lc as Y,Pb as k,Sa as j,Sb as C,Ub as u,Xa as c,Ya as d,Yb as H,Zb as Q,_b as q,c as N,db as R,e as T,eb as w,fa as K,fc as W,hc as S,ib as P,ic as A,jc as B,kb as U,la as L,mc as z,nc as G,o as F,ob as $,oc as J,pa as f,ta as a,ua as r,vd as Z,xc as v,yb as x,yc as X}from"./chunk-IEVGW2RT.js";var M=class o{selectionsSubject=new T(new Map);getSelectedItems(t){return this.selectionsSubject.value.get(t)||[]}setSelectedItems(t,e){let i=new Map(this.selectionsSubject.value);i.set(t,[...e]),this.selectionsSubject.next(i)}clearSelectedItems(t){let e=new Map(this.selectionsSubject.value);e.delete(t),this.selectionsSubject.next(e)}getSelectedItems$(t){return new N(e=>{let i=this.selectionsSubject.subscribe(n=>{e.next(n.get(t)||[])});return()=>i.unsubscribe()})}getAllSelections(){return this.selectionsSubject.value}clearAllSelections(){this.selectionsSubject.next(new Map)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=L({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ie=["autocomplete"],_e=()=>({width:"100%"}),we=()=>({width:"100%",maxWidth:"400px"}),xe=o=>({style:o});function Ve(o,t){if(o&1&&E(0,"img",10),o&2){let e=u(2).$implicit,i=u();y("src",e[i.thumbnailKey],j)}}function Ee(o,t){o&1&&(m(0,"div",11),E(1,"i",12),p())}function ke(o,t){if(o&1&&(m(0,"div"),x(1,Ve,1,1,"img",10)(2,Ee,2,0,"div",11),p()),o&2){let e=u().$implicit,i=u();c(),V(e[i.thumbnailKey]&&e[i.thumbnailKey].trim()!==""?1:2)}}function Ae(o,t){if(o&1){let e=k();m(0,"div",5),C("click",function(n){let s=a(e).$implicit,l=u();return r(l.toggleCheckbox(s,n))}),m(1,"p-checkbox",6),J("ngModelChange",function(n){let s=a(e).$implicit;return G(s._checked,n)||(s._checked=n),r(n)}),C("onChange",function(){let n=a(e).$implicit,s=u();return r(s.onCheckboxChange(n))})("click",function(n){return a(e),r(n.stopPropagation())}),p(),x(2,ke,3,1,"div"),m(3,"div",7)(4,"div",8),S(5),p(),m(6,"div",9),S(7),p()()()}if(o&2){let e=t.$implicit,i=u();c(),z("ngModel",e._checked),y("binary",!0),c(),V(i.showThumbnail?2:-1),c(3),A(e[i.valueField]),c(2),B(" ",e.Code," ")}}var ye=class o{autocomplete;matTooltip;modelName;isMultiple=!0;placeholder="Search";isShowEmptyMessage=!1;emptyMessage="No results found";tooltipMessage="";valueField="Name";paramsKey="Key";label;listDataEndpoint;showThumbnail=!1;thumbnailKey="";maxSelectedItems=0;modelNameChange=new d;onSelectItem=new d;onRemoveItem=new d;completeMethod=new d;onSelect=new d;onUnselect=new d;httpService=f(se);toastr=f(ee);autocompleteV3Service=f(M);selectedItems=I([]);suggestionList;internalSuggestionList=I([]);ngOnInit(){if(this.isMultiple&&this.modelName&&Array.isArray(this.modelName)&&this.modelName.length>0){if(this.suggestionList&&this.suggestionList.length>0){let e=this.modelName.map(i=>this.suggestionList.find(n=>n[this.paramsKey]===i)).filter(i=>i!==void 0);if(e.length>0){this.selectedItems.set(e),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,e);return}}let t=this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint);if(t&&t.length>0){let e=t.filter(i=>this.modelName.includes(i[this.paramsKey]));if(e.length>0){this.selectedItems.set(e);return}}}}ngOnChanges(t){let e=t.modelName;e&&e?.currentValue?.length===0&&this.resetSelection()}resetSelection(){this.selectedItems.set([])}onModelChange(t){if(this.isMultiple&&Array.isArray(t)){this.selectedItems.set(t),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,t);let e=t.map(i=>i[this.paramsKey]);this.modelNameChange.emit(e)}else this.isMultiple||this.modelNameChange.emit(t)}onCompleteHandler(t){let e=t.query;if(this.suggestionList&&this.suggestionList.length>0){let s=this.selectedItems(),l=this.suggestionList.filter(h=>{let g=e.toLowerCase(),b=(h.Name||"").toLowerCase(),Se=(h.Key||"").toLowerCase(),ve=b.includes(g)||Se.includes(g),Me=!s.some(be=>be[this.paramsKey]===h[this.paramsKey]);return ve&&Me});this.internalSuggestionList.set(l);return}let i=new URLSearchParams({Prefix:e,Count:"100"}).toString(),n=this.listDataEndpoint;n&&this.httpService.get(`${n}?${i}`).pipe(O(()=>F([])),K(s=>{let l=this.selectedItems(),h=s.filter(g=>!l.some(b=>b[this.paramsKey]===g[this.paramsKey]));this.internalSuggestionList.set(h)})).subscribe()}onSelectHandler(t){let e=this.isMultiple,i=this.maxSelectedItems;if(e&&i>0){let n=this.selectedItems();if(n.length>=i){this.toastr.warning(`Maximum ${i} items can be selected`,"Selection Limit"),setTimeout(()=>{this.modelNameChange.emit([...n])},0);return}}this.onSelectItem.emit(t),this.onSelect.emit(t)}onRemoveHandler(t){this.onRemoveItem.emit(t.value),this.onUnselect.emit(t.value),t.value&&(t.value._checked=!1)}isChecked(t){let e=this.selectedItems(),i=this.valueField;return e.some(n=>n[i]===t[i])}clearSelections(){this.selectedItems.set([]),this.autocompleteV3Service.clearSelectedItems(this.listDataEndpoint),this.modelNameChange.emit([])}getCurrentSelectionsFromService(){return this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint)}onCheckboxChange(t){if(t._checked)this.isChecked(t)||(this.selectedItems.set([...this.selectedItems(),t]),this.onModelChange(this.selectedItems()));else{let e=this.selectedItems().filter(i=>i[this.paramsKey]!==t[this.paramsKey]);this.selectedItems.set(e),this.onModelChange(e)}setTimeout(()=>{this.autocomplete&&this.autocomplete.inputEL.nativeElement.focus()},0)}toggleCheckbox(t,e){t._checked=!t._checked,this.onCheckboxChange(t),e.stopPropagation()}ngOnDestroy(){}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=P({type:o,selectors:[["autocompleteV3"]],viewQuery:function(e,i){if(e&1&&H(Ie,5),e&2){let n;Q(n=q())&&(i.autocomplete=n.first)}},inputs:{matTooltip:"matTooltip",modelName:"modelName",isMultiple:"isMultiple",placeholder:"placeholder",isShowEmptyMessage:"isShowEmptyMessage",emptyMessage:"emptyMessage",tooltipMessage:"tooltipMessage",valueField:"valueField",paramsKey:"paramsKey",label:"label",listDataEndpoint:"listDataEndpoint",showThumbnail:"showThumbnail",thumbnailKey:"thumbnailKey",maxSelectedItems:"maxSelectedItems"},outputs:{modelNameChange:"modelNameChange",onSelectItem:"onSelectItem",onRemoveItem:"onRemoveItem",completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect"},features:[_],decls:8,vars:18,consts:[["autocomplete",""],["item",""],[1,"d-flex","flex-column","gap-2",2,"margin-top","1rem"],[1,"w-100",2,"width","100%"],[1,"w-100",3,"ngModelChange","completeMethod","onSelect","onUnselect","matTooltip","ngModel","suggestions","optionLabel","multiple","placeholder","showEmptyMessage","emptyMessage","inputStyle","overlayOptions"],[1,"d-flex","align-items-center","gap-2","p-6","w-100",3,"click"],[2,"margin","0",3,"ngModelChange","onChange","click","ngModel","binary"],[1,"ms-2"],[1,"font-medium"],[1,"text-muted",2,"font-size","10px !important"],["width","30","height","30","brokenImageIconFailSafe","","brokenImageIconFailSafeClass","ms-2 empty-image d-flex justify-content-center align-items-center rounded-1",1,"ms-2","empty-image",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","rounded-1","ms-2"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(e,i){if(e&1){let n=k();m(0,"div",2)(1,"h6"),S(2),p(),m(3,"div",3)(4,"p-autocomplete",4,0),C("ngModelChange",function(l){return a(n),r(i.onModelChange(l))})("completeMethod",function(l){return a(n),r(i.onCompleteHandler(l))})("onSelect",function(l){return a(n),r(i.onSelectHandler(l))})("onUnselect",function(l){return a(n),r(i.onRemoveHandler(l))}),$(6,Ae,8,5,"ng-template",null,1,Y),p()()()}e&2&&(c(2),A(i.label),c(2),W(v(13,_e)),y("matTooltip",i.tooltipMessage)("ngModel",i.selectedItems())("suggestions",i.internalSuggestionList())("optionLabel",i.valueField)("multiple",i.isMultiple)("placeholder",i.placeholder)("showEmptyMessage",i.isShowEmptyMessage)("emptyMessage",i.emptyMessage)("inputStyle",v(14,_e))("overlayOptions",X(16,xe,v(15,we))))},dependencies:[re,Z,oe,te,ne,ie,ae,le,me,he,de,ue,pe,ce,ge],styles:["div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}"]})};var Ce=class o{constructor(t,e){this.el=t;this.renderer=e}value=null;ngOnChanges(){if(this.value===null||this.value===void 0)return;this.renderer.removeClass(this.el.nativeElement,"text-black"),this.renderer.removeClass(this.el.nativeElement,"text-danger");let t=+this.value==0||+this.value>=1?"text-black":"text-danger";this.renderer.addClass(this.el.nativeElement,t)}static \u0275fac=function(e){return new(e||o)(w(D),w(R))};static \u0275dir=U({type:o,selectors:[["","colsFontColor",""]],inputs:{value:[0,"colsFontColor","value"]},features:[_]})};export{ye as a,Ce as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _e}from"./chunk-SYFIQEXY.js";import{a as Pe}from"./chunk-T7XU5W5A.js";import{a as Oe}from"./chunk-47D2COVY.js";import{a as Se}from"./chunk-BT7NN7PT.js";import{b as Me,c as Ce}from"./chunk-JBS5UYZC.js";import{a as me}from"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-7P3L3ODB.js";import{F as ve,b as fe,h as he,o as ge}from"./chunk-DWZ5JTI2.js";import{a as T,c as f}from"./chunk-ZAO6ERX4.js";import{a as be}from"./chunk-GWDG5QTL.js";import"./chunk-36GWLMZX.js";import{b as I}from"./chunk-WFQIMZGL.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as ue}from"./chunk-XRKDICYT.js";import{p as de}from"./chunk-LGOSIAUC.js";import{$ as Y,Cb as j,Db as F,E,Eb as V,Fb as h,Fc as ne,Gb as o,Hb as s,Hc as re,Ib as u,Md as se,Od as le,Pd as b,Qd as ce,Rd as pe,Sa as W,Sb as C,Sd as G,Ub as K,Xa as p,d as q,da as D,eb as v,ec as X,gc as $,gd as oe,hc as m,ib as Q,ic as B,jb as x,jc as z,la as d,ma as y,oa as _,pa as c,tc as ee,vd as ae,wb as Z,yc as te,zc as ie}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import{a as J}from"./chunk-SNAKHGZS.js";var r=class e{constructor(n,t){this.authService=n;this.router=t}canLoad(n,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(n){let t="/menu";n.forEach(a=>t+=`/${a.path}`);let i=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[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(n){this.toastrService=n;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(n){console.error(n)}}showAlert(n,t,i,l){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:n,icon:l});g.onerror=(N=>{this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})}setBody(n,t){return this.hasUrl(t)&&(n=`<a href="${t}" target="_blank" class="ps-0">${n}</a>`),n}hasUrl(n){return!!(n&&n.length!==0)}static \u0275fac=function(t){return new(t||e)(_(de))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{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=c(I);authService=c(f);menu=ye;filteredMenu=[];initFilteredMenu(){let n=this.menu.map(i=>J({},i)),t=n.findIndex(i=>i.T==="Reports");if(t!==-1){let i=!!this.role.report?.View,l=!!this.role.report?.Advanced,a=!!this.role.report?.Periodic;i?n[t].U="/menu/Reports":l?n[t].U="/menu/Reports/Sales_Report/Standard/Top_Customers":a?n[t].U="/menu/Reports/Sales_Report/Standard/Daily":n[t].U="/menu/Reports"}this.filteredMenu=n.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||!!this.role.report?.Advanced||!!this.role.report?.Periodic: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 n=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(n){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 xe=[{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=c(I);authService=c(f);filteredMenu=[];initFilteredMenu(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=xe.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&&n!=2&&n!=3:t.T=="My Sales"?n!=2&&n!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,n)=>({"full-container":e,"subscription-bar-visible":n}),Ne=e=>[e];function Ee(e,n){if(e&1&&(o(0,"a",11),u(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=n.$implicit;h("routerLink",t==null?null:t.U),p(),$((t==null?null:t.I)+" me-2"),p(2),B(t==null?null:t.T)}}function De(e,n){if(e&1&&(o(0,"li",33,0)(2,"a",36),u(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=n.$implicit,i=K();h("routerLinkActiveOptions",i.isActiveMatchOptions),Z("data-cy",t==null?null:t.T),p(2),h("matTooltip",i.toggleSideMenu?t==null?null:t.T:"")("routerLink",te(7,Ne,t==null?null:t.U)),p(),$(t==null?null:t.I),p(2),B(t==null?null:t.T)}}var P=class e{constructor(n,t,i,l,a,g,N,H){this.toggleSidebar=n;this.signalRClientService=t;this.notificationAlertService=i;this.router=l;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(Ie=>this.isNavOpen=Ie),this.destroy$=new q,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ue.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(n=>n instanceof se),Y(null),D(this.destroy$)).subscribe(n=>{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 n=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(n)&&M.isGuid(n)?this.signalRClientService.SubscribeGroup(n):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let i=JSON.parse(t),l="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(i.Icon)&&(l=i.Icon),this.notificationAlertService.showAlert(i.Body,i.Header,i.URL,l)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(n){return M.IsNotEmpty(n)}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(Se),v(me),v(w),v(b),v(f),v(be),v(k),v(A))};static \u0275cmp=Q({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,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return i.toggleMenu()}),u(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return i.onShowDropdown()}),m(7),ne(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),u(12,"div",10),F(13,Ee,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),u(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 i.chatToggleChange()}),s(),u(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return i.logout()}),u(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),u(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),u(32,"i",23),o(33,"span"),m(34,"What's New"),u(35,"i",24),s()(),o(36,"a",25),u(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),u(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),u(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,De,6,9,"li",33,j),s()()(),o(52,"div",34),u(53,"router-outlet"),s()()),t&2&&(X("nav-open",i.isNavOpen),p(),h("ngClass",i.toggleSideMenu?"collapses":""),p(2),h("ngClass",i.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),p(3),h("matTooltip",i.accountInfo==null?null:i.accountInfo.BrandName),p(),z(" ",re(8,11,i.accountInfo==null?null:i.accountInfo.BrandName,12)," "),p(4),z("",i.accountInfo==null?null:i.accountInfo.UserName," "),p(2),V(i.topMenu),p(9),h("ngModel",!i.isHideIntercomLauncher),p(9),h("href",ee("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",i.appVersion),W),p(19),V(i.leftSidebarMenu),p(2),h("ngClass",ie(14,Le,i.isFullContainer,i.isNotEmpty(i.currentSubStatus)&&i.currentSubStatus!==i.subsStatusEnum.PAID)))},dependencies:[Me,le,ce,pe,fe,he,ge,oe,Pe],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 je(e){let n=c(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let i=n.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}var O=(e,n)=>{let t=c(f),i=t.isTokenExpired(),l=c(b);return i?(t.returnUrl=je(n),l.navigate(["/"]),!1):e.path=="Dashboard"?Fe():!0};function Fe(){let e=c(b),n=c(f),t=!1,i=n.getRedirectUrl();return t=i.includes("Dashboard"),t==!1&&e.navigate([i]),t}var U=class e{paymentStorageService=c(_e);canActivate(n,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 R=class e{reportService=c(Oe);canActivate(n,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 Ve=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-QQEYD7JD.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-S5JIET5M.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[R]},{path:"Sell",loadChildren:()=>import("./chunk-QNKYMB7Q.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-DTX2BFBV.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-DEXQ7A42.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-UQQBBYQY.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-H37JQKPZ.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-2KTDVH66.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-BIILFTYT.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-SIE37I52.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-IIST67DU.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-JCBG3ACR.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-EFBHAZPP.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-MOZMYNAD.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-R3FIUJID.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-VBEXFBFU.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-XXBRX76S.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-YZZUTTPY.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-O74UWMO3.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-76WKJFVI.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-D5JMNYRA.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-BM5IULEV.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-DJ4SZD4C.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-QYXHGLGK.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-GVWWPTQI.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-HIYAHDFY.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-TK35ILPE.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],L=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Ve),G]})};var Te=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Ce,L,ve,ae]})};export{Te as MenuMasterModule};
|
|
1
|
+
import{a as _e}from"./chunk-ENZHEBZ3.js";import{a as Pe}from"./chunk-T7XU5W5A.js";import{a as Oe}from"./chunk-6UDFJ3KL.js";import{a as Se}from"./chunk-BT7NN7PT.js";import{b as Me,c as Ce}from"./chunk-JBS5UYZC.js";import{a as me}from"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-7P3L3ODB.js";import{F as ve,b as fe,h as he,o as ge}from"./chunk-DWZ5JTI2.js";import{a as T,c as f}from"./chunk-2IQSX3TK.js";import{a as be}from"./chunk-2MUHOEAS.js";import"./chunk-36GWLMZX.js";import{b as I}from"./chunk-WFQIMZGL.js";import{a as M}from"./chunk-WUV22SZ4.js";import{a as ue}from"./chunk-45HQ3R3G.js";import{p as de}from"./chunk-LGOSIAUC.js";import{$ as Y,Cb as j,Db as F,E,Eb as V,Fb as h,Fc as ne,Gb as o,Hb as s,Hc as re,Ib as u,Md as se,Od as le,Pd as b,Qd as ce,Rd as pe,Sa as W,Sb as C,Sd as G,Ub as K,Xa as p,d as q,da as D,eb as v,ec as X,gc as $,gd as oe,hc as m,ib as Q,ic as B,jb as x,jc as z,la as d,ma as y,oa as _,pa as c,tc as ee,vd as ae,wb as Z,yc as te,zc as ie}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import{a as J}from"./chunk-SNAKHGZS.js";var r=class e{constructor(n,t){this.authService=n;this.router=t}canLoad(n,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(n){let t="/menu";n.forEach(a=>t+=`/${a.path}`);let i=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[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(n){this.toastrService=n;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(n){console.error(n)}}showAlert(n,t,i,l){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:n,icon:l});g.onerror=(N=>{this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(n,i),t,{timeOut:a,enableHtml:this.hasUrl(i)})}setBody(n,t){return this.hasUrl(t)&&(n=`<a href="${t}" target="_blank" class="ps-0">${n}</a>`),n}hasUrl(n){return!!(n&&n.length!==0)}static \u0275fac=function(t){return new(t||e)(_(de))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{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=c(I);authService=c(f);menu=ye;filteredMenu=[];initFilteredMenu(){let n=this.menu.map(i=>J({},i)),t=n.findIndex(i=>i.T==="Reports");if(t!==-1){let i=!!this.role.report?.View,l=!!this.role.report?.Advanced,a=!!this.role.report?.Periodic;i?n[t].U="/menu/Reports":l?n[t].U="/menu/Reports/Sales_Report/Standard/Top_Customers":a?n[t].U="/menu/Reports/Sales_Report/Standard/Daily":n[t].U="/menu/Reports"}this.filteredMenu=n.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||!!this.role.report?.Advanced||!!this.role.report?.Periodic: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 n=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(n){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 xe=[{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=c(I);authService=c(f);filteredMenu=[];initFilteredMenu(){let n=this.authService.getSubscriptionStatus();this.filteredMenu=xe.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&&n!=2&&n!=3:t.T=="My Sales"?n!=2&&n!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,n)=>({"full-container":e,"subscription-bar-visible":n}),Ne=e=>[e];function Ee(e,n){if(e&1&&(o(0,"a",11),u(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=n.$implicit;h("routerLink",t==null?null:t.U),p(),$((t==null?null:t.I)+" me-2"),p(2),B(t==null?null:t.T)}}function De(e,n){if(e&1&&(o(0,"li",33,0)(2,"a",36),u(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=n.$implicit,i=K();h("routerLinkActiveOptions",i.isActiveMatchOptions),Z("data-cy",t==null?null:t.T),p(2),h("matTooltip",i.toggleSideMenu?t==null?null:t.T:"")("routerLink",te(7,Ne,t==null?null:t.U)),p(),$(t==null?null:t.I),p(2),B(t==null?null:t.T)}}var P=class e{constructor(n,t,i,l,a,g,N,H){this.toggleSidebar=n;this.signalRClientService=t;this.notificationAlertService=i;this.router=l;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(Ie=>this.isNavOpen=Ie),this.destroy$=new q,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ue.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(n=>n instanceof se),Y(null),D(this.destroy$)).subscribe(n=>{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 n=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(n)&&M.isGuid(n)?this.signalRClientService.SubscribeGroup(n):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let i=JSON.parse(t),l="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(i.Icon)&&(l=i.Icon),this.notificationAlertService.showAlert(i.Body,i.Header,i.URL,l)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(n){return M.IsNotEmpty(n)}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(Se),v(me),v(w),v(b),v(f),v(be),v(k),v(A))};static \u0275cmp=Q({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,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return i.toggleMenu()}),u(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return i.onShowDropdown()}),m(7),ne(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),u(12,"div",10),F(13,Ee,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),u(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 i.chatToggleChange()}),s(),u(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return i.logout()}),u(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),u(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),u(32,"i",23),o(33,"span"),m(34,"What's New"),u(35,"i",24),s()(),o(36,"a",25),u(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),u(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),u(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,De,6,9,"li",33,j),s()()(),o(52,"div",34),u(53,"router-outlet"),s()()),t&2&&(X("nav-open",i.isNavOpen),p(),h("ngClass",i.toggleSideMenu?"collapses":""),p(2),h("ngClass",i.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),p(3),h("matTooltip",i.accountInfo==null?null:i.accountInfo.BrandName),p(),z(" ",re(8,11,i.accountInfo==null?null:i.accountInfo.BrandName,12)," "),p(4),z("",i.accountInfo==null?null:i.accountInfo.UserName," "),p(2),V(i.topMenu),p(9),h("ngModel",!i.isHideIntercomLauncher),p(9),h("href",ee("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",i.appVersion),W),p(19),V(i.leftSidebarMenu),p(2),h("ngClass",ie(14,Le,i.isFullContainer,i.isNotEmpty(i.currentSubStatus)&&i.currentSubStatus!==i.subsStatusEnum.PAID)))},dependencies:[Me,le,ce,pe,fe,he,ge,oe,Pe],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 je(e){let n=c(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let i=n.currentNavigation().extractedUrl.queryParams;return Object.keys(i).forEach((a,g)=>{g==0?t=`${t}?${a}=${i[a]}`:t=`${t}&${a}=${i[a]}`}),t}var O=(e,n)=>{let t=c(f),i=t.isTokenExpired(),l=c(b);return i?(t.returnUrl=je(n),l.navigate(["/"]),!1):e.path=="Dashboard"?Fe():!0};function Fe(){let e=c(b),n=c(f),t=!1,i=n.getRedirectUrl();return t=i.includes("Dashboard"),t==!1&&e.navigate([i]),t}var U=class e{paymentStorageService=c(_e);canActivate(n,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 R=class e{reportService=c(Oe);canActivate(n,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 Ve=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-V5FFXPW6.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-YIEP4TNX.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[R]},{path:"Sell",loadChildren:()=>import("./chunk-I3NHLTUC.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-DTX2BFBV.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-RSMPFZYJ.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-FFUI35CT.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-RJZLCRKU.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-XTPFVMJ5.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-S73WE6MZ.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-UWWD4B2R.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-U564QQHO.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-ADJWIV2X.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-JDCZ7YOI.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-UAUE3L3L.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-JBGXOAKJ.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-26CNGJ3T.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-DQUCX3MH.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-OYAHMLKS.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-RBODUQFT.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-G5YP7DBH.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-HCJAEDV7.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-2MU2JN6B.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-IMWEIBLY.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-BG2SRLVD.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-WAVD3GYY.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-VNBUPHIS.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-6CU2J77W.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],L=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Ve),G]})};var Te=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Ce,L,ve,ae]})};export{Te as MenuMasterModule};
|