dealpos 1.0.0
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/POS/3rdpartylicenses.txt +1645 -0
- package/POS/assets/icons/icon-128x128.png +0 -0
- package/POS/assets/icons/icon-144x144.png +0 -0
- package/POS/assets/icons/icon-152x152.png +0 -0
- package/POS/assets/icons/icon-192x192.png +0 -0
- package/POS/assets/icons/icon-384x384.png +0 -0
- package/POS/assets/icons/icon-512x512.png +0 -0
- package/POS/assets/icons/icon-72x72.png +0 -0
- package/POS/assets/icons/icon-96x96.png +0 -0
- package/POS/chunk-26YXEYJK.js +1 -0
- package/POS/chunk-2DNKBN6G.js +1 -0
- package/POS/chunk-2FKYC63K.js +1 -0
- package/POS/chunk-2FWFPV5I.js +1 -0
- package/POS/chunk-2OSKJOSS.js +1 -0
- package/POS/chunk-2OXMYDYT.js +1 -0
- package/POS/chunk-2OZMF5DL.js +1 -0
- package/POS/chunk-2W3MAOOP.js +1 -0
- package/POS/chunk-33XCA4ER.js +14 -0
- package/POS/chunk-35V3VL6F.js +1 -0
- package/POS/chunk-3A7KA4YN.js +1 -0
- package/POS/chunk-3BODNSIH.js +1 -0
- package/POS/chunk-3FOIEYAT.js +4 -0
- package/POS/chunk-3PFXZUB6.js +7 -0
- package/POS/chunk-3QABPVXZ.js +3 -0
- package/POS/chunk-4BDQDYVB.js +1 -0
- package/POS/chunk-4CBDK52E.js +4 -0
- package/POS/chunk-4G26RHGA.js +1 -0
- package/POS/chunk-4MX7Q77M.js +2 -0
- package/POS/chunk-4UAHOTBD.js +1 -0
- package/POS/chunk-56EQRIAH.js +1 -0
- package/POS/chunk-5KBFQLSN.js +1 -0
- package/POS/chunk-5W7F4VJH.js +1 -0
- package/POS/chunk-64PDX5ZX.js +1 -0
- package/POS/chunk-65YDOCXF.js +1 -0
- package/POS/chunk-67VBXFVT.js +6 -0
- package/POS/chunk-6BQZINLH.js +1 -0
- package/POS/chunk-6L6CIH5M.js +1 -0
- package/POS/chunk-6PXJEE4K.js +1 -0
- package/POS/chunk-6S4Q5VRA.js +1 -0
- package/POS/chunk-75STMWUR.js +6 -0
- package/POS/chunk-76C33PK5.js +1 -0
- package/POS/chunk-77D6X2SQ.js +11 -0
- package/POS/chunk-7DWKYGA4.js +1 -0
- package/POS/chunk-7M6CWVRI.js +1 -0
- package/POS/chunk-7Q3437BR.js +1 -0
- package/POS/chunk-AA32I4UN.js +1 -0
- package/POS/chunk-AJMKP7YZ.js +1 -0
- package/POS/chunk-AOJW6WJT.js +1 -0
- package/POS/chunk-AOPKPEVH.js +1 -0
- package/POS/chunk-APJK7OH2.js +2 -0
- package/POS/chunk-APYNCJ2H.js +1 -0
- package/POS/chunk-AUYYX2UQ.js +45 -0
- package/POS/chunk-AVDGNFC7.js +1 -0
- package/POS/chunk-AWGZKLLY.js +1 -0
- package/POS/chunk-AYKDALBT.js +1 -0
- package/POS/chunk-B2OT7HA4.js +4 -0
- package/POS/chunk-B36XIZVJ.js +1 -0
- package/POS/chunk-B5FODXLM.js +1 -0
- package/POS/chunk-B7RM5KKA.js +1 -0
- package/POS/chunk-BCVO66L3.js +5 -0
- package/POS/chunk-BETKNHFK.js +1 -0
- package/POS/chunk-BH2ZVZIU.js +1 -0
- package/POS/chunk-BHXS5IA6.js +1 -0
- package/POS/chunk-BLZEDUEI.js +1 -0
- package/POS/chunk-BYXBJQAS.js +0 -0
- package/POS/chunk-BZC5JINN.js +5 -0
- package/POS/chunk-C43IYFVU.js +1 -0
- package/POS/chunk-CBW7IA6S.js +1 -0
- package/POS/chunk-CCGPOEE3.js +4 -0
- package/POS/chunk-CFIFFKWA.js +1 -0
- package/POS/chunk-CI45CZMG.js +1 -0
- package/POS/chunk-CJO25BBP.js +1 -0
- package/POS/chunk-CLL3TEL5.js +1 -0
- package/POS/chunk-CPUGWH3I.js +1 -0
- package/POS/chunk-CPW6IWAB.js +1 -0
- package/POS/chunk-CRSUSQ3W.js +1 -0
- package/POS/chunk-CW27R4N3.js +2 -0
- package/POS/chunk-CWU5DTSS.js +1 -0
- package/POS/chunk-CY2FQLP4.js +1 -0
- package/POS/chunk-DRGWLGRP.js +1 -0
- package/POS/chunk-DXF4M3Z6.js +1 -0
- package/POS/chunk-E72IOARD.js +1 -0
- package/POS/chunk-EA7CLJMQ.js +18 -0
- package/POS/chunk-ECMSF3OR.js +1 -0
- package/POS/chunk-EOFWQEK7.js +1 -0
- package/POS/chunk-EQOB7536.js +156 -0
- package/POS/chunk-ESD5O3BQ.js +1 -0
- package/POS/chunk-EZCHVNC5.js +3 -0
- package/POS/chunk-F3ZYFWTM.js +1 -0
- package/POS/chunk-F6GAPEFT.js +1 -0
- package/POS/chunk-FBR7TAEJ.js +5 -0
- package/POS/chunk-FE5LZK5I.js +1 -0
- package/POS/chunk-FOEYBSQT.js +2 -0
- package/POS/chunk-FWVI7M5F.js +1 -0
- package/POS/chunk-G4DDQBH4.js +1 -0
- package/POS/chunk-GDFWXFK2.js +1 -0
- package/POS/chunk-GHQFOULJ.js +2 -0
- package/POS/chunk-GNSQPTDB.js +1 -0
- package/POS/chunk-GSLPZSSX.js +1 -0
- package/POS/chunk-GVXSG66Q.js +1 -0
- package/POS/chunk-H55AJAX5.js +8 -0
- package/POS/chunk-HIRUHGYD.js +2 -0
- package/POS/chunk-HKR2C3HA.js +1 -0
- package/POS/chunk-HSOC6U4B.js +1 -0
- package/POS/chunk-I6CGSFEU.js +1 -0
- package/POS/chunk-I6YPWC52.js +1 -0
- package/POS/chunk-IDDHFZWG.js +1 -0
- package/POS/chunk-IE5R6YWY.js +1 -0
- package/POS/chunk-IOQ3OION.js +1 -0
- package/POS/chunk-IUKSWU5B.js +1 -0
- package/POS/chunk-IY6EDHBT.js +1 -0
- package/POS/chunk-IZGPRDGN.js +2 -0
- package/POS/chunk-J3W6DQKW.js +1 -0
- package/POS/chunk-JLWKTGB2.js +1 -0
- package/POS/chunk-JM3SJLS7.js +1 -0
- package/POS/chunk-JNUC6PO5.js +1 -0
- package/POS/chunk-K5XVN3MT.js +1 -0
- package/POS/chunk-KBQ5ZM55.js +1 -0
- package/POS/chunk-KCNSCS4R.js +1 -0
- package/POS/chunk-KI2MQKDF.js +1 -0
- package/POS/chunk-KNRLGMUT.js +1 -0
- package/POS/chunk-KR4OPCRF.js +1 -0
- package/POS/chunk-KW4B7WMB.js +1 -0
- package/POS/chunk-KYX6U2UX.js +1 -0
- package/POS/chunk-KZNSGBGF.js +2 -0
- package/POS/chunk-L3UWNQXB.js +1 -0
- package/POS/chunk-LHWN2J4H.js +15 -0
- package/POS/chunk-LJUP6CCS.js +1 -0
- package/POS/chunk-LY4FOMQ6.css +1 -0
- package/POS/chunk-LZ3SKBTU.js +1 -0
- package/POS/chunk-M5ONTRWK.js +1 -0
- package/POS/chunk-MA7NEQCZ.js +1 -0
- package/POS/chunk-MDKYCLYA.js +17 -0
- package/POS/chunk-MGDA6GY6.js +1 -0
- package/POS/chunk-MWWGZRMN.js +1 -0
- package/POS/chunk-NCATMO6T.js +1 -0
- package/POS/chunk-NDAI7L23.js +1 -0
- package/POS/chunk-NHUK6IK5.js +40 -0
- package/POS/chunk-NUZ5K7GT.js +1 -0
- package/POS/chunk-O2PELRQA.js +1 -0
- package/POS/chunk-OUOP65JB.js +1 -0
- package/POS/chunk-OXSD6KML.js +1 -0
- package/POS/chunk-PEOMRJUI.js +3 -0
- package/POS/chunk-PHGK3EAU.js +1 -0
- package/POS/chunk-PLC4GZ67.js +1 -0
- package/POS/chunk-PTF6AQY6.js +1 -0
- package/POS/chunk-PTXKBWBA.js +1 -0
- package/POS/chunk-Q3SJOSAG.js +1 -0
- package/POS/chunk-QBDEGNJP.js +1 -0
- package/POS/chunk-QCTMAR3L.js +1 -0
- package/POS/chunk-QZWOQRAM.js +1 -0
- package/POS/chunk-R5VG3XDC.js +1 -0
- package/POS/chunk-R7NR3M2Q.js +1 -0
- package/POS/chunk-RBKYZOZX.js +3 -0
- package/POS/chunk-RHQGCHFI.js +1 -0
- package/POS/chunk-RL3GYZVU.js +8 -0
- package/POS/chunk-RRKCUSBB.js +1 -0
- package/POS/chunk-S4OLP2TR.js +18 -0
- package/POS/chunk-SDH32O74.js +1 -0
- package/POS/chunk-SE7OFLAL.js +1 -0
- package/POS/chunk-SEVYM4GA.js +1 -0
- package/POS/chunk-SGRJ5YG2.js +1 -0
- package/POS/chunk-SNNLFZQ3.js +3 -0
- package/POS/chunk-SVNOJVQF.js +1 -0
- package/POS/chunk-TCLYGBIP.js +1 -0
- package/POS/chunk-TIDDF777.js +1 -0
- package/POS/chunk-TJQIORGG.js +1 -0
- package/POS/chunk-TK5H65DN.js +1 -0
- package/POS/chunk-TLHNFDPP.js +1 -0
- package/POS/chunk-TVNDX4KA.js +3 -0
- package/POS/chunk-TX6G2LAN.js +1 -0
- package/POS/chunk-U3O6FO5X.js +1 -0
- package/POS/chunk-UJMXJABS.js +1 -0
- package/POS/chunk-UNGT7KQO.js +1 -0
- package/POS/chunk-UPRH3DLS.js +1 -0
- package/POS/chunk-UVFDCVT4.js +2 -0
- package/POS/chunk-V22EVF6N.js +1 -0
- package/POS/chunk-V4RKZMUB.js +11 -0
- package/POS/chunk-VBOV2ZGQ.js +1 -0
- package/POS/chunk-VGGNSOCP.js +1 -0
- package/POS/chunk-VLGOEX3D.js +24 -0
- package/POS/chunk-VPAQFQA7.js +1 -0
- package/POS/chunk-VSMYP4AC.js +1 -0
- package/POS/chunk-VXCP4DBC.js +1 -0
- package/POS/chunk-W43P2XHR.js +1 -0
- package/POS/chunk-W7PIRMKD.js +1 -0
- package/POS/chunk-WG6PV6VL.js +4 -0
- package/POS/chunk-WK4T26FX.js +2 -0
- package/POS/chunk-WKS7JIOA.js +1 -0
- package/POS/chunk-WKXE4B24.js +1 -0
- package/POS/chunk-WLRXTHLM.js +1 -0
- package/POS/chunk-WSZGVB3P.js +1 -0
- package/POS/chunk-WXHOQKTU.js +1 -0
- package/POS/chunk-X55EKFUZ.js +1 -0
- package/POS/chunk-X7QMXCEW.js +4 -0
- package/POS/chunk-XIGLLWLV.js +1 -0
- package/POS/chunk-XRKZOON6.js +4 -0
- package/POS/chunk-XW2QKXZF.js +5 -0
- package/POS/chunk-XZPCPUT7.js +1 -0
- package/POS/chunk-Y5SPDICN.js +2 -0
- package/POS/chunk-Y7XBMFXR.js +1 -0
- package/POS/chunk-YATUCULL.js +1 -0
- package/POS/chunk-YBFOOZH4.js +2 -0
- package/POS/chunk-YBINYTS7.js +1 -0
- package/POS/chunk-YE2HNBMX.js +1 -0
- package/POS/chunk-YENHZRM5.js +9 -0
- package/POS/chunk-YHCFOJEX.js +1 -0
- package/POS/chunk-YKBQYDEJ.js +2 -0
- package/POS/chunk-YPFXYXHP.js +8 -0
- package/POS/chunk-YRHYSRBM.js +1 -0
- package/POS/chunk-YRITVFOW.js +1 -0
- package/POS/chunk-YRNTUREW.js +1 -0
- package/POS/chunk-YXRRTX7W.js +1 -0
- package/POS/chunk-Z426RGUL.js +24 -0
- package/POS/chunk-ZB45Y55B.js +1 -0
- package/POS/chunk-ZGRVB4IB.js +1 -0
- package/POS/chunk-ZJ3TX62Q.js +1 -0
- package/POS/chunk-ZKWXTWYY.js +1 -0
- package/POS/index.html +33 -0
- package/POS/main-CNMNNNEI.js +4 -0
- package/POS/main-VPAR6OBK.css +1 -0
- package/POS/manifest.webmanifest +59 -0
- package/POS/media/color-727V6BA6.png +0 -0
- package/POS/media/hue-3YTJE6JS.png +0 -0
- package/POS/media/primeicons-4GST5W3O.woff2 +0 -0
- package/POS/media/primeicons-DHQU4SEP.svg +345 -0
- package/POS/media/primeicons-GEFHGEHP.ttf +0 -0
- package/POS/media/primeicons-P53SE5CV.woff +0 -0
- package/POS/media/primeicons-RSSEDYLY.eot +0 -0
- package/POS/polyfills-FHOOFFEX.js +2 -0
- package/POS/scripts-3E2G6IZ4.js +10 -0
- package/POS/styles-T7FPZRNG.css +25 -0
- package/Styles/Master/app_custom.css +18 -0
- package/Styles/Master/login_custom.css +0 -0
- package/Styles/Print/PaperSize8cm_custom.css +1 -0
- package/Styles/Print/PaperSizeA4_custom.css +1 -0
- package/StylesB/Master/app_custom.css +0 -0
- package/package.json +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as ie,l as ae,m as ne}from"./chunk-V4RKZMUB.js";import{a as te,c as P,d as C}from"./chunk-26YXEYJK.js";import{a as re}from"./chunk-WG6PV6VL.js";import{a as oe}from"./chunk-RRKCUSBB.js";import{$b as j,Ab as g,Bb as f,Cb as E,Db as w,I as Q,Ib as q,Kb as v,Qa as O,Rc as z,Sc as X,Ua as a,Va as G,Zb as y,_ as K,_b as V,cd as Z,da as R,gb as S,gc as Y,ha as c,k as W,ka as _,la as T,lb as H,mb as u,o as L,pa as $,qd as ee,t as U,zb as s}from"./chunk-H55AJAX5.js";import{a as M,b as h}from"./chunk-KW4B7WMB.js";var le=class{menuData$;menuData={T:null,N:null,H:null,U:null};constructor(e){e.setMenu$(),this.menuData$=e.menu$.pipe(R(t=>this.menuData=t))}};function De(r,e){if(r&1&&f(0,"button",14),r&2){let t=v().index;H("data-bs-slide-to",t)}}function Fe(r,e){if(r&1&&(E(0),S(1,De,1,1,"button",13),w()),r&2){let t=e.index;a(),u("ngIf",t!=0)}}function Ae(r,e){if(r&1&&(s(0,"div",11),f(1,"button",12),S(2,Fe,2,1,"ng-container",10),g()),r&2){let t=v();a(),H("data-bs-slide-to",0),a(),u("ngForOf",t.changelogs)}}function Be(r,e){if(r&1&&(s(0,"div",16),f(1,"img",6),s(2,"div",7)(3,"h2")(4,"a",8),y(5),g()(),s(6,"p",9),y(7),g()()()),r&2){let t=v().$implicit;a(),u("src",t.ImageSource,O),a(3),u("href",t.Href,O),a(),V(t.Title),a(2),j(" ",t.Description," ")}}function xe(r,e){if(r&1&&(E(0),S(1,Be,8,4,"div",15),w()),r&2){let t=e.index;a(),u("ngIf",t!=0)}}var I=class r{constructor(e,t){this.dialogRef=t;this.changelogs=e}changelogs=[];close(){this.dialogRef.close()}static \u0275fac=function(t){return new(t||r)(G(ae),G(ie))};static \u0275cmp=$({type:r,selectors:[["POS-modal-changelog"]],standalone:!0,features:[Y],decls:15,vars:6,consts:[[1,"changelog-container","h-100"],["mat-button","",1,"close",3,"click"],["id","carouselExampleIndicators","data-bs-ride","carousel",1,"carousel","slide"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner"],[1,"carousel-item","active"],["alt","",3,"src"],[1,"text-container",2,"height","150px","width","40vw","margin","0 auto"],["target","_blank",3,"href"],[1,"description"],[4,"ngFor","ngForOf"],[1,"carousel-indicators"],["type","button","data-bs-target","#carouselExampleIndicators","aria-current","true",1,"active"],["type","button","data-bs-target","#carouselExampleIndicators","aria-current","true",4,"ngIf"],["type","button","data-bs-target","#carouselExampleIndicators","aria-current","true"],["class","carousel-item",4,"ngIf"],[1,"carousel-item"]],template:function(t,i){t&1&&(s(0,"div",0)(1,"button",1),q("click",function(){return i.close()}),y(2,"X"),g(),s(3,"div",2),S(4,Ae,3,2,"div",3),s(5,"div",4)(6,"div",5),f(7,"img",6),s(8,"div",7)(9,"h2")(10,"a",8),y(11),g()(),s(12,"p",9),y(13),g()()(),S(14,xe,2,1,"ng-container",10),g()()()),t&2&&(a(4),u("ngIf",i.changelogs.length>1),a(3),u("src",i.changelogs[0].ImageSource,O),a(3),u("href",i.changelogs[0].Href,O),a(),V(i.changelogs[0].Title),a(2),j(" ",i.changelogs[0].Description," "),a(),u("ngForOf",i.changelogs))},dependencies:[Z,z,X],styles:[".changelog-container[_ngcontent-%COMP%]{position:relative;text-align:center}.changelog-container[_ngcontent-%COMP%] .carousel.slide[_ngcontent-%COMP%]{height:100%}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] [data-bs-target][_ngcontent-%COMP%]{background-color:#dbdfea}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#19a7ce}.changelog-container[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:10px;border:0}.changelog-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:16/9;max-height:55vh}@media (max-width: 576px){.changelog-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{aspect-ratio:auto;width:100%}}.changelog-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:20px}.changelog-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:10px!important;margin-bottom:15px!important;max-width:700px;font-size:15px;margin:0 auto}.changelog-container[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:absolute;top:15px;right:20px;transform:translate(100%,-100%);background:#fff;padding:8px 13px;min-width:auto;border:none;border-radius:119px;z-index:2}@media (max-width: 576px){.changelog-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{width:100%!important}}"]})};var Ue={headerTitle:"Adjustment",menu:[{label:"Archive",routerLink:"Adjustment/Adjustment/Archive",pageTitle:"Inventory Adjustment"},{label:"New Inventory Adjustment",routerLink:"Adjustment/Adjustment/Archive/Form",pageTitle:"New Inventory Adjustment",isNotTabOrSideMenu:!0},{label:"Adjustemnt",routerLink:"Adjustment/Adjustment/Archive/Info",pageTitle:"Inventory Adjustment Info",isNotTabOrSideMenu:!0},{label:"Stock Take by CSV",routerLink:"Adjustment/Adjustment/Stock_Take_by_CSV",pageTitle:"Stock Take By CSV"},{label:"Stock Take by Web Spreadsheet",routerLink:"Adjustment/Adjustment/Stock_Take_by_Web_Spreadsheet",pageTitle:"Adjustment By Web Spreadsheet"}]},Ge={headerTitle:"Tools",menu:[{label:"Count Product Inventory",routerLink:"Adjustment/Tools/Count_Product_Inventory",pageTitle:"Count Product Inventory"},{label:"Convert Inventory To Parent UOM",routerLink:"Adjustment/Tools/Convert_Inventory_to_Parent_UOM",pageTitle:"Convert Inventory To Parent UOM"},{label:"Product Sheet",routerLink:"Adjustment/Tools/Product_Sheet",pageTitle:"Product Sheet"}]},He={headerTitle:"Report",menu:[{label:"Detail",routerLink:"Adjustment/Report/Adjustment",pageTitle:"Adjustment Report"}]},Ee={headerTitle:"History",menu:[{label:"Variant Adjustment",routerLink:"Adjustment/History/Variant",pageTitle:"Variant Adjustment History"}]},ue=[Ue,Ge,He,Ee];var we={headerTitle:"Contact",menu:[{label:"Customers",routerLink:"Contacts/Contact/Customers",pageTitle:"Customers List"},{label:"New Customer",routerLink:"Contacts/Contact/Customers/Form",pageTitle:"Contact",isNotTabOrSideMenu:!0},{label:"Import Customer",routerLink:"Contacts/Contact/Customers/Import",pageTitle:"Import Customer",isNotTabOrSideMenu:!0},{label:"Import Customer",routerLink:"Contacts/Contact/Customers/Import",pageTitle:"Import Customer",isNotTabOrSideMenu:!0},{label:"Suppliers",routerLink:"Contacts/Contact/Suppliers",pageTitle:"Suppliers List",role:"Supp"},{label:"New Supplier",routerLink:"Contacts/Contact/Suppliers/Form",pageTitle:"Supplier",isNotTabOrSideMenu:!0},{label:"Import Supplier",routerLink:"Contacts/Contact/Suppliers/Import",pageTitle:"Import Supplier",isNotTabOrSideMenu:!0},{label:"Supplier Info",routerLink:"Contacts/Contact/Suppliers/Info",pageTitle:"Supplier Info",isNotTabOrSideMenu:!0},{label:"Sales Person",routerLink:"Contacts/Contact/Sales_Person",pageTitle:"Sales Person",role:"SalP"},{label:"Sales",routerLink:"Contacts/Contact/Sales_Person/Form",pageTitle:"Sales",isNotTabOrSideMenu:!0},{label:"Import Sales Person",routerLink:"Contacts/Contact/Sales_Person/Import",pageTitle:"Import Sales Person",isNotTabOrSideMenu:!0},{label:"Sales Info",routerLink:"Contacts/Contact/Sales_Person/Info",pageTitle:"Sales Info",isNotTabOrSideMenu:!0},{label:"Comment",routerLink:"Contacts/Contact/Comment",pageTitle:"Comment List"}]},Ve={headerTitle:"Loyalty",menu:[{label:"Current Point",routerLink:"Contacts/Loyalty/Current_Point",pageTitle:"Current Point"},{label:"Loyalty Point History",routerLink:"Contacts/Loyalty/Current_Point/Point_History",pageTitle:"Point History",isNotTabOrSideMenu:!0},{label:"Points Earned",routerLink:"Contacts/Loyalty/Earned_Point",pageTitle:"Points Earned"},{label:"Redeemed Point",routerLink:"Contacts/Loyalty/Redeemed_Point",pageTitle:"Loyalty Summary"},{label:"Loyalty Point Redemption",routerLink:"Contacts/Loyalty/Loyalty_Point_Redemption",pageTitle:"Daily Loyalty Point Redemption"}]},je={headerTitle:"Group",menu:[{label:"Customer Group",routerLink:"Contacts/Group/Customer_Group",pageTitle:"Customer Group"},{label:"Customer Group Form",routerLink:"Contacts/Group/Customer_Group/Form",pageTitle:"Customer Group Form",isNotTabOrSideMenu:!0},{label:"Sales Group",routerLink:"Contacts/Group/Sales_Group",pageTitle:"Sales Group"},{label:"Sales Group Form",routerLink:"Contacts/Group/Sales_Group/Form",pageTitle:"Sales Group Form",isNotTabOrSideMenu:!0},{label:"Expired Customer Group",routerLink:"Contacts/Group/Expired_Customer_Group",pageTitle:"Expired Customer Group"}]},Je={headerTitle:"Option Values",menu:[{label:"Country",routerLink:"Contacts/Option_Values/Country",pageTitle:"Country List"},{label:"Country Form",routerLink:"Contacts/Option_Values/Country/Form",pageTitle:"Country Form",isNotTabOrSideMenu:!0},{label:"City",routerLink:"Contacts/Option_Values/City",pageTitle:"City List"},{label:"City Form",routerLink:"Contacts/Option_Values/City/Form",pageTitle:"City Form",isNotTabOrSideMenu:!0},{label:"Import City",routerLink:"Contacts/Option_Values/City/Import",pageTitle:"Import City",isNotTabOrSideMenu:!0},{label:"Nationality",routerLink:"Contacts/Option_Values/Nationality",pageTitle:"Nationality List"},{label:"Nationality Form",routerLink:"Contacts/Option_Values/Nationality/Form",pageTitle:"Nationality Form",isNotTabOrSideMenu:!0},{label:"Race",routerLink:"Contacts/Option_Values/Race",pageTitle:"Race List"},{label:"Race Form",routerLink:"Contacts/Option_Values/Race/Form",pageTitle:"Race Form",isNotTabOrSideMenu:!0},{label:"Acquisition Media",routerLink:"Contacts/Option_Values/Acqusition_Media",pageTitle:"Acquisition Media List"},{label:"Acquisition Media Form",routerLink:"Contacts/Option_Values/Acqusition_Media/Form",pageTitle:"Acquisition Media Form",isNotTabOrSideMenu:!0},{label:"Shipping Address",routerLink:"Contacts/Option_Values/Shipping_Address",pageTitle:"Shipping Address List"},{label:"Customer Title",routerLink:"Contacts/Option_Values/Customer_Title",pageTitle:"Customer Title List"},{label:"Customer Title Form",routerLink:"Contacts/Option_Values/Customer_Title/Form",pageTitle:"Customer Title Form",isNotTabOrSideMenu:!0}]},We={headerTitle:"Reports",menu:[{label:"New Customer Outlet",routerLink:"Contacts/Reports/New_Customer_Outlet",pageTitle:"New Customer Outlet"}]},se=[we,Ve,je,Je,We];var Qe={headerTitle:"Delivery",menu:[{label:"New Order",routerLink:"Fulfillment/Delivery/New_Order",pageTitle:"New Order"},{label:"Pick",routerLink:"Fulfillment/Delivery/Pick",pageTitle:"Pick"},{label:"Pick Form",routerLink:"Fulfillment/Delivery/Pick/Form",pageTitle:"Pick Form",isNotTabOrSideMenu:!0},{label:"Assigned",routerLink:"Fulfillment/Delivery/Assigned",pageTitle:"Assigned"},{label:"Pack",routerLink:"Fulfillment/Delivery/Pack",pageTitle:"Pack"},{label:"Ship",routerLink:"Fulfillment/Delivery/Ship",pageTitle:"Ship"},{label:"All",routerLink:"Fulfillment/Delivery/All",pageTitle:"All"}]},Ke={headerTitle:"Allocated",menu:[{label:"Unfulfilled Products",routerLink:"Fulfillment/Allocated/Unfulfilled_Products",pageTitle:"Unfulfilled Products"},{label:"Unfulfilled Orders",routerLink:"Fulfillment/Allocated/Unfulfilled_Invoices",pageTitle:"Unfulfilled Orders"},{label:"Pick List Products",routerLink:"Fulfillment/Allocated/PickList_Products",pageTitle:"Pick List Products"}]},$e={headerTitle:"Awaiting",menu:[{label:"Unfulfilled Products",routerLink:"Fulfillment/Awaiting/Unfulfilled_Products",pageTitle:"Unfulfilled Products"}]},qe={headerTitle:"Report",menu:[{label:"Outlet Performance",routerLink:"Fulfillment/Report/Outlet_Performance",pageTitle:"Outlet Performance"},{label:"Daily Fulfillment",routerLink:"Fulfillment/Report/Daily_Fulfillment",pageTitle:"Daily Fulfillment (Shipped)"},{label:"Employee Performance",routerLink:"Fulfillment/Report/Employee_Performance",pageTitle:"Employee Performance (Packed)"},{label:"Product",routerLink:"Fulfillment/Report/Product",pageTitle:"Product"}]},pe=[Qe,Ke,qe,$e];var Ye={headerTitle:"Job Order",menu:[{label:"Archive",routerLink:"Manufacture/Job_Order/Archive",pageTitle:"Job Order List"},{label:"Job Order Form",routerLink:"Manufacture/Job_Order/Archive/Form",pageTitle:"Job Order Form",isNotTabOrSideMenu:!0},{label:"Job Order Form",routerLink:"Manufacture/Job_Order/Archive/FormV1",pageTitle:"Job Order Form",isNotTabOrSideMenu:!0},{label:"Job Order",routerLink:"Manufacture/Job_Order/Archive/Info",pageTitle:"Job Order Info",isNotTabOrSideMenu:!0},{label:"Report",routerLink:"Manufacture/Job_Order/Report",pageTitle:"Manufacture Production"}]},de=[Ye];var ze={headerTitle:"Master",menu:[{label:"Outlets",routerLink:"Outlets/Master/Outlets",pageTitle:"Outlet List"},{label:"Outlet Form",routerLink:"Outlets/Master/Outlets/Form",pageTitle:"New Outlet",isNotTabOrSideMenu:!0},{label:"Outlet Info",routerLink:"Outlets/Master/Outlets/Info",pageTitle:"Outlet Info",isNotTabOrSideMenu:!0},{label:"Registers",routerLink:"Outlets/Master/Registers",pageTitle:"Outlet Register List",isNotTabOrSideMenu:!1},{label:"Register Form",routerLink:"Outlets/Master/Registers/Form",pageTitle:"Register Form",isNotTabOrSideMenu:!0},{label:"Register Info",routerLink:"Outlets/Master/Registers/Info",pageTitle:"Register Info",isNotTabOrSideMenu:!0},{label:"Receipt Templates",routerLink:"Outlets/Master/Receipt_Templates",pageTitle:"Receipt Templates",isNotTabOrSideMenu:!1},{label:"Receipt Templates Form",routerLink:"Outlets/Master/Receipt_Templates/Form",pageTitle:"Receipt Templates Form",isNotTabOrSideMenu:!0},{label:"Receipt Templates Info",routerLink:"Outlets/Master/Receipt_Templates/Info",pageTitle:"Receipt Templates Info",isNotTabOrSideMenu:!0},{label:"Quick Key Templates",routerLink:"Outlets/Master/Quick_Key_Templates",pageTitle:"Quick Key Templates",isNotTabOrSideMenu:!1},{label:"Quick Key Form",routerLink:"Outlets/Master/Quick_Key_Templates/Form",pageTitle:"Quick Key Form",isNotTabOrSideMenu:!0},{label:"Quick Key Form",routerLink:"Outlets/Master/Quick_Key_Templates/Form/V2",pageTitle:"Quick Key Form",isNotTabOrSideMenu:!0},{label:"Park Layout Templates",routerLink:"Outlets/Master/Park_Layout_Templates",pageTitle:"Park Layout Templates",isNotTabOrSideMenu:!1},{label:"Park Layout Template Form",routerLink:"Outlets/Master/Park_Layout_Templates/Form",pageTitle:"Park Layout Template Form",isNotTabOrSideMenu:!0},{label:"Customer Display",routerLink:"Outlets/Master/Customer_Display",pageTitle:"Customer Display",isNotTabOrSideMenu:!1},{label:"Customer Display Form",routerLink:"Outlets/Master/Customer_Display/Form",pageTitle:"Customer Display Form",isNotTabOrSideMenu:!0}]},Xe={headerTitle:"Setup",menu:[{label:"Outlet Group",routerLink:"Outlets/Setup/List",pageTitle:"Outlet Group"},{label:"Outlet Group Form",routerLink:"Outlets/Setup/List/Form",pageTitle:"Outlet Group Form",isNotTabOrSideMenu:!0}]},ce=[ze,Xe];var Ze={headerTitle:"Default",menu:[{label:"Received",routerLink:"Payment/Default/Received",pageTitle:"Received Payment"},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment",pageTitle:"Import Payment",isNotTabOrSideMenu:!0},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment/V2",pageTitle:"Import Payment",isNotTabOrSideMenu:!0},{label:"Import Payment",routerLink:"Payment/Default/Received/Import_Payment_Note",pageTitle:"Import Payment Note",isNotTabOrSideMenu:!0},{label:"Adding New Bulk Payment",routerLink:"Payment/Default/Received/Bulk_Payment",pageTitle:"Bulk Payment",isNotTabOrSideMenu:!0},{label:"By Outlet",routerLink:"Payment/Default/Received_by_Outlet",pageTitle:"Payments Received By Group"},{label:"Daily",routerLink:"Payment/Default/Daily",pageTitle:"Daily Payment Received"},{label:"Detail",routerLink:"Payment/Default/Detail",pageTitle:"Record Payment Detail"},{label:"Daily Payment Received Detail",routerLink:"Payment/Default/Detail/TypeColumn",pageTitle:"Payment Received With Type Column",isNotTabOrSideMenu:!0},{label:"Method Analysis",routerLink:"Payment/Default/Top_Payment_Methods",pageTitle:"Top Payment Methods"},{label:"Payments Made",routerLink:"Payment/Default/Made",pageTitle:"Daily Payment Made"},{label:"Purchase Order Payment Detail",routerLink:"Payment/Default/Made/Detail",pageTitle:"Purchase Order Payment Detail",isNotTabOrSideMenu:!0},{label:"Write Off",routerLink:"Payment/Default/Write_Off",pageTitle:"Write Off"},{label:"Payment Gateway",routerLink:"Payment/Default/Payment_Gateway",pageTitle:"Payment Gateway"},{label:"Payment Gateway Daily Aggregate",routerLink:"Payment/Default/Payment_Gateway/Daily",pageTitle:"Payment Gateway Daily Aggregate",isNotTabOrSideMenu:!0}]},et={headerTitle:"Advance",menu:[{label:"Received By User",routerLink:"Payment/Advance/Received_by_User",pageTitle:"Received By User"},{label:"Payments Difference",routerLink:"Payment/Advance/Payments_Difference",pageTitle:"Payments Difference Date"},{label:"Payment Received Chart",routerLink:"Payment/Advance/Received/Chart",pageTitle:"Payment Received Chart"}]},ge=[Ze,et];var tt={headerTitle:"Catalog",menu:[{label:"Category",routerLink:"Products/Catalog/Categories",pageTitle:"Product Category Tree"},{label:"New Category",routerLink:"Products/Catalog/Categories/Form",pageTitle:"Product Category",isNotTabOrSideMenu:!0},{label:"Category Info",routerLink:"Products/Catalog/Categories/Info",pageTitle:"Categories Info",isNotTabOrSideMenu:!0},{label:"Products",routerLink:"Products/Catalog/Products",pageTitle:"Products"},{label:"New Product",routerLink:"Products/Catalog/Products/Form",pageTitle:"Product Form",isNotTabOrSideMenu:!0},{label:"Product Inventory",routerLink:"Products/Catalog/Products/Inventory",pageTitle:"Product Inventory",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/Import",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/ImportV2",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Import Product",routerLink:"Products/Catalog/Products/ImportV3",pageTitle:"Import Product",isNotTabOrSideMenu:!0},{label:"Variants",routerLink:"Products/Catalog/Variants",pageTitle:"Variants"},{label:"Variant Form",routerLink:"Products/Catalog/Variants/Form",pageTitle:"Variant Form",isNotTabOrSideMenu:!0},{label:"Variant Inventory Log",routerLink:"Products/Catalog/Variants/Log",pageTitle:"Stock Log",isNotTabOrSideMenu:!0},{label:"Serial",routerLink:"Products/Catalog/Serial",pageTitle:"Serial"},{label:"Serial Form",routerLink:"Products/Catalog/Serial/Form",pageTitle:"Serial Form",isNotTabOrSideMenu:!0},{label:"Serial Import",routerLink:"Products/Catalog/Serial/Import",pageTitle:"Serial Import",isNotTabOrSideMenu:!0}]},rt={headerTitle:"Price Editor",menu:[{label:"Custom Outlet Price",routerLink:"Products/Price_Editor/Custom_Outlet_Price",pageTitle:"Custom Outlet Price"}]},ot={headerTitle:"Add-Ons",menu:[{label:"Variant History",routerLink:"Products/Add-Ons/Variant_History",pageTitle:"Variant Update History"}]},it={headerTitle:"Setup",menu:[{label:"Brand",routerLink:"Products/Setup/Brand",pageTitle:"Brand"},{label:"Brand Form",routerLink:"Products/Setup/Brand/Brand_Form",pageTitle:"Brand Form",isNotTabOrSideMenu:!0},{label:"Measurement",routerLink:"Products/Setup/Measurement",pageTitle:"Measurement List"},{label:"Measurement Form",routerLink:"Products/Setup/Measurement/Form",pageTitle:"Measurement Form",isNotTabOrSideMenu:!0},{label:"Tags",routerLink:"Products/Setup/Tags",pageTitle:"Tags"},{label:"Tags Form",routerLink:"Products/Setup/Tags/Tags_Form",pageTitle:"Tags Form",isNotTabOrSideMenu:!0},{label:"UOM",routerLink:"Products/Setup/UOM",pageTitle:"UOM List"},{label:"UOM Form",routerLink:"Products/Setup/UOM/Form",pageTitle:"UOM Form",isNotTabOrSideMenu:!0},{label:"Storage Location",routerLink:"Products/Setup/Storages",pageTitle:"Storage Location Option Tree"},{label:"New Storage",routerLink:"Products/Setup/Storages/Form",pageTitle:"Storage Location",isNotTabOrSideMenu:!0}]},me=[tt,rt,ot,it];var at={headerTitle:"Main",menu:[{label:"Promotion Event",routerLink:"Promotion/Main/Event",pageTitle:"Promotion Event"},{label:"Info",routerLink:"Promotion/Main/Event/Info",pageTitle:"Info",isNotTabOrSideMenu:!0},{label:"Promotion Event Form",routerLink:"Promotion/Main/Event/Form",pageTitle:"Promotion Event Form",isNotTabOrSideMenu:!0},{label:"Promotion Coupon",routerLink:"Promotion/Main/Coupon",pageTitle:"Promotion Coupon"},{label:"Info",routerLink:"Promotion/Main/Coupon/Info",pageTitle:"Info",isNotTabOrSideMenu:!0},{label:"Generate Coupon",routerLink:"Promotion/Main/Coupon/Form",pageTitle:"Generate Coupon",isNotTabOrSideMenu:!0},{label:"Pricebook",routerLink:"Promotion/Main/Pricebook",pageTitle:"Pricebook"},{label:"Pricebook Info",routerLink:"Promotion/Main/Pricebook/Info",pageTitle:"Pricebook Info",isNotTabOrSideMenu:!0},{label:"Pricebook Form",routerLink:"Promotion/Main/Pricebook/Form",pageTitle:"Pricebook Form",isNotTabOrSideMenu:!0}]},Te=[at];var nt={headerTitle:"Payment",menu:[{label:"Payment",routerLink:"Setup/Payment/Payment",pageTitle:"Payment Method List"},{label:"Payment Method Form",routerLink:"Setup/Payment/Payment/Form",pageTitle:"Payment Method Form",isNotTabOrSideMenu:!0},{label:"Tax",routerLink:"Setup/Payment/Tax",pageTitle:"Tax Type(S)"},{label:"Tax Form",routerLink:"Setup/Payment/Tax/Form",pageTitle:"Tax Type Form",isNotTabOrSideMenu:!0},{label:"Currency",routerLink:"Setup/Payment/Currency",pageTitle:"Currency List"},{label:"Currency Form",routerLink:"Setup/Payment/Currency/Form",pageTitle:"Currency Form",isNotTabOrSideMenu:!0},{label:"Bank Note",routerLink:"Setup/Payment/Bank_Note",pageTitle:"Bank Note List"},{label:"Bank Note Form",routerLink:"Setup/Payment/Bank_Note/Form",pageTitle:"Bank Note Form",isNotTabOrSideMenu:!0},{label:"Invoice Number",routerLink:"Setup/Payment/Invoice_Number",pageTitle:"Invoice Number List"}]},lt={headerTitle:"Tag",menu:[{label:"Sales Order",routerLink:"Setup/Tag/Sales_Order",pageTitle:"Sales Order Tag(S)"},{label:"Sales Order Tag Form",routerLink:"Setup/Tag/Sales_Order/Form",pageTitle:"Sales Order Tag Form",isNotTabOrSideMenu:!0},{label:"Purchase Order",routerLink:"Setup/Tag/Purchase_Order",pageTitle:"Purchase Order Tag(S)"},{label:"Adjustment",routerLink:"Setup/Tag/Adjustment",pageTitle:"Adjustment Tag(S)"},{label:"Adjustment Tag Form",routerLink:"Setup/Tag/Adjustment/Form",pageTitle:"Adjustment Tag Form",isNotTabOrSideMenu:!0},{label:"Purchase Order Tag Form",routerLink:"Setup/Tag/Purchase_Order/Form",pageTitle:"Purchase Order Tag Form",isNotTabOrSideMenu:!0},{label:"Transfer Order",routerLink:"Setup/Tag/Transfer_Order",pageTitle:"Transfer Order Tag(S)"},{label:"Transfer Order Tag Form",routerLink:"Setup/Tag/Transfer_Order/Form",pageTitle:"Transfer Order Tag Form",isNotTabOrSideMenu:!0},{label:"Write Off Option",routerLink:"Setup/Tag/Write_Off_Option",pageTitle:"Write Off Option"},{label:"Write Off Option Form",routerLink:"Setup/Tag/Write_Off_Option/Form",pageTitle:"Write Off Option Form",isNotTabOrSideMenu:!0},{label:"Expense Option",routerLink:"Setup/Tag/Expense_Option",pageTitle:"Expense Option"},{label:"Expense Option Form",routerLink:"Setup/Tag/Expense_Option/Form",pageTitle:"Expense Option Form",isNotTabOrSideMenu:!0},{label:"PO Notes",routerLink:"Setup/Tag/PO_Notes",pageTitle:"PO Notes"},{label:"PO Notes Form",routerLink:"Setup/Tag/PO_Notes/Form",pageTitle:"PO Notes Form",isNotTabOrSideMenu:!0},{label:"Payment Method",routerLink:"Setup/Tag/Payment_Method",pageTitle:"Payment Method Tag"},{label:"Payment Method Form",routerLink:"Setup/Tag/Payment_Method/Form",pageTitle:"Payment Method Form",isNotTabOrSideMenu:!0},{label:"Logistics Service",routerLink:"Setup/Tag/Logistics_Service",pageTitle:"Logistics Service"},{label:"Logistics Service Form",routerLink:"Setup/Tag/Logistics_Service/Form",pageTitle:"Logistics Service Form",isNotTabOrSideMenu:!0},{label:"Logistics Service Info",routerLink:"Setup/Tag/Logistics_Service/Info",pageTitle:"Logistics Service Info",isNotTabOrSideMenu:!0}]},ut={headerTitle:"Configuration",menu:[{label:"Application",routerLink:"Setup/Configuration/Application",pageTitle:"Application Configuration"},{label:"Module",routerLink:"Setup/Configuration/Module",pageTitle:"Module Configuration"},{label:"Printing",routerLink:"Setup/Configuration/Printing",pageTitle:"Printing Configuration"},{label:"AddOns",routerLink:"Setup/Configuration/AddOns",pageTitle:"AddOns Configuration"},{label:"Mail",routerLink:"Setup/Configuration/Mail",pageTitle:"Mail Configuration"},{label:"Payment",routerLink:"Setup/Configuration/Payment",pageTitle:"Payment Configuration"},{label:"Generator",routerLink:"Setup/Configuration/Generator",pageTitle:"Code Generator"},{label:"Sensitive Field",routerLink:"Setup/Configuration/Sensitive_Field",pageTitle:"Sensitive Field"},{label:"Whatsapp",routerLink:"Setup/Configuration/WhatsApp",pageTitle:"WhatsApp"},{label:"AI",routerLink:"Setup/Configuration/AI",pageTitle:"DealPOS AI Configuration"}]},st={headerTitle:"Restriction",menu:[{label:"IP Restriction",routerLink:"Setup/Restriction/IP",pageTitle:"IP Restriction"},{label:"Time Restriction",routerLink:"Setup/Restriction/Time",pageTitle:"Time Restriction"},{label:"Geo Restriction",routerLink:"Setup/Restriction/Geo",pageTitle:"Geo Restriction"}]},pt={headerTitle:"Integration",menu:[{label:"Apps",routerLink:"Setup/Integration/Apps",pageTitle:"Apps"}]},dt={headerTitle:"Data",menu:[{label:"Format Data",routerLink:"Setup/Data/Format_Data",pageTitle:"Format Data"}]},be=[nt,lt,ut,st,dt,pt];var ct={headerTitle:"Main",menu:[{label:"My Shift",routerLink:"Shift/Main/My_Shift",pageTitle:"My Shift"},{label:"Active Shift",routerLink:"Shift/Main/Active_Shift",pageTitle:"Active Shift"},{label:"Previous Shift",routerLink:"Shift/Main/Previous_Shift",pageTitle:"Previous Shift"},{label:"Shift Expense",routerLink:"Shift/Main/Expense",pageTitle:"Shift Expense"},{label:"Register Shift Form",routerLink:"Shift/Main/Previous_Shift/Register_Shift_Form",pageTitle:"Register Shift Form",isNotTabOrSideMenu:!0},{label:"Shift",routerLink:"Shift/Main/Previous_Shift/Register_Shift_Detail",pageTitle:"Register Shift Detail",isNotTabOrSideMenu:!0}]},gt={headerTitle:"Recycle Bin",menu:[{label:"Shift",routerLink:"Shift/Recycle_Bin/Voided_Shift",pageTitle:"Voided Shift"}]},Se=[ct,gt];var mt={headerTitle:"User",menu:[{label:"Users",routerLink:"Users/User/Users",pageTitle:"User List"},{label:"New User Form",routerLink:"Users/User/Users/Form",pageTitle:"New User Form",isNotTabOrSideMenu:!0},{label:"User Info",routerLink:"Users/User/Users/Info",pageTitle:"User Info",isNotTabOrSideMenu:!0},{label:"Groups",routerLink:"Users/User/Groups",pageTitle:"Group List"},{label:"Group Info",routerLink:"Users/User/Groups/Info",pageTitle:"Group Info",isNotTabOrSideMenu:!0},{label:"New Group Form",routerLink:"Users/User/Groups/Form",pageTitle:"New Group Form",isNotTabOrSideMenu:!0},{label:"Roles",routerLink:"Users/User/Roles",pageTitle:"Role List"},{label:"Role Form",routerLink:"Users/User/Roles/Form",pageTitle:"Role Form",isNotTabOrSideMenu:!0},{label:"Role Info",routerLink:"Users/User/Roles/Info",pageTitle:"Role Info",isNotTabOrSideMenu:!0}]},Tt={headerTitle:"History",menu:[{label:"User Update History",routerLink:"Users/History/User_Update_History",pageTitle:"User Update History"},{label:"Login History",routerLink:"Users/History/Login_History",pageTitle:"Login History List"}]},ye=[mt,Tt];var bt={headerTitle:"Orders",menu:[{label:"Customer Invoice",routerLink:"Orders/Orders/Customer_Invoice",pageTitle:"Customer Invoice",role:P.orders.Invoice},{label:"Customer Invoice",routerLink:"Orders/Orders/Customer_Invoice/Info",pageTitle:"Customer Invoice Info",isNotTabOrSideMenu:!0},{label:"Import Order",routerLink:"Orders/Orders/Customer_Invoice/Import",pageTitle:"Import Order",isNotTabOrSideMenu:!0},{label:"Import Order",routerLink:"Orders/Orders/Customer_Invoice/Import/V2",pageTitle:"Import Order",isNotTabOrSideMenu:!0},{label:"Import Payment Note",routerLink:"Orders/Orders/Customer_Invoice/Import_Payment_Note",pageTitle:"Import Payment Note",isNotTabOrSideMenu:!0},{label:"Supplier Bill",routerLink:"Orders/Orders/Supplier_Bill",pageTitle:"Supplier Bill",role:P.orders.SupplierBill},{label:"Supplier Bill Info",routerLink:"Orders/Orders/Supplier_Bill/Info",pageTitle:"Supplier Bill Info",isNotTabOrSideMenu:!0},{label:"Summary Delivery",routerLink:"Orders/Orders/Supplier_Bill/Summary",pageTitle:"Summary Delivery",isNotTabOrSideMenu:!0},{label:"Import Purchase Order",routerLink:"Orders/Orders/Supplier_Bill/Import",pageTitle:"Import Purchase Order",isNotTabOrSideMenu:!0},{label:"Estimate",routerLink:"Orders/Orders/Estimate",pageTitle:"Estimate",role:P.estimate.Create},{label:"Estimate Info",routerLink:"Orders/Orders/Estimate/Info",pageTitle:"Estimate Info",isNotTabOrSideMenu:!0,role:P.estimate.Create},{label:"Import Estimate",routerLink:"Orders/Orders/Estimate/Import",pageTitle:"Import Estimate",isNotTabOrSideMenu:!0,role:P.estimate.Create},{label:"Sales Return",routerLink:"Orders/Orders/Sales_Return",pageTitle:"Sales Return"},{label:"Sales Return Info",routerLink:"Orders/Orders/Sales_Return/Info",pageTitle:"Sales Return Info",isNotTabOrSideMenu:!0}]},St={headerTitle:"Order",menu:[{label:"Sales Order",routerLink:"Orders/Order/Sales_Order",pageTitle:"Sales Order"},{label:"Sales Order Info",routerLink:"Orders/Order/Sales_Order/Info",pageTitle:"Sales Order Info",isNotTabOrSideMenu:!0},{label:"Purchase Order",routerLink:"Orders/Order/Purchase_Order",pageTitle:"Purchase Order"},{label:"Purchase Order Info",routerLink:"Orders/Order/Purchase_Order/Info",pageTitle:"Purchase Order Info",isNotTabOrSideMenu:!0},{label:"Parked Order",routerLink:"Orders/Order/Parked_Order",pageTitle:"Parked Order"},{label:"Parked Order Info",routerLink:"Orders/Order/Sales_Order/Info",pageTitle:"Parked Order Info",isNotTabOrSideMenu:!0},{label:"Client Number",routerLink:"Orders/Order/Client_Number",pageTitle:"Client Number"}]},yt={headerTitle:"Search",menu:[{label:"Search Serial",routerLink:"Orders/Search/Serial",pageTitle:"Search Serial"},{label:"Search Note",routerLink:"Orders/Search/Note",pageTitle:"Search Note"}]},Pt={headerTitle:"Advanced",menu:[{label:"Fulfillment Schedule",routerLink:"Orders/Advanced/Fulfillment_Schedule",pageTitle:"Fulfillment Schedule"},{label:"8cm Bulk Invoice",routerLink:"Orders/Advanced/Print/Bulk_Invoice",pageTitle:"8cm Bulk Invoice",role:"OrdRpr"},{label:"A4 Bulk Invoice",routerLink:"Orders/Advanced/Print/Bulk_Invoice_A4",pageTitle:"A4 Bulk Invoice",role:"OrdRpr"}]},kt={headerTitle:"Log History",menu:[{label:"Invoice",routerLink:"Orders/Log_History/Update/Invoice_Update",pageTitle:"Invoice Update History"},{label:"Bill",routerLink:"Orders/Log_History/Update/SupplierInvoice_Update",pageTitle:"Bill Update History"}]},Lt={headerTitle:"Recycle Bin",menu:[{label:"Invoice",routerLink:"Orders/Recycle_Bin/Invoice",pageTitle:"Voided Invoice"},{label:"Bill",routerLink:"Orders/Recycle_Bin/Supplier_Bill",pageTitle:"Voided Bill"},{label:"Sales Order",routerLink:"Orders/Recycle_Bin/Sales_Order",pageTitle:"Voided Sales Order"}]},Pe=[bt,St,yt,kt,Pt,Lt];var _t={headerTitle:"Debt",menu:[{label:"Accounts Receiveable",routerLink:"Debt/Debt/Accounts_Receiveable",pageTitle:"Accounts Receiveable"},{label:"Accounts Receiveable Detail",routerLink:"Debt/Debt/Accounts_Receiveable/Accounts_Receiveable_Detail",pageTitle:"Accounts Receiveable Detail",isNotTabOrSideMenu:!0},{label:"Accounts Payable",routerLink:"Debt/Debt/Accounts_Payable",pageTitle:"Accounts Payable"},{label:"Accounts Payable Detail",routerLink:"Debt/Debt/Accounts_Payable/Accounts_Payable_Detail",pageTitle:"Accounts Payable Detail",isNotTabOrSideMenu:!0},{label:"Join Invoice",routerLink:"Debt/Debt/Join_Invoice",pageTitle:"Join Invoice"},{label:"New Join Invoice",routerLink:"Debt/Debt/Join_Invoice/Form",pageTitle:"New Join Invoice",isNotTabOrSideMenu:!0},{label:"AR Collection",routerLink:"Debt/Debt/Join_Invoice/New_Join_Invoice/Info",pageTitle:"Join Invoice Info",isNotTabOrSideMenu:!0},{label:"Join Bill",routerLink:"Debt/Debt/Join_Bill",pageTitle:"Join Bill"},{label:"New Join Bill",routerLink:"Debt/Debt/Join_Bill/New_Join_Bill",pageTitle:"New Join Bill",isNotTabOrSideMenu:!0},{label:"AP Collection",routerLink:"Debt/Debt/Join_Bill/New_Join_Bill/Info",pageTitle:"Join Bill Info",isNotTabOrSideMenu:!0}]},Ot={headerTitle:"Report",menu:[{label:"Invoice Aging",routerLink:"Debt/Report/Invoice_Aging",pageTitle:"Customer Invoice Aging"},{label:"Bill Aging",routerLink:"Debt/Report/Bill_Aging",pageTitle:"Supplier Bill Aging"},{label:"AR History",routerLink:"Debt/Report/AR_History",pageTitle:"Account Receiveable History"}]},ft={headerTitle:"Setup",menu:[{label:"Payment Discount Illustration Setup",routerLink:"Debt/Setup/Payment_Discount_Illustration_Setup",pageTitle:"Payment Discount Illustration Setup"},{label:"Payment Discount Illustration Setup Form",routerLink:"Debt/Setup/Payment_Discount_Illustration_Setup/Form",pageTitle:"Payment Discount Illustration Setup Form",isNotTabOrSideMenu:!0},{label:"Due Setup",routerLink:"Debt/Setup/Due_Setup",pageTitle:"Due Setup"},{label:"Payment Discount Illustration",routerLink:"Debt/Setup/Payment_Discount_Illustration",pageTitle:"A/R Statement"}]},ke=[_t,Ot,ft];var Mt={headerTitle:"Quantity",menu:[{label:"Valuation",routerLink:"Inventory/Quantity/Valuation",pageTitle:"Inventory By Category"},{label:"Product By Outlet",routerLink:"Inventory/Quantity/Product_By_Outlet",pageTitle:"Product By Outlet"},{label:"Product By Outlet Group",routerLink:"Inventory/Quantity/Product_By_Outlet/Product_By_Outlet_Group",pageTitle:"Product By Outlet Group",isNotTabOrSideMenu:!0},{label:"Category By Outlet",routerLink:"Inventory/Quantity/Product_By_Outlet/Category_By_Outlet",pageTitle:"Category By Outlet",isNotTabOrSideMenu:!0},{label:"Outlet",routerLink:"Inventory/Quantity/Outlet",pageTitle:"Inventory Summary By Outlet"},{label:"Brand",routerLink:"Inventory/Quantity/Brand",pageTitle:"Inventory Summary By Brand"},{label:"Timeline",routerLink:"Inventory/Quantity/Timeline",pageTitle:"Inventory Timeline"},{label:"Detailed Inventory Traffic Log",routerLink:"Inventory/Quantity/Timeline/Detailed_Inventory_Traffic_Log",pageTitle:"Detailed Inventory Traffic Log",isNotTabOrSideMenu:!0},{label:"Allocated",routerLink:"Inventory/Quantity/Allocated_Inventory",pageTitle:"Allocated Inventory"},{label:"Awaiting",routerLink:"Inventory/Quantity/Awaiting_Inventory",pageTitle:"Awaiting Inventory"},{label:"Low",routerLink:"Inventory/Quantity/Low_On_Stock",pageTitle:"Low Stock"},{label:"Over",routerLink:"Inventory/Quantity/Inventory_Over_Max",pageTitle:"Over Stock"},{label:"Highest",routerLink:"Inventory/Quantity/Highest_Quantity",pageTitle:"Inventory Count Rank"},{label:"In Transit",routerLink:"Inventory/Quantity/In_Transit",pageTitle:"In Transit Inventory"},{label:"Days Of",routerLink:"Inventory/Quantity/Days_Of_Inventory",pageTitle:"Days of Inventory"},{label:"Days Of",routerLink:"Inventory/Quantity/Inventory_To_Zero",pageTitle:"Days of Inventory",isNotTabOrSideMenu:!0},{label:"Dead Stock",routerLink:"Inventory/Quantity/Dead_Stock",pageTitle:"Dead Stock of Inventory"}]},ht={headerTitle:"Inventory Traffic",menu:[{label:"Inventory Order By Composite",routerLink:"Inventory/Inventory_Traffic/Inventory_Order_By_Composite",pageTitle:"Inventory Order By Composite"},{label:"Category Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Category_Inventory_Traffic",pageTitle:"Category Inventory Traffic"},{label:"Outlet Inventory Traffic",routerLink:"Inventory/Inventory_Traffic/Outlet_Inventory_Traffic",pageTitle:"Outlet Inventory Traffic"},{label:"Outlet Inventory Traffic Summary",routerLink:"Inventory/Inventory_Traffic/Outlet_Inventory_Traffic/Outlet_Inventory_Traffic_Summary",pageTitle:"Outlet Inventory Traffic Summary",isNotTabOrSideMenu:!0}]},Rt={headerTitle:"Advanced",menu:[{label:"Serial Inventory",routerLink:"Inventory/Advanced/Serial_Inventory",pageTitle:"Serial Inventory"},{label:"Depleting Inventory",routerLink:"Inventory/Advanced/Depleting_Inventory",pageTitle:"Depleting Inventory"},{label:"Negative",routerLink:"Inventory/Advanced/Negative",pageTitle:"Negative Inventory"},{label:"Storage Location",routerLink:"Inventory/Advanced/Storage_Location",pageTitle:"Storage Inventory"}]},Le=[Mt,ht,Rt];var vt={headerTitle:"Archive",menu:[{label:"Transfer Order",routerLink:"Logistics/Archive/Transfer_Order",pageTitle:"Transfer Order"},{label:"New Transfer Order",routerLink:"Logistics/Archive/Transfer_Order/Form",pageTitle:"New Transfer Order",isNotTabOrSideMenu:!0},{label:"Transfer Order",routerLink:"Logistics/Archive/Transfer_Order/Info",pageTitle:"Transfer Order Info",isNotTabOrSideMenu:!0},{label:"Outbound Logistics",routerLink:"Logistics/Archive/Outbound_Logistics",pageTitle:"Outbound Logistics"},{label:"Outbound Logistics Form",routerLink:"Logistics/Archive/Outbound_Logistics/Form",pageTitle:"Outbound Logistics Form",isNotTabOrSideMenu:!0},{label:"Outbound Logistics",routerLink:"Logistics/Archive/Outbound_Logistics/Info",pageTitle:"Outbound Logistics Info",isNotTabOrSideMenu:!0},{label:"Inbound Logistics",routerLink:"Logistics/Archive/Inbound_Logistics",pageTitle:"Inbound Logistics"},{label:"Inbound Logistics",routerLink:"Logistics/Archive/Inbound_Logistics/Info",pageTitle:"Inbound Logistics Info",isNotTabOrSideMenu:!0},{label:"Inbound Logistics Form",routerLink:"Logistics/Archive/Inbound_Logistics/Form",pageTitle:"Inbound Logistics Form",isNotTabOrSideMenu:!0}]},Ct={headerTitle:"Report",children:[{headerTitle:"Outbound",menu:[{label:"Product",routerLink:"Logistics/Report/Outbound/Product",pageTitle:"Out Stock Report"},{label:"Detail",routerLink:"Logistics/Report/Outbound/Detail",pageTitle:"Outbound Goods By Logistics"},{label:"Logistics Service",routerLink:"Logistics/Report/Outbound/Logistics_Service",pageTitle:"Logistics Service Report"},{label:"Logistics Service Detail",routerLink:"Logistics/Report/Outbound/Logistics_Service/Detail",pageTitle:"Logistics Service Detail",isNotTabOrSideMenu:!0}]},{headerTitle:"Inbound",menu:[{label:"Product",routerLink:"Logistics/Report/Inbound/Product",pageTitle:"In Stock Report"},{label:"Detail",routerLink:"Logistics/Report/Inbound/Detail",pageTitle:"Inbound Goods By Logistics"}]},{headerTitle:"Transfer",menu:[{label:"Product",routerLink:"Logistics/Report/Transfer/Product",pageTitle:"Transfer Order Report By Product"},{label:"Transfer",routerLink:"Logistics/Report/Transfer/Transfer",pageTitle:"Transfer Order Report"}]}]},It={headerTitle:"Setup",menu:[{label:"Courier",routerLink:"Logistics/Setup/Courier",pageTitle:"Courier"},{label:"Courier Form",routerLink:"Logistics/Setup/Courier/Form",pageTitle:"Courier Form",isNotTabOrSideMenu:!0}]},_e=[vt,Ct,It];var Nt={headerTitle:"Dashboard",menu:[{label:"Waiting Customer",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer",pageTitle:"Waiting Customer"},{label:"My Incentive",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer/My_Incentive",pageTitle:"My Incentive",isNotTabOrSideMenu:!0},{label:"Prepaid Form",routerLink:"Prepaid_Package/Dashboard/Waiting_Customer/Prepaid_Form",pageTitle:"Prepaid Form",isNotTabOrSideMenu:!0},{label:"History",routerLink:"Prepaid_Package/Dashboard/Prepaid_History",pageTitle:"Prepaid Archive"},{label:"Prepaid Form",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Info",pageTitle:"Prepaid Info",isNotTabOrSideMenu:!0},{label:"New Prepaid Registration",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Prepaid_Registration",pageTitle:"New Prepaid Registration",isNotTabOrSideMenu:!0},{label:"Prepaid History",routerLink:"Prepaid_Package/Dashboard/Prepaid_History/Prepaid",pageTitle:"Prepaid History",isNotTabOrSideMenu:!0},{label:"Package",routerLink:"Prepaid_Package/Dashboard/Prepaid_Package",pageTitle:"Prepaid Package"},{label:"History Point",routerLink:"Prepaid_Package/Dashboard/Prepaid_Package/History",pageTitle:"History Point",isNotTabOrSideMenu:!0},{label:"Sharing Form",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Form",pageTitle:"Sharing Form",isNotTabOrSideMenu:!0},{label:"Last Visit",routerLink:"Prepaid_Package/Dashboard/Last_Visit",pageTitle:"Customer Visit Analytics"},{label:"Package Forecast",routerLink:"Prepaid_Package/Dashboard/Package_Forecast",pageTitle:"Package Forecast"}]},Dt={headerTitle:"Package Sharing",menu:[{label:"Sharing",routerLink:"Prepaid_Package/Package_Sharing/Sharing",pageTitle:"Sharing List"},{label:"Sharing List",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Info",pageTitle:"Sharing List",isNotTabOrSideMenu:!0},{label:"Sharing Form",routerLink:"Prepaid_Package/Package_Sharing/Sharing/Form",pageTitle:"Sharing Form",isNotTabOrSideMenu:!0}]},Ft={headerTitle:"Report",children:[{headerTitle:"History",menu:[{label:"My History",routerLink:"Prepaid_Package/Report/History/My_Prepaid_History",pageTitle:"Doctor Prepaid History"}]},{headerTitle:"Accounting",menu:[{label:"Services Rendered",routerLink:"Prepaid_Package/Report/Accounting/Services_Rendered",pageTitle:"Services Rendered"},{label:"Services Rendered",routerLink:"Prepaid_Package/Report/Accounting/Services_Rendered/Services_Rendered",pageTitle:"Services Rendered",isNotTabOrSideMenu:!0},{label:"Deferred Revenue",routerLink:"Prepaid_Package/Report/Accounting/Deferred_Revenue",pageTitle:"Deferred Revenue"},{label:"Monthly Statistic",routerLink:"Prepaid_Package/Report/Accounting/Monthly_Statistic",pageTitle:"Monthly Statistic"}]},{headerTitle:"Prepaid",menu:[{label:"Daily Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Daily_Statistic",pageTitle:"Daily Statistic"},{label:"Doctor Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Doctor_Statistic",pageTitle:"Doctor Statistic"},{label:"Outlet Statistic",routerLink:"Prepaid_Package/Report/Prepaid/Outlet_Statistic",pageTitle:"Outlet Statistic"},{label:"Peak Hour",routerLink:"Prepaid_Package/Report/Prepaid/Peak_Hour",pageTitle:"Peak Hour"},{label:"Type Rank",routerLink:"Prepaid_Package/Report/Prepaid/Prepaid_Type_Rank",pageTitle:"Prepaid Type Rank"}]}]},At={headerTitle:"Setup",menu:[{label:"Administrator",routerLink:"Prepaid_Package/Setup/Prepaid_Administrator",pageTitle:"Prepaid Administrator"},{label:"Treatment Administrator Form",routerLink:"Prepaid_Package/Setup/Prepaid_Administrator/Form",pageTitle:"Treatment Administrator Form",isNotTabOrSideMenu:!0},{label:"Type",routerLink:"Prepaid_Package/Setup/Prepaid_Type",pageTitle:"Prepaid Type"},{label:"Prepaid Type Form",routerLink:"Prepaid_Package/Setup/Prepaid_Type/form",pageTitle:"Prepaid Type Form",isNotTabOrSideMenu:!0},{label:"Prepaid Type Info",routerLink:"Prepaid_Package/Setup/Prepaid_Type/Info",pageTitle:"Prepaid Type Info",isNotTabOrSideMenu:!0},{label:"Area",routerLink:"Prepaid_Package/Setup/Prepaid_Area",pageTitle:"Prepaid Area"},{label:"Prepaid Area Form",routerLink:"Prepaid_Package/Setup/Prepaid_Area/Form",pageTitle:"Prepaid Area Form",isNotTabOrSideMenu:!0}]},Oe=[Nt,Dt,Ft,At];var Bt={headerTitle:"Main",menu:[{label:"My Profile",routerLink:"Profile/Main/My_Profile",pageTitle:"My Profile",isNotTabOrSideMenu:!0},{label:"Choose Your Plan",routerLink:"Profile/Main/My_Subscription/Choose_your_plan",pageTitle:"Choose Your Plan",isNotTabOrSideMenu:!0},{label:"My Sales",routerLink:"Profile/Main/My_Sales",pageTitle:"My Sales",isNotTabOrSideMenu:!0}]},xt={headerTitle:"Notification",menu:[{label:"Push Notification",routerLink:"Profile/Notification/Push",pageTitle:"Push Notification"},{label:"Async Notification",routerLink:"Profile/Notification/Async",pageTitle:"Async Notification"}]},fe=[Bt,xt];var Ut={headerTitle:"Webhook",menu:[{label:"Webhook",routerLink:"Developer/Webhook/URL",pageTitle:"Webhook URL"},{label:"Logs",routerLink:"Developer/Webhook/Logs",pageTitle:"Webhook Logs"},{label:"Logs Detail",routerLink:"Developer/Webhook/Logs/Detail",pageTitle:"Webhook Logs Detail",isNotTabOrSideMenu:!0},{label:"Job Logs",routerLink:"Developer/Webhook/Job_Logs",pageTitle:"Webhook Job Logs (Async)"},{label:"Job Logs Detail",routerLink:"Developer/Webhook/Job_Logs/Detail",pageTitle:"Webhook Job Logs Detail",isNotTabOrSideMenu:!0},{label:"Configuration",routerLink:"Developer/Webhook/Configuration",pageTitle:"Webhook Configuration"}]},Gt={headerTitle:"API",menu:[{label:"Configuration",routerLink:"Developer/API/Configuration",pageTitle:"API Configuration"},{label:"Usage Activities",routerLink:"Developer/API/Usage_Activities",pageTitle:"Usage Activities"},{label:"Report",routerLink:"Developer/API/Report",pageTitle:"Report "}]},Ht={headerTitle:"Developer",menu:[{label:"Developer Configuration",routerLink:"Developer/Developer/Developer_Configuration",pageTitle:"Developer Configuration"},{label:"Appconfig Editor",routerLink:"Developer/Developer/Appconfig_Editor",pageTitle:"Appconfig Editor"},{label:"Exception Log",routerLink:"Developer/Developer/Exception_Log",pageTitle:"Exception Log"},{label:"Clear Log",routerLink:"Developer/Developer/Maintenance",pageTitle:"Clear Log"},{label:"Exception Log Detail",routerLink:"Developer/Developer/Exception_Log/Detail",pageTitle:"Exception Log Detail",isNotTabOrSideMenu:!0}]},Me=[Ut,Gt,Ht];var D=class r{role=T(C);purchasesReportSubMenu={headerTitle:"Purchases Report",menu:[{label:"Product",routerLink:"Reports/Purchases_Report/Product",pageTitle:"Product Bought"},{label:"Detail",routerLink:"Reports/Purchases_Report/Detail",pageTitle:"Purchase Transaction"},{label:"Summary",routerLink:"Reports/Purchases_Report/Summary",pageTitle:"Summary"},{label:"Supplier",routerLink:"Reports/Purchases_Report/Supplier",pageTitle:"Top Supplier"},{label:"Daily",routerLink:"Reports/Purchases_Report/Daily",pageTitle:"Daily Purchases"},{label:"Monthly Purchases",routerLink:"Reports/Purchases_Report/Daily/Monthly",pageTitle:"Monthly",isNotTabOrSideMenu:!0},{label:"Outlet",routerLink:"Reports/Purchases_Report/Outlet",pageTitle:"Outlet Performance"},{label:"Outlet Group Performance",routerLink:"Reports/Purchases_Report/Outlet/Outlet_Group_Performance",pageTitle:"Outlet Group Performance",isNotTabOrSideMenu:!0},{label:"Outlet Monthly Performance",routerLink:"Reports/Purchases_Report/Outlet/Outlet_Monthly_Perfomance",pageTitle:"Outlet Monthly Performance",isNotTabOrSideMenu:!0},{label:"History",routerLink:"Reports/Purchases_Report/History",pageTitle:"Purchase History"},{label:"Volume",routerLink:"Reports/Purchases_Report/Volume",pageTitle:"Purchase Volume"},{label:"Sales",routerLink:"Reports/Purchases_Report/Sales",pageTitle:"Purchase Sales Report"},{label:"Tax",routerLink:"Reports/Purchases_Report/Tax",pageTitle:"Purchase Tax Report"}]};salesReportSubMenu={headerTitle:"Sales Report",children:[{headerTitle:"Standard",menu:[{label:"Products",routerLink:"Reports/Sales_Report/Standard/Products_Sold",pageTitle:"Sales By Product"},{label:"Products Tags",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Products_Tags",pageTitle:"Products Tags",isNotTabOrSideMenu:!0},{label:"Top Supplier",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Top_Suppliers",pageTitle:"Top Supplier",isNotTabOrSideMenu:!0},{label:"Invoice Items",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Invoice_Items",pageTitle:"Invoice Items",isNotTabOrSideMenu:!0},{label:"Sales Product by Outlet",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales_by_Outlet",pageTitle:"Sales Product by Outlet",isNotTabOrSideMenu:!0},{label:"Sales By Product by",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales",pageTitle:"Sales By Product",isNotTabOrSideMenu:!0},{label:"Product Sales Vs Logistics",routerLink:"Reports/Sales_Report/Standard/Products_Sold/Product_Sales_Vs_Logistics",pageTitle:"Product Sales Vs Logistics",isNotTabOrSideMenu:!0},{label:"Category",routerLink:"Reports/Sales_Report/Standard/Category_Sold",pageTitle:"Category Sold",isNotTabOrSideMenu:!0},{label:"Category Chart",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category",pageTitle:"Category Chart",isNotTabOrSideMenu:!0},{label:"Category",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category_Sales_Tree",pageTitle:"Category Sales"},{label:"Category Sales By Outlet",routerLink:"Reports/Sales_Report/Standard/Category_Sold/Category_By_Outlet",pageTitle:"Category Sales By Outlet",isNotTabOrSideMenu:!0},{label:"Detail",routerLink:"Reports/Sales_Report/Standard/Detail",pageTitle:"Sales Transaction"},{label:"Summary",routerLink:"Reports/Sales_Report/Standard/Summary",pageTitle:"Sales Summary"},{label:"Customers",routerLink:"Reports/Sales_Report/Standard/Top_Customers",pageTitle:"Top Customers"},{label:"Sales By Customer Group",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Customer_Group",pageTitle:"Sales By Customer Group",isNotTabOrSideMenu:!0},{label:"Sales By Regional",routerLink:"Reports/Sales_Report/Standard/Top_Customers/City",pageTitle:"Sales By Regional",isNotTabOrSideMenu:!0},{label:"Top Customers By Age",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Top_Customers_By_Age",pageTitle:"Top Customers By Age",isNotTabOrSideMenu:!0},{label:"Top Customers By Gender",routerLink:"Reports/Sales_Report/Standard/Top_Customers/Top_Customers_By_Gender",pageTitle:"Top Customers By Gender",isNotTabOrSideMenu:!0},{label:"Last Purchase",routerLink:"Reports/Sales_Report/Standard/Top_Customers/By_Last_Purchase",pageTitle:"Last Purchase",isNotTabOrSideMenu:!0},{label:"Outlet",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance",pageTitle:"Outlet Performance"},{label:"Outlet Group Performance",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance/Outlet_Group_Performance",pageTitle:"Outlet Group Performance",isNotTabOrSideMenu:!0},{label:"Outlet Monthly Performance",routerLink:"Reports/Sales_Report/Standard/Compare/Outlet_Monthly_Perfomance",pageTitle:"Outlet Monthly Performance",isNotTabOrSideMenu:!0},{label:"Outlet Performance Chart",routerLink:"Reports/Sales_Report/Standard/Outlet_Performance/Outlet_Graphic",pageTitle:"Outlet Performance Chart",isNotTabOrSideMenu:!0},{label:"Compare",routerLink:"Reports/Sales_Report/Standard/Compare",pageTitle:"Sales Compare By Outlet"},{label:"Tag",routerLink:"Reports/Sales_Report/Standard/Sales_Order_Tag",pageTitle:"Group By Sales Order Tag"},{label:"Person",routerLink:"Reports/Sales_Report/Standard/Person",pageTitle:"Sales Person"},{label:"Sales Person Report By Outlet",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Outlet",pageTitle:"Outlet Commission Report",isNotTabOrSideMenu:!0},{label:"Employee Commission Report",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Report",pageTitle:"Person Commission Report",isNotTabOrSideMenu:!0},{label:"Employee Invoice Item Detail",routerLink:"Reports/Sales_Report/Standard/Person/Commission_Report/Commission_Report_Detail",pageTitle:"Person Commission Report",isNotTabOrSideMenu:!0},{label:"Sales Group",routerLink:"Reports/Sales_Report/Standard/Person/Sales_Group",pageTitle:"Sales Group Performance",isNotTabOrSideMenu:!0},{label:"Discount",routerLink:"Reports/Sales_Report/Standard/Discounted_Sales",pageTitle:"Discount"},{label:"Price",routerLink:"Reports/Sales_Report/Standard/Price_Analysis",pageTitle:"Price Analysis"},{label:"Brand",routerLink:"Reports/Sales_Report/Standard/Top_Brand",pageTitle:"Top Brand"},{label:"Top Brand Chart",routerLink:"Reports/Sales_Report/Standard/Top_Brand/Top_Brand_Chart",pageTitle:"Top Brand Chart",isNotTabOrSideMenu:!0},{label:"Brand Sales Analysis",routerLink:"Reports/Sales_Report/Standard/Top_Brand/Brand_Sales_Analysis",pageTitle:"Brand Sales Analysis",isNotTabOrSideMenu:!0},{label:"Peak",routerLink:"Reports/Sales_Report/Standard/Peak",pageTitle:"Peak Hour Chart"},{label:"Peak Hour Table",routerLink:"Reports/Sales_Report/Standard/Peak/Peak",pageTitle:"Peak Hour Table",isNotTabOrSideMenu:!0},{label:"Daily",routerLink:"Reports/Sales_Report/Standard/Daily",pageTitle:"Daily Sales Performance"},{label:"Daily Report",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Table",pageTitle:"Daily Report",isNotTabOrSideMenu:!0},{label:"Daily Quantity",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Quantity",pageTitle:"Daily Quantity",isNotTabOrSideMenu:!0},{label:"Monthly Sales Volume",routerLink:"Reports/Sales_Report/Standard/Daily/Daily_Quantity/Monthly",pageTitle:"Monthly Sales Volume",isNotTabOrSideMenu:!0},{label:"Monthly",routerLink:"Reports/Sales_Report/Standard/Monthly",pageTitle:"Monthly"},{label:"Monthly Report",routerLink:"Reports/Sales_Report/Standard/Monthly/Monthly_Table",pageTitle:"Monthly Report",isNotTabOrSideMenu:!0},{label:"Yearly",routerLink:"Reports/Sales_Report/Standard/Yearly",pageTitle:"Yearly"},{label:"Monthly Sales Comparison",routerLink:"Reports/Sales_Report/Standard/Yearly/Comparison",pageTitle:"Monthly Sales Comparison",isNotTabOrSideMenu:!0}]},{headerTitle:"Group",menu:[]},{headerTitle:"Advanced",menu:[{label:"Tax Report",routerLink:"Reports/Sales_Report/Advanced/Tax_Report",pageTitle:"Tax Report"},{label:"Tax Report",routerLink:"Reports/Sales_Report/Advanced/Tax_Report/By_Outlet",pageTitle:"Tax Report by Outlet",isNotTabOrSideMenu:!0},{label:"Product Life Cycle",routerLink:"Reports/Sales_Report/Advanced/Product_Life_Cycle",pageTitle:"Product Life Cycle Report"},{label:"Product Profit",routerLink:"Reports/Sales_Report/Advanced/Product_Profit",pageTitle:"Product Profit Report"},{label:"Exchanged Sales",routerLink:"Reports/Sales_Report/Advanced/Exchanged_Sales",pageTitle:"Exchanged Sales"},{label:"Variant Model",routerLink:"Reports/Sales_Report/Advanced/Variant_Model_Rank",pageTitle:"Sales Rank By Variant Model"},{label:"Visitor",routerLink:"Reports/Sales_Report/Advanced/Visitor",pageTitle:"Visitor List"}]}]};returnSubMenu={headerTitle:"Return",menu:[{label:"Sales Return",routerLink:"Reports/Return/Sales_Return",pageTitle:"Sales Return"},{label:"Purchase Return",routerLink:"Reports/Return/Purchase_Return",pageTitle:"Purchase Return"}]};reportMenu=[];constructor(){this.role.buy.Report?this.reportMenu=[this.purchasesReportSubMenu,this.salesReportSubMenu,this.returnSubMenu]:this.reportMenu=[this.salesReportSubMenu,this.returnSubMenu]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var F=class r{report=T(D);_menu=[];constructor(){this._menu.Products=me,this._menu.Shift=Se,this._menu.Payment=ge,this._menu.Promotion=Te,this._menu.Outlets=ce,this._menu.Users=ye,this._menu.Manufacture=de,this._menu.Fulfillment=pe,this._menu.Adjustment=ue,this._menu.Contacts=se,this._menu.Setup=be,this._menu.Orders=Pe,this._menu.Debt=ke,this._menu.Inventory=Le,this._menu.Logistics=_e,this._menu.Reports=this.report.reportMenu,this._menu.Prepaid_Package=Oe,this._menu.Profile=fe,this._menu.Developer=Me}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var A=class r{role=T(C);menuService=T(F);getFullRouteMenu(){let e=window.location.href;return e=e.split("menu/")[1]}getCurrentMainMenu(){try{return this.getFullRouteMenu().split("/")[0].split("?")?.[0]}catch(e){console.log(e)}}getCurrentSubMenu(){try{return this.getFullRouteMenu().split("/")[1].replace("_"," ")}catch(e){console.log(e)}}getCurrentSubTitleMenu(){try{return this.getFullRouteMenu().split("/")[2].replace("_"," ")}catch(e){console.log(e)}}getPageMenu(){let e=["Sell","Dashboard","Estimate","Buy"],t=this.getCurrentMainMenu();if(e.includes(t)){let b=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName+" POS | "+t,m=this.getFullRouteMenu()?.split("?")[0];return L({H:t,N:[],T:b,R:m,U:[]})}else{let i=this.getCurrentSubMenu(),l=this.getCurrentSubTitleMenu(),m=this.menuService._menu[t],d=m.filter(o=>o.headerTitle==i)[0];d.children!=null&&(d=d.children.filter(o=>o.headerTitle==l)[0]);let k=[];m.forEach(o=>{o.children==null?o.headerTitle!=i&&(k=k.concat(o)):k=k.concat(h(M({},o),{headerTitle:o.headerTitle,children:o.children.filter(n=>n.headerTitle!=l)}))});let Re=d.menu?.map(o=>({T:o.label,U:o.routerLink,isNotTabOrSideMenu:o.isNotTabOrSideMenu,role:o.role})).filter(o=>!o.isNotTabOrSideMenu).filter(o=>!o.role||this.role.isUserHasRole(o.role)),ve=k.map(o=>o.children==null?{T:o.headerTitle,SI:o.menu?.map(n=>({T:n.label,U:n.routerLink,isNotTabOrSideMenu:n.isNotTabOrSideMenu,role:n.role})).filter(n=>!n.isNotTabOrSideMenu).filter(n=>!n.role||this.role.isUserHasRole(n.role))}:{T:o.headerTitle,SI:o.children.map(J=>({T:J.headerTitle,SI:J.menu?.map(p=>({T:p.label,U:p.routerLink,isNotTabOrSideMenu:p.isNotTabOrSideMenu,role:p.role})).filter(p=>!p.isNotTabOrSideMenu).filter(p=>!p.role||this.role.isUserHasRole(p.role))}))}),B=this.getFullRouteMenu()?.includes("#")?this.getFullRouteMenu()?.split("#")[0]:this.getFullRouteMenu()?.split("?")[0],Ce=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName+" POS | ",x=d.menu?.filter(o=>o.routerLink==B)[0]?.pageTitle;d.children!=null&&(x=d.children.filter(o=>o.routerLink==B)[0]?.pageTitle);let Ie=Ce+x;return L({H:x,N:{TM:Re,SM:ve},T:Ie,R:B,U:[]})}}static \u0275fac=function(t){return new(t||r)};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};var he=class r{constructor(e,t,i,l){this.http=e;this.matDialog=t;this.title=i;this.clientRoute=l}menu$;setMenu$(){let e=re.changelog,t=this.getCurrentFormattedRoute();this.menu$=this.clientRoute.getPageMenu().pipe(R(i=>this.title.setTitle(i.T)),U(i=>te.IsNotEmpty(e.find(l=>l?.UrlPage===i.R))?h(M({},i),{U:e}):i),K(i=>{let l=L(i);if(i.U.length>0){localStorage.getItem("mapRouteOpenChangelogDialog")||localStorage.setItem("mapRouteOpenChangelogDialog",JSON.stringify([]));let b=JSON.parse(localStorage.getItem("mapRouteOpenChangelogDialog")),m=t.split("?")[0];b.includes(m)||(b.push(m),localStorage.setItem("mapRouteOpenChangelogDialog",JSON.stringify(b)),l=this.matDialog.open(I,{panelClass:"changelog-dialog",data:i.U}).afterOpened().pipe(U(()=>i)))}return l}),Q(()=>W))}getCurrentFormattedRoute(){try{let e=window.location.href;return e=e.split("menu/")[1],e=e.split(";")[0],e}catch(e){console.log(e)}}static \u0275fac=function(t){return new(t||r)(_(oe),_(ne),_(ee),_(A))};static \u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})};export{le as a,he as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as Ei,b as ki}from"./chunk-FOEYBSQT.js";import{a as Mi}from"./chunk-TX6G2LAN.js";import{b as Ui}from"./chunk-3A7KA4YN.js";import{a as Te}from"./chunk-2DNKBN6G.js";import{a as We}from"./chunk-MWWGZRMN.js";import{a as J,b as li}from"./chunk-WSZGVB3P.js";import{a as ii}from"./chunk-2OZMF5DL.js";import"./chunk-TCLYGBIP.js";import{a as gi}from"./chunk-CW27R4N3.js";import{a as Ie,b as Ti}from"./chunk-FE5LZK5I.js";import{b as Ii}from"./chunk-33XCA4ER.js";import"./chunk-VSMYP4AC.js";import"./chunk-IE5R6YWY.js";import{e as Di}from"./chunk-XW2QKXZF.js";import"./chunk-C43IYFVU.js";import{b as ni,o as ai}from"./chunk-EZCHVNC5.js";import{e as ri}from"./chunk-7DWKYGA4.js";import"./chunk-64PDX5ZX.js";import"./chunk-CJO25BBP.js";import{a as xi,b as Ci}from"./chunk-AJMKP7YZ.js";import{b as Si}from"./chunk-M5ONTRWK.js";import{b as _i}from"./chunk-W7PIRMKD.js";import{c as oi,d as Oe,e as yi}from"./chunk-Y5SPDICN.js";import{a as $t,b as ei,c as ti}from"./chunk-7M6CWVRI.js";import{a as $}from"./chunk-YBINYTS7.js";import"./chunk-AA32I4UN.js";import"./chunk-Q3SJOSAG.js";import{c as si}from"./chunk-QZWOQRAM.js";import"./chunk-KI2MQKDF.js";import"./chunk-I6YPWC52.js";import{a as di,b as De}from"./chunk-FBR7TAEJ.js";import{g as k,h as wi}from"./chunk-XRKZOON6.js";import"./chunk-4CBDK52E.js";import{a as Ge,b as E}from"./chunk-CBW7IA6S.js";import"./chunk-VPAQFQA7.js";import"./chunk-AOPKPEVH.js";import{N as vi,O as bi,m as ci,n as mi,q as ui}from"./chunk-V4RKZMUB.js";import{Aa as Z,Ba as Jt,C as Xt,ga as mt,la as Qt,oa as Yt,xa as Kt,za as Zt}from"./chunk-2FKYC63K.js";import{O as hi,o as fi}from"./chunk-2W3MAOOP.js";import"./chunk-AWGZKLLY.js";import"./chunk-DXF4M3Z6.js";import{e as Q,f as pi}from"./chunk-WK4T26FX.js";import"./chunk-BCVO66L3.js";import"./chunk-LHWN2J4H.js";import{a as P}from"./chunk-2FWFPV5I.js";import{C as jt,D as qt,a as At,b as Ce,c as me,d as Gt,h as R,i as Ot,k as Wt,n as A,o as Bt,q as Ae,x as Se,y as Ht}from"./chunk-4G26RHGA.js";import{c as zt}from"./chunk-R7NR3M2Q.js";import"./chunk-MA7NEQCZ.js";import{a as de,d as G}from"./chunk-26YXEYJK.js";import"./chunk-WG6PV6VL.js";import{a as M}from"./chunk-RRKCUSBB.js";import{$b as q,Ab as a,Ba as wt,Bb as b,Cb as ve,Db as be,Dc as Lt,Ea as lt,Fb as y,Fc as pe,Gb as It,Gc as Nt,Ia as yt,Ib as w,J as ge,Kb as m,Lb as Tt,Ld as N,Ma as xt,Mb as Mt,Nb as we,Nd as X,Ob as ke,Od as V,Pa as Ct,Pc as z,Qd as ct,Rc as F,Sb as Et,Sc as T,Sd as L,T as rt,Tb as kt,Ua as l,Ub as Ut,Va as g,W as gt,Xc as xe,Yb as W,Zb as c,Zc as ce,_b as C,ac as Ue,cc as f,cd as st,da as Le,dc as h,eb as U,ec as v,fb as St,fc as Ft,ga as ft,gb as _,gc as Vt,hc as I,ia as fe,ic as S,ja as ht,jc as Pt,la as oe,lb as Ne,mb as s,nb as Dt,o as ut,ob as Ee,pa as D,qa as he,qb as Re,qc as O,qd as Rt,rc as re,sc as ye,t as ot,u as _t,ub as K,va as vt,wa as d,wc as se,xa as u,ya as bt,zb as n}from"./chunk-H55AJAX5.js";import{a as nt,b as at}from"./chunk-KW4B7WMB.js";function Gi(i,p){if(i&1){let e=y();n(0,"div",12)(1,"h6"),c(2,"User"),a(),n(3,"ng-select",13),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.ID,t)||(r.pageData.Filter.ID=t),u(t)}),a(),n(4,"h6"),c(5,"Type"),a(),n(6,"ng-select",14),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.LoginTypeID,t)||(r.pageData.Filter.LoginTypeID=t),u(t)}),a()()}if(i&2){let e=m(2);l(3),f("ngModel",e.pageData.Filter.ID),s("items",e.pageData.Options.User),l(3),f("ngModel",e.pageData.Filter.LoginTypeID),s("items",e.pageData.Options.LoginTypes)}}function Oi(i,p){if(i&1&&(n(0,"tr",15)(1,"td"),c(2),a(),n(3,"td"),c(4),a(),n(5,"td"),c(6),a(),n(7,"td"),c(8),a(),n(9,"td"),c(10),O(11,"date"),a()()),i&2){let e=p.$implicit;l(2),C(e._source.log.LoginID),l(2),C(e._source.log.typeID),l(2),C(e._source.log.AppID?e._source.log.AppID:"-"),l(2),C(e._source.log.IP),l(2),C(ye(11,5,e._source["@timestamp"],"dd MMM yyyy HH:mm:ss"))}}function Wi(i,p){if(i&1){let e=y();n(0,"mat-paginator",16),w("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),a()}if(i&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function Bi(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",2),w("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),v("filterChange",function(t){d(e);let r=m();return h(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,Gi,7,4,"ng-template",null,0,se),a(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th",7),c(11,"Login ID"),a(),n(12,"th",8),c(13,"Type"),a(),n(14,"th",8),c(15,"App ID"),a(),n(16,"th",8),c(17,"IP Address"),a(),n(18,"th",9),c(19,"Log In Time"),a()()(),n(20,"tbody"),_(21,Oi,12,8,"tr",10),a()(),n(22,"div"),_(23,Wi,1,3,"mat-paginator",11),a()()()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),f("filter",e.pageData.Filter),l(21),s("ngForOf",e.data.hits),l(2),s("ngIf",e.pagination.listTotal>0)}}var Be=class i extends ${constructor(p,e){super(p,e,"user/user/LoginHistoryList","user/UserLoader/LoginHistoryList")}postInit(p){this.data.ListTotal=p.total.value}static \u0275fac=function(e){return new(e||i)(g(E),g(M))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","250px"],[2,"width","170px"],[2,"width","110px"],["class","border-bottom",4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"dialog-filter"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose an User...",3,"ngModelChange","ngModel","items"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose a Type...",3,"ngModelChange","ngModel","items"],[1,"border-bottom"],[3,"page","length","pageSize","pageIndex"]],template:function(e,o){e&1&&_(0,Bi,24,6,"mainpanel-cmp",1),e&2&&s("ngIf",o.data)},dependencies:[F,T,k,R,A,J,Q,ce]})};var Hi=()=>["/menu/Users/User/Users/Form"],ji=i=>({ID:i});function qi(i,p){if(i&1){let e=y();n(0,"div",10)(1,"h6"),c(2,"User"),a(),n(3,"autocompleteV2",11),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.UserID,t)||(r.pageData.Filter.UserID=t),u(t)}),a(),n(4,"h6"),c(5,"Row Count"),a(),n(6,"input",12),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.RowCount,t)||(r.pageData.Filter.RowCount=t),u(t)}),a()()}if(i&2){let e=m(2);l(3),f("ngModel",e.pageData.Filter.UserID),l(3),f("ngModel",e.pageData.Filter.RowCount),s("max",1e4)}}function zi(i,p){i&1&&(n(0,"th"),c(1,"User"),a())}function Xi(i,p){if(i&1&&(n(0,"a",16),c(1),a()),i&2){let e=m(2).$implicit;s("routerLink",I(3,Hi))("queryParams",S(4,ji,e._source.log.parentId)),l(),C(e._source.log.username)}}function Qi(i,p){if(i&1&&(n(0,"span"),c(1),a()),i&2){let e=m(2).$implicit;l(),C(e._source.log.username)}}function Yi(i,p){if(i&1&&(n(0,"td"),_(1,Xi,2,6,"a",15)(2,Qi,2,1,"span",7),a()),i&2){let e=m(3);l(),s("ngIf",e.role.users.Edit),l(),s("ngIf",!e.role.users.Edit)}}function Ki(i,p){if(i&1&&(n(0,"tr",13),_(1,Yi,3,2,"td",7),n(2,"td"),c(3),O(4,"date"),a(),n(5,"td"),c(6),a(),b(7,"td",14),O(8,"newlines"),a()),i&2){let e=p.$implicit,o=m(2);l(),s("ngIf",o.data.showColumnUser),l(2),C(ye(4,4,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),C(e._source.log.creator),l(),s("innerHtml",re(8,7,e._source.log.note),Ct)}}function Zi(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",2),v("textChange",function(t){d(e);let r=m();return h(r.pageData.Filter.Note,t)||(r.pageData.Filter.Note=t),u(t)}),w("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),v("filterChange",function(t){d(e);let r=m();return h(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,qi,7,3,"ng-template",null,0,se),a(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr"),_(10,zi,2,0,"th",7),n(11,"th"),c(12,"Modified"),a(),n(13,"th"),c(14,"Modify By"),a(),n(15,"th"),c(16,"Note"),a()()(),n(17,"tbody"),_(18,Ki,9,9,"tr",8),a()(),n(19,"div")(20,"mat-paginator",9),w("page",function(t){d(e);let r=m();return u(r.onPaginationChange(t))}),a()()()()()()}if(i&2){let e=m();s("pageData",e.menuData),f("text",e.pageData.Filter.Note),s("isFilterOnDropdown",!1),f("filter",e.pageData.Filter),l(10),s("ngIf",e.data.showColumnUser),l(8),s("ngForOf",e.data.Data.hits),l(2),s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}var Ve=class i extends ${constructor(e,o,t,r){super(e,o,"user/user/UpdateList","user/UserLoader/HistoryLoader",null,t);this.httpService=o;this.role=r}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N),g(G))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],["searchBoxPlaceholder","Search Note...",3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[4,"ngIf"],["class","border-bottom",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["requestUrl","/API/AC/GetUserSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","ngModel","max"],[1,"border-bottom"],[3,"innerHtml"],[3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"]],template:function(o,t){o&1&&_(0,Zi,21,9,"mainpanel-cmp",1),o&2&&s("ngIf",t.data)},dependencies:[F,T,V,k,me,R,A,J,De,vi,ce,fi]})};var $i=()=>["/menu/Users/User/Groups"],en=i=>({selected:i}),tn=i=>({"border-top-0":i}),nn=(i,p)=>({"bg-gradient-warning":i,"border-top-0":p});function an(i,p){i&1&&(n(0,"span",50),c(1," Name required."),a())}function on(i,p){if(i&1){let e=y();ve(0),n(1,"div",59)(2,"div",60)(3,"div",61)(4,"input",62),w("click",function(){let t=d(e).$implicit,r=m(4);return u(r.onSelectRole(t.ID))}),a()(),n(5,"label",63),c(6),a()()(),be()}if(i&2){let e=p.$implicit,o=p.index,t=m().$implicit,r=m(3);l(2),s("matTooltip",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole?"":e.Description),l(),s("ngClass",S(8,tn,o/4>=1)),l(),we("id",t.Name+o),s("disabled",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole)("checked",r.formData.Roles.indexOf(e.ID)>-1),l(),we("for",t.Name+o),s("ngClass",Pt(10,nn,e.Type==1,o/4>=1)),l(),C(e.Model)}}function rn(i,p){if(i&1){let e=y();ve(0),n(1,"div",68)(2,"div",69)(3,"div",70)(4,"input",71),w("click",function(){let t=d(e).$implicit,r=m(6);return u(r.onSelectRole(t.ID))}),a()(),n(5,"label",72),c(6),a()()(),be()}if(i&2){let e=p.$implicit,o=m().index,t=m(5);l(4),we("id",e.Name+"more"+o),s("checked",t.formData.Roles.indexOf(e.ID)>-1),l(),we("for",e.Name+"more"+o),we("matTooltip",e.Description),l(),C(e.Model)}}function ln(i,p){if(i&1&&(ve(0),n(1,"div",67),_(2,rn,7,5,"ng-container",36),a(),be()),i&2){let e=p.$implicit;l(2),s("ngForOf",e)}}function sn(i,p){if(i&1&&(n(0,"div",64)(1,"a",65),c(2,"More Permission"),a(),n(3,"div",66)(4,"div",57),_(5,ln,3,1,"ng-container",36),a()()()),i&2){let e=m().index,o=m(3);l(5),s("ngForOf",o.listMorePermission[e])}}function cn(i,p){if(i&1){let e=y();n(0,"div",51)(1,"div",52)(2,"div",53)(3,"p",54),c(4),a(),n(5,"input",55),w("change",function(t){let r=d(e).$implicit,x=m(3);return u(x.selectGroupRole(t.target.checked,r.ID))}),a()()(),n(6,"div",56)(7,"div",57),_(8,on,7,13,"ng-container",36),a(),_(9,sn,6,1,"div",58),a()()}if(i&2){let e=p.$implicit,o=m(3);s("matTooltip",e.Name==o.userGroupName&&o.data.LastGroupWithUserRole?"You cannot edit this section because this Group is the last group with User Access":""),l(4),q(" ",e.Name," "),l(),s("disabled",e.Name==o.userGroupName&&o.data.LastGroupWithUserRole),l(3),s("ngForOf",e.ListRole),l(),s("ngIf",(e.ListMorePermission==null?null:e.ListMorePermission.length)>0)}}function mn(i,p){if(i&1){let e=y();n(0,"tr")(1,"td"),c(2),a(),n(3,"td",73)(4,"input",74),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),a()(),n(5,"td",73)(6,"input",74),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),a()(),n(7,"td",73)(8,"input",74),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),a()(),n(9,"td",73)(10,"input",74),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),a()()()}if(i&2){let e=p.$implicit,o=p.index;l(2),C(e.Name),l(2),ke("name","noaccess",o,""),f("ngModel",e.AccessTypeID),s("value",0),l(2),ke("name","peek",o,""),f("ngModel",e.AccessTypeID),s("value",1),l(2),ke("name","read",o,""),f("ngModel",e.AccessTypeID),s("value",2),l(2),ke("name","write",o,""),f("ngModel",e.AccessTypeID),s("value",3)}}function pn(i,p){if(i&1){let e=y();n(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"input",10,0),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.Group.Name,t)||(r.formData.Group.Name=t),u(t)}),a(),n(6,"label",11),c(7,"Group Name"),a(),_(8,an,2,0,"span",12),a(),n(9,"ul",13)(10,"li",14)(11,"button",15),c(12," Permission "),a()(),n(13,"li",14)(14,"button",16),c(15," Outlet "),a()(),n(16,"li",14)(17,"button",17),c(18," Description "),a()(),n(19,"li",14)(20,"button",18),c(21," Restriction "),a()()(),n(22,"div",19)(23,"div",20),_(24,cn,10,5,"div",21),a(),n(25,"div",22)(26,"div",23)(27,"table",24)(28,"thead",25)(29,"tr")(30,"th",26),c(31,"Name"),a(),n(32,"th",27)(33,"span",28),c(34,"No Access"),a(),n(35,"input",29),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),a()(),n(36,"th",30)(37,"span",28),c(38,"Peek"),a(),n(39,"input",31),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),a()(),n(40,"th",32)(41,"span",28),c(42,"Read"),a(),n(43,"input",33),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),a()(),n(44,"th",34)(45,"span",28),c(46,"Write"),a(),n(47,"input",35),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),a()()()(),n(48,"tbody"),_(49,mn,11,17,"tr",36),a()()()(),n(50,"div",37)(51,"div",7)(52,"div",38)(53,"div",9)(54,"textarea",39),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.Group.Description,t)||(r.formData.Group.Description=t),u(t)}),c(55," "),a(),n(56,"label",40),c(57,"Description"),a()()()()(),n(58,"div",41)(59,"div",7)(60,"div",42)(61,"div",9)(62,"input",43),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.Group.DataDaysRange,t)||(r.formData.Group.DataDaysRange=t),u(t)}),a(),n(63,"label",44),c(64,"Data Days Range"),a()()(),n(65,"div",42)(66,"div",45)(67,"label"),c(68,"Live Chat Enabled"),a(),n(69,"radio-options",46),v("modelChange",function(t){d(e);let r=m(2);return h(r.formData.Group.LiveChatEnabled,t)||(r.formData.Group.LiveChatEnabled=t),u(t)}),a()()()(),n(70,"div",7)(71,"div",42)(72,"div",47)(73,"ng-select",48),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.Group.BrandID,t)||(r.formData.Group.BrandID=t),u(t)}),a(),n(74,"label",49),c(75,"Brand"),a()()()()()()()()()}if(i&2){let e=W(5),o=m(2);l(4),f("ngModel",o.formData.Group.Name),l(4),s("ngIf",e.invalid&&(e.dirty||e.touched)),l(16),s("ngForOf",o.options),l(11),f("ngModel",o.checkAll),s("value",0),l(4),f("ngModel",o.checkAll),s("value",1),l(4),f("ngModel",o.checkAll),s("value",2),l(4),f("ngModel",o.checkAll),s("value",3),l(2),s("ngForOf",o.formData.Outlets),l(5),f("ngModel",o.formData.Group.Description),l(8),f("ngModel",o.formData.Group.DataDaysRange),l(7),f("model",o.formData.Group.LiveChatEnabled),l(3),s("ngClass",S(18,en,o.formData.Group.BrandID)),l(),f("ngModel",o.formData.Group.BrandID),s("items",o.Brands)}}function dn(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",2)(1,"actions")(2,"a",3),c(3,"Cancel"),a(),n(4,"button",4),w("click",function(){d(e);let t=m();return u(t.onSubmitForm())}),c(5," Submit "),a()(),n(6,"content"),_(7,pn,76,20,"div",5),a()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(5,$i)),l(5),s("ngIf",e.formData.Group)}}var je=class i extends Te{constructor(e,o,t,r,x,H,j,Y){super(e,o,"User/GroupLoader/Form",t);this.toaster=r;this.router=x;this.actRoute=H;this.dataDaysRangeService=j;this.authService=Y}checkAll=-1;listMorePermission=[];Brands=[];userGroupName="Users";onSelectRole(e){var o=this.formData.Roles.indexOf(e);o>-1?this.formData.Roles.splice(o,1):this.formData.Roles.push(e)}selectGroupRole(e,o){let t=this.options.find(r=>r.ID==o);if(t){let r=t.ListRole.map(j=>j.ID),x=t.ListMorePermission.map(j=>j.ID),H=[...r,...x];e?(this.formData.Roles=[...this.formData.Roles,...H],this.formData.Roles=this.formData.Roles.filter((j,Y,_e)=>_e.indexOf(j)==Y)):this.formData.Roles=this.formData.Roles.filter(j=>H.findIndex(Y=>Y==j)==-1)}}postBindForm(e){e.Form.Group.Name&&(this.menuData.H=`Edit Group - ${e.Form.Group.Name}`),this.Brands=e.Brands,this.setListMorePermission()}onSubmitForm(){if(de.IsEmpty(this.formData.Group.Name)){this.toaster.error("Group name is required",P.Error);return}this.onSubmit("user/group/Submit")}onSubmitSuccess(e){this.refreshToken(),e.DataDaysRange>=0&&localStorage.setItem("DataDaysRange",e.DataDaysRange),this.dataDaysRangeService.bindDataDaysRange();let o=this.actRoute.snapshot.queryParams;de.IsEmpty(o.ID)?this.toaster.success("Success add group",P.Success):this.toaster.info(`
|
|
2
|
+
The user group has been updated.<br/>
|
|
3
|
+
Please reload to apply the changes.
|
|
4
|
+
`,P.Info,{enableHtml:!0}),this.router.navigate(["/menu/Users/User/Groups"])}setListMorePermission(){this.data.Options.forEach((o,t)=>{this.listMorePermission[t]=this.generateListPermission(o.ListMorePermission)})}generateListPermission(e){let o=[];return e.forEach(t=>{o.length==0?o[o.length]=[t]:o[o.length-1].length<=7?o[o.length-1].push(t):o[o.length]=[t]}),o}refreshToken(){this.data?.IsSameGroup&&this.authService.refreshToken()}SelectAll(e,o){o.forEach(function(t){t.AccessTypeID=e})}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N),g(L),g(X),g(N),g(Mi),g(zt))};static \u0275cmp=D({type:i,selectors:[["CustomerDisplay-groups-form"]],features:[U],decls:1,vars:1,consts:[["roleName","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["role","button",1,"btn","btn-outline-secondary","me-5",3,"routerLink"],["type","button","role","button",1,"btn","btn-success",3,"click"],["class","container-fluid p-10",4,"ngIf"],[1,"container-fluid","p-10"],[1,"row"],[1,"col"],[1,"form-floating-outline"],["type","text","id","groupName","name","grpName","placeholder","Group Name","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","groupName"],["class","control-label text-danger border-0",4,"ngIf"],["id","myTabs","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","permission-tab","data-bs-toggle","tab","data-bs-target","#permission","role","tab","aria-selected","true",1,"nav-link","active"],["id","outlet-tab","data-bs-toggle","tab","data-bs-target","#outlet","role","tab","aria-selected","false",1,"nav-link"],["id","description-tab","data-bs-toggle","tab","data-bs-target","#description","role","tab","aria-selected","false",1,"nav-link"],["id","description-tab","data-bs-toggle","tab","data-bs-target","#restriction","role","tab","aria-selected","false",1,"nav-link"],["id","myTabContecnt",1,"tab-content"],["id","permission","role","tabpanel",1,"tab-pane","fade","show","active","mt-0","p-5"],["class","row my-5","matTooltipPosition","above",3,"matTooltip",4,"ngFor","ngForOf"],["id","outlet","role","tabpanel",1,"tab-pane","fade","show","mt-0","p-7"],[1,"row","border-top-0"],[1,"table","table-bordered"],[1,"thead-light","w-250px"],[1,"border-end"],[1,"border-end","text-center",2,"width","90px"],[1,"d-block","border-bottom","pb-3","mb-3"],["type","radio","name","noaccess",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can check Inventory at outlet",1,"border-end","text-center",2,"width","90px"],["type","radio","name","peek",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can check Inventory + Orders at outlet",1,"border-end","text-center",2,"width","90px"],["type","radio","name","read",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can create new orders at outlet",1,"text-center",2,"width","90px"],["type","radio","name","write",3,"ngModelChange","change","ngModel","value"],[4,"ngFor","ngForOf"],["id","description","role","tabpanel",1,"tab-pane","face","show","mt-5","p-5"],[1,"col-sm-12"],["id","desc",1,"form-control",2,"width","100%",3,"ngModelChange","ngModel"],["for","desc"],["id","restriction","role","tabpanel",1,"tab-pane","fade","show","mt-5","p-5"],[1,"col-sm-6"],["type","text","autoNum","","id","days","placeholder","Data Days Range",1,"form-control",3,"ngModelChange","ngModel"],["for","days"],[1,"form-floating-outline","radio","border","rounded"],[3,"modelChange","model"],[1,"form-floating-outline",3,"ngClass"],["id","brand","bindLabel","Value","bindValue","Key",1,"productform","w-100",3,"ngModelChange","ngModel","items"],["for","brand",1,"ng-select"],[1,"control-label","text-danger","border-0"],["matTooltipPosition","above",1,"row","my-5",3,"matTooltip"],[1,"col-sm-2","border",2,"background-color","#f6f6f6","font-weight","bold","padding","5px","text-align","center"],[1,"d-flex","align-items-center"],[1,"mb-0",2,"flex","1","text-align","center"],["type","checkbox",2,"margin-left","auto",3,"change","disabled"],[1,"col-sm-10","g-0"],[1,"row","g-0"],["class","col-md-3 border border-top-0 ps-5 border-start-0 d-flex align-items-center","style","min-height: 32px",4,"ngIf"],[1,"col-3","px-0"],["matTooltipPosition","above",1,"input-group",3,"matTooltip"],[1,"input-group-text","border","border-start-0",3,"ngClass"],["type","checkbox",3,"click","id","disabled","checked"],[1,"form-control","border",3,"ngClass","for"],[1,"col-md-3","border","border-top-0","ps-5","border-start-0","d-flex","align-items-center",2,"min-height","32px"],["href","#","data-bs-toggle","dropdown","matTooltipPosition","above","matTooltip","More Permission",1,"simple-text","text-start"],[1,"dropdown-menu",2,"max-height","400px","overflow","auto","width","230px"],[1,"col-12","px-0"],[1,"dropdown-item","h6","py-0","px-3"],[1,"input-group"],[1,"input-group-text","border"],["type","checkbox",3,"click","id","checked"],["matTooltipPosition","above",1,"form-control","border",3,"for","matTooltip"],[2,"text-align","center"],["type","radio",3,"ngModelChange","ngModel","name","value"]],template:function(o,t){o&1&&_(0,dn,8,6,"mainpanel-cmp",1),o&2&&s("ngIf",t.data&&t.formData)},dependencies:[z,F,T,V,k,me,Ae,R,Se,A,Q,De,Oe,Z],styles:[".w-250px[_ngcontent-%COMP%]{width:250px}"]})};var un=()=>["/menu/Users/User/Groups/Form"],_n=i=>({"bg-gradient-warning":i}),gn=()=>["/menu/Users/User/Groups/Info"],fn=i=>({ID:i});function hn(i,p){if(i&1){let e=y();n(0,"a",14),w("click",function(){d(e);let t=m(2);return u(t.httpDeleteListID("user/group"))}),b(1,"i",15),c(2," Delete "),a()}}function vn(i,p){i&1&&(n(0,"a",16),c(1,"Add "),a()),i&2&&s("routerLink",I(1,un))}function bn(i,p){if(i&1){let e=y();n(0,"th",17)(1,"input",18),w("change",function(t){d(e);let r=m(2);return r.onSelectAllData(t.target.checked),u(r.uncheckSystemGroup())}),a()()}}function wn(i,p){i&1&&b(0,"th")}function yn(i,p){if(i&1){let e=y();n(0,"td")(1,"input",22),v("ngModelChange",function(t){d(e);let r=m().$implicit;return h(r.selected,t)||(r.selected=t),u(t)}),a()()}if(i&2){let e=m().$implicit;l(),f("ngModel",e.selected)}}function xn(i,p){if(i&1){let e=y();n(0,"td",23)(1,"button",24),w("click",function(){d(e);let t=m().$implicit,r=m(2);return u(r.onDuplicateGroup(t.ID))}),b(2,"i",25),a()()}}function Cn(i,p){if(i&1&&(n(0,"tr",19),_(1,yn,2,1,"td",11),n(2,"td")(3,"a",20),c(4),a()(),n(5,"td"),c(6),a(),_(7,xn,3,0,"td",21),a()),i&2){let e=p.$implicit,o=m(2);s("ngClass",S(7,_n,e.Type==1)),l(),s("ngIf",o.roleService.users.Delete),l(2),s("routerLink",I(9,gn))("queryParams",S(10,fn,e.ID)),l(),C(e.Name),l(2),C(e.Description),l(),s("ngIf",o.roleService.users.Create)}}function Sn(i,p){if(i&1){let e=y();n(0,"mat-paginator",26),w("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),a()}if(i&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function Dn(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",1),v("textChange",function(t){d(e);let r=m();return h(r.pageData.Filter.Text,t)||(r.pageData.Filter.Text=t),u(t)}),w("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),n(1,"actions"),_(2,hn,3,0,"a",2)(3,vn,2,2,"a",3),a(),n(4,"content")(5,"div",4)(6,"div",5)(7,"table",6)(8,"thead",7)(9,"tr",8),_(10,bn,2,0,"th",9),n(11,"th",10),c(12,"NAME"),a(),n(13,"th"),c(14,"DESCRIPTION"),a(),_(15,wn,1,0,"th",11),a()(),n(16,"tbody"),_(17,Cn,8,12,"tr",12),a()()(),n(18,"div"),_(19,Sn,1,3,"mat-paginator",13),a()()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0),f("text",e.pageData.Filter.Text),l(2),s("ngIf",e.getSelectedData().length>0),l(),s("ngIf",e.roleService.users.Create),l(7),s("ngIf",e.roleService.users.Delete),l(5),s("ngIf",e.roleService.users.Create),l(2),s("ngForOf",e.data.Data),l(2),s("ngIf",e.pagination.listTotal>0)}}var ze=class i extends ${constructor(e,o,t,r){super(e,o,"user/group/List","user/GroupLoader/List",t);this.roleService=r}onDuplicateGroup(e){if(confirm("Are you sure you want to copy this group?")==!1)return;let t={GroupID:e};this.httpService.put("/api/user/group/CopyGroup",t).subscribe(r=>{this.toastrService.success(r.Message,P.Success),this.getListData()})}uncheckSystemGroup(){this.data.Data=this.data.Data.map(e=>(e.GetISRoleSystem&&(e.selected=!1),e))}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(L),g(G))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","text","textChange","onSubmit",4,"ngIf"],[3,"textChange","onSubmit","pageData","hideSearchDropdown","text"],["role","button","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["role","button","class","btn btn-success ms-2",3,"routerLink",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","250px"],[4,"ngIf"],["class","border-bottom",3,"ngClass",4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash"],["role","button",1,"btn","btn-success","ms-2",3,"routerLink"],[2,"width","14px"],["type","checkbox",3,"change"],[1,"border-bottom",3,"ngClass"],[3,"routerLink","queryParams"],["class","d-flex justify-content-end",4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-end"],["title","Copy Group",1,"btn","btn-success","btn-sm","fs-6",3,"click"],[1,"fa-solid","fa-copy"],[3,"page","length","pageSize","pageIndex"]],template:function(o,t){o&1&&_(0,Dn,20,9,"mainpanel-cmp",0),o&2&&s("ngIf",t.data)},dependencies:[z,F,T,V,k,Ce,R,A,J]})};var In=()=>["/menu/Users/User/Roles"],Tn=i=>({selected:i});function Mn(i,p){i&1&&(n(0,"span",28),c(1," Name required. "),a())}function En(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",3)(1,"actions")(2,"a",4),c(3,"Cancel"),a(),n(4,"button",5),w("click",function(){d(e);let t=m();return u(t.onSubmit("user/role/Submit"))}),c(5,"Submit "),a()(),n(6,"content")(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"h3",11),c(13,"General"),a(),n(14,"div",12)(15,"input",13,0),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.Name,t)||(r.formData.Name=t),u(t)}),a(),n(17,"label",14),c(18,"Name"),a(),_(19,Mn,2,0,"span",15),a(),n(20,"div",12)(21,"input",16),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.Model,t)||(r.formData.Model=t),u(t)}),a(),n(22,"label",17),c(23,"Model"),a()(),n(24,"div",12)(25,"textarea",18),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.Description,t)||(r.formData.Description=t),u(t)}),a(),n(26,"label",19),c(27,"Description"),a()()()()(),n(28,"div",20)(29,"div",9)(30,"div",10)(31,"h3",11),c(32,"Properties"),a(),n(33,"div",21)(34,"ng-select",22,1),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.GroupID,t)||(r.formData.GroupID=t),u(t)}),a(),n(36,"label",23),c(37,"Type"),a()(),n(38,"div",24)(39,"label"),c(40,"More Permission"),a(),n(41,"radio-options",25),v("modelChange",function(t){d(e);let r=m();return h(r.formData.Advanced,t)||(r.formData.Advanced=t),u(t)}),a()(),n(42,"div",12)(43,"input",26),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.Index,t)||(r.formData.Index=t),u(t)}),a(),n(44,"label",27),c(45,"Index"),a()()()()()()()()()}if(i&2){let e=W(16),o=W(35),t=m();s("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(15,In)),l(13),f("ngModel",t.formData.Name),l(4),s("ngIf",e.invalid&&(e.dirty||e.touched)),l(2),f("ngModel",t.formData.Model),l(4),f("ngModel",t.formData.Description),l(8),s("ngClass",S(16,Tn,t.formData.GroupID)),l(),f("ngModel",t.formData.GroupID),s("items",t.groupTypes),l(2),Dt("z-index",o.isOpen?"9999":"0"),l(5),f("model",t.formData.Advanced),l(2),f("ngModel",t.formData.Index)}}var Xe=class i extends Te{constructor(e,o,t,r,x,H){super(e,o,"user/RoleLoader/Form",t);this.toaster=r;this.router=x;this.actRoute=H}groupTypes;postBindForm(e){this.groupTypes=e.GroupTypes}onSubmitSuccess(){let e=this.actRoute.snapshot.queryParams;de.IsEmpty(e.ID)?this.toaster.success("Success add roles",P.Success):this.toaster.success("Success update roles",P.Success),this.router.navigate(["/menu/Users/User/Roles"])}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N),g(L),g(X),g(N))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[["roleName","ngModel"],["typeSelect",""],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["role","button",1,"btn","btn-outline-secondary","me-5",3,"routerLink"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","bg-light-gray","pt-10"],[1,"row"],[1,"col-md-8"],[1,"card"],[1,"card-body"],[1,"card-title","mb-10"],[1,"form-floating-outline"],["type","text","id","inputName","placeholder","Name","name","roleName","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","inputName"],["class","control-label text-danger",4,"ngIf"],["type","text","id","inputMode","placeholder","Model","name","model",1,"form-control",3,"ngModelChange","ngModel"],["for","inputModel"],["id","inputDescription","placeholder","Description",1,"form-control",3,"ngModelChange","ngModel"],["for","inputDescription"],[1,"col-md-4"],[1,"form-floating-outline",3,"ngClass"],["id","inputType","bindLabel","Name","bindValue","ID",1,"productform","w-100",3,"ngModelChange","ngModel","items"],["for","inputType"],[1,"form-floating-outline","radio","border","rounded",2,"padding-top","20px"],[3,"modelChange","model"],["type","text","id","inputIndex","placeholder","Index","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["for","inputIndex"],[1,"control-label","text-danger"]],template:function(o,t){o&1&&_(0,En,46,18,"mainpanel-cmp",2),o&2&&s("ngIf",t.data&&t.formData)},dependencies:[z,T,V,k,me,R,Se,A,Q,De,Oe]})};var kn=()=>["/menu/Users/User/Roles/Form"],Un=i=>({ID:i});function Fn(i,p){if(i&1){let e=y();n(0,"a",21),w("click",function(){d(e);let t=m(2).ngIf,r=m();return u(r.deleteRole(t.Role.ID))}),b(1,"i",22),c(2," Delete "),a()}}function Vn(i,p){if(i&1&&(n(0,"a",23),b(1,"i",24),c(2," Edit "),a()),i&2){let e=m(2).ngIf;s("routerLink",I(2,kn))("queryParams",S(3,Un,e.Role.ID))}}function Pn(i,p){if(i&1&&(n(0,"actions"),_(1,Fn,3,0,"a",19)(2,Vn,3,5,"a",20),a()),i&2){let e=m(2);l(),s("ngIf",e.roleService.users.Delete),l(),s("ngIf",e.roleService.users.Edit)}}function Ln(i,p){if(i&1&&(n(0,"div",25),b(1,"span",26),n(2,"span",27),c(3),a()()),i&2){let e=p.$implicit;l(3),C(e.Name)}}function Nn(i,p){if(i&1&&(n(0,"mainpanel-cmp",1),O(1,"async"),_(2,Pn,3,2,"actions",2),n(3,"content")(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"h3",8),c(10,"General"),a(),n(11,"div",9),b(12,"POS-info-page-input",10),a(),n(13,"div",9),b(14,"POS-info-page-input",11),a(),n(15,"div",9),b(16,"POS-info-page-input",12),a()()()(),n(17,"div",13)(18,"div",6)(19,"div",7)(20,"h3",8),c(21,"Properties"),a(),n(22,"div",9),b(23,"POS-info-page-input",14),a(),n(24,"div",9),b(25,"POS-info-page-input",15),a(),n(26,"div",9),b(27,"POS-info-page-input",16),a()()()()(),n(28,"div",4)(29,"div",17)(30,"div",6)(31,"div",7)(32,"h3",8),c(33,"User Group"),a(),n(34,"div",4),_(35,Ln,4,1,"div",18),a()()()()()()()()),i&2){let e=p.ngIf,o=m();s("pageData",re(1,11,o.menu$))("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("ngIf",o.roleService.isSystemUser),l(10),s("inputValue",e.Role.Name),l(2),s("inputValue",e.Role.Model),l(2),s("inputValue",e.Role.Description),l(7),s("inputValue",e.Role.GroupName),l(2),s("inputValue",e.Role.Advanced?"Yes":"No"),l(2),s("inputValue",e.Role.Index),l(8),s("ngForOf",e.UserGroupRole)}}var Qe=class i{constructor(p,e,o,t,r,x){this.http=p;this.route=o;this.toastr=t;this.roleService=r;x.setMenu$(),this.menu$=x.menu$;let H=ut(e.snapshot.queryParams).pipe(ge(Y=>p.get(this.endpoint+Y.ID))),j=_t(this.menu$,H).pipe(ot(([Y,_e])=>({menu:at(nt({},Y),{H:`${_e.Role.Name} Role`}),info:_e})),gt());this.info$=j.pipe(rt("info"),ot(Y=>at(nt({},Y),{UserGroupRole:Y.UserGroupRole.filter(_e=>_e.HasRole)}))),this.menu$=j.pipe(rt("menu"))}endpoint="/API/user/role/";menu$;info$;deleteRole(p){this.http.delete("/API/User/Role",{body:[p]}).subscribe({next:()=>{this.route.navigate(["/menu/Users/User/Roles"]),this.toastr.success("Success delete role.",P.Success)}})}static \u0275fac=function(e){return new(e||i)(g(M),g(N),g(X),g(L),g(G),g(E))};static \u0275cmp=D({type:i,selectors:[["POS-roles-info"]],decls:2,vars:3,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[4,"ngIf"],[1,"container-fluid","pt-10"],[1,"row"],[1,"col-md-8"],[1,"card"],[1,"card-body"],[1,"card-title","mb-10"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Model",3,"inputValue"],["labelValue","Description","inputType","textarea",3,"inputValue"],[1,"col-md-4"],["labelValue","Type",3,"inputValue"],["labelValue","More Permission",3,"inputValue"],["labelValue","Index",3,"inputValue"],[1,"col-8"],["class","col-3 d-flex align-items-center",4,"ngFor","ngForOf"],["role","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary ms-5",3,"routerLink","queryParams",4,"ngIf"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash"],["role","button",1,"btn","btn-outline-secondary","ms-5",3,"routerLink","queryParams"],[1,"fa-solid","fa-pen-to-square"],[1,"col-3","d-flex","align-items-center"],[1,"me-5",2,"width","5px","height","5px","background","black","border-radius","100%"],[2,"font-size","14px"]],template:function(e,o){e&1&&(_(0,Nn,36,13,"mainpanel-cmp",0),O(1,"async")),e&2&&s("ngIf",re(1,1,o.info$))},dependencies:[F,T,V,k,Ie,xe]})};var Rn=()=>["/menu/Users/User/Roles/Form"],An=i=>({"bg-gradient-warning":i}),Gn=()=>["Info"],On=i=>({ID:i});function Wn(i,p){if(i&1){let e=y();n(0,"a",14),w("click",function(){d(e);let t=m(2);return u(t.httpDeleteListID("user/role"))}),b(1,"i",15),c(2," Delete "),a()}}function Bn(i,p){i&1&&(n(0,"a",16),c(1,"Add "),a()),i&2&&s("routerLink",I(1,Rn))}function Hn(i,p){if(i&1){let e=y();n(0,"div",17)(1,"h6"),c(2,"Group Name"),a(),n(3,"ng-select",18),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.GroupID,t)||(r.pageData.Filter.GroupID=t),u(t)}),a()()}if(i&2){let e=m(2);l(3),f("ngModel",e.pageData.Filter.GroupID),s("items",e.pageData.Options)}}function jn(i,p){if(i&1){let e=y();n(0,"th",19)(1,"input",20),w("change",function(t){d(e);let r=m(2);return u(r.onSelectAllData(t.target.checked))}),a()()}}function qn(i,p){if(i&1){let e=y();n(0,"td")(1,"input",24),v("ngModelChange",function(t){d(e);let r=m().$implicit;return h(r.selected,t)||(r.selected=t),u(t)}),a()()}if(i&2){let e=m().$implicit;l(),f("ngModel",e.selected)}}function zn(i,p){if(i&1&&(n(0,"tr",21),_(1,qn,2,1,"td",22),n(2,"td")(3,"a",23),c(4),a()(),n(5,"td"),c(6),a(),n(7,"td"),c(8),a(),n(9,"td"),c(10),a()()),i&2){let e=p.$implicit,o=m(2);s("ngClass",S(8,An,e.Type==1)),l(),s("ngIf",o.data.IsSystem),l(2),s("routerLink",I(10,Gn))("queryParams",S(11,On,e.ID)),l(),C(e.RolesName),l(2),C(e.GroupName),l(2),C(e.Model),l(2),C(e.Description)}}function Xn(i,p){if(i&1){let e=y();n(0,"mat-paginator",25),w("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),a()}if(i&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function Qn(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",2),v("textChange",function(t){d(e);let r=m();return h(r.pageData.Filter.Text,t)||(r.pageData.Filter.Text=t),u(t)}),w("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),v("filterChange",function(t){d(e);let r=m();return h(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"actions"),_(2,Wn,3,0,"a",3)(3,Bn,2,2,"a",4),a(),n(4,"filters"),_(5,Hn,4,2,"ng-template",null,0,se),a(),n(7,"content")(8,"div",5)(9,"div",6)(10,"table",7)(11,"thead",8)(12,"tr",9),_(13,jn,2,0,"th",10),n(14,"th",11),c(15,"NAME"),a(),n(16,"th"),c(17,"GROUP NAME"),a(),n(18,"th"),c(19,"MODEL"),a(),n(20,"th"),c(21,"DESCRIPTION"),a()()(),n(22,"tbody"),_(23,zn,11,13,"tr",12),a()()(),n(24,"div"),_(25,Xn,1,3,"mat-paginator",13),a()()()()}if(i&2){let e=m();s("pageData",e.menuData),f("text",e.pageData.Filter.Text),s("isFilterOnDropdown",!1),f("filter",e.pageData.Filter),l(2),s("ngIf",e.getSelectedData().length>0),l(),s("ngIf",e.roleService.isSystemUser),l(10),s("ngIf",e.data.IsSystem),l(10),s("ngForOf",e.data.Data),l(2),s("ngIf",e.pagination.listTotal>0)}}var Ye=class i extends ${constructor(e,o,t,r){super(e,o,"user/role/List","user/RoleLoader/List",t);this.httpService=o;this.roleService=r}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(L),g(G))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["role","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["role","button","class","btn btn-success ms-3",3,"routerLink",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["style","width: 14px",4,"ngIf"],[2,"width","250px"],["class","border-bottom",3,"ngClass",4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash"],["role","button",1,"btn","btn-success","ms-3",3,"routerLink"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],[2,"width","14px"],["type","checkbox",3,"change"],[1,"border-bottom",3,"ngClass"],[4,"ngIf"],[3,"routerLink","queryParams"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"page","length","pageSize","pageIndex"]],template:function(o,t){o&1&&_(0,Qn,26,9,"mainpanel-cmp",1),o&2&&s("ngIf",t.data)},dependencies:[z,F,T,V,k,Ce,R,A,J,Q]})};var Yn=["switch"],Kn=["*"];function Zn(i,p){i&1&&(n(0,"span",10),bt(),n(1,"svg",12),b(2,"path",13),a(),n(3,"svg",14),b(4,"path",15),a()())}var Jn=new ht("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),$n={provide:At,useExisting:ft(()=>Ze),multi:!0},Ke=class{constructor(p,e){this.source=p,this.checked=e}},ea=0,Ze=(()=>{class i{_createChangeEvent(e){return new Ke(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,o,t,r,x,H){this._elementRef=e,this._focusMonitor=o,this._changeDetectorRef=t,this.defaults=x,this._onChange=j=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new lt,this.toggleChange=new lt,this.tabIndex=parseInt(r)||0,this.color=x.color||"accent",this._noopAnimations=H==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++ea}`,this.hideIcon=x.hideIcon??!1,this.disabledInteractive=x.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Ke(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(o){return new(o||i)(g(yt),g(Xt),g(Lt),wt("tabindex"),g(Jn),g(xt,8))}}static{this.\u0275cmp=D({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(o,t){if(o&1&&Et(Yn,5),o&2){let r;kt(r=Ut())&&(t._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(o,t){o&2&&(It("id",t.id),Ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Re(t.color?"mat-"+t.color:""),Ee("mat-mdc-slide-toggle-focused",t._focused)("mat-mdc-slide-toggle-checked",t.checked)("_mat-animation-noopable",t._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",pe],color:"color",disabled:[2,"disabled","disabled",pe],disableRipple:[2,"disableRipple","disableRipple",pe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Nt(e)],checked:[2,"checked","checked",pe],hideIcon:[2,"hideIcon","hideIcon",pe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Ft([$n,{provide:Gt,useExisting:i,multi:!0}]),St,vt,Vt],ngContentSelectors:Kn,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(o,t){if(o&1){let r=y();Tt(),n(0,"div",1)(1,"button",2,0),w("click",function(){return d(r),u(t._handleClick())}),b(3,"span",3),n(4,"span",4)(5,"span",5)(6,"span",6),b(7,"span",7),a(),n(8,"span",8),b(9,"span",9),a(),_(10,Zn,5,0,"span",10),a()()(),n(11,"label",11),w("click",function(H){return d(r),u(H.stopPropagation())}),Mt(12),a()()}if(o&2){let r=W(2);s("labelPosition",t.labelPosition),l(),Ee("mdc-switch--selected",t.checked)("mdc-switch--unselected",!t.checked)("mdc-switch--checked",t.checked)("mdc-switch--disabled",t.disabled)("mat-mdc-slide-toggle-disabled-interactive",t.disabledInteractive),s("tabIndex",t.disabled&&!t.disabledInteractive?-1:t.tabIndex)("disabled",t.disabled&&!t.disabledInteractive),Ne("id",t.buttonId)("name",t.name)("aria-label",t.ariaLabel)("aria-labelledby",t._getAriaLabelledBy())("aria-describedby",t.ariaDescribedby)("aria-required",t.required||null)("aria-checked",t.checked)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),l(8),s("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0),l(),K(t.hideIcon?-1:10),l(),s("for",t.buttonId),Ne("id",t._labelId)}},dependencies:[Yt,Zt],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}}return i})();var Pi=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=he({type:i})}static{this.\u0275inj=fe({imports:[Ze,mt,mt]})}}return i})();var ia=()=>["/menu/Users/User/Users"],Li=i=>({"is-invalid":i}),Ni=i=>({"ng-invalid ng-dirty":i}),pt=i=>({selected:i});function na(i,p){i&1&&(n(0,"div",34),c(1,"Login ID is required"),a())}function aa(i,p){i&1&&(n(0,"div",34),c(1," Email must be in a correct format "),a())}function oa(i,p){i&1&&(n(0,"div",39),c(1," *Leave blank to retain password "),a())}function ra(i,p){i&1&&(n(0,"div",39),c(1,"Password is required."),a())}function la(i,p){i&1&&(n(0,"div",39),c(1,"Re-Password is required."),a())}function sa(i,p){i&1&&(n(0,"div",39),c(1," \xA0These passwords don't match "),a())}function ca(i,p){if(i&1&&_(0,sa,2,0,"div",39),i&2){let e=m(3);K(e.formData.User.RePassword&&e.formData.User.NewPassword!==e.formData.User.RePassword?0:-1)}}function ma(i,p){if(i&1){let e=y();n(0,"div",19)(1,"div",29)(2,"div",30)(3,"div",31)(4,"input",32,1),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.LoginID,t)||(r.formData.User.LoginID=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.inputFirstName(t.formData.User.LoginID))}),a(),n(6,"label",33),c(7,"Login ID"),a(),_(8,na,2,0,"div",34),a()(),n(9,"div",30)(10,"div",31)(11,"input",35,2),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.Email,t)||(r.formData.User.Email=t),u(t)}),a(),n(13,"label",36),c(14,"Email"),a(),_(15,aa,2,0,"div",34),a()(),n(16,"div",30)(17,"p-floatLabel")(18,"p-password",37,3),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.NewPassword,t)||(r.formData.User.NewPassword=t),u(t)}),a(),n(20,"label",38),c(21,"Password"),a()(),_(22,oa,2,0,"div",39)(23,ra,2,0,"div",39),a(),n(24,"div",30)(25,"p-floatLabel")(26,"p-password",40,4),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.RePassword,t)||(r.formData.User.RePassword=t),u(t)}),a(),n(28,"label",38),c(29,"Re-Password"),a()(),_(30,la,2,0,"div",39)(31,ca,1,1),a()()()}if(i&2){let e=W(5),o=W(12),t=W(19),r=W(27),x=m(2);l(4),f("ngModel",x.formData.User.LoginID),s("ngClass",S(20,Li,e.invalid&&((e==null?null:e.touched)||(e==null?null:e.dirty)))),l(4),K(e!=null&&e.invalid&&(e!=null&&e.touched||e!=null&&e.dirty)?8:-1),l(3),f("ngModel",x.formData.User.Email),s("ngClass",S(22,Li,o.invalid&&((o==null?null:o.touched)||(o==null?null:o.dirty)))),l(4),K(o!=null&&o.invalid&&(o!=null&&o.touched||o!=null&&o.dirty)?15:-1),l(3),s("toggleMask",!0)("feedback",!1),f("ngModel",x.formData.User.NewPassword),s("ngClass",S(24,Ni,t.invalid&&((t==null?null:t.touched)||(t==null?null:t.dirty))))("required",x.isNew),l(4),K(x.isNew?-1:22),l(),K(t!=null&&t.invalid&&(t!=null&&t.touched||t!=null&&t.dirty)?23:-1),l(3),f("ngModel",x.formData.User.RePassword),s("toggleMask",!0)("feedback",!1)("ngClass",S(26,Ni,(r==null?null:r.invalid)&&((r==null?null:r.touched)||(r==null?null:r.dirty))&&x.formData.User.NewPassword||x.formData.User.NewPassword!==x.formData.User.RePassword&&x.formData.User.RePassword))("required",x.isNew||x.formData.User.NewPassword),l(4),K(r!=null&&r.invalid&&(r!=null&&r.touched||r!=null&&r.dirty)&&x.formData.User.NewPassword?30:-1),l(),K(r!=null&&r.touched||r!=null&&r.dirty?31:-1)}}function pa(i,p){i&1&&(n(0,"li",22)(1,"button",41),c(2," 2 FA "),a()())}function da(i,p){if(i&1){let e=y();n(0,"tr")(1,"td"),c(2),a(),n(3,"td",75)(4,"input",76),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){d(e);let t=m(3);return u(t.filterOutletNotifications())}),a()(),n(5,"td",75)(6,"input",76),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){d(e);let t=m(3);return u(t.filterOutletNotifications())}),a()(),n(7,"td",75)(8,"input",76),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){d(e);let t=m(3);return u(t.filterOutletNotifications())}),a()(),n(9,"td",75)(10,"input",76),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){d(e);let t=m(3);return u(t.filterOutletNotifications())}),a()()()}if(i&2){let e=p.$implicit,o=p.index;l(2),C(e.Name),l(2),f("ngModel",e.AccessTypeID),s("name","outlet_noaccess"+o)("value",0)("id","outlet_noaccess"+o),l(2),f("ngModel",e.AccessTypeID),s("name","outlet_peek"+o)("value",1)("id","outlet_peek"+o),l(2),f("ngModel",e.AccessTypeID),s("name","outlet_read"+o)("value",2)("id","outlet_read"+o),l(2),f("ngModel",e.AccessTypeID),s("name","outlet_write"+o)("value",3)("id","outlet_write"+o)}}function ua(i,p){if(i&1){let e=y();n(0,"tr")(1,"td"),c(2),a(),n(3,"td",75)(4,"input",77),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){let t=d(e).$implicit,r=m(3);return u(r.onChangeOutletGroupAccess(t.ID,t.AccessTypeID))}),a()(),n(5,"td",75)(6,"input",77),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){let t=d(e).$implicit,r=m(3);return u(r.onChangeOutletGroupAccess(t.ID,t.AccessTypeID))}),a()(),n(7,"td",75)(8,"input",77),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){let t=d(e).$implicit,r=m(3);return u(r.onChangeOutletGroupAccess(t.ID,t.AccessTypeID))}),a()(),n(9,"td",75)(10,"input",77),v("ngModelChange",function(t){let r=d(e).$implicit;return h(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),w("ngModelChange",function(){let t=d(e).$implicit,r=m(3);return u(r.onChangeOutletGroupAccess(t.ID,t.AccessTypeID))}),a()()()}if(i&2){let e=p.$implicit,o=p.index;l(2),C(e.Name),l(2),f("ngModel",e.AccessTypeID),s("value",0)("name","group_noaccess"+o)("id","group_noaccess"+o),l(2),f("ngModel",e.AccessTypeID),s("value",1)("name","group_peek"+o)("id","group_peek"+o),l(2),f("ngModel",e.AccessTypeID),s("value",2)("name","group_read"+o)("id","group_read"+o),l(2),f("ngModel",e.AccessTypeID),s("value",3)("name","group_write"+o)("id","group_write"+o)}}function _a(i,p){if(i&1){let e=y();n(0,"div",42)(1,"div",43)(2,"table",44)(3,"thead",45)(4,"tr")(5,"th",46),c(6,"Name"),a(),n(7,"th",47)(8,"span",48),c(9,"No Access"),a(),n(10,"input",49),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlet))}),a()(),n(11,"th",50)(12,"span",48),c(13,"Peek"),a(),n(14,"input",51),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlet))}),a()(),n(15,"th",52)(16,"span",48),c(17,"Read"),a(),n(18,"input",53),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlet))}),a()(),n(19,"th",54)(20,"span",48),c(21,"Write"),a(),n(22,"input",55),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.checkAll,t)||(r.checkAll=t),u(t)}),w("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlet))}),a()()()(),n(23,"tbody"),_(24,da,11,17,"tr",56),a()()(),n(25,"div",57)(26,"table",58)(27,"thead",45)(28,"tr",18)(29,"th",46),c(30,"Name"),a(),n(31,"th",47),c(32," No Access "),a(),n(33,"th",47),c(34,"Peek"),a(),n(35,"th",47),c(36,"Read"),a(),n(37,"th",47),c(38," Write "),a()()(),n(39,"tbody"),_(40,ua,11,17,"tr",56),a()()(),n(41,"div",59)(42,"div",29)(43,"div",30)(44,"div",60)(45,"sales-person-selector",61),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.SalesID,t)||(r.formData.User.SalesID=t),u(t)}),a()()(),n(46,"div",30)(47,"div",60)(48,"ng-select",62),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.DoctorID,t)||(r.formData.User.DoctorID=t),u(t)}),c(49," >"),a(),n(50,"label",63),c(51,"Choose a Doctor"),a()()()()(),n(52,"div",64)(53,"div",29)(54,"div",30)(55,"div",31)(56,"input",65),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.FirstName,t)||(r.formData.User.FirstName=t),u(t)}),a(),n(57,"label",66),c(58,"First Name"),a()()(),n(59,"div",30)(60,"div",31)(61,"input",67),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.LastName,t)||(r.formData.User.LastName=t),u(t)}),a(),n(62,"label",68),c(63,"Last Name"),a()()()(),n(64,"div",29)(65,"div",30)(66,"div",31)(67,"input",69),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.Phone,t)||(r.formData.User.Phone=t),u(t)}),a(),n(68,"label",70),c(69,"Phone"),a()()(),n(70,"div",30)(71,"div",60)(72,"ng-select",71),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.formData.User.NotificationOutletID,t)||(r.formData.User.NotificationOutletID=t),u(t)}),a(),n(73,"label",72),c(74,"Notification Outlet"),a()()()()(),n(75,"div",73)(76,"div",29)(77,"div",30)(78,"mat-slide-toggle",74),w("change",function(t){d(e);let r=m(2);return u(r.formData.User.TOTPEnabled=t.checked)}),c(79," Enable Two Factor Authentication "),a()()()()()}if(i&2){let e=m(2);l(10),f("ngModel",e.checkAll),s("value",0),l(4),f("ngModel",e.checkAll),s("value",1),l(4),f("ngModel",e.checkAll),s("value",2),l(4),f("ngModel",e.checkAll),s("value",3),l(2),s("ngForOf",e.formData.Outlet),l(16),s("ngForOf",e.formData.OutletGroup),l(4),s("ngClass",S(22,pt,e.IsNotEmpty(e.formData.User.SalesID))),l(),f("ngModel",e.formData.User.SalesID),l(2),s("ngClass",S(24,pt,e.IsNotEmpty(e.formData.User.DoctorID))),l(),f("ngModel",e.formData.User.DoctorID),s("items",e.options.Doctors),l(8),f("ngModel",e.formData.User.FirstName),l(5),f("ngModel",e.formData.User.LastName),l(6),f("ngModel",e.formData.User.Phone),l(4),s("ngClass",S(26,pt,e.IsNotEmpty(e.formData.User.NotificationOutletID))),l(),f("ngModel",e.formData.User.NotificationOutletID),s("items",e.outletListenNotifications),l(6),s("checked",e.formData.User.TOTPEnabled)}}function ga(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",6)(1,"actions")(2,"a",7),c(3,"Cancel"),a(),n(4,"button",8),w("click",function(){d(e);let t=W(11),r=m();return u(r.submit(t))}),c(5),a()(),n(6,"content")(7,"div",9)(8,"div",10)(9,"div",11)(10,"form",12,0)(12,"div",13)(13,"div",14)(14,"h3"),c(15,"Login Information"),a()(),_(16,ma,32,28,"div",15),a()()(),n(17,"div",16)(18,"div",17)(19,"div",14)(20,"h3"),c(21,"Group"),a(),n(22,"small",18),c(23),a()(),n(24,"div",19)(25,"ng-select",20),v("ngModelChange",function(t){d(e);let r=m();return h(r.formData.UserGroup,t)||(r.formData.UserGroup=t),u(t)}),a()()()()(),n(26,"ul",21)(27,"li",22)(28,"button",23),c(29," Outlets "),a()(),n(30,"li")(31,"button",24),c(32," Linked ID "),a()(),n(33,"li",22)(34,"button",25),c(35," Information "),a()(),n(36,"li",22)(37,"button",26),c(38," Outlet Group "),a()(),_(39,pa,3,0,"li",27),a(),_(40,_a,80,28,"div",28),a()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(13,ia)),l(3),q(" ",e.isNew?"Save":"Update"," "),l(11),s("ngIf",e.formData.User),l(7),Ue("",e.formData.UserGroup.length," out of ",e.options.Groups.length," selected"),l(2),f("ngModel",e.formData.UserGroup),s("items",e.options.Groups)("multiple",!0),l(14),s("ngIf",e.formData.User.TOTPEnabled),l(),s("ngIf",e.formData.User)}}var Je=class i extends Te{constructor(e,o,t,r,x,H){super(e,o,"user/UserLoader/Form",t);this.toaster=r;this.router=x;this.roleService=H}checkAll=-1;isAssigned=!1;isNew;reSubmit=0;outletListenNotifications;postBindForm(e){this.menuData.H=e.PageTitle,this.isNew=this.data.Config.isNew,this.options.Groups.forEach(o=>o.checked=!!this.formData.UserGroup.find(t=>t===o.ID)),this.formData.Outlet.forEach(o=>{o.AccessTypeID&&(this.isAssigned=!0)}),this.filterOutletNotifications()}filterOutletNotifications(){this.outletListenNotifications=this.formData.Outlet.filter(e=>e.AccessTypeID==3)}submit(e){if(this.checkAll!=-1&&(this.isAssigned=!0),this.formData.Outlet.forEach(o=>{o.AccessTypeID>0&&(this.isAssigned=!0)}),!this.isAssigned&&!this.reSubmit)this.toaster.error("This User not Assigned to any Outlet , Re-Submit to Ignore this",P.Warning),this.reSubmit++;else{if(this.formData.UserGroup.length===0){this.toaster.error("This User not Assigned to any Group",P.Warning);return}if(e.form.valid&&this.formData?.User?.NewPassword===this.formData?.User?.RePassword)this.onSubmit("user/user/Submit",!0);else{e.form.markAllAsTouched();return}}}onSubmitSuccess(){this.isNew?this.toaster.success("Success create user",P.Success):this.toaster.success("Success update user",P.Success),this.router.navigate(["/menu/Users/User/Users"])}SelectAll(e,o){o.forEach(t=>{t.AccessTypeID=e}),this.filterOutletNotifications()}onChangeOutletGroupAccess(e,o){this.formData.Outlet=this.formData.Outlet.map(t=>(t.GroupID===e&&(t.AccessTypeID=o),t))}IsNotEmpty=de.IsNotEmpty;inputFirstName(e){this.formData.User.FirstName=e}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N),g(L),g(X),g(G))};static \u0275cmp=D({type:i,selectors:[["CustomerDisplay-users-formData"]],features:[U],decls:1,vars:1,consts:[["userForm","ngForm"],["userLogin","ngModel"],["email","ngModel"],["passwordCtrl","ngModel"],["rePassword","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["role","button",1,"btn","btn-outline-secondary","me-5",3,"routerLink"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","pt-5"],[1,"row","mb-5"],[1,"col-md-7"],[1,"user-form"],[1,"card","mb-2"],[1,"card-header"],["class","card-body",4,"ngIf"],[1,"col-md-5"],[1,"card","mb-2",2,"max-height","235px","overflow","auto"],[1,"text-secondary"],[1,"card-body"],["appendTo","body","id","group","bindLabel","Name","bindValue","ID",3,"ngModelChange","ngModel","items","multiple"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","outlet-tab","data-bs-toggle","tab","data-bs-target","#outlet","role","tab","aria-selected","true",1,"nav-link","active"],["id","linked-tab","data-bs-toggle","tab","data-bs-target","#linked","role","tab","aria-selected","false",1,"nav-link"],["id","information-tab","data-bs-toggle","tab","data-bs-target","#information","role","tab","aria-selected","false",1,"nav-link"],["id","outlet-group-tab","data-bs-toggle","tab","data-bs-target","#outlet-group","role","tab","aria-selected","true",1,"nav-link"],["class","nav-item",4,"ngIf"],["class","tab-content border border-top-0 bg-white","id","myTabContent",4,"ngIf"],[1,"row"],[1,"col-sm-6"],[1,"form-floating-outline"],["id","userLogin","type","text","placeholder","Login ID","required","","autofocus","","name","userLogin",1,"form-control",3,"ngModelChange","change","ngModel","ngClass"],["for","userLogin"],[1,"invalid-feedback"],["id","email","type","Email","placeholder","Email","name","email","email","",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","email"],["id","pass","autofocus","","required","","name","pass",1,"p-change-password",3,"ngModelChange","toggleMask","feedback","ngModel","ngClass","required"],["for","password"],[1,"invalid-feedback","d-block"],["required","","id","repass","name","repass",1,"p-change-password",3,"ngModelChange","ngModel","toggleMask","feedback","ngClass","required"],["id","fa-tab","data-bs-toggle","tab","data-bs-target","#fa","role","tab","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border","border-top-0","bg-white"],["id","outlet","role","tabpanel",1,"tab-pane","fade","mt-0","p-5","show","active"],[1,"table","table-bordered","border-bottom"],[1,"thead-light"],[1,"border-end"],[1,"border-end","text-center",2,"width","90px"],[1,"d-block","border-bottom","pb-3","mb-3"],["type","radio","name","noaccess",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can check Inventory at outlet",1,"border-end","text-center",2,"width","90px"],["type","radio","name","peek",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can check Inventory + Orders at outlet",1,"border-end","text-center",2,"width","90px"],["type","radio","name","read",3,"ngModelChange","change","ngModel","value"],["matTooltipPosition","above","matTooltip","User can create new orders at outlet",1,"text-center",2,"width","90px"],["type","radio","name","write",3,"ngModelChange","change","ngModel","value"],[4,"ngFor","ngForOf"],["id","outlet-group","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],[1,"table","table-bordered","mb-5"],["id","linked","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],[1,"form-floating-outline",3,"ngClass"],["id","inputSales","matTooltip","During SELL the SalesPerson will automatically be assigned to your selection",1,"productform",3,"ngModelChange","ngModel"],["id","doctor","bindLabel","Name","bindValue","ID","matTooltip","During Prepaid Package the Doctor will automatically be assigned to your selection",1,"productform","w-100",3,"ngModelChange","ngModel","items"],["for","doctor",1,"ng-select"],["id","information","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],["id","firstname","type","text","placeholder","First Name",1,"form-control",3,"ngModelChange","ngModel"],["for","firstname"],["id","lastname","type","text","placeholder","Last Name",1,"form-control",3,"ngModelChange","ngModel"],["for","lastname"],["id","phone","type","tel","placeholder","Phone",1,"form-control",3,"ngModelChange","ngModel"],["for","phone"],["id","notification","bindLabel","Name","bindValue","ID",1,"productform","w-100",3,"ngModelChange","ngModel","items"],["for","notification",1,"ng-select"],["id","fa","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],["labelPosition","before",3,"change","checked"],[2,"text-align","center"],["type","radio",3,"ngModelChange","ngModel","name","value","id"],["type","radio",3,"ngModelChange","ngModel","value","name","id"]],template:function(o,t){o&1&&_(0,ga,41,14,"mainpanel-cmp",5),o&2&&s("ngIf",t.data&&t.formData)},dependencies:[z,F,T,V,k,Bt,me,Ae,R,Ot,Se,Ht,A,Wt,Q,Z,Ze,We,Ei,xi],styles:["p-password.p-change-password>div.p-password.p-component.p-inputwrapper{width:100%!important} p-password.p-change-password>div.p-password.p-component.p-inputwrapper>input{width:100%!important;height:58px!important;padding-left:15px!important;border:1px solid #dee2e6} p-password.p-change-password>div.p-password.p-component.p-inputwrapper>eyeicon.p-element.p-icon-wrapper{margin-right:8px}"]})};var fa=()=>["/menu/Users/User/Users/Form"],ha=i=>({"bg-gradient-warning":i}),Ri=()=>["/menu/Users/User/Users/Info"],dt=i=>({ID:i}),va=()=>["/menu/Users/User/Groups/Info"];function ba(i,p){if(i&1){let e=y();n(0,"button",20),w("click",function(){d(e);let t=m(2);return u(t.openExportModal())}),b(1,"i",21),c(2," Export"),a()}}function wa(i,p){if(i&1){let e=y();n(0,"a",24),w("click",function(){d(e);let t=m(3);return u(t.httpPutListID("user/user/UnSuspend","Are you sure you want to unsuspend selected user(s)?"))}),b(1,"i",25),c(2,"\xA0UnSuspend "),a()}}function ya(i,p){if(i&1){let e=y();n(0,"a",24),w("click",function(){d(e);let t=m(3);return u(t.httpPutListID("user/user/Suspend","Are you sure you want to suspend selected user(s)?"))}),b(1,"i",26),c(2,"\xA0Suspend "),a()}}function xa(i,p){if(i&1){let e=y();n(0,"a",27),w("click",function(){d(e);let t=m(3);return u(t.httpDeleteListID("user/user"))}),b(1,"i",28),c(2," Delete"),a()}}function Ca(i,p){if(i&1&&(ve(0),_(1,wa,3,0,"a",22)(2,ya,3,0,"a",22)(3,xa,3,0,"a",23),be()),i&2){let e=m(2);l(),s("ngIf",e.roleService.users.Edit),l(),s("ngIf",e.roleService.users.Edit),l(),s("ngIf",e.roleService.users.Delete)}}function Sa(i,p){i&1&&(n(0,"a",29),c(1,"Add "),a()),i&2&&s("routerLink",I(1,fa))}function Da(i,p){if(i&1){let e=y();n(0,"div",30)(1,"h6"),c(2,"Group"),a(),n(3,"ng-select",31),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.GroupID,t)||(r.pageData.Filter.GroupID=t),u(t)}),a(),n(4,"h6"),c(5,"Status"),a(),n(6,"ng-select",32),v("ngModelChange",function(t){d(e);let r=m(2);return h(r.pageData.Filter.Bin,t)||(r.pageData.Filter.Bin=t),u(t)}),a()()}if(i&2){let e=m(2);l(3),f("ngModel",e.pageData.Filter.GroupID),s("items",e.pageData.Options.Groups),l(3),f("ngModel",e.pageData.Filter.Bin),s("items",e.pageData.Options.BinList)}}function Ia(i,p){if(i&1){let e=y();n(0,"th",33)(1,"input",34),w("change",function(t){d(e);let r=m(2);return u(r.onSelectAllData(t.target.checked))}),a()()}}function Ta(i,p){if(i&1){let e=y();n(0,"input",40),v("ngModelChange",function(t){d(e);let r=m(2).$implicit;return h(r.selected,t)||(r.selected=t),u(t)}),a()}if(i&2){let e=m(2).$implicit;f("ngModel",e.selected)}}function Ma(i,p){if(i&1&&(n(0,"td",33),_(1,Ta,1,1,"input",39),a()),i&2){let e=m().$implicit;l(),s("ngIf",e.Type==0)}}function Ea(i,p){if(i&1&&(n(0,"a",41)(1,"s"),c(2),a()()),i&2){let e=m().$implicit;s("routerLink",I(3,Ri))("queryParams",S(4,dt,e.ID)),l(2),q(" ",e.LoginID," ")}}function ka(i,p){if(i&1&&(n(0,"a",41),c(1),a()),i&2){let e=m().$implicit;s("routerLink",I(3,Ri))("queryParams",S(4,dt,e.ID)),l(),q(" ",e.LoginID," ")}}function Ua(i,p){if(i&1&&(n(0,"li",42)(1,"a",43),c(2),a()()),i&2){let e=p.$implicit;l(),s("routerLink",I(3,va))("queryParams",S(4,dt,e.GroupID)),l(),q(" ",e.Name," ")}}function Fa(i,p){if(i&1&&(n(0,"tr",35),_(1,Ma,2,1,"td",11),n(2,"td"),_(3,Ea,3,6,"a",36)(4,ka,2,6,"a",36),a(),n(5,"td"),c(6),a(),n(7,"td"),c(8),a(),n(9,"td")(10,"ul",37),_(11,Ua,3,6,"li",38),a()(),n(12,"td"),c(13),O(14,"date"),a(),n(15,"td"),c(16),a()()),i&2){let e=p.$implicit,o=m(2);s("ngClass",S(16,ha,e.Type==2)),l(),s("ngIf",o.roleService.users.Delete||o.roleService.users.Edit),l(2),s("ngIf",e.Bin),l(),s("ngIf",!e.Bin),l(2),C(e.Name),l(2),C(e.Email),l(3),s("ngForOf",e.Groups),l(2),C(ye(14,13,e.LastLogin,"dd MMM HH:mm")),l(2),Ee("text-success",e.TOTPEnabled)("text-danger",!e.TOTPEnabled),l(),q(" ",e.TOTPEnabled?"Enabled":"Disabled","")}}function Va(i,p){if(i&1){let e=y();n(0,"mat-paginator",44),w("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),a()}if(i&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function Pa(i,p){if(i&1){let e=y();n(0,"mainpanel-cmp",2),v("textChange",function(t){d(e);let r=m();return h(r.pageData.Filter.Text,t)||(r.pageData.Filter.Text=t),u(t)}),w("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),v("filterChange",function(t){d(e);let r=m();return h(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"actions"),_(2,ba,3,0,"button",3)(3,Ca,4,3,"ng-container",4)(4,Sa,2,2,"a",5),a(),n(5,"filters"),_(6,Da,7,4,"ng-template",null,0,se),a(),n(8,"content")(9,"div",6)(10,"div",7)(11,"table",8),w("matSortChange",function(t){d(e);let r=m();return u(r.sortData(t))}),n(12,"thead",9)(13,"tr",10),_(14,Ia,2,0,"th",11),n(15,"th",12),c(16,"LOGIN ID"),a(),n(17,"th",13),c(18,"NAME"),a(),n(19,"th",14),c(20,"EMAIL"),a(),n(21,"th",15),c(22,"GROUPS"),a(),n(23,"th",16),c(24,"LAST LOGIN"),a(),n(25,"th",17),c(26,"2 FA"),a()()(),n(27,"tbody"),_(28,Fa,17,18,"tr",18),a()()(),n(29,"div"),_(30,Va,1,3,"mat-paginator",19),a()()()()}if(i&2){let e=m();s("pageData",e.menuData),f("text",e.pageData.Filter.Text),s("isFilterOnDropdown",!1),f("filter",e.pageData.Filter),l(2),s("ngIf",e.roleService.global.Export),l(),s("ngIf",e.getSelectedData().length>0),l(),s("ngIf",e.roleService.users.Create),l(10),s("ngIf",e.roleService.users.Delete||e.roleService.users.Edit),l(14),s("ngForOf",e.data.Data),l(2),s("ngIf",e.pagination.listTotal>0)}}var $e=class i extends ${constructor(e,o,t,r,x,H){super(e,o,"user/user/List","user/UserLoader/List",r);this.csvConverter=t;this.roleService=x;this.matDialog=H}originalData;preInitList(){this.pageData.Filter.Bin=!1}postInit(e){this.originalData=e.Data}sortData(e){let o=this.data.Data.slice();if(!e.active||e.direction===""){this.data.Data=this.originalData;return}this.data.Data=o.sort((t,r)=>{let x=e.direction==="asc";switch(t.LoginID=t.LoginID==null?"":t.LoginID,r.LoginID=r.LoginID==null?"":r.LoginID,t.Name=t.Name==null?"":t.Name,r.Name=r.Name==null?"":r.Name,t.Email=t.Email==null?"":t.Email,r.Email=r.Email==null?"":r.Email,t.Phone=t.Phone==null?"":t.Phone,r.Phone=r.Phone==null?"":r.Phone,e.active){case"loginID":return this.compare(t.LoginID.toLocaleLowerCase(),r.LoginID.toLocaleLowerCase(),x);case"name":return this.compare(t.Name.toLocaleLowerCase(),r.Name.toLocaleLowerCase(),x);case"email":return this.compare(t.Email.toLocaleLowerCase(),r.Email.toLocaleLowerCase(),x);case"phone":return this.compare(t.Phone,r.Phone,x);case"lastLogin":return this.compare(t.LastLogin,r.LastLogin,x);case"TOTPEnabled":return this.compare(t.TOTPEnabled?"Enabled":"Disabled",r.LastLogin?"Enabled":"Disabled",x);default:return 0}})}openExportModal(){this.matDialog.open(_i,{data:{title:"Users",exportTypes:[{ID:"user/user/List",Value:"Default",FileName:"Users"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(gi),g(L),g(G),g(ci))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],features:[U],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[4,"ngIf"],["role","button","class","btn btn-success ms-2",3,"routerLink",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light"],[1,"header"],["style","width: 14px",4,"ngIf"],["mat-sort-header","loginID",1,"align-left",2,"width","250px"],["mat-sort-header","name",1,"align-left",2,"width","170px"],["mat-sort-header","email",1,"align-left",2,"width","110px"],[2,"width","280px"],["mat-sort-header","lastLogin",1,"align-left",2,"width","120px"],["mat-sort-header","TOTPEnabled",2,"width","120px"],["class","border-bottom",3,"ngClass",4,"ngFor","ngForOf"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["role","button","value","Suspend","matTooltipPosition","above","matTooltip","Suspend","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["role","button","class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["role","button","value","Suspend","matTooltipPosition","above","matTooltip","Suspend",1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-unlock"],["aria-hidden","true",1,"fa","fa-lock"],["role","button",1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa-solid","fa-trash"],["role","button",1,"btn","btn-success","ms-2",3,"routerLink"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["appendTo","body","bindLabel","Key","bindValue","Value","placeholder","Choose a Status...",3,"ngModelChange","ngModel","items"],[2,"width","14px"],["type","checkbox",3,"change"],[1,"border-bottom",3,"ngClass"],[3,"routerLink","queryParams",4,"ngIf"],[1,"nav"],["class","nav-item me-8",4,"ngFor","ngForOf"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"routerLink","queryParams"],[1,"nav-item","me-8"],[1,"nav-link",2,"padding","0",3,"routerLink","queryParams"],[3,"page","length","pageSize","pageIndex"]],template:function(o,t){o&1&&_(0,Pa,31,10,"mainpanel-cmp",1),o&2&&s("ngIf",t.data)},dependencies:[z,F,T,V,k,Ce,R,A,J,Q,$t,ei,Z,ce]})};var La=()=>["/menu/Users/History/User_Update_History"],Na=i=>({UserID:i}),Ra=i=>({ID:i});function Aa(i,p){if(i&1&&(n(0,"a",51),b(1,"i",52),c(2,"\xA0Update History "),a()),i&2){let e=m().ngIf;s("routerLink",I(2,La))("queryParams",S(3,Na,e.User.ID))}}function Ga(i,p){if(i&1&&(n(0,"a",53),b(1,"i",54),c(2," Edit "),a()),i&2){let e=m().ngIf;s("queryParams",S(1,Ra,e.User.ID))}}function Oa(i,p){if(i&1){let e=y();n(0,"a",55),w("click",function(){d(e);let t=m().ngIf,r=m();return u(r.delete(t.User.ID))}),b(1,"i",56),c(2,"Delete "),a()}}function Wa(i,p){if(i&1&&(n(0,"div",57),b(1,"span",58),n(2,"span",59),c(3),a()()),i&2){let e=p.$implicit;l(3),C(e.Name)}}function Ba(i,p){i&1&&(n(0,"li",19)(1,"button",60),c(2,"2 FA"),a()())}function Ha(i,p){i&1&&b(0,"i",63)}function ja(i,p){i&1&&b(0,"i",63)}function qa(i,p){i&1&&b(0,"i",63)}function za(i,p){i&1&&b(0,"i",63)}function Xa(i,p){if(i&1&&(n(0,"tr")(1,"td"),c(2),a(),n(3,"td",61),_(4,Ha,1,0,"i",62),a(),n(5,"td",61),_(6,ja,1,0,"i",62),a(),n(7,"td",61),_(8,qa,1,0,"i",62),a(),n(9,"td",61),_(10,za,1,0,"i",62),a()()),i&2){let e=p.$implicit;l(2),C(e.Name),l(2),s("ngIf",e.AccessTypeID==0),l(2),s("ngIf",e.AccessTypeID==1),l(2),s("ngIf",e.AccessTypeID==2),l(2),s("ngIf",e.AccessTypeID==3)}}function Qa(i,p){i&1&&b(0,"i",63)}function Ya(i,p){i&1&&b(0,"i",63)}function Ka(i,p){i&1&&b(0,"i",63)}function Za(i,p){i&1&&b(0,"i",63)}function Ja(i,p){if(i&1&&(n(0,"tr")(1,"td"),c(2),a(),n(3,"td",61),_(4,Qa,1,0,"i",62),a(),n(5,"td",61),_(6,Ya,1,0,"i",62),a(),n(7,"td",61),_(8,Ka,1,0,"i",62),a(),n(9,"td",61),_(10,Za,1,0,"i",62),a()()),i&2){let e=p.$implicit;l(2),C(e.Name),l(2),s("ngIf",e.AccessTypeID==0),l(2),s("ngIf",e.AccessTypeID==1),l(2),s("ngIf",e.AccessTypeID==2),l(2),s("ngIf",e.AccessTypeID==3)}}function $a(i,p){if(i&1&&(n(0,"span")(1,"b"),c(2,"Modified:"),a(),c(3),a()),i&2){let e=m().ngIf;l(3),Ue(" ",e.DocumentHistory==null?null:e.DocumentHistory.Modified.Date," / ",e.DocumentHistory==null?null:e.DocumentHistory.Modified.User," ")}}function eo(i,p){if(i&1&&(n(0,"mainpanel-cmp",1)(1,"actions"),_(2,Aa,3,5,"a",2)(3,Ga,3,3,"a",3)(4,Oa,3,0,"a",4),a(),n(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"h3"),c(12,"Login Information"),a()(),n(13,"div",10)(14,"div",11)(15,"div",12),b(16,"POS-info-page-input",13),a(),n(17,"div",12),b(18,"POS-info-page-input",14),a()()()()(),n(19,"div",15)(20,"div",16)(21,"div",9)(22,"h3"),c(23,"Group"),a()(),n(24,"div",10)(25,"div",11),_(26,Wa,4,1,"div",17),a()()()()(),n(27,"ul",18)(28,"li",19)(29,"button",20),c(30,"Outlets"),a()(),n(31,"li")(32,"button",21),c(33,"Linked ID"),a()(),n(34,"li",19)(35,"button",22),c(36,"Information"),a()(),n(37,"li",19)(38,"button",23),c(39,"Outlet Group"),a()(),_(40,Ba,3,0,"li",24),a(),n(41,"div",25)(42,"div",26)(43,"table",27)(44,"thead",28)(45,"tr")(46,"th",29),c(47,"Name"),a(),n(48,"th",30),c(49," No Access "),a(),n(50,"th",31),c(51," Peek "),a(),n(52,"th",32),c(53," Read "),a(),n(54,"th",33),c(55," Write "),a()()(),n(56,"tbody"),_(57,Xa,11,5,"tr",34),a()()(),n(58,"div",35)(59,"table",36)(60,"thead",28)(61,"tr",37)(62,"th",29),c(63,"Name"),a(),n(64,"th",30),c(65,"No Access"),a(),n(66,"th",30),c(67,"Peek"),a(),n(68,"th",30),c(69,"Read"),a(),n(70,"th",30),c(71,"Write"),a()()(),n(72,"tbody"),_(73,Ja,11,5,"tr",34),a()()(),n(74,"div",38)(75,"div",11)(76,"div",12),b(77,"POS-info-page-input",39),a(),n(78,"div",12),b(79,"POS-info-page-input",40),a()()(),n(80,"div",41)(81,"div",11)(82,"div",12),b(83,"POS-info-page-input",42),a(),n(84,"div",12),b(85,"POS-info-page-input",43),a()(),n(86,"div",11)(87,"div",12),b(88,"POS-info-page-input",44),a(),n(89,"div",12),b(90,"POS-info-page-input",45),a()()(),n(91,"div",46)(92,"div",11)(93,"div",12),b(94,"POS-info-page-input",47),a()()()(),n(95,"div",48),b(96,"i",49),n(97,"span")(98,"b"),c(99,"Created:"),a(),c(100),a(),_(101,$a,4,2,"span",50),a()()()()),i&2){let e=p.ngIf,o=m();s("pageData",o.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),s("ngIf",!o.role.users.LogRestriction),l(),s("ngIf",o.role.users.Edit),l(),s("ngIf",o.role.users.Delete),l(12),s("inputValue",e==null||e.User==null?null:e.User.LoginID),l(2),s("inputValue",e==null||e.User==null?null:e.User.Email),l(8),s("ngForOf",e.UserGroup),l(14),s("ngIf",e.User.TOTPEnabled),l(17),s("ngForOf",e.UserOutlet),l(16),s("ngForOf",e.UserOutletGroup),l(4),s("inputValue",e==null||e.User==null||e.User.Sales==null?null:e.User.Sales.Name),l(2),s("inputValue",e==null||e.User==null||e.User.Doctor==null?null:e.User.Doctor.Name),l(4),s("inputValue",e==null||e.User==null?null:e.User.FirstName),l(2),s("inputValue",e==null||e.User==null?null:e.User.LastName),l(3),s("inputValue",e==null||e.User==null?null:e.User.Phone),l(2),s("inputValue",e==null||e.User==null||e.User.NotificationOutlet==null?null:e.User.NotificationOutlet.Name),l(4),s("inputValue",!(e==null||e.User==null)&&e.User.TOTPEnabled?"Enabled":"Disabled"),l(6),Ue(" ",e.DocumentHistory==null?null:e.DocumentHistory.Created.Date," / ",e.DocumentHistory==null?null:e.DocumentHistory.Created.User," "),l(),s("ngIf",e.DocumentHistory==null?null:e.DocumentHistory.Modified.Date)}}var et=class i extends Ge{constructor(e,o,t){super(e);this.httpService=o;this.route=t}infoEndpoint="user/userloader";data$;toastr=oe(L);router=oe(X);role=oe(G);ngOnInit(){let e=this.route.snapshot.queryParams.ID;this.data$=this.menuData$.pipe(ge(()=>this.httpService.get(`/API/${this.infoEndpoint}/${e}`))).pipe(Le(o=>this.menuData.H=`${o.User.Name} Info`))}delete(e){confirm("Are you sure you want to delete this user?")&&this.httpService.delete("/api/user/user",{body:[e]}).subscribe(()=>{this.toastr.success("Success delete user",P.Success),this.router.navigate(["/menu/Users/User/Users"])})}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N))};static \u0275cmp=D({type:i,selectors:[["POS-user-info"]],features:[U],decls:2,vars:3,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary me-3","role","button","matTooltipPosition","above","matTooltip","User Update History","target","_blank",3,"routerLink","queryParams",4,"ngIf"],["routerLink","/menu/Users/User/Users/Form","class","btn btn-outline-secondary",3,"queryParams",4,"ngIf"],["role","button","class","btn btn-danger ms-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row","mb-5"],[1,"col-md-7"],[1,"card","mb-2"],[1,"card-header"],[1,"card-body"],[1,"row"],[1,"col-sm-6"],["labelValue","LoginID",3,"inputValue"],["labelValue","Email",3,"inputValue"],[1,"col-md-5"],[1,"card","mb-2",2,"max-height","235px","overflow","auto"],["class","col-3 d-flex align-items-center",4,"ngFor","ngForOf"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","outlet-tab","data-bs-toggle","tab","data-bs-target","#outlet","role","tab","aria-selected","true",1,"nav-link","active"],["id","linked-tab","data-bs-toggle","tab","data-bs-target","#linked","role","tab","aria-selected","false",1,"nav-link"],["id","information-tab","data-bs-toggle","tab","data-bs-target","#information","role","tab","aria-selected","false",1,"nav-link"],["id","outlet-group-tab","data-bs-toggle","tab","data-bs-target","#outlet-group","role","tab","aria-selected","true",1,"nav-link"],["class","nav-item",4,"ngIf"],["id","myTabContent",1,"tab-content","border","border-top-0","bg-white"],["id","outlet","role","tabpanel",1,"tab-pane","fade","mt-0","p-5","show","active"],[1,"table","table-bordered","border-bottom"],[1,"thead-light"],[1,"border-end"],[1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can check Inventory at outlet",1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can check Inventory + Orders at outlet",1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can create new orders at outlet",1,"text-center",2,"width","90px"],[4,"ngFor","ngForOf"],["id","outlet-group","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],[1,"table","table-bordered","mb-5"],[1,"text-secondary"],["id","linked","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],["labelValue","Sales Person","matTooltip","During SELL the SalesPerson will automatically be assigned to your selection",3,"inputValue"],["labelValue","Doctor","matTooltip","During Prepaid Package the Doctor will automatically be assigned to your selection",3,"inputValue"],["id","information","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],["labelValue","First Name",3,"inputValue"],["labelValue","Last Name",3,"inputValue"],["labelValue","Phone",3,"inputValue"],["labelValue","Notification Outlet",3,"inputValue"],["id","fa","role","tabpanel",1,"tab-pane","fade","mt-0","p-5"],["labelValue","Two Factor Authentication",3,"inputValue"],[1,"alert","alert-warning","mt-5"],["aria-hidden","true",1,"fa","fa-file-text-o"],[4,"ngIf"],["role","button","matTooltipPosition","above","matTooltip","User Update History","target","_blank",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-clock-rotate-left"],["routerLink","/menu/Users/User/Users/Form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa-solid","fa-pen-to-square"],["role","button",1,"btn","btn-danger","ms-3",3,"click"],[1,"fa-solid","fa-trash","me-2"],[1,"col-3","d-flex","align-items-center"],[1,"me-5",2,"width","5px","height","5px","background","black","border-radius","100%"],[2,"font-size","14px"],["id","fa-tab","data-bs-toggle","tab","data-bs-target","#fa","role","tab","aria-selected","false",1,"nav-link"],[1,"text-center"],["class","fa-solid fa-check",4,"ngIf"],[1,"fa-solid","fa-check"]],template:function(o,t){o&1&&(_(0,eo,102,22,"mainpanel-cmp",0),O(1,"async")),o&2&&s("ngIf",re(1,1,t.data$))},dependencies:[F,T,V,k,Z,Ie,xe]})};var to=i=>({ID:i}),io=i=>({"border-top-0":i});function no(i,p){if(i&1){let e=y();n(0,"a",36),w("click",function(){d(e);let t=m().ngIf,r=m();return u(r.delete(t.Group.ID))}),b(1,"i",37),c(2,"Delete "),a()}}function ao(i,p){if(i&1&&(n(0,"a",38),b(1,"i",39),c(2," Edit "),a()),i&2){let e=m().ngIf;s("queryParams",S(1,to,e.Group.ID))}}function oo(i,p){if(i&1&&(n(0,"div",44)(1,"div",45),c(2),a()()),i&2){let e=p.$implicit,o=p.index;l(),Re(S(3,io,o/4>=1)),l(),q(" ",e," ")}}function ro(i,p){if(i&1&&(n(0,"div",40)(1,"div",41),c(2),a(),n(3,"div",42)(4,"div",6),_(5,oo,3,5,"div",43),a()()()),i&2){let e=p.$implicit;l(2),q(" ",e.Name," "),l(3),s("ngForOf",e.ListRole)}}function lo(i,p){i&1&&b(0,"i",48)}function so(i,p){i&1&&b(0,"i",48)}function co(i,p){i&1&&b(0,"i",48)}function mo(i,p){i&1&&b(0,"i",48)}function po(i,p){if(i&1&&(n(0,"tr")(1,"td"),c(2),a(),n(3,"td",46),_(4,lo,1,0,"i",47),a(),n(5,"td",46),_(6,so,1,0,"i",47),a(),n(7,"td",46),_(8,co,1,0,"i",47),a(),n(9,"td",46),_(10,mo,1,0,"i",47),a()()),i&2){let e=p.$implicit;l(2),C(e.Name),l(2),s("ngIf",e.AccessTypeID==0),l(2),s("ngIf",e.AccessTypeID==1),l(2),s("ngIf",e.AccessTypeID==2),l(2),s("ngIf",e.AccessTypeID==3)}}function uo(i,p){if(i&1&&(n(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2),_(3,no,3,0,"a",3)(4,ao,3,3,"a",4),a()(),n(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div"),b(10,"POS-info-page-input",8),a(),n(11,"ul",9)(12,"li",10)(13,"button",11),c(14," Permission "),a()(),n(15,"li",10)(16,"button",12),c(17," Outlet "),a()(),n(18,"li",10)(19,"button",13),c(20," Description "),a()(),n(21,"li",10)(22,"button",14),c(23," Restriction "),a()()(),n(24,"div",15)(25,"div",16),_(26,ro,6,2,"div",17),a(),n(27,"div",18)(28,"div",19)(29,"table",20)(30,"thead",21)(31,"tr")(32,"th",22),c(33,"Name"),a(),n(34,"th",23),c(35," No Access "),a(),n(36,"th",24),c(37," Peek "),a(),n(38,"th",25),c(39," Read "),a(),n(40,"th",26),c(41," Write "),a()()(),n(42,"tbody"),_(43,po,11,5,"tr",27),a()()()(),n(44,"div",28)(45,"div",6)(46,"div",29),b(47,"POS-info-page-input",30),a()()(),n(48,"div",31)(49,"div",6)(50,"div",32),b(51,"POS-info-page-input",33),a(),n(52,"div",32),b(53,"POS-info-page-input",34),a()(),n(54,"div",6)(55,"div",32),b(56,"POS-info-page-input",35),a()()()()()()()()()),i&2){let e=p.ngIf,o=m();s("pageData",o.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),l(3),s("ngIf",o.role.users.Delete),l(),s("ngIf",o.role.users.Edit),l(6),s("inputValue",e.Group.Name),l(16),s("ngForOf",e.Permission),l(17),s("ngForOf",e.Outlet),l(4),s("inputValue",e.Group.Description),l(4),s("inputValue",e.Group.DataDaysRange),l(2),s("inputValue",e.Group.LiveChatEnabled?"Yes":"No"),l(3),s("inputValue",e.Group.Brand==null?null:e.Group.Brand.Name)}}var tt=class i extends Ge{constructor(e,o,t){super(e);this.httpService=o;this.route=t}role=oe(G);toastr=oe(L);router=oe(X);title=oe(Rt);infoEndpoint="user/GroupLoader";data$;ngOnInit(){let e=this.route.snapshot.queryParams.ID;this.data$=this.menuData$.pipe(ge(()=>this.httpService.get(`/API/${this.infoEndpoint}/${e}`))).pipe(Le(o=>{this.menuData.H=`${o.Group.Name} Info`,this.title.setTitle(this.title.getTitle().split("| ")[0]+`| ${this.menuData.H}`)}))}delete(e){confirm("Are you sure you want to delete this group?")&&this.httpService.delete("/api/user/group",{body:[e]}).subscribe(()=>{this.toastr.success("Success delete group",P.Success),this.router.navigate(["/menu/Users/User/Groups"])})}static \u0275fac=function(o){return new(o||i)(g(E),g(M),g(N))};static \u0275cmp=D({type:i,selectors:[["POS-groups-info"]],features:[U],decls:2,vars:3,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown",4,"ngIf"],[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"btn-group","ms-5"],["role","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["routerLink","/menu/Users/User/Groups/Form","class","btn btn-outline-secondary",3,"queryParams",4,"ngIf"],[1,"container-fluid","p-10"],[1,"row"],[1,"col"],["labelValue","Group Name",3,"inputValue"],["id","myTabs","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","permission-tab","data-bs-toggle","tab","data-bs-target","#permission","role","tab","aria-selected","true",1,"nav-link","active"],["id","outlet-tab","data-bs-toggle","tab","data-bs-target","#outlet","role","tab","aria-selected","false",1,"nav-link"],["id","description-tab","data-bs-toggle","tab","data-bs-target","#description","role","tab","aria-selected","false",1,"nav-link"],["id","description-tab","data-bs-toggle","tab","data-bs-target","#restriction","role","tab","aria-selected","false",1,"nav-link"],["id","myTabContecnt",1,"tab-content"],["id","permission","role","tabpanel",1,"tab-pane","fade","show","active","mt-0","p-5"],["class","row pt-8",4,"ngFor","ngForOf"],["id","outlet","role","tabpanel",1,"tab-pane","fade","show","mt-0","p-7"],[1,"row","border-top-0"],[1,"table","table-bordered"],[1,"thead-light","w-250px"],[1,"border-end"],[1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can check Inventory at outlet",1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can check Inventory + Orders at outlet",1,"border-end","text-center",2,"width","90px"],["matTooltipPosition","above","matTooltip","User can create new orders at outlet",1,"text-center",2,"width","90px"],[4,"ngFor","ngForOf"],["id","description","role","tabpanel",1,"tab-pane","face","show","mt-5","p-5"],[1,"col-sm-12"],["inputType","textarea","labelValue","Description",3,"inputValue"],["id","restriction","role","tabpanel",1,"tab-pane","fade","show","mt-5","p-5"],[1,"col-sm-6"],["labelValue","Data Days Range",3,"inputValue"],["labelValue","Live Chat Enabled",3,"inputValue"],["labelValue","Brand",3,"inputValue"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-trash","me-2"],["routerLink","/menu/Users/User/Groups/Form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa-solid","fa-pen-to-square"],[1,"row","pt-8"],[1,"col-sm-2","border","fw-bold","p-3","text-center",2,"background-color","#f6f6f6"],[1,"col-sm-10"],["class","col-md-3 px-0",4,"ngFor","ngForOf"],[1,"col-md-3","px-0"],[1,"p-3","border","border-start-0"],[1,"text-center"],["class","fa-solid fa-check",4,"ngIf"],[1,"fa-solid","fa-check"]],template:function(o,t){o&1&&(_(0,uo,57,12,"mainpanel-cmp",0),O(1,"async")),o&2&&s("ngIf",re(1,1,t.data$))},dependencies:[F,T,V,k,Z,Ie,xe]})};var _o=[{path:"History/Login_History",component:Be},{path:"History/User_Update_History",component:Ve},{path:"History/User_Update_History",component:Ve},{path:"User/Roles/Info",component:Qe},{path:"User/Roles/Form",component:Xe},{path:"User/Roles",component:Ye},{path:"User/Groups/Info",component:tt},{path:"User/Groups/Form",component:je},{path:"User/Groups",component:ze},{path:"User/Users/Form",component:Je},{path:"User/Users/Info",component:et},{path:"User/Users",component:$e},{path:"",redirectTo:"User/Users",pathMatch:"full"}],it=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=he({type:i});static \u0275inj=fe({imports:[ct.forChild(_o),ct]})};var Ai=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=he({type:i});static \u0275inj=fe({providers:[ce],imports:[st,it,wi,st,hi,jt,mi,li,qt,ui,pi,di,Di,Ii,yi,ai,Qt,oi,ni,Kt,ri,si,ti,ii,Ui,bi,Si,Jt,Ti,Pi,We,ki,Ci]})};export{Ai as UsersModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as H,c as d,h as x,n as i,o as I}from"./chunk-LHWN2J4H.js";import{$a as E,Fa as v,Fc as h,Gc as l,Ia as m,La as L,Va as n,Xa as T,_a as y,cd as w,dd as D,fb as b,ia as u,qa as f,ra as O,va as g}from"./chunk-H55AJAX5.js";import{a}from"./chunk-KW4B7WMB.js";var W=(()=>{class s{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:H()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;interactionInProgress=!1;constructor(t,e,o,r,c,p){this.platformId=t,this.el=e,this.zone=o,this.config=r,this.renderer=c,this.viewContainer=p}ngAfterViewInit(){D(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.el.nativeElement.querySelector(".p-component");e||(e=this.getTarget(this.el.nativeElement)),e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}setAriaDescribedBy(){let t=this.getOption("id");t&&this.active&&this.renderer.setAttribute(this.el.nativeElement,"aria-describedby",t)}removeAriaDescribedBy(){this.renderer.removeAttribute(this.el.nativeElement,"aria-describedby")}ngOnChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=a(a({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(i.hasClass(t.relatedTarget,"p-tooltip")||i.hasClass(t.relatedTarget,"p-tooltip-text")||i.hasClass(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()}))}this.interactionInProgress=!0}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?i.appendChild(this.container,this.el.nativeElement):i.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener()),this.setAriaDescribedBy()}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",e=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&this.align()},100):this.align(),i.fadeIn(this.container,250),this.getOption("tooltipZIndex")==="auto"?d.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&d.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t instanceof T){let e=this.viewContainer.createEmbeddedView(t);e.detectChanges(),e.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break}}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),e=t.left+i.getWindowScrollLeft(),o=t.top+i.getWindowScrollTop();return{left:e,top:o}}else return{left:0,top:0}}alignRight(){this.preAlign("right");let t=this.activeElement,e=this.getHostOffset(),o=e.left+i.getOuterWidth(t),r=e.top+(i.getOuterHeight(t)-i.getOuterHeight(this.container))/2;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")?i.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement:this.el.nativeElement}alignLeft(){this.preAlign("left");let t=this.getHostOffset(),e=t.left-i.getOuterWidth(this.container),o=t.top+(i.getOuterHeight(this.el.nativeElement)-i.getOuterHeight(this.container))/2;this.container.style.left=e+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let t=this.getHostOffset(),e=t.left+(i.getOuterWidth(this.el.nativeElement)-i.getOuterWidth(this.container))/2,o=t.top-i.getOuterHeight(this.container);this.container.style.left=e+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let t=this.getHostOffset(),e=t.left+(i.getOuterWidth(this.el.nativeElement)-i.getOuterWidth(this.container))/2,o=t.top+i.getOuterHeight(this.el.nativeElement);this.container.style.left=e+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=a(a({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return i.hasClass(t,"p-inputwrapper")?i.findSingle(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let e="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?e+" "+this.getOption("tooltipStyleClass"):e}isOutOfBounds(){let t=this.container.getBoundingClientRect(),e=t.top,o=t.left,r=i.getOuterWidth(this.container),c=i.getOuterHeight(this.container),p=i.getViewport();return o+r>p.width||o<0||e<0||e+c>p.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new I(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),t==="focus"||t==="both"){let e=this.el.nativeElement.querySelector(".p-component");e||(e=this.getTarget(this.el.nativeElement))}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):i.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.removeAriaDescribedBy(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&d.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(e){return new(e||s)(n(L),n(m),n(v),n(x),n(y),n(E))};static \u0275dir=O({type:s,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",h],showDelay:[2,"showDelay","showDelay",l],hideDelay:[2,"hideDelay","hideDelay",l],life:[2,"life","life",l],positionTop:[2,"positionTop","positionTop",l],positionLeft:[2,"positionLeft","positionLeft",l],autoHide:[2,"autoHide","autoHide",h],fitContent:[2,"fitContent","fitContent",h],hideOnEscape:[2,"hideOnEscape","hideOnEscape",h],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[b,g]})}return s})(),N=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=f({type:s});static \u0275inj=u({imports:[w]})}return s})();export{W as a,N as b};
|