@anoki/fse-ui 1.0.418 → 1.0.419

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 (909) hide show
  1. package/dist/index.cjs.js.map +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs100.js +1 -1
  5. package/dist/index.cjs100.js.map +1 -1
  6. package/dist/index.cjs101.js +1 -1
  7. package/dist/index.cjs101.js.map +1 -1
  8. package/dist/index.cjs102.js +1 -1
  9. package/dist/index.cjs102.js.map +1 -1
  10. package/dist/index.cjs103.js +1 -1
  11. package/dist/index.cjs103.js.map +1 -1
  12. package/dist/index.cjs104.js +1 -1
  13. package/dist/index.cjs104.js.map +1 -1
  14. package/dist/index.cjs105.js +1 -1
  15. package/dist/index.cjs105.js.map +1 -1
  16. package/dist/index.cjs106.js +1 -1
  17. package/dist/index.cjs106.js.map +1 -1
  18. package/dist/index.cjs107.js +1 -1
  19. package/dist/index.cjs107.js.map +1 -1
  20. package/dist/index.cjs108.js +1 -1
  21. package/dist/index.cjs108.js.map +1 -1
  22. package/dist/index.cjs109.js +1 -1
  23. package/dist/index.cjs109.js.map +1 -1
  24. package/dist/index.cjs11.js +1 -1
  25. package/dist/index.cjs11.js.map +1 -1
  26. package/dist/index.cjs110.js +1 -1
  27. package/dist/index.cjs110.js.map +1 -1
  28. package/dist/index.cjs111.js +1 -1
  29. package/dist/index.cjs111.js.map +1 -1
  30. package/dist/index.cjs112.js +1 -1
  31. package/dist/index.cjs112.js.map +1 -1
  32. package/dist/index.cjs113.js +1 -1
  33. package/dist/index.cjs113.js.map +1 -1
  34. package/dist/index.cjs114.js +1 -1
  35. package/dist/index.cjs114.js.map +1 -1
  36. package/dist/index.cjs115.js +1 -1
  37. package/dist/index.cjs115.js.map +1 -1
  38. package/dist/index.cjs116.js +1 -1
  39. package/dist/index.cjs116.js.map +1 -1
  40. package/dist/index.cjs117.js +1 -1
  41. package/dist/index.cjs117.js.map +1 -1
  42. package/dist/index.cjs118.js +1 -1
  43. package/dist/index.cjs118.js.map +1 -1
  44. package/dist/index.cjs119.js +1 -1
  45. package/dist/index.cjs119.js.map +1 -1
  46. package/dist/index.cjs12.js +1 -1
  47. package/dist/index.cjs12.js.map +1 -1
  48. package/dist/index.cjs120.js +1 -1
  49. package/dist/index.cjs120.js.map +1 -1
  50. package/dist/index.cjs121.js +1 -1
  51. package/dist/index.cjs121.js.map +1 -1
  52. package/dist/index.cjs122.js +1 -1
  53. package/dist/index.cjs122.js.map +1 -1
  54. package/dist/index.cjs123.js +1 -1
  55. package/dist/index.cjs123.js.map +1 -1
  56. package/dist/index.cjs124.js +1 -1
  57. package/dist/index.cjs124.js.map +1 -1
  58. package/dist/index.cjs125.js +1 -1
  59. package/dist/index.cjs125.js.map +1 -1
  60. package/dist/index.cjs126.js +1 -1
  61. package/dist/index.cjs126.js.map +1 -1
  62. package/dist/index.cjs127.js.map +1 -1
  63. package/dist/index.cjs128.js +1 -1
  64. package/dist/index.cjs128.js.map +1 -1
  65. package/dist/index.cjs129.js +1 -1
  66. package/dist/index.cjs129.js.map +1 -1
  67. package/dist/index.cjs13.js +1 -1
  68. package/dist/index.cjs13.js.map +1 -1
  69. package/dist/index.cjs130.js +1 -1
  70. package/dist/index.cjs130.js.map +1 -1
  71. package/dist/index.cjs131.js +1 -1
  72. package/dist/index.cjs131.js.map +1 -1
  73. package/dist/index.cjs132.js +1 -1
  74. package/dist/index.cjs132.js.map +1 -1
  75. package/dist/index.cjs133.js +1 -1
  76. package/dist/index.cjs133.js.map +1 -1
  77. package/dist/index.cjs134.js +1 -1
  78. package/dist/index.cjs134.js.map +1 -1
  79. package/dist/index.cjs135.js +1 -1
  80. package/dist/index.cjs135.js.map +1 -1
  81. package/dist/index.cjs136.js +1 -1
  82. package/dist/index.cjs136.js.map +1 -1
  83. package/dist/index.cjs14.js +1 -1
  84. package/dist/index.cjs14.js.map +1 -1
  85. package/dist/index.cjs140.js +1 -1
  86. package/dist/index.cjs140.js.map +1 -1
  87. package/dist/index.cjs149.js +1 -1
  88. package/dist/index.cjs149.js.map +1 -1
  89. package/dist/index.cjs15.js +1 -1
  90. package/dist/index.cjs15.js.map +1 -1
  91. package/dist/index.cjs153.js +1 -1
  92. package/dist/index.cjs153.js.map +1 -1
  93. package/dist/index.cjs155.js +2 -0
  94. package/dist/index.cjs155.js.map +1 -0
  95. package/dist/index.cjs156.js +1 -1
  96. package/dist/index.cjs156.js.map +1 -1
  97. package/dist/index.cjs159.js +2 -0
  98. package/dist/index.cjs159.js.map +1 -0
  99. package/dist/index.cjs16.js +1 -1
  100. package/dist/{index.cjs163.js → index.cjs164.js} +1 -1
  101. package/dist/index.cjs164.js.map +1 -0
  102. package/dist/index.cjs166.js.map +1 -1
  103. package/dist/index.cjs169.js.map +1 -1
  104. package/dist/index.cjs17.js +1 -1
  105. package/dist/index.cjs17.js.map +1 -1
  106. package/dist/index.cjs173.js +1 -1
  107. package/dist/index.cjs173.js.map +1 -1
  108. package/dist/index.cjs176.js +1 -1
  109. package/dist/index.cjs176.js.map +1 -1
  110. package/dist/index.cjs179.js +1 -1
  111. package/dist/index.cjs179.js.map +1 -1
  112. package/dist/index.cjs18.js +1 -1
  113. package/dist/index.cjs18.js.map +1 -1
  114. package/dist/index.cjs182.js +1 -1
  115. package/dist/index.cjs182.js.map +1 -1
  116. package/dist/index.cjs183.js +1 -1
  117. package/dist/index.cjs183.js.map +1 -1
  118. package/dist/index.cjs184.js +1 -1
  119. package/dist/index.cjs19.js +1 -1
  120. package/dist/index.cjs19.js.map +1 -1
  121. package/dist/index.cjs190.js +1 -1
  122. package/dist/index.cjs191.js.map +1 -1
  123. package/dist/index.cjs194.js.map +1 -1
  124. package/dist/index.cjs199.js +1 -1
  125. package/dist/index.cjs199.js.map +1 -1
  126. package/dist/index.cjs20.js +1 -1
  127. package/dist/index.cjs20.js.map +1 -1
  128. package/dist/index.cjs201.js +1 -1
  129. package/dist/index.cjs202.js.map +1 -1
  130. package/dist/index.cjs203.js.map +1 -1
  131. package/dist/index.cjs204.js.map +1 -1
  132. package/dist/index.cjs205.js.map +1 -1
  133. package/dist/index.cjs207.js.map +1 -1
  134. package/dist/index.cjs208.js +1 -1
  135. package/dist/index.cjs208.js.map +1 -1
  136. package/dist/index.cjs209.js +1 -1
  137. package/dist/index.cjs209.js.map +1 -1
  138. package/dist/index.cjs21.js +1 -1
  139. package/dist/index.cjs21.js.map +1 -1
  140. package/dist/index.cjs212.js +1 -1
  141. package/dist/index.cjs212.js.map +1 -1
  142. package/dist/index.cjs213.js +1 -1
  143. package/dist/index.cjs213.js.map +1 -1
  144. package/dist/index.cjs218.js +1 -1
  145. package/dist/index.cjs218.js.map +1 -1
  146. package/dist/index.cjs219.js.map +1 -1
  147. package/dist/index.cjs22.js +1 -1
  148. package/dist/index.cjs22.js.map +1 -1
  149. package/dist/index.cjs220.js +1 -1
  150. package/dist/index.cjs220.js.map +1 -1
  151. package/dist/index.cjs222.js.map +1 -1
  152. package/dist/index.cjs223.js +1 -1
  153. package/dist/index.cjs223.js.map +1 -1
  154. package/dist/index.cjs224.js.map +1 -1
  155. package/dist/index.cjs226.js +1 -1
  156. package/dist/index.cjs226.js.map +1 -1
  157. package/dist/index.cjs227.js +1 -1
  158. package/dist/index.cjs227.js.map +1 -1
  159. package/dist/index.cjs228.js +1 -1
  160. package/dist/index.cjs23.js +1 -1
  161. package/dist/index.cjs23.js.map +1 -1
  162. package/dist/index.cjs230.js +2 -2
  163. package/dist/index.cjs230.js.map +1 -1
  164. package/dist/index.cjs24.js +1 -1
  165. package/dist/index.cjs25.js +1 -1
  166. package/dist/index.cjs25.js.map +1 -1
  167. package/dist/index.cjs26.js +1 -1
  168. package/dist/index.cjs26.js.map +1 -1
  169. package/dist/index.cjs266.js +2 -2
  170. package/dist/index.cjs267.js +12 -3
  171. package/dist/index.cjs267.js.map +1 -1
  172. package/dist/index.cjs268.js +1 -27
  173. package/dist/index.cjs268.js.map +1 -1
  174. package/dist/index.cjs269.js +1 -1
  175. package/dist/index.cjs27.js +1 -1
  176. package/dist/index.cjs27.js.map +1 -1
  177. package/dist/index.cjs270.js +1 -1
  178. package/dist/index.cjs271.js +27 -1
  179. package/dist/index.cjs271.js.map +1 -1
  180. package/dist/index.cjs272.js +2 -0
  181. package/dist/index.cjs272.js.map +1 -0
  182. package/dist/index.cjs274.js +1 -1
  183. package/dist/index.cjs274.js.map +1 -1
  184. package/dist/index.cjs275.js +1 -1
  185. package/dist/index.cjs275.js.map +1 -1
  186. package/dist/index.cjs276.js +1 -1
  187. package/dist/index.cjs276.js.map +1 -1
  188. package/dist/index.cjs277.js +1 -1
  189. package/dist/index.cjs278.js +1 -1
  190. package/dist/index.cjs278.js.map +1 -1
  191. package/dist/index.cjs279.js +1 -1
  192. package/dist/index.cjs279.js.map +1 -1
  193. package/dist/index.cjs28.js.map +1 -1
  194. package/dist/index.cjs280.js +1 -1
  195. package/dist/index.cjs280.js.map +1 -1
  196. package/dist/index.cjs281.js +1 -1
  197. package/dist/index.cjs281.js.map +1 -1
  198. package/dist/index.cjs284.js +1 -1
  199. package/dist/index.cjs284.js.map +1 -1
  200. package/dist/index.cjs285.js +2 -0
  201. package/dist/index.cjs285.js.map +1 -0
  202. package/dist/{index.cjs310.js → index.cjs286.js} +2 -2
  203. package/dist/{index.cjs310.js.map → index.cjs286.js.map} +1 -1
  204. package/dist/index.cjs287.js +2 -0
  205. package/dist/index.cjs287.js.map +1 -0
  206. package/dist/index.cjs288.js +2 -0
  207. package/dist/index.cjs288.js.map +1 -0
  208. package/dist/index.cjs289.js +2 -0
  209. package/dist/index.cjs289.js.map +1 -0
  210. package/dist/index.cjs29.js +1 -1
  211. package/dist/index.cjs29.js.map +1 -1
  212. package/dist/index.cjs290.js +2 -0
  213. package/dist/index.cjs290.js.map +1 -0
  214. package/dist/index.cjs291.js +1 -1
  215. package/dist/index.cjs291.js.map +1 -1
  216. package/dist/index.cjs292.js +1 -1
  217. package/dist/index.cjs292.js.map +1 -1
  218. package/dist/index.cjs293.js +1 -1
  219. package/dist/index.cjs293.js.map +1 -1
  220. package/dist/index.cjs294.js +1 -1
  221. package/dist/index.cjs294.js.map +1 -1
  222. package/dist/index.cjs295.js +1 -1
  223. package/dist/index.cjs295.js.map +1 -1
  224. package/dist/index.cjs296.js +1 -1
  225. package/dist/index.cjs296.js.map +1 -1
  226. package/dist/index.cjs297.js +1 -1
  227. package/dist/index.cjs297.js.map +1 -1
  228. package/dist/index.cjs30.js +1 -1
  229. package/dist/index.cjs30.js.map +1 -1
  230. package/dist/index.cjs300.js +2 -0
  231. package/dist/index.cjs300.js.map +1 -0
  232. package/dist/index.cjs301.js +2 -0
  233. package/dist/index.cjs301.js.map +1 -0
  234. package/dist/index.cjs302.js +2 -0
  235. package/dist/index.cjs302.js.map +1 -0
  236. package/dist/index.cjs303.js +2 -0
  237. package/dist/index.cjs303.js.map +1 -0
  238. package/dist/index.cjs304.js +2 -0
  239. package/dist/index.cjs304.js.map +1 -0
  240. package/dist/index.cjs305.js +2 -0
  241. package/dist/index.cjs305.js.map +1 -0
  242. package/dist/index.cjs306.js +1 -1
  243. package/dist/index.cjs306.js.map +1 -1
  244. package/dist/index.cjs307.js +1 -1
  245. package/dist/index.cjs307.js.map +1 -1
  246. package/dist/index.cjs31.js +1 -1
  247. package/dist/index.cjs31.js.map +1 -1
  248. package/dist/index.cjs311.js +1 -1
  249. package/dist/index.cjs311.js.map +1 -1
  250. package/dist/index.cjs312.js +1 -1
  251. package/dist/index.cjs312.js.map +1 -1
  252. package/dist/index.cjs313.js +1 -1
  253. package/dist/index.cjs313.js.map +1 -1
  254. package/dist/index.cjs314.js +1 -1
  255. package/dist/index.cjs314.js.map +1 -1
  256. package/dist/index.cjs315.js +1 -1
  257. package/dist/index.cjs315.js.map +1 -1
  258. package/dist/index.cjs316.js +1 -1
  259. package/dist/index.cjs316.js.map +1 -1
  260. package/dist/index.cjs32.js +1 -1
  261. package/dist/index.cjs32.js.map +1 -1
  262. package/dist/index.cjs326.js +1 -38
  263. package/dist/index.cjs326.js.map +1 -1
  264. package/dist/index.cjs327.js +1 -1
  265. package/dist/index.cjs327.js.map +1 -1
  266. package/dist/index.cjs328.js +1 -1
  267. package/dist/index.cjs328.js.map +1 -1
  268. package/dist/index.cjs329.js +1 -1
  269. package/dist/index.cjs329.js.map +1 -1
  270. package/dist/index.cjs33.js +1 -1
  271. package/dist/index.cjs33.js.map +1 -1
  272. package/dist/index.cjs330.js +1 -1
  273. package/dist/index.cjs330.js.map +1 -1
  274. package/dist/index.cjs331.js +1 -1
  275. package/dist/index.cjs331.js.map +1 -1
  276. package/dist/index.cjs332.js +1 -1
  277. package/dist/index.cjs332.js.map +1 -1
  278. package/dist/index.cjs333.js +4 -1
  279. package/dist/index.cjs333.js.map +1 -1
  280. package/dist/index.cjs334.js +1 -1
  281. package/dist/index.cjs334.js.map +1 -1
  282. package/dist/index.cjs335.js +1 -1
  283. package/dist/index.cjs335.js.map +1 -1
  284. package/dist/index.cjs336.js +1 -1
  285. package/dist/index.cjs336.js.map +1 -1
  286. package/dist/index.cjs337.js +1 -1
  287. package/dist/index.cjs337.js.map +1 -1
  288. package/dist/index.cjs338.js +1 -1
  289. package/dist/index.cjs338.js.map +1 -1
  290. package/dist/index.cjs339.js +38 -1
  291. package/dist/index.cjs339.js.map +1 -1
  292. package/dist/index.cjs34.js +1 -1
  293. package/dist/index.cjs34.js.map +1 -1
  294. package/dist/index.cjs340.js +2 -0
  295. package/dist/index.cjs340.js.map +1 -0
  296. package/dist/index.cjs341.js +2 -0
  297. package/dist/index.cjs341.js.map +1 -0
  298. package/dist/index.cjs342.js +2 -0
  299. package/dist/index.cjs342.js.map +1 -0
  300. package/dist/index.cjs343.js +2 -0
  301. package/dist/index.cjs343.js.map +1 -0
  302. package/dist/index.cjs344.js +2 -0
  303. package/dist/index.cjs344.js.map +1 -0
  304. package/dist/index.cjs345.js +2 -0
  305. package/dist/index.cjs345.js.map +1 -0
  306. package/dist/index.cjs346.js +2 -0
  307. package/dist/index.cjs346.js.map +1 -0
  308. package/dist/index.cjs347.js +2 -0
  309. package/dist/index.cjs347.js.map +1 -0
  310. package/dist/index.cjs348.js +2 -0
  311. package/dist/index.cjs348.js.map +1 -0
  312. package/dist/index.cjs35.js +1 -1
  313. package/dist/index.cjs35.js.map +1 -1
  314. package/dist/index.cjs36.js.map +1 -1
  315. package/dist/index.cjs37.js +1 -1
  316. package/dist/index.cjs37.js.map +1 -1
  317. package/dist/index.cjs38.js +1 -1
  318. package/dist/index.cjs38.js.map +1 -1
  319. package/dist/index.cjs39.js +1 -1
  320. package/dist/index.cjs39.js.map +1 -1
  321. package/dist/index.cjs40.js +1 -1
  322. package/dist/index.cjs40.js.map +1 -1
  323. package/dist/index.cjs41.js.map +1 -1
  324. package/dist/index.cjs42.js +1 -1
  325. package/dist/index.cjs42.js.map +1 -1
  326. package/dist/index.cjs43.js +1 -1
  327. package/dist/index.cjs43.js.map +1 -1
  328. package/dist/index.cjs44.js +1 -1
  329. package/dist/index.cjs44.js.map +1 -1
  330. package/dist/index.cjs45.js +1 -1
  331. package/dist/index.cjs45.js.map +1 -1
  332. package/dist/index.cjs46.js.map +1 -1
  333. package/dist/index.cjs47.js +1 -1
  334. package/dist/index.cjs47.js.map +1 -1
  335. package/dist/index.cjs48.js +1 -1
  336. package/dist/index.cjs48.js.map +1 -1
  337. package/dist/index.cjs49.js +1 -1
  338. package/dist/index.cjs49.js.map +1 -1
  339. package/dist/index.cjs50.js +1 -1
  340. package/dist/index.cjs50.js.map +1 -1
  341. package/dist/index.cjs51.js +1 -1
  342. package/dist/index.cjs51.js.map +1 -1
  343. package/dist/index.cjs52.js +1 -1
  344. package/dist/index.cjs52.js.map +1 -1
  345. package/dist/index.cjs53.js +1 -1
  346. package/dist/index.cjs53.js.map +1 -1
  347. package/dist/index.cjs54.js.map +1 -1
  348. package/dist/index.cjs55.js.map +1 -1
  349. package/dist/index.cjs56.js +1 -1
  350. package/dist/index.cjs56.js.map +1 -1
  351. package/dist/index.cjs57.js.map +1 -1
  352. package/dist/index.cjs58.js +1 -1
  353. package/dist/index.cjs58.js.map +1 -1
  354. package/dist/index.cjs59.js +1 -1
  355. package/dist/index.cjs59.js.map +1 -1
  356. package/dist/index.cjs6.js +1 -1
  357. package/dist/index.cjs6.js.map +1 -1
  358. package/dist/index.cjs60.js +1 -1
  359. package/dist/index.cjs60.js.map +1 -1
  360. package/dist/index.cjs61.js +1 -1
  361. package/dist/index.cjs61.js.map +1 -1
  362. package/dist/index.cjs62.js.map +1 -1
  363. package/dist/index.cjs63.js +1 -1
  364. package/dist/index.cjs63.js.map +1 -1
  365. package/dist/index.cjs64.js.map +1 -1
  366. package/dist/index.cjs65.js +1 -1
  367. package/dist/index.cjs65.js.map +1 -1
  368. package/dist/index.cjs66.js +1 -1
  369. package/dist/index.cjs66.js.map +1 -1
  370. package/dist/index.cjs67.js.map +1 -1
  371. package/dist/index.cjs68.js +1 -1
  372. package/dist/index.cjs68.js.map +1 -1
  373. package/dist/index.cjs69.js +1 -1
  374. package/dist/index.cjs69.js.map +1 -1
  375. package/dist/index.cjs7.js +1 -1
  376. package/dist/index.cjs7.js.map +1 -1
  377. package/dist/index.cjs70.js +1 -1
  378. package/dist/index.cjs70.js.map +1 -1
  379. package/dist/index.cjs71.js.map +1 -1
  380. package/dist/index.cjs72.js.map +1 -1
  381. package/dist/index.cjs73.js.map +1 -1
  382. package/dist/index.cjs74.js.map +1 -1
  383. package/dist/index.cjs75.js.map +1 -1
  384. package/dist/index.cjs76.js.map +1 -1
  385. package/dist/index.cjs77.js.map +1 -1
  386. package/dist/index.cjs78.js.map +1 -1
  387. package/dist/index.cjs79.js.map +1 -1
  388. package/dist/index.cjs8.js +1 -1
  389. package/dist/index.cjs8.js.map +1 -1
  390. package/dist/index.cjs80.js.map +1 -1
  391. package/dist/index.cjs81.js.map +1 -1
  392. package/dist/index.cjs82.js.map +1 -1
  393. package/dist/index.cjs83.js.map +1 -1
  394. package/dist/index.cjs84.js.map +1 -1
  395. package/dist/index.cjs85.js.map +1 -1
  396. package/dist/index.cjs86.js +1 -1
  397. package/dist/index.cjs87.js +1 -1
  398. package/dist/index.cjs87.js.map +1 -1
  399. package/dist/index.cjs88.js.map +1 -1
  400. package/dist/index.cjs89.js +1 -1
  401. package/dist/index.cjs9.js +1 -1
  402. package/dist/index.cjs9.js.map +1 -1
  403. package/dist/index.cjs90.js +1 -1
  404. package/dist/index.cjs90.js.map +1 -1
  405. package/dist/index.cjs91.js +1 -1
  406. package/dist/index.cjs91.js.map +1 -1
  407. package/dist/index.cjs92.js +1 -1
  408. package/dist/index.cjs92.js.map +1 -1
  409. package/dist/index.cjs93.js +1 -1
  410. package/dist/index.cjs93.js.map +1 -1
  411. package/dist/index.cjs94.js +1 -1
  412. package/dist/index.cjs94.js.map +1 -1
  413. package/dist/index.cjs95.js +1 -1
  414. package/dist/index.cjs95.js.map +1 -1
  415. package/dist/index.cjs96.js +1 -1
  416. package/dist/index.cjs96.js.map +1 -1
  417. package/dist/index.cjs97.js +1 -1
  418. package/dist/index.cjs97.js.map +1 -1
  419. package/dist/index.cjs98.js +1 -1
  420. package/dist/index.cjs98.js.map +1 -1
  421. package/dist/index.cjs99.js +1 -1
  422. package/dist/index.cjs99.js.map +1 -1
  423. package/dist/index.es.js.map +1 -1
  424. package/dist/index.es10.js +3 -3
  425. package/dist/index.es10.js.map +1 -1
  426. package/dist/index.es100.js +2 -2
  427. package/dist/index.es100.js.map +1 -1
  428. package/dist/index.es101.js +2 -2
  429. package/dist/index.es101.js.map +1 -1
  430. package/dist/index.es102.js +2 -2
  431. package/dist/index.es102.js.map +1 -1
  432. package/dist/index.es103.js +2 -2
  433. package/dist/index.es103.js.map +1 -1
  434. package/dist/index.es104.js +2 -2
  435. package/dist/index.es104.js.map +1 -1
  436. package/dist/index.es105.js +2 -2
  437. package/dist/index.es105.js.map +1 -1
  438. package/dist/index.es106.js +2 -2
  439. package/dist/index.es106.js.map +1 -1
  440. package/dist/index.es107.js +2 -2
  441. package/dist/index.es107.js.map +1 -1
  442. package/dist/index.es108.js +2 -2
  443. package/dist/index.es108.js.map +1 -1
  444. package/dist/index.es109.js +2 -2
  445. package/dist/index.es109.js.map +1 -1
  446. package/dist/index.es11.js +1 -1
  447. package/dist/index.es11.js.map +1 -1
  448. package/dist/index.es110.js +2 -2
  449. package/dist/index.es110.js.map +1 -1
  450. package/dist/index.es111.js +2 -2
  451. package/dist/index.es111.js.map +1 -1
  452. package/dist/index.es112.js +2 -2
  453. package/dist/index.es112.js.map +1 -1
  454. package/dist/index.es113.js +1 -1
  455. package/dist/index.es113.js.map +1 -1
  456. package/dist/index.es114.js +1 -1
  457. package/dist/index.es114.js.map +1 -1
  458. package/dist/index.es115.js +2 -2
  459. package/dist/index.es115.js.map +1 -1
  460. package/dist/index.es116.js +2 -2
  461. package/dist/index.es116.js.map +1 -1
  462. package/dist/index.es117.js +2 -2
  463. package/dist/index.es117.js.map +1 -1
  464. package/dist/index.es118.js +2 -2
  465. package/dist/index.es118.js.map +1 -1
  466. package/dist/index.es119.js +2 -2
  467. package/dist/index.es119.js.map +1 -1
  468. package/dist/index.es12.js +1 -1
  469. package/dist/index.es12.js.map +1 -1
  470. package/dist/index.es120.js +2 -2
  471. package/dist/index.es120.js.map +1 -1
  472. package/dist/index.es121.js +2 -2
  473. package/dist/index.es121.js.map +1 -1
  474. package/dist/index.es122.js +2 -2
  475. package/dist/index.es122.js.map +1 -1
  476. package/dist/index.es123.js +2 -2
  477. package/dist/index.es123.js.map +1 -1
  478. package/dist/index.es124.js +2 -2
  479. package/dist/index.es124.js.map +1 -1
  480. package/dist/index.es125.js +2 -2
  481. package/dist/index.es125.js.map +1 -1
  482. package/dist/index.es126.js +2 -2
  483. package/dist/index.es126.js.map +1 -1
  484. package/dist/index.es127.js.map +1 -1
  485. package/dist/index.es128.js +2 -2
  486. package/dist/index.es128.js.map +1 -1
  487. package/dist/index.es129.js +2 -2
  488. package/dist/index.es129.js.map +1 -1
  489. package/dist/index.es13.js +1 -1
  490. package/dist/index.es13.js.map +1 -1
  491. package/dist/index.es130.js +2 -2
  492. package/dist/index.es130.js.map +1 -1
  493. package/dist/index.es131.js +2 -2
  494. package/dist/index.es131.js.map +1 -1
  495. package/dist/index.es132.js +2 -2
  496. package/dist/index.es132.js.map +1 -1
  497. package/dist/index.es133.js +2 -2
  498. package/dist/index.es133.js.map +1 -1
  499. package/dist/index.es134.js +2 -2
  500. package/dist/index.es134.js.map +1 -1
  501. package/dist/index.es135.js +71 -76
  502. package/dist/index.es135.js.map +1 -1
  503. package/dist/index.es136.js +1 -11
  504. package/dist/index.es136.js.map +1 -1
  505. package/dist/index.es137.js +2 -2
  506. package/dist/index.es138.js +24 -24
  507. package/dist/index.es14.js +1 -1
  508. package/dist/index.es14.js.map +1 -1
  509. package/dist/index.es140.js +58 -63
  510. package/dist/index.es140.js.map +1 -1
  511. package/dist/index.es145.js +1 -1
  512. package/dist/index.es149.js +26 -29
  513. package/dist/index.es149.js.map +1 -1
  514. package/dist/index.es15.js +1 -1
  515. package/dist/index.es15.js.map +1 -1
  516. package/dist/index.es153.js +15 -18
  517. package/dist/index.es153.js.map +1 -1
  518. package/dist/index.es155.js +18 -0
  519. package/dist/index.es155.js.map +1 -0
  520. package/dist/index.es156.js +2 -15
  521. package/dist/index.es156.js.map +1 -1
  522. package/dist/index.es159.js +6 -0
  523. package/dist/index.es159.js.map +1 -0
  524. package/dist/index.es16.js +10 -10
  525. package/dist/{index.es163.js → index.es164.js} +1 -1
  526. package/dist/index.es164.js.map +1 -0
  527. package/dist/index.es166.js.map +1 -1
  528. package/dist/index.es169.js.map +1 -1
  529. package/dist/index.es17.js +1 -1
  530. package/dist/index.es17.js.map +1 -1
  531. package/dist/index.es173.js +2 -2
  532. package/dist/index.es173.js.map +1 -1
  533. package/dist/index.es176.js +1 -1
  534. package/dist/index.es176.js.map +1 -1
  535. package/dist/index.es179.js +21 -21
  536. package/dist/index.es179.js.map +1 -1
  537. package/dist/index.es18.js +22 -22
  538. package/dist/index.es18.js.map +1 -1
  539. package/dist/index.es182.js +2 -2
  540. package/dist/index.es182.js.map +1 -1
  541. package/dist/index.es183.js +26 -26
  542. package/dist/index.es183.js.map +1 -1
  543. package/dist/index.es184.js +11 -11
  544. package/dist/index.es19.js +1 -1
  545. package/dist/index.es19.js.map +1 -1
  546. package/dist/index.es190.js +7 -7
  547. package/dist/index.es191.js.map +1 -1
  548. package/dist/index.es194.js.map +1 -1
  549. package/dist/index.es199.js +2 -2
  550. package/dist/index.es199.js.map +1 -1
  551. package/dist/index.es20.js +1 -1
  552. package/dist/index.es20.js.map +1 -1
  553. package/dist/index.es201.js +56 -56
  554. package/dist/index.es202.js.map +1 -1
  555. package/dist/index.es203.js.map +1 -1
  556. package/dist/index.es204.js.map +1 -1
  557. package/dist/index.es205.js.map +1 -1
  558. package/dist/index.es207.js.map +1 -1
  559. package/dist/index.es208.js +1 -1
  560. package/dist/index.es208.js.map +1 -1
  561. package/dist/index.es209.js +1 -1
  562. package/dist/index.es209.js.map +1 -1
  563. package/dist/index.es21.js +1 -1
  564. package/dist/index.es21.js.map +1 -1
  565. package/dist/index.es212.js +1 -1
  566. package/dist/index.es212.js.map +1 -1
  567. package/dist/index.es213.js +1 -1
  568. package/dist/index.es213.js.map +1 -1
  569. package/dist/index.es218.js +1 -1
  570. package/dist/index.es218.js.map +1 -1
  571. package/dist/index.es219.js.map +1 -1
  572. package/dist/index.es22.js +2 -2
  573. package/dist/index.es22.js.map +1 -1
  574. package/dist/index.es220.js +1 -1
  575. package/dist/index.es220.js.map +1 -1
  576. package/dist/index.es222.js.map +1 -1
  577. package/dist/index.es223.js +1 -1
  578. package/dist/index.es223.js.map +1 -1
  579. package/dist/index.es224.js.map +1 -1
  580. package/dist/index.es226.js +2 -2
  581. package/dist/index.es226.js.map +1 -1
  582. package/dist/index.es227.js +2 -2
  583. package/dist/index.es227.js.map +1 -1
  584. package/dist/index.es228.js +31 -31
  585. package/dist/index.es23.js +1 -1
  586. package/dist/index.es23.js.map +1 -1
  587. package/dist/index.es230.js +22 -22
  588. package/dist/index.es230.js.map +1 -1
  589. package/dist/index.es24.js +4 -4
  590. package/dist/index.es25.js +39 -39
  591. package/dist/index.es25.js.map +1 -1
  592. package/dist/index.es26.js +21 -21
  593. package/dist/index.es26.js.map +1 -1
  594. package/dist/index.es266.js +20 -20
  595. package/dist/index.es267.js +298 -137
  596. package/dist/index.es267.js.map +1 -1
  597. package/dist/index.es268.js +2 -3675
  598. package/dist/index.es268.js.map +1 -1
  599. package/dist/index.es269.js +2 -2
  600. package/dist/index.es27.js +2 -2
  601. package/dist/index.es27.js.map +1 -1
  602. package/dist/index.es270.js +2 -2
  603. package/dist/index.es271.js +3675 -15
  604. package/dist/index.es271.js.map +1 -1
  605. package/dist/index.es272.js +5 -0
  606. package/dist/index.es272.js.map +1 -0
  607. package/dist/index.es274.js +5 -25
  608. package/dist/index.es274.js.map +1 -1
  609. package/dist/index.es275.js +23 -64
  610. package/dist/index.es275.js.map +1 -1
  611. package/dist/index.es276.js +66 -5
  612. package/dist/index.es276.js.map +1 -1
  613. package/dist/index.es277.js +11 -11
  614. package/dist/index.es278.js +32 -5
  615. package/dist/index.es278.js.map +1 -1
  616. package/dist/index.es279.js +621 -24
  617. package/dist/index.es279.js.map +1 -1
  618. package/dist/index.es28.js.map +1 -1
  619. package/dist/index.es280.js +10 -68
  620. package/dist/index.es280.js.map +1 -1
  621. package/dist/index.es281.js +15 -33
  622. package/dist/index.es281.js.map +1 -1
  623. package/dist/index.es284.js +10 -10
  624. package/dist/index.es284.js.map +1 -1
  625. package/dist/index.es285.js +49 -0
  626. package/dist/index.es285.js.map +1 -0
  627. package/dist/{index.es310.js → index.es286.js} +4 -4
  628. package/dist/{index.es310.js.map → index.es286.js.map} +1 -1
  629. package/dist/index.es287.js +11 -0
  630. package/dist/index.es287.js.map +1 -0
  631. package/dist/index.es288.js +128 -0
  632. package/dist/index.es288.js.map +1 -0
  633. package/dist/index.es289.js +18 -0
  634. package/dist/index.es289.js.map +1 -0
  635. package/dist/index.es29.js +1 -1
  636. package/dist/index.es29.js.map +1 -1
  637. package/dist/index.es290.js +138 -0
  638. package/dist/index.es290.js.map +1 -0
  639. package/dist/index.es291.js +206 -113
  640. package/dist/index.es291.js.map +1 -1
  641. package/dist/index.es292.js +13 -134
  642. package/dist/index.es292.js.map +1 -1
  643. package/dist/index.es293.js +69 -14
  644. package/dist/index.es293.js.map +1 -1
  645. package/dist/index.es294.js +176 -13
  646. package/dist/index.es294.js.map +1 -1
  647. package/dist/index.es295.js +50 -9
  648. package/dist/index.es295.js.map +1 -1
  649. package/dist/index.es296.js +9 -50
  650. package/dist/index.es296.js.map +1 -1
  651. package/dist/index.es297.js +4 -42
  652. package/dist/index.es297.js.map +1 -1
  653. package/dist/index.es30.js +1 -1
  654. package/dist/index.es30.js.map +1 -1
  655. package/dist/index.es300.js +9 -0
  656. package/dist/index.es300.js.map +1 -0
  657. package/dist/index.es301.js +28 -0
  658. package/dist/index.es301.js.map +1 -0
  659. package/dist/index.es302.js +32 -0
  660. package/dist/index.es302.js.map +1 -0
  661. package/dist/index.es303.js +128 -0
  662. package/dist/index.es303.js.map +1 -0
  663. package/dist/index.es304.js +138 -0
  664. package/dist/index.es304.js.map +1 -0
  665. package/dist/index.es305.js +17 -0
  666. package/dist/index.es305.js.map +1 -0
  667. package/dist/index.es306.js +33 -2
  668. package/dist/index.es306.js.map +1 -1
  669. package/dist/index.es307.js +42 -2
  670. package/dist/index.es307.js.map +1 -1
  671. package/dist/index.es31.js +1 -1
  672. package/dist/index.es31.js.map +1 -1
  673. package/dist/index.es311.js +41 -7
  674. package/dist/index.es311.js.map +1 -1
  675. package/dist/index.es312.js +11 -217
  676. package/dist/index.es312.js.map +1 -1
  677. package/dist/index.es313.js +199 -172
  678. package/dist/index.es313.js.map +1 -1
  679. package/dist/index.es314.js +22 -12
  680. package/dist/index.es314.js.map +1 -1
  681. package/dist/index.es315.js +390 -22
  682. package/dist/index.es315.js.map +1 -1
  683. package/dist/index.es316.js +29 -29
  684. package/dist/index.es316.js.map +1 -1
  685. package/dist/index.es32.js +5 -5
  686. package/dist/index.es32.js.map +1 -1
  687. package/dist/index.es326.js +24 -68
  688. package/dist/index.es326.js.map +1 -1
  689. package/dist/index.es327.js +28 -8
  690. package/dist/index.es327.js.map +1 -1
  691. package/dist/index.es328.js +5 -14
  692. package/dist/index.es328.js.map +1 -1
  693. package/dist/index.es329.js +42 -62
  694. package/dist/index.es329.js.map +1 -1
  695. package/dist/index.es33.js +1 -1
  696. package/dist/index.es33.js.map +1 -1
  697. package/dist/index.es330.js +5 -65
  698. package/dist/index.es330.js.map +1 -1
  699. package/dist/index.es331.js +3 -523
  700. package/dist/index.es331.js.map +1 -1
  701. package/dist/index.es332.js +23 -126
  702. package/dist/index.es332.js.map +1 -1
  703. package/dist/index.es333.js +105 -124
  704. package/dist/index.es333.js.map +1 -1
  705. package/dist/index.es334.js +15 -3
  706. package/dist/index.es334.js.map +1 -1
  707. package/dist/index.es335.js +519 -19
  708. package/dist/index.es335.js.map +1 -1
  709. package/dist/index.es336.js +126 -12
  710. package/dist/index.es336.js.map +1 -1
  711. package/dist/index.es337.js +127 -26
  712. package/dist/index.es337.js.map +1 -1
  713. package/dist/index.es338.js +65 -5
  714. package/dist/index.es338.js.map +1 -1
  715. package/dist/index.es339.js +68 -22
  716. package/dist/index.es339.js.map +1 -1
  717. package/dist/index.es34.js +1 -1
  718. package/dist/index.es34.js.map +1 -1
  719. package/dist/index.es340.js +12 -0
  720. package/dist/index.es340.js.map +1 -0
  721. package/dist/index.es341.js +17 -0
  722. package/dist/index.es341.js.map +1 -0
  723. package/dist/index.es342.js +65 -0
  724. package/dist/index.es342.js.map +1 -0
  725. package/dist/index.es343.js +7 -0
  726. package/dist/index.es343.js.map +1 -0
  727. package/dist/index.es344.js +26 -0
  728. package/dist/index.es344.js.map +1 -0
  729. package/dist/index.es345.js +16 -0
  730. package/dist/index.es345.js.map +1 -0
  731. package/dist/index.es346.js +31 -0
  732. package/dist/index.es346.js.map +1 -0
  733. package/dist/index.es347.js +8 -0
  734. package/dist/index.es347.js.map +1 -0
  735. package/dist/index.es348.js +26 -0
  736. package/dist/index.es348.js.map +1 -0
  737. package/dist/index.es35.js +14 -14
  738. package/dist/index.es35.js.map +1 -1
  739. package/dist/index.es36.js.map +1 -1
  740. package/dist/index.es37.js +6 -6
  741. package/dist/index.es37.js.map +1 -1
  742. package/dist/index.es38.js +1 -1
  743. package/dist/index.es38.js.map +1 -1
  744. package/dist/index.es39.js +1 -1
  745. package/dist/index.es39.js.map +1 -1
  746. package/dist/index.es40.js +1 -1
  747. package/dist/index.es40.js.map +1 -1
  748. package/dist/index.es41.js.map +1 -1
  749. package/dist/index.es42.js +1 -1
  750. package/dist/index.es42.js.map +1 -1
  751. package/dist/index.es43.js +1 -1
  752. package/dist/index.es43.js.map +1 -1
  753. package/dist/index.es44.js +1 -1
  754. package/dist/index.es44.js.map +1 -1
  755. package/dist/index.es45.js +1 -1
  756. package/dist/index.es45.js.map +1 -1
  757. package/dist/index.es46.js.map +1 -1
  758. package/dist/index.es47.js +2 -2
  759. package/dist/index.es47.js.map +1 -1
  760. package/dist/index.es48.js +1 -1
  761. package/dist/index.es48.js.map +1 -1
  762. package/dist/index.es49.js +1 -1
  763. package/dist/index.es49.js.map +1 -1
  764. package/dist/index.es5.js +4 -4
  765. package/dist/index.es50.js +1 -1
  766. package/dist/index.es50.js.map +1 -1
  767. package/dist/index.es51.js +1 -1
  768. package/dist/index.es51.js.map +1 -1
  769. package/dist/index.es52.js +1 -1
  770. package/dist/index.es52.js.map +1 -1
  771. package/dist/index.es53.js +1 -1
  772. package/dist/index.es53.js.map +1 -1
  773. package/dist/index.es54.js.map +1 -1
  774. package/dist/index.es55.js.map +1 -1
  775. package/dist/index.es56.js +2 -2
  776. package/dist/index.es56.js.map +1 -1
  777. package/dist/index.es57.js.map +1 -1
  778. package/dist/index.es58.js +1 -1
  779. package/dist/index.es58.js.map +1 -1
  780. package/dist/index.es59.js +1 -1
  781. package/dist/index.es59.js.map +1 -1
  782. package/dist/index.es6.js +2 -2
  783. package/dist/index.es6.js.map +1 -1
  784. package/dist/index.es60.js +1 -1
  785. package/dist/index.es60.js.map +1 -1
  786. package/dist/index.es61.js +1 -1
  787. package/dist/index.es61.js.map +1 -1
  788. package/dist/index.es62.js.map +1 -1
  789. package/dist/index.es63.js +1 -1
  790. package/dist/index.es63.js.map +1 -1
  791. package/dist/index.es64.js.map +1 -1
  792. package/dist/index.es65.js +45 -45
  793. package/dist/index.es65.js.map +1 -1
  794. package/dist/index.es66.js +1 -1
  795. package/dist/index.es66.js.map +1 -1
  796. package/dist/index.es67.js.map +1 -1
  797. package/dist/index.es68.js +25 -25
  798. package/dist/index.es68.js.map +1 -1
  799. package/dist/index.es69.js +23 -23
  800. package/dist/index.es69.js.map +1 -1
  801. package/dist/index.es7.js +2 -2
  802. package/dist/index.es7.js.map +1 -1
  803. package/dist/index.es70.js +1 -1
  804. package/dist/index.es70.js.map +1 -1
  805. package/dist/index.es71.js.map +1 -1
  806. package/dist/index.es72.js.map +1 -1
  807. package/dist/index.es73.js.map +1 -1
  808. package/dist/index.es74.js.map +1 -1
  809. package/dist/index.es75.js.map +1 -1
  810. package/dist/index.es76.js.map +1 -1
  811. package/dist/index.es77.js.map +1 -1
  812. package/dist/index.es78.js.map +1 -1
  813. package/dist/index.es79.js.map +1 -1
  814. package/dist/index.es8.js +2 -2
  815. package/dist/index.es8.js.map +1 -1
  816. package/dist/index.es80.js.map +1 -1
  817. package/dist/index.es81.js.map +1 -1
  818. package/dist/index.es82.js.map +1 -1
  819. package/dist/index.es83.js.map +1 -1
  820. package/dist/index.es84.js.map +1 -1
  821. package/dist/index.es85.js.map +1 -1
  822. package/dist/index.es86.js +2 -2
  823. package/dist/index.es87.js +17 -17
  824. package/dist/index.es87.js.map +1 -1
  825. package/dist/index.es88.js.map +1 -1
  826. package/dist/index.es89.js +2 -2
  827. package/dist/index.es9.js +3 -3
  828. package/dist/index.es9.js.map +1 -1
  829. package/dist/index.es90.js +1 -1
  830. package/dist/index.es90.js.map +1 -1
  831. package/dist/index.es91.js +2 -2
  832. package/dist/index.es91.js.map +1 -1
  833. package/dist/index.es92.js +2 -2
  834. package/dist/index.es92.js.map +1 -1
  835. package/dist/index.es93.js +2 -2
  836. package/dist/index.es93.js.map +1 -1
  837. package/dist/index.es94.js +2 -2
  838. package/dist/index.es94.js.map +1 -1
  839. package/dist/index.es95.js +2 -2
  840. package/dist/index.es95.js.map +1 -1
  841. package/dist/index.es96.js +2 -2
  842. package/dist/index.es96.js.map +1 -1
  843. package/dist/index.es97.js +2 -2
  844. package/dist/index.es97.js.map +1 -1
  845. package/dist/index.es98.js +2 -2
  846. package/dist/index.es98.js.map +1 -1
  847. package/dist/index.es99.js +2 -2
  848. package/dist/index.es99.js.map +1 -1
  849. package/package.json +107 -107
  850. package/readme.md +42 -42
  851. package/dist/index.cjs158.js +0 -2
  852. package/dist/index.cjs158.js.map +0 -1
  853. package/dist/index.cjs163.js.map +0 -1
  854. package/dist/index.cjs165.js +0 -2
  855. package/dist/index.cjs165.js.map +0 -1
  856. package/dist/index.cjs283.js +0 -2
  857. package/dist/index.cjs283.js.map +0 -1
  858. package/dist/index.cjs308.js +0 -2
  859. package/dist/index.cjs308.js.map +0 -1
  860. package/dist/index.cjs309.js +0 -2
  861. package/dist/index.cjs309.js.map +0 -1
  862. package/dist/index.cjs317.js +0 -2
  863. package/dist/index.cjs317.js.map +0 -1
  864. package/dist/index.cjs318.js +0 -2
  865. package/dist/index.cjs318.js.map +0 -1
  866. package/dist/index.cjs319.js +0 -2
  867. package/dist/index.cjs319.js.map +0 -1
  868. package/dist/index.cjs320.js +0 -2
  869. package/dist/index.cjs320.js.map +0 -1
  870. package/dist/index.cjs321.js +0 -2
  871. package/dist/index.cjs321.js.map +0 -1
  872. package/dist/index.cjs322.js +0 -2
  873. package/dist/index.cjs322.js.map +0 -1
  874. package/dist/index.cjs323.js +0 -2
  875. package/dist/index.cjs323.js.map +0 -1
  876. package/dist/index.cjs324.js +0 -5
  877. package/dist/index.cjs324.js.map +0 -1
  878. package/dist/index.cjs325.js +0 -2
  879. package/dist/index.cjs325.js.map +0 -1
  880. package/dist/index.es158.js +0 -6
  881. package/dist/index.es158.js.map +0 -1
  882. package/dist/index.es163.js.map +0 -1
  883. package/dist/index.es165.js +0 -5
  884. package/dist/index.es165.js.map +0 -1
  885. package/dist/index.es283.js +0 -625
  886. package/dist/index.es283.js.map +0 -1
  887. package/dist/index.es308.js +0 -14
  888. package/dist/index.es308.js.map +0 -1
  889. package/dist/index.es309.js +0 -7
  890. package/dist/index.es309.js.map +0 -1
  891. package/dist/index.es317.js +0 -8
  892. package/dist/index.es317.js.map +0 -1
  893. package/dist/index.es318.js +0 -208
  894. package/dist/index.es318.js.map +0 -1
  895. package/dist/index.es319.js +0 -25
  896. package/dist/index.es319.js.map +0 -1
  897. package/dist/index.es320.js +0 -396
  898. package/dist/index.es320.js.map +0 -1
  899. package/dist/index.es321.js +0 -8
  900. package/dist/index.es321.js.map +0 -1
  901. package/dist/index.es322.js +0 -6
  902. package/dist/index.es322.js.map +0 -1
  903. package/dist/index.es323.js +0 -27
  904. package/dist/index.es323.js.map +0 -1
  905. package/dist/index.es324.js +0 -113
  906. package/dist/index.es324.js.map +0 -1
  907. package/dist/index.es325.js +0 -19
  908. package/dist/index.es325.js.map +0 -1
  909. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),g=require("./index.cjs274.js"),a=require("./index.cjs154.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=y(m);var p=i.forwardRef((e,r)=>{const{children:t,...n}=e,o=i.Children.toArray(t),l=o.find(j);if(l){const s=l.props.children,c=o.map(f=>f===l?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:f);return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:t})});p.displayName="Slot";var u=i.forwardRef((e,r)=>{const{children:t,...n}=e;if(i.isValidElement(t)){const o=R(t),l=b(n,t.props);return t.type!==i.Fragment&&(l.ref=r?g.composeRefs(r,o):o),i.cloneElement(t,l)}return i.Children.count(t)>1?i.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:e});function j(e){return i.isValidElement(e)&&e.type===d}function b(e,r){const t={...r};for(const n in r){const o=e[n],l=r[n];/^on[A-Z]/.test(n)?o&&l?t[n]=(...c)=>{l(...c),o(...c)}:o&&(t[n]=o):n==="style"?t[n]={...o,...l}:n==="className"&&(t[n]=[o,l].filter(Boolean).join(" "))}return{...e,...t}}function R(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}exports.Slot=p;exports.Slottable=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=a(r);var u=globalThis!=null&&globalThis.document?n.useLayoutEffect:()=>{};exports.useLayoutEffect=u;
2
2
  //# sourceMappingURL=index.cjs297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs297.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAIG,IAACA,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAA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ACTF,EAAcC,CAAQ,EAAIC,GAEnBD,IAAa,QACtBD,EAAcC,CAAQ,EAAI,CAAE,GAAGC,EAAe,GAAGC,CAAgB,EACxDF,IAAa,cACtBD,EAAcC,CAAQ,EAAI,CAACC,EAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGpB,EAAW,GAAGiB,CAAe,CAC3C,CACA,SAASP,EAAcY,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs297.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":"mYAEG,IAACA,EAA2B,6BAAY,SAAYC,EAAM,gBAAkB,IAAM,CACrF","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardDocument/CardDocument.css');const e=require("./index.cjs154.js"),d=require("./index.cjs156.js");;/* empty css */const b=require("./index.cjs173.js"),y=require("./index.cjs194.js"),q=require("./index.cjs64.js"),s=require("./index.cjs9.js"),l=require("./index.cjs10.js"),u=require("./index.cjs25.js"),v=({eventNumber:r,date:m="--/--/--",documentType:j,documentTitle:p,label:n,subtitle:i,action:x,CTA:o,handleDownloadDocument:R,hrefDocument:c="#",isLoading:t=!1,openDocumentLabel:h="Apri documento",releaseDateLabel:E="Emesso il",eventLabel:f="Evento n."})=>{const w=y.useIsDesktop(),a=()=>x?e.jsxRuntimeExports.jsxs(s.Row,{alignItems:"center",className:d.clsx(!t&&"cursor-pointer","text-decoration-none text-primary"),onClick:t?void 0:R,children:[e.jsxRuntimeExports.jsx("p",{children:x}),e.jsxRuntimeExports.jsx(q.Loader,{loading:t,className:"ml-x8"})]}):null;return e.jsxRuntimeExports.jsxs("div",{className:d.clsx("ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7"),children:[e.jsxRuntimeExports.jsxs(s.Row,{as:"header",justifyContent:"space-between",alignItems:"center",py:"x8",px:"x24",className:"ui-document-header",children:[e.jsxRuntimeExports.jsx(s.Row,{children:r?`${f} ${r}`:""}),e.jsxRuntimeExports.jsxs(s.Row,{children:[E," ",m]})]}),e.jsxRuntimeExports.jsxs("main",{className:"p-x16",children:[e.jsxRuntimeExports.jsxs(l.Col,{pb:"x32",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx(s.Row,{pb:"x8",children:j}),e.jsxRuntimeExports.jsx("h4",{className:"fs-5 text-slate-20",children:p}),e.jsxRuntimeExports.jsx(s.Row,{pt:"x8",children:n&&e.jsxRuntimeExports.jsx("div",{className:"bg-secondary text-white rounded py-x4 px-x16",style:{width:"max-content"},children:n})})]}),i&&e.jsxRuntimeExports.jsx("p",{className:"fw-regular fs-6 pt-x8",children:i})]}),w?e.jsxRuntimeExports.jsxs(s.Row,{as:"footer",justifyContent:"space-between",alignItems:"center",children:[a(),o&&e.jsxRuntimeExports.jsx(u.Button,{className:"filter-button fs-7 text-primary fw-semibold",variant:"secondary",size:"3",asLink:"a",href:c,children:o})]}):e.jsxRuntimeExports.jsxs(l.Col,{as:"footer",gap:"x16",children:[a(),e.jsxRuntimeExports.jsx(b.Divider,{bg:"border-divider"}),e.jsxRuntimeExports.jsx(u.Button,{className:"filter-button fs-7 fw-semibold w-full",variant:"secondary",size:"3",asLink:"a",href:c,disabled:!0,children:h})]})]})]})};exports.CardDocument=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardDocument/CardDocument.css');const e=require("./index.cjs154.js"),d=require("./index.cjs155.js");;/* empty css */const b=require("./index.cjs173.js"),y=require("./index.cjs194.js"),q=require("./index.cjs64.js"),s=require("./index.cjs9.js"),l=require("./index.cjs10.js"),u=require("./index.cjs25.js"),N=({eventNumber:n,date:m="--/--/--",documentType:j,documentTitle:p,label:r,subtitle:i,action:x,CTA:o,handleDownloadDocument:R,hrefDocument:c="#",isLoading:t=!1,openDocumentLabel:h="Apri documento",releaseDateLabel:f="Emesso il",eventLabel:E="Evento n."})=>{const w=y.useIsDesktop(),a=()=>x?e.jsxRuntimeExports.jsxs(s.Row,{alignItems:"center",className:d.clsx(!t&&"cursor-pointer","text-decoration-none text-primary"),onClick:t?void 0:R,children:[e.jsxRuntimeExports.jsx("p",{children:x}),e.jsxRuntimeExports.jsx(q.Loader,{loading:t,className:"ml-x8"})]}):null;return e.jsxRuntimeExports.jsxs("div",{className:d.clsx("ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7"),children:[e.jsxRuntimeExports.jsxs(s.Row,{as:"header",justifyContent:"space-between",alignItems:"center",py:"x8",px:"x24",className:"ui-document-header",children:[e.jsxRuntimeExports.jsx(s.Row,{children:n?`${E} ${n}`:""}),e.jsxRuntimeExports.jsxs(s.Row,{children:[f," ",m]})]}),e.jsxRuntimeExports.jsxs("main",{className:"p-x16",children:[e.jsxRuntimeExports.jsxs(l.Col,{pb:"x32",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx(s.Row,{pb:"x8",children:j}),e.jsxRuntimeExports.jsx("h4",{className:"fs-5 text-slate-20",children:p}),e.jsxRuntimeExports.jsx(s.Row,{pt:"x8",children:r&&e.jsxRuntimeExports.jsx("div",{className:"bg-secondary text-white rounded py-x4 px-x16",style:{width:"max-content"},children:r})})]}),i&&e.jsxRuntimeExports.jsx("p",{className:"fw-regular fs-6 pt-x8",children:i})]}),w?e.jsxRuntimeExports.jsxs(s.Row,{as:"footer",justifyContent:"space-between",alignItems:"center",children:[a(),o&&e.jsxRuntimeExports.jsx(u.Button,{className:"filter-button fs-7 text-primary fw-semibold",variant:"secondary",size:"3",asLink:"a",href:c,children:o})]}):e.jsxRuntimeExports.jsxs(l.Col,{as:"footer",gap:"x16",children:[a(),e.jsxRuntimeExports.jsx(b.Divider,{bg:"border-divider"}),e.jsxRuntimeExports.jsx(u.Button,{className:"filter-button fs-7 fw-semibold w-full",variant:"secondary",size:"3",asLink:"a",href:c,disabled:!0,children:h})]})]})]})};exports.CardDocument=N;
2
2
  //# sourceMappingURL=index.cjs30.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./CardDocument.scss\";\r\nimport { Button, Col, Loader, Row } from \"@/components\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\r\n\r\ntype CardDocumentProps = {\r\n eventNumber?: string;\r\n date?: string | number;\r\n documentType?: string;\r\n documentTitle: string;\r\n label?: string;\r\n subtitle?: string;\r\n action?: string;\r\n CTA?: string;\r\n iconView?: \"attachments\" | \"obscured\";\r\n favorite?: boolean;\r\n handleDownloadDocument?: () => void;\r\n hrefDocument?: string;\r\n isLoading?: boolean;\r\n openDocumentLabel?: string;\r\n releaseDateLabel?: string;\r\n eventLabel?: string;\r\n};\r\n\r\nexport const CardDocument = ({\r\n eventNumber,\r\n date = \"--/--/--\",\r\n documentType,\r\n documentTitle,\r\n label,\r\n subtitle,\r\n action,\r\n CTA,\r\n handleDownloadDocument,\r\n hrefDocument = \"#\",\r\n isLoading = false,\r\n openDocumentLabel = \"Apri documento\",\r\n releaseDateLabel = \"Emesso il\",\r\n eventLabel = \"Evento n.\",\r\n}: CardDocumentProps) => {\r\n const isDesktop = useIsDesktop();\r\n\r\n const renderDownloadAction = () => {\r\n if (!action) return null;\r\n return (\r\n <Row\r\n alignItems={\"center\"}\r\n className={clsx(\r\n !isLoading && \"cursor-pointer\",\r\n \"text-decoration-none text-primary\",\r\n )}\r\n onClick={isLoading ? undefined : handleDownloadDocument}\r\n >\r\n <p>{action}</p>\r\n <Loader loading={isLoading} className={\"ml-x8\"} />\r\n </Row>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\r\n )}\r\n >\r\n <Row\r\n as={\"header\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n py={\"x8\"}\r\n px={\"x24\"}\r\n className={\"ui-document-header\"}\r\n >\r\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\r\n <Row>\r\n {releaseDateLabel} {date}\r\n </Row>\r\n </Row>\r\n <main className={\"p-x16\"}>\r\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\r\n <div>\r\n <Row pb={\"x8\"}>{documentType}</Row>\r\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\r\n <Row pt={\"x8\"}>\r\n {label && (\r\n <div\r\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\r\n style={{ width: \"max-content\" }}\r\n >\r\n {label}\r\n </div>\r\n )}\r\n </Row>\r\n </div>\r\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\r\n </Col>\r\n {!isDesktop ? (\r\n <Col as={\"footer\"} gap={\"x16\"}>\r\n {renderDownloadAction()}\r\n <Divider bg={\"border-divider\"} />\r\n <Button\r\n className=\"filter-button fs-7 fw-semibold w-full\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n disabled\r\n >\r\n {openDocumentLabel}\r\n </Button>\r\n </Col>\r\n ) : (\r\n <Row\r\n as={\"footer\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n >\r\n {renderDownloadAction()}\r\n {CTA && (\r\n <Button\r\n className=\"filter-button fs-7 text-primary fw-semibold\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n >\r\n {CTA}\r\n </Button>\r\n )}\r\n </Row>\r\n )}\r\n </main>\r\n </div>\r\n );\r\n};\r\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":"4WAyBaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EAAO,WACP,aAAAC,EACA,cAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,IAAAC,EACA,uBAAAC,EACA,aAAAC,EAAe,IACf,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,iBACpB,iBAAAC,EAAmB,YACnB,WAAAC,EAAa,WACf,IAAyB,CACvB,MAAMC,EAAYC,EAAAA,aAAa,EAEzBC,EAAuB,IACtBV,EAEHW,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,SACZ,UAAWC,EAAA,KACT,CAACT,GAAa,iBACd,mCACF,EACA,QAASA,EAAY,OAAYF,EAEjC,SAAA,CAAAY,EAAAA,kBAAAA,IAAC,KAAG,SAAOd,CAAA,CAAA,EACVc,EAAA,kBAAA,IAAAC,EAAA,OAAA,CAAO,QAASX,EAAW,UAAW,OAAS,CAAA,CAAA,CAAA,CAClD,EAZkB,KAiBpB,OAAAO,EAAA,kBAAA,KAAC,M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AAU,IAAK,MACrB,SAAA,CAAqBN,EAAA,EACtBI,EAAAA,kBAAAA,IAACI,EAAQ,QAAA,CAAA,GAAI,gBAAkB,CAAA,EAC/BJ,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAU,yCACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMd,EACN,SAAQ,GAEP,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n}: CardDocumentProps) => {\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n as={\"header\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n py={\"x8\"}\n px={\"x24\"}\n className={\"ui-document-header\"}\n >\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\n <Row>\n {releaseDateLabel} {date}\n </Row>\n </Row>\n <main className={\"p-x16\"}>\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\n <div>\n <Row pb={\"x8\"}>{documentType}</Row>\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\n <Row pt={\"x8\"}>\n {label && (\n <div\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\n style={{ width: \"max-content\" }}\n >\n {label}\n </div>\n )}\n </Row>\n </div>\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\n </Col>\n {!isDesktop ? (\n <Col as={\"footer\"} gap={\"x16\"}>\n {renderDownloadAction()}\n <Divider bg={\"border-divider\"} />\n <Button\n className=\"filter-button fs-7 fw-semibold w-full\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n disabled\n >\n {openDocumentLabel}\n </Button>\n </Col>\n ) : (\n <Row\n as={\"footer\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n >\n {renderDownloadAction()}\n {CTA && (\n <Button\n className=\"filter-button fs-7 text-primary fw-semibold\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n >\n {CTA}\n </Button>\n )}\n </Row>\n )}\n </main>\n </div>\n );\n};\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":"4WAyBaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EA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cjB,EAAA,EACnDiB,EAAA,kBAAA,IAAAF,EAAA,IAAA,CAAI,GAAI,KACN,SACCd,GAAAgB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAW,+CACX,MAAO,CAAE,MAAO,aAAc,EAE7B,SAAAhB,CAAA,CAAA,CAGP,CAAA,CAAA,EACF,EACCC,GAAYe,EAAA,kBAAA,IAAC,IAAE,CAAA,UAAW,wBAA0B,SAASf,CAAA,CAAA,CAAA,EAChE,EACES,EAgBAG,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gBAChB,WAAY,SAEX,SAAA,CAAqBF,EAAA,EACrBT,GACCa,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAU,8CACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMd,EAEL,SAAAF,CAAA,CAAA,CACH,CAAA,CAAA,EA9BJU,EAAA,kBAAA,KAACK,OAAI,GAAI,SAAU,IAAK,MACrB,SAAA,CAAqBN,EAAA,EACtBI,EAAAA,kBAAAA,IAACI,EAAQ,QAAA,CAAA,GAAI,gBAAkB,CAAA,EAC/BJ,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAU,yCACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMd,EACN,SAAQ,GAEP,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=c(o);function s(e){const t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}exports.usePrevious=s;
2
+ //# sourceMappingURL=index.cjs300.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs300.js","sources":["../node_modules/@radix-ui/react-use-previous/dist/index.mjs"],"sourcesContent":["// packages/react/use-previous/src/usePrevious.tsx\nimport * as React from \"react\";\nfunction usePrevious(value) {\n const ref = React.useRef({ value, previous: value });\n return React.useMemo(() => {\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [value]);\n}\nexport {\n usePrevious\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["usePrevious","value","ref","React"],"mappings":"mYAEA,SAASA,EAAYC,EAAO,CAC1B,MAAMC,EAAMC,EAAM,OAAO,CAAE,MAAAF,EAAO,SAAUA,EAAO,EACnD,OAAOE,EAAM,QAAQ,KACfD,EAAI,QAAQ,QAAUD,IACxBC,EAAI,QAAQ,SAAWA,EAAI,QAAQ,MACnCA,EAAI,QAAQ,MAAQD,GAEfC,EAAI,QAAQ,UAClB,CAACD,CAAK,CAAC,CACZ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),d=require("./index.cjs297.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=b(a);function z(e){const[r,t]=S.useState(void 0);return d.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let n,s;if("borderBoxSize"in c){const u=c.borderBoxSize,f=Array.isArray(u)?u[0]:u;n=f.inlineSize,s=f.blockSize}else n=e.offsetWidth,s=e.offsetHeight;t({width:n,height:s})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
2
+ //# sourceMappingURL=index.cjs301.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs301.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/useSize.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":"kaAGA,SAASA,EAAQC,EAAS,CACxB,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAM,SAAS,MAAM,EAC7CC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAIJ,EAAS,CACXE,EAAQ,CAAE,MAAOF,EAAQ,YAAa,OAAQA,EAAQ,aAAc,EACpE,MAAMK,EAAiB,IAAI,eAAgBC,GAAY,CAIrD,GAHI,CAAC,MAAM,QAAQA,CAAO,GAGtB,CAACA,EAAQ,OACX,OAEF,MAAMC,EAAQD,EAAQ,CAAC,EACvB,IAAIE,EACAC,EACJ,GAAI,kBAAmBF,EAAO,CAC5B,MAAMG,EAAkBH,EAAM,cACxBI,EAAa,MAAM,QAAQD,CAAe,EAAIA,EAAgB,CAAC,EAAIA,EACzEF,EAAQG,EAAW,WACnBF,EAASE,EAAW,SAC9B,MACUH,EAAQR,EAAQ,YAChBS,EAAST,EAAQ,aAEnBE,EAAQ,CAAE,MAAAM,EAAO,OAAAC,EAAQ,CACjC,CAAO,EACD,OAAAJ,EAAe,QAAQL,EAAS,CAAE,IAAK,YAAY,CAAE,EAC9C,IAAMK,EAAe,UAAUL,CAAO,CACnD,MACME,EAAQ,MAAM,CAEpB,EAAK,CAACF,CAAO,CAAC,EACLC,CACT","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("react-dom");const s=require("./index.cjs311.js"),l=require("./index.cjs154.js");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=f(c);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],p=m.reduce((e,t)=>{const r=d.forwardRef((i,n)=>{const{asChild:o,...u}=i,a=o?s.Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(a,{...u,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});exports.Primitive=p;
2
+ //# sourceMappingURL=index.cjs302.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs302.js","sources":["../node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","Slot","jsx"],"mappings":"4dAKA,IAAIA,EAAQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,IACF,EACIC,EAAYD,EAAM,OAAO,CAACE,EAAWC,IAAS,CAChD,MAAMC,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACrD,KAAM,CAAE,QAAAC,EAAS,GAAGC,CAAc,EAAKH,EACjCI,EAAOF,EAAUG,EAAAA,KAAOR,EAC9B,OAAI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,CAAC,EAAI,IAEZS,EAAAA,kBAAAA,IAAIF,EAAM,CAAE,GAAGD,EAAgB,IAAKF,EAAc,CAC7E,CAAG,EACD,OAAAH,EAAK,YAAc,aAAaD,CAAI,GAC7B,CAAE,GAAGD,EAAW,CAACC,CAAI,EAAGC,CAAM,CACvC,EAAG,CAAE,CAAA","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("./index.cjs274.js"),p=require("./index.cjs306.js"),R=require("./index.cjs275.js"),x=require("./index.cjs284.js"),H=require("./index.cjs312.js"),w=require("./index.cjs154.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...v}=e,c=o.useContext(T),[u,F]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=o.useState({}),W=R.useComposedRefs(t,i=>F(i)),m=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=m.indexOf(_),P=u?m.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,D=P>=A,I=Y(i=>{const E=i.target,C=[...c.branches].some(b=>b.contains(E));!D||C||(r==null||r(i),l==null||l(i),i.defaultPrevented||d==null||d())},f),O=G(i=>{const E=i.target;[...c.branches].some(b=>b.contains(E))||(a==null||a(i),l==null||l(i),i.defaultPrevented||d==null||d())},f);return H.useEscapeKeydown(i=>{P===c.layers.size-1&&(s==null||s(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},f),o.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=L)}},[u,f,n,c]),o.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),o.useEffect(()=>{const i=()=>N({});return document.addEventListener(h,i),()=>document.removeEventListener(h,i)},[]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:W,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:y.composeEventHandlers(e.onFocusCapture,O.onFocusCapture),onBlurCapture:y.composeEventHandlers(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:y.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})});S.displayName=z;var X="DismissableLayerBranch",B=o.forwardRef((e,t)=>{const n=o.useContext(T),s=o.useRef(null),r=R.useComposedRefs(t,s);return o.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:r})});B.displayName=X;function Y(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const a=d=>{if(d.target&&!s.current){let v=function(){j(M,n,c,{discrete:!0})};const c={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function G(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1);return o.useEffect(()=>{const r=a=>{a.target&&!s.current&&j($,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function j(e,t,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?p.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
+ //# sourceMappingURL=index.cjs303.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs303.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"6jBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,GAChC,CAAC,EACGC,EAAmBD,EAAM,WAC3B,CAACE,EAAOC,IAAiB,CACvB,KAAM,CACJ,4BAAAC,EAA8B,GAC9B,gBAA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AAc,oBAAoB,cAAegC,CAAiB,EAClEhC,EAAc,oBAAoB,QAAS+B,EAAe,OAAO,CAClE,CACL,EAAK,CAAC/B,EAAe4B,CAAwB,CAAC,EACrC,CAEL,qBAAsB,IAAME,EAA4B,QAAU,EACnE,CACH,CACA,SAASZ,EAAgBzB,EAAgBO,EAAgB,mCAAY,SAAU,CAC7E,MAAMqC,EAAqBR,EAAc,eAACpC,CAAc,EAClD6C,EAA4BpD,EAAM,OAAO,EAAK,EACpDA,OAAAA,EAAM,UAAU,IAAM,CACpB,MAAMqD,EAAe1B,GAAU,CACzBA,EAAM,QAAU,CAACyB,EAA0B,SAE7CJ,EAA6BnD,EAAesD,EADxB,CAAE,cAAexB,CAAO,EACiC,CAC3E,SAAU,EACpB,CAAS,CAEJ,EACD,OAAAb,EAAc,iBAAiB,UAAWuC,CAAW,EAC9C,IAAMvC,EAAc,oBAAoB,UAAWuC,CAAW,CACzE,EAAK,CAACvC,EAAeqC,CAAkB,CAAC,EAC/B,CACL,eAAgB,IAAMC,EAA0B,QAAU,GAC1D,cAAe,IAAMA,EAA0B,QAAU,EAC1D,CACH,CACA,SAASlB,GAAiB,CACxB,MAAMP,EAAQ,IAAI,YAAYhC,CAAc,EAC5C,SAAS,cAAcgC,CAAK,CAC9B,CACA,SAASqB,EAA6BM,EAAMC,EAASC,EAAQ,CAAE,SAAAC,CAAQ,EAAI,CACzE,MAAM7B,EAAS4B,EAAO,cAAc,OAC9B7B,EAAQ,IAAI,YAAY2B,EAAM,CAAE,QAAS,GAAO,WAAY,GAAM,OAAAE,EAAQ,EAC5ED,GAAS3B,EAAO,iBAAiB0B,EAAMC,EAAS,CAAE,KAAM,GAAM,EAC9DE,EACFC,EAA2B,4BAAC9B,EAAQD,CAAK,EAEzCC,EAAO,cAAcD,CAAK,CAE9B","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react"),x=require("./index.cjs275.js"),A=require("./index.cjs306.js"),O=require("./index.cjs284.js"),k=require("./index.cjs154.js");function w(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const f=w(U);var F="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},K="FocusScope",C=f.forwardRef((e,n)=>{const{loop:t=!1,trapped:s=!1,onMountAutoFocus:p,onUnmountAutoFocus:I,...L}=e,[o,P]=f.useState(null),E=O.useCallbackRef(p),v=O.useCallbackRef(I),b=f.useRef(null),_=x.useComposedRefs(n,u=>P(u)),a=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let u=function(i){if(a.paused||!o)return;const c=i.target;o.contains(c)?b.current=c:d(b.current,{select:!0})},l=function(i){if(a.paused||!o)return;const c=i.relatedTarget;c!==null&&(o.contains(c)||d(b.current,{select:!0}))},r=function(i){if(document.activeElement===document.body)for(const T of i)T.removedNodes.length>0&&d(o)};document.addEventListener("focusin",u),document.addEventListener("focusout",l);const m=new MutationObserver(r);return o&&m.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",l),m.disconnect()}}},[s,o,a.paused]),f.useEffect(()=>{if(o){N.add(a);const u=document.activeElement;if(!o.contains(u)){const r=new CustomEvent(F,S);o.addEventListener(F,E),o.dispatchEvent(r),r.defaultPrevented||(j(W(R(o)),{select:!0}),document.activeElement===u&&d(o))}return()=>{o.removeEventListener(F,E),setTimeout(()=>{const r=new CustomEvent(y,S);o.addEventListener(y,v),o.dispatchEvent(r),r.defaultPrevented||d(u??document.body,{select:!0}),o.removeEventListener(y,v),N.remove(a)},0)}}},[o,E,v,a]);const M=f.useCallback(u=>{if(!t&&!s||a.paused)return;const l=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,r=document.activeElement;if(l&&r){const m=u.currentTarget,[i,c]=D(m);i&&c?!u.shiftKey&&r===c?(u.preventDefault(),t&&d(i,{select:!0})):u.shiftKey&&r===i&&(u.preventDefault(),t&&d(c,{select:!0})):r===m&&u.preventDefault()}},[t,s,a.paused]);return k.jsxRuntimeExports.jsx(A.Primitive.div,{tabIndex:-1,...L,ref:_,onKeyDown:M})});C.displayName=K;function j(e,{select:n=!1}={}){const t=document.activeElement;for(const s of e)if(d(s,{select:n}),document.activeElement!==t)return}function D(e){const n=R(e),t=h(n,e),s=h(n.reverse(),e);return[t,s]}function R(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const p=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||p?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function h(e,n){for(const t of e)if(!q(t,{upTo:n}))return t}function q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function d(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&H(e)&&n&&e.select()}}var N=V();function V(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=g(e,n),e.unshift(n)},remove(n){var t;e=g(e,n),(t=e[0])==null||t.resume()}}}function g(e,n){const t=[...e],s=t.indexOf(n);return s!==-1&&t.splice(s,1),t}function W(e){return e.filter(n=>n.tagName!=="A")}exports.FocusScope=C;
2
+ //# sourceMappingURL=index.cjs304.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs304.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-scope/src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","_a","array","item","updatedArray","index","items"],"mappings":"+fAQA,IAAIA,EAAqB,8BACrBC,EAAuB,gCACvBC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAmB,aACnBC,EAAaC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACzD,KAAM,CACJ,KAAAC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D,EAAa,OAAOC,EAAO,CAAC,EAEvBD,CACT,CACA,SAAS/B,EAAYiC,EAAO,CAC1B,OAAOA,EAAM,OAAQH,GAASA,EAAK,UAAY,GAAG,CACpD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("react-dom"),f=require("./index.cjs306.js"),p=require("./index.cjs297.js"),m=require("./index.cjs154.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=P(l);var b="Portal",i=c.forwardRef((e,r)=>{var a;const{container:t,...o}=e,[u,s]=c.useState(!1);p.useLayoutEffect(()=>s(!0),[]);const n=t||u&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return n?d.createPortal(m.jsxRuntimeExports.jsx(f.Primitive.div,{...o,ref:r}),n):null});i.displayName=b;exports.Portal=i;
2
+ //# sourceMappingURL=index.cjs305.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs305.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/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":"ufAQA,IAAIA,EAAc,SACdC,EAASC,EAAM,WAAW,CAACC,EAAOC,IAAiB,OACrD,KAAM,CAAE,UAAWC,EAAe,GAAGC,CAAa,EAAGH,EAC/C,CAACI,EAASC,CAAU,EAAIN,EAAM,SAAS,EAAK,EAClDO,EAAAA,gBAAgB,IAAMD,EAAW,EAAI,EAAG,CAAA,CAAE,EAC1C,MAAME,EAAYL,GAAiBE,KAAWI,EAAA,mCAAY,WAAZ,YAAAA,EAAsB,MACpE,OAAOD,EAAYE,EAAS,aAA6BC,EAAG,kBAAA,IAACC,EAAS,UAAC,IAAK,CAAE,GAAGR,EAAa,IAAKF,CAAc,CAAA,EAAGM,CAAS,EAAI,IACnI,CAAC,EACDT,EAAO,YAAcD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("react-dom"),f=require("./index.cjs307.js"),d=require("./index.cjs154.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const p=n(u),m=n(l);var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],b=v.reduce((e,t)=>{const i=p.forwardRef((r,o)=>{const{asChild:c,...s}=r,a=c?f.Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsxRuntimeExports.jsx(a,{...s,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function y(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=b;exports.dispatchDiscreteCustomEvent=y;
2
2
  //# sourceMappingURL=index.cjs306.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs306.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs306.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","Slot","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":"+dAKA,IAAIA,EAAQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,IACF,EACIC,EAAYD,EAAM,OAAO,CAACE,EAAWC,IAAS,CAChD,MAAMC,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACrD,KAAM,CAAE,QAAAC,EAAS,GAAGC,CAAc,EAAKH,EACjCI,EAAOF,EAAUG,EAAAA,KAAOR,EAC9B,OAAI,OAAO,OAAW,MACpB,OAAO,OAAO,IAAI,UAAU,CAAC,EAAI,IAEZS,EAAAA,kBAAAA,IAAIF,EAAM,CAAE,GAAGD,EAAgB,IAAKF,EAAc,CAC7E,CAAG,EACD,OAAAH,EAAK,YAAc,aAAaD,CAAI,GAC7B,CAAE,GAAGD,EAAW,CAACC,CAAI,EAAGC,CAAM,CACvC,EAAG,CAAE,CAAA,EACL,SAASS,EAA4BC,EAAQC,EAAO,CAC9CD,GAAQE,EAAS,UAAU,IAAMF,EAAO,cAAcC,CAAK,CAAC,CAClE","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),g=require("./index.cjs275.js"),a=require("./index.cjs154.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=y(m);var p=i.forwardRef((e,r)=>{const{children:t,...n}=e,o=i.Children.toArray(t),l=o.find(j);if(l){const s=l.props.children,c=o.map(f=>f===l?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:f);return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:t})});p.displayName="Slot";var u=i.forwardRef((e,r)=>{const{children:t,...n}=e;if(i.isValidElement(t)){const o=R(t),l=b(n,t.props);return t.type!==i.Fragment&&(l.ref=r?g.composeRefs(r,o):o),i.cloneElement(t,l)}return i.Children.count(t)>1?i.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:e});function j(e){return i.isValidElement(e)&&e.type===d}function b(e,r){const t={...r};for(const n in r){const o=e[n],l=r[n];/^on[A-Z]/.test(n)?o&&l?t[n]=(...c)=>{l(...c),o(...c)}:o&&(t[n]=o):n==="style"?t[n]={...o,...l}:n==="className"&&(t[n]=[o,l].filter(Boolean).join(" "))}return{...e,...t}}function R(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}exports.Slot=p;exports.Slottable=d;
2
2
  //# sourceMappingURL=index.cjs307.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs307.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs307.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAIG,IAACA,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAIC,EAAW,CAAE,GAAGR,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACtL,CACE,OAAuBE,EAAAA,kBAAAA,IAAIC,EAAW,CAAE,GAAGR,EAAW,IAAKF,EAAc,SAAAC,EAAU,CACrF,CAAC,EACDJ,EAAK,YAAc,OACnB,IAAIa,EAAYZ,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACxD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EACnC,GAAID,EAAM,eAAeG,CAAQ,EAAG,CAClC,MAAMU,EAAcC,EAAcX,CAAQ,EACpCY,EAASC,EAAWZ,EAAWD,EAAS,KAAK,EACnD,OAAIA,EAAS,OAASH,EAAM,WAC1Be,EAAO,IAAMb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A,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardOpeningHours/CardOpeningHours.css');const n=require("./index.cjs154.js");;/* empty css */const L=require("./index.cjs156.js"),r=require("react"),F=require("./index.cjs135.js");require("./index.cjs3.js");const C=require("./index.cjs10.js"),g=require("./index.cjs9.js"),ee=({title:K="Orari di apertura",titleTag:P="h3",openingHours:f,weekDaysMap:R,openLabel:a="Aperto",todayLabel:U="Oggi",closeLabel:u="Chiuso",open24Label:x="24 ore su 24",opensSoonLabel:O="Apre tra poco",opensAtLabel:$="Apre alle",opensTomorrowLabel:E="Apre domani",opensOnLabel:T="Apre",atLabel:N="alle",closesAtLabel:S="Chiude alle"})=>{const[z,B]=r.useState(null),[k,G]=r.useState(""),[J,l]=r.useState(""),[Q,I]=r.useState(""),[V,h]=r.useState(!1),[W,m]=r.useState(!1),[X,c]=r.useState(""),d=Object.values(R),p=Object.keys(R),Y=()=>F.default.now().toFormat("HH:mm"),q=t=>{const[e,s]=t.split(":").map(Number);return e*60+s},D=r.useCallback(t=>t.from==="00:00"&&t.to==="00:00",[]),j=r.useCallback(t=>t.some(D),[D]),Z=(t,e)=>{for(const{from:s,to:o}of t)if(e>=s&&e<=o)return{open:!0,closingTime:o};return{open:!1,closingTime:""}},_=(t,e)=>{for(const{from:s}of t)if(s>e)return s;return""},H=r.useCallback((t,e)=>{if(!t)return!1;const s=q(t),o=q(e),i=s-o;return i>0&&i<=60},[]),A=r.useCallback(t=>{for(let e=1;e<=7;e++){const s=(t+e)%7,o=p[s],i=f[o];if(i&&i.length>0)return{dayName:d[s].toLowerCase(),isTomorrow:e===1}}return null},[p,f,d]),v=r.useMemo(()=>t=>t.length===0?u:j(t)?`${a} ${x}`:t.map(({from:e,to:s})=>`${e} - ${s}`).join(" | "),[u,j,x,a]);return r.useEffect(()=>{const e=F.default.now().weekday-1;B(e),G(d[e]||"");const s=p[e],o=f[s];if(!o)return;const i=Y();if(j(o)){l(a),c(` | ${x}`),h(!0),m(!1),I(`${a} ${x}`);return}const{open:b,closingTime:M}=Z(o,i);if(b)l(a),c(M?` | ${S} ${M}`:""),h(!0),m(!1);else{const y=_(o,i);if(h(!1),y)H(y,i)?(l(O),c(` | ${N} ${y}`),m(!0)):(l(u),c(` | ${$} ${y}`),m(!1));else{l(u),m(!1);const w=A(e);c(w?w.isTomorrow?` | ${E}`:` | ${T} ${w.dayName}`:"")}}I(v(o))},[N,H,u,S,v,A,j,x,a,f,$,T,O,E,d,p]),n.jsxRuntimeExports.jsxs(C.Col,{fs:"6",fw:"semibold",className:"ui-card-opening rounded shadow text-slate-28",children:[n.jsxRuntimeExports.jsxs(C.Col,{as:"header",className:"ui-card-header",children:[n.jsxRuntimeExports.jsx(P,{className:"text-slate-20 fw-semibold fs-4",children:K}),n.jsxRuntimeExports.jsxs(g.Row,{justifyContent:"space-between",alignItems:"center",style:{backgroundColor:"#F7F2FC"},py:"x16",px:"x24",fw:"bold",fs:"6",className:"rounded",children:[n.jsxRuntimeExports.jsxs("p",{className:"text-slate-28",children:[U,", ",k]}),n.jsxRuntimeExports.jsxs("p",{children:[n.jsxRuntimeExports.jsx("span",{className:V?"text-success":W?"text-warning":"text-error",children:J}),n.jsxRuntimeExports.jsx("span",{className:"fw-regular text-grey-black",children:X})]})]})]}),n.jsxRuntimeExports.jsxs(C.Col,{as:"main",pt:"x32",gap:"x24",children:[n.jsxRuntimeExports.jsx(g.Row,{justifyContent:"space-around",className:"ui-weekdays-container",children:d.map((t,e)=>n.jsxRuntimeExports.jsx(g.Row,{justifyContent:"center",alignItems:"center",className:L.clsx(z===e?"active-day text-primary":"","flex-1"),children:t.charAt(0).toUpperCase()},e))}),n.jsxRuntimeExports.jsxs(g.Row,{justifyContent:"space-between",alignItems:"center",fw:"regular",children:[n.jsxRuntimeExports.jsx("p",{children:k}),n.jsxRuntimeExports.jsx("p",{children:Q})]})]})]})};exports.CardOpeningHours=ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardOpeningHours/CardOpeningHours.css');const n=require("./index.cjs154.js");;/* empty css */const L=require("./index.cjs155.js"),r=require("react"),F=require("./index.cjs135.js");require("./index.cjs3.js");const C=require("./index.cjs10.js"),g=require("./index.cjs9.js"),ee=({title:K="Orari di apertura",titleTag:P="h3",openingHours:f,weekDaysMap:R,openLabel:a="Aperto",todayLabel:U="Oggi",closeLabel:u="Chiuso",open24Label:x="24 ore su 24",opensSoonLabel:O="Apre tra poco",opensAtLabel:$="Apre alle",opensTomorrowLabel:E="Apre domani",opensOnLabel:T="Apre",atLabel:N="alle",closesAtLabel:S="Chiude alle"})=>{const[z,B]=r.useState(null),[k,G]=r.useState(""),[J,l]=r.useState(""),[Q,I]=r.useState(""),[V,h]=r.useState(!1),[W,m]=r.useState(!1),[X,c]=r.useState(""),d=Object.values(R),p=Object.keys(R),Y=()=>F.default.now().toFormat("HH:mm"),q=t=>{const[e,s]=t.split(":").map(Number);return e*60+s},D=r.useCallback(t=>t.from==="00:00"&&t.to==="00:00",[]),j=r.useCallback(t=>t.some(D),[D]),Z=(t,e)=>{for(const{from:s,to:o}of t)if(e>=s&&e<=o)return{open:!0,closingTime:o};return{open:!1,closingTime:""}},_=(t,e)=>{for(const{from:s}of t)if(s>e)return s;return""},H=r.useCallback((t,e)=>{if(!t)return!1;const s=q(t),o=q(e),i=s-o;return i>0&&i<=60},[]),A=r.useCallback(t=>{for(let e=1;e<=7;e++){const s=(t+e)%7,o=p[s],i=f[o];if(i&&i.length>0)return{dayName:d[s].toLowerCase(),isTomorrow:e===1}}return null},[p,f,d]),v=r.useMemo(()=>t=>t.length===0?u:j(t)?`${a} ${x}`:t.map(({from:e,to:s})=>`${e} - ${s}`).join(" | "),[u,j,x,a]);return r.useEffect(()=>{const e=F.default.now().weekday-1;B(e),G(d[e]||"");const s=p[e],o=f[s];if(!o)return;const i=Y();if(j(o)){l(a),c(` | ${x}`),h(!0),m(!1),I(`${a} ${x}`);return}const{open:b,closingTime:M}=Z(o,i);if(b)l(a),c(M?` | ${S} ${M}`:""),h(!0),m(!1);else{const y=_(o,i);if(h(!1),y)H(y,i)?(l(O),c(` | ${N} ${y}`),m(!0)):(l(u),c(` | ${$} ${y}`),m(!1));else{l(u),m(!1);const w=A(e);c(w?w.isTomorrow?` | ${E}`:` | ${T} ${w.dayName}`:"")}}I(v(o))},[N,H,u,S,v,A,j,x,a,f,$,T,O,E,d,p]),n.jsxRuntimeExports.jsxs(C.Col,{fs:"6",fw:"semibold",className:"ui-card-opening rounded shadow text-slate-28",children:[n.jsxRuntimeExports.jsxs(C.Col,{as:"header",className:"ui-card-header",children:[n.jsxRuntimeExports.jsx(P,{className:"text-slate-20 fw-semibold fs-4",children:K}),n.jsxRuntimeExports.jsxs(g.Row,{justifyContent:"space-between",alignItems:"center",style:{backgroundColor:"#F7F2FC"},py:"x16",px:"x24",fw:"bold",fs:"6",className:"rounded",children:[n.jsxRuntimeExports.jsxs("p",{className:"text-slate-28",children:[U,", ",k]}),n.jsxRuntimeExports.jsxs("p",{children:[n.jsxRuntimeExports.jsx("span",{className:V?"text-success":W?"text-warning":"text-error",children:J}),n.jsxRuntimeExports.jsx("span",{className:"fw-regular text-grey-black",children:X})]})]})]}),n.jsxRuntimeExports.jsxs(C.Col,{as:"main",pt:"x32",gap:"x24",children:[n.jsxRuntimeExports.jsx(g.Row,{justifyContent:"space-around",className:"ui-weekdays-container",children:d.map((t,e)=>n.jsxRuntimeExports.jsx(g.Row,{justifyContent:"center",alignItems:"center",className:L.clsx(z===e?"active-day text-primary":"","flex-1"),children:t.charAt(0).toUpperCase()},e))}),n.jsxRuntimeExports.jsxs(g.Row,{justifyContent:"space-between",alignItems:"center",fw:"regular",children:[n.jsxRuntimeExports.jsx("p",{children:k}),n.jsxRuntimeExports.jsx("p",{children:Q})]})]})]})};exports.CardOpeningHours=ee;
2
2
  //# sourceMappingURL=index.cjs31.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\r\nimport clsx from \"clsx\";\r\nimport { OpeningHours } from \"@anoki/fse-common\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\r\ntype TimeSlot = { from: string; to: string };\r\n\r\ntype CardOpeningHoursProps = {\r\n title: string;\r\n titleTag: HeadingLevel;\r\n openingHours: OpeningHours;\r\n weekDaysMap: WeekDaysMap;\r\n openLabel?: string;\r\n todayLabel?: string;\r\n closeLabel?: string;\r\n open24Label?: string;\r\n opensSoonLabel?: string;\r\n opensAtLabel?: string;\r\n opensTomorrowLabel?: string;\r\n opensOnLabel?: string;\r\n atLabel?: string;\r\n closesAtLabel?: string;\r\n};\r\n\r\nexport const CardOpeningHours = ({\r\n title = \"Orari di apertura\",\r\n titleTag: TitleTag = \"h3\",\r\n openingHours,\r\n weekDaysMap,\r\n openLabel = \"Aperto\",\r\n todayLabel = \"Oggi\",\r\n closeLabel = \"Chiuso\",\r\n open24Label = \"24 ore su 24\",\r\n opensSoonLabel = \"Apre tra poco\",\r\n opensAtLabel = \"Apre alle\",\r\n opensTomorrowLabel = \"Apre domani\",\r\n opensOnLabel = \"Apre\",\r\n atLabel = \"alle\",\r\n closesAtLabel = \"Chiude alle\",\r\n}: CardOpeningHoursProps) => {\r\n const [activeDay, setActiveDay] = useState<number | null>(null);\r\n const [dayLabel, setDayLabel] = useState(\"\");\r\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\r\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\r\n const [isOpen, setIsOpen] = useState(false);\r\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\r\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\r\n\r\n const weekDays = Object.values(weekDaysMap);\r\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\r\n\r\n const formatCurrentTime = () => {\r\n return DateTime.now().toFormat(\"HH:mm\");\r\n };\r\n\r\n const parseTimeToMinutes = (timeStr: string): number => {\r\n const [hours, minutes] = timeStr.split(\":\").map(Number);\r\n return hours * 60 + minutes;\r\n };\r\n\r\n const isSlot24Hours = useCallback(\r\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\r\n [],\r\n );\r\n\r\n const is24HoursDay = useCallback(\r\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\r\n [isSlot24Hours],\r\n );\r\n\r\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from, to } of slots) {\r\n if (currentTime >= from && currentTime <= to) {\r\n return { open: true, closingTime: to };\r\n }\r\n }\r\n return { open: false, closingTime: \"\" };\r\n };\r\n\r\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from } of slots) {\r\n if (from > currentTime) {\r\n return from;\r\n }\r\n }\r\n return \"\";\r\n };\r\n\r\n const checkIsOpeningSoon = useCallback(\r\n (openingTime: string, currentTime: string) => {\r\n if (!openingTime) return false;\r\n\r\n const openMinutes = parseTimeToMinutes(openingTime);\r\n const currentMinutes = parseTimeToMinutes(currentTime);\r\n const diffMinutes = openMinutes - currentMinutes;\r\n\r\n return diffMinutes > 0 && diffMinutes <= 60;\r\n },\r\n [],\r\n );\r\n\r\n const getNextOpenDay = useCallback(\r\n (currentDayIndex: number) => {\r\n for (let i = 1; i <= 7; i++) {\r\n const nextIndex = (currentDayIndex + i) % 7;\r\n const nextDayKey = weekKeys[nextIndex];\r\n const nextDaySlots = openingHours[nextDayKey];\r\n\r\n if (nextDaySlots && nextDaySlots.length > 0) {\r\n return {\r\n dayName: weekDays[nextIndex].toLowerCase(),\r\n isTomorrow: i === 1,\r\n };\r\n }\r\n }\r\n return null;\r\n },\r\n [weekKeys, openingHours, weekDays],\r\n );\r\n\r\n const generateOpeningHoursText = useMemo(() => {\r\n return (hours: TimeSlot[]) => {\r\n if (hours.length === 0) {\r\n return closeLabel;\r\n }\r\n\r\n if (is24HoursDay(hours)) {\r\n return `${openLabel} ${open24Label}`;\r\n }\r\n\r\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\r\n };\r\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\r\n\r\n useEffect(() => {\r\n const now = DateTime.now();\r\n const todayIndex = now.weekday - 1;\r\n setActiveDay(todayIndex);\r\n setDayLabel(weekDays[todayIndex] || \"\");\r\n\r\n const todayKey = weekKeys[todayIndex];\r\n const todaySlots = openingHours[todayKey];\r\n\r\n if (!todaySlots) {\r\n return;\r\n }\r\n\r\n const currentTime = formatCurrentTime();\r\n\r\n if (is24HoursDay(todaySlots)) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(` | ${open24Label}`);\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\r\n return;\r\n }\r\n\r\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\r\n\r\n if (open) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(\r\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\r\n );\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n } else {\r\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\r\n setIsOpen(false);\r\n\r\n if (nextOpeningTime) {\r\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\r\n setOpeningHoursText(opensSoonLabel);\r\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(true);\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(false);\r\n }\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setIsOpeningSoon(false);\r\n const nextDay = getNextOpenDay(todayIndex);\r\n\r\n if (nextDay) {\r\n setAdditionalInfo(\r\n nextDay.isTomorrow\r\n ? ` | ${opensTomorrowLabel}`\r\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\r\n );\r\n } else {\r\n setAdditionalInfo(\"\");\r\n }\r\n }\r\n }\r\n\r\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\r\n }, [\r\n atLabel,\r\n checkIsOpeningSoon,\r\n closeLabel,\r\n closesAtLabel,\r\n generateOpeningHoursText,\r\n getNextOpenDay,\r\n is24HoursDay,\r\n open24Label,\r\n openLabel,\r\n openingHours,\r\n opensAtLabel,\r\n opensOnLabel,\r\n opensSoonLabel,\r\n opensTomorrowLabel,\r\n weekDays,\r\n weekKeys,\r\n ]);\r\n\r\n return (\r\n <Col\r\n fs={\"6\"}\r\n fw={\"semibold\"}\r\n className=\"ui-card-opening rounded shadow text-slate-28\"\r\n >\r\n <Col as={\"header\"} className=\"ui-card-header\">\r\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n style={{ backgroundColor: \"#F7F2FC\" }}\r\n py={\"x16\"}\r\n px={\"x24\"}\r\n fw={\"bold\"}\r\n fs={\"6\"}\r\n className=\"rounded\"\r\n >\r\n <p className=\"text-slate-28\">\r\n {todayLabel}, {dayLabel}\r\n </p>\r\n <p>\r\n <span\r\n className={\r\n isOpen\r\n ? \"text-success\"\r\n : isOpeningSoon\r\n ? \"text-warning\"\r\n : \"text-error\"\r\n }\r\n >\r\n {openingHoursText}\r\n </span>\r\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\r\n </p>\r\n </Row>\r\n </Col>\r\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\r\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\r\n {weekDays.map((day, index) => (\r\n <Row\r\n justifyContent={\"center\"}\r\n alignItems={\"center\"}\r\n key={index}\r\n className={clsx(\r\n activeDay === index ? \"active-day text-primary\" : \"\",\r\n \"flex-1\",\r\n )}\r\n >\r\n {day.charAt(0).toUpperCase()}\r\n </Row>\r\n ))}\r\n </Row>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n fw={\"regular\"}\r\n >\r\n <p>{dayLabel}</p>\r\n <p>{openingHoursText2}</p>\r\n </Row>\r\n </Col>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":"qUA4BaA,GAAmB,CAAC,CAC/B,MAAAC,EAAQ,oBACR,SAAUC,EAAW,KACrB,aAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,OACb,WAAAC,EAAa,SACb,YAAAC,EAAc,eACd,eAAAC,EAAiB,gBACjB,aAAAC,EAAe,YACf,mBAAAC,EAAqB,cACrB,aAAAC,EAAe,OACf,QAAA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B,WAAY,SACZ,MAAO,CAAE,gBAAiB,SAAU,EACpC,GAAI,MACJ,GAAI,MACJ,GAAI,OACJ,GAAI,IACJ,UAAU,UAEV,SAAA,CAACH,EAAAA,kBAAAA,KAAA,IAAA,CAAE,UAAU,gBACV,SAAA,CAAA/D,EAAW,KAAGY,CAAA,EACjB,2BACC,IACC,CAAA,SAAA,CAAAqD,EAAA,kBAAA,IAAC,OAAA,CACC,UACE/C,EACI,eACAE,EACE,eACA,aAGP,SAAAN,CAAA,CACH,EACCmD,EAAA,kBAAA,IAAA,OAAA,CAAK,UAAU,6BAA8B,SAAe3C,CAAA,CAAA,CAAA,CAC/D,CAAA,CAAA,CAAA,CAAA,CACF,EACF,2BACC0C,EAAAA,IAAI,CAAA,GAAI,OAAQ,GAAI,MAAO,IAAK,MAC/B,SAAA,CAACC,EAAAA,kBAAAA,IAAAC,EAAAA,IAAA,CAAI,eAAgB,eAAgB,UAAU,wBAC5C,SAAS1C,EAAA,IAAI,CAAC2C,EAAKC,IAClBH,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,eAAgB,SAChB,WAAY,SAEZ,UAAWG,EAAA,KACT5D,IAAc2D,EAAQ,0BAA4B,GAClD,QACF,EAEC,SAAID,EAAA,OAAO,CAAC,EAAE,YAAY,CAAA,EANtBC,CAQR,CAAA,EACH,EACAL,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,eAAgB,gBAChB,WAAY,SACZ,GAAI,UAEJ,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
1
+ {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\nimport clsx from \"clsx\";\nimport { OpeningHours } from \"@anoki/fse-common\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { DateTime } from \"luxon\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\ntype TimeSlot = { from: string; to: string };\n\ntype CardOpeningHoursProps = {\n title: string;\n titleTag: HeadingLevel;\n openingHours: OpeningHours;\n weekDaysMap: WeekDaysMap;\n openLabel?: string;\n todayLabel?: string;\n closeLabel?: string;\n open24Label?: string;\n opensSoonLabel?: string;\n opensAtLabel?: string;\n opensTomorrowLabel?: string;\n opensOnLabel?: string;\n atLabel?: string;\n closesAtLabel?: string;\n};\n\nexport const CardOpeningHours = ({\n title = \"Orari di apertura\",\n titleTag: TitleTag = \"h3\",\n openingHours,\n weekDaysMap,\n openLabel = \"Aperto\",\n todayLabel = \"Oggi\",\n closeLabel = \"Chiuso\",\n open24Label = \"24 ore su 24\",\n opensSoonLabel = \"Apre tra poco\",\n opensAtLabel = \"Apre alle\",\n opensTomorrowLabel = \"Apre domani\",\n opensOnLabel = \"Apre\",\n atLabel = \"alle\",\n closesAtLabel = \"Chiude alle\",\n}: CardOpeningHoursProps) => {\n const [activeDay, setActiveDay] = useState<number | null>(null);\n const [dayLabel, setDayLabel] = useState(\"\");\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\n const [isOpen, setIsOpen] = useState(false);\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\n\n const weekDays = Object.values(weekDaysMap);\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\n\n const formatCurrentTime = () => {\n return DateTime.now().toFormat(\"HH:mm\");\n };\n\n const parseTimeToMinutes = (timeStr: string): number => {\n const [hours, minutes] = timeStr.split(\":\").map(Number);\n return hours * 60 + minutes;\n };\n\n const isSlot24Hours = useCallback(\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\n [],\n );\n\n const is24HoursDay = useCallback(\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\n [isSlot24Hours],\n );\n\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\n for (const { from, to } of slots) {\n if (currentTime >= from && currentTime <= to) {\n return { open: true, closingTime: to };\n }\n }\n return { open: false, closingTime: \"\" };\n };\n\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\n for (const { from } of slots) {\n if (from > currentTime) {\n return from;\n }\n }\n return \"\";\n };\n\n const checkIsOpeningSoon = useCallback(\n (openingTime: string, currentTime: string) => {\n if (!openingTime) return false;\n\n const openMinutes = parseTimeToMinutes(openingTime);\n const currentMinutes = parseTimeToMinutes(currentTime);\n const diffMinutes = openMinutes - currentMinutes;\n\n return diffMinutes > 0 && diffMinutes <= 60;\n },\n [],\n );\n\n const getNextOpenDay = useCallback(\n (currentDayIndex: number) => {\n for (let i = 1; i <= 7; i++) {\n const nextIndex = (currentDayIndex + i) % 7;\n const nextDayKey = weekKeys[nextIndex];\n const nextDaySlots = openingHours[nextDayKey];\n\n if (nextDaySlots && nextDaySlots.length > 0) {\n return {\n dayName: weekDays[nextIndex].toLowerCase(),\n isTomorrow: i === 1,\n };\n }\n }\n return null;\n },\n [weekKeys, openingHours, weekDays],\n );\n\n const generateOpeningHoursText = useMemo(() => {\n return (hours: TimeSlot[]) => {\n if (hours.length === 0) {\n return closeLabel;\n }\n\n if (is24HoursDay(hours)) {\n return `${openLabel} ${open24Label}`;\n }\n\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\n };\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\n\n useEffect(() => {\n const now = DateTime.now();\n const todayIndex = now.weekday - 1;\n setActiveDay(todayIndex);\n setDayLabel(weekDays[todayIndex] || \"\");\n\n const todayKey = weekKeys[todayIndex];\n const todaySlots = openingHours[todayKey];\n\n if (!todaySlots) {\n return;\n }\n\n const currentTime = formatCurrentTime();\n\n if (is24HoursDay(todaySlots)) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(` | ${open24Label}`);\n setIsOpen(true);\n setIsOpeningSoon(false);\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\n return;\n }\n\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\n\n if (open) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\n );\n setIsOpen(true);\n setIsOpeningSoon(false);\n } else {\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\n setIsOpen(false);\n\n if (nextOpeningTime) {\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\n setOpeningHoursText(opensSoonLabel);\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(true);\n } else {\n setOpeningHoursText(closeLabel);\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(false);\n }\n } else {\n setOpeningHoursText(closeLabel);\n setIsOpeningSoon(false);\n const nextDay = getNextOpenDay(todayIndex);\n\n if (nextDay) {\n setAdditionalInfo(\n nextDay.isTomorrow\n ? ` | ${opensTomorrowLabel}`\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\n );\n } else {\n setAdditionalInfo(\"\");\n }\n }\n }\n\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\n }, [\n atLabel,\n checkIsOpeningSoon,\n closeLabel,\n closesAtLabel,\n generateOpeningHoursText,\n getNextOpenDay,\n is24HoursDay,\n open24Label,\n openLabel,\n openingHours,\n opensAtLabel,\n opensOnLabel,\n opensSoonLabel,\n opensTomorrowLabel,\n weekDays,\n weekKeys,\n ]);\n\n return (\n <Col\n fs={\"6\"}\n fw={\"semibold\"}\n className=\"ui-card-opening rounded shadow text-slate-28\"\n >\n <Col as={\"header\"} className=\"ui-card-header\">\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n style={{ backgroundColor: \"#F7F2FC\" }}\n py={\"x16\"}\n px={\"x24\"}\n fw={\"bold\"}\n fs={\"6\"}\n className=\"rounded\"\n >\n <p className=\"text-slate-28\">\n {todayLabel}, {dayLabel}\n </p>\n <p>\n <span\n className={\n isOpen\n ? \"text-success\"\n : isOpeningSoon\n ? \"text-warning\"\n : \"text-error\"\n }\n >\n {openingHoursText}\n </span>\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\n </p>\n </Row>\n </Col>\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\n {weekDays.map((day, index) => (\n <Row\n justifyContent={\"center\"}\n alignItems={\"center\"}\n key={index}\n className={clsx(\n activeDay === index ? \"active-day text-primary\" : \"\",\n \"flex-1\",\n )}\n >\n {day.charAt(0).toUpperCase()}\n </Row>\n ))}\n </Row>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n fw={\"regular\"}\n >\n <p>{dayLabel}</p>\n <p>{openingHoursText2}</p>\n </Row>\n </Col>\n </Col>\n );\n};\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySl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AAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("./index.cjs154.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),g=require("./index.cjs275.js"),a=require("./index.cjs154.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=y(m);var p=i.forwardRef((e,r)=>{const{children:t,...n}=e,o=i.Children.toArray(t),l=o.find(j);if(l){const s=l.props.children,c=o.map(f=>f===l?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:f);return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return a.jsxRuntimeExports.jsx(u,{...n,ref:r,children:t})});p.displayName="Slot";var u=i.forwardRef((e,r)=>{const{children:t,...n}=e;if(i.isValidElement(t)){const o=R(t),l=b(n,t.props);return t.type!==i.Fragment&&(l.ref=r?g.composeRefs(r,o):o),i.cloneElement(t,l)}return i.Children.count(t)>1?i.Children.only(null):null});u.displayName="SlotClone";var d=({children:e})=>a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:e});function j(e){return i.isValidElement(e)&&e.type===d}function b(e,r){const t={...r};for(const n in r){const o=e[n],l=r[n];/^on[A-Z]/.test(n)?o&&l?t[n]=(...c)=>{l(...c),o(...c)}:o&&(t[n]=o):n==="style"?t[n]={...o,...l}:n==="className"&&(t[n]=[o,l].filter(Boolean).join(" "))}return{...e,...t}}function R(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}exports.Slot=p;exports.Slottable=d;
2
2
  //# sourceMappingURL=index.cjs311.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs311.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/Direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":"gaAGA,IAAIA,EAAmBC,EAAM,cAAc,MAAM,EAKjD,SAASC,EAAaC,EAAU,CAC9B,MAAMC,EAAYH,EAAM,WAAWD,CAAgB,EACnD,OAAOG,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs311.js","sources":["../node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAIG,IAACA,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAIC,EAAW,CAAE,GAAGR,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACtL,CACE,OAAuBE,EAAAA,kBAAAA,I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,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGpB,EAAW,GAAGiB,CAAe,CAC3C,CACA,SAASP,EAAcY,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),l=require("./index.cjs318.js"),ye=require("./index.cjs319.js"),Z=require("./index.cjs274.js"),Ae=require("./index.cjs275.js"),G=require("./index.cjs281.js"),ve=require("./index.cjs308.js"),L=require("./index.cjs309.js"),Ce=require("./index.cjs279.js"),u=require("./index.cjs154.js"),be=require("./index.cjs320.js");function Re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=Re(Pe);var _="Popper",[J,Oe]=Ae.createContextScope(_),[Se,K]=J(_),$=e=>{const{__scopePopper:o,children:t}=e,[r,a]=s.useState(null);return u.jsxRuntimeExports.jsx(Se,{scope:o,anchor:r,onAnchorChange:a,children:t})};$.displayName=_;var Q="PopperAnchor",N=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:r,...a}=e,n=K(Q,t),i=s.useRef(null),w=Z.useComposedRefs(o,i);return s.useEffect(()=>{n.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsxRuntimeExports.jsx(G.Primitive.div,{...a,ref:w})});N.displayName=Q;var q="PopperContent",[je,Ee]=J(q),H=s.forwardRef((e,o)=>{var T,X,k,F,z,B;const{__scopePopper:t,side:r="bottom",sideOffset:a=0,align:n="center",alignOffset:i=0,arrowPadding:w=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:P=0,sticky:x="partial",hideWhenDetached:A=!1,updatePositionStrategy:v="optimized",onPlaced:f,...d}=e,C=K(q,t),[m,b]=s.useState(null),te=Z.useComposedRefs(o,y=>b(y)),[E,re]=s.useState(null),h=Ce.useSize(E),oe=(h==null?void 0:h.width)??0,M=(h==null?void 0:h.height)??0,ne=r+(n!=="center"?"-"+n:""),ie=typeof P=="number"?P:{top:0,right:0,bottom:0,left:0,...P},W=Array.isArray(p)?p:[p],ae=W.length>0,R={padding:ie,boundary:W.filter($e),altBoundary:ae},{refs:se,floatingStyles:I,placement:ce,isPositioned:O,middlewareData:g}=l.useFloating({strategy:"fixed",placement:ne,whileElementsMounted:(...y)=>be.autoUpdate(...y,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[l.offset({mainAxis:a+M,alignmentAxis:i}),c&&l.shift({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?l.limitShift():void 0,...R}),c&&l.flip({...R}),l.size({...R,apply:({elements:y,rects:U,availableWidth:me,availableHeight:he})=>{const{width:ge,height:we}=U.reference,j=y.floating.style;j.setProperty("--radix-popper-available-width",`${me}px`),j.setProperty("--radix-popper-available-height",`${he}px`),j.setProperty("--radix-popper-anchor-width",`${ge}px`),j.setProperty("--radix-popper-anchor-height",`${we}px`)}}),E&&l.arrow({element:E,padding:w}),Ne({arrowWidth:oe,arrowHeight:M}),A&&l.hide({strategy:"referenceHidden",...R})]}),[Y,pe]=ee(ce),S=ve.useCallbackRef(f);L.useLayoutEffect(()=>{O&&(S==null||S())},[O,S]);const de=(T=g.arrow)==null?void 0:T.x,le=(X=g.arrow)==null?void 0:X.y,fe=((k=g.arrow)==null?void 0:k.centerOffset)!==0,[ue,xe]=s.useState();return L.useLayoutEffect(()=>{m&&xe(window.getComputedStyle(m).zIndex)},[m]),u.jsxRuntimeExports.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:O?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(F=g.transformOrigin)==null?void 0:F.x,(z=g.transformOrigin)==null?void 0:z.y].join(" "),...((B=g.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsxRuntimeExports.jsx(je,{scope:t,placedSide:Y,onArrowChange:re,arrowX:de,arrowY:le,shouldHideArrow:fe,children:u.jsxRuntimeExports.jsx(G.Primitive.div,{"data-side":Y,"data-align":pe,...d,ref:te,style:{...d.style,animation:O?void 0:"none"}})})})});H.displayName=q;var V="PopperArrow",_e={top:"bottom",right:"left",bottom:"top",left:"right"},D=s.forwardRef(function(o,t){const{__scopePopper:r,...a}=o,n=Ee(V,r),i=_e[n.placedSide];return u.jsxRuntimeExports.jsx("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:u.jsxRuntimeExports.jsx(ye.Root,{...a,ref:t,style:{...a.style,display:"block"}})})});D.displayName=V;function $e(e){return e!==null}var Ne=e=>({name:"transformOrigin",options:e,fn(o){var C,m,b;const{placement:t,rects:r,middlewareData:a}=o,i=((C=a.arrow)==null?void 0:C.centerOffset)!==0,w=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[p,P]=ee(t),x={start:"0%",center:"50%",end:"100%"}[P],A=(((m=a.arrow)==null?void 0:m.x)??0)+w/2,v=(((b=a.arrow)==null?void 0:b.y)??0)+c/2;let f="",d="";return p==="bottom"?(f=i?x:`${A}px`,d=`${-c}px`):p==="top"?(f=i?x:`${A}px`,d=`${r.floating.height+c}px`):p==="right"?(f=`${-c}px`,d=i?x:`${v}px`):p==="left"&&(f=`${r.floating.width+c}px`,d=i?x:`${v}px`),{data:{x:f,y:d}}}});function ee(e){const[o,t="center"]=e.split("-");return[o,t]}var qe=$,He=N,De=H,Me=D;exports.Anchor=He;exports.Arrow=Me;exports.Content=De;exports.Popper=$;exports.PopperAnchor=N;exports.PopperArrow=D;exports.PopperContent=H;exports.Root=qe;exports.createPopperScope=Oe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs284.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis==null?void 0:globalThis.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
2
2
  //# sourceMappingURL=index.cjs312.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs312.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":"ksBAyBA,IAAIA,EAAc,SACd,CAACC,EAAqBC,EAAiB,EAAIC,GAAAA,mBAAmBH,CAAW,EACzE,CAACI,GAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAAUC,GAAU,CACtB,KAAM,CAAE,cAAAC,EAAe,SAAAC,CAAQ,EAAKF,EAC9B,CAACG,EAAQC,CAAS,EAAIC,EAAM,SAAS,IAAI,EAC/C,OAAuBC,EAAG,kBAAA,IAACT,GAAgB,CAAE,MAAOI,EAAe,OAAAE,EAAQ,eAAgBC,EAAW,SAAAF,EAAU,CAClH,EACAH,EAAO,YAAcN,EACrB,IAAIc,EAAc,eACdC,EAAeH,EAAM,WACvB,CAACL,EAAOS,IAAiB,CACvB,KAAM,CAAE,cAAAR,EAAe,WAAAS,EAAY,GAAGC,CAAa,EAAGX,EAChDY,EAAUd,EAAiBS,EAAaN,CAAa,EACrDY,EAAMR,EAAM,OAAO,IAAI,EACvBS,EAAeC,EAAAA,gBAAgBN,EAAcI,CAAG,EACtDR,OAAAA,EAAM,UAAU,IAAM,CACpBO,EAAQ,gBAAeF,GAAA,YAAAA,EAAY,UAAWG,EAAI,OAAO,CAC/D,CAAK,EACMH,EAAa,KAAuBJ,EAAAA,kBAAAA,IAAIU,EAAS,UAAC,IAAK,CAAE,GAAGL,EAAa,IAAKG,EAAc,CACvG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,EAAe,GAAGC,CAAY,KAClDG,EAAI,GAAG,CAAC9D,CAAW,MACV8B,IAAe,OACxB+B,EAAIJ,EAAgBC,EAAe,GAAGC,CAAY,KAClDG,EAAI,GAAGzC,EAAM,SAAS,OAASrB,CAAW,MACjC8B,IAAe,SACxB+B,EAAI,GAAG,CAAC7D,CAAW,KACnB8D,EAAIL,EAAgBC,EAAe,GAAGE,CAAY,MACzC9B,IAAe,SACxB+B,EAAI,GAAGxC,EAAM,SAAS,MAAQrB,CAAW,KACzC8D,EAAIL,EAAgBC,EAAe,GAAGE,CAAY,MAE7C,CAAE,KAAM,CAAE,EAAAC,EAAG,EAAAC,CAAC,CAAI,CAC7B,CACA,GACA,SAAS9B,GAA6BvB,EAAW,CAC/C,KAAM,CAAC9B,EAAME,EAAQ,QAAQ,EAAI4B,EAAU,MAAM,GAAG,EACpD,MAAO,CAAC9B,EAAME,CAAK,CACrB,CACG,IAACkF,GAAQ1G,EACR2G,GAASlG,EACTmG,GAAUvF,EACVwF,GAAQjB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs312.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/useEscapeKeydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":"kaAGA,SAASA,EAAiBC,EAAqBC,EAAgB,mCAAY,SAAU,CACnF,MAAMC,EAAkBC,EAAc,eAACH,CAAmB,EAC1DI,EAAM,UAAU,IAAM,CACpB,MAAMC,EAAiBC,GAAU,CAC3BA,EAAM,MAAQ,UAChBJ,EAAgBI,CAAK,CAExB,EACD,OAAAL,EAAc,iBAAiB,UAAWI,EAAe,CAAE,QAAS,GAAM,EACnE,IAAMJ,EAAc,oBAAoB,UAAWI,EAAe,CAAE,QAAS,GAAM,CAC9F,EAAK,CAACH,EAAiBD,CAAa,CAAC,CACrC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),m=require("./index.cjs276.js"),B=require("./index.cjs310.js"),Y=require("./index.cjs274.js"),z=require("./index.cjs275.js"),V=require("./index.cjs284.js"),D=require("./index.cjs281.js"),J=require("./index.cjs308.js"),Q=require("./index.cjs277.js"),W=require("./index.cjs311.js"),f=require("./index.cjs154.js");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=X(H);var _="rovingFocusGroup.onEntryFocus",Z={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[j,G,ee]=B.createCollection(g),[te,oe]=z.createContextScope(g,[ee]),[re,ne]=te(g),A=c.forwardRef((e,o)=>f.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(se,{...e,ref:o})})}));A.displayName=g;var se=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:R=!1,dir:I,currentTabStopId:x,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:p,onEntryFocus:u,preventScrollOnEntryFocus:E=!1,...S}=e,v=c.useRef(null),b=Y.useComposedRefs(o,v),n=W.useDirection(I),[l=null,w]=Q.useControllableState({prop:x,defaultProp:F,onChange:p}),[i,a]=c.useState(!1),T=J.useCallbackRef(u),M=G(r),C=c.useRef(!1),[K,O]=c.useState(0);return c.useEffect(()=>{const s=v.current;if(s)return s.addEventListener(_,T),()=>s.removeEventListener(_,T)},[T]),f.jsxRuntimeExports.jsx(re,{scope:r,orientation:t,dir:n,loop:R,currentTabStopId:l,onItemFocus:c.useCallback(s=>w(s),[w]),onItemShiftTab:c.useCallback(()=>a(!0),[]),onFocusableItemAdd:c.useCallback(()=>O(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>O(s=>s-1),[]),children:f.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:i||K===0?-1:0,"data-orientation":t,...S,ref:b,style:{outline:"none",...e.style},onMouseDown:m.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:m.composeEventHandlers(e.onFocus,s=>{const k=!C.current;if(s.target===s.currentTarget&&k&&!i){const P=new CustomEvent(_,Z);if(s.currentTarget.dispatchEvent(P),!P.defaultPrevented){const y=M().filter(d=>d.focusable),L=y.find(d=>d.active),U=y.find(d=>d.id===l),$=[L,U,...y].filter(Boolean).map(d=>d.ref.current);q($,E)}}C.current=!1}),onBlur:m.composeEventHandlers(e.onBlur,()=>a(!1))})})}),N="RovingFocusGroupItem",h=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:R=!1,tabStopId:I,...x}=e,F=V.useId(),p=I||F,u=ne(N,r),E=u.currentTabStopId===p,S=G(r),{onFocusableItemAdd:v,onFocusableItemRemove:b}=u;return c.useEffect(()=>{if(t)return v(),()=>b()},[t,v,b]),f.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:p,focusable:t,active:R,children:f.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:E?0:-1,"data-orientation":u.orientation,...x,ref:o,onMouseDown:m.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(p):n.preventDefault()}),onFocus:m.composeEventHandlers(e.onFocus,()=>u.onItemFocus(p)),onKeyDown:m.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const l=ie(n,u.orientation,u.dir);if(l!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=S().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")i.reverse();else if(l==="prev"||l==="next"){l==="prev"&&i.reverse();const a=i.indexOf(n.currentTarget);i=u.loop?ae(i,a+1):i.slice(a+1)}setTimeout(()=>q(i))}})})})});h.displayName=N;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ue(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ie(e,o,r){const t=ue(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ce[t]}function q(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ae(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var le=A,de=h;exports.Item=de;exports.Root=le;exports.RovingFocusGroup=A;exports.RovingFocusGroupItem=h;exports.createRovingFocusGroupScope=oe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs315.js"),j=require("react"),H=require("react-dom");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(j),I=U(H);var R=typeof document<"u"?j.useLayoutEffect:j.useEffect;function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!P(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const g=s[r];if(!(g==="_owner"&&e.$$typeof)&&!P(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function $(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L(e,t){const n=$(e);return Math.round(t*n)/n}function D(e){const t=o.useRef(e);return R(()=>{t.current=e}),t}function J(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:g,floating:A}={},transform:k=!0,whileElementsMounted:E,open:S}=e,[u,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[M,T]=o.useState(r);P(M,r)||T(r);const[B,N]=o.useState(null),[V,W]=o.useState(null),F=o.useCallback(f=>{f!==d.current&&(d.current=f,N(f))},[]),q=o.useCallback(f=>{f!==m.current&&(m.current=f,W(f))},[]),c=g||B,l=A||V,d=o.useRef(null),m=o.useRef(null),w=o.useRef(u),G=E!=null,O=D(E),_=D(s),z=D(S),y=o.useCallback(()=>{if(!d.current||!m.current)return;const f={placement:t,strategy:n,middleware:M};_.current&&(f.platform=_.current),i.computePosition(d.current,m.current,f).then(h=>{const p={...h,isPositioned:z.current!==!1};x.current&&!P(w.current,p)&&(w.current=p,I.flushSync(()=>{b(p)}))})},[M,t,n,_,z]);R(()=>{S===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,b(f=>({...f,isPositioned:!1})))},[S]);const x=o.useRef(!1);R(()=>(x.current=!0,()=>{x.current=!1}),[]),R(()=>{if(c&&(d.current=c),l&&(m.current=l),c&&l){if(O.current)return O.current(c,l,y);y()}},[c,l,y,O,G]);const C=o.useMemo(()=>({reference:d,floating:m,setReference:F,setFloating:q}),[F,q]),a=o.useMemo(()=>({reference:c,floating:l}),[c,l]),v=o.useMemo(()=>{const f={position:n,left:0,top:0};if(!a.floating)return f;const h=L(a.floating,u.x),p=L(a.floating,u.y);return k?{...f,transform:"translate("+h+"px, "+p+"px)",...$(a.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:h,top:p}},[n,k,a.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:y,refs:C,elements:a,floatingStyles:v}),[u,y,C,a,v])}const K=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i.arrow({element:r.current,padding:s}).fn(n):{}:r?i.arrow({element:r,padding:s}).fn(n):{}}}},Q=(e,t)=>({...i.offset(e),options:[e,t]}),X=(e,t)=>({...i.shift(e),options:[e,t]}),Y=(e,t)=>({...i.limitShift(e),options:[e,t]}),Z=(e,t)=>({...i.flip(e),options:[e,t]}),ee=(e,t)=>({...i.size(e),options:[e,t]}),te=(e,t)=>({...i.hide(e),options:[e,t]}),ne=(e,t)=>({...K(e),options:[e,t]});exports.autoUpdate=i.autoUpdate;exports.computePosition=i.computePosition;exports.platform=i.platform;exports.arrow=ne;exports.flip=Z;exports.hide=te;exports.limitShift=Y;exports.offset=Q;exports.shift=X;exports.size=ee;exports.useFloating=J;
2
2
  //# sourceMappingURL=index.cjs313.js.map