@stihl-design-system/components 1.0.0-RC.14 → 1.0.0-RC.16
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/accordion.Dm5MWHQ6.js +12 -0
- package/arialiveregions.BwwB-OfU.js +19 -0
- package/assets/Accordion.B5bGf8mR.css +1 -0
- package/assets/Breadcrumb.BaYrwrYl.css +1 -0
- package/assets/NavigationTabList.B6x56sAV.css +1 -0
- package/assets/linkstandalone.LMdnj-G0.css +1 -0
- package/asterisk.DUzshaw5.js +8 -0
- package/breadcrumb.BDpXhffn.js +11 -0
- package/breadcrumb.d.ts +2 -0
- package/button.Ywd82k7O.js +121 -0
- package/buttonround.CI5RGkR9.js +105 -0
- package/checkbox.C1JJOQeV.js +103 -0
- package/checkboxgroup.o5t3fWsf.js +9 -0
- package/chip.DcJLVxEm.js +11 -0
- package/chipgroup.CCq2AMSa.js +187 -0
- package/chunks/Accordion.BmI7nlus.js +166 -0
- package/chunks/AriaLiveRegions.utils.zSFFD3SF.js +27 -0
- package/chunks/Breadcrumb.BycdSn-b.js +106 -0
- package/chunks/CheckboxGroup.C-Adg1hA.js +74 -0
- package/chunks/Chip.BY8kLPnz.js +120 -0
- package/chunks/CustomReactSelect.C2yN7CYh.js +3622 -0
- package/chunks/Dialog.CjzCKRr2.js +140 -0
- package/chunks/Drawer.m2JeVNBp.js +148 -0
- package/chunks/Fieldset.DfWsQgjD.js +105 -0
- package/chunks/Icon.DhKyUWtM.js +231 -0
- package/chunks/Input.utils.Um8Pqp4U.js +52 -0
- package/chunks/InputPassword.CmvZcn6n.js +141 -0
- package/chunks/InputSearch.CwXaGLJp.js +179 -0
- package/chunks/InputStepper.NCl90c4h.js +275 -0
- package/chunks/NavigationTabList.BOrhiSiM.js +63 -0
- package/chunks/NavigationTabs.DW_6fZxc.js +63 -0
- package/chunks/Notification.Bp28ubaX.js +99 -0
- package/chunks/RadioGroup.Dh-7jSOg.js +105 -0
- package/chunks/Select.CMwsbHvQ.js +190 -0
- package/chunks/TabPane.utils.DG16Y2uD.js +10 -0
- package/chunks/Tabs.D3yDE5nU.js +77 -0
- package/chunks/Textarea.CMRn2Aof.js +184 -0
- package/chunks/Toast.Boi6TEHu.js +76 -0
- package/chunks/index.CEyLAtio.js +48 -0
- package/chunks/index.CgTHIF3K.js +293 -0
- package/chunks/{translate.isa3FHb8.js → translate.nuU7uChI.js} +1 -4
- package/chunks/useBreakpoint.CMOR9ZOB.js +44 -0
- package/combobox.BhzaJrs7.js +55 -0
- package/components/Accordion/Accordion.d.ts +5 -1
- package/components/Accordion/Accordion.utils.d.ts +2 -2
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +1 -0
- package/components/Asterisk/Asterisk.d.ts +1 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +45 -0
- package/components/Breadcrumb/Breadcrumb.utils.d.ts +4 -0
- package/components/Button/Button.d.ts +6 -4
- package/components/ButtonRound/ButtonRound.d.ts +4 -1
- package/components/Checkbox/Checkbox.d.ts +2 -0
- package/components/CheckboxGroup/CheckboxGroup.d.ts +3 -1
- package/components/ChipGroup/ChipGroup.d.ts +2 -0
- package/components/Combobox/Combobox.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +3 -2
- package/components/Combobox/CustomReactSelect/OptionCheckbox.d.ts +1 -1
- package/components/Dialog/Dialog.d.ts +15 -4
- package/components/Drawer/Drawer.d.ts +15 -5
- package/components/Fieldset/Fieldset.d.ts +3 -1
- package/components/Flag/Flag.d.ts +3 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +4 -1
- package/components/Heading/Heading.d.ts +3 -1
- package/components/Icon/Icon.d.ts +3 -1
- package/components/Input/Input.d.ts +23 -10
- package/components/Input/Input.utils.d.ts +2 -2
- package/components/InputPassword/InputPassword.d.ts +18 -9
- package/components/InputSearch/InputSearch.d.ts +17 -7
- package/components/InputStepper/InputStepper.d.ts +24 -8
- package/components/Link/Link.d.ts +6 -3
- package/components/LinkStandalone/LinkStandalone.d.ts +4 -1
- package/components/Logo/Logo.d.ts +3 -1
- package/components/NavigationTabs/NavigationTabs.d.ts +43 -0
- package/components/NavigationTabs/NavigationTabs.test.d.ts +1 -0
- package/components/NavigationTabs/NavigationTabs.utils.d.ts +6 -0
- package/components/Notification/Notification.d.ts +14 -5
- package/components/NumberIndicator/NumberIndicator.d.ts +1 -0
- package/components/RadioGroup/RadioGroup.d.ts +2 -0
- package/components/Select/Select.d.ts +2 -1
- package/components/SkipToContent/SkipToContent.d.ts +3 -0
- package/components/Spinner/Spinner.d.ts +7 -1
- package/components/Switch/Switch.d.ts +6 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +1 -1
- package/components/Tabs/TabList/NavigationTabList/NavigationTabList.d.ts +22 -0
- package/components/Tabs/TabList/TabList.d.ts +38 -0
- package/components/Tabs/TabList/TabList.utils.d.ts +6 -0
- package/components/Tabs/TabList/TabList.utils.test.d.ts +1 -0
- package/components/Tabs/TabPane/TabPane.d.ts +1 -1
- package/components/Tabs/Tabs.d.ts +9 -2
- package/components/Tabs/Tabs.utils.d.ts +1 -6
- package/components/Text/Text.d.ts +6 -4
- package/components/Textarea/Textarea.d.ts +3 -1
- package/components/Title/Title.d.ts +3 -1
- package/components/Toast/Toast.d.ts +2 -0
- package/customreactselect.CW5-QQSM.js +14 -0
- package/dialog.DuAgAwfs.js +10 -0
- package/drawer.D3E46fH1.js +10 -0
- package/fieldset.4UygHVV3.js +12 -0
- package/flag.BJk5fHMs.js +50 -0
- package/floatingactionbutton.DFZ2YwaJ.js +74 -0
- package/heading.6LOBHJG6.js +55 -0
- package/icon.dww0DXWN.js +9 -0
- package/index.d.ts +4 -0
- package/index.es.js +139 -179
- package/input.DXzeHdRE.js +211 -0
- package/inputpassword.DXEvvgZt.js +13 -0
- package/inputsearch.DzwXj82k.js +14 -0
- package/inputstepper.CYwcFoQ1.js +16 -0
- package/link.CgNqBaNn.js +106 -0
- package/linkstandalone.Dn-uDj5T.js +69 -0
- package/logo.BgnYvK7t.js +51 -0
- package/navigationtablist.XNy54fXK.js +9 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.DheMj9hs.js +9 -0
- package/navigationtabs.d.ts +2 -0
- package/notification.BnyOWmCm.js +10 -0
- package/numberindicator.Do92cr0z.js +35 -0
- package/optioncheckbox.DcckSTrV.js +52 -0
- package/package.json +53 -50
- package/partials/index.js +248 -2131
- package/partials/lib/partials.d.ts +77 -4
- package/radio.TDaeblOB.js +130 -0
- package/radiogroup.DyL_cJzK.js +11 -0
- package/select.BoeUz4Fb.js +13 -0
- package/skiptocontent.D7xhN0KM.js +35 -0
- package/spinner.gilnr6vN.js +52 -0
- package/switch.Ca9tRATr.js +68 -0
- package/systemfeedback.7I6fnqjX.js +34 -0
- package/tablist.TWjlHs5Y.js +251 -0
- package/tablist.d.ts +2 -0
- package/tabpane.CB-eudyw.js +37 -0
- package/tabs.Cr2CMXbY.js +11 -0
- package/text.C6gOJ2nV.js +59 -0
- package/textarea.CqDSxfcU.js +12 -0
- package/title.CSCXJnBN.js +43 -0
- package/toast.BN0v57nF.js +11 -0
- package/toastmanager.B9CR9plV.js +115 -0
- package/utils/render-documentation.d.ts +1 -0
- package/accordion.C6_sqiW2.js +0 -10
- package/arialiveregions.2dxodwBP.js +0 -27
- package/assets/Accordion.i4k5SMQM.css +0 -1
- package/assets/Tabs.DUqlqP6R.css +0 -1
- package/assets/linkstandalone.DIazcjIv.css +0 -1
- package/asterisk.DpzETKdT.js +0 -8
- package/button.BfcWQZhx.js +0 -135
- package/buttonround.E56F_805.js +0 -118
- package/checkbox.Dt0OWryN.js +0 -111
- package/checkboxgroup.je32bRPr.js +0 -8
- package/chip.CpnDX4Ro.js +0 -10
- package/chipgroup.Cy76KMWu.js +0 -175
- package/chunks/Accordion.Bza3TO4Y.js +0 -125
- package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +0 -40
- package/chunks/CheckboxGroup.C_2ZwEQJ.js +0 -95
- package/chunks/Chip.BvlKC503.js +0 -148
- package/chunks/CustomReactSelect.CB41lklE.js +0 -3598
- package/chunks/Dialog.ClBjJWOh.js +0 -148
- package/chunks/Drawer.ReDW3ohH.js +0 -154
- package/chunks/Fieldset.Ct_JFRs9.js +0 -99
- package/chunks/Icon.BCmt_XBG.js +0 -223
- package/chunks/Input.utils.DYbmWlx6.js +0 -111
- package/chunks/InputPassword.Cvk5J8w1.js +0 -143
- package/chunks/InputSearch.BIIW-ERk.js +0 -192
- package/chunks/InputStepper.DGzR3KY6.js +0 -296
- package/chunks/Notification.uAEjPywP.js +0 -92
- package/chunks/RadioGroup.D10-pe9H.js +0 -146
- package/chunks/Select.DsLnW29U.js +0 -194
- package/chunks/TabPane.CYuUi0oL.js +0 -51
- package/chunks/Tabs.D_JAsvoh.js +0 -270
- package/chunks/Textarea.Dh9R9YdZ.js +0 -199
- package/chunks/Toast.j7LPnQ36.js +0 -89
- package/chunks/index.CvOaL64Y.js +0 -45
- package/chunks/jsx-runtime.C115EyI4.js +0 -635
- package/chunks/useBreakpoint.B8XxjSVJ.js +0 -48
- package/combobox.D6zXg976.js +0 -47
- package/customreactselect.BcjDvZG6.js +0 -13
- package/dialog.BkVOgeWY.js +0 -9
- package/drawer.DM_NKGTQ.js +0 -9
- package/fieldset.CSNoVbL1.js +0 -11
- package/flag.BKpsdB_-.js +0 -43
- package/floatingactionbutton.D5L0B7zI.js +0 -87
- package/heading.IPIYc5vW.js +0 -50
- package/icon.Ck0BpI34.js +0 -8
- package/input.BbnmbMCI.js +0 -241
- package/inputpassword.KnZRwWCQ.js +0 -12
- package/inputsearch.DgYJPZ2v.js +0 -13
- package/inputstepper.T_of1Gz0.js +0 -15
- package/link.L8O_InKe.js +0 -116
- package/linkstandalone.BBoEniZ_.js +0 -79
- package/logo.Hul8qCFo.js +0 -65
- package/notification.Bt9TbAAt.js +0 -9
- package/numberindicator.UU7FSouT.js +0 -26
- package/optioncheckbox.BRUTnQnJ.js +0 -43
- package/radio.B-2uuWHq.js +0 -114
- package/radiogroup.DM_lF4hI.js +0 -10
- package/select.COLuwr89.js +0 -12
- package/skiptocontent.DxogCFvU.js +0 -45
- package/spinner.Bq97Og-6.js +0 -58
- package/switch.DI8YYa5G.js +0 -65
- package/systemfeedback.C3Pfxxpp.js +0 -25
- package/tabpane.BnQBzVXw.js +0 -8
- package/tabs.BaELlVri.js +0 -15
- package/text.DThvTwm8.js +0 -57
- package/textarea.Wcl_pVBb.js +0 -13
- package/title.DqzdB2Gq.js +0 -36
- package/toast.DQlMWU6I.js +0 -10
- package/toastmanager.DxHFtr5C.js +0 -119
- /package/assets/{CheckboxGroup.BH1Br1dg.css → CheckboxGroup.Dd-Huo7x.css} +0 -0
- /package/assets/{Chip.DSdLuzoi.css → Chip.dxIYIjj7.css} +0 -0
- /package/assets/{CustomReactSelect.vHt8qNKC.css → CustomReactSelect.DYDaP5r5.css} +0 -0
- /package/assets/{Dialog.BgzebVk4.css → Dialog.DXmPdExC.css} +0 -0
- /package/assets/{Drawer.Bauwxrk7.css → Drawer.BcM0epJS.css} +0 -0
- /package/assets/{Fieldset.DOdTbb7C.css → Fieldset.Og4EsnPI.css} +0 -0
- /package/assets/{Icon.DxRSBRSL.css → Icon.ZNrKuqgu.css} +0 -0
- /package/assets/{InputPassword.CG7Ugu73.css → InputPassword.DtKteerr.css} +0 -0
- /package/assets/{InputSearch.CseChMc-.css → InputSearch.Mql3oFlQ.css} +0 -0
- /package/assets/{InputStepper.C0eAYr7P.css → InputStepper.BXz1MMBg.css} +0 -0
- /package/assets/{Notification.DbRapUJo.css → Notification.DZIF-Wo6.css} +0 -0
- /package/assets/{RadioGroup.BfMo157q.css → RadioGroup.CM2mYOzc.css} +0 -0
- /package/assets/{Select.D4EXgIbz.css → Select.KvAgxJZk.css} +0 -0
- /package/assets/{Textarea.KJGPTYMz.css → Textarea.BIRQlv6m.css} +0 -0
- /package/assets/{Toast.CuafTAf7.css → Toast.CuM-yS7S.css} +0 -0
- /package/assets/{arialiveregions.DhsijBaL.css → arialiveregions.e0Q16ZWi.css} +0 -0
- /package/assets/{asterisk.BfVAUBO7.css → asterisk.B41DaZDe.css} +0 -0
- /package/assets/{button.DF4RBeC2.css → button.CpPeQPsM.css} +0 -0
- /package/assets/{buttonround.19uK_-oO.css → buttonround.BFauSRAb.css} +0 -0
- /package/assets/{checkbox.ByOoFouu.css → checkbox.BKHQN_tu.css} +0 -0
- /package/assets/{chipgroup.BzfZLbkv.css → chipgroup.CUIkyYBW.css} +0 -0
- /package/assets/{flag.B-RLcMcf.css → flag.C7i3MAAP.css} +0 -0
- /package/assets/{floatingactionbutton.E9HekT6S.css → floatingactionbutton.l0nvFiJU.css} +0 -0
- /package/assets/{heading.u4f8Mz94.css → heading.B-rdLVZD.css} +0 -0
- /package/assets/{input.BAkFKPW3.css → input.B5spSeMe.css} +0 -0
- /package/assets/{link.DDJj0D1U.css → link.Be5OF_8E.css} +0 -0
- /package/assets/{logo.CnW8alZU.css → logo.bVXt9m9R.css} +0 -0
- /package/assets/{numberindicator.BJ9vFpnd.css → numberindicator.BJnvB-K3.css} +0 -0
- /package/assets/{optioncheckbox.BZaWtRD7.css → optioncheckbox.DAffEKvY.css} +0 -0
- /package/assets/{radio.X-RTl_jo.css → radio.CGf7v0D_.css} +0 -0
- /package/assets/{skiptocontent.PTL3256m.css → skiptocontent.CTSDC_kG.css} +0 -0
- /package/assets/{spinner.2iWJWKyA.css → spinner.BJ5xwnYH.css} +0 -0
- /package/assets/{switch.gw6aa3kx.css → switch.Bc9KIyw9.css} +0 -0
- /package/assets/{systemfeedback.BPz5YlPC.css → systemfeedback.DoqgHZPH.css} +0 -0
- /package/assets/{TabPane.zywjfwo8.css → tabpane.D1LTb432.css} +0 -0
- /package/assets/{text.DjTG_qNb.css → text.BlRcxO8n.css} +0 -0
- /package/assets/{title.rosWPEG3.css → title.B0tsgJ-n.css} +0 -0
- /package/components/{Tabs/Tabs.utils.test.d.ts → Breadcrumb/Breadcrumb.test.d.ts} +0 -0
|
@@ -1,3598 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as N } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as k } from "./index.CvOaL64Y.js";
|
|
4
|
-
import * as W from "react";
|
|
5
|
-
import { useState as oe, useCallback as O, useLayoutEffect as $t, useRef as U, useMemo as ue, createContext as Kt, useContext as qt, Component as en, Fragment as Re, useEffect as It, forwardRef as tn } from "react";
|
|
6
|
-
import { keyframes as nn, jsx as v, css as ft } from "@emotion/react";
|
|
7
|
-
import { createPortal as on } from "react-dom";
|
|
8
|
-
import { t as un } from "./translate.isa3FHb8.js";
|
|
9
|
-
import { g as Fe } from "./helpers.CcqWV-wZ.js";
|
|
10
|
-
import { u as an } from "./useBreakpoint.B8XxjSVJ.js";
|
|
11
|
-
import { Asterisk as rn } from "../asterisk.DpzETKdT.js";
|
|
12
|
-
import { D as ce } from "./Icon.BCmt_XBG.js";
|
|
13
|
-
import { DSSystemFeedback as ln } from "../systemfeedback.C3Pfxxpp.js";
|
|
14
|
-
import { OptionCheckbox as sn } from "../optioncheckbox.BRUTnQnJ.js";
|
|
15
|
-
import '../assets/CustomReactSelect.vHt8qNKC.css';function ae(n) {
|
|
16
|
-
"@babel/helpers - typeof";
|
|
17
|
-
return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
18
|
-
return typeof e;
|
|
19
|
-
} : function(e) {
|
|
20
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
21
|
-
}, ae(n);
|
|
22
|
-
}
|
|
23
|
-
function cn(n, e) {
|
|
24
|
-
if (ae(n) != "object" || !n) return n;
|
|
25
|
-
var i = n[Symbol.toPrimitive];
|
|
26
|
-
if (i !== void 0) {
|
|
27
|
-
var o = i.call(n, e || "default");
|
|
28
|
-
if (ae(o) != "object") return o;
|
|
29
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30
|
-
}
|
|
31
|
-
return (e === "string" ? String : Number)(n);
|
|
32
|
-
}
|
|
33
|
-
function vt(n) {
|
|
34
|
-
var e = cn(n, "string");
|
|
35
|
-
return ae(e) == "symbol" ? e : e + "";
|
|
36
|
-
}
|
|
37
|
-
function se(n, e, i) {
|
|
38
|
-
return e = vt(e), e in n ? Object.defineProperty(n, e, {
|
|
39
|
-
value: i,
|
|
40
|
-
enumerable: !0,
|
|
41
|
-
configurable: !0,
|
|
42
|
-
writable: !0
|
|
43
|
-
}) : n[e] = i, n;
|
|
44
|
-
}
|
|
45
|
-
function je(n, e) {
|
|
46
|
-
var i = Object.keys(n);
|
|
47
|
-
if (Object.getOwnPropertySymbols) {
|
|
48
|
-
var o = Object.getOwnPropertySymbols(n);
|
|
49
|
-
e && (o = o.filter(function(t) {
|
|
50
|
-
return Object.getOwnPropertyDescriptor(n, t).enumerable;
|
|
51
|
-
})), i.push.apply(i, o);
|
|
52
|
-
}
|
|
53
|
-
return i;
|
|
54
|
-
}
|
|
55
|
-
function C(n) {
|
|
56
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
57
|
-
var i = arguments[e] != null ? arguments[e] : {};
|
|
58
|
-
e % 2 ? je(Object(i), !0).forEach(function(o) {
|
|
59
|
-
se(n, o, i[o]);
|
|
60
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : je(Object(i)).forEach(function(o) {
|
|
61
|
-
Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(i, o));
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
return n;
|
|
65
|
-
}
|
|
66
|
-
function dn(n) {
|
|
67
|
-
if (Array.isArray(n)) return n;
|
|
68
|
-
}
|
|
69
|
-
function bn(n, e) {
|
|
70
|
-
var i = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
71
|
-
if (i != null) {
|
|
72
|
-
var o, t, a, r, s = [], u = !0, l = !1;
|
|
73
|
-
try {
|
|
74
|
-
if (a = (i = i.call(n)).next, e === 0) {
|
|
75
|
-
if (Object(i) !== i) return;
|
|
76
|
-
u = !1;
|
|
77
|
-
} else for (; !(u = (o = a.call(i)).done) && (s.push(o.value), s.length !== e); u = !0) ;
|
|
78
|
-
} catch (c) {
|
|
79
|
-
l = !0, t = c;
|
|
80
|
-
} finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!u && i.return != null && (r = i.return(), Object(r) !== r)) return;
|
|
83
|
-
} finally {
|
|
84
|
-
if (l) throw t;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return s;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function De(n, e) {
|
|
91
|
-
(e == null || e > n.length) && (e = n.length);
|
|
92
|
-
for (var i = 0, o = new Array(e); i < e; i++) o[i] = n[i];
|
|
93
|
-
return o;
|
|
94
|
-
}
|
|
95
|
-
function Ct(n, e) {
|
|
96
|
-
if (n) {
|
|
97
|
-
if (typeof n == "string") return De(n, e);
|
|
98
|
-
var i = Object.prototype.toString.call(n).slice(8, -1);
|
|
99
|
-
if (i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set") return Array.from(n);
|
|
100
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return De(n, e);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function gn() {
|
|
104
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
106
|
-
}
|
|
107
|
-
function q(n, e) {
|
|
108
|
-
return dn(n) || bn(n, e) || Ct(n, e) || gn();
|
|
109
|
-
}
|
|
110
|
-
function pn(n, e) {
|
|
111
|
-
if (n == null) return {};
|
|
112
|
-
var i = {};
|
|
113
|
-
for (var o in n)
|
|
114
|
-
if (Object.prototype.hasOwnProperty.call(n, o)) {
|
|
115
|
-
if (e.indexOf(o) >= 0) continue;
|
|
116
|
-
i[o] = n[o];
|
|
117
|
-
}
|
|
118
|
-
return i;
|
|
119
|
-
}
|
|
120
|
-
function te(n, e) {
|
|
121
|
-
if (n == null) return {};
|
|
122
|
-
var i = pn(n, e), o, t;
|
|
123
|
-
if (Object.getOwnPropertySymbols) {
|
|
124
|
-
var a = Object.getOwnPropertySymbols(n);
|
|
125
|
-
for (t = 0; t < a.length; t++)
|
|
126
|
-
o = a[t], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(n, o) && (i[o] = n[o]);
|
|
127
|
-
}
|
|
128
|
-
return i;
|
|
129
|
-
}
|
|
130
|
-
var mn = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
131
|
-
function In(n) {
|
|
132
|
-
var e = n.defaultInputValue, i = e === void 0 ? "" : e, o = n.defaultMenuIsOpen, t = o === void 0 ? !1 : o, a = n.defaultValue, r = a === void 0 ? null : a, s = n.inputValue, u = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, p = n.value, f = te(n, mn), I = oe(s !== void 0 ? s : i), b = q(I, 2), m = b[0], A = b[1], x = oe(u !== void 0 ? u : t), B = q(x, 2), F = B[0], E = B[1], V = oe(p !== void 0 ? p : r), G = q(V, 2), X = G[0], H = G[1], P = O(function(L, z) {
|
|
133
|
-
typeof l == "function" && l(L, z), H(L);
|
|
134
|
-
}, [l]), T = O(function(L, z) {
|
|
135
|
-
var _;
|
|
136
|
-
typeof c == "function" && (_ = c(L, z)), A(_ !== void 0 ? _ : L);
|
|
137
|
-
}, [c]), J = O(function() {
|
|
138
|
-
typeof g == "function" && g(), E(!0);
|
|
139
|
-
}, [g]), Y = O(function() {
|
|
140
|
-
typeof d == "function" && d(), E(!1);
|
|
141
|
-
}, [d]), D = s !== void 0 ? s : m, R = u !== void 0 ? u : F, S = p !== void 0 ? p : X;
|
|
142
|
-
return C(C({}, f), {}, {
|
|
143
|
-
inputValue: D,
|
|
144
|
-
menuIsOpen: R,
|
|
145
|
-
onChange: P,
|
|
146
|
-
onInputChange: T,
|
|
147
|
-
onMenuClose: Y,
|
|
148
|
-
onMenuOpen: J,
|
|
149
|
-
value: S
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function h() {
|
|
153
|
-
return h = Object.assign ? Object.assign.bind() : function(n) {
|
|
154
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
155
|
-
var i = arguments[e];
|
|
156
|
-
for (var o in i)
|
|
157
|
-
Object.prototype.hasOwnProperty.call(i, o) && (n[o] = i[o]);
|
|
158
|
-
}
|
|
159
|
-
return n;
|
|
160
|
-
}, h.apply(this, arguments);
|
|
161
|
-
}
|
|
162
|
-
function fn(n, e) {
|
|
163
|
-
if (!(n instanceof e))
|
|
164
|
-
throw new TypeError("Cannot call a class as a function");
|
|
165
|
-
}
|
|
166
|
-
function Ue(n, e) {
|
|
167
|
-
for (var i = 0; i < e.length; i++) {
|
|
168
|
-
var o = e[i];
|
|
169
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(n, vt(o.key), o);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
function vn(n, e, i) {
|
|
173
|
-
return e && Ue(n.prototype, e), i && Ue(n, i), Object.defineProperty(n, "prototype", {
|
|
174
|
-
writable: !1
|
|
175
|
-
}), n;
|
|
176
|
-
}
|
|
177
|
-
function He(n, e) {
|
|
178
|
-
return He = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, t) {
|
|
179
|
-
return o.__proto__ = t, o;
|
|
180
|
-
}, He(n, e);
|
|
181
|
-
}
|
|
182
|
-
function Cn(n, e) {
|
|
183
|
-
if (typeof e != "function" && e !== null)
|
|
184
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
185
|
-
n.prototype = Object.create(e && e.prototype, {
|
|
186
|
-
constructor: {
|
|
187
|
-
value: n,
|
|
188
|
-
writable: !0,
|
|
189
|
-
configurable: !0
|
|
190
|
-
}
|
|
191
|
-
}), Object.defineProperty(n, "prototype", {
|
|
192
|
-
writable: !1
|
|
193
|
-
}), e && He(n, e);
|
|
194
|
-
}
|
|
195
|
-
function ve(n) {
|
|
196
|
-
return ve = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(i) {
|
|
197
|
-
return i.__proto__ || Object.getPrototypeOf(i);
|
|
198
|
-
}, ve(n);
|
|
199
|
-
}
|
|
200
|
-
function ht() {
|
|
201
|
-
try {
|
|
202
|
-
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
203
|
-
}));
|
|
204
|
-
} catch {
|
|
205
|
-
}
|
|
206
|
-
return (ht = function() {
|
|
207
|
-
return !!n;
|
|
208
|
-
})();
|
|
209
|
-
}
|
|
210
|
-
function hn(n) {
|
|
211
|
-
if (n === void 0)
|
|
212
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
213
|
-
return n;
|
|
214
|
-
}
|
|
215
|
-
function An(n, e) {
|
|
216
|
-
if (e && (ae(e) === "object" || typeof e == "function"))
|
|
217
|
-
return e;
|
|
218
|
-
if (e !== void 0)
|
|
219
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
220
|
-
return hn(n);
|
|
221
|
-
}
|
|
222
|
-
function xn(n) {
|
|
223
|
-
var e = ht();
|
|
224
|
-
return function() {
|
|
225
|
-
var o = ve(n), t;
|
|
226
|
-
if (e) {
|
|
227
|
-
var a = ve(this).constructor;
|
|
228
|
-
t = Reflect.construct(o, arguments, a);
|
|
229
|
-
} else
|
|
230
|
-
t = o.apply(this, arguments);
|
|
231
|
-
return An(this, t);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function Gn(n) {
|
|
235
|
-
if (Array.isArray(n)) return De(n);
|
|
236
|
-
}
|
|
237
|
-
function yn(n) {
|
|
238
|
-
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
239
|
-
}
|
|
240
|
-
function Bn() {
|
|
241
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
243
|
-
}
|
|
244
|
-
function Pe(n) {
|
|
245
|
-
return Gn(n) || yn(n) || Ct(n) || Bn();
|
|
246
|
-
}
|
|
247
|
-
function Fn(n, e) {
|
|
248
|
-
return e || (e = n.slice(0)), Object.freeze(Object.defineProperties(n, {
|
|
249
|
-
raw: {
|
|
250
|
-
value: Object.freeze(e)
|
|
251
|
-
}
|
|
252
|
-
}));
|
|
253
|
-
}
|
|
254
|
-
const En = Math.min, Vn = Math.max, Ce = Math.round, ge = Math.floor, he = (n) => ({
|
|
255
|
-
x: n,
|
|
256
|
-
y: n
|
|
257
|
-
});
|
|
258
|
-
function Sn(n) {
|
|
259
|
-
const {
|
|
260
|
-
x: e,
|
|
261
|
-
y: i,
|
|
262
|
-
width: o,
|
|
263
|
-
height: t
|
|
264
|
-
} = n;
|
|
265
|
-
return {
|
|
266
|
-
width: o,
|
|
267
|
-
height: t,
|
|
268
|
-
top: i,
|
|
269
|
-
left: e,
|
|
270
|
-
right: e + o,
|
|
271
|
-
bottom: i + t,
|
|
272
|
-
x: e,
|
|
273
|
-
y: i
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
function At(n) {
|
|
277
|
-
return Gt(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
278
|
-
}
|
|
279
|
-
function ee(n) {
|
|
280
|
-
var e;
|
|
281
|
-
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
282
|
-
}
|
|
283
|
-
function xt(n) {
|
|
284
|
-
var e;
|
|
285
|
-
return (e = (Gt(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
|
|
286
|
-
}
|
|
287
|
-
function Gt(n) {
|
|
288
|
-
return n instanceof Node || n instanceof ee(n).Node;
|
|
289
|
-
}
|
|
290
|
-
function Wn(n) {
|
|
291
|
-
return n instanceof Element || n instanceof ee(n).Element;
|
|
292
|
-
}
|
|
293
|
-
function Oe(n) {
|
|
294
|
-
return n instanceof HTMLElement || n instanceof ee(n).HTMLElement;
|
|
295
|
-
}
|
|
296
|
-
function Qe(n) {
|
|
297
|
-
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof ee(n).ShadowRoot;
|
|
298
|
-
}
|
|
299
|
-
function yt(n) {
|
|
300
|
-
const {
|
|
301
|
-
overflow: e,
|
|
302
|
-
overflowX: i,
|
|
303
|
-
overflowY: o,
|
|
304
|
-
display: t
|
|
305
|
-
} = Le(n);
|
|
306
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + i) && !["inline", "contents"].includes(t);
|
|
307
|
-
}
|
|
308
|
-
function Xn() {
|
|
309
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
310
|
-
}
|
|
311
|
-
function Nn(n) {
|
|
312
|
-
return ["html", "body", "#document"].includes(At(n));
|
|
313
|
-
}
|
|
314
|
-
function Le(n) {
|
|
315
|
-
return ee(n).getComputedStyle(n);
|
|
316
|
-
}
|
|
317
|
-
function Zn(n) {
|
|
318
|
-
if (At(n) === "html")
|
|
319
|
-
return n;
|
|
320
|
-
const e = (
|
|
321
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
322
|
-
n.assignedSlot || // DOM Element detected.
|
|
323
|
-
n.parentNode || // ShadowRoot detected.
|
|
324
|
-
Qe(n) && n.host || // Fallback.
|
|
325
|
-
xt(n)
|
|
326
|
-
);
|
|
327
|
-
return Qe(e) ? e.host : e;
|
|
328
|
-
}
|
|
329
|
-
function Bt(n) {
|
|
330
|
-
const e = Zn(n);
|
|
331
|
-
return Nn(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : Oe(e) && yt(e) ? e : Bt(e);
|
|
332
|
-
}
|
|
333
|
-
function Ae(n, e, i) {
|
|
334
|
-
var o;
|
|
335
|
-
e === void 0 && (e = []), i === void 0 && (i = !0);
|
|
336
|
-
const t = Bt(n), a = t === ((o = n.ownerDocument) == null ? void 0 : o.body), r = ee(t);
|
|
337
|
-
return a ? e.concat(r, r.visualViewport || [], yt(t) ? t : [], r.frameElement && i ? Ae(r.frameElement) : []) : e.concat(t, Ae(t, [], i));
|
|
338
|
-
}
|
|
339
|
-
function Rn(n) {
|
|
340
|
-
const e = Le(n);
|
|
341
|
-
let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
342
|
-
const t = Oe(n), a = t ? n.offsetWidth : i, r = t ? n.offsetHeight : o, s = Ce(i) !== a || Ce(o) !== r;
|
|
343
|
-
return s && (i = a, o = r), {
|
|
344
|
-
width: i,
|
|
345
|
-
height: o,
|
|
346
|
-
$: s
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function Me(n) {
|
|
350
|
-
return Wn(n) ? n : n.contextElement;
|
|
351
|
-
}
|
|
352
|
-
function $e(n) {
|
|
353
|
-
const e = Me(n);
|
|
354
|
-
if (!Oe(e))
|
|
355
|
-
return he(1);
|
|
356
|
-
const i = e.getBoundingClientRect(), {
|
|
357
|
-
width: o,
|
|
358
|
-
height: t,
|
|
359
|
-
$: a
|
|
360
|
-
} = Rn(e);
|
|
361
|
-
let r = (a ? Ce(i.width) : i.width) / o, s = (a ? Ce(i.height) : i.height) / t;
|
|
362
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
363
|
-
x: r,
|
|
364
|
-
y: s
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
const Dn = /* @__PURE__ */ he(0);
|
|
368
|
-
function Hn(n) {
|
|
369
|
-
const e = ee(n);
|
|
370
|
-
return !Xn() || !e.visualViewport ? Dn : {
|
|
371
|
-
x: e.visualViewport.offsetLeft,
|
|
372
|
-
y: e.visualViewport.offsetTop
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function wn(n, e, i) {
|
|
376
|
-
return !1;
|
|
377
|
-
}
|
|
378
|
-
function Ke(n, e, i, o) {
|
|
379
|
-
e === void 0 && (e = !1);
|
|
380
|
-
const t = n.getBoundingClientRect(), a = Me(n);
|
|
381
|
-
let r = he(1);
|
|
382
|
-
e && (r = $e(n));
|
|
383
|
-
const s = wn() ? Hn(a) : he(0);
|
|
384
|
-
let u = (t.left + s.x) / r.x, l = (t.top + s.y) / r.y, c = t.width / r.x, d = t.height / r.y;
|
|
385
|
-
if (a) {
|
|
386
|
-
const g = ee(a), p = o;
|
|
387
|
-
let f = g, I = f.frameElement;
|
|
388
|
-
for (; I && o && p !== f; ) {
|
|
389
|
-
const b = $e(I), m = I.getBoundingClientRect(), A = Le(I), x = m.left + (I.clientLeft + parseFloat(A.paddingLeft)) * b.x, B = m.top + (I.clientTop + parseFloat(A.paddingTop)) * b.y;
|
|
390
|
-
u *= b.x, l *= b.y, c *= b.x, d *= b.y, u += x, l += B, f = ee(I), I = f.frameElement;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
return Sn({
|
|
394
|
-
width: c,
|
|
395
|
-
height: d,
|
|
396
|
-
x: u,
|
|
397
|
-
y: l
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
function Tn(n, e) {
|
|
401
|
-
let i = null, o;
|
|
402
|
-
const t = xt(n);
|
|
403
|
-
function a() {
|
|
404
|
-
var s;
|
|
405
|
-
clearTimeout(o), (s = i) == null || s.disconnect(), i = null;
|
|
406
|
-
}
|
|
407
|
-
function r(s, u) {
|
|
408
|
-
s === void 0 && (s = !1), u === void 0 && (u = 1), a();
|
|
409
|
-
const {
|
|
410
|
-
left: l,
|
|
411
|
-
top: c,
|
|
412
|
-
width: d,
|
|
413
|
-
height: g
|
|
414
|
-
} = n.getBoundingClientRect();
|
|
415
|
-
if (s || e(), !d || !g)
|
|
416
|
-
return;
|
|
417
|
-
const p = ge(c), f = ge(t.clientWidth - (l + d)), I = ge(t.clientHeight - (c + g)), b = ge(l), A = {
|
|
418
|
-
rootMargin: -p + "px " + -f + "px " + -I + "px " + -b + "px",
|
|
419
|
-
threshold: Vn(0, En(1, u)) || 1
|
|
420
|
-
};
|
|
421
|
-
let x = !0;
|
|
422
|
-
function B(F) {
|
|
423
|
-
const E = F[0].intersectionRatio;
|
|
424
|
-
if (E !== u) {
|
|
425
|
-
if (!x)
|
|
426
|
-
return r();
|
|
427
|
-
E ? r(!1, E) : o = setTimeout(() => {
|
|
428
|
-
r(!1, 1e-7);
|
|
429
|
-
}, 1e3);
|
|
430
|
-
}
|
|
431
|
-
x = !1;
|
|
432
|
-
}
|
|
433
|
-
try {
|
|
434
|
-
i = new IntersectionObserver(B, {
|
|
435
|
-
...A,
|
|
436
|
-
// Handle <iframe>s
|
|
437
|
-
root: t.ownerDocument
|
|
438
|
-
});
|
|
439
|
-
} catch {
|
|
440
|
-
i = new IntersectionObserver(B, A);
|
|
441
|
-
}
|
|
442
|
-
i.observe(n);
|
|
443
|
-
}
|
|
444
|
-
return r(!0), a;
|
|
445
|
-
}
|
|
446
|
-
function Pn(n, e, i, o) {
|
|
447
|
-
o === void 0 && (o = {});
|
|
448
|
-
const {
|
|
449
|
-
ancestorScroll: t = !0,
|
|
450
|
-
ancestorResize: a = !0,
|
|
451
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
452
|
-
layoutShift: s = typeof IntersectionObserver == "function",
|
|
453
|
-
animationFrame: u = !1
|
|
454
|
-
} = o, l = Me(n), c = t || a ? [...l ? Ae(l) : [], ...Ae(e)] : [];
|
|
455
|
-
c.forEach((m) => {
|
|
456
|
-
t && m.addEventListener("scroll", i, {
|
|
457
|
-
passive: !0
|
|
458
|
-
}), a && m.addEventListener("resize", i);
|
|
459
|
-
});
|
|
460
|
-
const d = l && s ? Tn(l, i) : null;
|
|
461
|
-
let g = -1, p = null;
|
|
462
|
-
r && (p = new ResizeObserver((m) => {
|
|
463
|
-
let [A] = m;
|
|
464
|
-
A && A.target === l && p && (p.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
465
|
-
var x;
|
|
466
|
-
(x = p) == null || x.observe(e);
|
|
467
|
-
})), i();
|
|
468
|
-
}), l && !u && p.observe(l), p.observe(e));
|
|
469
|
-
let f, I = u ? Ke(n) : null;
|
|
470
|
-
u && b();
|
|
471
|
-
function b() {
|
|
472
|
-
const m = Ke(n);
|
|
473
|
-
I && (m.x !== I.x || m.y !== I.y || m.width !== I.width || m.height !== I.height) && i(), I = m, f = requestAnimationFrame(b);
|
|
474
|
-
}
|
|
475
|
-
return i(), () => {
|
|
476
|
-
var m;
|
|
477
|
-
c.forEach((A) => {
|
|
478
|
-
t && A.removeEventListener("scroll", i), a && A.removeEventListener("resize", i);
|
|
479
|
-
}), d == null || d(), (m = p) == null || m.disconnect(), p = null, u && cancelAnimationFrame(f);
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
var we = $t, On = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], xe = function() {
|
|
483
|
-
};
|
|
484
|
-
function Ln(n, e) {
|
|
485
|
-
return e ? e[0] === "-" ? n + e : n + "__" + e : n;
|
|
486
|
-
}
|
|
487
|
-
function Mn(n, e) {
|
|
488
|
-
for (var i = arguments.length, o = new Array(i > 2 ? i - 2 : 0), t = 2; t < i; t++)
|
|
489
|
-
o[t - 2] = arguments[t];
|
|
490
|
-
var a = [].concat(o);
|
|
491
|
-
if (e && n)
|
|
492
|
-
for (var r in e)
|
|
493
|
-
e.hasOwnProperty(r) && e[r] && a.push("".concat(Ln(n, r)));
|
|
494
|
-
return a.filter(function(s) {
|
|
495
|
-
return s;
|
|
496
|
-
}).map(function(s) {
|
|
497
|
-
return String(s).trim();
|
|
498
|
-
}).join(" ");
|
|
499
|
-
}
|
|
500
|
-
var qe = function(e) {
|
|
501
|
-
return $n(e) ? e.filter(Boolean) : ae(e) === "object" && e !== null ? [e] : [];
|
|
502
|
-
}, Ft = function(e) {
|
|
503
|
-
e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
|
|
504
|
-
var i = te(e, On);
|
|
505
|
-
return C({}, i);
|
|
506
|
-
}, Z = function(e, i, o) {
|
|
507
|
-
var t = e.cx, a = e.getStyles, r = e.getClassNames, s = e.className;
|
|
508
|
-
return {
|
|
509
|
-
css: a(i, e),
|
|
510
|
-
className: t(o ?? {}, r(i, e), s)
|
|
511
|
-
};
|
|
512
|
-
};
|
|
513
|
-
function Be(n) {
|
|
514
|
-
return [document.documentElement, document.body, window].indexOf(n) > -1;
|
|
515
|
-
}
|
|
516
|
-
function kn(n) {
|
|
517
|
-
return Be(n) ? window.innerHeight : n.clientHeight;
|
|
518
|
-
}
|
|
519
|
-
function Et(n) {
|
|
520
|
-
return Be(n) ? window.pageYOffset : n.scrollTop;
|
|
521
|
-
}
|
|
522
|
-
function Ge(n, e) {
|
|
523
|
-
if (Be(n)) {
|
|
524
|
-
window.scrollTo(0, e);
|
|
525
|
-
return;
|
|
526
|
-
}
|
|
527
|
-
n.scrollTop = e;
|
|
528
|
-
}
|
|
529
|
-
function Jn(n) {
|
|
530
|
-
var e = getComputedStyle(n), i = e.position === "absolute", o = /(auto|scroll)/;
|
|
531
|
-
if (e.position === "fixed") return document.documentElement;
|
|
532
|
-
for (var t = n; t = t.parentElement; )
|
|
533
|
-
if (e = getComputedStyle(t), !(i && e.position === "static") && o.test(e.overflow + e.overflowY + e.overflowX))
|
|
534
|
-
return t;
|
|
535
|
-
return document.documentElement;
|
|
536
|
-
}
|
|
537
|
-
function Yn(n, e, i, o) {
|
|
538
|
-
return i * ((n = n / o - 1) * n * n + 1) + e;
|
|
539
|
-
}
|
|
540
|
-
function pe(n, e) {
|
|
541
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : xe, t = Et(n), a = e - t, r = 10, s = 0;
|
|
542
|
-
function u() {
|
|
543
|
-
s += r;
|
|
544
|
-
var l = Yn(s, t, a, i);
|
|
545
|
-
Ge(n, l), s < i ? window.requestAnimationFrame(u) : o(n);
|
|
546
|
-
}
|
|
547
|
-
u();
|
|
548
|
-
}
|
|
549
|
-
function et(n, e) {
|
|
550
|
-
var i = n.getBoundingClientRect(), o = e.getBoundingClientRect(), t = e.offsetHeight / 3;
|
|
551
|
-
o.bottom + t > i.bottom ? Ge(n, Math.min(e.offsetTop + e.clientHeight - n.offsetHeight + t, n.scrollHeight)) : o.top - t < i.top && Ge(n, Math.max(e.offsetTop - t, 0));
|
|
552
|
-
}
|
|
553
|
-
function zn(n) {
|
|
554
|
-
var e = n.getBoundingClientRect();
|
|
555
|
-
return {
|
|
556
|
-
bottom: e.bottom,
|
|
557
|
-
height: e.height,
|
|
558
|
-
left: e.left,
|
|
559
|
-
right: e.right,
|
|
560
|
-
top: e.top,
|
|
561
|
-
width: e.width
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
function tt() {
|
|
565
|
-
try {
|
|
566
|
-
return document.createEvent("TouchEvent"), !0;
|
|
567
|
-
} catch {
|
|
568
|
-
return !1;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
function _n() {
|
|
572
|
-
try {
|
|
573
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
574
|
-
} catch {
|
|
575
|
-
return !1;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
var Vt = !1, jn = {
|
|
579
|
-
get passive() {
|
|
580
|
-
return Vt = !0;
|
|
581
|
-
}
|
|
582
|
-
}, me = typeof window < "u" ? window : {};
|
|
583
|
-
me.addEventListener && me.removeEventListener && (me.addEventListener("p", xe, jn), me.removeEventListener("p", xe, !1));
|
|
584
|
-
var Un = Vt;
|
|
585
|
-
function Qn(n) {
|
|
586
|
-
return n != null;
|
|
587
|
-
}
|
|
588
|
-
function $n(n) {
|
|
589
|
-
return Array.isArray(n);
|
|
590
|
-
}
|
|
591
|
-
function Ie(n, e, i) {
|
|
592
|
-
return n ? e : i;
|
|
593
|
-
}
|
|
594
|
-
var Kn = function(e) {
|
|
595
|
-
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
596
|
-
o[t - 1] = arguments[t];
|
|
597
|
-
var a = Object.entries(e).filter(function(r) {
|
|
598
|
-
var s = q(r, 1), u = s[0];
|
|
599
|
-
return !o.includes(u);
|
|
600
|
-
});
|
|
601
|
-
return a.reduce(function(r, s) {
|
|
602
|
-
var u = q(s, 2), l = u[0], c = u[1];
|
|
603
|
-
return r[l] = c, r;
|
|
604
|
-
}, {});
|
|
605
|
-
}, qn = ["children", "innerProps"], ei = ["children", "innerProps"];
|
|
606
|
-
function ti(n) {
|
|
607
|
-
var e = n.maxHeight, i = n.menuEl, o = n.minHeight, t = n.placement, a = n.shouldScroll, r = n.isFixedPosition, s = n.controlHeight, u = Jn(i), l = {
|
|
608
|
-
placement: "bottom",
|
|
609
|
-
maxHeight: e
|
|
610
|
-
};
|
|
611
|
-
if (!i || !i.offsetParent) return l;
|
|
612
|
-
var c = u.getBoundingClientRect(), d = c.height, g = i.getBoundingClientRect(), p = g.bottom, f = g.height, I = g.top, b = i.offsetParent.getBoundingClientRect(), m = b.top, A = r ? window.innerHeight : kn(u), x = Et(u), B = parseInt(getComputedStyle(i).marginBottom, 10), F = parseInt(getComputedStyle(i).marginTop, 10), E = m - F, V = A - I, G = E + x, X = d - x - I, H = p - A + x + B, P = x + I - F, T = 160;
|
|
613
|
-
switch (t) {
|
|
614
|
-
case "auto":
|
|
615
|
-
case "bottom":
|
|
616
|
-
if (V >= f)
|
|
617
|
-
return {
|
|
618
|
-
placement: "bottom",
|
|
619
|
-
maxHeight: e
|
|
620
|
-
};
|
|
621
|
-
if (X >= f && !r)
|
|
622
|
-
return a && pe(u, H, T), {
|
|
623
|
-
placement: "bottom",
|
|
624
|
-
maxHeight: e
|
|
625
|
-
};
|
|
626
|
-
if (!r && X >= o || r && V >= o) {
|
|
627
|
-
a && pe(u, H, T);
|
|
628
|
-
var J = r ? V - B : X - B;
|
|
629
|
-
return {
|
|
630
|
-
placement: "bottom",
|
|
631
|
-
maxHeight: J
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
if (t === "auto" || r) {
|
|
635
|
-
var Y = e, D = r ? E : G;
|
|
636
|
-
return D >= o && (Y = Math.min(D - B - s, e)), {
|
|
637
|
-
placement: "top",
|
|
638
|
-
maxHeight: Y
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
if (t === "bottom")
|
|
642
|
-
return a && Ge(u, H), {
|
|
643
|
-
placement: "bottom",
|
|
644
|
-
maxHeight: e
|
|
645
|
-
};
|
|
646
|
-
break;
|
|
647
|
-
case "top":
|
|
648
|
-
if (E >= f)
|
|
649
|
-
return {
|
|
650
|
-
placement: "top",
|
|
651
|
-
maxHeight: e
|
|
652
|
-
};
|
|
653
|
-
if (G >= f && !r)
|
|
654
|
-
return a && pe(u, P, T), {
|
|
655
|
-
placement: "top",
|
|
656
|
-
maxHeight: e
|
|
657
|
-
};
|
|
658
|
-
if (!r && G >= o || r && E >= o) {
|
|
659
|
-
var R = e;
|
|
660
|
-
return (!r && G >= o || r && E >= o) && (R = r ? E - F : G - F), a && pe(u, P, T), {
|
|
661
|
-
placement: "top",
|
|
662
|
-
maxHeight: R
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
return {
|
|
666
|
-
placement: "bottom",
|
|
667
|
-
maxHeight: e
|
|
668
|
-
};
|
|
669
|
-
default:
|
|
670
|
-
throw new Error('Invalid placement provided "'.concat(t, '".'));
|
|
671
|
-
}
|
|
672
|
-
return l;
|
|
673
|
-
}
|
|
674
|
-
function ni(n) {
|
|
675
|
-
var e = {
|
|
676
|
-
bottom: "top",
|
|
677
|
-
top: "bottom"
|
|
678
|
-
};
|
|
679
|
-
return n ? e[n] : "bottom";
|
|
680
|
-
}
|
|
681
|
-
var St = function(e) {
|
|
682
|
-
return e === "auto" ? "bottom" : e;
|
|
683
|
-
}, ii = function(e, i) {
|
|
684
|
-
var o, t = e.placement, a = e.theme, r = a.borderRadius, s = a.spacing, u = a.colors;
|
|
685
|
-
return C((o = {
|
|
686
|
-
label: "menu"
|
|
687
|
-
}, se(o, ni(t), "100%"), se(o, "position", "absolute"), se(o, "width", "100%"), se(o, "zIndex", 1), o), i ? {} : {
|
|
688
|
-
backgroundColor: u.neutral0,
|
|
689
|
-
borderRadius: r,
|
|
690
|
-
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
691
|
-
marginBottom: s.menuGutter,
|
|
692
|
-
marginTop: s.menuGutter
|
|
693
|
-
});
|
|
694
|
-
}, Wt = /* @__PURE__ */ Kt(null), oi = function(e) {
|
|
695
|
-
var i = e.children, o = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, r = e.menuPosition, s = e.menuShouldScrollIntoView, u = e.theme, l = qt(Wt) || {}, c = l.setPortalPlacement, d = U(null), g = oe(t), p = q(g, 2), f = p[0], I = p[1], b = oe(null), m = q(b, 2), A = m[0], x = m[1], B = u.spacing.controlHeight;
|
|
696
|
-
return we(function() {
|
|
697
|
-
var F = d.current;
|
|
698
|
-
if (F) {
|
|
699
|
-
var E = r === "fixed", V = s && !E, G = ti({
|
|
700
|
-
maxHeight: t,
|
|
701
|
-
menuEl: F,
|
|
702
|
-
minHeight: o,
|
|
703
|
-
placement: a,
|
|
704
|
-
shouldScroll: V,
|
|
705
|
-
isFixedPosition: E,
|
|
706
|
-
controlHeight: B
|
|
707
|
-
});
|
|
708
|
-
I(G.maxHeight), x(G.placement), c == null || c(G.placement);
|
|
709
|
-
}
|
|
710
|
-
}, [t, a, r, s, o, c, B]), i({
|
|
711
|
-
ref: d,
|
|
712
|
-
placerProps: C(C({}, e), {}, {
|
|
713
|
-
placement: A || St(a),
|
|
714
|
-
maxHeight: f
|
|
715
|
-
})
|
|
716
|
-
});
|
|
717
|
-
}, ui = function(e) {
|
|
718
|
-
var i = e.children, o = e.innerRef, t = e.innerProps;
|
|
719
|
-
return v("div", h({}, Z(e, "menu", {
|
|
720
|
-
menu: !0
|
|
721
|
-
}), {
|
|
722
|
-
ref: o
|
|
723
|
-
}, t), i);
|
|
724
|
-
}, ai = ui, ri = function(e, i) {
|
|
725
|
-
var o = e.maxHeight, t = e.theme.spacing.baseUnit;
|
|
726
|
-
return C({
|
|
727
|
-
maxHeight: o,
|
|
728
|
-
overflowY: "auto",
|
|
729
|
-
position: "relative",
|
|
730
|
-
// required for offset[Height, Top] > keyboard scroll
|
|
731
|
-
WebkitOverflowScrolling: "touch"
|
|
732
|
-
}, i ? {} : {
|
|
733
|
-
paddingBottom: t,
|
|
734
|
-
paddingTop: t
|
|
735
|
-
});
|
|
736
|
-
}, li = function(e) {
|
|
737
|
-
var i = e.children, o = e.innerProps, t = e.innerRef, a = e.isMulti;
|
|
738
|
-
return v("div", h({}, Z(e, "menuList", {
|
|
739
|
-
"menu-list": !0,
|
|
740
|
-
"menu-list--is-multi": a
|
|
741
|
-
}), {
|
|
742
|
-
ref: t
|
|
743
|
-
}, o), i);
|
|
744
|
-
}, Xt = function(e, i) {
|
|
745
|
-
var o = e.theme, t = o.spacing.baseUnit, a = o.colors;
|
|
746
|
-
return C({
|
|
747
|
-
textAlign: "center"
|
|
748
|
-
}, i ? {} : {
|
|
749
|
-
color: a.neutral40,
|
|
750
|
-
padding: "".concat(t * 2, "px ").concat(t * 3, "px")
|
|
751
|
-
});
|
|
752
|
-
}, si = Xt, ci = Xt, di = function(e) {
|
|
753
|
-
var i = e.children, o = i === void 0 ? "No options" : i, t = e.innerProps, a = te(e, qn);
|
|
754
|
-
return v("div", h({}, Z(C(C({}, a), {}, {
|
|
755
|
-
children: o,
|
|
756
|
-
innerProps: t
|
|
757
|
-
}), "noOptionsMessage", {
|
|
758
|
-
"menu-notice": !0,
|
|
759
|
-
"menu-notice--no-options": !0
|
|
760
|
-
}), t), o);
|
|
761
|
-
}, bi = function(e) {
|
|
762
|
-
var i = e.children, o = i === void 0 ? "Loading..." : i, t = e.innerProps, a = te(e, ei);
|
|
763
|
-
return v("div", h({}, Z(C(C({}, a), {}, {
|
|
764
|
-
children: o,
|
|
765
|
-
innerProps: t
|
|
766
|
-
}), "loadingMessage", {
|
|
767
|
-
"menu-notice": !0,
|
|
768
|
-
"menu-notice--loading": !0
|
|
769
|
-
}), t), o);
|
|
770
|
-
}, gi = function(e) {
|
|
771
|
-
var i = e.rect, o = e.offset, t = e.position;
|
|
772
|
-
return {
|
|
773
|
-
left: i.left,
|
|
774
|
-
position: t,
|
|
775
|
-
top: o,
|
|
776
|
-
width: i.width,
|
|
777
|
-
zIndex: 1
|
|
778
|
-
};
|
|
779
|
-
}, pi = function(e) {
|
|
780
|
-
var i = e.appendTo, o = e.children, t = e.controlElement, a = e.innerProps, r = e.menuPlacement, s = e.menuPosition, u = U(null), l = U(null), c = oe(St(r)), d = q(c, 2), g = d[0], p = d[1], f = ue(function() {
|
|
781
|
-
return {
|
|
782
|
-
setPortalPlacement: p
|
|
783
|
-
};
|
|
784
|
-
}, []), I = oe(null), b = q(I, 2), m = b[0], A = b[1], x = O(function() {
|
|
785
|
-
if (t) {
|
|
786
|
-
var V = zn(t), G = s === "fixed" ? 0 : window.pageYOffset, X = V[g] + G;
|
|
787
|
-
(X !== (m == null ? void 0 : m.offset) || V.left !== (m == null ? void 0 : m.rect.left) || V.width !== (m == null ? void 0 : m.rect.width)) && A({
|
|
788
|
-
offset: X,
|
|
789
|
-
rect: V
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
}, [t, s, g, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
|
|
793
|
-
we(function() {
|
|
794
|
-
x();
|
|
795
|
-
}, [x]);
|
|
796
|
-
var B = O(function() {
|
|
797
|
-
typeof l.current == "function" && (l.current(), l.current = null), t && u.current && (l.current = Pn(t, u.current, x, {
|
|
798
|
-
elementResize: "ResizeObserver" in window
|
|
799
|
-
}));
|
|
800
|
-
}, [t, x]);
|
|
801
|
-
we(function() {
|
|
802
|
-
B();
|
|
803
|
-
}, [B]);
|
|
804
|
-
var F = O(function(V) {
|
|
805
|
-
u.current = V, B();
|
|
806
|
-
}, [B]);
|
|
807
|
-
if (!i && s !== "fixed" || !m) return null;
|
|
808
|
-
var E = v("div", h({
|
|
809
|
-
ref: F
|
|
810
|
-
}, Z(C(C({}, e), {}, {
|
|
811
|
-
offset: m.offset,
|
|
812
|
-
position: s,
|
|
813
|
-
rect: m.rect
|
|
814
|
-
}), "menuPortal", {
|
|
815
|
-
"menu-portal": !0
|
|
816
|
-
}), a), o);
|
|
817
|
-
return v(Wt.Provider, {
|
|
818
|
-
value: f
|
|
819
|
-
}, i ? /* @__PURE__ */ on(E, i) : E);
|
|
820
|
-
}, mi = function(e) {
|
|
821
|
-
var i = e.isDisabled, o = e.isRtl;
|
|
822
|
-
return {
|
|
823
|
-
label: "container",
|
|
824
|
-
direction: o ? "rtl" : void 0,
|
|
825
|
-
pointerEvents: i ? "none" : void 0,
|
|
826
|
-
// cancel mouse events when disabled
|
|
827
|
-
position: "relative"
|
|
828
|
-
};
|
|
829
|
-
}, Ii = function(e) {
|
|
830
|
-
var i = e.children, o = e.innerProps, t = e.isDisabled, a = e.isRtl;
|
|
831
|
-
return v("div", h({}, Z(e, "container", {
|
|
832
|
-
"--is-disabled": t,
|
|
833
|
-
"--is-rtl": a
|
|
834
|
-
}), o), i);
|
|
835
|
-
}, fi = function(e, i) {
|
|
836
|
-
var o = e.theme.spacing, t = e.isMulti, a = e.hasValue, r = e.selectProps.controlShouldRenderValue;
|
|
837
|
-
return C({
|
|
838
|
-
alignItems: "center",
|
|
839
|
-
display: t && a && r ? "flex" : "grid",
|
|
840
|
-
flex: 1,
|
|
841
|
-
flexWrap: "wrap",
|
|
842
|
-
WebkitOverflowScrolling: "touch",
|
|
843
|
-
position: "relative",
|
|
844
|
-
overflow: "hidden"
|
|
845
|
-
}, i ? {} : {
|
|
846
|
-
padding: "".concat(o.baseUnit / 2, "px ").concat(o.baseUnit * 2, "px")
|
|
847
|
-
});
|
|
848
|
-
}, vi = function(e) {
|
|
849
|
-
var i = e.children, o = e.innerProps, t = e.isMulti, a = e.hasValue;
|
|
850
|
-
return v("div", h({}, Z(e, "valueContainer", {
|
|
851
|
-
"value-container": !0,
|
|
852
|
-
"value-container--is-multi": t,
|
|
853
|
-
"value-container--has-value": a
|
|
854
|
-
}), o), i);
|
|
855
|
-
}, Ci = function() {
|
|
856
|
-
return {
|
|
857
|
-
alignItems: "center",
|
|
858
|
-
alignSelf: "stretch",
|
|
859
|
-
display: "flex",
|
|
860
|
-
flexShrink: 0
|
|
861
|
-
};
|
|
862
|
-
}, hi = function(e) {
|
|
863
|
-
var i = e.children, o = e.innerProps;
|
|
864
|
-
return v("div", h({}, Z(e, "indicatorsContainer", {
|
|
865
|
-
indicators: !0
|
|
866
|
-
}), o), i);
|
|
867
|
-
}, nt, Ai = ["size"], xi = ["innerProps", "isRtl", "size"];
|
|
868
|
-
function Gi() {
|
|
869
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
870
|
-
}
|
|
871
|
-
var yi = process.env.NODE_ENV === "production" ? {
|
|
872
|
-
name: "8mmkcg",
|
|
873
|
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
874
|
-
} : {
|
|
875
|
-
name: "tj5bde-Svg",
|
|
876
|
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
877
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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XG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
|
878
|
-
toString: Gi
|
|
879
|
-
}, Nt = function(e) {
|
|
880
|
-
var i = e.size, o = te(e, Ai);
|
|
881
|
-
return v("svg", h({
|
|
882
|
-
height: i,
|
|
883
|
-
width: i,
|
|
884
|
-
viewBox: "0 0 20 20",
|
|
885
|
-
"aria-hidden": "true",
|
|
886
|
-
focusable: "false",
|
|
887
|
-
css: yi
|
|
888
|
-
}, o));
|
|
889
|
-
}, ke = function(e) {
|
|
890
|
-
return v(Nt, h({
|
|
891
|
-
size: 20
|
|
892
|
-
}, e), v("path", {
|
|
893
|
-
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
894
|
-
}));
|
|
895
|
-
}, Zt = function(e) {
|
|
896
|
-
return v(Nt, h({
|
|
897
|
-
size: 20
|
|
898
|
-
}, e), v("path", {
|
|
899
|
-
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
900
|
-
}));
|
|
901
|
-
}, Rt = function(e, i) {
|
|
902
|
-
var o = e.isFocused, t = e.theme, a = t.spacing.baseUnit, r = t.colors;
|
|
903
|
-
return C({
|
|
904
|
-
label: "indicatorContainer",
|
|
905
|
-
display: "flex",
|
|
906
|
-
transition: "color 150ms"
|
|
907
|
-
}, i ? {} : {
|
|
908
|
-
color: o ? r.neutral60 : r.neutral20,
|
|
909
|
-
padding: a * 2,
|
|
910
|
-
":hover": {
|
|
911
|
-
color: o ? r.neutral80 : r.neutral40
|
|
912
|
-
}
|
|
913
|
-
});
|
|
914
|
-
}, Bi = Rt, Fi = function(e) {
|
|
915
|
-
var i = e.children, o = e.innerProps;
|
|
916
|
-
return v("div", h({}, Z(e, "dropdownIndicator", {
|
|
917
|
-
indicator: !0,
|
|
918
|
-
"dropdown-indicator": !0
|
|
919
|
-
}), o), i || v(Zt, null));
|
|
920
|
-
}, Ei = Rt, Vi = function(e) {
|
|
921
|
-
var i = e.children, o = e.innerProps;
|
|
922
|
-
return v("div", h({}, Z(e, "clearIndicator", {
|
|
923
|
-
indicator: !0,
|
|
924
|
-
"clear-indicator": !0
|
|
925
|
-
}), o), i || v(ke, null));
|
|
926
|
-
}, Si = function(e, i) {
|
|
927
|
-
var o = e.isDisabled, t = e.theme, a = t.spacing.baseUnit, r = t.colors;
|
|
928
|
-
return C({
|
|
929
|
-
label: "indicatorSeparator",
|
|
930
|
-
alignSelf: "stretch",
|
|
931
|
-
width: 1
|
|
932
|
-
}, i ? {} : {
|
|
933
|
-
backgroundColor: o ? r.neutral10 : r.neutral20,
|
|
934
|
-
marginBottom: a * 2,
|
|
935
|
-
marginTop: a * 2
|
|
936
|
-
});
|
|
937
|
-
}, Wi = function(e) {
|
|
938
|
-
var i = e.innerProps;
|
|
939
|
-
return v("span", h({}, i, Z(e, "indicatorSeparator", {
|
|
940
|
-
"indicator-separator": !0
|
|
941
|
-
})));
|
|
942
|
-
}, Xi = nn(nt || (nt = Fn([`
|
|
943
|
-
0%, 80%, 100% { opacity: 0; }
|
|
944
|
-
40% { opacity: 1; }
|
|
945
|
-
`]))), Ni = function(e, i) {
|
|
946
|
-
var o = e.isFocused, t = e.size, a = e.theme, r = a.colors, s = a.spacing.baseUnit;
|
|
947
|
-
return C({
|
|
948
|
-
label: "loadingIndicator",
|
|
949
|
-
display: "flex",
|
|
950
|
-
transition: "color 150ms",
|
|
951
|
-
alignSelf: "center",
|
|
952
|
-
fontSize: t,
|
|
953
|
-
lineHeight: 1,
|
|
954
|
-
marginRight: t,
|
|
955
|
-
textAlign: "center",
|
|
956
|
-
verticalAlign: "middle"
|
|
957
|
-
}, i ? {} : {
|
|
958
|
-
color: o ? r.neutral60 : r.neutral20,
|
|
959
|
-
padding: s * 2
|
|
960
|
-
});
|
|
961
|
-
}, Ee = function(e) {
|
|
962
|
-
var i = e.delay, o = e.offset;
|
|
963
|
-
return v("span", {
|
|
964
|
-
css: /* @__PURE__ */ ft({
|
|
965
|
-
animation: "".concat(Xi, " 1s ease-in-out ").concat(i, "ms infinite;"),
|
|
966
|
-
backgroundColor: "currentColor",
|
|
967
|
-
borderRadius: "1em",
|
|
968
|
-
display: "inline-block",
|
|
969
|
-
marginLeft: o ? "1em" : void 0,
|
|
970
|
-
height: "1em",
|
|
971
|
-
verticalAlign: "top",
|
|
972
|
-
width: "1em"
|
|
973
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpze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FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
|
|
974
|
-
});
|
|
975
|
-
}, Zi = function(e) {
|
|
976
|
-
var i = e.innerProps, o = e.isRtl, t = e.size, a = t === void 0 ? 4 : t, r = te(e, xi);
|
|
977
|
-
return v("div", h({}, Z(C(C({}, r), {}, {
|
|
978
|
-
innerProps: i,
|
|
979
|
-
isRtl: o,
|
|
980
|
-
size: a
|
|
981
|
-
}), "loadingIndicator", {
|
|
982
|
-
indicator: !0,
|
|
983
|
-
"loading-indicator": !0
|
|
984
|
-
}), i), v(Ee, {
|
|
985
|
-
delay: 0,
|
|
986
|
-
offset: o
|
|
987
|
-
}), v(Ee, {
|
|
988
|
-
delay: 160,
|
|
989
|
-
offset: !0
|
|
990
|
-
}), v(Ee, {
|
|
991
|
-
delay: 320,
|
|
992
|
-
offset: !o
|
|
993
|
-
}));
|
|
994
|
-
}, Ri = function(e, i) {
|
|
995
|
-
var o = e.isDisabled, t = e.isFocused, a = e.theme, r = a.colors, s = a.borderRadius, u = a.spacing;
|
|
996
|
-
return C({
|
|
997
|
-
label: "control",
|
|
998
|
-
alignItems: "center",
|
|
999
|
-
cursor: "default",
|
|
1000
|
-
display: "flex",
|
|
1001
|
-
flexWrap: "wrap",
|
|
1002
|
-
justifyContent: "space-between",
|
|
1003
|
-
minHeight: u.controlHeight,
|
|
1004
|
-
outline: "0 !important",
|
|
1005
|
-
position: "relative",
|
|
1006
|
-
transition: "all 100ms"
|
|
1007
|
-
}, i ? {} : {
|
|
1008
|
-
backgroundColor: o ? r.neutral5 : r.neutral0,
|
|
1009
|
-
borderColor: o ? r.neutral10 : t ? r.primary : r.neutral20,
|
|
1010
|
-
borderRadius: s,
|
|
1011
|
-
borderStyle: "solid",
|
|
1012
|
-
borderWidth: 1,
|
|
1013
|
-
boxShadow: t ? "0 0 0 1px ".concat(r.primary) : void 0,
|
|
1014
|
-
"&:hover": {
|
|
1015
|
-
borderColor: t ? r.primary : r.neutral30
|
|
1016
|
-
}
|
|
1017
|
-
});
|
|
1018
|
-
}, Di = function(e) {
|
|
1019
|
-
var i = e.children, o = e.isDisabled, t = e.isFocused, a = e.innerRef, r = e.innerProps, s = e.menuIsOpen;
|
|
1020
|
-
return v("div", h({
|
|
1021
|
-
ref: a
|
|
1022
|
-
}, Z(e, "control", {
|
|
1023
|
-
control: !0,
|
|
1024
|
-
"control--is-disabled": o,
|
|
1025
|
-
"control--is-focused": t,
|
|
1026
|
-
"control--menu-is-open": s
|
|
1027
|
-
}), r, {
|
|
1028
|
-
"aria-disabled": o || void 0
|
|
1029
|
-
}), i);
|
|
1030
|
-
}, Hi = Di, wi = ["data"], Ti = function(e, i) {
|
|
1031
|
-
var o = e.theme.spacing;
|
|
1032
|
-
return i ? {} : {
|
|
1033
|
-
paddingBottom: o.baseUnit * 2,
|
|
1034
|
-
paddingTop: o.baseUnit * 2
|
|
1035
|
-
};
|
|
1036
|
-
}, Pi = function(e) {
|
|
1037
|
-
var i = e.children, o = e.cx, t = e.getStyles, a = e.getClassNames, r = e.Heading, s = e.headingProps, u = e.innerProps, l = e.label, c = e.theme, d = e.selectProps;
|
|
1038
|
-
return v("div", h({}, Z(e, "group", {
|
|
1039
|
-
group: !0
|
|
1040
|
-
}), u), v(r, h({}, s, {
|
|
1041
|
-
selectProps: d,
|
|
1042
|
-
theme: c,
|
|
1043
|
-
getStyles: t,
|
|
1044
|
-
getClassNames: a,
|
|
1045
|
-
cx: o
|
|
1046
|
-
}), l), v("div", null, i));
|
|
1047
|
-
}, Oi = function(e, i) {
|
|
1048
|
-
var o = e.theme, t = o.colors, a = o.spacing;
|
|
1049
|
-
return C({
|
|
1050
|
-
label: "group",
|
|
1051
|
-
cursor: "default",
|
|
1052
|
-
display: "block"
|
|
1053
|
-
}, i ? {} : {
|
|
1054
|
-
color: t.neutral40,
|
|
1055
|
-
fontSize: "75%",
|
|
1056
|
-
fontWeight: 500,
|
|
1057
|
-
marginBottom: "0.25em",
|
|
1058
|
-
paddingLeft: a.baseUnit * 3,
|
|
1059
|
-
paddingRight: a.baseUnit * 3,
|
|
1060
|
-
textTransform: "uppercase"
|
|
1061
|
-
});
|
|
1062
|
-
}, Li = function(e) {
|
|
1063
|
-
var i = Ft(e);
|
|
1064
|
-
i.data;
|
|
1065
|
-
var o = te(i, wi);
|
|
1066
|
-
return v("div", h({}, Z(e, "groupHeading", {
|
|
1067
|
-
"group-heading": !0
|
|
1068
|
-
}), o));
|
|
1069
|
-
}, Mi = Pi, ki = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Ji = function(e, i) {
|
|
1070
|
-
var o = e.isDisabled, t = e.value, a = e.theme, r = a.spacing, s = a.colors;
|
|
1071
|
-
return C(C({
|
|
1072
|
-
visibility: o ? "hidden" : "visible",
|
|
1073
|
-
// force css to recompute when value change due to @emotion bug.
|
|
1074
|
-
// We can remove it whenever the bug is fixed.
|
|
1075
|
-
transform: t ? "translateZ(0)" : ""
|
|
1076
|
-
}, Yi), i ? {} : {
|
|
1077
|
-
margin: r.baseUnit / 2,
|
|
1078
|
-
paddingBottom: r.baseUnit / 2,
|
|
1079
|
-
paddingTop: r.baseUnit / 2,
|
|
1080
|
-
color: s.neutral80
|
|
1081
|
-
});
|
|
1082
|
-
}, Dt = {
|
|
1083
|
-
gridArea: "1 / 2",
|
|
1084
|
-
font: "inherit",
|
|
1085
|
-
minWidth: "2px",
|
|
1086
|
-
border: 0,
|
|
1087
|
-
margin: 0,
|
|
1088
|
-
outline: 0,
|
|
1089
|
-
padding: 0
|
|
1090
|
-
}, Yi = {
|
|
1091
|
-
flex: "1 1 auto",
|
|
1092
|
-
display: "inline-grid",
|
|
1093
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1094
|
-
gridTemplateColumns: "0 min-content",
|
|
1095
|
-
"&:after": C({
|
|
1096
|
-
content: 'attr(data-value) " "',
|
|
1097
|
-
visibility: "hidden",
|
|
1098
|
-
whiteSpace: "pre"
|
|
1099
|
-
}, Dt)
|
|
1100
|
-
}, zi = function(e) {
|
|
1101
|
-
return C({
|
|
1102
|
-
label: "input",
|
|
1103
|
-
color: "inherit",
|
|
1104
|
-
background: 0,
|
|
1105
|
-
opacity: e ? 0 : 1,
|
|
1106
|
-
width: "100%"
|
|
1107
|
-
}, Dt);
|
|
1108
|
-
}, _i = function(e) {
|
|
1109
|
-
var i = e.cx, o = e.value, t = Ft(e), a = t.innerRef, r = t.isDisabled, s = t.isHidden, u = t.inputClassName, l = te(t, ki);
|
|
1110
|
-
return v("div", h({}, Z(e, "input", {
|
|
1111
|
-
"input-container": !0
|
|
1112
|
-
}), {
|
|
1113
|
-
"data-value": o || ""
|
|
1114
|
-
}), v("input", h({
|
|
1115
|
-
className: i({
|
|
1116
|
-
input: !0
|
|
1117
|
-
}, u),
|
|
1118
|
-
ref: a,
|
|
1119
|
-
style: zi(s),
|
|
1120
|
-
disabled: r
|
|
1121
|
-
}, l)));
|
|
1122
|
-
}, ji = _i, Ui = function(e, i) {
|
|
1123
|
-
var o = e.theme, t = o.spacing, a = o.borderRadius, r = o.colors;
|
|
1124
|
-
return C({
|
|
1125
|
-
label: "multiValue",
|
|
1126
|
-
display: "flex",
|
|
1127
|
-
minWidth: 0
|
|
1128
|
-
}, i ? {} : {
|
|
1129
|
-
backgroundColor: r.neutral10,
|
|
1130
|
-
borderRadius: a / 2,
|
|
1131
|
-
margin: t.baseUnit / 2
|
|
1132
|
-
});
|
|
1133
|
-
}, Qi = function(e, i) {
|
|
1134
|
-
var o = e.theme, t = o.borderRadius, a = o.colors, r = e.cropWithEllipsis;
|
|
1135
|
-
return C({
|
|
1136
|
-
overflow: "hidden",
|
|
1137
|
-
textOverflow: r || r === void 0 ? "ellipsis" : void 0,
|
|
1138
|
-
whiteSpace: "nowrap"
|
|
1139
|
-
}, i ? {} : {
|
|
1140
|
-
borderRadius: t / 2,
|
|
1141
|
-
color: a.neutral80,
|
|
1142
|
-
fontSize: "85%",
|
|
1143
|
-
padding: 3,
|
|
1144
|
-
paddingLeft: 6
|
|
1145
|
-
});
|
|
1146
|
-
}, $i = function(e, i) {
|
|
1147
|
-
var o = e.theme, t = o.spacing, a = o.borderRadius, r = o.colors, s = e.isFocused;
|
|
1148
|
-
return C({
|
|
1149
|
-
alignItems: "center",
|
|
1150
|
-
display: "flex"
|
|
1151
|
-
}, i ? {} : {
|
|
1152
|
-
borderRadius: a / 2,
|
|
1153
|
-
backgroundColor: s ? r.dangerLight : void 0,
|
|
1154
|
-
paddingLeft: t.baseUnit,
|
|
1155
|
-
paddingRight: t.baseUnit,
|
|
1156
|
-
":hover": {
|
|
1157
|
-
backgroundColor: r.dangerLight,
|
|
1158
|
-
color: r.danger
|
|
1159
|
-
}
|
|
1160
|
-
});
|
|
1161
|
-
}, Ht = function(e) {
|
|
1162
|
-
var i = e.children, o = e.innerProps;
|
|
1163
|
-
return v("div", o, i);
|
|
1164
|
-
}, Ki = Ht, qi = Ht;
|
|
1165
|
-
function eo(n) {
|
|
1166
|
-
var e = n.children, i = n.innerProps;
|
|
1167
|
-
return v("div", h({
|
|
1168
|
-
role: "button"
|
|
1169
|
-
}, i), e || v(ke, {
|
|
1170
|
-
size: 14
|
|
1171
|
-
}));
|
|
1172
|
-
}
|
|
1173
|
-
var to = function(e) {
|
|
1174
|
-
var i = e.children, o = e.components, t = e.data, a = e.innerProps, r = e.isDisabled, s = e.removeProps, u = e.selectProps, l = o.Container, c = o.Label, d = o.Remove;
|
|
1175
|
-
return v(l, {
|
|
1176
|
-
data: t,
|
|
1177
|
-
innerProps: C(C({}, Z(e, "multiValue", {
|
|
1178
|
-
"multi-value": !0,
|
|
1179
|
-
"multi-value--is-disabled": r
|
|
1180
|
-
})), a),
|
|
1181
|
-
selectProps: u
|
|
1182
|
-
}, v(c, {
|
|
1183
|
-
data: t,
|
|
1184
|
-
innerProps: C({}, Z(e, "multiValueLabel", {
|
|
1185
|
-
"multi-value__label": !0
|
|
1186
|
-
})),
|
|
1187
|
-
selectProps: u
|
|
1188
|
-
}, i), v(d, {
|
|
1189
|
-
data: t,
|
|
1190
|
-
innerProps: C(C({}, Z(e, "multiValueRemove", {
|
|
1191
|
-
"multi-value__remove": !0
|
|
1192
|
-
})), {}, {
|
|
1193
|
-
"aria-label": "Remove ".concat(i || "option")
|
|
1194
|
-
}, s),
|
|
1195
|
-
selectProps: u
|
|
1196
|
-
}));
|
|
1197
|
-
}, no = to, io = function(e, i) {
|
|
1198
|
-
var o = e.isDisabled, t = e.isFocused, a = e.isSelected, r = e.theme, s = r.spacing, u = r.colors;
|
|
1199
|
-
return C({
|
|
1200
|
-
label: "option",
|
|
1201
|
-
cursor: "default",
|
|
1202
|
-
display: "block",
|
|
1203
|
-
fontSize: "inherit",
|
|
1204
|
-
width: "100%",
|
|
1205
|
-
userSelect: "none",
|
|
1206
|
-
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
|
1207
|
-
}, i ? {} : {
|
|
1208
|
-
backgroundColor: a ? u.primary : t ? u.primary25 : "transparent",
|
|
1209
|
-
color: o ? u.neutral20 : a ? u.neutral0 : "inherit",
|
|
1210
|
-
padding: "".concat(s.baseUnit * 2, "px ").concat(s.baseUnit * 3, "px"),
|
|
1211
|
-
// provide some affordance on touch devices
|
|
1212
|
-
":active": {
|
|
1213
|
-
backgroundColor: o ? void 0 : a ? u.primary : u.primary50
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
}, oo = function(e) {
|
|
1217
|
-
var i = e.children, o = e.isDisabled, t = e.isFocused, a = e.isSelected, r = e.innerRef, s = e.innerProps;
|
|
1218
|
-
return v("div", h({}, Z(e, "option", {
|
|
1219
|
-
option: !0,
|
|
1220
|
-
"option--is-disabled": o,
|
|
1221
|
-
"option--is-focused": t,
|
|
1222
|
-
"option--is-selected": a
|
|
1223
|
-
}), {
|
|
1224
|
-
ref: r,
|
|
1225
|
-
"aria-disabled": o
|
|
1226
|
-
}, s), i);
|
|
1227
|
-
}, uo = oo, ao = function(e, i) {
|
|
1228
|
-
var o = e.theme, t = o.spacing, a = o.colors;
|
|
1229
|
-
return C({
|
|
1230
|
-
label: "placeholder",
|
|
1231
|
-
gridArea: "1 / 1 / 2 / 3"
|
|
1232
|
-
}, i ? {} : {
|
|
1233
|
-
color: a.neutral50,
|
|
1234
|
-
marginLeft: t.baseUnit / 2,
|
|
1235
|
-
marginRight: t.baseUnit / 2
|
|
1236
|
-
});
|
|
1237
|
-
}, ro = function(e) {
|
|
1238
|
-
var i = e.children, o = e.innerProps;
|
|
1239
|
-
return v("div", h({}, Z(e, "placeholder", {
|
|
1240
|
-
placeholder: !0
|
|
1241
|
-
}), o), i);
|
|
1242
|
-
}, lo = ro, so = function(e, i) {
|
|
1243
|
-
var o = e.isDisabled, t = e.theme, a = t.spacing, r = t.colors;
|
|
1244
|
-
return C({
|
|
1245
|
-
label: "singleValue",
|
|
1246
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1247
|
-
maxWidth: "100%",
|
|
1248
|
-
overflow: "hidden",
|
|
1249
|
-
textOverflow: "ellipsis",
|
|
1250
|
-
whiteSpace: "nowrap"
|
|
1251
|
-
}, i ? {} : {
|
|
1252
|
-
color: o ? r.neutral40 : r.neutral80,
|
|
1253
|
-
marginLeft: a.baseUnit / 2,
|
|
1254
|
-
marginRight: a.baseUnit / 2
|
|
1255
|
-
});
|
|
1256
|
-
}, co = function(e) {
|
|
1257
|
-
var i = e.children, o = e.isDisabled, t = e.innerProps;
|
|
1258
|
-
return v("div", h({}, Z(e, "singleValue", {
|
|
1259
|
-
"single-value": !0,
|
|
1260
|
-
"single-value--is-disabled": o
|
|
1261
|
-
}), t), i);
|
|
1262
|
-
}, bo = co, Q = {
|
|
1263
|
-
ClearIndicator: Vi,
|
|
1264
|
-
Control: Hi,
|
|
1265
|
-
DropdownIndicator: Fi,
|
|
1266
|
-
DownChevron: Zt,
|
|
1267
|
-
CrossIcon: ke,
|
|
1268
|
-
Group: Mi,
|
|
1269
|
-
GroupHeading: Li,
|
|
1270
|
-
IndicatorsContainer: hi,
|
|
1271
|
-
IndicatorSeparator: Wi,
|
|
1272
|
-
Input: ji,
|
|
1273
|
-
LoadingIndicator: Zi,
|
|
1274
|
-
Menu: ai,
|
|
1275
|
-
MenuList: li,
|
|
1276
|
-
MenuPortal: pi,
|
|
1277
|
-
LoadingMessage: bi,
|
|
1278
|
-
NoOptionsMessage: di,
|
|
1279
|
-
MultiValue: no,
|
|
1280
|
-
MultiValueContainer: Ki,
|
|
1281
|
-
MultiValueLabel: qi,
|
|
1282
|
-
MultiValueRemove: eo,
|
|
1283
|
-
Option: uo,
|
|
1284
|
-
Placeholder: lo,
|
|
1285
|
-
SelectContainer: Ii,
|
|
1286
|
-
SingleValue: bo,
|
|
1287
|
-
ValueContainer: vi
|
|
1288
|
-
}, go = function(e) {
|
|
1289
|
-
return C(C({}, Q), e.components);
|
|
1290
|
-
}, it = Number.isNaN || function(e) {
|
|
1291
|
-
return typeof e == "number" && e !== e;
|
|
1292
|
-
};
|
|
1293
|
-
function po(n, e) {
|
|
1294
|
-
return !!(n === e || it(n) && it(e));
|
|
1295
|
-
}
|
|
1296
|
-
function mo(n, e) {
|
|
1297
|
-
if (n.length !== e.length)
|
|
1298
|
-
return !1;
|
|
1299
|
-
for (var i = 0; i < n.length; i++)
|
|
1300
|
-
if (!po(n[i], e[i]))
|
|
1301
|
-
return !1;
|
|
1302
|
-
return !0;
|
|
1303
|
-
}
|
|
1304
|
-
function Io(n, e) {
|
|
1305
|
-
e === void 0 && (e = mo);
|
|
1306
|
-
var i = null;
|
|
1307
|
-
function o() {
|
|
1308
|
-
for (var t = [], a = 0; a < arguments.length; a++)
|
|
1309
|
-
t[a] = arguments[a];
|
|
1310
|
-
if (i && i.lastThis === this && e(t, i.lastArgs))
|
|
1311
|
-
return i.lastResult;
|
|
1312
|
-
var r = n.apply(this, t);
|
|
1313
|
-
return i = {
|
|
1314
|
-
lastResult: r,
|
|
1315
|
-
lastArgs: t,
|
|
1316
|
-
lastThis: this
|
|
1317
|
-
}, r;
|
|
1318
|
-
}
|
|
1319
|
-
return o.clear = function() {
|
|
1320
|
-
i = null;
|
|
1321
|
-
}, o;
|
|
1322
|
-
}
|
|
1323
|
-
function fo() {
|
|
1324
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1325
|
-
}
|
|
1326
|
-
var vo = process.env.NODE_ENV === "production" ? {
|
|
1327
|
-
name: "7pg0cj-a11yText",
|
|
1328
|
-
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
1329
|
-
} : {
|
|
1330
|
-
name: "1f43avz-a11yText-A11yText",
|
|
1331
|
-
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
|
|
1332
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
1333
|
-
toString: fo
|
|
1334
|
-
}, Co = function(e) {
|
|
1335
|
-
return v("span", h({
|
|
1336
|
-
css: vo
|
|
1337
|
-
}, e));
|
|
1338
|
-
}, ot = Co, ho = {
|
|
1339
|
-
guidance: function(e) {
|
|
1340
|
-
var i = e.isSearchable, o = e.isMulti, t = e.tabSelectsValue, a = e.context, r = e.isInitialFocus;
|
|
1341
|
-
switch (a) {
|
|
1342
|
-
case "menu":
|
|
1343
|
-
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t ? ", press Tab to select the option and exit the menu" : "", ".");
|
|
1344
|
-
case "input":
|
|
1345
|
-
return r ? "".concat(e["aria-label"] || "Select", " is focused ").concat(i ? ",type to refine list" : "", ", press Down to open the menu, ").concat(o ? " press left to focus selected values" : "") : "";
|
|
1346
|
-
case "value":
|
|
1347
|
-
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
|
1348
|
-
default:
|
|
1349
|
-
return "";
|
|
1350
|
-
}
|
|
1351
|
-
},
|
|
1352
|
-
onChange: function(e) {
|
|
1353
|
-
var i = e.action, o = e.label, t = o === void 0 ? "" : o, a = e.labels, r = e.isDisabled;
|
|
1354
|
-
switch (i) {
|
|
1355
|
-
case "deselect-option":
|
|
1356
|
-
case "pop-value":
|
|
1357
|
-
case "remove-value":
|
|
1358
|
-
return "option ".concat(t, ", deselected.");
|
|
1359
|
-
case "clear":
|
|
1360
|
-
return "All selected options have been cleared.";
|
|
1361
|
-
case "initial-input-focus":
|
|
1362
|
-
return "option".concat(a.length > 1 ? "s" : "", " ").concat(a.join(","), ", selected.");
|
|
1363
|
-
case "select-option":
|
|
1364
|
-
return r ? "option ".concat(t, " is disabled. Select another option.") : "option ".concat(t, ", selected.");
|
|
1365
|
-
default:
|
|
1366
|
-
return "";
|
|
1367
|
-
}
|
|
1368
|
-
},
|
|
1369
|
-
onFocus: function(e) {
|
|
1370
|
-
var i = e.context, o = e.focused, t = e.options, a = e.label, r = a === void 0 ? "" : a, s = e.selectValue, u = e.isDisabled, l = e.isSelected, c = e.isAppleDevice, d = function(I, b) {
|
|
1371
|
-
return I && I.length ? "".concat(I.indexOf(b) + 1, " of ").concat(I.length) : "";
|
|
1372
|
-
};
|
|
1373
|
-
if (i === "value" && s)
|
|
1374
|
-
return "value ".concat(r, " focused, ").concat(d(s, o), ".");
|
|
1375
|
-
if (i === "menu" && c) {
|
|
1376
|
-
var g = u ? " disabled" : "", p = "".concat(l ? " selected" : "").concat(g);
|
|
1377
|
-
return "".concat(r).concat(p, ", ").concat(d(t, o), ".");
|
|
1378
|
-
}
|
|
1379
|
-
return "";
|
|
1380
|
-
},
|
|
1381
|
-
onFilter: function(e) {
|
|
1382
|
-
var i = e.inputValue, o = e.resultsMessage;
|
|
1383
|
-
return "".concat(o).concat(i ? " for search term " + i : "", ".");
|
|
1384
|
-
}
|
|
1385
|
-
}, Ao = function(e) {
|
|
1386
|
-
var i = e.ariaSelection, o = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, r = e.isFocused, s = e.selectValue, u = e.selectProps, l = e.id, c = e.isAppleDevice, d = u.ariaLiveMessages, g = u.getOptionLabel, p = u.inputValue, f = u.isMulti, I = u.isOptionDisabled, b = u.isSearchable, m = u.menuIsOpen, A = u.options, x = u.screenReaderStatus, B = u.tabSelectsValue, F = u.isLoading, E = u["aria-label"], V = u["aria-live"], G = ue(function() {
|
|
1387
|
-
return C(C({}, ho), d || {});
|
|
1388
|
-
}, [d]), X = ue(function() {
|
|
1389
|
-
var D = "";
|
|
1390
|
-
if (i && G.onChange) {
|
|
1391
|
-
var R = i.option, S = i.options, L = i.removedValue, z = i.removedValues, _ = i.value, de = function(K) {
|
|
1392
|
-
return Array.isArray(K) ? null : K;
|
|
1393
|
-
}, w = L || R || de(_), M = w ? g(w) : "", $ = S || z || void 0, ne = $ ? $.map(g) : [], j = C({
|
|
1394
|
-
// multiSelected items are usually items that have already been selected
|
|
1395
|
-
// or set by the user as a default value so we assume they are not disabled
|
|
1396
|
-
isDisabled: w && I(w, s),
|
|
1397
|
-
label: M,
|
|
1398
|
-
labels: ne
|
|
1399
|
-
}, i);
|
|
1400
|
-
D = G.onChange(j);
|
|
1401
|
-
}
|
|
1402
|
-
return D;
|
|
1403
|
-
}, [i, G, I, s, g]), H = ue(function() {
|
|
1404
|
-
var D = "", R = o || t, S = !!(o && s && s.includes(o));
|
|
1405
|
-
if (R && G.onFocus) {
|
|
1406
|
-
var L = {
|
|
1407
|
-
focused: R,
|
|
1408
|
-
label: g(R),
|
|
1409
|
-
isDisabled: I(R, s),
|
|
1410
|
-
isSelected: S,
|
|
1411
|
-
options: a,
|
|
1412
|
-
context: R === o ? "menu" : "value",
|
|
1413
|
-
selectValue: s,
|
|
1414
|
-
isAppleDevice: c
|
|
1415
|
-
};
|
|
1416
|
-
D = G.onFocus(L);
|
|
1417
|
-
}
|
|
1418
|
-
return D;
|
|
1419
|
-
}, [o, t, g, I, G, a, s, c]), P = ue(function() {
|
|
1420
|
-
var D = "";
|
|
1421
|
-
if (m && A.length && !F && G.onFilter) {
|
|
1422
|
-
var R = x({
|
|
1423
|
-
count: a.length
|
|
1424
|
-
});
|
|
1425
|
-
D = G.onFilter({
|
|
1426
|
-
inputValue: p,
|
|
1427
|
-
resultsMessage: R
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
return D;
|
|
1431
|
-
}, [a, p, m, G, A, x, F]), T = (i == null ? void 0 : i.action) === "initial-input-focus", J = ue(function() {
|
|
1432
|
-
var D = "";
|
|
1433
|
-
if (G.guidance) {
|
|
1434
|
-
var R = t ? "value" : m ? "menu" : "input";
|
|
1435
|
-
D = G.guidance({
|
|
1436
|
-
"aria-label": E,
|
|
1437
|
-
context: R,
|
|
1438
|
-
isDisabled: o && I(o, s),
|
|
1439
|
-
isMulti: f,
|
|
1440
|
-
isSearchable: b,
|
|
1441
|
-
tabSelectsValue: B,
|
|
1442
|
-
isInitialFocus: T
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
return D;
|
|
1446
|
-
}, [E, o, t, f, I, b, m, G, s, B, T]), Y = v(Re, null, v("span", {
|
|
1447
|
-
id: "aria-selection"
|
|
1448
|
-
}, X), v("span", {
|
|
1449
|
-
id: "aria-focused"
|
|
1450
|
-
}, H), v("span", {
|
|
1451
|
-
id: "aria-results"
|
|
1452
|
-
}, P), v("span", {
|
|
1453
|
-
id: "aria-guidance"
|
|
1454
|
-
}, J));
|
|
1455
|
-
return v(Re, null, v(ot, {
|
|
1456
|
-
id: l
|
|
1457
|
-
}, T && Y), v(ot, {
|
|
1458
|
-
"aria-live": V,
|
|
1459
|
-
"aria-atomic": "false",
|
|
1460
|
-
"aria-relevant": "additions text",
|
|
1461
|
-
role: "log"
|
|
1462
|
-
}, r && !T && Y));
|
|
1463
|
-
}, xo = Ao, Te = [{
|
|
1464
|
-
base: "A",
|
|
1465
|
-
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
1466
|
-
}, {
|
|
1467
|
-
base: "AA",
|
|
1468
|
-
letters: "Ꜳ"
|
|
1469
|
-
}, {
|
|
1470
|
-
base: "AE",
|
|
1471
|
-
letters: "ÆǼǢ"
|
|
1472
|
-
}, {
|
|
1473
|
-
base: "AO",
|
|
1474
|
-
letters: "Ꜵ"
|
|
1475
|
-
}, {
|
|
1476
|
-
base: "AU",
|
|
1477
|
-
letters: "Ꜷ"
|
|
1478
|
-
}, {
|
|
1479
|
-
base: "AV",
|
|
1480
|
-
letters: "ꜸꜺ"
|
|
1481
|
-
}, {
|
|
1482
|
-
base: "AY",
|
|
1483
|
-
letters: "Ꜽ"
|
|
1484
|
-
}, {
|
|
1485
|
-
base: "B",
|
|
1486
|
-
letters: "BⒷBḂḄḆɃƂƁ"
|
|
1487
|
-
}, {
|
|
1488
|
-
base: "C",
|
|
1489
|
-
letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
|
|
1490
|
-
}, {
|
|
1491
|
-
base: "D",
|
|
1492
|
-
letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
|
|
1493
|
-
}, {
|
|
1494
|
-
base: "DZ",
|
|
1495
|
-
letters: "DZDŽ"
|
|
1496
|
-
}, {
|
|
1497
|
-
base: "Dz",
|
|
1498
|
-
letters: "DzDž"
|
|
1499
|
-
}, {
|
|
1500
|
-
base: "E",
|
|
1501
|
-
letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
|
|
1502
|
-
}, {
|
|
1503
|
-
base: "F",
|
|
1504
|
-
letters: "FⒻFḞƑꝻ"
|
|
1505
|
-
}, {
|
|
1506
|
-
base: "G",
|
|
1507
|
-
letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
|
|
1508
|
-
}, {
|
|
1509
|
-
base: "H",
|
|
1510
|
-
letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
|
|
1511
|
-
}, {
|
|
1512
|
-
base: "I",
|
|
1513
|
-
letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
|
|
1514
|
-
}, {
|
|
1515
|
-
base: "J",
|
|
1516
|
-
letters: "JⒿJĴɈ"
|
|
1517
|
-
}, {
|
|
1518
|
-
base: "K",
|
|
1519
|
-
letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
|
|
1520
|
-
}, {
|
|
1521
|
-
base: "L",
|
|
1522
|
-
letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
|
|
1523
|
-
}, {
|
|
1524
|
-
base: "LJ",
|
|
1525
|
-
letters: "LJ"
|
|
1526
|
-
}, {
|
|
1527
|
-
base: "Lj",
|
|
1528
|
-
letters: "Lj"
|
|
1529
|
-
}, {
|
|
1530
|
-
base: "M",
|
|
1531
|
-
letters: "MⓂMḾṀṂⱮƜ"
|
|
1532
|
-
}, {
|
|
1533
|
-
base: "N",
|
|
1534
|
-
letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
|
|
1535
|
-
}, {
|
|
1536
|
-
base: "NJ",
|
|
1537
|
-
letters: "NJ"
|
|
1538
|
-
}, {
|
|
1539
|
-
base: "Nj",
|
|
1540
|
-
letters: "Nj"
|
|
1541
|
-
}, {
|
|
1542
|
-
base: "O",
|
|
1543
|
-
letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
|
|
1544
|
-
}, {
|
|
1545
|
-
base: "OI",
|
|
1546
|
-
letters: "Ƣ"
|
|
1547
|
-
}, {
|
|
1548
|
-
base: "OO",
|
|
1549
|
-
letters: "Ꝏ"
|
|
1550
|
-
}, {
|
|
1551
|
-
base: "OU",
|
|
1552
|
-
letters: "Ȣ"
|
|
1553
|
-
}, {
|
|
1554
|
-
base: "P",
|
|
1555
|
-
letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
|
|
1556
|
-
}, {
|
|
1557
|
-
base: "Q",
|
|
1558
|
-
letters: "QⓆQꝖꝘɊ"
|
|
1559
|
-
}, {
|
|
1560
|
-
base: "R",
|
|
1561
|
-
letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
|
|
1562
|
-
}, {
|
|
1563
|
-
base: "S",
|
|
1564
|
-
letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
|
|
1565
|
-
}, {
|
|
1566
|
-
base: "T",
|
|
1567
|
-
letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
|
|
1568
|
-
}, {
|
|
1569
|
-
base: "TZ",
|
|
1570
|
-
letters: "Ꜩ"
|
|
1571
|
-
}, {
|
|
1572
|
-
base: "U",
|
|
1573
|
-
letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
|
|
1574
|
-
}, {
|
|
1575
|
-
base: "V",
|
|
1576
|
-
letters: "VⓋVṼṾƲꝞɅ"
|
|
1577
|
-
}, {
|
|
1578
|
-
base: "VY",
|
|
1579
|
-
letters: "Ꝡ"
|
|
1580
|
-
}, {
|
|
1581
|
-
base: "W",
|
|
1582
|
-
letters: "WⓌWẀẂŴẆẄẈⱲ"
|
|
1583
|
-
}, {
|
|
1584
|
-
base: "X",
|
|
1585
|
-
letters: "XⓍXẊẌ"
|
|
1586
|
-
}, {
|
|
1587
|
-
base: "Y",
|
|
1588
|
-
letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
|
|
1589
|
-
}, {
|
|
1590
|
-
base: "Z",
|
|
1591
|
-
letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
|
|
1592
|
-
}, {
|
|
1593
|
-
base: "a",
|
|
1594
|
-
letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
|
|
1595
|
-
}, {
|
|
1596
|
-
base: "aa",
|
|
1597
|
-
letters: "ꜳ"
|
|
1598
|
-
}, {
|
|
1599
|
-
base: "ae",
|
|
1600
|
-
letters: "æǽǣ"
|
|
1601
|
-
}, {
|
|
1602
|
-
base: "ao",
|
|
1603
|
-
letters: "ꜵ"
|
|
1604
|
-
}, {
|
|
1605
|
-
base: "au",
|
|
1606
|
-
letters: "ꜷ"
|
|
1607
|
-
}, {
|
|
1608
|
-
base: "av",
|
|
1609
|
-
letters: "ꜹꜻ"
|
|
1610
|
-
}, {
|
|
1611
|
-
base: "ay",
|
|
1612
|
-
letters: "ꜽ"
|
|
1613
|
-
}, {
|
|
1614
|
-
base: "b",
|
|
1615
|
-
letters: "bⓑbḃḅḇƀƃɓ"
|
|
1616
|
-
}, {
|
|
1617
|
-
base: "c",
|
|
1618
|
-
letters: "cⓒcćĉċčçḉƈȼꜿↄ"
|
|
1619
|
-
}, {
|
|
1620
|
-
base: "d",
|
|
1621
|
-
letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
|
|
1622
|
-
}, {
|
|
1623
|
-
base: "dz",
|
|
1624
|
-
letters: "dzdž"
|
|
1625
|
-
}, {
|
|
1626
|
-
base: "e",
|
|
1627
|
-
letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
|
|
1628
|
-
}, {
|
|
1629
|
-
base: "f",
|
|
1630
|
-
letters: "fⓕfḟƒꝼ"
|
|
1631
|
-
}, {
|
|
1632
|
-
base: "g",
|
|
1633
|
-
letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
|
|
1634
|
-
}, {
|
|
1635
|
-
base: "h",
|
|
1636
|
-
letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
|
|
1637
|
-
}, {
|
|
1638
|
-
base: "hv",
|
|
1639
|
-
letters: "ƕ"
|
|
1640
|
-
}, {
|
|
1641
|
-
base: "i",
|
|
1642
|
-
letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
|
|
1643
|
-
}, {
|
|
1644
|
-
base: "j",
|
|
1645
|
-
letters: "jⓙjĵǰɉ"
|
|
1646
|
-
}, {
|
|
1647
|
-
base: "k",
|
|
1648
|
-
letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
|
|
1649
|
-
}, {
|
|
1650
|
-
base: "l",
|
|
1651
|
-
letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
|
|
1652
|
-
}, {
|
|
1653
|
-
base: "lj",
|
|
1654
|
-
letters: "lj"
|
|
1655
|
-
}, {
|
|
1656
|
-
base: "m",
|
|
1657
|
-
letters: "mⓜmḿṁṃɱɯ"
|
|
1658
|
-
}, {
|
|
1659
|
-
base: "n",
|
|
1660
|
-
letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
|
|
1661
|
-
}, {
|
|
1662
|
-
base: "nj",
|
|
1663
|
-
letters: "nj"
|
|
1664
|
-
}, {
|
|
1665
|
-
base: "o",
|
|
1666
|
-
letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
|
|
1667
|
-
}, {
|
|
1668
|
-
base: "oi",
|
|
1669
|
-
letters: "ƣ"
|
|
1670
|
-
}, {
|
|
1671
|
-
base: "ou",
|
|
1672
|
-
letters: "ȣ"
|
|
1673
|
-
}, {
|
|
1674
|
-
base: "oo",
|
|
1675
|
-
letters: "ꝏ"
|
|
1676
|
-
}, {
|
|
1677
|
-
base: "p",
|
|
1678
|
-
letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
|
|
1679
|
-
}, {
|
|
1680
|
-
base: "q",
|
|
1681
|
-
letters: "qⓠqɋꝗꝙ"
|
|
1682
|
-
}, {
|
|
1683
|
-
base: "r",
|
|
1684
|
-
letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
|
|
1685
|
-
}, {
|
|
1686
|
-
base: "s",
|
|
1687
|
-
letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
|
|
1688
|
-
}, {
|
|
1689
|
-
base: "t",
|
|
1690
|
-
letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
|
|
1691
|
-
}, {
|
|
1692
|
-
base: "tz",
|
|
1693
|
-
letters: "ꜩ"
|
|
1694
|
-
}, {
|
|
1695
|
-
base: "u",
|
|
1696
|
-
letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
|
|
1697
|
-
}, {
|
|
1698
|
-
base: "v",
|
|
1699
|
-
letters: "vⓥvṽṿʋꝟʌ"
|
|
1700
|
-
}, {
|
|
1701
|
-
base: "vy",
|
|
1702
|
-
letters: "ꝡ"
|
|
1703
|
-
}, {
|
|
1704
|
-
base: "w",
|
|
1705
|
-
letters: "wⓦwẁẃŵẇẅẘẉⱳ"
|
|
1706
|
-
}, {
|
|
1707
|
-
base: "x",
|
|
1708
|
-
letters: "xⓧxẋẍ"
|
|
1709
|
-
}, {
|
|
1710
|
-
base: "y",
|
|
1711
|
-
letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
|
|
1712
|
-
}, {
|
|
1713
|
-
base: "z",
|
|
1714
|
-
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
1715
|
-
}], Go = new RegExp("[" + Te.map(function(n) {
|
|
1716
|
-
return n.letters;
|
|
1717
|
-
}).join("") + "]", "g"), wt = {};
|
|
1718
|
-
for (var Ve = 0; Ve < Te.length; Ve++)
|
|
1719
|
-
for (var Se = Te[Ve], We = 0; We < Se.letters.length; We++)
|
|
1720
|
-
wt[Se.letters[We]] = Se.base;
|
|
1721
|
-
var Tt = function(e) {
|
|
1722
|
-
return e.replace(Go, function(i) {
|
|
1723
|
-
return wt[i];
|
|
1724
|
-
});
|
|
1725
|
-
}, yo = Io(Tt), ut = function(e) {
|
|
1726
|
-
return e.replace(/^\s+|\s+$/g, "");
|
|
1727
|
-
}, Bo = function(e) {
|
|
1728
|
-
return "".concat(e.label, " ").concat(e.value);
|
|
1729
|
-
}, Fo = function(e) {
|
|
1730
|
-
return function(i, o) {
|
|
1731
|
-
if (i.data.__isNew__) return !0;
|
|
1732
|
-
var t = C({
|
|
1733
|
-
ignoreCase: !0,
|
|
1734
|
-
ignoreAccents: !0,
|
|
1735
|
-
stringify: Bo,
|
|
1736
|
-
trim: !0,
|
|
1737
|
-
matchFrom: "any"
|
|
1738
|
-
}, e), a = t.ignoreCase, r = t.ignoreAccents, s = t.stringify, u = t.trim, l = t.matchFrom, c = u ? ut(o) : o, d = u ? ut(s(i)) : s(i);
|
|
1739
|
-
return a && (c = c.toLowerCase(), d = d.toLowerCase()), r && (c = yo(c), d = Tt(d)), l === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
|
1740
|
-
};
|
|
1741
|
-
}, Eo = ["innerRef"];
|
|
1742
|
-
function Vo(n) {
|
|
1743
|
-
var e = n.innerRef, i = te(n, Eo), o = Kn(i, "onExited", "in", "enter", "exit", "appear");
|
|
1744
|
-
return v("input", h({
|
|
1745
|
-
ref: e
|
|
1746
|
-
}, o, {
|
|
1747
|
-
css: /* @__PURE__ */ ft({
|
|
1748
|
-
label: "dummyInput",
|
|
1749
|
-
// get rid of any default styles
|
|
1750
|
-
background: 0,
|
|
1751
|
-
border: 0,
|
|
1752
|
-
// important! this hides the flashing cursor
|
|
1753
|
-
caretColor: "transparent",
|
|
1754
|
-
fontSize: "inherit",
|
|
1755
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1756
|
-
outline: 0,
|
|
1757
|
-
padding: 0,
|
|
1758
|
-
// important! without `width` browsers won't allow focus
|
|
1759
|
-
width: 1,
|
|
1760
|
-
// remove cursor on desktop
|
|
1761
|
-
color: "transparent",
|
|
1762
|
-
// remove cursor on mobile whilst maintaining "scroll into view" behaviour
|
|
1763
|
-
left: -100,
|
|
1764
|
-
opacity: 0,
|
|
1765
|
-
position: "relative",
|
|
1766
|
-
transform: "scale(.01)"
|
|
1767
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
|
|
1768
|
-
}));
|
|
1769
|
-
}
|
|
1770
|
-
var So = function(e) {
|
|
1771
|
-
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
1772
|
-
};
|
|
1773
|
-
function Wo(n) {
|
|
1774
|
-
var e = n.isEnabled, i = n.onBottomArrive, o = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, r = U(!1), s = U(!1), u = U(0), l = U(null), c = O(function(b, m) {
|
|
1775
|
-
if (l.current !== null) {
|
|
1776
|
-
var A = l.current, x = A.scrollTop, B = A.scrollHeight, F = A.clientHeight, E = l.current, V = m > 0, G = B - F - x, X = !1;
|
|
1777
|
-
G > m && r.current && (o && o(b), r.current = !1), V && s.current && (a && a(b), s.current = !1), V && m > G ? (i && !r.current && i(b), E.scrollTop = B, X = !0, r.current = !0) : !V && -m > x && (t && !s.current && t(b), E.scrollTop = 0, X = !0, s.current = !0), X && So(b);
|
|
1778
|
-
}
|
|
1779
|
-
}, [i, o, t, a]), d = O(function(b) {
|
|
1780
|
-
c(b, b.deltaY);
|
|
1781
|
-
}, [c]), g = O(function(b) {
|
|
1782
|
-
u.current = b.changedTouches[0].clientY;
|
|
1783
|
-
}, []), p = O(function(b) {
|
|
1784
|
-
var m = u.current - b.changedTouches[0].clientY;
|
|
1785
|
-
c(b, m);
|
|
1786
|
-
}, [c]), f = O(function(b) {
|
|
1787
|
-
if (b) {
|
|
1788
|
-
var m = Un ? {
|
|
1789
|
-
passive: !1
|
|
1790
|
-
} : !1;
|
|
1791
|
-
b.addEventListener("wheel", d, m), b.addEventListener("touchstart", g, m), b.addEventListener("touchmove", p, m);
|
|
1792
|
-
}
|
|
1793
|
-
}, [p, g, d]), I = O(function(b) {
|
|
1794
|
-
b && (b.removeEventListener("wheel", d, !1), b.removeEventListener("touchstart", g, !1), b.removeEventListener("touchmove", p, !1));
|
|
1795
|
-
}, [p, g, d]);
|
|
1796
|
-
return It(function() {
|
|
1797
|
-
if (e) {
|
|
1798
|
-
var b = l.current;
|
|
1799
|
-
return f(b), function() {
|
|
1800
|
-
I(b);
|
|
1801
|
-
};
|
|
1802
|
-
}
|
|
1803
|
-
}, [e, f, I]), function(b) {
|
|
1804
|
-
l.current = b;
|
|
1805
|
-
};
|
|
1806
|
-
}
|
|
1807
|
-
var at = ["boxSizing", "height", "overflow", "paddingRight", "position"], rt = {
|
|
1808
|
-
boxSizing: "border-box",
|
|
1809
|
-
// account for possible declaration `width: 100%;` on body
|
|
1810
|
-
overflow: "hidden",
|
|
1811
|
-
position: "relative",
|
|
1812
|
-
height: "100%"
|
|
1813
|
-
};
|
|
1814
|
-
function lt(n) {
|
|
1815
|
-
n.preventDefault();
|
|
1816
|
-
}
|
|
1817
|
-
function st(n) {
|
|
1818
|
-
n.stopPropagation();
|
|
1819
|
-
}
|
|
1820
|
-
function ct() {
|
|
1821
|
-
var n = this.scrollTop, e = this.scrollHeight, i = n + this.offsetHeight;
|
|
1822
|
-
n === 0 ? this.scrollTop = 1 : i === e && (this.scrollTop = n - 1);
|
|
1823
|
-
}
|
|
1824
|
-
function dt() {
|
|
1825
|
-
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
1826
|
-
}
|
|
1827
|
-
var bt = !!(typeof window < "u" && window.document && window.document.createElement), le = 0, re = {
|
|
1828
|
-
capture: !1,
|
|
1829
|
-
passive: !1
|
|
1830
|
-
};
|
|
1831
|
-
function Xo(n) {
|
|
1832
|
-
var e = n.isEnabled, i = n.accountForScrollbars, o = i === void 0 ? !0 : i, t = U({}), a = U(null), r = O(function(u) {
|
|
1833
|
-
if (bt) {
|
|
1834
|
-
var l = document.body, c = l && l.style;
|
|
1835
|
-
if (o && at.forEach(function(f) {
|
|
1836
|
-
var I = c && c[f];
|
|
1837
|
-
t.current[f] = I;
|
|
1838
|
-
}), o && le < 1) {
|
|
1839
|
-
var d = parseInt(t.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, p = window.innerWidth - g + d || 0;
|
|
1840
|
-
Object.keys(rt).forEach(function(f) {
|
|
1841
|
-
var I = rt[f];
|
|
1842
|
-
c && (c[f] = I);
|
|
1843
|
-
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
1844
|
-
}
|
|
1845
|
-
l && dt() && (l.addEventListener("touchmove", lt, re), u && (u.addEventListener("touchstart", ct, re), u.addEventListener("touchmove", st, re))), le += 1;
|
|
1846
|
-
}
|
|
1847
|
-
}, [o]), s = O(function(u) {
|
|
1848
|
-
if (bt) {
|
|
1849
|
-
var l = document.body, c = l && l.style;
|
|
1850
|
-
le = Math.max(le - 1, 0), o && le < 1 && at.forEach(function(d) {
|
|
1851
|
-
var g = t.current[d];
|
|
1852
|
-
c && (c[d] = g);
|
|
1853
|
-
}), l && dt() && (l.removeEventListener("touchmove", lt, re), u && (u.removeEventListener("touchstart", ct, re), u.removeEventListener("touchmove", st, re)));
|
|
1854
|
-
}
|
|
1855
|
-
}, [o]);
|
|
1856
|
-
return It(function() {
|
|
1857
|
-
if (e) {
|
|
1858
|
-
var u = a.current;
|
|
1859
|
-
return r(u), function() {
|
|
1860
|
-
s(u);
|
|
1861
|
-
};
|
|
1862
|
-
}
|
|
1863
|
-
}, [e, r, s]), function(u) {
|
|
1864
|
-
a.current = u;
|
|
1865
|
-
};
|
|
1866
|
-
}
|
|
1867
|
-
function No() {
|
|
1868
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1869
|
-
}
|
|
1870
|
-
var Zo = function(e) {
|
|
1871
|
-
var i = e.target;
|
|
1872
|
-
return i.ownerDocument.activeElement && i.ownerDocument.activeElement.blur();
|
|
1873
|
-
}, Ro = process.env.NODE_ENV === "production" ? {
|
|
1874
|
-
name: "1kfdb0e",
|
|
1875
|
-
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
|
1876
|
-
} : {
|
|
1877
|
-
name: "bp8cua-ScrollManager",
|
|
1878
|
-
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
1879
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0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sZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
1880
|
-
toString: No
|
|
1881
|
-
};
|
|
1882
|
-
function Do(n) {
|
|
1883
|
-
var e = n.children, i = n.lockEnabled, o = n.captureEnabled, t = o === void 0 ? !0 : o, a = n.onBottomArrive, r = n.onBottomLeave, s = n.onTopArrive, u = n.onTopLeave, l = Wo({
|
|
1884
|
-
isEnabled: t,
|
|
1885
|
-
onBottomArrive: a,
|
|
1886
|
-
onBottomLeave: r,
|
|
1887
|
-
onTopArrive: s,
|
|
1888
|
-
onTopLeave: u
|
|
1889
|
-
}), c = Xo({
|
|
1890
|
-
isEnabled: i
|
|
1891
|
-
}), d = function(p) {
|
|
1892
|
-
l(p), c(p);
|
|
1893
|
-
};
|
|
1894
|
-
return v(Re, null, i && v("div", {
|
|
1895
|
-
onClick: Zo,
|
|
1896
|
-
css: Ro
|
|
1897
|
-
}), e(d));
|
|
1898
|
-
}
|
|
1899
|
-
function Ho() {
|
|
1900
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1901
|
-
}
|
|
1902
|
-
var wo = process.env.NODE_ENV === "production" ? {
|
|
1903
|
-
name: "1a0ro4n-requiredInput",
|
|
1904
|
-
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
|
1905
|
-
} : {
|
|
1906
|
-
name: "5kkxb2-requiredInput-RequiredInput",
|
|
1907
|
-
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
|
1908
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiw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= function(e) {
|
|
1911
|
-
var i = e.name, o = e.onFocus;
|
|
1912
|
-
return v("input", {
|
|
1913
|
-
required: !0,
|
|
1914
|
-
name: i,
|
|
1915
|
-
tabIndex: -1,
|
|
1916
|
-
"aria-hidden": "true",
|
|
1917
|
-
onFocus: o,
|
|
1918
|
-
css: wo,
|
|
1919
|
-
value: "",
|
|
1920
|
-
onChange: function() {
|
|
1921
|
-
}
|
|
1922
|
-
});
|
|
1923
|
-
}, Po = To;
|
|
1924
|
-
function Je(n) {
|
|
1925
|
-
var e;
|
|
1926
|
-
return typeof window < "u" && window.navigator != null ? n.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
|
|
1927
|
-
}
|
|
1928
|
-
function Oo() {
|
|
1929
|
-
return Je(/^iPhone/i);
|
|
1930
|
-
}
|
|
1931
|
-
function Pt() {
|
|
1932
|
-
return Je(/^Mac/i);
|
|
1933
|
-
}
|
|
1934
|
-
function Lo() {
|
|
1935
|
-
return Je(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1936
|
-
Pt() && navigator.maxTouchPoints > 1;
|
|
1937
|
-
}
|
|
1938
|
-
function Mo() {
|
|
1939
|
-
return Oo() || Lo();
|
|
1940
|
-
}
|
|
1941
|
-
function ko() {
|
|
1942
|
-
return Pt() || Mo();
|
|
1943
|
-
}
|
|
1944
|
-
var Jo = function(e) {
|
|
1945
|
-
return e.label;
|
|
1946
|
-
}, Yo = function(e) {
|
|
1947
|
-
return e.label;
|
|
1948
|
-
}, zo = function(e) {
|
|
1949
|
-
return e.value;
|
|
1950
|
-
}, _o = function(e) {
|
|
1951
|
-
return !!e.isDisabled;
|
|
1952
|
-
}, jo = {
|
|
1953
|
-
clearIndicator: Ei,
|
|
1954
|
-
container: mi,
|
|
1955
|
-
control: Ri,
|
|
1956
|
-
dropdownIndicator: Bi,
|
|
1957
|
-
group: Ti,
|
|
1958
|
-
groupHeading: Oi,
|
|
1959
|
-
indicatorsContainer: Ci,
|
|
1960
|
-
indicatorSeparator: Si,
|
|
1961
|
-
input: Ji,
|
|
1962
|
-
loadingIndicator: Ni,
|
|
1963
|
-
loadingMessage: ci,
|
|
1964
|
-
menu: ii,
|
|
1965
|
-
menuList: ri,
|
|
1966
|
-
menuPortal: gi,
|
|
1967
|
-
multiValue: Ui,
|
|
1968
|
-
multiValueLabel: Qi,
|
|
1969
|
-
multiValueRemove: $i,
|
|
1970
|
-
noOptionsMessage: si,
|
|
1971
|
-
option: io,
|
|
1972
|
-
placeholder: ao,
|
|
1973
|
-
singleValue: so,
|
|
1974
|
-
valueContainer: fi
|
|
1975
|
-
}, Uo = {
|
|
1976
|
-
primary: "#2684FF",
|
|
1977
|
-
primary75: "#4C9AFF",
|
|
1978
|
-
primary50: "#B2D4FF",
|
|
1979
|
-
primary25: "#DEEBFF",
|
|
1980
|
-
danger: "#DE350B",
|
|
1981
|
-
dangerLight: "#FFBDAD",
|
|
1982
|
-
neutral0: "hsl(0, 0%, 100%)",
|
|
1983
|
-
neutral5: "hsl(0, 0%, 95%)",
|
|
1984
|
-
neutral10: "hsl(0, 0%, 90%)",
|
|
1985
|
-
neutral20: "hsl(0, 0%, 80%)",
|
|
1986
|
-
neutral30: "hsl(0, 0%, 70%)",
|
|
1987
|
-
neutral40: "hsl(0, 0%, 60%)",
|
|
1988
|
-
neutral50: "hsl(0, 0%, 50%)",
|
|
1989
|
-
neutral60: "hsl(0, 0%, 40%)",
|
|
1990
|
-
neutral70: "hsl(0, 0%, 30%)",
|
|
1991
|
-
neutral80: "hsl(0, 0%, 20%)",
|
|
1992
|
-
neutral90: "hsl(0, 0%, 10%)"
|
|
1993
|
-
}, Qo = 4, Ot = 4, $o = 38, Ko = Ot * 2, qo = {
|
|
1994
|
-
baseUnit: Ot,
|
|
1995
|
-
controlHeight: $o,
|
|
1996
|
-
menuGutter: Ko
|
|
1997
|
-
}, Xe = {
|
|
1998
|
-
borderRadius: Qo,
|
|
1999
|
-
colors: Uo,
|
|
2000
|
-
spacing: qo
|
|
2001
|
-
}, eu = {
|
|
2002
|
-
"aria-live": "polite",
|
|
2003
|
-
backspaceRemovesValue: !0,
|
|
2004
|
-
blurInputOnSelect: tt(),
|
|
2005
|
-
captureMenuScroll: !tt(),
|
|
2006
|
-
classNames: {},
|
|
2007
|
-
closeMenuOnSelect: !0,
|
|
2008
|
-
closeMenuOnScroll: !1,
|
|
2009
|
-
components: {},
|
|
2010
|
-
controlShouldRenderValue: !0,
|
|
2011
|
-
escapeClearsValue: !1,
|
|
2012
|
-
filterOption: Fo(),
|
|
2013
|
-
formatGroupLabel: Jo,
|
|
2014
|
-
getOptionLabel: Yo,
|
|
2015
|
-
getOptionValue: zo,
|
|
2016
|
-
isDisabled: !1,
|
|
2017
|
-
isLoading: !1,
|
|
2018
|
-
isMulti: !1,
|
|
2019
|
-
isRtl: !1,
|
|
2020
|
-
isSearchable: !0,
|
|
2021
|
-
isOptionDisabled: _o,
|
|
2022
|
-
loadingMessage: function() {
|
|
2023
|
-
return "Loading...";
|
|
2024
|
-
},
|
|
2025
|
-
maxMenuHeight: 300,
|
|
2026
|
-
minMenuHeight: 140,
|
|
2027
|
-
menuIsOpen: !1,
|
|
2028
|
-
menuPlacement: "bottom",
|
|
2029
|
-
menuPosition: "absolute",
|
|
2030
|
-
menuShouldBlockScroll: !1,
|
|
2031
|
-
menuShouldScrollIntoView: !_n(),
|
|
2032
|
-
noOptionsMessage: function() {
|
|
2033
|
-
return "No options";
|
|
2034
|
-
},
|
|
2035
|
-
openMenuOnFocus: !1,
|
|
2036
|
-
openMenuOnClick: !0,
|
|
2037
|
-
options: [],
|
|
2038
|
-
pageSize: 5,
|
|
2039
|
-
placeholder: "Select...",
|
|
2040
|
-
screenReaderStatus: function(e) {
|
|
2041
|
-
var i = e.count;
|
|
2042
|
-
return "".concat(i, " result").concat(i !== 1 ? "s" : "", " available");
|
|
2043
|
-
},
|
|
2044
|
-
styles: {},
|
|
2045
|
-
tabIndex: 0,
|
|
2046
|
-
tabSelectsValue: !0,
|
|
2047
|
-
unstyled: !1
|
|
2048
|
-
};
|
|
2049
|
-
function gt(n, e, i, o) {
|
|
2050
|
-
var t = kt(n, e, i), a = Jt(n, e, i), r = Mt(n, e), s = ye(n, e);
|
|
2051
|
-
return {
|
|
2052
|
-
type: "option",
|
|
2053
|
-
data: e,
|
|
2054
|
-
isDisabled: t,
|
|
2055
|
-
isSelected: a,
|
|
2056
|
-
label: r,
|
|
2057
|
-
value: s,
|
|
2058
|
-
index: o
|
|
2059
|
-
};
|
|
2060
|
-
}
|
|
2061
|
-
function fe(n, e) {
|
|
2062
|
-
return n.options.map(function(i, o) {
|
|
2063
|
-
if ("options" in i) {
|
|
2064
|
-
var t = i.options.map(function(r, s) {
|
|
2065
|
-
return gt(n, r, e, s);
|
|
2066
|
-
}).filter(function(r) {
|
|
2067
|
-
return mt(n, r);
|
|
2068
|
-
});
|
|
2069
|
-
return t.length > 0 ? {
|
|
2070
|
-
type: "group",
|
|
2071
|
-
data: i,
|
|
2072
|
-
options: t,
|
|
2073
|
-
index: o
|
|
2074
|
-
} : void 0;
|
|
2075
|
-
}
|
|
2076
|
-
var a = gt(n, i, e, o);
|
|
2077
|
-
return mt(n, a) ? a : void 0;
|
|
2078
|
-
}).filter(Qn);
|
|
2079
|
-
}
|
|
2080
|
-
function Lt(n) {
|
|
2081
|
-
return n.reduce(function(e, i) {
|
|
2082
|
-
return i.type === "group" ? e.push.apply(e, Pe(i.options.map(function(o) {
|
|
2083
|
-
return o.data;
|
|
2084
|
-
}))) : e.push(i.data), e;
|
|
2085
|
-
}, []);
|
|
2086
|
-
}
|
|
2087
|
-
function pt(n, e) {
|
|
2088
|
-
return n.reduce(function(i, o) {
|
|
2089
|
-
return o.type === "group" ? i.push.apply(i, Pe(o.options.map(function(t) {
|
|
2090
|
-
return {
|
|
2091
|
-
data: t.data,
|
|
2092
|
-
id: "".concat(e, "-").concat(o.index, "-").concat(t.index)
|
|
2093
|
-
};
|
|
2094
|
-
}))) : i.push({
|
|
2095
|
-
data: o.data,
|
|
2096
|
-
id: "".concat(e, "-").concat(o.index)
|
|
2097
|
-
}), i;
|
|
2098
|
-
}, []);
|
|
2099
|
-
}
|
|
2100
|
-
function tu(n, e) {
|
|
2101
|
-
return Lt(fe(n, e));
|
|
2102
|
-
}
|
|
2103
|
-
function mt(n, e) {
|
|
2104
|
-
var i = n.inputValue, o = i === void 0 ? "" : i, t = e.data, a = e.isSelected, r = e.label, s = e.value;
|
|
2105
|
-
return (!zt(n) || !a) && Yt(n, {
|
|
2106
|
-
label: r,
|
|
2107
|
-
value: s,
|
|
2108
|
-
data: t
|
|
2109
|
-
}, o);
|
|
2110
|
-
}
|
|
2111
|
-
function nu(n, e) {
|
|
2112
|
-
var i = n.focusedValue, o = n.selectValue, t = o.indexOf(i);
|
|
2113
|
-
if (t > -1) {
|
|
2114
|
-
var a = e.indexOf(i);
|
|
2115
|
-
if (a > -1)
|
|
2116
|
-
return i;
|
|
2117
|
-
if (t < e.length)
|
|
2118
|
-
return e[t];
|
|
2119
|
-
}
|
|
2120
|
-
return null;
|
|
2121
|
-
}
|
|
2122
|
-
function iu(n, e) {
|
|
2123
|
-
var i = n.focusedOption;
|
|
2124
|
-
return i && e.indexOf(i) > -1 ? i : e[0];
|
|
2125
|
-
}
|
|
2126
|
-
var Ne = function(e, i) {
|
|
2127
|
-
var o, t = (o = e.find(function(a) {
|
|
2128
|
-
return a.data === i;
|
|
2129
|
-
})) === null || o === void 0 ? void 0 : o.id;
|
|
2130
|
-
return t || null;
|
|
2131
|
-
}, Mt = function(e, i) {
|
|
2132
|
-
return e.getOptionLabel(i);
|
|
2133
|
-
}, ye = function(e, i) {
|
|
2134
|
-
return e.getOptionValue(i);
|
|
2135
|
-
};
|
|
2136
|
-
function kt(n, e, i) {
|
|
2137
|
-
return typeof n.isOptionDisabled == "function" ? n.isOptionDisabled(e, i) : !1;
|
|
2138
|
-
}
|
|
2139
|
-
function Jt(n, e, i) {
|
|
2140
|
-
if (i.indexOf(e) > -1) return !0;
|
|
2141
|
-
if (typeof n.isOptionSelected == "function")
|
|
2142
|
-
return n.isOptionSelected(e, i);
|
|
2143
|
-
var o = ye(n, e);
|
|
2144
|
-
return i.some(function(t) {
|
|
2145
|
-
return ye(n, t) === o;
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
function Yt(n, e, i) {
|
|
2149
|
-
return n.filterOption ? n.filterOption(e, i) : !0;
|
|
2150
|
-
}
|
|
2151
|
-
var zt = function(e) {
|
|
2152
|
-
var i = e.hideSelectedOptions, o = e.isMulti;
|
|
2153
|
-
return i === void 0 ? o : i;
|
|
2154
|
-
}, ou = 1, _t = /* @__PURE__ */ function(n) {
|
|
2155
|
-
Cn(i, n);
|
|
2156
|
-
var e = xn(i);
|
|
2157
|
-
function i(o) {
|
|
2158
|
-
var t;
|
|
2159
|
-
if (fn(this, i), t = e.call(this, o), t.state = {
|
|
2160
|
-
ariaSelection: null,
|
|
2161
|
-
focusedOption: null,
|
|
2162
|
-
focusedOptionId: null,
|
|
2163
|
-
focusableOptionsWithIds: [],
|
|
2164
|
-
focusedValue: null,
|
|
2165
|
-
inputIsHidden: !1,
|
|
2166
|
-
isFocused: !1,
|
|
2167
|
-
selectValue: [],
|
|
2168
|
-
clearFocusValueOnUpdate: !1,
|
|
2169
|
-
prevWasFocused: !1,
|
|
2170
|
-
inputIsHiddenAfterUpdate: void 0,
|
|
2171
|
-
prevProps: void 0,
|
|
2172
|
-
instancePrefix: ""
|
|
2173
|
-
}, t.blockOptionHover = !1, t.isComposing = !1, t.commonProps = void 0, t.initialTouchX = 0, t.initialTouchY = 0, t.openAfterFocus = !1, t.scrollToFocusedOptionOnUpdate = !1, t.userIsDragging = void 0, t.isAppleDevice = ko(), t.controlRef = null, t.getControlRef = function(u) {
|
|
2174
|
-
t.controlRef = u;
|
|
2175
|
-
}, t.focusedOptionRef = null, t.getFocusedOptionRef = function(u) {
|
|
2176
|
-
t.focusedOptionRef = u;
|
|
2177
|
-
}, t.menuListRef = null, t.getMenuListRef = function(u) {
|
|
2178
|
-
t.menuListRef = u;
|
|
2179
|
-
}, t.inputRef = null, t.getInputRef = function(u) {
|
|
2180
|
-
t.inputRef = u;
|
|
2181
|
-
}, t.focus = t.focusInput, t.blur = t.blurInput, t.onChange = function(u, l) {
|
|
2182
|
-
var c = t.props, d = c.onChange, g = c.name;
|
|
2183
|
-
l.name = g, t.ariaOnChange(u, l), d(u, l);
|
|
2184
|
-
}, t.setValue = function(u, l, c) {
|
|
2185
|
-
var d = t.props, g = d.closeMenuOnSelect, p = d.isMulti, f = d.inputValue;
|
|
2186
|
-
t.onInputChange("", {
|
|
2187
|
-
action: "set-value",
|
|
2188
|
-
prevInputValue: f
|
|
2189
|
-
}), g && (t.setState({
|
|
2190
|
-
inputIsHiddenAfterUpdate: !p
|
|
2191
|
-
}), t.onMenuClose()), t.setState({
|
|
2192
|
-
clearFocusValueOnUpdate: !0
|
|
2193
|
-
}), t.onChange(u, {
|
|
2194
|
-
action: l,
|
|
2195
|
-
option: c
|
|
2196
|
-
});
|
|
2197
|
-
}, t.selectOption = function(u) {
|
|
2198
|
-
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, g = l.name, p = t.state.selectValue, f = d && t.isOptionSelected(u, p), I = t.isOptionDisabled(u, p);
|
|
2199
|
-
if (f) {
|
|
2200
|
-
var b = t.getOptionValue(u);
|
|
2201
|
-
t.setValue(p.filter(function(m) {
|
|
2202
|
-
return t.getOptionValue(m) !== b;
|
|
2203
|
-
}), "deselect-option", u);
|
|
2204
|
-
} else if (!I)
|
|
2205
|
-
d ? t.setValue([].concat(Pe(p), [u]), "select-option", u) : t.setValue(u, "select-option");
|
|
2206
|
-
else {
|
|
2207
|
-
t.ariaOnChange(u, {
|
|
2208
|
-
action: "select-option",
|
|
2209
|
-
option: u,
|
|
2210
|
-
name: g
|
|
2211
|
-
});
|
|
2212
|
-
return;
|
|
2213
|
-
}
|
|
2214
|
-
c && t.blurInput();
|
|
2215
|
-
}, t.removeValue = function(u) {
|
|
2216
|
-
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(u), g = c.filter(function(f) {
|
|
2217
|
-
return t.getOptionValue(f) !== d;
|
|
2218
|
-
}), p = Ie(l, g, g[0] || null);
|
|
2219
|
-
t.onChange(p, {
|
|
2220
|
-
action: "remove-value",
|
|
2221
|
-
removedValue: u
|
|
2222
|
-
}), t.focusInput();
|
|
2223
|
-
}, t.clearValue = function() {
|
|
2224
|
-
var u = t.state.selectValue;
|
|
2225
|
-
t.onChange(Ie(t.props.isMulti, [], null), {
|
|
2226
|
-
action: "clear",
|
|
2227
|
-
removedValues: u
|
|
2228
|
-
});
|
|
2229
|
-
}, t.popValue = function() {
|
|
2230
|
-
var u = t.props.isMulti, l = t.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1), g = Ie(u, d, d[0] || null);
|
|
2231
|
-
c && t.onChange(g, {
|
|
2232
|
-
action: "pop-value",
|
|
2233
|
-
removedValue: c
|
|
2234
|
-
});
|
|
2235
|
-
}, t.getFocusedOptionId = function(u) {
|
|
2236
|
-
return Ne(t.state.focusableOptionsWithIds, u);
|
|
2237
|
-
}, t.getFocusableOptionsWithIds = function() {
|
|
2238
|
-
return pt(fe(t.props, t.state.selectValue), t.getElementId("option"));
|
|
2239
|
-
}, t.getValue = function() {
|
|
2240
|
-
return t.state.selectValue;
|
|
2241
|
-
}, t.cx = function() {
|
|
2242
|
-
for (var u = arguments.length, l = new Array(u), c = 0; c < u; c++)
|
|
2243
|
-
l[c] = arguments[c];
|
|
2244
|
-
return Mn.apply(void 0, [t.props.classNamePrefix].concat(l));
|
|
2245
|
-
}, t.getOptionLabel = function(u) {
|
|
2246
|
-
return Mt(t.props, u);
|
|
2247
|
-
}, t.getOptionValue = function(u) {
|
|
2248
|
-
return ye(t.props, u);
|
|
2249
|
-
}, t.getStyles = function(u, l) {
|
|
2250
|
-
var c = t.props.unstyled, d = jo[u](l, c);
|
|
2251
|
-
d.boxSizing = "border-box";
|
|
2252
|
-
var g = t.props.styles[u];
|
|
2253
|
-
return g ? g(d, l) : d;
|
|
2254
|
-
}, t.getClassNames = function(u, l) {
|
|
2255
|
-
var c, d;
|
|
2256
|
-
return (c = (d = t.props.classNames)[u]) === null || c === void 0 ? void 0 : c.call(d, l);
|
|
2257
|
-
}, t.getElementId = function(u) {
|
|
2258
|
-
return "".concat(t.state.instancePrefix, "-").concat(u);
|
|
2259
|
-
}, t.getComponents = function() {
|
|
2260
|
-
return go(t.props);
|
|
2261
|
-
}, t.buildCategorizedOptions = function() {
|
|
2262
|
-
return fe(t.props, t.state.selectValue);
|
|
2263
|
-
}, t.getCategorizedOptions = function() {
|
|
2264
|
-
return t.props.menuIsOpen ? t.buildCategorizedOptions() : [];
|
|
2265
|
-
}, t.buildFocusableOptions = function() {
|
|
2266
|
-
return Lt(t.buildCategorizedOptions());
|
|
2267
|
-
}, t.getFocusableOptions = function() {
|
|
2268
|
-
return t.props.menuIsOpen ? t.buildFocusableOptions() : [];
|
|
2269
|
-
}, t.ariaOnChange = function(u, l) {
|
|
2270
|
-
t.setState({
|
|
2271
|
-
ariaSelection: C({
|
|
2272
|
-
value: u
|
|
2273
|
-
}, l)
|
|
2274
|
-
});
|
|
2275
|
-
}, t.onMenuMouseDown = function(u) {
|
|
2276
|
-
u.button === 0 && (u.stopPropagation(), u.preventDefault(), t.focusInput());
|
|
2277
|
-
}, t.onMenuMouseMove = function(u) {
|
|
2278
|
-
t.blockOptionHover = !1;
|
|
2279
|
-
}, t.onControlMouseDown = function(u) {
|
|
2280
|
-
if (!u.defaultPrevented) {
|
|
2281
|
-
var l = t.props.openMenuOnClick;
|
|
2282
|
-
t.state.isFocused ? t.props.menuIsOpen ? u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && t.onMenuClose() : l && t.openMenu("first") : (l && (t.openAfterFocus = !0), t.focusInput()), u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && u.preventDefault();
|
|
2283
|
-
}
|
|
2284
|
-
}, t.onDropdownIndicatorMouseDown = function(u) {
|
|
2285
|
-
if (!(u && u.type === "mousedown" && u.button !== 0) && !t.props.isDisabled) {
|
|
2286
|
-
var l = t.props, c = l.isMulti, d = l.menuIsOpen;
|
|
2287
|
-
t.focusInput(), d ? (t.setState({
|
|
2288
|
-
inputIsHiddenAfterUpdate: !c
|
|
2289
|
-
}), t.onMenuClose()) : t.openMenu("first"), u.preventDefault();
|
|
2290
|
-
}
|
|
2291
|
-
}, t.onClearIndicatorMouseDown = function(u) {
|
|
2292
|
-
u && u.type === "mousedown" && u.button !== 0 || (t.clearValue(), u.preventDefault(), t.openAfterFocus = !1, u.type === "touchend" ? t.focusInput() : setTimeout(function() {
|
|
2293
|
-
return t.focusInput();
|
|
2294
|
-
}));
|
|
2295
|
-
}, t.onScroll = function(u) {
|
|
2296
|
-
typeof t.props.closeMenuOnScroll == "boolean" ? u.target instanceof HTMLElement && Be(u.target) && t.props.onMenuClose() : typeof t.props.closeMenuOnScroll == "function" && t.props.closeMenuOnScroll(u) && t.props.onMenuClose();
|
|
2297
|
-
}, t.onCompositionStart = function() {
|
|
2298
|
-
t.isComposing = !0;
|
|
2299
|
-
}, t.onCompositionEnd = function() {
|
|
2300
|
-
t.isComposing = !1;
|
|
2301
|
-
}, t.onTouchStart = function(u) {
|
|
2302
|
-
var l = u.touches, c = l && l.item(0);
|
|
2303
|
-
c && (t.initialTouchX = c.clientX, t.initialTouchY = c.clientY, t.userIsDragging = !1);
|
|
2304
|
-
}, t.onTouchMove = function(u) {
|
|
2305
|
-
var l = u.touches, c = l && l.item(0);
|
|
2306
|
-
if (c) {
|
|
2307
|
-
var d = Math.abs(c.clientX - t.initialTouchX), g = Math.abs(c.clientY - t.initialTouchY), p = 5;
|
|
2308
|
-
t.userIsDragging = d > p || g > p;
|
|
2309
|
-
}
|
|
2310
|
-
}, t.onTouchEnd = function(u) {
|
|
2311
|
-
t.userIsDragging || (t.controlRef && !t.controlRef.contains(u.target) && t.menuListRef && !t.menuListRef.contains(u.target) && t.blurInput(), t.initialTouchX = 0, t.initialTouchY = 0);
|
|
2312
|
-
}, t.onControlTouchEnd = function(u) {
|
|
2313
|
-
t.userIsDragging || t.onControlMouseDown(u);
|
|
2314
|
-
}, t.onClearIndicatorTouchEnd = function(u) {
|
|
2315
|
-
t.userIsDragging || t.onClearIndicatorMouseDown(u);
|
|
2316
|
-
}, t.onDropdownIndicatorTouchEnd = function(u) {
|
|
2317
|
-
t.userIsDragging || t.onDropdownIndicatorMouseDown(u);
|
|
2318
|
-
}, t.handleInputChange = function(u) {
|
|
2319
|
-
var l = t.props.inputValue, c = u.currentTarget.value;
|
|
2320
|
-
t.setState({
|
|
2321
|
-
inputIsHiddenAfterUpdate: !1
|
|
2322
|
-
}), t.onInputChange(c, {
|
|
2323
|
-
action: "input-change",
|
|
2324
|
-
prevInputValue: l
|
|
2325
|
-
}), t.props.menuIsOpen || t.onMenuOpen();
|
|
2326
|
-
}, t.onInputFocus = function(u) {
|
|
2327
|
-
t.props.onFocus && t.props.onFocus(u), t.setState({
|
|
2328
|
-
inputIsHiddenAfterUpdate: !1,
|
|
2329
|
-
isFocused: !0
|
|
2330
|
-
}), (t.openAfterFocus || t.props.openMenuOnFocus) && t.openMenu("first"), t.openAfterFocus = !1;
|
|
2331
|
-
}, t.onInputBlur = function(u) {
|
|
2332
|
-
var l = t.props.inputValue;
|
|
2333
|
-
if (t.menuListRef && t.menuListRef.contains(document.activeElement)) {
|
|
2334
|
-
t.inputRef.focus();
|
|
2335
|
-
return;
|
|
2336
|
-
}
|
|
2337
|
-
t.props.onBlur && t.props.onBlur(u), t.onInputChange("", {
|
|
2338
|
-
action: "input-blur",
|
|
2339
|
-
prevInputValue: l
|
|
2340
|
-
}), t.onMenuClose(), t.setState({
|
|
2341
|
-
focusedValue: null,
|
|
2342
|
-
isFocused: !1
|
|
2343
|
-
});
|
|
2344
|
-
}, t.onOptionHover = function(u) {
|
|
2345
|
-
if (!(t.blockOptionHover || t.state.focusedOption === u)) {
|
|
2346
|
-
var l = t.getFocusableOptions(), c = l.indexOf(u);
|
|
2347
|
-
t.setState({
|
|
2348
|
-
focusedOption: u,
|
|
2349
|
-
focusedOptionId: c > -1 ? t.getFocusedOptionId(u) : null
|
|
2350
|
-
});
|
|
2351
|
-
}
|
|
2352
|
-
}, t.shouldHideSelectedOptions = function() {
|
|
2353
|
-
return zt(t.props);
|
|
2354
|
-
}, t.onValueInputFocus = function(u) {
|
|
2355
|
-
u.preventDefault(), u.stopPropagation(), t.focus();
|
|
2356
|
-
}, t.onKeyDown = function(u) {
|
|
2357
|
-
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, g = l.escapeClearsValue, p = l.inputValue, f = l.isClearable, I = l.isDisabled, b = l.menuIsOpen, m = l.onKeyDown, A = l.tabSelectsValue, x = l.openMenuOnFocus, B = t.state, F = B.focusedOption, E = B.focusedValue, V = B.selectValue;
|
|
2358
|
-
if (!I && !(typeof m == "function" && (m(u), u.defaultPrevented))) {
|
|
2359
|
-
switch (t.blockOptionHover = !0, u.key) {
|
|
2360
|
-
case "ArrowLeft":
|
|
2361
|
-
if (!c || p) return;
|
|
2362
|
-
t.focusValue("previous");
|
|
2363
|
-
break;
|
|
2364
|
-
case "ArrowRight":
|
|
2365
|
-
if (!c || p) return;
|
|
2366
|
-
t.focusValue("next");
|
|
2367
|
-
break;
|
|
2368
|
-
case "Delete":
|
|
2369
|
-
case "Backspace":
|
|
2370
|
-
if (p) return;
|
|
2371
|
-
if (E)
|
|
2372
|
-
t.removeValue(E);
|
|
2373
|
-
else {
|
|
2374
|
-
if (!d) return;
|
|
2375
|
-
c ? t.popValue() : f && t.clearValue();
|
|
2376
|
-
}
|
|
2377
|
-
break;
|
|
2378
|
-
case "Tab":
|
|
2379
|
-
if (t.isComposing || u.shiftKey || !b || !A || !F || // don't capture the event if the menu opens on focus and the focused
|
|
2380
|
-
// option is already selected; it breaks the flow of navigation
|
|
2381
|
-
x && t.isOptionSelected(F, V))
|
|
2382
|
-
return;
|
|
2383
|
-
t.selectOption(F);
|
|
2384
|
-
break;
|
|
2385
|
-
case "Enter":
|
|
2386
|
-
if (u.keyCode === 229)
|
|
2387
|
-
break;
|
|
2388
|
-
if (b) {
|
|
2389
|
-
if (!F || t.isComposing) return;
|
|
2390
|
-
t.selectOption(F);
|
|
2391
|
-
break;
|
|
2392
|
-
}
|
|
2393
|
-
return;
|
|
2394
|
-
case "Escape":
|
|
2395
|
-
b ? (t.setState({
|
|
2396
|
-
inputIsHiddenAfterUpdate: !1
|
|
2397
|
-
}), t.onInputChange("", {
|
|
2398
|
-
action: "menu-close",
|
|
2399
|
-
prevInputValue: p
|
|
2400
|
-
}), t.onMenuClose()) : f && g && t.clearValue();
|
|
2401
|
-
break;
|
|
2402
|
-
case " ":
|
|
2403
|
-
if (p)
|
|
2404
|
-
return;
|
|
2405
|
-
if (!b) {
|
|
2406
|
-
t.openMenu("first");
|
|
2407
|
-
break;
|
|
2408
|
-
}
|
|
2409
|
-
if (!F) return;
|
|
2410
|
-
t.selectOption(F);
|
|
2411
|
-
break;
|
|
2412
|
-
case "ArrowUp":
|
|
2413
|
-
b ? t.focusOption("up") : t.openMenu("last");
|
|
2414
|
-
break;
|
|
2415
|
-
case "ArrowDown":
|
|
2416
|
-
b ? t.focusOption("down") : t.openMenu("first");
|
|
2417
|
-
break;
|
|
2418
|
-
case "PageUp":
|
|
2419
|
-
if (!b) return;
|
|
2420
|
-
t.focusOption("pageup");
|
|
2421
|
-
break;
|
|
2422
|
-
case "PageDown":
|
|
2423
|
-
if (!b) return;
|
|
2424
|
-
t.focusOption("pagedown");
|
|
2425
|
-
break;
|
|
2426
|
-
case "Home":
|
|
2427
|
-
if (!b) return;
|
|
2428
|
-
t.focusOption("first");
|
|
2429
|
-
break;
|
|
2430
|
-
case "End":
|
|
2431
|
-
if (!b) return;
|
|
2432
|
-
t.focusOption("last");
|
|
2433
|
-
break;
|
|
2434
|
-
default:
|
|
2435
|
-
return;
|
|
2436
|
-
}
|
|
2437
|
-
u.preventDefault();
|
|
2438
|
-
}
|
|
2439
|
-
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++ou), t.state.selectValue = qe(o.value), o.menuIsOpen && t.state.selectValue.length) {
|
|
2440
|
-
var a = t.getFocusableOptionsWithIds(), r = t.buildFocusableOptions(), s = r.indexOf(t.state.selectValue[0]);
|
|
2441
|
-
t.state.focusableOptionsWithIds = a, t.state.focusedOption = r[s], t.state.focusedOptionId = Ne(a, r[s]);
|
|
2442
|
-
}
|
|
2443
|
-
return t;
|
|
2444
|
-
}
|
|
2445
|
-
return vn(i, [{
|
|
2446
|
-
key: "componentDidMount",
|
|
2447
|
-
value: function() {
|
|
2448
|
-
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && et(this.menuListRef, this.focusedOptionRef);
|
|
2449
|
-
}
|
|
2450
|
-
}, {
|
|
2451
|
-
key: "componentDidUpdate",
|
|
2452
|
-
value: function(t) {
|
|
2453
|
-
var a = this.props, r = a.isDisabled, s = a.menuIsOpen, u = this.state.isFocused;
|
|
2454
|
-
// ensure focus is restored correctly when the control becomes enabled
|
|
2455
|
-
(u && !r && t.isDisabled || // ensure focus is on the Input when the menu opens
|
|
2456
|
-
u && s && !t.menuIsOpen) && this.focusInput(), u && r && !t.isDisabled ? this.setState({
|
|
2457
|
-
isFocused: !1
|
|
2458
|
-
}, this.onMenuClose) : !u && !r && t.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
2459
|
-
isFocused: !0
|
|
2460
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (et(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
2461
|
-
}
|
|
2462
|
-
}, {
|
|
2463
|
-
key: "componentWillUnmount",
|
|
2464
|
-
value: function() {
|
|
2465
|
-
this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
|
|
2466
|
-
}
|
|
2467
|
-
// ==============================
|
|
2468
|
-
// Consumer Handlers
|
|
2469
|
-
// ==============================
|
|
2470
|
-
}, {
|
|
2471
|
-
key: "onMenuOpen",
|
|
2472
|
-
value: function() {
|
|
2473
|
-
this.props.onMenuOpen();
|
|
2474
|
-
}
|
|
2475
|
-
}, {
|
|
2476
|
-
key: "onMenuClose",
|
|
2477
|
-
value: function() {
|
|
2478
|
-
this.onInputChange("", {
|
|
2479
|
-
action: "menu-close",
|
|
2480
|
-
prevInputValue: this.props.inputValue
|
|
2481
|
-
}), this.props.onMenuClose();
|
|
2482
|
-
}
|
|
2483
|
-
}, {
|
|
2484
|
-
key: "onInputChange",
|
|
2485
|
-
value: function(t, a) {
|
|
2486
|
-
this.props.onInputChange(t, a);
|
|
2487
|
-
}
|
|
2488
|
-
// ==============================
|
|
2489
|
-
// Methods
|
|
2490
|
-
// ==============================
|
|
2491
|
-
}, {
|
|
2492
|
-
key: "focusInput",
|
|
2493
|
-
value: function() {
|
|
2494
|
-
this.inputRef && this.inputRef.focus();
|
|
2495
|
-
}
|
|
2496
|
-
}, {
|
|
2497
|
-
key: "blurInput",
|
|
2498
|
-
value: function() {
|
|
2499
|
-
this.inputRef && this.inputRef.blur();
|
|
2500
|
-
}
|
|
2501
|
-
// aliased for consumers
|
|
2502
|
-
}, {
|
|
2503
|
-
key: "openMenu",
|
|
2504
|
-
value: function(t) {
|
|
2505
|
-
var a = this, r = this.state, s = r.selectValue, u = r.isFocused, l = this.buildFocusableOptions(), c = t === "first" ? 0 : l.length - 1;
|
|
2506
|
-
if (!this.props.isMulti) {
|
|
2507
|
-
var d = l.indexOf(s[0]);
|
|
2508
|
-
d > -1 && (c = d);
|
|
2509
|
-
}
|
|
2510
|
-
this.scrollToFocusedOptionOnUpdate = !(u && this.menuListRef), this.setState({
|
|
2511
|
-
inputIsHiddenAfterUpdate: !1,
|
|
2512
|
-
focusedValue: null,
|
|
2513
|
-
focusedOption: l[c],
|
|
2514
|
-
focusedOptionId: this.getFocusedOptionId(l[c])
|
|
2515
|
-
}, function() {
|
|
2516
|
-
return a.onMenuOpen();
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
}, {
|
|
2520
|
-
key: "focusValue",
|
|
2521
|
-
value: function(t) {
|
|
2522
|
-
var a = this.state, r = a.selectValue, s = a.focusedValue;
|
|
2523
|
-
if (this.props.isMulti) {
|
|
2524
|
-
this.setState({
|
|
2525
|
-
focusedOption: null
|
|
2526
|
-
});
|
|
2527
|
-
var u = r.indexOf(s);
|
|
2528
|
-
s || (u = -1);
|
|
2529
|
-
var l = r.length - 1, c = -1;
|
|
2530
|
-
if (r.length) {
|
|
2531
|
-
switch (t) {
|
|
2532
|
-
case "previous":
|
|
2533
|
-
u === 0 ? c = 0 : u === -1 ? c = l : c = u - 1;
|
|
2534
|
-
break;
|
|
2535
|
-
case "next":
|
|
2536
|
-
u > -1 && u < l && (c = u + 1);
|
|
2537
|
-
break;
|
|
2538
|
-
}
|
|
2539
|
-
this.setState({
|
|
2540
|
-
inputIsHidden: c !== -1,
|
|
2541
|
-
focusedValue: r[c]
|
|
2542
|
-
});
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
}, {
|
|
2547
|
-
key: "focusOption",
|
|
2548
|
-
value: function() {
|
|
2549
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", a = this.props.pageSize, r = this.state.focusedOption, s = this.getFocusableOptions();
|
|
2550
|
-
if (s.length) {
|
|
2551
|
-
var u = 0, l = s.indexOf(r);
|
|
2552
|
-
r || (l = -1), t === "up" ? u = l > 0 ? l - 1 : s.length - 1 : t === "down" ? u = (l + 1) % s.length : t === "pageup" ? (u = l - a, u < 0 && (u = 0)) : t === "pagedown" ? (u = l + a, u > s.length - 1 && (u = s.length - 1)) : t === "last" && (u = s.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
|
2553
|
-
focusedOption: s[u],
|
|
2554
|
-
focusedValue: null,
|
|
2555
|
-
focusedOptionId: this.getFocusedOptionId(s[u])
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
}, {
|
|
2560
|
-
key: "getTheme",
|
|
2561
|
-
value: (
|
|
2562
|
-
// ==============================
|
|
2563
|
-
// Getters
|
|
2564
|
-
// ==============================
|
|
2565
|
-
function() {
|
|
2566
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(Xe) : C(C({}, Xe), this.props.theme) : Xe;
|
|
2567
|
-
}
|
|
2568
|
-
)
|
|
2569
|
-
}, {
|
|
2570
|
-
key: "getCommonProps",
|
|
2571
|
-
value: function() {
|
|
2572
|
-
var t = this.clearValue, a = this.cx, r = this.getStyles, s = this.getClassNames, u = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, g = d.isMulti, p = d.isRtl, f = d.options, I = this.hasValue();
|
|
2573
|
-
return {
|
|
2574
|
-
clearValue: t,
|
|
2575
|
-
cx: a,
|
|
2576
|
-
getStyles: r,
|
|
2577
|
-
getClassNames: s,
|
|
2578
|
-
getValue: u,
|
|
2579
|
-
hasValue: I,
|
|
2580
|
-
isMulti: g,
|
|
2581
|
-
isRtl: p,
|
|
2582
|
-
options: f,
|
|
2583
|
-
selectOption: l,
|
|
2584
|
-
selectProps: d,
|
|
2585
|
-
setValue: c,
|
|
2586
|
-
theme: this.getTheme()
|
|
2587
|
-
};
|
|
2588
|
-
}
|
|
2589
|
-
}, {
|
|
2590
|
-
key: "hasValue",
|
|
2591
|
-
value: function() {
|
|
2592
|
-
var t = this.state.selectValue;
|
|
2593
|
-
return t.length > 0;
|
|
2594
|
-
}
|
|
2595
|
-
}, {
|
|
2596
|
-
key: "hasOptions",
|
|
2597
|
-
value: function() {
|
|
2598
|
-
return !!this.getFocusableOptions().length;
|
|
2599
|
-
}
|
|
2600
|
-
}, {
|
|
2601
|
-
key: "isClearable",
|
|
2602
|
-
value: function() {
|
|
2603
|
-
var t = this.props, a = t.isClearable, r = t.isMulti;
|
|
2604
|
-
return a === void 0 ? r : a;
|
|
2605
|
-
}
|
|
2606
|
-
}, {
|
|
2607
|
-
key: "isOptionDisabled",
|
|
2608
|
-
value: function(t, a) {
|
|
2609
|
-
return kt(this.props, t, a);
|
|
2610
|
-
}
|
|
2611
|
-
}, {
|
|
2612
|
-
key: "isOptionSelected",
|
|
2613
|
-
value: function(t, a) {
|
|
2614
|
-
return Jt(this.props, t, a);
|
|
2615
|
-
}
|
|
2616
|
-
}, {
|
|
2617
|
-
key: "filterOption",
|
|
2618
|
-
value: function(t, a) {
|
|
2619
|
-
return Yt(this.props, t, a);
|
|
2620
|
-
}
|
|
2621
|
-
}, {
|
|
2622
|
-
key: "formatOptionLabel",
|
|
2623
|
-
value: function(t, a) {
|
|
2624
|
-
if (typeof this.props.formatOptionLabel == "function") {
|
|
2625
|
-
var r = this.props.inputValue, s = this.state.selectValue;
|
|
2626
|
-
return this.props.formatOptionLabel(t, {
|
|
2627
|
-
context: a,
|
|
2628
|
-
inputValue: r,
|
|
2629
|
-
selectValue: s
|
|
2630
|
-
});
|
|
2631
|
-
} else
|
|
2632
|
-
return this.getOptionLabel(t);
|
|
2633
|
-
}
|
|
2634
|
-
}, {
|
|
2635
|
-
key: "formatGroupLabel",
|
|
2636
|
-
value: function(t) {
|
|
2637
|
-
return this.props.formatGroupLabel(t);
|
|
2638
|
-
}
|
|
2639
|
-
// ==============================
|
|
2640
|
-
// Mouse Handlers
|
|
2641
|
-
// ==============================
|
|
2642
|
-
}, {
|
|
2643
|
-
key: "startListeningComposition",
|
|
2644
|
-
value: (
|
|
2645
|
-
// ==============================
|
|
2646
|
-
// Composition Handlers
|
|
2647
|
-
// ==============================
|
|
2648
|
-
function() {
|
|
2649
|
-
document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
|
|
2650
|
-
}
|
|
2651
|
-
)
|
|
2652
|
-
}, {
|
|
2653
|
-
key: "stopListeningComposition",
|
|
2654
|
-
value: function() {
|
|
2655
|
-
document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
|
|
2656
|
-
}
|
|
2657
|
-
}, {
|
|
2658
|
-
key: "startListeningToTouch",
|
|
2659
|
-
value: (
|
|
2660
|
-
// ==============================
|
|
2661
|
-
// Touch Handlers
|
|
2662
|
-
// ==============================
|
|
2663
|
-
function() {
|
|
2664
|
-
document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
|
|
2665
|
-
}
|
|
2666
|
-
)
|
|
2667
|
-
}, {
|
|
2668
|
-
key: "stopListeningToTouch",
|
|
2669
|
-
value: function() {
|
|
2670
|
-
document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
|
|
2671
|
-
}
|
|
2672
|
-
}, {
|
|
2673
|
-
key: "renderInput",
|
|
2674
|
-
value: (
|
|
2675
|
-
// ==============================
|
|
2676
|
-
// Renderers
|
|
2677
|
-
// ==============================
|
|
2678
|
-
function() {
|
|
2679
|
-
var t = this.props, a = t.isDisabled, r = t.isSearchable, s = t.inputId, u = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, g = t.required, p = this.getComponents(), f = p.Input, I = this.state, b = I.inputIsHidden, m = I.ariaSelection, A = this.commonProps, x = s || this.getElementId("input"), B = C(C(C({
|
|
2680
|
-
"aria-autocomplete": "list",
|
|
2681
|
-
"aria-expanded": d,
|
|
2682
|
-
"aria-haspopup": !0,
|
|
2683
|
-
"aria-errormessage": this.props["aria-errormessage"],
|
|
2684
|
-
"aria-invalid": this.props["aria-invalid"],
|
|
2685
|
-
"aria-label": this.props["aria-label"],
|
|
2686
|
-
"aria-labelledby": this.props["aria-labelledby"],
|
|
2687
|
-
"aria-required": g,
|
|
2688
|
-
role: "combobox",
|
|
2689
|
-
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
2690
|
-
}, d && {
|
|
2691
|
-
"aria-controls": this.getElementId("listbox")
|
|
2692
|
-
}), !r && {
|
|
2693
|
-
"aria-readonly": !0
|
|
2694
|
-
}), this.hasValue() ? (m == null ? void 0 : m.action) === "initial-input-focus" && {
|
|
2695
|
-
"aria-describedby": this.getElementId("live-region")
|
|
2696
|
-
} : {
|
|
2697
|
-
"aria-describedby": this.getElementId("placeholder")
|
|
2698
|
-
});
|
|
2699
|
-
return r ? /* @__PURE__ */ W.createElement(f, h({}, A, {
|
|
2700
|
-
autoCapitalize: "none",
|
|
2701
|
-
autoComplete: "off",
|
|
2702
|
-
autoCorrect: "off",
|
|
2703
|
-
id: x,
|
|
2704
|
-
innerRef: this.getInputRef,
|
|
2705
|
-
isDisabled: a,
|
|
2706
|
-
isHidden: b,
|
|
2707
|
-
onBlur: this.onInputBlur,
|
|
2708
|
-
onChange: this.handleInputChange,
|
|
2709
|
-
onFocus: this.onInputFocus,
|
|
2710
|
-
spellCheck: "false",
|
|
2711
|
-
tabIndex: l,
|
|
2712
|
-
form: c,
|
|
2713
|
-
type: "text",
|
|
2714
|
-
value: u
|
|
2715
|
-
}, B)) : /* @__PURE__ */ W.createElement(Vo, h({
|
|
2716
|
-
id: x,
|
|
2717
|
-
innerRef: this.getInputRef,
|
|
2718
|
-
onBlur: this.onInputBlur,
|
|
2719
|
-
onChange: xe,
|
|
2720
|
-
onFocus: this.onInputFocus,
|
|
2721
|
-
disabled: a,
|
|
2722
|
-
tabIndex: l,
|
|
2723
|
-
inputMode: "none",
|
|
2724
|
-
form: c,
|
|
2725
|
-
value: ""
|
|
2726
|
-
}, B));
|
|
2727
|
-
}
|
|
2728
|
-
)
|
|
2729
|
-
}, {
|
|
2730
|
-
key: "renderPlaceholderOrValue",
|
|
2731
|
-
value: function() {
|
|
2732
|
-
var t = this, a = this.getComponents(), r = a.MultiValue, s = a.MultiValueContainer, u = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, g = this.commonProps, p = this.props, f = p.controlShouldRenderValue, I = p.isDisabled, b = p.isMulti, m = p.inputValue, A = p.placeholder, x = this.state, B = x.selectValue, F = x.focusedValue, E = x.isFocused;
|
|
2733
|
-
if (!this.hasValue() || !f)
|
|
2734
|
-
return m ? null : /* @__PURE__ */ W.createElement(d, h({}, g, {
|
|
2735
|
-
key: "placeholder",
|
|
2736
|
-
isDisabled: I,
|
|
2737
|
-
isFocused: E,
|
|
2738
|
-
innerProps: {
|
|
2739
|
-
id: this.getElementId("placeholder")
|
|
2740
|
-
}
|
|
2741
|
-
}), A);
|
|
2742
|
-
if (b)
|
|
2743
|
-
return B.map(function(G, X) {
|
|
2744
|
-
var H = G === F, P = "".concat(t.getOptionLabel(G), "-").concat(t.getOptionValue(G));
|
|
2745
|
-
return /* @__PURE__ */ W.createElement(r, h({}, g, {
|
|
2746
|
-
components: {
|
|
2747
|
-
Container: s,
|
|
2748
|
-
Label: u,
|
|
2749
|
-
Remove: l
|
|
2750
|
-
},
|
|
2751
|
-
isFocused: H,
|
|
2752
|
-
isDisabled: I,
|
|
2753
|
-
key: P,
|
|
2754
|
-
index: X,
|
|
2755
|
-
removeProps: {
|
|
2756
|
-
onClick: function() {
|
|
2757
|
-
return t.removeValue(G);
|
|
2758
|
-
},
|
|
2759
|
-
onTouchEnd: function() {
|
|
2760
|
-
return t.removeValue(G);
|
|
2761
|
-
},
|
|
2762
|
-
onMouseDown: function(J) {
|
|
2763
|
-
J.preventDefault();
|
|
2764
|
-
}
|
|
2765
|
-
},
|
|
2766
|
-
data: G
|
|
2767
|
-
}), t.formatOptionLabel(G, "value"));
|
|
2768
|
-
});
|
|
2769
|
-
if (m)
|
|
2770
|
-
return null;
|
|
2771
|
-
var V = B[0];
|
|
2772
|
-
return /* @__PURE__ */ W.createElement(c, h({}, g, {
|
|
2773
|
-
data: V,
|
|
2774
|
-
isDisabled: I
|
|
2775
|
-
}), this.formatOptionLabel(V, "value"));
|
|
2776
|
-
}
|
|
2777
|
-
}, {
|
|
2778
|
-
key: "renderClearIndicator",
|
|
2779
|
-
value: function() {
|
|
2780
|
-
var t = this.getComponents(), a = t.ClearIndicator, r = this.commonProps, s = this.props, u = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2781
|
-
if (!this.isClearable() || !a || u || !this.hasValue() || l)
|
|
2782
|
-
return null;
|
|
2783
|
-
var d = {
|
|
2784
|
-
onMouseDown: this.onClearIndicatorMouseDown,
|
|
2785
|
-
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
2786
|
-
"aria-hidden": "true"
|
|
2787
|
-
};
|
|
2788
|
-
return /* @__PURE__ */ W.createElement(a, h({}, r, {
|
|
2789
|
-
innerProps: d,
|
|
2790
|
-
isFocused: c
|
|
2791
|
-
}));
|
|
2792
|
-
}
|
|
2793
|
-
}, {
|
|
2794
|
-
key: "renderLoadingIndicator",
|
|
2795
|
-
value: function() {
|
|
2796
|
-
var t = this.getComponents(), a = t.LoadingIndicator, r = this.commonProps, s = this.props, u = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2797
|
-
if (!a || !l) return null;
|
|
2798
|
-
var d = {
|
|
2799
|
-
"aria-hidden": "true"
|
|
2800
|
-
};
|
|
2801
|
-
return /* @__PURE__ */ W.createElement(a, h({}, r, {
|
|
2802
|
-
innerProps: d,
|
|
2803
|
-
isDisabled: u,
|
|
2804
|
-
isFocused: c
|
|
2805
|
-
}));
|
|
2806
|
-
}
|
|
2807
|
-
}, {
|
|
2808
|
-
key: "renderIndicatorSeparator",
|
|
2809
|
-
value: function() {
|
|
2810
|
-
var t = this.getComponents(), a = t.DropdownIndicator, r = t.IndicatorSeparator;
|
|
2811
|
-
if (!a || !r) return null;
|
|
2812
|
-
var s = this.commonProps, u = this.props.isDisabled, l = this.state.isFocused;
|
|
2813
|
-
return /* @__PURE__ */ W.createElement(r, h({}, s, {
|
|
2814
|
-
isDisabled: u,
|
|
2815
|
-
isFocused: l
|
|
2816
|
-
}));
|
|
2817
|
-
}
|
|
2818
|
-
}, {
|
|
2819
|
-
key: "renderDropdownIndicator",
|
|
2820
|
-
value: function() {
|
|
2821
|
-
var t = this.getComponents(), a = t.DropdownIndicator;
|
|
2822
|
-
if (!a) return null;
|
|
2823
|
-
var r = this.commonProps, s = this.props.isDisabled, u = this.state.isFocused, l = {
|
|
2824
|
-
onMouseDown: this.onDropdownIndicatorMouseDown,
|
|
2825
|
-
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
2826
|
-
"aria-hidden": "true"
|
|
2827
|
-
};
|
|
2828
|
-
return /* @__PURE__ */ W.createElement(a, h({}, r, {
|
|
2829
|
-
innerProps: l,
|
|
2830
|
-
isDisabled: s,
|
|
2831
|
-
isFocused: u
|
|
2832
|
-
}));
|
|
2833
|
-
}
|
|
2834
|
-
}, {
|
|
2835
|
-
key: "renderMenu",
|
|
2836
|
-
value: function() {
|
|
2837
|
-
var t = this, a = this.getComponents(), r = a.Group, s = a.GroupHeading, u = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, p = a.Option, f = this.commonProps, I = this.state.focusedOption, b = this.props, m = b.captureMenuScroll, A = b.inputValue, x = b.isLoading, B = b.loadingMessage, F = b.minMenuHeight, E = b.maxMenuHeight, V = b.menuIsOpen, G = b.menuPlacement, X = b.menuPosition, H = b.menuPortalTarget, P = b.menuShouldBlockScroll, T = b.menuShouldScrollIntoView, J = b.noOptionsMessage, Y = b.onMenuScrollToTop, D = b.onMenuScrollToBottom;
|
|
2838
|
-
if (!V) return null;
|
|
2839
|
-
var R = function(M, $) {
|
|
2840
|
-
var ne = M.type, j = M.data, ie = M.isDisabled, K = M.isSelected, be = M.label, jt = M.value, Ye = I === j, ze = ie ? void 0 : function() {
|
|
2841
|
-
return t.onOptionHover(j);
|
|
2842
|
-
}, Ut = ie ? void 0 : function() {
|
|
2843
|
-
return t.selectOption(j);
|
|
2844
|
-
}, _e = "".concat(t.getElementId("option"), "-").concat($), Qt = {
|
|
2845
|
-
id: _e,
|
|
2846
|
-
onClick: Ut,
|
|
2847
|
-
onMouseMove: ze,
|
|
2848
|
-
onMouseOver: ze,
|
|
2849
|
-
tabIndex: -1,
|
|
2850
|
-
role: "option",
|
|
2851
|
-
"aria-selected": t.isAppleDevice ? void 0 : K
|
|
2852
|
-
// is not supported on Apple devices
|
|
2853
|
-
};
|
|
2854
|
-
return /* @__PURE__ */ W.createElement(p, h({}, f, {
|
|
2855
|
-
innerProps: Qt,
|
|
2856
|
-
data: j,
|
|
2857
|
-
isDisabled: ie,
|
|
2858
|
-
isSelected: K,
|
|
2859
|
-
key: _e,
|
|
2860
|
-
label: be,
|
|
2861
|
-
type: ne,
|
|
2862
|
-
value: jt,
|
|
2863
|
-
isFocused: Ye,
|
|
2864
|
-
innerRef: Ye ? t.getFocusedOptionRef : void 0
|
|
2865
|
-
}), t.formatOptionLabel(M.data, "menu"));
|
|
2866
|
-
}, S;
|
|
2867
|
-
if (this.hasOptions())
|
|
2868
|
-
S = this.getCategorizedOptions().map(function(w) {
|
|
2869
|
-
if (w.type === "group") {
|
|
2870
|
-
var M = w.data, $ = w.options, ne = w.index, j = "".concat(t.getElementId("group"), "-").concat(ne), ie = "".concat(j, "-heading");
|
|
2871
|
-
return /* @__PURE__ */ W.createElement(r, h({}, f, {
|
|
2872
|
-
key: j,
|
|
2873
|
-
data: M,
|
|
2874
|
-
options: $,
|
|
2875
|
-
Heading: s,
|
|
2876
|
-
headingProps: {
|
|
2877
|
-
id: ie,
|
|
2878
|
-
data: w.data
|
|
2879
|
-
},
|
|
2880
|
-
label: t.formatGroupLabel(w.data)
|
|
2881
|
-
}), w.options.map(function(K) {
|
|
2882
|
-
return R(K, "".concat(ne, "-").concat(K.index));
|
|
2883
|
-
}));
|
|
2884
|
-
} else if (w.type === "option")
|
|
2885
|
-
return R(w, "".concat(w.index));
|
|
2886
|
-
});
|
|
2887
|
-
else if (x) {
|
|
2888
|
-
var L = B({
|
|
2889
|
-
inputValue: A
|
|
2890
|
-
});
|
|
2891
|
-
if (L === null) return null;
|
|
2892
|
-
S = /* @__PURE__ */ W.createElement(d, f, L);
|
|
2893
|
-
} else {
|
|
2894
|
-
var z = J({
|
|
2895
|
-
inputValue: A
|
|
2896
|
-
});
|
|
2897
|
-
if (z === null) return null;
|
|
2898
|
-
S = /* @__PURE__ */ W.createElement(g, f, z);
|
|
2899
|
-
}
|
|
2900
|
-
var _ = {
|
|
2901
|
-
minMenuHeight: F,
|
|
2902
|
-
maxMenuHeight: E,
|
|
2903
|
-
menuPlacement: G,
|
|
2904
|
-
menuPosition: X,
|
|
2905
|
-
menuShouldScrollIntoView: T
|
|
2906
|
-
}, de = /* @__PURE__ */ W.createElement(oi, h({}, f, _), function(w) {
|
|
2907
|
-
var M = w.ref, $ = w.placerProps, ne = $.placement, j = $.maxHeight;
|
|
2908
|
-
return /* @__PURE__ */ W.createElement(u, h({}, f, _, {
|
|
2909
|
-
innerRef: M,
|
|
2910
|
-
innerProps: {
|
|
2911
|
-
onMouseDown: t.onMenuMouseDown,
|
|
2912
|
-
onMouseMove: t.onMenuMouseMove
|
|
2913
|
-
},
|
|
2914
|
-
isLoading: x,
|
|
2915
|
-
placement: ne
|
|
2916
|
-
}), /* @__PURE__ */ W.createElement(Do, {
|
|
2917
|
-
captureEnabled: m,
|
|
2918
|
-
onTopArrive: Y,
|
|
2919
|
-
onBottomArrive: D,
|
|
2920
|
-
lockEnabled: P
|
|
2921
|
-
}, function(ie) {
|
|
2922
|
-
return /* @__PURE__ */ W.createElement(l, h({}, f, {
|
|
2923
|
-
innerRef: function(be) {
|
|
2924
|
-
t.getMenuListRef(be), ie(be);
|
|
2925
|
-
},
|
|
2926
|
-
innerProps: {
|
|
2927
|
-
role: "listbox",
|
|
2928
|
-
"aria-multiselectable": f.isMulti,
|
|
2929
|
-
id: t.getElementId("listbox")
|
|
2930
|
-
},
|
|
2931
|
-
isLoading: x,
|
|
2932
|
-
maxHeight: j,
|
|
2933
|
-
focusedOption: I
|
|
2934
|
-
}), S);
|
|
2935
|
-
}));
|
|
2936
|
-
});
|
|
2937
|
-
return H || X === "fixed" ? /* @__PURE__ */ W.createElement(c, h({}, f, {
|
|
2938
|
-
appendTo: H,
|
|
2939
|
-
controlElement: this.controlRef,
|
|
2940
|
-
menuPlacement: G,
|
|
2941
|
-
menuPosition: X
|
|
2942
|
-
}), de) : de;
|
|
2943
|
-
}
|
|
2944
|
-
}, {
|
|
2945
|
-
key: "renderFormField",
|
|
2946
|
-
value: function() {
|
|
2947
|
-
var t = this, a = this.props, r = a.delimiter, s = a.isDisabled, u = a.isMulti, l = a.name, c = a.required, d = this.state.selectValue;
|
|
2948
|
-
if (c && !this.hasValue() && !s)
|
|
2949
|
-
return /* @__PURE__ */ W.createElement(Po, {
|
|
2950
|
-
name: l,
|
|
2951
|
-
onFocus: this.onValueInputFocus
|
|
2952
|
-
});
|
|
2953
|
-
if (!(!l || s))
|
|
2954
|
-
if (u)
|
|
2955
|
-
if (r) {
|
|
2956
|
-
var g = d.map(function(I) {
|
|
2957
|
-
return t.getOptionValue(I);
|
|
2958
|
-
}).join(r);
|
|
2959
|
-
return /* @__PURE__ */ W.createElement("input", {
|
|
2960
|
-
name: l,
|
|
2961
|
-
type: "hidden",
|
|
2962
|
-
value: g
|
|
2963
|
-
});
|
|
2964
|
-
} else {
|
|
2965
|
-
var p = d.length > 0 ? d.map(function(I, b) {
|
|
2966
|
-
return /* @__PURE__ */ W.createElement("input", {
|
|
2967
|
-
key: "i-".concat(b),
|
|
2968
|
-
name: l,
|
|
2969
|
-
type: "hidden",
|
|
2970
|
-
value: t.getOptionValue(I)
|
|
2971
|
-
});
|
|
2972
|
-
}) : /* @__PURE__ */ W.createElement("input", {
|
|
2973
|
-
name: l,
|
|
2974
|
-
type: "hidden",
|
|
2975
|
-
value: ""
|
|
2976
|
-
});
|
|
2977
|
-
return /* @__PURE__ */ W.createElement("div", null, p);
|
|
2978
|
-
}
|
|
2979
|
-
else {
|
|
2980
|
-
var f = d[0] ? this.getOptionValue(d[0]) : "";
|
|
2981
|
-
return /* @__PURE__ */ W.createElement("input", {
|
|
2982
|
-
name: l,
|
|
2983
|
-
type: "hidden",
|
|
2984
|
-
value: f
|
|
2985
|
-
});
|
|
2986
|
-
}
|
|
2987
|
-
}
|
|
2988
|
-
}, {
|
|
2989
|
-
key: "renderLiveRegion",
|
|
2990
|
-
value: function() {
|
|
2991
|
-
var t = this.commonProps, a = this.state, r = a.ariaSelection, s = a.focusedOption, u = a.focusedValue, l = a.isFocused, c = a.selectValue, d = this.getFocusableOptions();
|
|
2992
|
-
return /* @__PURE__ */ W.createElement(xo, h({}, t, {
|
|
2993
|
-
id: this.getElementId("live-region"),
|
|
2994
|
-
ariaSelection: r,
|
|
2995
|
-
focusedOption: s,
|
|
2996
|
-
focusedValue: u,
|
|
2997
|
-
isFocused: l,
|
|
2998
|
-
selectValue: c,
|
|
2999
|
-
focusableOptions: d,
|
|
3000
|
-
isAppleDevice: this.isAppleDevice
|
|
3001
|
-
}));
|
|
3002
|
-
}
|
|
3003
|
-
}, {
|
|
3004
|
-
key: "render",
|
|
3005
|
-
value: function() {
|
|
3006
|
-
var t = this.getComponents(), a = t.Control, r = t.IndicatorsContainer, s = t.SelectContainer, u = t.ValueContainer, l = this.props, c = l.className, d = l.id, g = l.isDisabled, p = l.menuIsOpen, f = this.state.isFocused, I = this.commonProps = this.getCommonProps();
|
|
3007
|
-
return /* @__PURE__ */ W.createElement(s, h({}, I, {
|
|
3008
|
-
className: c,
|
|
3009
|
-
innerProps: {
|
|
3010
|
-
id: d,
|
|
3011
|
-
onKeyDown: this.onKeyDown
|
|
3012
|
-
},
|
|
3013
|
-
isDisabled: g,
|
|
3014
|
-
isFocused: f
|
|
3015
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ W.createElement(a, h({}, I, {
|
|
3016
|
-
innerRef: this.getControlRef,
|
|
3017
|
-
innerProps: {
|
|
3018
|
-
onMouseDown: this.onControlMouseDown,
|
|
3019
|
-
onTouchEnd: this.onControlTouchEnd
|
|
3020
|
-
},
|
|
3021
|
-
isDisabled: g,
|
|
3022
|
-
isFocused: f,
|
|
3023
|
-
menuIsOpen: p
|
|
3024
|
-
}), /* @__PURE__ */ W.createElement(u, h({}, I, {
|
|
3025
|
-
isDisabled: g
|
|
3026
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ W.createElement(r, h({}, I, {
|
|
3027
|
-
isDisabled: g
|
|
3028
|
-
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
3029
|
-
}
|
|
3030
|
-
}], [{
|
|
3031
|
-
key: "getDerivedStateFromProps",
|
|
3032
|
-
value: function(t, a) {
|
|
3033
|
-
var r = a.prevProps, s = a.clearFocusValueOnUpdate, u = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, g = a.instancePrefix, p = t.options, f = t.value, I = t.menuIsOpen, b = t.inputValue, m = t.isMulti, A = qe(f), x = {};
|
|
3034
|
-
if (r && (f !== r.value || p !== r.options || I !== r.menuIsOpen || b !== r.inputValue)) {
|
|
3035
|
-
var B = I ? tu(t, A) : [], F = I ? pt(fe(t, A), "".concat(g, "-option")) : [], E = s ? nu(a, A) : null, V = iu(a, B), G = Ne(F, V);
|
|
3036
|
-
x = {
|
|
3037
|
-
selectValue: A,
|
|
3038
|
-
focusedOption: V,
|
|
3039
|
-
focusedOptionId: G,
|
|
3040
|
-
focusableOptionsWithIds: F,
|
|
3041
|
-
focusedValue: E,
|
|
3042
|
-
clearFocusValueOnUpdate: !1
|
|
3043
|
-
};
|
|
3044
|
-
}
|
|
3045
|
-
var X = u != null && t !== r ? {
|
|
3046
|
-
inputIsHidden: u,
|
|
3047
|
-
inputIsHiddenAfterUpdate: void 0
|
|
3048
|
-
} : {}, H = l, P = c && d;
|
|
3049
|
-
return c && !P && (H = {
|
|
3050
|
-
value: Ie(m, A, A[0] || null),
|
|
3051
|
-
options: A,
|
|
3052
|
-
action: "initial-input-focus"
|
|
3053
|
-
}, P = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), C(C(C({}, x), X), {}, {
|
|
3054
|
-
prevProps: t,
|
|
3055
|
-
ariaSelection: H,
|
|
3056
|
-
prevWasFocused: P
|
|
3057
|
-
});
|
|
3058
|
-
}
|
|
3059
|
-
}]), i;
|
|
3060
|
-
}(en);
|
|
3061
|
-
_t.defaultProps = eu;
|
|
3062
|
-
var uu = /* @__PURE__ */ tn(function(n, e) {
|
|
3063
|
-
var i = In(n);
|
|
3064
|
-
return /* @__PURE__ */ W.createElement(_t, h({
|
|
3065
|
-
ref: e
|
|
3066
|
-
}, i));
|
|
3067
|
-
}), au = uu;
|
|
3068
|
-
const ru = (n) => {
|
|
3069
|
-
const e = un(n);
|
|
3070
|
-
return {
|
|
3071
|
-
guidance: (i) => {
|
|
3072
|
-
const {
|
|
3073
|
-
isSearchable: o,
|
|
3074
|
-
isMulti: t,
|
|
3075
|
-
tabSelectsValue: a,
|
|
3076
|
-
context: r,
|
|
3077
|
-
isInitialFocus: s
|
|
3078
|
-
} = i, u = a ? `, ${e("tabGuidance")}` : "", l = o ? `, ${e("searchGuidance")}` : "", c = t ? `, ${e("focusSelectedMultiGuidance")}` : "";
|
|
3079
|
-
switch (r) {
|
|
3080
|
-
case "menu":
|
|
3081
|
-
return ` ${e("navigationGuidance")}${a ? `, ${e("selectGuidance")}` : ""}, ${e("exitGuidance")}${u}.`;
|
|
3082
|
-
case "input":
|
|
3083
|
-
return s ? `${e("inputGuidance", [
|
|
3084
|
-
i["aria-label"],
|
|
3085
|
-
l
|
|
3086
|
-
])}${c}` : "";
|
|
3087
|
-
case "value":
|
|
3088
|
-
return a ? `${e("valueGuidance")}, ${e("deleteGuidance")}` : e("valueGuidance");
|
|
3089
|
-
default:
|
|
3090
|
-
return "";
|
|
3091
|
-
}
|
|
3092
|
-
},
|
|
3093
|
-
onChange: (i) => {
|
|
3094
|
-
const { action: o, label: t = "", labels: a, isDisabled: r } = i;
|
|
3095
|
-
switch (o) {
|
|
3096
|
-
case "deselect-option":
|
|
3097
|
-
case "pop-value":
|
|
3098
|
-
case "remove-value":
|
|
3099
|
-
return `${t}, ${e("deselected")}.`;
|
|
3100
|
-
case "clear":
|
|
3101
|
-
return `${e("clearAllOptions")}.`;
|
|
3102
|
-
case "initial-input-focus":
|
|
3103
|
-
return a.length > 0 ? `${a.length > 1 ? e("option_other") : e("option_one")} ${a.join(", ")} ${e("selected")}.` : "";
|
|
3104
|
-
case "select-option":
|
|
3105
|
-
return r ? e("selectOptionDisabled", [e("option_one"), t]) : `${e("option_one")} ${t}, ${e("selected")}.`;
|
|
3106
|
-
default:
|
|
3107
|
-
return "";
|
|
3108
|
-
}
|
|
3109
|
-
},
|
|
3110
|
-
onFocus: (i) => {
|
|
3111
|
-
const {
|
|
3112
|
-
context: o,
|
|
3113
|
-
focused: t,
|
|
3114
|
-
options: a,
|
|
3115
|
-
label: r = "",
|
|
3116
|
-
selectValue: s,
|
|
3117
|
-
isDisabled: u,
|
|
3118
|
-
isSelected: l,
|
|
3119
|
-
isAppleDevice: c
|
|
3120
|
-
} = i, d = (g, p) => g != null && g.length ? `${g.indexOf(p) + 1} ${e("of")} ${g.length}.` : "";
|
|
3121
|
-
if (o === "value" && s)
|
|
3122
|
-
return `${e("focusValue", [r])}, ${d(
|
|
3123
|
-
s,
|
|
3124
|
-
t
|
|
3125
|
-
)}`;
|
|
3126
|
-
if (o === "menu" && c) {
|
|
3127
|
-
const g = u ? ` ${e("disabled")}` : "", p = `${l ? `, ${e("selected")}` : ""}${g}`;
|
|
3128
|
-
return `${r}${p}, ${d(a, t)}`;
|
|
3129
|
-
}
|
|
3130
|
-
return "";
|
|
3131
|
-
},
|
|
3132
|
-
onFilter: (i) => {
|
|
3133
|
-
const { inputValue: o, resultsMessage: t } = i, r = /(\d+) result/.exec(t);
|
|
3134
|
-
let s = 0;
|
|
3135
|
-
r && r[1] && (s = parseInt(r[1], 10));
|
|
3136
|
-
const u = e("resultsAvailable", [
|
|
3137
|
-
e(s !== 1 ? "result_other" : "result_one")
|
|
3138
|
-
]), l = o ? ` ${e("filterTermHint")} ${o}` : "";
|
|
3139
|
-
return `${s} ${u},${l}`;
|
|
3140
|
-
}
|
|
3141
|
-
};
|
|
3142
|
-
}, Fa = ({
|
|
3143
|
-
id: n,
|
|
3144
|
-
label: e,
|
|
3145
|
-
options: i
|
|
3146
|
-
}) => {
|
|
3147
|
-
if (!n)
|
|
3148
|
-
throw new Error(
|
|
3149
|
-
Fe(
|
|
3150
|
-
"DSCombobox",
|
|
3151
|
-
'A unique "id" prop is required. Please add a unique "id" prop to the DSCombobox component.'
|
|
3152
|
-
)
|
|
3153
|
-
);
|
|
3154
|
-
if (!e)
|
|
3155
|
-
throw new Error(
|
|
3156
|
-
Fe(
|
|
3157
|
-
"DSCombobox",
|
|
3158
|
-
`A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSCombobox component. If you don't want to display a label, set hideLabel={true}.`
|
|
3159
|
-
)
|
|
3160
|
-
);
|
|
3161
|
-
if (!i || i.length === 0)
|
|
3162
|
-
throw new Error(
|
|
3163
|
-
Fe(
|
|
3164
|
-
"DSCombobox",
|
|
3165
|
-
'Options are always required. Please add an "options" prop to the DSCombobox component.'
|
|
3166
|
-
)
|
|
3167
|
-
);
|
|
3168
|
-
}, Ea = ["medium", "small"], lu = {
|
|
3169
|
-
placeholder: "",
|
|
3170
|
-
navigationGuidance: "Use Up and Down to choose options",
|
|
3171
|
-
selectGuidance: "press Enter to select the currently focused option",
|
|
3172
|
-
exitGuidance: "press Escape to exit the menu",
|
|
3173
|
-
tabGuidance: "press Tab to select the option and exit the menu",
|
|
3174
|
-
searchGuidance: "type to refine list",
|
|
3175
|
-
// {0} is label property of DSCombobox {1} is searchGuidance
|
|
3176
|
-
inputGuidance: "{0} is focused{1}, press Down to open the menu",
|
|
3177
|
-
// {0} is option_one {1} is the label of an option
|
|
3178
|
-
selectOptionDisabled: "{0} {1} is disabled. Select another option.",
|
|
3179
|
-
// {0} is the label of an option
|
|
3180
|
-
focusValue: "value {0}, focused",
|
|
3181
|
-
// e.g. 1 of 2 options
|
|
3182
|
-
of: "of",
|
|
3183
|
-
disabled: "disabled",
|
|
3184
|
-
selected: "selected",
|
|
3185
|
-
deselected: "deselected",
|
|
3186
|
-
focusSelectedMultiGuidance: "press left to focus selected values",
|
|
3187
|
-
valueGuidance: "Use left and right to toggle between focused values",
|
|
3188
|
-
deleteGuidance: "press Backspace to remove the currently focused value",
|
|
3189
|
-
clearAllOptions: "All selected options have been cleared",
|
|
3190
|
-
filterTermHint: "for search term",
|
|
3191
|
-
filterNoOptions: "No options found",
|
|
3192
|
-
option_one: "option",
|
|
3193
|
-
option_other: "options",
|
|
3194
|
-
result_one: "result",
|
|
3195
|
-
result_other: "results",
|
|
3196
|
-
// {0} is result_one or result_other
|
|
3197
|
-
resultsAvailable: "{0} available"
|
|
3198
|
-
}, su = {
|
|
3199
|
-
placeholder: "",
|
|
3200
|
-
navigationGuidance: "Wähle mit Auf und Ab Pfeiltasten die Optionen aus",
|
|
3201
|
-
selectGuidance: "drücke die Eingabetaste, um die aktuell fokussierte Option auszuwählen",
|
|
3202
|
-
exitGuidance: "drücke Escape, um das Menü zu verlassen",
|
|
3203
|
-
tabGuidance: "drücke Tab, um die Option auszuwählen und das Menü zu verlassen",
|
|
3204
|
-
searchGuidance: "tippe, um Liste zu verfeinern",
|
|
3205
|
-
// {0} is label property of DSCombobox {1} is searchGuidance
|
|
3206
|
-
inputGuidance: "{0} ist fokussiert{1}, drücke nach unten, um das Menü zu öffnen",
|
|
3207
|
-
// {0} is option_one {1} is the label of an option
|
|
3208
|
-
selectOptionDisabled: "{0} {1} ist deaktiviert. Wähle eine andere Option.",
|
|
3209
|
-
// {0} is the label of an option
|
|
3210
|
-
focusValue: "Wert {0}, fokussiert",
|
|
3211
|
-
// e.g. 1 of 2 options
|
|
3212
|
-
of: "von",
|
|
3213
|
-
disabled: "deaktiviert",
|
|
3214
|
-
selected: "ausgewählt",
|
|
3215
|
-
deselected: "abgewählt",
|
|
3216
|
-
focusSelectedMultiGuidance: "nach links drücken, um ausgewählte Werte zu fokussieren",
|
|
3217
|
-
valueGuidance: "Benutze die linke und rechte Pfeiltaste, um zwischen den fokussierten Werten zu wechseln",
|
|
3218
|
-
deleteGuidance: "drücke die Rücktaste, um den aktuell fokussierten Wert zu entfernen",
|
|
3219
|
-
clearAllOptions: "Alle ausgewählten Optionen wurden gelöscht",
|
|
3220
|
-
filterTermHint: "für den Suchbegriff",
|
|
3221
|
-
filterNoOptions: "Keine Optionen gefunden",
|
|
3222
|
-
option_one: "Option",
|
|
3223
|
-
option_other: "Optionen",
|
|
3224
|
-
result_one: "Ergebnis",
|
|
3225
|
-
result_other: "Ergebnisse",
|
|
3226
|
-
// {0} is result_one or result_other
|
|
3227
|
-
resultsAvailable: "{0} verfügbar"
|
|
3228
|
-
}, Ze = {
|
|
3229
|
-
en: lu,
|
|
3230
|
-
de: su
|
|
3231
|
-
}, cu = "ds-combobox_root_139rc_1", du = "ds-combobox_hint_139rc_9", bu = "ds-combobox_label_139rc_9", gu = "ds-combobox_wrapper_139rc_13", pu = "ds-combobox_action-button_139rc_19", mu = "ds-combobox_label--hidden_139rc_37", Iu = "ds-combobox_label--disabled_139rc_50", fu = "ds-combobox_feedback_139rc_70", vu = "ds-combobox_select_139rc_75", Cu = "ds-combobox_select--invalid_139rc_187", hu = "ds-combobox_select--small_139rc_194", Au = "ds-combobox_input--has-leading-icon_139rc_247", xu = "ds-combobox_input--has-action-button_139rc_250", Gu = "ds-combobox_input--has-second-action-button_139rc_253", yu = "ds-combobox_select--has-leading-icon_139rc_256", Bu = "ds-combobox_select--has-action-button_139rc_259", Fu = "ds-combobox_select--has-second-action-button_139rc_262", Eu = "ds-combobox_select--has-affix_139rc_265", Vu = "ds-combobox_select--is-ready_139rc_279", Su = "ds-combobox_select--disabled_139rc_288", Wu = "ds-combobox_select--focused_139rc_299", Xu = "ds-combobox_select--hovered_139rc_316", Nu = "ds-combobox_placeholder_139rc_326", Zu = "ds-combobox_menu-list_139rc_335", Ru = "ds-combobox_group-heading_139rc_352", Du = "ds-combobox_option_139rc_374", Hu = "ds-combobox_option--small_139rc_390", wu = "ds-combobox_option--single_139rc_405", Tu = "ds-combobox_option--disabled_139rc_408", Pu = "ds-combobox_option--focus-hover_139rc_416", Ou = "ds-combobox_option--text_139rc_434", Lu = "ds-combobox_option--check-icon_139rc_437", Mu = "ds-combobox_option--check-icon--disabled_139rc_447", ku = "ds-combobox_single-option_139rc_456", Ju = "ds-combobox_multi-option_139rc_462", Yu = "ds-combobox_single-value_139rc_466", zu = "ds-combobox_single-value--text_139rc_470", _u = "ds-combobox_leading-icon_139rc_477", ju = "ds-combobox_leading-icon--small_139rc_488", Uu = "ds-combobox_leading-icon--selected_139rc_488", Qu = "ds-combobox_leading-icon--disabled_139rc_491", $u = "ds-combobox_indicator_139rc_500", Ku = "ds-combobox_clear_139rc_501", qu = "ds-combobox_indicator--small_139rc_507", ea = "ds-combobox_clear--small_139rc_508", ta = "ds-combobox_indicator--icon_139rc_512", na = "ds-combobox_clear--icon_139rc_513", ia = "ds-combobox_indicator--icon--small_139rc_520", oa = "ds-combobox_clear--icon--small_139rc_521", y = {
|
|
3232
|
-
root: cu,
|
|
3233
|
-
hint: du,
|
|
3234
|
-
label: bu,
|
|
3235
|
-
wrapper: gu,
|
|
3236
|
-
"action-button": "ds-combobox_action-button_139rc_19",
|
|
3237
|
-
actionButton: pu,
|
|
3238
|
-
"label--hidden": "ds-combobox_label--hidden_139rc_37",
|
|
3239
|
-
labelHidden: mu,
|
|
3240
|
-
"label--disabled": "ds-combobox_label--disabled_139rc_50",
|
|
3241
|
-
labelDisabled: Iu,
|
|
3242
|
-
feedback: fu,
|
|
3243
|
-
select: vu,
|
|
3244
|
-
"select--invalid": "ds-combobox_select--invalid_139rc_187",
|
|
3245
|
-
selectInvalid: Cu,
|
|
3246
|
-
"select--small": "ds-combobox_select--small_139rc_194",
|
|
3247
|
-
selectSmall: hu,
|
|
3248
|
-
"input--has-leading-icon": "ds-combobox_input--has-leading-icon_139rc_247",
|
|
3249
|
-
inputHasLeadingIcon: Au,
|
|
3250
|
-
"input--has-action-button": "ds-combobox_input--has-action-button_139rc_250",
|
|
3251
|
-
inputHasActionButton: xu,
|
|
3252
|
-
"input--has-second-action-button": "ds-combobox_input--has-second-action-button_139rc_253",
|
|
3253
|
-
inputHasSecondActionButton: Gu,
|
|
3254
|
-
"select--has-leading-icon": "ds-combobox_select--has-leading-icon_139rc_256",
|
|
3255
|
-
selectHasLeadingIcon: yu,
|
|
3256
|
-
"select--has-action-button": "ds-combobox_select--has-action-button_139rc_259",
|
|
3257
|
-
selectHasActionButton: Bu,
|
|
3258
|
-
"select--has-second-action-button": "ds-combobox_select--has-second-action-button_139rc_262",
|
|
3259
|
-
selectHasSecondActionButton: Fu,
|
|
3260
|
-
"select--has-affix": "ds-combobox_select--has-affix_139rc_265",
|
|
3261
|
-
selectHasAffix: Eu,
|
|
3262
|
-
"select--is-ready": "ds-combobox_select--is-ready_139rc_279",
|
|
3263
|
-
selectIsReady: Vu,
|
|
3264
|
-
"select--disabled": "ds-combobox_select--disabled_139rc_288",
|
|
3265
|
-
selectDisabled: Su,
|
|
3266
|
-
"select--focused": "ds-combobox_select--focused_139rc_299",
|
|
3267
|
-
selectFocused: Wu,
|
|
3268
|
-
"select--hovered": "ds-combobox_select--hovered_139rc_316",
|
|
3269
|
-
selectHovered: Xu,
|
|
3270
|
-
placeholder: Nu,
|
|
3271
|
-
"menu-list": "ds-combobox_menu-list_139rc_335",
|
|
3272
|
-
menuList: Zu,
|
|
3273
|
-
"group-heading": "ds-combobox_group-heading_139rc_352",
|
|
3274
|
-
groupHeading: Ru,
|
|
3275
|
-
option: Du,
|
|
3276
|
-
"option--small": "ds-combobox_option--small_139rc_390",
|
|
3277
|
-
optionSmall: Hu,
|
|
3278
|
-
"option--single": "ds-combobox_option--single_139rc_405",
|
|
3279
|
-
optionSingle: wu,
|
|
3280
|
-
"option--disabled": "ds-combobox_option--disabled_139rc_408",
|
|
3281
|
-
optionDisabled: Tu,
|
|
3282
|
-
"option--focus-hover": "ds-combobox_option--focus-hover_139rc_416",
|
|
3283
|
-
optionFocusHover: Pu,
|
|
3284
|
-
"option--text": "ds-combobox_option--text_139rc_434",
|
|
3285
|
-
optionText: Ou,
|
|
3286
|
-
"option--check-icon": "ds-combobox_option--check-icon_139rc_437",
|
|
3287
|
-
optionCheckIcon: Lu,
|
|
3288
|
-
"option--check-icon--disabled": "ds-combobox_option--check-icon--disabled_139rc_447",
|
|
3289
|
-
optionCheckIconDisabled: Mu,
|
|
3290
|
-
"single-option": "ds-combobox_single-option_139rc_456",
|
|
3291
|
-
singleOption: ku,
|
|
3292
|
-
"multi-option": "ds-combobox_multi-option_139rc_462",
|
|
3293
|
-
multiOption: Ju,
|
|
3294
|
-
"single-value": "ds-combobox_single-value_139rc_466",
|
|
3295
|
-
singleValue: Yu,
|
|
3296
|
-
"single-value--text": "ds-combobox_single-value--text_139rc_470",
|
|
3297
|
-
singleValueText: zu,
|
|
3298
|
-
"leading-icon": "ds-combobox_leading-icon_139rc_477",
|
|
3299
|
-
leadingIcon: _u,
|
|
3300
|
-
"leading-icon--small": "ds-combobox_leading-icon--small_139rc_488",
|
|
3301
|
-
leadingIconSmall: ju,
|
|
3302
|
-
"leading-icon--selected": "ds-combobox_leading-icon--selected_139rc_488",
|
|
3303
|
-
leadingIconSelected: Uu,
|
|
3304
|
-
"leading-icon--disabled": "ds-combobox_leading-icon--disabled_139rc_491",
|
|
3305
|
-
leadingIconDisabled: Qu,
|
|
3306
|
-
indicator: $u,
|
|
3307
|
-
clear: Ku,
|
|
3308
|
-
"indicator--small": "ds-combobox_indicator--small_139rc_507",
|
|
3309
|
-
indicatorSmall: qu,
|
|
3310
|
-
"clear--small": "ds-combobox_clear--small_139rc_508",
|
|
3311
|
-
clearSmall: ea,
|
|
3312
|
-
"indicator--icon": "ds-combobox_indicator--icon_139rc_512",
|
|
3313
|
-
indicatorIcon: ta,
|
|
3314
|
-
"clear--icon": "ds-combobox_clear--icon_139rc_513",
|
|
3315
|
-
clearIcon: na,
|
|
3316
|
-
"indicator--icon--small": "ds-combobox_indicator--icon--small_139rc_520",
|
|
3317
|
-
indicatorIconSmall: ia,
|
|
3318
|
-
"clear--icon--small": "ds-combobox_clear--icon--small_139rc_521",
|
|
3319
|
-
clearIconSmall: oa
|
|
3320
|
-
}, Va = ({
|
|
3321
|
-
id: n,
|
|
3322
|
-
label: e,
|
|
3323
|
-
options: i,
|
|
3324
|
-
className: o,
|
|
3325
|
-
disabled: t = !1,
|
|
3326
|
-
hint: a,
|
|
3327
|
-
hideLabel: r = !1,
|
|
3328
|
-
invalid: s = !1,
|
|
3329
|
-
isMulti: u = !1,
|
|
3330
|
-
lang: l = "en",
|
|
3331
|
-
required: c = !1,
|
|
3332
|
-
size: d = "medium",
|
|
3333
|
-
systemFeedback: g,
|
|
3334
|
-
translations: p,
|
|
3335
|
-
value: f,
|
|
3336
|
-
onValueChange: I,
|
|
3337
|
-
onInputChange: b,
|
|
3338
|
-
...m
|
|
3339
|
-
}) => {
|
|
3340
|
-
const [A, x] = oe(!1), B = ue(() => i, [JSON.stringify(i)]), F = U(
|
|
3341
|
-
null
|
|
3342
|
-
), E = p ? p.placeholder : Ze[l].placeholder, V = an(r), G = `${n}-label`, X = `${n}-feedback`, H = `${n}-hint`, P = a ? ` ${H}` : "", T = () => p ? p.filterNoOptions : Ze[l].filterNoOptions, J = k(y.root, o), Y = k(y.label, {
|
|
3343
|
-
// hide label only visually to keep them available for assistive technologies
|
|
3344
|
-
[y.labelHidden]: V,
|
|
3345
|
-
[y.labelDisabled]: t
|
|
3346
|
-
}), D = (S) => k(y.select, {
|
|
3347
|
-
[y.selectSmall]: d === "small",
|
|
3348
|
-
[y.selectFocused]: S.isFocused,
|
|
3349
|
-
[y.selectHovered]: A,
|
|
3350
|
-
[y.selectDisabled]: t,
|
|
3351
|
-
[y.selectInvalid]: s
|
|
3352
|
-
}), R = (S) => k({ [y.placeholder]: !S.isDisabled });
|
|
3353
|
-
return /* @__PURE__ */ N.jsxs("div", { className: J, children: [
|
|
3354
|
-
/* @__PURE__ */ N.jsxs(
|
|
3355
|
-
"label",
|
|
3356
|
-
{
|
|
3357
|
-
className: Y,
|
|
3358
|
-
id: G,
|
|
3359
|
-
htmlFor: n,
|
|
3360
|
-
onMouseEnter: () => !t && x(!0),
|
|
3361
|
-
onMouseLeave: () => !t && x(!1),
|
|
3362
|
-
children: [
|
|
3363
|
-
e,
|
|
3364
|
-
c && /* @__PURE__ */ N.jsx(rn, {})
|
|
3365
|
-
]
|
|
3366
|
-
}
|
|
3367
|
-
),
|
|
3368
|
-
a && /* @__PURE__ */ N.jsx("div", { className: y.hint, id: H, children: a }),
|
|
3369
|
-
s && g && /* @__PURE__ */ N.jsx(
|
|
3370
|
-
ln,
|
|
3371
|
-
{
|
|
3372
|
-
className: y.feedback,
|
|
3373
|
-
message: g,
|
|
3374
|
-
type: "invalid",
|
|
3375
|
-
id: X,
|
|
3376
|
-
"aria-live": "assertive"
|
|
3377
|
-
}
|
|
3378
|
-
),
|
|
3379
|
-
/* @__PURE__ */ N.jsx(
|
|
3380
|
-
au,
|
|
3381
|
-
{
|
|
3382
|
-
...m,
|
|
3383
|
-
"aria-errormessage": s && g ? X : void 0,
|
|
3384
|
-
"aria-label": e,
|
|
3385
|
-
"aria-labelledby": `${G}${P}`,
|
|
3386
|
-
"aria-invalid": s,
|
|
3387
|
-
ariaLiveMessages: ru(
|
|
3388
|
-
p || Ze[l]
|
|
3389
|
-
),
|
|
3390
|
-
inputId: n,
|
|
3391
|
-
classNames: {
|
|
3392
|
-
control: D,
|
|
3393
|
-
placeholder: R
|
|
3394
|
-
},
|
|
3395
|
-
closeMenuOnSelect: !u,
|
|
3396
|
-
hideSelectedOptions: !1,
|
|
3397
|
-
isDisabled: t,
|
|
3398
|
-
isMulti: u,
|
|
3399
|
-
isSearchable: !0,
|
|
3400
|
-
noOptionsMessage: T,
|
|
3401
|
-
options: B,
|
|
3402
|
-
placeholder: E,
|
|
3403
|
-
required: c,
|
|
3404
|
-
unstyled: !0,
|
|
3405
|
-
ref: F,
|
|
3406
|
-
styles: {
|
|
3407
|
-
container: (S) => ({
|
|
3408
|
-
...S,
|
|
3409
|
-
// needed for cursor: not-allowed to work on disabled DSCombobox
|
|
3410
|
-
pointerEvents: "initial"
|
|
3411
|
-
}),
|
|
3412
|
-
control: (S) => ({
|
|
3413
|
-
...S,
|
|
3414
|
-
outline: "initial",
|
|
3415
|
-
// we do not want to have paddingInlineEnd on the control, but rather on the valueContainer, so we remove it here
|
|
3416
|
-
paddingInlineEnd: 0,
|
|
3417
|
-
// react-select has standard transitionProperty set to 'all'
|
|
3418
|
-
transitionProperty: "none",
|
|
3419
|
-
// was set to 38px by react-select
|
|
3420
|
-
minHeight: "2rem",
|
|
3421
|
-
cursor: "text"
|
|
3422
|
-
}),
|
|
3423
|
-
// increase the z-index
|
|
3424
|
-
menu: (S) => ({ ...S, zIndex: 99 }),
|
|
3425
|
-
// needed for Values to not be squished like "A.., B..." but rather cut off "Apple, Bana"
|
|
3426
|
-
multiValue: (S) => ({ ...S, minWidth: "max-content" }),
|
|
3427
|
-
noOptionsMessage: (S) => ({
|
|
3428
|
-
...S,
|
|
3429
|
-
// remove default text align center
|
|
3430
|
-
textAlign: void 0
|
|
3431
|
-
}),
|
|
3432
|
-
option: (S) => ({
|
|
3433
|
-
...S,
|
|
3434
|
-
display: "flex",
|
|
3435
|
-
// remove fontSize, so that we can change if based on size
|
|
3436
|
-
fontSize: void 0
|
|
3437
|
-
}),
|
|
3438
|
-
valueContainer: (S) => ({
|
|
3439
|
-
...S,
|
|
3440
|
-
flexWrap: "nowrap",
|
|
3441
|
-
paddingInlineEnd: d === "small" ? "7px" : "15px"
|
|
3442
|
-
// reduced by one pixel to counteract Figma inner border
|
|
3443
|
-
})
|
|
3444
|
-
},
|
|
3445
|
-
components: {
|
|
3446
|
-
ClearIndicator: ua,
|
|
3447
|
-
DropdownIndicator: aa,
|
|
3448
|
-
GroupHeading: ra,
|
|
3449
|
-
// separator between clear all icon and chevron down
|
|
3450
|
-
IndicatorSeparator: () => null,
|
|
3451
|
-
Input: la,
|
|
3452
|
-
MenuList: sa,
|
|
3453
|
-
MultiValueContainer: ca,
|
|
3454
|
-
// remove button for each selected value
|
|
3455
|
-
MultiValueRemove: () => null,
|
|
3456
|
-
NoOptionsMessage: da,
|
|
3457
|
-
Option: ba,
|
|
3458
|
-
SingleValue: ga
|
|
3459
|
-
},
|
|
3460
|
-
invalid: s,
|
|
3461
|
-
systemFeedback: g,
|
|
3462
|
-
systemFeedbackId: X,
|
|
3463
|
-
isSmall: d === "small",
|
|
3464
|
-
value: f,
|
|
3465
|
-
onChange: (S, { action: L }) => {
|
|
3466
|
-
var z, _;
|
|
3467
|
-
L === "clear" && !m.openMenuOnClick && !m.openMenuOnFocus && !u && ((z = F.current) == null || z.blur(), (_ = F.current) == null || _.focus()), I && I(
|
|
3468
|
-
S
|
|
3469
|
-
);
|
|
3470
|
-
},
|
|
3471
|
-
onInputChange: (S) => {
|
|
3472
|
-
b && b(S);
|
|
3473
|
-
}
|
|
3474
|
-
}
|
|
3475
|
-
)
|
|
3476
|
-
] });
|
|
3477
|
-
}, ua = ({
|
|
3478
|
-
...n
|
|
3479
|
-
}) => {
|
|
3480
|
-
const { isSmall: e } = n.selectProps, i = k(y.clear, {
|
|
3481
|
-
[y.clearSmall]: e
|
|
3482
|
-
}), o = k(y.clearIcon, {
|
|
3483
|
-
[y.clearIconSmall]: e
|
|
3484
|
-
});
|
|
3485
|
-
return /* @__PURE__ */ N.jsx(Q.ClearIndicator, { ...n, className: i, children: /* @__PURE__ */ N.jsx(ce, { name: "cross", className: o, "aria-hidden": "true" }) });
|
|
3486
|
-
}, aa = ({
|
|
3487
|
-
...n
|
|
3488
|
-
}) => {
|
|
3489
|
-
const { isSmall: e, openMenuOnClick: i, openMenuOnFocus: o, isDisabled: t } = n.selectProps;
|
|
3490
|
-
if (!i || !o || t)
|
|
3491
|
-
return null;
|
|
3492
|
-
const a = k(y.indicator, {
|
|
3493
|
-
[y.indicatorSmall]: e
|
|
3494
|
-
}), r = k(y.indicatorIcon, {
|
|
3495
|
-
[y.indicatorIconSmall]: e
|
|
3496
|
-
});
|
|
3497
|
-
return /* @__PURE__ */ N.jsx(Q.DropdownIndicator, { ...n, className: a, children: /* @__PURE__ */ N.jsx(
|
|
3498
|
-
ce,
|
|
3499
|
-
{
|
|
3500
|
-
name: "chevron-down",
|
|
3501
|
-
className: r,
|
|
3502
|
-
"aria-hidden": "true"
|
|
3503
|
-
}
|
|
3504
|
-
) });
|
|
3505
|
-
}, ra = (n) => /* @__PURE__ */ N.jsx(Q.GroupHeading, { ...n, className: y.groupHeading, children: n.children }), la = (n) => {
|
|
3506
|
-
const { invalid: e, systemFeedback: i, systemFeedbackId: o } = n.selectProps;
|
|
3507
|
-
return /* @__PURE__ */ N.jsx(
|
|
3508
|
-
Q.Input,
|
|
3509
|
-
{
|
|
3510
|
-
...n,
|
|
3511
|
-
"aria-describedby": e && i ? o : n["aria-describedby"],
|
|
3512
|
-
autoComplete: n.selectProps.autoComplete
|
|
3513
|
-
}
|
|
3514
|
-
);
|
|
3515
|
-
}, sa = (n) => /* @__PURE__ */ N.jsx(Q.MenuList, { ...n, className: y.menuList, children: n.children }), ca = (n) => {
|
|
3516
|
-
let e = !1;
|
|
3517
|
-
if (n.selectProps.value && Array.isArray(n.selectProps.value)) {
|
|
3518
|
-
const i = n.selectProps.value.length - 1;
|
|
3519
|
-
e = n.selectProps.value.indexOf(n.data) === i;
|
|
3520
|
-
}
|
|
3521
|
-
return /* @__PURE__ */ N.jsxs(Q.MultiValueContainer, { ...n, children: [
|
|
3522
|
-
n.children,
|
|
3523
|
-
n.selectProps.menuIsOpen || !e ? ", " : ""
|
|
3524
|
-
] });
|
|
3525
|
-
}, da = ({
|
|
3526
|
-
...n
|
|
3527
|
-
}) => {
|
|
3528
|
-
const { isSmall: e } = n.selectProps, i = k(y.option, {
|
|
3529
|
-
[y.optionSmall]: e
|
|
3530
|
-
});
|
|
3531
|
-
return /* @__PURE__ */ N.jsx(Q.NoOptionsMessage, { ...n, className: i, children: /* @__PURE__ */ N.jsx("span", { role: "option", children: n.children }) });
|
|
3532
|
-
}, ba = ({ ...n }) => {
|
|
3533
|
-
const { isMulti: e, isSmall: i } = n.selectProps, { leadingIconName: o } = n.data, { children: t, isDisabled: a, isFocused: r, isSelected: s } = n, u = k(y.option, {
|
|
3534
|
-
[y.optionSmall]: i,
|
|
3535
|
-
[y.optionSingle]: !e && s,
|
|
3536
|
-
[y.optionDisabled]: a,
|
|
3537
|
-
[y.optionFocusHover]: r
|
|
3538
|
-
}), l = k(y.leadingIcon, {
|
|
3539
|
-
[y.leadingIconSmall]: i,
|
|
3540
|
-
[y.leadingIconDisabled]: a
|
|
3541
|
-
}), c = k(y.optionCheckIcon, {
|
|
3542
|
-
[y.optionCheckIconDisabled]: a
|
|
3543
|
-
});
|
|
3544
|
-
return /* @__PURE__ */ N.jsx(Q.Option, { ...n, className: u, children: e ? /* @__PURE__ */ N.jsx(
|
|
3545
|
-
sn,
|
|
3546
|
-
{
|
|
3547
|
-
label: t,
|
|
3548
|
-
checked: s,
|
|
3549
|
-
disabled: a,
|
|
3550
|
-
className: y.multiOption
|
|
3551
|
-
}
|
|
3552
|
-
) : /* @__PURE__ */ N.jsxs("div", { className: y.singleOption, children: [
|
|
3553
|
-
o && /* @__PURE__ */ N.jsx(
|
|
3554
|
-
ce,
|
|
3555
|
-
{
|
|
3556
|
-
name: o,
|
|
3557
|
-
className: l,
|
|
3558
|
-
"aria-hidden": "true"
|
|
3559
|
-
}
|
|
3560
|
-
),
|
|
3561
|
-
/* @__PURE__ */ N.jsx("span", { className: y.optionText, children: t }),
|
|
3562
|
-
s && /* @__PURE__ */ N.jsx(
|
|
3563
|
-
ce,
|
|
3564
|
-
{
|
|
3565
|
-
name: "check",
|
|
3566
|
-
className: c,
|
|
3567
|
-
"aria-hidden": "true"
|
|
3568
|
-
}
|
|
3569
|
-
)
|
|
3570
|
-
] }) });
|
|
3571
|
-
}, ga = (n) => {
|
|
3572
|
-
const { children: e, isDisabled: i } = n, { leadingIconName: o } = n.data, t = k(
|
|
3573
|
-
y.leadingIcon,
|
|
3574
|
-
y.leadingIconSelected,
|
|
3575
|
-
{
|
|
3576
|
-
[y.leadingIconDisabled]: i
|
|
3577
|
-
}
|
|
3578
|
-
);
|
|
3579
|
-
return /* @__PURE__ */ N.jsxs(Q.SingleValue, { ...n, className: y.singleValue, children: [
|
|
3580
|
-
o && /* @__PURE__ */ N.jsx(
|
|
3581
|
-
ce,
|
|
3582
|
-
{
|
|
3583
|
-
name: o,
|
|
3584
|
-
className: t,
|
|
3585
|
-
"aria-hidden": "true"
|
|
3586
|
-
}
|
|
3587
|
-
),
|
|
3588
|
-
/* @__PURE__ */ N.jsx("span", { className: y.singleValueText, children: e })
|
|
3589
|
-
] });
|
|
3590
|
-
};
|
|
3591
|
-
export {
|
|
3592
|
-
Ea as C,
|
|
3593
|
-
lu as D,
|
|
3594
|
-
su as a,
|
|
3595
|
-
Ze as b,
|
|
3596
|
-
Va as c,
|
|
3597
|
-
Fa as v
|
|
3598
|
-
};
|