@unchainedshop/admin-ui 4.8.26 → 4.8.28
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/chunk-2RTX42IE.js +2083 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/chunk-7PPOGX7R.js +581 -0
- package/dist/chunk-COV7BREX.js +50 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-F2TCVEQX.js +514 -0
- package/dist/chunk-GY2DRQGW.js +166 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-JAVEZY3Q.js +65 -0
- package/dist/chunk-KCN7DDPH.js +1116 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-MSPWYMDY.js +665 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QNLGYFV7.js +22 -0
- package/dist/chunk-QWQ3WJJN.js +1 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-RORNAN2J.js +12 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-VDKQGOMV.js +840 -0
- package/dist/chunk-XHOCXPD5.js +9 -0
- package/dist/chunk-XJBPMIC4.js +284 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-YZGQJJCD.js +37 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +19 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +7 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +17 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +41 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +28310 -0
- package/dist/gql/operation-types.d.ts +13043 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3820 -0
- package/dist/gql/schema-types.d.ts.map +1 -0
- package/dist/gql/types.d.ts +3 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +42 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +118 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1169 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1126 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +51 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +374 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +448 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +569 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +270 -0
- package/dist/modules/product.js +1925 -0
- package/dist/modules/quotation.js +317 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +320 -0
- package/dist/plugins.js +13 -0
- package/dist/providers.js +6 -0
- package/dist/sdk/hooks.d.ts +9 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +78 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
- package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client.d.ts +3 -0
- package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
- package/dist/sdk/shims/host.d.ts +17 -0
- package/dist/sdk/shims/host.d.ts.map +1 -0
- package/dist/sdk/shims/next-head.d.ts +3 -0
- package/dist/sdk/shims/next-head.d.ts.map +1 -0
- package/dist/sdk/shims/next-image.d.ts +3 -0
- package/dist/sdk/shims/next-image.d.ts.map +1 -0
- package/dist/sdk/shims/next-link.d.ts +3 -0
- package/dist/sdk/shims/next-link.d.ts.map +1 -0
- package/dist/sdk/shims/next-router.d.ts +3 -0
- package/dist/sdk/shims/next-router.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom-client.d.ts +3 -0
- package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom.d.ts +3 -0
- package/dist/sdk/shims/react-dom.d.ts.map +1 -0
- package/dist/sdk/shims/react-hook-form.d.ts +3 -0
- package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
- package/dist/sdk/shims/react-intl.d.ts +3 -0
- package/dist/sdk/shims/react-intl.d.ts.map +1 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
- package/dist/sdk/shims/react-toastify.d.ts +3 -0
- package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
- package/dist/sdk/shims/react.d.ts +3 -0
- package/dist/sdk/shims/react.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/shims/admin-ui-plugins.js +9 -0
- package/dist/shims/apollo-client-react.js +25 -0
- package/dist/shims/apollo-client.js +55 -0
- package/dist/shims/next-head.js +9 -0
- package/dist/shims/next-image.js +9 -0
- package/dist/shims/next-link.js +9 -0
- package/dist/shims/next-router.js +13 -0
- package/dist/shims/react-dom-client.js +11 -0
- package/dist/shims/react-dom.js +22 -0
- package/dist/shims/react-hook-form.js +25 -0
- package/dist/shims/react-intl.js +37 -0
- package/dist/shims/react-jsx-runtime.js +11 -0
- package/dist/shims/react-toastify.js +16 -0
- package/dist/shims/react.js +52 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +19358 -0
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/04bb4k67x398t.js +1 -0
- package/out/_next/static/chunks/{2g0f0awj5p2qc.js → 06a1c2sikfkdk.js} +4 -4
- package/out/_next/static/chunks/{036jcj4okqca4.js → 06tejx8u1_0kg.js} +1 -1
- package/out/_next/static/chunks/{3u3tcrl7wxrzi.js → 0amvl_hv6wa7d.js} +5 -5
- package/out/_next/static/chunks/{2rw-r9fvx6t4y.js → 0bx11n-vs9rye.js} +5 -5
- package/out/_next/static/chunks/0fiwxqhlo_suy.js +14 -0
- package/out/_next/static/chunks/{18e-92lfg29wn.js → 0g1ikcsz2gw8d.js} +8 -8
- package/out/_next/static/chunks/{1bhsgjj7bbftc.js → 0g6hr3dmen536.js} +2 -2
- package/out/_next/static/chunks/{1r0jyqmys60fw.js → 0hg96-q-sy8p3.js} +5 -5
- package/out/_next/static/chunks/{21lf0tu71e9e5.js → 0irr04sbnadk8.js} +8 -8
- package/out/_next/static/chunks/{0pj6j2o4ya0xs.js → 0pp2j5ys0s75h.js} +8 -8
- package/out/_next/static/chunks/{3k98cr566roh-.js → 0prynyrvhm7ef.js} +2 -2
- package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
- package/out/_next/static/chunks/{2cnc1jkfc85_x.js → 0t-8fvpr3gwkw.js} +4 -4
- package/out/_next/static/chunks/{1_g-csysa-i-9.js → 0w0zigi7aws2m.js} +1 -1
- package/out/_next/static/chunks/{1w_4l5gk0n27a.js → 0w6403ca0wd40.js} +5 -5
- package/out/_next/static/chunks/{1mo_wvf-1w8h-.js → 0x34_uvhgol1o.js} +5 -5
- package/out/_next/static/chunks/{2p6deqdf8dlo0.js → 11496j8y5izl0.js} +7 -7
- package/out/_next/static/chunks/{0dvf7ltl55td_.js → 16b-fme2lvyik.js} +6 -6
- package/out/_next/static/chunks/{0l3hp2c6_v3vu.js → 17rvdo97_73-r.js} +5 -5
- package/out/_next/static/chunks/{1gv6j3dx9s71x.js → 17t_4qy79-xou.js} +6 -6
- package/out/_next/static/chunks/{2v0koj5wv-png.js → 194e8b6x5qm5k.js} +5 -5
- package/out/_next/static/chunks/{0yhj5b33a-dp1.js → 1asyhd18d8b19.js} +12 -12
- package/out/_next/static/chunks/{40v94fy15qxej.js → 1dj6rtr2zagxl.js} +5 -5
- package/out/_next/static/chunks/{0172idn4wi-am.js → 1dv2thnikolnz.js} +6 -6
- package/out/_next/static/chunks/1f8hl62epp2bs.js +5 -0
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +1 -0
- package/out/_next/static/chunks/{2vy8ae-zwwle1.js → 1ikc8-ca87tw_.js} +8 -8
- package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 1pv3s5pi4mn-7.js} +8 -8
- package/out/_next/static/chunks/{404_8bnljpu18.js → 1qnsi9q49l6yt.js} +5 -5
- package/out/_next/static/chunks/{4188i5qe83m24.js → 1s5id04nxpmov.js} +7 -7
- package/out/_next/static/chunks/{05dtc5uryjkmn.js → 1u56ggvtfz1pw.js} +5 -5
- package/out/_next/static/chunks/{37rq4vcfobv9x.js → 1u9myfa-qi11x.js} +5 -5
- package/out/_next/static/chunks/{3dbskin37ha12.js → 1vmcguc9yb6gq.js} +6 -6
- package/out/_next/static/chunks/{0-b63f3cwlt9h.js → 1w30h0skp16nw.js} +5 -5
- package/out/_next/static/chunks/{1hpx7xjq9a5bq.js → 1wrffo12-xpad.js} +5 -5
- package/out/_next/static/chunks/{3-h5nu9jontfy.js → 1yi1a106ht-nz.js} +6 -6
- package/out/_next/static/chunks/{1epelh6347c59.js → 1zh3wmaf2a0wq.js} +9 -9
- package/out/_next/static/chunks/{1o41sjh1nhwir.js → 1zmw93-y4onb8.js} +7 -7
- package/out/_next/static/chunks/{3yqw8z_udrol0.js → 201rx84kyo8ag.js} +1 -1
- package/out/_next/static/chunks/22ial6oluoicg.js +100 -0
- package/out/_next/static/chunks/{21c515liq8_sf.js → 22mbms24up6d4.js} +4 -4
- package/out/_next/static/chunks/{1f536itbgwelp.js → 23thyqnxwb_h4.js} +6 -6
- package/out/_next/static/chunks/{2_0bsdj7k4kue.js → 24zql9mxp7je7.js} +5 -5
- package/out/_next/static/chunks/{31j6x_qgtn-7j.js → 26qclo9iliv0v.js} +5 -5
- package/out/_next/static/chunks/{2vhqw66fy605y.js → 2_kc34rl9smyf.js} +6 -6
- package/out/_next/static/chunks/{0c1eqd9oamcur.js → 2ay53yz_k-gka.js} +6 -6
- package/out/_next/static/chunks/{1k703f4i1hgfy.js → 2cl2qh-t0bp-x.js} +6 -6
- package/out/_next/static/chunks/{30zp6-w17u9rt.js → 2impwm9m10-y5.js} +6 -6
- package/out/_next/static/chunks/{3s18b668qqa87.js → 2mq7-oeknij50.js} +6 -6
- package/out/_next/static/chunks/{2f8qzo__ksyu7.js → 2puhcafuku-tt.js} +6 -6
- package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 2qocgb90m12d8.js} +1 -1
- package/out/_next/static/chunks/{2z5b35yv3i6aq.js → 2r9etl_ej7yq8.js} +5 -5
- package/out/_next/static/chunks/{0dtahnosgvou_.js → 2s6eb6877qk5z.js} +5 -5
- package/out/_next/static/chunks/{2b_lhf_533k0a.js → 2slrs8mk6-_qy.js} +7 -7
- package/out/_next/static/chunks/2t724bghemjmf.js +28 -0
- package/out/_next/static/chunks/{20wamkfz03l6l.js → 2u435g-3ydo_e.js} +6 -6
- package/out/_next/static/chunks/{0k433cermb_mg.js → 2vv2odme20_bj.js} +11 -11
- package/out/_next/static/chunks/{2-ciniqgtu96t.js → 2yjnzxw72qkwa.js} +4 -4
- package/out/_next/static/chunks/{40bl8g3_13c59.js → 2ypcj5e-tv2ki.js} +4 -4
- package/out/_next/static/chunks/{3wm88ukxj8u46.js → 31yuk0tzdgnsq.js} +6 -6
- package/out/_next/static/chunks/33tjpl4-mac6i.js +10 -0
- package/out/_next/static/chunks/36yth4lm03_j8.js +1 -0
- package/out/_next/static/chunks/{2eo4m196-t6ed.js → 389rjxe1t1mxi.js} +4 -4
- package/out/_next/static/chunks/{378867ti5yucc.js → 3a7wm2331v13r.js} +1 -1
- package/out/_next/static/chunks/{27tp9qrxhs6uf.js → 3dshohnaq5dpb.js} +7 -7
- package/out/_next/static/chunks/{0c2th4nk1xlfd.js → 3e-hohr5rbfgs.js} +6 -6
- package/out/_next/static/chunks/{0o16fnqhx30be.js → 3e2sowyws346l.js} +6 -6
- package/out/_next/static/chunks/{2y9z7y6i5cawj.js → 3gl6y4hg4xqh1.js} +5 -5
- package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 3js2_oj1o86yv.js} +9 -9
- package/out/_next/static/chunks/{17wc5344qnib1.js → 3nnzjetbwg4mr.js} +5 -5
- package/out/_next/static/chunks/{1v16gcok-ktdo.js → 3oxv1fo564rrf.js} +1 -1
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +1 -0
- package/out/_next/static/chunks/3sktz8258so64.js +2 -0
- package/out/_next/static/chunks/{3-av_88np5f5_.js → 3t-cwqu-9qfvs.js} +4 -4
- package/out/_next/static/chunks/{2o7wjpjbr5vau.js → 3tn3fjkayia2l.js} +5 -5
- package/out/_next/static/chunks/{1bp_0jnta8nj1.js → 3v-4df_kpu7wl.js} +6 -6
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +1 -0
- package/out/_next/static/chunks/42gvqnnznu5d5.js +10 -0
- package/out/_next/static/chunks/{03_e40kzqm4nj.js → 44hx7evqwmlix.js} +4 -4
- package/out/_next/static/chunks/{turbopack-0bljt1tp0zt4q.js → turbopack-0-h3wxx12zewd.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3xem4akmi9at9.js → turbopack-0-huij9pkr6i5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3-kzs1xrhesa8.js → turbopack-00ka03s4zfhmk.js} +1 -1
- package/out/_next/static/chunks/turbopack-00rnle9d3h5j8.js +1 -0
- package/out/_next/static/chunks/{turbopack-1gbk68s3o1ulv.js → turbopack-0a9my88c0do8o.js} +1 -1
- package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-0ah23ustnbjgw.js} +1 -1
- package/out/_next/static/chunks/turbopack-0bj4v4kbzidiu.js +1 -0
- package/out/_next/static/chunks/{turbopack-3zxsk_hikkrwx.js → turbopack-0ca90b_8se2ws.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1bnaj5x8w5m6z.js → turbopack-0hwktepjs4shu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-328hjoqts5fe-.js → turbopack-0iqoh65_n4y31.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0j92hsdmi8k6p.js → turbopack-0m53ts1akyqg9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1k2h3st-nygbo.js → turbopack-0mp6vcjbi4oj6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-08u3rgl_09tb7.js → turbopack-0p995f9piwklo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ywznohf-p_-1.js → turbopack-0pdfslh_xau4v.js} +1 -1
- package/out/_next/static/chunks/{turbopack-15x3cqzaaew93.js → turbopack-0q1m4v0r5_pw-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cbhwv4g0ak0q.js → turbopack-0wc1wpl3t5cbf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34gjko7_04blz.js → turbopack-0wu_ea8477kfb.js} +1 -1
- package/out/_next/static/chunks/{turbopack-26z9lzkojt-cx.js → turbopack-0x-489k903f9f.js} +1 -1
- package/out/_next/static/chunks/{turbopack-252a5rlyrq9fk.js → turbopack-11i280gb7ytob.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3cnuj1vf45306.js → turbopack-11mgtsuzuth10.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w3-o4vpw_tgq.js → turbopack-14elmv-0t42r4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-10l1gows-lyo9.js → turbopack-18b89oxgeg1p3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0jijm5fs2d3pa.js → turbopack-1j4b2o2gyndaw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3qmjh91o7wte5.js → turbopack-1kg_x57lhnhln.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2xm-84om1nxe3.js → turbopack-1m20zbo-8iwfh.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34cd6px36-_ae.js → turbopack-1rmdtpi005n_6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bp88aylp19tu.js → turbopack-1sy__tr_jpy9p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0hpk8f7-2xoz3.js → turbopack-22l2qxvuvnfnm.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3ma-qc75tctdd.js → turbopack-259f81vw0sjro.js} +1 -1
- package/out/_next/static/chunks/{turbopack-42akqkt4irsps.js → turbopack-25n3ygfcffvqv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3ouyppea8jp6k.js → turbopack-2ah1mf3i_019l.js} +1 -1
- package/out/_next/static/chunks/{turbopack-272y7gt3ncsq7.js → turbopack-2d2i6sp7ig7ar.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0i_uv1p6_dyo-.js → turbopack-2dog_ytiydz1b.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3591lq9bl5zm-.js → turbopack-2dp-kk65cjuz1.js} +1 -1
- package/out/_next/static/chunks/turbopack-2kbsoz95aykk8.js +1 -0
- package/out/_next/static/chunks/{turbopack-3n_3uj335tm0n.js → turbopack-2rnunhgad49uw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2h3q2k9k2riyq.js → turbopack-2u8czufggehlj.js} +1 -1
- package/out/_next/static/chunks/{turbopack-06hufy_7yovzw.js → turbopack-2v6rz3zo07si0.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25bgi6hb6qg8w.js → turbopack-2w27fkgilqbl3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0cu-maxx6s175.js → turbopack-2x4qn8b3l97el.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3uov6gvwwuxmx.js → turbopack-31liqa7xywfc3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-14qzcqdgveoel.js → turbopack-32aublis-jlvx.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34rebh56g2zjd.js → turbopack-3467hrkyb1r4-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3aujkr72l5znq.js → turbopack-35lc2tzfqfnq3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3mxiudedhdbib.js → turbopack-37465j0f7qzui.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3seov_dvv8im-.js → turbopack-374ar5091nfoc.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2jpit5njafpgz.js → turbopack-37k0iid3ve75q.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3np05fneli2gv.js → turbopack-37z02xo4d9761.js} +1 -1
- package/out/_next/static/chunks/{turbopack-22r1qh8g6munp.js → turbopack-3aw_3x16wx0hg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2b14t7jx5tgn7.js → turbopack-3d4st1erykui5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0nlhzx_9rg6_p.js → turbopack-3nxt9w32_n_vs.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-3p03o8o_0h4o1.js} +1 -1
- package/out/_next/static/chunks/turbopack-3qenf92gnhnqu.js +1 -0
- package/out/_next/static/chunks/{turbopack-148_1qw3wae7d.js → turbopack-3s9690f4fp1sr.js} +1 -1
- package/out/_next/static/chunks/{turbopack-13nb0axu41yph.js → turbopack-3v-9xb14o2wcf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3opb94dwpz7bg.js → turbopack-3wy9kdvqtyrqr.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2cvqtdfi5z-33.js → turbopack-3xy1pj-av41-3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-3z_pmy149cb3t.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1r4g2xna7gckz.js → turbopack-3zk-yr-2ktefz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2ihmy6dk991x4.js → turbopack-400v7uvt-ygyn.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1ddkj8w1l0b4_.js → turbopack-41jswgtq4l3-n.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0rt_vkqrb6ykb.js → turbopack-42kawbzqb610r.js} +1 -1
- package/out/_next/static/chunks/{turbopack-25hv3ltvy0wos.js → turbopack-430a09gmn8rwm.js} +1 -1
- package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_buildManifest.js +62 -62
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/manifest.json +48 -0
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +2 -2
- package/out/_next/static/chunks/0cm0oyd82zvez.js +0 -1
- package/out/_next/static/chunks/119eyvb0tl4d7.js +0 -5
- package/out/_next/static/chunks/1shkyosfbiwr4.js +0 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
- package/out/_next/static/chunks/1yv01jo2m1gkf.js +0 -1
- package/out/_next/static/chunks/2cwzp5h99c8es.js +0 -10
- package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
- package/out/_next/static/chunks/3-hdz4_6asex-.js +0 -10
- package/out/_next/static/chunks/31_pg1fxqgdfx.js +0 -14
- package/out/_next/static/chunks/3bxtyo0u_psf7.js +0 -1
- package/out/_next/static/chunks/3f-ap6wo94un_.js +0 -1
- package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
- package/out/_next/static/chunks/3rnl7-84z1op5.js +0 -28
- package/out/_next/static/chunks/turbopack-3-84r4h6w7ztq.js +0 -1
- package/out/_next/static/chunks/turbopack-3x5pttfv2qlpw.js +0 -1
- package/out/_next/static/chunks/turbopack-3z9v3oefxw81i.js +0 -1
- package/out/_next/static/chunks/turbopack-44bpgib3rn1s2.js +0 -1
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → lMHTn15MSw1RJOw-DD9ir}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
export { __commonJS, __export, __require, __toESM };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/modules/common/hooks/useLocalStorage.ts
|
|
4
|
+
var useLocalStorage = (key, initialValue) => {
|
|
5
|
+
const [storedValue, setStoredValue] = useState(() => {
|
|
6
|
+
try {
|
|
7
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
8
|
+
const item = window.localStorage.getItem(key);
|
|
9
|
+
return item ? JSON.parse(item) : initialValue;
|
|
10
|
+
}
|
|
11
|
+
return initialValue;
|
|
12
|
+
} catch (error) {
|
|
13
|
+
return initialValue;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const setValue = (value) => {
|
|
17
|
+
try {
|
|
18
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
19
|
+
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
20
|
+
setStoredValue(valueToStore);
|
|
21
|
+
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
|
22
|
+
} else {
|
|
23
|
+
console.error("localStorage is not available");
|
|
24
|
+
}
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error(error);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return [storedValue, setValue];
|
|
30
|
+
};
|
|
31
|
+
var useLocalStorage_default = useLocalStorage;
|
|
32
|
+
|
|
33
|
+
export { useLocalStorage_default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/sdk/shims/host.ts
|
|
2
|
+
function hostDep(specifier) {
|
|
3
|
+
let resolved = void 0;
|
|
4
|
+
let didResolve = false;
|
|
5
|
+
const resolve = () => {
|
|
6
|
+
if (didResolve) return resolved;
|
|
7
|
+
const deps = typeof window !== "undefined" && window.__UNCHAINED_PLUGIN_DEPS__;
|
|
8
|
+
const dep = deps?.[specifier];
|
|
9
|
+
if (!dep) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
`Unchained admin-ui plugin runtime: host dependency "${specifier}" is not available. Plugin modules can only be loaded by the admin-ui after its plugin runtime is initialized.`
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
resolved = dep;
|
|
15
|
+
didResolve = true;
|
|
16
|
+
return dep;
|
|
17
|
+
};
|
|
18
|
+
return new Proxy(/* @__PURE__ */ Object.create(null), {
|
|
19
|
+
get(_target, prop) {
|
|
20
|
+
if (prop === Symbol.toPrimitive || prop === Symbol.toStringTag) {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
return resolve()[prop];
|
|
24
|
+
},
|
|
25
|
+
set(_target, prop, value) {
|
|
26
|
+
resolve()[prop] = value;
|
|
27
|
+
return true;
|
|
28
|
+
},
|
|
29
|
+
has(_target, prop) {
|
|
30
|
+
return prop in resolve();
|
|
31
|
+
},
|
|
32
|
+
ownKeys() {
|
|
33
|
+
return Reflect.ownKeys(resolve());
|
|
34
|
+
},
|
|
35
|
+
getOwnPropertyDescriptor(_target, prop) {
|
|
36
|
+
return Object.getOwnPropertyDescriptor(resolve(), prop);
|
|
37
|
+
},
|
|
38
|
+
getPrototypeOf() {
|
|
39
|
+
return Object.getPrototypeOf(resolve());
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { hostDep };
|
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import { isValid } from './chunk-YZGQJJCD.js';
|
|
2
|
+
import { __commonJS, __toESM } from './chunk-4VNS5WPM.js';
|
|
3
|
+
import React, { useContext, useRef } from 'react';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { useController } from 'react-hook-form';
|
|
6
|
+
|
|
7
|
+
// ../node_modules/validator/lib/util/assertString.js
|
|
8
|
+
var require_assertString = __commonJS({
|
|
9
|
+
"../node_modules/validator/lib/util/assertString.js"(exports, module) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
exports.default = assertString;
|
|
14
|
+
function assertString(input) {
|
|
15
|
+
if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
16
|
+
if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
17
|
+
}
|
|
18
|
+
module.exports = exports.default;
|
|
19
|
+
module.exports.default = exports.default;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// ../node_modules/validator/lib/isLength.js
|
|
24
|
+
var require_isLength = __commonJS({
|
|
25
|
+
"../node_modules/validator/lib/isLength.js"(exports, module) {
|
|
26
|
+
Object.defineProperty(exports, "__esModule", {
|
|
27
|
+
value: true
|
|
28
|
+
});
|
|
29
|
+
exports.default = isLength2;
|
|
30
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
31
|
+
function _interopRequireDefault(e) {
|
|
32
|
+
return e && e.__esModule ? e : { default: e };
|
|
33
|
+
}
|
|
34
|
+
function _typeof(o) {
|
|
35
|
+
"@babel/helpers - typeof";
|
|
36
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
37
|
+
return typeof o2;
|
|
38
|
+
} : function(o2) {
|
|
39
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
40
|
+
}, _typeof(o);
|
|
41
|
+
}
|
|
42
|
+
function isLength2(str, options) {
|
|
43
|
+
(0, _assertString.default)(str);
|
|
44
|
+
var min;
|
|
45
|
+
var max;
|
|
46
|
+
if (_typeof(options) === "object") {
|
|
47
|
+
min = options.min || 0;
|
|
48
|
+
max = options.max;
|
|
49
|
+
} else {
|
|
50
|
+
min = arguments[1] || 0;
|
|
51
|
+
max = arguments[2];
|
|
52
|
+
}
|
|
53
|
+
var presentationSequences = str.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g) || [];
|
|
54
|
+
var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
|
|
55
|
+
var len = str.length - presentationSequences.length - surrogatePairs.length;
|
|
56
|
+
var isInsideRange = len >= min && (typeof max === "undefined" || len <= max);
|
|
57
|
+
if (isInsideRange && Array.isArray(options === null || options === void 0 ? void 0 : options.discreteLengths)) {
|
|
58
|
+
return options.discreteLengths.some(function(discreteLen) {
|
|
59
|
+
return discreteLen === len;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return isInsideRange;
|
|
63
|
+
}
|
|
64
|
+
module.exports = exports.default;
|
|
65
|
+
module.exports.default = exports.default;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// ../node_modules/validator/lib/util/checkHost.js
|
|
70
|
+
var require_checkHost = __commonJS({
|
|
71
|
+
"../node_modules/validator/lib/util/checkHost.js"(exports, module) {
|
|
72
|
+
Object.defineProperty(exports, "__esModule", {
|
|
73
|
+
value: true
|
|
74
|
+
});
|
|
75
|
+
exports.default = checkHost;
|
|
76
|
+
function isRegExp(obj) {
|
|
77
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
78
|
+
}
|
|
79
|
+
function checkHost(host, matches) {
|
|
80
|
+
for (var i = 0; i < matches.length; i++) {
|
|
81
|
+
var match = matches[i];
|
|
82
|
+
if (host === match || isRegExp(match) && match.test(host)) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
module.exports = exports.default;
|
|
89
|
+
module.exports.default = exports.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../node_modules/validator/lib/isByteLength.js
|
|
94
|
+
var require_isByteLength = __commonJS({
|
|
95
|
+
"../node_modules/validator/lib/isByteLength.js"(exports, module) {
|
|
96
|
+
Object.defineProperty(exports, "__esModule", {
|
|
97
|
+
value: true
|
|
98
|
+
});
|
|
99
|
+
exports.default = isByteLength;
|
|
100
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
101
|
+
function _interopRequireDefault(e) {
|
|
102
|
+
return e && e.__esModule ? e : { default: e };
|
|
103
|
+
}
|
|
104
|
+
function _typeof(o) {
|
|
105
|
+
"@babel/helpers - typeof";
|
|
106
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
107
|
+
return typeof o2;
|
|
108
|
+
} : function(o2) {
|
|
109
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
110
|
+
}, _typeof(o);
|
|
111
|
+
}
|
|
112
|
+
function isByteLength(str, options) {
|
|
113
|
+
(0, _assertString.default)(str);
|
|
114
|
+
var min;
|
|
115
|
+
var max;
|
|
116
|
+
if (_typeof(options) === "object") {
|
|
117
|
+
min = options.min || 0;
|
|
118
|
+
max = options.max;
|
|
119
|
+
} else {
|
|
120
|
+
min = arguments[1];
|
|
121
|
+
max = arguments[2];
|
|
122
|
+
}
|
|
123
|
+
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
124
|
+
return len >= min && (typeof max === "undefined" || len <= max);
|
|
125
|
+
}
|
|
126
|
+
module.exports = exports.default;
|
|
127
|
+
module.exports.default = exports.default;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// ../node_modules/validator/lib/util/merge.js
|
|
132
|
+
var require_merge = __commonJS({
|
|
133
|
+
"../node_modules/validator/lib/util/merge.js"(exports, module) {
|
|
134
|
+
Object.defineProperty(exports, "__esModule", {
|
|
135
|
+
value: true
|
|
136
|
+
});
|
|
137
|
+
exports.default = merge;
|
|
138
|
+
function _typeof(o) {
|
|
139
|
+
"@babel/helpers - typeof";
|
|
140
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
141
|
+
return typeof o2;
|
|
142
|
+
} : function(o2) {
|
|
143
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
144
|
+
}, _typeof(o);
|
|
145
|
+
}
|
|
146
|
+
function merge() {
|
|
147
|
+
var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
148
|
+
var defaults = arguments.length > 1 ? arguments[1] : void 0;
|
|
149
|
+
if (_typeof(obj) !== "object" || obj === null) {
|
|
150
|
+
obj = {};
|
|
151
|
+
}
|
|
152
|
+
for (var key in defaults) {
|
|
153
|
+
if (typeof obj[key] === "undefined") {
|
|
154
|
+
obj[key] = defaults[key];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
158
|
+
}
|
|
159
|
+
module.exports = exports.default;
|
|
160
|
+
module.exports.default = exports.default;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
// ../node_modules/validator/lib/isFQDN.js
|
|
165
|
+
var require_isFQDN = __commonJS({
|
|
166
|
+
"../node_modules/validator/lib/isFQDN.js"(exports, module) {
|
|
167
|
+
Object.defineProperty(exports, "__esModule", {
|
|
168
|
+
value: true
|
|
169
|
+
});
|
|
170
|
+
exports.default = isFQDN;
|
|
171
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
172
|
+
var _merge = _interopRequireDefault(require_merge());
|
|
173
|
+
function _interopRequireDefault(e) {
|
|
174
|
+
return e && e.__esModule ? e : { default: e };
|
|
175
|
+
}
|
|
176
|
+
var default_fqdn_options = {
|
|
177
|
+
require_tld: true,
|
|
178
|
+
allow_underscores: false,
|
|
179
|
+
allow_trailing_dot: false,
|
|
180
|
+
allow_numeric_tld: false,
|
|
181
|
+
allow_wildcard: false,
|
|
182
|
+
ignore_max_length: false
|
|
183
|
+
};
|
|
184
|
+
function isFQDN(str, options) {
|
|
185
|
+
(0, _assertString.default)(str);
|
|
186
|
+
options = (0, _merge.default)(options, default_fqdn_options);
|
|
187
|
+
if (options.allow_trailing_dot && str[str.length - 1] === ".") {
|
|
188
|
+
str = str.substring(0, str.length - 1);
|
|
189
|
+
}
|
|
190
|
+
if (options.allow_wildcard === true && str.indexOf("*.") === 0) {
|
|
191
|
+
str = str.substring(2);
|
|
192
|
+
}
|
|
193
|
+
var parts = str.split(".");
|
|
194
|
+
var tld = parts[parts.length - 1];
|
|
195
|
+
if (options.require_tld) {
|
|
196
|
+
if (parts.length < 2) {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
if (/\s/.test(tld)) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
return parts.every(function(part) {
|
|
210
|
+
if (part.length > 63 && !options.ignore_max_length) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
if (/[\uff01-\uff5e]/.test(part)) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
if (/^-|-$/.test(part)) {
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
if (!options.allow_underscores && /_/.test(part)) {
|
|
223
|
+
return false;
|
|
224
|
+
}
|
|
225
|
+
return true;
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
module.exports = exports.default;
|
|
229
|
+
module.exports.default = exports.default;
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
// ../node_modules/validator/lib/isIP.js
|
|
234
|
+
var require_isIP = __commonJS({
|
|
235
|
+
"../node_modules/validator/lib/isIP.js"(exports, module) {
|
|
236
|
+
Object.defineProperty(exports, "__esModule", {
|
|
237
|
+
value: true
|
|
238
|
+
});
|
|
239
|
+
exports.default = isIP;
|
|
240
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
241
|
+
function _interopRequireDefault(e) {
|
|
242
|
+
return e && e.__esModule ? e : { default: e };
|
|
243
|
+
}
|
|
244
|
+
function _typeof(o) {
|
|
245
|
+
"@babel/helpers - typeof";
|
|
246
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
247
|
+
return typeof o2;
|
|
248
|
+
} : function(o2) {
|
|
249
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
250
|
+
}, _typeof(o);
|
|
251
|
+
}
|
|
252
|
+
var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
|
|
253
|
+
var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
|
|
254
|
+
var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
|
|
255
|
+
var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
|
|
256
|
+
var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
|
|
257
|
+
function isIP(ipAddress) {
|
|
258
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
259
|
+
(0, _assertString.default)(ipAddress);
|
|
260
|
+
var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
|
|
261
|
+
if (!version) {
|
|
262
|
+
return isIP(ipAddress, {
|
|
263
|
+
version: 4
|
|
264
|
+
}) || isIP(ipAddress, {
|
|
265
|
+
version: 6
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
if (version.toString() === "4") {
|
|
269
|
+
return IPv4AddressRegExp.test(ipAddress);
|
|
270
|
+
}
|
|
271
|
+
if (version.toString() === "6") {
|
|
272
|
+
return IPv6AddressRegExp.test(ipAddress);
|
|
273
|
+
}
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
module.exports = exports.default;
|
|
277
|
+
module.exports.default = exports.default;
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// ../node_modules/validator/lib/isEmail.js
|
|
282
|
+
var require_isEmail = __commonJS({
|
|
283
|
+
"../node_modules/validator/lib/isEmail.js"(exports, module) {
|
|
284
|
+
Object.defineProperty(exports, "__esModule", {
|
|
285
|
+
value: true
|
|
286
|
+
});
|
|
287
|
+
exports.default = isEmail2;
|
|
288
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
289
|
+
var _checkHost = _interopRequireDefault(require_checkHost());
|
|
290
|
+
var _isByteLength = _interopRequireDefault(require_isByteLength());
|
|
291
|
+
var _isFQDN = _interopRequireDefault(require_isFQDN());
|
|
292
|
+
var _isIP = _interopRequireDefault(require_isIP());
|
|
293
|
+
var _merge = _interopRequireDefault(require_merge());
|
|
294
|
+
function _interopRequireDefault(e) {
|
|
295
|
+
return e && e.__esModule ? e : { default: e };
|
|
296
|
+
}
|
|
297
|
+
var default_email_options = {
|
|
298
|
+
allow_display_name: false,
|
|
299
|
+
allow_underscores: false,
|
|
300
|
+
require_display_name: false,
|
|
301
|
+
allow_utf8_local_part: true,
|
|
302
|
+
require_tld: true,
|
|
303
|
+
blacklisted_chars: "",
|
|
304
|
+
ignore_max_length: false,
|
|
305
|
+
host_blacklist: [],
|
|
306
|
+
host_whitelist: []
|
|
307
|
+
};
|
|
308
|
+
var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
|
|
309
|
+
var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
|
|
310
|
+
var gmailUserPart = /^[a-z\d]+$/;
|
|
311
|
+
var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
|
|
312
|
+
var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
|
|
313
|
+
var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
|
|
314
|
+
var defaultMaxEmailLength = 254;
|
|
315
|
+
function validateDisplayName(display_name) {
|
|
316
|
+
var display_name_without_quotes = display_name.replace(/^"(.+)"$/, "$1");
|
|
317
|
+
if (!display_name_without_quotes.trim()) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
|
|
321
|
+
if (contains_illegal) {
|
|
322
|
+
if (display_name_without_quotes === display_name) {
|
|
323
|
+
return false;
|
|
324
|
+
}
|
|
325
|
+
var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
|
|
326
|
+
if (!all_start_with_back_slash) {
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return true;
|
|
331
|
+
}
|
|
332
|
+
function isEmail2(str, options) {
|
|
333
|
+
(0, _assertString.default)(str);
|
|
334
|
+
options = (0, _merge.default)(options, default_email_options);
|
|
335
|
+
if (options.require_display_name || options.allow_display_name) {
|
|
336
|
+
var display_email = str.match(splitNameAddress);
|
|
337
|
+
if (display_email) {
|
|
338
|
+
var display_name = display_email[1];
|
|
339
|
+
str = str.replace(display_name, "").replace(/(^<|>$)/g, "");
|
|
340
|
+
if (display_name.endsWith(" ")) {
|
|
341
|
+
display_name = display_name.slice(0, -1);
|
|
342
|
+
}
|
|
343
|
+
if (!validateDisplayName(display_name)) {
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
} else if (options.require_display_name) {
|
|
347
|
+
return false;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
|
|
351
|
+
return false;
|
|
352
|
+
}
|
|
353
|
+
var parts = str.split("@");
|
|
354
|
+
var domain = parts.pop();
|
|
355
|
+
var lower_domain = domain.toLowerCase();
|
|
356
|
+
if (options.host_blacklist.length > 0 && (0, _checkHost.default)(lower_domain, options.host_blacklist)) {
|
|
357
|
+
return false;
|
|
358
|
+
}
|
|
359
|
+
if (options.host_whitelist.length > 0 && !(0, _checkHost.default)(lower_domain, options.host_whitelist)) {
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
var user = parts.join("@");
|
|
363
|
+
if (options.domain_specific_validation && (lower_domain === "gmail.com" || lower_domain === "googlemail.com")) {
|
|
364
|
+
user = user.toLowerCase();
|
|
365
|
+
var username = user.split("+")[0];
|
|
366
|
+
if (!(0, _isByteLength.default)(username.replace(/\./g, ""), {
|
|
367
|
+
min: 6,
|
|
368
|
+
max: 30
|
|
369
|
+
})) {
|
|
370
|
+
return false;
|
|
371
|
+
}
|
|
372
|
+
var _user_parts = username.split(".");
|
|
373
|
+
for (var i = 0; i < _user_parts.length; i++) {
|
|
374
|
+
if (!gmailUserPart.test(_user_parts[i])) {
|
|
375
|
+
return false;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {
|
|
380
|
+
max: 64
|
|
381
|
+
}) || !(0, _isByteLength.default)(domain, {
|
|
382
|
+
max: 254
|
|
383
|
+
}))) {
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
if (!(0, _isFQDN.default)(domain, {
|
|
387
|
+
require_tld: options.require_tld,
|
|
388
|
+
ignore_max_length: options.ignore_max_length,
|
|
389
|
+
allow_underscores: options.allow_underscores
|
|
390
|
+
})) {
|
|
391
|
+
if (!options.allow_ip_domain) {
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
if (!(0, _isIP.default)(domain)) {
|
|
395
|
+
if (!domain.startsWith("[") || !domain.endsWith("]")) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
var noBracketdomain = domain.slice(1, -1);
|
|
399
|
+
if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (options.blacklisted_chars) {
|
|
405
|
+
if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
|
|
406
|
+
}
|
|
407
|
+
if (user[0] === '"' && user[user.length - 1] === '"') {
|
|
408
|
+
user = user.slice(1, user.length - 1);
|
|
409
|
+
return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
|
|
410
|
+
}
|
|
411
|
+
var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
|
|
412
|
+
var user_parts = user.split(".");
|
|
413
|
+
for (var _i = 0; _i < user_parts.length; _i++) {
|
|
414
|
+
if (!pattern.test(user_parts[_i])) {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return true;
|
|
419
|
+
}
|
|
420
|
+
module.exports = exports.default;
|
|
421
|
+
module.exports.default = exports.default;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
var FormContext = React.createContext({
|
|
425
|
+
submitError: "",
|
|
426
|
+
rhf: null,
|
|
427
|
+
api: null,
|
|
428
|
+
setSubmitError: () => {
|
|
429
|
+
},
|
|
430
|
+
disabled: false
|
|
431
|
+
});
|
|
432
|
+
var FormContext_default = FormContext;
|
|
433
|
+
|
|
434
|
+
// src/modules/forms/hooks/useFormContext.ts
|
|
435
|
+
var useFormContext = () => useContext(FormContext_default);
|
|
436
|
+
var useFormContext_default = useFormContext;
|
|
437
|
+
|
|
438
|
+
// src/modules/forms/lib/validators.ts
|
|
439
|
+
var import_isLength = __toESM(require_isLength(), 1);
|
|
440
|
+
var import_isEmail = __toESM(require_isEmail(), 1);
|
|
441
|
+
var isString = (value) => typeof value === "string";
|
|
442
|
+
var validateMaxLength = (max) => ({
|
|
443
|
+
isValid: (value) => (0, import_isLength.default)(value || "", { max }),
|
|
444
|
+
intlMessageDescriptor: { id: "error_max_length" },
|
|
445
|
+
intlMessageValues: { maxLength: max.toString() }
|
|
446
|
+
});
|
|
447
|
+
var validateEmail = {
|
|
448
|
+
isValid: (value) => (0, import_isEmail.default)(value || ""),
|
|
449
|
+
intlMessageDescriptor: {
|
|
450
|
+
id: "error_email",
|
|
451
|
+
defaultMessage: "{label} must be a valid email address"
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
var validateRequired = {
|
|
455
|
+
isValid: (value) => {
|
|
456
|
+
if (isString(value)) {
|
|
457
|
+
return value.trim().length > 0;
|
|
458
|
+
}
|
|
459
|
+
if (typeof value === "number") {
|
|
460
|
+
return true;
|
|
461
|
+
}
|
|
462
|
+
if (Array.isArray(value)) {
|
|
463
|
+
return value.length > 0;
|
|
464
|
+
}
|
|
465
|
+
return !!value;
|
|
466
|
+
},
|
|
467
|
+
intlMessageDescriptor: {
|
|
468
|
+
id: "error_required",
|
|
469
|
+
defaultMessage: "{label} is a required field"
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
var validateDate = {
|
|
473
|
+
isValid: (value) => value ? isValid(new Date(value)) : true,
|
|
474
|
+
intlMessageDescriptor: {
|
|
475
|
+
id: "error_invalid_date",
|
|
476
|
+
defaultMessage: "{label} is not a valid date"
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
var validateRequiredTag = (isRequired) => ({
|
|
480
|
+
isValid: (value) => isRequired ? value.length > 0 : true,
|
|
481
|
+
intlMessageDescriptor: {
|
|
482
|
+
id: "error_tag_required",
|
|
483
|
+
defaultMessage: "{label} you must provide at least one tag"
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
// src/modules/forms/hooks/useField.ts
|
|
488
|
+
var useField = (props) => {
|
|
489
|
+
const intl = useIntl();
|
|
490
|
+
const { rhf, ...form } = useFormContext_default();
|
|
491
|
+
const {
|
|
492
|
+
name,
|
|
493
|
+
required,
|
|
494
|
+
errorMessage,
|
|
495
|
+
disabled = form.disabled || rhf?.formState?.isSubmitting,
|
|
496
|
+
label = intl.formatMessage({
|
|
497
|
+
id: name,
|
|
498
|
+
defaultMessage: "default_input_name",
|
|
499
|
+
description: "DO not translate Skip this as it's the default given label when a component is not provided explicit label"
|
|
500
|
+
}),
|
|
501
|
+
validators = []
|
|
502
|
+
} = props;
|
|
503
|
+
const combinedValidators = [
|
|
504
|
+
...validators,
|
|
505
|
+
required && validateRequired
|
|
506
|
+
].filter(Boolean);
|
|
507
|
+
const validate = (value) => {
|
|
508
|
+
return combinedValidators.reduce(
|
|
509
|
+
(acc, { isValid: isValid2, intlMessageDescriptor, intlMessageValues }) => {
|
|
510
|
+
if (acc) return acc;
|
|
511
|
+
if (!isValid2(value))
|
|
512
|
+
return errorMessage || intl.formatMessage(intlMessageDescriptor, {
|
|
513
|
+
label,
|
|
514
|
+
...intlMessageValues
|
|
515
|
+
});
|
|
516
|
+
return acc;
|
|
517
|
+
},
|
|
518
|
+
""
|
|
519
|
+
);
|
|
520
|
+
};
|
|
521
|
+
const validateRef = useRef(validate);
|
|
522
|
+
validateRef.current = validate;
|
|
523
|
+
const { field, fieldState, formState } = useController({
|
|
524
|
+
name,
|
|
525
|
+
control: rhf?.control,
|
|
526
|
+
rules: {
|
|
527
|
+
validate: (value) => {
|
|
528
|
+
const error2 = validateRef.current(value);
|
|
529
|
+
return error2 || true;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
const error = (fieldState.isTouched || formState.isSubmitted) && fieldState.error?.message;
|
|
534
|
+
const onChange = (event) => {
|
|
535
|
+
if (props.onChange) {
|
|
536
|
+
props.onChange(event);
|
|
537
|
+
}
|
|
538
|
+
if (props.type === "number") {
|
|
539
|
+
const raw = event?.target?.value;
|
|
540
|
+
const num = raw === "" || raw == null ? null : Number(raw);
|
|
541
|
+
field.onChange(num);
|
|
542
|
+
} else {
|
|
543
|
+
field.onChange(event);
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
const isNullOrUndefined = (v) => {
|
|
547
|
+
return v === null || v === void 0;
|
|
548
|
+
};
|
|
549
|
+
return {
|
|
550
|
+
...props,
|
|
551
|
+
name,
|
|
552
|
+
error,
|
|
553
|
+
label,
|
|
554
|
+
disabled,
|
|
555
|
+
required,
|
|
556
|
+
onChange,
|
|
557
|
+
onBlur: field.onBlur,
|
|
558
|
+
value: isNullOrUndefined(field.value) ? "" : field.value,
|
|
559
|
+
setValue: (value, shouldValidate) => {
|
|
560
|
+
rhf?.setValue(name, value, {
|
|
561
|
+
shouldDirty: true,
|
|
562
|
+
shouldValidate: shouldValidate ?? false
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
setError: (message) => {
|
|
566
|
+
if (message) {
|
|
567
|
+
rhf?.setError(name, { type: "manual", message });
|
|
568
|
+
} else {
|
|
569
|
+
rhf?.clearErrors(name);
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
setTouched: (touched) => {
|
|
573
|
+
if (touched) {
|
|
574
|
+
rhf?.trigger(name);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
var useField_default = useField;
|
|
580
|
+
|
|
581
|
+
export { FormContext_default, useField_default, useFormContext_default, validateDate, validateEmail, validateMaxLength, validateRequiredTag };
|