dealpos 25.35.2 → 25.36.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.
Files changed (168) hide show
  1. package/browser/{chunk-NT4HXAUQ.js → chunk-2AKQJVEF.js} +1 -1
  2. package/browser/{chunk-M4GPXLRN.js → chunk-2KYHJWM4.js} +1 -1
  3. package/browser/{chunk-EYCYL6AL.js → chunk-2NPKEKTC.js} +1 -1
  4. package/browser/{chunk-7B7ON5E6.js → chunk-2RC5LEZJ.js} +1 -1
  5. package/browser/{chunk-P5KSSZK7.js → chunk-33U3HZTY.js} +1 -1
  6. package/browser/{chunk-K6OQJCJ6.js → chunk-3CAN5VUX.js} +1 -1
  7. package/browser/{chunk-MHBOKOSN.js → chunk-3LBZWLLT.js} +1 -1
  8. package/browser/chunk-4CICJ5O2.js +1 -0
  9. package/browser/{chunk-M6C7J4PM.js → chunk-4JAQKA6N.js} +1 -1
  10. package/browser/{chunk-XVFIUKXR.js → chunk-4RFXQF2Y.js} +1 -1
  11. package/browser/{chunk-AZT6QE56.js → chunk-52EOLV7I.js} +1 -1
  12. package/browser/{chunk-37ZQRASR.js → chunk-5CTVOG3M.js} +1 -1
  13. package/browser/{chunk-34GJS34C.js → chunk-5Q5T67DH.js} +1 -1
  14. package/browser/{chunk-L2RZWAX3.js → chunk-5UCQBOD6.js} +1 -1
  15. package/browser/{chunk-2ULGMZHE.js → chunk-6GLD5CWJ.js} +1 -1
  16. package/browser/{chunk-H6BFHXJX.js → chunk-6MXSAOYM.js} +1 -1
  17. package/browser/{chunk-LCUJHXDF.js → chunk-6N4AU5UX.js} +1 -1
  18. package/browser/{chunk-5IY3H7NG.js → chunk-6NGZRFK5.js} +1 -1
  19. package/browser/{chunk-4YPJAUSY.js → chunk-6SRLAAI5.js} +1 -1
  20. package/browser/{chunk-Q76KX5JJ.js → chunk-6XUOOR3K.js} +1 -1
  21. package/browser/{chunk-DXROSW6B.js → chunk-7A3GWGOJ.js} +1 -1
  22. package/browser/chunk-7LBFB7CT.js +222 -0
  23. package/browser/{chunk-XFTFPZJA.js → chunk-7LHQ4DZG.js} +1 -1
  24. package/browser/{chunk-AVWEAAID.js → chunk-A5K2PQQ4.js} +1 -1
  25. package/browser/chunk-AAMY5NIV.js +56 -0
  26. package/browser/{chunk-L755Z2UU.js → chunk-AHYXCJZT.js} +1 -1
  27. package/browser/{chunk-XP2OIGWH.js → chunk-APZ5IBSQ.js} +1 -1
  28. package/browser/{chunk-B7E3DL2Y.js → chunk-ATKMC4PC.js} +1 -1
  29. package/browser/{chunk-WDIJOVDQ.js → chunk-B24VHNT4.js} +1 -1
  30. package/browser/{chunk-33JZH2UR.js → chunk-BAXEGRPF.js} +1 -1
  31. package/browser/{chunk-PPWHSAY6.js → chunk-C6ARCDXZ.js} +1 -1
  32. package/browser/{chunk-VYUMNVGD.js → chunk-C73IEBHE.js} +1 -1
  33. package/browser/{chunk-YWF2JYRN.js → chunk-CAMFGC4E.js} +1 -1
  34. package/browser/{chunk-LKZE2HD4.js → chunk-CFHK44JI.js} +1 -1
  35. package/browser/{chunk-AAJJTF33.js → chunk-CGESXTHC.js} +1 -1
  36. package/browser/{chunk-E5UK2WMM.js → chunk-CI7FRQUA.js} +1 -1
  37. package/browser/{chunk-QMPKHU2W.js → chunk-CILKE53W.js} +1 -1
  38. package/browser/{chunk-CZTNOFUC.js → chunk-CJJOOS3O.js} +1 -1
  39. package/browser/{chunk-R5W6OHJL.js → chunk-DILWG5FB.js} +1 -1
  40. package/browser/{chunk-CGTCYQPU.js → chunk-DJ7VQO4C.js} +1 -1
  41. package/browser/{chunk-X4VB4DKS.js → chunk-DL663E4R.js} +1 -1
  42. package/browser/chunk-DNC7PRJV.js +1 -0
  43. package/browser/{chunk-HNBLWEAJ.js → chunk-DXI2XA4V.js} +1 -1
  44. package/browser/{chunk-7VKHUEU6.js → chunk-DXPRJ5LT.js} +1 -1
  45. package/browser/{chunk-ZCKT34V7.js → chunk-E66PWTHL.js} +1 -1
  46. package/browser/{chunk-FBTUV7TY.js → chunk-EGVOGJRD.js} +1 -1
  47. package/browser/{chunk-6CUC5ZVY.js → chunk-ELYQEBKR.js} +1 -1
  48. package/browser/{chunk-FIS6Q5OG.js → chunk-EW42TM43.js} +1 -1
  49. package/browser/{chunk-FLCMFLQ7.js → chunk-F5ERAH5D.js} +1 -1
  50. package/browser/{chunk-LFRQUM6J.js → chunk-FL5GLDA5.js} +1 -1
  51. package/browser/{chunk-EXCJNRRJ.js → chunk-FQX3G3SJ.js} +1 -1
  52. package/browser/{chunk-U7VNF37P.js → chunk-FWFSFB4T.js} +1 -1
  53. package/browser/{chunk-OBH4MNSM.js → chunk-GCFUFHPD.js} +1 -1
  54. package/browser/chunk-GOJ5YFDH.js +125 -0
  55. package/browser/{chunk-GEWY5VWO.js → chunk-GSQJO7HP.js} +1 -1
  56. package/browser/{chunk-K76G23WC.js → chunk-GVJYCZNZ.js} +1 -1
  57. package/browser/{chunk-7ENHJR7R.js → chunk-HA2GY7XU.js} +1 -1
  58. package/browser/{chunk-3JF2MACF.js → chunk-HK2LGXLR.js} +1 -1
  59. package/browser/{chunk-WQRN2UCW.js → chunk-HOTMNALX.js} +1 -1
  60. package/browser/{chunk-ZR4YNJBZ.js → chunk-HR64LU2Y.js} +1 -1
  61. package/browser/{chunk-KVPIGIZJ.js → chunk-HRMJHSXP.js} +1 -1
  62. package/browser/{chunk-5MGHIIE6.js → chunk-HW6UF72Y.js} +2 -2
  63. package/browser/{chunk-WC4MWHJJ.js → chunk-I5T3YLJW.js} +1 -1
  64. package/browser/{chunk-GFFJDDRS.js → chunk-IJEMVPPA.js} +1 -1
  65. package/browser/{chunk-Z7WYC46Q.js → chunk-IROB4ID4.js} +1 -1
  66. package/browser/{chunk-6V2AFFCL.js → chunk-ITEHBWAC.js} +1 -1
  67. package/browser/{chunk-XY7FDLSK.js → chunk-IUKQX4L5.js} +1 -1
  68. package/browser/{chunk-AYBLEFQB.js → chunk-IUVGWNPX.js} +1 -1
  69. package/browser/{chunk-22OO6V42.js → chunk-IYORR7HN.js} +1 -1
  70. package/browser/{chunk-WDS6MTSX.js → chunk-J5MFQCBO.js} +2 -2
  71. package/browser/chunk-JAK4NHAQ.js +1 -0
  72. package/browser/{chunk-3VKLFFAF.js → chunk-JCT27TRG.js} +1 -1
  73. package/browser/{chunk-LG5UTNBU.js → chunk-JNJJYDP7.js} +1 -1
  74. package/browser/{chunk-O7H6QE5A.js → chunk-JQCW7L5P.js} +1 -1
  75. package/browser/{chunk-SJIEANJU.js → chunk-JTNYYPAS.js} +1 -1
  76. package/browser/{chunk-3USDNSPA.js → chunk-JXKXAC3X.js} +1 -1
  77. package/browser/{chunk-4YAMWP7V.js → chunk-JZMT6UGS.js} +1 -1
  78. package/browser/chunk-KA7FD33G.js +231 -0
  79. package/browser/{chunk-ZWEHXDXR.js → chunk-KEP7R6ZO.js} +1 -1
  80. package/browser/{chunk-GOQ3ZCDK.js → chunk-KG4DA565.js} +1 -1
  81. package/browser/{chunk-3J6SPHP2.js → chunk-KJ6NWQLT.js} +1 -1
  82. package/browser/{chunk-BMNZHUI6.js → chunk-KKBNUMTH.js} +1 -1
  83. package/browser/{chunk-ETHIPTBJ.js → chunk-KLBDRVPT.js} +1 -1
  84. package/browser/{chunk-GFDEHNOL.js → chunk-L4DGSDB5.js} +1 -1
  85. package/browser/{chunk-XXGDZ22Y.js → chunk-LC5CKSH6.js} +1 -1
  86. package/browser/{chunk-3YXP5Q5V.js → chunk-LHP3ECFW.js} +1 -1
  87. package/browser/{chunk-5VFKAJV6.js → chunk-M6P3HBWJ.js} +1 -1
  88. package/browser/{chunk-LYGTJSME.js → chunk-MLLJKAHD.js} +1 -1
  89. package/browser/{chunk-4BQ6OFGZ.js → chunk-MRXZBHTG.js} +1 -1
  90. package/browser/chunk-MYN3Q2VC.js +1 -0
  91. package/browser/{chunk-HV7GI3KE.js → chunk-N6W7PM3O.js} +1 -1
  92. package/browser/{chunk-WOBW4V44.js → chunk-NOHWS6IE.js} +1 -1
  93. package/browser/{chunk-Q5YFG526.js → chunk-NQRCFNVO.js} +1 -1
  94. package/browser/{chunk-GE53XQ2Q.js → chunk-NRAL4DDE.js} +1 -1
  95. package/browser/{chunk-MDXFAEYC.js → chunk-NUW4MIT6.js} +1 -1
  96. package/browser/{chunk-45Q3TR52.js → chunk-NUWSYMBU.js} +1 -1
  97. package/browser/{chunk-IQO7F652.js → chunk-OBNSNZON.js} +1 -1
  98. package/browser/{chunk-NHVOGEOO.js → chunk-OLALZT3L.js} +1 -1
  99. package/browser/{chunk-JFAIF63Q.js → chunk-OLFWZQFT.js} +1 -1
  100. package/browser/{chunk-IUXGZNAZ.js → chunk-ONRDB4BH.js} +1 -1
  101. package/browser/{chunk-SO3WWYN3.js → chunk-P26BSMOR.js} +1 -1
  102. package/browser/{chunk-VDKUDQZO.js → chunk-P2QGWS2U.js} +1 -1
  103. package/browser/{chunk-RXY2UMNO.js → chunk-PJFHECMK.js} +1 -1
  104. package/browser/{chunk-J4SLL7XI.js → chunk-PLN3EBU6.js} +1 -1
  105. package/browser/{chunk-5IG3NZVF.js → chunk-PUIYTAAZ.js} +1 -1
  106. package/browser/{chunk-M7KP6PSY.js → chunk-Q24EPOM2.js} +1 -1
  107. package/browser/{chunk-7HI7DCIJ.js → chunk-QUEQTUK6.js} +1 -1
  108. package/browser/chunk-QWGJZVAV.js +3 -0
  109. package/browser/chunk-R5L6W563.js +12 -0
  110. package/browser/chunk-R5YABUYV.js +1 -0
  111. package/browser/{chunk-FWDPAH4G.js → chunk-RFGEPCV2.js} +1 -1
  112. package/browser/chunk-RKIGNDD4.js +1 -0
  113. package/browser/{chunk-NI6KAEXM.js → chunk-RSDCLKM5.js} +1 -1
  114. package/browser/{chunk-Q5AWNSSD.js → chunk-S3FHQFMA.js} +1 -1
  115. package/browser/{chunk-UBWK4RWH.js → chunk-SQGLTFQU.js} +1 -1
  116. package/browser/{chunk-WZEGUTUH.js → chunk-SXVO2KX6.js} +1 -1
  117. package/browser/{chunk-GK45LVUY.js → chunk-T7MWWMHI.js} +1 -1
  118. package/browser/{chunk-QLFKPTZA.js → chunk-TIN7QXDO.js} +1 -1
  119. package/browser/chunk-TKOYQNM7.js +1 -0
  120. package/browser/chunk-TLOTIYIE.js +193 -0
  121. package/browser/{chunk-LXZS75G2.js → chunk-TOH3UHX6.js} +1 -1
  122. package/browser/{chunk-F3ZJVCRK.js → chunk-TYJFPB6K.js} +1 -1
  123. package/browser/{chunk-TOWVTOFV.js → chunk-TYLM2YM3.js} +1 -1
  124. package/browser/chunk-U6JBP3LR.js +1 -0
  125. package/browser/{chunk-NPHAQCON.js → chunk-UBNLFU2O.js} +1 -1
  126. package/browser/{chunk-WEJYVCCX.js → chunk-UHJRDVRX.js} +1 -1
  127. package/browser/{chunk-BBRBME3A.js → chunk-UXBSTSDB.js} +1 -1
  128. package/browser/{chunk-VJWRLXE4.js → chunk-VB5GF2CR.js} +1 -1
  129. package/browser/{chunk-SVW3DCFV.js → chunk-VGF6UZQS.js} +1 -1
  130. package/browser/{chunk-6E4UKP3I.js → chunk-VLMJLWKE.js} +4 -4
  131. package/browser/{chunk-W64M5WBH.js → chunk-VOTLCXGS.js} +1 -1
  132. package/browser/{chunk-BMQKMDMC.js → chunk-VZX4F3F5.js} +1 -1
  133. package/browser/{chunk-SZKR6UME.js → chunk-WAXN55HD.js} +1 -1
  134. package/browser/{chunk-LYOMQKFY.js → chunk-WEPGXYEY.js} +1 -1
  135. package/browser/{chunk-FOVCORMR.js → chunk-WT7N3EIH.js} +1 -1
  136. package/browser/{chunk-3AY3BZNI.js → chunk-WXF4SX6R.js} +1 -1
  137. package/browser/{chunk-4DIUJNZF.js → chunk-WXGNPWQE.js} +1 -1
  138. package/browser/{chunk-677WPFLK.js → chunk-X6LIVARI.js} +1 -1
  139. package/browser/{chunk-S6TMUVGC.js → chunk-X7G45LGM.js} +1 -1
  140. package/browser/{chunk-M2DBAY4P.js → chunk-XBA2ECU6.js} +1 -1
  141. package/browser/chunk-XFHWDM44.js +285 -0
  142. package/browser/{chunk-OZOAAIBM.js → chunk-XIVHSSRN.js} +1 -1
  143. package/browser/{chunk-V4OYKDE2.js → chunk-XNYNBS44.js} +2 -2
  144. package/browser/{chunk-ZYTLUHOS.js → chunk-XOZ72TC6.js} +1 -1
  145. package/browser/{chunk-SRISQ4G6.js → chunk-XWD54EOV.js} +1 -1
  146. package/browser/{chunk-VMIXOKE7.js → chunk-Y2KIIQWZ.js} +1 -1
  147. package/browser/{chunk-OGUGTEB3.js → chunk-Y4MOEVLJ.js} +1 -1
  148. package/browser/{chunk-YQCR57JN.js → chunk-Y4VV2HSW.js} +1 -1
  149. package/browser/{chunk-4L4E5MG3.js → chunk-Z32NRI5K.js} +1 -1
  150. package/browser/{chunk-CNY7II6H.js → chunk-Z3CSYV25.js} +1 -1
  151. package/browser/{chunk-AW3VIYPK.js → chunk-Z5L5OWOY.js} +1 -1
  152. package/browser/{chunk-A477JKU4.js → chunk-ZUHEKCUE.js} +1 -1
  153. package/browser/index.html +3 -3
  154. package/browser/{main-WYOICQDK.js → main-VU2TFHVD.js} +2 -2
  155. package/package.json +1 -1
  156. package/browser/chunk-2BRCOLHG.js +0 -1
  157. package/browser/chunk-3GB5DSK3.js +0 -1
  158. package/browser/chunk-3PYW74LR.js +0 -193
  159. package/browser/chunk-66WXWMUG.js +0 -1
  160. package/browser/chunk-73ESQDPI.js +0 -125
  161. package/browser/chunk-7NMXZ55P.js +0 -56
  162. package/browser/chunk-AYEQLVMX.js +0 -506
  163. package/browser/chunk-FY4JABYL.js +0 -1
  164. package/browser/chunk-INDKSR3O.js +0 -3
  165. package/browser/chunk-LHGABVF6.js +0 -12
  166. package/browser/chunk-LI3MYO4W.js +0 -1
  167. package/browser/chunk-R3IC3THI.js +0 -1
  168. package/browser/chunk-XGQGO4PE.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as Hi}from"./chunk-AW3VIYPK.js";import{a as Gi}from"./chunk-33VUJMCJ.js";import{a as Oi,b as Wi}from"./chunk-XFTFPZJA.js";import{b as Bi}from"./chunk-GFDEHNOL.js";import{a as Ai}from"./chunk-M6C7J4PM.js";import{a as Qe}from"./chunk-6V2AFFCL.js";import{a as Ue}from"./chunk-Z7WYC46Q.js";import{a as ze}from"./chunk-SDCEXGQQ.js";import{a as ne,b as vi}from"./chunk-FLCMFLQ7.js";import{a as ci}from"./chunk-EYCZLRFX.js";import"./chunk-XP2OIGWH.js";import{a as ke,b as Ri}from"./chunk-3USDNSPA.js";import{b as Li}from"./chunk-34GJS34C.js";import"./chunk-NHVOGEOO.js";import"./chunk-AYBLEFQB.js";import"./chunk-LCUJHXDF.js";import{e as Pi}from"./chunk-3VKLFFAF.js";import{b as fi}from"./chunk-NI6KAEXM.js";import"./chunk-3RK6DDJD.js";import"./chunk-L2EDFSBR.js";import"./chunk-MUCQWTKH.js";import{a as Ni}from"./chunk-A6YCCT6G.js";import{p as pi,q as _i}from"./chunk-GEWY5VWO.js";import"./chunk-TEFNN3TY.js";import"./chunk-GOQ3ZCDK.js";import{e as hi}from"./chunk-XY7FDLSK.js";import"./chunk-JKYTSC2D.js";import{a as Si}from"./chunk-KUUYZ5UQ.js";import{c as gi,d as Ee,e as ki}from"./chunk-ZR4YNJBZ.js";import{a as di}from"./chunk-VQ7WKMGF.js";import{a as Ui,b as Vi}from"./chunk-VYUMNVGD.js";import{b as Fi}from"./chunk-3J6SPHP2.js";import{b as Ci}from"./chunk-XVFIUKXR.js";import{a as ri,b as li,c as si}from"./chunk-AVWEAAID.js";import{a as oe}from"./chunk-LXZS75G2.js";import"./chunk-2ULGMZHE.js";import{c as bi}from"./chunk-YQCR57JN.js";import"./chunk-MHBOKOSN.js";import"./chunk-S6TMUVGC.js";import"./chunk-PPWHSAY6.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import"./chunk-6ZOGADBZ.js";import{a as wi,b as Me}from"./chunk-7ENHJR7R.js";import{h as U,i as Ei}from"./chunk-SO3WWYN3.js";import"./chunk-ETHIPTBJ.js";import{a as qe,b as k}from"./chunk-M7KP6PSY.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{F as Ti,G as Mi,a as ai,e as mi,t as ui,w as xi}from"./chunk-677WPFLK.js";import{b as K,c as oi}from"./chunk-CIBQBSM6.js";import{O as Ii,P as je,o as Di}from"./chunk-L2RZWAX3.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import{e as q}from"./chunk-VMY3JQDA.js";import{g as Te,l as yi}from"./chunk-D35OBUDE.js";import{ea as _t,l as ti,n as ii,y as ni}from"./chunk-567HXZXC.js";import"./chunk-WEJYVCCX.js";import"./chunk-AAJJTF33.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{D as Zt,E as $t,a as zt,b as De,c as ie,d as Qt,h as G,i as Xt,k as Yt,o as O,p as Kt,r as He,y as Ie,z as Jt}from"./chunk-P7HKWFZT.js";import{c as ei}from"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import{a as ge,d as W}from"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$a as l,$b as Gt,Ac as Z,Bc as ee,Ca as It,Db as B,E as yt,Eb as Ut,Fa as pt,Fc as pe,Gb as Vt,Hb as Ft,Ib as n,Jb as o,K as he,Ka as Tt,Kb as v,Kc as Bt,Lb as we,Mb as xe,Mc as _e,Nc as Ht,Ob as w,Od as N,Pb as Pt,Qa as Mt,Qb as b,Qd as Y,Rb as m,Rd as L,Sb as Lt,Tb as Rt,Td as ut,Ub as Ce,V as mt,Va as Et,Vb as Pe,Vd as A,Wc as X,Y as wt,Yc as P,Yd as E,Zb as Nt,Zc as M,_b as At,aa as Oe,cd as Se,db as y,dc as z,ec as c,ed as te,fa as We,fc as x,gc as H,gd as qt,hc as Le,ia as xt,jc as g,jd as dt,k as ht,ka as ve,kb as D,kc as f,la as Ct,lb as be,lc as h,na as F,o as vt,ob as V,pc as Ot,qb as _,qc as I,rc as C,sc as Wt,t as Fe,u as bt,ua as St,ub as ye,va as d,vb as s,wa as u,wb as kt,wd as jt,xa as Dt,xb as ue,zb as Be,zc as R}from"./chunk-DZT5XHBQ.js";import{a as st,b as ct}from"./chunk-7DCB7DB2.js";function Zi(i,p){if(i&1){let e=w();n(0,"div",12)(1,"h6"),c(2,"User"),o(),n(3,"ng-select",13),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.ID,t)||(r.pageData.Filter.ID=t),u(t)}),o(),n(4,"h6"),c(5,"Type"),o(),n(6,"ng-select",14),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.LoginTypeID,t)||(r.pageData.Filter.LoginTypeID=t),u(t)}),o()()}if(i&2){let e=m(2);l(3),g("ngModel",e.pageData.Filter.ID),s("items",e.pageData.Options.User),l(3),g("ngModel",e.pageData.Filter.LoginTypeID),s("items",e.pageData.Options.LoginTypes)}}function $i(i,p){if(i&1&&(n(0,"tr",15)(1,"td"),c(2),o(),n(3,"td"),c(4),o(),n(5,"td"),c(6),o(),n(7,"td"),c(8),o(),n(9,"td"),c(10),R(11,"date"),o()()),i&2){let e=p.$implicit;l(2),x(e._source.log.LoginID),l(2),x(e._source.log.typeID),l(2),x(e._source.log.AppID?e._source.log.AppID:"-"),l(2),x(e._source.log.IP),l(2),x(ee(11,5,e._source["@timestamp"],"dd MMM yyyy HH:mm:ss"))}}function en(i,p){if(i&1){let e=w();n(0,"mat-paginator",16),b("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),o()}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 tn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),h("filterChange",function(t){d(e);let r=m();return f(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,Zi,7,4,"ng-template",null,0,pe),o(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th",7),c(11,"Login ID"),o(),n(12,"th",8),c(13,"Type"),o(),n(14,"th",8),c(15,"App ID"),o(),n(16,"th",8),c(17,"IP Address"),o(),n(18,"th",9),c(19,"Log In Time"),o()()(),n(20,"tbody"),_(21,$i,12,8,"tr",10),o()(),n(22,"div"),_(23,en,1,3,"mat-paginator",11),o()()()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),l(21),s("ngForOf",e.data.hits),l(2),s("ngIf",e.pagination.listTotal>0)}}var Xe=class i extends oe{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)(y(k),y(E))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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,a){e&1&&_(0,tn,24,6,"mainpanel-cmp",1),e&2&&s("ngIf",a.data)},dependencies:[P,M,U,G,O,ne,q,te],encapsulation:2})};var nn=()=>["/menu/Users/User/Users/Form"],on=i=>({ID:i});function an(i,p){if(i&1){let e=w();n(0,"div",10)(1,"h6"),c(2,"User"),o(),n(3,"autocompleteV2",11),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.UserID,t)||(r.pageData.Filter.UserID=t),u(t)}),o(),n(4,"h6"),c(5,"Row Count"),o(),n(6,"input",12),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.RowCount,t)||(r.pageData.Filter.RowCount=t),u(t)}),o()()}if(i&2){let e=m(2);l(3),g("ngModel",e.pageData.Filter.UserID),l(3),g("ngModel",e.pageData.Filter.RowCount),s("max",1e4)}}function rn(i,p){i&1&&(n(0,"th"),c(1,"User"),o())}function ln(i,p){if(i&1&&(n(0,"a",16),c(1),o()),i&2){let e=m(2).$implicit;s("routerLink",I(3,nn))("queryParams",C(4,on,e._source.log.parentId)),l(),x(e._source.log.username)}}function sn(i,p){if(i&1&&(n(0,"span"),c(1),o()),i&2){let e=m(2).$implicit;l(),x(e._source.log.username)}}function cn(i,p){if(i&1&&(n(0,"td"),_(1,ln,2,6,"a",15)(2,sn,2,1,"span",7),o()),i&2){let e=m(3);l(),s("ngIf",e.role.users.Edit),l(),s("ngIf",!e.role.users.Edit)}}function mn(i,p){if(i&1&&(n(0,"tr",13),_(1,cn,3,2,"td",7),n(2,"td"),c(3),R(4,"date"),o(),n(5,"td"),c(6),o(),v(7,"td",14),R(8,"newlines"),o()),i&2){let e=p.$implicit,a=m(2);l(),s("ngIf",a.data.showColumnUser),l(2),x(ee(4,4,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),x(e._source.log.creator),l(),s("innerHtml",Z(8,7,e._source.log.note),Et)}}function pn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2),h("textChange",function(t){d(e);let r=m();return f(r.pageData.Filter.Note,t)||(r.pageData.Filter.Note=t),u(t)}),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),h("filterChange",function(t){d(e);let r=m();return f(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,an,7,3,"ng-template",null,0,pe),o(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr"),_(10,rn,2,0,"th",7),n(11,"th"),c(12,"Modified"),o(),n(13,"th"),c(14,"Modify By"),o(),n(15,"th"),c(16,"Note"),o()()(),n(17,"tbody"),_(18,mn,9,9,"tr",8),o()(),n(19,"div")(20,"mat-paginator",9),b("page",function(t){d(e);let r=m();return u(r.onPaginationChange(t))}),o()()()()()()}if(i&2){let e=m();s("pageData",e.menuData),g("text",e.pageData.Filter.Note),s("isFilterOnDropdown",!1),g("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 Ne=class i extends oe{constructor(e,a,t,r){super(e,a,"user/user/UpdateList","user/UserLoader/HistoryLoader",null,t);this.httpService=a;this.role=r}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(N),y(W))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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(a,t){a&1&&_(0,pn,21,9,"mainpanel-cmp",1),a&2&&s("ngIf",t.data)},dependencies:[P,M,L,U,ie,G,O,ne,Me,Ti,te,Di],encapsulation:2})};var dn=()=>["/menu/Users/User/Groups"],un=i=>({selected:i}),_n=i=>({"border-top-0":i}),gn=(i,p)=>({"bg-gradient-warning":i,"border-top-0":p});function fn(i,p){i&1&&(n(0,"span",50),c(1," Name required."),o())}function hn(i,p){if(i&1){let e=w();we(0),n(1,"div",59)(2,"div",60)(3,"div",61)(4,"input",62),b("click",function(){let t=d(e).$implicit,r=m(4);return u(r.onSelectRole(t.ID))}),o()(),n(5,"label",63),c(6),o()()(),xe()}if(i&2){let e=p.$implicit,a=p.index,t=m().$implicit,r=m(3);l(2),s("matTooltip",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole?"":e.Description),l(),s("ngClass",C(8,_n,a/4>=1)),l(),Ce("id",t.Name+a),s("disabled",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole)("checked",r.formData.Roles.indexOf(e.ID)>-1),l(),Ce("for",t.Name+a),s("ngClass",Wt(10,gn,e.Type==1,a/4>=1)),l(),x(e.Model)}}function vn(i,p){if(i&1){let e=w();we(0),n(1,"div",68)(2,"div",69)(3,"div",70)(4,"input",71),b("click",function(){let t=d(e).$implicit,r=m(6);return u(r.onSelectRole(t.ID))}),o()(),n(5,"label",72),c(6),o()()(),xe()}if(i&2){let e=p.$implicit,a=m().index,t=m(5);l(4),Ce("id",e.Name+"more"+a),s("checked",t.formData.Roles.indexOf(e.ID)>-1),l(),Ce("for",e.Name+"more"+a),Ce("matTooltip",e.Description),l(),x(e.Model)}}function bn(i,p){if(i&1&&(we(0),n(1,"div",67),_(2,vn,7,5,"ng-container",36),o(),xe()),i&2){let e=p.$implicit;l(2),s("ngForOf",e)}}function yn(i,p){if(i&1&&(n(0,"div",64)(1,"a",65),c(2,"More Permission"),o(),n(3,"div",66)(4,"div",57),_(5,bn,3,1,"ng-container",36),o()()()),i&2){let e=m().index,a=m(3);l(5),s("ngForOf",a.listMorePermission[e])}}function wn(i,p){if(i&1){let e=w();n(0,"div",51)(1,"div",52)(2,"div",53)(3,"p",54),c(4),o(),n(5,"input",55),b("change",function(t){let r=d(e).$implicit,S=m(3);return u(S.selectGroupRole(t.target.checked,r.ID))}),o()()(),n(6,"div",56)(7,"div",57),_(8,hn,7,13,"ng-container",36),o(),_(9,yn,6,1,"div",58),o()()}if(i&2){let e=p.$implicit,a=m(3);s("matTooltip",e.Name==a.userGroupName&&a.data.LastGroupWithUserRole?"You cannot edit this section because this Group is the last group with User Access":""),l(4),H(" ",e.Name," "),l(),s("disabled",e.Name==a.userGroupName&&a.data.LastGroupWithUserRole),l(3),s("ngForOf",e.ListRole),l(),s("ngIf",(e.ListMorePermission==null?null:e.ListMorePermission.length)>0)}}function xn(i,p){if(i&1){let e=w();n(0,"tr")(1,"td"),c(2),o(),n(3,"td",73)(4,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(5,"td",73)(6,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(7,"td",73)(8,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(9,"td",73)(10,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()()()}if(i&2){let e=p.$implicit,a=p.index;l(2),x(e.Name),l(2),Pe("name","noaccess",a,""),g("ngModel",e.AccessTypeID),s("value",0),l(2),Pe("name","peek",a,""),g("ngModel",e.AccessTypeID),s("value",1),l(2),Pe("name","read",a,""),g("ngModel",e.AccessTypeID),s("value",2),l(2),Pe("name","write",a,""),g("ngModel",e.AccessTypeID),s("value",3)}}function Cn(i,p){if(i&1){let e=w();n(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"input",10,0),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.Name,t)||(r.formData.Group.Name=t),u(t)}),o(),n(6,"label",11),c(7,"Group Name"),o(),_(8,fn,2,0,"span",12),o(),n(9,"ul",13)(10,"li",14)(11,"button",15),c(12," Permission "),o()(),n(13,"li",14)(14,"button",16),c(15," Outlet "),o()(),n(16,"li",14)(17,"button",17),c(18," Description "),o()(),n(19,"li",14)(20,"button",18),c(21," Restriction "),o()()(),n(22,"div",19)(23,"div",20),_(24,wn,10,5,"div",21),o(),n(25,"div",22)(26,"div",23)(27,"table",24)(28,"thead",25)(29,"tr")(30,"th",26),c(31,"Name"),o(),n(32,"th",27)(33,"span",28),c(34,"No Access"),o(),n(35,"input",29),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(36,"th",30)(37,"span",28),c(38,"Peek"),o(),n(39,"input",31),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(40,"th",32)(41,"span",28),c(42,"Read"),o(),n(43,"input",33),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(44,"th",34)(45,"span",28),c(46,"Write"),o(),n(47,"input",35),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()()()(),n(48,"tbody"),_(49,xn,11,17,"tr",36),o()()()(),n(50,"div",37)(51,"div",7)(52,"div",38)(53,"div",9)(54,"textarea",39),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.Description,t)||(r.formData.Group.Description=t),u(t)}),c(55," "),o(),n(56,"label",40),c(57,"Description"),o()()()()(),n(58,"div",41)(59,"div",7)(60,"div",42)(61,"div",9)(62,"input",43),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.DataDaysRange,t)||(r.formData.Group.DataDaysRange=t),u(t)}),o(),n(63,"label",44),c(64,"Data Days Range"),o()()(),n(65,"div",42)(66,"div",45)(67,"label"),c(68,"Live Chat Enabled"),o(),n(69,"radio-options",46),h("modelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.LiveChatEnabled,t)||(r.formData.Group.LiveChatEnabled=t),u(t)}),o()()()(),n(70,"div",7)(71,"div",42)(72,"div",47)(73,"ng-select",48),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.BrandID,t)||(r.formData.Group.BrandID=t),u(t)}),o(),n(74,"label",49),c(75,"Brand"),o()()()()()()()()()}if(i&2){let e=z(5),a=m(2);l(4),g("ngModel",a.formData.Group.Name),l(4),s("ngIf",e.invalid&&(e.dirty||e.touched)),l(16),s("ngForOf",a.options),l(11),g("ngModel",a.checkAll),s("value",0),l(4),g("ngModel",a.checkAll),s("value",1),l(4),g("ngModel",a.checkAll),s("value",2),l(4),g("ngModel",a.checkAll),s("value",3),l(2),s("ngForOf",a.formData.Outlets),l(5),g("ngModel",a.formData.Group.Description),l(8),g("ngModel",a.formData.Group.DataDaysRange),l(7),g("model",a.formData.Group.LiveChatEnabled),l(3),s("ngClass",C(18,un,a.formData.Group.BrandID)),l(),g("ngModel",a.formData.Group.BrandID),s("items",a.Brands)}}function Sn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"a",3),c(3,"Cancel"),o(),n(4,"button",4),b("click",function(){d(e);let t=m();return u(t.onSubmitForm())}),c(5," Submit "),o()(),n(6,"content"),_(7,Cn,76,20,"div",5),o()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(5,dn)),l(5),s("ngIf",e.formData.Group)}}var Ke=class i extends Ue{constructor(e,a,t,r,S,$,j,J){super(e,a,"User/GroupLoader/Form",t);this.toaster=r;this.router=S;this.actRoute=$;this.dataDaysRangeService=j;this.authService=J}checkAll=-1;listMorePermission=[];Brands=[];userGroupName="Users";onSelectRole(e){var a=this.formData.Roles.indexOf(e);a>-1?this.formData.Roles.splice(a,1):this.formData.Roles.push(e)}selectGroupRole(e,a){let t=this.options.find(r=>r.ID==a);if(t){let r=t.ListRole.map(j=>j.ID),S=t.ListMorePermission.map(j=>j.ID),$=[...r,...S];e?(this.formData.Roles=[...this.formData.Roles,...$],this.formData.Roles=this.formData.Roles.filter((j,J,fe)=>fe.indexOf(j)==J)):this.formData.Roles=this.formData.Roles.filter(j=>$.findIndex(J=>J==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(ge.IsEmpty(this.formData.Group.Name)){this.toaster.error("Group name is required",T.Error);return}this.onSubmit("user/group/Submit")}onSubmitSuccess(e){this.refreshToken(),this.saveDataDaysRange(e.DataDaysRange),this.dataDaysRangeService.bindDataDaysRange();let a=this.actRoute.snapshot.queryParams;ge.IsEmpty(a.ID)?this.toaster.success("Success add group",T.Success):this.toaster.info(`
1
+ import{a as Hi}from"./chunk-Z5L5OWOY.js";import{a as Gi}from"./chunk-33VUJMCJ.js";import{a as Oi,b as Wi}from"./chunk-7LHQ4DZG.js";import{b as Bi}from"./chunk-L4DGSDB5.js";import{a as Ai}from"./chunk-4JAQKA6N.js";import{a as Qe}from"./chunk-ITEHBWAC.js";import{a as Ue}from"./chunk-IROB4ID4.js";import{a as ze}from"./chunk-SDCEXGQQ.js";import{a as ne,b as vi}from"./chunk-F5ERAH5D.js";import{a as ci}from"./chunk-EYCZLRFX.js";import"./chunk-APZ5IBSQ.js";import{a as ke,b as Ri}from"./chunk-JXKXAC3X.js";import{b as Li}from"./chunk-5Q5T67DH.js";import"./chunk-OLALZT3L.js";import"./chunk-IUVGWNPX.js";import"./chunk-6N4AU5UX.js";import{e as Pi}from"./chunk-JCT27TRG.js";import{b as fi}from"./chunk-RSDCLKM5.js";import"./chunk-3RK6DDJD.js";import"./chunk-L2EDFSBR.js";import"./chunk-MUCQWTKH.js";import{a as Ni}from"./chunk-A6YCCT6G.js";import{p as pi,q as _i}from"./chunk-GSQJO7HP.js";import"./chunk-TEFNN3TY.js";import"./chunk-KG4DA565.js";import{e as hi}from"./chunk-IUKQX4L5.js";import"./chunk-JKYTSC2D.js";import{a as Si}from"./chunk-KUUYZ5UQ.js";import{c as gi,d as Ee,e as ki}from"./chunk-HR64LU2Y.js";import{a as di}from"./chunk-VQ7WKMGF.js";import{a as Ui,b as Vi}from"./chunk-C73IEBHE.js";import{b as Fi}from"./chunk-KJ6NWQLT.js";import{b as Ci}from"./chunk-4RFXQF2Y.js";import{a as ri,b as li,c as si}from"./chunk-A5K2PQQ4.js";import{a as oe}from"./chunk-TOH3UHX6.js";import"./chunk-6GLD5CWJ.js";import{c as bi}from"./chunk-Y4VV2HSW.js";import"./chunk-3LBZWLLT.js";import"./chunk-X7G45LGM.js";import"./chunk-C6ARCDXZ.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import"./chunk-6ZOGADBZ.js";import{a as wi,c as Me}from"./chunk-HA2GY7XU.js";import{h as U,i as Ei}from"./chunk-P26BSMOR.js";import"./chunk-KLBDRVPT.js";import{a as qe,b as k}from"./chunk-Q24EPOM2.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import{F as Ti,G as Mi,a as ai,e as mi,t as ui,w as xi}from"./chunk-X6LIVARI.js";import{b as K,c as oi}from"./chunk-CIBQBSM6.js";import{O as Ii,P as je,o as Di}from"./chunk-5UCQBOD6.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import{e as q}from"./chunk-VMY3JQDA.js";import{g as Te,l as yi}from"./chunk-D35OBUDE.js";import{ea as _t,l as ti,n as ii,y as ni}from"./chunk-567HXZXC.js";import"./chunk-UHJRDVRX.js";import"./chunk-CGESXTHC.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-TLOTIYIE.js";import{D as Zt,E as $t,a as zt,b as De,c as ie,d as Qt,h as G,i as Xt,k as Yt,o as O,p as Kt,r as He,y as Ie,z as Jt}from"./chunk-P7HKWFZT.js";import{c as ei}from"./chunk-N6W7PM3O.js";import"./chunk-WEPGXYEY.js";import{a as ge,d as W}from"./chunk-AHCRE4GP.js";import"./chunk-JZMT6UGS.js";import{$a as l,$b as Gt,Ac as Z,Bc as ee,Ca as It,Db as B,E as yt,Eb as Ut,Fa as pt,Fc as pe,Gb as Vt,Hb as Ft,Ib as n,Jb as o,K as he,Ka as Tt,Kb as v,Kc as Bt,Lb as we,Mb as xe,Mc as _e,Nc as Ht,Ob as w,Od as N,Pb as Pt,Qa as Mt,Qb as b,Qd as Y,Rb as m,Rd as L,Sb as Lt,Tb as Rt,Td as ut,Ub as Ce,V as mt,Va as Et,Vb as Pe,Vd as A,Wc as X,Y as wt,Yc as P,Yd as E,Zb as Nt,Zc as M,_b as At,aa as Oe,cd as Se,db as y,dc as z,ec as c,ed as te,fa as We,fc as x,gc as H,gd as qt,hc as Le,ia as xt,jc as g,jd as dt,k as ht,ka as ve,kb as D,kc as f,la as Ct,lb as be,lc as h,na as F,o as vt,ob as V,pc as Ot,qb as _,qc as I,rc as C,sc as Wt,t as Fe,u as bt,ua as St,ub as ye,va as d,vb as s,wa as u,wb as kt,wd as jt,xa as Dt,xb as ue,zb as Be,zc as R}from"./chunk-DZT5XHBQ.js";import{a as st,b as ct}from"./chunk-7DCB7DB2.js";function Zi(i,p){if(i&1){let e=w();n(0,"div",12)(1,"h6"),c(2,"User"),o(),n(3,"ng-select",13),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.ID,t)||(r.pageData.Filter.ID=t),u(t)}),o(),n(4,"h6"),c(5,"Type"),o(),n(6,"ng-select",14),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.LoginTypeID,t)||(r.pageData.Filter.LoginTypeID=t),u(t)}),o()()}if(i&2){let e=m(2);l(3),g("ngModel",e.pageData.Filter.ID),s("items",e.pageData.Options.User),l(3),g("ngModel",e.pageData.Filter.LoginTypeID),s("items",e.pageData.Options.LoginTypes)}}function $i(i,p){if(i&1&&(n(0,"tr",15)(1,"td"),c(2),o(),n(3,"td"),c(4),o(),n(5,"td"),c(6),o(),n(7,"td"),c(8),o(),n(9,"td"),c(10),R(11,"date"),o()()),i&2){let e=p.$implicit;l(2),x(e._source.log.LoginID),l(2),x(e._source.log.typeID),l(2),x(e._source.log.AppID?e._source.log.AppID:"-"),l(2),x(e._source.log.IP),l(2),x(ee(11,5,e._source["@timestamp"],"dd MMM yyyy HH:mm:ss"))}}function en(i,p){if(i&1){let e=w();n(0,"mat-paginator",16),b("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),o()}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 tn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),h("filterChange",function(t){d(e);let r=m();return f(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,Zi,7,4,"ng-template",null,0,pe),o(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th",7),c(11,"Login ID"),o(),n(12,"th",8),c(13,"Type"),o(),n(14,"th",8),c(15,"App ID"),o(),n(16,"th",8),c(17,"IP Address"),o(),n(18,"th",9),c(19,"Log In Time"),o()()(),n(20,"tbody"),_(21,$i,12,8,"tr",10),o()(),n(22,"div"),_(23,en,1,3,"mat-paginator",11),o()()()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),l(21),s("ngForOf",e.data.hits),l(2),s("ngIf",e.pagination.listTotal>0)}}var Xe=class i extends oe{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)(y(k),y(E))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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,a){e&1&&_(0,tn,24,6,"mainpanel-cmp",1),e&2&&s("ngIf",a.data)},dependencies:[P,M,U,G,O,ne,q,te],encapsulation:2})};var nn=()=>["/menu/Users/User/Users/Form"],on=i=>({ID:i});function an(i,p){if(i&1){let e=w();n(0,"div",10)(1,"h6"),c(2,"User"),o(),n(3,"autocompleteV2",11),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.UserID,t)||(r.pageData.Filter.UserID=t),u(t)}),o(),n(4,"h6"),c(5,"Row Count"),o(),n(6,"input",12),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.RowCount,t)||(r.pageData.Filter.RowCount=t),u(t)}),o()()}if(i&2){let e=m(2);l(3),g("ngModel",e.pageData.Filter.UserID),l(3),g("ngModel",e.pageData.Filter.RowCount),s("max",1e4)}}function rn(i,p){i&1&&(n(0,"th"),c(1,"User"),o())}function ln(i,p){if(i&1&&(n(0,"a",16),c(1),o()),i&2){let e=m(2).$implicit;s("routerLink",I(3,nn))("queryParams",C(4,on,e._source.log.parentId)),l(),x(e._source.log.username)}}function sn(i,p){if(i&1&&(n(0,"span"),c(1),o()),i&2){let e=m(2).$implicit;l(),x(e._source.log.username)}}function cn(i,p){if(i&1&&(n(0,"td"),_(1,ln,2,6,"a",15)(2,sn,2,1,"span",7),o()),i&2){let e=m(3);l(),s("ngIf",e.role.users.Edit),l(),s("ngIf",!e.role.users.Edit)}}function mn(i,p){if(i&1&&(n(0,"tr",13),_(1,cn,3,2,"td",7),n(2,"td"),c(3),R(4,"date"),o(),n(5,"td"),c(6),o(),v(7,"td",14),R(8,"newlines"),o()),i&2){let e=p.$implicit,a=m(2);l(),s("ngIf",a.data.showColumnUser),l(2),x(ee(4,4,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),x(e._source.log.creator),l(),s("innerHtml",Z(8,7,e._source.log.note),Et)}}function pn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2),h("textChange",function(t){d(e);let r=m();return f(r.pageData.Filter.Note,t)||(r.pageData.Filter.Note=t),u(t)}),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),h("filterChange",function(t){d(e);let r=m();return f(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"filters"),_(2,an,7,3,"ng-template",null,0,pe),o(),n(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr"),_(10,rn,2,0,"th",7),n(11,"th"),c(12,"Modified"),o(),n(13,"th"),c(14,"Modify By"),o(),n(15,"th"),c(16,"Note"),o()()(),n(17,"tbody"),_(18,mn,9,9,"tr",8),o()(),n(19,"div")(20,"mat-paginator",9),b("page",function(t){d(e);let r=m();return u(r.onPaginationChange(t))}),o()()()()()()}if(i&2){let e=m();s("pageData",e.menuData),g("text",e.pageData.Filter.Note),s("isFilterOnDropdown",!1),g("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 Ne=class i extends oe{constructor(e,a,t,r){super(e,a,"user/user/UpdateList","user/UserLoader/HistoryLoader",null,t);this.httpService=a;this.role=r}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(N),y(W))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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(a,t){a&1&&_(0,pn,21,9,"mainpanel-cmp",1),a&2&&s("ngIf",t.data)},dependencies:[P,M,L,U,ie,G,O,ne,Me,Ti,te,Di],encapsulation:2})};var dn=()=>["/menu/Users/User/Groups"],un=i=>({selected:i}),_n=i=>({"border-top-0":i}),gn=(i,p)=>({"bg-gradient-warning":i,"border-top-0":p});function fn(i,p){i&1&&(n(0,"span",50),c(1," Name required."),o())}function hn(i,p){if(i&1){let e=w();we(0),n(1,"div",59)(2,"div",60)(3,"div",61)(4,"input",62),b("click",function(){let t=d(e).$implicit,r=m(4);return u(r.onSelectRole(t.ID))}),o()(),n(5,"label",63),c(6),o()()(),xe()}if(i&2){let e=p.$implicit,a=p.index,t=m().$implicit,r=m(3);l(2),s("matTooltip",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole?"":e.Description),l(),s("ngClass",C(8,_n,a/4>=1)),l(),Ce("id",t.Name+a),s("disabled",t.Name==r.userGroupName&&r.data.LastGroupWithUserRole)("checked",r.formData.Roles.indexOf(e.ID)>-1),l(),Ce("for",t.Name+a),s("ngClass",Wt(10,gn,e.Type==1,a/4>=1)),l(),x(e.Model)}}function vn(i,p){if(i&1){let e=w();we(0),n(1,"div",68)(2,"div",69)(3,"div",70)(4,"input",71),b("click",function(){let t=d(e).$implicit,r=m(6);return u(r.onSelectRole(t.ID))}),o()(),n(5,"label",72),c(6),o()()(),xe()}if(i&2){let e=p.$implicit,a=m().index,t=m(5);l(4),Ce("id",e.Name+"more"+a),s("checked",t.formData.Roles.indexOf(e.ID)>-1),l(),Ce("for",e.Name+"more"+a),Ce("matTooltip",e.Description),l(),x(e.Model)}}function bn(i,p){if(i&1&&(we(0),n(1,"div",67),_(2,vn,7,5,"ng-container",36),o(),xe()),i&2){let e=p.$implicit;l(2),s("ngForOf",e)}}function yn(i,p){if(i&1&&(n(0,"div",64)(1,"a",65),c(2,"More Permission"),o(),n(3,"div",66)(4,"div",57),_(5,bn,3,1,"ng-container",36),o()()()),i&2){let e=m().index,a=m(3);l(5),s("ngForOf",a.listMorePermission[e])}}function wn(i,p){if(i&1){let e=w();n(0,"div",51)(1,"div",52)(2,"div",53)(3,"p",54),c(4),o(),n(5,"input",55),b("change",function(t){let r=d(e).$implicit,S=m(3);return u(S.selectGroupRole(t.target.checked,r.ID))}),o()()(),n(6,"div",56)(7,"div",57),_(8,hn,7,13,"ng-container",36),o(),_(9,yn,6,1,"div",58),o()()}if(i&2){let e=p.$implicit,a=m(3);s("matTooltip",e.Name==a.userGroupName&&a.data.LastGroupWithUserRole?"You cannot edit this section because this Group is the last group with User Access":""),l(4),H(" ",e.Name," "),l(),s("disabled",e.Name==a.userGroupName&&a.data.LastGroupWithUserRole),l(3),s("ngForOf",e.ListRole),l(),s("ngIf",(e.ListMorePermission==null?null:e.ListMorePermission.length)>0)}}function xn(i,p){if(i&1){let e=w();n(0,"tr")(1,"td"),c(2),o(),n(3,"td",73)(4,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(5,"td",73)(6,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(7,"td",73)(8,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()(),n(9,"td",73)(10,"input",74),h("ngModelChange",function(t){let r=d(e).$implicit;return f(r.AccessTypeID,t)||(r.AccessTypeID=t),u(t)}),o()()()}if(i&2){let e=p.$implicit,a=p.index;l(2),x(e.Name),l(2),Pe("name","noaccess",a,""),g("ngModel",e.AccessTypeID),s("value",0),l(2),Pe("name","peek",a,""),g("ngModel",e.AccessTypeID),s("value",1),l(2),Pe("name","read",a,""),g("ngModel",e.AccessTypeID),s("value",2),l(2),Pe("name","write",a,""),g("ngModel",e.AccessTypeID),s("value",3)}}function Cn(i,p){if(i&1){let e=w();n(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"input",10,0),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.Name,t)||(r.formData.Group.Name=t),u(t)}),o(),n(6,"label",11),c(7,"Group Name"),o(),_(8,fn,2,0,"span",12),o(),n(9,"ul",13)(10,"li",14)(11,"button",15),c(12," Permission "),o()(),n(13,"li",14)(14,"button",16),c(15," Outlet "),o()(),n(16,"li",14)(17,"button",17),c(18," Description "),o()(),n(19,"li",14)(20,"button",18),c(21," Restriction "),o()()(),n(22,"div",19)(23,"div",20),_(24,wn,10,5,"div",21),o(),n(25,"div",22)(26,"div",23)(27,"table",24)(28,"thead",25)(29,"tr")(30,"th",26),c(31,"Name"),o(),n(32,"th",27)(33,"span",28),c(34,"No Access"),o(),n(35,"input",29),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(36,"th",30)(37,"span",28),c(38,"Peek"),o(),n(39,"input",31),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(40,"th",32)(41,"span",28),c(42,"Read"),o(),n(43,"input",33),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()(),n(44,"th",34)(45,"span",28),c(46,"Write"),o(),n(47,"input",35),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.checkAll,t)||(r.checkAll=t),u(t)}),b("change",function(){d(e);let t=m(2);return u(t.SelectAll(t.checkAll,t.formData.Outlets))}),o()()()(),n(48,"tbody"),_(49,xn,11,17,"tr",36),o()()()(),n(50,"div",37)(51,"div",7)(52,"div",38)(53,"div",9)(54,"textarea",39),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.Description,t)||(r.formData.Group.Description=t),u(t)}),c(55," "),o(),n(56,"label",40),c(57,"Description"),o()()()()(),n(58,"div",41)(59,"div",7)(60,"div",42)(61,"div",9)(62,"input",43),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.DataDaysRange,t)||(r.formData.Group.DataDaysRange=t),u(t)}),o(),n(63,"label",44),c(64,"Data Days Range"),o()()(),n(65,"div",42)(66,"div",45)(67,"label"),c(68,"Live Chat Enabled"),o(),n(69,"radio-options",46),h("modelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.LiveChatEnabled,t)||(r.formData.Group.LiveChatEnabled=t),u(t)}),o()()()(),n(70,"div",7)(71,"div",42)(72,"div",47)(73,"ng-select",48),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.formData.Group.BrandID,t)||(r.formData.Group.BrandID=t),u(t)}),o(),n(74,"label",49),c(75,"Brand"),o()()()()()()()()()}if(i&2){let e=z(5),a=m(2);l(4),g("ngModel",a.formData.Group.Name),l(4),s("ngIf",e.invalid&&(e.dirty||e.touched)),l(16),s("ngForOf",a.options),l(11),g("ngModel",a.checkAll),s("value",0),l(4),g("ngModel",a.checkAll),s("value",1),l(4),g("ngModel",a.checkAll),s("value",2),l(4),g("ngModel",a.checkAll),s("value",3),l(2),s("ngForOf",a.formData.Outlets),l(5),g("ngModel",a.formData.Group.Description),l(8),g("ngModel",a.formData.Group.DataDaysRange),l(7),g("model",a.formData.Group.LiveChatEnabled),l(3),s("ngClass",C(18,un,a.formData.Group.BrandID)),l(),g("ngModel",a.formData.Group.BrandID),s("items",a.Brands)}}function Sn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"a",3),c(3,"Cancel"),o(),n(4,"button",4),b("click",function(){d(e);let t=m();return u(t.onSubmitForm())}),c(5," Submit "),o()(),n(6,"content"),_(7,Cn,76,20,"div",5),o()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(5,dn)),l(5),s("ngIf",e.formData.Group)}}var Ke=class i extends Ue{constructor(e,a,t,r,S,$,j,J){super(e,a,"User/GroupLoader/Form",t);this.toaster=r;this.router=S;this.actRoute=$;this.dataDaysRangeService=j;this.authService=J}checkAll=-1;listMorePermission=[];Brands=[];userGroupName="Users";onSelectRole(e){var a=this.formData.Roles.indexOf(e);a>-1?this.formData.Roles.splice(a,1):this.formData.Roles.push(e)}selectGroupRole(e,a){let t=this.options.find(r=>r.ID==a);if(t){let r=t.ListRole.map(j=>j.ID),S=t.ListMorePermission.map(j=>j.ID),$=[...r,...S];e?(this.formData.Roles=[...this.formData.Roles,...$],this.formData.Roles=this.formData.Roles.filter((j,J,fe)=>fe.indexOf(j)==J)):this.formData.Roles=this.formData.Roles.filter(j=>$.findIndex(J=>J==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(ge.IsEmpty(this.formData.Group.Name)){this.toaster.error("Group name is required",T.Error);return}this.onSubmit("user/group/Submit")}onSubmitSuccess(e){this.refreshToken(),this.saveDataDaysRange(e.DataDaysRange),this.dataDaysRangeService.bindDataDaysRange();let a=this.actRoute.snapshot.queryParams;ge.IsEmpty(a.ID)?this.toaster.success("Success add group",T.Success):this.toaster.info(`
2
2
  The user group has been updated.<br/>
3
3
  Please reload to apply the changes.
4
4
  `,T.Info,{enableHtml:!0}),this.router.navigate(["/menu/Users/User/Groups"])}saveDataDaysRange(e){localStorage.setItem("DataDaysRange",JSON.stringify(e))}setListMorePermission(){this.data.Options.forEach((a,t)=>{this.listMorePermission[t]=this.generateListPermission(a.ListMorePermission)})}generateListPermission(e){let a=[];return e.forEach(t=>{a.length==0?a[a.length]=[t]:a[a.length-1].length<=7?a[a.length-1].push(t):a[a.length]=[t]}),a}refreshToken(){this.data?.IsSameGroup&&this.authService.refreshToken()}SelectAll(e,a){a.forEach(function(t){t.AccessTypeID=e})}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(N),y(A),y(Y),y(N),y(Gi),y(ei))};static \u0275cmp=D({type:i,selectors:[["CustomerDisplay-groups-form"]],standalone:!1,features:[V],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(a,t){a&1&&_(0,Sn,8,6,"mainpanel-cmp",1),a&2&&s("ngIf",t.data&&t.formData)},dependencies:[X,P,M,L,U,ie,He,G,Ie,O,q,Me,Ee,K],styles:[".w-250px[_ngcontent-%COMP%]{width:250px}"]})};var Dn=()=>["/menu/Users/User/Groups/Form"],In=i=>({"bg-gradient-warning":i}),Tn=()=>["/menu/Users/User/Groups/Info"],Mn=i=>({ID:i}),En=()=>["/menu/Users/User/Users"],kn=i=>({GroupID:i});function Un(i,p){if(i&1){let e=w();n(0,"a",15),b("click",function(){d(e);let t=m(2);return u(t.httpDeleteListID("user/group"))}),v(1,"i",16),c(2," Delete "),o()}}function Vn(i,p){i&1&&(n(0,"a",17),c(1,"Add "),o()),i&2&&s("routerLink",I(1,Dn))}function Fn(i,p){if(i&1){let e=w();n(0,"th",18)(1,"input",19),b("change",function(t){d(e);let r=m(2);return r.onSelectAllData(t.target.checked),u(r.uncheckSystemGroup())}),o()()}}function Pn(i,p){i&1&&v(0,"th")}function Ln(i,p){if(i&1){let e=w();n(0,"td")(1,"input",24),h("ngModelChange",function(t){d(e);let r=m().$implicit;return f(r.selected,t)||(r.selected=t),u(t)}),o()()}if(i&2){let e=m().$implicit;l(),g("ngModel",e.selected)}}function Rn(i,p){if(i&1){let e=w();n(0,"td",25)(1,"button",26),b("click",function(){d(e);let t=m().$implicit,r=m(2);return u(r.onDuplicateGroup(t.ID))}),v(2,"i",27),o()()}}function Nn(i,p){if(i&1&&(n(0,"tr",20),_(1,Ln,2,1,"td",12),n(2,"td")(3,"a",21),c(4),o()(),n(5,"td")(6,"a",22),c(7),R(8,"number"),o()(),n(9,"td"),c(10),o(),_(11,Rn,3,0,"td",23),o()),i&2){let e=p.$implicit,a=m(2);s("ngClass",C(12,In,e.Type==1)),l(),s("ngIf",a.roleService.users.Delete),l(2),s("routerLink",I(14,Tn))("queryParams",C(15,Mn,e.ID)),l(),x(e.Name),l(2),s("routerLink",I(17,En))("queryParams",C(18,kn,e.ID)),l(),H(" ",Z(8,10,e.TotalUsers)," "),l(3),x(e.Description),l(),s("ngIf",a.roleService.users.Create)}}function An(i,p){if(i&1){let e=w();n(0,"mat-paginator",28),b("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),o()}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 Gn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",1),h("textChange",function(t){d(e);let r=m();return f(r.pageData.Filter.Text,t)||(r.pageData.Filter.Text=t),u(t)}),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),n(1,"actions"),_(2,Un,3,0,"a",2)(3,Vn,2,2,"a",3),o(),n(4,"content")(5,"div",4)(6,"div",5)(7,"table",6)(8,"thead",7)(9,"tr",8),_(10,Fn,2,0,"th",9),n(11,"th",10),c(12,"NAME"),o(),n(13,"th",11),c(14," USERS "),o(),n(15,"th"),c(16,"DESCRIPTION"),o(),_(17,Pn,1,0,"th",12),o()(),n(18,"tbody"),_(19,Nn,12,20,"tr",13),o()()(),n(20,"div"),_(21,An,1,3,"mat-paginator",14),o()()()()}if(i&2){let e=m();s("pageData",e.menuData)("hideSearchDropdown",!0),g("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(7),s("ngIf",e.roleService.users.Create),l(2),s("ngForOf",e.data.Data),l(2),s("ngIf",e.pagination.listTotal>0)}}var Je=class i extends oe{constructor(e,a,t,r){super(e,a,"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,T.Success),this.getListData()})}uncheckSystemGroup(){this.data.Data=this.data.Data.map(e=>(e.GetISRoleSystem&&(e.selected=!1),e))}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(A),y(W))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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"],["matTooltip","Number of users associated with the group",2,"width","80px"],[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"],["target","_blank",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(a,t){a&1&&_(0,Gn,22,9,"mainpanel-cmp",0),a&2&&s("ngIf",t.data)},dependencies:[X,P,M,L,U,De,G,O,ne,K,qt],encapsulation:2})};var On=()=>["/menu/Users/User/Roles"],Wn=i=>({selected:i});function Bn(i,p){i&1&&(n(0,"span",28),c(1," Name required. "),o())}function Hn(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",3)(1,"actions")(2,"a",4),c(3,"Cancel"),o(),n(4,"button",5),b("click",function(){d(e);let t=m();return u(t.onSubmit("user/role/Submit"))}),c(5,"Submit "),o()(),n(6,"content")(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"h3",11),c(13,"General"),o(),n(14,"div",12)(15,"input",13,0),h("ngModelChange",function(t){d(e);let r=m();return f(r.formData.Name,t)||(r.formData.Name=t),u(t)}),o(),n(17,"label",14),c(18,"Name"),o(),_(19,Bn,2,0,"span",15),o(),n(20,"div",12)(21,"input",16),h("ngModelChange",function(t){d(e);let r=m();return f(r.formData.Model,t)||(r.formData.Model=t),u(t)}),o(),n(22,"label",17),c(23,"Model"),o()(),n(24,"div",12)(25,"textarea",18),h("ngModelChange",function(t){d(e);let r=m();return f(r.formData.Description,t)||(r.formData.Description=t),u(t)}),o(),n(26,"label",19),c(27,"Description"),o()()()()(),n(28,"div",20)(29,"div",9)(30,"div",10)(31,"h3",11),c(32,"Properties"),o(),n(33,"div",21)(34,"ng-select",22,1),h("ngModelChange",function(t){d(e);let r=m();return f(r.formData.GroupID,t)||(r.formData.GroupID=t),u(t)}),o(),n(36,"label",23),c(37,"Type"),o()(),n(38,"div",24)(39,"label"),c(40,"More Permission"),o(),n(41,"radio-options",25),h("modelChange",function(t){d(e);let r=m();return f(r.formData.Advanced,t)||(r.formData.Advanced=t),u(t)}),o()(),n(42,"div",12)(43,"input",26),h("ngModelChange",function(t){d(e);let r=m();return f(r.formData.Index,t)||(r.formData.Index=t),u(t)}),o(),n(44,"label",27),c(45,"Index"),o()()()()()()()()()}if(i&2){let e=z(16),a=z(35),t=m();s("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("routerLink",I(15,On)),l(13),g("ngModel",t.formData.Name),l(4),s("ngIf",e.invalid&&(e.dirty||e.touched)),l(2),g("ngModel",t.formData.Model),l(4),g("ngModel",t.formData.Description),l(8),s("ngClass",C(16,Wn,t.formData.GroupID)),l(),g("ngModel",t.formData.GroupID),s("items",t.groupTypes),l(2),kt("z-index",a.isOpen?"9999":"0"),l(5),g("model",t.formData.Advanced),l(2),g("ngModel",t.formData.Index)}}var Ze=class i extends Ue{constructor(e,a,t,r,S,$){super(e,a,"user/RoleLoader/Form",t);this.toaster=r;this.router=S;this.actRoute=$}groupTypes;postBindForm(e){this.groupTypes=e.GroupTypes}onSubmitSuccess(){let e=this.actRoute.snapshot.queryParams;ge.IsEmpty(e.ID)?this.toaster.success("Success add roles",T.Success):this.toaster.success("Success update roles",T.Success),this.router.navigate(["/menu/Users/User/Roles"])}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(N),y(A),y(Y),y(N))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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(a,t){a&1&&_(0,Hn,46,18,"mainpanel-cmp",2),a&2&&s("ngIf",t.data&&t.formData)},dependencies:[X,M,L,U,ie,G,Ie,O,q,Me,Ee],encapsulation:2})};var qn=()=>["/menu/Users/User/Roles/Form"],jn=i=>({ID:i});function zn(i,p){if(i&1){let e=w();n(0,"a",21),b("click",function(){d(e);let t=m(2).ngIf,r=m();return u(r.deleteRole(t.Role.ID))}),v(1,"i",22),c(2," Delete "),o()}}function Qn(i,p){if(i&1&&(n(0,"a",23),v(1,"i",24),c(2," Edit "),o()),i&2){let e=m(2).ngIf;s("routerLink",I(2,qn))("queryParams",C(3,jn,e.Role.ID))}}function Xn(i,p){if(i&1&&(n(0,"actions"),_(1,zn,3,0,"a",19)(2,Qn,3,5,"a",20),o()),i&2){let e=m(2);l(),s("ngIf",e.roleService.users.Delete),l(),s("ngIf",e.roleService.users.Edit)}}function Yn(i,p){if(i&1&&(n(0,"div",25),v(1,"span",26),n(2,"span",27),c(3),o()()),i&2){let e=p.$implicit;l(3),x(e.Name)}}function Kn(i,p){if(i&1&&(n(0,"mainpanel-cmp",1),R(1,"async"),_(2,Xn,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"),o(),n(11,"div",9),v(12,"POS-info-page-input",10),o(),n(13,"div",9),v(14,"POS-info-page-input",11),o(),n(15,"div",9),v(16,"POS-info-page-input",12),o()()()(),n(17,"div",13)(18,"div",6)(19,"div",7)(20,"h3",8),c(21,"Properties"),o(),n(22,"div",9),v(23,"POS-info-page-input",14),o(),n(24,"div",9),v(25,"POS-info-page-input",15),o(),n(26,"div",9),v(27,"POS-info-page-input",16),o()()()()(),n(28,"div",4)(29,"div",17)(30,"div",6)(31,"div",7)(32,"h3",8),c(33,"User Group"),o(),n(34,"div",4),_(35,Yn,4,1,"div",18),o()()()()()()()()),i&2){let e=p.ngIf,a=m();s("pageData",Z(1,11,a.menu$))("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),s("ngIf",a.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 $e=class i{constructor(p,e,a,t,r,S){this.http=p;this.route=a;this.toastr=t;this.roleService=r;S.setMenu$(),this.menu$=S.menu$;let $=vt(e.snapshot.queryParams).pipe(he(J=>p.get(this.endpoint+J.ID))),j=bt(this.menu$,$).pipe(Fe(([J,fe])=>({menu:ct(st({},J),{H:`${fe.Role.Name} Role`}),info:fe})),wt());this.info$=j.pipe(mt("info"),Fe(J=>ct(st({},J),{UserGroupRole:J.UserGroupRole.filter(fe=>fe.HasRole)}))),this.menu$=j.pipe(mt("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.",T.Success)}})}static \u0275fac=function(e){return new(e||i)(y(E),y(N),y(Y),y(A),y(W),y(k))};static \u0275cmp=D({type:i,selectors:[["POS-roles-info"]],standalone:!1,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,a){e&1&&(_(0,Kn,36,13,"mainpanel-cmp",0),R(1,"async")),e&2&&s("ngIf",Z(1,1,a.info$))},dependencies:[P,M,L,U,ke,Se],encapsulation:2})};var Jn=()=>["/menu/Users/User/Roles/Form"],Zn=i=>({"bg-gradient-warning":i}),$n=()=>["Info"],eo=i=>({ID:i});function to(i,p){if(i&1){let e=w();n(0,"a",14),b("click",function(){d(e);let t=m(2);return u(t.httpDeleteListID("user/role"))}),v(1,"i",15),c(2," Delete "),o()}}function io(i,p){i&1&&(n(0,"a",16),c(1,"Add "),o()),i&2&&s("routerLink",I(1,Jn))}function no(i,p){if(i&1){let e=w();n(0,"div",17)(1,"h6"),c(2,"Group Name"),o(),n(3,"ng-select",18),h("ngModelChange",function(t){d(e);let r=m(2);return f(r.pageData.Filter.GroupID,t)||(r.pageData.Filter.GroupID=t),u(t)}),o()()}if(i&2){let e=m(2);l(3),g("ngModel",e.pageData.Filter.GroupID),s("items",e.pageData.Options)}}function oo(i,p){if(i&1){let e=w();n(0,"th",19)(1,"input",20),b("change",function(t){d(e);let r=m(2);return u(r.onSelectAllData(t.target.checked))}),o()()}}function ao(i,p){if(i&1){let e=w();n(0,"td")(1,"input",24),h("ngModelChange",function(t){d(e);let r=m().$implicit;return f(r.selected,t)||(r.selected=t),u(t)}),o()()}if(i&2){let e=m().$implicit;l(),g("ngModel",e.selected)}}function ro(i,p){if(i&1&&(n(0,"tr",21),_(1,ao,2,1,"td",22),n(2,"td")(3,"a",23),c(4),o()(),n(5,"td"),c(6),o(),n(7,"td"),c(8),o(),n(9,"td"),c(10),o()()),i&2){let e=p.$implicit,a=m(2);s("ngClass",C(8,Zn,e.Type==1)),l(),s("ngIf",a.data.IsSystem),l(2),s("routerLink",I(10,$n))("queryParams",C(11,eo,e.ID)),l(),x(e.RolesName),l(2),x(e.GroupName),l(2),x(e.Model),l(2),x(e.Description)}}function lo(i,p){if(i&1){let e=w();n(0,"mat-paginator",25),b("page",function(t){d(e);let r=m(2);return u(r.onPaginationChange(t))}),o()}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 so(i,p){if(i&1){let e=w();n(0,"mainpanel-cmp",2),h("textChange",function(t){d(e);let r=m();return f(r.pageData.Filter.Text,t)||(r.pageData.Filter.Text=t),u(t)}),b("onSubmit",function(){d(e);let t=m();return u(t.searchFromPageOne())}),h("filterChange",function(t){d(e);let r=m();return f(r.pageData.Filter,t)||(r.pageData.Filter=t),u(t)}),n(1,"actions"),_(2,to,3,0,"a",3)(3,io,2,2,"a",4),o(),n(4,"filters"),_(5,no,4,2,"ng-template",null,0,pe),o(),n(7,"content")(8,"div",5)(9,"div",6)(10,"table",7)(11,"thead",8)(12,"tr",9),_(13,oo,2,0,"th",10),n(14,"th",11),c(15,"NAME"),o(),n(16,"th"),c(17,"GROUP NAME"),o(),n(18,"th"),c(19,"MODEL"),o(),n(20,"th"),c(21,"DESCRIPTION"),o()()(),n(22,"tbody"),_(23,ro,11,13,"tr",12),o()()(),n(24,"div"),_(25,lo,1,3,"mat-paginator",13),o()()()()}if(i&2){let e=m();s("pageData",e.menuData),g("text",e.pageData.Filter.Text),s("isFilterOnDropdown",!1),g("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 et=class i extends oe{constructor(e,a,t,r){super(e,a,"user/role/List","user/RoleLoader/List",t);this.httpService=a;this.roleService=r}static \u0275fac=function(a){return new(a||i)(y(k),y(E),y(A),y(W))};static \u0275cmp=D({type:i,selectors:[["ng-component"]],standalone:!1,features:[V],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(a,t){a&1&&_(0,so,26,9,"mainpanel-cmp",1),a&2&&s("ngIf",t.data)},dependencies:[X,P,M,L,U,De,G,O,ne,q],encapsulation:2})};var co=["switch"],mo=["*"];function po(i,p){i&1&&(n(0,"span",10),Dt(),n(1,"svg",12),v(2,"path",13),o(),n(3,"svg",14),v(4,"path",15),o()())}var uo=new Ct("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),_o={provide:zt,useExisting:xt(()=>it),multi:!0},tt=class{source;checked;constructor(p,e){this.source=p,this.checked=e}},it=(()=>{class i{_elementRef=F(Tt);_focusMonitor=F(ti);_changeDetectorRef=F(Bt);defaults=F(uo);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new tt(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new pt;toggleChange=new pt;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){F(ii).load(ai);let e=F(new It("tabindex"),{optional:!0}),a=this.defaults,t=F(Mt,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=a.color||"accent",this._noopAnimations=t==="NoopAnimations",this.id=this._uniqueId=F(ni).getId("mat-mdc-slide-toggle-"),this.hideIcon=a.hideIcon??!1,this.disabledInteractive=a.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 tt(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=D({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(a,t){if(a&1&&Nt(co,5),a&2){let r;At(r=Gt())&&(t._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,t){a&2&&(Pt("id",t.id),ye("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Be(t.color?"mat-"+t.color:""),ue("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",_e],color:"color",disabled:[2,"disabled","disabled",_e],disableRipple:[2,"disableRipple","disableRipple",_e],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ht(e)],checked:[2,"checked","checked",_e],hideIcon:[2,"hideIcon","hideIcon",_e],disabledInteractive:[2,"disabledInteractive","disabledInteractive",_e]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ot([_o,{provide:Qt,useExisting:i,multi:!0}]),St],ngContentSelectors:mo,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-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(a,t){if(a&1){let r=w();Lt(),n(0,"div",1)(1,"button",2,0),b("click",function(){return d(r),u(t._handleClick())}),v(3,"span",3),n(4,"span",4)(5,"span",5)(6,"span",6),v(7,"span",7),o(),n(8,"span",8),v(9,"span",9),o(),_(10,po,5,0,"span",10),o()()(),n(11,"label",11),b("click",function($){return d(r),u($.stopPropagation())}),Rt(12),o()()}if(a&2){let r=z(2);s("labelPosition",t.labelPosition),l(),ue("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),ye("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(),B(t.hideIcon?-1:10),l(),s("for",t.buttonId),ye("id",t._labelId)}},dependencies:[mi,di],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, 52px)}.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, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.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, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.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-sys-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, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-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-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-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, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-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-sys-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-sys-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, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.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}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-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-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-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-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-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, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.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-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-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-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.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, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-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-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-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)}
@@ -1,4 +1,4 @@
1
- import{b as bi,c as vi}from"./chunk-CIBQBSM6.js";import{P as Ke}from"./chunk-L2RZWAX3.js";import{m as xi}from"./chunk-D35OBUDE.js";import{A as mi,C as ut,D as Qe,F as Ye,J as pi,K as fi,N as ui,T as hi,_ as $e,a as li,b as si,ba as gi,ca as _i,d as di,e as Ge,ea as $,g as ge,h as mt,j as pt,n as We,o as ci,q as ft,y as ae,z as _e}from"./chunk-567HXZXC.js";import{a as qe}from"./chunk-2FWFPV5I.js";import{E as ri,a as Ue,c as ii,h as oi,l as ni,s as ai}from"./chunk-P7HKWFZT.js";import{a as ne}from"./chunk-AHCRE4GP.js";import{$ as Fe,$a as s,$b as b,Ab as Kt,Ba as De,D as me,Db as x,E as W,Fa as g,Fc as Se,Ga as U,I as f,Ib as d,J as It,Ja as zt,Jb as m,K as lt,Ka as D,Kb as w,Kc as se,La as Ht,Lb as Oe,M as At,Mb as we,Mc as ee,N as re,Nb as Re,Ob as j,P as Dt,Pb as Ce,Pc as dt,Q as Pt,Qa as ie,Qb as C,Qc as ct,Rb as p,Sa as Bt,Sb as J,Ta as Ut,Tb as y,U as Rt,Va as jt,Vd as Be,Wa as qt,Wc as Ve,Y as Lt,Yb as q,Yc as ti,Yd as je,Zb as I,Zc as ze,_b as _,a as ce,aa as v,ab as Gt,ac as Xt,bc as Zt,bd as he,c as ve,cb as Pe,cc as Le,d as N,da as te,db as ye,dc as le,e as xe,ec as G,fa as Z,fb as Wt,fc as oe,gb as Qt,gc as Ne,hb as Yt,ia as Ie,ja as pe,jd as He,k as kt,ka as z,kb as M,la as F,lb as H,ma as Ae,mb as P,mc as Jt,n as rt,na as l,o as V,p as h,pc as Y,qb as u,rc as ue,sa as Nt,sc as st,t as O,u as Tt,ua as Vt,ub as Q,uc as ei,va as S,vb as c,wa as E,wb as $t,xb as k,y as Ft,zb as fe}from"./chunk-DZT5XHBQ.js";import{a as L}from"./chunk-7DCB7DB2.js";var B=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(B||{}),ht=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=B.HIDDEN;constructor(i,e,t,o=!1){this._renderer=i,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},yi=mt({passive:!0,capture:!0}),gt=class{_events=new Map;addHandler(i,e,t,o){let a=this._events.get(e);if(a){let r=a.get(t);r?r.add(o):a.set(t,new Set([o]))}else this._events.set(e,new Map([[t,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,yi)})}removeHandler(i,e,t){let o=this._events.get(i);if(!o)return;let a=o.get(e);a&&(a.delete(t),a.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,yi)))}_delegateEventHandler=i=>{let e=Ge(i);e&&this._events.get(i.type)?.forEach((t,o)=>{(o===e||o.contains(e))&&t.forEach(a=>a.handleEvent(i))})}},Oi={enterDuration:225,exitDuration:150},io=800,wi=mt({passive:!0,capture:!0}),Ci=["mousedown","touchstart"],Si=["mouseup","mouseleave","touchend","touchcancel"],oo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
1
+ import{b as bi,c as vi}from"./chunk-CIBQBSM6.js";import{P as Ke}from"./chunk-5UCQBOD6.js";import{m as xi}from"./chunk-D35OBUDE.js";import{A as mi,C as ut,D as Qe,F as Ye,J as pi,K as fi,N as ui,T as hi,_ as $e,a as li,b as si,ba as gi,ca as _i,d as di,e as Ge,ea as $,g as ge,h as mt,j as pt,n as We,o as ci,q as ft,y as ae,z as _e}from"./chunk-567HXZXC.js";import{a as qe}from"./chunk-2FWFPV5I.js";import{E as ri,a as Ue,c as ii,h as oi,l as ni,s as ai}from"./chunk-P7HKWFZT.js";import{a as ne}from"./chunk-AHCRE4GP.js";import{$ as Fe,$a as s,$b as b,Ab as Kt,Ba as De,D as me,Db as x,E as W,Fa as g,Fc as Se,Ga as U,I as f,Ib as d,J as It,Ja as zt,Jb as m,K as lt,Ka as D,Kb as w,Kc as se,La as Ht,Lb as Oe,M as At,Mb as we,Mc as ee,N as re,Nb as Re,Ob as j,P as Dt,Pb as Ce,Pc as dt,Q as Pt,Qa as ie,Qb as C,Qc as ct,Rb as p,Sa as Bt,Sb as J,Ta as Ut,Tb as y,U as Rt,Va as jt,Vd as Be,Wa as qt,Wc as Ve,Y as Lt,Yb as q,Yc as ti,Yd as je,Zb as I,Zc as ze,_b as _,a as ce,aa as v,ab as Gt,ac as Xt,bc as Zt,bd as he,c as ve,cb as Pe,cc as Le,d as N,da as te,db as ye,dc as le,e as xe,ec as G,fa as Z,fb as Wt,fc as oe,gb as Qt,gc as Ne,hb as Yt,ia as Ie,ja as pe,jd as He,k as kt,ka as z,kb as M,la as F,lb as H,ma as Ae,mb as P,mc as Jt,n as rt,na as l,o as V,p as h,pc as Y,qb as u,rc as ue,sa as Nt,sc as st,t as O,u as Tt,ua as Vt,ub as Q,uc as ei,va as S,vb as c,wa as E,wb as $t,xb as k,y as Ft,zb as fe}from"./chunk-DZT5XHBQ.js";import{a as L}from"./chunk-7DCB7DB2.js";var B=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(B||{}),ht=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=B.HIDDEN;constructor(i,e,t,o=!1){this._renderer=i,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},yi=mt({passive:!0,capture:!0}),gt=class{_events=new Map;addHandler(i,e,t,o){let a=this._events.get(e);if(a){let r=a.get(t);r?r.add(o):a.set(t,new Set([o]))}else this._events.set(e,new Map([[t,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,yi)})}removeHandler(i,e,t){let o=this._events.get(i);if(!o)return;let a=o.get(e);a&&(a.delete(t),a.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,yi)))}_delegateEventHandler=i=>{let e=Ge(i);e&&this._events.get(i.type)?.forEach((t,o)=>{(o===e||o.contains(e))&&t.forEach(a=>a.handleEvent(i))})}},Oi={enterDuration:225,exitDuration:150},io=800,wi=mt({passive:!0,capture:!0}),Ci=["mousedown","touchstart"],Si=["mouseup","mouseleave","touchend","touchcancel"],oo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
2
2
  `],encapsulation:2,changeDetection:0})}return n})(),_t=class n{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new gt;constructor(i,e,t,o,a){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=pt(t)),a&&a.get(We).load(oo)}fadeInRipple(i,e,t={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=L(L({},Oi),t.animation);t.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let r=t.radius||no(i,e,o),A=i-o.left,K=e-o.top,de=a.enterDuration,T=document.createElement("div");T.classList.add("mat-ripple-element"),T.style.left=`${A-r}px`,T.style.top=`${K-r}px`,T.style.height=`${r*2}px`,T.style.width=`${r*2}px`,t.color!=null&&(T.style.backgroundColor=t.color),T.style.transitionDuration=`${de}ms`,this._containerElement.appendChild(T);let ke=window.getComputedStyle(T),ot=ke.transitionProperty,nt=ke.transitionDuration,be=ot==="none"||nt==="0s"||nt==="0s, 0s"||o.width===0&&o.height===0,X=new ht(this,T,t,be);T.style.transform="scale3d(1, 1, 1)",X.state=B.FADING_IN,t.persistent||(this._mostRecentTransientRipple=X);let Te=null;return!be&&(de||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Et=()=>{Te&&(Te.fallbackTimer=null),clearTimeout(Mt),this._finishRippleTransition(X)},at=()=>this._destroyRipple(X),Mt=setTimeout(at,de+100);T.addEventListener("transitionend",Et),T.addEventListener("transitioncancel",at),Te={onTransitionEnd:Et,onTransitionCancel:at,fallbackTimer:Mt}}),this._activeRipples.set(X,Te),(be||!de)&&this._finishRippleTransition(X),X}fadeOutRipple(i){if(i.state===B.FADING_OUT||i.state===B.HIDDEN)return;let e=i.element,t=L(L({},Oi),i.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",i.state=B.FADING_OUT,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=pt(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Ci.forEach(t=>{n._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Si.forEach(e=>{this._triggerElement.addEventListener(e,this,wi)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===B.FADING_IN?this._startFadeOutTransition(i):i.state===B.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=B.VISIBLE,!t&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=B.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=li(i),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+io;!this._target.rippleDisabled&&!e&&!t&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig))}_onTouchStart(i){if(!this._target.rippleDisabled&&!si(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=i.changedTouches;if(e)for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{let e=i.state===B.VISIBLE||i.config.terminateOnPointerUp&&i.state===B.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Ci.forEach(e=>n._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(Si.forEach(e=>i.removeEventListener(e,this,wi)),this._pointerUpEventsRegistered=!1))}};function no(n,i,e){let t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(t*t+o*o)}var ao=new F("mat-ripple-global-options"),Ei=(()=>{class n{_elementRef=l(D);_animationMode=l(ie,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=l(U),t=l(ge),o=l(ao,{optional:!0}),a=l(De);this._globalOptions=o||{},this._rippleRenderer=new _t(this,e,this._elementRef,t,a)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:L(L(L({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,L(L({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,L(L({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=P({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,o){t&2&&k("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return n})();var Mi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[$,$]})}return n})();var ki=(()=>{class n{_animationMode=l(ie,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,o){t&2&&k("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}
3
3
  `],encapsulation:2,changeDetection:0})}return n})();var Ti=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,o){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}
4
4
  `],encapsulation:2,changeDetection:0})}return n})();var lo=["text"],so=[[["mat-icon"]],"*"],co=["mat-icon","*"];function mo(n,i){if(n&1&&w(0,"mat-pseudo-checkbox",1),n&2){let e=p();c("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function po(n,i){if(n&1&&w(0,"mat-pseudo-checkbox",3),n&2){let e=p();c("disabled",e.disabled)}}function fo(n,i){if(n&1&&(d(0,"span",4),G(1),m()),n&2){let e=p();s(),Ne("(",e.group.label,")")}}var vt=new F("MAT_OPTION_PARENT_COMPONENT"),xt=new F("MatOptgroup");var Ee=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Xe=(()=>{class n{_element=l(D);_changeDetectorRef=l(se);_parent=l(vt,{optional:!0});group=l(xt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=l(ae).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new g;_text;_stateChanges=new N;constructor(){let e=l(We);e.load(Ti),e.load(ci),this._signalDisableRipple=!!this._parent&&Ht(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!_e(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Ee(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["mat-option"]],viewQuery:function(t,o){if(t&1&&I(lo,7),t&2){let a;_(a=b())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,o){t&1&&C("click",function(){return o._selectViaInteraction()})("keydown",function(r){return o._handleKeydown(r)}),t&2&&(Ce("id",o.id),Q("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),k("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:co,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,o){t&1&&(J(so),u(0,mo,1,2,"mat-pseudo-checkbox",1),y(1),d(2,"span",2,0),y(4,1),m(),u(5,po,1,1,"mat-pseudo-checkbox",3)(6,fo,2,1,"span",4),w(7,"div",5)),t&2&&(x(o.multiple?0:-1),s(5),x(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),s(),x(o.group&&o.group._inert?6:-1),s(),c("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[ki,Ei],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}
@@ -1,4 +1,4 @@
1
- import{a as B}from"./chunk-AZT6QE56.js";import{a as A}from"./chunk-AAJJTF33.js";import{C as M,D as F,G as d,L as x,b,d as o,k as L,sa as E,x as p}from"./chunk-3PYW74LR.js";import{Ga as h,Ib as y,Jb as k,Kb as C,Qc as D,ja as c,kb as f,kd as I,mb as u,na as l,ob as a,pc as w,ub as g,xa as m,za as s,zb as v}from"./chunk-DZT5XHBQ.js";var H=(()=>{class i extends B{static \u0275fac=(()=>{let e;return function(n){return(e||(e=s(i)))(n||i)}})();static \u0275cmp=f({type:i,selectors:[["ChevronRightIcon"]],features:[a],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(t,n){t&1&&(m(),y(0,"svg",0),C(1,"path",1),k()),t&2&&(v(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var j=({dt:i})=>`
1
+ import{a as B}from"./chunk-52EOLV7I.js";import{a as A}from"./chunk-CGESXTHC.js";import{C as M,D as F,G as d,M as x,b,d as o,k as L,ua as E,x as p}from"./chunk-TLOTIYIE.js";import{Ga as h,Ib as y,Jb as k,Kb as C,Qc as D,ja as c,kb as f,kd as I,mb as u,na as l,ob as a,pc as w,ub as g,xa as m,za as s,zb as v}from"./chunk-DZT5XHBQ.js";var H=(()=>{class i extends B{static \u0275fac=(()=>{let e;return function(n){return(e||(e=s(i)))(n||i)}})();static \u0275cmp=f({type:i,selectors:[["ChevronRightIcon"]],features:[a],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(t,n){t&1&&(m(),y(0,"svg",0),C(1,"path",1),k()),t&2&&(v(n.getClassNames()),g("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var j=({dt:i})=>`
2
2
  /* For PrimeNG */
3
3
  .p-ripple {
4
4
  overflow: hidden;
@@ -1 +1 @@
1
- import{c as N}from"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import{a as D}from"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};
1
+ import{c as N}from"./chunk-N6W7PM3O.js";import"./chunk-WEPGXYEY.js";import{a as D}from"./chunk-AHCRE4GP.js";import"./chunk-JZMT6UGS.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};