@unchainedshop/admin-ui 4.8.26 → 4.8.27
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-45H2WVIC.js +51 -0
- package/dist/chunk-4VNS5WPM.js +37 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-6TXD4TA7.js +1196 -0
- package/dist/chunk-BGCKJQGS.js +58 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -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-KH5MK6ZW.js +18 -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-RAQV2GYF.js +70 -0
- package/dist/chunk-RHUFQVKL.js +514 -0
- package/dist/chunk-RVG6IOFC.js +11 -0
- package/dist/chunk-SRAAKMWY.js +39 -0
- package/dist/chunk-UFYR5WZT.js +165 -0
- package/dist/chunk-UXG7EYHC.js +614 -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-YSKZE2KN.js +652 -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 +14 -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 +6 -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 +30108 -0
- package/dist/gql/types.d.ts +17209 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +41 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +114 -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 +1013 -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 +1121 -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/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/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 +7 -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 +353 -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 +12 -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 +563 -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 +251 -0
- package/dist/modules/product.js +1929 -0
- package/dist/modules/quotation.js +297 -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 +308 -0
- package/dist/plugins.js +8 -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 +67 -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/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +21540 -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/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
- package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
- package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
- package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
- package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
- package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
- package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
- 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 +1 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
import { __commonJS, __toESM } from './chunk-4VNS5WPM.js';
|
|
2
|
+
import React, { useContext, useRef } from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
|
+
import { useController } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
// ../node_modules/validator/lib/util/assertString.js
|
|
7
|
+
var require_assertString = __commonJS({
|
|
8
|
+
"../node_modules/validator/lib/util/assertString.js"(exports, module) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
exports.default = assertString;
|
|
13
|
+
function assertString(input) {
|
|
14
|
+
if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
15
|
+
if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
16
|
+
}
|
|
17
|
+
module.exports = exports.default;
|
|
18
|
+
module.exports.default = exports.default;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// ../node_modules/validator/lib/isLength.js
|
|
23
|
+
var require_isLength = __commonJS({
|
|
24
|
+
"../node_modules/validator/lib/isLength.js"(exports, module) {
|
|
25
|
+
Object.defineProperty(exports, "__esModule", {
|
|
26
|
+
value: true
|
|
27
|
+
});
|
|
28
|
+
exports.default = isLength2;
|
|
29
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
30
|
+
function _interopRequireDefault(e) {
|
|
31
|
+
return e && e.__esModule ? e : { default: e };
|
|
32
|
+
}
|
|
33
|
+
function _typeof(o) {
|
|
34
|
+
"@babel/helpers - typeof";
|
|
35
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
36
|
+
return typeof o2;
|
|
37
|
+
} : function(o2) {
|
|
38
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
39
|
+
}, _typeof(o);
|
|
40
|
+
}
|
|
41
|
+
function isLength2(str, options) {
|
|
42
|
+
(0, _assertString.default)(str);
|
|
43
|
+
var min;
|
|
44
|
+
var max;
|
|
45
|
+
if (_typeof(options) === "object") {
|
|
46
|
+
min = options.min || 0;
|
|
47
|
+
max = options.max;
|
|
48
|
+
} else {
|
|
49
|
+
min = arguments[1] || 0;
|
|
50
|
+
max = arguments[2];
|
|
51
|
+
}
|
|
52
|
+
var presentationSequences = str.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g) || [];
|
|
53
|
+
var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
|
|
54
|
+
var len = str.length - presentationSequences.length - surrogatePairs.length;
|
|
55
|
+
var isInsideRange = len >= min && (typeof max === "undefined" || len <= max);
|
|
56
|
+
if (isInsideRange && Array.isArray(options === null || options === void 0 ? void 0 : options.discreteLengths)) {
|
|
57
|
+
return options.discreteLengths.some(function(discreteLen) {
|
|
58
|
+
return discreteLen === len;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return isInsideRange;
|
|
62
|
+
}
|
|
63
|
+
module.exports = exports.default;
|
|
64
|
+
module.exports.default = exports.default;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// ../node_modules/validator/lib/util/checkHost.js
|
|
69
|
+
var require_checkHost = __commonJS({
|
|
70
|
+
"../node_modules/validator/lib/util/checkHost.js"(exports, module) {
|
|
71
|
+
Object.defineProperty(exports, "__esModule", {
|
|
72
|
+
value: true
|
|
73
|
+
});
|
|
74
|
+
exports.default = checkHost;
|
|
75
|
+
function isRegExp(obj) {
|
|
76
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
77
|
+
}
|
|
78
|
+
function checkHost(host, matches) {
|
|
79
|
+
for (var i = 0; i < matches.length; i++) {
|
|
80
|
+
var match = matches[i];
|
|
81
|
+
if (host === match || isRegExp(match) && match.test(host)) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
module.exports = exports.default;
|
|
88
|
+
module.exports.default = exports.default;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// ../node_modules/validator/lib/isByteLength.js
|
|
93
|
+
var require_isByteLength = __commonJS({
|
|
94
|
+
"../node_modules/validator/lib/isByteLength.js"(exports, module) {
|
|
95
|
+
Object.defineProperty(exports, "__esModule", {
|
|
96
|
+
value: true
|
|
97
|
+
});
|
|
98
|
+
exports.default = isByteLength;
|
|
99
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
100
|
+
function _interopRequireDefault(e) {
|
|
101
|
+
return e && e.__esModule ? e : { default: e };
|
|
102
|
+
}
|
|
103
|
+
function _typeof(o) {
|
|
104
|
+
"@babel/helpers - typeof";
|
|
105
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
106
|
+
return typeof o2;
|
|
107
|
+
} : function(o2) {
|
|
108
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
109
|
+
}, _typeof(o);
|
|
110
|
+
}
|
|
111
|
+
function isByteLength(str, options) {
|
|
112
|
+
(0, _assertString.default)(str);
|
|
113
|
+
var min;
|
|
114
|
+
var max;
|
|
115
|
+
if (_typeof(options) === "object") {
|
|
116
|
+
min = options.min || 0;
|
|
117
|
+
max = options.max;
|
|
118
|
+
} else {
|
|
119
|
+
min = arguments[1];
|
|
120
|
+
max = arguments[2];
|
|
121
|
+
}
|
|
122
|
+
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
123
|
+
return len >= min && (typeof max === "undefined" || len <= max);
|
|
124
|
+
}
|
|
125
|
+
module.exports = exports.default;
|
|
126
|
+
module.exports.default = exports.default;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// ../node_modules/validator/lib/util/merge.js
|
|
131
|
+
var require_merge = __commonJS({
|
|
132
|
+
"../node_modules/validator/lib/util/merge.js"(exports, module) {
|
|
133
|
+
Object.defineProperty(exports, "__esModule", {
|
|
134
|
+
value: true
|
|
135
|
+
});
|
|
136
|
+
exports.default = merge;
|
|
137
|
+
function _typeof(o) {
|
|
138
|
+
"@babel/helpers - typeof";
|
|
139
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
140
|
+
return typeof o2;
|
|
141
|
+
} : function(o2) {
|
|
142
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
143
|
+
}, _typeof(o);
|
|
144
|
+
}
|
|
145
|
+
function merge() {
|
|
146
|
+
var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
147
|
+
var defaults = arguments.length > 1 ? arguments[1] : void 0;
|
|
148
|
+
if (_typeof(obj) !== "object" || obj === null) {
|
|
149
|
+
obj = {};
|
|
150
|
+
}
|
|
151
|
+
for (var key in defaults) {
|
|
152
|
+
if (typeof obj[key] === "undefined") {
|
|
153
|
+
obj[key] = defaults[key];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return obj;
|
|
157
|
+
}
|
|
158
|
+
module.exports = exports.default;
|
|
159
|
+
module.exports.default = exports.default;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// ../node_modules/validator/lib/isFQDN.js
|
|
164
|
+
var require_isFQDN = __commonJS({
|
|
165
|
+
"../node_modules/validator/lib/isFQDN.js"(exports, module) {
|
|
166
|
+
Object.defineProperty(exports, "__esModule", {
|
|
167
|
+
value: true
|
|
168
|
+
});
|
|
169
|
+
exports.default = isFQDN;
|
|
170
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
171
|
+
var _merge = _interopRequireDefault(require_merge());
|
|
172
|
+
function _interopRequireDefault(e) {
|
|
173
|
+
return e && e.__esModule ? e : { default: e };
|
|
174
|
+
}
|
|
175
|
+
var default_fqdn_options = {
|
|
176
|
+
require_tld: true,
|
|
177
|
+
allow_underscores: false,
|
|
178
|
+
allow_trailing_dot: false,
|
|
179
|
+
allow_numeric_tld: false,
|
|
180
|
+
allow_wildcard: false,
|
|
181
|
+
ignore_max_length: false
|
|
182
|
+
};
|
|
183
|
+
function isFQDN(str, options) {
|
|
184
|
+
(0, _assertString.default)(str);
|
|
185
|
+
options = (0, _merge.default)(options, default_fqdn_options);
|
|
186
|
+
if (options.allow_trailing_dot && str[str.length - 1] === ".") {
|
|
187
|
+
str = str.substring(0, str.length - 1);
|
|
188
|
+
}
|
|
189
|
+
if (options.allow_wildcard === true && str.indexOf("*.") === 0) {
|
|
190
|
+
str = str.substring(2);
|
|
191
|
+
}
|
|
192
|
+
var parts = str.split(".");
|
|
193
|
+
var tld = parts[parts.length - 1];
|
|
194
|
+
if (options.require_tld) {
|
|
195
|
+
if (parts.length < 2) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
if (/\s/.test(tld)) {
|
|
202
|
+
return false;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
return parts.every(function(part) {
|
|
209
|
+
if (part.length > 63 && !options.ignore_max_length) {
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
if (/[\uff01-\uff5e]/.test(part)) {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
if (/^-|-$/.test(part)) {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
if (!options.allow_underscores && /_/.test(part)) {
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
return true;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
module.exports = exports.default;
|
|
228
|
+
module.exports.default = exports.default;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
// ../node_modules/validator/lib/isIP.js
|
|
233
|
+
var require_isIP = __commonJS({
|
|
234
|
+
"../node_modules/validator/lib/isIP.js"(exports, module) {
|
|
235
|
+
Object.defineProperty(exports, "__esModule", {
|
|
236
|
+
value: true
|
|
237
|
+
});
|
|
238
|
+
exports.default = isIP;
|
|
239
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
240
|
+
function _interopRequireDefault(e) {
|
|
241
|
+
return e && e.__esModule ? e : { default: e };
|
|
242
|
+
}
|
|
243
|
+
function _typeof(o) {
|
|
244
|
+
"@babel/helpers - typeof";
|
|
245
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
246
|
+
return typeof o2;
|
|
247
|
+
} : function(o2) {
|
|
248
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
249
|
+
}, _typeof(o);
|
|
250
|
+
}
|
|
251
|
+
var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
|
|
252
|
+
var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
|
|
253
|
+
var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
|
|
254
|
+
var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
|
|
255
|
+
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,})?$");
|
|
256
|
+
function isIP(ipAddress) {
|
|
257
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
258
|
+
(0, _assertString.default)(ipAddress);
|
|
259
|
+
var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
|
|
260
|
+
if (!version) {
|
|
261
|
+
return isIP(ipAddress, {
|
|
262
|
+
version: 4
|
|
263
|
+
}) || isIP(ipAddress, {
|
|
264
|
+
version: 6
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
if (version.toString() === "4") {
|
|
268
|
+
return IPv4AddressRegExp.test(ipAddress);
|
|
269
|
+
}
|
|
270
|
+
if (version.toString() === "6") {
|
|
271
|
+
return IPv6AddressRegExp.test(ipAddress);
|
|
272
|
+
}
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
module.exports = exports.default;
|
|
276
|
+
module.exports.default = exports.default;
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// ../node_modules/validator/lib/isEmail.js
|
|
281
|
+
var require_isEmail = __commonJS({
|
|
282
|
+
"../node_modules/validator/lib/isEmail.js"(exports, module) {
|
|
283
|
+
Object.defineProperty(exports, "__esModule", {
|
|
284
|
+
value: true
|
|
285
|
+
});
|
|
286
|
+
exports.default = isEmail2;
|
|
287
|
+
var _assertString = _interopRequireDefault(require_assertString());
|
|
288
|
+
var _checkHost = _interopRequireDefault(require_checkHost());
|
|
289
|
+
var _isByteLength = _interopRequireDefault(require_isByteLength());
|
|
290
|
+
var _isFQDN = _interopRequireDefault(require_isFQDN());
|
|
291
|
+
var _isIP = _interopRequireDefault(require_isIP());
|
|
292
|
+
var _merge = _interopRequireDefault(require_merge());
|
|
293
|
+
function _interopRequireDefault(e) {
|
|
294
|
+
return e && e.__esModule ? e : { default: e };
|
|
295
|
+
}
|
|
296
|
+
var default_email_options = {
|
|
297
|
+
allow_display_name: false,
|
|
298
|
+
allow_underscores: false,
|
|
299
|
+
require_display_name: false,
|
|
300
|
+
allow_utf8_local_part: true,
|
|
301
|
+
require_tld: true,
|
|
302
|
+
blacklisted_chars: "",
|
|
303
|
+
ignore_max_length: false,
|
|
304
|
+
host_blacklist: [],
|
|
305
|
+
host_whitelist: []
|
|
306
|
+
};
|
|
307
|
+
var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
|
|
308
|
+
var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
|
|
309
|
+
var gmailUserPart = /^[a-z\d]+$/;
|
|
310
|
+
var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
|
|
311
|
+
var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
|
|
312
|
+
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;
|
|
313
|
+
var defaultMaxEmailLength = 254;
|
|
314
|
+
function validateDisplayName(display_name) {
|
|
315
|
+
var display_name_without_quotes = display_name.replace(/^"(.+)"$/, "$1");
|
|
316
|
+
if (!display_name_without_quotes.trim()) {
|
|
317
|
+
return false;
|
|
318
|
+
}
|
|
319
|
+
var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
|
|
320
|
+
if (contains_illegal) {
|
|
321
|
+
if (display_name_without_quotes === display_name) {
|
|
322
|
+
return false;
|
|
323
|
+
}
|
|
324
|
+
var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
|
|
325
|
+
if (!all_start_with_back_slash) {
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
function isEmail2(str, options) {
|
|
332
|
+
(0, _assertString.default)(str);
|
|
333
|
+
options = (0, _merge.default)(options, default_email_options);
|
|
334
|
+
if (options.require_display_name || options.allow_display_name) {
|
|
335
|
+
var display_email = str.match(splitNameAddress);
|
|
336
|
+
if (display_email) {
|
|
337
|
+
var display_name = display_email[1];
|
|
338
|
+
str = str.replace(display_name, "").replace(/(^<|>$)/g, "");
|
|
339
|
+
if (display_name.endsWith(" ")) {
|
|
340
|
+
display_name = display_name.slice(0, -1);
|
|
341
|
+
}
|
|
342
|
+
if (!validateDisplayName(display_name)) {
|
|
343
|
+
return false;
|
|
344
|
+
}
|
|
345
|
+
} else if (options.require_display_name) {
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
var parts = str.split("@");
|
|
353
|
+
var domain = parts.pop();
|
|
354
|
+
var lower_domain = domain.toLowerCase();
|
|
355
|
+
if (options.host_blacklist.length > 0 && (0, _checkHost.default)(lower_domain, options.host_blacklist)) {
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
if (options.host_whitelist.length > 0 && !(0, _checkHost.default)(lower_domain, options.host_whitelist)) {
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
var user = parts.join("@");
|
|
362
|
+
if (options.domain_specific_validation && (lower_domain === "gmail.com" || lower_domain === "googlemail.com")) {
|
|
363
|
+
user = user.toLowerCase();
|
|
364
|
+
var username = user.split("+")[0];
|
|
365
|
+
if (!(0, _isByteLength.default)(username.replace(/\./g, ""), {
|
|
366
|
+
min: 6,
|
|
367
|
+
max: 30
|
|
368
|
+
})) {
|
|
369
|
+
return false;
|
|
370
|
+
}
|
|
371
|
+
var _user_parts = username.split(".");
|
|
372
|
+
for (var i = 0; i < _user_parts.length; i++) {
|
|
373
|
+
if (!gmailUserPart.test(_user_parts[i])) {
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {
|
|
379
|
+
max: 64
|
|
380
|
+
}) || !(0, _isByteLength.default)(domain, {
|
|
381
|
+
max: 254
|
|
382
|
+
}))) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
if (!(0, _isFQDN.default)(domain, {
|
|
386
|
+
require_tld: options.require_tld,
|
|
387
|
+
ignore_max_length: options.ignore_max_length,
|
|
388
|
+
allow_underscores: options.allow_underscores
|
|
389
|
+
})) {
|
|
390
|
+
if (!options.allow_ip_domain) {
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
if (!(0, _isIP.default)(domain)) {
|
|
394
|
+
if (!domain.startsWith("[") || !domain.endsWith("]")) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
var noBracketdomain = domain.slice(1, -1);
|
|
398
|
+
if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (options.blacklisted_chars) {
|
|
404
|
+
if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
|
|
405
|
+
}
|
|
406
|
+
if (user[0] === '"' && user[user.length - 1] === '"') {
|
|
407
|
+
user = user.slice(1, user.length - 1);
|
|
408
|
+
return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
|
|
409
|
+
}
|
|
410
|
+
var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
|
|
411
|
+
var user_parts = user.split(".");
|
|
412
|
+
for (var _i = 0; _i < user_parts.length; _i++) {
|
|
413
|
+
if (!pattern.test(user_parts[_i])) {
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return true;
|
|
418
|
+
}
|
|
419
|
+
module.exports = exports.default;
|
|
420
|
+
module.exports.default = exports.default;
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
var FormContext = React.createContext({
|
|
424
|
+
submitError: "",
|
|
425
|
+
rhf: null,
|
|
426
|
+
api: null,
|
|
427
|
+
setSubmitError: () => {
|
|
428
|
+
},
|
|
429
|
+
disabled: false
|
|
430
|
+
});
|
|
431
|
+
var FormContext_default = FormContext;
|
|
432
|
+
|
|
433
|
+
// src/modules/forms/hooks/useFormContext.ts
|
|
434
|
+
var useFormContext = () => useContext(FormContext_default);
|
|
435
|
+
var useFormContext_default = useFormContext;
|
|
436
|
+
|
|
437
|
+
// src/modules/forms/lib/validators.ts
|
|
438
|
+
var import_isLength = __toESM(require_isLength(), 1);
|
|
439
|
+
var import_isEmail = __toESM(require_isEmail(), 1);
|
|
440
|
+
var millisecondsInWeek = 6048e5;
|
|
441
|
+
var millisecondsInDay = 864e5;
|
|
442
|
+
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
443
|
+
|
|
444
|
+
// ../node_modules/date-fns/constructFrom.js
|
|
445
|
+
function constructFrom(date, value) {
|
|
446
|
+
if (typeof date === "function") return date(value);
|
|
447
|
+
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
448
|
+
return date[constructFromSymbol](value);
|
|
449
|
+
if (date instanceof Date) return new date.constructor(value);
|
|
450
|
+
return new Date(value);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// ../node_modules/date-fns/toDate.js
|
|
454
|
+
function toDate(argument, context) {
|
|
455
|
+
return constructFrom(context || argument, argument);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// ../node_modules/date-fns/startOfDay.js
|
|
459
|
+
function startOfDay(date, options) {
|
|
460
|
+
const _date = toDate(date, options?.in);
|
|
461
|
+
_date.setHours(0, 0, 0, 0);
|
|
462
|
+
return _date;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// ../node_modules/date-fns/isDate.js
|
|
466
|
+
function isDate(value) {
|
|
467
|
+
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// ../node_modules/date-fns/isValid.js
|
|
471
|
+
function isValid(date) {
|
|
472
|
+
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
473
|
+
}
|
|
474
|
+
var isString = (value) => typeof value === "string";
|
|
475
|
+
var validateMaxLength = (max) => ({
|
|
476
|
+
isValid: (value) => (0, import_isLength.default)(value || "", { max }),
|
|
477
|
+
intlMessageDescriptor: { id: "error_max_length" },
|
|
478
|
+
intlMessageValues: { maxLength: max.toString() }
|
|
479
|
+
});
|
|
480
|
+
var validateEmail = {
|
|
481
|
+
isValid: (value) => (0, import_isEmail.default)(value || ""),
|
|
482
|
+
intlMessageDescriptor: {
|
|
483
|
+
id: "error_email",
|
|
484
|
+
defaultMessage: "{label} must be a valid email address"
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
var validateRequired = {
|
|
488
|
+
isValid: (value) => {
|
|
489
|
+
if (isString(value)) {
|
|
490
|
+
return value.trim().length > 0;
|
|
491
|
+
}
|
|
492
|
+
if (typeof value === "number") {
|
|
493
|
+
return true;
|
|
494
|
+
}
|
|
495
|
+
if (Array.isArray(value)) {
|
|
496
|
+
return value.length > 0;
|
|
497
|
+
}
|
|
498
|
+
return !!value;
|
|
499
|
+
},
|
|
500
|
+
intlMessageDescriptor: {
|
|
501
|
+
id: "error_required",
|
|
502
|
+
defaultMessage: "{label} is a required field"
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
var validateDate = {
|
|
506
|
+
isValid: (value) => value ? isValid(new Date(value)) : true,
|
|
507
|
+
intlMessageDescriptor: {
|
|
508
|
+
id: "error_invalid_date",
|
|
509
|
+
defaultMessage: "{label} is not a valid date"
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
var validateRequiredTag = (isRequired) => ({
|
|
513
|
+
isValid: (value) => isRequired ? value.length > 0 : true,
|
|
514
|
+
intlMessageDescriptor: {
|
|
515
|
+
id: "error_tag_required",
|
|
516
|
+
defaultMessage: "{label} you must provide at least one tag"
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
// src/modules/forms/hooks/useField.ts
|
|
521
|
+
var useField = (props) => {
|
|
522
|
+
const intl = useIntl();
|
|
523
|
+
const { rhf, ...form } = useFormContext_default();
|
|
524
|
+
const {
|
|
525
|
+
name,
|
|
526
|
+
required,
|
|
527
|
+
errorMessage,
|
|
528
|
+
disabled = form.disabled || rhf?.formState?.isSubmitting,
|
|
529
|
+
label = intl.formatMessage({
|
|
530
|
+
id: name,
|
|
531
|
+
defaultMessage: "default_input_name",
|
|
532
|
+
description: "DO not translate Skip this as it's the default given label when a component is not provided explicit label"
|
|
533
|
+
}),
|
|
534
|
+
validators = []
|
|
535
|
+
} = props;
|
|
536
|
+
const combinedValidators = [
|
|
537
|
+
...validators,
|
|
538
|
+
required && validateRequired
|
|
539
|
+
].filter(Boolean);
|
|
540
|
+
const validate = (value) => {
|
|
541
|
+
return combinedValidators.reduce(
|
|
542
|
+
(acc, { isValid: isValid2, intlMessageDescriptor, intlMessageValues }) => {
|
|
543
|
+
if (acc) return acc;
|
|
544
|
+
if (!isValid2(value))
|
|
545
|
+
return errorMessage || intl.formatMessage(intlMessageDescriptor, {
|
|
546
|
+
label,
|
|
547
|
+
...intlMessageValues
|
|
548
|
+
});
|
|
549
|
+
return acc;
|
|
550
|
+
},
|
|
551
|
+
""
|
|
552
|
+
);
|
|
553
|
+
};
|
|
554
|
+
const validateRef = useRef(validate);
|
|
555
|
+
validateRef.current = validate;
|
|
556
|
+
const { field, fieldState, formState } = useController({
|
|
557
|
+
name,
|
|
558
|
+
control: rhf?.control,
|
|
559
|
+
rules: {
|
|
560
|
+
validate: (value) => {
|
|
561
|
+
const error2 = validateRef.current(value);
|
|
562
|
+
return error2 || true;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
const error = (fieldState.isTouched || formState.isSubmitted) && fieldState.error?.message;
|
|
567
|
+
const onChange = (event) => {
|
|
568
|
+
if (props.onChange) {
|
|
569
|
+
props.onChange(event);
|
|
570
|
+
}
|
|
571
|
+
if (props.type === "number") {
|
|
572
|
+
const raw = event?.target?.value;
|
|
573
|
+
const num = raw === "" || raw == null ? null : Number(raw);
|
|
574
|
+
field.onChange(num);
|
|
575
|
+
} else {
|
|
576
|
+
field.onChange(event);
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
const isNullOrUndefined = (v) => {
|
|
580
|
+
return v === null || v === void 0;
|
|
581
|
+
};
|
|
582
|
+
return {
|
|
583
|
+
...props,
|
|
584
|
+
name,
|
|
585
|
+
error,
|
|
586
|
+
label,
|
|
587
|
+
disabled,
|
|
588
|
+
required,
|
|
589
|
+
onChange,
|
|
590
|
+
onBlur: field.onBlur,
|
|
591
|
+
value: isNullOrUndefined(field.value) ? "" : field.value,
|
|
592
|
+
setValue: (value, shouldValidate) => {
|
|
593
|
+
rhf?.setValue(name, value, {
|
|
594
|
+
shouldDirty: true,
|
|
595
|
+
shouldValidate: shouldValidate ?? false
|
|
596
|
+
});
|
|
597
|
+
},
|
|
598
|
+
setError: (message) => {
|
|
599
|
+
if (message) {
|
|
600
|
+
rhf?.setError(name, { type: "manual", message });
|
|
601
|
+
} else {
|
|
602
|
+
rhf?.clearErrors(name);
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
setTouched: (touched) => {
|
|
606
|
+
if (touched) {
|
|
607
|
+
rhf?.trigger(name);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
var useField_default = useField;
|
|
613
|
+
|
|
614
|
+
export { FormContext_default, constructFrom, isValid, millisecondsInDay, millisecondsInWeek, startOfDay, toDate, useField_default, useFormContext_default, validateDate, validateEmail, validateMaxLength, validateRequiredTag };
|