mada-design-system 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/index.cjs10.js +1 -1
  2. package/index.cjs100.js +1 -1
  3. package/index.cjs101.js +1 -1
  4. package/index.cjs102.js +1 -1
  5. package/index.cjs103.js +1 -1
  6. package/index.cjs104.js +1 -1
  7. package/index.cjs105.js +1 -1
  8. package/index.cjs106.js +5 -1
  9. package/index.cjs107.js +1 -5
  10. package/index.cjs108.js +1 -1
  11. package/index.cjs109.js +1 -1
  12. package/index.cjs110.js +1 -1
  13. package/index.cjs111.js +1 -1
  14. package/index.cjs112.js +1 -1
  15. package/index.cjs113.js +1 -1
  16. package/index.cjs114.js +1 -1
  17. package/index.cjs115.js +1 -1
  18. package/index.cjs116.js +1 -1
  19. package/index.cjs117.js +1 -1
  20. package/index.cjs118.js +1 -1
  21. package/index.cjs119.js +4 -1
  22. package/index.cjs12.js +1 -1
  23. package/index.cjs120.js +1 -4
  24. package/index.cjs121.js +2 -1
  25. package/index.cjs122.js +1 -2
  26. package/index.cjs123.js +2 -1
  27. package/index.cjs124.js +1 -2
  28. package/index.cjs125.js +1 -1
  29. package/index.cjs126.js +1 -1
  30. package/index.cjs127.js +1 -1
  31. package/index.cjs128.js +1 -1
  32. package/index.cjs129.js +1 -1
  33. package/index.cjs13.js +1 -1
  34. package/index.cjs130.js +1 -1
  35. package/index.cjs131.js +1 -1
  36. package/index.cjs132.js +20 -1
  37. package/index.cjs133.js +1 -20
  38. package/index.cjs134.js +1 -1
  39. package/index.cjs135.js +1 -1
  40. package/index.cjs136.js +1 -1
  41. package/index.cjs137.js +1 -1
  42. package/index.cjs138.js +1 -1
  43. package/index.cjs139.js +1 -1
  44. package/index.cjs140.js +1 -1
  45. package/index.cjs141.js +1 -1
  46. package/index.cjs142.js +1 -1
  47. package/index.cjs143.js +1 -1
  48. package/index.cjs144.js +1 -1
  49. package/index.cjs145.js +1 -1
  50. package/index.cjs146.js +1 -1
  51. package/index.cjs147.js +1 -1
  52. package/index.cjs148.js +1 -1
  53. package/index.cjs149.js +1 -1
  54. package/index.cjs15.js +1 -1
  55. package/index.cjs150.js +1 -1
  56. package/index.cjs151.js +1 -1
  57. package/index.cjs152.js +1 -1
  58. package/index.cjs153.js +1 -1
  59. package/index.cjs154.js +1 -1
  60. package/index.cjs155.js +1 -1
  61. package/index.cjs156.js +1 -1
  62. package/index.cjs157.js +1 -1
  63. package/index.cjs158.js +1 -1
  64. package/index.cjs159.js +1 -1
  65. package/index.cjs160.js +1 -1
  66. package/index.cjs161.js +1 -1
  67. package/index.cjs162.js +1 -1
  68. package/index.cjs163.js +1 -1
  69. package/index.cjs164.js +1 -1
  70. package/index.cjs165.js +1 -1
  71. package/index.cjs166.js +1 -1
  72. package/index.cjs167.js +1 -1
  73. package/index.cjs168.js +1 -1
  74. package/index.cjs169.js +1 -1
  75. package/index.cjs17.js +1 -1
  76. package/index.cjs170.js +1 -1
  77. package/index.cjs171.js +1 -1
  78. package/index.cjs172.js +1 -1
  79. package/index.cjs173.js +1 -1
  80. package/index.cjs174.js +1 -1
  81. package/index.cjs179.js +1 -1
  82. package/index.cjs181.js +1 -1
  83. package/index.cjs182.js +1 -1
  84. package/index.cjs183.js +1 -1
  85. package/index.cjs185.js +1 -1
  86. package/index.cjs186.js +1 -1
  87. package/index.cjs187.js +1 -1
  88. package/index.cjs20.js +1 -1
  89. package/index.cjs200.js +1 -1
  90. package/index.cjs201.js +1 -1
  91. package/index.cjs202.js +1 -1
  92. package/index.cjs21.js +1 -1
  93. package/index.cjs213.js +1 -1
  94. package/index.cjs214.js +1 -1
  95. package/index.cjs215.js +1 -1
  96. package/index.cjs216.js +1 -1
  97. package/index.cjs217.js +1 -1
  98. package/index.cjs22.js +1 -1
  99. package/index.cjs220.js +1 -1
  100. package/index.cjs228.js +1 -1
  101. package/index.cjs229.js +1 -1
  102. package/index.cjs23.js +1 -1
  103. package/index.cjs230.js +1 -1
  104. package/index.cjs25.js +1 -1
  105. package/index.cjs251.js +1 -1
  106. package/index.cjs252.js +1 -1
  107. package/index.cjs254.js +1 -1
  108. package/index.cjs255.js +1 -1
  109. package/index.cjs256.js +1 -1
  110. package/index.cjs257.js +1 -1
  111. package/index.cjs259.js +1 -1
  112. package/index.cjs263.js +1 -1
  113. package/index.cjs264.js +1 -1
  114. package/index.cjs266.js +1 -1
  115. package/index.cjs27.js +1 -1
  116. package/index.cjs29.js +1 -1
  117. package/index.cjs296.js +1 -1
  118. package/index.cjs297.js +1 -1
  119. package/index.cjs298.js +1 -1
  120. package/index.cjs299.js +1 -1
  121. package/index.cjs30.js +1 -1
  122. package/index.cjs300.js +1 -1
  123. package/index.cjs301.js +1 -1
  124. package/index.cjs302.js +1 -1
  125. package/index.cjs303.js +1 -1
  126. package/index.cjs304.js +1 -1
  127. package/index.cjs308.js +1 -1
  128. package/index.cjs309.js +1 -1
  129. package/index.cjs31.js +1 -1
  130. package/index.cjs310.js +1 -1
  131. package/index.cjs311.js +1 -1
  132. package/index.cjs312.js +1 -1
  133. package/index.cjs313.js +1 -1
  134. package/index.cjs314.js +1 -1
  135. package/index.cjs315.js +1 -1
  136. package/index.cjs316.js +1 -1
  137. package/index.cjs317.js +1 -1
  138. package/index.cjs318.js +1 -1
  139. package/index.cjs319.js +1 -1
  140. package/index.cjs32.js +1 -1
  141. package/index.cjs320.js +1 -1
  142. package/index.cjs321.js +1 -1
  143. package/index.cjs33.js +1 -1
  144. package/index.cjs338.js +1 -1
  145. package/index.cjs34.js +1 -1
  146. package/index.cjs343.js +1 -1
  147. package/index.cjs354.js +1 -1
  148. package/index.cjs355.js +1 -1
  149. package/index.cjs356.js +1 -1
  150. package/index.cjs362.js +1 -1
  151. package/index.cjs363.js +1 -1
  152. package/index.cjs364.js +1 -1
  153. package/index.cjs365.js +1 -1
  154. package/index.cjs366.js +1 -1
  155. package/index.cjs367.js +1 -1
  156. package/index.cjs368.js +1 -1
  157. package/index.cjs369.js +1 -1
  158. package/index.cjs37.js +1 -1
  159. package/index.cjs370.js +1 -1
  160. package/index.cjs371.js +1 -1
  161. package/index.cjs372.js +1 -1
  162. package/index.cjs373.js +1 -1
  163. package/index.cjs375.js +1 -1
  164. package/index.cjs376.js +1 -1
  165. package/index.cjs377.js +1 -1
  166. package/index.cjs378.js +1 -1
  167. package/index.cjs379.js +1 -1
  168. package/index.cjs38.js +1 -1
  169. package/index.cjs380.js +1 -1
  170. package/index.cjs381.js +1 -1
  171. package/index.cjs382.js +1 -1
  172. package/index.cjs383.js +1 -1
  173. package/index.cjs386.js +1 -1
  174. package/index.cjs387.js +1 -1
  175. package/index.cjs388.js +1 -1
  176. package/index.cjs39.js +1 -1
  177. package/index.cjs390.js +1 -1
  178. package/index.cjs392.js +1 -1
  179. package/index.cjs396.js +1 -1
  180. package/index.cjs4.js +1 -1
  181. package/index.cjs40.js +1 -1
  182. package/index.cjs402.js +1 -74
  183. package/index.cjs403.js +1 -1
  184. package/index.cjs404.js +1 -1
  185. package/index.cjs405.js +74 -1
  186. package/index.cjs406.js +1 -1
  187. package/index.cjs407.js +1 -1
  188. package/index.cjs408.js +1 -1
  189. package/index.cjs41.js +1 -1
  190. package/index.cjs414.js +1 -1
  191. package/index.cjs415.js +1 -1
  192. package/index.cjs416.js +1 -1
  193. package/index.cjs417.js +1 -1
  194. package/index.cjs418.js +1 -1
  195. package/index.cjs419.js +1 -1
  196. package/index.cjs42.js +1 -1
  197. package/index.cjs420.js +1 -1
  198. package/index.cjs421.js +1 -1
  199. package/index.cjs422.js +1 -1
  200. package/index.cjs423.js +1 -1
  201. package/index.cjs424.js +1 -1
  202. package/index.cjs425.js +1 -1
  203. package/index.cjs428.js +1 -1
  204. package/index.cjs43.js +1 -1
  205. package/index.cjs45.js +1 -1
  206. package/index.cjs46.js +1 -1
  207. package/index.cjs47.js +1 -1
  208. package/index.cjs48.js +1 -1
  209. package/index.cjs49.js +1 -1
  210. package/index.cjs51.js +1 -1
  211. package/index.cjs52.js +1 -1
  212. package/index.cjs53.js +1 -1
  213. package/index.cjs54.js +1 -1
  214. package/index.cjs55.js +1 -1
  215. package/index.cjs56.js +1 -1
  216. package/index.cjs57.js +1 -1
  217. package/index.cjs61.js +1 -1
  218. package/index.cjs63.js +1 -1
  219. package/index.cjs64.js +1 -1
  220. package/index.cjs66.js +1 -1
  221. package/index.cjs67.js +1 -1
  222. package/index.cjs7.js +1 -1
  223. package/index.cjs72.js +1 -1
  224. package/index.cjs73.js +1 -1
  225. package/index.cjs74.js +1 -1
  226. package/index.cjs75.js +1 -1
  227. package/index.cjs76.js +1 -1
  228. package/index.cjs8.js +1 -1
  229. package/index.cjs81.js +1 -1
  230. package/index.cjs85.js +1 -1
  231. package/index.cjs86.js +1 -1
  232. package/index.cjs87.js +1 -1
  233. package/index.cjs89.js +1 -1
  234. package/index.cjs9.js +1 -1
  235. package/index.cjs96.js +1 -1
  236. package/index.es10.js +3 -3
  237. package/index.es100.js +10 -470
  238. package/index.es101.js +87 -10
  239. package/index.es102.js +19 -86
  240. package/index.es103.js +22 -19
  241. package/index.es104.js +1712 -23
  242. package/index.es105.js +34 -1712
  243. package/index.es106.js +2594 -33
  244. package/index.es107.js +287 -2561
  245. package/index.es108.js +10 -321
  246. package/index.es109.js +5 -5
  247. package/index.es110.js +5 -5
  248. package/index.es111.js +7 -10
  249. package/index.es112.js +33 -8
  250. package/index.es113.js +37 -32
  251. package/index.es114.js +11 -38
  252. package/index.es115.js +5 -5
  253. package/index.es116.js +5 -5
  254. package/index.es117.js +5 -5
  255. package/index.es118.js +5 -5
  256. package/index.es119.js +2567 -9
  257. package/index.es12.js +3 -3
  258. package/index.es120.js +139 -2567
  259. package/index.es121.js +118 -142
  260. package/index.es122.js +136 -116
  261. package/index.es123.js +162 -76
  262. package/index.es124.js +515 -222
  263. package/index.es125.js +11 -516
  264. package/index.es126.js +5 -5
  265. package/index.es127.js +5 -5
  266. package/index.es128.js +378 -10
  267. package/index.es129.js +10 -378
  268. package/index.es13.js +2 -2
  269. package/index.es130.js +5 -5
  270. package/index.es131.js +5 -5
  271. package/index.es132.js +205 -11
  272. package/index.es133.js +11 -205
  273. package/index.es134.js +4 -10
  274. package/index.es135.js +10 -4
  275. package/index.es136.js +5 -5
  276. package/index.es137.js +5 -5
  277. package/index.es138.js +5 -5
  278. package/index.es139.js +5 -5
  279. package/index.es140.js +5 -5
  280. package/index.es141.js +5 -5
  281. package/index.es142.js +2 -11
  282. package/index.es143.js +1 -1
  283. package/index.es144.js +1 -1
  284. package/index.es145.js +1 -1
  285. package/index.es146.js +1 -1
  286. package/index.es147.js +1 -1
  287. package/index.es148.js +11 -2
  288. package/index.es149.js +4 -4
  289. package/index.es15.js +5 -5
  290. package/index.es150.js +5 -5
  291. package/index.es151.js +5 -5
  292. package/index.es152.js +3 -11
  293. package/index.es153.js +11 -3
  294. package/index.es154.js +5 -5
  295. package/index.es155.js +5 -5
  296. package/index.es156.js +5 -5
  297. package/index.es157.js +2 -11
  298. package/index.es158.js +1 -1
  299. package/index.es159.js +11 -2
  300. package/index.es160.js +4 -4
  301. package/index.es161.js +5 -5
  302. package/index.es162.js +5 -5
  303. package/index.es163.js +5 -5
  304. package/index.es164.js +22 -11
  305. package/index.es165.js +11 -22
  306. package/index.es166.js +22 -11
  307. package/index.es167.js +11 -22
  308. package/index.es168.js +5 -5
  309. package/index.es169.js +12 -11
  310. package/index.es17.js +1 -1
  311. package/index.es170.js +11 -12
  312. package/index.es171.js +4 -4
  313. package/index.es172.js +5 -5
  314. package/index.es173.js +5 -5
  315. package/index.es174.js +470 -10
  316. package/index.es179.js +1 -1
  317. package/index.es181.js +468 -221
  318. package/index.es182.js +231 -52
  319. package/index.es183.js +51 -477
  320. package/index.es185.js +38 -30
  321. package/index.es186.js +30 -11
  322. package/index.es187.js +11 -38
  323. package/index.es20.js +1 -1
  324. package/index.es200.js +1 -1
  325. package/index.es201.js +1 -1
  326. package/index.es202.js +1 -1
  327. package/index.es21.js +3 -3
  328. package/index.es213.js +1 -1
  329. package/index.es214.js +1 -1
  330. package/index.es215.js +1 -1
  331. package/index.es216.js +1 -1
  332. package/index.es217.js +3 -3
  333. package/index.es22.js +1 -1
  334. package/index.es220.js +1 -1
  335. package/index.es228.js +5 -5
  336. package/index.es229.js +8 -8
  337. package/index.es23.js +6 -6
  338. package/index.es230.js +1 -1
  339. package/index.es25.js +1 -1
  340. package/index.es251.js +1 -1
  341. package/index.es252.js +4 -4
  342. package/index.es254.js +1 -1
  343. package/index.es255.js +4 -4
  344. package/index.es256.js +2 -2
  345. package/index.es257.js +3 -3
  346. package/index.es259.js +1 -1
  347. package/index.es263.js +3 -3
  348. package/index.es264.js +2 -2
  349. package/index.es266.js +3 -3
  350. package/index.es27.js +1 -1
  351. package/index.es29.js +2 -2
  352. package/index.es296.js +120 -8
  353. package/index.es297.js +7 -351
  354. package/index.es298.js +8 -3
  355. package/index.es299.js +8 -206
  356. package/index.es30.js +16 -16
  357. package/index.es300.js +348 -8
  358. package/index.es301.js +3 -120
  359. package/index.es302.js +206 -7
  360. package/index.es303.js +11 -8
  361. package/index.es304.js +1 -1
  362. package/index.es308.js +6 -15
  363. package/index.es309.js +5 -5
  364. package/index.es31.js +2 -2
  365. package/index.es310.js +3 -7
  366. package/index.es311.js +117 -3
  367. package/index.es312.js +5 -3
  368. package/index.es313.js +7 -2
  369. package/index.es314.js +3 -6
  370. package/index.es315.js +3 -5
  371. package/index.es316.js +3 -4
  372. package/index.es317.js +4 -117
  373. package/index.es318.js +15 -2
  374. package/index.es319.js +2 -45
  375. package/index.es32.js +3 -3
  376. package/index.es320.js +42 -49
  377. package/index.es321.js +51 -3
  378. package/index.es33.js +1 -1
  379. package/index.es338.js +1 -1
  380. package/index.es34.js +1 -1
  381. package/index.es343.js +1 -1
  382. package/index.es354.js +6 -24
  383. package/index.es355.js +14 -11
  384. package/index.es356.js +21 -6
  385. package/index.es362.js +5 -5
  386. package/index.es363.js +4 -6
  387. package/index.es364.js +4 -29
  388. package/index.es365.js +6 -4
  389. package/index.es366.js +19 -5
  390. package/index.es367.js +4 -7
  391. package/index.es368.js +6 -19
  392. package/index.es369.js +3 -4
  393. package/index.es37.js +1 -1
  394. package/index.es370.js +71 -5
  395. package/index.es371.js +4 -3
  396. package/index.es372.js +6 -71
  397. package/index.es373.js +29 -3
  398. package/index.es375.js +6 -7
  399. package/index.es376.js +7 -6
  400. package/index.es377.js +2 -2
  401. package/index.es378.js +71 -2
  402. package/index.es379.js +92 -2
  403. package/index.es38.js +1 -1
  404. package/index.es380.js +2 -71
  405. package/index.es381.js +2 -92
  406. package/index.es382.js +2 -2
  407. package/index.es383.js +2 -2
  408. package/index.es386.js +10 -8
  409. package/index.es387.js +3 -10
  410. package/index.es388.js +8 -3
  411. package/index.es39.js +1 -1
  412. package/index.es390.js +2 -2
  413. package/index.es392.js +1 -1
  414. package/index.es396.js +3 -3
  415. package/index.es4.js +4 -4
  416. package/index.es40.js +2 -2
  417. package/index.es402.js +6 -251
  418. package/index.es403.js +3 -7
  419. package/index.es404.js +2 -3
  420. package/index.es405.js +251 -6
  421. package/index.es406.js +7 -3
  422. package/index.es407.js +3 -2
  423. package/index.es408.js +1 -1
  424. package/index.es41.js +1 -1
  425. package/index.es414.js +248 -7
  426. package/index.es415.js +19 -6
  427. package/index.es416.js +51 -20
  428. package/index.es417.js +7 -51
  429. package/index.es418.js +41 -247
  430. package/index.es419.js +14 -41
  431. package/index.es42.js +2 -2
  432. package/index.es420.js +10 -16
  433. package/index.es421.js +48 -10
  434. package/index.es422.js +25 -47
  435. package/index.es423.js +127 -24
  436. package/index.es424.js +102 -119
  437. package/index.es425.js +8 -112
  438. package/index.es428.js +1 -1
  439. package/index.es43.js +7 -7
  440. package/index.es45.js +4 -4
  441. package/index.es46.js +4 -4
  442. package/index.es47.js +10 -10
  443. package/index.es48.js +2 -2
  444. package/index.es49.js +12 -12
  445. package/index.es51.js +1 -1
  446. package/index.es52.js +5 -5
  447. package/index.es53.js +1 -1
  448. package/index.es54.js +1 -1
  449. package/index.es55.js +2 -2
  450. package/index.es56.js +2 -2
  451. package/index.es57.js +3 -3
  452. package/index.es61.js +2 -2
  453. package/index.es63.js +2 -2
  454. package/index.es64.js +5 -5
  455. package/index.es66.js +7 -7
  456. package/index.es67.js +3 -3
  457. package/index.es7.js +1 -1
  458. package/index.es72.js +1 -1
  459. package/index.es73.js +1 -1
  460. package/index.es74.js +3 -3
  461. package/index.es75.js +4 -4
  462. package/index.es76.js +1 -1
  463. package/index.es8.js +1 -1
  464. package/index.es81.js +1 -1
  465. package/index.es85.js +3 -3
  466. package/index.es86.js +1 -1
  467. package/index.es87.js +1 -1
  468. package/index.es89.js +1 -1
  469. package/index.es9.js +6 -6
  470. package/index.es96.js +2 -2
  471. package/package.json +1 -1
package/index.cjs87.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs167.js"),i=require("./index.cjs88.js"),m=r.create()(i.default(a=>({isAuthenticated:!!localStorage.getItem("nationalId")&&!!localStorage.getItem("accessToken"),accessToken:localStorage.getItem("accessToken")||void 0,refreshToken:localStorage.getItem("refreshToken")||void 0,nationalId:localStorage.getItem("nationalId"),sessionExpired:!1,user:{firstName:"",secondName:"",thridName:"",lastName:"",Id:"",roles:[],email:"",ssoEmail:"",defaultRole:localStorage.getItem("defaultRole")},login:e=>a(()=>(localStorage.setItem("nationalId",e),{isAuthenticated:!0,nationalId:e,sessionExpired:!1})),setUser:e=>a(()=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:e})),updateUser:e=>a(o=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),e.firstName&&e.lastName&&localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:{...o==null?void 0:o.user,...e}})),logout:()=>a(e=>{var o,l;return localStorage.removeItem("nationalId"),localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("displayName"),localStorage.removeItem("defaultRole"),localStorage.removeItem("jwt"),localStorage.removeItem("ERAlertHidden"),localStorage.removeItem("registrationStartDate"),localStorage.removeItem("registrationEndDate"),(l=(o=e==null?void 0:e.user)==null?void 0:o.roles)==null||l.map(t=>{localStorage.removeItem(`${t}-evaluationCounter`),localStorage.removeItem(`${t}-evaluationSkipCounter`),localStorage.removeItem(`${t}-onBoardingSkipCounter`)}),localStorage.removeItem("email"),{isAuthenticated:!1,nationalId:void 0,user:{roles:[]},accessToken:void 0,refreshToken:void 0,sessionExpired:!1}}),setExpireSession:()=>a(()=>({sessionExpired:!0})),setDefaultRole:e=>a(o=>{e&&(o!=null&&o.user)&&(localStorage.setItem("defaultRole",e),o.user.defaultRole=e)})}),{name:"auth"})),n=m;exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs166.js"),i=require("./index.cjs88.js"),m=r.create()(i.default(a=>({isAuthenticated:!!localStorage.getItem("nationalId")&&!!localStorage.getItem("accessToken"),accessToken:localStorage.getItem("accessToken")||void 0,refreshToken:localStorage.getItem("refreshToken")||void 0,nationalId:localStorage.getItem("nationalId"),sessionExpired:!1,user:{firstName:"",secondName:"",thridName:"",lastName:"",Id:"",roles:[],email:"",ssoEmail:"",defaultRole:localStorage.getItem("defaultRole")},login:e=>a(()=>(localStorage.setItem("nationalId",e),{isAuthenticated:!0,nationalId:e,sessionExpired:!1})),setUser:e=>a(()=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:e})),updateUser:e=>a(o=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),e.firstName&&e.lastName&&localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:{...o==null?void 0:o.user,...e}})),logout:()=>a(e=>{var o,l;return localStorage.removeItem("nationalId"),localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("displayName"),localStorage.removeItem("defaultRole"),localStorage.removeItem("jwt"),localStorage.removeItem("ERAlertHidden"),localStorage.removeItem("registrationStartDate"),localStorage.removeItem("registrationEndDate"),(l=(o=e==null?void 0:e.user)==null?void 0:o.roles)==null||l.map(t=>{localStorage.removeItem(`${t}-evaluationCounter`),localStorage.removeItem(`${t}-evaluationSkipCounter`),localStorage.removeItem(`${t}-onBoardingSkipCounter`)}),localStorage.removeItem("email"),{isAuthenticated:!1,nationalId:void 0,user:{roles:[]},accessToken:void 0,refreshToken:void 0,sessionExpired:!1}}),setExpireSession:()=>a(()=>({sessionExpired:!0})),setDefaultRole:e=>a(o=>{e&&(o!=null&&o.user)&&(localStorage.setItem("defaultRole",e),o.user.defaultRole=e)})}),{name:"auth"})),n=m;exports.default=n;
package/index.cjs89.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs167.js"),o=require("./index.cjs88.js"),a=l.create()(o.default(n=>({lang:localStorage.getItem("lang")??"ar",dir:localStorage.getItem("lang")==="en"?"ltr":"rtl",changeLang:e=>n(t=>{e!==t.lang&&(localStorage.setItem("lang",e),window.location.pathname==="/login/verification"?window.location.replace("/login"):window.location.reload())})}),{name:"lanugage"})),g=a;exports.default=g;exports.useLanguage=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs166.js"),o=require("./index.cjs88.js"),a=l.create()(o.default(n=>({lang:localStorage.getItem("lang")??"ar",dir:localStorage.getItem("lang")==="en"?"ltr":"rtl",changeLang:e=>n(t=>{e!==t.lang&&(localStorage.setItem("lang",e),window.location.pathname==="/login/verification"?window.location.replace("/login"):window.location.reload())})}),{name:"lanugage"})),g=a;exports.default=g;exports.useLanguage=a;
package/index.cjs9.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("./index.cjs107.js"),C=require("./index.cjs108.js"),O=require("react"),w=require("react-dom"),W=require("./index.cjs85.js"),F=require("./index.cjs97.js"),H=require("./index.cjs3.js"),j=require("./index.cjs22.js"),L=require("./index.cjs65.js"),V=require("./index.cjs42.js"),J=require("./index.cjs109.js"),K=require("./index.cjs110.js"),Q=require("./index.cjs111.js"),U=require("./index.cjs112.js");function X({configs:r,isEditMode:o,componentMap:p,onConfigChange:f,onOrderChange:g,onSave:d,onCancel:y,onReset:S,onAdd:D,isSidePanelShown:q,isSaving:u}){const[x,N]=O.useState(null),[z,k]=O.useState(null),A=l.useSensor(l.MouseSensor,{activationConstraint:{distance:5}}),_=l.useSensor(l.TouchSensor,{activationConstraint:{delay:100,tolerance:5}}),$=l.useSensors(A,_),B=e=>{N(e.active.id)},P=e=>{const{over:t}=e;k(t?t.id:null)},R=e=>{const{active:t,over:n}=e;if(N(null),k(null),!n||t.id===n.id)return;if(n.id.toString().startsWith("placeholder-")){const c=parseInt(n.id.toString().split("-")[1]),m=r.find(h=>h.alias===t.id);if(m&&m.size==="half"){const h=r.findIndex(T=>T.alias===t.id),I=[...r];I.splice(c+1,0,...I.splice(h,1)),g(I)}return}const a=r.findIndex(c=>c.alias===t.id),i=r.findIndex(c=>c.alias===n.id),b=C.arrayMove(r,a,i);g(b)},v=r.filter(e=>(e==null?void 0:e.isVisible)&&p[e.alias]),G=Array(v.length).fill(0).map((e,t)=>`placeholder-${t}`);return s.jsxs(s.Fragment,{children:[u&&w.createPortal(s.jsx("div",{className:W.cn("fixed inset-0 z-[60000] bg-black transition-all duration-200",u?"opacity-50":"pointer-events-none opacity-0")}),document.body),s.jsxs(l.DndContext,{sensors:$,collisionDetection:l.closestCenter,onDragStart:B,onDragEnd:R,onDragOver:P,children:[s.jsx(C.SortableContext,{items:[...r.map(e=>e.alias),...G],children:s.jsx("div",{className:"grid grid-cols-1 items-center justify-center gap-space-05 px-space-04 pt-space-04 sm:grid-cols-2 sm:items-stretch sm:justify-stretch sm:px-space-06 xl:px-space-05",children:(()=>{let e=0;const t=[],n=r.find(a=>a.alias===x);for(let a=0;a<v.length;a++){const i=v[a],b=p[i.alias];if(!b)continue;t.push(s.jsx(b,{config:i,isEditMode:o,onConfigChange:f,isOver:i.alias===z,isDragging:i.alias===x},i.alias));const c=i.size==="full"?2:1;if(e+=c,o&&i.size==="half"&&e%2===1){const m=v[a+1];if(!m||m.size==="full"){const h=`placeholder-${a}`;t.push(s.jsx(Y,{id:h,isEditMode:o,activeId:x,overId:z,draggedWidgetSize:n==null?void 0:n.size},h)),e+=1}}}return t})()})}),s.jsx(l.DragOverlay,{children:x&&(()=>{const e=r.find(n=>n.alias===x);if(!e)return null;const t=p[e.alias];return t?s.jsx(t,{config:e,isEditMode:o,onConfigChange:f,isDragOverlay:!0,isOver:e.alias===z,isDragging:e.alias===x},e.alias):null})()})]}),w.createPortal(s.jsx("div",{className:`fixed bottom-4 left-0 right-0 flex justify-center transition-all duration-300 ${o?"z-[50000] opacity-100":"pointer-events-none opacity-0"}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("./index.cjs106.js"),C=require("./index.cjs107.js"),O=require("react"),w=require("react-dom"),W=require("./index.cjs85.js"),F=require("./index.cjs97.js"),H=require("./index.cjs3.js"),j=require("./index.cjs22.js"),L=require("./index.cjs65.js"),V=require("./index.cjs42.js"),J=require("./index.cjs108.js"),K=require("./index.cjs109.js"),Q=require("./index.cjs110.js"),U=require("./index.cjs111.js");function X({configs:r,isEditMode:o,componentMap:p,onConfigChange:f,onOrderChange:g,onSave:d,onCancel:y,onReset:S,onAdd:D,isSidePanelShown:q,isSaving:u}){const[x,N]=O.useState(null),[z,k]=O.useState(null),A=l.useSensor(l.MouseSensor,{activationConstraint:{distance:5}}),_=l.useSensor(l.TouchSensor,{activationConstraint:{delay:100,tolerance:5}}),$=l.useSensors(A,_),B=e=>{N(e.active.id)},P=e=>{const{over:t}=e;k(t?t.id:null)},R=e=>{const{active:t,over:n}=e;if(N(null),k(null),!n||t.id===n.id)return;if(n.id.toString().startsWith("placeholder-")){const c=parseInt(n.id.toString().split("-")[1]),m=r.find(h=>h.alias===t.id);if(m&&m.size==="half"){const h=r.findIndex(T=>T.alias===t.id),I=[...r];I.splice(c+1,0,...I.splice(h,1)),g(I)}return}const a=r.findIndex(c=>c.alias===t.id),i=r.findIndex(c=>c.alias===n.id),b=C.arrayMove(r,a,i);g(b)},v=r.filter(e=>(e==null?void 0:e.isVisible)&&p[e.alias]),G=Array(v.length).fill(0).map((e,t)=>`placeholder-${t}`);return s.jsxs(s.Fragment,{children:[u&&w.createPortal(s.jsx("div",{className:W.cn("fixed inset-0 z-[60000] bg-black transition-all duration-200",u?"opacity-50":"pointer-events-none opacity-0")}),document.body),s.jsxs(l.DndContext,{sensors:$,collisionDetection:l.closestCenter,onDragStart:B,onDragEnd:R,onDragOver:P,children:[s.jsx(C.SortableContext,{items:[...r.map(e=>e.alias),...G],children:s.jsx("div",{className:"grid grid-cols-1 items-center justify-center gap-space-05 px-space-04 pt-space-04 sm:grid-cols-2 sm:items-stretch sm:justify-stretch sm:px-space-06 xl:px-space-05",children:(()=>{let e=0;const t=[],n=r.find(a=>a.alias===x);for(let a=0;a<v.length;a++){const i=v[a],b=p[i.alias];if(!b)continue;t.push(s.jsx(b,{config:i,isEditMode:o,onConfigChange:f,isOver:i.alias===z,isDragging:i.alias===x},i.alias));const c=i.size==="full"?2:1;if(e+=c,o&&i.size==="half"&&e%2===1){const m=v[a+1];if(!m||m.size==="full"){const h=`placeholder-${a}`;t.push(s.jsx(Y,{id:h,isEditMode:o,activeId:x,overId:z,draggedWidgetSize:n==null?void 0:n.size},h)),e+=1}}}return t})()})}),s.jsx(l.DragOverlay,{children:x&&(()=>{const e=r.find(n=>n.alias===x);if(!e)return null;const t=p[e.alias];return t?s.jsx(t,{config:e,isEditMode:o,onConfigChange:f,isDragOverlay:!0,isOver:e.alias===z,isDragging:e.alias===x},e.alias):null})()})]}),w.createPortal(s.jsx("div",{className:`fixed bottom-4 left-0 right-0 flex justify-center transition-all duration-300 ${o?"z-[50000] opacity-100":"pointer-events-none opacity-0"}
2
2
  ${q?"hidden xl:flex":""}
3
3
  `,children:s.jsxs("div",{className:`flex transform items-center gap-space-04 rounded-full border-t bg-background-brand p-space-02 shadow-card-shadow transition-all duration-300 ${o?"translate-y-[-10px]":"translate-y-full"}`,children:[s.jsxs(V.Stack,{gap:4,alignItems:"center",children:[s.jsx(j.Button,{variant:"outline",colors:"gray",size:"icon-sm",onClick:y,children:s.jsx(J.default,{})}),s.jsx(j.Button,{variant:"outline",colors:"gray",size:"icon-sm",onClick:S,children:s.jsx(K.default,{})}),s.jsx(L.Separator,{orientation:"vertical",className:"h-space-06"})]}),s.jsx(j.Button,{variant:"outline",colors:"primary",size:"icon-sm",className:"xl:hidden",onClick:D,children:s.jsx(Q.default,{})}),s.jsxs(j.Button,{variant:"default",onClick:d,size:"sm",colors:"primary",className:"gap-space-02",disabled:u,children:[s.jsx(U.default,{className:"size-space-05"}),F.strings.DragAndDrop.SaveCustomization,u&&s.jsx(H.default,{})]})]})}),document.body)]})}const Y=({id:r,isEditMode:o,activeId:p,overId:f,draggedWidgetSize:g})=>{const d=g==="half",{attributes:y,listeners:S,isOver:D,setNodeRef:q}=C.useSortable({id:r,disabled:!o||!d}),u=D||f===r;return s.jsx("div",{ref:q,...d?y:{},...d?S:{},className:W.cn("hidden sm:block","h-[440px] rounded-3 border-2 border-dashed transition-all duration-200",u?"border-primary":"border-border",!d&&p?"cursor-not-allowed":"cursor-default")})};exports.DraggableGrid=X;
package/index.cjs96.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs167.js"),e=require("./index.cjs153.js"),d=require("./index.cjs88.js"),r=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):document.body.classList.remove("dark")},o=a.create()(d.default(s=>({theme:e.THEME.SYSTEM,setTheme:t=>{switch(localStorage.setItem("defaultTheme",String(t)),+t){case e.THEME.LIGHT:document.body.classList.remove("dark");break;case e.THEME.DARK:document.body.classList.add("dark");break;case e.THEME.SYSTEM:r(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",r),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",r);break}return s({theme:t})}}),{name:"theme"}));exports.useThemeStore=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs166.js"),e=require("./index.cjs152.js"),d=require("./index.cjs88.js"),r=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):document.body.classList.remove("dark")},o=a.create()(d.default(s=>({theme:e.THEME.SYSTEM,setTheme:t=>{switch(localStorage.setItem("defaultTheme",String(t)),+t){case e.THEME.LIGHT:document.body.classList.remove("dark");break;case e.THEME.DARK:document.body.classList.add("dark");break;case e.THEME.SYSTEM:r(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",r),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",r);break}return s({theme:t})}}),{name:"theme"}));exports.useThemeStore=o;
package/index.es10.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as r, Fragment as I } from "react/jsx-runtime";
2
- import { useVirtualizer as L } from "./index.es113.js";
2
+ import { useVirtualizer as L } from "./index.es112.js";
3
3
  import x, { useCallback as j, useMemo as B } from "react";
4
- import { useToggle as E } from "./index.es104.js";
4
+ import { useToggle as E } from "./index.es103.js";
5
5
  import { strings as M } from "./index.es97.js";
6
6
  import P from "./index.es3.js";
7
7
  import { ShouldRender as k } from "./index.es14.js";
@@ -12,7 +12,7 @@ import { Command as $, CommandInput as A, CommandList as G, CommandEmpty as T, C
12
12
  import { Popover as H, PopoverTrigger as J, PopoverContent as K } from "./index.es59.js";
13
13
  import { selectVariants as Q } from "./index.es64.js";
14
14
  import { debounce as U, cn as W } from "./index.es85.js";
15
- import X from "./index.es101.js";
15
+ import X from "./index.es100.js";
16
16
  function pr({
17
17
  placeholder: i,
18
18
  options: e,
package/index.es100.js CHANGED
@@ -1,473 +1,13 @@
1
- var W = Symbol.for("immer-nothing"), R = Symbol.for("immer-draftable"), u = Symbol.for("immer-state"), Q = process.env.NODE_ENV !== "production" ? [
2
- // All error codes, starting by 0:
3
- function(e) {
4
- return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
5
- },
6
- function(e) {
7
- return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`;
8
- },
9
- "This object has been frozen and should not be mutated",
10
- function(e) {
11
- return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e;
12
- },
13
- "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
14
- "Immer forbids circular references",
15
- "The first or second argument to `produce` must be a function",
16
- "The third argument to `produce` must be a function or undefined",
17
- "First argument to `createDraft` must be a plain object, an array, or an immerable object",
18
- "First argument to `finishDraft` must be a draft returned by `createDraft`",
19
- function(e) {
20
- return `'current' expects a draft, got: ${e}`;
21
- },
22
- "Object.defineProperty() cannot be used on an Immer draft",
23
- "Object.setPrototypeOf() cannot be used on an Immer draft",
24
- "Immer only supports deleting array indices",
25
- "Immer only supports setting array indices and the 'length' property",
26
- function(e) {
27
- return `'original' expects a draft, got: ${e}`;
28
- }
29
- // Note: if more errors are added, the errorOffset in Patches.ts should be increased
30
- // See Patches.ts for additional errors
31
- ] : [];
32
- function f(e, ...t) {
33
- if (process.env.NODE_ENV !== "production") {
34
- const r = Q[e], n = typeof r == "function" ? r.apply(null, t) : r;
35
- throw new Error(`[Immer] ${n}`);
36
- }
37
- throw new Error(
38
- `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
39
- );
40
- }
41
- var m = Object.getPrototypeOf;
42
- function h(e) {
43
- return !!e && !!e[u];
44
- }
45
- function _(e) {
46
- var t;
47
- return e ? U(e) || Array.isArray(e) || !!e[R] || !!((t = e.constructor) != null && t[R]) || O(e) || D(e) : !1;
48
- }
49
- var Y = Object.prototype.constructor.toString();
50
- function U(e) {
51
- if (!e || typeof e != "object")
52
- return !1;
53
- const t = m(e);
54
- if (t === null)
55
- return !0;
56
- const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
57
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Y;
58
- }
59
- function b(e, t) {
60
- z(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
61
- t(r, e[r], e);
62
- }) : e.forEach((r, n) => t(n, r, e));
63
- }
64
- function z(e) {
65
- const t = e[u];
66
- return t ? t.type_ : Array.isArray(e) ? 1 : O(e) ? 2 : D(e) ? 3 : 0;
67
- }
68
- function A(e, t) {
69
- return z(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
70
- }
71
- function B(e, t, r) {
72
- const n = z(e);
73
- n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
74
- }
75
- function Z(e, t) {
76
- return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
77
- }
78
- function O(e) {
79
- return e instanceof Map;
80
- }
81
- function D(e) {
82
- return e instanceof Set;
83
- }
84
- function d(e) {
85
- return e.copy_ || e.base_;
86
- }
87
- function N(e, t) {
88
- if (O(e))
89
- return new Map(e);
90
- if (D(e))
91
- return new Set(e);
92
- if (Array.isArray(e))
93
- return Array.prototype.slice.call(e);
94
- const r = U(e);
95
- if (t === !0 || t === "class_only" && !r) {
96
- const n = Object.getOwnPropertyDescriptors(e);
97
- delete n[u];
98
- let i = Reflect.ownKeys(n);
99
- for (let o = 0; o < i.length; o++) {
100
- const s = i[o], c = n[s];
101
- c.writable === !1 && (c.writable = !0, c.configurable = !0), (c.get || c.set) && (n[s] = {
102
- configurable: !0,
103
- writable: !0,
104
- // could live with !!desc.set as well here...
105
- enumerable: c.enumerable,
106
- value: e[s]
107
- });
1
+ import e from "./index.es186.js";
2
+ const a = e("ExpandMore", [
3
+ [
4
+ "path",
5
+ {
6
+ d: "M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z",
7
+ key: "1h4imv"
108
8
  }
109
- return Object.create(m(e), n);
110
- } else {
111
- const n = m(e);
112
- if (n !== null && r)
113
- return { ...e };
114
- const i = Object.create(n);
115
- return Object.assign(i, e);
116
- }
117
- }
118
- function T(e, t = !1) {
119
- return S(e) || h(e) || !_(e) || (z(e) > 1 && (e.set = e.add = e.clear = e.delete = L), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => T(n, !0))), e;
120
- }
121
- function L() {
122
- f(2);
123
- }
124
- function S(e) {
125
- return Object.isFrozen(e);
126
- }
127
- var V = {};
128
- function y(e) {
129
- const t = V[e];
130
- return t || f(0, e), t;
131
- }
132
- var p;
133
- function G() {
134
- return p;
135
- }
136
- function ee(e, t) {
137
- return {
138
- drafts_: [],
139
- parent_: e,
140
- immer_: t,
141
- // Whenever the modified draft contains a draft from another scope, we
142
- // need to prevent auto-freezing so the unowned draft can be finalized.
143
- canAutoFreeze_: !0,
144
- unfinalizedDrafts_: 0
145
- };
146
- }
147
- function x(e, t) {
148
- t && (y("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
149
- }
150
- function v(e) {
151
- C(e), e.drafts_.forEach(te), e.drafts_ = null;
152
- }
153
- function C(e) {
154
- e === p && (p = e.parent_);
155
- }
156
- function j(e) {
157
- return p = ee(p, e);
158
- }
159
- function te(e) {
160
- const t = e[u];
161
- t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
162
- }
163
- function $(e, t) {
164
- t.unfinalizedDrafts_ = t.drafts_.length;
165
- const r = t.drafts_[0];
166
- return e !== void 0 && e !== r ? (r[u].modified_ && (v(t), f(4)), _(e) && (e = w(t, e), t.parent_ || g(t, e)), t.patches_ && y("Patches").generateReplacementPatches_(
167
- r[u].base_,
168
- e,
169
- t.patches_,
170
- t.inversePatches_
171
- )) : e = w(t, r, []), v(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== W ? e : void 0;
172
- }
173
- function w(e, t, r) {
174
- if (S(t))
175
- return t;
176
- const n = t[u];
177
- if (!n)
178
- return b(
179
- t,
180
- (i, o) => K(e, n, t, i, o, r)
181
- ), t;
182
- if (n.scope_ !== e)
183
- return t;
184
- if (!n.modified_)
185
- return g(e, n.base_, !0), n.base_;
186
- if (!n.finalized_) {
187
- n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
188
- const i = n.copy_;
189
- let o = i, s = !1;
190
- n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), b(
191
- o,
192
- (c, l) => K(e, n, i, c, l, r, s)
193
- ), g(e, i, !1), r && e.patches_ && y("Patches").generatePatches_(
194
- n,
195
- r,
196
- e.patches_,
197
- e.inversePatches_
198
- );
199
- }
200
- return n.copy_;
201
- }
202
- function K(e, t, r, n, i, o, s) {
203
- if (process.env.NODE_ENV !== "production" && i === r && f(5), h(i)) {
204
- const c = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
205
- !A(t.assigned_, n) ? o.concat(n) : void 0, l = w(e, i, c);
206
- if (B(r, n, l), h(l))
207
- e.canAutoFreeze_ = !1;
208
- else
209
- return;
210
- } else
211
- s && r.add(i);
212
- if (_(i) && !S(i)) {
213
- if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
214
- return;
215
- w(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && g(e, i);
216
- }
217
- }
218
- function g(e, t, r = !1) {
219
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && T(t, r);
220
- }
221
- function re(e, t) {
222
- const r = Array.isArray(e), n = {
223
- type_: r ? 1 : 0,
224
- // Track which produce call this is associated with.
225
- scope_: t ? t.scope_ : G(),
226
- // True for both shallow and deep changes.
227
- modified_: !1,
228
- // Used during finalization.
229
- finalized_: !1,
230
- // Track which properties have been assigned (true) or deleted (false).
231
- assigned_: {},
232
- // The parent draft state.
233
- parent_: t,
234
- // The base state.
235
- base_: e,
236
- // The base proxy.
237
- draft_: null,
238
- // set below
239
- // The base copy with any updated values.
240
- copy_: null,
241
- // Called by the `produce` function.
242
- revoke_: null,
243
- isManual_: !1
244
- };
245
- let i = n, o = M;
246
- r && (i = [n], o = P);
247
- const { revoke: s, proxy: c } = Proxy.revocable(i, o);
248
- return n.draft_ = c, n.revoke_ = s, c;
249
- }
250
- var M = {
251
- get(e, t) {
252
- if (t === u)
253
- return e;
254
- const r = d(e);
255
- if (!A(r, t))
256
- return ne(e, r, t);
257
- const n = r[t];
258
- return e.finalized_ || !_(n) ? n : n === F(e.base_, t) ? (E(e), e.copy_[t] = k(n, e)) : n;
259
- },
260
- has(e, t) {
261
- return t in d(e);
262
- },
263
- ownKeys(e) {
264
- return Reflect.ownKeys(d(e));
265
- },
266
- set(e, t, r) {
267
- const n = H(d(e), t);
268
- if (n != null && n.set)
269
- return n.set.call(e.draft_, r), !0;
270
- if (!e.modified_) {
271
- const i = F(d(e), t), o = i == null ? void 0 : i[u];
272
- if (o && o.base_ === r)
273
- return e.copy_[t] = r, e.assigned_[t] = !1, !0;
274
- if (Z(r, i) && (r !== void 0 || A(e.base_, t)))
275
- return !0;
276
- E(e), I(e);
277
- }
278
- return e.copy_[t] === r && // special case: handle new props with value 'undefined'
279
- (r !== void 0 || t in e.copy_) || // special case: NaN
280
- Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
281
- },
282
- deleteProperty(e, t) {
283
- return F(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, E(e), I(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
284
- },
285
- // Note: We never coerce `desc.value` into an Immer draft, because we can't make
286
- // the same guarantee in ES5 mode.
287
- getOwnPropertyDescriptor(e, t) {
288
- const r = d(e), n = Reflect.getOwnPropertyDescriptor(r, t);
289
- return n && {
290
- writable: !0,
291
- configurable: e.type_ !== 1 || t !== "length",
292
- enumerable: n.enumerable,
293
- value: r[t]
294
- };
295
- },
296
- defineProperty() {
297
- f(11);
298
- },
299
- getPrototypeOf(e) {
300
- return m(e.base_);
301
- },
302
- setPrototypeOf() {
303
- f(12);
304
- }
305
- }, P = {};
306
- b(M, (e, t) => {
307
- P[e] = function() {
308
- return arguments[0] = arguments[0][0], t.apply(this, arguments);
309
- };
310
- });
311
- P.deleteProperty = function(e, t) {
312
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && f(13), P.set.call(this, e, t, void 0);
313
- };
314
- P.set = function(e, t, r) {
315
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && f(14), M.set.call(this, e[0], t, r, e[0]);
316
- };
317
- function F(e, t) {
318
- const r = e[u];
319
- return (r ? d(r) : e)[t];
320
- }
321
- function ne(e, t, r) {
322
- var i;
323
- const n = H(t, r);
324
- return n ? "value" in n ? n.value : (
325
- // This is a very special case, if the prop is a getter defined by the
326
- // prototype, we should invoke it with the draft as context!
327
- (i = n.get) == null ? void 0 : i.call(e.draft_)
328
- ) : void 0;
329
- }
330
- function H(e, t) {
331
- if (!(t in e))
332
- return;
333
- let r = m(e);
334
- for (; r; ) {
335
- const n = Object.getOwnPropertyDescriptor(r, t);
336
- if (n)
337
- return n;
338
- r = m(r);
339
- }
340
- }
341
- function I(e) {
342
- e.modified_ || (e.modified_ = !0, e.parent_ && I(e.parent_));
343
- }
344
- function E(e) {
345
- e.copy_ || (e.copy_ = N(
346
- e.base_,
347
- e.scope_.immer_.useStrictShallowCopy_
348
- ));
349
- }
350
- var ie = class {
351
- constructor(e) {
352
- this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
353
- if (typeof t == "function" && typeof r != "function") {
354
- const o = r;
355
- r = t;
356
- const s = this;
357
- return function(l = o, ...q) {
358
- return s.produce(l, (J) => r.call(this, J, ...q));
359
- };
360
- }
361
- typeof r != "function" && f(6), n !== void 0 && typeof n != "function" && f(7);
362
- let i;
363
- if (_(t)) {
364
- const o = j(this), s = k(t, void 0);
365
- let c = !0;
366
- try {
367
- i = r(s), c = !1;
368
- } finally {
369
- c ? v(o) : C(o);
370
- }
371
- return x(o, n), $(i, o);
372
- } else if (!t || typeof t != "object") {
373
- if (i = r(t), i === void 0 && (i = t), i === W && (i = void 0), this.autoFreeze_ && T(i, !0), n) {
374
- const o = [], s = [];
375
- y("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
376
- }
377
- return i;
378
- } else
379
- f(1, t);
380
- }, this.produceWithPatches = (t, r) => {
381
- if (typeof t == "function")
382
- return (s, ...c) => this.produceWithPatches(s, (l) => t(l, ...c));
383
- let n, i;
384
- return [this.produce(t, r, (s, c) => {
385
- n = s, i = c;
386
- }), n, i];
387
- }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
388
- }
389
- createDraft(e) {
390
- _(e) || f(8), h(e) && (e = oe(e));
391
- const t = j(this), r = k(e, void 0);
392
- return r[u].isManual_ = !0, C(t), r;
393
- }
394
- finishDraft(e, t) {
395
- const r = e && e[u];
396
- (!r || !r.isManual_) && f(9);
397
- const { scope_: n } = r;
398
- return x(n, t), $(void 0, n);
399
- }
400
- /**
401
- * Pass true to automatically freeze all copies created by Immer.
402
- *
403
- * By default, auto-freezing is enabled.
404
- */
405
- setAutoFreeze(e) {
406
- this.autoFreeze_ = e;
407
- }
408
- /**
409
- * Pass true to enable strict shallow copy.
410
- *
411
- * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
412
- */
413
- setUseStrictShallowCopy(e) {
414
- this.useStrictShallowCopy_ = e;
415
- }
416
- applyPatches(e, t) {
417
- let r;
418
- for (r = t.length - 1; r >= 0; r--) {
419
- const i = t[r];
420
- if (i.path.length === 0 && i.op === "replace") {
421
- e = i.value;
422
- break;
423
- }
424
- }
425
- r > -1 && (t = t.slice(r + 1));
426
- const n = y("Patches").applyPatches_;
427
- return h(e) ? n(e, t) : this.produce(
428
- e,
429
- (i) => n(i, t)
430
- );
431
- }
432
- };
433
- function k(e, t) {
434
- const r = O(e) ? y("MapSet").proxyMap_(e, t) : D(e) ? y("MapSet").proxySet_(e, t) : re(e, t);
435
- return (t ? t.scope_ : G()).drafts_.push(r), r;
436
- }
437
- function oe(e) {
438
- return h(e) || f(10, e), X(e);
439
- }
440
- function X(e) {
441
- if (!_(e) || S(e))
442
- return e;
443
- const t = e[u];
444
- let r;
445
- if (t) {
446
- if (!t.modified_)
447
- return t.base_;
448
- t.finalized_ = !0, r = N(e, t.scope_.immer_.useStrictShallowCopy_);
449
- } else
450
- r = N(e, !0);
451
- return b(r, (n, i) => {
452
- B(r, n, X(i));
453
- }), t && (t.finalized_ = !1), r;
454
- }
455
- var a = new ie(), se = a.produce;
456
- a.produceWithPatches.bind(
457
- a
458
- );
459
- a.setAutoFreeze.bind(a);
460
- a.setUseStrictShallowCopy.bind(a);
461
- a.applyPatches.bind(a);
462
- a.createDraft.bind(a);
463
- a.finishDraft.bind(a);
9
+ ]
10
+ ]);
464
11
  export {
465
- ie as Immer,
466
- oe as current,
467
- T as freeze,
468
- R as immerable,
469
- h as isDraft,
470
- _ as isDraftable,
471
- W as nothing,
472
- se as produce
12
+ a as default
473
13
  };
package/index.es101.js CHANGED
@@ -1,13 +1,90 @@
1
- import e from "./index.es185.js";
2
- const a = e("ExpandMore", [
3
- [
4
- "path",
5
- {
6
- d: "M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z",
7
- key: "1h4imv"
1
+ import * as o from "react";
2
+ import { createTable as u } from "./index.es104.js";
3
+ import { ColumnFaceting as R, ColumnFiltering as S, ColumnGrouping as b, ColumnOrdering as w, ColumnPinning as y, ColumnSizing as F, ColumnVisibility as h, GlobalFaceting as x, GlobalFiltering as O, Headers as P, RowExpanding as v, RowPagination as E, RowPinning as G, RowSelection as $, RowSorting as A, _getVisibleLeafColumns as M, aggregationFns as V, buildHeaderGroups as j, createCell as k, createColumn as z, createRow as H, defaultColumnSizing as N, expandRows as T, filterFns as U, flattenBy as _, functionalUpdate as B, getCoreRowModel as L, getMemoOptions as q, getPaginationRowModel as D, isFunction as I, isNumberArray as J, isRowSelected as K, isSubRowSelected as Q, makeStateUpdater as W, memo as X, orderColumns as Y, passiveEventSupported as Z, reSplitAlphaNumeric as ee, selectRowsFn as te, shouldAutoRemoveFilter as ne, sortingFns as oe } from "./index.es104.js";
4
+ function m(e, t) {
5
+ return e ? s(e) ? /* @__PURE__ */ o.createElement(e, t) : e : null;
6
+ }
7
+ function s(e) {
8
+ return c(e) || typeof e == "function" || g(e);
9
+ }
10
+ function c(e) {
11
+ return typeof e == "function" && (() => {
12
+ const t = Object.getPrototypeOf(e);
13
+ return t.prototype && t.prototype.isReactComponent;
14
+ })();
15
+ }
16
+ function g(e) {
17
+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
18
+ }
19
+ function p(e) {
20
+ const t = {
21
+ state: {},
22
+ // Dummy state
23
+ onStateChange: () => {
24
+ },
25
+ // noop
26
+ renderFallbackValue: null,
27
+ ...e
28
+ }, [n] = o.useState(() => ({
29
+ current: u(t)
30
+ })), [i, a] = o.useState(() => n.current.initialState);
31
+ return n.current.setOptions((l) => ({
32
+ ...l,
33
+ ...e,
34
+ state: {
35
+ ...i,
36
+ ...e.state
37
+ },
38
+ // Similarly, we'll maintain both our internal state and any user-provided
39
+ // state.
40
+ onStateChange: (r) => {
41
+ a(r), e.onStateChange == null || e.onStateChange(r);
8
42
  }
9
- ]
10
- ]);
43
+ })), n.current;
44
+ }
11
45
  export {
12
- a as default
46
+ R as ColumnFaceting,
47
+ S as ColumnFiltering,
48
+ b as ColumnGrouping,
49
+ w as ColumnOrdering,
50
+ y as ColumnPinning,
51
+ F as ColumnSizing,
52
+ h as ColumnVisibility,
53
+ x as GlobalFaceting,
54
+ O as GlobalFiltering,
55
+ P as Headers,
56
+ v as RowExpanding,
57
+ E as RowPagination,
58
+ G as RowPinning,
59
+ $ as RowSelection,
60
+ A as RowSorting,
61
+ M as _getVisibleLeafColumns,
62
+ V as aggregationFns,
63
+ j as buildHeaderGroups,
64
+ k as createCell,
65
+ z as createColumn,
66
+ H as createRow,
67
+ u as createTable,
68
+ N as defaultColumnSizing,
69
+ T as expandRows,
70
+ U as filterFns,
71
+ _ as flattenBy,
72
+ m as flexRender,
73
+ B as functionalUpdate,
74
+ L as getCoreRowModel,
75
+ q as getMemoOptions,
76
+ D as getPaginationRowModel,
77
+ I as isFunction,
78
+ J as isNumberArray,
79
+ K as isRowSelected,
80
+ Q as isSubRowSelected,
81
+ W as makeStateUpdater,
82
+ X as memo,
83
+ Y as orderColumns,
84
+ Z as passiveEventSupported,
85
+ ee as reSplitAlphaNumeric,
86
+ te as selectRowsFn,
87
+ ne as shouldAutoRemoveFilter,
88
+ oe as sortingFns,
89
+ p as useReactTable
13
90
  };