@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,514 @@
|
|
|
1
|
+
import { Y, A, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k2, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, M, n3, u, v, T2, I, p, f, s2, C, N, m, x2, t2, c, l, t3, E2, o4, m3, d, w2 as w2$1, c2, t, A2, s3, i, b, s, n5 } from './chunk-6TXD4TA7.js';
|
|
2
|
+
import { ModalContext_default } from './chunk-RVG6IOFC.js';
|
|
3
|
+
import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useState, Fragment, useEffect, useContext } from 'react';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var e = createContext(() => {
|
|
8
|
+
});
|
|
9
|
+
function C2({ value: t4, children: o4 }) {
|
|
10
|
+
return l4.createElement(e.Provider, { value: t4 }, o4);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// ../node_modules/@headlessui/react/dist/hooks/use-escape.js
|
|
14
|
+
function a(o4$1, r4 = typeof document != "undefined" ? document.defaultView : null, t4) {
|
|
15
|
+
let n6 = I(o4$1, "escape");
|
|
16
|
+
E2(r4, "keydown", (e2) => {
|
|
17
|
+
n6 && (e2.defaultPrevented || e2.key === o4.Escape && t4(e2));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function f3() {
|
|
21
|
+
var t4;
|
|
22
|
+
let [e2] = useState(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [o4, c4] = useState((t4 = e2 == null ? void 0 : e2.matches) != null ? t4 : false);
|
|
23
|
+
return n(() => {
|
|
24
|
+
if (!e2) return;
|
|
25
|
+
function n6(r4) {
|
|
26
|
+
c4(r4.matches);
|
|
27
|
+
}
|
|
28
|
+
return e2.addEventListener("change", n6), () => e2.removeEventListener("change", n6);
|
|
29
|
+
}, [e2]), o4;
|
|
30
|
+
}
|
|
31
|
+
function S2({ defaultContainers: l5 = [], portals: n6, mainTreeNode: o4 } = {}) {
|
|
32
|
+
let c4 = o2(() => {
|
|
33
|
+
var r4, u5;
|
|
34
|
+
let i5 = l(o4), t4 = [];
|
|
35
|
+
for (let e2 of l5) e2 !== null && (t3(e2) ? t4.push(e2) : "current" in e2 && t3(e2.current) && t4.push(e2.current));
|
|
36
|
+
if (n6 != null && n6.current) for (let e2 of n6.current) t4.push(e2);
|
|
37
|
+
for (let e2 of (r4 = i5 == null ? void 0 : i5.querySelectorAll("html > *, body > *")) != null ? r4 : []) e2 !== document.body && e2 !== document.head && t3(e2) && e2.id !== "headlessui-portal-root" && (o4 && (e2.contains(o4) || e2.contains((u5 = o4 == null ? void 0 : o4.getRootNode()) == null ? void 0 : u5.host)) || t4.some((E2) => e2.contains(E2)) || t4.push(e2));
|
|
38
|
+
return t4;
|
|
39
|
+
});
|
|
40
|
+
return { resolveContainers: c4, contains: o2((i5) => c4().some((t4) => t4.contains(i5))) };
|
|
41
|
+
}
|
|
42
|
+
var d2 = createContext(null);
|
|
43
|
+
function j({ children: l5, node: n6 }) {
|
|
44
|
+
let [o4, c4] = useState(null), i5 = x3(n6 != null ? n6 : o4);
|
|
45
|
+
return l4.createElement(d2.Provider, { value: i5 }, l5, i5 === null && l4.createElement(f, { features: s2.Hidden, ref: (t4) => {
|
|
46
|
+
var r4, u5;
|
|
47
|
+
if (t4) {
|
|
48
|
+
for (let e2 of (u5 = (r4 = l(t4)) == null ? void 0 : r4.querySelectorAll("html > *, body > *")) != null ? u5 : []) if (e2 !== document.body && e2 !== document.head && t3(e2) && e2 != null && e2.contains(t4)) {
|
|
49
|
+
c4(e2);
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
} }));
|
|
54
|
+
}
|
|
55
|
+
function x3(l5 = null) {
|
|
56
|
+
var n6;
|
|
57
|
+
return (n6 = useContext(d2)) != null ? n6 : l5;
|
|
58
|
+
}
|
|
59
|
+
function f4() {
|
|
60
|
+
let e2 = useRef(false);
|
|
61
|
+
return n(() => (e2.current = true, () => {
|
|
62
|
+
e2.current = false;
|
|
63
|
+
}), []), e2;
|
|
64
|
+
}
|
|
65
|
+
var a2 = ((r4) => (r4[r4.Forwards = 0] = "Forwards", r4[r4.Backwards = 1] = "Backwards", r4))(a2 || {});
|
|
66
|
+
function u4() {
|
|
67
|
+
let e2 = useRef(0);
|
|
68
|
+
return s3(true, "keydown", (r4) => {
|
|
69
|
+
r4.key === "Tab" && (e2.current = r4.shiftKey ? 1 : 0);
|
|
70
|
+
}, true), e2;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ../node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js
|
|
74
|
+
function x4(o4) {
|
|
75
|
+
if (!o4) return /* @__PURE__ */ new Set();
|
|
76
|
+
if (typeof o4 == "function") return new Set(o4());
|
|
77
|
+
let t4 = /* @__PURE__ */ new Set();
|
|
78
|
+
for (let e2 of o4.current) t3(e2.current) && t4.add(e2.current);
|
|
79
|
+
return t4;
|
|
80
|
+
}
|
|
81
|
+
var $ = "div";
|
|
82
|
+
var G = ((n6) => (n6[n6.None = 0] = "None", n6[n6.InitialFocus = 1] = "InitialFocus", n6[n6.TabLock = 2] = "TabLock", n6[n6.FocusLock = 4] = "FocusLock", n6[n6.RestoreFocus = 8] = "RestoreFocus", n6[n6.AutoFocus = 16] = "AutoFocus", n6))(G || {});
|
|
83
|
+
function w2(o4, t4) {
|
|
84
|
+
let e2 = useRef(null), r4 = y(e2, t4), { initialFocus: u5, initialFocusFallback: a3, containers: n6, features: s6 = 15, ...f5 } = o4;
|
|
85
|
+
l3() || (s6 = 0);
|
|
86
|
+
let l5 = u2(e2.current);
|
|
87
|
+
re(s6, { ownerDocument: l5 });
|
|
88
|
+
let T2$1 = ne(s6, { ownerDocument: l5, container: e2, initialFocus: u5, initialFocusFallback: a3 });
|
|
89
|
+
oe2(s6, { ownerDocument: l5, container: e2, containers: n6, previousActiveElement: T2$1 });
|
|
90
|
+
let g = u4(), A3 = o2((c4) => {
|
|
91
|
+
if (!n3(e2.current)) return;
|
|
92
|
+
let E2 = e2.current;
|
|
93
|
+
((V2) => V2())(() => {
|
|
94
|
+
u(g.current, { [a2.Forwards]: () => {
|
|
95
|
+
v(E2, T2.First, { skipElements: [c4.relatedTarget, a3] });
|
|
96
|
+
}, [a2.Backwards]: () => {
|
|
97
|
+
v(E2, T2.Last, { skipElements: [c4.relatedTarget, a3] });
|
|
98
|
+
} });
|
|
99
|
+
});
|
|
100
|
+
}), v2 = I(!!(s6 & 2), "focus-trap#tab-lock"), N2 = p(), b4 = useRef(false), k3 = { ref: r4, onKeyDown(c4) {
|
|
101
|
+
c4.key == "Tab" && (b4.current = true, N2.requestAnimationFrame(() => {
|
|
102
|
+
b4.current = false;
|
|
103
|
+
}));
|
|
104
|
+
}, onBlur(c4) {
|
|
105
|
+
if (!(s6 & 4)) return;
|
|
106
|
+
let E2 = x4(n6);
|
|
107
|
+
n3(e2.current) && E2.add(e2.current);
|
|
108
|
+
let L = c4.relatedTarget;
|
|
109
|
+
i(L) && L.dataset.headlessuiFocusGuard !== "true" && (I2(E2, L) || (b4.current ? v(e2.current, u(g.current, { [a2.Forwards]: () => T2.Next, [a2.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: c4.target }) : i(c4.target) && w2$1(c4.target)));
|
|
110
|
+
} }, B2 = K();
|
|
111
|
+
return l4.createElement(l4.Fragment, null, v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }), B2({ ourProps: k3, theirProps: f5, defaultTag: $, name: "FocusTrap" }), v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }));
|
|
112
|
+
}
|
|
113
|
+
var ee = Y(w2);
|
|
114
|
+
var ge = Object.assign(ee, { features: G });
|
|
115
|
+
function te(o4 = true) {
|
|
116
|
+
let t4 = useRef(n5.slice());
|
|
117
|
+
return m3(([e2], [r4]) => {
|
|
118
|
+
r4 === true && e2 === false && t(() => {
|
|
119
|
+
t4.current.splice(0);
|
|
120
|
+
}), r4 === false && e2 === true && (t4.current = n5.slice());
|
|
121
|
+
}, [o4, n5, t4]), o2(() => {
|
|
122
|
+
var e2;
|
|
123
|
+
return (e2 = t4.current.find((r4) => r4 != null && r4.isConnected)) != null ? e2 : null;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function re(o4, { ownerDocument: t4 }) {
|
|
127
|
+
let e2 = !!(o4 & 8), r4 = te(e2);
|
|
128
|
+
m3(() => {
|
|
129
|
+
e2 || d(t4 == null ? void 0 : t4.body) && w2$1(r4());
|
|
130
|
+
}, [e2]), c2(() => {
|
|
131
|
+
e2 && w2$1(r4());
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function ne(o4, { ownerDocument: t4, container: e2, initialFocus: r4, initialFocusFallback: u5 }) {
|
|
135
|
+
let a3 = useRef(null), n6 = I(!!(o4 & 1), "focus-trap#initial-focus"), s6 = f4();
|
|
136
|
+
return m3(() => {
|
|
137
|
+
if (o4 === 0) return;
|
|
138
|
+
if (!n6) {
|
|
139
|
+
u5 != null && u5.current && w2$1(u5.current);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
let f5 = e2.current;
|
|
143
|
+
f5 && t(() => {
|
|
144
|
+
if (!s6.current) return;
|
|
145
|
+
let l5 = t4 == null ? void 0 : t4.activeElement;
|
|
146
|
+
if (r4 != null && r4.current) {
|
|
147
|
+
if ((r4 == null ? void 0 : r4.current) === l5) {
|
|
148
|
+
a3.current = l5;
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
} else if (f5.contains(l5)) {
|
|
152
|
+
a3.current = l5;
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (r4 != null && r4.current) w2$1(r4.current);
|
|
156
|
+
else {
|
|
157
|
+
if (o4 & 16) {
|
|
158
|
+
if (v(f5, T2.First | T2.AutoFocus) !== A2.Error) return;
|
|
159
|
+
} else if (v(f5, T2.First) !== A2.Error) return;
|
|
160
|
+
if (u5 != null && u5.current && (w2$1(u5.current), (t4 == null ? void 0 : t4.activeElement) === u5.current)) return;
|
|
161
|
+
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
162
|
+
}
|
|
163
|
+
a3.current = t4 == null ? void 0 : t4.activeElement;
|
|
164
|
+
});
|
|
165
|
+
}, [u5, n6, o4]), a3;
|
|
166
|
+
}
|
|
167
|
+
function oe2(o4, { ownerDocument: t4, container: e2, containers: r4, previousActiveElement: u5 }) {
|
|
168
|
+
let a3 = f4(), n6 = !!(o4 & 4);
|
|
169
|
+
E2(t4 == null ? void 0 : t4.defaultView, "focus", (s6) => {
|
|
170
|
+
if (!n6 || !a3.current) return;
|
|
171
|
+
let f5 = x4(r4);
|
|
172
|
+
n3(e2.current) && f5.add(e2.current);
|
|
173
|
+
let l5 = u5.current;
|
|
174
|
+
if (!l5) return;
|
|
175
|
+
let T2 = s6.target;
|
|
176
|
+
n3(T2) ? I2(f5, T2) ? (u5.current = T2, w2$1(T2)) : (s6.preventDefault(), s6.stopPropagation(), w2$1(l5)) : w2$1(u5.current);
|
|
177
|
+
}, true);
|
|
178
|
+
}
|
|
179
|
+
function I2(o4, t4) {
|
|
180
|
+
for (let e2 of o4) if (e2.contains(t4)) return true;
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
function ue(e2) {
|
|
184
|
+
var t4;
|
|
185
|
+
return !!(e2.enter || e2.enterFrom || e2.enterTo || e2.leave || e2.leaveFrom || e2.leaveTo) || !b((t4 = e2.as) != null ? t4 : de) || l4.Children.count(e2.children) === 1;
|
|
186
|
+
}
|
|
187
|
+
var V = createContext(null);
|
|
188
|
+
V.displayName = "TransitionContext";
|
|
189
|
+
var De = ((n6) => (n6.Visible = "visible", n6.Hidden = "hidden", n6))(De || {});
|
|
190
|
+
function He() {
|
|
191
|
+
let e2 = useContext(V);
|
|
192
|
+
if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
193
|
+
return e2;
|
|
194
|
+
}
|
|
195
|
+
function Ae() {
|
|
196
|
+
let e2 = useContext(w3);
|
|
197
|
+
if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
198
|
+
return e2;
|
|
199
|
+
}
|
|
200
|
+
var w3 = createContext(null);
|
|
201
|
+
w3.displayName = "NestingContext";
|
|
202
|
+
function M3(e2) {
|
|
203
|
+
return "children" in e2 ? M3(e2.children) : e2.current.filter(({ el: t4 }) => t4.current !== null).filter(({ state: t4 }) => t4 === "visible").length > 0;
|
|
204
|
+
}
|
|
205
|
+
function Te(e2, t4) {
|
|
206
|
+
let n6 = s(e2), l5 = useRef([]), S3 = f4(), R = p(), d3 = o2((o4, i5 = C.Hidden) => {
|
|
207
|
+
let a3 = l5.current.findIndex(({ el: s6 }) => s6 === o4);
|
|
208
|
+
a3 !== -1 && (u(i5, { [C.Unmount]() {
|
|
209
|
+
l5.current.splice(a3, 1);
|
|
210
|
+
}, [C.Hidden]() {
|
|
211
|
+
l5.current[a3].state = "hidden";
|
|
212
|
+
} }), R.microTask(() => {
|
|
213
|
+
var s6;
|
|
214
|
+
!M3(l5) && S3.current && ((s6 = n6.current) == null || s6.call(n6));
|
|
215
|
+
}));
|
|
216
|
+
}), y3 = o2((o4) => {
|
|
217
|
+
let i5 = l5.current.find(({ el: a3 }) => a3 === o4);
|
|
218
|
+
return i5 ? i5.state !== "visible" && (i5.state = "visible") : l5.current.push({ el: o4, state: "visible" }), () => d3(o4, C.Unmount);
|
|
219
|
+
}), C3 = useRef([]), p4 = useRef(Promise.resolve()), h2 = useRef({ enter: [], leave: [] }), g = o2((o4, i5, a3) => {
|
|
220
|
+
C3.current.splice(0), t4 && (t4.chains.current[i5] = t4.chains.current[i5].filter(([s6]) => s6 !== o4)), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
|
|
221
|
+
C3.current.push(s6);
|
|
222
|
+
})]), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
|
|
223
|
+
Promise.all(h2.current[i5].map(([r4, f5]) => f5)).then(() => s6());
|
|
224
|
+
})]), i5 === "enter" ? p4.current = p4.current.then(() => t4 == null ? void 0 : t4.wait.current).then(() => a3(i5)) : a3(i5);
|
|
225
|
+
}), v2 = o2((o4, i5, a3) => {
|
|
226
|
+
Promise.all(h2.current[i5].splice(0).map(([s6, r4]) => r4)).then(() => {
|
|
227
|
+
var s6;
|
|
228
|
+
(s6 = C3.current.shift()) == null || s6();
|
|
229
|
+
}).then(() => a3(i5));
|
|
230
|
+
});
|
|
231
|
+
return useMemo(() => ({ children: l5, register: y3, unregister: d3, onStart: g, onStop: v2, wait: p4, chains: h2 }), [y3, d3, l5, g, v2, h2, p4]);
|
|
232
|
+
}
|
|
233
|
+
var de = Fragment;
|
|
234
|
+
var fe = A.RenderStrategy;
|
|
235
|
+
function Fe(e2, t4) {
|
|
236
|
+
var ee2, te2;
|
|
237
|
+
let { transition: n6 = true, beforeEnter: l5, afterEnter: S3, beforeLeave: R, afterLeave: d3, enter: y3, enterFrom: C3, enterTo: p4, entered: h2, leave: g, leaveFrom: v2, leaveTo: o4, ...i5 } = e2, [a3, s6] = useState(null), r4 = useRef(null), f5 = ue(e2), U = y(...f5 ? [r4, t4, s6] : t4 === null ? [] : [t4]), H2 = (ee2 = i5.unmount) == null || ee2 ? C.Unmount : C.Hidden, { show: u5, appear: z2, initial: K2 } = He(), [m3, j3] = useState(u5 ? "visible" : "hidden"), Q = Ae(), { register: A3, unregister: F2 } = Q;
|
|
238
|
+
n(() => A3(r4), [A3, r4]), n(() => {
|
|
239
|
+
if (H2 === C.Hidden && r4.current) {
|
|
240
|
+
if (u5 && m3 !== "visible") {
|
|
241
|
+
j3("visible");
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
return u(m3, { ["hidden"]: () => F2(r4), ["visible"]: () => A3(r4) });
|
|
245
|
+
}
|
|
246
|
+
}, [m3, r4, A3, F2, u5, H2]);
|
|
247
|
+
let G2 = l3();
|
|
248
|
+
n(() => {
|
|
249
|
+
if (f5 && G2 && m3 === "visible" && r4.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
250
|
+
}, [r4, m3, G2, f5]);
|
|
251
|
+
let ce = K2 && !z2, Y2 = z2 && u5 && K2, B2 = useRef(false), I3 = Te(() => {
|
|
252
|
+
B2.current || (j3("hidden"), F2(r4));
|
|
253
|
+
}, Q), Z = o2((W) => {
|
|
254
|
+
B2.current = true;
|
|
255
|
+
let L = W ? "enter" : "leave";
|
|
256
|
+
I3.onStart(r4, L, (_) => {
|
|
257
|
+
_ === "enter" ? l5 == null || l5() : _ === "leave" && (R == null || R());
|
|
258
|
+
});
|
|
259
|
+
}), $3 = o2((W) => {
|
|
260
|
+
let L = W ? "enter" : "leave";
|
|
261
|
+
B2.current = false, I3.onStop(r4, L, (_) => {
|
|
262
|
+
_ === "enter" ? S3 == null || S3() : _ === "leave" && (d3 == null || d3());
|
|
263
|
+
}), L === "leave" && !M3(I3) && (j3("hidden"), F2(r4));
|
|
264
|
+
});
|
|
265
|
+
useEffect(() => {
|
|
266
|
+
f5 && n6 || (Z(u5), $3(u5));
|
|
267
|
+
}, [u5, f5, n6]);
|
|
268
|
+
let pe2 = /* @__PURE__ */ (() => !(!n6 || !f5 || !G2 || ce))(), [, T2] = N(pe2, a3, u5, { start: Z, end: $3 }), Ce = m({ ref: U, className: ((te2 = t2(i5.className, Y2 && y3, Y2 && C3, T2.enter && y3, T2.enter && T2.closed && C3, T2.enter && !T2.closed && p4, T2.leave && g, T2.leave && !T2.closed && v2, T2.leave && T2.closed && o4, !T2.transition && u5 && h2)) == null ? void 0 : te2.trim()) || void 0, ...x2(T2) }), N2 = 0;
|
|
269
|
+
m3 === "visible" && (N2 |= i3.Open), m3 === "hidden" && (N2 |= i3.Closed), u5 && m3 === "hidden" && (N2 |= i3.Opening), !u5 && m3 === "visible" && (N2 |= i3.Closing);
|
|
270
|
+
let he = K();
|
|
271
|
+
return l4.createElement(w3.Provider, { value: I3 }, l4.createElement(c, { value: N2 }, he({ ourProps: Ce, theirProps: i5, defaultTag: de, features: fe, visible: m3 === "visible", name: "Transition.Child" })));
|
|
272
|
+
}
|
|
273
|
+
function Ie(e2, t4) {
|
|
274
|
+
let { show: n6, appear: l5 = false, unmount: S3 = true, ...R } = e2, d3 = useRef(null), y3 = ue(e2), C3 = y(...y3 ? [d3, t4] : t4 === null ? [] : [t4]);
|
|
275
|
+
l3();
|
|
276
|
+
let p4 = u3();
|
|
277
|
+
if (n6 === void 0 && p4 !== null && (n6 = (p4 & i3.Open) === i3.Open), n6 === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
278
|
+
let [h2, g] = useState(n6 ? "visible" : "hidden"), v2 = Te(() => {
|
|
279
|
+
n6 || g("hidden");
|
|
280
|
+
}), [o4, i5] = useState(true), a3 = useRef([n6]);
|
|
281
|
+
n(() => {
|
|
282
|
+
o4 !== false && a3.current[a3.current.length - 1] !== n6 && (a3.current.push(n6), i5(false));
|
|
283
|
+
}, [a3, n6]);
|
|
284
|
+
let s6 = useMemo(() => ({ show: n6, appear: l5, initial: o4 }), [n6, l5, o4]);
|
|
285
|
+
n(() => {
|
|
286
|
+
n6 ? g("visible") : !M3(v2) && d3.current !== null && g("hidden");
|
|
287
|
+
}, [n6, v2]);
|
|
288
|
+
let r4 = { unmount: S3 }, f5 = o2(() => {
|
|
289
|
+
var u5;
|
|
290
|
+
o4 && i5(false), (u5 = e2.beforeEnter) == null || u5.call(e2);
|
|
291
|
+
}), U = o2(() => {
|
|
292
|
+
var u5;
|
|
293
|
+
o4 && i5(false), (u5 = e2.beforeLeave) == null || u5.call(e2);
|
|
294
|
+
}), H2 = K();
|
|
295
|
+
return l4.createElement(w3.Provider, { value: v2 }, l4.createElement(V.Provider, { value: s6 }, H2({ ourProps: { ...r4, as: Fragment, children: l4.createElement(me, { ref: C3, ...r4, ...R, beforeEnter: f5, beforeLeave: U }) }, theirProps: {}, defaultTag: Fragment, features: fe, visible: h2 === "visible", name: "Transition" })));
|
|
296
|
+
}
|
|
297
|
+
function Le(e2, t4) {
|
|
298
|
+
let n6 = useContext(V) !== null, l5 = u3() !== null;
|
|
299
|
+
return l4.createElement(l4.Fragment, null, !n6 && l5 ? l4.createElement(X, { ref: t4, ...e2 }) : l4.createElement(me, { ref: t4, ...e2 }));
|
|
300
|
+
}
|
|
301
|
+
var X = Y(Ie);
|
|
302
|
+
var me = Y(Fe);
|
|
303
|
+
var Oe = Y(Le);
|
|
304
|
+
var Ke = Object.assign(X, { Child: Oe, Root: X });
|
|
305
|
+
|
|
306
|
+
// ../node_modules/@headlessui/react/dist/components/dialog/dialog.js
|
|
307
|
+
var we = ((o4) => (o4[o4.Open = 0] = "Open", o4[o4.Closed = 1] = "Closed", o4))(we || {});
|
|
308
|
+
var Be = ((t4) => (t4[t4.SetTitleId = 0] = "SetTitleId", t4))(Be || {});
|
|
309
|
+
var Ue = { [0](e2, t4) {
|
|
310
|
+
return e2.titleId === t4.id ? e2 : { ...e2, titleId: t4.id };
|
|
311
|
+
} };
|
|
312
|
+
var w4 = createContext(null);
|
|
313
|
+
w4.displayName = "DialogContext";
|
|
314
|
+
function O2(e2) {
|
|
315
|
+
let t4 = useContext(w4);
|
|
316
|
+
if (t4 === null) {
|
|
317
|
+
let o4 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
|
|
318
|
+
throw Error.captureStackTrace && Error.captureStackTrace(o4, O2), o4;
|
|
319
|
+
}
|
|
320
|
+
return t4;
|
|
321
|
+
}
|
|
322
|
+
function He2(e2, t4) {
|
|
323
|
+
return u(t4.type, Ue, e2, t4);
|
|
324
|
+
}
|
|
325
|
+
var z = Y(function(t4, o4) {
|
|
326
|
+
let a3 = r(), { id: n6 = `headlessui-dialog-${a3}`, open: i5, onClose: p4, initialFocus: d3, role: s6 = "dialog", autoFocus: f5 = true, __demoMode: u5 = false, unmount: y3 = false, ...S3 } = t4, R = useRef(false);
|
|
327
|
+
s6 = (function() {
|
|
328
|
+
return s6 === "dialog" || s6 === "alertdialog" ? s6 : (R.current || (R.current = true, console.warn(`Invalid role [${s6}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
329
|
+
})();
|
|
330
|
+
let g = u3();
|
|
331
|
+
i5 === void 0 && g !== null && (i5 = (g & i3.Open) === i3.Open);
|
|
332
|
+
let T2 = useRef(null), I3 = y(T2, o4), F2 = u2(T2.current), c4 = i5 ? 0 : 1, [b4, Q] = useReducer(He2, { titleId: null, descriptionId: null, panelRef: createRef() }), m3 = o2(() => p4(false)), B2 = o2((r4) => Q({ type: 0, id: r4 })), D = l3() ? c4 === 0 : false, [Z, ee2] = oe(), te2 = { get current() {
|
|
333
|
+
var r4;
|
|
334
|
+
return (r4 = b4.panelRef.current) != null ? r4 : T2.current;
|
|
335
|
+
} }, v2 = x3(), { resolveContainers: M4 } = S2({ mainTreeNode: v2, portals: Z, defaultContainers: [te2] }), U = g !== null ? (g & i3.Closing) === i3.Closing : false;
|
|
336
|
+
y2(u5 || U ? false : D, { allowed: o2(() => {
|
|
337
|
+
var r4, W;
|
|
338
|
+
return [(W = (r4 = T2.current) == null ? void 0 : r4.closest("[data-headlessui-portal]")) != null ? W : null];
|
|
339
|
+
}), disallowed: o2(() => {
|
|
340
|
+
var r4;
|
|
341
|
+
return [(r4 = v2 == null ? void 0 : v2.closest("body > *:not(#headlessui-portal-root)")) != null ? r4 : null];
|
|
342
|
+
}) });
|
|
343
|
+
let P = x.get(null);
|
|
344
|
+
n(() => {
|
|
345
|
+
if (D) return P.actions.push(n6), () => P.actions.pop(n6);
|
|
346
|
+
}, [P, n6, D]);
|
|
347
|
+
let H2 = S(P, useCallback((r4) => P.selectors.isTop(r4, n6), [P, n6]));
|
|
348
|
+
k2(H2, M4, (r4) => {
|
|
349
|
+
r4.preventDefault(), m3();
|
|
350
|
+
}), a(H2, F2 == null ? void 0 : F2.defaultView, (r4) => {
|
|
351
|
+
r4.preventDefault(), r4.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), m3();
|
|
352
|
+
}), f2(u5 || U ? false : D, F2, M4), p2(D, T2, m3);
|
|
353
|
+
let [oe3, ne3] = H(), re2 = useMemo(() => [{ dialogState: c4, close: m3, setTitleId: B2, unmount: y3 }, b4], [c4, m3, B2, y3, b4]), N2 = n2({ open: c4 === 0 }), le2 = { ref: I3, id: n6, role: s6, tabIndex: -1, "aria-modal": u5 ? void 0 : c4 === 0 ? true : void 0, "aria-labelledby": b4.titleId, "aria-describedby": oe3, unmount: y3 }, ae = !f3(), E2 = G.None;
|
|
354
|
+
D && !u5 && (E2 |= G.RestoreFocus, E2 |= G.TabLock, f5 && (E2 |= G.AutoFocus), ae && (E2 |= G.InitialFocus));
|
|
355
|
+
let ie2 = K();
|
|
356
|
+
return l4.createElement(s4, null, l4.createElement(l4$1, { force: true }, l4.createElement(le, null, l4.createElement(w4.Provider, { value: re2 }, l4.createElement(B, { target: T2 }, l4.createElement(l4$1, { force: false }, l4.createElement(ne3, { slot: N2 }, l4.createElement(ee2, null, l4.createElement(ge, { initialFocus: d3, initialFocusFallback: T2, containers: M4, features: E2 }, l4.createElement(C2, { value: m3 }, ie2({ ourProps: le2, theirProps: S3, slot: N2, defaultTag: Ne, features: We, visible: c4 === 0, name: "Dialog" })))))))))));
|
|
357
|
+
});
|
|
358
|
+
var Ne = "div";
|
|
359
|
+
var We = A.RenderStrategy | A.Static;
|
|
360
|
+
function $e(e2, t4) {
|
|
361
|
+
let { transition: o4 = false, open: a3, ...n6 } = e2, i5 = u3(), p4 = e2.hasOwnProperty("open") || i5 !== null, d3 = e2.hasOwnProperty("onClose");
|
|
362
|
+
if (!p4 && !d3) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
363
|
+
if (!p4) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
364
|
+
if (!d3) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
365
|
+
if (!i5 && typeof e2.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e2.open}`);
|
|
366
|
+
if (typeof e2.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e2.onClose}`);
|
|
367
|
+
return (a3 !== void 0 || o4) && !n6.static ? l4.createElement(j, null, l4.createElement(Ke, { show: a3, transition: o4, unmount: n6.unmount }, l4.createElement(z, { ref: t4, ...n6 }))) : l4.createElement(j, null, l4.createElement(z, { ref: t4, open: a3, ...n6 }));
|
|
368
|
+
}
|
|
369
|
+
var je = "div";
|
|
370
|
+
function Ye(e2, t4) {
|
|
371
|
+
let o4 = r(), { id: a3 = `headlessui-dialog-panel-${o4}`, transition: n6 = false, ...i5 } = e2, [{ dialogState: p4, unmount: d3 }, s6] = O2("Dialog.Panel"), f5 = y(t4, s6.panelRef), u5 = n2({ open: p4 === 0 }), y3 = o2((I3) => {
|
|
372
|
+
I3.stopPropagation();
|
|
373
|
+
}), S3 = { ref: f5, id: a3, onClick: y3 }, R = n6 ? Oe : Fragment, g = n6 ? { unmount: d3 } : {}, T2 = K();
|
|
374
|
+
return l4.createElement(R, { ...g }, T2({ ourProps: S3, theirProps: i5, slot: u5, defaultTag: je, name: "Dialog.Panel" }));
|
|
375
|
+
}
|
|
376
|
+
var Je = "div";
|
|
377
|
+
function Ke2(e2, t4) {
|
|
378
|
+
let { transition: o4 = false, ...a3 } = e2, [{ dialogState: n6, unmount: i5 }] = O2("Dialog.Backdrop"), p4 = n2({ open: n6 === 0 }), d3 = { ref: t4, "aria-hidden": true }, s6 = o4 ? Oe : Fragment, f5 = o4 ? { unmount: i5 } : {}, u5 = K();
|
|
379
|
+
return l4.createElement(s6, { ...f5 }, u5({ ourProps: d3, theirProps: a3, slot: p4, defaultTag: Je, name: "Dialog.Backdrop" }));
|
|
380
|
+
}
|
|
381
|
+
var Xe = "h2";
|
|
382
|
+
function Ve(e2, t4) {
|
|
383
|
+
let o4 = r(), { id: a3 = `headlessui-dialog-title-${o4}`, ...n6 } = e2, [{ dialogState: i5, setTitleId: p4 }] = O2("Dialog.Title"), d3 = y(t4);
|
|
384
|
+
useEffect(() => (p4(a3), () => p4(null)), [a3, p4]);
|
|
385
|
+
let s6 = n2({ open: i5 === 0 }), f5 = { ref: d3, id: a3 };
|
|
386
|
+
return K()({ ourProps: f5, theirProps: n6, slot: s6, defaultTag: Xe, name: "Dialog.Title" });
|
|
387
|
+
}
|
|
388
|
+
var qe = Y($e);
|
|
389
|
+
var ze = Y(Ye);
|
|
390
|
+
Y(Ke2);
|
|
391
|
+
var Qe = Y(Ve);
|
|
392
|
+
var ht = Object.assign(qe, { Panel: ze, Title: Qe, Description: M });
|
|
393
|
+
var Modal = ({
|
|
394
|
+
onClose: close,
|
|
395
|
+
children,
|
|
396
|
+
visible = false,
|
|
397
|
+
closeOnOutsideClick = false
|
|
398
|
+
}) => {
|
|
399
|
+
const intl = useIntl();
|
|
400
|
+
const handleClose = () => {
|
|
401
|
+
if (closeOnOutsideClick && close) {
|
|
402
|
+
close();
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
return /* @__PURE__ */ jsx(Ke, { show: visible, children: /* @__PURE__ */ jsxs(ht, { onClose: handleClose, className: "relative z-50", children: [
|
|
406
|
+
/* @__PURE__ */ jsx(
|
|
407
|
+
Oe,
|
|
408
|
+
{
|
|
409
|
+
enter: "ease-out duration-200",
|
|
410
|
+
enterFrom: "opacity-0",
|
|
411
|
+
enterTo: "opacity-100",
|
|
412
|
+
leave: "ease-in duration-150",
|
|
413
|
+
leaveFrom: "opacity-100",
|
|
414
|
+
leaveTo: "opacity-0",
|
|
415
|
+
children: /* @__PURE__ */ jsx(
|
|
416
|
+
"div",
|
|
417
|
+
{
|
|
418
|
+
className: "fixed inset-0 bg-slate-950/60 backdrop-blur-sm",
|
|
419
|
+
"aria-hidden": "true"
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
}
|
|
423
|
+
),
|
|
424
|
+
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsx(
|
|
425
|
+
Oe,
|
|
426
|
+
{
|
|
427
|
+
enter: "ease-out duration-200",
|
|
428
|
+
enterFrom: "opacity-0 scale-95 translate-y-4",
|
|
429
|
+
enterTo: "opacity-100 scale-100 translate-y-0",
|
|
430
|
+
leave: "ease-in duration-150",
|
|
431
|
+
leaveFrom: "opacity-100 scale-100 translate-y-0",
|
|
432
|
+
leaveTo: "opacity-0 scale-95 translate-y-4",
|
|
433
|
+
children: /* @__PURE__ */ jsxs(ze, { className: "relative w-full max-w-lg transform overflow-hidden rounded-lg bg-surface px-4 pt-5 pb-4 text-left shadow-2xl sm:p-6", children: [
|
|
434
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 right-0 pt-4 pr-4 sm:block", children: /* @__PURE__ */ jsxs(
|
|
435
|
+
"button",
|
|
436
|
+
{
|
|
437
|
+
id: "modal_close",
|
|
438
|
+
type: "button",
|
|
439
|
+
onClick: close,
|
|
440
|
+
className: "rounded-md bg-surface-input text-text-muted hover:text-text-secondary focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",
|
|
441
|
+
children: [
|
|
442
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: intl.formatMessage({
|
|
443
|
+
id: "close",
|
|
444
|
+
defaultMessage: "Close"
|
|
445
|
+
}) }),
|
|
446
|
+
/* @__PURE__ */ jsx(
|
|
447
|
+
"svg",
|
|
448
|
+
{
|
|
449
|
+
className: "h-6 w-6",
|
|
450
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
451
|
+
fill: "none",
|
|
452
|
+
viewBox: "0 0 24 24",
|
|
453
|
+
stroke: "currentColor",
|
|
454
|
+
"aria-hidden": "true",
|
|
455
|
+
children: /* @__PURE__ */ jsx(
|
|
456
|
+
"path",
|
|
457
|
+
{
|
|
458
|
+
strokeLinecap: "round",
|
|
459
|
+
strokeLinejoin: "round",
|
|
460
|
+
strokeWidth: "2",
|
|
461
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
) }),
|
|
469
|
+
children && l4.isValidElement(children) ? l4.cloneElement(children, {
|
|
470
|
+
close
|
|
471
|
+
}) : children
|
|
472
|
+
] })
|
|
473
|
+
}
|
|
474
|
+
) }) })
|
|
475
|
+
] }) });
|
|
476
|
+
};
|
|
477
|
+
var Modal_default = Modal;
|
|
478
|
+
var ModalWrapper = ({ children }) => {
|
|
479
|
+
const [modalChildren, setChildren] = useState(null);
|
|
480
|
+
const [closeOnOutsideClick, setCloseOnOutsideClick] = useState(false);
|
|
481
|
+
const hideModal = () => setChildren(null);
|
|
482
|
+
const [onClose, setOnClose] = useState(() => hideModal);
|
|
483
|
+
const ctx = useMemo(() => {
|
|
484
|
+
const setModal = (newModalChildren, { closeOnOutsideClick: newCloseOnOutsideClick = false } = {}) => {
|
|
485
|
+
return new Promise((resolve) => {
|
|
486
|
+
if (!newModalChildren) {
|
|
487
|
+
resolve(true);
|
|
488
|
+
}
|
|
489
|
+
setCloseOnOutsideClick(newCloseOnOutsideClick);
|
|
490
|
+
setChildren(() => newModalChildren);
|
|
491
|
+
setOnClose(() => () => {
|
|
492
|
+
hideModal();
|
|
493
|
+
resolve(true);
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
return { setModal };
|
|
498
|
+
}, []);
|
|
499
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
500
|
+
/* @__PURE__ */ jsx(
|
|
501
|
+
Modal_default,
|
|
502
|
+
{
|
|
503
|
+
visible: !!modalChildren,
|
|
504
|
+
onClose,
|
|
505
|
+
closeOnOutsideClick,
|
|
506
|
+
children: modalChildren
|
|
507
|
+
}
|
|
508
|
+
),
|
|
509
|
+
/* @__PURE__ */ jsx(ModalContext_default.Provider, { value: ctx, children })
|
|
510
|
+
] });
|
|
511
|
+
};
|
|
512
|
+
var ModalWrapper_default = ModalWrapper;
|
|
513
|
+
|
|
514
|
+
export { ModalWrapper_default, Modal_default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// src/modules/modal/utils/ModalContext.ts
|
|
4
|
+
var ModalContext = React.createContext({
|
|
5
|
+
setModal: () => {
|
|
6
|
+
throw new Error("No ModalContext/ModalWrapper ancestor found.");
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
var ModalContext_default = ModalContext;
|
|
10
|
+
|
|
11
|
+
export { ModalContext_default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useLocalStorage_default } from './chunk-54DKBWXV.js';
|
|
2
|
+
import { createContext, useEffect, useMemo } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var ThemeContext = createContext(
|
|
6
|
+
void 0
|
|
7
|
+
);
|
|
8
|
+
var getInitialTheme = () => {
|
|
9
|
+
if (typeof window === "undefined") return "light";
|
|
10
|
+
try {
|
|
11
|
+
const stored = window.localStorage.getItem("theme");
|
|
12
|
+
if (stored) {
|
|
13
|
+
const parsed = JSON.parse(stored);
|
|
14
|
+
if (parsed === "dark" || parsed === "light") return parsed;
|
|
15
|
+
}
|
|
16
|
+
} catch {
|
|
17
|
+
const raw = window.localStorage.getItem("theme");
|
|
18
|
+
if (raw === "dark" || raw === '"dark"') return "dark";
|
|
19
|
+
if (raw === "light" || raw === '"light"') return "light";
|
|
20
|
+
}
|
|
21
|
+
if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
|
22
|
+
return "light";
|
|
23
|
+
};
|
|
24
|
+
var ThemeWrapper = ({ children }) => {
|
|
25
|
+
const [theme, setTheme] = useLocalStorage_default("theme", getInitialTheme());
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const html = document.documentElement;
|
|
28
|
+
if (theme === "dark") {
|
|
29
|
+
html.classList.add("dark");
|
|
30
|
+
} else {
|
|
31
|
+
html.classList.remove("dark");
|
|
32
|
+
}
|
|
33
|
+
}, [theme]);
|
|
34
|
+
const value = useMemo(() => [theme, setTheme], [theme]);
|
|
35
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
|
|
36
|
+
};
|
|
37
|
+
var ThemeWrapper_default = ThemeWrapper;
|
|
38
|
+
|
|
39
|
+
export { ThemeContext, ThemeWrapper_default };
|