dealposbooks 5.49.3 → 5.50.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/3rdpartylicenses.txt +26 -26
  2. package/assets/scss/style.scss +2 -4
  3. package/chunk-27SC6O47.js +1 -0
  4. package/{chunk-ELMSU4U7.js → chunk-2ABEICLB.js} +1 -1
  5. package/{chunk-KJCHFIF4.js → chunk-2JFOEOZ2.js} +1 -1
  6. package/{chunk-DTAREQVV.js → chunk-3ALAWCRA.js} +1 -1
  7. package/chunk-3GYSEQ25.js +1 -0
  8. package/{chunk-2XW2ZOT4.js → chunk-43JH7CKX.js} +1 -1
  9. package/chunk-47G2N7SA.js +1 -0
  10. package/{chunk-FWAGEKIF.js → chunk-4AGTFPOU.js} +1 -1
  11. package/{chunk-ME4V3YFW.js → chunk-4IMFKRR6.js} +1 -1
  12. package/chunk-4RBG4SFN.js +1 -0
  13. package/chunk-56CZGYL5.js +1 -0
  14. package/chunk-5N5QHECN.js +1 -0
  15. package/{chunk-DJXQKSLT.js → chunk-5U7KZJ3H.js} +1 -1
  16. package/{chunk-B4C3ZPN6.js → chunk-5VKDAA74.js} +1 -1
  17. package/chunk-65V5R4TS.js +1 -0
  18. package/{chunk-HCJK6VTO.js → chunk-6GILMLXA.js} +1 -1
  19. package/chunk-6GO647AV.js +1 -0
  20. package/chunk-7DBOORB2.js +1 -0
  21. package/{chunk-UPSNJEHO.js → chunk-7L5IAWG2.js} +1 -1
  22. package/chunk-A6T2KR7U.js +1 -0
  23. package/chunk-AF6G72MJ.js +1 -0
  24. package/chunk-ALLR2NXQ.js +1 -0
  25. package/chunk-BB2CNXSH.js +1 -0
  26. package/chunk-BFEM6LX7.js +2 -0
  27. package/{chunk-EBEY2MBR.js → chunk-BME4Z6DH.js} +1 -1
  28. package/chunk-BOQI2TMP.js +8 -0
  29. package/{chunk-DGACZ747.js → chunk-BTFX33U6.js} +1 -1
  30. package/{chunk-E7QWESN4.js → chunk-CN6AT4LE.js} +1 -1
  31. package/chunk-COSMZ2AH.js +1 -0
  32. package/chunk-DAFEIZYQ.js +1 -0
  33. package/{chunk-NMU2YBAB.js → chunk-DAM2WKDY.js} +1 -1
  34. package/chunk-DM2JLWKE.js +1 -0
  35. package/chunk-DM45YT57.js +1 -0
  36. package/chunk-DZCJWJUG.js +1 -0
  37. package/{chunk-WXIG4CXY.js → chunk-FHJOSHI3.js} +1 -1
  38. package/chunk-FHXTQXB7.js +160 -0
  39. package/{chunk-WMZF4DQK.js → chunk-FMAG3RQL.js} +1 -1
  40. package/{chunk-BKTBVFNX.js → chunk-FNGX2XFA.js} +1 -1
  41. package/{chunk-3DBSHDAQ.js → chunk-FTBQKOYS.js} +1 -1
  42. package/chunk-GAXDMEOS.js +1 -0
  43. package/chunk-GGQ7LRWG.js +0 -0
  44. package/{chunk-E6SW7I4D.js → chunk-GIRWHO6Q.js} +1 -1
  45. package/{chunk-BJMEZV24.js → chunk-GU4FXUJC.js} +1 -1
  46. package/{chunk-2VZ7JZIO.js → chunk-HMZX6SME.js} +1 -1
  47. package/chunk-HQHEWKLC.js +1 -0
  48. package/chunk-HU4J3ABZ.js +1 -0
  49. package/chunk-I2OULINE.js +1 -0
  50. package/{chunk-PPXXWO4E.js → chunk-II7KELI4.js} +1 -1
  51. package/{chunk-E3SH454T.js → chunk-IMPGOCFC.js} +1 -1
  52. package/{chunk-AD247LWQ.js → chunk-ISIYG4D5.js} +1 -1
  53. package/chunk-J3HFAWXU.js +229 -0
  54. package/chunk-JERRSTLA.js +1 -0
  55. package/chunk-JRBGNG24.js +1 -0
  56. package/{chunk-URH77XNK.js → chunk-JWNGZMSE.js} +1 -1
  57. package/{chunk-PGOSR3RI.js → chunk-KARG227P.js} +1 -1
  58. package/chunk-KL3TPLRB.js +2 -0
  59. package/{chunk-QPPFPDWZ.js → chunk-KONCSTVQ.js} +1 -1
  60. package/{chunk-2LNMV22E.js → chunk-KORGIX2B.js} +1 -1
  61. package/{chunk-VDXZGF3M.js → chunk-KQZMRRMA.js} +1 -1
  62. package/chunk-KXW5NWRO.js +1 -0
  63. package/{chunk-JD3HX7VY.js → chunk-KZU3VXLG.js} +1 -1
  64. package/{chunk-M4SSELXT.js → chunk-L4ENW4RK.js} +1 -1
  65. package/{chunk-IHKBTP2Y.js → chunk-LBXNL7E4.js} +1 -1
  66. package/{chunk-UVSR4LPB.js → chunk-LO4HJ77Y.js} +1 -1
  67. package/chunk-MGIEURA2.js +193 -0
  68. package/{chunk-VKNINE5Q.js → chunk-MJGBBYIO.js} +1 -1
  69. package/chunk-NHW7GVHK.js +1 -0
  70. package/{chunk-ME4ALIS7.js → chunk-O44DI62I.js} +1 -1
  71. package/{chunk-PKO36DGM.js → chunk-ON7PMYMV.js} +1 -1
  72. package/chunk-OOCCZG53.js +129 -0
  73. package/{chunk-AN4SAUSA.js → chunk-OW2ND5HU.js} +1 -1
  74. package/chunk-PB2MFYIM.js +1 -0
  75. package/chunk-Q4XWXOWE.js +1 -0
  76. package/chunk-RBNXJUFM.js +252 -0
  77. package/{chunk-F7XGJYCZ.js → chunk-RMHKEGL5.js} +1 -1
  78. package/{chunk-KGNH5JRZ.js → chunk-RVUOVLL5.js} +1 -1
  79. package/chunk-SASRJPT7.js +1 -0
  80. package/chunk-SJOOTBQ5.js +1 -0
  81. package/{chunk-3UAQHNUY.js → chunk-SLD7RSX6.js} +1 -1
  82. package/{chunk-CAS5GLLU.js → chunk-SOYJAYJK.js} +1 -1
  83. package/{chunk-KZHI6PGZ.js → chunk-SVGPDGYN.js} +1 -1
  84. package/chunk-SX4XIR77.js +1 -0
  85. package/{chunk-OBT3IJJQ.js → chunk-SXNOZOOP.js} +5 -5
  86. package/{chunk-RM5HLXNW.js → chunk-TAN6GLIH.js} +1 -1
  87. package/{chunk-5DRALZZF.js → chunk-TOR7QRRB.js} +1 -1
  88. package/{chunk-D6IS6PE6.js → chunk-U4AN6IWJ.js} +1 -1
  89. package/chunk-URGN4QVD.js +1 -0
  90. package/chunk-UTOLWW4T.js +1 -0
  91. package/chunk-VJROOSEO.js +7 -0
  92. package/chunk-VKUW7E75.js +1 -0
  93. package/{chunk-S27Z7D3D.js → chunk-VM56C6ZV.js} +1 -1
  94. package/chunk-VNZUZ5UI.js +1 -0
  95. package/{chunk-AMGBUOC4.js → chunk-VSDW2RJ5.js} +1 -1
  96. package/{chunk-U2VDC52W.js → chunk-WL6ZZCYW.js} +1 -1
  97. package/chunk-WYLIU52Q.js +1 -0
  98. package/{chunk-5B5AMMR3.js → chunk-X6KL7VKV.js} +1 -1
  99. package/chunk-XGU6GBEK.js +1 -0
  100. package/chunk-XN4CDKDI.js +1 -0
  101. package/chunk-XULSWUMO.js +1 -0
  102. package/chunk-YHLRDTIS.js +1 -0
  103. package/chunk-YQYRAH7V.js +1 -0
  104. package/{chunk-ENH6HA3V.js → chunk-YR5KRTHR.js} +1 -1
  105. package/{chunk-UD23HDLE.js → chunk-YU4Q7ASX.js} +1 -1
  106. package/chunk-Z3ZKNQZS.js +1 -0
  107. package/chunk-Z4XRTHAH.js +1 -0
  108. package/chunk-ZAMQ4RCL.js +1 -0
  109. package/chunk-ZC2ADHDH.js +130 -0
  110. package/{chunk-MHRSQRHT.js → chunk-ZC7ZENN7.js} +1 -1
  111. package/chunk-ZWNKUBMG.js +202 -0
  112. package/index.html +2 -2
  113. package/main-UCTZ3G6L.js +1 -0
  114. package/package.json +1 -1
  115. package/{styles-FYY2LVCE.css → styles-T5RGO2FA.css} +1 -1
  116. package/chunk-26LXGKDF.js +0 -1
  117. package/chunk-2BI7WNJP.js +0 -1
  118. package/chunk-3KEAMVYI.js +0 -202
  119. package/chunk-4G57L7HS.js +0 -1
  120. package/chunk-4OZIHMKI.js +0 -1
  121. package/chunk-4UVBCZJG.js +0 -1
  122. package/chunk-5LGAO5J4.js +0 -1
  123. package/chunk-6WWXJJID.js +0 -1
  124. package/chunk-A3P24MDP.js +0 -129
  125. package/chunk-A7OYELWP.js +0 -1
  126. package/chunk-ATFRJZK3.js +0 -1
  127. package/chunk-C5EDHVD7.js +0 -1
  128. package/chunk-C7ZPOAWO.js +0 -1
  129. package/chunk-CTINUVLP.js +0 -1
  130. package/chunk-D2CH2T3I.js +0 -229
  131. package/chunk-DJTQ4KQ7.js +0 -1
  132. package/chunk-ES2YST7G.js +0 -1
  133. package/chunk-F7PVAVLQ.js +0 -1
  134. package/chunk-FQRRGJBE.js +0 -1
  135. package/chunk-G4XX7EU2.js +0 -1
  136. package/chunk-I2IEFBTX.js +0 -1
  137. package/chunk-IQ4SHFOC.js +0 -252
  138. package/chunk-L3CQJPFS.js +0 -1
  139. package/chunk-LG5TMEPP.js +0 -1
  140. package/chunk-LNFCBMAA.js +0 -1
  141. package/chunk-LOMHQKQX.js +0 -1
  142. package/chunk-LUS3QGR4.js +0 -1
  143. package/chunk-N6LQW4C4.js +0 -1
  144. package/chunk-NXJQMUGV.js +0 -1
  145. package/chunk-OFI2JX7N.js +0 -1
  146. package/chunk-OFLGX5N4.js +0 -160
  147. package/chunk-OJTHBHGK.js +0 -1
  148. package/chunk-PW4Y2UWU.js +0 -1
  149. package/chunk-PZZCPZ6Q.js +0 -1
  150. package/chunk-Q4KG7LH6.js +0 -1
  151. package/chunk-QFFI46W6.js +0 -130
  152. package/chunk-QJ5XIVKM.js +0 -1
  153. package/chunk-RX37I2ZC.js +0 -1
  154. package/chunk-S6S265JY.js +0 -7
  155. package/chunk-SUWUVFH4.js +0 -1
  156. package/chunk-UK5OOIPU.js +0 -1
  157. package/chunk-V2P3PRZY.js +0 -1
  158. package/chunk-V65ONV6D.js +0 -1
  159. package/chunk-VMI3QWC6.js +0 -193
  160. package/chunk-VMI7LQOW.js +0 -1
  161. package/chunk-WRTIQGAC.js +0 -8
  162. package/chunk-XJFNZBHG.js +0 -1
  163. package/chunk-XWXTYJHR.js +0 -1
  164. package/chunk-YIEUIWT7.js +0 -1
  165. package/chunk-ZFNIPERQ.js +0 -2
  166. package/chunk-ZK43JB4A.js +0 -2
  167. package/chunk-ZZEOPBUT.js +0 -1
  168. package/main-WMHNA6IG.js +0 -1
@@ -1 +1 @@
1
- import{h as u}from"./chunk-ME4ALIS7.js";import{Da as f}from"./chunk-VMI3QWC6.js";import{Cb as c,Lb as C,Mb as m,Qb as h,Wb as r,Xb as l,Yb as o,ib as a,sa as d,ua as s,yb as p}from"./chunk-6QJHEOXN.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
1
+ import{h as u}from"./chunk-O44DI62I.js";import{Ea as f}from"./chunk-MGIEURA2.js";import{Cb as c,Lb as C,Mb as m,Qb as h,Wb as r,Xb as l,Yb as o,ib as a,sa as d,ua as s,yb as p}from"./chunk-6QJHEOXN.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
@@ -0,0 +1,202 @@
1
+ import{a as ie,b as St}from"./chunk-4AGTFPOU.js";import{f as Tt}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{a as kt}from"./chunk-YHLRDTIS.js";import{a as vt}from"./chunk-XKI7WLHE.js";import{a as yt}from"./chunk-2ABEICLB.js";import"./chunk-KQZMRRMA.js";import"./chunk-ZC7ZENN7.js";import{m as Ne}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as ee,b as te}from"./chunk-3VQUNDVT.js";import{d as wt,i as bt,j as xt,k as Ct}from"./chunk-BTFX33U6.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as ht,b as gt}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as ft}from"./chunk-J3HFAWXU.js";import{a as tt}from"./chunk-VM56C6ZV.js";import{a as st,b as lt}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import{b as E,c as pt,d as ct,e as mt,f as dt,g as ut,h as _t}from"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{a as et,f as A,k as it,m as nt,o as rt,s as ot,w as Y,x as at}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{A as fe,B as Ze,D as Je,L as We,Ma as Xe,Na as X,Va as Ye,c as K,e as Qe,f as ze,m as je,na as Ke,p as qe,v as Ge,y as $e}from"./chunk-MGIEURA2.js";import{b as Oe,d as Ae,e as Be}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import{c as He,d as ce,f as me,h as de,i as ue,k as _e}from"./chunk-F2X3VGZZ.js";import{j as Z,m as J,o as Me,r as Re,u as W}from"./chunk-DM2JLWKE.js";import{$b as U,$c as Pe,Aa as N,Cb as z,Dc as $,Eb as f,Ec as De,Fc as I,Gc as Ee,Ha as L,Kc as Fe,Lb as F,Mb as p,Oc as Ue,Pb as j,Qb as ae,Qc as Ve,Rb as Ce,Sb as M,Sc as x,Ub as R,Vb as O,Wb as l,Xb as s,Y as H,Yb as y,Zb as ye,_ as re,_b as ve,_c as D,ac as S,bd as P,c as B,ca as we,cd as Le,da as be,fc as b,gc as c,hc as ke,ia as C,ib as a,ic as Te,lc as V,mc as q,nc as v,oc as k,qa as u,ra as _,rc as Se,sc as d,tc as T,ua as oe,uc as G,wc as Ie,xc as se,yb as Q,yc as le,zb as xe,zc as pe}from"./chunk-6QJHEOXN.js";import{a as h,b as g}from"./chunk-YQFG5XE2.js";var Et={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1,listJournalTagID:[]},options:{users:[],groups:[],accessTypes:[],journalTags:[]}}},he=pt(_t("UserStore"),ut(Et),ct(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),dt(t=>{let o=C(ie);return{setFilter(n){E(t,i=>g(h({},i),{filter:n}))},onRowSelect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!0}):m);return g(h({},i),{data:r})})},onRowUnselect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!1}):m);return g(h({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");E(t,r=>{let m=r.data.map(w=>w.userName!==i?g(h({},w),{checked:n}):g(h({},w),{checked:!1}));return g(h({},r),{data:m})})},getUserLoader:ee(B(H(()=>o.getUserLoaderList().pipe(te({next:n=>{E(t,i=>g(h({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:ee(B(H(n=>o.getUserFormMeta(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:ee(B(H(n=>o.getUsers(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{data:i.data.map(m=>g(h({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),mt({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Vt=["header"],Pt=["footer"],Lt=["content"],Mt=["closeicon"],Rt=["headless"],Ot=["maskRef"],At=["container"],Bt=["closeButton"],Ht=["*"],Nt=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),Qt=(t,o)=>({transform:t,transition:o}),zt=t=>({value:"visible",params:t});function jt(t,o){t&1&&U(0)}function qt(t,o){if(t&1&&f(0,jt,1,0,"ng-container",4),t&2){let e=c(2);p("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Gt(t,o){t&1&&U(0)}function $t(t,o){if(t&1&&(l(0,"div"),d(1),s()),t&2){let e=c(3);ae(e.cx("title")),a(),T(e.header)}}function Zt(t,o){t&1&&y(0,"TimesIcon"),t&2&&F("data-pc-section","closeicon")}function Jt(t,o){}function Wt(t,o){t&1&&f(0,Jt,0,0,"ng-template")}function Kt(t,o){if(t&1&&f(0,Zt,1,1,"TimesIcon",8)(1,Wt,1,0,null,4),t&2){let e=c(4);p("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),p("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Xt(t,o){if(t&1){let e=S();l(0,"p-button",9),b("onClick",function(i){u(e);let r=c(3);return _(r.close(i))})("keydown.enter",function(i){u(e);let r=c(3);return _(r.close(i))}),f(1,Kt,2,2,"ng-template",null,1,x),s()}if(t&2){let e=c(3);p("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),F("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Yt(t,o){t&1&&U(0)}function ei(t,o){t&1&&U(0)}function ti(t,o){if(t&1&&(ye(0),l(1,"div",5),f(2,ei,1,0,"ng-container",4),s(),ve()),t&2){let e=c(3);a(),p("ngClass",e.cx("footer")),F("data-pc-section","footer"),a(),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function ii(t,o){if(t&1&&(l(0,"div",5),f(1,Gt,1,0,"ng-container",4)(2,$t,2,3,"div",6)(3,Xt,3,5,"p-button",7),s(),l(4,"div",5),Te(5),f(6,Yt,1,0,"ng-container",4),s(),f(7,ti,3,3,"ng-container",8)),t&2){let e=c(2);p("ngClass",e.cx("header")),F("data-pc-section","header"),a(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),a(),p("ngIf",e.header),a(),p("ngIf",e.showCloseIcon&&e.closable),a(),p("ngClass",e.cx("content")),F("data-pc-section","content"),a(2),p("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),p("ngIf",e.footerTemplate||e._footerTemplate)}}function ni(t,o){if(t&1){let e=S();l(0,"div",3,0),b("@panelState.start",function(i){u(e);let r=c();return _(r.onAnimationStart(i))})("@panelState.done",function(i){u(e);let r=c();return _(r.onAnimationEnd(i))})("keydown",function(i){u(e);let r=c();return _(r.onKeyDown(i))}),f(2,qt,1,1,"ng-container")(3,ii,8,9),s()}if(t&2){let e=c();j(e.style),ae(e.styleClass),p("ngClass",Fe(9,Nt,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",I(19,zt,Ee(16,Qt,e.transformOptions,e.transitionOptions))),F("data-pc-name","sidebar")("data-pc-section","root"),a(2),Ce(e.headlessTemplate||e._headlessTemplate?2:3)}}var ri=({dt:t})=>`
2
+ .p-drawer {
3
+ display: flex;
4
+ flex-direction: column;
5
+ pointer-events: auto;
6
+ transform: translate3d(0px, 0px, 0px);
7
+ position: fixed;
8
+ transition: transform 0.3s;
9
+ background: ${t("drawer.background")};
10
+ color: ${t("drawer.color")};
11
+ border: 1px solid ${t("drawer.border.color")};
12
+ box-shadow: ${t("drawer.shadow")};
13
+ }
14
+
15
+ .p-drawer-content {
16
+ overflow-y: auto;
17
+ flex-grow: 1;
18
+ padding: ${t("drawer.content.padding")};
19
+ }
20
+
21
+ .p-drawer-header {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ flex-shrink: 0;
26
+ padding: ${t("drawer.header.padding")};
27
+ }
28
+
29
+ .p-drawer-footer {
30
+ padding: ${t("drawer.header.padding")};
31
+ }
32
+
33
+ .p-drawer-title {
34
+ font-weight: ${t("drawer.title.font.weight")};
35
+ font-size: ${t("drawer.title.font.size")};
36
+ }
37
+
38
+ .p-drawer-full .p-drawer {
39
+ transition: none;
40
+ transform: none;
41
+ width: 100vw !important;
42
+ height: 100vh !important;
43
+ max-height: 100%;
44
+ top: 0px !important;
45
+ left: 0px !important;
46
+ border-width: 1px;
47
+ }
48
+
49
+ .p-drawer-left .p-drawer {
50
+ align-self: start;
51
+ width: 20rem;
52
+ height: 100%;
53
+ border-right-width: 1px;
54
+ }
55
+
56
+ .p-drawer-right .p-drawer {
57
+ align-self: end;
58
+ width: 20rem;
59
+ height: 100%;
60
+ border-left-width: 1px;
61
+ }
62
+
63
+ .p-drawer-top .p-drawer {
64
+ height: 10rem;
65
+ width: 100%;
66
+ border-bottom-width: 1px;
67
+ }
68
+
69
+ .p-drawer-bottom .p-drawer {
70
+ height: 10rem;
71
+ width: 100%;
72
+ border-top-width: 1px;
73
+ }
74
+
75
+ .p-drawer-left .p-drawer-content,
76
+ .p-drawer-right .p-drawer-content,
77
+ .p-drawer-top .p-drawer-content,
78
+ .p-drawer-bottom .p-drawer-content {
79
+ width: 100%;
80
+ height: 100%;
81
+ }
82
+
83
+ .p-drawer-open {
84
+ display: flex;
85
+ }
86
+
87
+ .p-drawer-top {
88
+ justify-content: flex-start;
89
+ }
90
+
91
+ .p-drawer-bottom {
92
+ justify-content: flex-end;
93
+ }
94
+
95
+ .p-drawer {
96
+ position: fixed;
97
+ transition: transform 0.3s;
98
+ display: flex;
99
+ flex-direction: column;
100
+ }
101
+
102
+ .p-drawer-content {
103
+ position: relative;
104
+ overflow-y: auto;
105
+ flex-grow: 1;
106
+ }
107
+
108
+ .p-drawer-header {
109
+ display: flex;
110
+ align-items: center;
111
+ }
112
+
113
+ .p-drawer-footer {
114
+ margin-top: auto;
115
+ }
116
+
117
+ .p-drawer-icon {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ margin-left: auto;
122
+ }
123
+
124
+ .p-drawer-left {
125
+ top: 0;
126
+ left: 0;
127
+ width: 20rem;
128
+ height: 100%;
129
+ }
130
+
131
+ .p-drawer-right {
132
+ top: 0;
133
+ right: 0;
134
+ width: 20rem;
135
+ height: 100%;
136
+ }
137
+
138
+ .p-drawer-top {
139
+ top: 0;
140
+ left: 0;
141
+ width: 100%;
142
+ height: 10rem;
143
+ }
144
+
145
+ .p-drawer-bottom {
146
+ bottom: 0;
147
+ left: 0;
148
+ width: 100%;
149
+ height: 10rem;
150
+ }
151
+
152
+ .p-drawer-full {
153
+ width: 100%;
154
+ height: 100%;
155
+ top: 0;
156
+ left: 0;
157
+ -webkit-transition: none;
158
+ transition: none;
159
+ }
160
+
161
+ .p-drawer-mask {
162
+ background-color: rgba(0, 0, 0, 0.4);
163
+ transition-duration: 0.2s;
164
+ }
165
+
166
+ .p-overlay-mask {
167
+ position: fixed;
168
+ top: 0;
169
+ left: 0;
170
+ width: 100%;
171
+ height: 100%;
172
+ }
173
+
174
+ .p-overlay-mask:dir(rtl) {
175
+ flex-direction: row-reverse;
176
+ }
177
+
178
+ .p-overlay-mask-enter {
179
+ animation: p-overlay-mask-enter-animation 150ms forwards;
180
+ }
181
+
182
+ .p-overlay-mask-leave {
183
+ animation: p-overlay-mask-leave-animation 150ms forwards;
184
+ }
185
+
186
+ @keyframes p-overlay-mask-enter-animation {
187
+ from {
188
+ background-color: transparent;
189
+ }
190
+ to {
191
+ background-color: rgba(0, 0, 0, 0.4);
192
+ }
193
+ }
194
+ @keyframes p-overlay-mask-leave-animation {
195
+ from {
196
+ background-color: rgba(0, 0, 0, 0.4);
197
+ }
198
+ to {
199
+ background-color: transparent;
200
+ }
201
+ }
202
+ `,oi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",flexDirection:"column",alignItems:t.position==="top"?"flex-start":t.position==="bottom"?"flex-end":"center"})},ai={mask:({instance:t})=>({"p-drawer-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen,[`p-drawer-${t.position}`]:!!t.position}),root:({instance:t})=>({"p-drawer p-component":!0,"p-drawer-full":t.fullScreen}),header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},It=(()=>{class t extends Ye{name="drawer";theme=ri;classes=ai;inlineStyles=oi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275prov=we({token:t,factory:t.\u0275fac})}return t})();var si=ue([me({transform:"{{transform}}",opacity:0}),ce("{{transition}}")]),li=ue([ce("{{transition}}",me({transform:"{{transform}}",opacity:0}))]),ge=(()=>{class t extends et{appendTo="body";blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){if(this._position=e,e==="full"){this.transformOptions="none";return}switch(e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}header;maskStyle;closable=!0;onShow=new N;onHide=new N;visibleChange=new N;maskRef;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=C(It);ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container.setAttribute(this.attrSelector,""),this.autoZIndex&&A.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-drawer-active"),n=e.length,i=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",i),Ke(this.mask,"style",this.maskStyle),fe(this.mask,"p-overlay-mask p-drawer-mask p-overlay-mask-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.dismissible&&this.close(r)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&Ze())}disableModality(){this.mask&&(fe(this.mask,"p-overlay-mask-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&Je(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!1),A.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):We(this.appendTo,this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===A.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&A.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(V(r,Vt,4),V(r,Pt,4),V(r,Lt,4),V(r,Mt,4),V(r,Rt,4),V(r,Xe,4)),n&2){let m;v(m=k())&&(i.headerTemplate=m.first),v(m=k())&&(i.footerTemplate=m.first),v(m=k())&&(i.contentTemplate=m.first),v(m=k())&&(i.closeIconTemplate=m.first),v(m=k())&&(i.headlessTemplate=m.first),v(m=k())&&(i.templates=m)}},viewQuery:function(n,i){if(n&1&&(q(Ot,5),q(At,5),q(Bt,5)),n&2){let r;v(r=k())&&(i.maskRef=r.first),v(r=k())&&(i.containerViewChild=r.first),v(r=k())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",D],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",D],baseZIndex:[2,"baseZIndex","baseZIndex",Pe],modal:[2,"modal","modal",D],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",D],showCloseIcon:[2,"showCloseIcon","showCloseIcon",D],closeOnEscape:[2,"closeOnEscape","closeOnEscape",D],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",D]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[$([It]),z],ngContentSelectors:Ht,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary",3,"ngClass","style","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass","buttonProps","ariaLabel","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"onClick","keydown.enter","ngClass","buttonProps","ariaLabel"]],template:function(n,i){n&1&&(ke(),f(0,ni,4,21,"div",2)),n&2&&p("ngIf",i.visible)},dependencies:[W,Z,J,Me,Y,tt,X],encapsulation:2,data:{animation:[He("panelState",[de("void => visible",[_e(si)]),de("visible => void",[_e(li)])])]},changeDetection:0})}return t})(),Dt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=xe({type:t});static \u0275inj=be({imports:[ge,X,X]})}return t})();var ci=["class","page"],mi=()=>({width:"400px"}),ne=t=>({"ng-invalid ng-dirty":t}),di=t=>({groupID:t});function ui(t,o){if(t&1){let e=S();l(0,"p-button",24),b("onClick",function(){u(e);let i=c(2);return _(i.onDeleteUser())}),s()}}function _i(t,o){if(t&1){let e=S();l(0,"p-button",25),b("onClick",function(){u(e);let i=c(2);return _(i.onHandleDrawer())}),s()}}function fi(t,o){if(t&1&&(l(0,"div",21),f(1,ui,1,0,"p-button",22)(2,_i,1,0,"p-button",23),s()),t&2){let e=c();a(),p("ngIf",e.store.hasCheckedRows()),a(),p("ngIf",e.roleService.permissions().user.create)}}function hi(t,o){t&1&&(l(0,"th",32),y(1,"p-tableHeaderCheckbox"),s())}function gi(t,o){if(t&1&&(l(0,"tr"),f(1,hi,2,0,"th",28),l(2,"th",29),d(3,"LoginID"),s(),l(4,"th",29),d(5,"Group"),s(),l(6,"th",30),d(7,"Access"),s(),l(8,"th"),d(9,"Tags"),s(),l(10,"th",31),d(11,"Last Login"),s()()),t&2){let e=c(2);a(),p("ngIf",e.roleService.permissions().user.delete)}}function wi(t,o){t&1&&U(0)}function bi(t,o){if(t&1&&y(0,"p-tableCheckbox",38),t&2){let e=c(3).$implicit;p("value",e)}}function xi(t,o){if(t&1&&f(0,bi,1,1,"p-tableCheckbox",37),t&2){let e=c(4);p("ngIf",e.roleService.permissions().user.delete)}}function Ci(t,o){if(t&1&&(l(0,"td"),f(1,wi,1,0,"ng-container",36)(2,xi,1,1,"ng-template",null,7,x),s()),t&2){let e=Se(3),n=c().$implicit,i=c(2);a(),p("ngIf",i.roleService.permissions().user.delete&&n.userName===i.currentUser())("ngIfElse",e)}}function yi(t,o){if(t&1){let e=S();l(0,"tr"),f(1,Ci,4,2,"td",33),l(2,"td")(3,"button",34),b("click",function(){let i=u(e).$implicit,r=c(2);return _(r.onEditUser(i))}),d(4),s()(),l(5,"td")(6,"a",35),d(7),s()(),l(8,"td"),d(9),s(),l(10,"td"),d(11),s(),l(12,"td")(13,"span"),d(14),Ue(15,"date"),s()()()}if(t&2){let e=o.$implicit,n=c(2);a(),p("ngIf",n.roleService.permissions().user.delete),a(2),p("disabled",!n.roleService.permissions().user.edit),a(),G(" ",e.userName||e.userID," "),a(2),p("queryParams",I(11,di,e.groupID)),a(),T(e.groupName),a(2),G(" ",e.accessTypeName," "),a(2),G(" ",e.tags.length===0?"All tags":e.tags.length<=5?e.tags.join(", "):e.tags.length+" tags assigned"," "),a(3),T(Ve(15,8,e.lastLogin,"dd MMM HH:mm"))}}function vi(t,o){if(t&1&&d(0),t&2){let e=c(2);Ie(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function ki(t,o){t&1&&(l(0,"tr")(1,"td",39)(2,"span"),d(3,"No users found. Try adjusting your filters or add a new user."),s()()())}function Ti(t,o){if(t&1){let e=S();l(0,"p-panel")(1,"div",26),y(2,"app-user-tabs"),l(3,"p-table",27),b("onPage",function(i){u(e);let r=c();return _(r.onPageChange(i))})("onRowSelect",function(i){u(e);let r=c();return _(r.onRowSelect(i))})("onRowUnselect",function(i){u(e);let r=c();return _(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){u(e);let r=c();return _(r.onHeaderCheckboxToggle(i))}),f(4,gi,12,1,"ng-template",null,3,x)(6,yi,16,13,"ng-template",null,4,x)(8,vi,1,3,"ng-template",null,5,x)(10,ki,4,0,"ng-template",null,6,x),s()()()}if(t&2){let e=c();a(3),p("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Si(t,o){if(t&1&&(l(0,"div",40)(1,"div",19)(2,"div",41)(3,"label",42),d(4,"Group"),s(),y(5,"p-select",43),s()()()),t&2){let e=c();p("formGroup",e.forms.filterForm),a(5),p("showClear",!0)("options",e.store.meta().options.groups)}}function Ii(t,o){if(t&1&&(l(0,"span",44),d(1),s()),t&2){let e=c();a(),T(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function Di(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),T(e)}}function Ei(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),T(e)}}function Fi(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),T(e)}}function Ui(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),T(e)}}var An=(()=>{class t extends vt{ngOnInit(){this.generateForm()}constructor(){Le(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(he),this.fb=C(Ge),this.userService=C(ie),this.isLoading=L(!1),this.form=null,this.isDrawerOpen=L(!1),this.router=C(Ae),this.route=C(Oe),this.isDialogFilterVisible=L(!1),this.roleService=C(Ne),this.currentUser=L(null),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngAfterViewInit(){this.currentUser.set(localStorage.getItem("AUTH_USERNAME")||null)}onPageChange(e){this.store.setFilter(g(h({},this.store.filter()),{pagination:e.first/e.rows+1}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}generateForm(){this.forms={filterForm:this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),groupID:this.fb.control(null)}),userForm:this.fb.group({id:this.fb.control({value:this.store.metaForm().form.id,disabled:this.store.metaForm().form.id!==kt},[K.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[K.required]),accessTypeID:this.fb.control(this.store.metaForm().form.accessTypeID,[K.required]),listJournalTagID:this.fb.control(this.store.metaForm().form.listJournalTagID??[])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){let{userForm:e}=this.forms;if(e.invalid){e.markAllAsTouched();return}let n=e.getRawValue(),i;if(this.store.hasCheckedRows()){let[r]=this.store.checkedData();i={id:r,groupID:n.groupID,accessTypeID:n.accessTypeID,listJournalTagID:n.listJournalTagID}}else i=n;this.userService.inviteUser(i).pipe(re(()=>{this.onHandleDrawer(),this.store.setFilter(h({},this.store.filter())),e.reset()})).subscribe()}onSearch(e){this.store.setFilter(g(h({},this.store.filter()),{text:e,pagination:1}))}onOKFilter(){if(this.forms.filterForm.invalid){this.forms.filterForm.markAllAsTouched();return}let{groupID:e}=this.forms.filterForm.value;this.store.setFilter(g(h({},this.store.filter()),{groupID:e})),this.isDialogFilterVisible.update(n=>!n)}onEditUser(e){this.store.onRowSelect(e),this.store.getUserFormMeta(this.store.selectedID()),this.isDrawerOpen.update(n=>!n)}onHideDrawer(){this.store.onHeaderCheckboxToggle(!1)}onDeleteUser(){let e=this.store.checkedData();this.userService.deleteUser(e).pipe(re(()=>{this.store.setFilter(h({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-user",8,"page"]],features:[$([he]),z],attrs:ci,decls:41,vars:27,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],["position","right",3,"visibleChange","onHide","visible"],[1,"row","py-3","row-gap-3",3,"formGroup"],[1,"col-12"],["for","",1,"m-0"],["fluid","","filter","","filterBy","name","formControlName","id","optionLabel","loginID","optionValue","id","placeholder","Select a User",3,"disabled","options","ngClass"],[1,"text-danger"],["filter","","filterBy","name","formControlName","groupID","optionLabel","name","optionValue","id","placeholder","Select a Group","fluid","",3,"options","ngClass"],["filter","","filterBy","name","formControlName","accessTypeID","optionLabel","value","optionValue","key","placeholder","Select Access Type","fluid","",3,"options","ngClass"],[1,"tags-field"],["fluid","","filter","","filterBy","name","formControlName","listJournalTagID","optionLabel","name","optionValue","id","placeholder","Select a Tag","display","chip",3,"options","maxSelectedLabels","ngClass"],[1,"col"],["label","Submit",3,"onClick"],[1,"d-flex","gap-2","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Invite",3,"onClick",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["label","Invite",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","userID",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 10px",4,"ngIf"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","10px"],[4,"ngIf"],[1,"btn","btn-link","fw-light","text-primary","p-0",2,"text-decoration","none",3,"click","disabled"],["routerLink","/pages/users/groups/forms",1,"link","link-primary",3,"queryParams"],[4,"ngIf","ngIfElse"],[3,"value",4,"ngIf"],[3,"value"],["colspan","3"],[1,"row",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["appendTo","body","formControlName","groupID","optionValue","id","optionLabel","name","placeholder","Select a Group",3,"showClear","options"],[1,"fs-5"]],template:function(n,i){if(n&1){let r=S();l(0,"app-main-panel",8),b("search",function(w){return u(r),_(i.onSearch(w))}),pe("isDialogFilterVisibleChange",function(w){return u(r),le(i.isDialogFilterVisible,w)||(i.isDialogFilterVisible=w),_(w)}),b("filterConfirmed",function(){return u(r),_(i.onOKFilter())}),f(1,fi,3,2,"ng-template",null,0,x)(3,Ti,12,5,"ng-template",null,1,x)(5,Si,6,3,"ng-template",null,2,x),s(),l(7,"p-drawer",9),pe("visibleChange",function(w){return u(r),le(i.isDrawerOpen,w)||(i.isDrawerOpen=w),_(w)}),b("onHide",function(){return u(r),_(i.onHideDrawer())}),f(8,Ii,2,1,"ng-template",null,3,x),l(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),d(14,"Users"),s(),y(15,"p-select",13),R(16,Di,2,1,"small",14,M),s()(),l(18,"div",11)(19,"div")(20,"label",12),d(21,"Groups"),s(),y(22,"p-select",15),R(23,Ei,2,1,"small",14,M),s()(),l(25,"div",11)(26,"div")(27,"label",12),d(28,"Access Type"),s(),y(29,"p-select",16),R(30,Fi,2,1,"small",14,M),s()(),l(32,"div",11)(33,"div",17)(34,"label",12),d(35,"Tags"),s(),y(36,"p-multiSelect",18),R(37,Ui,2,1,"small",14,M),s()(),l(39,"div",19)(40,"p-button",20),b("onClick",function(){return u(r),_(i.onInviteUser())}),s()()()()}n&2&&(p("isSearchableInput",!0)("isFilterable",!0),se("isDialogFilterVisible",i.isDialogFilterVisible),p("scrollable",!0),a(7),j(De(18,mi)),se("visible",i.isDrawerOpen),a(3),p("formGroup",i.forms.userForm),a(5),p("disabled",i.store.hasCheckedRows())("options",i.store.metaForm().options.users)("ngClass",I(19,ne,i.isInvalid("id","userForm"))),a(),O(i.getErrors("id","userForm")),a(6),p("options",i.store.metaForm().options.groups)("ngClass",I(21,ne,i.isInvalid("groupID","userForm"))),a(),O(i.getErrors("id","userForm")),a(6),p("options",i.store.metaForm().options.accessTypes)("ngClass",I(23,ne,i.isInvalid("accessTypeID","userForm"))),a(),O(i.getErrors("accessTypeID","userForm")),a(6),p("options",i.store.metaForm().options.journalTags)("maxSelectedLabels",5)("ngClass",I(25,ne,i.isInvalid("listJournalTagID","userForm"))),a(),O(i.getErrors("listJournalTagID","userForm")))},dependencies:[ft,W,Z,J,Re,Ct,wt,bt,xt,at,Y,Dt,ge,$e,Qe,ze,je,qe,rt,it,nt,ot,gt,ht,Tt,lt,st,St,Be,yt],styles:['[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:"1rem 1.125rem"!important} .p-panel .p-panel-header{display:none!important}.tags-field[_ngcontent-%COMP%] .p-multiselect-list-container .p-multiselect-list .p-multiselect-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px;display:block;margin-left:8px;gap:8px}.tags-field[_ngcontent-%COMP%] .p-multiselect-list-container .p-multiselect-list .p-multiselect-option span{margin-left:10px}'],changeDetection:0})}}return t})();export{An as UserPageComponent};