@konstructio/ui 0.1.2-alpha.76 → 0.1.2-alpha.77
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/AdditionalOptions-DiXvUzhu.js +42 -0
- package/dist/Modal-h5H4yxYg.js +128 -0
- package/dist/assets/icons/components/Accounts.js +23 -35
- package/dist/assets/icons/components/AddChart.js +20 -26
- package/dist/assets/icons/components/AlertOutline.js +20 -26
- package/dist/assets/icons/components/AppRepo.js +20 -26
- package/dist/assets/icons/components/Apps.js +20 -26
- package/dist/assets/icons/components/Archives.js +20 -26
- package/dist/assets/icons/components/ArrowDown.js +20 -26
- package/dist/assets/icons/components/ArrowLeft.js +20 -26
- package/dist/assets/icons/components/ArrowRight.js +20 -26
- package/dist/assets/icons/components/ArrowUp.js +19 -25
- package/dist/assets/icons/components/BarChart.js +24 -36
- package/dist/assets/icons/components/BookOpen.js +20 -30
- package/dist/assets/icons/components/CalendarMonth.js +20 -26
- package/dist/assets/icons/components/Check.js +20 -26
- package/dist/assets/icons/components/CheckCircleFilled.js +25 -29
- package/dist/assets/icons/components/CheckCircleOutline.js +20 -26
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +20 -24
- package/dist/assets/icons/components/ClockAlert.js +20 -26
- package/dist/assets/icons/components/ClockOutline.js +20 -26
- package/dist/assets/icons/components/Close.js +20 -26
- package/dist/assets/icons/components/Cloud.js +20 -20
- package/dist/assets/icons/components/CloudLockOutline.js +20 -26
- package/dist/assets/icons/components/Clusters.js +24 -42
- package/dist/assets/icons/components/CogOutline.js +20 -26
- package/dist/assets/icons/components/Copy.js +20 -26
- package/dist/assets/icons/components/Cpu.js +23 -39
- package/dist/assets/icons/components/Cube.js +20 -26
- package/dist/assets/icons/components/Datacenter.js +20 -26
- package/dist/assets/icons/components/Delete.js +20 -26
- package/dist/assets/icons/components/DollarSign.js +20 -28
- package/dist/assets/icons/components/Download.js +20 -26
- package/dist/assets/icons/components/Edit.js +20 -26
- package/dist/assets/icons/components/Ellipses.js +20 -26
- package/dist/assets/icons/components/Environments.js +20 -28
- package/dist/assets/icons/components/Error.js +20 -26
- package/dist/assets/icons/components/ErrorOutline.js +20 -26
- package/dist/assets/icons/components/Exclamation.js +20 -26
- package/dist/assets/icons/components/Git.js +20 -26
- package/dist/assets/icons/components/GitOpsCatalog.js +23 -39
- package/dist/assets/icons/components/GridView.js +20 -20
- package/dist/assets/icons/components/Help.js +25 -23
- package/dist/assets/icons/components/HideOutline.js +23 -35
- package/dist/assets/icons/components/Home.js +20 -26
- package/dist/assets/icons/components/Home2.js +20 -26
- package/dist/assets/icons/components/Id.js +19 -25
- package/dist/assets/icons/components/InfoCircle.js +25 -29
- package/dist/assets/icons/components/InformationOutline.js +20 -26
- package/dist/assets/icons/components/InvoiceList.js +20 -26
- package/dist/assets/icons/components/Key.js +20 -26
- package/dist/assets/icons/components/LightBulb.js +23 -41
- package/dist/assets/icons/components/Loader.js +20 -26
- package/dist/assets/icons/components/Network.js +20 -26
- package/dist/assets/icons/components/PagesStack.js +25 -23
- package/dist/assets/icons/components/Pageview.js +20 -26
- package/dist/assets/icons/components/People.js +20 -26
- package/dist/assets/icons/components/PhotoLibrary.js +19 -25
- package/dist/assets/icons/components/Pipeline.js +20 -28
- package/dist/assets/icons/components/Plus.js +20 -26
- package/dist/assets/icons/components/PowerSettings.js +20 -26
- package/dist/assets/icons/components/Preview.js +20 -26
- package/dist/assets/icons/components/ReceiptLong.js +20 -20
- package/dist/assets/icons/components/Refresh.js +20 -26
- package/dist/assets/icons/components/ScatterPlot.js +20 -20
- package/dist/assets/icons/components/Search.js +25 -30
- package/dist/assets/icons/components/Server.js +20 -26
- package/dist/assets/icons/components/Start.js +20 -26
- package/dist/assets/icons/components/TabNew.js +24 -48
- package/dist/assets/icons/components/Teams.js +20 -26
- package/dist/assets/icons/components/Upload.js +19 -25
- package/dist/assets/icons/components/Warning.js +20 -26
- package/dist/assets/icons/components/WarningTriangle.js +20 -26
- package/dist/assets/icons/components/X.js +20 -26
- package/dist/compiler-runtime-DA41awpA.js +36 -0
- package/dist/components/Alert/Alert.js +78 -61
- package/dist/components/Alert/Alert.variants.js +30 -85
- package/dist/components/AlertDialog/AlertDialog.js +102 -128
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +25 -7
- package/dist/components/Autocomplete/Autocomplete.js +55 -83
- package/dist/components/Autocomplete/Autocomplete.variants.js +1 -21
- package/dist/components/Autocomplete/components/List/List.js +48 -45
- package/dist/components/Autocomplete/components/List/List.variants.js +1 -29
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +74 -58
- package/dist/components/Autocomplete/hooks/useNavigationList.js +68 -62
- package/dist/components/Badge/Badge.js +66 -77
- package/dist/components/Badge/Badge.variants.js +33 -96
- package/dist/components/Breadcrumb/Breadcrumb.js +78 -70
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -7
- package/dist/components/Breadcrumb/components/Item/Item.js +33 -47
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +26 -63
- package/dist/components/Button/Button.js +37 -40
- package/dist/components/Button/Button.variants.js +96 -292
- package/dist/components/ButtonGroup/ButtonGroup.js +101 -138
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +9 -31
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +105 -113
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +48 -94
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +26 -43
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +28 -35
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +63 -61
- package/dist/components/Card/Card.js +35 -35
- package/dist/components/Card/Card.variants.js +25 -37
- package/dist/components/Checkbox/Checkbox.js +247 -268
- package/dist/components/Checkbox/Checkbox.variants.js +18 -65
- package/dist/components/Command/Command.js +46 -38
- package/dist/components/Command/Command.variants.js +1 -44
- package/dist/components/Command/components/Command.js +19 -6
- package/dist/components/Command/components/CommandEmpty.js +11 -13
- package/dist/components/Command/components/CommandGroup.js +19 -17
- package/dist/components/Command/components/CommandInput.js +60 -52
- package/dist/components/Command/components/CommandItem.js +28 -26
- package/dist/components/Command/components/CommandList.js +19 -14
- package/dist/components/Command/components/CommandSeparator.js +19 -14
- package/dist/components/Command/components/CommandShortcut.js +16 -16
- package/dist/components/Command/components/DialogContent.js +35 -29
- package/dist/components/Command/components/DialogOverlay.js +18 -16
- package/dist/components/Command/contexts/Command.provider.js +23 -21
- package/dist/components/Counter/Counter.js +151 -154
- package/dist/components/Counter/Counter.variants.js +6 -53
- package/dist/components/DateRangePicker/DateRangePicker.js +93 -162
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +1 -20
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +81 -115
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +1 -45
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +14 -20
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +50 -57
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +56 -251
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +33 -37
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +30 -95
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -126
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +138 -113
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +2 -16
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +68 -102
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +1 -22
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +55 -90
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +55 -90
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +204 -177
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +58 -63
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +1 -19
- package/dist/components/DateRangePicker/constants/presets.js +16 -7
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +1 -3
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +187 -171
- package/dist/components/DateRangePicker/utils/disabled-dates.js +16 -22
- package/dist/components/DateRangePicker/utils/validation.js +2 -17
- package/dist/components/Datepicker/DatePicker.js +80 -135
- package/dist/components/Divider/Divider.js +18 -7
- package/dist/components/Drawer/Drawer.js +108 -130
- package/dist/components/Drawer/Drawer.variants.js +17 -81
- package/dist/components/Drawer/components/Body/Body.js +18 -21
- package/dist/components/Drawer/components/Footer/Footer.js +18 -23
- package/dist/components/Drawer/components/Header/Header.js +20 -24
- package/dist/components/Drawer/contexts/Drawer.context.js +2 -2
- package/dist/components/Drawer/hooks/useDrawer.js +81 -57
- package/dist/components/DropdownButton/DropdownButton.js +99 -114
- package/dist/components/Filter/Filter.js +40 -29
- package/dist/components/Filter/Filter.variants.js +1 -17
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +128 -94
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +83 -144
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -81
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +66 -120
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +22 -34
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +74 -117
- package/dist/components/Filter/components/ResetButton/ResetButton.js +24 -29
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +83 -135
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +83 -69
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +80 -151
- package/dist/components/Filter/contexts/filter.provider.js +16 -4
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +48 -150
- package/dist/components/ImageUpload/ImageUpload.variants.js +41 -93
- package/dist/components/Input/Input.js +43 -168
- package/dist/components/Input/Input.variants.js +9 -51
- package/dist/components/LineChart/LineChart.js +83 -120
- package/dist/components/Loading/Loading.js +22 -18
- package/dist/components/Loading/Loading.variants.js +1 -8
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Modal/components/Body/Body.js +16 -5
- package/dist/components/Modal/components/Footer/Footer.js +16 -11
- package/dist/components/Modal/components/Header/Header.js +16 -11
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +1 -28
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.js +1 -3
- package/dist/components/Modal/contexts/Modal.provider.js +33 -23
- package/dist/components/Modal/hooks/useModal.js +29 -18
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +26 -32
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +1 -25
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +32 -27
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +13 -32
- package/dist/components/MultiSelectDropdown/components/List/List.js +26 -27
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +1 -21
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +73 -123
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +1 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +128 -131
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +30 -26
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +19 -6
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +9 -39
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +28 -33
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +171 -231
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +7 -41
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +47 -36
- package/dist/components/PhoneNumberInput/components/Wrapper.js +465 -503
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +1 -3
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1163 -1135
- package/dist/components/PieChart/PieChart.js +82 -72
- package/dist/components/ProgressBar/ProgressBar.js +47 -38
- package/dist/components/ProgressBar/ProgressBar.variants.js +11 -28
- package/dist/components/Radio/Radio.js +71 -95
- package/dist/components/Radio/Radio.variants.js +33 -85
- package/dist/components/RadioCard/RadioCard.js +32 -36
- package/dist/components/RadioCardGroup/RadioCardGroup.js +42 -43
- package/dist/components/RadioGroup/RadioGroup.js +48 -48
- package/dist/components/Range/Range.js +83 -61
- package/dist/components/Range/Range.variants.js +19 -49
- package/dist/components/Select/Select.js +52 -65
- package/dist/components/Select/Select.variants.js +13 -66
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +3 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -22
- package/dist/components/Select/components/EmptyList.js +8 -3
- package/dist/components/Select/components/List/List.js +89 -168
- package/dist/components/Select/components/List/List.variants.js +1 -41
- package/dist/components/Select/components/ListItem/ListItem.js +41 -96
- package/dist/components/Select/components/ListItem/ListItem.variants.js +1 -19
- package/dist/components/Select/components/Wrapper.js +110 -233
- package/dist/components/Select/components/index.js +1 -1
- package/dist/components/Select/contexts/select.provider.js +34 -41
- package/dist/components/Select/hooks/useNavigationList.js +50 -44
- package/dist/components/Select/hooks/useSelect.js +104 -94
- package/dist/components/Sidebar/Sidebar.js +26 -21
- package/dist/components/Sidebar/Sidebar.variants.js +1 -27
- package/dist/components/Sidebar/components/Footer/Footer.js +18 -6
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -8
- package/dist/components/Sidebar/components/Logo/Logo.js +18 -6
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -19
- package/dist/components/Sidebar/components/Navigation/Navigation.js +26 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +33 -24
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -24
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +12 -39
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +17 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -5
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +20 -5
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -10
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +21 -60
- package/dist/components/Slider/Slider.js +70 -56
- package/dist/components/Slider/Slider.variants.js +19 -41
- package/dist/components/Spinner/Spinner.js +56 -55
- package/dist/components/Spinner/Spinner.variants.js +19 -45
- package/dist/components/Stepper/Stepper.js +56 -72
- package/dist/components/Stepper/Stepper.variants.js +132 -188
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +151 -197
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +24 -27
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +39 -20
- package/dist/components/Stepper/components/StepItem/StepItem.js +15 -6
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +93 -111
- package/dist/components/Stepper/hooks/useStepItemLogic.js +3 -6
- package/dist/components/Switch/Switch.js +135 -178
- package/dist/components/Switch/Switch.variants.js +1 -40
- package/dist/components/Table/Table.js +29 -25
- package/dist/components/Table/Table.variants.js +6 -30
- package/dist/components/Table/components/Body.js +20 -16
- package/dist/components/Table/components/Filter.js +21 -7
- package/dist/components/Table/components/Head.js +20 -16
- package/dist/components/Table/components/Row.js +28 -26
- package/dist/components/Tabs/Tabs.js +34 -26
- package/dist/components/Tabs/Tabs.variants.js +10 -39
- package/dist/components/Tabs/components/Content.js +23 -14
- package/dist/components/Tabs/components/List.js +28 -19
- package/dist/components/Tabs/components/Trigger.js +25 -21
- package/dist/components/Tag/Tag.js +33 -17
- package/dist/components/Tag/Tag.variants.js +23 -36
- package/dist/components/TagSelect/TagSelect.js +19 -8
- package/dist/components/TagSelect/TagSelect.variants.js +1 -22
- package/dist/components/TagSelect/components/Item/Item.js +24 -18
- package/dist/components/TagSelect/components/Item/Item.variants.js +13 -26
- package/dist/components/TagSelect/components/List/List.js +22 -9
- package/dist/components/TagSelect/components/List/List.variants.js +1 -19
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +68 -84
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +75 -65
- package/dist/components/TagSelect/hooks/useTagSelect.js +30 -26
- package/dist/components/TextArea/TextArea.js +35 -34
- package/dist/components/TextArea/TextArea.variants.js +1 -16
- package/dist/components/TimePicker/TimePicker.js +21 -11
- package/dist/components/TimePicker/TimePicker.variants.js +1 -64
- package/dist/components/TimePicker/components/HoursList/HoursList.js +77 -116
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +79 -88
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +66 -89
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +144 -228
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +44 -75
- package/dist/components/TimePicker/contexts/time-picker.hook.js +1 -3
- package/dist/components/TimePicker/contexts/time-picker.provider.js +76 -58
- package/dist/components/Toast/Toast.js +374 -338
- package/dist/components/Toast/Toast.variants.js +10 -43
- package/dist/components/Tooltip/Tooltip.js +36 -35
- package/dist/components/Typography/Typography.js +26 -23
- package/dist/components/Typography/Typography.variants.js +24 -59
- package/dist/components/VirtualizedTable/VirtualizedTable.js +9 -91
- package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -23
- package/dist/components/VirtualizedTable/assets/chevron-up.js +12 -22
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +62 -115
- package/dist/components/VirtualizedTable/components/Body/Body.js +29 -83
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +104 -165
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +13 -19
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +43 -49
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +116 -174
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +32 -57
- package/dist/components/VirtualizedTable/components/Header/Header.js +61 -98
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +65 -63
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +32 -102
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +51 -58
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +20 -24
- package/dist/components/VirtualizedTable/contexts/table.provider.js +129 -158
- package/dist/components/VirtualizedTable/events/index.js +18 -18
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.provider.js +61 -49
- package/dist/hooks/useToggle.js +10 -8
- package/dist/index-0g-eSmV1.js +142 -0
- package/dist/{index-Jr0cra7i.js → index-B9v5VxE2.js} +6 -6
- package/dist/{index-DWyM654o.js → index-C6mt--X_.js} +5 -5
- package/dist/{index-mPinF0Ho.js → index-CiACf4ao.js} +3 -3
- package/dist/{index-CrCTywU1.js → index-Dy4FVowi.js} +1 -1
- package/dist/{index-Cmf-IG4l.js → index-kTGTSLpq.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +12 -11
- package/dist/{proxy-BvdTb_6B.js → proxy-BGrSEZuV.js} +2001 -1929
- package/dist/utils/index.js +1 -3
- package/package.json +12 -11
- package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
- package/dist/Modal-BTOXCb0Y.js +0 -120
- package/dist/index-C7zAY3xv.js +0 -139
|
@@ -1,652 +1,614 @@
|
|
|
1
1
|
import "./FlagSelectorList/FlagSelectorList.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { jsx as H, jsxs as se } from "react/jsx-runtime";
|
|
3
|
+
import { c as $e } from "../../../compiler-runtime-DA41awpA.js";
|
|
4
|
+
import { i as ze } from "../../../index-BmVmDQGH.js";
|
|
5
|
+
import { useRef as ge, useMemo as He, forwardRef as We, useId as Ze, useImperativeHandle as Je, useEffect as Pe } from "react";
|
|
6
|
+
import { Typography as he } from "../../Typography/Typography.js";
|
|
7
|
+
import { cn as ve } from "../../../utils/index.js";
|
|
8
|
+
import { labelVariants as Ye, phoneNumberInputVariants as Qe } from "../PhoneNumberInput.variants.js";
|
|
9
|
+
import { usePhoneNumberContext as qe } from "../contexts/phone-number.hook.js";
|
|
10
|
+
import { getPhoneMask as Xe } from "../utils/index.js";
|
|
11
|
+
import { FlagContent as et } from "./FlagContent/FlagContent.js";
|
|
12
|
+
import { FlagSelectorWrapper as tt } from "./FlagSelectorWrapper/FlagSelectorWrapper.js";
|
|
13
|
+
function Me(t, n) {
|
|
14
|
+
(n == null || n > t.length) && (n = t.length);
|
|
15
|
+
for (var e = 0, r = Array(n); e < n; e++) r[e] = t[e];
|
|
15
16
|
return r;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
19
|
-
if (
|
|
20
|
-
if (
|
|
21
|
-
return (function(
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
18
|
+
function nt(t, n, e) {
|
|
19
|
+
return n = fe(n), (function(r, a) {
|
|
20
|
+
if (a && (typeof a == "object" || typeof a == "function")) return a;
|
|
21
|
+
if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
22
|
+
return (function(o) {
|
|
23
|
+
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24
|
+
return o;
|
|
24
25
|
})(r);
|
|
25
|
-
})(
|
|
26
|
+
})(t, Ge() ? Reflect.construct(n, e || [], fe(t).constructor) : n.apply(t, e));
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
if (!(
|
|
28
|
+
function rt(t, n) {
|
|
29
|
+
if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
return Object.defineProperty(
|
|
31
|
+
function at(t, n, e) {
|
|
32
|
+
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
var
|
|
35
|
-
if (!
|
|
36
|
-
if (Array.isArray(
|
|
34
|
+
function Re(t, n) {
|
|
35
|
+
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
36
|
+
if (!e) {
|
|
37
|
+
if (Array.isArray(t) || (e = (function(i, u) {
|
|
37
38
|
if (i) {
|
|
38
|
-
if (typeof i == "string") return
|
|
39
|
+
if (typeof i == "string") return Me(i, u);
|
|
39
40
|
var s = {}.toString.call(i).slice(8, -1);
|
|
40
|
-
return s === "Object" && i.constructor && (s = i.constructor.name), s === "Map" || s === "Set" ? Array.from(i) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ?
|
|
41
|
+
return s === "Object" && i.constructor && (s = i.constructor.name), s === "Map" || s === "Set" ? Array.from(i) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? Me(i, u) : void 0;
|
|
41
42
|
}
|
|
42
|
-
})(
|
|
43
|
-
|
|
44
|
-
var r = 0,
|
|
43
|
+
})(t)) || n) {
|
|
44
|
+
e && (t = e);
|
|
45
|
+
var r = 0, a = function() {
|
|
45
46
|
};
|
|
46
|
-
return { s:
|
|
47
|
-
return r >=
|
|
47
|
+
return { s: a, n: function() {
|
|
48
|
+
return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
|
|
48
49
|
}, e: function(i) {
|
|
49
50
|
throw i;
|
|
50
|
-
}, f:
|
|
51
|
+
}, f: a };
|
|
51
52
|
}
|
|
52
53
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
53
54
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
54
55
|
}
|
|
55
|
-
var
|
|
56
|
+
var o, l = !0, c = !1;
|
|
56
57
|
return { s: function() {
|
|
57
|
-
|
|
58
|
+
e = e.call(t);
|
|
58
59
|
}, n: function() {
|
|
59
|
-
var i =
|
|
60
|
+
var i = e.next();
|
|
60
61
|
return l = i.done, i;
|
|
61
62
|
}, e: function(i) {
|
|
62
|
-
|
|
63
|
+
c = !0, o = i;
|
|
63
64
|
}, f: function() {
|
|
64
65
|
try {
|
|
65
|
-
l ||
|
|
66
|
+
l || e.return == null || e.return();
|
|
66
67
|
} finally {
|
|
67
|
-
if (
|
|
68
|
+
if (c) throw o;
|
|
68
69
|
}
|
|
69
70
|
} };
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
return (
|
|
73
|
-
var
|
|
74
|
-
if (typeof
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
var i =
|
|
72
|
+
function Be(t, n, e) {
|
|
73
|
+
return (n = (function(r) {
|
|
74
|
+
var a = (function(o, l) {
|
|
75
|
+
if (typeof o != "object" || !o) return o;
|
|
76
|
+
var c = o[Symbol.toPrimitive];
|
|
77
|
+
if (c !== void 0) {
|
|
78
|
+
var i = c.call(o, l);
|
|
78
79
|
if (typeof i != "object") return i;
|
|
79
80
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
80
81
|
}
|
|
81
|
-
return (l === "string" ? String : Number)(
|
|
82
|
+
return (l === "string" ? String : Number)(o);
|
|
82
83
|
})(r, "string");
|
|
83
|
-
return typeof
|
|
84
|
-
})(
|
|
84
|
+
return typeof a == "symbol" ? a : a + "";
|
|
85
|
+
})(n)) in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
88
|
-
return
|
|
89
|
-
},
|
|
87
|
+
function fe(t) {
|
|
88
|
+
return fe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
89
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
90
|
+
}, fe(t);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
-
if (typeof
|
|
93
|
-
|
|
92
|
+
function ot(t, n) {
|
|
93
|
+
if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
|
|
94
|
+
t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), n && be(t, n);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function Ge() {
|
|
96
97
|
try {
|
|
97
|
-
var
|
|
98
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
98
99
|
})));
|
|
99
100
|
} catch {
|
|
100
101
|
}
|
|
101
|
-
return (
|
|
102
|
-
return !!
|
|
102
|
+
return (Ge = function() {
|
|
103
|
+
return !!t;
|
|
103
104
|
})();
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
-
var
|
|
106
|
+
function Ee(t, n) {
|
|
107
|
+
var e = Object.keys(t);
|
|
107
108
|
if (Object.getOwnPropertySymbols) {
|
|
108
|
-
var r = Object.getOwnPropertySymbols(
|
|
109
|
-
|
|
110
|
-
return Object.getOwnPropertyDescriptor(
|
|
111
|
-
}))),
|
|
109
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
110
|
+
n && (r = r.filter((function(a) {
|
|
111
|
+
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
112
|
+
}))), e.push.apply(e, r);
|
|
112
113
|
}
|
|
113
|
-
return
|
|
114
|
-
}
|
|
115
|
-
function
|
|
116
|
-
for (var
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
121
|
-
Object.defineProperty(
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
function pe(t) {
|
|
117
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
118
|
+
var e = arguments[n] != null ? arguments[n] : {};
|
|
119
|
+
n % 2 ? Ee(Object(e), !0).forEach((function(r) {
|
|
120
|
+
Be(t, r, e[r]);
|
|
121
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Ee(Object(e)).forEach((function(r) {
|
|
122
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
122
123
|
}));
|
|
123
124
|
}
|
|
124
|
-
return
|
|
125
|
+
return t;
|
|
125
126
|
}
|
|
126
|
-
function
|
|
127
|
-
if (
|
|
128
|
-
var
|
|
127
|
+
function it(t, n) {
|
|
128
|
+
if (t == null) return {};
|
|
129
|
+
var e, r, a = (function(l, c) {
|
|
129
130
|
if (l == null) return {};
|
|
130
131
|
var i = {};
|
|
131
|
-
for (var
|
|
132
|
-
if (
|
|
133
|
-
i[
|
|
132
|
+
for (var u in l) if ({}.hasOwnProperty.call(l, u)) {
|
|
133
|
+
if (c.includes(u)) continue;
|
|
134
|
+
i[u] = l[u];
|
|
134
135
|
}
|
|
135
136
|
return i;
|
|
136
|
-
})(
|
|
137
|
+
})(t, n);
|
|
137
138
|
if (Object.getOwnPropertySymbols) {
|
|
138
|
-
var
|
|
139
|
-
for (r = 0; r <
|
|
139
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
140
|
+
for (r = 0; r < o.length; r++) e = o[r], n.includes(e) || {}.propertyIsEnumerable.call(t, e) && (a[e] = t[e]);
|
|
140
141
|
}
|
|
141
|
-
return
|
|
142
|
+
return a;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
145
|
-
return
|
|
146
|
-
},
|
|
144
|
+
function be(t, n) {
|
|
145
|
+
return be = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
|
|
146
|
+
return e.__proto__ = r, e;
|
|
147
|
+
}, be(t, n);
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
149
|
+
function re(t, n) {
|
|
150
|
+
var e, r = n.replacementChars, a = n.replacement, o = n.separate, l = r, c = "", i = Re(t);
|
|
150
151
|
try {
|
|
151
|
-
for (i.s(); !(
|
|
152
|
-
var
|
|
153
|
-
(
|
|
152
|
+
for (i.s(); !(e = i.n()).done; ) {
|
|
153
|
+
var u, s = e.value, p = !Object.prototype.hasOwnProperty.call(a, s) && ((u = a[l[0]]) === null || u === void 0 ? void 0 : u.test(s));
|
|
154
|
+
(o && s === l[0] || p) && (l = l.slice(1), c += s);
|
|
154
155
|
}
|
|
155
|
-
} catch (
|
|
156
|
-
i.e(
|
|
156
|
+
} catch (y) {
|
|
157
|
+
i.e(y);
|
|
157
158
|
} finally {
|
|
158
159
|
i.f();
|
|
159
160
|
}
|
|
160
|
-
return
|
|
161
|
+
return c;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
var
|
|
163
|
+
function xe(t, n) {
|
|
164
|
+
var e, r = n.mask, a = n.replacement, o = n.separate, l = n.showMask, c = 0, i = "", u = Re(r);
|
|
164
165
|
try {
|
|
165
|
-
for (
|
|
166
|
-
var s =
|
|
167
|
-
if (!l &&
|
|
168
|
-
Object.prototype.hasOwnProperty.call(
|
|
166
|
+
for (u.s(); !(e = u.n()).done; ) {
|
|
167
|
+
var s = e.value;
|
|
168
|
+
if (!l && t[c] === void 0) break;
|
|
169
|
+
Object.prototype.hasOwnProperty.call(a, s) && t[c] !== void 0 ? i += t[c++] : i += s;
|
|
169
170
|
}
|
|
170
|
-
} catch (
|
|
171
|
-
|
|
171
|
+
} catch (y) {
|
|
172
|
+
u.e(y);
|
|
172
173
|
} finally {
|
|
173
|
-
|
|
174
|
+
u.f();
|
|
174
175
|
}
|
|
175
|
-
if (
|
|
176
|
-
for (var
|
|
177
|
-
i = i.slice(0,
|
|
176
|
+
if (o && !l) {
|
|
177
|
+
for (var p = r.length - 1; p >= 0 && i[p] === r[p]; p--) ;
|
|
178
|
+
i = i.slice(0, p + 1);
|
|
178
179
|
}
|
|
179
180
|
return i;
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
-
for (var
|
|
183
|
-
var l,
|
|
184
|
-
|
|
182
|
+
function Le(t, n) {
|
|
183
|
+
for (var e = n.mask, r = n.replacement, a = [], o = 0; o < e.length; o++) {
|
|
184
|
+
var l, c = (l = t[o]) !== null && l !== void 0 ? l : e[o], i = Object.prototype.hasOwnProperty.call(r, c) ? "replacement" : t[o] !== void 0 && t[o] !== e[o] ? "input" : "mask";
|
|
185
|
+
a.push({ type: i, value: c, index: o });
|
|
185
186
|
}
|
|
186
|
-
return
|
|
187
|
+
return a;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
189
|
+
function ne(t) {
|
|
190
|
+
return t.length > 0 ? Be({}, t, /./) : {};
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
for (var
|
|
193
|
-
var
|
|
194
|
-
|
|
192
|
+
function Se(t, n) {
|
|
193
|
+
for (var e = n.start, r = e === void 0 ? 0 : e, a = n.end, o = n.mask, l = n.replacement, c = n.separate, i = t.slice(r, a), u = o.slice(r, a), s = "", p = 0; p < u.length; p++) {
|
|
194
|
+
var y = Object.prototype.hasOwnProperty.call(l, u[p]);
|
|
195
|
+
y && i[p] !== void 0 && i[p] !== u[p] ? s += i[p] : y && c && (s += u[p]);
|
|
195
196
|
}
|
|
196
197
|
return s;
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
-
var
|
|
200
|
-
return
|
|
199
|
+
function Ve(t, n) {
|
|
200
|
+
var e = n.mask, r = n.replacement, a = typeof r == "string" ? ne(r) : r, o = RegExp("[^".concat(Object.keys(a).join(""), "]"), "g");
|
|
201
|
+
return xe(re(t, { replacementChars: e.replace(o, ""), replacement: a, separate: !1 }), { mask: e, replacement: a, separate: !1, showMask: !1 });
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
-
var
|
|
204
|
-
return
|
|
203
|
+
function lt(t, n) {
|
|
204
|
+
var e = n.mask, r = n.replacement, a = typeof r == "string" ? ne(r) : r, o = Se(t, { mask: e, replacement: a, separate: !1 }), l = RegExp("[^".concat(Object.keys(a).join(""), "]"), "g");
|
|
205
|
+
return re(o, { replacementChars: e.replace(l, ""), replacement: a, separate: !1 });
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
-
var
|
|
208
|
-
return
|
|
207
|
+
function ct(t, n) {
|
|
208
|
+
var e = n.mask, r = n.replacement, a = typeof r == "string" ? ne(r) : r;
|
|
209
|
+
return Le(Ve(t, { mask: e, replacement: a }), { mask: e, replacement: a });
|
|
209
210
|
}
|
|
210
|
-
var
|
|
211
|
-
function
|
|
212
|
-
return
|
|
211
|
+
var ut = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
|
|
212
|
+
function Ce(t) {
|
|
213
|
+
return ut.includes(t) ? "\\".concat(t) : t;
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
-
for (var
|
|
216
|
-
var
|
|
217
|
-
i === 0 && (
|
|
215
|
+
function st(t, n) {
|
|
216
|
+
for (var e = n.mask, r = n.replacement, a = typeof r == "string" ? ne(r) : r, o = t === "partial" || t === "partial-inexact", l = t === "full" || t === "partial", c = "", i = 0; i < e.length; i++) {
|
|
217
|
+
var u = e[i];
|
|
218
|
+
i === 0 && (c = "^"), o && (c += "("), c += Object.prototype.hasOwnProperty.call(a, u) ? "".concat(l ? "(?!".concat(Ce(u), ")") : "", "(").concat(a[u].source, ")") : Ce(u), i === e.length - 1 && (o && (c += ")?".repeat(e.length)), c += "$");
|
|
218
219
|
}
|
|
219
|
-
return
|
|
220
|
+
return c;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
return new Proxy(
|
|
223
|
-
return r === "current" && (
|
|
222
|
+
function pt(t, n) {
|
|
223
|
+
return new Proxy(t, { set: function(e, r, a) {
|
|
224
|
+
return r === "current" && (a !== t.current && (t.current !== null && n.unregister(t.current), a !== null && n.register(a)), e[r] = a, !0);
|
|
224
225
|
} });
|
|
225
226
|
}
|
|
226
|
-
function
|
|
227
|
-
return
|
|
228
|
-
if (
|
|
229
|
-
if (
|
|
230
|
-
return (function(
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
227
|
+
function ft(t, n, e) {
|
|
228
|
+
return n = oe(n), (function(r, a) {
|
|
229
|
+
if (a && (typeof a == "object" || typeof a == "function")) return a;
|
|
230
|
+
if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
+
return (function(o) {
|
|
232
|
+
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
233
|
+
return o;
|
|
233
234
|
})(r);
|
|
234
|
-
})(
|
|
235
|
+
})(t, we() ? Reflect.construct(n, e || [], oe(t).constructor) : n.apply(t, e));
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
if (!(
|
|
237
|
+
function Fe(t, n) {
|
|
238
|
+
if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
return Object.defineProperty(
|
|
240
|
+
function Ke(t, n, e) {
|
|
241
|
+
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
return (
|
|
244
|
-
var
|
|
245
|
-
if (typeof
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
248
|
-
var i =
|
|
243
|
+
function dt(t, n, e) {
|
|
244
|
+
return (n = (function(r) {
|
|
245
|
+
var a = (function(o, l) {
|
|
246
|
+
if (typeof o != "object" || !o) return o;
|
|
247
|
+
var c = o[Symbol.toPrimitive];
|
|
248
|
+
if (c !== void 0) {
|
|
249
|
+
var i = c.call(o, l);
|
|
249
250
|
if (typeof i != "object") return i;
|
|
250
251
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
251
252
|
}
|
|
252
|
-
return (l === "string" ? String : Number)(
|
|
253
|
+
return (l === "string" ? String : Number)(o);
|
|
253
254
|
})(r, "string");
|
|
254
|
-
return typeof
|
|
255
|
-
})(
|
|
255
|
+
return typeof a == "symbol" ? a : a + "";
|
|
256
|
+
})(n)) in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
259
|
-
return
|
|
260
|
-
},
|
|
258
|
+
function oe(t) {
|
|
259
|
+
return oe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
260
|
+
return n.__proto__ || Object.getPrototypeOf(n);
|
|
261
|
+
}, oe(t);
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
-
if (typeof
|
|
264
|
-
|
|
263
|
+
function mt(t, n) {
|
|
264
|
+
if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
|
|
265
|
+
t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), n && ie(t, n);
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
+
function we() {
|
|
267
268
|
try {
|
|
268
|
-
var
|
|
269
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
269
270
|
})));
|
|
270
271
|
} catch {
|
|
271
272
|
}
|
|
272
|
-
return (
|
|
273
|
-
return !!
|
|
273
|
+
return (we = function() {
|
|
274
|
+
return !!t;
|
|
274
275
|
})();
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
277
|
+
function je(t, n) {
|
|
278
|
+
var e = Object.keys(t);
|
|
278
279
|
if (Object.getOwnPropertySymbols) {
|
|
279
|
-
var r = Object.getOwnPropertySymbols(
|
|
280
|
-
|
|
281
|
-
return Object.getOwnPropertyDescriptor(
|
|
282
|
-
}))),
|
|
280
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
281
|
+
n && (r = r.filter((function(a) {
|
|
282
|
+
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
283
|
+
}))), e.push.apply(e, r);
|
|
283
284
|
}
|
|
284
|
-
return
|
|
285
|
-
}
|
|
286
|
-
function
|
|
287
|
-
for (var
|
|
288
|
-
var
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
292
|
-
Object.defineProperty(
|
|
285
|
+
return e;
|
|
286
|
+
}
|
|
287
|
+
function Te(t) {
|
|
288
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
289
|
+
var e = arguments[n] != null ? arguments[n] : {};
|
|
290
|
+
n % 2 ? je(Object(e), !0).forEach((function(r) {
|
|
291
|
+
dt(t, r, e[r]);
|
|
292
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : je(Object(e)).forEach((function(r) {
|
|
293
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
293
294
|
}));
|
|
294
295
|
}
|
|
295
|
-
return
|
|
296
|
+
return t;
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
-
if (
|
|
299
|
-
var
|
|
298
|
+
function ht(t, n) {
|
|
299
|
+
if (t == null) return {};
|
|
300
|
+
var e, r, a = (function(l, c) {
|
|
300
301
|
if (l == null) return {};
|
|
301
302
|
var i = {};
|
|
302
|
-
for (var
|
|
303
|
-
if (
|
|
304
|
-
i[
|
|
303
|
+
for (var u in l) if ({}.hasOwnProperty.call(l, u)) {
|
|
304
|
+
if (c.includes(u)) continue;
|
|
305
|
+
i[u] = l[u];
|
|
305
306
|
}
|
|
306
307
|
return i;
|
|
307
|
-
})(
|
|
308
|
+
})(t, n);
|
|
308
309
|
if (Object.getOwnPropertySymbols) {
|
|
309
|
-
var
|
|
310
|
-
for (r = 0; r <
|
|
310
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
311
|
+
for (r = 0; r < o.length; r++) e = o[r], n.includes(e) || {}.propertyIsEnumerable.call(t, e) && (a[e] = t[e]);
|
|
311
312
|
}
|
|
312
|
-
return
|
|
313
|
+
return a;
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
-
return
|
|
316
|
-
return
|
|
317
|
-
},
|
|
315
|
+
function ie(t, n) {
|
|
316
|
+
return ie = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
|
|
317
|
+
return e.__proto__ = r, e;
|
|
318
|
+
}, ie(t, n);
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
var
|
|
321
|
-
return
|
|
322
|
-
if (
|
|
320
|
+
function Oe(t) {
|
|
321
|
+
var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
322
|
+
return Oe = function(e) {
|
|
323
|
+
if (e === null || !(function(a) {
|
|
323
324
|
try {
|
|
324
|
-
return Function.toString.call(
|
|
325
|
+
return Function.toString.call(a).indexOf("[native code]") !== -1;
|
|
325
326
|
} catch {
|
|
326
|
-
return typeof
|
|
327
|
+
return typeof a == "function";
|
|
327
328
|
}
|
|
328
|
-
})(
|
|
329
|
-
if (typeof
|
|
330
|
-
if (
|
|
331
|
-
if (
|
|
332
|
-
|
|
329
|
+
})(e)) return e;
|
|
330
|
+
if (typeof e != "function") throw new TypeError("Super expression must either be null or a function");
|
|
331
|
+
if (n !== void 0) {
|
|
332
|
+
if (n.has(e)) return n.get(e);
|
|
333
|
+
n.set(e, r);
|
|
333
334
|
}
|
|
334
335
|
function r() {
|
|
335
|
-
return (function(
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
var i = new (
|
|
340
|
-
return l &&
|
|
341
|
-
})(
|
|
336
|
+
return (function(a, o, l) {
|
|
337
|
+
if (we()) return Reflect.construct.apply(null, arguments);
|
|
338
|
+
var c = [null];
|
|
339
|
+
c.push.apply(c, o);
|
|
340
|
+
var i = new (a.bind.apply(a, c))();
|
|
341
|
+
return l && ie(i, l.prototype), i;
|
|
342
|
+
})(e, arguments, oe(this).constructor);
|
|
342
343
|
}
|
|
343
|
-
return r.prototype = Object.create(
|
|
344
|
-
},
|
|
344
|
+
return r.prototype = Object.create(e.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), ie(r, e);
|
|
345
|
+
}, Oe(t);
|
|
345
346
|
}
|
|
346
|
-
var
|
|
347
|
-
function
|
|
347
|
+
var ae = (function(t) {
|
|
348
|
+
function n(e) {
|
|
348
349
|
var r;
|
|
349
|
-
return
|
|
350
|
+
return Fe(this, n), (r = ft(this, n, [e])).name = "SyntheticChangeError", r;
|
|
350
351
|
}
|
|
351
|
-
return
|
|
352
|
-
})(
|
|
353
|
-
var
|
|
354
|
-
|
|
355
|
-
var
|
|
356
|
-
this.register = function(
|
|
352
|
+
return mt(n, t), Ke(n);
|
|
353
|
+
})(Oe(Error)), Ie, vt = ["options"], Ne = ["text", "email", "tel", "search", "url"], De = Ke((function t(n) {
|
|
354
|
+
var e = n.init, r = n.tracking;
|
|
355
|
+
Fe(this, t);
|
|
356
|
+
var a = /* @__PURE__ */ new WeakMap();
|
|
357
|
+
this.register = function(o) {
|
|
357
358
|
var l;
|
|
358
|
-
if (
|
|
359
|
-
var
|
|
360
|
-
Object.defineProperty(
|
|
361
|
-
var
|
|
362
|
-
|
|
363
|
-
} })),
|
|
364
|
-
var
|
|
365
|
-
var
|
|
366
|
-
var
|
|
367
|
-
|
|
359
|
+
if (Ne.includes(o.type)) {
|
|
360
|
+
var c = (l = o._wrapperState) !== null && l !== void 0 ? l : {}, i = c.initialValue, u = i === void 0 ? "" : i, s = c.controlled, p = s !== void 0 && s, y = e({ initialValue: o.value || u, controlled: p }), k = y.value, C = y.options, m = { value: k, options: C, fallbackOptions: C }, d = { id: -1, cachedId: -1 }, f = { value: "", selectionStart: 0, selectionEnd: 0 }, b = Object.getOwnPropertyDescriptor("_valueTracker" in o ? o : HTMLInputElement.prototype, "value");
|
|
361
|
+
Object.defineProperty(o, "value", Te(Te({}, b), {}, { set: function(w) {
|
|
362
|
+
var g;
|
|
363
|
+
f.value = w, b == null || (g = b.set) === null || g === void 0 || g.call(o, w);
|
|
364
|
+
} })), o.value = k;
|
|
365
|
+
var S = function() {
|
|
366
|
+
var w = function() {
|
|
367
|
+
var g, j;
|
|
368
|
+
f.selectionStart = (g = o.selectionStart) !== null && g !== void 0 ? g : 0, f.selectionEnd = (j = o.selectionEnd) !== null && j !== void 0 ? j : 0, d.id = window.setTimeout(w);
|
|
368
369
|
};
|
|
369
|
-
|
|
370
|
-
},
|
|
371
|
-
window.clearTimeout(
|
|
372
|
-
},
|
|
370
|
+
d.id = window.setTimeout(w);
|
|
371
|
+
}, N = function() {
|
|
372
|
+
window.clearTimeout(d.id), d.id = -1, d.cachedId = -1;
|
|
373
|
+
}, h = function(w) {
|
|
373
374
|
try {
|
|
374
|
-
var
|
|
375
|
-
if (
|
|
376
|
-
|
|
377
|
-
var P =
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
375
|
+
var g, j;
|
|
376
|
+
if (d.cachedId === d.id) throw new ae("The input selection has not been updated.");
|
|
377
|
+
d.cachedId = d.id;
|
|
378
|
+
var P = o.value, M = o.selectionStart, B = o.selectionEnd;
|
|
379
|
+
if (M === null || B === null) throw new ae("The selection attributes have not been initialized.");
|
|
380
|
+
var v, T = f.value;
|
|
381
|
+
if (w.inputType === void 0 && (f.selectionStart = 0, f.selectionEnd = T.length), M > f.selectionStart ? v = "insert" : M <= f.selectionStart && M < f.selectionEnd ? v = "deleteBackward" : M === f.selectionEnd && P.length < T.length && (v = "deleteForward"), v === void 0 || (v === "deleteBackward" || v === "deleteForward") && P.length > T.length) throw new ae("Input type detection error.");
|
|
382
|
+
var E = "", D = f.selectionStart, A = f.selectionEnd;
|
|
383
|
+
if (v === "insert") E = P.slice(f.selectionStart, M);
|
|
383
384
|
else {
|
|
384
|
-
var
|
|
385
|
-
|
|
385
|
+
var x = T.length - P.length;
|
|
386
|
+
D = M, A = M + x;
|
|
386
387
|
}
|
|
387
|
-
|
|
388
|
-
var
|
|
389
|
-
|
|
390
|
-
} catch (
|
|
391
|
-
if (
|
|
388
|
+
m.value !== T ? m.options = m.fallbackOptions : m.fallbackOptions = m.options;
|
|
389
|
+
var L = m.options, O = r({ inputType: v, previousValue: T, previousOptions: L, value: P, addedValue: E, changeStart: D, changeEnd: A, selectionStart: M, selectionEnd: B }), V = O.options, I = ht(O, vt);
|
|
390
|
+
o.value = I.value, o.setSelectionRange(I.selectionStart, I.selectionEnd), m.value = I.value, m.options = V, f.selectionStart = I.selectionStart, f.selectionEnd = I.selectionEnd, (g = o._valueTracker) === null || g === void 0 || (j = g.setValue) === null || j === void 0 || j.call(g, T);
|
|
391
|
+
} catch (F) {
|
|
392
|
+
if (o.value = f.value, o.setSelectionRange(f.selectionStart, f.selectionEnd), w.preventDefault(), w.stopPropagation(), F.name !== "SyntheticChangeError") throw F;
|
|
392
393
|
}
|
|
393
394
|
};
|
|
394
|
-
document.activeElement ===
|
|
395
|
-
} else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(
|
|
396
|
-
}, this.unregister = function(
|
|
397
|
-
var l =
|
|
398
|
-
l !== void 0 && (
|
|
395
|
+
document.activeElement === o && S(), o.addEventListener("focus", S), o.addEventListener("blur", N), o.addEventListener("input", h), a.set(o, { onFocus: S, onBlur: N, onInput: h });
|
|
396
|
+
} else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(Ne.join(", "), "."));
|
|
397
|
+
}, this.unregister = function(o) {
|
|
398
|
+
var l = a.get(o);
|
|
399
|
+
l !== void 0 && (o.removeEventListener("focus", l.onFocus), o.removeEventListener("blur", l.onBlur), o.removeEventListener("input", l.onInput), a.delete(o));
|
|
399
400
|
};
|
|
400
401
|
}));
|
|
401
|
-
|
|
402
|
-
var
|
|
402
|
+
Ie = De, Object.defineProperty(Ie.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Input" });
|
|
403
|
+
var ye = function(t) {
|
|
403
404
|
return function() {
|
|
404
|
-
for (var
|
|
405
|
-
return new
|
|
405
|
+
for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++) e[r] = arguments[r];
|
|
406
|
+
return new t("".concat(e.join(`
|
|
406
407
|
|
|
407
408
|
`), `
|
|
408
409
|
`));
|
|
409
410
|
};
|
|
410
|
-
},
|
|
411
|
-
function
|
|
412
|
-
var
|
|
413
|
-
return { mask: (
|
|
414
|
-
}
|
|
415
|
-
var
|
|
416
|
-
function
|
|
417
|
-
var
|
|
418
|
-
return
|
|
419
|
-
var
|
|
420
|
-
return
|
|
421
|
-
var
|
|
422
|
-
|
|
423
|
-
var
|
|
424
|
-
return
|
|
411
|
+
}, Ae, yt = ["track", "modify"];
|
|
412
|
+
function te(t) {
|
|
413
|
+
var n, e, r, a;
|
|
414
|
+
return { mask: (n = t.mask) !== null && n !== void 0 ? n : "", replacement: typeof t.replacement == "string" ? ne(t.replacement) : (e = t.replacement) !== null && e !== void 0 ? e : {}, showMask: (r = t.showMask) !== null && r !== void 0 && r, separate: (a = t.separate) !== null && a !== void 0 && a, track: t.track, modify: t.modify };
|
|
415
|
+
}
|
|
416
|
+
var Ue = (function(t) {
|
|
417
|
+
function n() {
|
|
418
|
+
var e, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
419
|
+
return rt(this, n), (e = nt(this, n, [{ init: function(a) {
|
|
420
|
+
var o = a.initialValue, l = a.controlled, c = te(r), i = c.mask, u = c.replacement, s = c.separate, p = c.showMask;
|
|
421
|
+
return o = l || o ? o : p ? i : "", process.env.NODE_ENV !== "production" && (function(y) {
|
|
422
|
+
var k = y.initialValue, C = y.mask, m = y.replacement;
|
|
423
|
+
k.length > C.length && console.error(ye(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(k, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
424
|
+
var d = Object.keys(m).filter((function(h) {
|
|
425
|
+
return h.length > 1;
|
|
425
426
|
}));
|
|
426
|
-
|
|
427
|
-
for (var
|
|
428
|
-
var
|
|
429
|
-
if (!(
|
|
430
|
-
|
|
427
|
+
d.length > 0 && console.error(ye(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(d.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
428
|
+
for (var f = C.slice(0, k.length), b = -1, S = 0; S < f.length; S++) {
|
|
429
|
+
var N = Object.prototype.hasOwnProperty.call(m, f[S]);
|
|
430
|
+
if (!(f[S] === k[S] || N && m[f[S]].test(k[S]))) {
|
|
431
|
+
b = S;
|
|
431
432
|
break;
|
|
432
433
|
}
|
|
433
434
|
}
|
|
434
|
-
|
|
435
|
-
})({ initialValue:
|
|
436
|
-
}, tracking: function(
|
|
437
|
-
var
|
|
438
|
-
if (
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
if (
|
|
444
|
-
if (
|
|
445
|
-
var
|
|
446
|
-
|
|
435
|
+
b !== -1 && console.error(ye(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(b, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(k, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
436
|
+
})({ initialValue: o, mask: i, replacement: u }), { value: o, options: { mask: i, replacement: u, separate: s } };
|
|
437
|
+
}, tracking: function(a) {
|
|
438
|
+
var o = a.inputType, l = a.previousValue, c = a.previousOptions, i = a.addedValue, u = a.changeStart, s = a.changeEnd, p = te(r), y = p.track, k = p.modify, C = it(p, yt), m = C.mask, d = C.replacement, f = C.showMask, b = C.separate, S = pe(pe({}, o === "insert" ? { inputType: o, data: i } : { inputType: o, data: null }), {}, { value: l, selectionStart: u, selectionEnd: s }), N = y?.(S);
|
|
439
|
+
if (N === !1) throw new ae("Custom tracking stop.");
|
|
440
|
+
N === null ? i = "" : N !== !0 && N !== void 0 && (i = N);
|
|
441
|
+
var h = k?.(S);
|
|
442
|
+
h?.mask !== void 0 && (m = h.mask), h?.replacement !== void 0 && (d = typeof h?.replacement == "string" ? ne(h?.replacement) : h.replacement), h?.showMask !== void 0 && (f = h.showMask), h?.separate !== void 0 && (b = h.separate);
|
|
443
|
+
var w = Se(l, pe({ end: u }, c)), g = Se(l, pe({ start: s }, c)), j = RegExp("[^".concat(Object.keys(d).join(""), "]"), "g"), P = m.replace(j, "");
|
|
444
|
+
if (w && (w = re(w, { replacementChars: P, replacement: d, separate: b }), P = P.slice(w.length)), i && (i = re(i, { replacementChars: P, replacement: d, separate: !1 }), P = P.slice(i.length)), o === "insert" && i === "") throw new ae("The character does not match the key value of the `replacement` object.");
|
|
445
|
+
if (b) {
|
|
446
|
+
var M = m.slice(u, s).replace(j, ""), B = M.length - i.length;
|
|
447
|
+
B < 0 ? g = g.slice(-B) : B > 0 && (g = M.slice(-B) + g);
|
|
447
448
|
}
|
|
448
|
-
|
|
449
|
-
var
|
|
450
|
-
var
|
|
451
|
-
var
|
|
452
|
-
return
|
|
453
|
-
})),
|
|
454
|
-
if (
|
|
455
|
-
if (
|
|
456
|
-
if (
|
|
457
|
-
if (
|
|
449
|
+
g && (g = re(g, { replacementChars: P, replacement: d, separate: b }));
|
|
450
|
+
var v = xe(w + i + g, { mask: m, replacement: d, separate: b, showMask: f }), T = (function(E) {
|
|
451
|
+
var D, A, x, L = E.inputType, O = E.value, V = E.addedValue, I = E.beforeChangeValue, F = E.mask, W = E.replacement, Z = E.separate, U = Le(O, { mask: F, replacement: W }).filter((function($) {
|
|
452
|
+
var K = $.type;
|
|
453
|
+
return K === "input" || Z && K === "replacement";
|
|
454
|
+
})), _ = (D = U[I.length + V.length - 1]) === null || D === void 0 ? void 0 : D.index, G = (A = U[I.length - 1]) === null || A === void 0 ? void 0 : A.index, R = (x = U[I.length + V.length]) === null || x === void 0 ? void 0 : x.index;
|
|
455
|
+
if (L === "insert") {
|
|
456
|
+
if (_ !== void 0) return _ + 1;
|
|
457
|
+
if (R !== void 0) return R;
|
|
458
|
+
if (G !== void 0) return G + 1;
|
|
458
459
|
}
|
|
459
|
-
if (
|
|
460
|
-
if (
|
|
461
|
-
if (
|
|
460
|
+
if (L === "deleteForward") {
|
|
461
|
+
if (R !== void 0) return R;
|
|
462
|
+
if (G !== void 0) return G + 1;
|
|
462
463
|
}
|
|
463
|
-
if (
|
|
464
|
-
if (
|
|
465
|
-
if (
|
|
464
|
+
if (L === "deleteBackward") {
|
|
465
|
+
if (G !== void 0) return G + 1;
|
|
466
|
+
if (R !== void 0) return R;
|
|
466
467
|
}
|
|
467
|
-
var
|
|
468
|
-
return Object.prototype.hasOwnProperty.call(
|
|
468
|
+
var J = O.split("").findIndex((function($) {
|
|
469
|
+
return Object.prototype.hasOwnProperty.call(W, $);
|
|
469
470
|
}));
|
|
470
|
-
return
|
|
471
|
-
})({ inputType:
|
|
472
|
-
return { value:
|
|
473
|
-
} }])).format = function(
|
|
474
|
-
return
|
|
475
|
-
},
|
|
476
|
-
return
|
|
477
|
-
},
|
|
478
|
-
return
|
|
479
|
-
},
|
|
480
|
-
return
|
|
481
|
-
},
|
|
471
|
+
return J !== -1 ? J : O.length;
|
|
472
|
+
})({ inputType: o, value: v, addedValue: i, beforeChangeValue: w, mask: m, replacement: d, separate: b });
|
|
473
|
+
return { value: v, selectionStart: T, selectionEnd: T, options: { mask: m, replacement: d, separate: b } };
|
|
474
|
+
} }])).format = function(a) {
|
|
475
|
+
return Ve(a, te(r));
|
|
476
|
+
}, e.formatToParts = function(a) {
|
|
477
|
+
return ct(a, te(r));
|
|
478
|
+
}, e.unformat = function(a) {
|
|
479
|
+
return lt(a, te(r));
|
|
480
|
+
}, e.generatePattern = function(a) {
|
|
481
|
+
return st(a, te(r));
|
|
482
|
+
}, e;
|
|
482
483
|
}
|
|
483
|
-
return
|
|
484
|
+
return ot(n, De), at(n);
|
|
484
485
|
})();
|
|
485
|
-
|
|
486
|
-
function
|
|
487
|
-
var
|
|
488
|
-
return i.current.mask =
|
|
489
|
-
return
|
|
486
|
+
Ae = Ue, Object.defineProperty(Ae.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
|
|
487
|
+
function gt() {
|
|
488
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.mask, e = t.replacement, r = t.showMask, a = t.separate, o = t.track, l = t.modify, c = ge(null), i = ge({ mask: n, replacement: e, showMask: r, separate: a, track: o, modify: l });
|
|
489
|
+
return i.current.mask = n, i.current.replacement = e, i.current.showMask = r, i.current.separate = a, i.current.track = o, i.current.modify = l, He((function() {
|
|
490
|
+
return pt(c, new Ue(i.current));
|
|
490
491
|
}), []);
|
|
491
492
|
}
|
|
492
|
-
const
|
|
493
|
-
locale:
|
|
494
|
-
countries:
|
|
493
|
+
const bt = "en", St = { AF: "Afghanistan", AL: "Albania", DZ: "Algeria", AS: "American Samoa", AD: "Andorra", AO: "Angola", AI: "Anguilla", AQ: "Antarctica", AG: "Antigua and Barbuda", AR: "Argentina", AM: "Armenia", AW: "Aruba", AU: "Australia", AT: "Austria", AZ: "Azerbaijan", BS: "Bahamas", BH: "Bahrain", BD: "Bangladesh", BB: "Barbados", BY: "Belarus", BE: "Belgium", BZ: "Belize", BJ: "Benin", BM: "Bermuda", BT: "Bhutan", BO: "Bolivia", BA: "Bosnia and Herzegovina", BW: "Botswana", BV: "Bouvet Island", BR: "Brazil", IO: "British Indian Ocean Territory", BN: "Brunei Darussalam", BG: "Bulgaria", BF: "Burkina Faso", BI: "Burundi", KH: "Cambodia", CM: "Cameroon", CA: "Canada", CV: "Cape Verde", KY: "Cayman Islands", CF: "Central African Republic", TD: "Chad", CL: "Chile", CN: ["People's Republic of China", "China"], CX: "Christmas Island", CC: "Cocos (Keeling) Islands", CO: "Colombia", KM: "Comoros", CG: ["Republic of the Congo", "Congo"], CD: ["Democratic Republic of the Congo", "Congo"], CK: "Cook Islands", CR: "Costa Rica", CI: ["Cote d'Ivoire", "Côte d'Ivoire", "Ivory Coast"], HR: "Croatia", CU: "Cuba", CY: "Cyprus", CZ: ["Czech Republic", "Czechia"], DK: "Denmark", DJ: "Djibouti", DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: "Egypt", SV: "El Salvador", GQ: "Equatorial Guinea", ER: "Eritrea", EE: "Estonia", ET: "Ethiopia", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: "Fiji", FI: "Finland", FR: "France", GF: "French Guiana", PF: "French Polynesia", TF: "French Southern Territories", GA: "Gabon", GM: ["Republic of The Gambia", "The Gambia", "Gambia"], GE: "Georgia", DE: "Germany", GH: "Ghana", GI: "Gibraltar", GR: "Greece", GL: "Greenland", GD: "Grenada", GP: "Guadeloupe", GU: "Guam", GT: "Guatemala", GN: "Guinea", GW: "Guinea-Bissau", GY: "Guyana", HT: "Haiti", HM: "Heard Island and McDonald Islands", VA: "Holy See (Vatican City State)", HN: "Honduras", HK: "Hong Kong", HU: "Hungary", IS: "Iceland", IN: "India", ID: "Indonesia", IR: ["Islamic Republic of Iran", "Iran"], IQ: "Iraq", IE: "Ireland", IL: "Israel", IT: "Italy", JM: "Jamaica", JP: "Japan", JO: "Jordan", KZ: "Kazakhstan", KE: "Kenya", KI: "Kiribati", KP: "North Korea", KR: ["South Korea", "Korea, Republic of", "Republic of Korea"], KW: "Kuwait", KG: "Kyrgyzstan", LA: "Lao People's Democratic Republic", LV: "Latvia", LB: "Lebanon", LS: "Lesotho", LR: "Liberia", LY: "Libya", LI: "Liechtenstein", LT: "Lithuania", LU: "Luxembourg", MO: "Macao", MG: "Madagascar", MW: "Malawi", MY: "Malaysia", MV: "Maldives", ML: "Mali", MT: "Malta", MH: "Marshall Islands", MQ: "Martinique", MR: "Mauritania", MU: "Mauritius", YT: "Mayotte", MX: "Mexico", FM: "Micronesia, Federated States of", MD: "Moldova, Republic of", MC: "Monaco", MN: "Mongolia", MS: "Montserrat", MA: "Morocco", MZ: "Mozambique", MM: "Myanmar", NA: "Namibia", NR: "Nauru", NP: "Nepal", NL: ["Netherlands", "The Netherlands", "Netherlands (Kingdom of the)"], NC: "New Caledonia", NZ: "New Zealand", NI: "Nicaragua", NE: "Niger", NG: "Nigeria", NU: "Niue", NF: "Norfolk Island", MK: ["The Republic of North Macedonia", "North Macedonia"], MP: "Northern Mariana Islands", NO: "Norway", OM: "Oman", PK: "Pakistan", PW: "Palau", PS: ["State of Palestine", "Palestine"], PA: "Panama", PG: "Papua New Guinea", PY: "Paraguay", PE: "Peru", PH: "Philippines", PN: ["Pitcairn", "Pitcairn Islands"], PL: "Poland", PT: "Portugal", PR: "Puerto Rico", QA: "Qatar", RE: "Reunion", RO: "Romania", RU: ["Russian Federation", "Russia"], RW: "Rwanda", SH: "Saint Helena", KN: "Saint Kitts and Nevis", LC: "Saint Lucia", PM: "Saint Pierre and Miquelon", VC: "Saint Vincent and the Grenadines", WS: "Samoa", SM: "San Marino", ST: "Sao Tome and Principe", SA: "Saudi Arabia", SN: "Senegal", SC: "Seychelles", SL: "Sierra Leone", SG: "Singapore", SK: "Slovakia", SI: "Slovenia", SB: "Solomon Islands", SO: "Somalia", ZA: "South Africa", GS: "South Georgia and the South Sandwich Islands", ES: "Spain", LK: "Sri Lanka", SD: "Sudan", SR: "Suriname", SJ: "Svalbard and Jan Mayen", SZ: "Eswatini", SE: "Sweden", CH: "Switzerland", SY: "Syrian Arab Republic", TW: ["Taiwan, Province of China", "Taiwan"], TJ: "Tajikistan", TZ: ["United Republic of Tanzania", "Tanzania"], TH: "Thailand", TL: "Timor-Leste", TG: "Togo", TK: "Tokelau", TO: "Tonga", TT: "Trinidad and Tobago", TN: "Tunisia", TR: ["Türkiye", "Turkey"], TM: "Turkmenistan", TC: "Turks and Caicos Islands", TV: "Tuvalu", UG: "Uganda", UA: "Ukraine", AE: ["United Arab Emirates", "UAE"], GB: ["United Kingdom", "UK", "Great Britain"], US: ["United States of America", "United States", "USA", "U.S.A.", "US", "U.S."], UM: "United States Minor Outlying Islands", UY: "Uruguay", UZ: "Uzbekistan", VU: "Vanuatu", VE: "Venezuela", VN: "Vietnam", VG: "Virgin Islands, British", VI: "Virgin Islands, U.S.", WF: "Wallis and Futuna", EH: "Western Sahara", YE: "Yemen", ZM: "Zambia", ZW: "Zimbabwe", AX: ["Åland Islands", "Aland Islands"], BQ: "Bonaire, Sint Eustatius and Saba", CW: "Curaçao", GG: "Guernsey", IM: "Isle of Man", JE: "Jersey", ME: "Montenegro", BL: "Saint Barthélemy", MF: "Saint Martin (French part)", RS: "Serbia", SX: "Sint Maarten (Dutch part)", SS: "South Sudan", XK: "Kosovo" }, Ot = {
|
|
494
|
+
locale: bt,
|
|
495
|
+
countries: St
|
|
495
496
|
};
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
(
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
...y
|
|
612
|
-
}
|
|
613
|
-
)
|
|
614
|
-
] }),
|
|
615
|
-
E && /* @__PURE__ */ B(
|
|
616
|
-
Ue,
|
|
617
|
-
{
|
|
618
|
-
placeholder: c,
|
|
619
|
-
showFlagOnSearch: s,
|
|
620
|
-
showInputFilter: f,
|
|
621
|
-
showNameOnSearch: S,
|
|
622
|
-
showPlaceHolder: j
|
|
623
|
-
}
|
|
624
|
-
)
|
|
625
|
-
]
|
|
626
|
-
}
|
|
627
|
-
),
|
|
628
|
-
t ? /* @__PURE__ */ B(
|
|
629
|
-
X,
|
|
630
|
-
{
|
|
631
|
-
component: "span",
|
|
632
|
-
className: "text-xs text-red-700 dark:text-red-500",
|
|
633
|
-
children: t
|
|
634
|
-
}
|
|
635
|
-
) : null,
|
|
636
|
-
!t && n ? /* @__PURE__ */ B(
|
|
637
|
-
X,
|
|
638
|
-
{
|
|
639
|
-
component: "span",
|
|
640
|
-
className: ee(
|
|
641
|
-
"text-xs kubefirst-dark:text-slate-200",
|
|
642
|
-
r
|
|
643
|
-
),
|
|
644
|
-
children: n
|
|
645
|
-
}
|
|
646
|
-
) : null
|
|
647
|
-
] });
|
|
648
|
-
}
|
|
649
|
-
);
|
|
497
|
+
ze.registerLocale(Ot);
|
|
498
|
+
const Bt = We((t, n) => {
|
|
499
|
+
const e = $e.c(80);
|
|
500
|
+
let r, a, o, l, c, i, u, s, p, y, k, C, m, d, f, b;
|
|
501
|
+
e[0] !== t ? ({
|
|
502
|
+
disabled: C,
|
|
503
|
+
error: a,
|
|
504
|
+
helperText: o,
|
|
505
|
+
helperTextClassName: l,
|
|
506
|
+
isRequired: c,
|
|
507
|
+
label: i,
|
|
508
|
+
labelClassName: u,
|
|
509
|
+
labelWrapperClassName: s,
|
|
510
|
+
name: p,
|
|
511
|
+
placeholder: y,
|
|
512
|
+
showFlagOnSearch: m,
|
|
513
|
+
showInputFilter: d,
|
|
514
|
+
showNameOnSearch: f,
|
|
515
|
+
wrapperClassName: b,
|
|
516
|
+
showPlaceHolder: k,
|
|
517
|
+
...r
|
|
518
|
+
} = t, e[0] = t, e[1] = r, e[2] = a, e[3] = o, e[4] = l, e[5] = c, e[6] = i, e[7] = u, e[8] = s, e[9] = p, e[10] = y, e[11] = k, e[12] = C, e[13] = m, e[14] = d, e[15] = f, e[16] = b) : (r = e[1], a = e[2], o = e[3], l = e[4], c = e[5], i = e[6], u = e[7], s = e[8], p = e[9], y = e[10], k = e[11], C = e[12], m = e[13], d = e[14], f = e[15], b = e[16]);
|
|
519
|
+
const S = C === void 0 ? !1 : C, N = m === void 0 ? !0 : m, h = d === void 0 ? !0 : d, w = f === void 0 ? !0 : f, g = Ze(), j = p ?? g, P = ge(null), {
|
|
520
|
+
isOpenSelector: M,
|
|
521
|
+
value: B,
|
|
522
|
+
selectedCountry: v,
|
|
523
|
+
onChangeValue: T,
|
|
524
|
+
handleOpenSelector: E
|
|
525
|
+
} = qe(), D = typeof a == "string" && a.length >= 0;
|
|
526
|
+
let A;
|
|
527
|
+
e[17] !== v ? (A = Xe(v), e[17] = v, e[18] = A) : A = e[18];
|
|
528
|
+
let x;
|
|
529
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
530
|
+
_: /\d/
|
|
531
|
+
}, e[19] = x) : x = e[19];
|
|
532
|
+
let L;
|
|
533
|
+
e[20] !== A ? (L = {
|
|
534
|
+
mask: A,
|
|
535
|
+
replacement: x
|
|
536
|
+
}, e[20] = A, e[21] = L) : L = e[21];
|
|
537
|
+
const O = gt(L);
|
|
538
|
+
let V, I;
|
|
539
|
+
e[22] !== O ? (V = () => O.current, I = [O], e[22] = O, e[23] = V, e[24] = I) : (V = e[23], I = e[24]), Je(n, V, I);
|
|
540
|
+
let F;
|
|
541
|
+
e[25] !== T || e[26] !== v.prefix ? (F = (z) => {
|
|
542
|
+
z.target.value.startsWith(v.prefix) ? T(z.target.value) : T(`${v.prefix} `);
|
|
543
|
+
}, e[25] = T, e[26] = v.prefix, e[27] = F) : F = e[27];
|
|
544
|
+
const W = F;
|
|
545
|
+
let Z, U;
|
|
546
|
+
e[28] !== E ? (Z = () => {
|
|
547
|
+
const z = new AbortController(), ke = (me) => {
|
|
548
|
+
me.key === "Escape" && E(!1);
|
|
549
|
+
}, _e = (me) => {
|
|
550
|
+
P.current?.contains(me.target) || E(!1);
|
|
551
|
+
};
|
|
552
|
+
return document.addEventListener("keydown", ke, {
|
|
553
|
+
signal: z.signal
|
|
554
|
+
}), document.addEventListener("mousedown", _e, {
|
|
555
|
+
signal: z.signal
|
|
556
|
+
}), document.addEventListener("visibilitychange", () => {
|
|
557
|
+
document.hidden && E(!1);
|
|
558
|
+
}, {
|
|
559
|
+
signal: z.signal
|
|
560
|
+
}), () => {
|
|
561
|
+
z.abort();
|
|
562
|
+
};
|
|
563
|
+
}, U = [E, P], e[28] = E, e[29] = Z, e[30] = U) : (Z = e[29], U = e[30]), Pe(Z, U);
|
|
564
|
+
let _;
|
|
565
|
+
e[31] !== O || e[32] !== v.prefix ? (_ = () => {
|
|
566
|
+
O.current && (O.current.value = v.prefix + " ");
|
|
567
|
+
}, e[31] = O, e[32] = v.prefix, e[33] = _) : _ = e[33];
|
|
568
|
+
let G;
|
|
569
|
+
e[34] !== v.code ? (G = [v.code], e[34] = v.code, e[35] = G) : G = e[35], Pe(_, G);
|
|
570
|
+
let R;
|
|
571
|
+
e[36] !== S || e[37] !== j || e[38] !== O || e[39] !== c || e[40] !== i || e[41] !== u || e[42] !== s ? (R = i ? /* @__PURE__ */ H("div", { className: ve(s), children: /* @__PURE__ */ se("label", { id: j, className: Ye({
|
|
572
|
+
className: u
|
|
573
|
+
}), onClick: () => !S && O.current?.focus(), children: [
|
|
574
|
+
i,
|
|
575
|
+
c && /* @__PURE__ */ H(he, { component: "span", className: "text-red-600 dark:text-red-500 ml-1", children: "*" })
|
|
576
|
+
] }) }) : null, e[36] = S, e[37] = j, e[38] = O, e[39] = c, e[40] = i, e[41] = u, e[42] = s, e[43] = R) : R = e[43];
|
|
577
|
+
const J = M ? "open" : "closed", $ = D ? "error" : "default";
|
|
578
|
+
let K;
|
|
579
|
+
e[44] !== $ || e[45] !== b ? (K = Qe({
|
|
580
|
+
className: b,
|
|
581
|
+
variant: $
|
|
582
|
+
}), e[44] = $, e[45] = b, e[46] = K) : K = e[46];
|
|
583
|
+
let le;
|
|
584
|
+
e[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ H(et, {}), e[47] = le) : le = e[47];
|
|
585
|
+
const de = i ? j : void 0;
|
|
586
|
+
let ce;
|
|
587
|
+
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = ve("outline-0", "w-full", "caret-slate-800", "text-slate-800", "bg-transparent", "dark:caret-metal-50", "dark:text-metal-50", "disabled:cursor-not-allowed", "disabled:opacity-50"), e[48] = ce) : ce = e[48];
|
|
588
|
+
let Y;
|
|
589
|
+
e[49] !== r || e[50] !== S || e[51] !== O || e[52] !== p || e[53] !== W || e[54] !== de || e[55] !== B ? (Y = /* @__PURE__ */ se("div", { className: "p-2 flex items-center gap-2.5", children: [
|
|
590
|
+
le,
|
|
591
|
+
/* @__PURE__ */ H("input", { id: de, ref: O, name: p, autoComplete: "off", className: ce, type: "tel", inputMode: "tel", value: B, onChange: W, disabled: S, ...r })
|
|
592
|
+
] }), e[49] = r, e[50] = S, e[51] = O, e[52] = p, e[53] = W, e[54] = de, e[55] = B, e[56] = Y) : Y = e[56];
|
|
593
|
+
let Q;
|
|
594
|
+
e[57] !== M || e[58] !== y || e[59] !== N || e[60] !== h || e[61] !== w || e[62] !== k ? (Q = M && /* @__PURE__ */ H(tt, { placeholder: y, showFlagOnSearch: N, showInputFilter: h, showNameOnSearch: w, showPlaceHolder: k }), e[57] = M, e[58] = y, e[59] = N, e[60] = h, e[61] = w, e[62] = k, e[63] = Q) : Q = e[63];
|
|
595
|
+
let q;
|
|
596
|
+
e[64] !== J || e[65] !== K || e[66] !== Y || e[67] !== Q ? (q = /* @__PURE__ */ se("div", { ref: P, "data-state": J, className: K, children: [
|
|
597
|
+
Y,
|
|
598
|
+
Q
|
|
599
|
+
] }), e[64] = J, e[65] = K, e[66] = Y, e[67] = Q, e[68] = q) : q = e[68];
|
|
600
|
+
let X;
|
|
601
|
+
e[69] !== a ? (X = a ? /* @__PURE__ */ H(he, { component: "span", className: "text-xs text-red-700 dark:text-red-500", children: a }) : null, e[69] = a, e[70] = X) : X = e[70];
|
|
602
|
+
let ee;
|
|
603
|
+
e[71] !== a || e[72] !== o || e[73] !== l ? (ee = !a && o ? /* @__PURE__ */ H(he, { component: "span", className: ve("text-xs kubefirst-dark:text-slate-200", l), children: o }) : null, e[71] = a, e[72] = o, e[73] = l, e[74] = ee) : ee = e[74];
|
|
604
|
+
let ue;
|
|
605
|
+
return e[75] !== R || e[76] !== q || e[77] !== X || e[78] !== ee ? (ue = /* @__PURE__ */ se("div", { className: "w-full flex flex-col gap-2", children: [
|
|
606
|
+
R,
|
|
607
|
+
q,
|
|
608
|
+
X,
|
|
609
|
+
ee
|
|
610
|
+
] }), e[75] = R, e[76] = q, e[77] = X, e[78] = ee, e[79] = ue) : ue = e[79], ue;
|
|
611
|
+
});
|
|
650
612
|
export {
|
|
651
|
-
|
|
613
|
+
Bt as Wrapper
|
|
652
614
|
};
|