umwd-components 0.1.841 → 0.1.843
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/_virtual/index2.js +2 -2
- package/dist/esm/_virtual/index3.js +2 -2
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/umwd-components/node_modules/prop-types/index.js +1 -1
- package/dist/esm/umwd-components/node_modules/safe-buffer/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/_virtual/events.js +0 -6
- package/dist/cjs/_virtual/index5.js +0 -6
- package/dist/cjs/_virtual/index6.js +0 -6
- package/dist/cjs/_virtual/node.js +0 -6
- package/dist/cjs/node_modules/@mollie/api-client/dist/mollie.esm.js +0 -6
- package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +0 -6
- package/dist/cjs/node_modules/axios/lib/adapters/fetch.js +0 -6
- package/dist/cjs/node_modules/axios/lib/adapters/http.js +0 -7
- package/dist/cjs/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -7
- package/dist/cjs/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -7
- package/dist/cjs/node_modules/axios/lib/helpers/callbackify.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/composeSignals.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/formDataToStream.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/fromDataURI.js +0 -7
- package/dist/cjs/node_modules/axios/lib/helpers/progressEventReducer.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/readBlob.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/resolveConfig.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/throttle.js +0 -6
- package/dist/cjs/node_modules/axios/lib/helpers/trackStream.js +0 -6
- package/dist/cjs/node_modules/axios/lib/platform/node/classes/FormData.js +0 -6
- package/dist/cjs/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -7
- package/dist/cjs/node_modules/axios/lib/platform/node/index.js +0 -6
- package/dist/cjs/node_modules/call-bind-apply-helpers/actualApply.js +0 -6
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionApply.js +0 -6
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionCall.js +0 -6
- package/dist/cjs/node_modules/call-bind-apply-helpers/index.js +0 -6
- package/dist/cjs/node_modules/call-bind-apply-helpers/reflectApply.js +0 -6
- package/dist/cjs/node_modules/call-bound/index.js +0 -6
- package/dist/cjs/node_modules/dayjs/dayjs.min.js +0 -6
- package/dist/cjs/node_modules/dayjs/plugin/isoWeek.js +0 -6
- package/dist/cjs/node_modules/debug/src/browser.js +0 -6
- package/dist/cjs/node_modules/debug/src/common.js +0 -6
- package/dist/cjs/node_modules/debug/src/index.js +0 -6
- package/dist/cjs/node_modules/debug/src/node.js +0 -6
- package/dist/cjs/node_modules/dunder-proto/get.js +0 -6
- package/dist/cjs/node_modules/es-define-property/index.js +0 -6
- package/dist/cjs/node_modules/es-errors/eval.js +0 -6
- package/dist/cjs/node_modules/es-errors/index.js +0 -6
- package/dist/cjs/node_modules/es-errors/range.js +0 -6
- package/dist/cjs/node_modules/es-errors/ref.js +0 -6
- package/dist/cjs/node_modules/es-errors/syntax.js +0 -6
- package/dist/cjs/node_modules/es-errors/type.js +0 -6
- package/dist/cjs/node_modules/es-errors/uri.js +0 -6
- package/dist/cjs/node_modules/es-object-atoms/index.js +0 -6
- package/dist/cjs/node_modules/events/events.js +0 -6
- package/dist/cjs/node_modules/follow-redirects/debug.js +0 -6
- package/dist/cjs/node_modules/follow-redirects/index.js +0 -6
- package/dist/cjs/node_modules/form-data/lib/browser.js +0 -6
- package/dist/cjs/node_modules/function-bind/implementation.js +0 -6
- package/dist/cjs/node_modules/function-bind/index.js +0 -6
- package/dist/cjs/node_modules/get-intrinsic/index.js +0 -6
- package/dist/cjs/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/dist/cjs/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -6
- package/dist/cjs/node_modules/get-proto/index.js +0 -6
- package/dist/cjs/node_modules/gopd/gOPD.js +0 -6
- package/dist/cjs/node_modules/gopd/index.js +0 -6
- package/dist/cjs/node_modules/has-flag/index.js +0 -6
- package/dist/cjs/node_modules/has-symbols/index.js +0 -6
- package/dist/cjs/node_modules/has-symbols/shams.js +0 -6
- package/dist/cjs/node_modules/hasown/index.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/abs.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/floor.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/isNaN.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/max.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/min.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/pow.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/round.js +0 -6
- package/dist/cjs/node_modules/math-intrinsics/sign.js +0 -6
- package/dist/cjs/node_modules/ms/index.js +0 -6
- package/dist/cjs/node_modules/object-assign/index.js +0 -11
- package/dist/cjs/node_modules/object-inspect/index.js +0 -6
- package/dist/cjs/node_modules/object-inspect/util.inspect.js +0 -6
- package/dist/cjs/node_modules/prop-types/checkPropTypes.js +0 -6
- package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -6
- package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -6
- package/dist/cjs/node_modules/prop-types/index.js +0 -6
- package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -6
- package/dist/cjs/node_modules/prop-types/lib/has.js +0 -6
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -14
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -14
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -6
- package/dist/cjs/node_modules/proxy-from-env/index.js +0 -6
- package/dist/cjs/node_modules/qs/lib/formats.js +0 -6
- package/dist/cjs/node_modules/qs/lib/index.js +0 -6
- package/dist/cjs/node_modules/qs/lib/parse.js +0 -6
- package/dist/cjs/node_modules/qs/lib/stringify.js +0 -6
- package/dist/cjs/node_modules/qs/lib/utils.js +0 -6
- package/dist/cjs/node_modules/react-csv/index.js +0 -6
- package/dist/cjs/node_modules/react-csv/lib/components/Download.js +0 -6
- package/dist/cjs/node_modules/react-csv/lib/components/Link.js +0 -6
- package/dist/cjs/node_modules/react-csv/lib/core.js +0 -6
- package/dist/cjs/node_modules/react-csv/lib/index.js +0 -6
- package/dist/cjs/node_modules/react-csv/lib/metaProps.js +0 -6
- package/dist/cjs/node_modules/safe-buffer/index.js +0 -6
- package/dist/cjs/node_modules/sax/lib/sax.js +0 -7
- package/dist/cjs/node_modules/side-channel/index.js +0 -6
- package/dist/cjs/node_modules/side-channel-list/index.js +0 -6
- package/dist/cjs/node_modules/side-channel-map/index.js +0 -6
- package/dist/cjs/node_modules/side-channel-weakmap/index.js +0 -6
- package/dist/cjs/node_modules/string_decoder/lib/string_decoder.js +0 -6
- package/dist/cjs/node_modules/supports-color/index.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/array-helper.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/index.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/js2xml.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/json2xml.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/options-helper.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/xml2js.js +0 -6
- package/dist/cjs/node_modules/xml-js/lib/xml2json.js +0 -6
- package/dist/cjs/src/components/ExplanatoryFoldOut.js +0 -6
- package/dist/cjs/src/components/FluidBackground.js +0 -7
- package/dist/cjs/src/components/LogoutButton.js +0 -7
- package/dist/cjs/src/components/ScrollLink.js +0 -7
- package/dist/cjs/src/components/StrapiErrors.js +0 -6
- package/dist/cjs/src/components/StrapiImage.js +0 -6
- package/dist/cjs/src/components/StyledLink.js +0 -6
- package/dist/cjs/src/components/SubmitButton.js +0 -7
- package/dist/cjs/src/components/WebsitePlaceholder.js +0 -7
- package/dist/cjs/src/components/WhatsAppClickToChatButton.js +0 -7
- package/dist/cjs/src/components/ZodErrors.js +0 -6
- package/dist/cjs/src/components/auth/AuthWidget.js +0 -7
- package/dist/cjs/src/components/auth/DenseRegisterForm.js +0 -7
- package/dist/cjs/src/components/auth/DenseSigninForm.js +0 -7
- package/dist/cjs/src/components/auth/ForgotPasswordForm.js +0 -7
- package/dist/cjs/src/components/auth/PasswordResetForm.js +0 -7
- package/dist/cjs/src/components/auth/RegisterForm.js +0 -7
- package/dist/cjs/src/components/auth/SigninForm.js +0 -7
- package/dist/cjs/src/components/common/Address.js +0 -7
- package/dist/cjs/src/components/common/AmountIndicator.js +0 -6
- package/dist/cjs/src/components/common/AmountUpdater.js +0 -6
- package/dist/cjs/src/components/common/Contacts.js +0 -6
- package/dist/cjs/src/components/common/Dimensions.js +0 -6
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTable.js +0 -6
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTableFilterRow.js +0 -6
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTableHead.js +0 -6
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTableRow.js +0 -6
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTableToolbar.js +0 -6
- package/dist/cjs/src/components/common/ImagePreviewTooltip.js +0 -6
- package/dist/cjs/src/components/common/NumberInput.js +0 -6
- package/dist/cjs/src/components/common/Pagination.js +0 -7
- package/dist/cjs/src/components/common/TextualAmountUpdater.js +0 -6
- package/dist/cjs/src/components/common/WeekPicker.js +0 -6
- package/dist/cjs/src/components/common/cookie-consent/CookieConsentBanner.js +0 -7
- package/dist/cjs/src/components/common/cookie-consent/CookieConsentButton.js +0 -7
- package/dist/cjs/src/components/common/cookie-consent/CookieConsentButtonSmall.js +0 -7
- package/dist/cjs/src/components/common/cookie-consent/CookieConsentContext.js +0 -7
- package/dist/cjs/src/components/common/csv/CsvDownloader.js +0 -6
- package/dist/cjs/src/components/common/markdown/MarkdownDisplay.js +0 -7
- package/dist/cjs/src/components/common/markdown/MarkdownEditor.js +0 -7
- package/dist/cjs/src/components/common/markdown/MarkdownTextField.js +0 -6
- package/dist/cjs/src/components/common/media/DenseEditMediaForm.js +0 -7
- package/dist/cjs/src/components/common/media/EditMediaDialog.js +0 -6
- package/dist/cjs/src/components/common/media/MediaGrid.js +0 -7
- package/dist/cjs/src/components/common/media/MediaItem.js +0 -6
- package/dist/cjs/src/components/common/media/MediaLibraryDialog.js +0 -7
- package/dist/cjs/src/components/common/media/UploadBase64MediaForm.js +0 -7
- package/dist/cjs/src/components/common/media/UploadMediaForm.js +0 -7
- package/dist/cjs/src/components/common/media/minio/MinioDeleteFormButton.js +0 -7
- package/dist/cjs/src/components/common/media/minio/MinioDisplay.js +0 -7
- package/dist/cjs/src/components/common/media/minio/MinioDownloadButton.js +0 -7
- package/dist/cjs/src/components/common/media/minio/MinioItemList.js +0 -7
- package/dist/cjs/src/components/common/media/minio/UploadMinioMediaForm.js +0 -7
- package/dist/cjs/src/components/common/snackbar/GlobalSnackbar.js +0 -6
- package/dist/cjs/src/components/common/socials/Socials.js +0 -6
- package/dist/cjs/src/components/e-commerce/cart/AddToCartButton.client.js +0 -7
- package/dist/cjs/src/components/e-commerce/cart/CartDisplay.js +0 -7
- package/dist/cjs/src/components/e-commerce/cart/CartSummary.js +0 -7
- package/dist/cjs/src/components/e-commerce/cart/CartSummaryRow.js +0 -7
- package/dist/cjs/src/components/e-commerce/cart/CartWidget.js +0 -7
- package/dist/cjs/src/components/e-commerce/cart/hooks.js +0 -6
- package/dist/cjs/src/components/e-commerce/categories/AddCategoryForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/categories/CategorySelectorV2.js +0 -6
- package/dist/cjs/src/components/e-commerce/categories/EditCategoryForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/checkout/CheckoutForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/checkout/Step1.js +0 -7
- package/dist/cjs/src/components/e-commerce/checkout/Step2.js +0 -7
- package/dist/cjs/src/components/e-commerce/checkout/Step3.js +0 -6
- package/dist/cjs/src/components/e-commerce/checkout/Step4.js +0 -7
- package/dist/cjs/src/components/e-commerce/checkout/Step5.js +0 -6
- package/dist/cjs/src/components/e-commerce/customer/BusinessCredentials.js +0 -7
- package/dist/cjs/src/components/e-commerce/customer/CustomerCompletenessWarning.js +0 -6
- package/dist/cjs/src/components/e-commerce/customer/CustomerProfileDisplay.js +0 -7
- package/dist/cjs/src/components/e-commerce/customer/CustomerProfileEditForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/customer/CustomerSelector.js +0 -6
- package/dist/cjs/src/components/e-commerce/customer/DenseCustomerProfileDisplay.js +0 -6
- package/dist/cjs/src/components/e-commerce/enduser/EnduserProfileDisplay.js +0 -7
- package/dist/cjs/src/components/e-commerce/enduser/EnduserProfileEditForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/invoice/CreateInvoiceForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/invoice/InvoiceItemFields.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/CreateIROForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/iro/IROItemFields.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/IroItemDisplay.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/IroItemUpdater.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/IroStatusIndicator.js +0 -7
- package/dist/cjs/src/components/e-commerce/iro/ManageIROForm.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/RmaForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/iro/TextualIROItemUpdater.js +0 -6
- package/dist/cjs/src/components/e-commerce/iro/TextualManageIROForm.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/CreateOpoForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/opo/ManageOpoForm.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OPOItemFields.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OpoDisplay.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OpoItemDisplay.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OpoItemUpdater.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OpoStatusIndicator.js +0 -7
- package/dist/cjs/src/components/e-commerce/opo/OpoSummary.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/OpoSummaryRow.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/PaymentStatusIndicator.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/ShippingStatusIndicator.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/TextualManageOpoForm.js +0 -6
- package/dist/cjs/src/components/e-commerce/opo/TextualOpoItemUpdater.js +0 -6
- package/dist/cjs/src/components/e-commerce/products/AddProductForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/products/EditProductForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/products/EditReturnStockForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/products/EditStockForm.js +0 -7
- package/dist/cjs/src/components/e-commerce/products/Price.js +0 -6
- package/dist/cjs/src/components/e-commerce/products/PriceFields.js +0 -7
- package/dist/cjs/src/components/e-commerce/products/ProductCard.js +0 -6
- package/dist/cjs/src/components/e-commerce/products/ProductCategoryCard.js +0 -6
- package/dist/cjs/src/components/e-commerce/products/ProductSelector.js +0 -6
- package/dist/cjs/src/components/e-commerce/products/SingleProduct.js +0 -6
- package/dist/cjs/src/components/layout/Footer.js +0 -7
- package/dist/cjs/src/components/layout/Navbar.js +0 -7
- package/dist/cjs/src/components/layout/NavbarV2.js +0 -7
- package/dist/cjs/src/components/layout/SideNav.js +0 -7
- package/dist/cjs/src/components/logistics/dispatcher/DispatcherProfileDisplay.js +0 -7
- package/dist/cjs/src/components/logistics/dispatcher/DispatcherProfileEditForm.js +0 -7
- package/dist/cjs/src/components/logistics/ipo/AddIPOForm.js +0 -7
- package/dist/cjs/src/components/logistics/ipo/IPOItemFields.js +0 -6
- package/dist/cjs/src/components/logistics/ipo/IPOItemUpdater.js +0 -6
- package/dist/cjs/src/components/logistics/ipo/IpoStatusIndicator.js +0 -7
- package/dist/cjs/src/components/logistics/ipo/ItemDisplay.js +0 -6
- package/dist/cjs/src/components/logistics/ipo/ManageIPOForm.js +0 -6
- package/dist/cjs/src/components/logistics/ipo/TextualIPOItemUpdater.js +0 -6
- package/dist/cjs/src/components/logistics/ipo/TextualManageIPOForm.js +0 -6
- package/dist/cjs/src/components/logistics/note/NoteTakingComponent.js +0 -6
- package/dist/cjs/src/components/logistics/note/NotesDisplay.js +0 -6
- package/dist/cjs/src/components/logistics/report/PreReportsDisplay.js +0 -6
- package/dist/cjs/src/components/logistics/report/ReportMakingComponent.js +0 -6
- package/dist/cjs/src/components/logistics/report/ReportsDisplay.js +0 -6
- package/dist/cjs/src/components/logistics/report/ReportsWarning.js +0 -6
- package/dist/cjs/src/components/logistics/report/SimpleReportFields.js +0 -6
- package/dist/cjs/src/components/logistics/vendor/AddVendorForm.js +0 -7
- package/dist/cjs/src/components/logistics/vendor/EditVendorForm.js +0 -7
- package/dist/cjs/src/components/logistics/vendor/VendorDisplay.js +0 -7
- package/dist/cjs/src/components/logistics/vendor/VendorSelector.js +0 -6
- package/dist/cjs/src/components/page-builder/PBCategoryBlock.js +0 -6
- package/dist/cjs/src/components/page-builder/PBColumnsSection.js +0 -6
- package/dist/cjs/src/components/page-builder/PBFeaturesSection.js +0 -6
- package/dist/cjs/src/components/page-builder/PBFleetSection.js +0 -6
- package/dist/cjs/src/components/page-builder/PBHeroSection.js +0 -6
- package/dist/cjs/src/components/page-builder/PBIconSection.js +0 -6
- package/dist/cjs/src/components/page-builder/PBLogoBarSection.js +0 -7
- package/dist/cjs/src/components/page-builder/PBPersonaliaSection.js +0 -7
- package/dist/cjs/src/components/page-builder/PBPictureBarSection.js +0 -7
- package/dist/cjs/src/components/page-builder/PBProductBlock.js +0 -7
- package/dist/cjs/src/components/page-builder/PBTextImageSection.js +0 -7
- package/dist/cjs/src/components/page-builder/PageBuilder.js +0 -7
- package/dist/cjs/src/components/page-elements/CategoryBlock.js +0 -7
- package/dist/cjs/src/components/page-elements/ColumnsSection.js +0 -6
- package/dist/cjs/src/components/page-elements/FeaturesSection.js +0 -7
- package/dist/cjs/src/components/page-elements/FleetSection.js +0 -6
- package/dist/cjs/src/components/page-elements/HeroSectionV2.js +0 -7
- package/dist/cjs/src/components/page-elements/IconSection.js +0 -6
- package/dist/cjs/src/components/page-elements/LogoBarSection.js +0 -7
- package/dist/cjs/src/components/page-elements/Page.js +0 -6
- package/dist/cjs/src/components/page-elements/PersonaliaSection.js +0 -7
- package/dist/cjs/src/components/page-elements/PictureBarSection.js +0 -7
- package/dist/cjs/src/components/page-elements/ProductBlock.js +0 -7
- package/dist/cjs/src/components/page-elements/TextImageSection.js +0 -7
- package/dist/cjs/src/components/public-information/PublicInformationForm.js +0 -7
- package/dist/cjs/src/context/auth/SessionContext.js +0 -7
- package/dist/cjs/src/context/common/SnackbarContext.js +0 -7
- package/dist/cjs/src/context/e-commerce/cart/CartContext.js +0 -7
- package/dist/cjs/src/context/e-commerce/checkout/CheckoutContext.js +0 -7
- package/dist/cjs/src/data/actions/auth-actions.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/categories/createCategoryAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/categories/updateCategoryAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/checkout-action.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/enduser/profile-actions.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/invoices/createInvoiceAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/iro/createIroAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/iro/requestRmaAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/iro/updateIroAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/lead/contactFormAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/opo/createOpoAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/opo/updateOpoAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/product/createProductAction.js +0 -7
- package/dist/cjs/src/data/actions/e-commerce/product/updateProductAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/dispatcher/profile-actions.js +0 -7
- package/dist/cjs/src/data/actions/logistics/ipo/createIPOAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/ipo/updateIpoAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/note/createNoteAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/report/createReportAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/vendor/createVendorAction.js +0 -7
- package/dist/cjs/src/data/actions/logistics/vendor/updateVendorAction.js +0 -7
- package/dist/cjs/src/data/actions/media/minio/deleteMinioMediaAction.js +0 -6
- package/dist/cjs/src/data/actions/media/minio/uploadMinioMediaAction.js +0 -6
- package/dist/cjs/src/data/actions/media/updateMediaAction.js +0 -7
- package/dist/cjs/src/data/actions/media/uploadBase64MediaAction.js +0 -6
- package/dist/cjs/src/data/actions/media/uploadMediaAction.js +0 -6
- package/dist/cjs/src/data/actions/pagebuilder-actions.js +0 -7
- package/dist/cjs/src/data/actions/profile-actions.js +0 -7
- package/dist/cjs/src/data/actions/public-information/updatePublicInformationAction.js +0 -7
- package/dist/cjs/src/data/loaders/common/media/downloadBase64File.js +0 -6
- package/dist/cjs/src/data/loaders/common/media/getAllMedia.js +0 -7
- package/dist/cjs/src/data/loaders/common/media/minio/downloadMinioItemClient.js +0 -7
- package/dist/cjs/src/data/loaders/common/media/minio/getAllMinioMedia.js +0 -7
- package/dist/cjs/src/data/loaders/common/media/minio/getAllMinioReferences.js +0 -7
- package/dist/cjs/src/data/loaders/common/media/minio/getMinioSignedUrl.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getAllCategoryNames.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getAllCustomers.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getAllInvoices.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getAllOpos.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getCustomerLabels.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getCustomerModel.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getOpoModel.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getPaginatedCategories.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getProductModel.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getProductNames.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSalesData.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getShop.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSingleCategory.js +0 -6
- package/dist/cjs/src/data/loaders/e-commerce/getSingleCustomer.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSingleOpo.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSingleProduct.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSingleReturnStock.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getSingleStock.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/getTableProducts.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/iros/getAllIros.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/iros/getIroModel.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/iros/getSingleIro.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/iros/queryAllIros.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/queryAllCustomers.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/queryAllOpos.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce/queryAllProducts.js +0 -7
- package/dist/cjs/src/data/loaders/e-commerce-loaders.js +0 -7
- package/dist/cjs/src/data/loaders/loaders.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getIpoModel.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getIpoNames.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getSingleIpo.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getSingleVendor.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getTableIpos.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getTableVendors.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getVendorModel.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/getVendorNames.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/queryAllIpos.js +0 -7
- package/dist/cjs/src/data/loaders/logistics/queryAllVendors.js +0 -7
- package/dist/cjs/src/data/loaders/page-builder/getTablePages.js +0 -7
- package/dist/cjs/src/data/loaders/page-elements/getSinglePage.js +0 -7
- package/dist/cjs/src/data/loaders/public-information/getPublicInformation.js +0 -7
- package/dist/cjs/src/data/loaders/user/getUserMeLoader.js +0 -7
- package/dist/cjs/src/data/services/archive-service.js +0 -7
- package/dist/cjs/src/data/services/auth-service.js +0 -7
- package/dist/cjs/src/data/services/common/cancellation-service.js +0 -7
- package/dist/cjs/src/data/services/common/confirmation-service.js +0 -7
- package/dist/cjs/src/data/services/common/media/minio/minioDeleteService.js +0 -7
- package/dist/cjs/src/data/services/common/media/minio/minioUploadService.js +0 -7
- package/dist/cjs/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +0 -7
- package/dist/cjs/src/data/services/file-service.js +0 -6
- package/dist/cjs/src/data/services/get-token.js +0 -7
- package/dist/cjs/src/data/services/get-user-me-loader.js +0 -7
- package/dist/cjs/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +0 -7
- package/dist/cjs/src/data/services/mutate-data.js +0 -7
- package/dist/cjs/src/index.js +0 -6
- package/dist/cjs/src/lib/APIcon.js +0 -6
- package/dist/cjs/src/lib/AmbulanceIcon.js +0 -6
- package/dist/cjs/src/lib/areBusinessCredentialsComplete.js +0 -6
- package/dist/cjs/src/lib/deleteCookie.js +0 -6
- package/dist/cjs/src/lib/eoriValidate.js +0 -6
- package/dist/cjs/src/lib/getCookie.js +0 -6
- package/dist/cjs/src/lib/getIcon.js +0 -6
- package/dist/cjs/src/lib/isAddressComplete.js +0 -6
- package/dist/cjs/src/lib/isCustomerProfileComplete.js +0 -6
- package/dist/cjs/src/lib/isCustomerProfileCompleteEnough.js +0 -6
- package/dist/cjs/src/lib/isCustomerProfileCompleteV2.js +0 -6
- package/dist/cjs/src/lib/isEORIValid.js +0 -6
- package/dist/cjs/src/lib/isVATValid.js +0 -6
- package/dist/cjs/src/lib/molliePaymentProvider.js +0 -7
- package/dist/cjs/src/lib/parseFormData.js +0 -6
- package/dist/cjs/src/lib/parseNavigation.js +0 -6
- package/dist/cjs/src/lib/processFilters.js +0 -6
- package/dist/cjs/src/lib/setCookie.js +0 -6
- package/dist/cjs/src/lib/utils.js +0 -6
- package/dist/cjs/src/lib/vatValidate.js +0 -6
- package/dist/cjs/src/types/common/Contact.js +0 -6
- package/dist/esm/_virtual/events.js +0 -9
- package/dist/esm/_virtual/index5.js +0 -9
- package/dist/esm/_virtual/index6.js +0 -9
- package/dist/esm/_virtual/node.js +0 -9
- package/dist/esm/node_modules/@mollie/api-client/dist/mollie.esm.js +0 -5239
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +0 -19
- package/dist/esm/node_modules/axios/lib/adapters/fetch.js +0 -235
- package/dist/esm/node_modules/axios/lib/adapters/http.js +0 -698
- package/dist/esm/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -148
- package/dist/esm/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -33
- package/dist/esm/node_modules/axios/lib/helpers/callbackify.js +0 -22
- package/dist/esm/node_modules/axios/lib/helpers/composeSignals.js +0 -54
- package/dist/esm/node_modules/axios/lib/helpers/formDataToStream.js +0 -117
- package/dist/esm/node_modules/axios/lib/helpers/fromDataURI.js +0 -60
- package/dist/esm/node_modules/axios/lib/helpers/progressEventReducer.js +0 -52
- package/dist/esm/node_modules/axios/lib/helpers/readBlob.js +0 -21
- package/dist/esm/node_modules/axios/lib/helpers/resolveConfig.js +0 -64
- package/dist/esm/node_modules/axios/lib/helpers/throttle.js +0 -50
- package/dist/esm/node_modules/axios/lib/helpers/trackStream.js +0 -94
- package/dist/esm/node_modules/axios/lib/platform/node/classes/FormData.js +0 -11
- package/dist/esm/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -12
- package/dist/esm/node_modules/axios/lib/platform/node/index.js +0 -20
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.js +0 -21
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.js +0 -19
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.js +0 -19
- package/dist/esm/node_modules/call-bind-apply-helpers/index.js +0 -26
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.js +0 -10
- package/dist/esm/node_modules/call-bound/index.js +0 -28
- package/dist/esm/node_modules/dayjs/dayjs.min.js +0 -17
- package/dist/esm/node_modules/dayjs/plugin/isoWeek.js +0 -17
- package/dist/esm/node_modules/debug/src/browser.js +0 -292
- package/dist/esm/node_modules/debug/src/common.js +0 -309
- package/dist/esm/node_modules/debug/src/index.js +0 -29
- package/dist/esm/node_modules/debug/src/node.js +0 -286
- package/dist/esm/node_modules/dunder-proto/get.js +0 -48
- package/dist/esm/node_modules/es-define-property/index.js +0 -20
- package/dist/esm/node_modules/es-errors/eval.js +0 -10
- package/dist/esm/node_modules/es-errors/index.js +0 -10
- package/dist/esm/node_modules/es-errors/range.js +0 -10
- package/dist/esm/node_modules/es-errors/ref.js +0 -10
- package/dist/esm/node_modules/es-errors/syntax.js +0 -10
- package/dist/esm/node_modules/es-errors/type.js +0 -10
- package/dist/esm/node_modules/es-errors/uri.js +0 -10
- package/dist/esm/node_modules/es-object-atoms/index.js +0 -10
- package/dist/esm/node_modules/events/events.js +0 -485
- package/dist/esm/node_modules/follow-redirects/debug.js +0 -25
- package/dist/esm/node_modules/follow-redirects/index.js +0 -706
- package/dist/esm/node_modules/form-data/lib/browser.js +0 -14
- package/dist/esm/node_modules/function-bind/implementation.js +0 -99
- package/dist/esm/node_modules/function-bind/index.js +0 -22
- package/dist/esm/node_modules/get-intrinsic/index.js +0 -410
- package/dist/esm/node_modules/get-proto/Object.getPrototypeOf.js +0 -23
- package/dist/esm/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -19
- package/dist/esm/node_modules/get-proto/index.js +0 -46
- package/dist/esm/node_modules/gopd/gOPD.js +0 -10
- package/dist/esm/node_modules/gopd/index.js +0 -23
- package/dist/esm/node_modules/has-flag/index.js +0 -23
- package/dist/esm/node_modules/has-symbols/index.js +0 -31
- package/dist/esm/node_modules/has-symbols/shams.js +0 -60
- package/dist/esm/node_modules/hasown/index.js +0 -25
- package/dist/esm/node_modules/math-intrinsics/abs.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/floor.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/isNaN.js +0 -12
- package/dist/esm/node_modules/math-intrinsics/max.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/min.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/pow.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/round.js +0 -10
- package/dist/esm/node_modules/math-intrinsics/sign.js +0 -19
- package/dist/esm/node_modules/ms/index.js +0 -178
- package/dist/esm/node_modules/object-assign/index.js +0 -105
- package/dist/esm/node_modules/object-inspect/index.js +0 -555
- package/dist/esm/node_modules/object-inspect/util.inspect.js +0 -11
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +0 -121
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -80
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -631
- package/dist/esm/node_modules/prop-types/index.js +0 -34
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -27
- package/dist/esm/node_modules/prop-types/lib/has.js +0 -17
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -196
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -32
- package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -25
- package/dist/esm/node_modules/proxy-from-env/index.js +0 -116
- package/dist/esm/node_modules/qs/lib/formats.js +0 -29
- package/dist/esm/node_modules/qs/lib/index.js +0 -24
- package/dist/esm/node_modules/qs/lib/parse.js +0 -336
- package/dist/esm/node_modules/qs/lib/stringify.js +0 -366
- package/dist/esm/node_modules/qs/lib/utils.js +0 -276
- package/dist/esm/node_modules/react-csv/index.js +0 -12
- package/dist/esm/node_modules/react-csv/lib/components/Download.js +0 -89
- package/dist/esm/node_modules/react-csv/lib/components/Link.js +0 -161
- package/dist/esm/node_modules/react-csv/lib/core.js +0 -126
- package/dist/esm/node_modules/react-csv/lib/index.js +0 -31
- package/dist/esm/node_modules/react-csv/lib/metaProps.js +0 -46
- package/dist/esm/node_modules/safe-buffer/index.js +0 -86
- package/dist/esm/node_modules/sax/lib/sax.js +0 -1706
- package/dist/esm/node_modules/side-channel/index.js +0 -55
- package/dist/esm/node_modules/side-channel-list/index.js +0 -122
- package/dist/esm/node_modules/side-channel-map/index.js +0 -79
- package/dist/esm/node_modules/side-channel-weakmap/index.js +0 -96
- package/dist/esm/node_modules/string_decoder/lib/string_decoder.js +0 -291
- package/dist/esm/node_modules/supports-color/index.js +0 -154
- package/dist/esm/node_modules/xml-js/lib/array-helper.js +0 -19
- package/dist/esm/node_modules/xml-js/lib/index.js +0 -29
- package/dist/esm/node_modules/xml-js/lib/js2xml.js +0 -331
- package/dist/esm/node_modules/xml-js/lib/json2xml.js +0 -28
- package/dist/esm/node_modules/xml-js/lib/options-helper.js +0 -53
- package/dist/esm/node_modules/xml-js/lib/xml2js.js +0 -360
- package/dist/esm/node_modules/xml-js/lib/xml2json.js +0 -33
- package/dist/esm/src/components/ExplanatoryFoldOut.js +0 -25
- package/dist/esm/src/components/FluidBackground.js +0 -84
- package/dist/esm/src/components/LogoutButton.js +0 -21
- package/dist/esm/src/components/ScrollLink.js +0 -35
- package/dist/esm/src/components/StrapiErrors.js +0 -16
- package/dist/esm/src/components/StrapiImage.js +0 -19
- package/dist/esm/src/components/StyledLink.js +0 -18
- package/dist/esm/src/components/SubmitButton.js +0 -21
- package/dist/esm/src/components/WebsitePlaceholder.js +0 -94
- package/dist/esm/src/components/WhatsAppClickToChatButton.js +0 -42
- package/dist/esm/src/components/ZodErrors.js +0 -15
- package/dist/esm/src/components/auth/AuthWidget.js +0 -71
- package/dist/esm/src/components/auth/DenseRegisterForm.js +0 -30
- package/dist/esm/src/components/auth/DenseSigninForm.js +0 -31
- package/dist/esm/src/components/auth/ForgotPasswordForm.js +0 -35
- package/dist/esm/src/components/auth/PasswordResetForm.js +0 -38
- package/dist/esm/src/components/auth/RegisterForm.js +0 -45
- package/dist/esm/src/components/auth/SigninForm.js +0 -58
- package/dist/esm/src/components/common/Address.js +0 -54
- package/dist/esm/src/components/common/AmountIndicator.js +0 -26
- package/dist/esm/src/components/common/AmountUpdater.js +0 -123
- package/dist/esm/src/components/common/Contacts.js +0 -31
- package/dist/esm/src/components/common/Dimensions.js +0 -18
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTable.js +0 -169
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTableFilterRow.js +0 -68
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTableHead.js +0 -30
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTableRow.js +0 -30
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTableToolbar.js +0 -32
- package/dist/esm/src/components/common/ImagePreviewTooltip.js +0 -30
- package/dist/esm/src/components/common/NumberInput.js +0 -48
- package/dist/esm/src/components/common/Pagination.js +0 -46
- package/dist/esm/src/components/common/TextualAmountUpdater.js +0 -50
- package/dist/esm/src/components/common/WeekPicker.js +0 -45
- package/dist/esm/src/components/common/cookie-consent/CookieConsentBanner.js +0 -25
- package/dist/esm/src/components/common/cookie-consent/CookieConsentButton.js +0 -20
- package/dist/esm/src/components/common/cookie-consent/CookieConsentButtonSmall.js +0 -34
- package/dist/esm/src/components/common/cookie-consent/CookieConsentContext.js +0 -55
- package/dist/esm/src/components/common/csv/CsvDownloader.js +0 -200
- package/dist/esm/src/components/common/markdown/MarkdownDisplay.js +0 -19
- package/dist/esm/src/components/common/markdown/MarkdownEditor.js +0 -35
- package/dist/esm/src/components/common/markdown/MarkdownTextField.js +0 -32
- package/dist/esm/src/components/common/media/DenseEditMediaForm.js +0 -37
- package/dist/esm/src/components/common/media/EditMediaDialog.js +0 -19
- package/dist/esm/src/components/common/media/MediaGrid.js +0 -33
- package/dist/esm/src/components/common/media/MediaItem.js +0 -36
- package/dist/esm/src/components/common/media/MediaLibraryDialog.js +0 -40
- package/dist/esm/src/components/common/media/UploadBase64MediaForm.js +0 -68
- package/dist/esm/src/components/common/media/UploadMediaForm.js +0 -77
- package/dist/esm/src/components/common/media/minio/MinioDeleteFormButton.js +0 -41
- package/dist/esm/src/components/common/media/minio/MinioDisplay.js +0 -22
- package/dist/esm/src/components/common/media/minio/MinioDownloadButton.js +0 -24
- package/dist/esm/src/components/common/media/minio/MinioItemList.js +0 -27
- package/dist/esm/src/components/common/media/minio/UploadMinioMediaForm.js +0 -146
- package/dist/esm/src/components/common/snackbar/GlobalSnackbar.js +0 -32
- package/dist/esm/src/components/common/socials/Socials.js +0 -29
- package/dist/esm/src/components/e-commerce/cart/AddToCartButton.client.js +0 -30
- package/dist/esm/src/components/e-commerce/cart/CartDisplay.js +0 -28
- package/dist/esm/src/components/e-commerce/cart/CartSummary.js +0 -32
- package/dist/esm/src/components/e-commerce/cart/CartSummaryRow.js +0 -37
- package/dist/esm/src/components/e-commerce/cart/CartWidget.js +0 -82
- package/dist/esm/src/components/e-commerce/cart/hooks.js +0 -19
- package/dist/esm/src/components/e-commerce/categories/AddCategoryForm.js +0 -55
- package/dist/esm/src/components/e-commerce/categories/CategorySelectorV2.js +0 -65
- package/dist/esm/src/components/e-commerce/categories/EditCategoryForm.js +0 -57
- package/dist/esm/src/components/e-commerce/checkout/CheckoutForm.js +0 -159
- package/dist/esm/src/components/e-commerce/checkout/Step1.js +0 -33
- package/dist/esm/src/components/e-commerce/checkout/Step2.js +0 -49
- package/dist/esm/src/components/e-commerce/checkout/Step3.js +0 -29
- package/dist/esm/src/components/e-commerce/checkout/Step4.js +0 -35
- package/dist/esm/src/components/e-commerce/checkout/Step5.js +0 -47
- package/dist/esm/src/components/e-commerce/customer/BusinessCredentials.js +0 -52
- package/dist/esm/src/components/e-commerce/customer/CustomerCompletenessWarning.js +0 -25
- package/dist/esm/src/components/e-commerce/customer/CustomerProfileDisplay.js +0 -64
- package/dist/esm/src/components/e-commerce/customer/CustomerProfileEditForm.js +0 -77
- package/dist/esm/src/components/e-commerce/customer/CustomerSelector.js +0 -42
- package/dist/esm/src/components/e-commerce/customer/DenseCustomerProfileDisplay.js +0 -42
- package/dist/esm/src/components/e-commerce/enduser/EnduserProfileDisplay.js +0 -33
- package/dist/esm/src/components/e-commerce/enduser/EnduserProfileEditForm.js +0 -61
- package/dist/esm/src/components/e-commerce/invoice/CreateInvoiceForm.js +0 -170
- package/dist/esm/src/components/e-commerce/invoice/InvoiceItemFields.js +0 -103
- package/dist/esm/src/components/e-commerce/iro/CreateIROForm.js +0 -58
- package/dist/esm/src/components/e-commerce/iro/IROItemFields.js +0 -109
- package/dist/esm/src/components/e-commerce/iro/IroItemDisplay.js +0 -18
- package/dist/esm/src/components/e-commerce/iro/IroItemUpdater.js +0 -49
- package/dist/esm/src/components/e-commerce/iro/IroStatusIndicator.js +0 -56
- package/dist/esm/src/components/e-commerce/iro/ManageIROForm.js +0 -60
- package/dist/esm/src/components/e-commerce/iro/RmaForm.js +0 -164
- package/dist/esm/src/components/e-commerce/iro/TextualIROItemUpdater.js +0 -58
- package/dist/esm/src/components/e-commerce/iro/TextualManageIROForm.js +0 -386
- package/dist/esm/src/components/e-commerce/opo/CreateOpoForm.js +0 -58
- package/dist/esm/src/components/e-commerce/opo/ManageOpoForm.js +0 -180
- package/dist/esm/src/components/e-commerce/opo/OPOItemFields.js +0 -84
- package/dist/esm/src/components/e-commerce/opo/OpoDisplay.js +0 -22
- package/dist/esm/src/components/e-commerce/opo/OpoItemDisplay.js +0 -18
- package/dist/esm/src/components/e-commerce/opo/OpoItemUpdater.js +0 -61
- package/dist/esm/src/components/e-commerce/opo/OpoStatusIndicator.js +0 -55
- package/dist/esm/src/components/e-commerce/opo/OpoSummary.js +0 -30
- package/dist/esm/src/components/e-commerce/opo/OpoSummaryRow.js +0 -18
- package/dist/esm/src/components/e-commerce/opo/PaymentStatusIndicator.js +0 -27
- package/dist/esm/src/components/e-commerce/opo/ShippingStatusIndicator.js +0 -27
- package/dist/esm/src/components/e-commerce/opo/TextualManageOpoForm.js +0 -201
- package/dist/esm/src/components/e-commerce/opo/TextualOpoItemUpdater.js +0 -55
- package/dist/esm/src/components/e-commerce/products/AddProductForm.js +0 -91
- package/dist/esm/src/components/e-commerce/products/EditProductForm.js +0 -102
- package/dist/esm/src/components/e-commerce/products/EditReturnStockForm.js +0 -82
- package/dist/esm/src/components/e-commerce/products/EditStockForm.js +0 -107
- package/dist/esm/src/components/e-commerce/products/Price.js +0 -18
- package/dist/esm/src/components/e-commerce/products/PriceFields.js +0 -46
- package/dist/esm/src/components/e-commerce/products/ProductCard.js +0 -49
- package/dist/esm/src/components/e-commerce/products/ProductCategoryCard.js +0 -40
- package/dist/esm/src/components/e-commerce/products/ProductSelector.js +0 -65
- package/dist/esm/src/components/e-commerce/products/SingleProduct.js +0 -92
- package/dist/esm/src/components/layout/Footer.js +0 -116
- package/dist/esm/src/components/layout/Navbar.js +0 -144
- package/dist/esm/src/components/layout/NavbarV2.js +0 -171
- package/dist/esm/src/components/layout/SideNav.js +0 -154
- package/dist/esm/src/components/logistics/dispatcher/DispatcherProfileDisplay.js +0 -41
- package/dist/esm/src/components/logistics/dispatcher/DispatcherProfileEditForm.js +0 -65
- package/dist/esm/src/components/logistics/ipo/AddIPOForm.js +0 -80
- package/dist/esm/src/components/logistics/ipo/IPOItemFields.js +0 -127
- package/dist/esm/src/components/logistics/ipo/IPOItemUpdater.js +0 -47
- package/dist/esm/src/components/logistics/ipo/IpoStatusIndicator.js +0 -55
- package/dist/esm/src/components/logistics/ipo/ItemDisplay.js +0 -17
- package/dist/esm/src/components/logistics/ipo/ManageIPOForm.js +0 -99
- package/dist/esm/src/components/logistics/ipo/TextualIPOItemUpdater.js +0 -56
- package/dist/esm/src/components/logistics/ipo/TextualManageIPOForm.js +0 -234
- package/dist/esm/src/components/logistics/note/NoteTakingComponent.js +0 -88
- package/dist/esm/src/components/logistics/note/NotesDisplay.js +0 -24
- package/dist/esm/src/components/logistics/report/PreReportsDisplay.js +0 -23
- package/dist/esm/src/components/logistics/report/ReportMakingComponent.js +0 -85
- package/dist/esm/src/components/logistics/report/ReportsDisplay.js +0 -39
- package/dist/esm/src/components/logistics/report/ReportsWarning.js +0 -16
- package/dist/esm/src/components/logistics/report/SimpleReportFields.js +0 -46
- package/dist/esm/src/components/logistics/vendor/AddVendorForm.js +0 -126
- package/dist/esm/src/components/logistics/vendor/EditVendorForm.js +0 -208
- package/dist/esm/src/components/logistics/vendor/VendorDisplay.js +0 -39
- package/dist/esm/src/components/logistics/vendor/VendorSelector.js +0 -30
- package/dist/esm/src/components/page-builder/PBCategoryBlock.js +0 -40
- package/dist/esm/src/components/page-builder/PBColumnsSection.js +0 -45
- package/dist/esm/src/components/page-builder/PBFeaturesSection.js +0 -78
- package/dist/esm/src/components/page-builder/PBFleetSection.js +0 -70
- package/dist/esm/src/components/page-builder/PBHeroSection.js +0 -112
- package/dist/esm/src/components/page-builder/PBIconSection.js +0 -38
- package/dist/esm/src/components/page-builder/PBLogoBarSection.js +0 -48
- package/dist/esm/src/components/page-builder/PBPersonaliaSection.js +0 -75
- package/dist/esm/src/components/page-builder/PBPictureBarSection.js +0 -34
- package/dist/esm/src/components/page-builder/PBProductBlock.js +0 -27
- package/dist/esm/src/components/page-builder/PBTextImageSection.js +0 -97
- package/dist/esm/src/components/page-builder/PageBuilder.js +0 -94
- package/dist/esm/src/components/page-elements/CategoryBlock.js +0 -35
- package/dist/esm/src/components/page-elements/ColumnsSection.js +0 -45
- package/dist/esm/src/components/page-elements/FeaturesSection.js +0 -57
- package/dist/esm/src/components/page-elements/FleetSection.js +0 -66
- package/dist/esm/src/components/page-elements/HeroSectionV2.js +0 -36
- package/dist/esm/src/components/page-elements/IconSection.js +0 -38
- package/dist/esm/src/components/page-elements/LogoBarSection.js +0 -48
- package/dist/esm/src/components/page-elements/Page.js +0 -65
- package/dist/esm/src/components/page-elements/PersonaliaSection.js +0 -163
- package/dist/esm/src/components/page-elements/PictureBarSection.js +0 -34
- package/dist/esm/src/components/page-elements/ProductBlock.js +0 -27
- package/dist/esm/src/components/page-elements/TextImageSection.js +0 -96
- package/dist/esm/src/components/public-information/PublicInformationForm.js +0 -127
- package/dist/esm/src/context/auth/SessionContext.js +0 -143
- package/dist/esm/src/context/common/SnackbarContext.js +0 -74
- package/dist/esm/src/context/e-commerce/cart/CartContext.js +0 -102
- package/dist/esm/src/context/e-commerce/checkout/CheckoutContext.js +0 -140
- package/dist/esm/src/data/actions/auth-actions.js +0 -214
- package/dist/esm/src/data/actions/e-commerce/categories/createCategoryAction.js +0 -49
- package/dist/esm/src/data/actions/e-commerce/categories/updateCategoryAction.js +0 -49
- package/dist/esm/src/data/actions/e-commerce/checkout-action.js +0 -93
- package/dist/esm/src/data/actions/e-commerce/enduser/profile-actions.js +0 -41
- package/dist/esm/src/data/actions/e-commerce/invoices/createInvoiceAction.js +0 -48
- package/dist/esm/src/data/actions/e-commerce/iro/createIroAction.js +0 -59
- package/dist/esm/src/data/actions/e-commerce/iro/requestRmaAction.js +0 -51
- package/dist/esm/src/data/actions/e-commerce/iro/updateIroAction.js +0 -43
- package/dist/esm/src/data/actions/e-commerce/lead/contactFormAction.js +0 -77
- package/dist/esm/src/data/actions/e-commerce/opo/createOpoAction.js +0 -46
- package/dist/esm/src/data/actions/e-commerce/opo/updateOpoAction.js +0 -43
- package/dist/esm/src/data/actions/e-commerce/product/createProductAction.js +0 -62
- package/dist/esm/src/data/actions/e-commerce/product/updateProductAction.js +0 -58
- package/dist/esm/src/data/actions/logistics/dispatcher/profile-actions.js +0 -41
- package/dist/esm/src/data/actions/logistics/ipo/createIPOAction.js +0 -68
- package/dist/esm/src/data/actions/logistics/ipo/updateIpoAction.js +0 -41
- package/dist/esm/src/data/actions/logistics/note/createNoteAction.js +0 -77
- package/dist/esm/src/data/actions/logistics/report/createReportAction.js +0 -53
- package/dist/esm/src/data/actions/logistics/vendor/createVendorAction.js +0 -60
- package/dist/esm/src/data/actions/logistics/vendor/updateVendorAction.js +0 -63
- package/dist/esm/src/data/actions/media/minio/deleteMinioMediaAction.js +0 -47
- package/dist/esm/src/data/actions/media/minio/uploadMinioMediaAction.js +0 -95
- package/dist/esm/src/data/actions/media/updateMediaAction.js +0 -40
- package/dist/esm/src/data/actions/media/uploadBase64MediaAction.js +0 -112
- package/dist/esm/src/data/actions/media/uploadMediaAction.js +0 -79
- package/dist/esm/src/data/actions/pagebuilder-actions.js +0 -153
- package/dist/esm/src/data/actions/profile-actions.js +0 -49
- package/dist/esm/src/data/actions/public-information/updatePublicInformationAction.js +0 -42
- package/dist/esm/src/data/loaders/common/media/downloadBase64File.js +0 -51
- package/dist/esm/src/data/loaders/common/media/getAllMedia.js +0 -17
- package/dist/esm/src/data/loaders/common/media/minio/downloadMinioItemClient.js +0 -39
- package/dist/esm/src/data/loaders/common/media/minio/getAllMinioMedia.js +0 -36
- package/dist/esm/src/data/loaders/common/media/minio/getAllMinioReferences.js +0 -33
- package/dist/esm/src/data/loaders/common/media/minio/getMinioSignedUrl.js +0 -50
- package/dist/esm/src/data/loaders/e-commerce/getAllCategoryNames.js +0 -26
- package/dist/esm/src/data/loaders/e-commerce/getAllCustomers.js +0 -40
- package/dist/esm/src/data/loaders/e-commerce/getAllInvoices.js +0 -55
- package/dist/esm/src/data/loaders/e-commerce/getAllOpos.js +0 -91
- package/dist/esm/src/data/loaders/e-commerce/getCustomerLabels.js +0 -42
- package/dist/esm/src/data/loaders/e-commerce/getCustomerModel.js +0 -19
- package/dist/esm/src/data/loaders/e-commerce/getOpoModel.js +0 -19
- package/dist/esm/src/data/loaders/e-commerce/getPaginatedCategories.js +0 -50
- package/dist/esm/src/data/loaders/e-commerce/getProductModel.js +0 -19
- package/dist/esm/src/data/loaders/e-commerce/getProductNames.js +0 -27
- package/dist/esm/src/data/loaders/e-commerce/getSalesData.js +0 -17
- package/dist/esm/src/data/loaders/e-commerce/getShop.js +0 -38
- package/dist/esm/src/data/loaders/e-commerce/getSingleCategory.js +0 -50
- package/dist/esm/src/data/loaders/e-commerce/getSingleCustomer.js +0 -39
- package/dist/esm/src/data/loaders/e-commerce/getSingleOpo.js +0 -49
- package/dist/esm/src/data/loaders/e-commerce/getSingleProduct.js +0 -53
- package/dist/esm/src/data/loaders/e-commerce/getSingleReturnStock.js +0 -21
- package/dist/esm/src/data/loaders/e-commerce/getSingleStock.js +0 -20
- package/dist/esm/src/data/loaders/e-commerce/getTableProducts.js +0 -48
- package/dist/esm/src/data/loaders/e-commerce/iros/getAllIros.js +0 -86
- package/dist/esm/src/data/loaders/e-commerce/iros/getIroModel.js +0 -19
- package/dist/esm/src/data/loaders/e-commerce/iros/getSingleIro.js +0 -49
- package/dist/esm/src/data/loaders/e-commerce/iros/queryAllIros.js +0 -23
- package/dist/esm/src/data/loaders/e-commerce/queryAllCustomers.js +0 -22
- package/dist/esm/src/data/loaders/e-commerce/queryAllOpos.js +0 -23
- package/dist/esm/src/data/loaders/e-commerce/queryAllProducts.js +0 -23
- package/dist/esm/src/data/loaders/e-commerce-loaders.js +0 -66
- package/dist/esm/src/data/loaders/loaders.js +0 -206
- package/dist/esm/src/data/loaders/logistics/getIpoModel.js +0 -19
- package/dist/esm/src/data/loaders/logistics/getIpoNames.js +0 -31
- package/dist/esm/src/data/loaders/logistics/getSingleIpo.js +0 -55
- package/dist/esm/src/data/loaders/logistics/getSingleVendor.js +0 -31
- package/dist/esm/src/data/loaders/logistics/getTableIpos.js +0 -64
- package/dist/esm/src/data/loaders/logistics/getTableVendors.js +0 -50
- package/dist/esm/src/data/loaders/logistics/getVendorModel.js +0 -19
- package/dist/esm/src/data/loaders/logistics/getVendorNames.js +0 -31
- package/dist/esm/src/data/loaders/logistics/queryAllIpos.js +0 -21
- package/dist/esm/src/data/loaders/logistics/queryAllVendors.js +0 -21
- package/dist/esm/src/data/loaders/page-builder/getTablePages.js +0 -34
- package/dist/esm/src/data/loaders/page-elements/getSinglePage.js +0 -124
- package/dist/esm/src/data/loaders/public-information/getPublicInformation.js +0 -27
- package/dist/esm/src/data/loaders/user/getUserMeLoader.js +0 -51
- package/dist/esm/src/data/services/archive-service.js +0 -66
- package/dist/esm/src/data/services/auth-service.js +0 -97
- package/dist/esm/src/data/services/common/cancellation-service.js +0 -41
- package/dist/esm/src/data/services/common/confirmation-service.js +0 -41
- package/dist/esm/src/data/services/common/media/minio/minioDeleteService.js +0 -33
- package/dist/esm/src/data/services/common/media/minio/minioUploadService.js +0 -49
- package/dist/esm/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +0 -55
- package/dist/esm/src/data/services/file-service.js +0 -55
- package/dist/esm/src/data/services/get-token.js +0 -16
- package/dist/esm/src/data/services/get-user-me-loader.js +0 -163
- package/dist/esm/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +0 -65
- package/dist/esm/src/data/services/mutate-data.js +0 -35
- package/dist/esm/src/index.js +0 -225
- package/dist/esm/src/lib/APIcon.js +0 -14
- package/dist/esm/src/lib/AmbulanceIcon.js +0 -14
- package/dist/esm/src/lib/areBusinessCredentialsComplete.js +0 -23
- package/dist/esm/src/lib/deleteCookie.js +0 -17
- package/dist/esm/src/lib/eoriValidate.js +0 -62
- package/dist/esm/src/lib/getCookie.js +0 -15
- package/dist/esm/src/lib/getIcon.js +0 -102
- package/dist/esm/src/lib/isAddressComplete.js +0 -26
- package/dist/esm/src/lib/isCustomerProfileComplete.js +0 -35
- package/dist/esm/src/lib/isCustomerProfileCompleteEnough.js +0 -25
- package/dist/esm/src/lib/isCustomerProfileCompleteV2.js +0 -32
- package/dist/esm/src/lib/isEORIValid.js +0 -21
- package/dist/esm/src/lib/isVATValid.js +0 -21
- package/dist/esm/src/lib/molliePaymentProvider.js +0 -45
- package/dist/esm/src/lib/parseFormData.js +0 -82
- package/dist/esm/src/lib/parseNavigation.js +0 -53
- package/dist/esm/src/lib/processFilters.js +0 -45
- package/dist/esm/src/lib/setCookie.js +0 -13
- package/dist/esm/src/lib/utils.js +0 -166
- package/dist/esm/src/lib/vatValidate.js +0 -98
- package/dist/esm/src/types/common/Contact.js +0 -15
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { useActionState, Fragment } from 'react';
|
|
10
|
-
import Paper from '@mui/material/Paper';
|
|
11
|
-
import Stack from '@mui/material/Stack';
|
|
12
|
-
import Alert from '@mui/material/Alert';
|
|
13
|
-
import Button from '@mui/material/Button';
|
|
14
|
-
import Typography from '@mui/material/Typography';
|
|
15
|
-
import { useClientSideCart } from '../cart/hooks.js';
|
|
16
|
-
import CartSummary from '../cart/CartSummary.js';
|
|
17
|
-
import { checkoutAction } from '../../../data/actions/e-commerce/checkout-action.js';
|
|
18
|
-
import { StrapiErrors } from '../../StrapiErrors.js';
|
|
19
|
-
|
|
20
|
-
function Step4({ customer_reference }) {
|
|
21
|
-
const { state, isClient } = useClientSideCart();
|
|
22
|
-
const INITIAL_STATE = {
|
|
23
|
-
zodErrors: null,
|
|
24
|
-
strapiErrors: null,
|
|
25
|
-
data: null,
|
|
26
|
-
message: null,
|
|
27
|
-
};
|
|
28
|
-
const [formState, formAction] = useActionState(checkoutAction, INITIAL_STATE);
|
|
29
|
-
return (jsx(Paper, { sx: { p: 2 }, children: jsxs(Stack, { spacing: 2, children: [jsx(CartSummary, {}), jsx(StrapiErrors, { error: formState?.strapiErrors }), formState?.message && (jsx(Alert, { severity: "error", children: formState?.message })), jsxs(Typography, { children: ["Please double check all details prior to payment. ", customer_reference] }), jsx(Typography, { children: "Is this order compleet?" }), jsxs("form", { id: "paymentform", action: formAction, children: [state.items &&
|
|
30
|
-
state.items.map((item, index) => {
|
|
31
|
-
return (jsxs(Fragment, { children: [jsx("input", { type: "hidden", name: `opo_items[${index}].product`, value: item.documentId }), jsx("input", { type: "hidden", name: `opo_items[${index}].ordered_quantity`, value: item.quantity })] }, index));
|
|
32
|
-
}), jsx("input", { type: "hidden", name: "customer_reference", value: customer_reference }), jsx(Typography, { children: "Please click 'Proceed to payment' to proceed to the secure payment page. After completing the payment, you will automatically return to our shop. For any updates on this order, you can always access the latest information in your personal details." }), jsx(Button, { variant: "contained", form: "paymentform", type: "submit", children: "Proceed to payment" })] })] }) }));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { Step4 as default };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { useState, useEffect } from 'react';
|
|
9
|
-
import { getSingleOrderByUuid } from '../../../data/loaders/e-commerce-loaders.js';
|
|
10
|
-
import { useSearchParams } from 'next/navigation';
|
|
11
|
-
import OpoDisplay from '../opo/OpoDisplay.js';
|
|
12
|
-
import Paper from '@mui/material/Paper';
|
|
13
|
-
import Stack from '@mui/material/Stack';
|
|
14
|
-
import Typography from '@mui/material/Typography';
|
|
15
|
-
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
16
|
-
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
17
|
-
import ListAltIcon from '@mui/icons-material/ListAlt';
|
|
18
|
-
import AccountCircleIcon from '@mui/icons-material/AccountCircle';
|
|
19
|
-
import { useTheme } from '@mui/material/styles';
|
|
20
|
-
|
|
21
|
-
function Step5() {
|
|
22
|
-
const searchParams = useSearchParams();
|
|
23
|
-
const [orderData, setOrderData] = useState(null);
|
|
24
|
-
const orderUuid = searchParams !== null ? searchParams.get("order") : null;
|
|
25
|
-
const theme = useTheme();
|
|
26
|
-
const medium = useMediaQuery(theme.breakpoints.down("md"));
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
async function getOrder() {
|
|
29
|
-
if (orderUuid) {
|
|
30
|
-
const data = await getSingleOrderByUuid(orderUuid);
|
|
31
|
-
setOrderData(data.error ? null : data);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
getOrder();
|
|
35
|
-
}, [orderUuid]);
|
|
36
|
-
if (!orderUuid || orderData === null) {
|
|
37
|
-
// redirect to step 4;
|
|
38
|
-
return jsx("div", { children: "No order to display..." });
|
|
39
|
-
}
|
|
40
|
-
if (!orderData) {
|
|
41
|
-
// Render a loading state or return null if you prefer not to render anything
|
|
42
|
-
return jsx("div", { children: "Loading..." });
|
|
43
|
-
}
|
|
44
|
-
return (jsx(Paper, { sx: { p: 2 }, children: jsxs(Stack, { spacing: 2, children: [orderData && jsx(OpoDisplay, { opo: orderData }), jsx(Typography, { variant: "h6", children: "Thank you for shopping with us!" }), jsx(Typography, { children: "You are always able to access your information and documents in your personal details." }), medium ? (jsxs(Typography, { children: ["Click on the ", jsx(MoreVertIcon, { sx: { verticalAlign: "middle" } }), " icon in the top-right bottom of the screen, then click on", " ", jsx(ListAltIcon, { sx: { verticalAlign: "middle" } }), " Orders"] })) : (jsxs(Typography, { children: ["Hover over the", " ", jsx(AccountCircleIcon, { sx: { verticalAlign: "middle" } }), " icon in the top-right corner of the screen, then click on", " ", jsx(ListAltIcon, { sx: { verticalAlign: "middle" } }), " Orders"] }))] }) }));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { Step5 as default };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
import { useState, useEffect } from 'react';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
|
-
import Stack from '@mui/material/Stack';
|
|
12
|
-
import Box from '@mui/material/Box';
|
|
13
|
-
import TextField from '@mui/material/TextField';
|
|
14
|
-
import BusinessCenterIcon from '@mui/icons-material/BusinessCenter';
|
|
15
|
-
|
|
16
|
-
// TODO Move this to common
|
|
17
|
-
// TODO Add eori-number to cms
|
|
18
|
-
function BusinessCredentials({ data, }) {
|
|
19
|
-
const { company_name, business_entity_name, coc_number, vat_number, eori_number, vat_valid, eori_valid, } = data;
|
|
20
|
-
return (jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(BusinessCenterIcon, {}), jsxs(Box, { children: [jsx(Typography, { variant: "h6", component: "p", children: company_name }), jsx(Typography, { variant: "body2", component: "p", children: business_entity_name }), jsx(Typography, { variant: "body2", component: "p", children: coc_number }), jsxs(Stack, { direction: "row", spacing: 1, children: [jsx(Typography, { variant: "body2", component: "p", children: vat_number }), vat_valid === false && (jsx(Typography, { variant: "body2", component: "p", color: "red", children: "Could not validate VAT number" }))] }), jsxs(Stack, { direction: "row", spacing: 1, children: [jsx(Typography, { variant: "body2", component: "p", children: eori_number }), eori_valid === false && (jsx(Typography, { variant: "body2", component: "p", color: "red", children: "Could not validate EORI number" }))] })] })] }));
|
|
21
|
-
}
|
|
22
|
-
// TODO Move this out of here
|
|
23
|
-
function BusinessCredentialsFields({ data, componentName, componentReference, disabled = false, }) {
|
|
24
|
-
const [formData, setFormData] = useState({
|
|
25
|
-
/* [`${componentName}id`]: data?.id || "", */
|
|
26
|
-
[`${componentName}.company_name`]: data?.company_name || "",
|
|
27
|
-
[`${componentName}.business_entity_name`]: data?.business_entity_name || "",
|
|
28
|
-
[`${componentName}.coc_number`]: data?.coc_number || "",
|
|
29
|
-
[`${componentName}.vat_number`]: data?.vat_number || "",
|
|
30
|
-
[`${componentName}.eori_number`]: data?.eori_number || "",
|
|
31
|
-
});
|
|
32
|
-
const handleChange = (e) => {
|
|
33
|
-
const { name, value } = e.target;
|
|
34
|
-
setFormData((prevData) => ({
|
|
35
|
-
...prevData,
|
|
36
|
-
[name]: value,
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
setFormData({
|
|
41
|
-
/* [`${componentName}.id`]: data?.id || "", */
|
|
42
|
-
[`${componentName}.company_name`]: data?.company_name || "",
|
|
43
|
-
[`${componentName}.business_entity_name`]: data?.business_entity_name || "",
|
|
44
|
-
[`${componentName}.coc_number`]: data?.coc_number || "",
|
|
45
|
-
[`${componentName}.vat_number`]: data?.vat_number || "",
|
|
46
|
-
[`${componentName}.eori_number`]: data?.eori_number || "",
|
|
47
|
-
});
|
|
48
|
-
}, [data]);
|
|
49
|
-
return (jsxs(Stack, { spacing: 1, direction: "row", children: [jsx(BusinessCenterIcon, {}), jsxs(Stack, { spacing: 1, sx: { flex: 1 }, children: [jsx(TextField, { id: "company_name", name: `${componentName}.company_name`, label: "Company Name", value: formData[`${componentName}.company_name`], onChange: handleChange, disabled: disabled }), jsx(TextField, { id: "business_entity_name", name: `${componentName}.business_entity_name`, label: "Business Entity Name", value: formData[`${componentName}.business_entity_name`], onChange: handleChange, disabled: disabled }), jsx(TextField, { id: "coc_number", name: `${componentName}.coc_number`, label: "CoC Number", value: formData[`${componentName}.coc_number`], onChange: handleChange, disabled: disabled }), jsx(TextField, { id: "vat_number", name: `${componentName}.vat_number`, label: "VAT Number", value: formData[`${componentName}.vat_number`], onChange: handleChange, disabled: disabled }), jsx(TextField, { id: "eori_number", name: `${componentName}.eori_number`, label: "EORI Number", value: formData[`${componentName}.eori_number`], onChange: handleChange, disabled: disabled })] })] }));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { BusinessCredentialsFields, BusinessCredentials as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
-
import Tooltip from '@mui/material/Tooltip';
|
|
9
|
-
import Typography from '@mui/material/Typography';
|
|
10
|
-
import List from '@mui/material/List';
|
|
11
|
-
import ListItem from '@mui/material/ListItem';
|
|
12
|
-
import PriorityHighIcon from '@mui/icons-material/PriorityHigh';
|
|
13
|
-
import { isCustomerProfileCompleteV2 } from '../../../lib/isCustomerProfileCompleteV2.js';
|
|
14
|
-
|
|
15
|
-
const CustomerCompletenessWarning = ({ customer, }) => {
|
|
16
|
-
const customerCompleteness = isCustomerProfileCompleteV2(customer);
|
|
17
|
-
return (jsxs(Fragment, { children: [" ", !Object.values(customerCompleteness).every(Boolean) && (jsx(Tooltip, { title: jsxs(Fragment, { children: [jsx(Typography, { variant: "h6", children: "Customer Profile Incomplete" }), jsx(Typography, { variant: "body2", children: "Please be extra careful when processing this order" }), jsx(List, { dense: true, children: Object.entries(customerCompleteness).map(([key, value]) => {
|
|
18
|
-
if (!value) {
|
|
19
|
-
return (jsxs(ListItem, { children: [jsx(PriorityHighIcon, { color: "error" }), " ", key] }, key));
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
}) })] }), children: jsx(PriorityHighIcon, { color: "error" }) }))] }));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { CustomerCompletenessWarning as default };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
import Paper from '@mui/material/Paper';
|
|
10
|
-
import Stack from '@mui/material/Stack';
|
|
11
|
-
import Box from '@mui/material/Box';
|
|
12
|
-
import Typography from '@mui/material/Typography';
|
|
13
|
-
import Button from '@mui/material/Button';
|
|
14
|
-
import Grid from '@mui/material/Grid';
|
|
15
|
-
import Table from '@mui/material/Table';
|
|
16
|
-
import TableBody from '@mui/material/TableBody';
|
|
17
|
-
import TableCell from '@mui/material/TableCell';
|
|
18
|
-
import TableHead from '@mui/material/TableHead';
|
|
19
|
-
import TableRow from '@mui/material/TableRow';
|
|
20
|
-
import Divider from '@mui/material/Divider';
|
|
21
|
-
import PersonIcon from '@mui/icons-material/Person';
|
|
22
|
-
import EmailIcon from '@mui/icons-material/Email';
|
|
23
|
-
import PhoneIcon from '@mui/icons-material/Phone';
|
|
24
|
-
import Address from '../../common/Address.js';
|
|
25
|
-
import BusinessCredentials from './BusinessCredentials.js';
|
|
26
|
-
import { StyledLink } from '../../StyledLink.js';
|
|
27
|
-
import { Alert } from '@mui/material';
|
|
28
|
-
import { usePathname } from 'next/navigation';
|
|
29
|
-
|
|
30
|
-
/** INFO
|
|
31
|
-
* CustomerProfileDisplay is a component that displays customer profile information.
|
|
32
|
-
* This component is used in the frontend to display customer profile information
|
|
33
|
-
* but is also used to display user information in the admin panel.
|
|
34
|
-
* Only a logged in frontend customer role can edit their profile.
|
|
35
|
-
*/
|
|
36
|
-
function CustomerProfileDisplay({ data, }) {
|
|
37
|
-
const { first_name, last_name, email, phone, company_address, billing_address, delivery_address, business_credentials, editProfileUrl = "/user/profile/edit", completeEnough = false, orders, returns, } = data;
|
|
38
|
-
if (!data) {
|
|
39
|
-
return (jsx(Stack, { spacing: 2, children: jsx(Typography, { children: "Customer profile not available" }) }));
|
|
40
|
-
}
|
|
41
|
-
const pathname = usePathname();
|
|
42
|
-
const isCustomer = pathname.includes("/user/");
|
|
43
|
-
return (jsxs(Grid, { container: true, sx: { width: "100%" }, spacing: 2, children: [jsx(Grid, { size: 12, children: jsxs(Stack, { spacing: 2, children: [jsxs(Stack, { direction: "row", spacing: 2, justifyContent: "space-between", children: [jsxs(Stack, { spacing: 2, sx: { width: "100%" }, children: [jsx(Typography, { variant: "h3", component: "h1", children: isCustomer ? "Your Profile" : "Customer Profile" }), !isCustomer && data.customer_number && (jsxs(Typography, { variant: "body1", children: ["Customer Number: ", jsx("strong", { children: data.customer_number })] }))] }), isCustomer && (jsx(Fragment, { children: !Boolean(completeEnough) ? (jsx(Alert, { severity: "warning", action: jsx(StyledLink, { href: editProfileUrl, target: "_self", children: jsx(Button, { variant: "contained", children: "complete profile" }) }), children: "After completion of your profile you can enjoy all the benefits of your services." })) : (jsx(Stack, { direction: "row", justifyContent: "flex-end", children: jsx(StyledLink, { href: editProfileUrl, target: "_self", children: jsx(Button, { variant: "contained", children: "edit profile" }) }) })) }))] }), jsx(Divider, {})] }) }), jsxs(Grid, { size: 12, children: [business_credentials ? (jsx(BusinessCredentials, { data: business_credentials })) : (jsx(Typography, { children: "Business credentials not available" })), jsx(Divider, { sx: { pt: 2 } })] }), jsxs(Grid, { size: 12, children: [jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(PersonIcon, {}), jsx(Box, { children: jsxs(Typography, { variant: "body1", component: "p", children: [first_name, " ", last_name, " ", !first_name && !last_name && "N/A"] }) })] }), jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(EmailIcon, {}), jsx(Box, { children: jsxs(Typography, { variant: "body1", component: "p", children: [email, " ", !email && "N/A"] }) })] }), jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(PhoneIcon, {}), jsx(Box, { children: jsxs(Typography, { variant: "body1", component: "p", children: [phone, " ", !phone && "N/A"] }) })] }), jsx(Divider, { sx: { pt: 2 } })] }), company_address ? (jsxs(Grid, { size: {
|
|
44
|
-
xs: 12,
|
|
45
|
-
md: 4
|
|
46
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Company Address" }), jsx(Address, { data: { ...company_address } })] })) : (jsx(Grid, { size: {
|
|
47
|
-
xs: 12,
|
|
48
|
-
md: 4
|
|
49
|
-
}, children: jsx(Typography, { children: "Company address not available" }) })), delivery_address ? (jsxs(Grid, { size: {
|
|
50
|
-
xs: 12,
|
|
51
|
-
md: 4
|
|
52
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Delivery Address" }), jsx(Address, { data: { ...delivery_address } })] })) : (jsx(Grid, { size: {
|
|
53
|
-
xs: 12,
|
|
54
|
-
md: 4
|
|
55
|
-
}, children: jsx(Typography, { children: "Delivery address not available" }) })), billing_address ? (jsxs(Grid, { size: {
|
|
56
|
-
xs: 12,
|
|
57
|
-
md: 4
|
|
58
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Billing Address" }), jsx(Address, { data: { ...billing_address } })] })) : (jsx(Grid, { size: {
|
|
59
|
-
xs: 12,
|
|
60
|
-
md: 4
|
|
61
|
-
}, children: jsx(Typography, { children: "Billing address not available" }) })), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", gutterBottom: true, children: "Orders" }), jsx(Paper, { children: orders && orders.length > 0 ? (jsxs(Table, { children: [jsx(TableHead, { children: jsxs(TableRow, { children: [jsx(TableCell, { children: "Order Number" }), jsx(TableCell, { children: "Date" }), jsx(TableCell, { children: "Status" }), jsx(TableCell, { align: "right", children: "Total" }), jsx(TableCell, { align: "right", children: "Actions" })] }) }), jsx(TableBody, { children: orders.map((order, index) => (jsxs(TableRow, { children: [jsx(TableCell, { children: order.opo_number }), jsx(TableCell, { children: new Date(order.order_date).toLocaleDateString() }), jsx(TableCell, { children: order.internal_status }), jsxs(TableCell, { align: "right", children: [order.total_incl_vat, " ", order.order_currency] }), jsx(TableCell, { align: "right", children: isCustomer ? (jsx(StyledLink, { href: `/user/orders?selectedOpoId=${order.documentId}`, target: "_self", children: jsx(Button, { variant: "contained", size: "small", children: "View" }) })) : (jsx(StyledLink, { href: `/dashboard/admin/e-commerce/opos?selectedOpoId=${order.documentId}`, target: "_self", children: jsx(Button, { variant: "contained", size: "small", children: "View" }) })) })] }, index))) })] })) : (jsx(Box, { p: 2, children: isCustomer ? (jsx(Typography, { children: "You have no orders." })) : (jsx(Typography, { children: "This user has no orders." })) })) })] }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", gutterBottom: true, children: "Returns" }), jsx(Paper, { children: returns && returns.length > 0 ? (jsxs(Table, { children: [jsx(TableHead, { children: jsxs(TableRow, { children: [jsx(TableCell, { children: "Return Number" }), jsx(TableCell, { children: "RMA Number" }), jsx(TableCell, { children: "Date" }), jsx(TableCell, { children: "Status" }), jsx(TableCell, { align: "right", children: "Actions" })] }) }), jsx(TableBody, { children: returns.map((iro, index) => (jsxs(TableRow, { children: [jsx(TableCell, { children: iro.return_number }), jsx(TableCell, { children: iro.rma_number }), jsx(TableCell, { children: new Date(iro.return_date).toLocaleDateString() }), jsx(TableCell, { children: iro.internal_status }), jsx(TableCell, { align: "right", children: isCustomer ? (jsx(StyledLink, { href: `/user/returns?selectedIroId=${iro.documentId}`, target: "_self", children: jsx(Button, { variant: "contained", size: "small", children: "View" }) })) : (jsx(StyledLink, { href: `/dashboard/admin/e-commerce/iros?selectedIroId=${iro.documentId}`, target: "_self", children: jsx(Button, { variant: "contained", size: "small", children: "View" }) })) })] }, index))) })] })) : (jsx(Box, { p: 2, children: isCustomer ? (jsx(Typography, { children: "You have no returns." })) : (jsx(Typography, { children: "This user has no returns." })) })) })] })] }));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { CustomerProfileDisplay as default };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import Box from '@mui/material/Box';
|
|
10
|
-
import Stack from '@mui/material/Stack';
|
|
11
|
-
import Grid from '@mui/material/Grid';
|
|
12
|
-
import Divider from '@mui/material/Divider';
|
|
13
|
-
import TextField from '@mui/material/TextField';
|
|
14
|
-
import Typography from '@mui/material/Typography';
|
|
15
|
-
import Checkbox from '@mui/material/Checkbox';
|
|
16
|
-
import Button from '@mui/material/Button';
|
|
17
|
-
import { AddressFields } from '../../common/Address.js';
|
|
18
|
-
import { SubmitButton } from '../../SubmitButton.js';
|
|
19
|
-
import { useActionState, useState, useEffect } from 'react';
|
|
20
|
-
import { updateCustomerProfileAction } from '../../../data/actions/profile-actions.js';
|
|
21
|
-
import { BusinessCredentialsFields } from './BusinessCredentials.js';
|
|
22
|
-
import { useSession } from '../../../context/auth/SessionContext.js';
|
|
23
|
-
import { useSnackbar } from '../../../context/common/SnackbarContext.js';
|
|
24
|
-
|
|
25
|
-
const INITIAL_STATE = {
|
|
26
|
-
zodErrors: null,
|
|
27
|
-
strapiErrors: null,
|
|
28
|
-
data: null,
|
|
29
|
-
message: null,
|
|
30
|
-
severity: null,
|
|
31
|
-
};
|
|
32
|
-
/* interface CustomerProfileProps {
|
|
33
|
-
id: string;
|
|
34
|
-
uuid: string;
|
|
35
|
-
customer_number: string;
|
|
36
|
-
first_name: string;
|
|
37
|
-
last_name: string;
|
|
38
|
-
email: string;
|
|
39
|
-
phone: string;
|
|
40
|
-
company_address: AddressProps;
|
|
41
|
-
delivery_address: AddressProps;
|
|
42
|
-
billing_address: AddressProps;
|
|
43
|
-
business_credentials: BusinessCredentialsProps;
|
|
44
|
-
} */
|
|
45
|
-
function CustomerProfileEditForm({ data, sx, revalidateCallback, handleClose, }) {
|
|
46
|
-
const { documentId, uuid, customer_number, first_name, last_name, email, phone, company_address, delivery_address, billing_address, business_credentials, } = data;
|
|
47
|
-
const boundAction = updateCustomerProfileAction.bind(null, documentId);
|
|
48
|
-
const [formState, formAction] = useActionState(boundAction, INITIAL_STATE);
|
|
49
|
-
const [withDeliveryAddress, setWithDeliveryAddress] = useState(typeof delivery_address !== "undefined" && delivery_address !== null);
|
|
50
|
-
const [withBillingAddress, setWithBillingAddress] = useState(typeof billing_address !== "undefined" && billing_address !== null);
|
|
51
|
-
const { refreshSession } = useSession();
|
|
52
|
-
const { handleAddMessage } = useSnackbar();
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
if (formState?.message) {
|
|
55
|
-
handleAddMessage({
|
|
56
|
-
message: formState.message,
|
|
57
|
-
severity: formState.severity || "error",
|
|
58
|
-
});
|
|
59
|
-
if (formState.severity === "success") {
|
|
60
|
-
refreshSession();
|
|
61
|
-
revalidateCallback && revalidateCallback();
|
|
62
|
-
handleClose && handleClose();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}, [formState?.message]);
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
if (formState?.strapiErrors) {
|
|
68
|
-
handleAddMessage({
|
|
69
|
-
message: formState.strapiErrors.message || "Error updating profile",
|
|
70
|
-
severity: formState.severity || "error",
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}, [formState?.strapiErrors]);
|
|
74
|
-
return (jsx(Box, { sx: [...(Array.isArray(sx) ? sx : [sx])], children: jsx("form", { action: formAction, children: jsxs(Grid, { container: true, spacing: 2, children: [jsx(Grid, { size: 12, children: jsxs(Stack, { spacing: 2, children: [jsx(Typography, { variant: "h3", component: "h1", children: "Edit Profile" }), jsx(Typography, { variant: "body2", children: "Update your personal and business information" })] }) }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", children: "Personal Details" }), jsx(Divider, {}), jsxs(Stack, { spacing: 2, sx: { mt: 2 }, children: [jsx(TextField, { id: "first_name", name: "first_name", label: "First Name", defaultValue: first_name }), jsx(TextField, { id: "last_name", name: "last_name", label: "Last Name", defaultValue: last_name }), jsx(TextField, { id: "email", name: "email", label: "Email", defaultValue: email, disabled: true }), jsx(TextField, { id: "phone", name: "phone", label: "Phone", defaultValue: phone })] })] }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", children: "Business Credentials" }), jsx(Divider, {}), jsx(Box, { sx: { mt: 2 }, children: jsx(BusinessCredentialsFields, { componentName: "business_credentials", componentReference: "business.credentials", data: business_credentials }) })] }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", children: "Company Address" }), jsx(Divider, {}), jsx(Box, { sx: { mt: 2 }, children: jsx(AddressFields, { componentName: "company_address", componentReference: "common.address", data: company_address }) })] }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", children: "Delivery Address" }), jsx(Divider, {}), jsxs(Stack, { spacing: 2, sx: { mt: 2 }, children: [jsxs(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [jsx(Checkbox, { value: withDeliveryAddress, checked: withDeliveryAddress, onChange: () => setWithDeliveryAddress(!withDeliveryAddress) }), jsx(Typography, { children: "Use a different address for delivery" })] }), withDeliveryAddress && (jsx(AddressFields, { componentName: "delivery_address", componentReference: "common.address", data: delivery_address }))] })] }), jsxs(Grid, { size: 12, children: [jsx(Typography, { variant: "h6", children: "Billing Address" }), jsx(Divider, {}), jsxs(Stack, { spacing: 2, sx: { mt: 2 }, children: [jsxs(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [jsx(Checkbox, { value: withBillingAddress, checked: withBillingAddress, onChange: () => setWithBillingAddress(!withBillingAddress) }), jsx(Typography, { children: "Use a different address for billing" })] }), withBillingAddress && (jsx(AddressFields, { componentName: "billing_address", componentReference: "common.address", data: billing_address }))] })] }), jsx(Grid, { size: 12, children: jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { pt: 2 }, children: [handleClose && (jsx(Button, { onClick: handleClose, variant: "outlined", children: "Cancel" })), jsx(SubmitButton, { text: "Save changes", loadingText: "Saving...", variant: "contained" })] }) })] }) }) }));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { CustomerProfileEditForm as default };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { useState, createElement } from 'react';
|
|
9
|
-
import Autocomplete from '@mui/material/Autocomplete';
|
|
10
|
-
import TextField from '@mui/material/TextField';
|
|
11
|
-
|
|
12
|
-
const CustomerSelector = ({ customerLabels, currentValue, multiple = false, onChangeCallback, }) => {
|
|
13
|
-
const [selectedValues, setSelectedValues] = useState(currentValue || []);
|
|
14
|
-
const handleCustomerChange = (event, value, reason, details) => {
|
|
15
|
-
if (Array.isArray(value)) {
|
|
16
|
-
const ids = value.map((customer) => customer.documentId);
|
|
17
|
-
setSelectedValues(ids);
|
|
18
|
-
if (onChangeCallback) {
|
|
19
|
-
onChangeCallback(ids);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
else if (value) {
|
|
23
|
-
setSelectedValues([value.documentId]);
|
|
24
|
-
if (onChangeCallback) {
|
|
25
|
-
onChangeCallback([value.documentId]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
setSelectedValues([]);
|
|
30
|
-
if (onChangeCallback) {
|
|
31
|
-
onChangeCallback([]);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return (jsxs(Fragment, { children: [jsx(Autocomplete, { multiple: multiple, options: customerLabels, getOptionLabel: (option) => option.title, filterSelectedOptions: true, onChange: handleCustomerChange, renderOption: (props, option) => {
|
|
36
|
-
return (createElement("li", { ...props, key: option.documentId }, option.title));
|
|
37
|
-
}, renderInput: (params) => jsx(TextField, { ...params, label: "Customer" }), value: customerLabels.filter((customer) => selectedValues.includes(customer.documentId))[0] || null }), jsx("input", { type: "hidden", name: "customer", value: multiple
|
|
38
|
-
? JSON.stringify(selectedValues) || ""
|
|
39
|
-
: selectedValues[0] || "" })] }));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { CustomerSelector, CustomerSelector as default };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* UMWD-Components
|
|
3
|
-
* @copyright Jelle Paulus
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import Stack from '@mui/material/Stack';
|
|
9
|
-
import Box from '@mui/material/Box';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
|
-
import Divider from '@mui/material/Divider';
|
|
12
|
-
import Grid from '@mui/material/Grid';
|
|
13
|
-
import PersonIcon from '@mui/icons-material/Person';
|
|
14
|
-
import EmailIcon from '@mui/icons-material/Email';
|
|
15
|
-
import PhoneIcon from '@mui/icons-material/Phone';
|
|
16
|
-
import Address from '../../common/Address.js';
|
|
17
|
-
import BusinessCredentials from './BusinessCredentials.js';
|
|
18
|
-
|
|
19
|
-
function CustomerProfileDisplay({ data, }) {
|
|
20
|
-
if (!data) {
|
|
21
|
-
return (jsx(Stack, { spacing: 2, children: jsx(Typography, { children: "Customer profile not available" }) }));
|
|
22
|
-
}
|
|
23
|
-
const { first_name = "", last_name, email, phone, company_address, billing_address, delivery_address, business_credentials, } = data;
|
|
24
|
-
return (jsxs(Stack, { spacing: 2, children: [business_credentials ? (jsx(BusinessCredentials, { data: business_credentials })) : (jsx(Typography, { children: "Business credentials not available" })), jsx(Divider, {}), jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(PersonIcon, {}), jsx(Box, { children: jsxs(Typography, { variant: "body1", component: "p", children: [first_name, " ", last_name] }) })] }), jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(EmailIcon, {}), jsx(Box, { children: jsx(Typography, { variant: "body1", component: "p", children: email }) })] }), jsxs(Stack, { spacing: 2, direction: "row", children: [jsx(PhoneIcon, {}), jsx(Box, { children: jsx(Typography, { variant: "body1", component: "p", children: phone }) })] }), jsx(Divider, {}), jsxs(Grid, { container: true, children: [company_address ? (jsxs(Grid, { size: {
|
|
25
|
-
xs: 12,
|
|
26
|
-
md: 4
|
|
27
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Company Address" }), jsx(Address, { data: { ...company_address } })] })) : (jsx(Typography, { children: "Company address not available" })), delivery_address ? (jsxs(Grid, { size: {
|
|
28
|
-
xs: 12,
|
|
29
|
-
md: 4
|
|
30
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Delivery Address" }), jsx(Address, { data: { ...delivery_address } })] })) : (jsx(Grid, { size: {
|
|
31
|
-
xs: 12,
|
|
32
|
-
md: 4
|
|
33
|
-
}, children: jsx(Typography, { children: "Delivery address not available" }) })), billing_address ? (jsxs(Grid, { size: {
|
|
34
|
-
xs: 12,
|
|
35
|
-
md: 4
|
|
36
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Billing Address" }), jsx(Address, { data: { ...billing_address } })] })) : (jsx(Grid, { size: {
|
|
37
|
-
xs: 12,
|
|
38
|
-
md: 4
|
|
39
|
-
}, children: jsx(Typography, { children: "Billing address not available" }) }))] })] }));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { CustomerProfileDisplay as default };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
import Paper from '@mui/material/Paper';
|
|
10
|
-
import Stack from '@mui/material/Stack';
|
|
11
|
-
import Typography from '@mui/material/Typography';
|
|
12
|
-
import Button from '@mui/material/Button';
|
|
13
|
-
import Divider from '@mui/material/Divider';
|
|
14
|
-
import Grid from '@mui/material/Grid';
|
|
15
|
-
import Alert from '@mui/material/Alert';
|
|
16
|
-
import PersonIcon from '@mui/icons-material/Person';
|
|
17
|
-
import EmailIcon from '@mui/icons-material/Email';
|
|
18
|
-
import PhoneIcon from '@mui/icons-material/Phone';
|
|
19
|
-
import { StyledLink } from '../../StyledLink.js';
|
|
20
|
-
import { usePathname } from 'next/navigation';
|
|
21
|
-
|
|
22
|
-
function EnduserProfileDisplay({ data, }) {
|
|
23
|
-
const { first_name, last_name, email, phone, editProfileUrl = "/dashboard/admin/user/profile/edit", completeEnough = false, } = data;
|
|
24
|
-
const pathname = usePathname();
|
|
25
|
-
// Check if the current path is for an enduser profile
|
|
26
|
-
const isEnduser = pathname.includes("admin/user/");
|
|
27
|
-
return (jsx(Paper, { sx: { p: 2 }, children: jsxs(Stack, { spacing: 2, children: [isEnduser && (jsx(Fragment, { children: !Boolean(completeEnough) ? (jsx(Alert, { severity: "warning", action: jsx(StyledLink, { href: editProfileUrl, target: "_self", children: jsx(Button, { variant: "contained", children: "complete profile" }) }), children: "After completion of your profile you can enjoy all the benefits of your services." })) : (jsx(Stack, { direction: "row", justifyContent: "flex-end", children: jsx(StyledLink, { href: editProfileUrl, target: "_self", children: jsx(Button, { variant: "contained", children: "edit profile" }) }) })) })), jsx(Divider, {}), jsx(Grid, { container: true, spacing: 2, sx: { width: "100%" }, children: jsxs(Grid, { size: {
|
|
28
|
-
xs: 12,
|
|
29
|
-
md: 4
|
|
30
|
-
}, children: [jsx(Typography, { variant: "h6", children: "Personal Information" }), jsxs(Stack, { spacing: 1, sx: { mt: 2 }, children: [jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(PersonIcon, {}), jsx(Typography, { children: `${first_name} ${last_name}` })] }), jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(EmailIcon, {}), jsx(Typography, { children: email })] }), jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(PhoneIcon, {}), jsx(Typography, { children: phone })] })] })] }) })] }) }));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { EnduserProfileDisplay as default };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*
|
|
3
|
-
* UMWD-Components
|
|
4
|
-
* @copyright Jelle Paulus
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import Box from '@mui/material/Box';
|
|
10
|
-
import Stack from '@mui/material/Stack';
|
|
11
|
-
import Grid from '@mui/material/Grid';
|
|
12
|
-
import TextField from '@mui/material/TextField';
|
|
13
|
-
import Typography from '@mui/material/Typography';
|
|
14
|
-
import Button from '@mui/material/Button';
|
|
15
|
-
import { SubmitButton } from '../../SubmitButton.js';
|
|
16
|
-
import { useActionState, useEffect } from 'react';
|
|
17
|
-
import { updateEnduserProfileAction } from '../../../data/actions/e-commerce/enduser/profile-actions.js';
|
|
18
|
-
import { useSession } from '../../../context/auth/SessionContext.js';
|
|
19
|
-
import { useSnackbar } from '../../../context/common/SnackbarContext.js';
|
|
20
|
-
import EmailIcon from '@mui/icons-material/Email';
|
|
21
|
-
import PhoneIcon from '@mui/icons-material/Phone';
|
|
22
|
-
import PersonIcon from '@mui/icons-material/Person';
|
|
23
|
-
|
|
24
|
-
const INITIAL_STATE = {
|
|
25
|
-
zodErrors: null,
|
|
26
|
-
strapiErrors: null,
|
|
27
|
-
data: null,
|
|
28
|
-
message: null,
|
|
29
|
-
severity: null,
|
|
30
|
-
};
|
|
31
|
-
function EnduserProfileEditForm({ data, sx, revalidateCallback, handleClose, }) {
|
|
32
|
-
const { documentId, first_name, last_name, email, phone } = data;
|
|
33
|
-
const boundAction = updateEnduserProfileAction.bind(null, documentId);
|
|
34
|
-
const [formState, formAction] = useActionState(boundAction, INITIAL_STATE);
|
|
35
|
-
const { handleAddMessage } = useSnackbar();
|
|
36
|
-
const { refreshSession } = useSession();
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (formState?.message) {
|
|
39
|
-
handleAddMessage({
|
|
40
|
-
message: formState.message,
|
|
41
|
-
severity: formState.severity || "error",
|
|
42
|
-
});
|
|
43
|
-
if (formState.severity === "success") {
|
|
44
|
-
refreshSession();
|
|
45
|
-
revalidateCallback && revalidateCallback();
|
|
46
|
-
handleClose && handleClose();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, [formState?.message]);
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
if (formState?.strapiErrors) {
|
|
52
|
-
handleAddMessage({
|
|
53
|
-
message: formState.strapiErrors.message || "Error performing action",
|
|
54
|
-
severity: "error",
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}, [formState?.strapiErrors]);
|
|
58
|
-
return (jsx(Box, { sx: [...(Array.isArray(sx) ? sx : [sx])], children: jsx("form", { action: formAction, children: jsxs(Grid, { container: true, spacing: 2, children: [jsx(Grid, { size: 12, children: jsxs(Stack, { spacing: 2, children: [jsx(Typography, { variant: "h3", component: "h1", children: "Edit Profile" }), jsx(Typography, { variant: "body1", children: "Update your profile information" })] }) }), jsx(Grid, { size: 12, children: jsxs(Stack, { spacing: 2, children: [jsx(Typography, { variant: "h6", children: "Personal Information" }), jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(PersonIcon, {}), jsx(Typography, { children: `${first_name} ${last_name}` })] }), jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(EmailIcon, {}), jsx(TextField, { id: "email", name: "email", label: "Email", type: "email", defaultValue: email })] }), jsxs(Stack, { direction: "row", alignItems: "center", children: [jsx(PhoneIcon, {}), jsx(TextField, { id: "phone", name: "phone", label: "Phone", type: "tel", defaultValue: phone })] })] }) }), jsx(Grid, { size: 12, children: jsxs(Stack, { direction: "row", justifyContent: "space-between", spacing: 2, alignItems: "center", sx: { mt: 2 }, children: [handleClose && (jsx(Button, { onClick: handleClose, variant: "outlined", children: "Cancel" })), jsx(SubmitButton, { text: "Save Changes", loadingText: "Saving...", variant: "contained" })] }) })] }) }) }));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { EnduserProfileEditForm as default };
|