@ikas/storefront 4.0.0-alpha.78 → 4.0.0-alpha.8
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/package.json +19 -21
- package/src/analytics/analytics.ts +536 -0
- package/src/analytics/events.ts +116 -0
- package/src/analytics/facebookPixel.ts +226 -0
- package/src/analytics/googleAnalytics.ts +227 -0
- package/src/analytics/googleTagManager.ts +341 -0
- package/src/analytics/googleUniversal.ts +136 -0
- package/src/analytics/head/index.tsx +135 -0
- package/src/analytics/ikas.ts +558 -0
- package/src/analytics/index.ts +2 -0
- package/src/analytics/tiktokPixel.ts +223 -0
- package/src/components/checkout/components/address-form/index.tsx +406 -0
- package/src/components/checkout/components/address-form/model.ts +397 -0
- package/src/components/checkout/components/button/index.tsx +44 -0
- package/src/components/checkout/components/button/style.module.scss +103 -0
- package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
- package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
- package/src/components/checkout/components/cart-summary/index.tsx +481 -0
- package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
- package/src/components/checkout/components/checkbox/check.tsx +23 -0
- package/src/components/checkout/components/checkbox/index.tsx +50 -0
- package/src/components/checkout/components/checkbox/style.module.scss +72 -0
- package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
- package/src/components/checkout/components/credit-card-form/model.ts +56 -0
- package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
- package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
- package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
- package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
- package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
- package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
- package/src/components/checkout/components/customer-addresses/model.ts +126 -0
- package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
- package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
- package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
- package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
- package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
- package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
- package/src/components/checkout/components/error/index.tsx +54 -0
- package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
- package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
- package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
- package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
- package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
- package/src/components/checkout/components/expandable-section/index.tsx +37 -0
- package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
- package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
- package/src/components/checkout/components/form-item/index.tsx +207 -0
- package/src/components/checkout/components/form-item/model.ts +145 -0
- package/src/components/checkout/components/form-item/style.module.scss +216 -0
- package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
- package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
- package/src/components/checkout/components/input-with-button/index.tsx +53 -0
- package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
- package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
- package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
- package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
- package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
- package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
- package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
- package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
- package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
- package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
- package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
- package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
- package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
- package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
- package/src/components/checkout/components/modal/index.tsx +41 -0
- package/src/components/checkout/components/modal/style.module.scss +68 -0
- package/src/components/checkout/components/modal/useEscape.tsx +20 -0
- package/src/components/checkout/components/notification-box/index.tsx +70 -0
- package/src/components/checkout/components/notification-box/style.module.scss +69 -0
- package/src/components/checkout/components/offer-product/index.tsx +180 -0
- package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
- package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
- package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
- package/src/components/checkout/components/offer-product/style.module.scss +117 -0
- package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
- package/src/components/checkout/components/phone-number-input/get-countries.ts +52 -0
- package/src/components/checkout/components/phone-number-input/index.tsx +125 -0
- package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
- package/src/components/checkout/components/select-box/index.tsx +60 -0
- package/src/components/checkout/components/select-box/style.module.scss +55 -0
- package/src/components/checkout/components/step-container/index.tsx +107 -0
- package/src/components/checkout/components/step-container/style.module.scss +86 -0
- package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
- package/src/components/checkout/components/stripe/index.tsx +91 -0
- package/src/components/checkout/components/stripe/style.module.scss +75 -0
- package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
- package/src/components/checkout/components/svg/cross.tsx +23 -0
- package/src/components/checkout/components/svg/discount.tsx +34 -0
- package/src/components/checkout/components/svg/external.tsx +101 -0
- package/src/components/checkout/components/svg/gift.tsx +40 -0
- package/src/components/checkout/components/svg/ikas.tsx +39 -0
- package/src/components/checkout/components/svg/lock.tsx +23 -0
- package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
- package/src/components/checkout/components/svg/success-circle.tsx +26 -0
- package/src/components/checkout/components/svg/tag.tsx +23 -0
- package/src/components/checkout/components/svg/warning.tsx +30 -0
- package/src/components/checkout/components/toggle/index.tsx +51 -0
- package/src/components/checkout/components/toggle/style.module.scss +75 -0
- package/src/components/checkout/components/tooltip/index.tsx +27 -0
- package/src/components/checkout/components/tooltip/style.module.scss +86 -0
- package/src/components/checkout/index.tsx +641 -0
- package/src/components/checkout/model.ts +1466 -0
- package/src/components/checkout/modelMasterPass.ts +1001 -0
- package/src/components/checkout/steps/step-info/index.tsx +85 -0
- package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
- package/src/components/checkout/steps/step-payment/index.tsx +104 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
- package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
- package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
- package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
- package/src/components/checkout/steps/step-success/index.tsx +366 -0
- package/src/components/checkout/steps/step-success/style.module.scss +161 -0
- package/src/components/checkout/style.module.scss +366 -0
- package/src/components/checkout/styles/common.module.scss +59 -0
- package/src/components/checkout/styles/variables.scss +40 -0
- package/src/components/image/index.tsx +43 -0
- package/src/components/index.ts +5 -0
- package/src/components/link/index.tsx +26 -0
- package/src/components/page/ThemeComponent.tsx +108 -0
- package/src/components/page/head.tsx +358 -0
- package/src/components/page/index.tsx +219 -0
- package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
- package/src/components/page-editor/error/index.tsx +18 -0
- package/src/components/page-editor/index.tsx +194 -0
- package/src/components/page-editor/loader/index.tsx +18 -0
- package/src/components/page-editor/loader/style.module.scss +59 -0
- package/src/components/page-editor/model.ts +847 -0
- package/src/index.ts +6 -0
- package/src/models/data/base/index.ts +15 -0
- package/src/models/data/blog/category/index.ts +36 -0
- package/src/models/data/blog/content/index.ts +16 -0
- package/src/models/data/blog/index.ts +75 -0
- package/src/models/data/blog/meta-data/index.ts +39 -0
- package/src/models/data/blog/tag/index.ts +16 -0
- package/src/models/data/blog/writer/index.ts +17 -0
- package/src/models/data/brand/index.ts +58 -0
- package/src/models/data/brand/translation/index.ts +16 -0
- package/src/models/data/campaign-offer/index.ts +79 -0
- package/src/models/data/campaign-offer/product/index.ts +69 -0
- package/src/models/data/cart/available-shipping-method/index.ts +25 -0
- package/src/models/data/cart/campaign-offer/index.ts +43 -0
- package/src/models/data/cart/index.ts +38 -0
- package/src/models/data/category/index.ts +69 -0
- package/src/models/data/category/init.ts +33 -0
- package/src/models/data/category/path-item/index.ts +42 -0
- package/src/models/data/category/translations/index.ts +16 -0
- package/src/models/data/checkout/index.ts +55 -0
- package/src/models/data/checkout-settings/index.ts +63 -0
- package/src/models/data/checkout-settings/option/index.ts +14 -0
- package/src/models/data/checkout-settings/price/index.ts +14 -0
- package/src/models/data/city/index.ts +34 -0
- package/src/models/data/contact-form/index.ts +20 -0
- package/src/models/data/country/index.ts +46 -0
- package/src/models/data/customer/address/city/index.ts +16 -0
- package/src/models/data/customer/address/country/index.ts +20 -0
- package/src/models/data/customer/address/district/index.ts +16 -0
- package/src/models/data/customer/address/index.tsx +136 -0
- package/src/models/data/customer/address/state/index.ts +16 -0
- package/src/models/data/customer/attribute/index.ts +61 -0
- package/src/models/data/customer/attribute/option/index.ts +20 -0
- package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
- package/src/models/data/customer/attribute/translation/index.ts +23 -0
- package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
- package/src/models/data/customer/attribute/value/index.ts +29 -0
- package/src/models/data/customer/index.ts +122 -0
- package/src/models/data/customer/review/index.ts +70 -0
- package/src/models/data/customer/review/settings/index.ts +14 -0
- package/src/models/data/customer/review/summary/index.ts +29 -0
- package/src/models/data/customer/review/summary/star/index.ts +16 -0
- package/src/models/data/district/index.ts +36 -0
- package/src/models/data/favorite-product/index.ts +23 -0
- package/src/models/data/filter-category/index.ts +30 -0
- package/src/models/data/html-meta-data/index.ts +69 -0
- package/src/models/data/html-meta-data/translations/index.ts +16 -0
- package/src/models/data/image/index.ts +33 -0
- package/src/models/data/index.ts +192 -0
- package/src/models/data/last-viewed-product/index.ts +14 -0
- package/src/models/data/merchant-settings/index.ts +26 -0
- package/src/models/data/order/address/city/index.ts +16 -0
- package/src/models/data/order/address/country/index.ts +20 -0
- package/src/models/data/order/address/district/index.ts +16 -0
- package/src/models/data/order/address/index.ts +96 -0
- package/src/models/data/order/address/state/index.ts +16 -0
- package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
- package/src/models/data/order/adjustment/index.ts +39 -0
- package/src/models/data/order/customer/index.ts +24 -0
- package/src/models/data/order/gift-line/index.ts +14 -0
- package/src/models/data/order/index.ts +241 -0
- package/src/models/data/order/invoice/index.ts +29 -0
- package/src/models/data/order/line-item/discount/index.ts +23 -0
- package/src/models/data/order/line-item/index.ts +153 -0
- package/src/models/data/order/line-item/option/index.ts +24 -0
- package/src/models/data/order/line-item/option/value/index.ts +16 -0
- package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
- package/src/models/data/order/line-item/variant/category/index.ts +36 -0
- package/src/models/data/order/line-item/variant/index.ts +62 -0
- package/src/models/data/order/line-item/variant/price/index.ts +20 -0
- package/src/models/data/order/line-item/variant/value/index.ts +31 -0
- package/src/models/data/order/package/index.ts +41 -0
- package/src/models/data/order/package/tracking-info/index.ts +20 -0
- package/src/models/data/order/payment-method/index.ts +23 -0
- package/src/models/data/order/refund/index.ts +17 -0
- package/src/models/data/order/refund/line-item/index.ts +16 -0
- package/src/models/data/order/refund/settings/index.ts +16 -0
- package/src/models/data/order/shipping-line/index.ts +29 -0
- package/src/models/data/order/tax-line/index.ts +14 -0
- package/src/models/data/order/transaction/error/index.ts +16 -0
- package/src/models/data/order/transaction/index.ts +58 -0
- package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
- package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
- package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
- package/src/models/data/payment-gateway/index.ts +90 -0
- package/src/models/data/payment-gateway/settings/index.ts +21 -0
- package/src/models/data/payment-gateway/translation/index.ts +18 -0
- package/src/models/data/product/attribute/index.ts +37 -0
- package/src/models/data/product/attribute/option/index.ts +14 -0
- package/src/models/data/product/attribute/table-cell/index.ts +16 -0
- package/src/models/data/product/attribute/table-template/index.ts +19 -0
- package/src/models/data/product/attribute/translation/index.ts +39 -0
- package/src/models/data/product/attribute-value/index.ts +69 -0
- package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
- package/src/models/data/product/campaign/data/index.ts +70 -0
- package/src/models/data/product/campaign/filter/index.ts +19 -0
- package/src/models/data/product/campaign/index.ts +15 -0
- package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
- package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
- package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
- package/src/models/data/product/filter/index.ts +285 -0
- package/src/models/data/product/image/index.ts +22 -0
- package/src/models/data/product/index.ts +298 -0
- package/src/models/data/product/option-set/index.ts +94 -0
- package/src/models/data/product/option-set/option/index.ts +245 -0
- package/src/models/data/product/tag/index.ts +14 -0
- package/src/models/data/product/variant/index.ts +104 -0
- package/src/models/data/product/variant/price/index.ts +58 -0
- package/src/models/data/product/variant-type/index.ts +17 -0
- package/src/models/data/product/variant-type/init.ts +15 -0
- package/src/models/data/raffle/index.ts +155 -0
- package/src/models/data/sales-channel/index.ts +56 -0
- package/src/models/data/state/index.ts +18 -0
- package/src/models/data/stock-location/address/city/index.ts +16 -0
- package/src/models/data/stock-location/address/country/index.ts +18 -0
- package/src/models/data/stock-location/address/district/index.ts +18 -0
- package/src/models/data/stock-location/address/index.ts +34 -0
- package/src/models/data/stock-location/address/state/index.ts +18 -0
- package/src/models/data/stock-location/available/index.ts +22 -0
- package/src/models/data/stock-location/index.ts +35 -0
- package/src/models/data/storefront/domain/index.ts +20 -0
- package/src/models/data/storefront/index.ts +65 -0
- package/src/models/data/storefront/localization/index.tsx +18 -0
- package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
- package/src/models/data/storefront/routing/index.tsx +25 -0
- package/src/models/data/storefront/theme/index.tsx +25 -0
- package/src/models/data/storefront/theme-localization/index.tsx +31 -0
- package/src/models/data/theme-json/component/index.ts +41 -0
- package/src/models/data/theme-json/component/prop/index.ts +55 -0
- package/src/models/data/theme-json/custom-data/index.ts +132 -0
- package/src/models/data/theme-json/index.ts +210 -0
- package/src/models/data/theme-json/page/component/index.ts +22 -0
- package/src/models/data/theme-json/page/index.ts +54 -0
- package/src/models/data/theme-json/settings/color/index.ts +35 -0
- package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
- package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
- package/src/models/data/theme-json/settings/index.ts +30 -0
- package/src/models/data/variant-type/index.ts +44 -0
- package/src/models/data/variant-type/variant-value/index.ts +32 -0
- package/src/models/index.ts +2 -0
- package/src/models/ui/blog-category-list/index.ts +169 -0
- package/src/models/ui/blog-list/index.ts +175 -0
- package/src/models/ui/brand-list/index.ts +237 -0
- package/src/models/ui/category-list/index.ts +237 -0
- package/src/models/ui/component-renderer/index.ts +9 -0
- package/src/models/ui/customer-review-list/index.ts +173 -0
- package/src/models/ui/customer-review-summary-list/index.ts +175 -0
- package/src/models/ui/index.ts +40 -0
- package/src/models/ui/navigation-link/index.ts +23 -0
- package/src/models/ui/product-attribute-detail/index.ts +29 -0
- package/src/models/ui/product-attribute-list/index.ts +52 -0
- package/src/models/ui/product-list/index.ts +998 -0
- package/src/models/ui/raffle-list/index.ts +178 -0
- package/src/models/ui/validator/form/account-info.ts +167 -0
- package/src/models/ui/validator/form/address.ts +490 -0
- package/src/models/ui/validator/form/contact-form.ts +177 -0
- package/src/models/ui/validator/form/customer-review.ts +132 -0
- package/src/models/ui/validator/form/forgot-password.ts +96 -0
- package/src/models/ui/validator/form/login.ts +128 -0
- package/src/models/ui/validator/form/raffle-form.ts +276 -0
- package/src/models/ui/validator/form/recover-password.ts +148 -0
- package/src/models/ui/validator/form/register.ts +206 -0
- package/src/models/ui/validator/index.ts +121 -0
- package/src/models/ui/validator/rules/index.ts +310 -0
- package/src/page-data-init/index.ts +904 -0
- package/src/pages/404.tsx +10 -0
- package/src/pages/[slug]/index.tsx +9 -0
- package/src/pages/account/addresses.tsx +10 -0
- package/src/pages/account/favorite-products.tsx +9 -0
- package/src/pages/account/forgot-password.tsx +9 -0
- package/src/pages/account/index.tsx +9 -0
- package/src/pages/account/login.tsx +9 -0
- package/src/pages/account/orders/[id].tsx +9 -0
- package/src/pages/account/orders/index.tsx +9 -0
- package/src/pages/account/raffles.tsx +9 -0
- package/src/pages/account/recover-password.tsx +9 -0
- package/src/pages/account/register.tsx +9 -0
- package/src/pages/blog/[slug].tsx +9 -0
- package/src/pages/blog/index.tsx +9 -0
- package/src/pages/cart.tsx +9 -0
- package/src/pages/checkout.tsx +163 -0
- package/src/pages/editor.tsx +30 -0
- package/src/pages/home.tsx +10 -0
- package/src/pages/index.ts +22 -0
- package/src/pages/pages/[slug].tsx +9 -0
- package/src/pages/raffle/[slug].tsx +9 -0
- package/src/pages/raffle/index.tsx +9 -0
- package/src/pages/search.tsx +9 -0
- package/src/store/base.ts +238 -0
- package/src/store/blog/index.ts +49 -0
- package/src/store/brand/index.ts +16 -0
- package/src/store/cart/api.ts +58 -0
- package/src/store/cart/index.ts +311 -0
- package/src/store/category/index.ts +16 -0
- package/src/store/checkout/index.ts +92 -0
- package/src/store/customer/api.ts +273 -0
- package/src/store/customer/index.ts +658 -0
- package/src/store/html-meta-data/index.ts +16 -0
- package/src/store/index.ts +1 -0
- package/src/store/location/index.ts +56 -0
- package/src/store/merchant/index.ts +16 -0
- package/src/store/product/index.ts +113 -0
- package/src/store/raffle/index.ts +58 -0
- package/src/store/storefront/index.ts +18 -0
- package/src/typings/global.d.ts +7 -0
- package/src/utils/constants.ts +2 -0
- package/src/utils/currency.ts +250 -0
- package/src/utils/google-fonts.ts +52 -0
- package/src/utils/helper.ts +77 -0
- package/src/utils/i18n.ts +126 -0
- package/src/utils/index.ts +3 -0
- package/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/_virtual/axios.js +0 -1
- package/build/_virtual/index.js +0 -1
- package/build/_virtual/index2.js +0 -1
- package/build/_virtual/index3.js +0 -1
- package/build/_virtual/react-is.development.js +0 -1
- package/build/_virtual/react-is.production.min.js +0 -1
- package/build/_virtual/react-stripe.umd.js +0 -1
- package/build/analytics/analytics.d.ts +0 -37
- package/build/analytics/analytics.js +0 -1
- package/build/analytics/events.d.ts +0 -37
- package/build/analytics/events.js +0 -1
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/facebookPixel.js +0 -1
- package/build/analytics/googleAnalytics.d.ts +0 -13
- package/build/analytics/googleAnalytics.js +0 -1
- package/build/analytics/googleTagManager.d.ts +0 -203
- package/build/analytics/googleTagManager.js +0 -1
- package/build/analytics/googleUniversal.d.ts +0 -9
- package/build/analytics/googleUniversal.js +0 -1
- package/build/analytics/head/index.d.ts +0 -7
- package/build/analytics/head/index.js +0 -1
- package/build/analytics/ikas.d.ts +0 -134
- package/build/analytics/ikas.js +0 -1
- package/build/analytics/index.d.ts +0 -2
- package/build/analytics/tiktokPixel.d.ts +0 -13
- package/build/analytics/tiktokPixel.js +0 -1
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/index.js +0 -1
- package/build/components/checkout/components/address-form/model.d.ts +0 -87
- package/build/components/checkout/components/address-form/model.js +0 -1
- package/build/components/checkout/components/button/index.d.ts +0 -13
- package/build/components/checkout/components/button/index.js +0 -1
- package/build/components/checkout/components/button/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
- package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
- package/build/components/checkout/components/cart-summary/index.js +0 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
- package/build/components/checkout/components/checkbox/check.d.ts +0 -6
- package/build/components/checkout/components/checkbox/check.js +0 -1
- package/build/components/checkout/components/checkbox/index.d.ts +0 -10
- package/build/components/checkout/components/checkbox/index.js +0 -1
- package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
- package/build/components/checkout/components/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
- package/build/components/checkout/components/credit-card-form/model.js +0 -1
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
- package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
- package/build/components/checkout/components/customer-addresses/index.js +0 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
- package/build/components/checkout/components/customer-addresses/model.js +0 -1
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
- package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
- package/build/components/checkout/components/delivery-methods/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
- package/build/components/checkout/components/error/index.d.ts +0 -7
- package/build/components/checkout/components/error/index.js +0 -1
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
- package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/payment-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/stock-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/unknown-error/index.js +0 -1
- package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
- package/build/components/checkout/components/expandable-section/index.js +0 -1
- package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
- package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
- package/build/components/checkout/components/form-item/caret-down.js +0 -1
- package/build/components/checkout/components/form-item/index.d.ts +0 -3
- package/build/components/checkout/components/form-item/index.js +0 -1
- package/build/components/checkout/components/form-item/model.d.ts +0 -61
- package/build/components/checkout/components/form-item/model.js +0 -1
- package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
- package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
- package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
- package/build/components/checkout/components/input-with-button/index.js +0 -1
- package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/klarna/index.d.ts +0 -7
- package/build/components/checkout/components/klarna/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -11
- package/build/components/checkout/components/master-pass/modal/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
- package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
- package/build/components/checkout/components/modal/index.d.ts +0 -8
- package/build/components/checkout/components/modal/index.js +0 -1
- package/build/components/checkout/components/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
- package/build/components/checkout/components/modal/useEscape.js +0 -1
- package/build/components/checkout/components/notification-box/index.d.ts +0 -9
- package/build/components/checkout/components/notification-box/index.js +0 -1
- package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/index.d.ts +0 -8
- package/build/components/checkout/components/offer-product/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
- package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
- package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
- package/build/components/checkout/components/offer-product/select/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
- package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
- package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
- package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
- package/build/components/checkout/components/phone-number-input/index.js +0 -1
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
- package/build/components/checkout/components/select-box/index.d.ts +0 -13
- package/build/components/checkout/components/select-box/index.js +0 -1
- package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/step-container/index.d.ts +0 -15
- package/build/components/checkout/components/step-container/index.js +0 -1
- package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
- package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
- package/build/components/checkout/components/stripe/checkout-form.js +0 -1
- package/build/components/checkout/components/stripe/index.d.ts +0 -9
- package/build/components/checkout/components/stripe/index.js +0 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
- package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-down.js +0 -1
- package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.js +0 -1
- package/build/components/checkout/components/svg/discount.d.ts +0 -6
- package/build/components/checkout/components/svg/external.d.ts +0 -6
- package/build/components/checkout/components/svg/external.js +0 -1
- package/build/components/checkout/components/svg/gift.d.ts +0 -7
- package/build/components/checkout/components/svg/gift.js +0 -1
- package/build/components/checkout/components/svg/ikas.d.ts +0 -6
- package/build/components/checkout/components/svg/ikas.js +0 -1
- package/build/components/checkout/components/svg/lock.d.ts +0 -6
- package/build/components/checkout/components/svg/lock.js +0 -1
- package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.js +0 -1
- package/build/components/checkout/components/svg/tag.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.js +0 -1
- package/build/components/checkout/components/toggle/index.d.ts +0 -10
- package/build/components/checkout/components/toggle/index.js +0 -1
- package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
- package/build/components/checkout/components/tooltip/index.d.ts +0 -8
- package/build/components/checkout/components/tooltip/index.js +0 -1
- package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
- package/build/components/checkout/index.d.ts +0 -34
- package/build/components/checkout/index.js +0 -1
- package/build/components/checkout/model.d.ts +0 -173
- package/build/components/checkout/model.js +0 -1
- package/build/components/checkout/modelMasterPass.d.ts +0 -201
- package/build/components/checkout/modelMasterPass.js +0 -1
- package/build/components/checkout/steps/step-info/index.d.ts +0 -7
- package/build/components/checkout/steps/step-info/index.js +0 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
- package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
- package/build/components/checkout/steps/step-shipping/index.js +0 -1
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-success/index.d.ts +0 -7
- package/build/components/checkout/steps/step-success/index.js +0 -1
- package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
- package/build/components/checkout/style.module.scss.js +0 -1
- package/build/components/checkout/styles/common.module.scss.js +0 -1
- package/build/components/google-captcha/index.d.ts +0 -9
- package/build/components/google-captcha/index.js +0 -1
- package/build/components/image/index.d.ts +0 -10
- package/build/components/image/index.js +0 -1
- package/build/components/index.d.ts +0 -6
- package/build/components/link/index.d.ts +0 -16
- package/build/components/link/index.js +0 -1
- package/build/components/page/ThemeComponent.d.ts +0 -21
- package/build/components/page/ThemeComponent.js +0 -1
- package/build/components/page/head.d.ts +0 -15
- package/build/components/page/head.js +0 -1
- package/build/components/page/index.d.ts +0 -23
- package/build/components/page/index.js +0 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
- package/build/components/page-editor/ThemeComponentEditor.js +0 -1
- package/build/components/page-editor/error/index.d.ts +0 -4
- package/build/components/page-editor/error/index.js +0 -1
- package/build/components/page-editor/index.d.ts +0 -4
- package/build/components/page-editor/index.js +0 -1
- package/build/components/page-editor/loader/index.d.ts +0 -6
- package/build/components/page-editor/loader/index.js +0 -1
- package/build/components/page-editor/loader/style.module.scss.js +0 -1
- package/build/components/page-editor/model.d.ts +0 -75
- package/build/components/page-editor/model.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
- package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +0 -1
- package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +0 -1
- package/build/ext/axios/index.js +0 -1
- package/build/ext/axios/lib/adapters/xhr.js +0 -1
- package/build/ext/axios/lib/axios.js +0 -1
- package/build/ext/axios/lib/cancel/Cancel.js +0 -1
- package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
- package/build/ext/axios/lib/cancel/isCancel.js +0 -1
- package/build/ext/axios/lib/core/Axios.js +0 -1
- package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
- package/build/ext/axios/lib/core/buildFullPath.js +0 -1
- package/build/ext/axios/lib/core/createError.js +0 -1
- package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
- package/build/ext/axios/lib/core/enhanceError.js +0 -1
- package/build/ext/axios/lib/core/mergeConfig.js +0 -1
- package/build/ext/axios/lib/core/settle.js +0 -1
- package/build/ext/axios/lib/core/transformData.js +0 -1
- package/build/ext/axios/lib/defaults/index.js +0 -1
- package/build/ext/axios/lib/defaults/transitional.js +0 -1
- package/build/ext/axios/lib/env/data.js +0 -1
- package/build/ext/axios/lib/helpers/bind.js +0 -1
- package/build/ext/axios/lib/helpers/buildURL.js +0 -1
- package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
- package/build/ext/axios/lib/helpers/cookies.js +0 -1
- package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
- package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
- package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
- package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
- package/build/ext/axios/lib/helpers/spread.js +0 -1
- package/build/ext/axios/lib/helpers/validator.js +0 -1
- package/build/ext/axios/lib/utils.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
- package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/constants.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/util.js +0 -1
- package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +0 -1
- package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/format_.js +0 -1
- package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
- package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
- package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
- package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
- package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +0 -1
- package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/Metadata.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +0 -1
- package/build/ext/object-assign/index.js +0 -6
- package/build/ext/prop-types/checkPropTypes.js +0 -1
- package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
- package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
- package/build/ext/prop-types/index.js +0 -1
- package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/build/ext/prop-types/lib/has.js +0 -1
- package/build/ext/react-is/cjs/react-is.development.js +0 -9
- package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
- package/build/ext/react-is/index.js +0 -1
- package/build/ext/react-tooltip/dist/index.es.js +0 -1
- package/build/ext/style-inject/dist/style-inject.es.js +0 -1
- package/build/ext/tslib/tslib.es6.js +0 -1
- package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +0 -1
- package/build/ext/uuid/dist/esm-browser/md5.js +0 -1
- package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
- package/build/ext/uuid/dist/esm-browser/sha1.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v3.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v35.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v5.js +0 -1
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -24
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -13
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/index.d.ts +0 -22
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -20
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -17
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -22
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -9
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/index.d.ts +0 -136
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -68
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -45
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -7
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -30
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -14
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -25
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -84
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -62
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -72
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/product/variant-type/init.d.ts +0 -2
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -8
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -30
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -8
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
- package/build/models/data/storefront/meta-templates/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -14
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -10
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/theme-json/component/index.d.ts +0 -20
- package/build/models/data/theme-json/component/index.js +0 -1
- package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
- package/build/models/data/theme-json/component/prop/index.js +0 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
- package/build/models/data/theme-json/custom-data/index.js +0 -1
- package/build/models/data/theme-json/index.d.ts +0 -16
- package/build/models/data/theme-json/index.js +0 -1
- package/build/models/data/theme-json/page/component/index.d.ts +0 -7
- package/build/models/data/theme-json/page/component/index.js +0 -1
- package/build/models/data/theme-json/page/index.d.ts +0 -21
- package/build/models/data/theme-json/page/index.js +0 -1
- package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
- package/build/models/data/theme-json/settings/color/index.js +0 -1
- package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
- package/build/models/data/theme-json/settings/favicon/index.js +0 -1
- package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
- package/build/models/data/theme-json/settings/font-family/index.js +0 -1
- package/build/models/data/theme-json/settings/index.d.ts +0 -13
- package/build/models/data/theme-json/settings/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/index.d.ts +0 -2
- package/build/models/ui/blog-category-list/index.d.ts +0 -51
- package/build/models/ui/blog-category-list/index.js +0 -1
- package/build/models/ui/blog-list/index.d.ts +0 -55
- package/build/models/ui/blog-list/index.js +0 -1
- package/build/models/ui/brand-list/index.d.ts +0 -61
- package/build/models/ui/brand-list/index.js +0 -1
- package/build/models/ui/category-list/index.d.ts +0 -61
- package/build/models/ui/category-list/index.js +0 -1
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/component-renderer/index.js +0 -1
- package/build/models/ui/customer-review-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/index.d.ts +0 -25
- package/build/models/ui/navigation-link/index.d.ts +0 -8
- package/build/models/ui/navigation-link/index.js +0 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
- package/build/models/ui/product-attribute-detail/index.js +0 -1
- package/build/models/ui/product-attribute-list/index.d.ts +0 -8
- package/build/models/ui/product-attribute-list/index.js +0 -1
- package/build/models/ui/product-list/index.d.ts +0 -138
- package/build/models/ui/product-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.d.ts +0 -53
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -39
- package/build/models/ui/validator/form/account-info.js +0 -1
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/address.js +0 -1
- package/build/models/ui/validator/form/contact-form.d.ts +0 -42
- package/build/models/ui/validator/form/contact-form.js +0 -1
- package/build/models/ui/validator/form/customer-review.d.ts +0 -34
- package/build/models/ui/validator/form/customer-review.js +0 -1
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
- package/build/models/ui/validator/form/forgot-password.js +0 -1
- package/build/models/ui/validator/form/login.d.ts +0 -32
- package/build/models/ui/validator/form/login.js +0 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
- package/build/models/ui/validator/form/raffle-form.js +0 -1
- package/build/models/ui/validator/form/recover-password.d.ts +0 -33
- package/build/models/ui/validator/form/recover-password.js +0 -1
- package/build/models/ui/validator/form/register.d.ts +0 -49
- package/build/models/ui/validator/form/register.js +0 -1
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/index.js +0 -1
- package/build/models/ui/validator/rules/index.d.ts +0 -101
- package/build/models/ui/validator/rules/index.js +0 -1
- package/build/page-data-init/index.d.ts +0 -40
- package/build/page-data-init/index.js +0 -1
- package/build/pages/404.d.ts +0 -4
- package/build/pages/404.js +0 -1
- package/build/pages/[slug]/index.d.ts +0 -4
- package/build/pages/_slug_/index.js +0 -1
- package/build/pages/account/addresses.d.ts +0 -4
- package/build/pages/account/addresses.js +0 -1
- package/build/pages/account/favorite-products.d.ts +0 -4
- package/build/pages/account/favorite-products.js +0 -1
- package/build/pages/account/forgot-password.d.ts +0 -4
- package/build/pages/account/forgot-password.js +0 -1
- package/build/pages/account/index.d.ts +0 -4
- package/build/pages/account/index.js +0 -1
- package/build/pages/account/login.d.ts +0 -4
- package/build/pages/account/login.js +0 -1
- package/build/pages/account/orders/[id].d.ts +0 -4
- package/build/pages/account/orders/_id_.js +0 -1
- package/build/pages/account/orders/index.d.ts +0 -4
- package/build/pages/account/orders/index.js +0 -1
- package/build/pages/account/raffles.d.ts +0 -4
- package/build/pages/account/raffles.js +0 -1
- package/build/pages/account/recover-password.d.ts +0 -4
- package/build/pages/account/recover-password.js +0 -1
- package/build/pages/account/register.d.ts +0 -4
- package/build/pages/account/register.js +0 -1
- package/build/pages/blog/[slug].d.ts +0 -4
- package/build/pages/blog/_slug_.js +0 -1
- package/build/pages/blog/index.d.ts +0 -4
- package/build/pages/blog/index.js +0 -1
- package/build/pages/cart.d.ts +0 -4
- package/build/pages/cart.js +0 -1
- package/build/pages/checkout.d.ts +0 -18
- package/build/pages/checkout.js +0 -1
- package/build/pages/editor.d.ts +0 -10
- package/build/pages/editor.js +0 -1
- package/build/pages/home.d.ts +0 -4
- package/build/pages/home.js +0 -1
- package/build/pages/index.d.ts +0 -22
- package/build/pages/pages/[slug].d.ts +0 -4
- package/build/pages/pages/_slug_.js +0 -1
- package/build/pages/raffle/[slug].d.ts +0 -4
- package/build/pages/raffle/_slug_.js +0 -1
- package/build/pages/raffle/index.d.ts +0 -4
- package/build/pages/raffle/index.js +0 -1
- package/build/pages/search.d.ts +0 -4
- package/build/pages/search.js +0 -1
- package/build/store/base.d.ts +0 -44
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/cart/index.d.ts +0 -27
- package/build/store/cart/index.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -15
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/customer/index.d.ts +0 -79
- package/build/store/customer/index.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/index.d.ts +0 -3
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -37
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/constants.d.ts +0 -2
- package/build/utils/constants.js +0 -1
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
- package/build/utils/google-fonts.d.ts +0 -2
- package/build/utils/google-fonts.js +0 -1
- package/build/utils/helper.d.ts +0 -4
- package/build/utils/helper.js +0 -1
- package/build/utils/i18n.d.ts +0 -11
- package/build/utils/i18n.js +0 -1
- package/build/utils/index.d.ts +0 -3
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
declare type ContactFormProps<T> = {
|
|
2
|
-
message: {
|
|
3
|
-
requiredRule: ((model: T) => string) | string;
|
|
4
|
-
emailRule: ((model: T) => string) | string;
|
|
5
|
-
minRule: ((model: T) => string) | string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
declare type ContactFormModel = {
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
email: string;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
export declare class ContactForm {
|
|
15
|
-
private model;
|
|
16
|
-
private validator;
|
|
17
|
-
constructor(props: ContactFormProps<ContactFormModel>);
|
|
18
|
-
get firstName(): string;
|
|
19
|
-
set firstName(value: string);
|
|
20
|
-
get lastName(): string;
|
|
21
|
-
set lastName(value: string);
|
|
22
|
-
get email(): string;
|
|
23
|
-
set email(value: string);
|
|
24
|
-
get message(): string;
|
|
25
|
-
set message(value: string);
|
|
26
|
-
get hasError(): boolean;
|
|
27
|
-
get firstNameErrorMessage(): string | undefined;
|
|
28
|
-
get lastNameErrorMessage(): string | undefined;
|
|
29
|
-
get emailErrorMessage(): string | undefined;
|
|
30
|
-
get messageErrorMessage(): string | undefined;
|
|
31
|
-
get redirect(): string | null | undefined;
|
|
32
|
-
onFirstNameChange: (value: string) => void;
|
|
33
|
-
onLastNameChange: (value: string) => void;
|
|
34
|
-
onEmailChange: (value: string) => void;
|
|
35
|
-
onMessageChange: (value: string) => void;
|
|
36
|
-
validateAll(): Promise<boolean>;
|
|
37
|
-
saveContactForm(): Promise<{
|
|
38
|
-
isFormError: boolean;
|
|
39
|
-
isSuccess: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as s,observable as a,action as i}from"mobx";import{Validator as o}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as m}from"../rules/index.js";var u=function(){function u(e){var r=this;this.model={firstName:"",lastName:"",email:"",message:""},this.onFirstNameChange=function(e){r.firstName=e},this.onLastNameChange=function(e){r.lastName=e},this.onEmailChange=function(e){r.email=e},this.onMessageChange=function(e){r.message=e},t(this,{emailErrorMessage:s,messageErrorMessage:s,firstNameErrorMessage:s,lastNameErrorMessage:s,hasError:s,redirect:s,model:a,validateAll:i,saveContactForm:i}),this.validator=new o(this.model,[new l({fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new l({fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new l({fieldKey:"message",valuePath:"message",message:e.message.requiredRule}),new m({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(u.prototype,"firstName",{get:function(){return this.model.firstName},set:function(e){this.model.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lastName",{get:function(){return this.model.lastName},set:function(e){this.model.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"message",{get:function(){return this.model.message},set:function(e){this.model.message=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"firstNameErrorMessage",{get:function(){return this.validator.results.firstName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lastNameErrorMessage",{get:function(){return this.validator.results.lastName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"messageErrorMessage",{get:function(){return this.validator.results.message.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),u.prototype.validateAll=function(){return this.validator.validateAll()},u.prototype.saveContactForm=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.saveContactForm({firstName:this.model.firstName,lastName:this.model.lastName,email:this.model.email,message:this.model.message,referer:window.location.href})];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},u}();export{u as ContactForm};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare type CustomerReviewFormProps<T> = {
|
|
2
|
-
productId: string;
|
|
3
|
-
message: {
|
|
4
|
-
starRule: ((model: T) => string) | string;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
declare type CustomerReviewFormModel = {
|
|
8
|
-
title: string;
|
|
9
|
-
comment: string;
|
|
10
|
-
star: number;
|
|
11
|
-
};
|
|
12
|
-
export declare class CustomerReviewForm {
|
|
13
|
-
private productId;
|
|
14
|
-
private model;
|
|
15
|
-
private validator;
|
|
16
|
-
constructor(props: CustomerReviewFormProps<CustomerReviewFormModel>);
|
|
17
|
-
get title(): string;
|
|
18
|
-
set title(value: string);
|
|
19
|
-
get comment(): string;
|
|
20
|
-
set comment(value: string);
|
|
21
|
-
get star(): number;
|
|
22
|
-
set star(value: number);
|
|
23
|
-
get hasError(): boolean;
|
|
24
|
-
get starErrorMessage(): string | undefined;
|
|
25
|
-
onTitleChange: (value: string) => void;
|
|
26
|
-
onCommentChange: (value: string) => void;
|
|
27
|
-
onStarChange: (value: number) => void;
|
|
28
|
-
validateAll(): Promise<boolean>;
|
|
29
|
-
submit(): Promise<{
|
|
30
|
-
isFormError: boolean;
|
|
31
|
-
isSuccess: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as r,computed as s,observable as o,action as i}from"mobx";import{Validator as n}from"../index.js";import{IkasBaseStore as a}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,MinRule as u,MaxRule as m}from"../rules/index.js";var c=function(){function c(e){var t=this;this.model={title:"",comment:"",star:0},this.onTitleChange=function(e){t.title=e},this.onCommentChange=function(e){t.comment=e},this.onStarChange=function(e){t.star=e},r(this,{starErrorMessage:s,hasError:s,model:o,validateAll:i,submit:i}),this.productId=e.productId,this.validator=new n(this.model,[new l({fieldKey:"star",valuePath:"star",message:e.message.starRule}),new u({fieldKey:"star",valuePath:"star",minValue:1,message:e.message.starRule}),new m({fieldKey:"star",valuePath:"star",maxValue:5,message:e.message.starRule})])}return Object.defineProperty(c.prototype,"title",{get:function(){return this.model.title},set:function(e){this.model.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"comment",{get:function(){return this.model.comment},set:function(e){this.model.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"star",{get:function(){return this.model.star},set:function(e){this.model.star=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"starErrorMessage",{get:function(){return this.validator.results.star.errorMessage},enumerable:!1,configurable:!0}),c.prototype.validateAll=function(){return this.validator.validateAll()},c.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,a.getInstance().customerStore.sendReview({title:this.model.title,comment:this.model.comment,star:this.model.star,productId:this.productId})];case 3:return t.sent()&&(e.isSuccess=!0),[2,e];case 4:return t.sent(),[2,e];case 5:return[2]}}))}))},c}();export{c as CustomerReviewForm};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare type ForgotPasswordProps<T> = {
|
|
2
|
-
message: {
|
|
3
|
-
requiredRule: ((model: T) => string) | string;
|
|
4
|
-
emailRule: ((model: T) => string) | string;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
declare type ForgotPasswordFormModel = {
|
|
8
|
-
email: string;
|
|
9
|
-
};
|
|
10
|
-
export declare class ForgotPasswordForm {
|
|
11
|
-
private model;
|
|
12
|
-
private validator;
|
|
13
|
-
constructor(props: ForgotPasswordProps<ForgotPasswordFormModel>);
|
|
14
|
-
get email(): string;
|
|
15
|
-
set email(value: string);
|
|
16
|
-
onEmailChange: (value: string) => void;
|
|
17
|
-
get hasValidatorError(): boolean;
|
|
18
|
-
get emailErrorMessage(): string | undefined;
|
|
19
|
-
get redirect(): string | null | undefined;
|
|
20
|
-
validateAll(): Promise<boolean>;
|
|
21
|
-
submit(): Promise<{
|
|
22
|
-
isFormError: boolean;
|
|
23
|
-
isSuccess: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as i,observable as o,action as a}from"mobx";import{Validator as s}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as m}from"../rules/index.js";var u=function(){function u(e){var r=this;this.model={email:""},this.onEmailChange=function(e){r.email=e},t(this,{emailErrorMessage:i,hasValidatorError:i,redirect:i,email:i,model:o,validateAll:a,submit:a}),this.validator=new s(this.model,[new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new m({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(u.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasValidatorError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),u.prototype.validateAll=function(){return this.validator.validateAll()},u.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.forgotPassword(this.model.email)];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},u}();export{u as ForgotPasswordForm};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
declare type LoginFormProps<T> = {
|
|
2
|
-
message: {
|
|
3
|
-
requiredRule: ((model: T) => string) | string;
|
|
4
|
-
emailRule: ((model: T) => string) | string;
|
|
5
|
-
minRule: ((model: T) => string) | string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
declare type LoginFormModel = {
|
|
9
|
-
email: string;
|
|
10
|
-
password: string;
|
|
11
|
-
};
|
|
12
|
-
export declare class LoginForm {
|
|
13
|
-
private model;
|
|
14
|
-
private validator;
|
|
15
|
-
constructor(props: LoginFormProps<LoginFormModel>);
|
|
16
|
-
get hasError(): boolean;
|
|
17
|
-
get email(): string;
|
|
18
|
-
set email(value: string);
|
|
19
|
-
get password(): string;
|
|
20
|
-
set password(value: string);
|
|
21
|
-
get emailErrorMessage(): string | undefined;
|
|
22
|
-
get passwordErrorMessage(): string | undefined;
|
|
23
|
-
get redirect(): string | null | undefined;
|
|
24
|
-
onEmailChange: (value: string) => void;
|
|
25
|
-
onPasswordChange: (value: string) => void;
|
|
26
|
-
validateAll(): Promise<boolean>;
|
|
27
|
-
login(): Promise<{
|
|
28
|
-
isFormError: boolean;
|
|
29
|
-
isSuccess: boolean;
|
|
30
|
-
}>;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as s,observable as o,action as i}from"mobx";import{Validator as a}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as u,MinRule as d}from"../rules/index.js";var m=function(){function m(e){var r=this;this.model={email:"",password:""},this.onEmailChange=function(e){r.email=e},this.onPasswordChange=function(e){r.password=e},t(this,{emailErrorMessage:s,passwordErrorMessage:s,hasError:s,redirect:s,email:s,password:s,model:o,validateAll:i,login:i}),this.validator=new a(this.model,[new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new l({fieldKey:"password",valuePath:"password",message:e.message.requiredRule}),new u({fieldKey:"email",valuePath:"email",message:e.message.emailRule}),new d({fieldKey:"password",valuePath:"password",minValue:6,message:e.message.minRule})])}return Object.defineProperty(m.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"password",{get:function(){return this.model.password},set:function(e){this.model.password=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"passwordErrorMessage",{get:function(){return this.validator.results.password.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),m.prototype.validateAll=function(){return this.validator.validateAll()},m.prototype.login=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.login(this.model.email,this.model.password)];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},m}();export{m as LoginForm};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { GraphQLError } from "graphql";
|
|
2
|
-
import { IkasRaffle } from "../../../data";
|
|
3
|
-
declare type RaffleFormProps<T> = {
|
|
4
|
-
message: {
|
|
5
|
-
requiredRule: ((model: T) => string) | string;
|
|
6
|
-
emailRule: ((model: T) => string) | string;
|
|
7
|
-
phoneRule?: ((model: T) => string) | string;
|
|
8
|
-
birthdayRule?: ((model: T) => string) | string;
|
|
9
|
-
identityNumberRule?: ((model: T) => string) | string;
|
|
10
|
-
};
|
|
11
|
-
raffle: IkasRaffle;
|
|
12
|
-
};
|
|
13
|
-
declare type RaffleFormModel = {
|
|
14
|
-
firstName: string;
|
|
15
|
-
lastName: string;
|
|
16
|
-
email: string;
|
|
17
|
-
extraData: {
|
|
18
|
-
birthYear: number | null;
|
|
19
|
-
identityNumber: number | null;
|
|
20
|
-
};
|
|
21
|
-
phone: string;
|
|
22
|
-
};
|
|
23
|
-
export declare class RaffleForm {
|
|
24
|
-
private model;
|
|
25
|
-
private validator;
|
|
26
|
-
private raffle;
|
|
27
|
-
constructor(props: RaffleFormProps<RaffleFormModel>);
|
|
28
|
-
get firstName(): string;
|
|
29
|
-
set firstName(value: string);
|
|
30
|
-
get lastName(): string;
|
|
31
|
-
set lastName(value: string);
|
|
32
|
-
get email(): string;
|
|
33
|
-
set email(value: string);
|
|
34
|
-
get birthYear(): number | null;
|
|
35
|
-
set birthYear(value: number | null);
|
|
36
|
-
get identityNumber(): number | null;
|
|
37
|
-
set identityNumber(value: number | null);
|
|
38
|
-
get phone(): string;
|
|
39
|
-
set phone(value: string);
|
|
40
|
-
get firstNameErrorMessage(): string | undefined;
|
|
41
|
-
get lastNameErrorMessage(): string | undefined;
|
|
42
|
-
get emailErrorMessage(): string | undefined;
|
|
43
|
-
get birthYearErrorMessage(): string | undefined;
|
|
44
|
-
get identityNumberErrorMessage(): string | undefined;
|
|
45
|
-
get phoneErrorMessage(): string | undefined;
|
|
46
|
-
get redirect(): string | null | undefined;
|
|
47
|
-
onFirstNameChange: (value: string) => void;
|
|
48
|
-
onLastNameChange: (value: string) => void;
|
|
49
|
-
onEmailChange: (value: string) => void;
|
|
50
|
-
onBirthYearChange: (value: number) => void;
|
|
51
|
-
onIdentityNumberChange: (value: number) => void;
|
|
52
|
-
onPhoneChange: (value: string) => void;
|
|
53
|
-
get hasValidatorError(): boolean;
|
|
54
|
-
get results(): import("..").ValidationResults;
|
|
55
|
-
validateAll(): Promise<boolean>;
|
|
56
|
-
submit(): Promise<{
|
|
57
|
-
isFormError: boolean;
|
|
58
|
-
isSuccess: boolean;
|
|
59
|
-
errors?: readonly GraphQLError[] | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import{saveRaffleParticipant as r}from"@ikas/storefront-api";import{makeObservable as a,computed as i,observable as s,action as o}from"mobx";import{Validator as n}from"../index.js";import{IkasBaseStore as l}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as u,EmailRule as m,PhoneRule as d,MinRule as f,MaxRule as h,IdentityNumberRule as c}from"../rules/index.js";var b=function(){function b(e){var t,r,b,p=this;this.model={firstName:(null===(t=l.getInstance().customerStore.customer)||void 0===t?void 0:t.firstName)||"",lastName:(null===(r=l.getInstance().customerStore.customer)||void 0===r?void 0:r.lastName)||"",email:(null===(b=l.getInstance().customerStore.customer)||void 0===b?void 0:b.email)||"",extraData:{birthYear:null,identityNumber:null},phone:""},this.onFirstNameChange=function(e){p.firstName=e},this.onLastNameChange=function(e){p.lastName=e},this.onEmailChange=function(e){p.email=e},this.onBirthYearChange=function(e){p.birthYear=e},this.onIdentityNumberChange=function(e){p.identityNumber=e},this.onPhoneChange=function(e){p.phone=e},a(this,{emailErrorMessage:i,firstNameErrorMessage:i,lastNameErrorMessage:i,birthYearErrorMessage:i,identityNumberErrorMessage:i,hasValidatorError:i,results:i,redirect:i,model:s,validateAll:o}),this.raffle=e.raffle,this.validator=new n(this.model,[new u({fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new u({fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule}),new u({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new u({fieldKey:"birthYear",valuePath:"extraData.birthYear",message:e.message.requiredRule}),new u({fieldKey:"identityNumber",valuePath:"extraData.identityNumber",message:e.message.requiredRule}),new m({fieldKey:"email",valuePath:"email",message:e.message.emailRule}),new d({fieldKey:"phone",valuePath:"phone",message:e.message.phoneRule}),new f({fieldKey:"birthYear",valuePath:"extraData.birthYear",message:e.message.birthdayRule,minValue:1e3}),new h({fieldKey:"birthYear",valuePath:"extraData.birthYear",message:e.message.birthdayRule,maxValue:9999}),new c({fieldKey:"identityNumber",valuePath:"extraData.identityNumber",message:e.message.identityNumberRule})])}return Object.defineProperty(b.prototype,"firstName",{get:function(){return this.model.firstName},set:function(e){this.model.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"lastName",{get:function(){return this.model.lastName},set:function(e){this.model.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"birthYear",{get:function(){return this.model.extraData.birthYear},set:function(e){this.model.extraData.birthYear=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"identityNumber",{get:function(){return this.model.extraData.identityNumber},set:function(e){this.model.extraData.identityNumber=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"phone",{get:function(){return this.model.phone},set:function(e){this.model.phone=e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"firstNameErrorMessage",{get:function(){return this.validator.results.firstName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"lastNameErrorMessage",{get:function(){return this.validator.results.lastName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"birthYearErrorMessage",{get:function(){return this.validator.results.birthYear.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"identityNumberErrorMessage",{get:function(){return this.validator.results.identityNumber.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"phoneErrorMessage",{get:function(){return this.validator.results.phone.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasValidatorError",{get:function(){var e;return this.validator.hasError||!(null===(e=this.raffle.variants)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"results",{get:function(){return this.validator.results},enumerable:!1,configurable:!0}),b.prototype.validateAll=function(){return this.validator.validateAll()},b.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e,a,i,s;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),a=this.raffle.products[0].selectedVariant,[4,r({input:{appliedProduct:{productId:a.productId,variantId:a.id},email:this.email,firstName:this.firstName,lastName:this.lastName,raffleId:this.raffle.id,extraData:{birthYear:this.birthYear,identityNumber:this.identityNumber},phone:this.phone}})];case 3:return(null==(i=t.sent())?void 0:i.graphQLErrors)&&(e.errors=i.graphQLErrors,e.isSuccess=!1),i.data&&(e.isSuccess=!0),[2,e];case 4:return(s=t.sent())&&(e.errors=s),[2,e];case 5:return[2]}}))}))},b}();export{b as RaffleForm};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
declare type RecoverPasswordFormProps<T> = {
|
|
2
|
-
message: {
|
|
3
|
-
requiredRule: ((model: T) => string) | string;
|
|
4
|
-
minRule: ((model: T) => string) | string;
|
|
5
|
-
equalsRule: ((model: T) => string) | string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
declare type RecoverPasswordFormModel = {
|
|
9
|
-
password: string;
|
|
10
|
-
passwordAgain: string;
|
|
11
|
-
};
|
|
12
|
-
export declare class RecoverPasswordForm {
|
|
13
|
-
private model;
|
|
14
|
-
private validator;
|
|
15
|
-
constructor(props: RecoverPasswordFormProps<RecoverPasswordFormModel>);
|
|
16
|
-
resetModel(): void;
|
|
17
|
-
get password(): string;
|
|
18
|
-
set password(value: string);
|
|
19
|
-
get passwordAgain(): string;
|
|
20
|
-
set passwordAgain(value: string);
|
|
21
|
-
get hasError(): boolean;
|
|
22
|
-
get passwordErrorMessage(): string | undefined;
|
|
23
|
-
get passwordAgainErrorMessage(): string | undefined;
|
|
24
|
-
get redirect(): string | null | undefined;
|
|
25
|
-
onPasswordChange: (value: string) => void;
|
|
26
|
-
onPasswordAgainChange: (value: string) => void;
|
|
27
|
-
validateAll(): Promise<boolean>;
|
|
28
|
-
submit(): Promise<{
|
|
29
|
-
isFormError: boolean;
|
|
30
|
-
isSuccess: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as s,computed as o,observable as t,action as a}from"mobx";import{Validator as i}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as d,MinRule as u,EqualsRule as l}from"../rules/index.js";var p=function(){function p(e){var r=this;this.model={password:"",passwordAgain:""},this.onPasswordChange=function(e){r.password=e},this.onPasswordAgainChange=function(e){r.passwordAgain=e},s(this,{passwordErrorMessage:o,passwordAgainErrorMessage:o,hasError:o,redirect:o,password:o,passwordAgain:o,model:t,validateAll:a,submit:a,resetModel:a}),this.validator=new i(this.model,[new d({fieldKey:"password",valuePath:"password",message:e.message.requiredRule}),new d({fieldKey:"passwordAgain",valuePath:"passwordAgain",message:e.message.requiredRule}),new u({fieldKey:"password",valuePath:"password",minValue:6,message:e.message.minRule}),new u({fieldKey:"passwordAgain",valuePath:"passwordAgain",minValue:6,message:e.message.minRule}),new l({fieldKey:"passwordAgain",valuePath:"passwordAgain",equalsValuePath:"password",message:e.message.equalsRule})])}return p.prototype.resetModel=function(){this.model.password="",this.model.passwordAgain=""},Object.defineProperty(p.prototype,"password",{get:function(){return this.model.password},set:function(e){this.model.password=e},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"passwordAgain",{get:function(){return this.model.passwordAgain},set:function(e){this.model.passwordAgain=e},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"passwordErrorMessage",{get:function(){return this.validator.results.password.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"passwordAgainErrorMessage",{get:function(){return this.validator.results.passwordAgain.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),p.prototype.validateAll=function(){return this.validator.validateAll()},p.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e,s,o;return r(this,(function(r){switch(r.label){case 0:return e="",s={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return s.isFormError=!0,[2,s];"undefined"!=typeof window&&(o=new URLSearchParams(window.location.search),e=o.get("token")||""),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.recoverPassword(this.model.password,this.model.passwordAgain,e)];case 3:return r.sent()&&(s.isSuccess=!0),[2,s];case 4:return r.sent(),[2,s];case 5:return[2]}}))}))},p}();export{p as RecoverPasswordForm};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { IkasCustomerAttributeValue } from "../../../data";
|
|
2
|
-
declare type RegisterFormProps<T> = {
|
|
3
|
-
message: {
|
|
4
|
-
requiredRule: ((model: T) => string) | string;
|
|
5
|
-
emailRule: ((model: T) => string) | string;
|
|
6
|
-
minRule: ((model: T) => string) | string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare type RegisterFormModel = {
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
email: string;
|
|
13
|
-
password: string;
|
|
14
|
-
attributes?: IkasCustomerAttributeValue[];
|
|
15
|
-
isMarketingAccepted?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare class RegisterForm {
|
|
18
|
-
private model;
|
|
19
|
-
private validator;
|
|
20
|
-
constructor(props: RegisterFormProps<RegisterFormModel>);
|
|
21
|
-
get firstName(): string;
|
|
22
|
-
set firstName(value: string);
|
|
23
|
-
get lastName(): string;
|
|
24
|
-
set lastName(value: string);
|
|
25
|
-
get email(): string;
|
|
26
|
-
set email(value: string);
|
|
27
|
-
get password(): string;
|
|
28
|
-
set password(value: string);
|
|
29
|
-
get isMarketingAccepted(): boolean | undefined;
|
|
30
|
-
set isMarketingAccepted(value: boolean | undefined);
|
|
31
|
-
get hasError(): boolean;
|
|
32
|
-
get firstNameErrorMessage(): string | undefined;
|
|
33
|
-
get lastNameErrorMessage(): string | undefined;
|
|
34
|
-
get emailErrorMessage(): string | undefined;
|
|
35
|
-
get passwordErrorMessage(): string | undefined;
|
|
36
|
-
get attributes(): IkasCustomerAttributeValue[] | undefined;
|
|
37
|
-
set attributes(attributes: IkasCustomerAttributeValue[] | undefined);
|
|
38
|
-
get redirect(): string | null | undefined;
|
|
39
|
-
onFirstNameChange: (value: string) => void;
|
|
40
|
-
onLastNameChange: (value: string) => void;
|
|
41
|
-
onEmailChange: (value: string) => void;
|
|
42
|
-
onPasswordChange: (value: string) => void;
|
|
43
|
-
validateAll(): Promise<boolean>;
|
|
44
|
-
register(): Promise<{
|
|
45
|
-
isFormError: boolean;
|
|
46
|
-
isSuccess: boolean;
|
|
47
|
-
}>;
|
|
48
|
-
}
|
|
49
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as r,computed as s,observable as i,action as a}from"mobx";import{Validator as o}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as u,MinRule as m}from"../rules/index.js";var d=function(){function d(e){var t=this;this.model={firstName:"",lastName:"",email:"",password:"",attributes:void 0,isMarketingAccepted:!1},this.onFirstNameChange=function(e){t.firstName=e},this.onLastNameChange=function(e){t.lastName=e},this.onEmailChange=function(e){t.email=e},this.onPasswordChange=function(e){t.password=e},r(this,{emailErrorMessage:s,passwordErrorMessage:s,firstNameErrorMessage:s,lastNameErrorMessage:s,hasError:s,redirect:s,model:i,validateAll:a,register:a}),this.validator=new o(this.model,[new l({fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new l({fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new l({fieldKey:"password",valuePath:"password",message:e.message.requiredRule}),new u({fieldKey:"email",valuePath:"email",message:e.message.emailRule}),new m({fieldKey:"password",valuePath:"password",minValue:6,message:e.message.minRule})])}return Object.defineProperty(d.prototype,"firstName",{get:function(){return this.model.firstName},set:function(e){this.model.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"lastName",{get:function(){return this.model.lastName},set:function(e){this.model.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"password",{get:function(){return this.model.password},set:function(e){this.model.password=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isMarketingAccepted",{get:function(){return this.model.isMarketingAccepted},set:function(e){this.model.isMarketingAccepted=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"firstNameErrorMessage",{get:function(){return this.validator.results.firstName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"lastNameErrorMessage",{get:function(){return this.validator.results.lastName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"passwordErrorMessage",{get:function(){return this.validator.results.password.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"attributes",{get:function(){return this.model.attributes},set:function(e){this.model.attributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),d.prototype.validateAll=function(){return this.validator.validateAll()},d.prototype.register=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,n.getInstance().customerStore.register(this.model.firstName,this.model.lastName,this.model.email,this.model.password,this.model.isMarketingAccepted,this.model.attributes)];case 3:return t.sent()&&(e.isSuccess=!0),[2,e];case 4:return t.sent(),[2,e];case 5:return[2]}}))}))},d}();export{d as RegisterForm};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ValidatorErrorType, ValidationRule } from "./rules";
|
|
2
|
-
export declare type ValidationResults = {
|
|
3
|
-
[fieldKey: string]: ValidationResult;
|
|
4
|
-
};
|
|
5
|
-
export declare type ValidationStatus = "success" | "warning" | "error" | "validating";
|
|
6
|
-
export declare class Validator<T = any> {
|
|
7
|
-
model: T;
|
|
8
|
-
rules: ValidationRule[];
|
|
9
|
-
results: ValidationResults;
|
|
10
|
-
constructor(model: T, rules: ValidationRule[]);
|
|
11
|
-
get hasError(): boolean;
|
|
12
|
-
onValueChange: (validationRule: ValidationRule) => void;
|
|
13
|
-
setRules(rules: ValidationRule[]): void;
|
|
14
|
-
validateAll(): Promise<boolean>;
|
|
15
|
-
validateFieldRules(fieldKey: string): Promise<void>;
|
|
16
|
-
private runRules;
|
|
17
|
-
}
|
|
18
|
-
declare class ValidationResult {
|
|
19
|
-
fieldKey: string;
|
|
20
|
-
status?: ValidationStatus;
|
|
21
|
-
messages: string[];
|
|
22
|
-
errorTypes: ValidatorErrorType[];
|
|
23
|
-
constructor(fieldKey: string, status?: ValidationStatus, messages?: string[], errorTypes?: ValidatorErrorType[]);
|
|
24
|
-
get errorMessage(): string | undefined;
|
|
25
|
-
get errorType(): ValidatorErrorType | undefined;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as t}from"mobx";import s from"lodash/groupBy";var n=function(){function n(e,r){var s=this;this.results={},this.onValueChange=function(e){var r=s.results[e.fieldKey];r&&"error"===r.status&&s.runRules(e.fieldKey,[e])},this.model=e,this.rules=[],this.setRules(r),t(this,{model:!1})}return Object.defineProperty(n.prototype,"hasError",{get:function(){return Object.values(this.results).some((function(e){return"error"===e.status}))},enumerable:!1,configurable:!0}),n.prototype.setRules=function(e){var r=this;this.rules.forEach((function(e){return e.disposer&&e.disposer()})),this.rules=e,this.rules.forEach((function(e){r.results[e.fieldKey]=new i(e.fieldKey),e.model=r.model,e.onValueChange=r.onValueChange}));var t=[];Object.keys(this.results).forEach((function(e){r.rules.some((function(r){return r.fieldKey===e}))||t.push(e)})),t.forEach((function(e){delete r.results[e]}))},n.prototype.validateAll=function(){return e(this,void 0,void 0,(function(){var e,t,n,i,o;return r(this,(function(r){switch(r.label){case 0:e=s(this.rules,"fieldKey"),t=Object.keys(e),n=0,r.label=1;case 1:return n<t.length?(i=t[n],o=e[i],[4,this.runRules(i,o)]):[3,4];case 2:r.sent(),r.label=3;case 3:return n++,[3,1];case 4:return[2,this.hasError]}}))}))},n.prototype.validateFieldRules=function(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e=this.rules.filter((function(e){return e.fieldKey===t})),[4,this.runRules(t,e)];case 1:return r.sent(),[2]}}))}))},n.prototype.runRules=function(t,s){return e(this,void 0,void 0,(function(){var e,n,i,o,u;return r(this,(function(r){switch(r.label){case 0:e=[],n=[],i=!1,o=0,r.label=1;case 1:return o<s.length?[4,(u=s[o]).run()]:[3,4];case 2:r.sent()||(i=!0,u.errorType&&e.push(u.errorType),n.push(u.errorMessage)),r.label=3;case 3:return o++,[3,1];case 4:return this.results[t]&&(this.results[t].errorTypes=e,this.results[t].messages=n,this.results[t].status=i?"error":void 0),[2]}}))}))},n}(),i=function(){function e(e,r,s,n){void 0===s&&(s=[]),void 0===n&&(n=[]),this.fieldKey=e,this.status=r,this.messages=s,this.errorTypes=n,t(this)}return Object.defineProperty(e.prototype,"errorMessage",{get:function(){return this.messages.length?this.messages[0]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorType",{get:function(){return this.errorTypes.length?this.errorTypes[0]:void 0},enumerable:!1,configurable:!0}),e}();export{n as Validator};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export declare enum ValidatorErrorType {
|
|
2
|
-
"REQUIRED_RULE" = "REQUIRED_RULE",
|
|
3
|
-
"EMAIl_RULE" = "EMAIl_RULE",
|
|
4
|
-
"MIN_RULE" = "MIN_RULE"
|
|
5
|
-
}
|
|
6
|
-
declare type ValueGetter<T> = (model: T) => any;
|
|
7
|
-
declare type ValuePath<T> = string | ValueGetter<T>;
|
|
8
|
-
export interface IValidationRuleParams<T = any> {
|
|
9
|
-
model?: T;
|
|
10
|
-
fieldKey: string;
|
|
11
|
-
fieldName?: string;
|
|
12
|
-
message?: ((model: T) => string) | string;
|
|
13
|
-
errorType?: ValidatorErrorType;
|
|
14
|
-
valuePath: ValuePath<T>;
|
|
15
|
-
onValueChange?: (rule: ValidationRule) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare abstract class ValidationRule<T = any> {
|
|
18
|
-
model?: T;
|
|
19
|
-
fieldKey: string;
|
|
20
|
-
fieldName?: string;
|
|
21
|
-
message?: ((model: T) => string) | string;
|
|
22
|
-
errorType?: ValidatorErrorType;
|
|
23
|
-
valuePath: ValuePath<T>;
|
|
24
|
-
onValueChange?: (rule: ValidationRule) => void;
|
|
25
|
-
disposer?: () => void;
|
|
26
|
-
constructor(data: IValidationRuleParams<T>);
|
|
27
|
-
get value(): any;
|
|
28
|
-
protected getValue(valuePath: ValuePath<T>): any;
|
|
29
|
-
abstract run(): Promise<boolean>;
|
|
30
|
-
abstract get errorMessage(): string;
|
|
31
|
-
}
|
|
32
|
-
export interface IMinRuleParams<T> extends IValidationRuleParams<T> {
|
|
33
|
-
minValue: number;
|
|
34
|
-
}
|
|
35
|
-
export declare class MinRule<T> extends ValidationRule<T> {
|
|
36
|
-
minValue: number;
|
|
37
|
-
errorType: ValidatorErrorType;
|
|
38
|
-
constructor(data: IMinRuleParams<T>);
|
|
39
|
-
get errorMessage(): string;
|
|
40
|
-
run(): Promise<boolean>;
|
|
41
|
-
}
|
|
42
|
-
export interface IMaxRuleParams extends IValidationRuleParams {
|
|
43
|
-
maxValue: number;
|
|
44
|
-
}
|
|
45
|
-
export declare class MaxRule<T> extends ValidationRule<T> {
|
|
46
|
-
maxValue: number;
|
|
47
|
-
constructor(data: IMaxRuleParams);
|
|
48
|
-
get errorMessage(): string;
|
|
49
|
-
run(): Promise<boolean>;
|
|
50
|
-
}
|
|
51
|
-
export declare class RequiredRule<T> extends ValidationRule<T> {
|
|
52
|
-
constructor(data: IValidationRuleParams<T>);
|
|
53
|
-
get errorMessage(): string;
|
|
54
|
-
run(): Promise<boolean>;
|
|
55
|
-
}
|
|
56
|
-
interface ILessThanRuleParams<T> extends IValidationRuleParams<T> {
|
|
57
|
-
otherFieldValuePath: ValuePath<T>;
|
|
58
|
-
otherFieldName?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare class LessThanRule<T> extends ValidationRule<T> {
|
|
61
|
-
otherFieldName?: string;
|
|
62
|
-
otherFieldValuePath: ValuePath<T>;
|
|
63
|
-
constructor(data: ILessThanRuleParams<T>);
|
|
64
|
-
get otherValue(): any;
|
|
65
|
-
get errorMessage(): string;
|
|
66
|
-
run(): Promise<boolean>;
|
|
67
|
-
}
|
|
68
|
-
export declare class EmailRule<T> extends ValidationRule<T> {
|
|
69
|
-
errorType: ValidatorErrorType;
|
|
70
|
-
get errorMessage(): string;
|
|
71
|
-
run(): Promise<boolean>;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* 1) start with plus(+) or digit
|
|
75
|
-
* 2) any digit or one char white space
|
|
76
|
-
* 3) end with digit
|
|
77
|
-
*
|
|
78
|
-
* For example:
|
|
79
|
-
* ✅ Valid +90535 555 5555
|
|
80
|
-
* ✅ valid 905355555555
|
|
81
|
-
* 🚫 Unvalid +90535 5 55 5555
|
|
82
|
-
*/
|
|
83
|
-
export declare class PhoneRule<T> extends ValidationRule<T> {
|
|
84
|
-
get errorMessage(): string;
|
|
85
|
-
run(): Promise<boolean>;
|
|
86
|
-
}
|
|
87
|
-
export interface IEqualsRuleParams<T> extends IValidationRuleParams<T> {
|
|
88
|
-
equalsValuePath: ValuePath<T>;
|
|
89
|
-
}
|
|
90
|
-
export declare class EqualsRule<T> extends ValidationRule<T> {
|
|
91
|
-
equalsValuePath: ValuePath<T>;
|
|
92
|
-
constructor(data: IEqualsRuleParams<T>);
|
|
93
|
-
get equalsValue(): any;
|
|
94
|
-
get errorMessage(): string;
|
|
95
|
-
run(): Promise<boolean>;
|
|
96
|
-
}
|
|
97
|
-
export declare class IdentityNumberRule<T> extends ValidationRule<T> {
|
|
98
|
-
get errorMessage(): string;
|
|
99
|
-
run(): Promise<boolean>;
|
|
100
|
-
}
|
|
101
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e,__awaiter as t,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{reaction as n,makeObservable as i,computed as s}from"mobx";import u from"lodash/get";var o;!function(e){e.REQUIRED_RULE="REQUIRED_RULE",e.EMAIl_RULE="EMAIl_RULE",e.MIN_RULE="MIN_RULE"}(o||(o={}));var a=function(){function e(e){var t=this;this.model=e.model,this.valuePath=e.valuePath,this.fieldKey=e.fieldKey,this.fieldName=e.fieldName,this.onValueChange=e.onValueChange,this.message=e.message,this.errorType=e.errorType,this.disposer=n((function(){return t.value}),(function(){return t.onValueChange&&t.onValueChange(t)}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue(this.valuePath)},enumerable:!1,configurable:!0}),e.prototype.getValue=function(e){return"string"==typeof e?u(this.model,e):e(this.model)},e}(),h=function(n){function i(e){var t=n.call(this,e)||this;return t.errorType=o.MIN_RULE,t.minValue=e.minValue,t}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return"string"==typeof this.value?[2,this.value.length>=this.minValue]:[2,this.value>=this.minValue]}))}))},i}(a),l=function(n){function i(e){var t=n.call(this,e)||this;return t.maxValue=e.maxValue,t}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.value<=this.maxValue]}))}))},i}(a),f=function(n){function i(e){var t=n.call(this,e)||this;return t.errorType=o.REQUIRED_RULE,t}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return"string"==typeof this.value?[2,!!this.value.trim()]:Array.isArray(this.value)?[2,!!this.value.length]:[2,void 0!==this.value&&null!==this.value]}))}))},i}(a),g=function(n){function i(e){var t=n.call(this,e)||this;return t.otherFieldName=e.otherFieldName,t.otherFieldValuePath=e.otherFieldValuePath,t}return e(i,n),Object.defineProperty(i.prototype,"otherValue",{get:function(){return this.getValue(this.otherFieldValuePath)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return void 0===this.value||null==this.value||null===this.otherValue||void 0===this.otherValue?[2,!0]:[2,this.value<this.otherValue]}))}))},i}(a),p=function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.errorType=o.EMAIl_RULE,e}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return[2,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.value)]}))}))},i}(a),c=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return this.value?[2,!!this.value.match(/^[\+\d](\d+\s)*\d+$/g)]:[2,!0]}))}))},i}(a),m=function(n){function u(e){var t=n.call(this,e)||this;return i(t,{equalsValue:s}),t.equalsValuePath=e.equalsValuePath,t}return e(u,n),Object.defineProperty(u.prototype,"equalsValue",{get:function(){return this.getValue(this.equalsValuePath)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),u.prototype.run=function(){return t(this,void 0,void 0,(function(){return r(this,(function(e){return[2,this.value===this.equalsValue]}))}))},u}(a),d=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),Object.defineProperty(i.prototype,"errorMessage",{get:function(){return this.message?"string"==typeof this.message?this.message:this.message(this.model):""},enumerable:!1,configurable:!0}),i.prototype.run=function(){return t(this,void 0,void 0,(function(){var e,t,n,i,s,u,o;return r(this,(function(r){if(!(e=this.value))return[2,!1];if(t=e.toString(),n=0,0,0,s=0,u=[11111111110,22222222220,33333333330,44444444440,55555555550,66666666660,7777777770,88888888880,99999999990],11!==t.length)return[2,!1];if(isNaN(e))return[2,!1];if("0"===t[0])return[2,!1];if(n=parseInt(t[0])+parseInt(t[2])+parseInt(t[4])+parseInt(t[6])+parseInt(t[8]),i=parseInt(t[1])+parseInt(t[3])+parseInt(t[5])+parseInt(t[7]),n*=7,Math.abs(n-i)%10!==parseInt(t[9]))return[2,!1];for(o=0;o<10;o++)s+=parseInt(t[o]);return s%10!==parseInt(t[10])||-1!==u.toString().indexOf(t)?[2,!1]:[2,!0]}))}))},i}(a);export{p as EmailRule,m as EqualsRule,d as IdentityNumberRule,g as LessThanRule,l as MaxRule,h as MinRule,c as PhoneRule,f as RequiredRule,a as ValidationRule,o as ValidatorErrorType};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IkasCategoryListParams } from "../models/ui/category-list";
|
|
2
|
-
import { IkasAttributeList } from "../models/ui/product-attribute-list";
|
|
3
|
-
import { IkasProductListParams } from "../models/ui/product-list";
|
|
4
|
-
import { IkasRaffleListParams } from "../models/ui/raffle-list";
|
|
5
|
-
import { IkasThemeJsonSettings, IkasThemeJsonPageType, IkasThemeJsonComponentProp, IkasThemeJsonCustomData, IkasBrandListParams, IkasBrandList, IkasCategoryList, IkasProductList, IkasAttributeDetail, IkasNavigationLink, IkasImage, IkasComponentRenderer, IkasBlogListParams, IkasBlogList, IkasBlogCategoryListParams, IkasBlogCategoryList, IkasRaffleList, IkasProduct } from "../models";
|
|
6
|
-
import { IkasPageComponentPropValue, IkasSimplePageComponentPropValue, IkasAttributePropValueData, IkasAttributeListPropValueData, IkasBlogPropValueData, IkasBrandPropValueData, IkasCategoryPropValueData, IkasBlogCategoryPropValueData, IkasCustomDataPropValueData, IkasRafflePropValueData, IkasProductPropValueData, IkasSliderPropValueData } from "@ikas/storefront-providers";
|
|
7
|
-
import { IkasThemeJsonComponent } from "@ikas/storefront-models";
|
|
8
|
-
export declare class IkasPageDataInit {
|
|
9
|
-
static pageSpecificData: any;
|
|
10
|
-
static setPageSpecificData(pageSpecificData: any, pageType: IkasThemeJsonPageType, isBrowser: boolean): void;
|
|
11
|
-
static isServer(): boolean;
|
|
12
|
-
static initPagePropValues(pageComponentPropValues: IkasSimplePageComponentPropValue[] | IkasPageComponentPropValue[], components: IkasThemeJsonComponent[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasPageComponentPropValue[];
|
|
13
|
-
static initPageComponentPropValue(pageComponentPropValue: IkasSimplePageComponentPropValue | IkasPageComponentPropValue, components: IkasThemeJsonComponent[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasPageComponentPropValue;
|
|
14
|
-
static initPropValue(prop: IkasThemeJsonComponentProp, propValue: any, settings: IkasThemeJsonSettings, isBrowser?: boolean): any;
|
|
15
|
-
static initBrandPropValue(propValue: IkasBrandPropValueData): any;
|
|
16
|
-
static initBrandListPropValue(propValue: IkasBrandListParams): IkasBrandList;
|
|
17
|
-
static initCategoryPropValue(propValue: IkasCategoryPropValueData): any;
|
|
18
|
-
static initCategoryListPropValue(propValue: IkasCategoryListParams): IkasCategoryList;
|
|
19
|
-
static initProductListPropValue(propValue: IkasProductListParams): IkasProductList;
|
|
20
|
-
static initProductPropValue(propValue: IkasProductPropValueData): IkasProduct;
|
|
21
|
-
static _initProductOnBrowser(product: IkasProduct): void;
|
|
22
|
-
static initAttributePropValue(propValue: IkasAttributePropValueData): IkasAttributeDetail;
|
|
23
|
-
static initAttributeListPropValue(propValue: IkasAttributeListPropValueData): IkasAttributeList;
|
|
24
|
-
static initLinkPropValue(propValue: IkasNavigationLink | IkasNavigationLink[]): IkasNavigationLink | IkasNavigationLink[] | undefined;
|
|
25
|
-
static initImagePropValue(propValue: IkasImage): IkasImage;
|
|
26
|
-
static initImageListPropValue(propValue: IkasImage[]): IkasImage[];
|
|
27
|
-
static initCustomDataPropValue(customDataValue: IkasCustomDataPropValueData | undefined, settings: IkasThemeJsonSettings, isBrowser?: boolean): any;
|
|
28
|
-
static _initCustomDataPropValue(customDataValue: IkasCustomDataPropValueData | undefined, customData: IkasThemeJsonCustomData, settings: IkasThemeJsonSettings, isBrowser?: boolean): any;
|
|
29
|
-
static initComponentPropValue(propValue: IkasPageComponentPropValue[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasComponentRenderer | undefined;
|
|
30
|
-
static _initComponentPropValue(propValue: IkasPageComponentPropValue[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasComponentRenderer | undefined;
|
|
31
|
-
static initComponentListPropValue(propValue: IkasPageComponentPropValue[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasComponentRenderer[];
|
|
32
|
-
static _initComponentListPropValue(propValue: IkasPageComponentPropValue[], settings: IkasThemeJsonSettings, isBrowser?: boolean): IkasComponentRenderer[];
|
|
33
|
-
static initBlogPropValue(propValue: IkasBlogPropValueData): any;
|
|
34
|
-
static initBlogListPropValue(propValue: IkasBlogListParams): IkasBlogList;
|
|
35
|
-
static initBlogCategoryPropValue(propValue: IkasBlogCategoryPropValueData): any;
|
|
36
|
-
static initBlogCategoryListPropValue(propValue: IkasBlogCategoryListParams): IkasBlogCategoryList;
|
|
37
|
-
static initRafflePropValue(propValue: IkasRafflePropValueData): any;
|
|
38
|
-
static initRaffleListPropValue(propValue: IkasRaffleListParams): IkasRaffleList;
|
|
39
|
-
static initSliderPropValue(propValue: IkasSliderPropValueData): IkasSliderPropValueData;
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from'./../ext/tslib/tslib.es6.js';import{renderComponent as t}from"../components/page/index.js";import{IkasAttributeList as i}from"../models/ui/product-attribute-list/index.js";import{IkasBlogCategory as a}from"../models/data/blog/category/index.js";import"../models/data/blog/content/index.js";import"../models/data/blog/meta-data/index.js";import"../models/data/blog/tag/index.js";import"mobx";import{IkasBlog as r}from"../models/data/blog/index.js";import{IkasBrand as o}from"../models/data/brand/index.js";import{IkasThemeJsonPageType as n,IkasThemeJsonComponentPropType as s}from"@ikas/storefront-models";import"../models/data/campaign-offer/index.js";import"../models/data/cart/campaign-offer/index.js";import"../models/data/cart/index.js";import"../models/data/category/path-item/index.js";import{IkasCategory as u}from"../models/data/category/index.js";import"../models/data/checkout/index.js";import"../models/data/checkout-settings/index.js";import"../models/data/city/index.js";import"../models/data/country/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/attribute/index.js";import"../models/data/customer/review/summary/index.js";import"../models/data/customer/review/index.js";import"../models/data/customer/index.js";import"../models/data/district/index.js";import"../models/data/favorite-product/index.js";import"../models/data/filter-category/index.js";import"../models/data/html-meta-data/index.js";import{IkasImage as l}from"../models/data/image/index.js";import"../models/data/order/address/index.js";import"../models/data/order/line-item/variant/value/index.js";import"../models/data/order/line-item/variant/index.js";import"../models/data/order/line-item/index.js";import"../models/data/order/package/index.js";import"../models/data/order/index.js";import"../models/data/payment-gateway/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product/filter/index.js";import"../models/data/product/option-set/option/index.js";import"../models/data/product/option-set/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product/variant/index.js";import"../models/data/variant-type/index.js";import{IkasProduct as p}from"../models/data/product/index.js";import{IkasRaffle as d}from"../models/data/raffle/index.js";import"../models/data/state/index.js";import"../models/data/theme-json/index.js";import{IkasThemeJsonCustomData as m}from"../models/data/theme-json/custom-data/index.js";import{IkasThemeJsonPageComponent as c}from"../models/data/theme-json/page/component/index.js";import"../models/data/variant-type/variant-value/index.js";import{IkasBlogList as f}from"../models/ui/blog-list/index.js";import{IkasBlogCategoryList as P}from"../models/ui/blog-category-list/index.js";import{IkasBrandList as g}from"../models/ui/brand-list/index.js";import{IkasCategoryList as V}from"../models/ui/category-list/index.js";import{IkasNavigationLink as L}from"../models/ui/navigation-link/index.js";import{IkasProductList as v}from"../models/ui/product-list/index.js";import{IkasAttributeDetail as D}from"../models/ui/product-attribute-detail/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import{IkasComponentRenderer as j}from"../models/ui/component-renderer/index.js";import{IkasRaffleList as h}from"../models/ui/raffle-list/index.js";import{IkasPageComponentPropValue as T,getPlaceholderBrand as x,getPlaceholderCategory as C,getPlaceholderProduct as S,getPlaceholderBlog as w,getPlaceholderBlogCategory as I,getPlaceholderRaffle as b}from"@ikas/storefront-providers";var y=function(){function y(){}return y.setPageSpecificData=function(t,i,o){if(t)switch(i){case n.PRODUCT:var s=t;y.pageSpecificData=new p(e(e({},s),{selectedVariantValues:s.selectedVariantValues||s.variants[0].variantValues})),o&&this._initProductOnBrowser(y.pageSpecificData);break;case n.CATEGORY:var l=t;y.pageSpecificData=new u(l);break;case n.BRAND:var m=t;y.pageSpecificData=new u(m);break;case n.BLOG:var c=t;y.pageSpecificData=new r(c);break;case n.BLOG_CATEGORY:var f=t;y.pageSpecificData=new a(f);break;case n.RAFFLE_DETAIL:var P=t;y.pageSpecificData=new d(P)}else this.pageSpecificData=void 0},y.isServer=function(){return"undefined"==typeof window},y.initPagePropValues=function(e,t,i,a){return e.map((function(e){return y.initPageComponentPropValue(e,t,i,a)}))},y.initPageComponentPropValue=function(t,i,a,r){var o=i.find((function(e){return e.id===t.pageComponent.componentId})),n=null==o?void 0:o.props,s={};return null==n||n.map((function(e){var i=t.propValues[e.name];s[e.name]=y.initPropValue(e,i,a,r)})),new T(e(e({},t),{pageComponent:new c(e(e({},t.pageComponent),{propValues:s,componentId:o.id})),component:o,propValues:s}))},y.initPropValue=function(e,t,i,a){if(null==t)return null;switch(e.type){case s.IMAGE:return y.initImagePropValue(t);case s.IMAGE_LIST:return y.initImageListPropValue(t);case s.BRAND:return y.initBrandPropValue(t);case s.BRAND_LIST:return y.initBrandListPropValue(t);case s.CATEGORY:return y.initCategoryPropValue(t);case s.CATEGORY_LIST:return y.initCategoryListPropValue(t);case s.PRODUCT_LIST:return y.initProductListPropValue(t);case s.PRODUCT_DETAIL:return y.initProductPropValue(t);case s.PRODUCT_ATTRIBUTE:return y.initAttributePropValue(t);case s.PRODUCT_ATTRIBUTE_LIST:return y.initAttributeListPropValue(t);case s.LINK:case s.LIST_OF_LINK:return y.initLinkPropValue(t);case s.COMPONENT:return y.initComponentPropValue(t,i,a);case s.COMPONENT_LIST:return y.initComponentListPropValue(t,i,a);case s.CUSTOM:return y.initCustomDataPropValue(t,i,a);case s.BLOG:return y.initBlogPropValue(t);case s.BLOG_LIST:return y.initBlogListPropValue(t);case s.BLOG_CATEGORY:return y.initBlogCategoryPropValue(t);case s.BLOG_LIST:return y.initBlogCategoryListPropValue(t);case s.RAFFLE:return y.initRafflePropValue(t);case s.RAFFLE_LIST:return y.initRaffleListPropValue(t);case s.SLIDER:return y.initSliderPropValue(t);default:return t}},y.initBrandPropValue=function(e){return e.brandPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.brand?new o(e.brand):x()},y.initBrandListPropValue=function(e){return new g(e)},y.initCategoryPropValue=function(e){return e.categoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.category?new u(e.category):C()},y.initCategoryListPropValue=function(e){return new V(e)},y.initProductListPropValue=function(e){return new v(e)},y.initProductPropValue=function(t){var i=new p(S());if(t.productDetailPropValue.usePageData&&this.pageSpecificData)i=this.pageSpecificData;else if(t.productDetail){var a=t.productDetail;i=new p(e(e({},a),{selectedVariantValues:a.selectedVariantValues}))}return i},y._initProductOnBrowser=function(e){var t=new URLSearchParams(window.location.search),i=t.get("vid");if(i){var a=e.variants.find((function(e){return e.id===i}));a&&(e.selectedVariantValues=a.variantValues)}else{var r=e.variantTypes.map((function(e){return e.variantType.slug})),o=[];r.forEach((function(i,a){var r=e.variantTypes[a],n=t.get(i);if(n){var s=r.variantType.values.find((function(e){return e.slug===n}));s&&o.push(s)}})),o.length===e.selectedVariantValues.length&&(e.selectedVariantValues=o)}},y.initAttributePropValue=function(t){var i=null;if(t.attributePropValue.usePageData&&this.pageSpecificData)i=this.pageSpecificData;else if(t.productDetail){var a=t.productDetail;i=new p(e(e({},a),{selectedVariantValues:a.selectedVariantValues}))}return new D(i,t.attributePropValue)},y.initAttributeListPropValue=function(t){var a=null;if(t.attributeListPropValue.usePageData&&this.pageSpecificData)a=this.pageSpecificData;else if(t.productDetail){var r=t.productDetail;a=new p(e(e({},r),{selectedVariantValues:r.selectedVariantValues}))}return new i(a,t.attributeListPropValue)},y.initLinkPropValue=function(e){return Array.isArray(e)?e.map((function(e){return new L(e.href,e.label,e.subLinks,e.isExternal||void 0)})):e?new L(e.href,e.label,e.subLinks,e.isExternal||void 0):void 0},y.initImagePropValue=function(e){return new l(e)},y.initImageListPropValue=function(e){return e.map((function(e){return new l(e)}))},y.initCustomDataPropValue=function(e,t,i){if(e&&e.value&&e.customData)return this._initCustomDataPropValue(e,new m(e.customData),t,i)},y._initCustomDataPropValue=function(e,t,i,a){var r=this;if(!e)return null;var o=e.value;if(null==o)return null;switch(t.type){case s.BRAND:return this.initBrandPropValue(o);case s.BRAND_LIST:return this.initBrandListPropValue(o);case s.CATEGORY_LIST:return this.initCategoryListPropValue(o);case s.CATEGORY:return this.initCategoryPropValue(o);case s.IMAGE_LIST:return this.initImageListPropValue(o);case s.IMAGE:return this.initImagePropValue(o);case s.LINK:return this.initLinkPropValue(o);case s.PRODUCT_DETAIL:return this.initProductPropValue(o);case s.PRODUCT_LIST:return this.initProductListPropValue(o);case s.PRODUCT_ATTRIBUTE:return this.initAttributePropValue(o);case s.PRODUCT_ATTRIBUTE_LIST:return this.initAttributeListPropValue(o);case s.BLOG:return this.initBlogPropValue(o);case s.BLOG_LIST:return this.initBlogListPropValue(o);case s.BLOG_CATEGORY:return this.initBlogCategoryPropValue(o);case s.BLOG_CATEGORY_LIST:return this.initBlogCategoryListPropValue(o);case s.RAFFLE:return this.initRafflePropValue(o);case s.RAFFLE_LIST:return this.initRaffleListPropValue(o);case s.SLIDER:return this.initSliderPropValue(o);case s.OBJECT:for(var n={},u=0,l=t.nestedData||[];u<l.length;u++){var p=l[u],d=o[p.key],m=void 0;p.customDataId&&(m=d.customData),n[p.key]=this._initCustomDataPropValue(d,m||p,i,a)}return n;case s.DYNAMIC_LIST:case s.STATIC_LIST:try{if(!o||!o.length)return null;var c=[],f=t.nestedData[0];return o.forEach((function(e){var t;f.customDataId&&(t=e.customData),c.push(r._initCustomDataPropValue(e,t||f,i,a))})),c}catch(e){return[]}case s.COMPONENT:return this.initComponentPropValue(o,i,a);case s.COMPONENT_LIST:return this.initComponentListPropValue(o,i,a);default:return o}},y.initComponentPropValue=function(e,t,i){return this._initComponentPropValue(e,t,i)},y._initComponentPropValue=function(e,i,a){var r=e.length?e[0]:void 0;if(r){var o=new T(r),n=y.initPageComponentPropValue(o,[o.component],i,a);if(n)return new j((function(){return t(n,i,-10)}))}},y.initComponentListPropValue=function(e,t,i){return this._initComponentListPropValue(e,t,i)},y._initComponentListPropValue=function(e,i,a){return e&&e.length?e.map((function(e){var r=new T(e),o=y.initPageComponentPropValue(r,[r.component],i,a);return new j((function(){return t(o,i,-1)}))})):[]},y.initBlogPropValue=function(e){return e.blogPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blog?new r(e.blog):w()},y.initBlogListPropValue=function(e){return new f(e)},y.initBlogCategoryPropValue=function(e){return e.blogCategoryPropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.blogCategory?new a(e.blogCategory):I()},y.initBlogCategoryListPropValue=function(e){return new P(e)},y.initRafflePropValue=function(e){return e.rafflePropValue.usePageData&&this.pageSpecificData?this.pageSpecificData:e.raffle?new d(e.raffle):new d(b())},y.initRaffleListPropValue=function(e){return new h(e)},y.initSliderPropValue=function(e){return e},y.pageSpecificData={},y}();export{y as IkasPageDataInit};
|
package/build/pages/404.d.ts
DELETED
package/build/pages/404.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from'./../ext/tslib/tslib.es6.js';import*as r from"react";import t from"next/error.js";import{IkasPage as o}from"../components/page/index.js";var s=function(s){return s.propValues?r.createElement(o,e({},s)):r.createElement(t,{statusCode:404})};export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from'./../../ext/tslib/tslib.es6.js';import*as r from"react";import{observer as t}from"mobx-react-lite";import{IkasPage as o}from"../../components/page/index.js";var m=t((function(t){return r.createElement(o,e({},t,{addOgpMetas:!0,reInitOnBrowser:!0}))}));export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from'./../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as o}from"mobx-react-lite";import{IkasPage as r}from"../../components/page/index.js";var m=o((function(o){return t.createElement(r,e({},o))}));export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from'./../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as o}from"mobx-react-lite";import{IkasPage as r}from"../../components/page/index.js";var m=o((function(o){return t.createElement(r,e({},o))}));export{m as default};
|