@citizenplatform/core 1.0.7 → 1.0.8

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 (2626) hide show
  1. package/dist/index.js +14253 -136
  2. package/dist/index.js.map +1 -0
  3. package/package.json +1 -1
  4. package/dist/assets/CctnsLogo.d.ts +0 -3
  5. package/dist/assets/CctnsLogo.d.ts.map +0 -1
  6. package/dist/assets/EmblemImage.d.ts +0 -3
  7. package/dist/assets/EmblemImage.d.ts.map +0 -1
  8. package/dist/assets/icons/CitizenServiceIcon.d.ts +0 -3
  9. package/dist/assets/icons/CitizenServiceIcon.d.ts.map +0 -1
  10. package/dist/assets/icons/CloseIcon.d.ts +0 -3
  11. package/dist/assets/icons/CloseIcon.d.ts.map +0 -1
  12. package/dist/assets/icons/ComplaintIcon.d.ts +0 -5
  13. package/dist/assets/icons/ComplaintIcon.d.ts.map +0 -1
  14. package/dist/assets/icons/DarkThemeDarkIcon.d.ts +0 -3
  15. package/dist/assets/icons/DarkThemeDarkIcon.d.ts.map +0 -1
  16. package/dist/assets/icons/DarkThemeLightIcon.d.ts +0 -3
  17. package/dist/assets/icons/DarkThemeLightIcon.d.ts.map +0 -1
  18. package/dist/assets/icons/DashboardIcon.d.ts +0 -3
  19. package/dist/assets/icons/DashboardIcon.d.ts.map +0 -1
  20. package/dist/assets/icons/ExpandMoreRoundedIcon.d.ts +0 -2
  21. package/dist/assets/icons/ExpandMoreRoundedIcon.d.ts.map +0 -1
  22. package/dist/assets/icons/LanguageIcon.d.ts +0 -3
  23. package/dist/assets/icons/LanguageIcon.d.ts.map +0 -1
  24. package/dist/assets/icons/MenuAccessibilityIcon.d.ts +0 -3
  25. package/dist/assets/icons/MenuAccessibilityIcon.d.ts.map +0 -1
  26. package/dist/assets/icons/NoDataIcon.d.ts +0 -3
  27. package/dist/assets/icons/NoDataIcon.d.ts.map +0 -1
  28. package/dist/assets/icons/PersonalInfoIcon.d.ts +0 -3
  29. package/dist/assets/icons/PersonalInfoIcon.d.ts.map +0 -1
  30. package/dist/assets/icons/ProtestIcon.d.ts +0 -5
  31. package/dist/assets/icons/ProtestIcon.d.ts.map +0 -1
  32. package/dist/assets/icons/SearchIconSvg.d.ts +0 -3
  33. package/dist/assets/icons/SearchIconSvg.d.ts.map +0 -1
  34. package/dist/assets/icons/autoSaveIcon.d.ts +0 -5
  35. package/dist/assets/icons/autoSaveIcon.d.ts.map +0 -1
  36. package/dist/assets/icons/bellIcon.d.ts +0 -3
  37. package/dist/assets/icons/bellIcon.d.ts.map +0 -1
  38. package/dist/assets/icons/calenderIcon.d.ts +0 -3
  39. package/dist/assets/icons/calenderIcon.d.ts.map +0 -1
  40. package/dist/assets/icons/grid-delete-icon.d.ts +0 -3
  41. package/dist/assets/icons/grid-delete-icon.d.ts.map +0 -1
  42. package/dist/assets/icons/grid-edit-icon.d.ts +0 -7
  43. package/dist/assets/icons/grid-edit-icon.d.ts.map +0 -1
  44. package/dist/assets/icons/grid-print-icon.d.ts +0 -3
  45. package/dist/assets/icons/grid-print-icon.d.ts.map +0 -1
  46. package/dist/assets/icons/grid-restore-icon.d.ts +0 -3
  47. package/dist/assets/icons/grid-restore-icon.d.ts.map +0 -1
  48. package/dist/assets/icons/grid-view-icon.d.ts +0 -3
  49. package/dist/assets/icons/grid-view-icon.d.ts.map +0 -1
  50. package/dist/assets/icons/icons.type.d.ts +0 -5
  51. package/dist/assets/icons/icons.type.d.ts.map +0 -1
  52. package/dist/assets/icons/upArrowIcon.d.ts +0 -3
  53. package/dist/assets/icons/upArrowIcon.d.ts.map +0 -1
  54. package/dist/index.d.ts +0 -2
  55. package/dist/index.d.ts.map +0 -1
  56. package/dist/index10.js +0 -39
  57. package/dist/index10.js.map +0 -1
  58. package/dist/index100.js +0 -16
  59. package/dist/index100.js.map +0 -1
  60. package/dist/index1000.js +0 -72
  61. package/dist/index1000.js.map +0 -1
  62. package/dist/index1001.js +0 -310
  63. package/dist/index1001.js.map +0 -1
  64. package/dist/index1002.js +0 -26
  65. package/dist/index1002.js.map +0 -1
  66. package/dist/index1003.js +0 -21
  67. package/dist/index1003.js.map +0 -1
  68. package/dist/index1004.js +0 -18
  69. package/dist/index1004.js.map +0 -1
  70. package/dist/index1005.js +0 -46
  71. package/dist/index1005.js.map +0 -1
  72. package/dist/index1006.js +0 -36
  73. package/dist/index1006.js.map +0 -1
  74. package/dist/index1007.js +0 -96
  75. package/dist/index1007.js.map +0 -1
  76. package/dist/index1008.js +0 -153
  77. package/dist/index1008.js.map +0 -1
  78. package/dist/index1009.js +0 -13
  79. package/dist/index1009.js.map +0 -1
  80. package/dist/index101.js +0 -130
  81. package/dist/index101.js.map +0 -1
  82. package/dist/index1010.js +0 -9
  83. package/dist/index1010.js.map +0 -1
  84. package/dist/index1011.js +0 -104
  85. package/dist/index1011.js.map +0 -1
  86. package/dist/index1012.js +0 -101
  87. package/dist/index1012.js.map +0 -1
  88. package/dist/index1013.js +0 -20
  89. package/dist/index1013.js.map +0 -1
  90. package/dist/index1014.js +0 -9
  91. package/dist/index1014.js.map +0 -1
  92. package/dist/index1015.js +0 -212
  93. package/dist/index1015.js.map +0 -1
  94. package/dist/index1016.js +0 -60
  95. package/dist/index1016.js.map +0 -1
  96. package/dist/index1017.js +0 -15
  97. package/dist/index1017.js.map +0 -1
  98. package/dist/index1018.js +0 -58
  99. package/dist/index1018.js.map +0 -1
  100. package/dist/index1019.js +0 -9
  101. package/dist/index1019.js.map +0 -1
  102. package/dist/index102.js +0 -7
  103. package/dist/index102.js.map +0 -1
  104. package/dist/index1020.js +0 -9
  105. package/dist/index1020.js.map +0 -1
  106. package/dist/index1021.js +0 -9
  107. package/dist/index1021.js.map +0 -1
  108. package/dist/index1022.js +0 -57
  109. package/dist/index1022.js.map +0 -1
  110. package/dist/index1023.js +0 -33
  111. package/dist/index1023.js.map +0 -1
  112. package/dist/index1024.js +0 -161
  113. package/dist/index1024.js.map +0 -1
  114. package/dist/index1025.js +0 -175
  115. package/dist/index1025.js.map +0 -1
  116. package/dist/index1026.js +0 -57
  117. package/dist/index1026.js.map +0 -1
  118. package/dist/index1027.js +0 -21
  119. package/dist/index1027.js.map +0 -1
  120. package/dist/index1028.js +0 -81
  121. package/dist/index1028.js.map +0 -1
  122. package/dist/index1029.js +0 -18
  123. package/dist/index1029.js.map +0 -1
  124. package/dist/index103.js +0 -32
  125. package/dist/index103.js.map +0 -1
  126. package/dist/index1030.js +0 -94
  127. package/dist/index1030.js.map +0 -1
  128. package/dist/index1031.js +0 -37
  129. package/dist/index1031.js.map +0 -1
  130. package/dist/index1032.js +0 -20
  131. package/dist/index1032.js.map +0 -1
  132. package/dist/index1033.js +0 -16
  133. package/dist/index1033.js.map +0 -1
  134. package/dist/index1034.js +0 -11
  135. package/dist/index1034.js.map +0 -1
  136. package/dist/index1035.js +0 -54
  137. package/dist/index1035.js.map +0 -1
  138. package/dist/index1036.js +0 -18
  139. package/dist/index1036.js.map +0 -1
  140. package/dist/index1037.js +0 -181
  141. package/dist/index1037.js.map +0 -1
  142. package/dist/index1038.js +0 -11
  143. package/dist/index1038.js.map +0 -1
  144. package/dist/index1039.js +0 -55
  145. package/dist/index1039.js.map +0 -1
  146. package/dist/index104.js +0 -10
  147. package/dist/index104.js.map +0 -1
  148. package/dist/index1040.js +0 -9
  149. package/dist/index1040.js.map +0 -1
  150. package/dist/index1041.js +0 -9
  151. package/dist/index1041.js.map +0 -1
  152. package/dist/index1042.js +0 -20
  153. package/dist/index1042.js.map +0 -1
  154. package/dist/index1043.js +0 -163
  155. package/dist/index1043.js.map +0 -1
  156. package/dist/index1044.js +0 -97
  157. package/dist/index1044.js.map +0 -1
  158. package/dist/index1045.js +0 -30
  159. package/dist/index1045.js.map +0 -1
  160. package/dist/index1046.js +0 -115
  161. package/dist/index1046.js.map +0 -1
  162. package/dist/index1047.js +0 -36
  163. package/dist/index1047.js.map +0 -1
  164. package/dist/index1048.js +0 -9
  165. package/dist/index1048.js.map +0 -1
  166. package/dist/index1049.js +0 -9
  167. package/dist/index1049.js.map +0 -1
  168. package/dist/index105.js +0 -16
  169. package/dist/index105.js.map +0 -1
  170. package/dist/index1050.js +0 -9
  171. package/dist/index1050.js.map +0 -1
  172. package/dist/index1051.js +0 -139
  173. package/dist/index1051.js.map +0 -1
  174. package/dist/index1052.js +0 -63
  175. package/dist/index1052.js.map +0 -1
  176. package/dist/index1053.js +0 -64
  177. package/dist/index1053.js.map +0 -1
  178. package/dist/index1054.js +0 -63
  179. package/dist/index1054.js.map +0 -1
  180. package/dist/index1055.js +0 -42
  181. package/dist/index1056.js +0 -78
  182. package/dist/index1056.js.map +0 -1
  183. package/dist/index1057.js +0 -94
  184. package/dist/index1057.js.map +0 -1
  185. package/dist/index1058.js +0 -175
  186. package/dist/index1058.js.map +0 -1
  187. package/dist/index1059.js +0 -89
  188. package/dist/index1059.js.map +0 -1
  189. package/dist/index106.js +0 -8
  190. package/dist/index106.js.map +0 -1
  191. package/dist/index1060.js +0 -311
  192. package/dist/index1060.js.map +0 -1
  193. package/dist/index1061.js +0 -139
  194. package/dist/index1061.js.map +0 -1
  195. package/dist/index1062.js +0 -33
  196. package/dist/index1062.js.map +0 -1
  197. package/dist/index1063.js +0 -62
  198. package/dist/index1063.js.map +0 -1
  199. package/dist/index1064.js +0 -36
  200. package/dist/index1064.js.map +0 -1
  201. package/dist/index1065.js +0 -42
  202. package/dist/index1065.js.map +0 -1
  203. package/dist/index1066.js +0 -68
  204. package/dist/index1066.js.map +0 -1
  205. package/dist/index1067.js +0 -81
  206. package/dist/index1067.js.map +0 -1
  207. package/dist/index1068.js +0 -134
  208. package/dist/index1068.js.map +0 -1
  209. package/dist/index1069.js +0 -111
  210. package/dist/index1069.js.map +0 -1
  211. package/dist/index107.js +0 -80
  212. package/dist/index107.js.map +0 -1
  213. package/dist/index1070.js +0 -64
  214. package/dist/index1070.js.map +0 -1
  215. package/dist/index1071.js +0 -36
  216. package/dist/index1071.js.map +0 -1
  217. package/dist/index1072.js +0 -8
  218. package/dist/index1072.js.map +0 -1
  219. package/dist/index1073.js +0 -177
  220. package/dist/index1073.js.map +0 -1
  221. package/dist/index1074.js +0 -58
  222. package/dist/index1074.js.map +0 -1
  223. package/dist/index1075.js +0 -87
  224. package/dist/index1075.js.map +0 -1
  225. package/dist/index1076.js +0 -170
  226. package/dist/index1076.js.map +0 -1
  227. package/dist/index1077.js +0 -6
  228. package/dist/index1077.js.map +0 -1
  229. package/dist/index1078.js +0 -106
  230. package/dist/index1078.js.map +0 -1
  231. package/dist/index1079.js +0 -79
  232. package/dist/index1079.js.map +0 -1
  233. package/dist/index108.js +0 -8
  234. package/dist/index108.js.map +0 -1
  235. package/dist/index1080.js +0 -148
  236. package/dist/index1080.js.map +0 -1
  237. package/dist/index1081.js +0 -50
  238. package/dist/index1081.js.map +0 -1
  239. package/dist/index1082.js +0 -44
  240. package/dist/index1082.js.map +0 -1
  241. package/dist/index1083.js +0 -96
  242. package/dist/index1083.js.map +0 -1
  243. package/dist/index1084.js +0 -86
  244. package/dist/index1084.js.map +0 -1
  245. package/dist/index1085.js +0 -18
  246. package/dist/index1085.js.map +0 -1
  247. package/dist/index1086.js +0 -112
  248. package/dist/index1086.js.map +0 -1
  249. package/dist/index1087.js +0 -29
  250. package/dist/index1087.js.map +0 -1
  251. package/dist/index1088.js +0 -42
  252. package/dist/index1088.js.map +0 -1
  253. package/dist/index1089.js +0 -14
  254. package/dist/index1089.js.map +0 -1
  255. package/dist/index109.js +0 -122
  256. package/dist/index109.js.map +0 -1
  257. package/dist/index1090.js +0 -59
  258. package/dist/index1090.js.map +0 -1
  259. package/dist/index1091.js +0 -116
  260. package/dist/index1091.js.map +0 -1
  261. package/dist/index1092.js +0 -61
  262. package/dist/index1092.js.map +0 -1
  263. package/dist/index1093.js +0 -86
  264. package/dist/index1093.js.map +0 -1
  265. package/dist/index1094.js +0 -26
  266. package/dist/index1094.js.map +0 -1
  267. package/dist/index1095.js +0 -66
  268. package/dist/index1095.js.map +0 -1
  269. package/dist/index1096.js +0 -116
  270. package/dist/index1096.js.map +0 -1
  271. package/dist/index1097.js +0 -67
  272. package/dist/index1097.js.map +0 -1
  273. package/dist/index1098.js +0 -48
  274. package/dist/index1098.js.map +0 -1
  275. package/dist/index1099.js +0 -57
  276. package/dist/index1099.js.map +0 -1
  277. package/dist/index11.js +0 -30
  278. package/dist/index11.js.map +0 -1
  279. package/dist/index110.js +0 -13
  280. package/dist/index110.js.map +0 -1
  281. package/dist/index1100.js +0 -34
  282. package/dist/index1100.js.map +0 -1
  283. package/dist/index1101.js +0 -40
  284. package/dist/index1101.js.map +0 -1
  285. package/dist/index1102.js +0 -48
  286. package/dist/index1102.js.map +0 -1
  287. package/dist/index1103.js +0 -47
  288. package/dist/index1104.js +0 -2
  289. package/dist/index1105.js +0 -2
  290. package/dist/index1106.js +0 -1
  291. package/dist/index1107.js +0 -10
  292. package/dist/index1108.js +0 -53
  293. package/dist/index1108.js.map +0 -1
  294. package/dist/index1109.js +0 -4
  295. package/dist/index111.js +0 -22
  296. package/dist/index111.js.map +0 -1
  297. package/dist/index1110.js +0 -9
  298. package/dist/index1110.js.map +0 -1
  299. package/dist/index1111.js +0 -2
  300. package/dist/index1112.js +0 -113
  301. package/dist/index1113.js +0 -137
  302. package/dist/index112.js +0 -35
  303. package/dist/index112.js.map +0 -1
  304. package/dist/index113.js +0 -22
  305. package/dist/index113.js.map +0 -1
  306. package/dist/index114.js +0 -14
  307. package/dist/index114.js.map +0 -1
  308. package/dist/index115.js +0 -13
  309. package/dist/index115.js.map +0 -1
  310. package/dist/index116.js +0 -42
  311. package/dist/index116.js.map +0 -1
  312. package/dist/index117.js +0 -66
  313. package/dist/index117.js.map +0 -1
  314. package/dist/index118.js +0 -10
  315. package/dist/index118.js.map +0 -1
  316. package/dist/index119.js +0 -17
  317. package/dist/index119.js.map +0 -1
  318. package/dist/index12.js +0 -20
  319. package/dist/index12.js.map +0 -1
  320. package/dist/index120.js +0 -9
  321. package/dist/index120.js.map +0 -1
  322. package/dist/index121.js +0 -22
  323. package/dist/index121.js.map +0 -1
  324. package/dist/index122.js +0 -101
  325. package/dist/index122.js.map +0 -1
  326. package/dist/index123.js +0 -150
  327. package/dist/index123.js.map +0 -1
  328. package/dist/index124.js +0 -119
  329. package/dist/index124.js.map +0 -1
  330. package/dist/index125.js +0 -46
  331. package/dist/index125.js.map +0 -1
  332. package/dist/index126.js +0 -9
  333. package/dist/index126.js.map +0 -1
  334. package/dist/index127.js +0 -21
  335. package/dist/index127.js.map +0 -1
  336. package/dist/index128.js +0 -21
  337. package/dist/index128.js.map +0 -1
  338. package/dist/index129.js +0 -21
  339. package/dist/index129.js.map +0 -1
  340. package/dist/index13.js +0 -58
  341. package/dist/index13.js.map +0 -1
  342. package/dist/index130.js +0 -21
  343. package/dist/index130.js.map +0 -1
  344. package/dist/index131.js +0 -21
  345. package/dist/index131.js.map +0 -1
  346. package/dist/index132.js +0 -21
  347. package/dist/index132.js.map +0 -1
  348. package/dist/index133.js +0 -21
  349. package/dist/index133.js.map +0 -1
  350. package/dist/index134.js +0 -219
  351. package/dist/index134.js.map +0 -1
  352. package/dist/index135.js +0 -12
  353. package/dist/index135.js.map +0 -1
  354. package/dist/index136.js +0 -15
  355. package/dist/index136.js.map +0 -1
  356. package/dist/index137.js +0 -55
  357. package/dist/index137.js.map +0 -1
  358. package/dist/index138.js +0 -38
  359. package/dist/index138.js.map +0 -1
  360. package/dist/index139.js +0 -52
  361. package/dist/index139.js.map +0 -1
  362. package/dist/index14.js +0 -254
  363. package/dist/index14.js.map +0 -1
  364. package/dist/index140.js +0 -12
  365. package/dist/index140.js.map +0 -1
  366. package/dist/index141.js +0 -15
  367. package/dist/index141.js.map +0 -1
  368. package/dist/index142.js +0 -28
  369. package/dist/index142.js.map +0 -1
  370. package/dist/index143.js +0 -111
  371. package/dist/index143.js.map +0 -1
  372. package/dist/index144.js +0 -9
  373. package/dist/index144.js.map +0 -1
  374. package/dist/index145.js +0 -38
  375. package/dist/index145.js.map +0 -1
  376. package/dist/index146.js +0 -8
  377. package/dist/index146.js.map +0 -1
  378. package/dist/index147.js +0 -10
  379. package/dist/index147.js.map +0 -1
  380. package/dist/index148.js +0 -31
  381. package/dist/index148.js.map +0 -1
  382. package/dist/index149.js +0 -165
  383. package/dist/index149.js.map +0 -1
  384. package/dist/index15.js +0 -250
  385. package/dist/index15.js.map +0 -1
  386. package/dist/index150.js +0 -48
  387. package/dist/index150.js.map +0 -1
  388. package/dist/index151.js +0 -11
  389. package/dist/index151.js.map +0 -1
  390. package/dist/index152.js +0 -20
  391. package/dist/index152.js.map +0 -1
  392. package/dist/index153.js +0 -10
  393. package/dist/index153.js.map +0 -1
  394. package/dist/index154.js +0 -21
  395. package/dist/index154.js.map +0 -1
  396. package/dist/index155.js +0 -8
  397. package/dist/index155.js.map +0 -1
  398. package/dist/index156.js +0 -8
  399. package/dist/index156.js.map +0 -1
  400. package/dist/index157.js +0 -16
  401. package/dist/index157.js.map +0 -1
  402. package/dist/index158.js +0 -29
  403. package/dist/index158.js.map +0 -1
  404. package/dist/index159.js +0 -14
  405. package/dist/index159.js.map +0 -1
  406. package/dist/index16.js +0 -20
  407. package/dist/index16.js.map +0 -1
  408. package/dist/index160.js +0 -8
  409. package/dist/index160.js.map +0 -1
  410. package/dist/index161.js +0 -9
  411. package/dist/index161.js.map +0 -1
  412. package/dist/index162.js +0 -124
  413. package/dist/index162.js.map +0 -1
  414. package/dist/index163.js +0 -9
  415. package/dist/index163.js.map +0 -1
  416. package/dist/index164.js +0 -18
  417. package/dist/index164.js.map +0 -1
  418. package/dist/index165.js +0 -8
  419. package/dist/index165.js.map +0 -1
  420. package/dist/index166.js +0 -14
  421. package/dist/index166.js.map +0 -1
  422. package/dist/index167.js +0 -28
  423. package/dist/index167.js.map +0 -1
  424. package/dist/index168.js +0 -8
  425. package/dist/index168.js.map +0 -1
  426. package/dist/index169.js +0 -7
  427. package/dist/index169.js.map +0 -1
  428. package/dist/index17.js +0 -77
  429. package/dist/index17.js.map +0 -1
  430. package/dist/index170.js +0 -16
  431. package/dist/index170.js.map +0 -1
  432. package/dist/index171.js +0 -18
  433. package/dist/index171.js.map +0 -1
  434. package/dist/index172.js +0 -7
  435. package/dist/index172.js.map +0 -1
  436. package/dist/index173.js +0 -22
  437. package/dist/index173.js.map +0 -1
  438. package/dist/index174.js +0 -7
  439. package/dist/index174.js.map +0 -1
  440. package/dist/index175.js +0 -8
  441. package/dist/index175.js.map +0 -1
  442. package/dist/index176.js +0 -8
  443. package/dist/index176.js.map +0 -1
  444. package/dist/index177.js +0 -7
  445. package/dist/index177.js.map +0 -1
  446. package/dist/index178.js +0 -10
  447. package/dist/index178.js.map +0 -1
  448. package/dist/index179.js +0 -7
  449. package/dist/index179.js.map +0 -1
  450. package/dist/index18.js +0 -96
  451. package/dist/index18.js.map +0 -1
  452. package/dist/index180.js +0 -14
  453. package/dist/index180.js.map +0 -1
  454. package/dist/index181.js +0 -27
  455. package/dist/index181.js.map +0 -1
  456. package/dist/index182.js +0 -9
  457. package/dist/index182.js.map +0 -1
  458. package/dist/index183.js +0 -44
  459. package/dist/index183.js.map +0 -1
  460. package/dist/index184.js +0 -401
  461. package/dist/index184.js.map +0 -1
  462. package/dist/index185.js +0 -24
  463. package/dist/index185.js.map +0 -1
  464. package/dist/index186.js +0 -22
  465. package/dist/index186.js.map +0 -1
  466. package/dist/index187.js +0 -21
  467. package/dist/index187.js.map +0 -1
  468. package/dist/index188.js +0 -20
  469. package/dist/index188.js.map +0 -1
  470. package/dist/index189.js +0 -19
  471. package/dist/index189.js.map +0 -1
  472. package/dist/index19.js +0 -25
  473. package/dist/index19.js.map +0 -1
  474. package/dist/index190.js +0 -16
  475. package/dist/index190.js.map +0 -1
  476. package/dist/index191.js +0 -19
  477. package/dist/index191.js.map +0 -1
  478. package/dist/index192.js +0 -26
  479. package/dist/index192.js.map +0 -1
  480. package/dist/index193.js +0 -19
  481. package/dist/index193.js.map +0 -1
  482. package/dist/index194.js +0 -22
  483. package/dist/index194.js.map +0 -1
  484. package/dist/index195.js +0 -47
  485. package/dist/index195.js.map +0 -1
  486. package/dist/index196.js +0 -64
  487. package/dist/index196.js.map +0 -1
  488. package/dist/index197.js +0 -17
  489. package/dist/index197.js.map +0 -1
  490. package/dist/index198.js +0 -56
  491. package/dist/index198.js.map +0 -1
  492. package/dist/index199.js +0 -73
  493. package/dist/index199.js.map +0 -1
  494. package/dist/index2.js +0 -16
  495. package/dist/index20.js +0 -30
  496. package/dist/index20.js.map +0 -1
  497. package/dist/index200.js +0 -26
  498. package/dist/index200.js.map +0 -1
  499. package/dist/index201.js +0 -14
  500. package/dist/index201.js.map +0 -1
  501. package/dist/index202.js +0 -3
  502. package/dist/index203.js +0 -17
  503. package/dist/index203.js.map +0 -1
  504. package/dist/index204.js +0 -69
  505. package/dist/index204.js.map +0 -1
  506. package/dist/index205.js +0 -4
  507. package/dist/index206.js +0 -16
  508. package/dist/index206.js.map +0 -1
  509. package/dist/index207.js +0 -47
  510. package/dist/index207.js.map +0 -1
  511. package/dist/index208.js +0 -69
  512. package/dist/index208.js.map +0 -1
  513. package/dist/index209.js +0 -26
  514. package/dist/index209.js.map +0 -1
  515. package/dist/index21.js +0 -51
  516. package/dist/index21.js.map +0 -1
  517. package/dist/index210.js +0 -33
  518. package/dist/index210.js.map +0 -1
  519. package/dist/index211.js +0 -52
  520. package/dist/index211.js.map +0 -1
  521. package/dist/index212.js +0 -20
  522. package/dist/index212.js.map +0 -1
  523. package/dist/index213.js +0 -19
  524. package/dist/index213.js.map +0 -1
  525. package/dist/index214.js +0 -62
  526. package/dist/index214.js.map +0 -1
  527. package/dist/index215.js +0 -118
  528. package/dist/index215.js.map +0 -1
  529. package/dist/index216.js +0 -25
  530. package/dist/index216.js.map +0 -1
  531. package/dist/index217.js +0 -15
  532. package/dist/index217.js.map +0 -1
  533. package/dist/index218.js +0 -19
  534. package/dist/index218.js.map +0 -1
  535. package/dist/index219.js +0 -13
  536. package/dist/index219.js.map +0 -1
  537. package/dist/index22.js +0 -4
  538. package/dist/index220.js +0 -10
  539. package/dist/index220.js.map +0 -1
  540. package/dist/index221.js +0 -7
  541. package/dist/index221.js.map +0 -1
  542. package/dist/index222.js +0 -9
  543. package/dist/index223.js +0 -10
  544. package/dist/index223.js.map +0 -1
  545. package/dist/index224.js +0 -45
  546. package/dist/index224.js.map +0 -1
  547. package/dist/index225.js +0 -48
  548. package/dist/index225.js.map +0 -1
  549. package/dist/index226.js +0 -124
  550. package/dist/index226.js.map +0 -1
  551. package/dist/index227.js +0 -62
  552. package/dist/index227.js.map +0 -1
  553. package/dist/index228.js +0 -2
  554. package/dist/index229.js +0 -10
  555. package/dist/index229.js.map +0 -1
  556. package/dist/index23.js +0 -63
  557. package/dist/index23.js.map +0 -1
  558. package/dist/index230.js +0 -9
  559. package/dist/index230.js.map +0 -1
  560. package/dist/index231.js +0 -21
  561. package/dist/index231.js.map +0 -1
  562. package/dist/index232.js +0 -27
  563. package/dist/index232.js.map +0 -1
  564. package/dist/index233.js +0 -12
  565. package/dist/index233.js.map +0 -1
  566. package/dist/index234.js +0 -32
  567. package/dist/index234.js.map +0 -1
  568. package/dist/index235.js +0 -11
  569. package/dist/index236.js +0 -37
  570. package/dist/index237.js +0 -27
  571. package/dist/index237.js.map +0 -1
  572. package/dist/index238.js +0 -22
  573. package/dist/index238.js.map +0 -1
  574. package/dist/index239.js +0 -149
  575. package/dist/index239.js.map +0 -1
  576. package/dist/index24.js +0 -9
  577. package/dist/index24.js.map +0 -1
  578. package/dist/index240.js +0 -20
  579. package/dist/index240.js.map +0 -1
  580. package/dist/index241.js +0 -9
  581. package/dist/index241.js.map +0 -1
  582. package/dist/index242.js +0 -65
  583. package/dist/index242.js.map +0 -1
  584. package/dist/index243.js +0 -9
  585. package/dist/index243.js.map +0 -1
  586. package/dist/index244.js +0 -9
  587. package/dist/index244.js.map +0 -1
  588. package/dist/index245.js +0 -63
  589. package/dist/index245.js.map +0 -1
  590. package/dist/index246.js +0 -35
  591. package/dist/index246.js.map +0 -1
  592. package/dist/index247.js +0 -9
  593. package/dist/index247.js.map +0 -1
  594. package/dist/index248.js +0 -9
  595. package/dist/index248.js.map +0 -1
  596. package/dist/index249.js +0 -14
  597. package/dist/index249.js.map +0 -1
  598. package/dist/index25.js +0 -6
  599. package/dist/index250.js +0 -7
  600. package/dist/index250.js.map +0 -1
  601. package/dist/index251.js +0 -62
  602. package/dist/index251.js.map +0 -1
  603. package/dist/index252.js +0 -89
  604. package/dist/index252.js.map +0 -1
  605. package/dist/index253.js +0 -18
  606. package/dist/index253.js.map +0 -1
  607. package/dist/index254.js +0 -8
  608. package/dist/index254.js.map +0 -1
  609. package/dist/index255.js +0 -27
  610. package/dist/index255.js.map +0 -1
  611. package/dist/index256.js +0 -38
  612. package/dist/index256.js.map +0 -1
  613. package/dist/index257.js +0 -17
  614. package/dist/index257.js.map +0 -1
  615. package/dist/index258.js +0 -54
  616. package/dist/index258.js.map +0 -1
  617. package/dist/index259.js +0 -27
  618. package/dist/index259.js.map +0 -1
  619. package/dist/index26.js +0 -11
  620. package/dist/index26.js.map +0 -1
  621. package/dist/index260.js +0 -227
  622. package/dist/index260.js.map +0 -1
  623. package/dist/index261.js +0 -113
  624. package/dist/index261.js.map +0 -1
  625. package/dist/index262.js +0 -15
  626. package/dist/index262.js.map +0 -1
  627. package/dist/index263.js +0 -9
  628. package/dist/index263.js.map +0 -1
  629. package/dist/index264.js +0 -12
  630. package/dist/index264.js.map +0 -1
  631. package/dist/index265.js +0 -12
  632. package/dist/index265.js.map +0 -1
  633. package/dist/index266.js +0 -56
  634. package/dist/index266.js.map +0 -1
  635. package/dist/index267.js +0 -14
  636. package/dist/index267.js.map +0 -1
  637. package/dist/index268.js +0 -12
  638. package/dist/index268.js.map +0 -1
  639. package/dist/index269.js +0 -16
  640. package/dist/index269.js.map +0 -1
  641. package/dist/index27.js +0 -9
  642. package/dist/index27.js.map +0 -1
  643. package/dist/index270.js +0 -33
  644. package/dist/index270.js.map +0 -1
  645. package/dist/index271.js +0 -172
  646. package/dist/index271.js.map +0 -1
  647. package/dist/index272.js +0 -15
  648. package/dist/index272.js.map +0 -1
  649. package/dist/index273.js +0 -9
  650. package/dist/index273.js.map +0 -1
  651. package/dist/index274.js +0 -12
  652. package/dist/index274.js.map +0 -1
  653. package/dist/index275.js +0 -12
  654. package/dist/index275.js.map +0 -1
  655. package/dist/index276.js +0 -44
  656. package/dist/index276.js.map +0 -1
  657. package/dist/index277.js +0 -8
  658. package/dist/index277.js.map +0 -1
  659. package/dist/index278.js +0 -20
  660. package/dist/index278.js.map +0 -1
  661. package/dist/index279.js +0 -10
  662. package/dist/index279.js.map +0 -1
  663. package/dist/index28.js +0 -6
  664. package/dist/index28.js.map +0 -1
  665. package/dist/index280.js +0 -7
  666. package/dist/index280.js.map +0 -1
  667. package/dist/index281.js +0 -7
  668. package/dist/index281.js.map +0 -1
  669. package/dist/index282.js +0 -7
  670. package/dist/index282.js.map +0 -1
  671. package/dist/index283.js +0 -17
  672. package/dist/index283.js.map +0 -1
  673. package/dist/index284.js +0 -7
  674. package/dist/index284.js.map +0 -1
  675. package/dist/index285.js +0 -8
  676. package/dist/index285.js.map +0 -1
  677. package/dist/index286.js +0 -8
  678. package/dist/index286.js.map +0 -1
  679. package/dist/index287.js +0 -10
  680. package/dist/index287.js.map +0 -1
  681. package/dist/index288.js +0 -7
  682. package/dist/index288.js.map +0 -1
  683. package/dist/index289.js +0 -32
  684. package/dist/index289.js.map +0 -1
  685. package/dist/index29.js +0 -14
  686. package/dist/index29.js.map +0 -1
  687. package/dist/index290.js +0 -8
  688. package/dist/index290.js.map +0 -1
  689. package/dist/index291.js +0 -8
  690. package/dist/index291.js.map +0 -1
  691. package/dist/index292.js +0 -47
  692. package/dist/index292.js.map +0 -1
  693. package/dist/index293.js +0 -13
  694. package/dist/index293.js.map +0 -1
  695. package/dist/index294.js +0 -24
  696. package/dist/index294.js.map +0 -1
  697. package/dist/index295.js +0 -87
  698. package/dist/index295.js.map +0 -1
  699. package/dist/index296.js +0 -12
  700. package/dist/index296.js.map +0 -1
  701. package/dist/index297.js +0 -44
  702. package/dist/index297.js.map +0 -1
  703. package/dist/index298.js +0 -11
  704. package/dist/index298.js.map +0 -1
  705. package/dist/index299.js +0 -27
  706. package/dist/index299.js.map +0 -1
  707. package/dist/index3.js +0 -88
  708. package/dist/index3.js.map +0 -1
  709. package/dist/index30.js +0 -41
  710. package/dist/index30.js.map +0 -1
  711. package/dist/index300.js +0 -48
  712. package/dist/index300.js.map +0 -1
  713. package/dist/index301.js +0 -15
  714. package/dist/index301.js.map +0 -1
  715. package/dist/index302.js +0 -61
  716. package/dist/index302.js.map +0 -1
  717. package/dist/index303.js +0 -300
  718. package/dist/index303.js.map +0 -1
  719. package/dist/index304.js +0 -15
  720. package/dist/index304.js.map +0 -1
  721. package/dist/index305.js +0 -201
  722. package/dist/index305.js.map +0 -1
  723. package/dist/index306.js +0 -21
  724. package/dist/index306.js.map +0 -1
  725. package/dist/index307.js +0 -228
  726. package/dist/index307.js.map +0 -1
  727. package/dist/index308.js +0 -29
  728. package/dist/index308.js.map +0 -1
  729. package/dist/index309.js +0 -223
  730. package/dist/index309.js.map +0 -1
  731. package/dist/index31.js +0 -6
  732. package/dist/index31.js.map +0 -1
  733. package/dist/index310.js +0 -9
  734. package/dist/index310.js.map +0 -1
  735. package/dist/index311.js +0 -19
  736. package/dist/index311.js.map +0 -1
  737. package/dist/index312.js +0 -9
  738. package/dist/index312.js.map +0 -1
  739. package/dist/index313.js +0 -128
  740. package/dist/index313.js.map +0 -1
  741. package/dist/index314.js +0 -27
  742. package/dist/index314.js.map +0 -1
  743. package/dist/index315.js +0 -64
  744. package/dist/index315.js.map +0 -1
  745. package/dist/index316.js +0 -49
  746. package/dist/index316.js.map +0 -1
  747. package/dist/index317.js +0 -17
  748. package/dist/index317.js.map +0 -1
  749. package/dist/index318.js +0 -11
  750. package/dist/index318.js.map +0 -1
  751. package/dist/index319.js +0 -25
  752. package/dist/index319.js.map +0 -1
  753. package/dist/index32.js +0 -39
  754. package/dist/index32.js.map +0 -1
  755. package/dist/index320.js +0 -11
  756. package/dist/index320.js.map +0 -1
  757. package/dist/index321.js +0 -85
  758. package/dist/index321.js.map +0 -1
  759. package/dist/index322.js +0 -21
  760. package/dist/index322.js.map +0 -1
  761. package/dist/index323.js +0 -236
  762. package/dist/index323.js.map +0 -1
  763. package/dist/index324.js +0 -15
  764. package/dist/index324.js.map +0 -1
  765. package/dist/index325.js +0 -78
  766. package/dist/index325.js.map +0 -1
  767. package/dist/index326.js +0 -55
  768. package/dist/index326.js.map +0 -1
  769. package/dist/index327.js +0 -39
  770. package/dist/index327.js.map +0 -1
  771. package/dist/index328.js +0 -27
  772. package/dist/index328.js.map +0 -1
  773. package/dist/index329.js +0 -34
  774. package/dist/index329.js.map +0 -1
  775. package/dist/index33.js +0 -110
  776. package/dist/index33.js.map +0 -1
  777. package/dist/index330.js +0 -21
  778. package/dist/index330.js.map +0 -1
  779. package/dist/index331.js +0 -285
  780. package/dist/index331.js.map +0 -1
  781. package/dist/index332.js +0 -9
  782. package/dist/index332.js.map +0 -1
  783. package/dist/index333.js +0 -17
  784. package/dist/index333.js.map +0 -1
  785. package/dist/index334.js +0 -14
  786. package/dist/index334.js.map +0 -1
  787. package/dist/index335.js +0 -14
  788. package/dist/index335.js.map +0 -1
  789. package/dist/index336.js +0 -229
  790. package/dist/index336.js.map +0 -1
  791. package/dist/index337.js +0 -24
  792. package/dist/index337.js.map +0 -1
  793. package/dist/index338.js +0 -228
  794. package/dist/index338.js.map +0 -1
  795. package/dist/index339.js +0 -11
  796. package/dist/index339.js.map +0 -1
  797. package/dist/index34.js +0 -97
  798. package/dist/index34.js.map +0 -1
  799. package/dist/index340.js +0 -65
  800. package/dist/index340.js.map +0 -1
  801. package/dist/index341.js +0 -18
  802. package/dist/index341.js.map +0 -1
  803. package/dist/index342.js +0 -26
  804. package/dist/index342.js.map +0 -1
  805. package/dist/index343.js +0 -139
  806. package/dist/index343.js.map +0 -1
  807. package/dist/index344.js +0 -14
  808. package/dist/index344.js.map +0 -1
  809. package/dist/index345.js +0 -8
  810. package/dist/index345.js.map +0 -1
  811. package/dist/index346.js +0 -8
  812. package/dist/index346.js.map +0 -1
  813. package/dist/index347.js +0 -8
  814. package/dist/index347.js.map +0 -1
  815. package/dist/index348.js +0 -13
  816. package/dist/index348.js.map +0 -1
  817. package/dist/index349.js +0 -193
  818. package/dist/index349.js.map +0 -1
  819. package/dist/index35.js +0 -22
  820. package/dist/index35.js.map +0 -1
  821. package/dist/index350.js +0 -18
  822. package/dist/index350.js.map +0 -1
  823. package/dist/index351.js +0 -7
  824. package/dist/index351.js.map +0 -1
  825. package/dist/index352.js +0 -9
  826. package/dist/index352.js.map +0 -1
  827. package/dist/index353.js +0 -7
  828. package/dist/index353.js.map +0 -1
  829. package/dist/index354.js +0 -16
  830. package/dist/index354.js.map +0 -1
  831. package/dist/index355.js +0 -94
  832. package/dist/index355.js.map +0 -1
  833. package/dist/index356.js +0 -141
  834. package/dist/index356.js.map +0 -1
  835. package/dist/index357.js +0 -15
  836. package/dist/index357.js.map +0 -1
  837. package/dist/index358.js +0 -23
  838. package/dist/index358.js.map +0 -1
  839. package/dist/index359.js +0 -213
  840. package/dist/index359.js.map +0 -1
  841. package/dist/index36.js +0 -18
  842. package/dist/index36.js.map +0 -1
  843. package/dist/index360.js +0 -11
  844. package/dist/index360.js.map +0 -1
  845. package/dist/index361.js +0 -11
  846. package/dist/index361.js.map +0 -1
  847. package/dist/index362.js +0 -134
  848. package/dist/index362.js.map +0 -1
  849. package/dist/index363.js +0 -36
  850. package/dist/index363.js.map +0 -1
  851. package/dist/index364.js +0 -291
  852. package/dist/index364.js.map +0 -1
  853. package/dist/index365.js +0 -18
  854. package/dist/index365.js.map +0 -1
  855. package/dist/index366.js +0 -33
  856. package/dist/index366.js.map +0 -1
  857. package/dist/index367.js +0 -225
  858. package/dist/index367.js.map +0 -1
  859. package/dist/index368.js +0 -11
  860. package/dist/index368.js.map +0 -1
  861. package/dist/index369.js +0 -114
  862. package/dist/index369.js.map +0 -1
  863. package/dist/index37.js +0 -11
  864. package/dist/index37.js.map +0 -1
  865. package/dist/index370.js +0 -22
  866. package/dist/index370.js.map +0 -1
  867. package/dist/index371.js +0 -24
  868. package/dist/index371.js.map +0 -1
  869. package/dist/index372.js +0 -23
  870. package/dist/index372.js.map +0 -1
  871. package/dist/index373.js +0 -34
  872. package/dist/index373.js.map +0 -1
  873. package/dist/index374.js +0 -228
  874. package/dist/index374.js.map +0 -1
  875. package/dist/index375.js +0 -36
  876. package/dist/index375.js.map +0 -1
  877. package/dist/index376.js +0 -20
  878. package/dist/index376.js.map +0 -1
  879. package/dist/index377.js +0 -165
  880. package/dist/index377.js.map +0 -1
  881. package/dist/index378.js +0 -20
  882. package/dist/index378.js.map +0 -1
  883. package/dist/index379.js +0 -18
  884. package/dist/index379.js.map +0 -1
  885. package/dist/index38.js +0 -192
  886. package/dist/index38.js.map +0 -1
  887. package/dist/index380.js +0 -144
  888. package/dist/index380.js.map +0 -1
  889. package/dist/index381.js +0 -167
  890. package/dist/index381.js.map +0 -1
  891. package/dist/index382.js +0 -59
  892. package/dist/index382.js.map +0 -1
  893. package/dist/index383.js +0 -51
  894. package/dist/index383.js.map +0 -1
  895. package/dist/index384.js +0 -67
  896. package/dist/index384.js.map +0 -1
  897. package/dist/index385.js +0 -15
  898. package/dist/index385.js.map +0 -1
  899. package/dist/index386.js +0 -21
  900. package/dist/index386.js.map +0 -1
  901. package/dist/index387.js +0 -122
  902. package/dist/index387.js.map +0 -1
  903. package/dist/index388.js +0 -24
  904. package/dist/index388.js.map +0 -1
  905. package/dist/index389.js +0 -129
  906. package/dist/index389.js.map +0 -1
  907. package/dist/index39.js +0 -64
  908. package/dist/index39.js.map +0 -1
  909. package/dist/index390.js +0 -25
  910. package/dist/index390.js.map +0 -1
  911. package/dist/index391.js +0 -218
  912. package/dist/index391.js.map +0 -1
  913. package/dist/index392.js +0 -130
  914. package/dist/index392.js.map +0 -1
  915. package/dist/index393.js +0 -18
  916. package/dist/index393.js.map +0 -1
  917. package/dist/index394.js +0 -194
  918. package/dist/index394.js.map +0 -1
  919. package/dist/index395.js +0 -17
  920. package/dist/index395.js.map +0 -1
  921. package/dist/index396.js +0 -16
  922. package/dist/index396.js.map +0 -1
  923. package/dist/index397.js +0 -27
  924. package/dist/index397.js.map +0 -1
  925. package/dist/index398.js +0 -15
  926. package/dist/index398.js.map +0 -1
  927. package/dist/index399.js +0 -158
  928. package/dist/index399.js.map +0 -1
  929. package/dist/index4.js +0 -63
  930. package/dist/index4.js.map +0 -1
  931. package/dist/index40.js +0 -84
  932. package/dist/index40.js.map +0 -1
  933. package/dist/index400.js +0 -15
  934. package/dist/index400.js.map +0 -1
  935. package/dist/index401.js +0 -333
  936. package/dist/index401.js.map +0 -1
  937. package/dist/index402.js +0 -17
  938. package/dist/index402.js.map +0 -1
  939. package/dist/index403.js +0 -121
  940. package/dist/index403.js.map +0 -1
  941. package/dist/index404.js +0 -147
  942. package/dist/index404.js.map +0 -1
  943. package/dist/index405.js +0 -17
  944. package/dist/index405.js.map +0 -1
  945. package/dist/index406.js +0 -221
  946. package/dist/index406.js.map +0 -1
  947. package/dist/index407.js +0 -17
  948. package/dist/index407.js.map +0 -1
  949. package/dist/index408.js +0 -152
  950. package/dist/index408.js.map +0 -1
  951. package/dist/index409.js +0 -221
  952. package/dist/index409.js.map +0 -1
  953. package/dist/index41.js +0 -12
  954. package/dist/index41.js.map +0 -1
  955. package/dist/index410.js +0 -195
  956. package/dist/index410.js.map +0 -1
  957. package/dist/index411.js +0 -127
  958. package/dist/index411.js.map +0 -1
  959. package/dist/index412.js +0 -15
  960. package/dist/index412.js.map +0 -1
  961. package/dist/index413.js +0 -128
  962. package/dist/index413.js.map +0 -1
  963. package/dist/index414.js +0 -15
  964. package/dist/index414.js.map +0 -1
  965. package/dist/index415.js +0 -135
  966. package/dist/index415.js.map +0 -1
  967. package/dist/index416.js +0 -36
  968. package/dist/index416.js.map +0 -1
  969. package/dist/index417.js +0 -92
  970. package/dist/index417.js.map +0 -1
  971. package/dist/index418.js +0 -10
  972. package/dist/index418.js.map +0 -1
  973. package/dist/index419.js +0 -9
  974. package/dist/index419.js.map +0 -1
  975. package/dist/index42.js +0 -70
  976. package/dist/index42.js.map +0 -1
  977. package/dist/index420.js +0 -8
  978. package/dist/index420.js.map +0 -1
  979. package/dist/index421.js +0 -9
  980. package/dist/index421.js.map +0 -1
  981. package/dist/index422.js +0 -11
  982. package/dist/index422.js.map +0 -1
  983. package/dist/index423.js +0 -6
  984. package/dist/index423.js.map +0 -1
  985. package/dist/index424.js +0 -27
  986. package/dist/index424.js.map +0 -1
  987. package/dist/index425.js +0 -7
  988. package/dist/index425.js.map +0 -1
  989. package/dist/index426.js +0 -8
  990. package/dist/index426.js.map +0 -1
  991. package/dist/index427.js +0 -173
  992. package/dist/index427.js.map +0 -1
  993. package/dist/index428.js +0 -91
  994. package/dist/index428.js.map +0 -1
  995. package/dist/index429.js +0 -9
  996. package/dist/index429.js.map +0 -1
  997. package/dist/index43.js +0 -24
  998. package/dist/index43.js.map +0 -1
  999. package/dist/index430.js +0 -68
  1000. package/dist/index430.js.map +0 -1
  1001. package/dist/index431.js +0 -63
  1002. package/dist/index431.js.map +0 -1
  1003. package/dist/index432.js +0 -21
  1004. package/dist/index432.js.map +0 -1
  1005. package/dist/index433.js +0 -9
  1006. package/dist/index433.js.map +0 -1
  1007. package/dist/index434.js +0 -22
  1008. package/dist/index434.js.map +0 -1
  1009. package/dist/index435.js +0 -179
  1010. package/dist/index435.js.map +0 -1
  1011. package/dist/index436.js +0 -110
  1012. package/dist/index436.js.map +0 -1
  1013. package/dist/index437.js +0 -9
  1014. package/dist/index437.js.map +0 -1
  1015. package/dist/index438.js +0 -44
  1016. package/dist/index438.js.map +0 -1
  1017. package/dist/index439.js +0 -16
  1018. package/dist/index439.js.map +0 -1
  1019. package/dist/index44.js +0 -14
  1020. package/dist/index44.js.map +0 -1
  1021. package/dist/index440.js +0 -117
  1022. package/dist/index440.js.map +0 -1
  1023. package/dist/index441.js +0 -19
  1024. package/dist/index441.js.map +0 -1
  1025. package/dist/index442.js +0 -320
  1026. package/dist/index442.js.map +0 -1
  1027. package/dist/index443.js +0 -16
  1028. package/dist/index443.js.map +0 -1
  1029. package/dist/index444.js +0 -94
  1030. package/dist/index444.js.map +0 -1
  1031. package/dist/index445.js +0 -211
  1032. package/dist/index445.js.map +0 -1
  1033. package/dist/index446.js +0 -16
  1034. package/dist/index446.js.map +0 -1
  1035. package/dist/index447.js +0 -94
  1036. package/dist/index447.js.map +0 -1
  1037. package/dist/index448.js +0 -238
  1038. package/dist/index448.js.map +0 -1
  1039. package/dist/index449.js +0 -14
  1040. package/dist/index449.js.map +0 -1
  1041. package/dist/index45.js +0 -54
  1042. package/dist/index45.js.map +0 -1
  1043. package/dist/index450.js +0 -203
  1044. package/dist/index450.js.map +0 -1
  1045. package/dist/index451.js +0 -8
  1046. package/dist/index451.js.map +0 -1
  1047. package/dist/index452.js +0 -11
  1048. package/dist/index452.js.map +0 -1
  1049. package/dist/index453.js +0 -9
  1050. package/dist/index453.js.map +0 -1
  1051. package/dist/index454.js +0 -302
  1052. package/dist/index454.js.map +0 -1
  1053. package/dist/index455.js +0 -22
  1054. package/dist/index455.js.map +0 -1
  1055. package/dist/index456.js +0 -210
  1056. package/dist/index456.js.map +0 -1
  1057. package/dist/index457.js +0 -15
  1058. package/dist/index457.js.map +0 -1
  1059. package/dist/index458.js +0 -13
  1060. package/dist/index458.js.map +0 -1
  1061. package/dist/index459.js +0 -99
  1062. package/dist/index459.js.map +0 -1
  1063. package/dist/index46.js +0 -99
  1064. package/dist/index46.js.map +0 -1
  1065. package/dist/index460.js +0 -11
  1066. package/dist/index460.js.map +0 -1
  1067. package/dist/index461.js +0 -88
  1068. package/dist/index461.js.map +0 -1
  1069. package/dist/index462.js +0 -23
  1070. package/dist/index462.js.map +0 -1
  1071. package/dist/index463.js +0 -139
  1072. package/dist/index463.js.map +0 -1
  1073. package/dist/index464.js +0 -29
  1074. package/dist/index464.js.map +0 -1
  1075. package/dist/index465.js +0 -11
  1076. package/dist/index465.js.map +0 -1
  1077. package/dist/index466.js +0 -112
  1078. package/dist/index466.js.map +0 -1
  1079. package/dist/index467.js +0 -10
  1080. package/dist/index467.js.map +0 -1
  1081. package/dist/index468.js +0 -28
  1082. package/dist/index468.js.map +0 -1
  1083. package/dist/index469.js +0 -8
  1084. package/dist/index469.js.map +0 -1
  1085. package/dist/index47.js +0 -9
  1086. package/dist/index47.js.map +0 -1
  1087. package/dist/index470.js +0 -13
  1088. package/dist/index470.js.map +0 -1
  1089. package/dist/index471.js +0 -15
  1090. package/dist/index471.js.map +0 -1
  1091. package/dist/index472.js +0 -47
  1092. package/dist/index472.js.map +0 -1
  1093. package/dist/index473.js +0 -8
  1094. package/dist/index473.js.map +0 -1
  1095. package/dist/index474.js +0 -6
  1096. package/dist/index474.js.map +0 -1
  1097. package/dist/index475.js +0 -11
  1098. package/dist/index475.js.map +0 -1
  1099. package/dist/index476.js +0 -9
  1100. package/dist/index476.js.map +0 -1
  1101. package/dist/index477.js +0 -25
  1102. package/dist/index477.js.map +0 -1
  1103. package/dist/index478.js +0 -15
  1104. package/dist/index478.js.map +0 -1
  1105. package/dist/index479.js +0 -18
  1106. package/dist/index479.js.map +0 -1
  1107. package/dist/index48.js +0 -41
  1108. package/dist/index48.js.map +0 -1
  1109. package/dist/index480.js +0 -9
  1110. package/dist/index480.js.map +0 -1
  1111. package/dist/index481.js +0 -13
  1112. package/dist/index481.js.map +0 -1
  1113. package/dist/index482.js +0 -9
  1114. package/dist/index482.js.map +0 -1
  1115. package/dist/index483.js +0 -11
  1116. package/dist/index483.js.map +0 -1
  1117. package/dist/index484.js +0 -30
  1118. package/dist/index484.js.map +0 -1
  1119. package/dist/index485.js +0 -8
  1120. package/dist/index485.js.map +0 -1
  1121. package/dist/index486.js +0 -13
  1122. package/dist/index486.js.map +0 -1
  1123. package/dist/index487.js +0 -13
  1124. package/dist/index487.js.map +0 -1
  1125. package/dist/index488.js +0 -9
  1126. package/dist/index488.js.map +0 -1
  1127. package/dist/index489.js +0 -10
  1128. package/dist/index489.js.map +0 -1
  1129. package/dist/index49.js +0 -59
  1130. package/dist/index49.js.map +0 -1
  1131. package/dist/index490.js +0 -37
  1132. package/dist/index490.js.map +0 -1
  1133. package/dist/index491.js +0 -8
  1134. package/dist/index491.js.map +0 -1
  1135. package/dist/index492.js +0 -90
  1136. package/dist/index492.js.map +0 -1
  1137. package/dist/index493.js +0 -25
  1138. package/dist/index493.js.map +0 -1
  1139. package/dist/index494.js +0 -16
  1140. package/dist/index494.js.map +0 -1
  1141. package/dist/index495.js +0 -14
  1142. package/dist/index495.js.map +0 -1
  1143. package/dist/index496.js +0 -13
  1144. package/dist/index496.js.map +0 -1
  1145. package/dist/index497.js +0 -11
  1146. package/dist/index497.js.map +0 -1
  1147. package/dist/index498.js +0 -23
  1148. package/dist/index498.js.map +0 -1
  1149. package/dist/index499.js +0 -19
  1150. package/dist/index499.js.map +0 -1
  1151. package/dist/index5.js +0 -45
  1152. package/dist/index5.js.map +0 -1
  1153. package/dist/index50.js +0 -9
  1154. package/dist/index50.js.map +0 -1
  1155. package/dist/index500.js +0 -10
  1156. package/dist/index500.js.map +0 -1
  1157. package/dist/index501.js +0 -16
  1158. package/dist/index501.js.map +0 -1
  1159. package/dist/index502.js +0 -14
  1160. package/dist/index502.js.map +0 -1
  1161. package/dist/index503.js +0 -13
  1162. package/dist/index503.js.map +0 -1
  1163. package/dist/index504.js +0 -39
  1164. package/dist/index504.js.map +0 -1
  1165. package/dist/index505.js +0 -53
  1166. package/dist/index505.js.map +0 -1
  1167. package/dist/index506.js +0 -36
  1168. package/dist/index506.js.map +0 -1
  1169. package/dist/index507.js +0 -29
  1170. package/dist/index507.js.map +0 -1
  1171. package/dist/index508.js +0 -71
  1172. package/dist/index508.js.map +0 -1
  1173. package/dist/index509.js +0 -47
  1174. package/dist/index509.js.map +0 -1
  1175. package/dist/index51.js +0 -66
  1176. package/dist/index51.js.map +0 -1
  1177. package/dist/index510.js +0 -30
  1178. package/dist/index510.js.map +0 -1
  1179. package/dist/index511.js +0 -22
  1180. package/dist/index511.js.map +0 -1
  1181. package/dist/index512.js +0 -8
  1182. package/dist/index512.js.map +0 -1
  1183. package/dist/index513.js +0 -54
  1184. package/dist/index513.js.map +0 -1
  1185. package/dist/index514.js +0 -11
  1186. package/dist/index514.js.map +0 -1
  1187. package/dist/index515.js +0 -12
  1188. package/dist/index515.js.map +0 -1
  1189. package/dist/index516.js +0 -33
  1190. package/dist/index516.js.map +0 -1
  1191. package/dist/index517.js +0 -31
  1192. package/dist/index517.js.map +0 -1
  1193. package/dist/index518.js +0 -15
  1194. package/dist/index518.js.map +0 -1
  1195. package/dist/index519.js +0 -17
  1196. package/dist/index519.js.map +0 -1
  1197. package/dist/index52.js +0 -12
  1198. package/dist/index52.js.map +0 -1
  1199. package/dist/index520.js +0 -114
  1200. package/dist/index520.js.map +0 -1
  1201. package/dist/index521.js +0 -27
  1202. package/dist/index521.js.map +0 -1
  1203. package/dist/index522.js +0 -8
  1204. package/dist/index522.js.map +0 -1
  1205. package/dist/index523.js +0 -46
  1206. package/dist/index523.js.map +0 -1
  1207. package/dist/index524.js +0 -11
  1208. package/dist/index524.js.map +0 -1
  1209. package/dist/index525.js +0 -264
  1210. package/dist/index525.js.map +0 -1
  1211. package/dist/index526.js +0 -131
  1212. package/dist/index526.js.map +0 -1
  1213. package/dist/index527.js +0 -9
  1214. package/dist/index527.js.map +0 -1
  1215. package/dist/index528.js +0 -154
  1216. package/dist/index528.js.map +0 -1
  1217. package/dist/index529.js +0 -19
  1218. package/dist/index529.js.map +0 -1
  1219. package/dist/index53.js +0 -64
  1220. package/dist/index53.js.map +0 -1
  1221. package/dist/index530.js +0 -11
  1222. package/dist/index530.js.map +0 -1
  1223. package/dist/index531.js +0 -203
  1224. package/dist/index531.js.map +0 -1
  1225. package/dist/index532.js +0 -27
  1226. package/dist/index532.js.map +0 -1
  1227. package/dist/index533.js +0 -111
  1228. package/dist/index533.js.map +0 -1
  1229. package/dist/index534.js +0 -224
  1230. package/dist/index534.js.map +0 -1
  1231. package/dist/index535.js +0 -19
  1232. package/dist/index535.js.map +0 -1
  1233. package/dist/index536.js +0 -11
  1234. package/dist/index536.js.map +0 -1
  1235. package/dist/index537.js +0 -9
  1236. package/dist/index537.js.map +0 -1
  1237. package/dist/index538.js +0 -9
  1238. package/dist/index538.js.map +0 -1
  1239. package/dist/index539.js +0 -528
  1240. package/dist/index539.js.map +0 -1
  1241. package/dist/index54.js +0 -84
  1242. package/dist/index54.js.map +0 -1
  1243. package/dist/index540.js +0 -11
  1244. package/dist/index540.js.map +0 -1
  1245. package/dist/index541.js +0 -65
  1246. package/dist/index541.js.map +0 -1
  1247. package/dist/index542.js +0 -80
  1248. package/dist/index542.js.map +0 -1
  1249. package/dist/index543.js +0 -19
  1250. package/dist/index543.js.map +0 -1
  1251. package/dist/index544.js +0 -11
  1252. package/dist/index544.js.map +0 -1
  1253. package/dist/index545.js +0 -66
  1254. package/dist/index545.js.map +0 -1
  1255. package/dist/index546.js +0 -194
  1256. package/dist/index546.js.map +0 -1
  1257. package/dist/index547.js +0 -9
  1258. package/dist/index547.js.map +0 -1
  1259. package/dist/index548.js +0 -32
  1260. package/dist/index548.js.map +0 -1
  1261. package/dist/index549.js +0 -407
  1262. package/dist/index549.js.map +0 -1
  1263. package/dist/index55.js +0 -12
  1264. package/dist/index55.js.map +0 -1
  1265. package/dist/index550.js +0 -70
  1266. package/dist/index550.js.map +0 -1
  1267. package/dist/index551.js +0 -63
  1268. package/dist/index551.js.map +0 -1
  1269. package/dist/index552.js +0 -137
  1270. package/dist/index552.js.map +0 -1
  1271. package/dist/index553.js +0 -17
  1272. package/dist/index553.js.map +0 -1
  1273. package/dist/index554.js +0 -49
  1274. package/dist/index554.js.map +0 -1
  1275. package/dist/index555.js +0 -49
  1276. package/dist/index555.js.map +0 -1
  1277. package/dist/index556.js +0 -137
  1278. package/dist/index556.js.map +0 -1
  1279. package/dist/index557.js +0 -11
  1280. package/dist/index557.js.map +0 -1
  1281. package/dist/index558.js +0 -7
  1282. package/dist/index558.js.map +0 -1
  1283. package/dist/index559.js +0 -73
  1284. package/dist/index559.js.map +0 -1
  1285. package/dist/index56.js +0 -41
  1286. package/dist/index56.js.map +0 -1
  1287. package/dist/index560.js +0 -136
  1288. package/dist/index560.js.map +0 -1
  1289. package/dist/index561.js +0 -11
  1290. package/dist/index561.js.map +0 -1
  1291. package/dist/index562.js +0 -106
  1292. package/dist/index562.js.map +0 -1
  1293. package/dist/index563.js +0 -89
  1294. package/dist/index563.js.map +0 -1
  1295. package/dist/index564.js +0 -15
  1296. package/dist/index564.js.map +0 -1
  1297. package/dist/index565.js +0 -155
  1298. package/dist/index565.js.map +0 -1
  1299. package/dist/index566.js +0 -26
  1300. package/dist/index566.js.map +0 -1
  1301. package/dist/index567.js +0 -9
  1302. package/dist/index567.js.map +0 -1
  1303. package/dist/index568.js +0 -310
  1304. package/dist/index568.js.map +0 -1
  1305. package/dist/index569.js +0 -39
  1306. package/dist/index569.js.map +0 -1
  1307. package/dist/index57.js +0 -10
  1308. package/dist/index57.js.map +0 -1
  1309. package/dist/index570.js +0 -49
  1310. package/dist/index570.js.map +0 -1
  1311. package/dist/index571.js +0 -135
  1312. package/dist/index571.js.map +0 -1
  1313. package/dist/index572.js +0 -117
  1314. package/dist/index572.js.map +0 -1
  1315. package/dist/index573.js +0 -11
  1316. package/dist/index573.js.map +0 -1
  1317. package/dist/index574.js +0 -41
  1318. package/dist/index574.js.map +0 -1
  1319. package/dist/index575.js +0 -52
  1320. package/dist/index575.js.map +0 -1
  1321. package/dist/index576.js +0 -20
  1322. package/dist/index576.js.map +0 -1
  1323. package/dist/index577.js +0 -183
  1324. package/dist/index577.js.map +0 -1
  1325. package/dist/index578.js +0 -33
  1326. package/dist/index578.js.map +0 -1
  1327. package/dist/index579.js +0 -103
  1328. package/dist/index579.js.map +0 -1
  1329. package/dist/index58.js +0 -10
  1330. package/dist/index58.js.map +0 -1
  1331. package/dist/index580.js +0 -33
  1332. package/dist/index580.js.map +0 -1
  1333. package/dist/index581.js +0 -143
  1334. package/dist/index581.js.map +0 -1
  1335. package/dist/index582.js +0 -129
  1336. package/dist/index582.js.map +0 -1
  1337. package/dist/index583.js +0 -117
  1338. package/dist/index583.js.map +0 -1
  1339. package/dist/index584.js +0 -22
  1340. package/dist/index584.js.map +0 -1
  1341. package/dist/index585.js +0 -204
  1342. package/dist/index585.js.map +0 -1
  1343. package/dist/index586.js +0 -28
  1344. package/dist/index586.js.map +0 -1
  1345. package/dist/index587.js +0 -42
  1346. package/dist/index587.js.map +0 -1
  1347. package/dist/index588.js +0 -9
  1348. package/dist/index588.js.map +0 -1
  1349. package/dist/index589.js +0 -9
  1350. package/dist/index589.js.map +0 -1
  1351. package/dist/index59.js +0 -46
  1352. package/dist/index59.js.map +0 -1
  1353. package/dist/index590.js +0 -16
  1354. package/dist/index590.js.map +0 -1
  1355. package/dist/index591.js +0 -106
  1356. package/dist/index591.js.map +0 -1
  1357. package/dist/index592.js +0 -24
  1358. package/dist/index592.js.map +0 -1
  1359. package/dist/index593.js +0 -546
  1360. package/dist/index593.js.map +0 -1
  1361. package/dist/index594.js +0 -11
  1362. package/dist/index594.js.map +0 -1
  1363. package/dist/index595.js +0 -85
  1364. package/dist/index595.js.map +0 -1
  1365. package/dist/index596.js +0 -21
  1366. package/dist/index596.js.map +0 -1
  1367. package/dist/index597.js +0 -305
  1368. package/dist/index597.js.map +0 -1
  1369. package/dist/index598.js +0 -51
  1370. package/dist/index598.js.map +0 -1
  1371. package/dist/index599.js +0 -65
  1372. package/dist/index599.js.map +0 -1
  1373. package/dist/index6.js +0 -117
  1374. package/dist/index6.js.map +0 -1
  1375. package/dist/index60.js +0 -273
  1376. package/dist/index60.js.map +0 -1
  1377. package/dist/index600.js +0 -221
  1378. package/dist/index600.js.map +0 -1
  1379. package/dist/index601.js +0 -197
  1380. package/dist/index601.js.map +0 -1
  1381. package/dist/index602.js +0 -148
  1382. package/dist/index602.js.map +0 -1
  1383. package/dist/index603.js +0 -29
  1384. package/dist/index603.js.map +0 -1
  1385. package/dist/index604.js +0 -164
  1386. package/dist/index604.js.map +0 -1
  1387. package/dist/index605.js +0 -36
  1388. package/dist/index605.js.map +0 -1
  1389. package/dist/index606.js +0 -19
  1390. package/dist/index606.js.map +0 -1
  1391. package/dist/index607.js +0 -41
  1392. package/dist/index607.js.map +0 -1
  1393. package/dist/index608.js +0 -284
  1394. package/dist/index608.js.map +0 -1
  1395. package/dist/index609.js +0 -22
  1396. package/dist/index609.js.map +0 -1
  1397. package/dist/index61.js +0 -49
  1398. package/dist/index61.js.map +0 -1
  1399. package/dist/index610.js +0 -12
  1400. package/dist/index610.js.map +0 -1
  1401. package/dist/index611.js +0 -148
  1402. package/dist/index611.js.map +0 -1
  1403. package/dist/index612.js +0 -24
  1404. package/dist/index612.js.map +0 -1
  1405. package/dist/index613.js +0 -23
  1406. package/dist/index613.js.map +0 -1
  1407. package/dist/index614.js +0 -65
  1408. package/dist/index614.js.map +0 -1
  1409. package/dist/index615.js +0 -33
  1410. package/dist/index615.js.map +0 -1
  1411. package/dist/index616.js +0 -59
  1412. package/dist/index616.js.map +0 -1
  1413. package/dist/index617.js +0 -9
  1414. package/dist/index617.js.map +0 -1
  1415. package/dist/index618.js +0 -76
  1416. package/dist/index618.js.map +0 -1
  1417. package/dist/index619.js +0 -32
  1418. package/dist/index619.js.map +0 -1
  1419. package/dist/index62.js +0 -16
  1420. package/dist/index62.js.map +0 -1
  1421. package/dist/index620.js +0 -13
  1422. package/dist/index620.js.map +0 -1
  1423. package/dist/index621.js +0 -13
  1424. package/dist/index621.js.map +0 -1
  1425. package/dist/index622.js +0 -550
  1426. package/dist/index622.js.map +0 -1
  1427. package/dist/index623.js +0 -18
  1428. package/dist/index623.js.map +0 -1
  1429. package/dist/index624.js +0 -120
  1430. package/dist/index624.js.map +0 -1
  1431. package/dist/index625.js +0 -9
  1432. package/dist/index625.js.map +0 -1
  1433. package/dist/index626.js +0 -9
  1434. package/dist/index626.js.map +0 -1
  1435. package/dist/index627.js +0 -598
  1436. package/dist/index627.js.map +0 -1
  1437. package/dist/index628.js +0 -21
  1438. package/dist/index628.js.map +0 -1
  1439. package/dist/index629.js +0 -37
  1440. package/dist/index629.js.map +0 -1
  1441. package/dist/index63.js +0 -27
  1442. package/dist/index63.js.map +0 -1
  1443. package/dist/index630.js +0 -221
  1444. package/dist/index630.js.map +0 -1
  1445. package/dist/index631.js +0 -18
  1446. package/dist/index631.js.map +0 -1
  1447. package/dist/index632.js +0 -187
  1448. package/dist/index632.js.map +0 -1
  1449. package/dist/index633.js +0 -9
  1450. package/dist/index633.js.map +0 -1
  1451. package/dist/index634.js +0 -9
  1452. package/dist/index634.js.map +0 -1
  1453. package/dist/index635.js +0 -9
  1454. package/dist/index635.js.map +0 -1
  1455. package/dist/index636.js +0 -159
  1456. package/dist/index636.js.map +0 -1
  1457. package/dist/index637.js +0 -23
  1458. package/dist/index637.js.map +0 -1
  1459. package/dist/index638.js +0 -363
  1460. package/dist/index638.js.map +0 -1
  1461. package/dist/index639.js +0 -163
  1462. package/dist/index639.js.map +0 -1
  1463. package/dist/index64.js +0 -25
  1464. package/dist/index64.js.map +0 -1
  1465. package/dist/index640.js +0 -24
  1466. package/dist/index640.js.map +0 -1
  1467. package/dist/index641.js +0 -285
  1468. package/dist/index641.js.map +0 -1
  1469. package/dist/index642.js +0 -115
  1470. package/dist/index642.js.map +0 -1
  1471. package/dist/index643.js +0 -236
  1472. package/dist/index643.js.map +0 -1
  1473. package/dist/index644.js +0 -11
  1474. package/dist/index644.js.map +0 -1
  1475. package/dist/index645.js +0 -338
  1476. package/dist/index645.js.map +0 -1
  1477. package/dist/index646.js +0 -15
  1478. package/dist/index646.js.map +0 -1
  1479. package/dist/index647.js +0 -173
  1480. package/dist/index647.js.map +0 -1
  1481. package/dist/index648.js +0 -166
  1482. package/dist/index648.js.map +0 -1
  1483. package/dist/index649.js +0 -46
  1484. package/dist/index649.js.map +0 -1
  1485. package/dist/index65.js +0 -61
  1486. package/dist/index65.js.map +0 -1
  1487. package/dist/index650.js +0 -460
  1488. package/dist/index650.js.map +0 -1
  1489. package/dist/index651.js +0 -129
  1490. package/dist/index651.js.map +0 -1
  1491. package/dist/index652.js +0 -11
  1492. package/dist/index652.js.map +0 -1
  1493. package/dist/index653.js +0 -217
  1494. package/dist/index653.js.map +0 -1
  1495. package/dist/index654.js +0 -162
  1496. package/dist/index654.js.map +0 -1
  1497. package/dist/index655.js +0 -25
  1498. package/dist/index655.js.map +0 -1
  1499. package/dist/index656.js +0 -268
  1500. package/dist/index656.js.map +0 -1
  1501. package/dist/index657.js +0 -24
  1502. package/dist/index657.js.map +0 -1
  1503. package/dist/index658.js +0 -433
  1504. package/dist/index658.js.map +0 -1
  1505. package/dist/index659.js +0 -9
  1506. package/dist/index659.js.map +0 -1
  1507. package/dist/index66.js +0 -63
  1508. package/dist/index66.js.map +0 -1
  1509. package/dist/index660.js +0 -9
  1510. package/dist/index660.js.map +0 -1
  1511. package/dist/index661.js +0 -25
  1512. package/dist/index661.js.map +0 -1
  1513. package/dist/index662.js +0 -190
  1514. package/dist/index662.js.map +0 -1
  1515. package/dist/index663.js +0 -16
  1516. package/dist/index663.js.map +0 -1
  1517. package/dist/index664.js +0 -94
  1518. package/dist/index664.js.map +0 -1
  1519. package/dist/index665.js +0 -9
  1520. package/dist/index665.js.map +0 -1
  1521. package/dist/index666.js +0 -9
  1522. package/dist/index666.js.map +0 -1
  1523. package/dist/index667.js +0 -11
  1524. package/dist/index667.js.map +0 -1
  1525. package/dist/index668.js +0 -115
  1526. package/dist/index668.js.map +0 -1
  1527. package/dist/index669.js +0 -23
  1528. package/dist/index669.js.map +0 -1
  1529. package/dist/index67.js +0 -12
  1530. package/dist/index67.js.map +0 -1
  1531. package/dist/index670.js +0 -12
  1532. package/dist/index670.js.map +0 -1
  1533. package/dist/index671.js +0 -303
  1534. package/dist/index671.js.map +0 -1
  1535. package/dist/index672.js +0 -82
  1536. package/dist/index672.js.map +0 -1
  1537. package/dist/index673.js +0 -9
  1538. package/dist/index673.js.map +0 -1
  1539. package/dist/index674.js +0 -9
  1540. package/dist/index674.js.map +0 -1
  1541. package/dist/index675.js +0 -8
  1542. package/dist/index675.js.map +0 -1
  1543. package/dist/index676.js +0 -22
  1544. package/dist/index676.js.map +0 -1
  1545. package/dist/index677.js +0 -172
  1546. package/dist/index677.js.map +0 -1
  1547. package/dist/index678.js +0 -7
  1548. package/dist/index678.js.map +0 -1
  1549. package/dist/index679.js +0 -15
  1550. package/dist/index679.js.map +0 -1
  1551. package/dist/index68.js +0 -26
  1552. package/dist/index68.js.map +0 -1
  1553. package/dist/index680.js +0 -7
  1554. package/dist/index680.js.map +0 -1
  1555. package/dist/index681.js +0 -17
  1556. package/dist/index681.js.map +0 -1
  1557. package/dist/index682.js +0 -9
  1558. package/dist/index682.js.map +0 -1
  1559. package/dist/index683.js +0 -14
  1560. package/dist/index683.js.map +0 -1
  1561. package/dist/index684.js +0 -30
  1562. package/dist/index684.js.map +0 -1
  1563. package/dist/index685.js +0 -9
  1564. package/dist/index685.js.map +0 -1
  1565. package/dist/index686.js +0 -14
  1566. package/dist/index686.js.map +0 -1
  1567. package/dist/index687.js +0 -22
  1568. package/dist/index687.js.map +0 -1
  1569. package/dist/index688.js +0 -105
  1570. package/dist/index688.js.map +0 -1
  1571. package/dist/index689.js +0 -174
  1572. package/dist/index689.js.map +0 -1
  1573. package/dist/index69.js +0 -55
  1574. package/dist/index69.js.map +0 -1
  1575. package/dist/index690.js +0 -14
  1576. package/dist/index690.js.map +0 -1
  1577. package/dist/index691.js +0 -39
  1578. package/dist/index691.js.map +0 -1
  1579. package/dist/index692.js +0 -15
  1580. package/dist/index692.js.map +0 -1
  1581. package/dist/index693.js +0 -579
  1582. package/dist/index693.js.map +0 -1
  1583. package/dist/index694.js +0 -90
  1584. package/dist/index694.js.map +0 -1
  1585. package/dist/index695.js +0 -589
  1586. package/dist/index695.js.map +0 -1
  1587. package/dist/index696.js +0 -6
  1588. package/dist/index696.js.map +0 -1
  1589. package/dist/index697.js +0 -32
  1590. package/dist/index697.js.map +0 -1
  1591. package/dist/index698.js +0 -62
  1592. package/dist/index698.js.map +0 -1
  1593. package/dist/index699.js +0 -16
  1594. package/dist/index699.js.map +0 -1
  1595. package/dist/index7.js +0 -17
  1596. package/dist/index7.js.map +0 -1
  1597. package/dist/index70.js +0 -48
  1598. package/dist/index70.js.map +0 -1
  1599. package/dist/index700.js +0 -51
  1600. package/dist/index700.js.map +0 -1
  1601. package/dist/index701.js +0 -8
  1602. package/dist/index701.js.map +0 -1
  1603. package/dist/index702.js +0 -255
  1604. package/dist/index702.js.map +0 -1
  1605. package/dist/index703.js +0 -83
  1606. package/dist/index703.js.map +0 -1
  1607. package/dist/index704.js +0 -46
  1608. package/dist/index704.js.map +0 -1
  1609. package/dist/index705.js +0 -54
  1610. package/dist/index705.js.map +0 -1
  1611. package/dist/index706.js +0 -12
  1612. package/dist/index706.js.map +0 -1
  1613. package/dist/index707.js +0 -54
  1614. package/dist/index707.js.map +0 -1
  1615. package/dist/index708.js +0 -56
  1616. package/dist/index708.js.map +0 -1
  1617. package/dist/index709.js +0 -12
  1618. package/dist/index709.js.map +0 -1
  1619. package/dist/index71.js +0 -6
  1620. package/dist/index71.js.map +0 -1
  1621. package/dist/index710.js +0 -26
  1622. package/dist/index710.js.map +0 -1
  1623. package/dist/index711.js +0 -34
  1624. package/dist/index711.js.map +0 -1
  1625. package/dist/index712.js +0 -38
  1626. package/dist/index712.js.map +0 -1
  1627. package/dist/index713.js +0 -332
  1628. package/dist/index713.js.map +0 -1
  1629. package/dist/index714.js +0 -27
  1630. package/dist/index714.js.map +0 -1
  1631. package/dist/index715.js +0 -8
  1632. package/dist/index715.js.map +0 -1
  1633. package/dist/index716.js +0 -7
  1634. package/dist/index716.js.map +0 -1
  1635. package/dist/index717.js +0 -12
  1636. package/dist/index717.js.map +0 -1
  1637. package/dist/index718.js +0 -19
  1638. package/dist/index718.js.map +0 -1
  1639. package/dist/index719.js +0 -442
  1640. package/dist/index719.js.map +0 -1
  1641. package/dist/index72.js +0 -13
  1642. package/dist/index72.js.map +0 -1
  1643. package/dist/index720.js +0 -176
  1644. package/dist/index720.js.map +0 -1
  1645. package/dist/index721.js +0 -26
  1646. package/dist/index721.js.map +0 -1
  1647. package/dist/index722.js +0 -31
  1648. package/dist/index722.js.map +0 -1
  1649. package/dist/index723.js +0 -22
  1650. package/dist/index723.js.map +0 -1
  1651. package/dist/index724.js +0 -36
  1652. package/dist/index724.js.map +0 -1
  1653. package/dist/index725.js +0 -16
  1654. package/dist/index725.js.map +0 -1
  1655. package/dist/index726.js +0 -14
  1656. package/dist/index726.js.map +0 -1
  1657. package/dist/index727.js +0 -7
  1658. package/dist/index727.js.map +0 -1
  1659. package/dist/index728.js +0 -24
  1660. package/dist/index728.js.map +0 -1
  1661. package/dist/index729.js +0 -156
  1662. package/dist/index729.js.map +0 -1
  1663. package/dist/index73.js +0 -10
  1664. package/dist/index73.js.map +0 -1
  1665. package/dist/index730.js +0 -10
  1666. package/dist/index730.js.map +0 -1
  1667. package/dist/index731.js +0 -15
  1668. package/dist/index731.js.map +0 -1
  1669. package/dist/index732.js +0 -236
  1670. package/dist/index732.js.map +0 -1
  1671. package/dist/index733.js +0 -8
  1672. package/dist/index733.js.map +0 -1
  1673. package/dist/index734.js +0 -28
  1674. package/dist/index734.js.map +0 -1
  1675. package/dist/index735.js +0 -17
  1676. package/dist/index735.js.map +0 -1
  1677. package/dist/index736.js +0 -39
  1678. package/dist/index736.js.map +0 -1
  1679. package/dist/index737.js +0 -11
  1680. package/dist/index737.js.map +0 -1
  1681. package/dist/index738.js +0 -9
  1682. package/dist/index738.js.map +0 -1
  1683. package/dist/index739.js +0 -110
  1684. package/dist/index739.js.map +0 -1
  1685. package/dist/index74.js +0 -40
  1686. package/dist/index74.js.map +0 -1
  1687. package/dist/index740.js +0 -45
  1688. package/dist/index740.js.map +0 -1
  1689. package/dist/index741.js +0 -108
  1690. package/dist/index741.js.map +0 -1
  1691. package/dist/index742.js +0 -43
  1692. package/dist/index742.js.map +0 -1
  1693. package/dist/index743.js +0 -83
  1694. package/dist/index743.js.map +0 -1
  1695. package/dist/index744.js +0 -12
  1696. package/dist/index744.js.map +0 -1
  1697. package/dist/index745.js +0 -8
  1698. package/dist/index745.js.map +0 -1
  1699. package/dist/index746.js +0 -32
  1700. package/dist/index746.js.map +0 -1
  1701. package/dist/index747.js +0 -10
  1702. package/dist/index747.js.map +0 -1
  1703. package/dist/index748.js +0 -10
  1704. package/dist/index748.js.map +0 -1
  1705. package/dist/index749.js +0 -8
  1706. package/dist/index749.js.map +0 -1
  1707. package/dist/index75.js +0 -97
  1708. package/dist/index75.js.map +0 -1
  1709. package/dist/index750.js +0 -16
  1710. package/dist/index750.js.map +0 -1
  1711. package/dist/index751.js +0 -8
  1712. package/dist/index751.js.map +0 -1
  1713. package/dist/index752.js +0 -11
  1714. package/dist/index752.js.map +0 -1
  1715. package/dist/index753.js +0 -7
  1716. package/dist/index753.js.map +0 -1
  1717. package/dist/index754.js +0 -31
  1718. package/dist/index754.js.map +0 -1
  1719. package/dist/index755.js +0 -142
  1720. package/dist/index755.js.map +0 -1
  1721. package/dist/index756.js +0 -100
  1722. package/dist/index756.js.map +0 -1
  1723. package/dist/index757.js +0 -28
  1724. package/dist/index757.js.map +0 -1
  1725. package/dist/index758.js +0 -15
  1726. package/dist/index758.js.map +0 -1
  1727. package/dist/index759.js +0 -9
  1728. package/dist/index759.js.map +0 -1
  1729. package/dist/index76.js +0 -10
  1730. package/dist/index76.js.map +0 -1
  1731. package/dist/index760.js +0 -14
  1732. package/dist/index760.js.map +0 -1
  1733. package/dist/index761.js +0 -43
  1734. package/dist/index761.js.map +0 -1
  1735. package/dist/index762.js +0 -93
  1736. package/dist/index762.js.map +0 -1
  1737. package/dist/index763.js +0 -59
  1738. package/dist/index763.js.map +0 -1
  1739. package/dist/index764.js +0 -193
  1740. package/dist/index764.js.map +0 -1
  1741. package/dist/index765.js +0 -23
  1742. package/dist/index765.js.map +0 -1
  1743. package/dist/index766.js +0 -8
  1744. package/dist/index766.js.map +0 -1
  1745. package/dist/index767.js +0 -47
  1746. package/dist/index767.js.map +0 -1
  1747. package/dist/index768.js +0 -76
  1748. package/dist/index768.js.map +0 -1
  1749. package/dist/index769.js +0 -90
  1750. package/dist/index769.js.map +0 -1
  1751. package/dist/index77.js +0 -44
  1752. package/dist/index77.js.map +0 -1
  1753. package/dist/index770.js +0 -97
  1754. package/dist/index770.js.map +0 -1
  1755. package/dist/index771.js +0 -14
  1756. package/dist/index771.js.map +0 -1
  1757. package/dist/index772.js +0 -37
  1758. package/dist/index772.js.map +0 -1
  1759. package/dist/index773.js +0 -9
  1760. package/dist/index773.js.map +0 -1
  1761. package/dist/index774.js +0 -27
  1762. package/dist/index774.js.map +0 -1
  1763. package/dist/index775.js +0 -34
  1764. package/dist/index775.js.map +0 -1
  1765. package/dist/index776.js +0 -18
  1766. package/dist/index776.js.map +0 -1
  1767. package/dist/index777.js +0 -8
  1768. package/dist/index777.js.map +0 -1
  1769. package/dist/index778.js +0 -94
  1770. package/dist/index778.js.map +0 -1
  1771. package/dist/index779.js +0 -103
  1772. package/dist/index779.js.map +0 -1
  1773. package/dist/index78.js +0 -117
  1774. package/dist/index78.js.map +0 -1
  1775. package/dist/index780.js +0 -11
  1776. package/dist/index780.js.map +0 -1
  1777. package/dist/index781.js +0 -13
  1778. package/dist/index781.js.map +0 -1
  1779. package/dist/index782.js +0 -38
  1780. package/dist/index782.js.map +0 -1
  1781. package/dist/index783.js +0 -108
  1782. package/dist/index783.js.map +0 -1
  1783. package/dist/index784.js +0 -33
  1784. package/dist/index784.js.map +0 -1
  1785. package/dist/index785.js +0 -106
  1786. package/dist/index785.js.map +0 -1
  1787. package/dist/index786.js +0 -66
  1788. package/dist/index786.js.map +0 -1
  1789. package/dist/index787.js +0 -110
  1790. package/dist/index787.js.map +0 -1
  1791. package/dist/index788.js +0 -49
  1792. package/dist/index788.js.map +0 -1
  1793. package/dist/index789.js +0 -61
  1794. package/dist/index789.js.map +0 -1
  1795. package/dist/index79.js +0 -14
  1796. package/dist/index79.js.map +0 -1
  1797. package/dist/index790.js +0 -20
  1798. package/dist/index790.js.map +0 -1
  1799. package/dist/index791.js +0 -18
  1800. package/dist/index791.js.map +0 -1
  1801. package/dist/index792.js +0 -115
  1802. package/dist/index792.js.map +0 -1
  1803. package/dist/index793.js +0 -98
  1804. package/dist/index793.js.map +0 -1
  1805. package/dist/index794.js +0 -80
  1806. package/dist/index794.js.map +0 -1
  1807. package/dist/index795.js +0 -29
  1808. package/dist/index795.js.map +0 -1
  1809. package/dist/index796.js +0 -36
  1810. package/dist/index796.js.map +0 -1
  1811. package/dist/index797.js +0 -198
  1812. package/dist/index797.js.map +0 -1
  1813. package/dist/index798.js +0 -217
  1814. package/dist/index798.js.map +0 -1
  1815. package/dist/index799.js +0 -15
  1816. package/dist/index799.js.map +0 -1
  1817. package/dist/index8.js +0 -22
  1818. package/dist/index8.js.map +0 -1
  1819. package/dist/index80.js +0 -16
  1820. package/dist/index80.js.map +0 -1
  1821. package/dist/index800.js +0 -23
  1822. package/dist/index800.js.map +0 -1
  1823. package/dist/index801.js +0 -7
  1824. package/dist/index801.js.map +0 -1
  1825. package/dist/index802.js +0 -7
  1826. package/dist/index802.js.map +0 -1
  1827. package/dist/index803.js +0 -147
  1828. package/dist/index803.js.map +0 -1
  1829. package/dist/index804.js +0 -144
  1830. package/dist/index804.js.map +0 -1
  1831. package/dist/index805.js +0 -18
  1832. package/dist/index805.js.map +0 -1
  1833. package/dist/index806.js +0 -13
  1834. package/dist/index806.js.map +0 -1
  1835. package/dist/index807.js +0 -16
  1836. package/dist/index807.js.map +0 -1
  1837. package/dist/index808.js +0 -11
  1838. package/dist/index808.js.map +0 -1
  1839. package/dist/index809.js +0 -22
  1840. package/dist/index809.js.map +0 -1
  1841. package/dist/index81.js +0 -28
  1842. package/dist/index81.js.map +0 -1
  1843. package/dist/index810.js +0 -7
  1844. package/dist/index810.js.map +0 -1
  1845. package/dist/index811.js +0 -17
  1846. package/dist/index811.js.map +0 -1
  1847. package/dist/index812.js +0 -7
  1848. package/dist/index812.js.map +0 -1
  1849. package/dist/index813.js +0 -37
  1850. package/dist/index813.js.map +0 -1
  1851. package/dist/index814.js +0 -53
  1852. package/dist/index814.js.map +0 -1
  1853. package/dist/index815.js +0 -27
  1854. package/dist/index815.js.map +0 -1
  1855. package/dist/index816.js +0 -41
  1856. package/dist/index816.js.map +0 -1
  1857. package/dist/index817.js +0 -61
  1858. package/dist/index817.js.map +0 -1
  1859. package/dist/index818.js +0 -33
  1860. package/dist/index818.js.map +0 -1
  1861. package/dist/index819.js +0 -7
  1862. package/dist/index819.js.map +0 -1
  1863. package/dist/index82.js +0 -36
  1864. package/dist/index82.js.map +0 -1
  1865. package/dist/index820.js +0 -13
  1866. package/dist/index820.js.map +0 -1
  1867. package/dist/index821.js +0 -8
  1868. package/dist/index821.js.map +0 -1
  1869. package/dist/index822.js +0 -7
  1870. package/dist/index822.js.map +0 -1
  1871. package/dist/index823.js +0 -8
  1872. package/dist/index823.js.map +0 -1
  1873. package/dist/index824.js +0 -51
  1874. package/dist/index824.js.map +0 -1
  1875. package/dist/index825.js +0 -14
  1876. package/dist/index825.js.map +0 -1
  1877. package/dist/index826.js +0 -38
  1878. package/dist/index826.js.map +0 -1
  1879. package/dist/index827.js +0 -14
  1880. package/dist/index827.js.map +0 -1
  1881. package/dist/index828.js +0 -74
  1882. package/dist/index828.js.map +0 -1
  1883. package/dist/index829.js +0 -91
  1884. package/dist/index829.js.map +0 -1
  1885. package/dist/index83.js +0 -25
  1886. package/dist/index83.js.map +0 -1
  1887. package/dist/index830.js +0 -70
  1888. package/dist/index830.js.map +0 -1
  1889. package/dist/index831.js +0 -8
  1890. package/dist/index831.js.map +0 -1
  1891. package/dist/index832.js +0 -25
  1892. package/dist/index832.js.map +0 -1
  1893. package/dist/index833.js +0 -74
  1894. package/dist/index833.js.map +0 -1
  1895. package/dist/index834.js +0 -13
  1896. package/dist/index834.js.map +0 -1
  1897. package/dist/index835.js +0 -16
  1898. package/dist/index835.js.map +0 -1
  1899. package/dist/index836.js +0 -11
  1900. package/dist/index836.js.map +0 -1
  1901. package/dist/index837.js +0 -56
  1902. package/dist/index837.js.map +0 -1
  1903. package/dist/index838.js +0 -24
  1904. package/dist/index838.js.map +0 -1
  1905. package/dist/index839.js +0 -24
  1906. package/dist/index839.js.map +0 -1
  1907. package/dist/index84.js +0 -44
  1908. package/dist/index84.js.map +0 -1
  1909. package/dist/index840.js +0 -36
  1910. package/dist/index840.js.map +0 -1
  1911. package/dist/index841.js +0 -177
  1912. package/dist/index841.js.map +0 -1
  1913. package/dist/index842.js +0 -114
  1914. package/dist/index842.js.map +0 -1
  1915. package/dist/index843.js +0 -12
  1916. package/dist/index843.js.map +0 -1
  1917. package/dist/index844.js +0 -11
  1918. package/dist/index844.js.map +0 -1
  1919. package/dist/index845.js +0 -13
  1920. package/dist/index845.js.map +0 -1
  1921. package/dist/index846.js +0 -15
  1922. package/dist/index846.js.map +0 -1
  1923. package/dist/index847.js +0 -15
  1924. package/dist/index847.js.map +0 -1
  1925. package/dist/index848.js +0 -25
  1926. package/dist/index848.js.map +0 -1
  1927. package/dist/index849.js +0 -10
  1928. package/dist/index849.js.map +0 -1
  1929. package/dist/index85.js +0 -160
  1930. package/dist/index85.js.map +0 -1
  1931. package/dist/index850.js +0 -17
  1932. package/dist/index850.js.map +0 -1
  1933. package/dist/index851.js +0 -10
  1934. package/dist/index851.js.map +0 -1
  1935. package/dist/index852.js +0 -225
  1936. package/dist/index852.js.map +0 -1
  1937. package/dist/index853.js +0 -92
  1938. package/dist/index853.js.map +0 -1
  1939. package/dist/index854.js +0 -7
  1940. package/dist/index854.js.map +0 -1
  1941. package/dist/index855.js +0 -54
  1942. package/dist/index855.js.map +0 -1
  1943. package/dist/index856.js +0 -33
  1944. package/dist/index856.js.map +0 -1
  1945. package/dist/index857.js +0 -14
  1946. package/dist/index857.js.map +0 -1
  1947. package/dist/index858.js +0 -80
  1948. package/dist/index858.js.map +0 -1
  1949. package/dist/index859.js +0 -46
  1950. package/dist/index859.js.map +0 -1
  1951. package/dist/index86.js +0 -77
  1952. package/dist/index86.js.map +0 -1
  1953. package/dist/index860.js +0 -53
  1954. package/dist/index860.js.map +0 -1
  1955. package/dist/index861.js +0 -13
  1956. package/dist/index861.js.map +0 -1
  1957. package/dist/index862.js +0 -115
  1958. package/dist/index862.js.map +0 -1
  1959. package/dist/index863.js +0 -47
  1960. package/dist/index863.js.map +0 -1
  1961. package/dist/index864.js +0 -47
  1962. package/dist/index864.js.map +0 -1
  1963. package/dist/index865.js +0 -55
  1964. package/dist/index865.js.map +0 -1
  1965. package/dist/index866.js +0 -20
  1966. package/dist/index866.js.map +0 -1
  1967. package/dist/index867.js +0 -43
  1968. package/dist/index867.js.map +0 -1
  1969. package/dist/index868.js +0 -44
  1970. package/dist/index868.js.map +0 -1
  1971. package/dist/index869.js +0 -133
  1972. package/dist/index869.js.map +0 -1
  1973. package/dist/index87.js +0 -14
  1974. package/dist/index87.js.map +0 -1
  1975. package/dist/index870.js +0 -54
  1976. package/dist/index870.js.map +0 -1
  1977. package/dist/index871.js +0 -56
  1978. package/dist/index871.js.map +0 -1
  1979. package/dist/index872.js +0 -79
  1980. package/dist/index872.js.map +0 -1
  1981. package/dist/index873.js +0 -207
  1982. package/dist/index873.js.map +0 -1
  1983. package/dist/index874.js +0 -34
  1984. package/dist/index874.js.map +0 -1
  1985. package/dist/index875.js +0 -74
  1986. package/dist/index875.js.map +0 -1
  1987. package/dist/index876.js +0 -47
  1988. package/dist/index876.js.map +0 -1
  1989. package/dist/index877.js +0 -71
  1990. package/dist/index877.js.map +0 -1
  1991. package/dist/index878.js +0 -40
  1992. package/dist/index878.js.map +0 -1
  1993. package/dist/index879.js +0 -56
  1994. package/dist/index879.js.map +0 -1
  1995. package/dist/index88.js +0 -38
  1996. package/dist/index88.js.map +0 -1
  1997. package/dist/index880.js +0 -57
  1998. package/dist/index880.js.map +0 -1
  1999. package/dist/index881.js +0 -33
  2000. package/dist/index881.js.map +0 -1
  2001. package/dist/index882.js +0 -27
  2002. package/dist/index882.js.map +0 -1
  2003. package/dist/index883.js +0 -20
  2004. package/dist/index883.js.map +0 -1
  2005. package/dist/index884.js +0 -30
  2006. package/dist/index884.js.map +0 -1
  2007. package/dist/index885.js +0 -55
  2008. package/dist/index885.js.map +0 -1
  2009. package/dist/index886.js +0 -69
  2010. package/dist/index886.js.map +0 -1
  2011. package/dist/index887.js +0 -36
  2012. package/dist/index887.js.map +0 -1
  2013. package/dist/index888.js +0 -13
  2014. package/dist/index888.js.map +0 -1
  2015. package/dist/index889.js +0 -82
  2016. package/dist/index889.js.map +0 -1
  2017. package/dist/index89.js +0 -15
  2018. package/dist/index89.js.map +0 -1
  2019. package/dist/index890.js +0 -48
  2020. package/dist/index890.js.map +0 -1
  2021. package/dist/index891.js +0 -45
  2022. package/dist/index891.js.map +0 -1
  2023. package/dist/index892.js +0 -301
  2024. package/dist/index892.js.map +0 -1
  2025. package/dist/index893.js +0 -192
  2026. package/dist/index893.js.map +0 -1
  2027. package/dist/index894.js +0 -56
  2028. package/dist/index894.js.map +0 -1
  2029. package/dist/index895.js +0 -13
  2030. package/dist/index895.js.map +0 -1
  2031. package/dist/index896.js +0 -73
  2032. package/dist/index896.js.map +0 -1
  2033. package/dist/index897.js +0 -202
  2034. package/dist/index897.js.map +0 -1
  2035. package/dist/index898.js +0 -52
  2036. package/dist/index898.js.map +0 -1
  2037. package/dist/index899.js +0 -81
  2038. package/dist/index899.js.map +0 -1
  2039. package/dist/index9.js +0 -12
  2040. package/dist/index9.js.map +0 -1
  2041. package/dist/index90.js +0 -12
  2042. package/dist/index90.js.map +0 -1
  2043. package/dist/index900.js +0 -15
  2044. package/dist/index900.js.map +0 -1
  2045. package/dist/index901.js +0 -104
  2046. package/dist/index901.js.map +0 -1
  2047. package/dist/index902.js +0 -67
  2048. package/dist/index902.js.map +0 -1
  2049. package/dist/index903.js +0 -58
  2050. package/dist/index903.js.map +0 -1
  2051. package/dist/index904.js +0 -50
  2052. package/dist/index904.js.map +0 -1
  2053. package/dist/index905.js +0 -119
  2054. package/dist/index905.js.map +0 -1
  2055. package/dist/index906.js +0 -63
  2056. package/dist/index906.js.map +0 -1
  2057. package/dist/index907.js +0 -61
  2058. package/dist/index907.js.map +0 -1
  2059. package/dist/index908.js +0 -54
  2060. package/dist/index908.js.map +0 -1
  2061. package/dist/index909.js +0 -54
  2062. package/dist/index909.js.map +0 -1
  2063. package/dist/index91.js +0 -33
  2064. package/dist/index91.js.map +0 -1
  2065. package/dist/index910.js +0 -163
  2066. package/dist/index910.js.map +0 -1
  2067. package/dist/index911.js +0 -60
  2068. package/dist/index911.js.map +0 -1
  2069. package/dist/index912.js +0 -42
  2070. package/dist/index912.js.map +0 -1
  2071. package/dist/index913.js +0 -19
  2072. package/dist/index913.js.map +0 -1
  2073. package/dist/index914.js +0 -10
  2074. package/dist/index914.js.map +0 -1
  2075. package/dist/index915.js +0 -119
  2076. package/dist/index915.js.map +0 -1
  2077. package/dist/index916.js +0 -64
  2078. package/dist/index916.js.map +0 -1
  2079. package/dist/index917.js +0 -29
  2080. package/dist/index917.js.map +0 -1
  2081. package/dist/index918.js +0 -38
  2082. package/dist/index918.js.map +0 -1
  2083. package/dist/index919.js +0 -56
  2084. package/dist/index919.js.map +0 -1
  2085. package/dist/index92.js +0 -19
  2086. package/dist/index92.js.map +0 -1
  2087. package/dist/index920.js +0 -63
  2088. package/dist/index920.js.map +0 -1
  2089. package/dist/index921.js +0 -10
  2090. package/dist/index921.js.map +0 -1
  2091. package/dist/index922.js +0 -13
  2092. package/dist/index922.js.map +0 -1
  2093. package/dist/index923.js +0 -52
  2094. package/dist/index923.js.map +0 -1
  2095. package/dist/index924.js +0 -215
  2096. package/dist/index924.js.map +0 -1
  2097. package/dist/index925.js +0 -24
  2098. package/dist/index925.js.map +0 -1
  2099. package/dist/index926.js +0 -16
  2100. package/dist/index926.js.map +0 -1
  2101. package/dist/index927.js +0 -53
  2102. package/dist/index927.js.map +0 -1
  2103. package/dist/index928.js +0 -23
  2104. package/dist/index928.js.map +0 -1
  2105. package/dist/index929.js +0 -9
  2106. package/dist/index929.js.map +0 -1
  2107. package/dist/index93.js +0 -20
  2108. package/dist/index93.js.map +0 -1
  2109. package/dist/index930.js +0 -30
  2110. package/dist/index930.js.map +0 -1
  2111. package/dist/index931.js +0 -17
  2112. package/dist/index931.js.map +0 -1
  2113. package/dist/index932.js +0 -17
  2114. package/dist/index932.js.map +0 -1
  2115. package/dist/index933.js +0 -32
  2116. package/dist/index933.js.map +0 -1
  2117. package/dist/index934.js +0 -14
  2118. package/dist/index934.js.map +0 -1
  2119. package/dist/index935.js +0 -8
  2120. package/dist/index935.js.map +0 -1
  2121. package/dist/index936.js +0 -25
  2122. package/dist/index936.js.map +0 -1
  2123. package/dist/index937.js +0 -48
  2124. package/dist/index937.js.map +0 -1
  2125. package/dist/index938.js +0 -39
  2126. package/dist/index938.js.map +0 -1
  2127. package/dist/index939.js +0 -40
  2128. package/dist/index939.js.map +0 -1
  2129. package/dist/index94.js +0 -25
  2130. package/dist/index94.js.map +0 -1
  2131. package/dist/index940.js +0 -16
  2132. package/dist/index940.js.map +0 -1
  2133. package/dist/index941.js +0 -11
  2134. package/dist/index941.js.map +0 -1
  2135. package/dist/index942.js +0 -91
  2136. package/dist/index942.js.map +0 -1
  2137. package/dist/index943.js +0 -65
  2138. package/dist/index943.js.map +0 -1
  2139. package/dist/index944.js +0 -66
  2140. package/dist/index944.js.map +0 -1
  2141. package/dist/index945.js +0 -230
  2142. package/dist/index945.js.map +0 -1
  2143. package/dist/index946.js +0 -41
  2144. package/dist/index946.js.map +0 -1
  2145. package/dist/index947.js +0 -17
  2146. package/dist/index947.js.map +0 -1
  2147. package/dist/index948.js +0 -23
  2148. package/dist/index948.js.map +0 -1
  2149. package/dist/index949.js +0 -57
  2150. package/dist/index949.js.map +0 -1
  2151. package/dist/index95.js +0 -24
  2152. package/dist/index95.js.map +0 -1
  2153. package/dist/index950.js +0 -29
  2154. package/dist/index950.js.map +0 -1
  2155. package/dist/index951.js +0 -126
  2156. package/dist/index951.js.map +0 -1
  2157. package/dist/index952.js +0 -126
  2158. package/dist/index952.js.map +0 -1
  2159. package/dist/index953.js +0 -188
  2160. package/dist/index953.js.map +0 -1
  2161. package/dist/index954.js +0 -256
  2162. package/dist/index954.js.map +0 -1
  2163. package/dist/index955.js +0 -29
  2164. package/dist/index955.js.map +0 -1
  2165. package/dist/index956.js +0 -310
  2166. package/dist/index956.js.map +0 -1
  2167. package/dist/index957.js +0 -79
  2168. package/dist/index957.js.map +0 -1
  2169. package/dist/index958.js +0 -40
  2170. package/dist/index958.js.map +0 -1
  2171. package/dist/index959.js +0 -24
  2172. package/dist/index959.js.map +0 -1
  2173. package/dist/index96.js +0 -12
  2174. package/dist/index96.js.map +0 -1
  2175. package/dist/index960.js +0 -40
  2176. package/dist/index960.js.map +0 -1
  2177. package/dist/index961.js +0 -15
  2178. package/dist/index961.js.map +0 -1
  2179. package/dist/index962.js +0 -250
  2180. package/dist/index962.js.map +0 -1
  2181. package/dist/index963.js +0 -326
  2182. package/dist/index963.js.map +0 -1
  2183. package/dist/index964.js +0 -70
  2184. package/dist/index964.js.map +0 -1
  2185. package/dist/index965.js +0 -313
  2186. package/dist/index965.js.map +0 -1
  2187. package/dist/index966.js +0 -56
  2188. package/dist/index966.js.map +0 -1
  2189. package/dist/index967.js +0 -71
  2190. package/dist/index967.js.map +0 -1
  2191. package/dist/index968.js +0 -360
  2192. package/dist/index968.js.map +0 -1
  2193. package/dist/index969.js +0 -37
  2194. package/dist/index969.js.map +0 -1
  2195. package/dist/index97.js +0 -7
  2196. package/dist/index97.js.map +0 -1
  2197. package/dist/index970.js +0 -128
  2198. package/dist/index970.js.map +0 -1
  2199. package/dist/index971.js +0 -79
  2200. package/dist/index971.js.map +0 -1
  2201. package/dist/index972.js +0 -9
  2202. package/dist/index972.js.map +0 -1
  2203. package/dist/index973.js +0 -110
  2204. package/dist/index973.js.map +0 -1
  2205. package/dist/index974.js +0 -18
  2206. package/dist/index974.js.map +0 -1
  2207. package/dist/index975.js +0 -16
  2208. package/dist/index975.js.map +0 -1
  2209. package/dist/index976.js +0 -68
  2210. package/dist/index976.js.map +0 -1
  2211. package/dist/index977.js +0 -57
  2212. package/dist/index977.js.map +0 -1
  2213. package/dist/index978.js +0 -11
  2214. package/dist/index978.js.map +0 -1
  2215. package/dist/index979.js +0 -333
  2216. package/dist/index979.js.map +0 -1
  2217. package/dist/index98.js +0 -28
  2218. package/dist/index98.js.map +0 -1
  2219. package/dist/index980.js +0 -23
  2220. package/dist/index980.js.map +0 -1
  2221. package/dist/index981.js +0 -90
  2222. package/dist/index981.js.map +0 -1
  2223. package/dist/index982.js +0 -33
  2224. package/dist/index982.js.map +0 -1
  2225. package/dist/index983.js +0 -17
  2226. package/dist/index983.js.map +0 -1
  2227. package/dist/index984.js +0 -45
  2228. package/dist/index984.js.map +0 -1
  2229. package/dist/index985.js +0 -233
  2230. package/dist/index985.js.map +0 -1
  2231. package/dist/index986.js +0 -19
  2232. package/dist/index986.js.map +0 -1
  2233. package/dist/index987.js +0 -48
  2234. package/dist/index987.js.map +0 -1
  2235. package/dist/index988.js +0 -116
  2236. package/dist/index988.js.map +0 -1
  2237. package/dist/index989.js +0 -23
  2238. package/dist/index989.js.map +0 -1
  2239. package/dist/index99.js +0 -25
  2240. package/dist/index99.js.map +0 -1
  2241. package/dist/index990.js +0 -195
  2242. package/dist/index990.js.map +0 -1
  2243. package/dist/index991.js +0 -38
  2244. package/dist/index991.js.map +0 -1
  2245. package/dist/index992.js +0 -77
  2246. package/dist/index992.js.map +0 -1
  2247. package/dist/index993.js +0 -8
  2248. package/dist/index993.js.map +0 -1
  2249. package/dist/index994.js +0 -8
  2250. package/dist/index994.js.map +0 -1
  2251. package/dist/index995.js +0 -19
  2252. package/dist/index995.js.map +0 -1
  2253. package/dist/index996.js +0 -28
  2254. package/dist/index996.js.map +0 -1
  2255. package/dist/index997.js +0 -55
  2256. package/dist/index997.js.map +0 -1
  2257. package/dist/index998.js +0 -47
  2258. package/dist/index998.js.map +0 -1
  2259. package/dist/index999.js +0 -45
  2260. package/dist/index999.js.map +0 -1
  2261. package/dist/libs/core/api/apiClient.d.ts +0 -3
  2262. package/dist/libs/core/api/apiClient.d.ts.map +0 -1
  2263. package/dist/libs/core/api/apiService.d.ts +0 -10
  2264. package/dist/libs/core/api/apiService.d.ts.map +0 -1
  2265. package/dist/libs/core/api/errorHandlers.d.ts +0 -6
  2266. package/dist/libs/core/api/errorHandlers.d.ts.map +0 -1
  2267. package/dist/libs/core/api/index.d.ts +0 -6
  2268. package/dist/libs/core/api/index.d.ts.map +0 -1
  2269. package/dist/libs/core/constants/apiEndPoints.d.ts +0 -70
  2270. package/dist/libs/core/constants/apiEndPoints.d.ts.map +0 -1
  2271. package/dist/libs/core/constants/commonConstants.d.ts +0 -94
  2272. package/dist/libs/core/constants/commonConstants.d.ts.map +0 -1
  2273. package/dist/libs/core/constants/commonLookupCodes.d.ts +0 -5
  2274. package/dist/libs/core/constants/commonLookupCodes.d.ts.map +0 -1
  2275. package/dist/libs/core/constants/dtoNames.d.ts +0 -18
  2276. package/dist/libs/core/constants/dtoNames.d.ts.map +0 -1
  2277. package/dist/libs/core/constants/index.d.ts +0 -7
  2278. package/dist/libs/core/constants/index.d.ts.map +0 -1
  2279. package/dist/libs/core/constants/masterCodes.d.ts +0 -74
  2280. package/dist/libs/core/constants/masterCodes.d.ts.map +0 -1
  2281. package/dist/libs/core/context/AppThemeContext.d.ts +0 -23
  2282. package/dist/libs/core/context/AppThemeContext.d.ts.map +0 -1
  2283. package/dist/libs/core/error/ErrorBoundary.d.ts +0 -17
  2284. package/dist/libs/core/error/ErrorBoundary.d.ts.map +0 -1
  2285. package/dist/libs/core/error/RouteErrorBoundary.d.ts +0 -2
  2286. package/dist/libs/core/error/RouteErrorBoundary.d.ts.map +0 -1
  2287. package/dist/libs/core/error/index.d.ts +0 -3
  2288. package/dist/libs/core/error/index.d.ts.map +0 -1
  2289. package/dist/libs/core/guards/AuthGuard.d.ts +0 -4
  2290. package/dist/libs/core/guards/AuthGuard.d.ts.map +0 -1
  2291. package/dist/libs/core/hooks/index.d.ts +0 -10
  2292. package/dist/libs/core/hooks/index.d.ts.map +0 -1
  2293. package/dist/libs/core/hooks/useAppDispatch.d.ts +0 -7
  2294. package/dist/libs/core/hooks/useAppDispatch.d.ts.map +0 -1
  2295. package/dist/libs/core/hooks/useAuth.d.ts +0 -9
  2296. package/dist/libs/core/hooks/useAuth.d.ts.map +0 -1
  2297. package/dist/libs/core/hooks/useDevice.d.ts +0 -9
  2298. package/dist/libs/core/hooks/useDevice.d.ts.map +0 -1
  2299. package/dist/libs/core/hooks/useInjectSlice.d.ts +0 -6
  2300. package/dist/libs/core/hooks/useInjectSlice.d.ts.map +0 -1
  2301. package/dist/libs/core/hooks/useMasterFetch.d.ts +0 -12
  2302. package/dist/libs/core/hooks/useMasterFetch.d.ts.map +0 -1
  2303. package/dist/libs/core/hooks/useOnChangeHandlers.d.ts +0 -11
  2304. package/dist/libs/core/hooks/useOnChangeHandlers.d.ts.map +0 -1
  2305. package/dist/libs/core/hooks/useParentSliceName.d.ts +0 -3
  2306. package/dist/libs/core/hooks/useParentSliceName.d.ts.map +0 -1
  2307. package/dist/libs/core/hooks/useSnackBarComponent.d.ts +0 -1
  2308. package/dist/libs/core/hooks/useSnackBarComponent.d.ts.map +0 -1
  2309. package/dist/libs/core/index.d.ts +0 -11
  2310. package/dist/libs/core/index.d.ts.map +0 -1
  2311. package/dist/libs/core/providers/AppThemeProvider.d.ts +0 -6
  2312. package/dist/libs/core/providers/AppThemeProvider.d.ts.map +0 -1
  2313. package/dist/libs/core/providers/index.d.ts +0 -2
  2314. package/dist/libs/core/providers/index.d.ts.map +0 -1
  2315. package/dist/libs/core/types/remoteConfig.d.ts +0 -37
  2316. package/dist/libs/core/types/remoteConfig.d.ts.map +0 -1
  2317. package/dist/libs/core/types/routeTypes.d.ts +0 -9
  2318. package/dist/libs/core/types/routeTypes.d.ts.map +0 -1
  2319. package/dist/libs/core/utils/addGridItemFn.d.ts +0 -15
  2320. package/dist/libs/core/utils/addGridItemFn.d.ts.map +0 -1
  2321. package/dist/libs/core/utils/commonFunctions.d.ts +0 -42
  2322. package/dist/libs/core/utils/commonFunctions.d.ts.map +0 -1
  2323. package/dist/libs/core/utils/createDTOActions.d.ts +0 -15
  2324. package/dist/libs/core/utils/createDTOActions.d.ts.map +0 -1
  2325. package/dist/libs/core/utils/cryptoUtil.d.ts +0 -9
  2326. package/dist/libs/core/utils/cryptoUtil.d.ts.map +0 -1
  2327. package/dist/libs/core/utils/dateUtilities.d.ts +0 -23
  2328. package/dist/libs/core/utils/dateUtilities.d.ts.map +0 -1
  2329. package/dist/libs/core/utils/gridColumnUtilities.d.ts +0 -6
  2330. package/dist/libs/core/utils/gridColumnUtilities.d.ts.map +0 -1
  2331. package/dist/libs/core/utils/index.d.ts +0 -14
  2332. package/dist/libs/core/utils/index.d.ts.map +0 -1
  2333. package/dist/libs/core/utils/loggers.d.ts +0 -8
  2334. package/dist/libs/core/utils/loggers.d.ts.map +0 -1
  2335. package/dist/libs/core/utils/sharedFormActions.d.ts +0 -26
  2336. package/dist/libs/core/utils/sharedFormActions.d.ts.map +0 -1
  2337. package/dist/libs/core/utils/validateDto.d.ts +0 -4
  2338. package/dist/libs/core/utils/validateDto.d.ts.map +0 -1
  2339. package/dist/libs/core/utils/validateFields.d.ts +0 -20
  2340. package/dist/libs/core/utils/validateFields.d.ts.map +0 -1
  2341. package/dist/libs/index.d.ts +0 -3
  2342. package/dist/libs/index.d.ts.map +0 -1
  2343. package/dist/libs/shared/UI/CustomSnackbar.d.ts +0 -12
  2344. package/dist/libs/shared/UI/CustomSnackbar.d.ts.map +0 -1
  2345. package/dist/libs/shared/UI/HelperTextCommon.d.ts +0 -4
  2346. package/dist/libs/shared/UI/HelperTextCommon.d.ts.map +0 -1
  2347. package/dist/libs/shared/UI/NotFound.d.ts +0 -2
  2348. package/dist/libs/shared/UI/NotFound.d.ts.map +0 -1
  2349. package/dist/libs/shared/UI/accordian/AccordianGroup.d.ts +0 -5
  2350. package/dist/libs/shared/UI/accordian/AccordianGroup.d.ts.map +0 -1
  2351. package/dist/libs/shared/UI/accordian/AccordianSection.d.ts +0 -13
  2352. package/dist/libs/shared/UI/accordian/AccordianSection.d.ts.map +0 -1
  2353. package/dist/libs/shared/UI/button/AppButton.d.ts +0 -3
  2354. package/dist/libs/shared/UI/button/AppButton.d.ts.map +0 -1
  2355. package/dist/libs/shared/UI/button/FooterButton.d.ts +0 -13
  2356. package/dist/libs/shared/UI/button/FooterButton.d.ts.map +0 -1
  2357. package/dist/libs/shared/UI/button/TestButton.d.ts +0 -3
  2358. package/dist/libs/shared/UI/button/TestButton.d.ts.map +0 -1
  2359. package/dist/libs/shared/UI/calender/CustomDatePicker.d.ts +0 -5
  2360. package/dist/libs/shared/UI/calender/CustomDatePicker.d.ts.map +0 -1
  2361. package/dist/libs/shared/UI/calender/CustomDatePicker.type.d.ts +0 -14
  2362. package/dist/libs/shared/UI/calender/CustomDatePicker.type.d.ts.map +0 -1
  2363. package/dist/libs/shared/UI/checkbox/AppCheckbox.d.ts +0 -10
  2364. package/dist/libs/shared/UI/checkbox/AppCheckbox.d.ts.map +0 -1
  2365. package/dist/libs/shared/UI/checkbox/CheckboxList.d.ts +0 -5
  2366. package/dist/libs/shared/UI/checkbox/CheckboxList.d.ts.map +0 -1
  2367. package/dist/libs/shared/UI/checkbox/SingleCheckbox.d.ts +0 -6
  2368. package/dist/libs/shared/UI/checkbox/SingleCheckbox.d.ts.map +0 -1
  2369. package/dist/libs/shared/UI/checkbox/useCheckboxListController.d.ts +0 -18
  2370. package/dist/libs/shared/UI/checkbox/useCheckboxListController.d.ts.map +0 -1
  2371. package/dist/libs/shared/UI/checkbox/useSingleCheckboxController.d.ts +0 -22
  2372. package/dist/libs/shared/UI/checkbox/useSingleCheckboxController.d.ts.map +0 -1
  2373. package/dist/libs/shared/UI/chip/AppChip.d.ts +0 -5
  2374. package/dist/libs/shared/UI/chip/AppChip.d.ts.map +0 -1
  2375. package/dist/libs/shared/UI/dataGrid/DataGrid.d.ts +0 -6
  2376. package/dist/libs/shared/UI/dataGrid/DataGrid.d.ts.map +0 -1
  2377. package/dist/libs/shared/UI/dataGrid/dataGridController.d.ts +0 -23
  2378. package/dist/libs/shared/UI/dataGrid/dataGridController.d.ts.map +0 -1
  2379. package/dist/libs/shared/UI/dropdown/AutocompleteInputField.d.ts +0 -6
  2380. package/dist/libs/shared/UI/dropdown/AutocompleteInputField.d.ts.map +0 -1
  2381. package/dist/libs/shared/UI/dropdown/SelectInputField.d.ts +0 -3
  2382. package/dist/libs/shared/UI/dropdown/SelectInputField.d.ts.map +0 -1
  2383. package/dist/libs/shared/UI/dropdown/SelectTextInputField.d.ts +0 -4
  2384. package/dist/libs/shared/UI/dropdown/SelectTextInputField.d.ts.map +0 -1
  2385. package/dist/libs/shared/UI/dropdown/selectTextInputField.types.d.ts +0 -11
  2386. package/dist/libs/shared/UI/dropdown/selectTextInputField.types.d.ts.map +0 -1
  2387. package/dist/libs/shared/UI/grid/GridContainer.d.ts +0 -8
  2388. package/dist/libs/shared/UI/grid/GridContainer.d.ts.map +0 -1
  2389. package/dist/libs/shared/UI/grid/GridItem.d.ts +0 -3
  2390. package/dist/libs/shared/UI/grid/GridItem.d.ts.map +0 -1
  2391. package/dist/libs/shared/UI/heading/CustomHeading.d.ts +0 -5
  2392. package/dist/libs/shared/UI/heading/CustomHeading.d.ts.map +0 -1
  2393. package/dist/libs/shared/UI/index.d.ts +0 -51
  2394. package/dist/libs/shared/UI/index.d.ts.map +0 -1
  2395. package/dist/libs/shared/UI/indicator/AutoSaveIndicator.d.ts +0 -5
  2396. package/dist/libs/shared/UI/indicator/AutoSaveIndicator.d.ts.map +0 -1
  2397. package/dist/libs/shared/UI/indicator/Infopair.d.ts +0 -7
  2398. package/dist/libs/shared/UI/indicator/Infopair.d.ts.map +0 -1
  2399. package/dist/libs/shared/UI/maincard/Maincard.d.ts +0 -5
  2400. package/dist/libs/shared/UI/maincard/Maincard.d.ts.map +0 -1
  2401. package/dist/libs/shared/UI/modal/CommonModal.d.ts +0 -4
  2402. package/dist/libs/shared/UI/modal/CommonModal.d.ts.map +0 -1
  2403. package/dist/libs/shared/UI/modal/ConfirmationModal.d.ts +0 -16
  2404. package/dist/libs/shared/UI/modal/ConfirmationModal.d.ts.map +0 -1
  2405. package/dist/libs/shared/UI/modal/GlobalConfirmationModal.d.ts +0 -3
  2406. package/dist/libs/shared/UI/modal/GlobalConfirmationModal.d.ts.map +0 -1
  2407. package/dist/libs/shared/UI/modal/GlobalSnackbar.d.ts +0 -3
  2408. package/dist/libs/shared/UI/modal/GlobalSnackbar.d.ts.map +0 -1
  2409. package/dist/libs/shared/UI/modal/SubmitModal.d.ts +0 -5
  2410. package/dist/libs/shared/UI/modal/SubmitModal.d.ts.map +0 -1
  2411. package/dist/libs/shared/UI/outlinedCard/CardDetails.d.ts +0 -13
  2412. package/dist/libs/shared/UI/outlinedCard/CardDetails.d.ts.map +0 -1
  2413. package/dist/libs/shared/UI/outlinedCard/OutlinedCard.d.ts +0 -5
  2414. package/dist/libs/shared/UI/outlinedCard/OutlinedCard.d.ts.map +0 -1
  2415. package/dist/libs/shared/UI/previewText/PreviewText.d.ts +0 -5
  2416. package/dist/libs/shared/UI/previewText/PreviewText.d.ts.map +0 -1
  2417. package/dist/libs/shared/UI/previewText/PreviewText.type.d.ts +0 -7
  2418. package/dist/libs/shared/UI/previewText/PreviewText.type.d.ts.map +0 -1
  2419. package/dist/libs/shared/UI/radio/RadioButton.d.ts +0 -5
  2420. package/dist/libs/shared/UI/radio/RadioButton.d.ts.map +0 -1
  2421. package/dist/libs/shared/UI/radio/RadioButton.type.d.ts +0 -19
  2422. package/dist/libs/shared/UI/radio/RadioButton.type.d.ts.map +0 -1
  2423. package/dist/libs/shared/UI/radio/radioButtonController.d.ts +0 -32
  2424. package/dist/libs/shared/UI/radio/radioButtonController.d.ts.map +0 -1
  2425. package/dist/libs/shared/UI/rowHeading/Row.d.ts +0 -11
  2426. package/dist/libs/shared/UI/rowHeading/Row.d.ts.map +0 -1
  2427. package/dist/libs/shared/UI/stepper/components/CustomStepper.d.ts +0 -3
  2428. package/dist/libs/shared/UI/stepper/components/CustomStepper.d.ts.map +0 -1
  2429. package/dist/libs/shared/UI/stepper/components/SectionRenderer.d.ts +0 -3
  2430. package/dist/libs/shared/UI/stepper/components/SectionRenderer.d.ts.map +0 -1
  2431. package/dist/libs/shared/UI/stepper/components/StepRenderer.d.ts +0 -14
  2432. package/dist/libs/shared/UI/stepper/components/StepRenderer.d.ts.map +0 -1
  2433. package/dist/libs/shared/UI/stepper/hooks/useStepper.d.ts +0 -17
  2434. package/dist/libs/shared/UI/stepper/hooks/useStepper.d.ts.map +0 -1
  2435. package/dist/libs/shared/UI/stepper/index.d.ts +0 -6
  2436. package/dist/libs/shared/UI/stepper/index.d.ts.map +0 -1
  2437. package/dist/libs/shared/UI/stepper/types/stepperTypes.d.ts +0 -37
  2438. package/dist/libs/shared/UI/stepper/types/stepperTypes.d.ts.map +0 -1
  2439. package/dist/libs/shared/UI/textInput/TextInputField.d.ts +0 -5
  2440. package/dist/libs/shared/UI/textInput/TextInputField.d.ts.map +0 -1
  2441. package/dist/libs/shared/UI/textInput/TextInputField.type.d.ts +0 -24
  2442. package/dist/libs/shared/UI/textInput/TextInputField.type.d.ts.map +0 -1
  2443. package/dist/libs/shared/UI/toolTips/CustomizedTooltip.d.ts +0 -10
  2444. package/dist/libs/shared/UI/toolTips/CustomizedTooltip.d.ts.map +0 -1
  2445. package/dist/libs/shared/UI/typography/Typography2.d.ts +0 -5
  2446. package/dist/libs/shared/UI/typography/Typography2.d.ts.map +0 -1
  2447. package/dist/libs/shared/components/addressMultiple/AddressInfo.d.ts +0 -5
  2448. package/dist/libs/shared/components/addressMultiple/AddressInfo.d.ts.map +0 -1
  2449. package/dist/libs/shared/components/addressMultiple/AddressMultiple.d.ts +0 -5
  2450. package/dist/libs/shared/components/addressMultiple/AddressMultiple.d.ts.map +0 -1
  2451. package/dist/libs/shared/components/addressMultiple/addressDto.d.ts +0 -139
  2452. package/dist/libs/shared/components/addressMultiple/addressDto.d.ts.map +0 -1
  2453. package/dist/libs/shared/components/addressMultiple/addressInfoController.d.ts +0 -33
  2454. package/dist/libs/shared/components/addressMultiple/addressInfoController.d.ts.map +0 -1
  2455. package/dist/libs/shared/components/addressMultiple/addressInfoDto.d.ts +0 -50
  2456. package/dist/libs/shared/components/addressMultiple/addressInfoDto.d.ts.map +0 -1
  2457. package/dist/libs/shared/components/addressMultiple/addressMultipleController.d.ts +0 -97
  2458. package/dist/libs/shared/components/addressMultiple/addressMultipleController.d.ts.map +0 -1
  2459. package/dist/libs/shared/components/addressMultiple/addressUtils.d.ts +0 -40
  2460. package/dist/libs/shared/components/addressMultiple/addressUtils.d.ts.map +0 -1
  2461. package/dist/libs/shared/components/agePanel/AgePanel.d.ts +0 -5
  2462. package/dist/libs/shared/components/agePanel/AgePanel.d.ts.map +0 -1
  2463. package/dist/libs/shared/components/agePanel/agePanelController.d.ts +0 -35
  2464. package/dist/libs/shared/components/agePanel/agePanelController.d.ts.map +0 -1
  2465. package/dist/libs/shared/components/agePanel/agePanelDto.d.ts +0 -33
  2466. package/dist/libs/shared/components/agePanel/agePanelDto.d.ts.map +0 -1
  2467. package/dist/libs/shared/components/agePanel/agePanelUtils.d.ts +0 -16
  2468. package/dist/libs/shared/components/agePanel/agePanelUtils.d.ts.map +0 -1
  2469. package/dist/libs/shared/components/identificationPanel/IdentificationPanel.d.ts +0 -5
  2470. package/dist/libs/shared/components/identificationPanel/IdentificationPanel.d.ts.map +0 -1
  2471. package/dist/libs/shared/components/identificationPanel/identificationPanelConfig.d.ts +0 -4
  2472. package/dist/libs/shared/components/identificationPanel/identificationPanelConfig.d.ts.map +0 -1
  2473. package/dist/libs/shared/components/identificationPanel/identificationPanelDTO.d.ts +0 -59
  2474. package/dist/libs/shared/components/identificationPanel/identificationPanelDTO.d.ts.map +0 -1
  2475. package/dist/libs/shared/components/identificationPanel/useIdentificationPanel.d.ts +0 -63
  2476. package/dist/libs/shared/components/identificationPanel/useIdentificationPanel.d.ts.map +0 -1
  2477. package/dist/libs/shared/components/index.d.ts +0 -48
  2478. package/dist/libs/shared/components/index.d.ts.map +0 -1
  2479. package/dist/libs/shared/components/mobileVerification/MobileVerification.d.ts +0 -5
  2480. package/dist/libs/shared/components/mobileVerification/MobileVerification.d.ts.map +0 -1
  2481. package/dist/libs/shared/components/mobileVerification/mobileVerificationController.d.ts +0 -38
  2482. package/dist/libs/shared/components/mobileVerification/mobileVerificationController.d.ts.map +0 -1
  2483. package/dist/libs/shared/components/mobileVerification/mobileVerificationDTO.d.ts +0 -43
  2484. package/dist/libs/shared/components/mobileVerification/mobileVerificationDTO.d.ts.map +0 -1
  2485. package/dist/libs/shared/components/mobileVerification/mobileVerificationTypes.d.ts +0 -19
  2486. package/dist/libs/shared/components/mobileVerification/mobileVerificationTypes.d.ts.map +0 -1
  2487. package/dist/libs/shared/components/mobileVerification/modal/OtpModal.d.ts +0 -10
  2488. package/dist/libs/shared/components/mobileVerification/modal/OtpModal.d.ts.map +0 -1
  2489. package/dist/libs/shared/components/mobileVerification/modal/index.d.ts +0 -2
  2490. package/dist/libs/shared/components/mobileVerification/modal/index.d.ts.map +0 -1
  2491. package/dist/libs/shared/components/mobileVerification/validateMobileVerification.d.ts +0 -5
  2492. package/dist/libs/shared/components/mobileVerification/validateMobileVerification.d.ts.map +0 -1
  2493. package/dist/libs/shared/components/orgnization/OrganizationInfo.d.ts +0 -5
  2494. package/dist/libs/shared/components/orgnization/OrganizationInfo.d.ts.map +0 -1
  2495. package/dist/libs/shared/components/orgnization/organization.type.d.ts +0 -6
  2496. package/dist/libs/shared/components/orgnization/organization.type.d.ts.map +0 -1
  2497. package/dist/libs/shared/components/orgnization/organizationInfoDto.d.ts +0 -148
  2498. package/dist/libs/shared/components/orgnization/organizationInfoDto.d.ts.map +0 -1
  2499. package/dist/libs/shared/components/orgnization/orgnizationApiEndpoints.d.ts +0 -5
  2500. package/dist/libs/shared/components/orgnization/orgnizationApiEndpoints.d.ts.map +0 -1
  2501. package/dist/libs/shared/components/orgnization/useOrganizationInfoController.d.ts +0 -94
  2502. package/dist/libs/shared/components/orgnization/useOrganizationInfoController.d.ts.map +0 -1
  2503. package/dist/libs/shared/components/orgnization/utils/addOrganization.d.ts +0 -118
  2504. package/dist/libs/shared/components/orgnization/utils/addOrganization.d.ts.map +0 -1
  2505. package/dist/libs/shared/components/orgnization/utils/index.d.ts +0 -3
  2506. package/dist/libs/shared/components/orgnization/utils/index.d.ts.map +0 -1
  2507. package/dist/libs/shared/components/orgnization/utils/organizationApiConfig.d.ts +0 -15
  2508. package/dist/libs/shared/components/orgnization/utils/organizationApiConfig.d.ts.map +0 -1
  2509. package/dist/libs/shared/components/personalInfo/PersonalDetails.d.ts +0 -4
  2510. package/dist/libs/shared/components/personalInfo/PersonalDetails.d.ts.map +0 -1
  2511. package/dist/libs/shared/components/personalInfo/personalDetailsController.d.ts +0 -87
  2512. package/dist/libs/shared/components/personalInfo/personalDetailsController.d.ts.map +0 -1
  2513. package/dist/libs/shared/components/personalInfo/personalDetailsDto.d.ts +0 -148
  2514. package/dist/libs/shared/components/personalInfo/personalDetailsDto.d.ts.map +0 -1
  2515. package/dist/libs/shared/components/physicalDescription/components/HeightRangePanel.d.ts +0 -5
  2516. package/dist/libs/shared/components/physicalDescription/components/HeightRangePanel.d.ts.map +0 -1
  2517. package/dist/libs/shared/components/physicalDescription/components/IdentificationMarksPanel.d.ts +0 -5
  2518. package/dist/libs/shared/components/physicalDescription/components/IdentificationMarksPanel.d.ts.map +0 -1
  2519. package/dist/libs/shared/components/physicalDescription/components/PhysicalCharacteristicsPanel.d.ts +0 -5
  2520. package/dist/libs/shared/components/physicalDescription/components/PhysicalCharacteristicsPanel.d.ts.map +0 -1
  2521. package/dist/libs/shared/components/physicalDescription/components/index.d.ts +0 -4
  2522. package/dist/libs/shared/components/physicalDescription/components/index.d.ts.map +0 -1
  2523. package/dist/libs/shared/components/physicalDescription/controller/index.d.ts +0 -5
  2524. package/dist/libs/shared/components/physicalDescription/controller/index.d.ts.map +0 -1
  2525. package/dist/libs/shared/components/physicalDescription/controller/physicalDescriptionController.d.ts +0 -170
  2526. package/dist/libs/shared/components/physicalDescription/controller/physicalDescriptionController.d.ts.map +0 -1
  2527. package/dist/libs/shared/components/physicalDescription/controller/useHeightRangePanel.d.ts +0 -33
  2528. package/dist/libs/shared/components/physicalDescription/controller/useHeightRangePanel.d.ts.map +0 -1
  2529. package/dist/libs/shared/components/physicalDescription/controller/useIdentificationMarksPanel.d.ts +0 -54
  2530. package/dist/libs/shared/components/physicalDescription/controller/useIdentificationMarksPanel.d.ts.map +0 -1
  2531. package/dist/libs/shared/components/physicalDescription/controller/usePhysicalCharacteristicsPanel.d.ts +0 -66
  2532. package/dist/libs/shared/components/physicalDescription/controller/usePhysicalCharacteristicsPanel.d.ts.map +0 -1
  2533. package/dist/libs/shared/components/physicalDescription/definations/physicalDescriptionConstants.d.ts +0 -44
  2534. package/dist/libs/shared/components/physicalDescription/definations/physicalDescriptionConstants.d.ts.map +0 -1
  2535. package/dist/libs/shared/components/physicalDescription/hooks/index.d.ts +0 -2
  2536. package/dist/libs/shared/components/physicalDescription/hooks/index.d.ts.map +0 -1
  2537. package/dist/libs/shared/components/physicalDescription/hooks/useGetPhyDescCategoryOptions.d.ts +0 -5
  2538. package/dist/libs/shared/components/physicalDescription/hooks/useGetPhyDescCategoryOptions.d.ts.map +0 -1
  2539. package/dist/libs/shared/components/physicalDescription/model/DressTypeDTO.d.ts +0 -54
  2540. package/dist/libs/shared/components/physicalDescription/model/DressTypeDTO.d.ts.map +0 -1
  2541. package/dist/libs/shared/components/physicalDescription/model/HeightRangeDTO.d.ts +0 -42
  2542. package/dist/libs/shared/components/physicalDescription/model/HeightRangeDTO.d.ts.map +0 -1
  2543. package/dist/libs/shared/components/physicalDescription/model/IdentificationMarksDTO.d.ts +0 -57
  2544. package/dist/libs/shared/components/physicalDescription/model/IdentificationMarksDTO.d.ts.map +0 -1
  2545. package/dist/libs/shared/components/physicalDescription/model/PhysicalCharacteristicsDTO.d.ts +0 -68
  2546. package/dist/libs/shared/components/physicalDescription/model/PhysicalCharacteristicsDTO.d.ts.map +0 -1
  2547. package/dist/libs/shared/components/physicalDescription/model/PhysicalDescriptionDTO.d.ts +0 -305
  2548. package/dist/libs/shared/components/physicalDescription/model/PhysicalDescriptionDTO.d.ts.map +0 -1
  2549. package/dist/libs/shared/components/physicalDescription/model/index.d.ts +0 -6
  2550. package/dist/libs/shared/components/physicalDescription/model/index.d.ts.map +0 -1
  2551. package/dist/libs/shared/components/physicalDescription/physicalDescUtils.d.ts +0 -21
  2552. package/dist/libs/shared/components/physicalDescription/physicalDescUtils.d.ts.map +0 -1
  2553. package/dist/libs/shared/components/physicalDescription/physicalDescription.d.ts +0 -5
  2554. package/dist/libs/shared/components/physicalDescription/physicalDescription.d.ts.map +0 -1
  2555. package/dist/libs/shared/components/singleAddress/SingleAddress.d.ts +0 -7
  2556. package/dist/libs/shared/components/singleAddress/SingleAddress.d.ts.map +0 -1
  2557. package/dist/libs/shared/components/singleAddress/singleAddressController.d.ts +0 -34
  2558. package/dist/libs/shared/components/singleAddress/singleAddressController.d.ts.map +0 -1
  2559. package/dist/libs/shared/components/singleAddress/singleAddressDto.d.ts +0 -45
  2560. package/dist/libs/shared/components/singleAddress/singleAddressDto.d.ts.map +0 -1
  2561. package/dist/libs/shared/enums/common-enums.d.ts +0 -203
  2562. package/dist/libs/shared/enums/common-enums.d.ts.map +0 -1
  2563. package/dist/libs/shared/enums/index.d.ts +0 -3
  2564. package/dist/libs/shared/enums/index.d.ts.map +0 -1
  2565. package/dist/libs/shared/enums/validation-enums.d.ts +0 -135
  2566. package/dist/libs/shared/enums/validation-enums.d.ts.map +0 -1
  2567. package/dist/libs/shared/index.d.ts +0 -10
  2568. package/dist/libs/shared/index.d.ts.map +0 -1
  2569. package/dist/libs/shared/internationalisation/i18n.d.ts +0 -7
  2570. package/dist/libs/shared/internationalisation/i18n.d.ts.map +0 -1
  2571. package/dist/libs/shared/internationalisation/index.d.ts +0 -2
  2572. package/dist/libs/shared/internationalisation/index.d.ts.map +0 -1
  2573. package/dist/libs/shared/mapper/commonDTOJSONMap.d.ts +0 -229
  2574. package/dist/libs/shared/mapper/commonDTOJSONMap.d.ts.map +0 -1
  2575. package/dist/libs/shared/mapper/index.d.ts +0 -2
  2576. package/dist/libs/shared/mapper/index.d.ts.map +0 -1
  2577. package/dist/libs/shared/store/api/authApi.d.ts +0 -14
  2578. package/dist/libs/shared/store/api/authApi.d.ts.map +0 -1
  2579. package/dist/libs/shared/store/api/authEndpoints.d.ts +0 -20
  2580. package/dist/libs/shared/store/api/authEndpoints.d.ts.map +0 -1
  2581. package/dist/libs/shared/store/api/authServices.d.ts +0 -41
  2582. package/dist/libs/shared/store/api/authServices.d.ts.map +0 -1
  2583. package/dist/libs/shared/store/appDataSlice.d.ts +0 -25
  2584. package/dist/libs/shared/store/appDataSlice.d.ts.map +0 -1
  2585. package/dist/libs/shared/store/authSlice.d.ts +0 -23
  2586. package/dist/libs/shared/store/authSlice.d.ts.map +0 -1
  2587. package/dist/libs/shared/store/confirmationModalSlice.d.ts +0 -36
  2588. package/dist/libs/shared/store/confirmationModalSlice.d.ts.map +0 -1
  2589. package/dist/libs/shared/store/dynamicSliceFactory.d.ts +0 -3
  2590. package/dist/libs/shared/store/dynamicSliceFactory.d.ts.map +0 -1
  2591. package/dist/libs/shared/store/index.d.ts +0 -12
  2592. package/dist/libs/shared/store/index.d.ts.map +0 -1
  2593. package/dist/libs/shared/store/rootReducer.d.ts +0 -9
  2594. package/dist/libs/shared/store/rootReducer.d.ts.map +0 -1
  2595. package/dist/libs/shared/store/snackbarSlice.d.ts +0 -18
  2596. package/dist/libs/shared/store/snackbarSlice.d.ts.map +0 -1
  2597. package/dist/libs/shared/store/store.d.ts +0 -29
  2598. package/dist/libs/shared/store/store.d.ts.map +0 -1
  2599. package/dist/libs/shared/store/types/authTypes.d.ts +0 -59
  2600. package/dist/libs/shared/store/types/authTypes.d.ts.map +0 -1
  2601. package/dist/libs/shared/subComponents/ErrorFallbackPage.d.ts +0 -3
  2602. package/dist/libs/shared/subComponents/ErrorFallbackPage.d.ts.map +0 -1
  2603. package/dist/libs/shared/subComponents/Loader.d.ts +0 -6
  2604. package/dist/libs/shared/subComponents/Loader.d.ts.map +0 -1
  2605. package/dist/libs/shared/subComponents/index.d.ts +0 -5
  2606. package/dist/libs/shared/subComponents/index.d.ts.map +0 -1
  2607. package/dist/libs/shared/subComponents/statusChip/StatusChip.d.ts +0 -5
  2608. package/dist/libs/shared/subComponents/statusChip/StatusChip.d.ts.map +0 -1
  2609. package/dist/libs/shared/subComponents/statusChip/StatusChip.type.d.ts +0 -4
  2610. package/dist/libs/shared/subComponents/statusChip/StatusChip.type.d.ts.map +0 -1
  2611. package/dist/libs/shared/theme/color.d.ts +0 -14
  2612. package/dist/libs/shared/theme/color.d.ts.map +0 -1
  2613. package/dist/libs/shared/theme/index.d.ts +0 -4
  2614. package/dist/libs/shared/theme/index.d.ts.map +0 -1
  2615. package/dist/libs/shared/theme/muiOverrides.d.ts +0 -2
  2616. package/dist/libs/shared/theme/muiOverrides.d.ts.map +0 -1
  2617. package/dist/libs/shared/theme/theme.d.ts +0 -5
  2618. package/dist/libs/shared/theme/theme.d.ts.map +0 -1
  2619. package/dist/libs/shared/theme/typography.d.ts +0 -41
  2620. package/dist/libs/shared/theme/typography.d.ts.map +0 -1
  2621. package/dist/libs/shared/types/common-types.d.ts +0 -441
  2622. package/dist/libs/shared/types/common-types.d.ts.map +0 -1
  2623. package/dist/libs/shared/types/index.d.ts +0 -3
  2624. package/dist/libs/shared/types/index.d.ts.map +0 -1
  2625. package/dist/libs/shared/types/sharedFormActionTypes.d.ts +0 -42
  2626. package/dist/libs/shared/types/sharedFormActionTypes.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["getDefaults","unitless","asTemplateStringsArr","templateStringsArr","hashString","styled","emSerializeStyles","isValidElementType","PropTypes","isObjectEmpty","EMPTY_THEME","isObjectEmpty","_formatErrorMessage","style","EMPTY_THEME","style","style","style","style","breakpointsModule.values","style","createTheme","styleFunctionSx","React","systemDefaultTheme","createTheme","useTheme","styled","styleFunctionSx","React","useTheme","Box","PropTypes","ForwardRef","Memo","createTheme","isObjectEmpty","serializeStyles","styleFunctionSx","styledEngineStyled","styled","getThemeProps","useTheme","getThemeProps","React","_formatErrorMessage","alpha","DefaultPropsProvider","PropTypes","useDefaultProps","React","createGetCssVar","defaultTheme","createTheme","defaultCreateStyledComponent","systemStyled","useThemePropsDefault","useThemePropsSystem","useThemeSystem","React","PropTypes","defaultTheme","createTheme","systemStyled","useThemePropsSystem","React","style","PropTypes","Stack","PropTypes","_formatErrorMessage","DEFAULT_TRANSITION_PROPS","EMPTY_OPTIONS","systemAlpha","systemLighten","systemDarken","_formatErrorMessage","systemCreateTheme","styleFunctionSx","safeColorChannel","systemCreateGetCssVar","attachColorScheme","defaultShouldSkipGeneratingVar","_formatErrorMessage","safeAlpha","safeDarken","safeLighten","safeEmphasize","defaultGetSelector","shouldSkipGeneratingVar","styleFunctionSx","React","React","useTheme","useThemeSystem","THEME_ID","SystemDefaultPropsProvider","PropTypes","useSystemDefaultProps","getActiveElement","_formatErrorMessage","useUtilityClasses","capitalize","SvgIcon","PropTypes","SvgIcon","localizedFormatPlugin","weekOfYearPlugin","isBetweenPlugin","advancedFormatPlugin","_formatErrorMessage","customParseFormatPlugin","Grid","PropTypes","requirePropFactory","Stack","PropTypes","PropTypes","React","React","getActiveElement","contains","PropTypes","getContainer","React","PropTypes","React","React","TransitionGroupContext","PropTypes","React","Fade","useTheme","React","useForkRef","PropTypes","useUtilityClasses","Backdrop","Fade","PropTypes","React","useUtilityClasses","Backdrop","Modal","PropTypes","useUtilityClasses","Paper","useTheme","alpha","PropTypes","useUtilityClasses","Paper","Card","PropTypes","useUtilityClasses","capitalize","Typography","PropTypes","useUtilityClasses","CardHeader","Typography","PropTypes","CardContent","PropTypes"],"sources":["../src/libs/core/constants/commonConstants.ts","../src/libs/shared/enums/common-enums.ts","../src/libs/core/utils/dateUtilities.ts","../src/libs/core/utils/validateFields.ts","../src/libs/shared/components/mobileVerification/validateMobileVerification.ts","../src/libs/core/constants/dtoNames.ts","../src/libs/shared/enums/validation-enums.ts","../src/libs/shared/components/mobileVerification/mobileVerificationDTO.ts","../src/libs/core/utils/validateDto.ts","../src/libs/core/utils/loggers.ts","../src/libs/core/utils/sharedFormActions.ts","../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","../node_modules/i18next-http-backend/esm/index.js","../src/libs/shared/internationalisation/i18n.ts","../src/libs/core/constants/masterCodes.ts","../src/libs/core/utils/commonFunctions.ts","../src/libs/core/api/apiClient.ts","../src/libs/core/api/errorHandlers.ts","../src/libs/core/api/apiService.ts","../src/libs/core/constants/apiEndPoints.ts","../src/libs/core/constants/commonLookupCodes.ts","../src/libs/core/context/AppThemeContext.ts","../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.mjs","../node_modules/@mui/material/styles/identifier.mjs","../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../node_modules/prop-types/node_modules/react-is/index.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/@mui/styled-engine/index.mjs","../node_modules/react-is/cjs/react-is.production.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/@mui/utils/deepmerge/deepmerge.mjs","../node_modules/@mui/system/createBreakpoints/createBreakpoints.mjs","../node_modules/@mui/system/cssContainerQueries/cssContainerQueries.mjs","../node_modules/@mui/system/createTheme/shape.mjs","../node_modules/@mui/system/responsivePropType/responsivePropType.mjs","../node_modules/@mui/utils/isObjectEmpty/isObjectEmpty.mjs","../node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.mjs","../node_modules/@mui/system/breakpoints/breakpoints.mjs","../node_modules/@mui/utils/capitalize/capitalize.mjs","../node_modules/@mui/system/style/style.mjs","../node_modules/@mui/system/spacing/spacing.mjs","../node_modules/@mui/system/createTheme/createSpacing.mjs","../node_modules/@mui/system/compose/compose.mjs","../node_modules/@mui/system/borders/borders.mjs","../node_modules/@mui/system/cssGrid/cssGrid.mjs","../node_modules/@mui/system/palette/palette.mjs","../node_modules/@mui/system/sizing/sizing.mjs","../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.mjs","../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.mjs","../node_modules/@mui/system/createTheme/applyStyles.mjs","../node_modules/@mui/system/createTheme/createTheme.mjs","../node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs","../node_modules/@mui/system/useTheme/useTheme.mjs","../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.mjs","../node_modules/clsx/dist/clsx.mjs","../node_modules/@mui/system/createBox/createBox.mjs","../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.mjs","../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.mjs","../node_modules/@mui/system/Box/boxClasses.mjs","../node_modules/@mui/system/Box/Box.mjs","../node_modules/@mui/utils/getDisplayName/getDisplayName.mjs","../node_modules/@mui/system/preprocessStyles.mjs","../node_modules/@mui/system/createStyled/createStyled.mjs","../node_modules/@mui/system/styled/styled.mjs","../node_modules/@mui/utils/resolveProps/resolveProps.mjs","../node_modules/@mui/system/useThemeProps/getThemeProps.mjs","../node_modules/@mui/system/useThemeProps/useThemeProps.mjs","../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.mjs","../node_modules/@mui/utils/clamp/clamp.mjs","../node_modules/@mui/system/colorManipulator/colorManipulator.mjs","../node_modules/@mui/utils/exactProp/exactProp.mjs","../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.mjs","../node_modules/@mui/system/memoTheme.mjs","../node_modules/@mui/system/cssVars/createGetCssVar.mjs","../node_modules/@mui/system/cssVars/cssVarsParser.mjs","../node_modules/@mui/system/cssVars/prepareCssVars.mjs","../node_modules/@mui/system/cssVars/getColorSchemeSelector.mjs","../node_modules/@mui/utils/composeClasses/composeClasses.mjs","../node_modules/@mui/utils/isMuiElement/isMuiElement.mjs","../node_modules/@mui/system/Grid/traverseBreakpoints.mjs","../node_modules/@mui/system/Grid/gridGenerator.mjs","../node_modules/@mui/system/Grid/createGrid.mjs","../node_modules/@mui/system/Stack/createStack.mjs","../node_modules/@mui/system/Stack/Stack.mjs","../node_modules/@mui/material/colors/common.mjs","../node_modules/@mui/material/colors/grey.mjs","../node_modules/@mui/material/colors/purple.mjs","../node_modules/@mui/material/colors/red.mjs","../node_modules/@mui/material/colors/orange.mjs","../node_modules/@mui/material/colors/blue.mjs","../node_modules/@mui/material/colors/lightBlue.mjs","../node_modules/@mui/material/colors/green.mjs","../node_modules/@mui/material/styles/createPalette.mjs","../node_modules/@mui/system/cssVars/prepareTypographyVars.mjs","../node_modules/@mui/material/styles/createMixins.mjs","../node_modules/@mui/material/styles/createTypography.mjs","../node_modules/@mui/material/styles/shadows.mjs","../node_modules/@mui/material/styles/createTransitions.mjs","../node_modules/@mui/material/styles/createMotion.mjs","../node_modules/@mui/material/styles/zIndex.mjs","../node_modules/@mui/material/styles/stringifyTheme.mjs","../node_modules/@mui/material/styles/createThemeNoVars.mjs","../node_modules/@mui/material/styles/getOverlayAlpha.mjs","../node_modules/@mui/material/styles/createColorScheme.mjs","../node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs","../node_modules/@mui/material/styles/excludeVariablesFromRoot.mjs","../node_modules/@mui/material/styles/createGetSelector.mjs","../node_modules/@mui/material/styles/createThemeWithVars.mjs","../node_modules/@mui/material/styles/createTheme.mjs","../node_modules/@mui/utils/chainPropTypes/chainPropTypes.mjs","../node_modules/@mui/utils/isHostComponent/isHostComponent.mjs","../node_modules/@mui/utils/useForkRef/useForkRef.mjs","../node_modules/@mui/utils/useEventCallback/useEventCallback.mjs","../node_modules/@mui/utils/ownerDocument/ownerDocument.mjs","../node_modules/@mui/utils/ownerWindow/ownerWindow.mjs","../node_modules/@mui/material/styles/defaultTheme.mjs","../node_modules/@mui/material/styles/useTheme.mjs","../node_modules/@mui/material/styles/slotShouldForwardProp.mjs","../node_modules/@mui/material/styles/rootShouldForwardProp.mjs","../node_modules/@mui/material/styles/styled.mjs","../node_modules/@mui/material/utils/memoTheme.mjs","../node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.mjs","../node_modules/@mui/material/utils/capitalize.mjs","../node_modules/@mui/material/utils/useForkRef.mjs","../node_modules/@mui/utils/getActiveElement/getActiveElement.mjs","../node_modules/@mui/material/utils/getActiveElement.mjs","../node_modules/@mui/material/styles/reducedMotion.mjs","../node_modules/@mui/material/transitions/utils.mjs","../node_modules/@mui/material/styles/cssUtils.mjs","../node_modules/@mui/material/styles/responsiveFontSizes.mjs","../src/libs/shared/UI/typography/Typography2.tsx","../src/libs/shared/subComponents/ErrorFallbackPage.tsx","../src/libs/core/error/ErrorBoundary.tsx","../src/libs/core/error/RouteErrorBoundary.tsx","../src/libs/core/hooks/useAuth.ts","../src/libs/shared/subComponents/Loader.tsx","../src/libs/core/hooks/useDevice.ts","../src/libs/core/hooks/useMasterFetch.ts","../src/libs/core/hooks/useOnChangeHandlers.tsx","../src/libs/shared/store/appDataSlice.ts","../src/libs/shared/store/confirmationModalSlice.ts","../src/libs/core/utils/cryptoUtil.ts","../src/libs/shared/store/api/authEndpoints.ts","../src/libs/shared/store/api/authServices.ts","../src/libs/shared/store/api/authApi.ts","../src/libs/shared/store/authSlice.ts","../src/libs/shared/store/snackbarSlice.ts","../src/libs/shared/store/rootReducer.ts","../src/libs/shared/store/store.ts","../src/libs/core/hooks/useInjectSlice.tsx","../src/libs/core/hooks/useParentSliceName.tsx","../src/libs/core/hooks/useAppDispatch.ts","../src/libs/shared/theme/color.ts","../src/libs/shared/theme/typography.ts","../src/libs/shared/theme/muiOverrides.ts","../src/libs/shared/theme/theme.ts","../src/libs/core/providers/AppThemeProvider.tsx","../node_modules/uuid/dist/stringify.js","../node_modules/uuid/dist/rng.js","../node_modules/uuid/dist/v4.js","../src/libs/core/utils/addGridItemFn.ts","../src/libs/core/utils/createDTOActions.ts","../src/libs/core/utils/gridColumnUtilities.ts","../src/libs/shared/UI/accordian/AccordianGroup.tsx","../node_modules/@mui/material/SvgIcon/svgIconClasses.mjs","../node_modules/@mui/material/SvgIcon/SvgIcon.mjs","../node_modules/@mui/material/SvgIcon/createSvgIcon.mjs","../node_modules/@mui/icons-material/ExpandMore.mjs","../src/libs/shared/UI/accordian/AccordianSection.tsx","../node_modules/@mui/icons-material/ArrowBack.mjs","../node_modules/@mui/icons-material/ArrowForward.mjs","../src/libs/shared/UI/button/AppButton.tsx","../src/libs/shared/UI/button/FooterButton.tsx","../src/libs/shared/UI/button/TestButton.tsx","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@mui/x-internals/formatErrorMessage/formatErrorMessage.mjs","../node_modules/dayjs/plugin/weekOfYear.js","../node_modules/dayjs/plugin/customParseFormat.js","../node_modules/dayjs/plugin/localizedFormat.js","../node_modules/dayjs/plugin/isBetween.js","../node_modules/dayjs/plugin/advancedFormat.js","../node_modules/@mui/x-internals/warning/warning.mjs","../node_modules/@mui/x-date-pickers/AdapterDayjs/AdapterDayjs.mjs","../src/libs/shared/UI/HelperTextCommon.tsx","../src/libs/shared/UI/previewText/PreviewText.tsx","../src/libs/shared/UI/calender/CustomDatePicker.tsx","../src/libs/shared/UI/checkbox/AppCheckbox.tsx","../src/libs/shared/UI/checkbox/useCheckboxListController.ts","../src/libs/shared/UI/checkbox/CheckboxList.tsx","../src/libs/shared/UI/checkbox/useSingleCheckboxController.ts","../src/libs/shared/UI/checkbox/SingleCheckbox.tsx","../node_modules/@mui/icons-material/Close.mjs","../src/libs/shared/UI/chip/AppChip.tsx","../src/libs/shared/UI/CustomSnackbar.tsx","../src/libs/shared/UI/toolTips/CustomizedTooltip.tsx","../src/assets/icons/grid-edit-icon.tsx","../src/assets/icons/grid-delete-icon.tsx","../src/assets/icons/grid-print-icon.tsx","../src/assets/icons/grid-view-icon.tsx","../src/libs/shared/UI/dataGrid/dataGridController.tsx","../src/libs/shared/UI/dataGrid/DataGrid.tsx","../src/libs/shared/UI/dropdown/AutocompleteInputField.tsx","../node_modules/@mui/icons-material/KeyboardArrowDown.mjs","../src/libs/shared/UI/dropdown/SelectInputField.tsx","../node_modules/@mui/utils/requirePropFactory/requirePropFactory.mjs","../node_modules/@mui/material/utils/requirePropFactory.mjs","../node_modules/@mui/material/Grid/Grid.mjs","../src/libs/shared/UI/grid/GridContainer.tsx","../node_modules/@mui/icons-material/MicNoneOutlined.mjs","../src/libs/shared/UI/textInput/TextInputField.tsx","../src/libs/shared/UI/dropdown/SelectTextInputField.tsx","../src/libs/shared/UI/grid/GridItem.tsx","../src/libs/shared/UI/heading/CustomHeading.tsx","../node_modules/@mui/icons-material/AutorenewRounded.mjs","../node_modules/@mui/icons-material/CheckCircleRounded.mjs","../node_modules/@mui/icons-material/DescriptionOutlined.mjs","../node_modules/@mui/material/Stack/Stack.mjs","../src/libs/shared/UI/indicator/Infopair.tsx","../src/libs/shared/UI/indicator/AutoSaveIndicator.tsx","../src/libs/shared/UI/maincard/Maincard.tsx","../src/libs/shared/UI/modal/CommonModal.tsx","../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.mjs","../node_modules/@mui/material/Modal/ModalManager.mjs","../node_modules/@mui/utils/HTMLElementType/HTMLElementType.mjs","../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.mjs","../node_modules/@mui/utils/getReactElementRef/getReactElementRef.mjs","../node_modules/@mui/utils/contains/contains.mjs","../node_modules/@mui/material/utils/contains.mjs","../node_modules/@mui/material/utils/focusable.mjs","../node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.mjs","../node_modules/@mui/utils/setRef/setRef.mjs","../node_modules/@mui/material/Portal/Portal.mjs","../node_modules/@mui/utils/appendOwnerState/appendOwnerState.mjs","../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.mjs","../node_modules/@mui/utils/isEventHandler/isEventHandler.mjs","../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.mjs","../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.mjs","../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.mjs","../node_modules/@mui/material/utils/useSlot.mjs","../node_modules/@mui/utils/useLazyRef/useLazyRef.mjs","../node_modules/@mui/utils/useValueAsRef/useValueAsRef.mjs","../node_modules/react-transition-group/esm/TransitionGroupContext.js","../node_modules/@mui/material/internal/Transition.mjs","../node_modules/@mui/material/transitions/useReducedMotion.mjs","../node_modules/@mui/material/Fade/Fade.mjs","../node_modules/@mui/material/Backdrop/backdropClasses.mjs","../node_modules/@mui/material/Backdrop/Backdrop.mjs","../node_modules/@mui/utils/createChainedFunction/createChainedFunction.mjs","../node_modules/@mui/material/Modal/useModal.mjs","../node_modules/@mui/material/Modal/modalClasses.mjs","../node_modules/@mui/material/Modal/Modal.mjs","../src/assets/icons/CloseIcon.tsx","../src/libs/shared/UI/modal/ConfirmationModal.tsx","../node_modules/@mui/icons-material/BadgeOutlined.mjs","../src/libs/shared/UI/modal/SubmitModal.tsx","../src/libs/shared/UI/modal/GlobalConfirmationModal.tsx","../src/libs/shared/UI/modal/GlobalSnackbar.tsx","../src/libs/shared/UI/NotFound.tsx","../node_modules/@mui/utils/integerPropType/integerPropType.mjs","../node_modules/@mui/material/Paper/paperClasses.mjs","../node_modules/@mui/material/Paper/Paper.mjs","../node_modules/@mui/material/Card/cardClasses.mjs","../node_modules/@mui/material/Card/Card.mjs","../node_modules/@mui/material/utils/createSimplePaletteValueFilter.mjs","../node_modules/@mui/material/Typography/typographyClasses.mjs","../node_modules/@mui/material/Typography/Typography.mjs","../node_modules/@mui/material/CardHeader/cardHeaderClasses.mjs","../node_modules/@mui/material/CardHeader/CardHeader.mjs","../node_modules/@mui/material/CardContent/cardContentClasses.mjs","../node_modules/@mui/material/CardContent/CardContent.mjs","../node_modules/@mui/icons-material/EditOutlined.mjs","../node_modules/@mui/icons-material/DeleteOutlineOutlined.mjs","../src/assets/icons/NoDataIcon.tsx","../src/libs/shared/UI/outlinedCard/OutlinedCard.tsx","../src/libs/shared/UI/outlinedCard/CardDetails.tsx","../src/libs/shared/UI/radio/radioButtonController.ts","../src/libs/shared/UI/radio/RadioButton.tsx","../src/libs/shared/UI/rowHeading/Row.tsx","../node_modules/@mui/icons-material/Check.mjs","../node_modules/@mui/icons-material/ChevronLeft.mjs","../node_modules/@mui/icons-material/ChevronRight.mjs","../src/libs/shared/UI/stepper/components/CustomStepper.tsx","../src/libs/shared/UI/stepper/components/SectionRenderer.tsx","../src/libs/shared/UI/stepper/components/StepRenderer.tsx","../src/libs/shared/UI/stepper/hooks/useStepper.ts","../src/libs/shared/components/addressMultiple/addressUtils.ts","../src/libs/shared/components/addressMultiple/addressInfoController.ts","../src/libs/shared/components/addressMultiple/AddressInfo.tsx","../src/libs/shared/components/addressMultiple/addressInfoDto.ts","../src/libs/shared/components/addressMultiple/addressMultipleController.ts","../src/libs/shared/components/addressMultiple/AddressMultiple.tsx","../src/libs/shared/components/addressMultiple/addressDto.ts","../src/libs/shared/components/agePanel/agePanelDto.ts","../src/libs/shared/components/agePanel/agePanelUtils.ts","../src/libs/shared/components/agePanel/agePanelController.ts","../src/libs/shared/components/agePanel/AgePanel.tsx","../src/libs/shared/components/identificationPanel/identificationPanelConfig.ts","../src/libs/shared/components/identificationPanel/useIdentificationPanel.ts","../src/libs/shared/components/identificationPanel/IdentificationPanel.tsx","../src/libs/shared/components/identificationPanel/identificationPanelDTO.ts","../src/libs/shared/components/mobileVerification/mobileVerificationController.ts","../src/libs/shared/components/mobileVerification/mobileVerificationTypes.ts","../src/libs/shared/components/mobileVerification/modal/OtpModal.tsx","../src/libs/shared/components/mobileVerification/MobileVerification.tsx","../src/libs/shared/components/singleAddress/singleAddressController.ts","../src/libs/shared/components/singleAddress/SingleAddress.tsx","../src/libs/shared/components/orgnization/orgnizationApiEndpoints.ts","../src/libs/shared/components/personalInfo/personalDetailsDto.ts","../src/libs/shared/components/singleAddress/singleAddressDto.ts","../src/libs/shared/mapper/commonDTOJSONMap.ts","../src/libs/shared/components/orgnization/organizationInfoDto.ts","../src/libs/shared/components/orgnization/utils/addOrganization.ts","../src/libs/shared/components/orgnization/useOrganizationInfoController.ts","../src/libs/shared/components/orgnization/OrganizationInfo.tsx","../src/libs/shared/components/personalInfo/personalDetailsController.ts","../src/libs/shared/components/personalInfo/PersonalDetails.tsx","../src/libs/shared/components/physicalDescription/controller/physicalDescriptionController.ts","../src/libs/shared/components/physicalDescription/definations/physicalDescriptionConstants.ts","../src/libs/shared/components/physicalDescription/physicalDescUtils.ts","../src/libs/shared/components/physicalDescription/controller/useHeightRangePanel.ts","../src/libs/shared/components/physicalDescription/components/HeightRangePanel.tsx","../src/libs/shared/components/physicalDescription/controller/useIdentificationMarksPanel.ts","../src/libs/shared/components/physicalDescription/components/IdentificationMarksPanel.tsx","../src/libs/shared/components/physicalDescription/hooks/useGetPhyDescCategoryOptions.tsx","../src/libs/shared/components/physicalDescription/controller/usePhysicalCharacteristicsPanel.ts","../src/libs/shared/components/physicalDescription/components/PhysicalCharacteristicsPanel.tsx","../src/libs/shared/components/physicalDescription/physicalDescription.tsx","../src/libs/shared/components/physicalDescription/model/DressTypeDTO.ts","../src/libs/shared/components/physicalDescription/model/HeightRangeDTO.ts","../src/libs/shared/components/physicalDescription/model/IdentificationMarksDTO.ts","../src/libs/shared/components/physicalDescription/model/PhysicalCharacteristicsDTO.ts","../src/libs/shared/components/physicalDescription/model/PhysicalDescriptionDTO.ts","../src/libs/shared/subComponents/statusChip/StatusChip.tsx","../src/libs/shared/types/common-types.ts"],"sourcesContent":["export const commonActions = {\r\n RESETDTO: \"resetDTO\",\r\n}\r\nexport const Constants = {\r\n GENERAL: {\r\n APP_LANGUAGE_ENGLISH: 99,\r\n APP_LANGUAGE_HINDI: 6,\r\n SCREEN_WIDTH_LARGE_LAPTOP: 1440,\r\n SCREEN_WIDTH_MEDIUM_LAPTOP: 1024,\r\n SCREEN_WIDTH_TABLET: 768,\r\n SCREEN_WIDTH_MOBILE: 425,\r\n SCREEN_WIDTH_SMALL_MOBILE: 320,\r\n INDIACONTRYCODE: 80,\r\n INDIAN_CURRENCY: 257\r\n },\r\n DATE_FORMATE: {\r\n CLIENT: 'DD-MMM-YYYY',\r\n SERVER: 'YYYY-MM-DD',\r\n YEAR: 'YYYY', \r\n PDF: 'DD/MM/YYYY'\r\n },\r\n TIME_FORMATE: {\r\n CLIENT: 'HH:mm',\r\n SERVER: 'HH:mm',\r\n PDF:\"HH:mm [hrs]\"\r\n },\r\n DATE_TIME_FORMATE: {\r\n CLIENT: 'DD-MMM-YYYY HH:mm',\r\n CLIENT_24: 'DD-MMM-YYYY HH:mm',\r\n SERVER: 'YYYY-MM-DD HH:mm',\r\n PDF: 'DD/MM/YYYY HH:mm [hrs]',\r\n YEAR: 'YYYY',\r\n PDF_DATE_TIME_FORMAT: 'DD/MM/YYYY HH:mm',\r\n PDF_DATE_FORMAT: 'DD/MM/YYYY',\r\n PDF_TIME_FORMAT: 'HH:mm',\r\n SERVER_T_SEPERATED: 'YYYY-MM-DDTHH:mm',\r\n },\r\n\r\n DATE_TIME_FORMATE_PLACEHOLDER: 'DD-MM-YYYY HH:MM',\r\n UPLOAD_FILE_SIZE: 4,\r\n File: {\r\n UPLOAD_FILE_TYP: 'UPLOAD_FILE_TYP',\r\n UPLOAD_FILE_SUB_TYP: 'UPLOAD_FILE_SUB_TYP',\r\n VIDEO: \".mp4, .avi, .mkv\",\r\n IMAGE: \".jpg, .png, .jpeg\",\r\n PDF: \".pdf\",\r\n DOCUMENT: \".jpg, .png, .jpeg, .pdf\",\r\n ALL: \".jpg, .png, .jpeg, .mp4, .avi, .mkv, .pdf\"\r\n }\r\n}\r\n\r\nexport const DataGridConstants = {\r\n DATA_GRID_PAGE_SIZE: 10,\r\n PAGINATION_MODEL: {\r\n page: 0,\r\n pageSize: 10,\r\n },\r\n}\r\n\r\nexport const YES_NO_BOOL = {\r\n YES: true, NO: false\r\n} as const\r\n\r\nexport const CommonAddressFields = {\r\n houseNo: \"addressLine1\",\r\n streetName: \"addressLine2\",\r\n colony: \"addressLine3\",\r\n country: \"countryCd\",\r\n state: \"stateId\",\r\n district: \"lgDistrictCd\",\r\n policeStation: \"psId\",\r\n subDistrict: \"subDistrictCd\",\r\n village: \"villageCd\",\r\n pincode: \"pincode\",\r\n addressType: \"addressTypeCd\",\r\n other: \"outsideIndiaAddr\"\r\n} as const;\r\n\r\nexport const ONE_COLUMN_LAYOUT = 12;\r\nexport const TWO_COLUMN_LAYOUT = { xl: 6, lg: 6, md: 6, sm: 12, xs: 12 };\r\nexport const THREE_COLUMN_LAYOUT = { lg: 4, xl: 4, md: 6, sm: 12, xs: 12 };\r\n\r\nexport const ModulePath = {\r\n PROTEST: \"/protest-strike\",\r\n PROCESSION: \"citizen-portal/procession/view\",\r\n} as const;","export enum ApiMethodEnum {\r\n GET = \"GET\",\r\n POST = \"POST\",\r\n PUT = \"PUT\",\r\n DELETE = \"DELETE\",\r\n PATCH = \"PATCH\",\r\n}\r\n\r\nexport enum FieldEnum {\r\n NUMERIC = \"NUMBER\",\r\n PASSWORD = \"PASSWORD\",\r\n SELECT = \"SELECT\",\r\n EMAIL = \"EMAIL\",\r\n TEXT = \"TEXT\",\r\n FILE = \"FILE\",\r\n RADIOLIST = \"RADIOLIST\",\r\n DATE_TIME = \"DATE_TIME\",\r\n RADIO = \"RADIO\",\r\n DATE = \"DATE\",\r\n TIME = \"TIME\",\r\n YEAR = \"YEAR\",\r\n CHECKBOXLIST = \"CHECKBOXLIST\",\r\n ARRAY = \"ARRAY\",\r\n CHECKBOX = \"CHECKBOX\",\r\n PHONE = \"PHONE\",\r\n MOBILE = \"MOBILE\",\r\n HIDDEN = \"HIDDEN\",\r\n MOBILECOUNTRYCODE = \"MOBILECOUNTRYCODE\",\r\n CUSTOM=\"CUSTOM\"\r\n}\r\n\r\nexport enum MenuTextColorEnum {\r\n INHERIT = \"inherit\",\r\n RED = \"red\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum AgePanelEnums {\r\n DATE_OF_BIRTH = 1,\r\n YEAR_OF_BIRTH = 2,\r\n AGE_RANGE = 3,\r\n}\r\n\r\nexport enum ProtestStatusEnum {\r\n REGISTERED = \"registered\",\r\n PENDING = \"pending\",\r\n MODIFICATION_REQUESTED = \"modification requested\",\r\n REJECTED = \"rejected\",\r\n APPROVED = \"approved\",\r\n}\r\n\r\nexport enum RouteEnum {\r\n INTERNAL = \"internal\",\r\n EXTERNAL = \"external\",\r\n}\r\n\r\nexport enum GaurdEnum {\r\n AUTH = \"auth\",\r\n PUBLIC = \"public\",\r\n}\r\n\r\nexport enum ThemeEnum {\r\n LIGHT = \"light\",\r\n DARK = \"dark\",\r\n}\r\n\r\nexport enum ColorEnum {\r\n PURPLE = \"purple\",\r\n BLUE = \"blue\",\r\n GREEN = \"green\",\r\n}\r\n\r\nexport enum SnackbarEnum {\r\n SUCCESS = \"success\",\r\n ERROR = \"error\",\r\n WARNING = \"warning\",\r\n INFO = \"info\",\r\n}\r\n\r\nexport enum DefaultRulesEnum {\r\n REQUIRED = \"required\",\r\n LABEL = \"label\",\r\n TYPE = \"type\",\r\n MIN_LENGTH = \"minLength\",\r\n MAX_LENGTH = \"maxLength\",\r\n AGE_BETWEEN = \"ageBetween\",\r\n IS_CHECK_CHARACTERS = \"isCheckCharacters\",\r\n IS_ALLOWED_OR_NOT_CHARACTERS = \"isAllowdOrNotCharacters\",\r\n LENGTH = \"length\",\r\n NOT_ALLOWED_STRING = \"notAllowedString\",\r\n ALLOWED_STRING = \"allowedString\",\r\n FROM_VALUE = \"fromValue\",\r\n DISABLED = \"disabled\",\r\n ISDISABLED=\"isDisabled\",\r\n INPUT_MODE = \"inputMode\",\r\n VALIDATE_SPECIFIC_CHARS = \"validateSpecificChars\",\r\n NOT_ALLOWED_SPECIFIC_CHARS = \"notAllowedSpecificChars\",\r\n MAX_VALUE = \"maxValue\",\r\n IS_NOT_ALLOWED_CHARACTERS = \"isNotAllowdCharacters\",\r\n EXTRA_REGEX = \"extraRegex\",\r\n MINIMUM_DATE = \"minimumDate\",\r\n MAXIMUM_DATE = \"maximumDate\",\r\n SERVER_FORMAT = \"serverFormat\",\r\n CLIENT_FORMAT = \"clientFormat\",\r\n DEFAULT_VALUE = \"defaultValue\",\r\n IS_CURRENT_TIME_ACCEPT = \"isCurrentTimeAccept\",\r\n CUSTOM_ERROR = \"customError\"\r\n}\r\n\r\nexport enum EConfirmationModalType {\r\n SUBMIT = \"SUBMIT\",\r\n CLEAR = \"CLEAR\",\r\n DELETE = \"DELETE\",\r\n DELETE_ALL = \"DELETE_ALL\",\r\n CHANGE = \"CHANGE\",\r\n CLOSE = \"CLOSE\",\r\n ALERT = \"ALERT\",\r\n}\r\n\r\nexport enum MinBirthYear {\r\n min0 = 0,\r\n min1 = 1,\r\n min7 = 7,\r\n min10 = 10,\r\n min18 = 18,\r\n min21 = 21,\r\n min25 = 25,\r\n min50 = 50,\r\n min100 = 100,\r\n min150 = 150,\r\n min200 = 200,\r\n}\r\n\r\nexport enum RelationTypeEnums {\r\n CLOSE = 1,\r\n DISTANCE = 2,\r\n}\r\n\r\nexport enum AddressTypeEnum {\r\n PRESENT = 1,\r\n PERMANANT = 2,\r\n PREVIOUS = 3\r\n}\r\n\r\nexport enum ButtonActionEnum {\r\n ADD = \"ADD\",\r\n EDIT = \"EDIT\",\r\n VIEW = \"VIEW\",\r\n DELETE = \"DELETE\",\r\n SUBMIT = \"SUBMIT\",\r\n CLOSE = \"CLOSE\",\r\n UPDATE = \"UPDATE\",\r\n NEXT = \"NEXT\",\r\n PRINT = \"PRINT\",\r\n SAVE = \"SAVE\",\r\n CLEAR = \"CLEAR\",\r\n SEARCH = \"SEARCH\"\r\n}\r\n\r\nexport enum IdentificationTypeEnum {\r\n PASSPORT = 1,\r\n DRIVING_LISCENCE = 2,\r\n RATION_CARD = 3,\r\n ARMS_LISCENCE = 4,\r\n VOTER_ID = 5,\r\n PAN_CARD = 6,\r\n OTHERS = 7,\r\n AADHAR_CARD = 8,\r\n}\r\n\r\nexport enum YESNO {\r\n YES = \"Y\",\r\n NO = \"N\"\r\n}\r\nexport enum DeviceTypeEnum {\r\n MOBILE = \"MOBILE\",\r\n TABLET = \"TABLET\",\r\n DESKTOP = \"DESKTOP\",\r\n}\r\n\r\nexport enum StatusCodeEnum {\r\n OK = 200,\r\n SUCCESS = 201\r\n}\r\n\r\nexport const CommonDraftnKeys = { \r\n PAGEABLE: {\r\n KEY: 'pageable',\r\n PAGE: 'page',\r\n PAGE_SIZE: 'pageSize'\r\n },\r\n MODULE_NUMBER: \"moduleNumber\",\r\n MODULE_NAME: \"module\",\r\n DRAFT_ID: \"draftId\",\r\n } as const;\r\n \r\n\r\nexport enum ModuleName { \r\n PROTEST = \"CITIZEN/PROTEST\",\r\n LOSTMOBILE = \"CITIZEN/LOST_MOB\",\r\n PROCESSION = \"CITIZEN/PROCESSION\",\r\n SR_CITIZEN = \"CITIZEN/SENIOR_CITIZEN\",\r\n COMPLAIN = \"CITIZEN/COMPL\",\r\n BLANK = \"BLANK\",\r\n EMPLOYEE_VERIFICATION = \"CITIZEN/EMPLOYEE_VERIFICATION\",\r\n}\r\n\r\nexport enum MODE {\r\n VIEW = \"view\",\r\n EDIT = \"edit\"\r\n}\r\nexport enum StatusEnum {\r\n REGISTERED= \"REGISTERED\",\r\n PENDING= \"PENDING\",\r\n MODIFICATION_REQUESTED= \"MODIFICATION REQUESTED\",\r\n REJECTED= \"REJECTED\",\r\n APPROVED= \"APPROVED\"\r\n}\r\n\r\nexport enum MinYearEnum {\r\n GENERAL = 7,\r\n SENIOR_CITIZEN = 60,\r\n ADULT = 18,\r\n UNKNOWN = 0\r\n}","import { Constants } from \"constants/commonConstants\";\r\nimport dayjs, { Dayjs } from \"dayjs\";\r\nexport const getDefaultMaximumDate = (format: string, date?: Dayjs | string | number): string => {\r\n return dayjs(date).format(format);\r\n}\r\n\r\nexport const getDefaultMinimumDate = (format: string, date?: Dayjs): string => {\r\n const today = dayjs();\r\n if (date) {\r\n return dayjs(date).format(format)\r\n }\r\n\r\n return today.subtract(150, 'year').format(format);\r\n}\r\nconst getDateAsPerFormat = (\r\n date: Date | string | undefined | Dayjs,\r\n dateFormat: string\r\n) => (date ? dayjs(date).format(dateFormat) : \"\");\r\n\r\nconst formatDate = (date: string, time?: string) => {\r\n const d = new Date(date);\r\n const day = String(d.getDate()).padStart(2, \"0\");\r\n const month = String(d.getMonth() + 1).padStart(2, \"0\"); // months are 0-indexed\r\n const year = d.getFullYear();\r\n return `${day}-${month}-${year}T${time}`;\r\n};\r\n\r\nconst customDateObject = dayjs()\r\n\r\nconst customDate = (date: string) => {\r\n return dayjs(date)\r\n}\r\n//Convert any date to Dayjs safely\r\nexport const toDayjs = (date?: string | Date | Dayjs): Dayjs | null => {\r\n if (!date) return null;\r\n\r\n const parsed = dayjs(date);\r\n return parsed.isValid() ? parsed : null;\r\n};\r\n\r\n//Get start of unit (day, month, year)\r\n\r\nexport const startDate = (\r\n date?: string | Date | Dayjs,\r\n unit: dayjs.OpUnitType = \"day\"\r\n): Dayjs | undefined => {\r\n const parsed = toDayjs(date);\r\n return parsed ? parsed.startOf(unit) : undefined;\r\n};\r\n\r\n//Add time to date\r\n\r\nexport const addToDate = (\r\n date?: string | Date | Dayjs,\r\n value: number = 0,\r\n unit: dayjs.ManipulateType = \"day\"\r\n): Dayjs | undefined => {\r\n const parsed = toDayjs(date);\r\n return parsed ? parsed.add(value, unit) : undefined;\r\n};\r\n\r\n// Compare two dates\r\nexport const isBeforeDate = (\r\n date1?: string | Date | Dayjs,\r\n date2?: string | Date | Dayjs\r\n): boolean => {\r\n const d1 = toDayjs(date1);\r\n const d2 = toDayjs(date2);\r\n\r\n if (!d1 || !d2) return false;\r\n return d1.isBefore(d2);\r\n};\r\n\r\nexport const getDateFromServerDate = (serverdate?: string) => {\r\n if (!serverdate) return \"\";\r\n const date = dayjs(serverdate);\r\n if (!date.isValid()) return \"\";\r\n return date.format(Constants.DATE_TIME_FORMATE.CLIENT);\r\n}\r\n\r\n //Format time to server format (HH:mm)\r\n\r\nexport const formatToServerTime = (\r\n time?: string | Date | Dayjs\r\n): string | undefined => {\r\n if (!time) return undefined;\r\n\r\n const parsed = dayjs(time);\r\n return parsed.isValid() ? parsed.format(\"HH:mm\") : undefined;\r\n};\r\n\r\nexport const formatToHoursLabel = (\r\n time?: string | Date | Dayjs\r\n): string => {\r\n if (!time) return \"0 Hours\";\r\n\r\n const parsed = dayjs(time);\r\n if (!parsed.isValid()) return \"0 Hours\";\r\n\r\n return `${parsed.hour()} Hours`;\r\n};\r\n\r\nconst dayConstant = {\r\n day: \"day\",\r\n month: \"month\",\r\n months: \"months\",\r\n days: \"days\",\r\n year: \"year\",\r\n} as const \r\n \r\n \r\nexport { customDate, customDateObject, dayConstant, formatDate, getDateAsPerFormat };\r\n \r\n","import dayjs from 'dayjs';\r\nimport i18next, { type TFunction } from 'i18next';\r\nimport { FieldEnum } from 'libs/shared/enums/common-enums';\r\nimport type { DefaultRulesType } from 'libs/shared/types/common-types';\r\nimport type { FieldValue } from 'libs/shared/types/sharedFormActionTypes';\r\nimport { customDate, customDateObject, dayConstant } from './dateUtilities';\r\n\r\ntype Validator = (\r\n value: FieldValue,\r\n rules: DefaultRulesType,\r\n ctx: ValidationContext\r\n) => string | void;\r\n\r\ntype ValidationContext = {\r\n fieldName: string;\r\n fieldLabel: string;\r\n t: TFunction<\"translation\", undefined>;\r\n};\r\n\r\nexport interface ValidatedFieldState {\r\n id: string;\r\n value: FieldValue;\r\n error: string;\r\n isValid: boolean;\r\n count: number;\r\n type?: string;\r\n}\r\n\r\nexport function validateField(\r\n fieldName: string,\r\n fieldValue: FieldValue,\r\n rules: DefaultRulesType | undefined,\r\n _fieldId?: FieldValue,\r\n t?: TFunction<\"translation\", undefined>,\r\n customValidator?: Validator\r\n): ValidatedFieldState {\r\n const translate = t || i18next.t;\r\n\r\n let value = fieldValue;\r\n\r\n if (!rules) return buildState(\r\n fieldName,\r\n // fieldId,\r\n value,\r\n \"\",\r\n \"\"\r\n );\r\n\r\n if (rules.customError) {\r\n return buildState(fieldName, fieldValue, rules.customError, rules.type);\r\n }\r\n const ctx: ValidationContext = {\r\n fieldName,\r\n fieldLabel: getFieldLabel(\r\n rules,\r\n fieldName,\r\n translate\r\n ),\r\n t: translate,\r\n };\r\n\r\n /* ----------------------------- Date Normalize ---------------------------- */\r\n\r\n if (isCalendarField(rules.type) && value) {\r\n const parsed = dayjs(\r\n String(value),\r\n rules.serverFormat,\r\n true\r\n );\r\n\r\n if (!parsed.isValid()) {\r\n return buildState(\r\n fieldName,\r\n // fieldId,\r\n value,\r\n translate('validation.invalid_input', {\r\n format: rules.clientFormat,\r\n }),\r\n rules.type\r\n );\r\n }\r\n\r\n value = parsed.format(rules.serverFormat);\r\n }\r\n\r\n /* ------------------------------- Validators ------------------------------ */\r\n\r\n const validators: Validator[] = [\r\n requiredValidator,\r\n typeValidator,\r\n lengthValidator,\r\n characterValidator,\r\n maxValueValidator,\r\n dateRangeValidator,\r\n ageValidator,\r\n dtoCustomValidator\r\n ];\r\n\r\n if (customValidator) {\r\n validators.push(customValidator);\r\n }\r\n\r\n for (const validator of validators) {\r\n const error = validator(value, rules, ctx);\r\n\r\n if (error) {\r\n return buildState(\r\n fieldName,\r\n // fieldId,\r\n value,\r\n error,\r\n rules.type\r\n );\r\n }\r\n }\r\n\r\n return buildState(\r\n // fieldId,\r\n fieldName,\r\n value,\r\n '',\r\n rules.type\r\n );\r\n}\r\n\r\n/* -------------------------------------------------------------------------- */\r\n/* VALIDATORS */\r\n/* -------------------------------------------------------------------------- */\r\nconst dtoCustomValidator: Validator = (value, rules) => {\r\n return rules.customValidation?.(value);\r\n};\r\n\r\nconst requiredValidator: Validator = (value, rules, { t, fieldLabel }) => {\r\n if (rules.required && isEmptyFieldValue(value, rules.type)\r\n ) {\r\n return t('validation.required', {\r\n field: fieldLabel,\r\n });\r\n }\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst typeValidator: Validator = (value, rules, { t, fieldName, fieldLabel }) => {\r\n if (isEmptyFieldValue(value, rules.type)) return;\r\n\r\n const isNumeric =\r\n rules.type === FieldEnum.NUMERIC ||\r\n (rules.type === FieldEnum.TEXT && rules.inputMode === 'numeric');\r\n\r\n if (isNumeric && !/^\\d+$/.test(String(value))) {\r\n return t('validation.is_number');\r\n }\r\n\r\n if (rules.type === FieldEnum.EMAIL && !/^(?!.*\\.\\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$/i.test(value as string)) {\r\n return t('strValidEmail');\r\n }\r\n\r\n if (rules.type === FieldEnum.MOBILE && !/^[1-9]\\d{9}$/.test(value as string)) {\r\n return t('strValidMobile');\r\n }\r\n\r\n if (rules.type === FieldEnum.SELECT && isEmptyFieldValue(value, rules.type)) {\r\n return t('validation.required', {\r\n field: fieldLabel,\r\n });\r\n }\r\n\r\n if (['latitude', 'longitude'].includes(fieldName) &&\r\n !validateLatLong(value as string, fieldName)\r\n ) {\r\n return t('strValidLatLong', {\r\n LAT_LONG: fieldName,\r\n });\r\n }\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst lengthValidator: Validator = (value, validation, { t }) => {\r\n const rules = {\r\n minLength: 0,\r\n maxLength: 0,\r\n ...validation\r\n }\r\n if (isEmptyFieldValue(value, rules.type)) return;\r\n\r\n const count = (value as string).length;\r\n const charactersOrDigits = rules.type === FieldEnum.NUMERIC ? t('digits') : t('strCharacters');\r\n\r\n\r\n if (rules.minLength && count < rules.minLength) {\r\n return t('validation.min_max_length', {\r\n minLength: rules.minLength,\r\n maxLength: rules.length || rules.maxLength,\r\n charactersOrDigits\r\n });\r\n }\r\n\r\n if (rules.maxLength && count > rules.maxLength) {\r\n return t('validation.min_max_length', {\r\n minLength: rules.minLength,\r\n maxLength: rules.length || rules.maxLength,\r\n charactersOrDigits\r\n });\r\n }\r\n\r\n if (rules.length && count > rules.length) {\r\n return t('validation.max_length', {\r\n maxLength: rules.length,\r\n charactersOrDigits\r\n });\r\n }\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst characterValidator: Validator = (value, rules) => {\r\n if (\r\n rules.isCheckCharacters &&\r\n !/^[a-zA-Z0-9 ]+$/.test(String(value))\r\n ) {\r\n return 'Special characters are not allowed';\r\n }\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst maxValueValidator: Validator = (\r\n value,\r\n rules,\r\n { t, fieldLabel }\r\n) => {\r\n if (\r\n rules.maxValue &&\r\n +value > +rules.maxValue\r\n ) {\r\n return t('validation.max_value', {\r\n field: fieldLabel, maxValue: rules.maxValue,\r\n });\r\n }\r\n};\r\n\r\n\r\nconst dateRangeValidator: Validator = (\r\n value,\r\n rules,\r\n { t, fieldLabel }\r\n) => {\r\n if (\r\n isEmptyFieldValue(value, rules.type) ||\r\n !isCalendarField(rules.type)\r\n ) {\r\n return;\r\n }\r\n\r\n const parsed = dayjs(\r\n String(value),\r\n rules.serverFormat,\r\n true\r\n );\r\n\r\n // Minimum date check\r\n if (\r\n rules.minimumDate &&\r\n parsed.isBefore(dayjs(rules.minimumDate))\r\n ) {\r\n return `${fieldLabel} ${t('validation.greater_than', {\r\n minLength: dayjs(rules.minimumDate).format(\r\n rules.clientFormat\r\n ),\r\n })}`;\r\n }\r\n\r\n // Maximum date check\r\n if (\r\n rules.maximumDate &&\r\n parsed.isAfter(dayjs(rules.maximumDate))\r\n ) {\r\n return `${fieldLabel} ${t('validation.greater_less', {\r\n maxLength: dayjs(rules.maximumDate).format(\r\n rules.clientFormat\r\n ),\r\n })}`;\r\n }\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst ageValidator: Validator = (value, rules, { fieldLabel, t }) => {\r\n const [min, max] = rules.ageBetween || [];\r\n\r\n if (!value) return;\r\n\r\n const today = customDateObject;\r\n\r\n const birthdate = customDate(value as string);\r\n const age = today.diff(birthdate, dayConstant.year);\r\n\r\n if (min !== undefined && age < min) {\r\n return `${fieldLabel} ${t('validation.greater_than', { minLength: min, })}`;\r\n }\r\n\r\n if (max !== undefined && age > max) {\r\n return `${fieldLabel} ${t('validation.greater_less', { maxLength: max, })}`;\r\n }\r\n\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n/* HELPERS */\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst buildState = (\r\n id: string,\r\n value: FieldValue,\r\n error: string,\r\n type?: string\r\n): ValidatedFieldState => ({\r\n id,\r\n value,\r\n error,\r\n isValid: !error,\r\n count: (value as string)?.length || 0,\r\n type,\r\n});\r\n\r\n/* -------------------------------------------------------------------------- */\r\nfunction isRadioOrCheckboxFieldType(type: FieldEnum): boolean {\r\n return [FieldEnum.RADIO, FieldEnum.RADIOLIST, FieldEnum.CHECKBOX, FieldEnum.CHECKBOXLIST].includes(type)\r\n}\r\n\r\nfunction isEmptyFieldValue(value: FieldValue, type: FieldEnum): boolean {\r\n if (type === FieldEnum.FILE && Array.isArray(value)) {\r\n return value.length === 0;\r\n }\r\n\r\n if (type === FieldEnum.SELECT) {\r\n if (value === null || value === undefined || value === '' || value === -1) {\r\n return true;\r\n }\r\n if (typeof value === 'object') {\r\n return Object.keys(value).length === 0;\r\n }\r\n return false\r\n }\r\n\r\n if (isRadioOrCheckboxFieldType(type))\r\n return value === undefined || value === null || value === '';\r\n \r\n return value === undefined || value === null || value === '';\r\n}\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst isCalendarField = (type: FieldEnum) => [FieldEnum.DATE, FieldEnum.DATE_TIME, FieldEnum.TIME, FieldEnum.YEAR].includes(type);\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst validateLatLong = (value: string, type: string) => {\r\n const num = Number.parseFloat(value);\r\n\r\n return type === 'latitude'\r\n ? num >= -90 && num <= 90\r\n : num >= -180 && num <= 180;\r\n};\r\n\r\n/* -------------------------------------------------------------------------- */\r\n\r\nconst getFieldLabel = (rules: DefaultRulesType | undefined, fieldName: string, t: TFunction<\"translation\", undefined>) => {\r\n if (!rules?.label) {\r\n return t(fieldName);\r\n }\r\n\r\n const translated = t(rules.label);\r\n\r\n return translated === rules.label\r\n ? rules.label\r\n : translated;\r\n};","import type { FieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\n\r\nimport { setStateObjValue } from \"utils/commonFunctions\";\r\nimport type { MobileVerificationDTOType } from \"./mobileVerificationDTO\";\r\n\r\nconst VERIFY_MESSAGE = \"strPleaseVerifyMobileNumber\";\r\n\r\nconst setMobileError = (dto: MobileVerificationDTOType, field: string, message = \"\") => {\r\n setStateObjValue(dto.fieldError, field, message);\r\n setStateObjValue(dto.helperText, field, message);\r\n};\r\n\r\nexport function validateMobileVerification(\r\n dto: MobileVerificationDTOType,\r\n mobileField = \"mobileNumber\",\r\n): boolean {\r\n const fields = dto.fieldsName;\r\n const isVerificationRequired =\r\n dto.submitJson?.[fields.isVerificationRequired];\r\n const isVerified = dto.submitJson?.[fields.isVerified];\r\n\r\n if (!isVerificationRequired || !dto.isValidJson?.[mobileField]) {\r\n return !isVerificationRequired;\r\n }\r\n setMobileError(dto, mobileField, isVerified ? \"\" : VERIFY_MESSAGE);\r\n return isVerified;\r\n}\r\n\r\nexport function handleOnChangeMobile(data: FieldPayload, dto: MobileVerificationDTOType) {\r\n const { key, valueOrCd } = data;\r\n const { mobileNumber, isVerified } = dto.fieldsName;\r\n\r\n if (key === mobileNumber && dto.submitJson?.[isVerified]) {\r\n setStateObjValue(dto.submitJson, isVerified, false)\r\n setMobileError(dto, key, VERIFY_MESSAGE);\r\n }\r\n\r\n if (key === isVerified && valueOrCd === true) {\r\n setMobileError(dto, mobileNumber);\r\n }\r\n}\r\n","/* please only include the dtoName which are common */\r\n\r\nexport const DTONames = {\r\n AGE_PANEL: \"agePanel\",\r\n ADDRESS_MULTIPLE: \"addressMultiple\",\r\n PRESENT_ADDRESS: \"presentAddress\",\r\n PERMANANT_ADDRESS: \"permanantAddress\",\r\n ADDRESS_HISTORY: \"addressHistory\",\r\n PREVIOUS_ADDRESS: \"previousAddress\",\r\n ADDRESS_LIST: \"addressGrid\",\r\n SINGLE_ADDRESS: \"singleAddress\",\r\n ORGANIZATION_INFO : \"ORGANIZATION_INFO\",\r\n PERSONAL_DETAILS: \"personalDetails\",\r\n MOBILE_PANEL: \"mobilePanel\",\r\n FILE_UPLOAD: \"fileUpload\",\r\n IDENTIFICATION_PANEL: \"identificationPanel\",\r\n PHYSICAL_DESCRIPTION: \"physicalDescription\",\r\n SEARCHDATERANGE: \"SEARCHDATERANGE\"\r\n} as const;\r\n","// these max length values are as per the BA document\r\n\r\nexport enum VALIDATION_MAX_LENGTH_ENUM {\r\n NAME = 50,\r\n ALIAS = 30,\r\n PASSWORD = 10,\r\n EMAIL = 100,\r\n MOBILE_NUM = 10,\r\n ALTERNATE_LANDLINE_NUM = 25,\r\n HOUSENUM = 50,\r\n STREETNAME = 50,\r\n COLONY = 50,\r\n VILLAGE = 50,\r\n TEHSIL = 50,\r\n PINCODE = 6,\r\n DISTANCE_METERS = 5,\r\n PAN = 10,\r\n PASSPORT_NUM = 30,\r\n DL_NUM = 30,\r\n RATION_NUM = 12,\r\n VOTERCARD_NUM = 10,\r\n VISA_NUM = 40,\r\n OTHER_ID = 40,\r\n UNIQUE_ID = 20,\r\n TEXTAREA_LARGE = 20000,\r\n TEXTAREA_SMALL = 500,\r\n ACCOUNT_NUM = 25,\r\n LAT_LONG = 10,\r\n DRIVING_LICENSE = 16,\r\n ARM_LICENSE = 18,\r\n ADHAR_NUM = 12,\r\n REG_YEAR_MAX_LENGTH = 4,\r\n FIR_MAX_LENGTH = 5,\r\n OTHERDESC = 400,\r\n RELATIVE_NAME = 120,\r\n AGE = 3,\r\n URL = 100,\r\n TEXT2 = 2,\r\n TEXT5 = 5,\r\n TEXT4 = 4,\r\n TEXT10 = 10,\r\n TEXT16 = 16,\r\n TEXT20 = 20,\r\n TEXT30 = 30,\r\n TEXT50 = 50,\r\n TEXT80 = 80,\r\n TEXT100 = 100,\r\n TEXT120 = 120,\r\n TEXT150 = 150,\r\n TEXT160 = 160,\r\n TEXT200 = 200,\r\n TEXT250 = 250,\r\n TEXT300 = 300,\r\n TEXT400 = 400,\r\n TEXT500 = 500,\r\n TEXT600 = 600,\r\n TEXT800 = 800,\r\n TEXT1000 = 1000,\r\n TEXT1500 = 1500,\r\n TEXT2000 = 2000,\r\n TEXT4000 = 4000,\r\n TEXT5000 = 5000,\r\n TEXT20000 = 20000,\r\n NINE = 9, // their is feild approximate stren in ocis-1 frontal org in which we can not provide more than 9 digit number \r\n TEXT25000 = 25000,\r\n SPECIALIZATION_OTHERS = 6,\r\n HOURS_PER_DAY = 24,\r\n PASSPORT = 20,\r\n AUTOMOBILE_REG_NUM = 15\r\n\r\n}\r\n\r\nexport enum VALIDATION_MIN_LENGTH_ENUM {\r\n NAME = 2,\r\n ALIAS = 2,\r\n PASSWORD = 10,\r\n EMAIL = 10,\r\n MOBILE_NUM = 10,\r\n ALTERNATE_LANDLINE_NUM = 25,\r\n HOUSENUM = 2,\r\n STREETNAME = 2,\r\n COLONY = 2,\r\n VILLAGE = 50,\r\n TEHSIL = 50,\r\n PINCODE = 6,\r\n DISTANCE_METERS = 5,\r\n PAN = 10,\r\n PASSPORT_NUM = 30,\r\n DL_NUM = 30,\r\n RATION_NUM = 10,\r\n VOTERCARD_NUM = 10,\r\n VISA_NUM = 40,\r\n OTHER_ID = 40,\r\n UNIQUE_ID = 20,\r\n TEXTAREA_LARGE = 20000,\r\n TEXTAREA_SMALL = 500,\r\n ACCOUNT_NUM = 3,\r\n LAT_LONG = 6,\r\n RELATIVE_NAME = 3,\r\n AGE = 1,\r\n TEXT3 = 3,\r\n TEXT5 = 5,\r\n TEXT10 = 10,\r\n TEXT2 = 2,\r\n ADHAR_NUM = 12,\r\n TEXT9=9,\r\n TEXT1 = 1,\r\n TEXT15 = 15,\r\n PASSPORT = 8\r\n\r\n}\r\n\r\nexport enum REGULAR_EXPRESSION_ENUM {\r\n TEXT = \"[`=~!#$^&+{}|;'\\\"<>]\",\r\n SLASH_COMMA_BRACES_FULLSTOP = \"[=~!#$^&+{}|;'\\\"<>:\\\\[\\\\]`@%*\\\\-_?]\",\r\n ONLY_NUMERIC = \"[^0-9]\",\r\n LAT_LONG = \"[^0-9.-]\",\r\n ALTERNATE_LANDLINE_NUM = \"[^0-9,-]\",\r\n ALPHANUMERIC_WITH_SPECIAL_CHARACTERS = \"[^\\\\p{L}\\\\p{M}\\\\p{N}\\\\-. ']\",\r\n ONLY_NUMERIC_DECIMAL = \"[^0-9.]\",\r\n ONLY_NUMERIC_DECIMAL_UPTO_3 = \"[/^{0,3}({0,2})?$/]\",\r\n NAME = \"[^\\\\p{L}\\\\p{M}\\\\. ]\",\r\n ALPHANUMERIC_WITH_SPACE = \"[^\\\\p{L}\\\\p{M}0-9. ]\",\r\n EMAIL = \"[^a-zA-Z0-9._+@-]\",\r\n ONLY_TEXT = \"[^\\\\p{L}\\\\p{M} ]\",\r\n ADDRESS = \"[`=~!#$^&+{}|;@%*_?.\\\\[\\\\]()'\\\"<>]\",\r\n ALPHANUMERIC_WITH_FEW_SPECIAL_CHARACTERS = \"[^\\\\p{L}\\\\p{M}\\\\p{N} ,./()]\",\r\n COMMON_IDENTIFICATION = \"[^\\\\p{L}\\\\p{M}\\\\p{N}\\\\-/]\",\r\n ALPHANUMERIC = \"[^\\\\p{L}\\\\p{M}\\\\p{N}]\",\r\n ONLY_DECIMAL_UPTO_5 = \"[^(?:\\\\d+(?:\\\\.\\\\d{1,5})?|\\\\.\\\\d{1,5})$]\",\r\n REMOVE_EXTRA_DECIMAL = \"(\\\\..*?)\\\\..*\",\r\n FEET = \"^([1-9])?$\",\r\n INCH = \"^(1[01]?|[0-9])?$\",\r\n ALPHANUMERIC_WITH_FEW_SPECIAL_CHARACTERS_AND_HYPHEN = \"[=~!#$^&+{}|;'\\\"<>:\\\\[\\\\]`@%*]\",\r\n COUNTRY_CODE = \"[^0-9+]\",\r\n ALPHANUMERIC_WITH_ALL_SPECIAL = \"[^\\\\p{L}\\\\p{M}\\\\p{N}~!@#$%^&*()_+{}:;.,?/\\\\- ]\",\r\n FILE_NAME_INVALID_CHARS_ONE_OR_MORE = \"[/\\\\:*?\\\"<>|]+\",\r\n WHITE_SPACE_OR_UNDERSCORE_GROUP = \"[\\\\s_]+\",\r\n LEADING_TRAILING_UNDERSCORE = \"^_+|_+$\"\r\n}\r\n","import { DTONames } from \"constants/dtoNames\"; \r\nimport { FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport {\r\n REGULAR_EXPRESSION_ENUM,\r\n VALIDATION_MAX_LENGTH_ENUM,\r\n} from \"libs/shared/enums/validation-enums\";\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\"; \r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\n\r\nexport const MobileVerificationFields = () => ({\r\n mobileContryCode: \"mobStdCd\",\r\n mobileNumber: \"mobileNum\",\r\n isVerificationRequired: \"isVerificationRequired\",\r\n isVerified: \"isVerified\"\r\n} as const);\r\n\r\nexport type MobileVerificationFieldsType = ReturnType<typeof MobileVerificationFields>;\r\n\r\nexport const MobileVerificationDTO = (isMobileRequired: boolean = false, isVerificationRequired: boolean = false, dtoName: string = DTONames.MOBILE_PANEL) => {\r\n const fieldsName : MobileVerificationFieldsType = MobileVerificationFields();\r\n const baseDTO = getBaseDTO(isMobileRequired, isVerificationRequired, {isMobileRequired, isVerificationRequired}); \r\n\r\n type jsonType = {\r\n [fieldsName.isVerificationRequired]: boolean;\r\n [fieldsName.isVerified]: boolean;\r\n [fieldsName.mobileContryCode]: string;\r\n [fieldsName.mobileNumber]: string;\r\n } & FieldObject<string>\r\n\r\n return {\r\n ...baseDTO,\r\n fieldsName,\r\n submitJson: {\r\n [fieldsName.mobileContryCode]: \"91\", // --- needs to be removed but is used in protest submitMapper\r\n [fieldsName.mobileNumber]: \"\",\r\n [fieldsName.isVerificationRequired]: isVerificationRequired, // --- needs to be removed but is utlized in validateMobileVerification\r\n [fieldsName.isVerified]: false\r\n } as jsonType,\r\n defaultsRules: {\r\n [fieldsName.mobileNumber]: {\r\n required: isMobileRequired,\r\n type: FieldEnum.MOBILE,\r\n length: VALIDATION_MAX_LENGTH_ENUM.MOBILE_NUM,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC,\r\n label: \"strMobileNo\",\r\n },\r\n },\r\n dtoName \r\n } satisfies DTO;\r\n};\r\n\r\nexport type MobileVerificationDTOType = ReturnType<typeof MobileVerificationDTO>;\r\n","// libs/core/utils/validateDto.ts\r\nimport { FieldEnum, MenuTextColorEnum } from \"libs/shared/enums/common-enums\";\r\nimport { validateField } from \"./validateFields\";\r\nimport { validateMobileVerification } from \"../../shared/components/mobileVerification/validateMobileVerification\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport type { DTO } from \"libs/shared/types/common-types\";\r\nimport { flattenValidity, setStateObjValue } from \"./commonFunctions\";\r\nimport { type MobileVerificationDTOType } from \"components/mobileVerification/mobileVerificationDTO\";\r\nimport type { FieldValue } from \"libs/shared/types/sharedFormActionTypes\";\r\n\r\nexport default function validateDto(\r\n dto: DTO,\r\n): boolean {\r\n if (!dto) return true;\r\n let isValid = true;\r\n if (dto.defaultsRules && dto.submitJson) {\r\n Object.keys(dto.defaultsRules).forEach((key) => {\r\n const rules = dto.defaultsRules[key];\r\n const valueOrCd = dto.submitJson[key] as FieldValue;\r\n const value = dto.submitJson[key] as FieldValue;\r\n\r\n const { isValid: fieldValid, error, count } = validateField(\r\n key,\r\n value,\r\n rules,\r\n valueOrCd\r\n );\r\n setStateObjValue(dto.isValidJson, key, fieldValid);\r\n setStateObjValue(dto.fieldError, key, error || \"\");\r\n if(rules) {\r\n setStateObjValue(dto.helperText, key, rules.type === FieldEnum.TEXT ? count : \"\");\r\n }\r\n\r\n if (!fieldValid) {\r\n isValid = false;\r\n }\r\n\r\n const values = Object.values(dto.isValidJson);\r\n const isValidJsons = flattenValidity(values);\r\n\r\n isValid = isValidJsons; \r\n });\r\n }\r\n dto.menuTextColor = isValid ? MenuTextColorEnum.GREEN : MenuTextColorEnum.RED\r\n if (dto.dtoName === DTONames.MOBILE_PANEL) {\r\n const mobileDTO = dto as MobileVerificationDTOType\r\n const mobileValid = validateMobileVerification(\r\n mobileDTO,\r\n mobileDTO.fieldsName.mobileNumber,\r\n );\r\n\r\n if (!mobileValid) {\r\n isValid = false;\r\n }\r\n }\r\n \r\n if (dto.fieldsName) {\r\n Object.values(dto.fieldsName).forEach((nestedDto: string | DTO) => {\r\n if (\r\n nestedDto &&\r\n typeof nestedDto === \"object\" &&\r\n \"defaultsRules\" in nestedDto\r\n ) {\r\n const childValid = validateDto(\r\n nestedDto,\r\n );\r\n \r\n if (!childValid) {\r\n isValid = false;\r\n }\r\n setStateObjValue(dto, \"menuTextColor\", isValid ? MenuTextColorEnum.GREEN : MenuTextColorEnum.RED)\r\n }\r\n });\r\n }\r\n return isValid;\r\n}\r\n\r\nexport function hasDtoError(dto: DTO): boolean {\r\n if (!dto) return false;\r\n const currentHasError = Object.values(dto.fieldError || {}).some(Boolean);\r\n if (currentHasError) return true;\r\n return Object.values(dto.fieldsName || {}).some((field: DTO | string) =>\r\n field && typeof field === \"object\" && \"defaultsRules\" in field\r\n ? hasDtoError(field)\r\n : false,\r\n );\r\n}\r\n","type LogParams = unknown[];\r\n\r\nconst isDev = true;\r\n\r\nconst styles = {\r\n info: \"color: #25eb2f; font-weight: bold;\", // green\r\n warn: \"color: #ffe817; font-weight: bold;\", // yellow\r\n error: \"color: #dc2626; font-weight: bold;\", // red\r\n};\r\n\r\nconst Logger = {\r\n info(message: string, ...optionalParams: LogParams): void {\r\n if (!isDev) return;\r\n\r\n console.info(`%c[INFO] ${message}`, styles.info, ...optionalParams);\r\n },\r\n\r\n warn(message: string, ...optionalParams: LogParams): void {\r\n if (!isDev) return;\r\n\r\n console.warn(`%c[WARN] ${message}`, styles.warn, ...optionalParams);\r\n },\r\n\r\n error(message: string, ...optionalParams: LogParams): void {\r\n console.error(`%c[ERROR] ${message}`, styles.error, ...optionalParams);\r\n },\r\n} as const;\r\n\r\nexport default Logger;\r\n","import { current, type PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { getNestedValue, setStateObjValue } from \"../../../libs/core/utils/commonFunctions\";\r\nimport validateDto from \"./validateDto\";\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\";\r\nimport Logger from \"./loggers\";\r\nimport { validateField } from \"./validateFields\";\r\nimport type {\r\n ChangeFieldPayload,\r\n ValidatePayload,\r\n ClearDTOPayload,\r\n LoadNestedDTOPayloadExtended,\r\n SetViewDataPayload,\r\n RemoveDataPayload,\r\n} from \"libs/shared/types/sharedFormActionTypes\";\r\nimport type { RootState } from \"store/store\";\r\n\r\nexport const sharedFormActionNames = {\r\n VALIDATE_DTO: \"validateDTO\",\r\n ON_CHANGE_FIELD: \"onChangeField\",\r\n SET_LAST_STEP_COMPLETED: \"setLastStepCompleted\",\r\n CLEAR_DTO: \"CLEAR_DTO\",\r\n LOAD_NESTED_DTO: \"LOAD_NESTED_DTO\",\r\n UPLOAD_FILE: \"UPLOAD_FILE\",\r\n UPDATE_FILES: \"UPDATE_FILES\",\r\n SET_VIEW_DATA: \"SET_VIEW_DATA\",\r\n REMOVE_DATA: \"removeData\",\r\n} as const;\r\n\r\nconst sharedFormActions = {\r\n [sharedFormActionNames.ON_CHANGE_FIELD]: (state: RootState, action: PayloadAction<ChangeFieldPayload>) => {\r\n const { key, valueOrCd, value, parentSliceName } = action.payload;\r\n const fieldValue = value ?? valueOrCd;\r\n const dto = getNestedValue(state, parentSliceName) as DTO;\r\n\r\n if (!dto) return;\r\n const rules = dto.defaultsRules?.[key];\r\n\r\n const fieldState = validateField(key, value, rules, valueOrCd);\r\n\r\n setStateObjValue(dto.submitJson, key, valueOrCd);\r\n setStateObjValue(dto.displayJson, key, fieldValue);\r\n setStateObjValue(dto.isValidJson, key, fieldState.isValid);\r\n setStateObjValue(dto.fieldError, key, fieldState.error);\r\n setStateObjValue(dto.helperText, key, fieldState.count);\r\n\r\n if (action.payload?.callback) {\r\n action.payload.callback(action.payload, dto);\r\n }\r\n\r\n Logger.info(\"[sharedFormActionNames.ON_CHANGE_FIELD] ----- \", current(dto));\r\n },\r\n [sharedFormActionNames.VALIDATE_DTO]: (state: RootState, action: PayloadAction<ValidatePayload>) => {\r\n const { parentSliceName } = action.payload;\r\n const dto: DTO = getNestedValue(state, parentSliceName);\r\n if (!dto) return;\r\n validateDto(dto);\r\n Logger.info(\"[sharedFormActionNames.VALIDATE_DTO] ----- \", current(dto));\r\n },\r\n [sharedFormActionNames.CLEAR_DTO]: (state: RootState, action: PayloadAction<ClearDTOPayload>) => {\r\n // --- for clearing the internal dto\r\n const { key, value, parentSliceName } = action.payload;\r\n const dto = getNestedValue(state, parentSliceName) as DTO;\r\n setStateObjValue(dto.fieldsName, key, value);\r\n Logger.info(\"[sharedFormActionNames.CLEAR_DTO] ----- \", current(dto));\r\n },\r\n [sharedFormActionNames.SET_LAST_STEP_COMPLETED]: (state: RootState, action: PayloadAction<boolean>) => {\r\n state.lastStepCompleted = action.payload;\r\n Logger.info(\"[sharedFormActionNames.SET_LAST_STEP_COMPLETED] ----- \", state);\r\n },\r\n [sharedFormActionNames.LOAD_NESTED_DTO]: (state: RootState, action: PayloadAction<LoadNestedDTOPayloadExtended>) => {\r\n /**\r\n * useFull when need to share the data from parent dto to subDto's submitJson and displayJson\r\n */\r\n const { dtoKey, value, valueOrCd, parentSliceName } = action.payload;\r\n const rootDto = getNestedValue(state, parentSliceName) as DTO;\r\n\r\n if (!Object.hasOwn(rootDto.fieldsName, dtoKey)) return; // checking for dynamic dto\r\n\r\n const subDtoState = rootDto.fieldsName[dtoKey] as DTO;\r\n\r\n setStateObjValue(subDtoState, \"displayJson\", value as FieldObject);\r\n setStateObjValue(subDtoState, \"submitJson\", valueOrCd as FieldObject);\r\n\r\n if (action.payload?.callback) {\r\n action.payload.callback(action.payload, rootDto);\r\n }\r\n\r\n Logger.info(\"[sharedFormActionNames.LOAD_NESTED_DTO] ----- \", current(rootDto));\r\n },\r\n [sharedFormActionNames.SET_VIEW_DATA]: (state: FieldObject, action: PayloadAction<SetViewDataPayload>) => {\r\n const { dto, fieldsName, path } = action.payload;\r\n\r\n if (fieldsName) {\r\n const rootDto = path ? (getNestedValue(state, path) as DTO) : state;\r\n setStateObjValue((rootDto as DTO).fieldsName, fieldsName, dto);\r\n if (action.payload.callback) {\r\n action.payload.callback(action.payload, rootDto as DTO);\r\n }\r\n Logger.info(\"[sharedFormActionNames.SET_VIEW_DATA] ----- \", current(rootDto));\r\n } else {\r\n if (action.payload?.callback) {\r\n action.payload.callback(action.payload, dto);\r\n }\r\n Logger.info(\"[sharedFormActionNames.SET_VIEW_DATA] ----- \", dto);\r\n return dto;\r\n }\r\n },\r\n [sharedFormActionNames.REMOVE_DATA]: (state: RootState, action: PayloadAction<RemoveDataPayload>) => { // --- needs rework\r\n const { key, path } = action.payload;\r\n\r\n const rootDto = getNestedValue(state, path) as DTO;\r\n Logger.info(\"[sharedFormActionNames.REMOVE_DATA] before ----- \", current(rootDto));\r\n\r\n const updatedFields = { ...rootDto.fieldsName };\r\n delete updatedFields[key];\r\n\r\n setStateObjValue(rootDto, \"fieldsName\", updatedFields);\r\n\r\n if (action.payload?.callback) {\r\n action.payload.callback(action.payload, rootDto);\r\n }\r\n\r\n Logger.info(\"[sharedFormActionNames.REMOVE_DATA] ----- \", current(rootDto));\r\n }\r\n};\r\nexport default sharedFormActions;\r\n","const {\n slice,\n forEach\n} = [];\nfunction defaults(obj) {\n forEach.call(slice.call(arguments, 1), source => {\n if (source) {\n for (const prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\nfunction hasXSS(input) {\n if (typeof input !== 'string') return false;\n\n // Common XSS attack patterns\n const xssPatterns = [/<\\s*script.*?>/i, /<\\s*\\/\\s*script\\s*>/i, /<\\s*img.*?on\\w+\\s*=/i, /<\\s*\\w+\\s*on\\w+\\s*=.*?>/i, /javascript\\s*:/i, /vbscript\\s*:/i, /expression\\s*\\(/i, /eval\\s*\\(/i, /alert\\s*\\(/i, /document\\.cookie/i, /document\\.write\\s*\\(/i, /window\\.location/i, /innerHTML/i];\n return xssPatterns.some(pattern => pattern.test(input));\n}\n\n// eslint-disable-next-line no-control-regex\nconst fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\nconst serializeCookie = function (name, val) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n path: '/'\n };\n const opt = options;\n const value = encodeURIComponent(val);\n let str = `${name}=${value}`;\n if (opt.maxAge > 0) {\n const maxAge = opt.maxAge - 0;\n if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += `; Max-Age=${Math.floor(maxAge)}`;\n }\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n str += `; Domain=${opt.domain}`;\n }\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n str += `; Path=${opt.path}`;\n }\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n str += `; Expires=${opt.expires.toUTCString()}`;\n }\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n if (opt.sameSite) {\n const sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n if (opt.partitioned) str += '; Partitioned';\n return str;\n};\nconst cookie = {\n create(name, value, minutes, domain) {\n let cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, value, cookieOptions);\n },\n read(name) {\n const nameEQ = `${name}=`;\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n },\n remove(name, domain) {\n this.create(name, '', -1, domain);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n // Deconstruct the options object and extract the lookupCookie property\n lookup(_ref) {\n let {\n lookupCookie\n } = _ref;\n if (lookupCookie && typeof document !== 'undefined') {\n return cookie.read(lookupCookie) || undefined;\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupCookie,\n cookieMinutes,\n cookieDomain,\n cookieOptions\n } = _ref2;\n if (lookupCookie && typeof document !== 'undefined') {\n cookie.create(lookupCookie, lng, cookieMinutes, cookieDomain, cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n // Deconstruct the options object and extract the lookupQuerystring property\n lookup(_ref) {\n let {\n lookupQuerystring\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n let {\n search\n } = window.location;\n if (!window.location.search && window.location.hash?.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n const query = search.substring(1);\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n return found;\n }\n};\n\nvar hash = {\n name: 'hash',\n // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property\n lookup(_ref) {\n let {\n lookupHash,\n lookupFromHashIndex\n } = _ref;\n let found;\n if (typeof window !== 'undefined') {\n const {\n hash\n } = window.location;\n if (hash && hash.length > 2) {\n const query = hash.substring(1);\n if (lookupHash) {\n const params = query.split('&');\n for (let i = 0; i < params.length; i++) {\n const pos = params[i].indexOf('=');\n if (pos > 0) {\n const key = params[i].substring(0, pos);\n if (key === lookupHash) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n if (found) return found;\n if (!found && lookupFromHashIndex > -1) {\n const language = hash.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromHashIndex === 'number' ? lookupFromHashIndex : 0;\n return language[index]?.replace('/', '');\n }\n }\n }\n return found;\n }\n};\n\nlet hasLocalStorageSupport = null;\nconst localStorageAvailable = () => {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n try {\n hasLocalStorageSupport = typeof window !== 'undefined' && window.localStorage !== null;\n if (!hasLocalStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n return hasLocalStorageSupport;\n};\nvar localStorage = {\n name: 'localStorage',\n // Deconstruct the options object and extract the lookupLocalStorage property\n lookup(_ref) {\n let {\n lookupLocalStorage\n } = _ref;\n if (lookupLocalStorage && localStorageAvailable()) {\n return window.localStorage.getItem(lookupLocalStorage) || undefined; // Undefined ensures type consistency with the previous version of this function\n }\n return undefined;\n },\n // Deconstruct the options object and extract the lookupLocalStorage property\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupLocalStorage\n } = _ref2;\n if (lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(lookupLocalStorage, lng);\n }\n }\n};\n\nlet hasSessionStorageSupport = null;\nconst sessionStorageAvailable = () => {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n try {\n hasSessionStorageSupport = typeof window !== 'undefined' && window.sessionStorage !== null;\n if (!hasSessionStorageSupport) {\n return false;\n }\n const testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n return hasSessionStorageSupport;\n};\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup(_ref) {\n let {\n lookupSessionStorage\n } = _ref;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n return window.sessionStorage.getItem(lookupSessionStorage) || undefined;\n }\n return undefined;\n },\n cacheUserLanguage(lng, _ref2) {\n let {\n lookupSessionStorage\n } = _ref2;\n if (lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup(options) {\n const found = [];\n if (typeof navigator !== 'undefined') {\n const {\n languages,\n userLanguage,\n language\n } = navigator;\n if (languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (let i = 0; i < languages.length; i++) {\n found.push(languages[i]);\n }\n }\n if (userLanguage) {\n found.push(userLanguage);\n }\n if (language) {\n found.push(language);\n }\n }\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n // Deconstruct the options object and extract the htmlTag property\n lookup(_ref) {\n let {\n htmlTag\n } = _ref;\n let found;\n const internalHtmlTag = htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n if (internalHtmlTag && typeof internalHtmlTag.getAttribute === 'function') {\n found = internalHtmlTag.getAttribute('lang');\n }\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n // Deconstruct the options object and extract the lookupFromPathIndex property\n lookup(_ref) {\n let {\n lookupFromPathIndex\n } = _ref;\n if (typeof window === 'undefined') return undefined;\n const language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n if (!Array.isArray(language)) return undefined;\n const index = typeof lookupFromPathIndex === 'number' ? lookupFromPathIndex : 0;\n return language[index]?.replace('/', '');\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup(_ref) {\n let {\n lookupFromSubdomainIndex\n } = _ref;\n // If given get the subdomain index else 1\n const internalLookupFromSubdomainIndex = typeof lookupFromSubdomainIndex === 'number' ? lookupFromSubdomainIndex + 1 : 1;\n // get all matches if window.location. is existing\n // first item of match is the match itself and the second is the first group match which should be the first subdomain match\n // is the hostname no public domain get the or option of localhost\n const language = typeof window !== 'undefined' && window.location?.hostname?.match(/^(\\w{2,5})\\.(([a-z0-9-]{1,63}\\.[a-z]{2,6})|localhost)/i);\n\n // if there is no match (null) return undefined\n if (!language) return undefined;\n // return the given group match\n return language[internalLookupFromSubdomainIndex];\n }\n};\n\n// some environments, throws when accessing document.cookie\nlet canCookies = false;\ntry {\n // eslint-disable-next-line no-unused-expressions\n document.cookie;\n canCookies = true;\n // eslint-disable-next-line no-empty\n} catch (e) {}\nconst order = ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'];\nif (!canCookies) order.splice(1, 1);\nconst getDefaults = () => ({\n order,\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'],\n // cookieMinutes: 10,\n // cookieDomain: 'myDomain'\n\n convertDetectedLanguage: l => l\n});\nclass Browser {\n constructor(services) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n init() {\n let services = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n languageUtils: {}\n };\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults());\n if (typeof this.options.convertDetectedLanguage === 'string' && this.options.convertDetectedLanguage.indexOf('15897') > -1) {\n this.options.convertDetectedLanguage = l => l.replace('-', '_');\n }\n\n // backwards compatibility\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n this.addDetector(hash);\n }\n addDetector(detector) {\n this.detectors[detector.name] = detector;\n return this;\n }\n detect() {\n let detectionOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.order;\n let detected = [];\n detectionOrder.forEach(detectorName => {\n if (this.detectors[detectorName]) {\n let lookup = this.detectors[detectorName].lookup(this.options);\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n detected = detected.filter(d => d !== undefined && d !== null && !hasXSS(d)).map(d => this.options.convertDetectedLanguage(d));\n if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n cacheUserLanguage(lng) {\n let caches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(cacheName => {\n if (this.detectors[cacheName]) this.detectors[cacheName].cacheUserLanguage(lng, this.options);\n });\n }\n}\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","//#region lib/utils.js\nconst arr = [];\narr.forEach;\narr.slice;\nconst UNSAFE_KEYS$1 = [\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n];\nfunction isSafeUrlSegmentBase(v) {\n\tif (typeof v !== \"string\") return false;\n\tif (v.length === 0 || v.length > 128) return false;\n\tif (UNSAFE_KEYS$1.indexOf(v) > -1) return false;\n\tif (v.indexOf(\"..\") > -1) return false;\n\tif (v.indexOf(\"\\\\\") > -1) return false;\n\tif (/[?#%\\s]/.test(v)) return false;\n\tif (/[\\x00-\\x1F\\x7F]/.test(v)) return false;\n\treturn true;\n}\nfunction isSafeLangUrlSegment(v) {\n\tif (!isSafeUrlSegmentBase(v)) return false;\n\tif (v.indexOf(\"/\") > -1 || v.indexOf(\"@\") > -1) return false;\n\treturn true;\n}\nfunction isSafeNsUrlSegment(v) {\n\treturn isSafeUrlSegmentBase(v);\n}\nconst SAFETY_CHECK_BY_KEY = {\n\tlng: isSafeLangUrlSegment,\n\tns: isSafeNsUrlSegment\n};\nfunction sanitizeLogValue(v) {\n\tif (typeof v !== \"string\") return v;\n\treturn v.replace(/[\\r\\n\\x00-\\x1F\\x7F]/g, \" \");\n}\nfunction redactUrlCredentials(u) {\n\tif (typeof u !== \"string\" || u.length === 0) return u;\n\ttry {\n\t\tconst parsed = new URL(u);\n\t\tif (parsed.username || parsed.password) {\n\t\t\tparsed.username = \"\";\n\t\t\tparsed.password = \"\";\n\t\t\treturn parsed.toString();\n\t\t}\n\t\treturn u;\n\t} catch (e) {\n\t\treturn u.replace(/(\\/\\/)[^/@\\s]+@/g, \"$1\");\n\t}\n}\nfunction hasXMLHttpRequest() {\n\treturn typeof XMLHttpRequest === \"function\" || typeof XMLHttpRequest === \"object\";\n}\n/**\n* Determine whether the given `maybePromise` is a Promise.\n*\n* @param {*} maybePromise\n*\n* @returns {Boolean}\n*/\nfunction isPromise(maybePromise) {\n\treturn !!maybePromise && typeof maybePromise.then === \"function\";\n}\n/**\n* Convert any value to a Promise than will resolve to this value.\n*\n* @param {*} maybePromise\n*\n* @returns {Promise}\n*/\nfunction makePromise(maybePromise) {\n\tif (isPromise(maybePromise)) return maybePromise;\n\treturn Promise.resolve(maybePromise);\n}\nconst interpolationRegexp = /\\{\\{(.+?)\\}\\}/g;\nfunction interpolateUrl(str, data) {\n\tlet unsafe = false;\n\tconst result = str.replace(interpolationRegexp, (match, key) => {\n\t\tconst k = key.trim();\n\t\tif (UNSAFE_KEYS$1.indexOf(k) > -1) return match;\n\t\tconst value = data[k];\n\t\tif (value == null) return match;\n\t\tconst check = SAFETY_CHECK_BY_KEY[k] || isSafeLangUrlSegment;\n\t\tconst segments = String(value).split(\"+\");\n\t\tfor (const seg of segments) if (!check(seg)) {\n\t\t\tunsafe = true;\n\t\t\treturn match;\n\t\t}\n\t\treturn segments.join(\"+\");\n\t});\n\treturn unsafe ? null : result;\n}\n//#endregion\n//#region lib/request.js\nconst g = typeof globalThis !== \"undefined\" ? globalThis : typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : void 0;\nlet fetchApi;\nif (typeof fetch === \"function\") fetchApi = fetch;\nelse if (g && typeof g.fetch === \"function\") fetchApi = g.fetch;\nconst XmlHttpRequestApi = hasXMLHttpRequest() && g ? g.XMLHttpRequest : void 0;\nconst ActiveXObjectApi = typeof ActiveXObject === \"function\" && g ? g.ActiveXObject : void 0;\nconst UNSAFE_KEYS = [\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n];\nconst addQueryString = (url, params) => {\n\tif (params && typeof params === \"object\") {\n\t\tlet queryString = \"\";\n\t\tfor (const paramName of Object.keys(params)) {\n\t\t\tif (UNSAFE_KEYS.indexOf(paramName) > -1) continue;\n\t\t\tqueryString += \"&\" + encodeURIComponent(paramName) + \"=\" + encodeURIComponent(params[paramName]);\n\t\t}\n\t\tif (!queryString) return url;\n\t\turl = url + (url.indexOf(\"?\") !== -1 ? \"&\" : \"?\") + queryString.slice(1);\n\t}\n\treturn url;\n};\nconst fetchIt = (url, fetchOptions, callback, altFetch) => {\n\tconst resolver = (response) => {\n\t\tif (!response.ok) return callback(response.statusText || \"Error\", { status: response.status });\n\t\tresponse.text().then((data) => {\n\t\t\tcallback(null, {\n\t\t\t\tstatus: response.status,\n\t\t\t\tdata\n\t\t\t});\n\t\t}).catch(callback);\n\t};\n\tif (altFetch) {\n\t\tconst altResponse = altFetch(url, fetchOptions);\n\t\tif (altResponse instanceof Promise) {\n\t\t\taltResponse.then(resolver).catch(callback);\n\t\t\treturn;\n\t\t}\n\t}\n\tif (typeof fetch === \"function\") fetch(url, fetchOptions).then(resolver).catch(callback);\n\telse fetchApi(url, fetchOptions).then(resolver).catch(callback);\n};\nconst requestWithFetch = (options, url, payload, callback) => {\n\tif (options.queryStringParams) url = addQueryString(url, options.queryStringParams);\n\tconst headers = { ...typeof options.customHeaders === \"function\" ? options.customHeaders() : options.customHeaders };\n\tif (typeof window === \"undefined\" && typeof global !== \"undefined\" && typeof global.process !== \"undefined\" && global.process.versions && global.process.versions.node) headers[\"User-Agent\"] = `i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`;\n\tif (payload) headers[\"Content-Type\"] = \"application/json\";\n\tconst reqOptions = typeof options.requestOptions === \"function\" ? options.requestOptions(payload) : options.requestOptions;\n\tconst fetchOptions = {\n\t\tmethod: payload ? \"POST\" : \"GET\",\n\t\tbody: payload ? options.stringify(payload) : void 0,\n\t\theaders,\n\t\t...options._omitFetchOptions ? {} : reqOptions\n\t};\n\tconst altFetch = typeof options.alternateFetch === \"function\" && options.alternateFetch.length >= 1 ? options.alternateFetch : void 0;\n\ttry {\n\t\tfetchIt(url, fetchOptions, callback, altFetch);\n\t} catch (e) {\n\t\tif (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf(\"not implemented\") < 0) return callback(e);\n\t\ttry {\n\t\t\tObject.keys(reqOptions).forEach((opt) => {\n\t\t\t\tdelete fetchOptions[opt];\n\t\t\t});\n\t\t\tfetchIt(url, fetchOptions, callback, altFetch);\n\t\t\toptions._omitFetchOptions = true;\n\t\t} catch (err) {\n\t\t\tcallback(err);\n\t\t}\n\t}\n};\nconst requestWithXmlHttpRequest = (options, url, payload, callback) => {\n\tif (payload && typeof payload === \"object\") payload = addQueryString(\"\", payload).slice(1);\n\tif (options.queryStringParams) url = addQueryString(url, options.queryStringParams);\n\ttry {\n\t\tconst x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi(\"MSXML2.XMLHTTP.3.0\");\n\t\tx.open(payload ? \"POST\" : \"GET\", url, 1);\n\t\tif (!options.crossDomain) x.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n\t\tx.withCredentials = !!options.withCredentials;\n\t\tif (payload) x.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\tif (x.overrideMimeType) x.overrideMimeType(\"application/json\");\n\t\tlet h = options.customHeaders;\n\t\th = typeof h === \"function\" ? h() : h;\n\t\tif (h) for (const i of Object.keys(h)) {\n\t\t\tif (UNSAFE_KEYS.indexOf(i) > -1) continue;\n\t\t\tx.setRequestHeader(i, h[i]);\n\t\t}\n\t\tx.onreadystatechange = () => {\n\t\t\tx.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {\n\t\t\t\tstatus: x.status,\n\t\t\t\tdata: x.responseText\n\t\t\t});\n\t\t};\n\t\tx.send(payload);\n\t} catch (e) {\n\t\tconsole && console.log(e);\n\t}\n};\nconst request = (options, url, payload, callback) => {\n\tif (typeof payload === \"function\") {\n\t\tcallback = payload;\n\t\tpayload = void 0;\n\t}\n\tcallback = callback || (() => {});\n\tif (fetchApi && url.indexOf(\"file:\") !== 0) return requestWithFetch(options, url, payload, callback);\n\tif (hasXMLHttpRequest() || typeof ActiveXObject === \"function\") return requestWithXmlHttpRequest(options, url, payload, callback);\n\tcallback(/* @__PURE__ */ new Error(\"No fetch and no xhr implementation found!\"));\n};\n//#endregion\n//#region lib/index.js\nconst getDefaults = () => {\n\treturn {\n\t\tloadPath: \"/locales/{{lng}}/{{ns}}.json\",\n\t\taddPath: \"/locales/add/{{lng}}/{{ns}}\",\n\t\tparse: (data) => JSON.parse(data),\n\t\tstringify: JSON.stringify,\n\t\tparsePayload: (namespace, key, fallbackValue) => ({ [key]: fallbackValue || \"\" }),\n\t\tparseLoadPayload: (languages, namespaces) => void 0,\n\t\trequest,\n\t\treloadInterval: typeof window !== \"undefined\" ? false : 3600 * 1e3,\n\t\tcustomHeaders: {},\n\t\tqueryStringParams: {},\n\t\tcrossDomain: false,\n\t\twithCredentials: false,\n\t\toverrideMimeType: false,\n\t\trequestOptions: {\n\t\t\tmode: \"cors\",\n\t\t\tcredentials: \"same-origin\",\n\t\t\tcache: \"default\"\n\t\t}\n\t};\n};\nvar Backend = class {\n\tconstructor(services, options = {}, allOptions = {}) {\n\t\tthis.services = services;\n\t\tthis.options = options;\n\t\tthis.allOptions = allOptions;\n\t\tthis.type = \"backend\";\n\t\tthis.init(services, options, allOptions);\n\t}\n\tinit(services, options = {}, allOptions = {}) {\n\t\tthis.services = services;\n\t\tthis.options = {\n\t\t\t...getDefaults(),\n\t\t\t...this.options || {},\n\t\t\t...options\n\t\t};\n\t\tthis.allOptions = allOptions;\n\t\tif (this.services && this.options.reloadInterval) {\n\t\t\tconst timer = setInterval(() => this.reload(), this.options.reloadInterval);\n\t\t\tif (typeof timer === \"object\" && typeof timer.unref === \"function\") timer.unref();\n\t\t}\n\t}\n\treadMulti(languages, namespaces, callback) {\n\t\tthis._readAny(languages, languages, namespaces, namespaces, callback);\n\t}\n\tread(language, namespace, callback) {\n\t\tthis._readAny([language], language, [namespace], namespace, callback);\n\t}\n\t_readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {\n\t\tlet loadPath = this.options.loadPath;\n\t\tif (typeof this.options.loadPath === \"function\") loadPath = this.options.loadPath(languages, namespaces);\n\t\tloadPath = makePromise(loadPath);\n\t\tloadPath.then((resolvedLoadPath) => {\n\t\t\tif (!resolvedLoadPath) return callback(null, {});\n\t\t\tconst url = interpolateUrl(resolvedLoadPath, {\n\t\t\t\tlng: languages.join(\"+\"),\n\t\t\t\tns: namespaces.join(\"+\")\n\t\t\t});\n\t\t\tif (url == null) {\n\t\t\t\tconst safeLngs = languages.map(sanitizeLogValue).join(\", \");\n\t\t\t\tconst safeNss = namespaces.map(sanitizeLogValue).join(\", \");\n\t\t\t\treturn callback(/* @__PURE__ */ new Error(\"i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[\" + safeLngs + \"] namespaces=[\" + safeNss + \"]\"), false);\n\t\t\t}\n\t\t\tthis.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);\n\t\t});\n\t}\n\tloadUrl(url, callback, languages, namespaces) {\n\t\tconst lng = typeof languages === \"string\" ? [languages] : languages;\n\t\tconst ns = typeof namespaces === \"string\" ? [namespaces] : namespaces;\n\t\tconst payload = this.options.parseLoadPayload(lng, ns);\n\t\tconst safeUrl = sanitizeLogValue(redactUrlCredentials(url));\n\t\tthis.options.request(this.options, url, payload, (err, res) => {\n\t\t\tif (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback(\"failed loading \" + safeUrl + \"; status code: \" + res.status, true);\n\t\t\tif (res && res.status >= 400 && res.status < 500) return callback(\"failed loading \" + safeUrl + \"; status code: \" + res.status, false);\n\t\t\tif (!res && err && err.message) {\n\t\t\t\tconst errorMessage = err.message.toLowerCase();\n\t\t\t\tif ([\n\t\t\t\t\t\"failed\",\n\t\t\t\t\t\"fetch\",\n\t\t\t\t\t\"network\",\n\t\t\t\t\t\"load\"\n\t\t\t\t].find((term) => errorMessage.indexOf(term) > -1)) return callback(\"failed loading \" + safeUrl + \": \" + sanitizeLogValue(err.message), true);\n\t\t\t}\n\t\t\tif (err) return callback(err, false);\n\t\t\tlet ret, parseErr;\n\t\t\ttry {\n\t\t\t\tif (typeof res.data === \"string\") ret = this.options.parse(res.data, languages, namespaces);\n\t\t\t\telse ret = res.data;\n\t\t\t} catch (e) {\n\t\t\t\tparseErr = \"failed parsing \" + safeUrl + \" to json\";\n\t\t\t}\n\t\t\tif (parseErr) return callback(parseErr, false);\n\t\t\tcallback(null, ret);\n\t\t});\n\t}\n\tcreate(languages, namespace, key, fallbackValue, callback) {\n\t\tif (!this.options.addPath) return;\n\t\tif (typeof languages === \"string\") languages = [languages];\n\t\tconst payload = this.options.parsePayload(namespace, key, fallbackValue);\n\t\tlet finished = 0;\n\t\tconst dataArray = [];\n\t\tconst resArray = [];\n\t\tlanguages.forEach((lng) => {\n\t\t\tlet addPath = this.options.addPath;\n\t\t\tif (typeof this.options.addPath === \"function\") addPath = this.options.addPath(lng, namespace);\n\t\t\tconst url = interpolateUrl(addPath, {\n\t\t\t\tlng,\n\t\t\t\tns: namespace\n\t\t\t});\n\t\t\tif (url == null) {\n\t\t\t\tfinished += 1;\n\t\t\t\tif (callback && finished === languages.length) callback(dataArray, resArray);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.options.request(this.options, url, payload, (data, res) => {\n\t\t\t\tfinished += 1;\n\t\t\t\tdataArray.push(data);\n\t\t\t\tresArray.push(res);\n\t\t\t\tif (finished === languages.length) {\n\t\t\t\t\tif (typeof callback === \"function\") callback(dataArray, resArray);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\treload() {\n\t\tconst { backendConnector, languageUtils, logger } = this.services;\n\t\tconst currentLanguage = backendConnector.language;\n\t\tif (currentLanguage && currentLanguage.toLowerCase() === \"cimode\") return;\n\t\tconst toLoad = [];\n\t\tconst append = (lng) => {\n\t\t\tlanguageUtils.toResolveHierarchy(lng).forEach((l) => {\n\t\t\t\tif (toLoad.indexOf(l) < 0) toLoad.push(l);\n\t\t\t});\n\t\t};\n\t\tappend(currentLanguage);\n\t\tif (this.allOptions.preload) this.allOptions.preload.forEach((l) => append(l));\n\t\ttoLoad.forEach((lng) => {\n\t\t\tthis.allOptions.ns.forEach((ns) => {\n\t\t\t\tbackendConnector.read(lng, ns, \"read\", null, null, (err, data) => {\n\t\t\t\t\tif (err) logger.warn(`loading namespace ${ns} for language ${lng} failed`, err);\n\t\t\t\t\tif (!err && data) logger.log(`loaded namespace ${ns} for language ${lng}`, data);\n\t\t\t\t\tbackendConnector.loaded(`${lng}|${ns}`, err, data);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n};\nBackend.type = \"backend\";\n//#endregion\nexport { Backend as default };\n","import i18n from \"i18next\";\r\n\r\nimport { initReactI18next } from \"react-i18next\";\r\n\r\nimport LanguageDetector from \"i18next-browser-languagedetector\"; \r\nimport apiClient from \"../../core/api/apiClient\";\r\nimport HttpBackend from \"i18next-http-backend\";\r\nimport Logger from \"utils/loggers\";\r\n\r\ntype TranslationResource = Record<\r\n string,\r\n string\r\n>;\r\n\r\ni18n\r\n .use(HttpBackend)\r\n .use(LanguageDetector)\r\n .use(initReactI18next)\r\n .init({\r\n fallbackLng: \"en\",\r\n\r\n supportedLngs: [\r\n \"en\",\r\n \"hi\",\r\n ],\r\n\r\n ns: [\"translation\"],\r\n\r\n defaultNS: \"translation\",\r\n\r\n /**\r\n * Local translation files\r\n */\r\n\r\n backend: {\r\n loadPath:\r\n \"/locales/{{lng}}/{{ns}}.json\",\r\n },\r\n\r\n interpolation: {\r\n escapeValue: false,\r\n },\r\n\r\n react: {\r\n useSuspense: true,\r\n },\r\n });\r\n\r\n/**\r\n * Future API Translation Support\r\n */\r\n\r\nexport async function loadTranslations(\r\n lang: string\r\n) {\r\n try {\r\n /**\r\n * Future API integration\r\n */\r\n\r\n const response =\r\n await apiClient.get(\r\n \"/translations\",\r\n {\r\n params: { lang },\r\n }\r\n );\r\n\r\n const translations: TranslationResource =\r\n response.data;\r\n\r\n i18n.addResourceBundle(\r\n lang,\r\n \"translation\",\r\n translations,\r\n true,\r\n true\r\n );\r\n } catch (error) {\r\n /**\r\n * Local translations already loaded\r\n * by i18next-http-backend\r\n */\r\n\r\n Logger.error(\r\n `[i18n] API translation load failed for \"${lang}\"`,\r\n error\r\n );\r\n }\r\n}\r\n\r\nexport default i18n;","export const MASTER_DATA_KEYS = {\r\n CODE: \"lookUpCd\",\r\n VALUE: \"lookUp\",\r\n} as const;\r\n\r\n// include only necessary master codes\r\nexport const MasterCodeType = {\r\n GENDER: \"GENDER\",\r\n MARITAL_STATUS: \"MARTL_STATUS\",\r\n NATIONALITY: \"NATIONALITY\",\r\n IDENTITY_TYP: \"IDENTITY_TYP\",\r\n RELATION_TYP: \"RELATION_TYP\",\r\n OCCUPATION: \"OCCUPATION\",\r\n STRIKE_TYP: \"STRIKE_TYP\",\r\n STRIKE_STRUC_TYPE: \"STRIKE_STRUC_TYPE\",\r\n LANGUAGE: \"LANGUAGE\",\r\n CATEGORY: \"CATEGORY\",\r\n COMPL_NATURE: \"COMPL_NATURE\",\r\n DENOMINATION: \"DENOMINATION\",\r\n DIALECTS: \"LANG_DIALECTS\",\r\n LANGUAGES: \"LANG_DIALECT\",\r\n JEWELRY_TYP: \"JEWELRY_TYP\",\r\n MEASURE_UNT: \"MEASURE_UNT\",\r\n SOUND_TYPE: \"SOUND_TYPE\",\r\n CATTLE_TYPE: \"CATTLE_TYPE\",\r\n CATTLE_COLOR_TYPE: \"CATTLE_COLOR_TYPE\",\r\n MAJOR_PROP_TYP: \"MAJOR_PROP_TYP\",\r\n PROP_TYP: \"PROP_TYP\",\r\n LOST_PROP: \"LOST_PROP\",\r\n EXPLOSIVE_MATERIAL: \"EXPLOSIVE_MATERIAL\",\r\n OTHER_PROP_MAJ_TYPE: \"OTHER_PROP_MAJ_TYPE\",\r\n OTHER_PROP_MIN_TYPE: \"OTHER_PROP_MIN_TYPE\",\r\n CULT_PROP_MATERIAL: \"CULT_PROP_MATERIAL\",\r\n CULT_PROP_SPL_FTR: \"CULT_PROP_SPL_FTR\",\r\n CULT_PROP_NAME: \"CULT_PROP_NAME\",\r\n AGE_AD_BC: \"AGE_AD_BC\",\r\n FIRE_ARMS_MADE: \"FIRE_ARMS_MADE\",\r\n FIRE_ARMS_TYP: \"FIRE_ARMS_TYP\",\r\n FIRE_ARMS_SUB_TYP: \"FIRE_ARMS_SUB_TYP\",\r\n MV_MADE: \"MV_MADE\",\r\n PROCESSION_TYP: \"PROCESSION_TYP\",\r\n MV_MAKE: \"MV_MAKE\",\r\n MV_MODEL: \"MV_MODEL\",\r\n MV_CTRGY: \"MV_CTRGY\",\r\n MV_COLOR: \"MV_COLOR\",\r\n MV_FUEL: \"MV_FUEL\",\r\n COMPL_NCR_STATUS: \"COMPL_NCR_STATUS\",\r\n MOB_SERVICE_PROVD: \"MOB_SERVICE_PROVD\",\r\n MB_INCIDENT_TYP: \"MB_INCIDENT_TYP\",\r\n CITIZEN_SERV_STATUS: \"CITIZEN_SERV_STATUS\",\r\n FIRE_ARMS_CTGRY: \"FIRE_ARMS_CTGRY\",\r\n MV_TYP: \"MV_TYP\",\r\n ELEC_ID_TYP: \"ELEC_ID_TYP\",\r\n VEHICLE_TYP: \"PROP_TYP\",\r\n ANIMAL_TYP: \"OTHER_PROP_MIN_TYPE\",\r\n PHY_FEAT_PCODE_FACE: \"PHY_FEAT_PCODE_FACE\",\r\n PHY_FEAT_PCODE_EYES: \"PHY_FEAT_PCODE_EYES\",\r\n PHY_FEAT_PCODE_DEFORM: \"PHY_FEAT_PCODE_DEFORM\",\r\n PHY_FEAT_PCODE_HAIRS: \"PHY_FEAT_PCODE_HAIRS\",\r\n PHY_FEAT_PCODE_HB_SPCH: \"PHY_FEAT_PCODE_HB_SPCH\",\r\n PHY_FEAT_PCODE_MALE: \"PHY_FEAT_PCODE_MALE\",\r\n PHY_FEAT_PCODE_FEMALE: \"PHY_FEAT_PCODE_FEMALE\",\r\n PHY_FEAT_PCODE_HABITS: \"PHY_FEAT_PCODE_HABITS\",\r\n PHY_FEAT_PCODE_SPEECH: \"PHY_FEAT_PCODE_SPEECH\",\r\n PHYSCL_FEATURES: \"PHYSCL_FEATURES\",\r\n PHY_FEAT_PCODE_IDENTF: \"PHY_FEAT_PCODE_IDENTF\",\r\n PHY_FTRS_CAT: \"PHY_FTRS_CAT\",\r\n PHY_DESC_TYP: \"PHY_DESC_TYP\",\r\n SR_CTZN_TYP : \"SR_CTZN_TYP\",\r\n ACCOMMODATION : \"ACCOMMODATION\",\r\n SEC_CTGRY : \"SEC_CTGRY\",\r\n EDU_QUAL: \"EDU_QUAL\",\r\n MB_DEVICE_BRAND: \"MB_DEVICE_BRAND\",\r\n MOB_BLOCK_INC_TYPE: \"MOB_BLOCK_INC_TYPE\",\r\n} as const; \r\n\r\n\r\n","import { CommonAddressFields } from \"constants/commonConstants\";\r\nimport { MenuTextColorEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonAddressFieldsTypesDisplay, DTO, FieldObject, GridRowData, MasterResponseDataType } from \"../../shared/types/common-types\";\r\nimport { sharedFormActionNames } from \"./sharedFormActions\";\r\nimport i18n from \"internationalisation/i18n\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { StepConfig } from \"ui/stepper/types/stepperTypes\";\r\nimport { customDateObject } from \"./dateUtilities\";\r\n\r\nexport function setStateObjValue<T extends FieldObject | DTO, K extends keyof T>(\r\n state: T,\r\n key: K,\r\n value: T[K]\r\n): void {\r\n state[key] = value;\r\n}\r\n\r\nexport function constructParentSliceName(sliceName: string, parentSliceName: string = \"\"): string {\r\n return parentSliceName ? `${parentSliceName}.${sliceName}` : sliceName;\r\n}\r\n\r\nexport function getNestedValue<T>(obj: Record<string, unknown> | DTO, path: string) {\r\n const keys = path.split(\".\");\r\n\r\n const returnState = keys.reduce((acc: Record<string, unknown> | DTO, key: string) => {\r\n if (key in acc) {\r\n return (acc as Record<string, DTO>)[key] as DTO;\r\n } else if (key in (acc as DTO).fieldsName) {\r\n return (acc as DTO).fieldsName[key] as DTO;\r\n } else return acc;\r\n }, obj);\r\n\r\n return returnState as T;\r\n}\r\n\r\nexport function getBaseDTO(...intialArgsArr: unknown[]): DTO {\r\n return {\r\n submitJson: {},\r\n displayJson: {},\r\n isValidJson: {},\r\n fieldError: {},\r\n helperText: {},\r\n dtoName: \"\",\r\n defaultsRules: {},\r\n fieldsName: {},\r\n initialArgs: intialArgsArr ?? [],\r\n menuTextColor: MenuTextColorEnum.INHERIT\r\n };\r\n}\r\n\r\nexport const toLocaleString = (value: string | number) => {\r\n return value.toLocaleString();\r\n}\r\n\r\nexport const getSelectInputFieldName = (name: string): string => {\r\n return name.split(\"-\")?.[0] ?? \"\"\r\n}\r\n\r\n/**\r\n * Create concat address using display data.\r\n *\r\n * @param {GridRowData} addressDisplay - Address Display Data\r\n * @returns {string} Concanated Address\r\n */\r\nexport const getConcatAddress = (addressDisplay: CommonAddressFieldsTypesDisplay) => {\r\n const fields = CommonAddressFields;\r\n const order = [fields.houseNo, fields.streetName, fields.colony, fields.village, fields.subDistrict, fields.district, fields.state, fields.pincode, fields.country, fields.other];\r\n const concatAddress = order.map((key) => addressDisplay[key]).join(\" \");\r\n return concatAddress.trim();\r\n};\r\n\r\nexport const getOnChangeActionType = (rootSliceName: string) => {\r\n return `${rootSliceName}/${sharedFormActionNames.ON_CHANGE_FIELD}`\r\n}\r\n\r\n/**\r\n * useful to get the value key from the cd key\r\n * @param codeKey \r\n * @param suffix \r\n * @returns value key\r\n */\r\nexport const getValueKey = <T extends string, S extends string = \"Cd\">(codeKey: T, suffix: S = \"Cd\" as S) => {\r\n return codeKey.slice(0, -suffix.length);\r\n};\r\n\r\nexport const filterRecordById = <T extends GridRowData>(row: T, key: string = \"id\") => (obj: T) => obj?.[key] !== row?.[key];\r\n\r\nexport function concatenateFullName<T extends {\r\n firstName?: string | null;\r\n middleName?: string | null;\r\n lastName?: string | null;\r\n}>(data: T): string {\r\n const { firstName, middleName, lastName } = data;\r\n let fullName = \"\";\r\n\r\n for (const name of [firstName, middleName, lastName]) {\r\n const trimmed = name?.trim();\r\n if (trimmed) {\r\n fullName += fullName ? ` ${trimmed}` : trimmed;\r\n }\r\n }\r\n\r\n return fullName;\r\n}\r\n\r\nexport const getTranslation = () => {\r\n return i18n.resolvedLanguage || i18n.language || 'en'\r\n}\r\n\r\nexport const fieldsManager = (dto: DTO, fields: string[]) => {\r\n const { fieldError, isValidJson, helperText, submitJson, displayJson } = dto;\r\n\r\n fields.forEach((field) => {\r\n setStateObjValue(fieldError, field, \"\");\r\n setStateObjValue(isValidJson, field, true);\r\n setStateObjValue(helperText, field, \"\");\r\n delete submitJson[field];\r\n delete displayJson[field];\r\n });\r\n};\r\n\r\n\r\nexport const generateLookupArray = (length: number): MasterResponseDataType[] => {\r\n return Array.from({ length }, (_, i) => ({\r\n [MASTER_DATA_KEYS.CODE]: i + 1,\r\n [MASTER_DATA_KEYS.VALUE]: `${i + 1}`,\r\n id: i + 1,\r\n selectoptiontitle: `${i + 1}`,\r\n }));\r\n}\r\n\r\nexport function reIndex<T extends { id: number }>(list: T[]) {\r\n return list.map((item, index) => ({ ...item, id: index + 1 }));\r\n}\r\n\r\nexport function injectIntoStepCallback(prev: StepConfig[], dtoName: string, newStep: StepConfig, position: \"start\" | \"end\" | number = \"end\", isSection: boolean = false) {\r\n const getUpdatedMenuList = (steps: StepConfig[], newStep: StepConfig): StepConfig[] => {\r\n let updatedMenuList: StepConfig[];\r\n\r\n if (position === \"start\") {\r\n updatedMenuList = [newStep, ...steps];\r\n } else if (position === \"end\") {\r\n updatedMenuList = [...steps, newStep];\r\n } else {\r\n const targetIndex = Math.max(0, Math.min(position, steps.length));\r\n\r\n updatedMenuList = [...steps];\r\n updatedMenuList.splice(targetIndex, 0, newStep);\r\n }\r\n\r\n return reIndex(updatedMenuList);\r\n };\r\n if (isSection) {\r\n return prev.map((step: StepConfig) => {\r\n if (step.dtoName === dtoName) {\r\n return getUpdatedMenuList(step.sections ?? [], newStep);\r\n }\r\n return step;\r\n }) as StepConfig[];\r\n }\r\n\r\n return getUpdatedMenuList(prev, newStep);\r\n\r\n}\r\n\r\nexport function removeFromStepsCallback(prev: StepConfig[], dtoName: string, isSection: boolean = false) {\r\n const filterList = (steps: StepConfig[]) => {\r\n return reIndex(steps.filter((step: StepConfig) => step.dtoName !== dtoName));\r\n };\r\n\r\n if (isSection) {\r\n return prev.map((step: StepConfig) => {\r\n if (step.dtoName === dtoName) {\r\n return filterList(step.sections ?? []);\r\n }\r\n\r\n return step;\r\n }) as StepConfig[];\r\n }\r\n\r\n return filterList(prev);\r\n}\r\nexport const getModuleNumber = (loginId: string | number) => {\r\n const timestamp = customDateObject.format('YYYYMMDDHHmmss');\r\n const randomSuffix = Math.floor(Math.random() * 100); // 2 random digits\r\n return `${loginId}${timestamp}${randomSuffix}`;\r\n}\r\n\r\n\r\n\r\n//Works for booleans, arrays, and nested objects\r\nexport const flattenValidity = (value: unknown): boolean => {\r\n if (typeof value === \"boolean\") {\r\n return value; // base case\r\n }\r\n if (Array.isArray(value)) {\r\n return value.every(flattenValidity); // check each element recursively\r\n }\r\n if (typeof value === \"object\" && value !== null) {\r\n return Object.values(value).every(flattenValidity); // check each field recursively\r\n }\r\n return false; // if unexpected type (string, number etc.)\r\n};","import axios from \"axios\";\r\nimport { getTranslation } from \"utils/commonFunctions\";\r\nimport Logger from \"utils/loggers\";\r\n\r\nconst apiClient = axios.create({\r\n baseURL: \"import.meta.env.VITE_API_BASE_URL\",\r\n withCredentials: true,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n});\r\n\r\napiClient.interceptors.request.use((config) => {\r\n const currentLang =\r\n getTranslation() === \"en\"\r\n ? 99\r\n : 6;\r\n\r\n config.headers.loginparams =\r\n JSON.stringify({\r\n userId: 4370,\r\n // loginId: \"002362EXK\",\r\n langCd: currentLang,\r\n \"stateCd\":38,\"stateId\":24\r\n });\r\n\r\n Logger.info(\"Request => \", config.data)\r\n\r\n return config;\r\n});\r\n\r\napiClient.interceptors.response.use(\r\n (response) => {\r\n Logger.info(\"Response => \", response.data)\r\n return response\r\n },\r\n\r\n async (error) => {\r\n const status =\r\n error.response?.status;\r\n\r\n const url =\r\n error.config?.url ?? \"\";\r\n\r\n if (\r\n status === 401 &&\r\n url.includes(\"user-login\")\r\n ) {\r\n return Promise.reject(error);\r\n }\r\n\r\n if (status === 401) {\r\n window.location.replace(\"/login\");\r\n }\r\n\r\n return Promise.reject(error);\r\n },\r\n);\r\n\r\nexport default apiClient;","// libs/api/errorHandler.ts\r\n\r\nimport { AxiosError } from \"axios\";\r\nimport type { ErrorData } from \"libs/shared/types/common-types\";\r\n\r\nconst ErrorHandler = {\r\n generateErrorResponse: (error: unknown): ErrorData => {\r\n const axiosError = error as AxiosError<any>;\r\n\r\n // API response error\r\n if (axiosError.response) {\r\n const status = axiosError.response.status;\r\n const data = axiosError.response.data;\r\n\r\n return {\r\n status,\r\n code: axiosError.code,\r\n message:\r\n data?.message ??\r\n data?.error ??\r\n \"Something went wrong\",\r\n\r\n errorMessage: axiosError.message,\r\n\r\n errors: Array.isArray(data?.errors)\r\n ? data.errors\r\n : [],\r\n };\r\n }\r\n\r\n // Network / timeout\r\n if (axiosError.request) {\r\n return {\r\n status: 0,\r\n code: axiosError.code,\r\n message: \"Network error. Please check your connection.\",\r\n errorMessage: axiosError.message,\r\n };\r\n }\r\n\r\n // Unknown\r\n return {\r\n status: 0,\r\n code: \"UNKNOWN\",\r\n message: \"Unexpected error occurred\",\r\n errorMessage: (error as any)?.message,\r\n };\r\n },\r\n};\r\n\r\nexport default ErrorHandler;\r\n","// libs/api/apiService.ts\r\n\r\nimport type { ApiResponse, FieldObject } from \"libs/shared/types/common-types\";\r\nimport apiClient from \"./apiClient\"; \r\nimport ErrorHandler from \"./errorHandlers\";\r\n\r\nexport const apiService = {\r\n get: async <T=FieldObject, S=FieldObject>(url: string, params?: S): Promise<ApiResponse<T>> => {\r\n try {\r\n const res = await apiClient.get(url, { params });\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n\r\n post: async <T=FieldObject, S=FieldObject>(url: string, data?: S, config = {}): Promise<ApiResponse<T>> => {\r\n try {\r\n const res = await apiClient.post(url, data, config);\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n \r\n put: async <T>(url: string, data?: FieldObject): Promise<ApiResponse<T>> => {\r\n try {\r\n const res = await apiClient.put(url, data);\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n\r\n patch: async <T>(url: string, data?: FieldObject): Promise<ApiResponse<T>> => {\r\n try {\r\n const res = await apiClient.patch(url, data);\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n\r\n delete: async <T>(url: string, data?: FieldObject): Promise<ApiResponse<T>> => {\r\n try {\r\n const res = await apiClient.delete(url, { data });\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n\r\n download: async (url: string): Promise<ApiResponse<Blob>> => {\r\n try {\r\n const res = await apiClient.get(url, {\r\n responseType: \"blob\",\r\n });\r\n return res.data;\r\n } catch (error) {\r\n throw ErrorHandler.generateErrorResponse(error);\r\n }\r\n },\r\n};","const ApiEndPoint = {\r\n COMMON: {\r\n PATH: \"/common\",\r\n END_POINT: {\r\n GET_LOGIN_MENU_AND_PERSONAL_DETAILS: \"/search/get-menu-list\",\r\n GET_LOGIN_MENU_DETAILS: \"/menu/get-menu-details\",\r\n PS_WISE_OFFICER_LIST: \"/search/ps-wise-officer-list\",\r\n PE_WISE_OFFICER_LIST: \"/search/get-pe-officer-list\",\r\n GET_DISTRICT_DETAILS: \"/state-dist-ps/get-district-data\",\r\n GET_USE_CASE_TYPE: \"/get-use-case-type\",\r\n PS_WISE_OFFICER_LIST_WITH_COUNT: \"/search/ps-wise-officer-list-with-count\",\r\n PS_BEAT: \"/search/get-beat-details\",\r\n CASE_PRGRSS_ACTN: \"/common/master/get\",\r\n ENTRY_FOR_OFFICER_LIST: \"/search/entry-for-officer-list\",\r\n VIEW_PDF: \"/view/pdf\",\r\n FORENSIC_LAB_LIST: \"/fsl/view/get-lab-list\",\r\n GET_IO_EO_DETAILS: \"/search/get-io-eo-details\",\r\n IO_LIST_OFFICE_TYPE_WISE: \"/search/io-list-office-type-wise\",\r\n GET_PS_FOR_HIGHER_OFFICER: \"/search/get-ps-for-higher-officer\",\r\n GET_DIST_FOR_HIGHER_OFFICER: \"/search/get-dist-for-higher-officer\",\r\n GET_TOP_BOTTOM_HIERARCHY: \"/search/get-top-bottom-hierarchy\",\r\n GET_REG_TYPE_FOR_TRANSFER: \"/search/get-reg-type-for-transfer\",\r\n GET_OFFICER_RANKS: \"/search/get-officer-ranks\",\r\n GENERATE_PDF: \"/pdf/generate\",\r\n PREVIEW_PDF: \"/pdf/preview\",\r\n FINALIZE_PDF: \"/pdf/finalize\",\r\n },\r\n },\r\n\r\n MASTER: {\r\n PATH: \"/common\",\r\n END_POINT: {\r\n GET_MASTER_DATA: \"/master/get-master-data\",\r\n PS_WISE_OFFICER_LIST: \"/search/ps-wise-officer-list\",\r\n EO_IO_LIST: \"/state-dist-ps/get-ps-data\",\r\n HOSPITAL_NAME: \"/master/get-hospital-data\",\r\n GET_MASTER_COURT_DISTRICT: \"/master/get-court-district\",\r\n GET_COURT_DISTRICT: \"/master/get-court-district\",\r\n GET_MASTER_COURT_COMPLEX_NAME: \"/master/get-court-complex\",\r\n GET_COURT_ESTABLISHMENT_NAME: \"/master/get-court-establishment\",\r\n GET_JAIL_DATA: \"/master/get-jail-data\",\r\n GET_MASTER_DISTRICT_NAME: \"/master/get-court-district\",\r\n GET_OFFICE_MASTER: \"/master/get-office-master\",\r\n \r\n },\r\n },\r\n\r\n STATE_DISTRICT_PS: {\r\n PATH: \"/common/state-dist-ps\",\r\n END_POINT: {\r\n STATE: \"/get-state-data\",\r\n DISTRICT: \"/get-addr-district-data\",\r\n PS: \"/get-addr-ps-data\",\r\n SUB_DISTRICT: \"/get-addr-sub-district-data\",\r\n VILLAGE: \"/get-addr-village-data\",\r\n DISTRICTMAIN: \"/get-district-data\",\r\n PSMAIN: \"/get-ps-data\",\r\n PINCODE: \"/get-pincode-data\"\r\n },\r\n }\r\n};\r\n\r\nexport const MASTER_API_END_POINT = ApiEndPoint.MASTER.PATH + ApiEndPoint.MASTER.END_POINT.GET_MASTER_DATA;\r\nexport const STATE = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.STATE;\r\nexport const DISTRICT = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.DISTRICT;\r\nexport const SUB_DISTRICT = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.SUB_DISTRICT;\r\nexport const VILLAGE = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.VILLAGE\r\nexport const PS = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.PS;\r\n\r\n// for individual state, district, ps\r\nexport const GET_STATE_DETAILS = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.STATE;\r\nexport const GET_DISTRICT_DETAILS = ApiEndPoint.COMMON.PATH + ApiEndPoint.COMMON.END_POINT.GET_DISTRICT_DETAILS;\r\nexport const GET_PS_DETAILS = ApiEndPoint.STATE_DISTRICT_PS.PATH + ApiEndPoint.STATE_DISTRICT_PS.END_POINT.PSMAIN;\r\n\r\nexport const GET_OFFICE_MASTER = ApiEndPoint.MASTER.PATH + ApiEndPoint.MASTER.END_POINT.GET_OFFICE_MASTER\r\n\r\nexport default ApiEndPoint;","export const CommonLookUpCodes = {\r\n WEIGHT_UNIT: 7,\r\n CURRENCY: 8\r\n}","import React from \"react\"; \r\nimport type { ThemeMode } from \"../../shared/theme/theme\";\r\nimport type { ColorScheme } from \"../../shared/theme/color\";\r\nimport type { DeviceTypeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\ninterface ContextType {\r\n mode: ThemeMode;\r\n scheme: ColorScheme;\r\n fontSize: number;\r\n sidebarOpen: boolean;\r\n currentDevice: DeviceTypeEnum,\r\n\r\n setScheme: (s: ColorScheme) => void;\r\n toggleMode: () => void;\r\n increaseFont: () => void;\r\n decreaseFont: () => void;\r\n resetTheme: () => void;\r\n toggleSidebar: (val?: boolean) => void;\r\n toggleMobileSidebar: () => void;\r\n handleCurrentDevice: (deviceType: DeviceTypeEnum) => void\r\n}\r\n\r\nexport const AppThemeContext = React.createContext<ContextType | null>(null);\r\n\r\nexport const useAppThemeContext = () => {\r\n const ctx = React.useContext(AppThemeContext);\r\n if (!ctx) throw new Error(\"useAppThemeContext must be inside provider\");\r\n return ctx;\r\n};","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n const url = new URL(`https://mui.com/production-error/?code=${code}`);\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","export default '$$material';","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * @mui/styled-engine v9.3.0\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\n\n// Re-export the public type surface of `@emotion/styled`. Explicit names rather\n// than `export type *`: an `export *` (even type-only) is disallowed by the\n// `'use client'` Next.js lint rule. Names locally redeclared below intentionally\n// shadow Emotion's and are not re-exported here.\n\nfunction styled(tag, options) {\n // Emotion's `styled` overloads each expect a specific tag/component shape;\n // none accept the broadened `React.ElementType` union, so cast the passthrough.\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\nexport default styled;\n\n/**\n * For internal usage in `@mui/system` package\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.mjs\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.mjs\";\n\n// TODO v6 - check if we can drop the unknown, as it breaks the autocomplete\n// For more info on why it was added, see https://github.com/mui/material-ui/pull/26228\n\n// TODO v6 - check if we can drop the unknown, as it breaks the autocomplete\n// For more info on why it was added, see https://github.com/mui/material-ui/pull/26228\n\n// Omit variants as a key, because we have a special handling for it\n\n/** Same as StyledOptions but shouldForwardProp must be a type guard */\n\n/**\n * @typeparam ComponentProps Props which will be included when withComponent is called\n * @typeparam SpecificComponentProps Props which will *not* be included when withComponent is called\n */","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n };\n exports.typeOf = typeOf;\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\n\n// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md\n// #host-reference\n\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n values = {\n xs: 0,\n sm: 600,\n md: 900,\n lg: 1200,\n xl: 1536\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n const mediaKeys = [];\n for (let i = 0; i < keys.length; i += 1) {\n mediaKeys.push(up(keys[i]));\n }\n return {\n keys: keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n internal_mediaKeys: mediaKeys,\n ...other\n };\n}","const MIN_WIDTH_PATTERN = /min-width:\\s*([0-9.]+)/;\n\n/**\n * WARN: Mutably updates the `css` object.\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 even though 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries || !hasContainerQuery(css)) {\n return css;\n }\n const keys = [];\n for (const key in css) {\n if (key.startsWith('@container')) {\n keys.push(key);\n }\n }\n keys.sort((a, b) => {\n return +(a.match(MIN_WIDTH_PATTERN)?.[1] || 0) - +(b.match(MIN_WIDTH_PATTERN)?.[1] || 0);\n });\n const result = css;\n for (let i = 0; i < keys.length; i += 1) {\n const key = keys[i];\n const value = result[key];\n delete result[key];\n result[key] = value;\n }\n return result;\n}\nfunction hasContainerQuery(css) {\n for (const key in css) {\n if (key.startsWith('@container')) {\n return true;\n }\n }\n return false;\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n // TODO: avoid throwing during React render only in development.\n // eslint-disable-next-line mui/no-guarded-throw\n throw /* minify-error */new Error(`MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.');\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","export default function isObjectEmpty(object) {\n if (object == null) {\n return true;\n }\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}","// Based on https://github.com/TehShrike/deepmerge\n// Based on https://github.com/fastify/deepmerge\n// MIT License\n// Copyright (c) 2012 - 2022 James Halliday, Josh Duff, and other contributors of deepmerge\n\n/* eslint-disable no-else-return */\n\n/**\n * Assigns props from one object to another. Focused on performance, only normal objects with no\n * prototype are supported.\n */\nexport default function fastDeepAssign(target, source) {\n const sourceIsArray = Array.isArray(source);\n const targetIsArray = Array.isArray(target);\n if (isPrimitive(source)) {\n return source;\n } else if (isPrimitiveOrBuiltIn(target)) {\n return clone(source);\n } else if (sourceIsArray && targetIsArray) {\n return mergeArray(target, source);\n } else if (sourceIsArray !== targetIsArray) {\n return clone(source);\n } else {\n return mergeObject(target, source);\n }\n}\nfunction cloneArray(value) {\n let i = 0;\n const il = value.length;\n const result = new Array(il);\n for (i = 0; i < il; i += 1) {\n result[i] = clone(value[i]);\n }\n return result;\n}\nfunction cloneObject(target) {\n const result = {};\n for (const key in target) {\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n continue;\n }\n result[key] = clone(target[key]);\n }\n return result;\n}\nfunction mergeArray(target, source) {\n const tl = target.length;\n for (let i = 0; i < source.length; i += 1) {\n target[tl + i] = clone(source[i]);\n }\n return target;\n}\nfunction isMergeableObject(value) {\n return typeof value === 'object' && value !== null && !(value instanceof RegExp) && !(value instanceof Date);\n}\nfunction isPrimitive(value) {\n return typeof value !== 'object' || value === null;\n}\nfunction isPrimitiveOrBuiltIn(value) {\n return typeof value !== 'object' || value === null || value instanceof RegExp || value instanceof Date;\n}\nfunction clone(entry) {\n // eslint-disable-next-line no-nested-ternary\n return isMergeableObject(entry) ? Array.isArray(entry) ? cloneArray(entry) : cloneObject(entry) : entry;\n}\nfunction mergeObject(target, source) {\n for (const key in source) {\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n continue;\n }\n if (key in target) {\n target[key] = fastDeepAssign(target[key], source[key]);\n } else {\n target[key] = clone(source[key]);\n }\n }\n return target;\n}","import PropTypes from 'prop-types';\nimport isObjectEmpty from '@mui/utils/isObjectEmpty';\nimport fastDeepAssign from '@mui/utils/fastDeepAssign';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.mjs\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.mjs\";\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.mjs\";\nconst EMPTY_THEME = {};\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\n/** @internal */\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nexport const DEFAULT_BREAKPOINTS = createBreakpoints({\n values: values\n});\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const result = {};\n return iterateBreakpoints(result, props.theme, propValue, (mediaKey, value, initialKey) => {\n const finalValue = styleFromPropValue(value, initialKey);\n if (mediaKey) {\n result[mediaKey] = finalValue;\n } else {\n fastDeepAssign(result, finalValue);\n }\n });\n}\nexport function iterateBreakpoints(target, theme, propValue, callback) {\n theme ??= EMPTY_THEME;\n if (Array.isArray(propValue)) {\n const breakpoints = theme.breakpoints ?? DEFAULT_BREAKPOINTS;\n for (let i = 0; i < propValue.length; i += 1) {\n buildBreakpoint(target, breakpoints.up(breakpoints.keys[i]), propValue[i], undefined, callback);\n }\n return target;\n }\n if (typeof propValue === 'object') {\n const breakpoints = theme.breakpoints ?? DEFAULT_BREAKPOINTS;\n const breakpointValues = breakpoints.values ?? values;\n for (const key in propValue) {\n if (isCqShorthand(breakpoints.keys, key)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, key);\n if (containerKey) {\n buildBreakpoint(target, containerKey, propValue[key], key, callback);\n }\n } else if (key in breakpointValues) {\n const mediaKey = breakpoints.up(key);\n buildBreakpoint(target, mediaKey, propValue[key], key, callback);\n } else {\n const cssKey = key;\n target[cssKey] = propValue[cssKey];\n }\n }\n return target;\n }\n callback(undefined, propValue);\n return target;\n}\nfunction buildBreakpoint(target, mediaKey, value, initialKey, callback) {\n target[mediaKey] ??= {};\n callback(mediaKey, value, initialKey);\n}\nfunction setupBreakpoints(styleFunction) {\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || DEFAULT_BREAKPOINTS;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\n\n/** @internal */\nexport function createEmptyBreakpointObject(breakpoints = DEFAULT_BREAKPOINTS) {\n const {\n internal_mediaKeys: mediaKeys\n } = breakpoints;\n const result = {};\n for (let i = 0; i < mediaKeys.length; i += 1) {\n result[mediaKeys[i]] = {};\n }\n return result;\n}\n\n/** @internal */\nexport function removeUnusedBreakpoints(breakpoints, style) {\n const breakpointKeys = breakpoints.internal_mediaKeys;\n for (let i = 0; i < breakpointKeys.length; i += 1) {\n const key = breakpointKeys[i];\n if (isObjectEmpty(style[key])) {\n delete style[key];\n }\n }\n return style;\n}\nexport function mergeBreakpointsInOrder(breakpoints, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpoints);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(breakpoints, mergedOutput);\n}\n\n/** @internal */\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues(options) {\n const {\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n } = options;\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object' && breakpointValues) {\n const bv = breakpointValues;\n acc[breakpoint] = bv[breakpoint] != null ? bv[breakpoint] : bv[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport function hasBreakpoint(breakpoints, value) {\n if (Array.isArray(value)) {\n return true;\n }\n if (typeof value === 'object' && value !== null) {\n for (let i = 0; i < breakpoints.keys.length; i += 1) {\n if (breakpoints.keys[i] in value) {\n return true;\n }\n }\n const valueKeys = Object.keys(value);\n for (let i = 0; i < valueKeys.length; i += 1) {\n if (isCqShorthand(breakpoints.keys, valueKeys[i])) {\n return true;\n }\n }\n }\n return false;\n}\nexport default setupBreakpoints;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.mjs\";\nimport { handleBreakpoints } from \"../breakpoints/index.mjs\";\n/**\n * TODO(v7): Keep either this one or `getStyleValue2`\n */\nexport function getStyleValue(themeMapping, transform, valueFinal, userValue = valueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(valueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[valueFinal] || userValue;\n } else if (typeof valueFinal === 'string') {\n value = getPath(themeMapping, valueFinal) || userValue;\n } else {\n value = userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\n\n/**\n * HACK: The `alternateProp` logic is there because our theme looks like this:\n * {\n * typography: {\n * fontFamily: 'comic sans',\n * fontFamilyCode: 'courrier new',\n * }\n * }\n * And we support targetting:\n * - `typography.fontFamily` with `sx={{ fontFamily: 'default' }}`\n * - `typography.fontFamilyCode` with `sx={{ fontFamily: 'code' }}`\n *\n * TODO(v7): Refactor our theme to look like this and remove the horrendous logic:\n * {\n * typography: {\n * fontFamily: {\n * default: 'comic sans',\n * code: 'courrier new',\n * }\n * }\n * }\n */\nexport function getStyleValue2(themeMapping, transform, userValue, alternateProp) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(userValue);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[userValue] || userValue;\n } else if (typeof userValue === 'string') {\n value = getPath(themeMapping, userValue, true, alternateProp) || userValue;\n } else {\n value = userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nexport function getPath(obj, pathInput, checkVars = true, alternateProp = undefined) {\n if (!obj || !pathInput) {\n return null;\n }\n const path = pathInput.split('.');\n\n // Check if CSS variables are used\n if (obj.vars && checkVars) {\n const val = getPathImpl(obj.vars, path, alternateProp);\n if (val != null) {\n return val;\n }\n }\n return getPathImpl(obj, path, alternateProp);\n}\nfunction getPathImpl(object, path, alternateProp = undefined) {\n let lastResult = undefined;\n let result = object;\n let index = 0;\n while (index < path.length) {\n if (result === null || result === undefined) {\n return result;\n }\n lastResult = result;\n result = result[path[index]];\n index += 1;\n }\n if (alternateProp && result === undefined) {\n const lastKey = path[path.length - 1];\n const alternateKey = `${alternateProp}${lastKey === 'default' ? '' : capitalize(lastKey)}`;\n return lastResult?.[alternateKey];\n }\n return result;\n}\nexport default function style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = valueFinal => {\n const value = getStyleValue2(themeMapping, transform, valueFinal, prop);\n return cssProperty === false ? value : {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}","import responsivePropType from \"../responsivePropType/index.mjs\";\nimport { iterateBreakpoints } from \"../breakpoints/index.mjs\";\nimport { getPath } from \"../style/index.mjs\";\n\n/* eslint-disable guard-for-in */\n\nconst EMPTY_THEME = {\n internal_cache: {}\n};\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\nconst CSS_PROPERTIES = {};\nfor (const key in properties) {\n CSS_PROPERTIES[key] = [properties[key]];\n}\nfor (const keyProperty in properties) {\n for (const keyDirection in directions) {\n const property = properties[keyProperty];\n const direction = directions[keyDirection];\n const value = Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n CSS_PROPERTIES[keyProperty + keyDirection] = value;\n }\n}\nfor (const key in aliases) {\n CSS_PROPERTIES[key] = CSS_PROPERTIES[aliases[key]];\n}\n\n/** @internal */\nexport const marginKeys = new Set(['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd']);\n\n/** @internal */\nexport const paddingKeys = new Set(['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd']);\nconst spacingKeys = new Set([...marginKeys, ...paddingKeys]);\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\n\n// Avoid allocations\nconst container = [''];\nfunction style(props, keys) {\n const theme = props.theme ?? EMPTY_THEME;\n const transformer = theme?.internal_cache?.unarySpacing ?? createUnarySpacing(theme);\n const result = {};\n for (const prop in props) {\n if (!keys.has(prop)) {\n continue;\n }\n const cssProperties = CSS_PROPERTIES[prop] ?? (container[0] = prop, container);\n const propValue = props[prop];\n iterateBreakpoints(result, props.theme, propValue, (mediaKey, value) => {\n const target = mediaKey ? result[mediaKey] : result;\n for (let i = 0; i < cssProperties.length; i += 1) {\n target[cssProperties[i]] = getValue(transformer, value);\n }\n });\n }\n return result;\n}\nfunction marginFn(props) {\n return style(props, marginKeys);\n}\nmarginFn.propTypes = process.env.NODE_ENV !== 'production' ? Array.from(marginKeys).reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmarginFn.filterProps = marginKeys;\nexport const margin = marginFn;\nfunction paddingFn(props) {\n return style(props, paddingKeys);\n}\npaddingFn.propTypes = process.env.NODE_ENV !== 'production' ? Array.from(paddingKeys).reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npaddingFn.filterProps = paddingKeys;\nexport const padding = paddingFn;\nfunction spacingFn(props) {\n return style(props, spacingKeys);\n}\nspacingFn.propTypes = process.env.NODE_ENV !== 'production' ? Array.from(spacingKeys).reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacingFn.filterProps = spacingKeys;\nconst spacing = spacingFn;\nexport default spacing;","import { createUnarySpacing } from \"../spacing/index.mjs\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import fastDeepAssign from '@mui/utils/fastDeepAssign';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n const fn = props => {\n const result = {};\n for (const prop in props) {\n if (handlers[prop]) {\n fastDeepAssign(result, handlers[prop](props));\n }\n }\n return result;\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from \"../responsivePropType/index.mjs\";\nimport style from \"../style/index.mjs\";\nimport compose from \"../compose/index.mjs\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.mjs\";\nimport { handleBreakpoints } from \"../breakpoints/index.mjs\";\n\n/** @internal */\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform: transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from \"../style/index.mjs\";\nimport compose from \"../compose/index.mjs\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.mjs\";\nimport { handleBreakpoints } from \"../breakpoints/index.mjs\";\nimport responsivePropType from \"../responsivePropType/index.mjs\";\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from \"../style/index.mjs\";\nimport compose from \"../compose/index.mjs\";\n\n/** @internal */\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from \"../style/index.mjs\";\nimport compose from \"../compose/index.mjs\";\nimport { handleBreakpoints } from \"../breakpoints/index.mjs\";\nimport * as breakpointsModule from \"../breakpoints/index.mjs\";\nconst breakpointsValues = breakpointsModule.values;\n\n/** @internal */\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from \"../spacing/index.mjs\";\nimport { borderRadius, borderTransform } from \"../borders/index.mjs\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.mjs\";\nimport { paletteTransform } from \"../palette/index.mjs\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.mjs\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import merge from '@mui/utils/fastDeepAssign';\nimport { getPath, getStyleValue2 } from \"../style/index.mjs\";\nimport { hasBreakpoint, iterateBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints, DEFAULT_BREAKPOINTS } from \"../breakpoints/index.mjs\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.mjs\";\nimport defaultSxConfig from \"./defaultSxConfig.mjs\";\n\n/* eslint-disable guard-for-in */\n\nconst EMPTY_THEME = {};\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function styleFunctionSx(props) {\n if (!props.sx) {\n return null;\n }\n const {\n sx,\n theme = EMPTY_THEME,\n nested\n } = props;\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n // Pass argument without loop allocations\n const wrapper = {\n sx: null,\n theme,\n nested: true\n };\n function process(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const breakpoints = theme.breakpoints ?? DEFAULT_BREAKPOINTS;\n const css = createEmptyBreakpointObject(breakpoints);\n for (const styleKey in sxObject) {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value === null || value === undefined) {\n continue;\n }\n if (typeof value !== 'object') {\n setThemeValue(css, styleKey, value, theme, config);\n continue;\n }\n if (config[styleKey]) {\n setThemeValue(css, styleKey, value, theme, config);\n continue;\n }\n if (hasBreakpoint(breakpoints, value)) {\n iterateBreakpoints(css, props.theme, value, (mediaKey, finalValue) => {\n css[mediaKey][styleKey] = finalValue;\n });\n } else {\n wrapper.sx = value;\n css[styleKey] = styleFunctionSx(wrapper);\n }\n }\n if (!nested && theme.modularCssLayers) {\n return {\n '@layer sx': sortContainerQueries(theme, removeUnusedBreakpoints(breakpoints, css))\n };\n }\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpoints, css));\n }\n return Array.isArray(sx) ? sx.map(process) : process(sx);\n }\n styleFunctionSx.filterProps = ['sx'];\n return styleFunctionSx;\n}\nexport default unstable_createStyleFunctionSx();\nfunction setThemeValue(css, prop, value, theme, config) {\n const options = config[prop];\n if (!options) {\n css[prop] = value;\n return;\n }\n if (value == null) {\n return;\n }\n const {\n themeKey\n } = options;\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && value === 'inherit') {\n css[prop] = value;\n return;\n }\n const {\n style\n } = options;\n if (style) {\n merge(css, style({\n [prop]: value,\n theme\n }));\n return;\n }\n const {\n cssProperty = prop,\n transform\n } = options;\n const themeMapping = getPath(theme, themeKey);\n iterateBreakpoints(css, theme, value, (mediaKey, valueFinal) => {\n const finalValue = getStyleValue2(themeMapping, transform, valueFinal, prop);\n if (cssProperty === false) {\n if (mediaKey) {\n merge(css[mediaKey], finalValue);\n } else {\n merge(css, finalValue);\n }\n } else {\n // eslint-disable-next-line no-lonely-if\n if (mediaKey) {\n css[mediaKey][cssProperty] = finalValue;\n } else {\n css[cssProperty] = finalValue;\n }\n }\n });\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={[\n * { background: '#e5e5e5' },\n * theme => theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.mjs\";\nimport cssContainerQueries from \"../cssContainerQueries/index.mjs\";\nimport shape from \"./shape.mjs\";\nimport createSpacing from \"./createSpacing.mjs\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.mjs\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.mjs\";\nimport applyStyles from \"./applyStyles.mjs\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.internal_cache = {};\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useThemeWithoutDefault(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useThemeWithoutDefault;","'use client';\n\nimport createTheme from \"../createTheme/index.mjs\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.mjs\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","'use client';\n\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx from \"../styleFunctionSx/index.mjs\";\nimport useTheme from \"../useTheme/index.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n const {\n themeId,\n defaultTheme,\n defaultClassName = 'MuiBox-root',\n generateClassName\n } = options;\n const BoxRoot = styled('div', {\n shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n })(styleFunctionSx);\n const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n const theme = useTheme(defaultTheme);\n const {\n className,\n component = 'div',\n ...other\n } = inProps;\n return /*#__PURE__*/_jsx(BoxRoot, {\n as: component,\n ref: ref,\n className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n theme: themeId ? theme[themeId] || theme : theme,\n ...other\n });\n });\n return Box;\n}","import ClassNameGenerator from \"../ClassNameGenerator/index.mjs\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from \"../generateUtilityClass/index.mjs\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport PropTypes from 'prop-types';\nimport ClassNameGenerator from '@mui/utils/ClassNameGenerator';\nimport createBox from \"../createBox/index.mjs\";\nimport boxClasses from \"./boxClasses.mjs\";\n\n// The SimpleSystemKeys are subset of the AllSystemCSSProperties, so this should be ok\n// This is needed as these are used as keys inside AllSystemCSSProperties\n\n/**\n *\n * Demos:\n *\n * - [Box (Material UI)](https://mui.com/material-ui/react-box/)\n * - [Menubar (Material UI)](https://mui.com/material-ui/react-menubar/)\n * - [Box (MUI System)](https://mui.com/system/react-box/)\n *\n * API:\n *\n * - [Box API](https://mui.com/system/api/box/)\n */\nconst Box = createBox({\n defaultClassName: boxClasses.root,\n generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","import { ForwardRef, Memo } from 'react-is';\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/react/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","import { internal_serializeStyles } from '@mui/styled-engine';\nexport default function preprocessStyles(input) {\n const {\n variants,\n ...style\n } = input;\n const result = {\n variants,\n style: internal_serializeStyles(style),\n isProcessed: true\n };\n\n // Not supported on styled-components\n if (result.style === style) {\n return result;\n }\n if (variants) {\n variants.forEach(variant => {\n if (typeof variant.style !== 'function') {\n variant.style = internal_serializeStyles(variant.style);\n }\n });\n }\n return result;\n}","import styledEngineStyled, { internal_mutateStyles as mutateStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport isObjectEmpty from '@mui/utils/isObjectEmpty';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.mjs\";\nimport styleFunctionSx from \"../styleFunctionSx/index.mjs\";\nimport preprocessStyles from \"../preprocessStyles.mjs\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n }\n if (resolvedStyle?.isProcessed) {\n return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n }\n return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n } else {\n results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n return function styleObjectProcessor(props) {\n if (!serialized.variants) {\n return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n }\n return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}","import createStyled from \"../createStyled/index.mjs\";\nconst styled = createStyled();\nexport default styled;","import clsx from 'clsx';\n\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.\n * When `false` (default), props override defaultProps. When `true`, `className` values are concatenated\n * and `style` objects are merged with props taking precedence.\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);\n }\n }\n }\n } else if (propName === 'className' && mergeClassNameAndStyle && props.className !== undefined) {\n output.className = clsx(defaultProps?.className, props?.className);\n } else if (propName === 'style' && mergeClassNameAndStyle && props.style) {\n output.style = {\n ...defaultProps?.style,\n ...props?.style\n };\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from \"./getThemeProps.mjs\";\nimport useTheme from \"../useTheme/index.mjs\";\nexport default function useThemeProps(params) {\n const {\n props,\n name,\n defaultTheme,\n themeId\n } = params;\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n return getThemeProps({\n theme,\n name,\n props\n });\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return {\n ...propTypes,\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n };\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n value,\n children\n}) {\n return /*#__PURE__*/_jsx(PropsContext.Provider, {\n value: value,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name]) {\n return props;\n }\n const config = theme.components[name];\n if (config.defaultProps) {\n // compatible with v5 signature\n return resolveProps(config.defaultProps, props, theme.components.mergeClassNameAndStyle);\n }\n if (!config.styleOverrides && !config.variants) {\n // v6 signature, no property 'defaultProps'\n return resolveProps(config, props, theme.components.mergeClassNameAndStyle);\n }\n return props;\n}\nexport function useDefaultProps({\n props,\n name\n}) {\n const ctx = React.useContext(PropsContext);\n return getThemeProps({\n props,\n name,\n theme: {\n components: ctx\n }\n });\n}\nexport default DefaultPropsProvider;","import preprocessStyles from \"./preprocessStyles.mjs\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n let lastValue;\n let lastTheme;\n return function styleMemoized(props) {\n let value = lastValue;\n if (value === undefined || props.theme !== lastTheme) {\n arg.theme = props.theme;\n value = preprocessStyles(styleFn(arg));\n lastValue = value;\n lastTheme = props.theme;\n }\n return value;\n };\n}","/**\n * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable\n * and they does not need to remember the prefix (defined once).\n */\nexport default function createGetCssVar(prefix = '') {\n function appendVar(...vars) {\n if (!vars.length) {\n return '';\n }\n const value = vars[0];\n if (typeof value === 'string' && !value.match(/(#|\\(|\\)|(-?(\\d*\\.)?\\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\\d*\\.)?\\d+)$|(\\d+ \\d+ \\d+)/)) {\n return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;\n }\n return `, ${value}`;\n }\n\n // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.\n const getCssVar = (field, ...fallbacks) => {\n return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;\n };\n return getCssVar;\n}","const prototypePollutingKeys = new Set(['__proto__', 'constructor', 'prototype']);\n\n/**\n * This function create an object from keys, value and then assign to target\n *\n * @param {Object} obj : the target object to be assigned\n * @param {string[]} keys\n * @param {string | number} value\n *\n * @example\n * const source = {}\n * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }\n *\n * @example\n * const source = { palette: { primary: 'var(--palette-primary)' } }\n * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }\n */\nexport const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {\n let temp = obj;\n for (let index = 0; index < keys.length; index += 1) {\n const k = keys[index];\n // Prevent prototype pollution: never traverse or write through\n // `__proto__` / `constructor` / `prototype` (e.g. a theme parsed from untrusted JSON).\n if (prototypePollutingKeys.has(k)) {\n break;\n }\n if (index === keys.length - 1) {\n if (Array.isArray(temp)) {\n temp[Number(k)] = value;\n } else if (temp && typeof temp === 'object') {\n temp[k] = value;\n }\n } else if (temp && typeof temp === 'object') {\n if (!temp[k]) {\n temp[k] = arrayKeys.includes(k) ? [] : {};\n }\n temp = temp[k];\n }\n }\n};\n\n/**\n *\n * @param {Object} obj : source object\n * @param {Function} callback : a function that will be called when\n * - the deepest key in source object is reached\n * - the value of the deepest key is NOT `undefined` | `null`\n *\n * @example\n * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)\n * // ['palette', 'primary', 'main'] '#000000'\n */\nexport const walkObjectDeep = (obj, callback, shouldSkipPaths) => {\n function recurse(object, parentKeys = [], arrayKeys = []) {\n Object.entries(object).forEach(([key, value]) => {\n if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {\n if (value !== undefined && value !== null) {\n if (typeof value === 'object' && Object.keys(value).length > 0) {\n recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);\n } else {\n callback([...parentKeys, key], value, arrayKeys);\n }\n }\n }\n });\n }\n recurse(obj);\n};\nconst getCssValue = (keys, value) => {\n if (typeof value === 'number') {\n if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {\n // CSS property that are unitless\n return value;\n }\n const lastKey = keys[keys.length - 1];\n if (lastKey.toLowerCase().includes('opacity')) {\n // opacity values are unitless\n return value;\n }\n return `${value}px`;\n }\n return value;\n};\n\n/**\n * a function that parse theme and return { css, vars }\n *\n * @param {Object} theme\n * @param {{\n * prefix?: string,\n * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean\n * }} options.\n * `prefix`: The prefix of the generated CSS variables. This function does not change the value.\n *\n * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).\n *\n * @example\n * const { css, vars } = parser({\n * fontSize: 12,\n * lineHeight: 1.2,\n * palette: { primary: { 500: 'var(--color)' } }\n * }, { prefix: 'foo' })\n *\n * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }\n * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }\n */\nexport default function cssVarsParser(theme, options) {\n const {\n prefix,\n shouldSkipGeneratingVar\n } = options || {};\n const css = {};\n const vars = {};\n const varsWithDefaults = {};\n walkObjectDeep(theme, (keys, value, arrayKeys) => {\n if (typeof value === 'string' || typeof value === 'number') {\n if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {\n // only create css & var if `shouldSkipGeneratingVar` return false\n const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;\n const resolvedValue = getCssValue(keys, value);\n Object.assign(css, {\n [cssVar]: resolvedValue\n });\n assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);\n assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);\n }\n }\n }, keys => keys[0] === 'vars' // skip 'vars/*' paths\n );\n return {\n css,\n vars,\n varsWithDefaults\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.mjs\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector,\n enableContrastVars\n } = parserConfig;\n // @ts-expect-error - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n if (enableContrastVars) {\n stylesheets.push({\n ':root': {\n // use double underscore to indicate that these are private variables\n '--__l-threshold': '0.7',\n '--__l': 'clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)',\n '--__a': 'clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)' // 0.87 is the default alpha value for black text.\n }\n });\n }\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;","/* eslint-disable import/prefer-default-export */\nexport function createGetColorSchemeSelector(selector) {\n return function getColorSchemeSelector(colorScheme) {\n if (selector === 'media') {\n if (process.env.NODE_ENV !== 'production') {\n if (colorScheme !== 'light' && colorScheme !== 'dark') {\n console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`);\n }\n }\n return `@media (prefers-color-scheme: ${colorScheme})`;\n }\n if (selector) {\n if (selector.startsWith('data-') && !selector.includes('%s')) {\n return `[${selector}=\"${colorScheme}\"] &`;\n }\n if (selector === 'class') {\n return `.${colorScheme} &`;\n }\n if (selector === 'data') {\n return `[data-${colorScheme}] &`;\n }\n return `${selector.replace('%s', colorScheme)} &`;\n }\n return '&';\n };\n}","/* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0\n ---\n These rules are preventing the performance optimizations below.\n */\n\n/**\n * Compose classes from multiple sources.\n *\n * @example\n * ```tsx\n * const slots = {\n * root: ['root', 'primary'],\n * label: ['label'],\n * };\n *\n * const getUtilityClass = (slot) => `MuiButton-${slot}`;\n *\n * const classes = {\n * root: 'my-root-class',\n * };\n *\n * const output = composeClasses(slots, getUtilityClass, classes);\n * // {\n * // root: 'MuiButton-root MuiButton-primary my-root-class',\n * // label: 'MuiButton-label',\n * // }\n * ```\n *\n * @param slots a list of classes for each possible slot\n * @param getUtilityClass a function to resolve the class based on the slot name\n * @param classes the input classes from props\n * @returns the resolved classes for all slots\n */\nexport default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n for (const slotName in slots) {\n const slot = slots[slotName];\n let buffer = '';\n let start = true;\n for (let i = 0; i < slot.length; i += 1) {\n const value = slot[i];\n if (value) {\n buffer += (start === true ? '' : ' ') + getUtilityClass(value);\n start = false;\n if (classes && classes[value]) {\n buffer += ' ' + classes[value];\n }\n }\n }\n output[slotName] = buffer;\n }\n return output;\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(\n // For server components `muiName` is available in element.type._payload.value.muiName\n // relevant info - https://github.com/react/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n element.type.muiName ?? element.type?._payload?.value?.muiName) !== -1;\n}","export const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));\nexport const traverseBreakpoints = (breakpoints, responsive, iterator) => {\n const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.\n\n if (Array.isArray(responsive)) {\n responsive.forEach((breakpointValue, index) => {\n iterator((responsiveStyles, style) => {\n if (index <= breakpoints.keys.length - 1) {\n if (index === 0) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;\n }\n }\n }, breakpointValue);\n });\n } else if (responsive && typeof responsive === 'object') {\n // prevent null\n // responsive could be a very big object, pick the smallest responsive values\n\n const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));\n keys.forEach(key => {\n if (breakpoints.keys.includes(key)) {\n // @ts-ignore already checked that responsive is an object\n const breakpointValue = responsive[key];\n if (breakpointValue !== undefined) {\n iterator((responsiveStyles, style) => {\n if (smallestBreakpoint === key) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(key)] = style;\n }\n }, breakpointValue);\n }\n }\n });\n } else if (typeof responsive === 'number' || typeof responsive === 'string') {\n iterator((responsiveStyles, style) => {\n Object.assign(responsiveStyles, style);\n }, responsive);\n }\n};","import { traverseBreakpoints } from \"./traverseBreakpoints.mjs\";\nfunction getSelfSpacingVar(axis) {\n return `--Grid-${axis}Spacing`;\n}\nfunction getParentSpacingVar(axis) {\n return `--Grid-parent-${axis}Spacing`;\n}\nconst selfColumnsVar = '--Grid-columns';\nconst parentColumnsVar = '--Grid-parent-columns';\nexport const generateGridSizeStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {\n let style = {};\n if (value === 'grow') {\n style = {\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: '100%'\n };\n }\n if (value === 'auto') {\n style = {\n flexBasis: 'auto',\n flexGrow: 0,\n flexShrink: 0,\n maxWidth: 'none',\n width: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n flexGrow: 0,\n flexBasis: 'auto',\n width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar('column')}) / var(${parentColumnsVar})))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridOffsetStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {\n let style = {};\n if (value === 'auto') {\n style = {\n marginLeft: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar('column')}) * ${value} / var(${parentColumnsVar}))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridColumnsStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {\n [selfColumnsVar]: 12\n };\n traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {\n const columns = value ?? 12;\n appendStyle(styles, {\n [selfColumnsVar]: columns,\n '> *': {\n [parentColumnsVar]: columns\n }\n });\n });\n return styles;\n};\nexport const generateGridRowSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('row')]: spacing,\n '> *': {\n [getParentSpacingVar('row')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridColumnSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('column')]: spacing,\n '> *': {\n [getParentSpacingVar('column')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridDirectionStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {\n appendStyle(styles, {\n flexDirection: value\n });\n });\n return styles;\n};\nexport const generateGridStyles = ({\n ownerState\n}) => {\n return {\n minWidth: 0,\n boxSizing: 'border-box',\n ...(ownerState.container && {\n display: 'flex',\n flexWrap: 'wrap',\n ...(ownerState.wrap && ownerState.wrap !== 'wrap' && {\n flexWrap: ownerState.wrap\n }),\n gap: `var(${getSelfSpacingVar('row')}) var(${getSelfSpacingVar('column')})`\n })\n };\n};\nexport const generateSizeClassNames = size => {\n const classNames = [];\n Object.entries(size).forEach(([key, value]) => {\n if (value !== false && value !== undefined) {\n classNames.push(`grid-${key}-${String(value)}`);\n }\n });\n return classNames;\n};\nexport const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {\n function isValidSpacing(val) {\n if (val === undefined) {\n return false;\n }\n return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;\n }\n if (isValidSpacing(spacing)) {\n return [`spacing-${smallestBreakpoint}-${String(spacing)}`];\n }\n if (typeof spacing === 'object' && !Array.isArray(spacing)) {\n const classNames = [];\n Object.entries(spacing).forEach(([key, value]) => {\n if (isValidSpacing(value)) {\n classNames.push(`spacing-${key}-${String(value)}`);\n }\n });\n return classNames;\n }\n return [];\n};\nexport const generateDirectionClasses = direction => {\n if (direction === undefined) {\n return [];\n }\n if (typeof direction === 'object') {\n return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);\n }\n return [`direction-xs-${String(direction)}`];\n};","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport isMuiElement from '@mui/utils/isMuiElement';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.mjs\";\nimport useThemePropsSystem from \"../useThemeProps/index.mjs\";\nimport useThemeSystem from \"../useTheme/index.mjs\";\nimport createTheme from \"../createTheme/index.mjs\";\nimport { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from \"./gridGenerator.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiGrid',\n slot: 'Root'\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiGrid',\n defaultTheme\n });\n}\nexport default function createGrid(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n useTheme = useThemeSystem,\n componentName = 'MuiGrid'\n } = options;\n const useUtilityClasses = (ownerState, theme) => {\n const {\n container,\n direction,\n spacing,\n wrap,\n size\n } = ownerState;\n const slots = {\n root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) {\n const parsedProp = {};\n if (propValue === null) {\n return parsedProp;\n }\n if (Array.isArray(propValue)) {\n propValue.forEach((value, index) => {\n if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) {\n parsedProp[breakpoints.keys[index]] = value;\n }\n });\n } else if (typeof propValue === 'object') {\n Object.keys(propValue).forEach(key => {\n const value = propValue[key];\n if (value !== null && value !== undefined && shouldUseValue(value)) {\n parsedProp[key] = value;\n }\n });\n } else {\n parsedProp[breakpoints.keys[0]] = propValue;\n }\n return parsedProp;\n }\n const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);\n const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const theme = useTheme();\n const themeProps = useThemeProps(inProps);\n const props = themeProps;\n const {\n className,\n children,\n columns: columnsProp = 12,\n container = false,\n component = 'div',\n direction = 'row',\n wrap = 'wrap',\n size: sizeProp = {},\n offset: offsetProp = {},\n spacing: spacingProp = 0,\n rowSpacing: rowSpacingProp = spacingProp,\n columnSpacing: columnSpacingProp = spacingProp,\n unstable_level: level = 0,\n ...other\n } = props;\n const size = parseResponsiveProp(sizeProp, theme.breakpoints, val => val !== false);\n const offset = parseResponsiveProp(offsetProp, theme.breakpoints);\n const columns = inProps.columns ?? (level ? undefined : columnsProp);\n const spacing = inProps.spacing ?? (level ? undefined : spacingProp);\n const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? undefined : rowSpacingProp);\n const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? undefined : columnSpacingProp);\n const ownerState = {\n ...props,\n level,\n columns,\n container,\n direction,\n wrap,\n spacing,\n rowSpacing,\n columnSpacing,\n size,\n offset\n };\n const classes = useUtilityClasses(ownerState, theme);\n return /*#__PURE__*/_jsx(GridRoot, {\n ref: ref,\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...other,\n children: React.Children.map(children, child => {\n if (/*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid']) && container && child.props.container) {\n return /*#__PURE__*/React.cloneElement(child, {\n unstable_level: child.props?.unstable_level ?? level + 1\n });\n }\n return child;\n })\n });\n });\n process.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n className: PropTypes.string,\n columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n component: PropTypes.elementType,\n container: PropTypes.bool,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n } : void 0;\n\n // @ts-expect-error internal logic for nested grid\n Grid.muiName = 'Grid';\n return Grid;\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.mjs\";\nimport useThemePropsSystem from \"../useThemeProps/index.mjs\";\nimport createTheme from \"../createTheme/index.mjs\";\nimport { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from \"../breakpoints/index.mjs\";\nimport { createUnarySpacing, getValue } from \"../spacing/index.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiStack',\n slot: 'Root'\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiStack',\n defaultTheme\n });\n}\n\n/**\n * Return an array with the separator React element interspersed between\n * each React node of the input children.\n *\n * > joinChildren([1,2,3], 0)\n * [1,0,2,0,3]\n */\nfunction joinChildren(children, separator) {\n const childrenArray = React.Children.toArray(children).filter(Boolean);\n return childrenArray.reduce((output, child, index) => {\n output.push(child);\n if (index < childrenArray.length - 1) {\n output.push(/*#__PURE__*/React.cloneElement(separator, {\n key: `separator-${index}`\n }));\n }\n return output;\n }, []);\n}\nconst getSideFromDirection = direction => {\n return {\n row: 'Left',\n 'row-reverse': 'Right',\n column: 'Top',\n 'column-reverse': 'Bottom'\n }[direction];\n};\nexport const style = ({\n ownerState,\n theme\n}) => {\n let styles = {\n display: 'flex',\n flexDirection: 'column',\n ...handleBreakpoints({\n theme\n }, resolveBreakpointValues({\n values: ownerState.direction,\n breakpoints: theme.breakpoints.values\n }), propValue => ({\n flexDirection: propValue\n }))\n };\n if (ownerState.spacing) {\n const transformer = createUnarySpacing(theme);\n const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {\n if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {\n acc[breakpoint] = true;\n }\n return acc;\n }, {});\n const directionValues = resolveBreakpointValues({\n values: ownerState.direction,\n base\n });\n const spacingValues = resolveBreakpointValues({\n values: ownerState.spacing,\n base\n });\n if (typeof directionValues === 'object') {\n Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {\n const directionValue = directionValues[breakpoint];\n if (!directionValue) {\n const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';\n directionValues[breakpoint] = previousDirectionValue;\n }\n });\n }\n const styleFromPropValue = (propValue, breakpoint) => {\n if (ownerState.useFlexGap) {\n return {\n gap: getValue(transformer, propValue)\n };\n }\n return {\n // The useFlexGap={false} implement relies on each child to give up control of the margin.\n // We need to reset the margin to avoid double spacing.\n '& > :not(style):not(style)': {\n margin: 0\n },\n '& > :not(style) ~ :not(style)': {\n [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)\n }\n };\n };\n styles = deepmerge(styles, handleBreakpoints({\n theme\n }, spacingValues, styleFromPropValue));\n }\n styles = mergeBreakpointsInOrder(theme.breakpoints, styles);\n return styles;\n};\nexport default function createStack(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n componentName = 'MuiStack'\n } = options;\n const useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n const StackRoot = createStyledComponent(style);\n const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const themeProps = useThemeProps(inProps);\n const {\n component = 'div',\n direction = 'column',\n spacing = 0,\n divider,\n children,\n className,\n useFlexGap = false,\n ...other\n } = themeProps;\n const ownerState = {\n direction,\n spacing,\n useFlexGap\n };\n const classes = useUtilityClasses();\n return /*#__PURE__*/_jsx(StackRoot, {\n as: component,\n ownerState: ownerState,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n children: divider ? joinChildren(children, divider) : children\n });\n });\n process.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n divider: PropTypes.node,\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n } : void 0;\n return Stack;\n}","'use client';\n\nimport PropTypes from 'prop-types';\nimport createStack from \"./createStack.mjs\";\n/**\n *\n * Demos:\n *\n * - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)\n * - [Stack (MUI System)](https://mui.com/system/react-stack/)\n *\n * API:\n *\n * - [Stack API](https://mui.com/system/api/stack/)\n */\nconst Stack = createStack();\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'column'\n */\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Add an element between each child.\n */\n divider: PropTypes.node,\n /**\n * Defines the space between immediate children.\n * @default 0\n */\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * The system prop, which allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n *\n * While CSS `gap` removes the known limitations,\n * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n *\n * To enable this flag globally, follow the theme's default props configuration.\n * @default false\n */\n useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.mjs\";\nimport grey from \"../colors/grey.mjs\";\nimport purple from \"../colors/purple.mjs\";\nimport red from \"../colors/red.mjs\";\nimport orange from \"../colors/orange.mjs\";\nimport blue from \"../colors/blue.mjs\";\nimport lightBlue from \"../colors/lightBlue.mjs\";\nimport green from \"../colors/green.mjs\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction mixLightOrDark(colorSpace, intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = `color-mix(in ${colorSpace}, ${intent.main}, #fff ${(tonalOffsetLight * 100).toFixed(0)}%)`;\n } else if (direction === 'dark') {\n intent.dark = `color-mix(in ${colorSpace}, ${intent.main}, #000 ${(tonalOffsetDark * 100).toFixed(0)}%)`;\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\n\n// Use the same name as the experimental CSS `contrast-color` function.\nexport function contrastColor(background) {\n return `oklch(from ${background} var(--__l) 0 h / var(--__a))`;\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n colorSpace,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n if (colorSpace) {\n return contrastColor(background);\n }\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n if (colorSpace) {\n mixLightOrDark(colorSpace, color, 'light', lightShade, tonalOffset);\n mixLightOrDark(colorSpace, color, 'dark', darkShade, tonalOffset);\n } else {\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n }\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}","export default function prepareTypographyVars(typography) {\n const vars = {};\n const entries = Object.entries(typography);\n entries.forEach(entry => {\n const [key, value] = entry;\n if (typeof value === 'object') {\n vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;\n }\n });\n return vars;\n}","export default function createMixins(breakpoints, mixins) {\n return {\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n },\n ...mixins\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2,\n ...other\n } = typeof typography === 'function' ? typography(palette) : typography;\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight,\n // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing\n // across font-families can cause issues with the kerning.\n ...(fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}),\n ...casing,\n ...allVariants\n });\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold,\n ...variants\n }, other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","const DEFAULT_TRANSITION_PROPS = ['all'];\nconst EMPTY_OPTIONS = {};\n\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.desmos.com/calculator/vbrp3ggqet\n return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);\n}\nexport default function createTransitions(inputTransitions) {\n const transitions = {\n ...inputTransitions\n };\n delete transitions.reducedMotion;\n const mergedEasing = {\n ...easing,\n ...transitions.easing\n };\n const mergedDuration = {\n ...duration,\n ...transitions.duration\n };\n const createTransitionValue = (props = DEFAULT_TRANSITION_PROPS, options = EMPTY_OPTIONS) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0,\n ...other\n } = options;\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n const isNumber = value => !Number.isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n const create = transitions.create ?? createTransitionValue;\n return {\n getAutoHeightDuration,\n create,\n ...transitions,\n easing: mergedEasing,\n duration: mergedDuration\n };\n}","const EMPTY_MOTION = {};\nexport default function createMotion(inputMotion = EMPTY_MOTION) {\n return {\n reducedMotion: 'never',\n ...inputMotion\n };\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","/* eslint-disable import/prefer-default-export */\nimport { isPlainObject } from '@mui/utils/deepmerge';\nfunction isSerializable(val) {\n return isPlainObject(val) || typeof val === 'undefined' || typeof val === 'string' || typeof val === 'boolean' || typeof val === 'number' || Array.isArray(val);\n}\n\n/**\n * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.\n *\n * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS\n * For example, in a Next.js project:\n *\n * ```js\n * // next.config.js\n * const { extendTheme } = require('@mui/material/styles');\n *\n * const theme = extendTheme();\n * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.\n * theme.toRuntimeSource = stringifyTheme;\n *\n * module.exports = withPigment({\n * theme,\n * });\n * ```\n */\nexport function stringifyTheme(baseTheme = {}) {\n const serializableTheme = {\n ...baseTheme\n };\n function serializeTheme(object) {\n const array = Object.entries(object);\n // eslint-disable-next-line no-plusplus\n for (let index = 0; index < array.length; index++) {\n const [key, value] = array[index];\n if (!isSerializable(value) || key.startsWith('unstable_') || key.startsWith('internal_')) {\n delete object[key];\n } else if (isPlainObject(value)) {\n object[key] = {\n ...value\n };\n serializeTheme(object[key]);\n }\n }\n }\n serializeTheme(serializableTheme);\n return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(serializableTheme, null, 2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.motion = { reducedMotion: 'never', ...theme.motion };\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport { alpha as systemAlpha, lighten as systemLighten, darken as systemDarken } from '@mui/system/colorManipulator';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.mjs\";\nimport createPalette from \"./createPalette.mjs\";\nimport createTypography from \"./createTypography.mjs\";\nimport shadows from \"./shadows.mjs\";\nimport createTransitions from \"./createTransitions.mjs\";\nimport createMotion from \"./createMotion.mjs\";\nimport zIndex from \"./zIndex.mjs\";\nimport { stringifyTheme } from \"./stringifyTheme.mjs\";\nfunction coefficientToPercentage(coefficient) {\n if (typeof coefficient === 'number') {\n return `${(coefficient * 100).toFixed(0)}%`;\n }\n return `calc((${coefficient}) * 100%)`;\n}\n\n// This can be removed when moved to `color-mix()` entirely.\nconst parseAddition = str => {\n if (!Number.isNaN(+str)) {\n return +str;\n }\n const numbers = str.match(/\\d*\\.?\\d+/g);\n if (!numbers) {\n return 0;\n }\n let sum = 0;\n for (let i = 0; i < numbers.length; i += 1) {\n sum += +numbers[i];\n }\n return sum;\n};\nfunction attachColorManipulators(theme) {\n Object.assign(theme, {\n alpha(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `oklch(from ${color} l c h / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n if (obj.vars) {\n // To preserve the behavior of the CSS theme variables\n // In the future, this could be replaced by `color-mix` (when https://caniuse.com/?search=color-mix reaches 95%).\n return `rgba(${color.replace(/var\\(--([^,\\s)]+)(?:,[^)]+)?\\)+/g, 'var(--$1Channel)')} / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n return systemAlpha(color, parseAddition(coefficient));\n },\n lighten(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #fff ${coefficientToPercentage(coefficient)})`;\n }\n return systemLighten(color, coefficient);\n },\n darken(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #000 ${coefficientToPercentage(coefficient)})`;\n }\n return systemDarken(color, coefficient);\n }\n });\n}\nfunction createThemeNoVars(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput,\n mixins: mixinsInput = {},\n spacing: spacingInput,\n palette: paletteInput = {},\n motion: motionInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {},\n shape: shapeInput,\n colorSpace,\n ...other\n } = options;\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateThemeVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n // #host-reference\n 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(22));\n }\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n motion: createMotion(motionInput),\n transitions: createTransitions(transitionsInput),\n zIndex: {\n ...zIndex\n }\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n // `reducedMotion` is owned by `theme.motion`; remove stale values preserved by systemCreateTheme.\n delete muiTheme.transitions.reducedMotion;\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in\n for (key in node) {\n const child = node[key];\n if (stateClasses.includes(key) && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.startsWith('Mui')) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n attachColorManipulators(muiTheme);\n return muiTheme;\n}\nexport default createThemeNoVars;","// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function getOverlayAlpha(elevation) {\n let alphaValue;\n if (elevation < 1) {\n alphaValue = 5.11916 * elevation ** 2;\n } else {\n alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n }\n return Math.round(alphaValue * 10) / 1000;\n}","import createPalette from \"./createPalette.mjs\";\nimport getOverlayAlpha from \"./getOverlayAlpha.mjs\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n colorSpace,\n ...other\n } = options;\n // need to cast because `colorSpace` is considered internal at the moment.\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...other\n };\n}","export default function shouldSkipGeneratingVar(keys) {\n return keys[0] === 'motion' || !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n // ends with sxConfig\n keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}","/**\n * @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme=\"dark\"`\n */\nconst excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];\nexport default excludeVariablesFromRoot;","import excludeVariablesFromRoot from \"./excludeVariablesFromRoot.mjs\";\nexport default theme => (colorScheme, css) => {\n const root = theme.rootSelector || ':root';\n const selector = theme.colorSchemeSelector;\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (theme.defaultColorScheme === colorScheme) {\n if (colorScheme === 'dark') {\n const excludedVariables = {};\n excludeVariablesFromRoot(theme.cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n if (rule === 'media') {\n return {\n [root]: css,\n [`@media (prefers-color-scheme: dark)`]: {\n [root]: excludedVariables\n }\n };\n }\n if (rule) {\n return {\n [rule.replace('%s', colorScheme)]: excludedVariables,\n [`${root}, ${rule.replace('%s', colorScheme)}`]: css\n };\n }\n return {\n [root]: {\n ...css,\n ...excludedVariables\n }\n };\n }\n if (rule && rule !== 'media') {\n return `${root}, ${rule.replace('%s', String(colorScheme))}`;\n }\n } else if (colorScheme) {\n if (rule === 'media') {\n return {\n [`@media (prefers-color-scheme: ${String(colorScheme)})`]: {\n [root]: css\n }\n };\n }\n if (rule) {\n return rule.replace('%s', String(colorScheme));\n }\n }\n return root;\n};","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { unstable_createGetCssVar as systemCreateGetCssVar, createSpacing } from '@mui/system';\nimport { createUnarySpacing } from '@mui/system/spacing';\nimport { prepareCssVars, prepareTypographyVars, createGetColorSchemeSelector } from '@mui/system/cssVars';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, hslToRgb } from '@mui/system/colorManipulator';\nimport createThemeNoVars from \"./createThemeNoVars.mjs\";\nimport createColorScheme, { getOpacity, getOverlays } from \"./createColorScheme.mjs\";\nimport defaultShouldSkipGeneratingVar from \"./shouldSkipGeneratingVar.mjs\";\nimport defaultGetSelector from \"./createGetSelector.mjs\";\nimport { stringifyTheme } from \"./stringifyTheme.mjs\";\nimport { light, dark } from \"./createPalette.mjs\";\nfunction assignNode(obj, keys) {\n keys.forEach(k => {\n if (!obj[k]) {\n obj[k] = {};\n }\n });\n}\nfunction setColor(obj, key, defaultValue) {\n if (!obj[key] && defaultValue) {\n obj[key] = defaultValue;\n }\n}\nfunction toRgb(color) {\n if (typeof color !== 'string' || !color.startsWith('hsl')) {\n return color;\n }\n return hslToRgb(color);\n}\nfunction setColorChannel(obj, key) {\n if (!(`${key}Channel` in obj)) {\n // custom channel token is not provided, generate one.\n // if channel token can't be generated, show a warning.\n obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \\`palette.${key}Channel\\` because \\`palette.${key}\\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\\n' + `To suppress this warning, you need to explicitly provide the \\`palette.${key}Channel\\` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token.`);\n }\n}\nfunction getSpacingVal(spacingInput) {\n if (typeof spacingInput === 'number') {\n return `${spacingInput}px`;\n }\n if (typeof spacingInput === 'string' || typeof spacingInput === 'function' || Array.isArray(spacingInput)) {\n return spacingInput;\n }\n return '8px';\n}\nconst silent = fn => {\n try {\n return fn();\n } catch (error) {\n // ignore error\n }\n return undefined;\n};\nexport const createGetCssVar = (cssVarPrefix = 'mui') => systemCreateGetCssVar(cssVarPrefix);\nfunction attachColorScheme(colorSpace, colorSchemes, scheme, restTheme, colorScheme) {\n if (!scheme) {\n return undefined;\n }\n scheme = scheme === true ? {} : scheme;\n const mode = colorScheme === 'dark' ? 'dark' : 'light';\n if (!restTheme) {\n colorSchemes[colorScheme] = createColorScheme({\n ...scheme,\n palette: {\n mode,\n ...scheme?.palette\n },\n colorSpace\n });\n return undefined;\n }\n const {\n palette,\n ...muiTheme\n } = createThemeNoVars({\n ...restTheme,\n palette: {\n mode,\n ...scheme?.palette\n },\n colorSpace\n });\n colorSchemes[colorScheme] = {\n ...scheme,\n palette,\n opacity: {\n ...getOpacity(mode),\n ...scheme?.opacity\n },\n overlays: scheme?.overlays || getOverlays(mode)\n };\n return muiTheme;\n}\n\n/**\n * A default `createThemeWithVars` comes with a single color scheme, either `light` or `dark` based on the `defaultColorScheme`.\n * This is better suited for apps that only need a single color scheme.\n *\n * To enable built-in `light` and `dark` color schemes, either:\n * 1. provide a `colorSchemeSelector` to define how the color schemes will change.\n * 2. provide `colorSchemes.dark` will set `colorSchemeSelector: 'media'` by default.\n */\nexport default function createThemeWithVars(options = {}, ...args) {\n const {\n colorSchemes: colorSchemesInput = {\n light: true\n },\n defaultColorScheme: defaultColorSchemeInput,\n disableCssColorScheme = false,\n cssVarPrefix = 'mui',\n nativeColor = false,\n shouldSkipGeneratingVar = defaultShouldSkipGeneratingVar,\n colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? 'media' : undefined,\n rootSelector = ':root',\n ...input\n } = options;\n const firstColorScheme = Object.keys(colorSchemesInput)[0];\n const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== 'light' ? 'light' : firstColorScheme);\n const getCssVar = createGetCssVar(cssVarPrefix);\n const {\n [defaultColorScheme]: defaultSchemeInput,\n light: builtInLight,\n dark: builtInDark,\n ...customColorSchemes\n } = colorSchemesInput;\n const colorSchemes = {\n ...customColorSchemes\n };\n let defaultScheme = defaultSchemeInput;\n\n // For built-in light and dark color schemes, ensure that the value is valid if they are the default color scheme.\n if (defaultColorScheme === 'dark' && !('dark' in colorSchemesInput) || defaultColorScheme === 'light' && !('light' in colorSchemesInput)) {\n defaultScheme = true;\n }\n if (!defaultScheme) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`colorSchemes.${defaultColorScheme}\\` option is either missing or invalid.` : _formatErrorMessage(21, defaultColorScheme));\n }\n\n // The reason to use `oklch` is that it is the most perceptually uniform color space and widely supported.\n let colorSpace;\n if (nativeColor) {\n colorSpace = 'oklch';\n }\n\n // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.\n const muiTheme = attachColorScheme(colorSpace, colorSchemes, defaultScheme, input, defaultColorScheme);\n if (builtInLight && !colorSchemes.light) {\n attachColorScheme(colorSpace, colorSchemes, builtInLight, undefined, 'light');\n }\n if (builtInDark && !colorSchemes.dark) {\n attachColorScheme(colorSpace, colorSchemes, builtInDark, undefined, 'dark');\n }\n let theme = {\n defaultColorScheme,\n ...muiTheme,\n cssVarPrefix,\n colorSchemeSelector: selector,\n rootSelector,\n getCssVar,\n colorSchemes,\n font: {\n ...prepareTypographyVars(muiTheme.typography),\n ...muiTheme.font\n },\n spacing: getSpacingVal(input.spacing)\n };\n Object.keys(theme.colorSchemes).forEach(key => {\n const palette = theme.colorSchemes[key].palette;\n const setCssVarColor = cssVar => {\n const tokens = cssVar.split('-');\n const color = tokens[1];\n const colorToken = tokens[2];\n return getCssVar(cssVar, palette[color][colorToken]);\n };\n\n // attach black & white channels to common node\n if (palette.mode === 'light') {\n setColor(palette.common, 'background', '#fff');\n setColor(palette.common, 'onBackground', '#000');\n }\n if (palette.mode === 'dark') {\n setColor(palette.common, 'background', '#000');\n setColor(palette.common, 'onBackground', '#fff');\n }\n function colorMix(method, color, coefficient) {\n if (colorSpace) {\n let mixer;\n if (method === safeAlpha) {\n mixer = `transparent ${((1 - coefficient) * 100).toFixed(0)}%`;\n }\n if (method === safeDarken) {\n mixer = `#000 ${(coefficient * 100).toFixed(0)}%`;\n }\n if (method === safeLighten) {\n mixer = `#fff ${(coefficient * 100).toFixed(0)}%`;\n }\n return `color-mix(in ${colorSpace}, ${color}, ${mixer})`;\n }\n return method(color, coefficient);\n }\n\n // assign component variables\n assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);\n if (palette.mode === 'light') {\n setColor(palette.Alert, 'errorColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.main)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.main)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.main)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.main)));\n setColor(palette.Alert, 'errorStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));\n setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n setColor(palette.LinearProgress, 'errorBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n setColor(palette.LinearProgress, 'infoBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n setColor(palette.LinearProgress, 'successBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n setColor(palette.LinearProgress, 'warningBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.62));\n setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, nativeColor ? getCssVar('palette-text-primary') : palette.text.primary, 0.11) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);\n setColor(palette.Slider, 'primaryTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n setColor(palette.Slider, 'secondaryTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n setColor(palette.Slider, 'errorTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n setColor(palette.Slider, 'infoTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n setColor(palette.Slider, 'successTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n setColor(palette.Slider, 'warningTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.62));\n const snackbarContentBackground = colorSpace ? colorMix(safeDarken, nativeColor ? getCssVar('palette-background-default') : palette.background.default, 0.6825) // use `0.6825` instead of `0.8` to match the contrast ratio of JS implementation\n : safeEmphasize(palette.background.default, 0.8);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? dark.text.primary : palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));\n setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n setColor(palette.Switch, 'errorDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n setColor(palette.Switch, 'infoDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n setColor(palette.Switch, 'successDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n setColor(palette.Switch, 'warningDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.62));\n setColor(palette.TableCell, 'border', colorMix(safeLighten, safeAlpha(nativeColor ? getCssVar('palette-divider') : palette.divider, 1), 0.88));\n setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, nativeColor ? getCssVar('palette-grey-700') : palette.grey[700], 0.92));\n }\n if (palette.mode === 'dark') {\n setColor(palette.Alert, 'errorColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.dark)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.dark)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.dark)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.dark)));\n setColor(palette.Alert, 'errorStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));\n setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode\n setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));\n setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.5));\n setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.5));\n setColor(palette.LinearProgress, 'errorBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.5));\n setColor(palette.LinearProgress, 'infoBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.5));\n setColor(palette.LinearProgress, 'successBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.5));\n setColor(palette.LinearProgress, 'warningBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.5));\n setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, nativeColor ? getCssVar('palette-text-primary') : palette.text.primary, 0.13) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);\n setColor(palette.Slider, 'primaryTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.5));\n setColor(palette.Slider, 'secondaryTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.5));\n setColor(palette.Slider, 'errorTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.5));\n setColor(palette.Slider, 'infoTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.5));\n setColor(palette.Slider, 'successTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.5));\n setColor(palette.Slider, 'warningTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.5));\n const snackbarContentBackground = colorSpace ? colorMix(safeLighten, nativeColor ? getCssVar('palette-background-default') : palette.background.default, 0.985) // use `0.985` instead of `0.98` to match the contrast ratio of JS implementation\n : safeEmphasize(palette.background.default, 0.98);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? light.text.primary : palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.55));\n setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.55));\n setColor(palette.Switch, 'errorDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.55));\n setColor(palette.Switch, 'infoDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.55));\n setColor(palette.Switch, 'successDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.55));\n setColor(palette.Switch, 'warningDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.55));\n setColor(palette.TableCell, 'border', colorMix(safeDarken, safeAlpha(nativeColor ? getCssVar('palette-divider') : palette.divider, 1), 0.68));\n setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, nativeColor ? getCssVar('palette-grey-700') : palette.grey[700], 0.92));\n }\n if (!nativeColor) {\n setColorChannel(palette.background, 'default');\n\n // added for consistency with the `background.default` token\n setColorChannel(palette.background, 'paper');\n setColorChannel(palette.common, 'background');\n setColorChannel(palette.common, 'onBackground');\n setColorChannel(palette, 'divider');\n }\n Object.keys(palette).forEach(color => {\n const colors = palette[color];\n\n // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.\n\n if (color !== 'tonalOffset' && !nativeColor && colors && typeof colors === 'object') {\n // Silent the error for custom palettes.\n if (colors.main) {\n setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));\n }\n if (colors.light) {\n setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));\n }\n if (colors.dark) {\n setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));\n }\n if (colors.contrastText) {\n setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));\n }\n if (color === 'text') {\n // Text colors: text.primary, text.secondary\n setColorChannel(palette[color], 'primary');\n setColorChannel(palette[color], 'secondary');\n }\n if (color === 'action') {\n // Action colors: action.active, action.selected\n if (colors.active) {\n setColorChannel(palette[color], 'active');\n }\n if (colors.selected) {\n setColorChannel(palette[color], 'selected');\n }\n }\n }\n });\n });\n theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);\n const parserConfig = {\n prefix: cssVarPrefix,\n disableCssColorScheme,\n shouldSkipGeneratingVar,\n getSelector: defaultGetSelector(theme),\n enableContrastVars: nativeColor\n };\n const {\n vars,\n generateThemeVars,\n generateStyleSheets\n } = prepareCssVars(theme, parserConfig);\n theme.vars = vars;\n Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {\n theme[key] = value;\n });\n theme.generateThemeVars = generateThemeVars;\n theme.generateStyleSheets = generateStyleSheets;\n theme.generateSpacing = function generateSpacing() {\n return createSpacing(input.spacing, createUnarySpacing(this));\n };\n theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);\n theme.spacing = theme.generateSpacing();\n theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar;\n theme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...input?.unstable_sxConfig\n };\n theme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n theme.internal_cache = {};\n theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return theme;\n}","import createPalette from \"./createPalette.mjs\";\nimport createThemeWithVars from \"./createThemeWithVars.mjs\";\nimport createThemeNoVars from \"./createThemeNoVars.mjs\";\n// eslint-disable-next-line consistent-return\nfunction attachColorScheme(theme, scheme, colorScheme) {\n if (!theme.colorSchemes) {\n return undefined;\n }\n if (colorScheme) {\n theme.colorSchemes[scheme] = {\n ...(colorScheme !== true && colorScheme),\n palette: createPalette({\n ...(colorScheme === true ? {} : colorScheme.palette),\n mode: scheme\n }) // cast type to skip module augmentation test\n };\n }\n}\n\n/**\n * Generate a theme base on the options received.\n * @param options Takes an incomplete theme object and adds the missing parts.\n * @param args Deep merge the arguments with the about to be returned theme.\n * @returns A complete, ready-to-use theme object.\n */\nexport default function createTheme(options = {},\n// cast type to skip module augmentation test\n...args) {\n const {\n palette,\n cssVariables = false,\n colorSchemes: initialColorSchemes = !palette ? {\n light: true\n } : undefined,\n defaultColorScheme: initialDefaultColorScheme = palette?.mode,\n ...other\n } = options;\n const defaultColorSchemeInput = initialDefaultColorScheme || 'light';\n const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];\n const colorSchemesInput = {\n ...initialColorSchemes,\n ...(palette ? {\n [defaultColorSchemeInput]: {\n ...(typeof defaultScheme !== 'boolean' && defaultScheme),\n palette\n }\n } : undefined)\n };\n if (cssVariables === false) {\n if (!('colorSchemes' in options)) {\n // Behaves exactly as v5\n return createThemeNoVars(options, ...args);\n }\n let paletteOptions = palette;\n if (!('palette' in options)) {\n if (colorSchemesInput[defaultColorSchemeInput]) {\n if (colorSchemesInput[defaultColorSchemeInput] !== true) {\n paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette;\n } else if (defaultColorSchemeInput === 'dark') {\n // @ts-ignore to prevent the module augmentation test from failing\n paletteOptions = {\n mode: 'dark'\n };\n }\n }\n }\n const theme = createThemeNoVars({\n ...options,\n palette: paletteOptions\n }, ...args);\n theme.defaultColorScheme = defaultColorSchemeInput;\n theme.colorSchemes = colorSchemesInput;\n if (theme.palette.mode === 'light') {\n theme.colorSchemes.light = {\n ...(colorSchemesInput.light !== true && colorSchemesInput.light),\n palette: theme.palette\n };\n attachColorScheme(theme, 'dark', colorSchemesInput.dark);\n }\n if (theme.palette.mode === 'dark') {\n theme.colorSchemes.dark = {\n ...(colorSchemesInput.dark !== true && colorSchemesInput.dark),\n palette: theme.palette\n };\n attachColorScheme(theme, 'light', colorSchemesInput.light);\n }\n return theme;\n }\n if (!palette && !('light' in colorSchemesInput) && defaultColorSchemeInput === 'light') {\n colorSchemesInput.light = true;\n }\n return createThemeWithVars({\n ...other,\n colorSchemes: colorSchemesInput,\n defaultColorScheme: defaultColorSchemeInput,\n ...(typeof cssVariables !== 'boolean' && cssVariables)\n }, ...args);\n}","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n return typeof element === 'string';\n}\nexport default isHostComponent;","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n *\n * ```tsx\n * const rootRef = React.useRef<Instance>(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * <Root {...props} ref={refFork} />\n * );\n * ```\n *\n * @param {Array<React.Ref<Instance> | undefined>} refs The ref array.\n * @returns {React.RefCallback<Instance> | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n const cleanupRef = React.useRef(undefined);\n const refEffect = React.useCallback(instance => {\n const cleanups = refs.map(ref => {\n if (ref == null) {\n return null;\n }\n if (typeof ref === 'function') {\n const refCallback = ref;\n const refCleanup = refCallback(instance);\n return typeof refCleanup === 'function' ? refCleanup : () => {\n refCallback(null);\n };\n }\n ref.current = instance;\n return () => {\n ref.current = null;\n };\n });\n return () => {\n cleanups.forEach(refCleanup => refCleanup?.());\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/use-memo\n }, refs);\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return value => {\n if (cleanupRef.current) {\n cleanupRef.current();\n cleanupRef.current = undefined;\n }\n if (value != null) {\n cleanupRef.current = refEffect(value);\n }\n };\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/use-memo\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from \"../useEnhancedEffect/index.mjs\";\n\n/**\n * Inspired by https://github.com/react/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from \"../ownerDocument/index.mjs\";\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","'use client';\n\nimport createTheme from \"./createTheme.mjs\";\nconst defaultTheme = createTheme();\nexport default defaultTheme;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.mjs\";\nimport THEME_ID from \"./identifier.mjs\";\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","// copied from @mui/system/createStyled\nfunction slotShouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport default slotShouldForwardProp;","import slotShouldForwardProp from \"./slotShouldForwardProp.mjs\";\nconst rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';\nexport default rootShouldForwardProp;","'use client';\n\nimport createStyled from '@mui/system/createStyled';\nimport defaultTheme from \"./defaultTheme.mjs\";\nimport THEME_ID from \"./identifier.mjs\";\nimport rootShouldForwardProp from \"./rootShouldForwardProp.mjs\";\nexport { default as slotShouldForwardProp } from \"./slotShouldForwardProp.mjs\";\nexport { default as rootShouldForwardProp } from \"./rootShouldForwardProp.mjs\";\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, {\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n return useSystemDefaultProps(params);\n}","import capitalize from '@mui/utils/capitalize';\nexport default capitalize;","'use client';\n\nimport useForkRef from '@mui/utils/useForkRef';\nexport default useForkRef;","/**\n * Gets the actual active element, traversing through shadow roots if necessary.\n *\n * When an element inside a shadow root has focus, `document.activeElement` returns\n * the shadow host element. This function recursively traverses shadow roots to find\n * the actual focused element.\n *\n * @param root - The document or shadow root to start the search from.\n * @returns The actual focused element, or null if no element has focus.\n *\n * @example\n * // In a shadow DOM context\n * const activeElement = getActiveElement(document);\n * // Returns the actual focused element inside the shadow root\n *\n * @example\n * // Starting from a specific document\n * const activeElement = getActiveElement(ownerDocument(element));\n */\nexport default function activeElement(doc) {\n let element = doc.activeElement;\n while (element?.shadowRoot?.activeElement != null) {\n element = element.shadowRoot.activeElement;\n }\n return element;\n}","import getActiveElement from '@mui/utils/getActiveElement';\nexport default getActiveElement;","export const defaultStyles = {\n transition: 'none'\n};\nexport function resolveReducedMotionStyles(reducedMotion, styles) {\n if (reducedMotion === 'always') {\n return styles;\n }\n if (reducedMotion === 'system') {\n return {\n '@media (prefers-reduced-motion: reduce)': styles\n };\n }\n return null;\n}","import { defaultStyles, resolveReducedMotionStyles } from \"../styles/reducedMotion.mjs\";\nexport const reflow = node => node.scrollTop;\nconst DEFAULT_TRANSLATE_OFFSET = {\n offsetX: 0,\n offsetY: 0\n};\nconst EMPTY_STYLE = {};\nconst DEFAULT_TRANSITION_PROPS = ['all'];\nconst EMPTY_OPTIONS = {};\nconst transformOffsetIndexes = {\n matrix: [4, 5],\n matrix3d: [12, 13],\n translate: [0, 1],\n translate3d: [0, 1],\n translateX: [0, null],\n translateY: [null, 0]\n};\nfunction parseTranslateValue(value) {\n const parsedValue = parseFloat(value ?? '');\n return Number.isNaN(parsedValue) ? 0 : parsedValue;\n}\nfunction parseTransform(transform) {\n const match = transform.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\\((.+)\\)$/);\n if (!match) {\n return null;\n }\n return {\n type: match[1],\n values: match[2].split(',').map(parseTranslateValue)\n };\n}\nfunction getTranslateOffsetValue(values, index) {\n return index === null ? 0 : values[index] || 0;\n}\n\n/**\n * Extracts the x/y translation from a CSS transform string.\n *\n * Transition components use these offsets when calculating off-screen positions:\n * if an element is already translated, the distance needed to hide it must start\n * from that visual position instead of its untransformed layout position.\n *\n * CSSOM commonly serializes translations as matrix() or matrix3d(), while inline\n * gesture styles may use translate(), translate3d(), translateX(), or\n * translateY(). This helper normalizes those supported forms into numeric pixel\n * offsets and returns zero offsets for empty, none, or unsupported transforms.\n */\nexport function getTranslateOffsets(transform) {\n if (!transform || transform === 'none') {\n return DEFAULT_TRANSLATE_OFFSET;\n }\n const parsedTransform = parseTransform(transform);\n if (!parsedTransform) {\n return DEFAULT_TRANSLATE_OFFSET;\n }\n const {\n type,\n values\n } = parsedTransform;\n const offsetIndexes = transformOffsetIndexes[type];\n if (!offsetIndexes) {\n return DEFAULT_TRANSLATE_OFFSET;\n }\n return {\n offsetX: getTranslateOffsetValue(values, offsetIndexes[0]),\n offsetY: getTranslateOffsetValue(values, offsetIndexes[1])\n };\n}\nexport function normalizedTransitionCallback(nodeRef, callback) {\n return maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n // Enter callbacks receive isAppearing; exit callbacks do not.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n}\n/**\n * Return the child style for a transition. Reuse predefined style objects when\n * no custom styles are present so memoized children see the same object.\n */\nexport function getTransitionChildStyle(state, inProp, baseStyles, hiddenStyles, styleProp, childStyle) {\n const base = state === 'exited' && !inProp ? hiddenStyles : baseStyles[state] || baseStyles.exited;\n return styleProp || childStyle ? {\n ...base,\n ...styleProp,\n ...childStyle\n } : base;\n}\nexport function getTransitionProps(props, options) {\n const {\n timeout,\n easing,\n style = EMPTY_STYLE\n } = props;\n return {\n duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),\n easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),\n delay: style.transitionDelay\n };\n}\n\n/**\n * Returns CSS that disables component-owned transitions when reduced motion is active.\n * Pass custom styles only when the default `transition: none` reset is not enough.\n */\nexport function getReducedMotionStyles(theme, styles) {\n const resolvedStyles = styles ?? defaultStyles;\n return resolveReducedMotionStyles(theme.motion?.reducedMotion, resolvedStyles);\n}\nexport function getTransitionStyles(theme, props = DEFAULT_TRANSITION_PROPS, options = EMPTY_OPTIONS) {\n const transition = theme.transitions?.create?.(props, options);\n const reducedMotionStyles = getReducedMotionStyles(theme);\n if (transition === undefined) {\n return reducedMotionStyles ?? EMPTY_STYLE;\n }\n const transitionStyles = {\n transition\n };\n return reducedMotionStyles ? {\n ...transitionStyles,\n ...reducedMotionStyles\n } : transitionStyles;\n}","export function isUnitless(value) {\n return String(parseFloat(value)).length === String(value).length;\n}\n\n// Ported from Compass\n// https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss\n// Emulate the sass function \"unit\"\nexport function getUnit(input) {\n return String(input).match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n}\n\n// Emulate the sass function \"unitless\"\nexport function toUnitless(length) {\n return parseFloat(length);\n}\n\n// Convert any CSS <length> or <percentage> value to any another.\n// From https://github.com/KyleAMathews/convert-css-length\nexport function convertLength(baseFontSize) {\n return (length, toUnit) => {\n const fromUnit = getUnit(length);\n\n // Optimize for cases where `from` and `to` units are accidentally the same.\n if (fromUnit === toUnit) {\n return length;\n }\n\n // Convert input length to pixels.\n let pxLength = toUnitless(length);\n if (fromUnit !== 'px') {\n if (fromUnit === 'em') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n } else if (fromUnit === 'rem') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n }\n }\n\n // Convert length in pixels to the output unit\n let outputLength = pxLength;\n if (toUnit !== 'px') {\n if (toUnit === 'em') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else if (toUnit === 'rem') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else {\n return length;\n }\n }\n return parseFloat(outputLength.toFixed(5)) + toUnit;\n };\n}\nexport function alignProperty({\n size,\n grid\n}) {\n const sizeBelow = size - size % grid;\n const sizeAbove = sizeBelow + grid;\n return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;\n}\n\n// fontGrid finds a minimal grid (in rem) for the fontSize values so that the\n// lineHeight falls under a x pixels grid, 4px in the case of Material Design,\n// without changing the relative line height\nexport function fontGrid({\n lineHeight,\n pixels,\n htmlFontSize\n}) {\n return pixels / (lineHeight * htmlFontSize);\n}\n\n/**\n * generate a responsive version of a given CSS property\n * @example\n * responsiveProperty({\n * cssProperty: 'fontSize',\n * min: 15,\n * max: 20,\n * unit: 'px',\n * breakpoints: [300, 600],\n * })\n *\n * // this returns\n *\n * {\n * fontSize: '15px',\n * '@media (min-width:300px)': {\n * fontSize: '17.5px',\n * },\n * '@media (min-width:600px)': {\n * fontSize: '20px',\n * },\n * }\n * @param {Object} params\n * @param {string} params.cssProperty - The CSS property to be made responsive\n * @param {number} params.min - The smallest value of the CSS property\n * @param {number} params.max - The largest value of the CSS property\n * @param {string} [params.unit] - The unit to be used for the CSS property\n * @param {Array.number} [params.breakpoints] - An array of breakpoints\n * @param {number} [params.alignStep] - Round scaled value to fall under this grid\n * @returns {Object} responsive styles for {params.cssProperty}\n */\nexport function responsiveProperty({\n cssProperty,\n min,\n max,\n unit = 'rem',\n breakpoints = [600, 900, 1200],\n transform = null\n}) {\n const output = {\n [cssProperty]: `${min}${unit}`\n };\n const factor = (max - min) / breakpoints[breakpoints.length - 1];\n breakpoints.forEach(breakpoint => {\n let value = min + factor * breakpoint;\n if (transform !== null) {\n value = transform(value);\n }\n output[`@media (min-width:${breakpoint}px)`] = {\n [cssProperty]: `${Math.round(value * 10000) / 10000}${unit}`\n };\n });\n return output;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport { isUnitless, convertLength, responsiveProperty, alignProperty, fontGrid } from \"./cssUtils.mjs\";\nexport default function responsiveFontSizes(themeInput, options = {}) {\n const {\n breakpoints = ['sm', 'md', 'lg'],\n disableAlign = false,\n factor = 2,\n variants = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline']\n } = options;\n const theme = {\n ...themeInput\n };\n theme.typography = {\n ...theme.typography\n };\n const typography = theme.typography;\n\n // Convert between CSS lengths e.g. em->px or px->rem\n // Set the baseFontSize for your project. Defaults to 16px (also the browser default).\n const convert = convertLength(typography.htmlFontSize);\n const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);\n variants.forEach(variant => {\n const style = typography[variant];\n if (!style) {\n return;\n }\n const remFontSize = parseFloat(convert(style.fontSize, 'rem'));\n if (remFontSize <= 1) {\n return;\n }\n const maxFontSize = remFontSize;\n const minFontSize = 1 + (maxFontSize - 1) / factor;\n let {\n lineHeight\n } = style;\n if (!isUnitless(lineHeight) && !disableAlign) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: Unsupported non-unitless line height with grid alignment.\\n' + 'Use unitless line heights instead.' : _formatErrorMessage(6));\n }\n if (!isUnitless(lineHeight)) {\n // make it unitless\n lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize);\n }\n let transform = null;\n if (!disableAlign) {\n transform = value => alignProperty({\n size: value,\n grid: fontGrid({\n pixels: 4,\n lineHeight,\n htmlFontSize: typography.htmlFontSize\n })\n });\n }\n const responsive = responsiveProperty({\n cssProperty: 'fontSize',\n min: minFontSize,\n max: maxFontSize,\n unit: 'rem',\n breakpoints: breakpointValues,\n transform\n });\n\n // https://github.com/mui/material-ui/issues/40255\n // Preserve the original font size at the largest breakpoint.\n // Grid alignment can snap the max value away from the original designed size.\n if (breakpointValues.length > 0) {\n const lastBreakpoint = breakpointValues[breakpointValues.length - 1];\n responsive[`@media (min-width:${lastBreakpoint}px)`] = {\n fontSize: `${Math.round(maxFontSize * 10000) / 10000}rem`\n };\n }\n typography[variant] = {\n ...style,\n ...responsive\n };\n });\n return theme;\n}","import React from \"react\";\r\nimport {\r\n Typography,\r\n Link\r\n} from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useAppThemeContext } from \"../../../core/context/AppThemeContext\";\r\nimport { useTheme } from \"@mui/material/styles\";\r\nimport type { TypographyProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst Typography2: React.FC<TypographyProps> = ({\r\n text,\r\n size: propFontSize,\r\n color,\r\n sx,\r\n isRequired = false,\r\n variantType = \"default\",\r\n onClick,\r\n target = \"_self\",\r\n ...props\r\n}) => {\r\n const { t } = useTranslation();\r\n const { fontSize } = useAppThemeContext();\r\n const theme = useTheme();\r\n\r\n const resolvedColor = React.useMemo(() => {\r\n if (color) return color;\r\n\r\n switch (variantType) {\r\n case \"primary\":\r\n return theme.palette.primary.main;\r\n\r\n case \"secondary\":\r\n return theme.palette.text.secondary;\r\n\r\n case \"error\":\r\n return theme.palette.error.main;\r\n\r\n case \"link\":\r\n return theme.palette.primary.main;\r\n\r\n default:\r\n return theme.palette.text.primary;\r\n }\r\n }, [color, variantType, theme]);\r\n\r\n const commonStyle = {\r\n color: resolvedColor,\r\n fontSize: propFontSize || fontSize,\r\n ...sx,\r\n };\r\n\r\n const content = (\r\n <>\r\n {typeof text === \"string\" ? t(text) : text}\r\n {isRequired && (\r\n <Typography\r\n component=\"span\"\r\n sx={{\r\n color: theme.palette.error.main,\r\n fontSize: propFontSize || fontSize,\r\n ml: 0.25,\r\n }}\r\n >\r\n *\r\n </Typography>\r\n )}\r\n </>\r\n );\r\n\r\n if (variantType === \"link\") {\r\n return (\r\n <Link\r\n target={target}\r\n underline=\"always\"\r\n onClick={onClick}\r\n sx={{\r\n ...commonStyle,\r\n cursor: \"pointer\",\r\n fontWeight: 500,\r\n color : theme.palette.text.primary,\r\n \"&:hover\": {\r\n opacity: 0.8,\r\n },\r\n }}\r\n >\r\n {content}\r\n </Link>\r\n );\r\n }\r\n\r\n return (\r\n <Typography\r\n {...props}\r\n sx={commonStyle}\r\n onClick={onClick}\r\n >\r\n {content}\r\n </Typography>\r\n );\r\n};\r\n\r\nexport default React.memo(Typography2);","import { Box, Button } from \"@mui/material\";\r\nimport { Link } from \"react-router-dom\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\nfunction ErrorFallbackPage() {\r\n return (\r\n <Box\r\n sx={{\r\n minHeight: \"100vh\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: \"#f8f9fa\",\r\n padding: \"20px\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n textAlign: \"center\",\r\n maxWidth: \"500px\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: \"80px\",\r\n height: \"80px\",\r\n backgroundColor: \"#fee2e2\",\r\n borderRadius: \"50%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n margin: \"0 auto 24px\",\r\n }}\r\n >\r\n <Typography2 text=\"!\" component='span' sx={{ fontSize: \"40px\", color: \"#dc3545\" }} />\r\n </Box>\r\n <Typography2\r\n component='h1'\r\n text=\"Something went wrong\"\r\n sx={{\r\n fontSize: \"24px\",\r\n color: \"#212529\",\r\n marginBottom: \"12px\",\r\n }}\r\n />\r\n <Typography2\r\n text=\"We encountered an unexpected error. Please return to the home page.\"\r\n sx={{\r\n fontSize: \"16px\",\r\n color: \"#6c757d\",\r\n marginBottom: \"24px\",\r\n }}\r\n />\r\n <Link to={\"/home\"}>\r\n <Button onClick={() => {}}>Back to home</Button>\r\n </Link>\r\n </Box>\r\n </Box>\r\n );\r\n}\r\n\r\nexport default ErrorFallbackPage;\r\n","import React, { Component, type ReactNode } from \"react\";\r\nimport ErrorFallbackPage from \"../../shared/subComponents/ErrorFallbackPage\";\r\nimport Logger from \"utils/loggers\";\r\n\r\ninterface Props {\r\n children: ReactNode;\r\n fallback?: ReactNode;\r\n}\r\n\r\ninterface State {\r\n hasError: boolean;\r\n error?: Error;\r\n}\r\n\r\nexport default class ErrorBoundary extends Component<Props, State> {\r\n constructor(props: Props) {\r\n super(props);\r\n this.state = { hasError: false };\r\n }\r\n\r\n static getDerivedStateFromError(error: Error): State {\r\n return { hasError: true, error };\r\n }\r\n\r\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {\r\n Logger.error(\"ErrorBoundary caught an error:\", error, errorInfo);\r\n }\r\n\r\n render() {\r\n if (this.state.hasError) {\r\n return this.props.fallback || <ErrorFallbackPage />;\r\n }\r\n\r\n return this.props.children;\r\n }\r\n}\r\n","import type { ErrorData } from \"libs/shared/types/common-types\";\r\nimport { useRouteError, isRouteErrorResponse } from \"react-router-dom\";\r\nimport ErrorFallbackPage from \"subComponents/ErrorFallbackPage\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport Logger from \"utils/loggers\";\r\n\r\nexport default function RouteErrorBoundary() {\r\n const error = useRouteError();\r\n\r\n if (isRouteErrorResponse(error)) {\r\n return <Typography2 text={error.status + \" \" + error.statusText} />;\r\n }\r\n\r\n Logger.error(\"Route Boundary Error => \", error as ErrorData)\r\n\r\n return <ErrorFallbackPage />;\r\n}","import { useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\n\r\nexport default function useAuth() {\r\n const auth = useSelector((state: RootState) => state.auth);\r\nreturn {\r\n isAuthenticated: auth.isAuthenticated,\r\n initialized: auth.initialized,\r\n loading: auth.loading,\r\n userInfo: auth.userInfo,\r\n error: auth.error,\r\n isProfileUpdated : auth.userInfo?.isProfileUpdated,\r\n};\r\n}\r\n","import { Backdrop, Box, Typography } from \"@mui/material\";\r\nimport { keyframes } from \"@mui/system\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface LoaderProps {\r\n text?: string;\r\n}\r\n\r\nconst pulse = keyframes`\r\n 0%,80%,100%{\r\n transform: scale(0.5);\r\n opacity:.4;\r\n }\r\n 40%{\r\n transform: scale(1);\r\n opacity:1;\r\n }\r\n`;\r\n\r\nexport default function Loader({\r\n text = \"strLoading\",\r\n}: Readonly<LoaderProps>) {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Backdrop\r\n open\r\n sx={{\r\n zIndex: (theme) => theme.zIndex.modal + 999,\r\n bgcolor: \"rgba(255,255,255,.65)\",\r\n backdropFilter: \"blur(8px)\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n px: 5,\r\n py: 4,\r\n borderRadius: 4,\r\n bgcolor: \"background.paper\",\r\n boxShadow: \"0 20px 60px rgba(0,0,0,.12)\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n minWidth: 220,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n gap: 1,\r\n mb: 2,\r\n }}\r\n >\r\n {[0, 1, 2].map((item) => (\r\n <Box\r\n key={item}\r\n sx={{\r\n width: 12,\r\n height: 12,\r\n borderRadius: \"50%\",\r\n bgcolor: \"primary.main\",\r\n animation: `${pulse} 1.2s infinite ease-in-out`,\r\n animationDelay: `${item * 0.2}s`,\r\n }}\r\n />\r\n ))}\r\n </Box>\r\n\r\n <Typography\r\n sx={{\r\n fontWeight: 600,\r\n color: \"text.secondary\",\r\n fontSize: 15,\r\n }}\r\n >\r\n {t(text)}\r\n </Typography>\r\n </Box>\r\n </Backdrop>\r\n );\r\n}\r\n","import { useMediaQuery, useTheme } from \"@mui/material\";\r\nimport { DeviceTypeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nconst useDevice = () => {\r\n const theme = useTheme();\r\n const { MOBILE, TABLET, DESKTOP } = DeviceTypeEnum;\r\n\r\n const isMobile = useMediaQuery(theme.breakpoints.down(\"sm\"));\r\n const isTablet = useMediaQuery(theme.breakpoints.between(\"sm\", \"md\"));\r\n\r\n return {\r\n device: isMobile ? MOBILE : isTablet ? TABLET : DESKTOP,\r\n isMobile,\r\n isTablet,\r\n isDesktop: !isMobile && !isTablet,\r\n };\r\n};\r\n\r\nexport default useDevice;","import apiClient from \"api/apiClient\";\r\nimport { useEffect, useState } from \"react\";\r\nimport type { ErrorData, FieldObject, MasterRequestDataType, SelectFieldPropTypes } from \"libs/shared/types/common-types\";\r\nimport Logger from \"utils/loggers\";\r\nimport { ApiMethodEnum } from \"libs/shared/enums/common-enums\";\r\n\r\n\r\nexport type MasterApiReturnType<T> = [\r\n T[],\r\n boolean,\r\n boolean,\r\n ErrorData | undefined,\r\n (url: string, body?: MasterRequestDataType | FieldObject,) => void,\r\n number\r\n];\r\n\r\nconst useMasterFetchApi = <T>(props: SelectFieldPropTypes<T>): MasterApiReturnType<T> => {\r\n const {\r\n inputData,\r\n apiendpoint,\r\n isfirstrun = true,\r\n requestbody,\r\n masterCd,\r\n masterCdKey,\r\n isRefereshedData = false,\r\n apiMethod = ApiMethodEnum.POST\r\n } = props;\r\n\r\n const [data, setData] = useState<T[]>(inputData || []);\r\n\r\n const [errorData, setErrorData] = useState<ErrorData>();\r\n const [isLoading, setLoading] = useState<boolean>(false);\r\n const [isError, setError] = useState<boolean>(false);\r\n const [dataLength, setDataLength] = useState(0);\r\n\r\n const fetchResourse = async (\r\n url: string,\r\n body?: MasterRequestDataType | FieldObject,\r\n ) => {\r\n setLoading(true);\r\n setError(false);\r\n\r\n try {\r\n const response = apiMethod === ApiMethodEnum.POST\r\n ? await apiClient.post(url, body)\r\n : await apiClient.get(url);\r\n if (response.status === 0) {\r\n setErrorData(response);\r\n setError(true);\r\n setData([]);\r\n setDataLength(0);\r\n return [];\r\n } else {\r\n const responseData: T[] = response.data.data;\r\n setData(responseData);\r\n setDataLength(responseData.length);\r\n return responseData;\r\n }\r\n } catch (err) {\r\n Logger.error(\"Error in useMasterFetch.ts\",err);\r\n setErrorData(err as ErrorData);\r\n setError(true);\r\n setData([]);\r\n setDataLength(0);\r\n return [];\r\n } finally {\r\n setLoading(false);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const isStringMaster = typeof masterCd === \"string\";\r\n const isValidNumberMaster = +(masterCd || 0) > 0 && masterCdKey;\r\n\r\n if (+(masterCd || 0) === -1 && !isStringMaster) {\r\n setData([])\r\n }\r\n\r\n if (apiendpoint && ((isStringMaster) || (!isStringMaster && (isfirstrun || isValidNumberMaster)))) {\r\n const body = {\r\n ...requestbody,\r\n ...(masterCdKey ? {\r\n [masterCdKey]: masterCd || (requestbody as FieldObject)?.[masterCdKey]\r\n } : {})\r\n };\r\n fetchResourse(apiendpoint, body);\r\n }\r\n\r\n }, [isfirstrun, masterCd]);\r\n\r\n useEffect(() => {\r\n setData(inputData || []);\r\n }, [inputData]);\r\n\r\n useEffect(() => {\r\n if (isRefereshedData) {\r\n setData([]);\r\n }\r\n }, [isRefereshedData]);\r\n\r\n return [data, isLoading, isError, errorData, fetchResourse, dataLength];\r\n};\r\n\r\nexport default useMasterFetchApi;\r\n\r\n","import type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { MasterResponseDataType, RadioOptionValue } from \"libs/shared/types/common-types\";\r\nimport type { Callback, ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport React, { useCallback, useMemo } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport type { AppDispatch } from \"store/store\";\r\nimport { getOnChangeActionType, getSelectInputFieldName } from \"utils/commonFunctions\";\r\n\r\nexport default function useOnChangeHandlers<TDefault>(rootSliceName: string, parentSliceName?: string) {\r\n const dispatch = useDispatch<AppDispatch>();\r\n\r\n const type = useMemo(() => getOnChangeActionType(rootSliceName), [rootSliceName]);\r\n\r\n const updateField = useCallback(\r\n <T = TDefault,>(payload: Omit<ChangeFieldPayload<T>, \"parentSliceName\">) => {\r\n dispatch({\r\n type,\r\n payload: {\r\n ...payload,\r\n parentSliceName,\r\n },\r\n } as PayloadAction<ChangeFieldPayload<T>>);\r\n },\r\n [dispatch, parentSliceName, type],\r\n );\r\n\r\n const onTextChange = useCallback(\r\n <T = TDefault,>(event: React.ChangeEvent<HTMLInputElement>, callback?: Callback<T>) => {\r\n const { id, value } = event.target;\r\n\r\n updateField<T>({\r\n key: id,\r\n value,\r\n valueOrCd: value,\r\n callback,\r\n });\r\n },\r\n [updateField],\r\n );\r\n\r\n const onMasterChange = useCallback(\r\n <T = TDefault,>(event: React.BaseSyntheticEvent, data: MasterResponseDataType, callback?: Callback<T>) => {\r\n const lookUpCd = data?.[MASTER_DATA_KEYS.CODE];\r\n\r\n if (lookUpCd === -1) return;\r\n\r\n const fieldName = getSelectInputFieldName(event.target.id);\r\n\r\n updateField<T>({\r\n key: fieldName,\r\n value: data?.[MASTER_DATA_KEYS.VALUE] ?? \"\",\r\n valueOrCd: data?.[MASTER_DATA_KEYS.CODE] ?? \"\",\r\n callback,\r\n });\r\n },\r\n [updateField],\r\n );\r\n\r\n const onDateChange = useCallback(\r\n <T = TDefault,>(fieldName: string, value: string, callback?: Callback<T>) => {\r\n updateField<T>({\r\n key: fieldName,\r\n value,\r\n valueOrCd: value,\r\n callback,\r\n });\r\n },\r\n [updateField],\r\n );\r\n\r\n const onRadioChange = useCallback(\r\n <T = TDefault,>(fieldName: string, callback?: Callback<T>) =>\r\n (_event: React.ChangeEvent<HTMLInputElement>, value: RadioOptionValue, label?: string) => {\r\n updateField<T>({\r\n key: fieldName,\r\n value: label ?? value,\r\n valueOrCd: value,\r\n callback,\r\n });\r\n },\r\n [updateField],\r\n );\r\n\r\n const onCheckboxChange = useCallback(\r\n <T = TDefault,>(fieldName: string, value: string | number | boolean, callback?: Callback<T>) => {\r\n updateField<T>({\r\n key: fieldName,\r\n value,\r\n valueOrCd: value,\r\n callback,\r\n });\r\n },\r\n [updateField],\r\n );\r\n\r\n return { onTextChange, onMasterChange, onDateChange, onRadioChange, onCheckboxChange };\r\n}\r\n","// import { createSlice, type PayloadAction } from \"@reduxjs/toolkit\";\r\n// import type { MenuConfig, MenuGroup, MenuLeaf, RouteConfig } from \"../../core/types/remoteConfig\";\r\n\r\n// export interface AppDataState {\r\n// routes: RouteConfig[];\r\n// menus: (MenuConfig | MenuGroup | MenuLeaf)[];\r\n// loading: boolean;\r\n// error: null;\r\n// isPreview: boolean;\r\n// }\r\n\r\n// // 2. Define the initial state using that type\r\n// const initialState: AppDataState = {\r\n// routes: [],\r\n// menus: [],\r\n// loading: false,\r\n// error: null,\r\n// isPreview: false\r\n// };\r\n\r\n// export const appDataSlice = createSlice({\r\n// name: \"menuData\",\r\n// initialState,\r\n// reducers: {\r\n// setMenus: (state, action: PayloadAction<(MenuConfig | MenuGroup | MenuLeaf)[]>) => {\r\n// state.menus = action.payload;\r\n// },\r\n// setRoutes: (state, action: PayloadAction<RouteConfig[]>) => {\r\n// state.routes = action.payload;\r\n// },\r\n// setPreview: (state, action: PayloadAction<boolean>) => {\r\n// state.isPreview = action.payload\r\n// }\r\n// },\r\n// });\r\n\r\n// export const { setMenus, setRoutes } = appDataSlice.actions;\r\nimport {\r\n createSlice,\r\n type PayloadAction,\r\n type CaseReducer,\r\n} from \"@reduxjs/toolkit\";\r\n\r\nimport type {\r\n MenuConfig,\r\n MenuGroup,\r\n MenuLeaf,\r\n RouteConfig,\r\n} from \"../../core/types/remoteConfig\";\r\n\r\nexport interface AppDataState {\r\n routes: RouteConfig[];\r\n menus: (MenuConfig | MenuGroup | MenuLeaf)[];\r\n loading: boolean;\r\n error: null;\r\n isPreview: boolean;\r\n}\r\n\r\nconst initialState: AppDataState = {\r\n routes: [],\r\n menus: [],\r\n loading: false,\r\n error: null,\r\n isPreview: false,\r\n};\r\n\r\nconst setMenus: CaseReducer<\r\n AppDataState,\r\n PayloadAction<(MenuConfig | MenuGroup | MenuLeaf)[]>\r\n> = (state, action) => {\r\n state.menus = action.payload;\r\n};\r\n\r\nconst setRoutes: CaseReducer<\r\n AppDataState,\r\n PayloadAction<RouteConfig[]>\r\n> = (state, action) => {\r\n state.routes = action.payload;\r\n};\r\n\r\nconst setPreview: CaseReducer<\r\n AppDataState,\r\n PayloadAction<boolean>\r\n> = (state, action) => {\r\n state.isPreview = action.payload;\r\n};\r\n\r\nexport const appDataSlice = createSlice({\r\n name: \"menuData\",\r\n initialState,\r\n reducers: {\r\n setMenus,\r\n setRoutes,\r\n setPreview,\r\n },\r\n});\r\n\r\nexport const {\r\n setMenus: setMenusAction,\r\n setRoutes: setRoutesAction,\r\n setPreview: setPreviewAction,\r\n} = appDataSlice.actions;","// confirmationModalSlice.ts\r\n\r\nimport { createSlice, type PayloadAction } from '@reduxjs/toolkit';\r\nimport { YES_NO_BOOL } from 'constants/commonConstants';\r\nimport { EConfirmationModalType } from 'libs/shared/enums/common-enums';\r\n\r\nexport interface ConfirmationModalState {\r\n textId?: string;\r\n textType?:string; \r\n isOpen: boolean;\r\n isSubmitModalOpen?: boolean;\r\n text: string;\r\n type: EConfirmationModalType;\r\n labelSubmit: string;\r\n labelNo: string;\r\n hideSubmitButton: boolean;\r\n hideCancelButton: boolean;\r\n onSubmit?: (type: EConfirmationModalType) => void;\r\n}\r\n\r\nconst initialState: ConfirmationModalState = {\r\n isOpen: YES_NO_BOOL.NO,\r\n isSubmitModalOpen: YES_NO_BOOL.NO,\r\n text: '',\r\n textId: '',\r\n type: EConfirmationModalType.SUBMIT,\r\n labelSubmit: 'strYes',\r\n labelNo: 'strNo',\r\n hideSubmitButton: YES_NO_BOOL.NO,\r\n hideCancelButton: YES_NO_BOOL.NO,\r\n};\r\n\r\nconst confirmationModalSlice = createSlice({\r\n name: 'confirmationModal',\r\n initialState,\r\n reducers: {\r\n openConfirmationModal: (\r\n state,\r\n action: PayloadAction<{\r\n text: string;\r\n type?: EConfirmationModalType;\r\n labelSubmit?: string;\r\n labelNo?: string;\r\n hideSubmitButton?: boolean;\r\n hideCancelButton?: boolean;\r\n onSubmit?: (type: EConfirmationModalType) => void;\r\n }>\r\n ) => {\r\n state.isOpen = YES_NO_BOOL.YES;\r\n state.text = action.payload.text;\r\n state.type = action.payload.type ?? EConfirmationModalType.SUBMIT;\r\n state.labelSubmit = action.payload.labelSubmit ?? \"strYes\";\r\n state.labelNo = action.payload.labelNo ?? \"strNo\";\r\n state.hideSubmitButton = action.payload.hideSubmitButton ?? YES_NO_BOOL.NO;\r\n state.hideCancelButton = action.payload.hideCancelButton ?? YES_NO_BOOL.NO;\r\n state.onSubmit = action.payload.onSubmit;\r\n },\r\n \r\n openSubmitModal: (\r\n state,\r\n action: PayloadAction<{\r\n text: string;\r\n textId : string;\r\n textType : string;\r\n type?: EConfirmationModalType;\r\n labelSubmit?: string;\r\n labelNo?: string;\r\n hideSubmitButton?: boolean;\r\n hideCancelButton?: boolean;\r\n onSubmit?: (type: EConfirmationModalType) => void;\r\n }>\r\n ) => {\r\n state.isSubmitModalOpen = YES_NO_BOOL.YES;\r\n state.text = action.payload.text;\r\n state.textId = action.payload.textId;\r\n state.type = EConfirmationModalType.SUBMIT;\r\n state.labelSubmit = action.payload.labelSubmit ?? \"strYes\";\r\n state.hideSubmitButton = action.payload.hideSubmitButton ?? YES_NO_BOOL.NO;\r\n state.hideCancelButton = action.payload.hideCancelButton ?? YES_NO_BOOL.NO;\r\n state.onSubmit = action.payload.onSubmit;\r\n state.textType = action.payload.textType;\r\n },\r\n\r\n closeConfirmationModal: (state) => {\r\n Object.assign(state, initialState);\r\n },\r\n },\r\n});\r\n\r\nexport const { openConfirmationModal, closeConfirmationModal, openSubmitModal } = confirmationModalSlice.actions;\r\n\r\nexport default confirmationModalSlice.reducer;","\r\n\r\nconst SECRET_KEY = \"\";\r\n\r\nconst encoder = new TextEncoder();\r\nconst decoder = new TextDecoder();\r\n\r\nconst SALT_LENGTH = 16;\r\nconst IV_LENGTH = 12;\r\nconst ITERATIONS = 100000;\r\n\r\n/**\r\n * Derive AES key using PBKDF2 (SHA-256)\r\n */\r\nasync function deriveKey(salt: Uint8Array): Promise<CryptoKey> {\r\n const baseKey = await crypto.subtle.importKey(\r\n \"raw\",\r\n encoder.encode(SECRET_KEY) as BufferSource,\r\n \"PBKDF2\",\r\n false,\r\n [\"deriveKey\"]\r\n );\r\n\r\n return crypto.subtle.deriveKey(\r\n {\r\n name: \"PBKDF2\",\r\n salt: salt as BufferSource,\r\n iterations: ITERATIONS,\r\n hash: \"SHA-256\",\r\n },\r\n baseKey,\r\n {\r\n name: \"AES-GCM\",\r\n length: 256,\r\n },\r\n false,\r\n [\"encrypt\", \"decrypt\"]\r\n );\r\n}\r\n\r\n/**\r\n * Uint8Array → Base64\r\n */\r\nfunction toBase64(bytes: Uint8Array): string {\r\n let binary = \"\";\r\n const chunkSize = 0x8000;\r\n\r\n for (let i = 0; i < bytes.length; i += chunkSize) {\r\n binary += String.fromCharCode(...bytes.subarray(i, i + chunkSize));\r\n }\r\n\r\n return btoa(binary);\r\n}\r\n\r\n/**\r\n * Base64 → Uint8Array\r\n */\r\nfunction fromBase64(base64: string): Uint8Array {\r\n const binary = atob(base64);\r\n const bytes = new Uint8Array(binary.length);\r\n\r\n for (let i = 0; i < binary.length; i++) {\r\n bytes[i] = binary.charCodeAt(i);\r\n }\r\n\r\n return bytes;\r\n}\r\n\r\n/**\r\n * Encrypt string → Base64\r\n */\r\nexport async function encrypt(plainText: string): Promise<string> {\r\n if (!plainText) return \"\";\r\n\r\n try {\r\n const salt = crypto.getRandomValues(new Uint8Array(SALT_LENGTH));\r\n const iv = crypto.getRandomValues(new Uint8Array(IV_LENGTH));\r\n\r\n const key = await deriveKey(salt);\r\n\r\n const encryptedBuffer = await crypto.subtle.encrypt(\r\n {\r\n name: \"AES-GCM\",\r\n iv: iv as BufferSource,\r\n },\r\n key,\r\n encoder.encode(plainText) as BufferSource\r\n );\r\n\r\n const encryptedBytes = new Uint8Array(encryptedBuffer);\r\n\r\n const result = new Uint8Array(\r\n SALT_LENGTH + IV_LENGTH + encryptedBytes.length\r\n );\r\n\r\n result.set(salt, 0);\r\n result.set(iv, SALT_LENGTH);\r\n result.set(encryptedBytes, SALT_LENGTH + IV_LENGTH);\r\n\r\n return toBase64(result);\r\n } catch {\r\n return \"\";\r\n }\r\n}\r\n\r\n/**\r\n * Decrypt Base64 → string\r\n */\r\nexport async function decrypt(cipherText: string): Promise<string> {\r\n if (!cipherText) return \"\";\r\n\r\n try {\r\n const combined = fromBase64(cipherText);\r\n\r\n const salt = combined.slice(0, SALT_LENGTH);\r\n const iv = combined.slice(SALT_LENGTH, SALT_LENGTH + IV_LENGTH);\r\n const data = combined.slice(SALT_LENGTH + IV_LENGTH);\r\n\r\n const key = await deriveKey(salt);\r\n\r\n const decryptedBuffer = await crypto.subtle.decrypt(\r\n {\r\n name: \"AES-GCM\",\r\n iv: iv as BufferSource,\r\n },\r\n key,\r\n data as BufferSource\r\n );\r\n\r\n return decoder.decode(decryptedBuffer);\r\n } catch {\r\n return \"\";\r\n }\r\n}","const AuthEndpoints = {\r\n PATH: \"/keycloak/auth\",\r\n\r\n END_POINT: {\r\n LOGIN: \"/user-login\",\r\n LOGOUT: \"/user-logout\",\r\n CREATE_USER: \"/user-create\",\r\n CHANGE_PASSWORD: \"/change-password\",\r\n CLEAR_COOKIES: \"/clear-cookies\",\r\n FORGOT_PASSWORD: \"/forgot-password\",\r\n FETCH_USER: \"/user-validate-token\",\r\n GENERATE_CAPTCHA: \"/generate-captcha\",\r\n VERIFY_CAPTCHA: \"/verify-captcha\",\r\n USER_VIEW: \"/user-view\"\r\n },\r\n} as const;\r\n\r\nexport const AuthAPIPaths = {\r\n getUserInfo: `${AuthEndpoints.PATH}${AuthEndpoints.END_POINT.USER_VIEW}`,\r\n} as const\r\n\r\nexport default AuthEndpoints;\r\n","import { apiService } from \"api/apiService\";\r\nimport AuthEndpoints from \"./authEndpoints\";\r\nimport type {\r\n LoginRequest,\r\n ForgotPasswordRequest,\r\n ResetPasswordRequest,\r\n ChangePasswordRequest,\r\n RegisterRequest,\r\n LoginResponse,\r\n ValidateUserResponse,\r\n VerifyCaptchaRequest,\r\n GenerateCaptchaResponse,\r\n} from \"../types/authTypes\";\r\nimport apiClient from \"api/apiClient\";\r\n\r\nconst AuthServices = {\r\n /**\r\n * Login\r\n */\r\n\r\n loginApi: async (\r\n requestBody: LoginRequest,\r\n) =>\r\n apiService.post<LoginResponse>(\r\n AuthEndpoints.PATH +\r\n AuthEndpoints.END_POINT.LOGIN,\r\n requestBody,\r\n ),\r\n\r\n /**\r\n * Forgot Password\r\n */\r\n forgotPasswordApi: async (requestBody: ForgotPasswordRequest) =>\r\n apiService.post(\r\n AuthEndpoints.PATH + AuthEndpoints.END_POINT.LOGOUT,\r\n requestBody,\r\n ),\r\n\r\n /**\r\n * Reset / Change Password\r\n */\r\n changePasswordApi: async (\r\n requestBody: ResetPasswordRequest | ChangePasswordRequest,\r\n ) =>\r\n apiService.post(\r\n AuthEndpoints.PATH + AuthEndpoints.END_POINT.CHANGE_PASSWORD,\r\n requestBody,\r\n ),\r\n /**\r\n * Create User\r\n */\r\n createUserApi: async (requestBody: RegisterRequest) =>\r\n apiService.post(\r\n AuthEndpoints.PATH + AuthEndpoints.END_POINT.CREATE_USER,\r\n requestBody,\r\n ),\r\n\r\n /**\r\n * Logout\r\n */\r\n logoutApi: async () =>\r\n apiService.post(AuthEndpoints.PATH + AuthEndpoints.END_POINT.LOGOUT, {}),\r\n\r\n /**\r\n * Clear Cookies\r\n */\r\n clearCookiesApi: async () =>\r\n apiService.post(AuthEndpoints.PATH + AuthEndpoints.END_POINT.CLEAR_COOKIES),\r\n\r\n /**\r\n * fetch user\r\n */\r\nfetchUserApi: async () =>\r\n apiService.post<ValidateUserResponse>(\r\n AuthEndpoints.PATH +\r\n AuthEndpoints.END_POINT.FETCH_USER,\r\n {},\r\n ),\r\n\r\n /**\r\n * Generate CAPTCHA\r\n */\r\ngenerateCaptcha: async () =>\r\n apiService.get<GenerateCaptchaResponse>(\r\n AuthEndpoints.PATH +\r\n AuthEndpoints.END_POINT.GENERATE_CAPTCHA\r\n ),\r\n /**\r\n * Verify CAPTCHA\r\n */\r\nverifyCaptcha: async (\r\n requestBody: VerifyCaptchaRequest,\r\n): Promise<string> => {\r\n const response = await apiClient.post<string>(\r\n AuthEndpoints.PATH + AuthEndpoints.END_POINT.VERIFY_CAPTCHA,\r\n requestBody,\r\n );\r\n\r\n return response.data;\r\n},\r\n};\r\n\r\n\r\nexport default AuthServices;\r\n","import AuthServices from \"./authServices\";\r\n\r\nimport type {\r\n LoginRequest,\r\n ForgotPasswordRequest,\r\n ResetPasswordRequest,\r\n ChangePasswordRequest,\r\n RegisterRequest,\r\n ValidateUserResponse,\r\n GenerateCaptchaResponse,\r\n VerifyCaptchaRequest,\r\n} from \"../types/authTypes\";\r\n\r\ntype ApiError = {\r\n message?: string;\r\n errorMessage?: string;\r\n errors?: string[];\r\n};\r\n\r\nconst getErrorMessage = (\r\n error: unknown,\r\n fallback: string,\r\n): string => {\r\n if (typeof error === \"object\" && error !== null) {\r\n const apiError = error as ApiError;\r\n\r\n /**\r\n * Backend errors array\r\n */\r\n if (apiError.errors?.length) {\r\n const backendError = apiError.errors[0] ?? fallback;\r\n\r\n // Registration errors\r\n const match = backendError.match(\r\n /\"errorMessage\":\"([^\"]+)\"/,\r\n );\r\n\r\n if (match?.[1]) {\r\n return match[1];\r\n }\r\n\r\n // Login / Auth errors\r\n if (backendError.includes(\"INVALIDCREDENTIALS\")) {\r\n return \"Invalid User ID or Password.\";\r\n }\r\n\r\n if (backendError.includes(\"INVALIDOTP\")) {\r\n return \"Invalid OTP.\";\r\n }\r\n\r\n if (backendError.includes(\"USERNOTFOUND\")) {\r\n return \"User not found.\";\r\n }\r\n\r\n if (backendError.includes(\"ACCOUNTLOCKED\")) {\r\n return \"Your account has been locked. Please contact the administrator.\";\r\n }\r\n\r\n return backendError;\r\n }\r\n\r\n /**\r\n * Backend message\r\n */\r\n if (apiError.message) {\r\n switch (apiError.message) {\r\n case \"INVALIDCREDENTIALS\":\r\n return \"Invalid User ID or Password.\";\r\n\r\n case \"INVALIDOTP\":\r\n return \"Invalid OTP.\";\r\n\r\n case \"USERNOTFOUND\":\r\n return \"User not found.\";\r\n\r\n case \"ACCOUNTLOCKED\":\r\n return \"Your account has been locked. Please contact the administrator.\";\r\n\r\n case \"EMAIL_ALREADY_EXISTS\":\r\n return \"This email address is already registered.\";\r\n\r\n case \"MOBILE_ALREADY_EXISTS\":\r\n return \"This mobile number is already registered.\";\r\n\r\n case \"USERNAME_ALREADY_EXISTS\":\r\n return \"This username is already registered.\";\r\n\r\n default:\r\n return apiError.message;\r\n }\r\n }\r\n\r\n if (apiError.errorMessage) {\r\n return apiError.errorMessage;\r\n }\r\n }\r\n\r\n if (error instanceof Error) {\r\n return error.message;\r\n }\r\n\r\n return fallback;\r\n};\r\n\r\nexport const authApi = {\r\n login: async (payload: LoginRequest) => {\r\n try {\r\n const response = await AuthServices.loginApi(payload);\r\n\r\n return response.data;\r\n } catch (error: unknown) {\r\n throw new Error(getErrorMessage(error, \"Invalid User ID or Password\"));\r\n }\r\n },\r\n\r\n\r\nfetchUser: async (): Promise<ValidateUserResponse> => {\r\n const response = await AuthServices.fetchUserApi();\r\n\r\n return response.data;\r\n},\r\n\r\n logout: async () => {\r\n await AuthServices.logoutApi();\r\n },\r\n\r\n clearCookies: async () => {\r\n await AuthServices.clearCookiesApi();\r\n },\r\n\r\n forgotPassword: async (payload: ForgotPasswordRequest) => {\r\n const response = await AuthServices.forgotPasswordApi(payload);\r\n\r\n return response.data;\r\n },\r\n\r\n resetPassword: async (payload: ResetPasswordRequest) => {\r\n const response = await AuthServices.changePasswordApi(payload);\r\n\r\n return response.data;\r\n },\r\n\r\n changePassword: async (payload: ChangePasswordRequest) => {\r\n try {\r\n const response = await AuthServices.changePasswordApi(payload);\r\n\r\n return response.data;\r\n } catch (error: unknown) {\r\n const message = getErrorMessage(error, \"Password Change Failed\");\r\n\r\nconst normalized = message.toUpperCase();\r\n\r\nif (\r\n normalized.includes(\"INVALIDCREDENTIALS\") ||\r\n normalized.includes(\"INVALID PASSWORD\")\r\n) {\r\n throw new Error(\"Current password is incorrect.\");\r\n}\r\n\r\nthrow new Error(message);\r\n }\r\n },\r\n\r\nregister: async (payload: RegisterRequest) => {\r\n try {\r\n const response = await AuthServices.createUserApi(payload);\r\n\r\n return response.data;\r\n } catch (error: unknown) {\r\n const message = getErrorMessage(\r\n error,\r\n \"Registration Failed\",\r\n );\r\n\r\n throw new Error(message);\r\n }\r\n},\r\n\r\n\r\ngenerateCaptcha: async (): Promise<GenerateCaptchaResponse> => {\r\n const response = await AuthServices.generateCaptcha();\r\n return response as unknown as GenerateCaptchaResponse;\r\n},\r\n\r\nverifyCaptcha: async (\r\n payload: VerifyCaptchaRequest,\r\n): Promise<string> => {\r\n return AuthServices.verifyCaptcha(payload);\r\n},\r\n};\r\n","import { createAsyncThunk, createSlice} from \"@reduxjs/toolkit\"; \r\nimport type {\r\n LoginRequest,\r\n ForgotPasswordRequest,\r\n ResetPasswordRequest,\r\n ChangePasswordRequest,\r\n RegisterRequest,\r\n VerifyCaptchaRequest,\r\n GenerateCaptchaResponse,\r\n} from \"./types/authTypes\";\r\nimport type { ErrorData } from \"libs/shared/types/common-types\";\r\nimport { t } from \"i18next\";\r\nimport { encrypt } from \"utils/cryptoUtil\";\r\nimport { authApi } from \"./api/authApi\";\r\n\r\nexport const login = createAsyncThunk(\r\n \"auth/login\",\r\n async (payload: LoginRequest, thunkAPI) => {\r\n try {\r\n /**\r\n * Encrypt password (async)\r\n */\r\n const encryptedPassword = await encrypt(payload?.password);\r\n\r\n const encryptedPayload = {\r\n ...payload,\r\n password: encryptedPassword,\r\n };\r\n\r\n /**\r\n * Login API\r\n */\r\n await authApi.login(encryptedPayload);\r\n\r\n /**\r\n * Validate Session\r\n */\r\n const user = await authApi.fetchUser();\r\n\r\n return user;\r\n } catch (error: unknown) {\r\n return thunkAPI.rejectWithValue(\r\n error instanceof Error\r\n ? error.message\r\n : \"Login Failed\"\r\n );\r\n }\r\n }\r\n);\r\n\r\nexport const forgotPassword = createAsyncThunk(\r\n \"auth/forgotPassword\",\r\n\r\n async (payload: ForgotPasswordRequest, thunkAPI) => {\r\n try {\r\n return await authApi.forgotPassword(payload);\r\n } catch (error) {\r\n return thunkAPI.rejectWithValue(\r\n (error as ErrorData)?.message ?? \"Forgot Password Failed\",\r\n );\r\n }\r\n },\r\n);\r\n\r\nexport const resetPassword = createAsyncThunk(\r\n \"auth/resetPassword\",\r\n\r\n async (payload: ResetPasswordRequest, thunkAPI) => {\r\n try {\r\n return await authApi.resetPassword(payload);\r\n } catch (error) {\r\n return thunkAPI.rejectWithValue(\r\n (error as ErrorData)?.message ?? \"Reset Password Failed\",\r\n );\r\n }\r\n },\r\n);\r\n\r\nexport const changePassword = createAsyncThunk(\r\n \"auth/changePassword\",\r\n\r\n async (payload: ChangePasswordRequest, thunkAPI) => {\r\n try {\r\n return await authApi.changePassword(payload);\r\n } catch (error: unknown) {\r\n return thunkAPI.rejectWithValue(\r\n error instanceof Error\r\n ? error.message\r\n : t(\"strPasswordChangeFailed\")\r\n );\r\n}\r\n },\r\n);\r\n\r\nexport const fetchUser = createAsyncThunk(\r\n \"auth/fetchUser\",\r\n\r\n async (_, thunkAPI) => {\r\n try {\r\n return await authApi.fetchUser();\r\n } catch (error) {\r\n return thunkAPI.rejectWithValue((error as ErrorData)?.message);\r\n }\r\n },\r\n);\r\n\r\nexport const logout = createAsyncThunk(\r\n \"auth/logout\",\r\n\r\n async () => {\r\n await authApi.logout();\r\n\r\n return true;\r\n },\r\n);\r\n\r\nexport const clearCookies = createAsyncThunk(\r\n \"auth/clearCookies\",\r\n async () => {\r\n await authApi.clearCookies();\r\n return true;\r\n },\r\n);\r\nexport const generateCaptcha = createAsyncThunk<\r\n GenerateCaptchaResponse\r\n>(\r\n \"auth/generateCaptcha\",\r\n async () => {\r\n return await authApi.generateCaptcha();\r\n }\r\n);\r\n\r\nexport const verifyCaptcha = createAsyncThunk(\r\n \"auth/verifyCaptcha\",\r\n async (payload: VerifyCaptchaRequest) => {\r\n return await authApi.verifyCaptcha(payload);\r\n },\r\n);\r\n\r\n\r\nexport interface AuthState {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n userInfo: any;\r\n isAuthenticated: boolean;\r\n loading: boolean;\r\n error: string | null;\r\n initialized: boolean\r\n isProfileUpdated: boolean;\r\n}\r\n\r\nconst initialState: AuthState = {\r\n userInfo: null,\r\n isAuthenticated: false,\r\n loading: false,\r\n error: null,\r\n initialized: false,\r\n isProfileUpdated: false,\r\n};\r\nexport const registerUser = createAsyncThunk(\r\n \"auth/registerUser\",\r\n\r\n async (payload: RegisterRequest, thunkAPI) => {\r\n try {\r\n return await authApi.register(payload);\r\n } catch (error) {\r\n return thunkAPI.rejectWithValue((error as ErrorData)?.message ?? \"Registration Failed\");\r\n }\r\n },\r\n);\r\nconst authSlice = createSlice({\r\n name: \"auth\",\r\n initialState,\r\n reducers: {\r\n otpLoginSuccess: (state, action) => {\r\n state.userInfo = action.payload;\r\n state.isAuthenticated = true;\r\n state.error = null;\r\n },\r\n\r\n clearAuth: (state) => {\r\n state.userInfo = null;\r\n state.isAuthenticated = false;\r\n state.loading = false;\r\n state.error = null;\r\n },\r\n\r\n clearError: (state) => {\r\n state.error = null;\r\n },\r\n\r\n updateUserInfo: (state, action: { payload: Partial<AuthState[\"userInfo\"]> }) => {\r\n if (!state.userInfo) {\r\n return;\r\n }\r\n state.userInfo = {\r\n ...state.userInfo,\r\n ...action.payload,\r\n };\r\n },\r\n },\r\n\r\n extraReducers: (builder) => {\r\n builder\r\n\r\n /**\r\n * LOGIN\r\n */\r\n .addCase(login.pending, (state) => {\r\n state.loading = true;\r\n state.error = null;\r\n })\r\n\r\n .addCase(login.fulfilled, (state, action) => {\r\n state.loading = false;\r\n state.userInfo = action.payload;\r\n state.isAuthenticated = true;\r\n state.error = null;\r\n })\r\n\r\n .addCase(login.rejected, (state, action) => {\r\n state.loading = false;\r\n state.isAuthenticated = false;\r\n state.error = action.payload as string;\r\n })\r\n\r\n /**\r\n * FORGOT PASSWORD\r\n */\r\n .addCase(forgotPassword.pending, (state) => {\r\n state.loading = true;\r\n state.error = null;\r\n })\r\n\r\n .addCase(forgotPassword.fulfilled, (state) => {\r\n state.loading = false;\r\n })\r\n\r\n .addCase(forgotPassword.rejected, (state, action) => {\r\n state.loading = false;\r\n state.error = action.payload as string;\r\n })\r\n\r\n /**\r\n * RESET PASSWORD\r\n */\r\n .addCase(resetPassword.pending, (state) => {\r\n state.loading = true;\r\n state.error = null;\r\n })\r\n\r\n .addCase(resetPassword.fulfilled, (state) => {\r\n state.loading = false;\r\n })\r\n\r\n .addCase(resetPassword.rejected, (state, action) => {\r\n state.loading = false;\r\n state.error = action.payload as string;\r\n })\r\n\r\n /**\r\n * CHANGE PASSWORD\r\n */\r\n .addCase(changePassword.pending, (state) => {\r\n state.loading = true;\r\n state.error = null;\r\n })\r\n\r\n .addCase(changePassword.fulfilled, (state) => {\r\n state.loading = false;\r\n })\r\n\r\n .addCase(changePassword.rejected, (state, action) => {\r\n state.loading = false;\r\n state.error = action.payload as string;\r\n })\r\n/**\r\n * REGISTER\r\n */\r\n.addCase(registerUser.pending, (state) => {\r\n state.loading = true;\r\n state.error = null;\r\n})\r\n\r\n.addCase(registerUser.fulfilled, (state) => {\r\n state.loading = false;\r\n state.error = null;\r\n})\r\n\r\n.addCase(registerUser.rejected, (state, action) => {\r\n state.loading = false;\r\n state.error = action.payload as string;\r\n})\r\n\r\n.addCase(fetchUser.pending, () => {\r\n // This API is only checking session.\r\n})\r\n\r\n.addCase(fetchUser.fulfilled, (state, action) => {\r\n state.initialized = true;\r\n\r\n const user =\r\n action.payload?.data ??\r\n action.payload;\r\n\r\n if (user?.isAuthenticated) {\r\n state.userInfo = user;\r\n state.isAuthenticated = true;\r\n } else {\r\n state.userInfo = null;\r\n state.isAuthenticated = false;\r\n }\r\n})\r\n\r\n.addCase(fetchUser.rejected, (state) => {\r\n state.initialized = true;\r\n state.userInfo = null;\r\n state.isAuthenticated = false;\r\n})\r\n /**\r\n * LOGOUT\r\n */\r\n .addCase(logout.fulfilled, (state) => {\r\n state.userInfo = null;\r\n state.isAuthenticated = false;\r\n state.loading = false;\r\n state.error = null;\r\n });\r\n },\r\n});\r\n\r\nexport const { clearAuth, clearError, otpLoginSuccess,updateUserInfo } =\r\n authSlice.actions;\r\nexport default authSlice.reducer;","import { createSlice, type PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nexport interface SnackbarState {\r\n open: boolean;\r\n message: string;\r\n type: SnackbarEnum;\r\n duration: number;\r\n values?: Record<string, unknown>;\r\n}\r\n\r\nconst initialState: SnackbarState = {\r\n open: false,\r\n message: \"\",\r\n type: SnackbarEnum.SUCCESS,\r\n duration: 3000,\r\n values: {},\r\n};\r\n\r\nexport interface SnackbarPayload {\r\n message: string;\r\n type?: SnackbarEnum;\r\n duration?: number;\r\n values?: Record<string, unknown>;\r\n}\r\n\r\nconst snackbarSlice = createSlice({\r\n name: \"snackbar\",\r\n\r\n initialState,\r\n\r\n reducers: {\r\n openSnackbar: (\r\n state,\r\n action: PayloadAction<SnackbarPayload>\r\n ) => {\r\n state.open = true;\r\n state.message = action.payload.message;\r\n state.type = action.payload.type ?? SnackbarEnum.SUCCESS;\r\n state.duration = action.payload.duration ?? 3000;\r\n state.values = action.payload.values ?? {};\r\n },\r\n\r\n closeSnackbar: (state) => {\r\n state.open = false;\r\n state.message = \"\";\r\n state.values = {};\r\n },\r\n },\r\n});\r\n\r\nexport const { openSnackbar, closeSnackbar } = snackbarSlice.actions;\r\n\r\nexport default snackbarSlice.reducer;","import type { Reducer } from \"@reduxjs/toolkit\";\r\nimport { appDataSlice } from \"./appDataSlice\";\r\nimport confirmationModalSlice from \"./confirmationModalSlice\";\r\nimport authReducer from \"./authSlice\";\r\nimport snackbarSlice from \"./snackbarSlice\";\r\nexport const staticReducers = {\r\n appData: appDataSlice.reducer,\r\n confirmationModalData: confirmationModalSlice,\r\n snackbarData: snackbarSlice,\r\n auth: authReducer,\r\n};\r\n\r\nexport const asyncReducers: Record<string, Reducer> = {};\r\n\r\n","import { configureStore, combineReducers } from \"@reduxjs/toolkit\";\r\nimport type { Reducer } from \"@reduxjs/toolkit\";\r\nimport { staticReducers, asyncReducers } from \"./rootReducer\";\r\nimport { commonActions } from \"libs/core/constants/commonConstants\";\r\nimport type { FieldObject } from \"../types/common-types\";\r\n\r\nconst createRootReducer = () =>\r\n combineReducers({\r\n ...staticReducers,\r\n ...asyncReducers,\r\n });\r\n\r\nconst store = configureStore({\r\n reducer: createRootReducer(),\r\n middleware: (getDefaultMiddleware) =>\r\n getDefaultMiddleware({\r\n serializableCheck: {\r\n ignoredActionPaths: ['payload.callback'],\r\n },\r\n }),\r\n});\r\n\r\nexport type RootState = ReturnType<typeof store.getState> & FieldObject<unknown>;\r\nexport type AppDispatch = typeof store.dispatch;\r\n\r\nconst addDynamicSlice = (sliceName: string, slice: { reducer: Reducer }) => {\r\n if (!asyncReducers[sliceName]) {\r\n asyncReducers[sliceName] = slice.reducer;\r\n store.replaceReducer(createRootReducer());\r\n }\r\n};\r\n\r\nconst removeDynamicSlice = (sliceName: string) => {\r\n if (asyncReducers[sliceName]) {\r\n store.dispatch({ type: `${sliceName}/${commonActions.RESETDTO}` });\r\n delete asyncReducers[sliceName];\r\n store.replaceReducer(createRootReducer());\r\n }\r\n};\r\n\r\nconst getUpdatedState = () => store.getState();\r\n\r\nexport { store, addDynamicSlice, removeDynamicSlice, getUpdatedState };","import type { Reducer } from \"@reduxjs/toolkit\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { addDynamicSlice, removeDynamicSlice } from \"../../shared/store/store\";\r\n\r\n function useInjectSlice(name: string, slice: {reducer: Reducer }, isRemoveManually: boolean = false) {\r\n const [isReady, setIsReady] = useState(false);\r\n useEffect(() => {\r\n addDynamicSlice(name, slice);\r\n setIsReady(true);\r\n\r\n return () => {\r\n if(!isRemoveManually)\r\n removeDynamicSlice(name);\r\n };\r\n }, [name, slice]);\r\n\r\n return isReady\r\n}\r\nexport default useInjectSlice;","import { useMemo } from \"react\";\r\nimport { constructParentSliceName } from \"../utils/commonFunctions\";\r\n\r\n function useParentSliceName(sliceName: string, parentSliceName?: string): string {\r\n return useMemo(() => constructParentSliceName(sliceName, parentSliceName), [sliceName, parentSliceName]);\r\n}\r\nexport default useParentSliceName;","import { useDispatch } from \"react-redux\";\r\nimport type { AppDispatch } from \"store/store\";\r\n\r\nexport const useAppDispatch = () => useDispatch<AppDispatch>();","import type { ColorEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nexport type ColorScheme = ColorEnum;\r\n\r\nexport const colorSchemes = {\r\n purple: {\r\n primary: \"#142859\",\r\n },\r\n\r\n blue: {\r\n primary: \"#0B5ED7\",\r\n },\r\n\r\n green: {\r\n primary: \"#2E7D32\",\r\n },\r\n};\r\n","export const typographyTokens = {\r\n fontFamily: \"Nunito Sans, sans-serif\",\r\n\r\n fontSize: {\r\n xs: \"12px\",\r\n sm: \"14px\",\r\n md: \"16px\",\r\n lg: \"20px\",\r\n xl: \"24px\",\r\n \"2xl\": \"32px\",\r\n \"3xl\": \"40px\",\r\n },\r\n\r\n variants: {\r\n display: {\r\n fontSize: \"40px\",\r\n fontWeight: 700,\r\n lineHeight: 1.2,\r\n },\r\n\r\n heading: {\r\n fontSize: \"32px\",\r\n fontWeight: 600,\r\n lineHeight: 1.3,\r\n },\r\n\r\n subheading: {\r\n fontSize: \"24px\",\r\n fontWeight: 600,\r\n },\r\n\r\n body: {\r\n fontSize: \"16px\",\r\n fontWeight: 400,\r\n },\r\n\r\n label: {\r\n fontSize: \"14px\",\r\n fontWeight: 650,\r\n },\r\n\r\n captionCustom: {\r\n fontSize: \"12px\",\r\n fontWeight: 400,\r\n },\r\n },\r\n};","\r\n\r\n/* ======================================================\r\n * Design Tokens (Single Source of Truth)\r\n * ====================================================== */\r\n\r\nconst commonBorderRadius = 8;\r\n\r\n/* ======================================================\r\n * Component Overrides\r\n * ====================================================== */\r\n\r\nexport const muiComponentOverrides: any = {\r\n /* ================= GRID ================= */\r\n MuiGrid: {\r\n defaultProps: {\r\n spacing: 8, // layout rhythm decision\r\n // size: gridResponsiveSize,\r\n flexDirection: 'row'\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n // Default styling goes here\r\n }\r\n }\r\n },\r\n\r\n /* ================= TYPOGRAPHY ================= */\r\n MuiTypography: {\r\n defaultProps: {\r\n // Write Default props here\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n wordBreak: 'break-word', // prevents overflow issues\r\n },\r\n },\r\n },\r\n\r\n /* ================= CHECKBOX ================= */\r\n MuiCheckbox: {\r\n defaultProps: {\r\n size: 'small', // density decision\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n padding: 6, // compact spacing\r\n },\r\n },\r\n },\r\n\r\n /* ================= BUTTON ================= */\r\n MuiButton: {\r\n defaultProps: {\r\n disableElevation: true, // visual consistency\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n textTransform: 'none',\r\n borderRadius: commonBorderRadius,\r\n },\r\n },\r\n },\r\n\r\n /* ================= FAB ================= */\r\n MuiFab: {\r\n defaultProps: {\r\n // Write Default props here\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n boxShadow: 'none',\r\n },\r\n },\r\n },\r\n\r\n /* ================= ICON BUTTON ================= */\r\n MuiIconButton: {\r\n defaultProps: {\r\n // Write Default props here\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n borderRadius: commonBorderRadius,\r\n },\r\n },\r\n },\r\n\r\n /* ================= STACK ================= */\r\n MuiStack: {\r\n defaultProps: {\r\n spacing: 2, // layout consistency\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n // Default styling goes here\r\n }\r\n }\r\n },\r\n\r\n /* ================= TEXT FIELD ================= */\r\n MuiTextField: {\r\n defaultProps: {\r\n size: 'small',\r\n fullWidth: true,\r\n },\r\n\r\n styleOverrides: {\r\n root: {\r\n // Default styling goes here\r\n }\r\n }\r\n },\r\n};","import { createTheme, responsiveFontSizes } from \"@mui/material/styles\";\r\nimport { colorSchemes, type ColorScheme } from \"./color\";\r\nimport { typographyTokens } from \"./typography\";\r\nimport { muiComponentOverrides } from \"./muiOverrides\";\r\nimport { ThemeEnum } from \"libs/shared/enums/common-enums\";\r\n\r\nexport type ThemeMode = ThemeEnum;\r\n\r\nconst SUCCESS = \"#2E7D32\";\r\nconst ERROR = \"#D32F2F\";\r\nconst WARNING = \"#ED6C02\";\r\nconst INFO = \"#0288D1\";\r\n\r\nconst lightColors = {\r\n background: \"#F5F6FA\",\r\n paper: \"#FFFFFF\",\r\n textPrimary: \"#142859\",\r\n textSecondary: \"#64748B\",\r\n menuTextPrimary: \"#FFFFFF\",\r\n menuTextSecondary: \"#D8E1F3\",\r\n divider: \"#DCE2EF\",\r\n border: \"#E3E8EA\",\r\n cardBorder: \"#E5E7EB\",\r\n menuBg: \"#4163A5\",\r\n footerBg: \"#142859\",\r\n profileCard: \"#061C49\",\r\n placeholder: \"#94A3B8\",\r\n disabled: \"#EEF2F7\",\r\n embleme: \"#142859\",\r\n datagrid: {\r\n heading: \"#D6E4FF\",\r\n filter: \"#EEF5FF\",\r\n rowBg: \"#FFFFFF\",\r\n rowHover: \"#F8FBFF\",\r\n rowStroke: \"#E1E7F0\",\r\n },\r\n checkbox: {\r\n label: \"#2C1A4D\",\r\n border: \"#D1C4E9\",\r\n checked: \"#6200EE\",\r\n hoverBackground: \"rgba(98,0,238,0.05)\",\r\n },\r\n};\r\n\r\nconst darkColors = {\r\n background: \"#0F172A\",\r\n paper: \"#1E293B\",\r\n textPrimary: \"#F8FAFC\",\r\n textSecondary: \"#CBD5E1\",\r\n menuTextPrimary: \"#FFFFFF\",\r\n menuTextSecondary: \"#94A3B8\",\r\n divider: \"#334155\",\r\n border: \"#475569\",\r\n cardBorder: \"#334155\",\r\n menuBg: \"#13294B\",\r\n footerBg: \"#081223\",\r\n profileCard: \"#1B263B\",\r\n placeholder: \"#64748B\",\r\n disabled: \"#334155\",\r\n embleme: \"#ffd700\",\r\n datagrid: {\r\n heading: \"#23395D\",\r\n filter: \"#1B2B46\",\r\n rowBg: \"#162032\",\r\n rowHover: \"#1E293B\",\r\n rowStroke: \"#334155\",\r\n },\r\n\r\n checkbox: {\r\n label: \"#F8FAFC\",\r\n border: \"#64748B\",\r\n checked: \"#60A5FA\",\r\n hoverBackground: \"rgba(96,165,250,0.15)\",\r\n },\r\n};\r\n\r\nexport const getAppTheme = (\r\n mode: ThemeMode,\r\n fontSize: number,\r\n scheme: ColorScheme\r\n) => {\r\n\r\n const primaryMain = colorSchemes[scheme].primary;\r\n\r\n const colors =\r\n mode === ThemeEnum.DARK\r\n ? darkColors\r\n : lightColors;\r\n\r\n const theme = createTheme({\r\n\r\n palette: {\r\n mode,\r\n\r\n primary: {\r\n main: primaryMain,\r\n },\r\n\r\n secondary: {\r\n main: \"#5B7FFF\",\r\n },\r\n\r\n success: {\r\n main: SUCCESS,\r\n },\r\n\r\n error: {\r\n main: ERROR,\r\n },\r\n\r\n warning: {\r\n main: WARNING,\r\n },\r\n\r\n info: {\r\n main: INFO,\r\n },\r\n\r\n background: {\r\n default: colors.background,\r\n paper: colors.paper,\r\n },\r\n\r\n text: {\r\n primary: colors.textPrimary,\r\n secondary: colors.textSecondary,\r\n },\r\n divider: colors.divider,\r\n borderColor: colors.border,\r\n cardborder: colors.cardBorder,\r\n footerbackground: colors.footerBg,\r\n menuBg: colors.menuBg,\r\n profileCard: colors.profileCard,\r\n placeholdertext: colors.placeholder,\r\n menuText: {\r\n primary: colors.menuTextPrimary,\r\n secondary: colors.menuTextSecondary,\r\n },\r\n disabled: {\r\n main: colors.disabled,\r\n },\r\n\r\n checkbox: {\r\n label: colors.checkbox.label,\r\n border: colors.checkbox.border,\r\n checked: colors.checkbox.checked,\r\n hoverBackground: colors.checkbox.hoverBackground,\r\n },\r\n\r\n datagrid: {\r\n heading: colors.datagrid.heading,\r\n filter: colors.datagrid.filter,\r\n rowbg: colors.datagrid.rowBg,\r\n rowstroke: colors.datagrid.rowStroke,\r\n },\r\n bgGreen: SUCCESS,\r\n emblemColor : colors.embleme\r\n },\r\n\r\n typography: {\r\n fontFamily: typographyTokens.fontFamily,\r\n ...typographyTokens.variants,\r\n fontSize,\r\n },\r\n\r\n tokens: {\r\n typography: typographyTokens,\r\n },\r\n\r\n components: muiComponentOverrides,\r\n });\r\n\r\n return responsiveFontSizes(theme);\r\n};","import React, { useEffect, useState } from \"react\";\r\nimport { ThemeProvider, CssBaseline } from \"@mui/material\";\r\nimport { getAppTheme, type ThemeMode } from \"../../shared/theme/theme\";\r\nimport type { ColorScheme } from \"../../shared/theme/color\";\r\nimport { AppThemeContext } from \"../context/AppThemeContext\";\r\nimport { ColorEnum, DeviceTypeEnum, ThemeEnum } from \"libs/shared/enums/common-enums\";\r\nimport useDevice from \"hooks/useDevice\";\r\n\r\n const AppThemeProvider = ({ children }: { children: React.ReactNode }) => {\r\n const { LIGHT, DARK } = ThemeEnum;\r\n const [mode, setMode] = React.useState<ThemeMode>(LIGHT);\r\n const [scheme, setScheme] = React.useState<ColorScheme>(ColorEnum.PURPLE);\r\n const [fontSize, setFontSize] = React.useState(14);\r\n\r\n const { device } = useDevice()\r\n // need to change\r\n const [sidebarOpen, setSidebarOpen] = React.useState(true);\r\n const [currentDevice, setCurrentDevice] = React.useState<DeviceTypeEnum>(device);\r\n const { isTablet } = useDevice();\r\n const [mobileSidebarOpen, setMobileSidebarOpen] = useState(false);\r\n\r\n const toggleMobileSidebar = () =>\r\n setMobileSidebarOpen(prev => !prev);\r\n\r\n const closeMobileSidebar = () =>\r\n setMobileSidebarOpen(false);\r\n\r\n const theme = React.useMemo(\r\n () => getAppTheme(mode, fontSize, scheme),\r\n [mode, fontSize, scheme]\r\n );\r\n const toggleMode = React.useCallback(() => {\r\n setMode(prev => (prev === LIGHT ? DARK : LIGHT));\r\n }, []);\r\n\r\n const increaseFont = React.useCallback(() => {\r\n setFontSize(p => Math.min(p + 1, 22));\r\n }, []);\r\n\r\n const decreaseFont = React.useCallback(() => {\r\n setFontSize(p => Math.max(p - 1, 12));\r\n }, []);\r\n\r\n const toggleSidebar = React.useCallback((val?: boolean) => setSidebarOpen((v) => val ?? !v), [])\r\n\r\n const resetTheme = React.useCallback(() => {\r\n setMode(LIGHT);\r\n setScheme(ColorEnum.PURPLE);\r\n setFontSize(14);\r\n }, []);\r\n\r\n const handleCurrentDevice = (deviceType: DeviceTypeEnum) => setCurrentDevice(deviceType) \r\n\r\n useEffect(() => setSidebarOpen(!isTablet), [isTablet]);\r\n\r\n const value = React.useMemo(\r\n () => ({\r\n mode,\r\n scheme,\r\n fontSize,\r\n setScheme,\r\n toggleMode,\r\n increaseFont,\r\n decreaseFont,\r\n resetTheme,\r\n toggleSidebar,\r\n sidebarOpen,\r\n toggleMobileSidebar,\r\n closeMobileSidebar,\r\n mobileSidebarOpen,\r\n currentDevice,\r\n handleCurrentDevice\r\n }),\r\n [mode, scheme, fontSize, toggleMode, increaseFont, decreaseFont, resetTheme, toggleSidebar, sidebarOpen]\r\n );\r\n\r\n return (\r\n <AppThemeContext.Provider value={value}>\r\n <ThemeProvider theme={theme}>\r\n <CssBaseline />\r\n {children}\r\n </ThemeProvider>\r\n </AppThemeContext.Provider>\r\n );\r\n};\r\nexport default AppThemeProvider","import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","const rnds8 = new Uint8Array(16);\nexport default function rng() {\n return crypto.getRandomValues(rnds8);\n}\n","import rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (!buf && !options && crypto.randomUUID) {\n return crypto.randomUUID();\n }\n return _v4(options, buf, offset);\n}\nfunction _v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { GridRowData, MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport { v4 } from \"uuid\";\r\n\r\ntype AddGridItemResult = {\r\n updatedData: GridRowData[] | null;\r\n isDuplicate: boolean;\r\n};\r\ntype AddGridItemParams = {\r\n selectedMaster?: MasterResponseDataType;\r\n currentData: GridRowData[];\r\n typeKey: string;\r\n numberKey?: string;\r\n numberValue?: unknown;\r\n};\r\nexport const getUpdatedGridData = ({\r\n selectedMaster,\r\n currentData,\r\n typeKey, \r\n numberKey,\r\n numberValue,\r\n}: AddGridItemParams): AddGridItemResult => {\r\n if (!selectedMaster) {\r\n return {\r\n updatedData: null,\r\n isDuplicate: false,\r\n };\r\n }\r\n\r\nconst codeKey = `${typeKey}Cd`;\r\nconst isDuplicate = currentData.some(\r\n (item) => String(item[codeKey]) === String(selectedMaster[MASTER_DATA_KEYS.CODE]),\r\n);\r\n\r\nif (isDuplicate) {\r\n return {\r\n updatedData: null,\r\n isDuplicate: true,\r\n };\r\n}\r\n\r\n const item: GridRowData = {\r\n id: v4(),\r\n [`${typeKey}Cd`]: selectedMaster[MASTER_DATA_KEYS.CODE],\r\n [typeKey]: selectedMaster[MASTER_DATA_KEYS.VALUE],\r\n };\r\n\r\n if (numberKey) {\r\n item[numberKey] = numberValue;\r\n }\r\n\r\n return {\r\n updatedData: [...currentData, item],\r\n isDuplicate: false,\r\n };\r\n};","import type { DTO } from \"libs/shared/types/common-types\";\r\nimport sharedFormActions from \"libs/core/utils/sharedFormActions\";\r\nimport { commonActions } from \"constants/commonConstants\";\r\n\r\nexport const createDTOActions = <T extends DTO>({ dto, dtoArg = [], customActions = {} }: { dto: () => T; dtoArg?: []; customActions?: Record<string, unknown> }) => ({\r\n ...sharedFormActions,\r\n\r\n [commonActions.RESETDTO]: () => dto(...dtoArg),\r\n\r\n ...customActions,\r\n});\r\n","import type { GridColDef } from \"@mui/x-data-grid\";\r\nimport type { TFunction } from \"i18next\";\r\nimport { concatenateFullName, getConcatAddress } from \"./commonFunctions\";\r\nimport { AddressTypeEnum } from \"libs/shared/enums/common-enums\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { CommonAddressFields } from \"constants/commonConstants\";\r\nimport type { GridRowData } from \"libs/shared/types/common-types\";\r\n\r\nconst CENTER_COLUMN = {\r\n headerAlign: \"center\",\r\n align: \"center\",\r\n} as const;\r\n\r\nexport const getGridFullNameColumn = (t: TFunction, customHeader: string = \"strPersonName\"): GridColDef => {\r\n return {\r\n field: \"fullName\",\r\n headerName: t(customHeader),\r\n ...CENTER_COLUMN,\r\n valueGetter: (_value, row) =>\r\n row.fullName ??\r\n concatenateFullName({\r\n firstName: row.firstName,\r\n middleName: row.middleName,\r\n lastName: row.lastName,\r\n }),\r\n };\r\n};\r\n\r\nexport const getGridAddressColumn = (\r\n t: TFunction,\r\n targetAddressType: AddressTypeEnum = AddressTypeEnum.PRESENT,\r\n addressListKey: string = DTONames.ADDRESS_LIST,\r\n headerName: string = \"strAddress\",\r\n): GridColDef => {\r\n return {\r\n field: DTONames.ADDRESS_LIST,\r\n headerName: t(headerName),\r\n ...CENTER_COLUMN,\r\n valueGetter: (_value, row) => {\r\n const addressList = row?.[addressListKey];\r\n\r\n if (!Array.isArray(addressList)) return \"\";\r\n\r\n const address = addressList.find((addr: GridRowData) => addr?.[CommonAddressFields.addressType] === targetAddressType);\r\n\r\n if (!address) return \"\";\r\n\r\n return getConcatAddress(address);\r\n },\r\n };\r\n};\r\n","import { Box, useTheme } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nexport default function AccordionGroup({\r\n title,\r\n children,\r\n}: Readonly<{\r\n title: string;\r\n children: React.ReactNode;\r\n}>) {\r\n const theme = useTheme()\r\n\r\n const {t} = useTranslation()\r\n return (\r\n <Box sx={{ mb: 3 }}> \r\n <Box\r\n sx={{\r\n display: \"inline-block\",\r\n backgroundColor: theme.palette.datagrid.heading,\r\n color: theme.palette.text.primary,\r\n px: 2,\r\n py: 0.5,\r\n borderRadius: \"6px 6px 0 0\",\r\n fontSize: 13,\r\n fontWeight: 500,\r\n }}\r\n >\r\n {t(title)}\r\n </Box>\r\n\r\n {children}\r\n </Box>\r\n );\r\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.mjs\";\nimport { getTransitionStyles } from \"../transitions/utils.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n flexShrink: 0,\n ...getTransitionStyles(theme, 'fill', {\n duration: (theme.vars ?? theme).transitions?.duration?.shorter\n }),\n variants: [{\n props: props => !props.hasSvgAsChild,\n style: {\n // the <svg> will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: 'currentColor'\n }\n }, {\n props: {\n fontSize: 'inherit'\n },\n style: {\n fontSize: 'inherit'\n }\n }, {\n props: {\n fontSize: 'small'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n }\n }, {\n props: {\n fontSize: 'medium'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n }\n }, {\n props: {\n fontSize: 'large'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n }\n },\n // TODO v5 deprecate color prop, v6 remove for sx\n ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars ?? theme).palette?.[color]?.main\n }\n })), {\n props: {\n color: 'action'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.active\n }\n }, {\n props: {\n color: 'disabled'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.disabled\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: undefined\n }\n }]\n})));\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24',\n ...other\n } = props;\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = {\n ...props,\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n };\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, {\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref,\n ...more,\n ...other,\n ...(hasSvgAsChild && children.props),\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"./SvgIcon.mjs\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');","import React from \"react\";\r\nimport {\r\n Accordion,\r\n AccordionSummary,\r\n AccordionDetails, \r\n Box, \r\n useTheme,\r\n Stack,\r\n} from \"@mui/material\";\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"; \r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\ninterface AppFormSectionProps { \r\n accordionTitle: React.ReactNode;\r\n children?: React.ReactNode; \r\n hideAccordionSummary?: boolean;\r\n expanded?: boolean;\r\n onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;\r\n sectionId?:number;\r\n footer?:React.ReactNode\r\n}\r\n\r\nconst AccordionItem: React.FC<AppFormSectionProps> = ({\r\n accordionTitle,\r\n hideAccordionSummary,\r\n children, \r\n expanded,\r\n onChange,\r\n footer\r\n}) => {\r\n \r\n \r\nconst theme = useTheme(); \r\n\r\n return (\r\n <Box sx={{ mb: 2 }}>\r\n <Accordion\r\n expanded={expanded}\r\n onChange={onChange}\r\n disableGutters\r\n elevation={0}\r\n sx={{\r\n border: `1px solid ${theme.palette.divider}`,\r\n borderRadius: 2,\r\n \"&:before\": { display: \"none\" },\r\n }}\r\n >\r\n {!hideAccordionSummary && <AccordionSummary\r\n expandIcon={<ExpandMoreIcon />}\r\n sx={{\r\n minHeight: 48,\r\n flexDirection: \"row-reverse\",\r\n\r\n \"& .MuiAccordionSummary-expandIconWrapper\": {\r\n marginRight: 1,\r\n width: 32,\r\n height: 32,\r\n borderRadius: \"50%\",\r\n border: `1px solid ${theme.palette.divider}`,\r\n backgroundColor: theme.palette.background.default,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n },\r\n\r\n \"& .MuiAccordionSummary-content\": {\r\n marginLeft: 1,\r\n },\r\n }}\r\n >\r\n <Typography2 text={accordionTitle} fontWeight={600} />\r\n </AccordionSummary>}\r\n\r\n <AccordionDetails sx={{ p: 3, pt: 2 , mb:2 }}>\r\n {children}\r\n\r\n {footer && (\r\n <Stack sx={{mt:2, justifyContent:\"flex-end\"}} direction=\"row\" spacing={2} >\r\n {footer}\r\n </Stack>\r\n )}\r\n </AccordionDetails>\r\n </Accordion>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default AccordionItem;","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"\n}), 'ArrowBack');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"\n}), 'ArrowForward');","import ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\r\nimport ArrowForwardIcon from \"@mui/icons-material/ArrowForward\";\r\nimport { Button} from \"@mui/material\";\r\nimport { useTheme, type Theme } from \"@mui/system\";\r\nimport type { AppButtonProps, VariantType } from \"libs/shared/types/common-types\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\n\r\n\r\nexport default function AppButton({\r\n label,\r\n children,\r\n variantType,\r\n leftArrow,\r\n rightArrow,\r\n bgColor,\r\n textColor,\r\n disableHoverEffect,\r\n variant,\r\n isMandatory = false,\r\n sx,\r\n ...rest\r\n}: Readonly<AppButtonProps>) {\r\n const theme = useTheme();\r\n const resolvedType: VariantType =\r\n variantType ??\r\n (variant === \"outlined\"\r\n ? \"outlined\"\r\n : variant === \"contained\"\r\n ? \"primary\"\r\n : \"secondary\");\r\n\r\n const variantStyles: Record<\r\n string,\r\n (theme: Theme) => React.CSSProperties\r\n > = {\r\n primary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: theme.palette.menuText.primary,\r\n\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.dark,\r\n },\r\n }),\r\n\r\n secondary: (theme) => ({\r\n backgroundColor: theme.palette.text.primary,\r\n color: variantType === \"outlined\" ? theme.palette.text.primary : theme.palette.menuText.secondary,\r\n border: 1.2,\r\n borderColor: theme.palette.text.primary,\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n\r\n outlined: (theme) => ({\r\n backgroundColor: theme.palette.action.selected,\r\n color: theme.palette.text.primary ,\r\n border: 1.2,\r\n borderColor: theme.palette.disabled.main,\r\n\r\n \"&:hover\": {\r\n boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\"\r\n },\r\n }),\r\n };\r\n\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Button\r\n disableElevation\r\n variant={variant}\r\n {...rest}\r\n startIcon={leftArrow ? <ArrowBackIcon /> : undefined}\r\n endIcon={rightArrow ? <ArrowForwardIcon /> : undefined}\r\n sx={{\r\n height: '2.4rem',\r\n borderRadius: \"44px\",\r\n padding: \"12px 32px\",\r\n textTransform: \"none\",\r\n fontWeight: 600,\r\n gap: \"4px\",\r\n minWidth: \"auto\",\r\n borderWidth: \"1.2px\",\r\n ...(variantStyles?.[resolvedType]?.(theme) ?? {}),\r\n ...sx,\r\n\r\n ...(bgColor && {\r\n backgroundColor: bgColor,\r\n ...(disableHoverEffect && {\r\n \"&:hover\": { boxShadow: \"2px 2px 4px rgba(0, 0, 0, 0.1)\" },\r\n }),\r\n }),\r\n\r\n ...(textColor && { color: textColor }),\r\n }}\r\n >\r\n {typeof label === \"string\" ? t(label) : children}\r\n <Typography2 text=\"\" isRequired={isMandatory}/>\r\n </Button>\r\n );\r\n}"," \r\nimport { Box, Stack, type ButtonProps } from \"@mui/material\"; \r\nimport AppButton from \"./AppButton\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface ActionButton {\r\n label: string;\r\n onClick?: () => void;\r\n props?: ButtonProps;\r\n}\r\n\r\ninterface Props {\r\n actions: ActionButton[];\r\n sticky?: boolean;\r\n}\r\n\r\nexport default function FooterButton({ actions, sticky }: Readonly<Props>) {\r\n const {t} = useTranslation();\r\n return (\r\n <Box\r\n sx={() => ({\r\n mt: 3,\r\n pt: 2,\r\n // borderTop: `1px solid ${theme.palette.divider}`,\r\n position: sticky ? \"sticky\" : \"static\",\r\n bottom: 0, \r\n zIndex: 10,\r\n display: \"flex\",\r\n justifyContent: \"flex-end\", \r\n })}\r\n >\r\n <Stack direction={{ xs: \"column\", sm: \"row\" }} spacing={1}>\r\n {actions.map((btn, i) => (\r\n <AppButton key={i} {...btn.props} onClick={btn.onClick}>\r\n {t(btn.label)}\r\n </AppButton>\r\n ))}\r\n </Stack>\r\n </Box>\r\n );\r\n}","function TestButton() {\r\n return(\r\n\r\n <button>click me </button>\r\n )\r\n}\r\n\r\nexport default TestButton","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n */\nexport function formatErrorMessage(code, ...args) {\n const url = new URL('https://mui.com/x/production-error');\n url.searchParams.set('code', code.toString());\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `MUI X error #${code}; visit ${url} for the full message.`;\n}","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if(\"string\"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if(\"string\"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};return function(t,o,n){var r=o.prototype,i=r.format;n.en.formats=e,r.format=function(t){void 0===t&&(t=\"YYYY-MM-DDTHH:mm:ssZ\");var o=this.$locale().formats,n=function(t,o){return t.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return i.call(this,n)}}}));","!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isBetween=i()}(this,(function(){\"use strict\";return function(e,i,t){i.prototype.isBetween=function(e,i,s,f){var n=t(e),o=t(i),r=\"(\"===(f=f||\"()\")[0],u=\")\"===f[1];return(r?this.isAfter(n,s):!this.isBefore(n,s))&&(u?this.isBefore(o,s):!this.isAfter(o,s))||(r?this.isBefore(n,s):!this.isAfter(n,s))&&(u?this.isAfter(o,s):!this.isBefore(o,s))}}}));","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_advancedFormat=t()}(this,(function(){\"use strict\";return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||\"YYYY-MM-DDTHH:mm:ssZ\").replace(/\\[([^\\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case\"Q\":return Math.ceil((t.$M+1)/3);case\"Do\":return r.ordinal(t.$D);case\"gggg\":return t.weekYear();case\"GGGG\":return t.isoWeekYear();case\"wo\":return r.ordinal(t.week(),\"W\");case\"w\":case\"ww\":return s.s(t.week(),\"w\"===e?1:2,\"0\");case\"W\":case\"WW\":return s.s(t.isoWeek(),\"W\"===e?1:2,\"0\");case\"k\":case\"kk\":return s.s(String(0===t.$H?24:t.$H),\"k\"===e?1:2,\"0\");case\"X\":return Math.floor(t.$d.getTime()/1e3);case\"x\":return t.$d.getTime();case\"z\":return\"[\"+t.offsetName()+\"]\";case\"zzz\":return\"[\"+t.offsetName(\"long\")+\"]\";default:return e}}));return n.bind(this)(a)}}}));","const warnedOnceCache = new Set();\n\n/**\n * Logs a message to the console on development mode. The warning will only be logged once.\n *\n * The message is the log's cache key. Two identical messages will only be logged once.\n *\n * This function is a no-op in production.\n *\n * @param message the message to log\n * @param gravity the gravity of the warning. Defaults to `'warning'`.\n * @returns\n */\nexport function warnOnce(message, gravity = 'warning') {\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n const cleanMessage = Array.isArray(message) ? message.join('\\n') : message;\n if (!warnedOnceCache.has(cleanMessage)) {\n warnedOnceCache.add(cleanMessage);\n if (gravity === 'error') {\n console.error(cleanMessage);\n } else {\n console.warn(cleanMessage);\n }\n }\n}\nexport function clearWarningsCache() {\n warnedOnceCache.clear();\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _formatErrorMessage from \"@mui/x-internals/formatErrorMessage\";\n/* v8 ignore start */\n\nimport dayjs from 'dayjs';\n// dayjs has no exports field defined\n// See https://github.com/iamkun/dayjs/issues/2562\n/* eslint-disable import/extensions */\nimport weekOfYearPlugin from 'dayjs/plugin/weekOfYear.js';\nimport customParseFormatPlugin from 'dayjs/plugin/customParseFormat.js';\nimport localizedFormatPlugin from 'dayjs/plugin/localizedFormat.js';\nimport isBetweenPlugin from 'dayjs/plugin/isBetween.js';\nimport advancedFormatPlugin from 'dayjs/plugin/advancedFormat.js';\n/* v8 ignore stop */\n/* eslint-enable import/extensions */\nimport { warnOnce } from '@mui/x-internals/warning';\ndayjs.extend(localizedFormatPlugin);\ndayjs.extend(weekOfYearPlugin);\ndayjs.extend(isBetweenPlugin);\ndayjs.extend(advancedFormatPlugin);\nconst formatTokenMap = {\n // Year\n YY: 'year',\n YYYY: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n // Month\n M: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n MM: 'month',\n MMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n MMMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n // Day of the month\n D: {\n sectionType: 'day',\n contentType: 'digit',\n maxLength: 2\n },\n DD: 'day',\n Do: {\n sectionType: 'day',\n contentType: 'digit-with-letter'\n },\n // Day of the week\n d: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 2\n },\n dd: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n ddd: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n dddd: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // Meridiem\n A: 'meridiem',\n a: 'meridiem',\n // Hours\n H: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n HH: 'hours',\n h: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n hh: 'hours',\n // Minutes\n m: {\n sectionType: 'minutes',\n contentType: 'digit',\n maxLength: 2\n },\n mm: 'minutes',\n // Seconds\n s: {\n sectionType: 'seconds',\n contentType: 'digit',\n maxLength: 2\n },\n ss: 'seconds'\n};\nconst defaultFormats = {\n year: 'YYYY',\n month: 'MMMM',\n monthShort: 'MMM',\n dayOfMonth: 'D',\n dayOfMonthFull: 'Do',\n weekday: 'dddd',\n weekdayShort: 'dd',\n hours24h: 'HH',\n hours12h: 'hh',\n meridiem: 'A',\n minutes: 'mm',\n seconds: 'ss',\n fullDate: 'll',\n keyboardDate: 'L',\n shortDate: 'MMM D',\n normalDate: 'D MMMM',\n normalDateWithWeekday: 'ddd, MMM D',\n fullTime12h: 'hh:mm A',\n fullTime24h: 'HH:mm',\n keyboardDateTime12h: 'L hh:mm A',\n keyboardDateTime24h: 'L HH:mm'\n};\nfunction throwMissingUTCPluginError() {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI X Date Pickers: Missing dayjs UTC plugin. ' + 'UTC and timezone support requires the dayjs UTC plugin to be enabled. ' + 'See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.' : _formatErrorMessage(138));\n}\nfunction throwMissingTimezonePluginError() {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI X Date Pickers: Missing dayjs timezone plugin. ' + 'Timezone support requires both the dayjs UTC and timezone plugins to be enabled. ' + 'See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.' : _formatErrorMessage(139));\n}\n/**\n * Based on `@date-io/dayjs`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterDayjs {\n isMUIAdapter = true;\n isTimezoneCompatible = true;\n lib = 'dayjs';\n escapedCharacters = {\n start: '[',\n end: ']'\n };\n formatTokenMap = formatTokenMap;\n constructor({\n locale,\n formats\n } = {}) {\n this.locale = locale;\n this.formats = _extends({}, defaultFormats, formats);\n\n // Moved plugins to the constructor to allow for users to use options on the library\n // for reference: https://github.com/mui/mui-x/pull/11151\n dayjs.extend(customParseFormatPlugin);\n }\n setLocaleToValue = value => {\n const expectedLocale = this.getCurrentLocaleCode();\n if (expectedLocale === value.locale()) {\n return value;\n }\n return value.locale(expectedLocale);\n };\n hasUTCPlugin = () => typeof dayjs.utc !== 'undefined';\n hasTimezonePlugin = () => typeof dayjs.tz !== 'undefined';\n isSame = (value, comparing, comparisonTemplate) => {\n const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));\n return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);\n };\n\n /**\n * Replaces \"default\" by undefined and \"system\" by the system timezone before passing it to `dayjs`.\n */\n cleanTimezone = timezone => {\n switch (timezone) {\n case 'default':\n {\n return undefined;\n }\n case 'system':\n {\n return dayjs.tz.guess();\n }\n default:\n {\n return timezone;\n }\n }\n };\n createSystemDate = value => {\n return this.setLocaleToValue(dayjs(value));\n };\n createUTCDate = value => {\n /* v8 ignore next 3 */\n if (!this.hasUTCPlugin()) {\n throwMissingUTCPluginError();\n }\n return this.setLocaleToValue(dayjs.utc(value));\n };\n createTZDate = (value, timezone) => {\n /* v8 ignore next 3 */\n if (!this.hasUTCPlugin()) {\n throwMissingUTCPluginError();\n }\n\n /* v8 ignore next 3 */\n if (!this.hasTimezonePlugin()) {\n throwMissingTimezonePluginError();\n }\n const keepLocalTime = value !== undefined && !value.endsWith('Z');\n return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));\n };\n getLocaleFormats = () => {\n const locales = dayjs.Ls;\n const locale = this.locale || 'en';\n let localeObject = locales[locale];\n if (localeObject === undefined) {\n /* v8 ignore start */\n if (process.env.NODE_ENV !== 'production') {\n warnOnce(['MUI X: Your locale has not been found.', 'Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.', \"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'\", 'fallback on English locale.']);\n }\n /* v8 ignore stop */\n localeObject = locales.en;\n }\n return localeObject.formats;\n };\n\n /**\n * If the new day does not have the same offset as the old one (when switching to summer day time for example),\n * Then dayjs will not automatically adjust the offset (moment does).\n * We have to parse again the value to make sure the `fixOffset` method is applied.\n * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72\n */\n adjustOffset = value => {\n if (!this.hasTimezonePlugin()) {\n return value;\n }\n const timezone = this.getTimezone(value);\n if (timezone !== 'UTC') {\n const fixedValue = value.tz(this.cleanTimezone(timezone), true);\n // TODO: Simplify the case when we raise the `dayjs` peer dep to 1.11.12 (https://github.com/iamkun/dayjs/releases/tag/v1.11.12)\n /* v8 ignore next 3 */\n // @ts-ignore\n if (fixedValue.$offset === (value.$offset ?? 0)) {\n return value;\n }\n // Change only what is needed to avoid creating a new object with unwanted data\n // Especially important when used in an environment where utc or timezone dates are used only in some places\n // Reference: https://github.com/mui/mui-x/issues/13290\n // @ts-ignore\n value.$offset = fixedValue.$offset;\n }\n return value;\n };\n\n /**\n * On dates predating the timezone standardization, IANA falls back on the Local Mean Time of the\n * location, whose offset is not a round number of minutes (`Asia/Kolkata` is `GMT+05:53:28`).\n * `dayjs` then moves the day of the month when only the year or the month was meant to change.\n * `daysInMonth()` is unusable on such a value because it derives from the equally broken\n * `endOf('month')`, hence computing it on a plain UTC value instead.\n * See https://github.com/mui/mui-x/issues/23163\n */\n restoreDayOfMonth = (value, reference) => {\n const timezone = this.getTimezone(value);\n // `system` and `UTC` values keep an offset that matches their instant, so they are never affected.\n if (!this.hasUTCPlugin() || timezone === 'system' || timezone === 'UTC') {\n return value;\n }\n const wallClock = dayjs.utc(value.format('YYYY-MM-DDTHH:mm:ss.SSS'));\n\n // Years above 9999 don't round-trip through the ISO format, and an invalid value formats to\n // `Invalid Date`. Both would make the comparison below `NaN`.\n if (!wallClock.isValid()) {\n return value;\n }\n\n // A shorter target month legitimately clamps the day (`Jan 31` + 1 month is `Feb 28`).\n const expectedDayOfMonth = Math.min(reference.date(), wallClock.daysInMonth());\n if (value.date() === expectedDayOfMonth) {\n return value;\n }\n return value.set('date', expectedDayOfMonth);\n };\n date = (value, timezone = 'default') => {\n if (value === null) {\n return null;\n }\n if (timezone === 'UTC') {\n return this.createUTCDate(value);\n }\n if (timezone === 'system' || timezone === 'default' && !this.hasTimezonePlugin()) {\n return this.createSystemDate(value);\n }\n return this.createTZDate(value, timezone);\n };\n getInvalidDate = () => dayjs(new Date('Invalid date'));\n getTimezone = value => {\n if (this.hasTimezonePlugin()) {\n // @ts-ignore\n const zone = value.$x?.$timezone;\n if (zone) {\n return zone;\n }\n }\n if (this.hasUTCPlugin() && value.isUTC()) {\n return 'UTC';\n }\n return 'system';\n };\n setTimezone = (value, timezone) => {\n if (this.getTimezone(value) === timezone) {\n return value;\n }\n if (timezone === 'UTC') {\n /* v8 ignore next 3 */\n if (!this.hasUTCPlugin()) {\n throwMissingUTCPluginError();\n }\n return value.utc();\n }\n\n // We know that we have the UTC plugin.\n // Otherwise, the value timezone would always equal \"system\".\n // And it would be caught by the first \"if\" of this method.\n if (timezone === 'system') {\n return value.local();\n }\n if (!this.hasTimezonePlugin()) {\n if (timezone === 'default') {\n return value;\n }\n\n /* v8 ignore next */\n throwMissingTimezonePluginError();\n }\n return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));\n };\n toJsDate = value => {\n return value.toDate();\n };\n parse = (value, format) => {\n if (value === '') {\n return null;\n }\n return dayjs(value, format, this.locale, true);\n };\n getCurrentLocaleCode = () => {\n return this.locale || 'en';\n };\n is12HourCycleInCurrentLocale = () => {\n /* v8 ignore next */\n return /A|a/.test(this.getLocaleFormats().LT || '');\n };\n expandFormat = format => {\n const localeFormats = this.getLocaleFormats();\n\n // @see https://github.com/iamkun/dayjs/blob/dev/src/plugin/localizedFormat/index.js\n const t = formatBis => formatBis.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));\n return format.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {\n const B = b && b.toUpperCase();\n return a || localeFormats[b] || t(localeFormats[B]);\n });\n };\n isValid = value => {\n if (value == null) {\n return false;\n }\n return value.isValid();\n };\n format = (value, formatKey) => {\n return this.formatByString(value, this.formats[formatKey]);\n };\n formatByString = (value, formatString) => {\n return this.setLocaleToValue(value).format(formatString);\n };\n formatNumber = numberToFormat => {\n return numberToFormat;\n };\n isEqual = (value, comparing) => {\n if (value === null && comparing === null) {\n return true;\n }\n if (value === null || comparing === null) {\n return false;\n }\n return value.toDate().getTime() === comparing.toDate().getTime();\n };\n isSameYear = (value, comparing) => {\n return this.isSame(value, comparing, 'YYYY');\n };\n isSameMonth = (value, comparing) => {\n return this.isSame(value, comparing, 'YYYY-MM');\n };\n isSameDay = (value, comparing) => {\n return this.isSame(value, comparing, 'YYYY-MM-DD');\n };\n isSameHour = (value, comparing) => {\n return value.isSame(comparing, 'hour');\n };\n isAfter = (value, comparing) => {\n return value > comparing;\n };\n isAfterYear = (value, comparing) => {\n if (!this.hasUTCPlugin()) {\n return value.isAfter(comparing, 'year');\n }\n return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();\n };\n isAfterDay = (value, comparing) => {\n if (!this.hasUTCPlugin()) {\n return value.isAfter(comparing, 'day');\n }\n return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();\n };\n isBefore = (value, comparing) => {\n return value < comparing;\n };\n isBeforeYear = (value, comparing) => {\n if (!this.hasUTCPlugin()) {\n return value.isBefore(comparing, 'year');\n }\n return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();\n };\n isBeforeDay = (value, comparing) => {\n if (!this.hasUTCPlugin()) {\n return value.isBefore(comparing, 'day');\n }\n return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();\n };\n isWithinRange = (value, [start, end]) => {\n return value >= start && value <= end;\n };\n startOfYear = value => {\n return this.adjustOffset(value.startOf('year'));\n };\n startOfMonth = value => {\n return this.adjustOffset(value.startOf('month'));\n };\n startOfWeek = value => {\n return this.adjustOffset(this.setLocaleToValue(value).startOf('week'));\n };\n startOfDay = value => {\n return this.adjustOffset(value.startOf('day'));\n };\n endOfYear = value => {\n return this.adjustOffset(value.endOf('year'));\n };\n endOfMonth = value => {\n return this.adjustOffset(value.endOf('month'));\n };\n endOfWeek = value => {\n return this.adjustOffset(this.setLocaleToValue(value).endOf('week'));\n };\n endOfDay = value => {\n return this.adjustOffset(value.endOf('day'));\n };\n addYears = (value, amount) => {\n return this.adjustOffset(this.restoreDayOfMonth(value.add(amount, 'year'), value));\n };\n addMonths = (value, amount) => {\n return this.adjustOffset(this.restoreDayOfMonth(value.add(amount, 'month'), value));\n };\n addWeeks = (value, amount) => {\n return this.adjustOffset(value.add(amount, 'week'));\n };\n addDays = (value, amount) => {\n return this.adjustOffset(value.add(amount, 'day'));\n };\n addHours = (value, amount) => {\n return this.adjustOffset(value.add(amount, 'hour'));\n };\n addMinutes = (value, amount) => {\n return this.adjustOffset(value.add(amount, 'minute'));\n };\n addSeconds = (value, amount) => {\n return this.adjustOffset(value.add(amount, 'second'));\n };\n getYear = value => {\n return value.year();\n };\n getMonth = value => {\n return value.month();\n };\n getDate = value => {\n return value.date();\n };\n getHours = value => {\n return value.hour();\n };\n getMinutes = value => {\n return value.minute();\n };\n getSeconds = value => {\n return value.second();\n };\n getMilliseconds = value => {\n return value.millisecond();\n };\n setYear = (value, year) => {\n return this.adjustOffset(this.restoreDayOfMonth(value.set('year', year), value));\n };\n setMonth = (value, month) => {\n return this.adjustOffset(this.restoreDayOfMonth(value.set('month', month), value));\n };\n setDate = (value, date) => {\n return this.adjustOffset(value.set('date', date));\n };\n setHours = (value, hours) => {\n return this.adjustOffset(value.set('hour', hours));\n };\n setMinutes = (value, minutes) => {\n return this.adjustOffset(value.set('minute', minutes));\n };\n setSeconds = (value, seconds) => {\n return this.adjustOffset(value.set('second', seconds));\n };\n setMilliseconds = (value, milliseconds) => {\n return this.adjustOffset(value.set('millisecond', milliseconds));\n };\n getDaysInMonth = value => {\n return value.daysInMonth();\n };\n getWeekArray = value => {\n const start = this.startOfWeek(this.startOfMonth(value));\n const end = this.endOfWeek(this.endOfMonth(value));\n let count = 0;\n let current = start;\n const nestedWeeks = [];\n while (current < end) {\n const weekNumber = Math.floor(count / 7);\n nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];\n nestedWeeks[weekNumber].push(current);\n current = this.addDays(current, 1);\n count += 1;\n }\n return nestedWeeks;\n };\n getWeekNumber = value => {\n return value.week();\n };\n getDayOfWeek(value) {\n return value.day() + 1;\n }\n getYearRange = ([start, end]) => {\n const startDate = this.startOfYear(start);\n const endDate = this.endOfYear(end);\n const years = [];\n let current = startDate;\n while (this.isBefore(current, endDate)) {\n years.push(current);\n current = this.addYears(current, 1);\n }\n return years;\n };\n}","\r\nimport { useAppThemeContext } from \"../../core/context/AppThemeContext\";\r\nimport Typography2 from \"./typography/Typography2\";\r\nimport type { HelperTextCommonProps } from \"../types/common-types\";\r\n\r\n\r\n\r\n\r\nconst HelperTextCommon = (props: HelperTextCommonProps) => {\r\n const {\r\n text = \"\",\r\n lineHeight = \"0.8rem\",\r\n minHeight = \"0.8rem\",\r\n mt = \"0.18rem\",\r\n sx\r\n } : HelperTextCommonProps = props;\r\n const { fontSize } = useAppThemeContext();\r\n \r\n return (\r\n <Typography2\r\n text={text || \" \"}\r\n variantType=\"error\"\r\n sx={{\r\n fontSize: fontSize && (fontSize - 2),\r\n lineHeight,\r\n minHeight,\r\n marginTop: mt,\r\n ...sx,\r\n }}\r\n />\r\n );\r\n };\r\n \r\n\r\nexport default HelperTextCommon;\r\n","import React from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport type { RootState } from \"store/store\"\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport type { PreviewTextProps } from \"./PreviewText.type\";\r\n\r\nconst PreviewText = ({ label = \"\", value = \"\", children }: PreviewTextProps) => {\r\n const { isPreview } = useSelector((state: RootState) => state.appData);\r\n\r\n if (isPreview) {\r\n return <>\r\n <Typography2 text={label} />\r\n <Typography2 text={value || \"-\"} />\r\n </>\r\n }\r\n\r\n return children\r\n}\r\n\r\nexport default React.memo(PreviewText)","import dayjs, { type Dayjs } from \"dayjs\";\r\nimport React from \"react\";\r\n\r\nimport {\r\n AccessTimeOutlined,\r\n CalendarMonthOutlined,\r\n} from \"@mui/icons-material\";\r\nimport type {\r\n TextFieldProps,\r\n} from \"@mui/material\";\r\nimport {\r\n Box,\r\n} from \"@mui/material\";\r\nimport {\r\n DatePicker,\r\n DateTimePicker,\r\n LocalizationProvider,\r\n PickersActionBar,\r\n TimePicker,\r\n type PickersActionBarProps,\r\n} from \"@mui/x-date-pickers\";\r\nimport { AdapterDayjs } from \"@mui/x-date-pickers/AdapterDayjs\";\r\n\r\nimport { useTheme } from \"@mui/system\";\r\nimport { Constants } from \"constants/commonConstants\";\r\nimport { useAppThemeContext } from \"libs/core/context/AppThemeContext\";\r\nimport { FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport HelperTextCommon from \"ui/HelperTextCommon\";\r\nimport PreviewText from \"ui/previewText/PreviewText\";\r\nimport { customDate, customDateObject } from \"utils/dateUtilities\";\r\nimport Typography2 from \"../typography/Typography2\";\r\nimport type { CustomDateTimePickerProps } from \"./CustomDatePicker.type\";\r\n\r\nenum PLACEHOLDER_TEXT {\r\n FIELD_MONTH = \"MMM\",\r\n FIELD_HOUR = \"HH\",\r\n FIELD_MINUTE = \"MM\",\r\n FIELD_YEARS = \"year\",\r\n FIELD_MONTHS = \"month\",\r\n FIELD_DAYS = \"day\",\r\n FIELD_HOURS = \"hours\",\r\n FIELD_MINUTES = \"minutes\",\r\n FIELD_TODAYS = \"today\",\r\n FIELD_ACCEPT = \"accept\",\r\n};\r\n\r\nconst CustomDateTimePicker: React.FC<CustomDateTimePickerProps> = ({\r\n label,\r\n value,\r\n disabled = false,\r\n helperText = \"\",\r\n onChange,\r\n validation,\r\n maxDate,\r\n minDate,\r\n disableFuture = true\r\n}) => {\r\n\r\n const theme = useTheme();\r\n\r\n\r\n const getFormat = () => {\r\n switch (validation?.type) {\r\n case FieldEnum.DATE:\r\n return Constants.DATE_FORMATE.CLIENT;\r\n case FieldEnum.TIME:\r\n return Constants.TIME_FORMATE.CLIENT;\r\n case FieldEnum.YEAR:\r\n return Constants.DATE_FORMATE.YEAR;\r\n default:\r\n return Constants.DATE_TIME_FORMATE.CLIENT_24;\r\n }\r\n }\r\n const format = getFormat();\r\n const { fontSize } = useAppThemeContext();\r\n const minimumDate = minDate\r\n ? customDate(minDate)\r\n : customDateObject.startOf(PLACEHOLDER_TEXT.FIELD_YEARS).subtract(150, PLACEHOLDER_TEXT.FIELD_YEARS);\r\n\r\n const maximumDate = maxDate ? customDate(maxDate) : undefined;\r\n\r\n const validateAndChange = (newValue: Dayjs | null) => {\r\n if (!newValue) {\r\n onChange(\"\");\r\n return;\r\n }\r\n\r\n const finalValue = newValue.format(validation?.serverFormat || Constants.DATE_TIME_FORMATE.SERVER);\r\n onChange(finalValue);\r\n };\r\n\r\n const CustomActionBar = (props: PickersActionBarProps) => {\r\n return (\r\n <PickersActionBar\r\n {...props}\r\n actions={[PLACEHOLDER_TEXT.FIELD_TODAYS, PLACEHOLDER_TEXT.FIELD_ACCEPT]}\r\n />\r\n );\r\n }\r\n const parseValue = () => {\r\n if (value === null || value === undefined || value === \"\") return null;\r\n const strValue = String(value);\r\n const serverFmt = validation?.serverFormat || Constants.DATE_TIME_FORMATE.SERVER;\r\n const parsed = dayjs(strValue, serverFmt, true);\r\n return parsed.isValid() ? parsed : null;\r\n };\r\n const pickerProps = {\r\n value: parseValue(),\r\n format: validation?.clientFormat || format,\r\n minDate: minimumDate,\r\n maxDate: maximumDate,\r\n disableFuture: disableFuture,\r\n onAccept: (e: Dayjs | null) => validateAndChange(e),\r\n onChange: (e: Dayjs | null) => validateAndChange(e),\r\n disabled,\r\n slotProps: {\r\n textField: {\r\n size: \"small\" as const,\r\n variant: \"outlined\" as const,\r\n error: !!helperText,\r\n // helperText: helperText,\r\n fullWidth: true,\r\n // onChange: (e: event) => validateAndChange(e)\r\n } satisfies Partial<TextFieldProps>,\r\n openPickerButton: { color: \"primary\" as const },\r\n },\r\n slots: { openPickerIcon: (validation?.type == FieldEnum.TIME) ? AccessTimeOutlined : CalendarMonthOutlined, actionBar: CustomActionBar, },\r\n sx: {\r\n \"& .MuiSvgIcon-root\": {\r\n height: \"1.2rem\",\r\n },\r\n\r\n \"& .MuiOutlinedInput-root.Mui-focused fieldset\":\r\n {\r\n borderColor: 'primary.main'\r\n },\r\n\r\n \".MuiInputBase-input\":\r\n {\r\n height: \"1.2rem\",\r\n },\r\n '.MuiPickersInputBase-sectionContent': {\r\n fontSize,\r\n color: theme.palette.placeholdertext\r\n },\r\n \"& ::placeholder\": {\r\n fontSize,\r\n color: theme.palette.placeholdertext\r\n },\r\n backgroundColor: disabled ? theme.palette.disabled.main : 'white',\r\n }\r\n };\r\n\r\n const renderPicker = () => {\r\n switch (validation?.type) {\r\n case FieldEnum.DATE:\r\n return <DatePicker {...pickerProps} openTo={PLACEHOLDER_TEXT.FIELD_DAYS} views={[PLACEHOLDER_TEXT.FIELD_YEARS, PLACEHOLDER_TEXT.FIELD_MONTHS, PLACEHOLDER_TEXT.FIELD_DAYS]} />;\r\n case FieldEnum.TIME:\r\n return <TimePicker {...pickerProps} ampm={false} timeSteps={{ minutes: 1 }} />;\r\n case FieldEnum.YEAR:\r\n return <DatePicker {...pickerProps} views={[PLACEHOLDER_TEXT.FIELD_YEARS]} />;\r\n case FieldEnum.DATE_TIME:\r\n default:\r\n return (\r\n <DateTimePicker\r\n {...pickerProps}\r\n openTo={PLACEHOLDER_TEXT.FIELD_DAYS}\r\n views={[PLACEHOLDER_TEXT.FIELD_YEARS, PLACEHOLDER_TEXT.FIELD_MONTHS, PLACEHOLDER_TEXT.FIELD_DAYS, PLACEHOLDER_TEXT.FIELD_HOURS, PLACEHOLDER_TEXT.FIELD_MINUTES]}\r\n ampm={false}\r\n timeSteps={{ minutes: 1 }}\r\n shouldDisableTime={(value, view) => {\r\n if (!value) return false;\r\n const isBefore = minimumDate ? value.isBefore(minimumDate, view) : false;\r\n const isAfter = maximumDate ? value.isAfter(maximumDate, view) : false;\r\n return isBefore || isAfter;\r\n }}\r\n />\r\n );\r\n }\r\n };\r\n\r\n return (\r\n <PreviewText label={label as string} value={value as string}>\r\n <Box >\r\n {label && (\r\n <Typography2 text={label} isRequired={!disabled && validation?.required} sx={{ overflow: \"hidden\", whiteSpace: \"normal\", fontSize: fontSize,color:theme.palette.text.primary }} />\r\n )}\r\n <LocalizationProvider\r\n dateAdapter={AdapterDayjs}\r\n localeText={{\r\n fieldMonthPlaceholder: () => PLACEHOLDER_TEXT.FIELD_MONTH,\r\n fieldHoursPlaceholder: () => PLACEHOLDER_TEXT.FIELD_HOUR,\r\n fieldMinutesPlaceholder: () => PLACEHOLDER_TEXT.FIELD_MINUTE,\r\n }}\r\n >\r\n {renderPicker()}\r\n </LocalizationProvider>\r\n {helperText && (<HelperTextCommon text={helperText} />)}\r\n </Box>\r\n </PreviewText>\r\n );\r\n};\r\n\r\nexport default React.memo(CustomDateTimePicker);\r\n","import {\r\n FormControlLabel,\r\n Checkbox,\r\n FormHelperText,\r\n Box,\r\n type CheckboxProps,\r\n} from \"@mui/material\";\r\nimport React from \"react\";\r\n\r\ntype Props = CheckboxProps & {\r\n label?: string;\r\n helperText?: string;\r\n};\r\n\r\nfunction AppCheckbox({\r\n label,\r\n checked,\r\n onChange,\r\n helperText,\r\n ...rest\r\n}: Readonly<Props>) {\r\n return (\r\n <Box>\r\n <FormControlLabel\r\n control={\r\n <Checkbox\r\n checked={checked}\r\n onChange={(e) => onChange?.(e, e.target.checked)}\r\n {...rest}\r\n sx={{\r\n color: \"primary.main\",\r\n '&.Mui-disabled.Mui-checked': { color: \"primary.main\" },\r\n '&.Mui-checked': { color: \"primary.main\" }\r\n }}\r\n />\r\n }\r\n label={label}\r\n />\r\n\r\n {helperText && <FormHelperText>{helperText}</FormHelperText>}\r\n </Box>\r\n );\r\n}\r\n\r\nexport default React.memo(AppCheckbox)","import type { DefaultRulesType } from \"libs/shared/types/common-types\";\r\nimport { useCallback } from \"react\";\r\nimport type { CheckboxValue } from \"./checkboxTypes\";\r\nimport type { TFunction } from \"i18next\";\r\n\r\ninterface Props<T extends CheckboxValue> {\r\n value?: T[];\r\n validation?: DefaultRulesType;\r\n disabled?: boolean;\r\n t: TFunction<\"translation\", undefined>;\r\n}\r\n\r\nexport const useCheckboxListController = <T extends CheckboxValue>({ value = [], validation, disabled, t }: Props<T>) => {\r\n const isMandatory = !disabled && !!validation?.required;\r\n\r\n const handleChange = useCallback(\r\n (option: T, checked: boolean) => {\r\n const newValue = checked ? [...value, option] : value.filter((item) => !Object.is(item, option));\r\n\r\n let error = \"\";\r\n\r\n if (isMandatory && newValue.length === 0) {\r\n error = t(\"strOneOptionRequired\");\r\n }\r\n\r\n return {\r\n newValue,\r\n error,\r\n };\r\n },\r\n [value, isMandatory, t],\r\n );\r\n\r\n return {\r\n isMandatory,\r\n handleChange,\r\n };\r\n};\r\n","import { memo, useMemo, useCallback } from \"react\";\r\nimport { Box, Checkbox, FormControl, FormControlLabel, FormGroup, FormHelperText } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport { useCheckboxListController } from \"./useCheckboxListController\";\r\nimport type { CheckboxListProps } from \"./checkboxTypes\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\nconst CheckboxList = <T extends string | number | boolean>({\r\n id,\r\n label,\r\n value = [],\r\n error,\r\n helperText,\r\n disabled,\r\n validation,\r\n options,\r\n isRow,\r\n onChange,\r\n}: CheckboxListProps<T>) => {\r\n const { t } = useTranslation();\r\n\r\n const theme = useTheme();\r\n\r\n const { handleChange, isMandatory } = useCheckboxListController({\r\n value,\r\n validation,\r\n disabled,\r\n t,\r\n });\r\n\r\n const valueSet = useMemo(() => new Set(value), [value]);\r\n\r\n const onItemChange = useCallback(\r\n (option: T, checked: boolean) => {\r\n const { newValue, error } = handleChange(option, checked);\r\n\r\n onChange(id, newValue, error, !error);\r\n },\r\n [handleChange, id, onChange],\r\n );\r\n\r\n return (\r\n <Box sx={{ mt: 2 }}>\r\n <FormControl error={!!error} fullWidth>\r\n <Typography2\r\n text={t(label)}\r\n isRequired={isMandatory}\r\n sx={{\r\n textAlign: \"left\",\r\n mb: 0.5,\r\n }}\r\n />\r\n\r\n <FormGroup row={isRow} >\r\n {options.map((option) => (\r\n <FormControlLabel\r\n key={String(option.value)}\r\n control={\r\n <Checkbox\r\n checked={valueSet.has(option.value)}\r\n disabled={disabled}\r\n onChange={(e) => onItemChange(option.value, e.target.checked)}\r\n size=\"small\"\r\n sx={{\r\n color: theme.palette.checkbox.label,\r\n \"&.Mui-checked\": {\r\n color: theme.palette.checkbox.checked,\r\n },\r\n }}\r\n />\r\n }\r\n label={t(option.label ?? String(option.value))}\r\n sx={{\r\n \"& .MuiFormControlLabel-label\": {\r\n fontSize: '16px', // unable to access theme typography fontSize from theme --- probably need refactor\r\n color: theme.palette.checkbox.label,\r\n },\r\n }}\r\n />\r\n ))}\r\n </FormGroup>\r\n\r\n {error && <FormHelperText>{t(error)}</FormHelperText>}\r\n\r\n {helperText && <FormHelperText>{t(helperText)}</FormHelperText>}\r\n </FormControl>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default memo(CheckboxList) as typeof CheckboxList;\r\n","import { useCallback, useMemo } from \"react\";\r\nimport type { DefaultRulesType } from \"libs/shared/types/common-types\";\r\nimport type { CheckboxOption, CheckboxValue } from \"./checkboxTypes\";\r\nimport type { TFunction } from \"i18next\";\r\n\r\ninterface Props<T extends CheckboxValue> {\r\n value?: T;\r\n validation?: DefaultRulesType;\r\n disabled?: boolean;\r\n options?: [CheckboxOption<T>, CheckboxOption<T>];\r\n t: TFunction<\"translation\", undefined>;\r\n}\r\n\r\nexport const useSingleCheckboxController = <T extends CheckboxValue>({ validation, disabled, options, t }: Props<T>) => {\r\n const isMandatory = !disabled && !!validation?.required;\r\n\r\n const normalizedOptions = useMemo(() => {\r\n if (options?.length === 2) {\r\n return options;\r\n }\r\n\r\n return [\r\n {\r\n value: true as T,\r\n label: \"strYes\",\r\n },\r\n {\r\n value: false as T,\r\n label: \"strNo\",\r\n },\r\n ] as [CheckboxOption<T>, CheckboxOption<T>];\r\n }, [options]);\r\n\r\n const checkedValue = normalizedOptions[0].value;\r\n const uncheckedValue = normalizedOptions[1].value;\r\n\r\n const handleChange = useCallback(\r\n (checked: boolean) => {\r\n const newValue = checked ? checkedValue : uncheckedValue;\r\n\r\n let error = \"\";\r\n\r\n if (isMandatory && !checked) {\r\n error = t(\"strFieldRequired\");\r\n }\r\n\r\n return {\r\n newValue,\r\n error,\r\n };\r\n },\r\n [checkedValue, uncheckedValue, isMandatory, t],\r\n );\r\n\r\n return {\r\n checkedValue,\r\n uncheckedValue,\r\n isMandatory,\r\n handleChange,\r\n normalizedOptions,\r\n };\r\n};\r\n","import React, { memo, useCallback } from \"react\";\r\nimport { Checkbox, FormControl, FormControlLabel, FormHelperText, Box } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useSingleCheckboxController } from \"./useSingleCheckboxController\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport type { SingleCheckboxProps } from \"./checkboxTypes\";\r\nimport { useTheme } from \"@mui/system\";\r\n\r\nconst SingleCheckbox = <T extends string | number | boolean>({ id, label, name, value, error, helperText, disabled, validation, options, onChange }: SingleCheckboxProps<T>) => {\r\n const { t } = useTranslation();\r\n\r\n const theme = useTheme();\r\n\r\n const { checkedValue, handleChange, isMandatory } = useSingleCheckboxController({\r\n value,\r\n validation,\r\n disabled,\r\n options,\r\n t,\r\n });\r\n\r\n const checked = Object.is(value, checkedValue);\r\n\r\n const onCheckboxChange = useCallback(\r\n (e: React.ChangeEvent<HTMLInputElement>) => {\r\n const { newValue, error } = handleChange(e.target.checked);\r\n\r\n onChange(id, newValue, error, !error);\r\n },\r\n [id, handleChange, onChange],\r\n );\r\n\r\n return (\r\n <Box sx={{ mt: 2 }}>\r\n <FormControl error={!!error}>\r\n <FormControlLabel\r\n control={\r\n <Checkbox\r\n id={id}\r\n name={name}\r\n checked={checked}\r\n disabled={disabled}\r\n onChange={onCheckboxChange}\r\n size=\"small\"\r\n sx={{\r\n color: theme.palette.checkbox.label,\r\n \"&.Mui-checked\": {\r\n color: 'primary.main',\r\n },\r\n }}\r\n />\r\n }\r\n label={\r\n <Typography2\r\n text={t(label)}\r\n isRequired={isMandatory}\r\n sx={{\r\n fontSize: '16px', // unable to access theme typography fontSize from theme --- probably need refactor\r\n color: theme.palette.checkbox.label,\r\n }}\r\n />\r\n }\r\n />\r\n\r\n {error && <FormHelperText>{t(error)}</FormHelperText>}\r\n\r\n {helperText && <FormHelperText>{t(helperText)}</FormHelperText>}\r\n </FormControl>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default memo(SingleCheckbox) as typeof SingleCheckbox;\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","import React, { type JSX } from \"react\";\r\nimport {\r\n Chip,\r\n Stack,\r\n Tooltip,\r\n} from \"@mui/material\";\r\nimport CloseIcon from \"@mui/icons-material/Close\";\r\nimport { alpha, useTheme } from \"@mui/material/styles\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nimport Typography2 from \"../typography/Typography2\";\r\nimport type { AppChipProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\n\r\nconst AppChip: React.FC<AppChipProps> = ({\r\n label,\r\n required = false,\r\n tooltip,\r\n variantType = \"soft\",\r\n startIcon,\r\n endIcon,\r\n removable = false,\r\n backgroundColor,\r\n textColor,\r\n borderColor,\r\n fullWidth = false,\r\n disabled = false,\r\n sx,\r\n onDelete,\r\n\r\n ...props\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const theme = useTheme();\r\n const bgColor = backgroundColor ?? alpha(theme.palette.primary.main, 0.12);\r\n const chipColor = textColor ?? theme.palette.primary.main;\r\n const chipBorder = borderColor ?? theme.palette.primary.main;\r\n\r\n return (\r\n <Stack\r\n spacing={0.5}\r\n sx={{\r\n width: fullWidth ? \"auto\" : \"fit-content\",\r\n }}\r\n >\r\n {props.title && (\r\n <Typography2\r\n text={String(props.title)}\r\n isRequired={required}\r\n fontWeight={400}\r\n />\r\n )}\r\n\r\n <Tooltip\r\n title={tooltip ? t(tooltip) : \"\"}\r\n disableInteractive={!tooltip}\r\n >\r\n <span>\r\n <Chip\r\n {...props}\r\n disabled={disabled}\r\n label={\r\n typeof label === \"string\"\r\n ? t(label)\r\n : label\r\n }\r\n icon={startIcon}\r\n deleteIcon={ endIcon ?? <CloseIcon fontSize=\"small\" /> }\r\n onDelete={ removable ? onDelete : undefined }\r\n clickable={props.clickable}\r\n sx={{ width: fullWidth ? \"100%\" : \"fit-content\",justifyContent: \"flex-start\",borderRadius: \"999px\", height: 34, fontSize: 13, fontWeight: 500, transition: \".2s\",\r\n ...(variantType === \"filled\" && {\r\n bgcolor: bgColor,\r\n color: chipColor,\r\n }),\r\n\r\n ...(variantType === \"outlined\" && {\r\n bgcolor: \"transparent\",\r\n color: chipColor,\r\n border: `1px solid ${chipBorder}`,\r\n }),\r\n\r\n ...(variantType === \"soft\" && {\r\n bgcolor: alpha(chipBorder, 0.12),\r\n color: chipColor,\r\n border: `1px solid ${alpha(\r\n chipBorder,\r\n 0.2\r\n )}`,\r\n }),\r\n\r\n \"& .MuiChip-label\": {\r\n px: 1.5,\r\n overflow: \"hidden\",\r\n whiteSpace: \"nowrap\",\r\n textOverflow: \"ellipsis\",\r\n },\r\n\r\n \"& .MuiChip-icon\": {\r\n color: chipColor,\r\n ml: 0.5,\r\n },\r\n\r\n \"& .MuiChip-deleteIcon\": {\r\n color: chipColor,\r\n mr: 0.5,\r\n\r\n \"&:hover\": {\r\n color:\r\n theme.palette.error.main,\r\n },\r\n },\r\n\r\n \"&:hover\": {\r\n boxShadow: disabled\r\n ? \"none\"\r\n : theme.shadows[2],\r\n },\r\n\r\n ...sx,\r\n }}\r\n />\r\n </span>\r\n </Tooltip>\r\n </Stack>\r\n );\r\n};\r\n\r\nexport default React.memo(AppChip);","import { Snackbar, Alert } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\n\r\ninterface SnackbarComponentProps {\r\n open: boolean;\r\n message: string;\r\n values?: Record<string, unknown>;\r\n type?: SnackbarEnum;\r\n autoHideDuration?: number;\r\n onClose: () => void;\r\n}\r\n\r\nconst SnackbarComponent = ({\r\n open,\r\n message,\r\n values,\r\n type = SnackbarEnum.SUCCESS,\r\n autoHideDuration = 3000,\r\n onClose,\r\n}: SnackbarComponentProps) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Snackbar\r\n open={open}\r\n autoHideDuration={autoHideDuration}\r\n onClose={onClose}\r\n anchorOrigin={{\r\n vertical: \"top\",\r\n horizontal: \"right\",\r\n }}\r\n >\r\n <Alert\r\n severity={type}\r\n variant=\"filled\"\r\n onClose={onClose}\r\n sx={{\r\n width: \"100%\",\r\n minWidth: 300,\r\n borderRadius: 2,\r\n }}\r\n >\r\n {t(message, values)}\r\n </Alert>\r\n </Snackbar>\r\n );\r\n};\r\n\r\nexport default SnackbarComponent;","import { Tooltip, tooltipClasses, type TooltipProps } from '@mui/material';\r\nimport { styled } from '@mui/material/styles'; \r\nimport React from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\ntype FormTooltipProps = {\r\n title: string;\r\n children? : React.ReactNode;\r\n placement?: TooltipProps['placement'];\r\n} & TooltipProps\r\n\r\nconst BootstrapTooltip = styled(({ className, ...props }: TooltipProps) => (\r\n <Tooltip {...props} arrow classes={{ popper: className }} />\r\n))(({ theme }) => ({\r\n [`& .${tooltipClasses.arrow}`]: {\r\n color: theme.palette.common.black,\r\n },\r\n [`& .${tooltipClasses.tooltip}`]: {\r\n backgroundColor: theme.palette.common.black,\r\n },\r\n}));\r\n\r\nconst CustomizedTooltip = ({title, children, placement = 'top'}: Readonly<FormTooltipProps> ) => {\r\n const { t } = useTranslation();\r\n \r\n return (\r\n <BootstrapTooltip title={t(title)} placement={placement} sx={{zIndex:'2000'}}>\r\n {children}\r\n </BootstrapTooltip>\r\n );\r\n}\r\n\r\nexport default React.memo(CustomizedTooltip)","import { SvgIcon, type SvgIconProps } from \"@mui/material\";\r\nimport { useTheme } from \"@mui/system\";\r\n// import { useAppThemeContext } from \"hooks\";\r\nimport CustomizedTooltip from \"ui/toolTips/CustomizedTooltip\";\r\n\r\nexport interface GridEditActionIconProps extends SvgIconProps {\r\n isDisabled?: boolean;\r\n toolTipLabel? : string;\r\n}\r\n\r\nexport const GridEditActionIcon: React.FC<GridEditActionIconProps> = ({ isDisabled = false, toolTipLabel, ...props }) => {\r\n // const { themeColor } = useAppThemeContext();\r\n const theme = useTheme();\r\n return (\r\n <CustomizedTooltip title={toolTipLabel ?? \"strEdit\"}>\r\n <SvgIcon\r\n {...props}\r\n viewBox=\"0 0 18 18\"\r\n sx={{ color: isDisabled ? theme.palette.main : theme.palette.text.primary }}\r\n >\r\n <path d=\"M4.81066 11.9193L12.4172 4.31273L11.3566 3.25206L3.75 10.8587V11.9193H4.81066ZM5.43198 13.4193H2.25V10.2373L10.8263 1.66107C11.1192 1.36818 11.594 1.36818 11.8869 1.66107L14.0083 3.7824C14.3012 4.07529 14.3012 4.55016 14.0083 4.84305L5.43198 13.4193ZM2.25 14.9193H15.75V16.4193H2.25V14.9193Z\" />\r\n\r\n </SvgIcon>\r\n </CustomizedTooltip>\r\n\r\n\r\n\r\n );\r\n}","// import { useAppThemeContext } from \"hooks\";\r\nimport { type GridEditActionIconProps } from \"./grid-edit-icon\";\r\nimport { SvgIcon } from \"@mui/material\";\r\nimport CustomizedTooltip from \"ui/toolTips/CustomizedTooltip\";\r\n\r\nexport const GridDeleteActionIcon: React.FC<GridEditActionIconProps> = ({ isDisabled = false, ...props }) => {\r\n // const { themeColor } = useAppThemeContext();\r\n return (\r\n <CustomizedTooltip title=\"strDelete\">\r\n <SvgIcon\r\n {...props}\r\n viewBox=\"0 0 18 18\"\r\n sx={{ color: isDisabled ? \"gray\" : \"#FF1616\" }}\r\n >\r\n <path d=\"M5.08753 15.2674C4.68763 15.2674 4.34541 15.1251 4.06088 14.8406C3.77634 14.556 3.63383 14.2136 3.63334 13.8132V4.36097H2.90625V2.90678H6.54172V2.17969H10.9043V2.90678H14.5398V4.36097H13.8127V13.8132C13.8127 14.2131 13.6704 14.5556 13.3859 14.8406C13.1013 15.1256 12.7589 15.2679 12.3585 15.2674H5.08753ZM12.3585 4.36097H5.08753V13.8132H12.3585V4.36097ZM6.54172 12.359H7.99591V5.81516H6.54172V12.359ZM9.4501 12.359H10.9043V5.81516H9.4501V12.359Z\" />\r\n\r\n </SvgIcon>\r\n </CustomizedTooltip>\r\n\r\n );\r\n}\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport CustomizedTooltip from \"ui/toolTips/CustomizedTooltip\";\r\nimport type { GridEditActionIconProps } from \"./icons.type\";\r\n\r\nexport const GridPrintActionIcon: React.FC<GridEditActionIconProps> = ({ isDisabled = false, ...props }) => {\r\n const theme = useTheme();\r\n return (\r\n <CustomizedTooltip title=\"strPrint\">\r\n {/* <PrintIcon color={isDisabled ? themeColor.disabledTextColor : themeColor.backgroundColor }/> */}\r\n <SvgIcon\r\n {...props}\r\n viewBox=\"0 0 24 24\"\r\n sx={{ color: isDisabled ? 'gray' : theme.palette.text.primary }} // TODO: colors needs to come from theme\r\n >\r\n <path d=\"M6 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V11C2 10.4696 2.21071 9.96086 2.58579 9.58579C2.96086 9.21071 3.46957 9 4 9H20C20.5304 9 21.0391 9.21071 21.4142 9.58579C21.7893 9.96086 22 10.4696 22 11V16C22 16.5304 21.7893 17.0391 21.4142 17.4142C21.0391 17.7893 20.5304 18 20 18H18\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill=\"none\"/>\r\n <path d=\"M6 9V3C6 2.73478 6.10536 2.48043 6.29289 2.29289C6.48043 2.10536 6.73478 2 7 2H17C17.2652 2 17.5196 2.10536 17.7071 2.29289C17.8946 2.48043 18 2.73478 18 3V9\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill=\"none\" />\r\n <path d=\"M17 14H7C6.44772 14 6 14.4477 6 15V21C6 21.5523 6.44772 22 7 22H17C17.5523 22 18 21.5523 18 21V15C18 14.4477 17.5523 14 17 14Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill=\"none\" />\r\n\r\n </SvgIcon>\r\n </CustomizedTooltip>\r\n );\r\n}","// import { useAppThemeContext } from \"hooks\";\r\nimport CustomizedTooltip from \"ui/toolTips/CustomizedTooltip\";\r\nimport { type GridEditActionIconProps } from \"./grid-edit-icon\";\r\nimport { SvgIcon } from \"@mui/material\";\r\nimport { useTheme } from \"@mui/system\";\r\n\r\nexport const GridViewActionIcon: React.FC<GridEditActionIconProps> = ({ isDisabled = false, toolTipLabel, ...props }) => {\r\n const theme = useTheme();\r\n return (\r\n <CustomizedTooltip title={toolTipLabel ?? \"strView\"}>\r\n <SvgIcon\r\n {...props}\r\n viewBox=\"0 0 18 18\"\r\n sx={{ color: isDisabled ? \"gray\" : theme.palette.text.primary }}\r\n >\r\n <path d=\"M16.158 8.28375C16.386 8.60325 16.5 8.76375 16.5 9C16.5 9.237 16.386 9.39675 16.158 9.71625C15.1335 11.1533 12.5167 14.25 9 14.25C5.4825 14.25 2.8665 11.1525 1.842 9.71625C1.614 9.39675 1.5 9.23625 1.5 9C1.5 8.763 1.614 8.60325 1.842 8.28375C2.8665 6.84675 5.48325 3.75 9 3.75C12.5175 3.75 15.1335 6.8475 16.158 8.28375Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill = \"none\"/>\r\n <path d=\"M11.25 9C11.25 8.40326 11.0129 7.83097 10.591 7.40901C10.169 6.98705 9.59674 6.75 9 6.75C8.40326 6.75 7.83097 6.98705 7.40901 7.40901C6.98705 7.83097 6.75 8.40326 6.75 9C6.75 9.59674 6.98705 10.169 7.40901 10.591C7.83097 11.0129 8.40326 11.25 9 11.25C9.59674 11.25 10.169 11.0129 10.591 10.591C11.0129 10.169 11.25 9.59674 11.25 9Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill = \"none\" />\r\n </SvgIcon>\r\n </CustomizedTooltip>\r\n );\r\n}","import { type DataGridProps, GridActionsCellItem, type GridActionsColDef, type GridColDef, type GridPaginationModel, type GridRowParams } from \"@mui/x-data-grid\";\r\nimport { GridDeleteActionIcon } from \"assets/icons/grid-delete-icon\";\r\nimport { GridEditActionIcon } from \"assets/icons/grid-edit-icon\";\r\nimport { GridPrintActionIcon } from \"assets/icons/grid-print-icon\";\r\nimport { GridViewActionIcon } from \"assets/icons/grid-view-icon\";\r\nimport useDevice from \"hooks/useDevice\";\r\nimport { ButtonActionEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { GridRowData } from \"libs/shared/types/common-types\";\r\nimport { useMemo } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nexport interface GridViewProps<T extends GridRowData> extends DataGridProps {\r\n data: T[];\r\n pageSize?: number;\r\n columns: GridColDef[];\r\n actions?: GridAction[];\r\n showSerialNumber?: boolean;\r\n}\r\n\r\nexport interface GridAction {\r\n type: ButtonActionEnum;\r\n onClick: (params: GridRowParams) => void;\r\n hidden?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nconst useGridView = <T extends GridRowData>(props: GridViewProps<T>) => {\r\n\r\n const {showSerialNumber = true} = props\r\n\r\n const { t } = useTranslation();\r\n\r\n const { isMobile } = useDevice();\r\n\r\n const serialNumberColumn: GridColDef = {\r\n field: \"__serialNumber\",\r\n headerName: t(\"strSNo\"),\r\n sortable: false,\r\n filterable: false,\r\n disableColumnMenu: true,\r\n width: isMobile ? 60 : 100,\r\n renderCell: (params) => {\r\n\r\n const index =\r\n params.api\r\n .getAllRowIds()\r\n .indexOf(params.id) + 1;\r\n\r\n const paginationModel =\r\n props.paginationModel;\r\n\r\n const previousPage =\r\n ((paginationModel as GridPaginationModel)?.page || 0) *\r\n ((paginationModel as GridPaginationModel)?.pageSize || 10);\r\n\r\n return previousPage + index;\r\n },\r\n };\r\n\r\n const actionColumn: GridActionsColDef = {\r\n field: \"actions\",\r\n headerName: t(\"strAction\"),\r\n type: \"actions\",\r\n width: isMobile ? 100 : 140,\r\n sortable: false,\r\n filterable: false,\r\n disableColumnMenu: true,\r\n cellClassName: isMobile\r\n ? \"sticky-cell-action\"\r\n : \"\",\r\n\r\n headerClassName: isMobile\r\n ? \"sticky-header-action\"\r\n : \"\",\r\n\r\n getActions: (params: GridRowParams) => {\r\n\r\n if (!props.actions?.length) {\r\n return [];\r\n }\r\n\r\n const actionItems = [];\r\n\r\n for (const action of props.actions) {\r\n\r\n if (action.hidden) continue;\r\n\r\n switch (action.type) {\r\n\r\n case ButtonActionEnum.VIEW:\r\n actionItems.push(\r\n <GridActionsCellItem\r\n disabled={action.disabled}\r\n key=\"view\"\r\n icon={<GridViewActionIcon isDisabled={action.disabled}/>}\r\n label={t(\"strView\")}\r\n onClick={() =>\r\n action.onClick(params)\r\n }\r\n />\r\n );\r\n break;\r\n\r\n case ButtonActionEnum.EDIT:\r\n actionItems.push(\r\n <GridActionsCellItem\r\n disabled={action.disabled}\r\n key=\"edit\"\r\n icon={<GridEditActionIcon isDisabled={action.disabled}/>}\r\n label={t(\"strEdit\")}\r\n onClick={() =>\r\n action.onClick(params)\r\n }\r\n />\r\n );\r\n break;\r\n\r\n case ButtonActionEnum.DELETE:\r\n actionItems.push(\r\n <GridActionsCellItem\r\n disabled={action.disabled}\r\n key=\"delete\"\r\n icon={<GridDeleteActionIcon isDisabled={action.disabled}/>}\r\n label={t(\"strDelete\")}\r\n onClick={() =>\r\n action.onClick(params)\r\n }\r\n />\r\n );\r\n break;\r\n case ButtonActionEnum.PRINT:\r\n actionItems.push(\r\n <GridActionsCellItem\r\n key=\"print\"\r\n icon={<GridPrintActionIcon />}\r\n label={t(\"strPrint\")}\r\n onClick={() =>\r\n action.onClick(params)\r\n }\r\n />\r\n );\r\n break;\r\n }\r\n }\r\n\r\n return actionItems;\r\n },\r\n };\r\nconst finalColumns = useMemo(() => {\r\n const updatedColumns = props.columns.map((column) => ({\r\n ...column,\r\n headerName: t(column.headerName!),\r\n minWidth:\r\n column.minWidth ||\r\n (isMobile ? 120 : 180),\r\n\r\n ...(isMobile\r\n ? {\r\n flex: undefined,\r\n }\r\n : {\r\n flex: column.flex || 1,\r\n }),\r\n }));\r\n\r\n const hasVisibleActions = props.actions?.some(\r\n (action) => !action.hidden\r\n );\r\n\r\n return [\r\n ...((showSerialNumber || false) === false\r\n ? []\r\n : [serialNumberColumn]),\r\n\r\n ...updatedColumns,\r\n\r\n ...(hasVisibleActions\r\n ? [actionColumn]\r\n : []),\r\n ];\r\n}, [\r\n props.columns,\r\n props.actions,\r\n isMobile,\r\n]);\r\n\r\n return {\r\n t,\r\n finalColumns,\r\n isMobile\r\n }\r\n}\r\n\r\nexport default useGridView;","import { DataGrid, type GridLocaleText } from \"@mui/x-data-grid\";\r\nimport React, { useMemo } from \"react\";\r\nimport { Box } from \"@mui/material\";\r\n\r\nimport useGridView, { type GridViewProps } from \"./dataGridController\";\r\nimport type { GridRowData } from \"libs/shared/types/common-types\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport type { UnknownAction } from \"@reduxjs/toolkit\";\r\n\r\nconst CustomDataGrid = <T extends GridRowData>(\r\n props: GridViewProps<T>\r\n) => {\r\n const {\r\n data,\r\n rowCount,\r\n paginationMode = \"server\",\r\n rowHeight,\r\n ...rest\r\n } = props;\r\n\r\n const { t, isMobile, finalColumns } = useGridView(props);\r\n const theme = useTheme();\r\n\r\n const remToPx = (rem: number): number => rem * 16;\r\n\r\n const localeText: Partial<GridLocaleText> = useMemo(\r\n () => ({\r\n noRowsLabel: t(\"grid.noRowsLabel\"),\r\n noResultsOverlayLabel: t(\"grid.noResultsOverlayLabel\"),\r\n toolbarColumns: t(\"grid.toolbarColumns\"),\r\n toolbarFilters: t(\"grid.toolbarFilters\"),\r\n toolbarExport: t(\"grid.toolbarExport\"),\r\n footerTotalRows: t(\"grid.footerTotalRows\"),\r\n footerRowSelected: (count) =>\r\n t(\"grid.footerRowSelected\", { count }),\r\n }),\r\n [t]\r\n );\r\n\r\n const HEADER_HEIGHT_REM = 3.2;\r\n const ROW_HEIGHT_REM = 3.7;\r\n\r\n const commonStyles = {\r\n border: `1px solid ${theme.palette.datagrid.heading}`,\r\n borderRadius: \"8px\",\r\n overflow: \"hidden\",\r\n\r\n \"& .MuiDataGrid-columnHeaderTitle\": {\r\n fontWeight: 700,\r\n whiteSpace: \"nowrap\",\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n },\r\n\r\n \"& .MuiDataGrid-cell\": {\r\n borderBottom: `1px solid ${theme.palette.datagrid.heading}`,\r\n whiteSpace: \"nowrap\",\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n },\r\n\r\n \"& .MuiDataGrid-row\": {\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n borderBottom: `1px solid ${theme.palette.datagrid.heading}`,\r\n transition: \"all 0.2s ease\",\r\n },\r\n\r\n \"& .MuiDataGrid-row:hover\": {\r\n backgroundColor: theme.palette.datagrid.filter,\r\n },\r\n\r\n \"& .MuiDataGrid-row.Mui-selected\": {\r\n backgroundColor: theme.palette.datagrid.filter,\r\n },\r\n\r\n \"& .MuiDataGrid-row.Mui-selected:hover\": {\r\n backgroundColor: theme.palette.datagrid.filter,\r\n },\r\n\r\n \"& .MuiCheckbox-root.Mui-checked\": {\r\n color: theme.palette.datagrid.filter,\r\n },\r\n\r\n \"& .MuiCheckbox-indeterminate\": {\r\n color: theme.palette.datagrid.filter,\r\n },\r\n\r\n \"& .MuiDataGrid-cell:focus, & .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-cell:focus-within\":\r\n {\r\n outline: `1px solid ${theme.palette.datagrid.filter}`,\r\n },\r\n\r\n \"& .MuiDataGrid-footerContainer\": {\r\n borderTop: `1px solid ${theme.palette.datagrid.heading}`,\r\n minHeight: \"56px\",\r\n },\r\n\r\n \"& .MuiDataGrid-overlay\": {\r\n minHeight: \"150px\",\r\n },\r\n\r\n \"& .MuiDataGrid-scrollbarFiller\": {\r\n backgroundColor: theme.palette.datagrid.heading,\r\n },\r\n\r\n \"& .disabled-row .MuiDataGrid-checkboxInput\": {\r\n pointerEvents: \"none\",\r\n opacity: 0.5,\r\n },\r\n };\r\n\r\n const gridStyles = useMemo(\r\n () => ({\r\n ...commonStyles,\r\n\r\n \"& .MuiDataGrid-columnHeaders\": {\r\n backgroundColor: theme.palette.datagrid.heading,\r\n borderBottom: `1px solid ${theme.palette.datagrid.heading}`,\r\n },\r\n\r\n \"& .MuiDataGrid-columnHeader\": {\r\n backgroundColor: theme.palette.datagrid.heading,\r\n color: theme.palette.text.primary,\r\n fontWeight: 700,\r\n fontSize: \"0.9rem\",\r\n borderRight: `1px solid ${theme.palette.datagrid.heading}`,\r\n },\r\n }),\r\n [theme]\r\n );\r\n\r\n const mobileGridStyles = useMemo(\r\n () => ({\r\n ...commonStyles,\r\n\r\n \"& .MuiDataGrid-columnHeaders\": {\r\n backgroundColor: theme.palette.datagrid.heading,\r\n },\r\n \"& .MuiDataGrid-columnHeader\": {\r\n backgroundColor: theme.palette.datagrid.heading,\r\n color: theme.palette.text.primary,\r\n fontWeight: 700,\r\n minWidth: \"6rem\",\r\n },\r\n \"& .MuiDataGrid-columnHeadersInner\": {\r\n minWidth: \"max-content\",\r\n },\r\n \"& .MuiDataGrid-virtualScrollerContent\": {\r\n minWidth: \"max-content\",\r\n },\r\n \"& .MuiDataGrid-row\": {\r\n minWidth: \"max-content\",\r\n },\r\n \"& .sticky-cell-action\": {\r\n position: \"sticky\",\r\n right: 0,\r\n zIndex: 10,\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n borderLeft: `1px solid ${theme.palette.datagrid.heading}`,\r\n },\r\n \"& .sticky-header-action\": {\r\n position: \"sticky\",\r\n right: 0,\r\n zIndex: 11,\r\n backgroundColor: theme.palette.datagrid.heading,\r\n borderLeft: `1px solid ${theme.palette.datagrid.heading}`,\r\n },\r\n \"& .MuiDataGrid-columnSeparator\": {\r\n display: \"none\",\r\n },\r\n \"& .MuiDataGrid-footerContainer\": {\r\n flexWrap: \"wrap\",\r\n },\r\n \"& .MuiDataGrid-virtualScroller\": {\r\n overflowX: \"auto !important\",\r\n overflowY: \"auto !important\",\r\n },\r\n \"& .MuiDataGrid-scrollbar\": {\r\n display: \"block\",\r\n },\r\n }),\r\n [theme]\r\n );\r\n\r\n const heightLogic =\r\n data.length > 10\r\n ? paginationMode === \"server\"\r\n ? \"calc(80vh - 10rem)\"\r\n : 400\r\n : 'auto';\r\n\r\n return (\r\n <Box\r\n sx={{\r\n mt: 2,\r\n mb: 2,\r\n width: \"100%\",\r\n maxWidth: \"100%\",\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n height: heightLogic,\r\n width: \"100%\",\r\n }}\r\n >\r\n <DataGrid\r\n {...rest}\r\n rows={data}\r\n columns={finalColumns}\r\n rowCount={\r\n paginationMode === \"server\"\r\n ? rowCount || data.length\r\n : data.length\r\n }\r\n paginationMode={paginationMode}\r\n columnHeaderHeight={remToPx(HEADER_HEIGHT_REM)}\r\n rowHeight={rowHeight || remToPx(ROW_HEIGHT_REM)}\r\n pageSizeOptions={[10, 25, 50, 100]}\r\n hideFooterSelectedRowCount\r\n localeText={localeText}\r\n sx={{\r\n ...(isMobile ? mobileGridStyles : gridStyles),\r\n width: \"100%\",\r\n \"& .MuiDataGrid-main\": {\r\n overflow: \"auto\",\r\n },\r\n \"& .MuiDataGrid-columnHeaders\": {\r\n minHeight: `${remToPx(\r\n HEADER_HEIGHT_REM\r\n )}px !important`,\r\n maxHeight: `${remToPx(\r\n HEADER_HEIGHT_REM\r\n )}px !important`,\r\n },\r\n }}\r\n slotProps={{\r\n pagination: {\r\n labelRowsPerPage: t(\"grid.rowsPerPage\"),\r\n labelDisplayedRows: ({\r\n from,\r\n to,\r\n count,\r\n }: UnknownAction) =>\r\n t(\"grid.displayedRows\", {\r\n from,\r\n to,\r\n count:\r\n count === -1\r\n ? `more than ${to}`\r\n : count,\r\n }),\r\n },\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default React.memo(CustomDataGrid);","import { Autocomplete, type AutocompleteProps } from \"@mui/material\";\r\nimport type { FieldObject } from \"libs/shared/types/common-types\";\r\n\r\ntype AutoCompleteBasePropTypes<T> = AutocompleteProps<T, boolean, boolean, boolean>\r\n\r\nexport default function AutoCompleteInputField<T extends FieldObject>(props: Readonly<AutoCompleteBasePropTypes<T>>) {\r\n return <Autocomplete {...props} fullWidth />;\r\n}\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDown');","import { useTranslation } from \"react-i18next\";\r\n\r\nimport {\r\n Stack,\r\n TextField,\r\n} from \"@mui/material\";\r\n\r\nimport KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';\r\nimport useMasterFetchApi from \"hooks/useMasterFetch\";\r\nimport { useAppThemeContext } from \"libs/core/context/AppThemeContext\";\r\nimport type { FieldObject, SelectExtendedPropTypes } from \"libs/shared/types/common-types\";\r\nimport { useEffect, useState } from \"react\";\r\nimport HelperTextCommon from \"../HelperTextCommon\";\r\n\r\nimport useTheme from \"@mui/system/useTheme\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport PreviewText from \"ui/previewText/PreviewText\";\r\nimport Typography2 from \"../typography/Typography2\";\r\nimport AutoCompleteInputField from \"./AutocompleteInputField\";\r\n\r\nexport default function SelectInputField<T extends FieldObject>(props: Readonly<SelectExtendedPropTypes<T>>) {\r\n const { t } = useTranslation();\r\n const { fontSize } = useAppThemeContext();\r\n const [inputValue, setInputValue] = useState(props.inputValue || \"\");\r\n\r\n useEffect(() => {\r\n if (props.inputValue) {\r\n setInputValue(props.inputValue)\r\n }\r\n }, [props.inputValue])\r\n\r\n const {\r\n label,\r\n placeholder = t(\"strSelect\"),\r\n validation,\r\n width,\r\n selectoptionindexkey,\r\n selectoptiontitlekey,\r\n fieldSize,\r\n fieldvalue,\r\n disabledOptions,\r\n autoSx,\r\n mt,\r\n disabled = false\r\n } = props;\r\n\r\n const [masterData] = useMasterFetchApi<T>(props);\r\n\r\n const data = props.options?.length ? props.options : masterData;\r\n const theme = useTheme();\r\n const inputKey = (selectoptionindexkey ?? MASTER_DATA_KEYS.CODE) as keyof T;\r\n const labelKey = (selectoptiontitlekey ?? MASTER_DATA_KEYS.VALUE) as keyof T;\r\n const freeSolo = props.freeSolo ?? false;\r\n const defaultSelectOption = {\r\n [inputKey]: -1,\r\n [labelKey]: t(placeholder ?? \"strSelect\"),\r\n } as T;\r\n\r\n // Combine with existing data\r\n const optionsWithSelect = [defaultSelectOption, ...data];\r\n\r\n const selectedItem = optionsWithSelect.find((item) => item[inputKey] == (fieldvalue ?? 0)) ?? null;\r\n\r\n\r\n return (\r\n <PreviewText label={label} value={inputValue}>\r\n <Stack\r\n sx={{\r\n mt,\r\n width: width || undefined,\r\n \"& > :not(style) ~ :not(style)\": {\r\n marginTop: 0,\r\n },\r\n }}\r\n >\r\n {label && (\r\n <Typography2 text={label} isRequired={!disabled && validation?.required} sx={{ fontSize: fontSize, color: theme.palette.text.primary }} />\r\n )}\r\n\r\n <AutoCompleteInputField<T>\r\n freeSolo={freeSolo}\r\n forcePopupIcon={!freeSolo}\r\n {...props}\r\n inputValue={inputValue}\r\n onInputChange={(event, newInputValue, reason) => {\r\n setInputValue(newInputValue);\r\n props.onInputChange?.(event, newInputValue, reason);\r\n }}\r\n disableClearable\r\n sx={{ borderRadius: \"0.5rem\", ...autoSx, fontSize: fontSize }}\r\n popupIcon={freeSolo ? null : <KeyboardArrowDownIcon />}\r\n size={fieldSize || 'small'}\r\n value={selectedItem}\r\n options={optionsWithSelect || []}\r\n getOptionDisabled={(option: T) =>\r\n disabledOptions?.includes(option?.[inputKey]) || false\r\n }\r\n getOptionLabel={(option: T | string) => {\r\n if (typeof option === \"string\") return option;\r\n return option?.[labelKey] ? String(option[labelKey]) : \"\";\r\n }}\r\n renderInput={(params) => (\r\n <TextField\r\n {...params}\r\n variant=\"outlined\"\r\n placeholder={disabled ? '' : t(placeholder)}\r\n error={props?.error || false}\r\n sx={{\r\n '.MuiFormHelperText-root': {\r\n backgroundColor: props?.helpertextbg ?? theme.palette.menuText.primary,\r\n margin: 0\r\n },\r\n backgroundColor: disabled ? theme.palette.disabled.main : theme.palette.menuText.primary,\r\n '.MuiInputBase-input': {\r\n backgroundColor: disabled ? theme.palette.disabled.main : theme.palette.menuText.primary,\r\n height: '1.44rem',\r\n fontSize: fontSize,\r\n color: 'primary.main'\r\n },\r\n '.MuiSvgIcon-root': {\r\n fill: 'primary.main',\r\n color: \"primary.main\"\r\n },\r\n '.MuiTextField-root': {\r\n backgroundColor: disabled ? theme.palette.disabled.main : theme.palette.menuText.primary,\r\n },\r\n \"& .MuiOutlinedInput-root.Mui-focused fieldset\": {\r\n borderColor: 'primary.main',\r\n border: `1px solid primary.main`\r\n },\r\n '& ::placeholder': { fontSize: fontSize, color: theme.palette.placeholdertext },\r\n ...props.sx\r\n }}\r\n />\r\n )}\r\n />\r\n {/* {!disabled && !!props?.helperText} */}\r\n {props?.helperText && (<HelperTextCommon text={props?.helperText} />)}\r\n </Stack>\r\n </PreviewText>\r\n );\r\n};","export default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? {\n ...Component.propTypes\n } : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes?.[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","import requirePropFactory from '@mui/utils/requirePropFactory';\nexport default requirePropFactory;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createGrid } from '@mui/system/Grid';\nimport requirePropFactory from \"../utils/requirePropFactory.mjs\";\nimport { styled } from \"../styles/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport useTheme from \"../styles/useTheme.mjs\";\n/**\n *\n * Demos:\n *\n * - [Grid](https://mui.com/material-ui/react-grid/)\n *\n * API:\n *\n * - [Grid API](https://mui.com/material-ui/api/grid/)\n */\nconst Grid = createGrid({\n createStyledComponent: styled('div', {\n name: 'MuiGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.container && styles.container];\n }\n }),\n componentName: 'MuiGrid',\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiGrid'\n }),\n useTheme\n});\nprocess.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The number of columns.\n * @default 12\n */\n columns: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n /**\n * Defines the horizontal space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n columnSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * If `true`, the component will have the flex *container* behavior.\n * You should be wrapping *items* with a *container*.\n * @default false\n */\n container: PropTypes.bool,\n /**\n * Defines the `flex-direction` style property for the container.\n *\n * ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,\n * because the Grid component is designed to subdivide layouts into **columns**, not rows.\n *\n * For vertical layouts, use `Stack` instead.\n *\n * @default 'row'\n */\n direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['row-reverse', 'row'])), PropTypes.object]),\n /**\n * Defines the offset value for the type `item` components.\n */\n offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the vertical space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * Defines the size of the the type `item` components.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the space between the type `item` components.\n * It can only be used on a type `container` component.\n * @default 0\n */\n spacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * @ignore\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @internal\n * The level of the grid starts from `0` and increases when the grid nests\n * inside another grid. Nesting is defined as a container Grid being a direct\n * child of a container Grid.\n *\n * ```js\n * <Grid container> // level 0\n * <Grid container> // level 1\n * <Grid container> // level 2\n * ```\n *\n * Only consecutive grid is considered nesting. A grid container will start at\n * `0` if there are non-Grid container element above it.\n *\n * ```js\n * <Grid container> // level 0\n * <div>\n * <Grid container> // level 0\n * ```\n *\n * ```js\n * <Grid container> // level 0\n * <Grid>\n * <Grid container> // level 0\n * ```\n */\n unstable_level: PropTypes.number,\n /**\n * Defines the `flex-wrap` style property.\n * It's applied for all screen sizes.\n * @default 'wrap'\n */\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n const Component = Grid;\n const requireProp = requirePropFactory('Grid', Component);\n // eslint-disable-next-line no-useless-concat\n Component['propTypes' + ''] = {\n // eslint-disable-next-line react/forbid-foreign-prop-types\n ...Component.propTypes,\n direction: requireProp('container'),\n spacing: requireProp('container'),\n wrap: requireProp('container')\n };\n}\nexport default Grid;","import Grid, { type GridProps } from \"@mui/material/Grid\";\r\nimport type { ReactNode } from \"react\";\r\n\r\ninterface Props extends Omit<GridProps, \"container\"> {\r\n children?: ReactNode;\r\n}\r\n\r\nexport default function GridContainer({\r\n children,\r\n rowSpacing = 2,\r\n columnSpacing = 4,\r\n sx,\r\n ...rest\r\n}: Readonly<Props>) {\r\n return (\r\n <Grid container rowSpacing={rowSpacing} columnSpacing={columnSpacing} {...rest} sx={{\r\n mt: 2,\r\n ...sx,\r\n }}>\r\n {children}\r\n </Grid>\r\n );\r\n}\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92z\"\n}), 'MicNoneOutlined');","import MicNoneOutlinedIcon from \"@mui/icons-material/MicNoneOutlined\";\r\nimport { Box, Grid, IconButton, InputAdornment, Stack, TextField, Tooltip } from \"@mui/material\";\r\nimport useTheme from \"@mui/system/useTheme\";\r\nimport { useAppThemeContext } from \"libs/core/context/AppThemeContext\"; \r\nimport React, { useMemo, type JSX } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toLocaleString } from \"utils/commonFunctions\";\r\nimport CustomizedTooltip from \"../toolTips/CustomizedTooltip\";\r\nimport Typography2 from \"../typography/Typography2\";\r\nimport PreviewText from \"ui/previewText/PreviewText\";\r\nimport type { TextInputFieldPropTypes } from \"./TextInputField.type\";\r\n\r\n\r\nconst TextInputField: React.FC<TextInputFieldPropTypes> = ({\r\n label,\r\n validation,\r\n size = 'small',\r\n mt = 0,\r\n value = \"\",\r\n width,\r\n disabled = false,\r\n autosx,\r\n slotProps,\r\n helperText,\r\n error,\r\n onChange,\r\n sx,\r\n endIcon,\r\n startIcon,\r\n tooltip,\r\n unitLabel,\r\n prefixWidth = 110,\r\n ...props\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n\r\n const { fontSize } = useAppThemeContext();\r\n\r\n const theme = useTheme();\r\n\r\n const currentLength = useMemo(\r\n () => String(value ?? \"\").length,\r\n [value]\r\n );\r\n\r\n const maxLength =\r\n validation?.maxLength ||\r\n validation?.length ||\r\n 100;\r\n\r\n const placeHolderValue = label\r\n ? t(\"strPlaceholder\", {\r\n field: t(label),\r\n })\r\n : \"\";\r\n\r\n const handleInputChange = (\r\n event: React.ChangeEvent<HTMLInputElement>\r\n ) => {\r\n let updatedValue = event.target.value.replace(\r\n /^\\s+/,\r\n \"\"\r\n );\r\n\r\n if (\r\n validation?.isNotAllowdCharacters &&\r\n validation?.notAllowedString\r\n ) {\r\n const regexPattern = new RegExp(\r\n validation.notAllowedString,\r\n \"gu\"\r\n );\r\n\r\n updatedValue = updatedValue.replace(\r\n regexPattern,\r\n \"\"\r\n );\r\n\r\n if (validation.extraRegex) {\r\n const extraPattern = new RegExp(\r\n validation.extraRegex,\r\n \"gu\"\r\n );\r\n\r\n updatedValue = updatedValue.replace(\r\n extraPattern,\r\n \"$1\"\r\n );\r\n }\r\n }\r\n\r\n if (onChange) {\r\n event.target.value = updatedValue;\r\n onChange(event);\r\n }\r\n };\r\n\r\n return (\r\n <PreviewText label={label as string} value={value as string}>\r\n <Stack\r\n sx={{\r\n mt,\r\n width: width || undefined,\r\n\r\n \"& > :not(style) ~ :not(style)\": {\r\n marginTop: 0,\r\n },\r\n }}\r\n >\r\n {label && (\r\n <Typography2\r\n text={label}\r\n fontWeight={400}\r\n isRequired={\r\n !disabled &&\r\n validation?.required\r\n }\r\n sx={{\r\n color:theme.palette.text.primary,\r\n fontSize,\r\n mb: 0.5,\r\n }}\r\n />\r\n )}\r\n\r\n <Tooltip\r\n title={tooltip ? t(tooltip) : \"\"}\r\n disableInteractive={!tooltip}\r\n >\r\n <TextField\r\n {...props}\r\n value={value}\r\n onChange={handleInputChange}\r\n placeholder={\r\n disabled\r\n ? \"\"\r\n : placeHolderValue\r\n }\r\n fullWidth\r\n size={size}\r\n disabled={disabled}\r\n variant=\"outlined\"\r\n error={error}\r\n slotProps={{\r\n ...slotProps,\r\n\r\n htmlInput: {\r\n ...slotProps?.htmlInput,\r\n\r\n maxLength:\r\n maxLength > 0\r\n ? maxLength\r\n : undefined,\r\n\r\n style: {\r\n height: \"1.44rem\",\r\n },\r\n },\r\n\r\n input: {\r\n ...slotProps?.input,\r\n\r\n sx: {\r\n backgroundColor: disabled\r\n ? theme.palette.datagrid.heading\r\n : \"#fff\",\r\n\r\n ...(unitLabel && {\r\n paddingLeft: 0,\r\n }),\r\n },\r\n startAdornment: unitLabel ? (\r\n <InputAdornment\r\n position=\"start\"\r\n sx={{\r\n marginRight: 0,\r\n alignSelf: \"stretch\",\r\n maxHeight: \"none\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: prefixWidth - 20,\r\n minWidth: prefixWidth - 30,\r\n height: \"100%\",\r\n minHeight: 40,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n bgcolor: theme.palette.datagrid.filter,\r\n color: 'primary.main',\r\n borderRight: `1px solid ${theme.palette.datagrid.filter}`,\r\n fontWeight: 500,\r\n typography: \"body1\",\r\n px: 2,\r\n maxWidth: '20ch',\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n textOverflow: 'ellipsis',\r\n }}\r\n >\r\n {typeof unitLabel === \"string\" ? (\r\n <Typography2 fontWeight={500} title={unitLabel} text={unitLabel} />\r\n ) : (\r\n unitLabel\r\n )}\r\n </Box>\r\n </InputAdornment>\r\n ) : (\r\n startIcon?.showIcon &&\r\n startIcon.Component && (\r\n <InputAdornment position=\"start\">\r\n <CustomizedTooltip\r\n title={\r\n startIcon.toolTip ??\r\n \"\"\r\n }\r\n >\r\n <IconButton\r\n edge=\"start\"\r\n sx={{\r\n color:\r\n startIcon.iconColor ??\r\n \"primary.main\",\r\n }}\r\n >\r\n {startIcon.Component}\r\n </IconButton>\r\n </CustomizedTooltip>\r\n </InputAdornment>\r\n )\r\n ),\r\n ...(endIcon?.showIcon &&\r\n !disabled && {\r\n endAdornment: (\r\n <InputAdornment\r\n position=\"end\"\r\n sx={{\r\n position: \"absolute\",\r\n right: 0,\r\n }}\r\n >\r\n <CustomizedTooltip\r\n title={\r\n endIcon?.toolTip ??\r\n \"strComingSoon\"\r\n }\r\n >\r\n <IconButton\r\n edge=\"end\"\r\n onClick={(event) =>\r\n endIcon?.customIconClick?.(\r\n event\r\n )\r\n }\r\n sx={{\r\n color:\r\n endIcon?.iconColor ??\r\n \"primary.main\",\r\n pr: 2,\r\n }}\r\n >\r\n {endIcon?.Component ?? (\r\n <MicNoneOutlinedIcon />\r\n )}\r\n </IconButton>\r\n </CustomizedTooltip>\r\n </InputAdornment>\r\n ),\r\n }),\r\n },\r\n }}\r\n sx={{\r\n \".MuiFormHelperText-root\": {\r\n backgroundColor:\r\n theme.palette.menuText.primary,\r\n margin: 0,\r\n },\r\n\r\n \"& ::placeholder\": {\r\n fontSize,\r\n color: theme.palette.placeholdertext\r\n },\r\n\r\n \"& input[type=number]\": {\r\n MozAppearance: \"textfield\",\r\n },\r\n\r\n \"& input[type=number]::-webkit-outer-spin-button\":\r\n {\r\n WebkitAppearance: \"none\",\r\n margin: 0,\r\n },\r\n\r\n \"& input[type=number]::-webkit-inner-spin-button\":\r\n {\r\n WebkitAppearance: \"none\",\r\n margin: 0,\r\n },\r\n\r\n \"& .MuiOutlinedInput-root\": {\r\n paddingRight: 0,\r\n color: \"primary.main\",\r\n\r\n ...(unitLabel && {\r\n paddingLeft: 0,\r\n overflow: \"hidden\",\r\n\r\n \"& .MuiOutlinedInput-input\": {\r\n paddingLeft: 2,\r\n },\r\n }),\r\n },\r\n\r\n \"& .MuiOutlinedInput-notchedOutline\": {\r\n borderColor: \"#D9DDE7\",\r\n },\r\n\r\n \"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline\":\r\n {\r\n borderColor:\r\n theme.palette.primary.main,\r\n },\r\n\r\n \"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline\":\r\n {\r\n borderWidth: 2,\r\n borderColor:\r\n theme.palette.primary.main,\r\n },\r\n\r\n ...(unitLabel && {\r\n \"& .MuiInputAdornment-root\": {\r\n marginRight: 0,\r\n alignSelf: \"stretch\",\r\n maxHeight: \"none\",\r\n },\r\n\r\n \"& .MuiInputAdornment-root > div\": {\r\n height: \"100%\",\r\n },\r\n }),\r\n\r\n ...autosx,\r\n ...sx,\r\n }}\r\n />\r\n </Tooltip>\r\n {!disabled && (validation?.maxLength || helperText) && (\r\n <Grid\r\n container\r\n rowSpacing={0}\r\n sx={{\r\n justifyContent: 'space-between', alignItems: 'center', width: '100%'\r\n }}\r\n >\r\n <Typography2\r\n text={error ? helperText : \"\"}\r\n variantType=\"error\"\r\n sx={{ minHeight: \"1rem\", fontSize: fontSize && (fontSize - 2) }}\r\n />\r\n\r\n {validation?.maxLength && (\r\n <Typography2\r\n text={`${toLocaleString(currentLength)} / ${toLocaleString(maxLength)} ${t(\"strCharacters\")}`}\r\n variant=\"body2\"\r\n sx={{\r\n fontSize: fontSize && (fontSize - 2),\r\n color: \"text.primary\",\r\n }}\r\n />\r\n )}\r\n </Grid>\r\n )}\r\n </Stack>\r\n </PreviewText>\r\n );\r\n};\r\n\r\nexport default React.memo(TextInputField);\r\n","import { Box } from \"@mui/material\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport { useAppThemeContext } from \"libs/core/context/AppThemeContext\";\r\nimport type { FieldObject } from \"libs/shared/types/common-types\";\r\nimport GridContainer from \"ui/grid/GridContainer\";\r\nimport type { SelectTextInputFieldProps } from \"./selectTextInputField.types\";\r\nimport TextInputField from \"ui/textInput/TextInputField\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport SelectInputField from \"./SelectInputField\";\r\n\r\n\r\nexport default function SelectTextInputField<T extends FieldObject>({ label, required, selectProps, textFieldProps, disabled, helpertextbg = '#F9F9FF' }: SelectTextInputFieldProps<T>) {\r\n const { fontSize } = useAppThemeContext();\r\n const theme = useTheme();\r\n\r\n return (\r\n <Box>\r\n {label !== undefined && <Typography2 text={label} fontWeight={400} isRequired={!disabled && required} sx={{ flexDirection: \"row\", justifyContent: \"start\", fontSize }} />}\r\n\r\n <GridContainer columnSpacing={0} sx={{ \"&.MuiGrid-root\":{ marginTop:0 }}}>\r\n <SelectInputField<T>\r\n mt={0}\r\n autoSx={{ borderRadius: '0', '.MuiOutlinedInput-notchedOutline': { borderTopRightRadius: 0, borderBottomRightRadius: 0 } }}\r\n {...selectProps}\r\n />\r\n <TextInputField\r\n mt={0}\r\n sx={\r\n {\r\n '.MuiOutlinedInput-notchedOutline':\r\n { borderTopLeftRadius: 0, borderBottomLeftRadius: 0, borderLeft: 0 },\r\n '.MuiFormHelperText-root': {\r\n backgroundColor: helpertextbg?helpertextbg : null,\r\n margin: 0,\r\n },\r\n backgroundColor: disabled\r\n ? theme.palette.disabled.main\r\n : \"white\",\r\n \".MuiInputBase-input\": {\r\n backgroundColor: disabled\r\n ? theme.palette.disabled.main\r\n : \"white\",\r\n height: \"1.2rem\",\r\n },\r\n '& ::placeholder': { fontSize: fontSize },\r\n }}\r\n {...textFieldProps}\r\n />\r\n </GridContainer>\r\n </Box>\r\n );\r\n}","import Grid, { type GridProps } from \"@mui/material/Grid\";\r\nimport { THREE_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\n\r\nexport default function GridItem({ children, size = THREE_COLUMN_LAYOUT, ...rest }: Readonly<GridProps>) {\r\n return (\r\n <Grid size={size} {...rest}>\r\n {children}\r\n </Grid>\r\n );\r\n}\r\n","import React from \"react\";\r\n\r\nimport { Box, Divider } from \"@mui/material\";\r\nimport useTheme from \"@mui/system/useTheme\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport type { CustomHeadingProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst CustomHeading: React.FC<CustomHeadingProps> = ({ text, sx, required = false }) => {\r\n const theme = useTheme();\r\n const { t } = useTranslation();\r\n return (\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n gap: 1,\r\n mb: 2,\r\n mt: 2,\r\n ...sx\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n width: 8,\r\n height: 8,\r\n backgroundColor: theme.palette.text.primary,\r\n borderRadius: \"1px\",\r\n flexShrink: 0,\r\n }}\r\n />\r\n <Typography2\r\n color={theme.palette.text.primary}\r\n text={\r\n <>\r\n {t(text)}\r\n {required && (\r\n <Typography2\r\n text=\"*\"\r\n component=\"span\"\r\n sx={{\r\n color: \"error.main\",\r\n ml: 0.5,\r\n fontSize: \"inherit\",\r\n fontWeight: \"inherit\",\r\n lineHeight: \"inherit\",\r\n }}\r\n />\r\n )}\r\n </>\r\n }\r\n sx={{\r\n fontSize: \"1rem\",\r\n fontWeight: 600,\r\n color:theme.palette.text.primary,\r\n whiteSpace: \"nowrap\",\r\n lineHeight: 1,\r\n }}\r\n />\r\n <Divider\r\n sx={{\r\n flex: 1,\r\n borderColor: theme.palette.divider,\r\n }}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nexport default React.memo(CustomHeading);\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 6v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V4c-4.42 0-8 3.58-8 8 0 1.04.2 2.04.57 2.95.27.67 1.13.85 1.64.34.27-.27.38-.68.23-1.04C6.15 13.56 6 12.79 6 12c0-3.31 2.69-6 6-6m5.79 2.71c-.27.27-.38.69-.23 1.04.28.7.44 1.46.44 2.25 0 3.31-2.69 6-6 6v-1.79c0-.45-.54-.67-.85-.35l-2.79 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.31.31.85.09.85-.35V20c4.42 0 8-3.58 8-8 0-1.04-.2-2.04-.57-2.95-.27-.67-1.13-.85-1.64-.34\"\n}), 'AutorenewRounded');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0\"\n}), 'CheckCircleRounded');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z\"\n}), 'DescriptionOutlined');","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createStack } from '@mui/system';\nimport styled from \"../styles/styled.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nconst Stack = createStack({\n createStyledComponent: styled('div', {\n name: 'MuiStack',\n slot: 'Root'\n }),\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiStack'\n })\n});\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'column'\n */\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Add an element between each child.\n */\n divider: PropTypes.node,\n /**\n * Defines the space between immediate children.\n * @default 0\n */\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * The system prop, which allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n *\n * While CSS `gap` removes the known limitations,\n * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n *\n * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.\n * @default false\n */\n useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;"," \r\nimport Stack from \"@mui/material/Stack\";\r\nimport type { InfoPairProps, InfoPairTextProps } from \"libs/shared/types/common-types\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\n\r\n\r\nconst InfoPair: React.FC<InfoPairProps> & {\r\n Label: React.FC<InfoPairTextProps>;\r\n Value: React.FC<InfoPairTextProps>;\r\n} = ({\r\n children,\r\n direction = \"column\",\r\n align = \"flex-start\",\r\n py = 2,\r\n justifyContent = \"flex-start\"\r\n}) => { \r\n return (\r\n <Stack\r\n direction={direction}\r\n sx={{\r\n alignItems: align,\r\n justifyContent: justifyContent,\r\n paddingBottom: 0,\r\n paddingTop: (theme) => theme.spacing(py),\r\n }}\r\n>\r\n {children}\r\n</Stack>\r\n );\r\n};\r\n\r\nconst Label: React.FC<InfoPairTextProps> = ({ children, sx }) => { \r\n return (\r\n <Typography2\r\n component=\"span\"\r\n sx={{ \r\n fontWeight: 500,\r\n ...sx,\r\n color: \"red\",\r\n }} text={String(children)} >\r\n \r\n </Typography2>\r\n );\r\n}\r\n\r\nconst Value: React.FC<InfoPairTextProps> = ({ children }) => {\r\n return (\r\n <span\r\n style={{\r\n color: \"blue\",\r\n fontWeight: 600,\r\n }}\r\n >\r\n {children}\r\n </span>\r\n );\r\n};\r\n\r\nInfoPair.Label = Label;\r\nInfoPair.Value = Value;\r\n\r\nexport default InfoPair;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport {\r\n Box,\r\n Typography,\r\n Divider,\r\n alpha,\r\n} from \"@mui/material\";\r\nimport AutorenewRoundedIcon from \"@mui/icons-material/AutorenewRounded\";\r\nimport CheckCircleRoundedIcon from \"@mui/icons-material/CheckCircleRounded\";\r\nimport DescriptionOutlinedIcon from \"@mui/icons-material/DescriptionOutlined\";\r\nimport { t } from \"i18next\";\r\nimport InfoPair from \"./Infopair\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport type { AutoSaveIndicatorProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst AutoSaveIndicator: React.FC<AutoSaveIndicatorProps> = ({\r\n isSaving,\r\n draftNo,\r\n onSave,\r\n lastSaveTime,\r\n isViewMode = false,\r\n startLabel,\r\n startValue,\r\n endLabel,\r\n endValue,\r\n paddingLeft,\r\n paddingRight,\r\n}) => {\r\n const [lastSavedTime, setLastSavedTime] = useState(\"\");\r\n const theme = useTheme();\r\n\r\n useEffect(() => {\r\n if (lastSaveTime) {\r\n setLastSavedTime(lastSaveTime);\r\n } else if (!isSaving) {\r\n const now = new Date();\r\n\r\n setLastSavedTime(\r\n now.toLocaleTimeString([], {\r\n hour: \"2-digit\",\r\n minute: \"2-digit\",\r\n })\r\n );\r\n }\r\n }, [lastSaveTime, isSaving]);\r\n\r\n if (isViewMode) {\r\n return (\r\n <Box\r\n sx={{\r\n pl: paddingLeft ?? 0,\r\n pr: paddingRight ?? 0,\r\n }}\r\n >\r\n {startLabel && (\r\n <InfoPair direction=\"row\" py={0}>\r\n <InfoPair.Label>{t(startLabel)}</InfoPair.Label>\r\n <InfoPair.Value>{startValue}</InfoPair.Value>\r\n </InfoPair>\r\n )}\r\n\r\n {endLabel && (\r\n <InfoPair direction=\"row\" py={0}>\r\n <InfoPair.Label>{t(endLabel)}</InfoPair.Label>\r\n <InfoPair.Value>{endValue}</InfoPair.Value>\r\n </InfoPair>\r\n )}\r\n </Box>\r\n );\r\n }\r\n\r\n return (\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n borderRadius: 2,\r\n bgcolor: theme.palette.background.paper,\r\n overflow: \"hidden\",\r\n minWidth: 270,\r\n pl: paddingLeft ?? 1,\r\n\r\n }}\r\n >\r\n {/* Status */}\r\n\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n gap: 1,\r\n pr: 3,\r\n }}\r\n >\r\n <Box\r\n onClick={onSave}\r\n sx={{\r\n width:{\r\n xs: 30,\r\n sm: 45,\r\n },\r\n height:{\r\n xs: 30,\r\n sm: 45,\r\n },\r\n borderRadius: \"50%\",\r\n bgcolor: alpha(theme.palette.success.main, 0.12),\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n cursor: onSave ? \"pointer\" : \"default\",\r\n }}\r\n >\r\n {isSaving ? (\r\n <AutorenewRoundedIcon\r\n sx={{\r\n color: theme.palette.success.main,\r\n fontSize:{\r\n xs: 24,\r\n sm: 30,\r\n },\r\n animation: \"spin 1s linear infinite\",\r\n \"@keyframes spin\": {\r\n from: {\r\n transform: \"rotate(0deg)\",\r\n },\r\n to: {\r\n transform: \"rotate(360deg)\",\r\n },\r\n },\r\n }}\r\n />\r\n ) : (\r\n <CheckCircleRoundedIcon\r\n sx={{\r\n color: theme.palette.success.main,\r\n fontSize: {\r\n xs: 24,\r\n sm: 30,\r\n }\r\n }}\r\n />\r\n )}\r\n </Box>\r\n\r\n <Box>\r\n <Typography\r\n sx={{\r\n fontWeight: 600,\r\n fontSize: {\r\n xs: 12,\r\n sm: 14,\r\n },\r\n color: theme.palette.text.primary,\r\n }}\r\n >\r\n {isSaving\r\n ? t(\"strAutoSaving\")\r\n : t(\"strLastSaved\")}\r\n </Typography>\r\n\r\n <Typography\r\n sx={{\r\n fontWeight: 600,\r\n color:theme.palette.text.primary,\r\n fontSize:{\r\n xs: 12,\r\n sm: 14,\r\n },\r\n }}\r\n >\r\n\r\n {lastSavedTime}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n\r\n <Divider\r\n orientation=\"vertical\"\r\n flexItem\r\n sx={{\r\n mx: {\r\n xs: 1,\r\n sm: 2,\r\n },\r\n }}\r\n />\r\n\r\n {/* Draft */}\r\n\r\n <Box\r\n sx={{\r\n minWidth: 120,\r\n px: {\r\n xs: 0,\r\n sm: 2,\r\n },\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n gap: {\r\n xs: 0,\r\n sm: 1,\r\n },\r\n }}\r\n >\r\n <DescriptionOutlinedIcon\r\n sx={{ color: theme.palette.text.primary}}\r\n fontSize=\"small\"\r\n />\r\n\r\n <Box>\r\n <Typography\r\n sx={{\r\n fontWeight: 600,\r\n fontSize: {\r\n xs: 12,\r\n sm: 14,\r\n },\r\n color:theme.palette.text.primary,\r\n }}\r\n >\r\n {t(\"strDraftNo\")}\r\n </Typography>\r\n\r\n <Typography\r\n sx={{\r\n fontWeight: 600,\r\n color:theme.palette.text.primary,\r\n fontSize: {\r\n xs: 12,\r\n sm: 14,\r\n },\r\n }}\r\n >\r\n {draftNo ?? \"-\"}\r\n </Typography>\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default AutoSaveIndicator;\r\n","import React, { useMemo } from \"react\";\r\nimport {\r\n Box,\r\n Card,\r\n CardActions,\r\n CardContent,\r\n IconButton,\r\n Stack,\r\n} from \"@mui/material\";\r\nimport useDevice from \"hooks/useDevice\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport AutoSaveIndicator from \"ui/indicator/AutoSaveIndicator\";\r\nimport CustomizedTooltip from \"ui/toolTips/CustomizedTooltip\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport type { HeaderActionsProps, MainCardProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst HeaderActions = ({\r\n isShowClose,\r\n isShowPrint,\r\n onPrint,\r\n onHeaderClose,\r\n}: HeaderActionsProps) => {\r\n const { t } = useTranslation();\r\n\r\n if (!isShowClose) {\r\n return (\r\n <Stack direction=\"row\" spacing={1}>\r\n {/* Additional Actions */}\r\n </Stack>\r\n );\r\n }\r\n\r\n return (\r\n <Stack direction=\"row\" spacing={0.5}>\r\n {isShowPrint && (\r\n <CustomizedTooltip title={t(\"strPrint\")}>\r\n <IconButton size=\"small\" onClick={onPrint}>\r\n {/* Print Icon */}\r\n </IconButton>\r\n </CustomizedTooltip>\r\n )}\r\n\r\n <CustomizedTooltip title={t(\"strClose\")}>\r\n <IconButton size=\"small\" onClick={onHeaderClose}>\r\n {/* Close Icon */}\r\n </IconButton>\r\n </CustomizedTooltip>\r\n </Stack>\r\n );\r\n};\r\n\r\nconst MainCard: React.FC<MainCardProps> = ({\r\n title,\r\n mainTabName = \"\",\r\n width = \"100%\",\r\n height,\r\n children,\r\n stepperComponent,\r\n stepRendererComponent,\r\n isShowClose = false,\r\n isShowPrint = false,\r\n onHeaderClose,\r\n onPrint,\r\n footer,\r\n contentSX,\r\n\r\n showAutoSaveIndicator = false,\r\n autoSaveProps,\r\n}) => {\r\n const { t } = useTranslation();\r\n const { isMobile } = useDevice();\r\n const topHeight = isMobile ? \"calc(100vh - 11.5rem)\" : \"calc(100vh - 6.5rem)\";\r\n const theme = useTheme();\r\n const svgDataUri = useMemo(() => {\r\n const svg = `\r\n <svg width=\"500\" height=\"500\" viewBox=\"0 0 500 500\"\r\n xmlns=\"http://www.w3.org/2000/svg\">\r\n <circle\r\n cx=\"250\"\r\n cy=\"250\"\r\n r=\"180\"\r\n fill=\"#808080\"\r\n opacity=\"0.06\"\r\n />\r\n </svg>`;\r\n\r\n return `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;\r\n }, []);\r\n\r\n return (\r\n <Card\r\n elevation={0}\r\n sx={{\r\n width,\r\n height: height ? height : topHeight,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n backgroundColor: \"transparent\",\r\n background: \"transparent\",\r\n boxShadow: \"none\",\r\n borderRadius: 2,\r\n overflow: \"hidden\",\r\n }}\r\n >\r\n <CardContent\r\n sx={{\r\n flex: 1,\r\n p: 0,\r\n overflow: \"hidden\",\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n }}\r\n >\r\n {/* Watermark */}\r\n <Box\r\n component=\"img\"\r\n src={svgDataUri}\r\n alt=\"watermark\"\r\n sx={{\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n transform: \"translate(-50%, -50%)\",\r\n width: \"35%\",\r\n opacity: 0.2,\r\n pointerEvents: \"none\",\r\n userSelect: \"none\",\r\n zIndex: 0,\r\n }}\r\n />\r\n\r\n <Box\r\n sx={{\r\n flex: 1,\r\n overflowY: \"auto\",\r\n overflowX: \"hidden\",\r\n position: \"relative\",\r\n zIndex: 1,\r\n scrollbarWidth: \"thin\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n pl: 2,\r\n py: 1,\r\n mb:1,\r\n backgroundColor: theme.palette.background.paper,\r\n borderBottom: \"1px solid\",\r\n borderColor: \"divider\",\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n gap: 2,\r\n flexWrap: \"wrap\"\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n flexWrap: \"wrap\",\r\n gap: 1,\r\n minWidth: 0,\r\n flex: 1,\r\n }}\r\n >\r\n <Typography2\r\n text={t(title)}\r\n variant=\"h6\"\r\n sx={{\r\n fontWeight: 600,\r\n }}\r\n />\r\n\r\n {mainTabName && (\r\n <>\r\n <Typography2\r\n text=\">\"\r\n color=\"text.secondary\"\r\n />\r\n\r\n <Typography2\r\n text={t(mainTabName)}\r\n variant=\"subtitle1\"\r\n color=\"text.secondary\"\r\n />\r\n </>\r\n )}\r\n </Box>\r\n\r\n {/* Right Side */}\r\n <Stack\r\n direction=\"row\"\r\n spacing={2}\r\n >\r\n {showAutoSaveIndicator && (\r\n <AutoSaveIndicator\r\n {...autoSaveProps}\r\n paddingLeft={0}\r\n paddingRight={0}\r\n />\r\n )}\r\n\r\n <HeaderActions\r\n isShowClose={isShowClose}\r\n isShowPrint={isShowPrint}\r\n onPrint={onPrint}\r\n onHeaderClose={onHeaderClose}\r\n />\r\n </Stack>\r\n </Box>\r\n </Box>\r\n\r\n {stepperComponent && (\r\n <Box\r\n sx={{\r\n position: \"sticky\",\r\n top: 0.1,\r\n zIndex: 20,\r\n pb: 1,\r\n background:theme.palette.background.default\r\n }}\r\n >\r\n {stepperComponent}\r\n </Box>\r\n )}\r\n\r\n {/* Main Content */}\r\n <Box\r\n sx={{\r\n px: 1,\r\n pb:1,\r\n ...contentSX,\r\n }}\r\n >\r\n {stepRendererComponent || children}\r\n </Box>\r\n </Box>\r\n </CardContent>\r\n\r\n {/* Sticky Footer */}\r\n {footer && (\r\n <CardActions\r\n sx={{\r\n position: \"sticky\",\r\n bottom: 0,\r\n zIndex: 30,\r\n justifyContent: \"flex-end\",\r\n borderTop: \"1px solid\",\r\n borderColor: \"divider\",\r\n backgroundColor: (theme) =>\r\n theme.palette.background.paper,\r\n backdropFilter: \"blur(8px)\",\r\n WebkitBackdropFilter: \"blur(8px)\",\r\n }}\r\n >\r\n {footer}\r\n </CardActions>\r\n )}\r\n </Card>\r\n );\r\n};\r\n\r\nexport default React.memo(MainCard);","import { Box, Modal, IconButton, Fade, Backdrop } from \"@mui/material\";\r\nimport CloseIcon from '@mui/icons-material/Close';\r\nimport { useTheme } from \"@mui/system\";\r\nimport type { CommonModalProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\n const CommonModal = ({\r\n isOpen,\r\n onClose,\r\n children,\r\n showCloseButton = false ,\r\n showCloseIcon = false,\r\n alignItems= \"center\",\r\n justifyContent= \"center\",\r\n sx={}\r\n}: CommonModalProps) => {\r\n const theme = useTheme();\r\n return (\r\n <Modal\r\n open={isOpen}\r\n onClose={() => showCloseButton ?? onClose?.() }\r\n closeAfterTransition\r\n slots={{ backdrop: Backdrop }}\r\n slotProps={{\r\n backdrop: {\r\n timeout: 500,\r\n sx: {\r\n backgroundColor: \"rgba(15, 23, 42, 0.30)\",\r\n backdropFilter: \"blur(10px)\",\r\n WebkitBackdropFilter: \"blur(10px)\",\r\n },\r\n },\r\n }}\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Fade in={isOpen}>\r\n <Box\r\n sx={{\r\n backgroundColor: theme.palette.background.paper,\r\n position: \"relative\",\r\n boxShadow: 24,\r\n display: \"flex\",\r\n alignItems,\r\n justifyContent,\r\n borderRadius: 4,\r\n // margin: 2,\r\n ...sx\r\n }}\r\n >\r\n {showCloseIcon && (\r\n <IconButton\r\n onClick={onClose}\r\n sx={{\r\n position: 'absolute',\r\n right: 0,\r\n top: 8,\r\n zIndex: 10,\r\n color: (theme) => theme.palette.grey[500],\r\n }}\r\n >\r\n <CloseIcon />\r\n </IconButton>\r\n )}\r\n\r\n {children}\r\n </Box>\r\n </Fade>\r\n </Modal>\r\n );\r\n};\r\nexport default CommonModal;","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(win = window) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = win.document.documentElement.clientWidth;\n return win.innerWidth - documentWidth;\n}","import ownerWindow from '@mui/utils/ownerWindow';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport getScrollbarSize from '@mui/utils/getScrollbarSize';\n// Is a vertical scrollbar displayed?\nfunction isOverflowing(container) {\n const doc = ownerDocument(container);\n if (container === doc.body || container === doc.documentElement) {\n return ownerWindow(container).innerWidth > doc.documentElement.clientWidth;\n }\n return container.scrollHeight > container.clientHeight;\n}\nexport function ariaHidden(element, hide) {\n if (hide) {\n element.setAttribute('aria-hidden', 'true');\n } else {\n element.removeAttribute('aria-hidden');\n }\n}\nfunction getPaddingRight(element) {\n return parseFloat(ownerWindow(element).getComputedStyle(element).paddingRight) || 0;\n}\nfunction isAriaHiddenForbiddenOnElement(element) {\n // The forbidden HTML tags are the ones from ARIA specification that\n // can be children of body and can't have aria-hidden attribute.\n // cf. https://www.w3.org/TR/html-aria/#docconformance\n const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];\n const isForbiddenTagName = forbiddenTagNames.includes(element.tagName);\n const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';\n return isForbiddenTagName || isInputHidden;\n}\nfunction ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, hide) {\n const blacklist = [mountElement, currentElement, ...elementsToExclude];\n [].forEach.call(container.children, element => {\n const isNotExcludedElement = !blacklist.includes(element);\n const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);\n if (isNotExcludedElement && isNotForbiddenElement) {\n ariaHidden(element, hide);\n }\n });\n}\nfunction handleContainer(containerInfo, props) {\n const restoreStyle = [];\n const container = containerInfo.container;\n if (!props.disableScrollLock) {\n let scrollContainer;\n if (container.parentNode instanceof DocumentFragment) {\n scrollContainer = ownerDocument(container).body;\n } else {\n // Support html overflow-y: auto for scroll stability between pages\n // https://css-tricks.com/snippets/css/force-vertical-scrollbar/\n const parent = container.parentElement;\n const containerWindow = ownerWindow(container);\n scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;\n }\n if (isOverflowing(scrollContainer)) {\n // Compute the size before applying overflow hidden to avoid any scroll jumps.\n const scrollbarSize = getScrollbarSize(ownerWindow(scrollContainer));\n restoreStyle.push({\n value: scrollContainer.style.paddingRight,\n property: 'padding-right',\n el: scrollContainer\n });\n // Use computed style, here to get the real padding to add our scrollbar width.\n scrollContainer.style.paddingRight = `${getPaddingRight(scrollContainer) + scrollbarSize}px`;\n\n // .mui-fixed is a global helper.\n const fixedElements = ownerDocument(container).querySelectorAll('.mui-fixed');\n [].forEach.call(fixedElements, element => {\n restoreStyle.push({\n value: element.style.paddingRight,\n property: 'padding-right',\n el: element\n });\n element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;\n });\n }\n\n // Block the scroll even if no scrollbar is visible to account for mobile keyboard\n // screensize shrink.\n restoreStyle.push({\n value: scrollContainer.style.overflow,\n property: 'overflow',\n el: scrollContainer\n }, {\n value: scrollContainer.style.overflowX,\n property: 'overflow-x',\n el: scrollContainer\n }, {\n value: scrollContainer.style.overflowY,\n property: 'overflow-y',\n el: scrollContainer\n });\n scrollContainer.style.overflow = 'hidden';\n }\n const restore = () => {\n restoreStyle.forEach(({\n value,\n el,\n property\n }) => {\n if (value) {\n el.style.setProperty(property, value);\n } else {\n el.style.removeProperty(property);\n }\n });\n };\n return restore;\n}\nfunction getHiddenSiblings(container) {\n const hiddenSiblings = [];\n [].forEach.call(container.children, element => {\n if (element.getAttribute('aria-hidden') === 'true') {\n hiddenSiblings.push(element);\n }\n });\n return hiddenSiblings;\n}\n/**\n * @ignore - do not document.\n *\n * Proper state management for containers and the modals in those containers.\n * Simplified, but inspired by react-overlay's ModalManager class.\n * Used by the Modal to ensure proper styling of containers.\n */\nexport class ModalManager {\n constructor() {\n this.modals = [];\n this.containers = [];\n }\n add(modal, container) {\n let modalIndex = this.modals.indexOf(modal);\n if (modalIndex !== -1) {\n return modalIndex;\n }\n modalIndex = this.modals.length;\n this.modals.push(modal);\n\n // If the modal we are adding is already in the DOM.\n if (modal.modalRef) {\n ariaHidden(modal.modalRef, false);\n }\n const hiddenSiblings = getHiddenSiblings(container);\n ariaHiddenSiblings(container, modal.mount, modal.modalRef, hiddenSiblings, true);\n const containerIndex = this.containers.findIndex(item => item.container === container);\n if (containerIndex !== -1) {\n this.containers[containerIndex].modals.push(modal);\n return modalIndex;\n }\n this.containers.push({\n modals: [modal],\n container,\n restore: null,\n hiddenSiblings\n });\n return modalIndex;\n }\n mount(modal, props) {\n const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));\n const containerInfo = this.containers[containerIndex];\n if (!containerInfo.restore) {\n containerInfo.restore = handleContainer(containerInfo, props);\n }\n }\n remove(modal, ariaHiddenState = true) {\n const modalIndex = this.modals.indexOf(modal);\n if (modalIndex === -1) {\n return modalIndex;\n }\n const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));\n const containerInfo = this.containers[containerIndex];\n containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);\n this.modals.splice(modalIndex, 1);\n\n // If that was the last modal in a container, clean up the container.\n if (containerInfo.modals.length === 0) {\n // The modal might be closed before it had the chance to be mounted in the DOM.\n if (containerInfo.restore) {\n containerInfo.restore();\n }\n if (modal.modalRef) {\n // In case the modal wasn't in the DOM yet.\n ariaHidden(modal.modalRef, ariaHiddenState);\n }\n ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);\n this.containers.splice(containerIndex, 1);\n } else {\n // Otherwise make sure the next top modal is visible to a screen reader.\n const nextTop = containerInfo.modals[containerInfo.modals.length - 1];\n // as soon as a modal is adding its modalRef is undefined. it can't set\n // aria-hidden because the dom element doesn't exist either\n // when modal was unmounted before modalRef gets null\n if (nextTop.modalRef) {\n ariaHidden(nextTop.modalRef, false);\n }\n }\n return modalIndex;\n }\n isTopModal(modal) {\n return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n }\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from \"../chainPropTypes/index.mjs\";\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/react/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import * as React from 'react';\n\n/**\n * Returns the ref of a React element handling differences between React 19 and older versions.\n * It will throw runtime error if the element is not a valid React element.\n *\n * @param element React.ReactElement\n * @returns React.Ref<any> | null\n */\nexport default function getReactElementRef(element) {\n // 'ref' is passed as prop in React 19, whereas 'ref' is directly attached to children in older versions\n if (parseInt(React.version, 10) >= 19) {\n return element?.props?.ref || null;\n }\n // @ts-expect-error element.ref is not included in the ReactElement type\n // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189\n return element?.ref || null;\n}","/**\n * Copied from @base-ui/utils\n *\n * Shadow DOM-aware containment check.\n *\n * Native `parent.contains(child)` returns `false` when the child is inside a\n * shadow root that is a descendant of the parent. This function handles that\n * case by traversing up through shadow root hosts.\n *\n * @param parent - The potential ancestor element.\n * @param child - The potential descendant element.\n * @returns Whether `parent` contains `child`, even across shadow root boundaries.\n */\nexport default function contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n\n // First, attempt with the faster native method.\n if (parent.contains(child)) {\n return true;\n }\n\n // Then fall back to traversing out of shadow roots when needed.\n const rootNode = child.getRootNode?.();\n if (rootNode && rootNode instanceof ShadowRoot) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n next = next.parentNode ?? next.host ?? null;\n }\n }\n return false;\n}","import contains from '@mui/utils/contains';\nexport default contains;","export const FOCUSABLE_ATTRIBUTE = 'data-mui-focusable';\n\n/**\n * Returns the element marked as the initial focus target inside a focus trap.\n * The root element takes precedence over marked descendants so components can\n * opt into focusing their own root surface directly.\n */\nexport function getFocusTarget(rootElement) {\n if (!rootElement) {\n return null;\n }\n return rootElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? rootElement : rootElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`);\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useForkRef from '@mui/utils/useForkRef';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport exactProp from '@mui/utils/exactProp';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport contains from \"../utils/contains.mjs\";\nimport getActiveElement from \"../utils/getActiveElement.mjs\";\nimport { getFocusTarget } from \"../utils/focusable.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://issues.chromium.org/issues/41283952\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n if (node.contentEditable === 'true' || (node.nodeName === 'AUDIO' || node.nodeName === 'VIDEO' || node.nodeName === 'DETAILS') && node.getAttribute('tabindex') === null) {\n return 0;\n }\n return node.tabIndex;\n}\nfunction isNonTabbableRadio(node) {\n if (node.tagName !== 'INPUT' || node.type !== 'radio') {\n return false;\n }\n if (!node.name) {\n return false;\n }\n const getRadio = selector => node.ownerDocument.querySelector(`input[type=\"radio\"]${selector}`);\n let roving = getRadio(`[name=\"${node.name}\"]:checked`);\n if (!roving) {\n roving = getRadio(`[name=\"${node.name}\"]`);\n }\n return roving !== node;\n}\nfunction isNodeMatchingSelectorFocusable(node) {\n if (node.disabled || node.tagName === 'INPUT' && node.type === 'hidden' || isNonTabbableRadio(node)) {\n return false;\n }\n return true;\n}\nfunction defaultGetTabbable(root) {\n const regularTabNodes = [];\n const orderedTabNodes = [];\n Array.from(root.querySelectorAll(candidatesSelector)).forEach((node, i) => {\n const nodeTabIndex = getTabIndex(node);\n if (nodeTabIndex === -1 || !isNodeMatchingSelectorFocusable(node)) {\n return;\n }\n if (nodeTabIndex === 0) {\n regularTabNodes.push(node);\n } else {\n orderedTabNodes.push({\n documentOrder: i,\n tabIndex: nodeTabIndex,\n node: node\n });\n }\n });\n return orderedTabNodes.sort((a, b) => a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex).map(a => a.node).concat(regularTabNodes);\n}\nfunction defaultIsEnabled() {\n return true;\n}\n\n/**\n * @ignore - internal component.\n */\nfunction FocusTrap(props) {\n const {\n children,\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disableRestoreFocus = false,\n getTabbable = defaultGetTabbable,\n isEnabled = defaultIsEnabled,\n open\n } = props;\n const ignoreNextEnforceFocus = React.useRef(false);\n const sentinelStart = React.useRef(null);\n const sentinelEnd = React.useRef(null);\n const nodeToRestore = React.useRef(null);\n const reactFocusEventTarget = React.useRef(null);\n // This variable is useful when disableAutoFocus is true.\n // It waits for the active element to move into the component to activate.\n const activated = React.useRef(false);\n const rootRef = React.useRef(null);\n const handleRef = useForkRef(getReactElementRef(children), rootRef);\n const lastKeydown = React.useRef(null);\n React.useEffect(() => {\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n activated.current = !disableAutoFocus;\n }, [disableAutoFocus, open]);\n React.useEffect(() => {\n // Reset on every mount — React 18 Strict Mode double-mounts leave this\n // stuck at `true` after the cleanup of the previous mount set it.\n ignoreNextEnforceFocus.current = false;\n\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n const doc = ownerDocument(rootRef.current);\n const activeElement = getActiveElement(doc);\n\n // Prefer the explicitly marked focusable element. Fall back to the root\n // element for generic FocusTrap usage.\n const focusTarget = getFocusTarget(rootRef.current) ?? rootRef.current;\n if (!contains(rootRef.current, activeElement)) {\n if (!focusTarget.hasAttribute('tabIndex')) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(['MUI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to \"-1\".'].join('\\n'));\n }\n focusTarget.setAttribute('tabIndex', '-1');\n }\n if (activated.current) {\n focusTarget.focus();\n }\n }\n return () => {\n // restoreLastFocus()\n if (!disableRestoreFocus && nodeToRestore.current) {\n ignoreNextEnforceFocus.current = true;\n nodeToRestore.current.focus();\n nodeToRestore.current = null;\n }\n };\n // Missing `disableRestoreFocus` which is fine.\n // We don't support changing that prop on an open FocusTrap\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n React.useEffect(() => {\n // We might render an empty child.\n if (!open || !rootRef.current) {\n return;\n }\n const doc = ownerDocument(rootRef.current);\n const loopFocus = nativeEvent => {\n lastKeydown.current = nativeEvent;\n if (disableEnforceFocus || !isEnabled() || nativeEvent.key !== 'Tab') {\n return;\n }\n const rootElement = rootRef.current;\n const activeElement = getActiveElement(doc);\n if (rootElement === null) {\n return;\n }\n const focusTarget = getFocusTarget(rootElement);\n const isFocusStart = activeElement === rootElement || activeElement === focusTarget;\n\n // Marked focus targets can be non-tabbable, but should start tabbing\n // from the first/last tabbable child.\n if (isFocusStart) {\n const tabbable = getTabbable(rootElement);\n if (tabbable.length === 0) {\n return;\n }\n nativeEvent.preventDefault();\n if (nativeEvent.shiftKey) {\n tabbable[tabbable.length - 1].focus();\n } else {\n tabbable[0].focus();\n }\n return;\n }\n if (contains(rootElement, activeElement)) {\n const tabbable = getTabbable(rootElement);\n const currentIndex = tabbable.indexOf(activeElement);\n if (currentIndex === -1) {\n // Leave shadow-root descendants to native tab handling.\n return;\n }\n const hasPositiveTabIndex = tabbable.some(node => getTabIndex(node) > 0);\n\n // Positive tabIndex needs the computed order; regular tabIndex=0 can\n // use native tab handling.\n if (!hasPositiveTabIndex) {\n return;\n }\n nativeEvent.preventDefault();\n let nextIndex = 0;\n if (nativeEvent.shiftKey) {\n nextIndex = currentIndex <= 0 ? tabbable.length - 1 : currentIndex - 1;\n } else {\n nextIndex = currentIndex === tabbable.length - 1 ? 0 : currentIndex + 1;\n }\n tabbable[nextIndex].focus();\n }\n };\n const contain = () => {\n const rootElement = rootRef.current;\n\n // Cleanup functions are executed lazily in React 17.\n // Contain can be called between the component being unmounted and its cleanup function being run.\n if (rootElement === null) {\n return;\n }\n const activeEl = getActiveElement(doc);\n if (!doc.hasFocus() || !isEnabled() || ignoreNextEnforceFocus.current) {\n ignoreNextEnforceFocus.current = false;\n return;\n }\n\n // The focus is already inside\n if (contains(rootElement, activeEl)) {\n return;\n }\n\n // The disableEnforceFocus is set and the focus is outside of the focus trap (and sentinel nodes)\n if (disableEnforceFocus && activeEl !== sentinelStart.current && activeEl !== sentinelEnd.current) {\n return;\n }\n\n // if the focus event is not coming from inside the children's react tree, reset the refs\n if (activeEl !== reactFocusEventTarget.current) {\n reactFocusEventTarget.current = null;\n } else if (reactFocusEventTarget.current !== null) {\n return;\n }\n if (!activated.current) {\n return;\n }\n let tabbable = [];\n if (activeEl === sentinelStart.current || activeEl === sentinelEnd.current) {\n tabbable = getTabbable(rootRef.current);\n }\n\n // one of the sentinel nodes was focused, so move the focus\n // to the first/last tabbable element inside the focus trap\n if (tabbable.length > 0) {\n const isShiftTab = Boolean(lastKeydown.current?.shiftKey && lastKeydown.current?.key === 'Tab');\n const focusNext = tabbable[0];\n const focusPrevious = tabbable[tabbable.length - 1];\n if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {\n if (isShiftTab) {\n focusPrevious.focus();\n } else {\n focusNext.focus();\n }\n }\n // no tabbable elements in the trap focus or the focus was outside of the focus trap\n } else {\n rootElement.focus();\n }\n };\n doc.addEventListener('focusin', contain);\n doc.addEventListener('keydown', loopFocus, true);\n\n // With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area.\n // for example https://bugzilla.mozilla.org/show_bug.cgi?id=559561.\n // Instead, we can look if the active element was restored on the BODY element.\n //\n // The whatwg spec defines how the browser should behave but does not explicitly mention any events:\n // https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.\n const interval = setInterval(() => {\n const activeEl = getActiveElement(doc);\n if (activeEl && activeEl.tagName === 'BODY') {\n contain();\n }\n }, 50);\n return () => {\n clearInterval(interval);\n doc.removeEventListener('focusin', contain);\n doc.removeEventListener('keydown', loopFocus, true);\n };\n }, [disableAutoFocus, disableEnforceFocus, disableRestoreFocus, isEnabled, open, getTabbable]);\n const onFocus = event => {\n if (nodeToRestore.current === null) {\n nodeToRestore.current = event.relatedTarget;\n }\n activated.current = true;\n reactFocusEventTarget.current = event.target;\n const childrenPropsHandler = children.props.onFocus;\n if (childrenPropsHandler) {\n childrenPropsHandler(event);\n }\n };\n const handleFocusSentinel = event => {\n if (nodeToRestore.current === null) {\n nodeToRestore.current = event.relatedTarget;\n }\n activated.current = true;\n };\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n tabIndex: open ? 0 : -1,\n onFocus: handleFocusSentinel,\n ref: sentinelStart,\n \"data-testid\": \"sentinelStart\"\n }), /*#__PURE__*/React.cloneElement(children, {\n ref: handleRef,\n onFocus\n }), /*#__PURE__*/_jsx(\"div\", {\n tabIndex: open ? 0 : -1,\n onFocus: handleFocusSentinel,\n ref: sentinelEnd,\n \"data-testid\": \"sentinelEnd\"\n })]\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? FocusTrap.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A single child content element.\n */\n children: elementAcceptingRef,\n /**\n * If `true`, the focus trap will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the focus trap less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableAutoFocus: PropTypes.bool,\n /**\n * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.\n *\n * Generally this should never be set to `true` as it makes the focus trap less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableEnforceFocus: PropTypes.bool,\n /**\n * If `true`, the focus trap will not restore focus to previously focused element once\n * focus trap is hidden or unmounted.\n * @default false\n */\n disableRestoreFocus: PropTypes.bool,\n /**\n * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.\n * For instance, you can provide the \"tabbable\" npm dependency.\n * @param {HTMLElement} root\n */\n getTabbable: PropTypes.func,\n /**\n * This prop extends the `open` prop.\n * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.\n * This prop should be memoized.\n * It can be used to support multiple focus trap mounted at the same time.\n * @default function defaultIsEnabled(): boolean {\n * return true;\n * }\n */\n isEnabled: PropTypes.func,\n /**\n * If `true`, focus is locked.\n */\n open: PropTypes.bool.isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n FocusTrap['propTypes' + ''] = exactProp(FocusTrap.propTypes);\n}\nexport default FocusTrap;","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useForkRef from '@mui/utils/useForkRef';\nimport setRef from '@mui/utils/setRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport exactProp from '@mui/utils/exactProp';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/material-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/material-ui/api/portal/)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n const handleRef = useForkRef(/*#__PURE__*/React.isValidElement(children) ? getReactElementRef(children) : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if (/*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return children;\n }\n return mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode;\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport default Portal;","import isHostComponent from \"../isHostComponent/index.mjs\";\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return {\n ...otherProps,\n ownerState: {\n ...otherProps.ownerState,\n ...ownerState\n }\n };\n}\nexport default appendOwnerState;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nfunction resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}\nexport default resolveComponentProps;","// Brought from [Base UI](https://github.com/mui/base-ui/blob/master/packages/react/src/merge-props/mergeProps.ts#L119)\n// Use it directly from Base UI once it's a package dependency.\nexport default function isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const thirdCharCode = key.charCodeAt(2);\n return key[0] === 'o' && key[1] === 'n' && thirdCharCode >= 65 /* A */ && thirdCharCode <= 90 /* Z */ && typeof value === 'function';\n}","import isEventHandler from '@mui/utils/isEventHandler';\n/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n */\nfunction extractEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n for (const prop of Object.keys(object)) {\n if (isEventHandler(prop, object[prop])) {\n result[prop] = object[prop];\n }\n }\n return result;\n}\nexport default extractEventHandlers;","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nfunction omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default omitEventHandlers;","import clsx from 'clsx';\nimport extractEventHandlers from \"../extractEventHandlers/index.mjs\";\nimport omitEventHandlers from \"../omitEventHandlers/index.mjs\";\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nfunction mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...additionalProps,\n ...externalForwardedProps,\n ...externalSlotProps\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers({\n ...externalForwardedProps,\n ...externalSlotProps\n });\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...internalSlotProps?.style,\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...internalSlotProps,\n ...additionalProps,\n ...otherPropsWithoutEventHandlers,\n ...componentsPropsWithoutEventHandlers\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}\nexport default mergeSlotProps;","'use client';\n\nimport useForkRef from '@mui/utils/useForkRef';\nimport appendOwnerState from '@mui/utils/appendOwnerState';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport mergeSlotProps from '@mui/utils/mergeSlotProps';\n/**\n * An internal function to create a Material UI slot.\n *\n * This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop\n * while Base UI does not need to support leaf component customization.\n *\n * @param {string} name: name of the slot\n * @param {object} parameters\n * @returns {[Slot, slotProps]} The slot's React component and the slot's props\n *\n * Note: the returned slot's props\n * - will never contain `component` prop.\n * - might contain `as` prop.\n */\nexport default function useSlot(\n/**\n * The slot's name. All Material UI components should have `root` slot.\n *\n * If the name is `root`, the logic behaves differently from other slots,\n * e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.\n */\nname, parameters) {\n const {\n className,\n elementType: initialElementType,\n ownerState,\n externalForwardedProps,\n internalForwardedProps,\n shouldForwardComponentProp = false,\n ...useSlotPropsParams\n } = parameters;\n const {\n component: rootComponent,\n slots = {\n [name]: undefined\n },\n slotProps = {\n [name]: undefined\n },\n ...other\n } = externalForwardedProps;\n const elementType = slots[name] || initialElementType;\n\n // `slotProps[name]` can be a callback that receives the component's ownerState.\n // `resolvedComponentsProps` is always a plain object.\n const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);\n const {\n props: {\n component: slotComponent,\n ...mergedProps\n },\n internalRef\n } = mergeSlotProps({\n className,\n ...useSlotPropsParams,\n externalForwardedProps: name === 'root' ? other : undefined,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);\n const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n const props = appendOwnerState(elementType, {\n ...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),\n ...(name !== 'root' && !slots[name] && internalForwardedProps),\n ...mergedProps,\n ...(LeafComponent && !shouldForwardComponentProp && {\n as: LeafComponent\n }),\n ...(LeafComponent && shouldForwardComponentProp && {\n component: LeafComponent\n }),\n ref\n }, ownerState);\n return [elementType, props];\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport useEnhancedEffect from \"../useEnhancedEffect/useEnhancedEffect.mjs\";\nimport useLazyRef from \"../useLazyRef/useLazyRef.mjs\";\n/**\n * Copied from `@base-ui/utils/useValueAsRef`.\n *\n * Stores the latest value in a stable ref. The ref updates after React commits,\n * so effects and delayed callbacks can read the current value without depending\n * on it and rerunning.\n */\nexport default function useValueAsRef(value) {\n const latest = useLazyRef(() => createValueRef(value)).current;\n latest.next = value;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps -- effect never changes; it reads latest.next.\n useEnhancedEffect(latest.effect);\n return latest;\n}\nfunction createValueRef(value) {\n const latest = {\n current: value,\n next: value,\n effect: () => {\n latest.current = latest.next;\n }\n };\n return latest;\n}","import React from 'react';\nexport default React.createContext(null);","/// <reference path=\"./react-transition-group.d.ts\" />\n'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useValueAsRef from '@mui/utils/useValueAsRef';\n// Material UI transitions must still work inside react-transition-group's TransitionGroup.\n// Import only its context module; do not import its Transition or TransitionGroup components.\n// Use RTG's explicit CJS file for Node ESM/SSR; package.json's `browser` field redirects\n// browser bundles to RTG's ESM file.\n// eslint-disable-next-line import/extensions -- Node ESM needs the explicit .js extension.\nimport TransitionGroupContext from 'react-transition-group/cjs/TransitionGroupContext.js';\nimport { reflow } from \"../transitions/utils.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction resolveTimeouts(timeout) {\n if (timeout == null) {\n return {\n appear: undefined,\n enter: undefined,\n exit: undefined\n };\n }\n if (typeof timeout === 'number') {\n return {\n appear: timeout,\n enter: timeout,\n exit: timeout\n };\n }\n const enter = timeout.enter;\n const exit = timeout.exit;\n const appear = timeout.appear !== undefined ? timeout.appear : enter;\n return {\n appear,\n enter,\n exit\n };\n}\n\n/**\n * Resolves the authored completion timeout for the current transition phase.\n * Auto durations are read by the caller at scheduling time so Grow/Collapse\n * can pass the latest measured value without storing it in React state.\n */\nfunction getCompletionTimeout(params) {\n if (params.autoTimeout != null) {\n return params.autoTimeout;\n }\n const resolved = resolveTimeouts(params.timeout);\n if (params.currentStatus === 'entering') {\n return params.isAppearing ? resolved.appear ?? resolved.enter ?? null : resolved.enter ?? null;\n }\n return resolved.exit ?? null;\n}\nfunction Transition(props) {\n const {\n in: inProp = false,\n appear = false,\n enter = true,\n exit = true,\n mountOnEnter = false,\n unmountOnExit = false,\n timeout,\n addEndListener,\n reduceMotion = false,\n getAutoTimeout,\n nodeRef,\n onEnter,\n onEntering,\n onEntered,\n onExit,\n onExiting,\n onExited,\n children,\n ...childProps\n } = props;\n const parentGroup = React.useContext(TransitionGroupContext);\n\n // react-transition-group's TransitionGroup tells children whether the group\n // is still mounting. Material UI needs two values from that:\n // - shouldEnterOnMount: whether this child should run an enter animation now.\n // - isAppearing: the value passed to enter callbacks.\n // A child added after the group mounted still enters, but callbacks receive\n // isAppearing=false because the parent group is no longer mounting.\n const shouldEnterOnMount = parentGroup && !parentGroup.isMounting ? enter : appear;\n const [status, setStatus] = React.useState(() => {\n if (inProp) {\n return shouldEnterOnMount ? 'exited' : 'entered';\n }\n if (mountOnEnter || unmountOnExit) {\n return 'unmounted';\n }\n return 'exited';\n });\n const statusRef = React.useRef(status);\n statusRef.current = status;\n\n // Opening from `unmounted`: mount the child in the same commit that `in` turns\n // true so its ref is attached before effects run. react-transition-group did\n // this by deriving the status from props during render; handling it in a\n // layout effect instead would add a commit where the child is still null,\n // breaking consumers that read the ref right after `in` flips.\n if (inProp && status === 'unmounted') {\n statusRef.current = 'exited';\n setStatus('exited');\n }\n const shouldAppearOnMountRef = React.useRef(inProp && shouldEnterOnMount);\n const mountedRef = React.useRef(false);\n const nextCallbackRef = React.useRef(null);\n // Remember which status already fired lifecycle callbacks. React StrictMode\n // can run effects twice in development; this prevents duplicate callbacks.\n const lastFiredStatusRef = React.useRef(status);\n // Store the isAppearing value for the current enter transition. performEnter\n // sets it before the status effect later calls onEntering/onEntered.\n const isAppearingRef = React.useRef(false);\n // Capture reduced motion at the start of each phase so prop updates do not\n // change the completion timing for an active transition.\n const transitionReduceMotionRef = React.useRef(reduceMotion);\n\n // Transition end callbacks can run after props changed. Read props through\n // this ref so delayed work uses the latest callbacks and timeout settings.\n const propsRef = useValueAsRef({\n timeout,\n addEndListener,\n reduceMotion,\n getAutoTimeout,\n onEnter,\n onEntering,\n onEntered,\n onExit,\n onExiting,\n onExited,\n enter,\n exit,\n mountOnEnter,\n unmountOnExit,\n nodeRef,\n parentGroup\n });\n\n // Effects below depend on these helpers. Keep their identity stable; they read\n // changing props through propsRef.\n const cancelPendingCallback = React.useCallback(() => {\n if (nextCallbackRef.current !== null) {\n nextCallbackRef.current.cancel();\n nextCallbackRef.current = null;\n }\n }, []);\n const makeCallback = React.useCallback(handler => {\n let active = true;\n const wrapped = () => {\n if (active) {\n active = false;\n nextCallbackRef.current = null;\n handler();\n }\n };\n wrapped.cancel = () => {\n active = false;\n };\n nextCallbackRef.current = wrapped;\n return wrapped;\n }, []);\n const scheduleTransitionEnd = React.useCallback((nextStatus, currentStatus) => {\n let timeoutId;\n const clearTimer = () => {\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n timeoutId = undefined;\n }\n };\n const done = makeCallback(() => {\n clearTimer();\n statusRef.current = nextStatus;\n setStatus(nextStatus);\n });\n const cancelDone = done.cancel;\n done.cancel = () => {\n clearTimer();\n cancelDone();\n };\n const node = propsRef.current.nodeRef.current;\n const listener = propsRef.current.addEndListener;\n const hasAutoTimeout = propsRef.current.getAutoTimeout !== undefined;\n const autoTimeout = propsRef.current.getAutoTimeout?.();\n const authoredTimeout = getCompletionTimeout({\n currentStatus,\n isAppearing: isAppearingRef.current,\n timeout: propsRef.current.timeout,\n autoTimeout\n });\n const transitionReduceMotion = transitionReduceMotionRef.current;\n // Auto-duration consumers may skip measurement under reduced motion, but\n // still need a 0ms timeout when they provide addEndListener.\n const fallbackTimeout = authoredTimeout ?? (transitionReduceMotion && hasAutoTimeout ? 0 : null);\n const scheduleTimer = value => {\n timeoutId = setTimeout(done, value);\n };\n if (!node) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(['MUI: The transition child does not expose a DOM element.', 'Make sure the child accepts a ref and forwards it to the underlying DOM element.', 'The transition animation cannot be observed without a DOM element and will be skipped.'].join('\\n'));\n }\n\n // Match react-transition-group: if there is no DOM node, there is no\n // transition to observe, so finish on the next tick.\n scheduleTimer(0);\n return;\n }\n if (listener) {\n if (fallbackTimeout != null) {\n scheduleTimer(transitionReduceMotion ? 0 : fallbackTimeout);\n }\n\n // With nodeRef, react-transition-group calls addEndListener(done).\n // Material UI has long supported addEndListener(node, done). Keep both call\n // shapes so existing transition wrappers do not have to change.\n if (listener.length >= 2) {\n listener(node, done);\n } else {\n listener(done);\n }\n return;\n }\n scheduleTimer(transitionReduceMotion ? 0 : authoredTimeout ?? 0);\n }, [makeCallback, propsRef]);\n const performEnter = React.useCallback(mounting => {\n const current = propsRef.current;\n const isAppearing = current.parentGroup ? current.parentGroup.isMounting : mounting;\n isAppearingRef.current = isAppearing;\n\n // On updates, enter=false skips the enter animation. Move straight to\n // entered; the status effect will call onEntered, but onEnter/onEntering\n // must not fire.\n if (!mounting && !current.enter) {\n statusRef.current = 'entered';\n setStatus('entered');\n return;\n }\n transitionReduceMotionRef.current = current.reduceMotion;\n current.onEnter?.(isAppearing);\n statusRef.current = 'entering';\n setStatus('entering');\n }, [propsRef]);\n const performExit = React.useCallback(() => {\n const current = propsRef.current;\n if (!current.exit) {\n statusRef.current = 'exited';\n setStatus('exited');\n return;\n }\n transitionReduceMotionRef.current = current.reduceMotion;\n current.onExit?.();\n statusRef.current = 'exiting';\n setStatus('exiting');\n }, [propsRef]);\n const updateStatus = React.useCallback((mounting, nextStatus) => {\n cancelPendingCallback();\n if (nextStatus === 'entering') {\n const current = propsRef.current;\n // If the node was just mounted, read layout before entering so the\n // browser applies the starting styles before the animation begins.\n if (current.mountOnEnter || current.unmountOnExit) {\n const node = current.nodeRef.current;\n if (node) {\n reflow(node);\n }\n }\n performEnter(mounting);\n } else {\n performExit();\n }\n }, [cancelPendingCallback, performEnter, performExit, propsRef]);\n\n // Runs on mount. useEnhancedEffect is needed because the initial appear\n // transition may read layout before paint. In StrictMode development builds,\n // React mounts, cleans up, and mounts again; cleanup cancels pending work and\n // the status effect below restarts an active transition when effects reconnect.\n useEnhancedEffect(() => {\n mountedRef.current = true;\n if (shouldAppearOnMountRef.current) {\n shouldAppearOnMountRef.current = false;\n updateStatus(true, 'entering');\n }\n return () => {\n mountedRef.current = false;\n cancelPendingCallback();\n };\n }, [cancelPendingCallback, updateStatus]);\n\n // Reconcile the rendered status after `in` or status changes:\n // - opening from unmounted is handled during render (see above) so the child\n // is committed as exited with its ref attached before this effect runs.\n // - unmountOnExit removes the child after the exited state commits.\n // This matches react-transition-group's observable status steps without\n // running work after unrelated commits.\n useEnhancedEffect(() => {\n if (!mountedRef.current) {\n return;\n }\n const current = statusRef.current;\n if (inProp) {\n if (current !== 'entering' && current !== 'entered') {\n updateStatus(false, 'entering');\n }\n } else if (current === 'entering' || current === 'entered') {\n updateStatus(false, 'exiting');\n } else if (current === 'exited' && unmountOnExit) {\n statusRef.current = 'unmounted';\n setStatus('unmounted');\n }\n }, [inProp, status, unmountOnExit, updateStatus]);\n\n // Fire lifecycle callbacks for committed status changes. The guard prevents\n // duplicate callbacks in StrictMode; propsRef keeps delayed callbacks fresh.\n // Completion is scheduled outside the guard so an active transition is\n // restarted when React reconnects effects while preserving state.\n useEnhancedEffect(() => {\n // `unmounted` is bookkeeping, not a real transition state. Do not fire\n // callbacks when moving into or out of it; otherwise the first open with\n // mountOnEnter/unmountOnExit would look like a completed exit.\n if (status === 'unmounted' || lastFiredStatusRef.current === 'unmounted') {\n lastFiredStatusRef.current = status;\n return;\n }\n const prev = lastFiredStatusRef.current;\n const statusChanged = prev !== status;\n if (statusChanged) {\n lastFiredStatusRef.current = status;\n }\n const current = propsRef.current;\n if (status === 'entering') {\n if (statusChanged) {\n current.onEntering?.(isAppearingRef.current);\n }\n if (nextCallbackRef.current === null && statusRef.current === status) {\n scheduleTransitionEnd('entered', 'entering');\n }\n } else if (status === 'exiting') {\n if (statusChanged) {\n current.onExiting?.();\n }\n if (nextCallbackRef.current === null && statusRef.current === status) {\n scheduleTransitionEnd('exited', 'exiting');\n }\n } else if (status === 'entered' && statusChanged) {\n current.onEntered?.(isAppearingRef.current);\n } else if (status === 'exited' && statusChanged) {\n current.onExited?.();\n }\n }, [propsRef, scheduleTransitionEnd, status]);\n if (status === 'unmounted') {\n return null;\n }\n\n // Nested Material UI transitions should not inherit this transition's parent group.\n // A null context keeps an outer TransitionGroup from controlling them.\n return /*#__PURE__*/_jsx(TransitionGroupContext.Provider, {\n value: null,\n children: children(status, childProps)\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? Transition.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n addEndListener: PropTypes.func,\n /**\n * @ignore\n */\n appear: PropTypes.bool,\n /**\n * @ignore\n */\n children: PropTypes.func.isRequired,\n /**\n * @ignore\n */\n enter: PropTypes.bool,\n /**\n * @ignore\n */\n exit: PropTypes.bool,\n /**\n * @ignore\n */\n getAutoTimeout: PropTypes.func,\n /**\n * @ignore\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n mountOnEnter: PropTypes.bool,\n /**\n * @ignore\n */\n nodeRef: PropTypes.shape({\n current: (props, propName) => {\n if (props[propName] == null) {\n return null;\n }\n if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {\n return new Error(`Expected prop '${propName}' to be of type Element`);\n }\n return null;\n }\n }).isRequired,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n reduceMotion: PropTypes.bool,\n /**\n * @ignore\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n unmountOnExit: PropTypes.bool\n} : void 0;\nexport default Transition;","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nconst MEDIA_QUERY = '(prefers-reduced-motion: reduce)';\nconst REDUCED_MOTION_DURATION = 0;\nconst REDUCED_MOTION_DELAY = '0ms';\nconst NOOP = () => {};\nconst getDefaultSnapshot = () => false;\nconst getReducedMotionSnapshot = () => true;\nconst subscribeNoop = () => NOOP;\n/**\n * Subscribes to the OS reduced-motion media query only when the theme mode needs it.\n * React 17 reads the media query after mount, matching useMediaQuery's fallback path.\n */\nfunction useReducedMotionMediaQueryOld(enabled) {\n const [queryState, setQueryState] = React.useState(() => ({\n enabled,\n matches: enabled ? null : false\n }));\n let matches = queryState.matches;\n if (queryState.enabled !== enabled) {\n matches = null;\n if (!enabled) {\n matches = false;\n }\n }\n useEnhancedEffect(() => {\n const setResolvedMatches = nextMatches => {\n setQueryState(previousState => {\n if (previousState.enabled === enabled && previousState.matches === nextMatches) {\n return previousState;\n }\n return {\n enabled,\n matches: nextMatches\n };\n });\n };\n if (!enabled) {\n if (queryState.enabled) {\n setResolvedMatches(false);\n }\n return undefined;\n }\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n setResolvedMatches(false);\n return undefined;\n }\n const mediaQueryList = window.matchMedia(MEDIA_QUERY);\n const update = () => {\n setResolvedMatches(mediaQueryList.matches);\n };\n update();\n mediaQueryList.addEventListener('change', update);\n return () => {\n mediaQueryList.removeEventListener('change', update);\n };\n }, [enabled, queryState.enabled]);\n return matches;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseSyncExternalStore = safeReact.useSyncExternalStore;\n\n/**\n * React 18+ can read the media query during client renders, so newly mounted\n * transitions do not start from the SSR-safe reduced-motion default.\n */\nfunction useReducedMotionMediaQueryNew(enabled) {\n const getServerSnapshot = enabled ? getReducedMotionSnapshot : getDefaultSnapshot;\n const [getSnapshot, subscribe] = React.useMemo(() => {\n if (!enabled || typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return [getDefaultSnapshot, subscribeNoop];\n }\n const mediaQueryList = window.matchMedia(MEDIA_QUERY);\n return [() => mediaQueryList.matches, notify => {\n mediaQueryList.addEventListener('change', notify);\n return () => {\n mediaQueryList.removeEventListener('change', notify);\n };\n }];\n }, [enabled]);\n return maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\nconst useReducedMotionMediaQuery = maybeReactUseSyncExternalStore !== undefined ? useReducedMotionMediaQueryNew : useReducedMotionMediaQueryOld;\n\n/**\n * Resolves whether a Material UI transition should reduce motion and provides\n * adjusted CSS transition timing for MUI-owned duration/delay values.\n */\nexport default function useReducedMotion(mode, disablePrefersReducedMotion) {\n const prefersReducedMotion = useReducedMotionMediaQuery(!disablePrefersReducedMotion && mode === 'system');\n const shouldReduceMotion = !disablePrefersReducedMotion && (mode === 'always' || mode === 'system' && prefersReducedMotion !== false);\n return React.useMemo(() => ({\n shouldReduceMotion,\n getTransitionTiming(timing) {\n if (!shouldReduceMotion) {\n return timing;\n }\n return {\n duration: REDUCED_MOTION_DURATION,\n delay: REDUCED_MOTION_DELAY\n };\n }\n }), [shouldReduceMotion]);\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport Transition from \"../internal/Transition.mjs\";\nimport useReducedMotion from \"../transitions/useReducedMotion.mjs\";\nimport { useTheme } from \"../zero-styled/index.mjs\";\nimport { normalizedTransitionCallback, reflow, getTransitionProps, getTransitionChildStyle } from \"../transitions/utils.mjs\";\nimport useForkRef from \"../utils/useForkRef.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst styles = {\n entering: {\n opacity: 1\n },\n entered: {\n opacity: 1\n },\n exiting: {\n opacity: 0\n },\n exited: {\n opacity: 0\n }\n};\nconst hiddenStyles = {\n opacity: 0,\n visibility: 'hidden'\n};\n\n/**\n * The Fade transition is used by the [Modal](/material-ui/react-modal/) component.\n */\nconst Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {\n const theme = useTheme();\n const defaultTimeout = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n addEndListener,\n appear = true,\n children,\n disablePrefersReducedMotion = false,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = defaultTimeout,\n ...other\n } = props;\n const reducedMotion = useReducedMotion(theme.motion.reducedMotion, disablePrefersReducedMotion);\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n const handleEntering = normalizedTransitionCallback(nodeRef, onEntering);\n const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {\n if (!reducedMotion.shouldReduceMotion) {\n reflow(node); // Force layout so the animation starts from the initial styles.\n }\n const transitionProps = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n const transitionTiming = reducedMotion.getTransitionTiming({\n duration: transitionProps.duration,\n delay: transitionProps.delay\n });\n node.style.transition = theme.transitions.create('opacity', {\n duration: transitionTiming.duration,\n easing: transitionProps.easing,\n delay: transitionTiming.delay\n });\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(nodeRef, onEntered);\n const handleExiting = normalizedTransitionCallback(nodeRef, onExiting);\n const handleExit = normalizedTransitionCallback(nodeRef, node => {\n const transitionProps = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n const transitionTiming = reducedMotion.getTransitionTiming({\n duration: transitionProps.duration,\n delay: transitionProps.delay\n });\n node.style.transition = theme.transitions.create('opacity', {\n duration: transitionTiming.duration,\n easing: transitionProps.easing,\n delay: transitionTiming.delay\n });\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(nodeRef, node => {\n // Clear transition CSS after exit so fixed elements like Backdrop do not\n // keep a compositor layer alive and cause idle CPU usage. handleEnter sets\n // it again on next open.\n node.style.transition = '';\n if (onExited) {\n onExited(node);\n }\n });\n const handleAddEndListener = addEndListener ? next => {\n addEndListener(nodeRef.current, next);\n } : undefined;\n return /*#__PURE__*/_jsx(Transition, {\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n reduceMotion: reducedMotion.shouldReduceMotion,\n timeout: timeout,\n ...other,\n children: (state, {\n ownerState,\n ...restChildProps\n }) => {\n // Do not pass ownerState to a DOM child. ownerState is only for\n // Material UI styling, and React would treat it as an invalid DOM attribute.\n const childStyle = getTransitionChildStyle(state, inProp, styles, hiddenStyles, style, children.props.style);\n return /*#__PURE__*/React.cloneElement(children, {\n style: childStyle,\n ref: handleRef,\n ...restChildProps\n });\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Fade.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger.\n * Use it when you need custom logic to decide when the transition has ended.\n * Note: Timeouts are still used as a fallback if provided.\n *\n * @param {HTMLElement} node The transitioning DOM node.\n * @param {Function} done Call this when the transition has finished.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.\n * @default false\n */\n disablePrefersReducedMotion: PropTypes.bool,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Fade;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBackdropUtilityClass(slot) {\n return generateUtilityClass('MuiBackdrop', slot);\n}\nconst backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);\nexport default backdropClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport useSlot from \"../utils/useSlot.mjs\";\nimport Fade from \"../Fade/index.mjs\";\nimport { getBackdropUtilityClass } from \"./backdropClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n invisible\n } = ownerState;\n const slots = {\n root: ['root', invisible && 'invisible']\n };\n return composeClasses(slots, getBackdropUtilityClass, classes);\n};\nconst BackdropRoot = styled('div', {\n name: 'MuiBackdrop',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.invisible && styles.invisible];\n }\n})({\n position: 'fixed',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n WebkitTapHighlightColor: 'transparent',\n variants: [{\n props: {\n invisible: true\n },\n style: {\n backgroundColor: 'transparent'\n }\n }]\n});\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiBackdrop'\n });\n const {\n children,\n className,\n component = 'div',\n invisible = false,\n open,\n slotProps = {},\n slots = {},\n transitionDuration,\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n invisible\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n component,\n slots,\n slotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: BackdropRoot,\n externalForwardedProps,\n className: clsx(classes.root, className),\n ownerState\n });\n const [TransitionSlot, transitionProps] = useSlot('transition', {\n elementType: Fade,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsx(TransitionSlot, {\n in: open,\n timeout: transitionDuration,\n ...other,\n ...transitionProps,\n children: /*#__PURE__*/_jsx(RootSlot, {\n ...rootProps,\n ref: ref,\n children: children\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the backdrop is invisible.\n * It can be used when rendering a popover or a custom select component.\n * @default false\n */\n invisible: PropTypes.bool,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nexport default Backdrop;","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","'use client';\n\nimport * as React from 'react';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport createChainedFunction from '@mui/utils/createChainedFunction';\nimport extractEventHandlers from '@mui/utils/extractEventHandlers';\nimport { ModalManager, ariaHidden } from \"./ModalManager.mjs\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\nfunction getHasTransition(children) {\n return children ? children.props.hasOwnProperty('in') : false;\n}\nconst noop = () => {};\n\n// A modal manager used to track and manage the state of open Modals.\n// Modals don't open on the server so this won't conflict with concurrent requests.\nconst manager = new ModalManager();\nfunction useModal(parameters) {\n const {\n container,\n disableScrollLock = false,\n closeAfterTransition = false,\n onTransitionEnter,\n onTransitionExited,\n children,\n onClose,\n open,\n rootRef\n } = parameters;\n\n // @ts-ignore internal logic\n const modal = React.useRef({});\n const mountNodeRef = React.useRef(null);\n const lastMountNodeRef = React.useRef(null);\n const modalRef = React.useRef(null);\n const handleRef = useForkRef(modalRef, rootRef);\n const [exited, setExited] = React.useState(!open);\n const hasTransition = getHasTransition(children);\n let ariaHiddenProp = true;\n if (parameters['aria-hidden'] === 'false' || parameters['aria-hidden'] === false) {\n ariaHiddenProp = false;\n }\n const getDoc = () => ownerDocument(mountNodeRef.current);\n const getModal = () => {\n modal.current.modalRef = modalRef.current;\n modal.current.mount = mountNodeRef.current;\n return modal.current;\n };\n const handleMounted = () => {\n manager.mount(getModal(), {\n disableScrollLock\n });\n\n // Fix a bug on Chrome where the scroll isn't initially 0.\n if (modalRef.current) {\n modalRef.current.scrollTop = 0;\n }\n };\n const handleOpen = useEventCallback(() => {\n const resolvedContainer = getContainer(container) || getDoc().body;\n manager.add(getModal(), resolvedContainer);\n\n // The element was already mounted.\n if (modalRef.current) {\n handleMounted();\n }\n });\n const isTopModal = () => manager.isTopModal(getModal());\n const handlePortalRef = useEventCallback(node => {\n mountNodeRef.current = node;\n if (!node) {\n return;\n }\n lastMountNodeRef.current = node;\n if (open && isTopModal()) {\n handleMounted();\n } else if (modalRef.current) {\n ariaHidden(modalRef.current, ariaHiddenProp);\n }\n });\n const handleClose = React.useCallback(() => {\n manager.remove(getModal(), ariaHiddenProp);\n }, [ariaHiddenProp]);\n React.useEffect(() => {\n return () => {\n handleClose();\n };\n }, [handleClose]);\n React.useEffect(() => {\n if (open) {\n handleOpen();\n } else if (!hasTransition || !closeAfterTransition) {\n handleClose();\n }\n }, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);\n const createHandleKeyDown = otherHandlers => event => {\n otherHandlers.onKeyDown?.(event);\n\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviors like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n if (event.key !== 'Escape' || event.which === 229 ||\n // Wait until IME is settled.\n !isTopModal()) {\n return;\n }\n\n // Swallow the event, in case someone is listening for the escape key on the body.\n event.stopPropagation();\n if (onClose) {\n onClose(event, 'escapeKeyDown');\n }\n };\n const createHandleBackdropClick = otherHandlers => event => {\n otherHandlers.onClick?.(event);\n if (event.target !== event.currentTarget) {\n return;\n }\n if (onClose) {\n onClose(event, 'backdropClick');\n }\n };\n const getRootProps = (otherHandlers = {}) => {\n const propsEventHandlers = extractEventHandlers(parameters);\n\n // The custom event handlers shouldn't be spread on the root element\n delete propsEventHandlers.onTransitionEnter;\n delete propsEventHandlers.onTransitionExited;\n const externalEventHandlers = {\n ...propsEventHandlers,\n ...otherHandlers\n };\n return {\n /*\n * Marking an element with the role presentation indicates to assistive technology\n * that this element should be ignored; it exists to support the web application and\n * is not meant for humans to interact with directly.\n * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n */\n role: 'presentation',\n ...externalEventHandlers,\n onKeyDown: createHandleKeyDown(externalEventHandlers),\n ref: handleRef\n };\n };\n const getBackdropProps = (otherHandlers = {}) => {\n const externalEventHandlers = otherHandlers;\n return {\n 'aria-hidden': true,\n ...externalEventHandlers,\n onClick: createHandleBackdropClick(externalEventHandlers),\n open\n };\n };\n const getTransitionProps = () => {\n const handleEnter = () => {\n setExited(false);\n if (onTransitionEnter) {\n onTransitionEnter();\n }\n };\n const handleExited = () => {\n setExited(true);\n if (onTransitionExited) {\n onTransitionExited();\n }\n if (closeAfterTransition) {\n handleClose();\n }\n };\n return {\n onEnter: createChainedFunction(handleEnter, children?.props.onEnter ?? noop),\n onExited: createChainedFunction(handleExited, children?.props.onExited ?? noop)\n };\n };\n\n // Changing a portal's container remounts its children. Keep an exiting transition in its\n // current container so it can finish and notify the modal that it is safe to unmount.\n const portalContainer = !open && hasTransition && !exited ? lastMountNodeRef.current ?? container : container;\n return {\n getRootProps,\n getBackdropProps,\n getTransitionProps,\n rootRef: handleRef,\n portalRef: handlePortalRef,\n portalContainer,\n isTopModal,\n exited,\n hasTransition\n };\n}\nexport default useModal;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getModalUtilityClass(slot) {\n return generateUtilityClass('MuiModal', slot);\n}\nconst modalClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);\nexport default modalClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport FocusTrap from \"../Unstable_TrapFocus/index.mjs\";\nimport Portal from \"../Portal/index.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport Backdrop from \"../Backdrop/index.mjs\";\nimport useModal from \"./useModal.mjs\";\nimport { getModalUtilityClass } from \"./modalClasses.mjs\";\nimport useSlot from \"../utils/useSlot.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n open,\n exited,\n classes\n } = ownerState;\n const slots = {\n root: ['root', !open && exited && 'hidden'],\n backdrop: ['backdrop']\n };\n return composeClasses(slots, getModalUtilityClass, classes);\n};\nconst ModalRoot = styled('div', {\n name: 'MuiModal',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];\n }\n})(memoTheme(({\n theme\n}) => ({\n position: 'fixed',\n zIndex: (theme.vars || theme).zIndex.modal,\n right: 0,\n bottom: 0,\n top: 0,\n left: 0,\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.open && ownerState.exited,\n style: {\n visibility: 'hidden'\n }\n }]\n})));\nconst ModalBackdrop = styled(Backdrop, {\n name: 'MuiModal',\n slot: 'Backdrop'\n})({\n zIndex: -1\n});\n\n/**\n * Modal is a lower-level construct that is leveraged by the following components:\n *\n * - [Dialog](/material-ui/api/dialog/)\n * - [Drawer](/material-ui/api/drawer/)\n * - [Menu](/material-ui/api/menu/)\n * - [Popover](/material-ui/api/popover/)\n *\n * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component\n * rather than directly using Modal.\n *\n * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).\n */\nconst Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiModal',\n props: inProps\n });\n const {\n classes: classesProp,\n className,\n closeAfterTransition = false,\n children,\n container,\n component,\n disableAutoFocus = false,\n disableEnforceFocus = false,\n disablePortal = false,\n disableRestoreFocus = false,\n disableScrollLock = false,\n hideBackdrop = false,\n keepMounted = false,\n onClose,\n onTransitionEnter,\n onTransitionExited,\n open,\n slotProps = {},\n slots = {},\n // eslint-disable-next-line react/prop-types\n theme,\n ...other\n } = props;\n const propsWithDefaults = {\n ...props,\n closeAfterTransition,\n disableAutoFocus,\n disableEnforceFocus,\n disablePortal,\n disableRestoreFocus,\n disableScrollLock,\n hideBackdrop,\n keepMounted\n };\n const {\n getRootProps,\n getBackdropProps,\n getTransitionProps,\n portalRef,\n portalContainer,\n isTopModal,\n exited,\n hasTransition\n } = useModal({\n ...propsWithDefaults,\n rootRef: ref\n });\n const ownerState = {\n ...propsWithDefaults,\n exited\n };\n const classes = useUtilityClasses(ownerState);\n const childProps = {};\n if (children.props.tabIndex === undefined) {\n childProps.tabIndex = '-1';\n }\n\n // It's a Transition like component\n if (hasTransition) {\n const {\n onEnter,\n onExited\n } = getTransitionProps();\n childProps.onEnter = onEnter;\n childProps.onExited = onExited;\n }\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n ref,\n elementType: ModalRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n component\n },\n getSlotProps: getRootProps,\n ownerState,\n className: clsx(className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)\n });\n const [BackdropSlot, backdropProps] = useSlot('backdrop', {\n elementType: ModalBackdrop,\n externalForwardedProps,\n shouldForwardComponentProp: true,\n getSlotProps: otherHandlers => {\n return getBackdropProps({\n ...otherHandlers,\n onClick: event => {\n if (otherHandlers?.onClick) {\n otherHandlers.onClick(event);\n }\n }\n });\n },\n className: classes?.backdrop,\n ownerState\n });\n if (!keepMounted && !open && (!hasTransition || exited)) {\n return null;\n }\n return /*#__PURE__*/_jsx(Portal, {\n ref: portalRef,\n container: portalContainer,\n disablePortal: disablePortal,\n children: /*#__PURE__*/_jsxs(RootSlot, {\n ...rootProps,\n children: [!hideBackdrop ? /*#__PURE__*/_jsx(BackdropSlot, {\n ...backdropProps\n }) : null, /*#__PURE__*/_jsx(FocusTrap, {\n disableEnforceFocus: disableEnforceFocus,\n disableAutoFocus: disableAutoFocus,\n disableRestoreFocus: disableRestoreFocus,\n isEnabled: isTopModal,\n open: open,\n children: /*#__PURE__*/React.cloneElement(children, childProps)\n })]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Modal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * When set to true the Modal waits until a nested Transition is completed before closing.\n * @default false\n */\n closeAfterTransition: PropTypes.bool,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * If `true`, the modal will not automatically shift focus to itself when it opens, and\n * replace it to the last focused element when it closes.\n * This also works correctly with any modal children that have the `disableAutoFocus` prop.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableAutoFocus: PropTypes.bool,\n /**\n * If `true`, the modal will not prevent focus from leaving the modal while open.\n *\n * Generally this should never be set to `true` as it makes the modal less\n * accessible to assistive technologies, like screen readers.\n * @default false\n */\n disableEnforceFocus: PropTypes.bool,\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * If `true`, the modal will not restore focus to previously focused element once\n * modal is hidden or unmounted.\n * @default false\n */\n disableRestoreFocus: PropTypes.bool,\n /**\n * Disable the scroll lock behavior.\n * @default false\n */\n disableScrollLock: PropTypes.bool,\n /**\n * If `true`, the backdrop is not rendered.\n * @default false\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Modal.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Callback fired when the component requests to be closed.\n * The `reason` parameter can optionally be used to control the response to `onClose`.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n */\n onClose: PropTypes.func,\n /**\n * A function called when a transition enters.\n */\n onTransitionEnter: PropTypes.func,\n /**\n * A function called when a transition has exited.\n */\n onTransitionExited: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * The props used for each slot inside the Modal.\n * @default {}\n */\n slotProps: PropTypes.shape({\n backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Modal.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n backdrop: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Modal;","\r\nimport useTheme from \"@mui/system/useTheme\";\r\n\r\nconst CloseIcon = () => {\r\n const theme = useTheme();\r\n return (\r\n <svg\r\n width=\"14\"\r\n height=\"14\"\r\n viewBox=\"0 0 14 14\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M1.86667 13.3L0 11.4333L4.8 6.63333L0 1.86667L1.86667 0L6.66667 4.8L11.4333 0L13.3 1.86667L8.5 6.63333L13.3 11.4333L11.4333 13.3L6.66667 8.5L1.86667 13.3Z\"\r\n fill={ theme.palette.primary.main}\r\n />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default CloseIcon;","import React from 'react';\r\nimport { Box, Stack } from '@mui/material';\r\nimport Modal from '@mui/material/Modal';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport AppButton from '../button/AppButton';\r\nimport CloseIcon from 'assets/icons/CloseIcon';\r\nimport { EConfirmationModalType } from 'libs/shared/enums/common-enums';\r\nimport Typography2 from 'ui/typography/Typography2';\r\nimport CustomizedTooltip from 'ui/toolTips/CustomizedTooltip';\r\n\r\n\r\ninterface ConfirmationModalProps {\r\n isOpen: boolean;\r\n type?: EConfirmationModalType;\r\n text: string;\r\n onSubmit: (type: EConfirmationModalType) => void;\r\n onCloseOrCancel: () => void;\r\n labelSubmit?: string;\r\n labelNo?: string;\r\n hideSubmitButton?: boolean;\r\n hideCancelButton?: boolean;\r\n}\r\n\r\nconst style = {\r\n position: 'relative',\r\n top: '50%',\r\n left: '50%',\r\n transform: 'translate(-50%, -50%)',\r\n width: 400,\r\n bgcolor: '#fff',\r\n boxShadow: 24,\r\n p: 4,\r\n display: 'flex',\r\n flexDirection: 'column',\r\n borderRadius: '16px'\r\n};\r\n\r\nconst ConfirmationModal: React.FC<ConfirmationModalProps> = (props: ConfirmationModalProps) => {\r\n const { t } = useTranslation();\r\n\r\n\r\n const {\r\n isOpen,\r\n type = EConfirmationModalType.SUBMIT,\r\n onCloseOrCancel,\r\n text,\r\n onSubmit,\r\n hideSubmitButton = false,\r\n hideCancelButton = false,\r\n } = props;\r\n\r\n return (\r\n <Modal\r\n open={isOpen}\r\n aria-labelledby=\"modal-modal-title\"\r\n aria-describedby=\"modal-modal-description\"\r\n >\r\n <Box sx={style}>\r\n {/* Close Icon */}\r\n <Stack sx={{ display: \"flex\", justifyContent: \"end\", alignItems: \"end\" }}>\r\n <CustomizedTooltip title=\"strClose\">\r\n <Box component=\"span\" sx={{ cursor: \"pointer\" }} onClick={onCloseOrCancel}>\r\n <CloseIcon />\r\n </Box>\r\n </CustomizedTooltip>\r\n </Stack>\r\n\r\n {/* Message */}\r\n <Typography2 text={t(text)} variant=\"h6\" sx={{ textAlign: 'center', mt: 2 }} />\r\n\r\n {/* Actions Buttons */}\r\n <Box sx={{ display: 'flex', justifyContent: 'space-evenly', width: '100%', mt: 3 }}>\r\n {!hideSubmitButton && (<AppButton\r\n label=\"strYes\"\r\n onClick={() => onSubmit(type)}\r\n variant={type === EConfirmationModalType.SUBMIT ? \"contained\" : \"outlined\"}\r\n />\r\n )}\r\n\r\n {!hideCancelButton && (\r\n <AppButton\r\n label=\"strNo\"\r\n variant={type === EConfirmationModalType.SUBMIT ? \"outlined\" : \"contained\"}\r\n onClick={onCloseOrCancel}\r\n />\r\n )}\r\n </Box>\r\n </Box>\r\n </Modal>\r\n );\r\n};\r\n\r\nexport default ConfirmationModal;\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M14 12h4v1.5h-4zm0 3h4v1.5h-4z\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z\"\n}, \"1\"), /*#__PURE__*/_jsx(\"circle\", {\n cx: \"9\",\n cy: \"13.5\",\n r: \"1.5\"\n}, \"2\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39\"\n}, \"3\")], 'BadgeOutlined');","import React from \"react\";\r\nimport { Box, Paper, Stack } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport AppButton from \"../button/AppButton\";\r\nimport Typography2 from \"ui/typography/Typography2\"; \r\nimport type { SubmitModalProps } from \"libs/shared/types/common-types\";\r\nimport { useTheme } from \"@mui/system\";\r\nimport CheckCircleRoundedIcon from \"@mui/icons-material/CheckCircleRounded\";\r\nimport BadgeOutlinedIcon from \"@mui/icons-material/BadgeOutlined\";\r\nimport CommonModal from \"./CommonModal\";\r\n\r\nconst SubmitModal: React.FC<SubmitModalProps> = (props: SubmitModalProps) => {\r\n const { t } = useTranslation();\r\n const theme = useTheme();\r\n const { isOpen, type, text, onSubmit, labelSubmit,textId,textType } = props;\r\n\r\n return (\r\n <CommonModal isOpen={isOpen} sx={{ width: \"auto\" }}>\r\n <Stack direction=\"column\" sx={{ p: 2, justifyContent: 'center', alignItems: 'center' }}>\r\n {/* Message */}\r\n <Box\r\n sx={{\r\n width: 50,\r\n height: 50,\r\n borderRadius: \"50%\",\r\n bgcolor:theme.palette.bgGreen,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n boxShadow: \"0 12px 35px rgba(16,185,129,.18)\",\r\n }}\r\n >\r\n <CheckCircleRoundedIcon\r\n sx={{fontSize:40, color:theme.palette.success.main}} />\r\n </Box>\r\n <Box sx={{ mb: 2 }}>\r\n <Typography2 text={t(text)} variant=\"h6\" sx={{ textAlign: \"center\", textWrap: \"wrap\", }} />\r\n </Box>\r\n <Paper\r\n elevation={0}\r\n sx={{\r\n px: 3,\r\n py: 2,\r\n borderRadius: 3,\r\n bgcolor: theme.palette.bgGreen,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n gap: 2,\r\n }}\r\n >\r\n <BadgeOutlinedIcon\r\n sx={{color: theme.palette.success.main }}\r\n />\r\n\r\n <Typography2\r\n text={`${t(textType!)} : `}\r\n sx={{\r\n fontWeight: 500,\r\n }}\r\n />\r\n\r\n <Typography2\r\n text={textId}\r\n sx={{\r\n fontWeight: 700,\r\n color: theme.palette.success.main,\r\n fontSize: 22,\r\n }}\r\n />\r\n </Paper>\r\n {/* Actions Buttons */}\r\n <Stack direction=\"row\" sx={{ justifyContent: \"center\" }}>\r\n <AppButton label={labelSubmit ?? \"strClose\"} onClick={() => onSubmit(type)} variant={labelSubmit ? \"contained\" : \"outlined\"} />\r\n </Stack>\r\n </Stack>\r\n </CommonModal>\r\n );\r\n};\r\n\r\nexport default React.memo(SubmitModal);\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\n\r\nimport ConfirmationModal from \"./ConfirmationModal\";\r\n\r\nimport { EConfirmationModalType } from \"libs/shared/enums/common-enums\";\r\nimport { closeConfirmationModal } from \"store/confirmationModalSlice\";\r\nimport type { RootState } from \"store/store\";\r\nimport SubmitModal from \"./SubmitModal\";\r\n\r\nconst GlobalConfirmationModal = () => {\r\n const dispatch = useDispatch();\r\n\r\n const modal = useSelector((state: RootState) => state.confirmationModalData);\r\n\r\n const handleSubmit = (type: EConfirmationModalType) => {\r\n modal.onSubmit?.(type);\r\n dispatch(closeConfirmationModal());\r\n };\r\n\r\n const handleCancel = () => {\r\n modal.onSubmit?.(EConfirmationModalType.CLOSE);\r\n dispatch(closeConfirmationModal());\r\n };\r\n\r\n return (\r\n <>\r\n {modal.isOpen && (\r\n <ConfirmationModal\r\n isOpen={modal.isOpen}\r\n text={modal.text}\r\n type={modal.type}\r\n labelSubmit={modal.labelSubmit}\r\n labelNo={modal.labelNo}\r\n hideSubmitButton={modal.hideSubmitButton}\r\n hideCancelButton={modal.hideCancelButton}\r\n onSubmit={handleSubmit}\r\n onCloseOrCancel={handleCancel}\r\n />\r\n )}\r\n\r\n {!modal.isOpen && modal.isSubmitModalOpen && (\r\n <SubmitModal\r\n isOpen={modal.isSubmitModalOpen}\r\n labelSubmit={modal.labelSubmit}\r\n onSubmit={handleSubmit}\r\n text={modal.text}\r\n type={modal.type}\r\n textId={modal.textId}\r\n textType={modal.textType}\r\n />\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default GlobalConfirmationModal;\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport { closeSnackbar } from \"store/snackbarSlice\";\r\nimport type { RootState } from \"store/store\"; \r\nimport SnackbarComponent from \"ui/CustomSnackbar\";\r\n\r\nconst GlobalSnackbar = () => {\r\n const dispatch = useDispatch();\r\n\r\n const snackbar = useSelector(\r\n (state: RootState) => state.snackbarData\r\n );\r\n\r\n return (\r\n <SnackbarComponent\r\n open={snackbar.open}\r\n message={snackbar.message}\r\n values={snackbar.values}\r\n type={snackbar.type}\r\n autoHideDuration={snackbar.duration}\r\n onClose={() => dispatch(closeSnackbar())}\r\n/>\r\n );\r\n};\r\n\r\nexport default GlobalSnackbar;","import { Box } from \"@mui/material\";\r\n\r\nexport default function NotFound() {\r\n return (\r\n <Box\r\n sx={{\r\n p: 5,\r\n textAlign: \"center\",\r\n }}\r\n >\r\n 404 - Page Not Found\r\n </Box>\r\n );\r\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !Number.isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, componentName, location);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nconst integerPropType = process.env.NODE_ENV === 'production' ? validatorNoop : validator;\nexport default integerPropType;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPaperUtilityClass(slot) {\n return generateUtilityClass('MuiPaper', slot);\n}\nconst paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);\nexport default paperClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport { styled, useTheme } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport getOverlayAlpha from \"../styles/getOverlayAlpha.mjs\";\nimport { getPaperUtilityClass } from \"./paperClasses.mjs\";\nimport { getTransitionStyles } from \"../transitions/utils.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n square,\n elevation,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]\n };\n return composeClasses(slots, getPaperUtilityClass, classes);\n};\nconst PaperRoot = styled('div', {\n name: 'MuiPaper',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n backgroundColor: (theme.vars || theme).palette.background.paper,\n color: (theme.vars || theme).palette.text.primary,\n ...getTransitionStyles(theme, 'box-shadow'),\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.square,\n style: {\n borderRadius: theme.shape.borderRadius\n }\n }, {\n props: {\n variant: 'outlined'\n },\n style: {\n border: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n }, {\n props: {\n variant: 'elevation'\n },\n style: {\n boxShadow: 'var(--Paper-shadow)',\n backgroundImage: 'var(--Paper-overlay)'\n }\n }]\n})));\nconst Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiPaper'\n });\n const theme = useTheme();\n const {\n className,\n component = 'div',\n elevation = 1,\n square = false,\n variant = 'elevation',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n elevation,\n square,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n if (process.env.NODE_ENV !== 'production') {\n if (theme.shadows[elevation] === undefined) {\n console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \\`theme.shadows[${elevation}]\\` is defined.`].join('\\n'));\n }\n }\n return /*#__PURE__*/_jsx(PaperRoot, {\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n ...other,\n style: {\n ...(variant === 'elevation' && {\n '--Paper-shadow': (theme.vars || theme).shadows[elevation],\n ...(theme.vars && {\n '--Paper-overlay': theme.vars.overlays?.[elevation]\n }),\n ...(!theme.vars && theme.palette.mode === 'dark' && {\n '--Paper-overlay': `linear-gradient(${alpha('#fff', getOverlayAlpha(elevation))}, ${alpha('#fff', getOverlayAlpha(elevation))})`\n })\n }),\n ...other.style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Paper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 1\n */\n elevation: chainPropTypes(integerPropType, props => {\n const {\n elevation,\n variant\n } = props;\n if (elevation > 0 && variant === 'outlined') {\n return new Error(`MUI: Combining \\`elevation={${elevation}}\\` with \\`variant=\"${variant}\"\\` has no effect. Either use \\`elevation={0}\\` or use a different \\`variant\\`.`);\n }\n return null;\n }),\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square: PropTypes.bool,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'elevation'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])\n} : void 0;\nexport default Paper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardUtilityClass(slot) {\n return generateUtilityClass('MuiCard', slot);\n}\nconst cardClasses = generateUtilityClasses('MuiCard', ['root']);\nexport default cardClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport Paper from \"../Paper/index.mjs\";\nimport { getCardUtilityClass } from \"./cardClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getCardUtilityClass, classes);\n};\nconst CardRoot = styled(Paper, {\n name: 'MuiCard',\n slot: 'Root'\n})({\n overflow: 'hidden'\n});\nconst Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCard'\n });\n const {\n className,\n raised = false,\n ...other\n } = props;\n const ownerState = {\n ...props,\n raised\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardRoot, {\n className: clsx(classes.root, className),\n elevation: raised ? 8 : undefined,\n ref: ref,\n ownerState: ownerState,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Card.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the card will use raised styling.\n * @default false\n */\n raised: chainPropTypes(PropTypes.bool, props => {\n if (props.raised && props.variant === 'outlined') {\n return new Error('MUI: Combining `raised={true}` with `variant=\"outlined\"` has no effect.');\n }\n return null;\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Card;","/**\n * Type guard to check if the object has a \"main\" property of type string.\n *\n * @param obj - the object to check\n * @returns boolean\n */\nfunction hasCorrectMainProperty(obj) {\n return typeof obj.main === 'string';\n}\n/**\n * Checks if the object conforms to the SimplePaletteColorOptions type.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param obj - The object to check\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns boolean\n */\nfunction checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {\n if (!hasCorrectMainProperty(obj)) {\n return false;\n }\n for (const value of additionalPropertiesToCheck) {\n if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Creates a filter function used to filter simple palette color options.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns ([, value]: [any, PaletteColorOptions]) => boolean\n */\nexport default function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {\n return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTypographyUtilityClass(slot) {\n return generateUtilityClass('MuiTypography', slot);\n}\nconst typographyClasses = generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom']);\nexport default typographyClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport memoTheme from \"../utils/memoTheme.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport capitalize from \"../utils/capitalize.mjs\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.mjs\";\nimport { getTypographyUtilityClass } from \"./typographyClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n align,\n gutterBottom,\n noWrap,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap']\n };\n return composeClasses(slots, getTypographyUtilityClass, classes);\n};\nexport const TypographyRoot = styled('span', {\n name: 'MuiTypography',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom];\n }\n})(memoTheme(({\n theme\n}) => ({\n margin: 0,\n variants: [{\n props: {\n variant: 'inherit'\n },\n style: {\n // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.\n font: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== 'inherit' && value && typeof value === 'object').map(([variant, value]) => ({\n props: {\n variant\n },\n style: value\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main\n }\n })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === 'string').map(([color]) => ({\n props: {\n color: `text${capitalize(color)}`\n },\n style: {\n color: (theme.vars || theme).palette.text[color]\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.align !== 'inherit',\n style: {\n textAlign: 'var(--Typography-textAlign)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.noWrap,\n style: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.gutterBottom,\n style: {\n marginBottom: '0.35em'\n }\n }]\n})));\nconst defaultVariantMapping = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p',\n inherit: 'p'\n};\nconst Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTypography'\n });\n const {\n color,\n align = 'inherit',\n className,\n component,\n gutterBottom = false,\n noWrap = false,\n variant = 'body1',\n variantMapping = defaultVariantMapping,\n ...other\n } = props;\n const ownerState = {\n ...props,\n align,\n color,\n className,\n component,\n gutterBottom,\n noWrap,\n variant,\n variantMapping\n };\n const Component = component || variantMapping[variant] || defaultVariantMapping[variant] || 'span';\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(TypographyRoot, {\n as: Component,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n ownerState: ownerState,\n style: {\n ...(align !== 'inherit' && {\n '--Typography-textAlign': align\n }),\n ...other.style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Typography.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the text-align on the component.\n * @default 'inherit'\n */\n align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the text will have a bottom margin.\n * @default false\n */\n gutterBottom: PropTypes.bool,\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n * @default false\n */\n noWrap: PropTypes.bool,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string]),\n /**\n * The component maps the variant prop to a range of different HTML element types.\n * For instance, subtitle1 to `<h6>`.\n * If you wish to change that mapping, you can provide your own.\n * Alternatively, you can use the `component` prop.\n * @default {\n * h1: 'h1',\n * h2: 'h2',\n * h3: 'h3',\n * h4: 'h4',\n * h5: 'h5',\n * h6: 'h6',\n * subtitle1: 'h6',\n * subtitle2: 'h6',\n * body1: 'p',\n * body2: 'p',\n * inherit: 'p',\n * }\n */\n variantMapping: PropTypes /* @typescript-to-proptypes-ignore */.object\n} : void 0;\nexport default Typography;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardHeaderUtilityClass(slot) {\n return generateUtilityClass('MuiCardHeader', slot);\n}\nconst cardHeaderClasses = generateUtilityClasses('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);\nexport default cardHeaderClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography, { typographyClasses } from \"../Typography/index.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport cardHeaderClasses, { getCardHeaderUtilityClass } from \"./cardHeaderClasses.mjs\";\nimport useSlot from \"../utils/useSlot.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n avatar: ['avatar'],\n action: ['action'],\n content: ['content'],\n title: ['title'],\n subheader: ['subheader']\n };\n return composeClasses(slots, getCardHeaderUtilityClass, classes);\n};\nconst CardHeaderRoot = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n return [{\n [`& .${cardHeaderClasses.title}`]: styles.title\n }, {\n [`& .${cardHeaderClasses.subheader}`]: styles.subheader\n }, styles.root];\n }\n})({\n display: 'flex',\n alignItems: 'center',\n padding: 16\n});\nconst CardHeaderAvatar = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Avatar'\n})({\n display: 'flex',\n flex: '0 0 auto',\n marginRight: 16\n});\nconst CardHeaderAction = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Action'\n})({\n flex: '0 0 auto',\n alignSelf: 'flex-start',\n marginTop: -4,\n marginRight: -8,\n marginBottom: -4\n});\nconst CardHeaderContent = styled('div', {\n name: 'MuiCardHeader',\n slot: 'Content'\n})({\n flex: '1 1 auto',\n // Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved\n [`.${typographyClasses.root}:where(& .${cardHeaderClasses.title})`]: {\n display: 'block'\n },\n [`.${typographyClasses.root}:where(& .${cardHeaderClasses.subheader})`]: {\n display: 'block'\n }\n});\nconst CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardHeader'\n });\n const {\n action,\n avatar,\n component = 'div',\n disableTypography = false,\n subheader: subheaderProp,\n title: titleProp,\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const ownerState = {\n ...props,\n component,\n disableTypography\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps\n };\n let title = titleProp;\n const [TitleSlot, titleSlotProps] = useSlot('title', {\n className: classes.title,\n elementType: Typography,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n variant: avatar ? 'body2' : 'h5',\n component: 'span'\n }\n });\n if (title != null && title.type !== Typography && !disableTypography) {\n title = /*#__PURE__*/_jsx(TitleSlot, {\n ...titleSlotProps,\n children: title\n });\n }\n let subheader = subheaderProp;\n const [SubheaderSlot, subheaderSlotProps] = useSlot('subheader', {\n className: classes.subheader,\n elementType: Typography,\n externalForwardedProps,\n ownerState,\n additionalProps: {\n variant: avatar ? 'body2' : 'body1',\n color: 'textSecondary',\n component: 'span'\n }\n });\n if (subheader != null && subheader.type !== Typography && !disableTypography) {\n subheader = /*#__PURE__*/_jsx(SubheaderSlot, {\n ...subheaderSlotProps,\n children: subheader\n });\n }\n const [RootSlot, rootSlotProps] = useSlot('root', {\n ref,\n className: classes.root,\n elementType: CardHeaderRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other,\n component\n },\n ownerState\n });\n const [AvatarSlot, avatarSlotProps] = useSlot('avatar', {\n className: classes.avatar,\n elementType: CardHeaderAvatar,\n externalForwardedProps,\n ownerState\n });\n const [ContentSlot, contentSlotProps] = useSlot('content', {\n className: classes.content,\n elementType: CardHeaderContent,\n externalForwardedProps,\n ownerState\n });\n const [ActionSlot, actionSlotProps] = useSlot('action', {\n className: classes.action,\n elementType: CardHeaderAction,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n ...rootSlotProps,\n children: [avatar && /*#__PURE__*/_jsx(AvatarSlot, {\n ...avatarSlotProps,\n children: avatar\n }), /*#__PURE__*/_jsxs(ContentSlot, {\n ...contentSlotProps,\n children: [title, subheader]\n }), action && /*#__PURE__*/_jsx(ActionSlot, {\n ...actionSlotProps,\n children: action\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardHeader.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display in the card header.\n */\n action: PropTypes.node,\n /**\n * The Avatar element to display.\n */\n avatar: PropTypes.node,\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, `subheader` and `title` won't be wrapped by a Typography component.\n * This can be useful to render an alternative Typography variant by wrapping\n * the `title` text, and optional `subheader` text\n * with the Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n avatar: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n content: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n subheader: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n title: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n action: PropTypes.elementType,\n avatar: PropTypes.elementType,\n content: PropTypes.elementType,\n root: PropTypes.elementType,\n subheader: PropTypes.elementType,\n title: PropTypes.elementType\n }),\n /**\n * The content of the component.\n */\n subheader: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The content of the component.\n */\n title: PropTypes.node\n} : void 0;\nexport default CardHeader;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardContentUtilityClass(slot) {\n return generateUtilityClass('MuiCardContent', slot);\n}\nconst cardContentClasses = generateUtilityClasses('MuiCardContent', ['root']);\nexport default cardContentClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { getCardContentUtilityClass } from \"./cardContentClasses.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getCardContentUtilityClass, classes);\n};\nconst CardContentRoot = styled('div', {\n name: 'MuiCardContent',\n slot: 'Root'\n})({\n padding: 16,\n '&:last-child': {\n paddingBottom: 24\n }\n});\nconst CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardContent'\n });\n const {\n className,\n component = 'div',\n ...other\n } = props;\n const ownerState = {\n ...props,\n component\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardContentRoot, {\n as: component,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? CardContent.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default CardContent;","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z\"\n}), 'EditOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z\"\n}), 'DeleteOutlineOutlined');","const NoDataIconSvg = () => {\r\n return (\r\n <svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M8.2497 4.67055V4.73443M7.07782 7.46879H8.64032L8.64063 12.1563M12.9375 0.75C14.4908 0.75 15.75 2.00919 15.75 3.56248L15.75 12.9375C15.75 14.4908 14.4908 15.75 12.9375 15.75H3.5625C2.0092 15.75 0.75 14.4908 0.75 12.9375V3.56248C0.75 2.00919 2.0092 0.75 3.5625 0.75H12.9375Z\" stroke=\"#BDC5C9\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n\r\n );\r\n};\r\n\r\nexport default NoDataIconSvg;","import * as React from \"react\";\r\nimport Card from \"@mui/material/Card\";\r\nimport CardHeader from \"@mui/material/CardHeader\";\r\nimport CardContent from \"@mui/material/CardContent\";\r\nimport {\r\n Divider,\r\n Typography,\r\n Stack,\r\n Box,\r\n IconButton,\r\n} from \"@mui/material\";\r\nimport EditOutlinedIcon from \"@mui/icons-material/EditOutlined\";\r\nimport DeleteOutlineOutlinedIcon from \"@mui/icons-material/DeleteOutlineOutlined\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useTheme from \"@mui/system/useTheme\";\r\nimport { AppButton } from \"ui/index\";\r\nimport NoDataIconSvg from \"assets/icons/NoDataIcon\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport type { OutlinedCardProps } from \"libs/shared/types/common-types\";\r\n\r\n\r\nconst OutlinedCard: React.FC<OutlinedCardProps> = ({\r\n title,\r\n subTitle,\r\n children,\r\n sx,\r\n showNoData = false,\r\n noDataText = \"strNoDataFound\",\r\n showButton = false,\r\n buttonLabel = \"strClear\",\r\n onButtonClick,\r\n buttonVariant = \"outlined\",\r\n content,\r\n showActions = false,\r\n onEdit,\r\n onDelete,\r\n disableEdit = false,\r\n disableDelete = false,\r\n showMultipleAddButton = false,\r\n isRequired = false\r\n}) => {\r\n const { t } = useTranslation();\r\n const theme = useTheme();\r\n\r\n return (\r\n <Card\r\n sx={{\r\n borderRadius: 2,\r\n overflow: \"hidden\",\r\n ...sx,\r\n }}\r\n >\r\n {title && \r\n <CardHeader\r\n sx={{\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n minHeight: \"3rem\",\r\n \"& .MuiCardHeader-action\": {\r\n alignSelf: \"center\",\r\n margin: 0,\r\n },\r\n \"& .MuiCardHeader-content\": {\r\n overflow: \"hidden\",\r\n },\r\n }}\r\n title={\r\n <Box\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n gap: 0.5,\r\n }}\r\n >\r\n <Typography2\r\n text={title}\r\n sx={{ fontWeight: 700 }}\r\n />\r\n\r\n {isRequired && (\r\n <Typography\r\n component=\"span\"\r\n color=\"error\"\r\n sx={{\r\n fontWeight: 700,\r\n fontSize: \"1rem\", \r\n lineHeight: 1,\r\n }}\r\n >\r\n *\r\n </Typography>\r\n )}\r\n </Box>\r\n }\r\n\r\n subheader={\r\n subTitle && (\r\n <Typography2\r\n text={subTitle}>\r\n {t(subTitle)}\r\n </Typography2>\r\n )\r\n }\r\n action={\r\n showMultipleAddButton && (\r\n <AppButton\r\n label={buttonLabel}\r\n variant={buttonVariant}\r\n onClick={onButtonClick}\r\n sx={{\r\n minWidth: 110,\r\n height: 36,\r\n }}\r\n />\r\n )\r\n }\r\n />\r\n}\r\n {title && <Divider /> }\r\n \r\n <CardContent\r\n sx={{\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n minHeight: 'auto',\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"space-between\",\r\n p: 2,\r\n \"&:last-child\": {\r\n pb: 2,\r\n },\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n flex: 1,\r\n display: \"flex\"\r\n }}\r\n >\r\n {content ? (\r\n <Stack sx={{ width: '100%', display: 'flex', justifyContent: 'flex-start', alignItems: 'flex-start' }}>\r\n {content}\r\n </Stack>\r\n\r\n ) : children ? (\r\n children\r\n ) : (\r\n <Stack\r\n spacing={2}\r\n sx={{ width: '100%', justifyContent: 'center', alignItems: 'center' }}\r\n >\r\n {showNoData && (\r\n <Typography\r\n variant=\"body2\"\r\n color=\"text.secondary\"\r\n align=\"center\"\r\n sx={{\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n gap: 1,\r\n mt: 2,\r\n }}\r\n >\r\n <NoDataIconSvg />\r\n <span>{t(noDataText)}</span>\r\n </Typography>\r\n )}\r\n\r\n {showButton && (\r\n <AppButton\r\n label={buttonLabel}\r\n variant={buttonVariant}\r\n onClick={onButtonClick}\r\n />\r\n )}\r\n </Stack>\r\n )}\r\n </Box>\r\n {content && title && (\r\n <Divider />)}\r\n {showActions && (\r\n <Stack\r\n direction=\"row\"\r\n spacing={1}\r\n sx={{ mt: 2, justifyContent: 'flex-end' }}\r\n >\r\n <IconButton\r\n size=\"small\"\r\n disabled={disableEdit}\r\n onClick={onEdit}\r\n sx={{\r\n width: 36,\r\n height: 36,\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n color: \"primary.main\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.datagrid.rowbg,\r\n },\r\n }}\r\n >\r\n <EditOutlinedIcon fontSize=\"small\" />\r\n </IconButton>\r\n\r\n <IconButton\r\n size=\"small\"\r\n disabled={disableDelete}\r\n onClick={onDelete}\r\n sx={{\r\n width: 36,\r\n height: 36,\r\n backgroundColor: theme.palette.error.secondary,\r\n border: `1px solid ${theme.palette.error.secondary}`,\r\n color: theme.palette.error.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.error.secondary\r\n },\r\n }}\r\n >\r\n <DeleteOutlineOutlinedIcon fontSize=\"small\" />\r\n </IconButton>\r\n </Stack>\r\n )}\r\n </CardContent>\r\n </Card>\r\n );\r\n};\r\n\r\nexport default OutlinedCard;","import React from \"react\";\r\nimport {\r\n Card,\r\n CardContent,\r\n CardHeader,\r\n Divider,\r\n Typography,\r\n Stack,\r\n IconButton,\r\n Box,\r\n} from \"@mui/material\";\r\nimport EditOutlinedIcon from \"@mui/icons-material/EditOutlined\";\r\nimport DeleteOutlineOutlinedIcon from \"@mui/icons-material/DeleteOutlineOutlined\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { useTheme } from \"@mui/system\";\r\n\r\nexport interface AddressCardProps {\r\n title: string;\r\n address: string;\r\n onEdit?: () => void;\r\n onDelete?: () => void;\r\n editDisabled?: boolean;\r\n deleteDisabled?: boolean;\r\n sx?: object;\r\n}\r\n\r\nconst CardDetails: React.FC<AddressCardProps> = ({\r\n title,\r\n address,\r\n onEdit,\r\n onDelete,\r\n editDisabled = false,\r\n deleteDisabled = false,\r\n sx = {},\r\n}) => {\r\n const theme = useTheme();\r\n return (\r\n <Card\r\n elevation={0}\r\n sx={{\r\n borderRadius: 2,\r\n overflow: \"hidden\",\r\n ...sx,\r\n }}\r\n >\r\n <CardHeader\r\n title={\r\n <Typography2\r\n variant=\"subtitle1\"\r\n fontWeight={600}\r\n color=\"text.primary\" text={title} />\r\n }\r\n sx={{\r\n py: 1.5,\r\n px: 2,\r\n \"& .MuiCardHeader-content\": {\r\n overflow: \"hidden\",\r\n },\r\n }}\r\n />\r\n\r\n <Divider />\r\n\r\n <CardContent\r\n sx={{\r\n px: 2,\r\n py: 1.75,\r\n \"&:last-child\": {\r\n pb: 1.5,\r\n },\r\n }}\r\n >\r\n <Typography\r\n variant=\"body2\"\r\n color=\"text.secondary\"\r\n sx={{\r\n lineHeight: 1.7,\r\n whiteSpace: \"pre-line\",\r\n wordBreak: \"break-word\",\r\n }}\r\n >\r\n {address}\r\n </Typography>\r\n <Divider />\r\n <Box\r\n sx={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center', mt: 2 }}\r\n >\r\n <Stack direction=\"row\" spacing={1}>\r\n <IconButton\r\n size=\"small\"\r\n disabled={editDisabled}\r\n onClick={onEdit}\r\n sx={{\r\n width: 36,\r\n height: 36,\r\n backgroundColor: theme.palette.outlinecardbackground,\r\n // border: \"1px solid #E2D8FF\",\r\n color: \"primary.main\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.outlinecardbackground,\r\n },\r\n }}\r\n >\r\n <EditOutlinedIcon fontSize=\"small\" />\r\n </IconButton>\r\n\r\n <IconButton\r\n size=\"small\"\r\n disabled={deleteDisabled}\r\n onClick={onDelete}\r\n sx={{\r\n width: 36,\r\n height: 36,\r\n backgroundColor: theme.palette.error.secondary,\r\n border: `1px solid ${theme.palette.error.secondary}`,\r\n color: theme.palette.error.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.error.secondary\r\n },\r\n }}\r\n >\r\n <DeleteOutlineOutlinedIcon fontSize=\"small\" />\r\n </IconButton>\r\n </Stack>\r\n </Box>\r\n </CardContent>\r\n </Card>\r\n);\r\n};\r\n\r\nexport default CardDetails;","import { useCallback, useMemo } from \"react\";\r\n\r\nexport type RadioOptionValue = string | number | boolean;\r\n\r\nexport type RadioOption = {\r\n label: string;\r\n value: RadioOptionValue;\r\n disabled?: boolean;\r\n};\r\n\r\nexport type RadioChangeHandler = (e: React.ChangeEvent<HTMLInputElement>, value: RadioOptionValue, label?: string ,error?: string, status?: boolean, fieldName?: string) => void;\r\n\r\nexport interface RadioValidationRule {\r\n required?: boolean;\r\n}\r\nexport const DEFAULT_BOOLEAN_OPTIONS: RadioOption[] = [\r\n {\r\n label: \"strYes\",\r\n value: true,\r\n },\r\n {\r\n label: \"strNo\",\r\n value: false,\r\n },\r\n];\r\n\r\nexport const isRadioValueProvided = (radioValue?: RadioOptionValue): boolean => {\r\n return radioValue !== undefined && radioValue !== null && radioValue !== \"\";\r\n};\r\n\r\nexport const getRadioInputValue = (radioValue?: RadioOptionValue): string => {\r\n return isRadioValueProvided(radioValue) ? String(radioValue) : \"\";\r\n};\r\n\r\ninterface UseRadioControllerProps {\r\n id: string;\r\n value?: RadioOptionValue;\r\n defaultValue?: RadioOptionValue;\r\n options?: RadioOption[];\r\n required?: boolean;\r\n validation?: RadioValidationRule;\r\n disabled?: boolean;\r\n onChange: RadioChangeHandler;\r\n}\r\n\r\nexport const useRadioController = ({ id, value, defaultValue, options = [], required = false, validation, disabled = false, onChange }: UseRadioControllerProps) => {\r\n const isRequired = !disabled && Boolean(validation?.required || required);\r\n const normalizedOptions = useMemo(() => (options.length > 0 ? options : DEFAULT_BOOLEAN_OPTIONS), [options]);\r\n\r\n const selectedValue = useMemo(() => {\r\n return isRadioValueProvided(value) ? value : defaultValue;\r\n }, [value, defaultValue]);\r\n\r\n const radioGroupValue = useMemo(() => {\r\n const selectedOption = normalizedOptions.find((option) => Object.is(option.value, selectedValue));\r\n\r\n return getRadioInputValue(selectedOption?.value);\r\n }, [normalizedOptions, selectedValue]);\r\n\r\n const handleChange = useCallback(\r\n (e: React.ChangeEvent<HTMLInputElement>, selectedInputValue: string) => {\r\n const selectedOption = normalizedOptions.find((option) => getRadioInputValue(option.value) === selectedInputValue);\r\n\r\n const selectedOptionValue = selectedOption!.value;\r\n const selectedOptionLabel = selectedOption!.label;\r\n\r\n const validationError = isRequired && !isRadioValueProvided(selectedOptionValue) ? \"Field Required\" : \"\";\r\n\r\n onChange(e, selectedOptionValue, selectedOptionLabel,validationError, validationError === \"\", id);\r\n },\r\n [id, isRequired, normalizedOptions, onChange],\r\n );\r\n\r\n return {\r\n handleChange,\r\n isRequired,\r\n normalizedOptions,\r\n radioGroupValue,\r\n selectedValue,\r\n };\r\n};\r\n","import React, { memo, useMemo } from \"react\";\r\n\r\nimport { Box, FormControl, FormControlLabel, FormHelperText, Radio, RadioGroup } from \"@mui/material\";\r\n\r\n\r\n\r\nimport { getRadioInputValue, useRadioController } from \"./radioButtonController\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useAppThemeContext } from \"libs/core/context/AppThemeContext\";\r\nimport type { RadioButtonProps } from \"./RadioButton.type\";\r\nimport { useTheme } from \"@mui/system\";\r\n\r\n\r\nconst RadioButton: React.FC<RadioButtonProps> = ({\r\n id,\r\n label,\r\n name,\r\n value,\r\n error,\r\n onChange,\r\n options = [],\r\n required = false,\r\n helperText,\r\n defaultValue,\r\n validation,\r\n disabled = false,\r\n mt = 0,\r\n sx,\r\n}) => {\r\n const {\r\n handleChange,\r\n\r\n isRequired,\r\n\r\n normalizedOptions,\r\n\r\n radioGroupValue,\r\n } = useRadioController({\r\n id,\r\n value,\r\n defaultValue,\r\n options,\r\n required,\r\n validation,\r\n disabled,\r\n onChange,\r\n });\r\n const {t} = useTranslation();\r\n const {fontSize} = useAppThemeContext();\r\n const theme = useTheme();\r\n const renderItems = useMemo(() => {\r\n return normalizedOptions.map((option) => {\r\n const optionValue = getRadioInputValue(option.value);\r\n const isSelected = radioGroupValue === optionValue;\r\n \r\n return (\r\n <FormControlLabel\r\n key={optionValue}\r\n value={optionValue}\r\n disabled={disabled || option.disabled}\r\n control={\r\n <Radio\r\n size=\"small\"\r\n disableRipple\r\n sx={{\r\n padding: 0,\r\n\r\n marginRight: \"8px\",\r\n\r\n color: isSelected ? \"primary.main\" : \"#CFCFCF\",\r\n\r\n \"&.Mui-checked\": {\r\n color: \"primary.main\",\r\n },\r\n\r\n \"& .MuiSvgIcon-root\": {\r\n fontSize: fontSize,\r\n },\r\n }}\r\n />\r\n }\r\n label={\r\n <Typography2\r\n text={t(option.label)}\r\n sx={{\r\n fontSize: \"0.95rem\",\r\n\r\n fontWeight: 400,\r\n\r\n lineHeight: 1,\r\n\r\n color: isSelected ? \"primary.main\" : \"#8F8F8F\",\r\n }}\r\n />\r\n }\r\n sx={{\r\n margin: 0,\r\n\r\n height: \"40px\",\r\n\r\n minWidth: \"72px\",\r\n\r\n padding: \"0 16px\",\r\n\r\n borderRadius: \"999px\",\r\n\r\n border: isSelected ? \"1.5px solid #142859\": \"1px solid #E5E5E5\",\r\n\r\n backgroundColor: isSelected ? \"#FAF7FF\" : \"#F7F7F7\",\r\n\r\n transition: \"all 0.2s ease\",\r\n\r\n display: \"flex\",\r\n\r\n alignItems: \"center\",\r\n\r\n justifyContent: \"center\",\r\n\r\n boxSizing: \"border-box\",\r\n\r\n \"& .MuiFormControlLabel-label\": {\r\n display: \"flex\",\r\n\r\n alignItems: \"center\",\r\n },\r\n\r\n \"&:hover\": {\r\n backgroundColor: isSelected ? \"#F5F0FF\" : \"#EFEFEF\",\r\n },\r\n }}\r\n />\r\n );\r\n });\r\n }, [disabled, normalizedOptions, radioGroupValue]);\r\n\r\n return (\r\n <Box\r\n sx={{\r\n mt,\r\n width: \"100%\",\r\n ...sx,\r\n }}\r\n >\r\n {/* Label */}\r\n {label && (\r\n <Typography2\r\n text={\r\n <>\r\n {t(label)}\r\n\r\n {isRequired && (\r\n <span\r\n style={{\r\n color: \"red\",\r\n }}\r\n >\r\n {\" \"}\r\n *\r\n </span>\r\n )}\r\n </>\r\n }\r\n sx={{\r\n fontSize: \"1rem\",\r\n fontWeight: 500,\r\n mb: 0,\r\n color: theme.palette.text.primary,\r\n }}\r\n />\r\n )}\r\n\r\n <FormControl error={!!error} fullWidth>\r\n <RadioGroup\r\n row\r\n id={id}\r\n name={name || id}\r\n value={radioGroupValue}\r\n onChange={handleChange}\r\n sx={{\r\n display: \"flex\",\r\n\r\n gap: 2,\r\n\r\n alignItems: \"center\",\r\n\r\n flexWrap: \"wrap\",\r\n }}\r\n >\r\n {renderItems}\r\n </RadioGroup>\r\n\r\n {(error || helperText) && (\r\n <FormHelperText\r\n sx={{\r\n ml: 0,\r\n mt: 1,\r\n }}\r\n >\r\n {error || helperText}\r\n </FormHelperText>\r\n )}\r\n </FormControl>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default memo(RadioButton);\r\n","import { Stack, Typography } from \"@mui/material\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport AppButton from \"ui/button/AppButton\";\r\n\r\ninterface NewRowProptypes {\r\n title?: string;\r\n addAction?: (event: React.MouseEvent<HTMLButtonElement>) => void;\r\n actiontitle?: string\r\n disableAction?: boolean\r\n fontWeight?:string | number,\r\n mt?:number\r\n}\r\n\r\nconst NewRow = (props: NewRowProptypes) => {\r\n const { t } = useTranslation();\r\n const { title, addAction, disableAction= false, fontWeight = 600, mt, actiontitle = \"strAdd\" } = props;\r\n\r\n return (\r\n <Stack \r\n direction=\"row\"\r\n spacing={2}\r\n sx={{ mt: mt, width: \"100%\",justifyContent:'space-between',alignItems:'center' }}\r\n >\r\n {title && \r\n <Typography \r\n variant=\"subtitle1\"\r\n sx={{ \r\n alignSelf: 'center', \r\n borderLeftWidth: '0.375rem', \r\n borderRadius: '0.125rem', \r\n fontWeight: fontWeight \r\n }}\r\n >\r\n {t(title)}\r\n </Typography>\r\n }\r\n \r\n {addAction && !disableAction &&\r\n <AppButton\r\n type=\"submit\"\r\n label={actiontitle}\r\n onClick={addAction}\r\n />\r\n }\r\n </Stack>\r\n );\r\n}\r\n\r\nexport default NewRow;\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), 'ChevronLeft');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'ChevronRight');","import { useRef } from \"react\";\r\nimport {\r\n Box,\r\n IconButton,\r\n Step,\r\n StepConnector,\r\n StepLabel,\r\n Stepper,\r\n type StepIconProps,\r\n} from \"@mui/material\";\r\nimport CheckIcon from \"@mui/icons-material/Check\";\r\nimport ChevronLeftIcon from \"@mui/icons-material/ChevronLeft\";\r\nimport ChevronRightIcon from \"@mui/icons-material/ChevronRight\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\nimport useDevice from \"hooks/useDevice\";\r\nimport type { CustomStepperProps } from \"../types/stepperTypes\"; \r\nimport { useTheme } from \"@mui/system\";\r\n\r\n\r\n\r\nfunction CustomStepIcon(props: Readonly<StepIconProps>) {\r\n const { active, completed, error, icon } = props;\r\n const theme = useTheme();\r\n\r\n const getBackgroundColor = () => {\r\n if (active) return theme.palette.primary.main;\r\n if (error) return theme.palette.error.main;\r\n if (completed) return theme.palette.success.main;\r\n return \"#F5F5F5\";\r\n };\r\n\r\n const getBorderColor = () => {\r\n if (active) return theme.palette.primary.main;\r\n if (error) return theme.palette.error.main;\r\n if (completed) return theme.palette.success.main;\r\n return \"#D9D9D9\";\r\n };\r\n\r\n const renderContent = () => {\r\n if (completed) {\r\n return <CheckIcon sx={{ fontSize: 14 }} />;\r\n }\r\n\r\n if (error) {\r\n return \"!\";\r\n }\r\n\r\n return icon;\r\n };\r\n\r\n return (\r\n <Box\r\n sx={{\r\n width:active? 32:28,\r\n height:active? 32:28,\r\n borderRadius: \"50%\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: getBackgroundColor(),\r\n border: `1.5px solid ${getBorderColor()}`,\r\n color:\r\n active || completed || error\r\n ? \"#fff\"\r\n : \"#1F2937\",\r\n fontSize: \"0.75rem\",\r\n fontWeight: 600,\r\n transition: \"all 0.3s ease\",\r\n }}\r\n >\r\n {renderContent()}\r\n </Box>\r\n );\r\n}\r\nexport default function CustomStepper({\r\n steps,\r\n stepper,\r\n}: Readonly<CustomStepperProps>) {\r\n const {\r\n activeStep,\r\n setStep,\r\n stepErrors = [],\r\n validatedSteps = [],\r\n } = stepper;\r\n\r\n const { t } = useTranslation();\r\n const theme = useTheme();\r\n const { isMobile } = useDevice();\r\n\r\n const scrollRef = useRef<HTMLDivElement>(null);\r\n\r\n const scrollLeft = () => {\r\n scrollRef.current?.scrollBy({\r\n left: -270,\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n const scrollRight = () => {\r\n scrollRef.current?.scrollBy({\r\n left: 270,\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n return (\r\n <Box\r\n sx={{\r\n width: \"100%\",\r\n bgcolor: theme.palette.background.paper,\r\n borderRadius: 1,\r\n pt:2,\r\n pb:1,\r\n position: \"relative\",\r\n }}\r\n >\r\n {isMobile && (\r\n <>\r\n <IconButton\r\n onClick={scrollLeft}\r\n size=\"small\"\r\n sx={{\r\n position: \"absolute\",\r\n left: 4,\r\n top: \"50%\",\r\n transform: \"translateY(-50%)\",\r\n zIndex: 10,\r\n bgcolor: theme.palette.background.paper,\r\n boxShadow: 1,\r\n \"&:hover\": {\r\n bgcolor: \"#fff\",\r\n },\r\n }}\r\n >\r\n <ChevronLeftIcon />\r\n </IconButton>\r\n\r\n <IconButton\r\n onClick={scrollRight}\r\n size=\"small\"\r\n sx={{\r\n position: \"absolute\",\r\n right: 4,\r\n top: \"50%\",\r\n transform: \"translateY(-50%)\",\r\n zIndex: 10,\r\n bgcolor: \"#fff\",\r\n boxShadow: 1,\r\n \"&:hover\": {\r\n bgcolor: \"#fff\",\r\n },\r\n }}\r\n >\r\n <ChevronRightIcon />\r\n </IconButton>\r\n </>\r\n )}\r\n\r\n <Box\r\n ref={scrollRef}\r\n sx={{\r\n overflowX: \"auto\",\r\n overflowY: \"hidden\",\r\n scrollbarWidth: \"none\",\r\n \"&::-webkit-scrollbar\": {\r\n display: \"none\",\r\n },\r\n }}\r\n >\r\n <Stepper\r\n activeStep={activeStep}\r\n alternativeLabel\r\n connector={\r\n <StepConnector\r\n sx={{\r\n top: 12,\r\n \"& .MuiStepConnector-line\": {\r\n borderTopWidth: 1,\r\n borderColor: \"#D9D9D9\",\r\n },\r\n\r\n /*\r\n * \"&.Mui-active .MuiStepConnector-line\": {\r\n * borderColor: theme.palette.primary.main,\r\n * },\r\n */\r\n\r\n /*\r\n * \"&.Mui-completed .MuiStepConnector-line\": {\r\n * borderColor: theme.palette.primary.main,\r\n * },\r\n */\r\n }}\r\n />\r\n }\r\n sx={{\r\n minWidth: isMobile\r\n ? `${Math.max(steps.length * 180, 600)}px`\r\n : \"100%\",\r\n\r\n }}\r\n >\r\n {steps.map((step, index) => {\r\n const hasError = stepErrors[index] ?? false;\r\n\r\n const isCompleted =\r\n validatedSteps.includes(index) && !hasError;\r\n\r\n return (\r\n <Step\r\n key={step.id}\r\n completed={isCompleted}\r\n >\r\n <StepLabel\r\n error={hasError}\r\n slots={{\r\n stepIcon: CustomStepIcon,\r\n }}\r\n onClick={() => setStep(index)}\r\n sx={{\r\n cursor: \"pointer\",\r\n\r\n \"& .MuiStepLabel-iconContainer\": {\r\n cursor: \"pointer\",\r\n },\r\n\r\n \"& .MuiStepLabel-label\": {\r\n color: theme.palette.text.primary,\r\n fontWeight: 500,\r\n fontSize: {\r\n xs: \"0.72rem\",\r\n sm: \"0.8rem\",\r\n md: \"0.85rem\",\r\n },\r\n lineHeight: 1.3,\r\n whiteSpace: \"normal\",\r\n textAlign: \"center\",\r\n },\r\n\r\n \"& .MuiStepLabel-label.Mui-active\": {\r\n color: theme.palette.text.primary,\r\n fontWeight: 600,\r\n },\r\n\r\n \"& .MuiStepLabel-label.Mui-completed\": {\r\n color:theme.palette.text.primary,\r\n },\r\n }}\r\n >\r\n {t(step.name)}\r\n </StepLabel>\r\n </Step>\r\n );\r\n })}\r\n </Stepper>\r\n </Box>\r\n </Box>\r\n );\r\n}","import { useState } from \"react\";\r\nimport useTheme from \"@mui/system/useTheme\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport type { DTO, Props } from \"libs/shared/types/common-types\";\r\nimport type { ClearDTOPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { sharedFormActionNames } from \"utils/sharedFormActions\";\r\nimport AccordionItem from \"../../accordian/AccordianSection\";\r\nimport AppButton from \"../../button/AppButton\";\r\nimport type { StepConfig } from \"../types/stepperTypes\";\r\nimport { constructParentSliceName } from \"utils/commonFunctions\";\r\n\r\n\r\n\r\nexport default function SectionRenderer({ sections, dtoMap, renderSection, onNext, onClear, rootSliceName, isViewMode }: Readonly<Props>) {\r\n const [sectionIndex, setSectionIndex] = useState(0);\r\n const theme = useTheme();\r\n const { t } = useTranslation();\r\n\r\n const dispatch = useDispatch();\r\n\r\n\r\n const getDto = (section: StepConfig): DTO | undefined => {\r\n return dtoMap?.[section.dtoName];\r\n };\r\n\r\n const getDTOKey = (section: StepConfig) => section.dtoName;\r\n\r\n const clear = (section: StepConfig) => {\r\n const dto = getDto(section);\r\n (dispatch as (action: PayloadAction<ClearDTOPayload>) => PayloadAction<ClearDTOPayload>)({\r\n type: `${rootSliceName}/${sharedFormActionNames.CLEAR_DTO}`,\r\n payload: {\r\n key: section.dtoName,\r\n value: section.dto(...(dto?.initialArgs as [])),\r\n parentSliceName: rootSliceName,\r\n },\r\n });\r\n };\r\n\r\n const validateCurrentSection = (dtoKey: string) => {\r\n dispatch({\r\n type: `${rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: {\r\n parentSliceName: constructParentSliceName(dtoKey, rootSliceName),\r\n },\r\n });\r\n };\r\n\r\n return sections.map((section, i) => {\r\n const dto = getDto(section);\r\n\r\n return (\r\n <AccordionItem\r\n key={section.id}\r\n sectionId={section.id}\r\n accordionTitle={\r\n <Typography2\r\n component=\"span\"\r\n text={section.name}\r\n sx={{\r\n color: dto?.menuTextColor ?? theme.palette.text.primary,\r\n fontWeight: 600,\r\n }}\r\n />\r\n }\r\n expanded={sectionIndex === i}\r\n onChange={(_, expanded) => {\r\n setSectionIndex(expanded ? i : -1);\r\n }}\r\n footer={\r\n <>\r\n {!section.isHiddenClear && !isViewMode && (\r\n <AppButton variantType=\"outlined\" onClick={() => (onClear ? onClear(section) : clear(section))}>\r\n {t(\"strClear\")}\r\n </AppButton>\r\n )}\r\n {(!section.isHiddenNext) && (\r\n <AppButton\r\n onClick={() => {\r\n const dtoKey = getDTOKey(section);\r\n if (isViewMode) {\r\n setSectionIndex(i + 1);\r\n }\r\n else {\r\n if (onNext) {\r\n onNext(dtoKey);\r\n } else {\r\n validateCurrentSection(dtoKey);\r\n }\r\n setSectionIndex(i + 1);\r\n }\r\n }}\r\n >\r\n {t(\"strNext\")}\r\n </AppButton>\r\n )}\r\n </>\r\n }\r\n >\r\n {sectionIndex === i && renderSection(section.dtoName!)}\r\n </AccordionItem>\r\n );\r\n });\r\n}\r\n","import { useEffect, useState } from \"react\";\r\n\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { constructParentSliceName } from \"utils/commonFunctions\";\r\nimport AccordionGroup from \"../../accordian/AccordianGroup\";\r\nimport AccordionItem from \"../../accordian/AccordianSection\";\r\nimport AppButton from \"../../button/AppButton\";\r\nimport type { StepConfig, StepperResult } from \"../types/stepperTypes\";\r\n\r\ninterface Props {\r\n activeSectionId?: number,\r\n stepper: StepperResult;\r\n dtoMap: FieldObject<string | DTO>; // need to clarify\r\n renderSection: (dtoName: string) => React.ReactNode;\r\n onNext?: (isLastSection: boolean, dtoKey?: string) => void;\r\n onClear?: (section: StepConfig) => void;\r\n isViewMode?: boolean;\r\n}\r\nexport default function StepRenderer({\r\n activeSectionId,\r\n stepper,\r\n dtoMap,\r\n renderSection,\r\n onNext,\r\n onClear,\r\n isViewMode\r\n}: Readonly<Props>) {\r\n const {\r\n currentStep: step,\r\n activeStep,\r\n totalSteps,\r\n validateCurrentSection,\r\n } = stepper;\r\n const [sectionIndex, setSectionIndex] = useState(activeSectionId ?? 0);\r\n const { t } = useTranslation()\r\n\r\n useEffect(() => {\r\n setSectionIndex(0);\r\n }, [step?.id]);\r\n\r\n useEffect(() => {\r\n if (activeSectionId && activeSectionId !== -1) {\r\n setSectionIndex(activeSectionId)\r\n }\r\n }, [activeSectionId])\r\n\r\n const sectionsToRender = step.sections?.length\r\n ? step.sections\r\n : step.dtoName\r\n ? [{ id: step.id, name: step.name, dtoName: step.dtoName, dto: step.dto }]\r\n : [];\r\n\r\n const isLastSection = sectionIndex === sectionsToRender.length - 1;\r\n const isLastStep = activeStep === totalSteps - 1;\r\n\r\n const getDto = (section: StepConfig): DTO => {\r\n if (step.dtoName === section.dtoName) {\r\n return dtoMap?.[section.dtoName] as DTO\r\n } else {\r\n return (dtoMap?.[step.dtoName] as DTO).fieldsName?.[section.dtoName] as DTO\r\n }\r\n }\r\n\r\n const getDTOKey = (section: StepConfig) => {\r\n return step.dtoName === section.dtoName ? section.dtoName : constructParentSliceName(section.dtoName!, step.dtoName);\r\n };\r\n\r\n if (step.isHiddenAccordion) {\r\n return renderSection(step.dtoName!);\r\n }\r\n\r\n return (\r\n <AccordionGroup title={t(step.name)}>\r\n {sectionsToRender.map((section, i) => {\r\n const dto = getDto(section);\r\n\r\n return (\r\n <AccordionItem\r\n key={section.id}\r\n sectionId={section.id}\r\n accordionTitle={\r\n <Typography2\r\n component=\"span\"\r\n text={section.name}\r\n color={dto.menuTextColor ?? \"\"}\r\n sx={{\r\n fontWeight: 600,\r\n }}\r\n />\r\n }\r\n expanded={sectionIndex === i}\r\n onChange={(_, expanded) => {\r\n setSectionIndex(expanded ? i : -1);\r\n }}\r\n footer={\r\n <>\r\n {!section.isHiddenClear && !isViewMode && <AppButton variantType=\"outlined\"\r\n onClick={() => onClear ? onClear(section) : stepper.clear(section)}\r\n >\r\n {t(\"strClear\")}\r\n </AppButton>}\r\n {!isLastStep && !section.isHiddenNext && (\r\n <AppButton\r\n onClick={() => {\r\n if (isLastSection) {\r\n if (isViewMode) {\r\n stepper.setStep(stepper.activeStep + 1);\r\n } else {\r\n if (onNext) {\r\n onNext(isLastSection);\r\n } else {\r\n stepper.next();\r\n }\r\n }\r\n\r\n } else {\r\n if (section.dtoName && validateCurrentSection && !isViewMode) {\r\n const dtoKey = getDTOKey(section)\r\n if (onNext) {\r\n onNext(isLastSection, dtoKey)\r\n } else {\r\n validateCurrentSection(dtoKey)\r\n }\r\n }\r\n setSectionIndex(i + 1);\r\n }\r\n }}\r\n >\r\n {t(\"strNext\")}\r\n </AppButton>\r\n )}\r\n {/* {isLastSection && isLastStep && (\r\n <AppButton onClick={onSubmit}>Submit</AppButton>\r\n )} */}\r\n </>\r\n }\r\n >\r\n {sectionIndex === i && renderSection(section.dtoName!)}\r\n </AccordionItem>\r\n );\r\n })}\r\n </AccordionGroup>\r\n );\r\n}","import { useMemo, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport type { StepConfig } from \"../types/stepperTypes\";\r\nimport { sharedFormActionNames } from \"../../../../core/utils/sharedFormActions\";\r\nimport { constructParentSliceName } from \"utils/commonFunctions\";\r\nimport type { DTO } from \"libs/shared/types/common-types\";\r\nimport { MenuTextColorEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport type { ClearDTOPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport type { RootState } from \"store/store\";\r\n\r\nfunction getSections(step: StepConfig) {\r\n if (step.sections?.length) return step.sections;\r\n if (step.dtoName) return [step];\r\n return [];\r\n}\r\n\r\nexport default function useStepper<T extends DTO>(steps: StepConfig[], rootSliceName: string, isViewMode: boolean = false) {\r\n const dispatch = useDispatch();\r\n const [activeStep, setActiveStep] = useState(0);\r\n const [validatedSteps, setValidatedSteps] = useState<number[]>([]);\r\n const currentStep = useMemo(() => steps[activeStep]!, [steps, activeStep]);\r\n\r\n const rootState = useSelector((state: RootState) => state[rootSliceName]) as T;\r\n\r\n const getDto = (step: StepConfig, section: StepConfig): DTO => {\r\n if (step.dtoName === section.dtoName) {\r\n return rootState?.fieldsName[section.dtoName] as DTO\r\n } else {\r\n return (rootState?.fieldsName[step.dtoName] as T).fieldsName?.[section.dtoName] as DTO\r\n }\r\n }\r\n\r\n const stepErrors = useMemo(() => {\r\n return steps.map((step) => {\r\n const sections = getSections(step);\r\n return sections.some((section: StepConfig) => {\r\n const dto = getDto(step, section)\r\n return dto?.menuTextColor === MenuTextColorEnum.RED;\r\n });\r\n });\r\n }, [steps, rootState]);\r\n\r\n const next = (onSuccess?: () => void) => {\r\n if (isViewMode) {\r\n setActiveStep((prev) =>\r\n prev < steps.length - 1 ? prev + 1 : prev\r\n );\r\n return;\r\n }\r\n const sections = getSections(currentStep);\r\n sections.forEach((section: StepConfig) => {\r\n const dtoKey = currentStep.dtoName === section.dtoName ? section.dtoName\r\n : constructParentSliceName(section.dtoName, currentStep.dtoName);\r\n\r\n dispatch({\r\n type: `${rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: {\r\n parentSliceName: `${rootSliceName}.${dtoKey}`,\r\n },\r\n });\r\n });\r\n setValidatedSteps((prev) =>\r\n prev.includes(activeStep)\r\n ? prev\r\n : [...prev, activeStep]\r\n );\r\n setActiveStep((prev) =>\r\n prev < steps.length - 1 ? prev + 1 : prev\r\n );\r\n onSuccess?.();\r\n };\r\n const prev = () => {\r\n setActiveStep((prev) => (prev > 0 ? prev - 1 : prev));\r\n };\r\n\r\n const clear = (section: StepConfig) => {\r\n const dto = getDto(currentStep, section);\r\n (dispatch as (action: PayloadAction<ClearDTOPayload>) => PayloadAction<ClearDTOPayload>)({\r\n type: `${rootSliceName}/${sharedFormActionNames.CLEAR_DTO}`,\r\n payload: {\r\n key: section.dtoName,\r\n value: section.dto(...(dto?.initialArgs as [])),\r\n parentSliceName: currentStep.sections ? constructParentSliceName(currentStep.dtoName, rootSliceName) : rootSliceName\r\n }\r\n })\r\n }\r\n\r\n const validateCurrentSection = (dtoKey: string) => {\r\n dispatch({\r\n type: `${rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: {\r\n parentSliceName: `${rootSliceName}.${dtoKey}`,\r\n },\r\n });\r\n };\r\n\r\n const validateAllSteps = () => {\r\n setValidatedSteps(steps.map((_, idx) => idx));\r\n }\r\nconst reset = () => {\r\n setActiveStep(0);\r\n setValidatedSteps([]);\r\n};\r\n\r\n return {\r\n activeStep,\r\n currentStep,\r\n next,\r\n prev,\r\n clear,\r\n setStep: setActiveStep,\r\n stepErrors,\r\n validatedSteps,\r\n validateAllSteps,\r\n validateCurrentSection,\r\n totalSteps: steps.length,\r\n reset\r\n };\r\n}\r\n","import { CommonAddressFields, Constants, YES_NO_BOOL } from \"constants/commonConstants\";\r\nimport { AddressTypeEnum, DefaultRulesEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { AddressInfoDTOType } from \"./addressInfoDto\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\nimport { getConcatAddress, getValueKey, setStateObjValue } from \"utils/commonFunctions\";\r\nimport type { CommonAddressFieldsTypes, CommonAddressFieldsTypesDisplay, FieldObject, GridRowData, StateDistrictPSDataType } from \"libs/shared/types/common-types\";\r\nimport type { SingleAddressDTOType } from \"components/singleAddress/singleAddressDto\";\r\nimport type { SelectedUpdateIdType } from \"./addressMultipleController\";\r\nimport type { AddressMultipleDTOType } from \"./addressDto\";\r\n\r\nexport const ispresentAddressRequired = (list: GridRowData[]): boolean =>\r\n Array.isArray(list) && list?.some((addr: GridRowData) => addr[CommonAddressFields.addressType] === AddressTypeEnum.PRESENT);\r\n\r\nexport const getAddressData = (address: AddressInfoDTOType, isPermAddrSame: boolean) => {\r\n const id = uuidv4();\r\n\r\n const { fieldsName, submitJson, displayJson } = address;\r\n\r\n const constructAddress = <T>(json: T) => ({\r\n ...json,\r\n [fieldsName.isCommAddr]: false,\r\n id,\r\n [fieldsName.addressType]: submitJson[fieldsName.addressType],\r\n isPermAddrSame,\r\n });\r\n\r\n const submitAddress = constructAddress<CommonAddressFieldsTypes>(submitJson);\r\n const displayAddress = constructAddress<CommonAddressFieldsTypesDisplay>(displayJson);\r\n\r\n return {\r\n submitAddress,\r\n displayAddress,\r\n };\r\n};\r\n\r\nexport const validAddress = (addressInfoDTO: AddressInfoDTOType) => {\r\n const { submitJson, fieldsName } = addressInfoDTO;\r\n\r\n return (\r\n (submitJson[fieldsName.country] === Constants.GENERAL.INDIACONTRYCODE && submitJson[fieldsName.state]) ||\r\n (submitJson[fieldsName.country] !== Constants.GENERAL.INDIACONTRYCODE && submitJson[fieldsName.other])\r\n );\r\n};\r\n\r\nexport const isDuplicateAddress = (address: AddressMultipleDTOType, displayAddress: CommonAddressFieldsTypesDisplay) => {\r\n const { displayJson } = address;\r\n\r\n return displayJson?.addressGrid.some(\r\n (val: CommonAddressFieldsTypesDisplay) =>\r\n getConcatAddress(val) === getConcatAddress(displayAddress) && val[CommonAddressFields.addressType] === displayAddress?.[CommonAddressFields.addressType],\r\n );\r\n};\r\n\r\nexport const enableFieldsHandler = (isViewMode: boolean, addressInfoDTO: AddressInfoDTOType | SingleAddressDTOType) => {\r\n const { submitJson, fieldsName } = addressInfoDTO;\r\n const otherCountry = submitJson?.[fieldsName.country] !== Constants.GENERAL.INDIACONTRYCODE;\r\n return !isViewMode && otherCountry;\r\n};\r\n\r\nexport const hasPermanantAddress = (list: GridRowData[]): boolean => {\r\n return list.some((addr: FieldObject) => addr[CommonAddressFields.addressType] === AddressTypeEnum.PERMANANT);\r\n};\r\n\r\nexport const changeAddressInfoRules = (dto: AddressInfoDTOType | SingleAddressDTOType, isCountryIndia: boolean) => {\r\n const { defaultsRules, fieldsName } = dto;\r\n\r\n setStateObjValue(defaultsRules[fieldsName.state], DefaultRulesEnum.REQUIRED, isCountryIndia);\r\n setStateObjValue(defaultsRules[fieldsName.district], DefaultRulesEnum.REQUIRED, isCountryIndia);\r\n setStateObjValue(defaultsRules[fieldsName.subDistrict], DefaultRulesEnum.REQUIRED, isCountryIndia);\r\n setStateObjValue(defaultsRules[fieldsName.village], DefaultRulesEnum.REQUIRED, isCountryIndia);\r\n setStateObjValue(defaultsRules[fieldsName.pincode], DefaultRulesEnum.REQUIRED, isCountryIndia);\r\n setStateObjValue(defaultsRules[fieldsName.policeStation], DefaultRulesEnum.REQUIRED, false);\r\n setStateObjValue(defaultsRules[fieldsName.other], DefaultRulesEnum.REQUIRED, !isCountryIndia);\r\n};\r\n\r\n// made it reusable -- can be used in single address as well\r\nexport const addressKeysMap: Record<string, { codeKey: keyof StateDistrictPSDataType; valueKey: string }> = {\r\n [CommonAddressFields.state]: { codeKey: CommonAddressFields.state, valueKey: getValueKey(CommonAddressFields.state) },\r\n [CommonAddressFields.district]: { codeKey: CommonAddressFields.district, valueKey: getValueKey(CommonAddressFields.district) },\r\n [CommonAddressFields.subDistrict]: { codeKey: CommonAddressFields.subDistrict, valueKey: getValueKey(CommonAddressFields.subDistrict) },\r\n [CommonAddressFields.policeStation]: { codeKey: CommonAddressFields.policeStation, valueKey: getValueKey(CommonAddressFields.policeStation) },\r\n [CommonAddressFields.village]: { codeKey: CommonAddressFields.village, valueKey: getValueKey(CommonAddressFields.village) },\r\n};\r\n\r\nexport const renderRadioButton = (list: GridRowData[], selectedUpdateId: SelectedUpdateIdType, isViewMode: boolean, isPermAddrSame: boolean) => {\r\n const hasPermAddress = hasPermanantAddress(list);\r\n const isEditing = Boolean(selectedUpdateId?.id);\r\n\r\n return !isViewMode && ((!hasPermAddress && !isEditing) || isPermAddrSame);\r\n};\r\n\r\nexport const renderPresentAddress = (selectedUpdateId: SelectedUpdateIdType): boolean => {\r\n const isInitially = selectedUpdateId?.id === null;\r\n const isPresentSelected = selectedUpdateId.addressTypeCd === AddressTypeEnum.PRESENT;\r\n\r\n return isInitially || isPresentSelected;\r\n};\r\n\r\nexport const renderPermanantAddress = (selectedUpdateId: SelectedUpdateIdType, isPermAddrSame: boolean): boolean => {\r\n return isPermAddrSame === YES_NO_BOOL.NO && (selectedUpdateId.id === null || selectedUpdateId.addressTypeCd === AddressTypeEnum.PERMANANT);\r\n};\r\n\r\nexport const isCommAddrSelected = (list: GridRowData[]): boolean => {\r\n let count = 0;\r\n\r\n for (const row of list) {\r\n if (row?.isCommAddr === YES_NO_BOOL.YES) {\r\n count++;\r\n if (count > 1) return YES_NO_BOOL.NO;\r\n }\r\n }\r\n\r\n return count === 1;\r\n};\r\n\r\nexport const validateAddressMultiple = (list: GridRowData[]) => {\r\n let isValid = true, msg = \"\"\r\n\r\n if (list?.length === 0) {\r\n msg = \"strAddressNotAdded\"\r\n isValid = false;\r\n } else {\r\n let hasPermanent = false, hasPresent = false, hasCommAdr = false;\r\n list.forEach((item) => {\r\n if (item.addressTypeCd === AddressTypeEnum.PERMANANT) { hasPermanent = true }\r\n else { hasPresent = true }\r\n\r\n if (item.isCommAddr) { hasCommAdr = true }\r\n })\r\n\r\n if (!hasPermanent) {\r\n msg = \"strAddressNotAddedPermanent\";\r\n isValid = false;\r\n } else if (!hasCommAdr) {\r\n msg = \"strAddressNotAddedCommunication\";\r\n isValid = false;\r\n } else if (!hasPresent) {\r\n msg = \"strAddressNotAddedPresent\";\r\n isValid = false;\r\n }\r\n }\r\n\r\n return { isValid, msg }\r\n}","import { DTONames } from \"constants/dtoNames\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { getNestedValue, getOnChangeActionType, getSelectInputFieldName, setStateObjValue } from \"utils/commonFunctions\";\r\nimport type { AddressInfoDTOType, AddressInfoFieldsType } from \"./addressInfoDto\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport { AddressTypeEnum, DefaultRulesEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { AddressInfoProps, MasterResponseDataType, StateDistrictPSDataType } from \"libs/shared/types/common-types\";\r\nimport { Constants } from \"constants/commonConstants\";\r\nimport type { AddressMultipleDTOType } from \"./addressDto\";\r\nimport { addressKeysMap, changeAddressInfoRules, ispresentAddressRequired } from \"./addressUtils\";\r\nimport Logger from \"utils/loggers\";\r\nimport type { FieldPayload, ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\"; \r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function useAddressInfoController(props: AddressInfoProps) {\r\n const dispatch = useDispatch();\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n\r\n const parentSliceName = useParentSliceName(props.addressType === AddressTypeEnum.PERMANANT ? DTONames.PERMANANT_ADDRESS : DTONames.PRESENT_ADDRESS, props.parentSliceName);\r\n\r\n const addressMultipleState = useSelector((state: RootState) => getNestedValue<AddressMultipleDTOType>(state, props.parentSliceName!));\r\n\r\n const addressInfoState = addressMultipleState.fieldsName[props.addressType === AddressTypeEnum.PERMANANT ? DTONames.PERMANANT_ADDRESS : DTONames.PRESENT_ADDRESS];\r\n\r\n const addressHelper = (dto: AddressInfoDTOType, fields: AddressInfoFieldsType[keyof AddressInfoFieldsType][]) => {\r\n const { fieldError, isValidJson, submitJson, helperText, displayJson } = dto;\r\n fields.forEach((field) => {\r\n setStateObjValue(fieldError, field, \"\");\r\n setStateObjValue(isValidJson, field, true);\r\n setStateObjValue(helperText, field, \"\");\r\n delete submitJson[field];\r\n delete displayJson[field];\r\n });\r\n };\r\n\r\n const countryHandler = (data: FieldPayload, dto: AddressInfoDTOType, fields: AddressInfoFieldsType[keyof AddressInfoFieldsType][]) => {\r\n const presentAddRequired = ispresentAddressRequired(addressMultipleState.submitJson[addressMultipleState.fieldsName.addressGrid]);\r\n Logger.info(\"presentAddRequired:\", presentAddRequired);\r\n\r\n const { fieldsName } = dto;\r\n const isCountryIndia = data.valueOrCd === Constants.GENERAL.INDIACONTRYCODE;\r\n\r\n // change defaults rules\r\n changeAddressInfoRules(dto, isCountryIndia);\r\n\r\n // reset other helping objects\r\n addressHelper(dto, fields);\r\n\r\n if (!isCountryIndia) {\r\n addressHelper(dto, [fieldsName.other]);\r\n }\r\n };\r\n\r\n const onChangeCallback = (data: FieldPayload, dto: AddressInfoDTOType) => {\r\n const key = data.key as AddressInfoFieldsType[keyof AddressInfoFieldsType];\r\n const { fieldsName, defaultsRules } = dto;\r\n\r\n const { country, state, district, subDistrict, village, policeStation, pincode } = fieldsName;\r\n\r\n switch (key) {\r\n case country:\r\n countryHandler(data, dto, [state, district, subDistrict, village, policeStation, pincode]);\r\n break;\r\n\r\n case state:\r\n [state, district, subDistrict, village].forEach((key) => setStateObjValue(defaultsRules[key], DefaultRulesEnum.REQUIRED, true));\r\n addressHelper(dto, [district, subDistrict, village, policeStation]);\r\n break;\r\n\r\n case district:\r\n addressHelper(dto, [subDistrict, village, policeStation]);\r\n break;\r\n\r\n case subDistrict:\r\n addressHelper(dto, [village, policeStation]);\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n };\r\n\r\n const onChangeTextInputField = (event: React.ChangeEvent) => {\r\n const target = event.target as HTMLInputElement;\r\n\r\n const value = target.value || \"\";\r\n const key = target.id || \"\";\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressInfoDTOType>>) => PayloadAction<ChangeFieldPayload>)({\r\n type,\r\n payload: {\r\n key,\r\n parentSliceName,\r\n value,\r\n valueOrCd: value,\r\n callback: onChangeCallback,\r\n },\r\n });\r\n };\r\n\r\n const onChangeMaster = (event: React.BaseSyntheticEvent, data: StateDistrictPSDataType | MasterResponseDataType) => {\r\n const key = event.target.id || \"\";\r\n const fieldName = getSelectInputFieldName(key);\r\n\r\n const activeKeys = addressKeysMap[fieldName] ?? {\r\n codeKey: MASTER_DATA_KEYS.CODE,\r\n valueKey: MASTER_DATA_KEYS.VALUE,\r\n };\r\n\r\n const valueOrCd = (data?.[activeKeys.codeKey] as number) ?? -1;\r\n const value = (data?.[activeKeys.valueKey] as string) ?? \"\";\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressInfoDTOType>>) => PayloadAction<ChangeFieldPayload>)({\r\n type,\r\n payload: {\r\n key: fieldName,\r\n parentSliceName,\r\n value,\r\n valueOrCd: valueOrCd,\r\n callback: onChangeCallback,\r\n },\r\n });\r\n };\r\n\r\n return { addressInfoState, onChangeTextInputField, onChangeMaster };\r\n}\r\n","import { Stack } from \"@mui/system\";\r\nimport { DISTRICT, MASTER_API_END_POINT, PS, STATE, SUB_DISTRICT, VILLAGE } from \"constants/apiEndPoints\";\r\nimport { Constants } from \"constants/commonConstants\";\r\nimport { MasterCodeType } from \"constants/masterCodes\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport CustomHeading from \"libs/shared/UI/heading/CustomHeading\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport { AddressTypeEnum, ApiMethodEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { AddressInfoProps } from \"libs/shared/types/common-types\";\r\nimport React from \"react\";\r\nimport { getValueKey } from \"utils/commonFunctions\";\r\nimport useAddressInfoController from \"./addressInfoController\";\r\nimport { enableFieldsHandler } from \"./addressUtils\";\r\n\r\nconst AddressInfo = (props: AddressInfoProps) => {\r\n const { isViewMode = false } = props;\r\n const { addressInfoState, onChangeTextInputField, onChangeMaster } = useAddressInfoController(props);\r\n\r\n const { submitJson, defaultsRules, fieldError, fieldsName } = addressInfoState;\r\n\r\n const { houseNo, colony, state, streetName, country, subDistrict, village, pincode, district, policeStation, other } = fieldsName;\r\n\r\n const otherCountry = submitJson?.[country] !== Constants.GENERAL.INDIACONTRYCODE;\r\n\r\n const enableFields: boolean = enableFieldsHandler(isViewMode, addressInfoState);\r\n\r\n return (\r\n <>\r\n <CustomHeading text={props.addressType === AddressTypeEnum.PERMANANT ? \"strPermanentAddress\" : \"strPresentAddress\"} />\r\n <Stack spacing={4}>\r\n <GridContainer>\r\n <GridItem>\r\n <TextInputField\r\n id={houseNo}\r\n label={defaultsRules[houseNo].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[houseNo]}\r\n error={Boolean(fieldError[houseNo])}\r\n disabled={isViewMode || enableFields}\r\n helperText={fieldError[houseNo]}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={streetName}\r\n label={defaultsRules[streetName].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[streetName]}\r\n error={Boolean(fieldError[streetName])}\r\n helperText={fieldError[streetName]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={colony}\r\n label={defaultsRules[colony].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[colony]}\r\n error={Boolean(fieldError[colony])}\r\n helperText={fieldError[colony]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField\r\n id={country}\r\n label={defaultsRules[country].label}\r\n validation={defaultsRules[country]}\r\n fieldvalue={submitJson[country]}\r\n onChange={onChangeMaster}\r\n helperText={fieldError[country]}\r\n disabled={isViewMode}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.NATIONALITY,\r\n }}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={state}\r\n label={defaultsRules[state].label}\r\n validation={defaultsRules[state]}\r\n selectoptiontitlekey={getValueKey(state)}\r\n selectoptionindexkey={state}\r\n masterCdKey={country}\r\n masterCd={submitJson?.[country] || 0}\r\n fieldvalue={submitJson[state]}\r\n apiendpoint={STATE}\r\n apiMethod={ApiMethodEnum.GET}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[state]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={district}\r\n label={defaultsRules[district].label}\r\n selectoptiontitlekey={getValueKey(district)}\r\n selectoptionindexkey={district}\r\n masterCd={submitJson?.[state] || 0}\r\n isRefereshedData={!submitJson[state]}\r\n masterCdKey={state}\r\n apiendpoint={DISTRICT}\r\n validation={defaultsRules[district]}\r\n fieldvalue={submitJson[district]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[district]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField\r\n id={subDistrict}\r\n label={defaultsRules[subDistrict].label}\r\n selectoptiontitlekey={getValueKey(subDistrict)}\r\n selectoptionindexkey={subDistrict}\r\n masterCd={submitJson?.[district] || 0}\r\n masterCdKey={district}\r\n isRefereshedData={!submitJson[district]}\r\n apiendpoint={SUB_DISTRICT}\r\n validation={defaultsRules[subDistrict]}\r\n fieldvalue={submitJson[subDistrict]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[subDistrict]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={village}\r\n label={defaultsRules[village].label}\r\n selectoptiontitlekey={getValueKey(village)}\r\n selectoptionindexkey={village}\r\n masterCdKey={subDistrict}\r\n masterCd={submitJson?.[subDistrict] || 0}\r\n fieldvalue={submitJson[village]}\r\n isRefereshedData={!submitJson[subDistrict]}\r\n validation={defaultsRules[village]}\r\n apiendpoint={VILLAGE}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[village]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={policeStation}\r\n label={defaultsRules[policeStation].label}\r\n selectoptiontitlekey={getValueKey(policeStation)}\r\n selectoptionindexkey={policeStation}\r\n masterCdKey={district}\r\n isRefereshedData={!submitJson?.[district]}\r\n apiendpoint={PS}\r\n masterCd={submitJson?.[district] || 0}\r\n validation={defaultsRules[policeStation]}\r\n fieldvalue={submitJson[policeStation]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[policeStation]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <GridContainer>\r\n <GridItem>\r\n <TextInputField\r\n id={pincode}\r\n label={defaultsRules[pincode].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[pincode]}\r\n error={Boolean(fieldError[pincode])}\r\n helperText={fieldError[pincode]}\r\n validation={defaultsRules[pincode]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n {otherCountry && (\r\n <GridItem size={12}>\r\n <TextInputField\r\n id={other}\r\n label={defaultsRules[other].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[other]}\r\n error={Boolean(fieldError[other])}\r\n helperText={fieldError[other]}\r\n validation={defaultsRules[other]}\r\n disabled={isViewMode}\r\n rows={2}\r\n multiline\r\n />\r\n </GridItem>\r\n )}\r\n </GridContainer>\r\n </Stack>\r\n </>\r\n );\r\n};\r\n\r\nexport default React.memo(AddressInfo);\r\n","import { CommonAddressFields, Constants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { AddressTypeEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport { VALIDATION_MAX_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\nimport type { CommonAddressFieldsTypes, CommonAddressFieldsTypesDisplay, DefaultRulesType, DTO, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\n\r\nexport const AddressInfoFields = () => {\r\n return {\r\n ...CommonAddressFields,\r\n id: \"id\",\r\n other: \"outsideIndiaAddr\",\r\n isCommAddr: \"isCommAddr\",\r\n } as const;\r\n};\r\n\r\nexport type AddressInfoFieldsType = ReturnType<typeof AddressInfoFields>;\r\ntype AddressInfoFieldsValueType = Exclude<StringValues<AddressInfoFieldsType>, \"addressTypeCd\" | \"id\" | \"isCommAddr\">;\r\n\r\nexport const AddressInfoDTO = (addressType: AddressTypeEnum, validation: boolean = true) => {\r\n const fieldsName: AddressInfoFieldsType = AddressInfoFields();\r\n\r\n const defaultsRules: Record<AddressInfoFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.houseNo]: { type: FieldEnum.TEXT, label: \"strHouseno\", required: false },\r\n [fieldsName.streetName]: { type: FieldEnum.TEXT, label: \"strStreetName\", required: false },\r\n [fieldsName.colony]: { type: FieldEnum.TEXT, label: \"strColony\", required: false },\r\n [fieldsName.subDistrict]: { type: FieldEnum.SELECT, required: validation, label: \"strSubDistrict\", },\r\n [fieldsName.village]: { type: FieldEnum.SELECT, required: validation, label: \"strVillage\", },\r\n [fieldsName.pincode]: { type: FieldEnum.NUMERIC, length: 6, minLength: 6, maxLength: 6, label: \"strPinCode\", required: validation },\r\n [fieldsName.country]: { type: FieldEnum.SELECT, required: true, label: \"strCountry\", },\r\n [fieldsName.state]: { type: FieldEnum.SELECT, required: validation, label: \"strState\", },\r\n [fieldsName.district]: { type: FieldEnum.SELECT, required: validation, label: \"strDistrict\", },\r\n [fieldsName.policeStation]: { type: FieldEnum.SELECT, label: \"strPoliceStation\", required: validation },\r\n [fieldsName.other]: { type: FieldEnum.TEXT, label: \"strAddressOutsideIndia\", required: false, length: VALIDATION_MAX_LENGTH_ENUM.TEXT500 },\r\n }\r\n\r\n return {\r\n ...getBaseDTO(addressType, validation),\r\n fieldsName,\r\n defaultsRules,\r\n dtoName: addressType === AddressTypeEnum.PERMANANT ? DTONames.PERMANANT_ADDRESS : DTONames.PRESENT_ADDRESS,\r\n submitJson: {\r\n [fieldsName.addressType]: addressType,\r\n [fieldsName.country]: Constants.GENERAL.INDIACONTRYCODE,\r\n } as CommonAddressFieldsTypes,\r\n \r\n displayJson: {\r\n [fieldsName.country]: \"INDIA\", // will be making changes based on login data and language \r\n } as unknown as CommonAddressFieldsTypesDisplay,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type AddressInfoDTOType = ReturnType<typeof AddressInfoDTO>;\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport { getUpdatedState, type RootState } from \"store/store\";\r\nimport { constructParentSliceName, getNestedValue, getOnChangeActionType, setStateObjValue } from \"utils/commonFunctions\";\r\nimport type { AddressMultipleDTOType } from \"./addressDto\";\r\nimport { DTONames } from \"constants/dtoNames\"; \r\nimport { useState } from \"react\";\r\nimport type { GridPaginationModel } from \"@mui/x-data-grid\";\r\nimport { CommonAddressFields, Constants, DataGridConstants } from \"constants/commonConstants\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { sharedFormActionNames } from \"utils/sharedFormActions\";\r\nimport type { AddressMultipleProps, CommonAddressFieldsTypes, FieldObject, GridRowData, RadioOptionValue } from \"libs/shared/types/common-types\";\r\nimport { AddressTypeEnum, ButtonActionEnum, EConfirmationModalType, MenuTextColorEnum, SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\nimport { AddressInfoDTO, type AddressInfoDTOType } from \"./addressInfoDto\";\r\nimport { changeAddressInfoRules, getAddressData, hasPermanantAddress, isDuplicateAddress, ispresentAddressRequired, validAddress, validateAddressMultiple } from \"./addressUtils\";\r\nimport Logger from \"utils/loggers\";\r\nimport { openConfirmationModal } from \"store/confirmationModalSlice\";\r\nimport type { ChangeFieldPayload, FieldPayload, ValidatePayload, LoadNestedDTOPayloadExtended } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { v4 } from \"uuid\";\r\nimport { openSnackbar } from \"store/snackbarSlice\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport interface SelectedUpdateIdType {\r\n id: string | number | null;\r\n addressTypeCd: AddressTypeEnum | null;\r\n isUpdateBoth: boolean;\r\n}\r\n\r\nconst initalSelectedUpdatedState: SelectedUpdateIdType = {\r\n id: null,\r\n addressTypeCd: null,\r\n isUpdateBoth: false,\r\n};\r\nfunction useAddressMultipleController(props: AddressMultipleProps) {\r\n const dispatch = useDispatch();\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n\r\n const [paginationModel, setPaginationModel] = useState<GridPaginationModel>(DataGridConstants.PAGINATION_MODEL);\r\n\r\n const [selectedUpdateId, setSelectedUpdateId] = useState<SelectedUpdateIdType>(initalSelectedUpdatedState);\r\n\r\n const clearSelectedUpdate = () => {\r\n setSelectedUpdateId(initalSelectedUpdatedState);\r\n };\r\n\r\n const parentSliceName = useParentSliceName(DTONames.ADDRESS_MULTIPLE, props.parentSliceName);\r\n\r\n const addressMultipleState = useSelector((state: RootState) => getNestedValue<AddressMultipleDTOType>(state, parentSliceName));\r\n\r\n const { fieldsName, submitJson, displayJson } = addressMultipleState;\r\n\r\n const { addressType } = fieldsName[DTONames.PRESENT_ADDRESS].fieldsName;\r\n\r\n const onChangeRadioField = (_event: React.ChangeEvent<HTMLInputElement>, value: RadioOptionValue) => {\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload>) => PayloadAction<ChangeFieldPayload>)({\r\n type,\r\n payload: {\r\n key: fieldsName.isPermAddrSame,\r\n parentSliceName,\r\n value,\r\n valueOrCd: value,\r\n },\r\n });\r\n };\r\n\r\n const addressManagerCallback = (data: FieldPayload, dto: AddressMultipleDTOType) => {\r\n // clear data for present and permanent addresses on adding the records to grid;\r\n const { fieldsName, submitJson } = dto;\r\n // need to reset the fieldsName[DTONames.PRESENT_ADDRESS] to AddressInfoDTO(AddressTypeEnum.PRESENT, false);\r\n\r\n const presentAddRequired = ispresentAddressRequired(data.valueOrCd as GridRowData[]);\r\n\r\n setStateObjValue(fieldsName, DTONames.PRESENT_ADDRESS, AddressInfoDTO(AddressTypeEnum.PRESENT, !presentAddRequired));\r\n setStateObjValue(fieldsName, DTONames.PERMANANT_ADDRESS, AddressInfoDTO(AddressTypeEnum.PERMANANT, false));\r\n // put isPermAddrSame to undefined\r\n if (hasPermanantAddress(data.valueOrCd as GridRowData[])) {\r\n delete (submitJson as FieldObject)[fieldsName.isPermAddrSame];\r\n } else {\r\n setStateObjValue(submitJson, fieldsName.isPermAddrSame, true);\r\n }\r\n };\r\n\r\n const addressEditBothCallback = (_data: LoadNestedDTOPayloadExtended, dto: AddressMultipleDTOType, row: GridRowData) => {\r\n const { fieldsName, submitJson } = dto;\r\n\r\n setStateObjValue(submitJson, fieldsName.isPermAddrSame, true);\r\n\r\n const isCountryIndia = row[CommonAddressFields.country] === Constants.GENERAL.INDIACONTRYCODE;\r\n // change defaults rules\r\n changeAddressInfoRules(dto.fieldsName[DTONames.PRESENT_ADDRESS], isCountryIndia);\r\n };\r\n\r\n const addressEditSingleCallback = (_data: LoadNestedDTOPayloadExtended, dto: AddressMultipleDTOType) => {\r\n const { fieldsName, submitJson } = dto;\r\n\r\n setStateObjValue(submitJson, fieldsName.isPermAddrSame, false);\r\n };\r\n\r\n const onAddAddress = () => {\r\n // validateDto will be triggered here before adding any record to grid\r\n\r\n (dispatch as (action: PayloadAction<ValidatePayload>) => PayloadAction<ValidatePayload>)({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: { parentSliceName },\r\n });\r\n\r\n const updatedState = getNestedValue<AddressMultipleDTOType>(getUpdatedState(), parentSliceName);\r\n\r\n if (updatedState.menuTextColor === MenuTextColorEnum.RED) {\r\n Logger.warn(\"error in validating dto ----\", updatedState);\r\n return;\r\n }\r\n\r\n const submitAddressList = [];\r\n const displayAddressList = [];\r\n\r\n const sameAsPerm = submitJson[fieldsName.isPermAddrSame];\r\n\r\n const isPresentAddr = validAddress(addressMultipleState.fieldsName[DTONames.PRESENT_ADDRESS]);\r\n const isPermAddr = validAddress(addressMultipleState.fieldsName[DTONames.PERMANANT_ADDRESS]);\r\n\r\n if (isPresentAddr) {\r\n const { displayAddress, submitAddress } = getAddressData(addressMultipleState.fieldsName[DTONames.PRESENT_ADDRESS], sameAsPerm);\r\n\r\n if (isDuplicateAddress(addressMultipleState, displayAddress)) {\r\n Logger.warn(\"duplicate address ----\", updatedState);\r\n return;\r\n }\r\n\r\n submitAddressList.push(submitAddress);\r\n displayAddressList.push(displayAddress);\r\n\r\n if (sameAsPerm) {\r\n const id = v4();\r\n submitAddressList.push({ ...submitAddress, [CommonAddressFields.addressType]: AddressTypeEnum.PERMANANT, id });\r\n displayAddressList.push({ ...displayAddress, [CommonAddressFields.addressType]: AddressTypeEnum.PERMANANT, id });\r\n }\r\n }\r\n\r\n if (isPermAddr) {\r\n const { displayAddress, submitAddress } = getAddressData(addressMultipleState.fieldsName[DTONames.PERMANANT_ADDRESS], sameAsPerm);\r\n\r\n if (isDuplicateAddress(addressMultipleState, displayAddress)) {\r\n Logger.warn(\"duplicate address ----\", updatedState);\r\n return;\r\n }\r\n\r\n submitAddressList.push(submitAddress);\r\n displayAddressList.push(displayAddress);\r\n }\r\n\r\n if (Array.isArray(submitJson[fieldsName.addressGrid])) {\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: {\r\n key: fieldsName.addressGrid,\r\n valueOrCd: [...submitJson[fieldsName.addressGrid], ...submitAddressList],\r\n value: [...displayJson[fieldsName.addressGrid], ...displayAddressList],\r\n parentSliceName,\r\n callback: addressManagerCallback,\r\n },\r\n });\r\n }\r\n };\r\n\r\n const onUpdateAddress = () => {\r\n if (selectedUpdateId.id && selectedUpdateId.isUpdateBoth) {\r\n // update both address\r\n updateBothAddresses();\r\n } else {\r\n // update single address\r\n updateSingleAddress();\r\n }\r\n };\r\n\r\n const updateSingleAddress = () => {\r\n const selectedRow = submitJson[fieldsName.addressGrid].find((item) => item.id === selectedUpdateId.id);\r\n\r\n const checkDtoName = constructParentSliceName(\r\n selectedUpdateId.addressTypeCd === AddressTypeEnum.PRESENT ? DTONames.PRESENT_ADDRESS : DTONames.PERMANANT_ADDRESS,\r\n parentSliceName,\r\n );\r\n\r\n // check validation\r\n (dispatch as (action: PayloadAction<ValidatePayload>) => PayloadAction<ValidatePayload>)({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: { parentSliceName: checkDtoName },\r\n });\r\n\r\n const updatedState = getNestedValue<AddressInfoDTOType>(getUpdatedState(), checkDtoName);\r\n\r\n if (updatedState.menuTextColor === MenuTextColorEnum.RED) {\r\n Logger.warn(\"error in validating dto ----\", updatedState);\r\n return;\r\n }\r\n\r\n const sameAsPerm = submitJson[fieldsName.isPermAddrSame];\r\n\r\n const { displayAddress, submitAddress } = getAddressData(updatedState, sameAsPerm);\r\n\r\n const updatedSubmitList = (submitJson[fieldsName.addressGrid] || [])?.map((addr) => {\r\n if (addr.id === selectedRow?.id) {\r\n return submitAddress;\r\n } else {\r\n return addr;\r\n }\r\n });\r\n const updatedDisplayList = (displayJson[fieldsName.addressGrid] || [])?.map((addr) => {\r\n if (addr.id === selectedRow?.id) {\r\n return displayAddress;\r\n } else {\r\n return addr;\r\n }\r\n });\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: {\r\n key: fieldsName.addressGrid,\r\n valueOrCd: updatedSubmitList,\r\n value: updatedDisplayList,\r\n parentSliceName,\r\n callback: addressManagerCallback,\r\n },\r\n });\r\n\r\n clearSelectedUpdate();\r\n };\r\n\r\n const updateBothAddresses = () => {\r\n // after successfull validation --- need to keep the comm address and id same for submit and display\r\n (dispatch as (action: PayloadAction<ValidatePayload>) => PayloadAction<ValidatePayload>)({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.VALIDATE_DTO}`,\r\n payload: { parentSliceName },\r\n });\r\n\r\n const updatedState = getNestedValue<AddressInfoDTOType>(getUpdatedState(), constructParentSliceName(DTONames.PRESENT_ADDRESS, parentSliceName));\r\n\r\n if (updatedState.menuTextColor === MenuTextColorEnum.RED) {\r\n Logger.warn(\"error in validating dto ----\", updatedState);\r\n return;\r\n }\r\n\r\n const selectedRecord = (submitJson?.[fieldsName.addressGrid] || [])?.find((addr) => addr.id === selectedUpdateId.id);\r\n const selectedRecordSameAsPerm = (submitJson?.[fieldsName.addressGrid] || [])?.find(\r\n (addr) => addr?.[fieldsName.isPermAddrSame] === selectedRecord?.[fieldsName.isPermAddrSame] && addr.id !== selectedRecord.id,\r\n );\r\n\r\n const selectedRecordDisplay = (displayJson?.[fieldsName.addressGrid] || [])?.find((addr) => addr.id === selectedRecord?.id);\r\n const selectedRecordSameAsPermDisplay = (displayJson?.[fieldsName.addressGrid] || [])?.find((addr) => addr.id === selectedRecordSameAsPerm?.id);\r\n\r\n const isSubmitRecordPresent = selectedRecord?.[CommonAddressFields.addressType] === AddressTypeEnum.PRESENT;\r\n\r\n const [submitRecordPresent, submitRecordPerm] = isSubmitRecordPresent ? [selectedRecord, selectedRecordSameAsPerm] : [selectedRecordSameAsPerm, selectedRecord];\r\n\r\n const [displayRecordPresent, displayRecordPerm] = isSubmitRecordPresent\r\n ? [selectedRecordDisplay, selectedRecordSameAsPermDisplay]\r\n : [selectedRecordSameAsPermDisplay, selectedRecordDisplay];\r\n\r\n const sameAsPerm = submitJson[fieldsName.isPermAddrSame];\r\n\r\n const { displayAddress, submitAddress } = getAddressData(updatedState, sameAsPerm);\r\n\r\n const updatedSubmitList = (submitJson[fieldsName.addressGrid] || []).map((addr) => {\r\n if (addr.id === submitRecordPresent?.id) {\r\n return {\r\n ...submitRecordPresent,\r\n ...submitAddress,\r\n id: submitRecordPresent.id,\r\n [CommonAddressFields.addressType]: submitRecordPresent[CommonAddressFields.addressType],\r\n [updatedState.fieldsName.isCommAddr]: submitRecordPresent[updatedState.fieldsName.isCommAddr],\r\n };\r\n }\r\n\r\n if (addr.id === submitRecordPerm?.id) {\r\n return {\r\n ...submitRecordPerm,\r\n ...submitAddress,\r\n id: submitRecordPerm.id,\r\n [CommonAddressFields.addressType]: submitRecordPerm[CommonAddressFields.addressType],\r\n [updatedState.fieldsName.isCommAddr]: submitRecordPerm[updatedState.fieldsName.isCommAddr],\r\n };\r\n }\r\n\r\n return addr;\r\n });\r\n\r\n const updatedDisplayList = (displayJson[fieldsName.addressGrid] || []).map((addr: GridRowData) => {\r\n if (addr.id === displayRecordPresent?.id) {\r\n return {\r\n ...displayRecordPresent,\r\n ...displayAddress,\r\n id: displayRecordPresent.id,\r\n [CommonAddressFields.addressType]: displayRecordPresent[CommonAddressFields.addressType],\r\n [updatedState.fieldsName.isCommAddr]: displayRecordPresent[updatedState.fieldsName.isCommAddr],\r\n };\r\n }\r\n\r\n if (addr.id === displayRecordPerm?.id) {\r\n return {\r\n ...displayRecordPerm,\r\n ...displayAddress,\r\n id: displayRecordPerm.id,\r\n [CommonAddressFields.addressType]: displayRecordPerm[CommonAddressFields.addressType],\r\n [updatedState.fieldsName.isCommAddr]: displayRecordPerm[updatedState.fieldsName.isCommAddr],\r\n };\r\n }\r\n\r\n return addr;\r\n });\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: {\r\n key: fieldsName.addressGrid,\r\n valueOrCd: updatedSubmitList,\r\n value: updatedDisplayList,\r\n parentSliceName,\r\n callback: addressManagerCallback,\r\n },\r\n });\r\n\r\n clearSelectedUpdate();\r\n };\r\n\r\n const editBothAddresses = (row: CommonAddressFieldsTypes) => {\r\n const submitData = (submitJson[fieldsName.addressGrid] || [])?.find((address) => address?.id === row?.id);\r\n\r\n (dispatch as (action: PayloadAction<LoadNestedDTOPayloadExtended<AddressMultipleDTOType>>) => PayloadAction<LoadNestedDTOPayloadExtended<AddressMultipleDTOType>>)({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.LOAD_NESTED_DTO}`,\r\n payload: {\r\n dtoKey: DTONames.PRESENT_ADDRESS,\r\n valueOrCd: { ...submitData, [CommonAddressFields.addressType]: AddressTypeEnum.PRESENT },\r\n value: row,\r\n parentSliceName,\r\n callback(data, dto) {\r\n addressEditBothCallback(data, dto, submitData!);\r\n },\r\n },\r\n });\r\n\r\n setSelectedUpdateId({\r\n id: row.id,\r\n addressTypeCd: AddressTypeEnum.PRESENT,\r\n isUpdateBoth: true,\r\n });\r\n };\r\n\r\n const loadAddress = (row: CommonAddressFieldsTypes) => {\r\n const submitData = (submitJson[fieldsName.addressGrid] || [])?.find((address) => address?.id === row?.id);\r\n\r\n (dispatch as (action: PayloadAction<LoadNestedDTOPayloadExtended<AddressMultipleDTOType>>) => PayloadAction<LoadNestedDTOPayloadExtended<AddressMultipleDTOType>>)({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.LOAD_NESTED_DTO}`,\r\n payload: {\r\n dtoKey: row[addressType] === AddressTypeEnum.PRESENT ? DTONames.PRESENT_ADDRESS : DTONames.PERMANANT_ADDRESS,\r\n valueOrCd: submitData!,\r\n value: row,\r\n parentSliceName,\r\n callback(data, dto) {\r\n addressEditSingleCallback(data, dto);\r\n },\r\n },\r\n });\r\n\r\n setSelectedUpdateId({\r\n id: row.id,\r\n addressTypeCd: row[CommonAddressFields.addressType],\r\n isUpdateBoth: false,\r\n });\r\n };\r\n\r\n const onEdit = (row: CommonAddressFieldsTypes) => {\r\n const sameAsPerm = row[fieldsName.isPermAddrSame];\r\n\r\n if (sameAsPerm) {\r\n dispatch(\r\n openConfirmationModal({\r\n text: \"strEditAddressConfirmationText\",\r\n onSubmit(type) {\r\n if (type === EConfirmationModalType.SUBMIT) {\r\n editBothAddresses({ ...row, [CommonAddressFields.addressType]: AddressTypeEnum.PRESENT });\r\n }\r\n },\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n loadAddress(row);\r\n };\r\n\r\n const onDelete = (row: GridRowData) => {\r\n const sameAsPerm = row[fieldsName.isPermAddrSame];\r\n\r\n const shouldDelete = (item: GridRowData) => {\r\n if (sameAsPerm) {\r\n return false;\r\n }\r\n\r\n return item.id !== row.id;\r\n };\r\n\r\n const displayData = (displayJson[fieldsName.addressGrid] || [])?.filter(shouldDelete);\r\n const submitData = (submitJson[fieldsName.addressGrid] || [])?.filter(shouldDelete);\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: { key: fieldsName.addressGrid, valueOrCd: submitData, value: displayData, parentSliceName, callback: addressManagerCallback },\r\n });\r\n\r\n clearSelectedUpdate();\r\n };\r\n\r\n const onClearAddress = () => {\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: {\r\n key: fieldsName.addressGrid,\r\n valueOrCd: submitJson[fieldsName.addressGrid],\r\n value: displayJson[fieldsName.addressGrid],\r\n parentSliceName,\r\n callback: addressManagerCallback,\r\n },\r\n });\r\n clearSelectedUpdate();\r\n };\r\n\r\n const handleNext = () => {\r\n props?.onNext?.();\r\n if (props.isViewMode) {\r\n return;\r\n }\r\n\r\n // validation not required externally\r\n if (!props.isValidationRequired) {\r\n if (submitJson[fieldsName.addressGrid]?.length === 0) {\r\n return;\r\n }\r\n }\r\n\r\n const { isValid, msg } = validateAddressMultiple(submitJson[fieldsName.addressGrid]);\r\n\r\n if (!isValid) {\r\n dispatch(\r\n openSnackbar({\r\n message: msg,\r\n type: SnackbarEnum.ERROR,\r\n })\r\n );\r\n }\r\n };\r\n\r\n const btnActionHandler = (action: ButtonActionEnum, row?: CommonAddressFieldsTypes | null) => {\r\n switch (action) {\r\n case ButtonActionEnum.VIEW:\r\n loadAddress(row!);\r\n break;\r\n\r\n case ButtonActionEnum.EDIT:\r\n onEdit(row!);\r\n break;\r\n\r\n case ButtonActionEnum.DELETE:\r\n dispatch(\r\n openConfirmationModal({\r\n text: submitJson[fieldsName.isPermAddrSame] ? \"strAddressDeleteConfirmationText\" : \"strDeleteConfirm\",\r\n onSubmit(type) {\r\n if (type === EConfirmationModalType.SUBMIT) {\r\n onDelete(row!);\r\n }\r\n },\r\n }),\r\n );\r\n break;\r\n\r\n case ButtonActionEnum.CLEAR:\r\n dispatch(\r\n openConfirmationModal({\r\n text: \"strClearConfirm\",\r\n onSubmit(type) {\r\n if (type === EConfirmationModalType.SUBMIT) {\r\n onClearAddress();\r\n }\r\n },\r\n }),\r\n );\r\n break;\r\n\r\n case ButtonActionEnum.ADD:\r\n onAddAddress();\r\n break;\r\n\r\n case ButtonActionEnum.UPDATE:\r\n onUpdateAddress();\r\n break;\r\n\r\n case ButtonActionEnum.NEXT:\r\n handleNext();\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n };\r\n\r\n const handleCommAddrChange = (row: GridRowData) => {\r\n const updatedGrid = (submitJson[fieldsName.addressGrid] || [])?.map((addr: GridRowData) => ({\r\n ...addr,\r\n [fieldsName[DTONames.PRESENT_ADDRESS].fieldsName.isCommAddr]: addr.id === row.id,\r\n }));\r\n const updatedGridDisplay = (displayJson[fieldsName.addressGrid] || [])?.map((addr: GridRowData) => ({\r\n ...addr,\r\n [fieldsName[DTONames.PRESENT_ADDRESS].fieldsName.isCommAddr]: addr.id === row.id,\r\n }));\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>) => PayloadAction<ChangeFieldPayload<AddressMultipleDTOType>>)({\r\n type,\r\n payload: {\r\n key: fieldsName.addressGrid,\r\n valueOrCd: updatedGrid,\r\n value: updatedGridDisplay,\r\n parentSliceName,\r\n },\r\n });\r\n };\r\n\r\n return {\r\n addressMultipleState,\r\n parentSliceName,\r\n onChangeRadioField,\r\n paginationModel,\r\n setPaginationModel,\r\n btnActionHandler,\r\n selectedUpdateId,\r\n handleCommAddrChange,\r\n onClearAddress,\r\n };\r\n}\r\n\r\nexport default useAddressMultipleController;","import { Radio } from \"@mui/material\";\r\nimport Stack from \"@mui/material/Stack\";\r\nimport type { GridRowParams } from \"@mui/x-data-grid\";\r\nimport { AddressTypeEnum, ButtonActionEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { AddressMultipleProps, CommonAddressFieldsTypesDisplay } from \"libs/shared/types/common-types\";\r\nimport { AppButton } from \"libs/shared/UI\";\r\nimport RadioButton from \"libs/shared/UI/radio/RadioButton\";\r\nimport React from \"react\";\r\nimport CustomDataGrid from \"ui/dataGrid/DataGrid\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport { getConcatAddress } from \"utils/commonFunctions\";\r\nimport AddressInfo from \"./AddressInfo\"; \r\nimport { hasPermanantAddress, renderPermanantAddress, renderPresentAddress, renderRadioButton } from \"./addressUtils\";\r\nimport useAddressMultipleController from \"./addressMultipleController\";\r\n\r\nconst AddressMultiple = (props: AddressMultipleProps) => {\r\n const { isViewMode = false } = props;\r\n\r\n const { addressMultipleState, parentSliceName, onChangeRadioField, paginationModel, setPaginationModel, btnActionHandler, handleCommAddrChange, selectedUpdateId } =\r\n useAddressMultipleController(props);\r\n\r\n const { fieldsName, submitJson, defaultsRules, displayJson } = addressMultipleState;\r\n\r\n const { permanantAddress, presentAddress, isPermAddrSame, addressGrid } = fieldsName;\r\n\r\n const addressColumns = [\r\n {\r\n field: \"radioSelect\",\r\n headerName: \"strAddressCommuncation\",\r\n width: 60,\r\n renderCell: ({ row }: { row: CommonAddressFieldsTypesDisplay }) => (\r\n <Radio\r\n checked={row?.[presentAddress.fieldsName.isCommAddr]}\r\n onChange={() => handleCommAddrChange(row)}\r\n value={row?.id}\r\n name={presentAddress.fieldsName.isCommAddr}\r\n disabled={isViewMode}\r\n sx={{\r\n color: \"black\", // color will be coming from themes\r\n \"&.Mui-checked\": {\r\n color: props.isViewMode ? \"disabled\" : \"primary.main\", // color will be coming from themes\r\n },\r\n }}\r\n />\r\n ),\r\n },\r\n {\r\n field: \"addressTypeCd\",\r\n headerName: \"strAddressType\",\r\n flex: 1,\r\n width: 150,\r\n renderCell: ({ row }: { row: CommonAddressFieldsTypesDisplay }) => (\r\n <Typography2 component=\"span\" text={row?.addressTypeCd === AddressTypeEnum.PRESENT ? \"strPresentAddress\" : \"strPermanentAddress\"} />\r\n ),\r\n },\r\n {\r\n field: \"address\",\r\n headerName: \"strAddress\",\r\n flex: 1,\r\n width: 200,\r\n renderCell: ({ row }: { row: CommonAddressFieldsTypesDisplay }) => <Typography2 component=\"span\" text={getConcatAddress(row)} />,\r\n },\r\n ];\r\n\r\n const disableRadio = submitJson[fieldsName.isPermAddrSame] && hasPermanantAddress(submitJson[fieldsName.addressGrid]);\r\n\r\n return (\r\n <Stack spacing={2}>\r\n {renderPresentAddress(selectedUpdateId) && (\r\n <AddressInfo\r\n parentSliceName={parentSliceName}\r\n rootSliceName={props.rootSliceName}\r\n addressType={presentAddress.submitJson[presentAddress.fieldsName.addressType]}\r\n isViewMode={isViewMode}\r\n />\r\n )}\r\n\r\n {renderRadioButton(submitJson[addressGrid], selectedUpdateId, isViewMode, submitJson?.[isPermAddrSame]) && (\r\n <RadioButton\r\n id={isPermAddrSame}\r\n name={isPermAddrSame}\r\n label={defaultsRules?.[isPermAddrSame].label}\r\n value={submitJson?.[isPermAddrSame]}\r\n onChange={onChangeRadioField}\r\n disabled={isViewMode || disableRadio}\r\n />\r\n )}\r\n\r\n {renderPermanantAddress(selectedUpdateId, submitJson?.[isPermAddrSame]) && (\r\n <AddressInfo\r\n parentSliceName={parentSliceName}\r\n rootSliceName={props.rootSliceName}\r\n addressType={permanantAddress.submitJson[permanantAddress.fieldsName.addressType]}\r\n isViewMode={isViewMode}\r\n />\r\n )}\r\n {!isViewMode && (\r\n <Stack\r\n spacing={2}\r\n direction=\"row\"\r\n sx={{\r\n mt: 2,\r\n justifyContent: \"flex-end\",\r\n }}\r\n >\r\n <AppButton label=\"strClear\" variantType=\"outlined\" onClick={() => btnActionHandler(ButtonActionEnum.CLEAR)} />\r\n <AppButton label={selectedUpdateId.id ? \"strUpdate\" : \"strAdd\"} onClick={() => btnActionHandler(selectedUpdateId.id ? ButtonActionEnum.UPDATE : ButtonActionEnum.ADD)} />\r\n </Stack>\r\n )}\r\n\r\n <Stack sx={{ mt: 4 }}>\r\n <CustomDataGrid\r\n columns={addressColumns}\r\n data={displayJson[addressGrid]}\r\n paginationModel={paginationModel}\r\n onPaginationModelChange={setPaginationModel}\r\n actions={[\r\n {\r\n type: ButtonActionEnum.VIEW,\r\n onClick: (params: GridRowParams) => btnActionHandler(ButtonActionEnum.VIEW, params.row),\r\n hidden: !isViewMode,\r\n },\r\n {\r\n type: ButtonActionEnum.EDIT,\r\n onClick: (params: GridRowParams) => btnActionHandler(ButtonActionEnum.EDIT, params.row),\r\n hidden: isViewMode,\r\n disabled: !!selectedUpdateId.id,\r\n },\r\n {\r\n type: ButtonActionEnum.DELETE,\r\n onClick: (params: GridRowParams) => btnActionHandler(ButtonActionEnum.DELETE, params.row),\r\n hidden: isViewMode,\r\n disabled: !!selectedUpdateId.id,\r\n },\r\n ]}\r\n />\r\n </Stack>\r\n {props?.onNext && (\r\n <Stack\r\n spacing={2}\r\n direction=\"row\"\r\n sx={{\r\n mt: 2,\r\n justifyContent: \"flex-end\",\r\n }}\r\n >\r\n <AppButton label=\"strNext\" onClick={() => btnActionHandler(ButtonActionEnum.NEXT)} />\r\n </Stack>\r\n )}\r\n </Stack>\r\n );\r\n};\r\n\r\nexport default React.memo(AddressMultiple);\r\n","import { YES_NO_BOOL } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { AddressTypeEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonAddressFieldsTypes, CommonAddressFieldsTypesDisplay, DefaultRulesType, DTO, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { AddressInfoDTO } from \"./addressInfoDto\";\r\n\r\nexport const AddressMultipleFields = (isValidationRequired: boolean) => {\r\n return {\r\n [DTONames.PERMANANT_ADDRESS]: AddressInfoDTO(AddressTypeEnum.PERMANANT, false),\r\n [DTONames.PRESENT_ADDRESS]: AddressInfoDTO(AddressTypeEnum.PRESENT, isValidationRequired),\r\n addressGrid: \"addressGrid\",\r\n isPermAddrSame: \"isPermAddrSame\",\r\n } as const;\r\n};\r\n\r\nexport type AddressMultipleFieldsType = ReturnType<typeof AddressMultipleFields>;\r\ntype AddressMultipleFieldsValueType = Exclude<StringValues<AddressMultipleFieldsType>, \"addressGrid\">;\r\n\r\nexport const AddressMultipleDTO = (isValidationRequired: boolean = true) => {\r\n const fieldsName: AddressMultipleFieldsType = AddressMultipleFields(isValidationRequired);\r\n const defaultsRules: Record<AddressMultipleFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.isPermAddrSame]: { type: FieldEnum.RADIOLIST, label: \"strIsPermanantAddressIsSame\", required: false }\r\n }\r\n\r\n type jsonType = {\r\n [fieldsName.addressGrid]: CommonAddressFieldsTypes[],\r\n [fieldsName.isPermAddrSame]: boolean;\r\n }\r\n\r\n type displayJsonType = jsonType & {\r\n [fieldsName.addressGrid]: CommonAddressFieldsTypesDisplay[],\r\n }\r\n\r\n return {\r\n ...getBaseDTO(isValidationRequired),\r\n fieldsName,\r\n defaultsRules,\r\n dtoName: DTONames.ADDRESS_MULTIPLE,\r\n submitJson: {\r\n [fieldsName.addressGrid]: [],\r\n [fieldsName.isPermAddrSame]: YES_NO_BOOL.YES,\r\n } as jsonType,\r\n displayJson: {\r\n [fieldsName.addressGrid]: [],\r\n } as unknown as displayJsonType,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type AddressMultipleDTOType = ReturnType<typeof AddressMultipleDTO>;\r\n","import { Constants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { DefaultRulesEnum, FieldEnum, MinBirthYear } from \"libs/shared/enums/common-enums\";\r\nimport type { DefaultRulesType, DTO, FieldObject, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { getDefaultMaximumDate, getDefaultMinimumDate } from \"utils/dateUtilities\";\r\n\r\nexport const AgePanelFields = () => {\r\n return {\r\n ageType: \"ageTypeCd\",\r\n dob: \"dob\",\r\n ageYrs: \"ageYrs\",\r\n ageMnths: \"ageMnths\",\r\n yob: \"yob\"\r\n } as const;\r\n};\r\n\r\nexport type AgePanelFieldsType = ReturnType<typeof AgePanelFields>;\r\ntype AgePanelFieldsValueType = StringValues<AgePanelFieldsType>;\r\n\r\nexport const AgePanelDTO = (isValidationRequired: boolean = true, minAge: number = 0) => {\r\n const fieldsName: AgePanelFieldsType = AgePanelFields();\r\n\r\n const year = minAge;\r\n const minAgeYear = minAge;\r\n const maxAgeYear = MinBirthYear.min150 + year;\r\n\r\n const {\r\n REQUIRED,\r\n LABEL,\r\n TYPE,\r\n MINIMUM_DATE,\r\n MAXIMUM_DATE,\r\n AGE_BETWEEN,\r\n SERVER_FORMAT,\r\n CLIENT_FORMAT\r\n } = DefaultRulesEnum;\r\n\r\n const defaultsRules: Record<AgePanelFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.ageType]: {\r\n [LABEL]: \"strAgeType\",\r\n [REQUIRED]: isValidationRequired,\r\n [TYPE]: FieldEnum.SELECT\r\n },\r\n [fieldsName.dob]: {\r\n [LABEL]: \"strDoB\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.DATE,\r\n [SERVER_FORMAT]: Constants.DATE_FORMATE.SERVER,\r\n [CLIENT_FORMAT]: Constants.DATE_FORMATE.CLIENT,\r\n [MINIMUM_DATE]: getDefaultMinimumDate(Constants.DATE_FORMATE.CLIENT),\r\n [MAXIMUM_DATE]: getDefaultMaximumDate(Constants.DATE_FORMATE.CLIENT),\r\n [AGE_BETWEEN]: [minAgeYear, maxAgeYear],\r\n },\r\n [fieldsName.ageMnths]: {\r\n [LABEL]: \"\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n },\r\n [fieldsName.ageYrs]: {\r\n [LABEL]: \"strAgeMonthYear\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT\r\n },\r\n [fieldsName.yob]: {\r\n [LABEL]: \"strAgeYear\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.YEAR,\r\n [AGE_BETWEEN]: [minAgeYear, maxAgeYear],\r\n [SERVER_FORMAT]: Constants.DATE_FORMATE.YEAR,\r\n [CLIENT_FORMAT]: Constants.DATE_FORMATE.YEAR,\r\n [MAXIMUM_DATE]: getDefaultMaximumDate(Constants.DATE_FORMATE.YEAR),\r\n [MINIMUM_DATE]: getDefaultMinimumDate(Constants.DATE_FORMATE.YEAR),\r\n }\r\n }\r\n\r\n type jsonType = FieldObject<string> & {\r\n [fieldsName.ageType]: number\r\n }\r\n\r\n return {\r\n ...getBaseDTO(isValidationRequired, minAge),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {} as jsonType,\r\n dtoName: DTONames.AGE_PANEL\r\n } satisfies DTO;\r\n};\r\n\r\nexport type AgePanelDTOType = ReturnType<typeof AgePanelDTO>;","import { Constants } from \"constants/commonConstants\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { Dayjs } from \"dayjs\";\r\nimport type { TFunction } from \"i18next\";\r\nimport { AgePanelEnums } from \"libs/shared/enums/common-enums\";\r\nimport { customDate, customDateObject, dayConstant, getDateAsPerFormat } from \"utils/dateUtilities\";\r\n\r\nexport interface Age {\r\n years: number;\r\n months: number;\r\n}\r\nexport const getCurrentYear = () => {\r\n const currentDate = new Date();\r\n return Number(currentDate.getFullYear());\r\n};\r\n\r\nexport function getYearAndMonth(userInput: string) {\r\n if (!userInput) return { ageYrs: \"0\", ageMnths: \"0\" };\r\n\r\n let birthDate: Dayjs;\r\n\r\n if (typeof userInput === \"string\" && /^\\d{4}$/.test(userInput)) {\r\n // case: only year provided\r\n birthDate = customDate(getDateAsPerFormat(`${userInput}-01-01`, Constants.DATE_FORMATE.SERVER));\r\n } else {\r\n birthDate = customDate(userInput);\r\n }\r\n\r\n if (!birthDate.isValid()) {\r\n return { ageYrs: \"0\", ageMnths: \"0\" };\r\n }\r\n\r\n const today = customDateObject;\r\n\r\n const years = today.diff(birthDate, dayConstant.year).toString();\r\n\r\n const remainingMonths = today.diff(birthDate.add(+years, dayConstant.year), dayConstant.month).toString();\r\n\r\n return {\r\n ageYrs: years,\r\n ageMnths: Math.max(0, Math.min(11, +remainingMonths)).toString(),\r\n };\r\n}\r\n\r\nexport function getDateOptions(t: TFunction) {\r\n const { DATE_OF_BIRTH, YEAR_OF_BIRTH } = AgePanelEnums;\r\n return [\r\n {\r\n [MASTER_DATA_KEYS.CODE]: DATE_OF_BIRTH,\r\n [MASTER_DATA_KEYS.VALUE]: t(\"strDoB\"),\r\n },\r\n {\r\n [MASTER_DATA_KEYS.CODE]: YEAR_OF_BIRTH,\r\n [MASTER_DATA_KEYS.VALUE]: t(\"strYoB\"),\r\n },\r\n ];\r\n}\r\n","import { YES_NO_BOOL } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport { AgePanelEnums, DefaultRulesEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonProps } from \"libs/shared/types/common-types\";\r\nimport type { FieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { fieldsManager, getNestedValue, setStateObjValue } from \"utils/commonFunctions\";\r\nimport { type AgePanelDTOType } from \"./agePanelDto\";\r\nimport { getYearAndMonth } from \"./agePanelUtils\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function useAgePanelController(props: CommonProps) {\r\n const parentSliceName = useParentSliceName(DTONames.AGE_PANEL, props.parentSliceName);\r\n\r\n const handlers = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n\r\n const AgePanelState = useSelector((state: RootState) => getNestedValue<AgePanelDTOType>(state, parentSliceName));\r\n\r\n const { initialArgs } = AgePanelState;\r\n\r\n /* explicitely needed args to send before clearning the dto */\r\n const ageValidation = (initialArgs?.[0] ?? YES_NO_BOOL.YES) as boolean;\r\n\r\n const onChangeAgeYearMonth = (dto: AgePanelDTOType, fieldName: string, value: string) => {\r\n const { submitJson, displayJson, fieldError, isValidJson, helperText } = dto;\r\n setStateObjValue(fieldError, fieldName, \"\");\r\n setStateObjValue(isValidJson, fieldName, true);\r\n setStateObjValue(helperText, fieldName, \"\");\r\n setStateObjValue(submitJson, fieldName, value);\r\n setStateObjValue(displayJson, fieldName, value);\r\n };\r\n\r\n const onChangeDefaultRulesCB = (data: FieldPayload, dto: AgePanelDTOType) => {\r\n const { fieldsName, defaultsRules } = dto;\r\n\r\n const { yob, dob } = fieldsName;\r\n setStateObjValue(\r\n defaultsRules[yob],\r\n DefaultRulesEnum.REQUIRED,\r\n ageValidation ? data.valueOrCd === AgePanelEnums.YEAR_OF_BIRTH : false,\r\n );\r\n setStateObjValue(\r\n defaultsRules[dob],\r\n DefaultRulesEnum.REQUIRED,\r\n ageValidation ? data.valueOrCd === AgePanelEnums.DATE_OF_BIRTH : false,\r\n );\r\n };\r\n\r\n const onChangeAgeTypeCB = (data: FieldPayload, dto: AgePanelDTOType) => {\r\n const { fieldsName } = dto;\r\n const { ageMnths, ageYrs, dob, yob } = fieldsName;\r\n fieldsManager(dto, [ageMnths, ageYrs, dob, yob]);\r\n onChangeDefaultRulesCB(data, dto);\r\n };\r\n\r\n const onChangeDateYearCB = (data: FieldPayload, dto: AgePanelDTOType) => {\r\n const { fieldsName } = dto;\r\n const { ageMnths, ageYrs } = fieldsName;\r\n\r\n const ageYrsMnths = getYearAndMonth(data.value as string);\r\n\r\n [ageMnths, ageYrs].forEach((field) => {\r\n onChangeAgeYearMonth(dto, field, ageYrsMnths[field]);\r\n });\r\n };\r\n\r\n return {\r\n AgePanelState,\r\n onChangeAgeTypeCB,\r\n onChangeDateYearCB,\r\n handlers,\r\n };\r\n}\r\n","import { AgePanelEnums } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonProps } from \"libs/shared/types/common-types\";\r\nimport CustomDatePicker from \"libs/shared/UI/calender/CustomDatePicker\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport React from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport TextInputField from \"ui/textInput/TextInputField\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport useAgePanelController from \"./agePanelController\";\r\nimport { getDateOptions } from \"./agePanelUtils\";\r\nimport { TWO_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\n\r\nconst AgePanel = (props: CommonProps) => {\r\n const { AgePanelState, onChangeAgeTypeCB, onChangeDateYearCB, handlers } = useAgePanelController(props);\r\n const { defaultsRules, submitJson, fieldError, fieldsName } = AgePanelState;\r\n const { ageMnths, ageType, ageYrs, dob, yob } = fieldsName;\r\n const { t } = useTranslation();\r\n\r\n const { YEAR_OF_BIRTH } = AgePanelEnums;\r\n\r\n const dateOptions = getDateOptions(t);\r\n\r\n const isYob = submitJson[ageType] === YEAR_OF_BIRTH;\r\n const dateKey = isYob ? yob : dob;\r\n const dateRule = defaultsRules[dateKey];\r\n\r\n return (\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField\r\n id={ageType}\r\n label={defaultsRules[ageType].label}\r\n inputData={dateOptions}\r\n fieldvalue={submitJson[ageType]}\r\n onChange={(event, value) => handlers.onMasterChange(event, value, onChangeAgeTypeCB)}\r\n validation={defaultsRules[ageType]}\r\n helperText={fieldError[ageType]}\r\n error={!!fieldError[ageType]}\r\n disabled={props.isViewMode || defaultsRules[ageType]?.isDisabled}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <CustomDatePicker\r\n label={dateRule?.label}\r\n value={submitJson[dateKey]}\r\n onChange={(value) => handlers.onDateChange(dateKey, value, onChangeDateYearCB)}\r\n minDate={dateRule?.minimumDate}\r\n validation={dateRule}\r\n helperText={fieldError[dateKey]}\r\n disabled={props.isViewMode || dateRule?.isDisabled}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <Typography2 text={defaultsRules[ageYrs].label} />\r\n <GridContainer sx={{ mt: 0 }}>\r\n <GridItem size={TWO_COLUMN_LAYOUT}>\r\n <TextInputField\r\n id={ageYrs}\r\n label={defaultsRules[ageMnths].label}\r\n value={submitJson[ageYrs] ?? \"\"}\r\n error={Boolean(fieldError[ageYrs])}\r\n helperText={fieldError[ageYrs]}\r\n onChange={() => {}}\r\n disabled\r\n />\r\n </GridItem>\r\n <GridItem size={TWO_COLUMN_LAYOUT}>\r\n <TextInputField\r\n id={ageMnths}\r\n label={defaultsRules[ageMnths].label}\r\n value={submitJson[ageMnths] ?? \"\"}\r\n error={Boolean(fieldError[ageMnths])}\r\n helperText={fieldError[ageMnths]}\r\n onChange={() => {}}\r\n disabled\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n </GridItem>\r\n </GridContainer>\r\n );\r\n};\r\nexport default React.memo(AgePanel);\r\n","import { FieldEnum, IdentificationTypeEnum } from \"libs/shared/enums/common-enums\";\r\nimport {\r\n VALIDATION_MAX_LENGTH_ENUM,\r\n REGULAR_EXPRESSION_ENUM,\r\n VALIDATION_MIN_LENGTH_ENUM,\r\n} from \"libs/shared/enums/validation-enums\";\r\nimport type { DefaultRulesType } from \"libs/shared/types/common-types\";\r\n\r\nexport const identificationNumRules: Record<IdentificationTypeEnum, DefaultRulesType> = {\r\n [IdentificationTypeEnum.AADHAR_CARD]: {\r\n label: \"strAadharNumber\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.ADHAR_NUM,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.ADHAR_NUM,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC,\r\n },\r\n [IdentificationTypeEnum.ARMS_LISCENCE]: {\r\n label: \"strArmsLiscenceNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.ARM_LICENSE,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.ARM_LICENSE,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC,\r\n },\r\n [IdentificationTypeEnum.DRIVING_LISCENCE]: {\r\n label: \"strDrivingLiscenseNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.DRIVING_LICENSE,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.DRIVING_LICENSE,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC_WITH_SPACE,\r\n },\r\n [IdentificationTypeEnum.RATION_CARD]: {\r\n label: \"strRationCardNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.RATION_NUM,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.RATION_NUM,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC_WITH_SPACE,\r\n },\r\n [IdentificationTypeEnum.PASSPORT]: {\r\n label: \"strPassportNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.PASSPORT,\r\n minLength: VALIDATION_MIN_LENGTH_ENUM.PASSPORT,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC,\r\n },\r\n [IdentificationTypeEnum.PAN_CARD]: {\r\n label: \"strPanCardNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.PAN,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.PAN,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC,\r\n },\r\n [IdentificationTypeEnum.VOTER_ID]: {\r\n label: \"strVoterIdNum\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.VOTERCARD_NUM,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.VOTERCARD_NUM,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC,\r\n },\r\n [IdentificationTypeEnum.OTHERS]: {\r\n label: \"strIdentificationNumber\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.OTHER_ID,\r\n minLength: VALIDATION_MAX_LENGTH_ENUM.TEXT5,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.COMMON_IDENTIFICATION,\r\n },\r\n};\r\n","import type { GridPaginationModel } from \"@mui/x-data-grid\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { DataGridConstants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport { EConfirmationModalType, IdentificationTypeEnum, SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\nimport { VALIDATION_MAX_LENGTH_ENUM, VALIDATION_MIN_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\nimport type { CommonProps, GridRowData, MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport type { ChangeFieldPayload, FieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { openConfirmationModal } from \"store/confirmationModalSlice\";\r\nimport { openSnackbar } from \"store/snackbarSlice\";\r\nimport { type RootState } from \"store/store\";\r\nimport { filterRecordById, getNestedValue, getOnChangeActionType, setStateObjValue } from \"utils/commonFunctions\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\nimport { identificationNumRules } from \"./identificationPanelConfig\";\r\nimport type { IdentificationPanelDTOType, IdentificationPanelFieldsType } from \"./identificationPanelDTO\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function useIdentificationPanel(props: CommonProps) {\r\n const dispatch = useDispatch();\r\n const parentSliceName = useParentSliceName(DTONames.IDENTIFICATION_PANEL, props.parentSliceName);\r\n const handlers = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n const identificationPanelState = useSelector((state: RootState) =>\r\n getNestedValue<IdentificationPanelDTOType>(state, parentSliceName),\r\n );\r\n\r\n const { displayJson, submitJson, fieldsName } = identificationPanelState;\r\n\r\n const [paginationModel, setPaginationModel] = useState<GridPaginationModel>(DataGridConstants.PAGINATION_MODEL);\r\n\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n\r\n const changeDefaultRules = (data: FieldPayload, dto: IdentificationPanelDTOType) => {\r\n const { fieldsName, defaultsRules } = dto;\r\n setStateObjValue(\r\n defaultsRules,\r\n fieldsName.idNumber,\r\n identificationNumRules[data.valueOrCd as IdentificationTypeEnum],\r\n );\r\n };\r\n\r\n const idPanelCallback = (\r\n _data: FieldPayload,\r\n dto: IdentificationPanelDTOType,\r\n keys: IdentificationPanelFieldsType[keyof IdentificationPanelFieldsType][],\r\n ) => {\r\n const { displayJson, submitJson, fieldError, isValidJson, helperText } = dto;\r\n keys.forEach((key) => {\r\n setStateObjValue(fieldError, key, \"\");\r\n setStateObjValue(isValidJson, key, true);\r\n setStateObjValue(helperText, key, \"\");\r\n delete submitJson[key];\r\n delete displayJson[key];\r\n });\r\n };\r\n\r\n const resetIdListError = (_data: FieldPayload, dto: IdentificationPanelDTOType) => {\r\n const { fieldsName, fieldError, isValidJson, helperText } = dto;\r\n\r\n setStateObjValue(fieldError, fieldsName.idList, \"\");\r\n setStateObjValue(isValidJson, fieldsName.idList, true);\r\n setStateObjValue(helperText, fieldsName.idList, \"\");\r\n };\r\n\r\n const checkMinLength = (idLength: number, idType: number) => {\r\n switch (idType) {\r\n case IdentificationTypeEnum.PASSPORT: // passport\r\n return idLength >= VALIDATION_MIN_LENGTH_ENUM.PASSPORT && idLength <= VALIDATION_MAX_LENGTH_ENUM.PASSPORT;\r\n case IdentificationTypeEnum.DRIVING_LISCENCE: // driving license\r\n return idLength === VALIDATION_MAX_LENGTH_ENUM.DRIVING_LICENSE;\r\n case IdentificationTypeEnum.RATION_CARD: // ration card\r\n return idLength === VALIDATION_MAX_LENGTH_ENUM.RATION_NUM;\r\n case IdentificationTypeEnum.ARMS_LISCENCE: //arm license\r\n return idLength === VALIDATION_MAX_LENGTH_ENUM.ARM_LICENSE;\r\n case IdentificationTypeEnum.OTHERS: // other id\r\n return idLength >= VALIDATION_MAX_LENGTH_ENUM.TEXT5 && idLength <= VALIDATION_MAX_LENGTH_ENUM.OTHER_ID;\r\n case IdentificationTypeEnum.VOTER_ID: // voter id card\r\n return idLength === VALIDATION_MAX_LENGTH_ENUM.VOTERCARD_NUM;\r\n case IdentificationTypeEnum.PAN_CARD: // pan card\r\n return idLength === VALIDATION_MIN_LENGTH_ENUM.PAN;\r\n case IdentificationTypeEnum.AADHAR_CARD: // adhar card\r\n return idLength === VALIDATION_MIN_LENGTH_ENUM.ADHAR_NUM;\r\n default:\r\n return true;\r\n }\r\n };\r\n\r\n const onChangeMasterCallback = (data: FieldPayload, dto: IdentificationPanelDTOType) => {\r\n changeDefaultRules(data, dto);\r\n idPanelCallback(data, dto, [fieldsName.idNumber, fieldsName.passportIssueDt, fieldsName.passportIssuePlc]);\r\n };\r\n\r\n const onChangeMaster = (event: React.BaseSyntheticEvent, data: MasterResponseDataType) => {\r\n handlers.onMasterChange(event, data, onChangeMasterCallback);\r\n };\r\n\r\n const isDuplicate = (): boolean => {\r\n return submitJson[fieldsName.idList]?.some(\r\n (ids: GridRowData) => ids.nationalIdNum === submitJson[fieldsName.idNumber],\r\n );\r\n };\r\n\r\n const onAddRecord = () => {\r\n if (\r\n !submitJson[fieldsName.identificationType] ||\r\n !submitJson[fieldsName.idNumber] ||\r\n submitJson[fieldsName.identificationType] === -1\r\n ) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"rfvIdentifiableDetails\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n // for passport type check for passport fields\r\n if (\r\n submitJson[fieldsName.identificationType] === IdentificationTypeEnum.PASSPORT &&\r\n (!submitJson[fieldsName.passportIssuePlc] || !submitJson[fieldsName.passportIssueDt])\r\n ) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"rfvIdentifiableDetails\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n if (!checkMinLength(submitJson[fieldsName.idNumber].length, submitJson[fieldsName.identificationType])) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"strEnterValidDetails\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n if (isDuplicate()) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"strDuplicateDataInGrid\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n const recordId = uuidv4();\r\n\r\n const { idList: _idList, ...rest } = submitJson;\r\n\r\n const record = { ...rest, id: recordId };\r\n const recordDisplay = { ...rest, id: recordId, nationalIdType: displayJson[fieldsName.identificationType] };\r\n\r\n const updatedSubmitList = [...(submitJson[fieldsName.idList] || []), record];\r\n const updatedDisplayList = [...(displayJson[fieldsName.idList] || []), recordDisplay];\r\n\r\n (\r\n dispatch as (\r\n action: PayloadAction<ChangeFieldPayload<IdentificationPanelDTOType>>,\r\n ) => PayloadAction<ChangeFieldPayload<IdentificationPanelDTOType>>\r\n )({\r\n type,\r\n payload: {\r\n key: fieldsName.idList,\r\n valueOrCd: updatedSubmitList,\r\n value: updatedDisplayList,\r\n parentSliceName,\r\n callback(data, dto) {\r\n idPanelCallback(data, dto, [\r\n fieldsName.identificationType,\r\n fieldsName.idNumber,\r\n fieldsName.passportIssueDt,\r\n fieldsName.passportIssuePlc,\r\n ]);\r\n resetIdListError(data, dto);\r\n },\r\n },\r\n });\r\n };\r\n\r\n const onDelete = (row: GridRowData) => {\r\n const displayData = (displayJson[fieldsName.idList] || [])?.filter(filterRecordById(row));\r\n const submitData = (submitJson[fieldsName.idList] || [])?.filter(filterRecordById(row));\r\n\r\n (\r\n dispatch as (\r\n action: PayloadAction<ChangeFieldPayload<IdentificationPanelDTOType>>,\r\n ) => PayloadAction<ChangeFieldPayload<IdentificationPanelDTOType>>\r\n )({\r\n type,\r\n payload: { key: fieldsName.idList, valueOrCd: submitData, value: displayData, parentSliceName },\r\n });\r\n };\r\n\r\n const onDeleteRecord = (row: GridRowData) => {\r\n dispatch(\r\n openConfirmationModal({\r\n text: \"strDeleteConfirm\",\r\n onSubmit(type) {\r\n if (type === EConfirmationModalType.SUBMIT) {\r\n onDelete(row);\r\n }\r\n },\r\n }),\r\n );\r\n };\r\n\r\n return {\r\n paginationModel,\r\n setPaginationModel,\r\n identificationPanelState,\r\n onChangeMaster,\r\n onDeleteRecord,\r\n onAddRecord,\r\n handlers,\r\n };\r\n}\r\n","import type { CommonProps, GridRowData } from \"libs/shared/types/common-types\";\r\nimport React, { useMemo } from \"react\";\r\nimport useIdentificationPanel from \"./useIdentificationPanel\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport { MasterCodeType } from \"constants/masterCodes\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport CustomDatePicker from \"libs/shared/UI/calender/CustomDatePicker\";\r\nimport { Box, Stack } from \"@mui/system\";\r\nimport { AppButton } from \"libs/shared/UI\";\r\nimport CustomDataGrid from \"libs/shared/UI/dataGrid/DataGrid\";\r\nimport { ButtonActionEnum, IdentificationTypeEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { GridColDef, GridRowParams } from \"@mui/x-data-grid\";\r\nimport { getDateFromServerDate } from \"utils/dateUtilities\";\r\nimport { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\n\r\nconst IdentificationPanel = (props: CommonProps) => {\r\n const { isViewMode = false } = props;\r\n const {\r\n identificationPanelState,\r\n onChangeMaster,\r\n paginationModel,\r\n setPaginationModel,\r\n onDeleteRecord,\r\n onAddRecord,\r\n handlers,\r\n } = useIdentificationPanel(props);\r\n\r\n const { onDateChange, onTextChange } = handlers;\r\n\r\n const { fieldsName, submitJson, displayJson, defaultsRules, fieldError } = identificationPanelState;\r\n\r\n const { idList, idNumber, identificationType, passportIssueDt, passportIssuePlc } = fieldsName;\r\n\r\n const identificationList = submitJson[idList];\r\n\r\n const identificationTypeColumns: GridColDef[] = useMemo(() => {\r\n const baseCols = [\r\n { field: \"nationalIdType\", headerName: \"strIdentificationType\", flex: 1 },\r\n { field: idNumber, headerName: \"strIdentificationNumber\", flex: 1 },\r\n ];\r\n\r\n const passportCols = [\r\n { field: passportIssuePlc, headerName: \"strPassportIssuePlace\", flex: 1 },\r\n {\r\n field: passportIssueDt,\r\n headerName: \"strPassportIssueDate\",\r\n flex: 1,\r\n renderCell: ({ row }: { row: typeof submitJson }) => getDateFromServerDate(row?.passportIssueDt),\r\n },\r\n ];\r\n\r\n const hasPassport = !!submitJson[idList]?.some(\r\n (record: GridRowData) => record?.[identificationType] === IdentificationTypeEnum.PASSPORT,\r\n );\r\n\r\n return hasPassport ? [...baseCols, ...passportCols] : baseCols;\r\n }, [isViewMode, identificationList]);\r\n\r\n return (\r\n <Box sx={{ py: 2 }}>\r\n {!isViewMode && (\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField\r\n id={identificationType}\r\n label={defaultsRules[identificationType].label ?? \"\"}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.IDENTITY_TYP,\r\n }}\r\n fieldvalue={submitJson[identificationType]}\r\n onChange={onChangeMaster}\r\n validation={defaultsRules[identificationType]}\r\n helperText={fieldError[identificationType]}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={idNumber}\r\n label={defaultsRules[idNumber].label}\r\n onChange={onTextChange}\r\n value={submitJson[idNumber] ?? \"\"}\r\n validation={defaultsRules[idNumber]}\r\n error={Boolean(fieldError[idNumber])}\r\n helperText={fieldError[idNumber]}\r\n disabled={isViewMode}\r\n />\r\n </GridItem>\r\n {submitJson[identificationType] === IdentificationTypeEnum.PASSPORT && (\r\n <>\r\n <GridItem>\r\n <TextInputField\r\n id={passportIssuePlc}\r\n label={defaultsRules[passportIssuePlc].label}\r\n onChange={onTextChange}\r\n value={submitJson[passportIssuePlc] ?? \"\"}\r\n error={Boolean(fieldError[passportIssuePlc])}\r\n helperText={fieldError[passportIssuePlc]}\r\n validation={defaultsRules[passportIssuePlc]}\r\n disabled={isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <CustomDatePicker\r\n label={defaultsRules[passportIssueDt].label}\r\n value={submitJson[passportIssueDt]}\r\n onChange={(value: string) => onDateChange(passportIssueDt, value)}\r\n minDate={defaultsRules[passportIssueDt].minimumDate}\r\n validation={defaultsRules[passportIssueDt]}\r\n helperText={fieldError[passportIssueDt]}\r\n />\r\n </GridItem>\r\n </>\r\n )}\r\n <Stack\r\n sx={{\r\n mt: 2,\r\n justifyContent: \"flex-end\",\r\n }}\r\n >\r\n <AppButton label=\"strAdd\" onClick={onAddRecord} />\r\n </Stack>\r\n </GridContainer>\r\n )}\r\n <GridContainer>\r\n <CustomDataGrid\r\n columns={identificationTypeColumns}\r\n data={displayJson[idList]}\r\n paginationModel={paginationModel}\r\n onPaginationModelChange={setPaginationModel}\r\n actions={[\r\n {\r\n type: ButtonActionEnum.DELETE,\r\n onClick: (params: GridRowParams) => onDeleteRecord(params.row),\r\n hidden: props.isViewMode,\r\n },\r\n ]}\r\n />\r\n {!!fieldError[idList] && \r\n <Typography2 variant=\"caption\" color=\"error\" text={fieldError[idList]} />\r\n }\r\n </GridContainer>\r\n </Box>\r\n );\r\n};\r\n\r\nexport default React.memo(IdentificationPanel);\r\n","import { Constants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport { REGULAR_EXPRESSION_ENUM, VALIDATION_MAX_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\nimport type { DefaultRulesType, DTO, GridRowData, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { getDefaultMaximumDate, getDefaultMinimumDate } from \"utils/dateUtilities\";\r\n\r\nexport const IdentificationPanelFields = () => {\r\n return {\r\n identificationType: \"nationalIdTypeCd\",\r\n idNumber: \"nationalIdNum\",\r\n passportIssuePlc: \"passportIssuePlc\",\r\n passportIssueDt: \"passportIssueDt\",\r\n idList: \"idList\",\r\n } as const;\r\n};\r\n\r\nexport type IdentificationPanelFieldsType = ReturnType<typeof IdentificationPanelFields>;\r\ntype IdentificationPanelFieldsValueType = StringValues<IdentificationPanelFieldsType>;\r\n\r\nconst {\r\n REQUIRED,\r\n TYPE,\r\n LABEL,\r\n CLIENT_FORMAT,\r\n SERVER_FORMAT,\r\n MINIMUM_DATE,\r\n MAXIMUM_DATE,\r\n LENGTH,\r\n NOT_ALLOWED_STRING,\r\n IS_NOT_ALLOWED_CHARACTERS,\r\n} = DefaultRulesEnum;\r\n\r\nexport const IdentificationPanelDTO = (minRecords: number = 0) => {\r\n const fieldsName: IdentificationPanelFieldsType = IdentificationPanelFields();\r\n const defaultsRules: Record<IdentificationPanelFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.identificationType]: {\r\n [TYPE]: FieldEnum.SELECT,\r\n [REQUIRED]: false,\r\n [LABEL]: \"strIdentificationType\",\r\n },\r\n [fieldsName.idNumber]: {\r\n [TYPE]: FieldEnum.TEXT,\r\n [REQUIRED]: false,\r\n [LABEL]: \"strIdentificationNumber\",\r\n [LENGTH]: VALIDATION_MAX_LENGTH_ENUM.OTHER_ID,\r\n [IS_NOT_ALLOWED_CHARACTERS]: true,\r\n [NOT_ALLOWED_STRING]: REGULAR_EXPRESSION_ENUM.COMMON_IDENTIFICATION,\r\n },\r\n [fieldsName.passportIssuePlc]: {\r\n [TYPE]: FieldEnum.TEXT,\r\n [REQUIRED]: false,\r\n [LABEL]: \"strPassportIssuePlace\",\r\n },\r\n [fieldsName.passportIssueDt]: {\r\n [TYPE]: FieldEnum.DATE,\r\n [REQUIRED]: false,\r\n [LABEL]: \"strPassportIssueDate\",\r\n [SERVER_FORMAT]: Constants.DATE_FORMATE.SERVER,\r\n [CLIENT_FORMAT]: Constants.DATE_FORMATE.CLIENT,\r\n [MAXIMUM_DATE]: getDefaultMaximumDate(Constants.DATE_FORMATE.CLIENT),\r\n [MINIMUM_DATE]: getDefaultMinimumDate(Constants.DATE_FORMATE.CLIENT),\r\n },\r\n [fieldsName.idList]: {\r\n [TYPE]: FieldEnum.ARRAY,\r\n [REQUIRED]: false,\r\n [LABEL]: \"\",\r\n customValidation(value) {\r\n if (minRecords === 0) return \"\";\r\n\r\n const idList = (value as GridRowData[]) ?? [];\r\n if (idList.length < minRecords) {\r\n return \"strIdentificationRqd\";\r\n } else {\r\n return \"\";\r\n }\r\n },\r\n },\r\n };\r\n\r\n type IdListType = {\r\n [fieldsName.identificationType]: number;\r\n [fieldsName.idNumber]: string;\r\n [fieldsName.passportIssuePlc]: string;\r\n [fieldsName.passportIssueDt]: string;\r\n };\r\n\r\n type jsonType = IdListType & {\r\n [fieldsName.idList]: ({ id: string | number } & IdListType)[];\r\n };\r\n\r\n return {\r\n ...getBaseDTO(),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {\r\n [fieldsName.idList]: [],\r\n } as unknown as jsonType,\r\n displayJson: {\r\n [fieldsName.idList]: [],\r\n } as unknown as jsonType,\r\n dtoName: DTONames.IDENTIFICATION_PANEL,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type IdentificationPanelDTOType = ReturnType<typeof IdentificationPanelDTO>;\r\n","import { DTONames } from \"constants/dtoNames\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { getNestedValue, getOnChangeActionType } from \"utils/commonFunctions\";\r\nimport type { MobileVerificationDTOType } from \"./mobileVerificationDTO\";\r\nimport type { MobileVerificationProps } from \"./mobileVerificationTypes\";\r\nimport { handleOnChangeMobile } from \"./validateMobileVerification\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\nexport default function useMobileVerificationController(props: MobileVerificationProps) {\r\n const dispatch = useDispatch();\r\n const parentSliceName = useParentSliceName(DTONames.MOBILE_PANEL, props.parentSliceName,);\r\n\r\n const handlers = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n\r\n const mobileDetailState = useSelector((state: RootState) => getNestedValue<MobileVerificationDTOType>(state, parentSliceName));\r\n\r\n const { fieldsName, submitJson } = mobileDetailState;\r\n\r\n const type = getOnChangeActionType(props.rootSliceName)\r\n\r\n const onChangeField = (event: React.ChangeEvent<HTMLInputElement, Element>) => {\r\n handlers.onTextChange(event, handleOnChangeMobile)\r\n };\r\n\r\n const handleVerify = (mobileField: string) => {\r\n const currentMobile = submitJson?.[mobileField];\r\n return !(!currentMobile || String(currentMobile).length < 10);\r\n };\r\n\r\n const confirmVerification = () => {\r\n dispatch({\r\n type,\r\n payload: {\r\n key: fieldsName.isVerified,\r\n value: true,\r\n valueOrCd: true,\r\n parentSliceName,\r\n callback: handleOnChangeMobile,\r\n },\r\n });\r\n };\r\n return {\r\n mobileDetailState,\r\n onChangeField,\r\n handleVerify,\r\n confirmVerification,\r\n };\r\n}\r\n","import type { CommonProps } from \"libs/shared/types/common-types\";\r\n\r\nexport interface MobileVerificationProps extends CommonProps {\r\n label?: string;\r\n mobileField?: string;\r\n countryCodeField?: string;\r\n showVerifiedButton?: boolean;\r\n isMobileVerifyRequired?: boolean;\r\n}\r\n\r\nexport enum ModalStatusEnum {\r\n OTP = \"otp\",\r\n SUCCESS = \"success\",\r\n ERROR = \"error\"\r\n}\r\nexport interface OtpModalRef {\r\n openModal: () => void;\r\n closeModal: () => void;\r\n}\r\nexport type ModalStatus = ModalStatusEnum;","import React, { useEffect, useRef, useState } from 'react';\r\nimport {\r\n Box,\r\n Modal,\r\n Button,\r\n IconButton,\r\n Stack,\r\n Link,\r\n useTheme\r\n} from '@mui/material';\r\nimport CloseIcon from '@mui/icons-material/Close';\r\nimport Typography2 from 'ui/typography/Typography2';\r\nimport { ModalStatusEnum } from '../mobileVerificationTypes';\r\nimport TextInputField from 'ui/textInput/TextInputField';\r\nimport { DefaultRulesEnum, FieldEnum } from 'libs/shared/enums/common-enums';\r\nimport { REGULAR_EXPRESSION_ENUM } from 'libs/shared/enums/validation-enums';\r\nimport { useTranslation } from 'react-i18next';\r\nconst style = {\r\n position: 'absolute' as const,\r\n top: '50%',\r\n left: '50%',\r\n transform: 'translate(-50%, -50%)',\r\n width: 420,\r\n bgcolor: 'background.paper',\r\n borderRadius: 2,\r\n boxShadow: 24,\r\n p: 4,\r\n textAlign: 'center'\r\n};\r\n\r\ninterface OtpModalProps {\r\n open: boolean;\r\n onClose: () => void;\r\n onVerified: () => void;\r\n mobileNumber: string;\r\n}\r\nconst OtpModal = ({ open, onClose, mobileNumber, onVerified }: OtpModalProps) => {\r\n const [status, setStatus] = useState<ModalStatusEnum>(ModalStatusEnum.OTP);\r\n const [otp, setOtp] = useState(new Array(6).fill(''));\r\n const [timer, setTimer] = useState(60);\r\n const [errorMessage, setErrorMessage] = useState('');\r\n const theme = useTheme();\r\n const otpRefs = useRef<(HTMLInputElement | null)[]>([]);\r\n const { t } = useTranslation();\r\n useEffect(() => {\r\n if (open && status === ModalStatusEnum.OTP) {\r\n requestAnimationFrame(() => {\r\n otpRefs.current[0]?.focus();\r\n });\r\n }\r\n }, [open, status]);\r\n useEffect(() => {\r\n if (status !== ModalStatusEnum.OTP || !open) return;\r\n const interval = setInterval(() => {\r\n setTimer((prev) => (prev <= 1 ? 0 : prev - 1));\r\n }, 1000);\r\n return () => clearInterval(interval);\r\n }, [status, open]);\r\n\r\n const handleChange = (index: number, value: string) => {\r\n const newOtp = [...otp];\r\n newOtp[index] = value;\r\n setOtp(newOtp);\r\n\r\n if (value && index < 5) {\r\n otpRefs.current[index + 1]?.focus();\r\n }\r\n\r\n if (!value && index > 0) {\r\n otpRefs.current[index - 1]?.focus();\r\n }\r\n };\r\n\r\n const handleVerify = () => {\r\n const otpCode = otp.join('');\r\n if (otpCode === \"111111\") {\r\n onVerified();\r\n setStatus(ModalStatusEnum.SUCCESS);\r\n } else {\r\n setStatus(ModalStatusEnum.ERROR);\r\n setErrorMessage('Invalid OTP. Please try again.');\r\n }\r\n };\r\n\r\n const handleResend = () => {\r\n setOtp(new Array(6).fill(''));\r\n setTimer(60);\r\n setStatus(ModalStatusEnum.OTP);\r\n\r\n setTimeout(() => {\r\n otpRefs.current[0]?.focus();\r\n }, 100);\r\n };\r\n\r\n const handleClose = () => {\r\n setStatus(ModalStatusEnum.OTP);\r\n setOtp(new Array(6).fill(''));\r\n setErrorMessage('');\r\n onClose();\r\n };\r\n\r\n return (\r\n <Modal open={open} onClose={handleClose}>\r\n <Box sx={style}>\r\n <IconButton onClick={handleClose} sx={{ position: 'absolute', top: 8, right: 8 }}>\r\n <CloseIcon />\r\n </IconButton>\r\n {/* OTP Screen */}\r\n {status === ModalStatusEnum.OTP && (\r\n <>\r\n <Typography2\r\n text=\"strMobileVerification\"\r\n fontWeight={600}\r\n />\r\n <Typography2\r\n text={`strSixdigitCode ${mobileNumber}`}\r\n color=\"text.secondary\"\r\n sx={{ mb: 3, mt: 1 }}\r\n />\r\n <Stack direction=\"row\" spacing={2} sx={{\r\n '&.MuiStack-root': {\r\n marginBottom: 2\r\n }\r\n }}>\r\n {otp.map((digit, index) => (\r\n <TextInputField\r\n key={index}\r\n inputRef={(el:HTMLInputElement) => {\r\n otpRefs.current[index] = el;\r\n }}\r\n value={digit}\r\n type={FieldEnum.TEXT}\r\n validation={{\r\n [DefaultRulesEnum.REQUIRED]: false,\r\n [DefaultRulesEnum.TYPE]: FieldEnum.TEXT,\r\n [DefaultRulesEnum.LABEL]: \"\",\r\n [DefaultRulesEnum.LENGTH]: 1,\r\n [DefaultRulesEnum.IS_NOT_ALLOWED_CHARACTERS]: true,\r\n [DefaultRulesEnum.NOT_ALLOWED_STRING]: REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC,\r\n }}\r\n onChange={(e:React.ChangeEvent<HTMLInputElement>) => handleChange(index, e.target.value)}\r\n sx={{ width: 48, mb: 4 }}\r\n />\r\n ))}\r\n </Stack>\r\n <Button\r\n variant=\"contained\"\r\n fullWidth\r\n onClick={handleVerify}\r\n disabled={otp.join('').length !== 6}\r\n >\r\n {t('strVerify')}\r\n </Button>\r\n <Typography2\r\n text={\r\n timer > 0\r\n\r\n ? t(\"strResendOTP\", { timer })\r\n : t('strDidntReceive')\r\n }\r\n sx={{ mt: 2 }}\r\n />\r\n {timer === 0 && (\r\n <Link\r\n component=\"button\"\r\n onClick={handleResend}\r\n underline=\"hover\"\r\n sx={{ fontSize: '0.875rem' }}\r\n >\r\n {t('strResend')}\r\n </Link>\r\n )}\r\n </>\r\n )}\r\n {/* Error Screen */}\r\n {status === 'error' && (\r\n <>\r\n <Typography2\r\n text=\"strVerificationFailed\"\r\n color={theme.palette.error.main}\r\n fontWeight={600}\r\n />\r\n <Typography2\r\n text={errorMessage || 'strInvalidOtp'}\r\n color={theme.palette.error.main}\r\n sx={{ my: 2 }}\r\n />\r\n <Button\r\n variant=\"contained\"\r\n fullWidth\r\n onClick={() => {\r\n setOtp(new Array(6).fill(\"\"));\r\n setStatus(ModalStatusEnum.OTP);\r\n\r\n setTimeout(() => {\r\n otpRefs.current[0]?.focus();\r\n }, 100);\r\n }}\r\n >\r\n {t('strTryAgain')}\r\n </Button>\r\n </>\r\n )}\r\n </Box>\r\n </Modal>\r\n );\r\n};\r\nexport default React.memo(OtpModal);","import { useTheme } from \"@mui/material\";\r\nimport { ONE_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\nimport type { DefaultRulesType } from \"libs/shared/types/common-types\";\r\nimport AppButton from \"libs/shared/UI/button/AppButton\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport React, { useState } from \"react\";\r\nimport useMobileVerificationController from \"./mobileVerificationController\";\r\nimport type { MobileVerificationProps } from \"./mobileVerificationTypes\";\r\nimport OtpModal from \"./modal/OtpModal\";\r\n\r\nconst MobileVerification = (props: MobileVerificationProps) => {\r\n const { mobileDetailState, onChangeField, handleVerify, confirmVerification } =\r\n useMobileVerificationController(props);\r\n\r\n const { submitJson, fieldsName: fields, defaultsRules, fieldError } = mobileDetailState;\r\n\r\n const { mobileField = fields.mobileNumber, showVerifiedButton = true, isMobileVerifyRequired = false } = props;\r\n\r\n const [openOtpModal, setOpenOtpModal] = useState(false);\r\n\r\n const theme = useTheme();\r\n\r\n if (!mobileDetailState) return null;\r\n\r\n const { mobileNumber } = fields;\r\n\r\n const currentMobile = submitJson[mobileField] ?? \"\";\r\n\r\n const showVerify = !props.isViewMode && isMobileVerifyRequired && showVerifiedButton;\r\n\r\n const isOtpVerified = Boolean(submitJson?.[fields.isVerified]);\r\n const showVerifiedBadge = isOtpVerified && !showVerify;\r\n\r\n const handleVerifyClick = () => {\r\n const canOpen = handleVerify(mobileField);\r\n if (canOpen) {\r\n setOpenOtpModal(true);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <GridContainer columnSpacing={2} sx={{ alignItems: \"flex-start\", mt: 0 }}>\r\n <GridItem size={ONE_COLUMN_LAYOUT}>\r\n <TextInputField\r\n id={mobileNumber}\r\n label={defaultsRules[mobileNumber]?.label}\r\n value={submitJson[mobileNumber]}\r\n validation={defaultsRules[mobileNumber]}\r\n error={Boolean(fieldError[mobileNumber])}\r\n helperText={fieldError[mobileNumber]}\r\n disabled={props.isViewMode || (defaultsRules[mobileNumber] as DefaultRulesType)?.isDisabled}\r\n onChange={onChangeField}\r\n slotProps={{\r\n input: {\r\n endAdornment: (showVerify || showVerifiedBadge) && (\r\n <AppButton\r\n bgColor={isOtpVerified ? theme.palette.success.main : String(currentMobile).length !== 10 ? theme.palette.disabled.main : undefined}\r\n textColor={theme.palette.text.secondary}\r\n disabled={\r\n isOtpVerified ||\r\n showVerifiedBadge ||\r\n props.isViewMode ||\r\n !currentMobile ||\r\n String(currentMobile).length !== 10\r\n }\r\n onClick={handleVerifyClick}\r\n label={isOtpVerified || showVerifiedBadge ? \"strVerified\" : \"strVerify\"}\r\n sx={{\r\n borderRadius: 1.5\r\n }}\r\n />\r\n ),\r\n },\r\n }}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n {openOtpModal && (\r\n <OtpModal\r\n open={openOtpModal}\r\n mobileNumber={String(currentMobile)}\r\n onVerified={() => {\r\n confirmVerification();\r\n setOpenOtpModal(false);\r\n }}\r\n onClose={() => {\r\n setOpenOtpModal(false);\r\n }}\r\n />\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default React.memo(MobileVerification);\r\n","import { useDispatch, useSelector } from \"react-redux\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport type { MasterResponseDataType, StateDistrictPSDataType } from \"../../types/common-types\";\r\nimport { DTONames } from \"../../../core/constants/dtoNames\";\r\nimport { getNestedValue, getOnChangeActionType, getSelectInputFieldName, setStateObjValue } from \"../../../core/utils/commonFunctions\";\r\nimport type { RootState } from \"../../store/store\";\r\nimport type { SingleAddressDTOType, SingleAddressFieldsType } from \"./singleAddressDto\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport { DefaultRulesEnum } from \"libs/shared/enums/common-enums\";\r\nimport { Constants } from \"constants/commonConstants\";\r\nimport type { FieldPayload, ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { addressKeysMap, changeAddressInfoRules } from \"components/addressMultiple/addressUtils\";\r\nimport type { SingleAddressProps } from \"./SingleAddress\";\r\n\r\nexport function useSingleAddressController(props: SingleAddressProps) {\r\n const dispatch = useDispatch();\r\n const parentSliceName = `${props.parentSliceName}.${props.dtoName ?? DTONames.SINGLE_ADDRESS}`;\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n\r\n const singleAddressState = useSelector((state: RootState) => getNestedValue<SingleAddressDTOType>(state, parentSliceName));\r\n\r\n // const [isOtherCountry, setIsOtherCountry] = useState(isViewMode)\r\n\r\n const addressSetterHelper = (dto: SingleAddressDTOType, fields: SingleAddressFieldsType[keyof SingleAddressFieldsType][]) => {\r\n const { fieldError, submitJson, helperText, displayJson } = dto;\r\n fields.forEach(field => {\r\n setStateObjValue(fieldError, field, \"\");\r\n setStateObjValue(helperText, field, \"\");\r\n delete submitJson[field];\r\n delete displayJson[field];\r\n })\r\n }\r\n\r\n const onChangeCallback = (data: FieldPayload, dto: SingleAddressDTOType) => {\r\n const key = data.key as SingleAddressFieldsType[keyof SingleAddressFieldsType];\r\n const { fieldsName, defaultsRules } = dto\r\n const { country, state, district, subDistrict, village, policeStation } = fieldsName\r\n\r\n switch (key) {\r\n case country:\r\n // setIsOtherCountry(data.valueOrCd !== Constants.GENERAL.INDIACONTRYCODE)// other country check\r\n changeAddressInfoRules(dto, data.valueOrCd === Constants.GENERAL.INDIACONTRYCODE);\r\n addressSetterHelper(dto, [state, district, subDistrict, village, policeStation]);\r\n break\r\n\r\n case state:\r\n [state, district, subDistrict, village].forEach(key => setStateObjValue(defaultsRules[key], DefaultRulesEnum.REQUIRED, true))\r\n addressSetterHelper(dto, [district, subDistrict, village, policeStation]);\r\n break\r\n\r\n case district:\r\n addressSetterHelper(dto, [subDistrict, village, policeStation]);\r\n break\r\n\r\n case subDistrict:\r\n addressSetterHelper(dto, [village]);\r\n break\r\n\r\n default:\r\n break\r\n }\r\n }\r\n\r\n const onChangeTextInputField = (event: React.ChangeEvent<HTMLInputElement>) => {\r\n const value = event.target.value || '';\r\n const key = event.target.id || '';\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<SingleAddressDTOType>>) => PayloadAction<ChangeFieldPayload<SingleAddressDTOType>>)({\r\n type,\r\n payload: { key, valueOrCd: value, value, parentSliceName, callback: onChangeCallback },\r\n });\r\n };\r\n\r\n const onChangeMaster = (event: React.BaseSyntheticEvent, data: MasterResponseDataType | StateDistrictPSDataType) => {\r\n const key = event.target.id || '';\r\n const fieldName = getSelectInputFieldName(key);\r\n const activeKeys = addressKeysMap[fieldName] ?? {\r\n codeKey: MASTER_DATA_KEYS.CODE,\r\n valueKey: MASTER_DATA_KEYS.VALUE,\r\n };\r\n\r\n const valueOrCd = (data?.[activeKeys.codeKey] as number) ?? -1;\r\n const value = (data?.[activeKeys.valueKey] as string) ?? \"\";\r\n\r\n (dispatch as (action: PayloadAction<ChangeFieldPayload<SingleAddressDTOType>>) => PayloadAction<ChangeFieldPayload<SingleAddressDTOType>>)({\r\n type,\r\n payload: { key: fieldName, valueOrCd: valueOrCd, value, parentSliceName, callback: onChangeCallback },\r\n });\r\n }\r\n\r\n return { singleAddressState, onChangeTextInputField, onChangeMaster, parentSliceName, };\r\n}\r\n\r\nexport default useSingleAddressController;","import { enableFieldsHandler } from \"components/addressMultiple/addressUtils\";\r\nimport { DISTRICT, MASTER_API_END_POINT, PS, STATE, SUB_DISTRICT, VILLAGE } from \"constants/apiEndPoints\";\r\nimport { Constants } from \"constants/commonConstants\";\r\nimport { MasterCodeType } from \"constants/masterCodes\";\r\nimport { ApiMethodEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonProps, MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport { getValueKey } from \"utils/commonFunctions\";\r\nimport useSingleAddressController from \"./singleAddressController\";\r\n\r\nexport interface SingleAddressProps extends CommonProps {\r\n dtoName?: string;\r\n}\r\n\r\nconst SingleAddress = (props: SingleAddressProps) => {\r\n const { isViewMode = false } = props;\r\n const { singleAddressState, onChangeTextInputField, onChangeMaster } = useSingleAddressController(props);\r\n const { submitJson, defaultsRules, fieldError, fieldsName, helperText } = singleAddressState;\r\n const { houseNo, state, streetName, colony, country, subDistrict, village, pincode, district, policeStation, other } = fieldsName;\r\n\r\n const otherCountry = submitJson?.[country] !== Constants.GENERAL.INDIACONTRYCODE;\r\n const enableFields: boolean = enableFieldsHandler(isViewMode, singleAddressState);\r\n\r\n return (\r\n <GridContainer rowSpacing={2}>\r\n <GridItem>\r\n <TextInputField id={houseNo} label={defaultsRules[houseNo].label} onChange={onChangeTextInputField} value={submitJson[houseNo]} disabled={isViewMode || enableFields} />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={streetName}\r\n label={defaultsRules[streetName].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[streetName]}\r\n error={!!fieldError[streetName]}\r\n helperText={fieldError[streetName]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={colony}\r\n label={defaultsRules[colony].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[colony]}\r\n error={!!fieldError[colony]}\r\n helperText={fieldError[colony]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField<MasterResponseDataType>\r\n id={country}\r\n label={defaultsRules[country].label}\r\n validation={defaultsRules[country]}\r\n fieldvalue={submitJson[country]}\r\n error={!!fieldError[country]}\r\n onChange={onChangeMaster}\r\n helperText={fieldError[country]}\r\n disabled={isViewMode}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.NATIONALITY,\r\n }}\r\n\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={state}\r\n label={defaultsRules[state].label}\r\n validation={defaultsRules[state]}\r\n selectoptiontitlekey={getValueKey(state)}\r\n error={!!fieldError[state]}\r\n selectoptionindexkey={state}\r\n masterCdKey={country}\r\n masterCd={submitJson?.[country] || 0}\r\n fieldvalue={submitJson[state]}\r\n apiendpoint={STATE}\r\n apiMethod={ApiMethodEnum.GET}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[state]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={district}\r\n label={defaultsRules[district].label}\r\n selectoptiontitlekey={getValueKey(district)}\r\n selectoptionindexkey={district}\r\n masterCd={submitJson?.[state] || 0}\r\n isRefereshedData={!submitJson[state]}\r\n masterCdKey={state}\r\n\r\n apiendpoint={DISTRICT}\r\n validation={defaultsRules[district]}\r\n fieldvalue={submitJson[district]}\r\n error={!!fieldError[district]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[district]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={subDistrict}\r\n label={defaultsRules[subDistrict].label}\r\n selectoptiontitlekey={getValueKey(subDistrict)}\r\n selectoptionindexkey={subDistrict}\r\n masterCd={submitJson?.[district] || 0}\r\n masterCdKey={district}\r\n isRefereshedData={!submitJson[district]}\r\n apiendpoint={SUB_DISTRICT}\r\n validation={defaultsRules[subDistrict]}\r\n fieldvalue={submitJson[subDistrict]}\r\n error={!!fieldError[subDistrict]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[subDistrict]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={village}\r\n label={defaultsRules[village].label}\r\n selectoptiontitlekey={getValueKey(village)}\r\n selectoptionindexkey={village}\r\n masterCdKey={subDistrict}\r\n masterCd={submitJson?.[subDistrict] || 0}\r\n fieldvalue={submitJson[village]}\r\n error={!!fieldError[village]}\r\n isRefereshedData={!submitJson[subDistrict]}\r\n validation={defaultsRules[village]}\r\n apiendpoint={VILLAGE}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[village]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={policeStation}\r\n label={defaultsRules[policeStation].label}\r\n selectoptiontitlekey={getValueKey(policeStation)}\r\n selectoptionindexkey={policeStation}\r\n masterCdKey={district}\r\n isRefereshedData={!submitJson?.[district]}\r\n apiendpoint={PS}\r\n masterCd={submitJson?.[district] || 0}\r\n validation={defaultsRules[policeStation]}\r\n fieldvalue={submitJson[policeStation]}\r\n error={!!fieldError[policeStation]}\r\n onChange={onChangeMaster}\r\n isfirstrun={false}\r\n helperText={fieldError[policeStation]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={pincode}\r\n label={defaultsRules[pincode].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[pincode]}\r\n error={!!fieldError[pincode]}\r\n helperText={fieldError[pincode]}\r\n validation={defaultsRules[pincode]}\r\n disabled={isViewMode || enableFields}\r\n />\r\n </GridItem>\r\n {otherCountry && (\r\n <GridItem size={12}>\r\n <TextInputField\r\n id={other}\r\n label={defaultsRules[other].label}\r\n onChange={onChangeTextInputField}\r\n value={submitJson[other]}\r\n error={Boolean(fieldError[other])}\r\n helperText={helperText[other]}\r\n validation={defaultsRules[other]}\r\n disabled={isViewMode}\r\n />\r\n </GridItem>\r\n )}\r\n </GridContainer>\r\n );\r\n};\r\nexport default SingleAddress;\r\n","export const OrganizationAPIPaths = {\r\n getOrganizationListApi: (\r\n path: string,\r\n endpoint: string,\r\n page: number,\r\n pageSize: number,\r\n ) => `${path}/${endpoint}?page=${page}&pageSize=${pageSize}`,\r\n} as const;\r\n\r\nexport default OrganizationAPIPaths;","import { AgePanelDTO } from \"components/agePanel/agePanelDto\";\r\nimport { MobileVerificationDTO } from \"components/mobileVerification/mobileVerificationDTO\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { FieldEnum, MinYearEnum } from \"libs/shared/enums/common-enums\";\r\nimport {\r\n REGULAR_EXPRESSION_ENUM,\r\n VALIDATION_MAX_LENGTH_ENUM,\r\n VALIDATION_MIN_LENGTH_ENUM,\r\n} from \"libs/shared/enums/validation-enums\";\r\nimport type { DefaultRulesType, DTO, FieldObject, StringValues } from \"libs/shared/types/common-types\";\r\nimport type { FieldValue } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\n\r\nexport const PersonDetailsFields = (isValidationRequired = true, isMobRequired = true, isMobVerifyRqd = true, minAge = MinYearEnum.GENERAL) => {\r\n return {\r\n firstName: \"firstName\",\r\n middleName: \"middleName\",\r\n lastName: \"lastName\",\r\n alias: \"aliases\",\r\n genderType: \"genderCd\",\r\n emailID: \"email\",\r\n relativeName: \"relativeName\",\r\n relationType: \"relativeTypeCd\",\r\n gender: \"gender\",\r\n alternateMobileContryCode: \"alternateMobStdCd\",\r\n alternateMobileNumber: \"telephone\",\r\n [DTONames.MOBILE_PANEL]: MobileVerificationDTO(isMobRequired, isMobVerifyRqd),\r\n [DTONames.AGE_PANEL]: AgePanelDTO(isValidationRequired, minAge),\r\n } as const;\r\n};\r\n\r\nexport type PersonalDetailsFieldsType = ReturnType<typeof PersonDetailsFields>;\r\ntype PersonalDetailsFieldsValueType = Exclude<\r\n StringValues<PersonalDetailsFieldsType>,\r\n \"gender\" | \"alternateMobStdCd\"\r\n>;\r\n\r\nexport const PersonalDetailsDTO = (\r\n isValidationRequired = true,\r\n isMobRequired = true,\r\n isMobVerifyRqd = true,\r\n minAge = MinYearEnum.GENERAL\r\n) => {\r\n const fieldsName: PersonalDetailsFieldsType = PersonDetailsFields(\r\n isValidationRequired,\r\n isMobRequired,\r\n isMobVerifyRqd,\r\n minAge\r\n );\r\n const baseDTO = getBaseDTO(isValidationRequired, isMobRequired, isMobVerifyRqd, minAge);\r\n\r\n const defaultsRules: Record<PersonalDetailsFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.alternateMobileNumber]: {\r\n required: false,\r\n type: FieldEnum.NUMERIC,\r\n length: VALIDATION_MAX_LENGTH_ENUM.ALTERNATE_LANDLINE_NUM,\r\n isNotAllowdCharacters: false,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC,\r\n label: \"strAlternateMobileNo\",\r\n },\r\n [fieldsName.firstName]: {\r\n required: isValidationRequired,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.NAME,\r\n minLength: VALIDATION_MIN_LENGTH_ENUM.NAME,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.NAME,\r\n label: \"strFirstName\",\r\n },\r\n [fieldsName.middleName]: {\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.NAME,\r\n minLength: VALIDATION_MIN_LENGTH_ENUM.NAME,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.NAME,\r\n label: \"strMiddleName\",\r\n },\r\n [fieldsName.lastName]: {\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.NAME,\r\n minLength: VALIDATION_MIN_LENGTH_ENUM.NAME,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC_WITH_SPACE,\r\n label: \"strLastName\",\r\n },\r\n [fieldsName.alias]: {\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n length: VALIDATION_MAX_LENGTH_ENUM.ALIAS,\r\n minLength: VALIDATION_MIN_LENGTH_ENUM.ALIAS,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ALPHANUMERIC_WITH_SPACE,\r\n label: \"strAlias\",\r\n },\r\n [fieldsName.emailID]: {\r\n label: \"strEmailId\",\r\n required: false,\r\n type: FieldEnum.EMAIL,\r\n length: VALIDATION_MAX_LENGTH_ENUM.EMAIL,\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.EMAIL,\r\n },\r\n [fieldsName.relativeName]: {\r\n label: \"strRelativeName\",\r\n required: false,\r\n type: FieldEnum.TEXT,\r\n isNotAllowdCharacters: true,\r\n length: VALIDATION_MAX_LENGTH_ENUM.NAME,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.NAME,\r\n },\r\n [fieldsName.relationType]: {\r\n label: \"strRelativeType\",\r\n required: false,\r\n type: FieldEnum.SELECT,\r\n },\r\n [fieldsName.genderType]: {\r\n label: \"strGender\",\r\n required: isValidationRequired,\r\n type: FieldEnum.SELECT,\r\n },\r\n };\r\n\r\n return {\r\n ...baseDTO,\r\n dtoName: DTONames.PERSONAL_DETAILS,\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {} as FieldObject<FieldValue>,\r\n } satisfies DTO;\r\n};\r\nexport type PersonalDetailsDTOType = ReturnType<typeof PersonalDetailsDTO>;\r\n","import { CommonAddressFields, Constants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonAddressFieldsTypes, CommonAddressFieldsTypesDisplay, DefaultRulesType, DTO, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\n\r\nexport const SingleAddressFields = () => {\r\n return {\r\n ...CommonAddressFields,\r\n } as const;\r\n};\r\n\r\nexport type SingleAddressFieldsType = ReturnType<typeof SingleAddressFields>;\r\ntype SingleAddressFieldsValueType = Exclude<StringValues<SingleAddressFieldsType>, \"addressTypeCd\" | \"id\" | \"isCommAddr\">;\r\n\r\nexport const SingleAddressDTO = (isValidationRequired: boolean = true, dtoName: string = DTONames.SINGLE_ADDRESS) => {\r\n const fieldsName: SingleAddressFieldsType = SingleAddressFields();\r\n const { REQUIRED, LABEL, TYPE } = DefaultRulesEnum;\r\n const defaultsRules : Record<SingleAddressFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.houseNo]: {\r\n [LABEL]: \"strHouseno\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n },\r\n [fieldsName.streetName]: {\r\n [LABEL]: \"strStreetName\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n },\r\n [fieldsName.colony]: {\r\n [LABEL]: \"strColony\",\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n },\r\n [fieldsName.country]: {\r\n [LABEL]: \"strCountry\",\r\n [REQUIRED]: true,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.state]: {\r\n [LABEL]: \"strState\",\r\n [REQUIRED]: isValidationRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.district]: {\r\n [LABEL]: \"strDistrict\",\r\n [REQUIRED]: isValidationRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.subDistrict]: {\r\n [LABEL]: \"strSubDistrict\",\r\n [REQUIRED]: isValidationRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.village]: {\r\n [LABEL]: \"strVillage\",\r\n [REQUIRED]: isValidationRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.policeStation]: {\r\n [LABEL]: \"strPoliceStation\",\r\n [REQUIRED]: true,\r\n [TYPE]: FieldEnum.SELECT,\r\n },\r\n [fieldsName.pincode]: {\r\n [LABEL]: \"strPinCode\",\r\n [REQUIRED]: false,\r\n type: FieldEnum.NUMERIC,\r\n length: 6,\r\n minLength: 6,\r\n maxLength: 6,\r\n },\r\n [fieldsName.other]: { type: FieldEnum.TEXT, label: \"strAddressOutsideIndia\", required: false },\r\n }\r\n\r\n return {\r\n ...getBaseDTO(isValidationRequired, dtoName),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {\r\n [fieldsName.country]: Constants.GENERAL.INDIACONTRYCODE,\r\n } as CommonAddressFieldsTypes,\r\n displayJson: {\r\n [fieldsName.country]: \"INDIA\", // will be making changes based on login data and language\r\n } as unknown as CommonAddressFieldsTypesDisplay,\r\n dtoName,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type SingleAddressDTOType = ReturnType<typeof SingleAddressDTO>;\r\n","import type { CommonAddressFieldsTypes, CommonAddressFieldsTypesDisplay, DTO, FieldObject, GridRowData } from \"../types/common-types\";\r\n\r\nimport {\r\n AddressMultipleDTO,\r\n} from \"components/addressMultiple/addressDto\";\r\nimport { AddressInfoDTO, type AddressInfoDTOType } from \"components/addressMultiple/addressInfoDto\";\r\nimport {\r\n AgePanelDTO,\r\n type AgePanelDTOType,\r\n} from \"components/agePanel/agePanelDto\";\r\nimport { MobileVerificationDTO, type MobileVerificationDTOType } from \"components/mobileVerification/mobileVerificationDTO\";\r\nimport {\r\n PersonalDetailsDTO,\r\n type PersonalDetailsDTOType,\r\n} from \"components/personalInfo/personalDetailsDto\";\r\nimport {\r\n SingleAddressDTO,\r\n type SingleAddressDTOType,\r\n} from \"components/singleAddress/singleAddressDto\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { setStateObjValue } from \"utils/commonFunctions\";\r\nimport { AgePanelEnums } from \"../enums/common-enums\";\r\nimport { YES_NO_BOOL } from \"constants/commonConstants\";\r\nimport { IdentificationPanelDTO, type IdentificationPanelDTOType } from \"components/identificationPanel/identificationPanelDTO\";\r\nimport { getYearAndMonth } from \"components/agePanel/agePanelUtils\";\r\nexport class CommonJSONMapper<T extends DTO> {\r\n dto: T;\r\n data: FieldObject<unknown>;\r\n\r\n constructor(\r\n data: FieldObject<unknown>,\r\n dto: T,\r\n otherData?: FieldObject<unknown> | undefined,\r\n includeRemainingFields: boolean = false\r\n ) {\r\n this.dto = dto;\r\n this.data = data;\r\n\r\n // 1. Add only mapped fields\r\n Object.values(dto.fieldsName).forEach((value: string | DTO) => {\r\n if (typeof value === \"string\") {\r\n const fieldValue = data[value];\r\n\r\n if (fieldValue || fieldValue === YES_NO_BOOL.NO || fieldValue === 0) {\r\n dto.submitJson[value] = fieldValue\r\n }\r\n }\r\n })\r\n\r\n // Add explicitly passed otherData\r\n if (otherData) {\r\n Object.entries(otherData).forEach(([key, value]) => {\r\n dto.submitJson[key] = value;\r\n });\r\n }\r\n\r\n // Auto-add remaining unmapped fields from `data` if allowed\r\n if (includeRemainingFields) {\r\n Object.entries(data).forEach(([key, value]) => {\r\n if (\r\n !Object.values(dto.fieldsName).includes(key) &&\r\n !(otherData && key in otherData)\r\n ) {\r\n dto.submitJson[key] = value;\r\n }\r\n });\r\n }\r\n }\r\n\r\n getMappedDTO() {\r\n return this.dto;\r\n }\r\n}\r\n\r\nexport class CommonJSONMapperDisplay<T extends DTO> extends CommonJSONMapper<T> {\r\n constructor(\r\n data: FieldObject<unknown>,\r\n dto: T,\r\n otherData?: FieldObject<unknown> | undefined,\r\n includeRemainingFields: boolean = false,\r\n suffixKey: string = 'Cd'\r\n ) {\r\n super(data, dto, otherData, includeRemainingFields);\r\n\r\n Object.entries(data).forEach(([key, value]) => { // Please use submitjson value on from data\r\n if (value !== undefined && value !== null && key.endsWith(suffixKey)) {\r\n this.dto.submitJson[key] = value;\r\n const baseKey = key.slice(0, -suffixKey.length);\r\n const displayValue = data[baseKey];\r\n if (displayValue !== undefined && displayValue !== null) {\r\n this.dto.displayJson[key] = displayValue;\r\n }\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport class MobilePanelMapper extends CommonJSONMapperDisplay<MobileVerificationDTOType> {\r\n constructor(data: FieldObject, mobilePanelDto?: MobileVerificationDTOType) {\r\n const dto = mobilePanelDto ?? MobileVerificationDTO()\r\n super(data, dto);\r\n }\r\n}\r\n\r\nexport class AgeDetailsMapper extends CommonJSONMapper<AgePanelDTOType> {\r\n private readonly ageValidation: boolean = true;\r\n constructor(data: FieldObject, dto?: AgePanelDTOType) {\r\n super(data, dto ?? AgePanelDTO());\r\n this.ageValidation = Boolean(this.dto.initialArgs?.[0]);\r\n }\r\n\r\n getMappedDTO() {\r\n const fields = this.dto.fieldsName;\r\n\r\n const ageType = this.data?.[fields.ageType];\r\n\r\n this.dto.defaultsRules[fields.dob] = {\r\n ...this.dto.defaultsRules[fields.dob],\r\n required: this.ageValidation ? ageType === AgePanelEnums.DATE_OF_BIRTH || ageType === 0 : false,\r\n };\r\n this.dto.defaultsRules[fields.yob] = {\r\n ...this.dto.defaultsRules[fields.yob],\r\n required: this.ageValidation ? ageType === AgePanelEnums.YEAR_OF_BIRTH : false,\r\n };\r\n this.dto.defaultsRules[fields.ageYrs] = {\r\n ...this.dto.defaultsRules[fields.ageYrs],\r\n required: this.ageValidation ? ageType === AgePanelEnums.AGE_RANGE : false,\r\n };\r\n this.dto.defaultsRules[fields.ageMnths] = {\r\n ...this.dto.defaultsRules[fields.ageMnths],\r\n required: this.ageValidation ? ageType === AgePanelEnums.AGE_RANGE : false,\r\n };\r\n\r\n if (this.dto.submitJson[fields.dob] || this.dto.submitJson[fields.yob]) {\r\n const { ageMnths, ageYrs } = getYearAndMonth(this.dto.submitJson[fields.dob] || this.dto.submitJson[fields.yob] || \"\");\r\n\r\n this.dto.submitJson[fields.ageMnths] = ageMnths;\r\n this.dto.submitJson[fields.ageYrs] = ageYrs;\r\n }\r\n\r\n return this.dto;\r\n }\r\n}\r\n\r\nexport class PersonalDetailsMapper extends CommonJSONMapperDisplay<PersonalDetailsDTOType> {\r\n\r\n constructor(data: FieldObject, personalDetailsDto?: PersonalDetailsDTOType) {\r\n const dto = personalDetailsDto ?? PersonalDetailsDTO();\r\n super(data, dto);\r\n }\r\n\r\n getMappedDTO() {\r\n setStateObjValue(\r\n this.dto.fieldsName,\r\n DTONames.AGE_PANEL,\r\n new AgeDetailsMapper(this.data, this.dto.fieldsName[DTONames.AGE_PANEL]).getMappedDTO(),\r\n );\r\n\r\n setStateObjValue(\r\n this.dto.fieldsName,\r\n DTONames.MOBILE_PANEL,\r\n new MobilePanelMapper({\r\n [this.dto.fieldsName[DTONames.MOBILE_PANEL].fieldsName.mobileNumber]: this.data?.[this.dto.fieldsName[DTONames.MOBILE_PANEL].fieldsName.mobileNumber]\r\n }, this.dto.fieldsName[DTONames.MOBILE_PANEL]).getMappedDTO(),\r\n );\r\n\r\n if (this.data?.aliases) {\r\n const aliasName = (this.data.aliases as string[])?.[0] ?? \"\";\r\n setStateObjValue(\r\n this.dto.submitJson,\r\n this.dto.fieldsName.alias as keyof typeof this.dto.fieldsName,\r\n aliasName\r\n );\r\n }\r\n\r\n return this.dto;\r\n }\r\n}\r\n\r\nexport class SingleAddressMapper extends CommonJSONMapperDisplay<SingleAddressDTOType> {\r\n private readonly displayData?: CommonAddressFieldsTypesDisplay;\r\n\r\n constructor(\r\n data: FieldObject,\r\n displayData?: CommonAddressFieldsTypesDisplay,\r\n ) {\r\n super(data, SingleAddressDTO());\r\n this.displayData = displayData;\r\n }\r\n\r\n getMappedDTO(): SingleAddressDTOType {\r\n const getValueByReplacingId = (address: FieldObject, field: string) => {\r\n return address[field.replaceAll(\"Id\", \"\")] as string;\r\n };\r\n\r\n if (this.displayData) {\r\n this.dto.displayJson = {\r\n ...this.dto.displayJson,\r\n ...this.displayData,\r\n };\r\n } else {\r\n const { state, policeStation } = this.dto.fieldsName;\r\n\r\n const stateValue = getValueByReplacingId(this.data, state);\r\n if (stateValue !== undefined && stateValue !== null) {\r\n this.dto.displayJson[state] = stateValue;\r\n }\r\n\r\n const policeStationValue = getValueByReplacingId(this.data, policeStation);\r\n if (policeStationValue !== undefined && policeStationValue !== null) {\r\n this.dto.displayJson[policeStation] = policeStationValue;\r\n }\r\n }\r\n\r\n return this.dto;\r\n }\r\n}\r\nexport class MultipleAddressInfoJSONMapper {\r\n addressList: CommonAddressFieldsTypes[];\r\n addressListDisp: CommonAddressFieldsTypesDisplay[];\r\n addressValidation: boolean;\r\n constructor(addressList: CommonAddressFieldsTypes[], addressListDisp: CommonAddressFieldsTypesDisplay[] = [], addressValidation: boolean = true) {\r\n this.addressList = addressList;\r\n this.addressListDisp = addressListDisp;\r\n this.addressValidation = addressValidation;\r\n }\r\n\r\n getMappedDTO() {\r\n const addressDto = AddressMultipleDTO(!this.addressList.length);\r\n const getValueByReplacingId = (address: CommonAddressFieldsTypes, field: string) => {\r\n return address[field.replaceAll(\"Id\", \"\") as keyof CommonAddressFieldsTypes] as string\r\n }\r\n\r\n this.addressList.forEach((address, index) => {\r\n const addrType = address.addressTypeCd;\r\n\r\n const dto = AddressInfoDTO(addrType)\r\n const { submitJson, displayJson } = new CommonJSONMapperDisplay<AddressInfoDTOType>(address, dto).getMappedDTO();\r\n addressDto.submitJson.addressGrid.push({ ...submitJson });\r\n\r\n const disp = this.addressListDisp[index];\r\n\r\n if (disp) {\r\n addressDto.displayJson.addressGrid.push(disp);\r\n } else {\r\n addressDto.displayJson.addressGrid.push({\r\n ...address,\r\n ...displayJson,\r\n [dto.fieldsName.addressType]: addrType,\r\n [dto.fieldsName.state]: getValueByReplacingId(address, dto.fieldsName.state),\r\n [dto.fieldsName.policeStation]: getValueByReplacingId(address, dto.fieldsName.policeStation),\r\n });\r\n }\r\n })\r\n\r\n return addressDto\r\n }\r\n}\r\n\r\nexport class ArrayDataMapper<T extends DTO> {\r\n key: string;\r\n dto: T;\r\n data: GridRowData[];\r\n constructor(key: string, dto: T, data: GridRowData[]) {\r\n this.key = key;\r\n this.data = data;\r\n this.dto = dto;\r\n }\r\n\r\n getMappedDTO() {\r\n setStateObjValue(this.dto.submitJson, this.key, this.data);\r\n setStateObjValue(this.dto.displayJson, this.key, this.data);\r\n\r\n return this.dto;\r\n }\r\n}\r\n\r\n/**\r\n * personal details submit mapper\r\n * @param personalInfo - personalInfo dto passed \r\n * @returns a json object \r\n */\r\nexport const getPersonalDetails = (personalInfo: PersonalDetailsDTOType) => {\r\n return {\r\n ...personalInfo.submitJson,\r\n ...personalInfo.fieldsName[DTONames.AGE_PANEL].submitJson,\r\n mobileNum: personalInfo.fieldsName[DTONames.MOBILE_PANEL].submitJson?.mobileNum, // key separately extracted\r\n aliases: [personalInfo.submitJson?.[personalInfo.fieldsName.alias]] // aliases separately send \r\n }\r\n}\r\n\r\nexport class IdentificationPanelMapper extends CommonJSONMapperDisplay<IdentificationPanelDTOType> {\r\n constructor(data: FieldObject) {\r\n super(data, IdentificationPanelDTO());\r\n }\r\n}","import { MobileVerificationDTO } from \"components/mobileVerification/mobileVerificationDTO\";\r\nimport { SingleAddressDTO } from \"components/singleAddress/singleAddressDto\";\r\nimport { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { DefaultRulesType, DTO, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\"; \r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { REGULAR_EXPRESSION_ENUM, VALIDATION_MAX_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\n\r\n// organizationInfoDto.ts\r\nexport const OrganizationInfoFields = () => {\r\n return {\r\n organizationName: \"organizationName\",\r\n organizationId: \"organizationId\",\r\n organizationPhone: \"organizationPhone\",\r\n organizationEmail: \"organizationEmail\",\r\n [DTONames.SINGLE_ADDRESS]: SingleAddressDTO(),\r\n [DTONames.MOBILE_PANEL]: MobileVerificationDTO(false, false),\r\n } as const;\r\n};\r\n\r\nexport type OrganizationInfoFieldsType = ReturnType<typeof OrganizationInfoFields>;\r\ntype OrganizationInfoFieldsValueType = Exclude<StringValues<OrganizationInfoFieldsType>, \"organizationId\">;\r\n\r\nexport const OrganizationInfoDTO = () => {\r\n const { MAX_LENGTH, } = DefaultRulesEnum;\r\n const fieldsName: OrganizationInfoFieldsType = OrganizationInfoFields();\r\n const defaultsRules: Record<OrganizationInfoFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.organizationName]: {\r\n required: true,\r\n type: FieldEnum.TEXT,\r\n label: \"strOrganizationName\",\r\n isNotAllowdCharacters: true,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.NAME,\r\n [MAX_LENGTH]: VALIDATION_MAX_LENGTH_ENUM.TEXT200,\r\n },\r\n [fieldsName.organizationPhone]: {\r\n label: \"strAlternateMobileNo\",\r\n required: false,\r\n type: FieldEnum.NUMERIC,\r\n length: VALIDATION_MAX_LENGTH_ENUM.ALTERNATE_LANDLINE_NUM,\r\n isNotAllowdCharacters: false,\r\n notAllowedString: REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC,\r\n },\r\n [fieldsName.organizationEmail]: {\r\n label: \"strEmailId\",\r\n required: false,\r\n type: FieldEnum.EMAIL,\r\n },\r\n }\r\n\r\n type jsonType = {\r\n [fieldsName.organizationId]: number,\r\n [fieldsName.organizationName]: string,\r\n [fieldsName.organizationPhone]: string,\r\n [fieldsName.organizationEmail]: string\r\n }\r\n return {\r\n ...getBaseDTO(),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {\r\n [fieldsName.organizationId]: null\r\n } as unknown as jsonType,\r\n dtoName: DTONames.ORGANIZATION_INFO\r\n } satisfies DTO;\r\n};\r\n\r\nexport type OrganizationInfoDTOType = ReturnType<typeof OrganizationInfoDTO>;","import { DTONames } from \"constants/dtoNames\";\r\nimport { sharedFormActionNames } from \"libs/core/utils/sharedFormActions\";\r\nimport { CommonJSONMapperDisplay, MobilePanelMapper, SingleAddressMapper } from \"libs/shared/mapper/commonDTOJSONMap\";\r\nimport type { AppDispatch } from \"libs/shared/store/store\";\r\nimport type { FieldObject } from \"libs/shared/types/common-types\"; \r\nimport { setStateObjValue } from \"utils/commonFunctions\"; \r\nimport { OrganizationInfoDTO, type OrganizationInfoDTOType } from \"../organizationInfoDto\";\r\n\r\nexport type OrganizationDetail = {\r\n organizationName: string;\r\n organizationMobile: number;\r\n organizationPhone: number | null;\r\n organizationEmail: string | null;\r\n organizationAddress: FieldObject;\r\n};\r\n\r\nexport type OrganizationListItem = {\r\n id: number;\r\n organizationDetail: OrganizationDetail;\r\n};\r\n\r\nexport type OrganizationListResponse = {\r\n message: string;\r\n status: string;\r\n statusCode: number;\r\n errors: null;\r\n data: {\r\n list: OrganizationListItem[];\r\n totalSize: number;\r\n pageCount: number;\r\n };\r\n};\r\n\r\nexport type OrganizationSelectOption = {\r\n id: number;\r\n organizationName: string;\r\n organizationDetail: OrganizationDetail | null;\r\n};\r\n\r\nexport const mapOrganizationListToOptions = (\r\n list: OrganizationListItem[],\r\n): OrganizationSelectOption[] =>\r\n list.map((item) => ({\r\n id: item.id,\r\n organizationName: item.organizationDetail?.organizationName ?? \"\",\r\n organizationDetail: item.organizationDetail,\r\n }));\r\nexport class OrganizationDetailMapper extends CommonJSONMapperDisplay<OrganizationInfoDTOType> {\r\n private originalData: OrganizationDetail;\r\n private selectedId: number;\r\n\r\n constructor(data: OrganizationDetail, id: number) { \r\n super(data, OrganizationInfoDTO());\r\n this.originalData = data;\r\n this.selectedId = id;\r\n }\r\n\r\n getMappedDTO() {\r\n this.dto.submitJson[this.dto.fieldsName.organizationId] = this.selectedId;\r\n const mobilePanelDTO = new MobilePanelMapper({\r\n mobileNum: this.originalData.organizationMobile,\r\n }, this.dto.fieldsName[DTONames.MOBILE_PANEL]).getMappedDTO();\r\n \r\n mobilePanelDTO.submitJson[mobilePanelDTO.fieldsName.isVerified] = false;\r\n mobilePanelDTO.submitJson[mobilePanelDTO.fieldsName.isVerificationRequired] = false;\r\n\r\n setStateObjValue(\r\n this.dto.fieldsName,\r\n DTONames.MOBILE_PANEL,\r\n mobilePanelDTO, \r\n );\r\n\r\n setStateObjValue(\r\n this.dto.fieldsName,\r\n DTONames.SINGLE_ADDRESS,\r\n new SingleAddressMapper(\r\n this.originalData.organizationAddress ?? {},\r\n ).getMappedDTO(),\r\n );\r\n\r\n return this.dto;\r\n }\r\n}\r\n\r\nexport const applyOrganizationToDto = (\r\n dispatch: AppDispatch,\r\n rootSliceName: string,\r\n details: OrganizationDetail,\r\n id: number,\r\n) => {\r\n dispatch({\r\n type: `${rootSliceName}/${sharedFormActionNames.SET_VIEW_DATA}`,\r\n payload: {\r\n dto: new OrganizationDetailMapper(details, id).getMappedDTO(),\r\n fieldsName: DTONames.ORGANIZATION_INFO,\r\n path: rootSliceName\r\n },\r\n });\r\n};\r\n\r\nexport const resetOrganizationDto = (\r\n dispatch: AppDispatch,\r\n rootSliceName: string,\r\n) => {\r\n dispatch({\r\n type: `${rootSliceName}/${sharedFormActionNames.SET_VIEW_DATA}`,\r\n payload: {\r\n dto: OrganizationInfoDTO(),\r\n fieldsName: DTONames.ORGANIZATION_INFO,\r\n path: rootSliceName\r\n },\r\n });\r\n};\r\n","import { DataGridConstants } from \"constants/commonConstants\";\r\nimport { DTONames } from \"constants/dtoNames\"; \r\nimport { getNestedValue, getOnChangeActionType } from \"libs/core/utils/commonFunctions\";\r\nimport { SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { RootState } from \"libs/shared/store/store\";\r\nimport type { ErrorData, ListAndPaginationData } from \"libs/shared/types/common-types\";\r\nimport type React from \"react\";\r\nimport { useCallback, useEffect, useState } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { openSnackbar } from \"store/snackbarSlice\";\r\nimport Logger from \"utils/loggers\";\r\nimport type { OrganizationInfoControllerProps } from \"./organization.type\";\r\nimport type { OrganizationInfoDTOType } from \"./organizationInfoDto\";\r\nimport OrganizationAPIPaths from \"./orgnizationApiEndpoints\";\r\nimport { applyOrganizationToDto, mapOrganizationListToOptions, resetOrganizationDto, type OrganizationListItem, type OrganizationSelectOption } from \"./utils/addOrganization\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nfunction useOrganizationInfoController(props: OrganizationInfoControllerProps) {\r\n const dispatch = useDispatch();\r\n const parentSliceName = useParentSliceName(DTONames.ORGANIZATION_INFO, props.parentSliceName,);\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n\r\n const organizationInfoState = useSelector((state: RootState) =>\r\n getNestedValue<OrganizationInfoDTOType>(state, parentSliceName),\r\n );\r\n const { fieldsName, submitJson } = organizationInfoState;\r\n const { organizationName, organizationId } = fieldsName;\r\n\r\n const [organizationOptions, setOrganizationOptions] = useState<OrganizationSelectOption[]>([]);\r\n\r\n const isExistingOrg = Number(submitJson[organizationId]) > 0;\r\n\r\n useEffect(() => {\r\n const loadOrganizations = async () => {\r\n try {\r\n const { page, pageSize } = DataGridConstants.PAGINATION_MODEL;\r\n const url = OrganizationAPIPaths.getOrganizationListApi(\r\n props.organizationApi.path,\r\n props.organizationApi.endpoint,\r\n page,\r\n pageSize,\r\n );\r\n\r\n const response =\r\n await props.organizationApi.fetchOrganizations<\r\n ListAndPaginationData<OrganizationListItem>\r\n >(\r\n url,\r\n DataGridConstants.PAGINATION_MODEL,\r\n );\r\n const options = mapOrganizationListToOptions(\r\n response?.data?.list ?? [],\r\n );\r\n\r\n setOrganizationOptions(options)\r\n } catch (error) {\r\n dispatch(\r\n openSnackbar({\r\n message: (error as ErrorData)?.message ?? \"strNoOrgnizationAvailable\",\r\n type: SnackbarEnum.ERROR,\r\n })\r\n );\r\n Logger.error('error in fetching organization details', error);\r\n setOrganizationOptions([]);\r\n }\r\n };\r\n if (!props.isViewMode) {\r\n loadOrganizations();\r\n }\r\n }, []);\r\n\r\n const setOrganization = (\r\n name: string,\r\n selected?: OrganizationSelectOption,\r\n ) => {\r\n const details = selected?.organizationDetail;\r\n dispatch({\r\n type,\r\n payload: {\r\n key: organizationName,\r\n value: name,\r\n valueOrCd: name,\r\n parentSliceName,\r\n },\r\n });\r\n\r\n if (details && selected) {\r\n applyOrganizationToDto(dispatch, props.rootSliceName, details, selected.id);\r\n }\r\n\r\n };\r\n\r\n const onOrganizationNameInput = (\r\n _event: React.SyntheticEvent,\r\n value: string,\r\n reason: string,\r\n ) => {\r\n if (reason === \"reset\") return;\r\n\r\n if (reason === \"clear\" || value === \"\") {\r\n dispatch({\r\n type,\r\n payload: {\r\n key: organizationName,\r\n value: \"\",\r\n valueOrCd: \"\",\r\n parentSliceName,\r\n },\r\n });\r\n resetOrganizationDto(dispatch, props.rootSliceName);\r\n return;\r\n }\r\n if (isExistingOrg) {\r\n resetOrganizationDto(dispatch, props.rootSliceName);\r\n }\r\n dispatch({\r\n type,\r\n payload: {\r\n key: organizationName,\r\n value,\r\n valueOrCd: value,\r\n parentSliceName,\r\n },\r\n });\r\n };\r\n\r\n const onChangeField = (key: string, value: string) => {\r\n dispatch({\r\n type,\r\n payload: { key, valueOrCd: value, value, parentSliceName },\r\n });\r\n };\r\n\r\n\r\n const onOrganizationSelected = (\r\n _event: React.BaseSyntheticEvent,\r\n selectedOrg: OrganizationSelectOption,\r\n ) => {\r\n if (!selectedOrg) return;\r\n\r\n if (typeof selectedOrg === \"string\") {\r\n setOrganization(selectedOrg);\r\n return;\r\n }\r\n\r\n setOrganization(\r\n selectedOrg.organizationName,\r\n selectedOrg\r\n );\r\n };\r\n\r\n const filterOrganizationOptions = useCallback(\r\n (\r\n options: OrganizationSelectOption[],\r\n state: { inputValue: string },\r\n ) =>\r\n options.filter((option) =>\r\n option.organizationName\r\n ?.toLowerCase()\r\n .includes(state.inputValue.toLowerCase()),\r\n ),\r\n [],\r\n );\r\n\r\n return {\r\n organizationInfoState,\r\n onChangeField,\r\n parentSliceName,\r\n organizationOptions,\r\n onOrganizationSelected,\r\n onOrganizationNameInput,\r\n isExistingOrg,\r\n filterOrganizationOptions\r\n };\r\n}\r\n\r\nexport default useOrganizationInfoController;\r\n","import { Stack } from \"@mui/material\";\r\nimport MobileVerification from \"components/mobileVerification/MobileVerification\";\r\nimport SingleAddress from \"components/singleAddress/SingleAddress\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport CustomHeading from \"libs/shared/UI/heading/CustomHeading\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport React from \"react\";\r\nimport type { OrganizationInfoControllerProps } from \"./organization.type\";\r\nimport useOrganizationInfoController from \"./useOrganizationInfoController\";\r\n\r\nconst OrganizationInfo = (props: OrganizationInfoControllerProps) => {\r\n const {\r\n organizationInfoState,\r\n onChangeField,\r\n parentSliceName,\r\n organizationOptions,\r\n onOrganizationSelected,\r\n onOrganizationNameInput,\r\n filterOrganizationOptions,\r\n } = useOrganizationInfoController(props);\r\n\r\n const {\r\n fieldsName,\r\n defaultsRules,\r\n submitJson,\r\n fieldError,\r\n isValidJson,\r\n } = organizationInfoState;\r\n\r\n const {\r\n organizationName,\r\n organizationPhone,\r\n organizationEmail,\r\n } = fieldsName;\r\n\r\n const isFieldDisabled = props.isViewMode;\r\n\r\n return (\r\n <>\r\n <GridContainer>\r\n <GridItem size={{ xl: 8, lg: 8, md: 6, sm: 12, xs: 12}}>\r\n <SelectInputField\r\n freeSolo\r\n isDefault={false}\r\n id={organizationName}\r\n label={defaultsRules[organizationName].label}\r\n validation={defaultsRules[organizationName]}\r\n fieldvalue={submitJson[organizationName] ?? \"\"}\r\n inputValue={submitJson[organizationName] ?? \"\"}\r\n onChange={onOrganizationSelected}\r\n onInputChange={onOrganizationNameInput}\r\n helperText={fieldError[organizationName]}\r\n error={isValidJson[organizationName] === false}\r\n disabled={props.isViewMode}\r\n options={organizationOptions}\r\n selectoptionindexkey={organizationName}\r\n selectoptiontitlekey={organizationName}\r\n filterOptions={filterOrganizationOptions}\r\n placeholder=\"\"\r\n />\r\n </GridItem>\r\n <GridItem size={{ xl: 4, lg: 4, md: 6, sm: 12,xs: 12}}>\r\n <MobileVerification\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isMobileVerifyRequired={false}\r\n isViewMode={isFieldDisabled}\r\n showVerifiedButton={false}\r\n />\r\n </GridItem>\r\n </GridContainer> \r\n\r\n <GridContainer>\r\n <GridItem>\r\n <TextInputField\r\n id={organizationPhone}\r\n label={defaultsRules[organizationPhone]?.label}\r\n value={submitJson[organizationPhone] ?? \"\"}\r\n disabled={isFieldDisabled}\r\n error={isValidJson[organizationPhone] === false}\r\n helperText={fieldError[organizationPhone]}\r\n onChange={(e:React.ChangeEvent<HTMLInputElement>) =>\r\n onChangeField(organizationPhone, e.target.value)\r\n }\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={organizationEmail}\r\n label={defaultsRules[organizationEmail]?.label}\r\n value={submitJson[organizationEmail] ?? \"\"}\r\n disabled={isFieldDisabled}\r\n onChange={(e:React.ChangeEvent<HTMLInputElement>) => onChangeField(organizationEmail, e.target.value)}\r\n error={isValidJson[organizationEmail] === false}\r\n helperText={fieldError[organizationEmail]}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <CustomHeading text=\"strOrganizatingAddressInstitute\" />\r\n <Stack>\r\n <SingleAddress\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isViewMode={isFieldDisabled}\r\n />\r\n </Stack>\r\n </>\r\n );\r\n};\r\nexport default React.memo(OrganizationInfo);\r\n","import { DTONames } from \"constants/dtoNames\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport type { CommonProps } from \"libs/shared/types/common-types\";\r\nimport { useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { getNestedValue } from \"utils/commonFunctions\";\r\nimport type { PersonalDetailsDTOType } from \"./personalDetailsDto\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function usePersonalDetailsController(props: CommonProps) {\r\n const parentSliceName = useParentSliceName(DTONames.PERSONAL_DETAILS, props.parentSliceName);\r\n\r\n const handlers = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n\r\n const personalDetailsState = useSelector((state: RootState) =>\r\n getNestedValue<PersonalDetailsDTOType>(state, parentSliceName),\r\n );\r\n\r\n return {\r\n personalDetailsState,\r\n parentSliceName,\r\n handlers,\r\n };\r\n}\r\n","import AgePanel from \"components/agePanel/AgePanel\";\r\nimport MobileVerification from \"components/mobileVerification/MobileVerification\";\r\nimport { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport { MasterCodeType } from \"constants/masterCodes\";\r\nimport { t } from \"i18next\";\r\nimport type { CommonProps, FieldObject, MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport SelectInputField from \"libs/shared/UI/dropdown/SelectInputField\";\r\nimport GridContainer from \"libs/shared/UI/grid/GridContainer\";\r\nimport GridItem from \"libs/shared/UI/grid/GridItem\";\r\nimport TextInputField from \"libs/shared/UI/textInput/TextInputField\";\r\nimport { memo, useMemo } from \"react\";\r\nimport usePersonalDetailsController from \"./personalDetailsController\";\r\nimport type { PersonalDetailsFieldsType } from \"./personalDetailsDto\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\nimport { YES_NO_BOOL } from \"constants/commonConstants\";\r\n\r\nconst PersonalDetails = memo(function PersonalDetails(props: CommonProps) {\r\n const { personalDetailsState, parentSliceName, handlers } = usePersonalDetailsController(props);\r\n\r\n const { onTextChange, onMasterChange } = handlers;\r\n\r\n const { submitJson, fieldsName, defaultsRules, fieldError, isValidJson } = personalDetailsState;\r\n const { firstName, middleName, lastName, alias, emailID, relativeName, relationType, alternateMobileNumber, genderType }: PersonalDetailsFieldsType = fieldsName;\r\n const fields = useMemo(\r\n () => [firstName, middleName, lastName, alias],\r\n [firstName, middleName, lastName, alias]\r\n );\r\n const initialArgObj = personalDetailsState.fieldsName[DTONames.MOBILE_PANEL].initialArgs;\r\n const isMobileVerifyRequired = ((initialArgObj?.at(-1) as FieldObject<boolean>)?.isVerificationRequired) === YES_NO_BOOL.YES;\r\n\r\n const isFieldDisabled = (field: string) =>\r\n props.isViewMode ||\r\n defaultsRules[field as keyof typeof defaultsRules]?.isDisabled;\r\n\r\n\r\n return (\r\n <>\r\n <GridContainer>\r\n {fields.map((field) => (\r\n <GridItem key={field}>\r\n <TextInputField\r\n id={field}\r\n label={defaultsRules[field]?.label}\r\n value={submitJson[field] ?? \"\"}\r\n validation={defaultsRules[field]}\r\n error={isValidJson[field] === false}\r\n helperText={fieldError[field]}\r\n disabled={isFieldDisabled(field)}\r\n onChange={onTextChange}\r\n />\r\n </GridItem>\r\n ))}\r\n <GridItem>\r\n <SelectInputField\r\n id={genderType}\r\n label={t(defaultsRules[genderType]?.label)}\r\n fieldvalue={submitJson[genderType]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.GENDER\r\n }}\r\n validation={defaultsRules[genderType]}\r\n error={!!fieldError[genderType]}\r\n disabled={isFieldDisabled(genderType)}\r\n helperText={fieldError[genderType]}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n\r\n {/* age panel */}\r\n <GridContainer>\r\n <GridItem size={{ lg: 12 }}>\r\n <AgePanel isViewMode={props.isViewMode} parentSliceName={parentSliceName} rootSliceName={props.rootSliceName} />\r\n </GridItem>\r\n </GridContainer>\r\n <GridContainer>\r\n <GridItem>\r\n <MobileVerification\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isMobileVerifyRequired={isMobileVerifyRequired}\r\n isViewMode={props.isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={alternateMobileNumber}\r\n label={defaultsRules[alternateMobileNumber]?.label}\r\n value={submitJson[alternateMobileNumber] ?? \"\"}\r\n error={Boolean(fieldError[alternateMobileNumber])}\r\n validation={defaultsRules[alternateMobileNumber]}\r\n helperText={fieldError[alternateMobileNumber]}\r\n disabled={isFieldDisabled(alternateMobileNumber)}\r\n onChange={onTextChange}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={emailID}\r\n label={defaultsRules[emailID]?.label}\r\n value={submitJson[emailID] ?? \"\"}\r\n error={Boolean(fieldError[emailID])}\r\n validation={defaultsRules[emailID]}\r\n helperText={fieldError[emailID]}\r\n disabled={isFieldDisabled(emailID)}\r\n onChange={onTextChange}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField<MasterResponseDataType>\r\n id={relationType}\r\n label={t(defaultsRules[relationType]?.label)}\r\n fieldvalue={submitJson[relationType]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.RELATION_TYP\r\n }}\r\n validation={defaultsRules[relationType]}\r\n error={!!fieldError[relationType]}\r\n helperText={fieldError[relationType]}\r\n disabled={isFieldDisabled(relationType)}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={relativeName}\r\n label={defaultsRules[relativeName]?.label}\r\n value={submitJson[relativeName] ?? \"\"}\r\n error={Boolean(fieldError[relativeName])}\r\n helperText={fieldError[relativeName]}\r\n validation={defaultsRules[relativeName]}\r\n disabled={isFieldDisabled(relativeName)}\r\n onChange={onTextChange}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n </>\r\n );\r\n});\r\n\r\nexport default PersonalDetails;\r\n","import { DTONames } from \"constants/dtoNames\"; \r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { getNestedValue, getOnChangeActionType, getSelectInputFieldName } from \"utils/commonFunctions\";\r\nimport type { physicalDescriptionProps } from \"../definations/physicalDescriptionTypes\";\r\nimport type { PhysicalDescriptionDTOType } from \"../model/PhysicalDescriptionDTO\";\r\nimport type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport type { ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function PhysicalDescriptionController(props: physicalDescriptionProps) {\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n const dispatch = useDispatch();\r\n const parentSliceName = useParentSliceName(DTONames.PHYSICAL_DESCRIPTION, props.parentSliceName);\r\n\r\n const physicalDescState = useSelector((state: RootState) =>\r\n getNestedValue<PhysicalDescriptionDTOType>(state, parentSliceName),\r\n );\r\n\r\n const onChangeMaster = (event: React.BaseSyntheticEvent, data: MasterResponseDataType) => {\r\n const key = event.target.id || \"\";\r\n const fieldName = getSelectInputFieldName(key);\r\n const valueOrCd = data[MASTER_DATA_KEYS.CODE];\r\n const value = data[MASTER_DATA_KEYS.VALUE];\r\n\r\n (\r\n dispatch as (\r\n action: PayloadAction<ChangeFieldPayload<PhysicalDescriptionDTOType>>,\r\n ) => PayloadAction<ChangeFieldPayload>\r\n )({\r\n type,\r\n payload: {\r\n key: fieldName,\r\n parentSliceName,\r\n value,\r\n valueOrCd: valueOrCd,\r\n },\r\n });\r\n };\r\n\r\n return { parentSliceName, physicalDescState, onChangeMaster };\r\n}\r\n","import { MasterCodeType } from \"constants/masterCodes\";\r\n\r\nexport const PHYSICAL_DESCRIPTION_CONSTANTS = {\r\n // height range\r\n HeightRangeDTOName: \"heightRange\",\r\n // id marks\r\n IdentificationMarksDTOName: \"identificationMarks\",\r\n IdentityMarkList: \"identityMarkList\",\r\n // dress type\r\n DressTypeDTOName: \"dressTypes\",\r\n DressTypeList: \"dressTypeList\",\r\n // characteristics\r\n PhysicalCharactersticsDTOName: \"physicalFeature\",\r\n PhysicalCharacteristicsList: \"physicalFeatureList\",\r\n} as const;\r\n\r\nexport const GenderCode = {\r\n MALE: 3,\r\n FEMALE: 2,\r\n} as const;\r\n\r\nexport const PhysicalCharacteristic = {\r\n FACE: 1,\r\n EYES: 2,\r\n DEFORMITIES: 3,\r\n HAIR: 4,\r\n HABITS: 5,\r\n SPEECH: 6,\r\n MALE: 7,\r\n FEMALE: 8,\r\n} as const;\r\n\r\nexport const phyCharMasterCdMap = {\r\n [PhysicalCharacteristic.FACE]: MasterCodeType.PHY_FEAT_PCODE_FACE,\r\n [PhysicalCharacteristic.EYES]: MasterCodeType.PHY_FEAT_PCODE_EYES,\r\n [PhysicalCharacteristic.DEFORMITIES]: MasterCodeType.PHY_FEAT_PCODE_DEFORM,\r\n [PhysicalCharacteristic.HAIR]: MasterCodeType.PHY_FEAT_PCODE_HAIRS,\r\n [PhysicalCharacteristic.HABITS]: MasterCodeType.PHY_FEAT_PCODE_HABITS,\r\n [PhysicalCharacteristic.SPEECH]: MasterCodeType.PHY_FEAT_PCODE_SPEECH,\r\n [PhysicalCharacteristic.MALE]: MasterCodeType.PHY_FEAT_PCODE_MALE,\r\n [PhysicalCharacteristic.FEMALE]: MasterCodeType.PHY_FEAT_PCODE_FEMALE,\r\n} as const;\r\n\r\nexport const DRESS_WORN_TYPE_OTHERS_FEMALE = 364;\r\nexport const DRESS_WORN_TYPE_OTHERS_MALE = 363;\r\n\r\nexport const phyDescRadioType = {\r\n DRESS: 1,\r\n CATEGORY: 2,\r\n} as const;\r\n\r\nexport const PhysicalDescLookUp = {\r\n Body_Build_Type: 1,\r\n Body_Complxion_Type: 2\r\n} as const","import { REGULAR_EXPRESSION_ENUM } from \"libs/shared/enums/validation-enums\";\r\nimport type { PhysicalDescriptionDTOType } from \"./model/PhysicalDescriptionDTO\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"./definations/physicalDescriptionConstants\";\r\n\r\nconst {\r\n HeightRangeDTOName,\r\n IdentificationMarksDTOName,\r\n IdentityMarkList,\r\n PhysicalCharacteristicsList,\r\n PhysicalCharactersticsDTOName,\r\n} = PHYSICAL_DESCRIPTION_CONSTANTS;\r\n\r\nexport const convertToCm = (feet: string | number, inch: string | number) => {\r\n const ft = Number(feet) || 0;\r\n const inVal = Number(inch) || 0;\r\n const cm = (ft * 12 + inVal) * 2.54;\r\n return `${Math.round(cm)}`;\r\n};\r\n\r\nexport const handleHeightInput = (value: string, type: \"feet\" | \"inch\") => {\r\n let cleaned = value.replace(new RegExp(REGULAR_EXPRESSION_ENUM.ONLY_NUMERIC, \"g\"), \"\");\r\n\r\n if (type === \"feet\") {\r\n if (!new RegExp(REGULAR_EXPRESSION_ENUM.FEET).test(cleaned)) {\r\n cleaned = cleaned.at(-1) || \"\";\r\n }\r\n } else if (type === \"inch\") {\r\n if (!new RegExp(REGULAR_EXPRESSION_ENUM.INCH).test(cleaned)) {\r\n cleaned = cleaned.at(-1) || \"\";\r\n }\r\n }\r\n\r\n return cleaned;\r\n};\r\n\r\nexport function getPhysicalDescriptionData(physicalDescriptionDto: PhysicalDescriptionDTOType) {\r\n const { fieldsName, submitJson } = physicalDescriptionDto;\r\n\r\n const phyDescData = {\r\n ...submitJson,\r\n [fieldsName[HeightRangeDTOName].fieldsName.fromHeightCm]:\r\n fieldsName[HeightRangeDTOName].submitJson[fieldsName.heightRange.fieldsName.fromHeightCm],\r\n [fieldsName[HeightRangeDTOName].fieldsName.toHeightCm]:\r\n fieldsName[HeightRangeDTOName].submitJson[fieldsName.heightRange.fieldsName.toHeightCm],\r\n [IdentityMarkList]: fieldsName[IdentificationMarksDTOName].submitJson[IdentityMarkList] ?? [],\r\n [PhysicalCharacteristicsList]:\r\n fieldsName[PhysicalCharactersticsDTOName].submitJson[PhysicalCharacteristicsList] ?? [],\r\n };\r\n\r\n return phyDescData;\r\n}\r\n","import type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport { DTONames } from \"constants/dtoNames\"; \r\nimport type { CommonProps } from \"libs/shared/types/common-types\";\r\nimport type { SetViewDataPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport type { RootState } from \"store/store\";\r\nimport { constructParentSliceName, getNestedValue } from \"utils/commonFunctions\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\nimport type { HeightRangeDTOType } from \"../model/HeightRangeDTO\";\r\nimport { convertToCm, handleHeightInput } from \"../physicalDescUtils\";\r\nimport { sharedFormActionNames } from \"utils/sharedFormActions\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function useHeightRangePanel(props: CommonProps) {\r\n const dispatch = useDispatch();\r\n const { t } = useTranslation();\r\n\r\n const parentSliceName = useParentSliceName(PHYSICAL_DESCRIPTION_CONSTANTS.HeightRangeDTOName, props.parentSliceName);\r\n\r\n const heightRangeState = useSelector((state: RootState) =>\r\n getNestedValue<HeightRangeDTOType>(state, parentSliceName),\r\n );\r\n\r\n const { fieldsName, submitJson } = heightRangeState;\r\n\r\n const onChangeHeight = (event: React.ChangeEvent<HTMLInputElement>) => {\r\n const value = event.target.value || \"\";\r\n const key = event.target.id || \"\";\r\n\r\n const isFeetInput = key.toLowerCase().includes(\"feet\");\r\n const isFromHeight = key.toLowerCase().includes(\"from\");\r\n\r\n const formattedValue = handleHeightInput(value, isFeetInput ? \"feet\" : \"inch\");\r\n\r\n const heightFeet = isFeetInput\r\n ? formattedValue\r\n : submitJson[isFromHeight ? fieldsName.fromHeightFeet : fieldsName.toHeightFeet] || 0;\r\n\r\n const heightInch = !isFeetInput\r\n ? formattedValue\r\n : submitJson[isFromHeight ? fieldsName.fromHeightInch : fieldsName.toHeightInch] || 0;\r\n\r\n const heightCm = convertToCm(Number(heightFeet), Number(heightInch));\r\n\r\n const fromHeightCm = isFromHeight\r\n ? +heightCm\r\n : convertToCm(\r\n Number(submitJson[fieldsName.fromHeightFeet] || 0),\r\n Number(submitJson[fieldsName.fromHeightInch] || 0),\r\n );\r\n\r\n const toHeightCm = isFromHeight\r\n ? convertToCm(Number(submitJson[fieldsName.toHeightFeet] || 0), Number(submitJson[fieldsName.toHeightInch] || 0))\r\n : +heightCm;\r\n\r\n let error = \"\";\r\n\r\n // TODO : get error from translation\r\n if (fromHeightCm && toHeightCm !== \"0\" && toHeightCm <= fromHeightCm) {\r\n error = t(\"strHeightError\");\r\n // error = \"‘To Height’ must be greater than ‘From Height’\";\r\n } else if (toHeightCm === \"0\" || fromHeightCm === \"0\") {\r\n /*\r\n * initially on entering fromHeight - this msg will be shown to indicate user to fill more than 0 as initmation, then if user enters less toHeigh than from fromHeight then prev msg will be shown\r\n * error = \"Height range should be greater than 0\";\r\n */\r\n error = t(\"strInvalidHeight\");\r\n }\r\n\r\n const updatedDTO: HeightRangeDTOType = {\r\n ...heightRangeState,\r\n submitJson: {\r\n ...heightRangeState.submitJson,\r\n ...(isFromHeight\r\n ? {\r\n [fieldsName.fromHeightFeet]: heightFeet,\r\n [fieldsName.fromHeightInch]: heightInch,\r\n [fieldsName.fromHeightCm]: heightCm,\r\n }\r\n : {\r\n [fieldsName.toHeightFeet]: heightFeet,\r\n [fieldsName.toHeightInch]: heightInch,\r\n [fieldsName.toHeightCm]: heightCm,\r\n }),\r\n },\r\n isValidJson: {\r\n ...heightRangeState.isValidJson,\r\n [fieldsName.heightError]: !error,\r\n [fieldsName.fromHeightCm]: error ? (heightRangeState.isValidJson?.[fieldsName.fromHeightCm] ?? true) : true,\r\n [fieldsName.toHeightCm]: error ? (heightRangeState.isValidJson?.[fieldsName.toHeightCm] ?? true) : true,\r\n },\r\n fieldError: {\r\n ...heightRangeState.fieldError,\r\n [fieldsName.heightError]: error,\r\n [fieldsName.fromHeightCm]: error ? (heightRangeState.fieldError[fieldsName.fromHeightCm] ?? \"\") : \"\",\r\n [fieldsName.toHeightCm]: error ? (heightRangeState.fieldError[fieldsName.toHeightCm] ?? \"\") : \"\",\r\n },\r\n };\r\n\r\n (\r\n dispatch as (\r\n action: PayloadAction<SetViewDataPayload<HeightRangeDTOType>>,\r\n ) => PayloadAction<SetViewDataPayload<HeightRangeDTOType>>\r\n )({\r\n type: `${props.rootSliceName}/${sharedFormActionNames.SET_VIEW_DATA}`,\r\n payload: {\r\n dto: updatedDTO,\r\n fieldsName: PHYSICAL_DESCRIPTION_CONSTANTS.HeightRangeDTOName,\r\n path: constructParentSliceName(DTONames.PHYSICAL_DESCRIPTION, props.parentSliceName),\r\n },\r\n });\r\n };\r\n\r\n return { parentSliceName, heightRangeState, onChangeHeight };\r\n}\r\n","import type { CommonProps } from \"libs/shared/types/common-types\";\r\nimport React from \"react\";\r\nimport useHeightRangePanel from \"../controller/useHeightRangePanel\";\r\nimport GridContainer from \"ui/grid/GridContainer\";\r\nimport CustomHeading from \"ui/heading/CustomHeading\";\r\nimport GridItem from \"ui/grid/GridItem\";\r\nimport { ONE_COLUMN_LAYOUT, TWO_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\nimport Typography2 from \"ui/typography/Typography2\";\r\nimport TextInputField from \"ui/textInput/TextInputField\";\r\nimport { Stack } from \"@mui/system\";\r\n\r\nconst HeightRangePanel = (props: CommonProps) => {\r\n const { heightRangeState, onChangeHeight } = useHeightRangePanel(props);\r\n\r\n const { fieldsName, fieldError, submitJson, defaultsRules, initialArgs } = heightRangeState;\r\n\r\n const { fromHeightFeet, fromHeightInch, fromHeightCm, toHeightFeet, toHeightInch, toHeightCm, heightError } = fieldsName;\r\n\r\n const isRequired = initialArgs?.[0] as boolean;\r\n\r\n return (\r\n <>\r\n <CustomHeading text=\"strHeightRange\" />\r\n <GridContainer>\r\n <GridItem size={TWO_COLUMN_LAYOUT}>\r\n <GridItem size={ONE_COLUMN_LAYOUT}>\r\n <Typography2 text=\"strHeightRangeFrom\" isRequired={isRequired} />\r\n </GridItem>\r\n <GridContainer>\r\n <GridItem>\r\n <TextInputField\r\n id={fromHeightFeet}\r\n name={fromHeightFeet}\r\n value={submitJson[fromHeightFeet] ?? \"\"}\r\n onChange={onChangeHeight}\r\n helperText={fieldError[fromHeightFeet]}\r\n validation={defaultsRules[fromHeightFeet]}\r\n error={Boolean(fieldError[fromHeightFeet])}\r\n unitLabel={defaultsRules[fromHeightFeet].label}\r\n label={defaultsRules[fromHeightFeet].label}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={fromHeightInch}\r\n name={fromHeightInch}\r\n value={submitJson[fromHeightInch] ?? \"\"}\r\n onChange={onChangeHeight}\r\n helperText={fieldError[fromHeightInch]}\r\n validation={defaultsRules[fromHeightInch]}\r\n error={Boolean(fieldError[fromHeightInch])}\r\n unitLabel={defaultsRules[fromHeightInch].label}\r\n label={defaultsRules[fromHeightInch].label}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={fromHeightCm}\r\n name={fromHeightCm}\r\n value={submitJson[fromHeightCm] ?? \"\"}\r\n onChange={() => {}}\r\n helperText={fieldError[fromHeightCm]}\r\n validation={defaultsRules[fromHeightCm]}\r\n error={Boolean(fieldError[fromHeightCm])}\r\n unitLabel={defaultsRules[fromHeightCm].label}\r\n label={defaultsRules[fromHeightCm].label}\r\n disabled\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n </GridItem>\r\n <GridItem size={TWO_COLUMN_LAYOUT}>\r\n <GridItem size={ONE_COLUMN_LAYOUT}>\r\n <Typography2 text=\"strHeightRangeTo\" isRequired={isRequired} />\r\n </GridItem>\r\n <GridContainer>\r\n <GridItem>\r\n <TextInputField\r\n id={toHeightFeet}\r\n name={toHeightFeet}\r\n value={submitJson[toHeightFeet] ?? \"\"}\r\n onChange={onChangeHeight}\r\n helperText={fieldError[toHeightFeet]}\r\n validation={defaultsRules[toHeightFeet]}\r\n error={Boolean(fieldError[toHeightFeet])}\r\n unitLabel={defaultsRules[toHeightFeet].label}\r\n label={defaultsRules[toHeightFeet].label}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={toHeightInch}\r\n name={toHeightInch}\r\n value={submitJson[toHeightInch] ?? \"\"}\r\n onChange={onChangeHeight}\r\n helperText={fieldError[toHeightInch]}\r\n validation={defaultsRules[toHeightInch]}\r\n error={Boolean(fieldError[toHeightInch])}\r\n unitLabel={defaultsRules[toHeightInch].label}\r\n label={defaultsRules[toHeightInch].label}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <TextInputField\r\n id={toHeightCm}\r\n name={toHeightCm}\r\n value={submitJson[toHeightCm] ?? \"\"}\r\n onChange={() => {}}\r\n helperText={fieldError[toHeightCm]}\r\n validation={defaultsRules[toHeightCm]}\r\n error={Boolean(fieldError[toHeightCm])}\r\n unitLabel={defaultsRules[toHeightCm].label}\r\n label={defaultsRules[toHeightCm].label}\r\n disabled\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n </GridItem>\r\n {fieldError[heightError] && (\r\n <Stack sx={{ mt: 2 }}>\r\n <Typography2 color=\"warning\" text={fieldError[heightError]} />\r\n </Stack>\r\n )}\r\n </GridContainer>\r\n </>\r\n );\r\n};\r\n\r\nexport default React.memo(HeightRangePanel);\r\n","import type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport { SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { CommonProps, GridRowData } from \"libs/shared/types/common-types\";\r\nimport type { ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { openSnackbar } from \"store/snackbarSlice\";\r\nimport type { RootState } from \"store/store\";\r\nimport {\r\n fieldsManager,\r\n filterRecordById,\r\n getNestedValue,\r\n getOnChangeActionType,\r\n getValueKey\r\n} from \"utils/commonFunctions\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\nimport type { IdentificationMarksDTOType } from \"../model/IdentificationMarksDTO\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function useIdentificationMarksPanel(props: CommonProps) {\r\n const dispatch = useDispatch();\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n const parentSliceName = useParentSliceName(\r\n PHYSICAL_DESCRIPTION_CONSTANTS.IdentificationMarksDTOName,\r\n props.parentSliceName,\r\n );\r\n\r\n const {onMasterChange} = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n\r\n const idMarksState = useSelector((state: RootState) =>\r\n getNestedValue<IdentificationMarksDTOType>(state, parentSliceName),\r\n );\r\n\r\n const { submitJson, displayJson, fieldsName } = idMarksState;\r\n\r\n const isDuplicate = (): boolean => {\r\n return submitJson[fieldsName.identityMarkList]?.some(\r\n (item: GridRowData) =>\r\n item?.[fieldsName.identificationMark] === submitJson[fieldsName.identificationMark] &&\r\n item?.[fieldsName.bodypart] === submitJson[fieldsName.bodypart],\r\n );\r\n };\r\n\r\n const onAddIDMarks = () => {\r\n if (submitJson[fieldsName.identificationMark] >= 1 !== true || submitJson[fieldsName.bodypart] >= 1 !== true) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"errorMsg.mandatoryFields\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n const recordId = uuidv4();\r\n\r\n const newMark: GridRowData = {\r\n id: recordId,\r\n [fieldsName.identificationMark]: submitJson[fieldsName.identificationMark],\r\n [fieldsName.bodypart]: submitJson[fieldsName.bodypart],\r\n [getValueKey(fieldsName.identificationMark)]: displayJson[fieldsName.identificationMark],\r\n [getValueKey(fieldsName.bodypart)]: displayJson[fieldsName.bodypart],\r\n };\r\n\r\n if (isDuplicate()) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"strDuplicateDataInGrid\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n updateIDMarksList(\r\n [...(submitJson[fieldsName.identityMarkList] || []), newMark],\r\n [...(displayJson[fieldsName.identityMarkList] || []), newMark],\r\n );\r\n };\r\n\r\n const updateIDMarksList = (submitList: GridRowData[], displayList: GridRowData[]) => {\r\n (\r\n dispatch as (\r\n action: PayloadAction<ChangeFieldPayload<IdentificationMarksDTOType>>,\r\n ) => PayloadAction<ChangeFieldPayload<IdentificationMarksDTOType>>\r\n )({\r\n type,\r\n payload: {\r\n key: fieldsName.identityMarkList,\r\n valueOrCd: submitList,\r\n value: displayList,\r\n parentSliceName,\r\n callback(_data, dto) {\r\n fieldsManager(dto, [fieldsName.identificationMark, fieldsName.bodypart]);\r\n },\r\n },\r\n });\r\n };\r\n\r\n const onDelete = (row: GridRowData) => {\r\n const displayData = (displayJson[fieldsName.identityMarkList] || [])?.filter(filterRecordById(row));\r\n const submitData = (submitJson[fieldsName.identityMarkList] || [])?.filter(filterRecordById(row));\r\n\r\n updateIDMarksList(submitData, displayData);\r\n };\r\n\r\n return { idMarksState, onMasterChange, onAddIDMarks, onDelete };\r\n}\r\n","import type { CommonProps, GridRowData } from \"libs/shared/types/common-types\";\r\nimport React from \"react\";\r\nimport useIdentificationMarksPanel from \"../controller/useIdentificationMarksPanel\";\r\nimport GridContainer from \"ui/grid/GridContainer\";\r\nimport CustomHeading from \"ui/heading/CustomHeading\";\r\nimport { MASTER_DATA_KEYS, MasterCodeType } from \"constants/masterCodes\";\r\nimport { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport SelectInputField from \"ui/dropdown/SelectInputField\";\r\nimport GridItem from \"ui/grid/GridItem\";\r\nimport { AppButton } from \"ui/index\";\r\nimport { Box, Stack } from \"@mui/system\";\r\nimport OutlinedCard from \"ui/outlinedCard/OutlinedCard\";\r\nimport AppChip from \"ui/chip/AppChip\";\r\nimport { ONE_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\n\r\nconst listStackStyle = {\r\n width: \"100%\",\r\n flexWrap: \"wrap\",\r\n alignItems: \"flex-start\",\r\n};\r\n\r\nconst IdentificationMarksPanel = (props: CommonProps) => {\r\n const { idMarksState, onMasterChange, onAddIDMarks, onDelete } = useIdentificationMarksPanel(props);\r\n\r\n const { fieldsName, submitJson, defaultsRules, fieldError, displayJson } = idMarksState;\r\n\r\n const { identificationMark, bodypart, identityMarkList } = fieldsName;\r\n return (\r\n <>\r\n <GridContainer>\r\n <CustomHeading text=\"strIdMarks\" />\r\n <GridItem>\r\n <SelectInputField\r\n id={identificationMark}\r\n label={defaultsRules[identificationMark]?.label ?? \"\"}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHY_FEAT_PCODE_IDENTF,\r\n }}\r\n fieldvalue={submitJson[identificationMark]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n validation={defaultsRules[identificationMark]}\r\n helperText={fieldError[identificationMark]}\r\n disabled={props.isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <Stack direction=\"row\" sx={{ alignItems: \"flex-end\", width: \"100%\", height: \"100%\", gap: 1 }}>\r\n <Box sx={{ flex: 1 }}>\r\n <SelectInputField\r\n id={bodypart}\r\n label={defaultsRules[bodypart]?.label ?? \"\"}\r\n isfirstrun={false}\r\n isRefereshedData={!submitJson[identificationMark]}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHYSCL_FEATURES,\r\n }}\r\n masterCd={submitJson[identificationMark]}\r\n masterCdKey={MASTER_DATA_KEYS.CODE}\r\n fieldvalue={submitJson[bodypart]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n validation={defaultsRules[bodypart]}\r\n helperText={fieldError[bodypart]}\r\n disabled={props.isViewMode}\r\n />\r\n </Box>\r\n <AppButton label=\"strAdd\" onClick={onAddIDMarks} sx={{ flexShrink: 0 }} />\r\n </Stack>\r\n </GridItem>\r\n </GridContainer>\r\n {displayJson[identityMarkList]?.length > 0 && (\r\n <GridContainer>\r\n <GridItem size={ONE_COLUMN_LAYOUT}>\r\n <OutlinedCard\r\n content={\r\n <Stack direction=\"row\" spacing={1} useFlexGap sx={listStackStyle}>\r\n {displayJson[identityMarkList]?.map((idMark: GridRowData) => {\r\n return (\r\n <AppChip\r\n key={idMark.id}\r\n label={`${idMark?.idMarksType} - ${idMark?.bodyPartLoc}`}\r\n removable\r\n onDelete={() => onDelete(idMark)}\r\n />\r\n );\r\n })}\r\n </Stack>\r\n }\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default React.memo(IdentificationMarksPanel);\r\n","import { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport { MasterCodeType } from \"constants/masterCodes\";\r\nimport useMasterFetchApi from \"hooks/useMasterFetch\";\r\nimport type { MasterResponseDataType } from \"libs/shared/types/common-types\";\r\nimport type { RadioOption } from \"ui/radio/radioButtonController\";\r\n\r\nexport default function useGetPhyDescCategoryOptions() {\r\n const module = MasterCodeType.PHY_FTRS_CAT;\r\n\r\n const [categoryOptions, _isload, _isError, _errorData, _fetchResourse] = useMasterFetchApi<MasterResponseDataType>({\r\n isfirstrun: true,\r\n id: \"\",\r\n label: \"\",\r\n placeholder: \"\",\r\n apiendpoint: MASTER_API_END_POINT,\r\n requestbody: { masterCd: MasterCodeType.PHY_DESC_TYP, module },\r\n });\r\n\r\n const radioOptions: RadioOption[] = categoryOptions.map((category) => ({\r\n label: category.lookUp!,\r\n value: category.lookUpCd!,\r\n disabled: false,\r\n }));\r\n\r\n return {\r\n radioOptions,\r\n };\r\n}\r\n","import type { PayloadAction } from \"@reduxjs/toolkit\";\r\nimport useOnChangeHandlers from \"hooks/useOnChangeHandlers\"; \r\nimport { SnackbarEnum } from \"libs/shared/enums/common-enums\";\r\nimport type {\r\n CommonProps,\r\n GridRowData\r\n} from \"libs/shared/types/common-types\";\r\nimport type { ChangeFieldPayload } from \"libs/shared/types/sharedFormActionTypes\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { openSnackbar } from \"store/snackbarSlice\";\r\nimport type { RootState } from \"store/store\";\r\nimport {\r\n fieldsManager,\r\n filterRecordById,\r\n getNestedValue,\r\n getOnChangeActionType,\r\n getValueKey\r\n} from \"utils/commonFunctions\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\nimport useGetPhyDescCategoryOptions from \"../hooks/useGetPhyDescCategoryOptions\";\r\nimport type { PhysicalCharacteristicsDTOType } from \"../model/PhysicalCharacteristicsDTO\";\r\nimport useParentSliceName from \"hooks/useParentSliceName\";\r\n\r\nexport default function usePhysicalCharacteristicsPanel(props: CommonProps) {\r\n const dispatch = useDispatch();\r\n const type = getOnChangeActionType(props.rootSliceName);\r\n const parentSliceName = useParentSliceName(\r\n PHYSICAL_DESCRIPTION_CONSTANTS.PhysicalCharactersticsDTOName,\r\n props.parentSliceName,\r\n );\r\n\r\n const {onRadioChange, onMasterChange} = useOnChangeHandlers(props.rootSliceName, parentSliceName);\r\n\r\n const phyCharState = useSelector((state: RootState) =>\r\n getNestedValue<PhysicalCharacteristicsDTOType>(state, parentSliceName),\r\n );\r\n\r\n const { submitJson, displayJson, fieldsName } = phyCharState;\r\n\r\n const { radioOptions } = useGetPhyDescCategoryOptions();\r\n\r\n const updatePhyCharsList = (submitList: GridRowData[], displayList: GridRowData[]) => {\r\n (\r\n dispatch as (\r\n action: PayloadAction<ChangeFieldPayload<PhysicalCharacteristicsDTOType>>,\r\n ) => PayloadAction<ChangeFieldPayload<PhysicalCharacteristicsDTOType>>\r\n )({\r\n type,\r\n payload: {\r\n key: fieldsName.physicalCharacteristicsList,\r\n valueOrCd: submitList,\r\n value: displayList,\r\n parentSliceName,\r\n callback(_data, dto) {\r\n fieldsManager(dto, [fieldsName.charactersticsSubType, fieldsName.charactersticsType]);\r\n },\r\n },\r\n });\r\n };\r\n\r\n const isDuplicate = (): boolean => {\r\n return submitJson[fieldsName.physicalCharacteristicsList]?.some(\r\n (item: GridRowData) =>\r\n item?.[fieldsName.charactersticsType] === submitJson[fieldsName.charactersticsType] &&\r\n item?.[fieldsName.charactersticsSubType] === submitJson[fieldsName.charactersticsSubType],\r\n );\r\n };\r\n\r\n const onAddPhyChars = () => {\r\n if (\r\n !submitJson[fieldsName.category] ||\r\n submitJson[fieldsName.charactersticsType] >= 1 !== true ||\r\n submitJson[fieldsName.charactersticsSubType] >= 1 !== true\r\n ) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"errorMsg.mandatoryFields\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n if (isDuplicate()) {\r\n dispatch(\r\n openSnackbar({\r\n message: \"strDuplicateDataInGrid\",\r\n type: SnackbarEnum.ERROR,\r\n }),\r\n );\r\n return;\r\n }\r\n\r\n const recordId = uuidv4();\r\n\r\n const newCharacteristic = {\r\n id: recordId,\r\n [fieldsName.category]: submitJson[fieldsName.category],\r\n [getValueKey(fieldsName.category)]: displayJson[fieldsName.category],\r\n [fieldsName.charactersticsType]: submitJson[fieldsName.charactersticsType],\r\n [getValueKey(fieldsName.charactersticsType)]: displayJson[fieldsName.charactersticsType],\r\n [fieldsName.charactersticsSubType]: submitJson[fieldsName.charactersticsSubType],\r\n [getValueKey(fieldsName.charactersticsSubType)]: displayJson[fieldsName.charactersticsSubType],\r\n };\r\n\r\n updatePhyCharsList(\r\n [...(submitJson[fieldsName.physicalCharacteristicsList] || []), newCharacteristic],\r\n [...(displayJson[fieldsName.physicalCharacteristicsList] || []), newCharacteristic],\r\n );\r\n };\r\n\r\n const onDelete = (row: GridRowData) => {\r\n const displayData = (displayJson[fieldsName.physicalCharacteristicsList] || [])?.filter(filterRecordById(row));\r\n const submitData = (submitJson[fieldsName.physicalCharacteristicsList] || [])?.filter(filterRecordById(row));\r\n\r\n updatePhyCharsList(submitData, displayData);\r\n };\r\n\r\n return { phyCharState, radioOptions, onRadioChange, onMasterChange, onDelete, onAddPhyChars };\r\n}\r\n","import React, { useMemo } from \"react\";\r\nimport usePhysicalCharacteristicsPanel from \"../controller/usePhysicalCharacteristicsPanel\";\r\nimport type { CommonProps, GridRowData, PhysicalCharacteristicsType } from \"libs/shared/types/common-types\";\r\nimport GridContainer from \"ui/grid/GridContainer\";\r\nimport CustomHeading from \"ui/heading/CustomHeading\";\r\nimport GridItem from \"ui/grid/GridItem\";\r\nimport { ONE_COLUMN_LAYOUT } from \"constants/commonConstants\";\r\nimport RadioButton from \"ui/radio/RadioButton\";\r\nimport { Box, Stack } from \"@mui/system\";\r\nimport { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport { MasterCodeType, MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport SelectInputField from \"ui/dropdown/SelectInputField\";\r\nimport { AppButton } from \"ui/index\";\r\nimport { phyCharMasterCdMap } from \"../definations/physicalDescriptionConstants\";\r\nimport AppChip from \"ui/chip/AppChip\";\r\nimport OutlinedCard from \"ui/outlinedCard/OutlinedCard\";\r\nimport { getValueKey } from \"utils/commonFunctions\";\r\n\r\nconst chipsStackStyle = {\r\n width: \"100%\",\r\n flexWrap: \"wrap\",\r\n alignItems: \"flex-start\",\r\n};\r\n\r\nconst PhysicalCharacteristicsPanel = (props: CommonProps) => {\r\n const { phyCharState, onAddPhyChars, onRadioChange, onMasterChange, radioOptions, onDelete } =\r\n usePhysicalCharacteristicsPanel(props);\r\n\r\n const { fieldsName, submitJson, defaultsRules, fieldError, displayJson } = phyCharState;\r\n\r\n const { category, charactersticsSubType, charactersticsType, physicalCharacteristicsList } = fieldsName;\r\n\r\n const physicalCharacteristics = displayJson[physicalCharacteristicsList] as PhysicalCharacteristicsType[];\r\n\r\n const groupedCharacteristics = useMemo(() => {\r\n return Object.values(\r\n physicalCharacteristics.reduce<Record<number, GridRowData[]>>((acc, item) => {\r\n const groupKey = item[category];\r\n\r\n (acc[groupKey] ??= []).push(item);\r\n\r\n return acc;\r\n }, {}),\r\n );\r\n }, [physicalCharacteristics, category]);\r\n\r\n return (\r\n <>\r\n <GridContainer>\r\n <CustomHeading text=\"strPhysicalChars\" />\r\n <GridItem size={ONE_COLUMN_LAYOUT}>\r\n <RadioButton\r\n id={category}\r\n label=\"strSelectCategory\"\r\n name={category}\r\n onChange={onRadioChange(category)}\r\n value={submitJson[category]}\r\n error={fieldError[category]}\r\n options={radioOptions}\r\n required={defaultsRules[category].required}\r\n disabled={props.isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={charactersticsType}\r\n label={defaultsRules[charactersticsType]?.label ?? \"\"}\r\n isRefereshedData={!submitJson[category]}\r\n isfirstrun={!!submitJson[category]}\r\n masterCd={phyCharMasterCdMap[submitJson[fieldsName.category] as keyof typeof phyCharMasterCdMap] as string}\r\n masterCdKey=\"masterCd\"\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHY_FEAT_PCODE_IDENTF,\r\n }}\r\n fieldvalue={submitJson[charactersticsType]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n validation={defaultsRules[charactersticsType]}\r\n helperText={fieldError[charactersticsType]}\r\n disabled={props.isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <Stack direction=\"row\" sx={{ alignItems: \"flex-end\", width: \"100%\", height: \"100%\", gap: 1 }}>\r\n <Box sx={{ flex: 1 }}>\r\n <SelectInputField\r\n id={charactersticsSubType}\r\n label={defaultsRules[charactersticsSubType]?.label ?? \"\"}\r\n isfirstrun={false}\r\n isRefereshedData={!submitJson[charactersticsType]}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHYSCL_FEATURES,\r\n }}\r\n masterCd={submitJson[charactersticsType]}\r\n masterCdKey={MASTER_DATA_KEYS.CODE}\r\n fieldvalue={submitJson[charactersticsSubType]}\r\n onChange={(event, data) => onMasterChange(event, data)}\r\n validation={defaultsRules[charactersticsSubType]}\r\n helperText={fieldError[charactersticsSubType]}\r\n disabled={props.isViewMode}\r\n />\r\n </Box>\r\n <AppButton label=\"strAdd\" onClick={onAddPhyChars} sx={{ flexShrink: 0 }} />\r\n </Stack>\r\n </GridItem>\r\n </GridContainer>\r\n {groupedCharacteristics.length > 0 && (\r\n <GridContainer spacing={2}>\r\n {groupedCharacteristics.map((items) => {\r\n const firstItem = items[0];\r\n if (!firstItem) return null;\r\n return (\r\n <GridItem key={String(firstItem[category])}>\r\n <OutlinedCard\r\n title={String(firstItem[getValueKey(category)])}\r\n content={\r\n <Stack direction=\"row\" spacing={1} useFlexGap sx={chipsStackStyle}>\r\n {items.map((item) => (\r\n <AppChip\r\n key={item.id}\r\n label={`${item[getValueKey(charactersticsType)]} - ${item[getValueKey(charactersticsSubType)]}`}\r\n removable\r\n onDelete={() => onDelete(item)}\r\n />\r\n ))}\r\n </Stack>\r\n }\r\n />\r\n </GridItem>\r\n );\r\n })}\r\n </GridContainer>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default React.memo(PhysicalCharacteristicsPanel);\r\n","import React from \"react\";\r\nimport type { physicalDescriptionProps } from \"./definations/physicalDescriptionTypes\";\r\nimport PhysicalDescriptionController from \"./controller/physicalDescriptionController\";\r\nimport { Stack } from \"@mui/system\";\r\nimport GridContainer from \"ui/grid/GridContainer\";\r\nimport GridItem from \"ui/grid/GridItem\";\r\nimport SelectInputField from \"ui/dropdown/SelectInputField\";\r\nimport { MASTER_API_END_POINT } from \"constants/apiEndPoints\";\r\nimport { MASTER_DATA_KEYS, MasterCodeType } from \"constants/masterCodes\";\r\nimport { PhysicalDescLookUp } from \"./definations/physicalDescriptionConstants\";\r\nimport HeightRangePanel from \"./components/HeightRangePanel\";\r\nimport IdentificationMarksPanel from \"./components/IdentificationMarksPanel\";\r\nimport PhysicalCharacteristicsPanel from \"./components/PhysicalCharacteristicsPanel\";\r\n\r\nconst PhysicalDescription = (props: physicalDescriptionProps) => {\r\n const { parentSliceName, physicalDescState, onChangeMaster } = PhysicalDescriptionController(props);\r\n\r\n const { fieldsName, submitJson, defaultsRules, fieldError } = physicalDescState;\r\n\r\n const { bodyBuildType, bodyComplexionType } = fieldsName;\r\n\r\n return (\r\n <Stack sx={{ gap: 2 }}>\r\n <GridContainer>\r\n <GridItem>\r\n <SelectInputField\r\n id={bodyBuildType}\r\n label={defaultsRules[bodyBuildType]?.label ?? \"\"}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHYSCL_FEATURES,\r\n [MASTER_DATA_KEYS.CODE]: PhysicalDescLookUp.Body_Build_Type,\r\n }}\r\n fieldvalue={submitJson[bodyBuildType]}\r\n onChange={onChangeMaster}\r\n validation={defaultsRules[bodyBuildType]}\r\n helperText={fieldError[bodyBuildType]}\r\n disabled={props.isViewMode}\r\n />\r\n </GridItem>\r\n <GridItem>\r\n <SelectInputField\r\n id={bodyComplexionType}\r\n label={defaultsRules[bodyComplexionType]?.label ?? \"\"}\r\n apiendpoint={MASTER_API_END_POINT}\r\n requestbody={{\r\n masterCd: MasterCodeType.PHYSCL_FEATURES,\r\n [MASTER_DATA_KEYS.CODE]: PhysicalDescLookUp.Body_Complxion_Type,\r\n }}\r\n fieldvalue={submitJson[bodyComplexionType]}\r\n onChange={onChangeMaster}\r\n validation={defaultsRules[bodyComplexionType]}\r\n helperText={fieldError[bodyComplexionType]}\r\n disabled={props.isViewMode}\r\n />\r\n </GridItem>\r\n </GridContainer>\r\n <HeightRangePanel\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isViewMode={props.isViewMode}\r\n />\r\n <IdentificationMarksPanel\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isViewMode={props.isViewMode}\r\n />\r\n <PhysicalCharacteristicsPanel\r\n rootSliceName={props.rootSliceName}\r\n parentSliceName={parentSliceName}\r\n isViewMode={props.isViewMode}\r\n />\r\n </Stack>\r\n );\r\n};\r\n\r\nexport default React.memo(PhysicalDescription);\r\n","import { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\nimport { VALIDATION_MAX_LENGTH_ENUM, VALIDATION_MIN_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\n\r\nexport const DressTypeFields = () => {\r\n return {\r\n dressType: \"dressForCd\",\r\n wormType: \"dressTypeCd\",\r\n wormItem: \"dressSubtypeCd\",\r\n otherDressDetails: \"othrDressDtls\",\r\n dressTypeList: PHYSICAL_DESCRIPTION_CONSTANTS.DressTypeList,\r\n } as const;\r\n};\r\n\r\nexport type DressTypeFieldsType = ReturnType<typeof DressTypeFields>;\r\n\r\nexport const DressTypeDTO = (isRequired: boolean = false) => {\r\n const fieldsName: DressTypeFieldsType = DressTypeFields();\r\n\r\n const { REQUIRED, LABEL, TYPE, MIN_LENGTH, LENGTH } = DefaultRulesEnum;\r\n\r\n const defaultsRules = {\r\n [fieldsName.dressType]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.RADIO,\r\n [LABEL]: \"strDressType\",\r\n },\r\n [fieldsName.wormType]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strwornType\",\r\n },\r\n [fieldsName.wormItem]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strWornItem\",\r\n },\r\n [fieldsName.otherDressDetails]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strOtherDressDetails\",\r\n [MIN_LENGTH]: VALIDATION_MIN_LENGTH_ENUM.TEXT10,\r\n [LENGTH]: VALIDATION_MAX_LENGTH_ENUM.TEXT200,\r\n },\r\n };\r\n\r\n type jsonType = FieldObject<string>;\r\n\r\n return {\r\n ...getBaseDTO(isRequired),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {} as jsonType,\r\n dtoName: PHYSICAL_DESCRIPTION_CONSTANTS.DressTypeDTOName,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type DressTypeDTOType = ReturnType<typeof DressTypeDTO>;\r\n","import { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { DefaultRulesType, DTO, StringValues } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\n\r\nexport const HeightRangeFields = () => {\r\n return {\r\n fromHeightFeet: \"fromHeightFeet\",\r\n fromHeightInch: \"fromHeightInch\",\r\n fromHeightCm: \"heightFromCm\",\r\n toHeightFeet: \"toHeightFeet\",\r\n toHeightInch: \"toHeightInch\",\r\n toHeightCm: \"heightToCm\",\r\n\r\n heightError: \"heightError\"\r\n } as const;\r\n};\r\n\r\nexport type HeightRangeFieldsType = ReturnType<typeof HeightRangeFields>;\r\ntype HeightRangeFieldsValueType = Exclude<StringValues<HeightRangeFieldsType>, \"heightError\">;\r\n\r\nexport const HeightRangeDTO = (isRequired: boolean = false) => {\r\n const fieldsName: HeightRangeFieldsType = HeightRangeFields();\r\n\r\n const { REQUIRED, LABEL, TYPE } = DefaultRulesEnum;\r\n\r\n const defaultsRules : Record<HeightRangeFieldsValueType, DefaultRulesType> = {\r\n [fieldsName.fromHeightFeet]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strFoots\",\r\n },\r\n [fieldsName.fromHeightInch]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strinches\",\r\n },\r\n [fieldsName.toHeightInch]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strinches\",\r\n },\r\n [fieldsName.toHeightFeet]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strFoots\",\r\n },\r\n [fieldsName.fromHeightCm]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"txtDPIHeightCentimeter\",\r\n },\r\n [fieldsName.toHeightCm]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"txtDPIHeightCentimeter\",\r\n },\r\n };\r\n\r\n type jsonType = {\r\n [fieldsName.fromHeightCm]: string | number;\r\n [fieldsName.fromHeightInch]: string | number;\r\n [fieldsName.fromHeightFeet]: string | number;\r\n [fieldsName.toHeightCm]: string | number;\r\n [fieldsName.toHeightInch]: string | number;\r\n [fieldsName.toHeightFeet]: string | number;\r\n };\r\n\r\n return {\r\n ...getBaseDTO(isRequired),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {} as jsonType,\r\n dtoName: PHYSICAL_DESCRIPTION_CONSTANTS.HeightRangeDTOName,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type HeightRangeDTOType = ReturnType<typeof HeightRangeDTO>;\r\n","import { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\n\r\nexport const IdentificationMarksFields = () => {\r\n return {\r\n identificationMark: \"idMarksTypeCd\",\r\n bodypart: \"bodyPartLocCd\",\r\n identityMarkList: PHYSICAL_DESCRIPTION_CONSTANTS.IdentityMarkList,\r\n } as const;\r\n};\r\n\r\nexport type IdentificationMarksFieldsType = ReturnType<typeof IdentificationMarksFields>;\r\n\r\nexport const IdentificationMarksDTO = (isRequired: boolean = false) => {\r\n const fieldsName: IdentificationMarksFieldsType = IdentificationMarksFields();\r\n\r\n const { REQUIRED, LABEL, TYPE } = DefaultRulesEnum;\r\n\r\n const defaultsRules = {\r\n [fieldsName.identificationMark]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strIdentificationMarks\",\r\n },\r\n [fieldsName.bodypart]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strBodyPart\",\r\n },\r\n };\r\n\r\n type idMarksListType = FieldObject<string> & {\r\n [fieldsName.identificationMark]: number;\r\n [fieldsName.bodypart]: number;\r\n };\r\n\r\n type jsonType = idMarksListType & {\r\n [fieldsName.identityMarkList]: ({ id: string | number } & idMarksListType)[];\r\n };\r\n\r\n return {\r\n ...getBaseDTO(isRequired),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {\r\n [fieldsName.identityMarkList]: [],\r\n } as unknown as jsonType,\r\n displayJson: {\r\n [fieldsName.identityMarkList]: [],\r\n } as unknown as jsonType,\r\n dtoName: PHYSICAL_DESCRIPTION_CONSTANTS.IdentificationMarksDTOName,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type IdentificationMarksDTOType = ReturnType<typeof IdentificationMarksDTO>;\r\n","import { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { DTO, FieldObject } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\n\r\nexport const PhysicalCharacteristicsFields = () => {\r\n return {\r\n category: \"phyFeatCategoryCd\",\r\n charactersticsType: \"phyFeatureMajCd\",\r\n charactersticsSubType: \"phyFeatureMinCd\",\r\n physicalCharacteristicsList: PHYSICAL_DESCRIPTION_CONSTANTS.PhysicalCharacteristicsList,\r\n } as const;\r\n};\r\n\r\nexport type PhysicalCharacteristicsFieldsType = ReturnType<typeof PhysicalCharacteristicsFields>;\r\n\r\nexport const PhysicalCharacteristicsDTO = (isRequired: boolean = false) => {\r\n const fieldsName: PhysicalCharacteristicsFieldsType = PhysicalCharacteristicsFields();\r\n\r\n const { REQUIRED, LABEL, TYPE } = DefaultRulesEnum;\r\n\r\n const defaultsRules = {\r\n [fieldsName.category]: { type: FieldEnum.RADIO, required: isRequired, [LABEL]: \"strSelectCategory\" },\r\n [fieldsName.charactersticsType]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strcharacteristic\",\r\n },\r\n [fieldsName.charactersticsSubType]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strCharacteristicsDetails\",\r\n },\r\n };\r\n\r\n type phyCharsListType = FieldObject<string> & {\r\n [fieldsName.category]: number;\r\n [fieldsName.charactersticsType]: number;\r\n [fieldsName.charactersticsSubType]: number;\r\n };\r\n\r\n type jsonType = phyCharsListType & {\r\n [fieldsName.physicalCharacteristicsList]: ({ id: string | number } & phyCharsListType)[];\r\n };\r\n\r\n return {\r\n ...getBaseDTO(isRequired),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {\r\n [fieldsName.physicalCharacteristicsList]: [],\r\n } as unknown as jsonType,\r\n displayJson: {\r\n [fieldsName.physicalCharacteristicsList]: [],\r\n } as unknown as jsonType,\r\n dtoName: PHYSICAL_DESCRIPTION_CONSTANTS.PhysicalCharactersticsDTOName,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type PhysicalCharacteristicsDTOType = ReturnType<typeof PhysicalCharacteristicsDTO>;\r\n","import { DefaultRulesEnum, FieldEnum } from \"libs/shared/enums/common-enums\";\r\nimport { PHYSICAL_DESCRIPTION_CONSTANTS } from \"../definations/physicalDescriptionConstants\";\r\nimport { HeightRangeDTO } from \"./HeightRangeDTO\";\r\nimport { IdentificationMarksDTO } from \"./IdentificationMarksDTO\";\r\nimport { PhysicalCharacteristicsDTO } from \"./PhysicalCharacteristicsDTO\";\r\nimport type { FieldObject, DTO } from \"libs/shared/types/common-types\";\r\nimport { getBaseDTO } from \"utils/commonFunctions\";\r\nimport { VALIDATION_MIN_LENGTH_ENUM, VALIDATION_MAX_LENGTH_ENUM } from \"libs/shared/enums/validation-enums\";\r\nimport { DTONames } from \"constants/dtoNames\";\r\n\r\nconst { HeightRangeDTOName, IdentificationMarksDTOName, PhysicalCharactersticsDTOName } =\r\n PHYSICAL_DESCRIPTION_CONSTANTS;\r\n\r\nexport const PhysicalDescriptionFields = (isRequired: boolean = false, gridsRequired: boolean = false) => {\r\n return {\r\n bodyBuildType: \"bodyBuildTypeCd\",\r\n bodyComplexionType: \"bodyComplexionTypeCd\",\r\n phyDescOtherInfo: \"otherPhysicalDetails\",\r\n\r\n [HeightRangeDTOName]: HeightRangeDTO(isRequired),\r\n [IdentificationMarksDTOName]: IdentificationMarksDTO(gridsRequired),\r\n [PhysicalCharactersticsDTOName]: PhysicalCharacteristicsDTO(gridsRequired),\r\n };\r\n};\r\n\r\nexport type PhysicalDescriptionFieldsType = ReturnType<typeof PhysicalDescriptionFields>;\r\n\r\nexport const PhysicalDescriptionDTO = (isRequired: boolean = false, gridsRequired: boolean = false) => {\r\n const fieldsName: PhysicalDescriptionFieldsType = PhysicalDescriptionFields(isRequired, gridsRequired);\r\n\r\n const { REQUIRED, LABEL, TYPE, MIN_LENGTH, MAX_LENGTH } = DefaultRulesEnum;\r\n\r\n const defaultsRules = {\r\n [fieldsName.bodyBuildType]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strBodyBuildType\",\r\n },\r\n [fieldsName.bodyComplexionType]: {\r\n [REQUIRED]: isRequired,\r\n [TYPE]: FieldEnum.SELECT,\r\n [LABEL]: \"strBodyComplexionType\",\r\n },\r\n [fieldsName.phyDescOtherInfo]: {\r\n [REQUIRED]: false,\r\n [TYPE]: FieldEnum.TEXT,\r\n [LABEL]: \"strOthersIfAny\",\r\n [MIN_LENGTH]: VALIDATION_MIN_LENGTH_ENUM.TEXT10,\r\n [MAX_LENGTH]: VALIDATION_MAX_LENGTH_ENUM.TEXT5000,\r\n },\r\n };\r\n\r\n type jsonType = FieldObject<string> & {\r\n [fieldsName.bodyBuildType]: number;\r\n [fieldsName.bodyComplexionType]: number;\r\n };\r\n\r\n return {\r\n ...getBaseDTO(isRequired, gridsRequired),\r\n fieldsName,\r\n defaultsRules,\r\n submitJson: {} as jsonType,\r\n dtoName: DTONames.PHYSICAL_DESCRIPTION,\r\n } satisfies DTO;\r\n};\r\n\r\nexport type PhysicalDescriptionDTOType = ReturnType<typeof PhysicalDescriptionDTO>;\r\n","import { StatusEnum } from \"libs/shared/enums/common-enums\";\r\nimport type { StatusChipProps } from \"./StatusChip.type\";\r\nimport { Chip } from \"@mui/material\";\r\nimport React from \"react\";\r\n\r\nconst StatusChip = ({status}: StatusChipProps) => {\r\n const getChipStyle = () => {\r\n switch (status.toUpperCase()) {\r\n case StatusEnum.REGISTERED:\r\n return {\r\n bgcolor: \"#E3F2FD\",\r\n color: \"#1565C0\",\r\n borderColor: \"#BBDEFB\",\r\n };\r\n\r\n case StatusEnum.PENDING:\r\n return {\r\n bgcolor: \"#FFF8E1\",\r\n color: \"#8D6E00\",\r\n borderColor: \"#FFE082\",\r\n };\r\n\r\n case StatusEnum.MODIFICATION_REQUESTED:\r\n return {\r\n bgcolor: \"#F3E8FF\",\r\n color: \"#6B21A8\",\r\n borderColor: \"#D8B4FE\",\r\n };\r\n\r\n case StatusEnum.REJECTED:\r\n return {\r\n bgcolor: \"#FEE2E2\",\r\n color: \"#B91C1C\",\r\n borderColor: \"#FCA5A5\",\r\n };\r\n\r\n case StatusEnum.APPROVED:\r\n return {\r\n bgcolor: \"#DCFCE7\",\r\n color: \"#15803D\",\r\n borderColor: \"#86EFAC\",\r\n };\r\n\r\n default:\r\n return {\r\n bgcolor: \"#F3F4F6\",\r\n color: \"#374151\",\r\n borderColor: \"#D1D5DB\",\r\n };\r\n }\r\n };\r\n\r\n return (\r\n <Chip\r\n label={status}\r\n size=\"small\"\r\n sx={{\r\n minWidth: 90,\r\n border: \"1px solid\",\r\n borderRadius: \"20px\",\r\n fontWeight: 500,\r\n textTransform: \"capitalize\",\r\n ...getChipStyle(),\r\n }}\r\n />\r\n );\r\n}\r\n\r\nexport default React.memo(StatusChip)","import type { AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteInputChangeReason } from \"@mui/material/Autocomplete\";\r\nimport type { SxProps } from \"@mui/system\";\r\nimport type { Breakpoint, Theme } from \"@mui/system/createTheme\";\r\nimport type { MASTER_DATA_KEYS } from \"constants/masterCodes\";\r\nimport type { AddressTypeEnum, ApiMethodEnum, DefaultRulesEnum, EConfirmationModalType, FieldEnum, MenuTextColorEnum } from \"../enums/common-enums\";\r\nimport type { FieldValue } from \"./sharedFormActionTypes\";\r\nimport type { CheckboxValue, SingleCheckboxProps } from \"ui/checkbox/checkboxTypes\";\r\nimport type { ButtonProps, ChipProps, CSSProperties } from \"@mui/material\"; \r\n\r\nimport type { ReactNode } from \"react\";\r\nimport {\r\n type TypographyProps as MuiTypographyProps,\r\n} from \"@mui/material\";\r\nimport type { StepConfig } from \"ui/stepper/types/stepperTypes\";\r\n\r\nexport type StringifyKeys<T> = {\r\n [K in keyof T]: K extends `${string}${\"Cd\" | \"Id\"}` ? string : T[K];\r\n};\r\n\r\nexport type ObjectValueOf<T> = T[keyof T];\r\n\r\nexport type DefaultRulesType = {\r\n [DefaultRulesEnum.LABEL]: string;\r\n [DefaultRulesEnum.REQUIRED]: boolean;\r\n [DefaultRulesEnum.TYPE]: FieldEnum;\r\n [DefaultRulesEnum.MIN_LENGTH]?: number;\r\n [DefaultRulesEnum.MAX_LENGTH]?: number;\r\n [DefaultRulesEnum.AGE_BETWEEN]?: number[];\r\n [DefaultRulesEnum.IS_CHECK_CHARACTERS]?: boolean;\r\n [DefaultRulesEnum.IS_ALLOWED_OR_NOT_CHARACTERS]?: boolean;\r\n [DefaultRulesEnum.LENGTH]?: number;\r\n [DefaultRulesEnum.NOT_ALLOWED_STRING]?: string;\r\n [DefaultRulesEnum.ALLOWED_STRING]?: RegExp;\r\n [DefaultRulesEnum.FROM_VALUE]?: string;\r\n [DefaultRulesEnum.DISABLED]?: boolean;\r\n [DefaultRulesEnum.ISDISABLED]?: boolean;\r\n [DefaultRulesEnum.INPUT_MODE]?: \"text\" | \"numeric\" | \"decimal\" | \"tel\" | \"email\" | \"url\" | \"search\";\r\n [DefaultRulesEnum.VALIDATE_SPECIFIC_CHARS]?: boolean;\r\n [DefaultRulesEnum.NOT_ALLOWED_SPECIFIC_CHARS]?: string;\r\n [DefaultRulesEnum.MAX_VALUE]?: string | number;\r\n [DefaultRulesEnum.IS_NOT_ALLOWED_CHARACTERS]?: boolean;\r\n [DefaultRulesEnum.EXTRA_REGEX]?: string;\r\n [DefaultRulesEnum.MINIMUM_DATE]?: string;\r\n [DefaultRulesEnum.MAXIMUM_DATE]?: string;\r\n [DefaultRulesEnum.SERVER_FORMAT]?: string;\r\n [DefaultRulesEnum.CLIENT_FORMAT]?: string;\r\n [DefaultRulesEnum.DEFAULT_VALUE]?: string;\r\n [DefaultRulesEnum.IS_CURRENT_TIME_ACCEPT]?: boolean;\r\n [DefaultRulesEnum.CUSTOM_ERROR]?: string;\r\n customValidation?: (\r\n value: FieldValue\r\n ) => string | void;\r\n};\r\n\r\nexport interface DTO {\r\n fieldsName: FieldObject<string | DTO>;\r\n submitJson: FieldObject;\r\n displayJson: FieldObject;\r\n isValidJson: FieldObject<boolean>;\r\n defaultsRules: FieldObject<DefaultRulesType>;\r\n fieldError: FieldObject<string>;\r\n helperText: FieldObject<string | number>;\r\n dtoName: string;\r\n menuTextColor?: MenuTextColorEnum;\r\n initialArgs?: unknown[];\r\n}\r\n\r\nexport interface CommonProps {\r\n parentSliceName?: string;\r\n rootSliceName: string;\r\n isViewMode?: boolean;\r\n onNext?: () => void;\r\n}\r\n\r\nexport interface NestedComponentProps extends CommonProps {\r\n dtoKey: string;\r\n}\r\n\r\nexport interface FieldState {\r\n id: string | number;\r\n value: unknown;\r\n displayValue: unknown;\r\n error?: string | null;\r\n isValid?: boolean;\r\n count?: number;\r\n type?: FieldEnum;\r\n}\r\n\r\nexport interface ErrorData {\r\n status?: number;\r\n code?: string;\r\n message?: string;\r\n errorMessage?: string;\r\n errors?: string[];\r\n}\r\n\r\nexport interface SelectFieldDefaultDataTypes extends FieldObject {\r\n id?: number | string;\r\n selectoptiontitle?: string;\r\n isSelected?: boolean;\r\n}\r\n\r\nexport interface MasterResponseDataType extends SelectFieldDefaultDataTypes {\r\n lookupMasterSrno?: number;\r\n [MASTER_DATA_KEYS.CODE]: number | string;\r\n [MASTER_DATA_KEYS.VALUE]: string;\r\n hasChild?: string;\r\n}\r\n\r\nexport interface StateDistrictPSDataType extends MasterResponseDataType {\r\n psId: number;\r\n ps: string;\r\n langCd: number;\r\n stateId: number;\r\n state: string;\r\n lgDistrictCd: number;\r\n lgDistrict: string;\r\n subDistrictCd: string | number;\r\n subDistrict: string;\r\n villageCd: string | number;\r\n village: string;\r\n addressTypeCd?: number;\r\n addressType?: string;\r\n pincode: string | number;\r\n districtId?: string | number;\r\n district?: string;\r\n}\r\n\r\nexport interface MasterRequestDataType extends FieldObject<string | number> {\r\n masterCd: string;\r\n lookUpCd: number | string;\r\n}\r\n\r\nexport type FieldObject<T = unknown> = Record<string, T>;\r\n\r\nexport type ResponsiveStyleValue<T> =\r\n | T\r\n | Array<T | null>\r\n | {\r\n [key in Breakpoint]?: T | null;\r\n };\r\n\r\nexport type SelectFieldPropTypes<T> = {\r\n freeSolo?: boolean;\r\n inputValue?: string;\r\n id: string;\r\n defaultValue?: string;\r\n isDefault?: boolean;\r\n label: string;\r\n placeholder?: string;\r\n selectoptiontitlekey?: string;\r\n selectoptionindexkey?: string;\r\n fieldvalue?: FieldValue;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onChange?: (event: React.BaseSyntheticEvent, value: any, reason: AutocompleteChangeReason) => void;\r\n onClose?: (event: React.BaseSyntheticEvent, reason: AutocompleteCloseReason) => void;\r\n inputData?: T[];\r\n apiendpoint?: string;\r\n requestbody?: MasterRequestDataType | FieldObject;\r\n isfirstrun?: boolean;\r\n error?: boolean;\r\n helperText?: string;\r\n validation?: DefaultRulesType;\r\n fieldSize?: \"small\" | \"medium\";\r\n isRefereshedData?: boolean;\r\n mt?: number | string;\r\n sx?: SxProps<Theme>;\r\n autoSx?: SxProps<Theme>;\r\n onInputChange?: (event: React.SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void;\r\n multiple?: boolean;\r\n width?: ResponsiveStyleValue<string | number> | ((theme: Theme) => ResponsiveStyleValue<string | number>) | null;\r\n disabled?: boolean;\r\n masterCdKey?: string;\r\n masterCd?: string | number;\r\n disabledOptions?: Array<T[keyof T]>;\r\n helpertextbg?: string;\r\n apiMethod?: ApiMethodEnum;\r\n options?: T[];\r\n};\r\n\r\nexport interface SelectExtendedPropTypes<T> extends SelectFieldPropTypes<T> {\r\n filterOptions?: (\r\n option: T[],\r\n state: { inputValue: string; getOptionLabel: (option: T) => string; }\r\n ) => T[];\r\n renderOption?: (\r\n props: React.HTMLAttributes<HTMLLIElement>,\r\n option: T,\r\n ) => React.ReactNode;\r\n}\r\n\r\nexport interface ListAndPaginationData<T = GridRowData> {\r\n list: T[],\r\n totalSize: number,\r\n pageCount: number\r\n}\r\n\r\nexport type RadioOptionValue = string | number | boolean;\r\n\r\nexport type AddressMultipleProps = CommonProps & {\r\n isValidationRequired: boolean;\r\n onNext?: () => void;\r\n};\r\n\r\nexport type AddressInfoProps = CommonProps & {\r\n addressType: AddressTypeEnum;\r\n optionalCheckbox?: SingleCheckboxProps<CheckboxValue>;\r\n forHistoryPanel?: boolean\r\n};\r\n\r\nexport type GridRowData = FieldObject & {\r\n id: string | number;\r\n};\r\n\r\nexport type StringValues<T> = {\r\n [K in keyof T]: T[K] extends string ? T[K] : never;\r\n}[keyof T];\r\n\r\nexport type LoadedRecordsType = {\r\n submitRecord: GridRowData | FieldObject | null;\r\n displayRecord: GridRowData | FieldObject | null;\r\n};\r\n\r\nexport type CommonAddressFieldsTypes = {\r\n id: string | number;\r\n addressLine1: string;\r\n addressLine2: string;\r\n addressLine3: string;\r\n countryCd: number;\r\n stateId: number;\r\n lgDistrictCd: number;\r\n psId: number;\r\n subDistrictCd: number;\r\n villageCd: number;\r\n pincode: number;\r\n addressTypeCd: number;\r\n outsideIndiaAddr: string;\r\n isCommAddr: boolean;\r\n isPermAddrSame: boolean;\r\n};\r\n\r\nexport type CommonAddressFieldsTypesDisplay = StringifyKeys<Omit<CommonAddressFieldsTypes, 'addressTypeCd'>> & { addressTypeCd: number };\r\n\r\nexport interface ApiResponse<T> {\r\n message: string;\r\n status: string;\r\n statusCode: number;\r\n errors: string[] | null;\r\n data: T;\r\n}\r\nexport enum PageOf {\r\n ADD = \"ADD\",\r\n VIEW = \"VIEW\",\r\n}\r\nexport interface StatCardProps {\r\n title: string;\r\n value: number | string;\r\n color?: string;\r\n}\r\n\r\nexport interface Service {\r\n id: number;\r\n title: string;\r\n icon: React.ReactNode;\r\n color: string;\r\n bgColor: string;\r\n route: string;\r\n}\r\n\r\nexport interface ServiceCardProps {\r\n service: Service;\r\n onClick: (route: string) => void;\r\n}\r\n\r\nexport interface Application {\r\n id: string;\r\n service: string;\r\n status: \"IN REVIEW\" | \"APPROVED\" | \"ACTION REQUIRED\";\r\n action: string;\r\n}\r\n\r\nexport interface ApplicationTableProps {\r\n applications: Application[];\r\n}\r\n\r\nexport interface DispatchItem {\r\n id: number;\r\n title: string;\r\n description: string;\r\n time: string;\r\n color: string;\r\n icon: React.ReactNode;\r\n}\r\n\r\nexport interface DispatchFeedProps {\r\n items: DispatchItem[];\r\n}\r\n\r\nexport interface WelcomeHeaderProps {\r\n name: string;\r\n activeCases: number;\r\n pendingVerification: number;\r\n}\r\n\r\n\r\nexport type PhysicalCharacteristicsType = GridRowData & FieldObject & {\r\n phyFeatCategoryCd: number;\r\n phyFeatCategory: string;\r\n phyFeatureMajCd: number;\r\n phyFeatureMaj: string;\r\n phyFeatureMinCd: number;\r\n phyFeatureMin: string;\r\n}\r\n\r\nexport interface AppChipProps\r\n extends Omit<\r\n ChipProps,\r\n \"label\" | \"icon\" | \"deleteIcon\"\r\n > {\r\n label: React.ReactNode;\r\n required?: boolean;\r\n tooltip?: string;\r\n variantType?: \"filled\" | \"outlined\" | \"soft\";\r\n startIcon?: React.ReactElement;\r\n endIcon?: React.ReactElement;\r\n removable?: boolean;\r\n backgroundColor?: string;\r\n textColor?: string;\r\n borderColor?: string;\r\n fullWidth?: boolean;\r\n sx?: SxProps<Theme>;\r\n}\r\n\r\nexport interface OutlinedCardProps {\r\n title?: string;\r\n subTitle?: string;\r\n children?: React.ReactNode;\r\n isScrollable?: boolean;\r\n width?: string;\r\n height?: string;\r\n sx?: object;\r\n showNoData?: boolean;\r\n noDataText?: string;\r\n showButton?: boolean;\r\n buttonLabel?: string;\r\n onButtonClick?: () => void;\r\n buttonVariant?: \"contained\" | \"outlined\" | \"text\";\r\n content?: React.ReactNode;\r\n showActions?: boolean;\r\n onEdit?: () => void;\r\n onDelete?: () => void;\r\n disableEdit?: boolean;\r\n disableDelete?: boolean;\r\n showMultipleAddButton?: boolean;\r\n isRequired?: boolean;\r\n}\r\nexport interface ChangePasswordDialogProps {\r\n open: boolean;\r\n onClose: () => void;\r\n}\r\n\r\nexport interface ForgotPasswordProps {\r\n handleClose: () => void;\r\n}\r\n\r\nexport interface ResetPasswordProps {\r\n resetPasswordDto: any;\r\n passwordMatchError: string;\r\n\r\n onChangeResetField: (\r\n event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,\r\n ) => void;\r\n\r\n onNext: () => void;\r\n\r\n handleClose: () => void;\r\n}\r\n\r\nexport interface IconPropType {\r\n showIcon?: boolean;\r\n toolTip?: string;\r\n iconColor?: string;\r\n Component?: React.ReactNode;\r\n isViewMode?: boolean;\r\n customIconClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\r\n}\r\n \r\nexport interface SubmitModalProps {\r\n isOpen: boolean;\r\n type: EConfirmationModalType;\r\n text: string;\r\n onSubmit: (type: EConfirmationModalType) => void;\r\n labelSubmit: string;\r\n textId?: string | number;\r\n textType? : string;\r\n}\r\n\r\nexport interface CommonModalProps {\r\n isOpen: boolean;\r\n onClose?: () => void;\r\n children: React.ReactNode;\r\n showCloseButton?: boolean;\r\n showCloseIcon?: boolean;\r\n alignItems?: ResponsiveStyleValue<CSSProperties['alignItems']>;\r\n justifyContent?: ResponsiveStyleValue<CSSProperties['justifyContent']>;\r\n sx?: SxProps<Theme>\r\n}\r\nexport type VariantType = \"primary\" | \"secondary\" | \"outlined\" | \"contained\";\r\nexport interface AppButtonProps extends ButtonProps {\r\n label?: string | React.ReactNode;\r\n variantType?: VariantType;\r\n leftArrow?: boolean;\r\n rightArrow?: boolean;\r\n bgColor?: string;\r\n textColor?: string;\r\n disableHoverEffect?: boolean;\r\n isMandatory?: boolean;\r\n}\r\n\r\nexport interface CustomHeadingProps {\r\n text: string;\r\n required?: boolean;\r\n sx?: SxProps<Theme>;\r\n}\r\n \r\n\r\nexport type AutoSaveIndicatorProps = {\r\n isSaving?: boolean;\r\n draftNo?: string | number;\r\n onSave?: () => void;\r\n lastSaveTime?: string | null;\r\n isViewMode?: boolean;\r\n startLabel?: string;\r\n startValue?: string;\r\n endLabel?: string;\r\n endValue?: string;\r\n paddingLeft?: string | number;\r\n paddingRight?: string | number;\r\n};\r\nexport interface InfoPairProps {\r\n children: ReactNode;\r\n direction?: ResponsiveStyleValue<\r\n \"row\" | \"row-reverse\" | \"column\" | \"column-reverse\"\r\n >;\r\n align?: ResponsiveStyleValue<\r\n \"flex-start\" | \"center\" | \"flex-end\"\r\n >;\r\n justifyContent?: ResponsiveStyleValue<\r\n | \"center\"\r\n | \"space-around\"\r\n | \"flex-end\"\r\n | \"space-evenly\"\r\n | \"space-between\"\r\n | \"flex-start\"\r\n >;\r\n sx?: SxProps<Theme>;\r\n py?:number;\r\n}\r\n\r\nexport interface InfoPairTextProps {\r\n children: ReactNode;\r\n sx?: SxProps<Theme>;\r\n}\r\n\r\nexport interface TypographyProps\r\n extends Omit<MuiTypographyProps, \"fontSize\"> {\r\n text: string | ReactNode;\r\n fontWeight?: number;\r\n size?: number | string;\r\n fontSize?: number | string;\r\n color?: string;\r\n isRequired?: boolean;\r\n variantType?: \"default\" | \"primary\" | \"secondary\" | \"error\" | \"link\";\r\n onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLSpanElement>;\r\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\r\n}\r\nexport interface MainCardProps\r\n extends Omit<Partial<unknown>, \"props\" | \"defaultComponent\"> {\r\n title: string;\r\n mainTabName?: string;\r\n width?: string | number;\r\n height?: string | number;\r\n children?: React.ReactNode;\r\n stepperComponent?: React.ReactNode;\r\n stepRendererComponent?: React.ReactNode;\r\n isShowClose?: boolean;\r\n isShowPrint?: boolean;\r\n onHeaderClose?: (event: unknown) => void;\r\n onPrint?: () => void;\r\n footer?: React.ReactNode;\r\n contentSX?: SxProps<Theme>;\r\n padding?: number | string;\r\n showAutoSaveIndicator?: boolean;\r\n autoSaveProps?: AutoSaveIndicatorProps;\r\n}\r\n\r\nexport interface HeaderActionsProps {\r\n isShowClose?: boolean;\r\n isShowPrint?: boolean;\r\n onPrint?: () => void;\r\n onHeaderClose?: (event: unknown) => void;\r\n}\r\nexport interface Props {\r\n sections: StepConfig[];\r\n dtoMap: FieldObject<DTO>;\r\n renderSection: (dtoName: string) => React.ReactNode;\r\n onNext?: (dtoKey?: string) => void;\r\n onClear?: (section: StepConfig) => void;\r\n rootSliceName: string;\r\n isViewMode?: boolean;\r\n}\r\n\r\nexport interface HelperTextCommonProps {\r\n text: string;\r\n color?: string;\r\n fontSize?: string | number;\r\n lineHeight?: string | number;\r\n minHeight?: string | number;\r\n mt?: string | number;\r\n sx?: SxProps<Theme>;\r\n}\r\n\r\n"],"x_google_ignoreList":[11,12,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,169,170,171,176,177,178,179,181,182,186,187,188,189,190,191,192,193,194,203,214,216,217,218,220,225,226,227,228,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,265,270,271,272,273,274,275,276,277,278,279,280,281,282,283,290,291,292],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;aAAa,KAAgB,EAC3B,UAAU,WACZ,GAC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b;CACA,cAAc,EACZ,UAAU,UACZ;CACA,cAAc;EACZ,UAAU;EACV,OAAO;CACT;CAEA,OAAO;EACL,UAAU;EACV,WAAW;CACb;CACA,SAAS;EACP,UAAU;EACV,aAAa;EACb,WAAW;CACb;CACA,iBAAiB;EACf,UAAU;EACV,WAAW;CACb;CAEA,GAAG,EACD,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,SAAS,EACP,OAAO,GACT;CACA,YAAY,EACV,OAAO,GACT;CACA,cAAc,EACZ,OAAO,GACT;CACA,eAAe,EACb,OAAO,GACT;CACA,aAAa,EACX,OAAO,GACT;CACA,UAAU,EACR,OAAO,GACT;CACA,UAAU,EACR,OAAO,GACT;CACA,eAAe,EACb,OAAO,GACT;CACA,oBAAoB,EAClB,OAAO,GACT;CACA,kBAAkB,EAChB,OAAO,GACT;CACA,cAAc,EACZ,OAAO,GACT;CACA,mBAAmB,EACjB,OAAO,GACT;CACA,iBAAiB,EACf,OAAO,GACT;CACA,GAAG,EACD,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,IAAI,EACF,OAAO,GACT;CACA,QAAQ,EACN,OAAO,GACT;CACA,WAAW,EACT,OAAO,GACT;CACA,aAAa,EACX,OAAO,GACT;CACA,cAAc,EACZ,OAAO,GACT;CACA,YAAY,EACV,OAAO,GACT;CACA,SAAS,EACP,OAAO,GACT;CACA,SAAS,EACP,OAAO,GACT;CACA,cAAc,EACZ,OAAO,GACT;CACA,mBAAmB,EACjB,OAAO,GACT;CACA,iBAAiB,EACf,OAAO,GACT;CACA,aAAa,EACX,OAAO,GACT;CACA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