@anoki/fse-ui 1.0.0-beta1.51.4 → 1.0.0-beta1.51.6

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 (519) hide show
  1. package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
  2. package/dist/components/ui/Section/Description/description.css +1 -1
  3. package/dist/components/ui/VideoPlayer/VideoPlayer.css +1 -1
  4. package/dist/index.cjs271.js +1 -1
  5. package/dist/index.cjs279.js +1 -1
  6. package/dist/index.cjs290.js +1 -1
  7. package/dist/index.cjs297.js +1 -1
  8. package/dist/index.cjs32.js +1 -1
  9. package/dist/index.cjs328.js +1 -1
  10. package/dist/index.cjs33.js +1 -1
  11. package/dist/index.cjs347.js +1 -1
  12. package/dist/index.cjs348.js +1 -1
  13. package/dist/index.cjs370.js +1 -1
  14. package/dist/index.cjs388.js +1 -1
  15. package/dist/index.cjs404.js +1 -1
  16. package/dist/index.cjs405.js +1 -1
  17. package/dist/index.cjs406.js +1 -1
  18. package/dist/index.cjs41.js +1 -1
  19. package/dist/index.cjs41.js.map +1 -1
  20. package/dist/index.cjs413.js +1 -1
  21. package/dist/index.cjs447.js +1 -1
  22. package/dist/index.cjs465.js +1 -1
  23. package/dist/index.cjs466.js +1 -1
  24. package/dist/index.cjs468.js +1 -1
  25. package/dist/index.cjs468.js.map +1 -1
  26. package/dist/index.cjs471.js +1 -1
  27. package/dist/index.cjs471.js.map +1 -1
  28. package/dist/{index.cjs469.js → index.cjs472.js} +1 -1
  29. package/dist/{index.cjs469.js.map → index.cjs472.js.map} +1 -1
  30. package/dist/{index.cjs470.js → index.cjs473.js} +1 -1
  31. package/dist/{index.cjs470.js.map → index.cjs473.js.map} +1 -1
  32. package/dist/index.cjs474.js +2 -0
  33. package/dist/index.cjs474.js.map +1 -0
  34. package/dist/index.cjs475.js +2 -0
  35. package/dist/index.cjs475.js.map +1 -0
  36. package/dist/{index.cjs482.js → index.cjs476.js} +1 -1
  37. package/dist/{index.cjs482.js.map → index.cjs476.js.map} +1 -1
  38. package/dist/index.cjs477.js +1 -1
  39. package/dist/index.cjs477.js.map +1 -1
  40. package/dist/{index.cjs484.js → index.cjs478.js} +1 -1
  41. package/dist/{index.cjs484.js.map → index.cjs478.js.map} +1 -1
  42. package/dist/{index.cjs485.js → index.cjs479.js} +1 -1
  43. package/dist/{index.cjs485.js.map → index.cjs479.js.map} +1 -1
  44. package/dist/{index.cjs486.js → index.cjs480.js} +1 -1
  45. package/dist/{index.cjs486.js.map → index.cjs480.js.map} +1 -1
  46. package/dist/index.cjs481.js +1 -1
  47. package/dist/index.cjs481.js.map +1 -1
  48. package/dist/index.cjs508.js +1 -1
  49. package/dist/index.cjs508.js.map +1 -1
  50. package/dist/index.cjs509.js +1 -1
  51. package/dist/index.cjs509.js.map +1 -1
  52. package/dist/index.cjs510.js +1 -1
  53. package/dist/index.cjs510.js.map +1 -1
  54. package/dist/index.cjs511.js +1 -1
  55. package/dist/index.cjs511.js.map +1 -1
  56. package/dist/index.cjs512.js +2 -0
  57. package/dist/index.cjs512.js.map +1 -0
  58. package/dist/index.cjs513.js +2 -0
  59. package/dist/index.cjs513.js.map +1 -0
  60. package/dist/index.cjs514.js +1 -1
  61. package/dist/index.cjs514.js.map +1 -1
  62. package/dist/index.cjs527.js +1 -1
  63. package/dist/index.cjs529.js +1 -1
  64. package/dist/index.cjs532.js +1 -1
  65. package/dist/index.cjs532.js.map +1 -1
  66. package/dist/index.cjs533.js +1 -1
  67. package/dist/index.cjs533.js.map +1 -1
  68. package/dist/index.cjs535.js +1 -1
  69. package/dist/index.cjs536.js +1 -1
  70. package/dist/index.cjs537.js +1 -1
  71. package/dist/index.cjs538.js +1 -1
  72. package/dist/index.cjs539.js +1 -1
  73. package/dist/index.cjs540.js +1 -1
  74. package/dist/index.cjs541.js +1 -1
  75. package/dist/index.cjs542.js +1 -1
  76. package/dist/index.cjs543.js +1 -1
  77. package/dist/index.cjs544.js +1 -1
  78. package/dist/index.cjs545.js +1 -1
  79. package/dist/index.cjs546.js +1 -1
  80. package/dist/index.cjs547.js +1 -1
  81. package/dist/index.cjs548.js +1 -1
  82. package/dist/index.cjs549.js +1 -1
  83. package/dist/index.cjs550.js +1 -1
  84. package/dist/index.cjs551.js +1 -1
  85. package/dist/index.cjs552.js +1 -1
  86. package/dist/index.cjs553.js +1 -1
  87. package/dist/index.cjs554.js +1 -1
  88. package/dist/index.cjs555.js +1 -1
  89. package/dist/index.cjs556.js +1 -1
  90. package/dist/index.cjs557.js +1 -1
  91. package/dist/index.cjs558.js +1 -1
  92. package/dist/index.cjs559.js +1 -1
  93. package/dist/index.cjs560.js +1 -1
  94. package/dist/index.cjs561.js +1 -1
  95. package/dist/index.cjs562.js +1 -1
  96. package/dist/index.cjs563.js +1 -1
  97. package/dist/index.cjs564.js +1 -1
  98. package/dist/index.cjs565.js +1 -1
  99. package/dist/index.cjs566.js +1 -1
  100. package/dist/index.cjs567.js +1 -1
  101. package/dist/index.cjs568.js +1 -1
  102. package/dist/index.cjs569.js +1 -1
  103. package/dist/index.cjs571.js +1 -1
  104. package/dist/index.cjs571.js.map +1 -1
  105. package/dist/index.cjs572.js +1 -1
  106. package/dist/index.cjs573.js +1 -1
  107. package/dist/index.cjs573.js.map +1 -1
  108. package/dist/index.cjs574.js +1 -1
  109. package/dist/index.cjs574.js.map +1 -1
  110. package/dist/index.cjs577.js +1 -1
  111. package/dist/index.cjs582.js +1 -1
  112. package/dist/index.cjs583.js +1 -1
  113. package/dist/index.cjs583.js.map +1 -1
  114. package/dist/index.cjs584.js +1 -1
  115. package/dist/index.cjs584.js.map +1 -1
  116. package/dist/index.cjs585.js +1 -1
  117. package/dist/index.cjs585.js.map +1 -1
  118. package/dist/index.cjs586.js +1 -1
  119. package/dist/index.cjs586.js.map +1 -1
  120. package/dist/index.cjs587.js +1 -1
  121. package/dist/index.cjs587.js.map +1 -1
  122. package/dist/index.cjs588.js +1 -1
  123. package/dist/index.cjs588.js.map +1 -1
  124. package/dist/index.cjs589.js +1 -1
  125. package/dist/index.cjs589.js.map +1 -1
  126. package/dist/index.cjs590.js +1 -1
  127. package/dist/index.cjs590.js.map +1 -1
  128. package/dist/index.cjs591.js +1 -1
  129. package/dist/index.cjs591.js.map +1 -1
  130. package/dist/index.cjs592.js +1 -1
  131. package/dist/index.cjs592.js.map +1 -1
  132. package/dist/index.cjs593.js +1 -1
  133. package/dist/index.cjs593.js.map +1 -1
  134. package/dist/index.cjs594.js +1 -1
  135. package/dist/index.cjs594.js.map +1 -1
  136. package/dist/index.cjs595.js +1 -1
  137. package/dist/index.cjs595.js.map +1 -1
  138. package/dist/index.cjs596.js +1 -1
  139. package/dist/index.cjs596.js.map +1 -1
  140. package/dist/index.cjs597.js +1 -1
  141. package/dist/index.cjs597.js.map +1 -1
  142. package/dist/index.cjs598.js +1 -1
  143. package/dist/index.cjs598.js.map +1 -1
  144. package/dist/index.cjs599.js +1 -1
  145. package/dist/index.cjs599.js.map +1 -1
  146. package/dist/index.cjs600.js +1 -1
  147. package/dist/index.cjs600.js.map +1 -1
  148. package/dist/index.cjs601.js +1 -1
  149. package/dist/index.cjs601.js.map +1 -1
  150. package/dist/index.cjs602.js +1 -1
  151. package/dist/index.cjs602.js.map +1 -1
  152. package/dist/index.cjs603.js +1 -1
  153. package/dist/index.cjs603.js.map +1 -1
  154. package/dist/index.cjs604.js +1 -1
  155. package/dist/index.cjs604.js.map +1 -1
  156. package/dist/index.cjs605.js +1 -1
  157. package/dist/index.cjs605.js.map +1 -1
  158. package/dist/index.cjs606.js +1 -1
  159. package/dist/index.cjs606.js.map +1 -1
  160. package/dist/index.cjs607.js +1 -1
  161. package/dist/index.cjs607.js.map +1 -1
  162. package/dist/index.cjs615.js +1 -1
  163. package/dist/index.cjs617.js +1 -1
  164. package/dist/index.cjs618.js +1 -1
  165. package/dist/index.cjs618.js.map +1 -1
  166. package/dist/index.cjs619.js +1 -1
  167. package/dist/index.cjs619.js.map +1 -1
  168. package/dist/index.cjs620.js +1 -1
  169. package/dist/index.cjs620.js.map +1 -1
  170. package/dist/index.cjs621.js +1 -1
  171. package/dist/index.cjs621.js.map +1 -1
  172. package/dist/index.cjs622.js +1 -1
  173. package/dist/index.cjs622.js.map +1 -1
  174. package/dist/index.cjs623.js +1 -1
  175. package/dist/index.cjs623.js.map +1 -1
  176. package/dist/index.cjs624.js +1 -1
  177. package/dist/index.cjs624.js.map +1 -1
  178. package/dist/index.cjs625.js +1 -1
  179. package/dist/index.cjs625.js.map +1 -1
  180. package/dist/index.cjs626.js +1 -1
  181. package/dist/index.cjs626.js.map +1 -1
  182. package/dist/index.cjs627.js +1 -1
  183. package/dist/index.cjs627.js.map +1 -1
  184. package/dist/index.cjs628.js +1 -1
  185. package/dist/index.cjs628.js.map +1 -1
  186. package/dist/index.cjs629.js +1 -1
  187. package/dist/index.cjs629.js.map +1 -1
  188. package/dist/index.cjs630.js +1 -1
  189. package/dist/index.cjs630.js.map +1 -1
  190. package/dist/index.cjs631.js +1 -1
  191. package/dist/index.cjs631.js.map +1 -1
  192. package/dist/index.cjs632.js +1 -1
  193. package/dist/index.cjs632.js.map +1 -1
  194. package/dist/index.cjs633.js +1 -1
  195. package/dist/index.cjs633.js.map +1 -1
  196. package/dist/index.cjs634.js +1 -1
  197. package/dist/index.cjs634.js.map +1 -1
  198. package/dist/index.cjs635.js +1 -1
  199. package/dist/index.cjs635.js.map +1 -1
  200. package/dist/index.cjs636.js +1 -1
  201. package/dist/index.cjs636.js.map +1 -1
  202. package/dist/index.cjs637.js +1 -1
  203. package/dist/index.cjs637.js.map +1 -1
  204. package/dist/index.cjs638.js +1 -1
  205. package/dist/index.cjs638.js.map +1 -1
  206. package/dist/index.cjs639.js +1 -1
  207. package/dist/index.cjs639.js.map +1 -1
  208. package/dist/index.cjs640.js +1 -1
  209. package/dist/index.cjs640.js.map +1 -1
  210. package/dist/index.cjs641.js +1 -1
  211. package/dist/index.cjs641.js.map +1 -1
  212. package/dist/index.cjs642.js +1 -1
  213. package/dist/index.cjs642.js.map +1 -1
  214. package/dist/index.cjs644.js +1 -1
  215. package/dist/index.cjs646.js +1 -1
  216. package/dist/index.cjs651.js +1 -1
  217. package/dist/index.cjs651.js.map +1 -1
  218. package/dist/index.cjs652.js +1 -1
  219. package/dist/index.cjs652.js.map +1 -1
  220. package/dist/index.cjs653.js +1 -1
  221. package/dist/index.cjs653.js.map +1 -1
  222. package/dist/index.cjs654.js +1 -1
  223. package/dist/index.cjs654.js.map +1 -1
  224. package/dist/index.cjs655.js +1 -1
  225. package/dist/index.cjs655.js.map +1 -1
  226. package/dist/index.cjs661.js +38 -1
  227. package/dist/index.cjs661.js.map +1 -1
  228. package/dist/index.cjs662.js +1 -1
  229. package/dist/index.cjs662.js.map +1 -1
  230. package/dist/index.cjs663.js +1 -1
  231. package/dist/index.cjs663.js.map +1 -1
  232. package/dist/index.cjs664.js +1 -38
  233. package/dist/index.cjs664.js.map +1 -1
  234. package/dist/index.cjs665.js +1 -1
  235. package/dist/index.cjs665.js.map +1 -1
  236. package/dist/index.cjs666.js +1 -1
  237. package/dist/index.cjs666.js.map +1 -1
  238. package/dist/index.cjs667.js +1 -1
  239. package/dist/index.cjs667.js.map +1 -1
  240. package/dist/index.cjs668.js +1 -1
  241. package/dist/index.cjs668.js.map +1 -1
  242. package/dist/index.cjs669.js +1 -1
  243. package/dist/index.cjs669.js.map +1 -1
  244. package/dist/index.cjs670.js +1 -1
  245. package/dist/index.cjs670.js.map +1 -1
  246. package/dist/index.cjs671.js +1 -1
  247. package/dist/index.cjs671.js.map +1 -1
  248. package/dist/index.d.ts +1 -1
  249. package/dist/index.es271.js +1 -1
  250. package/dist/index.es279.js +3 -3
  251. package/dist/index.es290.js +1 -1
  252. package/dist/index.es297.js +8 -8
  253. package/dist/index.es32.js +1 -1
  254. package/dist/index.es328.js +2 -2
  255. package/dist/index.es33.js +1 -1
  256. package/dist/index.es347.js +6 -6
  257. package/dist/index.es348.js +2 -2
  258. package/dist/index.es370.js +1 -1
  259. package/dist/index.es388.js +8 -8
  260. package/dist/index.es404.js +3 -3
  261. package/dist/index.es405.js +1 -1
  262. package/dist/index.es406.js +2 -2
  263. package/dist/index.es41.js +61 -60
  264. package/dist/index.es41.js.map +1 -1
  265. package/dist/index.es413.js +1 -1
  266. package/dist/index.es447.js +2 -2
  267. package/dist/index.es465.js +1 -1
  268. package/dist/index.es466.js +8 -8
  269. package/dist/index.es468.js +15 -6
  270. package/dist/index.es468.js.map +1 -1
  271. package/dist/index.es471.js +6 -15
  272. package/dist/index.es471.js.map +1 -1
  273. package/dist/{index.es469.js → index.es472.js} +1 -1
  274. package/dist/{index.es469.js.map → index.es472.js.map} +1 -1
  275. package/dist/{index.es470.js → index.es473.js} +1 -1
  276. package/dist/{index.es470.js.map → index.es473.js.map} +1 -1
  277. package/dist/index.es474.js +18 -0
  278. package/dist/index.es474.js.map +1 -0
  279. package/dist/index.es475.js +128 -0
  280. package/dist/index.es475.js.map +1 -0
  281. package/dist/{index.es482.js → index.es476.js} +1 -1
  282. package/dist/{index.es482.js.map → index.es476.js.map} +1 -1
  283. package/dist/index.es477.js +14 -15
  284. package/dist/index.es477.js.map +1 -1
  285. package/dist/{index.es484.js → index.es478.js} +1 -1
  286. package/dist/{index.es484.js.map → index.es478.js.map} +1 -1
  287. package/dist/{index.es485.js → index.es479.js} +1 -1
  288. package/dist/{index.es485.js.map → index.es479.js.map} +1 -1
  289. package/dist/{index.es486.js → index.es480.js} +1 -1
  290. package/dist/{index.es486.js.map → index.es480.js.map} +1 -1
  291. package/dist/index.es481.js +51 -120
  292. package/dist/index.es481.js.map +1 -1
  293. package/dist/index.es508.js +2030 -19
  294. package/dist/index.es508.js.map +1 -1
  295. package/dist/index.es509.js +60 -2
  296. package/dist/index.es509.js.map +1 -1
  297. package/dist/index.es510.js +188 -53
  298. package/dist/index.es510.js.map +1 -1
  299. package/dist/index.es511.js +19 -201
  300. package/dist/index.es511.js.map +1 -1
  301. package/dist/index.es512.js +5 -0
  302. package/dist/index.es512.js.map +1 -0
  303. package/dist/index.es513.js +57 -0
  304. package/dist/index.es513.js.map +1 -0
  305. package/dist/index.es514.js +201 -2030
  306. package/dist/index.es514.js.map +1 -1
  307. package/dist/index.es527.js +1 -1
  308. package/dist/index.es529.js +1 -1
  309. package/dist/index.es532.js +2 -14
  310. package/dist/index.es532.js.map +1 -1
  311. package/dist/index.es533.js +14 -2
  312. package/dist/index.es533.js.map +1 -1
  313. package/dist/index.es535.js +1 -1
  314. package/dist/index.es536.js +1 -1
  315. package/dist/index.es537.js +1 -1
  316. package/dist/index.es538.js +1 -1
  317. package/dist/index.es539.js +1 -1
  318. package/dist/index.es540.js +1 -1
  319. package/dist/index.es541.js +1 -1
  320. package/dist/index.es542.js +1 -1
  321. package/dist/index.es543.js +1 -1
  322. package/dist/index.es544.js +1 -1
  323. package/dist/index.es545.js +1 -1
  324. package/dist/index.es546.js +1 -1
  325. package/dist/index.es547.js +1 -1
  326. package/dist/index.es548.js +1 -1
  327. package/dist/index.es549.js +1 -1
  328. package/dist/index.es550.js +1 -1
  329. package/dist/index.es551.js +1 -1
  330. package/dist/index.es552.js +1 -1
  331. package/dist/index.es553.js +1 -1
  332. package/dist/index.es554.js +1 -1
  333. package/dist/index.es555.js +1 -1
  334. package/dist/index.es556.js +1 -1
  335. package/dist/index.es557.js +1 -1
  336. package/dist/index.es558.js +1 -1
  337. package/dist/index.es559.js +1 -1
  338. package/dist/index.es560.js +1 -1
  339. package/dist/index.es561.js +1 -1
  340. package/dist/index.es562.js +1 -1
  341. package/dist/index.es563.js +1 -1
  342. package/dist/index.es564.js +1 -1
  343. package/dist/index.es565.js +1 -1
  344. package/dist/index.es566.js +1 -1
  345. package/dist/index.es567.js +1 -1
  346. package/dist/index.es568.js +1 -1
  347. package/dist/index.es569.js +1 -1
  348. package/dist/index.es571.js +131 -8
  349. package/dist/index.es571.js.map +1 -1
  350. package/dist/index.es572.js +1 -1
  351. package/dist/index.es573.js +9 -3
  352. package/dist/index.es573.js.map +1 -1
  353. package/dist/index.es574.js +2 -131
  354. package/dist/index.es574.js.map +1 -1
  355. package/dist/index.es577.js +3 -3
  356. package/dist/index.es582.js +2 -5
  357. package/dist/index.es582.js.map +1 -1
  358. package/dist/index.es583.js +2 -16
  359. package/dist/index.es583.js.map +1 -1
  360. package/dist/index.es584.js +2 -13
  361. package/dist/index.es584.js.map +1 -1
  362. package/dist/index.es585.js +2 -36
  363. package/dist/index.es585.js.map +1 -1
  364. package/dist/index.es586.js +2 -5
  365. package/dist/index.es586.js.map +1 -1
  366. package/dist/index.es587.js +2 -2
  367. package/dist/index.es587.js.map +1 -1
  368. package/dist/index.es588.js +2 -3
  369. package/dist/index.es588.js.map +1 -1
  370. package/dist/index.es589.js +2 -7
  371. package/dist/index.es589.js.map +1 -1
  372. package/dist/index.es590.js +2 -6
  373. package/dist/index.es590.js.map +1 -1
  374. package/dist/index.es591.js +2 -5
  375. package/dist/index.es591.js.map +1 -1
  376. package/dist/index.es592.js +2 -32
  377. package/dist/index.es592.js.map +1 -1
  378. package/dist/index.es593.js +2 -242
  379. package/dist/index.es593.js.map +1 -1
  380. package/dist/index.es594.js +2 -4
  381. package/dist/index.es594.js.map +1 -1
  382. package/dist/index.es595.js +2 -5
  383. package/dist/index.es595.js.map +1 -1
  384. package/dist/index.es596.js +2 -10
  385. package/dist/index.es596.js.map +1 -1
  386. package/dist/index.es597.js +2 -56
  387. package/dist/index.es597.js.map +1 -1
  388. package/dist/index.es598.js +2 -8
  389. package/dist/index.es598.js.map +1 -1
  390. package/dist/index.es599.js +2 -6
  391. package/dist/index.es599.js.map +1 -1
  392. package/dist/index.es600.js +2 -533
  393. package/dist/index.es600.js.map +1 -1
  394. package/dist/index.es601.js +2 -14
  395. package/dist/index.es601.js.map +1 -1
  396. package/dist/index.es602.js +2 -2
  397. package/dist/index.es602.js.map +1 -1
  398. package/dist/index.es603.js +2 -37
  399. package/dist/index.es603.js.map +1 -1
  400. package/dist/index.es604.js +2 -2
  401. package/dist/index.es604.js.map +1 -1
  402. package/dist/index.es605.js +2 -273
  403. package/dist/index.es605.js.map +1 -1
  404. package/dist/index.es606.js +2 -3
  405. package/dist/index.es606.js.map +1 -1
  406. package/dist/index.es607.js +2 -30
  407. package/dist/index.es607.js.map +1 -1
  408. package/dist/index.es608.js +2 -2
  409. package/dist/index.es609.js +2 -2
  410. package/dist/index.es610.js +2 -2
  411. package/dist/index.es611.js +2 -2
  412. package/dist/index.es612.js +2 -2
  413. package/dist/index.es614.js +2 -2
  414. package/dist/index.es615.js +2 -2
  415. package/dist/index.es616.js +2 -2
  416. package/dist/index.es617.js +5 -2
  417. package/dist/index.es617.js.map +1 -1
  418. package/dist/index.es618.js +16 -2
  419. package/dist/index.es618.js.map +1 -1
  420. package/dist/index.es619.js +13 -2
  421. package/dist/index.es619.js.map +1 -1
  422. package/dist/index.es620.js +36 -2
  423. package/dist/index.es620.js.map +1 -1
  424. package/dist/index.es621.js +5 -2
  425. package/dist/index.es621.js.map +1 -1
  426. package/dist/index.es622.js +2 -2
  427. package/dist/index.es622.js.map +1 -1
  428. package/dist/index.es623.js +3 -2
  429. package/dist/index.es623.js.map +1 -1
  430. package/dist/index.es624.js +7 -2
  431. package/dist/index.es624.js.map +1 -1
  432. package/dist/index.es625.js +6 -2
  433. package/dist/index.es625.js.map +1 -1
  434. package/dist/index.es626.js +5 -2
  435. package/dist/index.es626.js.map +1 -1
  436. package/dist/index.es627.js +32 -2
  437. package/dist/index.es627.js.map +1 -1
  438. package/dist/index.es628.js +242 -2
  439. package/dist/index.es628.js.map +1 -1
  440. package/dist/index.es629.js +4 -2
  441. package/dist/index.es629.js.map +1 -1
  442. package/dist/index.es630.js +5 -2
  443. package/dist/index.es630.js.map +1 -1
  444. package/dist/index.es631.js +10 -2
  445. package/dist/index.es631.js.map +1 -1
  446. package/dist/index.es632.js +56 -2
  447. package/dist/index.es632.js.map +1 -1
  448. package/dist/index.es633.js +8 -2
  449. package/dist/index.es633.js.map +1 -1
  450. package/dist/index.es634.js +6 -2
  451. package/dist/index.es634.js.map +1 -1
  452. package/dist/index.es635.js +533 -2
  453. package/dist/index.es635.js.map +1 -1
  454. package/dist/index.es636.js +14 -2
  455. package/dist/index.es636.js.map +1 -1
  456. package/dist/index.es637.js +2 -2
  457. package/dist/index.es637.js.map +1 -1
  458. package/dist/index.es638.js +37 -2
  459. package/dist/index.es638.js.map +1 -1
  460. package/dist/index.es639.js +2 -2
  461. package/dist/index.es639.js.map +1 -1
  462. package/dist/index.es640.js +273 -2
  463. package/dist/index.es640.js.map +1 -1
  464. package/dist/index.es641.js +3 -2
  465. package/dist/index.es641.js.map +1 -1
  466. package/dist/index.es642.js +30 -2
  467. package/dist/index.es642.js.map +1 -1
  468. package/dist/index.es644.js +1 -1
  469. package/dist/index.es646.js +4 -4
  470. package/dist/index.es651.js +2 -6
  471. package/dist/index.es651.js.map +1 -1
  472. package/dist/index.es652.js +2 -16
  473. package/dist/index.es652.js.map +1 -1
  474. package/dist/index.es653.js +2 -2
  475. package/dist/index.es653.js.map +1 -1
  476. package/dist/index.es654.js +6 -2
  477. package/dist/index.es654.js.map +1 -1
  478. package/dist/index.es655.js +16 -2
  479. package/dist/index.es655.js.map +1 -1
  480. package/dist/index.es661.js +64 -518
  481. package/dist/index.es661.js.map +1 -1
  482. package/dist/index.es662.js +8 -126
  483. package/dist/index.es662.js.map +1 -1
  484. package/dist/index.es663.js +13 -128
  485. package/dist/index.es663.js.map +1 -1
  486. package/dist/index.es664.js +61 -68
  487. package/dist/index.es664.js.map +1 -1
  488. package/dist/index.es665.js +64 -8
  489. package/dist/index.es665.js.map +1 -1
  490. package/dist/index.es666.js +520 -11
  491. package/dist/index.es666.js.map +1 -1
  492. package/dist/index.es667.js +126 -61
  493. package/dist/index.es667.js.map +1 -1
  494. package/dist/index.es668.js +125 -61
  495. package/dist/index.es668.js.map +1 -1
  496. package/dist/index.es669.js +3 -4
  497. package/dist/index.es669.js.map +1 -1
  498. package/dist/index.es670.js +2 -3
  499. package/dist/index.es670.js.map +1 -1
  500. package/dist/index.es671.js +4 -2
  501. package/dist/index.es671.js.map +1 -1
  502. package/package.json +1 -1
  503. package/dist/index.cjs483.js +0 -2
  504. package/dist/index.cjs483.js.map +0 -1
  505. package/dist/index.cjs487.js +0 -2
  506. package/dist/index.cjs487.js.map +0 -1
  507. package/dist/index.cjs515.js +0 -2
  508. package/dist/index.cjs515.js.map +0 -1
  509. package/dist/index.cjs516.js +0 -2
  510. package/dist/index.cjs516.js.map +0 -1
  511. package/dist/index.es483.js +0 -17
  512. package/dist/index.es483.js.map +0 -1
  513. package/dist/index.es487.js +0 -59
  514. package/dist/index.es487.js.map +0 -1
  515. package/dist/index.es515.js +0 -63
  516. package/dist/index.es515.js.map +0 -1
  517. package/dist/index.es516.js +0 -192
  518. package/dist/index.es516.js.map +0 -1
  519. /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.es41.js","sources":["../src/components/ui/VideoPlayer/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./VideoPlayer.scss\";\r\nimport { ArrowDown } from \"@/icons/ArrowDown\";\r\nimport { useState, useRef } from \"react\";\r\nimport { Col } from \"@/components\";\r\nimport { PlayVideo } from \"@/icons\";\r\n\r\nexport enum VIDEO_PLAYER_SIZE {\r\n SMALL = \"small\",\r\n MEDIUM = \"medium\",\r\n LARGE = \"large\",\r\n EXTRA_LARGE = \"extra-large\",\r\n VERTICAL = \"vertical\",\r\n FULL_WIDTH = \"full-width\",\r\n}\r\n\r\nconst sizeStyles = {\r\n [VIDEO_PLAYER_SIZE.SMALL]: {\r\n width: \"311px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.MEDIUM]: {\r\n width: \"388px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.LARGE]: {\r\n width: \"666px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.EXTRA_LARGE]: {\r\n width: \"992px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.FULL_WIDTH]: {\r\n width: \"100%\",\r\n },\r\n [VIDEO_PLAYER_SIZE.VERTICAL]: {\r\n width: \"360px\",\r\n },\r\n};\r\n\r\nconst imgSize = {\r\n [VIDEO_PLAYER_SIZE.SMALL]: {\r\n heightImg: \"170px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.MEDIUM]: {\r\n heightImg: \"183px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.LARGE]: {\r\n heightImg: \"371px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.EXTRA_LARGE]: {\r\n heightImg: \"400px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.VERTICAL]: {\r\n heightImg: \"640px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.FULL_WIDTH]: {\r\n heightImg: \"525px\",\r\n },\r\n};\r\n\r\ntype VideoPlayerProps = {\r\n btnText: string;\r\n sizeComp?: VIDEO_PLAYER_SIZE;\r\n previewImageSrc?: string;\r\n transcription: string;\r\n videoSrc: string;\r\n};\r\n\r\nexport const VideoPlayer = ({\r\n btnText = \"Trascrizione\",\r\n sizeComp = VIDEO_PLAYER_SIZE.LARGE,\r\n transcription,\r\n previewImageSrc,\r\n videoSrc,\r\n}: VideoPlayerProps) => {\r\n const [isPlaying, setIsPlaying] = useState(false);\r\n const [hasPlayedOnce, setHasPlayedOnce] = useState(false);\r\n const { width } = sizeStyles[sizeComp];\r\n const { heightImg } = imgSize[sizeComp];\r\n const [isExpanded, setExpanded] = useState(false);\r\n const videoRef = useRef<HTMLVideoElement>(null);\r\n\r\n const handlePlay = async (e?: React.MouseEvent) => {\r\n // Prevent event propagation to avoid conflicts with native video controls\r\n if (e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n \r\n const video = videoRef.current;\r\n \r\n if (!video) {\r\n console.error(\"no video element found\");\r\n return;\r\n }\r\n\r\n try {\r\n if (!hasPlayedOnce) {\r\n setHasPlayedOnce(true);\r\n setIsPlaying(true);\r\n await video.play();\r\n }\r\n } catch (error) {\r\n console.error(\"Error controlling video:\", error);\r\n }\r\n };\r\n\r\n return (\r\n <Col\r\n br={\"x4\"}\r\n style={{ width: width }}\r\n className={clsx(\r\n \"shadow\",\r\n isExpanded && \"ui-expanded\",\r\n \"video-section-container\",\r\n )}\r\n >\r\n <div\r\n className=\"video-player-container\"\r\n style={{ height: heightImg }}\r\n >\r\n <div\r\n className={clsx(\"start-video-container\", {\r\n \"fade-out\": isPlaying || hasPlayedOnce,\r\n })}\r\n style={{\r\n backgroundImage: (previewImageSrc && !hasPlayedOnce) ? `url(\"${previewImageSrc}\")` : \"none\",\r\n display: (hasPlayedOnce) ? \"none\" : \"block\",\r\n }}\r\n onClick={(e) => handlePlay(e)}\r\n >\r\n <div\r\n className={clsx(\"play-button-container\", { [\"hidden\"]: isPlaying })}\r\n >\r\n <div className=\"play-button-icon\">\r\n <PlayVideo />\r\n </div>\r\n <div className=\"play-button-text\">Riproduci</div>\r\n </div>\r\n </div>\r\n <div className=\"video-container\">\r\n <video\r\n ref={videoRef}\r\n controls\r\n src={videoSrc !== \"\" ? videoSrc : undefined}\r\n />\r\n </div>\r\n </div>\r\n\r\n {transcription && (\r\n <div className=\"transcription-container\">\r\n <div\r\n className={clsx(\r\n \"expand-button-container\",\r\n \"accordion\",\r\n \"base-row justify-content-between align-items-center px-x24 w-full flex-1\",\r\n )}\r\n >\r\n <button\r\n className={clsx(\r\n \"ui-btn-accordion-video\",\r\n \"base-row justify-content-between align-items-center\",\r\n )}\r\n type=\"button\"\r\n onClick={() => setExpanded(!isExpanded)}\r\n >\r\n <span\r\n className={clsx(\r\n \"fw-semibold text-primary base-col justify-content-center\",\r\n )}\r\n >\r\n {btnText}\r\n </span>\r\n <ArrowDown\r\n color={\"primary\"}\r\n className={clsx(\"ui-arrow\", { [\"expanded\"]: isExpanded })}\r\n />\r\n </button>\r\n </div>\r\n {isExpanded && (\r\n <div\r\n className={clsx(\r\n \"transcription-text-container\",\r\n \"pt-x8 px-x24 pb-x40 fs-6 fw-regular text-grey-black\",\r\n )}\r\n >\r\n <p>{transcription}</p>\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </Col>\r\n );\r\n};\r\n"],"names":["VIDEO_PLAYER_SIZE","sizeStyles","imgSize","VideoPlayer","btnText","sizeComp","transcription","previewImageSrc","videoSrc","isPlaying","setIsPlaying","useState","hasPlayedOnce","setHasPlayedOnce","width","heightImg","isExpanded","setExpanded","videoRef","useRef","handlePlay","e","video","error","jsxs","Col","clsx","jsx","PlayVideo","ArrowDown"],"mappings":";;;;;;;AAOY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,cAAc,eACdA,EAAA,WAAW,YACXA,EAAA,aAAa,cANHA,IAAAA,KAAA,CAAA,CAAA;AASZ,MAAMC,IAAa;AAAA,EAChB,OAA0B;AAAA,IACzB,OAAO;AAAA,EACT;AAAA,EACC,QAA2B;AAAA,IAC1B,OAAO;AAAA,EACT;AAAA,EACC,OAA0B;AAAA,IACzB,OAAO;AAAA,EACT;AAAA,EACC,eAAgC;AAAA,IAC/B,OAAO;AAAA,EACT;AAAA,EACC,cAA+B;AAAA,IAC9B,OAAO;AAAA,EACT;AAAA,EACC,UAA6B;AAAA,IAC5B,OAAO;AAAA,EAAA;AAEX,GAEMC,IAAU;AAAA,EACb,OAA0B;AAAA,IACzB,WAAW;AAAA,EACb;AAAA,EACC,QAA2B;AAAA,IAC1B,WAAW;AAAA,EACb;AAAA,EACC,OAA0B;AAAA,IACzB,WAAW;AAAA,EACb;AAAA,EACC,eAAgC;AAAA,IAC/B,WAAW;AAAA,EACb;AAAA,EACC,UAA6B;AAAA,IAC5B,WAAW;AAAA,EACb;AAAA,EACC,cAA+B;AAAA,IAC9B,WAAW;AAAA,EAAA;AAEf,GAUaC,IAAc,CAAC;AAAA,EAC1B,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,eAAAC;AAAA,EACA,iBA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,sBAACE;AAAA,sBAAA;AAAA,wBACC,OAAO;AAAA,wBACP,WAAWH,EAAK,YAAY,EAAG,UAAaV,EAAY,CAAA;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAC1D;AAAA,gBAAA;AAAA,cAAA;AAAA,YACF;AAAA,UACF;AAAA,UACCA,KACCW,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWD;AAAA,gBACT;AAAA,gBACA;AAAA,cACF;AAAA,cAEA,UAAAC,gBAAAA,EAAAA,IAAC,OAAG,UAAcrB,EAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACpB,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
1
+ {"version":3,"file":"index.es41.js","sources":["../src/components/ui/VideoPlayer/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./VideoPlayer.scss\";\r\nimport { ArrowDown } from \"@/icons/ArrowDown\";\r\nimport { useState, useRef } from \"react\";\r\nimport { Col } from \"@/components\";\r\nimport { PlayVideo } from \"@/icons\";\r\nimport { RichText } from \"@/sections/RichText\";\r\n\r\nexport enum VIDEO_PLAYER_SIZE {\r\n SMALL = \"small\",\r\n MEDIUM = \"medium\",\r\n LARGE = \"large\",\r\n EXTRA_LARGE = \"extra-large\",\r\n VERTICAL = \"vertical\",\r\n FULL_WIDTH = \"full-width\",\r\n}\r\n\r\nconst sizeStyles = {\r\n [VIDEO_PLAYER_SIZE.SMALL]: {\r\n width: \"311px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.MEDIUM]: {\r\n width: \"388px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.LARGE]: {\r\n width: \"666px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.EXTRA_LARGE]: {\r\n width: \"992px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.FULL_WIDTH]: {\r\n width: \"100%\",\r\n },\r\n [VIDEO_PLAYER_SIZE.VERTICAL]: {\r\n width: \"360px\",\r\n },\r\n};\r\n\r\nconst imgSize = {\r\n [VIDEO_PLAYER_SIZE.SMALL]: {\r\n heightImg: \"170px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.MEDIUM]: {\r\n heightImg: \"183px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.LARGE]: {\r\n heightImg: \"371px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.EXTRA_LARGE]: {\r\n heightImg: \"400px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.VERTICAL]: {\r\n heightImg: \"640px\",\r\n },\r\n [VIDEO_PLAYER_SIZE.FULL_WIDTH]: {\r\n heightImg: \"525px\",\r\n },\r\n};\r\n\r\ntype VideoPlayerProps = {\r\n btnText: string;\r\n sizeComp?: VIDEO_PLAYER_SIZE;\r\n previewImageSrc?: string;\r\n transcription?: string;\r\n videoSrc: string;\r\n};\r\n\r\nexport const VideoPlayer = ({\r\n btnText = \"Trascrizione\",\r\n sizeComp = VIDEO_PLAYER_SIZE.LARGE,\r\n transcription,\r\n previewImageSrc,\r\n videoSrc,\r\n}: VideoPlayerProps) => {\r\n const [isPlaying, setIsPlaying] = useState(false);\r\n const [hasPlayedOnce, setHasPlayedOnce] = useState(false);\r\n const { width } = sizeStyles[sizeComp];\r\n const { heightImg } = imgSize[sizeComp];\r\n const [isExpanded, setExpanded] = useState(false);\r\n const videoRef = useRef<HTMLVideoElement>(null);\r\n\r\n const handlePlay = async (e?: React.MouseEvent) => {\r\n // Prevent event propagation to avoid conflicts with native video controls\r\n if (e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n const video = videoRef.current;\r\n\r\n if (!video) {\r\n console.error(\"no video element found\");\r\n return;\r\n }\r\n\r\n try {\r\n if (!hasPlayedOnce) {\r\n setHasPlayedOnce(true);\r\n setIsPlaying(true);\r\n await video.play();\r\n }\r\n } catch (error) {\r\n console.error(\"Error controlling video:\", error);\r\n }\r\n };\r\n\r\n return (\r\n <Col\r\n br={\"x4\"}\r\n style={{ width: width }}\r\n className={clsx(\r\n \"shadow\",\r\n isExpanded && \"ui-expanded\",\r\n \"video-section-container\",\r\n )}\r\n >\r\n <div className=\"video-player-container\" style={{ height: heightImg }}>\r\n <div\r\n className={clsx(\"start-video-container\", {\r\n \"fade-out\": isPlaying || hasPlayedOnce,\r\n })}\r\n style={{\r\n backgroundImage:\r\n previewImageSrc && !hasPlayedOnce\r\n ? `url(\"${previewImageSrc}\")`\r\n : \"none\",\r\n display: hasPlayedOnce ? \"none\" : \"block\",\r\n }}\r\n onClick={(e) => handlePlay(e)}\r\n >\r\n <div\r\n className={clsx(\"play-button-container\", { [\"hidden\"]: isPlaying })}\r\n >\r\n <div className=\"play-button-icon\">\r\n <PlayVideo />\r\n </div>\r\n <div className=\"play-button-text\">Riproduci</div>\r\n </div>\r\n </div>\r\n <div className=\"video-container\">\r\n <video\r\n ref={videoRef}\r\n controls\r\n src={videoSrc !== \"\" ? videoSrc : undefined}\r\n />\r\n </div>\r\n </div>\r\n\r\n {transcription && (\r\n <div className=\"transcription-container\">\r\n <div\r\n className={clsx(\r\n \"expand-button-container\",\r\n \"accordion\",\r\n \"base-row justify-content-between align-items-center px-x24 w-full flex-1\",\r\n )}\r\n >\r\n <button\r\n className={clsx(\r\n \"ui-btn-accordion-video\",\r\n \"base-row justify-content-between align-items-center\",\r\n )}\r\n type=\"button\"\r\n onClick={() => setExpanded(!isExpanded)}\r\n >\r\n <span\r\n className={clsx(\r\n \"fw-semibold text-primary base-col justify-content-center\",\r\n )}\r\n >\r\n {btnText}\r\n </span>\r\n <ArrowDown\r\n color={\"primary\"}\r\n className={clsx(\"ui-arrow\", { [\"expanded\"]: isExpanded })}\r\n />\r\n </button>\r\n </div>\r\n {isExpanded && transcription && (\r\n <div\r\n className={clsx(\r\n \"transcription-text-container\",\r\n \"pt-x8 px-x24 pb-x40 fs-6 fw-regular text-grey-black\",\r\n )}\r\n >\r\n <RichText\r\n additionalClass=\"text-black text-charcoal-dust rich-text-element\"\r\n classNameTitle=\"heading-2-lg fw-extra-bold text-black text-charcoal-dust\"\r\n description={transcription}\r\n />\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </Col>\r\n );\r\n};\r\n"],"names":["VIDEO_PLAYER_SIZE","sizeStyles","imgSize","VideoPlayer","btnText","sizeComp","transcription","previewImageSrc","videoSrc","isPlaying","setIsPlaying","useState","hasPlayedOnce","setHasPlayedOnce","width","heightImg","isExpanded","setExpanded","videoRef","useRef","handlePlay","e","video","error","jsxs","Col","clsx","jsx","PlayVideo","ArrowDown","RichText"],"mappings":";;;;;;;;AAQY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,cAAc,eACdA,EAAA,WAAW,YACXA,EAAA,aAAa,cANHA,IAAAA,KAAA,CAAA,CAAA;AASZ,MAAMC,IAAa;AAAA,EAChB,OAA0B;AAAA,IACzB,OAAO;AAAA,EACT;AAAA,EACC,QAA2B;AAAA,IAC1B,OAAO;AAAA,EACT;AAAA,EACC,OAA0B;AAAA,IACzB,OAAO;AAAA,EACT;AAAA,EACC,eAAgC;AAAA,IAC/B,OAAO;AAAA,EACT;AAAA,EACC,cAA+B;AAAA,IAC9B,OAAO;AAAA,EACT;AAAA,EACC,UAA6B;AAAA,IAC5B,OAAO;AAAA,EAAA;AAEX,GAEMC,IAAU;AAAA,EACb,OAA0B;AAAA,IACzB,WAAW;AAAA,EACb;AAAA,EACC,QAA2B;AAAA,IAC1B,WAAW;AAAA,EACb;AAAA,EACC,OAA0B;AAAA,IACzB,WAAW;AAAA,EACb;AAAA,EACC,eAAgC;AAAA,IAC/B,WAAW;AAAA,EACb;AAAA,EACC,UAA6B;AAAA,IAC5B,WAAW;AAAA,EACb;AAAA,EACC,cAA+B;AAAA,IAC9B,WAAW;AAAA,EAAA;AAEf,GAUaC,IAAc,CAAC;AAAA,EAC1B,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,eAAAC;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AY,EAAG,UAAaV,EAAY,CAAA;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAC1D;AAAA,gBAAA;AAAA,cAAA;AAAA,YACF;AAAA,UACF;AAAA,UACCA,KAAcV,KACbqB,gBAAAA,EAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWD;AAAA,gBACT;AAAA,gBACA;AAAA,cACF;AAAA,cAEA,UAAAC,gBAAAA,EAAA;AAAA,gBAACG;AAAA,gBAAA;AAAA,kBACC,iBAAgB;AAAA,kBAChB,gBAAe;AAAA,kBACf,aAAaxB;AAAA,gBAAA;AAAA,cAAA;AAAA,YACf;AAAA,UAAA;AAAA,QACF,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import { __require as r } from "./index.es508.js";
1
+ import { __require as r } from "./index.es511.js";
2
2
  var i = r();
3
3
  export {
4
4
  i as d
@@ -1,5 +1,5 @@
1
- import { g as F } from "./index.es574.js";
2
- import { c as y } from "./index.es573.js";
1
+ import { g as F } from "./index.es571.js";
2
+ import { c as y } from "./index.es574.js";
3
3
  import { c as K, m as n, h as j } from "./index.es572.js";
4
4
  function Y(P) {
5
5
  let {
@@ -1,6 +1,6 @@
1
1
  import * as p from "react";
2
2
  import * as f from "react-dom";
3
- import { createSlot as c } from "./index.es487.js";
3
+ import { createSlot as c } from "./index.es481.js";
4
4
  import { j as u } from "./index.es246.js";
5
5
  var l = [
6
6
  "a",
@@ -4,18 +4,18 @@ import { createCollection as Xe } from "./index.es527.js";
4
4
  import { useComposedRefs as k, composeRefs as He } from "./index.es462.js";
5
5
  import { createContextScope as We } from "./index.es463.js";
6
6
  import { useDirection as ze } from "./index.es528.js";
7
- import { DismissableLayer as Ze } from "./index.es481.js";
8
- import { useFocusGuards as $e } from "./index.es484.js";
9
- import { FocusScope as qe } from "./index.es482.js";
7
+ import { DismissableLayer as Ze } from "./index.es475.js";
8
+ import { useFocusGuards as $e } from "./index.es478.js";
9
+ import { FocusScope as qe } from "./index.es476.js";
10
10
  import { createPopperScope as pe, Root as Je, Anchor as Qe, Content as et, Arrow as tt } from "./index.es529.js";
11
- import { Portal as nt } from "./index.es483.js";
12
- import { Presence as H } from "./index.es470.js";
11
+ import { Portal as nt } from "./index.es477.js";
12
+ import { Presence as H } from "./index.es473.js";
13
13
  import { Primitive as N, dispatchDiscreteCustomEvent as ot } from "./index.es465.js";
14
14
  import { createRovingFocusGroupScope as ve, Item as rt, Root as ct } from "./index.es530.js";
15
- import { createSlot as st } from "./index.es487.js";
15
+ import { createSlot as st } from "./index.es481.js";
16
16
  import { useCallbackRef as Me } from "./index.es526.js";
17
- import { hideOthers as at } from "./index.es486.js";
18
- import ut from "./index.es485.js";
17
+ import { hideOthers as at } from "./index.es480.js";
18
+ import ut from "./index.es479.js";
19
19
  import { j as u } from "./index.es246.js";
20
20
  var Q = ["Enter", " "], it = ["ArrowDown", "PageUp", "Home"], he = ["ArrowUp", "PageDown", "End"], lt = [...it, ...he], dt = {
21
21
  ltr: [...Q, "ArrowRight"],
@@ -1,9 +1,18 @@
1
- import * as u from "react";
2
- function t(r) {
3
- const e = u.useRef({ value: r, previous: r });
4
- return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
5
- }
1
+ import { useEffect as l } from "react";
2
+ const f = (t, n) => {
3
+ l(() => {
4
+ if (!n || !t.current) return;
5
+ const o = t.current.querySelectorAll(
6
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
+ ), c = o[0], r = o[o.length - 1], s = (e) => {
8
+ e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
+ }, u = document.activeElement;
10
+ return c.focus(), document.addEventListener("keydown", s), () => {
11
+ document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
+ };
13
+ }, [n, t]);
14
+ };
6
15
  export {
7
- t as usePrevious
16
+ f as useFocusTrap
8
17
  };
9
18
  //# sourceMappingURL=index.es468.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es468.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":";AAEA,SAASA,EAAYC,GAAO;AAC1B,QAAMC,IAAMC,EAAM,OAAO,EAAE,OAAAF,GAAO,UAAUA,GAAO;AACnD,SAAOE,EAAM,QAAQ,OACfD,EAAI,QAAQ,UAAUD,MACxBC,EAAI,QAAQ,WAAWA,EAAI,QAAQ,OACnCA,EAAI,QAAQ,QAAQD,IAEfC,EAAI,QAAQ,WAClB,CAACD,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es468.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
@@ -1,18 +1,9 @@
1
- import { useEffect as l } from "react";
2
- const f = (t, n) => {
3
- l(() => {
4
- if (!n || !t.current) return;
5
- const o = t.current.querySelectorAll(
6
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
- ), c = o[0], r = o[o.length - 1], s = (e) => {
8
- e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
- }, u = document.activeElement;
10
- return c.focus(), document.addEventListener("keydown", s), () => {
11
- document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
- };
13
- }, [n, t]);
14
- };
1
+ import * as u from "react";
2
+ function t(r) {
3
+ const e = u.useRef({ value: r, previous: r });
4
+ return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
5
+ }
15
6
  export {
16
- f as useFocusTrap
7
+ t as usePrevious
17
8
  };
18
9
  //# sourceMappingURL=index.es471.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es471.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
1
+ {"version":3,"file":"index.es471.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/use-previous.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":";AAEA,SAASA,EAAYC,GAAO;AAC1B,QAAMC,IAAMC,EAAM,OAAO,EAAE,OAAAF,GAAO,UAAUA,GAAO;AACnD,SAAOE,EAAM,QAAQ,OACfD,EAAI,QAAQ,UAAUD,MACxBC,EAAI,QAAQ,WAAWA,EAAI,QAAQ,OACnCA,EAAI,QAAQ,QAAQD,IAEfC,EAAI,QAAQ,WAClB,CAACD,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
@@ -25,4 +25,4 @@ function c(r) {
25
25
  export {
26
26
  c as useSize
27
27
  };
28
- //# sourceMappingURL=index.es469.js.map
28
+ //# sourceMappingURL=index.es472.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es469.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es472.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
@@ -69,4 +69,4 @@ function P(n) {
69
69
  export {
70
70
  R as Presence
71
71
  };
72
- //# sourceMappingURL=index.es470.js.map
72
+ //# sourceMappingURL=index.es473.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es470.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":";;;AASA,SAASA,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAQ,IAAKF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAW,CAAA,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgBL,EAAS,KAAKM,EAAcJ,CAAK,CAAC;AAE9D,SADmB,OAAOH,KAAa,cAClBC,EAAS,YAAYG,EAAO,aAAaD,GAAO,EAAE,KAAAE,EAAK,CAAA,IAAI;AAClF;AACAR,EAAS,cAAc;AACvB,SAASK,EAAYH,GAAS;AAC5B,QAAM,CAACS,GAAMC,CAAO,IAAIL,EAAO,SAAU,GACnCM,IAAYN,EAAO,OAAO,EAAE,GAC5BO,IAAiBP,EAAO,OAAOL,CAAO,GACtCa,IAAuBR,EAAO,OAAO,MAAM,GAC3CZ,IAAeO,IAAU,YAAY,aACrC,CAACJ,GAAOkB,CAAI,IAAItB,EAAgBC,GAAc;AAAA,IAClD,SAAS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IA,EAAM,WAAWY,MACnBI,EAAqB,UAAUG,EAAiBL,EAAU,OAAO;AAAA,MAEpE;AACD,aAAAF,EAAK,iBAAiB,kBAAkBiB,CAAoB,GAC5DjB,EAAK,iBAAiB,mBAAmBc,CAAkB,GAC3Dd,EAAK,iBAAiB,gBAAgBc,CAAkB,GACjD,MAAM;AACX,QAAAD,EAAY,aAAaD,CAAS,GAClCZ,EAAK,oBAAoB,kBAAkBiB,CAAoB,GAC/DjB,EAAK,oBAAoB,mBAAmBc,CAAkB,GAC9Dd,EAAK,oBAAoB,gBAAgBc,CAAkB;AAAA,MAC5D;AAAA,IACP;AACM,MAAAT,EAAK,eAAe;AAAA,EAE1B,GAAK,CAACL,GAAMK,CAAI,CAAC,GACR;AAAA,IACL,WAAW,CAAC,WAAW,kBAAkB,EAAE,SAASlB,CAAK;AAAA,IACzD,KAAKS,EAAO,YAAY,CAACsB,MAAU;AACjC,MAAIA,MAAOhB,EAAU,UAAU,iBAAiBgB,CAAK,IACrDjB,EAAQiB,CAAK;AAAA,IACnB,GAAO,CAAE,CAAA;AAAA,EACN;AACH;AACA,SAASX,EAAiBE,GAAQ;AAChC,UAAOA,KAAA,gBAAAA,EAAQ,kBAAiB;AAClC;AACA,SAASV,EAAcoB,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es473.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":";;;AASA,SAASA,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAQ,IAAKF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAW,CAAA,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgBL,EAAS,KAAKM,EAAcJ,CAAK,CAAC;AAE9D,SADmB,OAAOH,KAAa,cAClBC,EAAS,YAAYG,EAAO,aAAaD,GAAO,EAAE,KAAAE,EAAK,CAAA,IAAI;AAClF;AACAR,EAAS,cAAc;AACvB,SAASK,EAAYH,GAAS;AAC5B,QAAM,CAACS,GAAMC,CAAO,IAAIL,EAAO,SAAU,GACnCM,IAAYN,EAAO,OAAO,EAAE,GAC5BO,IAAiBP,EAAO,OAAOL,CAAO,GACtCa,IAAuBR,EAAO,OAAO,MAAM,GAC3CZ,IAAeO,IAAU,YAAY,aACrC,CAACJ,GAAOkB,CAAI,IAAItB,EAAgBC,GAAc;AAAA,IAClD,SAAS;AAAA,MACP,SAAS;AAAA,MACT,eAAe;AAAA,IAChB;AAAA,IACD,kBAAkB;AAAA,MAChB,OAAO;AAAA,MACP,eAAe;AAAA,IAChB;AAA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GAC5DjB,EAAK,iBAAiB,mBAAmBc,CAAkB,GAC3Dd,EAAK,iBAAiB,gBAAgBc,CAAkB,GACjD,MAAM;AACX,QAAAD,EAAY,aAAaD,CAAS,GAClCZ,EAAK,oBAAoB,kBAAkBiB,CAAoB,GAC/DjB,EAAK,oBAAoB,mBAAmBc,CAAkB,GAC9Dd,EAAK,oBAAoB,gBAAgBc,CAAkB;AAAA,MAC5D;AAAA,IACP;AACM,MAAAT,EAAK,eAAe;AAAA,EAE1B,GAAK,CAACL,GAAMK,CAAI,CAAC,GACR;AAAA,IACL,WAAW,CAAC,WAAW,kBAAkB,EAAE,SAASlB,CAAK;AAAA,IACzD,KAAKS,EAAO,YAAY,CAACsB,MAAU;AACjC,MAAIA,MAAOhB,EAAU,UAAU,iBAAiBgB,CAAK,IACrDjB,EAAQiB,CAAK;AAAA,IACnB,GAAO,CAAE,CAAA;AAAA,EACN;AACH;AACA,SAASX,EAAiBE,GAAQ;AAChC,UAAOA,KAAA,gBAAAA,EAAQ,kBAAiB;AAClC;AACA,SAASV,EAAcoB,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ import { useState as n, useCallback as i } from "react";
2
+ import "./index.es532.js";
3
+ function c() {
4
+ const [t, o] = n(null), e = i(async (r) => {
5
+ if (!(navigator != null && navigator.clipboard))
6
+ return console.warn("Clipboard not supported"), !1;
7
+ try {
8
+ return await navigator.clipboard.writeText(r), o(r), !0;
9
+ } catch (a) {
10
+ return console.warn("Copy failed", a), o(null), !1;
11
+ }
12
+ }, []);
13
+ return [t, e];
14
+ }
15
+ export {
16
+ c as useCopyToClipboard
17
+ };
18
+ //# sourceMappingURL=index.es474.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es474.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":";;AAgDA,SAASA,IAAqB;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,IAAI,GAC3CC,IAAOC,EAAY,OAAOC,MAAS;AACvC,QAAI,EAAE,aAAa,QAAgB,UAAU;AAC3C,qBAAQ,KAAK,yBAAyB,GAC/B;AAET,QAAI;AACF,mBAAM,UAAU,UAAU,UAAUA,CAAI,GACxCJ,EAAcI,CAAI,GACX;AAAA,IACR,SAAQC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACb;AAAA,EACG,GAAE,EAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,128 @@
1
+ import * as n from "react";
2
+ import { composeEventHandlers as m } from "./index.es461.js";
3
+ import { Primitive as R, dispatchDiscreteCustomEvent as k } from "./index.es465.js";
4
+ import { useComposedRefs as g } from "./index.es462.js";
5
+ import { useCallbackRef as w } from "./index.es526.js";
6
+ import { useEscapeKeydown as U } from "./index.es533.js";
7
+ import { j as x } from "./index.es246.js";
8
+ var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", L, T = n.createContext({
9
+ layers: /* @__PURE__ */ new Set(),
10
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
+ branches: /* @__PURE__ */ new Set()
12
+ }), M = n.forwardRef(
13
+ (r, e) => {
14
+ const {
15
+ disableOutsidePointerEvents: i = !1,
16
+ onEscapeKeyDown: o,
17
+ onPointerDownOutside: t,
18
+ onFocusOutside: a,
19
+ onInteractOutside: l,
20
+ onDismiss: d,
21
+ ...v
22
+ } = r, c = n.useContext(T), [u, S] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, F] = n.useState({}), W = g(e, (s) => S(s)), y = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = y.indexOf(A), b = u ? y.indexOf(u) : -1, I = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= N, _ = q((s) => {
23
+ const E = s.target, C = [...c.branches].some((h) => h.contains(E));
24
+ !P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
25
+ }, f), D = G((s) => {
26
+ const E = s.target;
27
+ [...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
28
+ }, f);
29
+ return U((s) => {
30
+ b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
31
+ }, f), n.useEffect(() => {
32
+ if (u)
33
+ return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (L = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), O(), () => {
34
+ i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = L);
35
+ };
36
+ }, [u, f, i, c]), n.useEffect(() => () => {
37
+ u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
38
+ }, [u, c]), n.useEffect(() => {
39
+ const s = () => F({});
40
+ return document.addEventListener(p, s), () => document.removeEventListener(p, s);
41
+ }, []), /* @__PURE__ */ x.jsx(
42
+ R.div,
43
+ {
44
+ ...v,
45
+ ref: W,
46
+ style: {
47
+ pointerEvents: I ? P ? "auto" : "none" : void 0,
48
+ ...r.style
49
+ },
50
+ onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
51
+ onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
52
+ onPointerDownCapture: m(
53
+ r.onPointerDownCapture,
54
+ _.onPointerDownCapture
55
+ )
56
+ }
57
+ );
58
+ }
59
+ );
60
+ M.displayName = j;
61
+ var X = "DismissableLayerBranch", Y = n.forwardRef((r, e) => {
62
+ const i = n.useContext(T), o = n.useRef(null), t = g(e, o);
63
+ return n.useEffect(() => {
64
+ const a = o.current;
65
+ if (a)
66
+ return i.branches.add(a), () => {
67
+ i.branches.delete(a);
68
+ };
69
+ }, [i.branches]), /* @__PURE__ */ x.jsx(R.div, { ...r, ref: t });
70
+ });
71
+ Y.displayName = X;
72
+ function q(r, e = globalThis == null ? void 0 : globalThis.document) {
73
+ const i = w(r), o = n.useRef(!1), t = n.useRef(() => {
74
+ });
75
+ return n.useEffect(() => {
76
+ const a = (d) => {
77
+ if (d.target && !o.current) {
78
+ let v = function() {
79
+ B(
80
+ z,
81
+ i,
82
+ c,
83
+ { discrete: !0 }
84
+ );
85
+ };
86
+ const c = { originalEvent: d };
87
+ d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
88
+ } else
89
+ e.removeEventListener("click", t.current);
90
+ o.current = !1;
91
+ }, l = window.setTimeout(() => {
92
+ e.addEventListener("pointerdown", a);
93
+ }, 0);
94
+ return () => {
95
+ window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
96
+ };
97
+ }, [e, i]), {
98
+ // ensures we check React component tree (not just DOM tree)
99
+ onPointerDownCapture: () => o.current = !0
100
+ };
101
+ }
102
+ function G(r, e = globalThis == null ? void 0 : globalThis.document) {
103
+ const i = w(r), o = n.useRef(!1);
104
+ return n.useEffect(() => {
105
+ const t = (a) => {
106
+ a.target && !o.current && B(H, i, { originalEvent: a }, {
107
+ discrete: !1
108
+ });
109
+ };
110
+ return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
111
+ }, [e, i]), {
112
+ onFocusCapture: () => o.current = !0,
113
+ onBlurCapture: () => o.current = !1
114
+ };
115
+ }
116
+ function O() {
117
+ const r = new CustomEvent(p);
118
+ document.dispatchEvent(r);
119
+ }
120
+ function B(r, e, i, { discrete: o }) {
121
+ const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
122
+ e && t.addEventListener(r, e, { once: !0 }), o ? k(t, a) : t.dispatchEvent(a);
123
+ }
124
+ export {
125
+ M as DismissableLayer,
126
+ Y as DismissableLayerBranch
127
+ };
128
+ //# sourceMappingURL=index.es475.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es475.js","sources":["../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":";;;;;;;AAUA,IAAIA,IAAyB,oBACzBC,IAAiB,2BACjBC,IAAuB,uCACvBC,IAAgB,iCAChBC,GACAC,IAA0BC,EAAM,cAAc;AAAA,EAChD,QAAwB,oBAAI,IAAK;AAAA,EACjC,wCAAwD,oBAAI,IAAK;AAAA,EACjE,UAA0B,oBAAI,IAAG;AACnC,CAAC,GACGC,I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c;AAC5C,WAAS,cAAcgC,CAAK;AAC9B;AACA,SAASqB,EAA6BM,GAAMC,GAASC,GAAQ,EAAE,UAAAC,EAAQ,GAAI;AACzE,QAAM7B,IAAS4B,EAAO,cAAc,QAC9B7B,IAAQ,IAAI,YAAY2B,GAAM,EAAE,SAAS,IAAO,YAAY,IAAM,QAAAE,GAAQ;AAChF,EAAID,KAAS3B,EAAO,iBAAiB0B,GAAMC,GAAS,EAAE,MAAM,IAAM,GAC9DE,IACFC,EAA4B9B,GAAQD,CAAK,IAEzCC,EAAO,cAAcD,CAAK;AAE9B;","x_google_ignoreList":[0]}
@@ -135,4 +135,4 @@ function V(e) {
135
135
  export {
136
136
  k as FocusScope
137
137
  };
138
- //# sourceMappingURL=index.es482.js.map
138
+ //# sourceMappingURL=index.es476.js.map