@unchainedshop/admin-ui 5.0.0-alpha.3 → 5.0.0-alpha.4
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/README.md +92 -35
- 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 +30077 -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 +21527 -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/0-p8a6-okjx49.js +15 -0
- package/out/_next/static/chunks/0-u5tid26i8-3.js +188 -0
- package/out/_next/static/chunks/008hxgil51owu.js +234 -0
- package/out/_next/static/chunks/026k3ys50h91u.js +15 -0
- package/out/_next/static/chunks/02aa23atze2y4.js +119 -0
- package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
- package/out/_next/static/chunks/03f0hv23abn4a.js +12 -0
- package/out/_next/static/chunks/03p0xulfluyqm.js +15 -0
- package/out/_next/static/chunks/044dmimivt13x.js +233 -0
- package/out/_next/static/chunks/047gokoblz-qy.js +16 -0
- package/out/_next/static/chunks/04yroykjly9ni.js +15 -0
- package/out/_next/static/chunks/05h2_5y4i_fe4.js +12 -0
- package/out/_next/static/chunks/0641gh6yb6tnd.js +3 -0
- package/out/_next/static/chunks/06bsql5zgjpaj.js +315 -0
- package/out/_next/static/chunks/06jtnxd7wr712.js +1 -0
- package/out/_next/static/chunks/070wy1qe-7-uf.js +242 -0
- package/out/_next/static/chunks/07l1vdt21xneu.js +14 -0
- package/out/_next/static/chunks/07q8ufsdxo1tx.js +1 -0
- package/out/_next/static/chunks/087a2d-0e1pvn.js +1 -0
- package/out/_next/static/chunks/09pees0w94cvm.js +1 -0
- package/out/_next/static/chunks/0_wmk0z5r9thu.js +95 -0
- package/out/_next/static/chunks/0ab_-095b34n5.js +90 -0
- package/out/_next/static/chunks/0aom8abciz-yf.js +1 -0
- package/out/_next/static/chunks/0cdcsn87u-tzw.js +1 -0
- package/out/_next/static/chunks/0cu-wqc76z_w6.js +1 -0
- package/out/_next/static/chunks/0dnzfqa8el54j.js +135 -0
- package/out/_next/static/chunks/0f-hhcgpd3kjt.js +5 -0
- package/out/_next/static/chunks/0gdriupdpmq28.js +14 -0
- package/out/_next/static/chunks/0hm6-xlqw4vmr.js +1 -0
- package/out/_next/static/chunks/0hmdmxkzhdtjx.js +155 -0
- package/out/_next/static/chunks/0hpirq7m-gjle.js +23 -0
- package/out/_next/static/chunks/0hup5ovc9v_-h.js +58 -0
- package/out/_next/static/chunks/0hxsdaxwhc3z4.js +110 -0
- package/out/_next/static/chunks/0j-yonuwgtg0k.js +22 -0
- package/out/_next/static/chunks/0jo3ujn_icmb9.js +28 -0
- package/out/_next/static/chunks/0mayhrft9-4hw.js +13 -0
- package/out/_next/static/chunks/0mdh4qszx-qw8.js +1 -0
- package/out/_next/static/chunks/0nyu34hvyz9_k.js +103 -0
- package/out/_next/static/chunks/0nz8nqr7k7pni.js +61 -0
- package/out/_next/static/chunks/0pjv94c771817.js +13 -0
- package/out/_next/static/chunks/0qrepe4aqal8_.js +2 -0
- package/out/_next/static/chunks/0qtbb-w9hs2i_.js +1 -0
- package/out/_next/static/chunks/0r0l1vs8bls6y.js +1 -0
- package/out/_next/static/chunks/0r2v5se5riad_.js +227 -0
- package/out/_next/static/chunks/0s3aax3no2y3_.js +54 -0
- package/out/_next/static/chunks/0sys36fl1uhl-.js +18 -0
- package/out/_next/static/chunks/0u-md-qpvyccn.js +149 -0
- package/out/_next/static/chunks/0ukobsq85_to1.js +135 -0
- package/out/_next/static/chunks/0vcn7yqzt3qlc.js +10 -0
- package/out/_next/static/chunks/0wl_oo549tgsw.js +14 -0
- package/out/_next/static/chunks/0wm5atnhe2mjs.js +119 -0
- package/out/_next/static/chunks/0wpmgf2-hr2iv.js +1 -0
- package/out/_next/static/chunks/0wthf9v7cuwqf.js +3 -0
- package/out/_next/static/chunks/0xcxmgeevaadl.js +8 -0
- package/out/_next/static/chunks/0xoerh23zk-pj.js +44 -0
- package/out/_next/static/chunks/0xvoojz5c4j32.js +14 -0
- package/out/_next/static/chunks/0ykc9b-l7rcv9.js +18 -0
- package/out/_next/static/chunks/0zb8qwy33hihq.js +142 -0
- package/out/_next/static/chunks/0zgu8kiokvsjz.js +1 -0
- package/out/_next/static/chunks/0zk0s8hqsf5tg.js +18 -0
- package/out/_next/static/chunks/0zl6mu89n1_wq.js +1 -0
- package/out/_next/static/chunks/0zntg6ltu_fk3.js +14 -0
- package/out/_next/static/chunks/10996osm11rxi.js +327 -0
- package/out/_next/static/chunks/10q9_f1ss9afd.js +8 -0
- package/out/_next/static/chunks/110vhftkm53lj.js +111 -0
- package/out/_next/static/chunks/113_jsmrqky1h.js +130 -0
- package/out/_next/static/chunks/11fqypagzye_v.js +43 -0
- package/out/_next/static/chunks/137522d4_apiu.js +166 -0
- package/out/_next/static/chunks/13ml43jv3bxh1.js +1 -0
- package/out/_next/static/chunks/16ad724tleody.js +13 -0
- package/out/_next/static/chunks/16r_t7quts1w0.js +289 -0
- package/out/_next/static/chunks/16yomp2b55xod.js +30 -0
- package/out/_next/static/chunks/17jd_42ijblk-.js +15 -0
- package/out/_next/static/chunks/17xseq9yxu638.js +1 -0
- package/out/_next/static/chunks/18yznjdgjug5c.js +7 -0
- package/out/_next/static/chunks/19i-cq0_2t00g.js +60 -0
- package/out/_next/static/chunks/19ppkss30jscq.js +13 -0
- package/out/_next/static/chunks/1_ov-8bomgh6c.js +54 -0
- package/out/_next/static/chunks/1b9l0n8vz64x7.js +233 -0
- package/out/_next/static/chunks/1cn3pe6lxja9e.js +44 -0
- package/out/_next/static/chunks/1dsjo02ozub3p.js +342 -0
- package/out/_next/static/chunks/1dut2ep8qfdv4.js +14 -0
- package/out/_next/static/chunks/1eqs_86cqpxcx.js +138 -0
- package/out/_next/static/chunks/1exlzd6w18o_b.js +8 -0
- package/out/_next/static/chunks/1f04wea7zvjf5.js +2 -0
- package/out/_next/static/chunks/1fqsykinbg1d_.js +12 -0
- package/out/_next/static/chunks/1g5l7e7du4p25.js +1 -0
- package/out/_next/static/chunks/1hokoliuqn63p.js +17 -0
- package/out/_next/static/chunks/1ihjqvn68cj5e.js +36 -0
- package/out/_next/static/chunks/1k798vpov34v6.js +12 -0
- package/out/_next/static/chunks/1lewut00m9sq1.js +1 -0
- package/out/_next/static/chunks/1lwiflo8v2d93.js +1 -0
- package/out/_next/static/chunks/1ng9tsm1f8e_a.js +1 -0
- package/out/_next/static/chunks/1nvy3y5qe_igv.js +233 -0
- package/out/_next/static/chunks/1osrrozfse5jn.js +190 -0
- package/out/_next/static/chunks/1ozaatz-b_-as.js +41 -0
- package/out/_next/static/chunks/1paq5rkj25r88.js +1 -0
- package/out/_next/static/chunks/1q2l02eq094zc.js +147 -0
- package/out/_next/static/chunks/1q8zx2rmluekr.js +13 -0
- package/out/_next/static/chunks/1qnuk3631sd6i.js +807 -0
- package/out/_next/static/chunks/1r0aluuzu5vw7.js +13 -0
- package/out/_next/static/chunks/1rgwj4dr0k4_b.js +5 -0
- package/out/_next/static/chunks/1sgv26vi42stl.js +13 -0
- package/out/_next/static/chunks/1t80pe40g73fh.js +82 -0
- package/out/_next/static/chunks/1u6jfjnf14knz.js +124 -0
- package/out/_next/static/chunks/1vnvinjvn78t3.js +1 -0
- package/out/_next/static/chunks/1xg3ey2rrdxfx.js +1 -0
- package/out/_next/static/chunks/1xx6ie3yh2hbk.js +235 -0
- package/out/_next/static/chunks/1y-vwb0-v5xv0.js +304 -0
- package/out/_next/static/chunks/2-8-i_m-82mjh.js +43 -0
- package/out/_next/static/chunks/2-s6g5_cyahx8.js +1 -0
- package/out/_next/static/chunks/20ndjd4r5l6vk.js +1 -0
- package/out/_next/static/chunks/20v019mj-zi94.js +13 -0
- package/out/_next/static/chunks/21w-hkh4_w1kl.js +19 -0
- package/out/_next/static/chunks/226ya3lbz_55w.js +19 -0
- package/out/_next/static/chunks/22az81pi-bqjb.js +1 -0
- package/out/_next/static/chunks/22get2_2lcba-.js +21 -0
- package/out/_next/static/chunks/22l-2aehes9lx.js +153 -0
- package/out/_next/static/chunks/23y9nin7qo-xy.js +17 -0
- package/out/_next/static/chunks/25t23h8zbmzh-.js +12 -0
- package/out/_next/static/chunks/273zh05aw6uz2.js +13 -0
- package/out/_next/static/chunks/28o-5560g4bwk.js +7 -0
- package/out/_next/static/chunks/28zahy_uqar2t.js +12 -0
- package/out/_next/static/chunks/29dylunjhn4te.js +34 -0
- package/out/_next/static/chunks/2_3qu55ddb4jo.js +3 -0
- package/out/_next/static/chunks/2_7z1veshuiiw.js +10 -0
- package/out/_next/static/chunks/2_ztj391g9yzt.js +226 -0
- package/out/_next/static/chunks/2a9z_gm1vn39c.js +173 -0
- package/out/_next/static/chunks/2a_46b7_7ml_y.js +1 -0
- package/out/_next/static/chunks/2b8nhs_3rpawc.js +1 -0
- package/out/_next/static/chunks/2biyd1hzgc2sv.js +339 -0
- package/out/_next/static/chunks/2c2vssolfspzg.js +50 -0
- package/out/_next/static/chunks/2dbrybnhe5thu.css +1 -0
- package/out/_next/static/chunks/2diqy5aehqe8j.js +58 -0
- package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
- package/out/_next/static/chunks/2dq4d-ey-16cq.js +1 -0
- package/out/_next/static/chunks/2dyysegkbptw8.js +11 -0
- package/out/_next/static/chunks/2ei1rfxsl3q65.js +31 -0
- package/out/_next/static/chunks/2fazxtc5_9tgo.js +52 -0
- package/out/_next/static/chunks/2fzc9bsweg7nf.js +807 -0
- package/out/_next/static/chunks/2h5-bnhry6wzl.js +14 -0
- package/out/_next/static/chunks/2hmtn1okhj6zz.js +234 -0
- package/out/_next/static/chunks/2htrbj6g7da-e.js +12 -0
- package/out/_next/static/chunks/2j0apwnxuaeox.js +14 -0
- package/out/_next/static/chunks/2j51l4ukmrn7j.js +17 -0
- package/out/_next/static/chunks/2k4cusvrm93cp.js +39 -0
- package/out/_next/static/chunks/2ldks6pel2wcp.js +31 -0
- package/out/_next/static/chunks/2loz6t7f69t0c.js +1 -0
- package/out/_next/static/chunks/2onfts3kpe9d8.js +1 -0
- package/out/_next/static/chunks/2p9aozkdq_z13.js +329 -0
- package/out/_next/static/chunks/2pz2u5us_0jme.js +5 -0
- package/out/_next/static/chunks/2qaf44ypuy_4z.js +1 -0
- package/out/_next/static/chunks/2r1-eyf6hic-m.js +1 -0
- package/out/_next/static/chunks/2ritd1boot22-.js +32 -0
- package/out/_next/static/chunks/2s1__k407zn6n.js +1 -0
- package/out/_next/static/chunks/2s6qkrjh7-b6s.js +1 -0
- package/out/_next/static/chunks/2t70ji9pnllxh.js +81 -0
- package/out/_next/static/chunks/2tc6lgajxmo78.js +3 -0
- package/out/_next/static/chunks/2twd9trj9horc.js +61 -0
- package/out/_next/static/chunks/2ua7-skz9vm4r.js +13 -0
- package/out/_next/static/chunks/2vjkcd8g_hh68.js +46 -0
- package/out/_next/static/chunks/2w1twpn4nui6h.js +807 -0
- package/out/_next/static/chunks/2x4vo24qfe0mr.js +1 -0
- package/out/_next/static/chunks/2zm-d0-e0sxgo.js +23 -0
- package/out/_next/static/chunks/3-u1dp82vzyt9.js +1 -0
- package/out/_next/static/chunks/30iz3jszdu04d.js +11 -0
- package/out/_next/static/chunks/30jmh-3cp5wcg.js +12 -0
- package/out/_next/static/chunks/3178a_a_i-e-q.js +16 -0
- package/out/_next/static/chunks/317qzy7r8meg_.js +1 -0
- package/out/_next/static/chunks/32nwqfli0ne57.js +1 -0
- package/out/_next/static/chunks/33c-rzkj2k2v1.js +14 -0
- package/out/_next/static/chunks/33g91_yljnpiw.js +807 -0
- package/out/_next/static/chunks/34dhtdp_8idgm.js +658 -0
- package/out/_next/static/chunks/34ybf-w3bdlw8.js +13 -0
- package/out/_next/static/chunks/35-vqjhcep-zw.js +60 -0
- package/out/_next/static/chunks/358r9pdxbk-fv.js +39 -0
- package/out/_next/static/chunks/35a6ymsh4q0-o.js +14 -0
- package/out/_next/static/chunks/36yrxjq9zbvpx.js +13 -0
- package/out/_next/static/chunks/377ho63k7qphg.js +14 -0
- package/out/_next/static/chunks/37bs69urhjdz5.js +24 -0
- package/out/_next/static/chunks/37mpnb5qztb_g.js +15 -0
- package/out/_next/static/chunks/3827hqe9_anr7.js +24 -0
- package/out/_next/static/chunks/3a0_vzfa54k35.js +7 -0
- package/out/_next/static/chunks/3a8a8fpl7-ndf.js +1 -0
- package/out/_next/static/chunks/3b6hct2rk2wu9.js +24 -0
- package/out/_next/static/chunks/3czsj6bdmobbd.js +24 -0
- package/out/_next/static/chunks/3d0ic2ovyeue7.js +2 -0
- package/out/_next/static/chunks/3eq1b2m2xkkmp.js +1 -0
- package/out/_next/static/chunks/3f2ue6ut-mwka.js +2 -0
- package/out/_next/static/chunks/3g67xtrp0vv4m.js +1 -0
- package/out/_next/static/chunks/3iepyd4rzl-tt.js +13 -0
- package/out/_next/static/chunks/3j6p-522fcsnj.js +1 -0
- package/out/_next/static/chunks/3kle_yukf5aux.js +809 -0
- package/out/_next/static/chunks/3l_nx7eopgh02.js +1 -0
- package/out/_next/static/chunks/3mk-cv2ocv93u.js +50 -0
- package/out/_next/static/chunks/3n5290qcigwpc.js +13 -0
- package/out/_next/static/chunks/3nl02jbknvx4p.js +14 -0
- package/out/_next/static/chunks/3o5a5qn0dnq04.js +3 -0
- package/out/_next/static/chunks/3o5kwvdgt_t9z.js +73 -0
- package/out/_next/static/chunks/3qamj8gt1ijdz.js +12 -0
- package/out/_next/static/chunks/3rlrwz262rpw0.js +1 -0
- package/out/_next/static/chunks/3s3v9n_ob4m24.js +18 -0
- package/out/_next/static/chunks/3s47qr8fn6h4j.js +8 -0
- package/out/_next/static/chunks/3slzhmkeoggpm.js +66 -0
- package/out/_next/static/chunks/3tv9csz53av-5.js +1 -0
- package/out/_next/static/chunks/3uec1_7irpl71.js +16 -0
- package/out/_next/static/chunks/3uo1w1gaj7tsx.js +117 -0
- package/out/_next/static/chunks/3uwev5xyub_j1.js +7 -0
- package/out/_next/static/chunks/3w450c1xmh550.js +12 -0
- package/out/_next/static/chunks/3x8aami6-3l79.js +31 -0
- package/out/_next/static/chunks/3xhogi6_bbwh7.js +10 -0
- package/out/_next/static/chunks/3y62dz45ticve.js +1 -0
- package/out/_next/static/chunks/3yjzk_udmhv3i.js +1 -0
- package/out/_next/static/chunks/3z6v84zof80bt.js +1 -0
- package/out/_next/static/chunks/3zncjth-kop8p.js +1 -0
- package/out/_next/static/chunks/3zp4iedgev460.js +35 -0
- package/out/_next/static/chunks/413qu_x6yky1e.js +1 -0
- package/out/_next/static/chunks/41j8mb2ztwydi.js +14 -0
- package/out/_next/static/chunks/41pc5_e25bhgd.js +1 -0
- package/out/_next/static/chunks/424z-zudpy3n0.js +39 -0
- package/out/_next/static/chunks/42o6t6-v2qi37.js +29 -0
- package/out/_next/static/chunks/434iz38padke2.js +1 -0
- package/out/_next/static/chunks/43pb7hjetp965.js +1 -0
- package/out/_next/static/chunks/44rharl5hvsw-.js +22 -0
- package/out/_next/static/chunks/45ac68ug7hcoc.js +13 -0
- package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +1 -0
- package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +1 -0
- package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +1 -0
- package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +1 -0
- package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +1 -0
- package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +1 -0
- package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +1 -0
- package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +1 -0
- package/out/_next/static/chunks/turbopack-0g9gjb70ob0rb.js +1 -0
- package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +1 -0
- package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +1 -0
- package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +1 -0
- package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +1 -0
- package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +1 -0
- package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +1 -0
- package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +1 -0
- package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +1 -0
- package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +1 -0
- package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +1 -0
- package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +1 -0
- package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +1 -0
- package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +1 -0
- package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +1 -0
- package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +1 -0
- package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +1 -0
- package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +1 -0
- package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +1 -0
- package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +1 -0
- package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +1 -0
- package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +1 -0
- package/out/_next/static/chunks/turbopack-280jnadydykur.js +1 -0
- package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +1 -0
- package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +1 -0
- package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +1 -0
- package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +1 -0
- package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +1 -0
- package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +1 -0
- package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +1 -0
- package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +1 -0
- package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +1 -0
- package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +1 -0
- package/out/_next/static/chunks/turbopack-33v049epa0erx.js +1 -0
- package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +1 -0
- package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +1 -0
- package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +1 -0
- package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +1 -0
- package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +1 -0
- package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +1 -0
- package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +1 -0
- package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +1 -0
- package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +1 -0
- package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +1 -0
- package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +1 -0
- package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +1 -0
- package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +1 -0
- package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +1 -0
- package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +1 -0
- package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +1 -0
- package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +1 -0
- package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +1 -0
- package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +1 -0
- package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +1 -0
- package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +1 -0
- package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +1 -0
- package/out/_next/static/mgojmR_4GNqJNutDR9oFi/_buildManifest.js +262 -0
- 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/ext/[[...slug]]/index.html +11 -0
- 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 +104 -13
- package/src/modules/accounts/index.ts +34 -0
- package/src/modules/assortment/index.ts +29 -0
- package/src/modules/copilot/index.ts +4 -0
- package/src/modules/country/index.ts +5 -0
- package/src/modules/currency/index.ts +5 -0
- package/src/modules/delivery-provider/index.ts +7 -0
- package/src/modules/enrollment/index.ts +6 -0
- package/src/modules/event/index.ts +3 -0
- package/src/modules/filter/index.ts +13 -0
- package/src/modules/language/index.ts +5 -0
- package/src/modules/order/index.ts +8 -0
- package/src/modules/payment-providers/index.ts +7 -0
- package/src/modules/product/index.ts +47 -0
- package/src/modules/product-review/index.ts +6 -0
- package/src/modules/quotation/index.ts +6 -0
- package/src/modules/token/index.ts +3 -0
- package/src/modules/warehousing-providers/index.ts +7 -0
- package/src/modules/work/index.ts +7 -0
- package/src/sdk/hooks.ts +11 -0
- package/src/sdk/modal.ts +6 -0
- package/src/sdk/plugin-build.mjs +112 -0
- package/src/sdk/plugin-build.test.mjs +11 -0
- package/src/sdk/plugins.ts +88 -0
- package/src/sdk/providers.ts +4 -0
- package/src/sdk/tailwind-preset.mjs +94 -0
- package/src/sdk/theme.ts +61 -0
- package/src/styles/globals.css +291 -0
- package/out/_next/static/chunks/0-beu4vu82jrh.js +0 -1
- package/out/_next/static/chunks/0-l8x8k72-b3i.js +0 -173
- package/out/_next/static/chunks/0-v2_9sc~l3._.js +0 -1
- package/out/_next/static/chunks/0.b6lj.zfgeh7.js +0 -807
- package/out/_next/static/chunks/0.jjzw42mzofa.js +0 -18
- package/out/_next/static/chunks/0.ubb4bvs288f.js +0 -193
- package/out/_next/static/chunks/00c-9lviyc08t.js +0 -16
- package/out/_next/static/chunks/00svmiwah8ghd.js +0 -177
- package/out/_next/static/chunks/00w.kj6uow_p1.js +0 -1
- package/out/_next/static/chunks/00zf52snz2696.js +0 -81
- package/out/_next/static/chunks/0126hh69s1hoo.js +0 -20
- package/out/_next/static/chunks/017~qlhsonz-s.js +0 -13
- package/out/_next/static/chunks/01id70ruu9sh_.js +0 -12
- package/out/_next/static/chunks/01m-zxw6aa~7o.js +0 -61
- package/out/_next/static/chunks/01ysagjr-k~86.js +0 -1
- package/out/_next/static/chunks/023vppfa5lmsd.js +0 -101
- package/out/_next/static/chunks/023zn3balilgv.js +0 -5
- package/out/_next/static/chunks/028eszr30ru.w.js +0 -12
- package/out/_next/static/chunks/02_yal0ces9jz.js +0 -1
- package/out/_next/static/chunks/02dcbva7h6wk9.js +0 -5
- package/out/_next/static/chunks/02lgka7~ifqqk.js +0 -1
- package/out/_next/static/chunks/02ndocqxudfh0.js +0 -22
- package/out/_next/static/chunks/02x1c3t9oyfks.js +0 -119
- package/out/_next/static/chunks/039laq217w5af.js +0 -1
- package/out/_next/static/chunks/03hx8y-tzfrw6.js +0 -1
- package/out/_next/static/chunks/03in_nfvncouz.js +0 -1
- package/out/_next/static/chunks/041tlotwv9m5t.js +0 -453
- package/out/_next/static/chunks/04aykq1~5oirm.js +0 -51
- package/out/_next/static/chunks/04b5k~na~95by.js +0 -46
- package/out/_next/static/chunks/04f091-bji_n_.js +0 -7
- package/out/_next/static/chunks/05ooekd_aohh9.js +0 -23
- package/out/_next/static/chunks/05rt.5mp24nl~.js +0 -13
- package/out/_next/static/chunks/05xkbw-s9zm4v.js +0 -1
- package/out/_next/static/chunks/05zsgso1ahpy8.js +0 -1
- package/out/_next/static/chunks/06ersyx7hvzq1.js +0 -1
- package/out/_next/static/chunks/06gd8resd2.0_.js +0 -9
- package/out/_next/static/chunks/06v745r0yfx2h.js +0 -14
- package/out/_next/static/chunks/073ao37i9gvu-.js +0 -324
- package/out/_next/static/chunks/07l.kk7q4.zh_.js +0 -46
- package/out/_next/static/chunks/07t_6bb3~hkt5.js +0 -15
- package/out/_next/static/chunks/0831dsm.9c1xz.js +0 -15
- package/out/_next/static/chunks/087eh6vsk6_bc.js +0 -43
- package/out/_next/static/chunks/08i6ja.9lua9i.js +0 -286
- package/out/_next/static/chunks/08znjfem0b_of.js +0 -21
- package/out/_next/static/chunks/09_9z~x1_3-1m.js +0 -13
- package/out/_next/static/chunks/09n.y.scb-.st.js +0 -46
- package/out/_next/static/chunks/09p_6hs26lbin.js +0 -31
- package/out/_next/static/chunks/0_77~m-d~ywyj.js +0 -3
- package/out/_next/static/chunks/0_b2f-s77.vbq.js +0 -217
- package/out/_next/static/chunks/0_ikmdl.vzsxi.js +0 -16
- package/out/_next/static/chunks/0_tmrtwx_w001.js +0 -1
- package/out/_next/static/chunks/0_z350k96nua5.js +0 -14
- package/out/_next/static/chunks/0ajirl~6u8vk7.js +0 -384
- package/out/_next/static/chunks/0apih1f_pg7x5.js +0 -22
- package/out/_next/static/chunks/0aqdc68pqu1yc.js +0 -90
- package/out/_next/static/chunks/0aqhw_0u56sd_.js +0 -13
- package/out/_next/static/chunks/0av.mpk52l~sj.js +0 -78
- package/out/_next/static/chunks/0b6~~7c3s-__r.js +0 -2
- package/out/_next/static/chunks/0b_7pbsfo~250.js +0 -224
- package/out/_next/static/chunks/0bgpq4k~.1ow~.js +0 -1
- package/out/_next/static/chunks/0cd47wcv36ymf.js +0 -14
- package/out/_next/static/chunks/0cy-p_9pru_18.js +0 -13
- package/out/_next/static/chunks/0dhkgg675.w3e.js +0 -8
- package/out/_next/static/chunks/0dm~u98d.uay9.js +0 -807
- package/out/_next/static/chunks/0e82nep-emmqv.js +0 -22
- package/out/_next/static/chunks/0ekar8mz4g5.z.js +0 -188
- package/out/_next/static/chunks/0eqvk8uoluycv.js +0 -1
- package/out/_next/static/chunks/0ett.ps-ssh3m.js +0 -1
- package/out/_next/static/chunks/0f4j14khj0-nb.js +0 -13
- package/out/_next/static/chunks/0fq.42f6~eau3.js +0 -110
- package/out/_next/static/chunks/0fv65thyl.pzd.js +0 -137
- package/out/_next/static/chunks/0fvye09yb7vxo.js +0 -1
- package/out/_next/static/chunks/0g4z-lcj831re.js +0 -22
- package/out/_next/static/chunks/0gcrw01taxxl6.js +0 -1
- package/out/_next/static/chunks/0gex7d5-6_u7w.js +0 -15
- package/out/_next/static/chunks/0gmu_zxzdk79-.js +0 -36
- package/out/_next/static/chunks/0gp0s~altxh1r.js +0 -16
- package/out/_next/static/chunks/0gw21r~kskkbu.js +0 -8
- package/out/_next/static/chunks/0h.yfartl.0w2.js +0 -13
- package/out/_next/static/chunks/0hvsgrhdl9vxu.js +0 -87
- package/out/_next/static/chunks/0hxa2hw0bx6p9.js +0 -31
- package/out/_next/static/chunks/0idm_1owz2~do.js +0 -147
- package/out/_next/static/chunks/0if0kxk_fvctv.js +0 -807
- package/out/_next/static/chunks/0ipga2yl6f8s2.js +0 -1
- package/out/_next/static/chunks/0irir.4f~3vjv.js +0 -1
- package/out/_next/static/chunks/0iz~...y5_a2o.js +0 -58
- package/out/_next/static/chunks/0j0-6c41tk-jn.js +0 -227
- package/out/_next/static/chunks/0j3oxwqbdm1~u.js +0 -32
- package/out/_next/static/chunks/0j8g1ir4-2kf-.js +0 -1
- package/out/_next/static/chunks/0je-l.-3mmyx0.js +0 -7
- package/out/_next/static/chunks/0jsponpskt26n.js +0 -15
- package/out/_next/static/chunks/0jwk3hxdqma6f.js +0 -44
- package/out/_next/static/chunks/0k4hc0roxks1w.js +0 -135
- package/out/_next/static/chunks/0kd-elup-.5rv.js +0 -92
- package/out/_next/static/chunks/0kdk1jnxow07e.js +0 -51
- package/out/_next/static/chunks/0kjwfgi7qnsh8.js +0 -60
- package/out/_next/static/chunks/0kpbcc6kx92ab.js +0 -1
- package/out/_next/static/chunks/0kpqfcm6kz1pz.js +0 -5
- package/out/_next/static/chunks/0kuj3je3qjyj~.js +0 -13
- package/out/_next/static/chunks/0kwdvew2~wd8o.js +0 -16
- package/out/_next/static/chunks/0kwir-xluvjdw.js +0 -144
- package/out/_next/static/chunks/0l.811sicmaw3.js +0 -1
- package/out/_next/static/chunks/0l8ujxmk7702g.js +0 -1
- package/out/_next/static/chunks/0lazwl9790oz5.js +0 -1
- package/out/_next/static/chunks/0lp3vsoi498i1.js +0 -19
- package/out/_next/static/chunks/0lp40p3~dgcgl.js +0 -14
- package/out/_next/static/chunks/0lq9yvo7q3obl.js +0 -1
- package/out/_next/static/chunks/0m.jl7so.pr8k.js +0 -15
- package/out/_next/static/chunks/0m0k6lhn2y-9n.js +0 -137
- package/out/_next/static/chunks/0m3laiqi73_uc.js +0 -1
- package/out/_next/static/chunks/0m96ugd3gm4zy.js +0 -142
- package/out/_next/static/chunks/0mbkvr03aynms.js +0 -905
- package/out/_next/static/chunks/0mfaeit11.hmn.js +0 -13
- package/out/_next/static/chunks/0mmgf1.wzjj~j.js +0 -596
- package/out/_next/static/chunks/0mwaae8fl0y07.js +0 -807
- package/out/_next/static/chunks/0n1tw5ikfuhds.js +0 -16
- package/out/_next/static/chunks/0n4htvg-_prjp.js +0 -807
- package/out/_next/static/chunks/0ndis8ndh2iq6.js +0 -1
- package/out/_next/static/chunks/0nkzmsf-n62ak.js +0 -227
- package/out/_next/static/chunks/0nq0y4cmw5~iw.js +0 -8
- package/out/_next/static/chunks/0nr5eu5.o4kyn.js +0 -31
- package/out/_next/static/chunks/0o24k-4924ut6.js +0 -5
- package/out/_next/static/chunks/0o6k207dwsp67.js +0 -14
- package/out/_next/static/chunks/0o6szwcbqvtk..js +0 -1
- package/out/_next/static/chunks/0ohaa_f5cdywx.js +0 -73
- package/out/_next/static/chunks/0p8yhpuvsglyl.js +0 -384
- package/out/_next/static/chunks/0pnn8a_3nqu6z.js +0 -11
- package/out/_next/static/chunks/0ptzf1t7-yymm.js +0 -17
- package/out/_next/static/chunks/0q7qj_8wmc2.r.js +0 -10
- package/out/_next/static/chunks/0qb6blqhb13kr.js +0 -41
- package/out/_next/static/chunks/0qf0ui_m--1gr.js +0 -288
- package/out/_next/static/chunks/0qrbj_o2k5__o.js +0 -209
- package/out/_next/static/chunks/0qtz0k64e56-8.js +0 -50
- package/out/_next/static/chunks/0s-elr_ninnzu.js +0 -10
- package/out/_next/static/chunks/0s-v1dmb~vwtm.js +0 -836
- package/out/_next/static/chunks/0s.q6152jflhg.js +0 -26
- package/out/_next/static/chunks/0s44-81m.~5uf.js +0 -596
- package/out/_next/static/chunks/0sgimuwisx~sc.js +0 -119
- package/out/_next/static/chunks/0skmedjn4kgal.js +0 -61
- package/out/_next/static/chunks/0skt87s6mdt1v.js +0 -13
- package/out/_next/static/chunks/0s~fz~1tqbwxx.js +0 -15
- package/out/_next/static/chunks/0te-i~~io16.x.js +0 -1
- package/out/_next/static/chunks/0tiq-41ao4ozn.js +0 -12
- package/out/_next/static/chunks/0tw8x4rwyovtl.js +0 -12
- package/out/_next/static/chunks/0twk9-d7g9_tx.css +0 -1
- package/out/_next/static/chunks/0ty2puez_pg34.js +0 -12
- package/out/_next/static/chunks/0ty8.e8ooes0x.js +0 -13
- package/out/_next/static/chunks/0u0zlnx_0uuo~.js +0 -1
- package/out/_next/static/chunks/0u_o5uefzj2zl.js +0 -43
- package/out/_next/static/chunks/0v3s~myflio0y.js +0 -66
- package/out/_next/static/chunks/0ve6lde6hlxfm.js +0 -200
- package/out/_next/static/chunks/0ve_2hka8ooxb.js +0 -14
- package/out/_next/static/chunks/0wcjo4p-9_fzj.js +0 -1
- package/out/_next/static/chunks/0wr~ux~6rivnb.js +0 -73
- package/out/_next/static/chunks/0wt4fkc59wtk~.js +0 -1
- package/out/_next/static/chunks/0wy8jj1craipe.js +0 -291
- package/out/_next/static/chunks/0x0ro0p0oede-.js +0 -1
- package/out/_next/static/chunks/0x5~rk9ckvkzm.js +0 -5
- package/out/_next/static/chunks/0xcd1022~mejo.js +0 -1
- package/out/_next/static/chunks/0xdixvy3ojk~v.js +0 -807
- package/out/_next/static/chunks/0xwzq2hc7bd08.js +0 -7
- package/out/_next/static/chunks/0xyni.oufvih2.js +0 -13
- package/out/_next/static/chunks/0y6_n9b46qlk8.js +0 -12
- package/out/_next/static/chunks/0y_16b~8cbo3_.js +0 -1
- package/out/_next/static/chunks/0ygzo.kyf038-.js +0 -13
- package/out/_next/static/chunks/0ykdba2inps4f.js +0 -807
- package/out/_next/static/chunks/0yngqzk8t1rtm.js +0 -20
- package/out/_next/static/chunks/0yrhd0tul9js9.js +0 -1
- package/out/_next/static/chunks/0yygs3qclomm0.js +0 -44
- package/out/_next/static/chunks/0zpzrlqi93rji.js +0 -1
- package/out/_next/static/chunks/0zsyxlnrzl578.js +0 -807
- package/out/_next/static/chunks/0z~lvtnl1p.em.js +0 -78
- package/out/_next/static/chunks/0~.g3kh69ma7-.js +0 -54
- package/out/_next/static/chunks/0~9p1dp25tvbh.js +0 -8
- package/out/_next/static/chunks/0~h6h6qs_rmma.js +0 -15
- package/out/_next/static/chunks/0~io-hb50ji.1.js +0 -1
- package/out/_next/static/chunks/10.uqlra33~68.js +0 -13
- package/out/_next/static/chunks/105z5t998s_em.js +0 -12
- package/out/_next/static/chunks/10gbxo~.o9bhy.js +0 -23
- package/out/_next/static/chunks/10k9cn.xj6r3q.js +0 -342
- package/out/_next/static/chunks/10z4bl1p0z6o_.js +0 -13
- package/out/_next/static/chunks/1116oyd686cub.js +0 -10
- package/out/_next/static/chunks/1187u08o~yuqn.js +0 -132
- package/out/_next/static/chunks/11g5r9hgxgp0m.js +0 -101
- package/out/_next/static/chunks/11idnn6maksef.js +0 -188
- package/out/_next/static/chunks/11mfm9s-fl7sy.js +0 -807
- package/out/_next/static/chunks/129nouv3ip29r.js +0 -14
- package/out/_next/static/chunks/12_5sds1suvhm.js +0 -13
- package/out/_next/static/chunks/12pk_ybj.re6m.js +0 -328
- package/out/_next/static/chunks/12r0j7wb2hlew.js +0 -1
- package/out/_next/static/chunks/12uy~d.q~freq.js +0 -26
- package/out/_next/static/chunks/130ts0c-i4pcp.js +0 -807
- package/out/_next/static/chunks/13zg7v-cyej8_.js +0 -288
- package/out/_next/static/chunks/145f2hwc~qcac.js +0 -14
- package/out/_next/static/chunks/145sa8d1hfzds.js +0 -13
- package/out/_next/static/chunks/149u.0yx9zdjc.js +0 -342
- package/out/_next/static/chunks/14lo~e60fjur5.js +0 -1
- package/out/_next/static/chunks/14p.v8friz9is.js +0 -12
- package/out/_next/static/chunks/152ayjjud~_te.js +0 -807
- package/out/_next/static/chunks/154maz1~0c85~.js +0 -12
- package/out/_next/static/chunks/15_oqickjmgpk.js +0 -3
- package/out/_next/static/chunks/15iepxopx3xb4.js +0 -1
- package/out/_next/static/chunks/15m115xl2x-fo.js +0 -807
- package/out/_next/static/chunks/15y9tbfvyqnu_.js +0 -1
- package/out/_next/static/chunks/15z98mla-wqnl.js +0 -108
- package/out/_next/static/chunks/16375mdx_~6.q.js +0 -16
- package/out/_next/static/chunks/16x1-2emxpzpg.js +0 -1
- package/out/_next/static/chunks/16zrr8jq99f4~.js +0 -59
- package/out/_next/static/chunks/179__8pe9.c7-.js +0 -12
- package/out/_next/static/chunks/17d~emxcdob_i.js +0 -1
- package/out/_next/static/chunks/17i0kbnunaw-a.js +0 -1
- package/out/_next/static/chunks/17kkbb-qkkoid.js +0 -15
- package/out/_next/static/chunks/182r6jub~m5uu.js +0 -14
- package/out/_next/static/chunks/1830j6n5zjzkx.js +0 -14
- package/out/_next/static/chunks/18dqga.-f~nfy.js +0 -1
- package/out/_next/static/chunks/18du6p5wd4ech.js +0 -138
- package/out/_next/static/chunks/turbopack-0-2jlgexa52kn.js +0 -1
- package/out/_next/static/chunks/turbopack-0.sytbe8-q.f0.js +0 -1
- package/out/_next/static/chunks/turbopack-01xsh_3mc57...js +0 -1
- package/out/_next/static/chunks/turbopack-021nw61gt0smw.js +0 -1
- package/out/_next/static/chunks/turbopack-02c.fwas2lwst.js +0 -1
- package/out/_next/static/chunks/turbopack-03nzzz4-vv3_m.js +0 -1
- package/out/_next/static/chunks/turbopack-03xl_fg-w0wwe.js +0 -1
- package/out/_next/static/chunks/turbopack-04_73x1691200.js +0 -1
- package/out/_next/static/chunks/turbopack-04ketb_5rfe.-.js +0 -1
- package/out/_next/static/chunks/turbopack-05iepmw2pln-b.js +0 -1
- package/out/_next/static/chunks/turbopack-05vk0jzu2gu4r.js +0 -1
- package/out/_next/static/chunks/turbopack-06ibu8u~exvbh.js +0 -1
- package/out/_next/static/chunks/turbopack-06r069z7bpvmx.js +0 -1
- package/out/_next/static/chunks/turbopack-07607.63_f~q4.js +0 -1
- package/out/_next/static/chunks/turbopack-080mpit40zsn0.js +0 -1
- package/out/_next/static/chunks/turbopack-08vg-gc5.lk.w.js +0 -1
- package/out/_next/static/chunks/turbopack-09ynj6f1~2qvg.js +0 -1
- package/out/_next/static/chunks/turbopack-0am8m57rd7ue~.js +0 -1
- package/out/_next/static/chunks/turbopack-0flgs.l7-jwep.js +0 -1
- package/out/_next/static/chunks/turbopack-0ga2ytjk4irgm.js +0 -1
- package/out/_next/static/chunks/turbopack-0gv1w2-walrwj.js +0 -1
- package/out/_next/static/chunks/turbopack-0h8qtpk9zxc5w.js +0 -1
- package/out/_next/static/chunks/turbopack-0hn82ceuofjtz.js +0 -1
- package/out/_next/static/chunks/turbopack-0jyinuljzkzme.js +0 -1
- package/out/_next/static/chunks/turbopack-0kbw2bixmq-i6.js +0 -1
- package/out/_next/static/chunks/turbopack-0ln3og1r-_32i.js +0 -1
- package/out/_next/static/chunks/turbopack-0mdx764wtb9__.js +0 -1
- package/out/_next/static/chunks/turbopack-0mpncz8905-~_.js +0 -1
- package/out/_next/static/chunks/turbopack-0nl4bu~hrwg_c.js +0 -1
- package/out/_next/static/chunks/turbopack-0nno9lji-zzl..js +0 -1
- package/out/_next/static/chunks/turbopack-0o78sdharqtil.js +0 -1
- package/out/_next/static/chunks/turbopack-0oe-f.~p1jg8n.js +0 -1
- package/out/_next/static/chunks/turbopack-0ofu5~yiw_1_h.js +0 -1
- package/out/_next/static/chunks/turbopack-0p7o~ji.qdun9.js +0 -1
- package/out/_next/static/chunks/turbopack-0p_ojxb-55myx.js +0 -1
- package/out/_next/static/chunks/turbopack-0pv4teocze3x9.js +0 -1
- package/out/_next/static/chunks/turbopack-0rqw5r0qcrf2z.js +0 -1
- package/out/_next/static/chunks/turbopack-0rrj08a25.mep.js +0 -1
- package/out/_next/static/chunks/turbopack-0r~0nmphiorfn.js +0 -1
- package/out/_next/static/chunks/turbopack-0s.6f50ntkcs9.js +0 -1
- package/out/_next/static/chunks/turbopack-0s0ulq6q87y_x.js +0 -1
- package/out/_next/static/chunks/turbopack-0sdfu3q0v0q5h.js +0 -1
- package/out/_next/static/chunks/turbopack-0sjqqk57lmjnz.js +0 -1
- package/out/_next/static/chunks/turbopack-0svf~53uzg0yz.js +0 -1
- package/out/_next/static/chunks/turbopack-0t2n3t16.jt5-.js +0 -1
- package/out/_next/static/chunks/turbopack-0uhwk8kptpcof.js +0 -1
- package/out/_next/static/chunks/turbopack-0v0px_ggnszwk.js +0 -1
- package/out/_next/static/chunks/turbopack-0vpfmiii_t_hk.js +0 -1
- package/out/_next/static/chunks/turbopack-0x-fi_n3na5.e.js +0 -1
- package/out/_next/static/chunks/turbopack-0yq6qjplbghh8.js +0 -1
- package/out/_next/static/chunks/turbopack-0z3yqbd6ngf3r.js +0 -1
- package/out/_next/static/chunks/turbopack-0zo3lj078ff73.js +0 -1
- package/out/_next/static/chunks/turbopack-10ikru0-tgde5.js +0 -1
- package/out/_next/static/chunks/turbopack-10my3_6508i9s.js +0 -1
- package/out/_next/static/chunks/turbopack-11fd3~ckkb1az.js +0 -1
- package/out/_next/static/chunks/turbopack-12635pttd8mwo.js +0 -1
- package/out/_next/static/chunks/turbopack-12tv~faaane2m.js +0 -1
- package/out/_next/static/chunks/turbopack-133ooe_tc74fx.js +0 -1
- package/out/_next/static/chunks/turbopack-13xywrs0tr14-.js +0 -1
- package/out/_next/static/chunks/turbopack-14c20trqh_v2z.js +0 -1
- package/out/_next/static/chunks/turbopack-164kkr2_jziv1.js +0 -1
- package/out/_next/static/chunks/turbopack-16zy~wq_5~ah~.js +0 -1
- package/out/_next/static/chunks/turbopack-17ag.mp331nmd.js +0 -1
- package/out/_next/static/pFqjC0hy-zIBRbr8wLP_l/_buildManifest.js +0 -258
- package/out/admin-ui-permissions.js +0 -129
- /package/out/_next/static/chunks/{0a1flay6uksa2.js → 0wooaklx8_14q.js} +0 -0
- /package/out/_next/static/chunks/{0htfk2vj7m.9j.js → 1jqnrnw0p9tw5.js} +0 -0
- /package/out/_next/static/{pFqjC0hy-zIBRbr8wLP_l → mgojmR_4GNqJNutDR9oFi}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{pFqjC0hy-zIBRbr8wLP_l → mgojmR_4GNqJNutDR9oFi}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42469,e=>{"use strict";var r=e.i(91398),t=e.i(56206),o=e.i(60193);e.s(["default",0,({text:e,className:a="",dotted:l=null,color:n="green",square:d=null,onClick:s=null})=>{let i=n?.trim(),b="rainbow"===i;return(0,r.jsx)("span",{id:"badge",className:(0,t.default)(b?"inline-flex items-center text-sm font-bold text-text-primary shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500":`inline-flex items-center border ${(0,o.borderColor)(i,400)} px-2.5 py-0.5 text-sm font-medium ${(0,o.bgColor)(i,100)} ${(0,o.textColor)(i,800)}`,a,{"rounded-full":!d,"rounded-md":d}),children:b?(0,r.jsxs)("span",{className:(0,t.default)("inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",{"rounded-full":!d,"rounded-md":d}),children:[l&&(0,r.jsx)("svg",{className:"text-text-primary -ml-1 mr-1.5 h-2 w-2",fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,s&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:s,className:"ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]}):(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)("svg",{className:`-ml-1 mr-1.5 h-2 w-2 ${(0,o.textColor)(i,400)}`,fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,s&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:s,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${(0,o.textColor)(i,400)} hover:${(0,o.bgColor)(i,200)} hover:text-${i}-500 focus:outline-hidden focus:${(0,o.bgColor)(i,500)} focus:text-white`,children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]})})}])},50595,e=>{"use strict";var r=e.i(91398),t=e.i(41158),o=e.i(3828),a=e.i(69322);e.s(["default",0,({routeName:e=null,currentPageTitle:l=null,depth:n=null})=>{let d=(0,o.useRouter)(),{formatMessage:s}=(0,a.useIntl)(),i={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},b=d.asPath?.split("/")?.filter((e,r)=>d.asPath?.split("/")?.indexOf(e)===r);if(1===b.length)return null;let u="";n&&b.splice(n),e&&(b[b.length-1]=e);let c=b?.map(r=>{if(u+=`${r}/`,!r)return{name:s({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],o=e?t:t.replace(/-/g," "),a=i[t];return{name:a?s({id:a,defaultMessage:o}):decodeURIComponent(o),path:u.replace(/.$/,"")}});return(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:c?.map((e,o)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==o&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:o===c.length-1&&l?l:e.name})]})},e.path))})})}])},21623,e=>{"use strict";var r=e.i(91398),t=e.i(56206);e.s(["default",0,({text:e,children:o,onClick:a,className:l="",disabled:n=!1,id:d="",variant:s="primary",size:i="md",type:b="button",loading:u=!1,icon:c,iconRight:g,fullWidth:p=!1,rounded:x="md",ariaLabel:f,...m})=>{let y=o||e,k=(c||g)&&y?"gap-2":"";return(0,r.jsx)("button",{id:d,type:b,disabled:n||u,onClick:a,"aria-label":f,className:(0,t.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[i],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[x],{primary:"border border-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",secondary:"border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",tertiary:"border border-border-subtle bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",quaternary:"bg-transparent text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",danger:"border border-danger bg-surface text-danger hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-text-secondary hover:text-text-primary hover:bg-surface-raised focus:ring-focus-ring",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-border-default bg-surface-raised text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",input:"border border-border-default bg-surface text-text-primary hover:border-slate-400 dark:hover:border-slate-500 focus:ring-focus-ring focus:border-slate-500"}[s],k,{"w-full":p},l),...m,children:u?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),y]}):(0,r.jsxs)(r.Fragment,{children:[c,y,g]})})}])},25327,e=>{"use strict";var r=e.i(91398),t=e.i(5205),o=e.i(41158),a=e.i(69322),l=e.i(37369),n=e.i(21623);e.s(["default",0,({headerText:e=null,onEdit:d=null,onDelete:s=null,children:i=null,title:b=null,addPath:u=null,addButtonText:c=null})=>{let{formatMessage:g}=(0,a.useIntl)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",b||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[i,u&&(0,r.jsx)(o.default,{href:u,children:(0,r.jsx)(n.default,{variant:"secondary",icon:(0,r.jsx)(l.PlusIcon,{className:"h-5 w-5"}),text:c||g({id:"add",defaultMessage:"Add"})})}),d&&(0,r.jsx)(n.default,{variant:"secondary",onClick:d,text:g({id:"edit",defaultMessage:"Edit"})}),s&&(0,r.jsx)(n.default,{variant:"danger",onClick:s,text:g({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},76038,e=>{"use strict";var r=e.i(91398),t=e.i(91788),o=e.i(56206),a=e.i(69322),l=e.i(42469);let n=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["default",0,({tagList:e,onChange:d,disabled:s=!1,name:i="tag-input",id:b="tag-input",placeholder:u="",selectOptions:c=[],className:g="",buttonText:p="",showTagsInline:x=!0})=>{let{formatMessage:f}=(0,a.useIntl)(),[m,y]=(0,t.useState)(n(e)),[k,h]=(0,t.useState)(""),[v,w]=(0,t.useState)(!1),j=(0,t.useRef)(null);(0,t.useEffect)(()=>{y(n(e))},[e]),(0,t.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let E=(0,t.useCallback)(e=>{if(!m.includes(e)&&e){let r=[...m,e];y(r),d(r),h(""),w(!1)}},[m,d]),_=(0,t.useMemo)(()=>{let e=c.filter(e=>!(m||[]).includes(e.value));return k?e.filter(e=>e.label.toLowerCase().includes(k.toLowerCase())):e},[c,m,k]),C=k.trim()&&!m.includes(k.trim())&&!_.some(e=>e.value.toLowerCase()===k.trim().toLowerCase()),O=(0,r.jsxs)("div",{className:"relative",ref:j,children:[(0,r.jsx)("input",{id:b,name:i,type:"text",role:"combobox","aria-expanded":v,"aria-autocomplete":"list",disabled:s,className:(0,o.default)("w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",g),placeholder:u,value:k,onChange:e=>{h(e.target.value),w(!0)},onFocus:()=>w(!0),onKeyDown:e=>{"Enter"===e.key&&k.trim()&&(e.preventDefault(),E(k.trim()))}}),v&&(C||_.length>0)&&(0,r.jsxs)("ul",{role:"listbox",className:"absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",children:[C&&(0,r.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:e=>{e.preventDefault(),E(k.trim())},children:p||f({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:k.trim()})}),_.map(e=>(0,r.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:r=>{r.preventDefault(),E(e.value)},children:e.label},e.value))]})]});return x?(0,r.jsxs)(r.Fragment,{children:[O,(0,r.jsx)("div",{className:(0,o.default)("ml-4 flex items-center flex-wrap gap-5",m.length>0&&"mt-1"),children:m?.map(e=>(0,r.jsx)(l.default,{text:e,color:"slate",onClick:()=>(e=>{let r=m.indexOf(e);if(-1!==r){let e=[...m];e.splice(r,1),d(e),y(e)}})(e)},e))})]}):O}])},21128,e=>{"use strict";var r=e.i(91398),t=e.i(56206),o=e.i(58021),a=e.i(61898);e.s(["default",0,({label:e,disabled:l=!1,className:n="",hidden:d=!1,...s})=>{let{formState:i}=(0,o.useFormContext)(),{...b}=s,u=Object.keys(i.errors).length>0&&Object.values(i.errors).some(e=>!!e),{disabled:c}=(0,a.default)(),g=l||c||i.isSubmitting||u,p=i.isSubmitting&&!u,x=(l||c||u)&&!i.isSubmitting;return(0,r.jsx)("input",{className:(0,t.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",n,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":x,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":p,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!g,hidden:d}),"aria-label":e,type:"submit",value:e,disabled:g,...b})}])},16984,e=>{"use strict";var r=e.i(91398),t=e.i(56206),o=e.i(82226),a=e.i(60741),l=e.i(54879);e.s(["default",0,({maxLength:e=0,validators:n=[],...d})=>{let s=(0,a.default)({validators:[...n,e&&(0,o.validateMaxLength)(e)],...d});return(0,r.jsx)(l.default,{...s,children:(0,r.jsx)("input",{className:(0,t.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!s.error,"border-slate-300 placeholder-slate-400":!s.error}),disabled:s.disabled,id:s.name,name:s.name,onChange:s.onChange,onClick:e=>{e.stopPropagation()},onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",type:s.type||"text",value:s.value,autoFocus:s.autoFocus})})}])},58971,95015,e=>{"use strict";var r=e.i(91788);let t=r.default.createContext({isAdmin:()=>!1,hasRole:()=>!1});e.s(["default",0,t],95015),e.s(["default",0,()=>(0,r.useContext)(t)],58971)},70693,12970,e=>{"use strict";var r=e.i(91788);let t=r.default.createContext({customProperties:{},hydrateFragment:(e,r)=>null});e.s(["default",0,t],12970),e.s(["default",0,()=>(0,r.useContext)(t)],70693)},5505,e=>{"use strict";var r=e.i(91398),t=e.i(91788),o=e.i(56206);let a=(0,t.createContext)(!1);e.s(["FormWrapperContext",0,a,"default",0,({children:e,className:t=""})=>(0,r.jsx)(a.Provider,{value:!0,children:(0,r.jsx)("div",{className:"sm:max-w-full",children:(0,r.jsx)("div",{className:(0,o.default)("bg-surface rounded-md shadow-sm overflow-hidden",t),children:e})})})])},60193,e=>{"use strict";let r={red:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-danger",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},pink:{bg:{50:"bg-pink-50",100:"bg-pink-100",200:"bg-pink-200",300:"bg-pink-300",400:"bg-pink-400",500:"bg-pink-500",600:"bg-pink-600",700:"bg-pink-700",800:"bg-pink-800",900:"bg-pink-900"},text:{50:"text-pink-50",100:"text-pink-100",200:"text-pink-200",300:"text-pink-300",400:"text-pink-400",500:"text-pink-500",600:"text-pink-600",700:"text-pink-700",800:"text-pink-800",900:"text-pink-900"},border:{50:"border-pink-50",100:"border-pink-100",200:"border-pink-200",300:"border-pink-300",400:"border-pink-400",500:"border-pink-500",600:"border-pink-600",700:"border-pink-700",800:"border-pink-800",900:"border-pink-900"}},purple:{bg:{50:"bg-purple-50 dark:bg-purple-900/20",100:"bg-purple-100 dark:bg-purple-900/30",200:"bg-purple-200",300:"bg-purple-300",400:"bg-purple-400",500:"bg-purple-500",600:"bg-purple-600",700:"bg-purple-700",800:"bg-purple-800",900:"bg-purple-900"},text:{50:"text-purple-50",100:"text-purple-100",200:"text-purple-200",300:"text-purple-300",400:"text-purple-400 dark:text-purple-300",500:"text-purple-500",600:"text-purple-600 dark:text-purple-400",700:"text-purple-700",800:"text-purple-800 dark:text-purple-300",900:"text-purple-900"},border:{50:"border-purple-50",100:"border-purple-100",200:"border-purple-200 dark:border-purple-600",300:"border-purple-300 dark:border-purple-500",400:"border-purple-400 dark:border-purple-500",500:"border-purple-500",600:"border-purple-600",700:"border-purple-700",800:"border-purple-800",900:"border-purple-900"}},"deep-purple":{bg:{50:"bg-deep-purple-50",100:"bg-deep-purple-100",200:"bg-deep-purple-200",300:"bg-deep-purple-300",400:"bg-deep-purple-400",500:"bg-deep-purple-500",600:"bg-deep-purple-600",700:"bg-deep-purple-700",800:"bg-deep-purple-800",900:"bg-deep-purple-900"},text:{50:"text-deep-purple-50",100:"text-deep-purple-100",200:"text-deep-purple-200",300:"text-deep-purple-300",400:"text-deep-purple-400",500:"text-deep-purple-500",600:"text-deep-purple-600",700:"text-deep-purple-700",800:"text-deep-purple-800",900:"text-deep-purple-900"},border:{50:"border-deep-purple-50",100:"border-deep-purple-100",200:"border-deep-purple-200",300:"border-deep-purple-300",400:"border-deep-purple-400",500:"border-deep-purple-500",600:"border-deep-purple-600",700:"border-deep-purple-700",800:"border-deep-purple-800",900:"border-deep-purple-900"}},blue:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},"light-blue":{bg:{50:"bg-sky-50",100:"bg-sky-100",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400",500:"text-sky-500",600:"text-sky-600",700:"text-sky-700",800:"text-sky-800",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200",300:"border-sky-300",400:"border-sky-400",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},indigo:{bg:{50:"bg-indigo-50",100:"bg-indigo-100",200:"bg-indigo-200",300:"bg-indigo-300",400:"bg-indigo-400",500:"bg-indigo-500",600:"bg-indigo-600",700:"bg-indigo-700",800:"bg-indigo-800",900:"bg-indigo-900"},text:{50:"text-indigo-50",100:"text-indigo-100",200:"text-indigo-200",300:"text-indigo-300",400:"text-indigo-400",500:"text-indigo-500",600:"text-indigo-600",700:"text-indigo-700",800:"text-indigo-800",900:"text-indigo-900"},border:{50:"border-indigo-50",100:"border-indigo-100",200:"border-indigo-200",300:"border-indigo-300",400:"border-indigo-400",500:"border-indigo-500",600:"border-indigo-600",700:"border-indigo-700",800:"border-indigo-800",900:"border-indigo-900"}},cyan:{bg:{50:"bg-cyan-50 dark:bg-cyan-900/20",100:"bg-cyan-100 dark:bg-cyan-900/30",200:"bg-cyan-200",300:"bg-cyan-300",400:"bg-cyan-400",500:"bg-cyan-500",600:"bg-cyan-600",700:"bg-cyan-700",800:"bg-cyan-800",900:"bg-cyan-900"},text:{50:"text-cyan-50",100:"text-cyan-100",200:"text-cyan-200",300:"text-cyan-300",400:"text-cyan-400 dark:text-cyan-300",500:"text-cyan-500",600:"text-cyan-600 dark:text-cyan-400",700:"text-cyan-700 dark:text-cyan-300",800:"text-cyan-800 dark:text-cyan-200",900:"text-cyan-900"},border:{50:"border-cyan-50",100:"border-cyan-100",200:"border-cyan-200 dark:border-cyan-800",300:"border-cyan-300 dark:border-cyan-700",400:"border-cyan-400 dark:border-cyan-600",500:"border-cyan-500",600:"border-cyan-600",700:"border-cyan-700",800:"border-cyan-800",900:"border-cyan-900"}},teal:{bg:{50:"bg-teal-50 dark:bg-teal-900/20",100:"bg-teal-100 dark:bg-teal-900/30",200:"bg-teal-200",300:"bg-teal-300",400:"bg-teal-400",500:"bg-teal-500",600:"bg-teal-600",700:"bg-teal-700",800:"bg-teal-800",900:"bg-teal-900"},text:{50:"text-teal-50",100:"text-teal-100",200:"text-teal-200",300:"text-teal-300",400:"text-teal-400 dark:text-teal-300",500:"text-teal-500",600:"text-teal-600 dark:text-teal-400",700:"text-teal-700 dark:text-teal-300",800:"text-teal-800 dark:text-teal-200",900:"text-teal-900"},border:{50:"border-teal-50",100:"border-teal-100",200:"border-teal-200 dark:border-teal-800",300:"border-teal-300 dark:border-teal-700",400:"border-teal-400 dark:border-teal-600",500:"border-teal-500",600:"border-teal-600",700:"border-teal-700",800:"border-teal-800",900:"border-teal-900"}},green:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-50 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-700 dark:text-emerald-300",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-200 dark:border-emerald-800",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"light-green":{bg:{50:"bg-light-green-50",100:"bg-light-green-100",200:"bg-light-green-200",300:"bg-light-green-300",400:"bg-light-green-400",500:"bg-light-green-500",600:"bg-light-green-600",700:"bg-light-green-700",800:"bg-light-green-800",900:"bg-light-green-900"},text:{50:"text-light-green-50",100:"text-light-green-100",200:"text-light-green-200",300:"text-light-green-300",400:"text-light-green-400",500:"text-light-green-500",600:"text-light-green-600",700:"text-light-green-700",800:"text-light-green-800",900:"text-light-green-900"},border:{50:"border-light-green-50",100:"border-light-green-100",200:"border-light-green-200",300:"border-light-green-300",400:"border-light-green-400",500:"border-light-green-500",600:"border-light-green-600",700:"border-light-green-700",800:"border-light-green-800",900:"border-light-green-900"}},lime:{bg:{50:"bg-lime-50 dark:bg-lime-900/20",100:"bg-lime-100 dark:bg-lime-900/30",200:"bg-lime-200",300:"bg-lime-300",400:"bg-lime-400",500:"bg-lime-500",600:"bg-lime-600",700:"bg-lime-700",800:"bg-lime-800",900:"bg-lime-900"},text:{50:"text-lime-50",100:"text-lime-100",200:"text-lime-200",300:"text-lime-300",400:"text-lime-400 dark:text-lime-300",500:"text-lime-500",600:"text-lime-600 dark:text-lime-400",700:"text-lime-700 dark:text-lime-300",800:"text-lime-800 dark:text-lime-200",900:"text-lime-900"},border:{50:"border-lime-50",100:"border-lime-100",200:"border-lime-200 dark:border-lime-800",300:"border-lime-300 dark:border-lime-700",400:"border-lime-400 dark:border-lime-600",500:"border-lime-500",600:"border-lime-600",700:"border-lime-700",800:"border-lime-800",900:"border-lime-900"}},yellow:{bg:{50:"bg-yellow-50 dark:bg-yellow-900/20",100:"bg-amber-100 dark:bg-yellow-900/30",200:"bg-yellow-200",300:"bg-yellow-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-yellow-600",700:"bg-yellow-700",800:"bg-yellow-800",900:"bg-yellow-900"},text:{50:"text-yellow-50",100:"text-yellow-100",200:"text-yellow-200",300:"text-yellow-300",400:"text-amber-400 dark:text-yellow-300",500:"text-amber-500",600:"text-amber-600 dark:text-yellow-400",700:"text-yellow-700",800:"text-yellow-800 dark:text-yellow-300",900:"text-yellow-900"},border:{50:"border-yellow-50",100:"border-yellow-100",200:"border-yellow-200 dark:border-yellow-800",300:"border-yellow-300 dark:border-yellow-700",400:"border-amber-400 dark:border-yellow-800",500:"border-yellow-500",600:"border-yellow-600",700:"border-yellow-700",800:"border-yellow-800",900:"border-yellow-900"}},amber:{bg:{50:"bg-amber-50 dark:bg-amber-900/20",100:"bg-amber-100 dark:bg-amber-900/30",200:"bg-amber-200",300:"bg-amber-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-amber-600",700:"bg-amber-700",800:"bg-amber-800",900:"bg-amber-900"},text:{50:"text-amber-50",100:"text-amber-100",200:"text-amber-200",300:"text-amber-300",400:"text-amber-400 dark:text-amber-300",500:"text-amber-500",600:"text-amber-600 dark:text-amber-400",700:"text-amber-700 dark:text-amber-300",800:"text-amber-800 dark:text-amber-200",900:"text-amber-900"},border:{50:"border-amber-50",100:"border-amber-100",200:"border-amber-200 dark:border-amber-800",300:"border-amber-300 dark:border-amber-700",400:"border-amber-400 dark:border-amber-600",500:"border-amber-500",600:"border-amber-600",700:"border-amber-700",800:"border-amber-800",900:"border-amber-900"}},orange:{bg:{50:"bg-orange-50 dark:bg-orange-900/20",100:"bg-orange-100 dark:bg-orange-900/30",200:"bg-orange-200",300:"bg-orange-300",400:"bg-orange-400",500:"bg-orange-500",600:"bg-orange-600",700:"bg-orange-700",800:"bg-orange-800",900:"bg-orange-900"},text:{50:"text-orange-50",100:"text-orange-100",200:"text-orange-200",300:"text-orange-300",400:"text-orange-400 dark:text-orange-300",500:"text-orange-500",600:"text-orange-600 dark:text-orange-400",700:"text-orange-700 dark:text-orange-300",800:"text-orange-800 dark:text-orange-200",900:"text-orange-900"},border:{50:"border-orange-50",100:"border-orange-100",200:"border-orange-200 dark:border-orange-800",300:"border-orange-300 dark:border-orange-700",400:"border-orange-400 dark:border-orange-600",500:"border-orange-500",600:"border-orange-600",700:"border-orange-700",800:"border-orange-800",900:"border-orange-900"}},"deep-orange":{bg:{50:"bg-deep-orange-50",100:"bg-deep-orange-100",200:"bg-deep-orange-200",300:"bg-deep-orange-300",400:"bg-deep-orange-400",500:"bg-deep-orange-500",600:"bg-deep-orange-600",700:"bg-deep-orange-700",800:"bg-deep-orange-800",900:"bg-deep-orange-900"},text:{50:"text-deep-orange-50",100:"text-deep-orange-100",200:"text-deep-orange-200",300:"text-deep-orange-300",400:"text-deep-orange-400",500:"text-deep-orange-500",600:"text-deep-orange-600",700:"text-deep-orange-700",800:"text-deep-orange-800",900:"text-deep-orange-900"},border:{50:"border-deep-orange-50",100:"border-deep-orange-100",200:"border-deep-orange-200",300:"border-deep-orange-300",400:"border-deep-orange-400",500:"border-deep-orange-500",600:"border-deep-orange-600",700:"border-deep-orange-700",800:"border-deep-orange-800",900:"border-deep-orange-900"}},stone:{bg:{50:"bg-stone-50",100:"bg-stone-100",200:"bg-stone-200",300:"bg-stone-300",400:"bg-stone-400",500:"bg-stone-500",600:"bg-stone-600",700:"bg-stone-700",800:"bg-stone-800",900:"bg-stone-900"},text:{50:"text-stone-50",100:"text-stone-100",200:"text-stone-200",300:"text-stone-300",400:"text-stone-400",500:"text-stone-500",600:"text-stone-600",700:"text-stone-700",800:"text-stone-800",900:"text-stone-900"},border:{50:"border-stone-50",100:"border-stone-100",200:"border-stone-200",300:"border-stone-300",400:"border-stone-400",500:"border-stone-500",600:"border-stone-600",700:"border-stone-700",800:"border-stone-800",900:"border-stone-900"}},slate:{bg:{50:"bg-slate-50",100:"bg-surface/50",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-text-secondary",700:"text-slate-700",800:"text-text-secondary",900:"text-slate-900"},border:{50:"border-slate-50",100:"border-slate-100",200:"border-border-default",300:"border-slate-300",400:"border-border-default",500:"border-slate-500",600:"border-slate-600",700:"border-slate-700",800:"border-slate-800",900:"border-slate-900"}},rose:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-danger",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},sky:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},emerald:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-100 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-800 dark:text-emerald-200",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-400 dark:border-emerald-600",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"blue-slate":{bg:{50:"bg-slate-50",100:"bg-slate-100",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600",700:"text-slate-700",800:"text-slate-800",900:"text-slate-900"}}},t={NEW:"shadow-[inset_0_0_0_5px_rgb(168_85_247)]",ALLOCATED:"shadow-[inset_0_0_0_5px_rgb(14_165_233)]",SUCCESS:"shadow-[inset_0_0_0_5px_rgb(16_185_129)]",FAILED:"shadow-[inset_0_0_0_5px_rgb(244_63_94)]",DELETED:"shadow-[inset_0_0_0_5px_rgb(251_146_60)]"};e.s(["DELIVERY_STATUSES",0,{DELIVERED:"green",RETURNED:"red",OPEN:"yellow"},"DefaultLimit",0,50,"ORDER_STATUSES",0,{OPEN:"purple",PENDING:"sky",CONFIRMED:"lime",FULFILLED:"emerald",REJECTED:"rose"},"PAYMENT_STATUSES",0,{PAID:"green",REFUNDED:"red",OPEN:"yellow"},"PROVIDER_TYPE_CLASSES",0,{PHYSICAL:"emerald",CARD:"sky",INVOICE:"lime",GENERIC:"purple",PICKUP:"red",SHIPPING:"sky"},"QUOTATION_STATUS",0,{REQUESTED:"orange",PROCESSING:"yellow",PROPOSED:"cyan",REJECTED:"red",FULFILLED:"emerald"},"TOKEN_STATUSES",0,{CENTRALIZED:"sky",EXPORTING:"amber",DECENTRALIZED:"emerald"},"WORK_STATUSES",0,{NEW:"purple",ALLOCATED:"sky",SUCCESS:"emerald",FAILED:"rose",DELETED:"orange"},"bgColor",0,(e,t)=>`${r?.[e].bg[t]}`,"borderColor",0,(e,t)=>`${r[e]?.border[t]}`,"getShadowStyle",0,e=>`${t[e]}`,"textColor",0,(e,t)=>`${r[e].text[t]}`])},73319,e=>{"use strict";let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["extractQuery",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"isObject",0,r,"isTruthy",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},76204,52006,50584,e=>{"use strict";var r=e.i(24669),t=e.i(91788),o=e.i(30928);function a(e){return e.catch(()=>{}),e}e.s(["preventUnhandledRejection",0,a],52006);let l=e.i(21953).canUseDOM?t.useLayoutEffect:t.useEffect;e.s(["useIsomorphicLayoutEffect",0,l],50584);var n=e.i(98926);function d(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["useMutation",0,function(e,s){let i=(0,n.useApolloClient)(s?.client),[b,u]=t.useState(()=>d(i)),c=t.useRef({result:b,mutationId:0,isMounted:!0,client:i,mutation:e,options:s});l(()=>{Object.assign(c.current,{client:i,options:s,mutation:e})});let g=t.useCallback((e={})=>{let{options:t,mutation:l}=c.current,n={...t,mutation:l},d=e.client||c.current.client,s="function"==typeof e.context?e.context(t?.context):e.context;!c.current.result.loading&&c.current.isMounted&&u(c.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:d});let i=++c.current.mutationId,b=(0,o.mergeOptions)(n,{...e,context:s});return a(d.mutate(b).then(t=>{let{data:o,error:a}=t,l=e.onError||c.current.options?.onError;if(a&&l&&l(a,b),i===c.current.mutationId){let e={called:!0,loading:!1,data:o,error:a,client:d};c.current.isMounted&&!(0,r.equal)(c.current.result,e)&&u(c.current.result=e)}let n=e.onCompleted||c.current.options?.onCompleted;return a||n?.(t.data,b),t},t=>{if(i===c.current.mutationId&&c.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:d};(0,r.equal)(c.current.result,e)||u(c.current.result=e)}let o=e.onError||c.current.options?.onError;throw o&&o(t,b),t}))},[]),p=t.useCallback(()=>{if(c.current.isMounted){let e=d(c.current.client);Object.assign(c.current,{mutationId:0,result:e}),u(e)}},[]);return t.useEffect(()=>{let e=c.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[g,{reset:p,...b}]}],76204)},21953,e=>{"use strict";let r="function"==typeof(0,e.i(22420).maybe)(()=>window.document.createElement);e.s(["canUseDOM",0,r])},30928,51104,e=>{"use strict";function r(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let o=e[r];void 0!==o&&(t[r]=o)})}),t}e.s(["compact",0,r],51104),e.s(["mergeOptions",0,function(e,t){return r(e,t,t.variables&&{variables:r({...e&&e.variables,...t.variables})})}],30928)},84985,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...o},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["default",0,t])},37369,e=>{"use strict";var r=e.i(84985);e.s(["PlusIcon",()=>r.default])},24669,e=>{"use strict";let{toString:r,hasOwnProperty:t}=Object.prototype,o=Function.prototype.toString,a=new Map;function l(e){return Object.keys(e).filter(n,e)}function n(e){return void 0!==this[e]}function d(e,r){let t=a.get(e);if(t){if(t.has(r))return!0}else a.set(e,t=new Set);return t.add(r),!1}e.s(["equal",0,function(e,n){try{return function e(a,n){if(a===n)return!0;let s=r.call(a);if(s!==r.call(n))return!1;switch(s){case"[object Array]":if(a.length!==n.length)break;case"[object Object]":{if(d(a,n))return!0;let r=l(a),o=l(n),s=r.length;if(s!==o.length)return!1;for(let e=0;e<s;++e)if(!t.call(n,r[e]))return!1;for(let t=0;t<s;++t){let o=r[t];if(!e(a[o],n[o]))return!1}return!0}case"[object Error]":return a.name===n.name&&a.message===n.message;case"[object Number]":if(a!=a)return n!=n;case"[object Boolean]":case"[object Date]":return+a==+n;case"[object RegExp]":case"[object String]":return a==`${n}`;case"[object Map]":case"[object Set]":{if(a.size!==n.size)return!1;if(d(a,n))return!0;let r=a.entries(),t="[object Map]"===s;for(;;){let o=r.next();if(o.done)break;let[a,l]=o.value;if(!n.has(a)||t&&!e(l,n.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":a=new Uint8Array(a),n=new Uint8Array(n);case"[object DataView]":{let e=a.byteLength;if(e===n.byteLength)for(;e--&&a[e]===n[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var i,b;let e,r=o.call(a);if(r!==o.call(n))return!1;return i=r,b="{ [native code] }",!((e=i.length-b.length)>=0)||i.indexOf(b,e)!==e}}return!1}(e,n)}finally{a.clear()}}])},9356,e=>{"use strict";var r=e.i(35113);e.s(["isValid",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,r.toDate)(e)))}],9356)},49543,e=>{"use strict";var r=e.i(35113);e.s(["startOfDay",0,function(e,t){let o=(0,r.toDate)(e,t?.in);return o.setHours(0,0,0,0),o}])},35113,2848,98170,e=>{"use strict";let r=Symbol.for("constructDateFrom");function t(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}e.s(["constructFromSymbol",0,r,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],2848),e.s(["constructFrom",0,t],98170),e.s(["toDate",0,function(e,r){return t(r||e,e)}],35113)},54471,(e,r,t)=>{"use strict";function o(e,r,t,o){return!1}e.i(50461),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}}),e.r(70090),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},39149,(e,r,t)=>{"use strict";e.i(50461),Object.defineProperty(t,"__esModule",{value:!0});var o={default:function(){return E},useLinkStatus:function(){return j}};for(var a in o)Object.defineProperty(t,a,{enumerable:!0,get:o[a]});let l=e.r(71650),n=e.r(91398),d=l._(e.r(91788)),s=e.r(60472),i=e.r(71112),b=e.r(28169),u=e.r(89129),c=e.r(14862),g=e.r(25479),p=e.r(71914),x=e.r(54471),f=e.r(44113),m=e.r(63230),y=new Set;function k(e,r,t,o){if(!("u"<typeof window)&&(0,i.isLocalURL)(r)){if(!o.bypassPrefetchedCheck){let a=r+"%"+t+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(y.has(a))return;y.add(a)}e.prefetch(r,t,o).catch(e=>{})}}function h(e){return"string"==typeof e?e:(0,b.formatUrl)(e)}let v=d.default.forwardRef(function(e,r){let t,o,{href:a,as:l,children:b,prefetch:y=null,passHref:v,replace:w,shallow:j,scroll:E,locale:_,onClick:C,onNavigate:O,onMouseEnter:S,onTouchStart:M,legacyBehavior:I=!1,transitionTypes:D,...N}=e;t=b,I&&("string"==typeof t||"number"==typeof t)&&(t=(0,n.jsx)("a",{children:t}));let L=d.default.useContext(g.RouterContext),P=!1!==y,{href:A,as:R}=d.default.useMemo(()=>{if(!L){let e=h(a);return{href:e,as:l?h(l):e}}let[e,r]=(0,s.resolveHref)(L,a,!0);return{href:e,as:l?(0,s.resolveHref)(L,l):r||e}},[L,a,l]),U=d.default.useRef(A),T=d.default.useRef(R);I&&(o=d.default.Children.only(t));let F=I?o&&"object"==typeof o&&o.ref:r,[$,B,K]=(0,p.useIntersection)({rootMargin:"200px"}),H=d.default.useCallback(e=>{(T.current!==R||U.current!==A)&&(K(),T.current=R,U.current=A),$(e)},[R,A,K,$]),q=(0,m.useMergedRef)(H,F);d.default.useEffect(()=>{!L||B&&P&&k(L,A,R,{bypassPrefetchedCheck:!1,locale:_})},[R,A,B,_,P,L?.locale,L]);let V={ref:q,onClick(e){I||"function"!=typeof C||C(e),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),!L||e.defaultPrevented||function(e,r,t,o,a,l,n,d,s){let b,{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&((b=e.currentTarget.getAttribute("target"))&&"_self"!==b||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,i.isLocalURL)(t)){a&&(e.preventDefault(),location.replace(t));return}e.preventDefault(),(()=>{if(s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let e=n??!0;"beforePopState"in r?r[a?"replace":"push"](t,o,{shallow:l,locale:d,scroll:e}):r[a?"replace":"push"](o||t,{scroll:e})})()}}(e,L,A,R,w,j,E,_,O)},onMouseEnter(e){I||"function"!=typeof S||S(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&k(L,A,R,{locale:_,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof M||M(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&k(L,A,R,{locale:_,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(R))V.href=R;else if(!I||v||"a"===o.type&&!("href"in o.props)){let e=void 0!==_?_:L?.locale;V.href=L?.isLocaleDomain&&(0,x.getDomainLocale)(R,e,L?.locales,L?.domainLocales)||(0,f.addBasePath)((0,c.addLocale)(R,e,L?.defaultLocale))}return I?d.default.cloneElement(o,V):(0,n.jsx)("a",{...N,...V,children:t})}),w=(0,d.createContext)({pending:!1}),j=()=>(0,d.useContext)(w),E=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},41158,(e,r,t)=>{r.exports=e.r(39149)},71914,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let o=e.r(91788),a=e.r(99604),l="function"==typeof IntersectionObserver,n=new Map,d=[];function s({rootRef:e,rootMargin:r,disabled:t}){let i=t||!l,[b,u]=(0,o.useState)(!1),c=(0,o.useRef)(null),g=(0,o.useCallback)(e=>{c.current=e},[]);return(0,o.useEffect)(()=>{if(l){if(i||b)return;let t=c.current;if(t&&t.tagName)return function(e,r,t){let{id:o,observer:a,elements:l}=function(e){let r,t={root:e.root||null,margin:e.rootMargin||""},o=d.find(e=>e.root===t.root&&e.margin===t.margin);if(o&&(r=n.get(o)))return r;let a=new Map;return r={id:t,observer:new IntersectionObserver(e=>{e.forEach(e=>{let r=a.get(e.target),t=e.isIntersecting||e.intersectionRatio>0;r&&t&&r(t)})},e),elements:a},d.push(t),n.set(t,r),r}(t);return l.set(e,r),a.observe(e),function(){if(l.delete(e),a.unobserve(e),0===l.size){a.disconnect(),n.delete(o);let e=d.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&d.splice(e,1)}}}(t,e=>e&&u(e),{root:e?.current,rootMargin:r})}else if(!b){let e=(0,a.requestIdleCallback)(()=>u(!0));return()=>(0,a.cancelIdleCallback)(e)}},[i,r,e,b,c.current]),[g,b,(0,o.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},63230,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return a}});let o=e.r(91788);function a(e,r){let t=(0,o.useRef)(null),a=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=t.current;e&&(t.current=null,e());let r=a.current;r&&(a.current=null,r())}else e&&(t.current=l(e,o)),r&&(a.current=l(r,o))},[e,r])}function l(e,r){if("function"!=typeof e)return e.current=r,()=>{e.current=null};{let t=e(r);return"function"==typeof t?t:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},80963,(e,r,t)=>{"use strict";e.i(50461),Object.defineProperty(t,"__esModule",{value:!0});var o={default:function(){return x},defaultHead:function(){return u}};for(var a in o)Object.defineProperty(t,a,{enumerable:!0,get:o[a]});let l=e.r(31640),n=e.r(71650),d=e.r(91398),s=n._(e.r(91788)),i=l._(e.r(94941)),b=e.r(13584);function u(){return[(0,d.jsx)("meta",{charSet:"utf-8"},"charset"),(0,d.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(e,r){return"string"==typeof r||"number"==typeof r?e:r.type===s.default.Fragment?e.concat(s.default.Children.toArray(r.props.children).reduce((e,r)=>"string"==typeof r||"number"==typeof r?e:e.concat(r),[])):e.concat(r)}let g=["name","httpEquiv","charSet","itemProp"];function p(e){let r,t,o,a;return e.reduce(c,[]).reverse().concat(u().reverse()).filter((r=new Set,t=new Set,o=new Set,a={},e=>{let l=!0,n=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){n=!0;let t=e.key.slice(e.key.indexOf("$")+1);r.has(t)?l=!1:r.add(t)}switch(e.type){case"title":case"base":t.has(e.type)?l=!1:t.add(e.type);break;case"meta":for(let r=0,t=g.length;r<t;r++){let t=g[r];if(e.props.hasOwnProperty(t))if("charSet"===t)o.has(t)?l=!1:o.add(t);else{let r=e.props[t],o=a[t]||new Set;("name"!==t||!n)&&o.has(r)?l=!1:(o.add(r),a[t]=o)}}}return l})).reverse().map((e,r)=>{let t=e.key||r;return s.default.cloneElement(e,{key:t})})}let x=function({children:e}){let r=(0,s.useContext)(b.HeadManagerContext);return(0,d.jsx)(i.default,{reduceComponentsToState:p,headManager:r,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),r.exports=t.default)},94941,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let o=e.r(91788),a="u"<typeof window,l=a?()=>{}:o.useLayoutEffect,n=a?()=>{}:o.useEffect;function d(e){let{headManager:r,reduceComponentsToState:t}=e;function d(){if(r&&r.mountedInstances){let e=o.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(t(e))}}return a&&(r?.mountedInstances?.add(e.children),d()),l(()=>(r?.mountedInstances?.add(e.children),()=>{r?.mountedInstances?.delete(e.children)})),l(()=>(r&&(r._pendingUpdate=d),()=>{r&&(r._pendingUpdate=d)})),n(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null}},5205,(e,r,t)=>{r.exports=e.r(80963)}]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/ext/[[...slug]]", [
|
|
2
|
+
"static/chunks/22az81pi-bqjb.js",
|
|
3
|
+
"static/chunks/0qrepe4aqal8_.js",
|
|
4
|
+
"static/chunks/0jo3ujn_icmb9.js",
|
|
5
|
+
"static/chunks/1f04wea7zvjf5.js",
|
|
6
|
+
"static/chunks/07q8ufsdxo1tx.js",
|
|
7
|
+
"static/chunks/0f-hhcgpd3kjt.js",
|
|
8
|
+
"static/chunks/2fzc9bsweg7nf.js",
|
|
9
|
+
"static/chunks/09pees0w94cvm.js",
|
|
10
|
+
"static/chunks/turbopack-34jylrj_qw1ak.js"
|
|
11
|
+
])
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65897,e=>{"use strict";var t=e.i(91398),s=e.i(56206);e.s(["default",0,({value:e,className:a,onChange:l=()=>{},rows:r=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,r);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",a),value:e,onChange:l,rows:d,...i})}])},97776,e=>{"use strict";var t=e.i(91398),s=e.i(56206),a=e.i(60741),l=e.i(82226),r=e.i(54879);e.s(["default",0,({validators:e=[],className:i,...d})=>{let o=(0,a.default)({validators:[...e,l.validateDate],...d}),u=o.value?new Date(o.value).toISOString().split("T")[0]:"";return(0,t.jsx)(r.default,{...o,className:d.containerClassName,children:(0,t.jsx)("input",{type:"date",id:o.id,name:o.name,disabled:o.disabled,className:(0,s.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-border-default px-4 py-2.5 text-sm text-text-primary dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",i,{"border-rose-700 placeholder:text-rose-300":!!o.error}),onChange:o.onChange,onBlur:o.onBlur,value:u,placeholder:o.placeholder,autoComplete:"off",...d})})}])},23239,e=>{"use strict";var t=e.i(91398),s=e.i(56206),a=e.i(65897),l=e.i(60741),r=e.i(54879);e.s(["default",0,({validators:e=[],rows:i=10,...d})=>{let o=(0,l.default)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(r.default,{...o,children:(0,t.jsx)(a.default,{className:(0,s.default)("mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},d.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},10685,e=>{"use strict";var t=e.i(91398),s=e.i(56206),a=e.i(60741),l=e.i(54879);e.s(["default",0,e=>{let{options:r,...i}=(0,a.default)(e),{className:d}=e||{className:""};return(0,t.jsx)(l.default,{...i,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,s.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",d,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onBlur:i.onBlur,value:i.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:i.required,hidden:i.required,children:i.placeholder||i.label}),Object.entries(r).map(([e,s])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:s},e))]})})})}])},1504,e=>{"use strict";e.s(["default",0,(e,t,s)=>Object.assign({},...e?.map(e=>({[e[s]]:e[t]}))||[])])},30086,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let a=t.gql`
|
|
2
|
+
mutation AddWork(
|
|
3
|
+
$type: WorkType!
|
|
4
|
+
$priority: Int! = 0
|
|
5
|
+
$input: JSON
|
|
6
|
+
$originalWorkId: ID
|
|
7
|
+
$scheduled: Timestamp
|
|
8
|
+
$retries: Int! = 20
|
|
9
|
+
) {
|
|
10
|
+
addWork(
|
|
11
|
+
type: $type
|
|
12
|
+
priority: $priority
|
|
13
|
+
input: $input
|
|
14
|
+
originalWorkId: $originalWorkId
|
|
15
|
+
scheduled: $scheduled
|
|
16
|
+
retries: $retries
|
|
17
|
+
) {
|
|
18
|
+
_id
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(a);return{addWork:async({type:t,priority:s,input:a,originalWorkId:l,scheduled:r=null,retries:i})=>e({variables:{type:t,priority:s,input:a,originalWorkId:l,scheduled:r,retries:i},refetchQueries:["WorkQueue"]})}}])},59914,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(50595),l=e.i(25327),r=e.i(56779),i=e.i(58021),d=e.i(66773),o=e.i(3828),u=e.i(58971),n=e.i(21623),m=e.i(24557),c=e.i(5505),x=e.i(1504),f=e.i(69211),p=e.i(63094),b=e.i(10685),h=e.i(21128),g=e.i(16984),k=e.i(98949),w=e.i(59080),y=e.i(76204);let v=w.gql`
|
|
22
|
+
mutation AllocateWork($types: [WorkType], $worker: String) {
|
|
23
|
+
allocateWork(types: $types, worker: $worker) {
|
|
24
|
+
_id
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;var j=e.i(32171);let N=w.gql`
|
|
28
|
+
query ActiveWorkTypes {
|
|
29
|
+
activeWorkTypes
|
|
30
|
+
}
|
|
31
|
+
`,_=()=>{let{data:e,loading:t,error:s}=(0,j.useQuery)(N);return{workTypes:(e?.activeWorkTypes||[]).map(e=>({value:e,label:e})),loading:t,error:s}},W=({workTypes:e})=>{let{formatMessage:a}=(0,s.useIntl)(),{watch:l,setValue:r,getValues:d}=(0,i.useFormContext)(),o=l("types")||[];return(0,t.jsxs)("div",{children:[o.map((s,l)=>(0,t.jsxs)("div",{className:"flex max-w-4xl items-center",children:[(0,t.jsx)("div",{className:"w-100 relative w-full pl-5 space-y-1 rounded-md sm:pr-2",children:(0,t.jsx)("div",{className:"max-w-4xl justify-between align-baseline sm:flex",children:(0,t.jsx)(b.default,{className:"w-full py-2 text-sm text-text-muted sm:mt-0",label:a({id:"type",defaultMessage:"Type"}),placeholder:a({id:"type",defaultMessage:"Type"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",name:`types.${l}`,required:!0,options:(0,x.default)(e,"label","value")})})}),(0,t.jsx)("div",{className:"ml-2 mt-5 shrink-0 sm:mt-4",children:(0,t.jsx)(n.default,{variant:"danger",size:"xs",rounded:"full",icon:(0,t.jsx)(m.TrashIcon,{className:"h-5 w-5"}),onClick:()=>{r("types",d("types").filter((e,t)=>t!==l),{shouldDirty:!0})}})})]},l)),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap",children:[(0,t.jsx)("div",{className:" "}),(0,t.jsx)("div",{className:" mt-2 shrink-0",children:(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)("button",{type:"button",className:"items-right inline-flex rounded-full border border-transparent bg-slate-800 px-2 py-2 text-sm font-medium text-white shadow-xs bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",onClick:()=>void r("types",[...o,""],{shouldDirty:!0}),children:(0,t.jsx)("svg",{className:"h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})})})]})]})},M=()=>{let{formatMessage:e}=(0,s.useIntl)(),a=(0,o.useRouter)(),{allocateWork:l}=(()=>{let[e]=(0,y.useMutation)(v);return{allocateWork:async({types:t,worker:s})=>e({variables:{types:t,worker:s},refetchQueries:["WorkQueue"]})}})(),{hasRole:r}=(0,u.default)(),i=async({types:e,worker:t})=>{let{data:s,error:a}=await l({types:e,worker:t});return{success:!!s?.allocateWork,data:s?.allocateWork,error:a}},n=e({id:"work_allocated_success",defaultMessage:"Allocate work successfully!"}),m=(0,k.default)({submit:i,onSubmitSuccess:(e,{_id:t})=>(a.push(`/works?workerId=${t}`),null),getSubmitErrorMessage:t=>t?.message||e({id:"error-something-went-wrong",defaultMessage:"Unable to complete the task successfully please try again"}),successMessage:n,enableReinitialize:!0,initialValues:{types:[""],worker:""}}),{workTypes:x}=_();return(0,t.jsx)(c.default,{children:(0,t.jsxs)(f.default,{form:m,children:[(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(g.default,{name:"worker",id:"worker",label:e({id:"worker",defaultMessage:"Worker"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",placeholder:e({id:"worker",defaultMessage:"Worker"}),className:"max-w-full text-sm text-slate-900 sm:mt-0"})}),(0,t.jsx)(W,{workTypes:x})]}),(0,t.jsx)(p.default,{}),r(d.IRoleAction.ManageWorker)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-slate-700 space-y-6 bg-surface px-5 py-6 text-right",children:(0,t.jsx)(h.default,{label:e({id:"allocate_work",defaultMessage:"Allocate Work"})})})]})})};var C=e.i(97776),I=e.i(23239),T=e.i(30086);let S=()=>{let{formatMessage:e,locale:a}=(0,s.useIntl)(),{workTypes:l}=_(),{hasRole:r}=(0,u.default)(),{addWork:i}=(0,T.default)(),n=(0,o.useRouter)(),m=e({id:"work_added_success",defaultMessage:"Work added successfully!"}),p=async({type:e,retries:t,priority:s,input:a,scheduled:l,originalWorkId:r})=>{let d=parseInt(t,10),o=parseInt(s,10),{data:u,error:n}=await i({type:e,retries:Number.isNaN(d)?void 0:d,priority:Number.isNaN(o)?void 0:o,input:JSON.parse(a||"[]"),scheduled:l,originalWorkId:r});return n?{success:!1}:{success:!0,data:u?.addWork}},w=(0,k.default)({submit:p,successMessage:m,onSubmitSuccess:(e,{_id:t})=>(n.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{priority:"",retries:"",originalWorkId:null,scheduled:"",type:"",input:"{}"}});return(0,t.jsx)(c.default,{children:(0,t.jsxs)(f.default,{form:w,children:[(0,t.jsxs)("div",{className:"relative max-w-full space-y-6 rounded-md p-6",children:[(0,t.jsx)("div",{className:"max-w-4xl justify-between align-baseline sm:flex",children:(0,t.jsx)(b.default,{className:"w-full py-2 text-sm text-slate-900 sm:mt-0",label:e({id:"type",defaultMessage:"Type"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",name:"type",required:!0,options:(0,x.default)(l,"label","value")})}),(0,t.jsxs)("div",{className:"max-w-4xl justify-between align-baseline sm:flex sm:gap-4",children:[(0,t.jsx)(g.default,{name:"priority",id:"priority",label:e({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"}),(0,t.jsx)(g.default,{name:"retries",id:"retries",label:e({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"})]}),(0,t.jsxs)("div",{className:"max-w-4xl justify-between align-baseline sm:flex sm:gap-4",children:[(0,t.jsx)(g.default,{name:"originalWorkId",id:"original_work_id",label:e({id:"original_work_id",defaultMessage:"Original Work Id"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",autoComplete:"on",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"}),(0,t.jsx)(C.default,{label:e({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-900 sm:mt-0 ",containerClassName:"w-full py-2 text-sm text-slate-900 sm:mt-0",name:"scheduled",locale:a,showTimeInput:!0,timeFormat:"p",timeIntervals:15})]}),(0,t.jsx)("div",{children:(0,t.jsx)(I.default,{name:"input",className:"dark:text-slate-200",labelClassName:"font-sm text-slate-500 mb-1",label:e({id:"input",defaultMessage:"Input"})})})]}),r(d.IRoleAction.ManageWorker)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle p-5 text-right",children:(0,t.jsx)(h.default,{label:e({id:"add_work",defaultMessage:"Add Work"})})})]})})},$=({selectedView:e=null})=>"add_work"===e?(0,t.jsx)(S,{}):"allocate_work"===e?(0,t.jsx)(M,{}):(0,t.jsx)(S,{});e.s(["default",0,()=>{let{formatMessage:e}=(0,s.useIntl)(),i=[{id:"add_work",title:e({id:"add_work",defaultMessage:"Add Work"})},{id:"allocate_work",title:e({id:"allocate_work",defaultMessage:"Allocate Work"})}];return(0,t.jsxs)("div",{className:"mt-6 max-w-4xl",children:[(0,t.jsx)(a.default,{}),(0,t.jsx)(l.default,{headerText:e({id:"work_management_setting_list_header",defaultMessage:"Work Management Settings"})}),(0,t.jsx)(r.default,{tabItems:i,defaultTab:"add_work",children:(0,t.jsx)($,{})})]})}],59914)},95260,(e,t,s)=>{let a="/works/management";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(59914)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},28805,e=>{e.v(t=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/0wooaklx8_14q.js"].map(t=>e.l(t))).then(()=>t(93594)))}]);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25093,e=>{"use strict";var t=e.i(91398),r=e.i(91788);e.s(["default",0,({value:e,duration:s=300})=>{let[i,n]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let t,r;if(0===e)return void n(0);let i=a=>{t||(t=a);let l=Math.min((a-t)/s,1);n(Math.round((1-Math.pow(1-l,3))*e)),l<1&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{r&&cancelAnimationFrame(r)}},[e,s]),(0,t.jsx)("span",{children:i})}])},70553,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.s(["default",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:i}=(0,r.useIntl)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==s?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:i({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-text-muted",children:e})})]})}])},2194,e=>{"use strict";var t=e.i(91398),r=e.i(92802),r=r,s=e.i(56206),i=e.i(69322);e.s(["default",0,({message:e,className:n="",Icon:a=null})=>(0,t.jsx)("div",{className:(0,s.default)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-border-default text-slate-500 dark:text-slate-600",n),children:(0,t.jsxs)("div",{className:"grid items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:a||(0,t.jsx)(r.default,{className:"h-6 w-6"})}),(0,t.jsx)(i.FormattedMessage,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,t.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,t.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],2194)},35793,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(2765);e.s(["default",0,({inputText:e=null,onInputChange:i,defaultValue:n})=>{let{formatMessage:a}=(0,r.useIntl)(),l=(0,s.default)(200)(i);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||a({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>l(e.target.value),id:"search",defaultValue:n,name:"search",className:"block w-full rounded-md border-1 border-border-default text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-focus-ring focus:outline-hidden sm:text-sm",placeholder:a({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},76038,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(56206),i=e.i(69322),n=e.i(42469);let a=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["default",0,({tagList:e,onChange:l,disabled:o=!1,name:d="tag-input",id:u="tag-input",placeholder:c="",selectOptions:h=[],className:f="",buttonText:p="",showTagsInline:m=!0})=>{let{formatMessage:g}=(0,i.useIntl)(),[x,y]=(0,r.useState)(a(e)),[b,_]=(0,r.useState)(""),[v,k]=(0,r.useState)(!1),w=(0,r.useRef)(null);(0,r.useEffect)(()=>{y(a(e))},[e]),(0,r.useEffect)(()=>{let e=e=>{w.current&&!w.current.contains(e.target)&&k(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let j=(0,r.useCallback)(e=>{if(!x.includes(e)&&e){let t=[...x,e];y(t),l(t),_(""),k(!1)}},[x,l]),E=(0,r.useMemo)(()=>{let e=h.filter(e=>!(x||[]).includes(e.value));return b?e.filter(e=>e.label.toLowerCase().includes(b.toLowerCase())):e},[h,x,b]),C=b.trim()&&!x.includes(b.trim())&&!E.some(e=>e.value.toLowerCase()===b.trim().toLowerCase()),R=(0,t.jsxs)("div",{className:"relative",ref:w,children:[(0,t.jsx)("input",{id:u,name:d,type:"text",role:"combobox","aria-expanded":v,"aria-autocomplete":"list",disabled:o,className:(0,s.default)("w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",f),placeholder:c,value:b,onChange:e=>{_(e.target.value),k(!0)},onFocus:()=>k(!0),onKeyDown:e=>{"Enter"===e.key&&b.trim()&&(e.preventDefault(),j(b.trim()))}}),v&&(C||E.length>0)&&(0,t.jsxs)("ul",{role:"listbox",className:"absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",children:[C&&(0,t.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:e=>{e.preventDefault(),j(b.trim())},children:p||g({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:b.trim()})}),E.map(e=>(0,t.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:t=>{t.preventDefault(),j(e.value)},children:e.label},e.value))]})]});return m?(0,t.jsxs)(t.Fragment,{children:[R,(0,t.jsx)("div",{className:(0,s.default)("ml-4 flex items-center flex-wrap gap-5",x.length>0&&"mt-1"),children:x?.map(e=>(0,t.jsx)(n.default,{text:e,color:"slate",onClick:()=>(e=>{let t=x.indexOf(e);if(-1!==t){let e=[...x];e.splice(t,1),l(e),y(e)}})(e)},e))})]}):R}])},30434,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(60741);e.s(["default",0,e=>{let{disabled:i,labelClassName:n,containerClassName:a,inputClassName:l,...o}=e,d=(0,s.default)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!d.error,checkbox:!0,disabled:d.disabled,required:d.required},a),children:[(0,t.jsx)("input",{checked:!!d.value,disabled:i,id:d.name,name:d.name,onChange:d.onChange,onBlur:d.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-border-default bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-focus-ring",l,e.className),...o}),(0,t.jsx)("label",{htmlFor:d.name,className:(0,r.default)("text-sm text-text-primary",n,{"text-danger":!!d.error}),children:d.label})]})}])},78704,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(53576);e.s(["default",0,({loading:e,hasMore:i,onLoadMore:n,children:a,threshold:l=200})=>{let o=(0,r.useRef)(null),d=(0,r.useCallback)(t=>{let[r]=t;r.isIntersecting&&i&&!e&&n()},[i,e,n]);return(0,r.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${l}px`});return t.observe(e),()=>{t.disconnect()}},[d,l]),(0,t.jsxs)(t.Fragment,{children:[a,(0,t.jsx)("div",{ref:o,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(s.default,{})})]})}])},51128,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(3828),i=e.i(35793),n=e.i(76038),a=e.i(42469),l=e.i(83147),o=e.i(73319);e.s(["default",0,({children:e,onSearchChange:d,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:h=[]})=>{let{formatMessage:f}=(0,r.useIntl)(),{query:p,push:m}=(0,s.useRouter)(),g=e=>{if((0,o.isTruthy)(e))m({query:(0,l.normalizeQuery)(p,e?.join(","),"tags")});else{let{tags:e,...t}=p;m({query:(0,l.normalizeQuery)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(i.default,{onInputChange:d,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-border-default sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(n.default,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:p?.tags?.split(","),onChange:g,selectOptions:h,showTagsInline:!1})}),p?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:p?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(a.default,{text:e,color:"slate",onClick:()=>{let t=p?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},8918,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(56206),i=e.i(69322),n=e.i(88566),a=e.i(25575),l=e.i(3828),o=e.i(83147);let d=({onSort:e,sortDirection:r})=>r?"ASC"===r?(0,t.jsx)(a.ChevronUpIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(n.ChevronDownIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var u=e.i(2194);let c=e=>{let t=[],s=[],i=[];return r.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?i.push(e):s.push(e)}),{header:t,footer:i,body:s}},h=({className:e="",...n})=>{let[a,l]=(0,r.useState)(c(n)),{formatMessage:o}=(0,i.useIntl)(),d={...a,header:r.default.Children.map(a.header,e=>r.default.cloneElement(e))};return(0,r.useEffect)(()=>{l(c(n))},[n.children]),d.header.length||d.body.length?(0,t.jsxs)("table",{className:(0,s.default)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...n,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary",children:d.header}),d.body.length?(0,t.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:d.body}):null,d.footer.length?(0,t.jsx)("tfoot",{children:d.footer}):null]}):(0,t.jsx)(u.default,{message:o({id:"data",defaultMessage:"Data"})})};h.Row=({className:e="",children:i=[],header:n=!1,enablesort:a=!1,...l})=>{let o=r.default.Children.map(i,e=>r.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:n,enablesort:a}));return(0,t.jsx)("tr",{className:(0,s.default)("grid grid-cols-1 auto-rows-fr border border-border-subtle sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-surface sm:bg-inherit dark:sm:bg-inherit",e),...l,children:o})},h.Cell=({className:e="",header:r=!1,enablesort:i=!1,children:n,sortKey:a=null,defaultSortDirection:u=null,...c})=>{let h=(0,l.useRouter)(),f=(0,o.getSortKeys)(h.query?.sort),p=r?"th":"td";return(0,t.jsx)(p,{className:(0,s.default)(r?"px-4 py-3 text-left text-text-muted":"whitespace-nowrap px-4 py-3 text-text-muted border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...c,children:(0,t.jsxs)("div",{className:"flex items-center",children:[n,"th"===p&&i&&a&&(0,t.jsx)(d,{onSort:e=>{var t;let r;e.preventDefault(),((t=f[a])?"ASC"===t?"DESC":null:"ASC")||!f[a]?r={...f,[a]:"ASC"===f[a]?"DESC":"ASC"}:(delete f[a],r=f);let s=Object.entries(r).map(([e,t])=>[e,t].join("_")).join(","),{sort:i,...n}=h.query,l=Object.keys(n).map(e=>[e,n[e]].join("=")).join("&"),d=0===Object.keys(n).length?`${h.basePath}?sort=${s}`:`${h.basePath}?${l}&sort=${s}`;s?h.push(d):h.push({query:(0,o.normalizeQuery)(n)})},sortDirection:Object.keys(f).length?f[a]:u})]})})},e.s(["default",0,h],8918)},60513,75284,e=>{"use strict";var t=e.i(91788),r=e.i(28401),s=e.i(69322),i=e.i(30086),n=e.i(66773),a=e.i(98926),l=e.i(63104),o=e.i(3828);e.s(["useCSVExport",0,()=>{let[e,d]=(0,t.useState)(!1),u=(0,a.useApolloClient)(),c=(0,o.useRouter)(),{addWork:h}=(0,i.default)(),{formatMessage:f}=(0,s.useIntl)(),p=(0,t.useCallback)(async e=>{let{data:t}=await u.query({query:(0,l.GetWorkQuery)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[u]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...s})=>{d(!0);try{let r=await h({type:n.IWorkType.BulkExport,input:{type:e,...s}}),i=r?.data?.addWork?._id;if(!i)throw Error("Failed to create export work");await new Promise((e,r)=>{let s=setInterval(async()=>{try{let t=await p(i);if(!t)throw Error("Work not found");(t.status===n.IWorkStatus.Success||t.status===n.IWorkStatus.Failed)&&(clearInterval(s),t.status===n.IWorkStatus.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(s),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.toast.error(f({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{d(!1)}},[h,p,c,f])}}],60513);var d=e.i(91398),u=e.i(69211),c=e.i(30434),h=e.i(98949),f=e.i(21128);e.s(["default",0,function({options:e,onSubmit:r,loading:i=!1,successMessage:n=""}){let{formatMessage:a}=(0,s.useIntl)(),l=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),o=async e=>(await r(e),{success:!0}),p=(0,h.default)({successMessage:n||a({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:l});return(0,d.jsx)(u.default,{form:p,children:p.api.isSubmitting?(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,d.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,d.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:a({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,d.jsxs)("fieldset",{disabled:i,style:{border:"none",padding:0},children:[(0,d.jsxs)("h3",{children:[" ",a({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,d.jsx)(c.default,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"},e.key)),(0,d.jsx)(f.default,{label:a({id:"submit",defaultMessage:"Submit"}),disabled:i})]})})}],75284)},78193,e=>{"use strict";var t=e.i(91788),r=e.i(69322),s=e.i(30086),i=e.i(66773);e.s(["useCSVImport",0,({validate:e,process:n})=>{let{addWork:a}=(0,s.default)(),[l,o]=(0,t.useState)(!1),d=(0,r.useIntl)();return{isImporting:l,importItems:async t=>{let r={success:0,failed:0,errors:[]};try{o(!0);let s=e(t,d);s.length>0&&(r.failed+=s.length,r.errors.push(...s));let l=await n(t);for(let e=0;e<l.length;e+=100){let t=l.slice(e,e+100);try{await a({type:i.IWorkType.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),r.success+=t.length}catch(s){console.error("Batch import failed:",s),r.failed+=t.length,r.errors.push(`Batch starting at index ${e} failed: ${s.message}`)}}return o(!1),r}catch(e){return console.error("Import failed:",e),o(!1),r.errors.push(e.message||"Unknown error"),r}}}}])},16785,e=>{"use strict";e.s(["downloadCSV",0,(e,t)=>{let r=new Blob([e],{type:"text/csv;charset=utf-8;"}),s=document.createElement("a");if(void 0!==s.download){let e=URL.createObjectURL(r);s.setAttribute("href",e),s.setAttribute("download",t),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(e)}}])},2765,e=>{"use strict";e.s(["default",0,(e=500)=>t=>{let r;return(...s)=>{let i;clearTimeout(r),r=setTimeout(()=>t.apply(i,s),e)}}])},22003,e=>{"use strict";e.s(["default",0,e=>{if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return t&&"object"==typeof t&&Object.keys(t).length?t:void 0}catch{return}}])},42912,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.s(["default",0,({result:e,title:s,entityName:i="items"})=>{let{formatMessage:n}=(0,r.useIntl)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:s||n({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:n({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:i})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:n({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:i})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,r)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},r)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},94672,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
2
|
+
fragment WorkFragment on Work {
|
|
3
|
+
_id
|
|
4
|
+
type
|
|
5
|
+
scheduled
|
|
6
|
+
status
|
|
7
|
+
started
|
|
8
|
+
success
|
|
9
|
+
finished
|
|
10
|
+
created
|
|
11
|
+
deleted
|
|
12
|
+
retries
|
|
13
|
+
original {
|
|
14
|
+
_id
|
|
15
|
+
retries
|
|
16
|
+
}
|
|
17
|
+
input
|
|
18
|
+
result
|
|
19
|
+
}
|
|
20
|
+
`;e.s(["default",0,r])},30086,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.gql`
|
|
21
|
+
mutation AddWork(
|
|
22
|
+
$type: WorkType!
|
|
23
|
+
$priority: Int! = 0
|
|
24
|
+
$input: JSON
|
|
25
|
+
$originalWorkId: ID
|
|
26
|
+
$scheduled: Timestamp
|
|
27
|
+
$retries: Int! = 20
|
|
28
|
+
) {
|
|
29
|
+
addWork(
|
|
30
|
+
type: $type
|
|
31
|
+
priority: $priority
|
|
32
|
+
input: $input
|
|
33
|
+
originalWorkId: $originalWorkId
|
|
34
|
+
scheduled: $scheduled
|
|
35
|
+
retries: $retries
|
|
36
|
+
) {
|
|
37
|
+
_id
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;e.s(["default",0,()=>{let[e]=(0,r.useMutation)(s);return{addWork:async({type:t,priority:r,input:s,originalWorkId:i,scheduled:n=null,retries:a})=>e({variables:{type:t,priority:r,input:s,originalWorkId:i,scheduled:n,retries:a},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(70693),i=e.i(94672);let n=(e="")=>t.gql`
|
|
41
|
+
query Work($workId: ID!) {
|
|
42
|
+
work(workId: $workId) {
|
|
43
|
+
...WorkFragment
|
|
44
|
+
${e}
|
|
45
|
+
error
|
|
46
|
+
priority
|
|
47
|
+
worker
|
|
48
|
+
timeout
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
${i.default}
|
|
52
|
+
`;e.s(["GetWorkQuery",0,n,"default",0,({workId:e=null,...t})=>{let{customProperties:i}=(0,s.default)(),{data:a,loading:l,error:o,previousData:d}=(0,r.useQuery)(n(i?.Work),{skip:!e,variables:{workId:e},...t});return{work:a?.work||d?.work,loading:l,error:o}}])},88566,25575,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["ChevronDownIcon",0,r],88566);let s=t.forwardRef(function({title:e,titleId:r,...s},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["ChevronUpIcon",0,s],25575)},92802,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))});e.s(["default",0,r])},72552,(e,t,r)=>{var s;let i;e.e,s=function e(){var t,r="u">typeof self?self:"u">typeof window?window:void 0!==r?r:{},s=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,n={},a=0,l={};function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function d(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=_(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var s=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<s){let t=this._config.newline;t||(n=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,n)),e=[...e.split(t).slice(s)].join(t)}this.isFirstChunk&&k(this._config.beforeFirstChunk)&&void 0!==(n=this._config.beforeFirstChunk(e))&&(e=n),this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e,n=(this._partialLine="",this._handle.parse(s,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=n.meta.cursor,this._finished||(this._partialLine=s.substring(e-this._baseIndex),this._baseIndex=e),n&&n.data&&(this._rowCount+=n.data.length),s=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)r.postMessage({results:n,workerId:l.WORKER_ID,finished:s});else if(k(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=n=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!s||!k(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){k(this._config.error)?this._config.error(e):i&&this._config.error&&r.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),d.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),s||(t.onload=v(this._chunkLoaded,this),t.onerror=v(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e,r,i=this._config.downloadRequestHeaders;for(r in i)t.setRequestHeader(r,i[r])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),d.call(this,e);var t,r,s="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,s?((t=new FileReader).onload=v(this._chunkLoaded,this),t.onerror=v(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,i)),t.readAsText(e,this._config.encoding));s||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;d.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function f(e){d.call(this,e=e||{});var t=[],r=!0,s=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(e){var t,r,s,i,n=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,u=0,c=0,h=!1,f=!1,p=[],x={data:[],errors:[],meta:{}};function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function b(){if(x&&s&&(w("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),s=!1),e.skipEmptyLines&&(x.data=x.data.filter(function(e){return!y(e)})),v()){if(x)if(Array.isArray(x.data[0])){for(var t,r=0;v()&&r<x.data.length;r++)x.data[r].forEach(i);x.data.splice(0,1)}else x.data.forEach(i);function i(t,r){t=o(t),k(e.transformHeader)&&(t=e.transformHeader(t,r)),p.push(t)}}function d(t,r){for(var s=e.header?{}:[],i=0;i<t.length;i++){var l=i,o=t[i],o=((t,r)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(n.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):a.test(r)?new Date(r):""===r?null:r):r)(l=e.header?i>=p.length?"__parsed_extra":p[i]:l,o=e.transform?e.transform(o,l):o);"__parsed_extra"===l?(s[l]=s[l]||[],s[l].push(o)):s[l]=o}return e.header&&(i>p.length?w("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+i,c+r):i<p.length&&w("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+i,c+r)),s}x&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!x.data.length||Array.isArray(x.data[0])?(x.data=x.data.map(d),t=x.data.length):x.data=d(x.data,0),e.header&&x.meta&&(x.meta.fields=p),c+=t)}function v(){return e.header&&0===p.length}function w(e,t,r,s){e={type:e,code:t,message:r},void 0!==s&&(e.row=s),x.errors.push(e)}k(e.step)&&(i=e.step,e.step=function(t){x=t,v()?b():(b(),0!==x.data.length&&(u+=t.data.length,e.preview&&u>e.preview?r.abort():(x.data=x.data[0],i(x,d))))}),this.parse=function(i,n,a){var o=e.quoteChar||'"',o=(e.newline||(e.newline=this.guessLineEndings(i,o)),s=!1,e.delimiter?k(e.delimiter)&&(e.delimiter=e.delimiter(i),x.meta.delimiter=e.delimiter):((o=((t,r,s,i,n)=>{var a,o,d,u;n=n||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var c=0;c<n.length;c++){for(var h,f=n[c],p=0,m=0,x=0,b=(d=void 0,new g({comments:i,delimiter:f,newline:r,preview:10}).parse(t)),_=0;_<b.data.length;_++)s&&y(b.data[_])?x++:(m+=h=b.data[_].length,void 0===d?d=h:0<h&&(p+=Math.abs(h-d),d=h));0<b.data.length&&(m/=b.data.length-x),(void 0===o||p<=o)&&(void 0===u||u<m)&&1.99<m&&(o=p,a=f,u=m)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=o.bestDelimiter:(s=!0,e.delimiter=l.DefaultDelimiter),x.meta.delimiter=e.delimiter),_(e));return e.preview&&e.header&&o.preview++,t=i,x=(r=new g(o)).parse(t,n,a),b(),h?{meta:{paused:!0}}:x||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,r.abort(),t=k(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){d.streamer._halted?(h=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,r.abort(),x.meta.aborted=!0,k(e.complete)&&e.complete(x),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+"([^]*?)"+m(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var s=0,i=0;i<r.length;i++)"\n"===r[i][0]&&s++;return s>=r.length/2?"\r\n":"\r"}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,r=e.newline,s=e.comments,i=e.step,n=e.preview,a=e.fastMode,d=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,h=c;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1<l.BAD_DELIMITERS.indexOf(t))&&(t=","),s===t)throw Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||-1<l.BAD_DELIMITERS.indexOf(s))&&(s=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,p=!1;this.parse=function(l,g,x){if("string"!=typeof l)throw Error("Input must be a string");var y=l.length,b=t.length,_=r.length,v=s.length,w=k(i),j=[],E=[],C=[],R=f=0;if(!l)return q();if(a||!1!==a&&-1===l.indexOf(c)){for(var S=l.split(r),I=0;I<S.length;I++){if(C=S[I],f+=C.length,I!==S.length-1)f+=r.length;else if(x)break;if(!s||C.substring(0,v)!==s){if(w){if(j=[],T(C.split(t)),z(),p)return q()}else T(C.split(t));if(n&&n<=I)return j=j.slice(0,n),q(!0)}}return q()}for(var O=l.indexOf(t,f),N=l.indexOf(r,f),A=RegExp(m(h)+m(c),"g"),L=l.indexOf(c,f);;)if(l[f]===c)for(L=f,f++;;){if(-1===(L=l.indexOf(c,L+1)))return x||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:j.length,index:f}),F();if(L===y-1)return F(l.substring(f,L).replace(A,c));if(c===h&&l[L+1]===h)L++;else if(c===h||0===L||l[L-1]!==h){-1!==O&&O<L+1&&(O=l.indexOf(t,L+1));var D=M(-1===(N=-1!==N&&N<L+1?l.indexOf(r,L+1):N)?O:Math.min(O,N));if(l.substr(L+1+D,b)===t){C.push(l.substring(f,L).replace(A,c)),l[f=L+1+D+b]!==c&&(L=l.indexOf(c,f)),O=l.indexOf(t,f),N=l.indexOf(r,f);break}if(D=M(N),l.substring(L+1+D,L+1+D+_)===r){if(C.push(l.substring(f,L).replace(A,c)),W(L+1+D+_),O=l.indexOf(t,f),L=l.indexOf(c,f),w&&(z(),p))return q();if(n&&j.length>=n)return q(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:j.length,index:f}),L++}}else if(s&&0===C.length&&l.substring(f,f+v)===s){if(-1===N)return q();f=N+_,N=l.indexOf(r,f),O=l.indexOf(t,f)}else if(-1!==O&&(O<N||-1===N))C.push(l.substring(f,O)),f=O+b,O=l.indexOf(t,f);else{if(-1===N)break;if(C.push(l.substring(f,N)),W(N+_),w&&(z(),p))return q();if(n&&j.length>=n)return q(!0)}return F();function T(e){j.push(e),R=f}function M(e){return -1!==e&&(e=l.substring(L+1,e))&&""===e.trim()?e.length:0}function F(e){return x||(void 0===e&&(e=l.substring(f)),C.push(e),f=y,T(C),w&&z()),q()}function W(e){f=e,T(C),C=[],N=l.indexOf(r,f)}function q(s){if(e.header&&!g&&j.length&&!u){var i=j[0],n=Object.create(null),a=new Set(i);let t=!1;for(let r=0;r<i.length;r++){let s=o(i[r]);if(n[s=k(e.transformHeader)?e.transformHeader(s,r):s]){let e,l=n[s];for(;e=s+"_"+l,l++,a.has(e););a.add(e),i[r]=e,n[s]++,t=!0,(d=null===d?{}:d)[e]=s}else n[s]=1,i[r]=s;a.add(s)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:j,errors:E,meta:{delimiter:t,linebreak:r,aborted:p,truncated:!!s,cursor:R+(g||0),renamedHeaders:d}}}function z(){i(q()),j=[],E=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return f}}function x(e){var t=e.data,r=n[t.workerId],s=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){s=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(k(r.userStep)){for(var a=0;a<t.results.data.length&&(r.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},i),!s);a++);delete t.results}else k(r.userChunk)&&(r.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!s&&y(t.workerId,t.results)}function y(e,t){var r=n[e];k(r.userComplete)&&r.userComplete(t),r.terminate(),delete n[e]}function b(){throw Error("Not implemented.")}function _(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=_(e[t]);return r}function v(e,t){return function(){e.apply(t,arguments)}}function k(e){return"function"==typeof e}return l.parse=function(t,s){var i,d,p,m=(s=s||{}).dynamicTyping||!1;if(k(m)&&(s.dynamicTypingFunction=m,m={}),s.dynamicTyping=m,s.transform=!!k(s.transform)&&s.transform,!s.worker||!l.WORKERS_SUPPORTED)return m=null,l.NODE_STREAM_INPUT,"string"==typeof t?(t=o(t),m=new(s.download?u:h)(s)):!0===t.readable&&k(t.read)&&k(t.on)?m=new f(s):(r.File&&t instanceof File||t instanceof Object)&&(m=new c(s)),m.stream(t);(m=!!l.WORKERS_SUPPORTED&&(d=r.URL||r.webkitURL||null,p=e.toString(),i=l.BLOB_URL||(l.BLOB_URL=d.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",p,")();"],{type:"text/javascript"}))),(i=new r.Worker(i)).onmessage=x,i.id=a++,n[i.id]=i)).userStep=s.step,m.userChunk=s.chunk,m.userComplete=s.complete,m.userError=s.error,s.step=k(s.step),s.chunk=k(s.chunk),s.complete=k(s.complete),s.error=k(s.error),delete s.worker,m.postMessage({input:t,config:s,workerId:m.id})},l.unparse=function(e,t){var r=!1,s=!0,i=",",n="\r\n",a='"',o=a+a,d=!1,u=null,c=!1,h=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(n=t.newline),"string"==typeof t.quoteChar&&(o=(a=t.quoteChar)+a),"boolean"==typeof t.header&&(s=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+a),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(m(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,d);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],d);throw Error("Unable to serialize unrecognized input");function f(e,t,r){var a="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),o=!Array.isArray(t[0]);if(l&&s){for(var d=0;d<e.length;d++)0<d&&(a+=i),a+=p(e[d],d);0<t.length&&(a+=n)}for(var u=0;u<t.length;u++){var c=(l?e:t[u]).length,h=!1,f=l?0===Object.keys(t[u]).length:0===t[u].length;if(r&&!l&&(h="greedy"===r?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===r&&l){for(var m=[],g=0;g<c;g++){var x=o?e[g]:g;m.push(t[u][x])}h=""===m.join("").trim()}if(!h){for(var y=0;y<c;y++){0<y&&!f&&(a+=i);var b=l&&o?e[y]:y;a+=p(t[u][b],y)}u<t.length-1&&(!r||0<c&&!f)&&(a+=n)}}return a}function p(e,t){var s,n,d;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(d=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,d=!0),n=(s=e.toString()).replace(h,o),(d=d||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(n,l.BAD_DELIMITERS)||-1<n.indexOf(i)||-1<s.indexOf(a)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?a+n+a:n)}},l.RECORD_SEP="\x1e",l.UNIT_SEP="\x1f",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r","\n",'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!s&&!!r.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=0xa00000,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=g,l.ParserHandle=p,l.NetworkStreamer=u,l.FileStreamer=c,l.StringStreamer=h,l.ReadableStreamStreamer=f,r.jQuery&&((t=r.jQuery).fn.parse=function(e){var s=e.config||{},i=[];return this.each(function(e){if(!("INPUT"===t(this).prop("tagName").toUpperCase()&&"file"===t(this).attr("type").toLowerCase()&&r.FileReader)||!this.files||0===this.files.length)return!0;for(var n=0;n<this.files.length;n++)i.push({file:this.files[n],inputElem:this,instanceConfig:t.extend({},s)})}),n(),this;function n(){if(0===i.length)k(e.complete)&&e.complete();else{var r,s,n,o=i[0];if(k(e.before)){var d=e.before(o.file,o.inputElem);if("object"==typeof d){if("abort"===d.action)return r=o.file,s=o.inputElem,n=d.reason,void(k(e.error)&&e.error({name:"AbortError"},r,s,n));if("skip"===d.action)return void a();"object"==typeof d.config&&(o.instanceConfig=t.extend(o.instanceConfig,d.config))}else if("skip"===d)return void a()}var u=o.instanceConfig.complete;o.instanceConfig.complete=function(e){k(u)&&u(e,o.file,o.inputElem),a()},l.parse(o.file,o.instanceConfig)}}function a(){i.splice(0,1),n()}}),i&&(r.onmessage=function(e){e=e.data,void 0===l.WORKER_ID&&e&&(l.WORKER_ID=e.workerId),"string"==typeof e.input?r.postMessage({workerId:l.WORKER_ID,results:l.parse(e.input,e.config),finished:!0}):(r.File&&e.input instanceof File||e.input instanceof Object)&&(e=l.parse(e.input,e.config))&&r.postMessage({workerId:l.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(d.prototype)).constructor=u,(c.prototype=Object.create(d.prototype)).constructor=c,(h.prototype=Object.create(h.prototype)).constructor=h,(f.prototype=Object.create(d.prototype)).constructor=f,l},"function"==typeof define&&define.amd?void 0!==(i=s())&&e.v(i):t.exports=s()}]);
|