@unchainedshop/admin-ui 5.0.0-alpha.2 → 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 +112 -0
- 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/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 -14
- 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/NCD-SJ8yCV0Afw8rFopK9/_buildManifest.js +0 -258
- package/out/_next/static/chunks/0-beu4vu82jrh.js +0 -1
- package/out/_next/static/chunks/0-bq_~1lrxscv.js +0 -1
- package/out/_next/static/chunks/0-gs6rs8.en66.js +0 -807
- package/out/_next/static/chunks/0.4qfzuvwzsxc.js +0 -346
- package/out/_next/static/chunks/0.ezy3xvxrqcc.js +0 -15
- package/out/_next/static/chunks/0.i9a933lfo25.js +0 -110
- package/out/_next/static/chunks/0.qv4h3l4v.mz.js +0 -807
- package/out/_next/static/chunks/00-1l-sb67jn-.js +0 -807
- package/out/_next/static/chunks/0063j04yfdol-.js +0 -13
- package/out/_next/static/chunks/006d2uxhsngs-.js +0 -1
- package/out/_next/static/chunks/00d66~in48qe1.js +0 -108
- package/out/_next/static/chunks/00u_9mz-xfmbu.js +0 -119
- package/out/_next/static/chunks/00ysn67q-k.lf.js +0 -384
- package/out/_next/static/chunks/00z8y5zmd5ley.js +0 -16
- package/out/_next/static/chunks/01.ug0e_hak5n.js +0 -31
- package/out/_next/static/chunks/01755gvyv1u4p.js +0 -342
- package/out/_next/static/chunks/024hggxa5rlsk.js +0 -16
- package/out/_next/static/chunks/025rs.6-.kttm.js +0 -177
- package/out/_next/static/chunks/029met6o9c69_.js +0 -132
- package/out/_next/static/chunks/035ijcwfe128..js +0 -13
- package/out/_next/static/chunks/039.n12k.ourz.js +0 -1
- package/out/_next/static/chunks/039laq217w5af.js +0 -1
- package/out/_next/static/chunks/03awhk2amfyg9.js +0 -13
- package/out/_next/static/chunks/03b6o0yl3wq69.js +0 -324
- package/out/_next/static/chunks/03exf~-d8n0~p.js +0 -12
- package/out/_next/static/chunks/043qhigp~b~xd.js +0 -288
- package/out/_next/static/chunks/047b32b2zk0zr.js +0 -50
- package/out/_next/static/chunks/04ljxsi4h8opa.js +0 -3
- package/out/_next/static/chunks/05-wy9wkovd44.js +0 -66
- package/out/_next/static/chunks/059j6ba8pjbxt.js +0 -2
- package/out/_next/static/chunks/05c669_6-rcl4.js +0 -15
- package/out/_next/static/chunks/05ebn-rbx77t1.js +0 -1
- package/out/_next/static/chunks/05ijoypg9erzj.js +0 -15
- package/out/_next/static/chunks/05mdbs7fsyl0j.js +0 -15
- package/out/_next/static/chunks/05xkbw-s9zm4v.js +0 -1
- package/out/_next/static/chunks/05y5i1xi9l7xo.js +0 -46
- package/out/_next/static/chunks/06jxo~w32bob0.js +0 -14
- package/out/_next/static/chunks/06l-x0hfnht~9.js +0 -12
- package/out/_next/static/chunks/06rpbu900ohev.js +0 -807
- package/out/_next/static/chunks/06wxd~64yev29.js +0 -1
- package/out/_next/static/chunks/074t2kkalxoor.js +0 -54
- package/out/_next/static/chunks/0757.exyqs35o.js +0 -1
- package/out/_next/static/chunks/07bj_95mgrfr7.js +0 -81
- package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
- package/out/_next/static/chunks/07gsr_4x3t83l.js +0 -1
- package/out/_next/static/chunks/07m0kcby2q9_3.js +0 -119
- package/out/_next/static/chunks/07rosayyue4dv.js +0 -5
- package/out/_next/static/chunks/07vc0lr9~n374.js +0 -807
- package/out/_next/static/chunks/07we~tcuuf587.js +0 -1
- package/out/_next/static/chunks/08-e12375gky7.js +0 -1
- package/out/_next/static/chunks/08g5cr0k-wewy.js +0 -13
- package/out/_next/static/chunks/08gnfg~ucaonj.js +0 -31
- package/out/_next/static/chunks/08l8.c5-zq8l_.js +0 -13
- package/out/_next/static/chunks/08s08655wboxs.js +0 -224
- package/out/_next/static/chunks/08ubwqxtv1pi8.js +0 -471
- package/out/_next/static/chunks/093du9_a7j~e9.js +0 -22
- package/out/_next/static/chunks/09ar00gwggnv2.js +0 -92
- package/out/_next/static/chunks/09ew07.pd~qmo.js +0 -31
- package/out/_next/static/chunks/09h16th.ukf49.js +0 -9
- package/out/_next/static/chunks/09i.iewg619r8.js +0 -1
- package/out/_next/static/chunks/09ird980jk5l4.js +0 -1
- package/out/_next/static/chunks/09ti6--w-81qk.js +0 -12
- package/out/_next/static/chunks/0_.rynghl8eid.js +0 -16
- package/out/_next/static/chunks/0_fjllta7r.pd.js +0 -1
- package/out/_next/static/chunks/0_hapi9~w_m74.js +0 -807
- package/out/_next/static/chunks/0_rymam7ts5h_.js +0 -61
- package/out/_next/static/chunks/0_tmrtwx_w001.js +0 -1
- package/out/_next/static/chunks/0_wmd30ovkohg.js +0 -14
- package/out/_next/static/chunks/0a4iuso54enw6.js +0 -43
- package/out/_next/static/chunks/0a9xn3eyi55p7.js +0 -807
- package/out/_next/static/chunks/0ab-_zb.d-ta~.js +0 -13
- package/out/_next/static/chunks/0agmcim_ow38h.js +0 -41
- package/out/_next/static/chunks/0ah_xk7gumihc.js +0 -10
- package/out/_next/static/chunks/0al9fetggpofs.js +0 -101
- package/out/_next/static/chunks/0apih1f_pg7x5.js +0 -22
- package/out/_next/static/chunks/0aqef_pw6d4-x.js +0 -12
- package/out/_next/static/chunks/0av.mpk52l~sj.js +0 -78
- package/out/_next/static/chunks/0b26w_2v.jnnp.js +0 -23
- package/out/_next/static/chunks/0bgpq4k~.1ow~.js +0 -1
- package/out/_next/static/chunks/0b~~k586vhgzn.js +0 -22
- package/out/_next/static/chunks/0c1ohyu0~45-6.js +0 -16
- package/out/_next/static/chunks/0c6zpdc5tnyit.js +0 -14
- package/out/_next/static/chunks/0cxr_f9owlixa.js +0 -147
- package/out/_next/static/chunks/0d4_~230qii9x.js +0 -8
- package/out/_next/static/chunks/0d7ng.3g0fqyq.js +0 -14
- package/out/_next/static/chunks/0dgzbrz_ks6y3.js +0 -836
- package/out/_next/static/chunks/0dmlsqy.34z7l.js +0 -5
- package/out/_next/static/chunks/0d~mpqdnsqc_3.js +0 -217
- package/out/_next/static/chunks/0e.ov59u.i2g..js +0 -26
- package/out/_next/static/chunks/0e7j7~xp-kfcl.js +0 -1
- package/out/_next/static/chunks/0eshxr9tyc-ob.js +0 -1
- package/out/_next/static/chunks/0eyuawigvkque.js +0 -144
- package/out/_next/static/chunks/0f0p~b_1z06f-.js +0 -12
- package/out/_next/static/chunks/0f1vh2kuipe~w.js +0 -1
- package/out/_next/static/chunks/0f2lcm2fvm0o4.js +0 -15
- package/out/_next/static/chunks/0f5-n-rcb1ksy.js +0 -61
- package/out/_next/static/chunks/0f7rfo-9v~6ta.js +0 -16
- package/out/_next/static/chunks/0fadm_h6dqral.js +0 -1
- package/out/_next/static/chunks/0fgje3pp6kr-..js +0 -21
- package/out/_next/static/chunks/0fixfg1.spty7.js +0 -8
- package/out/_next/static/chunks/0fo857sizpzb..js +0 -14
- package/out/_next/static/chunks/0fpmn5~h1l5fy.js +0 -51
- package/out/_next/static/chunks/0fzx56yu8w89-.js +0 -1
- package/out/_next/static/chunks/0g5.zeq8z86p8.js +0 -22
- package/out/_next/static/chunks/0gcrw01taxxl6.js +0 -1
- package/out/_next/static/chunks/0hprhos6ompyh.js +0 -1
- package/out/_next/static/chunks/0hv.16xst798a.js +0 -807
- package/out/_next/static/chunks/0i67~d9m79069.js +0 -1
- package/out/_next/static/chunks/0i9ujbll13rjg.js +0 -7
- package/out/_next/static/chunks/0ixp-hqnt2hdk.js +0 -188
- package/out/_next/static/chunks/0j3_ll.umtrlh.js +0 -15
- package/out/_next/static/chunks/0j8_vntnh3wh1.js +0 -384
- package/out/_next/static/chunks/0jcl.bguz9-il.js +0 -173
- package/out/_next/static/chunks/0jhfv_wn9s6x1.js +0 -1
- package/out/_next/static/chunks/0jthyhkkkajye.js +0 -87
- package/out/_next/static/chunks/0jyfzjlxmkv47.js +0 -1
- package/out/_next/static/chunks/0k33b3l3swmdp.js +0 -14
- package/out/_next/static/chunks/0k8cqr5rpupnp.js +0 -12
- package/out/_next/static/chunks/0kacoozv1plky.js +0 -12
- package/out/_next/static/chunks/0kb8vq-u9e5ie.js +0 -596
- package/out/_next/static/chunks/0kpfj.1wbd8ym.js +0 -200
- package/out/_next/static/chunks/0kws6.oh9adj9.js +0 -14
- package/out/_next/static/chunks/0l6-vjb..0-s7.js +0 -286
- package/out/_next/static/chunks/0l8ujxmk7702g.js +0 -1
- package/out/_next/static/chunks/0lcd2so6jg-_l.js +0 -44
- package/out/_next/static/chunks/0lhvveiv7i555.js +0 -13
- package/out/_next/static/chunks/0lim3v66fnjbi.js +0 -73
- package/out/_next/static/chunks/0lj_~1h9s9o4p.js +0 -15
- package/out/_next/static/chunks/0m2jz56bm31rn.js +0 -13
- package/out/_next/static/chunks/0mw6751mia5o-.js +0 -13
- package/out/_next/static/chunks/0m~4npg.nbafl.js +0 -807
- package/out/_next/static/chunks/0nnrgfwlre~2w.js +0 -12
- package/out/_next/static/chunks/0nvdm-r7zmv-l.js +0 -1
- package/out/_next/static/chunks/0nyyy1v4911lw.js +0 -59
- package/out/_next/static/chunks/0o05daemjdhug.js +0 -227
- package/out/_next/static/chunks/0o6szwcbqvtk..js +0 -1
- package/out/_next/static/chunks/0oq1lazm-ypco.js +0 -15
- package/out/_next/static/chunks/0owfq70q4gv3g.js +0 -11
- package/out/_next/static/chunks/0o~ytet2snd7..js +0 -18
- package/out/_next/static/chunks/0pooq0ei74.fu.js +0 -17
- package/out/_next/static/chunks/0q92oiu-paus_.js +0 -1
- package/out/_next/static/chunks/0r.pkr~.dyugv.js +0 -137
- package/out/_next/static/chunks/0r.xn-_woklgt.js +0 -138
- package/out/_next/static/chunks/0r2eg~z0yxhkm.js +0 -384
- package/out/_next/static/chunks/0rf4yd5v399-n.js +0 -342
- package/out/_next/static/chunks/0s9gw8v77opep.js +0 -12
- package/out/_next/static/chunks/0sq1ba8siz_al.js +0 -46
- package/out/_next/static/chunks/0tgyufn7ieyma.js +0 -23
- package/out/_next/static/chunks/0tq-lptj3-s~9.js +0 -7
- package/out/_next/static/chunks/0tur4u0bq8afu.js +0 -1
- package/out/_next/static/chunks/0u.p7-5euvw9g.js +0 -101
- package/out/_next/static/chunks/0u0zlnx_0uuo~.js +0 -1
- package/out/_next/static/chunks/0ud072y3rsxuo.js +0 -26
- package/out/_next/static/chunks/0ueboweabxsm_.js +0 -12
- package/out/_next/static/chunks/0ulpot4q9efmn.js +0 -1
- package/out/_next/static/chunks/0up4o93erzv5i.js +0 -15
- package/out/_next/static/chunks/0uppdoxx035f~.js +0 -807
- package/out/_next/static/chunks/0v01e3xk0z2zz.js +0 -10
- package/out/_next/static/chunks/0v7odmyxhwxk9.js +0 -5
- package/out/_next/static/chunks/0vaop4ncta92i.js +0 -43
- package/out/_next/static/chunks/0vef8~~ul~q~3.js +0 -188
- package/out/_next/static/chunks/0vjviijon1cf_.js +0 -227
- package/out/_next/static/chunks/0vo3lqvc1gnao.js +0 -1
- package/out/_next/static/chunks/0vqde~70jg4mp.js +0 -13
- package/out/_next/static/chunks/0w_lpiygl_gbj.js +0 -51
- package/out/_next/static/chunks/0wm9vrqp0f2-g.js +0 -1
- package/out/_next/static/chunks/0wt4fkc59wtk~.js +0 -1
- package/out/_next/static/chunks/0x0ro0p0oede-.js +0 -1
- package/out/_next/static/chunks/0x5~rk9ckvkzm.js +0 -5
- package/out/_next/static/chunks/0xa.gldl0ypuc.js +0 -36
- package/out/_next/static/chunks/0xyz4eb8oj14e.js +0 -32
- package/out/_next/static/chunks/0x~m529wi_q8r.js +0 -807
- package/out/_next/static/chunks/0ygzo.kyf038-.js +0 -13
- package/out/_next/static/chunks/0z5_-ukry36hl.js +0 -905
- package/out/_next/static/chunks/0z69nmy7s-zha.js +0 -10
- package/out/_next/static/chunks/0zcy4ll048jyy.js +0 -13
- package/out/_next/static/chunks/0zpa9vt2u_r06.js +0 -14
- package/out/_next/static/chunks/0zsl0gp2-m_8s.js +0 -1
- package/out/_next/static/chunks/0zw1-wa39f8lg.js +0 -1
- package/out/_next/static/chunks/0z~lvtnl1p.em.js +0 -78
- package/out/_next/static/chunks/0~4r9ol9.3i_l.js +0 -46
- package/out/_next/static/chunks/0~4s5vi61p7ev.js +0 -291
- package/out/_next/static/chunks/0~6ud_t-945ch.js +0 -288
- package/out/_next/static/chunks/0~mh5ybxo9nf2.js +0 -19
- package/out/_next/static/chunks/0~zg_~~subg_x.js +0 -1
- package/out/_next/static/chunks/10.uqlra33~68.js +0 -13
- package/out/_next/static/chunks/10g0ipk~-ofy6.js +0 -20
- package/out/_next/static/chunks/10h4imeqlg217.js +0 -8
- package/out/_next/static/chunks/10jiudk1sj2jm.js +0 -14
- package/out/_next/static/chunks/10kcfk2uu1e6x.js +0 -73
- package/out/_next/static/chunks/10pv9vc9myzuy.js +0 -58
- package/out/_next/static/chunks/11d00p~.l1k_u.js +0 -8
- package/out/_next/static/chunks/11lx7_qu.04js.js +0 -596
- package/out/_next/static/chunks/11svm4d1gbpg3.js +0 -13
- package/out/_next/static/chunks/11xvbwibrxg70.js +0 -44
- package/out/_next/static/chunks/12_-fnbe.fpy3.js +0 -142
- package/out/_next/static/chunks/12_5sds1suvhm.js +0 -13
- package/out/_next/static/chunks/12eo~x2_f0n1c.js +0 -1
- package/out/_next/static/chunks/131o1ib1p4q0~.js +0 -807
- package/out/_next/static/chunks/13azvhnsuoq~i.js +0 -193
- package/out/_next/static/chunks/13qkehmx~~nca.js +0 -1
- package/out/_next/static/chunks/13xo605mvuvr..js +0 -137
- package/out/_next/static/chunks/14-js791sn0n..js +0 -90
- package/out/_next/static/chunks/149uwpe4mqt~4.js +0 -3
- package/out/_next/static/chunks/152e33k3zn_7h.js +0 -13
- package/out/_next/static/chunks/156o0mg9e~c1z.js +0 -135
- package/out/_next/static/chunks/15946_7~ym9mj.js +0 -1
- package/out/_next/static/chunks/15im3g6.ezb86.js +0 -16
- package/out/_next/static/chunks/167enz~evud8u.js +0 -1
- package/out/_next/static/chunks/16dxg.m0iyhff.js +0 -20
- package/out/_next/static/chunks/16e76-izprx_3.js +0 -60
- package/out/_next/static/chunks/17556jivokcgt.js +0 -13
- package/out/_next/static/chunks/17831iuhggap-.js +0 -5
- package/out/_next/static/chunks/17lq99ack-rqn.js +0 -7
- package/out/_next/static/chunks/1801hoawv7tvj.js +0 -209
- package/out/_next/static/chunks/turbopack-0-f1h~_vf~hgt.js +0 -1
- package/out/_next/static/chunks/turbopack-00gp6932c5-pc.js +0 -1
- package/out/_next/static/chunks/turbopack-00tplfce3sqmv.js +0 -1
- package/out/_next/static/chunks/turbopack-02xfqg-e5e5bq.js +0 -1
- package/out/_next/static/chunks/turbopack-033ew5zdp4sni.js +0 -1
- package/out/_next/static/chunks/turbopack-04ryg.qj6ce.e.js +0 -1
- package/out/_next/static/chunks/turbopack-05pr_j8b3qpck.js +0 -1
- package/out/_next/static/chunks/turbopack-05t73_ssb6_h5.js +0 -1
- package/out/_next/static/chunks/turbopack-06k1fv3edi.oc.js +0 -1
- package/out/_next/static/chunks/turbopack-06s9wk6xrnhe..js +0 -1
- package/out/_next/static/chunks/turbopack-07pf350usbyrn.js +0 -1
- package/out/_next/static/chunks/turbopack-07qx6il~q8zvj.js +0 -1
- package/out/_next/static/chunks/turbopack-093c3g8x0fud~.js +0 -1
- package/out/_next/static/chunks/turbopack-09mkh-~o1m0t4.js +0 -1
- package/out/_next/static/chunks/turbopack-0_6hyjgtzvvlt.js +0 -1
- package/out/_next/static/chunks/turbopack-0_jrb8zv4u-h5.js +0 -1
- package/out/_next/static/chunks/turbopack-0_z4clx8_mihg.js +0 -1
- package/out/_next/static/chunks/turbopack-0_~3azjxcbh7b.js +0 -1
- package/out/_next/static/chunks/turbopack-0acoq2sfyoi9y.js +0 -1
- package/out/_next/static/chunks/turbopack-0ce310hugu4ud.js +0 -1
- package/out/_next/static/chunks/turbopack-0cq29kq0j_4v~.js +0 -1
- package/out/_next/static/chunks/turbopack-0e-cncqz58fjt.js +0 -1
- package/out/_next/static/chunks/turbopack-0e2su8irrrxe9.js +0 -1
- package/out/_next/static/chunks/turbopack-0e8f.eohopo8i.js +0 -1
- package/out/_next/static/chunks/turbopack-0ek~cn8gmycju.js +0 -1
- package/out/_next/static/chunks/turbopack-0eywiuu9zzv~v.js +0 -1
- package/out/_next/static/chunks/turbopack-0ft2eo1uoq84f.js +0 -1
- package/out/_next/static/chunks/turbopack-0h0v60mhtl8e5.js +0 -1
- package/out/_next/static/chunks/turbopack-0hd7gd_hw0ffd.js +0 -1
- package/out/_next/static/chunks/turbopack-0ho~reia368_n.js +0 -1
- package/out/_next/static/chunks/turbopack-0hs67a4-408yr.js +0 -1
- package/out/_next/static/chunks/turbopack-0hzo_yuvuoq4p.js +0 -1
- package/out/_next/static/chunks/turbopack-0iqen9zbwhwwt.js +0 -1
- package/out/_next/static/chunks/turbopack-0lse_458kpvoc.js +0 -1
- package/out/_next/static/chunks/turbopack-0m802fcmg9zeo.js +0 -1
- package/out/_next/static/chunks/turbopack-0mh8jqpakiu6t.js +0 -1
- package/out/_next/static/chunks/turbopack-0n7uk~in3~kz5.js +0 -1
- package/out/_next/static/chunks/turbopack-0oq4yqp_mwlp8.js +0 -1
- package/out/_next/static/chunks/turbopack-0p8.m9z07pk0d.js +0 -1
- package/out/_next/static/chunks/turbopack-0q35m3rl2~7_w.js +0 -1
- package/out/_next/static/chunks/turbopack-0qj_d90z9-.xb.js +0 -1
- package/out/_next/static/chunks/turbopack-0rw3antw3c5q1.js +0 -1
- package/out/_next/static/chunks/turbopack-0s1w5b4s~tq0a.js +0 -1
- package/out/_next/static/chunks/turbopack-0s3brlp4-qpvy.js +0 -1
- package/out/_next/static/chunks/turbopack-0ssu8b8ns4wgj.js +0 -1
- package/out/_next/static/chunks/turbopack-0txlw7w4nbwom.js +0 -1
- package/out/_next/static/chunks/turbopack-0umaqu4ffby0g.js +0 -1
- package/out/_next/static/chunks/turbopack-0upagoxw-k-s-.js +0 -1
- package/out/_next/static/chunks/turbopack-0v97f616jctw_.js +0 -1
- package/out/_next/static/chunks/turbopack-0vborwvkaogp3.js +0 -1
- package/out/_next/static/chunks/turbopack-0vii195vc_rhx.js +0 -1
- package/out/_next/static/chunks/turbopack-0vy4m9hkmjj~..js +0 -1
- package/out/_next/static/chunks/turbopack-0wkwlz_hsol74.js +0 -1
- package/out/_next/static/chunks/turbopack-0w~j_hagmzb-9.js +0 -1
- package/out/_next/static/chunks/turbopack-0xe-7k8uoudaf.js +0 -1
- package/out/_next/static/chunks/turbopack-107_r~te8y84z.js +0 -1
- package/out/_next/static/chunks/turbopack-10m1bv2pqkdnu.js +0 -1
- package/out/_next/static/chunks/turbopack-11b3cci1vf3sv.js +0 -1
- package/out/_next/static/chunks/turbopack-11bncwch._hz4.js +0 -1
- package/out/_next/static/chunks/turbopack-11f~mh1t1pbfv.js +0 -1
- package/out/_next/static/chunks/turbopack-14fqn-ie4g30t.js +0 -1
- package/out/_next/static/chunks/turbopack-151-hh8klk1hk.js +0 -1
- package/out/_next/static/chunks/turbopack-16yza259goc47.js +0 -1
- 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/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1121 @@
|
|
|
1
|
+
import { parseUniqueId, parseSlug } from '../chunk-IXBMHOB5.js';
|
|
2
|
+
import { useApp_default } from '../chunk-BGCKJQGS.js';
|
|
3
|
+
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
4
|
+
import '../chunk-ELPURWDC.js';
|
|
5
|
+
import { FilterFragment_default } from '../chunk-OKGJ6HDE.js';
|
|
6
|
+
import { parseMeta_default } from '../chunk-YO6PT7KD.js';
|
|
7
|
+
import '../chunk-RAQV2GYF.js';
|
|
8
|
+
import '../chunk-54DKBWXV.js';
|
|
9
|
+
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-45H2WVIC.js';
|
|
10
|
+
import '../chunk-UFYR5WZT.js';
|
|
11
|
+
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
12
|
+
import '../chunk-4VNS5WPM.js';
|
|
13
|
+
import { gql } from '@apollo/client';
|
|
14
|
+
import { useMutation, useQuery } from '@apollo/client/react';
|
|
15
|
+
|
|
16
|
+
var AddAssortmentFilterMutation = gql`
|
|
17
|
+
mutation AddAssortmentFilter(
|
|
18
|
+
$assortmentId: ID!
|
|
19
|
+
$filterId: ID!
|
|
20
|
+
$tags: [LowerCaseString!]
|
|
21
|
+
) {
|
|
22
|
+
addAssortmentFilter(
|
|
23
|
+
assortmentId: $assortmentId
|
|
24
|
+
filterId: $filterId
|
|
25
|
+
tags: $tags
|
|
26
|
+
) {
|
|
27
|
+
_id
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
var useAddAssortmentFilter = () => {
|
|
32
|
+
const [addAssortmentFilterMutation] = useMutation(AddAssortmentFilterMutation);
|
|
33
|
+
const addAssortmentFilter = async ({
|
|
34
|
+
assortmentId,
|
|
35
|
+
filterId,
|
|
36
|
+
tags
|
|
37
|
+
}) => {
|
|
38
|
+
return addAssortmentFilterMutation({
|
|
39
|
+
variables: { assortmentId, filterId, tags },
|
|
40
|
+
refetchQueries: ["AssortmentFilters"]
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
addAssortmentFilter
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
var useAddAssortmentFilter_default = useAddAssortmentFilter;
|
|
48
|
+
var AddAssortmentLinkMutation = gql`
|
|
49
|
+
mutation AddAssortmentLink(
|
|
50
|
+
$parentAssortmentId: ID!
|
|
51
|
+
$childAssortmentId: ID!
|
|
52
|
+
$tags: [LowerCaseString!]
|
|
53
|
+
) {
|
|
54
|
+
addAssortmentLink(
|
|
55
|
+
parentAssortmentId: $parentAssortmentId
|
|
56
|
+
childAssortmentId: $childAssortmentId
|
|
57
|
+
tags: $tags
|
|
58
|
+
) {
|
|
59
|
+
_id
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
var useAddAssortmentLink = () => {
|
|
64
|
+
const [addAssortmentLinkMutation] = useMutation(AddAssortmentLinkMutation);
|
|
65
|
+
const addAssortmentLink = async ({
|
|
66
|
+
parentAssortmentId,
|
|
67
|
+
childAssortmentId,
|
|
68
|
+
tags
|
|
69
|
+
}) => {
|
|
70
|
+
return addAssortmentLinkMutation({
|
|
71
|
+
variables: { parentAssortmentId, childAssortmentId, tags },
|
|
72
|
+
refetchQueries: ["AssortmentLinks"]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
addAssortmentLink
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
var useAddAssortmentLink_default = useAddAssortmentLink;
|
|
80
|
+
var PrepareAssortmentMediaUploadMutation = gql`
|
|
81
|
+
mutation PrepareAssortmentMediaUpload(
|
|
82
|
+
$mediaName: String!
|
|
83
|
+
$assortmentId: ID!
|
|
84
|
+
) {
|
|
85
|
+
prepareAssortmentMediaUpload(
|
|
86
|
+
mediaName: $mediaName
|
|
87
|
+
assortmentId: $assortmentId
|
|
88
|
+
) {
|
|
89
|
+
_id
|
|
90
|
+
putURL
|
|
91
|
+
expires
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
var useAddAssortmentMedia = () => {
|
|
96
|
+
const [prepareAssortmentMediaUploadMutation] = useMutation(PrepareAssortmentMediaUploadMutation);
|
|
97
|
+
const { confirmMediaUpload } = useConfirmMediaUpload_default({
|
|
98
|
+
refetchQueries: ["Assortment"]
|
|
99
|
+
});
|
|
100
|
+
const addAssortmentMedia = async ({ assortmentId, media }) => {
|
|
101
|
+
const { data } = await prepareAssortmentMediaUploadMutation({
|
|
102
|
+
variables: { assortmentId, mediaName: media.name }
|
|
103
|
+
});
|
|
104
|
+
const { prepareAssortmentMediaUpload } = data;
|
|
105
|
+
await PUTMedia_default(media, prepareAssortmentMediaUpload.putURL);
|
|
106
|
+
await confirmMediaUpload({
|
|
107
|
+
mediaUploadTicketId: prepareAssortmentMediaUpload._id,
|
|
108
|
+
size: media?.size,
|
|
109
|
+
type: media?.type
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
return {
|
|
113
|
+
addAssortmentMedia
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
var useAddAssortmentMedia_default = useAddAssortmentMedia;
|
|
117
|
+
var AddAssortmentProductMutation = gql`
|
|
118
|
+
mutation AddAssortmentProduct(
|
|
119
|
+
$assortmentId: ID!
|
|
120
|
+
$productId: ID!
|
|
121
|
+
$tags: [LowerCaseString!]
|
|
122
|
+
) {
|
|
123
|
+
addAssortmentProduct(
|
|
124
|
+
assortmentId: $assortmentId
|
|
125
|
+
productId: $productId
|
|
126
|
+
tags: $tags
|
|
127
|
+
) {
|
|
128
|
+
_id
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
var useAddAssortmentProduct = () => {
|
|
133
|
+
const [addAssortmentProductMutation] = useMutation(AddAssortmentProductMutation);
|
|
134
|
+
const addAssortmentProduct = async ({
|
|
135
|
+
productId,
|
|
136
|
+
assortmentId,
|
|
137
|
+
tags
|
|
138
|
+
}) => {
|
|
139
|
+
return addAssortmentProductMutation({
|
|
140
|
+
variables: { productId, assortmentId, tags },
|
|
141
|
+
refetchQueries: ["AssortmentProducts"]
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
return {
|
|
145
|
+
addAssortmentProduct
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
var useAddAssortmentProduct_default = useAddAssortmentProduct;
|
|
149
|
+
var AssortmentFragment = gql`
|
|
150
|
+
fragment AssortmentFragment on Assortment {
|
|
151
|
+
_id
|
|
152
|
+
isActive
|
|
153
|
+
created
|
|
154
|
+
updated
|
|
155
|
+
sequence
|
|
156
|
+
isRoot
|
|
157
|
+
tags
|
|
158
|
+
texts(forceLocale: $forceLocale) {
|
|
159
|
+
_id
|
|
160
|
+
slug
|
|
161
|
+
title
|
|
162
|
+
subtitle
|
|
163
|
+
description
|
|
164
|
+
}
|
|
165
|
+
childrenCount
|
|
166
|
+
media {
|
|
167
|
+
_id
|
|
168
|
+
tags
|
|
169
|
+
file {
|
|
170
|
+
_id
|
|
171
|
+
url
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
var AssortmentFragment_default = AssortmentFragment;
|
|
177
|
+
|
|
178
|
+
// src/modules/assortment/hooks/useAssortment.ts
|
|
179
|
+
var GetAssortmentQuery = (inlineFragment = "") => gql`
|
|
180
|
+
query Assortment($assortmentId: ID, $slug: String, $forceLocale: Locale) {
|
|
181
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
182
|
+
...AssortmentFragment
|
|
183
|
+
${inlineFragment}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
${AssortmentFragment_default}
|
|
187
|
+
`;
|
|
188
|
+
var useAssortment = ({
|
|
189
|
+
assortmentId: id = null,
|
|
190
|
+
slug = null
|
|
191
|
+
} = {}) => {
|
|
192
|
+
const parsedId = parseUniqueId(slug);
|
|
193
|
+
const { customProperties, hydrateFragment } = useUnchainedContext_default();
|
|
194
|
+
const { selectedLocale } = useApp_default();
|
|
195
|
+
const { data, loading, error } = useQuery(
|
|
196
|
+
GetAssortmentQuery(customProperties?.Assortment),
|
|
197
|
+
{
|
|
198
|
+
skip: !id && !slug,
|
|
199
|
+
variables: {
|
|
200
|
+
assortmentId: id || parsedId,
|
|
201
|
+
forceLocale: selectedLocale
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
const assortment = data?.assortment;
|
|
206
|
+
const extendedData = hydrateFragment(
|
|
207
|
+
customProperties?.Assortment,
|
|
208
|
+
assortment
|
|
209
|
+
);
|
|
210
|
+
return {
|
|
211
|
+
loading,
|
|
212
|
+
error,
|
|
213
|
+
assortment,
|
|
214
|
+
extendedData
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
var useAssortment_default = useAssortment;
|
|
218
|
+
var AssortmentChildrenFragment = gql`
|
|
219
|
+
fragment AssortmentChildrenFragment on Assortment {
|
|
220
|
+
_id
|
|
221
|
+
texts {
|
|
222
|
+
_id
|
|
223
|
+
slug
|
|
224
|
+
title
|
|
225
|
+
subtitle
|
|
226
|
+
}
|
|
227
|
+
childrenCount
|
|
228
|
+
}
|
|
229
|
+
`;
|
|
230
|
+
var AssortmentChildrenFragment_default = AssortmentChildrenFragment;
|
|
231
|
+
|
|
232
|
+
// src/modules/assortment/hooks/useAssortmentChildren.ts
|
|
233
|
+
var AssortmentChildrenQuery = gql`
|
|
234
|
+
query AssortmentChildren(
|
|
235
|
+
$slugs: [String!]
|
|
236
|
+
$includeInactive: Boolean
|
|
237
|
+
$includeLeaves: Boolean
|
|
238
|
+
) {
|
|
239
|
+
assortments(
|
|
240
|
+
slugs: $slugs
|
|
241
|
+
includeInactive: $includeInactive
|
|
242
|
+
includeLeaves: $includeLeaves
|
|
243
|
+
) {
|
|
244
|
+
...AssortmentChildrenFragment
|
|
245
|
+
children {
|
|
246
|
+
...AssortmentChildrenFragment
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
${AssortmentChildrenFragment_default}
|
|
251
|
+
`;
|
|
252
|
+
var useAssortmentChildren = ({
|
|
253
|
+
slugs,
|
|
254
|
+
includeInactive = false,
|
|
255
|
+
includeLeaves = false,
|
|
256
|
+
forceLocale
|
|
257
|
+
}) => {
|
|
258
|
+
const normalizedSlug = slugs?.map((slug) => parseSlug(slug));
|
|
259
|
+
const { data, loading, error } = useQuery(
|
|
260
|
+
AssortmentChildrenQuery,
|
|
261
|
+
{
|
|
262
|
+
variables: {
|
|
263
|
+
slugs: normalizedSlug,
|
|
264
|
+
includeInactive,
|
|
265
|
+
includeLeaves
|
|
266
|
+
},
|
|
267
|
+
context: {
|
|
268
|
+
headers: {
|
|
269
|
+
forceLocale
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
const assortments = data?.assortments || [];
|
|
275
|
+
return { assortments, loading, error };
|
|
276
|
+
};
|
|
277
|
+
var useAssortmentChildren_default = useAssortmentChildren;
|
|
278
|
+
var AssortmentFiltersQuery = gql`
|
|
279
|
+
query AssortmentFilters($assortmentId: ID, $slug: String) {
|
|
280
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
281
|
+
_id
|
|
282
|
+
filterAssignments {
|
|
283
|
+
_id
|
|
284
|
+
sortKey
|
|
285
|
+
tags
|
|
286
|
+
filter {
|
|
287
|
+
...FilterFragment
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
${FilterFragment_default}
|
|
293
|
+
`;
|
|
294
|
+
var useAssortmentFilters = ({
|
|
295
|
+
assortmentId: id = null,
|
|
296
|
+
slug = null
|
|
297
|
+
} = {}) => {
|
|
298
|
+
const parsedId = parseUniqueId(slug);
|
|
299
|
+
const { data, loading, error } = useQuery(
|
|
300
|
+
AssortmentFiltersQuery,
|
|
301
|
+
{
|
|
302
|
+
skip: !id && !parsedId,
|
|
303
|
+
variables: {
|
|
304
|
+
assortmentId: id || parsedId
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
const assortment = data?.assortment;
|
|
309
|
+
const assortmentFilters = assortment?.filterAssignments || [];
|
|
310
|
+
return {
|
|
311
|
+
loading,
|
|
312
|
+
error,
|
|
313
|
+
assortmentFilters
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
var useAssortmentFilters_default = useAssortmentFilters;
|
|
317
|
+
var AssortmentLinksQuery = gql`
|
|
318
|
+
query AssortmentLinks(
|
|
319
|
+
$assortmentId: ID
|
|
320
|
+
$slug: String
|
|
321
|
+
$forceLocale: Locale
|
|
322
|
+
) {
|
|
323
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
324
|
+
_id
|
|
325
|
+
linkedAssortments {
|
|
326
|
+
_id
|
|
327
|
+
sortKey
|
|
328
|
+
parent {
|
|
329
|
+
...AssortmentFragment
|
|
330
|
+
}
|
|
331
|
+
child {
|
|
332
|
+
...AssortmentFragment
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
${AssortmentFragment_default}
|
|
338
|
+
`;
|
|
339
|
+
var useAssortmentLinks = ({ assortmentId: id = null, slug = null } = {}) => {
|
|
340
|
+
const parsedId = parseUniqueId(slug);
|
|
341
|
+
const { selectedLocale } = useApp_default();
|
|
342
|
+
const { data, loading, error } = useQuery(
|
|
343
|
+
AssortmentLinksQuery,
|
|
344
|
+
{
|
|
345
|
+
skip: !id && !parsedId,
|
|
346
|
+
variables: {
|
|
347
|
+
assortmentId: id || parsedId,
|
|
348
|
+
forceLocale: selectedLocale
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
const assortment = data?.assortment;
|
|
353
|
+
const linkedAssortments = assortment?.linkedAssortments || [];
|
|
354
|
+
return {
|
|
355
|
+
loading,
|
|
356
|
+
error,
|
|
357
|
+
linkedAssortments
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
var useAssortmentLinks_default = useAssortmentLinks;
|
|
361
|
+
var AssortmentMediaQuery = gql`
|
|
362
|
+
query AssortmentMedia($assortmentId: ID, $slug: String) {
|
|
363
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
364
|
+
_id
|
|
365
|
+
media {
|
|
366
|
+
_id
|
|
367
|
+
tags
|
|
368
|
+
texts {
|
|
369
|
+
_id
|
|
370
|
+
locale
|
|
371
|
+
title
|
|
372
|
+
subtitle
|
|
373
|
+
}
|
|
374
|
+
file {
|
|
375
|
+
_id
|
|
376
|
+
url
|
|
377
|
+
name
|
|
378
|
+
size
|
|
379
|
+
type
|
|
380
|
+
}
|
|
381
|
+
sortKey
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
var useAssortmentMedia = ({
|
|
387
|
+
assortmentId: id = null,
|
|
388
|
+
slug = null
|
|
389
|
+
} = {}) => {
|
|
390
|
+
const parsedId = parseUniqueId(slug);
|
|
391
|
+
const { data, loading, error } = useQuery(
|
|
392
|
+
AssortmentMediaQuery,
|
|
393
|
+
{
|
|
394
|
+
skip: !id && !parsedId,
|
|
395
|
+
variables: {
|
|
396
|
+
assortmentId: id || parsedId
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
return {
|
|
401
|
+
loading,
|
|
402
|
+
error,
|
|
403
|
+
assortmentMedia: data?.assortment?.media || []
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
var useAssortmentMedia_default = useAssortmentMedia;
|
|
407
|
+
var AssortmentPathsQuery = gql`
|
|
408
|
+
query AssortmentPaths($assortmentId: ID!) {
|
|
409
|
+
assortment(assortmentId: $assortmentId) {
|
|
410
|
+
assortmentPaths {
|
|
411
|
+
links {
|
|
412
|
+
assortmentId
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
`;
|
|
418
|
+
var useAssortmentPaths = ({
|
|
419
|
+
assortmentId
|
|
420
|
+
}) => {
|
|
421
|
+
const { data, loading, error } = useQuery(
|
|
422
|
+
AssortmentPathsQuery,
|
|
423
|
+
{
|
|
424
|
+
variables: {
|
|
425
|
+
assortmentId
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
);
|
|
429
|
+
const assortmentsPaths = (data?.assortment?.assortmentPaths || [])?.flatMap(
|
|
430
|
+
({ links }) => links
|
|
431
|
+
);
|
|
432
|
+
return { assortmentsPaths, loading, error };
|
|
433
|
+
};
|
|
434
|
+
var useAssortmentPaths_default = useAssortmentPaths;
|
|
435
|
+
var AssortmentProductsQuery = gql`
|
|
436
|
+
query AssortmentProducts(
|
|
437
|
+
$assortmentId: ID
|
|
438
|
+
$slug: String
|
|
439
|
+
$forceLocale: Locale
|
|
440
|
+
) {
|
|
441
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
442
|
+
_id
|
|
443
|
+
productAssignments {
|
|
444
|
+
_id
|
|
445
|
+
sortKey
|
|
446
|
+
tags
|
|
447
|
+
product {
|
|
448
|
+
...ProductBriefFragment
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
${ProductBriefFragment_default}
|
|
454
|
+
`;
|
|
455
|
+
var useAssortmentProducts = ({
|
|
456
|
+
assortmentId: id = null,
|
|
457
|
+
slug = null
|
|
458
|
+
} = {}) => {
|
|
459
|
+
const { selectedLocale } = useApp_default();
|
|
460
|
+
const parsedId = parseUniqueId(slug);
|
|
461
|
+
const { data, loading, error } = useQuery(
|
|
462
|
+
AssortmentProductsQuery,
|
|
463
|
+
{
|
|
464
|
+
skip: !id && !parsedId,
|
|
465
|
+
variables: {
|
|
466
|
+
assortmentId: id || parsedId,
|
|
467
|
+
forceLocale: selectedLocale
|
|
468
|
+
},
|
|
469
|
+
context: {
|
|
470
|
+
headers: {
|
|
471
|
+
forceLocale: selectedLocale
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
);
|
|
476
|
+
const assortment = data?.assortment;
|
|
477
|
+
const linkedProducts = assortment?.productAssignments || [];
|
|
478
|
+
return {
|
|
479
|
+
loading,
|
|
480
|
+
error,
|
|
481
|
+
linkedProducts
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
var useAssortmentProducts_default = useAssortmentProducts;
|
|
485
|
+
var AssortmentsQuery = gql`
|
|
486
|
+
query Assortments(
|
|
487
|
+
$queryString: String
|
|
488
|
+
$tags: [LowerCaseString!]
|
|
489
|
+
$slugs: [String!]
|
|
490
|
+
$limit: Int
|
|
491
|
+
$offset: Int
|
|
492
|
+
$includeInactive: Boolean
|
|
493
|
+
$includeLeaves: Boolean
|
|
494
|
+
$sort: [SortOptionInput!]
|
|
495
|
+
$forceLocale: Locale
|
|
496
|
+
) {
|
|
497
|
+
assortments(
|
|
498
|
+
queryString: $queryString
|
|
499
|
+
tags: $tags
|
|
500
|
+
slugs: $slugs
|
|
501
|
+
limit: $limit
|
|
502
|
+
offset: $offset
|
|
503
|
+
includeInactive: $includeInactive
|
|
504
|
+
includeLeaves: $includeLeaves
|
|
505
|
+
sort: $sort
|
|
506
|
+
) {
|
|
507
|
+
...AssortmentFragment
|
|
508
|
+
linkedAssortments {
|
|
509
|
+
child {
|
|
510
|
+
_id
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
assortmentsCount(
|
|
515
|
+
tags: $tags
|
|
516
|
+
slugs: $slugs
|
|
517
|
+
includeInactive: $includeInactive
|
|
518
|
+
includeLeaves: $includeLeaves
|
|
519
|
+
queryString: $queryString
|
|
520
|
+
)
|
|
521
|
+
}
|
|
522
|
+
${AssortmentFragment_default}
|
|
523
|
+
`;
|
|
524
|
+
var useAssortments = ({
|
|
525
|
+
queryString = "",
|
|
526
|
+
tags = null,
|
|
527
|
+
slugs = null,
|
|
528
|
+
limit = 20,
|
|
529
|
+
offset = 0,
|
|
530
|
+
includeInactive = true,
|
|
531
|
+
includeLeaves = false,
|
|
532
|
+
sort: sortOptions = [],
|
|
533
|
+
forceLocale = ""
|
|
534
|
+
} = {}) => {
|
|
535
|
+
const { data, loading, error, fetchMore, client } = useQuery(AssortmentsQuery, {
|
|
536
|
+
variables: {
|
|
537
|
+
queryString,
|
|
538
|
+
tags,
|
|
539
|
+
slugs: slugs || null,
|
|
540
|
+
limit,
|
|
541
|
+
offset,
|
|
542
|
+
includeInactive,
|
|
543
|
+
includeLeaves,
|
|
544
|
+
sort: sortOptions.length ? sortOptions : [{ key: "sequence", value: "ASC" }],
|
|
545
|
+
forceLocale
|
|
546
|
+
},
|
|
547
|
+
context: {
|
|
548
|
+
headers: { forceLocale }
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
const assortments = data?.assortments || [];
|
|
552
|
+
const assortmentsCount = data?.assortmentsCount;
|
|
553
|
+
const hasMore = assortments?.length < assortmentsCount;
|
|
554
|
+
const loadMore = () => {
|
|
555
|
+
fetchMore({
|
|
556
|
+
variables: { offset: assortments?.length }
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
return {
|
|
560
|
+
loading,
|
|
561
|
+
error,
|
|
562
|
+
assortmentsCount,
|
|
563
|
+
hasMore,
|
|
564
|
+
assortments: data?.assortments || [],
|
|
565
|
+
loadMore,
|
|
566
|
+
client
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
var useAssortments_default = useAssortments;
|
|
570
|
+
var AssortmentsCountQuery = gql`
|
|
571
|
+
query AssortmentsCount(
|
|
572
|
+
$queryString: String
|
|
573
|
+
$tags: [LowerCaseString!]
|
|
574
|
+
$includeInactive: Boolean
|
|
575
|
+
$includeLeaves: Boolean
|
|
576
|
+
) {
|
|
577
|
+
assortmentsCount(
|
|
578
|
+
tags: $tags
|
|
579
|
+
includeInactive: $includeInactive
|
|
580
|
+
includeLeaves: $includeLeaves
|
|
581
|
+
queryString: $queryString
|
|
582
|
+
)
|
|
583
|
+
}
|
|
584
|
+
`;
|
|
585
|
+
var useAssortmentsCount = ({
|
|
586
|
+
queryString = "",
|
|
587
|
+
tags = null,
|
|
588
|
+
includeInactive = true,
|
|
589
|
+
includeLeaves = false
|
|
590
|
+
}) => {
|
|
591
|
+
const { data, loading, error } = useQuery(AssortmentsCountQuery, {
|
|
592
|
+
errorPolicy: "all",
|
|
593
|
+
variables: {
|
|
594
|
+
queryString,
|
|
595
|
+
tags,
|
|
596
|
+
includeInactive,
|
|
597
|
+
includeLeaves
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
const assortmentsCount = data?.assortmentsCount;
|
|
601
|
+
return {
|
|
602
|
+
loading,
|
|
603
|
+
error,
|
|
604
|
+
assortmentsCount
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
var useAssortmentsCount_default = useAssortmentsCount;
|
|
608
|
+
var CreateAssortmentMutation = gql`
|
|
609
|
+
mutation CreateAssortment(
|
|
610
|
+
$assortment: CreateAssortmentInput!
|
|
611
|
+
$texts: [AssortmentTextInput!]
|
|
612
|
+
) {
|
|
613
|
+
createAssortment(assortment: $assortment, texts: $texts) {
|
|
614
|
+
_id
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
`;
|
|
618
|
+
var useCreateAssortment = () => {
|
|
619
|
+
const [createAssortmentMutation, { data, error, loading }] = useMutation(CreateAssortmentMutation);
|
|
620
|
+
const createAssortment = async ({
|
|
621
|
+
isRoot = false,
|
|
622
|
+
tags = [],
|
|
623
|
+
texts
|
|
624
|
+
}) => {
|
|
625
|
+
return createAssortmentMutation({
|
|
626
|
+
variables: { assortment: { isRoot, tags }, texts },
|
|
627
|
+
refetchQueries: [
|
|
628
|
+
"Assortments",
|
|
629
|
+
"TranslatedAssortmentTexts",
|
|
630
|
+
"ShopStatus",
|
|
631
|
+
"ShopInfo"
|
|
632
|
+
]
|
|
633
|
+
});
|
|
634
|
+
};
|
|
635
|
+
const newAssortment = data?.createAssortment;
|
|
636
|
+
return {
|
|
637
|
+
createAssortment,
|
|
638
|
+
loading,
|
|
639
|
+
newAssortment,
|
|
640
|
+
error
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
var useCreateAssortment_default = useCreateAssortment;
|
|
644
|
+
|
|
645
|
+
// src/modules/assortment/hooks/usePrepareAssortmentImport.ts
|
|
646
|
+
var normalizeAssortmentContent = (row) => {
|
|
647
|
+
const content = {};
|
|
648
|
+
const textPrefix = "texts.";
|
|
649
|
+
Object.entries(row).forEach(([key, value]) => {
|
|
650
|
+
if (!key.startsWith(textPrefix)) return;
|
|
651
|
+
const [, locale, field] = key.split(".");
|
|
652
|
+
content[locale] ||= {};
|
|
653
|
+
content[locale][field] = value || "";
|
|
654
|
+
});
|
|
655
|
+
Object.keys(content).forEach((locale) => {
|
|
656
|
+
if (!Object.values(content[locale]).every((v) => !v)) {
|
|
657
|
+
delete content[locale];
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
return Object.keys(content).length ? content : null;
|
|
661
|
+
};
|
|
662
|
+
var assortmentMapper = (row) => {
|
|
663
|
+
const content = normalizeAssortmentContent(row);
|
|
664
|
+
const meta = parseMeta_default(row["meta"]);
|
|
665
|
+
return {
|
|
666
|
+
_id: row["_id"] || void 0,
|
|
667
|
+
sequence: typeof row["sequence"] === "string" ? parseInt(row["sequence"] || "0", 10) : row["sequence"] || 0,
|
|
668
|
+
isActive: row["isActive"] === "true",
|
|
669
|
+
isRoot: row["isRoot"] === "true",
|
|
670
|
+
meta,
|
|
671
|
+
tags: row["tags"] ? row["tags"].split(";") : [],
|
|
672
|
+
content
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
var buildAssortmentEvents = ({
|
|
676
|
+
children,
|
|
677
|
+
products,
|
|
678
|
+
filters,
|
|
679
|
+
...assortment
|
|
680
|
+
}) => {
|
|
681
|
+
return {
|
|
682
|
+
entity: "assortment",
|
|
683
|
+
operation: "CREATE",
|
|
684
|
+
payload: {
|
|
685
|
+
_id: assortment._id,
|
|
686
|
+
specification: {
|
|
687
|
+
...assortment
|
|
688
|
+
},
|
|
689
|
+
products,
|
|
690
|
+
filters,
|
|
691
|
+
children
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
var usePrepareAssortmentImport = () => {
|
|
696
|
+
const prepareAssortmentImport = async ({
|
|
697
|
+
assortmentCSV,
|
|
698
|
+
assortmentProductsCSV,
|
|
699
|
+
assortmentChildrenCSV,
|
|
700
|
+
assortmentFiltersCSV
|
|
701
|
+
}) => {
|
|
702
|
+
return assortmentCSV.map((assortment) => {
|
|
703
|
+
const assortmentProducts = (assortmentProductsCSV || [])?.filter(
|
|
704
|
+
(p) => p.assortmentId === assortment._id
|
|
705
|
+
);
|
|
706
|
+
const assortmentLinks = (assortmentChildrenCSV || [])?.filter(
|
|
707
|
+
(l) => l.assortmentId === assortment._id
|
|
708
|
+
);
|
|
709
|
+
const assortmentFilters = (assortmentFiltersCSV || [])?.filter(
|
|
710
|
+
(f) => f.assortmentId === assortment._id
|
|
711
|
+
);
|
|
712
|
+
let children = void 0;
|
|
713
|
+
let filters = void 0;
|
|
714
|
+
let products = void 0;
|
|
715
|
+
if (assortmentProducts.length) {
|
|
716
|
+
products = assortmentProducts.map(
|
|
717
|
+
({ productId, tags, sortKey, _id }) => ({
|
|
718
|
+
productId,
|
|
719
|
+
tags: tags ? tags.split(";") : [],
|
|
720
|
+
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
721
|
+
_id
|
|
722
|
+
})
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
if (assortmentLinks.length) {
|
|
726
|
+
children = assortmentLinks.map(
|
|
727
|
+
({ childAssortmentId, tags, sortKey, _id }) => ({
|
|
728
|
+
assortmentId: childAssortmentId,
|
|
729
|
+
tags: tags ? tags.split(";") : [],
|
|
730
|
+
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
731
|
+
_id
|
|
732
|
+
})
|
|
733
|
+
);
|
|
734
|
+
}
|
|
735
|
+
if (assortmentFilters.length) {
|
|
736
|
+
filters = assortmentFilters.map(({ filterId, tags, sortKey, _id }) => ({
|
|
737
|
+
filterId,
|
|
738
|
+
tags: tags ? tags.split(";") : [],
|
|
739
|
+
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
740
|
+
_id
|
|
741
|
+
}));
|
|
742
|
+
}
|
|
743
|
+
return buildAssortmentEvents({
|
|
744
|
+
...assortmentMapper(assortment),
|
|
745
|
+
filters,
|
|
746
|
+
products,
|
|
747
|
+
children
|
|
748
|
+
});
|
|
749
|
+
});
|
|
750
|
+
};
|
|
751
|
+
return { prepareAssortmentImport };
|
|
752
|
+
};
|
|
753
|
+
var usePrepareAssortmentImport_default = usePrepareAssortmentImport;
|
|
754
|
+
var RemoveAssortmentMutation = gql`
|
|
755
|
+
mutation RemoveAssortment($assortmentId: ID!) {
|
|
756
|
+
removeAssortment(assortmentId: $assortmentId) {
|
|
757
|
+
_id
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
`;
|
|
761
|
+
var useRemoveAssortment = () => {
|
|
762
|
+
const [removeAssortmentMutation] = useMutation(RemoveAssortmentMutation);
|
|
763
|
+
const removeAssortment = async ({
|
|
764
|
+
assortmentId
|
|
765
|
+
}) => {
|
|
766
|
+
return removeAssortmentMutation({
|
|
767
|
+
variables: { assortmentId },
|
|
768
|
+
refetchQueries: ["Assortments", "Assortment", "ShopStatus", "ShopInfo"]
|
|
769
|
+
});
|
|
770
|
+
};
|
|
771
|
+
return {
|
|
772
|
+
removeAssortment
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
var useRemoveAssortment_default = useRemoveAssortment;
|
|
776
|
+
var RemoveAssortmentFilterMutation = gql`
|
|
777
|
+
mutation RemoveAssortmentFilter($assortmentFilterId: ID!) {
|
|
778
|
+
removeAssortmentFilter(assortmentFilterId: $assortmentFilterId) {
|
|
779
|
+
_id
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
`;
|
|
783
|
+
var useRemoveAssortmentFilter = () => {
|
|
784
|
+
const [removeAssortmentFilterMutation] = useMutation(RemoveAssortmentFilterMutation);
|
|
785
|
+
const removeAssortmentFilter = async ({
|
|
786
|
+
assortmentFilterId
|
|
787
|
+
}) => {
|
|
788
|
+
return removeAssortmentFilterMutation({
|
|
789
|
+
variables: { assortmentFilterId },
|
|
790
|
+
refetchQueries: ["AssortmentFilters"]
|
|
791
|
+
});
|
|
792
|
+
};
|
|
793
|
+
return {
|
|
794
|
+
removeAssortmentFilter
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
var useRemoveAssortmentFilter_default = useRemoveAssortmentFilter;
|
|
798
|
+
var RemoveAssortmentLinkMutation = gql`
|
|
799
|
+
mutation RemoveAssortmentLink($assortmentLinkId: ID!) {
|
|
800
|
+
removeAssortmentLink(assortmentLinkId: $assortmentLinkId) {
|
|
801
|
+
_id
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
`;
|
|
805
|
+
var useRemoveAssortmentLink = () => {
|
|
806
|
+
const [removeAssortmentLinkMutation] = useMutation(RemoveAssortmentLinkMutation);
|
|
807
|
+
const removeAssortmentLink = async ({
|
|
808
|
+
assortmentLinkId
|
|
809
|
+
}) => {
|
|
810
|
+
return removeAssortmentLinkMutation({
|
|
811
|
+
variables: { assortmentLinkId },
|
|
812
|
+
refetchQueries: ["AssortmentLinks"]
|
|
813
|
+
});
|
|
814
|
+
};
|
|
815
|
+
return {
|
|
816
|
+
removeAssortmentLink
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
var useRemoveAssortmentLink_default = useRemoveAssortmentLink;
|
|
820
|
+
var RemoveAssortmentMediaMutation = gql`
|
|
821
|
+
mutation RemoveAssortmentMedia($assortmentMediaId: ID!) {
|
|
822
|
+
removeAssortmentMedia(assortmentMediaId: $assortmentMediaId) {
|
|
823
|
+
_id
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
`;
|
|
827
|
+
var useRemoveAssortmentMedia = () => {
|
|
828
|
+
const [removeAssortmentMediaMutation] = useMutation(RemoveAssortmentMediaMutation);
|
|
829
|
+
const removeAssortmentMedia = async ({
|
|
830
|
+
assortmentMediaId
|
|
831
|
+
}) => {
|
|
832
|
+
return removeAssortmentMediaMutation({
|
|
833
|
+
variables: { assortmentMediaId },
|
|
834
|
+
refetchQueries: ["AssortmentMedia"]
|
|
835
|
+
});
|
|
836
|
+
};
|
|
837
|
+
return {
|
|
838
|
+
removeAssortmentMedia
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
var useRemoveAssortmentMedia_default = useRemoveAssortmentMedia;
|
|
842
|
+
var RemoveAssortmentProductMutation = gql`
|
|
843
|
+
mutation RemoveAssortmentProduct($assortmentProductId: ID!) {
|
|
844
|
+
removeAssortmentProduct(assortmentProductId: $assortmentProductId) {
|
|
845
|
+
_id
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
`;
|
|
849
|
+
var useRemoveAssortmentProduct = () => {
|
|
850
|
+
const [removeAssortmentProductMutation] = useMutation(RemoveAssortmentProductMutation);
|
|
851
|
+
const removeAssortmentProduct = async ({
|
|
852
|
+
assortmentProductId
|
|
853
|
+
}) => {
|
|
854
|
+
return removeAssortmentProductMutation({
|
|
855
|
+
variables: { assortmentProductId },
|
|
856
|
+
refetchQueries: ["AssortmentProducts"]
|
|
857
|
+
});
|
|
858
|
+
};
|
|
859
|
+
return {
|
|
860
|
+
removeAssortmentProduct
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
var useRemoveAssortmentProduct_default = useRemoveAssortmentProduct;
|
|
864
|
+
var ReorderAssortmentFiltersMutation = gql`
|
|
865
|
+
mutation ReorderAssortmentFilters(
|
|
866
|
+
$sortKeys: [ReorderAssortmentFilterInput!]!
|
|
867
|
+
) {
|
|
868
|
+
reorderAssortmentFilters(sortKeys: $sortKeys) {
|
|
869
|
+
_id
|
|
870
|
+
sortKey
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
`;
|
|
874
|
+
var useReorderAssortmentFilters = () => {
|
|
875
|
+
const [reorderAssortmentFiltersMutation] = useMutation(ReorderAssortmentFiltersMutation);
|
|
876
|
+
const reorderAssortmentFilters = async ({
|
|
877
|
+
sortKeys
|
|
878
|
+
}) => {
|
|
879
|
+
return reorderAssortmentFiltersMutation({
|
|
880
|
+
variables: { sortKeys },
|
|
881
|
+
refetchQueries: ["AssortmentFilters"]
|
|
882
|
+
});
|
|
883
|
+
};
|
|
884
|
+
return {
|
|
885
|
+
reorderAssortmentFilters
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
var useReorderAssortmentFilters_default = useReorderAssortmentFilters;
|
|
889
|
+
var ReorderAssortmentLinkMutation = gql`
|
|
890
|
+
mutation ReorderAssortmentLinks($sortKeys: [ReorderAssortmentLinkInput!]!) {
|
|
891
|
+
reorderAssortmentLinks(sortKeys: $sortKeys) {
|
|
892
|
+
_id
|
|
893
|
+
sortKey
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
`;
|
|
897
|
+
var useReorderAssortmentLink = () => {
|
|
898
|
+
const [reorderAssortmentLinkMutation] = useMutation(ReorderAssortmentLinkMutation);
|
|
899
|
+
const reorderAssortmentLink = async ({
|
|
900
|
+
sortKeys
|
|
901
|
+
}) => {
|
|
902
|
+
return reorderAssortmentLinkMutation({
|
|
903
|
+
variables: { sortKeys },
|
|
904
|
+
refetchQueries: ["AssortmentLinks"]
|
|
905
|
+
});
|
|
906
|
+
};
|
|
907
|
+
return {
|
|
908
|
+
reorderAssortmentLink
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
var useReorderAssortmentLinks_default = useReorderAssortmentLink;
|
|
912
|
+
var ReorderAssortmentMediaMutation = gql`
|
|
913
|
+
mutation ReorderAssortmentMedia($sortKeys: [ReorderAssortmentMediaInput!]!) {
|
|
914
|
+
reorderAssortmentMedia(sortKeys: $sortKeys) {
|
|
915
|
+
_id
|
|
916
|
+
sortKey
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
`;
|
|
920
|
+
var useReorderAssortmentMedia = () => {
|
|
921
|
+
const [reorderAssortmentMediaMutation] = useMutation(ReorderAssortmentMediaMutation);
|
|
922
|
+
const reorderAssortmentMedia = async ({
|
|
923
|
+
sortKeys
|
|
924
|
+
}) => {
|
|
925
|
+
return reorderAssortmentMediaMutation({
|
|
926
|
+
variables: { sortKeys },
|
|
927
|
+
refetchQueries: ["AssortmentMedia"]
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
return {
|
|
931
|
+
reorderAssortmentMedia
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
var useReorderAssortmentMedia_default = useReorderAssortmentMedia;
|
|
935
|
+
var ReorderAssortmentProductsMutation = gql`
|
|
936
|
+
mutation ReorderAssortmentProducts(
|
|
937
|
+
$sortKeys: [ReorderAssortmentProductInput!]!
|
|
938
|
+
) {
|
|
939
|
+
reorderAssortmentProducts(sortKeys: $sortKeys) {
|
|
940
|
+
_id
|
|
941
|
+
sortKey
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
`;
|
|
945
|
+
var useReorderAssortmentProducts = () => {
|
|
946
|
+
const [reorderAssortmentProductsMutation] = useMutation(ReorderAssortmentProductsMutation);
|
|
947
|
+
const reorderAssortmentProducts = async ({
|
|
948
|
+
sortKeys
|
|
949
|
+
}) => {
|
|
950
|
+
return reorderAssortmentProductsMutation({
|
|
951
|
+
variables: { sortKeys },
|
|
952
|
+
refetchQueries: ["AssortmentProducts"]
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
return {
|
|
956
|
+
reorderAssortmentProducts
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
var useReorderAssortmentProducts_default = useReorderAssortmentProducts;
|
|
960
|
+
var AssortmentMediaTextsFragment = gql`
|
|
961
|
+
fragment AssortmentMediaTextsFragment on AssortmentMediaTexts {
|
|
962
|
+
_id
|
|
963
|
+
locale
|
|
964
|
+
title
|
|
965
|
+
subtitle
|
|
966
|
+
}
|
|
967
|
+
`;
|
|
968
|
+
var AssortmentMediaTextsFragment_default = AssortmentMediaTextsFragment;
|
|
969
|
+
|
|
970
|
+
// src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts
|
|
971
|
+
var TranslatedAssortmentMediaTextsQuery = gql`
|
|
972
|
+
query TranslatedAssortmentMediaTexts($assortmentMediaId: ID!) {
|
|
973
|
+
translatedAssortmentMediaTexts(assortmentMediaId: $assortmentMediaId) {
|
|
974
|
+
...AssortmentMediaTextsFragment
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
${AssortmentMediaTextsFragment_default}
|
|
978
|
+
`;
|
|
979
|
+
var useTranslatedAssortmentMediaTexts = ({
|
|
980
|
+
assortmentMediaId = null
|
|
981
|
+
}) => {
|
|
982
|
+
const { data, loading, error } = useQuery(TranslatedAssortmentMediaTextsQuery, {
|
|
983
|
+
skip: !assortmentMediaId,
|
|
984
|
+
variables: {
|
|
985
|
+
assortmentMediaId
|
|
986
|
+
}
|
|
987
|
+
});
|
|
988
|
+
const translatedAssortmentMediaTexts = data?.translatedAssortmentMediaTexts || [];
|
|
989
|
+
return {
|
|
990
|
+
loading,
|
|
991
|
+
error,
|
|
992
|
+
translatedAssortmentMediaTexts
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
var useTranslatedAssortmentMediaTexts_default = useTranslatedAssortmentMediaTexts;
|
|
996
|
+
var AssortmentTextsFragment = gql`
|
|
997
|
+
fragment AssortmentTextsFragment on AssortmentTexts {
|
|
998
|
+
_id
|
|
999
|
+
locale
|
|
1000
|
+
slug
|
|
1001
|
+
title
|
|
1002
|
+
subtitle
|
|
1003
|
+
description
|
|
1004
|
+
}
|
|
1005
|
+
`;
|
|
1006
|
+
var AssortmentTextsFragment_default = AssortmentTextsFragment;
|
|
1007
|
+
|
|
1008
|
+
// src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts
|
|
1009
|
+
var TranslatedAssortmentTextsQuery = gql`
|
|
1010
|
+
query TranslatedAssortmentTexts($assortmentId: ID!) {
|
|
1011
|
+
translatedAssortmentTexts(assortmentId: $assortmentId) {
|
|
1012
|
+
...AssortmentTextsFragment
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
${AssortmentTextsFragment_default}
|
|
1016
|
+
`;
|
|
1017
|
+
var useTranslatedAssortmentTexts = ({
|
|
1018
|
+
assortmentId = null
|
|
1019
|
+
}) => {
|
|
1020
|
+
const { data, loading, error } = useQuery(TranslatedAssortmentTextsQuery, {
|
|
1021
|
+
skip: !assortmentId,
|
|
1022
|
+
variables: {
|
|
1023
|
+
assortmentId
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
const translatedAssortmentTexts = data?.translatedAssortmentTexts || [];
|
|
1027
|
+
return {
|
|
1028
|
+
loading,
|
|
1029
|
+
error,
|
|
1030
|
+
translatedAssortmentTexts
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
var useTranslatedAssortmentTexts_default = useTranslatedAssortmentTexts;
|
|
1034
|
+
var UpdateAssortmentMutation = gql`
|
|
1035
|
+
mutation UpdateAssortment(
|
|
1036
|
+
$assortment: UpdateAssortmentInput!
|
|
1037
|
+
$assortmentId: ID!
|
|
1038
|
+
) {
|
|
1039
|
+
updateAssortment(assortment: $assortment, assortmentId: $assortmentId) {
|
|
1040
|
+
_id
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
`;
|
|
1044
|
+
var useUpdateAssortment = () => {
|
|
1045
|
+
const [updateAssortmentMutation] = useMutation(UpdateAssortmentMutation);
|
|
1046
|
+
const updateAssortment = async ({
|
|
1047
|
+
assortmentId,
|
|
1048
|
+
assortment: { isRoot, tags, sequence, isActive }
|
|
1049
|
+
}) => {
|
|
1050
|
+
return updateAssortmentMutation({
|
|
1051
|
+
variables: {
|
|
1052
|
+
assortment: { isRoot, tags, sequence, isActive },
|
|
1053
|
+
assortmentId
|
|
1054
|
+
},
|
|
1055
|
+
refetchQueries: ["Assortments", "Assortment"]
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
1058
|
+
return {
|
|
1059
|
+
updateAssortment
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
var useUpdateAssortment_default = useUpdateAssortment;
|
|
1063
|
+
var UpdateAssortmentMediaTextsMutation = gql`
|
|
1064
|
+
mutation UpdateAssortmentMediaTexts(
|
|
1065
|
+
$assortmentMediaId: ID!
|
|
1066
|
+
$texts: [AssortmentMediaTextInput!]!
|
|
1067
|
+
) {
|
|
1068
|
+
updateAssortmentMediaTexts(
|
|
1069
|
+
assortmentMediaId: $assortmentMediaId
|
|
1070
|
+
texts: $texts
|
|
1071
|
+
) {
|
|
1072
|
+
...AssortmentMediaTextsFragment
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
${AssortmentMediaTextsFragment_default}
|
|
1076
|
+
`;
|
|
1077
|
+
var useUpdateAssortmentMediaTexts = () => {
|
|
1078
|
+
const [updateAssortmentMediaTextsMutation] = useMutation(UpdateAssortmentMediaTextsMutation);
|
|
1079
|
+
const updateAssortmentMediaTexts = async ({
|
|
1080
|
+
assortmentMediaId,
|
|
1081
|
+
texts
|
|
1082
|
+
}) => {
|
|
1083
|
+
return updateAssortmentMediaTextsMutation({
|
|
1084
|
+
variables: { assortmentMediaId, texts },
|
|
1085
|
+
refetchQueries: ["TranslatedAssortmentMediaTexts"]
|
|
1086
|
+
});
|
|
1087
|
+
};
|
|
1088
|
+
return {
|
|
1089
|
+
updateAssortmentMediaTexts
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
var useUpdateAssortmentMediaTexts_default = useUpdateAssortmentMediaTexts;
|
|
1093
|
+
var UpdateAssortmentTextsMutation = gql`
|
|
1094
|
+
mutation updateAssortmentTexts(
|
|
1095
|
+
$assortmentId: ID!
|
|
1096
|
+
$texts: [AssortmentTextInput!]!
|
|
1097
|
+
) {
|
|
1098
|
+
updateAssortmentTexts(assortmentId: $assortmentId, texts: $texts) {
|
|
1099
|
+
...AssortmentTextsFragment
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
${AssortmentTextsFragment_default}
|
|
1103
|
+
`;
|
|
1104
|
+
var useUpdateAssortmentTexts = () => {
|
|
1105
|
+
const [updateAssortmentTextsMutation] = useMutation(UpdateAssortmentTextsMutation);
|
|
1106
|
+
const updateAssortmentTexts = async ({
|
|
1107
|
+
assortmentId,
|
|
1108
|
+
texts
|
|
1109
|
+
}) => {
|
|
1110
|
+
return updateAssortmentTextsMutation({
|
|
1111
|
+
variables: { assortmentId, texts },
|
|
1112
|
+
refetchQueries: ["TranslatedAssortmentTexts", "Assortment"]
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
return {
|
|
1116
|
+
updateAssortmentTexts
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
var useUpdateAssortmentTexts_default = useUpdateAssortmentTexts;
|
|
1120
|
+
|
|
1121
|
+
export { useAddAssortmentFilter_default as useAddAssortmentFilter, useAddAssortmentLink_default as useAddAssortmentLink, useAddAssortmentMedia_default as useAddAssortmentMedia, useAddAssortmentProduct_default as useAddAssortmentProduct, useAssortment_default as useAssortment, useAssortmentChildren_default as useAssortmentChildren, useAssortmentFilters_default as useAssortmentFilters, useAssortmentLinks_default as useAssortmentLinks, useAssortmentMedia_default as useAssortmentMedia, useAssortmentPaths_default as useAssortmentPaths, useAssortmentProducts_default as useAssortmentProducts, useAssortments_default as useAssortments, useAssortmentsCount_default as useAssortmentsCount, useCreateAssortment_default as useCreateAssortment, usePrepareAssortmentImport_default as usePrepareAssortmentImport, useRemoveAssortment_default as useRemoveAssortment, useRemoveAssortmentFilter_default as useRemoveAssortmentFilter, useRemoveAssortmentLink_default as useRemoveAssortmentLink, useRemoveAssortmentMedia_default as useRemoveAssortmentMedia, useRemoveAssortmentProduct_default as useRemoveAssortmentProduct, useReorderAssortmentFilters_default as useReorderAssortmentFilters, useReorderAssortmentLinks_default as useReorderAssortmentLinks, useReorderAssortmentMedia_default as useReorderAssortmentMedia, useReorderAssortmentProducts_default as useReorderAssortmentProducts, useTranslatedAssortmentMediaTexts_default as useTranslatedAssortmentMediaTexts, useTranslatedAssortmentTexts_default as useTranslatedAssortmentTexts, useUpdateAssortment_default as useUpdateAssortment, useUpdateAssortmentMediaTexts_default as useUpdateAssortmentMediaTexts, useUpdateAssortmentTexts_default as useUpdateAssortmentTexts };
|