@anoki/fse-ui 1.0.454 → 1.0.455

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 (669) hide show
  1. package/dist/components/ui/ModalsHeader/ModalsHeader.css +1 -0
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs102.js.map +1 -1
  5. package/dist/index.cjs103.js.map +1 -1
  6. package/dist/index.cjs105.js.map +1 -1
  7. package/dist/index.cjs106.js.map +1 -1
  8. package/dist/index.cjs107.js.map +1 -1
  9. package/dist/index.cjs108.js.map +1 -1
  10. package/dist/index.cjs109.js.map +1 -1
  11. package/dist/index.cjs11.js.map +1 -1
  12. package/dist/index.cjs110.js.map +1 -1
  13. package/dist/index.cjs111.js.map +1 -1
  14. package/dist/index.cjs112.js.map +1 -1
  15. package/dist/index.cjs113.js.map +1 -1
  16. package/dist/index.cjs114.js.map +1 -1
  17. package/dist/index.cjs115.js.map +1 -1
  18. package/dist/index.cjs116.js.map +1 -1
  19. package/dist/index.cjs117.js.map +1 -1
  20. package/dist/index.cjs118.js.map +1 -1
  21. package/dist/index.cjs119.js.map +1 -1
  22. package/dist/index.cjs12.js.map +1 -1
  23. package/dist/index.cjs120.js.map +1 -1
  24. package/dist/index.cjs121.js.map +1 -1
  25. package/dist/index.cjs122.js.map +1 -1
  26. package/dist/index.cjs123.js.map +1 -1
  27. package/dist/index.cjs124.js.map +1 -1
  28. package/dist/index.cjs125.js.map +1 -1
  29. package/dist/index.cjs126.js.map +1 -1
  30. package/dist/index.cjs127.js.map +1 -1
  31. package/dist/index.cjs128.js.map +1 -1
  32. package/dist/index.cjs129.js.map +1 -1
  33. package/dist/index.cjs13.js.map +1 -1
  34. package/dist/index.cjs130.js.map +1 -1
  35. package/dist/index.cjs131.js.map +1 -1
  36. package/dist/index.cjs132.js.map +1 -1
  37. package/dist/index.cjs133.js.map +1 -1
  38. package/dist/index.cjs134.js.map +1 -1
  39. package/dist/index.cjs135.js.map +1 -1
  40. package/dist/index.cjs136.js.map +1 -1
  41. package/dist/index.cjs137.js.map +1 -1
  42. package/dist/index.cjs138.js.map +1 -1
  43. package/dist/index.cjs139.js.map +1 -1
  44. package/dist/index.cjs14.js.map +1 -1
  45. package/dist/index.cjs140.js.map +1 -1
  46. package/dist/index.cjs141.js.map +1 -1
  47. package/dist/index.cjs142.js.map +1 -1
  48. package/dist/index.cjs143.js.map +1 -1
  49. package/dist/index.cjs144.js.map +1 -1
  50. package/dist/index.cjs145.js.map +1 -1
  51. package/dist/index.cjs146.js.map +1 -1
  52. package/dist/index.cjs147.js.map +1 -1
  53. package/dist/index.cjs148.js.map +1 -1
  54. package/dist/index.cjs149.js.map +1 -1
  55. package/dist/index.cjs15.js.map +1 -1
  56. package/dist/index.cjs150.js.map +1 -1
  57. package/dist/index.cjs151.js.map +1 -1
  58. package/dist/index.cjs154.js +1 -1
  59. package/dist/index.cjs154.js.map +1 -1
  60. package/dist/index.cjs155.js +1 -1
  61. package/dist/index.cjs155.js.map +1 -1
  62. package/dist/index.cjs159.js +1 -1
  63. package/dist/index.cjs159.js.map +1 -1
  64. package/dist/index.cjs168.js +1 -1
  65. package/dist/index.cjs168.js.map +1 -1
  66. package/dist/index.cjs17.js.map +1 -1
  67. package/dist/index.cjs172.js +1 -1
  68. package/dist/index.cjs172.js.map +1 -1
  69. package/dist/index.cjs18.js.map +1 -1
  70. package/dist/index.cjs182.js.map +1 -1
  71. package/dist/index.cjs184.js.map +1 -1
  72. package/dist/index.cjs185.js.map +1 -1
  73. package/dist/index.cjs189.js.map +1 -1
  74. package/dist/index.cjs19.js.map +1 -1
  75. package/dist/index.cjs193.js.map +1 -1
  76. package/dist/index.cjs196.js.map +1 -1
  77. package/dist/index.cjs20.js.map +1 -1
  78. package/dist/index.cjs202.js.map +1 -1
  79. package/dist/index.cjs203.js.map +1 -1
  80. package/dist/index.cjs21.js.map +1 -1
  81. package/dist/index.cjs211.js.map +1 -1
  82. package/dist/index.cjs214.js.map +1 -1
  83. package/dist/index.cjs219.js.map +1 -1
  84. package/dist/index.cjs22.js.map +1 -1
  85. package/dist/index.cjs221.js +1 -1
  86. package/dist/index.cjs222.js.map +1 -1
  87. package/dist/index.cjs223.js.map +1 -1
  88. package/dist/index.cjs224.js.map +1 -1
  89. package/dist/index.cjs225.js.map +1 -1
  90. package/dist/index.cjs227.js.map +1 -1
  91. package/dist/index.cjs228.js.map +1 -1
  92. package/dist/index.cjs229.js.map +1 -1
  93. package/dist/index.cjs23.js.map +1 -1
  94. package/dist/index.cjs232.js.map +1 -1
  95. package/dist/index.cjs233.js.map +1 -1
  96. package/dist/index.cjs238.js.map +1 -1
  97. package/dist/index.cjs239.js.map +1 -1
  98. package/dist/index.cjs240.js.map +1 -1
  99. package/dist/index.cjs242.js.map +1 -1
  100. package/dist/index.cjs243.js.map +1 -1
  101. package/dist/index.cjs244.js.map +1 -1
  102. package/dist/index.cjs246.js.map +1 -1
  103. package/dist/index.cjs247.js.map +1 -1
  104. package/dist/index.cjs25.js.map +1 -1
  105. package/dist/index.cjs26.js.map +1 -1
  106. package/dist/index.cjs27.js.map +1 -1
  107. package/dist/index.cjs28.js.map +1 -1
  108. package/dist/index.cjs287.js +1 -1
  109. package/dist/index.cjs29.js.map +1 -1
  110. package/dist/index.cjs295.js.map +1 -1
  111. package/dist/index.cjs30.js.map +1 -1
  112. package/dist/index.cjs301.js +1 -1
  113. package/dist/index.cjs302.js +12 -3
  114. package/dist/index.cjs302.js.map +1 -1
  115. package/dist/index.cjs307.js.map +1 -1
  116. package/dist/index.cjs31.js.map +1 -1
  117. package/dist/index.cjs313.js +1 -1
  118. package/dist/index.cjs314.js +1 -1
  119. package/dist/index.cjs315.js +1 -1
  120. package/dist/index.cjs316.js +1 -1
  121. package/dist/index.cjs318.js +1 -1
  122. package/dist/index.cjs319.js +1 -1
  123. package/dist/index.cjs32.js.map +1 -1
  124. package/dist/index.cjs320.js +1 -1
  125. package/dist/index.cjs320.js.map +1 -1
  126. package/dist/index.cjs321.js +1 -1
  127. package/dist/index.cjs321.js.map +1 -1
  128. package/dist/index.cjs327.js +1 -1
  129. package/dist/index.cjs327.js.map +1 -1
  130. package/dist/index.cjs328.js +1 -1
  131. package/dist/index.cjs328.js.map +1 -1
  132. package/dist/index.cjs329.js +1 -1
  133. package/dist/index.cjs329.js.map +1 -1
  134. package/dist/index.cjs33.js.map +1 -1
  135. package/dist/index.cjs330.js +1 -1
  136. package/dist/index.cjs330.js.map +1 -1
  137. package/dist/index.cjs331.js +1 -1
  138. package/dist/index.cjs331.js.map +1 -1
  139. package/dist/index.cjs332.js +1 -1
  140. package/dist/index.cjs332.js.map +1 -1
  141. package/dist/index.cjs333.js +1 -1
  142. package/dist/index.cjs333.js.map +1 -1
  143. package/dist/index.cjs334.js +2 -0
  144. package/dist/index.cjs334.js.map +1 -0
  145. package/dist/index.cjs335.js +2 -0
  146. package/dist/index.cjs335.js.map +1 -0
  147. package/dist/index.cjs336.js +2 -0
  148. package/dist/index.cjs336.js.map +1 -0
  149. package/dist/index.cjs337.js +2 -0
  150. package/dist/index.cjs337.js.map +1 -0
  151. package/dist/index.cjs338.js +2 -0
  152. package/dist/index.cjs338.js.map +1 -0
  153. package/dist/index.cjs339.js +2 -0
  154. package/dist/index.cjs339.js.map +1 -0
  155. package/dist/index.cjs34.js.map +1 -1
  156. package/dist/index.cjs340.js +2 -0
  157. package/dist/index.cjs340.js.map +1 -0
  158. package/dist/{index.cjs360.js → index.cjs347.js} +1 -1
  159. package/dist/{index.cjs360.js.map → index.cjs347.js.map} +1 -1
  160. package/dist/{index.cjs361.js → index.cjs348.js} +1 -1
  161. package/dist/{index.cjs361.js.map → index.cjs348.js.map} +1 -1
  162. package/dist/index.cjs349.js +1 -1
  163. package/dist/index.cjs349.js.map +1 -1
  164. package/dist/index.cjs35.js.map +1 -1
  165. package/dist/index.cjs350.js +1 -1
  166. package/dist/index.cjs350.js.map +1 -1
  167. package/dist/index.cjs351.js +1 -1
  168. package/dist/index.cjs351.js.map +1 -1
  169. package/dist/index.cjs352.js +1 -1
  170. package/dist/index.cjs352.js.map +1 -1
  171. package/dist/{index.cjs326.js → index.cjs353.js} +2 -2
  172. package/dist/index.cjs353.js.map +1 -0
  173. package/dist/index.cjs354.js +1 -1
  174. package/dist/index.cjs354.js.map +1 -1
  175. package/dist/index.cjs355.js +2 -0
  176. package/dist/index.cjs355.js.map +1 -0
  177. package/dist/index.cjs356.js +1 -1
  178. package/dist/index.cjs356.js.map +1 -1
  179. package/dist/index.cjs357.js +2 -0
  180. package/dist/index.cjs357.js.map +1 -0
  181. package/dist/index.cjs36.js.map +1 -1
  182. package/dist/index.cjs362.js +1 -1
  183. package/dist/index.cjs362.js.map +1 -1
  184. package/dist/index.cjs363.js +1 -1
  185. package/dist/index.cjs363.js.map +1 -1
  186. package/dist/index.cjs364.js +1 -1
  187. package/dist/index.cjs364.js.map +1 -1
  188. package/dist/index.cjs365.js +1 -1
  189. package/dist/index.cjs365.js.map +1 -1
  190. package/dist/index.cjs366.js +1 -1
  191. package/dist/index.cjs366.js.map +1 -1
  192. package/dist/index.cjs367.js +1 -1
  193. package/dist/index.cjs367.js.map +1 -1
  194. package/dist/index.cjs368.js +1 -1
  195. package/dist/index.cjs368.js.map +1 -1
  196. package/dist/index.cjs369.js +1 -1
  197. package/dist/index.cjs369.js.map +1 -1
  198. package/dist/index.cjs37.js.map +1 -1
  199. package/dist/index.cjs370.js +1 -1
  200. package/dist/index.cjs370.js.map +1 -1
  201. package/dist/index.cjs371.js +1 -1
  202. package/dist/index.cjs371.js.map +1 -1
  203. package/dist/index.cjs372.js +1 -1
  204. package/dist/index.cjs372.js.map +1 -1
  205. package/dist/index.cjs373.js +1 -1
  206. package/dist/index.cjs373.js.map +1 -1
  207. package/dist/index.cjs374.js +1 -1
  208. package/dist/index.cjs374.js.map +1 -1
  209. package/dist/index.cjs375.js +4 -1
  210. package/dist/index.cjs375.js.map +1 -1
  211. package/dist/index.cjs376.js +1 -1
  212. package/dist/index.cjs376.js.map +1 -1
  213. package/dist/index.cjs377.js +1 -1
  214. package/dist/index.cjs377.js.map +1 -1
  215. package/dist/index.cjs378.js +1 -1
  216. package/dist/index.cjs378.js.map +1 -1
  217. package/dist/index.cjs379.js +1 -1
  218. package/dist/index.cjs379.js.map +1 -1
  219. package/dist/index.cjs38.js.map +1 -1
  220. package/dist/index.cjs380.js +38 -1
  221. package/dist/index.cjs380.js.map +1 -1
  222. package/dist/index.cjs381.js +1 -1
  223. package/dist/index.cjs381.js.map +1 -1
  224. package/dist/index.cjs382.js +1 -1
  225. package/dist/index.cjs382.js.map +1 -1
  226. package/dist/index.cjs383.js +1 -1
  227. package/dist/index.cjs383.js.map +1 -1
  228. package/dist/index.cjs384.js +1 -4
  229. package/dist/index.cjs384.js.map +1 -1
  230. package/dist/index.cjs385.js +1 -1
  231. package/dist/index.cjs385.js.map +1 -1
  232. package/dist/index.cjs386.js +1 -1
  233. package/dist/index.cjs386.js.map +1 -1
  234. package/dist/index.cjs387.js +1 -1
  235. package/dist/index.cjs387.js.map +1 -1
  236. package/dist/index.cjs388.js +1 -1
  237. package/dist/index.cjs388.js.map +1 -1
  238. package/dist/index.cjs389.js +1 -38
  239. package/dist/index.cjs389.js.map +1 -1
  240. package/dist/index.cjs39.js.map +1 -1
  241. package/dist/index.cjs390.js +1 -1
  242. package/dist/index.cjs390.js.map +1 -1
  243. package/dist/index.cjs391.js +1 -1
  244. package/dist/index.cjs391.js.map +1 -1
  245. package/dist/index.cjs392.js +1 -1
  246. package/dist/index.cjs392.js.map +1 -1
  247. package/dist/index.cjs393.js +1 -1
  248. package/dist/index.cjs393.js.map +1 -1
  249. package/dist/index.cjs394.js +1 -1
  250. package/dist/index.cjs394.js.map +1 -1
  251. package/dist/index.cjs397.js +1 -1
  252. package/dist/index.cjs397.js.map +1 -1
  253. package/dist/index.cjs399.js +1 -1
  254. package/dist/index.cjs399.js.map +1 -1
  255. package/dist/index.cjs40.js.map +1 -1
  256. package/dist/index.cjs41.js.map +1 -1
  257. package/dist/index.cjs42.js.map +1 -1
  258. package/dist/index.cjs43.js.map +1 -1
  259. package/dist/index.cjs44.js.map +1 -1
  260. package/dist/index.cjs45.js.map +1 -1
  261. package/dist/index.cjs46.js.map +1 -1
  262. package/dist/index.cjs47.js.map +1 -1
  263. package/dist/index.cjs48.js.map +1 -1
  264. package/dist/index.cjs49.js.map +1 -1
  265. package/dist/index.cjs50.js.map +1 -1
  266. package/dist/index.cjs51.js.map +1 -1
  267. package/dist/index.cjs52.js.map +1 -1
  268. package/dist/index.cjs53.js.map +1 -1
  269. package/dist/index.cjs54.js.map +1 -1
  270. package/dist/index.cjs56.js.map +1 -1
  271. package/dist/index.cjs57.js.map +1 -1
  272. package/dist/index.cjs58.js.map +1 -1
  273. package/dist/index.cjs6.js.map +1 -1
  274. package/dist/index.cjs60.js.map +1 -1
  275. package/dist/index.cjs61.js.map +1 -1
  276. package/dist/index.cjs62.js.map +1 -1
  277. package/dist/index.cjs63.js.map +1 -1
  278. package/dist/index.cjs64.js.map +1 -1
  279. package/dist/index.cjs65.js.map +1 -1
  280. package/dist/index.cjs67.js.map +1 -1
  281. package/dist/index.cjs68.js.map +1 -1
  282. package/dist/index.cjs69.js.map +1 -1
  283. package/dist/index.cjs7.js.map +1 -1
  284. package/dist/index.cjs71.js.map +1 -1
  285. package/dist/index.cjs72.js.map +1 -1
  286. package/dist/index.cjs73.js.map +1 -1
  287. package/dist/index.cjs74.js.map +1 -1
  288. package/dist/index.cjs75.js.map +1 -1
  289. package/dist/index.cjs76.js.map +1 -1
  290. package/dist/index.cjs77.js.map +1 -1
  291. package/dist/index.cjs78.js.map +1 -1
  292. package/dist/index.cjs79.js.map +1 -1
  293. package/dist/index.cjs8.js.map +1 -1
  294. package/dist/index.cjs80.js.map +1 -1
  295. package/dist/index.cjs81.js.map +1 -1
  296. package/dist/index.cjs82.js.map +1 -1
  297. package/dist/index.cjs83.js.map +1 -1
  298. package/dist/index.cjs84.js.map +1 -1
  299. package/dist/index.cjs85.js.map +1 -1
  300. package/dist/index.cjs86.js.map +1 -1
  301. package/dist/index.cjs87.js.map +1 -1
  302. package/dist/index.cjs88.js.map +1 -1
  303. package/dist/index.cjs90.js.map +1 -1
  304. package/dist/index.cjs91.js.map +1 -1
  305. package/dist/index.cjs92.js.map +1 -1
  306. package/dist/index.cjs94.js.map +1 -1
  307. package/dist/index.cjs95.js +1 -1
  308. package/dist/index.cjs95.js.map +1 -1
  309. package/dist/index.cjs96.js.map +1 -1
  310. package/dist/index.cjs97.js.map +1 -1
  311. package/dist/index.cjs98.js +1 -1
  312. package/dist/index.cjs98.js.map +1 -1
  313. package/dist/index.cjs99.js +1 -1
  314. package/dist/index.cjs99.js.map +1 -1
  315. package/dist/index.es.js.map +1 -1
  316. package/dist/index.es10.js.map +1 -1
  317. package/dist/index.es102.js.map +1 -1
  318. package/dist/index.es103.js.map +1 -1
  319. package/dist/index.es105.js.map +1 -1
  320. package/dist/index.es106.js.map +1 -1
  321. package/dist/index.es107.js.map +1 -1
  322. package/dist/index.es108.js.map +1 -1
  323. package/dist/index.es109.js.map +1 -1
  324. package/dist/index.es11.js.map +1 -1
  325. package/dist/index.es110.js.map +1 -1
  326. package/dist/index.es111.js.map +1 -1
  327. package/dist/index.es112.js.map +1 -1
  328. package/dist/index.es113.js.map +1 -1
  329. package/dist/index.es114.js.map +1 -1
  330. package/dist/index.es115.js.map +1 -1
  331. package/dist/index.es116.js.map +1 -1
  332. package/dist/index.es117.js.map +1 -1
  333. package/dist/index.es118.js.map +1 -1
  334. package/dist/index.es119.js.map +1 -1
  335. package/dist/index.es12.js.map +1 -1
  336. package/dist/index.es120.js.map +1 -1
  337. package/dist/index.es121.js.map +1 -1
  338. package/dist/index.es122.js.map +1 -1
  339. package/dist/index.es123.js.map +1 -1
  340. package/dist/index.es124.js.map +1 -1
  341. package/dist/index.es125.js.map +1 -1
  342. package/dist/index.es126.js.map +1 -1
  343. package/dist/index.es127.js.map +1 -1
  344. package/dist/index.es128.js.map +1 -1
  345. package/dist/index.es129.js.map +1 -1
  346. package/dist/index.es13.js.map +1 -1
  347. package/dist/index.es130.js.map +1 -1
  348. package/dist/index.es131.js.map +1 -1
  349. package/dist/index.es132.js.map +1 -1
  350. package/dist/index.es133.js.map +1 -1
  351. package/dist/index.es134.js.map +1 -1
  352. package/dist/index.es135.js.map +1 -1
  353. package/dist/index.es136.js.map +1 -1
  354. package/dist/index.es137.js.map +1 -1
  355. package/dist/index.es138.js.map +1 -1
  356. package/dist/index.es139.js.map +1 -1
  357. package/dist/index.es14.js.map +1 -1
  358. package/dist/index.es140.js.map +1 -1
  359. package/dist/index.es141.js.map +1 -1
  360. package/dist/index.es142.js.map +1 -1
  361. package/dist/index.es143.js.map +1 -1
  362. package/dist/index.es144.js.map +1 -1
  363. package/dist/index.es145.js.map +1 -1
  364. package/dist/index.es146.js.map +1 -1
  365. package/dist/index.es147.js.map +1 -1
  366. package/dist/index.es148.js.map +1 -1
  367. package/dist/index.es149.js.map +1 -1
  368. package/dist/index.es15.js.map +1 -1
  369. package/dist/index.es150.js.map +1 -1
  370. package/dist/index.es151.js.map +1 -1
  371. package/dist/index.es154.js +71 -76
  372. package/dist/index.es154.js.map +1 -1
  373. package/dist/index.es155.js +1 -11
  374. package/dist/index.es155.js.map +1 -1
  375. package/dist/index.es159.js +58 -63
  376. package/dist/index.es159.js.map +1 -1
  377. package/dist/index.es168.js +26 -29
  378. package/dist/index.es168.js.map +1 -1
  379. package/dist/index.es17.js.map +1 -1
  380. package/dist/index.es172.js +15 -18
  381. package/dist/index.es172.js.map +1 -1
  382. package/dist/index.es18.js.map +1 -1
  383. package/dist/index.es182.js.map +1 -1
  384. package/dist/index.es184.js.map +1 -1
  385. package/dist/index.es185.js.map +1 -1
  386. package/dist/index.es189.js.map +1 -1
  387. package/dist/index.es19.js.map +1 -1
  388. package/dist/index.es193.js.map +1 -1
  389. package/dist/index.es196.js.map +1 -1
  390. package/dist/index.es20.js.map +1 -1
  391. package/dist/index.es202.js.map +1 -1
  392. package/dist/index.es203.js.map +1 -1
  393. package/dist/index.es21.js.map +1 -1
  394. package/dist/index.es211.js.map +1 -1
  395. package/dist/index.es214.js.map +1 -1
  396. package/dist/index.es219.js.map +1 -1
  397. package/dist/index.es22.js.map +1 -1
  398. package/dist/index.es221.js +14 -14
  399. package/dist/index.es222.js.map +1 -1
  400. package/dist/index.es223.js.map +1 -1
  401. package/dist/index.es224.js.map +1 -1
  402. package/dist/index.es225.js.map +1 -1
  403. package/dist/index.es227.js.map +1 -1
  404. package/dist/index.es228.js.map +1 -1
  405. package/dist/index.es229.js.map +1 -1
  406. package/dist/index.es23.js.map +1 -1
  407. package/dist/index.es232.js.map +1 -1
  408. package/dist/index.es233.js.map +1 -1
  409. package/dist/index.es238.js.map +1 -1
  410. package/dist/index.es239.js.map +1 -1
  411. package/dist/index.es240.js.map +1 -1
  412. package/dist/index.es242.js.map +1 -1
  413. package/dist/index.es243.js.map +1 -1
  414. package/dist/index.es244.js.map +1 -1
  415. package/dist/index.es246.js.map +1 -1
  416. package/dist/index.es247.js.map +1 -1
  417. package/dist/index.es25.js.map +1 -1
  418. package/dist/index.es26.js.map +1 -1
  419. package/dist/index.es27.js.map +1 -1
  420. package/dist/index.es28.js.map +1 -1
  421. package/dist/index.es287.js +4 -4
  422. package/dist/index.es29.js.map +1 -1
  423. package/dist/index.es295.js.map +1 -1
  424. package/dist/index.es30.js.map +1 -1
  425. package/dist/index.es301.js +1 -1
  426. package/dist/index.es302.js +307 -146
  427. package/dist/index.es302.js.map +1 -1
  428. package/dist/index.es307.js.map +1 -1
  429. package/dist/index.es31.js.map +1 -1
  430. package/dist/index.es313.js +1 -1
  431. package/dist/index.es314.js +1 -1
  432. package/dist/index.es315.js +12 -12
  433. package/dist/index.es316.js +1 -1
  434. package/dist/index.es318.js +1 -1
  435. package/dist/index.es319.js +1 -1
  436. package/dist/index.es32.js.map +1 -1
  437. package/dist/index.es320.js +2 -7
  438. package/dist/index.es320.js.map +1 -1
  439. package/dist/index.es321.js +2 -27
  440. package/dist/index.es321.js.map +1 -1
  441. package/dist/index.es327.js +7 -14
  442. package/dist/index.es327.js.map +1 -1
  443. package/dist/index.es328.js +21 -63
  444. package/dist/index.es328.js.map +1 -1
  445. package/dist/index.es329.js +67 -32
  446. package/dist/index.es329.js.map +1 -1
  447. package/dist/index.es33.js.map +1 -1
  448. package/dist/index.es330.js +10 -14
  449. package/dist/index.es330.js.map +1 -1
  450. package/dist/index.es331.js +30 -9
  451. package/dist/index.es331.js.map +1 -1
  452. package/dist/index.es332.js +122 -47
  453. package/dist/index.es332.js.map +1 -1
  454. package/dist/index.es333.js +127 -39
  455. package/dist/index.es333.js.map +1 -1
  456. package/dist/index.es334.js +17 -0
  457. package/dist/index.es334.js.map +1 -0
  458. package/dist/index.es335.js +72 -0
  459. package/dist/index.es335.js.map +1 -0
  460. package/dist/index.es336.js +36 -0
  461. package/dist/index.es336.js.map +1 -0
  462. package/dist/index.es337.js +18 -0
  463. package/dist/index.es337.js.map +1 -0
  464. package/dist/index.es338.js +12 -0
  465. package/dist/index.es338.js.map +1 -0
  466. package/dist/index.es339.js +53 -0
  467. package/dist/index.es339.js.map +1 -0
  468. package/dist/index.es34.js.map +1 -1
  469. package/dist/index.es340.js +50 -0
  470. package/dist/index.es340.js.map +1 -0
  471. package/dist/{index.es360.js → index.es347.js} +1 -1
  472. package/dist/{index.es360.js.map → index.es347.js.map} +1 -1
  473. package/dist/{index.es361.js → index.es348.js} +1 -1
  474. package/dist/{index.es361.js.map → index.es348.js.map} +1 -1
  475. package/dist/index.es349.js +43 -50
  476. package/dist/index.es349.js.map +1 -1
  477. package/dist/index.es35.js.map +1 -1
  478. package/dist/index.es350.js +7 -26
  479. package/dist/index.es350.js.map +1 -1
  480. package/dist/index.es351.js +123 -5
  481. package/dist/index.es351.js.map +1 -1
  482. package/dist/index.es352.js +14 -8
  483. package/dist/index.es352.js.map +1 -1
  484. package/dist/{index.es326.js → index.es353.js} +4 -4
  485. package/dist/index.es353.js.map +1 -0
  486. package/dist/index.es354.js +218 -34
  487. package/dist/index.es354.js.map +1 -1
  488. package/dist/index.es355.js +17 -0
  489. package/dist/index.es355.js.map +1 -0
  490. package/dist/index.es356.js +178 -9
  491. package/dist/index.es356.js.map +1 -1
  492. package/dist/index.es357.js +7 -0
  493. package/dist/index.es357.js.map +1 -0
  494. package/dist/index.es36.js.map +1 -1
  495. package/dist/index.es362.js +4 -46
  496. package/dist/index.es362.js.map +1 -1
  497. package/dist/index.es363.js +10 -7
  498. package/dist/index.es363.js.map +1 -1
  499. package/dist/index.es364.js +10 -123
  500. package/dist/index.es364.js.map +1 -1
  501. package/dist/index.es365.js +8 -11
  502. package/dist/index.es365.js.map +1 -1
  503. package/dist/index.es366.js +194 -124
  504. package/dist/index.es366.js.map +1 -1
  505. package/dist/index.es367.js +20 -216
  506. package/dist/index.es367.js.map +1 -1
  507. package/dist/index.es368.js +393 -14
  508. package/dist/index.es368.js.map +1 -1
  509. package/dist/index.es369.js +21 -174
  510. package/dist/index.es369.js.map +1 -1
  511. package/dist/index.es37.js.map +1 -1
  512. package/dist/index.es370.js +28 -3
  513. package/dist/index.es370.js.map +1 -1
  514. package/dist/index.es371.js +5 -4
  515. package/dist/index.es371.js.map +1 -1
  516. package/dist/index.es372.js +5 -11
  517. package/dist/index.es372.js.map +1 -1
  518. package/dist/index.es373.js +3 -12
  519. package/dist/index.es373.js.map +1 -1
  520. package/dist/index.es374.js +23 -11
  521. package/dist/index.es374.js.map +1 -1
  522. package/dist/index.es375.js +105 -200
  523. package/dist/index.es375.js.map +1 -1
  524. package/dist/index.es376.js +15 -21
  525. package/dist/index.es376.js.map +1 -1
  526. package/dist/index.es377.js +494 -364
  527. package/dist/index.es377.js.map +1 -1
  528. package/dist/index.es378.js +125 -23
  529. package/dist/index.es378.js.map +1 -1
  530. package/dist/index.es379.js +128 -28
  531. package/dist/index.es379.js.map +1 -1
  532. package/dist/index.es38.js.map +1 -1
  533. package/dist/index.es380.js +69 -5
  534. package/dist/index.es380.js.map +1 -1
  535. package/dist/index.es381.js +9 -5
  536. package/dist/index.es381.js.map +1 -1
  537. package/dist/index.es382.js +14 -3
  538. package/dist/index.es382.js.map +1 -1
  539. package/dist/index.es383.js +61 -23
  540. package/dist/index.es383.js.map +1 -1
  541. package/dist/index.es384.js +58 -103
  542. package/dist/index.es384.js.map +1 -1
  543. package/dist/index.es385.js +3 -15
  544. package/dist/index.es385.js.map +1 -1
  545. package/dist/index.es386.js +19 -519
  546. package/dist/index.es386.js.map +1 -1
  547. package/dist/index.es387.js +21 -125
  548. package/dist/index.es387.js.map +1 -1
  549. package/dist/index.es388.js +12 -128
  550. package/dist/index.es388.js.map +1 -1
  551. package/dist/index.es389.js +27 -68
  552. package/dist/index.es389.js.map +1 -1
  553. package/dist/index.es39.js.map +1 -1
  554. package/dist/index.es390.js +4 -8
  555. package/dist/index.es390.js.map +1 -1
  556. package/dist/index.es391.js +52 -13
  557. package/dist/index.es391.js.map +1 -1
  558. package/dist/index.es392.js +27 -62
  559. package/dist/index.es392.js.map +1 -1
  560. package/dist/index.es393.js +5 -63
  561. package/dist/index.es393.js.map +1 -1
  562. package/dist/index.es394.js +8 -3
  563. package/dist/index.es394.js.map +1 -1
  564. package/dist/index.es397.js +34 -13
  565. package/dist/index.es397.js.map +1 -1
  566. package/dist/index.es399.js +9 -5
  567. package/dist/index.es399.js.map +1 -1
  568. package/dist/index.es40.js.map +1 -1
  569. package/dist/index.es41.js.map +1 -1
  570. package/dist/index.es42.js.map +1 -1
  571. package/dist/index.es43.js.map +1 -1
  572. package/dist/index.es44.js.map +1 -1
  573. package/dist/index.es45.js.map +1 -1
  574. package/dist/index.es46.js.map +1 -1
  575. package/dist/index.es47.js.map +1 -1
  576. package/dist/index.es48.js.map +1 -1
  577. package/dist/index.es49.js.map +1 -1
  578. package/dist/index.es50.js.map +1 -1
  579. package/dist/index.es51.js.map +1 -1
  580. package/dist/index.es52.js.map +1 -1
  581. package/dist/index.es53.js.map +1 -1
  582. package/dist/index.es54.js.map +1 -1
  583. package/dist/index.es56.js.map +1 -1
  584. package/dist/index.es57.js.map +1 -1
  585. package/dist/index.es58.js.map +1 -1
  586. package/dist/index.es6.js.map +1 -1
  587. package/dist/index.es60.js.map +1 -1
  588. package/dist/index.es61.js.map +1 -1
  589. package/dist/index.es62.js.map +1 -1
  590. package/dist/index.es63.js.map +1 -1
  591. package/dist/index.es64.js.map +1 -1
  592. package/dist/index.es65.js.map +1 -1
  593. package/dist/index.es67.js.map +1 -1
  594. package/dist/index.es68.js.map +1 -1
  595. package/dist/index.es69.js.map +1 -1
  596. package/dist/index.es7.js.map +1 -1
  597. package/dist/index.es71.js.map +1 -1
  598. package/dist/index.es72.js.map +1 -1
  599. package/dist/index.es73.js.map +1 -1
  600. package/dist/index.es74.js.map +1 -1
  601. package/dist/index.es75.js.map +1 -1
  602. package/dist/index.es76.js.map +1 -1
  603. package/dist/index.es77.js.map +1 -1
  604. package/dist/index.es78.js.map +1 -1
  605. package/dist/index.es79.js.map +1 -1
  606. package/dist/index.es8.js.map +1 -1
  607. package/dist/index.es80.js.map +1 -1
  608. package/dist/index.es81.js.map +1 -1
  609. package/dist/index.es82.js.map +1 -1
  610. package/dist/index.es83.js.map +1 -1
  611. package/dist/index.es84.js.map +1 -1
  612. package/dist/index.es85.js.map +1 -1
  613. package/dist/index.es86.js.map +1 -1
  614. package/dist/index.es87.js.map +1 -1
  615. package/dist/index.es88.js.map +1 -1
  616. package/dist/index.es90.js.map +1 -1
  617. package/dist/index.es91.js.map +1 -1
  618. package/dist/index.es92.js.map +1 -1
  619. package/dist/index.es94.js.map +1 -1
  620. package/dist/index.es95.js +1 -1
  621. package/dist/index.es95.js.map +1 -1
  622. package/dist/index.es96.js.map +1 -1
  623. package/dist/index.es97.js.map +1 -1
  624. package/dist/index.es98.js +1 -0
  625. package/dist/index.es98.js.map +1 -1
  626. package/dist/index.es99.js +2 -2
  627. package/dist/index.es99.js.map +1 -1
  628. package/dist/styles/index.css +1 -1
  629. package/dist/styles/typography.css +1 -1
  630. package/package.json +108 -108
  631. package/readme.md +42 -42
  632. package/dist/index.cjs322.js +0 -2
  633. package/dist/index.cjs322.js.map +0 -1
  634. package/dist/index.cjs323.js +0 -2
  635. package/dist/index.cjs323.js.map +0 -1
  636. package/dist/index.cjs324.js +0 -2
  637. package/dist/index.cjs324.js.map +0 -1
  638. package/dist/index.cjs325.js +0 -2
  639. package/dist/index.cjs325.js.map +0 -1
  640. package/dist/index.cjs326.js.map +0 -1
  641. package/dist/index.cjs358.js +0 -2
  642. package/dist/index.cjs358.js.map +0 -1
  643. package/dist/index.cjs359.js +0 -2
  644. package/dist/index.cjs359.js.map +0 -1
  645. package/dist/index.cjs395.js +0 -2
  646. package/dist/index.cjs395.js.map +0 -1
  647. package/dist/index.cjs396.js +0 -2
  648. package/dist/index.cjs396.js.map +0 -1
  649. package/dist/index.cjs398.js +0 -2
  650. package/dist/index.cjs398.js.map +0 -1
  651. package/dist/index.es322.js +0 -71
  652. package/dist/index.es322.js.map +0 -1
  653. package/dist/index.es323.js +0 -14
  654. package/dist/index.es323.js.map +0 -1
  655. package/dist/index.es324.js +0 -33
  656. package/dist/index.es324.js.map +0 -1
  657. package/dist/index.es325.js +0 -128
  658. package/dist/index.es325.js.map +0 -1
  659. package/dist/index.es326.js.map +0 -1
  660. package/dist/index.es358.js +0 -5
  661. package/dist/index.es358.js.map +0 -1
  662. package/dist/index.es359.js +0 -5
  663. package/dist/index.es359.js.map +0 -1
  664. package/dist/index.es395.js +0 -26
  665. package/dist/index.es395.js.map +0 -1
  666. package/dist/index.es396.js +0 -26
  667. package/dist/index.es396.js.map +0 -1
  668. package/dist/index.es398.js +0 -31
  669. package/dist/index.es398.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs310.js"),Ve=require("./index.cjs362.js"),y=require("./index.cjs311.js"),Ye=require("./index.cjs312.js"),Xe=require("./index.cjs363.js"),We=require("./index.cjs364.js"),ze=require("./index.cjs365.js"),Ze=require("./index.cjs366.js"),T=require("./index.cjs367.js"),Je=require("./index.cjs368.js"),X=require("./index.cjs319.js"),A=require("./index.cjs314.js"),W=require("./index.cjs369.js"),Qe=require("./index.cjs361.js"),be=require("./index.cjs360.js"),et=require("./index.cjs332.js"),tt=require("./index.cjs331.js"),a=require("./index.cjs173.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},L="Menu",[N,ut,at]=Ve.createCollection(L),[j,it]=Ye.createContextScope(L,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(L),[dt,G]=j(L),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const M=()=>{f.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>f.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=L;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,disableOutsideScroll:R,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=R?tt:r.Fragment,Ue=R?{as:Qe.Slot,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=bt(ne,E,te),D=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),D&&setTimeout(()=>D.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&yt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Le(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const D=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&D.reverse(),St(D)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,F(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Mt="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Mt;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,M=>o==null?void 0:o(M),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,M]=r.useState("");return r.useEffect(()=>{const R=p.current;R&&M((R.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,F(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Et="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Et;var Oe="MenuRadioGroup",[Ct,ht]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(Ct,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var De="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=ht(De,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=De;var pe="MenuItemIndicator",[ke,gt]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=gt(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var _t="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=_t;var Pt="MenuArrow",Re=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Re.displayName=Pt;var jt="MenuSub",[Vt,Ne]=j(jt),k="MenuSubTrigger",Me=r.forwardRef((e,n)=>{const t=S(k,e.__scopeMenu),o=G(k,e.__scopeMenu),u=Ne(k,e.__scopeMenu),s=ue(k,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Le(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,F(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(c=>{var M,R;f();const d=(M=t.content)==null?void 0:M.getBoundingClientRect();if(d){const P=(R=t.content)==null?void 0:R.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var M;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(M=t.content)==null||M.focus(),c.preventDefault())})})})});Me.displayName=k;var Fe="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Fe,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var M;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(M=m.trigger)==null||M.focus(),f.preventDefault())})})})})})});Ee.displayName=Fe;function Le(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function St(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function It(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function bt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=It(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function wt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function yt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return wt(t,n)}function F(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Tt=re,At=Z,Ot=ce,Dt=ae,kt=J,Nt=le,Ft=K,Lt=de,Gt=fe,Kt=me,Ht=xe,qt=ve,Ut=Re,$t=Me,Bt=Ee;exports.Anchor=At;exports.Arrow=Ut;exports.CheckboxItem=Lt;exports.Content=Dt;exports.Group=kt;exports.Item=Ft;exports.ItemIndicator=Ht;exports.Label=Nt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Re;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Me;exports.Portal=Ot;exports.RadioGroup=Gt;exports.RadioItem=Kt;exports.Root=Tt;exports.Separator=qt;exports.SubContent=Bt;exports.SubTrigger=$t;exports.createMenuScope=it;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs310.js"),Ve=require("./index.cjs349.js"),y=require("./index.cjs311.js"),Ye=require("./index.cjs312.js"),Xe=require("./index.cjs350.js"),We=require("./index.cjs351.js"),ze=require("./index.cjs352.js"),Ze=require("./index.cjs353.js"),T=require("./index.cjs354.js"),Je=require("./index.cjs355.js"),X=require("./index.cjs319.js"),A=require("./index.cjs314.js"),W=require("./index.cjs356.js"),Qe=require("./index.cjs348.js"),be=require("./index.cjs347.js"),et=require("./index.cjs339.js"),tt=require("./index.cjs338.js"),a=require("./index.cjs173.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},L="Menu",[N,ut,at]=Ve.createCollection(L),[j,it]=Ye.createContextScope(L,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(L),[dt,G]=j(L),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const M=()=>{f.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>f.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=L;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,disableOutsideScroll:R,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=R?tt:r.Fragment,Ue=R?{as:Qe.Slot,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=bt(ne,E,te),D=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),D&&setTimeout(()=>D.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&yt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Le(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const D=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&D.reverse(),St(D)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,F(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Mt="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Mt;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,M=>o==null?void 0:o(M),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,M]=r.useState("");return r.useEffect(()=>{const R=p.current;R&&M((R.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,F(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Et="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Et;var Oe="MenuRadioGroup",[Ct,ht]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(Ct,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var De="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=ht(De,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=De;var pe="MenuItemIndicator",[ke,gt]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=gt(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var _t="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=_t;var Pt="MenuArrow",Re=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Re.displayName=Pt;var jt="MenuSub",[Vt,Ne]=j(jt),k="MenuSubTrigger",Me=r.forwardRef((e,n)=>{const t=S(k,e.__scopeMenu),o=G(k,e.__scopeMenu),u=Ne(k,e.__scopeMenu),s=ue(k,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Le(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,F(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(c=>{var M,R;f();const d=(M=t.content)==null?void 0:M.getBoundingClientRect();if(d){const P=(R=t.content)==null?void 0:R.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var M;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(M=t.content)==null||M.focus(),c.preventDefault())})})})});Me.displayName=k;var Fe="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Fe,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var M;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(M=m.trigger)==null||M.focus(),f.preventDefault())})})})})})});Ee.displayName=Fe;function Le(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function St(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function It(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function bt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=It(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function wt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function yt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return wt(t,n)}function F(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Tt=re,At=Z,Ot=ce,Dt=ae,kt=J,Nt=le,Ft=K,Lt=de,Gt=fe,Kt=me,Ht=xe,qt=ve,Ut=Re,$t=Me,Bt=Ee;exports.Anchor=At;exports.Arrow=Ut;exports.CheckboxItem=Lt;exports.Content=Dt;exports.Group=kt;exports.Item=Ft;exports.ItemIndicator=Ht;exports.Label=Nt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Re;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Me;exports.Portal=Ot;exports.RadioGroup=Gt;exports.RadioItem=Kt;exports.Root=Tt;exports.Separator=qt;exports.SubContent=Bt;exports.SubTrigger=$t;exports.createMenuScope=it;
2
2
  //# sourceMappingURL=index.cjs315.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs370.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var s=o.useId||(()=>{}),i=0;function d(e){const[t,r]=o.useState(s());return c.useLayoutEffect(()=>{r(n=>n??String(i++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs357.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var s=o.useId||(()=>{}),i=0;function d(e){const[t,r]=o.useState(s());return c.useLayoutEffect(()=>{r(n=>n??String(i++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
2
2
  //# sourceMappingURL=index.cjs316.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs370.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs357.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
2
2
  //# sourceMappingURL=index.cjs318.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs311.js"),g=require("./index.cjs370.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs311.js"),g=require("./index.cjs357.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
2
2
  //# sourceMappingURL=index.cjs319.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs32.js","sources":["../src/components/ui/SupportBanner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./SupportBanner.scss\";\r\nimport { ArrowLink, Button, Col } from \"@/components\";\r\nimport { useMemo } from \"react\";\r\nimport { Attachment } from \"@/icons\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype ctaLevel = \"link\" | \"button\" | \"outlineButton\";\r\n\r\ntype SupportBannerProps = {\r\n cta: ctaLevel;\r\n bannerType: \"filled\" | \"outline\";\r\n title: string;\r\n description?: string;\r\n titleTag: HeadingLevel;\r\n href?: string | string[];\r\n icon?: boolean;\r\n linkText?: string | string[];\r\n mainLayout?: \"layout1\" | \"layout2\";\r\n className?: string;\r\n classNameTitle?: string;\r\n classNameDescription?: string;\r\n handleAction?: () => void;\r\n};\r\n\r\nconst CTA_COMPONENTS = {\r\n link: (title: string, href?: string) => (\r\n <ArrowLink href={href}>{title}</ArrowLink>\r\n ),\r\n button: (title: string) => <button className=\"button-style\">{title}</button>,\r\n outlineButton: (\r\n title: string,\r\n _href?: string,\r\n icon?: boolean,\r\n handleAction?: () => void,\r\n ) => (\r\n <Button\r\n size={\"2\"}\r\n textColor=\"primary\"\r\n bg=\"lightblue-a03\"\r\n className={\"w-full \"}\r\n border={\"primary\"}\r\n onClick={handleAction}\r\n >\r\n {icon && <Attachment className={\"mr-x8\"} />}\r\n <p className={\"fs-6 fw-bold\"}>{title}</p>\r\n </Button>\r\n ),\r\n};\r\n\r\nexport const SupportBanner = ({\r\n cta = \"link\",\r\n bannerType = \"outline\",\r\n title,\r\n description = \"\",\r\n titleTag: TitleTag = \"h3\",\r\n href = \"#\",\r\n icon = true,\r\n linkText = \"Vai al supporto\",\r\n mainLayout = \"layout1\",\r\n className = \"\",\r\n classNameTitle = \"\",\r\n classNameDescription = \"\",\r\n handleAction,\r\n}: SupportBannerProps) => {\r\n const renderCTA = useMemo(() => {\r\n if (Array.isArray(href)) {\r\n return href.map((singleHref, index) => {\r\n const singleLinkText = Array.isArray(linkText)\r\n ? linkText[index]\r\n : linkText;\r\n return (\r\n <div key={index} className=\"ui-banner-link\">\r\n {CTA_COMPONENTS[cta](\r\n singleLinkText,\r\n singleHref,\r\n icon,\r\n handleAction,\r\n )}\r\n </div>\r\n );\r\n });\r\n }\r\n if (Array.isArray(linkText)) {\r\n return linkText.map((singleLinkText, index) => {\r\n return (\r\n <div key={index} className=\"ui-banner-link\">\r\n {CTA_COMPONENTS[cta](singleLinkText, href, icon, handleAction)}\r\n </div>\r\n );\r\n });\r\n }\r\n return CTA_COMPONENTS[cta](linkText, href, icon, handleAction);\r\n }, [cta, linkText, href, handleAction]);\r\n\r\n return (\r\n <Col\r\n br={\"x4\"}\r\n gap={\"x16\"}\r\n className={clsx(\r\n className,\r\n bannerType === \"outline\" ? \"ui-outline\" : \"bg-lightblue-a03\",\r\n \"ui-banner shadow \",\r\n )}\r\n >\r\n <TitleTag\r\n className={clsx(\r\n \"ui-banner-title text-slate-20\",\r\n classNameTitle || \"fs-4 fw-bold\",\r\n )}\r\n >\r\n {title}\r\n </TitleTag>\r\n <main\r\n className={clsx(\r\n mainLayout === \"layout1\"\r\n ? \"ui-banner-content-layout1 fs-6 text-secondary justify-content-between \"\r\n : \"ui-banner-content-layout2\",\r\n \"ui-banner-content fs-6 text-secondary w-100\",\r\n )}\r\n >\r\n <div\r\n className={clsx(\r\n classNameDescription,\r\n mainLayout === \"layout1\" ? \"ui-banner-description\" : \"\",\r\n )}\r\n >\r\n {description}\r\n </div>\r\n\r\n <div className={clsx(\"ui-banner-cta\")}>{renderCTA}</div>\r\n </main>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CTA_COMPONENTS","title","href","jsx","ArrowLink","_href","icon","handleAction","jsxs","Button","Attachment","SupportBanner","cta","bannerType","description","TitleTag","linkText","mainLayout","className","classNameTitle","classNameDescription","renderCTA","useMemo","singleHref","index","singleLinkText","Col","clsx"],"mappings":"mUAyBMA,EAAiB,CACrB,KAAM,CAACC,EAAeC,IACnBC,EAAA,kBAAA,IAAAC,EAAA,UAAA,CAAU,KAAAF,EAAa,SAAMD,EAAA,EAEhC,OAASA,2BAAmB,SAAO,CAAA,UAAU,eAAgB,SAAMA,EAAA,EACnE,cAAe,CACbA,EACAI,EACAC,EACAC,IAEAC,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAM,IACN,UAAU,UACV,GAAG,gBACH,UAAW,UACX,OAAQ,UACR,QAASF,EAER,SAAA,CAAQD,GAAAH,EAAAA,kBAAAA,IAACO,EAAAA,WAAW,CAAA,UAAW,OAAS,CAAA,EACxCP,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,eAAiB,SAAMF,CAAA,CAAA,CAAA,CAAA,CAAA,CAG3C,EAEaU,EAAgB,CAAC,CAC5B,IAAAC,EAAM,OACN,WAAAC,EAAa,UACb,MAAAZ,EACA,YAAAa,EAAc,GACd,SAAUC,EAAW,KACrB,KAAAb,EAAO,IACP,KAAAI,EAAO,GACP,SAAAU,EAAW,kBACX,WAAAC,EAAa,UACb,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,qBAAAC,EAAuB,GACvB,aAAAb,CACF,IAA0B,CAClB,MAAAc,EAAYC,EAAAA,QAAQ,IACpB,MAAM,QAAQpB,CAAI,EACbA,EAAK,IAAI,CAACqB,EAAYC,IAAU,CACrC,MAAMC,EAAiB,MAAM,QAAQT,CAAQ,EACzCA,EAASQ,CAAK,EACdR,EACJ,OACGb,EAAAA,kBAAAA,IAAA,MAAA,CAAgB,UAAU,iBACxB,WAAeS,CAAG,EACjBa,EACAF,EACAjB,EACAC,IALMiB,CAOV,CAAA,CAEH,EAEC,MAAM,QAAQR,CAAQ,EACjBA,EAAS,IAAI,CAACS,EAAgBD,IAEhCrB,EAAAA,kBAAAA,IAAA,MAAA,CAAgB,UAAU,iBACxB,SAAeH,EAAAY,CAAG,EAAEa,EAAgBvB,EAAMI,EAAMC,CAAY,CAAA,EADrDiB,CAEV,CAEH,EAEIxB,EAAeY,CAAG,EAAEI,EAAUd,EAAMI,EAAMC,CAAY,EAC5D,CAACK,EAAKI,EAAUd,EAAMK,CAAY,CAAC,EAGpC,OAAAC,EAAA,kBAAA,KAACkB,EAAA,IAAA,CACC,GAAI,KACJ,IAAK,MACL,UAAWC,EAAA,KACTT,EACAL,IAAe,UAAY,aAAe,mBAC1C,mBACF,EAEA,SAAA,CAAAV,EAAA,kBAAA,IAACY,EAAA,CACC,UAAWY,EAAA,KACT,gCACAR,GAAkB,cACpB,EAEC,SAAAlB,CAAA,CACH,EACAO,EAAA,kBAAA,KAAC,OAAA,CACC,UAAWmB,EAAA,KACTV,IAAe,UACX,yEACA,4BACJ,6CACF,EAEA,SAAA,CAAAd,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWwB,EAAA,KACTP,EACAH,IAAe,UAAY,wBAA0B,EACvD,EAEC,SAAAH,CAAA,CACH,0BAEC,MAAI,CAAA,UAAWa,EAAK,KAAA,eAAe,EAAI,SAAUN,CAAA,CAAA,CAAA,CAAA,CAAA,CACpD,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs32.js","sources":["../src/components/ui/SupportBanner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./SupportBanner.scss\";\nimport { ArrowLink, Button, Col } from \"@/components\";\nimport { useMemo } from \"react\";\nimport { Attachment } from \"@/icons\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype ctaLevel = \"link\" | \"button\" | \"outlineButton\";\n\ntype SupportBannerProps = {\n cta: ctaLevel;\n bannerType: \"filled\" | \"outline\";\n title: string;\n description?: string;\n titleTag: HeadingLevel;\n href?: string | string[];\n icon?: boolean;\n linkText?: string | string[];\n mainLayout?: \"layout1\" | \"layout2\";\n className?: string;\n classNameTitle?: string;\n classNameDescription?: string;\n handleAction?: () => void;\n};\n\nconst CTA_COMPONENTS = {\n link: (title: string, href?: string) => (\n <ArrowLink href={href}>{title}</ArrowLink>\n ),\n button: (title: string) => <button className=\"button-style\">{title}</button>,\n outlineButton: (\n title: string,\n _href?: string,\n icon?: boolean,\n handleAction?: () => void,\n ) => (\n <Button\n size={\"2\"}\n textColor=\"primary\"\n bg=\"lightblue-a03\"\n className={\"w-full \"}\n border={\"primary\"}\n onClick={handleAction}\n >\n {icon && <Attachment className={\"mr-x8\"} />}\n <p className={\"fs-6 fw-bold\"}>{title}</p>\n </Button>\n ),\n};\n\nexport const SupportBanner = ({\n cta = \"link\",\n bannerType = \"outline\",\n title,\n description = \"\",\n titleTag: TitleTag = \"h3\",\n href = \"#\",\n icon = true,\n linkText = \"Vai al supporto\",\n mainLayout = \"layout1\",\n className = \"\",\n classNameTitle = \"\",\n classNameDescription = \"\",\n handleAction,\n}: SupportBannerProps) => {\n const renderCTA = useMemo(() => {\n if (Array.isArray(href)) {\n return href.map((singleHref, index) => {\n const singleLinkText = Array.isArray(linkText)\n ? linkText[index]\n : linkText;\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](\n singleLinkText,\n singleHref,\n icon,\n handleAction,\n )}\n </div>\n );\n });\n }\n if (Array.isArray(linkText)) {\n return linkText.map((singleLinkText, index) => {\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](singleLinkText, href, icon, handleAction)}\n </div>\n );\n });\n }\n return CTA_COMPONENTS[cta](linkText, href, icon, handleAction);\n }, [cta, linkText, href, handleAction]);\n\n return (\n <Col\n br={\"x4\"}\n gap={\"x16\"}\n className={clsx(\n className,\n bannerType === \"outline\" ? \"ui-outline\" : \"bg-lightblue-a03\",\n \"ui-banner shadow \",\n )}\n >\n <TitleTag\n className={clsx(\n \"ui-banner-title text-slate-20\",\n classNameTitle || \"fs-4 fw-bold\",\n )}\n >\n {title}\n </TitleTag>\n <main\n className={clsx(\n mainLayout === \"layout1\"\n ? \"ui-banner-content-layout1 fs-6 text-secondary justify-content-between \"\n : \"ui-banner-content-layout2\",\n \"ui-banner-content fs-6 text-secondary w-100\",\n )}\n >\n <div\n className={clsx(\n classNameDescription,\n mainLayout === \"layout1\" ? \"ui-banner-description\" : \"\",\n )}\n >\n {description}\n </div>\n\n <div className={clsx(\"ui-banner-cta\")}>{renderCTA}</div>\n </main>\n </Col>\n );\n};\n"],"names":["CTA_COMPONENTS","title","href","jsx","ArrowLink","_href","icon","handleAction","jsxs","Button","Attachment","SupportBanner","cta","bannerType","description","TitleTag","linkText","mainLayout","className","classNameTitle","classNameDescription","renderCTA","useMemo","singleHref","index","singleLinkText","Col","clsx"],"mappings":"mUAyBMA,EAAiB,CACrB,KAAM,CAACC,EAAeC,IACnBC,EAAA,kBAAA,IAAAC,EAAA,UAAA,CAAU,KAAAF,EAAa,SAAMD,EAAA,EAEhC,OAASA,2BAAmB,SAAO,CAAA,UAAU,eAAgB,SAAMA,EAAA,EACnE,cAAe,CACbA,EACAI,EACAC,EACAC,IAEAC,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAM,IACN,UAAU,UACV,GAAG,gBACH,UAAW,UACX,OAAQ,UACR,QAASF,EAER,SAAA,CAAQD,GAAAH,EAAAA,kBAAAA,IAACO,EAAAA,WAAW,CAAA,UAAW,OAAS,CAAA,EACxCP,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,eAAiB,SAAMF,CAAA,CAAA,CAAA,CAAA,CAAA,CAG3C,EAEaU,EAAgB,CAAC,CAC5B,IAAAC,EAAM,OACN,WAAAC,EAAa,UACb,MAAAZ,EACA,YAAAa,EAAc,GACd,SAAUC,EAAW,KACrB,KAAAb,EAAO,IACP,KAAAI,EAAO,GACP,SAAAU,EAAW,kBACX,WAAAC,EAAa,UACb,UAAAC,EAAY,GACZ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}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs320.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs320.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"gFACA,SAASA,EAAqBC,EAAsBC,EAAiB,CAAE,yBAAAC,EAA2B,EAAM,EAAG,GAAI,CAC7G,OAAO,SAAqBC,EAAO,CAEjC,GADAH,GAAA,MAAAA,EAAuBG,GACnBD,IAA6B,IAAS,CAACC,EAAM,iBAC/C,OAAOF,GAAA,YAAAA,EAAkBE,EAE5B,CACH","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs320.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs321.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs321.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs321.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("react-dom"),f=require("./index.cjs329.js"),p=require("./index.cjs371.js"),m=require("./index.cjs173.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=P(l);var b="Portal",i=c.forwardRef((e,r)=>{var a;const{container:t,...o}=e,[u,s]=c.useState(!1);p.useLayoutEffect(()=>s(!0),[]);const n=t||u&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return n?d.createPortal(m.jsxRuntimeExports.jsx(f.Primitive.div,{...o,ref:r}),n):null});i.displayName=b;exports.Portal=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
2
2
  //# sourceMappingURL=index.cjs327.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs327.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PORTAL_NAME","Portal","React","props","forwardedRef","containerProp","portalProps","mounted","setMounted","useLayoutEffect","container","_a","ReactDOM","jsx","Primitive"],"mappings":"ufAQA,IAAIA,EAAc,SACdC,EAASC,EAAM,WAAW,CAACC,EAAOC,IAAiB,OACrD,KAAM,CAAE,UAAWC,EAAe,GAAGC,CAAa,EAAGH,EAC/C,CAACI,EAASC,CAAU,EAAIN,EAAM,SAAS,EAAK,EAClDO,EAAAA,gBAAgB,IAAMD,EAAW,EAAI,EAAG,CAAA,CAAE,EAC1C,MAAME,EAAYL,GAAiBE,KAAWI,EAAA,mCAAY,WAAZ,YAAAA,EAAsB,MACpE,OAAOD,EAAYE,EAAS,aAA6BC,EAAG,kBAAA,IAACC,EAAS,UAAC,IAAK,CAAE,GAAGR,EAAa,IAAKF,CAAc,CAAA,EAAGM,CAAS,EAAI,IACnI,CAAC,EACDT,EAAO,YAAcD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs327.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"gFACA,SAASA,EAAqBC,EAAsBC,EAAiB,CAAE,yBAAAC,EAA2B,EAAM,EAAG,GAAI,CAC7G,OAAO,SAAqBC,EAAO,CAEjC,GADAH,GAAA,MAAAA,EAAuBG,GACnBD,IAA6B,IAAS,CAACC,EAAM,iBAC/C,OAAOF,GAAA,YAAAA,EAAkBE,EAE5B,CACH","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs321.js"),g=require("./index.cjs371.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
2
2
  //# sourceMappingURL=index.cjs328.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs328.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\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}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"icASA,SAASA,EAAgBC,EAAcC,EAAS,CAC9C,OAAOC,EAAM,WAAW,CAACC,EAAOC,IACZH,EAAQE,CAAK,EAAEC,CAAK,GAClBD,EACnBH,CAAY,CACjB,CAGG,IAACK,EAAYC,GAAU,CACxB,KAAM,CAAE,QAAAC,EAAS,SAAAC,CAAQ,EAAKF,EACxBG,EAAWC,EAAYH,CAAO,EAC9BI,EAAQ,OAAOH,GAAa,WAAaA,EAAS,CAAE,QAASC,EAAS,SAAW,CAAA,EAAIG,EAAO,SAAS,KAAKJ,CAAQ,EAClHK,EAAMC,EAAAA,gBAAgBL,EAAS,IAAKM,EAAcJ,CAAK,CAAC,EAE9D,OADmB,OAAOH,GAAa,YAClBC,EAAS,UAAYG,EAAO,aAAaD,EAAO,CAAE,IAAAE,CAAK,CAAA,EAAI,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 {"version":3,"file":"index.cjs328.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACb,CAAK,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAS,EAETR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAEhC,CACO,CAEJ,CACH,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs333.js"),p=require("./index.cjs173.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs173.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=P(j);function g(e,r){const t=i.createContext(r),s=c=>{const{children:n,...o}=c,u=i.useMemo(()=>o,Object.values(o));return b.jsxRuntimeExports.jsx(t.Provider,{value:u,children:n})};s.displayName=e+"Provider";function a(c){const n=i.useContext(t);if(n)return n;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[s,a]}function _(e,r=[]){let t=[];function s(c,n){const o=i.createContext(n),u=t.length;t=[...t,n];const f=d=>{var S;const{scope:x,children:m,...p}=d,l=((S=x==null?void 0:x[e])==null?void 0:S[u])||o,C=i.useMemo(()=>p,Object.values(p));return b.jsxRuntimeExports.jsx(l.Provider,{value:C,children:m})};f.displayName=c+"Provider";function v(d,x){var l;const m=((l=x==null?void 0:x[e])==null?void 0:l[u])||o,p=i.useContext(m);if(p)return p;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${c}\``)}return[f,v]}const a=()=>{const c=t.map(n=>i.createContext(n));return function(o){const u=(o==null?void 0:o[e])||c;return i.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return a.scopeName=e,[s,h(a,...r)]}function h(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const n=s.reduce((o,{useScope:u,scopeName:f})=>{const d=u(c)[`__scope${f}`];return{...o,...d}},{});return i.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return t.scopeName=r.scopeName,t}exports.createContext=g;exports.createContextScope=_;
2
2
  //# sourceMappingURL=index.cjs329.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs329.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":"+dAKA,IAAIA,EAAQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,IACF,EACIC,EAAYD,EAAM,OAAO,CAACE,EAAWC,IAAS,CAChD,MAAMC,EAAOC,EAAU,WAAC,aAAaF,CAAI,EAAE,EACrCG,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACrD,KAAM,CAAE,QAAAC,EAAS,GAAGC,CAAc,EAAKH,EACjCI,EAAOF,EAAUN,EAAOD,EAC9B,OAAI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,CAAC,EAAI,IAEZU,EAAAA,kBAAAA,IAAID,EAAM,CAAE,GAAGD,EAAgB,IAAKF,EAAc,CAC7E,CAAG,EACD,OAAAH,EAAK,YAAc,aAAaH,CAAI,GAC7B,CAAE,GAAGD,EAAW,CAACC,CAAI,EAAGG,CAAM,CACvC,EAAG,CAAE,CAAA,EACL,SAASQ,EAA4BC,EAAQC,EAAO,CAC9CD,GAAQE,EAAS,UAAU,IAAMF,EAAO,cAAcC,CAAK,CAAC,CAClE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs329.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"kaAGA,SAASA,EAAeC,EAAmBC,EAAgB,CACzD,MAAMC,EAAUC,EAAM,cAAcF,CAAc,EAC5CG,EAAYC,GAAU,CAC1B,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAO,EAAKF,EAC3BG,EAAQL,EAAM,QAAQ,IAAMI,EAAS,OAAO,OAAOA,CAAO,CAAC,EACjE,OAAuBE,EAAAA,kBAAAA,IAAIP,EAAQ,SAAU,CAAE,MAAAM,EAAO,SAAAF,CAAQ,CAAE,CACjE,EACDF,EAAS,YAAcJ,EAAoB,WAC3C,SAASU,EAAYC,EAAc,CACjC,MAAMJ,EAAUJ,EAAM,WAAWD,CAAO,EACxC,GAAIK,EAAS,OAAOA,EACpB,GAAIN,IAAmB,OAAQ,OAAOA,EACtC,MAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI,CACtF,CACE,MAAO,CAACI,EAAUM,CAAW,CAC/B,CACA,SAASE,EAAmBC,EAAWC,EAAyB,GAAI,CAClE,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B,CAAC,CACtF,CACA,SAASU,KAAwBC,EAAQ,CACvC,MAAMC,EAAYD,EAAO,CAAC,EAC1B,GAAIA,EAAO,SAAW,EAAG,OAAOC,EAChC,MAAML,EAAc,IAAM,CACxB,MAAMM,EAAaF,EAAO,IAAKG,IAAkB,CAC/C,SAAUA,EAAc,EACxB,UAAWA,EAAa,SAC9B,EAAM,EACF,OAAO,SAA2BC,EAAgB,CAChD,MAAMC,EAAaH,EAAW,OAAO,CAACI,EAAa,CAAE,SAAAC,EAAU,UAAAnB,KAAgB,CAE7E,MAAMoB,EADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE,EACrD,MAAO,CAAE,GAAGkB,EAAa,GAAGE,CAAc,CAC3C,EAAE,EAAE,EACL,OAAO9B,EAAM,QAAQ,KAAO,CAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,EAAGI,CAAU,GAAK,CAACA,CAAU,CAAC,CAC7F,CACF,EACD,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\r\nimport clsx from \"clsx\";\r\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\r\nimport { Loader, Row } from \"@/components\";\r\n\r\ntype TabItem = {\r\n label: string;\r\n disabled?: boolean;\r\n};\r\n\r\ntype ActionItem = PropsWithChildren<{\r\n label: string;\r\n icon: ReactNode;\r\n onClick: () => void;\r\n loading?: boolean;\r\n}>;\r\n\r\ntype TabsGlossaryProps = {\r\n CTA?: \"link\" | \"primary\";\r\n navigationItems: TabItem[];\r\n activeIndex: number;\r\n onTabChange: (index: number) => void;\r\n actions?: ActionItem[];\r\n children?: ReactNode;\r\n // onDownload?: () => void;\r\n // onAdd?: () => void;\r\n // downloadAllLabel?: string;\r\n // addDocumentLabel?: string;\r\n // actionType?: \"download\" | \"add\" | null;\r\n};\r\n\r\nexport const TabsGlossary = ({\r\n CTA = \"link\",\r\n navigationItems,\r\n children,\r\n activeIndex = 0,\r\n onTabChange,\r\n actions = [],\r\n // onDownload,\r\n // onAdd,\r\n // downloadAllLabel = \"Scarica tutti\",\r\n // addDocumentLabel = \"Aggiungi documento\",\r\n // actionType,\r\n}: TabsGlossaryProps) => {\r\n const [active, setActive] = useState(activeIndex);\r\n\r\n // const isDownloading = loading && actionType === \"download\";\r\n // const isAdding = loading && actionType === \"add\";\r\n\r\n return (\r\n <div>\r\n <div className={clsx(\"ui-document-container-tabs\")}>\r\n <nav aria-label=\"Menu di navigazione\">\r\n <Row\r\n gap={\"x20\"}\r\n fw={\"semibold\"}\r\n text={\"secondary\"}\r\n className={clsx(\r\n \"ui-document-container-tabs-nav list-style-none ui-tabs\",\r\n )}\r\n >\r\n {navigationItems.map((item, index) => {\r\n return (\r\n <li\r\n key={index}\r\n className={clsx(\r\n !item.disabled ? \"cursor-pointer\" : \"text-muted\",\r\n \"ui-tab\",\r\n active === index && \"text-primary ui-active-tab-glossary\",\r\n )}\r\n onClick={() => {\r\n if (!item.disabled) {\r\n setActive(index);\r\n onTabChange(index);\r\n }\r\n }}\r\n >\r\n <a className={\"text-decoration-none\"}>{item.label}</a>\r\n </li>\r\n );\r\n })}\r\n </Row>\r\n </nav>\r\n {children}\r\n {CTA === \"link\" && (\r\n <nav>\r\n <ul className=\"list-style-none base-row gap-x20 fw-semibold text-primary fs-8 pb-x8\">\r\n {actions.map((action, index) => (\r\n <React.Fragment key={index}>\r\n <li\r\n className={clsx(\r\n !action.loading && \"cursor-pointer\",\r\n \"text-primary base-row justify-content-center align-items-center gap-x8\",\r\n )}\r\n onClick={() => !action.loading && action.onClick()}\r\n >\r\n {action.icon}\r\n <p>{action.label}</p>\r\n {action.loading && <Loader loading={action.loading} />}\r\n </li>\r\n {index < actions.length - 1 && (\r\n <li>\r\n <span className=\"ui-divider\"></span>\r\n </li>\r\n )}\r\n </React.Fragment>\r\n ))}\r\n </ul>\r\n </nav>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["TabsGlossary","CTA","navigationItems","children","activeIndex","onTabChange","actions","active","setActive","useState","jsxs","clsx","jsx","Row","item","index","action","React","Loader"],"mappings":"qQA+BaA,EAAe,CAAC,CAC3B,IAAAC,EAAM,OACN,gBAAAC,EACA,SAAAC,EACA,YAAAC,EAAc,EACd,YAAAC,EACA,QAAAC,EAAU,CAAA,CAMZ,IAAyB,CACvB,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAAA,SAASL,CAAW,EAKhD,+BACG,MACC,CAAA,SAAAM,EAAA,kBAAA,KAAC,OAAI,UAAWC,EAAAA,KAAK,4BAA4B,EAC/C,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,aAAW,sBACd,SAAAA,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,IAAK,MACL,GAAI,WACJ,KAAM,YACN,UAAWF,EAAA,KACT,wDACF,EAEC,SAAgBT,EAAA,IAAI,CAACY,EAAMC,IAExBH,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWD,EAAA,KACRG,EAAK,SAA8B,aAAnB,iBACjB,SACAP,IAAWQ,GAAS,qCACtB,EACA,QAAS,IAAM,CACRD,EAAK,WACRN,EAAUO,CAAK,EACfV,EAAYU,CAAK,EAErB,EAEA,SAACH,EAAAA,kBAAAA,IAAA,IAAA,CAAE,UAAW,uBAAyB,WAAK,KAAM,CAAA,CAAA,EAb7CG,CAcP,CAEH,CAAA,CAAA,EAEL,EACCZ,EACAF,IAAQ,QACPW,EAAAA,kBAAAA,IAAC,MACC,CAAA,SAAAA,EAAA,kBAAA,IAAC,MAAG,UAAU,uEACX,SAAQN,EAAA,IAAI,CAACU,EAAQD,IACnBL,EAAAA,kBAAAA,KAAAO,EAAM,SAAN,CACC,SAAA,CAAAP,EAAA,kBAAA,KAAC,KAAA,CACC,UAAWC,EAAA,KACT,CAACK,EAAO,SAAW,iBACnB,wEACF,EACA,QAAS,IAAM,CAACA,EAAO,SAAWA,EAAO,QAAQ,EAEhD,SAAA,CAAOA,EAAA,KACRJ,EAAAA,kBAAAA,IAAC,IAAG,CAAA,SAAAI,EAAO,KAAM,CAAA,EAChBA,EAAO,SAAWJ,wBAACM,EAAAA,OAAO,CAAA,QAASF,EAAO,OAAS,CAAA,CAAA,CAAA,CACtD,EACCD,EAAQT,EAAQ,OAAS,GACxBM,EAAA,kBAAA,IAAC,MACC,SAACA,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,YAAa,CAAA,CAC/B,CAAA,CAAA,GAfiBG,CAiBrB,CACD,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAEJ,CACF,CAAA,CAEJ"}
1
+ {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\nimport clsx from \"clsx\";\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\nimport { Loader, Row } from \"@/components\";\n\ntype TabItem = {\n label: string;\n disabled?: boolean;\n};\n\ntype ActionItem = PropsWithChildren<{\n label: string;\n icon: ReactNode;\n onClick: () => void;\n loading?: boolean;\n}>;\n\ntype TabsGlossaryProps = {\n CTA?: \"link\" | \"primary\";\n navigationItems: TabItem[];\n activeIndex: number;\n onTabChange: (index: number) => void;\n actions?: ActionItem[];\n children?: ReactNode;\n // onDownload?: () => void;\n // onAdd?: () => void;\n // downloadAllLabel?: string;\n // addDocumentLabel?: string;\n // actionType?: \"download\" | \"add\" | null;\n};\n\nexport const TabsGlossary = ({\n CTA = \"link\",\n navigationItems,\n children,\n activeIndex = 0,\n onTabChange,\n actions = [],\n // onDownload,\n // onAdd,\n // downloadAllLabel = \"Scarica tutti\",\n // addDocumentLabel = \"Aggiungi documento\",\n // actionType,\n}: TabsGlossaryProps) => {\n const [active, setActive] = useState(activeIndex);\n\n // const isDownloading = loading && actionType === \"download\";\n // const isAdding = loading && actionType === \"add\";\n\n return (\n <div>\n <div className={clsx(\"ui-document-container-tabs\")}>\n <nav aria-label=\"Menu di navigazione\">\n <Row\n gap={\"x20\"}\n fw={\"semibold\"}\n text={\"secondary\"}\n className={clsx(\n \"ui-document-container-tabs-nav list-style-none ui-tabs\",\n )}\n >\n {navigationItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n !item.disabled ? \"cursor-pointer\" : \"text-muted\",\n \"ui-tab\",\n active === index && \"text-primary ui-active-tab-glossary\",\n )}\n onClick={() => {\n if (!item.disabled) {\n setActive(index);\n onTabChange(index);\n }\n }}\n >\n <a className={\"text-decoration-none\"}>{item.label}</a>\n </li>\n );\n })}\n </Row>\n </nav>\n {children}\n {CTA === \"link\" && (\n <nav>\n <ul className=\"list-style-none base-row gap-x20 fw-semibold text-primary fs-8 pb-x8\">\n {actions.map((action, index) => (\n <React.Fragment key={index}>\n <li\n className={clsx(\n !action.loading && \"cursor-pointer\",\n \"text-primary base-row justify-content-center align-items-center gap-x8\",\n )}\n onClick={() => !action.loading && action.onClick()}\n >\n {action.icon}\n <p>{action.label}</p>\n {action.loading && <Loader loading={action.loading} />}\n </li>\n {index < actions.length - 1 && (\n <li>\n <span className=\"ui-divider\"></span>\n </li>\n )}\n </React.Fragment>\n ))}\n </ul>\n </nav>\n )}\n </div>\n </div>\n );\n};\n"],"names":["TabsGlossary","CTA","navigationItems","children","activeIndex","onTabChange","actions","active","setActive","useState","jsxs","clsx","jsx","Row","item","index","action","React","Loader"],"mappings":"qQA+BaA,EAAe,CAAC,CAC3B,IAAAC,EAAM,OACN,gBAAAC,EACA,SAAAC,EACA,YAAAC,EAAc,EACd,YAAAC,EACA,QAAAC,EAAU,CAAA,CAMZ,IAAyB,CACvB,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAAA,SAASL,CAAW,EAKhD,+BACG,MACC,CAAA,SAAAM,EAAA,kBAAA,KAAC,OAAI,UAAWC,EAAAA,KAAK,4BAA4B,EAC/C,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,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ports,Symbol.toStringTag,{value:"Module"});const c=require("react");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=a(c);var r=0;function d(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??u()),document.body.insertAdjacentElement("beforeend",e[1]??u()),r++,()=>{r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),r--}},[])}function u(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}exports.useFocusGuards=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs362.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
2
2
  //# sourceMappingURL=index.cjs330.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs330.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-guards/src/focus-guards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.outline = \"none\";\n element.style.opacity = \"0\";\n element.style.position = \"fixed\";\n element.style.pointerEvents = \"none\";\n return element;\n}\nvar Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["count","useFocusGuards","React","edgeGuards","createFocusGuard","node","element"],"mappings":"mYAIA,IAAIA,EAAQ,EAKZ,SAASC,GAAiB,CACxBC,EAAM,UAAU,IAAM,CACpB,MAAMC,EAAa,SAAS,iBAAiB,0BAA0B,EACvE,gBAAS,KAAK,sBAAsB,aAAcA,EAAW,CAAC,GAAKC,GAAkB,EACrF,SAAS,KAAK,sBAAsB,YAAaD,EAAW,CAAC,GAAKC,GAAkB,EACpFJ,IACO,IAAM,CACPA,IAAU,GACZ,SAAS,iBAAiB,0BAA0B,EAAE,QAASK,GAASA,EAAK,QAAQ,EAEvFL,GACD,CACF,EAAE,EAAE,CACP,CACA,SAASI,GAAmB,CAC1B,MAAME,EAAU,SAAS,cAAc,MAAM,EAC7C,OAAAA,EAAQ,aAAa,yBAA0B,EAAE,EACjDA,EAAQ,SAAW,EACnBA,EAAQ,MAAM,QAAU,OACxBA,EAAQ,MAAM,QAAU,IACxBA,EAAQ,MAAM,SAAW,QACzBA,EAAQ,MAAM,cAAgB,OACvBA,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs330.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":"kaAGA,IAAIA,EAAaC,EAAM,UAAU,KAAM,EAAC,SAAU,CAAA,IAAM,IAAA,IACpDC,EAAQ,EACZ,SAASC,EAAMC,EAAiB,CAC9B,KAAM,CAACC,EAAIC,CAAK,EAAIL,EAAM,SAASD,GAAY,EAC/CO,OAAAA,EAAAA,gBAAgB,IAAM,CACED,EAAOE,GAAYA,GAAW,OAAON,GAAO,CAAC,CACvE,EAAK,CAACE,CAAe,CAAC,EACbA,IAAoBC,EAAK,SAASA,CAAE,GAAK,GAClD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("./index.cjs378.js"),l=require("react"),s=require("./index.cjs379.js"),i=require("./index.cjs380.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=u(l);var n=o.forwardRef(function(e,t){return o.createElement(s.RemoveScroll,a.__assign({},e,{ref:t,sideCar:i}))});n.classNames=s.RemoveScroll.classNames;module.exports=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs363.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
2
2
  //# sourceMappingURL=index.cjs331.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs331.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":"6ZAIG,IAACA,EAAoBC,EAAM,WAAW,SAAUC,EAAOC,EAAK,CAAE,OAAQF,EAAM,cAAcG,EAAAA,aAAcC,EAAAA,SAAS,CAAE,EAAEH,EAAO,CAAE,IAAKC,EAAK,QAASG,EAAS,CAAC,CAAK,CAAA,EACnKN,EAAkB,WAAaI,EAAAA,aAAa","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs331.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":"kaAGA,SAASA,EAAqB,CAC5B,KAAAC,EACA,YAAAC,EACA,SAAAC,EAAW,IAAM,CACnB,CACA,EAAG,CACD,KAAM,CAACC,EAAkBC,CAAmB,EAAIC,EAAqB,CAAE,YAAAJ,EAAa,SAAAC,EAAU,EACxFI,EAAeN,IAAS,OACxBO,EAAQD,EAAeN,EAAOG,EAC9BK,EAAeC,EAAc,eAACP,CAAQ,EACtCQ,EAAWC,EAAM,YACpBC,GAAc,CACb,GAAIN,EAAc,CAEhB,MAAMO,EAAS,OAAOD,GAAc,WADrBA,EACyCZ,CAAI,EAAIY,EAC5DC,IAAWb,GAAMQ,EAAaK,CAAM,CAChD,MACQT,EAAoBQ,CAAS,CAEhC,EACD,CAACN,EAAcN,EAAMI,EAAqBI,CAAY,CACvD,EACD,MAAO,CAACD,EAAOG,CAAQ,CACzB,CACA,SAASL,EAAqB,CAC5B,YAAAJ,EACA,SAAAC,CACF,EAAG,CACD,MAAMY,EAAoBH,EAAM,SAASV,CAAW,EAC9C,CAACM,CAAK,EAAIO,EACVC,EAAeJ,EAAM,OAAOJ,CAAK,EACjCC,EAAeC,EAAc,eAACP,CAAQ,EAC5CS,OAAAA,EAAM,UAAU,IAAM,CAChBI,EAAa,UAAYR,IAC3BC,EAAaD,CAAK,EAClBQ,EAAa,QAAUR,EAE1B,EAAE,CAACA,EAAOQ,EAAcP,CAAY,CAAC,EAC/BM,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("./index.cjs327.js"),p=require("./index.cjs336.js"),R=require("./index.cjs328.js"),x=require("./index.cjs363.js"),H=require("./index.cjs364.js"),w=require("./index.cjs173.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...v}=e,c=o.useContext(T),[u,F]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=o.useState({}),W=R.useComposedRefs(t,i=>F(i)),m=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=m.indexOf(_),P=u?m.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,D=P>=A,I=Y(i=>{const E=i.target,C=[...c.branches].some(b=>b.contains(E));!D||C||(r==null||r(i),l==null||l(i),i.defaultPrevented||d==null||d())},f),O=G(i=>{const E=i.target;[...c.branches].some(b=>b.contains(E))||(a==null||a(i),l==null||l(i),i.defaultPrevented||d==null||d())},f);return H.useEscapeKeydown(i=>{P===c.layers.size-1&&(s==null||s(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},f),o.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=L)}},[u,f,n,c]),o.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),o.useEffect(()=>{const i=()=>N({});return document.addEventListener(h,i),()=>document.removeEventListener(h,i)},[]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:W,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:y.composeEventHandlers(e.onFocusCapture,O.onFocusCapture),onBlurCapture:y.composeEventHandlers(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:y.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})});S.displayName=z;var X="DismissableLayerBranch",B=o.forwardRef((e,t)=>{const n=o.useContext(T),s=o.useRef(null),r=R.useComposedRefs(t,s);return o.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:r})});B.displayName=X;function Y(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const a=d=>{if(d.target&&!s.current){let v=function(){j(M,n,c,{discrete:!0})};const c={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function G(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1);return o.useEffect(()=>{const r=a=>{a.target&&!s.current&&j($,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function j(e,t,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?p.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
2
  //# sourceMappingURL=index.cjs332.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs332.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,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,QACxBC,EAAY,CAAE,EAErB,CACL,EAQW0B,EAAa,SAAU9B,EAAgBe,EAAYC,EAAY,CAClEA,IAAe,SAAUA,EAAa,oBAC1C,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
+ {"version":3,"file":"index.cjs332.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"6jBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,GAChC,CAAC,EACGC,EAAmBD,E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@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),m=require("./index.cjs321.js"),p=require("./index.cjs173.js");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=g(y);function S(e){const t=b(e),r=i.forwardRef((n,o)=>{const{children:l,...c}=n,s=i.Children.toArray(l),u=s.find(E);if(u){const a=u.props.children,d=s.map(f=>f===u?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:f);return p.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i.isValidElement(a)?i.cloneElement(a,void 0,d):null})}return p.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l})});return r.displayName=`${e}.Slot`,r}function b(e){const t=i.forwardRef((r,n)=>{const{children:o,...l}=r;if(i.isValidElement(o)){const c=x(o),s=R(l,o.props);return o.type!==i.Fragment&&(s.ref=n?m.composeRefs(n,c):c),i.cloneElement(o,s)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j=Symbol("radix.slottable");function E(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j}function R(e,t){const r={...t};for(const n in t){const o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...s)=>{l(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...l}:n==="className"&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}function x(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.createSlot=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react"),x=require("./index.cjs328.js"),A=require("./index.cjs336.js"),O=require("./index.cjs363.js"),k=require("./index.cjs173.js");function w(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const f=w(U);var F="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},K="FocusScope",C=f.forwardRef((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:p,onUnmountAutoFocus:I,...L}=e,[s,P]=f.useState(null),E=O.useCallbackRef(p),v=O.useCallbackRef(I),b=f.useRef(null),_=x.useComposedRefs(n,u=>P(u)),a=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let u=function(i){if(a.paused||!s)return;const c=i.target;s.contains(c)?b.current=c:d(b.current,{select:!0})},l=function(i){if(a.paused||!s)return;const c=i.relatedTarget;c!==null&&(s.contains(c)||d(b.current,{select:!0}))},r=function(i){if(document.activeElement===document.body)for(const T of i)T.removedNodes.length>0&&d(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",l);const m=new MutationObserver(r);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",l),m.disconnect()}}},[o,s,a.paused]),f.useEffect(()=>{if(s){N.add(a);const u=document.activeElement;if(!s.contains(u)){const r=new CustomEvent(F,S);s.addEventListener(F,E),s.dispatchEvent(r),r.defaultPrevented||(j(W(R(s)),{select:!0}),document.activeElement===u&&d(s))}return()=>{s.removeEventListener(F,E),setTimeout(()=>{const r=new CustomEvent(y,S);s.addEventListener(y,v),s.dispatchEvent(r),r.defaultPrevented||d(u??document.body,{select:!0}),s.removeEventListener(y,v),N.remove(a)},0)}}},[s,E,v,a]);const M=f.useCallback(u=>{if(!t&&!o||a.paused)return;const l=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,r=document.activeElement;if(l&&r){const m=u.currentTarget,[i,c]=D(m);i&&c?!u.shiftKey&&r===c?(u.preventDefault(),t&&d(i,{select:!0})):u.shiftKey&&r===i&&(u.preventDefault(),t&&d(c,{select:!0})):r===m&&u.preventDefault()}},[t,o,a.paused]);return k.jsxRuntimeExports.jsx(A.Primitive.div,{tabIndex:-1,...L,ref:_,onKeyDown:M})});C.displayName=K;function j(e,{select:n=!1}={}){const t=document.activeElement;for(const o of e)if(d(o,{select:n}),document.activeElement!==t)return}function D(e){const n=R(e),t=h(n,e),o=h(n.reverse(),e);return[t,o]}function R(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const p=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||p?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function h(e,n){for(const t of e)if(!q(t,{upTo:n}))return t}function q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function d(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&H(e)&&n&&e.select()}}var N=V();function V(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=g(e,n),e.unshift(n)},remove(n){var t;e=g(e,n),(t=e[0])==null||t.resume()}}}function g(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function W(e){return e.filter(n=>n.tagName!=="A")}exports.FocusScope=C;
2
2
  //# sourceMappingURL=index.cjs333.js.map