@iress-oss/ids-components 5.14.0 → 5.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AutocompleteNoResults-D-7ik_op.js → AutocompleteNoResults-CA3kLIMp.js} +1 -1
- package/dist/{ComboboxHiddenInput-Bo5hqUzo.js → ComboboxHiddenInput-3nXQLXWs.js} +5 -5
- package/dist/{FieldAppendToLabel-kSkgzhQp.js → FieldAppendToLabel-fLFwdVe0.js} +2 -2
- package/dist/{InputBase-2wLvSYMJ.js → InputBase-Gu84XDiJ.js} +1 -1
- package/dist/Loading.module-BoPWGcXe.js +13 -0
- package/dist/{LoadingSuspense-BDiikfSh.js → LoadingSuspense-CbdTDOzY.js} +849 -842
- package/dist/LogoFromSrc-C3T9li5n.js +59 -0
- package/dist/MenuItem.module-36-M9GIW.js +24 -0
- package/dist/Popover.module-qeMQ2uo5.js +11 -0
- package/dist/{SelectControl-ebML3vaP.js → SelectControl-CzcS0y-K.js} +1 -1
- package/dist/{SliderTicks-Bvc90tyk.js → SliderTicks-Dfc9Q2il.js} +1 -1
- package/dist/TabSet.module-BduoH_21.js +13 -0
- package/dist/Table.module-CONHit0r.js +32 -0
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +84 -82
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Combobox/Combobox.js +2 -2
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +2 -2
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +3 -3
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Expander/Expander.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
- package/dist/components/Field/components/FieldAppendToLabel.js +2 -2
- package/dist/components/Filter/Filter.js +2 -2
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Filter/components/FilterSearch.js +1 -1
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +1 -1
- package/dist/components/Form/FormField/FormFieldset.js +1 -1
- package/dist/components/Form/HookForm/HookForm.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/composeHideClasses.js +1 -1
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/InputCurrency/index.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +2 -2
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +2 -2
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
- package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +2 -2
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/PopoverProvider.js +1 -1
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +2 -2
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/Readonly/Readonly.js +2 -2
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +1 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +1 -1
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +1 -1
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +1 -1
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +1 -1
- package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
- package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +2 -2
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/components/SliderTicks.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/components/TabSetItem.js +2 -2
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableBody/TableBody.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +2 -2
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +1 -1
- package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- package/dist/components/Toaster/ToasterProvider.js +1 -1
- package/dist/components/Toaster/hooks/useToaster.js +1 -1
- package/dist/components/Toaster/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-RKRjRgyj.js → floating-ui.react-DfZ-vbiG.js} +766 -756
- package/dist/main.js +2 -2
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
- package/dist/patterns/Loading/components/LongLoading.js +2 -2
- package/dist/patterns/Loading/components/PageLoading.js +2 -2
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-D278MaLC.js → useIDSButtonGroupItem-DUZ2VDnl.js} +1 -1
- package/package.json +5 -3
- package/dist/Loading.module-nxv4vxd0.js +0 -13
- package/dist/LogoFromSrc-RCkIBALM.js +0 -59
- package/dist/MenuItem.module-C1hy3JLs.js +0 -24
- package/dist/Popover.module-BVuEALLH.js +0 -11
- package/dist/TabSet.module-DLn6e1BG.js +0 -13
- package/dist/Table.module-CztzYVfs.js +0 -32
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as a, jsxs as L, Fragment as Je } from "react/jsx-runtime";
|
|
2
2
|
import * as hn from "react";
|
|
3
|
-
import G, { forwardRef as ie, useRef as fe, useState as
|
|
3
|
+
import G, { forwardRef as ie, useRef as fe, useState as X, useMemo as Se, useImperativeHandle as Ee, useId as gs, useCallback as Fe, useEffect as ee, createElement as fr, useContext as ys, cloneElement as mr, createContext as pn, Suspense as Hs } from "react";
|
|
4
4
|
import { StartUpLoading as vn } from "./patterns/Loading/components/StartUpLoading.js";
|
|
5
5
|
import { c as V } from "./index-2QXL0WYc.js";
|
|
6
6
|
import { IconSpin as gn, IconSize as hr, IconFlip as yn, IconRotate as bn, IconSet as xn } from "./components/Icon/Icon.types.js";
|
|
7
7
|
import { ALERT_ICONS as _n } from "./components/Alert/Alert.types.js";
|
|
8
|
-
import { TextMode as Sn, HeadingLevel as
|
|
9
|
-
import { IressText as
|
|
8
|
+
import { TextMode as Sn, HeadingLevel as bs, SystemValidationStatus as Nn, GlobalCSSClass as Z, TextFieldType as wn, FormElementWidth as xs, Breakpoint as pr, DisplayMode as In, GutterSize as _s, HorizontalAlign as vr, VerticalAlign as gr, ModalSize as kn, PaddingSize as yr } from "./enums.js";
|
|
9
|
+
import { IressText as Pe } from "./components/Text/Text.js";
|
|
10
10
|
import { propagateTestid as T } from "./helpers/utility/propagateTestid.js";
|
|
11
11
|
import { HeadingWithDeprecatedFallback as br } from "./components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.js";
|
|
12
|
-
import { s as Et, A as
|
|
13
|
-
import { IressPopover as
|
|
12
|
+
import { s as Et, A as Ss } from "./AutocompleteNoResults-CA3kLIMp.js";
|
|
13
|
+
import { IressPopover as Ns } from "./components/Popover/Popover.js";
|
|
14
14
|
import "./components/Popover/PopoverProvider.js";
|
|
15
15
|
import { IressInputPopover as Xt } from "./components/Popover/InputPopover/InputPopover.js";
|
|
16
16
|
import { getFormControlValueAsString as gt } from "./helpers/form/getFormControlValueAsString.js";
|
|
17
17
|
import { ClearButton as Fn } from "./components/Input/ClearButton/ClearButton.js";
|
|
18
|
-
import { b as is, I as
|
|
19
|
-
import { InputMode as
|
|
18
|
+
import { b as is, I as $n } from "./InputBase-Gu84XDiJ.js";
|
|
19
|
+
import { InputMode as An } from "./components/Input/Input.types.js";
|
|
20
20
|
import { useControlledState as bt } from "./hooks/useControlledState.js";
|
|
21
21
|
import "./fuzzysort-eoXOpoo6.js";
|
|
22
22
|
import "./components/Badge/Badge.js";
|
|
23
|
-
import { ButtonMode as Vn, ButtonType as Rn, ButtonCssClass as
|
|
24
|
-
import { u as Ln } from "./useIDSButtonGroupItem-
|
|
23
|
+
import { ButtonMode as Vn, ButtonType as Rn, ButtonCssClass as Te } from "./components/Button/Button.types.js";
|
|
24
|
+
import { u as Ln } from "./useIDSButtonGroupItem-DUZ2VDnl.js";
|
|
25
25
|
import "./components/ButtonGroup/ButtonGroupProvider.js";
|
|
26
26
|
import { IressCard as os } from "./components/Card/Card.js";
|
|
27
27
|
import "./components/CheckboxMark/CheckboxMark.types.js";
|
|
@@ -31,41 +31,41 @@ import { CheckboxGroupContext as Mn } from "./components/CheckboxGroup/CheckboxG
|
|
|
31
31
|
import { toArray as _e } from "./helpers/formatting/toArray.js";
|
|
32
32
|
import "./components/CheckboxGroup/CheckboxGroup.js";
|
|
33
33
|
import { IressCol as _t } from "./components/Col/Col.js";
|
|
34
|
-
import { s as rt, C as xr } from "./ComboboxHiddenInput-
|
|
34
|
+
import { s as rt, C as xr } from "./ComboboxHiddenInput-3nXQLXWs.js";
|
|
35
35
|
import { useRichSelectState as Jt } from "./components/RichSelect/hooks/useRichSelectState.js";
|
|
36
36
|
import { useAutocompleteSearch as Lt } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
37
|
-
import { useIdIfNeeded as
|
|
37
|
+
import { useIdIfNeeded as Oe } from "./hooks/useIdIfNeeded.js";
|
|
38
38
|
import "./components/Expander/Expander.js";
|
|
39
|
-
import { IressDivider as
|
|
39
|
+
import { IressDivider as ws } from "./components/Divider/Divider.js";
|
|
40
40
|
import { FormContext as Cn } from "./components/Form/FormContext.js";
|
|
41
41
|
import { FormValidationSummary as Tn } from "./components/Form/components/FormValidationSummary.js";
|
|
42
42
|
import { InlineCssClass as ht } from "./components/Inline/Inline.types.js";
|
|
43
|
-
import { getResponsiveLayoutModifiers as
|
|
43
|
+
import { getResponsiveLayoutModifiers as Is } from "./helpers/responsive/getResponsiveLayoutModifiers.js";
|
|
44
44
|
import { formatCurrency as zn } from "./helpers/formatting/formatCurrency.js";
|
|
45
45
|
import { IressMenu as _r } from "./components/Menu/Menu.js";
|
|
46
46
|
import "./components/Menu/MenuProvider.js";
|
|
47
|
-
import { s as tt } from "./MenuItem.module-
|
|
47
|
+
import { s as tt } from "./MenuItem.module-36-M9GIW.js";
|
|
48
48
|
import { useMenu as Sr } from "./components/Menu/hooks/useMenu.js";
|
|
49
49
|
import { useMenuItemRole as Nr } from "./components/Menu/MenuItem/hooks/useMenuItemRole.js";
|
|
50
50
|
import { useMenuItemAria as Bn } from "./components/Menu/MenuItem/hooks/useMenuItemAria.js";
|
|
51
51
|
import { useMenuItemButtonProps as En } from "./components/Menu/MenuItem/hooks/useMenuItemButtonProps.js";
|
|
52
52
|
import { useMenuItemInteractions as On } from "./components/Menu/MenuItem/hooks/useMenuItemInteractions.js";
|
|
53
53
|
import { useMenuItemComposite as Hn } from "./components/Menu/MenuItem/hooks/useMenuItemComposite.js";
|
|
54
|
-
import { d as
|
|
55
|
-
import { timeStringToNumber as
|
|
54
|
+
import { d as ks, g as wr, h as Ir, i as kr, w as Fs, n as Ut, x as Fr, q as $r } from "./floating-ui.react-DfZ-vbiG.js";
|
|
55
|
+
import { timeStringToNumber as Ar } from "./helpers/transition/timeStringToNumber.js";
|
|
56
56
|
import { idsLogger as Zt } from "./helpers/utility/idsLogger.js";
|
|
57
57
|
import { useIDSProvidedModal as Un } from "./components/Modal/hooks/useIDSProvidedModal.js";
|
|
58
58
|
import "./components/Modal/ModalProvider.js";
|
|
59
59
|
import { NavbarHorizontalAlign as Wn } from "./components/Navbar/Navbar.types.js";
|
|
60
|
-
import { IressPanel as
|
|
61
|
-
import { HideCssClass as
|
|
62
|
-
import { BREAKPOINTS as
|
|
60
|
+
import { IressPanel as $s } from "./components/Panel/Panel.js";
|
|
61
|
+
import { HideCssClass as Us } from "./components/Hide/Hide.types.js";
|
|
62
|
+
import { BREAKPOINTS as Ws } from "./constants.js";
|
|
63
63
|
import { RadioGroupContext as qn } from "./components/RadioGroup/RadioGroupContext.js";
|
|
64
64
|
import "./components/RadioGroup/RadioGroup.js";
|
|
65
65
|
import { usePopoverItem as Gt } from "./components/Popover/hooks/usePopoverItem.js";
|
|
66
66
|
import { RowCssClass as St } from "./components/Row/Row.types.js";
|
|
67
|
-
import { S as Pn, s as jn } from "./SelectControl-
|
|
68
|
-
import { IressSelectOption as
|
|
67
|
+
import { S as Pn, s as jn } from "./SelectControl-CzcS0y-K.js";
|
|
68
|
+
import { IressSelectOption as qs } from "./components/Select/SelectOption/SelectOption.js";
|
|
69
69
|
import { getValueAsEvent as Ie } from "./helpers/form/getValueAsEvent.js";
|
|
70
70
|
import { getFormControlValueAsStringIfDefined as yt } from "./helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
71
71
|
import { IressSkeleton as xe } from "./components/Skeleton/Skeleton.js";
|
|
@@ -73,10 +73,10 @@ import "./components/SkipLink/SkipLink.js";
|
|
|
73
73
|
import { SlideoutMode as Qn, SlideoutPosition as Kn, SlideoutSize as Yn } from "./components/Slideout/Slideout.types.js";
|
|
74
74
|
import { useIDSProvidedSlideout as Xn } from "./components/Slideout/hooks/useIDSProvidedSlideout.js";
|
|
75
75
|
import "./components/Slideout/SlideoutProvider.js";
|
|
76
|
-
import { s as as, S as Jn } from "./SliderTicks-
|
|
76
|
+
import { s as as, S as Jn } from "./SliderTicks-Dfc9Q2il.js";
|
|
77
77
|
import { IressStack as lt } from "./components/Stack/Stack.js";
|
|
78
78
|
import { TableScope as Zn } from "./components/Table/Table.types.js";
|
|
79
|
-
import { s as Ke } from "./Table.module-
|
|
79
|
+
import { s as Ke } from "./Table.module-CONHit0r.js";
|
|
80
80
|
import { TableEmpty as Gn } from "./components/Table/components/TableEmpty.js";
|
|
81
81
|
import { f as ei } from "./index-CtOScEKX.js";
|
|
82
82
|
import { useIDSTableColumnStyles as ti } from "./components/Table/hooks/useIDSTableColumnStyles.js";
|
|
@@ -94,7 +94,7 @@ import "./components/Toggle/Toggle.js";
|
|
|
94
94
|
import "./components/Tooltip/Tooltip.js";
|
|
95
95
|
import "./components/ValidationMessage/ValidationMessage.js";
|
|
96
96
|
import { useSuspenseResource as li, uncacheSuspenseResource as ci } from "./patterns/Loading/hooks/useSuspenseResource.js";
|
|
97
|
-
import { L as Rr, s as we } from "./LogoFromSrc-
|
|
97
|
+
import { L as Rr, s as we } from "./LogoFromSrc-C3T9li5n.js";
|
|
98
98
|
import { getValueFromLabelValues as di } from "./helpers/label-value/getValueFromLabelValues.js";
|
|
99
99
|
import { useFilterFlags as ui } from "./components/Filter/hooks/useFilterFlags.js";
|
|
100
100
|
import { FilterLabel as fi } from "./components/Filter/components/FilterLabel.js";
|
|
@@ -106,43 +106,43 @@ import { handlePopoverTabKey as hi } from "./components/Popover/helpers/handlePo
|
|
|
106
106
|
import { SelectHiddenInput as pi } from "./components/RichSelect/components/SelectHiddenInput.js";
|
|
107
107
|
import { useComboboxInlineCompletion as vi } from "./components/Combobox/hooks/useComboboxInlineCompletion.js";
|
|
108
108
|
import { useAutocompleteFlags as gi } from "./components/Autocomplete/hooks/useAutocompleteFlags.js";
|
|
109
|
-
import { l as
|
|
109
|
+
import { l as Ce } from "./Loading.module-BoPWGcXe.js";
|
|
110
110
|
import { useShouldRenderLoading as yi } from "./patterns/Loading/hooks/useShouldRenderLoading.js";
|
|
111
111
|
import { IressContainer as cs } from "./components/Container/Container.js";
|
|
112
112
|
import { LongLoading as bi } from "./patterns/Loading/components/LongLoading.js";
|
|
113
|
-
const xi = "ids-alert-
|
|
113
|
+
const xi = "ids-alert-v5142", _i = "ids-alert--icon-v5142", Si = "ids-alert--heading-v5142", Ni = "ids-alert--wrapper-v5142", wi = "ids-alert--footer-v5142", Ii = "ids-alert--danger-v5142", ki = "ids-alert--info-v5142", Fi = "ids-alert--success-v5142", $i = "ids-alert--warning-v5142", ft = {
|
|
114
114
|
alert: xi,
|
|
115
115
|
icon: _i,
|
|
116
116
|
heading: Si,
|
|
117
|
-
"iress-u-text": "ids-alert--iress-u-text-
|
|
117
|
+
"iress-u-text": "ids-alert--iress-u-text-v5142",
|
|
118
118
|
wrapper: Ni,
|
|
119
119
|
footer: wi,
|
|
120
120
|
danger: Ii,
|
|
121
121
|
info: ki,
|
|
122
122
|
success: Fi,
|
|
123
|
-
warning:
|
|
124
|
-
},
|
|
125
|
-
icon:
|
|
126
|
-
"flip-horizontal": "ids-icon--flip-horizontal-
|
|
127
|
-
"flip-vertical": "ids-icon--flip-vertical-
|
|
128
|
-
"flip-both": "ids-icon--flip-both-
|
|
129
|
-
"rotate-180": "ids-icon--rotate-180-
|
|
130
|
-
"rotate-270": "ids-icon--rotate-270-
|
|
131
|
-
"rotate-90": "ids-icon--rotate-90-
|
|
132
|
-
"spin-half": "ids-icon--spin-half-
|
|
133
|
-
"iress-icon-rotation": "ids-icon--iress-icon-rotation-
|
|
134
|
-
"spin-1": "ids-icon--spin-1-
|
|
135
|
-
"spin-2": "ids-icon--spin-2-
|
|
136
|
-
"spin-3": "ids-icon--spin-3-
|
|
137
|
-
"mode-body": "ids-icon--mode-body-
|
|
138
|
-
"mode-muted": "ids-icon--mode-muted-
|
|
139
|
-
"mode-primary": "ids-icon--mode-primary-
|
|
140
|
-
"mode-info": "ids-icon--mode-info-
|
|
141
|
-
"mode-success": "ids-icon--mode-success-
|
|
142
|
-
"mode-warning": "ids-icon--mode-warning-
|
|
143
|
-
"mode-danger": "ids-icon--mode-danger-
|
|
144
|
-
"mode-positive": "ids-icon--mode-positive-
|
|
145
|
-
"mode-negative": "ids-icon--mode-negative-
|
|
123
|
+
warning: $i
|
|
124
|
+
}, Ai = "ids-icon-v5142", Nt = {
|
|
125
|
+
icon: Ai,
|
|
126
|
+
"flip-horizontal": "ids-icon--flip-horizontal-v5142",
|
|
127
|
+
"flip-vertical": "ids-icon--flip-vertical-v5142",
|
|
128
|
+
"flip-both": "ids-icon--flip-both-v5142",
|
|
129
|
+
"rotate-180": "ids-icon--rotate-180-v5142",
|
|
130
|
+
"rotate-270": "ids-icon--rotate-270-v5142",
|
|
131
|
+
"rotate-90": "ids-icon--rotate-90-v5142",
|
|
132
|
+
"spin-half": "ids-icon--spin-half-v5142",
|
|
133
|
+
"iress-icon-rotation": "ids-icon--iress-icon-rotation-v5142",
|
|
134
|
+
"spin-1": "ids-icon--spin-1-v5142",
|
|
135
|
+
"spin-2": "ids-icon--spin-2-v5142",
|
|
136
|
+
"spin-3": "ids-icon--spin-3-v5142",
|
|
137
|
+
"mode-body": "ids-icon--mode-body-v5142",
|
|
138
|
+
"mode-muted": "ids-icon--mode-muted-v5142",
|
|
139
|
+
"mode-primary": "ids-icon--mode-primary-v5142",
|
|
140
|
+
"mode-info": "ids-icon--mode-info-v5142",
|
|
141
|
+
"mode-success": "ids-icon--mode-success-v5142",
|
|
142
|
+
"mode-warning": "ids-icon--mode-warning-v5142",
|
|
143
|
+
"mode-danger": "ids-icon--mode-danger-v5142",
|
|
144
|
+
"mode-positive": "ids-icon--mode-positive-v5142",
|
|
145
|
+
"mode-negative": "ids-icon--mode-negative-v5142"
|
|
146
146
|
}, Vi = ({
|
|
147
147
|
name: e,
|
|
148
148
|
screenreaderText: s,
|
|
@@ -197,7 +197,7 @@ const Dt = ({
|
|
|
197
197
|
status: o = "info",
|
|
198
198
|
...l
|
|
199
199
|
}) => /* @__PURE__ */ L(
|
|
200
|
-
|
|
200
|
+
Pe,
|
|
201
201
|
{
|
|
202
202
|
className: V(
|
|
203
203
|
s,
|
|
@@ -232,9 +232,9 @@ const Dt = ({
|
|
|
232
232
|
]
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
Dt.HeadingLevel =
|
|
235
|
+
Dt.HeadingLevel = bs;
|
|
236
236
|
Dt.Status = Nn;
|
|
237
|
-
const Ri = "ids-input-
|
|
237
|
+
const Ri = "ids-input-v5142", Li = "ids-input--readonly-v5142", Di = "ids-input--wrapper-v5142", Mi = "ids-input--addon-v5142", Ci = "ids-input--inline-wrapper-v5142", Ti = "ids-input--internal-v5142", zi = "ids-input--prepend-v5142", Bi = "ids-input--append-v5142", Ei = "ids-input--align-right-v5142", Oi = "ids-input--watermark-v5142", oe = {
|
|
238
238
|
input: Ri,
|
|
239
239
|
readonly: Li,
|
|
240
240
|
wrapper: Di,
|
|
@@ -245,7 +245,7 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
245
245
|
append: Bi,
|
|
246
246
|
alignRight: Ei,
|
|
247
247
|
watermark: Oi
|
|
248
|
-
}, Hi = "ids-spinner-
|
|
248
|
+
}, Hi = "ids-spinner-v5142", Ui = {
|
|
249
249
|
spinner: Hi
|
|
250
250
|
}, Mt = ({
|
|
251
251
|
className: e,
|
|
@@ -280,7 +280,7 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
280
280
|
component: "IressReadonly",
|
|
281
281
|
defaultValue: i
|
|
282
282
|
});
|
|
283
|
-
const
|
|
283
|
+
const A = V(
|
|
284
284
|
oe.input,
|
|
285
285
|
oe.readonly,
|
|
286
286
|
t,
|
|
@@ -299,7 +299,7 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
299
299
|
[is.readonlyAlignRight]: p
|
|
300
300
|
}
|
|
301
301
|
), S = yt(i), F = yt(u);
|
|
302
|
-
return /* @__PURE__ */ L("div", { className:
|
|
302
|
+
return /* @__PURE__ */ L("div", { className: A, "data-testid": r, style: l, children: [
|
|
303
303
|
/* @__PURE__ */ L(
|
|
304
304
|
"div",
|
|
305
305
|
{
|
|
@@ -346,7 +346,7 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
346
346
|
readOnly: p,
|
|
347
347
|
formatter: g,
|
|
348
348
|
type: y,
|
|
349
|
-
inline:
|
|
349
|
+
inline: A,
|
|
350
350
|
alignRight: b,
|
|
351
351
|
...S
|
|
352
352
|
} = e;
|
|
@@ -354,12 +354,12 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
354
354
|
component: "IressInput",
|
|
355
355
|
defaultValue: i
|
|
356
356
|
});
|
|
357
|
-
const F = fe(null), { value: w, setValue:
|
|
357
|
+
const F = fe(null), { value: w, setValue: C } = bt({
|
|
358
358
|
component: "IressInput",
|
|
359
359
|
defaultValue: i,
|
|
360
360
|
value: e.value
|
|
361
|
-
}), x = gt(w), [H,
|
|
362
|
-
if (
|
|
361
|
+
}), x = gt(w), [H, M] = X(!1), E = Se(() => g && !H ? g(w) : x, [g, w, x, H]), W = Se(() => g && !H ? "text" : y, [g, H, y]);
|
|
362
|
+
if (Ee(
|
|
363
363
|
s,
|
|
364
364
|
() => F.current
|
|
365
365
|
), p)
|
|
@@ -377,7 +377,7 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
377
377
|
);
|
|
378
378
|
const U = (_) => {
|
|
379
379
|
var B;
|
|
380
|
-
|
|
380
|
+
C(""), (B = F.current) == null || B.focus();
|
|
381
381
|
const D = new Event("change", {
|
|
382
382
|
bubbles: !0
|
|
383
383
|
});
|
|
@@ -385,10 +385,10 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
385
385
|
writable: !1,
|
|
386
386
|
value: { value: "", ..._.target }
|
|
387
387
|
}), n == null || n(D);
|
|
388
|
-
},
|
|
388
|
+
}, J = (_) => {
|
|
389
389
|
const D = _.target.value;
|
|
390
|
-
|
|
391
|
-
},
|
|
390
|
+
C(D), d == null || d(_, D);
|
|
391
|
+
}, $ = V(
|
|
392
392
|
oe.input,
|
|
393
393
|
u,
|
|
394
394
|
Z.FormElement,
|
|
@@ -397,16 +397,16 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
397
397
|
[oe.watermark]: m
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
|
-
return /* @__PURE__ */ a("div", { className:
|
|
400
|
+
return /* @__PURE__ */ a("div", { className: $, "data-testid": S["data-testid"], children: /* @__PURE__ */ L(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
className: V(oe.wrapper, Z.FormElementInner, {
|
|
404
|
-
[oe.inlineWrapper]:
|
|
404
|
+
[oe.inlineWrapper]: A
|
|
405
405
|
}),
|
|
406
406
|
children: [
|
|
407
407
|
l && /* @__PURE__ */ a("div", { className: `${oe.addon} ${oe.prepend}`, children: l }),
|
|
408
408
|
/* @__PURE__ */ a(
|
|
409
|
-
|
|
409
|
+
$n,
|
|
410
410
|
{
|
|
411
411
|
...S,
|
|
412
412
|
className: V({
|
|
@@ -414,14 +414,14 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
414
414
|
[oe.alignRight]: b
|
|
415
415
|
}),
|
|
416
416
|
value: E,
|
|
417
|
-
onChange:
|
|
417
|
+
onChange: J,
|
|
418
418
|
onFocus: (..._) => {
|
|
419
419
|
var D;
|
|
420
|
-
|
|
420
|
+
M(!0), (D = S == null ? void 0 : S.onFocus) == null || D.call(S, ..._);
|
|
421
421
|
},
|
|
422
422
|
onBlur: (..._) => {
|
|
423
423
|
var D;
|
|
424
|
-
|
|
424
|
+
M(!1), (D = S == null ? void 0 : S.onBlur) == null || D.call(S, ..._);
|
|
425
425
|
},
|
|
426
426
|
type: W,
|
|
427
427
|
ref: F
|
|
@@ -442,15 +442,15 @@ const Ri = "ids-input-v5140", Li = "ids-input--readonly-v5140", Di = "ids-input-
|
|
|
442
442
|
) });
|
|
443
443
|
}, Pi = ie(qi), Ge = Pi;
|
|
444
444
|
Ge.Type = wn;
|
|
445
|
-
Ge.Width =
|
|
446
|
-
Ge.InputMode =
|
|
447
|
-
const ji = "ids-rich-select-
|
|
445
|
+
Ge.Width = xs;
|
|
446
|
+
Ge.InputMode = An;
|
|
447
|
+
const ji = "ids-rich-select-v5142", Qi = "ids-rich-select--popover-content-v5142", Ki = "ids-rich-select--dropdown-selected-heading-v5142", Yi = "ids-rich-select--dropdown-clear-v5142", Xi = "ids-rich-select--wrapper-v5142", vt = {
|
|
448
448
|
richSelect: ji,
|
|
449
449
|
popoverContent: Qi,
|
|
450
450
|
dropdownSelectedHeading: Ki,
|
|
451
451
|
dropdownClear: Yi,
|
|
452
452
|
wrapper: Xi
|
|
453
|
-
}, Ji = "ids-select-label-
|
|
453
|
+
}, Ji = "ids-select-label-v5142", Zi = "ids-select-label--contents-v5142", Gi = "ids-select-label--placeholder-v5142", eo = "ids-select-label--prepend-v5142", to = "ids-select-label--append-v5142", wt = {
|
|
454
454
|
selectLabel: Ji,
|
|
455
455
|
contents: Zi,
|
|
456
456
|
placeholder: Gi,
|
|
@@ -482,19 +482,19 @@ const ji = "ids-rich-select-v5140", Qi = "ids-rich-select--popover-content-v5140
|
|
|
482
482
|
noWrap: p = !1,
|
|
483
483
|
onClick: g,
|
|
484
484
|
value: y,
|
|
485
|
-
|
|
485
|
+
...A
|
|
486
486
|
}, b) => {
|
|
487
|
-
const S =
|
|
488
|
-
[
|
|
489
|
-
[
|
|
490
|
-
[`${
|
|
491
|
-
[
|
|
492
|
-
[
|
|
493
|
-
[`${
|
|
487
|
+
const S = gs(), w = Ln({ value: y ?? (typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t : void 0) }), C = {
|
|
488
|
+
[Te.Base]: !0,
|
|
489
|
+
[Te.Fluid]: i === !0,
|
|
490
|
+
[`${Te.Mode}--${l}`]: !w,
|
|
491
|
+
[Te.NoWrap]: p === !0,
|
|
492
|
+
[Te.Loading]: o,
|
|
493
|
+
[`${Te.Fluid}--${i}`]: typeof i == "string"
|
|
494
494
|
}, x = n === void 0 ? "button" : "a", H = x === "button" ? {
|
|
495
495
|
type: m,
|
|
496
496
|
"aria-describedby": o ? S : void 0
|
|
497
|
-
} : { href: n, rel: d, target: u },
|
|
497
|
+
} : { href: n, rel: d, target: u }, M = (E) => {
|
|
498
498
|
o || (g == null || g(E), w == null || w.toggle());
|
|
499
499
|
};
|
|
500
500
|
return /* @__PURE__ */ L(
|
|
@@ -505,19 +505,19 @@ const ji = "ids-rich-select-v5140", Qi = "ids-rich-select--popover-content-v5140
|
|
|
505
505
|
w == null ? void 0 : w.className,
|
|
506
506
|
Z.FormElement,
|
|
507
507
|
Z.FormElementInner,
|
|
508
|
-
|
|
508
|
+
C
|
|
509
509
|
),
|
|
510
510
|
...H,
|
|
511
511
|
...s,
|
|
512
512
|
...w == null ? void 0 : w.props,
|
|
513
|
-
|
|
514
|
-
onClick:
|
|
513
|
+
...A,
|
|
514
|
+
onClick: M,
|
|
515
515
|
ref: b,
|
|
516
516
|
children: [
|
|
517
517
|
f && /* @__PURE__ */ a(
|
|
518
518
|
"span",
|
|
519
519
|
{
|
|
520
|
-
className: o === !0 ? Z.Hidden :
|
|
520
|
+
className: o === !0 ? Z.Hidden : Te.Prepend,
|
|
521
521
|
children: f
|
|
522
522
|
}
|
|
523
523
|
),
|
|
@@ -531,7 +531,7 @@ const ji = "ids-rich-select-v5140", Qi = "ids-rich-select--popover-content-v5140
|
|
|
531
531
|
Re.Mode = Vn;
|
|
532
532
|
Re.Type = Rn;
|
|
533
533
|
Re.Fluid = pr;
|
|
534
|
-
const no = "ids-close-button-
|
|
534
|
+
const no = "ids-close-button-v5142", io = {
|
|
535
535
|
closeButton: no
|
|
536
536
|
}, Ct = ie(
|
|
537
537
|
({
|
|
@@ -568,13 +568,13 @@ const oo = ({
|
|
|
568
568
|
className: V(
|
|
569
569
|
s,
|
|
570
570
|
wt.selectLabel,
|
|
571
|
-
|
|
571
|
+
Te.Base,
|
|
572
572
|
Z.FormElementInner
|
|
573
573
|
),
|
|
574
574
|
children: [
|
|
575
|
-
r && /* @__PURE__ */ a("span", { className: V(
|
|
575
|
+
r && /* @__PURE__ */ a("span", { className: V(Te.Prepend, wt.prepend), children: r }),
|
|
576
576
|
/* @__PURE__ */ a(
|
|
577
|
-
|
|
577
|
+
Pe,
|
|
578
578
|
{
|
|
579
579
|
className: V(wt.contents, {
|
|
580
580
|
[wt.placeholder]: !l.length
|
|
@@ -586,14 +586,14 @@ const oo = ({
|
|
|
586
586
|
]
|
|
587
587
|
}
|
|
588
588
|
);
|
|
589
|
-
}, ao = "ids-select-tags-
|
|
589
|
+
}, ao = "ids-select-tags-v5142", lo = "ids-select-tags--placeholder-v5142", co = "ids-select-tags--prepend-v5142", uo = "ids-select-tags--append-v5142", fo = "ids-select-tags--tag-v5142", mo = "ids-select-tags--tags-list-v5142", ct = {
|
|
590
590
|
selectTags: ao,
|
|
591
591
|
placeholder: lo,
|
|
592
592
|
prepend: co,
|
|
593
593
|
append: uo,
|
|
594
594
|
tag: fo,
|
|
595
595
|
tagsList: mo
|
|
596
|
-
},
|
|
596
|
+
}, Ps = (e, s) => {
|
|
597
597
|
if (!(e != null && e.api.elements.reference) || !s)
|
|
598
598
|
return;
|
|
599
599
|
const t = e.getFocusableActivator(), r = mi(
|
|
@@ -616,12 +616,12 @@ const oo = ({
|
|
|
616
616
|
selectedArray: n,
|
|
617
617
|
selectedOptionsText: o
|
|
618
618
|
}) => {
|
|
619
|
-
const [l, f] =
|
|
619
|
+
const [l, f] = X(!1), d = Dr(), u = Fe(
|
|
620
620
|
(p, g) => {
|
|
621
621
|
t == null || t(
|
|
622
622
|
n.find((y) => y.label === p),
|
|
623
623
|
g
|
|
624
|
-
), g.stopPropagation(),
|
|
624
|
+
), g.stopPropagation(), Ps(d, g);
|
|
625
625
|
},
|
|
626
626
|
[t, d, n]
|
|
627
627
|
), m = Fe(
|
|
@@ -649,7 +649,7 @@ const oo = ({
|
|
|
649
649
|
className: ct.tag,
|
|
650
650
|
"data-testid": T(e, "tag"),
|
|
651
651
|
deleteButton: /* @__PURE__ */ a(
|
|
652
|
-
|
|
652
|
+
Ns,
|
|
653
653
|
{
|
|
654
654
|
activator: /* @__PURE__ */ a(Re, { mode: "tertiary", children: /* @__PURE__ */ a(
|
|
655
655
|
le,
|
|
@@ -660,7 +660,7 @@ const oo = ({
|
|
|
660
660
|
) }),
|
|
661
661
|
onActivated: () => i == null ? void 0 : i(!0),
|
|
662
662
|
onClick: (p) => {
|
|
663
|
-
p.stopPropagation(),
|
|
663
|
+
p.stopPropagation(), Ps(d, p);
|
|
664
664
|
},
|
|
665
665
|
onDeactivated: () => i == null ? void 0 : i(!1),
|
|
666
666
|
children: /* @__PURE__ */ L(_r, { children: [
|
|
@@ -688,13 +688,13 @@ const oo = ({
|
|
|
688
688
|
}) => {
|
|
689
689
|
const p = Se(() => _e(d), [d]), g = !p.length && l, y = !!p.length;
|
|
690
690
|
return /* @__PURE__ */ L(
|
|
691
|
-
|
|
691
|
+
Pe,
|
|
692
692
|
{
|
|
693
693
|
...m,
|
|
694
694
|
className: V(
|
|
695
695
|
s,
|
|
696
696
|
ct.selectTags,
|
|
697
|
-
|
|
697
|
+
Te.Base,
|
|
698
698
|
Z.FormElementInner
|
|
699
699
|
),
|
|
700
700
|
children: [
|
|
@@ -719,8 +719,8 @@ const oo = ({
|
|
|
719
719
|
}, vo = (e, s = {}) => {
|
|
720
720
|
const t = go(s);
|
|
721
721
|
return Object.keys(t).filter((r) => !!t[r]).map((r) => `${e}--${r}`);
|
|
722
|
-
}, go = (e = {}) =>
|
|
723
|
-
(s, t, r) => (s[t] = e[t] ?? s[
|
|
722
|
+
}, go = (e = {}) => Ws.reduce(
|
|
723
|
+
(s, t, r) => (s[t] = e[t] ?? s[Ws[r - 1]], s),
|
|
724
724
|
{}
|
|
725
725
|
), Rt = ({
|
|
726
726
|
children: e,
|
|
@@ -729,7 +729,7 @@ const oo = ({
|
|
|
729
729
|
className: r,
|
|
730
730
|
...i
|
|
731
731
|
}) => {
|
|
732
|
-
const n = t ?
|
|
732
|
+
const n = t ? Us.VisuallyHidden : Us.TotallyHidden;
|
|
733
733
|
return /* @__PURE__ */ a(
|
|
734
734
|
"div",
|
|
735
735
|
{
|
|
@@ -792,10 +792,10 @@ const oo = ({
|
|
|
792
792
|
role: e ? void 0 : "combobox",
|
|
793
793
|
selected: m
|
|
794
794
|
}
|
|
795
|
-
), bo = "ids-select-search-
|
|
795
|
+
), bo = "ids-select-search-v5142", xo = "ids-select-search--content-v5142", js = {
|
|
796
796
|
selectSearch: bo,
|
|
797
797
|
content: xo
|
|
798
|
-
}, _o = "ids-select-body-
|
|
798
|
+
}, _o = "ids-select-body-v5142", So = "ids-select-body--children-v5142", Qs = {
|
|
799
799
|
selectBody: _o,
|
|
800
800
|
children: So
|
|
801
801
|
}, No = ({
|
|
@@ -810,13 +810,13 @@ const oo = ({
|
|
|
810
810
|
{
|
|
811
811
|
...r,
|
|
812
812
|
className: V(
|
|
813
|
-
|
|
814
|
-
|
|
813
|
+
js.selectSearch,
|
|
814
|
+
Qs.selectBody,
|
|
815
815
|
e
|
|
816
816
|
),
|
|
817
817
|
contentClassName: V(
|
|
818
|
-
|
|
819
|
-
|
|
818
|
+
js.content,
|
|
819
|
+
Qs.children,
|
|
820
820
|
s
|
|
821
821
|
),
|
|
822
822
|
displayMode: "inline",
|
|
@@ -861,11 +861,11 @@ const oo = ({
|
|
|
861
861
|
value: u
|
|
862
862
|
}) => {
|
|
863
863
|
const m = _e(u).map(
|
|
864
|
-
(
|
|
865
|
-
const { formattedLabel: x, ...H } =
|
|
864
|
+
(C) => {
|
|
865
|
+
const { formattedLabel: x, ...H } = C;
|
|
866
866
|
return H;
|
|
867
867
|
}
|
|
868
|
-
), p = !s && (!!(l != null && l.length) || o && !t), g = !!m.length && r, y = p && g,
|
|
868
|
+
), p = !s && (!!(l != null && l.length) || o && !t), g = !!m.length && r, y = p && g, A = fe(null), b = gs();
|
|
869
869
|
ee(() => {
|
|
870
870
|
d || f == null || f("");
|
|
871
871
|
}, [d, f]);
|
|
@@ -878,8 +878,8 @@ const oo = ({
|
|
|
878
878
|
{
|
|
879
879
|
"aria-label": "Search",
|
|
880
880
|
loading: t,
|
|
881
|
-
onChange: (
|
|
882
|
-
ref:
|
|
881
|
+
onChange: (C) => f == null ? void 0 : f(C.target.value),
|
|
882
|
+
ref: A,
|
|
883
883
|
placeholder: "Search and select",
|
|
884
884
|
value: o
|
|
885
885
|
}
|
|
@@ -896,9 +896,9 @@ const oo = ({
|
|
|
896
896
|
Vo,
|
|
897
897
|
{
|
|
898
898
|
clearAll: !0,
|
|
899
|
-
onClearAll: (
|
|
899
|
+
onClearAll: (C) => {
|
|
900
900
|
var x;
|
|
901
|
-
n == null || n(
|
|
901
|
+
n == null || n(C), (x = A.current) == null || x.focus();
|
|
902
902
|
},
|
|
903
903
|
children: /* @__PURE__ */ L("h2", { id: b, children: [
|
|
904
904
|
"Selected (",
|
|
@@ -944,14 +944,14 @@ const oo = ({
|
|
|
944
944
|
setShow: p,
|
|
945
945
|
setValue: g,
|
|
946
946
|
show: y,
|
|
947
|
-
value:
|
|
947
|
+
value: A
|
|
948
948
|
}) => {
|
|
949
949
|
const b = typeof l == "function", S = r ?? (b ? [] : l), F = u.length ? u : S, w = Fe(
|
|
950
950
|
(x) => {
|
|
951
951
|
g(x), o == null || o(Ie(x), x), n || p(!1);
|
|
952
952
|
},
|
|
953
953
|
[p, g, o, n]
|
|
954
|
-
),
|
|
954
|
+
), C = Fe(
|
|
955
955
|
(x) => {
|
|
956
956
|
x.stopPropagation(), g([]), o == null || o(Ie([]), []);
|
|
957
957
|
},
|
|
@@ -967,7 +967,7 @@ const oo = ({
|
|
|
967
967
|
setValue: g,
|
|
968
968
|
setQuery: m,
|
|
969
969
|
show: y,
|
|
970
|
-
value:
|
|
970
|
+
value: A
|
|
971
971
|
}) : b ? /* @__PURE__ */ a(
|
|
972
972
|
ko,
|
|
973
973
|
{
|
|
@@ -976,12 +976,12 @@ const oo = ({
|
|
|
976
976
|
loading: i,
|
|
977
977
|
multiSelect: n,
|
|
978
978
|
onChange: w,
|
|
979
|
-
onClear:
|
|
979
|
+
onClear: C,
|
|
980
980
|
query: f,
|
|
981
981
|
results: u,
|
|
982
982
|
setQuery: m,
|
|
983
983
|
show: y,
|
|
984
|
-
value:
|
|
984
|
+
value: A
|
|
985
985
|
}
|
|
986
986
|
) : /* @__PURE__ */ a(
|
|
987
987
|
xt,
|
|
@@ -989,11 +989,11 @@ const oo = ({
|
|
|
989
989
|
items: F,
|
|
990
990
|
multiSelect: n,
|
|
991
991
|
onChange: w,
|
|
992
|
-
selected:
|
|
992
|
+
selected: A,
|
|
993
993
|
selectedFirst: !0
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
},
|
|
996
|
+
}, $o = ie(
|
|
997
997
|
({
|
|
998
998
|
align: e = "bottom-start",
|
|
999
999
|
autoHighlight: s = !0,
|
|
@@ -1010,82 +1010,82 @@ const oo = ({
|
|
|
1010
1010
|
onDeactivated: p,
|
|
1011
1011
|
onChange: g,
|
|
1012
1012
|
onBlur: y,
|
|
1013
|
-
options:
|
|
1013
|
+
options: A,
|
|
1014
1014
|
placeholder: b,
|
|
1015
1015
|
readonly: S,
|
|
1016
1016
|
renderHiddenInput: F,
|
|
1017
1017
|
renderLabel: w,
|
|
1018
|
-
renderOptions:
|
|
1018
|
+
renderOptions: C,
|
|
1019
1019
|
required: x,
|
|
1020
1020
|
type: H,
|
|
1021
|
-
value:
|
|
1021
|
+
value: M,
|
|
1022
1022
|
width: E = "100perc",
|
|
1023
1023
|
virtualFocus: W,
|
|
1024
1024
|
...U
|
|
1025
|
-
},
|
|
1025
|
+
}, J) => {
|
|
1026
1026
|
nt({
|
|
1027
1027
|
component: "IressRichSelect",
|
|
1028
1028
|
defaultValue: i
|
|
1029
1029
|
});
|
|
1030
|
-
const [
|
|
1030
|
+
const [$, _] = X(!1), [D, B] = X(""), { value: O, setValue: P, getValuesString: q, getLabelsString: te } = Jt({
|
|
1031
1031
|
component: "IressRichSelect",
|
|
1032
1032
|
defaultValue: i,
|
|
1033
1033
|
multiple: u,
|
|
1034
|
-
value:
|
|
1035
|
-
}), K = fe(null), Q = fe(null), { debouncedQuery: pe, error:
|
|
1034
|
+
value: M
|
|
1035
|
+
}), K = fe(null), Q = fe(null), { debouncedQuery: pe, error: Y, results: ce, stopSearch: ve, loading: ne } = Lt({
|
|
1036
1036
|
debounceThreshold: r,
|
|
1037
1037
|
initialOptions: f,
|
|
1038
|
-
options:
|
|
1038
|
+
options: A,
|
|
1039
1039
|
query: D
|
|
1040
1040
|
});
|
|
1041
|
-
|
|
1041
|
+
Ee(J, () => K.current ? {
|
|
1042
1042
|
...K.current,
|
|
1043
1043
|
focus: () => {
|
|
1044
|
-
var Ne,
|
|
1045
|
-
return (
|
|
1044
|
+
var Ne, $e;
|
|
1045
|
+
return ($e = (Ne = K.current) == null ? void 0 : Ne.getActivator()) == null ? void 0 : $e.focus();
|
|
1046
1046
|
},
|
|
1047
1047
|
blur: () => {
|
|
1048
|
-
var Ne,
|
|
1049
|
-
return (
|
|
1048
|
+
var Ne, $e;
|
|
1049
|
+
return ($e = (Ne = K.current) == null ? void 0 : Ne.getActivator()) == null ? void 0 : $e.blur();
|
|
1050
1050
|
},
|
|
1051
1051
|
hiddenInput: Q.current ?? void 0
|
|
1052
1052
|
} : { hiddenInput: Q.current ?? void 0 }), ee(() => {
|
|
1053
|
-
|
|
1054
|
-
}, [
|
|
1053
|
+
$ ? m == null || m() : p == null || p();
|
|
1054
|
+
}, [$]);
|
|
1055
1055
|
const he = Fe(
|
|
1056
1056
|
(Ne) => {
|
|
1057
1057
|
if (!y) return;
|
|
1058
|
-
const
|
|
1059
|
-
|
|
1058
|
+
const $e = Ne.currentTarget, it = Ne.relatedTarget;
|
|
1059
|
+
!$ && (!it || !$e.contains(it)) && y(Ne), Ne.stopPropagation();
|
|
1060
1060
|
},
|
|
1061
|
-
[y,
|
|
1061
|
+
[y, $]
|
|
1062
1062
|
);
|
|
1063
1063
|
if (S)
|
|
1064
|
-
return /* @__PURE__ */ a(Ze, { value:
|
|
1065
|
-
const ae = typeof
|
|
1064
|
+
return /* @__PURE__ */ a(Ze, { value: q(), children: te(", ") });
|
|
1065
|
+
const ae = typeof A == "function", se = W ?? !ae, de = H ?? (ae ? void 0 : "listbox"), De = () => {
|
|
1066
1066
|
_(!0);
|
|
1067
|
-
},
|
|
1067
|
+
}, je = () => {
|
|
1068
1068
|
_(!1), ve();
|
|
1069
1069
|
};
|
|
1070
1070
|
return /* @__PURE__ */ L(Je, { children: [
|
|
1071
1071
|
/* @__PURE__ */ a(
|
|
1072
|
-
|
|
1072
|
+
Ns,
|
|
1073
1073
|
{
|
|
1074
1074
|
...U,
|
|
1075
1075
|
activator: /* @__PURE__ */ a(
|
|
1076
1076
|
yo,
|
|
1077
1077
|
{
|
|
1078
1078
|
async: ae,
|
|
1079
|
-
error:
|
|
1079
|
+
error: Y,
|
|
1080
1080
|
id: l,
|
|
1081
1081
|
loading: ne,
|
|
1082
1082
|
multiSelect: u,
|
|
1083
1083
|
onChange: g,
|
|
1084
1084
|
placeholder: b,
|
|
1085
1085
|
renderLabel: w,
|
|
1086
|
-
setValue:
|
|
1086
|
+
setValue: P,
|
|
1087
1087
|
setShow: _,
|
|
1088
|
-
show:
|
|
1088
|
+
show: $,
|
|
1089
1089
|
value: O
|
|
1090
1090
|
}
|
|
1091
1091
|
),
|
|
@@ -1096,10 +1096,10 @@ const oo = ({
|
|
|
1096
1096
|
}),
|
|
1097
1097
|
contentClassName: vt.popoverContent,
|
|
1098
1098
|
matchActivatorWidth: !0,
|
|
1099
|
-
onActivated:
|
|
1100
|
-
onDeactivated:
|
|
1099
|
+
onActivated: De,
|
|
1100
|
+
onDeactivated: je,
|
|
1101
1101
|
ref: K,
|
|
1102
|
-
show:
|
|
1102
|
+
show: $,
|
|
1103
1103
|
type: de,
|
|
1104
1104
|
virtualFocus: se,
|
|
1105
1105
|
onBlur: he,
|
|
@@ -1110,19 +1110,19 @@ const oo = ({
|
|
|
1110
1110
|
{
|
|
1111
1111
|
autoHighlight: s,
|
|
1112
1112
|
debouncedQuery: pe,
|
|
1113
|
-
error:
|
|
1113
|
+
error: Y,
|
|
1114
1114
|
initialOptions: f,
|
|
1115
1115
|
loading: ne,
|
|
1116
1116
|
multiSelect: u,
|
|
1117
1117
|
onChange: g,
|
|
1118
|
-
options:
|
|
1118
|
+
options: A,
|
|
1119
1119
|
query: D,
|
|
1120
|
-
renderOptions:
|
|
1120
|
+
renderOptions: C,
|
|
1121
1121
|
results: ce,
|
|
1122
1122
|
setQuery: B,
|
|
1123
1123
|
setShow: _,
|
|
1124
|
-
setValue:
|
|
1125
|
-
show:
|
|
1124
|
+
setValue: P,
|
|
1125
|
+
show: $,
|
|
1126
1126
|
value: O
|
|
1127
1127
|
}
|
|
1128
1128
|
),
|
|
@@ -1134,7 +1134,7 @@ const oo = ({
|
|
|
1134
1134
|
pi,
|
|
1135
1135
|
{
|
|
1136
1136
|
"data-testid": U["data-testid"],
|
|
1137
|
-
getValuesString:
|
|
1137
|
+
getValuesString: q,
|
|
1138
1138
|
name: d,
|
|
1139
1139
|
renderHiddenInput: F,
|
|
1140
1140
|
required: x,
|
|
@@ -1145,19 +1145,19 @@ const oo = ({
|
|
|
1145
1145
|
] });
|
|
1146
1146
|
}
|
|
1147
1147
|
);
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1148
|
+
$o.displayName = "IressRichSelect";
|
|
1149
|
+
const Ao = ie(
|
|
1150
1150
|
(e, s) => {
|
|
1151
1151
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt("", {
|
|
1152
1152
|
onKeyDown: e.onKeyDown
|
|
1153
1153
|
});
|
|
1154
|
-
return
|
|
1154
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
1155
1155
|
Re,
|
|
1156
1156
|
{
|
|
1157
1157
|
...e,
|
|
1158
1158
|
...i,
|
|
1159
1159
|
className: V(vt.dropdownClear, {
|
|
1160
|
-
[
|
|
1160
|
+
[Te.Active]: r
|
|
1161
1161
|
}),
|
|
1162
1162
|
mode: "tertiary",
|
|
1163
1163
|
ref: (n) => {
|
|
@@ -1183,7 +1183,7 @@ const $o = ie(
|
|
|
1183
1183
|
children: /* @__PURE__ */ L(et, { horizontalAlign: "between", verticalAlign: "middle", children: [
|
|
1184
1184
|
e,
|
|
1185
1185
|
t && /* @__PURE__ */ a(
|
|
1186
|
-
|
|
1186
|
+
Ao,
|
|
1187
1187
|
{
|
|
1188
1188
|
onClick: r,
|
|
1189
1189
|
onKeyDown: (o) => {
|
|
@@ -1197,7 +1197,7 @@ const $o = ie(
|
|
|
1197
1197
|
), Mr = (e) => {
|
|
1198
1198
|
const s = Sr();
|
|
1199
1199
|
return /* @__PURE__ */ a(
|
|
1200
|
-
|
|
1200
|
+
ws,
|
|
1201
1201
|
{
|
|
1202
1202
|
...e,
|
|
1203
1203
|
role: (s == null ? void 0 : s.role) === "menu" ? void 0 : "presentation"
|
|
@@ -1214,7 +1214,7 @@ const $o = ie(
|
|
|
1214
1214
|
}) => {
|
|
1215
1215
|
const l = Sr(), f = Nr() ?? n;
|
|
1216
1216
|
return /* @__PURE__ */ L(
|
|
1217
|
-
|
|
1217
|
+
Pe,
|
|
1218
1218
|
{
|
|
1219
1219
|
...o,
|
|
1220
1220
|
className: V(t, tt.menuItem, tt.text, {
|
|
@@ -1242,7 +1242,7 @@ const $o = ie(
|
|
|
1242
1242
|
children: /* @__PURE__ */ a(t, { children: e })
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
|
-
Cr.Level =
|
|
1245
|
+
Cr.Level = bs;
|
|
1246
1246
|
const Ro = ({
|
|
1247
1247
|
append: e,
|
|
1248
1248
|
canToggle: s,
|
|
@@ -1257,7 +1257,7 @@ const Ro = ({
|
|
|
1257
1257
|
value: u,
|
|
1258
1258
|
...m
|
|
1259
1259
|
}, p) => {
|
|
1260
|
-
const g = Nr() ?? f, y = Bn({ selected: d, value: u }), { isActiveInPopover:
|
|
1260
|
+
const g = Nr() ?? f, y = Bn({ selected: d, value: u }), { isActiveInPopover: A, ...b } = On({
|
|
1261
1261
|
canToggle: s,
|
|
1262
1262
|
onClick: n,
|
|
1263
1263
|
onKeyDown: o,
|
|
@@ -1276,9 +1276,9 @@ const Ro = ({
|
|
|
1276
1276
|
selected: d,
|
|
1277
1277
|
value: u
|
|
1278
1278
|
},
|
|
1279
|
-
|
|
1279
|
+
A
|
|
1280
1280
|
), F = fe(null);
|
|
1281
|
-
return
|
|
1281
|
+
return Ee(p, () => F.current), Hn(
|
|
1282
1282
|
/* @__PURE__ */ a(Re, { ...y, ...b, ...S, ...m }),
|
|
1283
1283
|
g
|
|
1284
1284
|
);
|
|
@@ -1317,7 +1317,7 @@ const Ro = ({
|
|
|
1317
1317
|
selectedFirst: d,
|
|
1318
1318
|
...u
|
|
1319
1319
|
}) => {
|
|
1320
|
-
const p = `${
|
|
1320
|
+
const p = `${Oe({ id: u.id })}--label`, g = Se(
|
|
1321
1321
|
() => di(f, n),
|
|
1322
1322
|
[n, f]
|
|
1323
1323
|
), y = Se(() => {
|
|
@@ -1339,7 +1339,7 @@ const Ro = ({
|
|
|
1339
1339
|
g,
|
|
1340
1340
|
f,
|
|
1341
1341
|
d
|
|
1342
|
-
]),
|
|
1342
|
+
]), A = y.length === 0, b = Fe(
|
|
1343
1343
|
(S) => {
|
|
1344
1344
|
const F = Co(
|
|
1345
1345
|
t,
|
|
@@ -1371,7 +1371,7 @@ const Ro = ({
|
|
|
1371
1371
|
)}-${F}`
|
|
1372
1372
|
}
|
|
1373
1373
|
)),
|
|
1374
|
-
|
|
1374
|
+
A && (typeof o == "string" ? /* @__PURE__ */ a(As, { children: o }) : o)
|
|
1375
1375
|
]
|
|
1376
1376
|
}
|
|
1377
1377
|
);
|
|
@@ -1390,7 +1390,7 @@ const Ro = ({
|
|
|
1390
1390
|
(i) => i.value === t || i.value === void 0 && i.label === t
|
|
1391
1391
|
)) ?? s.find(
|
|
1392
1392
|
(i) => i.value === t || i.value === void 0 && i.label === t
|
|
1393
|
-
), zo = "ids-select-search-input-
|
|
1393
|
+
), zo = "ids-select-search-input-v5142", Ks = {
|
|
1394
1394
|
selectSearchInput: zo
|
|
1395
1395
|
}, Tr = ie(
|
|
1396
1396
|
({
|
|
@@ -1402,15 +1402,15 @@ const Ro = ({
|
|
|
1402
1402
|
...n
|
|
1403
1403
|
}, o) => {
|
|
1404
1404
|
const l = fe(null), { isActiveInPopover: f, ...d } = Gt();
|
|
1405
|
-
return
|
|
1405
|
+
return Ee(o, () => l.current), /* @__PURE__ */ a(
|
|
1406
1406
|
Ge,
|
|
1407
1407
|
{
|
|
1408
1408
|
...n,
|
|
1409
1409
|
...d,
|
|
1410
1410
|
tabIndex: void 0,
|
|
1411
1411
|
autoComplete: e,
|
|
1412
|
-
className: V(s,
|
|
1413
|
-
[
|
|
1412
|
+
className: V(s, Ks.selectSearchInput, {
|
|
1413
|
+
[Ks.isActiveInPopover]: f
|
|
1414
1414
|
}),
|
|
1415
1415
|
placeholder: t,
|
|
1416
1416
|
prepend: r,
|
|
@@ -1441,57 +1441,57 @@ const Bo = ie(
|
|
|
1441
1441
|
limitMobile: p = 6,
|
|
1442
1442
|
noResultsText: g,
|
|
1443
1443
|
onChange: y,
|
|
1444
|
-
onClear:
|
|
1444
|
+
onClear: A,
|
|
1445
1445
|
onFocus: b,
|
|
1446
1446
|
options: S,
|
|
1447
1447
|
popoverProps: {
|
|
1448
1448
|
autoHighlight: F = !1,
|
|
1449
1449
|
append: w,
|
|
1450
|
-
prepend:
|
|
1450
|
+
prepend: C,
|
|
1451
1451
|
...x
|
|
1452
1452
|
} = {},
|
|
1453
1453
|
readOnly: H,
|
|
1454
|
-
value:
|
|
1454
|
+
value: M,
|
|
1455
1455
|
watermark: E = !0,
|
|
1456
1456
|
...W
|
|
1457
1457
|
}, U) => {
|
|
1458
|
-
const [
|
|
1458
|
+
const [J, $] = X(!1), { value: _, setValue: D } = bt({
|
|
1459
1459
|
component: "IressAutocomplete",
|
|
1460
1460
|
defaultValue: f,
|
|
1461
|
-
value:
|
|
1462
|
-
}), [B, O] =
|
|
1461
|
+
value: M
|
|
1462
|
+
}), [B, O] = X(!1), { clearError: P, debouncedQuery: q, error: te, loading: K, results: Q, stopSearch: pe } = Lt({
|
|
1463
1463
|
debounceThreshold: l,
|
|
1464
1464
|
initialOptions: u,
|
|
1465
1465
|
options: S,
|
|
1466
1466
|
query: yt(_)
|
|
1467
|
-
}),
|
|
1468
|
-
debouncedQuery:
|
|
1467
|
+
}), Y = gi({
|
|
1468
|
+
debouncedQuery: q,
|
|
1469
1469
|
loading: K,
|
|
1470
1470
|
results: Q,
|
|
1471
1471
|
value: _
|
|
1472
1472
|
});
|
|
1473
1473
|
if (ee(() => {
|
|
1474
|
-
B && !
|
|
1475
|
-
}, [
|
|
1476
|
-
te &&
|
|
1474
|
+
B && !J && Y.showResults && $(!0);
|
|
1475
|
+
}, [Y.showResults, J, B]), ee(() => {
|
|
1476
|
+
te && $(!0);
|
|
1477
1477
|
}, [te]), H)
|
|
1478
1478
|
return /* @__PURE__ */ a(Ze, { value: _ });
|
|
1479
1479
|
const ce = (se, de) => {
|
|
1480
1480
|
y == null || y(se, de), D(de), O(!0);
|
|
1481
1481
|
}, ve = (se) => {
|
|
1482
|
-
|
|
1482
|
+
A == null || A(se), D("");
|
|
1483
1483
|
}, ne = (se) => {
|
|
1484
|
-
b == null || b(se), u != null && u.length &&
|
|
1484
|
+
b == null || b(se), u != null && u.length && $(!0);
|
|
1485
1485
|
}, he = (se) => {
|
|
1486
|
-
var
|
|
1487
|
-
const de = (
|
|
1486
|
+
var De;
|
|
1487
|
+
const de = (De = _e(se)) == null ? void 0 : De[0];
|
|
1488
1488
|
y == null || y(
|
|
1489
1489
|
Ie(de == null ? void 0 : de.label),
|
|
1490
1490
|
de == null ? void 0 : de.label,
|
|
1491
1491
|
de
|
|
1492
|
-
), D(de == null ? void 0 : de.label),
|
|
1492
|
+
), D(de == null ? void 0 : de.label), $(!1), O(!1);
|
|
1493
1493
|
}, ae = () => {
|
|
1494
|
-
pe(),
|
|
1494
|
+
pe(), P(), $(!1), _ && O(!1);
|
|
1495
1495
|
};
|
|
1496
1496
|
return /* @__PURE__ */ L(
|
|
1497
1497
|
Xt,
|
|
@@ -1526,13 +1526,13 @@ const Bo = ie(
|
|
|
1526
1526
|
),
|
|
1527
1527
|
"data-testid": o,
|
|
1528
1528
|
minLength: 0,
|
|
1529
|
-
onActivated: () => (B || e) &&
|
|
1529
|
+
onActivated: () => (B || e) && $(!0),
|
|
1530
1530
|
onDeactivated: ae,
|
|
1531
|
-
show:
|
|
1531
|
+
show: J,
|
|
1532
1532
|
type: "listbox",
|
|
1533
1533
|
children: [
|
|
1534
|
-
|
|
1535
|
-
|
|
1534
|
+
Y.showResults && /* @__PURE__ */ L(Je, { children: [
|
|
1535
|
+
C,
|
|
1536
1536
|
/* @__PURE__ */ a(
|
|
1537
1537
|
xt,
|
|
1538
1538
|
{
|
|
@@ -1543,14 +1543,14 @@ const Bo = ie(
|
|
|
1543
1543
|
limitDesktop: m,
|
|
1544
1544
|
limitMobile: p,
|
|
1545
1545
|
onChange: he,
|
|
1546
|
-
selected: { label:
|
|
1546
|
+
selected: { label: q }
|
|
1547
1547
|
}
|
|
1548
1548
|
),
|
|
1549
1549
|
w
|
|
1550
1550
|
] }),
|
|
1551
1551
|
te && d,
|
|
1552
|
-
|
|
1553
|
-
|
|
1552
|
+
Y.showNoResults && !te && /* @__PURE__ */ a(
|
|
1553
|
+
Ss,
|
|
1554
1554
|
{
|
|
1555
1555
|
noResultsText: g,
|
|
1556
1556
|
styles: Et
|
|
@@ -1562,7 +1562,7 @@ const Bo = ie(
|
|
|
1562
1562
|
}
|
|
1563
1563
|
);
|
|
1564
1564
|
Bo.displayName = "IressAutocomplete";
|
|
1565
|
-
const Eo = "ids-checkbox--label-
|
|
1565
|
+
const Eo = "ids-checkbox--label-v5142", Oo = "ids-checkbox--mark-v5142", Ho = "ids-checkbox--checked-v5142", Uo = "ids-checkbox--indeterminate-v5142", Wo = "ids-checkbox-v5142", qo = "ids-checkbox--hidden-control-v5142", Po = "ids-checkbox--input-v5142", jo = "ids-checkbox--touch-v5142", Qo = "ids-checkbox--hidden-label-v5142", Ko = "ids-checkbox--label-span-v5142", He = {
|
|
1566
1566
|
label: Eo,
|
|
1567
1567
|
mark: Oo,
|
|
1568
1568
|
checked: Ho,
|
|
@@ -1594,36 +1594,36 @@ const Eo = "ids-checkbox--label-v5140", Oo = "ids-checkbox--mark-v5140", Ho = "i
|
|
|
1594
1594
|
defaultValue: t,
|
|
1595
1595
|
message: "Using the `defaultChecked` prop on an `IressCheckbox` inside an `IressForm` component is not supported. Please use the `defaultValue` prop on the `IressFormField`, or use `defaultValues` on the `IressForm` component (recommended) to ensure a single source of truth for your form."
|
|
1596
1596
|
});
|
|
1597
|
-
const
|
|
1597
|
+
const A = fe(null), b = A.current, S = gs(), F = o ?? S, [w, C] = X(
|
|
1598
1598
|
n ?? !1
|
|
1599
|
-
), x =
|
|
1600
|
-
value:
|
|
1599
|
+
), x = ys(Mn), H = x ? void 0 : t, M = x ? _e(x.value).includes(d) : e, E = (x == null ? void 0 : x.hiddenCheckbox) ?? r, W = (x == null ? void 0 : x.touch) ?? p, U = (x == null ? void 0 : x.readonly) ?? m, J = (x == null ? void 0 : x.name) ?? l, {
|
|
1600
|
+
value: $,
|
|
1601
1601
|
setValue: _,
|
|
1602
1602
|
isControlled: D
|
|
1603
1603
|
} = bt({
|
|
1604
1604
|
component: "IressCheckbox",
|
|
1605
1605
|
propName: "checked",
|
|
1606
1606
|
defaultValue: H,
|
|
1607
|
-
value:
|
|
1607
|
+
value: M
|
|
1608
1608
|
}), B = D ? n : w, O = Fe(
|
|
1609
|
-
(
|
|
1610
|
-
var
|
|
1611
|
-
D ||
|
|
1609
|
+
(P) => {
|
|
1610
|
+
var q;
|
|
1611
|
+
D || C(!1), _(P.target.checked), f == null || f(P, d), (q = x == null ? void 0 : x.onChange) == null || q.call(x, P, d);
|
|
1612
1612
|
},
|
|
1613
1613
|
[x, D, f, _, d]
|
|
1614
1614
|
);
|
|
1615
|
-
return
|
|
1615
|
+
return Ee(y, () => ({
|
|
1616
1616
|
// React hook form requires the focus, blur, input
|
|
1617
1617
|
focus: () => b == null ? void 0 : b.focus(),
|
|
1618
1618
|
blur: () => b == null ? void 0 : b.blur(),
|
|
1619
1619
|
input: b,
|
|
1620
|
-
check: (
|
|
1621
|
-
_(
|
|
1620
|
+
check: (P) => {
|
|
1621
|
+
_(P);
|
|
1622
1622
|
},
|
|
1623
1623
|
reset: () => {
|
|
1624
1624
|
_(!1);
|
|
1625
1625
|
}
|
|
1626
|
-
})), U ?
|
|
1626
|
+
})), U ? $ ? /* @__PURE__ */ a(
|
|
1627
1627
|
Ze,
|
|
1628
1628
|
{
|
|
1629
1629
|
...g,
|
|
@@ -1636,12 +1636,12 @@ const Eo = "ids-checkbox--label-v5140", Oo = "ids-checkbox--mark-v5140", Ho = "i
|
|
|
1636
1636
|
{
|
|
1637
1637
|
className: V(s, {
|
|
1638
1638
|
[Z.FormElement]: !0,
|
|
1639
|
-
[
|
|
1640
|
-
[
|
|
1641
|
-
[
|
|
1642
|
-
[
|
|
1643
|
-
[
|
|
1644
|
-
[
|
|
1639
|
+
[He.checkbox]: !0,
|
|
1640
|
+
[He.checked]: $,
|
|
1641
|
+
[He.hiddenControl]: E,
|
|
1642
|
+
[He.hiddenLabel]: i,
|
|
1643
|
+
[He.indeterminate]: B,
|
|
1644
|
+
[He.touch]: W
|
|
1645
1645
|
}),
|
|
1646
1646
|
children: [
|
|
1647
1647
|
/* @__PURE__ */ a(
|
|
@@ -1651,12 +1651,12 @@ const Eo = "ids-checkbox--label-v5140", Oo = "ids-checkbox--mark-v5140", Ho = "i
|
|
|
1651
1651
|
value: gt(d),
|
|
1652
1652
|
type: "checkbox",
|
|
1653
1653
|
id: F,
|
|
1654
|
-
defaultChecked: D ? void 0 :
|
|
1655
|
-
checked: D ?
|
|
1656
|
-
className: V(
|
|
1654
|
+
defaultChecked: D ? void 0 : $,
|
|
1655
|
+
checked: D ? $ : void 0,
|
|
1656
|
+
className: V(He.input, Z.SROnly),
|
|
1657
1657
|
onChange: O,
|
|
1658
|
-
ref:
|
|
1659
|
-
name:
|
|
1658
|
+
ref: A,
|
|
1659
|
+
name: J
|
|
1660
1660
|
}
|
|
1661
1661
|
),
|
|
1662
1662
|
/* @__PURE__ */ L(
|
|
@@ -1664,21 +1664,21 @@ const Eo = "ids-checkbox--label-v5140", Oo = "ids-checkbox--mark-v5140", Ho = "i
|
|
|
1664
1664
|
{
|
|
1665
1665
|
htmlFor: F,
|
|
1666
1666
|
className: V({
|
|
1667
|
-
[
|
|
1667
|
+
[He.label]: !0
|
|
1668
1668
|
}),
|
|
1669
1669
|
children: [
|
|
1670
1670
|
!E && /* @__PURE__ */ a(
|
|
1671
1671
|
Dn,
|
|
1672
1672
|
{
|
|
1673
|
-
className:
|
|
1674
|
-
checked:
|
|
1673
|
+
className: He.mark,
|
|
1674
|
+
checked: $,
|
|
1675
1675
|
indeterminate: B
|
|
1676
1676
|
}
|
|
1677
1677
|
),
|
|
1678
1678
|
/* @__PURE__ */ a(
|
|
1679
1679
|
"span",
|
|
1680
1680
|
{
|
|
1681
|
-
className: V(
|
|
1681
|
+
className: V(He.labelSpan, {
|
|
1682
1682
|
[Z.SROnly]: i
|
|
1683
1683
|
}),
|
|
1684
1684
|
children: u
|
|
@@ -1694,7 +1694,7 @@ const Eo = "ids-checkbox--label-v5140", Oo = "ids-checkbox--mark-v5140", Ho = "i
|
|
|
1694
1694
|
Yo
|
|
1695
1695
|
);
|
|
1696
1696
|
Xo.displayName = "IressCheckbox";
|
|
1697
|
-
const
|
|
1697
|
+
const Vs = ({
|
|
1698
1698
|
loading: e,
|
|
1699
1699
|
noResultsText: s = "No results",
|
|
1700
1700
|
results: t = [],
|
|
@@ -1725,8 +1725,8 @@ const $s = ({
|
|
|
1725
1725
|
),
|
|
1726
1726
|
e
|
|
1727
1727
|
] }),
|
|
1728
|
-
i && /* @__PURE__ */ a(
|
|
1729
|
-
] }),
|
|
1728
|
+
i && /* @__PURE__ */ a(Ss, { noResultsText: t, styles: rt })
|
|
1729
|
+
] }), Rs = ie(
|
|
1730
1730
|
({
|
|
1731
1731
|
append: e = /* @__PURE__ */ a(le, { name: "search" }),
|
|
1732
1732
|
autoComplete: s = "off",
|
|
@@ -1743,41 +1743,41 @@ const $s = ({
|
|
|
1743
1743
|
limitMobile: p = 6,
|
|
1744
1744
|
name: g,
|
|
1745
1745
|
noResultsText: y,
|
|
1746
|
-
onBlur:
|
|
1746
|
+
onBlur: A,
|
|
1747
1747
|
onChange: b,
|
|
1748
1748
|
onClear: S,
|
|
1749
1749
|
onFocus: F,
|
|
1750
1750
|
onKeyDown: w,
|
|
1751
|
-
options:
|
|
1751
|
+
options: C,
|
|
1752
1752
|
popoverProps: {
|
|
1753
1753
|
append: x,
|
|
1754
1754
|
prepend: H,
|
|
1755
|
-
...
|
|
1755
|
+
...M
|
|
1756
1756
|
} = {},
|
|
1757
1757
|
readOnly: E,
|
|
1758
1758
|
required: W,
|
|
1759
1759
|
value: U,
|
|
1760
|
-
watermark:
|
|
1761
|
-
|
|
1760
|
+
watermark: J = !0,
|
|
1761
|
+
...$
|
|
1762
1762
|
}, _) => {
|
|
1763
1763
|
nt({
|
|
1764
1764
|
component: "IressCombobox",
|
|
1765
1765
|
defaultValue: l
|
|
1766
1766
|
});
|
|
1767
|
-
const D =
|
|
1767
|
+
const D = Oe({ id: d }), B = `${D}-sr-text`, O = fe(null), [P, q] = X(!1), { value: te, setValue: K, getLabelsString: Q, getValuesString: pe } = Jt({
|
|
1768
1768
|
component: "IressCombobox",
|
|
1769
1769
|
defaultValue: l,
|
|
1770
1770
|
value: U
|
|
1771
|
-
}), [
|
|
1771
|
+
}), [Y, ce] = X(""), [ve, ne] = X(Q()), { debouncedQuery: he, loading: ae, results: se, stopSearch: de } = Lt({
|
|
1772
1772
|
debounceThreshold: o,
|
|
1773
1773
|
initialOptions: u,
|
|
1774
|
-
options:
|
|
1775
|
-
query:
|
|
1776
|
-
}),
|
|
1774
|
+
options: C,
|
|
1775
|
+
query: Y
|
|
1776
|
+
}), De = Lr({
|
|
1777
1777
|
debouncedQuery: he,
|
|
1778
1778
|
loading: ae,
|
|
1779
1779
|
results: se
|
|
1780
|
-
}),
|
|
1780
|
+
}), je = vi({
|
|
1781
1781
|
autoSelect: t,
|
|
1782
1782
|
debouncedQuery: he,
|
|
1783
1783
|
debounceThreshold: o,
|
|
@@ -1791,23 +1791,23 @@ const $s = ({
|
|
|
1791
1791
|
return /* @__PURE__ */ a(Ze, { value: pe(), children: Q() });
|
|
1792
1792
|
const Ne = (I) => {
|
|
1793
1793
|
const N = I.target.value;
|
|
1794
|
-
ce(N), ne(N), N || (K(void 0), b == null || b(Ie(void 0), void 0), u &&
|
|
1795
|
-
},
|
|
1796
|
-
S == null || S(I), ce(""), ne(""), K(void 0),
|
|
1794
|
+
ce(N), ne(N), N || (K(void 0), b == null || b(Ie(void 0), void 0), u && q(!0));
|
|
1795
|
+
}, $e = (I) => {
|
|
1796
|
+
S == null || S(I), ce(""), ne(""), K(void 0), q(!1);
|
|
1797
1797
|
}, it = (I) => {
|
|
1798
|
-
F == null || F(I),
|
|
1798
|
+
F == null || F(I), Y || ce(ve);
|
|
1799
1799
|
}, zt = (I) => {
|
|
1800
|
-
|
|
1800
|
+
A == null || A(I), ne(te ? Q() : "");
|
|
1801
1801
|
}, Bt = (I) => {
|
|
1802
|
-
w == null || w(I),
|
|
1802
|
+
w == null || w(I), je.setKeyPressed(I.nativeEvent);
|
|
1803
1803
|
}, c = (I) => {
|
|
1804
1804
|
var k;
|
|
1805
1805
|
const N = (k = _e(I)) == null ? void 0 : k[0];
|
|
1806
|
-
K(N), b == null || b(Ie(N), N), ne(N == null ? void 0 : N.label),
|
|
1806
|
+
K(N), b == null || b(Ie(N), N), ne(N == null ? void 0 : N.label), q(!1);
|
|
1807
1807
|
}, h = () => {
|
|
1808
|
-
|
|
1808
|
+
q(!1), de();
|
|
1809
1809
|
}, v = (I) => {
|
|
1810
|
-
I !== null && (
|
|
1810
|
+
I !== null && (je.setKeyPressed(void 0), je.highlightQueryByActiveIndex(I));
|
|
1811
1811
|
};
|
|
1812
1812
|
return /* @__PURE__ */ L(
|
|
1813
1813
|
"div",
|
|
@@ -1818,11 +1818,11 @@ const $s = ({
|
|
|
1818
1818
|
/* @__PURE__ */ a(
|
|
1819
1819
|
Xt,
|
|
1820
1820
|
{
|
|
1821
|
-
...
|
|
1821
|
+
...M,
|
|
1822
1822
|
activator: /* @__PURE__ */ a(
|
|
1823
1823
|
Ge,
|
|
1824
1824
|
{
|
|
1825
|
-
|
|
1825
|
+
...$,
|
|
1826
1826
|
append: e,
|
|
1827
1827
|
autoComplete: s,
|
|
1828
1828
|
"aria-describedby": B,
|
|
@@ -1832,21 +1832,21 @@ const $s = ({
|
|
|
1832
1832
|
id: D,
|
|
1833
1833
|
onBlur: zt,
|
|
1834
1834
|
onChange: Ne,
|
|
1835
|
-
onClear:
|
|
1835
|
+
onClear: $e,
|
|
1836
1836
|
onFocus: it,
|
|
1837
1837
|
onKeyDown: Bt,
|
|
1838
1838
|
ref: O,
|
|
1839
1839
|
value: ve,
|
|
1840
|
-
watermark:
|
|
1840
|
+
watermark: J
|
|
1841
1841
|
}
|
|
1842
1842
|
),
|
|
1843
1843
|
className: V(r, rt.popover),
|
|
1844
1844
|
contentClassName: rt.popoverContent,
|
|
1845
|
-
minLength: u != null && u.length ? 0 :
|
|
1846
|
-
onActivated: () =>
|
|
1845
|
+
minLength: u != null && u.length ? 0 : $.minLength,
|
|
1846
|
+
onActivated: () => q(!0),
|
|
1847
1847
|
onDeactivated: h,
|
|
1848
1848
|
onNavigate: v,
|
|
1849
|
-
show:
|
|
1849
|
+
show: P,
|
|
1850
1850
|
type: "listbox",
|
|
1851
1851
|
"data-testid": T(n, "popover"),
|
|
1852
1852
|
children: /* @__PURE__ */ a(
|
|
@@ -1861,8 +1861,8 @@ const $s = ({
|
|
|
1861
1861
|
prepend: H,
|
|
1862
1862
|
items: se,
|
|
1863
1863
|
selected: te,
|
|
1864
|
-
showNoResults:
|
|
1865
|
-
showResults:
|
|
1864
|
+
showNoResults: De.showNoResults,
|
|
1865
|
+
showResults: De.showResults
|
|
1866
1866
|
}
|
|
1867
1867
|
)
|
|
1868
1868
|
}
|
|
@@ -1879,7 +1879,7 @@ const $s = ({
|
|
|
1879
1879
|
}
|
|
1880
1880
|
),
|
|
1881
1881
|
/* @__PURE__ */ a(
|
|
1882
|
-
|
|
1882
|
+
Vs,
|
|
1883
1883
|
{
|
|
1884
1884
|
"data-testid": T(n, "results-sr-text"),
|
|
1885
1885
|
id: B,
|
|
@@ -1893,10 +1893,10 @@ const $s = ({
|
|
|
1893
1893
|
);
|
|
1894
1894
|
}
|
|
1895
1895
|
);
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
const Jo = "ids-tag-
|
|
1896
|
+
Rs.displayName = "IressCombobox";
|
|
1897
|
+
Rs.DisplayMode = In;
|
|
1898
|
+
Rs.Width = xs;
|
|
1899
|
+
const Jo = "ids-tag-v5142", Zo = "ids-tag--content-v5142", Ys = {
|
|
1900
1900
|
tag: Jo,
|
|
1901
1901
|
content: Zo
|
|
1902
1902
|
}, qt = ({
|
|
@@ -1913,11 +1913,11 @@ const Jo = "ids-tag-v5140", Zo = "ids-tag--content-v5140", Ks = {
|
|
|
1913
1913
|
return /* @__PURE__ */ L(
|
|
1914
1914
|
"div",
|
|
1915
1915
|
{
|
|
1916
|
-
className: V(s, "iress-u-text",
|
|
1916
|
+
className: V(s, "iress-u-text", Ys.tag),
|
|
1917
1917
|
"data-testid": t,
|
|
1918
1918
|
...l,
|
|
1919
1919
|
children: [
|
|
1920
|
-
/* @__PURE__ */ a("span", { ref: f, className:
|
|
1920
|
+
/* @__PURE__ */ a("span", { ref: f, className: Ys.content, children: e }),
|
|
1921
1921
|
r ?? /* @__PURE__ */ a(
|
|
1922
1922
|
Ct,
|
|
1923
1923
|
{
|
|
@@ -1933,24 +1933,24 @@ const Jo = "ids-tag-v5140", Zo = "ids-tag--content-v5140", Ks = {
|
|
|
1933
1933
|
]
|
|
1934
1934
|
}
|
|
1935
1935
|
);
|
|
1936
|
-
}, Go = "ids-tag-list-input--input-
|
|
1936
|
+
}, Go = "ids-tag-list-input--input-v5142", ea = "ids-tag-list-input--readonly-v5142", ta = "ids-tag-list-input-v5142 ids-tag-list-input--input-v5142", sa = "ids-tag-list-input--tag-list-input__label-v5142", ra = "ids-tag-list-input--tag-list-input__items-v5142", na = "ids-tag-list-input--tag-list-input__items-inner-v5142", ia = "ids-tag-list-input--focus-v5142", oa = {
|
|
1937
1937
|
input: Go,
|
|
1938
1938
|
readonly: ea,
|
|
1939
|
-
"ids-field-group--join": "ids-field-group--join-
|
|
1940
|
-
"ids-field-group--fields": "ids-field-group--fields-
|
|
1941
|
-
"ids-field": "ids-field-
|
|
1939
|
+
"ids-field-group--join": "ids-field-group--join-v5142",
|
|
1940
|
+
"ids-field-group--fields": "ids-field-group--fields-v5142",
|
|
1941
|
+
"ids-field": "ids-field-v5142",
|
|
1942
1942
|
tagListInput: ta,
|
|
1943
|
-
"ids-input--addon": "ids-input--addon-
|
|
1944
|
-
"ids-clear-button--clear": "ids-clear-button--clear-
|
|
1943
|
+
"ids-input--addon": "ids-input--addon-v5142",
|
|
1944
|
+
"ids-clear-button--clear": "ids-clear-button--clear-v5142",
|
|
1945
1945
|
tagListInput__label: sa,
|
|
1946
1946
|
tagListInput__items: ra,
|
|
1947
|
-
"ids-input--watermark": "ids-input--watermark-
|
|
1948
|
-
"ids-inline": "ids-inline-
|
|
1949
|
-
"ids-input": "ids-input-
|
|
1947
|
+
"ids-input--watermark": "ids-input--watermark-v5142",
|
|
1948
|
+
"ids-inline": "ids-inline-v5142",
|
|
1949
|
+
"ids-input": "ids-input-v5142",
|
|
1950
1950
|
tagListInput__itemsInner: na,
|
|
1951
|
-
"iress-u-inline": "ids-tag-list-input--iress-u-inline-
|
|
1952
|
-
"ids-tag": "ids-tag-
|
|
1953
|
-
"pseudo-focus": "ids-tag-list-input--pseudo-focus-
|
|
1951
|
+
"iress-u-inline": "ids-tag-list-input--iress-u-inline-v5142",
|
|
1952
|
+
"ids-tag": "ids-tag-v5142",
|
|
1953
|
+
"pseudo-focus": "ids-tag-list-input--pseudo-focus-v5142",
|
|
1954
1954
|
focus: ia
|
|
1955
1955
|
}, et = ({
|
|
1956
1956
|
children: e,
|
|
@@ -1968,12 +1968,12 @@ const Jo = "ids-tag-v5140", Zo = "ids-tag--content-v5140", Ks = {
|
|
|
1968
1968
|
}, f = V(
|
|
1969
1969
|
s,
|
|
1970
1970
|
ht.Base,
|
|
1971
|
-
|
|
1971
|
+
Is(ht.Gutter, t, "none"),
|
|
1972
1972
|
l
|
|
1973
1973
|
);
|
|
1974
1974
|
return /* @__PURE__ */ a("div", { className: f, ...o, children: e });
|
|
1975
1975
|
};
|
|
1976
|
-
et.Gutter =
|
|
1976
|
+
et.Gutter = _s;
|
|
1977
1977
|
et.HorizontalAlign = vr;
|
|
1978
1978
|
et.VerticalAlign = gr;
|
|
1979
1979
|
const aa = ({
|
|
@@ -2009,7 +2009,7 @@ const aa = ({
|
|
|
2009
2009
|
n
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
|
-
),
|
|
2012
|
+
), Ls = ie(
|
|
2013
2013
|
({
|
|
2014
2014
|
append: e,
|
|
2015
2015
|
children: s,
|
|
@@ -2026,7 +2026,7 @@ const aa = ({
|
|
|
2026
2026
|
tagLimit: p = 5,
|
|
2027
2027
|
watermark: g,
|
|
2028
2028
|
...y
|
|
2029
|
-
},
|
|
2029
|
+
}, A) => {
|
|
2030
2030
|
const b = (S) => (u == null ? void 0 : u[S]) ?? oa[S];
|
|
2031
2031
|
return /* @__PURE__ */ a(
|
|
2032
2032
|
"div",
|
|
@@ -2072,7 +2072,7 @@ const aa = ({
|
|
|
2072
2072
|
className: b("tagListInput__element"),
|
|
2073
2073
|
autoComplete: "off",
|
|
2074
2074
|
"data-testid": T(r, "input"),
|
|
2075
|
-
ref:
|
|
2075
|
+
ref: A
|
|
2076
2076
|
}
|
|
2077
2077
|
)
|
|
2078
2078
|
] }) }),
|
|
@@ -2093,7 +2093,7 @@ const aa = ({
|
|
|
2093
2093
|
);
|
|
2094
2094
|
}
|
|
2095
2095
|
);
|
|
2096
|
-
|
|
2096
|
+
Ls.displayName = "TagListInput";
|
|
2097
2097
|
const la = ie(
|
|
2098
2098
|
({
|
|
2099
2099
|
append: e = /* @__PURE__ */ a(le, { name: "search" }),
|
|
@@ -2111,40 +2111,40 @@ const la = ie(
|
|
|
2111
2111
|
limitMobile: p = 6,
|
|
2112
2112
|
multiOptionTagLimit: g = 4,
|
|
2113
2113
|
name: y,
|
|
2114
|
-
noResultsText:
|
|
2114
|
+
noResultsText: A,
|
|
2115
2115
|
onChange: b,
|
|
2116
2116
|
onClear: S,
|
|
2117
2117
|
options: F,
|
|
2118
2118
|
popoverProps: {
|
|
2119
2119
|
autoHighlight: w = !1,
|
|
2120
|
-
append:
|
|
2120
|
+
append: C,
|
|
2121
2121
|
prepend: x,
|
|
2122
2122
|
...H
|
|
2123
2123
|
} = {},
|
|
2124
|
-
readOnly:
|
|
2124
|
+
readOnly: M,
|
|
2125
2125
|
required: E,
|
|
2126
2126
|
selectedOptionsTagText: W = "options selected",
|
|
2127
2127
|
type: U = "search",
|
|
2128
|
-
value:
|
|
2129
|
-
watermark:
|
|
2128
|
+
value: J,
|
|
2129
|
+
watermark: $ = !0,
|
|
2130
2130
|
..._
|
|
2131
2131
|
}, D) => {
|
|
2132
2132
|
nt({
|
|
2133
2133
|
component: "IressMultiCombobox",
|
|
2134
2134
|
defaultValue: l
|
|
2135
2135
|
});
|
|
2136
|
-
const B =
|
|
2136
|
+
const B = Oe({ id: d }), O = `${B}-sr-text`, [P, q] = X(!1), {
|
|
2137
2137
|
value: te,
|
|
2138
2138
|
setValue: K,
|
|
2139
2139
|
getValuesString: Q,
|
|
2140
2140
|
getLabelsArray: pe,
|
|
2141
|
-
getLabelsString:
|
|
2141
|
+
getLabelsString: Y
|
|
2142
2142
|
} = Jt({
|
|
2143
2143
|
component: "IressMultiCombobox",
|
|
2144
2144
|
defaultValue: l,
|
|
2145
2145
|
multiple: !0,
|
|
2146
|
-
value:
|
|
2147
|
-
}), [ce, ve] =
|
|
2146
|
+
value: J
|
|
2147
|
+
}), [ce, ve] = X(""), { debouncedQuery: ne, loading: he, results: ae, stopSearch: se } = Lt({
|
|
2148
2148
|
debounceThreshold: o,
|
|
2149
2149
|
initialOptions: u,
|
|
2150
2150
|
options: F,
|
|
@@ -2154,18 +2154,18 @@ const la = ie(
|
|
|
2154
2154
|
loading: he,
|
|
2155
2155
|
results: ae
|
|
2156
2156
|
});
|
|
2157
|
-
if (
|
|
2158
|
-
return /* @__PURE__ */ a(Ze, { value: Q(), children:
|
|
2159
|
-
const
|
|
2157
|
+
if (M)
|
|
2158
|
+
return /* @__PURE__ */ a(Ze, { value: Q(), children: Y(", ") });
|
|
2159
|
+
const De = (c) => {
|
|
2160
2160
|
ve(c.target.value);
|
|
2161
|
-
},
|
|
2161
|
+
}, je = (c) => {
|
|
2162
2162
|
S == null || S(c), ve(""), K([]);
|
|
2163
2163
|
}, Ne = (c) => {
|
|
2164
2164
|
if (!ce && c.key === "Backspace") {
|
|
2165
2165
|
const h = _e(te).slice(0, -1);
|
|
2166
2166
|
b == null || b(Ie(h), h), K(h);
|
|
2167
2167
|
}
|
|
2168
|
-
},
|
|
2168
|
+
}, $e = (c) => {
|
|
2169
2169
|
const h = [], v = _e(c).filter((I) => {
|
|
2170
2170
|
const N = I.value ?? I.label;
|
|
2171
2171
|
return h.includes(N) ? !1 : (h.push(N), !0);
|
|
@@ -2177,7 +2177,7 @@ const la = ie(
|
|
|
2177
2177
|
}, zt = () => {
|
|
2178
2178
|
b == null || b(Ie([]), []), K([]);
|
|
2179
2179
|
}, Bt = () => {
|
|
2180
|
-
|
|
2180
|
+
q(!1), se();
|
|
2181
2181
|
};
|
|
2182
2182
|
return /* @__PURE__ */ L(
|
|
2183
2183
|
"div",
|
|
@@ -2190,7 +2190,7 @@ const la = ie(
|
|
|
2190
2190
|
{
|
|
2191
2191
|
...H,
|
|
2192
2192
|
activator: /* @__PURE__ */ a(
|
|
2193
|
-
|
|
2193
|
+
Ls,
|
|
2194
2194
|
{
|
|
2195
2195
|
..._,
|
|
2196
2196
|
append: e,
|
|
@@ -2201,8 +2201,8 @@ const la = ie(
|
|
|
2201
2201
|
id: B,
|
|
2202
2202
|
loading: he,
|
|
2203
2203
|
minLength: u != null && u.length ? 0 : _.minLength,
|
|
2204
|
-
onChange:
|
|
2205
|
-
onClear:
|
|
2204
|
+
onChange: De,
|
|
2205
|
+
onClear: je,
|
|
2206
2206
|
onKeyDown: Ne,
|
|
2207
2207
|
onTagDelete: it,
|
|
2208
2208
|
onTagDeleteAll: zt,
|
|
@@ -2211,28 +2211,28 @@ const la = ie(
|
|
|
2211
2211
|
tags: pe(),
|
|
2212
2212
|
type: U,
|
|
2213
2213
|
value: ce,
|
|
2214
|
-
watermark:
|
|
2214
|
+
watermark: $
|
|
2215
2215
|
}
|
|
2216
2216
|
),
|
|
2217
2217
|
autoHighlight: w,
|
|
2218
2218
|
className: V(r, rt.input),
|
|
2219
2219
|
contentClassName: rt.popoverContent,
|
|
2220
|
-
onActivated: () =>
|
|
2220
|
+
onActivated: () => q(!0),
|
|
2221
2221
|
onDeactivated: Bt,
|
|
2222
|
-
show:
|
|
2222
|
+
show: P,
|
|
2223
2223
|
type: "listbox",
|
|
2224
2224
|
"data-testid": T(n, "popover"),
|
|
2225
2225
|
children: /* @__PURE__ */ a(
|
|
2226
2226
|
zr,
|
|
2227
2227
|
{
|
|
2228
|
-
append:
|
|
2228
|
+
append: C,
|
|
2229
2229
|
changeOnBlur: t,
|
|
2230
2230
|
dataTestId: n,
|
|
2231
2231
|
limitDesktop: m,
|
|
2232
2232
|
limitMobile: p,
|
|
2233
2233
|
multiSelect: !0,
|
|
2234
|
-
noResultsText:
|
|
2235
|
-
onChange:
|
|
2234
|
+
noResultsText: A,
|
|
2235
|
+
onChange: $e,
|
|
2236
2236
|
prepend: x,
|
|
2237
2237
|
items: ae,
|
|
2238
2238
|
selected: te,
|
|
@@ -2255,12 +2255,12 @@ const la = ie(
|
|
|
2255
2255
|
}
|
|
2256
2256
|
),
|
|
2257
2257
|
/* @__PURE__ */ a(
|
|
2258
|
-
|
|
2258
|
+
Vs,
|
|
2259
2259
|
{
|
|
2260
2260
|
"data-testid": T(n, "results-sr-text"),
|
|
2261
2261
|
id: O,
|
|
2262
2262
|
loading: he,
|
|
2263
|
-
noResultsText:
|
|
2263
|
+
noResultsText: A,
|
|
2264
2264
|
results: ae
|
|
2265
2265
|
}
|
|
2266
2266
|
)
|
|
@@ -2270,7 +2270,7 @@ const la = ie(
|
|
|
2270
2270
|
}
|
|
2271
2271
|
);
|
|
2272
2272
|
la.displayName = "IressMultiCombobox";
|
|
2273
|
-
const ca = "ids-filter-
|
|
2273
|
+
const ca = "ids-filter-v5142", da = "ids-filter--chevron-v5142", ua = "ids-filter--search-input-v5142", fa = "ids-filter--option-list-v5142", ma = "ids-filter--no-results-v5142", ha = "ids-filter--utils-with-reset-v5142", pa = "ids-filter--utils-searchable-v5142", va = "ids-filter--option-content-v5142", ga = "ids-filter--option-meta-v5142", ya = "ids-filter--option-meta-text-v5142", ba = "ids-filter--reset-v5142", ze = {
|
|
2274
2274
|
filter: ca,
|
|
2275
2275
|
chevron: da,
|
|
2276
2276
|
searchInput: ua,
|
|
@@ -2285,14 +2285,14 @@ const ca = "ids-filter-v5140", da = "ids-filter--chevron-v5140", ua = "ids-filte
|
|
|
2285
2285
|
}, Br = ie(
|
|
2286
2286
|
(e, s) => {
|
|
2287
2287
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt();
|
|
2288
|
-
return
|
|
2288
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
2289
2289
|
Ge,
|
|
2290
2290
|
{
|
|
2291
2291
|
...e,
|
|
2292
2292
|
...i,
|
|
2293
2293
|
autoCorrect: "off",
|
|
2294
|
-
className: V(
|
|
2295
|
-
[
|
|
2294
|
+
className: V(ze.searchInput, {
|
|
2295
|
+
[ze.isActiveInPopover]: r
|
|
2296
2296
|
}),
|
|
2297
2297
|
ref: (n) => {
|
|
2298
2298
|
var o, l;
|
|
@@ -2307,13 +2307,13 @@ Br.displayName = "FilterSearch";
|
|
|
2307
2307
|
const Er = ie(
|
|
2308
2308
|
(e, s) => {
|
|
2309
2309
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt();
|
|
2310
|
-
return
|
|
2310
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
2311
2311
|
Re,
|
|
2312
2312
|
{
|
|
2313
2313
|
...e,
|
|
2314
2314
|
...i,
|
|
2315
|
-
className: V(
|
|
2316
|
-
[
|
|
2315
|
+
className: V(ze.reset, {
|
|
2316
|
+
[ze.isActiveInPopover]: r
|
|
2317
2317
|
}),
|
|
2318
2318
|
mode: Re.Mode.Link,
|
|
2319
2319
|
ref: (n) => {
|
|
@@ -2325,7 +2325,7 @@ const Er = ie(
|
|
|
2325
2325
|
}
|
|
2326
2326
|
);
|
|
2327
2327
|
Er.displayName = "FilterResetButton";
|
|
2328
|
-
const
|
|
2328
|
+
const Xs = {
|
|
2329
2329
|
align: "bottom-start"
|
|
2330
2330
|
}, xa = ie(
|
|
2331
2331
|
({
|
|
@@ -2349,18 +2349,18 @@ const Ys = {
|
|
|
2349
2349
|
onReset: g,
|
|
2350
2350
|
options: y,
|
|
2351
2351
|
popoverProps: {
|
|
2352
|
-
append:
|
|
2352
|
+
append: A,
|
|
2353
2353
|
prepend: b,
|
|
2354
2354
|
...S
|
|
2355
|
-
} =
|
|
2355
|
+
} = Xs,
|
|
2356
2356
|
searchable: F,
|
|
2357
2357
|
searchNoResultsText: w,
|
|
2358
|
-
selectedOptionsText:
|
|
2358
|
+
selectedOptionsText: C,
|
|
2359
2359
|
value: x,
|
|
2360
2360
|
visibleResetButton: H,
|
|
2361
|
-
...
|
|
2361
|
+
...M
|
|
2362
2362
|
}, E) => {
|
|
2363
|
-
const W =
|
|
2363
|
+
const W = Oe({ id: n }), U = `${W}-sr-text`, J = fe(null), $ = Se(
|
|
2364
2364
|
() => F ?? typeof y == "function",
|
|
2365
2365
|
[y, F]
|
|
2366
2366
|
), _ = {
|
|
@@ -2368,51 +2368,51 @@ const Ys = {
|
|
|
2368
2368
|
prepend: /* @__PURE__ */ a(le, { name: "search" }),
|
|
2369
2369
|
watermark: !0,
|
|
2370
2370
|
...l
|
|
2371
|
-
}, D = { ...
|
|
2371
|
+
}, D = { ...Xs, ...S }, { value: B, setValue: O } = Jt({
|
|
2372
2372
|
component: "IressFilter",
|
|
2373
2373
|
defaultValue: i,
|
|
2374
2374
|
multiple: m,
|
|
2375
2375
|
value: x
|
|
2376
|
-
}), [
|
|
2377
|
-
|
|
2376
|
+
}), [P, q] = X(""), [te, K] = X(!1), Q = (se) => {
|
|
2377
|
+
q(se.target.value);
|
|
2378
2378
|
}, pe = () => {
|
|
2379
|
-
|
|
2380
|
-
},
|
|
2379
|
+
q("");
|
|
2380
|
+
}, Y = (se) => {
|
|
2381
2381
|
p == null || p(se), O(se), m || K(!1);
|
|
2382
2382
|
}, ce = () => {
|
|
2383
2383
|
O(void 0), g == null || g(), m || K(!1);
|
|
2384
2384
|
};
|
|
2385
|
-
|
|
2386
|
-
element:
|
|
2387
|
-
clearSearch: () =>
|
|
2385
|
+
Ee(E, () => ({
|
|
2386
|
+
element: J.current ?? void 0,
|
|
2387
|
+
clearSearch: () => q(""),
|
|
2388
2388
|
reset: () => O(i)
|
|
2389
2389
|
}));
|
|
2390
2390
|
const { debouncedQuery: ve, loading: ne, results: he } = Lt({
|
|
2391
2391
|
debounceThreshold: r,
|
|
2392
2392
|
initialOptions: o ?? (typeof y == "function" ? void 0 : y),
|
|
2393
2393
|
options: y,
|
|
2394
|
-
query:
|
|
2394
|
+
query: P
|
|
2395
2395
|
}), ae = ui({
|
|
2396
2396
|
debouncedQuery: ve,
|
|
2397
2397
|
loading: ne,
|
|
2398
2398
|
results: he,
|
|
2399
|
-
searchable:
|
|
2399
|
+
searchable: $,
|
|
2400
2400
|
visibleResetButton: H
|
|
2401
2401
|
});
|
|
2402
2402
|
return /* @__PURE__ */ L(
|
|
2403
2403
|
"div",
|
|
2404
2404
|
{
|
|
2405
|
-
...
|
|
2406
|
-
className: V(s,
|
|
2407
|
-
[
|
|
2408
|
-
[
|
|
2405
|
+
...M,
|
|
2406
|
+
className: V(s, ze.filter, {
|
|
2407
|
+
[ze.multiSelect]: m,
|
|
2408
|
+
[ze.searchable]: F
|
|
2409
2409
|
}),
|
|
2410
2410
|
"data-testid": t,
|
|
2411
2411
|
id: W,
|
|
2412
|
-
ref:
|
|
2412
|
+
ref: J,
|
|
2413
2413
|
children: [
|
|
2414
2414
|
/* @__PURE__ */ L(
|
|
2415
|
-
|
|
2415
|
+
Ns,
|
|
2416
2416
|
{
|
|
2417
2417
|
...D,
|
|
2418
2418
|
activator: /* @__PURE__ */ L(
|
|
@@ -2429,11 +2429,11 @@ const Ys = {
|
|
|
2429
2429
|
fi,
|
|
2430
2430
|
{
|
|
2431
2431
|
label: u,
|
|
2432
|
-
selectedOptionsText:
|
|
2432
|
+
selectedOptionsText: C,
|
|
2433
2433
|
value: B
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
|
-
/* @__PURE__ */ a("span", { className:
|
|
2436
|
+
/* @__PURE__ */ a("span", { className: ze.chevron })
|
|
2437
2437
|
]
|
|
2438
2438
|
}
|
|
2439
2439
|
),
|
|
@@ -2445,12 +2445,12 @@ const Ys = {
|
|
|
2445
2445
|
children: [
|
|
2446
2446
|
b,
|
|
2447
2447
|
ae.showHeader && /* @__PURE__ */ L(Je, { children: [
|
|
2448
|
-
/* @__PURE__ */ L(
|
|
2449
|
-
|
|
2448
|
+
/* @__PURE__ */ L($s, { background: "transparent", children: [
|
|
2449
|
+
$ && /* @__PURE__ */ a(
|
|
2450
2450
|
Br,
|
|
2451
2451
|
{
|
|
2452
2452
|
..._,
|
|
2453
|
-
className:
|
|
2453
|
+
className: ze.searchInput,
|
|
2454
2454
|
"data-testid": T(t, "input"),
|
|
2455
2455
|
loading: ne,
|
|
2456
2456
|
onChange: Q,
|
|
@@ -2466,36 +2466,36 @@ const Ys = {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
)
|
|
2468
2468
|
] }),
|
|
2469
|
-
/* @__PURE__ */ a(
|
|
2469
|
+
/* @__PURE__ */ a(ws, { gutter: "none" })
|
|
2470
2470
|
] }),
|
|
2471
2471
|
ae.showResults && /* @__PURE__ */ a(
|
|
2472
2472
|
xt,
|
|
2473
2473
|
{
|
|
2474
|
-
className:
|
|
2474
|
+
className: ze.optionList,
|
|
2475
2475
|
"data-testid": T(t, "menu"),
|
|
2476
2476
|
items: he,
|
|
2477
2477
|
limitDesktop: f,
|
|
2478
2478
|
limitMobile: d,
|
|
2479
2479
|
multiSelect: m,
|
|
2480
|
-
onChange:
|
|
2480
|
+
onChange: Y,
|
|
2481
2481
|
selected: B,
|
|
2482
2482
|
selectedFirst: m
|
|
2483
2483
|
}
|
|
2484
2484
|
),
|
|
2485
2485
|
ae.showNoResults && /* @__PURE__ */ a(
|
|
2486
|
-
|
|
2486
|
+
Ss,
|
|
2487
2487
|
{
|
|
2488
2488
|
noResultsText: w,
|
|
2489
|
-
styles:
|
|
2489
|
+
styles: ze
|
|
2490
2490
|
}
|
|
2491
2491
|
),
|
|
2492
|
-
|
|
2492
|
+
A
|
|
2493
2493
|
]
|
|
2494
2494
|
}
|
|
2495
2495
|
),
|
|
2496
2496
|
e,
|
|
2497
2497
|
/* @__PURE__ */ a(
|
|
2498
|
-
|
|
2498
|
+
Vs,
|
|
2499
2499
|
{
|
|
2500
2500
|
"data-testid": T(t, "results-sr-text"),
|
|
2501
2501
|
id: U,
|
|
@@ -2515,20 +2515,20 @@ const Or = (e) => typeof e == "object";
|
|
|
2515
2515
|
var me = (e) => !ke(e) && !Array.isArray(e) && Or(e) && !dt(e), Hr = (e) => me(e) && e.target ? Tt(e.target) ? e.target.checked : e.target.value : e, _a = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ur = (e, s) => e.has(_a(s)), Sa = (e) => {
|
|
2516
2516
|
const s = e.constructor && e.constructor.prototype;
|
|
2517
2517
|
return me(s) && s.hasOwnProperty("isPrototypeOf");
|
|
2518
|
-
},
|
|
2519
|
-
function
|
|
2518
|
+
}, Ds = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2519
|
+
function Ae(e) {
|
|
2520
2520
|
let s;
|
|
2521
2521
|
const t = Array.isArray(e);
|
|
2522
2522
|
if (e instanceof Date)
|
|
2523
2523
|
s = new Date(e);
|
|
2524
2524
|
else if (e instanceof Set)
|
|
2525
2525
|
s = new Set(e);
|
|
2526
|
-
else if (!(
|
|
2526
|
+
else if (!(Ds && (e instanceof Blob || e instanceof FileList)) && (t || me(e)))
|
|
2527
2527
|
if (s = t ? [] : {}, !t && !Sa(e))
|
|
2528
2528
|
s = e;
|
|
2529
2529
|
else
|
|
2530
2530
|
for (const r in e)
|
|
2531
|
-
e.hasOwnProperty(r) && (s[r] =
|
|
2531
|
+
e.hasOwnProperty(r) && (s[r] = Ae(e[r]));
|
|
2532
2532
|
else
|
|
2533
2533
|
return e;
|
|
2534
2534
|
return s;
|
|
@@ -2538,9 +2538,9 @@ var es = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ue = (e) => e === voi
|
|
|
2538
2538
|
return t;
|
|
2539
2539
|
const r = es(s.split(/[,[\].]+?/)).reduce((i, n) => ke(i) ? i : i[n], e);
|
|
2540
2540
|
return ue(r) || r === e ? ue(e[s]) ? t : e[s] : r;
|
|
2541
|
-
},
|
|
2541
|
+
}, Me = (e) => typeof e == "boolean", Ms = (e) => /^\w*$/.test(e), Wr = (e) => es(e.replace(/["|']|\]/g, "").split(/\.|\[/)), re = (e, s, t) => {
|
|
2542
2542
|
let r = -1;
|
|
2543
|
-
const i =
|
|
2543
|
+
const i = Ms(s) ? [s] : Wr(s), n = i.length, o = n - 1;
|
|
2544
2544
|
for (; ++r < n; ) {
|
|
2545
2545
|
const l = i[r];
|
|
2546
2546
|
let f = t;
|
|
@@ -2558,13 +2558,13 @@ const Pt = {
|
|
|
2558
2558
|
BLUR: "blur",
|
|
2559
2559
|
FOCUS_OUT: "focusout",
|
|
2560
2560
|
CHANGE: "change"
|
|
2561
|
-
},
|
|
2561
|
+
}, Be = {
|
|
2562
2562
|
onBlur: "onBlur",
|
|
2563
2563
|
onChange: "onChange",
|
|
2564
2564
|
onSubmit: "onSubmit",
|
|
2565
2565
|
onTouched: "onTouched",
|
|
2566
2566
|
all: "all"
|
|
2567
|
-
},
|
|
2567
|
+
}, Qe = {
|
|
2568
2568
|
max: "max",
|
|
2569
2569
|
min: "min",
|
|
2570
2570
|
maxLength: "maxLength",
|
|
@@ -2584,16 +2584,16 @@ var Pr = (e, s, t, r = !0) => {
|
|
|
2584
2584
|
Object.defineProperty(i, n, {
|
|
2585
2585
|
get: () => {
|
|
2586
2586
|
const o = n;
|
|
2587
|
-
return s._proxyFormState[o] !==
|
|
2587
|
+
return s._proxyFormState[o] !== Be.all && (s._proxyFormState[o] = !r || Be.all), t && (t[o] = !0), e[o];
|
|
2588
2588
|
}
|
|
2589
2589
|
});
|
|
2590
2590
|
return i;
|
|
2591
2591
|
}, Ve = (e) => me(e) && !Object.keys(e).length, jr = (e, s, t, r) => {
|
|
2592
2592
|
t(e);
|
|
2593
2593
|
const { name: i, ...n } = e;
|
|
2594
|
-
return Ve(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((o) => s[o] === (!r ||
|
|
2595
|
-
},
|
|
2596
|
-
function
|
|
2594
|
+
return Ve(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((o) => s[o] === (!r || Be.all));
|
|
2595
|
+
}, At = (e) => Array.isArray(e) ? e : [e], Qr = (e, s, t) => !e || !s || e === s || At(e).some((r) => r && (t ? r === s : r.startsWith(s) || s.startsWith(r)));
|
|
2596
|
+
function Cs(e) {
|
|
2597
2597
|
const s = G.useRef(e);
|
|
2598
2598
|
s.current = e, G.useEffect(() => {
|
|
2599
2599
|
const t = !e.disabled && s.current.subject && s.current.subject.subscribe({
|
|
@@ -2615,7 +2615,7 @@ function wa(e) {
|
|
|
2615
2615
|
isValid: !1,
|
|
2616
2616
|
errors: !1
|
|
2617
2617
|
}), u = G.useRef(i);
|
|
2618
|
-
return u.current = i,
|
|
2618
|
+
return u.current = i, Cs({
|
|
2619
2619
|
disabled: r,
|
|
2620
2620
|
next: (m) => f.current && Qr(u.current, m.name, n) && jr(m, d.current, t._updateFormState) && l({
|
|
2621
2621
|
...t._formState,
|
|
@@ -2626,14 +2626,14 @@ function wa(e) {
|
|
|
2626
2626
|
f.current = !1;
|
|
2627
2627
|
}), [t]), Pr(o, t, d.current, !1);
|
|
2628
2628
|
}
|
|
2629
|
-
var
|
|
2629
|
+
var qe = (e) => typeof e == "string", Kr = (e, s, t, r, i) => qe(e) ? (r && s.watch.add(e), R(t, e, i)) : Array.isArray(e) ? e.map((n) => (r && s.watch.add(n), R(t, n))) : (r && (s.watchAll = !0), t);
|
|
2630
2630
|
function Yr(e) {
|
|
2631
2631
|
const s = ts(), { control: t = s.control, name: r, defaultValue: i, disabled: n, exact: o } = e || {}, l = G.useRef(r);
|
|
2632
|
-
l.current = r,
|
|
2632
|
+
l.current = r, Cs({
|
|
2633
2633
|
disabled: n,
|
|
2634
2634
|
subject: t._subjects.values,
|
|
2635
2635
|
next: (u) => {
|
|
2636
|
-
Qr(l.current, u.name, o) && d(
|
|
2636
|
+
Qr(l.current, u.name, o) && d(Ae(Kr(l.current, t._names, u.values || t._formValues, !1, i)));
|
|
2637
2637
|
}
|
|
2638
2638
|
});
|
|
2639
2639
|
const [f, d] = G.useState(t._getWatch(r, i));
|
|
@@ -2652,7 +2652,7 @@ function Vu(e) {
|
|
|
2652
2652
|
}), d = G.useRef(i.register(t, {
|
|
2653
2653
|
...e.rules,
|
|
2654
2654
|
value: l,
|
|
2655
|
-
...
|
|
2655
|
+
...Me(e.disabled) ? { disabled: e.disabled } : {}
|
|
2656
2656
|
}));
|
|
2657
2657
|
return G.useEffect(() => {
|
|
2658
2658
|
const u = i._options.shouldUnregister || n, m = (p, g) => {
|
|
@@ -2660,7 +2660,7 @@ function Vu(e) {
|
|
|
2660
2660
|
y && y._f && (y._f.mount = g);
|
|
2661
2661
|
};
|
|
2662
2662
|
if (m(t, !0), u) {
|
|
2663
|
-
const p =
|
|
2663
|
+
const p = Ae(R(i._options.defaultValues, t));
|
|
2664
2664
|
re(i._defaultValues, t, p), ue(R(i._formValues, t)) && re(i._formValues, t, p);
|
|
2665
2665
|
}
|
|
2666
2666
|
return () => {
|
|
@@ -2677,7 +2677,7 @@ function Vu(e) {
|
|
|
2677
2677
|
field: {
|
|
2678
2678
|
name: t,
|
|
2679
2679
|
value: l,
|
|
2680
|
-
...
|
|
2680
|
+
...Me(r) || f.disabled ? { disabled: f.disabled || r } : {},
|
|
2681
2681
|
onChange: G.useCallback((u) => d.current.onChange({
|
|
2682
2682
|
target: {
|
|
2683
2683
|
value: Hr(u),
|
|
@@ -2733,13 +2733,13 @@ var Ia = (e, s, t, r, i) => s ? {
|
|
|
2733
2733
|
...t[e] && t[e].types ? t[e].types : {},
|
|
2734
2734
|
[r]: i || !0
|
|
2735
2735
|
}
|
|
2736
|
-
} : {},
|
|
2737
|
-
isOnSubmit: !e || e ===
|
|
2738
|
-
isOnBlur: e ===
|
|
2739
|
-
isOnChange: e ===
|
|
2740
|
-
isOnAll: e ===
|
|
2741
|
-
isOnTouch: e ===
|
|
2742
|
-
}),
|
|
2736
|
+
} : {}, Js = (e) => ({
|
|
2737
|
+
isOnSubmit: !e || e === Be.onSubmit,
|
|
2738
|
+
isOnBlur: e === Be.onBlur,
|
|
2739
|
+
isOnChange: e === Be.onChange,
|
|
2740
|
+
isOnAll: e === Be.all,
|
|
2741
|
+
isOnTouch: e === Be.onTouched
|
|
2742
|
+
}), Zs = (e, s, t) => !t && (s.watchAll || s.watch.has(e) || [...s.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
2743
2743
|
const Vt = (e, s, t, r) => {
|
|
2744
2744
|
for (const i of t || Object.keys(e)) {
|
|
2745
2745
|
const n = R(e, i);
|
|
@@ -2758,18 +2758,18 @@ const Vt = (e, s, t, r) => {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
var ka = (e, s, t) => {
|
|
2761
|
-
const r =
|
|
2761
|
+
const r = At(R(e, t));
|
|
2762
2762
|
return re(r, "root", s[t]), re(e, t, r), e;
|
|
2763
|
-
},
|
|
2764
|
-
if (!
|
|
2763
|
+
}, Ts = (e) => e.type === "file", Ye = (e) => typeof e == "function", jt = (e) => {
|
|
2764
|
+
if (!Ds)
|
|
2765
2765
|
return !1;
|
|
2766
2766
|
const s = e ? e.ownerDocument : 0;
|
|
2767
2767
|
return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
|
|
2768
|
-
}, Ot = (e) =>
|
|
2769
|
-
const
|
|
2768
|
+
}, Ot = (e) => qe(e), zs = (e) => e.type === "radio", Qt = (e) => e instanceof RegExp;
|
|
2769
|
+
const Gs = {
|
|
2770
2770
|
value: !1,
|
|
2771
2771
|
isValid: !1
|
|
2772
|
-
},
|
|
2772
|
+
}, er = { value: !0, isValid: !0 };
|
|
2773
2773
|
var Xr = (e) => {
|
|
2774
2774
|
if (Array.isArray(e)) {
|
|
2775
2775
|
if (e.length > 1) {
|
|
@@ -2778,21 +2778,21 @@ var Xr = (e) => {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
return e[0].checked && !e[0].disabled ? (
|
|
2780
2780
|
// @ts-expect-error expected to work in the browser
|
|
2781
|
-
e[0].attributes && !ue(e[0].attributes.value) ? ue(e[0].value) || e[0].value === "" ?
|
|
2782
|
-
) :
|
|
2781
|
+
e[0].attributes && !ue(e[0].attributes.value) ? ue(e[0].value) || e[0].value === "" ? er : { value: e[0].value, isValid: !0 } : er
|
|
2782
|
+
) : Gs;
|
|
2783
2783
|
}
|
|
2784
|
-
return
|
|
2784
|
+
return Gs;
|
|
2785
2785
|
};
|
|
2786
|
-
const
|
|
2786
|
+
const tr = {
|
|
2787
2787
|
isValid: !1,
|
|
2788
2788
|
value: null
|
|
2789
2789
|
};
|
|
2790
2790
|
var Jr = (e) => Array.isArray(e) ? e.reduce((s, t) => t && t.checked && !t.disabled ? {
|
|
2791
2791
|
isValid: !0,
|
|
2792
2792
|
value: t.value
|
|
2793
|
-
} : s,
|
|
2794
|
-
function
|
|
2795
|
-
if (Ot(e) || Array.isArray(e) && e.every(Ot) ||
|
|
2793
|
+
} : s, tr) : tr;
|
|
2794
|
+
function sr(e, s, t = "validate") {
|
|
2795
|
+
if (Ot(e) || Array.isArray(e) && e.every(Ot) || Me(e) && !e)
|
|
2796
2796
|
return {
|
|
2797
2797
|
type: t,
|
|
2798
2798
|
message: Ot(e) ? e : "",
|
|
@@ -2802,86 +2802,86 @@ function tr(e, s, t = "validate") {
|
|
|
2802
2802
|
var mt = (e) => me(e) && !Qt(e) ? e : {
|
|
2803
2803
|
value: e,
|
|
2804
2804
|
message: ""
|
|
2805
|
-
},
|
|
2806
|
-
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: g, name: y, valueAsNumber:
|
|
2805
|
+
}, rr = async (e, s, t, r, i) => {
|
|
2806
|
+
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: g, name: y, valueAsNumber: A, mount: b, disabled: S } = e._f, F = R(s, y);
|
|
2807
2807
|
if (!b || S)
|
|
2808
2808
|
return {};
|
|
2809
|
-
const w = o ? o[0] : n,
|
|
2810
|
-
r && w.reportValidity && (w.setCustomValidity(
|
|
2811
|
-
}, x = {}, H =
|
|
2812
|
-
const
|
|
2809
|
+
const w = o ? o[0] : n, C = ($) => {
|
|
2810
|
+
r && w.reportValidity && (w.setCustomValidity(Me($) ? "" : $ || ""), w.reportValidity());
|
|
2811
|
+
}, x = {}, H = zs(n), M = Tt(n), E = H || M, W = (A || Ts(n)) && ue(n.value) && ue(F) || jt(n) && n.value === "" || F === "" || Array.isArray(F) && !F.length, U = Ia.bind(null, y, t, x), J = ($, _, D, B = Qe.maxLength, O = Qe.minLength) => {
|
|
2812
|
+
const P = $ ? _ : D;
|
|
2813
2813
|
x[y] = {
|
|
2814
|
-
type:
|
|
2815
|
-
message:
|
|
2814
|
+
type: $ ? B : O,
|
|
2815
|
+
message: P,
|
|
2816
2816
|
ref: n,
|
|
2817
|
-
...U(
|
|
2817
|
+
...U($ ? B : O, P)
|
|
2818
2818
|
};
|
|
2819
2819
|
};
|
|
2820
|
-
if (i ? !Array.isArray(F) || !F.length : l && (!E && (W || ke(F)) ||
|
|
2821
|
-
const { value:
|
|
2822
|
-
if (
|
|
2823
|
-
type:
|
|
2820
|
+
if (i ? !Array.isArray(F) || !F.length : l && (!E && (W || ke(F)) || Me(F) && !F || M && !Xr(o).isValid || H && !Jr(o).isValid)) {
|
|
2821
|
+
const { value: $, message: _ } = Ot(l) ? { value: !!l, message: l } : mt(l);
|
|
2822
|
+
if ($ && (x[y] = {
|
|
2823
|
+
type: Qe.required,
|
|
2824
2824
|
message: _,
|
|
2825
2825
|
ref: w,
|
|
2826
|
-
...U(
|
|
2826
|
+
...U(Qe.required, _)
|
|
2827
2827
|
}, !t))
|
|
2828
|
-
return
|
|
2828
|
+
return C(_), x;
|
|
2829
2829
|
}
|
|
2830
2830
|
if (!W && (!ke(u) || !ke(m))) {
|
|
2831
|
-
let
|
|
2831
|
+
let $, _;
|
|
2832
2832
|
const D = mt(m), B = mt(u);
|
|
2833
2833
|
if (!ke(F) && !isNaN(F)) {
|
|
2834
2834
|
const O = n.valueAsNumber || F && +F;
|
|
2835
|
-
ke(D.value) || (
|
|
2835
|
+
ke(D.value) || ($ = O > D.value), ke(B.value) || (_ = O < B.value);
|
|
2836
2836
|
} else {
|
|
2837
|
-
const O = n.valueAsDate || new Date(F),
|
|
2838
|
-
|
|
2837
|
+
const O = n.valueAsDate || new Date(F), P = (K) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + K), q = n.type == "time", te = n.type == "week";
|
|
2838
|
+
qe(D.value) && F && ($ = q ? P(F) > P(D.value) : te ? F > D.value : O > new Date(D.value)), qe(B.value) && F && (_ = q ? P(F) < P(B.value) : te ? F < B.value : O < new Date(B.value));
|
|
2839
2839
|
}
|
|
2840
|
-
if ((
|
|
2841
|
-
return
|
|
2840
|
+
if (($ || _) && (J(!!$, D.message, B.message, Qe.max, Qe.min), !t))
|
|
2841
|
+
return C(x[y].message), x;
|
|
2842
2842
|
}
|
|
2843
|
-
if ((f || d) && !W && (
|
|
2844
|
-
const
|
|
2845
|
-
if ((D || B) && (
|
|
2846
|
-
return
|
|
2843
|
+
if ((f || d) && !W && (qe(F) || i && Array.isArray(F))) {
|
|
2844
|
+
const $ = mt(f), _ = mt(d), D = !ke($.value) && F.length > +$.value, B = !ke(_.value) && F.length < +_.value;
|
|
2845
|
+
if ((D || B) && (J(D, $.message, _.message), !t))
|
|
2846
|
+
return C(x[y].message), x;
|
|
2847
2847
|
}
|
|
2848
|
-
if (p && !W &&
|
|
2849
|
-
const { value:
|
|
2850
|
-
if (Qt(
|
|
2851
|
-
type:
|
|
2848
|
+
if (p && !W && qe(F)) {
|
|
2849
|
+
const { value: $, message: _ } = mt(p);
|
|
2850
|
+
if (Qt($) && !F.match($) && (x[y] = {
|
|
2851
|
+
type: Qe.pattern,
|
|
2852
2852
|
message: _,
|
|
2853
2853
|
ref: n,
|
|
2854
|
-
...U(
|
|
2854
|
+
...U(Qe.pattern, _)
|
|
2855
2855
|
}, !t))
|
|
2856
|
-
return
|
|
2856
|
+
return C(_), x;
|
|
2857
2857
|
}
|
|
2858
2858
|
if (g) {
|
|
2859
2859
|
if (Ye(g)) {
|
|
2860
|
-
const
|
|
2860
|
+
const $ = await g(F, s), _ = sr($, w);
|
|
2861
2861
|
if (_ && (x[y] = {
|
|
2862
2862
|
..._,
|
|
2863
|
-
...U(
|
|
2863
|
+
...U(Qe.validate, _.message)
|
|
2864
2864
|
}, !t))
|
|
2865
|
-
return
|
|
2865
|
+
return C(_.message), x;
|
|
2866
2866
|
} else if (me(g)) {
|
|
2867
|
-
let
|
|
2867
|
+
let $ = {};
|
|
2868
2868
|
for (const _ in g) {
|
|
2869
|
-
if (!Ve(
|
|
2869
|
+
if (!Ve($) && !t)
|
|
2870
2870
|
break;
|
|
2871
|
-
const D =
|
|
2872
|
-
D && (
|
|
2871
|
+
const D = sr(await g[_](F, s), w, _);
|
|
2872
|
+
D && ($ = {
|
|
2873
2873
|
...D,
|
|
2874
2874
|
...U(_, D.message)
|
|
2875
|
-
},
|
|
2875
|
+
}, C(D.message), t && (x[y] = $));
|
|
2876
2876
|
}
|
|
2877
|
-
if (!Ve(
|
|
2877
|
+
if (!Ve($) && (x[y] = {
|
|
2878
2878
|
ref: w,
|
|
2879
|
-
|
|
2879
|
+
...$
|
|
2880
2880
|
}, !t))
|
|
2881
2881
|
return x;
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
|
-
return
|
|
2884
|
+
return C(!0), x;
|
|
2885
2885
|
};
|
|
2886
2886
|
function Fa(e, s) {
|
|
2887
2887
|
const t = s.slice(0, -1).length;
|
|
@@ -2890,15 +2890,15 @@ function Fa(e, s) {
|
|
|
2890
2890
|
e = ue(e) ? r++ : e[s[r++]];
|
|
2891
2891
|
return e;
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function $a(e) {
|
|
2894
2894
|
for (const s in e)
|
|
2895
2895
|
if (e.hasOwnProperty(s) && !ue(e[s]))
|
|
2896
2896
|
return !1;
|
|
2897
2897
|
return !0;
|
|
2898
2898
|
}
|
|
2899
2899
|
function ge(e, s) {
|
|
2900
|
-
const t = Array.isArray(s) ? s :
|
|
2901
|
-
return r && delete r[n], i !== 0 && (me(r) && Ve(r) || Array.isArray(r) &&
|
|
2900
|
+
const t = Array.isArray(s) ? s : Ms(s) ? [s] : Wr(s), r = t.length === 1 ? e : Fa(e, t), i = t.length - 1, n = t[i];
|
|
2901
|
+
return r && delete r[n], i !== 0 && (me(r) && Ve(r) || Array.isArray(r) && $a(r)) && ge(e, t.slice(0, -1)), e;
|
|
2902
2902
|
}
|
|
2903
2903
|
var ds = () => {
|
|
2904
2904
|
let e = [];
|
|
@@ -2940,7 +2940,7 @@ function st(e, s) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
return !0;
|
|
2942
2942
|
}
|
|
2943
|
-
var Zr = (e) => e.type === "select-multiple",
|
|
2943
|
+
var Zr = (e) => e.type === "select-multiple", Aa = (e) => zs(e) || Tt(e), us = (e) => jt(e) && e.isConnected, Gr = (e) => {
|
|
2944
2944
|
for (const s in e)
|
|
2945
2945
|
if (Ye(e[s]))
|
|
2946
2946
|
return !0;
|
|
@@ -2960,11 +2960,11 @@ function en(e, s, t) {
|
|
|
2960
2960
|
Array.isArray(e[i]) || me(e[i]) && !Gr(e[i]) ? ue(s) || ps(t[i]) ? t[i] = Array.isArray(e[i]) ? Kt(e[i], []) : { ...Kt(e[i]) } : en(e[i], ke(s) ? {} : s[i], t[i]) : t[i] = !st(e[i], s[i]);
|
|
2961
2961
|
return t;
|
|
2962
2962
|
}
|
|
2963
|
-
var It = (e, s) => en(e, s, Kt(s)), tn = (e, { valueAsNumber: s, valueAsDate: t, setValueAs: r }) => ue(e) ? e : s ? e === "" ? NaN : e && +e : t &&
|
|
2963
|
+
var It = (e, s) => en(e, s, Kt(s)), tn = (e, { valueAsNumber: s, valueAsDate: t, setValueAs: r }) => ue(e) ? e : s ? e === "" ? NaN : e && +e : t && qe(e) ? new Date(e) : r ? r(e) : e;
|
|
2964
2964
|
function fs(e) {
|
|
2965
2965
|
const s = e.ref;
|
|
2966
2966
|
if (!(e.refs ? e.refs.every((t) => t.disabled) : s.disabled))
|
|
2967
|
-
return
|
|
2967
|
+
return Ts(s) ? s.files : zs(s) ? Jr(e.refs).value : Zr(s) ? [...s.selectedOptions].map(({ value: t }) => t) : Tt(s) ? Xr(e.refs).value : tn(ue(s.value) ? e.ref.value : s.value, e);
|
|
2968
2968
|
}
|
|
2969
2969
|
var Va = (e, s, t, r) => {
|
|
2970
2970
|
const i = {};
|
|
@@ -2979,11 +2979,11 @@ var Va = (e, s, t, r) => {
|
|
|
2979
2979
|
shouldUseNativeValidation: r
|
|
2980
2980
|
};
|
|
2981
2981
|
}, kt = (e) => ue(e) ? e : Qt(e) ? e.source : me(e) ? Qt(e.value) ? e.value.source : e.value : e;
|
|
2982
|
-
const
|
|
2983
|
-
var Ra = (e) => (!e || !e.validate) && !!(Ye(e.validate) && e.validate.constructor.name ===
|
|
2984
|
-
function
|
|
2982
|
+
const nr = "AsyncFunction";
|
|
2983
|
+
var Ra = (e) => (!e || !e.validate) && !!(Ye(e.validate) && e.validate.constructor.name === nr || me(e.validate) && Object.values(e.validate).find((s) => s.constructor.name === nr)), La = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
|
|
2984
|
+
function ir(e, s, t) {
|
|
2985
2985
|
const r = R(e, t);
|
|
2986
|
-
if (r ||
|
|
2986
|
+
if (r || Ms(t))
|
|
2987
2987
|
return {
|
|
2988
2988
|
error: r,
|
|
2989
2989
|
name: t
|
|
@@ -3006,8 +3006,8 @@ function nr(e, s, t) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
var Da = (e, s, t, r, i) => i.isOnAll ? !1 : !t && i.isOnTouch ? !(s || e) : (t ? r.isOnBlur : i.isOnBlur) ? !e : (t ? r.isOnChange : i.isOnChange) ? e : !0, Ma = (e, s) => !es(R(e, s)).length && ge(e, s);
|
|
3008
3008
|
const Ca = {
|
|
3009
|
-
mode:
|
|
3010
|
-
reValidateMode:
|
|
3009
|
+
mode: Be.onSubmit,
|
|
3010
|
+
reValidateMode: Be.onChange,
|
|
3011
3011
|
shouldFocusError: !0
|
|
3012
3012
|
};
|
|
3013
3013
|
function Ta(e = {}) {
|
|
@@ -3028,7 +3028,7 @@ function Ta(e = {}) {
|
|
|
3028
3028
|
validatingFields: {},
|
|
3029
3029
|
errors: s.errors || {},
|
|
3030
3030
|
disabled: s.disabled || !1
|
|
3031
|
-
}, r = {}, i = me(s.defaultValues) || me(s.values) ?
|
|
3031
|
+
}, r = {}, i = me(s.defaultValues) || me(s.values) ? Ae(s.defaultValues || s.values) || {} : {}, n = s.shouldUnregister ? {} : Ae(i), o = {
|
|
3032
3032
|
action: !1,
|
|
3033
3033
|
mount: !1,
|
|
3034
3034
|
watch: !1
|
|
@@ -3050,7 +3050,7 @@ function Ta(e = {}) {
|
|
|
3050
3050
|
values: ds(),
|
|
3051
3051
|
array: ds(),
|
|
3052
3052
|
state: ds()
|
|
3053
|
-
}, p =
|
|
3053
|
+
}, p = Js(s.mode), g = Js(s.reValidateMode), y = s.criteriaMode === Be.all, A = (c) => (h) => {
|
|
3054
3054
|
clearTimeout(d), d = setTimeout(c, h);
|
|
3055
3055
|
}, b = async (c) => {
|
|
3056
3056
|
if (!e.disabled && (u.isValid || c)) {
|
|
@@ -3082,7 +3082,7 @@ function Ta(e = {}) {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
u.dirtyFields && (t.dirtyFields = It(i, n)), m.state.next({
|
|
3084
3084
|
name: c,
|
|
3085
|
-
isDirty:
|
|
3085
|
+
isDirty: $(c, h),
|
|
3086
3086
|
dirtyFields: t.dirtyFields,
|
|
3087
3087
|
errors: t.errors,
|
|
3088
3088
|
isValid: t.isValid
|
|
@@ -3093,7 +3093,7 @@ function Ta(e = {}) {
|
|
|
3093
3093
|
re(t.errors, c, h), m.state.next({
|
|
3094
3094
|
errors: t.errors
|
|
3095
3095
|
});
|
|
3096
|
-
},
|
|
3096
|
+
}, C = (c) => {
|
|
3097
3097
|
t.errors = c, m.state.next({
|
|
3098
3098
|
errors: t.errors,
|
|
3099
3099
|
isValid: !1
|
|
@@ -3106,29 +3106,29 @@ function Ta(e = {}) {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
}, H = (c, h, v, I, N) => {
|
|
3108
3108
|
let k = !1, z = !1;
|
|
3109
|
-
const
|
|
3109
|
+
const j = {
|
|
3110
3110
|
name: c
|
|
3111
3111
|
};
|
|
3112
3112
|
if (!e.disabled) {
|
|
3113
3113
|
const ye = !!(R(r, c) && R(r, c)._f && R(r, c)._f.disabled);
|
|
3114
3114
|
if (!v || I) {
|
|
3115
|
-
u.isDirty && (z = t.isDirty, t.isDirty =
|
|
3115
|
+
u.isDirty && (z = t.isDirty, t.isDirty = j.isDirty = $(), k = z !== j.isDirty);
|
|
3116
3116
|
const be = ye || st(R(i, c), h);
|
|
3117
|
-
z = !!(!ye && R(t.dirtyFields, c)), be || ye ? ge(t.dirtyFields, c) : re(t.dirtyFields, c, !0),
|
|
3117
|
+
z = !!(!ye && R(t.dirtyFields, c)), be || ye ? ge(t.dirtyFields, c) : re(t.dirtyFields, c, !0), j.dirtyFields = t.dirtyFields, k = k || u.dirtyFields && z !== !be;
|
|
3118
3118
|
}
|
|
3119
3119
|
if (v) {
|
|
3120
3120
|
const be = R(t.touchedFields, c);
|
|
3121
|
-
be || (re(t.touchedFields, c, v),
|
|
3121
|
+
be || (re(t.touchedFields, c, v), j.touchedFields = t.touchedFields, k = k || u.touchedFields && be !== v);
|
|
3122
3122
|
}
|
|
3123
|
-
k && N && m.state.next(
|
|
3123
|
+
k && N && m.state.next(j);
|
|
3124
3124
|
}
|
|
3125
|
-
return k ?
|
|
3126
|
-
},
|
|
3127
|
-
const N = R(t.errors, c), k = u.isValid &&
|
|
3128
|
-
if (e.delayError && v ? (f =
|
|
3125
|
+
return k ? j : {};
|
|
3126
|
+
}, M = (c, h, v, I) => {
|
|
3127
|
+
const N = R(t.errors, c), k = u.isValid && Me(h) && t.isValid !== h;
|
|
3128
|
+
if (e.delayError && v ? (f = A(() => w(c, v)), f(e.delayError)) : (clearTimeout(d), f = null, v ? re(t.errors, c, v) : ge(t.errors, c)), (v ? !st(N, v) : N) || !Ve(I) || k) {
|
|
3129
3129
|
const z = {
|
|
3130
3130
|
...I,
|
|
3131
|
-
...k &&
|
|
3131
|
+
...k && Me(h) ? { isValid: h } : {},
|
|
3132
3132
|
errors: t.errors,
|
|
3133
3133
|
name: c
|
|
3134
3134
|
};
|
|
@@ -3159,31 +3159,31 @@ function Ta(e = {}) {
|
|
|
3159
3159
|
if (N) {
|
|
3160
3160
|
const { _f: k, ...z } = N;
|
|
3161
3161
|
if (k) {
|
|
3162
|
-
const
|
|
3162
|
+
const j = l.array.has(k.name), ye = N._f && Ra(N._f);
|
|
3163
3163
|
ye && u.validatingFields && S([I], !0);
|
|
3164
|
-
const be = await
|
|
3164
|
+
const be = await rr(N, n, y, s.shouldUseNativeValidation && !h, j);
|
|
3165
3165
|
if (ye && u.validatingFields && S([I]), be[k.name] && (v.valid = !1, h))
|
|
3166
3166
|
break;
|
|
3167
|
-
!h && (R(be, k.name) ?
|
|
3167
|
+
!h && (R(be, k.name) ? j ? ka(t.errors, be, k.name) : re(t.errors, k.name, be[k.name]) : ge(t.errors, k.name));
|
|
3168
3168
|
}
|
|
3169
3169
|
!Ve(z) && await U(z, h, v);
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
return v.valid;
|
|
3173
|
-
},
|
|
3173
|
+
}, J = () => {
|
|
3174
3174
|
for (const c of l.unMount) {
|
|
3175
3175
|
const h = R(r, c);
|
|
3176
3176
|
h && (h._f.refs ? h._f.refs.every((v) => !us(v)) : !us(h._f.ref)) && ne(c);
|
|
3177
3177
|
}
|
|
3178
3178
|
l.unMount = /* @__PURE__ */ new Set();
|
|
3179
|
-
},
|
|
3180
|
-
...o.mount ? n : ue(h) ? i :
|
|
3179
|
+
}, $ = (c, h) => !e.disabled && (c && h && re(n, c, h), !st(Q(), i)), _ = (c, h, v) => Kr(c, l, {
|
|
3180
|
+
...o.mount ? n : ue(h) ? i : qe(c) ? { [c]: h } : h
|
|
3181
3181
|
}, v, h), D = (c) => es(R(o.mount ? n : i, c, e.shouldUnregister ? R(i, c, []) : [])), B = (c, h, v = {}) => {
|
|
3182
3182
|
const I = R(r, c);
|
|
3183
3183
|
let N = h;
|
|
3184
3184
|
if (I) {
|
|
3185
3185
|
const k = I._f;
|
|
3186
|
-
k && (!k.disabled && re(n, c, tn(h, k)), N = jt(k.ref) && ke(h) ? "" : h, Zr(k.ref) ? [...k.ref.options].forEach((z) => z.selected = N.includes(z.value)) : k.refs ? Tt(k.ref) ? k.refs.length > 1 ? k.refs.forEach((z) => (!z.defaultChecked || !z.disabled) && (z.checked = Array.isArray(N) ? !!N.find((
|
|
3186
|
+
k && (!k.disabled && re(n, c, tn(h, k)), N = jt(k.ref) && ke(h) ? "" : h, Zr(k.ref) ? [...k.ref.options].forEach((z) => z.selected = N.includes(z.value)) : k.refs ? Tt(k.ref) ? k.refs.length > 1 ? k.refs.forEach((z) => (!z.defaultChecked || !z.disabled) && (z.checked = Array.isArray(N) ? !!N.find((j) => j === z.value) : N === z.value)) : k.refs[0] && (k.refs[0].checked = !!N) : k.refs.forEach((z) => z.checked = z.value === N) : Ts(k.ref) ? k.ref.value = "" : (k.ref.value = N, k.ref.type || m.values.next({
|
|
3187
3187
|
name: c,
|
|
3188
3188
|
values: { ...n }
|
|
3189
3189
|
})));
|
|
@@ -3194,29 +3194,29 @@ function Ta(e = {}) {
|
|
|
3194
3194
|
const N = h[I], k = `${c}.${I}`, z = R(r, k);
|
|
3195
3195
|
(l.array.has(c) || me(N) || z && !z._f) && !dt(N) ? O(k, N, v) : B(k, N, v);
|
|
3196
3196
|
}
|
|
3197
|
-
},
|
|
3198
|
-
const I = R(r, c), N = l.array.has(c), k =
|
|
3197
|
+
}, P = (c, h, v = {}) => {
|
|
3198
|
+
const I = R(r, c), N = l.array.has(c), k = Ae(h);
|
|
3199
3199
|
re(n, c, k), N ? (m.array.next({
|
|
3200
3200
|
name: c,
|
|
3201
3201
|
values: { ...n }
|
|
3202
3202
|
}), (u.isDirty || u.dirtyFields) && v.shouldDirty && m.state.next({
|
|
3203
3203
|
name: c,
|
|
3204
3204
|
dirtyFields: It(i, n),
|
|
3205
|
-
isDirty:
|
|
3206
|
-
})) : I && !I._f && !ke(k) ? O(c, k, v) : B(c, k, v),
|
|
3205
|
+
isDirty: $(c, k)
|
|
3206
|
+
})) : I && !I._f && !ke(k) ? O(c, k, v) : B(c, k, v), Zs(c, l) && m.state.next({ ...t }), m.values.next({
|
|
3207
3207
|
name: o.mount ? c : void 0,
|
|
3208
3208
|
values: { ...n }
|
|
3209
3209
|
});
|
|
3210
|
-
},
|
|
3210
|
+
}, q = async (c) => {
|
|
3211
3211
|
o.mount = !0;
|
|
3212
3212
|
const h = c.target;
|
|
3213
3213
|
let v = h.name, I = !0;
|
|
3214
|
-
const N = R(r, v), k = () => h.type ? fs(N._f) : Hr(c), z = (
|
|
3215
|
-
I = Number.isNaN(
|
|
3214
|
+
const N = R(r, v), k = () => h.type ? fs(N._f) : Hr(c), z = (j) => {
|
|
3215
|
+
I = Number.isNaN(j) || dt(j) && isNaN(j.getTime()) || st(j, R(n, v, j));
|
|
3216
3216
|
};
|
|
3217
3217
|
if (N) {
|
|
3218
|
-
let
|
|
3219
|
-
const be = k(), ot = c.type === Pt.BLUR || c.type === Pt.FOCUS_OUT, un = !La(N._f) && !s.resolver && !R(t.errors, v) && !N._f.deps || Da(ot, R(t.touchedFields, v), t.isSubmitted, g, p), rs =
|
|
3218
|
+
let j, ye;
|
|
3219
|
+
const be = k(), ot = c.type === Pt.BLUR || c.type === Pt.FOCUS_OUT, un = !La(N._f) && !s.resolver && !R(t.errors, v) && !N._f.deps || Da(ot, R(t.touchedFields, v), t.isSubmitted, g, p), rs = Zs(v, l, ot);
|
|
3220
3220
|
re(n, v, be), ot ? (N._f.onBlur && N._f.onBlur(c), f && f(0)) : N._f.onChange && N._f.onChange(c);
|
|
3221
3221
|
const ns = H(v, be, ot, !1), fn = !Ve(ns) || rs;
|
|
3222
3222
|
if (!ot && m.values.next({
|
|
@@ -3226,21 +3226,21 @@ function Ta(e = {}) {
|
|
|
3226
3226
|
}), un)
|
|
3227
3227
|
return u.isValid && (e.mode === "onBlur" ? ot && b() : b()), fn && m.state.next({ name: v, ...rs ? {} : ns });
|
|
3228
3228
|
if (!ot && rs && m.state.next({ ...t }), s.resolver) {
|
|
3229
|
-
const { errors:
|
|
3229
|
+
const { errors: Es } = await E([v]);
|
|
3230
3230
|
if (z(be), I) {
|
|
3231
|
-
const mn =
|
|
3232
|
-
|
|
3231
|
+
const mn = ir(t.errors, r, v), Os = ir(Es, r, mn.name || v);
|
|
3232
|
+
j = Os.error, v = Os.name, ye = Ve(Es);
|
|
3233
3233
|
}
|
|
3234
3234
|
} else
|
|
3235
|
-
S([v], !0),
|
|
3236
|
-
I && (N._f.deps && K(N._f.deps),
|
|
3235
|
+
S([v], !0), j = (await rr(N, n, y, s.shouldUseNativeValidation))[v], S([v]), z(be), I && (j ? ye = !1 : u.isValid && (ye = await U(r, !0)));
|
|
3236
|
+
I && (N._f.deps && K(N._f.deps), M(v, ye, j, ns));
|
|
3237
3237
|
}
|
|
3238
3238
|
}, te = (c, h) => {
|
|
3239
3239
|
if (R(t.errors, h) && c.focus)
|
|
3240
3240
|
return c.focus(), 1;
|
|
3241
3241
|
}, K = async (c, h = {}) => {
|
|
3242
3242
|
let v, I;
|
|
3243
|
-
const N =
|
|
3243
|
+
const N = At(c);
|
|
3244
3244
|
if (s.resolver) {
|
|
3245
3245
|
const k = await W(ue(c) ? c : N);
|
|
3246
3246
|
v = Ve(k), I = c ? !N.some((z) => R(k, z)) : v;
|
|
@@ -3249,7 +3249,7 @@ function Ta(e = {}) {
|
|
|
3249
3249
|
return await U(z && z._f ? { [k]: z } : z);
|
|
3250
3250
|
}))).every(Boolean), !(!I && !t.isValid) && b()) : I = v = await U(r);
|
|
3251
3251
|
return m.state.next({
|
|
3252
|
-
...!
|
|
3252
|
+
...!qe(c) || u.isValid && v !== t.isValid ? {} : { name: c },
|
|
3253
3253
|
...s.resolver || !c ? { isValid: v } : {},
|
|
3254
3254
|
errors: t.errors
|
|
3255
3255
|
}), h.shouldFocus && !I && Vt(r, te, c ? N : l.mount), I;
|
|
@@ -3257,19 +3257,19 @@ function Ta(e = {}) {
|
|
|
3257
3257
|
const h = {
|
|
3258
3258
|
...o.mount ? n : i
|
|
3259
3259
|
};
|
|
3260
|
-
return ue(c) ? h :
|
|
3260
|
+
return ue(c) ? h : qe(c) ? R(h, c) : c.map((v) => R(h, v));
|
|
3261
3261
|
}, pe = (c, h) => ({
|
|
3262
3262
|
invalid: !!R((h || t).errors, c),
|
|
3263
3263
|
isDirty: !!R((h || t).dirtyFields, c),
|
|
3264
3264
|
error: R((h || t).errors, c),
|
|
3265
3265
|
isValidating: !!R(t.validatingFields, c),
|
|
3266
3266
|
isTouched: !!R((h || t).touchedFields, c)
|
|
3267
|
-
}),
|
|
3268
|
-
c &&
|
|
3267
|
+
}), Y = (c) => {
|
|
3268
|
+
c && At(c).forEach((h) => ge(t.errors, h)), m.state.next({
|
|
3269
3269
|
errors: c ? t.errors : {}
|
|
3270
3270
|
});
|
|
3271
3271
|
}, ce = (c, h, v) => {
|
|
3272
|
-
const I = (R(r, c, { _f: {} })._f || {}).ref, N = R(t.errors, c) || {}, { ref: k, message: z, type:
|
|
3272
|
+
const I = (R(r, c, { _f: {} })._f || {}).ref, N = R(t.errors, c) || {}, { ref: k, message: z, type: j, ...ye } = N;
|
|
3273
3273
|
re(t.errors, c, {
|
|
3274
3274
|
...ye,
|
|
3275
3275
|
...h,
|
|
@@ -3282,22 +3282,22 @@ function Ta(e = {}) {
|
|
|
3282
3282
|
}, ve = (c, h) => Ye(c) ? m.values.subscribe({
|
|
3283
3283
|
next: (v) => c(_(void 0, h), v)
|
|
3284
3284
|
}) : _(c, h, !0), ne = (c, h = {}) => {
|
|
3285
|
-
for (const v of c ?
|
|
3285
|
+
for (const v of c ? At(c) : l.mount)
|
|
3286
3286
|
l.mount.delete(v), l.array.delete(v), h.keepValue || (ge(r, v), ge(n, v)), !h.keepError && ge(t.errors, v), !h.keepDirty && ge(t.dirtyFields, v), !h.keepTouched && ge(t.touchedFields, v), !h.keepIsValidating && ge(t.validatingFields, v), !s.shouldUnregister && !h.keepDefaultValue && ge(i, v);
|
|
3287
3287
|
m.values.next({
|
|
3288
3288
|
values: { ...n }
|
|
3289
3289
|
}), m.state.next({
|
|
3290
3290
|
...t,
|
|
3291
|
-
...h.keepDirty ? { isDirty:
|
|
3291
|
+
...h.keepDirty ? { isDirty: $() } : {}
|
|
3292
3292
|
}), !h.keepIsValid && b();
|
|
3293
3293
|
}, he = ({ disabled: c, name: h, field: v, fields: I, value: N }) => {
|
|
3294
|
-
if (
|
|
3294
|
+
if (Me(c) && o.mount || c) {
|
|
3295
3295
|
const k = c ? void 0 : ue(N) ? fs(v ? v._f : R(I, h)._f) : N;
|
|
3296
3296
|
re(n, h, k), H(h, k, !1, !1, !0);
|
|
3297
3297
|
}
|
|
3298
3298
|
}, ae = (c, h = {}) => {
|
|
3299
3299
|
let v = R(r, c);
|
|
3300
|
-
const I =
|
|
3300
|
+
const I = Me(h.disabled) || Me(e.disabled);
|
|
3301
3301
|
return re(r, c, {
|
|
3302
3302
|
...v || {},
|
|
3303
3303
|
_f: {
|
|
@@ -3308,7 +3308,7 @@ function Ta(e = {}) {
|
|
|
3308
3308
|
}
|
|
3309
3309
|
}), l.mount.add(c), v ? he({
|
|
3310
3310
|
field: v,
|
|
3311
|
-
disabled:
|
|
3311
|
+
disabled: Me(h.disabled) ? h.disabled : e.disabled,
|
|
3312
3312
|
name: c,
|
|
3313
3313
|
value: h.value
|
|
3314
3314
|
}) : x(c, !0, h.value), {
|
|
@@ -3322,20 +3322,20 @@ function Ta(e = {}) {
|
|
|
3322
3322
|
pattern: kt(h.pattern)
|
|
3323
3323
|
} : {},
|
|
3324
3324
|
name: c,
|
|
3325
|
-
onChange:
|
|
3326
|
-
onBlur:
|
|
3325
|
+
onChange: q,
|
|
3326
|
+
onBlur: q,
|
|
3327
3327
|
ref: (N) => {
|
|
3328
3328
|
if (N) {
|
|
3329
3329
|
ae(c, h), v = R(r, c);
|
|
3330
|
-
const k = ue(N.value) && N.querySelectorAll && N.querySelectorAll("input,select,textarea")[0] || N, z =
|
|
3331
|
-
if (z ?
|
|
3330
|
+
const k = ue(N.value) && N.querySelectorAll && N.querySelectorAll("input,select,textarea")[0] || N, z = Aa(k), j = v._f.refs || [];
|
|
3331
|
+
if (z ? j.find((ye) => ye === k) : k === v._f.ref)
|
|
3332
3332
|
return;
|
|
3333
3333
|
re(r, c, {
|
|
3334
3334
|
_f: {
|
|
3335
3335
|
...v._f,
|
|
3336
3336
|
...z ? {
|
|
3337
3337
|
refs: [
|
|
3338
|
-
...
|
|
3338
|
+
...j.filter(us),
|
|
3339
3339
|
k,
|
|
3340
3340
|
...Array.isArray(R(i, c)) ? [{}] : []
|
|
3341
3341
|
],
|
|
@@ -3348,16 +3348,16 @@ function Ta(e = {}) {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
};
|
|
3350
3350
|
}, se = () => s.shouldFocusError && Vt(r, te, l.mount), de = (c) => {
|
|
3351
|
-
|
|
3351
|
+
Me(c) && (m.state.next({ disabled: c }), Vt(r, (h, v) => {
|
|
3352
3352
|
const I = R(r, v);
|
|
3353
3353
|
I && (h.disabled = I._f.disabled || c, Array.isArray(I._f.refs) && I._f.refs.forEach((N) => {
|
|
3354
3354
|
N.disabled = I._f.disabled || c;
|
|
3355
3355
|
}));
|
|
3356
3356
|
}, 0, !1));
|
|
3357
|
-
},
|
|
3357
|
+
}, De = (c, h) => async (v) => {
|
|
3358
3358
|
let I;
|
|
3359
3359
|
v && (v.preventDefault && v.preventDefault(), v.persist && v.persist());
|
|
3360
|
-
let N =
|
|
3360
|
+
let N = Ae(n);
|
|
3361
3361
|
if (m.state.next({
|
|
3362
3362
|
isSubmitting: !0
|
|
3363
3363
|
}), s.resolver) {
|
|
@@ -3384,24 +3384,24 @@ function Ta(e = {}) {
|
|
|
3384
3384
|
errors: t.errors
|
|
3385
3385
|
}), I)
|
|
3386
3386
|
throw I;
|
|
3387
|
-
},
|
|
3388
|
-
R(r, c) && (ue(h.defaultValue) ?
|
|
3387
|
+
}, je = (c, h = {}) => {
|
|
3388
|
+
R(r, c) && (ue(h.defaultValue) ? P(c, Ae(R(i, c))) : (P(c, h.defaultValue), re(i, c, Ae(h.defaultValue))), h.keepTouched || ge(t.touchedFields, c), h.keepDirty || (ge(t.dirtyFields, c), t.isDirty = h.defaultValue ? $(c, Ae(R(i, c))) : $()), h.keepError || (ge(t.errors, c), u.isValid && b()), m.state.next({ ...t }));
|
|
3389
3389
|
}, Ne = (c, h = {}) => {
|
|
3390
|
-
const v = c ?
|
|
3390
|
+
const v = c ? Ae(c) : i, I = Ae(v), N = Ve(c), k = N ? i : I;
|
|
3391
3391
|
if (h.keepDefaultValues || (i = v), !h.keepValues) {
|
|
3392
3392
|
if (h.keepDirtyValues) {
|
|
3393
3393
|
const z = /* @__PURE__ */ new Set([
|
|
3394
3394
|
...l.mount,
|
|
3395
3395
|
...Object.keys(It(i, n))
|
|
3396
3396
|
]);
|
|
3397
|
-
for (const
|
|
3398
|
-
R(t.dirtyFields,
|
|
3397
|
+
for (const j of Array.from(z))
|
|
3398
|
+
R(t.dirtyFields, j) ? re(k, j, R(n, j)) : P(j, R(k, j));
|
|
3399
3399
|
} else {
|
|
3400
|
-
if (
|
|
3400
|
+
if (Ds && ue(c))
|
|
3401
3401
|
for (const z of l.mount) {
|
|
3402
|
-
const
|
|
3403
|
-
if (
|
|
3404
|
-
const ye = Array.isArray(
|
|
3402
|
+
const j = R(r, z);
|
|
3403
|
+
if (j && j._f) {
|
|
3404
|
+
const ye = Array.isArray(j._f.refs) ? j._f.refs[0] : j._f.ref;
|
|
3405
3405
|
if (jt(ye)) {
|
|
3406
3406
|
const be = ye.closest("form");
|
|
3407
3407
|
if (be) {
|
|
@@ -3413,7 +3413,7 @@ function Ta(e = {}) {
|
|
|
3413
3413
|
}
|
|
3414
3414
|
r = {};
|
|
3415
3415
|
}
|
|
3416
|
-
n = e.shouldUnregister ? h.keepDefaultValues ?
|
|
3416
|
+
n = e.shouldUnregister ? h.keepDefaultValues ? Ae(i) : {} : Ae(k), m.array.next({
|
|
3417
3417
|
values: { ...k }
|
|
3418
3418
|
}), m.values.next({
|
|
3419
3419
|
values: { ...k }
|
|
@@ -3436,25 +3436,25 @@ function Ta(e = {}) {
|
|
|
3436
3436
|
isSubmitSuccessful: h.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
3437
3437
|
isSubmitting: !1
|
|
3438
3438
|
});
|
|
3439
|
-
},
|
|
3439
|
+
}, $e = (c, h) => Ne(Ye(c) ? c(n) : c, h);
|
|
3440
3440
|
return {
|
|
3441
3441
|
control: {
|
|
3442
3442
|
register: ae,
|
|
3443
3443
|
unregister: ne,
|
|
3444
3444
|
getFieldState: pe,
|
|
3445
|
-
handleSubmit:
|
|
3445
|
+
handleSubmit: De,
|
|
3446
3446
|
setError: ce,
|
|
3447
3447
|
_executeSchema: E,
|
|
3448
3448
|
_getWatch: _,
|
|
3449
|
-
_getDirty:
|
|
3449
|
+
_getDirty: $,
|
|
3450
3450
|
_updateValid: b,
|
|
3451
|
-
_removeUnmounted:
|
|
3451
|
+
_removeUnmounted: J,
|
|
3452
3452
|
_updateFieldArray: F,
|
|
3453
3453
|
_updateDisabledField: he,
|
|
3454
3454
|
_getFieldArray: D,
|
|
3455
3455
|
_reset: Ne,
|
|
3456
3456
|
_resetDefaultValues: () => Ye(s.defaultValues) && s.defaultValues().then((c) => {
|
|
3457
|
-
|
|
3457
|
+
$e(c, s.resetOptions), m.state.next({
|
|
3458
3458
|
isLoading: !1
|
|
3459
3459
|
});
|
|
3460
3460
|
}),
|
|
@@ -3467,7 +3467,7 @@ function Ta(e = {}) {
|
|
|
3467
3467
|
_disableForm: de,
|
|
3468
3468
|
_subjects: m,
|
|
3469
3469
|
_proxyFormState: u,
|
|
3470
|
-
_setErrors:
|
|
3470
|
+
_setErrors: C,
|
|
3471
3471
|
get _fields() {
|
|
3472
3472
|
return r;
|
|
3473
3473
|
},
|
|
@@ -3507,13 +3507,13 @@ function Ta(e = {}) {
|
|
|
3507
3507
|
},
|
|
3508
3508
|
trigger: K,
|
|
3509
3509
|
register: ae,
|
|
3510
|
-
handleSubmit:
|
|
3510
|
+
handleSubmit: De,
|
|
3511
3511
|
watch: ve,
|
|
3512
|
-
setValue:
|
|
3512
|
+
setValue: P,
|
|
3513
3513
|
getValues: Q,
|
|
3514
|
-
reset:
|
|
3515
|
-
resetField:
|
|
3516
|
-
clearErrors:
|
|
3514
|
+
reset: $e,
|
|
3515
|
+
resetField: je,
|
|
3516
|
+
clearErrors: Y,
|
|
3517
3517
|
unregister: ne,
|
|
3518
3518
|
setError: ce,
|
|
3519
3519
|
setFocus: (c, h = {}) => {
|
|
@@ -3548,7 +3548,7 @@ function sn(e = {}) {
|
|
|
3548
3548
|
formState: r
|
|
3549
3549
|
});
|
|
3550
3550
|
const n = s.current.control;
|
|
3551
|
-
return n._options = e,
|
|
3551
|
+
return n._options = e, Cs({
|
|
3552
3552
|
subject: n._subjects.state,
|
|
3553
3553
|
next: (o) => {
|
|
3554
3554
|
jr(o, n._proxyFormState, n._updateFormState, !0) && i({ ...n._formState });
|
|
@@ -3574,7 +3574,7 @@ function sn(e = {}) {
|
|
|
3574
3574
|
s.current && (s.current.watch = s.current.watch.bind({}));
|
|
3575
3575
|
}, [r]), s.current.formState = Pr(r, n), s.current;
|
|
3576
3576
|
}
|
|
3577
|
-
const za = "ids-form--alert-
|
|
3577
|
+
const za = "ids-form--alert-v5142", Ba = {
|
|
3578
3578
|
alert: za
|
|
3579
3579
|
}, Ea = ({
|
|
3580
3580
|
alert: e,
|
|
@@ -3591,7 +3591,7 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3591
3591
|
onError: m,
|
|
3592
3592
|
...p
|
|
3593
3593
|
}, g) => {
|
|
3594
|
-
const y =
|
|
3594
|
+
const y = Oe({ id: p.id }), [A, b] = X({}), { handleSubmit: S, reset: F, formState: w } = o, { errors: C, isValid: x } = w, M = !!Object.values(C).length && !f, E = M || e, W = Fe(
|
|
3595
3595
|
(_) => {
|
|
3596
3596
|
S((D) => {
|
|
3597
3597
|
d == null || d(D);
|
|
@@ -3600,35 +3600,35 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3600
3600
|
[S, m, d]
|
|
3601
3601
|
), U = Fe(
|
|
3602
3602
|
(_, D) => {
|
|
3603
|
-
D ===
|
|
3603
|
+
D === A[_] || !D && !A[_] || b(
|
|
3604
3604
|
() => [...o.control._names.mount.values()].reduce(
|
|
3605
3605
|
(B, O) => ({
|
|
3606
3606
|
...B,
|
|
3607
|
-
[O]: O === _ ? D :
|
|
3607
|
+
[O]: O === _ ? D : A[O]
|
|
3608
3608
|
}),
|
|
3609
3609
|
{}
|
|
3610
3610
|
)
|
|
3611
3611
|
);
|
|
3612
3612
|
},
|
|
3613
|
-
[
|
|
3614
|
-
),
|
|
3615
|
-
|
|
3616
|
-
element: (
|
|
3613
|
+
[A, o.control._names.mount]
|
|
3614
|
+
), J = fe(null);
|
|
3615
|
+
Ee(g, () => ({
|
|
3616
|
+
element: (J == null ? void 0 : J.current) ?? void 0,
|
|
3617
3617
|
api: o,
|
|
3618
3618
|
submit: () => W(),
|
|
3619
3619
|
reset: (_) => F(_)
|
|
3620
3620
|
})), ee(() => {
|
|
3621
3621
|
u == null || u(x);
|
|
3622
3622
|
}, [x, u]);
|
|
3623
|
-
const
|
|
3623
|
+
const $ = Se(
|
|
3624
3624
|
() => ({
|
|
3625
3625
|
id: y,
|
|
3626
|
-
errorMessages:
|
|
3626
|
+
errorMessages: A,
|
|
3627
3627
|
setErrorMessage: U
|
|
3628
3628
|
}),
|
|
3629
|
-
[
|
|
3629
|
+
[A, y, U]
|
|
3630
3630
|
);
|
|
3631
|
-
return /* @__PURE__ */ a(Cn.Provider, { value:
|
|
3631
|
+
return /* @__PURE__ */ a(Cn.Provider, { value: $, children: /* @__PURE__ */ a(Na, { ...o, children: /* @__PURE__ */ L(
|
|
3632
3632
|
"form",
|
|
3633
3633
|
{
|
|
3634
3634
|
...p,
|
|
@@ -3636,7 +3636,7 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3636
3636
|
onSubmit: W,
|
|
3637
3637
|
noValidate: !0,
|
|
3638
3638
|
"data-testid": t,
|
|
3639
|
-
ref:
|
|
3639
|
+
ref: J,
|
|
3640
3640
|
className: V(
|
|
3641
3641
|
p.className,
|
|
3642
3642
|
"iress-u-stack",
|
|
@@ -3653,7 +3653,7 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3653
3653
|
[Z.Hidden]: !E
|
|
3654
3654
|
}),
|
|
3655
3655
|
children: [
|
|
3656
|
-
|
|
3656
|
+
M ? /* @__PURE__ */ a(
|
|
3657
3657
|
Dt,
|
|
3658
3658
|
{
|
|
3659
3659
|
status: "danger",
|
|
@@ -3676,7 +3676,7 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3676
3676
|
"div",
|
|
3677
3677
|
{
|
|
3678
3678
|
className: V({
|
|
3679
|
-
[Z.IgnoreStack]: !
|
|
3679
|
+
[Z.IgnoreStack]: !M
|
|
3680
3680
|
}),
|
|
3681
3681
|
children: s
|
|
3682
3682
|
}
|
|
@@ -3700,7 +3700,7 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3700
3700
|
values: p,
|
|
3701
3701
|
...g
|
|
3702
3702
|
}, y) => {
|
|
3703
|
-
const
|
|
3703
|
+
const A = sn({
|
|
3704
3704
|
defaultValues: e,
|
|
3705
3705
|
context: s,
|
|
3706
3706
|
criteriaMode: t,
|
|
@@ -3715,11 +3715,11 @@ const za = "ids-form--alert-v5140", Ba = {
|
|
|
3715
3715
|
shouldUnregister: m,
|
|
3716
3716
|
values: p
|
|
3717
3717
|
});
|
|
3718
|
-
return /* @__PURE__ */ a(Oa, { form:
|
|
3719
|
-
}, Ua = ie(Ha),
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3718
|
+
return /* @__PURE__ */ a(Oa, { form: A, ...g, ref: y });
|
|
3719
|
+
}, Ua = ie(Ha), Bs = Ua;
|
|
3720
|
+
Bs.useForm = sn;
|
|
3721
|
+
Bs.useFormContext = ts;
|
|
3722
|
+
Bs.useWatch = Yr;
|
|
3723
3723
|
const Wa = ie(
|
|
3724
3724
|
(e, s) => {
|
|
3725
3725
|
const {
|
|
@@ -3744,7 +3744,7 @@ const Wa = ie(
|
|
|
3744
3744
|
formatOptions: n
|
|
3745
3745
|
}),
|
|
3746
3746
|
type: l,
|
|
3747
|
-
append: /* @__PURE__ */ a(
|
|
3747
|
+
append: /* @__PURE__ */ a(Pe, { mode: "muted", children: r }),
|
|
3748
3748
|
inline: !!d.readOnly,
|
|
3749
3749
|
alignRight: o,
|
|
3750
3750
|
ref: s,
|
|
@@ -3754,37 +3754,37 @@ const Wa = ie(
|
|
|
3754
3754
|
}
|
|
3755
3755
|
);
|
|
3756
3756
|
Wa.displayName = "IressInputCurrency";
|
|
3757
|
-
const qa = "ids-modal-
|
|
3757
|
+
const qa = "ids-modal-v5142", Pa = "ids-modal--backdrop-v5142", ja = "ids-modal--initial-v5142", Qa = "ids-modal--close-v5142", Ka = "ids-modal--open-v5142", Ya = "ids-modal--unmounted-v5142", Xa = "ids-modal--close-button-v5142", Ja = "ids-modal--footer-v5142", Za = "ids-modal--fixed-footer-v5142", Ga = "ids-modal--content-v5142", Ue = {
|
|
3758
3758
|
modal: qa,
|
|
3759
3759
|
backdrop: Pa,
|
|
3760
|
-
"size--sm": "ids-modal--size--sm-
|
|
3761
|
-
"size--lg": "ids-modal--size--lg-
|
|
3762
|
-
"size--fullpage": "ids-modal--size--fullpage-
|
|
3763
|
-
"size-xs--fullpage": "ids-modal--size-xs--fullpage-
|
|
3764
|
-
"size-xs--sm": "ids-modal--size-xs--sm-
|
|
3765
|
-
"size-xs--md": "ids-modal--size-xs--md-
|
|
3766
|
-
"size-xs--lg": "ids-modal--size-xs--lg-
|
|
3767
|
-
"size-sm--fullpage": "ids-modal--size-sm--fullpage-
|
|
3768
|
-
"size-sm--sm": "ids-modal--size-sm--sm-
|
|
3769
|
-
"size-sm--md": "ids-modal--size-sm--md-
|
|
3770
|
-
"size-sm--lg": "ids-modal--size-sm--lg-
|
|
3771
|
-
"size-md--fullpage": "ids-modal--size-md--fullpage-
|
|
3772
|
-
"size-md--sm": "ids-modal--size-md--sm-
|
|
3773
|
-
"size-md--md": "ids-modal--size-md--md-
|
|
3774
|
-
"size-md--lg": "ids-modal--size-md--lg-
|
|
3775
|
-
"size-lg--fullpage": "ids-modal--size-lg--fullpage-
|
|
3776
|
-
"size-lg--sm": "ids-modal--size-lg--sm-
|
|
3777
|
-
"size-lg--md": "ids-modal--size-lg--md-
|
|
3778
|
-
"size-lg--lg": "ids-modal--size-lg--lg-
|
|
3779
|
-
"size-xl--fullpage": "ids-modal--size-xl--fullpage-
|
|
3780
|
-
"size-xl--sm": "ids-modal--size-xl--sm-
|
|
3781
|
-
"size-xl--md": "ids-modal--size-xl--md-
|
|
3782
|
-
"size-xl--lg": "ids-modal--size-xl--lg-
|
|
3783
|
-
"size-xxl--fullpage": "ids-modal--size-xxl--fullpage-
|
|
3784
|
-
"size-xxl--sm": "ids-modal--size-xxl--sm-
|
|
3785
|
-
"size-xxl--md": "ids-modal--size-xxl--md-
|
|
3786
|
-
"size-xxl--lg": "ids-modal--size-xxl--lg-
|
|
3787
|
-
static: "ids-modal--static-
|
|
3760
|
+
"size--sm": "ids-modal--size--sm-v5142",
|
|
3761
|
+
"size--lg": "ids-modal--size--lg-v5142",
|
|
3762
|
+
"size--fullpage": "ids-modal--size--fullpage-v5142",
|
|
3763
|
+
"size-xs--fullpage": "ids-modal--size-xs--fullpage-v5142",
|
|
3764
|
+
"size-xs--sm": "ids-modal--size-xs--sm-v5142",
|
|
3765
|
+
"size-xs--md": "ids-modal--size-xs--md-v5142",
|
|
3766
|
+
"size-xs--lg": "ids-modal--size-xs--lg-v5142",
|
|
3767
|
+
"size-sm--fullpage": "ids-modal--size-sm--fullpage-v5142",
|
|
3768
|
+
"size-sm--sm": "ids-modal--size-sm--sm-v5142",
|
|
3769
|
+
"size-sm--md": "ids-modal--size-sm--md-v5142",
|
|
3770
|
+
"size-sm--lg": "ids-modal--size-sm--lg-v5142",
|
|
3771
|
+
"size-md--fullpage": "ids-modal--size-md--fullpage-v5142",
|
|
3772
|
+
"size-md--sm": "ids-modal--size-md--sm-v5142",
|
|
3773
|
+
"size-md--md": "ids-modal--size-md--md-v5142",
|
|
3774
|
+
"size-md--lg": "ids-modal--size-md--lg-v5142",
|
|
3775
|
+
"size-lg--fullpage": "ids-modal--size-lg--fullpage-v5142",
|
|
3776
|
+
"size-lg--sm": "ids-modal--size-lg--sm-v5142",
|
|
3777
|
+
"size-lg--md": "ids-modal--size-lg--md-v5142",
|
|
3778
|
+
"size-lg--lg": "ids-modal--size-lg--lg-v5142",
|
|
3779
|
+
"size-xl--fullpage": "ids-modal--size-xl--fullpage-v5142",
|
|
3780
|
+
"size-xl--sm": "ids-modal--size-xl--sm-v5142",
|
|
3781
|
+
"size-xl--md": "ids-modal--size-xl--md-v5142",
|
|
3782
|
+
"size-xl--lg": "ids-modal--size-xl--lg-v5142",
|
|
3783
|
+
"size-xxl--fullpage": "ids-modal--size-xxl--fullpage-v5142",
|
|
3784
|
+
"size-xxl--sm": "ids-modal--size-xxl--sm-v5142",
|
|
3785
|
+
"size-xxl--md": "ids-modal--size-xxl--md-v5142",
|
|
3786
|
+
"size-xxl--lg": "ids-modal--size-xxl--lg-v5142",
|
|
3787
|
+
static: "ids-modal--static-v5142",
|
|
3788
3788
|
initial: ja,
|
|
3789
3789
|
close: Qa,
|
|
3790
3790
|
open: Ka,
|
|
@@ -3793,6 +3793,14 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3793
3793
|
footer: Ja,
|
|
3794
3794
|
fixedFooter: Za,
|
|
3795
3795
|
content: Ga
|
|
3796
|
+
}, el = "ids-toaster-v5142", vs = {
|
|
3797
|
+
toaster: el,
|
|
3798
|
+
"toaster__bottom-end": "ids-toaster--toaster__bottom-end-v5142",
|
|
3799
|
+
"toaster__bottom-start": "ids-toaster--toaster__bottom-start-v5142",
|
|
3800
|
+
"toaster__bottom-center": "ids-toaster--toaster__bottom-center-v5142",
|
|
3801
|
+
"toaster__top-end": "ids-toaster--toaster__top-end-v5142",
|
|
3802
|
+
"toaster__top-start": "ids-toaster--toaster__top-start-v5142",
|
|
3803
|
+
"toaster__top-center": "ids-toaster--toaster__top-center-v5142"
|
|
3796
3804
|
}, rn = ({
|
|
3797
3805
|
children: e,
|
|
3798
3806
|
className: s,
|
|
@@ -3809,43 +3817,44 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3809
3817
|
onExited: p,
|
|
3810
3818
|
onShowChange: g,
|
|
3811
3819
|
padding: y = "md",
|
|
3812
|
-
show:
|
|
3820
|
+
show: A,
|
|
3813
3821
|
size: b = "md",
|
|
3814
3822
|
static: S,
|
|
3815
3823
|
style: F,
|
|
3816
3824
|
...w
|
|
3817
3825
|
}) => {
|
|
3818
|
-
const [
|
|
3819
|
-
|
|
3820
|
-
}, { context:
|
|
3826
|
+
const [C, x] = X(n), H = fe(240), M = Un(w.id), E = Oe({ id: w.id }), W = `${E}--heading`, U = M.opened || A || C, J = (Y) => {
|
|
3827
|
+
M.show(Y), x(Y), g == null || g(Y);
|
|
3828
|
+
}, { context: $ } = ks({
|
|
3821
3829
|
open: U,
|
|
3822
|
-
onOpenChange:
|
|
3823
|
-
}), _ = wr(
|
|
3830
|
+
onOpenChange: J
|
|
3831
|
+
}), _ = wr($, {
|
|
3824
3832
|
enabled: !o,
|
|
3833
|
+
outsidePress: (Y) => !Y.target.closest(`.${vs.toaster}`),
|
|
3825
3834
|
outsidePressEvent: "mousedown"
|
|
3826
|
-
}), D = Ir(
|
|
3835
|
+
}), D = Ir($), B = kr([_, D]), { isMounted: O, status: P } = Fs($, {
|
|
3827
3836
|
duration: {
|
|
3828
3837
|
close: H.current
|
|
3829
3838
|
}
|
|
3830
3839
|
});
|
|
3831
3840
|
ee(() => {
|
|
3832
|
-
|
|
3841
|
+
M.opened && A && Zt(
|
|
3833
3842
|
"IressModal: Please use either IressModalProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the modal will become unpredictable. If you want to show a modal by default in uncontrolled mode, use the defaultShow prop."
|
|
3834
3843
|
);
|
|
3835
|
-
}, [
|
|
3836
|
-
var
|
|
3837
|
-
|
|
3838
|
-
((ce = window.getComputedStyle(
|
|
3839
|
-
) * 0.8),
|
|
3840
|
-
}, [
|
|
3841
|
-
const
|
|
3844
|
+
}, [M.opened, A]), ee(() => {
|
|
3845
|
+
var Y, ce, ve, ne;
|
|
3846
|
+
P === "initial" && ((Y = $.refs.floating) != null && Y.current) && (H.current = Ar(
|
|
3847
|
+
((ce = window.getComputedStyle($.refs.floating.current, null)) == null ? void 0 : ce.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
3848
|
+
) * 0.8), P === "open" && (m == null || m(), (ne = (ve = $.refs.floating) == null ? void 0 : ve.current) == null || ne.focus()), P === "close" && (p == null || p());
|
|
3849
|
+
}, [P, m, p, $.refs.floating]);
|
|
3850
|
+
const q = Is(
|
|
3842
3851
|
"size",
|
|
3843
3852
|
b,
|
|
3844
3853
|
"fullpage"
|
|
3845
|
-
).map((
|
|
3846
|
-
[
|
|
3854
|
+
).map((Y) => Ue[Y]), te = `iress-p--${y}`, K = V(Ue.modal, Ue[P], {
|
|
3855
|
+
[Ue.fixedFooter]: l
|
|
3847
3856
|
}), Q = Se(() => typeof d == "string" ? /* @__PURE__ */ a(
|
|
3848
|
-
|
|
3857
|
+
Pe,
|
|
3849
3858
|
{
|
|
3850
3859
|
id: W,
|
|
3851
3860
|
element: "h2",
|
|
@@ -3860,32 +3869,32 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3860
3869
|
position: "var(--iress-position, fixed)",
|
|
3861
3870
|
...F
|
|
3862
3871
|
};
|
|
3863
|
-
return /* @__PURE__ */ a(Ut, { root: r ?? (
|
|
3872
|
+
return /* @__PURE__ */ a(Ut, { root: r ?? (M == null ? void 0 : M.container), children: /* @__PURE__ */ a(
|
|
3864
3873
|
Fr,
|
|
3865
3874
|
{
|
|
3866
3875
|
className: V(
|
|
3867
3876
|
s,
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3877
|
+
Ue.backdrop,
|
|
3878
|
+
Ue[P],
|
|
3879
|
+
q,
|
|
3871
3880
|
Z.IgnoreStack,
|
|
3872
3881
|
{
|
|
3873
|
-
[
|
|
3882
|
+
[Ue.static]: S
|
|
3874
3883
|
}
|
|
3875
3884
|
),
|
|
3876
3885
|
"data-testid": T(i, "backdrop"),
|
|
3877
3886
|
lockScroll: !S,
|
|
3878
3887
|
style: pe,
|
|
3879
3888
|
children: /* @__PURE__ */ a(
|
|
3880
|
-
|
|
3889
|
+
$r,
|
|
3881
3890
|
{
|
|
3882
|
-
context:
|
|
3883
|
-
initialFocus:
|
|
3891
|
+
context: $,
|
|
3892
|
+
initialFocus: $.refs.floating,
|
|
3884
3893
|
disabled: S,
|
|
3885
3894
|
children: /* @__PURE__ */ L(
|
|
3886
3895
|
"div",
|
|
3887
3896
|
{
|
|
3888
|
-
ref: (
|
|
3897
|
+
ref: (Y) => $.refs.setFloating(Y),
|
|
3889
3898
|
className: K,
|
|
3890
3899
|
id: E,
|
|
3891
3900
|
"data-testid": i,
|
|
@@ -3895,9 +3904,9 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3895
3904
|
!u && /* @__PURE__ */ a(
|
|
3896
3905
|
Ct,
|
|
3897
3906
|
{
|
|
3898
|
-
onClick: () =>
|
|
3907
|
+
onClick: () => J(!1),
|
|
3899
3908
|
screenreaderText: t,
|
|
3900
|
-
className:
|
|
3909
|
+
className: Ue.closeButton,
|
|
3901
3910
|
"data-testid": T(
|
|
3902
3911
|
i,
|
|
3903
3912
|
"close-button__button"
|
|
@@ -3907,7 +3916,7 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3907
3916
|
/* @__PURE__ */ L(
|
|
3908
3917
|
"div",
|
|
3909
3918
|
{
|
|
3910
|
-
className: V(
|
|
3919
|
+
className: V(Ue.content, te),
|
|
3911
3920
|
"data-testid": T(i, "content"),
|
|
3912
3921
|
children: [
|
|
3913
3922
|
Q,
|
|
@@ -3918,7 +3927,7 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3918
3927
|
f && /* @__PURE__ */ a(
|
|
3919
3928
|
"div",
|
|
3920
3929
|
{
|
|
3921
|
-
className: V(
|
|
3930
|
+
className: V(Ue.footer, te),
|
|
3922
3931
|
"data-testid": T(i, "footer"),
|
|
3923
3932
|
children: f
|
|
3924
3933
|
}
|
|
@@ -3933,7 +3942,7 @@ const qa = "ids-modal-v5140", Pa = "ids-modal--backdrop-v5140", ja = "ids-modal-
|
|
|
3933
3942
|
};
|
|
3934
3943
|
rn.Size = kn;
|
|
3935
3944
|
rn.Padding = yr;
|
|
3936
|
-
const
|
|
3945
|
+
const tl = ({
|
|
3937
3946
|
logoSrc: e,
|
|
3938
3947
|
logoFound: s,
|
|
3939
3948
|
logoAltText: t,
|
|
@@ -3955,7 +3964,7 @@ const el = ({
|
|
|
3955
3964
|
size: "2x",
|
|
3956
3965
|
className: we.logoIcon
|
|
3957
3966
|
}
|
|
3958
|
-
),
|
|
3967
|
+
), sl = ({
|
|
3959
3968
|
homeUrl: e,
|
|
3960
3969
|
logoSrc: s,
|
|
3961
3970
|
logoFound: t,
|
|
@@ -3969,7 +3978,7 @@ const el = ({
|
|
|
3969
3978
|
className: V(we.logoLink, we.slot),
|
|
3970
3979
|
"data-testid": T(n, "logo-link"),
|
|
3971
3980
|
children: /* @__PURE__ */ a(
|
|
3972
|
-
|
|
3981
|
+
tl,
|
|
3973
3982
|
{
|
|
3974
3983
|
logoSrc: s,
|
|
3975
3984
|
logoFound: t,
|
|
@@ -4003,7 +4012,7 @@ const el = ({
|
|
|
4003
4012
|
"data-testid": p,
|
|
4004
4013
|
...g
|
|
4005
4014
|
}) => {
|
|
4006
|
-
const y = fe(null), [
|
|
4015
|
+
const y = fe(null), [A, b] = X(!1), [S, F] = X(!0), [w, C] = X(!0), [x, H] = X({}), M = Fe(() => {
|
|
4007
4016
|
const _ = w, D = {
|
|
4008
4017
|
xs: _,
|
|
4009
4018
|
sm: _,
|
|
@@ -4018,11 +4027,11 @@ const el = ({
|
|
|
4018
4027
|
H(D);
|
|
4019
4028
|
}, [i, w]);
|
|
4020
4029
|
ee(() => {
|
|
4021
|
-
|
|
4030
|
+
M(), s && b(!0), u !== "" && d === "" && Zt(
|
|
4022
4031
|
"IressNavbar: You've supplied a logo but no alt text, which is a failure of WCAG Level A Success Criterion 1.1.1 - Non-text content. Set the logoAltText prop to add alt text to the logo.",
|
|
4023
4032
|
"warn"
|
|
4024
4033
|
);
|
|
4025
|
-
}, [
|
|
4034
|
+
}, [M, s, u, d]), ee(() => (n && o && E(), () => {
|
|
4026
4035
|
document.removeEventListener(
|
|
4027
4036
|
"focus",
|
|
4028
4037
|
W.bind(y),
|
|
@@ -4045,8 +4054,8 @@ const el = ({
|
|
|
4045
4054
|
O < 0 && window.scrollBy(0, O);
|
|
4046
4055
|
}
|
|
4047
4056
|
}, U = () => {
|
|
4048
|
-
|
|
4049
|
-
},
|
|
4057
|
+
C(!w), M();
|
|
4058
|
+
}, $ = (() => {
|
|
4050
4059
|
const _ = ["xs", "sm", "md", "lg", "xl", "xxl"], B = _.indexOf(i) + 1;
|
|
4051
4060
|
return B >= _.length ? {} : {
|
|
4052
4061
|
[_[B]]: !0
|
|
@@ -4064,14 +4073,14 @@ const el = ({
|
|
|
4064
4073
|
ref: y,
|
|
4065
4074
|
...g,
|
|
4066
4075
|
children: /* @__PURE__ */ a("header", { children: /* @__PURE__ */ L(
|
|
4067
|
-
|
|
4076
|
+
$s,
|
|
4068
4077
|
{
|
|
4069
4078
|
padding: "none",
|
|
4070
4079
|
background: "transparent",
|
|
4071
4080
|
noBorderRadius: !0,
|
|
4072
4081
|
className: we.panel,
|
|
4073
4082
|
children: [
|
|
4074
|
-
i !== void 0 && /* @__PURE__ */ a(Rt, { hiddenOn:
|
|
4083
|
+
i !== void 0 && /* @__PURE__ */ a(Rt, { hiddenOn: $, children: /* @__PURE__ */ a(
|
|
4075
4084
|
Re,
|
|
4076
4085
|
{
|
|
4077
4086
|
onClick: () => U(),
|
|
@@ -4088,7 +4097,7 @@ const el = ({
|
|
|
4088
4097
|
}
|
|
4089
4098
|
) }),
|
|
4090
4099
|
e ? /* @__PURE__ */ a("div", { className: we.logoSlot, children: e }) : /* @__PURE__ */ a(
|
|
4091
|
-
|
|
4100
|
+
sl,
|
|
4092
4101
|
{
|
|
4093
4102
|
homeUrl: l,
|
|
4094
4103
|
logoSrc: u,
|
|
@@ -4110,7 +4119,7 @@ const el = ({
|
|
|
4110
4119
|
}),
|
|
4111
4120
|
children: [
|
|
4112
4121
|
r,
|
|
4113
|
-
|
|
4122
|
+
A && (i !== void 0 ? /* @__PURE__ */ a(Rt, { hiddenOn: x, className: we.navHide, children: /* @__PURE__ */ a(
|
|
4114
4123
|
"nav",
|
|
4115
4124
|
{
|
|
4116
4125
|
"aria-label": m,
|
|
@@ -4139,14 +4148,14 @@ const el = ({
|
|
|
4139
4148
|
};
|
|
4140
4149
|
nn.HorizontalAlign = Wn;
|
|
4141
4150
|
nn.Breakpoint = pr;
|
|
4142
|
-
const
|
|
4143
|
-
radio:
|
|
4144
|
-
input:
|
|
4145
|
-
label:
|
|
4146
|
-
touch:
|
|
4147
|
-
hiddenControl:
|
|
4148
|
-
mark:
|
|
4149
|
-
},
|
|
4151
|
+
const rl = "ids-radio-v5142", nl = "ids-radio--input-v5142", il = "ids-radio--label-v5142", ol = "ids-radio--touch-v5142", al = "ids-radio--hidden-control-v5142", ll = "ids-radio--mark-v5142", pt = {
|
|
4152
|
+
radio: rl,
|
|
4153
|
+
input: nl,
|
|
4154
|
+
label: il,
|
|
4155
|
+
touch: ol,
|
|
4156
|
+
hiddenControl: al,
|
|
4157
|
+
mark: ll
|
|
4158
|
+
}, cl = () => /* @__PURE__ */ a(
|
|
4150
4159
|
"svg",
|
|
4151
4160
|
{
|
|
4152
4161
|
version: "1.1",
|
|
@@ -4155,7 +4164,7 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4155
4164
|
className: pt.mark,
|
|
4156
4165
|
children: /* @__PURE__ */ a("circle", { cx: "100", cy: "100", r: "70" })
|
|
4157
4166
|
}
|
|
4158
|
-
),
|
|
4167
|
+
), dl = ({
|
|
4159
4168
|
checked: e,
|
|
4160
4169
|
children: s,
|
|
4161
4170
|
className: t,
|
|
@@ -4170,8 +4179,8 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4170
4179
|
touch: m,
|
|
4171
4180
|
...p
|
|
4172
4181
|
}, g) => {
|
|
4173
|
-
const y =
|
|
4174
|
-
if (b ?
|
|
4182
|
+
const y = Oe(p), A = ys(qn), b = !!A.onChange, F = b ? A.value === u : e ?? i;
|
|
4183
|
+
if (b ? A.readonly : f)
|
|
4175
4184
|
return F ? /* @__PURE__ */ a(
|
|
4176
4185
|
Ze,
|
|
4177
4186
|
{
|
|
@@ -4181,7 +4190,7 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4181
4190
|
children: s
|
|
4182
4191
|
}
|
|
4183
4192
|
) : null;
|
|
4184
|
-
const
|
|
4193
|
+
const C = A.name ?? o, x = A.hiddenRadio ?? n, H = A.required ?? d, M = A.touch ?? m;
|
|
4185
4194
|
return /* @__PURE__ */ L(
|
|
4186
4195
|
"div",
|
|
4187
4196
|
{
|
|
@@ -4189,7 +4198,7 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4189
4198
|
className: V(t, {
|
|
4190
4199
|
[pt.radio]: !0,
|
|
4191
4200
|
[pt.hiddenControl]: x,
|
|
4192
|
-
[pt.touch]:
|
|
4201
|
+
[pt.touch]: M
|
|
4193
4202
|
}),
|
|
4194
4203
|
children: [
|
|
4195
4204
|
/* @__PURE__ */ a(
|
|
@@ -4198,13 +4207,13 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4198
4207
|
...p,
|
|
4199
4208
|
type: "radio",
|
|
4200
4209
|
id: y,
|
|
4201
|
-
name:
|
|
4210
|
+
name: C,
|
|
4202
4211
|
ref: g,
|
|
4203
4212
|
className: pt.input,
|
|
4204
4213
|
"data-testid": T(r, "input"),
|
|
4205
4214
|
onChange: (E) => {
|
|
4206
4215
|
var W;
|
|
4207
|
-
l == null || l(E, u), (W =
|
|
4216
|
+
l == null || l(E, u), (W = A.onChange) == null || W.call(A, E, u);
|
|
4208
4217
|
},
|
|
4209
4218
|
value: String(u),
|
|
4210
4219
|
checked: F,
|
|
@@ -4212,13 +4221,13 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4212
4221
|
}
|
|
4213
4222
|
),
|
|
4214
4223
|
/* @__PURE__ */ L("label", { htmlFor: y, className: pt.label, children: [
|
|
4215
|
-
!x && /* @__PURE__ */ a(
|
|
4224
|
+
!x && /* @__PURE__ */ a(cl, { "data-testid": T(r, "mark") }),
|
|
4216
4225
|
s
|
|
4217
4226
|
] })
|
|
4218
4227
|
]
|
|
4219
4228
|
}
|
|
4220
4229
|
);
|
|
4221
|
-
}, Ru = ie(
|
|
4230
|
+
}, Ru = ie(dl), ut = ({
|
|
4222
4231
|
children: e,
|
|
4223
4232
|
className: s,
|
|
4224
4233
|
gutter: t,
|
|
@@ -4231,10 +4240,10 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4231
4240
|
{
|
|
4232
4241
|
className: V(
|
|
4233
4242
|
s,
|
|
4234
|
-
|
|
4243
|
+
Is(
|
|
4235
4244
|
St.Gutter,
|
|
4236
4245
|
t,
|
|
4237
|
-
|
|
4246
|
+
_s.None
|
|
4238
4247
|
),
|
|
4239
4248
|
{
|
|
4240
4249
|
[St.Base]: !0,
|
|
@@ -4247,11 +4256,11 @@ const sl = "ids-radio-v5140", rl = "ids-radio--input-v5140", nl = "ids-radio--la
|
|
|
4247
4256
|
children: e
|
|
4248
4257
|
}
|
|
4249
4258
|
);
|
|
4250
|
-
ut.Gutter =
|
|
4259
|
+
ut.Gutter = _s;
|
|
4251
4260
|
ut.HorizontalAlign = vr;
|
|
4252
4261
|
ut.VerticalAlign = gr;
|
|
4253
4262
|
const Yt = (e) => _e(e).reduce(
|
|
4254
|
-
(s, t = { type:
|
|
4263
|
+
(s, t = { type: qs, props: { label: "" }, key: "" }) => {
|
|
4255
4264
|
var r, i;
|
|
4256
4265
|
if (t.type === "optgroup")
|
|
4257
4266
|
s = [
|
|
@@ -4261,7 +4270,7 @@ const Yt = (e) => _e(e).reduce(
|
|
|
4261
4270
|
children: Yt(t.props.children)
|
|
4262
4271
|
}
|
|
4263
4272
|
];
|
|
4264
|
-
else if ([
|
|
4273
|
+
else if ([qs, "option"].includes(t.type)) {
|
|
4265
4274
|
const n = { ...t.props };
|
|
4266
4275
|
delete n.children;
|
|
4267
4276
|
const o = String(t.props.children);
|
|
@@ -4318,7 +4327,7 @@ const Yt = (e) => _e(e).reduce(
|
|
|
4318
4327
|
}
|
|
4319
4328
|
);
|
|
4320
4329
|
an.displayName = "SelectReadonly";
|
|
4321
|
-
const
|
|
4330
|
+
const ul = ({
|
|
4322
4331
|
children: e,
|
|
4323
4332
|
className: s,
|
|
4324
4333
|
"data-testid": t,
|
|
@@ -4334,18 +4343,18 @@ const dl = ({
|
|
|
4334
4343
|
component: "IressSelect",
|
|
4335
4344
|
defaultValue: o
|
|
4336
4345
|
});
|
|
4337
|
-
const m =
|
|
4346
|
+
const m = Oe(d), p = fe(null), { value: g, setValue: y } = bt({
|
|
4338
4347
|
component: "IressSelect",
|
|
4339
4348
|
defaultValue: o,
|
|
4340
4349
|
value: n
|
|
4341
|
-
}),
|
|
4350
|
+
}), A = hn.useCallback(
|
|
4342
4351
|
(b) => on(
|
|
4343
4352
|
b,
|
|
4344
4353
|
Yt(e)
|
|
4345
4354
|
),
|
|
4346
4355
|
[e]
|
|
4347
4356
|
);
|
|
4348
|
-
return
|
|
4357
|
+
return Ee(u, () => p.current), /* @__PURE__ */ a(
|
|
4349
4358
|
"div",
|
|
4350
4359
|
{
|
|
4351
4360
|
"data-testid": t,
|
|
@@ -4378,12 +4387,12 @@ const dl = ({
|
|
|
4378
4387
|
"data-testid": T(t, "select"),
|
|
4379
4388
|
id: m,
|
|
4380
4389
|
onChange: (b) => {
|
|
4381
|
-
const S =
|
|
4390
|
+
const S = A(b.currentTarget.value);
|
|
4382
4391
|
y(S), r == null || r(b, S);
|
|
4383
4392
|
},
|
|
4384
4393
|
ref: (b) => {
|
|
4385
4394
|
if (p.current = b, !g && (b != null && b.value)) {
|
|
4386
|
-
const S =
|
|
4395
|
+
const S = A(b.value);
|
|
4387
4396
|
y(S), r == null || r(Ie(b.value), S);
|
|
4388
4397
|
}
|
|
4389
4398
|
},
|
|
@@ -4393,9 +4402,9 @@ const dl = ({
|
|
|
4393
4402
|
)
|
|
4394
4403
|
}
|
|
4395
4404
|
);
|
|
4396
|
-
},
|
|
4397
|
-
|
|
4398
|
-
function
|
|
4405
|
+
}, fl = ie(ul);
|
|
4406
|
+
fl.Width = xs;
|
|
4407
|
+
function ml(e) {
|
|
4399
4408
|
function s() {
|
|
4400
4409
|
i && (t.length > 0 && /^[~+>]$/.test(t[t.length - 1]) && t.push(" "), t.push(i));
|
|
4401
4410
|
}
|
|
@@ -4438,23 +4447,23 @@ function fl(e) {
|
|
|
4438
4447
|
}
|
|
4439
4448
|
return t.join("").trim();
|
|
4440
4449
|
}
|
|
4441
|
-
function
|
|
4442
|
-
return
|
|
4450
|
+
function hl(e, s = document, t = null) {
|
|
4451
|
+
return pl(e, !1, s, t);
|
|
4443
4452
|
}
|
|
4444
|
-
function
|
|
4445
|
-
e =
|
|
4453
|
+
function pl(e, s, t, r = null) {
|
|
4454
|
+
e = ml(e);
|
|
4446
4455
|
let i = t.querySelector(e);
|
|
4447
4456
|
return document.head.createShadowRoot || document.head.attachShadow ? i || ms(e, ",").reduce((o, l) => {
|
|
4448
4457
|
if (o)
|
|
4449
4458
|
return o;
|
|
4450
|
-
const f = ms(l.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((g) => !!g).map((g) => ms(g, ">")), d = f.length - 1, u = f[d][f[d].length - 1], m =
|
|
4459
|
+
const f = ms(l.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((g) => !!g).map((g) => ms(g, ">")), d = f.length - 1, u = f[d][f[d].length - 1], m = yl(u, t, r), p = vl(f, d, t);
|
|
4451
4460
|
return o = m.find(p), o || null;
|
|
4452
4461
|
}, null) : i;
|
|
4453
4462
|
}
|
|
4454
|
-
function
|
|
4463
|
+
function vl(e, s, t) {
|
|
4455
4464
|
return (r) => {
|
|
4456
4465
|
let i = s, n = r, o = !1;
|
|
4457
|
-
for (; n && !
|
|
4466
|
+
for (; n && !gl(n); ) {
|
|
4458
4467
|
let l = !0;
|
|
4459
4468
|
if (e[i].length === 1)
|
|
4460
4469
|
l = n.matches(e[i]);
|
|
@@ -4466,14 +4475,14 @@ function pl(e, s, t) {
|
|
|
4466
4475
|
l = !1;
|
|
4467
4476
|
break;
|
|
4468
4477
|
}
|
|
4469
|
-
d =
|
|
4478
|
+
d = or(d, t);
|
|
4470
4479
|
}
|
|
4471
4480
|
}
|
|
4472
4481
|
if (l && i === 0) {
|
|
4473
4482
|
o = !0;
|
|
4474
4483
|
break;
|
|
4475
4484
|
}
|
|
4476
|
-
l && i--, n =
|
|
4485
|
+
l && i--, n = or(n, t);
|
|
4477
4486
|
}
|
|
4478
4487
|
return o;
|
|
4479
4488
|
};
|
|
@@ -4481,14 +4490,14 @@ function pl(e, s, t) {
|
|
|
4481
4490
|
function ms(e, s) {
|
|
4482
4491
|
return e.match(/\\?.|^$/g).reduce((t, r) => (r === '"' && !t.sQuote ? (t.quote ^= 1, t.a[t.a.length - 1] += r) : r === "'" && !t.quote ? (t.sQuote ^= 1, t.a[t.a.length - 1] += r) : !t.quote && !t.sQuote && r === s ? t.a.push("") : t.a[t.a.length - 1] += r, t), { a: [""] }).a;
|
|
4483
4492
|
}
|
|
4484
|
-
function
|
|
4493
|
+
function gl(e) {
|
|
4485
4494
|
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE || e.nodeType === Node.DOCUMENT_NODE;
|
|
4486
4495
|
}
|
|
4487
|
-
function
|
|
4496
|
+
function or(e, s) {
|
|
4488
4497
|
const t = e.parentNode;
|
|
4489
4498
|
return t && t.host && t.nodeType === 11 ? t.host : t === s ? null : t;
|
|
4490
4499
|
}
|
|
4491
|
-
function
|
|
4500
|
+
function yl(e = null, s, t = null) {
|
|
4492
4501
|
let r = [];
|
|
4493
4502
|
if (t)
|
|
4494
4503
|
r = t;
|
|
@@ -4503,23 +4512,23 @@ function gl(e = null, s, t = null) {
|
|
|
4503
4512
|
}
|
|
4504
4513
|
return e ? r.filter((i) => i.matches(e)) : r;
|
|
4505
4514
|
}
|
|
4506
|
-
const
|
|
4507
|
-
slideout:
|
|
4508
|
-
backdrop:
|
|
4509
|
-
push:
|
|
4510
|
-
"size--sm": "ids-slideout--size--sm-
|
|
4511
|
-
"size--md": "ids-slideout--size--md-
|
|
4512
|
-
"size--lg": "ids-slideout--size--lg-
|
|
4513
|
-
unmounted:
|
|
4514
|
-
initial:
|
|
4515
|
-
close:
|
|
4516
|
-
open:
|
|
4517
|
-
right:
|
|
4518
|
-
left:
|
|
4519
|
-
closeButton:
|
|
4515
|
+
const bl = "ids-slideout-v5142", xl = "ids-slideout--backdrop-v5142", _l = "ids-slideout--push-v5142", Sl = "ids-slideout--unmounted-v5142", Nl = "ids-slideout--initial-v5142", wl = "ids-slideout--close-v5142", Il = "ids-slideout--open-v5142", kl = "ids-slideout--right-v5142", Fl = "ids-slideout--left-v5142", $l = "ids-slideout--close-button-v5142", Al = "ids-slideout--content-v5142", Vl = "ids-slideout--footer-v5142", We = {
|
|
4516
|
+
slideout: bl,
|
|
4517
|
+
backdrop: xl,
|
|
4518
|
+
push: _l,
|
|
4519
|
+
"size--sm": "ids-slideout--size--sm-v5142",
|
|
4520
|
+
"size--md": "ids-slideout--size--md-v5142",
|
|
4521
|
+
"size--lg": "ids-slideout--size--lg-v5142",
|
|
4522
|
+
unmounted: Sl,
|
|
4523
|
+
initial: Nl,
|
|
4524
|
+
close: wl,
|
|
4525
|
+
open: Il,
|
|
4526
|
+
right: kl,
|
|
4527
|
+
left: Fl,
|
|
4528
|
+
closeButton: $l,
|
|
4520
4529
|
content: Al,
|
|
4521
|
-
footer:
|
|
4522
|
-
},
|
|
4530
|
+
footer: Vl
|
|
4531
|
+
}, ar = ({
|
|
4523
4532
|
children: e,
|
|
4524
4533
|
closeText: s,
|
|
4525
4534
|
"data-testid": t,
|
|
@@ -4535,14 +4544,14 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4535
4544
|
{
|
|
4536
4545
|
onClick: () => o(!1),
|
|
4537
4546
|
screenreaderText: s,
|
|
4538
|
-
className:
|
|
4547
|
+
className: We.closeButton,
|
|
4539
4548
|
"data-testid": T(t, "close-button__button")
|
|
4540
4549
|
}
|
|
4541
4550
|
),
|
|
4542
4551
|
/* @__PURE__ */ L(
|
|
4543
4552
|
"div",
|
|
4544
4553
|
{
|
|
4545
|
-
className: V(
|
|
4554
|
+
className: V(We.content, `iress-p--${l}`),
|
|
4546
4555
|
"data-testid": T(t, "content"),
|
|
4547
4556
|
children: [
|
|
4548
4557
|
n,
|
|
@@ -4553,19 +4562,19 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4553
4562
|
i && /* @__PURE__ */ a(
|
|
4554
4563
|
"div",
|
|
4555
4564
|
{
|
|
4556
|
-
className: V(
|
|
4565
|
+
className: V(We.footer, `iress-p--${l}`),
|
|
4557
4566
|
"data-testid": T(t, "footer"),
|
|
4558
4567
|
children: i
|
|
4559
4568
|
}
|
|
4560
4569
|
)
|
|
4561
|
-
] }),
|
|
4562
|
-
slideoutPushElement:
|
|
4563
|
-
right:
|
|
4564
|
-
left:
|
|
4565
|
-
open:
|
|
4566
|
-
"size--sm": "ids-slideout-push-element--size--sm-
|
|
4567
|
-
"size--md": "ids-slideout-push-element--size--md-
|
|
4568
|
-
"size--lg": "ids-slideout-push-element--size--lg-
|
|
4570
|
+
] }), Rl = "ids-slideout-push-element-v5142", Ll = "ids-slideout-push-element--right-v5142", Dl = "ids-slideout-push-element--left-v5142", Ml = "ids-slideout-push-element--open-v5142", Le = {
|
|
4571
|
+
slideoutPushElement: Rl,
|
|
4572
|
+
right: Ll,
|
|
4573
|
+
left: Dl,
|
|
4574
|
+
open: Ml,
|
|
4575
|
+
"size--sm": "ids-slideout-push-element--size--sm-v5142",
|
|
4576
|
+
"size--md": "ids-slideout-push-element--size--md-v5142",
|
|
4577
|
+
"size--lg": "ids-slideout-push-element--size--lg-v5142"
|
|
4569
4578
|
}, ss = ({
|
|
4570
4579
|
backdrop: e,
|
|
4571
4580
|
children: s,
|
|
@@ -4582,23 +4591,23 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4582
4591
|
onExited: p,
|
|
4583
4592
|
onShowChange: g,
|
|
4584
4593
|
padding: y = "md",
|
|
4585
|
-
position:
|
|
4594
|
+
position: A = "right",
|
|
4586
4595
|
show: b,
|
|
4587
4596
|
size: S = "sm",
|
|
4588
4597
|
style: F,
|
|
4589
4598
|
...w
|
|
4590
4599
|
}) => {
|
|
4591
|
-
const [
|
|
4592
|
-
E.show(Q), x(Q), g == null || g(Q,
|
|
4593
|
-
}, { context: _ } =
|
|
4594
|
-
open:
|
|
4595
|
-
onOpenChange:
|
|
4600
|
+
const [C, x] = X(o), H = fe(240), M = fe(null), E = Xn(w.id), W = Oe({ id: w.id }), U = `${W}--heading`, J = E.opened || b || C, $ = (Q, pe, Y) => {
|
|
4601
|
+
E.show(Q), x(Q), g == null || g(Q, Y);
|
|
4602
|
+
}, { context: _ } = ks({
|
|
4603
|
+
open: J,
|
|
4604
|
+
onOpenChange: $
|
|
4596
4605
|
}), D = wr(_, {
|
|
4597
4606
|
enabled: !0,
|
|
4598
4607
|
outsidePress: e === !0
|
|
4599
4608
|
}), B = Ir(_, {
|
|
4600
4609
|
enabled: e === !0
|
|
4601
|
-
}), O = kr([D, B]), { isMounted:
|
|
4610
|
+
}), O = kr([D, B]), { isMounted: P, status: q } = Fs(_, {
|
|
4602
4611
|
duration: H.current
|
|
4603
4612
|
});
|
|
4604
4613
|
ee(() => {
|
|
@@ -4607,38 +4616,44 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4607
4616
|
);
|
|
4608
4617
|
}, [E.opened, b]), ee(() => {
|
|
4609
4618
|
if (u === "overlay")
|
|
4610
|
-
|
|
4619
|
+
M.current = null;
|
|
4611
4620
|
else {
|
|
4612
4621
|
let Q;
|
|
4613
|
-
typeof l == "string" ? Q =
|
|
4622
|
+
typeof l == "string" ? Q = hl(l) : l instanceof Element ? Q = l : Q = l == null ? void 0 : l.current, M.current = Q;
|
|
4614
4623
|
}
|
|
4615
4624
|
return () => {
|
|
4616
|
-
|
|
4625
|
+
M.current = null;
|
|
4617
4626
|
};
|
|
4618
4627
|
}, [l, u]), ee(() => {
|
|
4619
|
-
var Q, pe,
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
), (pe = _.refs.floating) != null && pe.current && (H.current =
|
|
4625
|
-
((
|
|
4626
|
-
))),
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4628
|
+
var Q, pe, Y, ce, ve, ne, he, ae, se;
|
|
4629
|
+
q === "initial" && ((Q = M == null ? void 0 : M.current) == null || Q.classList.add(
|
|
4630
|
+
Le.slideoutPushElement,
|
|
4631
|
+
Le[A],
|
|
4632
|
+
Le[`size--${S}`]
|
|
4633
|
+
), (pe = _.refs.floating) != null && pe.current && (H.current = Ar(
|
|
4634
|
+
((Y = window.getComputedStyle(_.refs.floating.current, null)) == null ? void 0 : Y.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
4635
|
+
))), q === "open" && (m == null || m(), (ve = (ce = _.refs.floating) == null ? void 0 : ce.current) == null || ve.focus(), (ne = M == null ? void 0 : M.current) == null || ne.classList.add(Le.open)), q === "close" && (p == null || p(), (he = M == null ? void 0 : M.current) == null || he.classList.remove(Le.open)), q === "unmounted" && !((ae = M == null ? void 0 : M.current) != null && ae.classList.contains(Le.open)) && ((se = M == null ? void 0 : M.current) == null || se.classList.remove(
|
|
4636
|
+
Le.slideoutPushElement,
|
|
4637
|
+
Le[A],
|
|
4638
|
+
Le[`size--${S}`]
|
|
4630
4639
|
));
|
|
4631
4640
|
}, [
|
|
4632
|
-
|
|
4641
|
+
q,
|
|
4633
4642
|
m,
|
|
4634
4643
|
p,
|
|
4635
4644
|
_.refs.floating,
|
|
4636
|
-
|
|
4637
|
-
|
|
4645
|
+
M,
|
|
4646
|
+
A,
|
|
4638
4647
|
S
|
|
4639
|
-
])
|
|
4648
|
+
]), ee(() => {
|
|
4649
|
+
q === "open" && (M != null && M.current) && (M.current.classList.remove(
|
|
4650
|
+
Le["size--sm"],
|
|
4651
|
+
Le["size--md"],
|
|
4652
|
+
Le["size--lg"]
|
|
4653
|
+
), M.current.classList.add(Le[`size--${S}`]));
|
|
4654
|
+
}, [S, q, M]);
|
|
4640
4655
|
const te = Se(() => typeof d == "string" ? /* @__PURE__ */ a(
|
|
4641
|
-
|
|
4656
|
+
Pe,
|
|
4642
4657
|
{
|
|
4643
4658
|
id: U,
|
|
4644
4659
|
"data-testid": T(n, "heading"),
|
|
@@ -4648,18 +4663,18 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4648
4663
|
) : d ? mr(d, {
|
|
4649
4664
|
id: U
|
|
4650
4665
|
}) : null, [n, U, d]);
|
|
4651
|
-
if (!
|
|
4666
|
+
if (!P) return null;
|
|
4652
4667
|
const K = {
|
|
4653
4668
|
"aria-labelledby": te ? U : void 0,
|
|
4654
4669
|
children: s,
|
|
4655
4670
|
className: V(
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4671
|
+
We.slideout,
|
|
4672
|
+
We[q],
|
|
4673
|
+
We[A],
|
|
4674
|
+
We[`size--${S}`],
|
|
4660
4675
|
Z.IgnoreStack,
|
|
4661
4676
|
{
|
|
4662
|
-
[
|
|
4677
|
+
[We.push]: u === "push" && M.current,
|
|
4663
4678
|
[`${t}`]: t && !e
|
|
4664
4679
|
}
|
|
4665
4680
|
),
|
|
@@ -4669,7 +4684,7 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4669
4684
|
floatingRef: (Q) => _.refs.setFloating(Q),
|
|
4670
4685
|
heading: te,
|
|
4671
4686
|
id: W,
|
|
4672
|
-
onOpenChange:
|
|
4687
|
+
onOpenChange: $,
|
|
4673
4688
|
padding: y,
|
|
4674
4689
|
...O.getFloatingProps(w)
|
|
4675
4690
|
};
|
|
@@ -4683,26 +4698,26 @@ const yl = "ids-slideout-v5140", bl = "ids-slideout--backdrop-v5140", xl = "ids-
|
|
|
4683
4698
|
{
|
|
4684
4699
|
className: V(
|
|
4685
4700
|
t,
|
|
4686
|
-
|
|
4687
|
-
|
|
4701
|
+
We.backdrop,
|
|
4702
|
+
We[q],
|
|
4688
4703
|
Z.IgnoreStack
|
|
4689
4704
|
),
|
|
4690
4705
|
"data-testid": T(n, "backdrop"),
|
|
4691
4706
|
lockScroll: !0,
|
|
4692
4707
|
style: Q,
|
|
4693
4708
|
children: /* @__PURE__ */ a(
|
|
4694
|
-
|
|
4709
|
+
$r,
|
|
4695
4710
|
{
|
|
4696
4711
|
context: _,
|
|
4697
4712
|
initialFocus: _.refs.floating,
|
|
4698
|
-
children: /* @__PURE__ */ a(
|
|
4713
|
+
children: /* @__PURE__ */ a(ar, { ...K, "data-testid": n })
|
|
4699
4714
|
}
|
|
4700
4715
|
)
|
|
4701
4716
|
}
|
|
4702
4717
|
) });
|
|
4703
4718
|
}
|
|
4704
4719
|
return /* @__PURE__ */ a(Ut, { root: i ?? (E == null ? void 0 : E.container), children: /* @__PURE__ */ a(
|
|
4705
|
-
|
|
4720
|
+
ar,
|
|
4706
4721
|
{
|
|
4707
4722
|
...K,
|
|
4708
4723
|
style: F,
|
|
@@ -4714,11 +4729,11 @@ ss.Mode = Qn;
|
|
|
4714
4729
|
ss.Padding = yr;
|
|
4715
4730
|
ss.Position = Kn;
|
|
4716
4731
|
ss.Size = Yn;
|
|
4717
|
-
const
|
|
4732
|
+
const Cl = (e = 0, s = 10, t = 1) => {
|
|
4718
4733
|
const r = [];
|
|
4719
4734
|
for (let i = e; i <= s; i += t) r.push(i);
|
|
4720
4735
|
return r;
|
|
4721
|
-
},
|
|
4736
|
+
}, Tl = ({
|
|
4722
4737
|
"data-testid": e,
|
|
4723
4738
|
defaultValue: s,
|
|
4724
4739
|
className: t,
|
|
@@ -4737,7 +4752,7 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4737
4752
|
component: "IressSelect",
|
|
4738
4753
|
defaultValue: s
|
|
4739
4754
|
});
|
|
4740
|
-
const y =
|
|
4755
|
+
const y = Oe({ id: p == null ? void 0 : p.id }), b = (typeof u == "boolean" ? Cl(o, n, d) : u ?? []).map(
|
|
4741
4756
|
(x) => typeof x == "number" ? { value: x } : x
|
|
4742
4757
|
), { value: S, setValue: F } = bt({
|
|
4743
4758
|
component: "IressSlider",
|
|
@@ -4746,7 +4761,7 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4746
4761
|
}), w = Fe(() => {
|
|
4747
4762
|
const x = b == null ? void 0 : b.find((H) => H.value === S);
|
|
4748
4763
|
return r ? r(S ?? 0, x, f) : (x == null ? void 0 : x.label) ?? S;
|
|
4749
|
-
}, [b, r, S, f]),
|
|
4764
|
+
}, [b, r, S, f]), C = Fe(() => {
|
|
4750
4765
|
const x = Number(((S ?? 0) - o) * 100 / (n - o));
|
|
4751
4766
|
return `calc(${x}% + ((var(--iress-thumb-width) / 2) - ${x * 0.285}px))`;
|
|
4752
4767
|
}, [n, o, S]);
|
|
@@ -4763,7 +4778,7 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4763
4778
|
{
|
|
4764
4779
|
className: V(t, as.slider),
|
|
4765
4780
|
style: {
|
|
4766
|
-
"--iress-thumb-value-offset":
|
|
4781
|
+
"--iress-thumb-value-offset": C()
|
|
4767
4782
|
},
|
|
4768
4783
|
"data-testid": e,
|
|
4769
4784
|
children: [
|
|
@@ -4799,9 +4814,9 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4799
4814
|
]
|
|
4800
4815
|
}
|
|
4801
4816
|
);
|
|
4802
|
-
},
|
|
4803
|
-
|
|
4804
|
-
const
|
|
4817
|
+
}, zl = ie(Tl);
|
|
4818
|
+
zl.displayName = "IressSlider";
|
|
4819
|
+
const Bl = ({
|
|
4805
4820
|
children: e,
|
|
4806
4821
|
label: s = "sortable",
|
|
4807
4822
|
noWrap: t = !0,
|
|
@@ -4830,7 +4845,7 @@ const zl = ({
|
|
|
4830
4845
|
]
|
|
4831
4846
|
}
|
|
4832
4847
|
);
|
|
4833
|
-
},
|
|
4848
|
+
}, El = ({
|
|
4834
4849
|
additionalHeaders: e,
|
|
4835
4850
|
children: s,
|
|
4836
4851
|
columnApi: t,
|
|
@@ -4850,10 +4865,10 @@ const zl = ({
|
|
|
4850
4865
|
headers: e,
|
|
4851
4866
|
...n == null ? void 0 : n.columnProps,
|
|
4852
4867
|
...o,
|
|
4853
|
-
children: t.getCanSort() && n ? /* @__PURE__ */ a(
|
|
4868
|
+
children: t.getCanSort() && n ? /* @__PURE__ */ a(Bl, { ...n == null ? void 0 : n.buttonProps, noWrap: l, children: s }) : s
|
|
4854
4869
|
}
|
|
4855
4870
|
);
|
|
4856
|
-
},
|
|
4871
|
+
}, Ol = ({
|
|
4857
4872
|
additionalHeaders: e,
|
|
4858
4873
|
className: s,
|
|
4859
4874
|
setControlViaRef: t,
|
|
@@ -4873,7 +4888,7 @@ const zl = ({
|
|
|
4873
4888
|
t == null || t(u)(d);
|
|
4874
4889
|
},
|
|
4875
4890
|
children: f.headers.map((d) => /* @__PURE__ */ a(
|
|
4876
|
-
|
|
4891
|
+
El,
|
|
4877
4892
|
{
|
|
4878
4893
|
additionalHeaders: e,
|
|
4879
4894
|
columnApi: d.column,
|
|
@@ -4889,7 +4904,7 @@ const zl = ({
|
|
|
4889
4904
|
},
|
|
4890
4905
|
f.id
|
|
4891
4906
|
)) : null;
|
|
4892
|
-
},
|
|
4907
|
+
}, Hl = ({
|
|
4893
4908
|
caption: e,
|
|
4894
4909
|
children: s,
|
|
4895
4910
|
columns: t,
|
|
@@ -4905,7 +4920,7 @@ const zl = ({
|
|
|
4905
4920
|
scope: p,
|
|
4906
4921
|
...g
|
|
4907
4922
|
}) => {
|
|
4908
|
-
const y =
|
|
4923
|
+
const y = Oe({ id: g.id }), A = `${y}--caption`, b = (o && ni(t)) ?? !!(m != null && m.length), S = s ?? b;
|
|
4909
4924
|
t && !Array.isArray(t) && Zt(
|
|
4910
4925
|
"IressTable: Passing columns as an object is deprecated and will be removed in a future version. Please use an array instead.",
|
|
4911
4926
|
"warn"
|
|
@@ -4932,7 +4947,7 @@ const zl = ({
|
|
|
4932
4947
|
/* @__PURE__ */ a(
|
|
4933
4948
|
"caption",
|
|
4934
4949
|
{
|
|
4935
|
-
id:
|
|
4950
|
+
id: A,
|
|
4936
4951
|
className: V(Ke.caption, {
|
|
4937
4952
|
[Z.SROnly]: l
|
|
4938
4953
|
}),
|
|
@@ -4940,7 +4955,7 @@ const zl = ({
|
|
|
4940
4955
|
children: e
|
|
4941
4956
|
}
|
|
4942
4957
|
),
|
|
4943
|
-
!f && b && /* @__PURE__ */ a("thead", { "data-testid": F, children: /* @__PURE__ */ a(
|
|
4958
|
+
!f && b && /* @__PURE__ */ a("thead", { "data-testid": F, children: /* @__PURE__ */ a(Ol, { tableId: y, testId: F }) }),
|
|
4944
4959
|
b && /* @__PURE__ */ L("tbody", { "data-testid": w, children: [
|
|
4945
4960
|
/* @__PURE__ */ a(
|
|
4946
4961
|
ii,
|
|
@@ -4961,8 +4976,8 @@ const zl = ({
|
|
|
4961
4976
|
}
|
|
4962
4977
|
);
|
|
4963
4978
|
};
|
|
4964
|
-
|
|
4965
|
-
const
|
|
4979
|
+
Hl.Scope = Zn;
|
|
4980
|
+
const Ul = ie(
|
|
4966
4981
|
({
|
|
4967
4982
|
defaultValue: e,
|
|
4968
4983
|
onBlur: s,
|
|
@@ -4974,7 +4989,7 @@ const Hl = ie(
|
|
|
4974
4989
|
value: l,
|
|
4975
4990
|
...f
|
|
4976
4991
|
}, d) => {
|
|
4977
|
-
const [u, m] =
|
|
4992
|
+
const [u, m] = X(""), { value: p, setValue: g } = bt({
|
|
4978
4993
|
component: "IressTagInput",
|
|
4979
4994
|
defaultValue: e,
|
|
4980
4995
|
value: l
|
|
@@ -4986,13 +5001,13 @@ const Hl = ie(
|
|
|
4986
5001
|
r == null || r(w);
|
|
4987
5002
|
return;
|
|
4988
5003
|
}
|
|
4989
|
-
const
|
|
4990
|
-
t == null || t(Ie(
|
|
5004
|
+
const C = [...p ?? [], w];
|
|
5005
|
+
t == null || t(Ie(C), C), g(C);
|
|
4991
5006
|
},
|
|
4992
5007
|
[t, r, g, p]
|
|
4993
5008
|
);
|
|
4994
5009
|
return /* @__PURE__ */ a(
|
|
4995
|
-
|
|
5010
|
+
Ls,
|
|
4996
5011
|
{
|
|
4997
5012
|
...f,
|
|
4998
5013
|
onBlur: (w) => {
|
|
@@ -5001,17 +5016,17 @@ const Hl = ie(
|
|
|
5001
5016
|
onChange: (w) => m(w.currentTarget.value),
|
|
5002
5017
|
onKeyDown: (w) => {
|
|
5003
5018
|
if (i == null || i(w), w.key === "Backspace" && !u) {
|
|
5004
|
-
const
|
|
5005
|
-
t == null || t(Ie(
|
|
5019
|
+
const C = p == null ? void 0 : p.slice(0, -1);
|
|
5020
|
+
t == null || t(Ie(C), C), g(C);
|
|
5006
5021
|
} else if (w.key === "Enter") {
|
|
5007
|
-
const
|
|
5008
|
-
y(
|
|
5022
|
+
const C = w.currentTarget;
|
|
5023
|
+
y(C.value), m("");
|
|
5009
5024
|
}
|
|
5010
5025
|
},
|
|
5011
5026
|
onTagDelete: (w) => {
|
|
5012
5027
|
n == null || n(w);
|
|
5013
|
-
const
|
|
5014
|
-
t == null || t(Ie(
|
|
5028
|
+
const C = p == null ? void 0 : p.filter((x) => x !== w);
|
|
5029
|
+
t == null || t(Ie(C), C), g(C);
|
|
5015
5030
|
},
|
|
5016
5031
|
onTagDeleteAll: (w) => {
|
|
5017
5032
|
o == null || o(w), t == null || t(Ie([]), []), g([]);
|
|
@@ -5023,26 +5038,26 @@ const Hl = ie(
|
|
|
5023
5038
|
);
|
|
5024
5039
|
}
|
|
5025
5040
|
);
|
|
5026
|
-
|
|
5027
|
-
const
|
|
5028
|
-
toast:
|
|
5029
|
-
"start-x": "ids-toast--start-x-
|
|
5030
|
-
"end-x": "ids-toast--end-x-
|
|
5031
|
-
open:
|
|
5032
|
-
"start-y": "ids-toast--start-y-
|
|
5033
|
-
"end-y": "ids-toast--end-y-
|
|
5034
|
-
fade:
|
|
5035
|
-
panel:
|
|
5036
|
-
"toast--error": "ids-toast--toast--error-
|
|
5037
|
-
"toast--success": "ids-toast--toast--success-
|
|
5038
|
-
"toast--info": "ids-toast--toast--info-
|
|
5039
|
-
unmounted:
|
|
5040
|
-
"iress-u-text": "ids-toast--iress-u-text-
|
|
5041
|
-
toast__icon:
|
|
5042
|
-
toast__wrapper:
|
|
5043
|
-
toast__footer:
|
|
5044
|
-
"toast__close-button": "ids-toast--toast__close-button-
|
|
5045
|
-
},
|
|
5041
|
+
Ul.displayName = "IressTagInput";
|
|
5042
|
+
const Wl = "ids-toast-v5142", ql = "ids-toast--open-v5142", Pl = "ids-toast--fade-v5142", jl = "ids-toast--panel-v5142", Ql = "ids-toast--unmounted-v5142", Kl = "ids-toast--toast__icon-v5142", Yl = "ids-toast--toast__wrapper-v5142", Xl = "ids-toast--toast__footer-v5142", Xe = {
|
|
5043
|
+
toast: Wl,
|
|
5044
|
+
"start-x": "ids-toast--start-x-v5142",
|
|
5045
|
+
"end-x": "ids-toast--end-x-v5142",
|
|
5046
|
+
open: ql,
|
|
5047
|
+
"start-y": "ids-toast--start-y-v5142",
|
|
5048
|
+
"end-y": "ids-toast--end-y-v5142",
|
|
5049
|
+
fade: Pl,
|
|
5050
|
+
panel: jl,
|
|
5051
|
+
"toast--error": "ids-toast--toast--error-v5142",
|
|
5052
|
+
"toast--success": "ids-toast--toast--success-v5142",
|
|
5053
|
+
"toast--info": "ids-toast--toast--info-v5142",
|
|
5054
|
+
unmounted: Ql,
|
|
5055
|
+
"iress-u-text": "ids-toast--iress-u-text-v5142",
|
|
5056
|
+
toast__icon: Kl,
|
|
5057
|
+
toast__wrapper: Yl,
|
|
5058
|
+
toast__footer: Xl,
|
|
5059
|
+
"toast__close-button": "ids-toast--toast__close-button-v5142"
|
|
5060
|
+
}, Jl = ({ status: e }) => /* @__PURE__ */ a(
|
|
5046
5061
|
le,
|
|
5047
5062
|
{
|
|
5048
5063
|
name: {
|
|
@@ -5055,7 +5070,7 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5055
5070
|
fixedWidth: !0,
|
|
5056
5071
|
className: Xe.toast__icon
|
|
5057
5072
|
}
|
|
5058
|
-
),
|
|
5073
|
+
), Zl = ({
|
|
5059
5074
|
dismissible: e,
|
|
5060
5075
|
onClose: s,
|
|
5061
5076
|
"data-testid": t
|
|
@@ -5070,7 +5085,7 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5070
5085
|
screenreaderText: "Dismiss"
|
|
5071
5086
|
}
|
|
5072
5087
|
);
|
|
5073
|
-
},
|
|
5088
|
+
}, Gl = ({ actions: e }) => e ? /* @__PURE__ */ a("div", { className: Xe.toast__footer, children: e }) : null, ec = ({
|
|
5074
5089
|
heading: e,
|
|
5075
5090
|
dismissible: s = !0,
|
|
5076
5091
|
onClose: t,
|
|
@@ -5086,7 +5101,7 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5086
5101
|
children: [
|
|
5087
5102
|
e,
|
|
5088
5103
|
/* @__PURE__ */ a(
|
|
5089
|
-
|
|
5104
|
+
Zl,
|
|
5090
5105
|
{
|
|
5091
5106
|
"data-testid": T(o, "close-button__button"),
|
|
5092
5107
|
dismissible: s,
|
|
@@ -5094,10 +5109,10 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5094
5109
|
}
|
|
5095
5110
|
),
|
|
5096
5111
|
r ?? i,
|
|
5097
|
-
/* @__PURE__ */ a(
|
|
5112
|
+
/* @__PURE__ */ a(Gl, { actions: n })
|
|
5098
5113
|
]
|
|
5099
5114
|
}
|
|
5100
|
-
),
|
|
5115
|
+
), tc = ({
|
|
5101
5116
|
heading: e,
|
|
5102
5117
|
headingLevel: s,
|
|
5103
5118
|
headingText: t,
|
|
@@ -5118,10 +5133,10 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5118
5133
|
className: V(u, Xe.toast, Xe[`toast--${r}`]),
|
|
5119
5134
|
tabIndex: -1,
|
|
5120
5135
|
ref: p,
|
|
5121
|
-
children: /* @__PURE__ */ a(
|
|
5122
|
-
/* @__PURE__ */ a(
|
|
5136
|
+
children: /* @__PURE__ */ a($s, { className: V(ht.Base, Xe.panel), children: /* @__PURE__ */ L(et, { gutter: "sm", verticalAlign: "top", noWrap: !0, children: [
|
|
5137
|
+
/* @__PURE__ */ a(Jl, { status: r }),
|
|
5123
5138
|
/* @__PURE__ */ a(
|
|
5124
|
-
|
|
5139
|
+
ec,
|
|
5125
5140
|
{
|
|
5126
5141
|
"data-testid": d,
|
|
5127
5142
|
status: r,
|
|
@@ -5144,18 +5159,10 @@ const Ul = "ids-toast-v5140", Wl = "ids-toast--open-v5140", ql = "ids-toast--fad
|
|
|
5144
5159
|
)
|
|
5145
5160
|
] }) })
|
|
5146
5161
|
}
|
|
5147
|
-
), ln = ie(
|
|
5148
|
-
ln.HeadingLevel =
|
|
5149
|
-
const
|
|
5150
|
-
|
|
5151
|
-
"toaster__bottom-end": "ids-toaster--toaster__bottom-end-v5140",
|
|
5152
|
-
"toaster__bottom-start": "ids-toaster--toaster__bottom-start-v5140",
|
|
5153
|
-
"toaster__bottom-center": "ids-toaster--toaster__bottom-center-v5140",
|
|
5154
|
-
"toaster__top-end": "ids-toaster--toaster__top-end-v5140",
|
|
5155
|
-
"toaster__top-start": "ids-toaster--toaster__top-start-v5140",
|
|
5156
|
-
"toaster__top-center": "ids-toaster--toaster__top-center-v5140"
|
|
5157
|
-
}, sc = (e) => {
|
|
5158
|
-
const s = gs(cn);
|
|
5162
|
+
), ln = ie(tc);
|
|
5163
|
+
ln.HeadingLevel = bs;
|
|
5164
|
+
const sc = (e) => {
|
|
5165
|
+
const s = ys(cn);
|
|
5159
5166
|
if (s === void 0)
|
|
5160
5167
|
throw new Error("useToaster must be used within a IressToasterProvider");
|
|
5161
5168
|
const { show: t, setOptions: r, options: i, close: n } = s;
|
|
@@ -5188,10 +5195,10 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5188
5195
|
timeout: i = 6e3,
|
|
5189
5196
|
...n
|
|
5190
5197
|
}) => {
|
|
5191
|
-
const [o, l] =
|
|
5198
|
+
const [o, l] = X(!0), f = fe(240), { context: d } = ks({
|
|
5192
5199
|
open: o,
|
|
5193
5200
|
onOpenChange: l
|
|
5194
|
-
}), { isMounted: u, status: m } =
|
|
5201
|
+
}), { isMounted: u, status: m } = Fs(d, {
|
|
5195
5202
|
duration: {
|
|
5196
5203
|
close: f.current
|
|
5197
5204
|
}
|
|
@@ -5240,8 +5247,8 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5240
5247
|
{
|
|
5241
5248
|
className: V(
|
|
5242
5249
|
Z.IgnoreStack,
|
|
5243
|
-
|
|
5244
|
-
|
|
5250
|
+
vs.toaster,
|
|
5251
|
+
vs[`toaster__${s}`]
|
|
5245
5252
|
),
|
|
5246
5253
|
gutter: "md",
|
|
5247
5254
|
children: t.map((n) => /* @__PURE__ */ fr(
|
|
@@ -5267,7 +5274,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5267
5274
|
children: e,
|
|
5268
5275
|
...s
|
|
5269
5276
|
}) => {
|
|
5270
|
-
const [t, r] =
|
|
5277
|
+
const [t, r] = X([]), [i, n] = X({
|
|
5271
5278
|
position: "bottom-end",
|
|
5272
5279
|
...s
|
|
5273
5280
|
}), o = (u) => r((m) => m == null ? void 0 : m.filter((p) => p.id !== u)), l = Fe(
|
|
@@ -5297,7 +5304,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5297
5304
|
e,
|
|
5298
5305
|
/* @__PURE__ */ a(nc, { toasts: t, ...i })
|
|
5299
5306
|
] });
|
|
5300
|
-
}, ic = "ids-default-loading--position-
|
|
5307
|
+
}, ic = "ids-default-loading--position-v5142", oc = "ids-default-loading--message-v5142", lr = {
|
|
5301
5308
|
position: ic,
|
|
5302
5309
|
message: oc
|
|
5303
5310
|
}, ac = ({
|
|
@@ -5310,7 +5317,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5310
5317
|
timeout: r = 3e3,
|
|
5311
5318
|
...i
|
|
5312
5319
|
}) => {
|
|
5313
|
-
const [n, o] =
|
|
5320
|
+
const [n, o] = X(!1);
|
|
5314
5321
|
return ee(() => {
|
|
5315
5322
|
const l = setTimeout(() => o(!0), r);
|
|
5316
5323
|
return () => {
|
|
@@ -5323,23 +5330,23 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5323
5330
|
className: V(
|
|
5324
5331
|
lr.position,
|
|
5325
5332
|
s,
|
|
5326
|
-
|
|
5333
|
+
Ce["fade-in"],
|
|
5327
5334
|
{
|
|
5328
|
-
[
|
|
5335
|
+
[Ce["fade-in--active"]]: n
|
|
5329
5336
|
}
|
|
5330
5337
|
),
|
|
5331
5338
|
children: /* @__PURE__ */ a(
|
|
5332
|
-
|
|
5339
|
+
Pe,
|
|
5333
5340
|
{
|
|
5334
|
-
className: V(lr.message,
|
|
5335
|
-
[
|
|
5341
|
+
className: V(lr.message, Ce["slide-in"], {
|
|
5342
|
+
[Ce["slide-in--active"]]: n
|
|
5336
5343
|
}),
|
|
5337
5344
|
children: n ? e : t
|
|
5338
5345
|
}
|
|
5339
5346
|
)
|
|
5340
5347
|
}
|
|
5341
5348
|
);
|
|
5342
|
-
}, lc = "ids-validate-loading--root-
|
|
5349
|
+
}, lc = "ids-validate-loading--root-v5142", cc = "ids-validate-loading--loading-v5142", dc = "ids-validate-loading--message-v5142", uc = "ids-validate-loading--top-v5142", fc = "ids-validate-loading--right-v5142", Ft = {
|
|
5343
5350
|
root: lc,
|
|
5344
5351
|
loading: cc,
|
|
5345
5352
|
message: dc,
|
|
@@ -5357,7 +5364,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5357
5364
|
timeout: l = 2500,
|
|
5358
5365
|
...f
|
|
5359
5366
|
}) => {
|
|
5360
|
-
const [d, u] =
|
|
5367
|
+
const [d, u] = X(l === 0 && t);
|
|
5361
5368
|
return ee(() => {
|
|
5362
5369
|
if (!t) {
|
|
5363
5370
|
u(!1);
|
|
@@ -5379,10 +5386,10 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5379
5386
|
o({ loading: t }),
|
|
5380
5387
|
e,
|
|
5381
5388
|
/* @__PURE__ */ a(
|
|
5382
|
-
|
|
5389
|
+
Pe,
|
|
5383
5390
|
{
|
|
5384
|
-
className: V(Ft.message,
|
|
5385
|
-
[
|
|
5391
|
+
className: V(Ft.message, Ce["fade-next"], {
|
|
5392
|
+
[Ce["fade-next-width"]]: n === "right"
|
|
5386
5393
|
}),
|
|
5387
5394
|
mode: "muted",
|
|
5388
5395
|
children: r
|
|
@@ -5391,7 +5398,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5391
5398
|
]
|
|
5392
5399
|
}
|
|
5393
5400
|
) : o({ loading: t, className: Ft.loading });
|
|
5394
|
-
}, hc = "ids-component-loading--root-
|
|
5401
|
+
}, hc = "ids-component-loading--root-v5142", pc = "ids-component-loading--loaded-v5142", vc = "ids-component-loading--message-v5142", gc = "ids-component-loading--overlay-v5142", yc = "ids-component-loading--overlay-strong-v5142", bc = "ids-component-loading--spinner-v5142", at = {
|
|
5395
5402
|
root: hc,
|
|
5396
5403
|
loaded: pc,
|
|
5397
5404
|
message: vc,
|
|
@@ -5410,7 +5417,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5410
5417
|
update: o,
|
|
5411
5418
|
...l
|
|
5412
5419
|
}) => {
|
|
5413
|
-
const [f, d] =
|
|
5420
|
+
const [f, d] = X(!1), [u, m] = X(!1), p = Se(() => typeof i == "string" && i in cr ? cr[i] : i, [i]);
|
|
5414
5421
|
return ee(() => {
|
|
5415
5422
|
t === !0 && d(!1);
|
|
5416
5423
|
}, [t]), ee(() => {
|
|
@@ -5440,9 +5447,9 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5440
5447
|
className: V(
|
|
5441
5448
|
at.root,
|
|
5442
5449
|
s,
|
|
5443
|
-
|
|
5450
|
+
Ce["fade-in"],
|
|
5444
5451
|
{
|
|
5445
|
-
[
|
|
5452
|
+
[Ce["fade-in--active"]]: f
|
|
5446
5453
|
}
|
|
5447
5454
|
),
|
|
5448
5455
|
...l,
|
|
@@ -5467,10 +5474,10 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5467
5474
|
}
|
|
5468
5475
|
),
|
|
5469
5476
|
o && /* @__PURE__ */ L(
|
|
5470
|
-
|
|
5477
|
+
Pe,
|
|
5471
5478
|
{
|
|
5472
|
-
className: V(at.message,
|
|
5473
|
-
[
|
|
5479
|
+
className: V(at.message, Ce["fade-in"], {
|
|
5480
|
+
[Ce["fade-in--active"]]: u
|
|
5474
5481
|
}),
|
|
5475
5482
|
children: [
|
|
5476
5483
|
/* @__PURE__ */ a(Mt, { className: at.spinner }),
|
|
@@ -5482,7 +5489,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5482
5489
|
]
|
|
5483
5490
|
}
|
|
5484
5491
|
);
|
|
5485
|
-
}, _c = "ids-page-loading--root-
|
|
5492
|
+
}, _c = "ids-page-loading--root-v5142", Sc = "ids-page-loading--critical-v5142", Nc = "ids-page-loading--show-critical-v5142", wc = "ids-page-loading--skeleton-v5142", Ic = "ids-page-loading--hide-template-v5142", $t = {
|
|
5486
5493
|
root: _c,
|
|
5487
5494
|
critical: Sc,
|
|
5488
5495
|
showCritical: Nc,
|
|
@@ -5506,7 +5513,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5506
5513
|
/* @__PURE__ */ a(xe, { textVariant: "lead", width: "200px" })
|
|
5507
5514
|
] })
|
|
5508
5515
|
] }),
|
|
5509
|
-
/* @__PURE__ */ a(
|
|
5516
|
+
/* @__PURE__ */ a(ws, {}),
|
|
5510
5517
|
/* @__PURE__ */ L(ut, { gutter: "lg", children: [
|
|
5511
5518
|
/* @__PURE__ */ a(_t, { span: "4", children: /* @__PURE__ */ a(os, { stretch: !0, children: /* @__PURE__ */ L(lt, { gutter: "md", children: [
|
|
5512
5519
|
/* @__PURE__ */ a(xe, { mode: "rect", height: "300px" }),
|
|
@@ -5534,7 +5541,7 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5534
5541
|
timeout: n = 500,
|
|
5535
5542
|
...o
|
|
5536
5543
|
}) => {
|
|
5537
|
-
const [l, f] =
|
|
5544
|
+
const [l, f] = X(!1), [d, u] = X(!1), [m, p] = X(!1), g = Se(() => typeof i == "string" && i in dr ? dr[i] : i, [i]);
|
|
5538
5545
|
return ee(() => {
|
|
5539
5546
|
const y = setTimeout(() => f(!0), n);
|
|
5540
5547
|
return () => {
|
|
@@ -5554,14 +5561,14 @@ const tc = "ids-toaster-v5140", ar = {
|
|
|
5554
5561
|
"div",
|
|
5555
5562
|
{
|
|
5556
5563
|
...o,
|
|
5557
|
-
className: V(e,
|
|
5558
|
-
[
|
|
5559
|
-
[
|
|
5560
|
-
[
|
|
5564
|
+
className: V(e, $t.root, Ce["fade-in"], {
|
|
5565
|
+
[Ce["fade-in--active"]]: l,
|
|
5566
|
+
[$t.hideTemplate]: d,
|
|
5567
|
+
[$t.showCritical]: m
|
|
5561
5568
|
}),
|
|
5562
5569
|
children: [
|
|
5563
|
-
!m && /* @__PURE__ */ a("div", { className:
|
|
5564
|
-
d && /* @__PURE__ */ a("div", { className:
|
|
5570
|
+
!m && /* @__PURE__ */ a("div", { className: $t.skeleton, children: g }),
|
|
5571
|
+
d && /* @__PURE__ */ a("div", { className: $t.critical, children: s }),
|
|
5565
5572
|
/* @__PURE__ */ a(Rt, { hiddenOn: { xs: !0 }, visuallyHidden: !0, children: r })
|
|
5566
5573
|
]
|
|
5567
5574
|
}
|
|
@@ -5576,7 +5583,7 @@ const dn = ({
|
|
|
5576
5583
|
startFrom: i,
|
|
5577
5584
|
...n
|
|
5578
5585
|
}) => {
|
|
5579
|
-
const o = Se(() => s || (r === "component" || r === "default" || r === "validate" ? 0 : r === "long" ? 1300 : 500), [s, r]), l = Se(() => i || (r === "component" || r === "default" || r === "long" ? 0 : 250), [i, r]), f = fe(!1), [d, u] =
|
|
5586
|
+
const o = Se(() => s || (r === "component" || r === "default" || r === "validate" ? 0 : r === "long" ? 1300 : 500), [s, r]), l = Se(() => i || (r === "component" || r === "default" || r === "long" ? 0 : 250), [i, r]), f = fe(!1), [d, u] = X(!1), m = Ht.shouldRender(d, o, l), [p, g] = X(!1);
|
|
5580
5587
|
ee(() => {
|
|
5581
5588
|
d && !m && (g(!0), t == null || t());
|
|
5582
5589
|
}, [d, t, m]);
|
|
@@ -5593,7 +5600,7 @@ const dn = ({
|
|
|
5593
5600
|
children: p && e
|
|
5594
5601
|
}
|
|
5595
5602
|
),
|
|
5596
|
-
/* @__PURE__ */ a(
|
|
5603
|
+
/* @__PURE__ */ a(Hs, { fallback: null, children: !p && /* @__PURE__ */ a(ur, { onResolved: y, children: !d && e }) })
|
|
5597
5604
|
] }) : /* @__PURE__ */ L(Je, { children: [
|
|
5598
5605
|
m && /* @__PURE__ */ a(
|
|
5599
5606
|
Ht,
|
|
@@ -5603,7 +5610,7 @@ const dn = ({
|
|
|
5603
5610
|
...n
|
|
5604
5611
|
}
|
|
5605
5612
|
),
|
|
5606
|
-
/* @__PURE__ */ a(
|
|
5613
|
+
/* @__PURE__ */ a(Hs, { fallback: null, children: p ? e : /* @__PURE__ */ a(ur, { onResolved: y, children: !d && e }) })
|
|
5607
5614
|
] });
|
|
5608
5615
|
};
|
|
5609
5616
|
dn.use = li;
|
|
@@ -5615,19 +5622,19 @@ const ur = ({
|
|
|
5615
5622
|
e();
|
|
5616
5623
|
}, [e]), s);
|
|
5617
5624
|
export {
|
|
5618
|
-
|
|
5625
|
+
Vs as $,
|
|
5619
5626
|
No as A,
|
|
5620
5627
|
Tr as B,
|
|
5621
5628
|
po as C,
|
|
5622
5629
|
ut as D,
|
|
5623
|
-
|
|
5630
|
+
fl as E,
|
|
5624
5631
|
ss as F,
|
|
5625
|
-
|
|
5632
|
+
zl as G,
|
|
5626
5633
|
Mt as H,
|
|
5627
5634
|
Dt as I,
|
|
5628
|
-
|
|
5635
|
+
Hl as J,
|
|
5629
5636
|
qt as K,
|
|
5630
|
-
|
|
5637
|
+
Ul as L,
|
|
5631
5638
|
ln as M,
|
|
5632
5639
|
cn as N,
|
|
5633
5640
|
Lu as O,
|
|
@@ -5635,9 +5642,9 @@ export {
|
|
|
5635
5642
|
Ht as Q,
|
|
5636
5643
|
dn as R,
|
|
5637
5644
|
Vu as S,
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5645
|
+
tc as T,
|
|
5646
|
+
Qs as U,
|
|
5647
|
+
Ol as V,
|
|
5641
5648
|
vo as W,
|
|
5642
5649
|
go as X,
|
|
5643
5650
|
yo as Y,
|
|
@@ -5645,18 +5652,18 @@ export {
|
|
|
5645
5652
|
Lo as _,
|
|
5646
5653
|
Bo as a,
|
|
5647
5654
|
zr as a0,
|
|
5648
|
-
|
|
5655
|
+
Ls as a1,
|
|
5649
5656
|
Br as a2,
|
|
5650
5657
|
Er as a3,
|
|
5651
|
-
|
|
5652
|
-
|
|
5658
|
+
tl as a4,
|
|
5659
|
+
sl as a5,
|
|
5653
5660
|
Yt as a6,
|
|
5654
5661
|
on as a7,
|
|
5655
5662
|
an as a8,
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5663
|
+
ar as a9,
|
|
5664
|
+
Bl as aa,
|
|
5665
|
+
El as ab,
|
|
5666
|
+
Jl as ac,
|
|
5660
5667
|
rc as ad,
|
|
5661
5668
|
nc as ae,
|
|
5662
5669
|
ac as af,
|
|
@@ -5666,10 +5673,10 @@ export {
|
|
|
5666
5673
|
Re as b,
|
|
5667
5674
|
Ct as c,
|
|
5668
5675
|
Xo as d,
|
|
5669
|
-
|
|
5676
|
+
Rs as e,
|
|
5670
5677
|
la as f,
|
|
5671
5678
|
xa as g,
|
|
5672
|
-
|
|
5679
|
+
Bs as h,
|
|
5673
5680
|
Oa as i,
|
|
5674
5681
|
Rt as j,
|
|
5675
5682
|
le as k,
|
|
@@ -5684,7 +5691,7 @@ export {
|
|
|
5684
5691
|
nn as t,
|
|
5685
5692
|
Ru as u,
|
|
5686
5693
|
Ze as v,
|
|
5687
|
-
|
|
5694
|
+
$o as w,
|
|
5688
5695
|
Vo as x,
|
|
5689
5696
|
oo as y,
|
|
5690
5697
|
xt as z
|