dealpos 25.43.2 → 25.43.4
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-ZMOEZBOV.js → chunk-272PZZGG.js} +1 -1
- package/browser/{chunk-ZT3ATOCA.js → chunk-2EP24RI6.js} +1 -1
- package/browser/{chunk-KUN2P3RN.js → chunk-2PLXQ6DN.js} +1 -1
- package/browser/{chunk-N4FKAPLW.js → chunk-2RGZUU27.js} +1 -1
- package/browser/{chunk-4QQF4IJE.js → chunk-3RWAC4XP.js} +1 -1
- package/browser/{chunk-HKUGK6HF.js → chunk-3VT5D6VK.js} +1 -1
- package/browser/{chunk-NSXCBKM4.js → chunk-3Z2WREJH.js} +1 -1
- package/browser/{chunk-LDF4ZCJN.js → chunk-4DMEBTIA.js} +1 -1
- package/browser/{chunk-HMU3DWZJ.js → chunk-4V3WJ77K.js} +1 -1
- package/browser/{chunk-5EEOIYLP.js → chunk-5FDHNE6C.js} +1 -1
- package/browser/{chunk-KIQXPGXN.js → chunk-5H2362GA.js} +1 -1
- package/browser/{chunk-JEZGFXOM.js → chunk-5QQG3XAT.js} +1 -1
- package/browser/{chunk-SEXUIUP5.js → chunk-5YFCA5PL.js} +1 -1
- package/browser/{chunk-V73DMOF7.js → chunk-66K27OF2.js} +1 -1
- package/browser/{chunk-PGSKQYIL.js → chunk-6W6BB6FZ.js} +1 -1
- package/browser/{chunk-T4OMGJF4.js → chunk-75SMG4SF.js} +1 -1
- package/browser/{chunk-LAFPISY6.js → chunk-7HSR3LT6.js} +1 -1
- package/browser/{chunk-ITUXL4IU.js → chunk-7UXE6WII.js} +1 -1
- package/browser/{chunk-ROR3RTY5.js → chunk-A5ZLOGOJ.js} +2 -2
- package/browser/{chunk-6KPCTTDA.js → chunk-AGUT25WD.js} +1 -1
- package/browser/{chunk-AXLH4KKX.js → chunk-AROOOSPE.js} +2 -2
- package/browser/{chunk-7527AL7Q.js → chunk-AVQXAEMG.js} +1 -1
- package/browser/{chunk-BJ4ZY3VJ.js → chunk-B2ZLN3DU.js} +1 -1
- package/browser/{chunk-5YJ2OEBF.js → chunk-BLOA2A3C.js} +1 -1
- package/browser/{chunk-QSWKUXSH.js → chunk-C7XXRU25.js} +1 -1
- package/browser/{chunk-IFFXFKVP.js → chunk-CMKDM3YB.js} +6 -6
- package/browser/{chunk-R4CTK5NZ.js → chunk-CVI22GXH.js} +1 -1
- package/browser/{chunk-INZKDGM2.js → chunk-DLQL5GPU.js} +3 -3
- package/browser/{chunk-YEAPJ2OC.js → chunk-E72S2LHD.js} +1 -1
- package/browser/{chunk-QVTFZ7LA.js → chunk-EFKIYD2S.js} +1 -1
- package/browser/{chunk-X5OST3RI.js → chunk-EIHE3QN4.js} +1 -1
- package/browser/{chunk-VPFQM3LL.js → chunk-EP6KOZ4E.js} +1 -1
- package/browser/{chunk-PBEIFRAA.js → chunk-F3T2SC5Q.js} +1 -1
- package/browser/{chunk-2QU24F5P.js → chunk-F5XHOC4H.js} +1 -1
- package/browser/{chunk-EKDNW5AX.js → chunk-FBXL7ZXR.js} +1 -1
- package/browser/{chunk-CFSBMQ5D.js → chunk-FHJG45VQ.js} +2 -2
- package/browser/{chunk-K5KGHSAP.js → chunk-FMDB67TU.js} +1 -1
- package/browser/{chunk-3XR3MVQE.js → chunk-G2MU6LQ2.js} +1 -1
- package/browser/{chunk-O2QDJGKT.js → chunk-G7SZYW63.js} +1 -1
- package/browser/{chunk-ZEQ2QQEK.js → chunk-GFJYKJED.js} +1 -1
- package/browser/{chunk-HJVO2MYG.js → chunk-GSISS3SC.js} +1 -1
- package/browser/{chunk-HFYSK74N.js → chunk-HIYIS7P2.js} +1 -1
- package/browser/{chunk-DKDOVSVH.js → chunk-HZ2U3RGD.js} +1 -1
- package/browser/{chunk-ZZVT4VHZ.js → chunk-INQBV4VC.js} +1 -1
- package/browser/{chunk-MSBIWISH.js → chunk-IQBTWGJY.js} +1 -1
- package/browser/{chunk-FSXDAB7C.js → chunk-ITGJPMDT.js} +1 -1
- package/browser/{chunk-XTL4S3XK.js → chunk-J3IQVJI4.js} +1 -1
- package/browser/{chunk-MBA7MORK.js → chunk-JEAH4FYM.js} +1 -1
- package/browser/{chunk-EJDRY7MH.js → chunk-JGK2MYOQ.js} +1 -1
- package/browser/{chunk-A7FNJM6G.js → chunk-KA4TOHBS.js} +1 -1
- package/browser/{chunk-OB764IZP.js → chunk-M4F2UJHF.js} +1 -1
- package/browser/{chunk-AWSD3VOK.js → chunk-MDD6TFTM.js} +1 -1
- package/browser/{chunk-CSLHA6EL.js → chunk-MZPJH3AH.js} +1 -1
- package/browser/{chunk-6HXB7UO4.js → chunk-NISY7IAG.js} +3 -3
- package/browser/{chunk-6FSVJ3O6.js → chunk-NRWPQAB7.js} +1 -1
- package/browser/{chunk-SYQCAXOC.js → chunk-NUJC3NPK.js} +1 -1
- package/browser/{chunk-FXKRIVYT.js → chunk-NWXWPE73.js} +1 -1
- package/browser/{chunk-2HUEFC2T.js → chunk-O2OM4KZ4.js} +1 -1
- package/browser/{chunk-FYACJ2YI.js → chunk-O7K75UXY.js} +1 -1
- package/browser/{chunk-CODMBGPI.js → chunk-ONEB5DHN.js} +2 -2
- package/browser/{chunk-BPWQFTXE.js → chunk-PWJVQMES.js} +1 -1
- package/browser/{chunk-6EOWD655.js → chunk-PX65TDN3.js} +1 -1
- package/browser/{chunk-5YUUUZD3.js → chunk-R4KZHFTX.js} +1 -1
- package/browser/{chunk-B6STMZWX.js → chunk-RNH5CWRS.js} +1 -1
- package/browser/{chunk-BCMMSVJJ.js → chunk-S3ZJOM5T.js} +1 -1
- package/browser/{chunk-346EL5B3.js → chunk-SEGFXGKG.js} +1 -1
- package/browser/{chunk-FSTDHLYH.js → chunk-SH2AVVL5.js} +1 -1
- package/browser/{chunk-ACD7MZMQ.js → chunk-SYYCPGJV.js} +2 -2
- package/browser/{chunk-S4IKR42Q.js → chunk-TNHTZU3G.js} +1 -1
- package/browser/{chunk-RP455IK5.js → chunk-TS5DD7F4.js} +1 -1
- package/browser/{chunk-WEGDL4GR.js → chunk-UCJKQICE.js} +1 -1
- package/browser/{chunk-4RRARGON.js → chunk-UYLL2WJ3.js} +2 -2
- package/browser/{chunk-NUV6F5WN.js → chunk-VT2H5BYD.js} +1 -1
- package/browser/{chunk-ON5DTHAP.js → chunk-WDQOMZAV.js} +1 -1
- package/browser/{chunk-DK44EJTX.js → chunk-WZS6HHV3.js} +1 -1
- package/browser/{chunk-BJMIDKW4.js → chunk-XBC5WNSH.js} +1 -1
- package/browser/{chunk-KTD4OMXY.js → chunk-XRZ7VBID.js} +1 -1
- package/browser/{chunk-L7IGIQVH.js → chunk-XZJ645Q5.js} +2 -2
- package/browser/{chunk-6VOFZE3V.js → chunk-YFL7VFWC.js} +1 -1
- package/browser/{chunk-I7HV744J.js → chunk-YGCPZSCL.js} +1 -1
- package/browser/chunk-YGHO5ZLV.js +1 -0
- package/browser/{chunk-I3YPVX5L.js → chunk-YI4JLNCJ.js} +1 -1
- package/browser/{chunk-2LMF4IMC.js → chunk-YQLHHLTC.js} +1 -1
- package/browser/{chunk-CURYSM3Y.js → chunk-ZYI3XMBD.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-QGKQ75P4.js → main-SAUYF5DW.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-TE3WGV2Q.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne,b as oe}from"./chunk-EOVI4KWG.js";import"./chunk-XJ7SOVB2.js";import{a as Z}from"./chunk-UWGTJ4UH.js";import"./chunk-FP4HFB5J.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{e as me,f as ue}from"./chunk-
|
|
1
|
+
import{a as ne,b as oe}from"./chunk-EOVI4KWG.js";import"./chunk-XJ7SOVB2.js";import{a as Z}from"./chunk-UWGTJ4UH.js";import"./chunk-FP4HFB5J.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{e as me,f as ue}from"./chunk-EFKIYD2S.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-JGK2MYOQ.js";import{a as re,b as le}from"./chunk-WZS6HHV3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{O as N}from"./chunk-TSIYPTYI.js";import{d as ae,e as pe}from"./chunk-XYB3YDKL.js";import{a as ie}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as Y,c as K,h as Q,o as X}from"./chunk-RVXZOIFQ.js";import"./chunk-SH2AVVL5.js";import"./chunk-UCJKQICE.js";import{a as h,d as te}from"./chunk-ZZGSAFGO.js";import"./chunk-SEGFXGKG.js";import{$a as p,Ac as y,Bc as T,Fc as V,Ib as o,Jb as r,Kb as F,Ma as v,Ob as I,Od as j,Qb as w,Rb as u,Rd as z,Td as J,Va as R,Y as C,Yc as k,Yd as ee,Zc as W,cd as $,db as D,ec as m,ed as A,fa as H,fc as f,jc as G,jd as q,kb as L,kc as M,lc as P,mc as E,na as b,ob as U,qb as g,qc as B,rc as O,va as d,vb as l,wa as _,zc as c}from"./chunk-UXRO4UFY.js";import{a as x,b as S}from"./chunk-7DCB7DB2.js";var ce=()=>["/menu/Users/User/Groups/Info"],de=i=>({ID:i});function _e(i,s){if(i&1){let e=I();o(0,"div",9)(1,"h6"),m(2,"Group"),r(),o(3,"ng-select",10),P("ngModelChange",function(t){d(e);let a=u(2);return M(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),m(5,"Row Count"),r(),o(6,"input",11),P("ngModelChange",function(t){d(e);let a=u(2);return M(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);p(3),l("items",e.options().Groups),G("ngModel",e.filter().GroupID),p(3),l("max",1e4),G("ngModel",e.filter().RowCount)}}function ge(i,s){if(i&1&&(o(0,"a",16),m(1),r()),i&2){let e=u().$implicit;l("routerLink",B(3,ce))("queryParams",O(4,de,e._source==null||e._source.Log==null?null:e._source.Log.id)),p(),f(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function fe(i,s){if(i&1&&(o(0,"span"),m(1),r()),i&2){let e=u().$implicit;p(),f(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function ye(i,s){if(i&1&&(o(0,"tr",12)(1,"td"),g(2,ge,2,6,"a",13)(3,fe,2,1,"span",14),r(),o(4,"td"),m(5),c(6,"date"),r(),o(7,"td"),m(8),r(),F(9,"td",15),c(10,"newlines"),r()),i&2){let e=s.$implicit,n=u(2);p(2),l("ngIf",n.role.users.Edit),p(),l("ngIf",!n.role.users.Edit),p(2),f(T(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),p(3),f(e._source==null||e._source.Log==null?null:e._source.Log.creator),p(),l("innerHtml",y(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),R)}}function he(i,s){if(i&1){let e=I();o(0,"mainpanel-cmp",2),w("onSubmit",function(){d(e);let t=u();return _(t.initData())}),o(1,"filters"),g(2,_e,7,4,"ng-template",null,0,V),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),m(11,"Group"),r(),o(12,"th"),m(13,"Modified"),r(),o(14,"th"),m(15,"Modify By"),r(),o(16,"th"),m(17,"Note"),r()()(),o(18,"tbody"),g(19,ye,11,10,"tr",7),c(20,"async"),r()(),o(21,"div"),E(22),c(23,"async"),o(24,"mat-paginator",8),w("page",function(t){d(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();l("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),p(19),l("ngForOf",(e=y(20,7,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=y(23,9,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;p(5),l("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var se=class i extends re{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(ie()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=b(ee);routeSnapshot=b(j);filter=v({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=v({Groups:[]});loader$=this.httpService.get(N.GroupHistoryLoader).pipe(H(e=>{this.options.set(e.Options),this.initData()}),C(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(N.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(C(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(D(le),D(te))};static \u0275cmp=L({type:i,selectors:[["app-group-update-history"]],features:[U],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox","onSubmit",4,"ngIf"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],["class","border-bottom",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[1,"border-bottom"],[3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],[3,"innerHtml"],[3,"routerLink","queryParams"]],template:function(n,t){if(n&1&&(E(0),c(1,"async"),g(2,he,25,11,"mainpanel-cmp",1)),n&2){let a=y(1,1,t.loader$);p(2),l("ngIf",a)}},dependencies:[q,k,W,$,A,ue,me,oe,ne,J,z,Y,K,Q,X,pe,ae,Z],encapsulation:2})};export{se as GroupUpdateHistoryComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A,b as G}from"./chunk-EOVI4KWG.js";import{d as Z,e as $}from"./chunk-GIDGCFLX.js";import{a as K}from"./chunk-
|
|
1
|
+
import{a as A,b as G}from"./chunk-EOVI4KWG.js";import{d as Z,e as $}from"./chunk-GIDGCFLX.js";import{a as K}from"./chunk-IQBTWGJY.js";import{e as X,f as Y}from"./chunk-EFKIYD2S.js";import{b as U}from"./chunk-WZS6HHV3.js";import{d as Q}from"./chunk-XYB3YDKL.js";import{F as H,c as B,h as R,o as j}from"./chunk-RVXZOIFQ.js";import{d as q}from"./chunk-ZZGSAFGO.js";import{$a as p,Bc as y,Fc as W,Ib as i,Jb as o,Ob as S,Qb as C,Rb as s,Rd as V,Td as N,Vd as O,Wc as M,Yc as I,Yd as z,Zc as T,db as _,ec as m,ed as E,gc as x,gd as P,jc as b,jd as J,kb as F,kc as h,lc as f,ob as v,qb as u,qc as w,rc as L,sc as k,va as d,vb as l,wa as g,zc as D}from"./chunk-UXRO4UFY.js";var te=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ie=a=>({ID:a}),oe=(a,c)=>({"text-success":a,"text-danger":c});function ae(a,c){if(a&1){let e=S();i(0,"div",12)(1,"h6"),m(2,"Status"),o(),i(3,"ng-select",13),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),m(5,"Job ID"),o(),i(6,"input",14),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),m(8,"From"),o(),i(9,"datepicker",15),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),m(11,"To"),o(),i(12,"datepicker",16),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(a&2){let e=s(2);p(3),l("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),b("ngModel",e.pageData.Filter.Status),p(3),b("ngModel",e.pageData.Filter.JobID),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.From),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.To)}}function ne(a,c){if(a&1&&(i(0,"tr",17)(1,"td")(2,"a",18),m(3),D(4,"date"),o()(),i(5,"td"),m(6),D(7,"number"),o(),i(8,"td",19),m(9),o()()),a&2){let e=c.$implicit;p(2),l("routerLink",w(12,te))("queryParams",L(13,ie,e._id)),p(),x(" ",y(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),p(3),x("",y(7,9,e.DurationInSecond,"1.1-1")," s"),p(2),l("ngClass",k(15,oe,e._source.log.respCode==200,e._source.log.respCode!=200)),p(),x(" ",e._source.log.respCode," ")}}function re(a,c){if(a&1){let e=S();i(0,"mat-paginator",20),C("page",function(t){d(e);let r=s(2);return g(r.onPaginationChange(t))}),o()}if(a&2){let e=s(2);l("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function pe(a,c){if(a&1){let e=S();i(0,"mainpanel-cmp",2),C("onSubmit",function(){d(e);let t=s();return g(t.searchFromPageOne())}),i(1,"filters"),u(2,ae,13,8,"ng-template",null,0,W),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),m(11,"Created"),o(),i(12,"th",8),m(13,"Duration"),o(),i(14,"th",8),m(15,"Status"),o()()(),i(16,"tbody"),u(17,ne,10,18,"tr",9),o()()(),i(18,"div",10),u(19,re,1,3,"mat-paginator",11),o()()()()}if(a&2){let e=s();l("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(17),l("ngForOf",e.data.hits),p(2),l("ngIf",e.pagination.listTotal>0)}}var ee=class a extends K{constructor(e,n,t,r){super(e,n,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=n;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(n=>(n.DurationInSecond=parseInt(n._source?.Duration)/1e3,n)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(n){return new(n||a)(_(U),_(z),_(O),_(q))};static \u0275cmp=F({type:a,selectors:[["app-webhook-job-logs"]],features:[v],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","onSubmit",4,"ngIf"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"mt-2"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"border-bottom"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(n,t){n&1&&u(0,pe,20,5,"mainpanel-cmp",1),n&2&&l("ngIf",t.data)},dependencies:[J,M,I,T,P,E,Y,X,$,Z,G,A,Q,H,B,R,j,N,V],encapsulation:2})};export{ee as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as re,c as ae}from"./chunk-FKDZ5OWB.js";import{g as ce}from"./chunk-4UYZJCFI.js";import{d as se,e as le}from"./chunk-
|
|
1
|
+
import{b as re,c as ae}from"./chunk-FKDZ5OWB.js";import{g as ce}from"./chunk-4UYZJCFI.js";import{d as se,e as le}from"./chunk-JGK2MYOQ.js";import{A as oe,G as ne}from"./chunk-H7F34T25.js";import{b as te,c as ie}from"./chunk-JOXTERIM.js";import{F as Y,G as Z,h as J,o as X}from"./chunk-RVXZOIFQ.js";import{$a as u,$b as $,Fa as c,Fc as B,I as A,Ib as m,Jb as d,Ka as L,Ma as _,Ob as I,Qb as f,Rb as w,Vd as G,Yd as ee,Zb as H,_b as P,c as x,cb as D,db as C,e as E,ec as b,fa as F,fc as V,ja as N,jc as Q,jd as z,kb as j,kc as q,lc as W,mb as O,na as g,o as k,qb as R,qc as v,rc as K,ua as T,va as r,vb as M,wa as a,yb as U}from"./chunk-UXRO4UFY.js";var S=class n{selectionsSubject=new E(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 x(e=>{let i=this.selectionsSubject.subscribe(o=>{e.next(o.get(t)||[])});return()=>i.unsubscribe()})}getAllSelections(){return this.selectionsSubject.value}clearAllSelections(){this.selectionsSubject.next(new Map)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac,providedIn:"root"})};var Se=["autocomplete"],pe=()=>({width:"100%"}),ye=()=>({width:"100%",maxWidth:"400px"}),_e=n=>({style:n});function Ce(n,t){if(n&1){let e=I();m(0,"div",5),f("click",function(o){let s=r(e).$implicit,l=w();return a(l.toggleCheckbox(s,o))}),m(1,"p-checkbox",6),W("ngModelChange",function(o){let s=r(e).$implicit;return q(s._checked,o)||(s._checked=o),a(o)}),f("onChange",function(){let o=r(e).$implicit,s=w();return a(s.onCheckboxChange(o))})("click",function(o){return r(e),a(o.stopPropagation())}),d(),m(2,"div")(3,"div",7),b(4),d()()()}if(n&2){let e=t.$implicit;u(),Q("ngModel",e._checked),M("binary",!0),u(3),V(e.Value)}}var ue=class n{autocomplete;matTooltip;modelName;isMultiple=!0;placeholder="Search";isShowEmptyMessage=!1;emptyMessage="No results found";tooltipMessage="";valueField="Key";label;listDataEndpoint;maxSelectedItems=0;modelNameChange=new c;onSelectItem=new c;onRemoveItem=new c;completeMethod=new c;onSelect=new c;onUnselect=new c;httpService=g(ee);toastr=g(G);autocompleteV3Service=g(S);selectedItems=_([]);suggestionList;internalSuggestionList=_([]);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(o=>o[this.valueField]===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.valueField]));if(e.length>0){this.selectedItems.set(e);return}}}}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.valueField]);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(p=>{let h=e.toLowerCase(),y=(p.Name||"").toLowerCase(),he=(p.Key||"").toLowerCase(),ge=y.includes(h)||he.includes(h),fe=!s.some(ve=>ve[this.valueField]===p[this.valueField]);return ge&&fe});this.internalSuggestionList.set(l);return}let i=new URLSearchParams({Prefix:e,Count:"100"}).toString(),o=this.listDataEndpoint;o&&this.httpService.get(`${o}?${i}`).pipe(A(()=>k([])),F(s=>{let l=this.selectedItems(),p=s.filter(h=>!l.some(y=>y[this.valueField]===h[this.valueField]));this.internalSuggestionList.set(p)})).subscribe()}onSelectHandler(t){let e=this.isMultiple,i=this.maxSelectedItems;if(e&&i>0){let o=this.selectedItems();if(o.length>=i){this.toastr.warning(`Maximum ${i} items can be selected`,"Selection Limit"),setTimeout(()=>{this.modelNameChange.emit([...o])},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(o=>o[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.valueField]!==t[this.valueField]);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||n)};static \u0275cmp=j({type:n,selectors:[["autocompleteV3"]],viewQuery:function(e,i){if(e&1&&H(Se,5),e&2){let o;P(o=$())&&(i.autocomplete=o.first)}},inputs:{matTooltip:"matTooltip",modelName:"modelName",isMultiple:"isMultiple",placeholder:"placeholder",isShowEmptyMessage:"isShowEmptyMessage",emptyMessage:"emptyMessage",tooltipMessage:"tooltipMessage",valueField:"valueField",label:"label",listDataEndpoint:"listDataEndpoint",maxSelectedItems:"maxSelectedItems"},outputs:{modelNameChange:"modelNameChange",onSelectItem:"onSelectItem",onRemoveItem:"onRemoveItem",completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect"},decls:8,vars:17,consts:[["autocomplete",""],["item",""],[1,"d-flex","flex-column","gap-2",2,"margin-top","1rem"],[1,"w-100",2,"width","100%"],["optionLabel","Value",1,"w-100",3,"ngModelChange","completeMethod","onSelect","onUnselect","matTooltip","ngModel","suggestions","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,"font-medium"]],template:function(e,i){if(e&1){let o=I();m(0,"div",2)(1,"h6"),b(2),d(),m(3,"div",3)(4,"p-autocomplete",4,0),f("ngModelChange",function(l){return r(o),a(i.onModelChange(l))})("completeMethod",function(l){return r(o),a(i.onCompleteHandler(l))})("onSelect",function(l){return r(o),a(i.onSelectHandler(l))})("onUnselect",function(l){return r(o),a(i.onRemoveHandler(l))}),R(6,Ce,5,3,"ng-template",null,1,B),d()()()}e&2&&(u(2),V(i.label),u(2),U(v(12,pe)),M("matTooltip",i.tooltipMessage)("ngModel",i.selectedItems())("suggestions",i.internalSuggestionList())("multiple",i.isMultiple)("placeholder",i.placeholder)("showEmptyMessage",i.isShowEmptyMessage)("emptyMessage",i.emptyMessage)("inputStyle",v(13,pe))("overlayOptions",K(15,_e,v(14,ye))))},dependencies:[oe,z,Z,J,Y,X,ie,te,ne,ce,ae,re,le,se],encapsulation:2})};var de=class n{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-success"),this.renderer.removeClass(this.el.nativeElement,"text-danger");let t=this.value===0?"text-black":this.value>=1?"text-success":"text-danger";this.renderer.addClass(this.el.nativeElement,t)}static \u0275fac=function(e){return new(e||n)(C(L),C(D))};static \u0275dir=O({type:n,selectors:[["","colsFontColor",""]],inputs:{value:[0,"colsFontColor","value"]},features:[T]})};export{ue as a,de as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-WZS6HHV3.js";import{K as o}from"./chunk-UXRO4UFY.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ce}from"./chunk-HJVO2MYG.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-T4OMGJF4.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-FSTDHLYH.js";import{a as ge}from"./chunk-WEGDL4GR.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-346EL5B3.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-ZZVT4VHZ.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-O2QDJGKT.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-INZKDGM2.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-2HUEFC2T.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-5YUUUZD3.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-ON5DTHAP.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-LAFPISY6.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-CODMBGPI.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-BJMIDKW4.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-B6STMZWX.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-ROR3RTY5.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-CFSBMQ5D.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-ACD7MZMQ.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-KTD4OMXY.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-V73DMOF7.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-L7IGIQVH.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-IFFXFKVP.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-AXLH4KKX.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-2LMF4IMC.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-HMU3DWZJ.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-6KPCTTDA.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-OB764IZP.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-4RRARGON.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-DKDOVSVH.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-RP455IK5.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-SEXUIUP5.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-BJ4ZY3VJ.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|
|
1
|
+
import{a as Ce}from"./chunk-GSISS3SC.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-75SMG4SF.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-SH2AVVL5.js";import{a as ge}from"./chunk-UCJKQICE.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-SEGFXGKG.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-INQBV4VC.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-G7SZYW63.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-DLQL5GPU.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-O2OM4KZ4.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-R4KZHFTX.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-WDQOMZAV.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-7HSR3LT6.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-ONEB5DHN.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-XBC5WNSH.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-RNH5CWRS.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-A5ZLOGOJ.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-FHJG45VQ.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-SYYCPGJV.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-XRZ7VBID.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-66K27OF2.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-XZJ645Q5.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-CMKDM3YB.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-AROOOSPE.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-YQLHHLTC.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-4V3WJ77K.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-AGUT25WD.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-M4F2UJHF.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-UYLL2WJ3.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-HZ2U3RGD.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-TS5DD7F4.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-5YFCA5PL.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-B2ZLN3DU.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-Y75LR4GR.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-DEBIFZGN.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-
|
|
1
|
+
import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-Y75LR4GR.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-DEBIFZGN.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-2RGZUU27.js";import{a as ln}from"./chunk-42T2PR4J.js";import{b as rn}from"./chunk-YRGGDRUH.js";import{a as ee}from"./chunk-M3HHWYKD.js";import{a as te,b as ne}from"./chunk-KWTU2B2D.js";import"./chunk-BYXBJQAS.js";import{a as Zt}from"./chunk-PIYM2FOP.js";import{b as qt,c as jt,d as Qt,e as zt}from"./chunk-RHUDY63D.js";import{e as en,f as tn}from"./chunk-EFKIYD2S.js";import{a as on,b as an}from"./chunk-5JJSLRVS.js";import{a as Jt}from"./chunk-CWITQVZH.js";import{a as nn}from"./chunk-KTCV3KOE.js";import{a as Xt}from"./chunk-KZDE63UL.js";import"./chunk-JGK2MYOQ.js";import{b as Wt}from"./chunk-WZS6HHV3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{C as Ae}from"./chunk-H7F34T25.js";import{b as J,c as X}from"./chunk-JOXTERIM.js";import{G as Re,N as ce,O as Yt,o as Kt}from"./chunk-TSIYPTYI.js";import{g as Gt}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import{a as st}from"./chunk-LE3BKIDY.js";import{a as ve}from"./chunk-2FWFPV5I.js";import{C as lt,G as we,ea as $t,k as Lt,la as rt,ma as Ve,r as Nt,s as ye,t as Ht,u as Z,ua as Ut}from"./chunk-EEEAUYZ6.js";import{F as Bt}from"./chunk-RVXZOIFQ.js";import"./chunk-SH2AVVL5.js";import"./chunk-UCJKQICE.js";import{a as Pe,d as A}from"./chunk-ZZGSAFGO.js";import"./chunk-SEGFXGKG.js";import{$a as l,$b as F,Ac as x,Bc as W,Db as _,Eb as Ce,Fa as le,Fb as Tt,Fc as E,Gb as se,Hb as pe,Ib as o,Ja as h,Jb as a,Kb as p,Lb as Ie,Ma as nt,Mb as Se,Mc as fe,Nb as M,Nc as wt,Ob as N,Od as Ot,Qb as O,Qc as Vt,Qd as Rt,Rb as d,Rd as j,Sb as ot,Tb as at,Td as Q,Vd as At,Wa as vt,Wc as q,Y as _t,Yb as G,Yc as kt,Yd as Oe,Zb as de,Zc as H,_b as D,aa as tt,ad as Dt,bd as $,cd as Ft,db as re,dc as I,ec as m,ed as me,fa as bt,fc as y,gc as V,gd as Y,hc as It,ia as gt,ja as Ct,jc as St,jd as C,ka as ht,kb as g,kc as Et,kd as Me,lb as yt,lc as Pt,na as v,ob as Te,pc as Ee,qb as u,qc as k,rc as S,sc as U,t as et,tc as he,ub as z,va as P,vb as s,wa as w,wd as Mt,xb as Fe,yb as xt,za as De,zb as it,zc as b}from"./chunk-UXRO4UFY.js";import{a as ut,b as dt,j as ft}from"./chunk-7DCB7DB2.js";var un=["content"],hn=["header"],vn=["lefticon"],yn=["righticon"],xn=["closeicon"],dn=["*"];function Tn(t,r){t&1&&M(0)}function In(t,r){if(t&1&&(Ie(0),u(1,Tn,1,0,"ng-container",3),Se()),t&2){let e=d(2);l(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Sn(t,r){if(t&1&&(o(0,"div",1),at(1),u(2,In,2,1,"ng-container",2),a()),t&2){let e=d();s("hidden",!e.selected),z("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),l(2),s("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}var En=["previousicon"],Pn=["nexticon"],wn=["navbar"],Vn=["prevBtn"],kn=["nextBtn"],Dn=["inkbar"],Fn=["elementToObserve"],Mn=t=>({"p-tablist-viewport":t}),On=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Rn(t,r){t&1&&p(0,"ChevronLeftIcon"),t&2&&z("aria-hidden",!0)}function An(t,r){}function Bn(t,r){t&1&&u(0,An,0,0,"ng-template")}function Ln(t,r){if(t&1){let e=N();o(0,"button",12,3),O("click",function(){P(e);let n=d();return w(n.navBackward())}),u(2,Rn,1,1,"ChevronLeftIcon",13)(3,Bn,1,0,null,14),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),l(2),s("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),l(),s("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Nn(t,r){t&1&&M(0)}function Hn(t,r){if(t&1&&u(0,Nn,1,0,"ng-container",14),t&2){let e=d(2).$implicit;s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function $n(t,r){}function Un(t,r){t&1&&u(0,$n,0,0,"ng-template")}function qn(t,r){if(t&1&&u(0,Un,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function jn(t,r){if(t&1&&p(0,"span",17),t&2){let e=d(3).$implicit;s("ngClass",e.leftIcon)}}function Qn(t,r){}function zn(t,r){t&1&&u(0,Qn,0,0,"ng-template")}function Gn(t,r){if(t&1&&u(0,zn,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Wn(t,r){if(t&1&&p(0,"span",18),t&2){let e=d(3).$implicit;s("ngClass",e.rightIcon)}}function Kn(t,r){}function Yn(t,r){t&1&&u(0,Kn,0,0,"ng-template")}function Zn(t,r){if(t&1&&u(0,Yn,1,0,null,14),t&2){let e=d(4).$implicit;s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Jn(t,r){if(t&1){let e=N();o(0,"TimesIcon",19),O("click",function(n){P(e);let c=d(4).$implicit,f=d();return w(f.close(n,c))}),a()}}function Xn(t,r){if(t&1&&u(0,Zn,1,1)(1,Jn,1,0,"TimesIcon"),t&2){let e=d(3).$implicit;_(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function ei(t,r){if(t&1&&(u(0,qn,1,1)(1,jn,1,1,"span",17),m(2),u(3,Gn,1,1)(4,Wn,1,1,"span",18)(5,Xn,2,1)),t&2){let e=d(2).$implicit;_(e.leftIconTemplate||e._leftIconTemplate?0:e.leftIcon&&!e.leftIconTemplate&&!e._leftIconTemplate?1:-1),l(2),V(" ",e.header," "),l(),_(e.rightIconTemplate||e._rightIconTemplate?3:e.rightIcon&&!e.rightIconTemplate&&!e._rightIconTemplate?4:-1),l(2),_(e.closable?5:-1)}}function ti(t,r){if(t&1){let e=N();o(0,"button",15),O("click",function(n){P(e);let c=d().$implicit,f=d();return w(f.open(n,c))})("keydown",function(n){P(e);let c=d().$implicit,f=d();return w(f.onTabKeyDown(n,c))}),u(1,Hn,1,1,"ng-container")(2,ei,6,4),a(),p(3,"span",16,4)}if(t&2){let e=d(),i=e.$implicit,n=e.$index,c=d();it(i.headerStyleClass),s("ngClass",U(22,On,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),z("role","tab")("id",c.getTabHeaderActionId(i.id))("aria-controls",c.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":c.tabindex)("aria-disabled",i.disabled)("data-pc-index",n)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),l(),_(i.headerTemplate||i._headerTemplate?1:2),l(2),z("aria-hidden",!0)("data-pc-section","inkbar")}}function ni(t,r){if(t&1&&u(0,ti,5,25),t&2){let e=r.$implicit;_(e.closed?-1:0)}}function ii(t,r){}function oi(t,r){t&1&&u(0,ii,0,0,"ng-template")}function ai(t,r){if(t&1&&u(0,oi,1,0,null,14),t&2){let e=d(2);s("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function li(t,r){t&1&&p(0,"ChevronRightIcon"),t&2&&z("aria-hidden",!0)}function ri(t,r){if(t&1){let e=N();o(0,"button",20,5),O("click",function(){P(e);let n=d();return w(n.navForward())}),u(2,ai,1,1)(3,li,1,1,"ChevronRightIcon"),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),l(2),_(e.nextIconTemplate||e._nextIconTemplate?2:3)}}var si=({dt:t})=>`
|
|
2
2
|
.p-tabs {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-2RGZUU27.js";import{a as K,b as Q}from"./chunk-XJ7SOVB2.js";import{a as J}from"./chunk-FP4HFB5J.js";import{e as Z,f as $}from"./chunk-EFKIYD2S.js";import{a as U,c as X}from"./chunk-MUJ6277G.js";import{b as Y}from"./chunk-WZS6HHV3.js";import{h as q,m as z,q as G}from"./chunk-H7F34T25.js";import{b as j,c as H}from"./chunk-JOXTERIM.js";import{a as D}from"./chunk-2FWFPV5I.js";import{F as b,c as A,h as v,o as k}from"./chunk-RVXZOIFQ.js";import{$a as l,Eb as w,Fa as C,Gb as P,Hb as F,Ib as o,Ja as g,Jb as a,Ob as N,Od as L,Qb as c,Rb as d,Vd as B,Yd as R,Zc as W,db as S,ec as r,fc as T,jc as E,jd as h,kb as M,kc as _,lc as V,ob as I,qb as O,va as u,vb as p,wa as f}from"./chunk-UXRO4UFY.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(m){this.stringPrefixMaskChange.emit(m)}onStringSuffixMaskChange(m){this.stringSuffixMaskChange.emit(m)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(l(10),p("ngModel",i.stringPrefixMask()),l(5),p("ngModel",i.stringSuffixMask()))},dependencies:[h,b,A,v,k,U,X,H,j],encapsulation:2})};function ae(s,m){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=m.$implicit;p("value",e),l(),T(e)}}function re(s,m){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=m.$implicit;p("value",e),l(),T(e)}}var y=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(m){this.contactsChange.emit(m)}onProductsChange(m){this.productsChange.emit(m)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,ae,2,2,"mat-option",10,w),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,re,2,2,"mat-option",10,w),a()()()()()()),e&2){let t,n;l(16),p("ngModel",i.products()),l(),F((t=i.options())==null?null:t.Product),l(7),p("ngModel",i.contacts()),l(),F((n=i.options())==null?null:n.Customer)}},dependencies:[h,Q,z,q,K,G,J,b,v,k],encapsulation:2})};function se(s,m){if(s&1){let e=N();o(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",3)(6,"ul",4)(7,"li",5)(8,"button",6),r(9," Objects "),a()(),o(10,"li",5)(11,"button",7),r(12," Masking "),a()()(),o(13,"div",8)(14,"div",9)(15,"masking-options",10),V("productsChange",function(t){u(e);let n=d();return _(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return _(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",11)(17,"masking-config",12),V("stringPrefixMaskChange",function(t){u(e);let n=d();return _(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return _(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(15),p("options",e.data.Options),E("products",e.data.Form.Product)("contacts",e.data.Form.Customer),l(2),E("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ne=class s extends ee{constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,D.Warning):this.toaster.success("Config has been updated succesfully!",D.Success)}static \u0275fac=function(i){return new(i||s)(S(Y),S(R),S(L),S(B))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[I],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&O(0,se,18,8,"mainpanel-cmp",0),i&2&&p("ngIf",t.formData)},dependencies:[h,W,$,Z,x,y],encapsulation:2})};export{ne as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J}from"./chunk-
|
|
1
|
+
import{c as J}from"./chunk-6W6BB6FZ.js";import{a as G}from"./chunk-IQBTWGJY.js";import"./chunk-75SMG4SF.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as q,f as z}from"./chunk-EFKIYD2S.js";import"./chunk-ITGJPMDT.js";import"./chunk-5JJSLRVS.js";import"./chunk-MFCXEITE.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-JGK2MYOQ.js";import{b as A}from"./chunk-WZS6HHV3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as j,c as k}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as W,h as B,o as H}from"./chunk-RVXZOIFQ.js";import"./chunk-SH2AVVL5.js";import"./chunk-UCJKQICE.js";import"./chunk-ZZGSAFGO.js";import"./chunk-SEGFXGKG.js";import{$a as l,Ac as F,Bc as T,Eb as x,Fc as E,Gb as M,Hb as w,Ib as i,Jb as n,Ob as v,Qb as N,Rb as S,Vd as V,Yd as R,db as c,ec as o,ed as P,fc as u,gd as L,jc as _,jd as O,kb as D,kc as b,lc as h,ob as y,qb as I,va as p,vb as d,wa as s,zc as C}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,L,P,z,q,J,W,B,H,k,j],encapsulation:2})};export{K as InvoiceNumberingComponent};
|