dealpos 25.38.4 → 25.40.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 (261) hide show
  1. package/browser/chunk-22VVADHO.js +1 -0
  2. package/browser/chunk-26RUS7IT.js +18 -0
  3. package/browser/chunk-2F5C3IAG.js +1 -0
  4. package/browser/{chunk-WO4BYI7W.js → chunk-2FINBSQQ.js} +1 -1
  5. package/browser/{chunk-EY4B3BCK.js → chunk-2FQZ67ZX.js} +1 -1
  6. package/browser/{chunk-2NPKEKTC.js → chunk-2GQKEX5I.js} +1 -1
  7. package/browser/{chunk-LZNTSIJX.js → chunk-2LFFOWKW.js} +1 -1
  8. package/browser/{chunk-ALMWSCCS.js → chunk-2S3RIVNA.js} +1 -1
  9. package/browser/{chunk-UU5RJKWG.js → chunk-3AIABMW2.js} +1 -1
  10. package/browser/{chunk-LPGMI3V2.js → chunk-3GV7FUAX.js} +1 -1
  11. package/browser/{chunk-IFSKJCII.js → chunk-3JE7W7SE.js} +1 -1
  12. package/browser/{chunk-73MSULVJ.js → chunk-3LJ5PM42.js} +1 -1
  13. package/browser/{chunk-6ZOGADBZ.js → chunk-3M5M2T4L.js} +1 -1
  14. package/browser/{chunk-3LBZWLLT.js → chunk-3NJFM55L.js} +1 -1
  15. package/browser/{chunk-WPRDVYRS.js → chunk-3VCFKFUX.js} +1 -1
  16. package/browser/{chunk-HNO36ILE.js → chunk-3VVEN3CF.js} +1 -1
  17. package/browser/{chunk-53HKNZ5U.js → chunk-3XCGOH67.js} +1 -1
  18. package/browser/{chunk-GNIXWNP2.js → chunk-4HDGWFYM.js} +1 -1
  19. package/browser/{chunk-RBCKIP6D.js → chunk-4L5G4WC4.js} +1 -1
  20. package/browser/{chunk-TNJUQ6BJ.js → chunk-4OLDMBIN.js} +1 -1
  21. package/browser/{chunk-Z2BNHBC2.js → chunk-4VQB3RCY.js} +1 -1
  22. package/browser/{chunk-AESCW6DK.js → chunk-4WC2MKQM.js} +1 -1
  23. package/browser/chunk-4ZNRLNQI.js +1 -0
  24. package/browser/{chunk-Z5N4EKJ3.js → chunk-52NDCK4A.js} +1 -1
  25. package/browser/chunk-56ONABHX.js +2 -0
  26. package/browser/{chunk-TGAOY65D.js → chunk-5DFDFG2P.js} +1 -1
  27. package/browser/{chunk-AYRPYHVC.js → chunk-5QW6ZGAI.js} +1 -1
  28. package/browser/{chunk-YJN34SN3.js → chunk-635ZDHSK.js} +2 -2
  29. package/browser/{chunk-VOU4625O.js → chunk-64UDU34W.js} +1 -1
  30. package/browser/{chunk-ZZ7LHETD.js → chunk-6BL2JKZG.js} +1 -1
  31. package/browser/chunk-6CLFZ6DE.js +1 -0
  32. package/browser/{chunk-PMTKXVGT.js → chunk-6ENKLZEP.js} +1 -1
  33. package/browser/{chunk-MV3QRRW6.js → chunk-6IW4MVP2.js} +1 -1
  34. package/browser/{chunk-WNWQWQ7T.js → chunk-6TE7JZAY.js} +1 -1
  35. package/browser/{chunk-B63WLQVF.js → chunk-6WKS4NBT.js} +1 -1
  36. package/browser/{chunk-JEW6T547.js → chunk-75GCAMUG.js} +1 -1
  37. package/browser/{chunk-6TJEBGXX.js → chunk-76MASKAQ.js} +1 -1
  38. package/browser/{chunk-TDMU55LA.js → chunk-7C4FPJKC.js} +1 -1
  39. package/browser/{chunk-5UL73W4S.js → chunk-7LXPGNYF.js} +1 -1
  40. package/browser/{chunk-7LBB7GZS.js → chunk-7QDLYX4Z.js} +1 -1
  41. package/browser/{chunk-L2EDFSBR.js → chunk-7UFQPOGN.js} +1 -1
  42. package/browser/chunk-A7ZWFYP4.js +1 -0
  43. package/browser/{chunk-3WCGKOCQ.js → chunk-ADURXNZF.js} +1 -1
  44. package/browser/chunk-AK4ZY2E5.js +1 -0
  45. package/browser/{chunk-GWHR6QGI.js → chunk-B4IX7BMU.js} +1 -1
  46. package/browser/{chunk-I5K3C5EY.js → chunk-BADUP5JT.js} +1 -1
  47. package/browser/{chunk-BXZKMINC.js → chunk-BAL3IIDS.js} +1 -1
  48. package/browser/chunk-BAOWCY34.js +1 -0
  49. package/browser/{chunk-V4VZQ5KY.js → chunk-BIHQKESC.js} +1 -1
  50. package/browser/{chunk-EGJEWTIR.js → chunk-BS5CESBY.js} +1 -1
  51. package/browser/{chunk-QBVLPTV5.js → chunk-BYNEFOC3.js} +1 -1
  52. package/browser/{chunk-PKYDYRCQ.js → chunk-C74OK6IO.js} +2 -2
  53. package/browser/{chunk-2RSBMS36.js → chunk-CB33ZMNF.js} +1 -1
  54. package/browser/{chunk-F4RAPB7T.js → chunk-CDW6OCYP.js} +1 -1
  55. package/browser/chunk-CGF5Z4D5.js +1 -0
  56. package/browser/{chunk-WJWWBE6Y.js → chunk-CMQAUCAH.js} +1 -1
  57. package/browser/{chunk-LNVTHMH7.js → chunk-CN5SHMHF.js} +1 -1
  58. package/browser/{chunk-BWOG3YI3.js → chunk-CQHU6TYE.js} +1 -1
  59. package/browser/{chunk-MICQTLUU.js → chunk-CWVLKA3Y.js} +1 -1
  60. package/browser/{chunk-BDJCEICU.js → chunk-D2FDNKXB.js} +1 -1
  61. package/browser/{chunk-5JZJ4OL3.js → chunk-D3RDKDIY.js} +1 -1
  62. package/browser/{chunk-QEMZLEBM.js → chunk-D7YIFG3G.js} +1 -1
  63. package/browser/{chunk-EF5QKCYE.js → chunk-DDK45GSM.js} +1 -1
  64. package/browser/{chunk-TSQKBIK3.js → chunk-DL2KKY4K.js} +1 -1
  65. package/browser/{chunk-L7K767B2.js → chunk-DNYXHG4D.js} +1 -1
  66. package/browser/{chunk-47MDCKEY.js → chunk-DPKYMDVN.js} +1 -1
  67. package/browser/chunk-DWOLAWQN.js +1 -0
  68. package/browser/{chunk-O27UF6WP.js → chunk-E3TMOYBP.js} +1 -1
  69. package/browser/chunk-E55NVZSM.js +125 -0
  70. package/browser/chunk-E7AAHH2H.js +57 -0
  71. package/browser/{chunk-SP3U2IDW.js → chunk-EVVI3ASJ.js} +1 -1
  72. package/browser/{chunk-USQURX46.js → chunk-F3TAAANQ.js} +1 -1
  73. package/browser/{chunk-HDFLSFHM.js → chunk-FF3AT4ZZ.js} +1 -1
  74. package/browser/{chunk-BYHJNRE3.js → chunk-FG7XUKIO.js} +1 -1
  75. package/browser/{chunk-KLL2FS2O.js → chunk-FMGNA4IZ.js} +2 -2
  76. package/browser/{chunk-W77QC6LK.js → chunk-FMUENILI.js} +1 -1
  77. package/browser/{chunk-NOLQHNIQ.js → chunk-FO3DCWRP.js} +1 -1
  78. package/browser/{chunk-6YZQTAKQ.js → chunk-FQDWWSFZ.js} +1 -1
  79. package/browser/{chunk-SEFRBZL6.js → chunk-FXSXZS6W.js} +1 -1
  80. package/browser/{chunk-DWWBB3GE.js → chunk-G6C75N4Q.js} +1 -1
  81. package/browser/{chunk-UZKYLAUE.js → chunk-GC77Y2AW.js} +1 -1
  82. package/browser/{chunk-WLIVNIHK.js → chunk-GEVZO5DH.js} +1 -1
  83. package/browser/{chunk-WIFNNBNO.js → chunk-GFJRKEBT.js} +1 -1
  84. package/browser/{chunk-OM5XHSEH.js → chunk-GFRO6FJS.js} +1 -1
  85. package/browser/{chunk-NH53MKW7.js → chunk-GIEZY27V.js} +1 -1
  86. package/browser/chunk-GMN3233I.js +1 -0
  87. package/browser/{chunk-UBUC3CPO.js → chunk-GSS2NRMS.js} +1 -1
  88. package/browser/{chunk-SDAGKCVZ.js → chunk-GSZX7WS2.js} +1 -1
  89. package/browser/{chunk-SGOO265R.js → chunk-GVBPGOE7.js} +1 -1
  90. package/browser/{chunk-EA5E44M5.js → chunk-GXTAGWTL.js} +1 -1
  91. package/browser/{chunk-UF66Z7HD.js → chunk-H24LTKLU.js} +1 -1
  92. package/browser/{chunk-P7BMSNSP.js → chunk-HF4JUBJ3.js} +1 -1
  93. package/browser/{chunk-CKBNUI2K.js → chunk-HHCO4QOU.js} +1 -1
  94. package/browser/{chunk-A4P6PGBD.js → chunk-HQQ77WPJ.js} +1 -1
  95. package/browser/{chunk-5VAXIJEW.js → chunk-I2O3VGCS.js} +1 -1
  96. package/browser/{chunk-IY5XCLBB.js → chunk-I6E6PXQU.js} +1 -1
  97. package/browser/{chunk-ERBXMPSY.js → chunk-IBBZCB6S.js} +1 -1
  98. package/browser/{chunk-RCRLKTEV.js → chunk-IFIBQUT3.js} +1 -1
  99. package/browser/{chunk-NJSJDYUI.js → chunk-IJ7U2UFN.js} +1 -1
  100. package/browser/{chunk-IO54HRLP.js → chunk-IMLG5BJ7.js} +1 -1
  101. package/browser/{chunk-754Q2SCH.js → chunk-IXEK3QVA.js} +1 -1
  102. package/browser/{chunk-FJWXLGMR.js → chunk-J45TXCA6.js} +1 -1
  103. package/browser/{chunk-Y6ACRZOB.js → chunk-JDUQN72H.js} +1 -1
  104. package/browser/{chunk-OGNT4GF7.js → chunk-JGWDQEEO.js} +1 -1
  105. package/browser/{chunk-DFG27WZ4.js → chunk-JHXGTHND.js} +1 -1
  106. package/browser/{chunk-W2UCLTBY.js → chunk-JXJUXV43.js} +1 -1
  107. package/browser/{chunk-7HPUCFSE.js → chunk-KAILKU7Z.js} +1 -1
  108. package/browser/{chunk-TSUYOGZ7.js → chunk-KISK5Y3K.js} +1 -1
  109. package/browser/chunk-KS37A3HL.js +1 -0
  110. package/browser/{chunk-IUATJVYE.js → chunk-KTA5HCUQ.js} +1 -1
  111. package/browser/{chunk-4QPI5R4J.js → chunk-KUWGWL2Z.js} +1 -1
  112. package/browser/chunk-KVCJJEYJ.js +1 -0
  113. package/browser/{chunk-VZX4F3F5.js → chunk-KVJTNXOJ.js} +1 -1
  114. package/browser/chunk-LBLVFHYM.js +1 -0
  115. package/browser/{chunk-TTGCLMYO.js → chunk-LJGV36SK.js} +1 -1
  116. package/browser/{chunk-33VUJMCJ.js → chunk-LJJ5S6BL.js} +1 -1
  117. package/browser/{chunk-EYCZLRFX.js → chunk-LKFDM7AC.js} +1 -1
  118. package/browser/{chunk-ICQLVIY5.js → chunk-LOOZU2KI.js} +1 -1
  119. package/browser/{chunk-Y5RVOKMC.js → chunk-LSMHOEEJ.js} +1 -1
  120. package/browser/{chunk-TESD7Z62.js → chunk-LUTFUKOO.js} +1 -1
  121. package/browser/{chunk-QQY4INTY.js → chunk-M2BWMQEH.js} +1 -1
  122. package/browser/{chunk-RMPEAMU7.js → chunk-M2HT3MNZ.js} +1 -1
  123. package/browser/{chunk-7BU64MD2.js → chunk-M7EO4UVO.js} +1 -1
  124. package/browser/{chunk-5LJAKAH7.js → chunk-MBJEISU5.js} +1 -1
  125. package/browser/{chunk-TBQI2P7D.js → chunk-MEFUUTBS.js} +1 -1
  126. package/browser/{chunk-MZB2FOLE.js → chunk-MS5DBZJS.js} +1 -1
  127. package/browser/{chunk-H5CUR2V6.js → chunk-MYMQ5FSS.js} +1 -1
  128. package/browser/{chunk-KUUYZ5UQ.js → chunk-NDM2ODJP.js} +1 -1
  129. package/browser/{chunk-ZU22CVVV.js → chunk-NHTMJTLV.js} +1 -1
  130. package/browser/{chunk-X4OHSOA3.js → chunk-NLPDFOMQ.js} +1 -1
  131. package/browser/{chunk-SGEVH47J.js → chunk-NQTQPZ6C.js} +1 -1
  132. package/browser/{chunk-RWG3ZQDM.js → chunk-NRCWDBAJ.js} +1 -1
  133. package/browser/{chunk-C73IEBHE.js → chunk-NW73SHIZ.js} +1 -1
  134. package/browser/chunk-NZDREZVN.js +1 -0
  135. package/browser/{chunk-YOKPVEGO.js → chunk-O5PHF6GW.js} +1 -1
  136. package/browser/{chunk-IV6VX4SW.js → chunk-OC76LLTB.js} +1 -1
  137. package/browser/{chunk-TLOTIYIE.js → chunk-OE7PM4Y4.js} +1 -1
  138. package/browser/{chunk-NOHORPPM.js → chunk-OHZN3Z7O.js} +1 -1
  139. package/browser/{chunk-52EOLV7I.js → chunk-OI2RWAOV.js} +1 -1
  140. package/browser/{chunk-TYLM2YM3.js → chunk-OMVUFMMZ.js} +1 -1
  141. package/browser/{chunk-OLALZT3L.js → chunk-OPCIBNIJ.js} +1 -1
  142. package/browser/chunk-OQABAMLZ.js +1 -0
  143. package/browser/{chunk-C6ARCDXZ.js → chunk-OQCGVZVB.js} +1 -1
  144. package/browser/{chunk-AO44F2NK.js → chunk-PDV6AI5F.js} +1 -1
  145. package/browser/{chunk-W6TD44BK.js → chunk-PMVLWI3N.js} +1 -1
  146. package/browser/{chunk-XX6Z7QPA.js → chunk-PNM3PGBM.js} +1 -1
  147. package/browser/{chunk-PEMX7O2Q.js → chunk-PO6IBZGK.js} +2 -2
  148. package/browser/{chunk-VCU3MBYA.js → chunk-PO6NDTPF.js} +2 -2
  149. package/browser/{chunk-6N4AU5UX.js → chunk-PRKAXHSJ.js} +1 -1
  150. package/browser/{chunk-TF3Q66XY.js → chunk-Q4EIRSXE.js} +1 -1
  151. package/browser/{chunk-I7VBCYOO.js → chunk-QCBXPOJL.js} +1 -1
  152. package/browser/{chunk-LJYCLPTA.js → chunk-QGGIOQJT.js} +1 -1
  153. package/browser/{chunk-DYCGOJEI.js → chunk-QGNOVY53.js} +1 -1
  154. package/browser/{chunk-VQ7WKMGF.js → chunk-QMCAG2HX.js} +1 -1
  155. package/browser/{chunk-DNA6EMSK.js → chunk-QNTE2LGU.js} +1 -1
  156. package/browser/{chunk-ZT4RBJMM.js → chunk-QTAOV4NJ.js} +1 -1
  157. package/browser/{chunk-4XFO5HXB.js → chunk-QVS25HHW.js} +1 -1
  158. package/browser/{chunk-O7MCO2N7.js → chunk-QWZ5AM3L.js} +1 -1
  159. package/browser/{chunk-X4UVY3YK.js → chunk-R3RNGCN5.js} +1 -1
  160. package/browser/{chunk-ORVJZDEF.js → chunk-R7LAPYIP.js} +1 -1
  161. package/browser/{chunk-P5PNY2PR.js → chunk-R7MOZHCP.js} +1 -1
  162. package/browser/{chunk-3TVSUUBD.js → chunk-RAWC3LA6.js} +1 -1
  163. package/browser/{chunk-567HXZXC.js → chunk-REQUYIUO.js} +1 -1
  164. package/browser/{chunk-6GDGY3QJ.js → chunk-ROG4PCGU.js} +1 -1
  165. package/browser/{chunk-B3KOTUMH.js → chunk-RQEBYX3F.js} +1 -1
  166. package/browser/{chunk-4IZK3E4I.js → chunk-RRPDIZ3O.js} +1 -1
  167. package/browser/{chunk-OCIWZUYR.js → chunk-RWRT75NX.js} +1 -1
  168. package/browser/{chunk-XBFWYWJ7.js → chunk-RWU6A6Q3.js} +3 -3
  169. package/browser/chunk-SAMB3PL6.js +5 -0
  170. package/browser/{chunk-W4E3XWPN.js → chunk-SF2N5AY3.js} +1 -1
  171. package/browser/chunk-SF3HNXGC.js +1 -0
  172. package/browser/{chunk-CFUU3EHR.js → chunk-SOM7CDGS.js} +1 -1
  173. package/browser/{chunk-XAP2O3OZ.js → chunk-SSVZIUYC.js} +1 -1
  174. package/browser/{chunk-WZ6UAKEL.js → chunk-SZGPES6H.js} +1 -1
  175. package/browser/{chunk-CGESXTHC.js → chunk-T2PMKO3M.js} +1 -1
  176. package/browser/{chunk-JKYTSC2D.js → chunk-T2PXIPKB.js} +1 -1
  177. package/browser/{chunk-TMEELAKA.js → chunk-T66DKYFZ.js} +1 -1
  178. package/browser/{chunk-OBNSNZON.js → chunk-T6MTT57B.js} +1 -1
  179. package/browser/{chunk-VCLNMSWH.js → chunk-TF5EIKOX.js} +1 -1
  180. package/browser/{chunk-AHCRE4GP.js → chunk-TKBUOGER.js} +1 -1
  181. package/browser/chunk-TLANLIUC.js +1 -0
  182. package/browser/{chunk-IDC6L6JH.js → chunk-U5ERES6W.js} +1 -1
  183. package/browser/{chunk-FD5YMPRL.js → chunk-UAI7BPPY.js} +1 -1
  184. package/browser/{chunk-WCX5WWNH.js → chunk-UH3YL7ES.js} +1 -1
  185. package/browser/chunk-V5YHCHGS.js +82 -0
  186. package/browser/{chunk-ZC5TUX6E.js → chunk-VLWQGO7J.js} +1 -1
  187. package/browser/{chunk-UYJZPS2Q.js → chunk-VOC7I5E7.js} +1 -1
  188. package/browser/{chunk-L3BBA7TR.js → chunk-VPLAJK5S.js} +1 -1
  189. package/browser/{chunk-GLXNXL3M.js → chunk-VSDXDXYG.js} +1 -1
  190. package/browser/{chunk-T4BIKBND.js → chunk-VULOVOPY.js} +1 -1
  191. package/browser/{chunk-FY72UF62.js → chunk-VYFU4BSG.js} +1 -1
  192. package/browser/{chunk-DV4SS5LL.js → chunk-WDC6EOX3.js} +1 -1
  193. package/browser/{chunk-CYUJRWL3.js → chunk-WEKOCTBY.js} +1 -1
  194. package/browser/{chunk-6QKPMFLS.js → chunk-WFTWYIDX.js} +1 -1
  195. package/browser/{chunk-ZDAFQN4I.js → chunk-WNN2QQ2E.js} +1 -1
  196. package/browser/{chunk-QXK4GGIN.js → chunk-WQZRIM6G.js} +1 -1
  197. package/browser/{chunk-VUVCBLHS.js → chunk-WRBL5J73.js} +2 -2
  198. package/browser/{chunk-5JT4MRR4.js → chunk-WUDGY4TW.js} +1 -1
  199. package/browser/{chunk-TB765VUC.js → chunk-XFUISODZ.js} +1 -1
  200. package/browser/{chunk-CIBQBSM6.js → chunk-XOQ4SW2R.js} +1 -1
  201. package/browser/{chunk-QVRCMMJJ.js → chunk-XPSHJW3T.js} +1 -1
  202. package/browser/{chunk-LHP3ECFW.js → chunk-XZQMVGBQ.js} +1 -1
  203. package/browser/{chunk-HFMOHPY7.js → chunk-Y24USACE.js} +1 -1
  204. package/browser/{chunk-CMTZAHVY.js → chunk-YAHLQ7AI.js} +1 -1
  205. package/browser/{chunk-WBLR5N2Q.js → chunk-YAT62P4U.js} +4 -4
  206. package/browser/chunk-YBAZUK5O.js +1 -0
  207. package/browser/{chunk-RKDFRND6.js → chunk-YBYLFCJT.js} +1 -1
  208. package/browser/{chunk-MHV3KSPR.js → chunk-YHUI7RQU.js} +1 -1
  209. package/browser/{chunk-RPNTNFVK.js → chunk-YK34HYBV.js} +1 -1
  210. package/browser/{chunk-EBR5GJGA.js → chunk-YLEMIFBY.js} +1 -1
  211. package/browser/{chunk-THRGCK26.js → chunk-YM7SBYD5.js} +1 -1
  212. package/browser/{chunk-F36FREBS.js → chunk-YZLZXXPA.js} +1 -1
  213. package/browser/{chunk-F3QNQDQZ.js → chunk-Z76AR3IW.js} +1 -1
  214. package/browser/{chunk-SX7VXZQI.js → chunk-ZBYQ3WOC.js} +1 -1
  215. package/browser/{chunk-VZLT2MGB.js → chunk-ZEZ2K35X.js} +1 -1
  216. package/browser/{chunk-HRXM4W6Y.js → chunk-ZFYF7PEH.js} +1 -1
  217. package/browser/{chunk-VGFYQPBS.js → chunk-ZHDKGVTO.js} +1 -1
  218. package/browser/{chunk-Y3XAADIW.js → chunk-ZKMJRNCL.js} +1 -1
  219. package/browser/{chunk-EAENAZFY.js → chunk-ZKOMV4BY.js} +1 -1
  220. package/browser/{chunk-JSETQAUZ.js → chunk-ZXI2VI4Z.js} +1 -1
  221. package/browser/{chunk-A6YCCT6G.js → chunk-ZY3EJSWW.js} +1 -1
  222. package/browser/index.html +2 -2
  223. package/browser/main-PULVISV3.js +3 -0
  224. package/package.json +1 -1
  225. package/browser/chunk-6SK3XWNT.js +0 -1
  226. package/browser/chunk-75M3O563.js +0 -1
  227. package/browser/chunk-ADOOGXVH.js +0 -1
  228. package/browser/chunk-BWUGTN45.js +0 -1
  229. package/browser/chunk-C5OAHNCU.js +0 -1
  230. package/browser/chunk-CAU4D2TY.js +0 -82
  231. package/browser/chunk-FKQ2TIBW.js +0 -125
  232. package/browser/chunk-GI43GPSN.js +0 -1
  233. package/browser/chunk-HZNLV6RA.js +0 -1
  234. package/browser/chunk-IVP3GL2V.js +0 -1
  235. package/browser/chunk-JIFR7UDE.js +0 -1
  236. package/browser/chunk-LIHWABXN.js +0 -1
  237. package/browser/chunk-OQN4WGVB.js +0 -2
  238. package/browser/chunk-PPVMHN7V.js +0 -18
  239. package/browser/chunk-Q3GWLSDE.js +0 -1
  240. package/browser/chunk-RCPOPNKZ.js +0 -1
  241. package/browser/chunk-RJ4NEGMD.js +0 -1
  242. package/browser/chunk-RSAIBJCC.js +0 -1
  243. package/browser/chunk-SRSSABUM.js +0 -5
  244. package/browser/chunk-TEFNN3TY.js +0 -1
  245. package/browser/chunk-V6WTKD4V.js +0 -57
  246. package/browser/chunk-XG6WOYOZ.js +0 -1
  247. package/browser/main-HLZF5ZMF.js +0 -3
  248. /package/browser/{chunk-HBNFET4C.js → chunk-4USQPLEW.js} +0 -0
  249. /package/browser/{chunk-6365PJN3.js → chunk-5UDUWK67.js} +0 -0
  250. /package/browser/{chunk-JLWKTGB2.js → chunk-5ZMTBZT3.js} +0 -0
  251. /package/browser/{chunk-DZT5XHBQ.js → chunk-DJOHANFC.js} +0 -0
  252. /package/browser/{chunk-GSLPZSSX.js → chunk-HBAQBI6Z.js} +0 -0
  253. /package/browser/{chunk-3PXI2XBC.js → chunk-J6U6UYNI.js} +0 -0
  254. /package/browser/{chunk-NPJ272AZ.js → chunk-JFLT7NX3.js} +0 -0
  255. /package/browser/{chunk-I4MJUIXL.js → chunk-NQKVYQ6V.js} +0 -0
  256. /package/browser/{chunk-SE7OFLAL.js → chunk-NQX7EX5A.js} +0 -0
  257. /package/browser/{chunk-WLRXTHLM.js → chunk-P3KIIKY4.js} +0 -0
  258. /package/browser/{chunk-B5FODXLM.js → chunk-PF33HK6M.js} +0 -0
  259. /package/browser/{chunk-6L6CIH5M.js → chunk-YTGZYBEI.js} +0 -0
  260. /package/browser/{chunk-TK5H65DN.js → chunk-YXCPHYC5.js} +0 -0
  261. /package/browser/{chunk-2IT6TVBI.js → chunk-Z3E24JZW.js} +0 -0
@@ -1 +1 @@
1
- import{ja as l}from"./chunk-DZT5XHBQ.js";import{a as c,b as p}from"./chunk-7DCB7DB2.js";var r=class o{static{this.emailRegex=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/}static{this.phoneNumberRegex=/^\d+$/}static{this.GuidEmpty="00000000-0000-0000-0000-000000000000"}static{this.DecimalMinValue="-7.922816251426434e+28"}static{this.InputLockTimeSpan=500}static{this.MinDate="0001-01-01T00:00:00"}static{this.MinTime="00:00:00"}static{this.MinDecimal="-79228162514264337593543950335"}static StringFormat(t,...e){for(let i=0;i<e.length;i++)t=t.replace(`{${i}}`,e[i]);return t}static{this.isMobileDevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static IsNotEmpty(t){return t!=""&&!o.containsOnlySpaces(t)&&t!=o.GuidEmpty&&t!=null&&t!=null}static IsEmpty(t){return!!(t==""||o.containsOnlySpaces(t)||t==null||t==null||t==o.GuidEmpty)}static isGuid(t){let e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi,i=!1;return t&&(i=e.test(t)),i}static containsOnlySpaces(t){return/^\s*$/.test(t)}static FilterByID(t,e){try{let i=t.filter(s=>s.ID==e);if(i.length>0)return i[0]}catch{}return null}static{this.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]}static GenerateYears(t,e,i){let s=-1;(e==null||e==null)&&(e=11),(i==null||i==null||!i)&&(s=1);let a=[];for(let n=0;n<e;n++)a.push(t+n*s);return a}static DateOnly(t){return t?new Date(new Date(t).toDateString()):new Date(new Date().toDateString())}static differentInDays(t,e){let i=e.getTime()-t.getTime();return Math.floor(i/(1e3*3600*24))}static minutesDiff(t,e){let i=(e.getTime()-t.getTime())/6e4;return Math.ceil(i)}static hoursDiff(t,e){let s=(e.getTime()-t.getTime())/(1e3*3600);return parseFloat(s.toFixed(1))}static Guid_NewGuid(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?s:s&3|8).toString(16)})}static parseJwt(t){var e=t.split(".")[1],i=e.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(s)}static numberOnly(t){let e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}static formatNumber(t){let e="",i="",s=Math.abs(t);return s>999&&s<1e6?(i="K",e=(s/1e3).toFixed(0)):s>=1e6?(i="M",e=(s/1e6).toFixed(0)):s<999&&(e=s.toString()),t<0&&(e="-"+e),e.replace(/\B(?=(\d{3})+(?!\d))/g,",")+i}static isToDay(t){if(this.IsNotEmpty(t)){t=typeof t=="string"?new Date(t):t;let e=new Date;return e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()==t.getTime()}return!1}static setToLatestTime(t){let e=new Date(t);return e.setHours(23,59,59),e}static setToFirstTime(t){let e=new Date(t);return e.setHours(0,0,0),e}static compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}static generateSerialasNote(t=[]){let e="";return t&&t.length>0&&(e=`[${t.map((s,a)=>`${a>0?" ":""}${s.Number}${s.Quantity>1||s.Quantity<0?"*"+s.Quantity:""}`)}]`),e}static getDatesInRange(t,e){let i=new Date(t.getTime()),s=[];for(;i<=e;)s.push(new Date(i)),i.setDate(i.getDate()+1);return s}static getDaysBefore(t,e){return new Date(t.setDate(new Date().getDate()-e))}static getRangeDate(t,e){let i=new Date;i.setMonth(t),i.setFullYear(e);let s=new Date(i.getFullYear(),i.getMonth()-1,1),a=new Date(i.getFullYear(),i.getMonth(),0);return{firstDay:s,lastDay:a}}static setDateTime(t,e){let i=new Date;e&&(i=new Date(e));let s=t.split(":");return i.setHours(parseInt(s[0])),i.setMinutes(parseInt(s[1])),i}static isMaskingField(t=""){return t.includes("?")}static generateMaskingField(t=[]){let e={};return t.forEach((i,s)=>{i=i.split(" ")?.join(""),e=p(c({},e),{[i]:!0})}),e}static checkJSApiSupported(t){let e;return t in window?e=!0:e=!1,e}static cloneObject(t){let e;return this.checkJSApiSupported("structuredClone")?e=structuredClone(t):e=JSON.parse(JSON.stringify(t)),e}static formatTitleFromDate(t,e){let i=null,s=new Date(t),a=new Date(e);return s.getDate()!=a.getDate()&&(i="d"),s.getMonth()!=a.getMonth()&&(i="d MMM"),s.getFullYear()!=a.getFullYear()&&(i="d MMM yyyy"),i}};function y(o){return new Promise((t,e)=>{let i=new Image;i.src=o,i.decode().then(()=>{t({img:o,height:i.height,width:i.width})}).catch(()=>{e(new Error(`Image load error for ${o}`))})})}var u={dashboard:{View:"DashV"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Void:"ShiftVo"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetail:"ContD",ContactImageEditor:"ContE",Supplier:"Supp",SalesPerson:"SalP"},sell:{Create:"Sell",PricebookSelector:"PricebS",Edit:"SellE",Delete:"SellD",Number:"NumE",SalesPerson:"SalesmanE",Return:"Return",Discount:"Disc",UnitPriceEditor:"UnitPE",Commission:"Comms",Tax:"Tax",ProductInputLock:"ProductInputLock",CustomerInputLock:"CustL",Payment:"PayR",PriceVisible:"PriceV",PriceMinimum:"PriceM",Email:"Email",DeleteItem:"DelItm",Shipping:"Ship",PaymentCodeLock:"PayCL",EraseVoidOrd:"EraseVO",RestoreVoidOrd:"RestVO",RetrieveR:"RetrieveR",BundlingPrice:"BundlP",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CredSL",CouponInputLock:"CouponInputLock",Park:"Park"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",Print:"OrdRpr",NoteEditor:"OrdNe",Invoice:"OrdIr",Erase:"EraseVO"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrinting:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense",CommissionView:"CommV",Price:"PriceV"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",ShippingRestriction:"BuySh",Approval:"PurA",Report:"BuyR"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferOrderReceiver:"DelR",TransferOrderVoid:"DelV"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UseG",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export",Number:"NumE",Date:"DateE",Print:"OrdRpr",SensitiveField:"GlobalSF"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",AdvanceState:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"},developer:{Api:"API",View:"Dev",Edit:"DevE"}};var m=class o{_roles=[];constructor(){this.parseJWTRoles()}parseJWTRoles(){let t=localStorage.getItem("Token");if(r.IsNotEmpty(t)){var e=r.parseJwt(t);this._roles=e["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(t,e){let i={};return e.forEach((s,a)=>i[t[a]]=typeof s=="string"?this._roles.includes(s):s(this._roles)),i}isUserHasRole(t){return this._roles.includes(t)}_product;get product(){return r.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}_contact;get contact(){return r.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}_promotion;get promotion(){return r.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}_accounting;get accounting(){return r.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}_users;get users(){return r.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}_outlets;get outlets(){return r.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}_setup;get setup(){return r.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}_service;get service(){return r.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}_profile;get profile(){return r.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}_customerDisplay;get customerDisplay(){return r.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}_orderDisplay;get orderDisplay(){return r.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}_global;get global(){return r.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}_apps;get apps(){return r.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}_fulfillment;get fulfillment(){return r.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}_manufacture;get manufacture(){return r.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}_inventory;get inventory(){return r.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}_sell;get sell(){return r.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}_report;get report(){return r.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}_buy;get buy(){return r.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}_adjustment;get adjustment(){return r.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}_debt;get debt(){return r.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}_payment;get payment(){return r.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}_prepaidPackage;get prepaidPackage(){return r.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}_order;get order(){return r.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}_logistic;get logistic(){return r.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}_estimate;get estimate(){return r.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}_shift;get shift(){return r.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}_developer;get developer(){return r.IsEmpty(this._developer)&&(this._developer=this.setBulkRole("developer")),this._developer}_dashboard;get dashboard(){return r.IsEmpty(this._dashboard)&&(this._dashboard=this.setBulkRole("dashboard")),this._dashboard}setBulkRole(t){let e={};for(let i in u[t])e[i]=this.isUserHasRole(u[t][i]);return e}get isSystemUser(){let t=localStorage.getItem("Token");return r.parseJwt(t).Type=="System"}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null,this._developer=null,this._dashboard=null}toJSON(){return{product:this.product,contact:this.contact,promotion:this.promotion,accounting:this.accounting,users:this.users,outlets:this.outlets,setup:this.setup,service:this.service,profile:this.profile,customerDisplay:this.customerDisplay,orderDisplay:this.orderDisplay,global:this.global,apps:this.apps,fulfillment:this.fulfillment,manufacture:this.manufacture,inventory:this.inventory,sell:this.sell,report:this.report,buy:this.buy,adjustment:this.adjustment,debt:this.debt,payment:this.payment,prepaidPackage:this.prepaidPackage,order:this.order,logistic:this.logistic,estimate:this.estimate,shift:this.shift,developer:this.developer,dashboard:this.dashboard}}static \u0275fac=function(e){return new(e||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})};var h=class o{quantity={minimumFraction:0,maximumFraction:0};amount={minimumFraction:0,maximumFraction:0};constructor(){let t=localStorage.getItem("quantityFraction"),e=localStorage.getItem("amountFraction");if(t){let i=JSON.parse(t);this.setQuantityFraction(i.Minimum,i.Maximum)}if(e){let i=JSON.parse(e);this.setAmountFraction(i.Minimum,i.Maximum)}}setQuantityFraction(t,e){this.quantity.minimumFraction=t,this.quantity.maximumFraction=e}setAmountFraction(t,e){this.amount.minimumFraction=t,this.amount.maximumFraction=e}static \u0275fac=function(e){return new(e||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})};export{r as a,y as b,u as c,m as d,h as e};
1
+ import{ja as l}from"./chunk-DJOHANFC.js";import{a as c,b as p}from"./chunk-7DCB7DB2.js";var r=class o{static{this.emailRegex=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/}static{this.phoneNumberRegex=/^\d+$/}static{this.GuidEmpty="00000000-0000-0000-0000-000000000000"}static{this.DecimalMinValue="-7.922816251426434e+28"}static{this.InputLockTimeSpan=500}static{this.MinDate="0001-01-01T00:00:00"}static{this.MinTime="00:00:00"}static{this.MinDecimal="-79228162514264337593543950335"}static StringFormat(t,...e){for(let i=0;i<e.length;i++)t=t.replace(`{${i}}`,e[i]);return t}static{this.isMobileDevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static IsNotEmpty(t){return t!=""&&!o.containsOnlySpaces(t)&&t!=o.GuidEmpty&&t!=null&&t!=null}static IsEmpty(t){return!!(t==""||o.containsOnlySpaces(t)||t==null||t==null||t==o.GuidEmpty)}static isGuid(t){let e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi,i=!1;return t&&(i=e.test(t)),i}static containsOnlySpaces(t){return/^\s*$/.test(t)}static FilterByID(t,e){try{let i=t.filter(s=>s.ID==e);if(i.length>0)return i[0]}catch{}return null}static{this.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]}static GenerateYears(t,e,i){let s=-1;(e==null||e==null)&&(e=11),(i==null||i==null||!i)&&(s=1);let a=[];for(let n=0;n<e;n++)a.push(t+n*s);return a}static DateOnly(t){return t?new Date(new Date(t).toDateString()):new Date(new Date().toDateString())}static differentInDays(t,e){let i=e.getTime()-t.getTime();return Math.floor(i/(1e3*3600*24))}static minutesDiff(t,e){let i=(e.getTime()-t.getTime())/6e4;return Math.ceil(i)}static hoursDiff(t,e){let s=(e.getTime()-t.getTime())/(1e3*3600);return parseFloat(s.toFixed(1))}static Guid_NewGuid(){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?s:s&3|8).toString(16)})}static parseJwt(t){var e=t.split(".")[1],i=e.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(function(a){return"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(s)}static numberOnly(t){let e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}static formatNumber(t){let e="",i="",s=Math.abs(t);return s>999&&s<1e6?(i="K",e=(s/1e3).toFixed(0)):s>=1e6?(i="M",e=(s/1e6).toFixed(0)):s<999&&(e=s.toString()),t<0&&(e="-"+e),e.replace(/\B(?=(\d{3})+(?!\d))/g,",")+i}static isToDay(t){if(this.IsNotEmpty(t)){t=typeof t=="string"?new Date(t):t;let e=new Date;return e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()==t.getTime()}return!1}static setToLatestTime(t){let e=new Date(t);return e.setHours(23,59,59),e}static setToFirstTime(t){let e=new Date(t);return e.setHours(0,0,0),e}static compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}static generateSerialasNote(t=[]){let e="";return t&&t.length>0&&(e=`[${t.map((s,a)=>`${a>0?" ":""}${s.Number}${s.Quantity>1||s.Quantity<0?"*"+s.Quantity:""}`)}]`),e}static getDatesInRange(t,e){let i=new Date(t.getTime()),s=[];for(;i<=e;)s.push(new Date(i)),i.setDate(i.getDate()+1);return s}static getDaysBefore(t,e){return new Date(t.setDate(new Date().getDate()-e))}static getRangeDate(t,e){let i=new Date;i.setMonth(t),i.setFullYear(e);let s=new Date(i.getFullYear(),i.getMonth()-1,1),a=new Date(i.getFullYear(),i.getMonth(),0);return{firstDay:s,lastDay:a}}static setDateTime(t,e){let i=new Date;e&&(i=new Date(e));let s=t.split(":");return i.setHours(parseInt(s[0])),i.setMinutes(parseInt(s[1])),i}static isMaskingField(t=""){return t.includes("?")}static generateMaskingField(t=[]){let e={};return t.forEach((i,s)=>{i=i.split(" ")?.join(""),e=p(c({},e),{[i]:!0})}),e}static checkJSApiSupported(t){let e;return t in window?e=!0:e=!1,e}static cloneObject(t){let e;return this.checkJSApiSupported("structuredClone")?e=structuredClone(t):e=JSON.parse(JSON.stringify(t)),e}static formatTitleFromDate(t,e){let i=null,s=new Date(t),a=new Date(e);return s.getDate()!=a.getDate()&&(i="d"),s.getMonth()!=a.getMonth()&&(i="d MMM"),s.getFullYear()!=a.getFullYear()&&(i="d MMM yyyy"),i}};function y(o){return new Promise((t,e)=>{let i=new Image;i.src=o,i.decode().then(()=>{t({img:o,height:i.height,width:i.width})}).catch(()=>{e(new Error(`Image load error for ${o}`))})})}var u={dashboard:{View:"DashV"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Void:"ShiftVo"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetail:"ContD",ContactImageEditor:"ContE",Supplier:"Supp",SalesPerson:"SalP"},sell:{Create:"Sell",PricebookSelector:"PricebS",Edit:"SellE",Delete:"SellD",Number:"NumE",SalesPerson:"SalesmanE",Return:"Return",Discount:"Disc",UnitPriceEditor:"UnitPE",Commission:"Comms",Tax:"Tax",ProductInputLock:"ProductInputLock",CustomerInputLock:"CustL",Payment:"PayR",PriceVisible:"PriceV",PriceMinimum:"PriceM",Email:"Email",DeleteItem:"DelItm",Shipping:"Ship",PaymentCodeLock:"PayCL",EraseVoidOrd:"EraseVO",RestoreVoidOrd:"RestVO",RetrieveR:"RetrieveR",BundlingPrice:"BundlP",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CredSL",CouponInputLock:"CouponInputLock",Park:"Park"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",Print:"OrdRpr",NoteEditor:"OrdNe",Invoice:"OrdIr",Erase:"EraseVO"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrinting:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense",CommissionView:"CommV",Price:"PriceV"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",ShippingRestriction:"BuySh",Approval:"PurA",Report:"BuyR"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferOrderReceiver:"DelR",TransferOrderVoid:"DelV"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UseG",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export",Number:"NumE",Date:"DateE",Print:"OrdRpr",SensitiveField:"GlobalSF"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",AdvanceState:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"},developer:{Api:"API",View:"Dev",Edit:"DevE"}};var m=class o{_roles=[];constructor(){this.parseJWTRoles()}parseJWTRoles(){let t=localStorage.getItem("Token");if(r.IsNotEmpty(t)){var e=r.parseJwt(t);this._roles=e["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(t,e){let i={};return e.forEach((s,a)=>i[t[a]]=typeof s=="string"?this._roles.includes(s):s(this._roles)),i}isUserHasRole(t){return this._roles.includes(t)}_product;get product(){return r.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}_contact;get contact(){return r.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}_promotion;get promotion(){return r.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}_accounting;get accounting(){return r.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}_users;get users(){return r.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}_outlets;get outlets(){return r.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}_setup;get setup(){return r.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}_service;get service(){return r.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}_profile;get profile(){return r.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}_customerDisplay;get customerDisplay(){return r.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}_orderDisplay;get orderDisplay(){return r.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}_global;get global(){return r.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}_apps;get apps(){return r.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}_fulfillment;get fulfillment(){return r.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}_manufacture;get manufacture(){return r.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}_inventory;get inventory(){return r.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}_sell;get sell(){return r.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}_report;get report(){return r.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}_buy;get buy(){return r.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}_adjustment;get adjustment(){return r.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}_debt;get debt(){return r.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}_payment;get payment(){return r.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}_prepaidPackage;get prepaidPackage(){return r.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}_order;get order(){return r.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}_logistic;get logistic(){return r.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}_estimate;get estimate(){return r.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}_shift;get shift(){return r.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}_developer;get developer(){return r.IsEmpty(this._developer)&&(this._developer=this.setBulkRole("developer")),this._developer}_dashboard;get dashboard(){return r.IsEmpty(this._dashboard)&&(this._dashboard=this.setBulkRole("dashboard")),this._dashboard}setBulkRole(t){let e={};for(let i in u[t])e[i]=this.isUserHasRole(u[t][i]);return e}get isSystemUser(){let t=localStorage.getItem("Token");return r.parseJwt(t).Type=="System"}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null,this._developer=null,this._dashboard=null}toJSON(){return{product:this.product,contact:this.contact,promotion:this.promotion,accounting:this.accounting,users:this.users,outlets:this.outlets,setup:this.setup,service:this.service,profile:this.profile,customerDisplay:this.customerDisplay,orderDisplay:this.orderDisplay,global:this.global,apps:this.apps,fulfillment:this.fulfillment,manufacture:this.manufacture,inventory:this.inventory,sell:this.sell,report:this.report,buy:this.buy,adjustment:this.adjustment,debt:this.debt,payment:this.payment,prepaidPackage:this.prepaidPackage,order:this.order,logistic:this.logistic,estimate:this.estimate,shift:this.shift,developer:this.developer,dashboard:this.dashboard}}static \u0275fac=function(e){return new(e||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})};var h=class o{quantity={minimumFraction:0,maximumFraction:0};amount={minimumFraction:0,maximumFraction:0};constructor(){let t=localStorage.getItem("quantityFraction"),e=localStorage.getItem("amountFraction");if(t){let i=JSON.parse(t);this.setQuantityFraction(i.Minimum,i.Maximum)}if(e){let i=JSON.parse(e);this.setAmountFraction(i.Minimum,i.Maximum)}}setQuantityFraction(t,e){this.quantity.minimumFraction=t,this.quantity.maximumFraction=e}setAmountFraction(t,e){this.amount.minimumFraction=t,this.amount.maximumFraction=e}static \u0275fac=function(e){return new(e||o)};static \u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})};export{r as a,y as b,u as c,m as d,h as e};
@@ -0,0 +1 @@
1
+ import{fa as o}from"./chunk-DJOHANFC.js";function b(e="emit"){return r=>r.pipe(o(n=>console.log(`${e}`,n)))}export{b as a};
@@ -1 +1 @@
1
- import{b as k,c as S}from"./chunk-CIBQBSM6.js";import{a as N}from"./chunk-AHCRE4GP.js";import{$a as o,Ac as g,Ib as l,Jb as c,Ka as b,Kb as M,Lb as V,Mb as T,Rb as s,Va as y,Wc as F,Zc as O,db as r,ec as d,fb as h,fc as P,gc as _,gd as w,jd as D,kb as v,mb as I,nb as C,qb as m,rc as x,sc as E,vb as a,zb as u,zc as f}from"./chunk-DZT5XHBQ.js";var z=(()=>{class e{transform(t){return typeof t=="number"&&(t=t.toString()),t!=null?t.replace(/\n/g,"<br />"):t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=C({name:"newlines",type:e,pure:!0})}}return e})();var B=e=>({disabled:e}),L=(e,p)=>({labelFilledInput:e,labelEmptyInput:p});function j(e,p){if(e&1&&(l(0,"p"),d(1),f(2,"number"),c()),e&2){let t=s();o(),P(t.inputValueType()==="number"?g(2,1,t.inputValue):t.inputValue)}}function q(e,p){if(e&1&&(M(0,"p",3),f(1,"newlines")),e&2){let t=s();a("innerHTML",g(1,1,t.inputValue),y)}}function A(e,p){if(e&1&&(V(0),d(1),T()),e&2){let t=s();o(),_(" ",t.labelValue," ")}}var H=(()=>{class e{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=N.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(i,n){i&1&&(l(0,"div",0),m(1,j,3,3,"p",1)(2,q,2,3,"p",2),l(3,"label"),m(4,A,2,1,"ng-container",1),c()()),i&2&&(u(n.class),a("ngClass",x(9,B,n.disabled))("matTooltip",n.tooltip),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),u(E(11,L,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[D,F,O,w,z,S,k],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return e})();var $=(()=>{class e{constructor(t,i){this.vcr=t,this.elementRef=i,this.type="input",this.label="",this.value="",this.isMasked=!1}ngOnInit(){let t=this.elementRef.nativeElement;if(t.firstChild&&this.isMasked){for(;t.firstChild;)t.removeChild(t.firstChild);let i=this.vcr.createComponent(H);i.instance.inputType=this.type,i.instance.inputValue=this.value,i.instance.labelValue=this.label,i.instance.tooltip="This Value is sensitive, Please contact your administrator if you need to view this!",i.instance.disabled=!0;let n=this.elementRef.nativeElement;n.insertBefore(i.location.nativeElement,n.firstChild)}}static{this.\u0275fac=function(i){return new(i||e)(r(h),r(b))}}static{this.\u0275dir=I({type:e,selectors:[["","pOSFormOrFloatingOnMasked",""]],inputs:{type:"type",label:"label",value:"value",isMasked:"isMasked"}})}}return e})();export{$ as a};
1
+ import{b as k,c as S}from"./chunk-XOQ4SW2R.js";import{a as N}from"./chunk-TKBUOGER.js";import{$a as o,Ac as g,Ib as l,Jb as c,Ka as b,Kb as M,Lb as V,Mb as T,Rb as s,Va as y,Wc as F,Zc as O,db as r,ec as d,fb as h,fc as P,gc as _,gd as w,jd as D,kb as v,mb as I,nb as C,qb as m,rc as x,sc as E,vb as a,zb as u,zc as f}from"./chunk-DJOHANFC.js";var z=(()=>{class e{transform(t){return typeof t=="number"&&(t=t.toString()),t!=null?t.replace(/\n/g,"<br />"):t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=C({name:"newlines",type:e,pure:!0})}}return e})();var B=e=>({disabled:e}),L=(e,p)=>({labelFilledInput:e,labelEmptyInput:p});function j(e,p){if(e&1&&(l(0,"p"),d(1),f(2,"number"),c()),e&2){let t=s();o(),P(t.inputValueType()==="number"?g(2,1,t.inputValue):t.inputValue)}}function q(e,p){if(e&1&&(M(0,"p",3),f(1,"newlines")),e&2){let t=s();a("innerHTML",g(1,1,t.inputValue),y)}}function A(e,p){if(e&1&&(V(0),d(1),T()),e&2){let t=s();o(),_(" ",t.labelValue," ")}}var H=(()=>{class e{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=N.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(i,n){i&1&&(l(0,"div",0),m(1,j,3,3,"p",1)(2,q,2,3,"p",2),l(3,"label"),m(4,A,2,1,"ng-container",1),c()()),i&2&&(u(n.class),a("ngClass",x(9,B,n.disabled))("matTooltip",n.tooltip),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),u(E(11,L,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[D,F,O,w,z,S,k],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return e})();var $=(()=>{class e{constructor(t,i){this.vcr=t,this.elementRef=i,this.type="input",this.label="",this.value="",this.isMasked=!1}ngOnInit(){let t=this.elementRef.nativeElement;if(t.firstChild&&this.isMasked){for(;t.firstChild;)t.removeChild(t.firstChild);let i=this.vcr.createComponent(H);i.instance.inputType=this.type,i.instance.inputValue=this.value,i.instance.labelValue=this.label,i.instance.tooltip="This Value is sensitive, Please contact your administrator if you need to view this!",i.instance.disabled=!0;let n=this.elementRef.nativeElement;n.insertBefore(i.location.nativeElement,n.firstChild)}}static{this.\u0275fac=function(i){return new(i||e)(r(h),r(b))}}static{this.\u0275dir=I({type:e,selectors:[["","pOSFormOrFloatingOnMasked",""]],inputs:{type:"type",label:"label",value:"value",isMasked:"isMasked"}})}}return e})();export{$ as a};
@@ -1 +1 @@
1
- import{d as n}from"./chunk-DZT5XHBQ.js";var r=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new n;constructor(e=!1,t,s=!0,h){this._multiple=e,this._emitChanges=s,this.compareWith=h,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let h=this._hasQueuedChanges();return this._emitChangeEvent(),h}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};export{r as a};
1
+ import{d as n}from"./chunk-DJOHANFC.js";var r=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new n;constructor(e=!1,t,s=!0,h){this._multiple=e,this._emitChanges=s,this.compareWith=h,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let h=this._hasQueuedChanges();return this._emitChangeEvent(),h}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};export{r as a};