@wrdagency/blockout 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2NBKRL7C-CzwWfv1x.js +76 -0
- package/dist/2RSXSRCN-rMUAytae.js +61 -0
- package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
- package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
- package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
- package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
- package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
- package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
- package/dist/Check.es-CMkTf2It.js +38 -0
- package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
- package/dist/EM5CXX6A-C74NAQPE.js +13 -0
- package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
- package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
- package/dist/IWEFDH56-CvOsIcbb.js +19 -0
- package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
- package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
- package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
- package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
- package/dist/MR26YJYP-DacZIkgJ.js +287 -0
- package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
- package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
- package/dist/P7GR5CS5-5PtDURPc.js +24 -0
- package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
- package/dist/Plus.es-DJ5SuqNv.js +38 -0
- package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
- package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
- package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
- package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
- package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
- package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
- package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
- package/dist/VIIRIBF3-uvnIyICw.js +31 -0
- package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
- package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
- package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style17.css +1 -1
- package/dist/assets/style18.css +1 -1
- package/dist/assets/style19.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style22.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style24.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style26.css +1 -1
- package/dist/assets/style27.css +1 -0
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/row.js +4 -4
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/card-number-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +12 -10
- package/dist/components/controls/list-control/item.js +34 -67
- package/dist/components/controls/list-control/list.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +19 -18
- package/dist/components/controls/select-control/control.js +26 -37
- package/dist/components/controls/select-control/select.js +62 -1129
- package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
- package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
- package/dist/components/controls/tag-control/index.d.ts +10 -0
- package/dist/components/controls/tag-control/index.js +134 -0
- package/dist/components/controls/tag-control/props.d.ts +11 -0
- package/dist/components/controls/tag-control/props.js +29 -0
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/data-view/data/apply.js +15 -15
- package/dist/components/data-view/data/filter.js +14 -12
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/empty.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +9 -7
- package/dist/components/data-view/layouts/grid/item.js +9 -7
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +1 -1
- package/dist/components/data-view/layouts/kanban/group.js +9 -7
- package/dist/components/data-view/layouts/kanban/item.js +9 -7
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +9 -7
- package/dist/components/data-view/layouts/list/item.js +9 -7
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +9 -7
- package/dist/components/data-view/layouts/table/group.js +10 -8
- package/dist/components/data-view/layouts/table/item.js +10 -8
- package/dist/components/data-view/layouts/table/root.js +9 -7
- package/dist/components/data-view/parts/body/index.js +11 -9
- package/dist/components/data-view/parts/controls/index.js +9 -7
- package/dist/components/data-view/parts/controls/search.js +9 -7
- package/dist/components/data-view/parts/filters/editor.js +8 -6
- package/dist/components/data-view/parts/filters/index.js +1 -1
- package/dist/components/data-view/parts/filters/list.js +39 -73
- package/dist/components/data-view/parts/footer/actions.js +9 -7
- package/dist/components/data-view/parts/footer/index.js +9 -7
- package/dist/components/data-view/parts/footer/selection.js +9 -7
- package/dist/components/data-view/parts/view-control/index.js +23 -21
- package/dist/components/data-view/root.js +9 -7
- package/dist/components/data-view/slots/group/checkbox.js +9 -7
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +1 -1
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +9 -7
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +2 -2
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +8 -6
- package/dist/components/data-view/slots/property/field/index.js +2 -2
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +8 -6
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +29 -80
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.js +41 -39
- package/dist/components/menu/index.js +14 -13
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +4 -16
- package/dist/components/menu/items/submenu.js +4 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/tabs/list.js +8 -36
- package/dist/components/tabs/panel.js +13 -126
- package/dist/components/tabs/root.js +14 -166
- package/dist/components/tabs/tab.js +5 -79
- package/dist/components/toolbar/divider.js +7 -19
- package/dist/components/toolbar/index.js +10 -24
- package/dist/components/toolbar/root.js +5 -67
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
- package/dist/disclosure-provider-DW9RmAuE.js +61 -0
- package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
- package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
- package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
- package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
- package/dist/index.js +87 -85
- package/dist/item-CYpF0or4.js +58 -0
- package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
- package/dist/menu-button-D0chRxS0.js +416 -0
- package/dist/menu-separator-Cy38O3cZ.js +16 -0
- package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
- package/dist/popover-provider-DZV1nb7Q.js +10 -0
- package/dist/primitives/popover/index.js +2 -2
- package/dist/primitives/popover/root.js +12 -3
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +10 -173
- package/dist/select-popover-DYAZyLp4.js +542 -0
- package/dist/select-value-CeoMyvpZ.js +15 -0
- package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
- package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
- package/dist/tab-DjNG1rEI.js +79 -0
- package/dist/tab-list-DtMnUjoy.js +33 -0
- package/dist/tab-panel-DdkeLgKE.js +118 -0
- package/dist/tab-provider-BMkHrtIK.js +158 -0
- package/dist/tag-remove-BVa8oSsq.js +533 -0
- package/dist/toolbar-B7_t1rYu.js +68 -0
- package/dist/toolbar-separator-DBoO5XdF.js +16 -0
- package/dist/tooltip-anchor-CxZWazuo.js +173 -0
- package/package.json +1 -1
- package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
- package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
- package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
- package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
- package/dist/MR26YJYP-yD1_RvCA.js +0 -283
- package/dist/MTZPJQMC-RLG1q394.js +0 -12
- package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
- package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
- package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
- package/dist/TP7N7UIH-mdk33dnV.js +0 -34
- package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
- package/dist/VIIRIBF3-DylpToFV.js +0 -18
- package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
- package/dist/item-C5GtZF5t.js +0 -470
- package/dist/root-C7IYlG1s.js +0 -20
|
@@ -0,0 +1,2308 @@
|
|
|
1
|
+
import { u as Xe, f as $t } from "../../../tag-remove-BVa8oSsq.js";
|
|
2
|
+
import { g as Ou, e as Au, C as Hu, b as Gu, d as Bu, a as Wu, T as ju, c as Uu, h as qu, i as zu, j as Ku, k as Zu } from "../../../tag-remove-BVa8oSsq.js";
|
|
3
|
+
import { d as Mt } from "../../../MAXQOH4L-DBaf8WKp.js";
|
|
4
|
+
import { a as Ju, c as Qu, b as Yu, C as ei, i as ti } from "../../../MAXQOH4L-DBaf8WKp.js";
|
|
5
|
+
import { c as b, _ as k, e as _, h as Ce, $ as Rt, k as se, A as Vt, m as N, n as L, o as m, r as j, f as h, a as g, s as R, i as w, q as W, b as ve, aj as Lt, T as K, V as A, U as O, l as X, R as ie, S as Ot, I as De, t as Je, a8 as Qe, a0 as Ee, a5 as xe, al as me, am as At, an as we, W as Ye, j as Ht, ao as Gt, C as Bt, Z as Wt, M as Pe, ap as jt, K as Ut } from "../../../LMDWO4NN-CIZvvtic.js";
|
|
6
|
+
import { a as te } from "../../../F5MUBM3I-BbDMTUwx.js";
|
|
7
|
+
import { B as ri, D as ni } from "../../../F5MUBM3I-BbDMTUwx.js";
|
|
8
|
+
import { u as qt } from "../../../2RSXSRCN-rMUAytae.js";
|
|
9
|
+
import { C as ai } from "../../../2RSXSRCN-rMUAytae.js";
|
|
10
|
+
import { a as oe, c as ue, b as pe, d as ae, t as et, s as We, i as zt, e as tt } from "../../../YV4JVR4I-w1-dnslS.js";
|
|
11
|
+
import { useRef as B, useEffect as M, useMemo as ee, useState as ce, useContext as J, useCallback as Z, Fragment as Kt } from "react";
|
|
12
|
+
import { jsx as D, jsxs as fe, Fragment as Zt } from "react/jsx-runtime";
|
|
13
|
+
import { a as Xt, e as Jt, C as Qt, f as ot, g as rt, h as Yt } from "../../../P7GR5CS5-5PtDURPc.js";
|
|
14
|
+
import { d as ii } from "../../../P7GR5CS5-5PtDURPc.js";
|
|
15
|
+
import { u as le } from "../../../RZ4GPYOB-COPqjbOz.js";
|
|
16
|
+
import { C as li } from "../../../RZ4GPYOB-COPqjbOz.js";
|
|
17
|
+
import { c as nt, b as st, a as eo, e as to, f as oo } from "../../../4CMBR7SL-ChJnawVl.js";
|
|
18
|
+
import { u as mi } from "../../../4CMBR7SL-ChJnawVl.js";
|
|
19
|
+
import { a as _e, b as be, c as ro, u as no } from "../../../S43UC3DV-CiBKpqp8.js";
|
|
20
|
+
import { b as at } from "../../../WMYDSCNQ-D4CU76mX.js";
|
|
21
|
+
import { D as pi, c as fi, P as bi } from "../../../WMYDSCNQ-D4CU76mX.js";
|
|
22
|
+
import { u as Ie, b as $e, c as so, d as ao } from "../../../disclosure-provider-DW9RmAuE.js";
|
|
23
|
+
import { C as gi, a as Ci, D as xi, G as Pi, e as Si } from "../../../disclosure-provider-DW9RmAuE.js";
|
|
24
|
+
import { t as uo } from "../../../7PRQYBBV-91wrWGjk.js";
|
|
25
|
+
import { u as ut } from "../../../J2LQO3EC-DYtZQQv6.js";
|
|
26
|
+
import { C as Fi } from "../../../J2LQO3EC-DYtZQQv6.js";
|
|
27
|
+
import { u as it } from "../../../TP7N7UIH-Dc0CLLi8.js";
|
|
28
|
+
import { C as Ni, S as yi } from "../../../TP7N7UIH-Dc0CLLi8.js";
|
|
29
|
+
import { u as ct } from "../../../5JTVDSTH-DcfjjEya.js";
|
|
30
|
+
import { C as Ei } from "../../../5JTVDSTH-DcfjjEya.js";
|
|
31
|
+
import { C as _i } from "../../../UQQRIHDV-BBkcyl82.js";
|
|
32
|
+
import { u as io } from "../../../6VRAQV3D-DK_p41oq.js";
|
|
33
|
+
import { C as $i } from "../../../6VRAQV3D-DK_p41oq.js";
|
|
34
|
+
import { C as Ri } from "../../../composite-provider-B-M1AaRb.js";
|
|
35
|
+
import { C as Li } from "../../../T7VMP3TM-C0xl-w4G.js";
|
|
36
|
+
import { H as co, F as lo, b as mo } from "../../../G7GW6PWC-A0eDeXMt.js";
|
|
37
|
+
import { D as Ai, d as Hi, P as Gi, a as Bi, e as Wi, R as ji, V as Ui } from "../../../G7GW6PWC-A0eDeXMt.js";
|
|
38
|
+
import { e as vo, f as po, d as fo, a as bo } from "../../../RS7LB2H4-BvDKQaCt.js";
|
|
39
|
+
import { g as zi, h as Ki } from "../../../RS7LB2H4-BvDKQaCt.js";
|
|
40
|
+
import { a as ho } from "../../../BM6PGYQY-CkMwDqt0.js";
|
|
41
|
+
import { D as Xi } from "../../../KFH4SEIX-BFT9WmYk.js";
|
|
42
|
+
import { e as ne, r as Te, j as Me, g as go, u as Co } from "../../../PFRGBC2K-B9ko--FF.js";
|
|
43
|
+
import { m as Qi } from "../../../PFRGBC2K-B9ko--FF.js";
|
|
44
|
+
import { d as xo } from "../../../MR26YJYP-DacZIkgJ.js";
|
|
45
|
+
import { H as ec, e as tc } from "../../../MR26YJYP-DacZIkgJ.js";
|
|
46
|
+
import { u as Po, c as So } from "../../../MTZPJQMC-DPwZ6caC.js";
|
|
47
|
+
import { a as ko, b as Fo, u as To, c as No } from "../../../EM5CXX6A-C74NAQPE.js";
|
|
48
|
+
import { b as rc, a as nc, c as sc, M as ac, u as uc } from "../../../menu-button-D0chRxS0.js";
|
|
49
|
+
import { f as yo, g as Do, h as Eo, b as lt, u as Re, i as dt } from "../../../VIIRIBF3-uvnIyICw.js";
|
|
50
|
+
import { j as cc, c as lc } from "../../../VIIRIBF3-uvnIyICw.js";
|
|
51
|
+
import { u as wo } from "../../../select-popover-DYAZyLp4.js";
|
|
52
|
+
import { P as mc, a as vc, e as pc, d as fc, c as bc, b as hc, S as gc, f as Cc } from "../../../select-popover-DYAZyLp4.js";
|
|
53
|
+
import { u as mt } from "../../../2NBKRL7C-CzwWfv1x.js";
|
|
54
|
+
import { M as Pc } from "../../../2NBKRL7C-CzwWfv1x.js";
|
|
55
|
+
import { M as kc } from "../../../menu-separator-Cy38O3cZ.js";
|
|
56
|
+
import { P as Tc } from "../../../popover-provider-DZV1nb7Q.js";
|
|
57
|
+
import { c as _o, e as Io, d as $o, a as Mo, u as vt } from "../../../DG5U6ZEL-GfwW2sqh.js";
|
|
58
|
+
import { S as yc } from "../../../select-value-CeoMyvpZ.js";
|
|
59
|
+
import { T as Ec } from "../../../tab-DjNG1rEI.js";
|
|
60
|
+
import { T as _c } from "../../../tab-list-DtMnUjoy.js";
|
|
61
|
+
import { T as $c } from "../../../tab-panel-DdkeLgKE.js";
|
|
62
|
+
import { T as Rc, u as Vc } from "../../../tab-provider-BMkHrtIK.js";
|
|
63
|
+
import { u as Ro } from "../../../toolbar-B7_t1rYu.js";
|
|
64
|
+
import { T as Oc } from "../../../toolbar-B7_t1rYu.js";
|
|
65
|
+
import { u as pt } from "../../../IWEFDH56-CvOsIcbb.js";
|
|
66
|
+
import { T as Hc } from "../../../IWEFDH56-CvOsIcbb.js";
|
|
67
|
+
import { b as Vo, u as ft } from "../../../A3WPL2ZJ-CpUtG5Sk.js";
|
|
68
|
+
import { b as Lo } from "../../../5VQZOHHZ-BN-teS5E.js";
|
|
69
|
+
import { T as Bc } from "../../../toolbar-separator-DBoO5XdF.js";
|
|
70
|
+
import { u as Oo } from "../../../tooltip-anchor-CxZWazuo.js";
|
|
71
|
+
import { b as jc, a as Uc, T as qc, c as zc } from "../../../tooltip-anchor-CxZWazuo.js";
|
|
72
|
+
import { u as Zc } from "../../../WYCIER3C-CaoIoaX7.js";
|
|
73
|
+
import { u as Jc } from "../../../O2PQ2652-D2GSkoLq.js";
|
|
74
|
+
import { c as Yc } from "../../../UYGDZTLQ-9uAEICxv.js";
|
|
75
|
+
function pa(r = {}) {
|
|
76
|
+
const e = Ro(r);
|
|
77
|
+
return /* @__PURE__ */ D(Vo, { value: e, children: r.children });
|
|
78
|
+
}
|
|
79
|
+
var Ao = "div";
|
|
80
|
+
function je(r) {
|
|
81
|
+
Te(r);
|
|
82
|
+
const e = Me(r);
|
|
83
|
+
return ne(r), e;
|
|
84
|
+
}
|
|
85
|
+
var bt = b(function(e) {
|
|
86
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
87
|
+
const s = Xt();
|
|
88
|
+
t = t || s;
|
|
89
|
+
const a = B(null), c = B(!1), u = (P = !1) => {
|
|
90
|
+
const I = a.current;
|
|
91
|
+
if (!I) return;
|
|
92
|
+
Te(I);
|
|
93
|
+
const F = Me(I);
|
|
94
|
+
if (!F) {
|
|
95
|
+
ne(I);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
c.current = !0, queueMicrotask(() => {
|
|
99
|
+
F.focus(), (se(F) || F.isContentEditable) && Lo(F, P);
|
|
100
|
+
});
|
|
101
|
+
}, i = () => {
|
|
102
|
+
const P = a.current;
|
|
103
|
+
P && (c.current = !1, ne(P));
|
|
104
|
+
}, d = oe(t, "renderedItems");
|
|
105
|
+
M(() => {
|
|
106
|
+
const P = a.current;
|
|
107
|
+
if (!P) return;
|
|
108
|
+
!c.current && (d != null && d.length) && ne(P);
|
|
109
|
+
}, [d]);
|
|
110
|
+
const v = n.onFocus, p = _((P) => {
|
|
111
|
+
if (v == null || v(P), P.defaultPrevented || !t) return;
|
|
112
|
+
const I = c.current;
|
|
113
|
+
if (Ce(P)) {
|
|
114
|
+
c.current = !1;
|
|
115
|
+
const { baseElement: F } = t.getState(), V = F, q = V == null ? void 0 : V.querySelectorAll("[data-composite-container]");
|
|
116
|
+
if (q)
|
|
117
|
+
for (const y of q)
|
|
118
|
+
ne(y);
|
|
119
|
+
} else I || (c.current = !0, Te(P.currentTarget), t == null || t.setState("moves", 0));
|
|
120
|
+
}), f = n.onBlur, l = _((P) => {
|
|
121
|
+
f == null || f(P), !P.defaultPrevented && Rt(P) && i();
|
|
122
|
+
}), C = n.onKeyDown, x = _((P) => {
|
|
123
|
+
if (C == null || C(P), P.defaultPrevented || P.altKey || P.ctrlKey || P.metaKey || P.shiftKey) return;
|
|
124
|
+
const I = P.currentTarget;
|
|
125
|
+
if (Ce(P)) {
|
|
126
|
+
if (P.key.length === 1 && P.key !== " ") {
|
|
127
|
+
const F = je(I);
|
|
128
|
+
if (!F) return;
|
|
129
|
+
(se(F) || F.isContentEditable) && (P.stopPropagation(), u());
|
|
130
|
+
} else if (P.key === "Delete" || P.key === "Backspace") {
|
|
131
|
+
const F = je(I);
|
|
132
|
+
if (!F) return;
|
|
133
|
+
if (se(F) || F.isContentEditable) {
|
|
134
|
+
u();
|
|
135
|
+
const V = () => queueMicrotask(() => I.focus());
|
|
136
|
+
I.addEventListener("input", V, { once: !0 });
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} else if (P.key === "Escape")
|
|
140
|
+
queueMicrotask(() => I.focus());
|
|
141
|
+
else if (P.key === "Enter") {
|
|
142
|
+
const F = P.target;
|
|
143
|
+
(F.tagName === "INPUT" && !Vt(F) || F.tagName === "TEXTAREA" || F.isContentEditable) && (P.preventDefault(), queueMicrotask(() => I.focus()));
|
|
144
|
+
}
|
|
145
|
+
}), S = n.onClick, T = _((P) => {
|
|
146
|
+
S == null || S(P), !P.defaultPrevented && Ce(P) && !P.detail && u(!0);
|
|
147
|
+
});
|
|
148
|
+
return n = N(m({
|
|
149
|
+
"data-composite-container": ""
|
|
150
|
+
}, n), {
|
|
151
|
+
ref: L(a, n.ref),
|
|
152
|
+
onFocus: p,
|
|
153
|
+
onBlur: l,
|
|
154
|
+
onKeyDown: x,
|
|
155
|
+
onClick: T
|
|
156
|
+
}), j(n);
|
|
157
|
+
});
|
|
158
|
+
h(function(e) {
|
|
159
|
+
const o = bt(e);
|
|
160
|
+
return g(Ao, o);
|
|
161
|
+
});
|
|
162
|
+
var Ho = "div", Go = b(
|
|
163
|
+
function(e) {
|
|
164
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
165
|
+
const s = ft();
|
|
166
|
+
return t = t || s, n = bt(m({ store: t }, n)), n = pt(m({ store: t }, n)), n;
|
|
167
|
+
}
|
|
168
|
+
), fa = R(
|
|
169
|
+
h(function(e) {
|
|
170
|
+
const o = Go(e);
|
|
171
|
+
return g(Ho, o);
|
|
172
|
+
})
|
|
173
|
+
), Bo = "input", Wo = b(
|
|
174
|
+
function(e) {
|
|
175
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
176
|
+
const s = ft();
|
|
177
|
+
return t = t || s, n = pt(m({ store: t }, n)), n;
|
|
178
|
+
}
|
|
179
|
+
), ba = R(
|
|
180
|
+
h(function(e) {
|
|
181
|
+
const o = Wo(e);
|
|
182
|
+
return g(Bo, o);
|
|
183
|
+
})
|
|
184
|
+
), Ue = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", jo = "div", Ne = 30, z = Ne / 2, Uo = {
|
|
185
|
+
top: `rotate(180 ${z} ${z})`,
|
|
186
|
+
right: `rotate(-90 ${z} ${z})`,
|
|
187
|
+
bottom: `rotate(0 ${z} ${z})`,
|
|
188
|
+
left: `rotate(90 ${z} ${z})`
|
|
189
|
+
};
|
|
190
|
+
function qo(r) {
|
|
191
|
+
const [e, o] = ce(), t = oe(r, "contentElement");
|
|
192
|
+
return ve(() => {
|
|
193
|
+
if (!t) return;
|
|
194
|
+
const s = Lt(t).getComputedStyle(t);
|
|
195
|
+
o(s);
|
|
196
|
+
}, [t]), e;
|
|
197
|
+
}
|
|
198
|
+
function zo(r) {
|
|
199
|
+
var e;
|
|
200
|
+
return r ? (e = r.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/)) == null ? void 0 : e[1] : void 0;
|
|
201
|
+
}
|
|
202
|
+
var he = b(
|
|
203
|
+
function(e) {
|
|
204
|
+
var o = e, {
|
|
205
|
+
store: t,
|
|
206
|
+
size: n = Ne,
|
|
207
|
+
borderWidth: s
|
|
208
|
+
} = o, a = k(o, [
|
|
209
|
+
"store",
|
|
210
|
+
"size",
|
|
211
|
+
"borderWidth"
|
|
212
|
+
]);
|
|
213
|
+
const c = Po();
|
|
214
|
+
t = t || c, w(
|
|
215
|
+
t,
|
|
216
|
+
process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
|
|
217
|
+
);
|
|
218
|
+
const u = oe(
|
|
219
|
+
t,
|
|
220
|
+
(S) => S.currentPlacement.split("-")[0]
|
|
221
|
+
), i = W(), d = qo(t), v = (d == null ? void 0 : d.getPropertyValue("background-color")) || "none", p = (d == null ? void 0 : d.getPropertyValue(`border-${u}-color`)) || "none", l = ee(() => {
|
|
222
|
+
if (s != null) return s;
|
|
223
|
+
if (!d) return 0;
|
|
224
|
+
const S = zo(d);
|
|
225
|
+
if (S) return Number.parseInt(S);
|
|
226
|
+
const T = d.getPropertyValue(`border-${u}-width`);
|
|
227
|
+
return T ? Number.parseInt(T) : 0;
|
|
228
|
+
}, [s, d, u]) * 2 * (Ne / n), C = Uo[u], x = ee(
|
|
229
|
+
() => /* @__PURE__ */ D("svg", { display: "block", viewBox: "0 0 30 30", children: /* @__PURE__ */ fe("g", { transform: C, children: [
|
|
230
|
+
/* @__PURE__ */ D("path", { fill: "none", d: Ue, mask: `url(#${i})` }),
|
|
231
|
+
/* @__PURE__ */ D("path", { stroke: "none", d: Ue }),
|
|
232
|
+
/* @__PURE__ */ D("mask", { id: i, maskUnits: "userSpaceOnUse", children: /* @__PURE__ */ D(
|
|
233
|
+
"rect",
|
|
234
|
+
{
|
|
235
|
+
x: "-15",
|
|
236
|
+
y: "0",
|
|
237
|
+
width: "60",
|
|
238
|
+
height: "30",
|
|
239
|
+
fill: "white",
|
|
240
|
+
stroke: "black"
|
|
241
|
+
}
|
|
242
|
+
) })
|
|
243
|
+
] }) }),
|
|
244
|
+
[C, i]
|
|
245
|
+
);
|
|
246
|
+
return a = N(m({
|
|
247
|
+
children: x,
|
|
248
|
+
"aria-hidden": !0
|
|
249
|
+
}, a), {
|
|
250
|
+
ref: L(t.setArrowElement, a.ref),
|
|
251
|
+
style: m({
|
|
252
|
+
position: "absolute",
|
|
253
|
+
fontSize: n,
|
|
254
|
+
width: "1em",
|
|
255
|
+
height: "1em",
|
|
256
|
+
pointerEvents: "none",
|
|
257
|
+
fill: `var(--ak-layer, ${v})`,
|
|
258
|
+
stroke: `var(--ak-layer-border, ${p})`,
|
|
259
|
+
strokeWidth: l
|
|
260
|
+
}, a.style)
|
|
261
|
+
}), j(a);
|
|
262
|
+
}
|
|
263
|
+
), ha = R(
|
|
264
|
+
h(function(e) {
|
|
265
|
+
const o = he(e);
|
|
266
|
+
return g(jo, o);
|
|
267
|
+
})
|
|
268
|
+
), Ko = "div", Zo = b(
|
|
269
|
+
function(e) {
|
|
270
|
+
var o = e, { store: t, size: n = 16 } = o, s = k(o, ["store", "size"]);
|
|
271
|
+
const a = Oo();
|
|
272
|
+
return t = t || a, w(
|
|
273
|
+
t,
|
|
274
|
+
process.env.NODE_ENV !== "production" && "TooltipArrow must be wrapped in a Tooltip component."
|
|
275
|
+
), s = he(m({ store: t, size: n }, s)), s;
|
|
276
|
+
}
|
|
277
|
+
), ga = h(function(e) {
|
|
278
|
+
const o = Zo(e);
|
|
279
|
+
return g(Ko, o);
|
|
280
|
+
});
|
|
281
|
+
function Xo(r = {}) {
|
|
282
|
+
var e;
|
|
283
|
+
const o = (e = r.store) == null ? void 0 : e.getState(), t = nt(K(O({}, r), {
|
|
284
|
+
orientation: A(
|
|
285
|
+
r.orientation,
|
|
286
|
+
o == null ? void 0 : o.orientation,
|
|
287
|
+
"horizontal"
|
|
288
|
+
),
|
|
289
|
+
focusLoop: A(r.focusLoop, o == null ? void 0 : o.focusLoop, !0)
|
|
290
|
+
})), n = O({}, t.getState()), s = ue(n, t, r.store);
|
|
291
|
+
return O(O({}, t), s);
|
|
292
|
+
}
|
|
293
|
+
function Jo(r, e, o) {
|
|
294
|
+
return st(r, e, o);
|
|
295
|
+
}
|
|
296
|
+
function Ve(r = {}) {
|
|
297
|
+
const [e, o] = pe(Xo, r);
|
|
298
|
+
return Jo(e, o, r);
|
|
299
|
+
}
|
|
300
|
+
var Qo = "div", ht = b(
|
|
301
|
+
function(e) {
|
|
302
|
+
var o = e, {
|
|
303
|
+
store: t,
|
|
304
|
+
composite: n = !0,
|
|
305
|
+
orientation: s,
|
|
306
|
+
virtualFocus: a,
|
|
307
|
+
focusLoop: c,
|
|
308
|
+
rtl: u
|
|
309
|
+
} = o, i = k(o, [
|
|
310
|
+
"store",
|
|
311
|
+
"composite",
|
|
312
|
+
"orientation",
|
|
313
|
+
"virtualFocus",
|
|
314
|
+
"focusLoop",
|
|
315
|
+
"rtl"
|
|
316
|
+
]);
|
|
317
|
+
const d = yo();
|
|
318
|
+
t = t || d;
|
|
319
|
+
const v = Ve({
|
|
320
|
+
store: t,
|
|
321
|
+
orientation: s,
|
|
322
|
+
virtualFocus: a,
|
|
323
|
+
focusLoop: c,
|
|
324
|
+
rtl: u
|
|
325
|
+
}), p = v.useState(
|
|
326
|
+
(f) => !n || f.orientation === "both" ? void 0 : f.orientation
|
|
327
|
+
);
|
|
328
|
+
return i = X(
|
|
329
|
+
i,
|
|
330
|
+
(f) => /* @__PURE__ */ D(Do, { value: v, children: f }),
|
|
331
|
+
[v]
|
|
332
|
+
), n && (i = m({
|
|
333
|
+
role: "menubar",
|
|
334
|
+
"aria-orientation": p
|
|
335
|
+
}, i)), i = ct(m({ store: v, composite: n }, i)), i;
|
|
336
|
+
}
|
|
337
|
+
), Ca = h(function(e) {
|
|
338
|
+
const o = ht(e);
|
|
339
|
+
return g(Qo, o);
|
|
340
|
+
});
|
|
341
|
+
function Yo(r = {}) {
|
|
342
|
+
const e = Ve(r);
|
|
343
|
+
return /* @__PURE__ */ D(Eo, { value: e, children: r.children });
|
|
344
|
+
}
|
|
345
|
+
var er = "p", gt = b(function(e) {
|
|
346
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
347
|
+
const s = J(vo), a = W(n.id);
|
|
348
|
+
return ve(() => (s == null || s(a), () => s == null ? void 0 : s(void 0)), [s, a]), n = m({
|
|
349
|
+
id: a
|
|
350
|
+
}, n), j(n);
|
|
351
|
+
}), xa = h(function(e) {
|
|
352
|
+
const o = gt(e);
|
|
353
|
+
return g(er, o);
|
|
354
|
+
}), tr = "p", Ct = b(function(e) {
|
|
355
|
+
return e = gt(e), e;
|
|
356
|
+
}), Pa = h(function(e) {
|
|
357
|
+
const o = Ct(e);
|
|
358
|
+
return g(tr, o);
|
|
359
|
+
}), or = "button", xt = b(
|
|
360
|
+
function(e) {
|
|
361
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
362
|
+
const s = po();
|
|
363
|
+
t = t || s;
|
|
364
|
+
const a = n.onClick, c = _((i) => {
|
|
365
|
+
a == null || a(i), !i.defaultPrevented && (t == null || t.hide());
|
|
366
|
+
}), u = ee(
|
|
367
|
+
() => /* @__PURE__ */ fe(
|
|
368
|
+
"svg",
|
|
369
|
+
{
|
|
370
|
+
"aria-label": "Dismiss popup",
|
|
371
|
+
display: "block",
|
|
372
|
+
fill: "none",
|
|
373
|
+
stroke: "currentColor",
|
|
374
|
+
strokeLinecap: "round",
|
|
375
|
+
strokeLinejoin: "round",
|
|
376
|
+
strokeWidth: 1.5,
|
|
377
|
+
viewBox: "0 0 16 16",
|
|
378
|
+
height: "1em",
|
|
379
|
+
width: "1em",
|
|
380
|
+
children: [
|
|
381
|
+
/* @__PURE__ */ D("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
|
|
382
|
+
/* @__PURE__ */ D("line", { x1: "4", y1: "12", x2: "12", y2: "4" })
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
[]
|
|
387
|
+
);
|
|
388
|
+
return n = N(m({
|
|
389
|
+
"data-dialog-dismiss": "",
|
|
390
|
+
children: u
|
|
391
|
+
}, n), {
|
|
392
|
+
onClick: c
|
|
393
|
+
}), n = te(n), n;
|
|
394
|
+
}
|
|
395
|
+
), Sa = h(function(e) {
|
|
396
|
+
const o = xt(e);
|
|
397
|
+
return g(or, o);
|
|
398
|
+
}), rr = "button", Le = b(
|
|
399
|
+
function(e) {
|
|
400
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
401
|
+
const s = So();
|
|
402
|
+
return t = t || s, n = xt(m({ store: t }, n)), n;
|
|
403
|
+
}
|
|
404
|
+
), ka = h(function(e) {
|
|
405
|
+
const o = Le(e);
|
|
406
|
+
return g(rr, o);
|
|
407
|
+
}), nr = "h1", Pt = b(
|
|
408
|
+
function(e) {
|
|
409
|
+
const o = B(null), t = J(co) || 1, n = `h${t}`, s = ie(o, n), a = ee(
|
|
410
|
+
() => !!s && /^h\d$/.test(s),
|
|
411
|
+
[s]
|
|
412
|
+
);
|
|
413
|
+
return e = N(m({
|
|
414
|
+
render: /* @__PURE__ */ D(n, {}),
|
|
415
|
+
role: a ? void 0 : "heading",
|
|
416
|
+
"aria-level": a ? void 0 : t
|
|
417
|
+
}, e), {
|
|
418
|
+
ref: L(o, e.ref)
|
|
419
|
+
}), e;
|
|
420
|
+
}
|
|
421
|
+
), Fa = h(function(e) {
|
|
422
|
+
const o = Pt(e);
|
|
423
|
+
return g(nr, o);
|
|
424
|
+
}), sr = "h1", St = b(
|
|
425
|
+
function(e) {
|
|
426
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
427
|
+
const s = J(fo), a = W(n.id);
|
|
428
|
+
return ve(() => (s == null || s(a), () => s == null ? void 0 : s(void 0)), [s, a]), n = m({
|
|
429
|
+
id: a
|
|
430
|
+
}, n), n = Pt(n), n;
|
|
431
|
+
}
|
|
432
|
+
), Ta = h(function(e) {
|
|
433
|
+
const o = St(e);
|
|
434
|
+
return g(sr, o);
|
|
435
|
+
}), ar = "h1", Oe = b(
|
|
436
|
+
function(e) {
|
|
437
|
+
return e = St(e), e;
|
|
438
|
+
}
|
|
439
|
+
), Na = h(function(e) {
|
|
440
|
+
const o = Oe(e);
|
|
441
|
+
return g(ar, o);
|
|
442
|
+
});
|
|
443
|
+
function ur(r = {}) {
|
|
444
|
+
var e = Ot(r, []), o;
|
|
445
|
+
const t = (o = e.store) == null ? void 0 : o.getState(), n = nt(K(O({}, e), {
|
|
446
|
+
focusLoop: A(e.focusLoop, t == null ? void 0 : t.focusLoop, !0)
|
|
447
|
+
})), s = K(O({}, n.getState()), {
|
|
448
|
+
value: A(
|
|
449
|
+
e.value,
|
|
450
|
+
t == null ? void 0 : t.value,
|
|
451
|
+
e.defaultValue,
|
|
452
|
+
null
|
|
453
|
+
)
|
|
454
|
+
}), a = ue(s, n, e.store);
|
|
455
|
+
return K(O(O({}, n), a), {
|
|
456
|
+
setValue: (c) => a.setState("value", c)
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function ir(r, e, o) {
|
|
460
|
+
return r = st(r, e, o), ae(r, o, "value", "setValue"), r;
|
|
461
|
+
}
|
|
462
|
+
function cr(r = {}) {
|
|
463
|
+
const [e, o] = pe(ur, r);
|
|
464
|
+
return ir(e, o, r);
|
|
465
|
+
}
|
|
466
|
+
var ge = De(
|
|
467
|
+
[Qt],
|
|
468
|
+
[Jt]
|
|
469
|
+
), lr = ge.useContext, dr = ge.useProviderContext, mr = ge.ContextProvider, vr = ge.ScopedContextProvider, kt = "input";
|
|
470
|
+
function pr(r, e) {
|
|
471
|
+
if (e !== void 0)
|
|
472
|
+
return r != null && e != null ? e === r : !!e;
|
|
473
|
+
}
|
|
474
|
+
function fr(r, e) {
|
|
475
|
+
return r === "input" && (!e || e === "radio");
|
|
476
|
+
}
|
|
477
|
+
var Ae = b(function(e) {
|
|
478
|
+
var o = e, {
|
|
479
|
+
store: t,
|
|
480
|
+
name: n,
|
|
481
|
+
value: s,
|
|
482
|
+
checked: a
|
|
483
|
+
} = o, c = k(o, [
|
|
484
|
+
"store",
|
|
485
|
+
"name",
|
|
486
|
+
"value",
|
|
487
|
+
"checked"
|
|
488
|
+
]);
|
|
489
|
+
const u = lr();
|
|
490
|
+
t = t || u;
|
|
491
|
+
const i = W(c.id), d = B(null), v = oe(
|
|
492
|
+
t,
|
|
493
|
+
(E) => a ?? pr(s, E == null ? void 0 : E.value)
|
|
494
|
+
);
|
|
495
|
+
M(() => {
|
|
496
|
+
!i || !v || (t == null ? void 0 : t.getState().activeId) === i || t == null || t.setActiveId(i);
|
|
497
|
+
}, [t, v, i]);
|
|
498
|
+
const p = c.onChange, f = ie(d, kt), l = fr(f, c.type), C = Je(c), [x, S] = Qe();
|
|
499
|
+
M(() => {
|
|
500
|
+
const E = d.current;
|
|
501
|
+
E && (l || (v !== void 0 && (E.checked = v), n !== void 0 && (E.name = n), s !== void 0 && (E.value = `${s}`)));
|
|
502
|
+
}, [x, l, v, n, s]);
|
|
503
|
+
const T = _((E) => {
|
|
504
|
+
if (C) {
|
|
505
|
+
E.preventDefault(), E.stopPropagation();
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
(t == null ? void 0 : t.getState().value) !== s && (l || (E.currentTarget.checked = !0, S()), p == null || p(E), !E.defaultPrevented && (t == null || t.setValue(s)));
|
|
509
|
+
}), P = c.onClick, I = _((E) => {
|
|
510
|
+
P == null || P(E), !E.defaultPrevented && (l || T(E));
|
|
511
|
+
}), F = c.onFocus, V = _((E) => {
|
|
512
|
+
if (F == null || F(E), E.defaultPrevented || !l || !t) return;
|
|
513
|
+
const { moves: q, activeId: y } = t.getState();
|
|
514
|
+
q && (i && y !== i || T(E));
|
|
515
|
+
});
|
|
516
|
+
return c = N(m({
|
|
517
|
+
id: i,
|
|
518
|
+
role: l ? void 0 : "radio",
|
|
519
|
+
type: l ? "radio" : void 0,
|
|
520
|
+
"aria-checked": v
|
|
521
|
+
}, c), {
|
|
522
|
+
ref: L(d, c.ref),
|
|
523
|
+
onChange: T,
|
|
524
|
+
onClick: I,
|
|
525
|
+
onFocus: V
|
|
526
|
+
}), c = io(m({
|
|
527
|
+
store: t,
|
|
528
|
+
clickOnEnter: !l
|
|
529
|
+
}, c)), j(m({
|
|
530
|
+
name: l ? n : void 0,
|
|
531
|
+
value: l ? s : void 0,
|
|
532
|
+
checked: v
|
|
533
|
+
}, c));
|
|
534
|
+
}), ya = R(
|
|
535
|
+
h(function(e) {
|
|
536
|
+
const o = Ae(e);
|
|
537
|
+
return g(kt, o);
|
|
538
|
+
})
|
|
539
|
+
);
|
|
540
|
+
function Da(r = {}) {
|
|
541
|
+
const e = cr(r);
|
|
542
|
+
return /* @__PURE__ */ D(mr, { value: e, children: r.children });
|
|
543
|
+
}
|
|
544
|
+
var br = "div", hr = b(
|
|
545
|
+
function(e) {
|
|
546
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
547
|
+
const s = dr();
|
|
548
|
+
return t = t || s, w(
|
|
549
|
+
t,
|
|
550
|
+
process.env.NODE_ENV !== "production" && "RadioGroup must receive a `store` prop or be wrapped in a RadioProvider component."
|
|
551
|
+
), n = X(
|
|
552
|
+
n,
|
|
553
|
+
(a) => /* @__PURE__ */ D(vr, { value: t, children: a }),
|
|
554
|
+
[t]
|
|
555
|
+
), n = m({
|
|
556
|
+
role: "radiogroup"
|
|
557
|
+
}, n), n = ct(m({ store: t }, n)), n;
|
|
558
|
+
}
|
|
559
|
+
), Ea = h(function(e) {
|
|
560
|
+
const o = hr(e);
|
|
561
|
+
return g(br, o);
|
|
562
|
+
}), gr = "button", Cr = b(
|
|
563
|
+
function(e) {
|
|
564
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
565
|
+
const s = _o();
|
|
566
|
+
return t = t || s, n = Le(m({ store: t }, n)), n;
|
|
567
|
+
}
|
|
568
|
+
), wa = h(function(e) {
|
|
569
|
+
const o = Cr(e);
|
|
570
|
+
return g(gr, o);
|
|
571
|
+
}), xr = "div", Pr = b(
|
|
572
|
+
function(e) {
|
|
573
|
+
return e = Ie(e), e;
|
|
574
|
+
}
|
|
575
|
+
), _a = h(function(e) {
|
|
576
|
+
const o = Pr(e);
|
|
577
|
+
return g(xr, o);
|
|
578
|
+
}), Sr = "div", kr = b(
|
|
579
|
+
function(e) {
|
|
580
|
+
return e = $e(e), e;
|
|
581
|
+
}
|
|
582
|
+
), Ia = h(function(e) {
|
|
583
|
+
const o = kr(e);
|
|
584
|
+
return g(Sr, o);
|
|
585
|
+
}), Fr = "h1", Tr = b(
|
|
586
|
+
function(e) {
|
|
587
|
+
const [, o] = J(Io) || [], t = W(e.id);
|
|
588
|
+
return ve(() => (o == null || o(t), () => o == null ? void 0 : o(void 0)), [o, t]), e = m({
|
|
589
|
+
id: t
|
|
590
|
+
}, e), e = Oe(e), e;
|
|
591
|
+
}
|
|
592
|
+
), $a = h(function(e) {
|
|
593
|
+
const o = Tr(e);
|
|
594
|
+
return g(Fr, o);
|
|
595
|
+
}), Nr = "span", yr = b(
|
|
596
|
+
function(e) {
|
|
597
|
+
var o = e, { store: t, checked: n } = o, s = k(o, ["store", "checked"]);
|
|
598
|
+
const a = J($o);
|
|
599
|
+
return n = n ?? a, s = Xe(N(m({}, s), { checked: n })), s;
|
|
600
|
+
}
|
|
601
|
+
), Ma = h(function(e) {
|
|
602
|
+
const o = yr(e);
|
|
603
|
+
return g(Nr, o);
|
|
604
|
+
}), Dr = "div", Er = b(
|
|
605
|
+
function(e) {
|
|
606
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
607
|
+
const s = Mo();
|
|
608
|
+
t = t || s, w(
|
|
609
|
+
t,
|
|
610
|
+
process.env.NODE_ENV !== "production" && "SelectLabel must receive a `store` prop or be wrapped in a SelectProvider component."
|
|
611
|
+
);
|
|
612
|
+
const a = W(n.id), c = n.onClick, u = _((i) => {
|
|
613
|
+
c == null || c(i), !i.defaultPrevented && queueMicrotask(() => {
|
|
614
|
+
const d = t == null ? void 0 : t.getState().selectElement;
|
|
615
|
+
d == null || d.focus();
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
return n = N(m({
|
|
619
|
+
id: a
|
|
620
|
+
}, n), {
|
|
621
|
+
ref: L(t.setLabelElement, n.ref),
|
|
622
|
+
onClick: u,
|
|
623
|
+
style: m({
|
|
624
|
+
cursor: "default"
|
|
625
|
+
}, n.style)
|
|
626
|
+
}), j(n);
|
|
627
|
+
}
|
|
628
|
+
), Ra = R(
|
|
629
|
+
h(function(e) {
|
|
630
|
+
const o = Er(e);
|
|
631
|
+
return g(Dr, o);
|
|
632
|
+
})
|
|
633
|
+
), wr = "div", _r = b(
|
|
634
|
+
function(e) {
|
|
635
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
636
|
+
const s = vt();
|
|
637
|
+
t = t || s, w(
|
|
638
|
+
t,
|
|
639
|
+
process.env.NODE_ENV !== "production" && "SelectRow must be wrapped in a SelectList or SelectPopover component"
|
|
640
|
+
);
|
|
641
|
+
const a = t.useState("listElement"), u = Ee(a) === "grid" ? "row" : "presentation";
|
|
642
|
+
return n = m({ role: u }, n), n = ut(m({ store: t }, n)), n;
|
|
643
|
+
}
|
|
644
|
+
), Va = h(function(e) {
|
|
645
|
+
const o = _r(e);
|
|
646
|
+
return g(wr, o);
|
|
647
|
+
}), Ir = "hr", $r = b(
|
|
648
|
+
function(e) {
|
|
649
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
650
|
+
const s = vt();
|
|
651
|
+
return t = t || s, n = it(m({ store: t }, n)), n;
|
|
652
|
+
}
|
|
653
|
+
), La = h(function(e) {
|
|
654
|
+
const o = $r(e);
|
|
655
|
+
return g(Ir, o);
|
|
656
|
+
}), Mr = "div", Rr = b(
|
|
657
|
+
function(e) {
|
|
658
|
+
var o = e, { enabled: t = !1 } = o, n = k(o, ["enabled"]);
|
|
659
|
+
const s = B(null);
|
|
660
|
+
return n = X(
|
|
661
|
+
n,
|
|
662
|
+
(a) => {
|
|
663
|
+
const c = () => t ? /* @__PURE__ */ D(
|
|
664
|
+
lo,
|
|
665
|
+
{
|
|
666
|
+
onFocus: (u) => {
|
|
667
|
+
const i = s.current;
|
|
668
|
+
if (!i) return;
|
|
669
|
+
const d = go(i, !0), v = d[0], p = d[d.length - 1];
|
|
670
|
+
if (!d.length) {
|
|
671
|
+
i.focus();
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
u.relatedTarget === v ? p == null || p.focus() : v == null || v.focus();
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
) : null;
|
|
678
|
+
return /* @__PURE__ */ fe(Zt, { children: [
|
|
679
|
+
c(),
|
|
680
|
+
a,
|
|
681
|
+
c()
|
|
682
|
+
] });
|
|
683
|
+
},
|
|
684
|
+
[t]
|
|
685
|
+
), n = N(m({}, n), {
|
|
686
|
+
ref: L(s, n.ref)
|
|
687
|
+
}), j(n);
|
|
688
|
+
}
|
|
689
|
+
), Oa = h(function(e) {
|
|
690
|
+
const o = Rr(e);
|
|
691
|
+
return g(Mr, o);
|
|
692
|
+
});
|
|
693
|
+
function qe() {
|
|
694
|
+
return new Promise((r) => requestAnimationFrame(() => r()));
|
|
695
|
+
}
|
|
696
|
+
function Q(r) {
|
|
697
|
+
return Object.keys(r).some((e) => me(r[e]) ? Q(r[e]) : !!r[e]);
|
|
698
|
+
}
|
|
699
|
+
function U(r, e, o) {
|
|
700
|
+
var t;
|
|
701
|
+
const [n, ...s] = Array.isArray(e) ? e : `${e}`.split(".");
|
|
702
|
+
return n == null || !r ? o : s.length ? U(r[n], s, o) : (t = r[n]) != null ? t : o;
|
|
703
|
+
}
|
|
704
|
+
function Y(r, e, o) {
|
|
705
|
+
const [t, ...n] = Array.isArray(e) ? e : `${e}`.split(".");
|
|
706
|
+
if (t == null) return r;
|
|
707
|
+
const s = t, a = At(s), u = (a ? r || [] : r || {})[s], i = n.length && (Array.isArray(u) || me(u)) ? Y(u, n, o) : o;
|
|
708
|
+
if (a) {
|
|
709
|
+
const d = Number(s);
|
|
710
|
+
if (r && Array.isArray(r))
|
|
711
|
+
return [
|
|
712
|
+
...r.slice(0, d),
|
|
713
|
+
i,
|
|
714
|
+
...r.slice(d + 1)
|
|
715
|
+
];
|
|
716
|
+
const v = [];
|
|
717
|
+
return v[d] = i, v;
|
|
718
|
+
}
|
|
719
|
+
return K(O({}, r), { [s]: i });
|
|
720
|
+
}
|
|
721
|
+
function ye(r, e) {
|
|
722
|
+
const o = {}, t = Object.keys(r);
|
|
723
|
+
for (const n of t) {
|
|
724
|
+
const s = r[n];
|
|
725
|
+
Array.isArray(s) ? o[n] = s.map((a) => me(a) ? ye(a, e) : e) : me(s) ? o[n] = ye(s, e) : o[n] = e;
|
|
726
|
+
}
|
|
727
|
+
return o;
|
|
728
|
+
}
|
|
729
|
+
function Ft(r, e = []) {
|
|
730
|
+
return {
|
|
731
|
+
get(t, n) {
|
|
732
|
+
if (["toString", "valueOf", Symbol.toPrimitive].includes(n))
|
|
733
|
+
return () => e.join(".");
|
|
734
|
+
const s = [...e, n], a = s.join(".");
|
|
735
|
+
if (r[a])
|
|
736
|
+
return r[a];
|
|
737
|
+
const c = new Proxy(t, Ft(r, s));
|
|
738
|
+
return r[a] = c, c;
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function Vr(r) {
|
|
743
|
+
return r == null ? void 0 : r.__unstableCallbacks;
|
|
744
|
+
}
|
|
745
|
+
function Lr() {
|
|
746
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
747
|
+
return new Proxy(/* @__PURE__ */ Object.create(null), Ft(r));
|
|
748
|
+
}
|
|
749
|
+
function Or(r = {}) {
|
|
750
|
+
var e;
|
|
751
|
+
et(r, r.store);
|
|
752
|
+
const o = (e = r.store) == null ? void 0 : e.getState(), t = eo(r), n = A(
|
|
753
|
+
r.values,
|
|
754
|
+
o == null ? void 0 : o.values,
|
|
755
|
+
r.defaultValues,
|
|
756
|
+
{}
|
|
757
|
+
), s = A(
|
|
758
|
+
r.errors,
|
|
759
|
+
o == null ? void 0 : o.errors,
|
|
760
|
+
r.defaultErrors,
|
|
761
|
+
{}
|
|
762
|
+
), a = A(
|
|
763
|
+
r.touched,
|
|
764
|
+
o == null ? void 0 : o.touched,
|
|
765
|
+
r.defaultTouched,
|
|
766
|
+
{}
|
|
767
|
+
), c = K(O({}, t.getState()), {
|
|
768
|
+
values: n,
|
|
769
|
+
errors: s,
|
|
770
|
+
touched: a,
|
|
771
|
+
validating: A(o == null ? void 0 : o.validating, !1),
|
|
772
|
+
submitting: A(o == null ? void 0 : o.submitting, !1),
|
|
773
|
+
submitSucceed: A(o == null ? void 0 : o.submitSucceed, 0),
|
|
774
|
+
submitFailed: A(o == null ? void 0 : o.submitFailed, 0),
|
|
775
|
+
valid: !Q(s)
|
|
776
|
+
}), u = ue(c, t, r.store), i = Vr(r.store), d = i == null ? void 0 : i.getState(), v = {
|
|
777
|
+
validate: (d == null ? void 0 : d.validate) || [],
|
|
778
|
+
submit: (d == null ? void 0 : d.submit) || []
|
|
779
|
+
}, p = ue(v, i);
|
|
780
|
+
We(u, () => zt(p)), We(
|
|
781
|
+
u,
|
|
782
|
+
() => tt(u, ["validating", "errors"], (l) => {
|
|
783
|
+
l.validating || u.setState("valid", !Q(l.errors));
|
|
784
|
+
})
|
|
785
|
+
);
|
|
786
|
+
const f = async () => {
|
|
787
|
+
u.setState("validating", !0), u.setState("errors", {});
|
|
788
|
+
const l = p.getState().validate;
|
|
789
|
+
try {
|
|
790
|
+
for (const C of l)
|
|
791
|
+
await C(u.getState());
|
|
792
|
+
return await qe(), !Q(u.getState().errors);
|
|
793
|
+
} finally {
|
|
794
|
+
u.setState("validating", !1);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
return K(O(O({}, t), u), {
|
|
798
|
+
names: Lr(),
|
|
799
|
+
setValues: (l) => u.setState("values", l),
|
|
800
|
+
getValue: (l) => U(u.getState().values, l),
|
|
801
|
+
setValue: (l, C) => u.setState("values", (x) => {
|
|
802
|
+
const S = U(x, l), T = xe(C, S);
|
|
803
|
+
return T === S ? x : Y(x, l, T);
|
|
804
|
+
}),
|
|
805
|
+
pushValue: (l, C) => u.setState("values", (x) => {
|
|
806
|
+
const S = U(x, l, []);
|
|
807
|
+
return Y(x, l, [...S, C]);
|
|
808
|
+
}),
|
|
809
|
+
removeValue: (l, C) => u.setState("values", (x) => {
|
|
810
|
+
const S = U(x, l, []);
|
|
811
|
+
return Y(x, l, [
|
|
812
|
+
...S.slice(0, C),
|
|
813
|
+
null,
|
|
814
|
+
...S.slice(C + 1)
|
|
815
|
+
]);
|
|
816
|
+
}),
|
|
817
|
+
setErrors: (l) => u.setState("errors", l),
|
|
818
|
+
getError: (l) => U(u.getState().errors, l),
|
|
819
|
+
setError: (l, C) => u.setState("errors", (x) => {
|
|
820
|
+
const S = U(x, l), T = xe(C, S);
|
|
821
|
+
return T === S ? x : Y(x, l, T);
|
|
822
|
+
}),
|
|
823
|
+
setTouched: (l) => u.setState("touched", l),
|
|
824
|
+
getFieldTouched: (l) => !!U(u.getState().touched, l),
|
|
825
|
+
setFieldTouched: (l, C) => u.setState("touched", (x) => {
|
|
826
|
+
const S = U(x, l), T = xe(C, S);
|
|
827
|
+
return T === S ? x : Y(x, l, T);
|
|
828
|
+
}),
|
|
829
|
+
onValidate: (l) => (p.setState("validate", (C) => [...C, l]), () => {
|
|
830
|
+
p.setState(
|
|
831
|
+
"validate",
|
|
832
|
+
(C) => C.filter((x) => x !== l)
|
|
833
|
+
);
|
|
834
|
+
}),
|
|
835
|
+
validate: f,
|
|
836
|
+
onSubmit: (l) => (p.setState("submit", (C) => [...C, l]), () => {
|
|
837
|
+
p.setState(
|
|
838
|
+
"submit",
|
|
839
|
+
(C) => C.filter((x) => x !== l)
|
|
840
|
+
);
|
|
841
|
+
}),
|
|
842
|
+
submit: async () => {
|
|
843
|
+
u.setState("submitting", !0), u.setState("touched", ye(u.getState().values, !0));
|
|
844
|
+
try {
|
|
845
|
+
if (await f()) {
|
|
846
|
+
const l = p.getState().submit;
|
|
847
|
+
for (const C of l)
|
|
848
|
+
await C(u.getState());
|
|
849
|
+
if (await qe(), !Q(u.getState().errors))
|
|
850
|
+
return u.setState("submitSucceed", (C) => C + 1), !0;
|
|
851
|
+
}
|
|
852
|
+
return u.setState("submitFailed", (l) => l + 1), !1;
|
|
853
|
+
} catch (l) {
|
|
854
|
+
throw u.setState("submitFailed", (C) => C + 1), l;
|
|
855
|
+
} finally {
|
|
856
|
+
u.setState("submitting", !1);
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
reset: () => {
|
|
860
|
+
u.setState("values", n), u.setState("errors", s), u.setState("touched", a), u.setState("validating", !1), u.setState("submitting", !1), u.setState("submitSucceed", 0), u.setState("submitFailed", 0), u.setState("valid", !Q(s));
|
|
861
|
+
},
|
|
862
|
+
// @ts-expect-error Internal
|
|
863
|
+
__unstableCallbacks: p
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
function Ar(r, e, o) {
|
|
867
|
+
r = to(r, e, o), ae(r, o, "values", "setValues"), ae(r, o, "errors", "setErrors"), ae(r, o, "touched", "setTouched");
|
|
868
|
+
const t = Z(
|
|
869
|
+
(a) => r.useState(() => r.getValue(a)),
|
|
870
|
+
[r]
|
|
871
|
+
), n = Z(
|
|
872
|
+
(a) => {
|
|
873
|
+
a = _(a);
|
|
874
|
+
const c = r.useState("items");
|
|
875
|
+
M(() => r.onValidate(a), [c, a]);
|
|
876
|
+
},
|
|
877
|
+
[r]
|
|
878
|
+
), s = Z(
|
|
879
|
+
(a) => {
|
|
880
|
+
a = _(a);
|
|
881
|
+
const c = r.useState("items");
|
|
882
|
+
M(() => r.onSubmit(a), [c, a]);
|
|
883
|
+
},
|
|
884
|
+
[r]
|
|
885
|
+
);
|
|
886
|
+
return ee(
|
|
887
|
+
() => N(m({}, r), {
|
|
888
|
+
useValue: t,
|
|
889
|
+
useValidate: n,
|
|
890
|
+
useSubmit: s
|
|
891
|
+
}),
|
|
892
|
+
[]
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
function Hr(r = {}) {
|
|
896
|
+
const [e, o] = pe(Or, r);
|
|
897
|
+
return Ar(e, o, r);
|
|
898
|
+
}
|
|
899
|
+
var He = De(
|
|
900
|
+
[rt],
|
|
901
|
+
[ot]
|
|
902
|
+
), H = He.useContext, Gr = He.ContextProvider, Br = He.ScopedContextProvider, Tt = "form";
|
|
903
|
+
function Wr(r, e) {
|
|
904
|
+
return e.some(
|
|
905
|
+
(o) => o.type === "field" && o.element === r
|
|
906
|
+
);
|
|
907
|
+
}
|
|
908
|
+
function jr(r) {
|
|
909
|
+
return r.find(
|
|
910
|
+
(e) => {
|
|
911
|
+
var o;
|
|
912
|
+
return e.type === "field" && ((o = e.element) == null ? void 0 : o.getAttribute("aria-invalid")) === "true";
|
|
913
|
+
}
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
var Ur = b(function(e) {
|
|
917
|
+
var o = e, {
|
|
918
|
+
store: t,
|
|
919
|
+
validateOnChange: n = !0,
|
|
920
|
+
validateOnBlur: s = !0,
|
|
921
|
+
resetOnUnmount: a = !1,
|
|
922
|
+
resetOnSubmit: c = !0,
|
|
923
|
+
autoFocusOnSubmit: u = !0
|
|
924
|
+
} = o, i = k(o, [
|
|
925
|
+
"store",
|
|
926
|
+
"validateOnChange",
|
|
927
|
+
"validateOnBlur",
|
|
928
|
+
"resetOnUnmount",
|
|
929
|
+
"resetOnSubmit",
|
|
930
|
+
"autoFocusOnSubmit"
|
|
931
|
+
]);
|
|
932
|
+
const d = H();
|
|
933
|
+
t = t || d, w(
|
|
934
|
+
t,
|
|
935
|
+
process.env.NODE_ENV !== "production" && "Form must receive a `store` prop or be wrapped in a FormProvider component."
|
|
936
|
+
);
|
|
937
|
+
const v = B(null), p = t.useState("values"), f = t.useState("submitSucceed"), l = t.useState("submitFailed"), C = t.useState("items"), x = we(p);
|
|
938
|
+
M(
|
|
939
|
+
() => a ? t == null ? void 0 : t.reset : void 0,
|
|
940
|
+
[a, t]
|
|
941
|
+
), Ye(() => {
|
|
942
|
+
n && p !== x && (t == null || t.validate());
|
|
943
|
+
}, [n, p, x, t]), M(() => {
|
|
944
|
+
c && f && (t == null || t.reset());
|
|
945
|
+
}, [c, f, t]);
|
|
946
|
+
const [S, T] = ce(!1);
|
|
947
|
+
M(() => {
|
|
948
|
+
if (!S || !l) return;
|
|
949
|
+
const $ = jr(C), G = $ == null ? void 0 : $.element;
|
|
950
|
+
G && (T(!1), G.focus(), se(G) && G.select());
|
|
951
|
+
}, [u, l, C]);
|
|
952
|
+
const P = i.onSubmit, I = _(($) => {
|
|
953
|
+
P == null || P($), !$.defaultPrevented && ($.preventDefault(), t == null || t.submit(), u && T(!0));
|
|
954
|
+
}), F = i.onBlur, V = _(($) => {
|
|
955
|
+
F == null || F($), !$.defaultPrevented && s && t && Wr($.target, t.getState().items) && t.validate();
|
|
956
|
+
}), E = i.onReset, q = _(($) => {
|
|
957
|
+
E == null || E($), !$.defaultPrevented && ($.preventDefault(), t == null || t.reset());
|
|
958
|
+
});
|
|
959
|
+
i = X(
|
|
960
|
+
i,
|
|
961
|
+
($) => /* @__PURE__ */ D(Br, { value: t, children: $ }),
|
|
962
|
+
[t]
|
|
963
|
+
);
|
|
964
|
+
const y = ie(v, Tt);
|
|
965
|
+
return i = N(m({
|
|
966
|
+
role: y !== "form" ? "form" : void 0,
|
|
967
|
+
noValidate: !0
|
|
968
|
+
}, i), {
|
|
969
|
+
ref: L(v, i.ref),
|
|
970
|
+
onSubmit: I,
|
|
971
|
+
onBlur: V,
|
|
972
|
+
onReset: q
|
|
973
|
+
}), i;
|
|
974
|
+
}), Aa = h(function(e) {
|
|
975
|
+
const o = Ur(e);
|
|
976
|
+
return g(Tt, o);
|
|
977
|
+
});
|
|
978
|
+
function Ha(r = {}) {
|
|
979
|
+
const e = Hr(r);
|
|
980
|
+
return /* @__PURE__ */ D(Gr, { value: e, children: r.children });
|
|
981
|
+
}
|
|
982
|
+
var qr = "input";
|
|
983
|
+
function zr(r, e) {
|
|
984
|
+
const o = r.current;
|
|
985
|
+
return o ? o.name === e ? o : o.form ? o.form.elements.namedItem(e) : Bt(o).getElementsByName(e)[0] : null;
|
|
986
|
+
}
|
|
987
|
+
function Se(r, e, o) {
|
|
988
|
+
return r.useState(
|
|
989
|
+
(t) => t.items.find((n) => n.type === o && n.name === e)
|
|
990
|
+
);
|
|
991
|
+
}
|
|
992
|
+
var de = b(
|
|
993
|
+
function(e) {
|
|
994
|
+
var o = e, {
|
|
995
|
+
store: t,
|
|
996
|
+
name: n,
|
|
997
|
+
getItem: s,
|
|
998
|
+
touchOnBlur: a = !0
|
|
999
|
+
} = o, c = k(o, [
|
|
1000
|
+
"store",
|
|
1001
|
+
"name",
|
|
1002
|
+
"getItem",
|
|
1003
|
+
"touchOnBlur"
|
|
1004
|
+
]);
|
|
1005
|
+
const u = H();
|
|
1006
|
+
t = t || u, w(
|
|
1007
|
+
t,
|
|
1008
|
+
process.env.NODE_ENV !== "production" && "FormControl must be wrapped in a Form component."
|
|
1009
|
+
);
|
|
1010
|
+
const i = `${n}`, d = W(c.id), v = B(null);
|
|
1011
|
+
t.useValidate(async () => {
|
|
1012
|
+
const F = zr(v, i);
|
|
1013
|
+
F && (await Promise.resolve(), "validity" in F && !F.validity.valid && (t == null || t.setError(i, F.validationMessage)));
|
|
1014
|
+
});
|
|
1015
|
+
const p = Z(
|
|
1016
|
+
(F) => {
|
|
1017
|
+
const V = N(m({}, F), { id: d || F.id, name: i, type: "field" });
|
|
1018
|
+
return s ? s(V) : V;
|
|
1019
|
+
},
|
|
1020
|
+
[d, i, s]
|
|
1021
|
+
), f = c.onBlur, l = Ht(a), C = _((F) => {
|
|
1022
|
+
f == null || f(F), !F.defaultPrevented && l(F) && (t == null || t.setFieldTouched(i, !0));
|
|
1023
|
+
}), x = Se(t, i, "label"), S = Se(t, i, "error"), T = Se(t, i, "description"), P = Gt(
|
|
1024
|
+
S == null ? void 0 : S.id,
|
|
1025
|
+
T == null ? void 0 : T.id,
|
|
1026
|
+
c["aria-describedby"]
|
|
1027
|
+
), I = t.useState(
|
|
1028
|
+
() => !!(t != null && t.getError(i)) && t.getFieldTouched(i)
|
|
1029
|
+
);
|
|
1030
|
+
return c = N(m({
|
|
1031
|
+
id: d,
|
|
1032
|
+
"aria-labelledby": x == null ? void 0 : x.id,
|
|
1033
|
+
"aria-invalid": I
|
|
1034
|
+
}, c), {
|
|
1035
|
+
"aria-describedby": P || void 0,
|
|
1036
|
+
ref: L(v, c.ref),
|
|
1037
|
+
onBlur: C
|
|
1038
|
+
}), c = le(N(m({ store: t }, c), { name: i, getItem: p })), c;
|
|
1039
|
+
}
|
|
1040
|
+
), Ga = R(
|
|
1041
|
+
h(function(e) {
|
|
1042
|
+
const o = de(e);
|
|
1043
|
+
return g(qr, o);
|
|
1044
|
+
})
|
|
1045
|
+
);
|
|
1046
|
+
function Kr(r = {}) {
|
|
1047
|
+
var e;
|
|
1048
|
+
et(r, r.store);
|
|
1049
|
+
const o = (e = r.store) == null ? void 0 : e.getState(), t = {
|
|
1050
|
+
value: A(
|
|
1051
|
+
r.value,
|
|
1052
|
+
o == null ? void 0 : o.value,
|
|
1053
|
+
r.defaultValue,
|
|
1054
|
+
!1
|
|
1055
|
+
)
|
|
1056
|
+
}, n = ue(t, r.store);
|
|
1057
|
+
return K(O({}, n), {
|
|
1058
|
+
setValue: (s) => n.setState("value", s)
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
function Zr(r, e, o) {
|
|
1062
|
+
return Ye(e, [o.store]), ae(r, o, "value", "setValue"), r;
|
|
1063
|
+
}
|
|
1064
|
+
function Ge(r = {}) {
|
|
1065
|
+
const [e, o] = pe(Kr, r);
|
|
1066
|
+
return Zr(e, o, r);
|
|
1067
|
+
}
|
|
1068
|
+
var Nt = De(), Xr = Nt.useContext, Jr = Nt.ContextProvider, yt = "input";
|
|
1069
|
+
function ze(r, e) {
|
|
1070
|
+
e ? r.indeterminate = !0 : r.indeterminate && (r.indeterminate = !1);
|
|
1071
|
+
}
|
|
1072
|
+
function Qr(r, e) {
|
|
1073
|
+
return r === "input" && (!e || e === "checkbox");
|
|
1074
|
+
}
|
|
1075
|
+
function Ke(r) {
|
|
1076
|
+
return Array.isArray(r) ? r.toString() : r;
|
|
1077
|
+
}
|
|
1078
|
+
var Be = b(
|
|
1079
|
+
function(e) {
|
|
1080
|
+
var o = e, {
|
|
1081
|
+
store: t,
|
|
1082
|
+
name: n,
|
|
1083
|
+
value: s,
|
|
1084
|
+
checked: a,
|
|
1085
|
+
defaultChecked: c
|
|
1086
|
+
} = o, u = k(o, [
|
|
1087
|
+
"store",
|
|
1088
|
+
"name",
|
|
1089
|
+
"value",
|
|
1090
|
+
"checked",
|
|
1091
|
+
"defaultChecked"
|
|
1092
|
+
]);
|
|
1093
|
+
const i = Xr();
|
|
1094
|
+
t = t || i;
|
|
1095
|
+
const [d, v] = ce(c ?? !1), p = oe(t, (y) => {
|
|
1096
|
+
if (a !== void 0) return a;
|
|
1097
|
+
if ((y == null ? void 0 : y.value) === void 0) return d;
|
|
1098
|
+
if (s != null) {
|
|
1099
|
+
if (Array.isArray(y.value)) {
|
|
1100
|
+
const $ = Ke(s);
|
|
1101
|
+
return y.value.includes($);
|
|
1102
|
+
}
|
|
1103
|
+
return y.value === s;
|
|
1104
|
+
}
|
|
1105
|
+
return Array.isArray(y.value) ? !1 : typeof y.value == "boolean" ? y.value : !1;
|
|
1106
|
+
}), f = B(null), l = ie(f, yt), C = Qr(l, u.type), x = p ? p === "mixed" : void 0, S = p === "mixed" ? !1 : p, T = Je(u), [P, I] = Qe();
|
|
1107
|
+
M(() => {
|
|
1108
|
+
const y = f.current;
|
|
1109
|
+
y && (ze(y, x), !C && (y.checked = S, n !== void 0 && (y.name = n), s !== void 0 && (y.value = `${s}`)));
|
|
1110
|
+
}, [P, x, C, S, n, s]);
|
|
1111
|
+
const F = u.onChange, V = _((y) => {
|
|
1112
|
+
if (T) {
|
|
1113
|
+
y.stopPropagation(), y.preventDefault();
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
if (ze(y.currentTarget, x), C || (y.currentTarget.checked = !y.currentTarget.checked, I()), F == null || F(y), y.defaultPrevented) return;
|
|
1117
|
+
const $ = y.currentTarget.checked;
|
|
1118
|
+
v($), t == null || t.setValue((G) => {
|
|
1119
|
+
if (s == null) return $;
|
|
1120
|
+
const re = Ke(s);
|
|
1121
|
+
return Array.isArray(G) ? $ ? G.includes(re) ? G : [...G, re] : G.filter((It) => It !== re) : G === re ? !1 : re;
|
|
1122
|
+
});
|
|
1123
|
+
}), E = u.onClick, q = _((y) => {
|
|
1124
|
+
E == null || E(y), !y.defaultPrevented && (C || V(y));
|
|
1125
|
+
});
|
|
1126
|
+
return u = X(
|
|
1127
|
+
u,
|
|
1128
|
+
(y) => /* @__PURE__ */ D($t.Provider, { value: S, children: y }),
|
|
1129
|
+
[S]
|
|
1130
|
+
), u = N(m({
|
|
1131
|
+
role: C ? void 0 : "checkbox",
|
|
1132
|
+
type: C ? "checkbox" : void 0,
|
|
1133
|
+
"aria-checked": p
|
|
1134
|
+
}, u), {
|
|
1135
|
+
ref: L(f, u.ref),
|
|
1136
|
+
onChange: V,
|
|
1137
|
+
onClick: q
|
|
1138
|
+
}), u = qt(m({ clickOnEnter: !C }, u)), j(m({
|
|
1139
|
+
name: C ? n : void 0,
|
|
1140
|
+
value: C ? s : void 0,
|
|
1141
|
+
checked: S
|
|
1142
|
+
}, u));
|
|
1143
|
+
}
|
|
1144
|
+
), Ba = h(function(e) {
|
|
1145
|
+
const o = Be(e);
|
|
1146
|
+
return g(yt, o);
|
|
1147
|
+
}), Yr = "input", en = b(
|
|
1148
|
+
function(e) {
|
|
1149
|
+
var o = e, {
|
|
1150
|
+
store: t,
|
|
1151
|
+
name: n,
|
|
1152
|
+
value: s,
|
|
1153
|
+
checked: a,
|
|
1154
|
+
defaultChecked: c
|
|
1155
|
+
} = o, u = k(o, [
|
|
1156
|
+
"store",
|
|
1157
|
+
"name",
|
|
1158
|
+
"value",
|
|
1159
|
+
"checked",
|
|
1160
|
+
"defaultChecked"
|
|
1161
|
+
]);
|
|
1162
|
+
const i = H();
|
|
1163
|
+
t = t || i, w(
|
|
1164
|
+
t,
|
|
1165
|
+
process.env.NODE_ENV !== "production" && "FormCheckbox must be wrapped in a Form component."
|
|
1166
|
+
);
|
|
1167
|
+
const d = `${n}`, v = Ge({
|
|
1168
|
+
value: t.useValue(d),
|
|
1169
|
+
setValue: (p) => t == null ? void 0 : t.setValue(d, p)
|
|
1170
|
+
});
|
|
1171
|
+
return u = Be(m({ store: v, value: s, checked: a }, u)), u = de(m({
|
|
1172
|
+
store: t,
|
|
1173
|
+
name: d,
|
|
1174
|
+
"aria-labelledby": void 0
|
|
1175
|
+
}, u)), u;
|
|
1176
|
+
}
|
|
1177
|
+
), Wa = R(
|
|
1178
|
+
h(function(e) {
|
|
1179
|
+
const o = en(e);
|
|
1180
|
+
return g(Yr, o);
|
|
1181
|
+
})
|
|
1182
|
+
), tn = "div", on = b(
|
|
1183
|
+
function(e) {
|
|
1184
|
+
var o = e, {
|
|
1185
|
+
store: t,
|
|
1186
|
+
name: n,
|
|
1187
|
+
getItem: s
|
|
1188
|
+
} = o, a = k(o, [
|
|
1189
|
+
"store",
|
|
1190
|
+
"name",
|
|
1191
|
+
"getItem"
|
|
1192
|
+
]);
|
|
1193
|
+
const c = H();
|
|
1194
|
+
t = t || c, w(
|
|
1195
|
+
t,
|
|
1196
|
+
process.env.NODE_ENV !== "production" && "FormDescription must be wrapped in a Form component."
|
|
1197
|
+
);
|
|
1198
|
+
const u = W(a.id), i = B(null), d = `${n}`, v = Z(
|
|
1199
|
+
(p) => {
|
|
1200
|
+
const f = N(m({}, p), {
|
|
1201
|
+
id: u || p.id,
|
|
1202
|
+
name: d,
|
|
1203
|
+
type: "description"
|
|
1204
|
+
});
|
|
1205
|
+
return s ? s(f) : f;
|
|
1206
|
+
},
|
|
1207
|
+
[u, d, s]
|
|
1208
|
+
);
|
|
1209
|
+
return a = N(m({
|
|
1210
|
+
id: u
|
|
1211
|
+
}, a), {
|
|
1212
|
+
ref: L(i, a.ref)
|
|
1213
|
+
}), a = le(N(m({ store: t }, a), { getItem: v })), a;
|
|
1214
|
+
}
|
|
1215
|
+
), ja = R(
|
|
1216
|
+
h(function(e) {
|
|
1217
|
+
const o = on(e);
|
|
1218
|
+
return g(tn, o);
|
|
1219
|
+
})
|
|
1220
|
+
), rn = "div", nn = b(
|
|
1221
|
+
function(e) {
|
|
1222
|
+
var o = e, {
|
|
1223
|
+
store: t,
|
|
1224
|
+
name: n,
|
|
1225
|
+
getItem: s
|
|
1226
|
+
} = o, a = k(o, [
|
|
1227
|
+
"store",
|
|
1228
|
+
"name",
|
|
1229
|
+
"getItem"
|
|
1230
|
+
]);
|
|
1231
|
+
const c = H();
|
|
1232
|
+
t = t || c, w(
|
|
1233
|
+
t,
|
|
1234
|
+
process.env.NODE_ENV !== "production" && "FormError must be wrapped in a Form component."
|
|
1235
|
+
);
|
|
1236
|
+
const u = W(a.id), i = B(null), d = `${n}`, v = Z(
|
|
1237
|
+
(f) => {
|
|
1238
|
+
const l = N(m({}, f), { id: u || f.id, name: d, type: "error" });
|
|
1239
|
+
return s ? s(l) : l;
|
|
1240
|
+
},
|
|
1241
|
+
[u, d, s]
|
|
1242
|
+
), p = t.useState(() => {
|
|
1243
|
+
const f = t == null ? void 0 : t.getError(d);
|
|
1244
|
+
if (f != null && t != null && t.getFieldTouched(d))
|
|
1245
|
+
return f;
|
|
1246
|
+
});
|
|
1247
|
+
return a = N(m({
|
|
1248
|
+
id: u,
|
|
1249
|
+
role: "alert",
|
|
1250
|
+
children: p
|
|
1251
|
+
}, a), {
|
|
1252
|
+
ref: L(i, a.ref)
|
|
1253
|
+
}), a = le(N(m({ store: t }, a), { getItem: v })), a;
|
|
1254
|
+
}
|
|
1255
|
+
), Ua = R(
|
|
1256
|
+
h(function(e) {
|
|
1257
|
+
const o = nn(e);
|
|
1258
|
+
return g(rn, o);
|
|
1259
|
+
})
|
|
1260
|
+
), sn = "input", an = b(
|
|
1261
|
+
function(e) {
|
|
1262
|
+
return de(e);
|
|
1263
|
+
}
|
|
1264
|
+
), qa = R(
|
|
1265
|
+
h(function(e) {
|
|
1266
|
+
const o = an(e);
|
|
1267
|
+
return g(sn, o);
|
|
1268
|
+
})
|
|
1269
|
+
), un = "div", cn = b(
|
|
1270
|
+
function(e) {
|
|
1271
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1272
|
+
return n = so(n), n;
|
|
1273
|
+
}
|
|
1274
|
+
), za = h(function(e) {
|
|
1275
|
+
const o = cn(e);
|
|
1276
|
+
return g(un, o);
|
|
1277
|
+
}), ln = "div", Dt = b(
|
|
1278
|
+
function(e) {
|
|
1279
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1280
|
+
return n = ao(n), n;
|
|
1281
|
+
}
|
|
1282
|
+
), Ka = h(function(e) {
|
|
1283
|
+
const o = Dt(e);
|
|
1284
|
+
return g(ln, o);
|
|
1285
|
+
}), dn = "input", mn = b(
|
|
1286
|
+
function(e) {
|
|
1287
|
+
var o = e, { store: t, name: n } = o, s = k(o, ["store", "name"]);
|
|
1288
|
+
const a = H();
|
|
1289
|
+
t = t || a, w(
|
|
1290
|
+
t,
|
|
1291
|
+
process.env.NODE_ENV !== "production" && "FormInput must be wrapped in a Form component."
|
|
1292
|
+
);
|
|
1293
|
+
const c = `${n}`, u = s.onChange, i = _((v) => {
|
|
1294
|
+
u == null || u(v), !v.defaultPrevented && (t == null || t.setValue(c, v.target.value));
|
|
1295
|
+
}), d = t.useValue(c);
|
|
1296
|
+
return s = N(m({
|
|
1297
|
+
value: d
|
|
1298
|
+
}, s), {
|
|
1299
|
+
onChange: i
|
|
1300
|
+
}), s = Co(s), s = de(m({ store: t, name: c }, s)), s;
|
|
1301
|
+
}
|
|
1302
|
+
), Za = R(
|
|
1303
|
+
h(function(e) {
|
|
1304
|
+
const o = mn(e);
|
|
1305
|
+
return g(dn, o);
|
|
1306
|
+
})
|
|
1307
|
+
), vn = "label";
|
|
1308
|
+
function pn(r) {
|
|
1309
|
+
return r === "input" || r === "textarea" || r === "select" || r === "meter" || r === "progress";
|
|
1310
|
+
}
|
|
1311
|
+
var fn = b(
|
|
1312
|
+
function(e) {
|
|
1313
|
+
var o = e, {
|
|
1314
|
+
store: t,
|
|
1315
|
+
name: n,
|
|
1316
|
+
getItem: s
|
|
1317
|
+
} = o, a = k(o, [
|
|
1318
|
+
"store",
|
|
1319
|
+
"name",
|
|
1320
|
+
"getItem"
|
|
1321
|
+
]);
|
|
1322
|
+
const c = H();
|
|
1323
|
+
t = t || c, w(
|
|
1324
|
+
t,
|
|
1325
|
+
process.env.NODE_ENV !== "production" && "FormLabel must be wrapped in a Form component."
|
|
1326
|
+
);
|
|
1327
|
+
const u = W(a.id), i = B(null), d = `${n}`, v = Z(
|
|
1328
|
+
(S) => {
|
|
1329
|
+
const T = N(m({}, S), { id: u || S.id, name: d, type: "label" });
|
|
1330
|
+
return s ? s(T) : T;
|
|
1331
|
+
},
|
|
1332
|
+
[u, d, s]
|
|
1333
|
+
), p = t.useState(
|
|
1334
|
+
(S) => S.items.find((T) => T.type === "field" && T.name === d)
|
|
1335
|
+
), f = ie(p == null ? void 0 : p.element, "input"), l = pn(f), C = a.onClick, x = _((S) => {
|
|
1336
|
+
if (C == null || C(S), S.defaultPrevented || l) return;
|
|
1337
|
+
const T = p == null ? void 0 : p.element;
|
|
1338
|
+
T && queueMicrotask(() => {
|
|
1339
|
+
const P = Me(T, !0, !0);
|
|
1340
|
+
P == null || P.focus(), (P == null ? void 0 : P.getAttribute("role")) !== "combobox" && (P == null || P.click());
|
|
1341
|
+
});
|
|
1342
|
+
});
|
|
1343
|
+
return a = N(m({
|
|
1344
|
+
id: u,
|
|
1345
|
+
render: l ? /* @__PURE__ */ D("label", {}) : /* @__PURE__ */ D("span", {}),
|
|
1346
|
+
htmlFor: l ? p == null ? void 0 : p.id : void 0
|
|
1347
|
+
}, a), {
|
|
1348
|
+
ref: L(i, a.ref),
|
|
1349
|
+
onClick: x
|
|
1350
|
+
}), l || (a = N(m({}, a), {
|
|
1351
|
+
style: m({
|
|
1352
|
+
cursor: "default"
|
|
1353
|
+
}, a.style)
|
|
1354
|
+
})), a = le(N(m({ store: t }, a), { getItem: v })), a;
|
|
1355
|
+
}
|
|
1356
|
+
), Xa = R(
|
|
1357
|
+
h(function(e) {
|
|
1358
|
+
const o = fn(e);
|
|
1359
|
+
return g(vn, o);
|
|
1360
|
+
})
|
|
1361
|
+
), bn = "button";
|
|
1362
|
+
function hn(r, e) {
|
|
1363
|
+
if (!r) return [];
|
|
1364
|
+
const o = [];
|
|
1365
|
+
for (const t of r) {
|
|
1366
|
+
if (t.type !== "field" || !t.name.startsWith(e)) continue;
|
|
1367
|
+
const n = t.name.replace(/(\.\d+)\..+$/, "$1"), s = new RegExp(`^${n}`);
|
|
1368
|
+
o.some((a) => s.test(a.name)) || o.push(t);
|
|
1369
|
+
}
|
|
1370
|
+
return o;
|
|
1371
|
+
}
|
|
1372
|
+
var gn = b(
|
|
1373
|
+
function(e) {
|
|
1374
|
+
var o = e, {
|
|
1375
|
+
store: t,
|
|
1376
|
+
value: n,
|
|
1377
|
+
name: s,
|
|
1378
|
+
getItem: a,
|
|
1379
|
+
autoFocusOnClick: c = !0
|
|
1380
|
+
} = o, u = k(o, [
|
|
1381
|
+
"store",
|
|
1382
|
+
"value",
|
|
1383
|
+
"name",
|
|
1384
|
+
"getItem",
|
|
1385
|
+
"autoFocusOnClick"
|
|
1386
|
+
]);
|
|
1387
|
+
const i = H();
|
|
1388
|
+
t = t || i, w(
|
|
1389
|
+
t,
|
|
1390
|
+
process.env.NODE_ENV !== "production" && "FormPush must be wrapped in a Form component."
|
|
1391
|
+
);
|
|
1392
|
+
const d = `${s}`, [v, p] = ce(!1);
|
|
1393
|
+
M(() => {
|
|
1394
|
+
var x;
|
|
1395
|
+
if (!v) return;
|
|
1396
|
+
const S = hn(t == null ? void 0 : t.getState().items, d), T = (x = S == null ? void 0 : S[S.length - 1]) == null ? void 0 : x.element;
|
|
1397
|
+
T && (T.focus(), p(!1));
|
|
1398
|
+
}, [t, v, d]);
|
|
1399
|
+
const f = Z(
|
|
1400
|
+
(x) => {
|
|
1401
|
+
const S = N(m({}, x), { type: "button", name: d });
|
|
1402
|
+
return a ? a(S) : S;
|
|
1403
|
+
},
|
|
1404
|
+
[d, a]
|
|
1405
|
+
), l = u.onClick, C = _((x) => {
|
|
1406
|
+
l == null || l(x), !x.defaultPrevented && (t == null || t.pushValue(d, n), c && p(!0));
|
|
1407
|
+
});
|
|
1408
|
+
return u = N(m({}, u), {
|
|
1409
|
+
onClick: C
|
|
1410
|
+
}), u = te(u), u = le(N(m({ store: t }, u), { getItem: f })), u;
|
|
1411
|
+
}
|
|
1412
|
+
), Ja = h(function(e) {
|
|
1413
|
+
const o = gn(e);
|
|
1414
|
+
return g(bn, o);
|
|
1415
|
+
}), Cn = "div", xn = b(
|
|
1416
|
+
function(e) {
|
|
1417
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1418
|
+
return n = m({ role: "radiogroup" }, n), n = Dt(n), n;
|
|
1419
|
+
}
|
|
1420
|
+
), Qa = h(function(e) {
|
|
1421
|
+
const o = xn(e);
|
|
1422
|
+
return g(Cn, o);
|
|
1423
|
+
}), Pn = "input", Sn = b(
|
|
1424
|
+
function(e) {
|
|
1425
|
+
var o = e, { store: t, name: n, value: s } = o, a = k(o, ["store", "name", "value"]);
|
|
1426
|
+
const c = H();
|
|
1427
|
+
t = t || c, w(
|
|
1428
|
+
t,
|
|
1429
|
+
process.env.NODE_ENV !== "production" && "FormRadio must be wrapped in a Form component."
|
|
1430
|
+
);
|
|
1431
|
+
const u = `${n}`, i = a.onChange, d = _((f) => {
|
|
1432
|
+
i == null || i(f), !f.defaultPrevented && (t == null || t.setValue(u, s));
|
|
1433
|
+
}), v = a.checked, p = t.useState(
|
|
1434
|
+
() => v ?? (t == null ? void 0 : t.getValue(u)) === s
|
|
1435
|
+
);
|
|
1436
|
+
return a = N(m({}, a), {
|
|
1437
|
+
checked: p,
|
|
1438
|
+
onChange: d
|
|
1439
|
+
}), a = Ae(m({ value: s }, a)), a = de(m({
|
|
1440
|
+
store: t,
|
|
1441
|
+
name: u,
|
|
1442
|
+
"aria-labelledby": void 0
|
|
1443
|
+
}, a)), a;
|
|
1444
|
+
}
|
|
1445
|
+
), Ya = R(
|
|
1446
|
+
h(function(e) {
|
|
1447
|
+
const o = Sn(e);
|
|
1448
|
+
return g(Pn, o);
|
|
1449
|
+
})
|
|
1450
|
+
), kn = "button";
|
|
1451
|
+
function Fn(r, e, o) {
|
|
1452
|
+
const t = r == null ? void 0 : r.filter(
|
|
1453
|
+
(a) => a.type === "field" && a.name.startsWith(e)
|
|
1454
|
+
), n = new RegExp(`^${e}\\.(\\d+)`), s = t == null ? void 0 : t.find((a) => {
|
|
1455
|
+
const c = a.name.replace(n, "$1");
|
|
1456
|
+
return Number.parseInt(c) > o;
|
|
1457
|
+
});
|
|
1458
|
+
return s || (t == null ? void 0 : t.reverse().find((a) => {
|
|
1459
|
+
const c = a.name.replace(n, "$1");
|
|
1460
|
+
return Number.parseInt(c) < o;
|
|
1461
|
+
}));
|
|
1462
|
+
}
|
|
1463
|
+
function Tn(r, e) {
|
|
1464
|
+
return r == null ? void 0 : r.find((o) => o.type === "button" && o.name === e);
|
|
1465
|
+
}
|
|
1466
|
+
var Nn = b(
|
|
1467
|
+
function(e) {
|
|
1468
|
+
var o = e, {
|
|
1469
|
+
store: t,
|
|
1470
|
+
name: n,
|
|
1471
|
+
index: s,
|
|
1472
|
+
autoFocusOnClick: a = !0
|
|
1473
|
+
} = o, c = k(o, [
|
|
1474
|
+
"store",
|
|
1475
|
+
"name",
|
|
1476
|
+
"index",
|
|
1477
|
+
"autoFocusOnClick"
|
|
1478
|
+
]);
|
|
1479
|
+
const u = H();
|
|
1480
|
+
t = t || u, w(
|
|
1481
|
+
t,
|
|
1482
|
+
process.env.NODE_ENV !== "production" && "FormRemove must be wrapped in a Form component."
|
|
1483
|
+
);
|
|
1484
|
+
const i = `${n}`, d = c.onClick, v = _((p) => {
|
|
1485
|
+
var f;
|
|
1486
|
+
if (d == null || d(p), p.defaultPrevented || !t || (t.removeValue(i, s), !a)) return;
|
|
1487
|
+
const { items: l } = t.getState(), C = Fn(l, i, s), x = C == null ? void 0 : C.element;
|
|
1488
|
+
if (x)
|
|
1489
|
+
x.focus(), se(x) && x.select();
|
|
1490
|
+
else {
|
|
1491
|
+
const S = Tn(l, i);
|
|
1492
|
+
(f = S == null ? void 0 : S.element) == null || f.focus();
|
|
1493
|
+
}
|
|
1494
|
+
});
|
|
1495
|
+
return c = N(m({}, c), {
|
|
1496
|
+
onClick: v
|
|
1497
|
+
}), c = te(c), c;
|
|
1498
|
+
}
|
|
1499
|
+
), eu = h(function(e) {
|
|
1500
|
+
const o = Nn(e);
|
|
1501
|
+
return g(kn, o);
|
|
1502
|
+
}), yn = "button", Dn = b(
|
|
1503
|
+
function(e) {
|
|
1504
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1505
|
+
const s = H();
|
|
1506
|
+
return t = t || s, w(
|
|
1507
|
+
t,
|
|
1508
|
+
process.env.NODE_ENV !== "production" && "FormReset must be wrapped in a Form component."
|
|
1509
|
+
), n = m({
|
|
1510
|
+
type: "reset",
|
|
1511
|
+
disabled: t.useState("submitting")
|
|
1512
|
+
}, n), n = te(n), n;
|
|
1513
|
+
}
|
|
1514
|
+
), tu = h(function(e) {
|
|
1515
|
+
const o = Dn(e);
|
|
1516
|
+
return g(yn, o);
|
|
1517
|
+
}), En = "button", wn = b(
|
|
1518
|
+
function(e) {
|
|
1519
|
+
var o = e, { store: t, accessibleWhenDisabled: n = !0 } = o, s = k(o, ["store", "accessibleWhenDisabled"]);
|
|
1520
|
+
const a = H();
|
|
1521
|
+
return t = t || a, w(
|
|
1522
|
+
t,
|
|
1523
|
+
process.env.NODE_ENV !== "production" && "FormSubmit must be wrapped in a Form component."
|
|
1524
|
+
), s = m({
|
|
1525
|
+
type: "submit",
|
|
1526
|
+
disabled: t.useState("submitting")
|
|
1527
|
+
}, s), s = te(N(m({}, s), { accessibleWhenDisabled: n })), s;
|
|
1528
|
+
}
|
|
1529
|
+
), ou = h(function(e) {
|
|
1530
|
+
const o = wn(e);
|
|
1531
|
+
return g(En, o);
|
|
1532
|
+
});
|
|
1533
|
+
function ru(r = {}) {
|
|
1534
|
+
const e = xo(r);
|
|
1535
|
+
return /* @__PURE__ */ D(ko, { value: e, children: r.children });
|
|
1536
|
+
}
|
|
1537
|
+
var _n = "div", In = b(
|
|
1538
|
+
function(e) {
|
|
1539
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1540
|
+
const s = Fo();
|
|
1541
|
+
return t = t || s, n = he(m({ store: t }, n)), n;
|
|
1542
|
+
}
|
|
1543
|
+
), nu = h(function(e) {
|
|
1544
|
+
const o = In(e);
|
|
1545
|
+
return g(_n, o);
|
|
1546
|
+
}), $n = "p", Et = b(function(e) {
|
|
1547
|
+
return e = Ct(e), e;
|
|
1548
|
+
}), su = h(function(e) {
|
|
1549
|
+
const o = Et(e);
|
|
1550
|
+
return g($n, o);
|
|
1551
|
+
}), Mn = "button", Rn = b(function(e) {
|
|
1552
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1553
|
+
const s = To();
|
|
1554
|
+
t = t || s, w(
|
|
1555
|
+
t,
|
|
1556
|
+
process.env.NODE_ENV !== "production" && "HovercardDisclosure must receive a `store` prop or be wrapped in a HovercardProvider component."
|
|
1557
|
+
);
|
|
1558
|
+
const [a, c] = ce(!1);
|
|
1559
|
+
M(() => a ? Wt("focusout", (C) => {
|
|
1560
|
+
if (!t) return;
|
|
1561
|
+
const x = C.relatedTarget;
|
|
1562
|
+
if (x) {
|
|
1563
|
+
const {
|
|
1564
|
+
anchorElement: S,
|
|
1565
|
+
popoverElement: T,
|
|
1566
|
+
disclosureElement: P
|
|
1567
|
+
} = t.getState();
|
|
1568
|
+
if (S && Pe(S, x) || T && Pe(T, x) || P && Pe(P, x) || x.hasAttribute("data-focus-trap")) return;
|
|
1569
|
+
}
|
|
1570
|
+
c(!1);
|
|
1571
|
+
}, !0) : void 0, [a, t]), M(() => tt(t, ["anchorElement"], (l) => {
|
|
1572
|
+
const C = l.anchorElement;
|
|
1573
|
+
if (!C) return;
|
|
1574
|
+
const x = new MutationObserver(() => {
|
|
1575
|
+
C.hasAttribute("data-focus-visible") && c(!0);
|
|
1576
|
+
});
|
|
1577
|
+
return x.observe(C, { attributeFilter: ["data-focus-visible"] }), () => x.disconnect();
|
|
1578
|
+
}), [t]);
|
|
1579
|
+
const u = n.onClick, i = _((l) => {
|
|
1580
|
+
u == null || u(l), !l.defaultPrevented && (t == null || t.setAutoFocusOnShow(!0));
|
|
1581
|
+
}), d = n.onFocus, v = _((l) => {
|
|
1582
|
+
d == null || d(l), !l.defaultPrevented && c(!0);
|
|
1583
|
+
}), { style: p } = mo();
|
|
1584
|
+
return a || (n = N(m({}, n), {
|
|
1585
|
+
style: m(m({}, p), n.style)
|
|
1586
|
+
})), n = N(m({
|
|
1587
|
+
children: /* @__PURE__ */ D(
|
|
1588
|
+
"svg",
|
|
1589
|
+
{
|
|
1590
|
+
display: "block",
|
|
1591
|
+
fill: "none",
|
|
1592
|
+
stroke: "currentColor",
|
|
1593
|
+
strokeLinecap: "round",
|
|
1594
|
+
strokeLinejoin: "round",
|
|
1595
|
+
strokeWidth: 1.5,
|
|
1596
|
+
viewBox: "0 0 16 16",
|
|
1597
|
+
height: "1em",
|
|
1598
|
+
width: "1em",
|
|
1599
|
+
children: /* @__PURE__ */ D("polyline", { points: "4,6 8,10 12,6" })
|
|
1600
|
+
}
|
|
1601
|
+
)
|
|
1602
|
+
}, n), {
|
|
1603
|
+
ref: L(t.setDisclosureElement, n.ref),
|
|
1604
|
+
onClick: i,
|
|
1605
|
+
onFocus: v
|
|
1606
|
+
}), n = at(m({ store: t }, n)), n;
|
|
1607
|
+
}), au = h(function(e) {
|
|
1608
|
+
const o = Rn(e);
|
|
1609
|
+
return g(Mn, o);
|
|
1610
|
+
}), Vn = "button", wt = b(
|
|
1611
|
+
function(e) {
|
|
1612
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1613
|
+
const s = No();
|
|
1614
|
+
return t = t || s, n = Le(m({ store: t }, n)), n;
|
|
1615
|
+
}
|
|
1616
|
+
), uu = h(function(e) {
|
|
1617
|
+
const o = wt(e);
|
|
1618
|
+
return g(Vn, o);
|
|
1619
|
+
}), Ln = "h1", _t = b(
|
|
1620
|
+
function(e) {
|
|
1621
|
+
return e = Oe(e), e;
|
|
1622
|
+
}
|
|
1623
|
+
), iu = h(function(e) {
|
|
1624
|
+
const o = _t(e);
|
|
1625
|
+
return g(Ln, o);
|
|
1626
|
+
});
|
|
1627
|
+
function cu(r = {}) {
|
|
1628
|
+
return M(() => {
|
|
1629
|
+
process.env.NODE_ENV !== "production" && console.warn(
|
|
1630
|
+
"useMenuBarStore is deprecated. Use useMenubarStore instead.",
|
|
1631
|
+
"See https://ariakit.org/reference/use-menubar-store"
|
|
1632
|
+
);
|
|
1633
|
+
}, []), Ve(r);
|
|
1634
|
+
}
|
|
1635
|
+
var On = "div", An = b(
|
|
1636
|
+
function(e) {
|
|
1637
|
+
return M(() => {
|
|
1638
|
+
process.env.NODE_ENV !== "production" && console.warn(
|
|
1639
|
+
"MenuBar is deprecated. Use Menubar instead.",
|
|
1640
|
+
"See https://ariakit.org/reference/menubar"
|
|
1641
|
+
);
|
|
1642
|
+
}, []), ht(e);
|
|
1643
|
+
}
|
|
1644
|
+
), lu = h(function(e) {
|
|
1645
|
+
const o = An(e);
|
|
1646
|
+
return g(On, o);
|
|
1647
|
+
});
|
|
1648
|
+
function du(r = {}) {
|
|
1649
|
+
return M(() => {
|
|
1650
|
+
process.env.NODE_ENV !== "production" && console.warn(
|
|
1651
|
+
"MenuBarProvider is deprecated. Use MenubarProvider instead.",
|
|
1652
|
+
"See https://ariakit.org/reference/menubar-provider"
|
|
1653
|
+
);
|
|
1654
|
+
}, []), /* @__PURE__ */ D(Yo, m({}, r));
|
|
1655
|
+
}
|
|
1656
|
+
var Hn = "div", Gn = b(
|
|
1657
|
+
function(e) {
|
|
1658
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1659
|
+
const s = lt();
|
|
1660
|
+
return t = t || s, he(m({ store: t }, n));
|
|
1661
|
+
}
|
|
1662
|
+
), mu = h(function(e) {
|
|
1663
|
+
const o = Gn(e);
|
|
1664
|
+
return g(Hn, o);
|
|
1665
|
+
}), Bn = "span", Wn = b(
|
|
1666
|
+
function(e) {
|
|
1667
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1668
|
+
const s = lt();
|
|
1669
|
+
return t = t || s, n = wo(m({ store: t }, n)), n;
|
|
1670
|
+
}
|
|
1671
|
+
), vu = h(function(e) {
|
|
1672
|
+
const o = Wn(e);
|
|
1673
|
+
return g(Bn, o);
|
|
1674
|
+
}), jn = "p", Un = b(
|
|
1675
|
+
function(e) {
|
|
1676
|
+
return e = Et(e), e;
|
|
1677
|
+
}
|
|
1678
|
+
), pu = h(function(e) {
|
|
1679
|
+
const o = Un(e);
|
|
1680
|
+
return g(jn, o);
|
|
1681
|
+
}), qn = "button", zn = b(
|
|
1682
|
+
function(e) {
|
|
1683
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1684
|
+
const s = Re();
|
|
1685
|
+
return t = t || s, n = wt(m({ store: t }, n)), n;
|
|
1686
|
+
}
|
|
1687
|
+
), fu = h(function(e) {
|
|
1688
|
+
const o = zn(e);
|
|
1689
|
+
return g(qn, o);
|
|
1690
|
+
}), Kn = "div", Zn = b(
|
|
1691
|
+
function(e) {
|
|
1692
|
+
return e = Ie(e), e;
|
|
1693
|
+
}
|
|
1694
|
+
), bu = h(function(e) {
|
|
1695
|
+
const o = Zn(e);
|
|
1696
|
+
return g(Kn, o);
|
|
1697
|
+
}), Xn = "div", Jn = b(
|
|
1698
|
+
function(e) {
|
|
1699
|
+
return e = $e(e), e;
|
|
1700
|
+
}
|
|
1701
|
+
), hu = h(function(e) {
|
|
1702
|
+
const o = Jn(e);
|
|
1703
|
+
return g(Xn, o);
|
|
1704
|
+
}), Qn = "h1", Yn = b(
|
|
1705
|
+
function(e) {
|
|
1706
|
+
return e = _t(e), e;
|
|
1707
|
+
}
|
|
1708
|
+
), gu = h(function(e) {
|
|
1709
|
+
const o = Yn(e);
|
|
1710
|
+
return g(Qn, o);
|
|
1711
|
+
}), es = "span", ts = b(
|
|
1712
|
+
function(e) {
|
|
1713
|
+
var o = e, { store: t, checked: n } = o, s = k(o, ["store", "checked"]);
|
|
1714
|
+
const a = J(dt);
|
|
1715
|
+
return n = n ?? a, s = Xe(N(m({}, s), { checked: n })), s;
|
|
1716
|
+
}
|
|
1717
|
+
), Cu = h(function(e) {
|
|
1718
|
+
const o = ts(e);
|
|
1719
|
+
return g(es, o);
|
|
1720
|
+
}), os = "div";
|
|
1721
|
+
function rs(r) {
|
|
1722
|
+
return Array.isArray(r) ? r.toString() : r;
|
|
1723
|
+
}
|
|
1724
|
+
function ke(r, e, o) {
|
|
1725
|
+
if (e === void 0)
|
|
1726
|
+
return Array.isArray(r) ? r : !!o;
|
|
1727
|
+
const t = rs(e);
|
|
1728
|
+
return Array.isArray(r) ? o ? r.includes(t) ? r : [...r, t] : r.filter((n) => n !== t) : o ? t : r === t ? !1 : r;
|
|
1729
|
+
}
|
|
1730
|
+
var ns = b(
|
|
1731
|
+
function(e) {
|
|
1732
|
+
var o = e, {
|
|
1733
|
+
store: t,
|
|
1734
|
+
name: n,
|
|
1735
|
+
value: s,
|
|
1736
|
+
checked: a,
|
|
1737
|
+
defaultChecked: c,
|
|
1738
|
+
hideOnClick: u = !1
|
|
1739
|
+
} = o, i = k(o, [
|
|
1740
|
+
"store",
|
|
1741
|
+
"name",
|
|
1742
|
+
"value",
|
|
1743
|
+
"checked",
|
|
1744
|
+
"defaultChecked",
|
|
1745
|
+
"hideOnClick"
|
|
1746
|
+
]);
|
|
1747
|
+
const d = Re();
|
|
1748
|
+
t = t || d, w(
|
|
1749
|
+
t,
|
|
1750
|
+
process.env.NODE_ENV !== "production" && "MenuItemCheckbox must be wrapped in a MenuList or Menu component"
|
|
1751
|
+
);
|
|
1752
|
+
const v = we(c);
|
|
1753
|
+
M(() => {
|
|
1754
|
+
t == null || t.setValue(n, (f = []) => v ? ke(f, s, !0) : f);
|
|
1755
|
+
}, [t, n, s, v]), M(() => {
|
|
1756
|
+
a !== void 0 && (t == null || t.setValue(n, (f) => ke(f, s, a)));
|
|
1757
|
+
}, [t, n, s, a]);
|
|
1758
|
+
const p = Ge({
|
|
1759
|
+
value: t.useState((f) => f.values[n]),
|
|
1760
|
+
setValue(f) {
|
|
1761
|
+
t == null || t.setValue(n, () => {
|
|
1762
|
+
if (a === void 0) return f;
|
|
1763
|
+
const l = ke(f, s, a);
|
|
1764
|
+
return !Array.isArray(l) || !Array.isArray(f) ? l : jt(f, l) ? f : l;
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
return i = m({
|
|
1769
|
+
role: "menuitemcheckbox"
|
|
1770
|
+
}, i), i = Be(m({
|
|
1771
|
+
store: p,
|
|
1772
|
+
name: n,
|
|
1773
|
+
value: s,
|
|
1774
|
+
checked: a
|
|
1775
|
+
}, i)), i = mt(m({ store: t, hideOnClick: u }, i)), i;
|
|
1776
|
+
}
|
|
1777
|
+
), xu = R(
|
|
1778
|
+
h(function(e) {
|
|
1779
|
+
const o = ns(e);
|
|
1780
|
+
return g(os, o);
|
|
1781
|
+
})
|
|
1782
|
+
), ss = "div";
|
|
1783
|
+
function Fe(r, e, o) {
|
|
1784
|
+
return o === void 0 ? r : o ? e : r;
|
|
1785
|
+
}
|
|
1786
|
+
var as = b(
|
|
1787
|
+
function(e) {
|
|
1788
|
+
var o = e, {
|
|
1789
|
+
store: t,
|
|
1790
|
+
name: n,
|
|
1791
|
+
value: s,
|
|
1792
|
+
checked: a,
|
|
1793
|
+
onChange: c,
|
|
1794
|
+
hideOnClick: u = !1
|
|
1795
|
+
} = o, i = k(o, [
|
|
1796
|
+
"store",
|
|
1797
|
+
"name",
|
|
1798
|
+
"value",
|
|
1799
|
+
"checked",
|
|
1800
|
+
"onChange",
|
|
1801
|
+
"hideOnClick"
|
|
1802
|
+
]);
|
|
1803
|
+
const d = Re();
|
|
1804
|
+
t = t || d, w(
|
|
1805
|
+
t,
|
|
1806
|
+
process.env.NODE_ENV !== "production" && "MenuItemRadio must be wrapped in a MenuList or Menu component"
|
|
1807
|
+
);
|
|
1808
|
+
const v = we(i.defaultChecked);
|
|
1809
|
+
M(() => {
|
|
1810
|
+
t == null || t.setValue(n, (f = !1) => Fe(f, s, v));
|
|
1811
|
+
}, [t, n, s, v]), M(() => {
|
|
1812
|
+
a !== void 0 && (t == null || t.setValue(n, (f) => Fe(f, s, a)));
|
|
1813
|
+
}, [t, n, s, a]);
|
|
1814
|
+
const p = t.useState((f) => f.values[n] === s);
|
|
1815
|
+
return i = X(
|
|
1816
|
+
i,
|
|
1817
|
+
(f) => /* @__PURE__ */ D(dt.Provider, { value: !!p, children: f }),
|
|
1818
|
+
[p]
|
|
1819
|
+
), i = m({
|
|
1820
|
+
role: "menuitemradio"
|
|
1821
|
+
}, i), i = Ae(m({
|
|
1822
|
+
name: n,
|
|
1823
|
+
value: s,
|
|
1824
|
+
checked: p,
|
|
1825
|
+
onChange(f) {
|
|
1826
|
+
if (c == null || c(f), f.defaultPrevented) return;
|
|
1827
|
+
const l = f.currentTarget;
|
|
1828
|
+
t == null || t.setValue(n, (C) => Fe(C, s, a ?? l.checked));
|
|
1829
|
+
}
|
|
1830
|
+
}, i)), i = mt(m({ store: t, hideOnClick: u }, i)), i;
|
|
1831
|
+
}
|
|
1832
|
+
), Pu = R(
|
|
1833
|
+
h(function(e) {
|
|
1834
|
+
const o = as(e);
|
|
1835
|
+
return g(ss, o);
|
|
1836
|
+
})
|
|
1837
|
+
);
|
|
1838
|
+
function Su(r = {}) {
|
|
1839
|
+
const e = Ge(r);
|
|
1840
|
+
return /* @__PURE__ */ D(Jr, { value: e, children: r.children });
|
|
1841
|
+
}
|
|
1842
|
+
var us = "div", is = b(
|
|
1843
|
+
function(e) {
|
|
1844
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1845
|
+
const s = Yt();
|
|
1846
|
+
return t = t || s, n = X(
|
|
1847
|
+
n,
|
|
1848
|
+
(a) => /* @__PURE__ */ D(ot, { value: t, children: a }),
|
|
1849
|
+
[t]
|
|
1850
|
+
), j(n);
|
|
1851
|
+
}
|
|
1852
|
+
), ku = h(function(e) {
|
|
1853
|
+
const o = is(e);
|
|
1854
|
+
return g(us, o);
|
|
1855
|
+
});
|
|
1856
|
+
function Fu(r = {}) {
|
|
1857
|
+
const e = oo(r);
|
|
1858
|
+
return /* @__PURE__ */ D(rt, { value: e, children: r.children });
|
|
1859
|
+
}
|
|
1860
|
+
var cs = "button", ls = /* @__PURE__ */ fe(
|
|
1861
|
+
"svg",
|
|
1862
|
+
{
|
|
1863
|
+
"aria-hidden": "true",
|
|
1864
|
+
display: "block",
|
|
1865
|
+
viewBox: "0 0 16 16",
|
|
1866
|
+
fill: "none",
|
|
1867
|
+
stroke: "currentColor",
|
|
1868
|
+
strokeLinecap: "round",
|
|
1869
|
+
strokeLinejoin: "round",
|
|
1870
|
+
strokeWidth: 1.5,
|
|
1871
|
+
width: "1em",
|
|
1872
|
+
height: "1em",
|
|
1873
|
+
pointerEvents: "none",
|
|
1874
|
+
children: [
|
|
1875
|
+
/* @__PURE__ */ D("line", { x1: "5", y1: "5", x2: "11", y2: "11" }),
|
|
1876
|
+
/* @__PURE__ */ D("line", { x1: "5", y1: "11", x2: "11", y2: "5" })
|
|
1877
|
+
]
|
|
1878
|
+
}
|
|
1879
|
+
), ds = b(
|
|
1880
|
+
function(e) {
|
|
1881
|
+
var o = e, { store: t, hideWhenEmpty: n } = o, s = k(o, ["store", "hideWhenEmpty"]);
|
|
1882
|
+
const a = _e();
|
|
1883
|
+
t = t || a, w(
|
|
1884
|
+
t,
|
|
1885
|
+
process.env.NODE_ENV !== "production" && "ComboboxCancel must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
1886
|
+
);
|
|
1887
|
+
const c = s.onClick, u = _((v) => {
|
|
1888
|
+
c == null || c(v), !v.defaultPrevented && (t == null || t.setValue(""), t == null || t.move(null));
|
|
1889
|
+
}), i = t.useState((v) => {
|
|
1890
|
+
var p;
|
|
1891
|
+
return (p = v.baseElement) == null ? void 0 : p.id;
|
|
1892
|
+
}), d = t.useState((v) => v.value === "");
|
|
1893
|
+
return s = X(
|
|
1894
|
+
s,
|
|
1895
|
+
(v) => n && d ? /* @__PURE__ */ D(Kt, {}) : v,
|
|
1896
|
+
[n, d]
|
|
1897
|
+
), s = N(m({
|
|
1898
|
+
children: ls,
|
|
1899
|
+
"aria-label": "Clear input",
|
|
1900
|
+
// This aria-controls will ensure the combobox popup remains visible when
|
|
1901
|
+
// this element gets focused. This logic is done in the ComboboxPopover
|
|
1902
|
+
// component.
|
|
1903
|
+
"aria-controls": i
|
|
1904
|
+
}, s), {
|
|
1905
|
+
onClick: u
|
|
1906
|
+
}), s = te(s), s;
|
|
1907
|
+
}
|
|
1908
|
+
), Tu = h(function(e) {
|
|
1909
|
+
const o = ds(e);
|
|
1910
|
+
return g(cs, o);
|
|
1911
|
+
}), ms = "button", vs = /* @__PURE__ */ D(
|
|
1912
|
+
"svg",
|
|
1913
|
+
{
|
|
1914
|
+
"aria-hidden": "true",
|
|
1915
|
+
display: "block",
|
|
1916
|
+
fill: "none",
|
|
1917
|
+
stroke: "currentColor",
|
|
1918
|
+
strokeLinecap: "round",
|
|
1919
|
+
strokeLinejoin: "round",
|
|
1920
|
+
strokeWidth: 1.5,
|
|
1921
|
+
viewBox: "0 0 16 16",
|
|
1922
|
+
height: "1em",
|
|
1923
|
+
width: "1em",
|
|
1924
|
+
pointerEvents: "none",
|
|
1925
|
+
children: /* @__PURE__ */ D("polyline", { points: "4,6 8,10 12,6" })
|
|
1926
|
+
}
|
|
1927
|
+
), ps = b(function(e) {
|
|
1928
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1929
|
+
const s = _e();
|
|
1930
|
+
t = t || s, w(
|
|
1931
|
+
t,
|
|
1932
|
+
process.env.NODE_ENV !== "production" && "ComboboxDisclosure must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
1933
|
+
);
|
|
1934
|
+
const a = n.onMouseDown, c = _((v) => {
|
|
1935
|
+
a == null || a(v), v.preventDefault(), t == null || t.move(null);
|
|
1936
|
+
}), u = n.onClick, i = _((v) => {
|
|
1937
|
+
if (u == null || u(v), v.defaultPrevented || !t) return;
|
|
1938
|
+
const { baseElement: p } = t.getState();
|
|
1939
|
+
t.setDisclosureElement(p);
|
|
1940
|
+
}), d = t.useState("open");
|
|
1941
|
+
return n = N(m({
|
|
1942
|
+
children: vs,
|
|
1943
|
+
tabIndex: -1,
|
|
1944
|
+
"aria-label": d ? "Hide popup" : "Show popup",
|
|
1945
|
+
"aria-expanded": d
|
|
1946
|
+
}, n), {
|
|
1947
|
+
onMouseDown: c,
|
|
1948
|
+
onClick: i
|
|
1949
|
+
}), n = at(m({ store: t }, n)), n;
|
|
1950
|
+
}), Nu = h(function(e) {
|
|
1951
|
+
const o = ps(e);
|
|
1952
|
+
return g(ms, o);
|
|
1953
|
+
}), fs = "div", bs = b(function(e) {
|
|
1954
|
+
return e = Ie(e), e;
|
|
1955
|
+
}), yu = h(function(e) {
|
|
1956
|
+
const o = bs(e);
|
|
1957
|
+
return g(fs, o);
|
|
1958
|
+
}), hs = "div", gs = b(
|
|
1959
|
+
function(e) {
|
|
1960
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
1961
|
+
const s = be();
|
|
1962
|
+
t = t || s, w(
|
|
1963
|
+
t,
|
|
1964
|
+
process.env.NODE_ENV !== "production" && "ComboboxRow must be wrapped in a ComboboxList or ComboboxPopover component"
|
|
1965
|
+
);
|
|
1966
|
+
const a = t.useState("contentElement");
|
|
1967
|
+
return Ee(a) === "grid" && (n = m({ role: "rowgroup" }, n)), n = $e(m({ store: t }, n)), n;
|
|
1968
|
+
}
|
|
1969
|
+
), Du = h(function(e) {
|
|
1970
|
+
const o = gs(e);
|
|
1971
|
+
return g(hs, o);
|
|
1972
|
+
}), Cs = "span";
|
|
1973
|
+
function Ze(r) {
|
|
1974
|
+
return Ut(r).toLowerCase();
|
|
1975
|
+
}
|
|
1976
|
+
function xs(r, e) {
|
|
1977
|
+
const o = [];
|
|
1978
|
+
for (const t of e) {
|
|
1979
|
+
let n = 0;
|
|
1980
|
+
const s = t.length;
|
|
1981
|
+
for (; r.indexOf(t, n) !== -1; ) {
|
|
1982
|
+
const a = r.indexOf(t, n);
|
|
1983
|
+
a !== -1 && o.push([a, s]), n = a + 1;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
return o;
|
|
1987
|
+
}
|
|
1988
|
+
function Ps(r) {
|
|
1989
|
+
return r.filter(([e, o], t, n) => !n.some(
|
|
1990
|
+
([s, a], c) => c !== t && s <= e && s + a >= e + o
|
|
1991
|
+
));
|
|
1992
|
+
}
|
|
1993
|
+
function Ss(r) {
|
|
1994
|
+
return r.sort(([e], [o]) => e - o);
|
|
1995
|
+
}
|
|
1996
|
+
function ks(r, e) {
|
|
1997
|
+
if (!r || !e) return r;
|
|
1998
|
+
const o = uo(e).filter(Boolean).map(Ze), t = [], n = (u, i = !1) => /* @__PURE__ */ D(
|
|
1999
|
+
"span",
|
|
2000
|
+
{
|
|
2001
|
+
"data-autocomplete-value": i ? "" : void 0,
|
|
2002
|
+
"data-user-value": i ? void 0 : "",
|
|
2003
|
+
children: u
|
|
2004
|
+
},
|
|
2005
|
+
t.length
|
|
2006
|
+
), s = Ss(
|
|
2007
|
+
Ps(
|
|
2008
|
+
// Convert userValues into a set to avoid duplicates
|
|
2009
|
+
xs(Ze(r), new Set(o))
|
|
2010
|
+
)
|
|
2011
|
+
);
|
|
2012
|
+
if (!s.length)
|
|
2013
|
+
return t.push(n(r, !0)), t;
|
|
2014
|
+
const [a] = s[0];
|
|
2015
|
+
return [
|
|
2016
|
+
r.slice(0, a),
|
|
2017
|
+
...s.flatMap(([u, i], d) => {
|
|
2018
|
+
var v;
|
|
2019
|
+
const p = r.slice(u, u + i), f = (v = s[d + 1]) == null ? void 0 : v[0], l = r.slice(u + i, f);
|
|
2020
|
+
return [p, l];
|
|
2021
|
+
})
|
|
2022
|
+
].forEach((u, i) => {
|
|
2023
|
+
u && t.push(n(u, i % 2 === 0));
|
|
2024
|
+
}), t;
|
|
2025
|
+
}
|
|
2026
|
+
var Fs = b(function(e) {
|
|
2027
|
+
var o = e, { store: t, value: n, userValue: s } = o, a = k(o, ["store", "value", "userValue"]);
|
|
2028
|
+
const c = be();
|
|
2029
|
+
t = t || c;
|
|
2030
|
+
const u = J(ro), i = n ?? u, d = oe(t, (p) => s ?? (p == null ? void 0 : p.value)), v = ee(() => {
|
|
2031
|
+
if (i)
|
|
2032
|
+
return d ? ks(i, d) : i;
|
|
2033
|
+
}, [i, d]);
|
|
2034
|
+
return a = m({
|
|
2035
|
+
children: v
|
|
2036
|
+
}, a), j(a);
|
|
2037
|
+
}), Eu = h(function(e) {
|
|
2038
|
+
const o = Fs(e);
|
|
2039
|
+
return g(Cs, o);
|
|
2040
|
+
}), Ts = "label", Ns = b(
|
|
2041
|
+
function(e) {
|
|
2042
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
2043
|
+
const s = _e();
|
|
2044
|
+
t = t || s, w(
|
|
2045
|
+
t,
|
|
2046
|
+
process.env.NODE_ENV !== "production" && "ComboboxLabel must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
2047
|
+
);
|
|
2048
|
+
const a = t.useState((c) => {
|
|
2049
|
+
var u;
|
|
2050
|
+
return (u = c.baseElement) == null ? void 0 : u.id;
|
|
2051
|
+
});
|
|
2052
|
+
return n = m({
|
|
2053
|
+
htmlFor: a
|
|
2054
|
+
}, n), j(n);
|
|
2055
|
+
}
|
|
2056
|
+
), wu = R(
|
|
2057
|
+
h(function(e) {
|
|
2058
|
+
const o = Ns(e);
|
|
2059
|
+
return g(Ts, o);
|
|
2060
|
+
})
|
|
2061
|
+
), ys = "div", Ds = b(
|
|
2062
|
+
function(e) {
|
|
2063
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
2064
|
+
const s = be();
|
|
2065
|
+
t = t || s, w(
|
|
2066
|
+
t,
|
|
2067
|
+
process.env.NODE_ENV !== "production" && "ComboboxRow must be wrapped in a ComboboxList or ComboboxPopover component"
|
|
2068
|
+
);
|
|
2069
|
+
const a = t.useState("contentElement"), u = Ee(a) === "grid" ? "row" : "presentation";
|
|
2070
|
+
return n = m({ role: u }, n), n = ut(m({ store: t }, n)), n;
|
|
2071
|
+
}
|
|
2072
|
+
), _u = h(function(e) {
|
|
2073
|
+
const o = Ds(e);
|
|
2074
|
+
return g(ys, o);
|
|
2075
|
+
}), Es = "hr", ws = b(function(e) {
|
|
2076
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
2077
|
+
const s = be();
|
|
2078
|
+
return t = t || s, w(
|
|
2079
|
+
t,
|
|
2080
|
+
process.env.NODE_ENV !== "production" && "ComboboxSeparator must be wrapped in a ComboboxList or ComboboxPopover component."
|
|
2081
|
+
), n = it(m({ store: t }, n)), n;
|
|
2082
|
+
}), Iu = h(function(e) {
|
|
2083
|
+
const o = ws(e);
|
|
2084
|
+
return g(Es, o);
|
|
2085
|
+
});
|
|
2086
|
+
function $u({ store: r, children: e } = {}) {
|
|
2087
|
+
const o = no();
|
|
2088
|
+
r = r || o, w(
|
|
2089
|
+
r,
|
|
2090
|
+
process.env.NODE_ENV !== "production" && "ComboboxValue must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
2091
|
+
);
|
|
2092
|
+
const t = r.useState("value");
|
|
2093
|
+
return e ? e(t) : t;
|
|
2094
|
+
}
|
|
2095
|
+
function Mu(r = {}) {
|
|
2096
|
+
const e = ho(r);
|
|
2097
|
+
return /* @__PURE__ */ D(bo, { value: e, children: r.children });
|
|
2098
|
+
}
|
|
2099
|
+
var _s = "label", Is = b(
|
|
2100
|
+
function(e) {
|
|
2101
|
+
var o = e, { store: t } = o, n = k(o, ["store"]);
|
|
2102
|
+
const s = Mt();
|
|
2103
|
+
t = t || s, w(
|
|
2104
|
+
t,
|
|
2105
|
+
process.env.NODE_ENV !== "production" && "TagListLabel must receive a `store` prop or be wrapped in a TagProvider component."
|
|
2106
|
+
);
|
|
2107
|
+
const a = W(n.id), c = t.useState((u) => {
|
|
2108
|
+
var i;
|
|
2109
|
+
return (i = u.inputElement) == null ? void 0 : i.id;
|
|
2110
|
+
});
|
|
2111
|
+
return n = N(m({
|
|
2112
|
+
id: a,
|
|
2113
|
+
htmlFor: c
|
|
2114
|
+
}, n), {
|
|
2115
|
+
ref: L(t.setLabelElement, n.ref)
|
|
2116
|
+
}), n;
|
|
2117
|
+
}
|
|
2118
|
+
), Ru = h(function(e) {
|
|
2119
|
+
const o = Is(e);
|
|
2120
|
+
return g(_s, o);
|
|
2121
|
+
});
|
|
2122
|
+
export {
|
|
2123
|
+
ri as Button,
|
|
2124
|
+
Ba as Checkbox,
|
|
2125
|
+
Ou as CheckboxCheck,
|
|
2126
|
+
Su as CheckboxProvider,
|
|
2127
|
+
ku as Collection,
|
|
2128
|
+
li as CollectionItem,
|
|
2129
|
+
Fu as CollectionProvider,
|
|
2130
|
+
Ju as Combobox,
|
|
2131
|
+
Tu as ComboboxCancel,
|
|
2132
|
+
Nu as ComboboxDisclosure,
|
|
2133
|
+
Du as ComboboxGroup,
|
|
2134
|
+
yu as ComboboxGroupLabel,
|
|
2135
|
+
Qu as ComboboxItem,
|
|
2136
|
+
Au as ComboboxItemCheck,
|
|
2137
|
+
Eu as ComboboxItemValue,
|
|
2138
|
+
wu as ComboboxLabel,
|
|
2139
|
+
Yu as ComboboxList,
|
|
2140
|
+
Hu as ComboboxPopover,
|
|
2141
|
+
ei as ComboboxProvider,
|
|
2142
|
+
_u as ComboboxRow,
|
|
2143
|
+
Iu as ComboboxSeparator,
|
|
2144
|
+
$u as ComboboxValue,
|
|
2145
|
+
ai as Command,
|
|
2146
|
+
Ei as Composite,
|
|
2147
|
+
gi as CompositeGroup,
|
|
2148
|
+
Ci as CompositeGroupLabel,
|
|
2149
|
+
_i as CompositeHover,
|
|
2150
|
+
$i as CompositeItem,
|
|
2151
|
+
Ri as CompositeProvider,
|
|
2152
|
+
Fi as CompositeRow,
|
|
2153
|
+
Ni as CompositeSeparator,
|
|
2154
|
+
Li as CompositeTypeahead,
|
|
2155
|
+
Ai as Dialog,
|
|
2156
|
+
xa as DialogDescription,
|
|
2157
|
+
pi as DialogDisclosure,
|
|
2158
|
+
Sa as DialogDismiss,
|
|
2159
|
+
Ta as DialogHeading,
|
|
2160
|
+
Mu as DialogProvider,
|
|
2161
|
+
ni as Disclosure,
|
|
2162
|
+
Xi as DisclosureContent,
|
|
2163
|
+
xi as DisclosureProvider,
|
|
2164
|
+
lo as FocusTrap,
|
|
2165
|
+
Oa as FocusTrapRegion,
|
|
2166
|
+
Qi as Focusable,
|
|
2167
|
+
Aa as Form,
|
|
2168
|
+
Wa as FormCheckbox,
|
|
2169
|
+
Ga as FormControl,
|
|
2170
|
+
ja as FormDescription,
|
|
2171
|
+
Ua as FormError,
|
|
2172
|
+
qa as FormField,
|
|
2173
|
+
Ka as FormGroup,
|
|
2174
|
+
za as FormGroupLabel,
|
|
2175
|
+
Za as FormInput,
|
|
2176
|
+
Xa as FormLabel,
|
|
2177
|
+
Ha as FormProvider,
|
|
2178
|
+
Ja as FormPush,
|
|
2179
|
+
Ya as FormRadio,
|
|
2180
|
+
Qa as FormRadioGroup,
|
|
2181
|
+
eu as FormRemove,
|
|
2182
|
+
tu as FormReset,
|
|
2183
|
+
ou as FormSubmit,
|
|
2184
|
+
Pi as Group,
|
|
2185
|
+
Si as GroupLabel,
|
|
2186
|
+
Fa as Heading,
|
|
2187
|
+
Hi as HeadingLevel,
|
|
2188
|
+
ec as Hovercard,
|
|
2189
|
+
tc as HovercardAnchor,
|
|
2190
|
+
nu as HovercardArrow,
|
|
2191
|
+
su as HovercardDescription,
|
|
2192
|
+
au as HovercardDisclosure,
|
|
2193
|
+
uu as HovercardDismiss,
|
|
2194
|
+
iu as HovercardHeading,
|
|
2195
|
+
ru as HovercardProvider,
|
|
2196
|
+
rc as Menu,
|
|
2197
|
+
mu as MenuArrow,
|
|
2198
|
+
lu as MenuBar,
|
|
2199
|
+
du as MenuBarProvider,
|
|
2200
|
+
nc as MenuButton,
|
|
2201
|
+
vu as MenuButtonArrow,
|
|
2202
|
+
pu as MenuDescription,
|
|
2203
|
+
fu as MenuDismiss,
|
|
2204
|
+
hu as MenuGroup,
|
|
2205
|
+
bu as MenuGroupLabel,
|
|
2206
|
+
gu as MenuHeading,
|
|
2207
|
+
Pc as MenuItem,
|
|
2208
|
+
Cu as MenuItemCheck,
|
|
2209
|
+
xu as MenuItemCheckbox,
|
|
2210
|
+
Pu as MenuItemRadio,
|
|
2211
|
+
sc as MenuList,
|
|
2212
|
+
ac as MenuProvider,
|
|
2213
|
+
kc as MenuSeparator,
|
|
2214
|
+
Ca as Menubar,
|
|
2215
|
+
Yo as MenubarProvider,
|
|
2216
|
+
Gi as Popover,
|
|
2217
|
+
fi as PopoverAnchor,
|
|
2218
|
+
ha as PopoverArrow,
|
|
2219
|
+
Pa as PopoverDescription,
|
|
2220
|
+
bi as PopoverDisclosure,
|
|
2221
|
+
mc as PopoverDisclosureArrow,
|
|
2222
|
+
ka as PopoverDismiss,
|
|
2223
|
+
Na as PopoverHeading,
|
|
2224
|
+
Tc as PopoverProvider,
|
|
2225
|
+
Bi as Portal,
|
|
2226
|
+
Wi as PortalContext,
|
|
2227
|
+
ya as Radio,
|
|
2228
|
+
Ea as RadioGroup,
|
|
2229
|
+
Da as RadioProvider,
|
|
2230
|
+
ji as Role,
|
|
2231
|
+
vc as Select,
|
|
2232
|
+
pc as SelectArrow,
|
|
2233
|
+
wa as SelectDismiss,
|
|
2234
|
+
Ia as SelectGroup,
|
|
2235
|
+
_a as SelectGroupLabel,
|
|
2236
|
+
$a as SelectHeading,
|
|
2237
|
+
fc as SelectItem,
|
|
2238
|
+
Ma as SelectItemCheck,
|
|
2239
|
+
Ra as SelectLabel,
|
|
2240
|
+
bc as SelectList,
|
|
2241
|
+
hc as SelectPopover,
|
|
2242
|
+
gc as SelectProvider,
|
|
2243
|
+
Va as SelectRow,
|
|
2244
|
+
La as SelectSeparator,
|
|
2245
|
+
yc as SelectValue,
|
|
2246
|
+
yi as Separator,
|
|
2247
|
+
Ec as Tab,
|
|
2248
|
+
_c as TabList,
|
|
2249
|
+
$c as TabPanel,
|
|
2250
|
+
Rc as TabProvider,
|
|
2251
|
+
Gu as Tag,
|
|
2252
|
+
Bu as TagInput,
|
|
2253
|
+
Wu as TagList,
|
|
2254
|
+
Ru as TagListLabel,
|
|
2255
|
+
ju as TagProvider,
|
|
2256
|
+
Uu as TagRemove,
|
|
2257
|
+
Oc as Toolbar,
|
|
2258
|
+
fa as ToolbarContainer,
|
|
2259
|
+
ba as ToolbarInput,
|
|
2260
|
+
Hc as ToolbarItem,
|
|
2261
|
+
pa as ToolbarProvider,
|
|
2262
|
+
Bc as ToolbarSeparator,
|
|
2263
|
+
jc as Tooltip,
|
|
2264
|
+
Uc as TooltipAnchor,
|
|
2265
|
+
ga as TooltipArrow,
|
|
2266
|
+
qc as TooltipProvider,
|
|
2267
|
+
Ui as VisuallyHidden,
|
|
2268
|
+
Xr as useCheckboxContext,
|
|
2269
|
+
Ge as useCheckboxStore,
|
|
2270
|
+
ii as useCollectionContext,
|
|
2271
|
+
oo as useCollectionStore,
|
|
2272
|
+
no as useComboboxContext,
|
|
2273
|
+
ti as useComboboxStore,
|
|
2274
|
+
Xt as useCompositeContext,
|
|
2275
|
+
mi as useCompositeStore,
|
|
2276
|
+
zi as useDialogContext,
|
|
2277
|
+
ho as useDialogStore,
|
|
2278
|
+
Ki as useDisclosureContext,
|
|
2279
|
+
Zc as useDisclosureStore,
|
|
2280
|
+
H as useFormContext,
|
|
2281
|
+
Hr as useFormStore,
|
|
2282
|
+
Fo as useHovercardContext,
|
|
2283
|
+
xo as useHovercardStore,
|
|
2284
|
+
cc as useMenuBarContext,
|
|
2285
|
+
cu as useMenuBarStore,
|
|
2286
|
+
lt as useMenuContext,
|
|
2287
|
+
uc as useMenuStore,
|
|
2288
|
+
lc as useMenubarContext,
|
|
2289
|
+
Ve as useMenubarStore,
|
|
2290
|
+
Po as usePopoverContext,
|
|
2291
|
+
Jc as usePopoverStore,
|
|
2292
|
+
lr as useRadioContext,
|
|
2293
|
+
cr as useRadioStore,
|
|
2294
|
+
vt as useSelectContext,
|
|
2295
|
+
Cc as useSelectStore,
|
|
2296
|
+
oe as useStoreState,
|
|
2297
|
+
Yc as useTabContext,
|
|
2298
|
+
Vc as useTabStore,
|
|
2299
|
+
qu as useTag,
|
|
2300
|
+
zu as useTagInput,
|
|
2301
|
+
Ku as useTagList,
|
|
2302
|
+
Is as useTagListLabel,
|
|
2303
|
+
Zu as useTagRemove,
|
|
2304
|
+
ft as useToolbarContext,
|
|
2305
|
+
Ro as useToolbarStore,
|
|
2306
|
+
Oo as useTooltipContext,
|
|
2307
|
+
zc as useTooltipStore
|
|
2308
|
+
};
|