mada-design-system 0.3.1 → 0.4.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 (806) hide show
  1. package/dist +10 -0
  2. package/index.cjs.js +1 -1
  3. package/index.cjs10.js +1 -1
  4. package/index.cjs100.js +1 -1
  5. package/index.cjs101.js +1 -1
  6. package/index.cjs102.js +1 -1
  7. package/index.cjs103.js +1 -4
  8. package/index.cjs104.js +1 -1
  9. package/index.cjs105.js +5 -1
  10. package/index.cjs106.js +1 -1
  11. package/index.cjs107.js +1 -1
  12. package/index.cjs108.js +1 -1
  13. package/index.cjs109.js +1 -1
  14. package/index.cjs11.js +1 -1
  15. package/index.cjs110.js +1 -1
  16. package/index.cjs111.js +1 -1
  17. package/index.cjs112.js +1 -5
  18. package/index.cjs113.js +1 -1
  19. package/index.cjs114.js +1 -1
  20. package/index.cjs115.js +1 -1
  21. package/index.cjs116.js +1 -1
  22. package/index.cjs117.js +1 -1
  23. package/index.cjs118.js +4 -1
  24. package/index.cjs119.js +1 -1
  25. package/index.cjs12.js +1 -1
  26. package/index.cjs120.js +2 -1
  27. package/index.cjs121.js +1 -1
  28. package/index.cjs122.js +2 -1
  29. package/index.cjs123.js +1 -1
  30. package/index.cjs124.js +1 -1
  31. package/index.cjs125.js +1 -1
  32. package/index.cjs126.js +1 -2
  33. package/index.cjs127.js +1 -1
  34. package/index.cjs128.js +1 -2
  35. package/index.cjs129.js +20 -1
  36. package/index.cjs13.js +1 -1
  37. package/index.cjs130.js +1 -1
  38. package/index.cjs131.js +1 -1
  39. package/index.cjs132.js +1 -1
  40. package/index.cjs133.js +1 -1
  41. package/index.cjs134.js +1 -1
  42. package/index.cjs135.js +1 -20
  43. package/index.cjs136.js +1 -1
  44. package/index.cjs137.js +1 -1
  45. package/index.cjs138.js +1 -1
  46. package/index.cjs139.js +1 -1
  47. package/index.cjs140.js +1 -1
  48. package/index.cjs141.js +1 -1
  49. package/index.cjs142.js +1 -1
  50. package/index.cjs143.js +1 -1
  51. package/index.cjs144.js +1 -1
  52. package/index.cjs145.js +1 -1
  53. package/index.cjs146.js +1 -1
  54. package/index.cjs147.js +1 -1
  55. package/index.cjs148.js +1 -1
  56. package/index.cjs149.js +1 -1
  57. package/index.cjs15.js +1 -1
  58. package/index.cjs150.js +1 -1
  59. package/index.cjs151.js +1 -1
  60. package/index.cjs152.js +1 -1
  61. package/index.cjs153.js +1 -1
  62. package/index.cjs154.js +1 -1
  63. package/index.cjs155.js +1 -1
  64. package/index.cjs156.js +1 -1
  65. package/index.cjs157.js +1 -1
  66. package/index.cjs158.js +1 -1
  67. package/index.cjs159.js +1 -1
  68. package/index.cjs16.js +1 -1
  69. package/index.cjs160.js +1 -1
  70. package/index.cjs161.js +1 -1
  71. package/index.cjs162.js +1 -1
  72. package/index.cjs163.js +1 -1
  73. package/index.cjs164.js +1 -1
  74. package/index.cjs165.js +1 -1
  75. package/index.cjs166.js +1 -1
  76. package/index.cjs168.js +1 -1
  77. package/index.cjs169.js +1 -1
  78. package/index.cjs17.js +1 -1
  79. package/index.cjs170.js +1 -1
  80. package/index.cjs171.js +1 -1
  81. package/index.cjs172.js +1 -1
  82. package/index.cjs173.js +1 -1
  83. package/index.cjs174.js +1 -1
  84. package/index.cjs175.js +1 -1
  85. package/index.cjs176.js +1 -1
  86. package/index.cjs177.js +1 -4
  87. package/index.cjs178.js +1 -1
  88. package/index.cjs179.js +1 -1
  89. package/index.cjs18.js +1 -1
  90. package/index.cjs180.js +1 -1
  91. package/index.cjs181.js +1 -1
  92. package/index.cjs182.js +1 -1
  93. package/index.cjs183.js +1 -1
  94. package/index.cjs184.js +1 -1
  95. package/index.cjs185.js +1 -1
  96. package/index.cjs186.js +1 -1
  97. package/index.cjs187.js +1 -1
  98. package/index.cjs188.js +1 -1
  99. package/index.cjs189.js +1 -1
  100. package/index.cjs19.js +1 -1
  101. package/index.cjs190.js +1 -1
  102. package/index.cjs191.js +1 -1
  103. package/index.cjs193.js +4 -1
  104. package/index.cjs194.js +1 -1
  105. package/index.cjs195.js +1 -1
  106. package/index.cjs196.js +1 -1
  107. package/index.cjs197.js +1 -1
  108. package/index.cjs198.js +3 -1
  109. package/index.cjs199.js +1 -1
  110. package/index.cjs20.js +1 -1
  111. package/index.cjs200.js +1 -1
  112. package/index.cjs201.js +1 -1
  113. package/index.cjs202.js +1 -1
  114. package/index.cjs203.js +1 -1
  115. package/index.cjs204.js +1 -1
  116. package/index.cjs205.js +1 -1
  117. package/index.cjs206.js +1 -1
  118. package/index.cjs207.js +1 -1
  119. package/index.cjs208.js +1 -1
  120. package/index.cjs209.js +1 -1
  121. package/index.cjs21.js +1 -1
  122. package/index.cjs210.js +1 -1
  123. package/index.cjs211.js +1 -1
  124. package/index.cjs212.js +1 -1
  125. package/index.cjs213.js +1 -1
  126. package/index.cjs214.js +1 -3
  127. package/index.cjs215.js +1 -1
  128. package/index.cjs216.js +1 -1
  129. package/index.cjs217.js +1 -1
  130. package/index.cjs218.js +1 -1
  131. package/index.cjs219.js +1 -1
  132. package/index.cjs22.js +1 -1
  133. package/index.cjs220.js +1 -1
  134. package/index.cjs221.js +1 -1
  135. package/index.cjs222.js +1 -1
  136. package/index.cjs223.js +1 -1
  137. package/index.cjs224.js +1 -1
  138. package/index.cjs225.js +1 -1
  139. package/index.cjs226.js +1 -1
  140. package/index.cjs227.js +1 -1
  141. package/index.cjs228.js +1 -1
  142. package/index.cjs229.js +1 -1
  143. package/index.cjs23.js +1 -1
  144. package/index.cjs230.js +1 -1
  145. package/index.cjs231.js +1 -1
  146. package/index.cjs232.js +1 -1
  147. package/index.cjs233.js +1 -1
  148. package/index.cjs234.js +1 -1
  149. package/index.cjs235.js +1 -1
  150. package/index.cjs236.js +1 -1
  151. package/index.cjs237.js +1 -1
  152. package/index.cjs238.js +2 -1
  153. package/index.cjs239.js +1 -1
  154. package/index.cjs24.js +1 -1
  155. package/index.cjs240.js +1 -1
  156. package/index.cjs241.js +1 -1
  157. package/index.cjs242.js +1 -1
  158. package/index.cjs243.js +1 -2
  159. package/index.cjs244.js +1 -1
  160. package/index.cjs245.js +1 -1
  161. package/index.cjs246.js +1 -1
  162. package/index.cjs247.js +1 -1
  163. package/index.cjs248.js +1 -1
  164. package/index.cjs249.js +1 -1
  165. package/index.cjs25.js +1 -1
  166. package/index.cjs250.js +1 -1
  167. package/index.cjs251.js +1 -1
  168. package/index.cjs252.js +1 -1
  169. package/index.cjs253.js +1 -1
  170. package/index.cjs254.js +2 -1
  171. package/index.cjs255.js +1 -1
  172. package/index.cjs256.js +1 -1
  173. package/index.cjs257.js +1 -1
  174. package/index.cjs258.js +1 -1
  175. package/index.cjs259.js +1 -2
  176. package/index.cjs26.js +1 -1
  177. package/index.cjs260.js +1 -1
  178. package/index.cjs261.js +1 -1
  179. package/index.cjs262.js +1 -1
  180. package/index.cjs263.js +1 -1
  181. package/index.cjs264.js +1 -15
  182. package/index.cjs265.js +15 -1
  183. package/index.cjs266.js +1 -1
  184. package/index.cjs267.js +1 -1
  185. package/index.cjs268.js +1 -1
  186. package/index.cjs269.js +1 -1
  187. package/index.cjs27.js +1 -1
  188. package/index.cjs270.js +1 -1
  189. package/index.cjs271.js +1 -1
  190. package/index.cjs272.js +1 -1
  191. package/index.cjs273.js +1 -1
  192. package/index.cjs274.js +1 -1
  193. package/index.cjs275.js +1 -1
  194. package/index.cjs276.js +1 -1
  195. package/index.cjs277.js +1 -1
  196. package/index.cjs278.js +1 -1
  197. package/index.cjs279.js +1 -1
  198. package/index.cjs28.js +1 -1
  199. package/index.cjs280.js +1 -1
  200. package/index.cjs281.js +1 -1
  201. package/index.cjs282.js +1 -1
  202. package/index.cjs283.js +1 -1
  203. package/index.cjs284.js +1 -1
  204. package/index.cjs285.js +1 -1
  205. package/index.cjs286.js +1 -1
  206. package/index.cjs287.js +1 -1
  207. package/index.cjs288.js +1 -1
  208. package/index.cjs289.js +1 -1
  209. package/index.cjs29.js +1 -1
  210. package/index.cjs290.js +1 -3
  211. package/index.cjs291.js +1 -1
  212. package/index.cjs292.js +1 -1
  213. package/index.cjs293.js +1 -1
  214. package/index.cjs294.js +3 -1
  215. package/index.cjs295.js +1 -1
  216. package/index.cjs296.js +1 -1
  217. package/index.cjs297.js +1 -1
  218. package/index.cjs298.js +1 -1
  219. package/index.cjs299.js +1 -1
  220. package/index.cjs3.js +1 -1
  221. package/index.cjs30.js +1 -1
  222. package/index.cjs300.js +1 -1
  223. package/index.cjs301.js +1 -1
  224. package/index.cjs302.js +1 -1
  225. package/index.cjs303.js +1 -1
  226. package/index.cjs304.js +1 -1
  227. package/index.cjs305.js +1 -1
  228. package/index.cjs306.js +1 -1
  229. package/index.cjs307.js +1 -1
  230. package/index.cjs308.js +1 -1
  231. package/index.cjs309.js +1 -1
  232. package/index.cjs31.js +1 -1
  233. package/index.cjs310.js +1 -1
  234. package/index.cjs311.js +1 -1
  235. package/index.cjs312.js +1 -1
  236. package/index.cjs313.js +1 -1
  237. package/index.cjs314.js +1 -1
  238. package/index.cjs315.js +1 -1
  239. package/index.cjs316.js +1 -1
  240. package/index.cjs317.js +1 -1
  241. package/index.cjs318.js +1 -1
  242. package/index.cjs319.js +1 -1
  243. package/index.cjs32.js +1 -1
  244. package/index.cjs320.js +1 -1
  245. package/index.cjs321.js +1 -1
  246. package/index.cjs322.js +1 -1
  247. package/index.cjs323.js +1 -1
  248. package/index.cjs324.js +1 -1
  249. package/index.cjs325.js +1 -1
  250. package/index.cjs326.js +1 -1
  251. package/index.cjs327.js +1 -1
  252. package/index.cjs328.js +1 -1
  253. package/index.cjs329.js +1 -1
  254. package/index.cjs33.js +1 -1
  255. package/index.cjs330.js +1 -1
  256. package/index.cjs331.js +1 -1
  257. package/index.cjs332.js +1 -1
  258. package/index.cjs333.js +1 -1
  259. package/index.cjs334.js +1 -1
  260. package/index.cjs335.js +1 -1
  261. package/index.cjs336.js +1 -1
  262. package/index.cjs337.js +1 -1
  263. package/index.cjs338.js +1 -1
  264. package/index.cjs339.js +1 -1
  265. package/index.cjs34.js +1 -1
  266. package/index.cjs340.js +1 -1
  267. package/index.cjs341.js +1 -1
  268. package/index.cjs342.js +1 -1
  269. package/index.cjs343.js +1 -1
  270. package/index.cjs344.js +1 -1
  271. package/index.cjs345.js +1 -1
  272. package/index.cjs346.js +1 -1
  273. package/index.cjs347.js +1 -1
  274. package/index.cjs348.js +1 -1
  275. package/index.cjs349.js +1 -1
  276. package/index.cjs350.js +1 -1
  277. package/index.cjs351.js +1 -1
  278. package/index.cjs352.js +1 -1
  279. package/index.cjs353.js +1 -1
  280. package/index.cjs354.js +1 -1
  281. package/index.cjs355.js +1 -1
  282. package/index.cjs356.js +1 -1
  283. package/index.cjs357.js +1 -1
  284. package/index.cjs358.js +1 -1
  285. package/index.cjs359.js +1 -1
  286. package/index.cjs36.js +2 -2
  287. package/index.cjs360.js +1 -1
  288. package/index.cjs361.js +1 -1
  289. package/index.cjs362.js +1 -1
  290. package/index.cjs363.js +1 -1
  291. package/index.cjs364.js +1 -2
  292. package/index.cjs365.js +1 -1
  293. package/index.cjs366.js +1 -1
  294. package/index.cjs367.js +1 -1
  295. package/index.cjs368.js +1 -1
  296. package/index.cjs369.js +1 -1
  297. package/index.cjs37.js +1 -1
  298. package/index.cjs370.js +1 -1
  299. package/index.cjs371.js +1 -1
  300. package/index.cjs372.js +1 -1
  301. package/index.cjs373.js +2 -1
  302. package/index.cjs374.js +1 -1
  303. package/index.cjs375.js +1 -1
  304. package/index.cjs376.js +1 -1
  305. package/index.cjs377.js +1 -1
  306. package/index.cjs378.js +1 -74
  307. package/index.cjs379.js +1 -1
  308. package/index.cjs38.js +1 -1
  309. package/index.cjs380.js +1 -1
  310. package/index.cjs381.js +1 -1
  311. package/index.cjs382.js +1 -1
  312. package/index.cjs383.js +74 -1
  313. package/index.cjs384.js +1 -1
  314. package/index.cjs385.js +1 -1
  315. package/index.cjs386.js +1 -1
  316. package/index.cjs387.js +1 -1
  317. package/index.cjs388.js +1 -1
  318. package/index.cjs389.js +1 -1
  319. package/index.cjs39.js +1 -1
  320. package/index.cjs390.js +1 -1
  321. package/index.cjs391.js +1 -1
  322. package/index.cjs392.js +1 -1
  323. package/index.cjs393.js +1 -1
  324. package/index.cjs394.js +1 -1
  325. package/index.cjs395.js +1 -1
  326. package/index.cjs396.js +1 -1
  327. package/index.cjs397.js +1 -1
  328. package/index.cjs398.js +1 -1
  329. package/index.cjs399.js +1 -1
  330. package/index.cjs4.js +1 -1
  331. package/index.cjs40.js +1 -1
  332. package/index.cjs400.js +1 -1
  333. package/index.cjs401.js +1 -1
  334. package/index.cjs402.js +1 -0
  335. package/index.cjs403.js +1 -0
  336. package/index.cjs404.js +1 -0
  337. package/index.cjs405.js +1 -0
  338. package/index.cjs406.js +1 -0
  339. package/index.cjs407.js +1 -0
  340. package/index.cjs41.js +1 -1
  341. package/index.cjs42.js +1 -1
  342. package/index.cjs43.js +1 -1
  343. package/index.cjs44.js +1 -1
  344. package/index.cjs45.js +1 -1
  345. package/index.cjs46.js +1 -1
  346. package/index.cjs47.js +1 -1
  347. package/index.cjs48.js +1 -1
  348. package/index.cjs49.js +1 -1
  349. package/index.cjs50.js +1 -1
  350. package/index.cjs51.js +1 -1
  351. package/index.cjs52.js +1 -1
  352. package/index.cjs53.js +1 -1
  353. package/index.cjs54.js +1 -1
  354. package/index.cjs55.js +1 -3
  355. package/index.cjs56.js +1 -1
  356. package/index.cjs57.js +3 -1
  357. package/index.cjs58.js +1 -7
  358. package/index.cjs59.js +1 -1
  359. package/index.cjs60.js +7 -1
  360. package/index.cjs61.js +1 -6
  361. package/index.cjs62.js +1 -1
  362. package/index.cjs63.js +6 -1
  363. package/index.cjs64.js +1 -1
  364. package/index.cjs65.js +1 -1
  365. package/index.cjs66.js +1 -1
  366. package/index.cjs67.js +1 -11
  367. package/index.cjs68.js +1 -1
  368. package/index.cjs69.js +11 -1
  369. package/index.cjs7.js +1 -1
  370. package/index.cjs70.js +1 -5
  371. package/index.cjs71.js +1 -11
  372. package/index.cjs72.js +5 -1
  373. package/index.cjs73.js +11 -33
  374. package/index.cjs74.js +1 -1
  375. package/index.cjs75.js +33 -1
  376. package/index.cjs76.js +1 -1
  377. package/index.cjs77.js +1 -1
  378. package/index.cjs78.js +1 -1
  379. package/index.cjs79.js +1 -1
  380. package/index.cjs8.js +1 -1
  381. package/index.cjs80.js +1 -1
  382. package/index.cjs81.js +1 -1
  383. package/index.cjs82.js +1 -1
  384. package/index.cjs83.js +1 -1
  385. package/index.cjs84.js +1 -1
  386. package/index.cjs85.js +1 -1
  387. package/index.cjs86.js +1 -1
  388. package/index.cjs87.js +1 -1
  389. package/index.cjs88.js +1 -1
  390. package/index.cjs89.js +1 -1
  391. package/index.cjs9.js +1 -1
  392. package/index.cjs90.js +1 -1
  393. package/index.cjs91.js +1 -1
  394. package/index.cjs92.js +1 -1
  395. package/index.cjs93.js +1 -1
  396. package/index.cjs94.js +1 -1
  397. package/index.cjs95.js +1 -1
  398. package/index.cjs96.js +1 -1
  399. package/index.cjs97.js +1 -1
  400. package/index.cjs98.js +1 -1
  401. package/index.cjs99.js +1 -1
  402. package/index.es.d.ts +90 -12
  403. package/index.es.js +217 -212
  404. package/index.es10.js +56 -55
  405. package/index.es100.js +88 -3
  406. package/index.es101.js +20 -2337
  407. package/index.es102.js +22 -19
  408. package/index.es103.js +1646 -2506
  409. package/index.es104.js +35 -2152
  410. package/index.es105.js +2595 -10
  411. package/index.es106.js +311 -460
  412. package/index.es107.js +5 -5
  413. package/index.es108.js +10 -87
  414. package/index.es109.js +11 -24
  415. package/index.es11.js +2 -2
  416. package/index.es110.js +8 -1713
  417. package/index.es111.js +33 -35
  418. package/index.es112.js +38 -2596
  419. package/index.es113.js +10 -321
  420. package/index.es114.js +5 -5
  421. package/index.es115.js +4 -4
  422. package/index.es116.js +5 -5
  423. package/index.es117.js +10 -7
  424. package/index.es118.js +2567 -31
  425. package/index.es119.js +142 -39
  426. package/index.es12.js +7 -7
  427. package/index.es120.js +117 -11
  428. package/index.es121.js +137 -11
  429. package/index.es122.js +223 -11
  430. package/index.es123.js +516 -11
  431. package/index.es124.js +4 -4
  432. package/index.es125.js +12 -142
  433. package/index.es126.js +11 -117
  434. package/index.es127.js +11 -137
  435. package/index.es128.js +11 -223
  436. package/index.es129.js +202 -513
  437. package/index.es13.js +4 -4
  438. package/index.es130.js +4 -4
  439. package/index.es131.js +4 -10
  440. package/index.es132.js +5 -5
  441. package/index.es133.js +5 -5
  442. package/index.es134.js +5 -5
  443. package/index.es135.js +11 -205
  444. package/index.es136.js +5 -5
  445. package/index.es137.js +10 -4
  446. package/index.es138.js +5 -5
  447. package/index.es139.js +2 -11
  448. package/index.es140.js +2 -11
  449. package/index.es141.js +2 -11
  450. package/index.es142.js +2 -11
  451. package/index.es143.js +2 -11
  452. package/index.es144.js +2 -11
  453. package/index.es145.js +11 -2
  454. package/index.es146.js +11 -2
  455. package/index.es147.js +11 -2
  456. package/index.es148.js +11 -2
  457. package/index.es149.js +3 -2
  458. package/index.es15.js +7 -7
  459. package/index.es150.js +11 -2
  460. package/index.es151.js +5 -5
  461. package/index.es152.js +5 -5
  462. package/index.es153.js +5 -5
  463. package/index.es154.js +5 -5
  464. package/index.es155.js +2 -11
  465. package/index.es156.js +2 -11
  466. package/index.es157.js +5 -5
  467. package/index.es158.js +5 -5
  468. package/index.es159.js +5 -5
  469. package/index.es16.js +1 -1
  470. package/index.es160.js +5 -5
  471. package/index.es161.js +5 -5
  472. package/index.es162.js +22 -11
  473. package/index.es163.js +11 -22
  474. package/index.es164.js +22 -11
  475. package/index.es165.js +1 -1
  476. package/index.es166.js +1 -1
  477. package/index.es168.js +1 -1
  478. package/index.es169.js +1 -1
  479. package/index.es17.js +2 -2
  480. package/index.es170.js +1 -1
  481. package/index.es171.js +1 -1
  482. package/index.es172.js +470 -13
  483. package/index.es173.js +139 -8
  484. package/index.es174.js +6 -50
  485. package/index.es175.js +2338 -6
  486. package/index.es176.js +2152 -2
  487. package/index.es177.js +10 -2260
  488. package/index.es178.js +1 -1
  489. package/index.es179.js +1 -1
  490. package/index.es18.js +1 -1
  491. package/index.es180.js +233 -2
  492. package/index.es181.js +53 -57
  493. package/index.es182.js +31 -57
  494. package/index.es183.js +12 -13
  495. package/index.es184.js +5 -24
  496. package/index.es185.js +38 -10
  497. package/index.es186.js +17 -38
  498. package/index.es187.js +34 -1999
  499. package/index.es188.js +1222 -5
  500. package/index.es189.js +14 -72
  501. package/index.es19.js +1 -1
  502. package/index.es190.js +8 -25
  503. package/index.es191.js +49 -3
  504. package/index.es193.js +2258 -230
  505. package/index.es194.js +10 -53
  506. package/index.es195.js +11 -37
  507. package/index.es196.js +13 -31
  508. package/index.es197.js +105 -11
  509. package/index.es198.js +25 -2
  510. package/index.es199.js +50 -7
  511. package/index.es20.js +2 -2
  512. package/index.es200.js +371 -2
  513. package/index.es201.js +59 -95
  514. package/index.es202.js +47 -25
  515. package/index.es203.js +6 -39
  516. package/index.es204.js +5 -18
  517. package/index.es205.js +45 -33
  518. package/index.es206.js +21 -1223
  519. package/index.es207.js +6 -2
  520. package/index.es208.js +10 -45
  521. package/index.es209.js +11 -52
  522. package/index.es21.js +4 -4
  523. package/index.es210.js +16 -10
  524. package/index.es211.js +230 -13
  525. package/index.es212.js +25 -13
  526. package/index.es213.js +12 -106
  527. package/index.es214.js +278 -24
  528. package/index.es215.js +257 -46
  529. package/index.es216.js +15 -369
  530. package/index.es217.js +12 -59
  531. package/index.es218.js +20 -47
  532. package/index.es219.js +8 -6
  533. package/index.es22.js +3 -3
  534. package/index.es220.js +5 -5
  535. package/index.es221.js +5 -47
  536. package/index.es222.js +5 -22
  537. package/index.es223.js +2 -6
  538. package/index.es224.js +58 -10
  539. package/index.es225.js +57 -11
  540. package/index.es226.js +3 -16
  541. package/index.es227.js +2 -230
  542. package/index.es228.js +12 -24
  543. package/index.es229.js +24 -11
  544. package/index.es23.js +6 -6
  545. package/index.es230.js +10 -278
  546. package/index.es231.js +38 -261
  547. package/index.es232.js +1998 -15
  548. package/index.es233.js +6 -14
  549. package/index.es234.js +71 -20
  550. package/index.es235.js +24 -7
  551. package/index.es236.js +2 -5
  552. package/index.es237.js +8 -5
  553. package/index.es238.js +327 -5
  554. package/index.es239.js +51 -2
  555. package/index.es24.js +1 -1
  556. package/index.es240.js +30 -2
  557. package/index.es241.js +34 -2
  558. package/index.es242.js +53 -8
  559. package/index.es243.js +116 -324
  560. package/index.es244.js +8 -50
  561. package/index.es245.js +162 -29
  562. package/index.es246.js +310 -34
  563. package/index.es247.js +127 -53
  564. package/index.es248.js +166 -105
  565. package/index.es249.js +25 -8
  566. package/index.es25.js +2 -2
  567. package/index.es250.js +61 -162
  568. package/index.es251.js +5 -310
  569. package/index.es252.js +36 -127
  570. package/index.es253.js +26 -180
  571. package/index.es254.js +183 -23
  572. package/index.es255.js +138 -62
  573. package/index.es256.js +2 -5
  574. package/index.es257.js +8 -36
  575. package/index.es258.js +2 -26
  576. package/index.es259.js +92 -180
  577. package/index.es26.js +1 -1
  578. package/index.es260.js +25 -137
  579. package/index.es261.js +39 -2
  580. package/index.es262.js +2 -60
  581. package/index.es263.js +57 -14
  582. package/index.es264.js +16 -243
  583. package/index.es265.js +241 -71
  584. package/index.es266.js +73 -4
  585. package/index.es267.js +4 -57
  586. package/index.es268.js +58 -11
  587. package/index.es269.js +11 -7
  588. package/index.es27.js +53 -49
  589. package/index.es270.js +6 -35
  590. package/index.es271.js +35 -26
  591. package/index.es272.js +27 -291
  592. package/index.es273.js +290 -90
  593. package/index.es274.js +91 -3
  594. package/index.es275.js +3 -8
  595. package/index.es276.js +7 -15
  596. package/index.es277.js +14 -145
  597. package/index.es278.js +147 -2
  598. package/index.es279.js +2 -69
  599. package/index.es28.js +1 -1
  600. package/index.es280.js +66 -82
  601. package/index.es281.js +82 -45
  602. package/index.es282.js +47 -8
  603. package/index.es283.js +8 -4
  604. package/index.es284.js +4 -51
  605. package/index.es285.js +51 -37
  606. package/index.es286.js +38 -3
  607. package/index.es287.js +3 -11
  608. package/index.es288.js +11 -8
  609. package/index.es289.js +107 -338
  610. package/index.es29.js +19 -19
  611. package/index.es290.js +6 -94
  612. package/index.es291.js +7 -9
  613. package/index.es292.js +8 -3
  614. package/index.es293.js +337 -192
  615. package/index.es294.js +94 -119
  616. package/index.es295.js +9 -6
  617. package/index.es296.js +3 -8
  618. package/index.es297.js +205 -115
  619. package/index.es298.js +116 -7
  620. package/index.es299.js +6 -7
  621. package/index.es3.js +1 -1
  622. package/index.es30.js +5 -5
  623. package/index.es300.js +7 -15
  624. package/index.es301.js +15 -12
  625. package/index.es302.js +2 -143
  626. package/index.es303.js +44 -42
  627. package/index.es304.js +52 -3
  628. package/index.es305.js +4 -39
  629. package/index.es306.js +23 -7
  630. package/index.es307.js +19 -74
  631. package/index.es308.js +29 -52
  632. package/index.es309.js +6 -8
  633. package/index.es31.js +4 -4
  634. package/index.es310.js +3 -76
  635. package/index.es311.js +6 -23
  636. package/index.es312.js +3 -61
  637. package/index.es313.js +18 -4
  638. package/index.es314.js +66 -6
  639. package/index.es315.js +15 -31
  640. package/index.es316.js +14 -58
  641. package/index.es317.js +3 -12
  642. package/index.es318.js +5 -4
  643. package/index.es319.js +17 -10
  644. package/index.es32.js +2 -2
  645. package/index.es320.js +17 -55
  646. package/index.es321.js +16 -3
  647. package/index.es322.js +17 -5
  648. package/index.es323.js +17 -17
  649. package/index.es324.js +16 -16
  650. package/index.es325.js +17 -17
  651. package/index.es326.js +13 -17
  652. package/index.es327.js +143 -17
  653. package/index.es328.js +43 -17
  654. package/index.es329.js +3 -17
  655. package/index.es33.js +8 -8
  656. package/index.es330.js +41 -2
  657. package/index.es331.js +8 -2
  658. package/index.es332.js +75 -5
  659. package/index.es333.js +53 -22
  660. package/index.es334.js +7 -20
  661. package/index.es335.js +76 -6
  662. package/index.es336.js +24 -3
  663. package/index.es337.js +61 -3
  664. package/index.es338.js +4 -18
  665. package/index.es339.js +52 -60
  666. package/index.es34.js +1 -1
  667. package/index.es340.js +12 -15
  668. package/index.es341.js +4 -15
  669. package/index.es342.js +9 -15
  670. package/index.es343.js +54 -335
  671. package/index.es344.js +2 -5
  672. package/index.es345.js +2 -5
  673. package/index.es346.js +15 -6
  674. package/index.es347.js +336 -19
  675. package/index.es348.js +5 -4
  676. package/index.es349.js +4 -5
  677. package/index.es350.js +7 -3
  678. package/index.es351.js +19 -72
  679. package/index.es352.js +3 -3
  680. package/index.es353.js +5 -6
  681. package/index.es354.js +3 -30
  682. package/index.es355.js +71 -9
  683. package/index.es356.js +4 -8
  684. package/index.es357.js +6 -6
  685. package/index.es358.js +29 -8
  686. package/index.es359.js +9 -10
  687. package/index.es36.js +3 -3
  688. package/index.es360.js +7 -3
  689. package/index.es361.js +6 -3
  690. package/index.es362.js +2 -46
  691. package/index.es363.js +2 -25
  692. package/index.es364.js +9 -76
  693. package/index.es365.js +3 -258
  694. package/index.es366.js +8 -31
  695. package/index.es367.js +4 -6
  696. package/index.es368.js +43 -129
  697. package/index.es369.js +27 -17
  698. package/index.es37.js +2 -2
  699. package/index.es370.js +2 -7
  700. package/index.es371.js +67 -2
  701. package/index.es372.js +62 -63
  702. package/index.es373.js +77 -65
  703. package/index.es374.js +259 -2
  704. package/index.es375.js +31 -5
  705. package/index.es376.js +6 -4
  706. package/index.es377.js +132 -2
  707. package/index.es378.js +17 -253
  708. package/index.es379.js +6 -7
  709. package/index.es38.js +2 -2
  710. package/index.es380.js +6 -3
  711. package/index.es381.js +2 -2
  712. package/index.es382.js +4 -174
  713. package/index.es383.js +251 -2
  714. package/index.es384.js +8 -2
  715. package/index.es385.js +3 -8
  716. package/index.es386.js +2 -7
  717. package/index.es387.js +2 -20
  718. package/index.es388.js +174 -51
  719. package/index.es389.js +2 -249
  720. package/index.es39.js +2 -2
  721. package/index.es390.js +2 -43
  722. package/index.es391.js +2 -16
  723. package/index.es392.js +2 -10
  724. package/index.es393.js +8 -48
  725. package/index.es394.js +6 -25
  726. package/index.es395.js +18 -127
  727. package/index.es396.js +51 -112
  728. package/index.es397.js +249 -2
  729. package/index.es398.js +43 -2
  730. package/index.es399.js +15 -72
  731. package/index.es4.js +6 -6
  732. package/index.es40.js +1 -1
  733. package/index.es400.js +10 -9
  734. package/index.es401.js +47 -6
  735. package/index.es402.js +28 -0
  736. package/index.es403.js +131 -0
  737. package/index.es404.js +114 -0
  738. package/index.es405.js +75 -0
  739. package/index.es406.js +11 -0
  740. package/index.es407.js +9 -0
  741. package/index.es41.js +2 -2
  742. package/index.es42.js +12 -12
  743. package/index.es43.js +2 -2
  744. package/index.es44.js +212 -190
  745. package/index.es45.js +156 -143
  746. package/index.es46.js +13 -13
  747. package/index.es47.js +3 -3
  748. package/index.es48.js +17 -17
  749. package/index.es49.js +1 -1
  750. package/index.es50.js +2 -2
  751. package/index.es51.js +79 -41
  752. package/index.es52.js +41 -58
  753. package/index.es53.js +33 -71
  754. package/index.es54.js +50 -256
  755. package/index.es55.js +82 -29
  756. package/index.es56.js +266 -22
  757. package/index.es57.js +31 -36
  758. package/index.es58.js +21 -51
  759. package/index.es59.js +37 -27
  760. package/index.es60.js +52 -71
  761. package/index.es61.js +24 -138
  762. package/index.es62.js +71 -17
  763. package/index.es63.js +130 -122
  764. package/index.es64.js +12 -417
  765. package/index.es65.js +134 -6
  766. package/index.es66.js +423 -12
  767. package/index.es67.js +6 -38
  768. package/index.es68.js +11 -49
  769. package/index.es69.js +33 -127
  770. package/index.es7.js +7 -7
  771. package/index.es70.js +46 -71
  772. package/index.es71.js +120 -89
  773. package/index.es72.js +74 -34
  774. package/index.es73.js +91 -65
  775. package/index.es74.js +35 -37
  776. package/index.es75.js +73 -19
  777. package/index.es76.js +36 -92
  778. package/index.es77.js +21 -22
  779. package/index.es78.js +93 -8
  780. package/index.es79.js +22 -80
  781. package/index.es8.js +2 -2
  782. package/index.es80.js +7 -6
  783. package/index.es81.js +80 -4
  784. package/index.es82.js +6 -78
  785. package/index.es83.js +4 -32
  786. package/index.es84.js +79 -48
  787. package/index.es85.js +32 -8
  788. package/index.es86.js +45 -13
  789. package/index.es87.js +8 -45
  790. package/index.es88.js +16 -4
  791. package/index.es89.js +44 -114
  792. package/index.es9.js +9 -9
  793. package/index.es90.js +4 -5
  794. package/index.es91.js +115 -7
  795. package/index.es92.js +5 -29
  796. package/index.es93.js +7 -28
  797. package/index.es94.js +29 -11
  798. package/index.es95.js +28 -109
  799. package/index.es96.js +11 -109
  800. package/index.es97.js +126 -22
  801. package/index.es98.js +124 -137
  802. package/index.es99.js +11 -6
  803. package/package.json +1 -1
  804. package/style.css +1 -1
  805. package/tailwind.config.cjs +4 -1
  806. package/tailwind.config.js +4 -1
package/index.cjs73.js CHANGED
@@ -1,33 +1,11 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("@radix-ui/react-toggle"),u=require("./index.cjs111.js"),l=require("react"),p=require("./index.cjs82.js");function r(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=r(b),g=r(l),d=u.cva(`group inline-flex items-center justify-center gap-space-01 transition-colors text-text-default data-[state=on]:font-semibold
2
- disabled:text-disabled-text-default-disabled disabled:pointer-events-none disabled:cursor-not-allowed focus:outline focus:outline-2 focus:outline-offset-1 focus:outline-black
3
- `,{variants:{variant:{default:"",outline:"border border-border-neutral-primary disabled:border-disabled disabled:data-[state=on]:bg-disabled-background-disabled disabled:data-[state=on]:border-none"},size:{default:"px-space-04 py-space-02 h-[40px] text-body-02 font-medium [&>svg]:size-space-05",sm:"px-space-03 py-space-01 h-[32px] text-body-01 [&>svg]:size-[20px]",xs:"px-space-03 py-space-01 h-[24px] text-caption-01 [&>svg]:size-space-04",icon:"p-space-02 size-[40px] [&>svg]:size-space-05","icon-sm":"p-space-02 size-[32px] [&>svg]:size-[20px]","icon-xs":"p-space-01 size-[24px] [&>svg]:size-space-04",fit:""},rounded:{default:"rounded",full:"rounded-full"},colors:{default:`hover:bg-button-background-primary-light-hovered
4
- hover:border-button-background-primary-light-hovered
5
- hover:text-text-primary
6
- active:text-text-primary
7
- data-[state=on]:bg-button-background-primary
8
- data-[state=on]:text-text-oncolor-primary
9
- hover:data-[state=on]:bg-button-background-primary-hovered
10
- hover:data-[state=on]:border-button-background-primary-hovered
11
- hover:data-[state=on]:text-text-oncolor-primary
12
- active:data-[state=on]:text-text-oncolor-primary
13
- active:bg-button-background-primary-light-pressed
14
- active:border-button-background-primary-light-pressed
15
- active:data-[state=on]:bg-button-background-primary-pressed`,gray:`hover:bg-button-background-neutral-pressed
16
- active:bg-button-background-neutral-selected
17
- active:data-[state=on]:bg-button-background-black-pressed
18
- data-[state=on]:bg-button-background-black
19
- data-[state=on]:text-text-oncolor-primary
20
- hover:data-[state=on]:bg-button-background-black-hovered
21
- hover:data-[state=on]:text-text-oncolor-primary
22
- `,oncolor:`border-border-white-40 text-text-oncolor-primary
23
- hover:bg-button-background-transparent-hovered
24
- active:bg-button-background-transparent-pressed
25
- data-[state=on]:bg-button-background-oncolor
26
- data-[state=on]:text-text-default
27
- hover:data-[state=on]:bg-button-background-oncolor-hovered
28
- active:data-[state=on]:bg-button-background-oncolor-pressed
29
- disabled:text-disabled-text-default-oncolor-disabled
30
- disabled:border-disabled-icon-default-oncolor-disabled
31
- focus:data-[state=off]:outline-border-white-40
32
- focus:-outline-offset-[3px]
33
- `}},defaultVariants:{variant:"default",size:"default",colors:"default",rounded:"default"}}),s=g.forwardRef(({className:e,variant:a,size:t,...o},i)=>c.jsx(n.Root,{ref:i,className:p.cn(d({variant:a,size:t,className:e})),...o}));s.displayName=n.Root.displayName;exports.Toggle=s;exports.toggleVariants=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("@radix-ui/react-toast"),l=require("./index.cjs104.js"),w=require("react"),n=require("./index.cjs84.js"),y=require("./index.cjs22.js"),T=require("./index.cjs107.js"),h=require("./index.cjs169.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const a=c(v),i=c(w),N=a.Provider,j=l.cva("fixed z-[10000000000000] flex max-h-screen w-full flex-col p-4 lg:max-w-[500px] ",{variants:{position:{top:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:top-10 sm:bottom-auto top-space-05",bottom:"ltr:sm:right-1/2 ltr:sm:translate-x-1/2 rtl:sm:left-1/2 rtl:sm:-translate-x-1/2 sm:bottom-10 sm:top-auto bottom-space-05","top-right":"end-0 sm:top-10 sm:bottom-auto top-space-05","top-left":"start-0 sm:top-10 sm:bottom-auto top-space-05","bottom-right":"end-0 sm:bottom-10 sm:top-auto bottom-space-05","bottom-left":"start-0 sm:bottom-10 sm:top-auto bottom-space-05"}},defaultVariants:{position:"bottom"}}),d=i.forwardRef(({className:t,position:e,...o},r)=>s.jsx(a.Viewport,{ref:r,className:n.cn(j({position:e}),t),...o}));d.displayName=a.Viewport.displayName;const k=l.cva(`group pointer-events-auto gap-space-03 relative bg-background-notification-white flex sm:flex-row w-full items-center space-x-4 overflow-hidden
2
+ rounded-1 border border-border-primary px-space-05 py-space-04 shadow-3xl transition-all data-[swipe=cancel]:translate-y-0 data-[swipe=end]:translate-y-[var(--radix-toast-swipe-end-x)]
3
+ data-[swipe=move]:translate-y-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out
4
+ data-[swipe=end]:animate-out data-[state=closed]:fade-out-80
5
+ before:w-space-02 before:top-0 before:bottom-0 before:absolute before:start-0 before:opacity-70`,{variants:{variant:{default:"before:bg-background-neutral-100",destructive:"destructive group before:bg-background-error",success:"success group before:bg-background-success",info:"info group before:bg-background-info",warning:"warning group before:bg-background-warning"},position:{top:"data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full",bottom:"data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full","top-right":"data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full","top-left":"data-[state=closed]:slide-out-to-top-full data-[state=open]:slide-in-from-top-full","bottom-right":"data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full","bottom-left":"data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full"}},defaultVariants:{variant:"default",position:"bottom"}}),u=i.forwardRef(({className:t,variant:e,position:o,...r},x)=>s.jsx(a.Root,{ref:x,className:n.cn(k({variant:e,position:o}),t),...r}));u.displayName=a.Root.displayName;const p=i.forwardRef(({className:t,...e},o)=>s.jsx(a.Action,{ref:o,className:n.cn("inline-flex h-[32px] items-center justify-center gap-space-01 rounded border-none bg-transparent px-space-03 py-[6px] text-body-01 font-medium text-text-default transition-colors hover:bg-button-background-neutral-hovered focus:bg-transparent focus:outline focus:outline-2 focus:outline-offset-1 focus:outline-border-black active:bg-button-background-neutral-pressed disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-disabled-text-default-disabled [&>svg]:size-[20px]",t),...e}));p.displayName=a.Action.displayName;const f=i.forwardRef(({...t},e)=>s.jsx(a.Close,{ref:e,asChild:!0,"toast-close":"",...t,children:s.jsx(y.Button,{variant:"text",colors:"neutral",size:"icon-sm",rounded:"default",children:s.jsx(T.default,{})})}));f.displayName=a.Close.displayName;const m=i.forwardRef(({className:t,...e},o)=>s.jsx(a.Title,{ref:o,className:n.cn("text-body-02 font-semibold text-text-display",t),...e}));m.displayName=a.Title.displayName;const b=i.forwardRef(({className:t,...e},o)=>s.jsx(a.Description,{ref:o,className:n.cn("content-center text-body-01 text-text-paragraph-primary",t),...e}));b.displayName=a.Description.displayName;const g=({icon:t})=>s.jsx("div",{className:`flex size-space-07 items-center justify-center rounded-full bg-background-neutral-50 p-[10px]
6
+ group-[.destructive]:bg-icon-background-error-light group-[.info]:bg-icon-background-info-light
7
+ group-[.success]:bg-icon-background-success-light group-[.warning]:bg-icon-background-warning-light
8
+ [&>svg]:size-[20px] [&>svg]:shrink-0
9
+ group-[.destructive]:[&>svg]:fill-icon-error group-[.info]:[&>svg]:fill-icon-info
10
+ group-[.success]:[&>svg]:fill-icon-success group-[.warning]:[&>svg]:fill-icon-warning
11
+ `,children:t||s.jsx(h.default,{})});g.displayName="ToastIcon";exports.Toast=u;exports.ToastAction=p;exports.ToastClose=f;exports.ToastDescription=b;exports.ToastIcon=g;exports.ToastProvider=N;exports.ToastTitle=m;exports.ToastViewport=d;
package/index.cjs74.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("@radix-ui/react-toggle-group"),v=require("react"),x=require("./index.cjs73.js"),d=require("./index.cjs82.js"),y=require("./index.cjs47.js");function p(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const c=p(j),a=p(v),m=a.createContext({size:"default",variant:"default",colors:"default",rounded:"default"}),f=a.forwardRef(({className:e,variant:o,size:t,colors:r,rounded:i,children:l,...u},g)=>s.jsx(y.ResponsiveScroll,{buttonClassName:"bg-background",children:s.jsx(c.Root,{ref:g,className:d.cn("flex items-center justify-center gap-space-01",e),...u,children:s.jsx(m.Provider,{value:{variant:o,size:t,colors:r,rounded:i},children:l})})}));f.displayName=c.Root.displayName;const b=a.forwardRef(({className:e,children:o,variant:t,size:r,colors:i,rounded:l,...u},g)=>{const n=a.useContext(m);return s.jsx(c.Item,{ref:g,className:d.cn(x.toggleVariants({variant:n.variant||t,size:n.size||r,colors:n.colors||i,rounded:n.rounded||l}),"shrink-0",e),...u,children:o})});b.displayName=c.Item.displayName;exports.ToggleGroup=f;exports.ToggleGroupItem=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index.cjs73.js"),d=require("./index.cjs78.js"),x=require("./index.cjs85.js"),j=require("./index.cjs170.js"),f=require("./index.cjs171.js"),n=require("./index.cjs169.js"),T=require("./index.cjs154.js"),m={destructive:e.jsx(j.default,{}),success:e.jsx(f.default,{}),default:e.jsx(n.default,{}),info:e.jsx(n.default,{}),warning:e.jsx(T.default,{})};function g({position:r="bottom"}){const{toasts:l}=d.useToast(),u=x.default(t=>t.isActive);return e.jsxs(s.ToastProvider,{children:[l.map(function({id:t,title:c,description:i,action:o,...a}){return e.jsx(s.Toast,{...a,className:`${u?"grayscale":"grayscale-0"}`,position:r,children:e.jsxs("div",{className:"flex grow flex-col justify-between gap-space-04",children:[e.jsxs("div",{className:"flex w-full gap-space-03",children:[e.jsx(s.ToastIcon,{icon:a.variant&&m[a.variant]}),e.jsxs("div",{className:"grid flex-1 items-center gap-space-01",children:[c&&e.jsx(s.ToastTitle,{children:c}),i&&e.jsx(s.ToastDescription,{children:i})]}),e.jsx(s.ToastClose,{})]}),o&&e.jsx("div",{className:"mx-space-07",children:o})]})},t)}),e.jsx(s.ToastViewport,{position:r})]})}exports.Toaster=g;
package/index.cjs75.js CHANGED
@@ -1 +1,33 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("@radix-ui/react-tooltip"),l=require("react"),c=require("./index.cjs82.js");function n(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=n(s),p=n(l),m=i.Provider,u=i.Root,f=i.Trigger,a=p.forwardRef(({className:t,sideOffset:o=4,...e},r)=>d.jsx(i.Content,{ref:r,sideOffset:o,className:c.cn("z-[10000] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-body-01 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));a.displayName=i.Content.displayName;exports.Tooltip=u;exports.TooltipContent=a;exports.TooltipProvider=m;exports.TooltipTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),b=require("@radix-ui/react-toggle"),u=require("./index.cjs104.js"),l=require("react"),p=require("./index.cjs84.js");function r(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=r(b),g=r(l),d=u.cva(`group inline-flex items-center justify-center gap-space-01 transition-colors text-text-default data-[state=on]:font-semibold
2
+ disabled:text-disabled-text-default-disabled disabled:pointer-events-none disabled:cursor-not-allowed focus:outline focus:outline-2 focus:outline-offset-1 focus:outline-black
3
+ `,{variants:{variant:{default:"",outline:"border border-border-neutral-primary disabled:border-disabled disabled:data-[state=on]:bg-disabled-background-disabled disabled:data-[state=on]:border-none"},size:{default:"px-space-04 py-space-02 h-[40px] text-body-02 font-medium [&>svg]:size-space-05",sm:"px-space-03 py-space-01 h-[32px] text-body-01 [&>svg]:size-[20px]",xs:"px-space-03 py-space-01 h-[24px] text-caption-01 [&>svg]:size-space-04",icon:"p-space-02 size-[40px] [&>svg]:size-space-05","icon-sm":"p-space-02 size-[32px] [&>svg]:size-[20px]","icon-xs":"p-space-01 size-[24px] [&>svg]:size-space-04",fit:""},rounded:{default:"rounded",full:"rounded-full"},colors:{default:`hover:bg-button-background-primary-light-hovered
4
+ hover:border-button-background-primary-light-hovered
5
+ hover:text-text-primary
6
+ active:text-text-primary
7
+ data-[state=on]:bg-button-background-primary
8
+ data-[state=on]:text-text-oncolor-primary
9
+ hover:data-[state=on]:bg-button-background-primary-hovered
10
+ hover:data-[state=on]:border-button-background-primary-hovered
11
+ hover:data-[state=on]:text-text-oncolor-primary
12
+ active:data-[state=on]:text-text-oncolor-primary
13
+ active:bg-button-background-primary-light-pressed
14
+ active:border-button-background-primary-light-pressed
15
+ active:data-[state=on]:bg-button-background-primary-pressed`,gray:`hover:bg-button-background-neutral-pressed
16
+ active:bg-button-background-neutral-selected
17
+ active:data-[state=on]:bg-button-background-black-pressed
18
+ data-[state=on]:bg-button-background-black
19
+ data-[state=on]:text-text-oncolor-primary
20
+ hover:data-[state=on]:bg-button-background-black-hovered
21
+ hover:data-[state=on]:text-text-oncolor-primary
22
+ `,oncolor:`border-border-white-40 text-text-oncolor-primary
23
+ hover:bg-button-background-transparent-hovered
24
+ active:bg-button-background-transparent-pressed
25
+ data-[state=on]:bg-button-background-oncolor
26
+ data-[state=on]:text-text-default
27
+ hover:data-[state=on]:bg-button-background-oncolor-hovered
28
+ active:data-[state=on]:bg-button-background-oncolor-pressed
29
+ disabled:text-disabled-text-default-oncolor-disabled
30
+ disabled:border-disabled-icon-default-oncolor-disabled
31
+ focus:data-[state=off]:outline-border-white-40
32
+ focus:-outline-offset-[3px]
33
+ `}},defaultVariants:{variant:"default",size:"default",colors:"default",rounded:"default"}}),s=g.forwardRef(({className:e,variant:a,size:t,...o},i)=>c.jsx(n.Root,{ref:i,className:p.cn(d({variant:a,size:t,className:e})),...o}));s.displayName=n.Root.displayName;exports.Toggle=s;exports.toggleVariants=d;
package/index.cjs76.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function O(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const T=O(p),l=1,A=1e6;let a=0;function m(){return a=(a+1)%Number.MAX_VALUE,a.toString()}const i=new Map,d=t=>{if(i.has(t))return;const e=setTimeout(()=>{i.delete(t),n({type:"REMOVE_TOAST",toastId:t})},A);i.set(t,e)},S=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,l)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=e;return s?d(s):t.toasts.forEach(o=>{d(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},r=[];let u={toasts:[]};function n(t){u=S(u,t),r.forEach(e=>{e(u)})}function f({...t}){const e=m(),s=c=>n({type:"UPDATE_TOAST",toast:{...c,id:e}}),o=()=>n({type:"DISMISS_TOAST",toastId:e});return n({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:c=>{c||o()}}}),{id:e,dismiss:o,update:s}}function _(){const[t,e]=T.useState(u);return T.useEffect(()=>(r.push(e),()=>{const s=r.indexOf(e);s>-1&&r.splice(s,1)}),[t]),{...t,toast:f,dismiss:s=>n({type:"DISMISS_TOAST",toastId:s})}}exports.reducer=S;exports.toast=f;exports.useToast=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("@radix-ui/react-toggle-group"),v=require("react"),x=require("./index.cjs75.js"),d=require("./index.cjs84.js"),y=require("./index.cjs47.js");function p(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const c=p(j),a=p(v),m=a.createContext({size:"default",variant:"default",colors:"default",rounded:"default"}),f=a.forwardRef(({className:e,variant:o,size:t,colors:r,rounded:i,children:l,...u},g)=>s.jsx(y.ResponsiveScroll,{buttonClassName:"bg-background",children:s.jsx(c.Root,{ref:g,className:d.cn("flex items-center justify-center gap-space-01",e),...u,children:s.jsx(m.Provider,{value:{variant:o,size:t,colors:r,rounded:i},children:l})})}));f.displayName=c.Root.displayName;const b=a.forwardRef(({className:e,children:o,variant:t,size:r,colors:i,rounded:l,...u},g)=>{const n=a.useContext(m);return s.jsx(c.Item,{ref:g,className:d.cn(x.toggleVariants({variant:n.variant||t,size:n.size||r,colors:n.colors||i,rounded:n.rounded||l}),"shrink-0",e),...u,children:o})});b.displayName=c.Item.displayName;exports.ToggleGroup=f;exports.ToggleGroupItem=b;
package/index.cjs77.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query");function r(c,t,a){const n=t.getQueryData(c),s=t.getQueryState(c),o=i.useIsFetching({queryKey:c},t);return{data:a?a(n):n,status:(s==null?void 0:s.status)??"idle",isError:!!(s!=null&&s.error),error:s==null?void 0:s.error,isFetching:!!o,isPending:(s==null?void 0:s.status)==="pending",isSuccess:(s==null?void 0:s.status)==="success",refetch:()=>{t.resetQueries({queryKey:c})}}}exports.useCachedData=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("@radix-ui/react-tooltip"),l=require("react"),c=require("./index.cjs84.js");function n(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=n(s),p=n(l),m=i.Provider,u=i.Root,f=i.Trigger,a=p.forwardRef(({className:t,sideOffset:o=4,...e},r)=>d.jsx(i.Content,{ref:r,sideOffset:o,className:c.cn("z-[10000] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-body-01 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));a.displayName=i.Content.displayName;exports.Tooltip=u;exports.TooltipContent=a;exports.TooltipProvider=m;exports.TooltipTrigger=f;
package/index.cjs78.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs106.js"),t=a=>(u,e)=>{a.setQueryData(u,r=>typeof e!="function"?e:d.produce(r,c=>{e(c)}))};exports.default=t;exports.useUpdateCachedData=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function O(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const T=O(p),l=1,A=1e6;let a=0;function m(){return a=(a+1)%Number.MAX_VALUE,a.toString()}const i=new Map,d=t=>{if(i.has(t))return;const e=setTimeout(()=>{i.delete(t),n({type:"REMOVE_TOAST",toastId:t})},A);i.set(t,e)},S=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,l)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=e;return s?d(s):t.toasts.forEach(o=>{d(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},r=[];let u={toasts:[]};function n(t){u=S(u,t),r.forEach(e=>{e(u)})}function f({...t}){const e=m(),s=c=>n({type:"UPDATE_TOAST",toast:{...c,id:e}}),o=()=>n({type:"DISMISS_TOAST",toastId:e});return n({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:c=>{c||o()}}}),{id:e,dismiss:o,update:s}}function _(){const[t,e]=T.useState(u);return T.useEffect(()=>(r.push(e),()=>{const s=r.indexOf(e);s>-1&&r.splice(s,1)}),[t]),{...t,toast:f,dismiss:s=>n({type:"DISMISS_TOAST",toastId:s})}}exports.reducer=S;exports.toast=f;exports.useToast=_;
package/index.cjs79.js CHANGED
@@ -1 +1 @@
1
- "use strict";var d=Object.defineProperty;var g=(n,e,t)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(g(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs101.js"),h=require("./index.cjs92.js");require("./index.cjs2.js");const l=require("./index.cjs84.js"),s=class s{constructor(e){i(this,"userManager");i(this,"config");i(this,"user");i(this,"isLoading");i(this,"isAuthenticated");i(this,"error");i(this,"signout",async(e="")=>{var t;this.isLoading=!1,window.location.href=`${(t=this.config)==null?void 0:t.oauth20LogoutUrl}${e}`});this.config=e,this.userManager=new r.UserManager({...h.createIdentityConfig(e),metadata:h.createMetadataConfig(e.authUrl,(e==null?void 0:e.jwks)??"UP_Definition")}),this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0,r.Log.setLogger(console),r.Log.setLevel(r.Log.DEBUG),this.setupEventListeners()}static getInstance(e){return s.instance||(s.instance=new s(e)),s.instance}setupEventListeners(){this.userManager.events.addUserLoaded(e=>{this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.error=void 0,this.isLoading=!1}),this.userManager.events.addUserUnloaded(()=>{this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0}),this.userManager.events.addSilentRenewError(e=>{this.error=e,this.user=null,this.isAuthenticated=!1,this.isLoading=!1}),this.userManager.events.addAccessTokenExpired(()=>{this.refreshToken().then(e=>{if(!e){const{setExpireSession:t}=l.default.getState();t()}})}),this.userManager.events.addUserSignedIn(()=>{this.isLoading=!1,this.error=void 0})}hasAuthParams(e=window.location){let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))}signin(e={}){return this.isLoading=!0,this.error=void 0,this.user=null,this.userManager.signinRedirect({state:e})}completeSignIn(){return this.userManager.signinRedirectCallback().then(async e=>(this.isLoading=!1,e?(this.user=e,this.isAuthenticated=!(e!=null&&e.expired)):this.user=await this.userManager.getUser(),e)).catch(e=>{throw this.isLoading=!1,this.error=e,Error(e)})}getUser(){return this.isLoading=!0,this.userManager.getUser().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.isLoading=!1),e)).catch(e=>{throw this.error=e,this.isLoading=!1,e})}async refreshToken(){return this.userManager.signinSilent().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),localStorage.setItem("accessToken",(e==null?void 0:e.id_token)??"")),e)).catch(e=>(this.error=e,null))}async clearSession(){return new Promise((e,t)=>{const o=window.open("https://iam-dev.moe.gov.sa/pkmslogout","_blank","width=800,height=600,noopener");o?setTimeout(()=>{o.close(),e()},1e3):t(new Error("Unable to open new popup window"))})}};i(s,"instance",null);let a=s;exports.AuthService=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query");function r(c,t,a){const n=t.getQueryData(c),s=t.getQueryState(c),o=i.useIsFetching({queryKey:c},t);return{data:a?a(n):n,status:(s==null?void 0:s.status)??"idle",isError:!!(s!=null&&s.error),error:s==null?void 0:s.error,isFetching:!!o,isPending:(s==null?void 0:s.status)==="pending",isSuccess:(s==null?void 0:s.status)==="success",refetch:()=>{t.resetQueries({queryKey:c})}}}exports.useCachedData=r;
package/index.cjs8.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("./index.cjs111.js"),i=require("react"),n=require("./index.cjs82.js"),h=b.cva("grid border-b border-border-secondary",{variants:{variant:{default:"[&>dt]:text-foreground-secondary",list:"[&>dd]:text-card-foreground"},size:{default:"text-body-01",sm:"text-caption-01"},orientation:{vertical:"grid-cols-1 gap-space-01",horizental:"grid-cols-1 gap-space-02 sm:grid-cols-[min(50%,theme(spacing.80))_auto]"},lastItem:{true:"border-none"},stretch:{true:""},padding:{default:"p-space-04",none:"p-space-00"}},compoundVariants:[{orientation:"horizental",stretch:!0,className:"sm:grid-cols-2 sm:[&>dd]:text-end"}],defaultVariants:{orientation:"horizental",variant:"default",padding:"default",size:"default"}}),o=i.forwardRef(({children:t,className:r,...a},s)=>e.jsx("div",{ref:s,className:n.cn("rounded-2 bg-background",r),...a,children:t}));o.displayName="Description";const d=i.forwardRef(({icon:t,variant:r,title:a,children:s,orientation:c,stretch:l,lastItem:u,size:p,padding:m,className:g,...f},x)=>e.jsxs("dl",{ref:x,className:n.cn(h({variant:r,orientation:c,size:p,stretch:l,lastItem:u,padding:m}),g),...f,children:[e.jsxs("dt",{className:"col-start-1 inline-flex items-center gap-space-01",children:[t&&e.jsx(t,{className:"h-8 w-8 shrink-0"}),a,":"]}),e.jsx("dd",{className:"line-clamp-1",children:s})]}));d.displayName="DescriptionItem";exports.Description=o;exports.DescriptionItem=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("./index.cjs104.js"),i=require("react"),n=require("./index.cjs84.js"),h=b.cva("grid border-b border-border-secondary",{variants:{variant:{default:"[&>dt]:text-foreground-secondary",list:"[&>dd]:text-card-foreground"},size:{default:"text-body-01",sm:"text-caption-01"},orientation:{vertical:"grid-cols-1 gap-space-01",horizental:"grid-cols-1 gap-space-02 sm:grid-cols-[min(50%,theme(spacing.80))_auto]"},lastItem:{true:"border-none"},stretch:{true:""},padding:{default:"p-space-04",none:"p-space-00"}},compoundVariants:[{orientation:"horizental",stretch:!0,className:"sm:grid-cols-2 sm:[&>dd]:text-end"}],defaultVariants:{orientation:"horizental",variant:"default",padding:"default",size:"default"}}),o=i.forwardRef(({children:t,className:r,...a},s)=>e.jsx("div",{ref:s,className:n.cn("rounded-2 bg-background",r),...a,children:t}));o.displayName="Description";const d=i.forwardRef(({icon:t,variant:r,title:a,children:s,orientation:c,stretch:l,lastItem:u,size:p,padding:m,className:g,...f},x)=>e.jsxs("dl",{ref:x,className:n.cn(h({variant:r,orientation:c,size:p,stretch:l,lastItem:u,padding:m}),g),...f,children:[e.jsxs("dt",{className:"col-start-1 inline-flex items-center gap-space-01",children:[t&&e.jsx(t,{className:"h-8 w-8 shrink-0"}),a,":"]}),e.jsx("dd",{className:"line-clamp-1",children:s})]}));d.displayName="DescriptionItem";exports.Description=o;exports.DescriptionItem=d;
package/index.cjs80.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs84.js"),e=()=>{const{isAuthenticated:t,user:u,nationalId:s}=a.default(r=>r);return{isAuthenticated:t,user:u,nationalId:s}};exports.default=e;exports.useAuth=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs172.js"),t=a=>(u,e)=>{a.setQueryData(u,r=>typeof e!="function"?e:d.produce(r,c=>{e(c)}))};exports.default=t;exports.useUpdateCachedData=t;
package/index.cjs81.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs88.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
1
+ "use strict";var d=Object.defineProperty;var g=(n,e,t)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>(g(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs175.js"),h=require("./index.cjs94.js");require("./index.cjs2.js");const l=require("./index.cjs86.js"),s=class s{constructor(e){i(this,"userManager");i(this,"config");i(this,"user");i(this,"isLoading");i(this,"isAuthenticated");i(this,"error");i(this,"signout",async(e="")=>{var t;this.isLoading=!1,window.location.href=`${(t=this.config)==null?void 0:t.oauth20LogoutUrl}${e}`});this.config=e,this.userManager=new r.UserManager({...h.createIdentityConfig(e),metadata:h.createMetadataConfig(e.authUrl,(e==null?void 0:e.jwks)??"UP_Definition")}),this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0,r.Log.setLogger(console),r.Log.setLevel(r.Log.DEBUG),this.setupEventListeners()}static getInstance(e){return s.instance||(s.instance=new s(e)),s.instance}setupEventListeners(){this.userManager.events.addUserLoaded(e=>{this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.error=void 0,this.isLoading=!1}),this.userManager.events.addUserUnloaded(()=>{this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0}),this.userManager.events.addSilentRenewError(e=>{this.error=e,this.user=null,this.isAuthenticated=!1,this.isLoading=!1}),this.userManager.events.addAccessTokenExpired(()=>{this.refreshToken().then(e=>{if(!e){const{setExpireSession:t}=l.default.getState();t()}})}),this.userManager.events.addUserSignedIn(()=>{this.isLoading=!1,this.error=void 0})}hasAuthParams(e=window.location){let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))}signin(e={}){return this.isLoading=!0,this.error=void 0,this.user=null,this.userManager.signinRedirect({state:e})}completeSignIn(){return this.userManager.signinRedirectCallback().then(async e=>(this.isLoading=!1,e?(this.user=e,this.isAuthenticated=!(e!=null&&e.expired)):this.user=await this.userManager.getUser(),e)).catch(e=>{throw this.isLoading=!1,this.error=e,Error(e)})}getUser(){return this.isLoading=!0,this.userManager.getUser().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.isLoading=!1),e)).catch(e=>{throw this.error=e,this.isLoading=!1,e})}async refreshToken(){return this.userManager.signinSilent().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),localStorage.setItem("accessToken",(e==null?void 0:e.id_token)??"")),e)).catch(e=>(this.error=e,null))}async clearSession(){return new Promise((e,t)=>{const o=window.open("https://iam-dev.moe.gov.sa/pkmslogout","_blank","width=800,height=600,noopener");o?setTimeout(()=>{o.close(),e()},1e3):t(new Error("Unable to open new popup window"))})}};i(s,"instance",null);let a=s;exports.AuthService=a;
package/index.cjs82.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs102.js"),o=require("./index.cjs103.js"),c=require("./index.cjs104.js"),l=require("./index.cjs94.js"),i=require("./index.cjs100.js"),d=require("./index.cjs86.js"),m=require("./index.cjs105.js"),g=require("./index.cjs76.js"),u=m.extendTailwindMerge({classGroups:{"font-size":["text-caption-01","text-caption-02","text-subtitle-01","text-subtitle-02","text-body-01","text-body-02"]}});function f(...e){return u(s.clsx(e))}const Y={enRegex:/^[a-zA-Z- ]+$/,arRegex:/^[\u0621-\u064A- ]+$/,bothArAndEnRegexonlyLetters:/^[a-zA-Z-\u0621-\u064A ]+$/,bothArAndEnRegexonlyLettersAndNumbers:/^[a-zA-Z0-9-\u0621-\u064A ]+$/,enletterAndNumbersRegex:/^[a-zA-Z0-9]*$/,mobileNumber:/^(5)(\d){8}$/,TelPhone:/^(0096611)(\d){7}$/,nationalId:/^1(\d){9}$/,nationalOrResidentId:/^[12](\d){9}$/,nonSaudianNationalId:/^2(\d){9}$/,tags:/<[^>]*>?/gm,specialCharcter:/[!@#$%^&*()_+\-'~<>/\\?|÷×]/,arSpaceRegex:/^[\u0621-\u064A\s]+$/},h=(e,t)=>(!/^[0-9\u0660-\u0669]+$/.test(e.target.value)&&e.target.value!==""&&(e.target.value=t),e.target.value=e.target.value.replace(/[٠١٢٣٤٥٦٧٨٩]/g,n=>String(n.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,n=>String(n.charCodeAt(0)-1776)),e),b=(...e)=>e.map(t=>t.split(" ").map(r=>process.env.NODE_ENV==="production"?`er-${r}`:r).join(" ")).join(" "),x=()=>{const{lang:e}=d.default(t=>t);return(t="",r="")=>String(e).toLocaleLowerCase()==="ar"?t:r||t};function A(e,t){let r=null;return function(...n){const a=()=>{r=null,e.apply(this,n)};r!==null&&clearTimeout(r),r=setTimeout(a,t)}}const p=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{day:"2-digit",month:"short",year:"numeric"}),D=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{timeStyle:"short"}),S=({date:e,format:t,isHijri:r=!1,hasHijriFormat:n})=>{const a=document.dir==="rtl";switch(o.default.updateLocale(a?"ar-sa":"en",{}),t){case"short":return o.default(e).format(a?i.DateFormat.ArShort:i.DateFormat.EnShort);case"mid":return o.default(e).format("dddd");case"long":return r?c.default(e,n?"iDD/iMM/iYYYY":void 0).format(a?"iYYYY/iM/iD":"iD/iM/iYYYY"):o.default(new Date(e??""),"DD-MM-YYYY").format(a?"YYYY/M/D":"D/M/YYYY")}},w=e=>{const{toast:t}=g.useToast();navigator.clipboard.writeText(e).then(()=>{t({description:l.strings.Shared.CopiedSuccessfully})})};exports.cn=f;exports.dateFormatter=S;exports.debounce=A;exports.formatter=p;exports.formatterTime=D;exports.handleArabicNumbers=h;exports.langRegex=Y;exports.tw=b;exports.twMerge=u;exports.useShareLink=w;exports.useSwitchData=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs86.js"),e=()=>{const{isAuthenticated:t,user:u,nationalId:s}=a.default(r=>r);return{isAuthenticated:t,user:u,nationalId:s}};exports.default=e;exports.useAuth=e;
package/index.cjs83.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs97.js"),u=require("./index.cjs85.js"),c=({state:e})=>{var o,i,n,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))<12&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMax=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))>=12,e.isMin=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))<10.2&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMax=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))>=10.2,e.isMin=!1)},f=({state:e})=>{var o,i,n,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))>8&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMin=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))<=8,e.isMax=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))>7.4&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMin=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))<=7.4,e.isMax=!1)},m=s.create()(u.default(e=>({isActive:!!localStorage.getItem("Colors"),toggleColors:()=>e(o=>(o.isActive?localStorage.removeItem("Colors"):localStorage.setItem("Colors","true"),{isActive:!o.isActive})),isDesktop:window.innerWidth>=640||!1,fontSize:window.innerWidth>=640?"10px":"8.8px",isMax:!1,isMin:!1,increaseSize:()=>e(o=>{c({state:o})}),decreaseSize:()=>e(o=>{f({state:o})}),defaultSize:()=>e(o=>{var i;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"})),d=m;exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs90.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
package/index.cjs84.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs97.js"),i=require("./index.cjs85.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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs101.js"),o=require("./index.cjs118.js"),c=require("./index.cjs176.js"),l=require("./index.cjs96.js"),i=require("./index.cjs149.js"),d=require("./index.cjs88.js"),m=require("./index.cjs177.js"),g=require("./index.cjs78.js"),u=m.extendTailwindMerge({classGroups:{"font-size":["text-caption-01","text-caption-02","text-subtitle-01","text-subtitle-02","text-body-01","text-body-02"]}});function f(...e){return u(s.clsx(e))}const Y={enRegex:/^[a-zA-Z- ]+$/,arRegex:/^[\u0621-\u064A- ]+$/,bothArAndEnRegexonlyLetters:/^[a-zA-Z-\u0621-\u064A ]+$/,bothArAndEnRegexonlyLettersAndNumbers:/^[a-zA-Z0-9-\u0621-\u064A ]+$/,enletterAndNumbersRegex:/^[a-zA-Z0-9]*$/,mobileNumber:/^(5)(\d){8}$/,TelPhone:/^(0096611)(\d){7}$/,nationalId:/^1(\d){9}$/,nationalOrResidentId:/^[12](\d){9}$/,nonSaudianNationalId:/^2(\d){9}$/,tags:/<[^>]*>?/gm,specialCharcter:/[!@#$%^&*()_+\-'~<>/\\?|÷×]/,arSpaceRegex:/^[\u0621-\u064A\s]+$/},h=(e,t)=>(!/^[0-9\u0660-\u0669]+$/.test(e.target.value)&&e.target.value!==""&&(e.target.value=t),e.target.value=e.target.value.replace(/[٠١٢٣٤٥٦٧٨٩]/g,n=>String(n.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,n=>String(n.charCodeAt(0)-1776)),e),b=(...e)=>e.map(t=>t.split(" ").map(r=>process.env.NODE_ENV==="production"?`er-${r}`:r).join(" ")).join(" "),x=()=>{const{lang:e}=d.default(t=>t);return(t="",r="")=>String(e).toLocaleLowerCase()==="ar"?t:r||t};function A(e,t){let r=null;return function(...n){const a=()=>{r=null,e.apply(this,n)};r!==null&&clearTimeout(r),r=setTimeout(a,t)}}const p=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{day:"2-digit",month:"short",year:"numeric"}),D=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{timeStyle:"short"}),S=({date:e,format:t,isHijri:r=!1,hasHijriFormat:n})=>{const a=document.dir==="rtl";switch(o.default.updateLocale(a?"ar-sa":"en",{}),t){case"short":return o.default(e).format(a?i.DateFormat.ArShort:i.DateFormat.EnShort);case"mid":return o.default(e).format("dddd");case"long":return r?c.default(e,n?"iDD/iMM/iYYYY":void 0).format(a?"iYYYY/iM/iD":"iD/iM/iYYYY"):o.default(new Date(e??""),"DD-MM-YYYY").format(a?"YYYY/M/D":"D/M/YYYY")}},w=e=>{const{toast:t}=g.useToast();navigator.clipboard.writeText(e).then(()=>{t({description:l.strings.Shared.CopiedSuccessfully})})};exports.cn=f;exports.dateFormatter=S;exports.debounce=A;exports.formatter=p;exports.formatterTime=D;exports.handleArabicNumbers=h;exports.langRegex=Y;exports.tw=b;exports.twMerge=u;exports.useShareLink=w;exports.useSwitchData=x;
package/index.cjs85.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs98.js"),s=require("./index.cjs99.js"),l={name:"Store",enabled:!0,serialize:{options:!1}},r=(e,t=l)=>o.devtools(s.immer(e),t),i=r;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs164.js"),u=require("./index.cjs87.js"),c=({state:e})=>{var o,i,n,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))<12&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMax=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))>=12,e.isMin=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))<10.2&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMax=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))>=10.2,e.isMin=!1)},f=({state:e})=>{var o,i,n,t,l,r;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))>8&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMin=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))<=8,e.isMax=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))>7.4&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMin=Number((r=e.fontSize)==null?void 0:r.substring(0,e.fontSize.length-2))<=7.4,e.isMax=!1)},m=s.create()(u.default(e=>({isActive:!!localStorage.getItem("Colors"),toggleColors:()=>e(o=>(o.isActive?localStorage.removeItem("Colors"):localStorage.setItem("Colors","true"),{isActive:!o.isActive})),isDesktop:window.innerWidth>=640||!1,fontSize:window.innerWidth>=640?"10px":"8.8px",isMax:!1,isMin:!1,increaseSize:()=>e(o=>{c({state:o})}),decreaseSize:()=>e(o=>{f({state:o})}),defaultSize:()=>e(o=>{var i;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"})),d=m;exports.default=d;
package/index.cjs86.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs97.js"),o=require("./index.cjs85.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 r=require("./index.cjs164.js"),i=require("./index.cjs87.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.cjs87.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,e)=>{switch(e.type){case"INITIALISED":case"USER_LOADED":return{...r,user:e.user,isLoading:!1,isAuthenticated:e.user?!e.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...r,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...r,isLoading:!0,activeNavigator:e.method};case"NAVIGATOR_CLOSE":return{...r,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...r,isLoading:!1,error:e.error};default:return{...r,isLoading:!1,error:new Error(`unknown type ${e.type}`)}}};exports.reducer=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs173.js"),s=require("./index.cjs174.js"),l={name:"Store",enabled:!0,serialize:{options:!1}},r=(e,t=l)=>o.devtools(s.immer(e),t),i=r;exports.default=i;
package/index.cjs88.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0);t.displayName="AuthContext";exports.AuthContext=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs164.js"),o=require("./index.cjs87.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.cjs89.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs101.js"),C=require("./index.cjs88.js"),b=require("./index.cjs90.js"),I=require("./index.cjs87.js"),d=require("./index.cjs91.js"),M=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],q=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],g=i=>()=>{throw new Error(`UserManager#${i} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},h=typeof window>"u"?null:A.UserManager,P=i=>{const{children:m,onSigninCallback:o,skipSigninCallback:p,matchSignoutCallback:u,onSignoutCallback:c,onRemoveUser:R,userManager:E=null,...S}=i,[e]=s.useState(()=>E??(h?new h(S):{settings:S})),[f,n]=s.useReducer(I.reducer,b.initialAuthState),w=s.useMemo(()=>Object.assign({settings:e.settings,events:e.events},Object.fromEntries(M.map(t=>{var r;return[t,((r=e[t])==null?void 0:r.bind(e))??g(t)]})),Object.fromEntries(q.map(t=>[t,e[t]?async r=>{n({type:"NAVIGATOR_INIT",method:t});try{return await e[t](r)}catch(a){return n({type:"ERROR",error:a}),null}finally{n({type:"NAVIGATOR_CLOSE"})}}:g(t)]))),[e]),v=s.useRef(!1);s.useEffect(()=>{!e||v.current||(v.current=!0,(async()=>{let t=null;try{d.hasAuthParams()&&!p&&(t=await e.signinCallback(),o&&await o(t)),t=t||await e.getUser(),n({type:"INITIALISED",user:t})}catch(r){n({type:"ERROR",error:d.signinError(r)})}try{u&&u(e.settings)&&(await e.signoutCallback(),c&&await c())}catch(r){n({type:"ERROR",error:d.signoutError(r)})}})())},[e,p,o,c,u]),s.useEffect(()=>{if(!e)return;const t=l=>{n({type:"USER_LOADED",user:l})};e.events.addUserLoaded(t);const r=()=>{n({type:"USER_UNLOADED"})};e.events.addUserUnloaded(r);const a=()=>{n({type:"USER_SIGNED_OUT"})};e.events.addUserSignedOut(a);const U=l=>{n({type:"ERROR",error:l})};return e.events.addSilentRenewError(U),()=>{e.events.removeUserLoaded(t),e.events.removeUserUnloaded(r),e.events.removeUserSignedOut(a),e.events.removeSilentRenewError(U)}},[e]);const O=s.useCallback(e?()=>e.removeUser().then(R):g("removeUser"),[e,R]);return y.jsx(C.AuthContext.Provider,{value:{...f,...w,removeUser:O},children:m})};exports.AuthProvider=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,e)=>{switch(e.type){case"INITIALISED":case"USER_LOADED":return{...r,user:e.user,isLoading:!1,isAuthenticated:e.user?!e.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...r,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...r,isLoading:!0,activeNavigator:e.method};case"NAVIGATOR_CLOSE":return{...r,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...r,isLoading:!1,error:e.error};default:return{...r,isLoading:!1,error:new Error(`unknown type ${e.type}`)}}};exports.reducer=s;
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.cjs112.js"),C=require("./index.cjs113.js"),O=require("react"),w=require("react-dom"),W=require("./index.cjs82.js"),F=require("./index.cjs94.js"),H=require("./index.cjs3.js"),j=require("./index.cjs22.js"),L=require("./index.cjs62.js"),V=require("./index.cjs41.js"),J=require("./index.cjs114.js"),K=require("./index.cjs115.js"),Q=require("./index.cjs116.js"),U=require("./index.cjs117.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.cjs105.js"),C=require("./index.cjs106.js"),O=require("react"),w=require("react-dom"),W=require("./index.cjs84.js"),F=require("./index.cjs96.js"),H=require("./index.cjs3.js"),j=require("./index.cjs22.js"),L=require("./index.cjs64.js"),V=require("./index.cjs41.js"),J=require("./index.cjs107.js"),K=require("./index.cjs108.js"),Q=require("./index.cjs109.js"),U=require("./index.cjs110.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.cjs90.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0);t.displayName="AuthContext";exports.AuthContext=t;
package/index.cjs91.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e=window.location)=>{let r=new URLSearchParams(e.search);return!!((r.get("code")||r.get("error"))&&r.get("state")||(r=new URLSearchParams(e.hash.replace("#","?")),(r.get("code")||r.get("error"))&&r.get("state")))},t=e=>r=>r instanceof Error?r:new Error(e),a=t("Sign-in failed"),o=t("Sign-out failed");exports.hasAuthParams=n;exports.signinError=a;exports.signoutError=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs175.js"),C=require("./index.cjs90.js"),b=require("./index.cjs92.js"),I=require("./index.cjs89.js"),d=require("./index.cjs93.js"),M=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],q=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],g=i=>()=>{throw new Error(`UserManager#${i} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},h=typeof window>"u"?null:A.UserManager,P=i=>{const{children:m,onSigninCallback:o,skipSigninCallback:p,matchSignoutCallback:u,onSignoutCallback:c,onRemoveUser:R,userManager:E=null,...S}=i,[e]=s.useState(()=>E??(h?new h(S):{settings:S})),[f,n]=s.useReducer(I.reducer,b.initialAuthState),w=s.useMemo(()=>Object.assign({settings:e.settings,events:e.events},Object.fromEntries(M.map(t=>{var r;return[t,((r=e[t])==null?void 0:r.bind(e))??g(t)]})),Object.fromEntries(q.map(t=>[t,e[t]?async r=>{n({type:"NAVIGATOR_INIT",method:t});try{return await e[t](r)}catch(a){return n({type:"ERROR",error:a}),null}finally{n({type:"NAVIGATOR_CLOSE"})}}:g(t)]))),[e]),v=s.useRef(!1);s.useEffect(()=>{!e||v.current||(v.current=!0,(async()=>{let t=null;try{d.hasAuthParams()&&!p&&(t=await e.signinCallback(),o&&await o(t)),t=t||await e.getUser(),n({type:"INITIALISED",user:t})}catch(r){n({type:"ERROR",error:d.signinError(r)})}try{u&&u(e.settings)&&(await e.signoutCallback(),c&&await c())}catch(r){n({type:"ERROR",error:d.signoutError(r)})}})())},[e,p,o,c,u]),s.useEffect(()=>{if(!e)return;const t=l=>{n({type:"USER_LOADED",user:l})};e.events.addUserLoaded(t);const r=()=>{n({type:"USER_UNLOADED"})};e.events.addUserUnloaded(r);const a=()=>{n({type:"USER_SIGNED_OUT"})};e.events.addUserSignedOut(a);const U=l=>{n({type:"ERROR",error:l})};return e.events.addSilentRenewError(U),()=>{e.events.removeUserLoaded(t),e.events.removeUserUnloaded(r),e.events.removeUserSignedOut(a),e.events.removeSilentRenewError(U)}},[e]);const O=s.useCallback(e?()=>e.removeUser().then(R):g("removeUser"),[e,R]);return y.jsx(C.AuthContext.Provider,{value:{...f,...w,removeUser:O},children:m})};exports.AuthProvider=P;
package/index.cjs92.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({authority:e.authUrl,client_id:e.clientId,client_secret:e.clientSecret,redirect_uri:`${e.baseUrl}/login/sso/callback`,login:e.authUrl,automaticSilentRenew:!1,loadUserInfo:!1,silent_redirect_uri:`${e.baseUrl}/login/sso/callback`,post_logout_redirect_uri:`${e.baseUrl}/logout/sso`,audience:e.baseUrl,responseType:"code",grantType:"authorization_code",scope:"openid NationalID offline_access",webAuthResponseType:"code",disablePKCE:e.disablePKCE??!1}),i=(e,t)=>({issuer:"https://iam-dev.moe.gov.sa",jwks_uri:`${e}/jwks/${t}`,authorization_endpoint:`${e}/authorize`,token_endpoint:`${e}/token`,userinfo_endpoint:`${e}/userinfo`,end_session_endpoint:`${e}/revoke`,check_session_iframe:`${e}/checksession`,revocation_endpoint:`${e}/revoke`,introspection_endpoint:`${e}/introspect`});exports.createIdentityConfig=o;exports.createMetadataConfig=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
package/index.cjs93.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs97.js"),e=require("./index.cjs100.js"),d=require("./index.cjs85.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 n=(e=window.location)=>{let r=new URLSearchParams(e.search);return!!((r.get("code")||r.get("error"))&&r.get("state")||(r=new URLSearchParams(e.hash.replace("#","?")),(r.get("code")||r.get("error"))&&r.get("state")))},t=e=>r=>r instanceof Error?r:new Error(e),a=t("Sign-in failed"),o=t("Sign-out failed");exports.hasAuthParams=n;exports.signinError=a;exports.signoutError=o;
package/index.cjs94.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react-localization"),r=require("./index.cjs95.js"),s=require("./index.cjs96.js"),t=new e({ar:r.ar,en:s.en}),a=n=>t.setLanguage(n);exports.default=e;exports.setLanguage=a;exports.strings=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({authority:e.authUrl,client_id:e.clientId,client_secret:e.clientSecret,redirect_uri:`${e.baseUrl}/login/sso/callback`,login:e.authUrl,automaticSilentRenew:!1,loadUserInfo:!1,silent_redirect_uri:`${e.baseUrl}/login/sso/callback`,post_logout_redirect_uri:`${e.baseUrl}/logout/sso`,audience:e.baseUrl,responseType:"code",grantType:"authorization_code",scope:"openid NationalID offline_access",webAuthResponseType:"code",disablePKCE:e.disablePKCE??!1}),i=(e,t)=>({issuer:"https://iam-dev.moe.gov.sa",jwks_uri:`${e}/jwks/${t}`,authorization_endpoint:`${e}/authorize`,token_endpoint:`${e}/token`,userinfo_endpoint:`${e}/userinfo`,end_session_endpoint:`${e}/revoke`,check_session_iframe:`${e}/checksession`,revocation_endpoint:`${e}/revoke`,introspection_endpoint:`${e}/introspect`});exports.createIdentityConfig=o;exports.createMetadataConfig=i;
package/index.cjs95.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} يجب ان لا يتجاوز {1} حرف",required:"{0} اجباري"},Shared:{trialVersion:"نسخة تجريبية",soon:"قريبًا",NationalId:"الهوية الوطنية",ResidentID:"الإقامة",Welcome:"أهلًا ",Login:"تسجيل الدخول",Logout:"تسجيل الخروج",InformationPanel:"لوحة المعلومات",AccountSettings:"إعدادات الحساب",Chat:"تواصل معنا",TechnicalSupport:"الدعم الفني",FullName:"الاسم الكامل",PersonalInformation:"المعلومات الشخصية",TicketInformation:"معلومات التذكرة",TicketDetails:"تفاصيل التذكرة",Title:"العنوان",Description:"الوصف",Enter:"ادخل",AddSupportingFiles:"أرفق ملفات داعمة",Send:"إرسال",Submit:"إرسال الطلب",Cancel:"إلغاء",Main:"الرئيسية",Select:"اختر",NotRobot:"الرجاء التحقق",Search:"بحث",Number:"الرقم",Date:"التاريخ",hijriCalendar:"التاريخ الهجري",male:"ذكر",female:"أنثى",submit:"ارسال",next:"التالي",previous:"السابق",morePages:"المزيد",Total:"الإجمالي",YearTitle:"السنة",MonthTitle:"الشهر",PaginationDesc:"الصفحة {0} من {1}",LinesPerPage:"عدد السطور بالصفحة",Actions:"الإجراءات",ViewDetails:"عرض التفاصيل",Language:"اللغة",Specify:"حدد",ServerError:"عفوًا، حدث خطأ ما",BackToHome:"العودة للصفحة الرئيسية",NoDataFound:"لا توجد بيانات",showResults:"عرض النتائج",reset:"إعادة التعيين",CopiedSuccessfully:"تم النسخ بنجاح",comma:"،",accessibilityTools:"أداة سهولة الوصول",sortBy:"تصنيف حسب",siteLanguageText:"English",lightMode:"الوضع الفاتح",darkMode:"الوضع الداكن",showLess:"أظهر أقل",showMore:"أظهر أكثر",noResultsFound:"لا توجد نتائج",Clear:"مسح"},Footer:{KSA:"وزارة التعليم - المملكة العربية السعودية",TermsAndConditions:"الشروط والأحكام",PolicyAndPrivacy:"سياسة الخصوصية",RegulationsPolicies:"اللوائح والسياسات",Rights:" جميع الحقوق محفوظة لوزارة التعليم © {0}",Version:"نسخة رقم ",DevelopedByTetco:"تطوير وتشغيل شركة تطوير لتقنيات التعليم"},DragAndDrop:{SaveCustomization:"حفظ",Delete:"إزالة",Half:"تصغير",Full:"توسيع",Width:"العرض",Show:"اظهار",AddToDashboard:"تخصيص العرض"},Attachments:{error:"عفوًا، صيغة أو حجم المرفق غير مسموح بها",Attachments:"المرفقات",AddAttachment:"أرفق الملفات",dragFiles:"اسحب و أفلت الملفات هنا للرفع",browseFile:"تصفح الملفات",uploadFiles:"رفع المرفقات",allowedFormats:"وتشمل الصيغ المدعومة {0}",maxSize:"الحد الأقصى لحجم الملف المسموح به هو {0} ميجابايت",ApplyFile:"تقديم الملف",maxAcceptedFilesCount:"أقصى عدد من الملفات التي يمكنك إرفاقها هنا هو {0} ملفات",attachedFile:"مرفق ملف"},Accessibility:{Accessibility:"تمكين الوصول",FontSize:"حجم الخط",IncreaseFontSize:"تكبير حجم الخط",DecreaseFontSize:"تصغير حجم الخط",ColorContrast:"تباين الألوان",SignLanguage:"دعم لغة الإشارة",VoiceCommands:"الأوامر الصوتية"}};exports.ar=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs164.js"),e=require("./index.cjs149.js"),d=require("./index.cjs87.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.cjs96.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} field size is {1} characters",required:"{0} is required"},Shared:{trialVersion:"Beta version",soon:"soon",NationalId:"National ID",ResidentID:"Resident ID",Welcome:"Hi ",Login:"Login",Logout:"Log out",InformationPanel:"Information Panel",AccountSettings:"Account Settings",Chat:"Chat Now",TechnicalSupport:"Technical Support",FullName:"Full Name",PersonalInformation:"Personal Information",TicketInformation:"Ticket Information",TicketDetails:"Ticket Details",Title:"Title",Description:"Description",Enter:"Enter",AddSupportingFiles:"Attachments",Send:"Submit",Submit:"Submit Request",Cancel:"Cancel",Main:"Home",Select:"Select",NotRobot:"Please verify you are not a robot",Search:"Search",Number:"Number",Date:"Date",hijriCalendar:"Hijri Calendar",male:"Male",female:"Female",submit:"Submit",next:"Next",previous:"Previous",morePages:"More pages",Total:"Total",YearTitle:"Year",MonthTitle:"Month",PaginationDesc:"Page {0} of {1}",LinesPerPage:"Lines per page",Actions:"Actions",ViewDetails:"View Details",Language:"Language",Specify:"Specify",ServerError:"Sorry, something went wrong",BackToHome:"Back to Main Page",NoDataFound:"No data found",showResults:"Show results",reset:"Reset",CopiedSuccessfully:"Copied successfully",comma:",",accessibilityTools:" Accessibility Tools",sortBy:"Sort by",siteLanguageText:"العربية",lightMode:"Light mode",darkMode:"Dark mode",showLess:"Show less",showMore:"Show more",noResultsFound:"No results found",Clear:"Clear"},Footer:{KSA:"Ministry of Education - Saudia Arabia",TermsAndConditions:"Terms & conditions",PolicyAndPrivacy:" Privacy policy",RegulationsPolicies:"Regulations & Policies",Rights:"All rights reserved to the Ministry of Education © {0}",Version:"Version ",DevelopedByTetco:"Developed and operated by Tatweer Educational Technologies Company"},DragAndDrop:{SaveCustomization:"Save",Delete:"Remove",Half:"Minimize",Full:"Expand",Width:"Width",Show:"Show",AddToDashboard:"Custom display"},Attachments:{error:"Sorry! The format or the size of the attachment is not allowed.",Attachments:"Attachments",AddAttachment:"Attach files",dragFiles:"Drag and drop files here to upload ",browseFile:"Browse Files",uploadFiles:"Upload Files",allowedFormats:"supported file formats include {0}",maxSize:"Maximum file size allowed is {0}MB",ApplyFile:"Apply File",maxAcceptedFilesCount:"the maximum number of files you can drop here {0} files",attachedFile:"Attached File"},Accessibility:{Accessibility:"Accessibility",FontSize:"Font size",IncreaseFontSize:"Increase font size",DecreaseFontSize:"Decrease font size",ColorContrast:"Color contrast",SignLanguage:"Sign language",VoiceCommands:"Voice commands"}};exports.en=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react-localization"),r=require("./index.cjs97.js"),s=require("./index.cjs98.js"),t=new e({ar:r.ar,en:s.en}),a=n=>t.setLanguage(n);exports.default=e;exports.setLanguage=a;exports.strings=t;
package/index.cjs97.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs172.js"),a=require("react"),c=require("./index.cjs173.js"),{useDebugValue:l}=a,{useSyncExternalStoreWithSelector:E}=c.default;const d=e=>e;function s(e,t=d,o){const r=E(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,o);return l(r),r}const n=e=>{const t=typeof e=="function"?i.createStore(e):e,o=(r,u)=>s(t,r,u);return Object.assign(o,t),o},S=e=>e?n(e):n;exports.createStore=i.createStore;exports.create=S;exports.useStore=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} يجب ان لا يتجاوز {1} حرف",required:"{0} اجباري"},Shared:{trialVersion:"نسخة تجريبية",soon:"قريبًا",NationalId:"الهوية الوطنية",ResidentID:"الإقامة",Welcome:"أهلًا ",Login:"تسجيل الدخول",Logout:"تسجيل الخروج",InformationPanel:"لوحة المعلومات",AccountSettings:"إعدادات الحساب",Chat:"تواصل معنا",TechnicalSupport:"الدعم الفني",FullName:"الاسم الكامل",PersonalInformation:"المعلومات الشخصية",TicketInformation:"معلومات التذكرة",TicketDetails:"تفاصيل التذكرة",Title:"العنوان",Description:"الوصف",Enter:"ادخل",AddSupportingFiles:"أرفق ملفات داعمة",Send:"إرسال",Submit:"إرسال الطلب",Cancel:"إلغاء",Main:"الرئيسية",Select:"اختر",NotRobot:"الرجاء التحقق",Search:"بحث",Number:"الرقم",Date:"التاريخ",hijriCalendar:"التاريخ الهجري",male:"ذكر",female:"أنثى",submit:"ارسال",next:"التالي",previous:"السابق",morePages:"المزيد",Total:"الإجمالي",YearTitle:"السنة",MonthTitle:"الشهر",PaginationDesc:"الصفحة {0} من {1}",LinesPerPage:"عدد السطور بالصفحة",Actions:"الإجراءات",ViewDetails:"عرض التفاصيل",Language:"اللغة",Specify:"حدد",ServerError:"عفوًا، حدث خطأ ما",BackToHome:"العودة للصفحة الرئيسية",NoDataFound:"لا توجد بيانات",showResults:"عرض النتائج",reset:"إعادة التعيين",CopiedSuccessfully:"تم النسخ بنجاح",comma:"،",accessibilityTools:"أداة سهولة الوصول",sortBy:"تصنيف حسب",siteLanguageText:"English",lightMode:"الوضع الفاتح",darkMode:"الوضع الداكن",showLess:"أظهر أقل",showMore:"أظهر أكثر",noResultsFound:"لا توجد نتائج",Clear:"مسح"},Footer:{KSA:"وزارة التعليم - المملكة العربية السعودية",TermsAndConditions:"الشروط والأحكام",PolicyAndPrivacy:"سياسة الخصوصية",RegulationsPolicies:"اللوائح والسياسات",Rights:" جميع الحقوق محفوظة لوزارة التعليم © {0}",Version:"نسخة رقم ",DevelopedByTetco:"تطوير وتشغيل شركة تطوير لتقنيات التعليم"},DragAndDrop:{SaveCustomization:"حفظ",Delete:"إزالة",Half:"تصغير",Full:"توسيع",Width:"العرض",Show:"اظهار",AddToDashboard:"تخصيص العرض"},Attachments:{error:"عفوًا، صيغة أو حجم المرفق غير مسموح بها",Attachments:"المرفقات",AddAttachment:"أرفق الملفات",dragFiles:"اسحب و أفلت الملفات هنا للرفع",browseFile:"تصفح الملفات",uploadFiles:"رفع المرفقات",allowedFormats:"وتشمل الصيغ المدعومة {0}",maxSize:"الحد الأقصى لحجم الملف المسموح به هو {0} ميجابايت",ApplyFile:"تقديم الملف",maxAcceptedFilesCount:"أقصى عدد من الملفات التي يمكنك إرفاقها هنا هو {0} ملفات",attachedFile:"مرفق ملف"},Accessibility:{Accessibility:"تمكين الوصول",FontSize:"حجم الخط",IncreaseFontSize:"تكبير حجم الخط",DecreaseFontSize:"تصغير حجم الخط",ColorContrast:"تباين الألوان",SignLanguage:"دعم لغة الإشارة",VoiceCommands:"الأوامر الصوتية"},DigitalSignatureContent:{secureTitle:"المواقع الالكترونية الحكومية تستخدم بروتوكول {0} للتشفير و الأمان.",secureDesc:"المواقع الالكترونية الآمنة في المملكة العربية السعودية تستخدم بروتوكول HTTPS للتشفير.",registered:"مسجل لدى هيئة الحكومة الرقمية برقم :",howCheck:"كيف تتحقق؟",officialSite:"موقع حكومي رسمي تابع لحكومة المملكة العربية السعودية",govSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",govSaDesc:"جميع روابط المواقع الرسمية التابعة للجهات الحكومية في المملكة العربية السعودية تنتهي بـ .gov.sa",eduSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",eduSaDesc:"جميع روابط المواقع الرسمية التعليمية في المملكة العربية السعودية تنتهي بـ sch.sa أو edu.sa",orgSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",orgSaDesc:"جميع روابط المواقع الرسمية للمؤسسات الغير ربحية في المملكة العربية السعودية تنتهي بـ org.sa",saTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",saDesc:"جميع روابط المواقع الرسمية للأنشطة والمبادرات في المملكة العربية السعودية تنتهي بـ sa.",schSaTitle:"روابط المواقع الالكترونية الرسمية السعودية تنتهي بـ {0} ",schSaDesc:"جميع روابط المواقع الرسمية التعليمية في المملكة العربية السعودية تنتهي بـ sch.sa أو edu.sa"}};exports.ar=e;
package/index.cjs98.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=new Map,v=d=>{const a=y.get(d);return a?Object.fromEntries(Object.entries(a.stores).map(([i,c])=>[i,c.getState()])):{}},O=(d,a,i)=>{if(d===void 0)return{type:"untracked",connection:a.connect(i)};const c=y.get(i.name);if(c)return{type:"tracked",store:d,...c};const n={connection:a.connect(i),stores:{}};return y.set(i.name,n),{type:"tracked",store:d,...n}},R=(d,a={})=>(i,c,n)=>{const{enabled:A,anonymousActionType:C,store:r,...f}=a;let E;try{E=(A??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!E)return d(i,c,n);const{connection:t,...p}=O(r,E,f);let _=!0;n.setState=(o,l,e)=>{const s=i(o,l);if(!_)return s;const T=e===void 0?{type:C||"anonymous"}:typeof e=="string"?{type:e}:e;return r===void 0?(t==null||t.send(T,c()),s):(t==null||t.send({...T,type:`${r}/${T.type}`},{...v(f.name),[r]:n.getState()}),s)};const u=(...o)=>{const l=_;_=!1,i(...o),_=l},S=d(n.setState,c,n);if(p.type==="untracked"?t==null||t.init(S):(p.stores[p.store]=n,t==null||t.init(Object.fromEntries(Object.entries(p.stores).map(([o,l])=>[o,o===p.store?S:l.getState()])))),n.dispatchFromDevtools&&typeof n.dispatch=="function"){let o=!1;const l=n.dispatch;n.dispatch=(...e)=>{l(...e)}}return t.subscribe(o=>{var l;switch(o.type){case"ACTION":return typeof o.payload!="string"?void 0:I(o.payload,e=>{if(e.type==="__setState"){if(r===void 0){u(e.state);return}Object.keys(e.state).length;const s=e.state[r];if(s==null)return;JSON.stringify(n.getState())!==JSON.stringify(s)&&u(s);return}n.dispatchFromDevtools&&typeof n.dispatch=="function"&&n.dispatch(e)});case"DISPATCH":switch(o.payload.type){case"RESET":return u(S),r===void 0?t==null?void 0:t.init(n.getState()):t==null?void 0:t.init(v(f.name));case"COMMIT":if(r===void 0){t==null||t.init(n.getState());return}return t==null?void 0:t.init(v(f.name));case"ROLLBACK":return I(o.state,e=>{if(r===void 0){u(e),t==null||t.init(n.getState());return}u(e[r]),t==null||t.init(v(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return I(o.state,e=>{if(r===void 0){u(e);return}JSON.stringify(n.getState())!==JSON.stringify(e[r])&&u(e[r])});case"IMPORT_STATE":{const{nextLiftedState:e}=o.payload,s=(l=e.computedStates.slice(-1)[0])==null?void 0:l.state;if(!s)return;u(r===void 0?s:s[r]),t==null||t.send(null,e);return}case"PAUSE_RECORDING":return _=!_}return}}),S},h=R,I=(d,a)=>{let i;try{i=JSON.parse(d)}catch{}i!==void 0&&a(i)};exports.devtools=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} field size is {1} characters",required:"{0} is required"},Shared:{trialVersion:"Beta version",soon:"soon",NationalId:"National ID",ResidentID:"Resident ID",Welcome:"Hi ",Login:"Login",Logout:"Log out",InformationPanel:"Information Panel",AccountSettings:"Account Settings",Chat:"Chat Now",TechnicalSupport:"Technical Support",FullName:"Full Name",PersonalInformation:"Personal Information",TicketInformation:"Ticket Information",TicketDetails:"Ticket Details",Title:"Title",Description:"Description",Enter:"Enter",AddSupportingFiles:"Attachments",Send:"Submit",Submit:"Submit Request",Cancel:"Cancel",Main:"Home",Select:"Select",NotRobot:"Please verify you are not a robot",Search:"Search",Number:"Number",Date:"Date",hijriCalendar:"Hijri Calendar",male:"Male",female:"Female",submit:"Submit",next:"Next",previous:"Previous",morePages:"More pages",Total:"Total",YearTitle:"Year",MonthTitle:"Month",PaginationDesc:"Page {0} of {1}",LinesPerPage:"Lines per page",Actions:"Actions",ViewDetails:"View Details",Language:"Language",Specify:"Specify",ServerError:"Sorry, something went wrong",BackToHome:"Back to Main Page",NoDataFound:"No data found",showResults:"Show results",reset:"Reset",CopiedSuccessfully:"Copied successfully",comma:",",accessibilityTools:" Accessibility Tools",sortBy:"Sort by",siteLanguageText:"العربية",lightMode:"Light mode",darkMode:"Dark mode",showLess:"Show less",showMore:"Show more",noResultsFound:"No results found",Clear:"Clear"},Footer:{KSA:"Ministry of Education - Saudia Arabia",TermsAndConditions:"Terms & conditions",PolicyAndPrivacy:" Privacy policy",RegulationsPolicies:"Regulations & Policies",Rights:"All rights reserved to the Ministry of Education © {0}",Version:"Version ",DevelopedByTetco:"Developed and operated by Tatweer Educational Technologies Company"},DragAndDrop:{SaveCustomization:"Save",Delete:"Remove",Half:"Minimize",Full:"Expand",Width:"Width",Show:"Show",AddToDashboard:"Custom display"},Attachments:{error:"Sorry! The format or the size of the attachment is not allowed.",Attachments:"Attachments",AddAttachment:"Attach files",dragFiles:"Drag and drop files here to upload ",browseFile:"Browse Files",uploadFiles:"Upload Files",allowedFormats:"supported file formats include {0}",maxSize:"Maximum file size allowed is {0}MB",ApplyFile:"Apply File",maxAcceptedFilesCount:"the maximum number of files you can drop here {0} files",attachedFile:"Attached File"},Accessibility:{Accessibility:"Accessibility",FontSize:"Font size",IncreaseFontSize:"Increase font size",DecreaseFontSize:"Decrease font size",ColorContrast:"Color contrast",SignLanguage:"Sign language",VoiceCommands:"Voice commands"},DigitalSignatureContent:{secureTitle:"Government websites use the {0} protocol for encryption and security.",secureDesc:"Secure websites in the Kingdom of Saudi Arabia use the HTTPS protocol for encryption.",registered:"Registered with the Digital Government Authority under number :",howCheck:"How to verify?",officialSite:"Official government website of the Government of the Kingdom of Saudi Arabia",govSaTitle:"Official Saudi Government website URL ends with {0} ",govSaDesc:"Website belongs to an official government organization in the Kingdom of Saudi Arabia always ends with .gov.sa .",eduSaTitle:"Official Saudi Government website URL ends with {0} ",eduSaDesc:"Website belongs to an official educational in the Kingdom of Saudi Arabia always ends with .edu.sa or sch.sa .",orgSaTitle:"Official Saudi Government website URL ends with {0} ",orgSaDesc:"Website belongs to an official non-profit organizations in the Kingdom of Saudi Arabia always ends with .org.sa .",saTitle:"Official Saudi Government website URL ends with {0} ",saDesc:"Website belongs to an official activities and initiatives in the Kingdom of Saudi Arabia always ends with .sa .",schSaTitle:"Official Saudi Government website URL ends with {0} ",schSaDesc:"Website belongs to an official educational in the Kingdom of Saudi Arabia always ends with .edu.sa or sch.sa ."}};exports.en=e;
package/index.cjs99.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs106.js"),u=n=>(r,m,e)=>(e.setState=(t,i,...o)=>{const c=typeof t=="function"?s.produce(t):t;return r(c,i,...o)},n(e.setState,m,e)),S=u;exports.immer=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs182.js");const t=e.default("ExpandMore",[["path",{d:"M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z",key:"1h4imv"}]]);exports.default=t;