@anoki/fse-ui 1.0.667 → 1.0.669

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 (760) hide show
  1. package/dist/index.cjs.js.map +1 -1
  2. package/dist/index.cjs10.js.map +1 -1
  3. package/dist/index.cjs100.js.map +1 -1
  4. package/dist/index.cjs101.js.map +1 -1
  5. package/dist/index.cjs103.js.map +1 -1
  6. package/dist/index.cjs105.js.map +1 -1
  7. package/dist/index.cjs106.js.map +1 -1
  8. package/dist/index.cjs107.js.map +1 -1
  9. package/dist/index.cjs108.js.map +1 -1
  10. package/dist/index.cjs109.js.map +1 -1
  11. package/dist/index.cjs11.js.map +1 -1
  12. package/dist/index.cjs110.js.map +1 -1
  13. package/dist/index.cjs111.js.map +1 -1
  14. package/dist/index.cjs112.js.map +1 -1
  15. package/dist/index.cjs113.js.map +1 -1
  16. package/dist/index.cjs114.js.map +1 -1
  17. package/dist/index.cjs115.js.map +1 -1
  18. package/dist/index.cjs117.js.map +1 -1
  19. package/dist/index.cjs118.js.map +1 -1
  20. package/dist/index.cjs12.js.map +1 -1
  21. package/dist/index.cjs120.js.map +1 -1
  22. package/dist/index.cjs122.js.map +1 -1
  23. package/dist/index.cjs123.js.map +1 -1
  24. package/dist/index.cjs124.js.map +1 -1
  25. package/dist/index.cjs125.js.map +1 -1
  26. package/dist/index.cjs126.js.map +1 -1
  27. package/dist/index.cjs127.js.map +1 -1
  28. package/dist/index.cjs128.js.map +1 -1
  29. package/dist/index.cjs129.js.map +1 -1
  30. package/dist/index.cjs13.js.map +1 -1
  31. package/dist/index.cjs130.js.map +1 -1
  32. package/dist/index.cjs131.js.map +1 -1
  33. package/dist/index.cjs132.js.map +1 -1
  34. package/dist/index.cjs133.js.map +1 -1
  35. package/dist/index.cjs134.js.map +1 -1
  36. package/dist/index.cjs135.js.map +1 -1
  37. package/dist/index.cjs136.js.map +1 -1
  38. package/dist/index.cjs137.js.map +1 -1
  39. package/dist/index.cjs138.js.map +1 -1
  40. package/dist/index.cjs139.js.map +1 -1
  41. package/dist/index.cjs14.js.map +1 -1
  42. package/dist/index.cjs140.js.map +1 -1
  43. package/dist/index.cjs141.js.map +1 -1
  44. package/dist/index.cjs142.js.map +1 -1
  45. package/dist/index.cjs143.js.map +1 -1
  46. package/dist/index.cjs144.js.map +1 -1
  47. package/dist/index.cjs145.js.map +1 -1
  48. package/dist/index.cjs146.js.map +1 -1
  49. package/dist/index.cjs147.js.map +1 -1
  50. package/dist/index.cjs148.js.map +1 -1
  51. package/dist/index.cjs149.js.map +1 -1
  52. package/dist/index.cjs15.js.map +1 -1
  53. package/dist/index.cjs150.js.map +1 -1
  54. package/dist/index.cjs151.js.map +1 -1
  55. package/dist/index.cjs152.js.map +1 -1
  56. package/dist/index.cjs153.js.map +1 -1
  57. package/dist/index.cjs154.js.map +1 -1
  58. package/dist/index.cjs155.js.map +1 -1
  59. package/dist/index.cjs156.js.map +1 -1
  60. package/dist/index.cjs157.js.map +1 -1
  61. package/dist/index.cjs158.js.map +1 -1
  62. package/dist/index.cjs159.js.map +1 -1
  63. package/dist/index.cjs16.js.map +1 -1
  64. package/dist/index.cjs160.js.map +1 -1
  65. package/dist/index.cjs161.js.map +1 -1
  66. package/dist/index.cjs162.js.map +1 -1
  67. package/dist/index.cjs163.js.map +1 -1
  68. package/dist/index.cjs164.js.map +1 -1
  69. package/dist/index.cjs165.js.map +1 -1
  70. package/dist/index.cjs166.js.map +1 -1
  71. package/dist/index.cjs167.js.map +1 -1
  72. package/dist/index.cjs168.js.map +1 -1
  73. package/dist/index.cjs169.js.map +1 -1
  74. package/dist/index.cjs17.js.map +1 -1
  75. package/dist/index.cjs170.js.map +1 -1
  76. package/dist/index.cjs171.js.map +1 -1
  77. package/dist/index.cjs172.js.map +1 -1
  78. package/dist/index.cjs178.js.map +1 -1
  79. package/dist/index.cjs179.js.map +1 -1
  80. package/dist/index.cjs18.js.map +1 -1
  81. package/dist/index.cjs180.js.map +1 -1
  82. package/dist/index.cjs181.js.map +1 -1
  83. package/dist/index.cjs182.js.map +1 -1
  84. package/dist/index.cjs183.js.map +1 -1
  85. package/dist/index.cjs184.js.map +1 -1
  86. package/dist/index.cjs19.js.map +1 -1
  87. package/dist/index.cjs20.js.map +1 -1
  88. package/dist/index.cjs206.js.map +1 -1
  89. package/dist/index.cjs209.js.map +1 -1
  90. package/dist/index.cjs21.js.map +1 -1
  91. package/dist/index.cjs212.js.map +1 -1
  92. package/dist/index.cjs216.js.map +1 -1
  93. package/dist/index.cjs219.js.map +1 -1
  94. package/dist/index.cjs22.js.map +1 -1
  95. package/dist/index.cjs225.js.map +1 -1
  96. package/dist/index.cjs226.js +1 -1
  97. package/dist/index.cjs226.js.map +1 -1
  98. package/dist/index.cjs227.js +1 -1
  99. package/dist/index.cjs227.js.map +1 -1
  100. package/dist/index.cjs23.js.map +1 -1
  101. package/dist/index.cjs233.js +1 -1
  102. package/dist/index.cjs234.js.map +1 -1
  103. package/dist/index.cjs237.js.map +1 -1
  104. package/dist/index.cjs242.js.map +1 -1
  105. package/dist/index.cjs243.js +1 -1
  106. package/dist/index.cjs247.js.map +1 -1
  107. package/dist/index.cjs249.js +1 -1
  108. package/dist/index.cjs25.js.map +1 -1
  109. package/dist/index.cjs250.js.map +1 -1
  110. package/dist/index.cjs251.js.map +1 -1
  111. package/dist/index.cjs252.js.map +1 -1
  112. package/dist/index.cjs253.js.map +1 -1
  113. package/dist/index.cjs255.js.map +1 -1
  114. package/dist/index.cjs256.js +1 -1
  115. package/dist/index.cjs256.js.map +1 -1
  116. package/dist/index.cjs257.js +1 -1
  117. package/dist/index.cjs257.js.map +1 -1
  118. package/dist/index.cjs26.js.map +1 -1
  119. package/dist/index.cjs260.js.map +1 -1
  120. package/dist/index.cjs261.js +1 -1
  121. package/dist/index.cjs261.js.map +1 -1
  122. package/dist/index.cjs266.js +1 -1
  123. package/dist/index.cjs266.js.map +1 -1
  124. package/dist/index.cjs267.js.map +1 -1
  125. package/dist/index.cjs268.js +1 -1
  126. package/dist/index.cjs268.js.map +1 -1
  127. package/dist/index.cjs27.js.map +1 -1
  128. package/dist/index.cjs270.js.map +1 -1
  129. package/dist/index.cjs271.js.map +1 -1
  130. package/dist/index.cjs272.js.map +1 -1
  131. package/dist/index.cjs275.js.map +1 -1
  132. package/dist/index.cjs276.js +1 -1
  133. package/dist/index.cjs28.js.map +1 -1
  134. package/dist/index.cjs30.js.map +1 -1
  135. package/dist/index.cjs31.js.map +1 -1
  136. package/dist/index.cjs316.js +1 -1
  137. package/dist/index.cjs32.js.map +1 -1
  138. package/dist/index.cjs324.js.map +1 -1
  139. package/dist/index.cjs329.js +1 -1
  140. package/dist/index.cjs33.js.map +1 -1
  141. package/dist/index.cjs335.js.map +1 -1
  142. package/dist/index.cjs337.js.map +1 -1
  143. package/dist/index.cjs34.js.map +1 -1
  144. package/dist/index.cjs341.js.map +1 -1
  145. package/dist/index.cjs343.js +1 -1
  146. package/dist/index.cjs344.js +1 -1
  147. package/dist/index.cjs345.js +1 -1
  148. package/dist/index.cjs35.js.map +1 -1
  149. package/dist/index.cjs353.js +1 -1
  150. package/dist/index.cjs36.js.map +1 -1
  151. package/dist/index.cjs360.js +1 -1
  152. package/dist/index.cjs366.js +1 -1
  153. package/dist/index.cjs367.js +1 -1
  154. package/dist/index.cjs37.js.map +1 -1
  155. package/dist/index.cjs371.js +1 -1
  156. package/dist/index.cjs372.js +1 -1
  157. package/dist/index.cjs373.js +1 -1
  158. package/dist/index.cjs374.js +1 -1
  159. package/dist/{index.cjs375.js → index.cjs376.js} +1 -1
  160. package/dist/index.cjs376.js.map +1 -0
  161. package/dist/index.cjs379.js +1 -1
  162. package/dist/index.cjs379.js.map +1 -1
  163. package/dist/index.cjs38.js.map +1 -1
  164. package/dist/index.cjs380.js +1 -1
  165. package/dist/index.cjs380.js.map +1 -1
  166. package/dist/index.cjs381.js +2 -0
  167. package/dist/index.cjs381.js.map +1 -0
  168. package/dist/index.cjs382.js +1 -1
  169. package/dist/index.cjs382.js.map +1 -1
  170. package/dist/{index.cjs391.js → index.cjs383.js} +2 -2
  171. package/dist/{index.cjs391.js.map → index.cjs383.js.map} +1 -1
  172. package/dist/index.cjs384.js +2 -0
  173. package/dist/index.cjs384.js.map +1 -0
  174. package/dist/{index.cjs393.js → index.cjs385.js} +1 -1
  175. package/dist/{index.cjs393.js.map → index.cjs385.js.map} +1 -1
  176. package/dist/{index.cjs394.js → index.cjs386.js} +2 -2
  177. package/dist/{index.cjs394.js.map → index.cjs386.js.map} +1 -1
  178. package/dist/{index.cjs395.js → index.cjs387.js} +1 -1
  179. package/dist/{index.cjs395.js.map → index.cjs387.js.map} +1 -1
  180. package/dist/{index.cjs396.js → index.cjs388.js} +1 -1
  181. package/dist/{index.cjs396.js.map → index.cjs388.js.map} +1 -1
  182. package/dist/index.cjs39.js.map +1 -1
  183. package/dist/index.cjs392.js +1 -1
  184. package/dist/index.cjs392.js.map +1 -1
  185. package/dist/index.cjs398.js +2 -0
  186. package/dist/index.cjs398.js.map +1 -0
  187. package/dist/index.cjs399.js +2 -0
  188. package/dist/index.cjs399.js.map +1 -0
  189. package/dist/index.cjs40.js.map +1 -1
  190. package/dist/index.cjs407.js +1 -1
  191. package/dist/index.cjs407.js.map +1 -1
  192. package/dist/index.cjs408.js +1 -1
  193. package/dist/index.cjs408.js.map +1 -1
  194. package/dist/index.cjs409.js +2 -0
  195. package/dist/index.cjs409.js.map +1 -0
  196. package/dist/index.cjs41.js.map +1 -1
  197. package/dist/index.cjs410.js +1 -1
  198. package/dist/index.cjs410.js.map +1 -1
  199. package/dist/index.cjs411.js +1 -1
  200. package/dist/index.cjs411.js.map +1 -1
  201. package/dist/index.cjs412.js +1 -1
  202. package/dist/index.cjs412.js.map +1 -1
  203. package/dist/index.cjs413.js +1 -1
  204. package/dist/index.cjs413.js.map +1 -1
  205. package/dist/index.cjs414.js +1 -2
  206. package/dist/index.cjs414.js.map +1 -1
  207. package/dist/index.cjs415.js +1 -1
  208. package/dist/index.cjs415.js.map +1 -1
  209. package/dist/index.cjs416.js +1 -1
  210. package/dist/index.cjs416.js.map +1 -1
  211. package/dist/index.cjs417.js +1 -1
  212. package/dist/index.cjs417.js.map +1 -1
  213. package/dist/index.cjs418.js +1 -1
  214. package/dist/index.cjs418.js.map +1 -1
  215. package/dist/index.cjs419.js +1 -1
  216. package/dist/index.cjs419.js.map +1 -1
  217. package/dist/index.cjs42.js.map +1 -1
  218. package/dist/index.cjs420.js +1 -1
  219. package/dist/index.cjs420.js.map +1 -1
  220. package/dist/index.cjs421.js +1 -1
  221. package/dist/index.cjs421.js.map +1 -1
  222. package/dist/index.cjs422.js +1 -1
  223. package/dist/index.cjs422.js.map +1 -1
  224. package/dist/index.cjs423.js +1 -1
  225. package/dist/index.cjs423.js.map +1 -1
  226. package/dist/index.cjs424.js +4 -1
  227. package/dist/index.cjs424.js.map +1 -1
  228. package/dist/index.cjs425.js +1 -1
  229. package/dist/index.cjs425.js.map +1 -1
  230. package/dist/index.cjs426.js +1 -1
  231. package/dist/index.cjs426.js.map +1 -1
  232. package/dist/index.cjs427.js +1 -1
  233. package/dist/index.cjs427.js.map +1 -1
  234. package/dist/index.cjs428.js +1 -1
  235. package/dist/index.cjs428.js.map +1 -1
  236. package/dist/index.cjs429.js +1 -1
  237. package/dist/index.cjs429.js.map +1 -1
  238. package/dist/index.cjs43.js.map +1 -1
  239. package/dist/index.cjs430.js +38 -1
  240. package/dist/index.cjs430.js.map +1 -1
  241. package/dist/index.cjs431.js +1 -1
  242. package/dist/index.cjs431.js.map +1 -1
  243. package/dist/index.cjs432.js +1 -1
  244. package/dist/index.cjs432.js.map +1 -1
  245. package/dist/index.cjs433.js +1 -1
  246. package/dist/index.cjs433.js.map +1 -1
  247. package/dist/index.cjs434.js +1 -1
  248. package/dist/index.cjs434.js.map +1 -1
  249. package/dist/index.cjs435.js +1 -1
  250. package/dist/index.cjs435.js.map +1 -1
  251. package/dist/index.cjs436.js +1 -1
  252. package/dist/index.cjs436.js.map +1 -1
  253. package/dist/index.cjs437.js +1 -1
  254. package/dist/index.cjs437.js.map +1 -1
  255. package/dist/index.cjs438.js +1 -1
  256. package/dist/index.cjs438.js.map +1 -1
  257. package/dist/index.cjs439.js +1 -1
  258. package/dist/index.cjs439.js.map +1 -1
  259. package/dist/index.cjs44.js.map +1 -1
  260. package/dist/index.cjs442.js +1 -1
  261. package/dist/index.cjs442.js.map +1 -1
  262. package/dist/index.cjs443.js +1 -1
  263. package/dist/index.cjs443.js.map +1 -1
  264. package/dist/index.cjs444.js +1 -1
  265. package/dist/index.cjs444.js.map +1 -1
  266. package/dist/index.cjs445.js +1 -1
  267. package/dist/index.cjs445.js.map +1 -1
  268. package/dist/index.cjs446.js +1 -1
  269. package/dist/index.cjs446.js.map +1 -1
  270. package/dist/index.cjs447.js +1 -4
  271. package/dist/index.cjs447.js.map +1 -1
  272. package/dist/index.cjs448.js +1 -1
  273. package/dist/index.cjs448.js.map +1 -1
  274. package/dist/index.cjs449.js +1 -5
  275. package/dist/index.cjs449.js.map +1 -1
  276. package/dist/index.cjs45.js.map +1 -1
  277. package/dist/index.cjs450.js +1 -1
  278. package/dist/index.cjs450.js.map +1 -1
  279. package/dist/index.cjs451.js +1 -1
  280. package/dist/index.cjs451.js.map +1 -1
  281. package/dist/index.cjs452.js +1 -1
  282. package/dist/index.cjs452.js.map +1 -1
  283. package/dist/index.cjs453.js +5 -1
  284. package/dist/index.cjs453.js.map +1 -1
  285. package/dist/index.cjs454.js +1 -1
  286. package/dist/index.cjs454.js.map +1 -1
  287. package/dist/index.cjs455.js +1 -1
  288. package/dist/index.cjs455.js.map +1 -1
  289. package/dist/index.cjs456.js +1 -1
  290. package/dist/index.cjs456.js.map +1 -1
  291. package/dist/index.cjs457.js +1 -1
  292. package/dist/index.cjs457.js.map +1 -1
  293. package/dist/index.cjs458.js +1 -1
  294. package/dist/index.cjs458.js.map +1 -1
  295. package/dist/index.cjs459.js +1 -1
  296. package/dist/index.cjs459.js.map +1 -1
  297. package/dist/index.cjs46.js.map +1 -1
  298. package/dist/index.cjs460.js +1 -1
  299. package/dist/index.cjs460.js.map +1 -1
  300. package/dist/index.cjs461.js +1 -38
  301. package/dist/index.cjs461.js.map +1 -1
  302. package/dist/index.cjs462.js +1 -1
  303. package/dist/index.cjs462.js.map +1 -1
  304. package/dist/index.cjs463.js +1 -1
  305. package/dist/index.cjs463.js.map +1 -1
  306. package/dist/index.cjs464.js +1 -1
  307. package/dist/index.cjs464.js.map +1 -1
  308. package/dist/index.cjs466.js +27 -1
  309. package/dist/index.cjs466.js.map +1 -1
  310. package/dist/index.cjs467.js +1 -1
  311. package/dist/index.cjs467.js.map +1 -1
  312. package/dist/index.cjs468.js +1 -1
  313. package/dist/index.cjs468.js.map +1 -1
  314. package/dist/index.cjs469.js +2 -1
  315. package/dist/index.cjs469.js.map +1 -1
  316. package/dist/index.cjs47.js.map +1 -1
  317. package/dist/index.cjs470.js +1 -1
  318. package/dist/index.cjs470.js.map +1 -1
  319. package/dist/index.cjs471.js +1 -1
  320. package/dist/index.cjs471.js.map +1 -1
  321. package/dist/index.cjs48.js.map +1 -1
  322. package/dist/index.cjs49.js.map +1 -1
  323. package/dist/index.cjs50.js.map +1 -1
  324. package/dist/index.cjs51.js.map +1 -1
  325. package/dist/index.cjs52.js.map +1 -1
  326. package/dist/index.cjs53.js.map +1 -1
  327. package/dist/index.cjs54.js.map +1 -1
  328. package/dist/index.cjs55.js.map +1 -1
  329. package/dist/index.cjs57.js.map +1 -1
  330. package/dist/index.cjs58.js.map +1 -1
  331. package/dist/index.cjs59.js.map +1 -1
  332. package/dist/index.cjs6.js.map +1 -1
  333. package/dist/index.cjs61.js.map +1 -1
  334. package/dist/index.cjs62.js.map +1 -1
  335. package/dist/index.cjs63.js.map +1 -1
  336. package/dist/index.cjs64.js.map +1 -1
  337. package/dist/index.cjs65.js.map +1 -1
  338. package/dist/index.cjs69.js.map +1 -1
  339. package/dist/index.cjs7.js.map +1 -1
  340. package/dist/index.cjs70.js.map +1 -1
  341. package/dist/index.cjs71.js.map +1 -1
  342. package/dist/index.cjs73.js.map +1 -1
  343. package/dist/index.cjs74.js.map +1 -1
  344. package/dist/index.cjs75.js.map +1 -1
  345. package/dist/index.cjs76.js.map +1 -1
  346. package/dist/index.cjs77.js.map +1 -1
  347. package/dist/index.cjs78.js.map +1 -1
  348. package/dist/index.cjs79.js.map +1 -1
  349. package/dist/index.cjs8.js.map +1 -1
  350. package/dist/index.cjs80.js.map +1 -1
  351. package/dist/index.cjs81.js.map +1 -1
  352. package/dist/index.cjs82.js.map +1 -1
  353. package/dist/index.cjs83.js.map +1 -1
  354. package/dist/index.cjs84.js.map +1 -1
  355. package/dist/index.cjs85.js.map +1 -1
  356. package/dist/index.cjs86.js.map +1 -1
  357. package/dist/index.cjs87.js.map +1 -1
  358. package/dist/index.cjs88.js.map +1 -1
  359. package/dist/index.cjs89.js.map +1 -1
  360. package/dist/index.cjs90.js.map +1 -1
  361. package/dist/index.cjs92.js.map +1 -1
  362. package/dist/index.cjs93.js.map +1 -1
  363. package/dist/index.cjs94.js.map +1 -1
  364. package/dist/index.cjs96.js.map +1 -1
  365. package/dist/index.cjs97.js.map +1 -1
  366. package/dist/index.cjs98.js.map +1 -1
  367. package/dist/index.cjs99.js.map +1 -1
  368. package/dist/index.es.js.map +1 -1
  369. package/dist/index.es10.js.map +1 -1
  370. package/dist/index.es100.js.map +1 -1
  371. package/dist/index.es101.js.map +1 -1
  372. package/dist/index.es103.js.map +1 -1
  373. package/dist/index.es105.js.map +1 -1
  374. package/dist/index.es106.js.map +1 -1
  375. package/dist/index.es107.js.map +1 -1
  376. package/dist/index.es108.js.map +1 -1
  377. package/dist/index.es109.js.map +1 -1
  378. package/dist/index.es11.js.map +1 -1
  379. package/dist/index.es110.js.map +1 -1
  380. package/dist/index.es111.js.map +1 -1
  381. package/dist/index.es112.js.map +1 -1
  382. package/dist/index.es113.js.map +1 -1
  383. package/dist/index.es114.js.map +1 -1
  384. package/dist/index.es115.js.map +1 -1
  385. package/dist/index.es117.js.map +1 -1
  386. package/dist/index.es118.js.map +1 -1
  387. package/dist/index.es12.js.map +1 -1
  388. package/dist/index.es120.js.map +1 -1
  389. package/dist/index.es122.js.map +1 -1
  390. package/dist/index.es123.js.map +1 -1
  391. package/dist/index.es124.js.map +1 -1
  392. package/dist/index.es125.js.map +1 -1
  393. package/dist/index.es126.js.map +1 -1
  394. package/dist/index.es127.js.map +1 -1
  395. package/dist/index.es128.js.map +1 -1
  396. package/dist/index.es129.js.map +1 -1
  397. package/dist/index.es13.js.map +1 -1
  398. package/dist/index.es130.js.map +1 -1
  399. package/dist/index.es131.js.map +1 -1
  400. package/dist/index.es132.js.map +1 -1
  401. package/dist/index.es133.js.map +1 -1
  402. package/dist/index.es134.js.map +1 -1
  403. package/dist/index.es135.js.map +1 -1
  404. package/dist/index.es136.js.map +1 -1
  405. package/dist/index.es137.js.map +1 -1
  406. package/dist/index.es138.js.map +1 -1
  407. package/dist/index.es139.js.map +1 -1
  408. package/dist/index.es14.js.map +1 -1
  409. package/dist/index.es140.js.map +1 -1
  410. package/dist/index.es141.js.map +1 -1
  411. package/dist/index.es142.js.map +1 -1
  412. package/dist/index.es143.js.map +1 -1
  413. package/dist/index.es144.js.map +1 -1
  414. package/dist/index.es145.js.map +1 -1
  415. package/dist/index.es146.js.map +1 -1
  416. package/dist/index.es147.js.map +1 -1
  417. package/dist/index.es148.js.map +1 -1
  418. package/dist/index.es149.js.map +1 -1
  419. package/dist/index.es15.js.map +1 -1
  420. package/dist/index.es150.js.map +1 -1
  421. package/dist/index.es151.js.map +1 -1
  422. package/dist/index.es152.js.map +1 -1
  423. package/dist/index.es153.js.map +1 -1
  424. package/dist/index.es154.js.map +1 -1
  425. package/dist/index.es155.js.map +1 -1
  426. package/dist/index.es156.js.map +1 -1
  427. package/dist/index.es157.js.map +1 -1
  428. package/dist/index.es158.js.map +1 -1
  429. package/dist/index.es159.js.map +1 -1
  430. package/dist/index.es16.js.map +1 -1
  431. package/dist/index.es160.js.map +1 -1
  432. package/dist/index.es161.js.map +1 -1
  433. package/dist/index.es162.js.map +1 -1
  434. package/dist/index.es163.js.map +1 -1
  435. package/dist/index.es164.js.map +1 -1
  436. package/dist/index.es165.js.map +1 -1
  437. package/dist/index.es166.js.map +1 -1
  438. package/dist/index.es167.js.map +1 -1
  439. package/dist/index.es168.js.map +1 -1
  440. package/dist/index.es169.js.map +1 -1
  441. package/dist/index.es17.js.map +1 -1
  442. package/dist/index.es170.js.map +1 -1
  443. package/dist/index.es171.js.map +1 -1
  444. package/dist/index.es172.js.map +1 -1
  445. package/dist/index.es178.js.map +1 -1
  446. package/dist/index.es179.js.map +1 -1
  447. package/dist/index.es18.js.map +1 -1
  448. package/dist/index.es180.js.map +1 -1
  449. package/dist/index.es181.js.map +1 -1
  450. package/dist/index.es182.js.map +1 -1
  451. package/dist/index.es183.js.map +1 -1
  452. package/dist/index.es184.js.map +1 -1
  453. package/dist/index.es19.js.map +1 -1
  454. package/dist/index.es20.js.map +1 -1
  455. package/dist/index.es206.js.map +1 -1
  456. package/dist/index.es209.js.map +1 -1
  457. package/dist/index.es21.js.map +1 -1
  458. package/dist/index.es212.js.map +1 -1
  459. package/dist/index.es216.js.map +1 -1
  460. package/dist/index.es219.js.map +1 -1
  461. package/dist/index.es22.js.map +1 -1
  462. package/dist/index.es225.js.map +1 -1
  463. package/dist/index.es226.js +1 -1
  464. package/dist/index.es226.js.map +1 -1
  465. package/dist/index.es227.js +1 -1
  466. package/dist/index.es227.js.map +1 -1
  467. package/dist/index.es23.js.map +1 -1
  468. package/dist/index.es233.js +3 -3
  469. package/dist/index.es234.js.map +1 -1
  470. package/dist/index.es237.js.map +1 -1
  471. package/dist/index.es242.js.map +1 -1
  472. package/dist/index.es243.js +1 -1
  473. package/dist/index.es247.js.map +1 -1
  474. package/dist/index.es249.js +8 -8
  475. package/dist/index.es25.js.map +1 -1
  476. package/dist/index.es250.js.map +1 -1
  477. package/dist/index.es251.js.map +1 -1
  478. package/dist/index.es252.js.map +1 -1
  479. package/dist/index.es253.js.map +1 -1
  480. package/dist/index.es255.js.map +1 -1
  481. package/dist/index.es256.js +1 -1
  482. package/dist/index.es256.js.map +1 -1
  483. package/dist/index.es257.js +1 -1
  484. package/dist/index.es257.js.map +1 -1
  485. package/dist/index.es26.js.map +1 -1
  486. package/dist/index.es260.js.map +1 -1
  487. package/dist/index.es261.js +1 -1
  488. package/dist/index.es261.js.map +1 -1
  489. package/dist/index.es266.js +1 -1
  490. package/dist/index.es266.js.map +1 -1
  491. package/dist/index.es267.js.map +1 -1
  492. package/dist/index.es268.js +1 -1
  493. package/dist/index.es268.js.map +1 -1
  494. package/dist/index.es27.js.map +1 -1
  495. package/dist/index.es270.js.map +1 -1
  496. package/dist/index.es271.js.map +1 -1
  497. package/dist/index.es272.js.map +1 -1
  498. package/dist/index.es275.js.map +1 -1
  499. package/dist/index.es276.js +2 -2
  500. package/dist/index.es28.js.map +1 -1
  501. package/dist/index.es30.js.map +1 -1
  502. package/dist/index.es31.js.map +1 -1
  503. package/dist/index.es316.js +1 -1
  504. package/dist/index.es32.js.map +1 -1
  505. package/dist/index.es324.js.map +1 -1
  506. package/dist/index.es329.js +8 -8
  507. package/dist/index.es33.js.map +1 -1
  508. package/dist/index.es335.js.map +1 -1
  509. package/dist/index.es337.js.map +1 -1
  510. package/dist/index.es34.js.map +1 -1
  511. package/dist/index.es341.js.map +1 -1
  512. package/dist/index.es343.js +3 -3
  513. package/dist/index.es344.js +2 -2
  514. package/dist/index.es345.js +3 -3
  515. package/dist/index.es35.js.map +1 -1
  516. package/dist/index.es353.js +1 -1
  517. package/dist/index.es36.js.map +1 -1
  518. package/dist/index.es360.js +2 -2
  519. package/dist/index.es366.js +1 -1
  520. package/dist/index.es367.js +1 -1
  521. package/dist/index.es37.js.map +1 -1
  522. package/dist/index.es371.js +1 -1
  523. package/dist/index.es372.js +1 -1
  524. package/dist/index.es373.js +13 -13
  525. package/dist/index.es374.js +1 -1
  526. package/dist/{index.es375.js → index.es376.js} +1 -1
  527. package/dist/index.es376.js.map +1 -0
  528. package/dist/index.es379.js +5 -24
  529. package/dist/index.es379.js.map +1 -1
  530. package/dist/index.es38.js.map +1 -1
  531. package/dist/index.es380.js +23 -67
  532. package/dist/index.es380.js.map +1 -1
  533. package/dist/index.es381.js +72 -0
  534. package/dist/index.es381.js.map +1 -0
  535. package/dist/index.es382.js +124 -14
  536. package/dist/index.es382.js.map +1 -1
  537. package/dist/{index.es391.js → index.es383.js} +2 -2
  538. package/dist/{index.es391.js.map → index.es383.js.map} +1 -1
  539. package/dist/index.es384.js +17 -0
  540. package/dist/index.es384.js.map +1 -0
  541. package/dist/{index.es393.js → index.es385.js} +1 -1
  542. package/dist/{index.es393.js.map → index.es385.js.map} +1 -1
  543. package/dist/{index.es394.js → index.es386.js} +4 -4
  544. package/dist/{index.es394.js.map → index.es386.js.map} +1 -1
  545. package/dist/{index.es395.js → index.es387.js} +1 -1
  546. package/dist/{index.es395.js.map → index.es387.js.map} +1 -1
  547. package/dist/{index.es396.js → index.es388.js} +1 -1
  548. package/dist/{index.es396.js.map → index.es388.js.map} +1 -1
  549. package/dist/index.es39.js.map +1 -1
  550. package/dist/index.es392.js +15 -14
  551. package/dist/index.es392.js.map +1 -1
  552. package/dist/index.es398.js +5 -0
  553. package/dist/index.es398.js.map +1 -0
  554. package/dist/index.es399.js +5 -0
  555. package/dist/index.es399.js.map +1 -0
  556. package/dist/index.es40.js.map +1 -1
  557. package/dist/index.es407.js +10 -5
  558. package/dist/index.es407.js.map +1 -1
  559. package/dist/index.es408.js +46 -2
  560. package/dist/index.es408.js.map +1 -1
  561. package/dist/index.es409.js +11 -0
  562. package/dist/index.es409.js.map +1 -0
  563. package/dist/index.es41.js.map +1 -1
  564. package/dist/index.es410.js +213 -2027
  565. package/dist/index.es410.js.map +1 -1
  566. package/dist/index.es411.js +175 -57
  567. package/dist/index.es411.js.map +1 -1
  568. package/dist/index.es412.js +4 -189
  569. package/dist/index.es412.js.map +1 -1
  570. package/dist/index.es413.js +11 -5
  571. package/dist/index.es413.js.map +1 -1
  572. package/dist/index.es414.js +196 -512
  573. package/dist/index.es414.js.map +1 -1
  574. package/dist/index.es415.js +22 -2
  575. package/dist/index.es415.js.map +1 -1
  576. package/dist/index.es416.js +393 -2
  577. package/dist/index.es416.js.map +1 -1
  578. package/dist/index.es417.js +5 -10
  579. package/dist/index.es417.js.map +1 -1
  580. package/dist/index.es418.js +23 -44
  581. package/dist/index.es418.js.map +1 -1
  582. package/dist/index.es419.js +29 -8
  583. package/dist/index.es419.js.map +1 -1
  584. package/dist/index.es42.js.map +1 -1
  585. package/dist/index.es420.js +5 -218
  586. package/dist/index.es420.js.map +1 -1
  587. package/dist/index.es421.js +5 -178
  588. package/dist/index.es421.js.map +1 -1
  589. package/dist/index.es422.js +3 -4
  590. package/dist/index.es422.js.map +1 -1
  591. package/dist/index.es423.js +26 -2
  592. package/dist/index.es423.js.map +1 -1
  593. package/dist/index.es424.js +108 -10
  594. package/dist/index.es424.js.map +1 -1
  595. package/dist/index.es425.js +15 -9
  596. package/dist/index.es425.js.map +1 -1
  597. package/dist/index.es426.js +513 -168
  598. package/dist/index.es426.js.map +1 -1
  599. package/dist/index.es427.js +126 -3
  600. package/dist/index.es427.js.map +1 -1
  601. package/dist/index.es428.js +124 -128
  602. package/dist/index.es428.js.map +1 -1
  603. package/dist/index.es429.js +60 -200
  604. package/dist/index.es429.js.map +1 -1
  605. package/dist/index.es43.js.map +1 -1
  606. package/dist/index.es430.js +69 -22
  607. package/dist/index.es430.js.map +1 -1
  608. package/dist/index.es431.js +7 -391
  609. package/dist/index.es431.js.map +1 -1
  610. package/dist/index.es432.js +14 -25
  611. package/dist/index.es432.js.map +1 -1
  612. package/dist/index.es433.js +60 -27
  613. package/dist/index.es433.js.map +1 -1
  614. package/dist/index.es434.js +4 -5
  615. package/dist/index.es434.js.map +1 -1
  616. package/dist/index.es435.js +21 -81
  617. package/dist/index.es435.js.map +1 -1
  618. package/dist/index.es436.js +13 -5
  619. package/dist/index.es436.js.map +1 -1
  620. package/dist/index.es437.js +28 -4
  621. package/dist/index.es437.js.map +1 -1
  622. package/dist/index.es438.js +5 -5
  623. package/dist/index.es438.js.map +1 -1
  624. package/dist/index.es439.js +23 -10
  625. package/dist/index.es439.js.map +1 -1
  626. package/dist/index.es44.js.map +1 -1
  627. package/dist/index.es442.js +5 -6
  628. package/dist/index.es442.js.map +1 -1
  629. package/dist/index.es443.js +4 -533
  630. package/dist/index.es443.js.map +1 -1
  631. package/dist/index.es444.js +5 -5
  632. package/dist/index.es444.js.map +1 -1
  633. package/dist/index.es445.js +10 -3
  634. package/dist/index.es445.js.map +1 -1
  635. package/dist/index.es446.js +54 -22
  636. package/dist/index.es446.js.map +1 -1
  637. package/dist/index.es447.js +7 -109
  638. package/dist/index.es447.js.map +1 -1
  639. package/dist/index.es448.js +5 -15
  640. package/dist/index.es448.js.map +1 -1
  641. package/dist/index.es449.js +531 -38
  642. package/dist/index.es449.js.map +1 -1
  643. package/dist/index.es45.js.map +1 -1
  644. package/dist/index.es450.js +2032 -2
  645. package/dist/index.es450.js.map +1 -1
  646. package/dist/index.es451.js +60 -2
  647. package/dist/index.es451.js.map +1 -1
  648. package/dist/index.es452.js +189 -2
  649. package/dist/index.es452.js.map +1 -1
  650. package/dist/index.es453.js +40 -3
  651. package/dist/index.es453.js.map +1 -1
  652. package/dist/index.es454.js +2 -2
  653. package/dist/index.es454.js.map +1 -1
  654. package/dist/index.es455.js +2 -4
  655. package/dist/index.es455.js.map +1 -1
  656. package/dist/index.es456.js +2 -5
  657. package/dist/index.es456.js.map +1 -1
  658. package/dist/index.es457.js +3 -523
  659. package/dist/index.es457.js.map +1 -1
  660. package/dist/index.es458.js +2 -127
  661. package/dist/index.es458.js.map +1 -1
  662. package/dist/index.es459.js +3 -128
  663. package/dist/index.es459.js.map +1 -1
  664. package/dist/index.es46.js.map +1 -1
  665. package/dist/index.es460.js +4 -64
  666. package/dist/index.es460.js.map +1 -1
  667. package/dist/index.es461.js +130 -66
  668. package/dist/index.es461.js.map +1 -1
  669. package/dist/index.es462.js +177 -8
  670. package/dist/index.es462.js.map +1 -1
  671. package/dist/index.es463.js +10 -14
  672. package/dist/index.es463.js.map +1 -1
  673. package/dist/index.es464.js +4 -62
  674. package/dist/index.es464.js.map +1 -1
  675. package/dist/index.es466.js +3674 -3
  676. package/dist/index.es466.js.map +1 -1
  677. package/dist/index.es467.js +2 -23
  678. package/dist/index.es467.js.map +1 -1
  679. package/dist/index.es468.js +6 -23
  680. package/dist/index.es468.js.map +1 -1
  681. package/dist/index.es469.js +520 -12
  682. package/dist/index.es469.js.map +1 -1
  683. package/dist/index.es47.js.map +1 -1
  684. package/dist/index.es470.js +2 -30
  685. package/dist/index.es470.js.map +1 -1
  686. package/dist/index.es471.js +83 -5
  687. package/dist/index.es471.js.map +1 -1
  688. package/dist/index.es48.js.map +1 -1
  689. package/dist/index.es49.js.map +1 -1
  690. package/dist/index.es50.js.map +1 -1
  691. package/dist/index.es51.js.map +1 -1
  692. package/dist/index.es52.js.map +1 -1
  693. package/dist/index.es53.js.map +1 -1
  694. package/dist/index.es54.js.map +1 -1
  695. package/dist/index.es55.js.map +1 -1
  696. package/dist/index.es57.js.map +1 -1
  697. package/dist/index.es58.js.map +1 -1
  698. package/dist/index.es59.js.map +1 -1
  699. package/dist/index.es6.js.map +1 -1
  700. package/dist/index.es61.js.map +1 -1
  701. package/dist/index.es62.js.map +1 -1
  702. package/dist/index.es63.js.map +1 -1
  703. package/dist/index.es64.js.map +1 -1
  704. package/dist/index.es65.js.map +1 -1
  705. package/dist/index.es69.js.map +1 -1
  706. package/dist/index.es7.js.map +1 -1
  707. package/dist/index.es70.js.map +1 -1
  708. package/dist/index.es71.js.map +1 -1
  709. package/dist/index.es73.js.map +1 -1
  710. package/dist/index.es74.js.map +1 -1
  711. package/dist/index.es75.js.map +1 -1
  712. package/dist/index.es76.js.map +1 -1
  713. package/dist/index.es77.js.map +1 -1
  714. package/dist/index.es78.js.map +1 -1
  715. package/dist/index.es79.js.map +1 -1
  716. package/dist/index.es8.js.map +1 -1
  717. package/dist/index.es80.js.map +1 -1
  718. package/dist/index.es81.js.map +1 -1
  719. package/dist/index.es82.js.map +1 -1
  720. package/dist/index.es83.js.map +1 -1
  721. package/dist/index.es84.js.map +1 -1
  722. package/dist/index.es85.js.map +1 -1
  723. package/dist/index.es86.js.map +1 -1
  724. package/dist/index.es87.js.map +1 -1
  725. package/dist/index.es88.js.map +1 -1
  726. package/dist/index.es89.js.map +1 -1
  727. package/dist/index.es90.js.map +1 -1
  728. package/dist/index.es92.js.map +1 -1
  729. package/dist/index.es93.js.map +1 -1
  730. package/dist/index.es94.js.map +1 -1
  731. package/dist/index.es96.js.map +1 -1
  732. package/dist/index.es97.js.map +1 -1
  733. package/dist/index.es98.js.map +1 -1
  734. package/dist/index.es99.js.map +1 -1
  735. package/package.json +112 -112
  736. package/readme.md +42 -42
  737. package/dist/index.cjs375.js.map +0 -1
  738. package/dist/index.cjs378.js +0 -2
  739. package/dist/index.cjs378.js.map +0 -1
  740. package/dist/index.cjs390.js +0 -2
  741. package/dist/index.cjs390.js.map +0 -1
  742. package/dist/index.cjs406.js +0 -28
  743. package/dist/index.cjs406.js.map +0 -1
  744. package/dist/index.cjs440.js +0 -2
  745. package/dist/index.cjs440.js.map +0 -1
  746. package/dist/index.cjs441.js +0 -2
  747. package/dist/index.cjs441.js.map +0 -1
  748. package/dist/index.es375.js.map +0 -1
  749. package/dist/index.es378.js +0 -9
  750. package/dist/index.es378.js.map +0 -1
  751. package/dist/index.es390.js +0 -128
  752. package/dist/index.es390.js.map +0 -1
  753. package/dist/index.es406.js +0 -3678
  754. package/dist/index.es406.js.map +0 -1
  755. package/dist/index.es440.js +0 -59
  756. package/dist/index.es440.js.map +0 -1
  757. package/dist/index.es441.js +0 -11
  758. package/dist/index.es441.js.map +0 -1
  759. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  760. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\r\nimport { AuthorBlock } from \"../AuthorBlock\";\r\nimport \"./AuthorWithImage.scss\";\r\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\r\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\r\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\r\nimport { Row } from \"../Row\";\r\nimport { CopyLink } from \"@/icons\";\r\nimport { splitInTwo } from \"@/utils/splitInTwo\";\r\nimport { ActionIconText } from \"../ActionIconText\";\r\nimport { CardCategory, Col, ShareButton } from \"@/components\";\r\nimport { Tags } from \"@/sections\";\r\nimport clsx from \"clsx\";\r\n\r\n// export type VariantType = \"service\" | \"event\" | \"insight\";\r\n\r\ntype BaseServiceProps = {\r\n name: string;\r\n previewImageUrl?: string;\r\n previewImageTitle?: string;\r\n updatedBy?: {\r\n name?: string;\r\n surname?: string;\r\n };\r\n updatedAt?: string;\r\n readingTime?: number;\r\n};\r\n\r\ntype Event = BaseServiceProps & {\r\n eventTitle?: string;\r\n eventDescription?: string;\r\n eventDescriptionTitle?: string;\r\n tags?: string[];\r\n};\r\n\r\ntype Service = BaseServiceProps;\r\nexport const AuthenticatedModeEnum = {\r\n AUTHENTICATED: \"authenticated\",\r\n PUBLIC: \"public\",\r\n} as const;\r\n\r\nexport type AuthenticatedModes =\r\n (typeof AuthenticatedModeEnum)[keyof typeof AuthenticatedModeEnum];\r\ninterface AuthorWithImageCommonProps {\r\n publishedLabel?: string;\r\n readingTimeLabel?: string;\r\n readingMinuteLabel?: string;\r\n tagsLabelTitle?: string;\r\n shareLabel?: string;\r\n copyLinkLabel?: string;\r\n copiedTextLabel?: string;\r\n ImageComponent?: \"img\" | React.ComponentType<any>;\r\n imageProps?: Record<string, any>;\r\n isPreview?: boolean;\r\n modeAuthenticated?: boolean;\r\n}\r\n\r\ntype ServiceProps = {\r\n data: Service;\r\n variant: \"service\";\r\n} & AuthorWithImageCommonProps;\r\n\r\ntype EventProps = {\r\n data: Event;\r\n variant: \"event\";\r\n} & AuthorWithImageCommonProps;\r\n//\r\n// type InsightProps = {\r\n// data: null;\r\n// variant: \"insight\";\r\n// } & AuthorWithImageCommonProps;\r\n\r\nexport type AuthorWithImageProps = ServiceProps | EventProps;\r\n\r\nexport const AuthorWithImage = ({\r\n data = {} as Service | Event,\r\n ImageComponent = \"img\",\r\n imageProps = {},\r\n variant = \"service\",\r\n publishedLabel = \"Pubblicato\",\r\n readingTimeLabel = \"Tempo di lettura\",\r\n readingMinuteLabel = \"min\",\r\n tagsLabelTitle = \"Argomenti trattati\",\r\n shareLabel = \"Condividi\",\r\n copyLinkLabel = \"Copia link\",\r\n copiedTextLabel = \"Link copiato\",\r\n isPreview = false,\r\n modeAuthenticated = false,\r\n}: AuthorWithImageProps) => {\r\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\r\n const avatarInitials = useMemo(() => {\r\n if (!data?.updatedBy) return \"-\";\r\n return getFullNameInitials(\r\n data.updatedBy.name ?? \"\",\r\n data.updatedBy.surname ?? \"\",\r\n );\r\n }, [data.updatedBy]);\r\n\r\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\r\n if (!data.previewImageTitle || data.previewImageTitle.trim() === \"\") {\r\n return [null, null];\r\n }\r\n\r\n const words = data.previewImageTitle.trim().split(/\\s+/);\r\n\r\n if (words.length >= 4) {\r\n return splitInTwo(data.previewImageTitle.toUpperCase());\r\n }\r\n\r\n return [data.previewImageTitle.toUpperCase(), null];\r\n }, [data.previewImageTitle]);\r\n\r\n const readingTimeInMinutes = useMemo(() => {\r\n const readingTime = data.readingTime ?? 0;\r\n return Math.ceil(Number(readingTime) / 60) || 0;\r\n }, [data]);\r\n\r\n const renderImage = () => {\r\n if (!data.previewImageUrl) return null;\r\n\r\n if (variant === \"event\") {\r\n const isEvent = (obj: Service | Event): obj is Event => {\r\n return \"eventTitle\" in obj;\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n isPreview ? \"event-preview\" : \"event-image-container\",\r\n modeAuthenticated ? \"margin-authenticated\" : \"\",\r\n )}\r\n >\r\n <img\r\n className=\"event-background\"\r\n src={data.previewImageUrl}\r\n alt={`Evento ${data.name}`}\r\n />\r\n\r\n <div className=\"event-content-overlay\">\r\n <div className={\"event-content\"}>\r\n <img\r\n className=\"event-main-image\"\r\n src={data.previewImageUrl}\r\n alt={`Evento ${data.name}`}\r\n />\r\n\r\n <div className=\"event-card-container\">\r\n <Col gap={\"x32\"}>\r\n <CardCategory\r\n title={isEvent(data) ? (data.eventTitle ?? \"-\") : \"-\"}\r\n className={\"w-full\"}\r\n description={\r\n isEvent(data) ? (data.eventDescriptionTitle ?? \"-\") : \"-\"\r\n }\r\n description2={\r\n isEvent(data) ? (data.eventDescription ?? \"-\") : \"-\"\r\n }\r\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\r\n classNameDescriptionTitle={\r\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\r\n }\r\n />\r\n <Tags\r\n title={tagsLabelTitle}\r\n items={isEvent(data) ? (data.tags ?? []) : []}\r\n />\r\n </Col>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\",\r\n modeAuthenticated ? \"margin-authenticated\" : \"\",\r\n )}\r\n >\r\n <ImageComponent\r\n alt={`Service ${data.name} image`}\r\n src={data.previewImageUrl}\r\n style={{ aspectRatio: 21 / 9 }}\r\n {...imageProps}\r\n />\r\n {data.previewImageTitle && data.previewImageTitle.trim() !== \"\" && (\r\n <p className={\"short-title\"}>\r\n <span>{firstTitleLine}</span>\r\n {secondTitleLine && <span>{secondTitleLine}</span>}\r\n </p>\r\n )}\r\n </div>\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n <div className={\"action-author\"}>\r\n <AuthorBlock\r\n authorName={\r\n data?.updatedBy?.name\r\n ? `${data?.updatedBy?.name} ${data?.updatedBy?.surname}`\r\n : \"-\"\r\n }\r\n avatar={{ initials: avatarInitials }}\r\n publishedLabel={publishedLabel}\r\n publishedDate={\r\n fromISODateToDateFormatted(data.updatedAt ?? \"\", \"it\") ?? \"-\"\r\n }\r\n readingTimeLabel={readingTimeLabel}\r\n readingTimeValue={readingTimeInMinutes}\r\n readingMinuteLabel={readingMinuteLabel}\r\n />\r\n <Row gap={\"x8\"} className={\"action-link\"}>\r\n <ShareButton\r\n textLabel={shareLabel}\r\n href={window.location.href}\r\n titleShared={data.name}\r\n />\r\n <div className={\"share-divider\"}>\r\n <ActionIconText\r\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\r\n icon={<CopyLink />}\r\n handleAction={copyToClipboard}\r\n classNameText={\"fw-bold\"}\r\n />\r\n </div>\r\n </Row>\r\n </div>\r\n\r\n {renderImage()}\r\n </>\r\n );\r\n};\r\n"],"names":["AuthenticatedModeEnum","AuthorWithImage","data","ImageComponent","imageProps","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","modeAuthenticated","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","readingTimeInMinutes","readingTime","renderImage","isEvent","obj","jsxs","clsx","jsx","Col","CardCategory","Tags","Fragment","AuthorBlock","_a","_b","_c","fromISODateToDateFormatted","Row","ShareButton","ActionIconText","CopyLink"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/AuthorWithImage/index.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { AuthorBlock } from \"../AuthorBlock\";\nimport \"./AuthorWithImage.scss\";\nimport { fromISODateToDateFormatted } from \"@/utils/dates\";\nimport { useCopyToClipboardCurrentPage } from \"@/hooks/useCopyToClipboardCurrentPage\";\nimport { getFullNameInitials } from \"@/utils/getFullNameInitials\";\nimport { Row } from \"../Row\";\nimport { CopyLink } from \"@/icons\";\nimport { splitInTwo } from \"@/utils/splitInTwo\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CardCategory, Col, ShareButton } from \"@/components\";\nimport { Tags } from \"@/sections\";\nimport clsx from \"clsx\";\n\n// export type VariantType = \"service\" | \"event\" | \"insight\";\n\ntype BaseServiceProps = {\n name: string;\n previewImageUrl?: string;\n previewImageTitle?: string;\n updatedBy?: {\n name?: string;\n surname?: string;\n };\n updatedAt?: string;\n readingTime?: number;\n};\n\ntype Event = BaseServiceProps & {\n eventTitle?: string;\n eventDescription?: string;\n eventDescriptionTitle?: string;\n tags?: string[];\n};\n\ntype Service = BaseServiceProps;\nexport const AuthenticatedModeEnum = {\n AUTHENTICATED: \"authenticated\",\n PUBLIC: \"public\",\n} as const;\n\nexport type AuthenticatedModes =\n (typeof AuthenticatedModeEnum)[keyof typeof AuthenticatedModeEnum];\ninterface AuthorWithImageCommonProps {\n publishedLabel?: string;\n readingTimeLabel?: string;\n readingMinuteLabel?: string;\n tagsLabelTitle?: string;\n shareLabel?: string;\n copyLinkLabel?: string;\n copiedTextLabel?: string;\n ImageComponent?: \"img\" | React.ComponentType<any>;\n imageProps?: Record<string, any>;\n isPreview?: boolean;\n modeAuthenticated?: boolean;\n}\n\ntype ServiceProps = {\n data: Service;\n variant: \"service\";\n} & AuthorWithImageCommonProps;\n\ntype EventProps = {\n data: Event;\n variant: \"event\";\n} & AuthorWithImageCommonProps;\n//\n// type InsightProps = {\n// data: null;\n// variant: \"insight\";\n// } & AuthorWithImageCommonProps;\n\nexport type AuthorWithImageProps = ServiceProps | EventProps;\n\nexport const AuthorWithImage = ({\n data = {} as Service | Event,\n ImageComponent = \"img\",\n imageProps = {},\n variant = \"service\",\n publishedLabel = \"Pubblicato\",\n readingTimeLabel = \"Tempo di lettura\",\n readingMinuteLabel = \"min\",\n tagsLabelTitle = \"Argomenti trattati\",\n shareLabel = \"Condividi\",\n copyLinkLabel = \"Copia link\",\n copiedTextLabel = \"Link copiato\",\n isPreview = false,\n modeAuthenticated = false,\n}: AuthorWithImageProps) => {\n const { copyToClipboard, isCopied } = useCopyToClipboardCurrentPage();\n const avatarInitials = useMemo(() => {\n if (!data?.updatedBy) return \"-\";\n return getFullNameInitials(\n data.updatedBy.name ?? \"\",\n data.updatedBy.surname ?? \"\",\n );\n }, [data.updatedBy]);\n\n const [firstTitleLine, secondTitleLine] = useMemo(() => {\n if (!data.previewImageTitle || data.previewImageTitle.trim() === \"\") {\n return [null, null];\n }\n\n const words = data.previewImageTitle.trim().split(/\\s+/);\n\n if (words.length >= 4) {\n return splitInTwo(data.previewImageTitle.toUpperCase());\n }\n\n return [data.previewImageTitle.toUpperCase(), null];\n }, [data.previewImageTitle]);\n\n const readingTimeInMinutes = useMemo(() => {\n const readingTime = data.readingTime ?? 0;\n return Math.ceil(Number(readingTime) / 60) || 0;\n }, [data]);\n\n const renderImage = () => {\n if (!data.previewImageUrl) return null;\n\n if (variant === \"event\") {\n const isEvent = (obj: Service | Event): obj is Event => {\n return \"eventTitle\" in obj;\n };\n\n return (\n <div\n className={clsx(\n isPreview ? \"event-preview\" : \"event-image-container\",\n modeAuthenticated ? \"margin-authenticated\" : \"\",\n )}\n >\n <img\n className=\"event-background\"\n src={data.previewImageUrl}\n alt={`Evento ${data.name}`}\n />\n\n <div className=\"event-content-overlay\">\n <div className={\"event-content\"}>\n <img\n className=\"event-main-image\"\n src={data.previewImageUrl}\n alt={`Evento ${data.name}`}\n />\n\n <div className=\"event-card-container\">\n <Col gap={\"x32\"}>\n <CardCategory\n title={isEvent(data) ? (data.eventTitle ?? \"-\") : \"-\"}\n className={\"w-full\"}\n description={\n isEvent(data) ? (data.eventDescriptionTitle ?? \"-\") : \"-\"\n }\n description2={\n isEvent(data) ? (data.eventDescription ?? \"-\") : \"-\"\n }\n classNameTitle={\"text-slate-20 fs-5 md-fs-custom-2\"}\n classNameDescriptionTitle={\n \"text-slate-28 fw-bold fs-6 md-fs-custom\"\n }\n />\n <Tags\n title={tagsLabelTitle}\n items={isEvent(data) ? (data.tags ?? []) : []}\n />\n </Col>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <div\n className={clsx(\n isPreview ? \"service-detail-image\" : \"fullscreen-image-container\",\n modeAuthenticated ? \"margin-authenticated\" : \"\",\n )}\n >\n <ImageComponent\n alt={`Service ${data.name} image`}\n src={data.previewImageUrl}\n style={{ aspectRatio: 21 / 9 }}\n {...imageProps}\n />\n {data.previewImageTitle && data.previewImageTitle.trim() !== \"\" && (\n <p className={\"short-title\"}>\n <span>{firstTitleLine}</span>\n {secondTitleLine && <span>{secondTitleLine}</span>}\n </p>\n )}\n </div>\n );\n };\n\n return (\n <>\n <div className={\"action-author\"}>\n <AuthorBlock\n authorName={\n data?.updatedBy?.name\n ? `${data?.updatedBy?.name} ${data?.updatedBy?.surname}`\n : \"-\"\n }\n avatar={{ initials: avatarInitials }}\n publishedLabel={publishedLabel}\n publishedDate={\n fromISODateToDateFormatted(data.updatedAt ?? \"\", \"it\") ?? \"-\"\n }\n readingTimeLabel={readingTimeLabel}\n readingTimeValue={readingTimeInMinutes}\n readingMinuteLabel={readingMinuteLabel}\n />\n <Row gap={\"x8\"} className={\"action-link\"}>\n <ShareButton\n textLabel={shareLabel}\n href={window.location.href}\n titleShared={data.name}\n />\n <div className={\"share-divider\"}>\n <ActionIconText\n textLabel={isCopied ? copiedTextLabel : copyLinkLabel}\n icon={<CopyLink />}\n handleAction={copyToClipboard}\n classNameText={\"fw-bold\"}\n />\n </div>\n </Row>\n </div>\n\n {renderImage()}\n </>\n );\n};\n"],"names":["AuthenticatedModeEnum","AuthorWithImage","data","ImageComponent","imageProps","variant","publishedLabel","readingTimeLabel","readingMinuteLabel","tagsLabelTitle","shareLabel","copyLinkLabel","copiedTextLabel","isPreview","modeAuthenticated","copyToClipboard","isCopied","useCopyToClipboardCurrentPage","avatarInitials","useMemo","getFullNameInitials","firstTitleLine","secondTitleLine","splitInTwo","readingTimeInMinutes","readingTime","renderImage","isEvent","obj","jsxs","clsx","jsx","Col","CardCategory","Tags","Fragment","AuthorBlock","_a","_b","_c","fromISODateToDateFormatted","Row","ShareButton","ActionIconText","CopyLink"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs341.js","sources":["../src/icons/Image/index.tsx"],"sourcesContent":["import { IconProps } from \"@radix-ui/themes\";\r\n\r\nexport const Image = ({ width, height }: IconProps) => {\r\n return (\r\n <svg\r\n width={width}\r\n height={height}\r\n viewBox=\"0 0 21 21\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M19.7667 1.23854H1.89999V19.1052H19.7667V1.23854ZM0.833328 0.171875V20.1719H20.8333V0.171875H0.833328Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M14.8333 7.5941C14.5815 7.5941 14.3444 7.71265 14.1933 7.9141L11.26 11.8252C11.1672 11.9489 11.0254 12.0262 10.8711 12.0372C10.7169 12.0482 10.5655 11.9917 10.4562 11.8823L9.54332 10.9694C9.3793 10.8054 9.15214 10.7206 8.92076 10.7371C8.68939 10.7536 8.47655 10.8697 8.33743 11.0553C8.33209 11.0624 8.32657 11.0694 8.32088 11.0763L5.12494 14.9229L4.30449 14.2413L7.49262 10.404C7.81736 9.97765 8.30993 9.71123 8.845 9.67313C9.38488 9.63469 9.91486 9.83247 10.2976 10.2152L10.7756 10.6933L13.34 7.2741C13.6925 6.80406 14.2458 6.52743 14.8333 6.52743C15.4209 6.52743 15.9741 6.80406 16.3267 7.2741L19.02 10.8652L18.1667 11.5052L15.4733 7.9141C15.3222 7.71265 15.0851 7.5941 14.8333 7.5941Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M3.63333 5.17188C3.63333 3.95685 4.6183 2.97188 5.83333 2.97188C7.04835 2.97188 8.03333 3.95685 8.03333 5.17188C8.03333 6.3869 7.04835 7.37188 5.83333 7.37188C4.6183 7.37188 3.63333 6.3869 3.63333 5.17188ZM5.83333 4.03854C5.20741 4.03854 4.7 4.54595 4.7 5.17188C4.7 5.7978 5.20741 6.30521 5.83333 6.30521C6.45925 6.30521 6.96666 5.7978 6.96666 5.17188C6.96666 4.54595 6.45925 4.03854 5.83333 4.03854Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M1.41111 14.083H20.2556V15.1497H1.41111V14.083Z\"\r\n fill=\"white\"\r\n />\r\n </svg>\r\n );\r\n};\r\n"],"names":["Image","width","height","jsxs","jsx"],"mappings":"qHAEaA,EAAQ,CAAC,CAAE,MAAAC,EAAO,OAAAC,KAE3BC,EAAA,kBAAA,KAAC,MAAA,CACC,MAAAF,EACA,OAAAC,EACA,QAAQ,YACR,KAAK,OACL,MAAM,6BAEN,SAAA,CAAAE,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,yGACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,krBACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,mZACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,kDACF,KAAK,OAAA,CAAA,CACP,CAAA,CACF"}
1
+ {"version":3,"file":"index.cjs341.js","sources":["../src/icons/Image/index.tsx"],"sourcesContent":["import { IconProps } from \"@radix-ui/themes\";\n\nexport const Image = ({ width, height }: IconProps) => {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 21 21\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.7667 1.23854H1.89999V19.1052H19.7667V1.23854ZM0.833328 0.171875V20.1719H20.8333V0.171875H0.833328Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.8333 7.5941C14.5815 7.5941 14.3444 7.71265 14.1933 7.9141L11.26 11.8252C11.1672 11.9489 11.0254 12.0262 10.8711 12.0372C10.7169 12.0482 10.5655 11.9917 10.4562 11.8823L9.54332 10.9694C9.3793 10.8054 9.15214 10.7206 8.92076 10.7371C8.68939 10.7536 8.47655 10.8697 8.33743 11.0553C8.33209 11.0624 8.32657 11.0694 8.32088 11.0763L5.12494 14.9229L4.30449 14.2413L7.49262 10.404C7.81736 9.97765 8.30993 9.71123 8.845 9.67313C9.38488 9.63469 9.91486 9.83247 10.2976 10.2152L10.7756 10.6933L13.34 7.2741C13.6925 6.80406 14.2458 6.52743 14.8333 6.52743C15.4209 6.52743 15.9741 6.80406 16.3267 7.2741L19.02 10.8652L18.1667 11.5052L15.4733 7.9141C15.3222 7.71265 15.0851 7.5941 14.8333 7.5941Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M3.63333 5.17188C3.63333 3.95685 4.6183 2.97188 5.83333 2.97188C7.04835 2.97188 8.03333 3.95685 8.03333 5.17188C8.03333 6.3869 7.04835 7.37188 5.83333 7.37188C4.6183 7.37188 3.63333 6.3869 3.63333 5.17188ZM5.83333 4.03854C5.20741 4.03854 4.7 4.54595 4.7 5.17188C4.7 5.7978 5.20741 6.30521 5.83333 6.30521C6.45925 6.30521 6.96666 5.7978 6.96666 5.17188C6.96666 4.54595 6.45925 4.03854 5.83333 4.03854Z\"\n fill=\"white\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1.41111 14.083H20.2556V15.1497H1.41111V14.083Z\"\n fill=\"white\"\n />\n </svg>\n );\n};\n"],"names":["Image","width","height","jsxs","jsx"],"mappings":"qHAEaA,EAAQ,CAAC,CAAE,MAAAC,EAAO,OAAAC,KAE3BC,EAAA,kBAAA,KAAC,MAAA,CACC,MAAAF,EACA,OAAAC,EACA,QAAQ,YACR,KAAK,OACL,MAAM,6BAEN,SAAA,CAAAE,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,yGACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,krBACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,mZACF,KAAK,OAAA,CACP,EACAA,EAAA,kBAAA,IAAC,OAAA,CACC,SAAS,UACT,SAAS,UACT,EAAE,kDACF,KAAK,OAAA,CAAA,CACP,CAAA,CACF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index.cjs410.js"),I=require("./index.cjs411.js"),d=require("./index.cjs412.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),G=require("./index.cjs450.js"),I=require("./index.cjs451.js"),d=require("./index.cjs452.js");function T(){return T=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a[n])}return s},T.apply(this,arguments)}function A(s){return s.type&&s.type.displayName&&s.type.displayName.includes("SwiperSlide")}function V(s){const t=[];return e.Children.toArray(s).forEach(a=>{A(a)?t.push(a):a.props&&a.props.children&&V(a.props.children).forEach(n=>t.push(n))}),t}function J(s){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return e.Children.toArray(s).forEach(n=>{if(A(n))t.push(n);else if(n.props&&n.props.slot&&a[n.props.slot])a[n.props.slot].push(n);else if(n.props&&n.props.children){const c=V(n.props.children);c.length>0?c.forEach(l=>t.push(l)):a["container-end"].push(n)}else a["container-end"].push(n)}),{slides:t,slots:a}}function K(s,t,a){if(!a)return null;const n=o=>{let i=o;return o<0?i=t.length+o:i>=t.length&&(i=i-t.length),i},c=s.isHorizontal()?{[s.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:l,to:p}=a,y=s.params.loop?-t.length:0,h=s.params.loop?t.length*2:t.length,v=[];for(let o=y;o<h;o+=1)o>=l&&o<=p&&v.push(t[n(o)]);return v.map((o,i)=>e.cloneElement(o,{swiper:s,style:c,key:o.props.virtualIndex||o.key||`slide-${i}`}))}function N(s,t){return typeof window>"u"?e.useEffect(s,t):e.useLayoutEffect(s,t)}const q=e.createContext(null),Q=e.createContext(null),F=e.forwardRef(function(s,t){let{className:a,tag:n="div",wrapperTag:c="div",children:l,onSwiper:p,...y}=s===void 0?{}:s,h=!1;const[v,o]=e.useState("swiper"),[i,m]=e.useState(null),[C,O]=e.useState(!1),P=e.useRef(!1),w=e.useRef(null),r=e.useRef(null),x=e.useRef(null),z=e.useRef(null),$=e.useRef(null),b=e.useRef(null),R=e.useRef(null),k=e.useRef(null),{params:f,passedParams:L,rest:D,events:g}=I.g(y),{slides:S,slots:j}=J(l),B=()=>{O(!C)};Object.assign(f.on,{_containerClasses(u,E){o(E)}});const _=()=>{Object.assign(f.on,g),h=!0;const u={...f};if(delete u.wrapperClass,r.current=new G.S(u),r.current.virtual&&r.current.params.virtual.enabled){r.current.virtual.slides=S;const E={cache:!1,slides:S,renderExternal:m,renderExternalUpdate:!1};d.e(r.current.params.virtual,E),d.e(r.current.originalParams.virtual,E)}};w.current||_(),r.current&&r.current.on("_beforeBreakpoint",B);const H=()=>{h||!g||!r.current||Object.keys(g).forEach(u=>{r.current.on(u,g[u])})},M=()=>{!g||!r.current||Object.keys(g).forEach(u=>{r.current.off(u,g[u])})};e.useEffect(()=>()=>{r.current&&r.current.off("_beforeBreakpoint",B)}),e.useEffect(()=>{!P.current&&r.current&&(r.current.emitSlidesClasses(),P.current=!0)}),N(()=>{if(t&&(t.current=w.current),!!w.current)return r.current.destroyed&&_(),I.m({el:w.current,nextEl:$.current,prevEl:b.current,paginationEl:R.current,scrollbarEl:k.current,swiper:r.current},f),p&&!r.current.destroyed&&p(r.current),()=>{r.current&&!r.current.destroyed&&r.current.destroy(!0,!1)}},[]),N(()=>{H();const u=I.a(L,x.current,S,z.current,E=>E.key);return x.current=L,z.current=S,u.length&&r.current&&!r.current.destroyed&&d.u({swiper:r.current,slides:S,passedParams:L,changedParams:u,nextEl:$.current,prevEl:b.current,scrollbarEl:k.current,paginationEl:R.current}),()=>{M()}}),N(()=>{I.u(r.current)},[i]);function U(){return f.virtual?K(r.current,S,i):S.map((u,E)=>e.cloneElement(u,{swiper:r.current,swiperSlideIndex:E}))}return e.createElement(n,T({ref:w,className:d.d(`${v}${a?` ${a}`:""}`)},D),e.createElement(Q.Provider,{value:r.current},j["container-start"],e.createElement(c,{className:d.w(f.wrapperClass)},j["wrapper-start"],U(),j["wrapper-end"]),d.n(f)&&e.createElement(e.Fragment,null,e.createElement("div",{ref:b,className:"swiper-button-prev"}),e.createElement("div",{ref:$,className:"swiper-button-next"})),d.b(f)&&e.createElement("div",{ref:k,className:"swiper-scrollbar"}),d.a(f)&&e.createElement("div",{ref:R,className:"swiper-pagination"}),j["container-end"]))});F.displayName="Swiper";const W=e.forwardRef(function(s,t){let{tag:a="div",children:n,className:c="",swiper:l,zoom:p,lazy:y,virtualIndex:h,swiperSlideIndex:v,...o}=s===void 0?{}:s;const i=e.useRef(null),[m,C]=e.useState("swiper-slide"),[O,P]=e.useState(!1);function w($,b,R){b===i.current&&C(R)}N(()=>{if(typeof v<"u"&&(i.current.swiperSlideIndex=v),t&&(t.current=i.current),!(!i.current||!l)){if(l.destroyed){m!=="swiper-slide"&&C("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),N(()=>{l&&i.current&&!l.destroyed&&C(l.getSlideClasses(i.current))},[l]);const r={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(r):n,z=()=>{P(!0)};return e.createElement(a,T({ref:i,className:d.d(`${m}${c?` ${c}`:""}`),"data-swiper-slide-index":h,onLoad:z},o),p&&e.createElement(q.Provider,{value:r},e.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof p=="number"?p:void 0},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"}))),!p&&e.createElement(q.Provider,{value:r},x(),y&&!O&&e.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide";exports.Swiper=F;exports.SwiperSlide=W;
2
2
  //# sourceMappingURL=index.cjs343.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs425.js"),l=require("./index.cjs426.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const r=n.path||n.composedPath&&n.composedPath();r&&(p=r.find(o=>t.includes(o)||e.includes(o)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let r;t.length?r=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(r=e[0].classList.contains(a.params.navigation.hiddenClass)),g(r===!0?"navigationShow":"navigationHide"),[...t,...e].filter(o=>!!o).forEach(o=>o.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}module.exports=L;
1
+ "use strict";const w=require("./index.cjs463.js"),l=require("./index.cjs462.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const r=n.path||n.composedPath&&n.composedPath();r&&(p=r.find(o=>t.includes(o)||e.includes(o)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let r;t.length?r=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(r=e[0].classList.contains(a.params.navigation.hiddenClass)),g(r===!0?"navigationShow":"navigationHide"),[...t,...e].filter(o=>!!o).forEach(o=>o.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}module.exports=L;
2
2
  //# sourceMappingURL=index.cjs344.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const $=require("./index.cjs427.js"),q=require("./index.cjs425.js"),f=require("./index.cjs426.js");function w(S){let{swiper:e,extendParams:H,on:u,emit:v}=S;const d="swiper-pagination";H({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:a=>a,formatFractionTotal:a=>a,bulletClass:`${d}-bullet`,bulletActiveClass:`${d}-bullet-active`,modifierClass:`${d}-`,currentClass:`${d}-current`,totalClass:`${d}-total`,hiddenClass:`${d}-hidden`,progressbarFillClass:`${d}-progressbar-fill`,progressbarOppositeClass:`${d}-progressbar-opposite`,clickableClass:`${d}-clickable`,lockClass:`${d}-lock`,horizontalClass:`${d}-horizontal`,verticalClass:`${d}-vertical`,paginationDisabledClass:`${d}-disabled`}}),e.pagination={el:null,bullets:[]};let b,m=0;function k(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function x(a,s){const{bulletActiveClass:i}=e.params.pagination;a&&(a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&(a.classList.add(`${i}-${s}`),a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&a.classList.add(`${i}-${s}-${s}`)))}function I(a,s,i){if(a=a%i,s=s%i,s===a+1)return"next";if(s===a-1)return"previous"}function D(a){const s=a.target.closest($.c(e.params.pagination.bulletClass));if(!s)return;a.preventDefault();const i=f.h(s)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=I(e.realIndex,i,e.slides.length);t==="next"?e.slideNext():t==="previous"?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i)}function h(){const a=e.rtl,s=e.params.pagination;if(k())return;let i=e.pagination.el;i=f.m(i);let t,c;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,z=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(t=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,t=e.activeIndex||0),s.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let g,p,L;if(s.dynamicBullets&&(b=f.f(l[0],e.isHorizontal()?"width":"height"),i.forEach(n=>{n.style[e.isHorizontal()?"width":"height"]=`${b*(s.dynamicMainBullets+4)}px`}),s.dynamicMainBullets>1&&c!==void 0&&(m+=t-(c||0),m>s.dynamicMainBullets-1?m=s.dynamicMainBullets-1:m<0&&(m=0)),g=Math.max(t-m,0),p=g+(Math.min(l.length,s.dynamicMainBullets)-1),L=(p+g)/2),l.forEach(n=>{const r=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(o=>`${s.bulletActiveClass}${o}`)].map(o=>typeof o=="string"&&o.includes(" ")?o.split(" "):o).flat();n.classList.remove(...r)}),i.length>1)l.forEach(n=>{const r=f.h(n);r===t?n.classList.add(...s.bulletActiveClass.split(" ")):e.isElement&&n.setAttribute("part","bullet"),s.dynamicBullets&&(r>=g&&r<=p&&n.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),r===g&&x(n,"prev"),r===p&&x(n,"next"))});else{const n=l[t];if(n&&n.classList.add(...s.bulletActiveClass.split(" ")),e.isElement&&l.forEach((r,o)=>{r.setAttribute("part",o===t?"bullet-active":"bullet")}),s.dynamicBullets){const r=l[g],o=l[p];for(let y=g;y<=p;y+=1)l[y]&&l[y].classList.add(...`${s.bulletActiveClass}-main`.split(" "));x(r,"prev"),x(o,"next")}}if(s.dynamicBullets){const n=Math.min(l.length,s.dynamicMainBullets+4),r=(b*n-b)/2-L*b,o=a?"right":"left";l.forEach(y=>{y.style[e.isHorizontal()?o:"top"]=`${r}px`})}}i.forEach((l,g)=>{if(s.type==="fraction"&&(l.querySelectorAll($.c(s.currentClass)).forEach(p=>{p.textContent=s.formatFractionCurrent(t+1)}),l.querySelectorAll($.c(s.totalClass)).forEach(p=>{p.textContent=s.formatFractionTotal(z)})),s.type==="progressbar"){let p;s.progressbarOpposite?p=e.isHorizontal()?"vertical":"horizontal":p=e.isHorizontal()?"horizontal":"vertical";const L=(t+1)/z;let n=1,r=1;p==="horizontal"?n=L:r=L,l.querySelectorAll($.c(s.progressbarFillClass)).forEach(o=>{o.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${r})`,o.style.transitionDuration=`${e.params.speed}ms`})}s.type==="custom"&&s.renderCustom?(l.innerHTML=s.renderCustom(e,t+1,z),g===0&&v("paginationRender",l)):(g===0&&v("paginationRender",l),v("paginationUpdate",l)),e.params.watchOverflow&&e.enabled&&l.classList[e.isLocked?"add":"remove"](s.lockClass)})}function B(){const a=e.params.pagination;if(k())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=f.m(i);let t="";if(a.type==="bullets"){let c=e.params.loop?Math.ceil(s/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&c>s&&(c=s);for(let C=0;C<c;C+=1)a.renderBullet?t+=a.renderBullet.call(e,C,a.bulletClass):t+=`<${a.bulletElement} ${e.isElement?'part="bullet"':""} class="${a.bulletClass}"></${a.bulletElement}>`}a.type==="fraction"&&(a.renderFraction?t=a.renderFraction.call(e,a.currentClass,a.totalClass):t=`<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`),a.type==="progressbar"&&(a.renderProgressbar?t=a.renderProgressbar.call(e,a.progressbarFillClass):t=`<span class="${a.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(c=>{a.type!=="custom"&&(c.innerHTML=t||""),a.type==="bullets"&&e.pagination.bullets.push(...c.querySelectorAll($.c(a.bulletClass)))}),a.type!=="custom"&&v("paginationRender",i[0])}function A(){e.params.pagination=q.c(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const a=e.params.pagination;if(!a.el)return;let s;typeof a.el=="string"&&e.isElement&&(s=e.el.querySelector(a.el)),!s&&typeof a.el=="string"&&(s=[...document.querySelectorAll(a.el)]),s||(s=a.el),!(!s||s.length===0)&&(e.params.uniqueNavElements&&typeof a.el=="string"&&Array.isArray(s)&&s.length>1&&(s=[...e.el.querySelectorAll(a.el)],s.length>1&&(s=s.find(i=>f.a(i,".swiper")[0]===e.el))),Array.isArray(s)&&s.length===1&&(s=s[0]),Object.assign(e.pagination,{el:s}),s=f.m(s),s.forEach(i=>{a.type==="bullets"&&a.clickable&&i.classList.add(...(a.clickableClass||"").split(" ")),i.classList.add(a.modifierClass+a.type),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.type==="bullets"&&a.dynamicBullets&&(i.classList.add(`${a.modifierClass}${a.type}-dynamic`),m=0,a.dynamicMainBullets<1&&(a.dynamicMainBullets=1)),a.type==="progressbar"&&a.progressbarOpposite&&i.classList.add(a.progressbarOppositeClass),a.clickable&&i.addEventListener("click",D),e.enabled||i.classList.add(a.lockClass)}))}function M(){const a=e.params.pagination;if(k())return;let s=e.pagination.el;s&&(s=f.m(s),s.forEach(i=>{i.classList.remove(a.hiddenClass),i.classList.remove(a.modifierClass+a.type),i.classList.remove(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.clickable&&(i.classList.remove(...(a.clickableClass||"").split(" ")),i.removeEventListener("click",D))})),e.pagination.bullets&&e.pagination.bullets.forEach(i=>i.classList.remove(...a.bulletActiveClass.split(" ")))}u("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const a=e.params.pagination;let{el:s}=e.pagination;s=f.m(s),s.forEach(i=>{i.classList.remove(a.horizontalClass,a.verticalClass),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass)})}),u("init",()=>{e.params.pagination.enabled===!1?P():(A(),B(),h())}),u("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),u("snapIndexChange",()=>{h()}),u("snapGridLengthChange",()=>{B(),h()}),u("destroy",()=>{M()}),u("enable disable",()=>{let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),u("lock unlock",()=>{h()}),u("click",(a,s)=>{const i=s.target,t=f.m(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&t&&t.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const c=t[0].classList.contains(e.params.pagination.hiddenClass);v(c===!0?"paginationShow":"paginationHide"),t.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const O=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.remove(e.params.pagination.paginationDisabledClass))),A(),B(),h()},P=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.add(e.params.pagination.paginationDisabledClass))),M()};Object.assign(e.pagination,{enable:O,disable:P,render:B,update:h,init:A,destroy:M})}module.exports=w;
1
+ "use strict";const $=require("./index.cjs464.js"),q=require("./index.cjs463.js"),f=require("./index.cjs462.js");function w(S){let{swiper:e,extendParams:H,on:u,emit:v}=S;const d="swiper-pagination";H({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:a=>a,formatFractionTotal:a=>a,bulletClass:`${d}-bullet`,bulletActiveClass:`${d}-bullet-active`,modifierClass:`${d}-`,currentClass:`${d}-current`,totalClass:`${d}-total`,hiddenClass:`${d}-hidden`,progressbarFillClass:`${d}-progressbar-fill`,progressbarOppositeClass:`${d}-progressbar-opposite`,clickableClass:`${d}-clickable`,lockClass:`${d}-lock`,horizontalClass:`${d}-horizontal`,verticalClass:`${d}-vertical`,paginationDisabledClass:`${d}-disabled`}}),e.pagination={el:null,bullets:[]};let b,m=0;function k(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function x(a,s){const{bulletActiveClass:i}=e.params.pagination;a&&(a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&(a.classList.add(`${i}-${s}`),a=a[`${s==="prev"?"previous":"next"}ElementSibling`],a&&a.classList.add(`${i}-${s}-${s}`)))}function I(a,s,i){if(a=a%i,s=s%i,s===a+1)return"next";if(s===a-1)return"previous"}function D(a){const s=a.target.closest($.c(e.params.pagination.bulletClass));if(!s)return;a.preventDefault();const i=f.h(s)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===i)return;const t=I(e.realIndex,i,e.slides.length);t==="next"?e.slideNext():t==="previous"?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i)}function h(){const a=e.rtl,s=e.params.pagination;if(k())return;let i=e.pagination.el;i=f.m(i);let t,c;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,z=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(t=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,t=e.activeIndex||0),s.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let g,p,L;if(s.dynamicBullets&&(b=f.f(l[0],e.isHorizontal()?"width":"height"),i.forEach(n=>{n.style[e.isHorizontal()?"width":"height"]=`${b*(s.dynamicMainBullets+4)}px`}),s.dynamicMainBullets>1&&c!==void 0&&(m+=t-(c||0),m>s.dynamicMainBullets-1?m=s.dynamicMainBullets-1:m<0&&(m=0)),g=Math.max(t-m,0),p=g+(Math.min(l.length,s.dynamicMainBullets)-1),L=(p+g)/2),l.forEach(n=>{const r=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(o=>`${s.bulletActiveClass}${o}`)].map(o=>typeof o=="string"&&o.includes(" ")?o.split(" "):o).flat();n.classList.remove(...r)}),i.length>1)l.forEach(n=>{const r=f.h(n);r===t?n.classList.add(...s.bulletActiveClass.split(" ")):e.isElement&&n.setAttribute("part","bullet"),s.dynamicBullets&&(r>=g&&r<=p&&n.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),r===g&&x(n,"prev"),r===p&&x(n,"next"))});else{const n=l[t];if(n&&n.classList.add(...s.bulletActiveClass.split(" ")),e.isElement&&l.forEach((r,o)=>{r.setAttribute("part",o===t?"bullet-active":"bullet")}),s.dynamicBullets){const r=l[g],o=l[p];for(let y=g;y<=p;y+=1)l[y]&&l[y].classList.add(...`${s.bulletActiveClass}-main`.split(" "));x(r,"prev"),x(o,"next")}}if(s.dynamicBullets){const n=Math.min(l.length,s.dynamicMainBullets+4),r=(b*n-b)/2-L*b,o=a?"right":"left";l.forEach(y=>{y.style[e.isHorizontal()?o:"top"]=`${r}px`})}}i.forEach((l,g)=>{if(s.type==="fraction"&&(l.querySelectorAll($.c(s.currentClass)).forEach(p=>{p.textContent=s.formatFractionCurrent(t+1)}),l.querySelectorAll($.c(s.totalClass)).forEach(p=>{p.textContent=s.formatFractionTotal(z)})),s.type==="progressbar"){let p;s.progressbarOpposite?p=e.isHorizontal()?"vertical":"horizontal":p=e.isHorizontal()?"horizontal":"vertical";const L=(t+1)/z;let n=1,r=1;p==="horizontal"?n=L:r=L,l.querySelectorAll($.c(s.progressbarFillClass)).forEach(o=>{o.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${r})`,o.style.transitionDuration=`${e.params.speed}ms`})}s.type==="custom"&&s.renderCustom?(l.innerHTML=s.renderCustom(e,t+1,z),g===0&&v("paginationRender",l)):(g===0&&v("paginationRender",l),v("paginationUpdate",l)),e.params.watchOverflow&&e.enabled&&l.classList[e.isLocked?"add":"remove"](s.lockClass)})}function B(){const a=e.params.pagination;if(k())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let i=e.pagination.el;i=f.m(i);let t="";if(a.type==="bullets"){let c=e.params.loop?Math.ceil(s/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&c>s&&(c=s);for(let C=0;C<c;C+=1)a.renderBullet?t+=a.renderBullet.call(e,C,a.bulletClass):t+=`<${a.bulletElement} ${e.isElement?'part="bullet"':""} class="${a.bulletClass}"></${a.bulletElement}>`}a.type==="fraction"&&(a.renderFraction?t=a.renderFraction.call(e,a.currentClass,a.totalClass):t=`<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`),a.type==="progressbar"&&(a.renderProgressbar?t=a.renderProgressbar.call(e,a.progressbarFillClass):t=`<span class="${a.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(c=>{a.type!=="custom"&&(c.innerHTML=t||""),a.type==="bullets"&&e.pagination.bullets.push(...c.querySelectorAll($.c(a.bulletClass)))}),a.type!=="custom"&&v("paginationRender",i[0])}function A(){e.params.pagination=q.c(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const a=e.params.pagination;if(!a.el)return;let s;typeof a.el=="string"&&e.isElement&&(s=e.el.querySelector(a.el)),!s&&typeof a.el=="string"&&(s=[...document.querySelectorAll(a.el)]),s||(s=a.el),!(!s||s.length===0)&&(e.params.uniqueNavElements&&typeof a.el=="string"&&Array.isArray(s)&&s.length>1&&(s=[...e.el.querySelectorAll(a.el)],s.length>1&&(s=s.find(i=>f.a(i,".swiper")[0]===e.el))),Array.isArray(s)&&s.length===1&&(s=s[0]),Object.assign(e.pagination,{el:s}),s=f.m(s),s.forEach(i=>{a.type==="bullets"&&a.clickable&&i.classList.add(...(a.clickableClass||"").split(" ")),i.classList.add(a.modifierClass+a.type),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.type==="bullets"&&a.dynamicBullets&&(i.classList.add(`${a.modifierClass}${a.type}-dynamic`),m=0,a.dynamicMainBullets<1&&(a.dynamicMainBullets=1)),a.type==="progressbar"&&a.progressbarOpposite&&i.classList.add(a.progressbarOppositeClass),a.clickable&&i.addEventListener("click",D),e.enabled||i.classList.add(a.lockClass)}))}function M(){const a=e.params.pagination;if(k())return;let s=e.pagination.el;s&&(s=f.m(s),s.forEach(i=>{i.classList.remove(a.hiddenClass),i.classList.remove(a.modifierClass+a.type),i.classList.remove(e.isHorizontal()?a.horizontalClass:a.verticalClass),a.clickable&&(i.classList.remove(...(a.clickableClass||"").split(" ")),i.removeEventListener("click",D))})),e.pagination.bullets&&e.pagination.bullets.forEach(i=>i.classList.remove(...a.bulletActiveClass.split(" ")))}u("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const a=e.params.pagination;let{el:s}=e.pagination;s=f.m(s),s.forEach(i=>{i.classList.remove(a.horizontalClass,a.verticalClass),i.classList.add(e.isHorizontal()?a.horizontalClass:a.verticalClass)})}),u("init",()=>{e.params.pagination.enabled===!1?P():(A(),B(),h())}),u("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),u("snapIndexChange",()=>{h()}),u("snapGridLengthChange",()=>{B(),h()}),u("destroy",()=>{M()}),u("enable disable",()=>{let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),u("lock unlock",()=>{h()}),u("click",(a,s)=>{const i=s.target,t=f.m(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&t&&t.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const c=t[0].classList.contains(e.params.pagination.hiddenClass);v(c===!0?"paginationShow":"paginationHide"),t.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const O=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.remove(e.params.pagination.paginationDisabledClass))),A(),B(),h()},P=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:a}=e.pagination;a&&(a=f.m(a),a.forEach(s=>s.classList.add(e.params.pagination.paginationDisabledClass))),M()};Object.assign(e.pagination,{enable:O,disable:P,render:B,update:h,init:A,destroy:M})}module.exports=w;
2
2
  //# sourceMappingURL=index.cjs345.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs35.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":"uQAYMA,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,EACjB,CAAE,MAAAE,CAAA,EAAUT,EAAWI,CAAQ,EAC/B,CAAE,UAAAM,CAAA,EAAcT,EAAQG,CAAQ,EAChC,CAACO,EAAYC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EAE9C,OAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,KACJ,MAAO,CAAE,MAAAN,CAAa,EACtB,UAAWO,EAAA,KAAK,SAAUL,GAAc,aAAa,EAGrD,SAAA,CAAAG,EAAA,kBAAA,KAAC,MAAA,CACC,MAAO,CAAE,OAAQJ,CAAU,EAC3B,UAAWM,EAAAA,KAAK,iBAAkB,QAAQ,EAE1C,SAAA,CAAAC,EAAA,kBAAA,IAACT,EAAA,CACC,IAAKF,GAAA,YAAAA,EAAO,IACZ,UAAWU,EAAAA,KAAK,UAAW,qBAAqB,EAChD,IAAI,KAAA,CACN,EACCC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAWD,EAAA,KAAK,aAAa,CAAG,CAAA,CAAA,CAAA,CACvC,EACAC,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWD,EAAA,KACT,YACA,0EACF,EAEA,SAAAF,EAAA,kBAAA,KAAC,SAAA,CACC,UAAWE,EAAA,KACT,mBACA,qDACF,EACA,KAAK,SACL,QAAS,IAAMJ,EAAY,CAACD,CAAU,EAEtC,SAAA,CAAAM,EAAA,kBAAA,IAACZ,EAAA,CACC,UAAWW,EAAA,KACT,0DACF,EAEC,SAAAb,CAAA,CACH,EACAc,EAAA,kBAAA,IAACC,EAAA,UAAA,CACC,MAAO,UACP,UAAWF,EAAAA,KAAK,WAAY,CAAG,SAAaL,CAAY,CAAA,CAAA,CAAA,CAC1D,CAAA,CAAA,CACF,CACF,EACCA,GACCM,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWD,EAAA,KACT,qDACF,EAEA,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.cjs35.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":"uQAYMA,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,EACjB,CAAE,MAAAE,CAAA,EAAUT,EAAWI,CAAQ,EAC/B,CAAE,UAAAM,CAAA,EAAcT,EAAQG,CAAQ,EAChC,CAACO,EAAYC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EAE9C,OAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,KACJ,MAAO,CAAE,MAAAN,CAAa,EACtB,UAAWO,EAAA,KAAK,SAAUL,GAAc,aAAa,EAGrD,SAAA,CAAAG,EAAA,kBAAA,KAAC,MAAA,CACC,MAAO,CAAE,OAAQJ,CAAU,EAC3B,UAAWM,EAAAA,KAAK,iBAAkB,QAAQ,EAE1C,SAAA,CAAAC,EAAA,kBAAA,IAACT,EAAA,CACC,IAAKF,GAAA,YAAAA,EAAO,IACZ,UAAWU,EAAAA,KAAK,UAAW,qBAAqB,EAChD,IAAI,KAAA,CACN,EACCC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAWD,EAAA,KAAK,aAAa,CAAG,CAAA,CAAA,CAAA,CACvC,EACAC,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWD,EAAA,KACT,YACA,0EACF,EAEA,SAAAF,EAAA,kBAAA,KAAC,SAAA,CACC,UAAWE,EAAA,KACT,mBACA,qDACF,EACA,KAAK,SACL,QAAS,IAAMJ,EAAY,CAACD,CAAU,EAEtC,SAAA,CAAAM,EAAA,kBAAA,IAACZ,EAAA,CACC,UAAWW,EAAA,KACT,0DACF,EAEC,SAAAb,CAAA,CACH,EACAc,EAAA,kBAAA,IAACC,EAAA,UAAA,CACC,MAAO,UACP,UAAWF,EAAAA,KAAK,WAAY,CAAG,SAAaL,CAAY,CAAA,CAAA,CAAA,CAC1D,CAAA,CAAA,CACF,CACF,EACCA,GACCM,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWD,EAAA,KACT,qDACF,EAEA,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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs406.js");var r=e.__require();exports.lodashExports=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs466.js");var r=e.__require();exports.lodashExports=r;
2
2
  //# sourceMappingURL=index.cjs353.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs36.js","sources":["../src/components/ui/ArrowLink/index.tsx"],"sourcesContent":["import { ArrowRight } from \"@/icons/ArrowRight\";\r\nimport { TypographyKeys } from \"@/theme/typography\";\r\nimport React from \"react\";\r\n\r\ntype BaseArrowLinkProps = {\r\n isExternal?: boolean;\r\n fs?: TypographyKeys;\r\n children: React.ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype ArrowLinkAsLinkProps = BaseArrowLinkProps & {\r\n href: string;\r\n asLink?: \"a\" | React.ComponentType<any>;\r\n onClick?: never;\r\n type?: never;\r\n asButton?: never;\r\n};\r\n\r\ntype ArrowLinkAsButtonProps = BaseArrowLinkProps & {\r\n onClick?: () => void;\r\n type?: \"button\";\r\n asButton?: true;\r\n asLink?: never;\r\n href?: never;\r\n};\r\n\r\ntype ArrowLinkProps = ArrowLinkAsLinkProps | ArrowLinkAsButtonProps;\r\n\r\nexport const ArrowLink = ({\r\n href,\r\n asLink = \"a\",\r\n isExternal = false,\r\n fs = \"6\",\r\n children,\r\n className = \"\",\r\n onClick,\r\n type = \"button\",\r\n asButton,\r\n ...props\r\n}: ArrowLinkProps) => {\r\n const createFontSizeClass = (size: TypographyKeys) => {\r\n return `fs-${size}`;\r\n };\r\n\r\n const fontSizeClass = createFontSizeClass(fs);\r\n const baseClasses = `max-w-fit text-decoration-none text-primary base-row align-items-center fw-bold gap-x8 hover-underline ${fontSizeClass} ${className}`;\r\n\r\n if (asButton) {\r\n return (\r\n <button\r\n className={`bg-transparent border-none ${baseClasses}`}\r\n onClick={onClick}\r\n type={type}\r\n {...props}\r\n >\r\n {children}\r\n <ArrowRight color={\"primary\"} width={24} height={24} />\r\n </button>\r\n );\r\n }\r\n\r\n const LinkComponent = asLink;\r\n\r\n return (\r\n <LinkComponent\r\n className={baseClasses}\r\n href={href}\r\n target={isExternal ? \"_blank\" : undefined}\r\n rel={isExternal ? \"noreferrer noopener\" : undefined}\r\n {...props}\r\n >\r\n {children}\r\n {isExternal && (\r\n <span className=\"visually-hidden\">\r\n {\" \"}\r\n (si apre in una nuova finestra)\r\n </span>\r\n )}\r\n <ArrowRight color={\"primary\"} width={24} height={24} />\r\n </LinkComponent>\r\n );\r\n};\r\n"],"names":["ArrowLink","href","asLink","isExternal","fs","children","className","onClick","type","asButton","props","baseClasses","size","jsxs","ArrowRight","LinkComponent"],"mappings":"oJA6BaA,EAAY,CAAC,CACxB,KAAAC,EACA,OAAAC,EAAS,IACT,WAAAC,EAAa,GACb,GAAAC,EAAK,IACL,SAAAC,EACA,UAAAC,EAAY,GACZ,QAAAC,EACA,KAAAC,EAAO,SACP,SAAAC,EACA,GAAGC,CACL,IAAsB,CAMpB,MAAMC,EAAc,2GALSC,GACpB,MAAMA,CAAI,IAGuBR,CAAE,CAC+F,IAAIE,CAAS,GAExJ,GAAIG,EAEA,OAAAI,EAAA,kBAAA,KAAC,SAAA,CACC,UAAW,8BAA8BF,CAAW,GACpD,QAAAJ,EACA,KAAAC,EACC,GAAGE,EAEH,SAAA,CAAAL,0BACAS,EAAAA,WAAW,CAAA,MAAO,UAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CAAA,CACvD,EAIJ,MAAMC,EAAgBb,EAGpB,OAAAW,EAAA,kBAAA,KAACE,EAAA,CACC,UAAWJ,EACX,KAAAV,EACA,OAAQE,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OACzC,GAAGO,EAEH,SAAA,CAAAL,EACAF,GACCU,EAAA,kBAAA,KAAC,OAAK,CAAA,UAAU,kBACb,SAAA,CAAA,IAAI,iCAAA,EAEP,0BAEDC,EAAAA,WAAW,CAAA,MAAO,UAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CAAA,CACvD,CAEJ"}
1
+ {"version":3,"file":"index.cjs36.js","sources":["../src/components/ui/ArrowLink/index.tsx"],"sourcesContent":["import { ArrowRight } from \"@/icons/ArrowRight\";\nimport { TypographyKeys } from \"@/theme/typography\";\nimport React from \"react\";\n\ntype BaseArrowLinkProps = {\n isExternal?: boolean;\n fs?: TypographyKeys;\n children: React.ReactNode;\n className?: string;\n};\n\ntype ArrowLinkAsLinkProps = BaseArrowLinkProps & {\n href: string;\n asLink?: \"a\" | React.ComponentType<any>;\n onClick?: never;\n type?: never;\n asButton?: never;\n};\n\ntype ArrowLinkAsButtonProps = BaseArrowLinkProps & {\n onClick?: () => void;\n type?: \"button\";\n asButton?: true;\n asLink?: never;\n href?: never;\n};\n\ntype ArrowLinkProps = ArrowLinkAsLinkProps | ArrowLinkAsButtonProps;\n\nexport const ArrowLink = ({\n href,\n asLink = \"a\",\n isExternal = false,\n fs = \"6\",\n children,\n className = \"\",\n onClick,\n type = \"button\",\n asButton,\n ...props\n}: ArrowLinkProps) => {\n const createFontSizeClass = (size: TypographyKeys) => {\n return `fs-${size}`;\n };\n\n const fontSizeClass = createFontSizeClass(fs);\n const baseClasses = `max-w-fit text-decoration-none text-primary base-row align-items-center fw-bold gap-x8 hover-underline ${fontSizeClass} ${className}`;\n\n if (asButton) {\n return (\n <button\n className={`bg-transparent border-none ${baseClasses}`}\n onClick={onClick}\n type={type}\n {...props}\n >\n {children}\n <ArrowRight color={\"primary\"} width={24} height={24} />\n </button>\n );\n }\n\n const LinkComponent = asLink;\n\n return (\n <LinkComponent\n className={baseClasses}\n href={href}\n target={isExternal ? \"_blank\" : undefined}\n rel={isExternal ? \"noreferrer noopener\" : undefined}\n {...props}\n >\n {children}\n {isExternal && (\n <span className=\"visually-hidden\">\n {\" \"}\n (si apre in una nuova finestra)\n </span>\n )}\n <ArrowRight color={\"primary\"} width={24} height={24} />\n </LinkComponent>\n );\n};\n"],"names":["ArrowLink","href","asLink","isExternal","fs","children","className","onClick","type","asButton","props","baseClasses","size","jsxs","ArrowRight","LinkComponent"],"mappings":"oJA6BaA,EAAY,CAAC,CACxB,KAAAC,EACA,OAAAC,EAAS,IACT,WAAAC,EAAa,GACb,GAAAC,EAAK,IACL,SAAAC,EACA,UAAAC,EAAY,GACZ,QAAAC,EACA,KAAAC,EAAO,SACP,SAAAC,EACA,GAAGC,CACL,IAAsB,CAMpB,MAAMC,EAAc,2GALSC,GACpB,MAAMA,CAAI,IAGuBR,CAAE,CAC+F,IAAIE,CAAS,GAExJ,GAAIG,EAEA,OAAAI,EAAA,kBAAA,KAAC,SAAA,CACC,UAAW,8BAA8BF,CAAW,GACpD,QAAAJ,EACA,KAAAC,EACC,GAAGE,EAEH,SAAA,CAAAL,0BACAS,EAAAA,WAAW,CAAA,MAAO,UAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CAAA,CACvD,EAIJ,MAAMC,EAAgBb,EAGpB,OAAAW,EAAA,kBAAA,KAACE,EAAA,CACC,UAAWJ,EACX,KAAAV,EACA,OAAQE,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OACzC,GAAGO,EAEH,SAAA,CAAAL,EACAF,GACCU,EAAA,kBAAA,KAAC,OAAK,CAAA,UAAU,kBACb,SAAA,CAAA,IAAI,iCAAA,EAEP,0BAEDC,EAAAA,WAAW,CAAA,MAAO,UAAW,MAAO,GAAI,OAAQ,EAAI,CAAA,CAAA,CAAA,CACvD,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs407.js"),e=require("./index.cjs413.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
1
+ "use strict";const r=require("./index.cjs417.js"),e=require("./index.cjs468.js");var s=e.__require();const o=r.getDefaultExportFromCjs(s);module.exports=o;
2
2
  //# sourceMappingURL=index.cjs360.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs415.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs398.js");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs416.js"),B=require("react");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs399.js"),B=require("react");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs37.js","sources":["../src/components/ui/EntryButton/index.tsx"],"sourcesContent":["import { Spid } from \"@/icons/Spid\";\r\nimport \"./EntryButton.scss\";\r\nimport { Row } from \"@/components\";\r\n\r\ntype EntryButtonProps = {\r\n href: string;\r\n asLink?: \"a\" | React.ComponentType<any>;\r\n showIcon?: boolean;\r\n ariaLabel: string;\r\n children: React.ReactNode;\r\n};\r\n\r\nexport const EntryButton = ({\r\n href,\r\n asLink = \"a\",\r\n showIcon = false,\r\n ariaLabel = \"Accedi con SPID\",\r\n children,\r\n}: EntryButtonProps) => {\r\n const LinkComponent = asLink;\r\n\r\n return (\r\n <LinkComponent\r\n className=\"bg-primary min-h-x40 h-full base-row align-items-center br-x4 min-w-x252 text-decoration-none ui-entry-btn\"\r\n href={href}\r\n rel={\"noreferrer noopener\"}\r\n >\r\n <Row py={\"x8\"} px={\"x12\"} className=\"items-center ui-entry-btn-spid\">\r\n {showIcon ? (\r\n <Spid color=\"white\" />\r\n ) : (\r\n <div style={{ width: 24, height: 24 }} aria-hidden=\"true\" />\r\n )}\r\n </Row>\r\n <span\r\n className=\"p-x8 fw-bold text-white text-decoration-none fs-6\"\r\n rel={\"noreferrer noopener\"}\r\n >\r\n {children}\r\n {ariaLabel && <span className=\"visually-hidden\">{ariaLabel}</span>}\r\n </span>\r\n </LinkComponent>\r\n );\r\n};\r\n"],"names":["EntryButton","href","asLink","showIcon","ariaLabel","children","LinkComponent","jsxs","jsx","Row","Spid"],"mappings":"oNAYaA,EAAc,CAAC,CAC1B,KAAAC,EACA,OAAAC,EAAS,IACT,SAAAC,EAAW,GACX,UAAAC,EAAY,kBACZ,SAAAC,CACF,IAAwB,CACtB,MAAMC,EAAgBJ,EAGpB,OAAAK,EAAA,kBAAA,KAACD,EAAA,CACC,UAAU,6GACV,KAAAL,EACA,IAAK,sBAEL,SAAA,CAACO,EAAAA,kBAAAA,IAAAC,EAAAA,IAAA,CAAI,GAAI,KAAM,GAAI,MAAO,UAAU,iCACjC,SAAAN,EACEK,EAAA,kBAAA,IAAAE,EAAA,KAAA,CAAK,MAAM,OAAA,CAAQ,EAEnBF,EAAA,kBAAA,IAAA,MAAA,CAAI,MAAO,CAAE,MAAO,GAAI,OAAQ,EAAG,EAAG,cAAY,MAAA,CAAO,CAE9D,CAAA,EACAD,EAAA,kBAAA,KAAC,OAAA,CACC,UAAU,oDACV,IAAK,sBAEJ,SAAA,CAAAF,EACAD,GAAaI,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,kBAAmB,SAAUJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAC7D,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs37.js","sources":["../src/components/ui/EntryButton/index.tsx"],"sourcesContent":["import { Spid } from \"@/icons/Spid\";\nimport \"./EntryButton.scss\";\nimport { Row } from \"@/components\";\n\ntype EntryButtonProps = {\n href: string;\n asLink?: \"a\" | React.ComponentType<any>;\n showIcon?: boolean;\n ariaLabel: string;\n children: React.ReactNode;\n};\n\nexport const EntryButton = ({\n href,\n asLink = \"a\",\n showIcon = false,\n ariaLabel = \"Accedi con SPID\",\n children,\n}: EntryButtonProps) => {\n const LinkComponent = asLink;\n\n return (\n <LinkComponent\n className=\"bg-primary min-h-x40 h-full base-row align-items-center br-x4 min-w-x252 text-decoration-none ui-entry-btn\"\n href={href}\n rel={\"noreferrer noopener\"}\n >\n <Row py={\"x8\"} px={\"x12\"} className=\"items-center ui-entry-btn-spid\">\n {showIcon ? (\n <Spid color=\"white\" />\n ) : (\n <div style={{ width: 24, height: 24 }} aria-hidden=\"true\" />\n )}\n </Row>\n <span\n className=\"p-x8 fw-bold text-white text-decoration-none fs-6\"\n rel={\"noreferrer noopener\"}\n >\n {children}\n {ariaLabel && <span className=\"visually-hidden\">{ariaLabel}</span>}\n </span>\n </LinkComponent>\n );\n};\n"],"names":["EntryButton","href","asLink","showIcon","ariaLabel","children","LinkComponent","jsxs","jsx","Row","Spid"],"mappings":"oNAYaA,EAAc,CAAC,CAC1B,KAAAC,EACA,OAAAC,EAAS,IACT,SAAAC,EAAW,GACX,UAAAC,EAAY,kBACZ,SAAAC,CACF,IAAwB,CACtB,MAAMC,EAAgBJ,EAGpB,OAAAK,EAAA,kBAAA,KAACD,EAAA,CACC,UAAU,6GACV,KAAAL,EACA,IAAK,sBAEL,SAAA,CAACO,EAAAA,kBAAAA,IAAAC,EAAAA,IAAA,CAAI,GAAI,KAAM,GAAI,MAAO,UAAU,iCACjC,SAAAN,EACEK,EAAA,kBAAA,IAAAE,EAAA,KAAA,CAAK,MAAM,OAAA,CAAQ,EAEnBF,EAAA,kBAAA,IAAA,MAAA,CAAI,MAAO,CAAE,MAAO,GAAI,OAAQ,EAAG,EAAG,cAAY,MAAA,CAAO,CAE9D,CAAA,EACAD,EAAA,kBAAA,KAAC,OAAA,CACC,UAAU,oDACV,IAAK,sBAEJ,SAAA,CAAAF,EACAD,GAAaI,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,kBAAmB,SAAUJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAC7D,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs417.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs407.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
2
2
  //# sourceMappingURL=index.cjs371.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs396.js"),p=require("./index.cjs204.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),f=require("react-dom"),m=require("./index.cjs388.js"),p=require("./index.cjs204.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const d=n(l),v=n(f);var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],y=b.reduce((e,t)=>{const i=m.createSlot(`Primitive.${t}`),r=d.forwardRef((o,c)=>{const{asChild:s,...a}=o,u=s?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsxRuntimeExports.jsx(u,{...a,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=y;exports.dispatchDiscreteCustomEvent=O;
2
2
  //# sourceMappingURL=index.cjs372.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs368.js"),Ve=require("./index.cjs418.js"),y=require("./index.cjs369.js"),Ye=require("./index.cjs370.js"),Xe=require("./index.cjs419.js"),We=require("./index.cjs390.js"),ze=require("./index.cjs393.js"),Ze=require("./index.cjs391.js"),T=require("./index.cjs420.js"),Je=require("./index.cjs392.js"),X=require("./index.cjs380.js"),A=require("./index.cjs372.js"),W=require("./index.cjs421.js"),Qe=require("./index.cjs396.js"),be=require("./index.cjs417.js"),et=require("./index.cjs395.js"),tt=require("./index.cjs394.js"),a=require("./index.cjs204.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[N,ut,at]=Ve.createCollection(F),[j,it]=Ye.createContextScope(F,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(F),[dt,G]=j(F),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const R=()=>{f.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>f.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=F;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Mt=Qe.createSlot("MenuContent.ScrollLock"),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,disableOutsideScroll:M,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=M?tt:r.Fragment,Ue=M?{as:Mt,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=wt(ne,E,te),k=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),k&&setTimeout(()=>k.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&Tt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Fe(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const k=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&k.reverse(),It(k)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,L(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Et="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Et;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,R=>o==null?void 0:o(R),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,R]=r.useState("");return r.useEffect(()=>{const M=p.current;M&&R((M.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,L(M=>{o?l.onItemLeave(M):(l.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(M=>l.onItemLeave(M))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Ct="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Ct;var Oe="MenuRadioGroup",[ht,gt]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(ht,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var ke="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=gt(ke,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=ke;var pe="MenuItemIndicator",[De,_t]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=_t(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var Pt="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=Pt;var jt="MenuArrow",Me=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Me.displayName=jt;var St="MenuSub",[Yt,Ne]=j(St),D="MenuSubTrigger",Re=r.forwardRef((e,n)=>{const t=S(D,e.__scopeMenu),o=G(D,e.__scopeMenu),u=Ne(D,e.__scopeMenu),s=ue(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Fe(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,L(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(c=>{var R,M;f();const d=(R=t.content)==null?void 0:R.getBoundingClientRect();if(d){const P=(M=t.content)==null?void 0:M.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var R;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(R=t.content)==null||R.focus(),c.preventDefault())})})})});Re.displayName=D;var Le="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Le,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var R;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(R=m.trigger)==null||R.focus(),f.preventDefault())})})})})})});Ee.displayName=Le;function Fe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function It(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function bt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function wt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=bt(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function yt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function Tt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return yt(t,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var At=re,Ot=Z,kt=ce,Dt=ae,Nt=J,Lt=le,Ft=K,Gt=de,Kt=fe,Ht=me,qt=xe,Ut=ve,$t=Me,Bt=Re,Vt=Ee;exports.Anchor=Ot;exports.Arrow=$t;exports.CheckboxItem=Gt;exports.Content=Dt;exports.Group=Nt;exports.Item=Ft;exports.ItemIndicator=qt;exports.Label=Lt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Me;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Re;exports.Portal=kt;exports.RadioGroup=Kt;exports.RadioItem=Ht;exports.Root=At;exports.Separator=Ut;exports.SubContent=Vt;exports.SubTrigger=Bt;exports.createMenuScope=it;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs368.js"),Ve=require("./index.cjs408.js"),y=require("./index.cjs369.js"),Ye=require("./index.cjs370.js"),Xe=require("./index.cjs409.js"),We=require("./index.cjs382.js"),ze=require("./index.cjs385.js"),Ze=require("./index.cjs383.js"),T=require("./index.cjs410.js"),Je=require("./index.cjs384.js"),X=require("./index.cjs381.js"),A=require("./index.cjs372.js"),W=require("./index.cjs411.js"),Qe=require("./index.cjs388.js"),be=require("./index.cjs407.js"),et=require("./index.cjs387.js"),tt=require("./index.cjs386.js"),a=require("./index.cjs204.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[N,ut,at]=Ve.createCollection(F),[j,it]=Ye.createContextScope(F,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(F),[dt,G]=j(F),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const R=()=>{f.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>f.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=F;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Mt=Qe.createSlot("MenuContent.ScrollLock"),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,disableOutsideScroll:M,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=M?tt:r.Fragment,Ue=M?{as:Mt,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=wt(ne,E,te),k=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),k&&setTimeout(()=>k.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&Tt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:R,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Fe(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const k=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&k.reverse(),It(k)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,L(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Et="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Et;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,R=>o==null?void 0:o(R),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,R]=r.useState("");return r.useEffect(()=>{const M=p.current;M&&R((M.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,L(M=>{o?l.onItemLeave(M):(l.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(M=>l.onItemLeave(M))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Ct="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Ct;var Oe="MenuRadioGroup",[ht,gt]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(ht,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var ke="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=gt(ke,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(De,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=ke;var pe="MenuItemIndicator",[De,_t]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=_t(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var Pt="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=Pt;var jt="MenuArrow",Me=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Me.displayName=jt;var St="MenuSub",[Yt,Ne]=j(St),D="MenuSubTrigger",Re=r.forwardRef((e,n)=>{const t=S(D,e.__scopeMenu),o=G(D,e.__scopeMenu),u=Ne(D,e.__scopeMenu),s=ue(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Fe(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,L(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,L(c=>{var R,M;f();const d=(R=t.content)==null?void 0:R.getBoundingClientRect();if(d){const P=(M=t.content)==null?void 0:M.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var R;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(R=t.content)==null||R.focus(),c.preventDefault())})})})});Re.displayName=D;var Le="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Le,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var R;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(R=m.trigger)==null||R.focus(),f.preventDefault())})})})})})});Ee.displayName=Le;function Fe(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function It(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function bt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function wt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=bt(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function yt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function Tt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return yt(t,n)}function L(e){return n=>n.pointerType==="mouse"?e(n):void 0}var At=re,Ot=Z,kt=ce,Dt=ae,Nt=J,Lt=le,Ft=K,Gt=de,Kt=fe,Ht=me,qt=xe,Ut=ve,$t=Me,Bt=Re,Vt=Ee;exports.Anchor=Ot;exports.Arrow=$t;exports.CheckboxItem=Gt;exports.Content=Dt;exports.Group=Nt;exports.Item=Ft;exports.ItemIndicator=qt;exports.Label=Lt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Me;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Re;exports.Portal=kt;exports.RadioGroup=Kt;exports.RadioItem=Ht;exports.Root=At;exports.Separator=Ut;exports.SubContent=Vt;exports.SubTrigger=Bt;exports.createMenuScope=it;
2
2
  //# sourceMappingURL=index.cjs373.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs422.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs412.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
2
2
  //# sourceMappingURL=index.cjs374.js.map
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=(t,n)=>{a.useEffect(()=>{if(!n||!t.current)return;const o=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=o[0],s=o[o.length-1],r=e=>{e.key==="Tab"&&(e.shiftKey?document.activeElement===u&&(s.focus(),e.preventDefault()):document.activeElement===s&&(u.focus(),e.preventDefault()))},c=document.activeElement;return u.focus(),document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n&&(c==null||c.focus())}},[n,t])};exports.useFocusTrap=l;
2
- //# sourceMappingURL=index.cjs375.js.map
2
+ //# sourceMappingURL=index.cjs376.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs376.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":"yGAEaA,EAAe,CAC1BC,EACAC,IACG,CACHC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACD,GAAY,CAACD,EAAI,QAAS,OAEzB,MAAAG,EAAoBH,EAAI,QAAQ,iBACpC,0EACF,EACMI,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAM,EAC3B,EAAE,eAAe,GAGf,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAM,EAC5B,EAAE,eAAe,GAGvB,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAM,EAEnB,SAAA,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACF,SAAA,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CAAA,EACC,CAACN,EAAUD,CAAG,CAAC,CACpB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs422.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=c(o);function s(e){const t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
2
2
  //# sourceMappingURL=index.cjs379.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs379.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":"kaAGA,SAASA,EAAQC,EAAS,CACxB,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,MAAM,EAC7CC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAIJ,EAAS,CACXE,EAAQ,CAAE,MAAOF,EAAQ,YAAa,OAAQA,EAAQ,aAAc,EACpE,MAAMK,EAAiB,IAAI,eAAgBC,GAAY,CAIrD,GAHI,CAAC,MAAM,QAAQA,CAAO,GAGtB,CAACA,EAAQ,OACX,OAEF,MAAMC,EAAQD,EAAQ,CAAC,EACvB,IAAIE,EACAC,EACJ,GAAI,kBAAmBF,EAAO,CAC5B,MAAMG,EAAkBH,EAAM,cACxBI,EAAa,MAAM,QAAQD,CAAe,EAAIA,EAAgB,CAAC,EAAIA,EACzEF,EAAQG,EAAW,WACnBF,EAASE,EAAW,SAC9B,MACUH,EAAQR,EAAQ,YAChBS,EAAST,EAAQ,aAEnBE,EAAQ,CAAE,MAAAM,EAAO,OAAAC,EAAQ,CACjC,CAAO,EACD,OAAAJ,EAAe,QAAQL,EAAS,CAAE,IAAK,YAAY,CAAE,EAC9C,IAAMK,EAAe,UAAUL,CAAO,CACnD,MACME,EAAQ,MAAM,CAEpB,EAAK,CAACF,CAAO,CAAC,EACLC,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs379.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":"mYAEA,SAASA,EAAYC,EAAO,CAC1B,MAAMC,EAAMC,EAAM,OAAO,CAAE,MAAAF,EAAO,SAAUA,EAAO,EACnD,OAAOE,EAAM,QAAQ,KACfD,EAAI,QAAQ,QAAUD,IACxBC,EAAI,QAAQ,SAAWA,EAAI,QAAQ,MACnCA,EAAI,QAAQ,MAAQD,GAEfC,EAAI,QAAQ,UAClB,CAACD,CAAK,CAAC,CACZ","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs38.js","sources":["../src/components/ui/BaseModal/index.tsx"],"sourcesContent":["\"use client\";\r\nimport * as Dialog from \"@radix-ui/react-dialog\";\r\nimport { BaseModalHeader } from \"./BaseModalHeader\";\r\nimport { BaseModalFooter } from \"./BaseModalFooter\";\r\nimport { BaseModalContent } from \"./BaseModalContent\";\r\nimport { BaseModalBackHeader } from \"./BaseModalBackHeader\";\r\nimport \"./BaseModal.scss\";\r\n\r\ntype BaseModalProps = {\r\n open: boolean;\r\n setOpen: (open: boolean) => void;\r\n overrideClassNames?: string;\r\n id?: string;\r\n children: React.ReactNode;\r\n};\r\n\r\nconst BaseModal = ({\r\n open,\r\n setOpen,\r\n overrideClassNames,\r\n id = undefined,\r\n children,\r\n}: BaseModalProps) => {\r\n return (\r\n <Dialog.Root open={open} onOpenChange={setOpen}>\r\n <Dialog.Portal>\r\n <Dialog.Overlay className=\"ui-base-modal-overlay\" />\r\n <Dialog.Content\r\n className={`bg-white shadow br-x4 ui-base-modal-body ${overrideClassNames ?? \"\"}`}\r\n id={id}\r\n >\r\n {children}\r\n </Dialog.Content>\r\n </Dialog.Portal>\r\n </Dialog.Root>\r\n );\r\n};\r\n\r\nBaseModal.Header = BaseModalHeader;\r\nBaseModal.HeaderBack = BaseModalBackHeader;\r\nBaseModal.Content = BaseModalContent;\r\nBaseModal.Footer = BaseModalFooter;\r\n\r\nexport { BaseModal };\r\n"],"names":["BaseModal","open","setOpen","overrideClassNames","id","children","jsx","Dialog.Root","jsxs","Dialog.Portal","Dialog.Overlay","Dialog.Content","BaseModalHeader","BaseModalBackHeader","BaseModalContent","BaseModalFooter"],"mappings":"6SAgBA,MAAMA,EAAY,CAAC,CACjB,KAAAC,EACA,QAAAC,EACA,mBAAAC,EACA,GAAAC,EAAK,OACL,SAAAC,CACF,IAEIC,wBAACC,EAAAA,KAAA,CAAY,KAAAN,EAAY,aAAcC,EACrC,SAAAM,EAAA,kBAAA,KAACC,SAAA,CACC,SAAA,CAAAH,EAAAA,kBAAAA,IAACI,EAAO,QAAP,CAAe,UAAU,uBAAwB,CAAA,EAClDJ,EAAA,kBAAA,IAACK,EAAO,QAAP,CACC,UAAW,4CAA4CR,GAAsB,EAAE,GAC/E,GAAAC,EAEC,SAAAC,CAAA,CAAA,CACH,CAAA,CACF,CACF,CAAA,EAIJL,EAAU,OAASY,EAAA,gBACnBZ,EAAU,WAAaa,EAAA,oBACvBb,EAAU,QAAUc,EAAA,iBACpBd,EAAU,OAASe,EAAA"}
1
+ {"version":3,"file":"index.cjs38.js","sources":["../src/components/ui/BaseModal/index.tsx"],"sourcesContent":["\"use client\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { BaseModalHeader } from \"./BaseModalHeader\";\nimport { BaseModalFooter } from \"./BaseModalFooter\";\nimport { BaseModalContent } from \"./BaseModalContent\";\nimport { BaseModalBackHeader } from \"./BaseModalBackHeader\";\nimport \"./BaseModal.scss\";\n\ntype BaseModalProps = {\n open: boolean;\n setOpen: (open: boolean) => void;\n overrideClassNames?: string;\n id?: string;\n children: React.ReactNode;\n};\n\nconst BaseModal = ({\n open,\n setOpen,\n overrideClassNames,\n id = undefined,\n children,\n}: BaseModalProps) => {\n return (\n <Dialog.Root open={open} onOpenChange={setOpen}>\n <Dialog.Portal>\n <Dialog.Overlay className=\"ui-base-modal-overlay\" />\n <Dialog.Content\n className={`bg-white shadow br-x4 ui-base-modal-body ${overrideClassNames ?? \"\"}`}\n id={id}\n >\n {children}\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n );\n};\n\nBaseModal.Header = BaseModalHeader;\nBaseModal.HeaderBack = BaseModalBackHeader;\nBaseModal.Content = BaseModalContent;\nBaseModal.Footer = BaseModalFooter;\n\nexport { BaseModal };\n"],"names":["BaseModal","open","setOpen","overrideClassNames","id","children","jsx","Dialog.Root","jsxs","Dialog.Portal","Dialog.Overlay","Dialog.Content","BaseModalHeader","BaseModalBackHeader","BaseModalContent","BaseModalFooter"],"mappings":"6SAgBA,MAAMA,EAAY,CAAC,CACjB,KAAAC,EACA,QAAAC,EACA,mBAAAC,EACA,GAAAC,EAAK,OACL,SAAAC,CACF,IAEIC,wBAACC,EAAAA,KAAA,CAAY,KAAAN,EAAY,aAAcC,EACrC,SAAAM,EAAA,kBAAA,KAACC,SAAA,CACC,SAAA,CAAAH,EAAAA,kBAAAA,IAACI,EAAO,QAAP,CAAe,UAAU,uBAAwB,CAAA,EAClDJ,EAAA,kBAAA,IAACK,EAAO,QAAP,CACC,UAAW,4CAA4CR,GAAsB,EAAE,GAC/E,GAAAC,EAEC,SAAAC,CAAA,CAAA,CACH,CAAA,CACF,CACF,CAAA,EAIJL,EAAU,OAASY,EAAA,gBACnBZ,EAAU,WAAaa,EAAA,oBACvBb,EAAU,QAAUc,EAAA,iBACpBd,EAAU,OAASe,EAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs369.js"),g=require("./index.cjs422.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs412.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
2
2
  //# sourceMappingURL=index.cjs380.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs380.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs380.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":"kaAGA,SAASA,EAAQC,EAAS,CACxB,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,MAAM,EAC7CC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAIJ,EAAS,CACXE,EAAQ,CAAE,MAAOF,EAAQ,YAAa,OAAQA,EAAQ,aAAc,EACpE,MAAMK,EAAiB,IAAI,eAAgBC,GAAY,CAIrD,GAHI,CAAC,MAAM,QAAQA,CAAO,GAGtB,CAACA,EAAQ,OACX,OAEF,MAAMC,EAAQD,EAAQ,CAAC,EACvB,IAAIE,EACAC,EACJ,GAAI,kBAAmBF,EAAO,CAC5B,MAAMG,EAAkBH,EAAM,cACxBI,EAAa,MAAM,QAAQD,CAAe,EAAIA,EAAgB,CAAC,EAAIA,EACzEF,EAAQG,EAAW,WACnBF,EAASE,EAAW,SAC9B,MACUH,EAAQR,EAAQ,YAChBS,EAAST,EAAQ,aAEnBE,EAAQ,CAAE,MAAAM,EAAO,OAAAC,EAAQ,CACjC,CAAO,EACD,OAAAJ,EAAe,QAAQL,EAAS,CAAE,IAAK,YAAY,CAAE,EAC9C,IAAMK,EAAe,UAAUL,CAAO,CACnD,MACME,EAAQ,MAAM,CAEpB,EAAK,CAACF,CAAO,CAAC,EACLC,CACT","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs369.js"),g=require("./index.cjs412.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
2
+ //# sourceMappingURL=index.cjs381.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs381.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");require("./index.cjs423.js");function i(){const[t,e]=o.useState(null),a=o.useCallback(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(n){return console.warn("Copy failed",n),e(null),!1}},[]);return[t,a]}exports.useCopyToClipboard=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("./index.cjs368.js"),p=require("./index.cjs372.js"),R=require("./index.cjs369.js"),x=require("./index.cjs407.js"),H=require("./index.cjs413.js"),w=require("./index.cjs204.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...v}=e,c=o.useContext(T),[u,F]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=o.useState({}),W=R.useComposedRefs(t,i=>F(i)),m=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=m.indexOf(_),P=u?m.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,D=P>=A,I=Y(i=>{const E=i.target,C=[...c.branches].some(b=>b.contains(E));!D||C||(r==null||r(i),l==null||l(i),i.defaultPrevented||d==null||d())},f),O=G(i=>{const E=i.target;[...c.branches].some(b=>b.contains(E))||(a==null||a(i),l==null||l(i),i.defaultPrevented||d==null||d())},f);return H.useEscapeKeydown(i=>{P===c.layers.size-1&&(s==null||s(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},f),o.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=L)}},[u,f,n,c]),o.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),o.useEffect(()=>{const i=()=>N({});return document.addEventListener(h,i),()=>document.removeEventListener(h,i)},[]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:W,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:y.composeEventHandlers(e.onFocusCapture,O.onFocusCapture),onBlurCapture:y.composeEventHandlers(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:y.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})});S.displayName=z;var X="DismissableLayerBranch",B=o.forwardRef((e,t)=>{const n=o.useContext(T),s=o.useRef(null),r=R.useComposedRefs(t,s);return o.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:r})});B.displayName=X;function Y(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const a=d=>{if(d.target&&!s.current){let v=function(){j(M,n,c,{discrete:!0})};const c={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function G(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1);return o.useEffect(()=>{const r=a=>{a.target&&!s.current&&j($,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function j(e,t,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?p.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
2
  //# sourceMappingURL=index.cjs382.js.map