@anoki/fse-ui 1.0.427 → 1.0.429

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 (647) hide show
  1. package/dist/components/ui/CardDoctor/CardDoctor.css +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.cjs10.js +1 -1
  4. package/dist/index.cjs10.js.map +1 -1
  5. package/dist/index.cjs100.js +1 -1
  6. package/dist/index.cjs100.js.map +1 -1
  7. package/dist/index.cjs101.js +1 -1
  8. package/dist/index.cjs101.js.map +1 -1
  9. package/dist/index.cjs102.js +1 -1
  10. package/dist/index.cjs102.js.map +1 -1
  11. package/dist/index.cjs103.js +1 -1
  12. package/dist/index.cjs103.js.map +1 -1
  13. package/dist/index.cjs104.js +1 -1
  14. package/dist/index.cjs104.js.map +1 -1
  15. package/dist/index.cjs105.js +1 -1
  16. package/dist/index.cjs105.js.map +1 -1
  17. package/dist/index.cjs106.js +1 -1
  18. package/dist/index.cjs106.js.map +1 -1
  19. package/dist/index.cjs107.js +1 -1
  20. package/dist/index.cjs107.js.map +1 -1
  21. package/dist/index.cjs108.js +1 -1
  22. package/dist/index.cjs108.js.map +1 -1
  23. package/dist/index.cjs109.js +1 -1
  24. package/dist/index.cjs109.js.map +1 -1
  25. package/dist/index.cjs11.js.map +1 -1
  26. package/dist/index.cjs110.js +1 -1
  27. package/dist/index.cjs110.js.map +1 -1
  28. package/dist/index.cjs111.js +1 -1
  29. package/dist/index.cjs111.js.map +1 -1
  30. package/dist/index.cjs112.js +1 -1
  31. package/dist/index.cjs112.js.map +1 -1
  32. package/dist/index.cjs113.js +1 -1
  33. package/dist/index.cjs113.js.map +1 -1
  34. package/dist/index.cjs114.js +1 -1
  35. package/dist/index.cjs114.js.map +1 -1
  36. package/dist/index.cjs115.js +1 -1
  37. package/dist/index.cjs115.js.map +1 -1
  38. package/dist/index.cjs116.js +1 -1
  39. package/dist/index.cjs116.js.map +1 -1
  40. package/dist/index.cjs117.js +1 -1
  41. package/dist/index.cjs117.js.map +1 -1
  42. package/dist/index.cjs118.js +1 -1
  43. package/dist/index.cjs118.js.map +1 -1
  44. package/dist/index.cjs119.js.map +1 -1
  45. package/dist/index.cjs12.js.map +1 -1
  46. package/dist/index.cjs120.js.map +1 -1
  47. package/dist/index.cjs121.js +1 -1
  48. package/dist/index.cjs121.js.map +1 -1
  49. package/dist/index.cjs122.js +1 -1
  50. package/dist/index.cjs122.js.map +1 -1
  51. package/dist/index.cjs123.js +1 -1
  52. package/dist/index.cjs123.js.map +1 -1
  53. package/dist/index.cjs124.js +1 -1
  54. package/dist/index.cjs124.js.map +1 -1
  55. package/dist/index.cjs125.js +1 -1
  56. package/dist/index.cjs125.js.map +1 -1
  57. package/dist/index.cjs126.js +1 -1
  58. package/dist/index.cjs126.js.map +1 -1
  59. package/dist/index.cjs127.js +1 -1
  60. package/dist/index.cjs127.js.map +1 -1
  61. package/dist/index.cjs128.js +1 -1
  62. package/dist/index.cjs128.js.map +1 -1
  63. package/dist/index.cjs129.js +1 -1
  64. package/dist/index.cjs129.js.map +1 -1
  65. package/dist/index.cjs13.js.map +1 -1
  66. package/dist/index.cjs130.js +1 -1
  67. package/dist/index.cjs130.js.map +1 -1
  68. package/dist/index.cjs131.js +1 -1
  69. package/dist/index.cjs131.js.map +1 -1
  70. package/dist/index.cjs132.js +1 -1
  71. package/dist/index.cjs132.js.map +1 -1
  72. package/dist/index.cjs133.js.map +1 -1
  73. package/dist/index.cjs134.js +1 -1
  74. package/dist/index.cjs134.js.map +1 -1
  75. package/dist/index.cjs135.js +1 -1
  76. package/dist/index.cjs135.js.map +1 -1
  77. package/dist/index.cjs136.js +1 -1
  78. package/dist/index.cjs136.js.map +1 -1
  79. package/dist/index.cjs137.js +1 -1
  80. package/dist/index.cjs137.js.map +1 -1
  81. package/dist/index.cjs138.js +1 -1
  82. package/dist/index.cjs138.js.map +1 -1
  83. package/dist/index.cjs139.js +1 -1
  84. package/dist/index.cjs139.js.map +1 -1
  85. package/dist/index.cjs14.js.map +1 -1
  86. package/dist/index.cjs140.js +1 -1
  87. package/dist/index.cjs140.js.map +1 -1
  88. package/dist/index.cjs141.js.map +1 -1
  89. package/dist/index.cjs142.js +1 -1
  90. package/dist/index.cjs142.js.map +1 -1
  91. package/dist/index.cjs143.js +1 -1
  92. package/dist/index.cjs143.js.map +1 -1
  93. package/dist/index.cjs147.js +1 -1
  94. package/dist/index.cjs147.js.map +1 -1
  95. package/dist/index.cjs15.js.map +1 -1
  96. package/dist/index.cjs156.js +1 -1
  97. package/dist/index.cjs156.js.map +1 -1
  98. package/dist/index.cjs16.js +1 -1
  99. package/dist/index.cjs16.js.map +1 -1
  100. package/dist/index.cjs160.js +1 -1
  101. package/dist/index.cjs160.js.map +1 -1
  102. package/dist/index.cjs17.js.map +1 -1
  103. package/dist/index.cjs170.js +1 -1
  104. package/dist/index.cjs170.js.map +1 -1
  105. package/dist/index.cjs171.js +2 -0
  106. package/dist/index.cjs171.js.map +1 -0
  107. package/dist/index.cjs173.js.map +1 -1
  108. package/dist/index.cjs176.js.map +1 -1
  109. package/dist/index.cjs18.js.map +1 -1
  110. package/dist/index.cjs180.js +1 -1
  111. package/dist/index.cjs180.js.map +1 -1
  112. package/dist/index.cjs183.js.map +1 -1
  113. package/dist/index.cjs186.js +1 -1
  114. package/dist/index.cjs189.js +1 -1
  115. package/dist/index.cjs189.js.map +1 -1
  116. package/dist/index.cjs19.js.map +1 -1
  117. package/dist/index.cjs190.js +1 -1
  118. package/dist/index.cjs190.js.map +1 -1
  119. package/dist/index.cjs197.js +1 -1
  120. package/dist/index.cjs198.js.map +1 -1
  121. package/dist/index.cjs20.js.map +1 -1
  122. package/dist/index.cjs201.js.map +1 -1
  123. package/dist/index.cjs206.js +1 -1
  124. package/dist/index.cjs206.js.map +1 -1
  125. package/dist/index.cjs208.js +1 -1
  126. package/dist/index.cjs209.js.map +1 -1
  127. package/dist/index.cjs21.js.map +1 -1
  128. package/dist/index.cjs210.js.map +1 -1
  129. package/dist/index.cjs211.js.map +1 -1
  130. package/dist/index.cjs212.js.map +1 -1
  131. package/dist/index.cjs214.js.map +1 -1
  132. package/dist/index.cjs215.js.map +1 -1
  133. package/dist/index.cjs216.js.map +1 -1
  134. package/dist/index.cjs219.js.map +1 -1
  135. package/dist/index.cjs22.js +1 -1
  136. package/dist/index.cjs22.js.map +1 -1
  137. package/dist/index.cjs220.js.map +1 -1
  138. package/dist/index.cjs225.js.map +1 -1
  139. package/dist/index.cjs226.js.map +1 -1
  140. package/dist/index.cjs227.js.map +1 -1
  141. package/dist/index.cjs229.js.map +1 -1
  142. package/dist/index.cjs23.js.map +1 -1
  143. package/dist/index.cjs230.js.map +1 -1
  144. package/dist/index.cjs231.js.map +1 -1
  145. package/dist/index.cjs233.js +1 -1
  146. package/dist/index.cjs233.js.map +1 -1
  147. package/dist/index.cjs234.js +1 -1
  148. package/dist/index.cjs234.js.map +1 -1
  149. package/dist/index.cjs235.js +1 -1
  150. package/dist/index.cjs25.js +1 -1
  151. package/dist/index.cjs25.js.map +1 -1
  152. package/dist/index.cjs26.js.map +1 -1
  153. package/dist/index.cjs27.js.map +1 -1
  154. package/dist/index.cjs28.js.map +1 -1
  155. package/dist/index.cjs280.js +1 -1
  156. package/dist/index.cjs281.js +3 -12
  157. package/dist/index.cjs281.js.map +1 -1
  158. package/dist/index.cjs285.js +2 -0
  159. package/dist/index.cjs285.js.map +1 -0
  160. package/dist/index.cjs286.js +1 -1
  161. package/dist/index.cjs286.js.map +1 -1
  162. package/dist/index.cjs287.js +2 -0
  163. package/dist/index.cjs287.js.map +1 -0
  164. package/dist/{index.cjs292.js → index.cjs288.js} +2 -2
  165. package/dist/{index.cjs292.js.map → index.cjs288.js.map} +1 -1
  166. package/dist/index.cjs289.js +1 -1
  167. package/dist/index.cjs289.js.map +1 -1
  168. package/dist/index.cjs29.js.map +1 -1
  169. package/dist/index.cjs290.js +1 -1
  170. package/dist/index.cjs290.js.map +1 -1
  171. package/dist/index.cjs291.js +1 -1
  172. package/dist/index.cjs291.js.map +1 -1
  173. package/dist/index.cjs293.js +1 -1
  174. package/dist/index.cjs293.js.map +1 -1
  175. package/dist/index.cjs297.js +1 -1
  176. package/dist/index.cjs298.js +1 -1
  177. package/dist/index.cjs30.js.map +1 -1
  178. package/dist/index.cjs307.js +1 -1
  179. package/dist/index.cjs307.js.map +1 -1
  180. package/dist/index.cjs308.js +1 -1
  181. package/dist/index.cjs308.js.map +1 -1
  182. package/dist/index.cjs309.js +1 -1
  183. package/dist/index.cjs309.js.map +1 -1
  184. package/dist/index.cjs31.js.map +1 -1
  185. package/dist/index.cjs310.js +1 -1
  186. package/dist/index.cjs310.js.map +1 -1
  187. package/dist/index.cjs311.js +1 -1
  188. package/dist/index.cjs311.js.map +1 -1
  189. package/dist/index.cjs312.js +1 -1
  190. package/dist/index.cjs312.js.map +1 -1
  191. package/dist/index.cjs313.js +1 -1
  192. package/dist/index.cjs313.js.map +1 -1
  193. package/dist/index.cjs32.js.map +1 -1
  194. package/dist/{index.cjs299.js → index.cjs320.js} +1 -1
  195. package/dist/index.cjs320.js.map +1 -0
  196. package/dist/{index.cjs300.js → index.cjs321.js} +1 -1
  197. package/dist/index.cjs321.js.map +1 -0
  198. package/dist/{index.cjs306.js → index.cjs322.js} +1 -1
  199. package/dist/{index.cjs306.js.map → index.cjs322.js.map} +1 -1
  200. package/dist/index.cjs323.js +2 -0
  201. package/dist/index.cjs323.js.map +1 -0
  202. package/dist/index.cjs324.js +2 -0
  203. package/dist/index.cjs324.js.map +1 -0
  204. package/dist/index.cjs325.js +2 -0
  205. package/dist/index.cjs325.js.map +1 -0
  206. package/dist/{index.cjs315.js → index.cjs326.js} +2 -2
  207. package/dist/{index.cjs315.js.map → index.cjs326.js.map} +1 -1
  208. package/dist/{index.cjs318.js → index.cjs327.js} +1 -1
  209. package/dist/{index.cjs318.js.map → index.cjs327.js.map} +1 -1
  210. package/dist/index.cjs328.js +1 -1
  211. package/dist/index.cjs33.js.map +1 -1
  212. package/dist/index.cjs330.js +1 -1
  213. package/dist/index.cjs336.js +1 -1
  214. package/dist/index.cjs338.js +1 -1
  215. package/dist/index.cjs34.js.map +1 -1
  216. package/dist/index.cjs343.js +38 -1
  217. package/dist/index.cjs343.js.map +1 -1
  218. package/dist/index.cjs344.js +1 -38
  219. package/dist/index.cjs344.js.map +1 -1
  220. package/dist/index.cjs345.js +1 -1
  221. package/dist/index.cjs345.js.map +1 -1
  222. package/dist/index.cjs346.js +1 -1
  223. package/dist/index.cjs346.js.map +1 -1
  224. package/dist/index.cjs347.js +1 -1
  225. package/dist/index.cjs347.js.map +1 -1
  226. package/dist/index.cjs35.js.map +1 -1
  227. package/dist/index.cjs350.js +1 -1
  228. package/dist/index.cjs350.js.map +1 -1
  229. package/dist/index.cjs351.js +1 -1
  230. package/dist/index.cjs351.js.map +1 -1
  231. package/dist/index.cjs352.js +1 -1
  232. package/dist/index.cjs352.js.map +1 -1
  233. package/dist/index.cjs353.js +1 -1
  234. package/dist/index.cjs353.js.map +1 -1
  235. package/dist/index.cjs36.js.map +1 -1
  236. package/dist/index.cjs37.js.map +1 -1
  237. package/dist/index.cjs38.js.map +1 -1
  238. package/dist/index.cjs39.js.map +1 -1
  239. package/dist/index.cjs40.js.map +1 -1
  240. package/dist/index.cjs41.js.map +1 -1
  241. package/dist/index.cjs42.js.map +1 -1
  242. package/dist/index.cjs43.js.map +1 -1
  243. package/dist/index.cjs44.js.map +1 -1
  244. package/dist/index.cjs45.js.map +1 -1
  245. package/dist/index.cjs46.js.map +1 -1
  246. package/dist/index.cjs47.js.map +1 -1
  247. package/dist/index.cjs48.js.map +1 -1
  248. package/dist/index.cjs49.js.map +1 -1
  249. package/dist/index.cjs50.js.map +1 -1
  250. package/dist/index.cjs51.js.map +1 -1
  251. package/dist/index.cjs52.js.map +1 -1
  252. package/dist/index.cjs53.js.map +1 -1
  253. package/dist/index.cjs54.js.map +1 -1
  254. package/dist/index.cjs55.js +1 -1
  255. package/dist/index.cjs55.js.map +1 -1
  256. package/dist/index.cjs56.js +1 -1
  257. package/dist/index.cjs56.js.map +1 -1
  258. package/dist/index.cjs57.js.map +1 -1
  259. package/dist/index.cjs58.js.map +1 -1
  260. package/dist/index.cjs59.js.map +1 -1
  261. package/dist/index.cjs6.js +1 -1
  262. package/dist/index.cjs6.js.map +1 -1
  263. package/dist/index.cjs60.js.map +1 -1
  264. package/dist/index.cjs61.js.map +1 -1
  265. package/dist/index.cjs62.js.map +1 -1
  266. package/dist/index.cjs63.js.map +1 -1
  267. package/dist/index.cjs64.js.map +1 -1
  268. package/dist/index.cjs65.js.map +1 -1
  269. package/dist/index.cjs66.js.map +1 -1
  270. package/dist/index.cjs67.js.map +1 -1
  271. package/dist/index.cjs68.js.map +1 -1
  272. package/dist/index.cjs69.js.map +1 -1
  273. package/dist/index.cjs7.js +1 -1
  274. package/dist/index.cjs7.js.map +1 -1
  275. package/dist/index.cjs70.js.map +1 -1
  276. package/dist/index.cjs71.js.map +1 -1
  277. package/dist/index.cjs72.js.map +1 -1
  278. package/dist/index.cjs73.js.map +1 -1
  279. package/dist/index.cjs74.js.map +1 -1
  280. package/dist/index.cjs75.js.map +1 -1
  281. package/dist/index.cjs76.js.map +1 -1
  282. package/dist/index.cjs77.js.map +1 -1
  283. package/dist/index.cjs78.js.map +1 -1
  284. package/dist/index.cjs79.js.map +1 -1
  285. package/dist/index.cjs8.js +1 -1
  286. package/dist/index.cjs8.js.map +1 -1
  287. package/dist/index.cjs80.js.map +1 -1
  288. package/dist/index.cjs81.js.map +1 -1
  289. package/dist/index.cjs82.js.map +1 -1
  290. package/dist/index.cjs83.js.map +1 -1
  291. package/dist/index.cjs84.js.map +1 -1
  292. package/dist/index.cjs85.js.map +1 -1
  293. package/dist/index.cjs86.js.map +1 -1
  294. package/dist/index.cjs87.js.map +1 -1
  295. package/dist/index.cjs88.js.map +1 -1
  296. package/dist/index.cjs89.js.map +1 -1
  297. package/dist/index.cjs9.js +1 -1
  298. package/dist/index.cjs9.js.map +1 -1
  299. package/dist/index.cjs90.js.map +1 -1
  300. package/dist/index.cjs91.js.map +1 -1
  301. package/dist/index.cjs93.js.map +1 -1
  302. package/dist/index.cjs94.js.map +1 -1
  303. package/dist/index.cjs96.js.map +1 -1
  304. package/dist/index.cjs97.js +1 -1
  305. package/dist/index.cjs97.js.map +1 -1
  306. package/dist/index.cjs98.js +1 -1
  307. package/dist/index.cjs98.js.map +1 -1
  308. package/dist/index.cjs99.js +1 -1
  309. package/dist/index.cjs99.js.map +1 -1
  310. package/dist/index.es.js.map +1 -1
  311. package/dist/index.es10.js +2 -2
  312. package/dist/index.es10.js.map +1 -1
  313. package/dist/index.es100.js +1 -1
  314. package/dist/index.es100.js.map +1 -1
  315. package/dist/index.es101.js +1 -1
  316. package/dist/index.es101.js.map +1 -1
  317. package/dist/index.es102.js +1 -1
  318. package/dist/index.es102.js.map +1 -1
  319. package/dist/index.es103.js +1 -1
  320. package/dist/index.es103.js.map +1 -1
  321. package/dist/index.es104.js +1 -1
  322. package/dist/index.es104.js.map +1 -1
  323. package/dist/index.es105.js +1 -1
  324. package/dist/index.es105.js.map +1 -1
  325. package/dist/index.es106.js +1 -1
  326. package/dist/index.es106.js.map +1 -1
  327. package/dist/index.es107.js +1 -1
  328. package/dist/index.es107.js.map +1 -1
  329. package/dist/index.es108.js +1 -1
  330. package/dist/index.es108.js.map +1 -1
  331. package/dist/index.es109.js +1 -1
  332. package/dist/index.es109.js.map +1 -1
  333. package/dist/index.es11.js.map +1 -1
  334. package/dist/index.es110.js +1 -1
  335. package/dist/index.es110.js.map +1 -1
  336. package/dist/index.es111.js +1 -1
  337. package/dist/index.es111.js.map +1 -1
  338. package/dist/index.es112.js +1 -1
  339. package/dist/index.es112.js.map +1 -1
  340. package/dist/index.es113.js +1 -1
  341. package/dist/index.es113.js.map +1 -1
  342. package/dist/index.es114.js +1 -1
  343. package/dist/index.es114.js.map +1 -1
  344. package/dist/index.es115.js +1 -1
  345. package/dist/index.es115.js.map +1 -1
  346. package/dist/index.es116.js +1 -1
  347. package/dist/index.es116.js.map +1 -1
  348. package/dist/index.es117.js +1 -1
  349. package/dist/index.es117.js.map +1 -1
  350. package/dist/index.es118.js +1 -1
  351. package/dist/index.es118.js.map +1 -1
  352. package/dist/index.es119.js.map +1 -1
  353. package/dist/index.es12.js.map +1 -1
  354. package/dist/index.es120.js.map +1 -1
  355. package/dist/index.es121.js +1 -1
  356. package/dist/index.es121.js.map +1 -1
  357. package/dist/index.es122.js +1 -1
  358. package/dist/index.es122.js.map +1 -1
  359. package/dist/index.es123.js +1 -1
  360. package/dist/index.es123.js.map +1 -1
  361. package/dist/index.es124.js +1 -1
  362. package/dist/index.es124.js.map +1 -1
  363. package/dist/index.es125.js +1 -1
  364. package/dist/index.es125.js.map +1 -1
  365. package/dist/index.es126.js +1 -1
  366. package/dist/index.es126.js.map +1 -1
  367. package/dist/index.es127.js +1 -1
  368. package/dist/index.es127.js.map +1 -1
  369. package/dist/index.es128.js +1 -1
  370. package/dist/index.es128.js.map +1 -1
  371. package/dist/index.es129.js +1 -1
  372. package/dist/index.es129.js.map +1 -1
  373. package/dist/index.es13.js.map +1 -1
  374. package/dist/index.es130.js +1 -1
  375. package/dist/index.es130.js.map +1 -1
  376. package/dist/index.es131.js +1 -1
  377. package/dist/index.es131.js.map +1 -1
  378. package/dist/index.es132.js +1 -1
  379. package/dist/index.es132.js.map +1 -1
  380. package/dist/index.es133.js.map +1 -1
  381. package/dist/index.es134.js +1 -1
  382. package/dist/index.es134.js.map +1 -1
  383. package/dist/index.es135.js +1 -1
  384. package/dist/index.es135.js.map +1 -1
  385. package/dist/index.es136.js +1 -1
  386. package/dist/index.es136.js.map +1 -1
  387. package/dist/index.es137.js +1 -1
  388. package/dist/index.es137.js.map +1 -1
  389. package/dist/index.es138.js +1 -1
  390. package/dist/index.es138.js.map +1 -1
  391. package/dist/index.es139.js +1 -1
  392. package/dist/index.es139.js.map +1 -1
  393. package/dist/index.es14.js.map +1 -1
  394. package/dist/index.es140.js +1 -1
  395. package/dist/index.es140.js.map +1 -1
  396. package/dist/index.es141.js.map +1 -1
  397. package/dist/index.es142.js +76 -71
  398. package/dist/index.es142.js.map +1 -1
  399. package/dist/index.es143.js +11 -1
  400. package/dist/index.es143.js.map +1 -1
  401. package/dist/index.es147.js +63 -58
  402. package/dist/index.es147.js.map +1 -1
  403. package/dist/index.es15.js.map +1 -1
  404. package/dist/index.es156.js +29 -26
  405. package/dist/index.es156.js.map +1 -1
  406. package/dist/index.es16.js +28 -28
  407. package/dist/index.es16.js.map +1 -1
  408. package/dist/index.es160.js +18 -15
  409. package/dist/index.es160.js.map +1 -1
  410. package/dist/index.es17.js.map +1 -1
  411. package/dist/index.es170.js +2 -27
  412. package/dist/index.es170.js.map +1 -1
  413. package/dist/index.es171.js +30 -0
  414. package/dist/index.es171.js.map +1 -0
  415. package/dist/index.es173.js.map +1 -1
  416. package/dist/index.es176.js.map +1 -1
  417. package/dist/index.es18.js.map +1 -1
  418. package/dist/index.es180.js +1 -1
  419. package/dist/index.es180.js.map +1 -1
  420. package/dist/index.es183.js.map +1 -1
  421. package/dist/index.es186.js +7 -7
  422. package/dist/index.es189.js +1 -1
  423. package/dist/index.es189.js.map +1 -1
  424. package/dist/index.es19.js.map +1 -1
  425. package/dist/index.es190.js +1 -1
  426. package/dist/index.es190.js.map +1 -1
  427. package/dist/index.es197.js +5 -5
  428. package/dist/index.es198.js.map +1 -1
  429. package/dist/index.es20.js.map +1 -1
  430. package/dist/index.es201.js.map +1 -1
  431. package/dist/index.es206.js +1 -1
  432. package/dist/index.es206.js.map +1 -1
  433. package/dist/index.es208.js +13 -13
  434. package/dist/index.es209.js.map +1 -1
  435. package/dist/index.es21.js.map +1 -1
  436. package/dist/index.es210.js.map +1 -1
  437. package/dist/index.es211.js.map +1 -1
  438. package/dist/index.es212.js.map +1 -1
  439. package/dist/index.es214.js.map +1 -1
  440. package/dist/index.es215.js.map +1 -1
  441. package/dist/index.es216.js.map +1 -1
  442. package/dist/index.es219.js.map +1 -1
  443. package/dist/index.es22.js +1 -1
  444. package/dist/index.es22.js.map +1 -1
  445. package/dist/index.es220.js.map +1 -1
  446. package/dist/index.es225.js.map +1 -1
  447. package/dist/index.es226.js.map +1 -1
  448. package/dist/index.es227.js.map +1 -1
  449. package/dist/index.es229.js.map +1 -1
  450. package/dist/index.es23.js.map +1 -1
  451. package/dist/index.es230.js.map +1 -1
  452. package/dist/index.es231.js.map +1 -1
  453. package/dist/index.es233.js +1 -1
  454. package/dist/index.es233.js.map +1 -1
  455. package/dist/index.es234.js +1 -1
  456. package/dist/index.es234.js.map +1 -1
  457. package/dist/index.es235.js +5 -5
  458. package/dist/index.es25.js +1 -1
  459. package/dist/index.es25.js.map +1 -1
  460. package/dist/index.es26.js.map +1 -1
  461. package/dist/index.es27.js.map +1 -1
  462. package/dist/index.es28.js.map +1 -1
  463. package/dist/index.es280.js +1 -1
  464. package/dist/index.es281.js +146 -307
  465. package/dist/index.es281.js.map +1 -1
  466. package/dist/index.es285.js +10 -0
  467. package/dist/index.es285.js.map +1 -0
  468. package/dist/index.es286.js +27 -15
  469. package/dist/index.es286.js.map +1 -1
  470. package/dist/index.es287.js +71 -0
  471. package/dist/index.es287.js.map +1 -0
  472. package/dist/{index.es292.js → index.es288.js} +2 -2
  473. package/dist/{index.es292.js.map → index.es288.js.map} +1 -1
  474. package/dist/index.es289.js +32 -6
  475. package/dist/index.es289.js.map +1 -1
  476. package/dist/index.es29.js.map +1 -1
  477. package/dist/index.es290.js +618 -23
  478. package/dist/index.es290.js.map +1 -1
  479. package/dist/index.es291.js +10 -67
  480. package/dist/index.es291.js.map +1 -1
  481. package/dist/index.es293.js +15 -33
  482. package/dist/index.es293.js.map +1 -1
  483. package/dist/index.es297.js +1 -1
  484. package/dist/index.es298.js +2 -2
  485. package/dist/index.es30.js.map +1 -1
  486. package/dist/index.es307.js +120 -37
  487. package/dist/index.es307.js.map +1 -1
  488. package/dist/index.es308.js +130 -41
  489. package/dist/index.es308.js.map +1 -1
  490. package/dist/index.es309.js +14 -8
  491. package/dist/index.es309.js.map +1 -1
  492. package/dist/index.es31.js.map +1 -1
  493. package/dist/index.es310.js +12 -122
  494. package/dist/index.es310.js.map +1 -1
  495. package/dist/index.es311.js +8 -14
  496. package/dist/index.es311.js.map +1 -1
  497. package/dist/index.es312.js +48 -133
  498. package/dist/index.es312.js.map +1 -1
  499. package/dist/index.es313.js +36 -212
  500. package/dist/index.es313.js.map +1 -1
  501. package/dist/index.es32.js.map +1 -1
  502. package/dist/{index.es299.js → index.es320.js} +1 -1
  503. package/dist/index.es320.js.map +1 -0
  504. package/dist/{index.es300.js → index.es321.js} +1 -1
  505. package/dist/index.es321.js.map +1 -0
  506. package/dist/{index.es306.js → index.es322.js} +1 -1
  507. package/dist/{index.es306.js.map → index.es322.js.map} +1 -1
  508. package/dist/index.es323.js +49 -0
  509. package/dist/index.es323.js.map +1 -0
  510. package/dist/index.es324.js +11 -0
  511. package/dist/index.es324.js.map +1 -0
  512. package/dist/index.es325.js +221 -0
  513. package/dist/index.es325.js.map +1 -0
  514. package/dist/{index.es315.js → index.es326.js} +10 -10
  515. package/dist/{index.es315.js.map → index.es326.js.map} +1 -1
  516. package/dist/{index.es318.js → index.es327.js} +1 -1
  517. package/dist/{index.es318.js.map → index.es327.js.map} +1 -1
  518. package/dist/index.es328.js +1 -1
  519. package/dist/index.es33.js.map +1 -1
  520. package/dist/index.es330.js +1 -1
  521. package/dist/index.es336.js +1 -1
  522. package/dist/index.es338.js +4 -4
  523. package/dist/index.es34.js.map +1 -1
  524. package/dist/index.es343.js +69 -65
  525. package/dist/index.es343.js.map +1 -1
  526. package/dist/index.es344.js +8 -68
  527. package/dist/index.es344.js.map +1 -1
  528. package/dist/index.es345.js +14 -9
  529. package/dist/index.es345.js.map +1 -1
  530. package/dist/index.es346.js +62 -14
  531. package/dist/index.es346.js.map +1 -1
  532. package/dist/index.es347.js +64 -61
  533. package/dist/index.es347.js.map +1 -1
  534. package/dist/index.es35.js.map +1 -1
  535. package/dist/index.es350.js +11 -21
  536. package/dist/index.es350.js.map +1 -1
  537. package/dist/index.es351.js +26 -11
  538. package/dist/index.es351.js.map +1 -1
  539. package/dist/index.es352.js +4 -27
  540. package/dist/index.es352.js.map +1 -1
  541. package/dist/index.es353.js +22 -4
  542. package/dist/index.es353.js.map +1 -1
  543. package/dist/index.es36.js.map +1 -1
  544. package/dist/index.es37.js.map +1 -1
  545. package/dist/index.es38.js.map +1 -1
  546. package/dist/index.es39.js.map +1 -1
  547. package/dist/index.es40.js.map +1 -1
  548. package/dist/index.es41.js.map +1 -1
  549. package/dist/index.es42.js.map +1 -1
  550. package/dist/index.es43.js.map +1 -1
  551. package/dist/index.es44.js.map +1 -1
  552. package/dist/index.es45.js.map +1 -1
  553. package/dist/index.es46.js.map +1 -1
  554. package/dist/index.es47.js.map +1 -1
  555. package/dist/index.es48.js.map +1 -1
  556. package/dist/index.es49.js.map +1 -1
  557. package/dist/index.es50.js.map +1 -1
  558. package/dist/index.es51.js.map +1 -1
  559. package/dist/index.es52.js.map +1 -1
  560. package/dist/index.es53.js.map +1 -1
  561. package/dist/index.es54.js.map +1 -1
  562. package/dist/index.es55.js +47 -39
  563. package/dist/index.es55.js.map +1 -1
  564. package/dist/index.es56.js +1 -1
  565. package/dist/index.es56.js.map +1 -1
  566. package/dist/index.es57.js.map +1 -1
  567. package/dist/index.es58.js.map +1 -1
  568. package/dist/index.es59.js.map +1 -1
  569. package/dist/index.es6.js +1 -1
  570. package/dist/index.es6.js.map +1 -1
  571. package/dist/index.es60.js.map +1 -1
  572. package/dist/index.es61.js.map +1 -1
  573. package/dist/index.es62.js.map +1 -1
  574. package/dist/index.es63.js.map +1 -1
  575. package/dist/index.es64.js.map +1 -1
  576. package/dist/index.es65.js.map +1 -1
  577. package/dist/index.es66.js.map +1 -1
  578. package/dist/index.es67.js.map +1 -1
  579. package/dist/index.es68.js.map +1 -1
  580. package/dist/index.es69.js.map +1 -1
  581. package/dist/index.es7.js +1 -1
  582. package/dist/index.es7.js.map +1 -1
  583. package/dist/index.es70.js.map +1 -1
  584. package/dist/index.es71.js.map +1 -1
  585. package/dist/index.es72.js.map +1 -1
  586. package/dist/index.es73.js.map +1 -1
  587. package/dist/index.es74.js.map +1 -1
  588. package/dist/index.es75.js.map +1 -1
  589. package/dist/index.es76.js.map +1 -1
  590. package/dist/index.es77.js.map +1 -1
  591. package/dist/index.es78.js.map +1 -1
  592. package/dist/index.es79.js.map +1 -1
  593. package/dist/index.es8.js +1 -1
  594. package/dist/index.es8.js.map +1 -1
  595. package/dist/index.es80.js.map +1 -1
  596. package/dist/index.es81.js.map +1 -1
  597. package/dist/index.es82.js.map +1 -1
  598. package/dist/index.es83.js.map +1 -1
  599. package/dist/index.es84.js.map +1 -1
  600. package/dist/index.es85.js.map +1 -1
  601. package/dist/index.es86.js.map +1 -1
  602. package/dist/index.es87.js.map +1 -1
  603. package/dist/index.es88.js.map +1 -1
  604. package/dist/index.es89.js.map +1 -1
  605. package/dist/index.es9.js +2 -2
  606. package/dist/index.es9.js.map +1 -1
  607. package/dist/index.es90.js.map +1 -1
  608. package/dist/index.es91.js.map +1 -1
  609. package/dist/index.es93.js.map +1 -1
  610. package/dist/index.es94.js.map +1 -1
  611. package/dist/index.es96.js.map +1 -1
  612. package/dist/index.es97.js +1 -1
  613. package/dist/index.es97.js.map +1 -1
  614. package/dist/index.es98.js +1 -1
  615. package/dist/index.es98.js.map +1 -1
  616. package/dist/index.es99.js +1 -1
  617. package/dist/index.es99.js.map +1 -1
  618. package/package.json +104 -104
  619. package/readme.md +42 -42
  620. package/dist/index.cjs172.js +0 -2
  621. package/dist/index.cjs172.js.map +0 -1
  622. package/dist/index.cjs294.js +0 -2
  623. package/dist/index.cjs294.js.map +0 -1
  624. package/dist/index.cjs295.js +0 -2
  625. package/dist/index.cjs295.js.map +0 -1
  626. package/dist/index.cjs299.js.map +0 -1
  627. package/dist/index.cjs300.js.map +0 -1
  628. package/dist/index.cjs314.js +0 -2
  629. package/dist/index.cjs314.js.map +0 -1
  630. package/dist/index.cjs316.js +0 -2
  631. package/dist/index.cjs316.js.map +0 -1
  632. package/dist/index.cjs317.js +0 -2
  633. package/dist/index.cjs317.js.map +0 -1
  634. package/dist/index.es172.js +0 -5
  635. package/dist/index.es172.js.map +0 -1
  636. package/dist/index.es294.js +0 -625
  637. package/dist/index.es294.js.map +0 -1
  638. package/dist/index.es295.js +0 -14
  639. package/dist/index.es295.js.map +0 -1
  640. package/dist/index.es299.js.map +0 -1
  641. package/dist/index.es300.js.map +0 -1
  642. package/dist/index.es314.js +0 -17
  643. package/dist/index.es314.js.map +0 -1
  644. package/dist/index.es316.js +0 -53
  645. package/dist/index.es316.js.map +0 -1
  646. package/dist/index.es317.js +0 -12
  647. package/dist/index.es317.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs313.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor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AAE,EAAAC,EAAG,EAAAC,CAAC,CAAI,CAC7B,CACA,GACA,SAAS9B,GAA6BvB,EAAW,CAC/C,KAAM,CAAC9B,EAAME,EAAQ,QAAQ,EAAI4B,EAAU,MAAM,GAAG,EACpD,MAAO,CAAC9B,EAAME,CAAK,CACrB,CACG,IAACkF,GAAQ1G,EACR2G,GAASlG,EACTmG,GAAUvF,EACVwF,GAAQjB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs313.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAIG,IAACA,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,E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,EAClCE,EAAiBJ,EAAWE,CAAQ,EACxB,WAAW,KAAKA,CAAQ,EAEpCC,GAAiBC,EACnBH,EAAcC,CAAQ,EAAI,IAAIG,IAAS,CACrCD,EAAe,GAAGC,CAAI,EACtBF,EAAc,GAAGE,CAAI,CACtB,EACQF,IACTF,EAAcC,CAAQ,EAAIC,GAEnBD,IAAa,QACtBD,EAAcC,CAAQ,EAAI,CAAE,GAAGC,EAAe,GAAGC,CAAgB,EACxDF,IAAa,cACtBD,EAAcC,CAAQ,EAAI,CAACC,EAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGpB,EAAW,GAAGiB,CAAe,CAC3C,CACA,SAASP,EAAcY,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs32.js","sources":["../src/components/ui/SupportBanner/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./SupportBanner.scss\";\nimport { ArrowLink, Button, Col } from \"@/components\";\nimport { useMemo } from \"react\";\nimport { Attachment } from \"@/icons\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype ctaLevel = \"link\" | \"button\" | \"outlineButton\";\n\ntype SupportBannerProps = {\n cta: ctaLevel;\n bannerType: \"filled\" | \"outline\";\n title: string;\n description?: string;\n titleTag: HeadingLevel;\n href?: string | string[];\n icon?: boolean;\n linkText?: string | string[];\n mainLayout?: \"layout1\" | \"layout2\";\n className?: string;\n classNameTitle?: string;\n classNameDescription?: string;\n handleAction?: () => void;\n};\n\nconst CTA_COMPONENTS = {\n link: (title: string, href?: string) => (\n <ArrowLink href={href}>{title}</ArrowLink>\n ),\n button: (title: string) => <button className=\"button-style\">{title}</button>,\n outlineButton: (\n title: string,\n _href?: string,\n icon?: boolean,\n handleAction?: () => void,\n ) => (\n <Button\n size={\"2\"}\n textColor=\"primary\"\n bg=\"lightblue-a03\"\n className={\"w-full \"}\n border={\"primary\"}\n onClick={handleAction}\n >\n {icon && <Attachment className={\"mr-x8\"} />}\n <p className={\"fs-6 fw-bold\"}>{title}</p>\n </Button>\n ),\n};\n\nexport const SupportBanner = ({\n cta = \"link\",\n bannerType = \"outline\",\n title,\n description = \"\",\n titleTag: TitleTag = \"h3\",\n href = \"#\",\n icon = true,\n linkText = \"Vai al supporto\",\n mainLayout = \"layout1\",\n className = \"\",\n classNameTitle = \"\",\n classNameDescription = \"\",\n handleAction,\n}: SupportBannerProps) => {\n const renderCTA = useMemo(() => {\n if (Array.isArray(href)) {\n return href.map((singleHref, index) => {\n const singleLinkText = Array.isArray(linkText)\n ? linkText[index]\n : linkText;\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](\n singleLinkText,\n singleHref,\n icon,\n handleAction,\n )}\n </div>\n );\n });\n }\n if (Array.isArray(linkText)) {\n return linkText.map((singleLinkText, index) => {\n return (\n <div key={index} className=\"ui-banner-link\">\n {CTA_COMPONENTS[cta](singleLinkText, href, icon, handleAction)}\n </div>\n );\n });\n }\n return CTA_COMPONENTS[cta](linkText, href, icon, handleAction);\n }, [cta, linkText, href, handleAction]);\n\n return (\n <Col\n br={\"x4\"}\n gap={\"x16\"}\n className={clsx(\n className,\n bannerType === \"outline\" ? \"ui-outline\" : \"bg-lightblue-a03\",\n \"ui-banner shadow \",\n )}\n >\n <TitleTag\n className={clsx(\n \"ui-banner-title text-slate-20\",\n classNameTitle || \"fs-4 fw-bold\",\n )}\n >\n {title}\n </TitleTag>\n <main\n className={clsx(\n mainLayout === \"layout1\"\n ? \"ui-banner-content-layout1 fs-6 text-secondary justify-content-between \"\n : \"ui-banner-content-layout2\",\n \"ui-banner-content fs-6 text-secondary w-100\",\n )}\n >\n <div\n className={clsx(\n classNameDescription,\n mainLayout === \"layout1\" ? \"ui-banner-description\" : \"\",\n )}\n >\n {description}\n </div>\n\n <div className={clsx(\"ui-banner-cta\")}>{renderCTA}</div>\n </main>\n </Col>\n );\n};\n"],"names":["CTA_COMPONENTS","title","href","jsx","ArrowLink","_href","icon","handleAction","jsxs","Button","Attachment","SupportBanner","cta","bannerType","description","TitleTag","linkText","mainLayout","className","classNameTitle","classNameDescription","renderCTA","useMemo","singleHref","index","singleLinkText","Col","clsx"],"mappings":"mUAyBMA,EAAiB,CACrB,KAAM,CAACC,EAAeC,IACnBC,EAAA,kBAAA,IAAAC,EAAA,UAAA,CAAU,KAAAF,EAAa,SAAMD,EAAA,EAEhC,OAASA,2BAAmB,SAAO,CAAA,UAAU,eAAgB,SAAMA,EAAA,EACnE,cAAe,CACbA,EACAI,EACAC,EACAC,IAEAC,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,KAAM,IACN,UAAU,UACV,GAAG,gBACH,UAAW,UACX,OAAQ,UACR,QAASF,EAER,SAAA,CAAQD,GAAAH,EAAAA,kBAAAA,IAACO,EAAAA,WAAW,CAAA,UAAW,OAAS,CAAA,EACxCP,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,eAAiB,SAAMF,CAAA,CAAA,CAAA,CAAA,CAAA,CAG3C,EAEaU,EAAgB,CAAC,CAC5B,IAAAC,EAAM,OACN,WAAAC,EAAa,UACb,MAAAZ,EACA,YAAAa,EAAc,GACd,SAAUC,EAAW,KACrB,KAAAb,EAAO,IACP,KAAAI,EAAO,GACP,SAAAU,EAAW,kBACX,WAAAC,EAAa,UACb,UAAAC,EAAY,GACZ,eAAAC,EAAiB,GACjB,qBAAAC,EAAuB,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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,EA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AEI,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,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
- //# sourceMappingURL=index.cjs299.js.map
2
+ //# sourceMappingURL=index.cjs320.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs320.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
- //# sourceMappingURL=index.cjs300.js.map
2
+ //# sourceMappingURL=index.cjs321.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs321.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function o(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 u=o(c);function s(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}exports.useCallbackRef=s;
2
- //# sourceMappingURL=index.cjs306.js.map
2
+ //# sourceMappingURL=index.cjs322.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs306.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CAC1B,CAAG,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs322.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CAC1B,CAAG,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),y=require("./index.cjs287.js"),M=require("./index.cjs286.js"),I=require("./index.cjs313.js"),f=require("./index.cjs161.js");function O(l){const u=l+"CollectionProvider",[E,A]=y.createContextScope(u),[N,d]=E(u,{collectionRef:{current:null},itemMap:new Map}),a=n=>{const{scope:e,children:s}=n,t=r.useRef(null),o=r.useRef(new Map).current;return f.jsxRuntimeExports.jsx(N,{scope:e,itemMap:o,collectionRef:t,children:s})};a.displayName=u;const m=l+"CollectionSlot",p=r.forwardRef((n,e)=>{const{scope:s,children:t}=n,o=d(m,s),c=M.useComposedRefs(e,o.collectionRef);return f.jsxRuntimeExports.jsx(I.Slot,{ref:c,children:t})});p.displayName=m;const C=l+"CollectionItemSlot",x="data-radix-collection-item",R=r.forwardRef((n,e)=>{const{scope:s,children:t,...o}=n,c=r.useRef(null),S=M.useComposedRefs(e,c),i=d(C,s);return r.useEffect(()=>(i.itemMap.set(c,{ref:c,...o}),()=>void i.itemMap.delete(c))),f.jsxRuntimeExports.jsx(I.Slot,{[x]:"",ref:S,children:t})});R.displayName=C;function T(n){const e=d(l+"CollectionConsumer",n);return r.useCallback(()=>{const t=e.collectionRef.current;if(!t)return[];const o=Array.from(t.querySelectorAll(`[${x}]`));return Array.from(e.itemMap.values()).sort((i,j)=>o.indexOf(i.ref.current)-o.indexOf(j.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:a,Slot:p,ItemSlot:R},T,A]}exports.createCollection=O;
2
+ //# sourceMappingURL=index.cjs323.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs323.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"qOAQA,SAASA,EAAiBC,EAAM,CAC9B,MAAMC,EAAgBD,EAAO,qBACvB,CAACE,EAAyBC,CAAqB,EAAIC,EAAAA,mBAAmBH,CAAa,EACnF,CAACI,EAAwBC,CAAoB,EAAIJ,EACrDD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CACvE,EACKM,EAAsBC,GAAU,CACpC,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAQ,EAAKF,EACtBG,EAAMC,EAAM,OAAO,IAAI,EACvBC,EAAUD,EAAM,OAAuB,IAAI,GAAK,EAAE,QACxD,OAAuBE,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AAiB,IAAIJ,CAAc,GAAG,CAAC,EAKtF,OAJc,MAAM,KAAKL,EAAQ,QAAQ,QAAQ,EACtB,KACzB,CAACW,EAAGC,IAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,EAAID,EAAa,QAAQE,EAAE,IAAI,OAAO,CACnF,CAEF,EAAE,CAACZ,EAAQ,cAAeA,EAAQ,OAAO,CAAC,CAE/C,CACE,MAAO,CACL,CAAE,SAAUX,EAAoB,KAAMS,EAAgB,SAAUQ,CAAoB,EACpFE,EACAvB,CACD,CACH","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("./index.cjs161.js");function i(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=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
2
+ //# sourceMappingURL=index.cjs324.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs324.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/Direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":"gaAGA,IAAIA,EAAmBC,EAAM,cAAc,MAAM,EAKjD,SAASC,EAAaC,EAAU,CAC9B,MAAMC,EAAYH,EAAM,WAAWD,CAAgB,EACnD,OAAOG,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),l=require("./index.cjs329.js"),ye=require("./index.cjs330.js"),Z=require("./index.cjs286.js"),Ae=require("./index.cjs287.js"),G=require("./index.cjs289.js"),ve=require("./index.cjs322.js"),L=require("./index.cjs327.js"),Ce=require("./index.cjs297.js"),u=require("./index.cjs161.js"),be=require("./index.cjs331.js");function Re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=Re(Pe);var _="Popper",[J,Oe]=Ae.createContextScope(_),[Se,K]=J(_),$=e=>{const{__scopePopper:o,children:t}=e,[r,a]=s.useState(null);return u.jsxRuntimeExports.jsx(Se,{scope:o,anchor:r,onAnchorChange:a,children:t})};$.displayName=_;var Q="PopperAnchor",N=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:r,...a}=e,n=K(Q,t),i=s.useRef(null),w=Z.useComposedRefs(o,i);return s.useEffect(()=>{n.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsxRuntimeExports.jsx(G.Primitive.div,{...a,ref:w})});N.displayName=Q;var q="PopperContent",[je,Ee]=J(q),H=s.forwardRef((e,o)=>{var T,X,k,F,z,B;const{__scopePopper:t,side:r="bottom",sideOffset:a=0,align:n="center",alignOffset:i=0,arrowPadding:w=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:P=0,sticky:x="partial",hideWhenDetached:A=!1,updatePositionStrategy:v="optimized",onPlaced:f,...d}=e,C=K(q,t),[m,b]=s.useState(null),te=Z.useComposedRefs(o,y=>b(y)),[E,re]=s.useState(null),h=Ce.useSize(E),oe=(h==null?void 0:h.width)??0,M=(h==null?void 0:h.height)??0,ne=r+(n!=="center"?"-"+n:""),ie=typeof P=="number"?P:{top:0,right:0,bottom:0,left:0,...P},W=Array.isArray(p)?p:[p],ae=W.length>0,R={padding:ie,boundary:W.filter($e),altBoundary:ae},{refs:se,floatingStyles:I,placement:ce,isPositioned:O,middlewareData:g}=l.useFloating({strategy:"fixed",placement:ne,whileElementsMounted:(...y)=>be.autoUpdate(...y,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[l.offset({mainAxis:a+M,alignmentAxis:i}),c&&l.shift({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?l.limitShift():void 0,...R}),c&&l.flip({...R}),l.size({...R,apply:({elements:y,rects:U,availableWidth:me,availableHeight:he})=>{const{width:ge,height:we}=U.reference,j=y.floating.style;j.setProperty("--radix-popper-available-width",`${me}px`),j.setProperty("--radix-popper-available-height",`${he}px`),j.setProperty("--radix-popper-anchor-width",`${ge}px`),j.setProperty("--radix-popper-anchor-height",`${we}px`)}}),E&&l.arrow({element:E,padding:w}),Ne({arrowWidth:oe,arrowHeight:M}),A&&l.hide({strategy:"referenceHidden",...R})]}),[Y,pe]=ee(ce),S=ve.useCallbackRef(f);L.useLayoutEffect(()=>{O&&(S==null||S())},[O,S]);const de=(T=g.arrow)==null?void 0:T.x,le=(X=g.arrow)==null?void 0:X.y,fe=((k=g.arrow)==null?void 0:k.centerOffset)!==0,[ue,xe]=s.useState();return L.useLayoutEffect(()=>{m&&xe(window.getComputedStyle(m).zIndex)},[m]),u.jsxRuntimeExports.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:O?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(F=g.transformOrigin)==null?void 0:F.x,(z=g.transformOrigin)==null?void 0:z.y].join(" "),...((B=g.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsxRuntimeExports.jsx(je,{scope:t,placedSide:Y,onArrowChange:re,arrowX:de,arrowY:le,shouldHideArrow:fe,children:u.jsxRuntimeExports.jsx(G.Primitive.div,{"data-side":Y,"data-align":pe,...d,ref:te,style:{...d.style,animation:O?void 0:"none"}})})})});H.displayName=q;var V="PopperArrow",_e={top:"bottom",right:"left",bottom:"top",left:"right"},D=s.forwardRef(function(o,t){const{__scopePopper:r,...a}=o,n=Ee(V,r),i=_e[n.placedSide];return u.jsxRuntimeExports.jsx("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:u.jsxRuntimeExports.jsx(ye.Root,{...a,ref:t,style:{...a.style,display:"block"}})})});D.displayName=V;function $e(e){return e!==null}var Ne=e=>({name:"transformOrigin",options:e,fn(o){var C,m,b;const{placement:t,rects:r,middlewareData:a}=o,i=((C=a.arrow)==null?void 0:C.centerOffset)!==0,w=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[p,P]=ee(t),x={start:"0%",center:"50%",end:"100%"}[P],A=(((m=a.arrow)==null?void 0:m.x)??0)+w/2,v=(((b=a.arrow)==null?void 0:b.y)??0)+c/2;let f="",d="";return p==="bottom"?(f=i?x:`${A}px`,d=`${-c}px`):p==="top"?(f=i?x:`${A}px`,d=`${r.floating.height+c}px`):p==="right"?(f=`${-c}px`,d=i?x:`${v}px`):p==="left"&&(f=`${r.floating.width+c}px`,d=i?x:`${v}px`),{data:{x:f,y:d}}}});function ee(e){const[o,t="center"]=e.split("-");return[o,t]}var qe=$,He=N,De=H,Me=D;exports.Anchor=He;exports.Arrow=Me;exports.Content=De;exports.Popper=$;exports.PopperAnchor=N;exports.PopperArrow=D;exports.PopperContent=H;exports.Root=qe;exports.createPopperScope=Oe;
2
+ //# sourceMappingURL=index.cjs325.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs325.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":"ksBAyBA,IAAIA,EAAc,SACd,CAACC,EAAqBC,EAAiB,EAAIC,GAAAA,mBAAmBH,CAAW,EACzE,CAACI,GAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAAUC,GAAU,CACtB,KAAM,CAAE,cAAAC,EAAe,SAAAC,CAAQ,EAAKF,EAC9B,CAACG,EAAQC,CAAS,EAAIC,EAAM,SAAS,IAAI,EAC/C,OAAuBC,EAAG,kBAAA,IAACT,GAAgB,CAAE,MAAOI,EAAe,OAAAE,EAAQ,eAAgBC,EAAW,SAAAF,EAAU,CAClH,EACAH,EAAO,YAAc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YAAA0B,EAAsB,gBAAiB,EAE3DtC,EAAa0D,EAAgB,EAAIF,EAAQ,WACzCvD,EAAcyD,EAAgB,EAAIF,EAAQ,YAC1C,CAACzB,EAAYC,CAAW,EAAIC,GAA6BvB,CAAS,EAClEiD,EAAe,CAAE,MAAO,KAAM,OAAQ,MAAO,IAAK,MAAQ,EAAC3B,CAAW,EACtE4B,KAAgBpB,EAAA5B,EAAe,QAAf,YAAA4B,EAAsB,IAAK,GAAKxC,EAAa,EAC7D6D,KAAgBnB,EAAA9B,EAAe,QAAf,YAAA8B,EAAsB,IAAK,GAAKzC,EAAc,EACpE,IAAI6D,EAAI,GACJC,EAAI,GACR,OAAIhC,IAAe,UACjB+B,EAAIJ,EAAgBC,EAAe,GAAGC,CAAY,KAClDG,EAAI,GAAG,CAAC9D,CAAW,MACV8B,IAAe,OACxB+B,EAAIJ,EAAgBC,EAAe,GAAGC,CAAY,KAClDG,EAAI,GAAGzC,EAAM,SAAS,OAASrB,CAAW,MACjC8B,IAAe,SACxB+B,EAAI,GAAG,CAAC7D,CAAW,KACnB8D,EAAIL,EAAgBC,EAAe,GAAGE,CAAY,MACzC9B,IAAe,SACxB+B,EAAI,GAAGxC,EAAM,SAAS,MAAQrB,CAAW,KACzC8D,EAAIL,EAAgBC,EAAe,GAAGE,CAAY,MAE7C,CAAE,KAAM,CAAE,EAAAC,EAAG,EAAAC,CAAC,CAAI,CAC7B,CACA,GACA,SAAS9B,GAA6BvB,EAAW,CAC/C,KAAM,CAAC9B,EAAME,EAAQ,QAAQ,EAAI4B,EAAU,MAAM,GAAG,EACpD,MAAO,CAAC9B,EAAME,CAAK,CACrB,CACG,IAACkF,GAAQ1G,EACR2G,GAASlG,EACTmG,GAAUvF,EACVwF,GAAQjB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),m=require("./index.cjs289.js"),B=require("./index.cjs308.js"),Y=require("./index.cjs290.js"),z=require("./index.cjs291.js"),V=require("./index.cjs295.js"),D=require("./index.cjs293.js"),J=require("./index.cjs306.js"),Q=require("./index.cjs292.js"),W=require("./index.cjs309.js"),f=require("./index.cjs161.js");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=X(H);var _="rovingFocusGroup.onEntryFocus",Z={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[j,G,ee]=B.createCollection(g),[te,oe]=z.createContextScope(g,[ee]),[re,ne]=te(g),A=c.forwardRef((e,o)=>f.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(se,{...e,ref:o})})}));A.displayName=g;var se=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:R=!1,dir:I,currentTabStopId:x,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:p,onEntryFocus:u,preventScrollOnEntryFocus:E=!1,...S}=e,v=c.useRef(null),b=Y.useComposedRefs(o,v),n=W.useDirection(I),[l=null,w]=Q.useControllableState({prop:x,defaultProp:F,onChange:p}),[i,a]=c.useState(!1),T=J.useCallbackRef(u),M=G(r),C=c.useRef(!1),[K,O]=c.useState(0);return c.useEffect(()=>{const s=v.current;if(s)return s.addEventListener(_,T),()=>s.removeEventListener(_,T)},[T]),f.jsxRuntimeExports.jsx(re,{scope:r,orientation:t,dir:n,loop:R,currentTabStopId:l,onItemFocus:c.useCallback(s=>w(s),[w]),onItemShiftTab:c.useCallback(()=>a(!0),[]),onFocusableItemAdd:c.useCallback(()=>O(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>O(s=>s-1),[]),children:f.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:i||K===0?-1:0,"data-orientation":t,...S,ref:b,style:{outline:"none",...e.style},onMouseDown:m.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:m.composeEventHandlers(e.onFocus,s=>{const k=!C.current;if(s.target===s.currentTarget&&k&&!i){const P=new CustomEvent(_,Z);if(s.currentTarget.dispatchEvent(P),!P.defaultPrevented){const y=M().filter(d=>d.focusable),L=y.find(d=>d.active),U=y.find(d=>d.id===l),$=[L,U,...y].filter(Boolean).map(d=>d.ref.current);q($,E)}}C.current=!1}),onBlur:m.composeEventHandlers(e.onBlur,()=>a(!1))})})}),N="RovingFocusGroupItem",h=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:R=!1,tabStopId:I,...x}=e,F=V.useId(),p=I||F,u=ne(N,r),E=u.currentTabStopId===p,S=G(r),{onFocusableItemAdd:v,onFocusableItemRemove:b}=u;return c.useEffect(()=>{if(t)return v(),()=>b()},[t,v,b]),f.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:p,focusable:t,active:R,children:f.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:E?0:-1,"data-orientation":u.orientation,...x,ref:o,onMouseDown:m.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(p):n.preventDefault()}),onFocus:m.composeEventHandlers(e.onFocus,()=>u.onItemFocus(p)),onKeyDown:m.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const l=ie(n,u.orientation,u.dir);if(l!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=S().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")i.reverse();else if(l==="prev"||l==="next"){l==="prev"&&i.reverse();const a=i.indexOf(n.currentTarget);i=u.loop?ae(i,a+1):i.slice(a+1)}setTimeout(()=>q(i))}})})})});h.displayName=N;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ue(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ie(e,o,r){const t=ue(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ce[t]}function q(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ae(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var le=A,de=h;exports.Item=de;exports.Root=le;exports.RovingFocusGroup=A;exports.RovingFocusGroupItem=h;exports.createRovingFocusGroupScope=oe;
2
- //# sourceMappingURL=index.cjs315.js.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),m=require("./index.cjs285.js"),B=require("./index.cjs323.js"),Y=require("./index.cjs286.js"),z=require("./index.cjs287.js"),V=require("./index.cjs291.js"),D=require("./index.cjs289.js"),J=require("./index.cjs322.js"),Q=require("./index.cjs288.js"),W=require("./index.cjs324.js"),f=require("./index.cjs161.js");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=X(H);var _="rovingFocusGroup.onEntryFocus",Z={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[j,G,ee]=B.createCollection(g),[te,oe]=z.createContextScope(g,[ee]),[re,ne]=te(g),A=c.forwardRef((e,o)=>f.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(se,{...e,ref:o})})}));A.displayName=g;var se=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:R=!1,dir:I,currentTabStopId:x,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:p,onEntryFocus:u,preventScrollOnEntryFocus:E=!1,...S}=e,v=c.useRef(null),b=Y.useComposedRefs(o,v),n=W.useDirection(I),[l=null,w]=Q.useControllableState({prop:x,defaultProp:F,onChange:p}),[i,a]=c.useState(!1),T=J.useCallbackRef(u),M=G(r),C=c.useRef(!1),[K,O]=c.useState(0);return c.useEffect(()=>{const s=v.current;if(s)return s.addEventListener(_,T),()=>s.removeEventListener(_,T)},[T]),f.jsxRuntimeExports.jsx(re,{scope:r,orientation:t,dir:n,loop:R,currentTabStopId:l,onItemFocus:c.useCallback(s=>w(s),[w]),onItemShiftTab:c.useCallback(()=>a(!0),[]),onFocusableItemAdd:c.useCallback(()=>O(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>O(s=>s-1),[]),children:f.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:i||K===0?-1:0,"data-orientation":t,...S,ref:b,style:{outline:"none",...e.style},onMouseDown:m.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:m.composeEventHandlers(e.onFocus,s=>{const k=!C.current;if(s.target===s.currentTarget&&k&&!i){const P=new CustomEvent(_,Z);if(s.currentTarget.dispatchEvent(P),!P.defaultPrevented){const y=M().filter(d=>d.focusable),L=y.find(d=>d.active),U=y.find(d=>d.id===l),$=[L,U,...y].filter(Boolean).map(d=>d.ref.current);q($,E)}}C.current=!1}),onBlur:m.composeEventHandlers(e.onBlur,()=>a(!1))})})}),N="RovingFocusGroupItem",h=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:R=!1,tabStopId:I,...x}=e,F=V.useId(),p=I||F,u=ne(N,r),E=u.currentTabStopId===p,S=G(r),{onFocusableItemAdd:v,onFocusableItemRemove:b}=u;return c.useEffect(()=>{if(t)return v(),()=>b()},[t,v,b]),f.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:p,focusable:t,active:R,children:f.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:E?0:-1,"data-orientation":u.orientation,...x,ref:o,onMouseDown:m.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(p):n.preventDefault()}),onFocus:m.composeEventHandlers(e.onFocus,()=>u.onItemFocus(p)),onKeyDown:m.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const l=ie(n,u.orientation,u.dir);if(l!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=S().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")i.reverse();else if(l==="prev"||l==="next"){l==="prev"&&i.reverse();const a=i.indexOf(n.currentTarget);i=u.loop?ae(i,a+1):i.slice(a+1)}setTimeout(()=>q(i))}})})})});h.displayName=N;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ue(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ie(e,o,r){const t=ue(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ce[t]}function q(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ae(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var le=A,de=h;exports.Item=de;exports.Root=le;exports.RovingFocusGroup=A;exports.RovingFocusGroupItem=h;exports.createRovingFocusGroupScope=oe;
2
+ //# sourceMappingURL=index.cjs326.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs315.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":"yrBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAa,mBACb,CAACC,EAAYC,EAAeC,EAAqB,EAAIC,EAAAA,iBAAiBJ,CAAU,EAChF,CAACK,GAA+BC,EAA2B,EAAIC,EAAkB,mBACnFP,EACA,CAACG,EAAqB,CACxB,EACI,CAACK,GAAqBC,EAAqB,EAAIJ,GAA8BL,CAAU,EACvFU,EAAmBC,EAAM,WAC3B,CAACC,EAAOC,IACiBC,wBAAIb,EAAW,SAAU,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,wBAAIb,EAAW,KAAM,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,EAAAA,kBAAAA,IAAIC,GAAsB,CAAE,GAAGH,EAAO,IAAKC,EAAc,CAAC,CAAE,CAAC,CAAE,CAE5Q,EACAH,EAAiB,YAAcV,EAC/B,IAAIe,GAAuBJ,EAA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,QAAQP,EAAM,aAAa,EAC/DO,EAAiBU,EAAQ,KAAOO,GAAUjB,EAAgBgB,EAAe,CAAC,EAAIhB,EAAe,MAAMgB,EAAe,CAAC,CACrI,CACgB,WAAW,IAAMf,EAAWD,CAAc,CAAC,CAC3D,CACa,CAAA,CACb,CACA,CACA,CACK,CACL,CACA,EACAG,EAAqB,YAAcD,EACnC,IAAIgB,GAA0B,CAC5B,UAAW,OACX,QAAS,OACT,WAAY,OACZ,UAAW,OACX,OAAQ,QACR,KAAM,QACN,SAAU,OACV,IAAK,MACP,EACA,SAASC,GAAqBC,EAAKvD,EAAK,CACtC,OAAIA,IAAQ,MAAcuD,EACnBA,IAAQ,YAAc,aAAeA,IAAQ,aAAe,YAAcA,CACnF,CACA,SAASL,GAAetB,EAAO9B,EAAaE,EAAK,CAC/C,MAAMuD,EAAMD,GAAqB1B,EAAM,IAAK5B,CAAG,EAC/C,GAAI,EAAAF,IAAgB,YAAc,CAAC,YAAa,YAAY,EAAE,SAASyD,CAAG,IACtE,EAAAzD,IAAgB,cAAgB,CAAC,UAAW,WAAW,EAAE,SAASyD,CAAG,GACzE,OAAOF,GAAwBE,CAAG,CACpC,CACA,SAASnB,EAAWoB,EAAYC,EAAgB,GAAO,CACrD,MAAMC,EAA6B,SAAS,cAC5C,UAAWC,KAAaH,EAGtB,GAFIG,IAAcD,IAClBC,EAAU,MAAM,CAAE,cAAAF,EAAe,EAC7B,SAAS,gBAAkBC,GAA4B,MAE/D,CACA,SAASN,GAAUQ,EAAOC,EAAY,CACpC,OAAOD,EAAM,IAAI,CAACE,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM,MAAM,CAAC,CAC3E,CACG,IAACI,GAAOzE,EACP0E,GAAO3B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs326.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":"yrBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAa,mBACb,CAACC,EAAYC,EAAeC,EAAqB,EAAIC,EAAAA,iBAAiBJ,CAAU,EAChF,CAACK,GAA+BC,EAA2B,EAAIC,EAAkB,mBACnFP,EACA,CAACG,EAAqB,CACxB,EACI,CAACK,GAAqBC,EAAqB,EAAIJ,GAA8BL,CAAU,EACvFU,EAAmBC,EAAM,WAC3B,CAACC,EAAOC,IACiBC,wBAAIb,EAAW,SAAU,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,wBAAIb,EAAW,KAAM,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,EAAAA,kBAAAA,IAAIC,GAAsB,CAAE,GAAGH,EAAO,IAAKC,EAAc,CAAC,CAAE,CAAC,CAAE,CAE5Q,EACAH,EAAiB,YAAcV,EAC/B,IAAIe,GAAuBJ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,EAAe,QAAQP,EAAM,aAAa,EAC/DO,EAAiBU,EAAQ,KAAOO,GAAUjB,EAAgBgB,EAAe,CAAC,EAAIhB,EAAe,MAAMgB,EAAe,CAAC,CACrI,CACgB,WAAW,IAAMf,EAAWD,CAAc,CAAC,CAC3D,CACa,CAAA,CACb,CACA,CACA,CACK,CACL,CACA,EACAG,EAAqB,YAAcD,EACnC,IAAIgB,GAA0B,CAC5B,UAAW,OACX,QAAS,OACT,WAAY,OACZ,UAAW,OACX,OAAQ,QACR,KAAM,QACN,SAAU,OACV,IAAK,MACP,EACA,SAASC,GAAqBC,EAAKvD,EAAK,CACtC,OAAIA,IAAQ,MAAcuD,EACnBA,IAAQ,YAAc,aAAeA,IAAQ,aAAe,YAAcA,CACnF,CACA,SAASL,GAAetB,EAAO9B,EAAaE,EAAK,CAC/C,MAAMuD,EAAMD,GAAqB1B,EAAM,IAAK5B,CAAG,EAC/C,GAAI,EAAAF,IAAgB,YAAc,CAAC,YAAa,YAAY,EAAE,SAASyD,CAAG,IACtE,EAAAzD,IAAgB,cAAgB,CAAC,UAAW,WAAW,EAAE,SAASyD,CAAG,GACzE,OAAOF,GAAwBE,CAAG,CACpC,CACA,SAASnB,EAAWoB,EAAYC,EAAgB,GAAO,CACrD,MAAMC,EAA6B,SAAS,cAC5C,UAAWC,KAAaH,EAGtB,GAFIG,IAAcD,IAClBC,EAAU,MAAM,CAAE,cAAAF,EAAe,EAC7B,SAAS,gBAAkBC,GAA4B,MAE/D,CACA,SAASN,GAAUQ,EAAOC,EAAY,CACpC,OAAOD,EAAM,IAAI,CAACE,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM,MAAM,CAAC,CAC3E,CACG,IAACI,GAAOzE,EACP0E,GAAO3B","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=a(r);var u=globalThis!=null&&globalThis.document?n.useLayoutEffect:()=>{};exports.useLayoutEffect=u;
2
- //# sourceMappingURL=index.cjs318.js.map
2
+ //# sourceMappingURL=index.cjs327.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs318.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":"mYAEG,IAACA,EAA2B,6BAAY,SAAYC,EAAM,gBAAkB,IAAM,CACrF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs327.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":"mYAEG,IAACA,EAA2B,6BAAY,SAAYC,EAAM,gBAAkB,IAAM,CACrF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs306.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis==null?void 0:globalThis.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs322.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis==null?void 0:globalThis.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
2
2
  //# sourceMappingURL=index.cjs328.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\nimport clsx from \"clsx\";\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\nimport { Loader, Row } from \"@/components\";\n\ntype TabItem = {\n label: string;\n disabled?: boolean;\n};\n\ntype ActionItem = PropsWithChildren<{\n label: string;\n icon: ReactNode;\n onClick: () => void;\n loading?: boolean;\n}>;\n\ntype TabsGlossaryProps = {\n CTA?: \"link\" | \"primary\";\n navigationItems: TabItem[];\n activeIndex: number;\n onTabChange: (index: number) => void;\n actions?: ActionItem[];\n children?: ReactNode;\n // onDownload?: () => void;\n // onAdd?: () => void;\n // downloadAllLabel?: string;\n // addDocumentLabel?: string;\n // actionType?: \"download\" | \"add\" | null;\n};\n\nexport const TabsGlossary = ({\n CTA = \"link\",\n navigationItems,\n children,\n activeIndex = 0,\n onTabChange,\n actions = [],\n // onDownload,\n // onAdd,\n // downloadAllLabel = \"Scarica tutti\",\n // addDocumentLabel = \"Aggiungi documento\",\n // actionType,\n}: TabsGlossaryProps) => {\n const [active, setActive] = useState(activeIndex);\n\n // const isDownloading = loading && actionType === \"download\";\n // const isAdding = loading && actionType === \"add\";\n\n return (\n <div>\n <div className={clsx(\"ui-document-container-tabs\")}>\n <nav 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,CAA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AC,MACC,SAACA,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,YAAa,CAAA,CAC/B,CAAA,CAAA,GAfiBG,CAiBrB,CACD,CAAA,CACH,CACF,CAAA,CAAA,CAAA,CAEJ,CACF,CAAA,CAEJ"}
1
+ {"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/TabsGlossary/index.tsx"],"sourcesContent":["import \"./TabsGlossary.scss\";\r\nimport clsx from \"clsx\";\r\nimport React, { PropsWithChildren, ReactNode, useState } from \"react\";\r\nimport { Loader, Row } from \"@/components\";\r\n\r\ntype TabItem = {\r\n label: string;\r\n disabled?: boolean;\r\n};\r\n\r\ntype ActionItem = PropsWithChildren<{\r\n label: string;\r\n icon: ReactNode;\r\n onClick: () => void;\r\n loading?: boolean;\r\n}>;\r\n\r\ntype TabsGlossaryProps = {\r\n CTA?: \"link\" | \"primary\";\r\n navigationItems: TabItem[];\r\n activeIndex: number;\r\n onTabChange: (index: number) => void;\r\n actions?: ActionItem[];\r\n children?: ReactNode;\r\n // onDownload?: () => void;\r\n // onAdd?: () => void;\r\n // downloadAllLabel?: string;\r\n // addDocumentLabel?: string;\r\n // actionType?: \"download\" | \"add\" | null;\r\n};\r\n\r\nexport const TabsGlossary = ({\r\n CTA = \"link\",\r\n navigationItems,\r\n children,\r\n activeIndex = 0,\r\n onTabChange,\r\n actions = [],\r\n // onDownload,\r\n // onAdd,\r\n // downloadAllLabel = \"Scarica tutti\",\r\n // addDocumentLabel = \"Aggiungi documento\",\r\n // actionType,\r\n}: TabsGlossaryProps) => {\r\n const [active, setActive] = useState(activeIndex);\r\n\r\n // const isDownloading = loading && actionType === \"download\";\r\n // const isAdding = loading && actionType === \"add\";\r\n\r\n return (\r\n <div>\r\n <div className={clsx(\"ui-document-container-tabs\")}>\r\n <nav 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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bol.toStringTag,{value:"Module"});const c=require("react"),u=require("./index.cjs293.js"),i=require("./index.cjs161.js");function l(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 d=l(c);var f="Arrow",n=d.forwardRef((e,r)=>{const{children:t,width:o=10,height:s=5,...a}=e;return i.jsxRuntimeExports.jsx(u.Primitive.svg,{...a,ref:r,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:i.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});n.displayName=f;var p=n;exports.Arrow=n;exports.Root=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),u=require("./index.cjs289.js"),i=require("./index.cjs161.js");function l(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 d=l(c);var f="Arrow",n=d.forwardRef((e,r)=>{const{children:t,width:o=10,height:s=5,...a}=e;return i.jsxRuntimeExports.jsx(u.Primitive.svg,{...a,ref:r,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:i.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});n.displayName=f;var p=n;exports.Arrow=n;exports.Root=p;
2
2
  //# sourceMappingURL=index.cjs330.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs343.js");var r=e.createSidecarMedium();exports.effectCar=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs347.js");var r=e.createSidecarMedium();exports.effectCar=r;
2
2
  //# sourceMappingURL=index.cjs336.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index.cjs332.js"),q=require("react"),j=require("./index.cjs344.js"),_=require("./index.cjs345.js"),d=require("./index.cjs346.js"),E=require("./index.cjs347.js");function p(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=p(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},R=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},A=function(e,a){return e[0]===a[0]&&e[1]===a[1]},x=function(e){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index.cjs332.js"),q=require("react"),j=require("./index.cjs343.js"),_=require("./index.cjs344.js"),d=require("./index.cjs345.js"),E=require("./index.cjs346.js");function p(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=p(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},R=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},A=function(e,a){return e[0]===a[0]&&e[1]===a[1]},x=function(e){return`
2
2
  .block-interactivity-`.concat(e,` {pointer-events: none;}
3
3
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
4
4
  `)},I=0,v=[];function W(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(I++)[0],S=n.useState(_.styleSingleton)[0],b=n.useRef(e);n.useEffect(function(){b.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=O.__spreadArray([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var k=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!b.current.allowPinchZoom;var s=g(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,P=t.target,m=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&m==="h"&&P.type==="range")return!1;var C=E.locationCouldBeScrolled(m,P);if(!C)return!0;if(C?c=m:(c=m==="v"?"h":"v",C=E.locationCouldBeScrolled(m,P)),!C)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var Y=i.current||c;return E.handleScroll(Y,r,t,Y==="h"?o:f)},[]),y=n.useCallback(function(t){var r=t;if(!(!v.length||v[v.length-1]!==S)){var s="deltaY"in r?R(r):g(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&A(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(b.current.shards||[]).map(M).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?k(r,o[0]):!b.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),w=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:z(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),T=n.useCallback(function(t){l.current=g(t),i.current=void 0},[]),L=n.useCallback(function(t){w(t.type,R(t),t.target,k(t,e.lockRef.current))},[]),X=n.useCallback(function(t){w(t.type,g(t),t.target,k(t,e.lockRef.current))},[]);n.useEffect(function(){return v.push(S),e.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:X}),document.addEventListener("wheel",y,d.nonPassive),document.addEventListener("touchmove",y,d.nonPassive),document.addEventListener("touchstart",T,d.nonPassive),function(){v=v.filter(function(t){return t!==S}),document.removeEventListener("wheel",y,d.nonPassive),document.removeEventListener("touchmove",y,d.nonPassive),document.removeEventListener("touchstart",T,d.nonPassive)}},[]);var B=e.removeScrollBar,D=e.inert;return n.createElement(n.Fragment,null,D?n.createElement(S,{styles:x(h)}):null,B?n.createElement(j.RemoveScrollBar,{gapMode:e.gapMode}):null)}function z(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=W;exports.getDeltaXY=R;exports.getTouchXY=g;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/VideoPlayer/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./VideoPlayer.scss\";\nimport { ArrowDown } from \"@/icons/ArrowDown\";\nimport { useState } from \"react\";\nimport { Col } from \"@/components\";\n\ntype Image = {\n alt: string;\n src: string;\n title: string;\n};\n\nconst sizeStyles = {\n small: {\n width: \"311px\",\n },\n medium: {\n width: \"388px\",\n },\n large: {\n width: \"666px\",\n },\n};\n\nconst imgSize = {\n small: {\n heightImg: \"170px\",\n },\n medium: {\n heightImg: \"183px\",\n },\n large: {\n heightImg: \"371px\",\n },\n};\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype VideoPlayerProps = {\n btnText: string;\n sizeComp?: \"small\" | \"medium\" | \"large\";\n titleTag: HeadingLevel;\n image?: Image;\n asImage?: \"img\";\n};\n\nexport const VideoPlayer = ({\n btnText = \"Trascrizione\",\n sizeComp = \"large\",\n titleTag: TitleTag = \"h3\",\n image,\n asImage = \"img\",\n}: VideoPlayerProps) => {\n const ImageComponent = asImage;\n const { width } = sizeStyles[sizeComp];\n const { heightImg } = imgSize[sizeComp];\n const [isExpanded, setExpanded] = useState(false);\n return (\n <Col\n br={\"x4\"}\n style={{ width: width }}\n className={clsx(\"shadow\", isExpanded && \"ui-expanded\")}\n >\n {/*to be replaced with video player*/}\n <div\n style={{ height: heightImg }}\n className={clsx(\"cardImgWrapper\", \"w-full\")}\n >\n <ImageComponent\n src={image?.src}\n className={clsx(\"cardImg\", \"br-x4 h-full w-full\")}\n alt=\"...\"\n />\n <div className={clsx(\"cardImgMask\")}></div>\n </div>\n <div\n className={clsx(\n \"accordion\",\n \"base-row justify-content-between align-items-center px-x24 w-full flex-1\",\n )}\n >\n <button\n className={clsx(\n \"ui-btn-accordion\",\n \"base-row justify-content-between align-items-center\",\n )}\n type=\"button\"\n onClick={() => setExpanded(!isExpanded)}\n >\n <TitleTag\n className={clsx(\n \"fw-semibold text-primary base-col justify-content-center\",\n )}\n >\n {btnText}\n </TitleTag>\n <ArrowDown\n color={\"primary\"}\n className={clsx(\"ui-arrow\", { [\"expanded\"]: isExpanded })}\n />\n </button>\n </div>\n {isExpanded && (\n <div\n className={clsx(\n \"pt-x8 px-x24 pb-x40 fs-6 fw-regular text-grey-black\",\n )}\n >\n <p>\n Placeholder content for this accordion, which is intended to\n demonstrate the <code>.accordion-flush</code> class. This is the\n first item's accordion body.\n </p>\n </div>\n )}\n </Col>\n );\n};\n"],"names":["sizeStyles","imgSize","VideoPlayer","btnText","sizeComp","TitleTag","image","asImage","ImageComponent","width","heightImg","isExpanded","setExpanded","useState","jsxs","Col","clsx","jsx","ArrowDown"],"mappings":"sQAYMA,EAAa,CACjB,MAAO,CACL,MAAO,OACT,EACA,OAAQ,CACN,MAAO,OACT,EACA,MAAO,CACL,MAAO,OAAA,CAEX,EAEMC,EAAU,CACd,MAAO,CACL,UAAW,OACb,EACA,OAAQ,CACN,UAAW,OACb,EACA,MAAO,CACL,UAAW,OAAA,CAEf,EAYaC,EAAc,CAAC,CAC1B,QAAAC,EAAU,eACV,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AEA,kCAAC,IAAE,CAAA,SAAA,CAAA,gFAEeC,EAAAA,kBAAAA,IAAC,QAAK,SAAgB,kBAAA,CAAA,EAAO,kDAAA,CAE/C,CAAA,CAAA,CAAA,CACF,CAAA,CAEJ,CAEJ"}
1
+ {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/VideoPlayer/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./VideoPlayer.scss\";\r\nimport { ArrowDown } from \"@/icons/ArrowDown\";\r\nimport { useState } from \"react\";\r\nimport { Col } from \"@/components\";\r\n\r\ntype Image = {\r\n alt: string;\r\n src: string;\r\n title: string;\r\n};\r\n\r\nconst sizeStyles = {\r\n small: {\r\n width: \"311px\",\r\n },\r\n medium: {\r\n width: \"388px\",\r\n },\r\n large: {\r\n width: \"666px\",\r\n },\r\n};\r\n\r\nconst imgSize = {\r\n small: {\r\n heightImg: \"170px\",\r\n },\r\n medium: {\r\n heightImg: \"183px\",\r\n },\r\n large: {\r\n heightImg: \"371px\",\r\n },\r\n};\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype VideoPlayerProps = {\r\n btnText: string;\r\n sizeComp?: \"small\" | \"medium\" | \"large\";\r\n titleTag: HeadingLevel;\r\n image?: Image;\r\n asImage?: \"img\";\r\n};\r\n\r\nexport const VideoPlayer = ({\r\n btnText = \"Trascrizione\",\r\n sizeComp = \"large\",\r\n titleTag: TitleTag = \"h3\",\r\n image,\r\n asImage = \"img\",\r\n}: VideoPlayerProps) => {\r\n const ImageComponent = asImage;\r\n const { width } = sizeStyles[sizeComp];\r\n const { heightImg } = imgSize[sizeComp];\r\n const [isExpanded, setExpanded] = useState(false);\r\n return (\r\n <Col\r\n br={\"x4\"}\r\n style={{ width: width }}\r\n className={clsx(\"shadow\", isExpanded && \"ui-expanded\")}\r\n >\r\n {/*to be replaced with video player*/}\r\n <div\r\n style={{ height: heightImg }}\r\n className={clsx(\"cardImgWrapper\", \"w-full\")}\r\n >\r\n <ImageComponent\r\n src={image?.src}\r\n className={clsx(\"cardImg\", \"br-x4 h-full w-full\")}\r\n alt=\"...\"\r\n />\r\n <div className={clsx(\"cardImgMask\")}></div>\r\n </div>\r\n <div\r\n className={clsx(\r\n \"accordion\",\r\n \"base-row justify-content-between align-items-center px-x24 w-full flex-1\",\r\n )}\r\n >\r\n <button\r\n className={clsx(\r\n \"ui-btn-accordion\",\r\n \"base-row justify-content-between align-items-center\",\r\n )}\r\n type=\"button\"\r\n onClick={() => setExpanded(!isExpanded)}\r\n >\r\n <TitleTag\r\n className={clsx(\r\n \"fw-semibold text-primary base-col justify-content-center\",\r\n )}\r\n >\r\n {btnText}\r\n </TitleTag>\r\n <ArrowDown\r\n color={\"primary\"}\r\n className={clsx(\"ui-arrow\", { [\"expanded\"]: isExpanded })}\r\n />\r\n </button>\r\n </div>\r\n {isExpanded && (\r\n <div\r\n className={clsx(\r\n \"pt-x8 px-x24 pb-x40 fs-6 fw-regular text-grey-black\",\r\n )}\r\n >\r\n <p>\r\n Placeholder content for this accordion, which is intended to\r\n demonstrate the <code>.accordion-flush</code> class. This is the\r\n first item's accordion body.\r\n </p>\r\n </div>\r\n )}\r\n </Col>\r\n );\r\n};\r\n"],"names":["sizeStyles","imgSize","VideoPlayer","btnText","sizeComp","TitleTag","image","asImage","ImageComponent","width","heightImg","isExpanded","setExpanded","useState","jsxs","Col","clsx","jsx","ArrowDown"],"mappings":"sQAYMA,EAAa,CACjB,MAAO,CACL,MAAO,OACT,EACA,OAAQ,CACN,MAAO,OACT,EACA,MAAO,CACL,MAAO,OAAA,CAEX,EAEMC,EAAU,CACd,MAAO,CACL,UAAW,OACb,EACA,OAAQ,CACN,UAAW,OACb,EACA,MAAO,CACL,UAAW,OAAA,CAEf,EAYaC,EAAc,CAAC,CAC1B,QAAAC,EAAU,eACV,SAAAC,EAAW,QACX,SAAUC,EAAW,KACrB,MAAAC,EACA,QAAAC,EAAU,KACZ,IAAwB,CACtB,MAAMC,EAAiBD,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,kDAAA,CAE/C,CAAA,CAAA,CAAA,CACF,CAAA,CAEJ,CAEJ"}
@@ -1,2 +1,39 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs332.js");function l(n){return n}function h(n,t){t===void 0&&(t=l);var e=[],o=!1,c={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(u){var r=t(u,o);return e.push(r),function(){e=e.filter(function(i){return i!==r})}},assignSyncMedium:function(u){for(o=!0;e.length;){var r=e;e=[],r.forEach(u)}e={push:function(i){return u(i)},filter:function(){return e}}},assignMedium:function(u){o=!0;var r=[];if(e.length){var i=e;e=[],i.forEach(u),r=e}var s=function(){var f=r;r=[],f.forEach(u)},a=function(){return Promise.resolve().then(s)};a(),e={push:function(f){r.push(f),a()},filter:function(f){return r=r.filter(f),e}}}};return c}function m(n){n===void 0&&(n={});var t=h(null);return t.options=d.__assign({async:!0,ssr:!1},n),t}exports.createSidecarMedium=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("./index.cjs344.js"),o=require("./index.cjs335.js"),p=require("./index.cjs353.js");function v(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(c,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return c.default=t,Object.freeze(c)}const u=v(f);var m=b.styleSingleton(),r="data-scroll-locked",h=function(t,c,e,n){var i=t.left,l=t.top,d=t.right,a=t.gap;return e===void 0&&(e="margin"),`
2
+ .`.concat(o.noScrollbarsClassName,` {
3
+ overflow: hidden `).concat(n,`;
4
+ padding-right: `).concat(a,"px ").concat(n,`;
5
+ }
6
+ body[`).concat(r,`] {
7
+ overflow: hidden `).concat(n,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([c&&"position: relative ".concat(n,";"),e==="margin"&&`
10
+ padding-left: `.concat(i,`px;
11
+ padding-top: `).concat(l,`px;
12
+ padding-right: `).concat(d,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(a,"px ").concat(n,`;
16
+ `),e==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(o.zeroRightClassName,` {
20
+ right: `).concat(a,"px ").concat(n,`;
21
+ }
22
+
23
+ .`).concat(o.fullWidthClassName,` {
24
+ margin-right: `).concat(a,"px ").concat(n,`;
25
+ }
26
+
27
+ .`).concat(o.zeroRightClassName," .").concat(o.zeroRightClassName,` {
28
+ right: 0 `).concat(n,`;
29
+ }
30
+
31
+ .`).concat(o.fullWidthClassName," .").concat(o.fullWidthClassName,` {
32
+ margin-right: 0 `).concat(n,`;
33
+ }
34
+
35
+ body[`).concat(r,`] {
36
+ `).concat(o.removedBarSizeVariable,": ").concat(a,`px;
37
+ }
38
+ `)},s=function(){var t=parseInt(document.body.getAttribute(r)||"0",10);return isFinite(t)?t:0},g=function(){u.useEffect(function(){return document.body.setAttribute(r,(s()+1).toString()),function(){var t=s()-1;t<=0?document.body.removeAttribute(r):document.body.setAttribute(r,t.toString())}},[])},y=function(t){var c=t.noRelative,e=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;g();var l=u.useMemo(function(){return p.getGapWidth(i)},[i]);return u.createElement(m,{styles:h(l,!c,i,e?"":"!important")})};exports.RemoveScrollBar=y;exports.lockAttribute=r;exports.useLockAttribute=g;
2
39
  //# sourceMappingURL=index.cjs343.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs343.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":"qHACA,SAASA,EAAKC,EAAG,CACb,OAAOA,CACX,CACA,SAASC,EAAkBC,EAAUC,EAAY,CACzCA,IAAe,SAAUA,EAAaJ,GAC1C,IAAIK,EAAS,CAAE,EACXC,EAAW,GACXC,EAAS,CACT,KAAM,UAAY,CACd,GAAID,EACA,MAAM,IAAI,MAAM,kGAAkG,EAEtH,OAAID,EAAO,OACAA,EAA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":3,"file":"index.cjs343.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":"geAIA,IAAIA,EAAQC,EAAAA,eAAgB,EACjBC,EAAgB,qBAIvBC,EAAY,SAAUC,EAAIC,EAAeC,EAASC,EAAW,CAC7D,IAAIC,EAAOJ,EAAG,KAAMK,EAAML,EAAG,IAAKM,EAAQN,EAAG,MAAOO,EAAMP,EAAG,IAC7D,OAAIE,IAAY,SAAUA,EAAU,UAC7B;AAAA,KAAQ,OAAOM,EAAqB,sBAAE;AAAA,qBAA0B,EAAE,OAAOL,EAAW;AAAA,mBAAuB,EAAE,OAAOI,EAAK,KAAK,EAAE,OAAOJ,EAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,EAAe;AAAA,sBAA4B,EAAE,OA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