@anoki/fse-ui 1.0.551 → 1.0.552

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 (685) hide show
  1. package/dist/index.cjs.js.map +1 -1
  2. package/dist/index.cjs10.js.map +1 -1
  3. package/dist/index.cjs101.js.map +1 -1
  4. package/dist/index.cjs103.js.map +1 -1
  5. package/dist/index.cjs104.js.map +1 -1
  6. package/dist/index.cjs105.js.map +1 -1
  7. package/dist/index.cjs106.js.map +1 -1
  8. package/dist/index.cjs109.js.map +1 -1
  9. package/dist/index.cjs11.js.map +1 -1
  10. package/dist/index.cjs112.js.map +1 -1
  11. package/dist/index.cjs114.js.map +1 -1
  12. package/dist/index.cjs115.js.map +1 -1
  13. package/dist/index.cjs116.js.map +1 -1
  14. package/dist/index.cjs117.js.map +1 -1
  15. package/dist/index.cjs118.js.map +1 -1
  16. package/dist/index.cjs119.js.map +1 -1
  17. package/dist/index.cjs12.js.map +1 -1
  18. package/dist/index.cjs120.js.map +1 -1
  19. package/dist/index.cjs121.js.map +1 -1
  20. package/dist/index.cjs122.js.map +1 -1
  21. package/dist/index.cjs123.js.map +1 -1
  22. package/dist/index.cjs124.js.map +1 -1
  23. package/dist/index.cjs125.js.map +1 -1
  24. package/dist/index.cjs126.js.map +1 -1
  25. package/dist/index.cjs127.js.map +1 -1
  26. package/dist/index.cjs128.js.map +1 -1
  27. package/dist/index.cjs129.js.map +1 -1
  28. package/dist/index.cjs13.js.map +1 -1
  29. package/dist/index.cjs130.js.map +1 -1
  30. package/dist/index.cjs131.js.map +1 -1
  31. package/dist/index.cjs132.js.map +1 -1
  32. package/dist/index.cjs133.js.map +1 -1
  33. package/dist/index.cjs134.js.map +1 -1
  34. package/dist/index.cjs135.js.map +1 -1
  35. package/dist/index.cjs136.js.map +1 -1
  36. package/dist/index.cjs137.js.map +1 -1
  37. package/dist/index.cjs138.js.map +1 -1
  38. package/dist/index.cjs139.js.map +1 -1
  39. package/dist/index.cjs14.js.map +1 -1
  40. package/dist/index.cjs140.js.map +1 -1
  41. package/dist/index.cjs141.js.map +1 -1
  42. package/dist/index.cjs142.js.map +1 -1
  43. package/dist/index.cjs143.js.map +1 -1
  44. package/dist/index.cjs144.js.map +1 -1
  45. package/dist/index.cjs145.js.map +1 -1
  46. package/dist/index.cjs146.js.map +1 -1
  47. package/dist/index.cjs147.js.map +1 -1
  48. package/dist/index.cjs148.js.map +1 -1
  49. package/dist/index.cjs149.js.map +1 -1
  50. package/dist/index.cjs15.js.map +1 -1
  51. package/dist/index.cjs150.js.map +1 -1
  52. package/dist/index.cjs151.js.map +1 -1
  53. package/dist/index.cjs152.js.map +1 -1
  54. package/dist/index.cjs153.js.map +1 -1
  55. package/dist/index.cjs154.js.map +1 -1
  56. package/dist/index.cjs155.js.map +1 -1
  57. package/dist/index.cjs156.js.map +1 -1
  58. package/dist/index.cjs157.js.map +1 -1
  59. package/dist/index.cjs158.js.map +1 -1
  60. package/dist/index.cjs159.js.map +1 -1
  61. package/dist/index.cjs16.js.map +1 -1
  62. package/dist/index.cjs160.js.map +1 -1
  63. package/dist/index.cjs17.js.map +1 -1
  64. package/dist/index.cjs18.js.map +1 -1
  65. package/dist/index.cjs19.js.map +1 -1
  66. package/dist/index.cjs197.js.map +1 -1
  67. package/dist/index.cjs199.js.map +1 -1
  68. package/dist/index.cjs20.js.map +1 -1
  69. package/dist/index.cjs203.js.map +1 -1
  70. package/dist/index.cjs207.js.map +1 -1
  71. package/dist/index.cjs21.js.map +1 -1
  72. package/dist/index.cjs210.js.map +1 -1
  73. package/dist/index.cjs213.js +1 -1
  74. package/dist/index.cjs216.js.map +1 -1
  75. package/dist/index.cjs217.js +1 -1
  76. package/dist/index.cjs217.js.map +1 -1
  77. package/dist/index.cjs22.js.map +1 -1
  78. package/dist/index.cjs224.js +1 -1
  79. package/dist/index.cjs225.js.map +1 -1
  80. package/dist/index.cjs228.js.map +1 -1
  81. package/dist/index.cjs23.js.map +1 -1
  82. package/dist/index.cjs233.js.map +1 -1
  83. package/dist/index.cjs235.js +1 -1
  84. package/dist/index.cjs236.js.map +1 -1
  85. package/dist/index.cjs237.js.map +1 -1
  86. package/dist/index.cjs238.js.map +1 -1
  87. package/dist/index.cjs239.js.map +1 -1
  88. package/dist/index.cjs241.js.map +1 -1
  89. package/dist/index.cjs242.js +1 -1
  90. package/dist/index.cjs242.js.map +1 -1
  91. package/dist/index.cjs243.js +1 -1
  92. package/dist/index.cjs243.js.map +1 -1
  93. package/dist/index.cjs246.js.map +1 -1
  94. package/dist/index.cjs247.js +1 -1
  95. package/dist/index.cjs247.js.map +1 -1
  96. package/dist/index.cjs25.js.map +1 -1
  97. package/dist/index.cjs252.js +1 -1
  98. package/dist/index.cjs252.js.map +1 -1
  99. package/dist/index.cjs253.js.map +1 -1
  100. package/dist/index.cjs254.js +1 -1
  101. package/dist/index.cjs254.js.map +1 -1
  102. package/dist/index.cjs256.js.map +1 -1
  103. package/dist/index.cjs257.js.map +1 -1
  104. package/dist/index.cjs258.js.map +1 -1
  105. package/dist/index.cjs261.js.map +1 -1
  106. package/dist/index.cjs262.js +1 -1
  107. package/dist/index.cjs27.js.map +1 -1
  108. package/dist/index.cjs28.js.map +1 -1
  109. package/dist/index.cjs30.js.map +1 -1
  110. package/dist/index.cjs301.js +1 -1
  111. package/dist/index.cjs309.js.map +1 -1
  112. package/dist/index.cjs31.js.map +1 -1
  113. package/dist/index.cjs314.js +1 -1
  114. package/dist/index.cjs32.js.map +1 -1
  115. package/dist/index.cjs320.js.map +1 -1
  116. package/dist/index.cjs322.js.map +1 -1
  117. package/dist/index.cjs326.js +1 -1
  118. package/dist/index.cjs327.js +1 -1
  119. package/dist/index.cjs33.js.map +1 -1
  120. package/dist/index.cjs331.js +1 -1
  121. package/dist/index.cjs331.js.map +1 -1
  122. package/dist/index.cjs334.js +1 -1
  123. package/dist/index.cjs334.js.map +1 -1
  124. package/dist/index.cjs335.js +2 -0
  125. package/dist/index.cjs335.js.map +1 -0
  126. package/dist/index.cjs336.js +2 -0
  127. package/dist/index.cjs336.js.map +1 -0
  128. package/dist/index.cjs337.js +1 -1
  129. package/dist/index.cjs337.js.map +1 -1
  130. package/dist/index.cjs338.js +1 -1
  131. package/dist/index.cjs338.js.map +1 -1
  132. package/dist/index.cjs339.js +1 -1
  133. package/dist/index.cjs339.js.map +1 -1
  134. package/dist/index.cjs34.js.map +1 -1
  135. package/dist/index.cjs340.js +1 -1
  136. package/dist/index.cjs340.js.map +1 -1
  137. package/dist/index.cjs342.js +1 -1
  138. package/dist/index.cjs342.js.map +1 -1
  139. package/dist/index.cjs343.js +1 -1
  140. package/dist/index.cjs343.js.map +1 -1
  141. package/dist/index.cjs344.js +1 -1
  142. package/dist/index.cjs344.js.map +1 -1
  143. package/dist/index.cjs348.js +1 -1
  144. package/dist/index.cjs348.js.map +1 -1
  145. package/dist/index.cjs349.js +1 -1
  146. package/dist/index.cjs349.js.map +1 -1
  147. package/dist/index.cjs35.js.map +1 -1
  148. package/dist/index.cjs350.js +1 -1
  149. package/dist/index.cjs350.js.map +1 -1
  150. package/dist/index.cjs351.js +1 -1
  151. package/dist/index.cjs351.js.map +1 -1
  152. package/dist/index.cjs352.js +1 -1
  153. package/dist/index.cjs352.js.map +1 -1
  154. package/dist/index.cjs353.js +1 -1
  155. package/dist/index.cjs353.js.map +1 -1
  156. package/dist/index.cjs354.js +1 -1
  157. package/dist/index.cjs354.js.map +1 -1
  158. package/dist/index.cjs36.js.map +1 -1
  159. package/dist/{index.cjs332.js → index.cjs369.js} +1 -1
  160. package/dist/index.cjs369.js.map +1 -0
  161. package/dist/index.cjs37.js.map +1 -1
  162. package/dist/index.cjs370.js +2 -0
  163. package/dist/index.cjs370.js.map +1 -0
  164. package/dist/{index.cjs347.js → index.cjs371.js} +1 -1
  165. package/dist/{index.cjs347.js.map → index.cjs371.js.map} +1 -1
  166. package/dist/index.cjs372.js +2 -0
  167. package/dist/index.cjs372.js.map +1 -0
  168. package/dist/index.cjs373.js +2 -0
  169. package/dist/index.cjs373.js.map +1 -0
  170. package/dist/index.cjs374.js +2 -0
  171. package/dist/index.cjs374.js.map +1 -0
  172. package/dist/{index.cjs356.js → index.cjs375.js} +2 -2
  173. package/dist/{index.cjs356.js.map → index.cjs375.js.map} +1 -1
  174. package/dist/index.cjs376.js +1 -1
  175. package/dist/index.cjs376.js.map +1 -1
  176. package/dist/index.cjs377.js +1 -1
  177. package/dist/index.cjs377.js.map +1 -1
  178. package/dist/index.cjs378.js +1 -1
  179. package/dist/index.cjs378.js.map +1 -1
  180. package/dist/{index.cjs365.js → index.cjs379.js} +2 -2
  181. package/dist/{index.cjs365.js.map → index.cjs379.js.map} +1 -1
  182. package/dist/index.cjs38.js.map +1 -1
  183. package/dist/{index.cjs366.js → index.cjs380.js} +2 -2
  184. package/dist/{index.cjs366.js.map → index.cjs380.js.map} +1 -1
  185. package/dist/index.cjs381.js +2 -0
  186. package/dist/index.cjs381.js.map +1 -0
  187. package/dist/index.cjs382.js +1 -1
  188. package/dist/index.cjs382.js.map +1 -1
  189. package/dist/index.cjs383.js +1 -1
  190. package/dist/index.cjs383.js.map +1 -1
  191. package/dist/index.cjs384.js +1 -1
  192. package/dist/index.cjs384.js.map +1 -1
  193. package/dist/index.cjs385.js +1 -4
  194. package/dist/index.cjs385.js.map +1 -1
  195. package/dist/index.cjs386.js +1 -1
  196. package/dist/index.cjs386.js.map +1 -1
  197. package/dist/index.cjs387.js +1 -1
  198. package/dist/index.cjs387.js.map +1 -1
  199. package/dist/index.cjs388.js +1 -1
  200. package/dist/index.cjs388.js.map +1 -1
  201. package/dist/index.cjs389.js +1 -1
  202. package/dist/index.cjs389.js.map +1 -1
  203. package/dist/index.cjs39.js.map +1 -1
  204. package/dist/index.cjs390.js +1 -38
  205. package/dist/index.cjs390.js.map +1 -1
  206. package/dist/index.cjs391.js +1 -1
  207. package/dist/index.cjs391.js.map +1 -1
  208. package/dist/index.cjs392.js +1 -1
  209. package/dist/index.cjs392.js.map +1 -1
  210. package/dist/index.cjs393.js +1 -1
  211. package/dist/index.cjs393.js.map +1 -1
  212. package/dist/index.cjs394.js +1 -1
  213. package/dist/index.cjs394.js.map +1 -1
  214. package/dist/index.cjs395.js +4 -1
  215. package/dist/index.cjs395.js.map +1 -1
  216. package/dist/index.cjs396.js +1 -1
  217. package/dist/index.cjs396.js.map +1 -1
  218. package/dist/index.cjs397.js +5 -1
  219. package/dist/index.cjs397.js.map +1 -1
  220. package/dist/index.cjs398.js +1 -1
  221. package/dist/index.cjs398.js.map +1 -1
  222. package/dist/index.cjs399.js +1 -1
  223. package/dist/index.cjs399.js.map +1 -1
  224. package/dist/index.cjs40.js.map +1 -1
  225. package/dist/index.cjs400.js +1 -1
  226. package/dist/index.cjs400.js.map +1 -1
  227. package/dist/index.cjs401.js +2 -0
  228. package/dist/index.cjs401.js.map +1 -0
  229. package/dist/index.cjs402.js +2 -0
  230. package/dist/index.cjs402.js.map +1 -0
  231. package/dist/index.cjs403.js +1 -1
  232. package/dist/index.cjs403.js.map +1 -1
  233. package/dist/index.cjs404.js +1 -1
  234. package/dist/index.cjs404.js.map +1 -1
  235. package/dist/index.cjs405.js +1 -1
  236. package/dist/index.cjs405.js.map +1 -1
  237. package/dist/index.cjs406.js +1 -1
  238. package/dist/index.cjs406.js.map +1 -1
  239. package/dist/index.cjs407.js +1 -1
  240. package/dist/index.cjs407.js.map +1 -1
  241. package/dist/index.cjs408.js +1 -1
  242. package/dist/index.cjs408.js.map +1 -1
  243. package/dist/index.cjs409.js +38 -1
  244. package/dist/index.cjs409.js.map +1 -1
  245. package/dist/index.cjs41.js.map +1 -1
  246. package/dist/index.cjs410.js +1 -1
  247. package/dist/index.cjs410.js.map +1 -1
  248. package/dist/index.cjs411.js +1 -5
  249. package/dist/index.cjs411.js.map +1 -1
  250. package/dist/index.cjs412.js +1 -1
  251. package/dist/index.cjs412.js.map +1 -1
  252. package/dist/index.cjs413.js +1 -1
  253. package/dist/index.cjs413.js.map +1 -1
  254. package/dist/index.cjs414.js +1 -1
  255. package/dist/index.cjs414.js.map +1 -1
  256. package/dist/index.cjs415.js +1 -1
  257. package/dist/index.cjs415.js.map +1 -1
  258. package/dist/index.cjs416.js +1 -1
  259. package/dist/index.cjs416.js.map +1 -1
  260. package/dist/index.cjs417.js +1 -1
  261. package/dist/index.cjs417.js.map +1 -1
  262. package/dist/index.cjs418.js +1 -1
  263. package/dist/index.cjs418.js.map +1 -1
  264. package/dist/index.cjs419.js +1 -1
  265. package/dist/index.cjs419.js.map +1 -1
  266. package/dist/index.cjs42.js.map +1 -1
  267. package/dist/index.cjs43.js.map +1 -1
  268. package/dist/index.cjs44.js.map +1 -1
  269. package/dist/index.cjs45.js.map +1 -1
  270. package/dist/index.cjs46.js.map +1 -1
  271. package/dist/index.cjs47.js.map +1 -1
  272. package/dist/index.cjs48.js.map +1 -1
  273. package/dist/index.cjs49.js.map +1 -1
  274. package/dist/index.cjs50.js.map +1 -1
  275. package/dist/index.cjs51.js.map +1 -1
  276. package/dist/index.cjs52.js.map +1 -1
  277. package/dist/index.cjs53.js.map +1 -1
  278. package/dist/index.cjs54.js.map +1 -1
  279. package/dist/index.cjs56.js.map +1 -1
  280. package/dist/index.cjs57.js.map +1 -1
  281. package/dist/index.cjs58.js.map +1 -1
  282. package/dist/index.cjs59.js.map +1 -1
  283. package/dist/index.cjs6.js.map +1 -1
  284. package/dist/index.cjs60.js.map +1 -1
  285. package/dist/index.cjs61.js.map +1 -1
  286. package/dist/index.cjs62.js.map +1 -1
  287. package/dist/index.cjs63.js.map +1 -1
  288. package/dist/index.cjs64.js.map +1 -1
  289. package/dist/index.cjs65.js +1 -1
  290. package/dist/index.cjs65.js.map +1 -1
  291. package/dist/index.cjs67.js.map +1 -1
  292. package/dist/index.cjs68.js.map +1 -1
  293. package/dist/index.cjs69.js.map +1 -1
  294. package/dist/index.cjs7.js.map +1 -1
  295. package/dist/index.cjs71.js.map +1 -1
  296. package/dist/index.cjs72.js.map +1 -1
  297. package/dist/index.cjs73.js.map +1 -1
  298. package/dist/index.cjs74.js.map +1 -1
  299. package/dist/index.cjs75.js.map +1 -1
  300. package/dist/index.cjs76.js.map +1 -1
  301. package/dist/index.cjs77.js.map +1 -1
  302. package/dist/index.cjs78.js.map +1 -1
  303. package/dist/index.cjs79.js.map +1 -1
  304. package/dist/index.cjs8.js.map +1 -1
  305. package/dist/index.cjs80.js.map +1 -1
  306. package/dist/index.cjs81.js.map +1 -1
  307. package/dist/index.cjs82.js.map +1 -1
  308. package/dist/index.cjs83.js.map +1 -1
  309. package/dist/index.cjs84.js.map +1 -1
  310. package/dist/index.cjs85.js.map +1 -1
  311. package/dist/index.cjs86.js.map +1 -1
  312. package/dist/index.cjs87.js.map +1 -1
  313. package/dist/index.cjs88.js.map +1 -1
  314. package/dist/index.cjs90.js.map +1 -1
  315. package/dist/index.cjs91.js.map +1 -1
  316. package/dist/index.cjs94.js.map +1 -1
  317. package/dist/index.cjs95.js.map +1 -1
  318. package/dist/index.cjs96.js.map +1 -1
  319. package/dist/index.cjs97.js.map +1 -1
  320. package/dist/index.cjs98.js.map +1 -1
  321. package/dist/index.cjs99.js.map +1 -1
  322. package/dist/index.d.ts +1 -1
  323. package/dist/index.es.js.map +1 -1
  324. package/dist/index.es10.js.map +1 -1
  325. package/dist/index.es101.js.map +1 -1
  326. package/dist/index.es103.js.map +1 -1
  327. package/dist/index.es104.js.map +1 -1
  328. package/dist/index.es105.js.map +1 -1
  329. package/dist/index.es106.js.map +1 -1
  330. package/dist/index.es109.js.map +1 -1
  331. package/dist/index.es11.js.map +1 -1
  332. package/dist/index.es112.js.map +1 -1
  333. package/dist/index.es114.js.map +1 -1
  334. package/dist/index.es115.js.map +1 -1
  335. package/dist/index.es116.js.map +1 -1
  336. package/dist/index.es117.js.map +1 -1
  337. package/dist/index.es118.js.map +1 -1
  338. package/dist/index.es119.js.map +1 -1
  339. package/dist/index.es12.js.map +1 -1
  340. package/dist/index.es120.js.map +1 -1
  341. package/dist/index.es121.js.map +1 -1
  342. package/dist/index.es122.js.map +1 -1
  343. package/dist/index.es123.js.map +1 -1
  344. package/dist/index.es124.js.map +1 -1
  345. package/dist/index.es125.js.map +1 -1
  346. package/dist/index.es126.js.map +1 -1
  347. package/dist/index.es127.js.map +1 -1
  348. package/dist/index.es128.js.map +1 -1
  349. package/dist/index.es129.js.map +1 -1
  350. package/dist/index.es13.js.map +1 -1
  351. package/dist/index.es130.js.map +1 -1
  352. package/dist/index.es131.js.map +1 -1
  353. package/dist/index.es132.js.map +1 -1
  354. package/dist/index.es133.js.map +1 -1
  355. package/dist/index.es134.js.map +1 -1
  356. package/dist/index.es135.js.map +1 -1
  357. package/dist/index.es136.js.map +1 -1
  358. package/dist/index.es137.js.map +1 -1
  359. package/dist/index.es138.js.map +1 -1
  360. package/dist/index.es139.js.map +1 -1
  361. package/dist/index.es14.js.map +1 -1
  362. package/dist/index.es140.js.map +1 -1
  363. package/dist/index.es141.js.map +1 -1
  364. package/dist/index.es142.js.map +1 -1
  365. package/dist/index.es143.js.map +1 -1
  366. package/dist/index.es144.js.map +1 -1
  367. package/dist/index.es145.js.map +1 -1
  368. package/dist/index.es146.js.map +1 -1
  369. package/dist/index.es147.js.map +1 -1
  370. package/dist/index.es148.js.map +1 -1
  371. package/dist/index.es149.js.map +1 -1
  372. package/dist/index.es15.js.map +1 -1
  373. package/dist/index.es150.js.map +1 -1
  374. package/dist/index.es151.js.map +1 -1
  375. package/dist/index.es152.js.map +1 -1
  376. package/dist/index.es153.js.map +1 -1
  377. package/dist/index.es154.js.map +1 -1
  378. package/dist/index.es155.js.map +1 -1
  379. package/dist/index.es156.js.map +1 -1
  380. package/dist/index.es157.js.map +1 -1
  381. package/dist/index.es158.js.map +1 -1
  382. package/dist/index.es159.js.map +1 -1
  383. package/dist/index.es16.js.map +1 -1
  384. package/dist/index.es160.js.map +1 -1
  385. package/dist/index.es17.js.map +1 -1
  386. package/dist/index.es18.js.map +1 -1
  387. package/dist/index.es19.js.map +1 -1
  388. package/dist/index.es197.js.map +1 -1
  389. package/dist/index.es199.js.map +1 -1
  390. package/dist/index.es20.js.map +1 -1
  391. package/dist/index.es203.js.map +1 -1
  392. package/dist/index.es207.js.map +1 -1
  393. package/dist/index.es21.js.map +1 -1
  394. package/dist/index.es210.js.map +1 -1
  395. package/dist/index.es213.js +7 -7
  396. package/dist/index.es216.js.map +1 -1
  397. package/dist/index.es217.js +1 -1
  398. package/dist/index.es217.js.map +1 -1
  399. package/dist/index.es22.js.map +1 -1
  400. package/dist/index.es224.js +8 -8
  401. package/dist/index.es225.js.map +1 -1
  402. package/dist/index.es228.js.map +1 -1
  403. package/dist/index.es23.js.map +1 -1
  404. package/dist/index.es233.js.map +1 -1
  405. package/dist/index.es235.js +14 -14
  406. package/dist/index.es236.js.map +1 -1
  407. package/dist/index.es237.js.map +1 -1
  408. package/dist/index.es238.js.map +1 -1
  409. package/dist/index.es239.js.map +1 -1
  410. package/dist/index.es241.js.map +1 -1
  411. package/dist/index.es242.js +1 -1
  412. package/dist/index.es242.js.map +1 -1
  413. package/dist/index.es243.js +1 -1
  414. package/dist/index.es243.js.map +1 -1
  415. package/dist/index.es246.js.map +1 -1
  416. package/dist/index.es247.js +1 -1
  417. package/dist/index.es247.js.map +1 -1
  418. package/dist/index.es25.js.map +1 -1
  419. package/dist/index.es252.js +1 -1
  420. package/dist/index.es252.js.map +1 -1
  421. package/dist/index.es253.js.map +1 -1
  422. package/dist/index.es254.js +1 -1
  423. package/dist/index.es254.js.map +1 -1
  424. package/dist/index.es256.js.map +1 -1
  425. package/dist/index.es257.js.map +1 -1
  426. package/dist/index.es258.js.map +1 -1
  427. package/dist/index.es261.js.map +1 -1
  428. package/dist/index.es262.js +7 -7
  429. package/dist/index.es27.js.map +1 -1
  430. package/dist/index.es28.js.map +1 -1
  431. package/dist/index.es30.js.map +1 -1
  432. package/dist/index.es301.js +4 -4
  433. package/dist/index.es309.js.map +1 -1
  434. package/dist/index.es31.js.map +1 -1
  435. package/dist/index.es314.js +8 -8
  436. package/dist/index.es32.js.map +1 -1
  437. package/dist/index.es320.js.map +1 -1
  438. package/dist/index.es322.js.map +1 -1
  439. package/dist/index.es326.js +1 -1
  440. package/dist/index.es327.js +1 -1
  441. package/dist/index.es33.js.map +1 -1
  442. package/dist/index.es331.js +15 -2
  443. package/dist/index.es331.js.map +1 -1
  444. package/dist/index.es334.js +7 -15
  445. package/dist/index.es334.js.map +1 -1
  446. package/dist/index.es335.js +30 -0
  447. package/dist/index.es335.js.map +1 -0
  448. package/dist/index.es336.js +71 -0
  449. package/dist/index.es336.js.map +1 -0
  450. package/dist/index.es337.js +29 -6
  451. package/dist/index.es337.js.map +1 -1
  452. package/dist/index.es338.js +32 -26
  453. package/dist/index.es338.js.map +1 -1
  454. package/dist/index.es339.js +617 -63
  455. package/dist/index.es339.js.map +1 -1
  456. package/dist/index.es34.js.map +1 -1
  457. package/dist/index.es340.js +10 -29
  458. package/dist/index.es340.js.map +1 -1
  459. package/dist/index.es342.js +5 -621
  460. package/dist/index.es342.js.map +1 -1
  461. package/dist/index.es343.js +24 -10
  462. package/dist/index.es343.js.map +1 -1
  463. package/dist/index.es344.js +68 -5
  464. package/dist/index.es344.js.map +1 -1
  465. package/dist/index.es348.js +120 -48
  466. package/dist/index.es348.js.map +1 -1
  467. package/dist/index.es349.js +130 -41
  468. package/dist/index.es349.js.map +1 -1
  469. package/dist/index.es35.js.map +1 -1
  470. package/dist/index.es350.js +14 -8
  471. package/dist/index.es350.js.map +1 -1
  472. package/dist/index.es351.js +12 -122
  473. package/dist/index.es351.js.map +1 -1
  474. package/dist/index.es352.js +8 -14
  475. package/dist/index.es352.js.map +1 -1
  476. package/dist/index.es353.js +48 -133
  477. package/dist/index.es353.js.map +1 -1
  478. package/dist/index.es354.js +49 -214
  479. package/dist/index.es354.js.map +1 -1
  480. package/dist/index.es36.js.map +1 -1
  481. package/dist/index.es369.js +5 -0
  482. package/dist/index.es369.js.map +1 -0
  483. package/dist/index.es37.js.map +1 -1
  484. package/dist/{index.es332.js → index.es370.js} +1 -1
  485. package/dist/index.es370.js.map +1 -0
  486. package/dist/{index.es347.js → index.es371.js} +1 -1
  487. package/dist/{index.es347.js.map → index.es371.js.map} +1 -1
  488. package/dist/index.es372.js +49 -0
  489. package/dist/index.es372.js.map +1 -0
  490. package/dist/index.es373.js +11 -0
  491. package/dist/index.es373.js.map +1 -0
  492. package/dist/index.es374.js +221 -0
  493. package/dist/index.es374.js.map +1 -0
  494. package/dist/{index.es356.js → index.es375.js} +10 -10
  495. package/dist/{index.es356.js.map → index.es375.js.map} +1 -1
  496. package/dist/index.es376.js +3 -24
  497. package/dist/index.es376.js.map +1 -1
  498. package/dist/index.es377.js +12 -29
  499. package/dist/index.es377.js.map +1 -1
  500. package/dist/index.es378.js +205 -5
  501. package/dist/index.es378.js.map +1 -1
  502. package/dist/{index.es365.js → index.es379.js} +2 -2
  503. package/dist/{index.es365.js.map → index.es379.js.map} +1 -1
  504. package/dist/index.es38.js.map +1 -1
  505. package/dist/{index.es366.js → index.es380.js} +4 -4
  506. package/dist/{index.es366.js.map → index.es380.js.map} +1 -1
  507. package/dist/index.es381.js +28 -0
  508. package/dist/index.es381.js.map +1 -0
  509. package/dist/index.es382.js +29 -5
  510. package/dist/index.es382.js.map +1 -1
  511. package/dist/index.es383.js +5 -3
  512. package/dist/index.es383.js.map +1 -1
  513. package/dist/index.es384.js +5 -24
  514. package/dist/index.es384.js.map +1 -1
  515. package/dist/index.es385.js +4 -110
  516. package/dist/index.es385.js.map +1 -1
  517. package/dist/index.es386.js +4 -15
  518. package/dist/index.es386.js.map +1 -1
  519. package/dist/index.es387.js +9 -522
  520. package/dist/index.es387.js.map +1 -1
  521. package/dist/index.es388.js +53 -124
  522. package/dist/index.es388.js.map +1 -1
  523. package/dist/index.es389.js +7 -128
  524. package/dist/index.es389.js.map +1 -1
  525. package/dist/index.es39.js.map +1 -1
  526. package/dist/index.es390.js +6 -69
  527. package/dist/index.es390.js.map +1 -1
  528. package/dist/index.es391.js +531 -7
  529. package/dist/index.es391.js.map +1 -1
  530. package/dist/index.es392.js +5 -14
  531. package/dist/index.es392.js.map +1 -1
  532. package/dist/index.es393.js +3 -62
  533. package/dist/index.es393.js.map +1 -1
  534. package/dist/index.es394.js +22 -63
  535. package/dist/index.es394.js.map +1 -1
  536. package/dist/index.es395.js +109 -3
  537. package/dist/index.es395.js.map +1 -1
  538. package/dist/index.es396.js +15 -22
  539. package/dist/index.es396.js.map +1 -1
  540. package/dist/index.es397.js +40 -13
  541. package/dist/index.es397.js.map +1 -1
  542. package/dist/index.es398.js +2 -28
  543. package/dist/index.es398.js.map +1 -1
  544. package/dist/index.es399.js +2 -5
  545. package/dist/index.es399.js.map +1 -1
  546. package/dist/index.es40.js.map +1 -1
  547. package/dist/index.es400.js +2 -23
  548. package/dist/index.es400.js.map +1 -1
  549. package/dist/index.es401.js +6 -0
  550. package/dist/index.es401.js.map +1 -0
  551. package/dist/index.es402.js +5 -0
  552. package/dist/index.es402.js.map +1 -0
  553. package/dist/index.es403.js +4 -5
  554. package/dist/index.es403.js.map +1 -1
  555. package/dist/index.es404.js +5 -4
  556. package/dist/index.es404.js.map +1 -1
  557. package/dist/index.es405.js +522 -4
  558. package/dist/index.es405.js.map +1 -1
  559. package/dist/index.es406.js +126 -9
  560. package/dist/index.es406.js.map +1 -1
  561. package/dist/index.es407.js +124 -51
  562. package/dist/index.es407.js.map +1 -1
  563. package/dist/index.es408.js +64 -7
  564. package/dist/index.es408.js.map +1 -1
  565. package/dist/index.es409.js +69 -6
  566. package/dist/index.es409.js.map +1 -1
  567. package/dist/index.es41.js.map +1 -1
  568. package/dist/index.es410.js +7 -531
  569. package/dist/index.es410.js.map +1 -1
  570. package/dist/index.es411.js +13 -39
  571. package/dist/index.es411.js.map +1 -1
  572. package/dist/index.es412.js +62 -2
  573. package/dist/index.es412.js.map +1 -1
  574. package/dist/index.es413.js +4 -2
  575. package/dist/index.es413.js.map +1 -1
  576. package/dist/index.es414.js +4 -2
  577. package/dist/index.es414.js.map +1 -1
  578. package/dist/index.es415.js +23 -3
  579. package/dist/index.es415.js.map +1 -1
  580. package/dist/index.es416.js +23 -2
  581. package/dist/index.es416.js.map +1 -1
  582. package/dist/index.es417.js +13 -4
  583. package/dist/index.es417.js.map +1 -1
  584. package/dist/index.es418.js +27 -4
  585. package/dist/index.es418.js.map +1 -1
  586. package/dist/index.es419.js +5 -4
  587. package/dist/index.es419.js.map +1 -1
  588. package/dist/index.es42.js.map +1 -1
  589. package/dist/index.es43.js.map +1 -1
  590. package/dist/index.es44.js.map +1 -1
  591. package/dist/index.es45.js.map +1 -1
  592. package/dist/index.es46.js.map +1 -1
  593. package/dist/index.es47.js.map +1 -1
  594. package/dist/index.es48.js.map +1 -1
  595. package/dist/index.es49.js.map +1 -1
  596. package/dist/index.es50.js.map +1 -1
  597. package/dist/index.es51.js.map +1 -1
  598. package/dist/index.es52.js.map +1 -1
  599. package/dist/index.es53.js.map +1 -1
  600. package/dist/index.es54.js.map +1 -1
  601. package/dist/index.es56.js.map +1 -1
  602. package/dist/index.es57.js.map +1 -1
  603. package/dist/index.es58.js.map +1 -1
  604. package/dist/index.es59.js.map +1 -1
  605. package/dist/index.es6.js.map +1 -1
  606. package/dist/index.es60.js.map +1 -1
  607. package/dist/index.es61.js.map +1 -1
  608. package/dist/index.es62.js.map +1 -1
  609. package/dist/index.es63.js.map +1 -1
  610. package/dist/index.es64.js.map +1 -1
  611. package/dist/index.es65.js +83 -81
  612. package/dist/index.es65.js.map +1 -1
  613. package/dist/index.es67.js.map +1 -1
  614. package/dist/index.es68.js.map +1 -1
  615. package/dist/index.es69.js.map +1 -1
  616. package/dist/index.es7.js.map +1 -1
  617. package/dist/index.es71.js.map +1 -1
  618. package/dist/index.es72.js.map +1 -1
  619. package/dist/index.es73.js.map +1 -1
  620. package/dist/index.es74.js.map +1 -1
  621. package/dist/index.es75.js.map +1 -1
  622. package/dist/index.es76.js.map +1 -1
  623. package/dist/index.es77.js.map +1 -1
  624. package/dist/index.es78.js.map +1 -1
  625. package/dist/index.es79.js.map +1 -1
  626. package/dist/index.es8.js.map +1 -1
  627. package/dist/index.es80.js.map +1 -1
  628. package/dist/index.es81.js.map +1 -1
  629. package/dist/index.es82.js.map +1 -1
  630. package/dist/index.es83.js.map +1 -1
  631. package/dist/index.es84.js.map +1 -1
  632. package/dist/index.es85.js.map +1 -1
  633. package/dist/index.es86.js.map +1 -1
  634. package/dist/index.es87.js.map +1 -1
  635. package/dist/index.es88.js.map +1 -1
  636. package/dist/index.es90.js.map +1 -1
  637. package/dist/index.es91.js.map +1 -1
  638. package/dist/index.es94.js.map +1 -1
  639. package/dist/index.es95.js.map +1 -1
  640. package/dist/index.es96.js.map +1 -1
  641. package/dist/index.es97.js.map +1 -1
  642. package/dist/index.es98.js.map +1 -1
  643. package/dist/index.es99.js.map +1 -1
  644. package/package.json +109 -109
  645. package/readme.md +42 -42
  646. package/dist/index.cjs332.js.map +0 -1
  647. package/dist/index.cjs341.js +0 -2
  648. package/dist/index.cjs341.js.map +0 -1
  649. package/dist/index.cjs345.js +0 -2
  650. package/dist/index.cjs345.js.map +0 -1
  651. package/dist/index.cjs346.js +0 -2
  652. package/dist/index.cjs346.js.map +0 -1
  653. package/dist/index.cjs355.js +0 -2
  654. package/dist/index.cjs355.js.map +0 -1
  655. package/dist/index.cjs357.js +0 -2
  656. package/dist/index.cjs357.js.map +0 -1
  657. package/dist/index.cjs358.js +0 -2
  658. package/dist/index.cjs358.js.map +0 -1
  659. package/dist/index.cjs359.js +0 -2
  660. package/dist/index.cjs359.js.map +0 -1
  661. package/dist/index.cjs363.js +0 -2
  662. package/dist/index.cjs363.js.map +0 -1
  663. package/dist/index.cjs364.js +0 -2
  664. package/dist/index.cjs364.js.map +0 -1
  665. package/dist/index.es332.js.map +0 -1
  666. package/dist/index.es341.js +0 -36
  667. package/dist/index.es341.js.map +0 -1
  668. package/dist/index.es345.js +0 -28
  669. package/dist/index.es345.js.map +0 -1
  670. package/dist/index.es346.js +0 -72
  671. package/dist/index.es346.js.map +0 -1
  672. package/dist/index.es355.js +0 -17
  673. package/dist/index.es355.js.map +0 -1
  674. package/dist/index.es357.js +0 -53
  675. package/dist/index.es357.js.map +0 -1
  676. package/dist/index.es358.js +0 -12
  677. package/dist/index.es358.js.map +0 -1
  678. package/dist/index.es359.js +0 -7
  679. package/dist/index.es359.js.map +0 -1
  680. package/dist/index.es363.js +0 -15
  681. package/dist/index.es363.js.map +0 -1
  682. package/dist/index.es364.js +0 -208
  683. package/dist/index.es364.js.map +0 -1
  684. /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
  685. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs27.js","sources":["../src/components/ui/CardMapStructure/index.tsx"],"sourcesContent":["import \"./CardMap.scss\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { AddressSchema } from \"@anoki/fse-common\";\nimport { Col } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype CardMapProps = {\n id: string;\n title: string;\n titleTag: HeadingLevel;\n href?: string;\n description?: string;\n isExternal?: boolean;\n showIcon?: boolean;\n asLink?: \"a\";\n className?: string;\n address?: AddressSchema;\n setSelectedCard?: (id: string) => void;\n};\nexport const CardMap = ({\n id,\n title,\n titleTag: TitleTag = \"h3\",\n href,\n description,\n isExternal = false,\n asLink = \"a\",\n className,\n address,\n setSelectedCard = () => {},\n}: CardMapProps) => {\n const LinkComponent = asLink;\n const [isActive, setIsActive] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsActive(false);\n }\n };\n\n if (isActive) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n } else {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isActive]);\n return (\n <Col\n as={\"div\"}\n justifyContent={\"center\"}\n ref={dropdownRef}\n br={\"x4\"}\n p={\"x24\"}\n bg={\"white\"}\n className={`${className} ${isActive ? \"ui-is-active\" : \"ui-card-search\"} shadow cursor-pointer text-slate-28`}\n onClick={() => {\n setIsActive(true);\n setSelectedCard(id);\n }}\n >\n <Col pb={\"x24\"}>\n <TitleTag className=\"flex-1\">\n <LinkComponent\n className={\"text-decoration-none fs-4 text-primary fw-semibold\"}\n href={href}\n target={isExternal ? \"_blank\" : undefined}\n rel={isExternal ? \"noreferrer noopener\" : undefined}\n >\n {title}\n </LinkComponent>\n </TitleTag>\n <p className=\"fs-6 fw-regular\">{description}</p>\n </Col>\n\n {address && address.streetName && (\n <Col as={\"footer\"} gap={\"x8\"} bg={\"white\"}>\n <h5 className={\"fw-semibold fs-6\"}>Indirizzo</h5>\n <p className={\"fw-regular\"}>{address.plainAddress}</p>\n </Col>\n )}\n </Col>\n );\n};\n"],"names":["CardMap","id","title","TitleTag","href","description","isExternal","asLink","className","address","setSelectedCard","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","useEffect","handleClickOutside","event","jsxs","Col","jsx"],"mappings":"yMAoBaA,EAAU,CAAC,CACtB,GAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,WAAAC,EAAa,GACb,OAAAC,EAAS,IACT,UAAAC,EACA,QAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAA,CAC1B,IAAoB,CAClB,MAAMC,EAAgBJ,EAChB,CAACK,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EAE/CC,OAAAA,EAAAA,UAAU,IAAM,CACR,MAAAC,EAAsBC,GAAsB,CAE9CJ,EAAY,SACZ,CAACA,EAAY,QAAQ,SAASI,EAAM,MAAc,GAElDN,EAAY,EAAK,CAErB,EAEA,OAAID,EACO,SAAA,iBAAiB,YAAaM,CAAkB,EAEhD,SAAA,oBAAoB,YAAaA,CAAkB,EAGvD,IAAM,CACF,SAAA,oBAAoB,YAAaA,CAAkB,CAC9D,CAAA,EACC,CAACN,CAAQ,CAAC,EAEXQ,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,MACJ,eAAgB,SAChB,IAAKN,EACL,GAAI,KACJ,EAAG,MACH,GAAI,QACJ,UAAW,GAAGP,CAAS,IAAII,EAAW,eAAiB,gBAAgB,uCACvE,QAAS,IAAM,CACbC,EAAY,EAAI,EAChBH,EAAgBT,CAAE,CACpB,EAEA,SAAA,CAACmB,EAAAA,kBAAAA,KAAAC,EAAAA,IAAA,CAAI,GAAI,MACP,SAAA,CAACC,EAAAA,kBAAAA,IAAAnB,EAAA,CAAS,UAAU,SAClB,SAAAmB,EAAA,kBAAA,IAACX,EAAA,CACC,UAAW,qDACX,KAAAP,EACA,OAAQE,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OAEzC,SAAAJ,CAAA,CAAA,EAEL,EACCoB,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,kBAAmB,SAAYjB,CAAA,CAAA,CAAA,EAC9C,EAECI,GAAWA,EAAQ,YACjBW,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,GAAI,SAAU,IAAK,KAAM,GAAI,QAChC,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAW,mBAAoB,SAAS,YAAA,EAC3CA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,aAAe,WAAQ,YAAa,CAAA,CAAA,CACpD,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
1
+ {"version":3,"file":"index.cjs27.js","sources":["../src/components/ui/CardMapStructure/index.tsx"],"sourcesContent":["import \"./CardMap.scss\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { AddressSchema } from \"@anoki/fse-common\";\r\nimport { Col } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype CardMapProps = {\r\n id: string;\r\n title: string;\r\n titleTag: HeadingLevel;\r\n href?: string;\r\n description?: string;\r\n isExternal?: boolean;\r\n showIcon?: boolean;\r\n asLink?: \"a\";\r\n className?: string;\r\n address?: AddressSchema;\r\n setSelectedCard?: (id: string) => void;\r\n};\r\nexport const CardMap = ({\r\n id,\r\n title,\r\n titleTag: TitleTag = \"h3\",\r\n href,\r\n description,\r\n isExternal = false,\r\n asLink = \"a\",\r\n className,\r\n address,\r\n setSelectedCard = () => {},\r\n}: CardMapProps) => {\r\n const LinkComponent = asLink;\r\n const [isActive, setIsActive] = useState(false);\r\n const dropdownRef = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const handleClickOutside = (event: MouseEvent) => {\r\n if (\r\n dropdownRef.current &&\r\n !dropdownRef.current.contains(event.target as Node)\r\n ) {\r\n setIsActive(false);\r\n }\r\n };\r\n\r\n if (isActive) {\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n } else {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n }\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [isActive]);\r\n return (\r\n <Col\r\n as={\"div\"}\r\n justifyContent={\"center\"}\r\n ref={dropdownRef}\r\n br={\"x4\"}\r\n p={\"x24\"}\r\n bg={\"white\"}\r\n className={`${className} ${isActive ? \"ui-is-active\" : \"ui-card-search\"} shadow cursor-pointer text-slate-28`}\r\n onClick={() => {\r\n setIsActive(true);\r\n setSelectedCard(id);\r\n }}\r\n >\r\n <Col pb={\"x24\"}>\r\n <TitleTag className=\"flex-1\">\r\n <LinkComponent\r\n className={\"text-decoration-none fs-4 text-primary fw-semibold\"}\r\n href={href}\r\n target={isExternal ? \"_blank\" : undefined}\r\n rel={isExternal ? \"noreferrer noopener\" : undefined}\r\n >\r\n {title}\r\n </LinkComponent>\r\n </TitleTag>\r\n <p className=\"fs-6 fw-regular\">{description}</p>\r\n </Col>\r\n\r\n {address && address.streetName && (\r\n <Col as={\"footer\"} gap={\"x8\"} bg={\"white\"}>\r\n <h5 className={\"fw-semibold fs-6\"}>Indirizzo</h5>\r\n <p className={\"fw-regular\"}>{address.plainAddress}</p>\r\n </Col>\r\n )}\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardMap","id","title","TitleTag","href","description","isExternal","asLink","className","address","setSelectedCard","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","useEffect","handleClickOutside","event","jsxs","Col","jsx"],"mappings":"yMAoBaA,EAAU,CAAC,CACtB,GAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,WAAAC,EAAa,GACb,OAAAC,EAAS,IACT,UAAAC,EACA,QAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAA,CAC1B,IAAoB,CAClB,MAAMC,EAAgBJ,EAChB,CAACK,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EAE/CC,OAAAA,EAAAA,UAAU,IAAM,CACR,MAAAC,EAAsBC,GAAsB,CAE9CJ,EAAY,SACZ,CAACA,EAAY,QAAQ,SAASI,EAAM,MAAc,GAElDN,EAAY,EAAK,CAErB,EAEA,OAAID,EACO,SAAA,iBAAiB,YAAaM,CAAkB,EAEhD,SAAA,oBAAoB,YAAaA,CAAkB,EAGvD,IAAM,CACF,SAAA,oBAAoB,YAAaA,CAAkB,CAC9D,CAAA,EACC,CAACN,CAAQ,CAAC,EAEXQ,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,MACJ,eAAgB,SAChB,IAAKN,EACL,GAAI,KACJ,EAAG,MACH,GAAI,QACJ,UAAW,GAAGP,CAAS,IAAII,EAAW,eAAiB,gBAAgB,uCACvE,QAAS,IAAM,CACbC,EAAY,EAAI,EAChBH,EAAgBT,CAAE,CACpB,EAEA,SAAA,CAACmB,EAAAA,kBAAAA,KAAAC,EAAAA,IAAA,CAAI,GAAI,MACP,SAAA,CAACC,EAAAA,kBAAAA,IAAAnB,EAAA,CAAS,UAAU,SAClB,SAAAmB,EAAA,kBAAA,IAACX,EAAA,CACC,UAAW,qDACX,KAAAP,EACA,OAAQE,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OAEzC,SAAAJ,CAAA,CAAA,EAEL,EACCoB,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,kBAAmB,SAAYjB,CAAA,CAAA,CAAA,EAC9C,EAECI,GAAWA,EAAQ,YACjBW,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,GAAI,SAAU,IAAK,KAAM,GAAI,QAChC,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAW,mBAAoB,SAAS,YAAA,EAC3CA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,aAAe,WAAQ,YAAa,CAAA,CAAA,CACpD,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs28.js","sources":["../src/components/ui/CardMapDoctor/index.tsx"],"sourcesContent":["import \"./CardMapDoctor.scss\";\nimport { useRef, useState } from \"react\";\nimport { GeneralPractitionerResponse } from \"@anoki/fse-common/dist/types/general-practitioner-service\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { useClickOutside } from \"@/hooks/useClickOutside.ts\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype CardMapDoctorProps = {\n titleTag: HeadingLevel;\n availableLabel: string;\n specialization?: string;\n href?: string;\n addressLabel?: string;\n linkLabel?: string;\n asLink?: \"a\";\n className?: string;\n doctor: GeneralPractitionerResponse;\n setSelectedCard?: (id: string) => void;\n keepSelectionOnNavigation?: boolean;\n};\n\nexport const CardMapDoctor = ({\n titleTag: TitleTag = \"h3\",\n availableLabel = \"Disponibile\",\n specialization,\n href = \"/\",\n addressLabel,\n linkLabel = \"Apri dettaglio\",\n asLink = \"a\",\n className,\n doctor,\n setSelectedCard = () => {},\n keepSelectionOnNavigation = false,\n}: CardMapDoctorProps) => {\n const LinkComponent = asLink;\n const [isActive, setIsActive] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const address = doctor?.offices[0];\n useClickOutside(\n dropdownRef,\n isActive,\n () => setIsActive(false),\n () => setSelectedCard(\"\"),\n keepSelectionOnNavigation,\n );\n\n const linkContent = (\n <LinkComponent\n className={\"text-decoration-none fs-7 fw-bold text-primary\"}\n href={href}\n >\n {linkLabel?.toUpperCase()}\n </LinkComponent>\n );\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isActive ? \"ui-is-active ui-card-search\" : \"ui-card-search\"} shadow cursor-pointer`}\n onClick={() => {\n setIsActive(true);\n setSelectedCard(doctor?.code);\n }}\n >\n <CheckboxRadix.Root\n id={doctor?.code}\n checked={isActive}\n // onCheckedChange={onChange}\n className={\"ui-checkbox-filter\"}\n // aria-label={labelText}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n <Col justifyContent={\"center\"} className={`w-full`}>\n <Col pb={\"x16\"}>\n <TitleTag className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\n Dott. {doctor?.firstName} {doctor?.lastName}\n </TitleTag>\n {!!specialization && (\n <p className=\"fs-6 fw-regular text-slate-28\">{specialization}</p>\n )}\n <div\n className={\n \"ui-available-label mt-x4 px-x16 py-x4 bg-status-success text-white rounded fw-semibold fs-7\"\n }\n >\n {availableLabel.toUpperCase()}\n </div>\n </Col>\n <div className={\"text-slate-28 fs-6\"}>\n <div className={\"fw-bold\"}>{addressLabel}</div>\n <div className={\"w-full\"}>\n <p className={\"fw-regular\"}>\n {address?.address\n ? address.address.charAt(0).toUpperCase() +\n address.address.slice(1).toLowerCase()\n : \"\"}\n ,{\" \"}\n {address?.city\n ? address.city.charAt(0).toUpperCase() +\n address.city.slice(1).toLowerCase()\n : \"\"}\n </p>\n </div>\n <div className={\"pt-x8\"}>{linkContent}</div>\n </div>\n </Col>\n </Row>\n );\n};\n"],"names":["CardMapDoctor","TitleTag","availableLabel","specialization","href","addressLabel","linkLabel","asLink","className","doctor","setSelectedCard","keepSelectionOnNavigation","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","address","useClickOutside","linkContent","jsx","CheckIcon","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"oSAuBaA,EAAgB,CAAC,CAC5B,SAAUC,EAAW,KACrB,eAAAC,EAAiB,cACjB,eAAAC,EACA,KAAAC,EAAO,IACP,aAAAC,EACA,UAAAC,EAAY,iBACZ,OAAAC,EAAS,IACT,UAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAC,EACzB,0BAAAC,EAA4B,EAC9B,IAA0B,CACxB,MAAMC,EAAgBL,EAChB,CAACM,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EACzCC,EAAUT,GAAA,YAAAA,EAAQ,QAAQ,GAChCU,EAAA,gBACEH,EACAH,EACA,IAAMC,EAAY,EAAK,EACvB,IAAMJ,EAAgB,EAAE,EACxBC,CACF,EAEA,MAAMS,EACJC,EAAA,kBAAA,IAACT,EAAA,CACC,UAAW,iDACX,KAAAR,EAEC,0BAAW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MAAI,CAAA,UAAW,SACd,SAACkB,EAAA,kBAAA,KAAA,IAAA,CAAE,UAAW,aACX,SAAA,CAAAL,GAAA,MAAAA,EAAS,QACNA,EAAQ,QAAQ,OAAO,CAAC,EAAE,YAC1B,EAAAA,EAAQ,QAAQ,MAAM,CAAC,EAAE,YACzB,EAAA,GAAG,IACL,IACDA,GAAA,MAAAA,EAAS,KACNA,EAAQ,KAAK,OAAO,CAAC,EAAE,YAAY,EACnCA,EAAQ,KAAK,MAAM,CAAC,EAAE,cACtB,EAAA,CAAA,CACN,CACF,CAAA,EACCG,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,QAAU,SAAYD,CAAA,CAAA,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs28.js","sources":["../src/components/ui/CardMapDoctor/index.tsx"],"sourcesContent":["import \"./CardMapDoctor.scss\";\r\nimport { useRef, useState } from \"react\";\r\nimport { GeneralPractitionerResponse } from \"@anoki/fse-common/dist/types/general-practitioner-service\";\r\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\r\nimport { useClickOutside } from \"@/hooks/useClickOutside.ts\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype CardMapDoctorProps = {\r\n titleTag: HeadingLevel;\r\n availableLabel: string;\r\n specialization?: string;\r\n href?: string;\r\n addressLabel?: string;\r\n linkLabel?: string;\r\n asLink?: \"a\";\r\n className?: string;\r\n doctor: GeneralPractitionerResponse;\r\n setSelectedCard?: (id: string) => void;\r\n keepSelectionOnNavigation?: boolean;\r\n};\r\n\r\nexport const CardMapDoctor = ({\r\n titleTag: TitleTag = \"h3\",\r\n availableLabel = \"Disponibile\",\r\n specialization,\r\n href = \"/\",\r\n addressLabel,\r\n linkLabel = \"Apri dettaglio\",\r\n asLink = \"a\",\r\n className,\r\n doctor,\r\n setSelectedCard = () => {},\r\n keepSelectionOnNavigation = false,\r\n}: CardMapDoctorProps) => {\r\n const LinkComponent = asLink;\r\n const [isActive, setIsActive] = useState(false);\r\n const dropdownRef = useRef<HTMLDivElement>(null);\r\n const address = doctor?.offices[0];\r\n useClickOutside(\r\n dropdownRef,\r\n isActive,\r\n () => setIsActive(false),\r\n () => setSelectedCard(\"\"),\r\n keepSelectionOnNavigation,\r\n );\r\n\r\n const linkContent = (\r\n <LinkComponent\r\n className={\"text-decoration-none fs-7 fw-bold text-primary\"}\r\n href={href}\r\n >\r\n {linkLabel?.toUpperCase()}\r\n </LinkComponent>\r\n );\r\n\r\n const CheckIcon = () => (\r\n <svg\r\n width=\"14\"\r\n height=\"14\"\r\n viewBox=\"0 0 12 12\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n >\r\n <path\r\n d=\"M10 3L4.5 8.5L2 6\"\r\n stroke=\"white\"\r\n strokeWidth=\"2\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n </svg>\r\n );\r\n\r\n return (\r\n <Row\r\n br={\"x4\"}\r\n p={\"x24\"}\r\n gap={\"x16\"}\r\n bg={\"white\"}\r\n text={\"slate-20\"}\r\n ref={dropdownRef}\r\n className={`${className} ${isActive ? \"ui-is-active ui-card-search\" : \"ui-card-search\"} shadow cursor-pointer`}\r\n onClick={() => {\r\n setIsActive(true);\r\n setSelectedCard(doctor?.code);\r\n }}\r\n >\r\n <CheckboxRadix.Root\r\n id={doctor?.code}\r\n checked={isActive}\r\n // onCheckedChange={onChange}\r\n className={\"ui-checkbox-filter\"}\r\n // aria-label={labelText}\r\n >\r\n <CheckboxRadix.Indicator>\r\n <CheckIcon />\r\n </CheckboxRadix.Indicator>\r\n </CheckboxRadix.Root>\r\n <Col justifyContent={\"center\"} className={`w-full`}>\r\n <Col pb={\"x16\"}>\r\n <TitleTag className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\r\n Dott. {doctor?.firstName} {doctor?.lastName}\r\n </TitleTag>\r\n {!!specialization && (\r\n <p className=\"fs-6 fw-regular text-slate-28\">{specialization}</p>\r\n )}\r\n <div\r\n className={\r\n \"ui-available-label mt-x4 px-x16 py-x4 bg-status-success text-white rounded fw-semibold fs-7\"\r\n }\r\n >\r\n {availableLabel.toUpperCase()}\r\n </div>\r\n </Col>\r\n <div className={\"text-slate-28 fs-6\"}>\r\n <div className={\"fw-bold\"}>{addressLabel}</div>\r\n <div className={\"w-full\"}>\r\n <p className={\"fw-regular\"}>\r\n {address?.address\r\n ? address.address.charAt(0).toUpperCase() +\r\n address.address.slice(1).toLowerCase()\r\n : \"\"}\r\n ,{\" \"}\r\n {address?.city\r\n ? address.city.charAt(0).toUpperCase() +\r\n address.city.slice(1).toLowerCase()\r\n : \"\"}\r\n </p>\r\n </div>\r\n <div className={\"pt-x8\"}>{linkContent}</div>\r\n </div>\r\n </Col>\r\n </Row>\r\n );\r\n};\r\n"],"names":["CardMapDoctor","TitleTag","availableLabel","specialization","href","addressLabel","linkLabel","asLink","className","doctor","setSelectedCard","keepSelectionOnNavigation","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","address","useClickOutside","linkContent","jsx","CheckIcon","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"oSAuBaA,EAAgB,CAAC,CAC5B,SAAUC,EAAW,KACrB,eAAAC,EAAiB,cACjB,eAAAC,EACA,KAAAC,EAAO,IACP,aAAAC,EACA,UAAAC,EAAY,iBACZ,OAAAC,EAAS,IACT,UAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAC,EACzB,0BAAAC,EAA4B,EAC9B,IAA0B,CACxB,MAAMC,EAAgBL,EAChB,CAACM,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EACzCC,EAAUT,GAAA,YAAAA,EAAQ,QAAQ,GAChCU,EAAA,gBACEH,EACAH,EACA,IAAMC,EAAY,E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AE,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAW,qBACd,SAAA,CAACF,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAY,SAAahB,EAAA,0BACxC,MAAI,CAAA,UAAW,SACd,SAACkB,EAAA,kBAAA,KAAA,IAAA,CAAE,UAAW,aACX,SAAA,CAAAL,GAAA,MAAAA,EAAS,QACNA,EAAQ,QAAQ,OAAO,CAAC,EAAE,YAC1B,EAAAA,EAAQ,QAAQ,MAAM,CAAC,EAAE,YACzB,EAAA,GAAG,IACL,IACDA,GAAA,MAAAA,EAAS,KACNA,EAAQ,KAAK,OAAO,CAAC,EAAE,YAAY,EACnCA,EAAQ,KAAK,MAAM,CAAC,EAAE,cACtB,EAAA,CAAA,CACN,CACF,CAAA,EACCG,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,QAAU,SAAYD,CAAA,CAAA,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\nimport { ComponentType } from \"react\";\nimport { Download } from \"../../../icons\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n asLink?: \"a\" | ComponentType<any>;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n asLink = \"a\",\n}: CardDocumentProps) => {\n const LinkComponent = asLink;\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n \"ui-document-download-row\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <Download />\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n as={\"header\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n py={\"x8\"}\n px={\"x24\"}\n className={\"ui-document-header\"}\n >\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\n <Row>\n {releaseDateLabel} {date}\n </Row>\n </Row>\n <main className={\"p-x16\"}>\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\n <div>\n <Row pb={\"x8\"}>{documentType}</Row>\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\n <Row pt={\"x8\"}>\n {label && (\n <div\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\n style={{ width: \"max-content\" }}\n >\n {label}\n </div>\n )}\n </Row>\n </div>\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\n </Col>\n {!isDesktop ? (\n <Col as={\"footer\"} gap={\"x16\"}>\n {renderDownloadAction()}\n <Divider bg={\"border-divider\"} />\n <Button\n className=\"filter-button fs-7 fw-semibold w-full\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n >\n {openDocumentLabel}\n </Button>\n </Col>\n ) : (\n <Row\n as={\"footer\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n >\n {renderDownloadAction()}\n {CTA && (\n <Button\n className=\"filter-button fs-7 text-primary fw-semibold\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={LinkComponent}\n href={hrefDocument}\n >\n {CTA}\n </Button>\n )}\n </Row>\n )}\n </main>\n </div>\n );\n};\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","asLink","LinkComponent","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Download","Loader","Col","Button","Divider"],"mappings":"2YA4BaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EAAO,WACP,aAAAC,EACA,cAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,IAAAC,EACA,uBAAAC,EACA,aAAAC,EAAe,IACf,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,iBACpB,iBAAAC,EAAmB,YACnB,WAAAC,EAAa,YACb,OAAAC,EAAS,GACX,IAAyB,CACvB,MAAMC,EAAgBD,EAChBE,EAAYC,EAAAA,aAAa,EAEzBC,EAAuB,IACtBZ,EAEHa,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,SACZ,UAAWC,EAAA,KACT,CAACX,GAAa,iBACd,oCACA,0BACF,EACA,QAASA,EAAY,OAAYF,EAEjC,SAAA,CAAAc,EAAA,kBAAA,IAACC,EAAS,SAAA,EAAA,EACVD,EAAAA,kBAAAA,IAAC,KAAG,SAAOhB,CAAA,CAAA,EACVgB,EAAA,kBAAA,IAAAE,EAAA,OAAA,CAAO,QAASd,EAAW,UAAW,OAAS,CAAA,CAAA,CAAA,CAClD,EAdkB,KAmBpB,OAAAS,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWE,EAAA,KACT,8DACF,EAEA,SAAA,CAAAF,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gB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AC/BL,EAAA,kBAAA,IAACI,EAAA,OAAA,CACC,UAAU,wCACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMjB,EAEL,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./CardDocument.scss\";\r\nimport { Button, Col, Loader, Row } from \"@/components\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\r\nimport { ComponentType } from \"react\";\r\nimport { Download } from \"../../../icons\";\r\n\r\ntype CardDocumentProps = {\r\n eventNumber?: string;\r\n date?: string | number;\r\n documentType?: string;\r\n documentTitle: string;\r\n label?: string;\r\n subtitle?: string;\r\n action?: string;\r\n CTA?: string;\r\n iconView?: \"attachments\" | \"obscured\";\r\n favorite?: boolean;\r\n handleDownloadDocument?: () => void;\r\n hrefDocument?: string;\r\n isLoading?: boolean;\r\n openDocumentLabel?: string;\r\n releaseDateLabel?: string;\r\n eventLabel?: string;\r\n asLink?: \"a\" | ComponentType<any>;\r\n};\r\n\r\nexport const CardDocument = ({\r\n eventNumber,\r\n date = \"--/--/--\",\r\n documentType,\r\n documentTitle,\r\n label,\r\n subtitle,\r\n action,\r\n CTA,\r\n handleDownloadDocument,\r\n hrefDocument = \"#\",\r\n isLoading = false,\r\n openDocumentLabel = \"Apri documento\",\r\n releaseDateLabel = \"Emesso il\",\r\n eventLabel = \"Evento n.\",\r\n asLink = \"a\",\r\n}: CardDocumentProps) => {\r\n const LinkComponent = asLink;\r\n const isDesktop = useIsDesktop();\r\n\r\n const renderDownloadAction = () => {\r\n if (!action) return null;\r\n return (\r\n <Row\r\n alignItems={\"center\"}\r\n className={clsx(\r\n !isLoading && \"cursor-pointer\",\r\n \"text-decoration-none text-primary\",\r\n \"ui-document-download-row\",\r\n )}\r\n onClick={isLoading ? undefined : handleDownloadDocument}\r\n >\r\n <Download />\r\n <p>{action}</p>\r\n <Loader loading={isLoading} className={\"ml-x8\"} />\r\n </Row>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\r\n )}\r\n >\r\n <Row\r\n as={\"header\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n py={\"x8\"}\r\n px={\"x24\"}\r\n className={\"ui-document-header\"}\r\n >\r\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\r\n <Row>\r\n {releaseDateLabel} {date}\r\n </Row>\r\n </Row>\r\n <main className={\"p-x16\"}>\r\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\r\n <div>\r\n <Row pb={\"x8\"}>{documentType}</Row>\r\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\r\n <Row pt={\"x8\"}>\r\n {label && (\r\n <div\r\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\r\n style={{ width: \"max-content\" }}\r\n >\r\n {label}\r\n </div>\r\n )}\r\n </Row>\r\n </div>\r\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\r\n </Col>\r\n {!isDesktop ? (\r\n <Col as={\"footer\"} gap={\"x16\"}>\r\n {renderDownloadAction()}\r\n <Divider bg={\"border-divider\"} />\r\n <Button\r\n className=\"filter-button fs-7 fw-semibold w-full\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n >\r\n {openDocumentLabel}\r\n </Button>\r\n </Col>\r\n ) : (\r\n <Row\r\n as={\"footer\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n >\r\n {renderDownloadAction()}\r\n {CTA && (\r\n <Button\r\n className=\"filter-button fs-7 text-primary fw-semibold\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={LinkComponent}\r\n href={hrefDocument}\r\n >\r\n {CTA}\r\n </Button>\r\n )}\r\n </Row>\r\n )}\r\n </main>\r\n </div>\r\n );\r\n};\r\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","asLink","LinkComponent","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Download","Loader","Col","Button","Divider"],"mappings":"2YA4BaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EAAO,WACP,aAAAC,EACA,cAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,IAAAC,EACA,uBAAAC,EACA,aAAAC,EAAe,IACf,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,iBACpB,iBAAAC,EAAmB,YACnB,WAAAC,EAAa,YACb,OAAAC,EAAS,GACX,IAAyB,CACvB,MAAMC,EAAgBD,EAChBE,EAAYC,EAAAA,aAAa,EAEzBC,EAAuB,IACtBZ,EAEHa,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,SACZ,UAAWC,EAAA,KACT,CAACX,GAAa,iBACd,oCACA,0BACF,EACA,QAASA,EAAY,OAAYF,EAEjC,SAAA,CAAAc,EAAA,kBAAA,IAACC,EAAS,SAAA,EAAA,EACVD,EAAAA,kBAAAA,IAAC,KAAG,SAAOhB,CAAA,CAAA,EACVgB,EAAA,kBAAA,IAAAE,EAAA,OAAA,CAAO,QAASd,EAAW,UAAW,OAAS,CAAA,CAAA,CAAA,CAClD,EAdkB,KAmBpB,OAAAS,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWE,EAAA,KACT,8DACF,EAEA,SAAA,CAAAF,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gBAChB,WAAY,SACZ,GAAI,KACJ,GAAI,MACJ,UAAW,qBAEX,SAAA,CAAAE,EAAAA,kBAAAA,IAACF,OAAK,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B,EAEL,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs339.js"),E=require("./index.cjs338.js"),n=require("./index.cjs235.js"),h=require("./index.cjs337.js"),w=require("./index.cjs348.js"),i=require("./index.cjs185.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,I]=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 $="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=$;var L="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=L;var F="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=F;var c="AlertDialogContent",[G,W]=q(c),Y=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,u=s(t),g=l.useRef(null),P=E.useComposedRefs(o,g),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(G,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...u,...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(Y,{children:r}),i.jsxRuntimeExports.jsx(z,{contentRef:g})]})})})});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 k="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=k;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=W(O,t),u=s(t),g=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...u,...r,ref:g})});m.displayName=O;var z=({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.cjs336.js"),E=require("./index.cjs335.js"),n=require("./index.cjs235.js"),h=require("./index.cjs334.js"),w=require("./index.cjs354.js"),i=require("./index.cjs185.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,I]=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 $="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=$;var L="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=L;var F="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=F;var c="AlertDialogContent",[G,W]=q(c),Y=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,u=s(t),g=l.useRef(null),P=E.useComposedRefs(o,g),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(G,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...u,...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(Y,{children:r}),i.jsxRuntimeExports.jsx(z,{contentRef:g})]})})})});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 k="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=k;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=W(O,t),u=s(t),g=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...u,...r,ref:g})});m.displayName=O;var z=({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 +1 @@
1
- {"version":3,"file":"index.cjs309.js","sources":["../src/components/ui/ChangeProfileModal/ChangeProfileModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./ChangeProfileModalContent.scss\";\n\ntype ChangeProfileModalContentProps = {\n overrideClassNames?: string;\n children?: React.ReactNode;\n};\n\nexport const ChangeProfileModalContent = ({\n overrideClassNames,\n children,\n}: ChangeProfileModalContentProps) => {\n return (\n <div className={clsx(\"ui-consent-modal-body\", overrideClassNames)}>\n {children}\n </div>\n );\n};\n"],"names":["ChangeProfileModalContent","overrideClassNames","children","clsx"],"mappings":"iLAQO,MAAMA,EAA4B,CAAC,CACxC,mBAAAC,EACA,SAAAC,CACF,4BAEK,MAAI,CAAA,UAAWC,OAAK,wBAAyBF,CAAkB,EAC7D,SAAAC,EACH"}
1
+ {"version":3,"file":"index.cjs309.js","sources":["../src/components/ui/ChangeProfileModal/ChangeProfileModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./ChangeProfileModalContent.scss\";\r\n\r\ntype ChangeProfileModalContentProps = {\r\n overrideClassNames?: string;\r\n children?: React.ReactNode;\r\n};\r\n\r\nexport const ChangeProfileModalContent = ({\r\n overrideClassNames,\r\n children,\r\n}: ChangeProfileModalContentProps) => {\r\n return (\r\n <div className={clsx(\"ui-consent-modal-body\", overrideClassNames)}>\r\n {children}\r\n </div>\r\n );\r\n};\r\n"],"names":["ChangeProfileModalContent","overrideClassNames","children","clsx"],"mappings":"iLAQO,MAAMA,EAA4B,CAAC,CACxC,mBAAAC,EACA,SAAAC,CACF,4BAEK,MAAI,CAAA,UAAWC,OAAK,wBAAyBF,CAAkB,EAC7D,SAAAC,EACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\nimport clsx from \"clsx\";\nimport { OpeningHours } from \"@anoki/fse-common\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { DateTime } from \"luxon\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\ntype TimeSlot = { from: string; to: string };\n\ntype CardOpeningHoursProps = {\n title: string;\n titleTag: HeadingLevel;\n openingHours: OpeningHours;\n weekDaysMap: WeekDaysMap;\n openLabel?: string;\n todayLabel?: string;\n closeLabel?: string;\n open24Label?: string;\n opensSoonLabel?: string;\n opensAtLabel?: string;\n opensTomorrowLabel?: string;\n opensOnLabel?: string;\n atLabel?: string;\n closesAtLabel?: string;\n};\n\nexport const CardOpeningHours = ({\n title = \"Orari di apertura\",\n titleTag: TitleTag = \"h3\",\n openingHours,\n weekDaysMap,\n openLabel = \"Aperto\",\n todayLabel = \"Oggi\",\n closeLabel = \"Chiuso\",\n open24Label = \"24 ore su 24\",\n opensSoonLabel = \"Apre tra poco\",\n opensAtLabel = \"Apre alle\",\n opensTomorrowLabel = \"Apre domani\",\n opensOnLabel = \"Apre\",\n atLabel = \"alle\",\n closesAtLabel = \"Chiude alle\",\n}: CardOpeningHoursProps) => {\n const [activeDay, setActiveDay] = useState<number | null>(null);\n const [dayLabel, setDayLabel] = useState(\"\");\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\n const [isOpen, setIsOpen] = useState(false);\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\n\n const weekDays = Object.values(weekDaysMap);\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\n\n const formatCurrentTime = () => {\n return DateTime.now().toFormat(\"HH:mm\");\n };\n\n const parseTimeToMinutes = (timeStr: string): number => {\n const [hours, minutes] = timeStr.split(\":\").map(Number);\n return hours * 60 + minutes;\n };\n\n const isSlot24Hours = useCallback(\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\n [],\n );\n\n const is24HoursDay = useCallback(\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\n [isSlot24Hours],\n );\n\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\n for (const { from, to } of slots) {\n if (currentTime >= from && currentTime <= to) {\n return { open: true, closingTime: to };\n }\n }\n return { open: false, closingTime: \"\" };\n };\n\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\n for (const { from } of slots) {\n if (from > currentTime) {\n return from;\n }\n }\n return \"\";\n };\n\n const checkIsOpeningSoon = useCallback(\n (openingTime: string, currentTime: string) => {\n if (!openingTime) return false;\n\n const openMinutes = parseTimeToMinutes(openingTime);\n const currentMinutes = parseTimeToMinutes(currentTime);\n const diffMinutes = openMinutes - currentMinutes;\n\n return diffMinutes > 0 && diffMinutes <= 60;\n },\n [],\n );\n\n const getNextOpenDay = useCallback(\n (currentDayIndex: number) => {\n for (let i = 1; i <= 7; i++) {\n const nextIndex = (currentDayIndex + i) % 7;\n const nextDayKey = weekKeys[nextIndex];\n const nextDaySlots = openingHours[nextDayKey];\n\n if (nextDaySlots && nextDaySlots.length > 0) {\n return {\n dayName: weekDays[nextIndex].toLowerCase(),\n isTomorrow: i === 1,\n };\n }\n }\n return null;\n },\n [weekKeys, openingHours, weekDays],\n );\n\n const generateOpeningHoursText = useMemo(() => {\n return (hours: TimeSlot[]) => {\n if (hours.length === 0) {\n return closeLabel;\n }\n\n if (is24HoursDay(hours)) {\n return `${openLabel} ${open24Label}`;\n }\n\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\n };\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\n\n useEffect(() => {\n const now = DateTime.now();\n const todayIndex = now.weekday - 1;\n setActiveDay(todayIndex);\n setDayLabel(weekDays[todayIndex] || \"\");\n\n const todayKey = weekKeys[todayIndex];\n const todaySlots = openingHours[todayKey];\n\n if (!todaySlots) {\n return;\n }\n\n const currentTime = formatCurrentTime();\n\n if (is24HoursDay(todaySlots)) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(` | ${open24Label}`);\n setIsOpen(true);\n setIsOpeningSoon(false);\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\n return;\n }\n\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\n\n if (open) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\n );\n setIsOpen(true);\n setIsOpeningSoon(false);\n } else {\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\n setIsOpen(false);\n\n if (nextOpeningTime) {\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\n setOpeningHoursText(opensSoonLabel);\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(true);\n } else {\n setOpeningHoursText(closeLabel);\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(false);\n }\n } else {\n setOpeningHoursText(closeLabel);\n setIsOpeningSoon(false);\n const nextDay = getNextOpenDay(todayIndex);\n\n if (nextDay) {\n setAdditionalInfo(\n nextDay.isTomorrow\n ? ` | ${opensTomorrowLabel}`\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\n );\n } else {\n setAdditionalInfo(\"\");\n }\n }\n }\n\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\n }, [\n atLabel,\n checkIsOpeningSoon,\n closeLabel,\n closesAtLabel,\n generateOpeningHoursText,\n getNextOpenDay,\n is24HoursDay,\n open24Label,\n openLabel,\n openingHours,\n opensAtLabel,\n opensOnLabel,\n opensSoonLabel,\n opensTomorrowLabel,\n weekDays,\n weekKeys,\n ]);\n\n return (\n <Col\n fs={\"6\"}\n fw={\"semibold\"}\n className=\"ui-card-opening rounded shadow text-slate-28\"\n >\n <Col as={\"header\"} className=\"ui-card-header\">\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n style={{ backgroundColor: \"#F7F2FC\" }}\n py={\"x16\"}\n px={\"x24\"}\n fw={\"bold\"}\n fs={\"6\"}\n className=\"rounded\"\n >\n <p className=\"text-slate-28\">\n {todayLabel}, {dayLabel}\n </p>\n <p>\n <span\n className={\n isOpen\n ? \"text-success\"\n : isOpeningSoon\n ? \"text-warning\"\n : \"text-error\"\n }\n >\n {openingHoursText}\n </span>\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\n </p>\n </Row>\n </Col>\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\n {weekDays.map((day, index) => (\n <Row\n justifyContent={\"center\"}\n alignItems={\"center\"}\n key={index}\n className={clsx(\n activeDay === index ? \"active-day text-primary\" : \"\",\n \"flex-1\",\n )}\n >\n {day.charAt(0).toUpperCase()}\n </Row>\n ))}\n </Row>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n fw={\"regular\"}\n >\n <p>{dayLabel}</p>\n <p>{openingHoursText2}</p>\n </Row>\n </Col>\n </Col>\n );\n};\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":"qUA4BaA,GAAmB,CAAC,CAC/B,MAAAC,EAAQ,oBACR,SAAUC,EAAW,KACrB,aAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,OACb,WAAAC,EAAa,SACb,YAAAC,EAAc,eACd,eAAAC,EAAiB,gBACjB,aAAAC,EAAe,YACf,mBAAAC,EAAqB,cACrB,aAAAC,EAAe,OACf,QAAAC,EAAU,OACV,cAAAC,EAAgB,aAClB,IAA6B,CAC3B,KAAM,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAAwB,IAAI,EACxD,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAkBC,CAAmB,EAAIJ,EAAAA,SAAS,EAAE,EACrD,CAACK,EAAmBC,CAAoB,EAAIN,EAAAA,SAAS,EAAE,EACvD,CAACO,EAAQC,CAAS,EAAIR,EAAAA,SAAS,EAAK,EACpC,CAACS,EAAeC,CAAgB,EAAIV,EAAAA,SAAS,EAAK,EAClD,CAACW,EAAgBC,CAAiB,EAAIZ,EAAAA,SAAS,EAAE,EAEjDa,EAAW,OAAO,OAAO1B,CAAW,EACpC2B,EAAW,OAAO,KAAK3B,CAAW,EAElC4B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C/B,SAAA,CAACC,EAAAA,kBAAAA,IAAAC,EAAAA,IAAA,CAAI,eAAgB,eAAgB,UAAU,wBAC5C,SAAS1C,EAAA,IAAI,CAAC2C,EAAKC,IAClBH,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,eAAgB,SAChB,WAAY,SAEZ,UAAWG,EAAA,KACT5D,IAAc2D,EAAQ,0BAA4B,GAClD,QACF,EAEC,SAAID,EAAA,OAAO,CAAC,EAAE,YAAY,CAAA,EANtBC,CAQR,CAAA,EACH,EACAL,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,eAAgB,gBAChB,WAAY,SACZ,GAAI,UAEJ,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\r\nimport clsx from \"clsx\";\r\nimport { OpeningHours } from \"@anoki/fse-common\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\r\ntype TimeSlot = { from: string; to: string };\r\n\r\ntype CardOpeningHoursProps = {\r\n title: string;\r\n titleTag: HeadingLevel;\r\n openingHours: OpeningHours;\r\n weekDaysMap: WeekDaysMap;\r\n openLabel?: string;\r\n todayLabel?: string;\r\n closeLabel?: string;\r\n open24Label?: string;\r\n opensSoonLabel?: string;\r\n opensAtLabel?: string;\r\n opensTomorrowLabel?: string;\r\n opensOnLabel?: string;\r\n atLabel?: string;\r\n closesAtLabel?: string;\r\n};\r\n\r\nexport const CardOpeningHours = ({\r\n title = \"Orari di apertura\",\r\n titleTag: TitleTag = \"h3\",\r\n openingHours,\r\n weekDaysMap,\r\n openLabel = \"Aperto\",\r\n todayLabel = \"Oggi\",\r\n closeLabel = \"Chiuso\",\r\n open24Label = \"24 ore su 24\",\r\n opensSoonLabel = \"Apre tra poco\",\r\n opensAtLabel = \"Apre alle\",\r\n opensTomorrowLabel = \"Apre domani\",\r\n opensOnLabel = \"Apre\",\r\n atLabel = \"alle\",\r\n closesAtLabel = \"Chiude alle\",\r\n}: CardOpeningHoursProps) => {\r\n const [activeDay, setActiveDay] = useState<number | null>(null);\r\n const [dayLabel, setDayLabel] = useState(\"\");\r\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\r\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\r\n const [isOpen, setIsOpen] = useState(false);\r\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\r\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\r\n\r\n const weekDays = Object.values(weekDaysMap);\r\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\r\n\r\n const formatCurrentTime = () => {\r\n return DateTime.now().toFormat(\"HH:mm\");\r\n };\r\n\r\n const parseTimeToMinutes = (timeStr: string): number => {\r\n const [hours, minutes] = timeStr.split(\":\").map(Number);\r\n return hours * 60 + minutes;\r\n };\r\n\r\n const isSlot24Hours = useCallback(\r\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\r\n [],\r\n );\r\n\r\n const is24HoursDay = useCallback(\r\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\r\n [isSlot24Hours],\r\n );\r\n\r\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from, to } of slots) {\r\n if (currentTime >= from && currentTime <= to) {\r\n return { open: true, closingTime: to };\r\n }\r\n }\r\n return { open: false, closingTime: \"\" };\r\n };\r\n\r\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from } of slots) {\r\n if (from > currentTime) {\r\n return from;\r\n }\r\n }\r\n return \"\";\r\n };\r\n\r\n const checkIsOpeningSoon = useCallback(\r\n (openingTime: string, currentTime: string) => {\r\n if (!openingTime) return false;\r\n\r\n const openMinutes = parseTimeToMinutes(openingTime);\r\n const currentMinutes = parseTimeToMinutes(currentTime);\r\n const diffMinutes = openMinutes - currentMinutes;\r\n\r\n return diffMinutes > 0 && diffMinutes <= 60;\r\n },\r\n [],\r\n );\r\n\r\n const getNextOpenDay = useCallback(\r\n (currentDayIndex: number) => {\r\n for (let i = 1; i <= 7; i++) {\r\n const nextIndex = (currentDayIndex + i) % 7;\r\n const nextDayKey = weekKeys[nextIndex];\r\n const nextDaySlots = openingHours[nextDayKey];\r\n\r\n if (nextDaySlots && nextDaySlots.length > 0) {\r\n return {\r\n dayName: weekDays[nextIndex].toLowerCase(),\r\n isTomorrow: i === 1,\r\n };\r\n }\r\n }\r\n return null;\r\n },\r\n [weekKeys, openingHours, weekDays],\r\n );\r\n\r\n const generateOpeningHoursText = useMemo(() => {\r\n return (hours: TimeSlot[]) => {\r\n if (hours.length === 0) {\r\n return closeLabel;\r\n }\r\n\r\n if (is24HoursDay(hours)) {\r\n return `${openLabel} ${open24Label}`;\r\n }\r\n\r\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\r\n };\r\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\r\n\r\n useEffect(() => {\r\n const now = DateTime.now();\r\n const todayIndex = now.weekday - 1;\r\n setActiveDay(todayIndex);\r\n setDayLabel(weekDays[todayIndex] || \"\");\r\n\r\n const todayKey = weekKeys[todayIndex];\r\n const todaySlots = openingHours[todayKey];\r\n\r\n if (!todaySlots) {\r\n return;\r\n }\r\n\r\n const currentTime = formatCurrentTime();\r\n\r\n if (is24HoursDay(todaySlots)) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(` | ${open24Label}`);\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\r\n return;\r\n }\r\n\r\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\r\n\r\n if (open) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(\r\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\r\n );\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n } else {\r\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\r\n setIsOpen(false);\r\n\r\n if (nextOpeningTime) {\r\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\r\n setOpeningHoursText(opensSoonLabel);\r\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(true);\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(false);\r\n }\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setIsOpeningSoon(false);\r\n const nextDay = getNextOpenDay(todayIndex);\r\n\r\n if (nextDay) {\r\n setAdditionalInfo(\r\n nextDay.isTomorrow\r\n ? ` | ${opensTomorrowLabel}`\r\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\r\n );\r\n } else {\r\n setAdditionalInfo(\"\");\r\n }\r\n }\r\n }\r\n\r\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\r\n }, [\r\n atLabel,\r\n checkIsOpeningSoon,\r\n closeLabel,\r\n closesAtLabel,\r\n generateOpeningHoursText,\r\n getNextOpenDay,\r\n is24HoursDay,\r\n open24Label,\r\n openLabel,\r\n openingHours,\r\n opensAtLabel,\r\n opensOnLabel,\r\n opensSoonLabel,\r\n opensTomorrowLabel,\r\n weekDays,\r\n weekKeys,\r\n ]);\r\n\r\n return (\r\n <Col\r\n fs={\"6\"}\r\n fw={\"semibold\"}\r\n className=\"ui-card-opening rounded shadow text-slate-28\"\r\n >\r\n <Col as={\"header\"} className=\"ui-card-header\">\r\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n style={{ backgroundColor: \"#F7F2FC\" }}\r\n py={\"x16\"}\r\n px={\"x24\"}\r\n fw={\"bold\"}\r\n fs={\"6\"}\r\n className=\"rounded\"\r\n >\r\n <p className=\"text-slate-28\">\r\n {todayLabel}, {dayLabel}\r\n </p>\r\n <p>\r\n <span\r\n className={\r\n isOpen\r\n ? \"text-success\"\r\n : isOpeningSoon\r\n ? \"text-warning\"\r\n : \"text-error\"\r\n }\r\n >\r\n {openingHoursText}\r\n </span>\r\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\r\n </p>\r\n </Row>\r\n </Col>\r\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\r\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\r\n {weekDays.map((day, index) => (\r\n <Row\r\n justifyContent={\"center\"}\r\n alignItems={\"center\"}\r\n key={index}\r\n className={clsx(\r\n activeDay === index ? \"active-day text-primary\" : \"\",\r\n \"flex-1\",\r\n )}\r\n >\r\n {day.charAt(0).toUpperCase()}\r\n </Row>\r\n ))}\r\n </Row>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n fw={\"regular\"}\r\n >\r\n <p>{dayLabel}</p>\r\n <p>{openingHoursText2}</p>\r\n </Row>\r\n </Col>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":"qUA4BaA,GAAmB,CAAC,CAC/B,MAAAC,EAAQ,oBACR,SAAUC,EAAW,KACrB,aAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,OACb,WAAAC,EAAa,SACb,YAAAC,EAAc,eACd,eAAAC,EAAiB,gBACjB,aAAAC,EAAe,YACf,mBAAAC,EAAqB,cACrB,aAAAC,EAAe,OACf,QAAAC,EAAU,OACV,cAAAC,EAAgB,aAClB,IAA6B,CAC3B,KAAM,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAAwB,IAAI,EACxD,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAkBC,CAAmB,EAAIJ,EAAAA,SAAS,EAAE,EACrD,CAACK,EAAmBC,CAAoB,EAAIN,EAAAA,SAAS,EAAE,EACvD,CAACO,EAAQC,CAAS,EAAIR,EAAAA,SAAS,EAAK,EACpC,CAACS,EAAeC,CAAgB,EAAIV,EAAAA,SAAS,EAAK,EAClD,CAACW,EAAgBC,CAAiB,EAAIZ,EAAAA,SAAS,EAAE,EAEjDa,EAAW,OAAO,OAAO1B,CAAW,EACpC2B,EAAW,OAAO,KAAK3B,CAAW,EAElC4B,EAAoB,IACjBC,UAAS,MAAM,SAAS,OAAO,EAGlCC,EAAsBC,GAA4B,CAChD,KAAA,CAACC,EAAOC,CAAO,EAAIF,EAAQ,MAAM,GAAG,EAAE,IAAI,MAAM,EACtD,OAAOC,EAAQ,GAAKC,CACtB,EAEMC,EAAgBC,EAAA,YACnBC,GAAmBA,EAAK,OAAS,SAA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Q,0BAA4B,GAClD,QACF,EAEC,SAAID,EAAA,OAAO,CAAC,EAAE,YAAY,CAAA,EANtBC,CAQR,CAAA,EACH,EACAL,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,eAAgB,gBAChB,WAAY,SACZ,GAAI,UAEJ,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),n=require("./index.cjs403.js"),s=require("./index.cjs404.js"),q=require("./index.cjs405.js"),z=require("./index.cjs406.js"),p=require("./index.cjs407.js"),D=require("./index.cjs408.js"),E=require("./index.cjs409.js"),l=require("./index.cjs410.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.cjs384.js"),s=require("./index.cjs385.js"),q=require("./index.cjs386.js"),z=require("./index.cjs387.js"),p=require("./index.cjs388.js"),D=require("./index.cjs389.js"),E=require("./index.cjs390.js"),l=require("./index.cjs391.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.cjs314.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs32.js","sources":["../src/components/ui/SupportBanner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./SupportBanner.scss\";\nimport { ArrowLink, Button, Col } from \"@/components\";\nimport { useMemo } from \"react\";\nimport { Attachment } from \"@/icons\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype ctaLevel = \"link\" | \"button\" | \"outlineButton\";\n\ntype SupportBannerProps = {\n cta: ctaLevel;\n bannerType: \"filled\" | \"outline\";\n title: string;\n description?: string;\n titleTag: HeadingLevel;\n href?: string | string[];\n icon?: boolean;\n linkText?: string | string[];\n mainLayout?: \"layout1\" | \"layout2\";\n className?: string;\n classNameTitle?: string;\n classNameDescription?: string;\n handleAction?: () => void;\n};\n\nconst CTA_COMPONENTS = {\n link: (title: string, href?: string) => (\n <ArrowLink href={href}>{title}</ArrowLink>\n ),\n button: (title: string) => <button className=\"button-style\">{title}</button>,\n outlineButton: (\n title: string,\n _href?: string,\n icon?: boolean,\n handleAction?: () => void,\n ) => (\n <Button\n size={\"2\"}\n textColor=\"primary\"\n bg=\"lightblue-a03\"\n className={\"w-full \"}\n border={\"primary\"}\n onClick={handleAction}\n >\n {icon && <Attachment className={\"mr-x8\"} />}\n <p className={\"fs-6 fw-bold\"}>{title}</p>\n </Button>\n ),\n};\n\nexport const SupportBanner = ({\n cta = \"link\",\n bannerType = \"outline\",\n title,\n description = \"\",\n titleTag: TitleTag = \"h3\",\n href = \"#\",\n icon = true,\n linkText = \"Vai al supporto\",\n mainLayout = \"layout1\",\n className = \"\",\n classNameTitle = \"\",\n classNameDescription = \"\",\n handleAction,\n}: SupportBannerProps) => {\n const renderCTA = useMemo(() => {\n if (Array.isArray(href)) {\n return href.map((singleHref, index) => {\n const singleLinkText = Array.isArray(linkText)\n ? linkText[index]\n : linkText;\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](\n singleLinkText,\n singleHref,\n icon,\n handleAction,\n )}\n </div>\n );\n });\n }\n if (Array.isArray(linkText)) {\n return linkText.map((singleLinkText, index) => {\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](singleLinkText, href, icon, handleAction)}\n </div>\n );\n });\n }\n return CTA_COMPONENTS[cta](linkText, href, icon, handleAction);\n }, [cta, linkText, href, handleAction]);\n\n return (\n <Col\n br={\"x4\"}\n gap={\"x16\"}\n className={clsx(\n className,\n bannerType === \"outline\" ? \"ui-outline\" : \"bg-lightblue-a03\",\n \"ui-banner shadow \",\n )}\n >\n <TitleTag\n className={clsx(\n \"ui-banner-title text-slate-20\",\n classNameTitle || \"fs-4 fw-bold\",\n )}\n >\n {title}\n </TitleTag>\n <main\n className={clsx(\n mainLayout === \"layout1\"\n ? \"ui-banner-content-layout1 fs-6 text-secondary justify-content-between \"\n : \"ui-banner-content-layout2\",\n \"ui-banner-content fs-6 text-secondary w-100\",\n )}\n >\n <div\n className={clsx(\n classNameDescription,\n mainLayout === \"layout1\" ? \"ui-banner-description\" : \"\",\n )}\n >\n {description}\n </div>\n\n <div className={clsx(\"ui-banner-cta\")}>{renderCTA}</div>\n </main>\n </Col>\n );\n};\n"],"names":["CTA_COMPONENTS","title","href","jsx","ArrowLink","_href","icon","handleAction","jsxs","Button","Attachment","SupportBanner","cta","bannerType","description","TitleTag","linkText","mainLayout","className","classNameTitle","classNameDescription","renderCTA","useMemo","singleHref","index","singleLinkText","Col","clsx"],"mappings":"mUAyBMA,EAAiB,CACrB,KAAM,CAACC,EAAeC,IACnBC,EAAA,kBAAA,IAAAC,EAAA,UAAA,CAAU,KAAAF,EAAa,SAAMD,EAAA,EAEhC,OAASA,2BAAmB,SAAO,CAAA,UAAU,eAAgB,SAAMA,EAAA,EACnE,cAAe,CACbA,EACAI,EACAC,EACAC,IAEAC,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAM,IACN,UAAU,UACV,GAAG,gBACH,UAAW,UACX,OAAQ,UACR,QAASF,EAER,SAAA,CAAQD,GAAAH,EAAAA,kBAAAA,IAACO,EAAAA,WAAW,CAAA,UAAW,OAAS,CAAA,EACxCP,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,eAAiB,SAAMF,CAAA,CAAA,CAAA,CAAA,CAAA,CAG3C,EAEaU,EAAgB,CAAC,CAC5B,IAAAC,EAAM,OACN,WAAAC,EAAa,UACb,MAAAZ,EACA,YAAAa,EAAc,GACd,SAAUC,EAAW,KACrB,KAAAb,EAAO,IACP,KAAAI,EAAO,GACP,SAAAU,EAAW,kBACX,WAAAC,EAAa,UACb,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,qBAAAC,EAAuB,GACvB,aAAAb,CACF,IAA0B,CAClB,MAAAc,EAAYC,EAAAA,QAAQ,IACpB,MAAM,QAAQpB,CAAI,EACbA,EAAK,IAAI,CAACqB,EAAYC,IAAU,CACrC,MAAMC,EAAiB,MAAM,QAAQT,CAAQ,EACzCA,EAASQ,CAAK,EACdR,EACJ,OACGb,EAAAA,kBAAAA,IAAA,MAAA,CAAgB,UAAU,iBACxB,WAAeS,CAAG,EACjBa,EACAF,EACAjB,EACAC,IALMiB,CAOV,CAAA,CAEH,EAEC,MAAM,QAAQR,CAAQ,EACjBA,EAAS,IAAI,CAACS,EAAgBD,IAEhCrB,EAAAA,kBAAAA,IAAA,MAAA,CAAgB,UAAU,iBACxB,SAAeH,EAAAY,CAAG,EAAEa,EAAgBvB,EAAMI,EAAMC,CAAY,CAAA,EADrDiB,CAEV,CAEH,EAEIxB,EAAeY,CAAG,EAAEI,EAAUd,EAAMI,EAAMC,CAAY,EAC5D,CAACK,EAAKI,EAAUd,EAAMK,CAAY,CAAC,EAGpC,OAAAC,EAAA,kBAAA,KAACkB,EAAA,IAAA,CACC,GAAI,KACJ,IAAK,MACL,UAAWC,EAAA,KACTT,EACAL,IAAe,UAAY,aAAe,mBAC1C,mBACF,EAEA,SAAA,CAAAV,EAAA,kBAAA,IAACY,EAAA,CACC,UAAWY,EAAA,KACT,gCACAR,GAAkB,cACpB,EAEC,SAAAlB,CAAA,CACH,EACAO,EAAA,kBAAA,KAAC,OAAA,CACC,UAAWmB,EAAA,KACTV,IAAe,UACX,yEACA,4BACJ,6CACF,EAEA,SAAA,CAAAd,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWwB,EAAA,KACTP,EACAH,IAAe,UAAY,wBAA0B,EACvD,EAEC,SAAAH,CAAA,CACH,0BAEC,MAAI,CAAA,UAAWa,EAAK,KAAA,eAAe,EAAI,SAAUN,CAAA,CAAA,CAAA,CAAA,CAAA,CACpD,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs32.js","sources":["../src/components/ui/SupportBanner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./SupportBanner.scss\";\r\nimport { ArrowLink, Button, Col } from \"@/components\";\r\nimport { useMemo } from \"react\";\r\nimport { Attachment } from \"@/icons\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype ctaLevel = \"link\" | \"button\" | \"outlineButton\";\r\n\r\ntype SupportBannerProps = {\r\n cta: ctaLevel;\r\n bannerType: \"filled\" | \"outline\";\r\n title: string;\r\n description?: string;\r\n titleTag: HeadingLevel;\r\n href?: string | string[];\r\n icon?: boolean;\r\n linkText?: string | string[];\r\n mainLayout?: \"layout1\" | \"layout2\";\r\n className?: string;\r\n classNameTitle?: string;\r\n classNameDescription?: string;\r\n handleAction?: () => void;\r\n};\r\n\r\nconst CTA_COMPONENTS = {\r\n link: (title: string, href?: string) => (\r\n <ArrowLink href={href}>{title}</ArrowLink>\r\n ),\r\n button: (title: string) => <button className=\"button-style\">{title}</button>,\r\n outlineButton: (\r\n title: string,\r\n _href?: string,\r\n icon?: boolean,\r\n handleAction?: () => void,\r\n ) => (\r\n <Button\r\n size={\"2\"}\r\n textColor=\"primary\"\r\n bg=\"lightblue-a03\"\r\n className={\"w-full \"}\r\n border={\"primary\"}\r\n onClick={handleAction}\r\n >\r\n {icon && <Attachment className={\"mr-x8\"} />}\r\n <p className={\"fs-6 fw-bold\"}>{title}</p>\r\n </Button>\r\n ),\r\n};\r\n\r\nexport const SupportBanner = ({\r\n cta = \"link\",\r\n bannerType = \"outline\",\r\n title,\r\n description = \"\",\r\n titleTag: TitleTag = \"h3\",\r\n href = \"#\",\r\n icon = true,\r\n linkText = \"Vai al supporto\",\r\n mainLayout = \"layout1\",\r\n className = \"\",\r\n classNameTitle = \"\",\r\n classNameDescription = \"\",\r\n handleAction,\r\n}: SupportBannerProps) => {\r\n const renderCTA = useMemo(() => {\r\n if (Array.isArray(href)) {\r\n return href.map((singleHref, index) => {\r\n const singleLinkText = Array.isArray(linkText)\r\n ? linkText[index]\r\n : linkText;\r\n return (\r\n <div key={index} className=\"ui-banner-link\">\r\n {CTA_COMPONENTS[cta](\r\n singleLinkText,\r\n singleHref,\r\n icon,\r\n handleAction,\r\n )}\r\n </div>\r\n );\r\n });\r\n }\r\n if (Array.isArray(linkText)) {\r\n return linkText.map((singleLinkText, index) => {\r\n return (\r\n <div key={index} className=\"ui-banner-link\">\r\n {CTA_COMPONENTS[cta](singleLinkText, href, icon, handleAction)}\r\n </div>\r\n );\r\n });\r\n }\r\n return CTA_COMPONENTS[cta](linkText, href, icon, handleAction);\r\n }, [cta, linkText, href, handleAction]);\r\n\r\n return (\r\n <Col\r\n br={\"x4\"}\r\n gap={\"x16\"}\r\n className={clsx(\r\n className,\r\n bannerType === \"outline\" ? \"ui-outline\" : \"bg-lightblue-a03\",\r\n \"ui-banner shadow \",\r\n )}\r\n >\r\n <TitleTag\r\n className={clsx(\r\n \"ui-banner-title text-slate-20\",\r\n classNameTitle || \"fs-4 fw-bold\",\r\n )}\r\n >\r\n {title}\r\n </TitleTag>\r\n <main\r\n className={clsx(\r\n mainLayout === \"layout1\"\r\n ? \"ui-banner-content-layout1 fs-6 text-secondary justify-content-between \"\r\n : \"ui-banner-content-layout2\",\r\n \"ui-banner-content fs-6 text-secondary w-100\",\r\n )}\r\n >\r\n <div\r\n className={clsx(\r\n classNameDescription,\r\n mainLayout === \"layout1\" ? \"ui-banner-description\" : \"\",\r\n )}\r\n >\r\n {description}\r\n </div>\r\n\r\n <div className={clsx(\"ui-banner-cta\")}>{renderCTA}</div>\r\n </main>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CTA_COMPONENTS","title","href","jsx","ArrowLink","_href","icon","handleAction","jsxs","Button","Attachment","SupportBanner","cta","bannerType","description","TitleTag","linkText","mainLayout","className","classNameTitle","classNameDescription","renderCTA","useMemo","singleHref","index","singleLinkText","Col","clsx"],"mappings":"mUAyBMA,EAAiB,CACrB,KAAM,CAACC,EAAeC,IACnBC,EAAA,kBAAA,IAAAC,EAAA,UAAA,CAAU,KAAAF,EAAa,SAAMD,EAAA,EAEhC,OAASA,2BAAmB,SAAO,CAAA,UAAU,eAAgB,SAAMA,EAAA,EACnE,cAAe,CACbA,EACAI,EACAC,EACAC,IAEAC,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAM,IACN,UAAU,UACV,GAAG,gBACH,UAAW,UACX,OAAQ,UACR,QAASF,EAER,SAAA,CAAQD,GAAAH,EAAAA,kBAAAA,IAACO,EAAAA,WAAW,CAAA,UAAW,OA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AAA,KAAC,OAAA,CACC,UAAWmB,EAAA,KACTV,IAAe,UACX,yEACA,4BACJ,6CACF,EAEA,SAAA,CAAAd,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWwB,EAAA,KACTP,EACAH,IAAe,UAAY,wBAA0B,EACvD,EAEC,SAAAH,CAAA,CACH,0BAEC,MAAI,CAAA,UAAWa,EAAK,KAAA,eAAe,EAAI,SAAUN,CAAA,CAAA,CAAA,CAAA,CAAA,CACpD,CAAA,CACF,CAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs320.js","sources":["../src/components/ui/Accordion/AccordionStepper/StepItem/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport ToggleContent from \"../../ToggleContent\";\nimport { ToggleLabel } from \"../../types\";\n\nexport interface StepData {\n title: string;\n content: React.ReactNode;\n}\n\ninterface StepItemProps extends StepData {\n index: number;\n isOpen: boolean;\n onToggle: () => void;\n detailLabels: ToggleLabel;\n}\n\nexport const StepItem: React.FC<StepItemProps> = ({\n index,\n title,\n content,\n isOpen,\n detailLabels,\n onToggle,\n}) => {\n return (\n <div className=\"step-item\">\n <div className={clsx(\"step-header\", isOpen && \"open\")}>\n <div className=\"step-number\">{index + 1}</div>\n <div className=\"step-title\">{title}</div>\n </div>\n\n <div className=\"step-details\">\n <div className=\"step-details-box\">\n <div className=\"\"></div>\n <div className=\"line\"></div>\n </div>\n <div className=\"step-details-content\">\n <ToggleContent\n className=\"toggle-btn\"\n onClick={onToggle}\n isOpen={isOpen}\n toggleLabels={detailLabels}\n />\n {isOpen && <div className=\"step-content\">{content}</div>}\n </div>\n </div>\n </div>\n );\n};\n"],"names":["StepItem","index","title","content","isOpen","detailLabels","onToggle","jsxs","clsx","jsx","ToggleContent"],"mappings":"mLAgBaA,EAAoC,CAAC,CAChD,MAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,aAAAC,EACA,SAAAC,CACF,IAEIC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,YACb,SAAA,CAAAA,yBAAC,OAAI,UAAWC,EAAAA,KAAK,cAAeJ,GAAU,MAAM,EAClD,SAAA,CAAAK,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,cAAe,SAAAR,EAAQ,EAAE,EACvCQ,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,aAAc,SAAMP,CAAA,CAAA,CAAA,EACrC,EAEAK,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,eACb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,mBACb,SAAA,CAACE,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,EAAG,CAAA,EAClBA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,MAAO,CAAA,CAAA,EACxB,EACAF,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,uBACb,SAAA,CAAAE,EAAA,kBAAA,IAACC,EAAA,CACC,UAAU,aACV,QAASJ,EACT,OAAAF,EACA,aAAcC,CAAA,CAChB,EACCD,GAAUK,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,eAAgB,SAAQN,CAAA,CAAA,CAAA,CACpD,CAAA,CAAA,CACF,CAAA,CAAA,EACF"}
1
+ {"version":3,"file":"index.cjs320.js","sources":["../src/components/ui/Accordion/AccordionStepper/StepItem/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport ToggleContent from \"../../ToggleContent\";\r\nimport { ToggleLabel } from \"../../types\";\r\n\r\nexport interface StepData {\r\n title: string;\r\n content: React.ReactNode;\r\n}\r\n\r\ninterface StepItemProps extends StepData {\r\n index: number;\r\n isOpen: boolean;\r\n onToggle: () => void;\r\n detailLabels: ToggleLabel;\r\n}\r\n\r\nexport const StepItem: React.FC<StepItemProps> = ({\r\n index,\r\n title,\r\n content,\r\n isOpen,\r\n detailLabels,\r\n onToggle,\r\n}) => {\r\n return (\r\n <div className=\"step-item\">\r\n <div className={clsx(\"step-header\", isOpen && \"open\")}>\r\n <div className=\"step-number\">{index + 1}</div>\r\n <div className=\"step-title\">{title}</div>\r\n </div>\r\n\r\n <div className=\"step-details\">\r\n <div className=\"step-details-box\">\r\n <div className=\"\"></div>\r\n <div className=\"line\"></div>\r\n </div>\r\n <div className=\"step-details-content\">\r\n <ToggleContent\r\n className=\"toggle-btn\"\r\n onClick={onToggle}\r\n isOpen={isOpen}\r\n toggleLabels={detailLabels}\r\n />\r\n {isOpen && <div className=\"step-content\">{content}</div>}\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["StepItem","index","title","content","isOpen","detailLabels","onToggle","jsxs","clsx","jsx","ToggleContent"],"mappings":"mLAgBaA,EAAoC,CAAC,CAChD,MAAAC,EACA,MAAAC,EACA,QAAAC,EACA,OAAAC,EACA,aAAAC,EACA,SAAAC,CACF,IAEIC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,YACb,SAAA,CAAAA,yBAAC,OAAI,UAAWC,EAAAA,KAAK,cAAeJ,GAAU,MAAM,EAClD,SAAA,CAAAK,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,cAAe,SAAAR,EAAQ,EAAE,EACvCQ,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAU,aAAc,SAAMP,CAAA,CAAA,CAAA,EACrC,EAEAK,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,eACb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,mBACb,SAAA,CAACE,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,EAAG,CAAA,EAClBA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,MAAO,CAAA,CAAA,EACxB,EACAF,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,uBACb,SAAA,CAAAE,EAAA,kBAAA,IAACC,EAAA,CACC,UAAU,aACV,QAASJ,EACT,OAAAF,EACA,aAAcC,CAAA,CAChB,EACCD,GAAUK,EAAA,kBAAA,IAAC,MAAI,CAAA,UAAU,eAAgB,SAAQN,CAAA,CAAA,CAAA,CACpD,CAAA,CAAA,CACF,CAAA,CAAA,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs322.js","sources":["../src/components/ui/Accordion/ToggleContent.tsx"],"sourcesContent":["import { ArrowDown, ArrowTop } from \"@/icons\";\nimport { ToggleLabel } from \"./types\";\nimport clsx from \"clsx\";\n\ntype Props = {\n className?: string;\n isOpen: boolean;\n onClick: () => void;\n toggleLabels: ToggleLabel;\n};\n\nconst ToggleContent = ({ isOpen, onClick, className, toggleLabels }: Props) => {\n return (\n <button className={clsx(\"\", className)} onClick={onClick}>\n {isOpen ? toggleLabels.closeLabel : toggleLabels.activeLabel}\n <span className=\"arrow\">{isOpen ? <ArrowTop /> : <ArrowDown />}</span>\n </button>\n );\n};\n\nexport default ToggleContent;\n"],"names":["ToggleContent","isOpen","onClick","className","toggleLabels","clsx","jsx","ArrowTop","ArrowDown"],"mappings":"+IAWMA,EAAgB,CAAC,CAAE,OAAAC,EAAQ,QAAAC,EAAS,UAAAC,EAAW,aAAAC,8BAEhD,SAAO,CAAA,UAAWC,EAAAA,KAAK,GAAIF,CAAS,EAAG,QAAAD,EACrC,SAAA,CAASD,EAAAG,EAAa,WAAaA,EAAa,YACjDE,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,QAAS,SAAAL,0BAAUM,EAAAA,SAAS,CAAA,CAAA,EAAMD,EAAA,kBAAA,IAAAE,EAAA,UAAA,CAAU,CAAA,CAAG,CAAA,CAAA,EACjE"}
1
+ {"version":3,"file":"index.cjs322.js","sources":["../src/components/ui/Accordion/ToggleContent.tsx"],"sourcesContent":["import { ArrowDown, ArrowTop } from \"@/icons\";\r\nimport { ToggleLabel } from \"./types\";\r\nimport clsx from \"clsx\";\r\n\r\ntype Props = {\r\n className?: string;\r\n isOpen: boolean;\r\n onClick: () => void;\r\n toggleLabels: ToggleLabel;\r\n};\r\n\r\nconst ToggleContent = ({ isOpen, onClick, className, toggleLabels }: Props) => {\r\n return (\r\n <button className={clsx(\"\", className)} onClick={onClick}>\r\n {isOpen ? toggleLabels.closeLabel : toggleLabels.activeLabel}\r\n <span className=\"arrow\">{isOpen ? <ArrowTop /> : <ArrowDown />}</span>\r\n </button>\r\n );\r\n};\r\n\r\nexport default ToggleContent;\r\n"],"names":["ToggleContent","isOpen","onClick","className","toggleLabels","clsx","jsx","ArrowTop","ArrowDown"],"mappings":"+IAWMA,EAAgB,CAAC,CAAE,OAAAC,EAAQ,QAAAC,EAAS,UAAAC,EAAW,aAAAC,8BAEhD,SAAO,CAAA,UAAWC,EAAAA,KAAK,GAAIF,CAAS,EAAG,QAAAD,EACrC,SAAA,CAASD,EAAAG,EAAa,WAAaA,EAAa,YACjDE,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,QAAS,SAAAL,0BAAUM,EAAAA,SAAS,CAAA,CAAA,EAAMD,EAAA,kBAAA,IAAAE,EAAA,UAAA,CAAU,CAAA,CAAG,CAAA,CAAA,EACjE"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs331.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs369.js");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs332.js"),B=require("react");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs370.js"),B=require("react");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\nimport clsx from \"clsx\";\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\nimport { Loader, Row } from \"@/components\";\n\ntype TabItem = {\n label: string;\n disabled?: boolean;\n};\n\ntype ActionItem = PropsWithChildren<{\n label: string;\n icon: ReactNode;\n onClick: () => void;\n loading?: boolean;\n}>;\n\ntype TabsGlossaryProps = {\n CTA?: \"link\" | \"primary\";\n navigationItems: TabItem[];\n activeIndex: number;\n onTabChange: (index: number) => void;\n actions?: ActionItem[];\n children?: ReactNode;\n // onDownload?: () => void;\n // onAdd?: () => void;\n // downloadAllLabel?: string;\n // addDocumentLabel?: string;\n // actionType?: \"download\" | \"add\" | null;\n};\n\nexport const TabsGlossary = ({\n CTA = \"link\",\n navigationItems,\n children,\n activeIndex = 0,\n onTabChange,\n actions = [],\n // onDownload,\n // onAdd,\n // downloadAllLabel = \"Scarica tutti\",\n // addDocumentLabel = \"Aggiungi documento\",\n // actionType,\n}: TabsGlossaryProps) => {\n const [active, setActive] = useState(activeIndex);\n\n // const isDownloading = loading && actionType === \"download\";\n // const isAdding = loading && actionType === \"add\";\n\n return (\n <div>\n <div className={clsx(\"ui-document-container-tabs\")}>\n <nav\n className={\"ui-document-container-tabs-nav-new\"}\n aria-label=\"Menu di navigazione\"\n >\n <Row\n gap={\"x20\"}\n fw={\"semibold\"}\n text={\"secondary\"}\n className={clsx(\n \"ui-document-container-tabs-nav list-style-none ui-tabs\",\n )}\n >\n {navigationItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n \"ui-document-container-tabs-nav-responsive-flex\",\n !item.disabled ? \"cursor-pointer\" : \"text-muted\",\n \"ui-tab\",\n active === index && \"text-primary ui-active-tab-glossary \",\n )}\n onClick={() => {\n if (!item.disabled) {\n setActive(index);\n onTabChange(index);\n }\n }}\n >\n <a className={\"text-decoration-none\"}>{item.label}</a>\n </li>\n );\n })}\n </Row>\n </nav>\n {children}\n {CTA === \"link\" && (\n <nav className={\"ui-document-container-tabs-nav-new\"}>\n <ul className=\"list-style-none base-row gap-x20 fw-semibold text-primary fs-8 pb-x8\">\n {actions.map((action, index) => (\n <React.Fragment key={index}>\n <li\n className={clsx(\n !action.loading && \"cursor-pointer\",\n \"text-primary base-row justify-content-center align-items-center gap-x8\",\n )}\n onClick={() => !action.loading && action.onClick()}\n >\n {action.icon}\n <p>{action.label}</p>\n {action.loading && <Loader loading={action.loading} />}\n </li>\n {index < actions.length - 1 && (\n <li>\n <span className=\"ui-divider\"></span>\n </li>\n )}\n </React.Fragment>\n ))}\n </ul>\n </nav>\n )}\n </div>\n </div>\n );\n};\n"],"names":["TabsGlossary","CTA","navigationItems","children","activeIndex","onTabChange","actions","active","setActive","useState","jsxs","clsx","jsx","Row","item","index","action","React","Loader"],"mappings":"qQA+BaA,EAAe,CAAC,CAC3B,IAAAC,EAAM,OACN,gBAAAC,EACA,SAAAC,EACA,YAAAC,EAAc,EACd,YAAAC,EACA,QAAAC,EAAU,CAAA,CAMZ,IAAyB,CACvB,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAAA,SAASL,CAAW,EAKhD,+BACG,MACC,CAAA,SAAAM,EAAA,kBAAA,KAAC,OAAI,UAAWC,EAAAA,KAAK,4BAA4B,EAC/C,SAAA,CAAAC,EAAA,kBAAA,IAAC,MAAA,CACC,UAAW,qCACX,aAAW,sBAEX,SAAAA,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,IAAK,MACL,GAAI,WACJ,KAAM,YACN,UAAWF,EAAA,KACT,wDACF,EAEC,SAAgBT,EAAA,IAAI,CAACY,EAAMC,IAExBH,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWD,EAAA,KACT,iDACCG,EAAK,SAA8B,aAAnB,iBACjB,SACAP,IAAWQ,GAAS,sCACtB,EACA,QAAS,IAAM,CACRD,EAAK,WACRN,EAAUO,CAAK,EACfV,EAAYU,CAAK,EAErB,EAEA,SAACH,EAAAA,kBAAAA,IAAA,IAAA,CAAE,UAAW,uBAAyB,WAAK,KAAM,CAAA,CAAA,EAd7CG,CAeP,CAEH,CAAA,CAAA,CACH,CACF,EACCZ,EACAF,IAAQ,QACPW,EAAA,kBAAA,IAAC,OAAI,UAAW,qCACd,iCAAC,KAAG,CAAA,UAAU,uEACX,SAAAN,EAAQ,IAAI,CAACU,EAAQD,IACnBL,EAAAA,kBAAAA,KAAAO,EAAM,SAAN,CACC,SAAA,CAAAP,EAAA,kBAAA,KAAC,KAAA,CACC,UAAWC,EAAA,KACT,CAACK,EAAO,SAAW,iBACnB,wEACF,EACA,QAAS,IAAM,CAACA,EAAO,SAAWA,EAAO,QAAQ,EAEhD,SAAA,CAAOA,EAAA,KACRJ,EAAAA,kBAAAA,IAAC,IAAG,CAAA,SAAAI,EAAO,KAAM,CAAA,EAChBA,EAAO,SAAWJ,wBAACM,EAAAA,OAAO,CAAA,QAASF,EAAO,OAAS,CAAA,CAAA,CAAA,CACtD,EACCD,EAAQT,EAAQ,OAAS,GACxBM,EAAA,kBAAA,IAAC,MACC,SAACA,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,YAAa,CAAA,CAC/B,CAAA,CAAA,GAfiBG,CAiBrB,CACD,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAEJ,CACF,CAAA,CAEJ"}
1
+ {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\r\nimport clsx from \"clsx\";\r\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\r\nimport { Loader, Row } from \"@/components\";\r\n\r\ntype TabItem = {\r\n label: string;\r\n disabled?: boolean;\r\n};\r\n\r\ntype ActionItem = PropsWithChildren<{\r\n label: string;\r\n icon: ReactNode;\r\n onClick: () => void;\r\n loading?: boolean;\r\n}>;\r\n\r\ntype TabsGlossaryProps = {\r\n CTA?: \"link\" | \"primary\";\r\n navigationItems: TabItem[];\r\n activeIndex: number;\r\n onTabChange: (index: number) => void;\r\n actions?: ActionItem[];\r\n children?: ReactNode;\r\n // onDownload?: () => void;\r\n // onAdd?: () => void;\r\n // downloadAllLabel?: string;\r\n // addDocumentLabel?: string;\r\n // actionType?: \"download\" | \"add\" | null;\r\n};\r\n\r\nexport const TabsGlossary = ({\r\n CTA = \"link\",\r\n navigationItems,\r\n children,\r\n activeIndex = 0,\r\n onTabChange,\r\n actions = [],\r\n // onDownload,\r\n // onAdd,\r\n // downloadAllLabel = \"Scarica tutti\",\r\n // addDocumentLabel = \"Aggiungi documento\",\r\n // actionType,\r\n}: TabsGlossaryProps) => {\r\n const [active, setActive] = useState(activeIndex);\r\n\r\n // const isDownloading = loading && actionType === \"download\";\r\n // const isAdding = loading && actionType === \"add\";\r\n\r\n return (\r\n <div>\r\n <div className={clsx(\"ui-document-container-tabs\")}>\r\n <nav\r\n className={\"ui-document-container-tabs-nav-new\"}\r\n aria-label=\"Menu di navigazione\"\r\n >\r\n <Row\r\n gap={\"x20\"}\r\n fw={\"semibold\"}\r\n text={\"secondary\"}\r\n className={clsx(\r\n \"ui-document-container-tabs-nav list-style-none ui-tabs\",\r\n )}\r\n >\r\n {navigationItems.map((item, index) => {\r\n return (\r\n <li\r\n key={index}\r\n className={clsx(\r\n \"ui-document-container-tabs-nav-responsive-flex\",\r\n !item.disabled ? \"cursor-pointer\" : \"text-muted\",\r\n \"ui-tab\",\r\n active === index && \"text-primary ui-active-tab-glossary \",\r\n )}\r\n onClick={() => {\r\n if (!item.disabled) {\r\n setActive(index);\r\n onTabChange(index);\r\n }\r\n }}\r\n >\r\n <a className={\"text-decoration-none\"}>{item.label}</a>\r\n </li>\r\n );\r\n })}\r\n </Row>\r\n </nav>\r\n {children}\r\n {CTA === \"link\" && (\r\n <nav className={\"ui-document-container-tabs-nav-new\"}>\r\n <ul className=\"list-style-none base-row gap-x20 fw-semibold text-primary fs-8 pb-x8\">\r\n {actions.map((action, index) => (\r\n <React.Fragment key={index}>\r\n <li\r\n className={clsx(\r\n !action.loading && \"cursor-pointer\",\r\n \"text-primary base-row justify-content-center align-items-center gap-x8\",\r\n )}\r\n onClick={() => !action.loading && action.onClick()}\r\n >\r\n {action.icon}\r\n <p>{action.label}</p>\r\n {action.loading && <Loader loading={action.loading} />}\r\n </li>\r\n {index < actions.length - 1 && (\r\n <li>\r\n <span className=\"ui-divider\"></span>\r\n </li>\r\n )}\r\n </React.Fragment>\r\n ))}\r\n </ul>\r\n </nav>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["TabsGlossary","CTA","navigationItems","children","activeIndex","onTabChange","actions","active","setActive","useState","jsxs","clsx","jsx","Row","item","index","action","React","Loader"],"mappings":"qQA+BaA,EAAe,CAAC,CAC3B,IAAAC,EAAM,OACN,gBAAAC,EACA,SAAAC,EACA,YAAAC,EAAc,EACd,YAAAC,EACA,QAAAC,EAAU,CAAA,CAMZ,IAAyB,CACvB,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAAA,SAASL,CAAW,EAKhD,+BACG,MACC,CAAA,SAAAM,EAAA,kBAAA,KAAC,OAAI,UAAWC,EAAAA,KAAK,4BAA4B,EAC/C,SAAA,CAAAC,EAAA,kBAAA,IAAC,MAAA,CACC,UAAW,qCACX,aAAW,sBAEX,SAAAA,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,IAAK,MACL,GAAI,WACJ,KAAM,YACN,UAAWF,EAAA,KACT,wDACF,EAEC,SAAgBT,EAAA,IAAI,CAACY,EAAMC,IAExBH,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWD,EAAA,KACT,iDACCG,EAAK,SAA8B,aAAnB,iBACjB,SACAP,IAAWQ,GAAS,sCACtB,EACA,QAAS,IAAM,CACRD,EAAK,WACRN,EAAUO,CAAK,EACfV,EAAYU,CAAK,EAErB,EAEA,SAACH,EAAAA,kBAAAA,IAAA,IAAA,CAAE,UAAW,uBAAyB,WAAK,KAAM,CAAA,CAAA,EAd7CG,CAeP,CAEH,CAAA,CAAA,CACH,CACF,EACCZ,EACAF,IAAQ,QACPW,EAAA,kBAAA,IAAC,OAAI,UAAW,qCACd,iCAAC,KAAG,CAAA,UAAU,uEACX,SAAAN,EAAQ,IAAI,CAACU,EAAQD,IACnBL,EAAAA,kBAAAA,KAAAO,EAAM,SAAN,CACC,SAAA,CAAAP,EAAA,kBAAA,KAAC,KAAA,CACC,UAAWC,EAAA,KACT,CAACK,EAAO,SAAW,iBACnB,wEACF,EACA,QAAS,IAAM,CAACA,EAAO,SAAWA,EAAO,QAAQ,EAEhD,SAAA,CAAOA,EAAA,KACRJ,EAAAA,kBAAAA,IAAC,IAAG,CAAA,SAAAI,EAAO,KAAM,CAAA,EAChBA,EAAO,SAAWJ,wBAACM,EAAAA,OAAO,CAAA,QAASF,EAAO,OAAS,CAAA,CAAA,CAAA,CACtD,EACCD,EAAQT,EAAQ,OAAS,GACxBM,EAAA,kBAAA,IAAC,MACC,SAACA,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,YAAa,CAAA,CAC/B,CAAA,CAAA,GAfiBG,CAiBrB,CACD,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAEJ,CACF,CAAA,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
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.cjs331.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs331.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs331.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\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,OAEzB,MAAAG,EAAoBH,EAAI,QAAQ,iBACpC,0EACF,EACMI,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAM,EAC3B,EAAE,eAAe,GAGf,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAM,EAC5B,EAAE,eAAe,GAGvB,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAM,EAEnB,SAAA,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACF,SAAA,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CAAA,EACC,CAACN,EAAUD,CAAG,CAAC,CACpB"}
@@ -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"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
2
2
  //# sourceMappingURL=index.cjs334.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs334.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,OAEzB,MAAAG,EAAoBH,EAAI,QAAQ,iBACpC,0EACF,EACMI,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAM,EAC3B,EAAE,eAAe,GAGf,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAM,EAC5B,EAAE,eAAe,GAGvB,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAM,EAEnB,SAAA,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACF,SAAA,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CAAA,EACC,CAACN,EAAUD,CAAG,CAAC,CACpB"}
1
+ {"version":3,"file":"index.cjs334.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"gFACA,SAASA,EAAqBC,EAAsBC,EAAiB,CAAE,yBAAAC,EAA2B,EAAM,EAAG,GAAI,CAC7G,OAAO,SAAqBC,EAAO,CAEjC,GADAH,GAAA,MAAAA,EAAuBG,GACnBD,IAA6B,IAAS,CAACC,EAAM,iBAC/C,OAAOF,GAAA,YAAAA,EAAkBE,EAE5B,CACH","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
2
+ //# sourceMappingURL=index.cjs335.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs335.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs185.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=_;
2
+ //# sourceMappingURL=index.cjs336.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs336.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,CACjE,EACDF,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,CACtF,CACE,MAAO,CAACI,EAAUM,CAAW,CAC/B,CACA,SAASE,EAAmBC,EAAWC,EAAyB,GAAI,CAClE,IAAIC,EAAkB,CAAE,EACxB,SAASC,EAAehB,EAAmBC,EAAgB,CACzD,MAAMgB,EAAcd,EAAM,cAAcF,CAAc,EAChDiB,EAAQH,EAAgB,OAC9BA,EAAkB,CAAC,GAAG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AMM,EAAaF,EAAO,IAAKG,IAAkB,CAC/C,SAAUA,EAAc,EACxB,UAAWA,EAAa,SAC9B,EAAM,EACF,OAAO,SAA2BC,EAAgB,CAChD,MAAMC,EAAaH,EAAW,OAAO,CAACI,EAAa,CAAE,SAAAC,EAAU,UAAAnB,KAAgB,CAE7E,MAAMoB,EADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE,EACrD,MAAO,CAAE,GAAGkB,EAAa,GAAGE,CAAc,CAC3C,EAAE,EAAE,EACL,OAAO9B,EAAM,QAAQ,KAAO,CAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC7F,CACF,EACD,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs371.js");function S(e){const o=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(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
2
2
  //# sourceMappingURL=index.cjs337.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs337.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"gFACA,SAASA,EAAqBC,EAAsBC,EAAiB,CAAE,yBAAAC,EAA2B,EAAM,EAAG,GAAI,CAC7G,OAAO,SAAqBC,EAAO,CAEjC,GADAH,GAAA,MAAAA,EAAuBG,GACnBD,IAA6B,IAAS,CAACC,EAAM,iBAC/C,OAAOF,GAAA,YAAAA,EAAkBE,EAE5B,CACH","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs337.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":"kaAGA,SAASA,EAAqB,CAC5B,KAAAC,EACA,YAAAC,EACA,SAAAC,EAAW,IAAM,CACnB,CACA,EAAG,CACD,KAAM,CAACC,EAAkBC,CAAmB,EAAIC,EAAqB,CAAE,YAAAJ,EAAa,SAAAC,EAAU,EACxFI,EAAeN,IAAS,OACxBO,EAAQD,EAAeN,EAAOG,EAC9BK,EAAeC,EAAc,eAACP,CAAQ,EACtCQ,EAAWC,EAAM,YACpBC,GAAc,CACb,GAAIN,EAAc,CAEhB,MAAMO,EAAS,OAAOD,GAAc,WADrBA,EACyCZ,CAAI,EAAIY,EAC5DC,IAAWb,GAAMQ,EAAaK,CAAM,CAChD,MACQT,EAAoBQ,CAAS,CAEhC,EACD,CAACN,EAAcN,EAAMI,EAAqBI,CAAY,CACvD,EACD,MAAO,CAACD,EAAOG,CAAQ,CACzB,CACA,SAASL,EAAqB,CAC5B,YAAAJ,EACA,SAAAC,CACF,EAAG,CACD,MAAMY,EAAoBH,EAAM,SAASV,CAAW,EAC9C,CAACM,CAAK,EAAIO,EACVC,EAAeJ,EAAM,OAAOJ,CAAK,EACjCC,EAAeC,EAAc,eAACP,CAAQ,EAC5CS,OAAAA,EAAM,UAAU,IAAM,CAChBI,EAAa,UAAYR,IAC3BC,EAAaD,CAAK,EAClBQ,EAAa,QAAUR,EAE1B,EAAE,CAACA,EAAOQ,EAAcP,CAAY,CAAC,EAC/BM,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs354.js"),p=require("./index.cjs185.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
2
2
  //# sourceMappingURL=index.cjs338.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs338.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs338.js","sources":["../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":"+dAKA,IAAIA,EAAQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,IACF,EACIC,EAAYD,EAAM,OAAO,CAACE,EAAWC,IAAS,CAChD,MAAMC,EAAOC,EAAU,WAAC,aAAaF,CAAI,EAAE,EACrCG,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACrD,KAAM,CAAE,QAAAC,EAAS,GAAGC,CAAc,EAAKH,EACjCI,EAAOF,EAAUN,EAAOD,EAC9B,OAAI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,CAAC,EAAI,IAEZU,EAAAA,kBAAAA,IAAID,EAAM,CAAE,GAAGD,EAAgB,IAAKF,EAAc,CAC7E,CAAG,EACD,OAAAH,EAAK,YAAc,aAAaH,CAAI,GAC7B,CAAE,GAAGD,EAAW,CAACC,CAAI,EAAGG,CAAM,CACvC,EAAG,CAAE,CAAA,EACL,SAASQ,EAA4BC,EAAQC,EAAO,CAC9CD,GAAQE,EAAS,UAAU,IAAMF,EAAO,cAAcC,CAAK,CAAC,CAClE","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs185.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 Be=require("react"),v=require("./index.cjs334.js"),Ve=require("./index.cjs372.js"),y=require("./index.cjs335.js"),Ye=require("./index.cjs336.js"),Xe=require("./index.cjs373.js"),We=require("./index.cjs348.js"),ze=require("./index.cjs351.js"),Ze=require("./index.cjs349.js"),T=require("./index.cjs374.js"),Je=require("./index.cjs350.js"),X=require("./index.cjs344.js"),A=require("./index.cjs338.js"),W=require("./index.cjs375.js"),Qe=require("./index.cjs354.js"),be=require("./index.cjs371.js"),et=require("./index.cjs353.js"),tt=require("./index.cjs352.js"),a=require("./index.cjs185.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[N,ut,at]=Ve.createCollection(F),[j,it]=Ye.createContextScope(F,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(F),[dt,G]=j(F),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const R=()=>{f.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>f.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=F;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Mt=Qe.createSlot("MenuContent.ScrollLock"),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,disableOutsideScroll:M,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=M?tt:r.Fragment,Ue=M?{as:Mt,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=wt(ne,E,te),k=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),k&&setTimeout(()=>k.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&Tt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Fe(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const k=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&k.reverse(),It(k)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,L(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Et="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Et;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,R=>o==null?void 0:o(R),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,R]=r.useState("");return r.useEffect(()=>{const M=p.current;M&&R((M.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,L(M=>{o?l.onItemLeave(M):(l.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(M=>l.onItemLeave(M))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Ct="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Ct;var Oe="MenuRadioGroup",[ht,gt]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(ht,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var ke="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=gt(ke,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=ke;var pe="MenuItemIndicator",[De,_t]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=_t(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var Pt="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=Pt;var jt="MenuArrow",Me=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Me.displayName=jt;var St="MenuSub",[Yt,Ne]=j(St),D="MenuSubTrigger",Re=r.forwardRef((e,n)=>{const t=S(D,e.__scopeMenu),o=G(D,e.__scopeMenu),u=Ne(D,e.__scopeMenu),s=ue(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Fe(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,L(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(c=>{var R,M;f();const d=(R=t.content)==null?void 0:R.getBoundingClientRect();if(d){const P=(M=t.content)==null?void 0:M.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var R;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(R=t.content)==null||R.focus(),c.preventDefault())})})})});Re.displayName=D;var Le="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Le,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var R;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(R=m.trigger)==null||R.focus(),f.preventDefault())})})})})})});Ee.displayName=Le;function Fe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function It(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function bt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function wt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=bt(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function yt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function Tt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return yt(t,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var At=re,Ot=Z,kt=ce,Dt=ae,Nt=J,Lt=le,Ft=K,Gt=de,Kt=fe,Ht=me,qt=xe,Ut=ve,$t=Me,Bt=Re,Vt=Ee;exports.Anchor=Ot;exports.Arrow=$t;exports.CheckboxItem=Gt;exports.Content=Dt;exports.Group=Nt;exports.Item=Ft;exports.ItemIndicator=qt;exports.Label=Lt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Me;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Re;exports.Portal=kt;exports.RadioGroup=Kt;exports.RadioItem=Ht;exports.Root=At;exports.Separator=Ut;exports.SubContent=Vt;exports.SubTrigger=Bt;exports.createMenuScope=it;
2
2
  //# sourceMappingURL=index.cjs339.js.map