@anoki/fse-ui 1.0.628 → 1.0.629

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 (749) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs100.js +1 -1
  3. package/dist/index.cjs101.js +1 -1
  4. package/dist/index.cjs102.js +1 -1
  5. package/dist/index.cjs103.js +1 -1
  6. package/dist/index.cjs104.js +1 -1
  7. package/dist/index.cjs105.js +1 -1
  8. package/dist/index.cjs107.js +1 -1
  9. package/dist/index.cjs108.js +1 -1
  10. package/dist/index.cjs11.js +1 -1
  11. package/dist/index.cjs110.js +1 -1
  12. package/dist/index.cjs112.js +1 -1
  13. package/dist/index.cjs114.js +1 -1
  14. package/dist/index.cjs116.js +1 -1
  15. package/dist/index.cjs117.js +1 -1
  16. package/dist/index.cjs118.js +1 -1
  17. package/dist/index.cjs12.js +1 -1
  18. package/dist/index.cjs121.js +1 -1
  19. package/dist/index.cjs122.js +1 -1
  20. package/dist/index.cjs123.js +1 -1
  21. package/dist/index.cjs124.js +1 -1
  22. package/dist/index.cjs125.js +1 -1
  23. package/dist/index.cjs126.js +1 -1
  24. package/dist/index.cjs127.js +1 -1
  25. package/dist/index.cjs128.js +1 -1
  26. package/dist/index.cjs129.js +1 -1
  27. package/dist/index.cjs13.js +1 -1
  28. package/dist/index.cjs130.js +1 -1
  29. package/dist/index.cjs131.js +1 -1
  30. package/dist/index.cjs132.js +1 -1
  31. package/dist/index.cjs133.js +1 -1
  32. package/dist/index.cjs134.js +1 -1
  33. package/dist/index.cjs135.js +1 -1
  34. package/dist/index.cjs136.js +1 -1
  35. package/dist/index.cjs137.js +1 -1
  36. package/dist/index.cjs138.js +1 -1
  37. package/dist/index.cjs139.js +1 -1
  38. package/dist/index.cjs14.js +1 -1
  39. package/dist/index.cjs140.js +1 -1
  40. package/dist/index.cjs141.js +1 -1
  41. package/dist/index.cjs142.js +1 -1
  42. package/dist/index.cjs143.js +1 -1
  43. package/dist/index.cjs144.js +1 -1
  44. package/dist/index.cjs145.js +1 -1
  45. package/dist/index.cjs146.js +1 -1
  46. package/dist/index.cjs147.js +1 -1
  47. package/dist/index.cjs148.js +1 -1
  48. package/dist/index.cjs149.js +1 -1
  49. package/dist/index.cjs15.js +1 -1
  50. package/dist/index.cjs151.js +1 -1
  51. package/dist/index.cjs152.js +1 -1
  52. package/dist/index.cjs153.js +1 -1
  53. package/dist/index.cjs154.js +1 -1
  54. package/dist/index.cjs155.js +1 -1
  55. package/dist/index.cjs156.js +1 -1
  56. package/dist/index.cjs157.js +1 -1
  57. package/dist/index.cjs158.js +1 -1
  58. package/dist/index.cjs159.js +1 -1
  59. package/dist/index.cjs16.js +1 -1
  60. package/dist/index.cjs161.js +1 -1
  61. package/dist/index.cjs162.js +1 -1
  62. package/dist/index.cjs163.js +1 -1
  63. package/dist/index.cjs164.js +1 -1
  64. package/dist/index.cjs165.js +1 -1
  65. package/dist/index.cjs166.js +1 -1
  66. package/dist/index.cjs167.js +1 -1
  67. package/dist/index.cjs169.js +1 -1
  68. package/dist/index.cjs17.js +1 -1
  69. package/dist/index.cjs170.js +1 -1
  70. package/dist/index.cjs171.js +1 -1
  71. package/dist/index.cjs172.js +1 -1
  72. package/dist/index.cjs173.js +1 -1
  73. package/dist/index.cjs174.js +1 -1
  74. package/dist/index.cjs175.js +1 -1
  75. package/dist/index.cjs18.js +1 -1
  76. package/dist/index.cjs19.js +1 -1
  77. package/dist/index.cjs198.js +1 -1
  78. package/dist/index.cjs198.js.map +1 -1
  79. package/dist/index.cjs20.js +1 -1
  80. package/dist/index.cjs200.js +1 -1
  81. package/dist/index.cjs200.js.map +1 -1
  82. package/dist/index.cjs207.js +2 -0
  83. package/dist/index.cjs207.js.map +1 -0
  84. package/dist/index.cjs208.js +6 -1
  85. package/dist/index.cjs208.js.map +1 -1
  86. package/dist/index.cjs209.js +2 -0
  87. package/dist/index.cjs209.js.map +1 -0
  88. package/dist/index.cjs21.js +1 -1
  89. package/dist/index.cjs211.js +1 -1
  90. package/dist/index.cjs211.js.map +1 -1
  91. package/dist/{index.cjs201.js → index.cjs212.js} +1 -1
  92. package/dist/{index.cjs201.js.map → index.cjs212.js.map} +1 -1
  93. package/dist/{index.cjs204.js → index.cjs215.js} +1 -1
  94. package/dist/{index.cjs204.js.map → index.cjs215.js.map} +1 -1
  95. package/dist/index.cjs219.js +1 -1
  96. package/dist/index.cjs219.js.map +1 -1
  97. package/dist/index.cjs22.js +1 -1
  98. package/dist/index.cjs222.js +2 -0
  99. package/dist/index.cjs222.js.map +1 -0
  100. package/dist/index.cjs225.js +1 -1
  101. package/dist/index.cjs225.js.map +1 -1
  102. package/dist/{index.cjs217.js → index.cjs228.js} +2 -2
  103. package/dist/{index.cjs217.js.map → index.cjs228.js.map} +1 -1
  104. package/dist/index.cjs229.js +1 -1
  105. package/dist/index.cjs229.js.map +1 -1
  106. package/dist/index.cjs23.js +1 -1
  107. package/dist/index.cjs230.js +2 -0
  108. package/dist/index.cjs230.js.map +1 -0
  109. package/dist/index.cjs236.js +1 -1
  110. package/dist/index.cjs236.js.map +1 -1
  111. package/dist/index.cjs237.js +1 -1
  112. package/dist/index.cjs237.js.map +1 -1
  113. package/dist/index.cjs24.js +1 -1
  114. package/dist/index.cjs240.js +1 -1
  115. package/dist/index.cjs240.js.map +1 -1
  116. package/dist/index.cjs245.js +1 -1
  117. package/dist/index.cjs245.js.map +1 -1
  118. package/dist/index.cjs246.js +1 -1
  119. package/dist/index.cjs246.js.map +1 -1
  120. package/dist/index.cjs247.js +2 -0
  121. package/dist/index.cjs247.js.map +1 -0
  122. package/dist/index.cjs248.js +1 -1
  123. package/dist/index.cjs248.js.map +1 -1
  124. package/dist/index.cjs249.js +1 -1
  125. package/dist/index.cjs249.js.map +1 -1
  126. package/dist/index.cjs25.js +1 -1
  127. package/dist/index.cjs251.js +2 -0
  128. package/dist/index.cjs251.js.map +1 -0
  129. package/dist/index.cjs253.js +5 -1
  130. package/dist/index.cjs253.js.map +1 -1
  131. package/dist/index.cjs254.js +1 -1
  132. package/dist/index.cjs254.js.map +1 -1
  133. package/dist/{index.cjs244.js → index.cjs255.js} +1 -1
  134. package/dist/{index.cjs244.js.map → index.cjs255.js.map} +1 -1
  135. package/dist/index.cjs256.js +2 -0
  136. package/dist/index.cjs256.js.map +1 -0
  137. package/dist/index.cjs257.js +2 -0
  138. package/dist/index.cjs257.js.map +1 -0
  139. package/dist/index.cjs259.js +1 -1
  140. package/dist/index.cjs259.js.map +1 -1
  141. package/dist/index.cjs26.js +1 -1
  142. package/dist/index.cjs260.js +1 -1
  143. package/dist/index.cjs260.js.map +1 -1
  144. package/dist/index.cjs261.js +1 -1
  145. package/dist/index.cjs261.js.map +1 -1
  146. package/dist/index.cjs264.js +1 -1
  147. package/dist/index.cjs264.js.map +1 -1
  148. package/dist/index.cjs265.js +1 -1
  149. package/dist/index.cjs265.js.map +1 -1
  150. package/dist/index.cjs270.js +2 -0
  151. package/dist/index.cjs270.js.map +1 -0
  152. package/dist/index.cjs271.js +1 -6
  153. package/dist/index.cjs271.js.map +1 -1
  154. package/dist/index.cjs272.js +2 -0
  155. package/dist/index.cjs272.js.map +1 -0
  156. package/dist/{index.cjs263.js → index.cjs274.js} +2 -2
  157. package/dist/{index.cjs263.js.map → index.cjs274.js.map} +1 -1
  158. package/dist/index.cjs275.js +2 -0
  159. package/dist/index.cjs275.js.map +1 -0
  160. package/dist/index.cjs276.js +2 -0
  161. package/dist/index.cjs276.js.map +1 -0
  162. package/dist/{index.cjs267.js → index.cjs278.js} +2 -2
  163. package/dist/{index.cjs267.js.map → index.cjs278.js.map} +1 -1
  164. package/dist/{index.cjs268.js → index.cjs279.js} +2 -2
  165. package/dist/{index.cjs268.js.map → index.cjs279.js.map} +1 -1
  166. package/dist/index.cjs28.js +1 -1
  167. package/dist/index.cjs280.js +1 -1
  168. package/dist/index.cjs280.js.map +1 -1
  169. package/dist/index.cjs29.js +1 -1
  170. package/dist/index.cjs290.js +2 -0
  171. package/dist/index.cjs290.js.map +1 -0
  172. package/dist/index.cjs30.js +1 -1
  173. package/dist/index.cjs31.js +1 -1
  174. package/dist/{index.cjs308.js → index.cjs318.js} +2 -2
  175. package/dist/{index.cjs308.js.map → index.cjs318.js.map} +1 -1
  176. package/dist/index.cjs32.js +1 -1
  177. package/dist/{index.cjs316.js → index.cjs326.js} +2 -2
  178. package/dist/{index.cjs316.js.map → index.cjs326.js.map} +1 -1
  179. package/dist/index.cjs33.js +1 -1
  180. package/dist/{index.cjs321.js → index.cjs331.js} +1 -1
  181. package/dist/{index.cjs321.js.map → index.cjs331.js.map} +1 -1
  182. package/dist/index.cjs337.js +1 -1
  183. package/dist/index.cjs337.js.map +1 -1
  184. package/dist/{index.cjs329.js → index.cjs339.js} +2 -2
  185. package/dist/{index.cjs329.js.map → index.cjs339.js.map} +1 -1
  186. package/dist/index.cjs34.js +1 -1
  187. package/dist/index.cjs34.js.map +1 -1
  188. package/dist/{index.cjs333.js → index.cjs343.js} +1 -1
  189. package/dist/{index.cjs333.js.map → index.cjs343.js.map} +1 -1
  190. package/dist/{index.cjs335.js → index.cjs345.js} +2 -2
  191. package/dist/{index.cjs335.js.map → index.cjs345.js.map} +1 -1
  192. package/dist/{index.cjs336.js → index.cjs346.js} +2 -2
  193. package/dist/{index.cjs336.js.map → index.cjs346.js.map} +1 -1
  194. package/dist/index.cjs347.js +2 -0
  195. package/dist/index.cjs347.js.map +1 -0
  196. package/dist/index.cjs35.js +1 -1
  197. package/dist/index.cjs357.js +27 -1
  198. package/dist/index.cjs357.js.map +1 -1
  199. package/dist/index.cjs358.js +1 -1
  200. package/dist/index.cjs358.js.map +1 -1
  201. package/dist/index.cjs359.js +1 -1
  202. package/dist/index.cjs359.js.map +1 -1
  203. package/dist/index.cjs360.js +1 -1
  204. package/dist/index.cjs360.js.map +1 -1
  205. package/dist/index.cjs361.js +2 -1
  206. package/dist/index.cjs361.js.map +1 -1
  207. package/dist/index.cjs362.js +1 -1
  208. package/dist/index.cjs362.js.map +1 -1
  209. package/dist/index.cjs363.js +1 -1
  210. package/dist/index.cjs363.js.map +1 -1
  211. package/dist/index.cjs364.js +2 -0
  212. package/dist/index.cjs364.js.map +1 -0
  213. package/dist/index.cjs365.js +1 -1
  214. package/dist/index.cjs365.js.map +1 -1
  215. package/dist/index.cjs366.js +2 -0
  216. package/dist/index.cjs366.js.map +1 -0
  217. package/dist/index.cjs367.js +2 -0
  218. package/dist/index.cjs367.js.map +1 -0
  219. package/dist/index.cjs368.js +1 -1
  220. package/dist/index.cjs368.js.map +1 -1
  221. package/dist/index.cjs37.js +1 -1
  222. package/dist/index.cjs370.js +1 -1
  223. package/dist/index.cjs370.js.map +1 -1
  224. package/dist/index.cjs376.js +2 -0
  225. package/dist/index.cjs376.js.map +1 -0
  226. package/dist/index.cjs377.js +2 -0
  227. package/dist/index.cjs377.js.map +1 -0
  228. package/dist/index.cjs378.js +2 -0
  229. package/dist/index.cjs378.js.map +1 -0
  230. package/dist/index.cjs379.js +1 -1
  231. package/dist/index.cjs379.js.map +1 -1
  232. package/dist/index.cjs38.js +1 -1
  233. package/dist/index.cjs380.js +1 -1
  234. package/dist/index.cjs380.js.map +1 -1
  235. package/dist/index.cjs381.js +1 -1
  236. package/dist/index.cjs381.js.map +1 -1
  237. package/dist/index.cjs382.js +1 -1
  238. package/dist/index.cjs382.js.map +1 -1
  239. package/dist/index.cjs383.js +1 -1
  240. package/dist/index.cjs383.js.map +1 -1
  241. package/dist/index.cjs39.js +1 -1
  242. package/dist/index.cjs390.js +2 -0
  243. package/dist/index.cjs390.js.map +1 -0
  244. package/dist/{index.cjs369.js → index.cjs391.js} +1 -1
  245. package/dist/{index.cjs369.js.map → index.cjs391.js.map} +1 -1
  246. package/dist/index.cjs397.js +1 -1
  247. package/dist/index.cjs397.js.map +1 -1
  248. package/dist/index.cjs40.js +1 -1
  249. package/dist/index.cjs401.js +1 -1
  250. package/dist/index.cjs401.js.map +1 -1
  251. package/dist/index.cjs402.js +1 -1
  252. package/dist/index.cjs402.js.map +1 -1
  253. package/dist/index.cjs403.js +1 -2
  254. package/dist/index.cjs403.js.map +1 -1
  255. package/dist/index.cjs407.js +1 -1
  256. package/dist/index.cjs409.js +1 -1
  257. package/dist/index.cjs41.js +1 -1
  258. package/dist/index.cjs410.js +1 -1
  259. package/dist/index.cjs412.js +1 -1
  260. package/dist/index.cjs412.js.map +1 -1
  261. package/dist/index.cjs413.js +1 -1
  262. package/dist/index.cjs413.js.map +1 -1
  263. package/dist/index.cjs414.js +1 -1
  264. package/dist/index.cjs414.js.map +1 -1
  265. package/dist/index.cjs415.js +1 -1
  266. package/dist/index.cjs416.js +1 -1
  267. package/dist/index.cjs416.js.map +1 -1
  268. package/dist/index.cjs417.js +1 -1
  269. package/dist/index.cjs417.js.map +1 -1
  270. package/dist/index.cjs419.js +1 -1
  271. package/dist/index.cjs42.js +1 -1
  272. package/dist/index.cjs421.js +1 -1
  273. package/dist/index.cjs421.js.map +1 -1
  274. package/dist/index.cjs422.js +1 -1
  275. package/dist/index.cjs422.js.map +1 -1
  276. package/dist/index.cjs423.js +1 -1
  277. package/dist/index.cjs423.js.map +1 -1
  278. package/dist/index.cjs424.js +1 -1
  279. package/dist/index.cjs424.js.map +1 -1
  280. package/dist/index.cjs425.js +1 -1
  281. package/dist/index.cjs43.js +1 -1
  282. package/dist/index.cjs432.js +1 -1
  283. package/dist/index.cjs434.js +1 -1
  284. package/dist/index.cjs436.js +1 -1
  285. package/dist/index.cjs437.js +1 -1
  286. package/dist/index.cjs44.js +1 -1
  287. package/dist/index.cjs449.js +1 -38
  288. package/dist/index.cjs449.js.map +1 -1
  289. package/dist/index.cjs45.js +1 -1
  290. package/dist/index.cjs450.js +38 -1
  291. package/dist/index.cjs450.js.map +1 -1
  292. package/dist/index.cjs451.js +1 -1
  293. package/dist/index.cjs451.js.map +1 -1
  294. package/dist/index.cjs452.js +1 -1
  295. package/dist/index.cjs452.js.map +1 -1
  296. package/dist/index.cjs453.js +1 -1
  297. package/dist/index.cjs453.js.map +1 -1
  298. package/dist/index.cjs46.js +1 -1
  299. package/dist/index.cjs47.js +1 -1
  300. package/dist/index.cjs48.js +1 -1
  301. package/dist/index.cjs49.js +1 -1
  302. package/dist/index.cjs50.js +1 -1
  303. package/dist/index.cjs51.js +1 -1
  304. package/dist/index.cjs52.js +1 -1
  305. package/dist/index.cjs53.js +1 -1
  306. package/dist/index.cjs54.js +1 -1
  307. package/dist/index.cjs55.js +1 -1
  308. package/dist/index.cjs56.js +1 -1
  309. package/dist/index.cjs57.js +1 -1
  310. package/dist/index.cjs59.js +1 -1
  311. package/dist/index.cjs6.js +1 -1
  312. package/dist/index.cjs60.js +1 -1
  313. package/dist/index.cjs61.js +1 -1
  314. package/dist/index.cjs62.js +1 -1
  315. package/dist/index.cjs64.js +1 -1
  316. package/dist/index.cjs66.js +1 -1
  317. package/dist/index.cjs67.js +1 -1
  318. package/dist/index.cjs69.js +1 -1
  319. package/dist/index.cjs7.js +1 -1
  320. package/dist/index.cjs70.js +1 -1
  321. package/dist/index.cjs71.js +1 -1
  322. package/dist/index.cjs72.js +1 -1
  323. package/dist/index.cjs8.js +1 -1
  324. package/dist/index.cjs89.js +1 -1
  325. package/dist/index.cjs9.js +1 -1
  326. package/dist/index.cjs90.js +1 -1
  327. package/dist/index.cjs91.js +1 -1
  328. package/dist/index.cjs93.js +1 -1
  329. package/dist/index.cjs95.js +1 -1
  330. package/dist/index.cjs96.js +1 -1
  331. package/dist/index.cjs99.js +1 -1
  332. package/dist/index.es10.js +4 -4
  333. package/dist/index.es100.js +1 -1
  334. package/dist/index.es101.js +3 -3
  335. package/dist/index.es102.js +1 -1
  336. package/dist/index.es103.js +1 -1
  337. package/dist/index.es104.js +1 -1
  338. package/dist/index.es105.js +1 -1
  339. package/dist/index.es107.js +2 -2
  340. package/dist/index.es108.js +1 -1
  341. package/dist/index.es11.js +1 -1
  342. package/dist/index.es110.js +1 -1
  343. package/dist/index.es112.js +3 -3
  344. package/dist/index.es114.js +2 -2
  345. package/dist/index.es116.js +1 -1
  346. package/dist/index.es117.js +2 -2
  347. package/dist/index.es118.js +1 -1
  348. package/dist/index.es12.js +2 -2
  349. package/dist/index.es121.js +2 -2
  350. package/dist/index.es122.js +2 -2
  351. package/dist/index.es123.js +2 -2
  352. package/dist/index.es124.js +2 -2
  353. package/dist/index.es125.js +2 -2
  354. package/dist/index.es126.js +2 -2
  355. package/dist/index.es127.js +2 -2
  356. package/dist/index.es128.js +2 -2
  357. package/dist/index.es129.js +2 -2
  358. package/dist/index.es13.js +1 -1
  359. package/dist/index.es130.js +2 -2
  360. package/dist/index.es131.js +2 -2
  361. package/dist/index.es132.js +2 -2
  362. package/dist/index.es133.js +2 -2
  363. package/dist/index.es134.js +2 -2
  364. package/dist/index.es135.js +2 -2
  365. package/dist/index.es136.js +2 -2
  366. package/dist/index.es137.js +2 -2
  367. package/dist/index.es138.js +2 -2
  368. package/dist/index.es139.js +2 -2
  369. package/dist/index.es14.js +1 -1
  370. package/dist/index.es140.js +2 -2
  371. package/dist/index.es141.js +2 -2
  372. package/dist/index.es142.js +2 -2
  373. package/dist/index.es143.js +2 -2
  374. package/dist/index.es144.js +1 -1
  375. package/dist/index.es145.js +1 -1
  376. package/dist/index.es146.js +1 -1
  377. package/dist/index.es147.js +2 -2
  378. package/dist/index.es148.js +2 -2
  379. package/dist/index.es149.js +2 -2
  380. package/dist/index.es15.js +2 -2
  381. package/dist/index.es151.js +2 -2
  382. package/dist/index.es152.js +2 -2
  383. package/dist/index.es153.js +2 -2
  384. package/dist/index.es154.js +2 -2
  385. package/dist/index.es155.js +2 -2
  386. package/dist/index.es156.js +2 -2
  387. package/dist/index.es157.js +2 -2
  388. package/dist/index.es158.js +2 -2
  389. package/dist/index.es159.js +2 -2
  390. package/dist/index.es16.js +2 -2
  391. package/dist/index.es161.js +2 -2
  392. package/dist/index.es162.js +2 -2
  393. package/dist/index.es163.js +2 -2
  394. package/dist/index.es164.js +2 -2
  395. package/dist/index.es165.js +2 -2
  396. package/dist/index.es166.js +2 -2
  397. package/dist/index.es167.js +2 -2
  398. package/dist/index.es169.js +2 -2
  399. package/dist/index.es17.js +1 -1
  400. package/dist/index.es170.js +2 -2
  401. package/dist/index.es171.js +2 -2
  402. package/dist/index.es172.js +2 -2
  403. package/dist/index.es173.js +2 -2
  404. package/dist/index.es174.js +2 -2
  405. package/dist/index.es175.js +2 -2
  406. package/dist/index.es18.js +2 -2
  407. package/dist/index.es19.js +2 -2
  408. package/dist/index.es198.js +15 -27
  409. package/dist/index.es198.js.map +1 -1
  410. package/dist/index.es20.js +1 -1
  411. package/dist/index.es200.js +3 -2
  412. package/dist/index.es200.js.map +1 -1
  413. package/dist/index.es207.js +8 -0
  414. package/dist/index.es207.js.map +1 -0
  415. package/dist/index.es208.js +59 -22
  416. package/dist/index.es208.js.map +1 -1
  417. package/dist/index.es209.js +30 -0
  418. package/dist/index.es209.js.map +1 -0
  419. package/dist/index.es21.js +2 -2
  420. package/dist/index.es211.js +2 -22
  421. package/dist/index.es211.js.map +1 -1
  422. package/dist/{index.es201.js → index.es212.js} +1 -1
  423. package/dist/{index.es201.js.map → index.es212.js.map} +1 -1
  424. package/dist/{index.es204.js → index.es215.js} +1 -1
  425. package/dist/{index.es204.js.map → index.es215.js.map} +1 -1
  426. package/dist/index.es219.js +20 -145
  427. package/dist/index.es219.js.map +1 -1
  428. package/dist/index.es22.js +3 -3
  429. package/dist/index.es222.js +25 -0
  430. package/dist/index.es222.js.map +1 -0
  431. package/dist/index.es225.js +195 -121
  432. package/dist/index.es225.js.map +1 -1
  433. package/dist/{index.es217.js → index.es228.js} +3 -3
  434. package/dist/{index.es217.js.map → index.es228.js.map} +1 -1
  435. package/dist/index.es229.js +143 -3
  436. package/dist/index.es229.js.map +1 -1
  437. package/dist/index.es23.js +2 -2
  438. package/dist/index.es230.js +150 -0
  439. package/dist/index.es230.js.map +1 -0
  440. package/dist/index.es236.js +132 -11
  441. package/dist/index.es236.js.map +1 -1
  442. package/dist/index.es237.js +20 -6
  443. package/dist/index.es237.js.map +1 -1
  444. package/dist/index.es24.js +2 -2
  445. package/dist/index.es240.js +3 -51
  446. package/dist/index.es240.js.map +1 -1
  447. package/dist/index.es245.js +4 -7
  448. package/dist/index.es245.js.map +1 -1
  449. package/dist/index.es246.js +19 -27
  450. package/dist/index.es246.js.map +1 -1
  451. package/dist/index.es247.js +15 -0
  452. package/dist/index.es247.js.map +1 -0
  453. package/dist/index.es248.js +6 -27
  454. package/dist/index.es248.js.map +1 -1
  455. package/dist/index.es249.js +5 -4
  456. package/dist/index.es249.js.map +1 -1
  457. package/dist/index.es25.js +2 -2
  458. package/dist/index.es251.js +54 -0
  459. package/dist/index.es251.js.map +1 -0
  460. package/dist/index.es253.js +259 -8
  461. package/dist/index.es253.js.map +1 -1
  462. package/dist/index.es254.js +49 -4
  463. package/dist/index.es254.js.map +1 -1
  464. package/dist/{index.es244.js → index.es255.js} +1 -1
  465. package/dist/{index.es244.js.map → index.es255.js.map} +1 -1
  466. package/dist/index.es256.js +10 -0
  467. package/dist/index.es256.js.map +1 -0
  468. package/dist/index.es257.js +31 -0
  469. package/dist/index.es257.js.map +1 -0
  470. package/dist/index.es259.js +27 -8
  471. package/dist/index.es259.js.map +1 -1
  472. package/dist/index.es26.js +1 -1
  473. package/dist/index.es260.js +4 -27
  474. package/dist/index.es260.js.map +1 -1
  475. package/dist/index.es261.js +8 -6
  476. package/dist/index.es261.js.map +1 -1
  477. package/dist/index.es264.js +6 -6
  478. package/dist/index.es264.js.map +1 -1
  479. package/dist/index.es265.js +3 -5
  480. package/dist/index.es265.js.map +1 -1
  481. package/dist/index.es270.js +11 -0
  482. package/dist/index.es270.js.map +1 -0
  483. package/dist/index.es271.js +27 -59
  484. package/dist/index.es271.js.map +1 -1
  485. package/dist/index.es272.js +9 -0
  486. package/dist/index.es272.js.map +1 -0
  487. package/dist/{index.es263.js → index.es274.js} +2 -2
  488. package/dist/{index.es263.js.map → index.es274.js.map} +1 -1
  489. package/dist/index.es275.js +11 -0
  490. package/dist/index.es275.js.map +1 -0
  491. package/dist/index.es276.js +9 -0
  492. package/dist/index.es276.js.map +1 -0
  493. package/dist/{index.es267.js → index.es278.js} +3 -3
  494. package/dist/{index.es267.js.map → index.es278.js.map} +1 -1
  495. package/dist/{index.es268.js → index.es279.js} +3 -3
  496. package/dist/{index.es268.js.map → index.es279.js.map} +1 -1
  497. package/dist/index.es28.js +2 -2
  498. package/dist/index.es280.js +118 -1
  499. package/dist/index.es280.js.map +1 -1
  500. package/dist/index.es29.js +1 -1
  501. package/dist/index.es290.js +2 -0
  502. package/dist/index.es290.js.map +1 -0
  503. package/dist/index.es30.js +3 -3
  504. package/dist/index.es31.js +1 -1
  505. package/dist/{index.es308.js → index.es318.js} +6 -6
  506. package/dist/{index.es308.js.map → index.es318.js.map} +1 -1
  507. package/dist/index.es32.js +1 -1
  508. package/dist/{index.es316.js → index.es326.js} +2 -2
  509. package/dist/{index.es316.js.map → index.es326.js.map} +1 -1
  510. package/dist/index.es33.js +1 -1
  511. package/dist/{index.es321.js → index.es331.js} +1 -1
  512. package/dist/{index.es321.js.map → index.es331.js.map} +1 -1
  513. package/dist/index.es337.js +34 -224
  514. package/dist/index.es337.js.map +1 -1
  515. package/dist/{index.es329.js → index.es339.js} +2 -2
  516. package/dist/{index.es329.js.map → index.es339.js.map} +1 -1
  517. package/dist/index.es34.js +38 -41
  518. package/dist/index.es34.js.map +1 -1
  519. package/dist/{index.es333.js → index.es343.js} +1 -1
  520. package/dist/{index.es333.js.map → index.es343.js.map} +1 -1
  521. package/dist/{index.es335.js → index.es345.js} +4 -4
  522. package/dist/{index.es335.js.map → index.es345.js.map} +1 -1
  523. package/dist/{index.es336.js → index.es346.js} +2 -2
  524. package/dist/{index.es336.js.map → index.es346.js.map} +1 -1
  525. package/dist/index.es347.js +228 -0
  526. package/dist/index.es347.js.map +1 -0
  527. package/dist/index.es35.js +1 -1
  528. package/dist/index.es357.js +3674 -6
  529. package/dist/index.es357.js.map +1 -1
  530. package/dist/index.es358.js +5 -26
  531. package/dist/index.es358.js.map +1 -1
  532. package/dist/index.es359.js +2 -68
  533. package/dist/index.es359.js.map +1 -1
  534. package/dist/index.es360.js +5 -29
  535. package/dist/index.es360.js.map +1 -1
  536. package/dist/index.es361.js +519 -31
  537. package/dist/index.es361.js.map +1 -1
  538. package/dist/index.es362.js +6 -621
  539. package/dist/index.es362.js.map +1 -1
  540. package/dist/index.es363.js +26 -10
  541. package/dist/index.es363.js.map +1 -1
  542. package/dist/index.es364.js +71 -0
  543. package/dist/index.es364.js.map +1 -0
  544. package/dist/index.es365.js +30 -15
  545. package/dist/index.es365.js.map +1 -1
  546. package/dist/index.es366.js +36 -0
  547. package/dist/index.es366.js.map +1 -0
  548. package/dist/index.es367.js +625 -0
  549. package/dist/index.es367.js.map +1 -0
  550. package/dist/index.es368.js +10 -5
  551. package/dist/index.es368.js.map +1 -1
  552. package/dist/index.es37.js +1 -1
  553. package/dist/index.es370.js +14 -68
  554. package/dist/index.es370.js.map +1 -1
  555. package/dist/index.es376.js +128 -0
  556. package/dist/index.es376.js.map +1 -0
  557. package/dist/index.es377.js +138 -0
  558. package/dist/index.es377.js.map +1 -0
  559. package/dist/index.es378.js +17 -0
  560. package/dist/index.es378.js.map +1 -0
  561. package/dist/index.es379.js +64 -120
  562. package/dist/index.es379.js.map +1 -1
  563. package/dist/index.es38.js +5 -5
  564. package/dist/index.es380.js +14 -134
  565. package/dist/index.es380.js.map +1 -1
  566. package/dist/index.es381.js +7 -12
  567. package/dist/index.es381.js.map +1 -1
  568. package/dist/index.es382.js +50 -15
  569. package/dist/index.es382.js.map +1 -1
  570. package/dist/index.es383.js +53 -9
  571. package/dist/index.es383.js.map +1 -1
  572. package/dist/index.es39.js +4 -4
  573. package/dist/index.es390.js +9 -0
  574. package/dist/index.es390.js.map +1 -0
  575. package/dist/{index.es369.js → index.es391.js} +1 -1
  576. package/dist/{index.es369.js.map → index.es391.js.map} +1 -1
  577. package/dist/index.es397.js +14 -5
  578. package/dist/index.es397.js.map +1 -1
  579. package/dist/index.es40.js +3 -3
  580. package/dist/index.es401.js +2017 -174
  581. package/dist/index.es401.js.map +1 -1
  582. package/dist/index.es402.js +59 -5
  583. package/dist/index.es402.js.map +1 -1
  584. package/dist/index.es403.js +185 -517
  585. package/dist/index.es403.js.map +1 -1
  586. package/dist/index.es407.js +3 -3
  587. package/dist/index.es409.js +4 -4
  588. package/dist/index.es41.js +2 -2
  589. package/dist/index.es410.js +6 -6
  590. package/dist/index.es412.js +14 -2
  591. package/dist/index.es412.js.map +1 -1
  592. package/dist/index.es413.js +2 -14
  593. package/dist/index.es413.js.map +1 -1
  594. package/dist/index.es414.js +131 -8
  595. package/dist/index.es414.js.map +1 -1
  596. package/dist/index.es415.js +1 -1
  597. package/dist/index.es416.js +9 -3
  598. package/dist/index.es416.js.map +1 -1
  599. package/dist/index.es417.js +2 -131
  600. package/dist/index.es417.js.map +1 -1
  601. package/dist/index.es419.js +1 -1
  602. package/dist/index.es42.js +2 -2
  603. package/dist/index.es421.js +24 -82
  604. package/dist/index.es421.js.map +1 -1
  605. package/dist/index.es422.js +28 -24
  606. package/dist/index.es422.js.map +1 -1
  607. package/dist/index.es423.js +5 -29
  608. package/dist/index.es423.js.map +1 -1
  609. package/dist/index.es424.js +83 -5
  610. package/dist/index.es424.js.map +1 -1
  611. package/dist/index.es425.js +1 -1
  612. package/dist/index.es43.js +2 -2
  613. package/dist/index.es432.js +5 -5
  614. package/dist/index.es434.js +1 -1
  615. package/dist/index.es436.js +5 -5
  616. package/dist/index.es437.js +1 -1
  617. package/dist/index.es44.js +4 -4
  618. package/dist/index.es449.js +65 -69
  619. package/dist/index.es449.js.map +1 -1
  620. package/dist/index.es45.js +4 -4
  621. package/dist/index.es450.js +68 -8
  622. package/dist/index.es450.js.map +1 -1
  623. package/dist/index.es451.js +9 -14
  624. package/dist/index.es451.js.map +1 -1
  625. package/dist/index.es452.js +14 -62
  626. package/dist/index.es452.js.map +1 -1
  627. package/dist/index.es453.js +61 -64
  628. package/dist/index.es453.js.map +1 -1
  629. package/dist/index.es46.js +1 -1
  630. package/dist/index.es47.js +2 -2
  631. package/dist/index.es48.js +1 -1
  632. package/dist/index.es49.js +3 -3
  633. package/dist/index.es50.js +1 -1
  634. package/dist/index.es51.js +1 -1
  635. package/dist/index.es52.js +1 -1
  636. package/dist/index.es53.js +2 -2
  637. package/dist/index.es54.js +1 -1
  638. package/dist/index.es55.js +1 -1
  639. package/dist/index.es56.js +1 -1
  640. package/dist/index.es57.js +2 -2
  641. package/dist/index.es59.js +1 -1
  642. package/dist/index.es6.js +2 -2
  643. package/dist/index.es60.js +2 -2
  644. package/dist/index.es61.js +1 -1
  645. package/dist/index.es62.js +3 -3
  646. package/dist/index.es64.js +1 -1
  647. package/dist/index.es66.js +1 -1
  648. package/dist/index.es67.js +1 -1
  649. package/dist/index.es69.js +1 -1
  650. package/dist/index.es7.js +2 -2
  651. package/dist/index.es70.js +1 -1
  652. package/dist/index.es71.js +1 -1
  653. package/dist/index.es72.js +1 -1
  654. package/dist/index.es8.js +2 -2
  655. package/dist/index.es89.js +1 -1
  656. package/dist/index.es9.js +4 -4
  657. package/dist/index.es90.js +1 -1
  658. package/dist/index.es91.js +1 -1
  659. package/dist/index.es93.js +1 -1
  660. package/dist/index.es95.js +2 -2
  661. package/dist/index.es96.js +1 -1
  662. package/dist/index.es99.js +1 -1
  663. package/package.json +1 -1
  664. package/dist/index.cjs197.js +0 -2
  665. package/dist/index.cjs197.js.map +0 -1
  666. package/dist/index.cjs214.js +0 -2
  667. package/dist/index.cjs214.js.map +0 -1
  668. package/dist/index.cjs218.js +0 -2
  669. package/dist/index.cjs218.js.map +0 -1
  670. package/dist/index.cjs226.js +0 -2
  671. package/dist/index.cjs226.js.map +0 -1
  672. package/dist/index.cjs234.js +0 -2
  673. package/dist/index.cjs234.js.map +0 -1
  674. package/dist/index.cjs235.js +0 -2
  675. package/dist/index.cjs235.js.map +0 -1
  676. package/dist/index.cjs238.js +0 -2
  677. package/dist/index.cjs238.js.map +0 -1
  678. package/dist/index.cjs242.js +0 -6
  679. package/dist/index.cjs242.js.map +0 -1
  680. package/dist/index.cjs243.js +0 -2
  681. package/dist/index.cjs243.js.map +0 -1
  682. package/dist/index.cjs250.js +0 -2
  683. package/dist/index.cjs250.js.map +0 -1
  684. package/dist/index.cjs269.js +0 -2
  685. package/dist/index.cjs269.js.map +0 -1
  686. package/dist/index.cjs327.js +0 -2
  687. package/dist/index.cjs327.js.map +0 -1
  688. package/dist/index.cjs344.js +0 -2
  689. package/dist/index.cjs344.js.map +0 -1
  690. package/dist/index.cjs351.js +0 -2
  691. package/dist/index.cjs351.js.map +0 -1
  692. package/dist/index.cjs371.js +0 -2
  693. package/dist/index.cjs371.js.map +0 -1
  694. package/dist/index.cjs384.js +0 -2
  695. package/dist/index.cjs384.js.map +0 -1
  696. package/dist/index.cjs385.js +0 -2
  697. package/dist/index.cjs385.js.map +0 -1
  698. package/dist/index.cjs396.js +0 -28
  699. package/dist/index.cjs396.js.map +0 -1
  700. package/dist/index.cjs398.js +0 -2
  701. package/dist/index.cjs398.js.map +0 -1
  702. package/dist/index.cjs399.js +0 -2
  703. package/dist/index.cjs399.js.map +0 -1
  704. package/dist/index.cjs400.js +0 -2
  705. package/dist/index.cjs400.js.map +0 -1
  706. package/dist/index.es197.js +0 -18
  707. package/dist/index.es197.js.map +0 -1
  708. package/dist/index.es214.js +0 -210
  709. package/dist/index.es214.js.map +0 -1
  710. package/dist/index.es218.js +0 -146
  711. package/dist/index.es218.js.map +0 -1
  712. package/dist/index.es226.js +0 -23
  713. package/dist/index.es226.js.map +0 -1
  714. package/dist/index.es234.js +0 -7
  715. package/dist/index.es234.js.map +0 -1
  716. package/dist/index.es235.js +0 -23
  717. package/dist/index.es235.js.map +0 -1
  718. package/dist/index.es238.js +0 -8
  719. package/dist/index.es238.js.map +0 -1
  720. package/dist/index.es242.js +0 -262
  721. package/dist/index.es242.js.map +0 -1
  722. package/dist/index.es243.js +0 -52
  723. package/dist/index.es243.js.map +0 -1
  724. package/dist/index.es250.js +0 -11
  725. package/dist/index.es250.js.map +0 -1
  726. package/dist/index.es269.js +0 -119
  727. package/dist/index.es269.js.map +0 -1
  728. package/dist/index.es327.js +0 -38
  729. package/dist/index.es327.js.map +0 -1
  730. package/dist/index.es344.js +0 -6
  731. package/dist/index.es344.js.map +0 -1
  732. package/dist/index.es351.js +0 -8
  733. package/dist/index.es351.js.map +0 -1
  734. package/dist/index.es371.js +0 -18
  735. package/dist/index.es371.js.map +0 -1
  736. package/dist/index.es384.js +0 -53
  737. package/dist/index.es384.js.map +0 -1
  738. package/dist/index.es385.js +0 -56
  739. package/dist/index.es385.js.map +0 -1
  740. package/dist/index.es396.js +0 -3678
  741. package/dist/index.es396.js.map +0 -1
  742. package/dist/index.es398.js +0 -5
  743. package/dist/index.es398.js.map +0 -1
  744. package/dist/index.es399.js +0 -2035
  745. package/dist/index.es399.js.map +0 -1
  746. package/dist/index.es400.js +0 -63
  747. package/dist/index.es400.js.map +0 -1
  748. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  749. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs214.js","sources":["../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dropdown-menu/src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = (props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n};\nDropdownMenu.displayName = DROPDOWN_MENU_NAME;\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }\n);\nDropdownMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DropdownMenuPortal\";\nvar DropdownMenuPortal = (props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nDropdownMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nDropdownMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"DropdownMenuGroup\";\nvar DropdownMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nDropdownMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"DropdownMenuLabel\";\nvar DropdownMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nDropdownMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"DropdownMenuItem\";\nvar DropdownMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nDropdownMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"DropdownMenuCheckboxItem\";\nvar DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nDropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"DropdownMenuRadioGroup\";\nvar DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nDropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"DropdownMenuRadioItem\";\nvar DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nDropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"DropdownMenuItemIndicator\";\nvar DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nDropdownMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"DropdownMenuSeparator\";\nvar DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nDropdownMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"DropdownMenuArrow\";\nvar DropdownMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nDropdownMenuArrow.displayName = ARROW_NAME;\nvar DropdownMenuSub = (props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nvar SUB_TRIGGER_NAME = \"DropdownMenuSubTrigger\";\nvar DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n});\nDropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"DropdownMenuSubContent\";\nvar DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nDropdownMenuSubContent.displayName = SUB_CONTENT_NAME;\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","createContextScope","createMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","props","__scopeDropdownMenu","children","dir","openProp","defaultOpen","onOpenChange","modal","menuScope","triggerRef","React","open","setOpen","useControllableState","jsx","useId","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","forwardedRef","disabled","triggerProps","context","MenuPrimitive.Anchor","Primitive","composeRefs","composeEventHandlers","event","PORTAL_NAME","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","DropdownMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","_a","originalEvent","ctrlLeftClick","isRightClick","GROUP_NAME","DropdownMenuGroup","groupProps","MenuPrimitive.Group","LABEL_NAME","DropdownMenuLabel","labelProps","MenuPrimitive.Label","ITEM_NAME","DropdownMenuItem","itemProps","MenuPrimitive.Item","CHECKBOX_ITEM_NAME","DropdownMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","RADIO_GROUP_NAME","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","RADIO_ITEM_NAME","DropdownMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","INDICATOR_NAME","DropdownMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","SEPARATOR_NAME","DropdownMenuSeparator","separatorProps","MenuPrimitive.Separator","ARROW_NAME","DropdownMenuArrow","arrowProps","MenuPrimitive.Arrow","SUB_TRIGGER_NAME","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","SUB_CONTENT_NAME","DropdownMenuSubContent","subContentProps","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Content2","Group2","Item2"],"mappings":"2nBAaA,IAAIA,EAAqB,eACrB,CAACC,EAA2BC,CAAuB,EAAIC,EAAkB,mBAC3EH,EACA,CAACI,EAAe,eAAA,CAClB,EACIC,EAAeD,EAAAA,gBAAiB,EAChC,CAACE,EAAsBC,CAAsB,EAAIN,EAA0BD,CAAkB,EAC7FQ,EAAgBC,GAAU,CAC5B,KAAM,CACJ,oBAAAC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D,sCACjD,iDAAkD,uCAClD,sCAAuC,mCACvC,uCAAwC,mCAElD,CACA,CACG,CACH,CAAC,EACDmF,EAAuB,YAAcD,GAClC,IAACI,GAAQvF,EACRwF,GAAUpE,EACVqE,GAAU1D,EACV2D,GAAWvD,EACXwD,GAAS/C,EAETgD,GAAQxC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderMobile/HeaderMobile.css');const e=require("./index.cjs196.js"),x=require("./index.cjs25.js"),E=require("./index.cjs21.js"),i=require("react"),o=require("./index.cjs197.js"),y=require("./index.cjs365.js"),R=require("./index.cjs6.js");;/* empty css */const g=require("./index.cjs10.js"),w=require("./index.cjs125.js"),C=require("./index.cjs9.js"),N=require("./index.cjs126.js"),k=({shortTitle:m,menuTitle:p="Menù",region:h,asLink:l="a",navigatonItems:j,labels:c,loginLink:b="/"})=>{const v=l,[n,d]=i.useState(!1),r="main-navigation",u=i.useRef(null);y.useFocusTrap(u,n);const t=i.useCallback(()=>{d(!n)},[n]);i.useEffect(()=>(n?document.body.classList.add("ui-body-overflow-hidden"):document.body.classList.remove("ui-body-overflow-hidden"),()=>{document.body.classList.remove("ui-body-overflow-hidden")}),[n]),i.useEffect(()=>{const s=a=>{a.key==="Escape"&&n&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n,t]);const f=()=>{d(!1)};return e.jsxRuntimeExports.jsxs("div",{className:"sticky-header shadow",children:[e.jsxRuntimeExports.jsx(E.HeaderTopBanner,{asLink:l,shortTitle:m,region:h}),e.jsxRuntimeExports.jsxs(R.Container,{className:"bg-slate-20 min-h-x64 base-row align-items-center justify-content-end",as:"header",py:"x8",children:[e.jsxRuntimeExports.jsxs(C.Row,{gap:"x24",alignItems:"center",justifyContent:"end",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"3",bg:"white",textColor:"primary",href:b,asLink:"a",children:[c.login,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]}),e.jsxRuntimeExports.jsx("button",{"aria-expanded":n,"aria-label":"Apri menu di navigazione",onClick:t,className:"ui-mobile-menu-toggle","aria-controls":r,children:e.jsxRuntimeExports.jsx(w.Hamburguer,{width:40,height:40,color:"white"})})]}),e.jsxRuntimeExports.jsxs("nav",{id:r,"aria-label":"Menu di navigazione",className:o.clsx(n?"ui-mobile-nav-panel":"visually-hidden"),ref:u,children:[e.jsxRuntimeExports.jsxs(g.Col,{className:"ui-mobile-nav-header",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"4",textColor:"primary",bg:"transparent",onClick:t,"aria-label":"Chiudi menu di navigazione","aria-controls":r,children:[c.closeMenu,e.jsxRuntimeExports.jsx(N.Close,{})]}),e.jsxRuntimeExports.jsx("h2",{className:"fs-3 text-slate-20",children:p})]}),e.jsxRuntimeExports.jsx("ul",{className:"list-style-none p-x16",role:"list",children:j.map((s,a)=>e.jsxRuntimeExports.jsx("li",{className:o.clsx("ui-mobile-nav-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(v,{href:s.href,"aria-label":`Vai alla pagina ${s.label}`,className:o.clsx("text-decoration-none text-primary fs-5",s.active?"fw-bold":"fw-normal"),onClick:f,target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},a))})]})]})]})};exports.HeaderMobile=k;
2
- //# sourceMappingURL=index.cjs218.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs218.js","sources":["../src/components/navigations/HeaderMobile/index.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport { Button } from \"@/components/ui/Button\";\r\nimport { Region } from \"../Header\";\r\nimport { HeaderTopBanner, HeaderTopBannerProps } from \"../HeaderTopBanner\";\r\nimport { Close, Hamburguer } from \"@/icons\";\r\nimport { useCallback, useEffect, useRef, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { useFocusTrap } from \"@/hooks/useFocusTrap\";\r\nimport { Container } from \"@/components/ui/Container\";\r\nimport \"./HeaderMobile.scss\";\r\nimport { Col } from \"@/components/ui/Col\";\r\nimport { Row } from \"@/components\";\r\n\r\ntype NavigationItem = {\r\n label: string;\r\n href: string;\r\n active?: boolean;\r\n isNewTab?: boolean;\r\n};\r\n\r\ntype NavigationLabels = {\r\n closeMenu: string;\r\n login: string;\r\n};\r\n\r\nexport type HeaderMobileProps = HeaderTopBannerProps & {\r\n shortTitle: React.ReactNode;\r\n menuTitle?: string;\r\n region: Region;\r\n navigatonItems: NavigationItem[];\r\n labels: NavigationLabels;\r\n loginLink?: string;\r\n};\r\n\r\nexport const HeaderMobile = ({\r\n shortTitle,\r\n menuTitle = \"Menù\",\r\n region,\r\n asLink = \"a\",\r\n navigatonItems,\r\n labels,\r\n loginLink = \"/\",\r\n}: HeaderMobileProps) => {\r\n const LinkComponent = asLink;\r\n const [isOpen, setIsOpen] = useState(false);\r\n const navId = \"main-navigation\";\r\n const navRef = useRef<HTMLElement>(null);\r\n\r\n useFocusTrap(navRef, isOpen);\r\n\r\n const toggleMenu = useCallback(() => {\r\n setIsOpen(!isOpen);\r\n }, [isOpen]);\r\n\r\n useEffect(() => {\r\n if (isOpen) {\r\n document.body.classList.add(\"ui-body-overflow-hidden\");\r\n } else {\r\n document.body.classList.remove(\"ui-body-overflow-hidden\");\r\n }\r\n\r\n return () => {\r\n document.body.classList.remove(\"ui-body-overflow-hidden\");\r\n };\r\n }, [isOpen]);\r\n\r\n useEffect(() => {\r\n const handleEscape = (e: KeyboardEvent) => {\r\n if (e.key === \"Escape\" && isOpen) {\r\n toggleMenu();\r\n }\r\n };\r\n\r\n document.addEventListener(\"keydown\", handleEscape);\r\n return () => document.removeEventListener(\"keydown\", handleEscape);\r\n }, [isOpen, toggleMenu]);\r\n\r\n const handleLinkClick = () => {\r\n setIsOpen(false);\r\n };\r\n\r\n return (\r\n <div className=\"sticky-header shadow\">\r\n <HeaderTopBanner\r\n asLink={asLink}\r\n shortTitle={shortTitle}\r\n region={region}\r\n />\r\n\r\n <Container\r\n className=\"bg-slate-20 min-h-x64 base-row align-items-center justify-content-end\"\r\n as=\"header\"\r\n py=\"x8\"\r\n >\r\n <Row gap={\"x24\"} alignItems={\"center\"} justifyContent={\"end\"}>\r\n <Button\r\n size=\"3\"\r\n bg=\"white\"\r\n textColor=\"primary\"\r\n href={loginLink}\r\n asLink=\"a\"\r\n >\r\n {labels.login}\r\n <span className=\"visually-hidden\"> Accedi con Cohesion</span>\r\n </Button>\r\n <button\r\n aria-expanded={isOpen}\r\n aria-label=\"Apri menu di navigazione\"\r\n onClick={toggleMenu}\r\n className=\"ui-mobile-menu-toggle\"\r\n aria-controls={navId}\r\n >\r\n <Hamburguer width={40} height={40} color=\"white\" />\r\n </button>\r\n </Row>\r\n\r\n <nav\r\n id={navId}\r\n aria-label=\"Menu di navigazione\"\r\n className={clsx(isOpen ? \"ui-mobile-nav-panel\" : \"visually-hidden\")}\r\n ref={navRef}\r\n >\r\n <Col className=\"ui-mobile-nav-header\">\r\n <Button\r\n size=\"4\"\r\n textColor=\"primary\"\r\n bg=\"transparent\"\r\n onClick={toggleMenu}\r\n aria-label=\"Chiudi menu di navigazione\"\r\n aria-controls={navId}\r\n >\r\n {labels.closeMenu}\r\n <Close />\r\n </Button>\r\n <h2 className=\"fs-3 text-slate-20\">{menuTitle}</h2>\r\n </Col>\r\n\r\n <ul className=\"list-style-none p-x16\" role=\"list\">\r\n {navigatonItems.map((item, index) => {\r\n return (\r\n <li\r\n key={index}\r\n className={clsx(\r\n \"ui-mobile-nav-item\",\r\n item.active && \"active\",\r\n )}\r\n >\r\n <LinkComponent\r\n href={item.href}\r\n aria-label={`Vai alla pagina ${item.label}`}\r\n className={clsx(\r\n \"text-decoration-none text-primary fs-5\",\r\n item.active ? \"fw-bold\" : \"fw-normal\",\r\n )}\r\n onClick={handleLinkClick}\r\n target={item.isNewTab ? \"_blank\" : undefined}\r\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\r\n >\r\n {item.label}\r\n {item.active && (\r\n <span className=\"visually-hidden\">Attivo</span>\r\n )}\r\n </LinkComponent>\r\n </li>\r\n );\r\n })}\r\n </ul>\r\n </nav>\r\n </Container>\r\n </div>\r\n );\r\n};\r\n"],"names":["HeaderMobile","shortTitle","menuTitle","region","asLink","navigatonItems","labels","loginLink","LinkComponent","isOpen","setIsOpen","useState","navId","navRef","useRef","useFocusTrap","toggleMenu","useCallback","useEffect","handleEscape","e","handleLinkClick","jsxs","jsx","HeaderTopBanner","Container","Row","Button","Hamburguer","clsx","Col","Close","item","index"],"mappings":"2bAmCaA,EAAe,CAAC,CAC3B,WAAAC,EACA,UAAAC,EAAY,OACZ,OAAAC,EACA,OAAAC,EAAS,IACT,eAAAC,EACA,OAAAC,EACA,UAAAC,EAAY,GACd,IAAyB,CACvB,MAAMC,EAAgBJ,EAChB,CAACK,EAAQC,CAAS,EAAIC,EAAAA,SAAS,EAAK,EACpCC,EAAQ,kBACRC,EAASC,SAAoB,IAAI,EAEvCC,EAAA,aAAaF,EAAQJ,CAAM,EAErB,MAAAO,EAAaC,EAAAA,YAAY,IAAM,CACnCP,EAAU,CAACD,CAAM,CAAA,EAChB,CAACA,CAAM,CAAC,EAEXS,EAAAA,UAAU,KACJT,EACO,SAAA,KAAK,UAAU,IAAI,yBAAyB,EAE5C,SAAA,KAAK,UAAU,OAAO,yBAAyB,EAGnD,IAAM,CACF,SAAA,KAAK,UAAU,OAAO,yBAAyB,CAC1D,GACC,CAACA,CAAM,CAAC,EAEXS,EAAAA,UAAU,IAAM,CACR,MAAAC,EAAgBC,GAAqB,CACrCA,EAAE,MAAQ,UAAYX,GACbO,EAAA,CAEf,EAES,gBAAA,iBAAiB,UAAWG,CAAY,EAC1C,IAAM,SAAS,oBAAoB,UAAWA,CAAY,CAAA,EAChE,CAACV,EAAQO,CAAU,CAAC,EAEvB,MAAMK,EAAkB,IAA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AAC,KAAG,CAAA,UAAU,wBAAwB,KAAK,OACxC,SAAelB,EAAA,IAAI,CAAC2B,EAAMC,IAEvBV,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWM,EAAA,KACT,qBACAG,EAAK,QAAU,QACjB,EAEA,SAAAV,EAAA,kBAAA,KAACd,EAAA,CACC,KAAMwB,EAAK,KACX,aAAY,mBAAmBA,EAAK,KAAK,GACzC,UAAWH,EAAA,KACT,yCACAG,EAAK,OAAS,UAAY,WAC5B,EACA,QAASX,EACT,OAAQW,EAAK,SAAW,SAAW,OACnC,IAAKA,EAAK,SAAW,sBAAwB,OAE5C,SAAA,CAAKA,EAAA,MACLA,EAAK,QACJT,EAAAA,kBAAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAAM,QAAA,CAAA,CAAA,CAAA,CAAA,CAE5C,EArBKU,CAsBP,CAEH,CACH,CAAA,CAAA,CAAA,CAAA,CACF,CAAA,CAAA,CACF,EACF,CAEJ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react");function r(t,n,u,e,i){a.useEffect(()=>{const s=o=>{t.current&&!t.current.contains(o.target)&&(!o.target.closest('[data-navigation="true"]')||!i)&&(u(),e&&e())};return n&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[t,n,u,e,i])}exports.useClickOutside=r;
2
- //# sourceMappingURL=index.cjs226.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs226.js","sources":["../src/hooks/useClickOutside.ts"],"sourcesContent":["// src/hooks/useClickOutside.ts\r\nimport { useEffect, RefObject } from \"react\";\r\n\r\n// Make the hook generic to accept any HTMLElement type\r\nexport function useClickOutside<T extends HTMLDivElement | null>(\r\n ref: RefObject<T>,\r\n isActive: boolean,\r\n onClickOutside: () => void,\r\n resetSelection?: () => void,\r\n keepSelectionOnNavigation?: boolean,\r\n): void {\r\n useEffect(() => {\r\n const handleClickOutside = (event: MouseEvent) => {\r\n if (ref.current && !ref.current.contains(event.target as Node)) {\r\n const isNavigationElement = (event.target as HTMLElement).closest(\r\n '[data-navigation=\"true\"]',\r\n );\r\n\r\n if (!isNavigationElement || !keepSelectionOnNavigation) {\r\n onClickOutside();\r\n\r\n if (resetSelection) {\r\n resetSelection();\r\n }\r\n }\r\n }\r\n };\r\n\r\n if (isActive) {\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n }\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [\r\n ref,\r\n isActive,\r\n onClickOutside,\r\n resetSelection,\r\n keepSelectionOnNavigation,\r\n ]);\r\n}\r\n"],"names":["useClickOutside","ref","isActive","onClickOutside","resetSelection","keepSelectionOnNavigation","useEffect","handleClickOutside","event"],"mappings":"yGAIO,SAASA,EACdC,EACAC,EACAC,EACAC,EACAC,EACM,CACNC,EAAAA,UAAU,IAAM,CACR,MAAAC,EAAsBC,GAAsB,CAC5CP,EAAI,SAAW,CAACA,EAAI,QAAQ,SAASO,EAAM,MAAc,IAKvD,CAJyBA,EAAM,OAAuB,QACxD,0BACF,GAE4B,CAACH,KACZF,EAAA,EAEXC,GACaA,EAAA,EAIvB,EAEA,OAAIF,GACO,SAAA,iBAAiB,YAAaK,CAAkB,EAGpD,IAAM,CACF,SAAA,oBAAoB,YAAaA,CAAkB,CAC9D,CAAA,EACC,CACDN,EACAC,EACAC,EACAC,EACAC,CAAA,CACD,CACH"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs177.js");require("./index.cjs3.js");const o=(t,e="it")=>t?r.default.fromISO(t).setLocale(e).toFormat("dd/MM/yyyy"):null;exports.fromISODateToDateFormatted=o;
2
- //# sourceMappingURL=index.cjs234.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs234.js","sources":["../src/utils/dates.ts"],"sourcesContent":["import { DateTime } from \"luxon\";\r\n\r\nexport const fromISODateToRangeFormat = (\r\n ISODateStartAt: string | null,\r\n ISODateEndAt: string | null,\r\n t: (key: string) => string,\r\n locale = \"it\",\r\n) => {\r\n if (!ISODateStartAt || !ISODateEndAt) return null;\r\n const startDate = DateTime.fromISO(ISODateStartAt).setLocale(locale);\r\n const endDate = DateTime.fromISO(ISODateEndAt).setLocale(locale);\r\n\r\n if (startDate.hasSame(endDate, \"month\")) {\r\n return `${t(\"from\")} ${startDate.toFormat(\"d\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\r\n }\r\n return `${t(\"from\")} ${startDate.toFormat(\"d MMMM\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\r\n};\r\n\r\nexport const fromISODateToDateFormatted = (\r\n ISODate: string | null,\r\n locale: string = \"it\",\r\n) => {\r\n if (!ISODate) return null;\r\n const date = DateTime.fromISO(ISODate).setLocale(locale);\r\n return date.toFormat(\"dd/MM/yyyy\");\r\n};\r\n\r\nexport const fromISOToFormat = (ISODate: string | null) => {\r\n if (!ISODate) return \" - \";\r\n const date = DateTime.fromISO(ISODate).setLocale(\"it\");\r\n return date.toFormat(\"dd/MM/yyyy\");\r\n};\r\n\r\nexport const formatRangeDateToISO = (startDate: string, endDate: string) => {\r\n const startDateTime = DateTime.fromFormat(startDate, \"yyyy-MM-dd\");\r\n const endDateTime = DateTime.fromFormat(endDate, \"yyyy-MM-dd\");\r\n\r\n if (!startDateTime.isValid) {\r\n console.error(\"Invalid start date:\", startDateTime.invalidExplanation);\r\n }\r\n\r\n if (!endDateTime.isValid) {\r\n console.error(\"Invalid end date:\", endDateTime.invalidExplanation);\r\n }\r\n\r\n return [\r\n startDateTime.startOf(\"day\").toISO() ?? \"\",\r\n endDateTime.endOf(\"day\").toISO() ?? \"\",\r\n ];\r\n};\r\n\r\nexport const isActiveDate = (expirationDate: string | null) => {\r\n if (!expirationDate) return false;\r\n return DateTime.fromISO(expirationDate).toMillis() > Date.now();\r\n};\r\n"],"names":["fromISODateToDateFormatted","ISODate","locale","DateTime"],"mappings":"gJAkBO,MAAMA,EAA6B,CACxCC,EACAC,EAAiB,OAEZD,EACQE,EAAAA,QAAS,QAAQF,CAAO,EAAE,UAAUC,CAAM,EAC3C,SAAS,YAAY,EAFZ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs371.js"),n=require("react"),p=()=>{const[o,t]=i.useCopyToClipboard(),[r,e]=n.useState(!1);return{isCopied:r,copiedText:o,copyToClipboard:()=>{const c=window.location.href;t(c).then(()=>{e(()=>!0),setTimeout(()=>{e(!1)},1500)}).catch(s=>{console.debug("Failed to copy!",s)})}}};exports.useCopyToClipboardCurrentPage=p;
2
- //# sourceMappingURL=index.cjs235.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs235.js","sources":["../src/hooks/useCopyToClipboardCurrentPage.ts"],"sourcesContent":["import { useCopyToClipboard as useCopyToClipboardNative } from \"usehooks-ts\";\n\nimport { useState } from \"react\";\n\nexport const useCopyToClipboardCurrentPage = () => {\n const [copiedText, copy] = useCopyToClipboardNative();\n const [isCopied, setIsCopied] = useState(false);\n\n const copyToClipboard = () => {\n const completeUrl = window.location.href;\n copy(completeUrl)\n .then(() => {\n setIsCopied(() => true);\n setTimeout(() => {\n setIsCopied(false);\n }, 1500);\n })\n .catch((error) => {\n console.debug(\"Failed to copy!\", error);\n });\n };\n\n return {\n isCopied,\n copiedText,\n copyToClipboard,\n };\n};\n"],"names":["useCopyToClipboardCurrentPage","copiedText","copy","useCopyToClipboardNative","isCopied","setIsCopied","useState","completeUrl","error"],"mappings":"wIAIaA,EAAgC,IAAM,CACjD,KAAM,CAACC,EAAYC,CAAI,EAAIC,qBAAyB,EAC9C,CAACC,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EAgBvC,MAAA,CACL,SAAAF,EACA,WAAAH,EACA,gBAjBsB,IAAM,CACtB,MAAAM,EAAc,OAAO,SAAS,KAC/BL,EAAAK,CAAW,EACb,KAAK,IAAM,CACVF,EAAY,IAAM,EAAI,EACtB,WAAW,IAAM,CACfA,EAAY,EAAK,GAChB,IAAI,CAAA,CACR,EACA,MAAOG,GAAU,CACR,QAAA,MAAM,kBAAmBA,CAAK,CAAA,CACvC,CACL,CAMA,CACF"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(o){const t=o.trim().split(/\s+/),n=Math.ceil(t.length/2),s=t.slice(0,n).join(" "),i=t.slice(n).join(" ");return[s,i]}exports.splitInTwo=e;
2
- //# sourceMappingURL=index.cjs238.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs238.js","sources":["../src/utils/splitInTwo.ts"],"sourcesContent":["export function splitInTwo(text: string): [string, string] {\n const words = text.trim().split(/\\s+/);\n const half = Math.ceil(words.length / 2);\n\n const firstPart = words.slice(0, half).join(\" \");\n const secondPart = words.slice(half).join(\" \");\n\n return [firstPart, secondPart];\n}\n"],"names":["splitInTwo","text","words","half","firstPart","secondPart"],"mappings":"gFAAO,SAASA,EAAWC,EAAgC,CACzD,MAAMC,EAAQD,EAAK,KAAK,EAAE,MAAM,KAAK,EAC/BE,EAAO,KAAK,KAAKD,EAAM,OAAS,CAAC,EAEjCE,EAAYF,EAAM,MAAM,EAAGC,CAAI,EAAE,KAAK,GAAG,EACzCE,EAAaH,EAAM,MAAMC,CAAI,EAAE,KAAK,GAAG,EAEtC,MAAA,CAACC,EAAWC,CAAU,CAC/B"}
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs357.js"),v=require("./index.cjs358.js"),M=require("./index.cjs359.js"),R=require("./index.cjs363.js"),B=require("./index.cjs360.js"),V=require("./index.cjs379.js"),z=require("./index.cjs380.js"),K=require("./index.cjs381.js"),E=require("./index.cjs370.js"),x=require("./index.cjs361.js"),U=require("./index.cjs382.js"),Y=require("./index.cjs383.js"),Z=require("./index.cjs384.js"),J=require("./index.cjs385.js"),s=require("./index.cjs196.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var j="Dialog",[S,X]=M.createContextScope(j),[ee,u]=S(j),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f=!1,D]=B.useControllableState({prop:r,defaultProp:i,onChange:o});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:R.useId(),titleId:R.useId(),descriptionId:R.useId(),open:f,onOpenChange:D,onOpenToggle:a.useCallback(()=>D(L=>!L),[D]),modal:c,children:n})};C.displayName=j;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=v.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(E.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=v.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=v.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
-
3
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
-
5
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ce="DialogDescriptionWarning",le=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(ce).contentName}}.`;return a.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ue=C,de=P,ge=y,fe=O,pe=h,xe=b,me=I,De=T;exports.Close=De;exports.Content=pe;exports.Description=me;exports.Dialog=C;exports.DialogClose=T;exports.DialogContent=h;exports.DialogDescription=I;exports.DialogOverlay=O;exports.DialogPortal=y;exports.DialogTitle=b;exports.DialogTrigger=P;exports.Overlay=fe;exports.Portal=ge;exports.Root=ue;exports.Title=xe;exports.Trigger=de;exports.WarningProvider=se;exports.createDialogScope=X;
6
- //# sourceMappingURL=index.cjs242.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs242.js","sources":["../node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dialog/src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createDialogScope","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","Slot","createSlot","RemoveScroll","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","_a","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","_b","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","Description","Close"],"mappings":"o1BAmBA,IAAIA,EAAc,SACd,CAACC,EAAqBC,CAAiB,EAAIC,EAAAA,mBAAmBH,CAAW,EACzE,CAACI,GAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAAUC,GAAU,CACtB,KAAM,CACJ,cAAAC,EACA,SAAAC,EACA,KAAMC,EACN,YAAAC,EACA,aAAAC,EACA,MAAAC,EAAQ,EACZ,EAAMN,EACEO,EAAaC,EAAM,OAAO,IAAI,EAC9BC,EAAaD,EAAM,OAAO,IAAI,EAC9B,CAACE,EAAO,GAAOC,CAAO,EAAIC,EAAAA,qBAAqB,CACnD,KAAMT,EACN,YAAaC,EACb,SAAUC,CACd,CAAG,EACD,OAAuBQ,EAAG,kBAAA,IACxBhB,GACA,CACE,MAAOI,EACP,WAAAM,EACA,WAAAE,EACA,UAAWK,EAAAA,MAAO,EAClB,QAASA,EAAAA,MAAO,EAChB,cAAeA,EAAAA,MAAO,EACtB,KAAAJ,EACA,aAAcC,EACd,aAAcH,EAAM,YAAY,IAAMG,EAASI,GAAa,CAACA,CAAQ,EAAG,CAACJ,CAAO,CAAC,EACjF,MAAAL,EACA,SAAAJ,CACN,CACG,CACH,EACAH,EAAO,YAAcN,EACrB,IAAIuB,EAAe,gBACfC,EAAgBT,EAAM,WACxB,CAACR,EAAOkB,IAAiB,CACvB,KAAM,CAAE,cAAAjB,EAAe,GAAGkB,CAAY,EAAKnB,EACrCoB,EAAUtB,EAAiBkB,EAAcf,CAAa,EACtDoB,EAAqBC,EAAe,gBAACJ,EAAcE,EAAQ,UAAU,EAC3E,OAAuBP,EAAG,kBAAA,IACxBU,EAAAA,UAAU,OACV,CACE,KAAM,SACN,gBAAiB,SACjB,gBAAiBH,EAAQ,KACzB,gBAAiBA,EAAQ,UACzB,aAAcI,EAASJ,EAAQ,IAAI,EACn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5E,OAAAA,EAAM,UAAU,IAAM,CAChB2E,IACe,SAAS,eAAeA,CAAO,GACjC,QAAQ,MAAME,CAAO,EAE1C,EAAK,CAACA,EAASF,CAAO,CAAC,EACd,IACT,EACIG,GAA2B,2BAC3BjB,GAAqB,CAAC,CAAE,WAAA5D,EAAY,cAAA8E,KAAoB,CAE1D,MAAMF,EAAU,6EADkBJ,EAAkBK,EAAwB,EAC2C,WAAW,KAClI9E,OAAAA,EAAM,UAAU,IAAM,OACpB,MAAMgF,GAAgBnC,EAAA5C,EAAW,UAAX,YAAA4C,EAAoB,aAAa,oBACnDkC,GAAiBC,IACI,SAAS,eAAeD,CAAa,GACvC,QAAQ,KAAKF,CAAO,EAE5C,EAAE,CAACA,EAAS5E,EAAY8E,CAAa,CAAC,EAChC,IACT,EACIE,GAAO1F,EACP2F,GAAUzE,EACV0E,GAAS9D,EACT+D,GAAUxD,EACVyD,GAAUjD,EACVkD,GAAQvB,EACRwB,GAAcrB,EACdsB,GAAQnB","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/BaseModal/BaseModalHeader/BaseModalHeader.css');const t=require("./index.cjs196.js"),n=require("./index.cjs242.js"),i=require("./index.cjs25.js");;/* empty css */const x=require("./index.cjs137.js"),a=require("./index.cjs9.js"),c=require("./index.cjs126.js"),d=({labels:e={closeButton:"Chiudi",backButton:"Indietro"},onCloseClick:r,onBackClick:s,showBackButton:o=!1,children:u})=>t.jsxRuntimeExports.jsx("header",{className:"ui-base-modal-header bg-white br-t-x4",children:t.jsxRuntimeExports.jsxs(a.Row,{alignItems:"center",justifyContent:"space-between",children:[t.jsxRuntimeExports.jsx(n.Title,{className:"fs-3 text-slate-20 fw-bold",children:u}),o&&s&&(e!=null&&e.backButton)?t.jsxRuntimeExports.jsxs(i.Button,{size:"4",textColor:"primary",bg:"transparent","aria-label":"Torna indietro",onClick:s,children:[t.jsxRuntimeExports.jsx(x.ArrowLeft,{className:"mr-x8"}),e.backButton]}):null,r&&(e!=null&&e.closeButton)?t.jsxRuntimeExports.jsx(n.Close,{asChild:!0,children:t.jsxRuntimeExports.jsxs(i.Button,{size:"4",textColor:"primary",bg:"transparent","aria-label":"Chiudi modale",onClick:r,className:"ui-base-modal-close",children:[e.closeButton,t.jsxRuntimeExports.jsx(c.Close,{className:"ml-x8"})]})}):null]})});exports.BaseModalHeader=d;
2
- //# sourceMappingURL=index.cjs243.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs243.js","sources":["../src/components/ui/BaseModal/BaseModalHeader/index.tsx"],"sourcesContent":["import * as Dialog from \"@radix-ui/react-dialog\";\r\nimport { Button } from \"../../Button\";\r\nimport { Close, ArrowLeft } from \"@/icons\";\r\nimport \"./BaseModalHeader.scss\";\r\nimport { Row } from \"@/components\";\r\n\r\ntype BaseModalHeaderProps = {\r\n labels?: {\r\n closeButton?: string;\r\n backButton?: string;\r\n };\r\n onCloseClick?: () => void;\r\n onBackClick?: () => void;\r\n showBackButton?: boolean;\r\n children?: React.ReactNode;\r\n};\r\n\r\nexport const BaseModalHeader = ({\r\n labels = {\r\n closeButton: \"Chiudi\",\r\n backButton: \"Indietro\",\r\n },\r\n onCloseClick,\r\n onBackClick,\r\n showBackButton = false,\r\n children,\r\n}: BaseModalHeaderProps) => {\r\n return (\r\n <header className=\"ui-base-modal-header bg-white br-t-x4\">\r\n <Row alignItems={\"center\"} justifyContent={\"space-between\"}>\r\n <Dialog.Title className=\"fs-3 text-slate-20 fw-bold\">\r\n {children}\r\n </Dialog.Title>\r\n {showBackButton && onBackClick && labels?.backButton ? (\r\n <Button\r\n size=\"4\"\r\n textColor=\"primary\"\r\n bg=\"transparent\"\r\n aria-label=\"Torna indietro\"\r\n onClick={onBackClick}\r\n >\r\n <ArrowLeft className=\"mr-x8\" />\r\n {labels.backButton}\r\n </Button>\r\n ) : null}\r\n {onCloseClick && labels?.closeButton ? (\r\n <Dialog.Close asChild>\r\n <Button\r\n size=\"4\"\r\n textColor=\"primary\"\r\n bg=\"transparent\"\r\n aria-label=\"Chiudi modale\"\r\n onClick={onCloseClick}\r\n className=\"ui-base-modal-close\"\r\n >\r\n {labels.closeButton}\r\n <Close className=\"ml-x8\" />\r\n </Button>\r\n </Dialog.Close>\r\n ) : null}\r\n </Row>\r\n </header>\r\n );\r\n};\r\n"],"names":["BaseModalHeader","labels","onCloseClick","onBackClick","showBackButton","children","jsx","Row","Dialog.Title","jsxs","Button","ArrowLeft","Dialog.Close","Close"],"mappings":"gTAiBaA,EAAkB,CAAC,CAC9B,OAAAC,EAAS,CACP,YAAa,SACb,WAAY,UACd,EACA,aAAAC,EACA,YAAAC,EACA,eAAAC,EAAiB,GACjB,SAAAC,CACF,IAEIC,EAAA,kBAAA,IAAC,UAAO,UAAU,wCAChB,kCAACC,EAAI,IAAA,CAAA,WAAY,SAAU,eAAgB,gBACzC,SAAA,CAAAD,EAAAA,kBAAAA,IAACE,EAAAA,MAAA,CAAa,UAAU,6BACrB,SAAAH,CACH,CAAA,EACCD,GAAkBD,IAAeF,GAAA,MAAAA,EAAQ,YACxCQ,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAK,IACL,UAAU,UACV,GAAG,cACH,aAAW,iBACX,QAASP,EAET,SAAA,CAACG,EAAAA,kBAAAA,IAAAK,EAAA,UAAA,CAAU,UAAU,OAAQ,CAAA,EAC5BV,EAAO,UAAA,CAAA,CAAA,EAER,KACHC,IAAgBD,GAAA,MAAAA,EAAQ,aACvBK,EAAA,kBAAA,IAACM,EAAA,MAAA,CAAa,QAAO,GACnB,SAAAH,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAK,IACL,UAAU,UACV,GAAG,cACH,aAAW,gBACX,QAASR,EACT,UAAU,sBAET,SAAA,CAAOD,EAAA,YACRK,EAAAA,kBAAAA,IAACO,EAAM,MAAA,CAAA,UAAU,OAAQ,CAAA,CAAA,CAAA,GAE7B,EACE,IAAA,CAAA,CACN,CACF,CAAA"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css');const n=require("./index.cjs196.js"),o=require("./index.cjs197.js");;/* empty css */const s=({overrideClassNames:e,children:t})=>n.jsxRuntimeExports.jsx("div",{className:o.clsx("ui-consent-modal-body",e),children:t});exports.ContentModalContent=s;
2
- //# sourceMappingURL=index.cjs250.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs250.js","sources":["../src/components/ui/ConsentModal/ConsentModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./ConsentModalContent.scss\";\r\n\r\ntype ContentModalContentProps = {\r\n overrideClassNames?: string;\r\n children?: React.ReactNode;\r\n};\r\n\r\nexport const ContentModalContent = ({\r\n overrideClassNames,\r\n children,\r\n}: ContentModalContentProps) => {\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":["ContentModalContent","overrideClassNames","children","clsx"],"mappings":"iLAQO,MAAMA,EAAsB,CAAC,CAClC,mBAAAC,EACA,SAAAC,CACF,4BAEK,MAAI,CAAA,UAAWC,OAAK,wBAAyBF,CAAkB,EAC7D,SAAAC,EACH"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),T=require("./index.cjs357.js"),_=require("./index.cjs358.js"),O=require("./index.cjs359.js"),M=require("./index.cjs360.js"),$=require("./index.cjs368.js"),N=require("./index.cjs369.js"),C=require("./index.cjs361.js"),d=require("./index.cjs196.js");function H(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 s=H(q);var S="Switch",[I,z]=O.createContextScope(S),[B,D]=I(S),v=s.forwardRef((e,o)=>{const{__scopeSwitch:t,name:r,checked:n,defaultChecked:p,required:i,disabled:c,value:a="on",onCheckedChange:b,form:m,...l}=e,[u,R]=s.useState(null),g=_.useComposedRefs(o,f=>R(f)),x=s.useRef(!1),k=u?m||!!u.closest("form"):!0,[h=!1,y]=M.useControllableState({prop:n,defaultProp:p,onChange:b});return d.jsxRuntimeExports.jsxs(B,{scope:t,checked:h,disabled:c,children:[d.jsxRuntimeExports.jsx(C.Primitive.button,{type:"button",role:"switch","aria-checked":h,"aria-required":i,"data-state":P(h),"data-disabled":c?"":void 0,disabled:c,value:a,...l,ref:g,onClick:T.composeEventHandlers(e.onClick,f=>{y(E=>!E),k&&(x.current=f.isPropagationStopped(),x.current||f.stopPropagation())})}),k&&d.jsxRuntimeExports.jsx(A,{control:u,bubbles:!x.current,name:r,value:a,checked:h,required:i,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});v.displayName=S;var j="SwitchThumb",w=s.forwardRef((e,o)=>{const{__scopeSwitch:t,...r}=e,n=D(j,t);return d.jsxRuntimeExports.jsx(C.Primitive.span,{"data-state":P(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});w.displayName=j;var A=e=>{const{control:o,checked:t,bubbles:r=!0,...n}=e,p=s.useRef(null),i=$.usePrevious(t),c=N.useSize(o);return s.useEffect(()=>{const a=p.current,b=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(b,"checked").set;if(i!==t&&l){const u=new Event("click",{bubbles:r});l.call(a,t),a.dispatchEvent(u)}},[i,t,r]),d.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:p,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function P(e){return e?"checked":"unchecked"}var F=v,L=w;exports.Root=F;exports.Switch=v;exports.SwitchThumb=w;exports.Thumb=L;exports.createSwitchScope=z;
2
- //# sourceMappingURL=index.cjs269.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs269.js","sources":["../node_modules/@radix-ui/react-switch/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/switch/src/switch.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar SWITCH_NAME = \"Switch\";\nvar [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);\nvar [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);\nvar Switch = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSwitch,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n form,\n ...switchProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...switchProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nSwitch.displayName = SWITCH_NAME;\nvar THUMB_NAME = \"SwitchThumb\";\nvar SwitchThumb = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSwitch, ...thumbProps } = props;\n const context = useSwitchContext(THUMB_NAME, __scopeSwitch);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...thumbProps,\n ref: forwardedRef\n }\n );\n }\n);\nSwitchThumb.displayName = THUMB_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Switch;\nvar Thumb = SwitchThumb;\nexport {\n Root,\n Switch,\n SwitchThumb,\n Thumb,\n createSwitchScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SWITCH_NAME","createSwitchContext","createSwitchScope","createContextScope","SwitchProvider","useSwitchContext","Switch","React","props","forwardedRef","__scopeSwitch","name","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","form","switchProps","button","setButton","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","isFormControl","checked","setChecked","useControllableState","jsxs","jsx","Primitive","getState","composeEventHandlers","event","prevChecked","BubbleInput","THUMB_NAME","SwitchThumb","thumbProps","context","control","bubbles","inputProps","ref","usePrevious","controlSize","useSize","input","inputProto","Root","Thumb"],"mappings":"2nBAYA,IAAIA,EAAc,SACd,CAACC,EAAqBC,CAAiB,EAAIC,EAAAA,mBAAmBH,CAAW,EACzE,CAACI,EAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAASC,EAAM,WACjB,CAACC,EAAOC,IAAiB,CACvB,KAAM,CACJ,cAAAC,EACA,KAAAC,EACA,QAASC,EACT,eAAAC,EACA,SAAAC,EACA,SAAAC,EACA,MAAAC,EAAQ,KACR,gBAAAC,EACA,KAAAC,EACA,GAAGC,CACT,EAAQX,EACE,CAACY,EAAQC,CAAS,EAAId,EAAM,SAAS,IAAI,EACzCe,EAAeC,EAAAA,gBAAgBd,EAAee,GAASH,EAAUG,CAAI,CAAC,EACtEC,EAAmClB,EAAM,OAAO,EAAK,EACrDmB,EAAgBN,EAASF,GAAQ,CAAC,CAACE,EAAO,QAAQ,MAAM,EAAI,GAC5D,CAACO,EAAU,GAAOC,CAAU,EAAIC,EAAAA,qBAAqB,CACzD,KAAMjB,EACN,YAAaC,EACb,SAAUI,CAChB,CAAK,EACD,OAAuBa,EAAAA,kBAAAA,KAAK1B,EAAgB,CAAE,MAAOM,EAAe,QAAAiB,EAAS,SAAAZ,EAAU,SAAU,CAC/EgB,EAAG,kBAAA,IACjBC,EAAAA,UAAU,OACV,CACE,KAAM,SACN,KAAM,SACN,eAAgBL,EAChB,gBAAiBb,EACjB,aAAcmB,EAASN,CAAO,EAC9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AY,CACzC,MAAMO,EAAQ,IAAI,MAAM,QAAS,CAAE,QAAAQ,CAAO,CAAE,EAC5Cf,EAAW,KAAKqB,EAAOtB,CAAO,EAC9BsB,EAAM,cAAcd,CAAK,CAC/B,CACG,EAAE,CAACC,EAAaT,EAASgB,CAAO,CAAC,EACXZ,EAAG,kBAAA,IACxB,QACA,CACE,KAAM,WACN,cAAe,GACf,eAAgBJ,EAChB,GAAGiB,EACH,SAAU,GACV,IAAAC,EACA,MAAO,CACL,GAAGrC,EAAM,MACT,GAAGuC,EACH,SAAU,WACV,cAAe,OACf,QAAS,EACT,OAAQ,CAChB,CACA,CACG,CACH,EACA,SAASd,EAASN,EAAS,CACzB,OAAOA,EAAU,UAAY,WAC/B,CACG,IAACwB,EAAO7C,EACP8C,EAAQb","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs196.js"),r=require("./index.cjs197.js"),c=require("./index.cjs329.js"),a=({index:t,title:i,content:x,isOpen:e,detailLabels:n,onToggle:l})=>s.jsxRuntimeExports.jsxs("div",{className:"step-item",children:[s.jsxRuntimeExports.jsxs("div",{className:r.clsx("step-header",e&&"open"),children:[s.jsxRuntimeExports.jsx("div",{className:"step-number",children:t+1}),s.jsxRuntimeExports.jsx("div",{className:"step-title",children:i})]}),s.jsxRuntimeExports.jsxs("div",{className:"step-details",children:[s.jsxRuntimeExports.jsxs("div",{className:"step-details-box",children:[s.jsxRuntimeExports.jsx("div",{className:""}),s.jsxRuntimeExports.jsx("div",{className:"line"})]}),s.jsxRuntimeExports.jsxs("div",{className:"step-details-content",children:[s.jsxRuntimeExports.jsx(c,{className:"toggle-btn",onClick:l,isOpen:e,toggleLabels:n}),e&&s.jsxRuntimeExports.jsx("div",{className:"step-content",children:x})]})]})]});exports.StepItem=a;
2
- //# sourceMappingURL=index.cjs327.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs327.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,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs396.js");var r=e.__require();exports.lodashExports=r;
2
- //# sourceMappingURL=index.cjs344.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs344.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";const r=require("./index.cjs397.js"),e=require("./index.cjs402.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
2
- //# sourceMappingURL=index.cjs351.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs351.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");require("./index.cjs412.js");function i(){const[t,e]=o.useState(null),a=o.useCallback(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(n){return console.warn("Copy failed",n),e(null),!1}},[]);return[t,a]}exports.useCopyToClipboard=i;
2
- //# sourceMappingURL=index.cjs371.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs371.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACR,OAAQC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACb,CACG,EAAE,EAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var k=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,b=function(r){return r&&(r.host||b(r.parentNode))},O=function(r,u){return u.map(function(t){if(r.contains(t))return t;var n=b(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},D=function(r,u,t,n){var i=O(u,Array.isArray(r)?r:[r]);p[t]||(p[t]=new WeakMap);var o=p[t],l=[],s=new Set,S=new Set(i),y=function(e){!e||s.has(e)||(s.add(e),y(e.parentNode))};i.forEach(y);var A=function(e){!e||S.has(e)||Array.prototype.forEach.call(e.children,function(a){if(s.has(a))A(a);else try{var c=a.getAttribute(n),d=c!==null&&c!=="false",w=(f.get(a)||0)+1,M=(o.get(a)||0)+1;f.set(a,w),o.set(a,M),l.push(a),w===1&&d&&v.set(a,!0),M===1&&a.setAttribute(t,"true"),d||a.setAttribute(n,"true")}catch(W){console.error("aria-hidden: cannot operate on ",a,W)}})};return A(u),s.clear(),h++,function(){l.forEach(function(e){var a=f.get(e)-1,c=o.get(e)-1;f.set(e,a),o.set(e,c),a||(v.has(e)||e.removeAttribute(n),v.delete(e)),c||e.removeAttribute(t)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},E=function(r,u,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=k(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),D(n,i,t,"aria-hidden")):function(){return null}};exports.hideOthers=E;
2
- //# sourceMappingURL=index.cjs384.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs384.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"gFAAA,IAAIA,EAAmB,SAAUC,EAAgB,CAC7C,GAAI,OAAO,SAAa,IACpB,OAAO,KAEX,IAAIC,EAAe,MAAM,QAAQD,CAAc,EAAIA,EAAe,CAAC,EAAIA,EACvE,OAAOC,EAAa,cAAc,IACtC,EACIC,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EACdC,EAAY,EACZC,EAAa,SAAUC,EAAM,CAC7B,OAAOA,IAASA,EAAK,MAAQD,EAAWC,EAAK,UAAU,EAC3D,EACIC,EAAiB,SAAUC,EAAQC,EAAS,CAC5C,OAAOA,EACF,IAAI,SAAUC,EAAQ,CACvB,GAAIF,EAAO,SAASE,CAAM,EACtB,OAAOA,EAEX,IAAIC,EAAkBN,EAAWK,CAAM,EACvC,OAAIC,GAAmBH,EAAO,SAASG,CAAe,EAC3CA,GAEX,QAAQ,MAAM,cAAeD,EAAQ,0BAA2BF,EAAQ,iBAAiB,EAClF,KACV,CAAA,EACI,OAAO,SAAUI,EAAG,CAAE,MAAO,EAAQA,EAAK,CACnD,EASIC,EAAyB,SAAUd,EAAgBe,EAAYC,EAAYC,EAAkB,CAC7F,IAAIP,EAAUF,EAAeO,EAAY,MAAM,QAAQf,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACrGI,EAAUY,CAAU,IACrBZ,EAAUY,CAAU,EAAI,IAAI,SAEhC,IAAIE,EAAgBd,EAAUY,CAAU,EACpCG,EAAc,CAAE,EAChBC,EAAiB,IAAI,IACrBC,EAAiB,IAAI,IAAIX,CAAO,EAChCY,EAAO,SAAUC,EAAI,CACjB,CAACA,GAAMH,EAAe,IAAIG,CAAE,IAGhCH,EAAe,IAAIG,CAAE,EACrBD,EAAKC,EAAG,UAAU,EACrB,EACDb,EAAQ,QAAQY,CAAI,EACpB,IAAIE,EAAO,SAAUf,EAAQ,CACrB,CAACA,GAAUY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BAC1C,IAAIN,EAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,EAAIA,EAAiB,CAACA,CAAc,CAAC,EACtF+B,EAAiChC,EAAiBC,CAAc,EACpE,OAAK+B,GAILrB,EAAQ,KAAK,MAAMA,EAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,EACjFjB,EAAuBJ,EAASqB,EAAkBf,EAAY,aAAa,GAJvE,UAAY,CAAE,OAAO,IAAO,CAK3C","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),g=require("./index.cjs358.js"),u=require("./index.cjs196.js");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=S(y);function b(e){const t=x(e),n=l.forwardRef((r,o)=>{const{children:i,...c}=r,s=l.Children.toArray(i),f=s.find(E);if(f){const a=f.props.children,m=s.map(p=>p===f?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:p);return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(a)?l.cloneElement(a,void 0,m):null})}return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function x(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const c=O(o),s=R(i,o.props);return o.type!==l.Fragment&&(s.ref=r?g.composeRefs(r,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol("radix.slottable");function j(e){const t=({children:n})=>u.jsxRuntimeExports.jsx(u.jsxRuntimeExports.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d}function R(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function O(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.createSlot=b;exports.createSlottable=j;
2
- //# sourceMappingURL=index.cjs385.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs385.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACxL,CACI,OAAuBE,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAAC,EAAU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