@wrdagency/blockout 0.1.10 → 1.0.1

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 (494) hide show
  1. package/dist/2NBKRL7C-Cug3TzgR.js +85 -0
  2. package/dist/{2RSXSRCN-qt84MtKs.js → 2RSXSRCN-Bc3g-z-i.js} +12 -12
  3. package/dist/{4CMBR7SL-BAGv8IL2.js → 4CMBR7SL-xNGezbCB.js} +31 -31
  4. package/dist/{5JTVDSTH-CG1NL6Fw.js → 5JTVDSTH-CIreO5bC.js} +26 -26
  5. package/dist/{5VQZOHHZ-CscZGerP.js → 5VQZOHHZ-CNzYHc1X.js} +1 -1
  6. package/dist/{6VRAQV3D-2rb_aClP.js → 6VRAQV3D-BoLhl3hf.js} +19 -19
  7. package/dist/A3WPL2ZJ-D0Eh1dEB.js +11 -0
  8. package/dist/ArrowBendDownRight.es-mejk84um.js +32 -0
  9. package/dist/BM6PGYQY-Bhr7peim.js +17 -0
  10. package/dist/{CaretDown.es-eySGHzTJ.js → CaretDown.es-BKFnosGJ.js} +3 -5
  11. package/dist/CaretDown.es-eyr5AnCc.js +8 -0
  12. package/dist/CaretLeft.es-C1wX08tw.js +32 -0
  13. package/dist/CaretRight.es-vnr78BGI.js +32 -0
  14. package/dist/DG5U6ZEL-C7eLVyh-.js +17 -0
  15. package/dist/DotsSixVertical.es-Ixbhxg7Z.js +38 -0
  16. package/dist/DotsThreeVertical.es-uadrGk3y.js +36 -0
  17. package/dist/EM5CXX6A-DKxCXPnz.js +14 -0
  18. package/dist/{F5MUBM3I-87B2_4WK.js → F5MUBM3I-_HauDyEF.js} +11 -11
  19. package/dist/G7GW6PWC-Crp1Jn-8.js +1236 -0
  20. package/dist/J2LQO3EC-CcHJqN0I.js +39 -0
  21. package/dist/KFH4SEIX-D-fCkpQv.js +120 -0
  22. package/dist/{LMDWO4NN--KEvZePp.js → LMDWO4NN-DdLnHzru.js} +47 -47
  23. package/dist/MR26YJYP-yD1_RvCA.js +283 -0
  24. package/dist/MTZPJQMC-RLG1q394.js +12 -0
  25. package/dist/MagnifyingGlass.es-CLstwG_v.js +32 -0
  26. package/dist/O2PQ2652-THp22K4G.js +51 -0
  27. package/dist/P7GR5CS5-Dub2zqTX.js +22 -0
  28. package/dist/{PFRGBC2K-BEg8ahbY.js → PFRGBC2K-DUhGSIey.js} +83 -83
  29. package/dist/{RS7LB2H4-D0fWv5qu.js → RS7LB2H4-C0kmTjy8.js} +3 -3
  30. package/dist/{RZ4GPYOB-13-5LlEb.js → RZ4GPYOB-c8s_KHUk.js} +6 -6
  31. package/dist/RadioButton.es-D3QVjfF9.js +36 -0
  32. package/dist/{S43UC3DV-Dn8EFLaT.js → S43UC3DV-erT1ucAd.js} +5 -5
  33. package/dist/{T7VMP3TM-DeRMoW8g.js → T7VMP3TM-C-Aesx9K.js} +10 -10
  34. package/dist/TP7N7UIH-mdk33dnV.js +34 -0
  35. package/dist/{UQQRIHDV-Bu8e1bYU.js → UQQRIHDV-DIXH69U3.js} +8 -8
  36. package/dist/{UYGDZTLQ-DcCmv5SE.js → UYGDZTLQ-fOwUiOjI.js} +4 -4
  37. package/dist/VIIRIBF3-DylpToFV.js +18 -0
  38. package/dist/WMYDSCNQ-D43V-JUe.js +62 -0
  39. package/dist/WYCIER3C-S-jsj0wy.js +59 -0
  40. package/dist/X.es-TbGOnXOO.js +38 -0
  41. package/dist/{YV4JVR4I-kvospPUa.js → YV4JVR4I-BXEaRiAN.js} +33 -33
  42. package/dist/assets/button.css +1 -1
  43. package/dist/assets/index.css +1 -1
  44. package/dist/assets/index10.css +1 -1
  45. package/dist/assets/index11.css +1 -1
  46. package/dist/assets/index12.css +1 -1
  47. package/dist/assets/index13.css +1 -1
  48. package/dist/assets/index14.css +1 -1
  49. package/dist/assets/index15.css +1 -1
  50. package/dist/assets/index16.css +1 -1
  51. package/dist/assets/index17.css +1 -1
  52. package/dist/assets/index18.css +1 -1
  53. package/dist/assets/index19.css +1 -1
  54. package/dist/assets/index2.css +1 -1
  55. package/dist/assets/index20.css +1 -1
  56. package/dist/assets/index3.css +1 -1
  57. package/dist/assets/index4.css +1 -1
  58. package/dist/assets/index5.css +1 -1
  59. package/dist/assets/index6.css +1 -1
  60. package/dist/assets/index7.css +1 -1
  61. package/dist/assets/index8.css +1 -1
  62. package/dist/assets/index9.css +1 -1
  63. package/dist/assets/prosemirror.css +1 -0
  64. package/dist/assets/root.css +1 -0
  65. package/dist/assets/style.css +1 -1
  66. package/dist/assets/style10.css +1 -0
  67. package/dist/assets/style11.css +1 -0
  68. package/dist/assets/style12.css +1 -0
  69. package/dist/assets/style13.css +1 -0
  70. package/dist/assets/style14.css +1 -0
  71. package/dist/assets/style15.css +1 -0
  72. package/dist/assets/style16.css +1 -0
  73. package/dist/assets/style17.css +1 -0
  74. package/dist/assets/style18.css +1 -0
  75. package/dist/assets/style19.css +1 -0
  76. package/dist/assets/style2.css +1 -1
  77. package/dist/assets/style20.css +1 -0
  78. package/dist/assets/style21.css +1 -0
  79. package/dist/assets/style22.css +1 -0
  80. package/dist/assets/style23.css +1 -0
  81. package/dist/assets/style24.css +1 -0
  82. package/dist/assets/style25.css +1 -0
  83. package/dist/assets/style3.css +1 -1
  84. package/dist/assets/style4.css +1 -1
  85. package/dist/assets/style5.css +1 -0
  86. package/dist/assets/style6.css +1 -0
  87. package/dist/assets/style7.css +1 -0
  88. package/dist/assets/style8.css +1 -0
  89. package/dist/assets/style9.css +1 -0
  90. package/dist/assets/styles2.css +1 -0
  91. package/dist/assets/styles3.css +1 -0
  92. package/dist/assets/styles4.css +1 -0
  93. package/dist/assets/styles5.css +1 -0
  94. package/dist/base-jB1DIMnz.js +559 -0
  95. package/dist/commands-IQnqt4xL.js +5937 -0
  96. package/dist/components/avatar/index.d.ts +10 -0
  97. package/dist/components/avatar/index.js +42 -0
  98. package/dist/components/badge/index.d.ts +7 -0
  99. package/dist/components/badge/index.js +24 -0
  100. package/dist/components/breadcrumbs/index.d.ts +2 -1
  101. package/dist/components/breadcrumbs/index.js +31 -63
  102. package/dist/components/breadcrumbs/types.d.ts +2 -1
  103. package/dist/components/button/button.d.ts +1 -0
  104. package/dist/components/button/icon.js +31 -10
  105. package/dist/components/button/index.js +7 -5
  106. package/dist/components/button/row.d.ts +7 -0
  107. package/dist/components/button/row.js +14 -0
  108. package/dist/components/controls/base-control/affix.d.ts +1 -1
  109. package/dist/components/controls/base-control/index.js +35 -23
  110. package/dist/components/controls/base-control/props.d.ts +9 -1
  111. package/dist/components/controls/base-control/props.js +31 -12
  112. package/dist/components/controls/base-popover-control/index.js +41 -27
  113. package/dist/components/controls/card-number-control/cards/index.d.ts +0 -1
  114. package/dist/components/controls/card-number-control/cards/index.js +6 -8
  115. package/dist/components/controls/card-number-control/index.js +39 -435
  116. package/dist/components/controls/checkbox-control/index.d.ts +2 -0
  117. package/dist/components/controls/checkbox-control/index.js +80 -46
  118. package/dist/components/controls/choice-control/choice.js +30 -23
  119. package/dist/components/controls/choice-control/index.js +6 -5
  120. package/dist/components/controls/date-control/component.d.ts +8 -7
  121. package/dist/components/controls/date-control/component.js +27 -28
  122. package/dist/components/controls/date-control/index.d.ts +5 -9
  123. package/dist/components/controls/date-control/index.js +131 -35
  124. package/dist/components/controls/date-control/picker.d.ts +8 -0
  125. package/dist/components/controls/date-control/picker.js +18 -0
  126. package/dist/components/controls/date-control/types.d.ts +10 -13
  127. package/dist/components/controls/date-control/types.js +75 -52
  128. package/dist/components/controls/date-control/util.d.ts +1 -0
  129. package/dist/components/controls/date-control/util.js +1608 -0
  130. package/dist/components/controls/index.d.ts +3 -1
  131. package/dist/components/controls/index.js +32 -27
  132. package/dist/components/controls/list-control/index.d.ts +9 -0
  133. package/dist/components/controls/list-control/index.js +42 -0
  134. package/dist/components/controls/list-control/item.d.ts +10 -0
  135. package/dist/components/controls/list-control/item.js +108 -0
  136. package/dist/components/controls/list-control/list.d.ts +10 -0
  137. package/dist/components/controls/list-control/list.js +89 -0
  138. package/dist/components/controls/list-control/types.d.ts +6 -0
  139. package/dist/components/controls/markdown-control/commands.d.ts +1 -0
  140. package/dist/components/controls/markdown-control/commands.js +5 -0
  141. package/dist/components/controls/markdown-control/editor.d.ts +8 -0
  142. package/dist/components/controls/markdown-control/editor.js +807 -0
  143. package/dist/components/controls/markdown-control/index.d.ts +7 -0
  144. package/dist/components/controls/markdown-control/index.js +20 -0
  145. package/dist/components/controls/markdown-control/slash/base.d.ts +14 -0
  146. package/dist/components/controls/markdown-control/slash/base.js +9 -0
  147. package/dist/components/controls/markdown-control/slash/mentions.d.ts +6 -0
  148. package/dist/components/controls/markdown-control/slash/mentions.js +14 -0
  149. package/dist/components/controls/markdown-control/toolbar.d.ts +6 -0
  150. package/dist/components/controls/markdown-control/toolbar.js +10 -0
  151. package/dist/components/controls/number-control/index.js +8 -7
  152. package/dist/components/controls/password-control/index.js +4 -3
  153. package/dist/components/controls/recurrence-control/index.js +81 -100
  154. package/dist/components/controls/select-control/control.d.ts +3 -0
  155. package/dist/components/controls/select-control/control.js +53 -0
  156. package/dist/components/controls/select-control/index.d.ts +2 -1
  157. package/dist/components/controls/select-control/index.js +6 -5
  158. package/dist/components/controls/select-control/props.d.ts +14 -0
  159. package/dist/components/controls/select-control/props.js +1 -0
  160. package/dist/components/controls/select-control/select.d.ts +3 -0
  161. package/dist/components/controls/select-control/select.js +1186 -0
  162. package/dist/components/controls/text-control/index.js +11 -10
  163. package/dist/components/controls/textarea-control/index.js +7 -6
  164. package/dist/components/controls/toggle-control/index.d.ts +4 -3
  165. package/dist/components/controls/toggle-control/index.js +73 -53
  166. package/dist/components/controls/toggle-group-control/index.d.ts +1 -0
  167. package/dist/components/controls/toggle-group-control/index.js +35 -26
  168. package/dist/components/data-form/api.d.ts +2 -0
  169. package/dist/components/data-form/api.js +1826 -0
  170. package/dist/components/data-form/autosave.d.ts +4 -0
  171. package/dist/components/data-form/autosave.js +12 -0
  172. package/dist/components/data-form/context.d.ts +10 -0
  173. package/dist/components/data-form/context.js +10 -0
  174. package/dist/components/data-form/form.d.ts +11 -0
  175. package/dist/components/data-form/form.js +30 -0
  176. package/dist/components/data-form/index.js +14 -0
  177. package/dist/components/data-form/row.d.ts +7 -0
  178. package/dist/components/data-form/row.js +16 -0
  179. package/dist/components/data-form/status.d.ts +6 -0
  180. package/dist/components/data-form/status.js +37 -0
  181. package/dist/components/data-form/submit.d.ts +10 -0
  182. package/dist/components/data-form/submit.js +37 -0
  183. package/dist/components/data-form/types.d.ts +37 -0
  184. package/dist/components/data-form/types.js +1 -0
  185. package/dist/components/data-view/api.d.ts +24 -0
  186. package/dist/components/data-view/api.js +31 -0
  187. package/dist/components/data-view/data/apply.d.ts +10 -0
  188. package/dist/components/data-view/data/apply.js +346 -0
  189. package/dist/components/data-view/data/fields.d.ts +4 -0
  190. package/dist/components/data-view/data/fields.js +26 -0
  191. package/dist/components/data-view/data/filter.d.ts +8 -0
  192. package/dist/components/data-view/data/filter.js +48 -0
  193. package/dist/components/data-view/data/layout.d.ts +2 -0
  194. package/dist/components/data-view/data/layout.js +19 -0
  195. package/dist/components/data-view/data/normalize.d.ts +5 -0
  196. package/dist/components/data-view/data/normalize.js +76 -0
  197. package/dist/components/data-view/data/options.d.ts +10 -0
  198. package/dist/components/data-view/data/options.js +297 -0
  199. package/dist/components/data-view/index.d.ts +5 -0
  200. package/dist/components/data-view/index.js +9 -0
  201. package/dist/components/data-view/layouts/grid/empty.d.ts +2 -0
  202. package/dist/components/data-view/layouts/grid/empty.js +6 -0
  203. package/dist/components/data-view/layouts/grid/group.d.ts +2 -0
  204. package/dist/components/data-view/layouts/grid/group.js +57 -0
  205. package/dist/components/data-view/layouts/grid/index.d.ts +3 -0
  206. package/dist/components/data-view/layouts/grid/index.js +8 -0
  207. package/dist/components/data-view/layouts/grid/item.d.ts +2 -0
  208. package/dist/components/data-view/layouts/grid/item.js +98 -0
  209. package/dist/components/data-view/layouts/grid/root.d.ts +2 -0
  210. package/dist/components/data-view/layouts/grid/root.js +6 -0
  211. package/dist/components/data-view/layouts/kanban/empty.d.ts +2 -0
  212. package/dist/components/data-view/layouts/kanban/empty.js +6 -0
  213. package/dist/components/data-view/layouts/kanban/group.d.ts +2 -0
  214. package/dist/components/data-view/layouts/kanban/group.js +57 -0
  215. package/dist/components/data-view/layouts/kanban/index.d.ts +3 -0
  216. package/dist/components/data-view/layouts/kanban/index.js +8 -0
  217. package/dist/components/data-view/layouts/kanban/item.d.ts +2 -0
  218. package/dist/components/data-view/layouts/kanban/item.js +98 -0
  219. package/dist/components/data-view/layouts/kanban/root.d.ts +2 -0
  220. package/dist/components/data-view/layouts/kanban/root.js +18 -0
  221. package/dist/components/data-view/layouts/list/empty.d.ts +2 -0
  222. package/dist/components/data-view/layouts/list/empty.js +6 -0
  223. package/dist/components/data-view/layouts/list/group.d.ts +2 -0
  224. package/dist/components/data-view/layouts/list/group.js +57 -0
  225. package/dist/components/data-view/layouts/list/index.d.ts +3 -0
  226. package/dist/components/data-view/layouts/list/index.js +8 -0
  227. package/dist/components/data-view/layouts/list/item.d.ts +2 -0
  228. package/dist/components/data-view/layouts/list/item.js +77 -0
  229. package/dist/components/data-view/layouts/list/root.d.ts +2 -0
  230. package/dist/components/data-view/layouts/list/root.js +6 -0
  231. package/dist/components/data-view/layouts/table/empty.d.ts +2 -0
  232. package/dist/components/data-view/layouts/table/empty.js +54 -0
  233. package/dist/components/data-view/layouts/table/group.d.ts +2 -0
  234. package/dist/components/data-view/layouts/table/group.js +67 -0
  235. package/dist/components/data-view/layouts/table/index.d.ts +3 -0
  236. package/dist/components/data-view/layouts/table/index.js +8 -0
  237. package/dist/components/data-view/layouts/table/item.d.ts +2 -0
  238. package/dist/components/data-view/layouts/table/item.js +77 -0
  239. package/dist/components/data-view/layouts/table/root.d.ts +2 -0
  240. package/dist/components/data-view/layouts/table/root.js +134 -0
  241. package/dist/components/data-view/parts/body/empty.d.ts +2 -0
  242. package/dist/components/data-view/parts/body/empty.js +50 -0
  243. package/dist/components/data-view/parts/body/index.d.ts +2 -0
  244. package/dist/components/data-view/parts/body/index.js +64 -0
  245. package/dist/components/data-view/parts/controls/index.d.ts +5 -0
  246. package/dist/components/data-view/parts/controls/index.js +139 -0
  247. package/dist/components/data-view/parts/controls/search.d.ts +5 -0
  248. package/dist/components/data-view/parts/controls/search.js +77 -0
  249. package/dist/components/data-view/parts/filters/chip.d.ts +13 -0
  250. package/dist/components/data-view/parts/filters/chip.js +53 -0
  251. package/dist/components/data-view/parts/filters/editor.d.ts +10 -0
  252. package/dist/components/data-view/parts/filters/editor.js +89 -0
  253. package/dist/components/data-view/parts/filters/index.js +9 -0
  254. package/dist/components/data-view/parts/filters/list.d.ts +11 -0
  255. package/dist/components/data-view/parts/filters/list.js +108 -0
  256. package/dist/components/data-view/parts/filters/utils.d.ts +2 -0
  257. package/dist/components/data-view/parts/filters/utils.js +13 -0
  258. package/dist/components/data-view/parts/footer/actions.d.ts +2 -0
  259. package/dist/components/data-view/parts/footer/actions.js +104 -0
  260. package/dist/components/data-view/parts/footer/index.js +68 -0
  261. package/dist/components/data-view/parts/footer/selection.d.ts +2 -0
  262. package/dist/components/data-view/parts/footer/selection.js +61 -0
  263. package/dist/components/data-view/parts/index.d.ts +5 -0
  264. package/dist/components/data-view/parts/index.js +12 -0
  265. package/dist/components/data-view/parts/view-control/index.d.ts +6 -0
  266. package/dist/components/data-view/parts/view-control/index.js +215 -0
  267. package/dist/components/data-view/root.d.ts +18 -0
  268. package/dist/components/data-view/root.js +105 -0
  269. package/dist/components/data-view/slots/group/checkbox.d.ts +7 -0
  270. package/dist/components/data-view/slots/group/checkbox.js +41 -0
  271. package/dist/components/data-view/slots/group/context.d.ts +12 -0
  272. package/dist/components/data-view/slots/group/context.js +23 -0
  273. package/dist/components/data-view/slots/group/icon.d.ts +1 -0
  274. package/dist/components/data-view/slots/group/icon.js +4 -0
  275. package/dist/components/data-view/slots/group/index.js +5 -0
  276. package/dist/components/data-view/slots/group/label.d.ts +3 -0
  277. package/dist/components/data-view/slots/group/label.js +5 -0
  278. package/dist/components/data-view/slots/index.d.ts +4 -0
  279. package/dist/components/data-view/slots/index.js +9 -0
  280. package/dist/components/data-view/slots/item/actions.d.ts +6 -0
  281. package/dist/components/data-view/slots/item/actions.js +44 -0
  282. package/dist/components/data-view/slots/item/checkbox.d.ts +7 -0
  283. package/dist/components/data-view/slots/item/checkbox.js +87 -0
  284. package/dist/components/data-view/slots/item/context.d.ts +8 -0
  285. package/dist/components/data-view/slots/item/context.js +10 -0
  286. package/dist/components/data-view/slots/item/depth.d.ts +3 -0
  287. package/dist/components/data-view/slots/item/depth.js +9 -0
  288. package/dist/components/data-view/slots/item/description.d.ts +3 -0
  289. package/dist/components/data-view/slots/item/description.js +6 -0
  290. package/dist/components/data-view/slots/item/index.js +8 -0
  291. package/dist/components/data-view/slots/item/properties.d.ts +13 -0
  292. package/dist/components/data-view/slots/item/properties.js +8 -0
  293. package/dist/components/data-view/slots/item/relations.d.ts +7 -0
  294. package/dist/components/data-view/slots/item/relations.js +21 -0
  295. package/dist/components/data-view/slots/item/tags.d.ts +6 -0
  296. package/dist/components/data-view/slots/item/tags.js +7 -0
  297. package/dist/components/data-view/slots/item/thumbnail.d.ts +6 -0
  298. package/dist/components/data-view/slots/item/thumbnail.js +6 -0
  299. package/dist/components/data-view/slots/item/title.d.ts +3 -0
  300. package/dist/components/data-view/slots/item/title.js +17 -0
  301. package/dist/components/data-view/slots/item/util.d.ts +6 -0
  302. package/dist/components/data-view/slots/item/util.js +6 -0
  303. package/dist/components/data-view/slots/property/context.d.ts +8 -0
  304. package/dist/components/data-view/slots/property/context.js +10 -0
  305. package/dist/components/data-view/slots/property/field/editable.d.ts +3 -0
  306. package/dist/components/data-view/slots/property/field/editable.js +42 -0
  307. package/dist/components/data-view/slots/property/field/index.d.ts +3 -0
  308. package/dist/components/data-view/slots/property/field/index.js +7 -0
  309. package/dist/components/data-view/slots/property/field/static.d.ts +8 -0
  310. package/dist/components/data-view/slots/property/field/static.js +7 -0
  311. package/dist/components/data-view/slots/property/field/types.d.ts +5 -0
  312. package/dist/components/data-view/slots/property/field/types.js +1 -0
  313. package/dist/components/data-view/slots/property/index.js +5 -0
  314. package/dist/components/data-view/slots/property/label.d.ts +7 -0
  315. package/dist/components/data-view/slots/property/label.js +5 -0
  316. package/dist/components/data-view/slots/root/checkbox.d.ts +7 -0
  317. package/dist/components/data-view/slots/root/checkbox.js +40 -0
  318. package/dist/components/data-view/slots/root/context.d.ts +25 -0
  319. package/dist/components/data-view/slots/root/context.js +11 -0
  320. package/dist/components/data-view/slots/root/index.js +5 -0
  321. package/dist/components/data-view/types/actions.d.ts +15 -0
  322. package/dist/components/data-view/types/actions.js +1 -0
  323. package/dist/components/data-view/types/fields.d.ts +64 -0
  324. package/dist/components/data-view/types/fields.js +1 -0
  325. package/dist/components/data-view/types/filters.d.ts +19 -0
  326. package/dist/components/data-view/types/filters.js +1 -0
  327. package/dist/components/data-view/types/hierarchy.d.ts +13 -0
  328. package/dist/components/data-view/types/hierarchy.js +1 -0
  329. package/dist/components/data-view/types/index.d.ts +3 -0
  330. package/dist/components/data-view/types/index.js +1 -0
  331. package/dist/components/data-view/types/view.d.ts +47 -0
  332. package/dist/components/data-view/types/view.js +1 -0
  333. package/dist/components/filesystem/file.js +1 -1
  334. package/dist/components/filesystem/folder.js +30 -29
  335. package/dist/components/filesystem/index.js +1 -1
  336. package/dist/components/filesystem/list.js +1 -1
  337. package/dist/components/filesystem/root.js +1 -1
  338. package/dist/components/form/components/pagination.js +72 -17
  339. package/dist/components/index.d.ts +7 -2
  340. package/dist/components/index.js +69 -50
  341. package/dist/components/menu/index.d.ts +4 -0
  342. package/dist/components/menu/index.js +40 -129
  343. package/dist/components/menu/item.js +1 -1
  344. package/dist/components/menu/items/action.js +2 -1
  345. package/dist/components/menu/items/spacer.js +3 -3
  346. package/dist/components/menu/items/submenu.js +4 -3
  347. package/dist/components/menu/items/toggle.js +11 -10
  348. package/dist/components/menu/types.d.ts +1 -0
  349. package/dist/components/pagination/index.d.ts +10 -0
  350. package/dist/components/pagination/index.js +63 -0
  351. package/dist/components/progress/index.d.ts +2 -1
  352. package/dist/components/progress/index.js +29 -20
  353. package/dist/components/shell/index.js +12 -0
  354. package/dist/components/shell/navigation.d.ts +6 -0
  355. package/dist/components/shell/navigation.js +6 -0
  356. package/dist/components/shell/pane.d.ts +9 -0
  357. package/dist/components/shell/pane.js +38 -0
  358. package/dist/components/shell/root.d.ts +7 -0
  359. package/dist/components/shell/root.js +31 -0
  360. package/dist/components/shell/sidebar.d.ts +6 -0
  361. package/dist/components/shell/sidebar.js +6 -0
  362. package/dist/components/tabs/index.js +1 -1
  363. package/dist/components/tabs/list.js +3 -3
  364. package/dist/components/tabs/panel.js +11 -10
  365. package/dist/components/tabs/root.js +42 -42
  366. package/dist/components/tabs/tab.js +4 -4
  367. package/dist/components/tag/index.js +8 -0
  368. package/dist/components/tag/list.d.ts +8 -0
  369. package/dist/components/tag/list.js +10 -0
  370. package/dist/components/tag/tag.d.ts +8 -0
  371. package/dist/components/tag/tag.js +26 -0
  372. package/dist/components/tag/types.d.ts +6 -0
  373. package/dist/components/tag/types.js +1 -0
  374. package/dist/components/toolbar/divider.d.ts +6 -0
  375. package/dist/components/toolbar/divider.js +24 -0
  376. package/dist/components/toolbar/index.js +19 -15
  377. package/dist/components/toolbar/root.js +67 -4
  378. package/dist/components/window/index.d.ts +8 -0
  379. package/dist/components/window/index.js +54 -0
  380. package/dist/{composite-provider-DNftbE5U.js → composite-provider-R5SnRc_G.js} +4 -4
  381. package/dist/filter-HYEwffYa.js +133 -0
  382. package/dist/floating-ui.dom-2MezWvgs.js +1070 -0
  383. package/dist/hooks/index.d.ts +4 -1
  384. package/dist/hooks/index.js +10 -4
  385. package/dist/hooks/input.js +13 -13
  386. package/dist/hooks/keyboard.d.ts +7 -0
  387. package/dist/hooks/keyboard.js +40 -0
  388. package/dist/hooks/selection.d.ts +19 -0
  389. package/dist/hooks/selection.js +57 -0
  390. package/dist/hooks/state.js +3 -3
  391. package/dist/hooks/temporary.d.ts +7 -0
  392. package/dist/hooks/temporary.js +12 -0
  393. package/dist/index-C2R91pmO.js +251 -0
  394. package/dist/index-CwFPDtaz.js +172 -0
  395. package/dist/index-D7vLJIGX.js +90 -0
  396. package/dist/index-DgyEPQBp.js +55 -0
  397. package/dist/index-EPj3dCzl.js +16324 -0
  398. package/dist/index-EQOyE9yF.js +73 -0
  399. package/dist/index.js +112 -63
  400. package/dist/item-C5GtZF5t.js +470 -0
  401. package/dist/picker-HwuTWxQw.js +858 -0
  402. package/dist/primitives/colourway/index.d.ts +9 -0
  403. package/dist/primitives/colourway/index.js +26 -0
  404. package/dist/primitives/colourway/util.d.ts +2 -0
  405. package/dist/primitives/colourway/util.js +146 -0
  406. package/dist/primitives/icon-label/index.d.ts +8 -0
  407. package/dist/primitives/icon-label/index.js +23 -0
  408. package/dist/primitives/index.d.ts +7 -0
  409. package/dist/primitives/index.js +34 -10
  410. package/dist/primitives/link/index.d.ts +5 -0
  411. package/dist/primitives/link/index.js +24 -0
  412. package/dist/primitives/popover/index.js +10 -0
  413. package/dist/primitives/popover/root.d.ts +10 -0
  414. package/dist/primitives/popover/root.js +5 -0
  415. package/dist/primitives/popover/target.d.ts +7 -0
  416. package/dist/primitives/popover/target.js +18 -0
  417. package/dist/primitives/popover/window.d.ts +6 -0
  418. package/dist/primitives/popover/window.js +38 -0
  419. package/dist/primitives/resizable/index.js +43 -32
  420. package/dist/primitives/scroll-area/index.js +4 -5
  421. package/dist/primitives/symbol/danger.d.ts +6 -0
  422. package/dist/primitives/symbol/danger.js +83 -0
  423. package/dist/primitives/symbol/index.d.ts +5 -0
  424. package/dist/primitives/symbol/index.js +12 -0
  425. package/dist/primitives/symbol/progress.d.ts +6 -0
  426. package/dist/primitives/symbol/progress.js +162 -0
  427. package/dist/primitives/symbol/types.d.ts +5 -0
  428. package/dist/primitives/symbol/types.js +1 -0
  429. package/dist/primitives/tooltip/index.d.ts +7 -0
  430. package/dist/primitives/tooltip/index.js +178 -0
  431. package/dist/primitives/truncate/index.js +14 -13
  432. package/dist/primitives/typography/heading.d.ts +16 -0
  433. package/dist/primitives/typography/heading.js +50 -0
  434. package/dist/primitives/typography/index.d.ts +2 -0
  435. package/dist/primitives/typography/index.js +12 -0
  436. package/dist/primitives/typography/paragraph.d.ts +9 -0
  437. package/dist/primitives/typography/paragraph.js +25 -0
  438. package/dist/protectedTokens-DdjZoCxO.js +587 -0
  439. package/dist/root-C7IYlG1s.js +20 -0
  440. package/dist/sortable.esm-De3H-_AA.js +3009 -0
  441. package/dist/style-A7_0w2WD.js +397 -0
  442. package/dist/style-Bp4uISf6.js +670 -0
  443. package/dist/toolbar-j1SJvq8D.js +6283 -0
  444. package/dist/types/component.d.ts +1 -0
  445. package/dist/types/options.d.ts +1 -0
  446. package/dist/types/options.js +8 -2
  447. package/dist/types/util.d.ts +1 -0
  448. package/dist/types/util.js +1 -0
  449. package/dist/utils/array.d.ts +1 -0
  450. package/dist/utils/array.js +9 -0
  451. package/dist/utils/components.d.ts +2 -1
  452. package/dist/utils/components.js +11 -7
  453. package/dist/utils/object.d.ts +1 -0
  454. package/dist/utils/object.js +8 -0
  455. package/dist/utils/url.d.ts +1 -0
  456. package/dist/utils/url.js +10 -0
  457. package/package.json +23 -3
  458. package/dist/2NBKRL7C-BAzCMGOw.js +0 -85
  459. package/dist/ArrowRight.es-xyNbtVOa.js +0 -60
  460. package/dist/DG5U6ZEL-CVj-Czp2.js +0 -17
  461. package/dist/MTZPJQMC-DyCWBG18.js +0 -14
  462. package/dist/P7GR5CS5-BoOYUfSQ.js +0 -19
  463. package/dist/TP7N7UIH-BHb1rEeb.js +0 -34
  464. package/dist/VIIRIBF3-D5DmZNtI.js +0 -26
  465. package/dist/WMYDSCNQ-Dy1O-Kdl.js +0 -2405
  466. package/dist/WYCIER3C-DRn904Gy.js +0 -175
  467. package/dist/components/block-editor/editor.d.ts +0 -5
  468. package/dist/components/block-editor/editor.js +0 -6
  469. package/dist/components/block-editor/index.d.ts +0 -1
  470. package/dist/components/block-editor/index.js +0 -4
  471. package/dist/components/button/index.d.ts +0 -4
  472. package/dist/components/controls/card-number-control/cards/generic.d.ts +0 -2
  473. package/dist/components/controls/card-number-control/cards/generic.js +0 -19
  474. package/dist/components/controls/select-control/component.d.ts +0 -12
  475. package/dist/components/controls/select-control/component.js +0 -1898
  476. package/dist/components/data-table/column.d.ts +0 -4
  477. package/dist/components/data-table/column.js +0 -874
  478. package/dist/components/data-table/context.d.ts +0 -7
  479. package/dist/components/data-table/context.js +0 -36
  480. package/dist/components/data-table/example.d.ts +0 -1
  481. package/dist/components/data-table/example.js +0 -5
  482. package/dist/components/data-table/footer.js +0 -23
  483. package/dist/components/data-table/header.d.ts +0 -7
  484. package/dist/components/data-table/header.js +0 -358
  485. package/dist/components/data-table/index.d.ts +0 -10
  486. package/dist/components/data-table/index.js +0 -86
  487. package/dist/components/data-table/types.d.ts +0 -75
  488. package/dist/hooks/theme.d.ts +0 -8
  489. package/dist/hooks/theme.js +0 -14
  490. package/dist/index-1AjPIqTN.js +0 -73
  491. package/dist/item-B1ugJ7YQ.js +0 -764
  492. package/dist/root-CaKPdqzv.js +0 -73
  493. /package/dist/components/{data-table → controls/list-control}/types.js +0 -0
  494. /package/dist/components/{data-table/footer.d.ts → data-view/parts/footer/index.d.ts} +0 -0
@@ -1,2405 +0,0 @@
1
- import { e as rn, m as Ln, o as Mn, t as $n, c as Nn, f as _n, a as gt, b as Vn } from "./YV4JVR4I-kvospPUa.js";
2
- import { $ as kn, Y as de, U as Kt, X as Gt, Z as Hn, a as lt, m as V, o as R, f as G, q as nt, _ as Ot, n as De, b as K, ah as ze, D as W, l as ft, W as kt, V as Re, a0 as vt, M as Q, S as Bn, e as Bt, ae as Wn, a1 as on, ai as In, aj as zn, a6 as pe, a8 as sn, s as jn, g as cn, C as qn, j as me, H as Yn, A as Xn, i as ie, ab as Un } from "./LMDWO4NN--KEvZePp.js";
3
- import { createContext as Te, useRef as J, useContext as Ce, useState as ht, useEffect as q, useCallback as ee, useMemo as Kn, isValidElement as Gn } from "react";
4
- import { b as ge, c as je, r as Zn, d as Jn, F as Qn, i as tr, g as er, e as nr, j as Ht, u as rr, k as or } from "./PFRGBC2K-BEg8ahbY.js";
5
- import { r as be } from "./index-Cgx3BqdJ.js";
6
- import { jsx as $, jsxs as Qt, Fragment as te } from "react/jsx-runtime";
7
- import { c as ir, b as sr, u as cr, a as ln, i as lr } from "./WYCIER3C-DRn904Gy.js";
8
- import { c as se, D as ar, d as ur, e as fr } from "./RS7LB2H4-D0fWv5qu.js";
9
- import { b as ce, P as an } from "./MTZPJQMC-DyCWBG18.js";
10
- import { u as dr } from "./F5MUBM3I-87B2_4WK.js";
11
- function un(t = {}) {
12
- return ir(t);
13
- }
14
- function fn(t, e, r) {
15
- return sr(t, e, r);
16
- }
17
- function pr(t = {}) {
18
- const [e, r] = rn(un, t);
19
- return fn(e, r, t);
20
- }
21
- function mr(t = {}) {
22
- var e = t, {
23
- popover: r
24
- } = e, n = kn(e, [
25
- "popover"
26
- ]);
27
- const o = Ln(
28
- n.store,
29
- Mn(r, [
30
- "arrowElement",
31
- "anchorElement",
32
- "contentElement",
33
- "popoverElement",
34
- "disclosureElement"
35
- ])
36
- );
37
- $n(n, o);
38
- const i = o == null ? void 0 : o.getState(), s = un(de(Kt({}, n), { store: o })), c = Gt(
39
- n.placement,
40
- i == null ? void 0 : i.placement,
41
- "bottom"
42
- ), l = de(Kt({}, s.getState()), {
43
- placement: c,
44
- currentPlacement: c,
45
- anchorElement: Gt(i == null ? void 0 : i.anchorElement, null),
46
- popoverElement: Gt(i == null ? void 0 : i.popoverElement, null),
47
- arrowElement: Gt(i == null ? void 0 : i.arrowElement, null),
48
- rendered: Symbol("rendered")
49
- }), a = Nn(l, s, o);
50
- return de(Kt(Kt({}, s), a), {
51
- setAnchorElement: (u) => a.setState("anchorElement", u),
52
- setPopoverElement: (u) => a.setState("popoverElement", u),
53
- setArrowElement: (u) => a.setState("arrowElement", u),
54
- render: () => a.setState("rendered", Symbol("rendered"))
55
- });
56
- }
57
- function gr(t, e, r) {
58
- return Hn(e, [r.popover]), _n(t, r, "placement"), fn(t, e, r);
59
- }
60
- function si(t = {}) {
61
- const [e, r] = rn(mr, t);
62
- return gr(e, r, t);
63
- }
64
- var qe = Te(null), hr = "span", dn = lt(
65
- function(e) {
66
- return e = V(R({}, e), {
67
- style: R({
68
- border: 0,
69
- clip: "rect(0 0 0 0)",
70
- height: "1px",
71
- margin: "-1px",
72
- overflow: "hidden",
73
- padding: 0,
74
- position: "absolute",
75
- whiteSpace: "nowrap",
76
- width: "1px"
77
- }, e.style)
78
- }), e;
79
- }
80
- );
81
- G(function(e) {
82
- const r = dn(e);
83
- return nt(hr, r);
84
- });
85
- var vr = "span", wr = lt(
86
- function(e) {
87
- return e = V(R({
88
- "data-focus-trap": "",
89
- tabIndex: 0,
90
- "aria-hidden": !0
91
- }, e), {
92
- style: R({
93
- // Prevents unintended scroll jumps.
94
- position: "fixed",
95
- top: 0,
96
- left: 0
97
- }, e.style)
98
- }), e = dn(e), e;
99
- }
100
- ), Zt = G(function(e) {
101
- const r = wr(e);
102
- return nt(vr, r);
103
- }), xr = "div";
104
- function br(t) {
105
- return W(t).body;
106
- }
107
- function yr(t, e) {
108
- return e ? typeof e == "function" ? e(t) : e : W(t).createElement("div");
109
- }
110
- function Er(t = "id") {
111
- return `${t ? `${t}-` : ""}${Math.random().toString(36).slice(2, 8)}`;
112
- }
113
- function mt(t) {
114
- queueMicrotask(() => {
115
- t == null || t.focus();
116
- });
117
- }
118
- var pn = lt(function(e) {
119
- var r = e, {
120
- preserveTabOrder: n,
121
- preserveTabOrderAnchor: o,
122
- portalElement: i,
123
- portalRef: s,
124
- portal: c = !0
125
- } = r, l = Ot(r, [
126
- "preserveTabOrder",
127
- "preserveTabOrderAnchor",
128
- "portalElement",
129
- "portalRef",
130
- "portal"
131
- ]);
132
- const a = J(null), u = De(a, l.ref), d = Ce(qe), [f, m] = ht(null), [h, w] = ht(
133
- null
134
- ), y = J(null), b = J(null), P = J(null), E = J(null);
135
- return K(() => {
136
- const p = a.current;
137
- if (!p || !c) {
138
- m(null);
139
- return;
140
- }
141
- const g = yr(p, i);
142
- if (!g) {
143
- m(null);
144
- return;
145
- }
146
- const A = g.isConnected;
147
- if (A || (d || br(p)).appendChild(g), g.id || (g.id = p.id ? `portal/${p.id}` : Er()), m(g), ze(s, g), !A)
148
- return () => {
149
- g.remove(), ze(s, null);
150
- };
151
- }, [c, i, d, s]), K(() => {
152
- if (!c || !n || !o) return;
153
- const g = W(o).createElement("span");
154
- return g.style.position = "fixed", o.insertAdjacentElement("afterend", g), w(g), () => {
155
- g.remove(), w(null);
156
- };
157
- }, [c, n, o]), q(() => {
158
- if (!f || !n) return;
159
- let p = 0;
160
- const g = (A) => {
161
- if (!kt(A)) return;
162
- const x = A.type === "focusin";
163
- if (cancelAnimationFrame(p), x)
164
- return Zn(f);
165
- p = requestAnimationFrame(() => {
166
- Jn(f, !0);
167
- });
168
- };
169
- return f.addEventListener("focusin", g, !0), f.addEventListener("focusout", g, !0), () => {
170
- cancelAnimationFrame(p), f.removeEventListener("focusin", g, !0), f.removeEventListener("focusout", g, !0);
171
- };
172
- }, [f, n]), l = ft(
173
- l,
174
- (p) => {
175
- if (p = // While the portal node is not in the DOM, we need to pass the
176
- // current context to the portal context, otherwise it's going to
177
- // reset to the body element on nested portals.
178
- /* @__PURE__ */ $(qe.Provider, { value: f || d, children: p }), !c) return p;
179
- if (!f)
180
- return /* @__PURE__ */ $(
181
- "span",
182
- {
183
- ref: u,
184
- id: l.id,
185
- style: { position: "fixed" },
186
- hidden: !0
187
- }
188
- );
189
- p = /* @__PURE__ */ Qt(te, { children: [
190
- n && f && /* @__PURE__ */ $(
191
- Zt,
192
- {
193
- ref: b,
194
- "data-focus-trap": l.id,
195
- className: "__focus-trap-inner-before",
196
- onFocus: (A) => {
197
- kt(A, f) ? mt(ge()) : mt(y.current);
198
- }
199
- }
200
- ),
201
- p,
202
- n && f && /* @__PURE__ */ $(
203
- Zt,
204
- {
205
- ref: P,
206
- "data-focus-trap": l.id,
207
- className: "__focus-trap-inner-after",
208
- onFocus: (A) => {
209
- kt(A, f) ? mt(je()) : mt(E.current);
210
- }
211
- }
212
- )
213
- ] }), f && (p = be.createPortal(p, f));
214
- let g = /* @__PURE__ */ Qt(te, { children: [
215
- n && f && /* @__PURE__ */ $(
216
- Zt,
217
- {
218
- ref: y,
219
- "data-focus-trap": l.id,
220
- className: "__focus-trap-outer-before",
221
- onFocus: (A) => {
222
- !(A.relatedTarget === E.current) && kt(A, f) ? mt(b.current) : mt(je());
223
- }
224
- }
225
- ),
226
- n && // We're using position: fixed here so that the browser doesn't
227
- // add margin to the element when setting gap on a parent element.
228
- /* @__PURE__ */ $("span", { "aria-owns": f == null ? void 0 : f.id, style: { position: "fixed" } }),
229
- n && f && /* @__PURE__ */ $(
230
- Zt,
231
- {
232
- ref: E,
233
- "data-focus-trap": l.id,
234
- className: "__focus-trap-outer-after",
235
- onFocus: (A) => {
236
- if (kt(A, f))
237
- mt(P.current);
238
- else {
239
- const x = ge();
240
- if (x === b.current) {
241
- requestAnimationFrame(() => {
242
- var _;
243
- return (_ = ge()) == null ? void 0 : _.focus();
244
- });
245
- return;
246
- }
247
- mt(x);
248
- }
249
- }
250
- }
251
- )
252
- ] });
253
- return h && n && (g = be.createPortal(
254
- g,
255
- h
256
- )), /* @__PURE__ */ Qt(te, { children: [
257
- g,
258
- p
259
- ] });
260
- },
261
- [f, d, c, l.id, n, h]
262
- ), l = V(R({}, l), {
263
- ref: u
264
- }), l;
265
- });
266
- G(function(e) {
267
- const r = pn(e);
268
- return nt(xr, r);
269
- });
270
- var Ye = Te(0);
271
- function Pr({ level: t, children: e }) {
272
- const r = Ce(Ye), n = Math.max(
273
- Math.min(t || r + 1, 6),
274
- 1
275
- );
276
- return /* @__PURE__ */ $(Ye.Provider, { value: n, children: e });
277
- }
278
- var Ar = "div", mn = lt(function(e) {
279
- var r = e, { autoFocusOnShow: n = !0 } = r, o = Ot(r, ["autoFocusOnShow"]);
280
- return o = ft(
281
- o,
282
- (i) => /* @__PURE__ */ $(Qn.Provider, { value: n, children: i }),
283
- [n]
284
- ), o;
285
- });
286
- G(function(e) {
287
- const r = mn(e);
288
- return nt(Ar, r);
289
- });
290
- function Sr(t, e) {
291
- const n = W(t).createElement("button");
292
- return n.type = "button", n.tabIndex = -1, n.textContent = "Dismiss popup", Object.assign(n.style, {
293
- border: "0px",
294
- clip: "rect(0 0 0 0)",
295
- height: "1px",
296
- margin: "-1px",
297
- overflow: "hidden",
298
- padding: "0px",
299
- position: "absolute",
300
- whiteSpace: "nowrap",
301
- width: "1px"
302
- }), n.addEventListener("click", e), t.prepend(n), () => {
303
- n.removeEventListener("click", e), n.remove();
304
- };
305
- }
306
- function Or(t) {
307
- const e = J();
308
- return q(() => {
309
- if (!t) {
310
- e.current = null;
311
- return;
312
- }
313
- return Re("mousedown", (n) => {
314
- e.current = n.target;
315
- }, !0);
316
- }, [t]), e;
317
- }
318
- var he = /* @__PURE__ */ new WeakMap();
319
- function It(t, e, r) {
320
- he.has(t) || he.set(t, /* @__PURE__ */ new Map());
321
- const n = he.get(t), o = n.get(e);
322
- if (!o)
323
- return n.set(e, r()), () => {
324
- var c;
325
- (c = n.get(e)) == null || c(), n.delete(e);
326
- };
327
- const i = r(), s = () => {
328
- i(), o(), n.delete(e);
329
- };
330
- return n.set(e, s), () => {
331
- n.get(e) === s && (i(), n.set(e, o));
332
- };
333
- }
334
- function Fe(t, e, r) {
335
- return It(t, e, () => {
336
- const o = t.getAttribute(e);
337
- return t.setAttribute(e, r), () => {
338
- o == null ? t.removeAttribute(e) : t.setAttribute(e, o);
339
- };
340
- });
341
- }
342
- function At(t, e, r) {
343
- return It(t, e, () => {
344
- const o = e in t, i = t[e];
345
- return t[e] = r, () => {
346
- o ? t[e] = i : delete t[e];
347
- };
348
- });
349
- }
350
- function ye(t, e) {
351
- return t ? It(t, "style", () => {
352
- const n = t.style.cssText;
353
- return Object.assign(t.style, e), () => {
354
- t.style.cssText = n;
355
- };
356
- }) : () => {
357
- };
358
- }
359
- function Dr(t, e, r) {
360
- return t ? It(t, e, () => {
361
- const o = t.style.getPropertyValue(e);
362
- return t.style.setProperty(e, r), () => {
363
- o ? t.style.setProperty(e, o) : t.style.removeProperty(e);
364
- };
365
- }) : () => {
366
- };
367
- }
368
- var Rr = ["SCRIPT", "STYLE"];
369
- function Ee(t) {
370
- return `__ariakit-dialog-snapshot-${t}`;
371
- }
372
- function Tr(t, e) {
373
- const r = W(e), n = Ee(t);
374
- if (!r.body[n]) return !0;
375
- do {
376
- if (e === r.body) return !1;
377
- if (e[n]) return !0;
378
- if (!e.parentElement) return !1;
379
- e = e.parentElement;
380
- } while (!0);
381
- }
382
- function Cr(t, e, r) {
383
- return Rr.includes(e.tagName) || !Tr(t, e) ? !1 : !r.some(
384
- (n) => n && Q(e, n)
385
- );
386
- }
387
- function Le(t, e, r, n) {
388
- for (let o of e) {
389
- if (!(o != null && o.isConnected)) continue;
390
- const i = e.some((l) => !l || l === o ? !1 : l.contains(o)), s = W(o), c = o;
391
- for (; o.parentElement && o !== s.body; ) {
392
- if (n == null || n(o.parentElement, c), !i)
393
- for (const l of o.parentElement.children)
394
- Cr(t, l, e) && r(l, c);
395
- o = o.parentElement;
396
- }
397
- }
398
- }
399
- function Fr(t, e) {
400
- const { body: r } = W(e[0]), n = [];
401
- return Le(t, e, (i) => {
402
- n.push(At(i, Ee(t), !0));
403
- }), vt(At(r, Ee(t), !0), () => {
404
- for (const i of n)
405
- i();
406
- });
407
- }
408
- function gn(t, ...e) {
409
- if (!t) return !1;
410
- const r = t.getAttribute("data-backdrop");
411
- return r == null ? !1 : r === "" || r === "true" || !e.length ? !0 : e.some((n) => r === n);
412
- }
413
- function Lt(t = "", e = !1) {
414
- return `__ariakit-dialog-${e ? "ancestor" : "outside"}${t ? `-${t}` : ""}`;
415
- }
416
- function Lr(t, e = "") {
417
- return vt(
418
- At(t, Lt(), !0),
419
- At(t, Lt(e), !0)
420
- );
421
- }
422
- function hn(t, e = "") {
423
- return vt(
424
- At(t, Lt("", !0), !0),
425
- At(t, Lt(e, !0), !0)
426
- );
427
- }
428
- function Me(t, e) {
429
- const r = Lt(e, !0);
430
- if (t[r]) return !0;
431
- const n = Lt(e);
432
- do {
433
- if (t[n]) return !0;
434
- if (!t.parentElement) return !1;
435
- t = t.parentElement;
436
- } while (!0);
437
- }
438
- function Xe(t, e) {
439
- const r = [], n = e.map((i) => i == null ? void 0 : i.id);
440
- return Le(
441
- t,
442
- e,
443
- (i) => {
444
- gn(i, ...n) || r.unshift(Lr(i, t));
445
- },
446
- (i, s) => {
447
- s.hasAttribute("data-dialog") && s.id !== t || r.unshift(hn(i, t));
448
- }
449
- ), () => {
450
- for (const i of r)
451
- i();
452
- };
453
- }
454
- function Mr(t) {
455
- return t.tagName === "HTML" ? !0 : Q(W(t).body, t);
456
- }
457
- function $r(t, e) {
458
- if (!t) return !1;
459
- if (Q(t, e)) return !0;
460
- const r = e.getAttribute("aria-activedescendant");
461
- if (r) {
462
- const n = W(t).getElementById(r);
463
- if (n)
464
- return Q(t, n);
465
- }
466
- return !1;
467
- }
468
- function Nr(t, e) {
469
- if (!("clientY" in t)) return !1;
470
- const r = e.getBoundingClientRect();
471
- return r.width === 0 || r.height === 0 ? !1 : r.top <= t.clientY && t.clientY <= r.top + r.height && r.left <= t.clientX && t.clientX <= r.left + r.width;
472
- }
473
- function ve({
474
- store: t,
475
- type: e,
476
- listener: r,
477
- capture: n,
478
- domReady: o
479
- }) {
480
- const i = Bt(r), s = gt(t, "open"), c = J(!1);
481
- K(() => {
482
- if (!s || !o) return;
483
- const { contentElement: l } = t.getState();
484
- if (!l) return;
485
- const a = () => {
486
- c.current = !0;
487
- };
488
- return l.addEventListener("focusin", a, !0), () => l.removeEventListener("focusin", a, !0);
489
- }, [t, s, o]), q(() => s ? Re(e, (a) => {
490
- const { contentElement: u, disclosureElement: d } = t.getState(), f = a.target;
491
- !u || !f || !Mr(f) || Q(u, f) || $r(d, f) || f.hasAttribute("data-focus-trap") || Nr(a, u) || c.current && !Me(f, u.id) || tr(f) || i(a);
492
- }, n) : void 0, [s, n]);
493
- }
494
- function we(t, e) {
495
- return typeof t == "function" ? t(e) : !!t;
496
- }
497
- function _r(t, e, r) {
498
- const n = gt(t, "open"), o = Or(n), i = { store: t, domReady: r, capture: !0 };
499
- ve(V(R({}, i), {
500
- type: "click",
501
- listener: (s) => {
502
- const { contentElement: c } = t.getState(), l = o.current;
503
- l && Bn(l) && Me(l, c == null ? void 0 : c.id) && we(e, s) && t.hide();
504
- }
505
- })), ve(V(R({}, i), {
506
- type: "focusin",
507
- listener: (s) => {
508
- const { contentElement: c } = t.getState();
509
- c && s.target !== W(c) && we(e, s) && t.hide();
510
- }
511
- })), ve(V(R({}, i), {
512
- type: "contextmenu",
513
- listener: (s) => {
514
- we(e, s) && t.hide();
515
- }
516
- }));
517
- }
518
- var Ue = Te({});
519
- function Vr(t) {
520
- const e = Ce(Ue), [r, n] = ht([]), o = ee(
521
- (c) => {
522
- var l;
523
- return n((a) => [...a, c]), vt((l = e.add) == null ? void 0 : l.call(e, c), () => {
524
- n((a) => a.filter((u) => u !== c));
525
- });
526
- },
527
- [e]
528
- );
529
- K(() => Vn(t, ["open", "contentElement"], (c) => {
530
- var l;
531
- if (c.open && c.contentElement)
532
- return (l = e.add) == null ? void 0 : l.call(e, t);
533
- }), [t, e]);
534
- const i = Kn(() => ({ store: t, add: o }), [t, o]);
535
- return { wrapElement: ee(
536
- (c) => /* @__PURE__ */ $(Ue.Provider, { value: i, children: c }),
537
- [i]
538
- ), nestedDialogs: r };
539
- }
540
- function kr({
541
- attribute: t,
542
- contentId: e,
543
- contentElement: r,
544
- enabled: n
545
- }) {
546
- const [o, i] = Wn(), s = ee(() => {
547
- if (!n || !r) return !1;
548
- const { body: c } = W(r), l = c.getAttribute(t);
549
- return !l || l === e;
550
- }, [o, n, r, t, e]);
551
- return q(() => {
552
- if (!n || !e || !r) return;
553
- const { body: c } = W(r);
554
- if (s())
555
- return c.setAttribute(t, e), () => c.removeAttribute(t);
556
- const l = new MutationObserver(() => be.flushSync(i));
557
- return l.observe(c, { attributeFilter: [t] }), () => l.disconnect();
558
- }, [o, n, e, r, s, t]), s;
559
- }
560
- function Hr(t) {
561
- const e = t.getBoundingClientRect().left;
562
- return Math.round(e) + t.scrollLeft ? "paddingLeft" : "paddingRight";
563
- }
564
- function Br(t, e, r) {
565
- const n = kr({
566
- attribute: "data-dialog-prevent-body-scroll",
567
- contentElement: t,
568
- contentId: e,
569
- enabled: r
570
- });
571
- q(() => {
572
- if (!n() || !t) return;
573
- const o = W(t), i = on(t), { documentElement: s, body: c } = o, l = s.style.getPropertyValue("--scrollbar-width"), a = l ? Number.parseInt(l) : i.innerWidth - s.clientWidth, u = () => Dr(
574
- s,
575
- "--scrollbar-width",
576
- `${a}px`
577
- ), d = Hr(s), f = () => ye(c, {
578
- overflow: "hidden",
579
- [d]: `${a}px`
580
- }), m = () => {
581
- var w, y;
582
- const { scrollX: b, scrollY: P, visualViewport: E } = i, p = (w = E == null ? void 0 : E.offsetLeft) != null ? w : 0, g = (y = E == null ? void 0 : E.offsetTop) != null ? y : 0, A = ye(c, {
583
- position: "fixed",
584
- overflow: "hidden",
585
- top: `${-(P - Math.floor(g))}px`,
586
- left: `${-(b - Math.floor(p))}px`,
587
- right: "0",
588
- [d]: `${a}px`
589
- });
590
- return () => {
591
- A(), process.env.NODE_ENV !== "test" && i.scrollTo({ left: b, top: P, behavior: "instant" });
592
- };
593
- }, h = In() && !zn();
594
- return vt(
595
- u(),
596
- h ? m() : f()
597
- );
598
- }, [n, t]);
599
- }
600
- function Wr(t, ...e) {
601
- if (!t) return !1;
602
- const r = t.getAttribute("data-focus-trap");
603
- return r == null ? !1 : e.length ? r === "" ? !1 : e.some((n) => r === n) : !0;
604
- }
605
- function vn() {
606
- return "inert" in HTMLElement.prototype;
607
- }
608
- function Ir(t) {
609
- return Fe(t, "aria-hidden", "true");
610
- }
611
- function wn(t, e) {
612
- if (!("style" in t)) return pe;
613
- if (vn())
614
- return At(t, "inert", !0);
615
- const n = er(t, !0).map((o) => {
616
- if (e != null && e.some((s) => s && Q(s, o))) return pe;
617
- const i = It(o, "focus", () => (o.focus = pe, () => {
618
- delete o.focus;
619
- }));
620
- return vt(Fe(o, "tabindex", "-1"), i);
621
- });
622
- return vt(
623
- ...n,
624
- Ir(t),
625
- ye(t, {
626
- pointerEvents: "none",
627
- userSelect: "none",
628
- cursor: "default"
629
- })
630
- );
631
- }
632
- function zr(t, e) {
633
- const r = [], n = e.map((i) => i == null ? void 0 : i.id);
634
- return Le(
635
- t,
636
- e,
637
- (i) => {
638
- gn(i, ...n) || Wr(i, ...n) || r.unshift(wn(i, e));
639
- },
640
- (i) => {
641
- i.hasAttribute("role") && (e.some((s) => s && Q(s, i)) || r.unshift(Fe(i, "role", "none")));
642
- }
643
- ), () => {
644
- for (const i of r)
645
- i();
646
- };
647
- }
648
- var jr = "div", qr = [
649
- "a",
650
- "button",
651
- "details",
652
- "dialog",
653
- "div",
654
- "form",
655
- "h1",
656
- "h2",
657
- "h3",
658
- "h4",
659
- "h5",
660
- "h6",
661
- "header",
662
- "img",
663
- "input",
664
- "label",
665
- "li",
666
- "nav",
667
- "ol",
668
- "p",
669
- "section",
670
- "select",
671
- "span",
672
- "summary",
673
- "textarea",
674
- "ul",
675
- "svg"
676
- ];
677
- lt(
678
- function(e) {
679
- return e;
680
- }
681
- );
682
- var Pe = G(
683
- // @ts-expect-error
684
- function(e) {
685
- return nt(jr, e);
686
- }
687
- );
688
- Object.assign(
689
- Pe,
690
- qr.reduce((t, e) => (t[e] = G(function(n) {
691
- return nt(e, n);
692
- }), t), {})
693
- );
694
- function Yr({
695
- store: t,
696
- backdrop: e,
697
- alwaysVisible: r,
698
- hidden: n
699
- }) {
700
- const o = J(null), i = cr({ disclosure: t }), s = gt(t, "contentElement");
701
- q(() => {
702
- const a = o.current, u = s;
703
- a && u && (a.style.zIndex = getComputedStyle(u).zIndex);
704
- }, [s]), K(() => {
705
- const a = s == null ? void 0 : s.id;
706
- if (!a) return;
707
- const u = o.current;
708
- if (u)
709
- return hn(u, a);
710
- }, [s]);
711
- const c = ln({
712
- ref: o,
713
- store: i,
714
- role: "presentation",
715
- "data-backdrop": (s == null ? void 0 : s.id) || "",
716
- alwaysVisible: r,
717
- hidden: n ?? void 0,
718
- style: {
719
- position: "fixed",
720
- top: 0,
721
- right: 0,
722
- bottom: 0,
723
- left: 0
724
- }
725
- });
726
- if (!e) return null;
727
- if (Gn(e))
728
- return /* @__PURE__ */ $(Pe, V(R({}, c), { render: e }));
729
- const l = typeof e != "boolean" ? e : "div";
730
- return /* @__PURE__ */ $(Pe, V(R({}, c), { render: /* @__PURE__ */ $(l, {}) }));
731
- }
732
- var Xr = "div", Ke = Xn();
733
- function Ur(t) {
734
- const e = cn();
735
- return !e || t && Q(t, e) ? !1 : !!Ht(e);
736
- }
737
- function Ge(t, e = !1) {
738
- if (!t) return null;
739
- const r = "current" in t ? t.current : t;
740
- return r ? e ? Ht(r) ? r : null : r : null;
741
- }
742
- var xn = lt(function(e) {
743
- var r = e, {
744
- store: n,
745
- open: o,
746
- onClose: i,
747
- focusable: s = !0,
748
- modal: c = !0,
749
- portal: l = !!c,
750
- backdrop: a = !!c,
751
- hideOnEscape: u = !0,
752
- hideOnInteractOutside: d = !0,
753
- getPersistentElements: f,
754
- preventBodyScroll: m = !!c,
755
- autoFocusOnShow: h = !0,
756
- autoFocusOnHide: w = !0,
757
- initialFocus: y,
758
- finalFocus: b,
759
- unmountOnHide: P,
760
- unstable_treeSnapshotKey: E
761
- } = r, p = Ot(r, [
762
- "store",
763
- "open",
764
- "onClose",
765
- "focusable",
766
- "modal",
767
- "portal",
768
- "backdrop",
769
- "hideOnEscape",
770
- "hideOnInteractOutside",
771
- "getPersistentElements",
772
- "preventBodyScroll",
773
- "autoFocusOnShow",
774
- "autoFocusOnHide",
775
- "initialFocus",
776
- "finalFocus",
777
- "unmountOnHide",
778
- "unstable_treeSnapshotKey"
779
- ]);
780
- const g = se(), A = J(null), x = pr({
781
- store: n || g,
782
- open: o,
783
- setOpen(v) {
784
- if (v) return;
785
- const S = A.current;
786
- if (!S) return;
787
- const B = new Event("close", { bubbles: !1, cancelable: !0 });
788
- i && S.addEventListener("close", i, { once: !0 }), S.dispatchEvent(B), B.defaultPrevented && x.setOpen(!0);
789
- }
790
- }), { portalRef: _, domReady: T } = sn(l, p.portalRef), D = p.preserveTabOrder, k = gt(
791
- x,
792
- (v) => D && !c && v.mounted
793
- ), F = jn(p.id), C = gt(x, "open"), L = gt(x, "mounted"), M = gt(x, "contentElement"), U = lr(L, p.hidden, p.alwaysVisible);
794
- Br(M, F, m && !U), _r(x, d, T);
795
- const { wrapElement: H, nestedDialogs: z } = Vr(x);
796
- p = ft(p, H, [H]), K(() => {
797
- if (!C) return;
798
- const v = A.current, S = cn(v, !0);
799
- S && S.tagName !== "BODY" && (v && Q(v, S) || x.setDisclosureElement(S));
800
- }, [x, C]), Ke && q(() => {
801
- if (!L) return;
802
- const { disclosureElement: v } = x.getState();
803
- if (!v || !qn(v)) return;
804
- const S = () => {
805
- let B = !1;
806
- const O = () => {
807
- B = !0;
808
- }, j = { capture: !0, once: !0 };
809
- v.addEventListener("focusin", O, j), Yn(v, "mouseup", () => {
810
- v.removeEventListener("focusin", O, !0), !B && or(v);
811
- });
812
- };
813
- return v.addEventListener("mousedown", S), () => {
814
- v.removeEventListener("mousedown", S);
815
- };
816
- }, [x, L]), q(() => {
817
- if (!L || !T) return;
818
- const v = A.current;
819
- if (!v) return;
820
- const S = on(v), B = S.visualViewport || S, O = () => {
821
- var j, it;
822
- const Vt = (it = (j = S.visualViewport) == null ? void 0 : j.height) != null ? it : S.innerHeight;
823
- v.style.setProperty("--dialog-viewport-height", `${Vt}px`);
824
- };
825
- return O(), B.addEventListener("resize", O), () => {
826
- B.removeEventListener("resize", O);
827
- };
828
- }, [L, T]), q(() => {
829
- if (!c || !L || !T) return;
830
- const v = A.current;
831
- if (!(!v || v.querySelector("[data-dialog-dismiss]")))
832
- return Sr(v, x.hide);
833
- }, [x, c, L, T]), K(() => {
834
- if (!vn() || C || !L || !T) return;
835
- const v = A.current;
836
- if (v)
837
- return wn(v);
838
- }, [C, L, T]);
839
- const N = C && T;
840
- K(() => {
841
- if (!F || !N) return;
842
- const v = A.current;
843
- return Fr(F, [v]);
844
- }, [F, N, E]);
845
- const I = Bt(f);
846
- K(() => {
847
- if (!F || !N) return;
848
- const { disclosureElement: v } = x.getState(), S = A.current, B = I() || [], O = [
849
- S,
850
- ...B,
851
- ...z.map((j) => j.getState().contentElement)
852
- ];
853
- return c ? vt(
854
- Xe(F, O),
855
- zr(F, O)
856
- ) : Xe(F, [v, ...O]);
857
- }, [
858
- F,
859
- x,
860
- N,
861
- I,
862
- z,
863
- c,
864
- E
865
- ]);
866
- const yt = !!h, _t = me(h), [jt, Z] = ht(!1);
867
- q(() => {
868
- if (!C || !yt || !T || !(M != null && M.isConnected)) return;
869
- const v = Ge(y, !0) || // If no initial focus is specified, we try to focus the first element
870
- // with the autofocus attribute. If it's an Ariakit component, the
871
- // Focusable component will consume the autoFocus prop and add the
872
- // data-autofocus attribute to the element instead.
873
- M.querySelector(
874
- "[data-autofocus=true],[autofocus]"
875
- ) || // We have to fallback to the first focusable element otherwise portaled
876
- // dialogs with preserveTabOrder set to true will not receive focus
877
- // properly because the elements aren't tabbable until the dialog receives
878
- // focus.
879
- nr(M, !0, l && k) || // Finally, we fallback to the dialog element itself.
880
- M, S = Ht(v);
881
- _t(S ? v : null) && (Z(!0), queueMicrotask(() => {
882
- v.focus(), Ke && S && v.scrollIntoView({ block: "nearest", inline: "nearest" });
883
- }));
884
- }, [
885
- C,
886
- yt,
887
- T,
888
- M,
889
- y,
890
- l,
891
- k,
892
- _t
893
- ]);
894
- const rt = !!w, fe = me(w), [Dt, ut] = ht(!1);
895
- q(() => {
896
- if (C)
897
- return ut(!0), () => ut(!1);
898
- }, [C]);
899
- const Et = ee(
900
- (v, S = !0) => {
901
- const { disclosureElement: B } = x.getState();
902
- if (Ur(v)) return;
903
- let O = Ge(b) || B;
904
- if (O != null && O.id) {
905
- const it = W(O), Vt = `[aria-activedescendant="${O.id}"]`, Ut = it.querySelector(Vt);
906
- Ut && (O = Ut);
907
- }
908
- if (O && !Ht(O)) {
909
- const it = O.closest("[data-dialog]");
910
- if (it != null && it.id) {
911
- const Vt = W(it), Ut = `[aria-controls~="${it.id}"]`, Ie = Vt.querySelector(Ut);
912
- Ie && (O = Ie);
913
- }
914
- }
915
- const j = O && Ht(O);
916
- if (!j && S) {
917
- requestAnimationFrame(() => Et(v, !1));
918
- return;
919
- }
920
- fe(j ? O : null) && j && (O == null || O.focus({ preventScroll: !0 }));
921
- },
922
- [x, b, fe]
923
- ), ot = J(!1);
924
- K(() => {
925
- if (C || !Dt || !rt) return;
926
- const v = A.current;
927
- ot.current = !0, Et(v);
928
- }, [C, Dt, T, rt, Et]), q(() => {
929
- if (!Dt || !rt) return;
930
- const v = A.current;
931
- return () => {
932
- if (ot.current) {
933
- ot.current = !1;
934
- return;
935
- }
936
- Et(v);
937
- };
938
- }, [Dt, rt, Et]);
939
- const qt = me(u);
940
- q(() => !T || !L ? void 0 : Re("keydown", (S) => {
941
- if (S.key !== "Escape" || S.defaultPrevented) return;
942
- const B = A.current;
943
- if (!B || Me(B)) return;
944
- const O = S.target;
945
- if (!O) return;
946
- const { disclosureElement: j } = x.getState();
947
- !!(O.tagName === "BODY" || Q(B, O) || !j || Q(j, O)) && qt(S) && x.hide();
948
- }, !0), [x, T, L, qt]), p = ft(
949
- p,
950
- (v) => /* @__PURE__ */ $(Pr, { level: c ? 1 : void 0, children: v }),
951
- [c]
952
- );
953
- const Yt = p.hidden, Pt = p.alwaysVisible;
954
- p = ft(
955
- p,
956
- (v) => a ? /* @__PURE__ */ Qt(te, { children: [
957
- /* @__PURE__ */ $(
958
- Yr,
959
- {
960
- store: x,
961
- backdrop: a,
962
- hidden: Yt,
963
- alwaysVisible: Pt
964
- }
965
- ),
966
- v
967
- ] }) : v,
968
- [x, a, Yt, Pt]
969
- );
970
- const [Rt, Xt] = ht(), [Tt, Ct] = ht();
971
- return p = ft(
972
- p,
973
- (v) => /* @__PURE__ */ $(ar, { value: x, children: /* @__PURE__ */ $(ur.Provider, { value: Xt, children: /* @__PURE__ */ $(fr.Provider, { value: Ct, children: v }) }) }),
974
- [x]
975
- ), p = V(R({
976
- id: F,
977
- "data-dialog": "",
978
- role: "dialog",
979
- tabIndex: s ? -1 : void 0,
980
- "aria-labelledby": Rt,
981
- "aria-describedby": Tt
982
- }, p), {
983
- ref: De(A, p.ref)
984
- }), p = mn(V(R({}, p), {
985
- autoFocusOnShow: jt
986
- })), p = ln(R({ store: x }, p)), p = rr(V(R({}, p), { focusable: s })), p = pn(V(R({ portal: l }, p), { portalRef: _, preserveTabOrder: k })), p;
987
- });
988
- function bn(t, e = se) {
989
- return G(function(n) {
990
- const o = e(), i = n.store || o;
991
- return gt(
992
- i,
993
- (c) => !n.unmountOnHide || (c == null ? void 0 : c.mounted) || !!n.open
994
- ) ? /* @__PURE__ */ $(t, R({}, n)) : null;
995
- });
996
- }
997
- bn(
998
- G(function(e) {
999
- const r = xn(e);
1000
- return nt(Xr, r);
1001
- }),
1002
- se
1003
- );
1004
- const wt = Math.min, Y = Math.max, ne = Math.round, Jt = Math.floor, st = (t) => ({
1005
- x: t,
1006
- y: t
1007
- }), Kr = {
1008
- left: "right",
1009
- right: "left",
1010
- bottom: "top",
1011
- top: "bottom"
1012
- }, Gr = {
1013
- start: "end",
1014
- end: "start"
1015
- };
1016
- function Ae(t, e, r) {
1017
- return Y(t, wt(e, r));
1018
- }
1019
- function xt(t, e) {
1020
- return typeof t == "function" ? t(e) : t;
1021
- }
1022
- function pt(t) {
1023
- return t.split("-")[0];
1024
- }
1025
- function $t(t) {
1026
- return t.split("-")[1];
1027
- }
1028
- function $e(t) {
1029
- return t === "x" ? "y" : "x";
1030
- }
1031
- function Ne(t) {
1032
- return t === "y" ? "height" : "width";
1033
- }
1034
- function dt(t) {
1035
- return ["top", "bottom"].includes(pt(t)) ? "y" : "x";
1036
- }
1037
- function _e(t) {
1038
- return $e(dt(t));
1039
- }
1040
- function Zr(t, e, r) {
1041
- r === void 0 && (r = !1);
1042
- const n = $t(t), o = _e(t), i = Ne(o);
1043
- let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1044
- return e.reference[i] > e.floating[i] && (s = re(s)), [s, re(s)];
1045
- }
1046
- function Jr(t) {
1047
- const e = re(t);
1048
- return [Se(t), e, Se(e)];
1049
- }
1050
- function Se(t) {
1051
- return t.replace(/start|end/g, (e) => Gr[e]);
1052
- }
1053
- function Qr(t, e, r) {
1054
- const n = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
1055
- switch (t) {
1056
- case "top":
1057
- case "bottom":
1058
- return r ? e ? o : n : e ? n : o;
1059
- case "left":
1060
- case "right":
1061
- return e ? i : s;
1062
- default:
1063
- return [];
1064
- }
1065
- }
1066
- function to(t, e, r, n) {
1067
- const o = $t(t);
1068
- let i = Qr(pt(t), r === "start", n);
1069
- return o && (i = i.map((s) => s + "-" + o), e && (i = i.concat(i.map(Se)))), i;
1070
- }
1071
- function re(t) {
1072
- return t.replace(/left|right|bottom|top/g, (e) => Kr[e]);
1073
- }
1074
- function eo(t) {
1075
- return {
1076
- top: 0,
1077
- right: 0,
1078
- bottom: 0,
1079
- left: 0,
1080
- ...t
1081
- };
1082
- }
1083
- function yn(t) {
1084
- return typeof t != "number" ? eo(t) : {
1085
- top: t,
1086
- right: t,
1087
- bottom: t,
1088
- left: t
1089
- };
1090
- }
1091
- function oe(t) {
1092
- const {
1093
- x: e,
1094
- y: r,
1095
- width: n,
1096
- height: o
1097
- } = t;
1098
- return {
1099
- width: n,
1100
- height: o,
1101
- top: r,
1102
- left: e,
1103
- right: e + n,
1104
- bottom: r + o,
1105
- x: e,
1106
- y: r
1107
- };
1108
- }
1109
- function Ze(t, e, r) {
1110
- let {
1111
- reference: n,
1112
- floating: o
1113
- } = t;
1114
- const i = dt(e), s = _e(e), c = Ne(s), l = pt(e), a = i === "y", u = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, f = n[c] / 2 - o[c] / 2;
1115
- let m;
1116
- switch (l) {
1117
- case "top":
1118
- m = {
1119
- x: u,
1120
- y: n.y - o.height
1121
- };
1122
- break;
1123
- case "bottom":
1124
- m = {
1125
- x: u,
1126
- y: n.y + n.height
1127
- };
1128
- break;
1129
- case "right":
1130
- m = {
1131
- x: n.x + n.width,
1132
- y: d
1133
- };
1134
- break;
1135
- case "left":
1136
- m = {
1137
- x: n.x - o.width,
1138
- y: d
1139
- };
1140
- break;
1141
- default:
1142
- m = {
1143
- x: n.x,
1144
- y: n.y
1145
- };
1146
- }
1147
- switch ($t(e)) {
1148
- case "start":
1149
- m[s] -= f * (r && a ? -1 : 1);
1150
- break;
1151
- case "end":
1152
- m[s] += f * (r && a ? -1 : 1);
1153
- break;
1154
- }
1155
- return m;
1156
- }
1157
- const no = async (t, e, r) => {
1158
- const {
1159
- placement: n = "bottom",
1160
- strategy: o = "absolute",
1161
- middleware: i = [],
1162
- platform: s
1163
- } = r, c = i.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
1164
- let a = await s.getElementRects({
1165
- reference: t,
1166
- floating: e,
1167
- strategy: o
1168
- }), {
1169
- x: u,
1170
- y: d
1171
- } = Ze(a, n, l), f = n, m = {}, h = 0;
1172
- for (let w = 0; w < c.length; w++) {
1173
- const {
1174
- name: y,
1175
- fn: b
1176
- } = c[w], {
1177
- x: P,
1178
- y: E,
1179
- data: p,
1180
- reset: g
1181
- } = await b({
1182
- x: u,
1183
- y: d,
1184
- initialPlacement: n,
1185
- placement: f,
1186
- strategy: o,
1187
- middlewareData: m,
1188
- rects: a,
1189
- platform: s,
1190
- elements: {
1191
- reference: t,
1192
- floating: e
1193
- }
1194
- });
1195
- u = P ?? u, d = E ?? d, m = {
1196
- ...m,
1197
- [y]: {
1198
- ...m[y],
1199
- ...p
1200
- }
1201
- }, g && h <= 50 && (h++, typeof g == "object" && (g.placement && (f = g.placement), g.rects && (a = g.rects === !0 ? await s.getElementRects({
1202
- reference: t,
1203
- floating: e,
1204
- strategy: o
1205
- }) : g.rects), {
1206
- x: u,
1207
- y: d
1208
- } = Ze(a, f, l)), w = -1);
1209
- }
1210
- return {
1211
- x: u,
1212
- y: d,
1213
- placement: f,
1214
- strategy: o,
1215
- middlewareData: m
1216
- };
1217
- };
1218
- async function Ve(t, e) {
1219
- var r;
1220
- e === void 0 && (e = {});
1221
- const {
1222
- x: n,
1223
- y: o,
1224
- platform: i,
1225
- rects: s,
1226
- elements: c,
1227
- strategy: l
1228
- } = t, {
1229
- boundary: a = "clippingAncestors",
1230
- rootBoundary: u = "viewport",
1231
- elementContext: d = "floating",
1232
- altBoundary: f = !1,
1233
- padding: m = 0
1234
- } = xt(e, t), h = yn(m), y = c[f ? d === "floating" ? "reference" : "floating" : d], b = oe(await i.getClippingRect({
1235
- element: (r = await (i.isElement == null ? void 0 : i.isElement(y))) == null || r ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
1236
- boundary: a,
1237
- rootBoundary: u,
1238
- strategy: l
1239
- })), P = d === "floating" ? {
1240
- x: n,
1241
- y: o,
1242
- width: s.floating.width,
1243
- height: s.floating.height
1244
- } : s.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), p = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
1245
- x: 1,
1246
- y: 1
1247
- } : {
1248
- x: 1,
1249
- y: 1
1250
- }, g = oe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1251
- elements: c,
1252
- rect: P,
1253
- offsetParent: E,
1254
- strategy: l
1255
- }) : P);
1256
- return {
1257
- top: (b.top - g.top + h.top) / p.y,
1258
- bottom: (g.bottom - b.bottom + h.bottom) / p.y,
1259
- left: (b.left - g.left + h.left) / p.x,
1260
- right: (g.right - b.right + h.right) / p.x
1261
- };
1262
- }
1263
- const ro = (t) => ({
1264
- name: "arrow",
1265
- options: t,
1266
- async fn(e) {
1267
- const {
1268
- x: r,
1269
- y: n,
1270
- placement: o,
1271
- rects: i,
1272
- platform: s,
1273
- elements: c,
1274
- middlewareData: l
1275
- } = e, {
1276
- element: a,
1277
- padding: u = 0
1278
- } = xt(t, e) || {};
1279
- if (a == null)
1280
- return {};
1281
- const d = yn(u), f = {
1282
- x: r,
1283
- y: n
1284
- }, m = _e(o), h = Ne(m), w = await s.getDimensions(a), y = m === "y", b = y ? "top" : "left", P = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", p = i.reference[h] + i.reference[m] - f[m] - i.floating[h], g = f[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
1285
- let x = A ? A[E] : 0;
1286
- (!x || !await (s.isElement == null ? void 0 : s.isElement(A))) && (x = c.floating[E] || i.floating[h]);
1287
- const _ = p / 2 - g / 2, T = x / 2 - w[h] / 2 - 1, D = wt(d[b], T), k = wt(d[P], T), F = D, C = x - w[h] - k, L = x / 2 - w[h] / 2 + _, M = Ae(F, L, C), U = !l.arrow && $t(o) != null && L !== M && i.reference[h] / 2 - (L < F ? D : k) - w[h] / 2 < 0, H = U ? L < F ? L - F : L - C : 0;
1288
- return {
1289
- [m]: f[m] + H,
1290
- data: {
1291
- [m]: M,
1292
- centerOffset: L - M - H,
1293
- ...U && {
1294
- alignmentOffset: H
1295
- }
1296
- },
1297
- reset: U
1298
- };
1299
- }
1300
- }), oo = function(t) {
1301
- return t === void 0 && (t = {}), {
1302
- name: "flip",
1303
- options: t,
1304
- async fn(e) {
1305
- var r, n;
1306
- const {
1307
- placement: o,
1308
- middlewareData: i,
1309
- rects: s,
1310
- initialPlacement: c,
1311
- platform: l,
1312
- elements: a
1313
- } = e, {
1314
- mainAxis: u = !0,
1315
- crossAxis: d = !0,
1316
- fallbackPlacements: f,
1317
- fallbackStrategy: m = "bestFit",
1318
- fallbackAxisSideDirection: h = "none",
1319
- flipAlignment: w = !0,
1320
- ...y
1321
- } = xt(t, e);
1322
- if ((r = i.arrow) != null && r.alignmentOffset)
1323
- return {};
1324
- const b = pt(o), P = dt(c), E = pt(c) === c, p = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), g = f || (E || !w ? [re(c)] : Jr(c)), A = h !== "none";
1325
- !f && A && g.push(...to(c, w, h, p));
1326
- const x = [c, ...g], _ = await Ve(e, y), T = [];
1327
- let D = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1328
- if (u && T.push(_[b]), d) {
1329
- const M = Zr(o, s, p);
1330
- T.push(_[M[0]], _[M[1]]);
1331
- }
1332
- if (D = [...D, {
1333
- placement: o,
1334
- overflows: T
1335
- }], !T.every((M) => M <= 0)) {
1336
- var k, F;
1337
- const M = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, U = x[M];
1338
- if (U) {
1339
- var C;
1340
- const z = d === "alignment" ? P !== dt(U) : !1, N = ((C = D[0]) == null ? void 0 : C.overflows[0]) > 0;
1341
- if (!z || N)
1342
- return {
1343
- data: {
1344
- index: M,
1345
- overflows: D
1346
- },
1347
- reset: {
1348
- placement: U
1349
- }
1350
- };
1351
- }
1352
- let H = (F = D.filter((z) => z.overflows[0] <= 0).sort((z, N) => z.overflows[1] - N.overflows[1])[0]) == null ? void 0 : F.placement;
1353
- if (!H)
1354
- switch (m) {
1355
- case "bestFit": {
1356
- var L;
1357
- const z = (L = D.filter((N) => {
1358
- if (A) {
1359
- const I = dt(N.placement);
1360
- return I === P || // Create a bias to the `y` side axis due to horizontal
1361
- // reading directions favoring greater width.
1362
- I === "y";
1363
- }
1364
- return !0;
1365
- }).map((N) => [N.placement, N.overflows.filter((I) => I > 0).reduce((I, yt) => I + yt, 0)]).sort((N, I) => N[1] - I[1])[0]) == null ? void 0 : L[0];
1366
- z && (H = z);
1367
- break;
1368
- }
1369
- case "initialPlacement":
1370
- H = c;
1371
- break;
1372
- }
1373
- if (o !== H)
1374
- return {
1375
- reset: {
1376
- placement: H
1377
- }
1378
- };
1379
- }
1380
- return {};
1381
- }
1382
- };
1383
- };
1384
- async function io(t, e) {
1385
- const {
1386
- placement: r,
1387
- platform: n,
1388
- elements: o
1389
- } = t, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = pt(r), c = $t(r), l = dt(r) === "y", a = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d = xt(e, t);
1390
- let {
1391
- mainAxis: f,
1392
- crossAxis: m,
1393
- alignmentAxis: h
1394
- } = typeof d == "number" ? {
1395
- mainAxis: d,
1396
- crossAxis: 0,
1397
- alignmentAxis: null
1398
- } : {
1399
- mainAxis: d.mainAxis || 0,
1400
- crossAxis: d.crossAxis || 0,
1401
- alignmentAxis: d.alignmentAxis
1402
- };
1403
- return c && typeof h == "number" && (m = c === "end" ? h * -1 : h), l ? {
1404
- x: m * u,
1405
- y: f * a
1406
- } : {
1407
- x: f * a,
1408
- y: m * u
1409
- };
1410
- }
1411
- const so = function(t) {
1412
- return t === void 0 && (t = 0), {
1413
- name: "offset",
1414
- options: t,
1415
- async fn(e) {
1416
- var r, n;
1417
- const {
1418
- x: o,
1419
- y: i,
1420
- placement: s,
1421
- middlewareData: c
1422
- } = e, l = await io(e, t);
1423
- return s === ((r = c.offset) == null ? void 0 : r.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
1424
- x: o + l.x,
1425
- y: i + l.y,
1426
- data: {
1427
- ...l,
1428
- placement: s
1429
- }
1430
- };
1431
- }
1432
- };
1433
- }, co = function(t) {
1434
- return t === void 0 && (t = {}), {
1435
- name: "shift",
1436
- options: t,
1437
- async fn(e) {
1438
- const {
1439
- x: r,
1440
- y: n,
1441
- placement: o
1442
- } = e, {
1443
- mainAxis: i = !0,
1444
- crossAxis: s = !1,
1445
- limiter: c = {
1446
- fn: (y) => {
1447
- let {
1448
- x: b,
1449
- y: P
1450
- } = y;
1451
- return {
1452
- x: b,
1453
- y: P
1454
- };
1455
- }
1456
- },
1457
- ...l
1458
- } = xt(t, e), a = {
1459
- x: r,
1460
- y: n
1461
- }, u = await Ve(e, l), d = dt(pt(o)), f = $e(d);
1462
- let m = a[f], h = a[d];
1463
- if (i) {
1464
- const y = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", P = m + u[y], E = m - u[b];
1465
- m = Ae(P, m, E);
1466
- }
1467
- if (s) {
1468
- const y = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", P = h + u[y], E = h - u[b];
1469
- h = Ae(P, h, E);
1470
- }
1471
- const w = c.fn({
1472
- ...e,
1473
- [f]: m,
1474
- [d]: h
1475
- });
1476
- return {
1477
- ...w,
1478
- data: {
1479
- x: w.x - r,
1480
- y: w.y - n,
1481
- enabled: {
1482
- [f]: i,
1483
- [d]: s
1484
- }
1485
- }
1486
- };
1487
- }
1488
- };
1489
- }, lo = function(t) {
1490
- return t === void 0 && (t = {}), {
1491
- options: t,
1492
- fn(e) {
1493
- const {
1494
- x: r,
1495
- y: n,
1496
- placement: o,
1497
- rects: i,
1498
- middlewareData: s
1499
- } = e, {
1500
- offset: c = 0,
1501
- mainAxis: l = !0,
1502
- crossAxis: a = !0
1503
- } = xt(t, e), u = {
1504
- x: r,
1505
- y: n
1506
- }, d = dt(o), f = $e(d);
1507
- let m = u[f], h = u[d];
1508
- const w = xt(c, e), y = typeof w == "number" ? {
1509
- mainAxis: w,
1510
- crossAxis: 0
1511
- } : {
1512
- mainAxis: 0,
1513
- crossAxis: 0,
1514
- ...w
1515
- };
1516
- if (l) {
1517
- const E = f === "y" ? "height" : "width", p = i.reference[f] - i.floating[E] + y.mainAxis, g = i.reference[f] + i.reference[E] - y.mainAxis;
1518
- m < p ? m = p : m > g && (m = g);
1519
- }
1520
- if (a) {
1521
- var b, P;
1522
- const E = f === "y" ? "width" : "height", p = ["top", "left"].includes(pt(o)), g = i.reference[d] - i.floating[E] + (p && ((b = s.offset) == null ? void 0 : b[d]) || 0) + (p ? 0 : y.crossAxis), A = i.reference[d] + i.reference[E] + (p ? 0 : ((P = s.offset) == null ? void 0 : P[d]) || 0) - (p ? y.crossAxis : 0);
1523
- h < g ? h = g : h > A && (h = A);
1524
- }
1525
- return {
1526
- [f]: m,
1527
- [d]: h
1528
- };
1529
- }
1530
- };
1531
- }, ao = function(t) {
1532
- return t === void 0 && (t = {}), {
1533
- name: "size",
1534
- options: t,
1535
- async fn(e) {
1536
- var r, n;
1537
- const {
1538
- placement: o,
1539
- rects: i,
1540
- platform: s,
1541
- elements: c
1542
- } = e, {
1543
- apply: l = () => {
1544
- },
1545
- ...a
1546
- } = xt(t, e), u = await Ve(e, a), d = pt(o), f = $t(o), m = dt(o) === "y", {
1547
- width: h,
1548
- height: w
1549
- } = i.floating;
1550
- let y, b;
1551
- d === "top" || d === "bottom" ? (y = d, b = f === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (b = d, y = f === "end" ? "top" : "bottom");
1552
- const P = w - u.top - u.bottom, E = h - u.left - u.right, p = wt(w - u[y], P), g = wt(h - u[b], E), A = !e.middlewareData.shift;
1553
- let x = p, _ = g;
1554
- if ((r = e.middlewareData.shift) != null && r.enabled.x && (_ = E), (n = e.middlewareData.shift) != null && n.enabled.y && (x = P), A && !f) {
1555
- const D = Y(u.left, 0), k = Y(u.right, 0), F = Y(u.top, 0), C = Y(u.bottom, 0);
1556
- m ? _ = h - 2 * (D !== 0 || k !== 0 ? D + k : Y(u.left, u.right)) : x = w - 2 * (F !== 0 || C !== 0 ? F + C : Y(u.top, u.bottom));
1557
- }
1558
- await l({
1559
- ...e,
1560
- availableWidth: _,
1561
- availableHeight: x
1562
- });
1563
- const T = await s.getDimensions(c.floating);
1564
- return h !== T.width || w !== T.height ? {
1565
- reset: {
1566
- rects: !0
1567
- }
1568
- } : {};
1569
- }
1570
- };
1571
- };
1572
- function le() {
1573
- return typeof window < "u";
1574
- }
1575
- function Nt(t) {
1576
- return En(t) ? (t.nodeName || "").toLowerCase() : "#document";
1577
- }
1578
- function X(t) {
1579
- var e;
1580
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1581
- }
1582
- function at(t) {
1583
- var e;
1584
- return (e = (En(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
1585
- }
1586
- function En(t) {
1587
- return le() ? t instanceof Node || t instanceof X(t).Node : !1;
1588
- }
1589
- function tt(t) {
1590
- return le() ? t instanceof Element || t instanceof X(t).Element : !1;
1591
- }
1592
- function ct(t) {
1593
- return le() ? t instanceof HTMLElement || t instanceof X(t).HTMLElement : !1;
1594
- }
1595
- function Je(t) {
1596
- return !le() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof X(t).ShadowRoot;
1597
- }
1598
- function zt(t) {
1599
- const {
1600
- overflow: e,
1601
- overflowX: r,
1602
- overflowY: n,
1603
- display: o
1604
- } = et(t);
1605
- return /auto|scroll|overlay|hidden|clip/.test(e + n + r) && !["inline", "contents"].includes(o);
1606
- }
1607
- function uo(t) {
1608
- return ["table", "td", "th"].includes(Nt(t));
1609
- }
1610
- function ae(t) {
1611
- return [":popover-open", ":modal"].some((e) => {
1612
- try {
1613
- return t.matches(e);
1614
- } catch {
1615
- return !1;
1616
- }
1617
- });
1618
- }
1619
- function ke(t) {
1620
- const e = He(), r = tt(t) ? et(t) : t;
1621
- return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !e && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !e && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
1622
- }
1623
- function fo(t) {
1624
- let e = bt(t);
1625
- for (; ct(e) && !Mt(e); ) {
1626
- if (ke(e))
1627
- return e;
1628
- if (ae(e))
1629
- return null;
1630
- e = bt(e);
1631
- }
1632
- return null;
1633
- }
1634
- function He() {
1635
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1636
- }
1637
- function Mt(t) {
1638
- return ["html", "body", "#document"].includes(Nt(t));
1639
- }
1640
- function et(t) {
1641
- return X(t).getComputedStyle(t);
1642
- }
1643
- function ue(t) {
1644
- return tt(t) ? {
1645
- scrollLeft: t.scrollLeft,
1646
- scrollTop: t.scrollTop
1647
- } : {
1648
- scrollLeft: t.scrollX,
1649
- scrollTop: t.scrollY
1650
- };
1651
- }
1652
- function bt(t) {
1653
- if (Nt(t) === "html")
1654
- return t;
1655
- const e = (
1656
- // Step into the shadow DOM of the parent of a slotted node.
1657
- t.assignedSlot || // DOM Element detected.
1658
- t.parentNode || // ShadowRoot detected.
1659
- Je(t) && t.host || // Fallback.
1660
- at(t)
1661
- );
1662
- return Je(e) ? e.host : e;
1663
- }
1664
- function Pn(t) {
1665
- const e = bt(t);
1666
- return Mt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : ct(e) && zt(e) ? e : Pn(e);
1667
- }
1668
- function Wt(t, e, r) {
1669
- var n;
1670
- e === void 0 && (e = []), r === void 0 && (r = !0);
1671
- const o = Pn(t), i = o === ((n = t.ownerDocument) == null ? void 0 : n.body), s = X(o);
1672
- if (i) {
1673
- const c = Oe(s);
1674
- return e.concat(s, s.visualViewport || [], zt(o) ? o : [], c && r ? Wt(c) : []);
1675
- }
1676
- return e.concat(o, Wt(o, [], r));
1677
- }
1678
- function Oe(t) {
1679
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
1680
- }
1681
- function An(t) {
1682
- const e = et(t);
1683
- let r = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
1684
- const o = ct(t), i = o ? t.offsetWidth : r, s = o ? t.offsetHeight : n, c = ne(r) !== i || ne(n) !== s;
1685
- return c && (r = i, n = s), {
1686
- width: r,
1687
- height: n,
1688
- $: c
1689
- };
1690
- }
1691
- function Be(t) {
1692
- return tt(t) ? t : t.contextElement;
1693
- }
1694
- function Ft(t) {
1695
- const e = Be(t);
1696
- if (!ct(e))
1697
- return st(1);
1698
- const r = e.getBoundingClientRect(), {
1699
- width: n,
1700
- height: o,
1701
- $: i
1702
- } = An(e);
1703
- let s = (i ? ne(r.width) : r.width) / n, c = (i ? ne(r.height) : r.height) / o;
1704
- return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1705
- x: s,
1706
- y: c
1707
- };
1708
- }
1709
- const po = /* @__PURE__ */ st(0);
1710
- function Sn(t) {
1711
- const e = X(t);
1712
- return !He() || !e.visualViewport ? po : {
1713
- x: e.visualViewport.offsetLeft,
1714
- y: e.visualViewport.offsetTop
1715
- };
1716
- }
1717
- function mo(t, e, r) {
1718
- return e === void 0 && (e = !1), !r || e && r !== X(t) ? !1 : e;
1719
- }
1720
- function St(t, e, r, n) {
1721
- e === void 0 && (e = !1), r === void 0 && (r = !1);
1722
- const o = t.getBoundingClientRect(), i = Be(t);
1723
- let s = st(1);
1724
- e && (n ? tt(n) && (s = Ft(n)) : s = Ft(t));
1725
- const c = mo(i, r, n) ? Sn(i) : st(0);
1726
- let l = (o.left + c.x) / s.x, a = (o.top + c.y) / s.y, u = o.width / s.x, d = o.height / s.y;
1727
- if (i) {
1728
- const f = X(i), m = n && tt(n) ? X(n) : n;
1729
- let h = f, w = Oe(h);
1730
- for (; w && n && m !== h; ) {
1731
- const y = Ft(w), b = w.getBoundingClientRect(), P = et(w), E = b.left + (w.clientLeft + parseFloat(P.paddingLeft)) * y.x, p = b.top + (w.clientTop + parseFloat(P.paddingTop)) * y.y;
1732
- l *= y.x, a *= y.y, u *= y.x, d *= y.y, l += E, a += p, h = X(w), w = Oe(h);
1733
- }
1734
- }
1735
- return oe({
1736
- width: u,
1737
- height: d,
1738
- x: l,
1739
- y: a
1740
- });
1741
- }
1742
- function We(t, e) {
1743
- const r = ue(t).scrollLeft;
1744
- return e ? e.left + r : St(at(t)).left + r;
1745
- }
1746
- function On(t, e, r) {
1747
- r === void 0 && (r = !1);
1748
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (r ? 0 : (
1749
- // RTL <body> scrollbar.
1750
- We(t, n)
1751
- )), i = n.top + e.scrollTop;
1752
- return {
1753
- x: o,
1754
- y: i
1755
- };
1756
- }
1757
- function go(t) {
1758
- let {
1759
- elements: e,
1760
- rect: r,
1761
- offsetParent: n,
1762
- strategy: o
1763
- } = t;
1764
- const i = o === "fixed", s = at(n), c = e ? ae(e.floating) : !1;
1765
- if (n === s || c && i)
1766
- return r;
1767
- let l = {
1768
- scrollLeft: 0,
1769
- scrollTop: 0
1770
- }, a = st(1);
1771
- const u = st(0), d = ct(n);
1772
- if ((d || !d && !i) && ((Nt(n) !== "body" || zt(s)) && (l = ue(n)), ct(n))) {
1773
- const m = St(n);
1774
- a = Ft(n), u.x = m.x + n.clientLeft, u.y = m.y + n.clientTop;
1775
- }
1776
- const f = s && !d && !i ? On(s, l, !0) : st(0);
1777
- return {
1778
- width: r.width * a.x,
1779
- height: r.height * a.y,
1780
- x: r.x * a.x - l.scrollLeft * a.x + u.x + f.x,
1781
- y: r.y * a.y - l.scrollTop * a.y + u.y + f.y
1782
- };
1783
- }
1784
- function ho(t) {
1785
- return Array.from(t.getClientRects());
1786
- }
1787
- function vo(t) {
1788
- const e = at(t), r = ue(t), n = t.ownerDocument.body, o = Y(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Y(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
1789
- let s = -r.scrollLeft + We(t);
1790
- const c = -r.scrollTop;
1791
- return et(n).direction === "rtl" && (s += Y(e.clientWidth, n.clientWidth) - o), {
1792
- width: o,
1793
- height: i,
1794
- x: s,
1795
- y: c
1796
- };
1797
- }
1798
- function wo(t, e) {
1799
- const r = X(t), n = at(t), o = r.visualViewport;
1800
- let i = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
1801
- if (o) {
1802
- i = o.width, s = o.height;
1803
- const a = He();
1804
- (!a || a && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
1805
- }
1806
- return {
1807
- width: i,
1808
- height: s,
1809
- x: c,
1810
- y: l
1811
- };
1812
- }
1813
- function xo(t, e) {
1814
- const r = St(t, !0, e === "fixed"), n = r.top + t.clientTop, o = r.left + t.clientLeft, i = ct(t) ? Ft(t) : st(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, l = o * i.x, a = n * i.y;
1815
- return {
1816
- width: s,
1817
- height: c,
1818
- x: l,
1819
- y: a
1820
- };
1821
- }
1822
- function Qe(t, e, r) {
1823
- let n;
1824
- if (e === "viewport")
1825
- n = wo(t, r);
1826
- else if (e === "document")
1827
- n = vo(at(t));
1828
- else if (tt(e))
1829
- n = xo(e, r);
1830
- else {
1831
- const o = Sn(t);
1832
- n = {
1833
- x: e.x - o.x,
1834
- y: e.y - o.y,
1835
- width: e.width,
1836
- height: e.height
1837
- };
1838
- }
1839
- return oe(n);
1840
- }
1841
- function Dn(t, e) {
1842
- const r = bt(t);
1843
- return r === e || !tt(r) || Mt(r) ? !1 : et(r).position === "fixed" || Dn(r, e);
1844
- }
1845
- function bo(t, e) {
1846
- const r = e.get(t);
1847
- if (r)
1848
- return r;
1849
- let n = Wt(t, [], !1).filter((c) => tt(c) && Nt(c) !== "body"), o = null;
1850
- const i = et(t).position === "fixed";
1851
- let s = i ? bt(t) : t;
1852
- for (; tt(s) && !Mt(s); ) {
1853
- const c = et(s), l = ke(s);
1854
- !l && c.position === "fixed" && (o = null), (i ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || zt(s) && !l && Dn(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = bt(s);
1855
- }
1856
- return e.set(t, n), n;
1857
- }
1858
- function yo(t) {
1859
- let {
1860
- element: e,
1861
- boundary: r,
1862
- rootBoundary: n,
1863
- strategy: o
1864
- } = t;
1865
- const s = [...r === "clippingAncestors" ? ae(e) ? [] : bo(e, this._c) : [].concat(r), n], c = s[0], l = s.reduce((a, u) => {
1866
- const d = Qe(e, u, o);
1867
- return a.top = Y(d.top, a.top), a.right = wt(d.right, a.right), a.bottom = wt(d.bottom, a.bottom), a.left = Y(d.left, a.left), a;
1868
- }, Qe(e, c, o));
1869
- return {
1870
- width: l.right - l.left,
1871
- height: l.bottom - l.top,
1872
- x: l.left,
1873
- y: l.top
1874
- };
1875
- }
1876
- function Eo(t) {
1877
- const {
1878
- width: e,
1879
- height: r
1880
- } = An(t);
1881
- return {
1882
- width: e,
1883
- height: r
1884
- };
1885
- }
1886
- function Po(t, e, r) {
1887
- const n = ct(e), o = at(e), i = r === "fixed", s = St(t, !0, i, e);
1888
- let c = {
1889
- scrollLeft: 0,
1890
- scrollTop: 0
1891
- };
1892
- const l = st(0);
1893
- function a() {
1894
- l.x = We(o);
1895
- }
1896
- if (n || !n && !i)
1897
- if ((Nt(e) !== "body" || zt(o)) && (c = ue(e)), n) {
1898
- const m = St(e, !0, i, e);
1899
- l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
1900
- } else o && a();
1901
- i && !n && o && a();
1902
- const u = o && !n && !i ? On(o, c) : st(0), d = s.left + c.scrollLeft - l.x - u.x, f = s.top + c.scrollTop - l.y - u.y;
1903
- return {
1904
- x: d,
1905
- y: f,
1906
- width: s.width,
1907
- height: s.height
1908
- };
1909
- }
1910
- function xe(t) {
1911
- return et(t).position === "static";
1912
- }
1913
- function tn(t, e) {
1914
- if (!ct(t) || et(t).position === "fixed")
1915
- return null;
1916
- if (e)
1917
- return e(t);
1918
- let r = t.offsetParent;
1919
- return at(t) === r && (r = r.ownerDocument.body), r;
1920
- }
1921
- function Rn(t, e) {
1922
- const r = X(t);
1923
- if (ae(t))
1924
- return r;
1925
- if (!ct(t)) {
1926
- let o = bt(t);
1927
- for (; o && !Mt(o); ) {
1928
- if (tt(o) && !xe(o))
1929
- return o;
1930
- o = bt(o);
1931
- }
1932
- return r;
1933
- }
1934
- let n = tn(t, e);
1935
- for (; n && uo(n) && xe(n); )
1936
- n = tn(n, e);
1937
- return n && Mt(n) && xe(n) && !ke(n) ? r : n || fo(t) || r;
1938
- }
1939
- const Ao = async function(t) {
1940
- const e = this.getOffsetParent || Rn, r = this.getDimensions, n = await r(t.floating);
1941
- return {
1942
- reference: Po(t.reference, await e(t.floating), t.strategy),
1943
- floating: {
1944
- x: 0,
1945
- y: 0,
1946
- width: n.width,
1947
- height: n.height
1948
- }
1949
- };
1950
- };
1951
- function So(t) {
1952
- return et(t).direction === "rtl";
1953
- }
1954
- const Oo = {
1955
- convertOffsetParentRelativeRectToViewportRelativeRect: go,
1956
- getDocumentElement: at,
1957
- getClippingRect: yo,
1958
- getOffsetParent: Rn,
1959
- getElementRects: Ao,
1960
- getClientRects: ho,
1961
- getDimensions: Eo,
1962
- getScale: Ft,
1963
- isElement: tt,
1964
- isRTL: So
1965
- };
1966
- function Tn(t, e) {
1967
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1968
- }
1969
- function Do(t, e) {
1970
- let r = null, n;
1971
- const o = at(t);
1972
- function i() {
1973
- var c;
1974
- clearTimeout(n), (c = r) == null || c.disconnect(), r = null;
1975
- }
1976
- function s(c, l) {
1977
- c === void 0 && (c = !1), l === void 0 && (l = 1), i();
1978
- const a = t.getBoundingClientRect(), {
1979
- left: u,
1980
- top: d,
1981
- width: f,
1982
- height: m
1983
- } = a;
1984
- if (c || e(), !f || !m)
1985
- return;
1986
- const h = Jt(d), w = Jt(o.clientWidth - (u + f)), y = Jt(o.clientHeight - (d + m)), b = Jt(u), E = {
1987
- rootMargin: -h + "px " + -w + "px " + -y + "px " + -b + "px",
1988
- threshold: Y(0, wt(1, l)) || 1
1989
- };
1990
- let p = !0;
1991
- function g(A) {
1992
- const x = A[0].intersectionRatio;
1993
- if (x !== l) {
1994
- if (!p)
1995
- return s();
1996
- x ? s(!1, x) : n = setTimeout(() => {
1997
- s(!1, 1e-7);
1998
- }, 1e3);
1999
- }
2000
- x === 1 && !Tn(a, t.getBoundingClientRect()) && s(), p = !1;
2001
- }
2002
- try {
2003
- r = new IntersectionObserver(g, {
2004
- ...E,
2005
- // Handle <iframe>s
2006
- root: o.ownerDocument
2007
- });
2008
- } catch {
2009
- r = new IntersectionObserver(g, E);
2010
- }
2011
- r.observe(t);
2012
- }
2013
- return s(!0), i;
2014
- }
2015
- function Ro(t, e, r, n) {
2016
- n === void 0 && (n = {});
2017
- const {
2018
- ancestorScroll: o = !0,
2019
- ancestorResize: i = !0,
2020
- elementResize: s = typeof ResizeObserver == "function",
2021
- layoutShift: c = typeof IntersectionObserver == "function",
2022
- animationFrame: l = !1
2023
- } = n, a = Be(t), u = o || i ? [...a ? Wt(a) : [], ...Wt(e)] : [];
2024
- u.forEach((b) => {
2025
- o && b.addEventListener("scroll", r, {
2026
- passive: !0
2027
- }), i && b.addEventListener("resize", r);
2028
- });
2029
- const d = a && c ? Do(a, r) : null;
2030
- let f = -1, m = null;
2031
- s && (m = new ResizeObserver((b) => {
2032
- let [P] = b;
2033
- P && P.target === a && m && (m.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
2034
- var E;
2035
- (E = m) == null || E.observe(e);
2036
- })), r();
2037
- }), a && !l && m.observe(a), m.observe(e));
2038
- let h, w = l ? St(t) : null;
2039
- l && y();
2040
- function y() {
2041
- const b = St(t);
2042
- w && !Tn(w, b) && r(), w = b, h = requestAnimationFrame(y);
2043
- }
2044
- return r(), () => {
2045
- var b;
2046
- u.forEach((P) => {
2047
- o && P.removeEventListener("scroll", r), i && P.removeEventListener("resize", r);
2048
- }), d == null || d(), (b = m) == null || b.disconnect(), m = null, l && cancelAnimationFrame(h);
2049
- };
2050
- }
2051
- const To = so, Co = co, Fo = oo, Lo = ao, Mo = ro, $o = lo, No = (t, e, r) => {
2052
- const n = /* @__PURE__ */ new Map(), o = {
2053
- platform: Oo,
2054
- ...r
2055
- }, i = {
2056
- ...o.platform,
2057
- _c: n
2058
- };
2059
- return no(t, e, {
2060
- ...o,
2061
- platform: i
2062
- });
2063
- };
2064
- var _o = "div";
2065
- function en(t = 0, e = 0, r = 0, n = 0) {
2066
- if (typeof DOMRect == "function")
2067
- return new DOMRect(t, e, r, n);
2068
- const o = {
2069
- x: t,
2070
- y: e,
2071
- width: r,
2072
- height: n,
2073
- top: e,
2074
- right: t + r,
2075
- bottom: e + n,
2076
- left: t
2077
- };
2078
- return V(R({}, o), { toJSON: () => o });
2079
- }
2080
- function Vo(t) {
2081
- if (!t) return en();
2082
- const { x: e, y: r, width: n, height: o } = t;
2083
- return en(e, r, n, o);
2084
- }
2085
- function ko(t, e) {
2086
- return {
2087
- contextElement: t || void 0,
2088
- getBoundingClientRect: () => {
2089
- const n = t, o = e == null ? void 0 : e(n);
2090
- return o || !n ? Vo(o) : n.getBoundingClientRect();
2091
- }
2092
- };
2093
- }
2094
- function Ho(t) {
2095
- return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(t);
2096
- }
2097
- function nn(t) {
2098
- const e = window.devicePixelRatio || 1;
2099
- return Math.round(t * e) / e;
2100
- }
2101
- function Bo(t, e) {
2102
- return To(({ placement: r }) => {
2103
- var n;
2104
- const o = ((t == null ? void 0 : t.clientHeight) || 0) / 2, i = typeof e.gutter == "number" ? e.gutter + o : (n = e.gutter) != null ? n : o;
2105
- return {
2106
- crossAxis: !!r.split("-")[1] ? void 0 : e.shift,
2107
- mainAxis: i,
2108
- alignmentAxis: e.shift
2109
- };
2110
- });
2111
- }
2112
- function Wo(t) {
2113
- if (t.flip === !1) return;
2114
- const e = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
2115
- return ie(
2116
- !e || e.every(Ho),
2117
- process.env.NODE_ENV !== "production" && "`flip` expects a spaced-delimited list of placements"
2118
- ), Fo({
2119
- padding: t.overflowPadding,
2120
- fallbackPlacements: e
2121
- });
2122
- }
2123
- function Io(t) {
2124
- if (!(!t.slide && !t.overlap))
2125
- return Co({
2126
- mainAxis: t.slide,
2127
- crossAxis: t.overlap,
2128
- padding: t.overflowPadding,
2129
- limiter: $o()
2130
- });
2131
- }
2132
- function zo(t) {
2133
- return Lo({
2134
- padding: t.overflowPadding,
2135
- apply({ elements: e, availableWidth: r, availableHeight: n, rects: o }) {
2136
- const i = e.floating, s = Math.round(o.reference.width);
2137
- r = Math.floor(r), n = Math.floor(n), i.style.setProperty(
2138
- "--popover-anchor-width",
2139
- `${s}px`
2140
- ), i.style.setProperty(
2141
- "--popover-available-width",
2142
- `${r}px`
2143
- ), i.style.setProperty(
2144
- "--popover-available-height",
2145
- `${n}px`
2146
- ), t.sameWidth && (i.style.width = `${s}px`), t.fitViewport && (i.style.maxWidth = `${r}px`, i.style.maxHeight = `${n}px`);
2147
- }
2148
- });
2149
- }
2150
- function jo(t, e) {
2151
- if (t)
2152
- return Mo({
2153
- element: t,
2154
- padding: e.arrowPadding
2155
- });
2156
- }
2157
- var qo = lt(
2158
- function(e) {
2159
- var r = e, {
2160
- store: n,
2161
- modal: o = !1,
2162
- portal: i = !!o,
2163
- preserveTabOrder: s = !0,
2164
- autoFocusOnShow: c = !0,
2165
- wrapperProps: l,
2166
- fixed: a = !1,
2167
- flip: u = !0,
2168
- shift: d = 0,
2169
- slide: f = !0,
2170
- overlap: m = !1,
2171
- sameWidth: h = !1,
2172
- fitViewport: w = !1,
2173
- gutter: y,
2174
- arrowPadding: b = 4,
2175
- overflowPadding: P = 8,
2176
- getAnchorRect: E,
2177
- updatePosition: p
2178
- } = r, g = Ot(r, [
2179
- "store",
2180
- "modal",
2181
- "portal",
2182
- "preserveTabOrder",
2183
- "autoFocusOnShow",
2184
- "wrapperProps",
2185
- "fixed",
2186
- "flip",
2187
- "shift",
2188
- "slide",
2189
- "overlap",
2190
- "sameWidth",
2191
- "fitViewport",
2192
- "gutter",
2193
- "arrowPadding",
2194
- "overflowPadding",
2195
- "getAnchorRect",
2196
- "updatePosition"
2197
- ]);
2198
- const A = ce();
2199
- n = n || A, ie(
2200
- n,
2201
- process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
2202
- );
2203
- const x = n.useState("arrowElement"), _ = n.useState("anchorElement"), T = n.useState("disclosureElement"), D = n.useState("popoverElement"), k = n.useState("contentElement"), F = n.useState("placement"), C = n.useState("mounted"), L = n.useState("rendered"), M = J(null), [U, H] = ht(!1), { portalRef: z, domReady: N } = sn(i, g.portalRef), I = Bt(E), yt = Bt(p), _t = !!p;
2204
- K(() => {
2205
- if (!(D != null && D.isConnected)) return;
2206
- D.style.setProperty(
2207
- "--popover-overflow-padding",
2208
- `${P}px`
2209
- );
2210
- const Z = ko(_, I), rt = async () => {
2211
- if (!C) return;
2212
- x || (M.current = M.current || document.createElement("div"));
2213
- const ut = x || M.current, Et = [
2214
- Bo(ut, { gutter: y, shift: d }),
2215
- Wo({ flip: u, overflowPadding: P }),
2216
- Io({ slide: f, overlap: m, overflowPadding: P }),
2217
- jo(ut, { arrowPadding: b }),
2218
- zo({
2219
- sameWidth: h,
2220
- fitViewport: w,
2221
- overflowPadding: P
2222
- })
2223
- ], ot = await No(Z, D, {
2224
- placement: F,
2225
- strategy: a ? "fixed" : "absolute",
2226
- middleware: Et
2227
- });
2228
- n == null || n.setState("currentPlacement", ot.placement), H(!0);
2229
- const qt = nn(ot.x), Yt = nn(ot.y);
2230
- if (Object.assign(D.style, {
2231
- top: "0",
2232
- left: "0",
2233
- transform: `translate3d(${qt}px,${Yt}px,0)`
2234
- }), ut && ot.middlewareData.arrow) {
2235
- const { x: Pt, y: Rt } = ot.middlewareData.arrow, Xt = ot.placement.split("-")[0], Tt = ut.clientWidth / 2, Ct = ut.clientHeight / 2, v = Pt != null ? Pt + Tt : -Tt, S = Rt != null ? Rt + Ct : -Ct;
2236
- D.style.setProperty(
2237
- "--popover-transform-origin",
2238
- {
2239
- top: `${v}px calc(100% + ${Ct}px)`,
2240
- bottom: `${v}px ${-Ct}px`,
2241
- left: `calc(100% + ${Tt}px) ${S}px`,
2242
- right: `${-Tt}px ${S}px`
2243
- }[Xt]
2244
- ), Object.assign(ut.style, {
2245
- left: Pt != null ? `${Pt}px` : "",
2246
- top: Rt != null ? `${Rt}px` : "",
2247
- [Xt]: "100%"
2248
- });
2249
- }
2250
- }, Dt = Ro(Z, D, async () => {
2251
- _t ? (await yt({ updatePosition: rt }), H(!0)) : await rt();
2252
- }, {
2253
- // JSDOM doesn't support ResizeObserver
2254
- elementResize: typeof ResizeObserver == "function"
2255
- });
2256
- return () => {
2257
- H(!1), Dt();
2258
- };
2259
- }, [
2260
- n,
2261
- L,
2262
- D,
2263
- x,
2264
- _,
2265
- D,
2266
- F,
2267
- C,
2268
- N,
2269
- a,
2270
- u,
2271
- d,
2272
- f,
2273
- m,
2274
- h,
2275
- w,
2276
- y,
2277
- b,
2278
- P,
2279
- I,
2280
- _t,
2281
- yt
2282
- ]), K(() => {
2283
- if (!C || !N || !(D != null && D.isConnected) || !(k != null && k.isConnected)) return;
2284
- const Z = () => {
2285
- D.style.zIndex = getComputedStyle(k).zIndex;
2286
- };
2287
- Z();
2288
- let rt = requestAnimationFrame(() => {
2289
- rt = requestAnimationFrame(Z);
2290
- });
2291
- return () => cancelAnimationFrame(rt);
2292
- }, [C, N, D, k]);
2293
- const jt = a ? "fixed" : "absolute";
2294
- return g = ft(
2295
- g,
2296
- (Z) => /* @__PURE__ */ $(
2297
- "div",
2298
- V(R({}, l), {
2299
- style: R({
2300
- // https://floating-ui.com/docs/computeposition#initial-layout
2301
- position: jt,
2302
- top: 0,
2303
- left: 0,
2304
- width: "max-content"
2305
- }, l == null ? void 0 : l.style),
2306
- ref: n == null ? void 0 : n.setPopoverElement,
2307
- children: Z
2308
- })
2309
- ),
2310
- [n, jt, l]
2311
- ), g = ft(
2312
- g,
2313
- (Z) => /* @__PURE__ */ $(an, { value: n, children: Z }),
2314
- [n]
2315
- ), g = V(R({
2316
- // data-placing is not part of the public API. We're setting this here so
2317
- // we can wait for the popover to be positioned before other components
2318
- // move focus into it. For example, this attribute is observed by the
2319
- // Combobox component with the autoSelect behavior.
2320
- "data-placing": !U || void 0
2321
- }, g), {
2322
- style: R({
2323
- position: "relative"
2324
- }, g.style)
2325
- }), g = xn(V(R({
2326
- store: n,
2327
- modal: o,
2328
- portal: i,
2329
- preserveTabOrder: s,
2330
- preserveTabOrderAnchor: T || _,
2331
- autoFocusOnShow: U && c
2332
- }, g), {
2333
- portalRef: z
2334
- })), g;
2335
- }
2336
- ), ci = bn(
2337
- G(function(e) {
2338
- const r = qo(e);
2339
- return nt(_o, r);
2340
- }),
2341
- ce
2342
- ), Yo = "div", Cn = lt(
2343
- function(e) {
2344
- var r = e, { store: n } = r, o = Ot(r, ["store"]);
2345
- const i = ce();
2346
- return n = n || i, o = V(R({}, o), {
2347
- ref: De(n == null ? void 0 : n.setAnchorElement, o.ref)
2348
- }), o;
2349
- }
2350
- );
2351
- G(function(e) {
2352
- const r = Cn(e);
2353
- return nt(Yo, r);
2354
- });
2355
- var Xo = "button", Fn = lt(
2356
- function(e) {
2357
- var r = e, { store: n } = r, o = Ot(r, ["store"]);
2358
- const i = se();
2359
- n = n || i, ie(
2360
- n,
2361
- process.env.NODE_ENV !== "production" && "DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component."
2362
- );
2363
- const s = n.useState("contentElement");
2364
- return o = R({
2365
- "aria-haspopup": Un(s, "dialog")
2366
- }, o), o = dr(R({ store: n }, o)), o;
2367
- }
2368
- );
2369
- G(function(e) {
2370
- const r = Fn(e);
2371
- return nt(Xo, r);
2372
- });
2373
- var Uo = "button", Ko = lt(function(e) {
2374
- var r = e, { store: n } = r, o = Ot(r, ["store"]);
2375
- const i = ce();
2376
- n = n || i, ie(
2377
- n,
2378
- process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
2379
- );
2380
- const s = o.onClick, c = Bt((l) => {
2381
- n == null || n.setAnchorElement(l.currentTarget), s == null || s(l);
2382
- });
2383
- return o = ft(
2384
- o,
2385
- (l) => /* @__PURE__ */ $(an, { value: n, children: l }),
2386
- [n]
2387
- ), o = V(R({}, o), {
2388
- onClick: c
2389
- }), o = Cn(R({ store: n }, o)), o = Fn(R({ store: n }, o)), o;
2390
- }), li = G(function(e) {
2391
- const r = Ko(e);
2392
- return nt(Uo, r);
2393
- });
2394
- export {
2395
- li as P,
2396
- Pe as R,
2397
- ci as a,
2398
- gr as b,
2399
- mr as c,
2400
- qo as d,
2401
- bn as e,
2402
- Ko as f,
2403
- Cn as g,
2404
- si as u
2405
- };