@anoki/fse-ui 2.3.0-16-SNAPSHOT43 → 2.3.0-16-SNAPSHOT45

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 (826) hide show
  1. package/dist/components/navigations/HeaderDesktop/HeaderDesktop.css +1 -1
  2. package/dist/index.cjs107.js +1 -1
  3. package/dist/index.cjs140.js +1 -1
  4. package/dist/index.cjs219.js +1 -1
  5. package/dist/index.cjs219.js.map +1 -1
  6. package/dist/index.cjs305.js +1 -1
  7. package/dist/index.cjs306.js +1 -1
  8. package/dist/index.cjs306.js.map +1 -1
  9. package/dist/index.cjs316.js +1 -1
  10. package/dist/index.cjs318.js +1 -1
  11. package/dist/index.cjs319.js +1 -1
  12. package/dist/index.cjs320.js +1 -1
  13. package/dist/index.cjs332.js +1 -1
  14. package/dist/index.cjs342.js +1 -1
  15. package/dist/index.cjs368.js +1 -1
  16. package/dist/index.cjs391.js +1 -1
  17. package/dist/index.cjs392.js +1 -1
  18. package/dist/index.cjs398.js +1 -1
  19. package/dist/index.cjs407.js +1 -1
  20. package/dist/index.cjs409.js +1 -1
  21. package/dist/index.cjs412.js +1 -1
  22. package/dist/index.cjs421.js +1 -1
  23. package/dist/index.cjs429.js +1 -1
  24. package/dist/index.cjs449.js +1 -1
  25. package/dist/index.cjs450.js +1 -1
  26. package/dist/index.cjs481.js +1 -1
  27. package/dist/index.cjs486.js +1 -1
  28. package/dist/index.cjs502.js +1 -1
  29. package/dist/index.cjs503.js +1 -1
  30. package/dist/index.cjs513.js +1 -1
  31. package/dist/index.cjs513.js.map +1 -1
  32. package/dist/index.cjs516.js +1 -1
  33. package/dist/index.cjs516.js.map +1 -1
  34. package/dist/index.cjs517.js +1 -1
  35. package/dist/index.cjs517.js.map +1 -1
  36. package/dist/{index.cjs526.js → index.cjs518.js} +2 -2
  37. package/dist/{index.cjs526.js.map → index.cjs518.js.map} +1 -1
  38. package/dist/{index.cjs527.js → index.cjs519.js} +2 -2
  39. package/dist/{index.cjs527.js.map → index.cjs519.js.map} +1 -1
  40. package/dist/index.cjs520.js +1 -1
  41. package/dist/index.cjs520.js.map +1 -1
  42. package/dist/index.cjs521.js +2 -0
  43. package/dist/index.cjs521.js.map +1 -0
  44. package/dist/index.cjs522.js +2 -0
  45. package/dist/index.cjs522.js.map +1 -0
  46. package/dist/{index.cjs514.js → index.cjs523.js} +1 -1
  47. package/dist/{index.cjs514.js.map → index.cjs523.js.map} +1 -1
  48. package/dist/index.cjs524.js +1 -1
  49. package/dist/index.cjs524.js.map +1 -1
  50. package/dist/index.cjs525.js +1 -1
  51. package/dist/index.cjs525.js.map +1 -1
  52. package/dist/index.cjs529.js +1 -1
  53. package/dist/index.cjs53.js +1 -1
  54. package/dist/index.cjs530.js +2 -0
  55. package/dist/index.cjs530.js.map +1 -0
  56. package/dist/index.cjs531.js +2 -0
  57. package/dist/index.cjs531.js.map +1 -0
  58. package/dist/index.cjs532.js +1 -1
  59. package/dist/index.cjs532.js.map +1 -1
  60. package/dist/index.cjs533.js +1 -1
  61. package/dist/index.cjs533.js.map +1 -1
  62. package/dist/index.cjs534.js +1 -1
  63. package/dist/index.cjs534.js.map +1 -1
  64. package/dist/index.cjs535.js +1 -1
  65. package/dist/index.cjs535.js.map +1 -1
  66. package/dist/index.cjs536.js +1 -1
  67. package/dist/index.cjs536.js.map +1 -1
  68. package/dist/index.cjs537.js +1 -1
  69. package/dist/index.cjs537.js.map +1 -1
  70. package/dist/index.cjs538.js +1 -1
  71. package/dist/index.cjs538.js.map +1 -1
  72. package/dist/index.cjs539.js +1 -1
  73. package/dist/index.cjs539.js.map +1 -1
  74. package/dist/index.cjs54.js +1 -1
  75. package/dist/index.cjs545.js +2 -0
  76. package/dist/index.cjs545.js.map +1 -0
  77. package/dist/index.cjs546.js +1 -1
  78. package/dist/index.cjs546.js.map +1 -1
  79. package/dist/{index.cjs552.js → index.cjs557.js} +2 -2
  80. package/dist/{index.cjs552.js.map → index.cjs557.js.map} +1 -1
  81. package/dist/{index.cjs565.js → index.cjs563.js} +1 -1
  82. package/dist/{index.cjs565.js.map → index.cjs563.js.map} +1 -1
  83. package/dist/index.cjs566.js +1 -1
  84. package/dist/index.cjs566.js.map +1 -1
  85. package/dist/index.cjs567.js +1 -1
  86. package/dist/index.cjs567.js.map +1 -1
  87. package/dist/index.cjs568.js +1 -1
  88. package/dist/index.cjs568.js.map +1 -1
  89. package/dist/index.cjs569.js +1 -1
  90. package/dist/index.cjs569.js.map +1 -1
  91. package/dist/index.cjs570.js +1 -1
  92. package/dist/index.cjs570.js.map +1 -1
  93. package/dist/index.cjs571.js +1 -1
  94. package/dist/index.cjs571.js.map +1 -1
  95. package/dist/index.cjs572.js +1 -1
  96. package/dist/index.cjs572.js.map +1 -1
  97. package/dist/index.cjs573.js +1 -1
  98. package/dist/index.cjs573.js.map +1 -1
  99. package/dist/index.cjs574.js +1 -1
  100. package/dist/index.cjs574.js.map +1 -1
  101. package/dist/index.cjs575.js +1 -1
  102. package/dist/index.cjs575.js.map +1 -1
  103. package/dist/index.cjs576.js +1 -1
  104. package/dist/index.cjs576.js.map +1 -1
  105. package/dist/index.cjs577.js +1 -1
  106. package/dist/index.cjs577.js.map +1 -1
  107. package/dist/index.cjs578.js +1 -1
  108. package/dist/index.cjs578.js.map +1 -1
  109. package/dist/index.cjs579.js +1 -1
  110. package/dist/index.cjs579.js.map +1 -1
  111. package/dist/index.cjs580.js +1 -1
  112. package/dist/index.cjs580.js.map +1 -1
  113. package/dist/index.cjs581.js +1 -1
  114. package/dist/index.cjs581.js.map +1 -1
  115. package/dist/index.cjs582.js +1 -1
  116. package/dist/index.cjs582.js.map +1 -1
  117. package/dist/index.cjs583.js +1 -1
  118. package/dist/index.cjs583.js.map +1 -1
  119. package/dist/index.cjs584.js +1 -1
  120. package/dist/index.cjs584.js.map +1 -1
  121. package/dist/index.cjs585.js +1 -1
  122. package/dist/index.cjs585.js.map +1 -1
  123. package/dist/index.cjs586.js +1 -1
  124. package/dist/index.cjs586.js.map +1 -1
  125. package/dist/index.cjs587.js +1 -1
  126. package/dist/index.cjs587.js.map +1 -1
  127. package/dist/index.cjs588.js +1 -1
  128. package/dist/index.cjs588.js.map +1 -1
  129. package/dist/index.cjs589.js +1 -1
  130. package/dist/index.cjs589.js.map +1 -1
  131. package/dist/index.cjs590.js +1 -1
  132. package/dist/index.cjs590.js.map +1 -1
  133. package/dist/index.cjs591.js +1 -1
  134. package/dist/index.cjs591.js.map +1 -1
  135. package/dist/index.cjs592.js +1 -1
  136. package/dist/index.cjs592.js.map +1 -1
  137. package/dist/index.cjs593.js +1 -1
  138. package/dist/index.cjs593.js.map +1 -1
  139. package/dist/index.cjs594.js +1 -1
  140. package/dist/index.cjs594.js.map +1 -1
  141. package/dist/index.cjs595.js +1 -1
  142. package/dist/index.cjs595.js.map +1 -1
  143. package/dist/index.cjs596.js +1 -1
  144. package/dist/index.cjs596.js.map +1 -1
  145. package/dist/index.cjs597.js +1 -1
  146. package/dist/index.cjs597.js.map +1 -1
  147. package/dist/index.cjs598.js +1 -1
  148. package/dist/index.cjs598.js.map +1 -1
  149. package/dist/index.cjs599.js +1 -1
  150. package/dist/index.cjs599.js.map +1 -1
  151. package/dist/index.cjs600.js +1 -1
  152. package/dist/index.cjs600.js.map +1 -1
  153. package/dist/index.cjs601.js +1 -1
  154. package/dist/index.cjs601.js.map +1 -1
  155. package/dist/index.cjs602.js +1 -1
  156. package/dist/index.cjs602.js.map +1 -1
  157. package/dist/index.cjs603.js +1 -1
  158. package/dist/index.cjs603.js.map +1 -1
  159. package/dist/index.cjs605.js +2 -0
  160. package/dist/index.cjs605.js.map +1 -0
  161. package/dist/index.cjs610.js +1 -1
  162. package/dist/index.cjs610.js.map +1 -1
  163. package/dist/index.cjs611.js +1 -1
  164. package/dist/index.cjs611.js.map +1 -1
  165. package/dist/index.cjs612.js +2 -1
  166. package/dist/index.cjs612.js.map +1 -1
  167. package/dist/index.cjs613.js +8 -1
  168. package/dist/index.cjs613.js.map +1 -1
  169. package/dist/index.cjs614.js +1 -1
  170. package/dist/index.cjs614.js.map +1 -1
  171. package/dist/index.cjs615.js +1 -2
  172. package/dist/index.cjs615.js.map +1 -1
  173. package/dist/index.cjs616.js +6 -8
  174. package/dist/index.cjs616.js.map +1 -1
  175. package/dist/index.cjs617.js +1 -1
  176. package/dist/index.cjs617.js.map +1 -1
  177. package/dist/index.cjs618.js +2 -1
  178. package/dist/index.cjs618.js.map +1 -1
  179. package/dist/index.cjs619.js +3 -6
  180. package/dist/index.cjs619.js.map +1 -1
  181. package/dist/index.cjs620.js +1 -1
  182. package/dist/index.cjs620.js.map +1 -1
  183. package/dist/index.cjs621.js +1 -2
  184. package/dist/index.cjs621.js.map +1 -1
  185. package/dist/index.cjs622.js +1 -3
  186. package/dist/index.cjs622.js.map +1 -1
  187. package/dist/index.cjs623.js +1 -1
  188. package/dist/index.cjs623.js.map +1 -1
  189. package/dist/index.cjs661.js +1 -1
  190. package/dist/index.cjs662.js +1 -1
  191. package/dist/index.cjs663.js +1 -1
  192. package/dist/index.cjs664.js +1 -1
  193. package/dist/index.cjs665.js +1 -1
  194. package/dist/index.cjs670.js +1 -1
  195. package/dist/index.cjs671.js +1 -1
  196. package/dist/index.cjs674.js +1 -1
  197. package/dist/index.cjs675.js +1 -1
  198. package/dist/index.cjs676.js +1 -1
  199. package/dist/index.cjs678.js +1 -1
  200. package/dist/index.cjs679.js +1 -1
  201. package/dist/index.cjs680.js +1 -1
  202. package/dist/index.cjs684.js +1 -1
  203. package/dist/index.cjs689.js +1 -1
  204. package/dist/index.cjs689.js.map +1 -1
  205. package/dist/index.cjs690.js +1 -1
  206. package/dist/index.cjs690.js.map +1 -1
  207. package/dist/index.cjs691.js +1 -1
  208. package/dist/index.cjs691.js.map +1 -1
  209. package/dist/index.cjs692.js +1 -1
  210. package/dist/index.cjs692.js.map +1 -1
  211. package/dist/index.cjs693.js +1 -1
  212. package/dist/index.cjs693.js.map +1 -1
  213. package/dist/index.cjs694.js +1 -1
  214. package/dist/index.cjs694.js.map +1 -1
  215. package/dist/index.cjs695.js +1 -1
  216. package/dist/index.cjs695.js.map +1 -1
  217. package/dist/index.cjs696.js +1 -1
  218. package/dist/index.cjs696.js.map +1 -1
  219. package/dist/index.cjs697.js +1 -1
  220. package/dist/index.cjs697.js.map +1 -1
  221. package/dist/index.cjs698.js +1 -1
  222. package/dist/index.cjs698.js.map +1 -1
  223. package/dist/index.cjs699.js +2 -1
  224. package/dist/index.cjs699.js.map +1 -1
  225. package/dist/index.cjs700.js +1 -1
  226. package/dist/index.cjs700.js.map +1 -1
  227. package/dist/index.cjs701.js +1 -1
  228. package/dist/index.cjs701.js.map +1 -1
  229. package/dist/index.cjs702.js +1 -1
  230. package/dist/index.cjs702.js.map +1 -1
  231. package/dist/index.cjs703.js +1 -1
  232. package/dist/index.cjs703.js.map +1 -1
  233. package/dist/index.cjs704.js +1 -1
  234. package/dist/index.cjs704.js.map +1 -1
  235. package/dist/index.cjs705.js +1 -1
  236. package/dist/index.cjs705.js.map +1 -1
  237. package/dist/index.cjs706.js +1 -1
  238. package/dist/index.cjs706.js.map +1 -1
  239. package/dist/index.cjs707.js +1 -1
  240. package/dist/index.cjs707.js.map +1 -1
  241. package/dist/index.cjs708.js +1 -1
  242. package/dist/index.cjs708.js.map +1 -1
  243. package/dist/index.cjs709.js +1 -1
  244. package/dist/index.cjs709.js.map +1 -1
  245. package/dist/index.cjs710.js +1 -1
  246. package/dist/index.cjs710.js.map +1 -1
  247. package/dist/index.cjs711.js +6 -1
  248. package/dist/index.cjs711.js.map +1 -1
  249. package/dist/index.cjs712.js +1 -1
  250. package/dist/index.cjs712.js.map +1 -1
  251. package/dist/index.cjs713.js +12 -1
  252. package/dist/index.cjs713.js.map +1 -1
  253. package/dist/index.cjs714.js +1 -1
  254. package/dist/index.cjs714.js.map +1 -1
  255. package/dist/index.cjs715.js +1 -1
  256. package/dist/index.cjs715.js.map +1 -1
  257. package/dist/index.cjs716.js +1 -1
  258. package/dist/index.cjs716.js.map +1 -1
  259. package/dist/index.cjs717.js +1 -1
  260. package/dist/index.cjs717.js.map +1 -1
  261. package/dist/index.cjs718.js +1 -1
  262. package/dist/index.cjs718.js.map +1 -1
  263. package/dist/index.cjs719.js +1 -1
  264. package/dist/index.cjs719.js.map +1 -1
  265. package/dist/index.cjs720.js +1 -1
  266. package/dist/index.cjs720.js.map +1 -1
  267. package/dist/index.cjs721.js +1 -1
  268. package/dist/index.cjs721.js.map +1 -1
  269. package/dist/index.cjs722.js +1 -1
  270. package/dist/index.cjs722.js.map +1 -1
  271. package/dist/index.cjs723.js +1 -6
  272. package/dist/index.cjs723.js.map +1 -1
  273. package/dist/index.cjs724.js +1 -1
  274. package/dist/index.cjs724.js.map +1 -1
  275. package/dist/index.cjs725.js +1 -12
  276. package/dist/index.cjs725.js.map +1 -1
  277. package/dist/index.cjs726.js +1 -1
  278. package/dist/index.cjs726.js.map +1 -1
  279. package/dist/index.cjs727.js +1 -1
  280. package/dist/index.cjs727.js.map +1 -1
  281. package/dist/index.cjs728.js +1 -1
  282. package/dist/index.cjs728.js.map +1 -1
  283. package/dist/index.cjs729.js +1 -1
  284. package/dist/index.cjs729.js.map +1 -1
  285. package/dist/index.cjs730.js +1 -1
  286. package/dist/index.cjs730.js.map +1 -1
  287. package/dist/index.cjs731.js +1 -1
  288. package/dist/index.cjs731.js.map +1 -1
  289. package/dist/index.cjs732.js +1 -1
  290. package/dist/index.cjs732.js.map +1 -1
  291. package/dist/index.cjs733.js +1 -1
  292. package/dist/index.cjs733.js.map +1 -1
  293. package/dist/index.cjs734.js +1 -1
  294. package/dist/index.cjs734.js.map +1 -1
  295. package/dist/index.cjs735.js +1 -2
  296. package/dist/index.cjs735.js.map +1 -1
  297. package/dist/index.cjs736.js +1 -1
  298. package/dist/index.cjs736.js.map +1 -1
  299. package/dist/index.cjs737.js +1 -1
  300. package/dist/index.cjs737.js.map +1 -1
  301. package/dist/index.cjs738.js +1 -1
  302. package/dist/index.cjs738.js.map +1 -1
  303. package/dist/index.cjs739.js +1 -1
  304. package/dist/index.cjs739.js.map +1 -1
  305. package/dist/index.cjs740.js +1 -1
  306. package/dist/index.cjs740.js.map +1 -1
  307. package/dist/index.cjs741.js +1 -1
  308. package/dist/index.cjs741.js.map +1 -1
  309. package/dist/index.cjs744.js +1 -1
  310. package/dist/index.cjs747.js +1 -5
  311. package/dist/index.cjs747.js.map +1 -1
  312. package/dist/index.cjs748.js +1 -1
  313. package/dist/index.cjs748.js.map +1 -1
  314. package/dist/index.cjs749.js +1 -1
  315. package/dist/index.cjs749.js.map +1 -1
  316. package/dist/index.cjs750.js +1 -1
  317. package/dist/index.cjs750.js.map +1 -1
  318. package/dist/index.cjs751.js +1 -1
  319. package/dist/index.cjs751.js.map +1 -1
  320. package/dist/index.cjs752.js +1 -1
  321. package/dist/index.cjs752.js.map +1 -1
  322. package/dist/index.cjs753.js +1 -1
  323. package/dist/index.cjs753.js.map +1 -1
  324. package/dist/index.cjs754.js +1 -1
  325. package/dist/index.cjs754.js.map +1 -1
  326. package/dist/index.cjs755.js +1 -1
  327. package/dist/index.cjs755.js.map +1 -1
  328. package/dist/index.cjs756.js +1 -1
  329. package/dist/index.cjs756.js.map +1 -1
  330. package/dist/index.cjs757.js +1 -1
  331. package/dist/index.cjs757.js.map +1 -1
  332. package/dist/index.cjs758.js +1 -1
  333. package/dist/index.cjs758.js.map +1 -1
  334. package/dist/index.cjs759.js +1 -1
  335. package/dist/index.cjs759.js.map +1 -1
  336. package/dist/index.cjs760.js +1 -1
  337. package/dist/index.cjs760.js.map +1 -1
  338. package/dist/index.cjs761.js +1 -1
  339. package/dist/index.cjs762.js +1 -1
  340. package/dist/index.cjs762.js.map +1 -1
  341. package/dist/index.cjs763.js +1 -1
  342. package/dist/index.cjs763.js.map +1 -1
  343. package/dist/index.cjs764.js +5 -1
  344. package/dist/index.cjs764.js.map +1 -1
  345. package/dist/index.cjs765.js +1 -1
  346. package/dist/index.cjs765.js.map +1 -1
  347. package/dist/index.cjs766.js +1 -1
  348. package/dist/index.cjs766.js.map +1 -1
  349. package/dist/index.cjs767.js +1 -1
  350. package/dist/index.cjs767.js.map +1 -1
  351. package/dist/index.cjs768.js +1 -1
  352. package/dist/index.cjs768.js.map +1 -1
  353. package/dist/index.cjs769.js +1 -1
  354. package/dist/index.cjs769.js.map +1 -1
  355. package/dist/index.cjs770.js +1 -1
  356. package/dist/index.cjs770.js.map +1 -1
  357. package/dist/index.cjs771.js +1 -1
  358. package/dist/index.cjs771.js.map +1 -1
  359. package/dist/index.cjs772.js +1 -1
  360. package/dist/index.cjs772.js.map +1 -1
  361. package/dist/index.cjs773.js +1 -1
  362. package/dist/index.cjs773.js.map +1 -1
  363. package/dist/index.cjs774.js +1 -1
  364. package/dist/index.cjs774.js.map +1 -1
  365. package/dist/index.cjs775.js +1 -1
  366. package/dist/index.cjs775.js.map +1 -1
  367. package/dist/index.cjs776.js +1 -1
  368. package/dist/index.cjs776.js.map +1 -1
  369. package/dist/index.cjs782.js +1 -1
  370. package/dist/index.cjs782.js.map +1 -1
  371. package/dist/index.cjs783.js +1 -1
  372. package/dist/index.cjs783.js.map +1 -1
  373. package/dist/index.cjs784.js +1 -1
  374. package/dist/index.cjs784.js.map +1 -1
  375. package/dist/index.cjs789.js +1 -1
  376. package/dist/index.cjs789.js.map +1 -1
  377. package/dist/index.cjs790.js +1 -1
  378. package/dist/index.cjs790.js.map +1 -1
  379. package/dist/index.cjs791.js +1 -1
  380. package/dist/index.cjs791.js.map +1 -1
  381. package/dist/index.cjs792.js +1 -1
  382. package/dist/index.cjs792.js.map +1 -1
  383. package/dist/index.cjs793.js +1 -1
  384. package/dist/index.cjs793.js.map +1 -1
  385. package/dist/index.cjs794.js +1 -1
  386. package/dist/index.cjs794.js.map +1 -1
  387. package/dist/index.cjs795.js +1 -1
  388. package/dist/index.cjs795.js.map +1 -1
  389. package/dist/index.cjs796.js +1 -1
  390. package/dist/index.cjs796.js.map +1 -1
  391. package/dist/index.cjs797.js +1 -1
  392. package/dist/index.cjs797.js.map +1 -1
  393. package/dist/index.cjs798.js +1 -1
  394. package/dist/index.cjs798.js.map +1 -1
  395. package/dist/index.cjs799.js +1 -1
  396. package/dist/index.cjs799.js.map +1 -1
  397. package/dist/index.cjs94.js +1 -1
  398. package/dist/index.d.ts +20 -9
  399. package/dist/index.es107.js +1 -1
  400. package/dist/index.es140.js +1 -1
  401. package/dist/index.es219.js +82 -66
  402. package/dist/index.es219.js.map +1 -1
  403. package/dist/index.es305.js +1 -1
  404. package/dist/index.es306.js +166 -129
  405. package/dist/index.es306.js.map +1 -1
  406. package/dist/index.es316.js +1 -1
  407. package/dist/index.es318.js +1 -1
  408. package/dist/index.es319.js +1 -1
  409. package/dist/index.es320.js +1 -1
  410. package/dist/index.es332.js +4 -4
  411. package/dist/index.es342.js +14 -14
  412. package/dist/index.es368.js +8 -8
  413. package/dist/index.es391.js +1 -1
  414. package/dist/index.es392.js +1 -1
  415. package/dist/index.es398.js +1 -1
  416. package/dist/index.es407.js +1 -1
  417. package/dist/index.es409.js +1 -1
  418. package/dist/index.es412.js +1 -1
  419. package/dist/index.es421.js +7 -7
  420. package/dist/index.es429.js +1 -1
  421. package/dist/index.es449.js +6 -6
  422. package/dist/index.es450.js +2 -2
  423. package/dist/index.es481.js +7 -7
  424. package/dist/index.es486.js +8 -8
  425. package/dist/index.es502.js +1 -1
  426. package/dist/index.es503.js +1 -1
  427. package/dist/index.es513.js +14 -67
  428. package/dist/index.es513.js.map +1 -1
  429. package/dist/index.es516.js +20 -56
  430. package/dist/index.es516.js.map +1 -1
  431. package/dist/index.es517.js +2 -15
  432. package/dist/index.es517.js.map +1 -1
  433. package/dist/index.es518.js +58 -0
  434. package/dist/{index.es526.js.map → index.es518.js.map} +1 -1
  435. package/dist/{index.es527.js → index.es519.js} +2 -2
  436. package/dist/{index.es527.js.map → index.es519.js.map} +1 -1
  437. package/dist/index.es520.js +76 -2
  438. package/dist/index.es520.js.map +1 -1
  439. package/dist/index.es521.js +5 -0
  440. package/dist/index.es521.js.map +1 -0
  441. package/dist/index.es522.js +71 -0
  442. package/dist/index.es522.js.map +1 -0
  443. package/dist/{index.es514.js → index.es523.js} +1 -1
  444. package/dist/{index.es514.js.map → index.es523.js.map} +1 -1
  445. package/dist/index.es524.js +6 -20
  446. package/dist/index.es524.js.map +1 -1
  447. package/dist/index.es525.js +57 -2
  448. package/dist/index.es525.js.map +1 -1
  449. package/dist/index.es529.js +2 -4
  450. package/dist/index.es529.js.map +1 -1
  451. package/dist/index.es53.js +1 -1
  452. package/dist/index.es530.js +14 -0
  453. package/dist/index.es530.js.map +1 -0
  454. package/dist/index.es531.js +55 -0
  455. package/dist/index.es531.js.map +1 -0
  456. package/dist/index.es532.js +124 -10
  457. package/dist/index.es532.js.map +1 -1
  458. package/dist/index.es533.js +131 -48
  459. package/dist/index.es533.js.map +1 -1
  460. package/dist/index.es534.js +13 -124
  461. package/dist/index.es534.js.map +1 -1
  462. package/dist/index.es535.js +60 -126
  463. package/dist/index.es535.js.map +1 -1
  464. package/dist/index.es536.js +34 -14
  465. package/dist/index.es536.js.map +1 -1
  466. package/dist/index.es537.js +13 -67
  467. package/dist/index.es537.js.map +1 -1
  468. package/dist/index.es538.js +9 -34
  469. package/dist/index.es538.js.map +1 -1
  470. package/dist/index.es539.js +50 -15
  471. package/dist/index.es539.js.map +1 -1
  472. package/dist/index.es54.js +1 -1
  473. package/dist/index.es545.js +9 -0
  474. package/dist/index.es545.js.map +1 -0
  475. package/dist/index.es546.js +24 -5
  476. package/dist/index.es546.js.map +1 -1
  477. package/dist/{index.es552.js → index.es557.js} +17 -17
  478. package/dist/{index.es552.js.map → index.es557.js.map} +1 -1
  479. package/dist/{index.es565.js → index.es563.js} +1 -1
  480. package/dist/{index.es565.js.map → index.es563.js.map} +1 -1
  481. package/dist/index.es566.js +2 -83
  482. package/dist/index.es566.js.map +1 -1
  483. package/dist/index.es567.js +6 -2
  484. package/dist/index.es567.js.map +1 -1
  485. package/dist/index.es568.js +10 -2
  486. package/dist/index.es568.js.map +1 -1
  487. package/dist/index.es569.js +5 -13
  488. package/dist/index.es569.js.map +1 -1
  489. package/dist/index.es570.js +5 -5
  490. package/dist/index.es570.js.map +1 -1
  491. package/dist/index.es571.js +3 -3
  492. package/dist/index.es571.js.map +1 -1
  493. package/dist/index.es572.js +1 -1
  494. package/dist/index.es572.js.map +1 -1
  495. package/dist/index.es573.js +3 -3
  496. package/dist/index.es573.js.map +1 -1
  497. package/dist/index.es574.js +3 -3
  498. package/dist/index.es574.js.map +1 -1
  499. package/dist/index.es575.js +3 -3
  500. package/dist/index.es575.js.map +1 -1
  501. package/dist/index.es576.js +3 -3
  502. package/dist/index.es576.js.map +1 -1
  503. package/dist/index.es577.js +3 -3
  504. package/dist/index.es577.js.map +1 -1
  505. package/dist/index.es578.js +3 -3
  506. package/dist/index.es578.js.map +1 -1
  507. package/dist/index.es579.js +3 -3
  508. package/dist/index.es579.js.map +1 -1
  509. package/dist/index.es580.js +1 -1
  510. package/dist/index.es580.js.map +1 -1
  511. package/dist/index.es581.js +3 -3
  512. package/dist/index.es581.js.map +1 -1
  513. package/dist/index.es582.js +3 -3
  514. package/dist/index.es582.js.map +1 -1
  515. package/dist/index.es583.js +5 -5
  516. package/dist/index.es583.js.map +1 -1
  517. package/dist/index.es584.js +9 -5
  518. package/dist/index.es584.js.map +1 -1
  519. package/dist/index.es585.js +4 -8
  520. package/dist/index.es585.js.map +1 -1
  521. package/dist/index.es586.js +3 -3
  522. package/dist/index.es586.js.map +1 -1
  523. package/dist/index.es587.js +3 -3
  524. package/dist/index.es587.js.map +1 -1
  525. package/dist/index.es588.js +3 -3
  526. package/dist/index.es588.js.map +1 -1
  527. package/dist/index.es589.js +3 -3
  528. package/dist/index.es589.js.map +1 -1
  529. package/dist/index.es590.js +10 -5
  530. package/dist/index.es590.js.map +1 -1
  531. package/dist/index.es591.js +5 -10
  532. package/dist/index.es591.js.map +1 -1
  533. package/dist/index.es592.js +3 -3
  534. package/dist/index.es592.js.map +1 -1
  535. package/dist/index.es593.js +3 -3
  536. package/dist/index.es593.js.map +1 -1
  537. package/dist/index.es594.js +3 -3
  538. package/dist/index.es594.js.map +1 -1
  539. package/dist/index.es595.js +3 -3
  540. package/dist/index.es595.js.map +1 -1
  541. package/dist/index.es596.js +3 -3
  542. package/dist/index.es596.js.map +1 -1
  543. package/dist/index.es597.js +10 -4
  544. package/dist/index.es597.js.map +1 -1
  545. package/dist/index.es598.js +4 -10
  546. package/dist/index.es598.js.map +1 -1
  547. package/dist/index.es599.js +1 -1
  548. package/dist/index.es599.js.map +1 -1
  549. package/dist/index.es600.js +8 -5
  550. package/dist/index.es600.js.map +1 -1
  551. package/dist/index.es601.js +16 -8
  552. package/dist/index.es601.js.map +1 -1
  553. package/dist/index.es602.js +10 -16
  554. package/dist/index.es602.js.map +1 -1
  555. package/dist/index.es603.js +2 -11
  556. package/dist/index.es603.js.map +1 -1
  557. package/dist/index.es605.js +86 -0
  558. package/dist/index.es605.js.map +1 -0
  559. package/dist/index.es610.js +34 -44
  560. package/dist/index.es610.js.map +1 -1
  561. package/dist/index.es611.js +5 -13
  562. package/dist/index.es611.js.map +1 -1
  563. package/dist/index.es612.js +540 -205
  564. package/dist/index.es612.js.map +1 -1
  565. package/dist/index.es613.js +704 -171
  566. package/dist/index.es613.js.map +1 -1
  567. package/dist/index.es614.js +69 -5
  568. package/dist/index.es614.js.map +1 -1
  569. package/dist/index.es615.js +8 -553
  570. package/dist/index.es615.js.map +1 -1
  571. package/dist/index.es616.js +18 -711
  572. package/dist/index.es616.js.map +1 -1
  573. package/dist/index.es617.js +75 -68
  574. package/dist/index.es617.js.map +1 -1
  575. package/dist/index.es618.js +68 -8
  576. package/dist/index.es618.js.map +1 -1
  577. package/dist/index.es619.js +48 -19
  578. package/dist/index.es619.js.map +1 -1
  579. package/dist/index.es620.js +43 -74
  580. package/dist/index.es620.js.map +1 -1
  581. package/dist/index.es621.js +13 -68
  582. package/dist/index.es621.js.map +1 -1
  583. package/dist/index.es622.js +216 -47
  584. package/dist/index.es622.js.map +1 -1
  585. package/dist/index.es623.js +174 -29
  586. package/dist/index.es623.js.map +1 -1
  587. package/dist/index.es661.js +2 -2
  588. package/dist/index.es662.js +2 -2
  589. package/dist/index.es663.js +2 -2
  590. package/dist/index.es664.js +1 -1
  591. package/dist/index.es665.js +8 -8
  592. package/dist/index.es670.js +1 -1
  593. package/dist/index.es671.js +2 -2
  594. package/dist/index.es674.js +1 -1
  595. package/dist/index.es675.js +3 -3
  596. package/dist/index.es676.js +3 -3
  597. package/dist/index.es678.js +2 -2
  598. package/dist/index.es679.js +1 -1
  599. package/dist/index.es680.js +1 -1
  600. package/dist/index.es684.js +1 -1
  601. package/dist/index.es689.js +230 -5
  602. package/dist/index.es689.js.map +1 -1
  603. package/dist/index.es690.js +21 -15
  604. package/dist/index.es690.js.map +1 -1
  605. package/dist/index.es691.js +401 -13
  606. package/dist/index.es691.js.map +1 -1
  607. package/dist/index.es692.js +2 -36
  608. package/dist/index.es692.js.map +1 -1
  609. package/dist/index.es693.js +225 -5
  610. package/dist/index.es693.js.map +1 -1
  611. package/dist/index.es694.js +2 -2
  612. package/dist/index.es694.js.map +1 -1
  613. package/dist/index.es695.js +357 -3
  614. package/dist/index.es695.js.map +1 -1
  615. package/dist/index.es696.js +2 -7
  616. package/dist/index.es696.js.map +1 -1
  617. package/dist/index.es697.js +2 -6
  618. package/dist/index.es697.js.map +1 -1
  619. package/dist/index.es698.js +2 -5
  620. package/dist/index.es698.js.map +1 -1
  621. package/dist/index.es699.js +34 -32
  622. package/dist/index.es699.js.map +1 -1
  623. package/dist/index.es700.js +45 -241
  624. package/dist/index.es700.js.map +1 -1
  625. package/dist/index.es701.js +59 -4
  626. package/dist/index.es701.js.map +1 -1
  627. package/dist/index.es702.js +60 -4
  628. package/dist/index.es702.js.map +1 -1
  629. package/dist/index.es703.js +72 -9
  630. package/dist/index.es703.js.map +1 -1
  631. package/dist/index.es704.js +47 -51
  632. package/dist/index.es704.js.map +1 -1
  633. package/dist/index.es705.js +89 -7
  634. package/dist/index.es705.js.map +1 -1
  635. package/dist/index.es706.js +5 -5
  636. package/dist/index.es706.js.map +1 -1
  637. package/dist/index.es707.js +9 -530
  638. package/dist/index.es707.js.map +1 -1
  639. package/dist/index.es708.js +4 -14
  640. package/dist/index.es708.js.map +1 -1
  641. package/dist/index.es709.js +90 -2
  642. package/dist/index.es709.js.map +1 -1
  643. package/dist/index.es710.js +17 -36
  644. package/dist/index.es710.js.map +1 -1
  645. package/dist/index.es711.js +180 -2
  646. package/dist/index.es711.js.map +1 -1
  647. package/dist/index.es712.js +9 -271
  648. package/dist/index.es712.js.map +1 -1
  649. package/dist/index.es713.js +194 -3
  650. package/dist/index.es713.js.map +1 -1
  651. package/dist/index.es714.js +320 -30
  652. package/dist/index.es714.js.map +1 -1
  653. package/dist/index.es715.js +90 -228
  654. package/dist/index.es715.js.map +1 -1
  655. package/dist/index.es716.js +5 -22
  656. package/dist/index.es716.js.map +1 -1
  657. package/dist/index.es717.js +16 -401
  658. package/dist/index.es717.js.map +1 -1
  659. package/dist/index.es718.js +13 -6
  660. package/dist/index.es718.js.map +1 -1
  661. package/dist/index.es719.js +35 -10
  662. package/dist/index.es719.js.map +1 -1
  663. package/dist/index.es720.js +5 -4
  664. package/dist/index.es720.js.map +1 -1
  665. package/dist/index.es721.js +2 -90
  666. package/dist/index.es721.js.map +1 -1
  667. package/dist/index.es722.js +3 -18
  668. package/dist/index.es722.js.map +1 -1
  669. package/dist/index.es723.js +6 -179
  670. package/dist/index.es723.js.map +1 -1
  671. package/dist/index.es724.js +6 -10
  672. package/dist/index.es724.js.map +1 -1
  673. package/dist/index.es725.js +5 -194
  674. package/dist/index.es725.js.map +1 -1
  675. package/dist/index.es726.js +32 -320
  676. package/dist/index.es726.js.map +1 -1
  677. package/dist/index.es727.js +238 -88
  678. package/dist/index.es727.js.map +1 -1
  679. package/dist/index.es728.js +4 -2
  680. package/dist/index.es728.js.map +1 -1
  681. package/dist/index.es729.js +4 -224
  682. package/dist/index.es729.js.map +1 -1
  683. package/dist/index.es730.js +10 -2
  684. package/dist/index.es730.js.map +1 -1
  685. package/dist/index.es731.js +52 -353
  686. package/dist/index.es731.js.map +1 -1
  687. package/dist/index.es732.js +8 -2
  688. package/dist/index.es732.js.map +1 -1
  689. package/dist/index.es733.js +6 -2
  690. package/dist/index.es733.js.map +1 -1
  691. package/dist/index.es734.js +532 -2
  692. package/dist/index.es734.js.map +1 -1
  693. package/dist/index.es735.js +14 -34
  694. package/dist/index.es735.js.map +1 -1
  695. package/dist/index.es736.js +2 -46
  696. package/dist/index.es736.js.map +1 -1
  697. package/dist/index.es737.js +35 -57
  698. package/dist/index.es737.js.map +1 -1
  699. package/dist/index.es738.js +2 -61
  700. package/dist/index.es738.js.map +1 -1
  701. package/dist/index.es739.js +260 -61
  702. package/dist/index.es739.js.map +1 -1
  703. package/dist/index.es740.js +3 -52
  704. package/dist/index.es740.js.map +1 -1
  705. package/dist/index.es741.js +30 -90
  706. package/dist/index.es741.js.map +1 -1
  707. package/dist/index.es744.js +2 -2
  708. package/dist/index.es747.js +2 -40
  709. package/dist/index.es747.js.map +1 -1
  710. package/dist/index.es748.js +11 -2
  711. package/dist/index.es748.js.map +1 -1
  712. package/dist/index.es749.js +10 -4
  713. package/dist/index.es749.js.map +1 -1
  714. package/dist/index.es750.js +54 -6
  715. package/dist/index.es750.js.map +1 -1
  716. package/dist/index.es751.js +2 -16
  717. package/dist/index.es751.js.map +1 -1
  718. package/dist/index.es752.js +2 -2
  719. package/dist/index.es752.js.map +1 -1
  720. package/dist/index.es753.js +145 -2
  721. package/dist/index.es753.js.map +1 -1
  722. package/dist/index.es754.js +2 -2
  723. package/dist/index.es754.js.map +1 -1
  724. package/dist/index.es755.js +2 -2
  725. package/dist/index.es755.js.map +1 -1
  726. package/dist/index.es756.js +2 -2
  727. package/dist/index.es756.js.map +1 -1
  728. package/dist/index.es757.js +2 -3
  729. package/dist/index.es757.js.map +1 -1
  730. package/dist/index.es758.js +2 -3
  731. package/dist/index.es758.js.map +1 -1
  732. package/dist/index.es759.js +2 -4
  733. package/dist/index.es759.js.map +1 -1
  734. package/dist/index.es760.js +2 -2
  735. package/dist/index.es760.js.map +1 -1
  736. package/dist/index.es761.js +2 -2
  737. package/dist/index.es762.js +112 -2
  738. package/dist/index.es762.js.map +1 -1
  739. package/dist/index.es763.js +2 -112
  740. package/dist/index.es763.js.map +1 -1
  741. package/dist/index.es764.js +40 -2
  742. package/dist/index.es764.js.map +1 -1
  743. package/dist/index.es765.js +2 -11
  744. package/dist/index.es765.js.map +1 -1
  745. package/dist/index.es766.js +4 -10
  746. package/dist/index.es766.js.map +1 -1
  747. package/dist/index.es767.js +6 -54
  748. package/dist/index.es767.js.map +1 -1
  749. package/dist/index.es768.js +16 -2
  750. package/dist/index.es768.js.map +1 -1
  751. package/dist/index.es769.js +2 -2
  752. package/dist/index.es769.js.map +1 -1
  753. package/dist/index.es770.js +2 -145
  754. package/dist/index.es770.js.map +1 -1
  755. package/dist/index.es771.js +2 -2
  756. package/dist/index.es771.js.map +1 -1
  757. package/dist/index.es772.js +2 -2
  758. package/dist/index.es772.js.map +1 -1
  759. package/dist/index.es773.js +2 -2
  760. package/dist/index.es773.js.map +1 -1
  761. package/dist/index.es774.js +3 -2
  762. package/dist/index.es774.js.map +1 -1
  763. package/dist/index.es775.js +3 -2
  764. package/dist/index.es775.js.map +1 -1
  765. package/dist/index.es776.js +4 -2
  766. package/dist/index.es776.js.map +1 -1
  767. package/dist/index.es782.js +2 -4
  768. package/dist/index.es782.js.map +1 -1
  769. package/dist/index.es783.js +88 -3
  770. package/dist/index.es783.js.map +1 -1
  771. package/dist/index.es784.js +108 -2
  772. package/dist/index.es784.js.map +1 -1
  773. package/dist/index.es788.js +2 -2
  774. package/dist/index.es789.js +2 -88
  775. package/dist/index.es789.js.map +1 -1
  776. package/dist/index.es790.js +2 -108
  777. package/dist/index.es790.js.map +1 -1
  778. package/dist/index.es791.js +4 -2
  779. package/dist/index.es791.js.map +1 -1
  780. package/dist/index.es792.js +3 -2
  781. package/dist/index.es792.js.map +1 -1
  782. package/dist/index.es793.js +2 -2
  783. package/dist/index.es793.js.map +1 -1
  784. package/dist/index.es794.js +2 -4
  785. package/dist/index.es794.js.map +1 -1
  786. package/dist/index.es795.js +44 -20
  787. package/dist/index.es795.js.map +1 -1
  788. package/dist/index.es796.js +49 -2
  789. package/dist/index.es796.js.map +1 -1
  790. package/dist/index.es797.js +2 -47
  791. package/dist/index.es797.js.map +1 -1
  792. package/dist/index.es798.js +3 -48
  793. package/dist/index.es798.js.map +1 -1
  794. package/dist/index.es799.js +23 -2
  795. package/dist/index.es799.js.map +1 -1
  796. package/dist/index.es94.js +1 -1
  797. package/package.json +1 -1
  798. package/dist/index.cjs515.js +0 -2
  799. package/dist/index.cjs515.js.map +0 -1
  800. package/dist/index.cjs528.js +0 -2
  801. package/dist/index.cjs528.js.map +0 -1
  802. package/dist/index.cjs540.js +0 -2
  803. package/dist/index.cjs540.js.map +0 -1
  804. package/dist/index.cjs541.js +0 -2
  805. package/dist/index.cjs541.js.map +0 -1
  806. package/dist/index.cjs547.js +0 -2
  807. package/dist/index.cjs547.js.map +0 -1
  808. package/dist/index.cjs604.js +0 -2
  809. package/dist/index.cjs604.js.map +0 -1
  810. package/dist/index.es515.js +0 -10
  811. package/dist/index.es515.js.map +0 -1
  812. package/dist/index.es526.js +0 -58
  813. package/dist/index.es528.js +0 -77
  814. package/dist/index.es528.js.map +0 -1
  815. package/dist/index.es540.js +0 -12
  816. package/dist/index.es540.js.map +0 -1
  817. package/dist/index.es541.js +0 -53
  818. package/dist/index.es541.js.map +0 -1
  819. package/dist/index.es547.js +0 -28
  820. package/dist/index.es547.js.map +0 -1
  821. package/dist/index.es604.js +0 -5
  822. package/dist/index.es604.js.map +0 -1
  823. /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
  824. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  825. /package/dist/components/ui/{DoctorModal/DoctorModal.css → CreateReservationModal/CreateReservationModal.css} +0 -0
  826. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs219.js","sources":["../src/components/ui/SearchGenericV2/index.tsx"],"sourcesContent":["import \"./SearchGenericV2.scss\";\nimport clsx from \"clsx\";\nimport { ChangeEvent, Fragment, useCallback, useMemo, useState } from \"react\";\nimport { Button, Col } from \"@/components\";\nimport { Close, Spinner } from \"@/icons\";\n\nexport type SearchGenericV2Item<T = unknown> = {\n value: string;\n label: string;\n originalData: T;\n};\n\nexport type SearchGenericV2Suggestion<T = unknown> = {\n category: string;\n items: SearchGenericV2Item<T>[];\n};\n\nexport type SearchGenericV2Props<T = unknown> = {\n btnText: string;\n helperText?: string;\n value: string;\n items: SearchGenericV2Suggestion<T>[];\n loading?: boolean;\n emptyLabel?: string;\n minCharsToShow?: number;\n setValue: (value: string) => void;\n setSelectedElement: (item: SearchGenericV2Item<T>) => void;\n className?: string;\n dimensionStrategy?: \"fixed\" | \"auto\";\n};\n\nexport function SearchGenericV2<T = unknown>({\n btnText,\n helperText = \"Cosa vuoi approfondire?\",\n value,\n loading,\n items,\n emptyLabel = \"Nessun risultato disponibile\",\n minCharsToShow = 3,\n setValue,\n setSelectedElement,\n className,\n dimensionStrategy = \"fixed\",\n}: SearchGenericV2Props<T>) {\n const [focus, setFocus] = useState(false);\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n };\n\n const handleSelectItem = (item: SearchGenericV2Item<T>) => {\n setSelectedElement(item);\n setFocus(false);\n };\n\n const highlightMatch = useCallback((text: string, query: string) => {\n if (!query) return text;\n\n const index = text.toLowerCase().indexOf(query.toLowerCase());\n if (index === -1) return text;\n\n const beforeMatch = text.slice(0, index);\n const match = text.slice(index, index + query.length);\n const afterMatch = text.slice(index + query.length);\n\n return (\n <>\n {beforeMatch}\n <span className=\"text-primary fw-bold\">{match}</span>\n {afterMatch}\n </>\n );\n }, []);\n\n const showMenu = useMemo(() => {\n if (!focus) return false;\n if (value.length < minCharsToShow) return false;\n return !(loading && items.every((s) => s.items.length === 0));\n }, [focus, value.length, minCharsToShow, loading, items]);\n\n return (\n <div\n className={clsx(\n \"ui-search-v2\",\n \"br-x4 bg-border-secondary w-full\",\n className,\n { \"ui-search-v2--auto\": dimensionStrategy === \"auto\" },\n )}\n onBlur={() => {\n setTimeout(() => setFocus(false), 150);\n }}\n >\n <div className=\"position-relative w-full\">\n <input\n type=\"search\"\n className={clsx(\n \"ui-search-v2__input\",\n \"fs-6 md-fs-custom text-slate-20 br-x4 w-full pl-x24\",\n value && value.length >= minCharsToShow && \"has-clear-icon\",\n )}\n placeholder={helperText}\n aria-label=\"Barra di ricerca\"\n value={value}\n onChange={handleInputChange}\n onFocus={() => setFocus(true)}\n />\n {loading && <Spinner className=\"ui-search-v2__spinner\" />}\n {value && value.length >= minCharsToShow && !loading && (\n <Close\n className=\"ui-search-v2__clear\"\n onClick={() => {\n handleInputChange({ target: { value: \"\" } } as any);\n }}\n />\n )}\n </div>\n\n <div\n className={clsx(\"ui-search-v2__dropdown shadow position-absolute\", {\n \"py-x24\": showMenu,\n })}\n >\n <Col\n gap=\"x24\"\n fw=\"regular\"\n text=\"secondary\"\n fs=\"6\"\n className=\"ui-search-v2__list overflow-y-auto\"\n >\n {showMenu && (\n <>\n {items.map((group, index) =>\n group.items?.length ? (\n <Fragment key={index}>\n <div>\n <h1 className=\"ui-search-v2__category fw-semibold text-dark fs-6 mb-x8 px-x24\">\n {group.category}\n </h1>\n <ul className=\"list-unstyled\">\n {group.items.map((item) => (\n <li\n key={item.value}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n handleSelectItem(item);\n }}\n className=\"cursor-pointer py-x8 px-x24\"\n >\n {highlightMatch(item.label, value || \"\")}\n </li>\n ))}\n </ul>\n </div>\n </Fragment>\n ) : (\n <Fragment key={index} />\n ),\n )}\n\n {!loading && items.every((s) => s.items.length === 0) ? (\n <p className=\"px-x24 fs-6\">{emptyLabel}</p>\n ) : (\n \"\"\n )}\n </>\n )}\n </Col>\n </div>\n\n <div className=\"ui-search-v2__btn-wrap\">\n <Button\n className={clsx(\n \"ui-search-v2__btn\",\n \"bg-primary text-white fs-7 md-fs-6 fw-semibold br-x4\",\n )}\n onClick={() => {\n handleInputChange({ target: { value } } as any);\n setFocus(true);\n }}\n >\n {btnText}\n </Button>\n </div>\n </div>\n );\n}\n"],"names":["SearchGenericV2","btnText","helperText","value","loading","items","emptyLabel","minCharsToShow","setValue","setSelectedElement","className","dimensionStrategy","focus","setFocus","useState","handleInputChange","e","handleSelectItem","item","highlightMatch","useCallback","text","query","index","beforeMatch","match","afterMatch","jsxs","Fragment","jsx","showMenu","useMemo","clsx","Spinner","Close","Col","group","_a","Button"],"mappings":"mUA+BO,SAASA,EAA6B,CAC3C,QAAAC,EACA,WAAAC,EAAa,0BACb,MAAAC,EACA,QAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,+BACb,eAAAC,EAAiB,EACjB,SAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,kBAAAC,EAAoB,OACtB,EAA4B,CAC1B,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAK,EAElCC,EAAqBC,GAAqC,CAC9DR,EAASQ,EAAE,OAAO,KAAK,CACzB,EAEMC,EAAoBC,GAAiC,CACzDT,EAAmBS,CAAI,EACvBL,EAAS,EAAK,CAChB,EAEMM,EAAiBC,EAAAA,YAAY,CAACC,EAAcC,IAAkB,CAClE,GAAI,CAACA,EAAO,OAAOD,EAEnB,MAAME,EAAQF,EAAK,YAAA,EAAc,QAAQC,EAAM,aAAa,EAC5D,GAAIC,IAAU,G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AA,EAEF,QAAS,IAAM,CACbjB,EAAkB,CAAE,OAAQ,CAAE,MAAAZ,CAAA,EAAgB,EAC9CU,EAAS,EAAI,CACf,EAEC,SAAAZ,CAAA,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"index.cjs219.js","sources":["../src/components/ui/SearchGenericV2/index.tsx"],"sourcesContent":["import \"./SearchGenericV2.scss\";\nimport clsx from \"clsx\";\nimport { ChangeEvent, Fragment, useCallback, useMemo, useState } from \"react\";\nimport { Button, Col } from \"@/components\";\nimport { Close, Spinner } from \"@/icons\";\n\nexport type SearchGenericV2Item<T = unknown> = {\n value: string;\n label: string;\n originalData: T;\n};\n\nexport type SearchGenericV2Suggestion<T = unknown> = {\n category: string;\n items: SearchGenericV2Item<T>[];\n};\n\ntype SearchGenericV2BaseProps<T = unknown> = {\n btnText: string;\n helperText?: string;\n value: string;\n loading?: boolean;\n emptyLabel?: string;\n minCharsToShow?: number;\n setValue: (value: string) => void;\n setSelectedElement: (item: SearchGenericV2Item<T>) => void;\n className?: string;\n dimensionStrategy?: \"fixed\" | \"auto\";\n};\n\ntype SearchGenericV2CategorizedProps<T = unknown> =\n SearchGenericV2BaseProps<T> & {\n mode?: \"categorized\";\n items: SearchGenericV2Suggestion<T>[];\n };\n\ntype SearchGenericV2FlatProps<T = unknown> = SearchGenericV2BaseProps<T> & {\n mode: \"flat\";\n items: SearchGenericV2Item<T>[];\n};\n\nexport type SearchGenericV2Props<T = unknown> =\n | SearchGenericV2CategorizedProps<T>\n | SearchGenericV2FlatProps<T>;\n\nexport function SearchGenericV2<T = unknown>(props: SearchGenericV2Props<T>) {\n const {\n btnText,\n helperText = \"Cosa vuoi approfondire?\",\n value,\n loading,\n items,\n emptyLabel = \"Nessun risultato disponibile\",\n minCharsToShow = 3,\n setValue,\n setSelectedElement,\n className,\n dimensionStrategy = \"fixed\",\n } = props;\n\n const mode =\n \"mode\" in props && props.mode === \"flat\" ? \"flat\" : \"categorized\";\n\n const [focus, setFocus] = useState(false);\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n };\n\n const handleSelectItem = (item: SearchGenericV2Item<T>) => {\n setSelectedElement(item);\n setFocus(false);\n };\n\n const highlightMatch = useCallback((text: string, query: string) => {\n if (!query) return text;\n\n const index = text.toLowerCase().indexOf(query.toLowerCase());\n if (index === -1) return text;\n\n const beforeMatch = text.slice(0, index);\n const match = text.slice(index, index + query.length);\n const afterMatch = text.slice(index + query.length);\n\n return (\n <>\n {beforeMatch}\n <span className=\"text-primary fw-bold\">{match}</span>\n {afterMatch}\n </>\n );\n }, []);\n\n const flatItems = useMemo(\n () => (mode === \"flat\" ? (items as SearchGenericV2Item<T>[]) : []),\n [mode, items],\n );\n\n const categorizedItems = useMemo(\n () =>\n mode === \"categorized\" ? (items as SearchGenericV2Suggestion<T>[]) : [],\n [mode, items],\n );\n\n const hasNoResults = useMemo(() => {\n if (mode === \"flat\") return flatItems.length === 0;\n return categorizedItems.every((s) => s.items.length === 0);\n }, [mode, flatItems, categorizedItems]);\n\n const showMenu = useMemo(() => {\n if (!focus) return false;\n if (value.length < minCharsToShow) return false;\n return !(loading && hasNoResults);\n }, [focus, value.length, minCharsToShow, loading, hasNoResults]);\n\n return (\n <div\n className={clsx(\n \"ui-search-v2\",\n \"br-x4 bg-border-secondary w-full\",\n className,\n { \"ui-search-v2--auto\": dimensionStrategy === \"auto\" },\n )}\n onBlur={() => {\n setTimeout(() => setFocus(false), 150);\n }}\n >\n <div className=\"position-relative w-full\">\n <input\n type=\"search\"\n className={clsx(\n \"ui-search-v2__input\",\n \"fs-6 md-fs-custom text-slate-20 br-x4 w-full pl-x24\",\n value && value.length >= minCharsToShow && \"has-clear-icon\",\n )}\n placeholder={helperText}\n aria-label=\"Barra di ricerca\"\n value={value}\n onChange={handleInputChange}\n onFocus={() => setFocus(true)}\n />\n {loading && <Spinner className=\"ui-search-v2__spinner\" />}\n {value && value.length >= minCharsToShow && !loading && (\n <Close\n className=\"ui-search-v2__clear\"\n onClick={() => {\n handleInputChange({ target: { value: \"\" } } as any);\n }}\n />\n )}\n </div>\n\n <div\n className={clsx(\"ui-search-v2__dropdown shadow position-absolute\", {\n \"py-x24\": showMenu,\n })}\n >\n <Col\n gap=\"x24\"\n fw=\"regular\"\n text=\"secondary\"\n fs=\"6\"\n className=\"ui-search-v2__list overflow-y-auto\"\n >\n {showMenu && (\n <>\n {mode === \"flat\"\n ? flatItems.length > 0 && (\n <ul className=\"list-unstyled\">\n {flatItems.map((item) => (\n <li\n key={item.value}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n handleSelectItem(item);\n }}\n className=\"cursor-pointer py-x8 px-x24\"\n >\n {highlightMatch(item.label, value || \"\")}\n </li>\n ))}\n </ul>\n )\n : categorizedItems.map((group, index) =>\n group.items?.length ? (\n <Fragment key={index}>\n <div>\n <h1 className=\"ui-search-v2__category fw-semibold text-dark fs-6 mb-x8 px-x24\">\n {group.category}\n </h1>\n <ul className=\"list-unstyled\">\n {group.items.map((item) => (\n <li\n key={item.value}\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n handleSelectItem(item);\n }}\n className=\"cursor-pointer py-x8 px-x24\"\n >\n {highlightMatch(item.label, value || \"\")}\n </li>\n ))}\n </ul>\n </div>\n </Fragment>\n ) : (\n <Fragment key={index} />\n ),\n )}\n\n {!loading && hasNoResults ? (\n <p className=\"px-x24 fs-6\">{emptyLabel}</p>\n ) : (\n \"\"\n )}\n </>\n )}\n </Col>\n </div>\n\n <div className=\"ui-search-v2__btn-wrap\">\n <Button\n className={clsx(\n \"ui-search-v2__btn\",\n \"bg-primary text-white fs-7 md-fs-6 fw-semibold br-x4\",\n )}\n onClick={() => {\n handleInputChange({ target: { value } } as any);\n setFocus(true);\n }}\n >\n {btnText}\n </Button>\n </div>\n </div>\n );\n}\n"],"names":["SearchGenericV2","props","btnText","helperText","value","loading","items","emptyLabel","minCharsToShow","setValue","setSelectedElement","className","dimensionStrategy","mode","focus","setFocus","useState","handleInputChange","e","handleSelectItem","item","highlightMatch","useCallback","text","query","index","beforeMatch","match","afterMatch","jsxs","Fragment","jsx","flatItems","useMemo","categorizedItems","hasNoResults","showMenu","clsx","Spinner","Close","Col","group","_a","Button"],"mappings":"mUA6CO,SAASA,EAA6BC,EAAgC,CAC3E,KAAM,CACJ,QAAAC,EACA,WAAAC,EAAa,0BACb,MAAAC,EACA,QAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,+BACb,eAAAC,EAAiB,EACjB,SAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,kBAAAC,EAAoB,OAAA,EAClBX,EAEEY,EACJ,SAAUZ,GAASA,EAAM,OAAS,OAAS,OAAS,cAEhD,CAACa,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAK,EAElCC,EAAqBC,GAAqC,CAC9DT,EAASS,EAAE,OAAO,KAAK,CACzB,EAEMC,EAAoBC,GAAiC,CACzDV,EAAmBU,CAAI,EACvBL,EAAS,EAAK,CAChB,EAEMM,EAAiBC,EAAAA,YAAY,CAACC,EAAcC,IAAkB,CAClE,GAAI,CAACA,EAAO,OAAOD,EAEnB,MAAME,EAAQF,EAAK,YAAA,EAAc,QAAQC,EAAM,aAAa,EAC5D,GAAIC,IAAU,GAAI,OAAOF,EAEzB,MAAMG,EAAcH,EAAK,MAAM,EAAGE,CAAK,EACjCE,EAAQJ,EAAK,MAAME,EAAOA,EAAQD,EAAM,MAAM,EAC9CI,EAAaL,EAAK,MAAME,EAAQD,EAAM,MAAM,EAElD,OACEK,EAAAA,kBAAAA,KAAAC,6BAAA,CACG,SAAA,CAAAJ,EACDK,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,uBAAwB,SAAAJ,EAAM,EAC7CC,CAAA,EACH,CAEJ,EAAG,CAAA,CAAE,EAECI,EAAYC,EAAAA,QAChB,IAAOpB,IAAS,OAAUP,EAAqC,CAAA,EAC/D,CAACO,EAAMP,CAAK,CAAA,EAGR4B,E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EJ,CAAA,CAAA,CAEJ,CAAA,EAGFA,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,yBACb,SAAAA,EAAAA,kBAAAA,IAACY,EAAAA,OAAA,CACC,UAAWN,EAAAA,KACT,oBACA,sDAAA,EAEF,QAAS,IAAM,CACbpB,EAAkB,CAAE,OAAQ,CAAE,MAAAb,CAAA,EAAgB,EAC9CW,EAAS,EAAI,CACf,EAEC,SAAAb,CAAA,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAGN"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderMobile/HeaderMobile.css');const e=require("./index.cjs264.js"),m=require("./index.cjs36.js"),g=require("./index.cjs165.js"),i=require("react"),r=require("./index.cjs266.js"),y=require("./index.cjs517.js"),R=require("./index.cjs91.js");;/* empty css */const w=require("./index.cjs82.js"),C=require("./index.cjs160.js"),N=require("./index.cjs214.js"),k=require("./index.cjs80.js"),q=({shortTitle:p,menuTitle:h="Menù",region:j,asLink:l="a",navigatonItems:b,labels:c,loginLink:v="/",variant:d="default"})=>{const f=l,[n,u]=i.useState(!1),o="main-navigation",x=i.useRef(null);y.useFocusTrap(x,n);const t=i.useCallback(()=>{u(!n)},[n]);i.useEffect(()=>(n?document.body.classList.add("ui-body-overflow-hidden"):document.body.classList.remove("ui-body-overflow-hidden"),()=>{document.body.classList.remove("ui-body-overflow-hidden")}),[n]),i.useEffect(()=>{const s=a=>{a.key==="Escape"&&n&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n,t]);const E=()=>{u(!1)};return e.jsxRuntimeExports.jsxs("div",{className:"sticky-header shadow",children:[e.jsxRuntimeExports.jsx(g.HeaderTopBanner,{asLink:l,shortTitle:p,region:j,variant:d}),e.jsxRuntimeExports.jsxs(R.Container,{className:r.clsx(d==="operator"?"bg-radial":"bg-slate-20 ","min-h-x64 base-row align-items-center justify-content-end"),as:"header",py:"x8",children:[e.jsxRuntimeExports.jsxs(N.Row,{gap:"x24",alignItems:"center",justifyContent:"end",children:[e.jsxRuntimeExports.jsxs(m.Button,{size:"3",bg:"white",textColor:"primary",href:v,asLink:"a",className:"ui-login-button-header-mobile",children:[c.login,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]}),e.jsxRuntimeExports.jsx("button",{"aria-expanded":n,"aria-label":"Apri menu di navigazione",onClick:t,className:"ui-mobile-menu-toggle","aria-controls":o,children:e.jsxRuntimeExports.jsx(C.Hamburguer,{width:40,height:40,color:"white"})})]}),e.jsxRuntimeExports.jsxs("nav",{id:o,"aria-label":"Menu di navigazione",className:r.clsx(n?"ui-mobile-nav-panel":"visually-hidden"),ref:x,children:[e.jsxRuntimeExports.jsxs(w.Col,{className:"ui-mobile-nav-header",children:[e.jsxRuntimeExports.jsxs(m.Button,{size:"4",textColor:"primary",bg:"transparent",onClick:t,"aria-label":"Chiudi menu di navigazione","aria-controls":o,children:[c.closeMenu,e.jsxRuntimeExports.jsx(k.Close,{})]}),e.jsxRuntimeExports.jsx("h2",{className:"fs-3 text-slate-20",children:h})]}),e.jsxRuntimeExports.jsx("ul",{className:"list-style-none p-x16",role:"list",children:b.map((s,a)=>e.jsxRuntimeExports.jsx("li",{className:r.clsx("ui-mobile-nav-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(f,{href:s.href,className:r.clsx("text-decoration-none text-primary fs-5",s.active?"fw-bold":"fw-normal"),onClick:E,target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},a))})]})]})]})};exports.HeaderMobile=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderMobile/HeaderMobile.css');const e=require("./index.cjs264.js"),m=require("./index.cjs36.js"),g=require("./index.cjs165.js"),i=require("react"),r=require("./index.cjs266.js"),y=require("./index.cjs513.js"),R=require("./index.cjs91.js");;/* empty css */const w=require("./index.cjs82.js"),C=require("./index.cjs160.js"),N=require("./index.cjs214.js"),k=require("./index.cjs80.js"),q=({shortTitle:p,menuTitle:h="Menù",region:j,asLink:l="a",navigatonItems:b,labels:c,loginLink:v="/",variant:d="default"})=>{const f=l,[n,u]=i.useState(!1),o="main-navigation",x=i.useRef(null);y.useFocusTrap(x,n);const t=i.useCallback(()=>{u(!n)},[n]);i.useEffect(()=>(n?document.body.classList.add("ui-body-overflow-hidden"):document.body.classList.remove("ui-body-overflow-hidden"),()=>{document.body.classList.remove("ui-body-overflow-hidden")}),[n]),i.useEffect(()=>{const s=a=>{a.key==="Escape"&&n&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n,t]);const E=()=>{u(!1)};return e.jsxRuntimeExports.jsxs("div",{className:"sticky-header shadow",children:[e.jsxRuntimeExports.jsx(g.HeaderTopBanner,{asLink:l,shortTitle:p,region:j,variant:d}),e.jsxRuntimeExports.jsxs(R.Container,{className:r.clsx(d==="operator"?"bg-radial":"bg-slate-20 ","min-h-x64 base-row align-items-center justify-content-end"),as:"header",py:"x8",children:[e.jsxRuntimeExports.jsxs(N.Row,{gap:"x24",alignItems:"center",justifyContent:"end",children:[e.jsxRuntimeExports.jsxs(m.Button,{size:"3",bg:"white",textColor:"primary",href:v,asLink:"a",className:"ui-login-button-header-mobile",children:[c.login,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]}),e.jsxRuntimeExports.jsx("button",{"aria-expanded":n,"aria-label":"Apri menu di navigazione",onClick:t,className:"ui-mobile-menu-toggle","aria-controls":o,children:e.jsxRuntimeExports.jsx(C.Hamburguer,{width:40,height:40,color:"white"})})]}),e.jsxRuntimeExports.jsxs("nav",{id:o,"aria-label":"Menu di navigazione",className:r.clsx(n?"ui-mobile-nav-panel":"visually-hidden"),ref:x,children:[e.jsxRuntimeExports.jsxs(w.Col,{className:"ui-mobile-nav-header",children:[e.jsxRuntimeExports.jsxs(m.Button,{size:"4",textColor:"primary",bg:"transparent",onClick:t,"aria-label":"Chiudi menu di navigazione","aria-controls":o,children:[c.closeMenu,e.jsxRuntimeExports.jsx(k.Close,{})]}),e.jsxRuntimeExports.jsx("h2",{className:"fs-3 text-slate-20",children:h})]}),e.jsxRuntimeExports.jsx("ul",{className:"list-style-none p-x16",role:"list",children:b.map((s,a)=>e.jsxRuntimeExports.jsx("li",{className:r.clsx("ui-mobile-nav-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(f,{href:s.href,className:r.clsx("text-decoration-none text-primary fs-5",s.active?"fw-bold":"fw-normal"),onClick:E,target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},a))})]})]})]})};exports.HeaderMobile=q;
2
2
  //# sourceMappingURL=index.cjs305.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderDesktop/HeaderDesktop.css');const e=require("./index.cjs264.js"),w=require("./index.cjs104.js"),m=require("./index.cjs161.js"),y=require("./index.cjs164.js"),t=require("./index.cjs266.js"),v=require("./index.cjs276.js"),$=require("./index.cjs36.js"),k=require("./index.cjs91.js");;/* empty css */const r=require("./index.cjs214.js"),q=({title:x,region:l,asLink:u="a",labels:h,navigatonItems:j,supportLink:n,loginLink:p="/",shortTitle:c,headerTitleClassname:R,children:E,headerLogoUrl2:d,variant:s="default"})=>{const a=u,g=m.LOGOS.nazionale,b=m.LOGOS[l],o=s==="operator"?"text-white":"text-primary",f=s==="operator"?"text-white":"text-blue-30";return e.jsxRuntimeExports.jsxs("div",{className:t.clsx("sticky-header bg-white",s==="operator"&&"ui-header-desktop-operator"),children:[e.jsxRuntimeExports.jsxs(y.HeaderSlim,{pt:"x16",pb:"x16",display:"flex",justifyContent:"space-between",alignItems:"center",containerClassName:t.clsx(s==="operator"?"ui-slim-operator":"bg-slate-20"),children:[e.jsxRuntimeExports.jsxs(a,{href:"/",className:t.clsx("fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8",s==="default"?"text-white":"text-slate-20"),children:[d&&e.jsxRuntimeExports.jsx("div",{style:{backgroundImage:`url(${d})`},className:"ui-header-item-image"}),c||x,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]}),E]}),e.jsxRuntimeExports.jsxs("header",{className:t.clsx(s==="operator"?"bg-radial":"bg-white"),children:[e.jsxRuntimeExports.jsxs(r.Row,{py:"x20",gap:"x16",alignItems:"center",justifyContent:"space-between",className:"max-h-x116 ui-container",children:[e.jsxRuntimeExports.jsxs(r.Row,{gap:"x16",alignItems:"center",children:[e.jsxRuntimeExports.jsxs(r.Row,{gap:"x16",alignItems:"center",justifyContent:"center",children:[e.jsxRuntimeExports.jsx(g,{height:44,width:27,variant:s}),l!=="nazionale"&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(w.Divider,{bg:"border-divider",direction:"vertical"}),e.jsxRuntimeExports.jsx(b,{width:44,height:44,color:s==="operator"?"lightblue-a03":"white"})]})]}),e.jsxRuntimeExports.jsx("h1",{className:t.clsx(R,"ui-header-title"),children:s==="default"?e.jsxRuntimeExports.jsx(v.Balancer,{children:e.jsxRuntimeExports.jsxs(a,{href:"/",className:"text-decoration-none hover-underline_dark",children:[e.jsxRuntimeExports.jsx("span",{className:"ui-title-line-height",children:x}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]})}):e.jsxRuntimeExports.jsxs(a,{href:"/",className:"text-decoration-none hover-underline_dark",children:[e.jsxRuntimeExports.jsx("span",{className:"ui-title-line-height",children:x}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]})})]}),e.jsxRuntimeExports.jsxs($.Button,{size:"2",href:p,asLink:"a",className:"login-button",variant:s==="operator"?"secondary":"primary",children:[e.jsxRuntimeExports.jsxs("span",{style:{fontSize:14},children:[" ",h.login," "]}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]})]}),e.jsxRuntimeExports.jsx("nav",{"aria-label":"Menu di navigazione",className:"shadow-bottom",children:e.jsxRuntimeExports.jsxs(k.Container,{containerClass:"ui-container",className:"base-row align-items-center justify-content-between max-h-x52",children:[e.jsxRuntimeExports.jsx(r.Row,{as:"ul",className:"list-style-none",role:"list",children:j.map((i,N)=>e.jsxRuntimeExports.jsx("li",{className:t.clsx("py-x12 px-x16 ui-header-desktop-nav-item max-h-x52",i.active&&"active"),children:e.jsxRuntimeExports.jsxs(a,{href:i.href,className:t.clsx("text-decoration-none fs-custom",i.active?`fw-bold ${o}`:`fw-semibold ${o}`),target:i.isNewTab?"_blank":void 0,rel:i.isNewTab?"noopener noreferrer":void 0,children:[i.label,i.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},N))}),n&&e.jsxRuntimeExports.jsxs(a,{href:n.href,className:t.clsx("text-decoration-none fs-custom py-x12 px-x0",n.active?`fw-bold ${f}`:`fw-semibold ${o}`,"ui-header-desktop-support-link",n.active&&"active"),children:[n.label,n.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})]})})]})]})};exports.HeaderDesktop=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderDesktop/HeaderDesktop.css');const e=require("./index.cjs264.js"),w=require("./index.cjs104.js"),m=require("./index.cjs161.js"),t=require("./index.cjs266.js"),y=require("./index.cjs276.js"),v=require("./index.cjs36.js"),$=require("./index.cjs91.js");;/* empty css */const k=require("./index.cjs164.js"),a=require("./index.cjs214.js"),q=({title:o,region:l,asLink:u="a",labels:h,navigatonItems:p,supportLink:n,loginLink:j="/",shortTitle:c,headerTitleClassname:R,children:E,headerLogoUrl2:d,variant:s="default"})=>{const r=u,g=m.LOGOS.nazionale,b=m.LOGOS[l],x=s==="operator"?"text-white":"text-primary",f=s==="operator"?"text-white":"text-blue-30";return e.jsxRuntimeExports.jsxs("div",{className:t.clsx("sticky-header bg-white",s==="operator"&&"ui-header-desktop-operator"),children:[e.jsxRuntimeExports.jsxs(k.HeaderSlim,{pt:"x16",pb:"x16",display:"flex",justifyContent:"space-between",alignItems:"center",containerClassName:t.clsx(s==="operator"?"ui-slim-operator":"bg-slate-20"),children:[e.jsxRuntimeExports.jsxs(r,{href:"/",className:t.clsx("fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8",s==="default"?"text-white":"text-slate-20"),children:[d&&e.jsxRuntimeExports.jsx("div",{style:{backgroundImage:`url(${d})`},className:"ui-header-item-image"}),c||o,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]}),E]}),e.jsxRuntimeExports.jsxs("header",{className:t.clsx(s==="operator"?"bg-radial":"bg-white"),children:[e.jsxRuntimeExports.jsxs(a.Row,{py:"x20",gap:"x16",alignItems:"center",justifyContent:"space-between",className:"max-h-x116 ui-container",children:[e.jsxRuntimeExports.jsxs(a.Row,{gap:"x16",alignItems:"center",children:[e.jsxRuntimeExports.jsxs(a.Row,{gap:"x16",alignItems:"center",justifyContent:"center",children:[e.jsxRuntimeExports.jsx(g,{height:44,width:27,variant:s}),l!=="nazionale"&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(w.Divider,{bg:"border-divider",direction:"vertical"}),e.jsxRuntimeExports.jsx(b,{width:44,height:44,color:s==="operator"?"lightblue-a03":"white"})]})]}),e.jsxRuntimeExports.jsx("h1",{className:t.clsx(R,"ui-header-title"),children:s==="default"?e.jsxRuntimeExports.jsx(y.Balancer,{children:e.jsxRuntimeExports.jsxs(r,{href:"/",className:"text-decoration-none hover-underline_dark",children:[e.jsxRuntimeExports.jsx("span",{className:"ui-title-line-height",children:o}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]})}):e.jsxRuntimeExports.jsxs(r,{href:"/",className:"text-decoration-none hover-underline_dark",children:[e.jsxRuntimeExports.jsx("span",{className:"ui-title-line-height",children:o}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Vai alla homepage"})]})})]}),e.jsxRuntimeExports.jsxs(v.Button,{size:"2",href:j,asLink:"a",className:"login-button",variant:s==="operator"?"secondary":"primary",children:[e.jsxRuntimeExports.jsxs("span",{style:{fontSize:14},children:[" ",h.login," "]}),e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]})]}),e.jsxRuntimeExports.jsx("nav",{"aria-label":"Menu di navigazione",className:"shadow-bottom",children:e.jsxRuntimeExports.jsxs($.Container,{containerClass:"ui-container",className:"base-row align-items-center justify-content-between max-h-x52",children:[e.jsxRuntimeExports.jsx(a.Row,{as:"ul",className:"list-style-none",role:"list",children:p.map((i,N)=>e.jsxRuntimeExports.jsx("li",{className:t.clsx("py-x12 px-x16 ui-header-desktop-nav-item max-h-x52",i.active&&"active"),children:e.jsxRuntimeExports.jsxs(r,{href:i.href,className:t.clsx("text-decoration-none fs-custom",i.active?`fw-bold ${x}`:`fw-semibold ${x}`),target:i.isNewTab?"_blank":void 0,rel:i.isNewTab?"noopener noreferrer":void 0,children:[i.label,i.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},N))}),n&&e.jsxRuntimeExports.jsxs(r,{href:n.href,className:t.clsx("text-decoration-none fs-custom py-x12 px-x0",n.active?`fw-bold ${f}`:`fw-semibold ${x}`,"ui-header-desktop-support-link",n.active&&(s==="operator"?"active-operator":"active")),children:[n.label,n.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})]})})]})]})};exports.HeaderDesktop=q;
2
2
  //# sourceMappingURL=index.cjs306.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs306.js","sources":["../src/components/navigations/HeaderDesktop/index.tsx"],"sourcesContent":["import { Divider } from \"@/components/ui/Divider\";\nimport { LOGOS, Region } from \"../Header\";\nimport { HeaderSlim } from \"../HeaderSlim\";\nimport clsx from \"clsx\";\nimport { Balancer } from \"react-wrap-balancer\";\nimport { Button } from \"@/components/ui/Button\";\nimport { Container } from \"@/components/ui/Container\";\nimport \"./HeaderDesktop.scss\";\nimport { Row } from \"@/components\";\n\nimport { WithVariant } from \"@/types/variant\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n active?: boolean;\n isNewTab?: boolean;\n};\n\ntype NavigationLabels = {\n closeMenu: string;\n login: string;\n};\n\nexport type HeaderDesktopProps = WithVariant<{\n title: React.ReactNode | string;\n region: Region;\n asLink?: \"a\" | React.ComponentType<any>;\n children?: React.ReactNode;\n labels: NavigationLabels;\n navigatonItems: NavigationItem[];\n supportLink?: NavigationItem;\n loginLink?: string;\n shortTitle?: React.ReactNode;\n headerTitleClassname?: string;\n headerLogoUrl2?: string;\n}>;\n\nexport const HeaderDesktop = ({\n title,\n region,\n asLink = \"a\",\n labels,\n navigatonItems,\n supportLink,\n loginLink = \"/\",\n shortTitle,\n headerTitleClassname,\n children,\n headerLogoUrl2,\n variant = \"default\",\n}: HeaderDesktopProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n const textLinkVariant = variant === \"operator\" ? \"text-white\" : \"text-primary\";\n const activeLinkVariant = variant === \"operator\" ? \"text-white\" : \"text-blue-30\";\n\n return (\n <div className={clsx(\"sticky-header bg-white\", variant === \"operator\" && \"ui-header-desktop-operator\")}>\n <HeaderSlim\n pt=\"x16\"\n pb=\"x16\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n containerClassName={clsx(variant === \"operator\" ? \"ui-slim-operator\" : \"bg-slate-20\")}\n >\n <LinkComponent\n href=\"/\"\n className={clsx(\"fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8\", variant === \"default\" ? \"text-white\" : \"text-slate-20\")}\n >\n {headerLogoUrl2 && (\n <div\n style={{ backgroundImage: `url(${headerLogoUrl2})` }}\n className={\"ui-header-item-image\"}\n ></div>\n )}\n\n {shortTitle ? shortTitle : title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n\n {children}\n </HeaderSlim>\n <header className={clsx(variant === \"operator\" ? \"bg-radial\" : \"bg-white\")}>\n <Row\n py={\"x20\"}\n gap={\"x16\"}\n alignItems=\"center\"\n justifyContent={\"space-between\"}\n className=\"max-h-x116 ui-container\"\n >\n <Row gap={\"x16\"} alignItems=\"center\">\n <Row gap={\"x16\"} alignItems=\"center\" justifyContent={\"center\"}>\n <NationalIcon height={44} width={27} variant={variant} />\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n <RegionIcon width={44} height={44} color={variant === \"operator\" ? \"lightblue-a03\" : \"white\"} />\n </>\n )}\n </Row>\n <h1 className={clsx(headerTitleClassname, \"ui-header-title\")}>\n {\n variant === \"default\" ? (\n <Balancer>\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n </Balancer>\n ) : (\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n )\n }\n </h1>\n </Row>\n <Button size=\"2\" href={loginLink} asLink=\"a\" className=\"login-button\" variant={variant === \"operator\" ? \"secondary\" : \"primary\"}>\n <span style={{ fontSize: 14 }}> {labels.login} </span>\n <span className=\"visually-hidden\"> Accedi con Cohesion</span>\n </Button>\n </Row>\n <nav aria-label=\"Menu di navigazione\" className=\"shadow-bottom\">\n <Container\n containerClass=\"ui-container\"\n className=\"base-row align-items-center justify-content-between max-h-x52\"\n >\n <Row as={\"ul\"} className=\"list-style-none\" role=\"list\">\n {navigatonItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n \"py-x12 px-x16 ui-header-desktop-nav-item max-h-x52\",\n item.active && \"active\",\n )}\n >\n <LinkComponent\n href={item.href}\n className={clsx(\n \"text-decoration-none fs-custom\",\n item.active\n ? `fw-bold ${textLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {item.label}\n {item.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n </li>\n );\n })}\n </Row>\n {supportLink && (\n <LinkComponent\n href={supportLink.href}\n className={clsx(\n \"text-decoration-none fs-custom py-x12 px-x0\",\n supportLink.active\n ? `fw-bold ${activeLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n \"ui-header-desktop-support-link\",\n supportLink.active && \"active\",\n )}\n >\n {supportLink.label}\n {supportLink.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n )}\n </Container>\n </nav>\n </header>\n </div>\n );\n};\n"],"names":["HeaderDesktop","title","region","asLink","labels","navigatonItems","supportLink","loginLink","shortTitle","headerTitleClassname","children","headerLogoUrl2","variant","LinkComponent","NationalIcon","LOGOS","RegionIcon","textLinkVariant","activeLinkVariant","jsxs","clsx","HeaderSlim","jsx","Row","Fragment","Divider","Balancer","Button","Container","item","index"],"mappings":"8YAsCaA,EAAgB,CAAC,CAC5B,MAAAC,EACA,OAAAC,EACA,OAAAC,EAAS,IACT,OAAAC,EACA,eAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,IACZ,WAAAC,EACA,qBAAAC,EACA,SAAAC,EACA,eAAAC,EACA,QAAAC,EAAU,SACZ,IAA0B,CACxB,MAAMC,EAAgBV,EAChBW,EAAeC,EAAAA,MAAM,UACrBC,EAA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CAAI,aAAW,sBAAsB,UAAU,gBAC9C,SAAAH,EAAAA,kBAAAA,KAACS,EAAAA,UAAA,CACC,eAAe,eACf,UAAU,gEAEV,SAAA,CAAAN,EAAAA,kBAAAA,IAACC,EAAAA,IAAA,CAAI,GAAI,KAAM,UAAU,kBAAkB,KAAK,OAC7C,SAAAlB,EAAe,IAAI,CAACwB,EAAMC,IAEvBR,EAAAA,kBAAAA,IAAC,KAAA,CAEC,UAAWF,EAAAA,KACT,qDACAS,EAAK,QAAU,QAAA,EAGjB,SAAAV,EAAAA,kBAAAA,KAACN,EAAA,CACC,KAAMgB,EAAK,KACX,UAAWT,EAAAA,KACT,iCACAS,EAAK,OACD,WAAWZ,CAAe,GAC1B,eAAeA,CAAe,EAAA,EAEpC,OAAQY,EAAK,SAAW,SAAW,OACnC,IAAKA,EAAK,SAAW,sBAAwB,OAE5C,SAAA,CAAAA,EAAK,MACLA,EAAK,QACJP,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,QAAA,CAAM,CAAA,CAAA,CAAA,CAE5C,EArBKQ,CAAA,CAwBV,CAAA,CACH,EACCxB,GACCa,EAAAA,kBAAAA,KAACN,EAAA,CACC,KAAMP,EAAY,KAClB,UAAWc,EAAAA,KACT,8CACAd,EAAY,OACR,WAAWY,CAAiB,GAC5B,eAAeD,CAAe,GAClC,iCACAX,EAAY,QAAU,QAAA,EAGvB,SAAA,CAAAA,EAAY,MACZA,EAAY,QACXgB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,QAAA,CAAM,CAAA,CAAA,CAAA,CAE5C,CAAA,CAAA,CAEJ,CACF,CAAA,CAAA,CACF,CAAA,EACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs306.js","sources":["../src/components/navigations/HeaderDesktop/index.tsx"],"sourcesContent":["import { Divider } from \"@/components/ui/Divider\";\nimport { LOGOS, Region } from \"../Header\";\nimport { HeaderSlim } from \"@/components\";\nimport clsx from \"clsx\";\nimport { Balancer } from \"react-wrap-balancer\";\nimport { Button } from \"@/components/ui/Button\";\nimport { Container } from \"@/components/ui/Container\";\nimport \"./HeaderDesktop.scss\";\nimport { Row } from \"@/components\";\n\nimport { WithVariant } from \"@/types/variant\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n active?: boolean;\n isNewTab?: boolean;\n};\n\ntype NavigationLabels = {\n closeMenu: string;\n login: string;\n};\n\nexport type HeaderDesktopProps = WithVariant<{\n title: React.ReactNode | string;\n region: Region;\n asLink?: \"a\" | React.ComponentType<any>;\n children?: React.ReactNode;\n labels: NavigationLabels;\n navigatonItems: NavigationItem[];\n supportLink?: NavigationItem;\n loginLink?: string;\n shortTitle?: React.ReactNode;\n headerTitleClassname?: string;\n headerLogoUrl2?: string;\n}>;\n\nexport const HeaderDesktop = ({\n title,\n region,\n asLink = \"a\",\n labels,\n navigatonItems,\n supportLink,\n loginLink = \"/\",\n shortTitle,\n headerTitleClassname,\n children,\n headerLogoUrl2,\n variant = \"default\",\n}: HeaderDesktopProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n const textLinkVariant =\n variant === \"operator\" ? \"text-white\" : \"text-primary\";\n const activeLinkVariant =\n variant === \"operator\" ? \"text-white\" : \"text-blue-30\";\n\n return (\n <div\n className={clsx(\n \"sticky-header bg-white\",\n variant === \"operator\" && \"ui-header-desktop-operator\",\n )}\n >\n <HeaderSlim\n pt=\"x16\"\n pb=\"x16\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n containerClassName={clsx(\n variant === \"operator\" ? \"ui-slim-operator\" : \"bg-slate-20\",\n )}\n >\n <LinkComponent\n href=\"/\"\n className={clsx(\n \"fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8\",\n variant === \"default\" ? \"text-white\" : \"text-slate-20\",\n )}\n >\n {headerLogoUrl2 && (\n <div\n style={{ backgroundImage: `url(${headerLogoUrl2})` }}\n className={\"ui-header-item-image\"}\n ></div>\n )}\n\n {shortTitle ? shortTitle : title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n\n {children}\n </HeaderSlim>\n <header\n className={clsx(variant === \"operator\" ? \"bg-radial\" : \"bg-white\")}\n >\n <Row\n py={\"x20\"}\n gap={\"x16\"}\n alignItems=\"center\"\n justifyContent={\"space-between\"}\n className=\"max-h-x116 ui-container\"\n >\n <Row gap={\"x16\"} alignItems=\"center\">\n <Row gap={\"x16\"} alignItems=\"center\" justifyContent={\"center\"}>\n <NationalIcon height={44} width={27} variant={variant} />\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n <RegionIcon\n width={44}\n height={44}\n color={variant === \"operator\" ? \"lightblue-a03\" : \"white\"}\n />\n </>\n )}\n </Row>\n <h1 className={clsx(headerTitleClassname, \"ui-header-title\")}>\n {variant === \"default\" ? (\n <Balancer>\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n </Balancer>\n ) : (\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n )}\n </h1>\n </Row>\n <Button\n size=\"2\"\n href={loginLink}\n asLink=\"a\"\n className=\"login-button\"\n variant={variant === \"operator\" ? \"secondary\" : \"primary\"}\n >\n <span style={{ fontSize: 14 }}> {labels.login} </span>\n <span className=\"visually-hidden\"> Accedi con Cohesion</span>\n </Button>\n </Row>\n <nav aria-label=\"Menu di navigazione\" className=\"shadow-bottom\">\n <Container\n containerClass=\"ui-container\"\n className=\"base-row align-items-center justify-content-between max-h-x52\"\n >\n <Row as={\"ul\"} className=\"list-style-none\" role=\"list\">\n {navigatonItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n \"py-x12 px-x16 ui-header-desktop-nav-item max-h-x52\",\n item.active && \"active\",\n )}\n >\n <LinkComponent\n href={item.href}\n className={clsx(\n \"text-decoration-none fs-custom\",\n item.active\n ? `fw-bold ${textLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {item.label}\n {item.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n </li>\n );\n })}\n </Row>\n {supportLink && (\n <LinkComponent\n href={supportLink.href}\n className={clsx(\n \"text-decoration-none fs-custom py-x12 px-x0\",\n supportLink.active\n ? `fw-bold ${activeLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n \"ui-header-desktop-support-link\",\n supportLink.active &&\n (variant === \"operator\" ? \"active-operator\" : \"active\"),\n )}\n >\n {supportLink.label}\n {supportLink.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n )}\n </Container>\n </nav>\n </header>\n </div>\n );\n};\n"],"names":["HeaderDesktop","title","region","asLink","labels","navigatonItems","supportLink","loginLink","shortTitle","headerTitleClassname","children","headerLogoUrl2","variant","LinkComponent","NationalIcon","LOGOS","RegionIcon","textLinkVariant","activeLinkVariant","jsxs","clsx","HeaderSlim","jsx","Row","Fragment","Divider","Balancer","Button","Container","item","index"],"mappings":"8YAsCaA,EAAgB,CAAC,CAC5B,MAAAC,EACA,OAAAC,EACA,OAAAC,EAAS,IACT,OAAAC,EACA,eAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,IACZ,WAAAC,EACA,qBAAAC,EACA,SAAAC,EACA,eAAAC,EACA,QAAAC,EAAU,SACZ,IAA0B,CACxB,MAAMC,EAAgBV,EAChBW,EAAeC,EAAAA,MAAM,UACrBC,EAAaD,EAAAA,MAAMb,CAAM,EAEzBe,EACJL,IAAY,WAAa,aAAe,eACpCM,EACJN,IAAY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A,KAACS,EAAAA,UAAA,CACC,eAAe,eACf,UAAU,gEAEV,SAAA,CAAAN,EAAAA,kBAAAA,IAACC,EAAAA,IAAA,CAAI,GAAI,KAAM,UAAU,kBAAkB,KAAK,OAC7C,SAAAlB,EAAe,IAAI,CAACwB,EAAMC,IAEvBR,EAAAA,kBAAAA,IAAC,KAAA,CAEC,UAAWF,EAAAA,KACT,qDACAS,EAAK,QAAU,QAAA,EAGjB,SAAAV,EAAAA,kBAAAA,KAACN,EAAA,CACC,KAAMgB,EAAK,KACX,UAAWT,EAAAA,KACT,iCACAS,EAAK,OACD,WAAWZ,CAAe,GAC1B,eAAeA,CAAe,EAAA,EAEpC,OAAQY,EAAK,SAAW,SAAW,OACnC,IAAKA,EAAK,SAAW,sBAAwB,OAE5C,SAAA,CAAAA,EAAK,MACLA,EAAK,QACJP,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,QAAA,CAAM,CAAA,CAAA,CAAA,CAE5C,EArBKQ,CAAA,CAwBV,CAAA,CACH,EACCxB,GACCa,EAAAA,kBAAAA,KAACN,EAAA,CACC,KAAMP,EAAY,KAClB,UAAWc,EAAAA,KACT,8CACAd,EAAY,OACR,WAAWY,CAAiB,GAC5B,eAAeD,CAAe,GAClC,iCACAX,EAAY,SACTM,IAAY,WAAa,kBAAoB,SAAA,EAGjD,SAAA,CAAAN,EAAY,MACZA,EAAY,QACXgB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,QAAA,CAAM,CAAA,CAAA,CAAA,CAE5C,CAAA,CAAA,CAEJ,CACF,CAAA,CAAA,CAAA,CACF,CAAA,CAAA,CAGN"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs264.js"),c=require("./index.cjs266.js"),o=require("./index.cjs623.js"),x=({title:t,badge:i,content:r,isOpen:s,onToggle:n})=>e.jsxRuntimeExports.jsxs("div",{className:c.clsx("step-item-generic-accordion",s&&"isOpen"),children:[e.jsxRuntimeExports.jsxs("button",{type:"button",className:"step-header",onClick:n,"aria-expanded":s,children:[e.jsxRuntimeExports.jsx("div",{className:"step-title",title:t,children:t}),i&&e.jsxRuntimeExports.jsx("div",{className:"step-badge",children:i}),e.jsxRuntimeExports.jsx("div",{className:"step-arrow",children:e.jsxRuntimeExports.jsx(o.StepArrow,{width:24,height:25,className:"arrow-icon",decorative:!0})})]}),e.jsxRuntimeExports.jsx("div",{className:"step-details",children:e.jsxRuntimeExports.jsx("div",{className:"step-details-content",children:s&&e.jsxRuntimeExports.jsx("div",{className:"step-content",children:r})})})]});exports.StepItemGenericAccordion=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs264.js"),c=require("./index.cjs266.js"),o=require("./index.cjs610.js"),x=({title:t,badge:i,content:r,isOpen:s,onToggle:n})=>e.jsxRuntimeExports.jsxs("div",{className:c.clsx("step-item-generic-accordion",s&&"isOpen"),children:[e.jsxRuntimeExports.jsxs("button",{type:"button",className:"step-header",onClick:n,"aria-expanded":s,children:[e.jsxRuntimeExports.jsx("div",{className:"step-title",title:t,children:t}),i&&e.jsxRuntimeExports.jsx("div",{className:"step-badge",children:i}),e.jsxRuntimeExports.jsx("div",{className:"step-arrow",children:e.jsxRuntimeExports.jsx(o.StepArrow,{width:24,height:25,className:"arrow-icon",decorative:!0})})]}),e.jsxRuntimeExports.jsx("div",{className:"step-details",children:e.jsxRuntimeExports.jsx("div",{className:"step-details-content",children:s&&e.jsxRuntimeExports.jsx("div",{className:"step-content",children:r})})})]});exports.StepItemGenericAccordion=x;
2
2
  //# sourceMappingURL=index.cjs316.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");require("./index.cjs520.js");function n(){const[a,e]=r.useState(null),o=r.useCallback(async t=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(t),e(t),!0}catch(l){return console.warn("Copy failed",l),e(null),!1}},[]);return[a,o]}function u(a){const[e,o]=r.useState(!!a),t=r.useCallback(()=>{o(l=>!l)},[]);return[e,t,o]}exports.useCopyToClipboard=n;exports.useToggle=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");require("./index.cjs529.js");function n(){const[a,e]=r.useState(null),o=r.useCallback(async t=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(t),e(t),!0}catch(l){return console.warn("Copy failed",l),e(null),!1}},[]);return[a,o]}function u(a){const[e,o]=r.useState(!!a),t=r.useCallback(()=>{o(l=>!l)},[]);return[e,t,o]}exports.useCopyToClipboard=n;exports.useToggle=u;
2
2
  //# sourceMappingURL=index.cjs318.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs524.js");var r=e.__require();exports.distExports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs516.js");var r=e.__require();exports.distExports=r;
2
2
  //# sourceMappingURL=index.cjs319.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs528.js");var r=e.__require();exports.FileSaver_minExports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs520.js");var r=e.__require();exports.FileSaver_minExports=r;
2
2
  //# sourceMappingURL=index.cjs320.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs513.js"),E=require("./index.cjs514.js"),n=require("./index.cjs342.js"),h=require("./index.cjs515.js"),w=require("./index.cjs516.js"),i=require("./index.cjs264.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var I="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=I;var $="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=$;var L="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=L;var c="AlertDialogContent",[F,G]=q(c),W=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,g=s(t),u=l.useRef(null),P=E.useComposedRefs(o,u),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(F,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...g,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(W,{children:r}),i.jsxRuntimeExports.jsx(k,{contentRef:u})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var Y="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=Y;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=G(O,t),g=s(t),u=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...g,...r,ref:u})});m.displayName=O;var k=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs522.js"),E=require("./index.cjs523.js"),n=require("./index.cjs342.js"),h=require("./index.cjs524.js"),w=require("./index.cjs525.js"),i=require("./index.cjs264.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var I="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=I;var $="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=$;var L="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=L;var c="AlertDialogContent",[F,G]=q(c),W=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,g=s(t),u=l.useRef(null),P=E.useComposedRefs(o,u),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(F,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...g,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(W,{children:r}),i.jsxRuntimeExports.jsx(k,{contentRef:u})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var Y="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=Y;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=G(O,t),g=s(t),u=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...g,...r,ref:u})});m.displayName=O;var k=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${c}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs515.js"),E=require("./index.cjs514.js"),M=require("./index.cjs513.js"),v=require("./index.cjs532.js"),B=require("./index.cjs533.js"),V=require("./index.cjs534.js"),z=require("./index.cjs535.js"),K=require("./index.cjs536.js"),j=require("./index.cjs537.js"),x=require("./index.cjs538.js"),U=require("./index.cjs539.js"),Y=require("./index.cjs540.js"),Z=require("./index.cjs541.js"),J=require("./index.cjs516.js"),s=require("./index.cjs264.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var D="Dialog",[S,X]=M.createContextScope(D),[ee,u]=S(D),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f,R]=B.useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:D});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:v.useId(),titleId:v.useId(),descriptionId:v.useId(),open:f,onOpenChange:R,onOpenToggle:a.useCallback(()=>R(L=>!L),[R]),modal:c,children:n})};C.displayName=D;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=E.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(j.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=E.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=E.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs524.js"),E=require("./index.cjs523.js"),M=require("./index.cjs522.js"),v=require("./index.cjs530.js"),B=require("./index.cjs531.js"),V=require("./index.cjs532.js"),z=require("./index.cjs533.js"),K=require("./index.cjs534.js"),j=require("./index.cjs535.js"),x=require("./index.cjs536.js"),U=require("./index.cjs537.js"),Y=require("./index.cjs538.js"),Z=require("./index.cjs539.js"),J=require("./index.cjs525.js"),s=require("./index.cjs264.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var D="Dialog",[S,X]=M.createContextScope(D),[ee,u]=S(D),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f,R]=B.useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:D});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:v.useId(),titleId:v.useId(),descriptionId:v.useId(),open:f,onOpenChange:R,onOpenToggle:a.useCallback(()=>R(L=>!L),[R]),modal:c,children:n})};C.displayName=D;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=E.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(j.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=E.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=E.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),O=require("./index.cjs514.js"),L=require("./index.cjs513.js"),B=require("./index.cjs515.js"),z=require("./index.cjs533.js"),G=require("./index.cjs546.js"),K=require("./index.cjs547.js"),U=require("./index.cjs537.js"),y=require("./index.cjs538.js"),l=require("./index.cjs264.js");function X(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const a=X(H);var E="Checkbox",[J]=L.createContextScope(E),[Q,I]=J(E);function S(e){const{__scopeCheckbox:r,checked:n,children:s,defaultChecked:c,disabled:t,form:b,name:f,onCheckedChange:u,required:h,value:m="on",internal_do_not_use_render:d}=e,[p,v]=z.useControllableState({prop:n,defaultProp:c??!1,onChange:u,caller:E}),[C,k]=a.useState(null),[R,o]=a.useState(null),i=a.useRef(!1),j=C?!!b||!!C.closest("form"):!0,P={checked:p,disabled:t,setChecked:v,control:C,setControl:k,name:f,form:b,value:m,hasConsumerStoppedPropagationRef:i,required:h,defaultChecked:x(c)?!1:c,isFormControl:j,bubbleInput:R,setBubbleInput:o};return l.jsxRuntimeExports.jsx(Q,{scope:r,...P,children:V(d)?d(P):s})}var T="CheckboxTrigger",_=a.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:n,...s},c)=>{const{control:t,value:b,disabled:f,checked:u,required:h,setControl:m,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:C}=I(T,e),k=O.useComposedRefs(c,m),R=a.useRef(u);return a.useEffect(()=>{const o=t==null?void 0:t.form;if(o){const i=()=>d(R.current);return o.addEventListener("reset",i),()=>o.removeEventListener("reset",i)}},[t,d]),l.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(u)?"mixed":u,"aria-required":h,"data-state":D(u),"data-disabled":f?"":void 0,disabled:f,value:b,...s,ref:k,onKeyDown:B.composeEventHandlers(r,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:B.composeEventHandlers(n,o=>{d(i=>x(i)?!0:!i),C&&v&&(p.current=o.isPropagationStopped(),p.current||o.stopPropagation())})})});_.displayName=T;var q=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,name:s,checked:c,defaultChecked:t,required:b,disabled:f,value:u,onCheckedChange:h,form:m,...d}=e;return l.jsxRuntimeExports.jsx(S,{__scopeCheckbox:n,checked:c,defaultChecked:t,disabled:f,required:b,onCheckedChange:h,name:s,form:m,value:u,internal_do_not_use_render:({isFormControl:p})=>l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(_,{...d,ref:r,__scopeCheckbox:n}),p&&l.jsxRuntimeExports.jsx(g,{__scopeCheckbox:n})]})})});q.displayName=E;var M="CheckboxIndicator",N=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,forceMount:s,...c}=e,t=I(M,n);return l.jsxRuntimeExports.jsx(U.Presence,{present:s||x(t.checked)||t.checked===!0,children:l.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":D(t.checked),"data-disabled":t.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=M;var $="CheckboxBubbleInput",g=a.forwardRef(({__scopeCheckbox:e,...r},n)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:t,defaultChecked:b,required:f,disabled:u,name:h,value:m,form:d,bubbleInput:p,setBubbleInput:v}=I($,e),C=O.useComposedRefs(n,v),k=G.usePrevious(t),R=K.useSize(s);a.useEffect(()=>{const i=p;if(!i)return;const j=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(j,"checked").set,A=!c.current;if(k!==t&&w){const F=new Event("click",{bubbles:A});i.indeterminate=x(t),w.call(i,x(t)?!1:t),i.dispatchEvent(F)}},[p,k,t,c]);const o=a.useRef(x(t)?!1:t);return l.jsxRuntimeExports.jsx(y.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??o.current,required:f,disabled:u,name:h,value:m,form:d,...r,tabIndex:-1,ref:C,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});g.displayName=$;function V(e){return typeof e=="function"}function x(e){return e==="indeterminate"}function D(e){return x(e)?"indeterminate":e?"checked":"unchecked"}exports.Checkbox=q;exports.CheckboxIndicator=N;exports.Indicator=N;exports.Root=q;exports.unstable_BubbleInput=g;exports.unstable_CheckboxBubbleInput=g;exports.unstable_CheckboxProvider=S;exports.unstable_CheckboxTrigger=_;exports.unstable_Provider=S;exports.unstable_Trigger=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),O=require("./index.cjs523.js"),L=require("./index.cjs522.js"),B=require("./index.cjs524.js"),z=require("./index.cjs531.js"),G=require("./index.cjs545.js"),K=require("./index.cjs546.js"),U=require("./index.cjs535.js"),y=require("./index.cjs536.js"),l=require("./index.cjs264.js");function X(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const a=X(H);var E="Checkbox",[J]=L.createContextScope(E),[Q,I]=J(E);function S(e){const{__scopeCheckbox:r,checked:n,children:s,defaultChecked:c,disabled:t,form:b,name:f,onCheckedChange:u,required:h,value:m="on",internal_do_not_use_render:d}=e,[p,v]=z.useControllableState({prop:n,defaultProp:c??!1,onChange:u,caller:E}),[C,k]=a.useState(null),[R,o]=a.useState(null),i=a.useRef(!1),j=C?!!b||!!C.closest("form"):!0,P={checked:p,disabled:t,setChecked:v,control:C,setControl:k,name:f,form:b,value:m,hasConsumerStoppedPropagationRef:i,required:h,defaultChecked:x(c)?!1:c,isFormControl:j,bubbleInput:R,setBubbleInput:o};return l.jsxRuntimeExports.jsx(Q,{scope:r,...P,children:V(d)?d(P):s})}var T="CheckboxTrigger",_=a.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:n,...s},c)=>{const{control:t,value:b,disabled:f,checked:u,required:h,setControl:m,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:C}=I(T,e),k=O.useComposedRefs(c,m),R=a.useRef(u);return a.useEffect(()=>{const o=t==null?void 0:t.form;if(o){const i=()=>d(R.current);return o.addEventListener("reset",i),()=>o.removeEventListener("reset",i)}},[t,d]),l.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(u)?"mixed":u,"aria-required":h,"data-state":D(u),"data-disabled":f?"":void 0,disabled:f,value:b,...s,ref:k,onKeyDown:B.composeEventHandlers(r,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:B.composeEventHandlers(n,o=>{d(i=>x(i)?!0:!i),C&&v&&(p.current=o.isPropagationStopped(),p.current||o.stopPropagation())})})});_.displayName=T;var q=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,name:s,checked:c,defaultChecked:t,required:b,disabled:f,value:u,onCheckedChange:h,form:m,...d}=e;return l.jsxRuntimeExports.jsx(S,{__scopeCheckbox:n,checked:c,defaultChecked:t,disabled:f,required:b,onCheckedChange:h,name:s,form:m,value:u,internal_do_not_use_render:({isFormControl:p})=>l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(_,{...d,ref:r,__scopeCheckbox:n}),p&&l.jsxRuntimeExports.jsx(g,{__scopeCheckbox:n})]})})});q.displayName=E;var M="CheckboxIndicator",N=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,forceMount:s,...c}=e,t=I(M,n);return l.jsxRuntimeExports.jsx(U.Presence,{present:s||x(t.checked)||t.checked===!0,children:l.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":D(t.checked),"data-disabled":t.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=M;var $="CheckboxBubbleInput",g=a.forwardRef(({__scopeCheckbox:e,...r},n)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:t,defaultChecked:b,required:f,disabled:u,name:h,value:m,form:d,bubbleInput:p,setBubbleInput:v}=I($,e),C=O.useComposedRefs(n,v),k=G.usePrevious(t),R=K.useSize(s);a.useEffect(()=>{const i=p;if(!i)return;const j=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(j,"checked").set,A=!c.current;if(k!==t&&w){const F=new Event("click",{bubbles:A});i.indeterminate=x(t),w.call(i,x(t)?!1:t),i.dispatchEvent(F)}},[p,k,t,c]);const o=a.useRef(x(t)?!1:t);return l.jsxRuntimeExports.jsx(y.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??o.current,required:f,disabled:u,name:h,value:m,form:d,...r,tabIndex:-1,ref:C,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});g.displayName=$;function V(e){return typeof e=="function"}function x(e){return e==="indeterminate"}function D(e){return x(e)?"indeterminate":e?"checked":"unchecked"}exports.Checkbox=q;exports.CheckboxIndicator=N;exports.Indicator=N;exports.Root=q;exports.unstable_BubbleInput=g;exports.unstable_CheckboxBubbleInput=g;exports.unstable_CheckboxProvider=S;exports.unstable_CheckboxTrigger=_;exports.unstable_Provider=S;exports.unstable_Trigger=_;
2
2
  //# sourceMappingURL=index.cjs368.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const o=require("./index.cjs264.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.ConsentModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css');const o=require("./index.cjs264.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.ConsentModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs391.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css');const n=require("./index.cjs264.js"),o=require("./index.cjs266.js");;/* empty css */const s=({overrideClassNames:e,children:t})=>n.jsxRuntimeExports.jsx("div",{className:o.clsx("ui-consent-modal-body",e),children:t});exports.ContentModalContent=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css');const n=require("./index.cjs264.js"),o=require("./index.cjs266.js");;/* empty css */const s=({overrideClassNames:e,children:t})=>n.jsxRuntimeExports.jsx("div",{className:o.clsx("ui-consent-modal-body",e),children:t});exports.ContentModalContent=s;
2
2
  //# sourceMappingURL=index.cjs392.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const o=require("./index.cjs264.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.CreateReservationModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css');const o=require("./index.cjs264.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:e});exports.CreateReservationModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs398.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css');const t=require("./index.cjs264.js"),r=require("./index.cjs266.js");;/* empty css */const n=({overrideClassNames:o,children:e})=>t.jsxRuntimeExports.jsx("div",{className:r.clsx("ui-consent-modal-body",o),children:e});exports.DoctorConfirmModalContent=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css');const t=require("./index.cjs264.js"),r=require("./index.cjs266.js");;/* empty css */const n=({overrideClassNames:o,children:e})=>t.jsxRuntimeExports.jsx("div",{className:r.clsx("ui-consent-modal-body",o),children:e});exports.DoctorConfirmModalContent=n;
2
2
  //# sourceMappingURL=index.cjs407.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const e=require("./index.cjs264.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorConfirmModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css');const e=require("./index.cjs264.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorConfirmModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs409.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css');const e=require("./index.cjs264.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorModalFooter=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css');const e=require("./index.cjs264.js");;/* empty css */const t=({children:o})=>e.jsxRuntimeExports.jsx("footer",{className:"ui-consent-modal-footer bg-white shadow",children:o});exports.DoctorModalFooter=t;
2
2
  //# sourceMappingURL=index.cjs412.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),x=require("./index.cjs515.js"),L=require("./index.cjs514.js"),$=require("./index.cjs513.js"),H=require("./index.cjs533.js"),K=require("./index.cjs538.js"),p=require("./index.cjs552.js"),b=require("./index.cjs532.js"),a=require("./index.cjs264.js");function U(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const d=U(q);var M="DropdownMenu",[B]=$.createContextScope(M,[p.createMenuScope]),s=p.createMenuScope(),[F,h]=B(M),D=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=s(n),f=d.useRef(null),[w,m]=H.useControllableState({prop:t,defaultProp:i??!1,onChange:l,caller:M});return a.jsxRuntimeExports.jsx(F,{scope:n,triggerId:b.useId(),triggerRef:f,contentId:b.useId(),open:w,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(k=>!k),[m]),modal:u,children:a.jsxRuntimeExports.jsx(p.Root,{...c,open:w,onOpenChange:m,dir:r,modal:u,children:o})})};D.displayName=M;var I="DropdownMenuTrigger",g=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,i=h(I,o),l=s(o);return a.jsxRuntimeExports.jsx(p.Anchor,{asChild:!0,...l,children:a.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:L.composeRefs(n,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});g.displayName=I;var W="DropdownMenuPortal",v=e=>{const{__scopeDropdownMenu:n,...o}=e,r=s(n);return a.jsxRuntimeExports.jsx(p.Portal,{...r,...o})};v.displayName=W;var j="DropdownMenuContent",R=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=h(j,o),i=s(o),l=d.useRef(!1);return a.jsxRuntimeExports.jsx(p.Content,{id:t.contentId,"aria-labelledby":t.triggerId,...i,...r,ref:n,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,u=>{var c;l.current||(c=t.triggerRef.current)==null||c.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,w=c.button===2||f;(!t.modal||w)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R.displayName=j;var z="DropdownMenuGroup",_=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Group,{...t,...r,ref:n})});_.displayName=z;var X="DropdownMenuLabel",S=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Label,{...t,...r,ref:n})});S.displayName=X;var J="DropdownMenuItem",E=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Item,{...t,...r,ref:n})});E.displayName=J;var Q="DropdownMenuCheckboxItem",N=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.CheckboxItem,{...t,...r,ref:n})});N.displayName=Q;var V="DropdownMenuRadioGroup",C=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioGroup,{...t,...r,ref:n})});C.displayName=V;var Y="DropdownMenuRadioItem",P=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioItem,{...t,...r,ref:n})});P.displayName=Y;var Z="DropdownMenuItemIndicator",y=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.ItemIndicator,{...t,...r,ref:n})});y.displayName=Z;var ee="DropdownMenuSeparator",A=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Separator,{...t,...r,ref:n})});A.displayName=ee;var oe="DropdownMenuArrow",O=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Arrow,{...t,...r,ref:n})});O.displayName=oe;var re="DropdownMenuSubTrigger",T=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubTrigger,{...t,...r,ref:n})});T.displayName=re;var ne="DropdownMenuSubContent",G=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubContent,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G.displayName=ne;var te=D,ae=g,pe=v,de=R,ue=_,se=E;exports.Content=de;exports.DropdownMenu=D;exports.DropdownMenuArrow=O;exports.DropdownMenuCheckboxItem=N;exports.DropdownMenuContent=R;exports.DropdownMenuGroup=_;exports.DropdownMenuItem=E;exports.DropdownMenuItemIndicator=y;exports.DropdownMenuLabel=S;exports.DropdownMenuPortal=v;exports.DropdownMenuRadioGroup=C;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=A;exports.DropdownMenuSubContent=G;exports.DropdownMenuSubTrigger=T;exports.DropdownMenuTrigger=g;exports.Group=ue;exports.Item=se;exports.Portal=pe;exports.Root=te;exports.Trigger=ae;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),x=require("./index.cjs524.js"),L=require("./index.cjs523.js"),$=require("./index.cjs522.js"),H=require("./index.cjs531.js"),K=require("./index.cjs536.js"),p=require("./index.cjs557.js"),b=require("./index.cjs530.js"),a=require("./index.cjs264.js");function U(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const d=U(q);var M="DropdownMenu",[B]=$.createContextScope(M,[p.createMenuScope]),s=p.createMenuScope(),[F,h]=B(M),D=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=s(n),f=d.useRef(null),[w,m]=H.useControllableState({prop:t,defaultProp:i??!1,onChange:l,caller:M});return a.jsxRuntimeExports.jsx(F,{scope:n,triggerId:b.useId(),triggerRef:f,contentId:b.useId(),open:w,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(k=>!k),[m]),modal:u,children:a.jsxRuntimeExports.jsx(p.Root,{...c,open:w,onOpenChange:m,dir:r,modal:u,children:o})})};D.displayName=M;var I="DropdownMenuTrigger",g=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,i=h(I,o),l=s(o);return a.jsxRuntimeExports.jsx(p.Anchor,{asChild:!0,...l,children:a.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:L.composeRefs(n,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});g.displayName=I;var W="DropdownMenuPortal",v=e=>{const{__scopeDropdownMenu:n,...o}=e,r=s(n);return a.jsxRuntimeExports.jsx(p.Portal,{...r,...o})};v.displayName=W;var j="DropdownMenuContent",R=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=h(j,o),i=s(o),l=d.useRef(!1);return a.jsxRuntimeExports.jsx(p.Content,{id:t.contentId,"aria-labelledby":t.triggerId,...i,...r,ref:n,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,u=>{var c;l.current||(c=t.triggerRef.current)==null||c.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,w=c.button===2||f;(!t.modal||w)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R.displayName=j;var z="DropdownMenuGroup",_=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Group,{...t,...r,ref:n})});_.displayName=z;var X="DropdownMenuLabel",S=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Label,{...t,...r,ref:n})});S.displayName=X;var J="DropdownMenuItem",E=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Item,{...t,...r,ref:n})});E.displayName=J;var Q="DropdownMenuCheckboxItem",N=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.CheckboxItem,{...t,...r,ref:n})});N.displayName=Q;var V="DropdownMenuRadioGroup",C=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioGroup,{...t,...r,ref:n})});C.displayName=V;var Y="DropdownMenuRadioItem",P=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioItem,{...t,...r,ref:n})});P.displayName=Y;var Z="DropdownMenuItemIndicator",y=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.ItemIndicator,{...t,...r,ref:n})});y.displayName=Z;var ee="DropdownMenuSeparator",A=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Separator,{...t,...r,ref:n})});A.displayName=ee;var oe="DropdownMenuArrow",O=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Arrow,{...t,...r,ref:n})});O.displayName=oe;var re="DropdownMenuSubTrigger",T=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubTrigger,{...t,...r,ref:n})});T.displayName=re;var ne="DropdownMenuSubContent",G=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubContent,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G.displayName=ne;var te=D,ae=g,pe=v,de=R,ue=_,se=E;exports.Content=de;exports.DropdownMenu=D;exports.DropdownMenuArrow=O;exports.DropdownMenuCheckboxItem=N;exports.DropdownMenuContent=R;exports.DropdownMenuGroup=_;exports.DropdownMenuItem=E;exports.DropdownMenuItemIndicator=y;exports.DropdownMenuLabel=S;exports.DropdownMenuPortal=v;exports.DropdownMenuRadioGroup=C;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=A;exports.DropdownMenuSubContent=G;exports.DropdownMenuSubTrigger=T;exports.DropdownMenuTrigger=g;exports.Group=ue;exports.Item=se;exports.Portal=pe;exports.Root=te;exports.Trigger=ae;
2
2
  //# sourceMappingURL=index.cjs421.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs565.js"),t={Root:o.CardRoot};exports.CardComponent=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs563.js"),t={Root:o.CardRoot};exports.CardComponent=t;
2
2
  //# sourceMappingURL=index.cjs429.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),P=require("./index.cjs689.js"),g=require("./index.cjs692.js"),c=require("./index.cjs697.js"),C=require("./index.cjs698.js"),R=require("./index.cjs699.js"),n=require("./index.cjs700.js");function h(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=h(m),s=e=>o.createElement(n.Root,{...e});s.displayName="Popover.Root";const i=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Trigger,{...r,ref:t,asChild:!0},c.requireReactElement(e)));i.displayName="Popover.Trigger";const l=o.forwardRef((e,r)=>{const{className:t,forceMount:a,container:f,...d}=g.extractProps(e,C.popoverContentPropDefs);return o.createElement(n.Portal,{container:f,forceMount:a},o.createElement(R.Theme,{asChild:!0},o.createElement(n.Content,{align:"start",sideOffset:8,collisionPadding:10,...d,ref:r,className:P("rt-PopperContent","rt-PopoverContent",t)})))});l.displayName="Popover.Content";const p=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Close,{...r,ref:t,asChild:!0},c.requireReactElement(e)));p.displayName="Popover.Close";const u=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Anchor,{...r,ref:t}));u.displayName="Popover.Anchor";exports.Anchor=u;exports.Close=p;exports.Content=l;exports.Root=s;exports.Trigger=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),P=require("./index.cjs716.js"),g=require("./index.cjs719.js"),c=require("./index.cjs724.js"),C=require("./index.cjs725.js"),R=require("./index.cjs726.js"),n=require("./index.cjs727.js");function h(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=h(m),s=e=>o.createElement(n.Root,{...e});s.displayName="Popover.Root";const i=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Trigger,{...r,ref:t,asChild:!0},c.requireReactElement(e)));i.displayName="Popover.Trigger";const l=o.forwardRef((e,r)=>{const{className:t,forceMount:a,container:f,...d}=g.extractProps(e,C.popoverContentPropDefs);return o.createElement(n.Portal,{container:f,forceMount:a},o.createElement(R.Theme,{asChild:!0},o.createElement(n.Content,{align:"start",sideOffset:8,collisionPadding:10,...d,ref:r,className:P("rt-PopperContent","rt-PopoverContent",t)})))});l.displayName="Popover.Content";const p=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Close,{...r,ref:t,asChild:!0},c.requireReactElement(e)));p.displayName="Popover.Close";const u=o.forwardRef(({children:e,...r},t)=>o.createElement(n.Anchor,{...r,ref:t}));u.displayName="Popover.Anchor";exports.Anchor=u;exports.Close=p;exports.Content=l;exports.Root=s;exports.Trigger=i;
2
2
  //# sourceMappingURL=index.cjs449.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),u=require("./index.cjs689.js"),s=require("./index.cjs690.js");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=i(c),a=o.forwardRef(({className:e,...r},t)=>o.createElement(s.BaseButton,{...r,ref:t,className:u("rt-Button",e)}));a.displayName="Button";exports.Button=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),u=require("./index.cjs716.js"),s=require("./index.cjs717.js");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=i(c),a=o.forwardRef(({className:e,...r},t)=>o.createElement(s.BaseButton,{...r,ref:t,className:u("rt-Button",e)}));a.displayName="Button";exports.Button=a;
2
2
  //# sourceMappingURL=index.cjs450.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),N=require("./index.cjs515.js"),P=require("./index.cjs514.js"),O=require("./index.cjs513.js"),B=require("./index.cjs533.js"),M=require("./index.cjs546.js"),I=require("./index.cjs547.js"),y=require("./index.cjs538.js"),d=require("./index.cjs264.js");function $(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const s=$(T);var m="Switch",[H]=O.createContextScope(m),[z,A]=H(m),R=s.forwardRef((t,o)=>{const{__scopeSwitch:e,name:r,checked:n,defaultChecked:b,required:a,disabled:c,value:u="on",onCheckedChange:x,form:i,...S}=t,[p,l]=s.useState(null),v=P.useComposedRefs(o,h=>l(h)),w=s.useRef(!1),j=p?i||!!p.closest("form"):!0,[f,_]=B.useControllableState({prop:n,defaultProp:b??!1,onChange:x,caller:m});return d.jsxRuntimeExports.jsxs(z,{scope:e,checked:f,disabled:c,children:[d.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"switch","aria-checked":f,"aria-required":a,"data-state":E(f),"data-disabled":c?"":void 0,disabled:c,value:u,...S,ref:v,onClick:N.composeEventHandlers(t.onClick,h=>{_(q=>!q),j&&(w.current=h.isPropagationStopped(),w.current||h.stopPropagation())})}),j&&d.jsxRuntimeExports.jsx(k,{control:p,bubbles:!w.current,name:r,value:u,checked:f,required:a,disabled:c,form:i,style:{transform:"translateX(-100%)"}})]})});R.displayName=m;var g="SwitchThumb",C=s.forwardRef((t,o)=>{const{__scopeSwitch:e,...r}=t,n=A(g,e);return d.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":E(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});C.displayName=g;var D="SwitchBubbleInput",k=s.forwardRef(({__scopeSwitch:t,control:o,checked:e,bubbles:r=!0,...n},b)=>{const a=s.useRef(null),c=P.useComposedRefs(a,b),u=M.usePrevious(e),x=I.useSize(o);return s.useEffect(()=>{const i=a.current;if(!i)return;const S=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(S,"checked").set;if(u!==e&&l){const v=new Event("click",{bubbles:r});l.call(i,e),i.dispatchEvent(v)}},[u,e,r]),d.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...n,tabIndex:-1,ref:c,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});k.displayName=D;function E(t){return t?"checked":"unchecked"}var U=R,L=C;exports.Root=U;exports.Switch=R;exports.SwitchThumb=C;exports.Thumb=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),N=require("./index.cjs524.js"),P=require("./index.cjs523.js"),O=require("./index.cjs522.js"),B=require("./index.cjs531.js"),M=require("./index.cjs545.js"),I=require("./index.cjs546.js"),y=require("./index.cjs536.js"),d=require("./index.cjs264.js");function $(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const s=$(T);var m="Switch",[H]=O.createContextScope(m),[z,A]=H(m),R=s.forwardRef((t,o)=>{const{__scopeSwitch:e,name:r,checked:n,defaultChecked:b,required:a,disabled:c,value:u="on",onCheckedChange:x,form:i,...S}=t,[p,l]=s.useState(null),v=P.useComposedRefs(o,h=>l(h)),w=s.useRef(!1),j=p?i||!!p.closest("form"):!0,[f,_]=B.useControllableState({prop:n,defaultProp:b??!1,onChange:x,caller:m});return d.jsxRuntimeExports.jsxs(z,{scope:e,checked:f,disabled:c,children:[d.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"switch","aria-checked":f,"aria-required":a,"data-state":E(f),"data-disabled":c?"":void 0,disabled:c,value:u,...S,ref:v,onClick:N.composeEventHandlers(t.onClick,h=>{_(q=>!q),j&&(w.current=h.isPropagationStopped(),w.current||h.stopPropagation())})}),j&&d.jsxRuntimeExports.jsx(k,{control:p,bubbles:!w.current,name:r,value:u,checked:f,required:a,disabled:c,form:i,style:{transform:"translateX(-100%)"}})]})});R.displayName=m;var g="SwitchThumb",C=s.forwardRef((t,o)=>{const{__scopeSwitch:e,...r}=t,n=A(g,e);return d.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":E(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});C.displayName=g;var D="SwitchBubbleInput",k=s.forwardRef(({__scopeSwitch:t,control:o,checked:e,bubbles:r=!0,...n},b)=>{const a=s.useRef(null),c=P.useComposedRefs(a,b),u=M.usePrevious(e),x=I.useSize(o);return s.useEffect(()=>{const i=a.current;if(!i)return;const S=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(S,"checked").set;if(u!==e&&l){const v=new Event("click",{bubbles:r});l.call(i,e),i.dispatchEvent(v)}},[u,e,r]),d.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...n,tabIndex:-1,ref:c,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});k.displayName=D;function E(t){return t?"checked":"unchecked"}var U=R,L=C;exports.Root=U;exports.Switch=R;exports.SwitchThumb=C;exports.Thumb=L;
2
2
  //# sourceMappingURL=index.cjs481.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),n=require("./index.cjs689.js"),s=require("./index.cjs701.js"),q=require("./index.cjs702.js"),z=require("./index.cjs703.js"),p=require("./index.cjs704.js"),D=require("./index.cjs705.js"),E=require("./index.cjs706.js"),l=require("./index.cjs707.js");function R(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return a.default=r,Object.freeze(a)}const e=R(P),S=e.forwardRef((r,a)=>{const{rest:t,...o}=q.extractMarginProps(r),[b,f]=z.getMarginStyles(o),{asChild:i,children:g,className:y,style:A,type:u,scrollHideDelay:N=u!=="scroll"?0:void 0,dir:C,size:m=s.scrollAreaPropDefs.size.default,radius:d=s.scrollAreaPropDefs.radius.default,scrollbars:c=s.scrollAreaPropDefs.scrollbars.default,...v}=t;return e.createElement(l.Root,{type:u,scrollHideDelay:N,className:n("rt-ScrollAreaRoot",b,y),style:E.mergeStyles(f,A),asChild:i},D.getSubtree({asChild:i,children:g},h=>e.createElement(e.Fragment,null,e.createElement(l.Viewport,{...v,ref:a,className:"rt-ScrollAreaViewport"},h),e.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),c!=="vertical"?e.createElement(l.Scrollbar,{"data-radius":d,orientation:"horizontal",className:n("rt-ScrollAreaScrollbar",p.getResponsiveClassNames({className:"rt-r-size",value:m,propValues:s.scrollAreaPropDefs.size.values}))},e.createElement(l.Thumb,{className:"rt-ScrollAreaThumb"})):null,c!=="horizontal"?e.createElement(l.Scrollbar,{"data-radius":d,orientation:"vertical",className:n("rt-ScrollAreaScrollbar",p.getResponsiveClassNames({className:"rt-r-size",value:m,propValues:s.scrollAreaPropDefs.size.values}))},e.createElement(l.Thumb,{className:"rt-ScrollAreaThumb"})):null,c==="both"?e.createElement(l.Corner,{className:"rt-ScrollAreaCorner"}):null)))});S.displayName="ScrollArea";exports.ScrollArea=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),n=require("./index.cjs716.js"),s=require("./index.cjs728.js"),q=require("./index.cjs729.js"),z=require("./index.cjs730.js"),p=require("./index.cjs731.js"),D=require("./index.cjs732.js"),E=require("./index.cjs733.js"),l=require("./index.cjs734.js");function R(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return a.default=r,Object.freeze(a)}const e=R(P),S=e.forwardRef((r,a)=>{const{rest:t,...o}=q.extractMarginProps(r),[b,f]=z.getMarginStyles(o),{asChild:i,children:g,className:y,style:A,type:u,scrollHideDelay:N=u!=="scroll"?0:void 0,dir:C,size:m=s.scrollAreaPropDefs.size.default,radius:d=s.scrollAreaPropDefs.radius.default,scrollbars:c=s.scrollAreaPropDefs.scrollbars.default,...v}=t;return e.createElement(l.Root,{type:u,scrollHideDelay:N,className:n("rt-ScrollAreaRoot",b,y),style:E.mergeStyles(f,A),asChild:i},D.getSubtree({asChild:i,children:g},h=>e.createElement(e.Fragment,null,e.createElement(l.Viewport,{...v,ref:a,className:"rt-ScrollAreaViewport"},h),e.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),c!=="vertical"?e.createElement(l.Scrollbar,{"data-radius":d,orientation:"horizontal",className:n("rt-ScrollAreaScrollbar",p.getResponsiveClassNames({className:"rt-r-size",value:m,propValues:s.scrollAreaPropDefs.size.values}))},e.createElement(l.Thumb,{className:"rt-ScrollAreaThumb"})):null,c!=="horizontal"?e.createElement(l.Scrollbar,{"data-radius":d,orientation:"vertical",className:n("rt-ScrollAreaScrollbar",p.getResponsiveClassNames({className:"rt-r-size",value:m,propValues:s.scrollAreaPropDefs.size.values}))},e.createElement(l.Thumb,{className:"rt-ScrollAreaThumb"})):null,c==="both"?e.createElement(l.Corner,{className:"rt-ScrollAreaCorner"}):null)))});S.displayName="ScrollArea";exports.ScrollArea=S;
2
2
  //# sourceMappingURL=index.cjs486.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs500.js"),e=require("./index.cjs614.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
1
+ "use strict";const r=require("./index.cjs500.js"),e=require("./index.cjs611.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
2
2
  //# sourceMappingURL=index.cjs502.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs500.js"),t=require("./index.cjs616.js");var r=t.__require();const s=e.getDefaultExportFromCjs(r);module.exports=s;
1
+ "use strict";const e=require("./index.cjs500.js"),t=require("./index.cjs613.js");var r=t.__require();const s=e.getDefaultExportFromCjs(r);module.exports=s;
2
2
  //# sourceMappingURL=index.cjs503.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs264.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=P(j);function g(e,r){const t=i.createContext(r),s=c=>{const{children:n,...o}=c,u=i.useMemo(()=>o,Object.values(o));return b.jsxRuntimeExports.jsx(t.Provider,{value:u,children:n})};s.displayName=e+"Provider";function a(c){const n=i.useContext(t);if(n)return n;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[s,a]}function _(e,r=[]){let t=[];function s(c,n){const o=i.createContext(n),u=t.length;t=[...t,n];const f=d=>{var S;const{scope:x,children:m,...p}=d,l=((S=x==null?void 0:x[e])==null?void 0:S[u])||o,C=i.useMemo(()=>p,Object.values(p));return b.jsxRuntimeExports.jsx(l.Provider,{value:C,children:m})};f.displayName=c+"Provider";function v(d,x){var l;const m=((l=x==null?void 0:x[e])==null?void 0:l[u])||o,p=i.useContext(m);if(p)return p;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${c}\``)}return[f,v]}const a=()=>{const c=t.map(n=>i.createContext(n));return function(o){const u=(o==null?void 0:o[e])||c;return i.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return a.scopeName=e,[s,h(a,...r)]}function h(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const n=s.reduce((o,{useScope:u,scopeName:f})=>{const d=u(c)[`__scope${f}`];return{...o,...d}},{});return i.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return t.scopeName=r.scopeName,t}exports.createContext=g;exports.createContextScope=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=(t,n)=>{a.useEffect(()=>{if(!n||!t.current)return;const o=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=o[0],s=o[o.length-1],r=e=>{e.key==="Tab"&&(e.shiftKey?document.activeElement===u&&(s.focus(),e.preventDefault()):document.activeElement===s&&(u.focus(),e.preventDefault()))},c=document.activeElement;return u.focus(),document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n&&(c==null||c.focus())}},[n,t])};exports.useFocusTrap=l;
2
2
  //# sourceMappingURL=index.cjs513.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs513.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"kaAGA,SAASA,EAAeC,EAAmBC,EAAgB,CACzD,MAAMC,EAAUC,EAAM,cAAcF,CAAc,EAC5CG,EAAYC,GAAU,CAC1B,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAO,EAAKF,EAC3BG,EAAQL,EAAM,QAAQ,IAAMI,EAAS,OAAO,OAAOA,CAAO,CAAC,EACjE,OAAuBE,EAAAA,kBAAAA,IAAIP,EAAQ,SAAU,CAAE,MAAAM,EAAO,SAAAF,CAAQ,CAAE,CAClE,EACAF,EAAS,YAAcJ,EAAoB,WAC3C,SAASU,EAAYC,EAAc,CACjC,MAAMJ,EAAUJ,EAAM,WAAWD,CAAO,EACxC,GAAIK,EAAS,OAAOA,EACpB,GAAIN,IAAmB,OAAQ,OAAOA,EACtC,MAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI,CACpF,CACA,MAAO,CAACI,EAAUM,CAAW,CAC/B,CACA,SAASE,EAAmBC,EAAWC,EAAyB,GAAI,CAClE,IAAIC,EAAkB,CAAA,EACtB,SAASC,EAAehB,EAAmBC,EAAgB,CACzD,MAAMgB,EAAcd,EAAM,cAAcF,CAAc,EAChDiB,EAAQH,EAAgB,OAC9BA,EAAkB,CAAC,GAAGA,EAAiBd,CAAc,EACrD,MAAMG,EAAYC,GAAU,OAC1B,KAAM,CAAE,MAAAc,EAAO,SAAAb,EAAU,GAAGC,CAAO,EAAKF,EAClCH,IAAUkB,EAAAD,GAAA,YAAAA,EAAQN,KAAR,YAAAO,EAAqBF,KAAUD,EACzCT,EAAQL,EAAM,QAAQ,IAAMI,EAAS,OAAO,OAAOA,CAAO,CAAC,EACjE,OAAuBE,EAAAA,kBAAAA,IAAIP,EAAQ,SAAU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CAC1C,EAAG,CAAA,CAAE,EACL,OAAO9B,EAAM,QAAQ,KAAO,CAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC9F,CACF,EACA,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs513.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":"yGAEaA,EAAe,CAC1BC,EACAC,IACG,CACHC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACD,GAAY,CAACD,EAAI,QAAS,OAE/B,MAAMG,EAAoBH,EAAI,QAAQ,iBACpC,0EAAA,EAEII,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAA,EACrB,EAAE,eAAA,GAGA,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAA,EACtB,EAAE,eAAA,GAGR,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAA,EAEtB,SAAS,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACX,SAAS,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CACF,EAAG,CAACN,EAAUD,CAAG,CAAC,CACpB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),b=require("./index.cjs514.js"),f=require("./index.cjs264.js");function x(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=x(g);function d(e){const t=j(e),r=l.forwardRef((n,o)=>{const{children:i,...c}=n,s=l.Children.toArray(i),a=s.find(E);if(a){const u=a.props.children,S=s.map(p=>p===a?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,S):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var m=d("Slot");function j(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const c=C(o),s=O(i,o.props);return o.type!==l.Fragment&&(s.ref=n?b.composeRefs(n,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol("radix.slottable");function R(e){const t=({children:r})=>f.jsxRuntimeExports.jsx(f.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=y,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y}function O(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function C(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Root=m;exports.Slot=m;exports.createSlot=d;exports.createSlottable=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs517.js"),f=require("./index.cjs518.js"),s=require("./index.cjs519.js");var c;function d(){return c||(c=1,(function(o){var a=n.__exports&&n.__exports.__createBinding||(Object.create?(function(i,r,e,t){t===void 0&&(t=e);var _=Object.getOwnPropertyDescriptor(r,e);(!_||("get"in _?!r.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(i,t,_)}):(function(i,r,e,t){t===void 0&&(t=e),i[t]=r[e]})),u=n.__exports&&n.__exports.__exportStar||function(i,r){for(var e in i)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&a(r,i,e)};Object.defineProperty(o,"__esModule",{value:!0}),u(f.__require(),o),u(s.__require(),o)})(n.__exports)),n.__exports}exports.__require=d;
2
2
  //# sourceMappingURL=index.cjs516.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs516.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","Slot","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,C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AyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs516.js","sources":["../node_modules/@anoki/fse-common/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./types\"), exports);\n__exportStar(require(\"./constants\"), exports);\n//# sourceMappingURL=index.js.map"],"names":["__createBinding","this","o","m","k","k2","desc","__exportStar","exports","p","require$$0","require$$1"],"mappings":"kOACA,IAAIA,EAAmBC,aAAQA,EAAAA,UAAK,kBAAqB,OAAO,QAAU,SAASC,EAAGC,EAAGC,EAAGC,EAAI,CACxFA,IAAO,SAAWA,EAAKD,GAC3B,IAAIE,EAAO,OAAO,yBAAyBH,EAAGC,CAAC,GAC3C,CAACE,IAAS,QAASA,EAAO,CAACH,EAAE,WAAaG,EAAK,UAAYA,EAAK,iBAClEA,EAAO,CAAE,WAAY,GAAM,IAAK,UAAW,CAAE,OAAOH,EAAEC,CAAC,EAAI,GAE7D,OAAO,eAAeF,EAAGG,EAAIC,CAAI,CACrC,IAAM,SAASJ,EAAGC,EAAGC,EAAGC,EAAI,CACpBA,IAAO,SAAWA,EAAKD,GAC3BF,EAAEG,CAAE,EAAIF,EAAEC,CAAC,CACf,IACIG,EAAgBN,aAAQA,EAAAA,UAAK,cAAiB,SAASE,EAAGK,EAAS,CACnE,QAASC,KAAKN,EAAOM,IAAM,WAAa,CAAC,OAAO,UAAU,eAAe,KAAKD,EAASC,CAAC,GAAGT,EAAgBQ,EAASL,EAAGM,CAAC,CAC5H,EACA,OAAO,eAAcD,EAAU,aAAc,CAAE,MAAO,GAAM,EAC5DD,EAAaG,EAAAA,UAAA,EAAoBF,CAAO,EACxCD,EAAaI,EAAAA,UAAA,EAAwBH,CAAO","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=(t,n)=>{a.useEffect(()=>{if(!n||!t.current)return;const o=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=o[0],s=o[o.length-1],r=e=>{e.key==="Tab"&&(e.shiftKey?document.activeElement===u&&(s.focus(),e.preventDefault()):document.activeElement===s&&(u.focus(),e.preventDefault()))},c=document.activeElement;return u.focus(),document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n&&(c==null||c.focus())}},[n,t])};exports.useFocusTrap=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs517.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs517.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":"yGAEaA,EAAe,CAC1BC,EACAC,IACG,CACHC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACD,GAAY,CAACD,EAAI,QAAS,OAE/B,MAAMG,EAAoBH,EAAI,QAAQ,iBACpC,0EAAA,EAEII,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAA,EACrB,EAAE,eAAA,GAGA,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAA,EACtB,EAAE,eAAA,GAGR,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAA,EAEtB,SAAS,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACX,SAAS,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CACF,EAAG,CAACN,EAAUD,CAAG,CAAC,CACpB"}
1
+ {"version":3,"file":"index.cjs517.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}