@anoki/fse-ui 2.2.0-4-SNAPSHOT1 → 2.2.0-4-SNAPSHOT2

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 (821) hide show
  1. package/dist/index.cjs153.js +1 -1
  2. package/dist/index.cjs153.js.map +1 -1
  3. package/dist/index.cjs234.js +1 -1
  4. package/dist/index.cjs242.js +1 -1
  5. package/dist/index.cjs253.js +1 -1
  6. package/dist/index.cjs254.js +1 -1
  7. package/dist/index.cjs255.js +1 -1
  8. package/dist/index.cjs256.js +1 -1
  9. package/dist/index.cjs271.js +1 -1
  10. package/dist/index.cjs282.js +1 -1
  11. package/dist/index.cjs284.js +1 -1
  12. package/dist/index.cjs285.js +1 -1
  13. package/dist/index.cjs296.js +1 -1
  14. package/dist/index.cjs301.js +1 -1
  15. package/dist/index.cjs304.js +1 -1
  16. package/dist/index.cjs329.js +1 -1
  17. package/dist/index.cjs378.js +1 -1
  18. package/dist/index.cjs387.js +1 -1
  19. package/dist/index.cjs406.js +1 -1
  20. package/dist/index.cjs407.js +1 -1
  21. package/dist/index.cjs430.js +1 -1
  22. package/dist/index.cjs435.js +1 -1
  23. package/dist/index.cjs445.js +1 -1
  24. package/dist/index.cjs446.js +1 -1
  25. package/dist/index.cjs447.js +1 -27
  26. package/dist/index.cjs447.js.map +1 -1
  27. package/dist/index.cjs448.js +2 -1
  28. package/dist/index.cjs448.js.map +1 -1
  29. package/dist/index.cjs449.js +27 -1
  30. package/dist/index.cjs449.js.map +1 -1
  31. package/dist/index.cjs45.js +1 -1
  32. package/dist/index.cjs450.js +1 -1
  33. package/dist/index.cjs451.js +1 -1
  34. package/dist/{index.cjs474.js → index.cjs452.js} +2 -2
  35. package/dist/{index.cjs474.js.map → index.cjs452.js.map} +1 -1
  36. package/dist/index.cjs453.js +1 -1
  37. package/dist/index.cjs453.js.map +1 -1
  38. package/dist/index.cjs454.js +1 -1
  39. package/dist/index.cjs454.js.map +1 -1
  40. package/dist/index.cjs455.js +1 -1
  41. package/dist/index.cjs455.js.map +1 -1
  42. package/dist/index.cjs456.js +1 -1
  43. package/dist/index.cjs456.js.map +1 -1
  44. package/dist/index.cjs457.js +1 -1
  45. package/dist/index.cjs457.js.map +1 -1
  46. package/dist/index.cjs458.js +1 -1
  47. package/dist/index.cjs458.js.map +1 -1
  48. package/dist/index.cjs459.js +1 -1
  49. package/dist/index.cjs459.js.map +1 -1
  50. package/dist/index.cjs46.js +1 -1
  51. package/dist/index.cjs460.js +1 -1
  52. package/dist/index.cjs460.js.map +1 -1
  53. package/dist/index.cjs462.js +1 -1
  54. package/dist/index.cjs462.js.map +1 -1
  55. package/dist/index.cjs463.js +1 -1
  56. package/dist/index.cjs463.js.map +1 -1
  57. package/dist/index.cjs464.js +1 -1
  58. package/dist/index.cjs464.js.map +1 -1
  59. package/dist/index.cjs465.js +1 -1
  60. package/dist/index.cjs465.js.map +1 -1
  61. package/dist/index.cjs466.js +1 -1
  62. package/dist/index.cjs466.js.map +1 -1
  63. package/dist/index.cjs467.js +2 -0
  64. package/dist/index.cjs467.js.map +1 -0
  65. package/dist/{index.cjs461.js → index.cjs468.js} +2 -2
  66. package/dist/{index.cjs461.js.map → index.cjs468.js.map} +1 -1
  67. package/dist/index.cjs469.js +2 -0
  68. package/dist/index.cjs469.js.map +1 -0
  69. package/dist/index.cjs476.js +1 -1
  70. package/dist/index.cjs476.js.map +1 -1
  71. package/dist/index.cjs477.js +1 -1
  72. package/dist/index.cjs477.js.map +1 -1
  73. package/dist/index.cjs478.js +1 -1
  74. package/dist/index.cjs478.js.map +1 -1
  75. package/dist/index.cjs479.js +1 -1
  76. package/dist/index.cjs479.js.map +1 -1
  77. package/dist/index.cjs480.js +1 -1
  78. package/dist/index.cjs480.js.map +1 -1
  79. package/dist/index.cjs481.js +1 -1
  80. package/dist/index.cjs481.js.map +1 -1
  81. package/dist/index.cjs482.js +1 -1
  82. package/dist/index.cjs482.js.map +1 -1
  83. package/dist/index.cjs483.js +1 -1
  84. package/dist/index.cjs483.js.map +1 -1
  85. package/dist/index.cjs487.js +1 -1
  86. package/dist/index.cjs487.js.map +1 -1
  87. package/dist/index.cjs488.js +2 -0
  88. package/dist/index.cjs488.js.map +1 -0
  89. package/dist/index.cjs491.js +1 -1
  90. package/dist/index.cjs491.js.map +1 -1
  91. package/dist/index.cjs492.js +1 -1
  92. package/dist/index.cjs492.js.map +1 -1
  93. package/dist/index.cjs493.js +1 -1
  94. package/dist/index.cjs493.js.map +1 -1
  95. package/dist/index.cjs494.js +1 -1
  96. package/dist/index.cjs494.js.map +1 -1
  97. package/dist/index.cjs495.js +1 -1
  98. package/dist/index.cjs495.js.map +1 -1
  99. package/dist/index.cjs496.js +1 -1
  100. package/dist/index.cjs496.js.map +1 -1
  101. package/dist/index.cjs499.js +1 -1
  102. package/dist/index.cjs499.js.map +1 -1
  103. package/dist/index.cjs504.js +1 -1
  104. package/dist/index.cjs504.js.map +1 -1
  105. package/dist/index.cjs505.js +1 -1
  106. package/dist/index.cjs505.js.map +1 -1
  107. package/dist/index.cjs506.js +1 -1
  108. package/dist/index.cjs506.js.map +1 -1
  109. package/dist/index.cjs507.js +1 -1
  110. package/dist/index.cjs507.js.map +1 -1
  111. package/dist/index.cjs508.js +1 -1
  112. package/dist/index.cjs508.js.map +1 -1
  113. package/dist/index.cjs509.js +1 -1
  114. package/dist/index.cjs509.js.map +1 -1
  115. package/dist/index.cjs510.js +1 -1
  116. package/dist/index.cjs510.js.map +1 -1
  117. package/dist/index.cjs511.js +1 -1
  118. package/dist/index.cjs511.js.map +1 -1
  119. package/dist/index.cjs512.js +1 -1
  120. package/dist/index.cjs512.js.map +1 -1
  121. package/dist/index.cjs513.js +1 -1
  122. package/dist/index.cjs513.js.map +1 -1
  123. package/dist/index.cjs514.js +1 -1
  124. package/dist/index.cjs514.js.map +1 -1
  125. package/dist/index.cjs515.js +1 -1
  126. package/dist/index.cjs515.js.map +1 -1
  127. package/dist/index.cjs516.js +1 -1
  128. package/dist/index.cjs516.js.map +1 -1
  129. package/dist/index.cjs517.js +1 -1
  130. package/dist/index.cjs517.js.map +1 -1
  131. package/dist/index.cjs518.js +1 -1
  132. package/dist/index.cjs518.js.map +1 -1
  133. package/dist/index.cjs519.js +1 -1
  134. package/dist/index.cjs519.js.map +1 -1
  135. package/dist/index.cjs520.js +1 -1
  136. package/dist/index.cjs520.js.map +1 -1
  137. package/dist/index.cjs521.js +1 -1
  138. package/dist/index.cjs521.js.map +1 -1
  139. package/dist/index.cjs522.js +1 -1
  140. package/dist/index.cjs522.js.map +1 -1
  141. package/dist/index.cjs523.js +1 -1
  142. package/dist/index.cjs523.js.map +1 -1
  143. package/dist/index.cjs524.js +1 -1
  144. package/dist/index.cjs524.js.map +1 -1
  145. package/dist/index.cjs525.js +1 -1
  146. package/dist/index.cjs525.js.map +1 -1
  147. package/dist/index.cjs526.js +1 -1
  148. package/dist/index.cjs526.js.map +1 -1
  149. package/dist/index.cjs527.js +1 -1
  150. package/dist/index.cjs527.js.map +1 -1
  151. package/dist/index.cjs528.js +1 -1
  152. package/dist/index.cjs528.js.map +1 -1
  153. package/dist/index.cjs529.js +1 -1
  154. package/dist/index.cjs529.js.map +1 -1
  155. package/dist/index.cjs530.js +1 -1
  156. package/dist/index.cjs530.js.map +1 -1
  157. package/dist/index.cjs531.js +1 -1
  158. package/dist/index.cjs531.js.map +1 -1
  159. package/dist/index.cjs532.js +1 -1
  160. package/dist/index.cjs532.js.map +1 -1
  161. package/dist/{index.cjs502.js → index.cjs533.js} +1 -1
  162. package/dist/index.cjs533.js.map +1 -0
  163. package/dist/{index.cjs503.js → index.cjs534.js} +1 -1
  164. package/dist/index.cjs534.js.map +1 -0
  165. package/dist/{index.cjs500.js → index.cjs535.js} +2 -2
  166. package/dist/index.cjs535.js.map +1 -0
  167. package/dist/{index.cjs501.js → index.cjs536.js} +2 -2
  168. package/dist/index.cjs536.js.map +1 -0
  169. package/dist/index.cjs537.js +1 -1
  170. package/dist/index.cjs537.js.map +1 -1
  171. package/dist/index.cjs538.js +1 -1
  172. package/dist/index.cjs538.js.map +1 -1
  173. package/dist/index.cjs539.js +1 -1
  174. package/dist/index.cjs539.js.map +1 -1
  175. package/dist/{index.cjs497.js → index.cjs540.js} +2 -2
  176. package/dist/index.cjs540.js.map +1 -0
  177. package/dist/{index.cjs498.js → index.cjs541.js} +2 -2
  178. package/dist/index.cjs541.js.map +1 -0
  179. package/dist/index.cjs542.js +2 -0
  180. package/dist/index.cjs542.js.map +1 -0
  181. package/dist/index.cjs543.js +1 -1
  182. package/dist/index.cjs543.js.map +1 -1
  183. package/dist/index.cjs544.js +1 -1
  184. package/dist/index.cjs544.js.map +1 -1
  185. package/dist/index.cjs553.js +1 -1
  186. package/dist/index.cjs553.js.map +1 -1
  187. package/dist/index.cjs554.js +1 -1
  188. package/dist/index.cjs554.js.map +1 -1
  189. package/dist/index.cjs555.js +1 -1
  190. package/dist/index.cjs555.js.map +1 -1
  191. package/dist/index.cjs556.js +1 -1
  192. package/dist/index.cjs556.js.map +1 -1
  193. package/dist/index.cjs557.js +1 -1
  194. package/dist/index.cjs557.js.map +1 -1
  195. package/dist/index.cjs558.js +1 -1
  196. package/dist/index.cjs558.js.map +1 -1
  197. package/dist/index.cjs559.js +1 -1
  198. package/dist/index.cjs559.js.map +1 -1
  199. package/dist/index.cjs560.js +1 -1
  200. package/dist/index.cjs560.js.map +1 -1
  201. package/dist/index.cjs561.js +1 -1
  202. package/dist/index.cjs561.js.map +1 -1
  203. package/dist/index.cjs562.js +1 -1
  204. package/dist/index.cjs562.js.map +1 -1
  205. package/dist/index.cjs563.js +1 -1
  206. package/dist/index.cjs563.js.map +1 -1
  207. package/dist/index.cjs564.js +1 -1
  208. package/dist/index.cjs564.js.map +1 -1
  209. package/dist/index.cjs565.js +1 -1
  210. package/dist/index.cjs565.js.map +1 -1
  211. package/dist/index.cjs566.js +1 -1
  212. package/dist/index.cjs566.js.map +1 -1
  213. package/dist/index.cjs567.js +1 -1
  214. package/dist/index.cjs567.js.map +1 -1
  215. package/dist/index.cjs568.js +1 -1
  216. package/dist/index.cjs568.js.map +1 -1
  217. package/dist/index.cjs569.js +1 -1
  218. package/dist/index.cjs569.js.map +1 -1
  219. package/dist/index.cjs570.js +1 -1
  220. package/dist/index.cjs570.js.map +1 -1
  221. package/dist/index.cjs589.js +1 -1
  222. package/dist/index.cjs589.js.map +1 -1
  223. package/dist/index.cjs590.js +1 -1
  224. package/dist/index.cjs590.js.map +1 -1
  225. package/dist/index.cjs591.js +1 -1
  226. package/dist/index.cjs591.js.map +1 -1
  227. package/dist/index.cjs595.js +1 -1
  228. package/dist/index.cjs596.js +1 -1
  229. package/dist/index.cjs596.js.map +1 -1
  230. package/dist/index.cjs597.js +1 -1
  231. package/dist/index.cjs597.js.map +1 -1
  232. package/dist/index.cjs598.js +1 -1
  233. package/dist/index.cjs598.js.map +1 -1
  234. package/dist/index.cjs599.js +1 -1
  235. package/dist/index.cjs599.js.map +1 -1
  236. package/dist/index.cjs600.js +1 -1
  237. package/dist/index.cjs601.js +1 -1
  238. package/dist/index.cjs601.js.map +1 -1
  239. package/dist/index.cjs602.js +1 -1
  240. package/dist/index.cjs602.js.map +1 -1
  241. package/dist/index.cjs603.js +1 -1
  242. package/dist/index.cjs603.js.map +1 -1
  243. package/dist/index.cjs604.js +1 -1
  244. package/dist/index.cjs604.js.map +1 -1
  245. package/dist/index.cjs605.js +1 -1
  246. package/dist/index.cjs605.js.map +1 -1
  247. package/dist/index.cjs606.js +2 -0
  248. package/dist/{index.cjs549.js.map → index.cjs606.js.map} +1 -1
  249. package/dist/{index.cjs550.js → index.cjs607.js} +2 -2
  250. package/dist/{index.cjs550.js.map → index.cjs607.js.map} +1 -1
  251. package/dist/{index.cjs551.js → index.cjs608.js} +1 -1
  252. package/dist/{index.cjs551.js.map → index.cjs608.js.map} +1 -1
  253. package/dist/{index.cjs552.js → index.cjs609.js} +2 -2
  254. package/dist/{index.cjs552.js.map → index.cjs609.js.map} +1 -1
  255. package/dist/index.cjs610.js +2 -0
  256. package/dist/index.cjs610.js.map +1 -0
  257. package/dist/index.cjs611.js +2 -0
  258. package/dist/index.cjs611.js.map +1 -0
  259. package/dist/index.cjs612.js +2 -0
  260. package/dist/index.cjs612.js.map +1 -0
  261. package/dist/index.cjs613.js +2 -0
  262. package/dist/index.cjs613.js.map +1 -0
  263. package/dist/index.cjs614.js +1 -1
  264. package/dist/index.cjs614.js.map +1 -1
  265. package/dist/index.cjs615.js +2 -0
  266. package/dist/index.cjs615.js.map +1 -0
  267. package/dist/index.cjs616.js +2 -0
  268. package/dist/index.cjs616.js.map +1 -0
  269. package/dist/index.cjs617.js +2 -0
  270. package/dist/index.cjs617.js.map +1 -0
  271. package/dist/index.cjs618.js +2 -0
  272. package/dist/index.cjs618.js.map +1 -0
  273. package/dist/index.cjs619.js +2 -0
  274. package/dist/index.cjs619.js.map +1 -0
  275. package/dist/index.cjs620.js +1 -1
  276. package/dist/index.cjs620.js.map +1 -1
  277. package/dist/index.cjs621.js +1 -1
  278. package/dist/index.cjs621.js.map +1 -1
  279. package/dist/index.cjs622.js +1 -1
  280. package/dist/index.cjs622.js.map +1 -1
  281. package/dist/index.cjs623.js +1 -1
  282. package/dist/index.cjs623.js.map +1 -1
  283. package/dist/index.cjs624.js +1 -4
  284. package/dist/index.cjs624.js.map +1 -1
  285. package/dist/index.cjs625.js +1 -1
  286. package/dist/index.cjs625.js.map +1 -1
  287. package/dist/index.cjs626.js +1 -5
  288. package/dist/index.cjs626.js.map +1 -1
  289. package/dist/index.cjs627.js +1 -1
  290. package/dist/index.cjs627.js.map +1 -1
  291. package/dist/index.cjs628.js +1 -1
  292. package/dist/index.cjs628.js.map +1 -1
  293. package/dist/index.cjs629.js +4 -1
  294. package/dist/index.cjs629.js.map +1 -1
  295. package/dist/index.cjs630.js +1 -1
  296. package/dist/index.cjs630.js.map +1 -1
  297. package/dist/index.cjs631.js +1 -1
  298. package/dist/index.cjs631.js.map +1 -1
  299. package/dist/index.cjs632.js +1 -1
  300. package/dist/index.cjs632.js.map +1 -1
  301. package/dist/index.cjs633.js +1 -1
  302. package/dist/index.cjs633.js.map +1 -1
  303. package/dist/index.cjs634.js +1 -1
  304. package/dist/index.cjs634.js.map +1 -1
  305. package/dist/index.cjs635.js +5 -1
  306. package/dist/index.cjs635.js.map +1 -1
  307. package/dist/index.cjs636.js +1 -1
  308. package/dist/index.cjs636.js.map +1 -1
  309. package/dist/index.cjs637.js +1 -1
  310. package/dist/index.cjs637.js.map +1 -1
  311. package/dist/index.cjs638.js +1 -1
  312. package/dist/index.cjs638.js.map +1 -1
  313. package/dist/index.cjs639.js +2 -0
  314. package/dist/index.cjs639.js.map +1 -0
  315. package/dist/index.cjs640.js +1 -1
  316. package/dist/index.cjs640.js.map +1 -1
  317. package/dist/index.cjs641.js +1 -1
  318. package/dist/index.cjs641.js.map +1 -1
  319. package/dist/index.cjs642.js +1 -1
  320. package/dist/index.cjs642.js.map +1 -1
  321. package/dist/index.cjs643.js +1 -38
  322. package/dist/index.cjs643.js.map +1 -1
  323. package/dist/index.cjs644.js +1 -1
  324. package/dist/index.cjs644.js.map +1 -1
  325. package/dist/index.cjs645.js +1 -1
  326. package/dist/index.cjs645.js.map +1 -1
  327. package/dist/index.cjs646.js +1 -1
  328. package/dist/index.cjs646.js.map +1 -1
  329. package/dist/index.cjs647.js +1 -1
  330. package/dist/index.cjs647.js.map +1 -1
  331. package/dist/index.cjs648.js +38 -1
  332. package/dist/index.cjs648.js.map +1 -1
  333. package/dist/index.cjs649.js +1 -1
  334. package/dist/index.cjs649.js.map +1 -1
  335. package/dist/index.cjs650.js +1 -1
  336. package/dist/index.cjs650.js.map +1 -1
  337. package/dist/index.cjs651.js +1 -1
  338. package/dist/index.cjs651.js.map +1 -1
  339. package/dist/index.cjs652.js +1 -1
  340. package/dist/index.cjs652.js.map +1 -1
  341. package/dist/index.cjs653.js +1 -1
  342. package/dist/index.cjs653.js.map +1 -1
  343. package/dist/index.cjs654.js +1 -1
  344. package/dist/index.cjs654.js.map +1 -1
  345. package/dist/index.cjs655.js +1 -1
  346. package/dist/index.cjs655.js.map +1 -1
  347. package/dist/index.cjs656.js +1 -1
  348. package/dist/index.cjs656.js.map +1 -1
  349. package/dist/index.cjs657.js +1 -1
  350. package/dist/index.cjs657.js.map +1 -1
  351. package/dist/index.cjs658.js +1 -1
  352. package/dist/index.cjs658.js.map +1 -1
  353. package/dist/index.cjs659.js +1 -1
  354. package/dist/index.cjs659.js.map +1 -1
  355. package/dist/index.cjs660.js +1 -1
  356. package/dist/index.cjs660.js.map +1 -1
  357. package/dist/index.cjs661.js +1 -1
  358. package/dist/index.cjs661.js.map +1 -1
  359. package/dist/index.cjs662.js +1 -1
  360. package/dist/index.cjs662.js.map +1 -1
  361. package/dist/index.cjs663.js +1 -1
  362. package/dist/index.cjs663.js.map +1 -1
  363. package/dist/index.cjs664.js +1 -1
  364. package/dist/index.cjs664.js.map +1 -1
  365. package/dist/index.d.ts +3 -3
  366. package/dist/index.es153.js +11 -11
  367. package/dist/index.es153.js.map +1 -1
  368. package/dist/index.es234.js +1 -1
  369. package/dist/index.es242.js +2 -2
  370. package/dist/index.es253.js +2 -2
  371. package/dist/index.es254.js +3 -3
  372. package/dist/index.es255.js +3 -3
  373. package/dist/index.es256.js +3 -3
  374. package/dist/index.es271.js +1 -1
  375. package/dist/index.es282.js +1 -1
  376. package/dist/index.es284.js +1 -1
  377. package/dist/index.es285.js +1 -1
  378. package/dist/index.es296.js +4 -4
  379. package/dist/index.es301.js +1 -1
  380. package/dist/index.es304.js +14 -14
  381. package/dist/index.es329.js +8 -8
  382. package/dist/index.es378.js +7 -7
  383. package/dist/index.es387.js +1 -1
  384. package/dist/index.es406.js +6 -6
  385. package/dist/index.es407.js +2 -2
  386. package/dist/index.es430.js +7 -7
  387. package/dist/index.es435.js +8 -8
  388. package/dist/index.es445.js +1 -1
  389. package/dist/index.es446.js +1 -1
  390. package/dist/index.es447.js +5 -3674
  391. package/dist/index.es447.js.map +1 -1
  392. package/dist/index.es448.js +553 -5
  393. package/dist/index.es448.js.map +1 -1
  394. package/dist/index.es449.js +3675 -2
  395. package/dist/index.es449.js.map +1 -1
  396. package/dist/index.es45.js +1 -1
  397. package/dist/index.es450.js +6 -2
  398. package/dist/index.es450.js.map +1 -1
  399. package/dist/index.es451.js +2 -2
  400. package/dist/{index.es474.js → index.es452.js} +3 -3
  401. package/dist/{index.es474.js.map → index.es452.js.map} +1 -1
  402. package/dist/index.es453.js +58 -5
  403. package/dist/index.es453.js.map +1 -1
  404. package/dist/index.es454.js +188 -25
  405. package/dist/index.es454.js.map +1 -1
  406. package/dist/index.es455.js +2 -68
  407. package/dist/index.es455.js.map +1 -1
  408. package/dist/index.es456.js +2 -11
  409. package/dist/index.es456.js.map +1 -1
  410. package/dist/index.es457.js +130 -49
  411. package/dist/index.es457.js.map +1 -1
  412. package/dist/index.es458.js +177 -118
  413. package/dist/index.es458.js.map +1 -1
  414. package/dist/index.es459.js +8 -133
  415. package/dist/index.es459.js.map +1 -1
  416. package/dist/index.es46.js +1 -1
  417. package/dist/index.es460.js +4 -14
  418. package/dist/index.es460.js.map +1 -1
  419. package/dist/index.es462.js +26 -33
  420. package/dist/index.es462.js.map +1 -1
  421. package/dist/index.es463.js +65 -12
  422. package/dist/index.es463.js.map +1 -1
  423. package/dist/index.es464.js +7 -9
  424. package/dist/index.es464.js.map +1 -1
  425. package/dist/index.es465.js +52 -50
  426. package/dist/index.es465.js.map +1 -1
  427. package/dist/index.es466.js +5 -56
  428. package/dist/index.es466.js.map +1 -1
  429. package/dist/index.es467.js +28 -0
  430. package/dist/index.es467.js.map +1 -0
  431. package/dist/{index.es461.js → index.es468.js} +3 -3
  432. package/dist/{index.es461.js.map → index.es468.js.map} +1 -1
  433. package/dist/index.es469.js +37 -0
  434. package/dist/index.es469.js.map +1 -0
  435. package/dist/index.es476.js +54 -187
  436. package/dist/index.es476.js.map +1 -1
  437. package/dist/index.es477.js +10 -20
  438. package/dist/index.es477.js.map +1 -1
  439. package/dist/index.es478.js +125 -2
  440. package/dist/index.es478.js.map +1 -1
  441. package/dist/index.es479.js +134 -53
  442. package/dist/index.es479.js.map +1 -1
  443. package/dist/index.es480.js +14 -203
  444. package/dist/index.es480.js.map +1 -1
  445. package/dist/index.es481.js +14 -73
  446. package/dist/index.es481.js.map +1 -1
  447. package/dist/index.es482.js +9 -2
  448. package/dist/index.es482.js.map +1 -1
  449. package/dist/index.es483.js +50 -15
  450. package/dist/index.es483.js.map +1 -1
  451. package/dist/index.es487.js +15 -15
  452. package/dist/index.es487.js.map +1 -1
  453. package/dist/index.es488.js +18 -0
  454. package/dist/index.es488.js.map +1 -0
  455. package/dist/index.es491.js +20 -183
  456. package/dist/index.es491.js.map +1 -1
  457. package/dist/index.es492.js +2 -10
  458. package/dist/index.es492.js.map +1 -1
  459. package/dist/index.es493.js +53 -3
  460. package/dist/index.es493.js.map +1 -1
  461. package/dist/index.es494.js +203 -2
  462. package/dist/index.es494.js.map +1 -1
  463. package/dist/index.es495.js +73 -5
  464. package/dist/index.es495.js.map +1 -1
  465. package/dist/index.es496.js +2 -14
  466. package/dist/index.es496.js.map +1 -1
  467. package/dist/index.es499.js +4 -6
  468. package/dist/index.es499.js.map +1 -1
  469. package/dist/index.es504.js +4 -5
  470. package/dist/index.es504.js.map +1 -1
  471. package/dist/index.es505.js +34 -6
  472. package/dist/index.es505.js.map +1 -1
  473. package/dist/index.es506.js +10 -5
  474. package/dist/index.es506.js.map +1 -1
  475. package/dist/index.es507.js +11 -5
  476. package/dist/index.es507.js.map +1 -1
  477. package/dist/index.es508.js +2 -6
  478. package/dist/index.es508.js.map +1 -1
  479. package/dist/index.es509.js +3 -3
  480. package/dist/index.es509.js.map +1 -1
  481. package/dist/index.es510.js +12 -4
  482. package/dist/index.es510.js.map +1 -1
  483. package/dist/index.es511.js +3 -3
  484. package/dist/index.es511.js.map +1 -1
  485. package/dist/index.es512.js +4 -8
  486. package/dist/index.es512.js.map +1 -1
  487. package/dist/index.es513.js +3 -3
  488. package/dist/index.es513.js.map +1 -1
  489. package/dist/index.es514.js +1 -1
  490. package/dist/index.es514.js.map +1 -1
  491. package/dist/index.es515.js +3 -3
  492. package/dist/index.es515.js.map +1 -1
  493. package/dist/index.es516.js +3 -3
  494. package/dist/index.es516.js.map +1 -1
  495. package/dist/index.es517.js +3 -3
  496. package/dist/index.es517.js.map +1 -1
  497. package/dist/index.es518.js +3 -8
  498. package/dist/index.es518.js.map +1 -1
  499. package/dist/index.es519.js +3 -3
  500. package/dist/index.es519.js.map +1 -1
  501. package/dist/index.es520.js +1 -1
  502. package/dist/index.es520.js.map +1 -1
  503. package/dist/index.es521.js +3 -3
  504. package/dist/index.es521.js.map +1 -1
  505. package/dist/index.es522.js +3 -3
  506. package/dist/index.es522.js.map +1 -1
  507. package/dist/index.es523.js +3 -3
  508. package/dist/index.es523.js.map +1 -1
  509. package/dist/index.es524.js +3 -3
  510. package/dist/index.es524.js.map +1 -1
  511. package/dist/index.es525.js +5 -11
  512. package/dist/index.es525.js.map +1 -1
  513. package/dist/index.es526.js +8 -4
  514. package/dist/index.es526.js.map +1 -1
  515. package/dist/index.es527.js +1 -1
  516. package/dist/index.es527.js.map +1 -1
  517. package/dist/index.es528.js +5 -8
  518. package/dist/index.es528.js.map +1 -1
  519. package/dist/index.es529.js +4 -15
  520. package/dist/index.es529.js.map +1 -1
  521. package/dist/index.es530.js +6 -2
  522. package/dist/index.es530.js.map +1 -1
  523. package/dist/index.es531.js +5 -5
  524. package/dist/index.es531.js.map +1 -1
  525. package/dist/index.es532.js +10 -24
  526. package/dist/index.es532.js.map +1 -1
  527. package/dist/{index.es502.js → index.es533.js} +3 -3
  528. package/dist/index.es533.js.map +1 -0
  529. package/dist/{index.es503.js → index.es534.js} +3 -3
  530. package/dist/index.es534.js.map +1 -0
  531. package/dist/{index.es498.js → index.es535.js} +2 -2
  532. package/dist/index.es535.js.map +1 -0
  533. package/dist/{index.es501.js → index.es536.js} +2 -2
  534. package/dist/index.es536.js.map +1 -0
  535. package/dist/index.es537.js +5 -24
  536. package/dist/index.es537.js.map +1 -1
  537. package/dist/index.es538.js +6 -29
  538. package/dist/index.es538.js.map +1 -1
  539. package/dist/index.es539.js +12 -5
  540. package/dist/index.es539.js.map +1 -1
  541. package/dist/index.es540.js +9 -0
  542. package/dist/index.es540.js.map +1 -0
  543. package/dist/index.es541.js +9 -0
  544. package/dist/index.es541.js.map +1 -0
  545. package/dist/index.es542.js +12 -0
  546. package/dist/index.es542.js.map +1 -0
  547. package/dist/index.es543.js +17 -5
  548. package/dist/index.es543.js.map +1 -1
  549. package/dist/index.es544.js +2 -16
  550. package/dist/index.es544.js.map +1 -1
  551. package/dist/index.es553.js +622 -32
  552. package/dist/index.es553.js.map +1 -1
  553. package/dist/index.es554.js +2 -242
  554. package/dist/index.es554.js.map +1 -1
  555. package/dist/index.es555.js +2 -4
  556. package/dist/index.es555.js.map +1 -1
  557. package/dist/index.es556.js +2 -5
  558. package/dist/index.es556.js.map +1 -1
  559. package/dist/index.es557.js +2 -10
  560. package/dist/index.es557.js.map +1 -1
  561. package/dist/index.es558.js +2 -56
  562. package/dist/index.es558.js.map +1 -1
  563. package/dist/index.es559.js +2 -8
  564. package/dist/index.es559.js.map +1 -1
  565. package/dist/index.es560.js +2 -6
  566. package/dist/index.es560.js.map +1 -1
  567. package/dist/index.es561.js +2 -532
  568. package/dist/index.es561.js.map +1 -1
  569. package/dist/index.es562.js +2 -14
  570. package/dist/index.es562.js.map +1 -1
  571. package/dist/index.es563.js +2 -2
  572. package/dist/index.es563.js.map +1 -1
  573. package/dist/index.es564.js +2 -37
  574. package/dist/index.es564.js.map +1 -1
  575. package/dist/index.es565.js +2 -2
  576. package/dist/index.es565.js.map +1 -1
  577. package/dist/index.es566.js +2 -272
  578. package/dist/index.es566.js.map +1 -1
  579. package/dist/index.es567.js +2 -14
  580. package/dist/index.es567.js.map +1 -1
  581. package/dist/index.es568.js +2 -3
  582. package/dist/index.es568.js.map +1 -1
  583. package/dist/index.es569.js +2 -30
  584. package/dist/index.es569.js.map +1 -1
  585. package/dist/index.es570.js +2 -34
  586. package/dist/index.es570.js.map +1 -1
  587. package/dist/index.es571.js +2 -2
  588. package/dist/index.es572.js +2 -2
  589. package/dist/index.es573.js +2 -2
  590. package/dist/index.es574.js +2 -2
  591. package/dist/index.es575.js +2 -2
  592. package/dist/index.es576.js +2 -2
  593. package/dist/index.es577.js +2 -2
  594. package/dist/index.es578.js +2 -2
  595. package/dist/index.es579.js +2 -2
  596. package/dist/index.es581.js +2 -2
  597. package/dist/index.es582.js +2 -2
  598. package/dist/index.es583.js +2 -2
  599. package/dist/index.es584.js +2 -2
  600. package/dist/index.es585.js +2 -2
  601. package/dist/index.es588.js +2 -2
  602. package/dist/index.es589.js +25 -2
  603. package/dist/index.es589.js.map +1 -1
  604. package/dist/index.es590.js +29 -2
  605. package/dist/index.es590.js.map +1 -1
  606. package/dist/index.es591.js +5 -2
  607. package/dist/index.es591.js.map +1 -1
  608. package/dist/index.es595.js +2 -4
  609. package/dist/index.es595.js.map +1 -1
  610. package/dist/index.es596.js +46 -2
  611. package/dist/index.es596.js.map +1 -1
  612. package/dist/index.es597.js +14 -2
  613. package/dist/index.es597.js.map +1 -1
  614. package/dist/index.es598.js +219 -2
  615. package/dist/index.es598.js.map +1 -1
  616. package/dist/index.es599.js +181 -2
  617. package/dist/index.es599.js.map +1 -1
  618. package/dist/index.es600.js +5 -2
  619. package/dist/index.es600.js.map +1 -1
  620. package/dist/index.es601.js +16 -2
  621. package/dist/index.es601.js.map +1 -1
  622. package/dist/index.es602.js +13 -2
  623. package/dist/index.es602.js.map +1 -1
  624. package/dist/index.es603.js +36 -2
  625. package/dist/index.es603.js.map +1 -1
  626. package/dist/index.es604.js +5 -2
  627. package/dist/index.es604.js.map +1 -1
  628. package/dist/index.es605.js +2 -2
  629. package/dist/index.es605.js.map +1 -1
  630. package/dist/index.es606.js +6 -0
  631. package/dist/{index.es549.js.map → index.es606.js.map} +1 -1
  632. package/dist/{index.es550.js → index.es607.js} +3 -3
  633. package/dist/{index.es550.js.map → index.es607.js.map} +1 -1
  634. package/dist/{index.es551.js → index.es608.js} +1 -1
  635. package/dist/{index.es551.js.map → index.es608.js.map} +1 -1
  636. package/dist/{index.es552.js → index.es609.js} +4 -4
  637. package/dist/{index.es552.js.map → index.es609.js.map} +1 -1
  638. package/dist/index.es610.js +35 -0
  639. package/dist/index.es610.js.map +1 -0
  640. package/dist/index.es611.js +245 -0
  641. package/dist/index.es611.js.map +1 -0
  642. package/dist/index.es612.js +7 -0
  643. package/dist/index.es612.js.map +1 -0
  644. package/dist/index.es613.js +8 -0
  645. package/dist/index.es613.js.map +1 -0
  646. package/dist/index.es614.js +9 -4
  647. package/dist/index.es614.js.map +1 -1
  648. package/dist/index.es615.js +59 -0
  649. package/dist/index.es615.js.map +1 -0
  650. package/dist/index.es616.js +11 -0
  651. package/dist/index.es616.js.map +1 -0
  652. package/dist/index.es617.js +9 -0
  653. package/dist/index.es617.js.map +1 -0
  654. package/dist/index.es618.js +535 -0
  655. package/dist/index.es618.js.map +1 -0
  656. package/dist/index.es619.js +17 -0
  657. package/dist/index.es619.js.map +1 -0
  658. package/dist/index.es620.js +2 -622
  659. package/dist/index.es620.js.map +1 -1
  660. package/dist/index.es621.js +37 -5
  661. package/dist/index.es621.js.map +1 -1
  662. package/dist/index.es622.js +2 -3
  663. package/dist/index.es622.js.map +1 -1
  664. package/dist/index.es623.js +270 -22
  665. package/dist/index.es623.js.map +1 -1
  666. package/dist/index.es624.js +3 -110
  667. package/dist/index.es624.js.map +1 -1
  668. package/dist/index.es625.js +30 -16
  669. package/dist/index.es625.js.map +1 -1
  670. package/dist/index.es626.js +5 -40
  671. package/dist/index.es626.js.map +1 -1
  672. package/dist/index.es627.js +3 -2
  673. package/dist/index.es627.js.map +1 -1
  674. package/dist/index.es628.js +23 -4
  675. package/dist/index.es628.js.map +1 -1
  676. package/dist/index.es629.js +110 -6
  677. package/dist/index.es629.js.map +1 -1
  678. package/dist/index.es630.js +15 -15
  679. package/dist/index.es630.js.map +1 -1
  680. package/dist/index.es631.js +83 -2
  681. package/dist/index.es631.js.map +1 -1
  682. package/dist/index.es632.js +206 -2
  683. package/dist/index.es632.js.map +1 -1
  684. package/dist/index.es633.js +22 -2
  685. package/dist/index.es633.js.map +1 -1
  686. package/dist/index.es634.js +400 -2
  687. package/dist/index.es634.js.map +1 -1
  688. package/dist/index.es635.js +40 -2
  689. package/dist/index.es635.js.map +1 -1
  690. package/dist/index.es636.js +2 -3
  691. package/dist/index.es636.js.map +1 -1
  692. package/dist/index.es637.js +5 -2
  693. package/dist/index.es637.js.map +1 -1
  694. package/dist/index.es638.js +2 -4
  695. package/dist/index.es638.js.map +1 -1
  696. package/dist/index.es639.js +5 -0
  697. package/dist/index.es639.js.map +1 -0
  698. package/dist/index.es640.js +2 -46
  699. package/dist/index.es640.js.map +1 -1
  700. package/dist/index.es641.js +6 -219
  701. package/dist/index.es641.js.map +1 -1
  702. package/dist/index.es642.js +14 -179
  703. package/dist/index.es642.js.map +1 -1
  704. package/dist/index.es643.js +2 -69
  705. package/dist/index.es643.js.map +1 -1
  706. package/dist/index.es644.js +2 -9
  707. package/dist/index.es644.js.map +1 -1
  708. package/dist/index.es645.js +3 -14
  709. package/dist/index.es645.js.map +1 -1
  710. package/dist/index.es646.js +2 -66
  711. package/dist/index.es646.js.map +1 -1
  712. package/dist/index.es647.js +3 -64
  713. package/dist/index.es647.js.map +1 -1
  714. package/dist/index.es648.js +71 -2
  715. package/dist/index.es648.js.map +1 -1
  716. package/dist/index.es649.js +9 -3
  717. package/dist/index.es649.js.map +1 -1
  718. package/dist/index.es650.js +14 -2
  719. package/dist/index.es650.js.map +1 -1
  720. package/dist/index.es651.js +66 -4
  721. package/dist/index.es651.js.map +1 -1
  722. package/dist/index.es652.js +64 -21
  723. package/dist/index.es652.js.map +1 -1
  724. package/dist/index.es653.js +3 -205
  725. package/dist/index.es653.js.map +1 -1
  726. package/dist/index.es654.js +3 -400
  727. package/dist/index.es654.js.map +1 -1
  728. package/dist/index.es655.js +2 -4
  729. package/dist/index.es655.js.map +1 -1
  730. package/dist/index.es656.js +3 -22
  731. package/dist/index.es656.js.map +1 -1
  732. package/dist/index.es657.js +21 -81
  733. package/dist/index.es657.js.map +1 -1
  734. package/dist/index.es658.js +522 -10
  735. package/dist/index.es658.js.map +1 -1
  736. package/dist/index.es659.js +123 -23
  737. package/dist/index.es659.js.map +1 -1
  738. package/dist/index.es660.js +134 -5
  739. package/dist/index.es660.js.map +1 -1
  740. package/dist/index.es661.js +11 -21
  741. package/dist/index.es661.js.map +1 -1
  742. package/dist/index.es662.js +22 -519
  743. package/dist/index.es662.js.map +1 -1
  744. package/dist/index.es663.js +4 -127
  745. package/dist/index.es663.js.map +1 -1
  746. package/dist/index.es664.js +22 -133
  747. package/dist/index.es664.js.map +1 -1
  748. package/package.json +1 -1
  749. package/dist/index.cjs472.js +0 -2
  750. package/dist/index.cjs472.js.map +0 -1
  751. package/dist/index.cjs473.js +0 -3
  752. package/dist/index.cjs473.js.map +0 -1
  753. package/dist/index.cjs475.js +0 -2
  754. package/dist/index.cjs475.js.map +0 -1
  755. package/dist/index.cjs484.js +0 -2
  756. package/dist/index.cjs484.js.map +0 -1
  757. package/dist/index.cjs485.js +0 -2
  758. package/dist/index.cjs485.js.map +0 -1
  759. package/dist/index.cjs486.js +0 -2
  760. package/dist/index.cjs486.js.map +0 -1
  761. package/dist/index.cjs490.js +0 -2
  762. package/dist/index.cjs490.js.map +0 -1
  763. package/dist/index.cjs497.js.map +0 -1
  764. package/dist/index.cjs498.js.map +0 -1
  765. package/dist/index.cjs500.js.map +0 -1
  766. package/dist/index.cjs501.js.map +0 -1
  767. package/dist/index.cjs502.js.map +0 -1
  768. package/dist/index.cjs503.js.map +0 -1
  769. package/dist/index.cjs545.js +0 -2
  770. package/dist/index.cjs545.js.map +0 -1
  771. package/dist/index.cjs546.js +0 -2
  772. package/dist/index.cjs546.js.map +0 -1
  773. package/dist/index.cjs547.js +0 -2
  774. package/dist/index.cjs547.js.map +0 -1
  775. package/dist/index.cjs548.js +0 -2
  776. package/dist/index.cjs548.js.map +0 -1
  777. package/dist/index.cjs549.js +0 -2
  778. package/dist/index.cjs592.js +0 -2
  779. package/dist/index.cjs592.js.map +0 -1
  780. package/dist/index.cjs593.js +0 -2
  781. package/dist/index.cjs593.js.map +0 -1
  782. package/dist/index.cjs594.js +0 -2
  783. package/dist/index.cjs594.js.map +0 -1
  784. package/dist/index.es472.js +0 -9
  785. package/dist/index.es472.js.map +0 -1
  786. package/dist/index.es473.js +0 -557
  787. package/dist/index.es473.js.map +0 -1
  788. package/dist/index.es475.js +0 -63
  789. package/dist/index.es475.js.map +0 -1
  790. package/dist/index.es484.js +0 -7
  791. package/dist/index.es484.js.map +0 -1
  792. package/dist/index.es485.js +0 -14
  793. package/dist/index.es485.js.map +0 -1
  794. package/dist/index.es486.js +0 -15
  795. package/dist/index.es486.js.map +0 -1
  796. package/dist/index.es490.js +0 -136
  797. package/dist/index.es490.js.map +0 -1
  798. package/dist/index.es497.js +0 -9
  799. package/dist/index.es497.js.map +0 -1
  800. package/dist/index.es498.js.map +0 -1
  801. package/dist/index.es500.js +0 -9
  802. package/dist/index.es500.js.map +0 -1
  803. package/dist/index.es501.js.map +0 -1
  804. package/dist/index.es502.js.map +0 -1
  805. package/dist/index.es503.js.map +0 -1
  806. package/dist/index.es545.js +0 -16
  807. package/dist/index.es545.js.map +0 -1
  808. package/dist/index.es546.js +0 -39
  809. package/dist/index.es546.js.map +0 -1
  810. package/dist/index.es547.js +0 -8
  811. package/dist/index.es547.js.map +0 -1
  812. package/dist/index.es548.js +0 -5
  813. package/dist/index.es548.js.map +0 -1
  814. package/dist/index.es549.js +0 -6
  815. package/dist/index.es592.js +0 -5
  816. package/dist/index.es592.js.map +0 -1
  817. package/dist/index.es593.js +0 -5
  818. package/dist/index.es593.js.map +0 -1
  819. package/dist/index.es594.js +0 -5
  820. package/dist/index.es594.js.map +0 -1
  821. /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.es480.js","sources":["../node_modules/@anoki/fse-common/dist/constants.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServicePageUrlsEnum = exports.FaqTypesEnum = exports.EntitiesEnum = exports.LanguagesValues = exports.LanguagesEnum = exports.CategoriesUrlEnum = exports.EntityTypeTypesEnum = exports.ElementTypeEnum = exports.RegisterTypeEnum = exports.OrganizationStructureEnum = exports.ContestTypeEnum = exports.AnnouncementTypeEnum = exports.SectionTypeEnum = exports.PageTypeEnum = exports.AggregationPageTypeEnum = exports.ProcedureTypeEnum = exports.PublicationTypeEnum = exports.ReferenceEntityTypeEnum = exports.RenderTypeEnum = void 0;\nexports.RenderTypeEnum = {\n STATIC: 'Static',\n DYNAMIC: 'Dynamic',\n};\nexports.ReferenceEntityTypeEnum = {\n NEWS: 'News',\n SERVICE: 'Service',\n PAGE: 'Page',\n AGGREGATION_PAGE: 'AggregationPage',\n AGGREGATION_ITEM: 'AggregationItem',\n EVENT: 'Event',\n STRUCTURE: 'Structure',\n DOCUMENT: 'Document',\n CATEGORY: 'Category',\n ENTITY_TYPE: 'EntityType',\n FAQ: 'Faq',\n};\nexports.PublicationTypeEnum = {\n ANNOUNCEMENT: 'Announcement',\n ALERT: 'Alert',\n};\nexports.ProcedureTypeEnum = {\n OPEN_PROCEDURE: 'OpenProcedure',\n};\nexports.AggregationPageTypeEnum = {\n USER_TYPE: 'UserType',\n THEMATIC: 'Thematic',\n};\nexports.PageTypeEnum = {\n HOME: 'Home',\n STATIC_CONTENT: 'StaticContent',\n SERVICES: 'Services',\n EVENTS: 'Events',\n COMMUNICATION: 'Communication',\n FSE_COMMUNICATION: 'FseCommunication', // Used for FSE Communication main page\n};\n/**\n * These are the section types used to create section on CMS Pages\n * Work in progress, added day by day\n *\n * Each section that have items, used AggregationItem\n */\nexports.SectionTypeEnum = {\n SERVICES: 'SectionServices',\n SUGGESTED_SERVICES: 'SuggestedServices',\n LOGIN: 'Login', // The login section used to display the authentication methods\n WHAT_DO_YOU_NEED: 'WhatDoYouNeed', // Used to display the section \"Di cosa hai bisogno\"\n HOME_SERVICES: 'HomeServices', // Used for home page section \"Scopri cosa puoi fare\"\n SERVICES_BY_ENTITY_TYPE: 'ServicesByEntityType', // Used to display services for specif entityType\n NEED_HELP: 'NeedHelp', // Used to display Need Help section\n RICH_TEXT: 'RichText',\n FOLDER: 'Folder', // Used for amministrazione-trasparente\n FILES: 'Files', // Used for amministrazione-trasparente\n ENTITY_TYPE_ID: 'EntityTypeId', // Used to display entity type id,\n STEPPER_ACCORDION: 'StepperAccordion', // Used to display accordion with stepper\n EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert', // Used to display editorial widget alert\n DOCUMENTS: 'Documents', // Used to display documents\n EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner', // U\n TAGS: 'Tags', // Used to display tags\n EDITORIAL_WIDGET: 'EditorialWidget', // Used to display editorial widget (Light/Evidence),\n EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote', // Used to display editorial widget (Block Quote),\n EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout', // Used to display editorial widget (Callout),\n GENERIC_CAROUSEL: 'GenericCarousel', // Used to display generic carousel\n INSIGHTS: 'InsightsSection', // Used to display insights\n VIDEO: 'Video', // Used to display video\n IMAGES: 'Images', // Used to display images\n VERTICAL_STEPPER_ACCORDION: 'VerticalStepperAccordion', // Used to display vertical stepper accordion\n TABLE_LIST: 'TableList', // Used to display table list\n TABLE_CARD: 'TableCard', // Used to display table card\n CARD_FAQ_CTA_SECTION: 'CardFaqCtaSection',\n CARD_PREVIEW_SECTION: 'CardPreviewSection',\n CARD_FEATURED_SECTION: 'CardFeaturedSection',\n ACCORDION_SECTION: 'AccordionSection',\n FEEDBACK_SECTION: 'FeedbackSection',\n TASK_FORCE_FORM_SECTION: 'TaskForceFormSection',\n SLIDER_SECTION: 'SliderSection', // Used to display slider section in home page and communication page\n COMMUNICATION_TAGS_SECTION: 'CommunicationTagsSection', // Tags section included in communication page\n COMMUNICATION_SEARCH_SECTION: 'CommunicationSearchSection', // Search section included in communication page\n COMMUNICATION_CONTENTS_SECTION: 'CommunicationContentsSection', // Content section included in communication page\n};\nexports.AnnouncementTypeEnum = {\n TENDER: 'Tender',\n CONTEST: 'Contest',\n PRAETORIAN_REGISTER: 'PraetorianRegister',\n};\nexports.ContestTypeEnum = {\n EXTERNAL: 'External',\n INTERNAL: 'Internal',\n};\nexports.OrganizationStructureEnum = {\n GENERAL_DIRECTION: 'GeneralDirection',\n UO: 'UO',\n PERSONNEL: 'Personnel',\n};\nexports.RegisterTypeEnum = {\n DIRECTOR_DETERMINED: 'DirectorDetermined',\n MANAGER_DETERMINED: 'ManagerDetermined',\n};\nexports.ElementTypeEnum = {\n AVATAR: 'Avatar',\n CARD_BASIC: 'CardBasic',\n CARD_EVENT: 'CardEvent',\n CARD_FEATURED: 'CardFeatured',\n CARD_LIFE: 'CardLife',\n CARD_FILE: 'CardFile',\n CARD_GHOST: 'CardGhost',\n CARD_GUIDE: 'CardGuide',\n CARD_LIST: 'CardList',\n CARD_NEWS: 'CardNews',\n CARD_PEOPLE: 'CardPeople',\n CARD_PLACE: 'CardPlace',\n CARD_SERVICE: 'CardService',\n CARD_USER: 'CardUser',\n CARD_DOCUMENT: 'CardDocument',\n CARD: 'Card',\n CHIP_LINK: 'ChipLink',\n ICONS: 'Icons',\n INDEX: 'Index',\n LINK: 'Link',\n PLACEHOLDER: 'Placeholder',\n TEXT: 'Text',\n RICH_TEXT: 'RichText',\n STEPPER_ITEM: 'StepperItem',\n EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert',\n EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner',\n EDITORIAL_WIDGET: 'EditorialWidget',\n EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote',\n EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout',\n GENERIC_CAROUSEL_ITEM: 'GenericCarouselItem',\n INSIGHT_ITEM: 'InsightItem',\n VIDEO: 'Video',\n IMAGE: 'Image',\n VERTICAL_STEPPER_ITEM: 'VerticalStepperItem',\n TABLE_LIST_ITEM: 'TableListItem',\n TABLE_CARD_ITEM: 'TableCardItem',\n CARD_FAQ_CTA_ITEM: 'CardFaqCtaItem',\n CARD_PREVIEW_ITEM: 'CardPreviewItem',\n CARD_FEATURED_ITEM: 'CardFeaturedItem',\n ACCORDION_ITEM: 'AccordionItem',\n FEEDBACK_ITEM: 'FeedbackItem',\n TASK_FORCE_FORM_ITEM: 'TaskForceFormItem',\n SLIDER_ITEM: 'SliderItem', // Used to display slider section in home page and communication page\n COMMUNICATION_TAGS_ITEM: 'CommunicationTagsItem', // Tags section included in communication page\n COMMUNICATION_SEARCH_ITEM: 'CommunicationSearchItem', // Search section included in communication page\n COMMUNICATION_CONTENTS_ITEM: 'CommunicationContentsItem', // Content section included in communication page\n};\nexports.EntityTypeTypesEnum = {\n PARENT: 'Parent',\n CHILD: 'Child',\n};\nexports.CategoriesUrlEnum = {\n SERVIZI_E_PRESTAZIONI: 'servizi',\n ASL_COMUNICA: 'ast-comunica',\n AST_COMUNICA: 'ast-comunica',\n STRUTTURE: 'strutture',\n ORGANIZZAZIONE: 'organizzazione',\n COME_FARE_PER: 'come-fare-per',\n FAQ: 'supporto',\n};\nexports.LanguagesEnum = {\n it: 'it',\n en: 'en',\n};\nexports.LanguagesValues = Object.values(exports.LanguagesEnum);\nexports.EntitiesEnum = {\n AGGREGATION_ITEMS: 'aggregation-items',\n AGGREGATION_PAGES: 'aggregation-pages',\n SERVICES: 'services',\n STRUCTURES: 'structures',\n PAGES: 'pages',\n SECTIONS: 'sections',\n ELEMENTS: 'elements',\n NEWS: 'news',\n EVENTS: 'events',\n SETTINGS: 'settings',\n DOCUMENTS: 'documents',\n FAQS: 'faqs',\n};\nexports.FaqTypesEnum = {\n GENERIC_FAQS: 'FAQS Generiche',\n PAGE_FAQS: 'FAQS Pagina',\n};\n/**\n * Bind service as its own page url\n * This is the enum of services available on logged user.\n * Each of these service has itw own custom implementation page\n */\nexports.ServicePageUrlsEnum = {\n DOCTOR: 'medico-di-famiglia',\n FIND_STRUCTURES: 'cerca-una-struttura',\n ARCHIVE: 'tutti-i-documenti',\n HEALTH_PROFILE: 'profilo-della-salute',\n};\n//# sourceMappingURL=constants.js.map"],"names":["exports"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es480.js","sources":["../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PORTAL_NAME","Portal","React","props","forwardedRef","containerProp","portalProps","mounted","setMounted","useLayoutEffect","container","_a","ReactDOM","jsx","Primitive"],"mappings":";;;;;AAQA,IAAIA,IAAc,UACdC,IAASC,EAAM,WAAW,CAACC,GAAOC,MAAiB;;AACrD,QAAM,EAAE,WAAWC,GAAe,GAAGC,EAAW,IAAKH,GAC/C,CAACI,GAASC,CAAU,IAAIN,EAAM,SAAS,EAAK;AAClDO,EAAAA,EAAgB,MAAMD,EAAW,EAAI,GAAG,CAAA,CAAE;AAC1C,QAAME,IAAYL,KAAiBE,OAAWI,IAAA,yCAAY,aAAZ,gBAAAA,EAAsB;AACpE,SAAOD,IAAYE,EAAS,aAA6BC,gBAAAA,EAAAA,IAAIC,EAAU,KAAK,EAAE,GAAGR,GAAa,KAAKF,EAAY,CAAE,GAAGM,CAAS,IAAI;AACnI,CAAC;AACDT,EAAO,cAAcD;","x_google_ignoreList":[0]}
@@ -1,77 +1,18 @@
1
- import { commonjsGlobal as u } from "./index.es448.js";
2
- import { __module as f } from "./index.es482.js";
3
- var j = f.exports, E;
4
- function S() {
5
- return E ? f.exports : (E = 1, (function(R, L) {
6
- (function(v, i) {
7
- i();
8
- })(j, function() {
9
- function v(e, t) {
10
- return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
11
- }
12
- function i(e, t, r) {
13
- var n = new XMLHttpRequest();
14
- n.open("GET", e), n.responseType = "blob", n.onload = function() {
15
- l(n.response, t, r);
16
- }, n.onerror = function() {
17
- console.error("could not download file");
18
- }, n.send();
19
- }
20
- function m(e) {
21
- var t = new XMLHttpRequest();
22
- t.open("HEAD", e, !1);
23
- try {
24
- t.send();
25
- } catch {
26
- }
27
- return 200 <= t.status && 299 >= t.status;
28
- }
29
- function c(e) {
30
- try {
31
- e.dispatchEvent(new MouseEvent("click"));
32
- } catch {
33
- var t = document.createEvent("MouseEvents");
34
- t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
35
- }
36
- }
37
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof u == "object" && u.global === u ? u : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != "object" || window !== a ? function() {
38
- } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
39
- var n = a.URL || a.webkitURL, o = document.createElement("a");
40
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : m(o.href) ? i(e, t, r) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
41
- n.revokeObjectURL(o.href);
42
- }, 4e4), setTimeout(function() {
43
- c(o);
44
- }, 0));
45
- } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
46
- if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(v(e, r), t);
47
- else if (m(e)) i(e, t, r);
48
- else {
49
- var n = document.createElement("a");
50
- n.href = e, n.target = "_blank", setTimeout(function() {
51
- c(n);
52
- });
53
- }
54
- } : function(e, t, r, n) {
55
- if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
56
- var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, y = /CriOS\/[\d]+/.test(navigator.userAgent);
57
- if ((y || o && b || w) && typeof FileReader < "u") {
58
- var d = new FileReader();
59
- d.onloadend = function() {
60
- var s = d.result;
61
- s = y ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
62
- }, d.readAsDataURL(e);
63
- } else {
64
- var h = a.URL || a.webkitURL, p = h.createObjectURL(e);
65
- n ? n.location = p : location.href = p, n = null, setTimeout(function() {
66
- h.revokeObjectURL(p);
67
- }, 4e4);
68
- }
69
- });
70
- a.saveAs = l.saveAs = l, R.exports = l;
71
- });
72
- })(f), f.exports);
1
+ import * as r from "react";
2
+ var t = 0;
3
+ function a() {
4
+ r.useEffect(() => {
5
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
6
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
7
+ t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
8
+ };
9
+ }, []);
10
+ }
11
+ function n() {
12
+ const e = document.createElement("span");
13
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
73
14
  }
74
15
  export {
75
- S as __require
16
+ a as useFocusGuards
76
17
  };
77
18
  //# sourceMappingURL=index.es481.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es481.js","sources":["../node_modules/file-saver/dist/FileSaver.min.js"],"sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open(\"GET\",a),d.responseType=\"blob\",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error(\"could not download file\")},d.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open(\"\",\"_blank\"),g&&(g.document.title=g.document.body.innerText=\"downloading...\"),\"string\"==typeof b)return c(b,d,e);var h=\"application/octet-stream\"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&\"undefined\"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,\"undefined\"!=typeof module&&(module.exports=g)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"names":["a","b","this","c","d","g","e","f","global","h","i","j","k","l","m","module"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es481.js","sources":["../node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/focus-guards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.outline = \"none\";\n element.style.opacity = \"0\";\n element.style.position = \"fixed\";\n element.style.pointerEvents = \"none\";\n return element;\n}\nexport {\n FocusGuards,\n FocusGuards as Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["count","useFocusGuards","React","edgeGuards","createFocusGuard","node","element"],"mappings":";AAIA,IAAIA,IAAQ;AAKZ,SAASC,IAAiB;AACxB,EAAAC,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAa,SAAS,iBAAiB,0BAA0B;AACvE,oBAAS,KAAK,sBAAsB,cAAcA,EAAW,CAAC,KAAKC,GAAkB,GACrF,SAAS,KAAK,sBAAsB,aAAaD,EAAW,CAAC,KAAKC,GAAkB,GACpFJ,KACO,MAAM;AACX,MAAIA,MAAU,KACZ,SAAS,iBAAiB,0BAA0B,EAAE,QAAQ,CAACK,MAASA,EAAK,QAAQ,GAEvFL;AAAA,IACF;AAAA,EACF,GAAG,CAAA,CAAE;AACP;AACA,SAASI,IAAmB;AAC1B,QAAME,IAAU,SAAS,cAAc,MAAM;AAC7C,SAAAA,EAAQ,aAAa,0BAA0B,EAAE,GACjDA,EAAQ,WAAW,GACnBA,EAAQ,MAAM,UAAU,QACxBA,EAAQ,MAAM,UAAU,KACxBA,EAAQ,MAAM,WAAW,SACzBA,EAAQ,MAAM,gBAAgB,QACvBA;AACT;","x_google_ignoreList":[0]}
@@ -1,5 +1,12 @@
1
- var e = { exports: {} };
1
+ import { __assign as m } from "./index.es589.js";
2
+ import * as r from "react";
3
+ import { RemoveScroll as e } from "./index.es590.js";
4
+ import t from "./index.es591.js";
5
+ var s = r.forwardRef(function(a, o) {
6
+ return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
+ });
8
+ s.classNames = e.classNames;
2
9
  export {
3
- e as __module
10
+ s as default
4
11
  };
5
12
  //# sourceMappingURL=index.es482.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es482.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.es482.js","sources":["../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,IAAIH,GAAO,EAAE,KAAKC,GAAK,SAASG,EAAO,CAAE,CAAC;AAAI,CAAC;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
@@ -1,18 +1,53 @@
1
- import { useState as n, useCallback as i } from "react";
2
- import "./index.es648.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
- }
1
+ var S = function(r) {
2
+ if (typeof document > "u")
3
+ return null;
4
+ var u = Array.isArray(r) ? r[0] : r;
5
+ return u.ownerDocument.body;
6
+ }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
+ return r && (r.host || W(r.parentNode));
8
+ }, D = function(r, u) {
9
+ return u.map(function(e) {
10
+ if (r.contains(e))
11
+ return e;
12
+ var n = W(e);
13
+ return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
+ }).filter(function(e) {
15
+ return !!e;
16
+ });
17
+ }, E = function(r, u, e, n) {
18
+ var i = D(u, Array.isArray(r) ? r : [r]);
19
+ p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
+ var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
+ !t || o.has(t) || (o.add(t), y(t.parentNode));
22
+ };
23
+ i.forEach(y);
24
+ var A = function(t) {
25
+ !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
+ if (o.has(a))
27
+ A(a);
28
+ else
29
+ try {
30
+ var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
31
+ f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
+ } catch (k) {
33
+ console.error("aria-hidden: cannot operate on ", a, k);
34
+ }
35
+ });
36
+ };
37
+ return A(u), o.clear(), h++, function() {
38
+ l.forEach(function(t) {
39
+ var a = f.get(t) - 1, c = s.get(t) - 1;
40
+ f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
+ }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
+ };
43
+ }, C = function(r, u, e) {
44
+ e === void 0 && (e = "data-aria-hidden");
45
+ var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
+ return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
47
+ return null;
48
+ };
49
+ };
15
50
  export {
16
- c as useCopyToClipboard
51
+ C as hideOthers
17
52
  };
18
53
  //# sourceMappingURL=index.es483.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es483.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,IACT,SAASC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACT;AAAA,EACF,GAAG,CAAA,CAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es483.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,18 +1,18 @@
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 { useState as n, useCallback as i } from "react";
2
+ import "./index.es595.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
15
  export {
16
- f as useFocusTrap
16
+ c as useCopyToClipboard
17
17
  };
18
18
  //# sourceMappingURL=index.es487.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es487.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":";AAEO,MAAMA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAE/B,UAAMG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IAAA,GAEII,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AAC1C,MAAI,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAA,GACrB,EAAE,eAAA,KAGA,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAA,GACtB,EAAE,eAAA;AAAA,IAGR,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAA,GAEtB,SAAS,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACX,eAAS,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EACF,GAAG,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
1
+ {"version":3,"file":"index.es487.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,IACT,SAASC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACT;AAAA,EACF,GAAG,CAAA,CAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
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
+ };
15
+ export {
16
+ f as useFocusTrap
17
+ };
18
+ //# sourceMappingURL=index.es488.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es488.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":";AAEO,MAAMA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAE/B,UAAMG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IAAA,GAEII,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AAC1C,MAAI,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAA,GACrB,EAAE,eAAA,KAGA,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAA,GACtB,EAAE,eAAA;AAAA,IAGR,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAA,GAEtB,SAAS,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACX,eAAS,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EACF,GAAG,CAACN,GAAUD,CAAG,CAAC;AACpB;"}