@anoki/fse-ui 1.0.0-beta1.44.21 → 1.0.0-beta1.44.23

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 (413) hide show
  1. package/dist/index.cjs108.js +1 -1
  2. package/dist/index.cjs108.js.map +1 -1
  3. package/dist/index.cjs136.js +1 -1
  4. package/dist/index.cjs136.js.map +1 -1
  5. package/dist/index.cjs258.js +1 -1
  6. package/dist/index.cjs259.js +1 -1
  7. package/dist/index.cjs260.js +1 -1
  8. package/dist/index.cjs288.js +1 -1
  9. package/dist/index.cjs288.js.map +1 -1
  10. package/dist/index.cjs293.js +1 -1
  11. package/dist/index.cjs301.js +1 -1
  12. package/dist/index.cjs301.js.map +1 -1
  13. package/dist/index.cjs312.js +1 -1
  14. package/dist/index.cjs319.js +1 -1
  15. package/dist/index.cjs319.js.map +1 -1
  16. package/dist/index.cjs32.js +1 -1
  17. package/dist/index.cjs32.js.map +1 -1
  18. package/dist/index.cjs326.js +1 -1
  19. package/dist/index.cjs327.js +1 -1
  20. package/dist/index.cjs33.js +1 -1
  21. package/dist/index.cjs33.js.map +1 -1
  22. package/dist/index.cjs331.js +1 -1
  23. package/dist/index.cjs340.js +1 -1
  24. package/dist/index.cjs342.js +1 -1
  25. package/dist/index.cjs350.js +1 -1
  26. package/dist/index.cjs350.js.map +1 -1
  27. package/dist/index.cjs391.js +1 -1
  28. package/dist/index.cjs391.js.map +1 -1
  29. package/dist/index.cjs397.js +1 -1
  30. package/dist/index.cjs431.js +1 -1
  31. package/dist/index.cjs456.js +1 -1
  32. package/dist/index.cjs461.js +1 -1
  33. package/dist/index.cjs461.js.map +1 -1
  34. package/dist/index.cjs462.js +1 -1
  35. package/dist/index.cjs463.js +1 -1
  36. package/dist/index.cjs463.js.map +1 -1
  37. package/dist/index.cjs464.js +1 -1
  38. package/dist/index.cjs464.js.map +1 -1
  39. package/dist/index.cjs465.js +2 -0
  40. package/dist/index.cjs465.js.map +1 -0
  41. package/dist/index.cjs466.js +1 -1
  42. package/dist/index.cjs466.js.map +1 -1
  43. package/dist/index.cjs467.js +1 -1
  44. package/dist/index.cjs467.js.map +1 -1
  45. package/dist/index.cjs468.js +1 -1
  46. package/dist/index.cjs468.js.map +1 -1
  47. package/dist/index.cjs469.js +1 -1
  48. package/dist/index.cjs469.js.map +1 -1
  49. package/dist/index.cjs470.js +1 -1
  50. package/dist/index.cjs470.js.map +1 -1
  51. package/dist/index.cjs471.js +1 -1
  52. package/dist/index.cjs471.js.map +1 -1
  53. package/dist/index.cjs472.js +1 -1
  54. package/dist/index.cjs472.js.map +1 -1
  55. package/dist/index.cjs473.js +1 -1
  56. package/dist/index.cjs473.js.map +1 -1
  57. package/dist/index.cjs474.js +2 -0
  58. package/dist/index.cjs474.js.map +1 -0
  59. package/dist/index.cjs475.js +2 -0
  60. package/dist/index.cjs475.js.map +1 -0
  61. package/dist/index.cjs476.js +1 -1
  62. package/dist/index.cjs476.js.map +1 -1
  63. package/dist/index.cjs477.js +1 -1
  64. package/dist/index.cjs477.js.map +1 -1
  65. package/dist/index.cjs478.js +1 -1
  66. package/dist/index.cjs478.js.map +1 -1
  67. package/dist/index.cjs479.js +1 -1
  68. package/dist/index.cjs479.js.map +1 -1
  69. package/dist/index.cjs48.js +1 -1
  70. package/dist/index.cjs48.js.map +1 -1
  71. package/dist/index.cjs480.js +1 -1
  72. package/dist/index.cjs480.js.map +1 -1
  73. package/dist/index.cjs481.js +1 -1
  74. package/dist/index.cjs481.js.map +1 -1
  75. package/dist/index.cjs482.js +1 -1
  76. package/dist/index.cjs482.js.map +1 -1
  77. package/dist/index.cjs483.js +1 -1
  78. package/dist/index.cjs483.js.map +1 -1
  79. package/dist/index.cjs484.js +1 -1
  80. package/dist/index.cjs484.js.map +1 -1
  81. package/dist/index.cjs485.js +1 -1
  82. package/dist/index.cjs485.js.map +1 -1
  83. package/dist/index.cjs487.js +1 -1
  84. package/dist/index.cjs487.js.map +1 -1
  85. package/dist/index.cjs488.js +1 -1
  86. package/dist/index.cjs488.js.map +1 -1
  87. package/dist/index.cjs489.js +1 -1
  88. package/dist/index.cjs489.js.map +1 -1
  89. package/dist/index.cjs490.js +1 -1
  90. package/dist/index.cjs490.js.map +1 -1
  91. package/dist/index.cjs491.js +1 -1
  92. package/dist/index.cjs491.js.map +1 -1
  93. package/dist/index.cjs492.js +1 -1
  94. package/dist/index.cjs492.js.map +1 -1
  95. package/dist/index.cjs493.js +1 -1
  96. package/dist/index.cjs493.js.map +1 -1
  97. package/dist/index.cjs494.js +1 -1
  98. package/dist/index.cjs494.js.map +1 -1
  99. package/dist/index.cjs495.js +1 -1
  100. package/dist/index.cjs495.js.map +1 -1
  101. package/dist/index.cjs496.js +1 -1
  102. package/dist/index.cjs496.js.map +1 -1
  103. package/dist/index.cjs503.js +1 -4
  104. package/dist/index.cjs503.js.map +1 -1
  105. package/dist/index.cjs504.js +1 -1
  106. package/dist/index.cjs504.js.map +1 -1
  107. package/dist/index.cjs505.js +1 -1
  108. package/dist/index.cjs505.js.map +1 -1
  109. package/dist/index.cjs506.js +4 -1
  110. package/dist/index.cjs506.js.map +1 -1
  111. package/dist/index.cjs507.js +1 -1
  112. package/dist/index.cjs507.js.map +1 -1
  113. package/dist/index.cjs508.js +2 -0
  114. package/dist/index.cjs508.js.map +1 -0
  115. package/dist/index.cjs509.js +2 -0
  116. package/dist/index.cjs509.js.map +1 -0
  117. package/dist/index.cjs510.js +2 -0
  118. package/dist/index.cjs510.js.map +1 -0
  119. package/dist/{index.cjs521.js → index.cjs514.js} +2 -2
  120. package/dist/{index.cjs521.js.map → index.cjs514.js.map} +1 -1
  121. package/dist/{index.cjs522.js → index.cjs515.js} +2 -2
  122. package/dist/{index.cjs522.js.map → index.cjs515.js.map} +1 -1
  123. package/dist/{index.cjs523.js → index.cjs516.js} +1 -1
  124. package/dist/{index.cjs523.js.map → index.cjs516.js.map} +1 -1
  125. package/dist/{index.cjs524.js → index.cjs517.js} +1 -1
  126. package/dist/{index.cjs524.js.map → index.cjs517.js.map} +1 -1
  127. package/dist/{index.cjs525.js → index.cjs518.js} +2 -2
  128. package/dist/{index.cjs525.js.map → index.cjs518.js.map} +1 -1
  129. package/dist/index.cjs519.js +2 -0
  130. package/dist/index.cjs519.js.map +1 -0
  131. package/dist/index.cjs520.js +2 -0
  132. package/dist/index.cjs520.js.map +1 -0
  133. package/dist/index.cjs527.js +2 -0
  134. package/dist/index.cjs527.js.map +1 -0
  135. package/dist/{index.cjs534.js → index.cjs530.js} +2 -2
  136. package/dist/{index.cjs534.js.map → index.cjs530.js.map} +1 -1
  137. package/dist/index.cjs531.js +1 -1
  138. package/dist/index.cjs531.js.map +1 -1
  139. package/dist/index.cjs532.js +1 -1
  140. package/dist/index.cjs532.js.map +1 -1
  141. package/dist/index.cjs538.js +1 -1
  142. package/dist/index.cjs543.js +1 -1
  143. package/dist/index.cjs544.js +1 -1
  144. package/dist/index.cjs546.js +1 -1
  145. package/dist/index.cjs547.js +1 -1
  146. package/dist/index.cjs548.js +1 -1
  147. package/dist/index.cjs548.js.map +1 -1
  148. package/dist/index.cjs549.js +1 -1
  149. package/dist/index.cjs552.js +1 -1
  150. package/dist/index.cjs555.js +1 -1
  151. package/dist/index.cjs555.js.map +1 -1
  152. package/dist/index.cjs56.js +1 -1
  153. package/dist/index.cjs56.js.map +1 -1
  154. package/dist/index.cjs560.js +1 -1
  155. package/dist/index.cjs560.js.map +1 -1
  156. package/dist/index.cjs562.js +1 -1
  157. package/dist/index.cjs562.js.map +1 -1
  158. package/dist/index.cjs565.js +1 -1
  159. package/dist/index.cjs569.js +1 -1
  160. package/dist/index.cjs575.js +1 -1
  161. package/dist/index.cjs575.js.map +1 -1
  162. package/dist/index.cjs576.js +2 -0
  163. package/dist/index.cjs576.js.map +1 -0
  164. package/dist/index.cjs577.js +1 -1
  165. package/dist/index.cjs577.js.map +1 -1
  166. package/dist/index.cjs578.js +1 -1
  167. package/dist/index.cjs578.js.map +1 -1
  168. package/dist/{index.cjs573.js → index.cjs580.js} +1 -1
  169. package/dist/{index.cjs573.js.map → index.cjs580.js.map} +1 -1
  170. package/dist/{index.cjs574.js → index.cjs581.js} +1 -1
  171. package/dist/{index.cjs574.js.map → index.cjs581.js.map} +1 -1
  172. package/dist/index.cjs582.js +2 -0
  173. package/dist/index.cjs582.js.map +1 -0
  174. package/dist/index.cjs583.js +2 -0
  175. package/dist/index.cjs583.js.map +1 -0
  176. package/dist/index.cjs584.js +1 -1
  177. package/dist/index.cjs584.js.map +1 -1
  178. package/dist/index.cjs585.js +1 -1
  179. package/dist/index.cjs585.js.map +1 -1
  180. package/dist/index.cjs69.js +1 -1
  181. package/dist/index.cjs69.js.map +1 -1
  182. package/dist/index.cjs96.js +1 -1
  183. package/dist/index.cjs96.js.map +1 -1
  184. package/dist/index.es108.js +9 -9
  185. package/dist/index.es136.js +12 -12
  186. package/dist/index.es136.js.map +1 -1
  187. package/dist/index.es258.js +1 -1
  188. package/dist/index.es259.js +2 -2
  189. package/dist/index.es260.js +2 -2
  190. package/dist/index.es288.js +25 -24
  191. package/dist/index.es288.js.map +1 -1
  192. package/dist/index.es293.js +1 -1
  193. package/dist/index.es301.js +237 -120
  194. package/dist/index.es301.js.map +1 -1
  195. package/dist/index.es312.js +1 -1
  196. package/dist/index.es319.js +31 -30
  197. package/dist/index.es319.js.map +1 -1
  198. package/dist/index.es32.js +8 -8
  199. package/dist/index.es326.js +1 -1
  200. package/dist/index.es327.js +1 -1
  201. package/dist/index.es33.js +5 -5
  202. package/dist/index.es331.js +1 -1
  203. package/dist/index.es340.js +1 -1
  204. package/dist/index.es342.js +1 -1
  205. package/dist/index.es350.js +104 -89
  206. package/dist/index.es350.js.map +1 -1
  207. package/dist/index.es391.js +4 -4
  208. package/dist/index.es391.js.map +1 -1
  209. package/dist/index.es397.js +1 -1
  210. package/dist/index.es431.js +1 -1
  211. package/dist/index.es456.js +1 -1
  212. package/dist/index.es461.js +131 -8
  213. package/dist/index.es461.js.map +1 -1
  214. package/dist/index.es462.js +1 -1
  215. package/dist/index.es463.js +9 -3
  216. package/dist/index.es463.js.map +1 -1
  217. package/dist/index.es464.js +2 -131
  218. package/dist/index.es464.js.map +1 -1
  219. package/dist/index.es465.js +10 -0
  220. package/dist/index.es465.js.map +1 -0
  221. package/dist/index.es466.js +25 -5
  222. package/dist/index.es466.js.map +1 -1
  223. package/dist/index.es467.js +64 -23
  224. package/dist/index.es467.js.map +1 -1
  225. package/dist/index.es468.js +48 -64
  226. package/dist/index.es468.js.map +1 -1
  227. package/dist/index.es469.js +33 -29
  228. package/dist/index.es469.js.map +1 -1
  229. package/dist/index.es470.js +620 -31
  230. package/dist/index.es470.js.map +1 -1
  231. package/dist/index.es471.js +10 -621
  232. package/dist/index.es471.js.map +1 -1
  233. package/dist/index.es472.js +4 -11
  234. package/dist/index.es472.js.map +1 -1
  235. package/dist/index.es473.js +57 -15
  236. package/dist/index.es473.js.map +1 -1
  237. package/dist/index.es474.js +49 -0
  238. package/dist/index.es474.js.map +1 -0
  239. package/dist/index.es475.js +17 -0
  240. package/dist/index.es475.js.map +1 -0
  241. package/dist/index.es476.js +124 -10
  242. package/dist/index.es476.js.map +1 -1
  243. package/dist/index.es477.js +13 -54
  244. package/dist/index.es477.js.map +1 -1
  245. package/dist/index.es478.js +130 -41
  246. package/dist/index.es478.js.map +1 -1
  247. package/dist/index.es479.js +216 -12
  248. package/dist/index.es479.js.map +1 -1
  249. package/dist/index.es48.js +12 -12
  250. package/dist/index.es480.js +13 -124
  251. package/dist/index.es480.js.map +1 -1
  252. package/dist/index.es481.js +67 -13
  253. package/dist/index.es481.js.map +1 -1
  254. package/dist/index.es482.js +173 -127
  255. package/dist/index.es482.js.map +1 -1
  256. package/dist/index.es483.js +10 -217
  257. package/dist/index.es483.js.map +1 -1
  258. package/dist/index.es484.js +50 -14
  259. package/dist/index.es484.js.map +1 -1
  260. package/dist/index.es485.js +9 -69
  261. package/dist/index.es485.js.map +1 -1
  262. package/dist/index.es487.js +12 -50
  263. package/dist/index.es487.js.map +1 -1
  264. package/dist/index.es488.js +204 -8
  265. package/dist/index.es488.js.map +1 -1
  266. package/dist/index.es489.js +22 -4
  267. package/dist/index.es489.js.map +1 -1
  268. package/dist/index.es490.js +24 -5
  269. package/dist/index.es490.js.map +1 -1
  270. package/dist/index.es491.js +395 -23
  271. package/dist/index.es491.js.map +1 -1
  272. package/dist/index.es492.js +5 -11
  273. package/dist/index.es492.js.map +1 -1
  274. package/dist/index.es493.js +22 -202
  275. package/dist/index.es493.js.map +1 -1
  276. package/dist/index.es494.js +27 -20
  277. package/dist/index.es494.js.map +1 -1
  278. package/dist/index.es495.js +5 -393
  279. package/dist/index.es495.js.map +1 -1
  280. package/dist/index.es496.js +13 -23
  281. package/dist/index.es496.js.map +1 -1
  282. package/dist/index.es503.js +5 -110
  283. package/dist/index.es503.js.map +1 -1
  284. package/dist/index.es504.js +3 -16
  285. package/dist/index.es504.js.map +1 -1
  286. package/dist/index.es505.js +21 -520
  287. package/dist/index.es505.js.map +1 -1
  288. package/dist/index.es506.js +109 -126
  289. package/dist/index.es506.js.map +1 -1
  290. package/dist/index.es507.js +15 -128
  291. package/dist/index.es507.js.map +1 -1
  292. package/dist/index.es508.js +530 -0
  293. package/dist/index.es508.js.map +1 -0
  294. package/dist/index.es509.js +130 -0
  295. package/dist/index.es509.js.map +1 -0
  296. package/dist/index.es510.js +132 -0
  297. package/dist/index.es510.js.map +1 -0
  298. package/dist/{index.es521.js → index.es514.js} +3 -3
  299. package/dist/{index.es521.js.map → index.es514.js.map} +1 -1
  300. package/dist/{index.es522.js → index.es515.js} +2 -2
  301. package/dist/{index.es522.js.map → index.es515.js.map} +1 -1
  302. package/dist/{index.es523.js → index.es516.js} +1 -1
  303. package/dist/{index.es523.js.map → index.es516.js.map} +1 -1
  304. package/dist/{index.es524.js → index.es517.js} +1 -1
  305. package/dist/{index.es524.js.map → index.es517.js.map} +1 -1
  306. package/dist/{index.es525.js → index.es518.js} +2 -2
  307. package/dist/{index.es525.js.map → index.es518.js.map} +1 -1
  308. package/dist/index.es519.js +7 -0
  309. package/dist/index.es519.js.map +1 -0
  310. package/dist/index.es520.js +26 -0
  311. package/dist/index.es520.js.map +1 -0
  312. package/dist/index.es527.js +18 -0
  313. package/dist/index.es527.js.map +1 -0
  314. package/dist/{index.es534.js → index.es530.js} +2 -2
  315. package/dist/{index.es534.js.map → index.es530.js.map} +1 -1
  316. package/dist/index.es531.js +27 -3
  317. package/dist/index.es531.js.map +1 -1
  318. package/dist/index.es532.js +5 -23
  319. package/dist/index.es532.js.map +1 -1
  320. package/dist/index.es538.js +1 -1
  321. package/dist/index.es543.js +1 -1
  322. package/dist/index.es544.js +2 -2
  323. package/dist/index.es546.js +1 -1
  324. package/dist/index.es547.js +2 -2
  325. package/dist/index.es548.js +25 -24
  326. package/dist/index.es548.js.map +1 -1
  327. package/dist/index.es549.js +2 -2
  328. package/dist/index.es552.js +2 -2
  329. package/dist/index.es555.js +9 -9
  330. package/dist/index.es555.js.map +1 -1
  331. package/dist/index.es56.js +19 -19
  332. package/dist/index.es560.js +42 -42
  333. package/dist/index.es560.js.map +1 -1
  334. package/dist/index.es562.js +22 -22
  335. package/dist/index.es562.js.map +1 -1
  336. package/dist/index.es565.js +1 -1
  337. package/dist/index.es569.js +4 -4
  338. package/dist/index.es575.js +73 -3
  339. package/dist/index.es575.js.map +1 -1
  340. package/dist/index.es576.js +5 -0
  341. package/dist/index.es576.js.map +1 -0
  342. package/dist/index.es577.js +2 -4
  343. package/dist/index.es577.js.map +1 -1
  344. package/dist/index.es578.js +2 -3
  345. package/dist/index.es578.js.map +1 -1
  346. package/dist/{index.es573.js → index.es580.js} +1 -1
  347. package/dist/{index.es573.js.map → index.es580.js.map} +1 -1
  348. package/dist/{index.es574.js → index.es581.js} +1 -1
  349. package/dist/{index.es574.js.map → index.es581.js.map} +1 -1
  350. package/dist/index.es582.js +7 -0
  351. package/dist/index.es582.js.map +1 -0
  352. package/dist/index.es583.js +7 -0
  353. package/dist/index.es583.js.map +1 -0
  354. package/dist/index.es584.js +3 -74
  355. package/dist/index.es584.js.map +1 -1
  356. package/dist/index.es585.js +2 -2
  357. package/dist/index.es585.js.map +1 -1
  358. package/dist/index.es69.js +9 -9
  359. package/dist/index.es96.js +51 -22
  360. package/dist/index.es96.js.map +1 -1
  361. package/dist/styles/index.css +1 -1
  362. package/package.json +1 -1
  363. package/dist/index.cjs486.js +0 -2
  364. package/dist/index.cjs486.js.map +0 -1
  365. package/dist/index.cjs497.js +0 -2
  366. package/dist/index.cjs497.js.map +0 -1
  367. package/dist/index.cjs498.js +0 -2
  368. package/dist/index.cjs498.js.map +0 -1
  369. package/dist/index.cjs499.js +0 -2
  370. package/dist/index.cjs499.js.map +0 -1
  371. package/dist/index.cjs500.js +0 -2
  372. package/dist/index.cjs500.js.map +0 -1
  373. package/dist/index.cjs501.js +0 -2
  374. package/dist/index.cjs501.js.map +0 -1
  375. package/dist/index.cjs502.js +0 -2
  376. package/dist/index.cjs502.js.map +0 -1
  377. package/dist/index.cjs535.js +0 -2
  378. package/dist/index.cjs535.js.map +0 -1
  379. package/dist/index.cjs536.js +0 -2
  380. package/dist/index.cjs536.js.map +0 -1
  381. package/dist/index.cjs571.js +0 -2
  382. package/dist/index.cjs571.js.map +0 -1
  383. package/dist/index.cjs572.js +0 -2
  384. package/dist/index.cjs572.js.map +0 -1
  385. package/dist/index.cjs579.js +0 -2
  386. package/dist/index.cjs579.js.map +0 -1
  387. package/dist/index.es486.js +0 -181
  388. package/dist/index.es486.js.map +0 -1
  389. package/dist/index.es497.js +0 -32
  390. package/dist/index.es497.js.map +0 -1
  391. package/dist/index.es498.js +0 -8
  392. package/dist/index.es498.js.map +0 -1
  393. package/dist/index.es499.js +0 -18
  394. package/dist/index.es499.js.map +0 -1
  395. package/dist/index.es500.js +0 -8
  396. package/dist/index.es500.js.map +0 -1
  397. package/dist/index.es501.js +0 -6
  398. package/dist/index.es501.js.map +0 -1
  399. package/dist/index.es502.js +0 -27
  400. package/dist/index.es502.js.map +0 -1
  401. package/dist/index.es535.js +0 -31
  402. package/dist/index.es535.js.map +0 -1
  403. package/dist/index.es536.js +0 -8
  404. package/dist/index.es536.js.map +0 -1
  405. package/dist/index.es571.js +0 -5
  406. package/dist/index.es571.js.map +0 -1
  407. package/dist/index.es572.js +0 -5
  408. package/dist/index.es572.js.map +0 -1
  409. package/dist/index.es579.js +0 -5
  410. package/dist/index.es579.js.map +0 -1
  411. /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
  412. /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
  413. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DelegateCard/DelegateCard.css');const e=require("./index.cjs240.js");;/* empty css */const g=require("react"),a=require("./index.cjs301.js"),i=require("./index.cjs9.js"),s=require("./index.cjs10.js"),C=({id:n,isSelected:x,title:d,subtitle:j,region:o,relation:r,isMe:t=!1,showRegion:l=!1,setSelectedCard:u=()=>{},className:p,labelRelation:m="Relazione con il delegante",labelRegion:h="Regione di assistenza",labelRecord:R="IL TUO FASCICOLO"})=>{const f=g.useRef(null),w=c=>c.charAt(0).toUpperCase()+c.slice(1),E=()=>e.jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsxRuntimeExports.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});return e.jsxRuntimeExports.jsxs(i.Row,{br:"x4",p:"x24",gap:"x16",bg:"white",text:"slate-20",ref:f,className:`${p} ${x?"ui-is-active":""} ui-card-delegate shadow cursor-pointer`,onClick:()=>{u(n)},style:{width:"100%"},children:[e.jsxRuntimeExports.jsx("div",{className:"mt-x4",children:e.jsxRuntimeExports.jsx(a.Root,{id:n,checked:x,className:"ui-checkbox-filter",children:e.jsxRuntimeExports.jsx(a.Indicator,{children:e.jsxRuntimeExports.jsx(E,{})})})}),e.jsxRuntimeExports.jsx(i.Row,{alignItems:"flex-start",style:{width:"100%"},justifyContent:"space-between",children:e.jsxRuntimeExports.jsxs(s.Col,{style:{flex:1},justifyContent:"center",className:"w-full",children:[e.jsxRuntimeExports.jsxs(s.Col,{gap:"x4",pb:(t||!t&&!r)&&!l?void 0:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"flex-1 text-decoration-none fs-4 md-fs-3 fw-semibold",children:d}),e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-normal text-slate-28",children:j})]}),e.jsxRuntimeExports.jsxs(s.Col,{gap:"x24",className:"delegate-row-responsive",children:[!t&&r&&e.jsxRuntimeExports.jsxs(s.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:m}),e.jsxRuntimeExports.jsx("p",{children:r})]}),l&&o&&e.jsxRuntimeExports.jsxs(s.Col,{pr:"x104",gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:h}),e.jsxRuntimeExports.jsx("p",{children:w(o)})]})]}),t&&e.jsxRuntimeExports.jsx(i.Row,{className:"ui-fascicolo-label fs-7 fw-semibold",children:R})]})})]})};exports.DelegateCard=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/DelegateCard/DelegateCard.css');const e=require("./index.cjs240.js");;/* empty css */const g=require("react"),a=require("./index.cjs301.js"),i=require("./index.cjs9.js"),s=require("./index.cjs10.js"),C=({id:x,isSelected:n,title:d,subtitle:j,region:o,relation:r,isMe:t=!1,showRegion:l=!1,setSelectedCard:u=()=>{},className:p,labelRelation:m="Relazione con il delegante",labelRegion:h="Regione di assistenza",labelRecord:R="IL TUO FASCICOLO"})=>{const f=g.useRef(null),w=c=>c.charAt(0).toUpperCase()+c.slice(1),E=()=>e.jsxRuntimeExports.jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsxRuntimeExports.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});return e.jsxRuntimeExports.jsxs(i.Row,{br:"x4",p:"x24",gap:"x16",bg:"white",text:"slate-20",ref:f,className:`${p} ${n?"ui-is-active":""} ui-card-delegate shadow cursor-pointer`,onClick:()=>{u(x)},style:{width:"100%"},children:[e.jsxRuntimeExports.jsx("div",{className:"mt-x4",children:e.jsxRuntimeExports.jsx(a.Checkbox,{id:x,checked:n,className:"ui-checkbox-filter",children:e.jsxRuntimeExports.jsx(a.CheckboxIndicator,{children:e.jsxRuntimeExports.jsx(E,{})})})}),e.jsxRuntimeExports.jsx(i.Row,{alignItems:"flex-start",style:{width:"100%"},justifyContent:"space-between",children:e.jsxRuntimeExports.jsxs(s.Col,{style:{flex:1},justifyContent:"center",className:"w-full",children:[e.jsxRuntimeExports.jsxs(s.Col,{gap:"x4",pb:(t||!t&&!r)&&!l?void 0:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"flex-1 text-decoration-none fs-4 md-fs-3 fw-semibold",children:d}),e.jsxRuntimeExports.jsx("p",{className:"fs-6 fw-normal text-slate-28",children:j})]}),e.jsxRuntimeExports.jsxs(s.Col,{gap:"x24",className:"delegate-row-responsive",children:[!t&&r&&e.jsxRuntimeExports.jsxs(s.Col,{gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:m}),e.jsxRuntimeExports.jsx("p",{children:r})]}),l&&o&&e.jsxRuntimeExports.jsxs(s.Col,{pr:"x104",gap:"x4",children:[e.jsxRuntimeExports.jsx("div",{className:"fw-bold",children:h}),e.jsxRuntimeExports.jsx("p",{children:w(o)})]})]}),t&&e.jsxRuntimeExports.jsx(i.Row,{className:"ui-fascicolo-label fs-7 fw-semibold",children:R})]})})]})};exports.DelegateCard=C;
2
2
  //# sourceMappingURL=index.cjs108.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs108.js","sources":["../src/components/ui/DelegateCard/index.tsx"],"sourcesContent":["import \"./DelegateCard.scss\";\nimport { useRef } from \"react\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { Col, Region, Row } from \"@/components\";\n\nexport type DelegateCardProps = {\n id: string;\n isSelected: boolean;\n title: string;\n subtitle: string;\n relation: string;\n isMe?: boolean;\n setSelectedCard: (id: string) => void;\n className?: string;\n showRegion?: boolean;\n region?: Region;\n labelRelation?: string;\n labelRegion?: string;\n labelRecord?: string;\n};\n\nexport const DelegateCard = ({\n id,\n isSelected,\n title,\n subtitle,\n region,\n relation,\n isMe = false,\n showRegion = false,\n setSelectedCard = () => {},\n className,\n labelRelation = \"Relazione con il delegante\",\n labelRegion = \"Regione di assistenza\",\n labelRecord = \"IL TUO FASCICOLO\",\n}: DelegateCardProps) => {\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const firstLetterUppercase = (str: string) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isSelected ? \"ui-is-active\" : \"\"} ui-card-delegate shadow cursor-pointer`}\n onClick={() => {\n setSelectedCard(id);\n }}\n style={{ width: \"100%\" }}\n >\n <div className={\"mt-x4\"}>\n <CheckboxRadix.Root\n id={id}\n checked={isSelected}\n className={\"ui-checkbox-filter\"}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n </div>\n\n <Row\n alignItems={\"flex-start\"}\n style={{ width: \"100%\" }}\n justifyContent={\"space-between\"}\n >\n <Col style={{ flex: 1 }} justifyContent={\"center\"} className={`w-full`}>\n <Col\n gap={\"x4\"}\n pb={\n (isMe || (!isMe && !relation)) && !showRegion ? undefined : \"x16\"\n }\n >\n <h3 className=\"flex-1 text-decoration-none fs-4 md-fs-3 fw-semibold\">\n {title}\n </h3>\n <p className=\"fs-6 fw-normal text-slate-28\">{subtitle}</p>\n </Col>\n <Col gap={\"x24\"} className=\"delegate-row-responsive\">\n {!isMe && relation && (\n <Col gap={\"x4\"}>\n <div className={\"fw-bold\"}>{labelRelation}</div>\n <p>{relation}</p>\n </Col>\n )}\n {showRegion && region && (\n <Col pr={\"x104\"} gap={\"x4\"}>\n <div className={\"fw-bold\"}>{labelRegion}</div>\n <p>{firstLetterUppercase(region)}</p>\n </Col>\n )}\n </Col>\n {isMe && (\n <Row className={\"ui-fascicolo-label fs-7 fw-semibold\"}>\n {labelRecord}\n </Row>\n )}\n </Col>\n </Row>\n </Row>\n );\n};\n"],"names":["DelegateCard","id","isSelected","title","subtitle","region","relation","isMe","showRegion","setSelectedCard","className","labelRelation","labelRegion","labelRecord","dropdownRef","useRef","firstLetterUppercase","str","CheckIcon","jsx","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"qQAqBaA,EAAe,CAAC,CAC3B,GAAAC,EACA,WAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,GACP,WAAAC,EAAa,GACb,gBAAAC,EAAkB,IAAM,CAAC,EACzB,UAAAC,EACA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AG,UAAU,uDACX,SACHhB,EAAA,EACCgB,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,+BAAgC,SAASf,CAAA,CAAA,CAAA,CAAA,CACxD,EACCgB,EAAA,kBAAA,KAAAI,EAAA,IAAA,CAAI,IAAK,MAAO,UAAU,0BACxB,SAAA,CAAA,CAACjB,GAAQD,GACPc,EAAA,kBAAA,KAAAI,EAAA,IAAA,CAAI,IAAK,KACR,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAY,SAAcR,EAAA,EAC1CQ,EAAAA,kBAAAA,IAAC,KAAG,SAASb,CAAA,CAAA,CAAA,EACf,EAEDE,GAAcH,GACbe,EAAA,kBAAA,KAACI,OAAI,GAAI,OAAQ,IAAK,KACpB,SAAA,CAACL,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAY,SAAYP,EAAA,EACvCO,EAAAA,kBAAAA,IAAA,IAAA,CAAG,SAAqBH,EAAAX,CAAM,CAAE,CAAA,CAAA,CACnC,CAAA,CAAA,EAEJ,EACCE,GACCY,EAAA,kBAAA,IAACE,MAAI,CAAA,UAAW,sCACb,SACHR,CAAA,CAAA,CAAA,CAEJ,CAAA,CAAA,CAAA,CACF,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs108.js","sources":["../src/components/ui/DelegateCard/index.tsx"],"sourcesContent":["import \"./DelegateCard.scss\";\nimport { useRef } from \"react\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { Col, Region, Row } from \"@/components\";\n\nexport type DelegateCardProps = {\n id: string;\n isSelected: boolean;\n title: string;\n subtitle: string;\n relation: string;\n isMe?: boolean;\n setSelectedCard: (id: string) => void;\n className?: string;\n showRegion?: boolean;\n region?: Region;\n labelRelation?: string;\n labelRegion?: string;\n labelRecord?: string;\n};\n\nexport const DelegateCard = ({\n id,\n isSelected,\n title,\n subtitle,\n region,\n relation,\n isMe = false,\n showRegion = false,\n setSelectedCard = () => {},\n className,\n labelRelation = \"Relazione con il delegante\",\n labelRegion = \"Regione di assistenza\",\n labelRecord = \"IL TUO FASCICOLO\",\n}: DelegateCardProps) => {\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const firstLetterUppercase = (str: string) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isSelected ? \"ui-is-active\" : \"\"} ui-card-delegate shadow cursor-pointer`}\n onClick={() => {\n setSelectedCard(id);\n }}\n style={{ width: \"100%\" }}\n >\n <div className={\"mt-x4\"}>\n <CheckboxRadix.Root\n id={id}\n checked={isSelected}\n className={\"ui-checkbox-filter\"}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n </div>\n\n <Row\n alignItems={\"flex-start\"}\n style={{ width: \"100%\" }}\n justifyContent={\"space-between\"}\n >\n <Col style={{ flex: 1 }} justifyContent={\"center\"} className={`w-full`}>\n <Col\n gap={\"x4\"}\n pb={\n (isMe || (!isMe && !relation)) && !showRegion ? undefined : \"x16\"\n }\n >\n <h3 className=\"flex-1 text-decoration-none fs-4 md-fs-3 fw-semibold\">\n {title}\n </h3>\n <p className=\"fs-6 fw-normal text-slate-28\">{subtitle}</p>\n </Col>\n <Col gap={\"x24\"} className=\"delegate-row-responsive\">\n {!isMe && relation && (\n <Col gap={\"x4\"}>\n <div className={\"fw-bold\"}>{labelRelation}</div>\n <p>{relation}</p>\n </Col>\n )}\n {showRegion && region && (\n <Col pr={\"x104\"} gap={\"x4\"}>\n <div className={\"fw-bold\"}>{labelRegion}</div>\n <p>{firstLetterUppercase(region)}</p>\n </Col>\n )}\n </Col>\n {isMe && (\n <Row className={\"ui-fascicolo-label fs-7 fw-semibold\"}>\n {labelRecord}\n </Row>\n )}\n </Col>\n </Row>\n </Row>\n );\n};\n"],"names":["DelegateCard","id","isSelected","title","subtitle","region","relation","isMe","showRegion","setSelectedCard","className","labelRelation","labelRegion","labelRecord","dropdownRef","useRef","firstLetterUppercase","str","CheckIcon","jsx","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"qQAqBaA,EAAe,CAAC,CAC3B,GAAAC,EACA,WAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,GACP,WAAAC,EAAa,GACb,gBAAAC,EAAkB,IAAM,CAAC,EACzB,UAAAC,EACA,cAAAC,EAAgB,6BAChB,YAAAC,EAAc,wBACd,YAAAC,EAAc,kBAChB,IAAyB,CACjB,MAAAC,EAAcC,SAAuB,IAAI,EAEzCC,EAAwBC,GACrBA,EAAI,OAAO,CAAC,EAAE,cAAgBA,EAAI,MAAM,CAAC,EAG5CC,EAAY,IAChBC,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,cAAY,OAEZ,SAAAA,EAAA,kBAAA,IAAC,OAAA,CACC,EAAE,oBACF,OAAO,QACP,YAAY,IACZ,cAAc,QACd,eAAe,OAAA,CAAA,CACjB,CACF,EAIA,OAAAC,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,KACJ,EAAG,MACH,IAAK,MACL,GAAI,QACJ,KAAM,WACN,IAAKP,EACL,UAAW,GAAGJ,CAAS,IAAIR,EAAa,eAAiB,EAAE,0CAC3D,QAAS,IAAM,CACbO,EAAgBR,CAAE,CACpB,EACA,MAAO,CAAE,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AAA,EAEJ,EACCE,GACCY,EAAA,kBAAA,IAACE,MAAI,CAAA,UAAW,sCACb,SACHR,CAAA,CAAA,CAAA,CAEJ,CAAA,CAAA,CAAA,CACF,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardBanner/CardBanner.css');const e=require("./index.cjs240.js"),i=require("./index.cjs10.js");require("./index.cjs.js");const u=require("./index.cjs279.js");;/* empty css */const r=require("./index.cjs9.js"),p=require("./index.cjs42.js"),l=require("./index.cjs67.js"),m=({actions:s,description:d,title:o,link:x,firstStatusLabel:t,secondStatusLabel:n})=>e.jsxRuntimeExports.jsxs(i.Col,{className:"ui-card-banner",py:"x24",children:[e.jsxRuntimeExports.jsxs(r.Row,{gap:"x16",px:"x24",children:[t&&e.jsxRuntimeExports.jsx("div",{className:"px-x16 py-x4 bg-blue-15 rounded ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-bold",children:t})}),n&&e.jsxRuntimeExports.jsx("div",{className:" px-x16 py-x4 bg-status-muted rounded ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-bold",children:n})})]}),e.jsxRuntimeExports.jsxs(i.Col,{px:"x24",gap:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"title ",children:o}),e.jsxRuntimeExports.jsx("p",{className:"description",children:d}),!!x&&e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end",children:e.jsxRuntimeExports.jsx(p.ArrowLink,{href:x.link,isExternal:x.isExternal,children:x.title})})]}),!!s&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(u.Divider,{bg:"border-divider",className:"my-x24"}),e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end",gap:"x16",px:"x24",children:s==null?void 0:s.map(j=>e.jsxRuntimeExports.jsx(l.ActionIconText,{...j}))})]})]});exports.CardBanner=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardBanner/CardBanner.css');const e=require("./index.cjs240.js"),i=require("./index.cjs10.js");require("./index.cjs.js");const u=require("./index.cjs279.js");;/* empty css */const r=require("./index.cjs9.js"),p=require("./index.cjs42.js"),l=require("./index.cjs67.js"),c=({actions:s,description:d,title:o,link:x,firstStatusLabel:n,secondStatusLabel:t})=>e.jsxRuntimeExports.jsxs(i.Col,{className:"ui-card-banner",py:"x24",children:[e.jsxRuntimeExports.jsxs(r.Row,{gap:"x16",px:"x24",children:[n&&e.jsxRuntimeExports.jsx("div",{className:"px-x16 py-x4 bg-blue-15 rounded ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-bold",children:n})}),t&&e.jsxRuntimeExports.jsx("div",{className:" px-x16 py-x4 bg-status-secondary rounded ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-bold",children:t})})]}),e.jsxRuntimeExports.jsxs(i.Col,{px:"x24",gap:"x16",children:[e.jsxRuntimeExports.jsx("h3",{className:"title ",children:o}),e.jsxRuntimeExports.jsx("p",{className:"description",children:d}),!!x&&e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end",children:e.jsxRuntimeExports.jsx(p.ArrowLink,{href:x.link,isExternal:x.isExternal,children:x.title})})]}),!!s&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(u.Divider,{bg:"border-divider",className:"my-x24"}),e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end",gap:"x16",px:"x24",children:s==null?void 0:s.map(j=>e.jsxRuntimeExports.jsx(l.ActionIconText,{...j}))})]})]});exports.CardBanner=c;
2
2
  //# sourceMappingURL=index.cjs136.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs136.js","sources":["../src/components/ui/CardBanner/index.tsx"],"sourcesContent":["import { Link } from \"@anoki/fse-common/dist\";\nimport { Col } from \"../Col\";\nimport { ActionIconText, ActionIconTextProps, ArrowLink, Row } from \"@/index\";\nimport { Divider } from \"../Divider\";\nimport { ReactNode } from \"react\";\nimport \"./CardBanner.scss\";\n\ntype Props = {\n title: string;\n description: string | ReactNode;\n link?: Link;\n actions?: Array<ActionIconTextProps>;\n firstStatusLabel?: string;\n secondStatusLabel?: string;\n};\n\nexport const CardBanner = ({\n actions,\n description,\n title,\n link,\n firstStatusLabel,\n secondStatusLabel,\n}: Props) => {\n return (\n <Col className=\"ui-card-banner\" py=\"x24\">\n <Row gap={\"x16\"} px=\"x24\">\n {firstStatusLabel && (\n <div className={\"px-x16 py-x4 bg-blue-15 rounded \"}>\n <span className={\"text-white fs-7 fw-bold\"}>\n {firstStatusLabel}\n </span>\n </div>\n )}\n {secondStatusLabel && (\n <div className={\" px-x16 py-x4 bg-status-muted rounded \"}>\n <span className={\"text-white fs-7 fw-bold\"}>\n {secondStatusLabel}\n </span>\n </div>\n )}\n </Row>\n <Col px=\"x24\" gap=\"x16\">\n <h3 className=\"title \">{title}</h3>\n <p className=\"description\">{description}</p>\n {!!link && (\n <Row justifyContent=\"flex-end\">\n <ArrowLink href={link.link} isExternal={link.isExternal}>\n {link.title}\n </ArrowLink>\n </Row>\n )}\n </Col>\n\n {!!actions && (\n <>\n <Divider bg=\"border-divider\" className=\"my-x24\" />\n <Row justifyContent=\"flex-end\" gap=\"x16\" px=\"x24\">\n {actions?.map((action) => <ActionIconText {...action} />)}\n </Row>\n </>\n )}\n </Col>\n );\n};\n"],"names":["CardBanner","actions","description","title","link","firstStatusLabel","secondStatusLabel","jsxs","Col","Row","jsx","ArrowLink","Fragment","Divider","action","ActionIconText"],"mappings":"8UAgBaA,EAAa,CAAC,CACzB,QAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,iBAAAC,EACA,kBAAAC,CACF,IAEKC,EAAAA,kBAAAA,KAAAC,EAAAA,IAAA,CAAI,UAAU,iBAAiB,GAAG,MACjC,SAAA,CAAAD,EAAA,kBAAA,KAACE,EAAI,IAAA,CAAA,IAAK,MAAO,GAAG,MACjB,SAAA,CACCJ,GAAAK,EAAA,kBAAA,IAAC,OAAI,UAAW,mCACd,iCAAC,OAAK,CAAA,UAAW,0BACd,SAAAL,CAAA,CACH,CACF,CAAA,EAEDC,GACEI,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAW,0CACd,iCAAC,OAAK,CAAA,UAAW,0BACd,SAAAJ,CACH,CAAA,CACF,CAAA,CAAA,EAEJ,EACCC,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,GAAG,MAAM,IAAI,MAChB,SAAA,CAACE,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,SAAU,SAAMP,EAAA,EAC7BO,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,cAAe,SAAYR,EAAA,EACvC,CAAC,CAACE,GACAM,EAAAA,kBAAAA,IAAAD,EAAA,IAAA,CAAI,eAAe,WAClB,SAAAC,EAAAA,kBAAAA,IAACC,EAAU,UAAA,CAAA,KAAMP,EAAK,KAAM,WAAYA,EAAK,WAC1C,SAAAA,EAAK,MACR,CACF,CAAA,CAAA,EAEJ,EAEC,CAAC,CAACH,GAECM,EAAAA,kBAAAA,KAAAK,EAAA,kBAAA,SAAA,CAAA,SAAA,CAAAF,EAAA,kBAAA,IAACG,EAAQ,QAAA,CAAA,GAAG,iBAAiB,UAAU,SAAS,0BAC/CJ,EAAAA,IAAI,CAAA,eAAe,WAAW,IAAI,MAAM,GAAG,MACzC,SAASR,GAAA,YAAAA,EAAA,IAAKa,GAAWJ,EAAA,kBAAA,IAACK,kBAAgB,GAAGD,CAAQ,CAAA,EACxD,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ"}
1
+ {"version":3,"file":"index.cjs136.js","sources":["../src/components/ui/CardBanner/index.tsx"],"sourcesContent":["import { Link } from \"@anoki/fse-common/dist\";\nimport { Col } from \"../Col\";\nimport { ActionIconText, ActionIconTextProps, ArrowLink, Row } from \"@/index\";\nimport { Divider } from \"../Divider\";\nimport { ReactNode } from \"react\";\nimport \"./CardBanner.scss\";\n\ntype Props = {\n title: string;\n description: string | ReactNode;\n link?: Link;\n actions?: Array<ActionIconTextProps>;\n firstStatusLabel?: string;\n secondStatusLabel?: string;\n};\n\nexport const CardBanner = ({\n actions,\n description,\n title,\n link,\n firstStatusLabel,\n secondStatusLabel,\n}: Props) => {\n return (\n <Col className=\"ui-card-banner\" py=\"x24\">\n <Row gap={\"x16\"} px=\"x24\">\n {firstStatusLabel && (\n <div className={\"px-x16 py-x4 bg-blue-15 rounded \"}>\n <span className={\"text-white fs-7 fw-bold\"}>\n {firstStatusLabel}\n </span>\n </div>\n )}\n {secondStatusLabel && (\n <div className={\" px-x16 py-x4 bg-status-secondary rounded \"}>\n <span className={\"text-white fs-7 fw-bold\"}>\n {secondStatusLabel}\n </span>\n </div>\n )}\n </Row>\n <Col px=\"x24\" gap=\"x16\">\n <h3 className=\"title \">{title}</h3>\n <p className=\"description\">{description}</p>\n {!!link && (\n <Row justifyContent=\"flex-end\">\n <ArrowLink href={link.link} isExternal={link.isExternal}>\n {link.title}\n </ArrowLink>\n </Row>\n )}\n </Col>\n\n {!!actions && (\n <>\n <Divider bg=\"border-divider\" className=\"my-x24\" />\n <Row justifyContent=\"flex-end\" gap=\"x16\" px=\"x24\">\n {actions?.map((action) => <ActionIconText {...action} />)}\n </Row>\n </>\n )}\n </Col>\n );\n};\n"],"names":["CardBanner","actions","description","title","link","firstStatusLabel","secondStatusLabel","jsxs","Col","Row","jsx","ArrowLink","Fragment","Divider","action","ActionIconText"],"mappings":"8UAgBaA,EAAa,CAAC,CACzB,QAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,iBAAAC,EACA,kBAAAC,CACF,IAEKC,EAAAA,kBAAAA,KAAAC,EAAAA,IAAA,CAAI,UAAU,iBAAiB,GAAG,MACjC,SAAA,CAAAD,EAAA,kBAAA,KAACE,EAAI,IAAA,CAAA,IAAK,MAAO,GAAG,MACjB,SAAA,CACCJ,GAAAK,EAAA,kBAAA,IAAC,OAAI,UAAW,mCACd,iCAAC,OAAK,CAAA,UAAW,0BACd,SAAAL,CAAA,CACH,CACF,CAAA,EAEDC,GACEI,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAW,8CACd,iCAAC,OAAK,CAAA,UAAW,0BACd,SAAAJ,CACH,CAAA,CACF,CAAA,CAAA,EAEJ,EACCC,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,GAAG,MAAM,IAAI,MAChB,SAAA,CAACE,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,SAAU,SAAMP,EAAA,EAC7BO,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,cAAe,SAAYR,EAAA,EACvC,CAAC,CAACE,GACAM,EAAAA,kBAAAA,IAAAD,EAAA,IAAA,CAAI,eAAe,WAClB,SAAAC,EAAAA,kBAAAA,IAACC,EAAU,UAAA,CAAA,KAAMP,EAAK,KAAM,WAAYA,EAAK,WAC1C,SAAAA,EAAK,MACR,CACF,CAAA,CAAA,EAEJ,EAEC,CAAC,CAACH,GAECM,EAAAA,kBAAAA,KAAAK,EAAA,kBAAA,SAAA,CAAA,SAAA,CAAAF,EAAA,kBAAA,IAACG,EAAQ,QAAA,CAAA,GAAG,iBAAiB,UAAU,SAAS,0BAC/CJ,EAAAA,IAAI,CAAA,eAAe,WAAW,IAAI,MAAM,GAAG,MACzC,SAASR,GAAA,YAAAA,EAAA,IAAKa,GAAWJ,EAAA,kBAAA,IAACK,kBAAgB,GAAGD,CAAQ,CAAA,EACxD,CAAA,CAAA,CACF,CAAA,CAAA,EAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("./index.cjs461.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;
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.cjs258.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const $=require("./index.cjs463.js"),q=require("./index.cjs461.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;
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.cjs259.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const F=require("./index.cjs464.js"),y=require("./index.cjs463.js"),a=require("./index.cjs462.js");function K(P){let{swiper:i,extendParams:N,on:o}=P;N({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),i.a11y={clicked:!1};let r=null,p,u,L=new Date().getTime();function f(e){const t=r;t.length!==0&&(t.innerHTML="",t.innerHTML=e)}function B(e){const t=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(e).replace(/x/g,t)}function g(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","0")})}function M(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","-1")})}function m(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("role",t)})}function x(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-roledescription",t)})}function q(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-controls",t)})}function E(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-label",t)})}function O(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("id",t)})}function H(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-live",t)})}function w(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!0)})}function A(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!1)})}function d(e){if(e.keyCode!==13&&e.keyCode!==32)return;const t=i.params.a11y,n=e.target;if(!(i.pagination&&i.pagination.el&&(n===i.pagination.el||i.pagination.el.contains(e.target))&&!e.target.matches(y.c(i.params.pagination.bulletClass)))){if(i.navigation&&i.navigation.prevEl&&i.navigation.nextEl){const s=a.m(i.navigation.prevEl);a.m(i.navigation.nextEl).includes(n)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?f(t.lastSlideMessage):f(t.nextSlideMessage)),s.includes(n)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?f(t.firstSlideMessage):f(t.prevSlideMessage))}i.pagination&&n.matches(y.c(i.params.pagination.bulletClass))&&n.click()}}function G(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{nextEl:e,prevEl:t}=i.navigation;t&&(i.isBeginning?(w(t),M(t)):(A(t),g(t))),e&&(i.isEnd?(w(e),M(e)):(A(e),g(e)))}function k(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function C(){return k()&&i.params.pagination.clickable}function U(){const e=i.params.a11y;k()&&i.pagination.bullets.forEach(t=>{i.params.pagination.clickable&&(g(t),i.params.pagination.renderBullet||(m(t,"button"),E(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.h(t)+1)))),t.matches(y.c(i.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}const S=(e,t,n)=>{g(e),e.tagName!=="BUTTON"&&(m(e,"button"),e.addEventListener("keydown",d)),E(e,n),q(e,t)},R=e=>{u&&u!==e.target&&!u.contains(e.target)&&(p=!0),i.a11y.clicked=!0},T=()=>{p=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},D=e=>{L=new Date().getTime()},h=e=>{if(i.a11y.clicked||!i.params.a11y.scrollOnFocus||new Date().getTime()-L<100)return;const t=e.target.closest(`.${i.params.slideClass}, swiper-slide`);if(!t||!i.slides.includes(t))return;u=t;const n=i.slides.indexOf(t)===i.activeIndex,s=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(t);n||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,requestAnimationFrame(()=>{p||(i.params.loop?i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")),0):i.slideTo(i.slides.indexOf(t),0),p=!1)}))},I=()=>{const e=i.params.a11y;e.itemRoleDescriptionMessage&&x(i.slides,e.itemRoleDescriptionMessage),e.slideRole&&m(i.slides,e.slideRole);const t=i.slides.length;e.slideLabelMessage&&i.slides.forEach((n,s)=>{const l=i.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):s,c=e.slideLabelMessage.replace(/\{\{index\}\}/,l+1).replace(/\{\{slidesLength\}\}/,t);E(n,c)})},V=()=>{const e=i.params.a11y;i.el.append(r);const t=i.el;e.containerRoleDescriptionMessage&&x(t,e.containerRoleDescriptionMessage),e.containerMessage&&E(t,e.containerMessage),e.containerRole&&m(t,e.containerRole);const n=i.wrapperEl,s=e.id||n.getAttribute("id")||`swiper-wrapper-${B(16)}`,l=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";O(n,s),H(n,l),I();let{nextEl:c,prevEl:v}=i.navigation?i.navigation:{};c=a.m(c),v=a.m(v),c&&c.forEach(b=>S(b,s,e.nextSlideMessage)),v&&v.forEach(b=>S(b,s,e.prevSlideMessage)),C()&&a.m(i.pagination.el).forEach(z=>{z.addEventListener("keydown",d)}),F.g().addEventListener("visibilitychange",D),i.el.addEventListener("focus",h,!0),i.el.addEventListener("focus",h,!0),i.el.addEventListener("pointerdown",R,!0),i.el.addEventListener("pointerup",T,!0)};function $(){r&&r.remove();let{nextEl:e,prevEl:t}=i.navigation?i.navigation:{};e=a.m(e),t=a.m(t),e&&e.forEach(s=>s.removeEventListener("keydown",d)),t&&t.forEach(s=>s.removeEventListener("keydown",d)),C()&&a.m(i.pagination.el).forEach(l=>{l.removeEventListener("keydown",d)}),F.g().removeEventListener("visibilitychange",D),i.el&&typeof i.el!="string"&&(i.el.removeEventListener("focus",h,!0),i.el.removeEventListener("pointerdown",R,!0),i.el.removeEventListener("pointerup",T,!0))}o("beforeInit",()=>{r=a.c("span",i.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),o("afterInit",()=>{i.params.a11y.enabled&&V()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&I()}),o("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&G()}),o("paginationUpdate",()=>{i.params.a11y.enabled&&U()}),o("destroy",()=>{i.params.a11y.enabled&&$()})}module.exports=K;
1
+ "use strict";const F=require("./index.cjs461.js"),y=require("./index.cjs464.js"),a=require("./index.cjs462.js");function K(P){let{swiper:i,extendParams:N,on:o}=P;N({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),i.a11y={clicked:!1};let r=null,p,u,L=new Date().getTime();function f(e){const t=r;t.length!==0&&(t.innerHTML="",t.innerHTML=e)}function B(e){const t=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(e).replace(/x/g,t)}function g(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","0")})}function M(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","-1")})}function m(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("role",t)})}function x(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-roledescription",t)})}function q(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-controls",t)})}function E(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-label",t)})}function O(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("id",t)})}function H(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-live",t)})}function w(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!0)})}function A(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!1)})}function d(e){if(e.keyCode!==13&&e.keyCode!==32)return;const t=i.params.a11y,n=e.target;if(!(i.pagination&&i.pagination.el&&(n===i.pagination.el||i.pagination.el.contains(e.target))&&!e.target.matches(y.c(i.params.pagination.bulletClass)))){if(i.navigation&&i.navigation.prevEl&&i.navigation.nextEl){const s=a.m(i.navigation.prevEl);a.m(i.navigation.nextEl).includes(n)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?f(t.lastSlideMessage):f(t.nextSlideMessage)),s.includes(n)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?f(t.firstSlideMessage):f(t.prevSlideMessage))}i.pagination&&n.matches(y.c(i.params.pagination.bulletClass))&&n.click()}}function G(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{nextEl:e,prevEl:t}=i.navigation;t&&(i.isBeginning?(w(t),M(t)):(A(t),g(t))),e&&(i.isEnd?(w(e),M(e)):(A(e),g(e)))}function k(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function C(){return k()&&i.params.pagination.clickable}function U(){const e=i.params.a11y;k()&&i.pagination.bullets.forEach(t=>{i.params.pagination.clickable&&(g(t),i.params.pagination.renderBullet||(m(t,"button"),E(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.h(t)+1)))),t.matches(y.c(i.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}const S=(e,t,n)=>{g(e),e.tagName!=="BUTTON"&&(m(e,"button"),e.addEventListener("keydown",d)),E(e,n),q(e,t)},R=e=>{u&&u!==e.target&&!u.contains(e.target)&&(p=!0),i.a11y.clicked=!0},T=()=>{p=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},D=e=>{L=new Date().getTime()},h=e=>{if(i.a11y.clicked||!i.params.a11y.scrollOnFocus||new Date().getTime()-L<100)return;const t=e.target.closest(`.${i.params.slideClass}, swiper-slide`);if(!t||!i.slides.includes(t))return;u=t;const n=i.slides.indexOf(t)===i.activeIndex,s=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(t);n||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,requestAnimationFrame(()=>{p||(i.params.loop?i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")),0):i.slideTo(i.slides.indexOf(t),0),p=!1)}))},I=()=>{const e=i.params.a11y;e.itemRoleDescriptionMessage&&x(i.slides,e.itemRoleDescriptionMessage),e.slideRole&&m(i.slides,e.slideRole);const t=i.slides.length;e.slideLabelMessage&&i.slides.forEach((n,s)=>{const l=i.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):s,c=e.slideLabelMessage.replace(/\{\{index\}\}/,l+1).replace(/\{\{slidesLength\}\}/,t);E(n,c)})},V=()=>{const e=i.params.a11y;i.el.append(r);const t=i.el;e.containerRoleDescriptionMessage&&x(t,e.containerRoleDescriptionMessage),e.containerMessage&&E(t,e.containerMessage),e.containerRole&&m(t,e.containerRole);const n=i.wrapperEl,s=e.id||n.getAttribute("id")||`swiper-wrapper-${B(16)}`,l=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";O(n,s),H(n,l),I();let{nextEl:c,prevEl:v}=i.navigation?i.navigation:{};c=a.m(c),v=a.m(v),c&&c.forEach(b=>S(b,s,e.nextSlideMessage)),v&&v.forEach(b=>S(b,s,e.prevSlideMessage)),C()&&a.m(i.pagination.el).forEach(z=>{z.addEventListener("keydown",d)}),F.g().addEventListener("visibilitychange",D),i.el.addEventListener("focus",h,!0),i.el.addEventListener("focus",h,!0),i.el.addEventListener("pointerdown",R,!0),i.el.addEventListener("pointerup",T,!0)};function $(){r&&r.remove();let{nextEl:e,prevEl:t}=i.navigation?i.navigation:{};e=a.m(e),t=a.m(t),e&&e.forEach(s=>s.removeEventListener("keydown",d)),t&&t.forEach(s=>s.removeEventListener("keydown",d)),C()&&a.m(i.pagination.el).forEach(l=>{l.removeEventListener("keydown",d)}),F.g().removeEventListener("visibilitychange",D),i.el&&typeof i.el!="string"&&(i.el.removeEventListener("focus",h,!0),i.el.removeEventListener("pointerdown",R,!0),i.el.removeEventListener("pointerup",T,!0))}o("beforeInit",()=>{r=a.c("span",i.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),o("afterInit",()=>{i.params.a11y.enabled&&V()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&I()}),o("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&G()}),o("paginationUpdate",()=>{i.params.a11y.enabled&&U()}),o("destroy",()=>{i.params.a11y.enabled&&$()})}module.exports=K;
2
2
  //# sourceMappingURL=index.cjs260.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),x=require("./index.cjs466.js"),L=require("./index.cjs467.js"),$=require("./index.cjs468.js"),H=require("./index.cjs469.js"),K=require("./index.cjs470.js"),p=require("./index.cjs471.js"),b=require("./index.cjs472.js"),a=require("./index.cjs240.js");function U(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const d=U(q);var D="DropdownMenu",[B,F]=$.createContextScope(D,[p.createMenuScope]),s=p.createMenuScope(),[W,h]=B(D),f=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:i,onOpenChange:w,modal:u=!0}=e,c=s(n),M=d.useRef(null),[l=!1,m]=H.useControllableState({prop:t,defaultProp:i,onChange:w});return a.jsxRuntimeExports.jsx(W,{scope:n,triggerId:b.useId(),triggerRef:M,contentId:b.useId(),open:l,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(k=>!k),[m]),modal:u,children:a.jsxRuntimeExports.jsx(p.Root,{...c,open:l,onOpenChange:m,dir:r,modal:u,children:o})})};f.displayName=D;var I="DropdownMenuTrigger",g=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,i=h(I,o),w=s(o);return a.jsxRuntimeExports.jsx(p.Anchor,{asChild:!0,...w,children:a.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:L.composeRefs(n,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});g.displayName=I;var z="DropdownMenuPortal",v=e=>{const{__scopeDropdownMenu:n,...o}=e,r=s(n);return a.jsxRuntimeExports.jsx(p.Portal,{...r,...o})};v.displayName=z;var S="DropdownMenuContent",R=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=h(S,o),i=s(o),w=d.useRef(!1);return a.jsxRuntimeExports.jsx(p.Content,{id:t.contentId,"aria-labelledby":t.triggerId,...i,...r,ref:n,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,u=>{var c;w.current||(c=t.triggerRef.current)==null||c.focus(),w.current=!1,u.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,u=>{const c=u.detail.originalEvent,M=c.button===0&&c.ctrlKey===!0,l=c.button===2||M;(!t.modal||l)&&(w.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R.displayName=S;var X="DropdownMenuGroup",_=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Group,{...t,...r,ref:n})});_.displayName=X;var J="DropdownMenuLabel",j=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Label,{...t,...r,ref:n})});j.displayName=J;var Q="DropdownMenuItem",E=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Item,{...t,...r,ref:n})});E.displayName=Q;var V="DropdownMenuCheckboxItem",N=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.CheckboxItem,{...t,...r,ref:n})});N.displayName=V;var Y="DropdownMenuRadioGroup",C=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioGroup,{...t,...r,ref:n})});C.displayName=Y;var Z="DropdownMenuRadioItem",P=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioItem,{...t,...r,ref:n})});P.displayName=Z;var ee="DropdownMenuItemIndicator",y=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.ItemIndicator,{...t,...r,ref:n})});y.displayName=ee;var oe="DropdownMenuSeparator",A=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Separator,{...t,...r,ref:n})});A.displayName=oe;var re="DropdownMenuArrow",O=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Arrow,{...t,...r,ref:n})});O.displayName=re;var ne="DropdownMenuSubTrigger",T=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubTrigger,{...t,...r,ref:n})});T.displayName=ne;var te="DropdownMenuSubContent",G=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubContent,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G.displayName=te;var ae=f,pe=g,de=v,ue=R,se=_,ie=E;exports.Content=ue;exports.DropdownMenu=f;exports.DropdownMenuArrow=O;exports.DropdownMenuCheckboxItem=N;exports.DropdownMenuContent=R;exports.DropdownMenuGroup=_;exports.DropdownMenuItem=E;exports.DropdownMenuItemIndicator=y;exports.DropdownMenuLabel=j;exports.DropdownMenuPortal=v;exports.DropdownMenuRadioGroup=C;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=A;exports.DropdownMenuSubContent=G;exports.DropdownMenuSubTrigger=T;exports.DropdownMenuTrigger=g;exports.Group=se;exports.Item=ie;exports.Portal=de;exports.Root=ae;exports.Trigger=pe;exports.createDropdownMenuScope=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),x=require("./index.cjs465.js"),L=require("./index.cjs466.js"),$=require("./index.cjs467.js"),H=require("./index.cjs468.js"),K=require("./index.cjs469.js"),p=require("./index.cjs470.js"),b=require("./index.cjs471.js"),a=require("./index.cjs240.js");function U(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const d=U(q);var M="DropdownMenu",[B,F]=$.createContextScope(M,[p.createMenuScope]),s=p.createMenuScope(),[W,h]=B(M),f=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=s(n),D=d.useRef(null),[w,m]=H.useControllableState({prop:t,defaultProp:i??!1,onChange:l,caller:M});return a.jsxRuntimeExports.jsx(W,{scope:n,triggerId:b.useId(),triggerRef:D,contentId:b.useId(),open:w,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(k=>!k),[m]),modal:u,children:a.jsxRuntimeExports.jsx(p.Root,{...c,open:w,onOpenChange:m,dir:r,modal:u,children:o})})};f.displayName=M;var I="DropdownMenuTrigger",g=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,i=h(I,o),l=s(o);return a.jsxRuntimeExports.jsx(p.Anchor,{asChild:!0,...l,children:a.jsxRuntimeExports.jsx(K.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:L.composeRefs(n,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});g.displayName=I;var z="DropdownMenuPortal",v=e=>{const{__scopeDropdownMenu:n,...o}=e,r=s(n);return a.jsxRuntimeExports.jsx(p.Portal,{...r,...o})};v.displayName=z;var S="DropdownMenuContent",R=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=h(S,o),i=s(o),l=d.useRef(!1);return a.jsxRuntimeExports.jsx(p.Content,{id:t.contentId,"aria-labelledby":t.triggerId,...i,...r,ref:n,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,u=>{var c;l.current||(c=t.triggerRef.current)==null||c.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,u=>{const c=u.detail.originalEvent,D=c.button===0&&c.ctrlKey===!0,w=c.button===2||D;(!t.modal||w)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R.displayName=S;var X="DropdownMenuGroup",_=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Group,{...t,...r,ref:n})});_.displayName=X;var J="DropdownMenuLabel",j=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Label,{...t,...r,ref:n})});j.displayName=J;var Q="DropdownMenuItem",E=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Item,{...t,...r,ref:n})});E.displayName=Q;var V="DropdownMenuCheckboxItem",N=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.CheckboxItem,{...t,...r,ref:n})});N.displayName=V;var Y="DropdownMenuRadioGroup",C=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioGroup,{...t,...r,ref:n})});C.displayName=Y;var Z="DropdownMenuRadioItem",P=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.RadioItem,{...t,...r,ref:n})});P.displayName=Z;var ee="DropdownMenuItemIndicator",y=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.ItemIndicator,{...t,...r,ref:n})});y.displayName=ee;var oe="DropdownMenuSeparator",A=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Separator,{...t,...r,ref:n})});A.displayName=oe;var re="DropdownMenuArrow",O=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.Arrow,{...t,...r,ref:n})});O.displayName=re;var ne="DropdownMenuSubTrigger",T=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubTrigger,{...t,...r,ref:n})});T.displayName=ne;var te="DropdownMenuSubContent",G=d.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=s(o);return a.jsxRuntimeExports.jsx(p.SubContent,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G.displayName=te;var ae=f,pe=g,de=v,ue=R,se=_,ie=E;exports.Content=ue;exports.DropdownMenu=f;exports.DropdownMenuArrow=O;exports.DropdownMenuCheckboxItem=N;exports.DropdownMenuContent=R;exports.DropdownMenuGroup=_;exports.DropdownMenuItem=E;exports.DropdownMenuItemIndicator=y;exports.DropdownMenuLabel=j;exports.DropdownMenuPortal=v;exports.DropdownMenuRadioGroup=C;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=A;exports.DropdownMenuSubContent=G;exports.DropdownMenuSubTrigger=T;exports.DropdownMenuTrigger=g;exports.Group=se;exports.Item=ie;exports.Portal=de;exports.Root=ae;exports.Trigger=pe;exports.createDropdownMenuScope=F;
2
2
  //# sourceMappingURL=index.cjs288.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs288.js","sources":["../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dropdown-menu/src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = (props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n};\nDropdownMenu.displayName = DROPDOWN_MENU_NAME;\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }\n);\nDropdownMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DropdownMenuPortal\";\nvar DropdownMenuPortal = (props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nDropdownMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nDropdownMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"DropdownMenuGroup\";\nvar DropdownMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nDropdownMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"DropdownMenuLabel\";\nvar DropdownMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nDropdownMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"DropdownMenuItem\";\nvar DropdownMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nDropdownMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"DropdownMenuCheckboxItem\";\nvar DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nDropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"DropdownMenuRadioGroup\";\nvar DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nDropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"DropdownMenuRadioItem\";\nvar DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nDropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"DropdownMenuItemIndicator\";\nvar DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nDropdownMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"DropdownMenuSeparator\";\nvar DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nDropdownMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"DropdownMenuArrow\";\nvar DropdownMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nDropdownMenuArrow.displayName = ARROW_NAME;\nvar DropdownMenuSub = (props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nvar SUB_TRIGGER_NAME = \"DropdownMenuSubTrigger\";\nvar DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n});\nDropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"DropdownMenuSubContent\";\nvar DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nDropdownMenuSubContent.displayName = SUB_CONTENT_NAME;\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","createContextScope","createMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","props","__scopeDropdownMenu","children","dir","openProp","defaultOpen","onOpenChange","modal","menuScope","triggerRef","React","open","setOpen","useControllableState","jsx","useId","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","forwardedRef","disabled","triggerProps","context","MenuPrimitive.Anchor","Primitive","composeRefs","composeEventHandlers","event","PORTAL_NAME","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","DropdownMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","_a","originalEvent","ctrlLeftClick","isRightClick","GROUP_NAME","DropdownMenuGroup","groupProps","MenuPrimitive.Group","LABEL_NAME","DropdownMenuLabel","labelProps","MenuPrimitive.Label","ITEM_NAME","DropdownMenuItem","itemProps","MenuPrimitive.Item","CHECKBOX_ITEM_NAME","DropdownMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","RADIO_GROUP_NAME","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","RADIO_ITEM_NAME","DropdownMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","INDICATOR_NAME","DropdownMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","SEPARATOR_NAME","DropdownMenuSeparator","separatorProps","MenuPrimitive.Separator","ARROW_NAME","DropdownMenuArrow","arrowProps","MenuPrimitive.Arrow","SUB_TRIGGER_NAME","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","SUB_CONTENT_NAME","DropdownMenuSubContent","subContentProps","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Content2","Group2","Item2"],"mappings":"2nBAaA,IAAIA,EAAqB,eACrB,CAACC,EAA2BC,CAAuB,EAAIC,EAAkB,mBAC3EH,EACA,CAACI,EAAe,eAAA,CAClB,EACIC,EAAeD,EAAAA,gBAAiB,EAChC,CAACE,EAAsBC,CAAsB,EAAIN,EAA0BD,CAAkB,EAC7FQ,EAAgBC,GAAU,CAC5B,KAAM,CACJ,oBAAAC,EACA,SAAAC,EACA,IAAAC,EACA,KAAMC,EACN,YAAAC,EACA,aAAAC,EACA,MAAAC,EAAQ,EACZ,EAAMP,EACEQ,EAAYZ,EAAaK,CAAmB,EAC5CQ,EAAaC,EAAM,OAAO,IAAI,EAC9B,CAACC,EAAO,GAAOC,CAAO,EAAIC,EAAAA,qBAAqB,CACnD,KAAMT,EACN,YAAaC,EACb,SAAUC,CACd,CAAG,EACD,OAAuBQ,EAAG,kBAAA,IACxBjB,EACA,CACE,MAAOI,EACP,UAAWc,EAAAA,MAAO,EAClB,WAAAN,EACA,UAAWM,EAAAA,MAAO,EAClB,KAAAJ,EACA,aAAcC,EACd,aAAcF,EAAM,YAAY,IAAME,EAASI,GAAa,CAACA,CAAQ,EAAG,CAACJ,CAAO,CAAC,EACjF,MAAAL,EACA,SAA0BO,EAAG,kBAAA,IAACG,OAAoB,CAAE,GAAGT,EAAW,KAAAG,EAAM,aAAcC,EAAS,IAAAT,EAAK,MAAAI,EAAO,SAAAL,CAAU,CAAA,CAC3H,CACG,CACH,EACAH,EAAa,YAAcR,EAC3B,IAAI2B,EAAe,sBACfC,EAAsBT,EAAM,WAC9B,CAACV,EAAOoB,IAAiB,CACvB,KAAM,CAAE,oBAAAnB,EAAqB,SAAAoB,EAAW,GAAO,GAAGC,CAAc,EAAGtB,EAC7DuB,EAAUzB,EAAuBoB,EAAcjB,CAAmB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,GAAGwE,EAAiB,IAAK5D,EAAc,CAC9G,CAAC,EACD2D,EAAuB,YAAcD,GACrC,IAAII,GAAmB,yBACnBC,EAAyBzE,EAAM,WAAW,CAACV,EAAOoB,IAAiB,CACrE,KAAM,CAAE,oBAAAnB,EAAqB,GAAGmF,CAAe,EAAKpF,EAC9CQ,EAAYZ,EAAaK,CAAmB,EAClD,OAAuBa,EAAG,kBAAA,IACxBuE,EAAwB,WACxB,CACE,GAAG7E,EACH,GAAG4E,EACH,IAAKhE,EACL,MAAO,CACL,GAAGpB,EAAM,MAGP,iDAAkD,uCAClD,gDAAiD,sCACjD,iDAAkD,uCAClD,sCAAuC,mCACvC,uCAAwC,mCAElD,CACA,CACG,CACH,CAAC,EACDmF,EAAuB,YAAcD,GAClC,IAACI,GAAQvF,EACRwF,GAAUpE,EACVqE,GAAU1D,EACV2D,GAAWvD,EACXwD,GAAS/C,EAETgD,GAAQxC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs288.js","sources":["../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = (props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DROPDOWN_MENU_NAME\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n};\nDropdownMenu.displayName = DROPDOWN_MENU_NAME;\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }\n);\nDropdownMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DropdownMenuPortal\";\nvar DropdownMenuPortal = (props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nDropdownMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nDropdownMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"DropdownMenuGroup\";\nvar DropdownMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nDropdownMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"DropdownMenuLabel\";\nvar DropdownMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nDropdownMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"DropdownMenuItem\";\nvar DropdownMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nDropdownMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"DropdownMenuCheckboxItem\";\nvar DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nDropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"DropdownMenuRadioGroup\";\nvar DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nDropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"DropdownMenuRadioItem\";\nvar DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nDropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"DropdownMenuItemIndicator\";\nvar DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nDropdownMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"DropdownMenuSeparator\";\nvar DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nDropdownMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"DropdownMenuArrow\";\nvar DropdownMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nDropdownMenuArrow.displayName = ARROW_NAME;\nvar DropdownMenuSub = (props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: \"DropdownMenuSub\"\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nvar SUB_TRIGGER_NAME = \"DropdownMenuSubTrigger\";\nvar DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n});\nDropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"DropdownMenuSubContent\";\nvar DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nDropdownMenuSubContent.displayName = SUB_CONTENT_NAME;\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","createContextScope","createMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","props","__scopeDropdownMenu","children","dir","openProp","defaultOpen","onOpenChange","modal","menuScope","triggerRef","React","open","setOpen","useControllableState","jsx","useId","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","forwardedRef","disabled","triggerProps","context","MenuPrimitive.Anchor","Primitive","composeRefs","composeEventHandlers","event","PORTAL_NAME","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","DropdownMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","_a","originalEvent","ctrlLeftClick","isRightClick","GROUP_NAME","DropdownMenuGroup","groupProps","MenuPrimitive.Group","LABEL_NAME","DropdownMenuLabel","labelProps","MenuPrimitive.Label","ITEM_NAME","DropdownMenuItem","itemProps","MenuPrimitive.Item","CHECKBOX_ITEM_NAME","DropdownMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","RADIO_GROUP_NAME","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","RADIO_ITEM_NAME","DropdownMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","INDICATOR_NAME","DropdownMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","SEPARATOR_NAME","DropdownMenuSeparator","separatorProps","MenuPrimitive.Separator","ARROW_NAME","DropdownMenuArrow","arrowProps","MenuPrimitive.Arrow","SUB_TRIGGER_NAME","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","SUB_CONTENT_NAME","DropdownMenuSubContent","subContentProps","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Content2","Group2","Item2"],"mappings":"2nBAaA,IAAIA,EAAqB,eACrB,CAACC,EAA2BC,CAAuB,EAAIC,EAAkB,mBAC3EH,EACA,CAACI,EAAe,eAAA,CAClB,EACIC,EAAeD,EAAAA,gBAAiB,EAChC,CAACE,EAAsBC,CAAsB,EAAIN,EAA0BD,CAAkB,EAC7FQ,EAAgBC,GAAU,CAC5B,KAAM,CACJ,oBAAAC,EACA,SAAAC,EACA,IAAAC,EACA,KAAMC,EACN,YAAAC,EACA,aAAAC,EACA,MAAAC,EAAQ,EACZ,EAAMP,EACEQ,EAAYZ,EAAaK,CAAmB,EAC5CQ,EAAaC,EAAM,OAAO,IAAI,EAC9B,CAACC,EAAMC,CAAO,EAAIC,uBAAqB,CAC3C,KAAMT,EACN,YAAaC,GAAe,G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+1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderMobile/HeaderMobile.css');const e=require("./index.cjs240.js"),x=require("./index.cjs28.js"),E=require("./index.cjs21.js"),i=require("react"),o=require("./index.cjs242.js"),g=require("./index.cjs473.js"),y=require("./index.cjs6.js");;/* empty css */const R=require("./index.cjs10.js"),w=require("./index.cjs158.js"),C=require("./index.cjs9.js"),N=require("./index.cjs159.js"),k=({shortTitle:m,menuTitle:p="Menù",region:h,asLink:l="a",navigatonItems:j,labels:c,loginLink:b="/"})=>{const v=l,[n,d]=i.useState(!1),r="main-navigation",u=i.useRef(null);g.useFocusTrap(u,n);const t=i.useCallback(()=>{d(!n)},[n]);i.useEffect(()=>(n?document.body.classList.add("ui-body-overflow-hidden"):document.body.classList.remove("ui-body-overflow-hidden"),()=>{document.body.classList.remove("ui-body-overflow-hidden")}),[n]),i.useEffect(()=>{const s=a=>{a.key==="Escape"&&n&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n,t]);const f=()=>{d(!1)};return e.jsxRuntimeExports.jsxs("div",{className:"sticky-header shadow",children:[e.jsxRuntimeExports.jsx(E.HeaderTopBanner,{asLink:l,shortTitle:m,region:h}),e.jsxRuntimeExports.jsxs(y.Container,{className:"bg-slate-20 min-h-x64 base-row align-items-center justify-content-end",as:"header",py:"x8",children:[e.jsxRuntimeExports.jsxs(C.Row,{gap:"x24",alignItems:"center",justifyContent:"end",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"3",bg:"white",textColor:"primary",href:b,asLink:"a",className:"ui-login-button-header-mobile",children:[c.login,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]}),e.jsxRuntimeExports.jsx("button",{"aria-expanded":n,"aria-label":"Apri menu di navigazione",onClick:t,className:"ui-mobile-menu-toggle","aria-controls":r,children:e.jsxRuntimeExports.jsx(w.Hamburguer,{width:40,height:40,color:"white"})})]}),e.jsxRuntimeExports.jsxs("nav",{id:r,"aria-label":"Menu di navigazione",className:o.clsx(n?"ui-mobile-nav-panel":"visually-hidden"),ref:u,children:[e.jsxRuntimeExports.jsxs(R.Col,{className:"ui-mobile-nav-header",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"4",textColor:"primary",bg:"transparent",onClick:t,"aria-label":"Chiudi menu di navigazione","aria-controls":r,children:[c.closeMenu,e.jsxRuntimeExports.jsx(N.Close,{})]}),e.jsxRuntimeExports.jsx("h2",{className:"fs-3 text-slate-20",children:p})]}),e.jsxRuntimeExports.jsx("ul",{className:"list-style-none p-x16",role:"list",children:j.map((s,a)=>e.jsxRuntimeExports.jsx("li",{className:o.clsx("ui-mobile-nav-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(v,{href:s.href,"aria-label":`Vai alla pagina ${s.label}`,className:o.clsx("text-decoration-none text-primary fs-5",s.active?"fw-bold":"fw-normal"),onClick:f,target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},a))})]})]})]})};exports.HeaderMobile=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/HeaderMobile/HeaderMobile.css');const e=require("./index.cjs240.js"),x=require("./index.cjs28.js"),E=require("./index.cjs21.js"),i=require("react"),o=require("./index.cjs242.js"),g=require("./index.cjs527.js"),y=require("./index.cjs6.js");;/* empty css */const R=require("./index.cjs10.js"),w=require("./index.cjs158.js"),C=require("./index.cjs9.js"),N=require("./index.cjs159.js"),k=({shortTitle:m,menuTitle:p="Menù",region:h,asLink:l="a",navigatonItems:j,labels:c,loginLink:b="/"})=>{const v=l,[n,d]=i.useState(!1),r="main-navigation",u=i.useRef(null);g.useFocusTrap(u,n);const t=i.useCallback(()=>{d(!n)},[n]);i.useEffect(()=>(n?document.body.classList.add("ui-body-overflow-hidden"):document.body.classList.remove("ui-body-overflow-hidden"),()=>{document.body.classList.remove("ui-body-overflow-hidden")}),[n]),i.useEffect(()=>{const s=a=>{a.key==="Escape"&&n&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n,t]);const f=()=>{d(!1)};return e.jsxRuntimeExports.jsxs("div",{className:"sticky-header shadow",children:[e.jsxRuntimeExports.jsx(E.HeaderTopBanner,{asLink:l,shortTitle:m,region:h}),e.jsxRuntimeExports.jsxs(y.Container,{className:"bg-slate-20 min-h-x64 base-row align-items-center justify-content-end",as:"header",py:"x8",children:[e.jsxRuntimeExports.jsxs(C.Row,{gap:"x24",alignItems:"center",justifyContent:"end",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"3",bg:"white",textColor:"primary",href:b,asLink:"a",className:"ui-login-button-header-mobile",children:[c.login,e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:" Accedi con Cohesion"})]}),e.jsxRuntimeExports.jsx("button",{"aria-expanded":n,"aria-label":"Apri menu di navigazione",onClick:t,className:"ui-mobile-menu-toggle","aria-controls":r,children:e.jsxRuntimeExports.jsx(w.Hamburguer,{width:40,height:40,color:"white"})})]}),e.jsxRuntimeExports.jsxs("nav",{id:r,"aria-label":"Menu di navigazione",className:o.clsx(n?"ui-mobile-nav-panel":"visually-hidden"),ref:u,children:[e.jsxRuntimeExports.jsxs(R.Col,{className:"ui-mobile-nav-header",children:[e.jsxRuntimeExports.jsxs(x.Button,{size:"4",textColor:"primary",bg:"transparent",onClick:t,"aria-label":"Chiudi menu di navigazione","aria-controls":r,children:[c.closeMenu,e.jsxRuntimeExports.jsx(N.Close,{})]}),e.jsxRuntimeExports.jsx("h2",{className:"fs-3 text-slate-20",children:p})]}),e.jsxRuntimeExports.jsx("ul",{className:"list-style-none p-x16",role:"list",children:j.map((s,a)=>e.jsxRuntimeExports.jsx("li",{className:o.clsx("ui-mobile-nav-item",s.active&&"active"),children:e.jsxRuntimeExports.jsxs(v,{href:s.href,"aria-label":`Vai alla pagina ${s.label}`,className:o.clsx("text-decoration-none text-primary fs-5",s.active?"fw-bold":"fw-normal"),onClick:f,target:s.isNewTab?"_blank":void 0,rel:s.isNewTab?"noopener noreferrer":void 0,children:[s.label,s.active&&e.jsxRuntimeExports.jsx("span",{className:"visually-hidden",children:"Attivo"})]})},a))})]})]})]})};exports.HeaderMobile=k;
2
2
  //# sourceMappingURL=index.cjs293.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),D=require("./index.cjs467.js"),$=require("./index.cjs468.js"),S=require("./index.cjs466.js"),M=require("./index.cjs469.js"),N=require("./index.cjs490.js"),H=require("./index.cjs491.js"),T=require("./index.cjs485.js"),q=require("./index.cjs470.js"),f=require("./index.cjs240.js");function z(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=z(_);var y="Checkbox",[A,B]=$.createContextScope(y),[K,L]=A(y),j=s.forwardRef((e,r)=>{const{__scopeCheckbox:t,name:c,checked:p,defaultChecked:n,required:x,disabled:u,value:h="on",onCheckedChange:m,form:d,...C}=e,[i,k]=s.useState(null),v=D.useComposedRefs(r,o=>k(o)),R=s.useRef(!1),g=i?d||!!i.closest("form"):!0,[l=!1,E]=M.useControllableState({prop:p,defaultProp:n,onChange:m}),w=s.useRef(l);return s.useEffect(()=>{const o=i==null?void 0:i.form;if(o){const b=()=>E(w.current);return o.addEventListener("reset",b),()=>o.removeEventListener("reset",b)}},[i,E]),f.jsxRuntimeExports.jsxs(K,{scope:t,state:l,disabled:u,children:[f.jsxRuntimeExports.jsx(q.Primitive.button,{type:"button",role:"checkbox","aria-checked":a(l)?"mixed":l,"aria-required":x,"data-state":O(l),"data-disabled":u?"":void 0,disabled:u,value:h,...C,ref:v,onKeyDown:S.composeEventHandlers(e.onKeyDown,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:S.composeEventHandlers(e.onClick,o=>{E(b=>a(b)?!0:!b),g&&(R.current=o.isPropagationStopped(),R.current||o.stopPropagation())})}),g&&f.jsxRuntimeExports.jsx(X,{control:i,bubbles:!R.current,name:c,value:h,checked:l,required:x,disabled:u,form:d,style:{transform:"translateX(-100%)"},defaultChecked:a(n)?!1:n})]})});j.displayName=y;var I="CheckboxIndicator",P=s.forwardRef((e,r)=>{const{__scopeCheckbox:t,forceMount:c,...p}=e,n=L(I,t);return f.jsxRuntimeExports.jsx(T.Presence,{present:c||a(n.state)||n.state===!0,children:f.jsxRuntimeExports.jsx(q.Primitive.span,{"data-state":O(n.state),"data-disabled":n.disabled?"":void 0,...p,ref:r,style:{pointerEvents:"none",...e.style}})})});P.displayName=I;var X=e=>{const{control:r,checked:t,bubbles:c=!0,defaultChecked:p,...n}=e,x=s.useRef(null),u=N.usePrevious(t),h=H.useSize(r);s.useEffect(()=>{const d=x.current,C=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(C,"checked").set;if(u!==t&&k){const v=new Event("click",{bubbles:c});d.indeterminate=a(t),k.call(d,a(t)?!1:t),d.dispatchEvent(v)}},[u,t,c]);const m=s.useRef(a(t)?!1:t);return f.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:p??m.current,...n,tabIndex:-1,ref:x,style:{...e.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function a(e){return e==="indeterminate"}function O(e){return a(e)?"indeterminate":e?"checked":"unchecked"}var F=j,G=P;exports.Checkbox=j;exports.CheckboxIndicator=P;exports.Indicator=G;exports.Root=F;exports.createCheckboxScope=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),O=require("./index.cjs466.js"),L=require("./index.cjs467.js"),B=require("./index.cjs465.js"),z=require("./index.cjs468.js"),G=require("./index.cjs492.js"),K=require("./index.cjs490.js"),U=require("./index.cjs481.js"),y=require("./index.cjs469.js"),l=require("./index.cjs240.js");function X(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=X(H);var E="Checkbox",[J,Q]=L.createContextScope(E),[V,I]=J(E);function S(e){const{__scopeCheckbox:n,checked:r,children:s,defaultChecked:c,disabled:t,form:b,name:f,onCheckedChange:u,required:h,value:m="on",internal_do_not_use_render:d}=e,[p,v]=z.useControllableState({prop:r,defaultProp:c??!1,onChange:u,caller:E}),[C,k]=a.useState(null),[R,o]=a.useState(null),i=a.useRef(!1),j=C?!!b||!!C.closest("form"):!0,P={checked:p,disabled:t,setChecked:v,control:C,setControl:k,name:f,form:b,value:m,hasConsumerStoppedPropagationRef:i,required:h,defaultChecked:x(c)?!1:c,isFormControl:j,bubbleInput:R,setBubbleInput:o};return l.jsxRuntimeExports.jsx(V,{scope:n,...P,children:W(d)?d(P):s})}var T="CheckboxTrigger",_=a.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...s},c)=>{const{control:t,value:b,disabled:f,checked:u,required:h,setControl:m,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:C}=I(T,e),k=O.useComposedRefs(c,m),R=a.useRef(u);return a.useEffect(()=>{const o=t==null?void 0:t.form;if(o){const i=()=>d(R.current);return o.addEventListener("reset",i),()=>o.removeEventListener("reset",i)}},[t,d]),l.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(u)?"mixed":u,"aria-required":h,"data-state":D(u),"data-disabled":f?"":void 0,disabled:f,value:b,...s,ref:k,onKeyDown:B.composeEventHandlers(n,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:B.composeEventHandlers(r,o=>{d(i=>x(i)?!0:!i),C&&v&&(p.current=o.isPropagationStopped(),p.current||o.stopPropagation())})})});_.displayName=T;var q=a.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:s,checked:c,defaultChecked:t,required:b,disabled:f,value:u,onCheckedChange:h,form:m,...d}=e;return l.jsxRuntimeExports.jsx(S,{__scopeCheckbox:r,checked:c,defaultChecked:t,disabled:f,required:b,onCheckedChange:h,name:s,form:m,value:u,internal_do_not_use_render:({isFormControl:p})=>l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(_,{...d,ref:n,__scopeCheckbox:r}),p&&l.jsxRuntimeExports.jsx(g,{__scopeCheckbox:r})]})})});q.displayName=E;var M="CheckboxIndicator",N=a.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:s,...c}=e,t=I(M,r);return l.jsxRuntimeExports.jsx(U.Presence,{present:s||x(t.checked)||t.checked===!0,children:l.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":D(t.checked),"data-disabled":t.disabled?"":void 0,...c,ref:n,style:{pointerEvents:"none",...e.style}})})});N.displayName=M;var $="CheckboxBubbleInput",g=a.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:t,defaultChecked:b,required:f,disabled:u,name:h,value:m,form:d,bubbleInput:p,setBubbleInput:v}=I($,e),C=O.useComposedRefs(r,v),k=G.usePrevious(t),R=K.useSize(s);a.useEffect(()=>{const i=p;if(!i)return;const j=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(j,"checked").set,A=!c.current;if(k!==t&&w){const F=new Event("click",{bubbles:A});i.indeterminate=x(t),w.call(i,x(t)?!1:t),i.dispatchEvent(F)}},[p,k,t,c]);const o=a.useRef(x(t)?!1:t);return l.jsxRuntimeExports.jsx(y.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??o.current,required:f,disabled:u,name:h,value:m,form:d,...n,tabIndex:-1,ref:C,style:{...n.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});g.displayName=$;function W(e){return typeof e=="function"}function x(e){return e==="indeterminate"}function D(e){return x(e)?"indeterminate":e?"checked":"unchecked"}exports.Checkbox=q;exports.CheckboxIndicator=N;exports.Indicator=N;exports.Root=q;exports.createCheckboxScope=Q;exports.unstable_BubbleInput=g;exports.unstable_CheckboxBubbleInput=g;exports.unstable_CheckboxProvider=S;exports.unstable_CheckboxTrigger=_;exports.unstable_Provider=S;exports.unstable_Trigger=_;
2
2
  //# sourceMappingURL=index.cjs301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs301.js","sources":["../node_modules/@radix-ui/react-checkbox/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/checkbox/src/checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form2 = button?.form;\n if (form2) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form2.addEventListener(\"reset\", reset);\n return () => form2.removeEventListener(\"reset\", reset);\n }\n }, [button, setChecked]);\n return /* @__PURE__ */ jsxs(CheckboxProvider, { scope: __scopeCheckbox, state: checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" },\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked\n }\n )\n ] });\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.state),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n ) });\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, defaultChecked, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Checkbox;\nvar Indicator = CheckboxIndicator;\nexport {\n Checkbox,\n CheckboxIndicator,\n Indicator,\n Root,\n createCheckboxScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProvider","useCheckboxContext","Checkbox","React","props","forwardedRef","__scopeCheckbox","name","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","form","checkboxProps","button","setButton","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","isFormControl","checked","setChecked","useControllableState","initialCheckedStateRef","form2","reset","jsxs","jsx","Primitive","isIndeterminate","getState","composeEventHandlers","event","prevChecked","BubbleInput","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","context","Presence","control","bubbles","inputProps","ref","usePrevious","controlSize","useSize","input","inputProto","defaultCheckedRef","Root","Indicator"],"mappings":"0pBAaA,IAAIA,EAAgB,WAChB,CAACC,EAAuBC,CAAmB,EAAIC,EAAAA,mBAAmBH,CAAa,EAC/E,CAACI,EAAkBC,CAAkB,EAAIJ,EAAsBD,CAAa,EAC5EM,EAAWC,EAAM,WACnB,CAACC,EAAOC,IAAiB,CACvB,KAAM,CACJ,gBAAAC,EACA,KAAAC,EACA,QAASC,EACT,eAAAC,EACA,SAAAC,EACA,SAAAC,EACA,MAAAC,EAAQ,KACR,gBAAAC,EACA,KAAAC,EACA,GAAGC,CACT,EAAQX,EACE,CAACY,EAAQC,CAAS,EAAId,EAAM,SAAS,IAAI,EACzCe,EAAeC,EAAAA,gBAAgBd,EAAee,GAASH,EAAUG,CAAI,CAAC,EACtEC,EAAmClB,EAAM,OAAO,EAAK,EACrDmB,EAAgBN,EAASF,GAAQ,CAAC,CAACE,EAAO,QAAQ,MAAM,EAAI,GAC5D,CAACO,EAAU,GAAOC,CAAU,EAAIC,EAAAA,qBAAqB,CACzD,KAAMjB,EACN,YAAaC,EACb,SAAUI,CAChB,CAAK,EACKa,EAAyBvB,EAAM,OAAOoB,CAAO,EACnDpB,OAAAA,EAAM,UAAU,IAAM,CACpB,MAAMwB,EAAQX,GAAA,YAAAA,EAAQ,KACtB,GAAIW,EAAO,CACT,MAAMC,EAAQ,IAAMJ,EAAWE,EAAuB,OAAO,EAC7D,OAAAC,EAAM,iBAAiB,QAASC,CAAK,EAC9B,IAAMD,EAAM,oBAAoB,QAASC,CAAK,CAC7D,CACA,EAAO,CAACZ,EAAQQ,CAAU,CAAC,EACAK,EAAI,kBAAA,KAAC7B,EAAkB,CAAE,MAAOM,EAAiB,MAAOiB,EAA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EAAU,UAAY,WAC5E,CACG,IAAC+B,EAAOpD,EACPqD,EAAYhB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs301.js","sources":["../node_modules/@radix-ui/react-checkbox/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nfunction CheckboxProvider(props) {\n const {\n __scopeCheckbox,\n checked: checkedProp,\n children,\n defaultChecked,\n disabled,\n form,\n name,\n onCheckedChange,\n required,\n value = \"on\",\n // @ts-expect-error\n internal_do_not_use_render\n } = props;\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked ?? false,\n onChange: onCheckedChange,\n caller: CHECKBOX_NAME\n });\n const [control, setControl] = React.useState(null);\n const [bubbleInput, setBubbleInput] = React.useState(null);\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = control ? !!form || !!control.closest(\"form\") : (\n // We set this to true by default so that events bubble to forms without JS (SSR)\n true\n );\n const context = {\n checked,\n disabled,\n setChecked,\n control,\n setControl,\n name,\n form,\n value,\n hasConsumerStoppedPropagationRef,\n required,\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,\n isFormControl,\n bubbleInput,\n setBubbleInput\n };\n return /* @__PURE__ */ jsx(\n CheckboxProviderImpl,\n {\n scope: __scopeCheckbox,\n ...context,\n children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children\n }\n );\n}\nvar TRIGGER_NAME = \"CheckboxTrigger\";\nvar CheckboxTrigger = React.forwardRef(\n ({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {\n const {\n control,\n value,\n disabled,\n checked,\n required,\n setControl,\n setChecked,\n hasConsumerStoppedPropagationRef,\n isFormControl,\n bubbleInput\n } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setControl);\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = control?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener(\"reset\", reset);\n return () => form.removeEventListener(\"reset\", reset);\n }\n }, [control, setChecked]);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (bubbleInput && isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n );\n }\n);\nCheckboxTrigger.displayName = TRIGGER_NAME;\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked,\n defaultChecked,\n required,\n disabled,\n value,\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n return /* @__PURE__ */ jsx(\n CheckboxProvider,\n {\n __scopeCheckbox,\n checked,\n defaultChecked,\n disabled,\n required,\n onCheckedChange,\n name,\n form,\n value,\n internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n CheckboxTrigger,\n {\n ...checkboxProps,\n ref: forwardedRef,\n __scopeCheckbox\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n CheckboxBubbleInput,\n {\n __scopeCheckbox\n }\n )\n ] })\n }\n );\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(context.checked) || context.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n )\n }\n );\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BUBBLE_INPUT_NAME = \"CheckboxBubbleInput\";\nvar CheckboxBubbleInput = React.forwardRef(\n ({ __scopeCheckbox, ...props }, forwardedRef) => {\n const {\n control,\n hasConsumerStoppedPropagationRef,\n checked,\n defaultChecked,\n required,\n disabled,\n name,\n value,\n form,\n bubbleInput,\n setBubbleInput\n } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = bubbleInput;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n const bubbles = !hasConsumerStoppedPropagationRef.current;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return /* @__PURE__ */ jsx(\n Primitive.input,\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n required,\n disabled,\n name,\n value,\n form,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0,\n // We transform because the input is absolutely positioned but we have\n // rendered it **after** the button. This pulls it back to sit on top\n // of the button.\n transform: \"translateX(-100%)\"\n }\n }\n );\n }\n);\nCheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nexport {\n Checkbox,\n CheckboxIndicator,\n CheckboxIndicator as Indicator,\n Checkbox as Root,\n createCheckboxScope,\n CheckboxBubbleInput as unstable_BubbleInput,\n CheckboxBubbleInput as unstable_CheckboxBubbleInput,\n CheckboxProvider as unstable_CheckboxProvider,\n CheckboxTrigger as unstable_CheckboxTrigger,\n CheckboxProvider as unstable_Provider,\n CheckboxTrigger as unstable_Trigger\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProviderImpl","useCheckboxContext","CheckboxProvider","props","__scopeCheckbox","checkedProp","children","defaultChecked","disabled","form","name","onCheckedChange","required","value","internal_do_not_use_render","checked","setChecked","useControllableState","control","setControl","React","bubbleInput","setBubbleInput","hasConsumerStoppedPropagationRef","isFormControl","context","isIndeterminate","jsx","isFunction","TRIGGER_NAME","CheckboxTrigger","onKeyDown","onClick","checkboxProps","forwardedRef","composedRefs","useComposedRefs","initialCheckedStateRef","reset","Primitive","getState","composeEventHandlers","event","prevChecked","Checkbox","jsxs","Fragment","CheckboxBubbleInput","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","Presence","BUBBLE_INPUT_NAME","usePrevious","controlSize","useSize","input","inputProto","bubbles","defaultCheckedRef"],"mappings":"0pBAaA,IAAIA,EAAgB,WAChB,CAACC,EAAuBC,CAAmB,EAAIC,EAAAA,mBAAmBH,CAAa,EAC/E,CAACI,EAAsBC,CAAkB,EAAIJ,EAAsBD,CAAa,EACpF,SAASM,EAAiBC,EAAO,CAC/B,KAAM,CACJ,gBAAAC,EACA,QAASC,EACT,SAAAC,EACA,eAAAC,EACA,SAAAC,EACA,KAAAC,EACA,KAAAC,EACA,gBAAAC,EACA,SAAAC,EACA,MAAAC,EAAQ,KAER,2BAAAC,CACJ,EAAMX,EACE,CAACY,EAASC,CAAU,EAAIC,uBAAqB,CACjD,KAAMZ,EACN,YAAaE,GAAkB,GAC/B,SAAUI,EACV,OAAQf,CACZ,CAAG,EACK,CAACsB,EAASC,CAAU,EAAIC,EAAM,SAAS,IAAI,EAC3C,CAACC,EAAaC,CAAc,EAAIF,EAAM,SAAS,IAAI,EACnDG,EAAmCH,EAAM,OAAO,EAAK,EACrDI,EAAgBN,EAAU,CAAC,CAACT,GAAQ,CAAC,CAACS,EAAQ,QAAQ,MAAM,EAEhE,GAEIO,EAAU,CACd,QAAAV,EACA,SAAAP,EACA,WAAAQ,EACA,QAAAE,EACA,WAAAC,EACA,KAAAT,EACA,KAAAD,EACA,MAAAI,EACA,iCAAAU,EACA,SAAAX,EACA,eAAgBc,EAAgBnB,CAAc,EAAI,GAAQA,EAC1D,cAAAiB,EACA,YAAAH,EACA,eAAAC,CACD,EACD,OAAuBK,EAAG,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MAAAG,EACA,KAAAJ,EACA,GAAGN,EACH,SAAU,GACV,IAAKgC,EACL,MAAO,CACL,GAAGhC,EAAM,MACT,GAAGoD,EACH,SAAU,WACV,cAAe,OACf,QAAS,EACT,OAAQ,EAIR,UAAW,mBACrB,CACA,CACK,CACL,CACA,EACAR,EAAoB,YAAcM,EAClC,SAASzB,EAAWf,EAAO,CACzB,OAAO,OAAOA,GAAU,UAC1B,CACA,SAASa,EAAgBX,EAAS,CAChC,OAAOA,IAAY,eACrB,CACA,SAASyB,EAASzB,EAAS,CACzB,OAAOW,EAAgBX,CAAO,EAAI,gBAAkBA,EAAU,UAAY,WAC5E","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs499.js"),s=require("react"),p=()=>{const[o,t]=c.useCopyToClipboard(),[r,e]=s.useState(!1);return{isCopied:r,copiedText:o,copyToClipboard:()=>{if(typeof window>"u")return;const i=window.location.href;t(i).then(()=>{e(()=>!0),setTimeout(()=>{e(!1)},1500)}).catch(n=>{console.debug("Failed to copy!",n)})}}};exports.useCopyToClipboardCurrentPage=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs496.js"),s=require("react"),p=()=>{const[o,t]=c.useCopyToClipboard(),[r,e]=s.useState(!1);return{isCopied:r,copiedText:o,copyToClipboard:()=>{if(typeof window>"u")return;const i=window.location.href;t(i).then(()=>{e(()=>!0),setTimeout(()=>{e(!1)},1500)}).catch(n=>{console.debug("Failed to copy!",n)})}}};exports.useCopyToClipboardCurrentPage=p;
2
2
  //# sourceMappingURL=index.cjs312.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs466.js"),v=require("./index.cjs467.js"),M=require("./index.cjs468.js"),R=require("./index.cjs472.js"),B=require("./index.cjs469.js"),V=require("./index.cjs480.js"),z=require("./index.cjs482.js"),K=require("./index.cjs484.js"),E=require("./index.cjs485.js"),x=require("./index.cjs470.js"),U=require("./index.cjs481.js"),Y=require("./index.cjs488.js"),Z=require("./index.cjs487.js"),J=require("./index.cjs477.js"),s=require("./index.cjs240.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var j="Dialog",[S,X]=M.createContextScope(j),[ee,u]=S(j),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f=!1,D]=B.useControllableState({prop:r,defaultProp:i,onChange:o});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:R.useId(),titleId:R.useId(),descriptionId:R.useId(),open:f,onOpenChange:D,onOpenToggle:a.useCallback(()=>D(L=>!L),[D]),modal:c,children:n})};C.displayName=j;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=v.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(E.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(E.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=v.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=v.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs465.js"),E=require("./index.cjs466.js"),M=require("./index.cjs467.js"),v=require("./index.cjs471.js"),B=require("./index.cjs468.js"),V=require("./index.cjs476.js"),z=require("./index.cjs478.js"),K=require("./index.cjs480.js"),j=require("./index.cjs481.js"),x=require("./index.cjs469.js"),U=require("./index.cjs477.js"),Y=require("./index.cjs485.js"),Z=require("./index.cjs484.js"),J=require("./index.cjs473.js"),s=require("./index.cjs240.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var D="Dialog",[S,X]=M.createContextScope(D),[ee,u]=S(D),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f,R]=B.useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:D});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:v.useId(),titleId:v.useId(),descriptionId:v.useId(),open:f,onOpenChange:R,onOpenToggle:a.useCallback(()=>R(L=>!L),[R]),modal:c,children:n})};C.displayName=D;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=E.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(j.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=E.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=E.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4