@ikas/storefront 4.0.0-alpha.50 → 4.0.0-alpha.52
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/build/_virtual/_commonjsHelpers.js +1 -0
- package/build/_virtual/axios.js +1 -0
- package/build/_virtual/index.js +1 -0
- package/build/_virtual/index2.js +1 -0
- package/build/_virtual/index3.js +1 -0
- package/build/_virtual/index4.js +1 -0
- package/build/_virtual/react-is.development.js +1 -0
- package/build/_virtual/react-is.production.min.js +1 -0
- package/build/_virtual/react-stripe.umd.js +1 -0
- package/build/analytics/analytics.d.ts +37 -0
- package/build/analytics/analytics.js +1 -0
- package/build/analytics/events.d.ts +37 -0
- package/build/analytics/events.js +1 -0
- package/build/analytics/facebookPixel.d.ts +15 -0
- package/build/analytics/facebookPixel.js +1 -0
- package/build/analytics/googleAnalytics.d.ts +13 -0
- package/build/analytics/googleAnalytics.js +1 -0
- package/build/analytics/googleTagManager.d.ts +203 -0
- package/build/analytics/googleTagManager.js +1 -0
- package/build/analytics/googleUniversal.d.ts +9 -0
- package/build/analytics/googleUniversal.js +1 -0
- package/build/analytics/head/index.d.ts +7 -0
- package/build/analytics/head/index.js +1 -0
- package/build/analytics/ikas.d.ts +134 -0
- package/build/analytics/ikas.js +1 -0
- package/build/analytics/index.d.ts +2 -0
- package/build/analytics/tiktokPixel.d.ts +13 -0
- package/build/analytics/tiktokPixel.js +1 -0
- package/build/components/checkout/components/address-form/index.d.ts +3 -0
- package/build/components/checkout/components/address-form/index.js +1 -0
- package/build/components/checkout/components/address-form/model.d.ts +87 -0
- package/build/components/checkout/components/address-form/model.js +1 -0
- package/build/components/checkout/components/button/index.d.ts +13 -0
- package/build/components/checkout/components/button/index.js +1 -0
- package/build/components/checkout/components/button/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/index.js +1 -0
- package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
- package/build/components/checkout/components/checkbox/check.d.ts +6 -0
- package/build/components/checkout/components/checkbox/check.js +1 -0
- package/build/components/checkout/components/checkbox/index.d.ts +10 -0
- package/build/components/checkout/components/checkbox/index.js +1 -0
- package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
- package/build/components/checkout/components/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
- package/build/components/checkout/components/credit-card-form/model.js +1 -0
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
- package/build/components/checkout/components/customer-addresses/index.d.ts +19 -0
- package/build/components/checkout/components/customer-addresses/index.js +1 -0
- package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
- package/build/components/checkout/components/customer-addresses/model.js +1 -0
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
- package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
- package/build/components/checkout/components/delivery-methods/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
- package/build/components/checkout/components/error/index.d.ts +7 -0
- package/build/components/checkout/components/error/index.js +1 -0
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +3 -0
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
- package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/payment-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/stock-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/unknown-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/unknown-error/index.js +1 -0
- package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
- package/build/components/checkout/components/expandable-section/index.js +1 -0
- package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
- package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
- package/build/components/checkout/components/form-item/caret-down.js +1 -0
- package/build/components/checkout/components/form-item/index.d.ts +3 -0
- package/build/components/checkout/components/form-item/index.js +1 -0
- package/build/components/checkout/components/form-item/model.d.ts +61 -0
- package/build/components/checkout/components/form-item/model.js +1 -0
- package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
- package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
- package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
- package/build/components/checkout/components/input-with-button/index.js +1 -0
- package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +8 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/index.d.ts +11 -0
- package/build/components/checkout/components/master-pass/modal/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +1 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +9 -0
- package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-success/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +2 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
- package/build/components/checkout/components/modal/index.d.ts +8 -0
- package/build/components/checkout/components/modal/index.js +1 -0
- package/build/components/checkout/components/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
- package/build/components/checkout/components/modal/useEscape.js +1 -0
- package/build/components/checkout/components/notification-box/index.d.ts +9 -0
- package/build/components/checkout/components/notification-box/index.js +1 -0
- package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/index.d.ts +8 -0
- package/build/components/checkout/components/offer-product/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
- package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
- package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
- package/build/components/checkout/components/offer-product/select/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +2 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.js +1 -0
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +7 -0
- package/build/components/checkout/components/phone-number-input/get-countries.js +1 -0
- package/build/components/checkout/components/phone-number-input/index.d.ts +10 -0
- package/build/components/checkout/components/phone-number-input/index.js +1 -0
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +1 -0
- package/build/components/checkout/components/select-box/index.d.ts +13 -0
- package/build/components/checkout/components/select-box/index.js +1 -0
- package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/step-container/index.d.ts +15 -0
- package/build/components/checkout/components/step-container/index.js +1 -0
- package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
- package/build/components/checkout/components/stripe/checkout-form.d.ts +8 -0
- package/build/components/checkout/components/stripe/checkout-form.js +1 -0
- package/build/components/checkout/components/stripe/index.d.ts +9 -0
- package/build/components/checkout/components/stripe/index.js +1 -0
- package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
- package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-down.js +1 -0
- package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.js +1 -0
- package/build/components/checkout/components/svg/discount.d.ts +6 -0
- package/build/components/checkout/components/svg/external.d.ts +6 -0
- package/build/components/checkout/components/svg/external.js +1 -0
- package/build/components/checkout/components/svg/gift.d.ts +7 -0
- package/build/components/checkout/components/svg/gift.js +1 -0
- package/build/components/checkout/components/svg/ikas.d.ts +6 -0
- package/build/components/checkout/components/svg/ikas.js +1 -0
- package/build/components/checkout/components/svg/lock.d.ts +6 -0
- package/build/components/checkout/components/svg/lock.js +1 -0
- package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.js +1 -0
- package/build/components/checkout/components/svg/tag.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.js +1 -0
- package/build/components/checkout/components/toggle/index.d.ts +10 -0
- package/build/components/checkout/components/toggle/index.js +1 -0
- package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
- package/build/components/checkout/components/tooltip/index.d.ts +8 -0
- package/build/components/checkout/components/tooltip/index.js +1 -0
- package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
- package/build/components/checkout/index.d.ts +32 -0
- package/build/components/checkout/index.js +1 -0
- package/build/components/checkout/model.d.ts +161 -0
- package/build/components/checkout/model.js +1 -0
- package/build/components/checkout/modelMasterPass.d.ts +201 -0
- package/build/components/checkout/modelMasterPass.js +1 -0
- package/build/components/checkout/steps/step-info/index.d.ts +7 -0
- package/build/components/checkout/steps/step-info/index.js +1 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
- package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
- package/build/components/checkout/steps/step-shipping/index.js +1 -0
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-success/index.d.ts +7 -0
- package/build/components/checkout/steps/step-success/index.js +1 -0
- package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
- package/build/components/checkout/style.module.scss.js +1 -0
- package/build/components/checkout/styles/common.module.scss.js +1 -0
- package/build/components/image/index.d.ts +10 -0
- package/build/components/image/index.js +1 -0
- package/build/components/index.d.ts +5 -0
- package/build/components/link/index.d.ts +16 -0
- package/build/components/link/index.js +1 -0
- package/build/components/page/ThemeComponent.d.ts +21 -0
- package/build/components/page/ThemeComponent.js +1 -0
- package/build/components/page/head.d.ts +15 -0
- package/build/components/page/head.js +1 -0
- package/build/components/page/index.d.ts +21 -0
- package/build/components/page/index.js +1 -0
- package/build/components/page-editor/ThemeComponentEditor.d.ts +32 -0
- package/build/components/page-editor/ThemeComponentEditor.js +1 -0
- package/build/components/page-editor/error/index.d.ts +4 -0
- package/build/components/page-editor/error/index.js +1 -0
- package/build/components/page-editor/index.d.ts +4 -0
- package/build/components/page-editor/index.js +1 -0
- package/build/components/page-editor/loader/index.d.ts +6 -0
- package/build/components/page-editor/loader/index.js +1 -0
- package/build/components/page-editor/loader/style.module.scss.js +1 -0
- package/build/components/page-editor/model.d.ts +75 -0
- package/build/components/page-editor/model.js +1 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +1 -0
- package/build/models/data/base/index.d.ts +8 -0
- package/build/models/data/base/index.js +1 -0
- package/build/models/data/blog/category/index.d.ts +12 -0
- package/build/models/data/blog/category/index.js +1 -0
- package/build/models/data/blog/content/index.d.ts +6 -0
- package/build/models/data/blog/content/index.js +1 -0
- package/build/models/data/blog/index.d.ts +27 -0
- package/build/models/data/blog/index.js +1 -0
- package/build/models/data/blog/meta-data/index.d.ts +16 -0
- package/build/models/data/blog/meta-data/index.js +1 -0
- package/build/models/data/blog/tag/index.d.ts +6 -0
- package/build/models/data/blog/tag/index.js +1 -0
- package/build/models/data/blog/writer/index.d.ts +6 -0
- package/build/models/data/blog/writer/index.js +1 -0
- package/build/models/data/brand/index.d.ts +26 -0
- package/build/models/data/brand/index.js +1 -0
- package/build/models/data/brand/translation/index.d.ts +7 -0
- package/build/models/data/brand/translation/index.js +1 -0
- package/build/models/data/campaign-offer/index.d.ts +21 -0
- package/build/models/data/campaign-offer/index.js +1 -0
- package/build/models/data/campaign-offer/product/index.d.ts +24 -0
- package/build/models/data/campaign-offer/product/index.js +1 -0
- package/build/models/data/cart/available-shipping-method/index.d.ts +10 -0
- package/build/models/data/cart/available-shipping-method/index.js +1 -0
- package/build/models/data/cart/campaign-offer/index.d.ts +16 -0
- package/build/models/data/cart/campaign-offer/index.js +1 -0
- package/build/models/data/cart/index.d.ts +13 -0
- package/build/models/data/cart/index.js +1 -0
- package/build/models/data/category/index.d.ts +22 -0
- package/build/models/data/category/index.js +1 -0
- package/build/models/data/category/path-item/index.d.ts +14 -0
- package/build/models/data/category/path-item/index.js +1 -0
- package/build/models/data/category/translations/index.d.ts +7 -0
- package/build/models/data/category/translations/index.js +1 -0
- package/build/models/data/checkout/index.d.ts +22 -0
- package/build/models/data/checkout/index.js +1 -0
- package/build/models/data/checkout-settings/index.d.ts +20 -0
- package/build/models/data/checkout-settings/index.js +1 -0
- package/build/models/data/checkout-settings/option/index.d.ts +6 -0
- package/build/models/data/checkout-settings/option/index.js +1 -0
- package/build/models/data/checkout-settings/price/index.d.ts +7 -0
- package/build/models/data/checkout-settings/price/index.js +1 -0
- package/build/models/data/city/index.d.ts +12 -0
- package/build/models/data/city/index.js +1 -0
- package/build/models/data/contact-form/index.d.ts +9 -0
- package/build/models/data/contact-form/index.js +1 -0
- package/build/models/data/country/index.d.ts +18 -0
- package/build/models/data/country/index.js +1 -0
- package/build/models/data/country/location-translations/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.js +1 -0
- package/build/models/data/customer/address/country/index.d.ts +9 -0
- package/build/models/data/customer/address/country/index.js +1 -0
- package/build/models/data/customer/address/district/index.d.ts +7 -0
- package/build/models/data/customer/address/district/index.js +1 -0
- package/build/models/data/customer/address/index.d.ts +40 -0
- package/build/models/data/customer/address/index.js +1 -0
- package/build/models/data/customer/address/state/index.d.ts +7 -0
- package/build/models/data/customer/address/state/index.js +1 -0
- package/build/models/data/customer/attribute/index.d.ts +17 -0
- package/build/models/data/customer/attribute/index.js +1 -0
- package/build/models/data/customer/attribute/option/index.d.ts +9 -0
- package/build/models/data/customer/attribute/option/index.js +1 -0
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +8 -0
- package/build/models/data/customer/attribute/sales-channel/index.js +1 -0
- package/build/models/data/customer/attribute/translation/index.d.ts +9 -0
- package/build/models/data/customer/attribute/translation/index.js +1 -0
- package/build/models/data/customer/attribute/translation/option/index.d.ts +6 -0
- package/build/models/data/customer/attribute/translation/option/index.js +1 -0
- package/build/models/data/customer/attribute/value/index.d.ts +11 -0
- package/build/models/data/customer/attribute/value/index.js +1 -0
- package/build/models/data/customer/index.d.ts +38 -0
- package/build/models/data/customer/index.js +1 -0
- package/build/models/data/customer/review/index.d.ts +22 -0
- package/build/models/data/customer/review/index.js +1 -0
- package/build/models/data/customer/review/settings/index.d.ts +6 -0
- package/build/models/data/customer/review/settings/index.js +1 -0
- package/build/models/data/customer/review/summary/index.d.ts +10 -0
- package/build/models/data/customer/review/summary/index.js +1 -0
- package/build/models/data/customer/review/summary/star/index.d.ts +6 -0
- package/build/models/data/customer/review/summary/star/index.js +1 -0
- package/build/models/data/district/index.d.ts +12 -0
- package/build/models/data/district/index.js +1 -0
- package/build/models/data/favorite-product/index.d.ts +7 -0
- package/build/models/data/favorite-product/index.js +1 -0
- package/build/models/data/filter-category/index.d.ts +12 -0
- package/build/models/data/filter-category/index.js +1 -0
- package/build/models/data/html-meta-data/index.d.ts +28 -0
- package/build/models/data/html-meta-data/index.js +1 -0
- package/build/models/data/html-meta-data/translations/index.d.ts +7 -0
- package/build/models/data/html-meta-data/translations/index.js +1 -0
- package/build/models/data/image/index.d.ts +9 -0
- package/build/models/data/image/index.js +1 -0
- package/build/models/data/index.d.ts +136 -0
- package/build/models/data/last-viewed-product/index.d.ts +6 -0
- package/build/models/data/last-viewed-product/index.js +1 -0
- package/build/models/data/merchant-settings/index.d.ts +12 -0
- package/build/models/data/merchant-settings/index.js +1 -0
- package/build/models/data/order/address/city/index.d.ts +7 -0
- package/build/models/data/order/address/city/index.js +1 -0
- package/build/models/data/order/address/country/index.d.ts +9 -0
- package/build/models/data/order/address/country/index.js +1 -0
- package/build/models/data/order/address/district/index.d.ts +7 -0
- package/build/models/data/order/address/district/index.js +1 -0
- package/build/models/data/order/address/index.d.ts +37 -0
- package/build/models/data/order/address/index.js +1 -0
- package/build/models/data/order/address/state/index.d.ts +7 -0
- package/build/models/data/order/address/state/index.js +1 -0
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +8 -0
- package/build/models/data/order/adjustment/applied-order-line/index.js +1 -0
- package/build/models/data/order/adjustment/index.d.ts +15 -0
- package/build/models/data/order/adjustment/index.js +1 -0
- package/build/models/data/order/customer/index.d.ts +11 -0
- package/build/models/data/order/customer/index.js +1 -0
- package/build/models/data/order/gift-line/index.d.ts +6 -0
- package/build/models/data/order/gift-line/index.js +1 -0
- package/build/models/data/order/index.d.ts +67 -0
- package/build/models/data/order/index.js +1 -0
- package/build/models/data/order/invoice/index.d.ts +12 -0
- package/build/models/data/order/invoice/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/index.d.ts +9 -0
- package/build/models/data/order/line-item/base-unit/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +6 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +1 -0
- package/build/models/data/order/line-item/discount/index.d.ts +11 -0
- package/build/models/data/order/line-item/discount/index.js +1 -0
- package/build/models/data/order/line-item/index.d.ts +45 -0
- package/build/models/data/order/line-item/index.js +1 -0
- package/build/models/data/order/line-item/option/index.d.ts +10 -0
- package/build/models/data/order/line-item/option/index.js +1 -0
- package/build/models/data/order/line-item/option/value/index.d.ts +7 -0
- package/build/models/data/order/line-item/option/value/index.js +1 -0
- package/build/models/data/order/line-item/variant/brand/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/brand/index.js +1 -0
- package/build/models/data/order/line-item/variant/category/index.d.ts +12 -0
- package/build/models/data/order/line-item/variant/category/index.js +1 -0
- package/build/models/data/order/line-item/variant/index.d.ts +30 -0
- package/build/models/data/order/line-item/variant/index.js +1 -0
- package/build/models/data/order/line-item/variant/price/index.d.ts +10 -0
- package/build/models/data/order/line-item/variant/price/index.js +1 -0
- package/build/models/data/order/line-item/variant/unit/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/unit/index.js +1 -0
- package/build/models/data/order/line-item/variant/value/index.d.ts +11 -0
- package/build/models/data/order/line-item/variant/value/index.js +1 -0
- package/build/models/data/order/package/index.d.ts +14 -0
- package/build/models/data/order/package/index.js +1 -0
- package/build/models/data/order/package/tracking-info/index.d.ts +9 -0
- package/build/models/data/order/package/tracking-info/index.js +1 -0
- package/build/models/data/order/payment-method/index.d.ts +9 -0
- package/build/models/data/order/payment-method/index.js +1 -0
- package/build/models/data/order/refund/index.d.ts +7 -0
- package/build/models/data/order/refund/index.js +1 -0
- package/build/models/data/order/refund/line-item/index.d.ts +6 -0
- package/build/models/data/order/refund/line-item/index.js +1 -0
- package/build/models/data/order/refund/settings/index.d.ts +7 -0
- package/build/models/data/order/refund/settings/index.js +1 -0
- package/build/models/data/order/shipping-line/index.d.ts +12 -0
- package/build/models/data/order/shipping-line/index.js +1 -0
- package/build/models/data/order/tax-line/index.d.ts +6 -0
- package/build/models/data/order/tax-line/index.js +1 -0
- package/build/models/data/order/transaction/error/index.d.ts +7 -0
- package/build/models/data/order/transaction/error/index.js +1 -0
- package/build/models/data/order/transaction/index.d.ts +25 -0
- package/build/models/data/order/transaction/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +13 -0
- package/build/models/data/order/transaction/payment-method-detail/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +9 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +1 -0
- package/build/models/data/payment-gateway/additional-price/index.d.ts +9 -0
- package/build/models/data/payment-gateway/additional-price/index.js +1 -0
- package/build/models/data/payment-gateway/index.d.ts +31 -0
- package/build/models/data/payment-gateway/index.js +1 -0
- package/build/models/data/payment-gateway/settings/index.d.ts +10 -0
- package/build/models/data/payment-gateway/settings/index.js +1 -0
- package/build/models/data/payment-gateway/translation/index.d.ts +7 -0
- package/build/models/data/payment-gateway/translation/index.js +1 -0
- package/build/models/data/product/attribute/index.d.ts +15 -0
- package/build/models/data/product/attribute/index.js +1 -0
- package/build/models/data/product/attribute/option/index.d.ts +6 -0
- package/build/models/data/product/attribute/option/index.js +1 -0
- package/build/models/data/product/attribute/table-cell/index.d.ts +6 -0
- package/build/models/data/product/attribute/table-cell/index.js +1 -0
- package/build/models/data/product/attribute/table-template/index.d.ts +7 -0
- package/build/models/data/product/attribute/table-template/index.js +1 -0
- package/build/models/data/product/attribute/translation/index.d.ts +13 -0
- package/build/models/data/product/attribute/translation/index.js +1 -0
- package/build/models/data/product/attribute-value/index.d.ts +28 -0
- package/build/models/data/product/attribute-value/index.js +1 -0
- package/build/models/data/product/back-in-stock-settings/index.d.ts +5 -0
- package/build/models/data/product/back-in-stock-settings/index.js +1 -0
- package/build/models/data/product/base-unit/index.d.ts +12 -0
- package/build/models/data/product/base-unit/index.js +1 -0
- package/build/models/data/product/campaign/data/index.d.ts +27 -0
- package/build/models/data/product/campaign/data/index.js +1 -0
- package/build/models/data/product/campaign/filter/index.d.ts +7 -0
- package/build/models/data/product/campaign/filter/index.js +1 -0
- package/build/models/data/product/campaign/index.d.ts +7 -0
- package/build/models/data/product/campaign/index.js +1 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +20 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +1 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +6 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +1 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +14 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.js +1 -0
- package/build/models/data/product/filter/index.d.ts +84 -0
- package/build/models/data/product/filter/index.js +1 -0
- package/build/models/data/product/image/index.d.ts +10 -0
- package/build/models/data/product/image/index.js +1 -0
- package/build/models/data/product/index.d.ts +62 -0
- package/build/models/data/product/index.js +1 -0
- package/build/models/data/product/option-set/index.d.ts +29 -0
- package/build/models/data/product/option-set/index.js +1 -0
- package/build/models/data/product/option-set/option/index.d.ts +72 -0
- package/build/models/data/product/option-set/option/index.js +1 -0
- package/build/models/data/product/tag/index.d.ts +6 -0
- package/build/models/data/product/tag/index.js +1 -0
- package/build/models/data/product/variant/index.d.ts +31 -0
- package/build/models/data/product/variant/index.js +1 -0
- package/build/models/data/product/variant/price/index.d.ts +19 -0
- package/build/models/data/product/variant/price/index.js +1 -0
- package/build/models/data/product/variant/unit/index.d.ts +6 -0
- package/build/models/data/product/variant/unit/index.js +1 -0
- package/build/models/data/product/variant-type/index.d.ts +8 -0
- package/build/models/data/product/variant-type/index.js +1 -0
- package/build/models/data/product/variant-type/init.d.ts +2 -0
- package/build/models/data/raffle/index.d.ts +63 -0
- package/build/models/data/raffle/index.js +1 -0
- package/build/models/data/sales-channel/index.d.ts +19 -0
- package/build/models/data/sales-channel/index.js +1 -0
- package/build/models/data/state/index.d.ts +8 -0
- package/build/models/data/state/index.js +1 -0
- package/build/models/data/stock-location/address/city/index.d.ts +7 -0
- package/build/models/data/stock-location/address/city/index.js +1 -0
- package/build/models/data/stock-location/address/country/index.d.ts +7 -0
- package/build/models/data/stock-location/address/country/index.js +1 -0
- package/build/models/data/stock-location/address/district/index.d.ts +7 -0
- package/build/models/data/stock-location/address/district/index.js +1 -0
- package/build/models/data/stock-location/address/index.d.ts +15 -0
- package/build/models/data/stock-location/address/index.js +1 -0
- package/build/models/data/stock-location/address/state/index.d.ts +7 -0
- package/build/models/data/stock-location/address/state/index.js +1 -0
- package/build/models/data/stock-location/available/index.d.ts +10 -0
- package/build/models/data/stock-location/available/index.js +1 -0
- package/build/models/data/stock-location/index.d.ts +14 -0
- package/build/models/data/stock-location/index.js +1 -0
- package/build/models/data/storefront/domain/index.d.ts +9 -0
- package/build/models/data/storefront/domain/index.js +1 -0
- package/build/models/data/storefront/index.d.ts +27 -0
- package/build/models/data/storefront/index.js +1 -0
- package/build/models/data/storefront/localization/index.d.ts +8 -0
- package/build/models/data/storefront/localization/index.js +1 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +6 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
- package/build/models/data/storefront/routing/index.d.ts +14 -0
- package/build/models/data/storefront/routing/index.js +1 -0
- package/build/models/data/storefront/theme/index.d.ts +10 -0
- package/build/models/data/storefront/theme/index.js +1 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.js +1 -0
- package/build/models/data/theme-json/component/index.d.ts +20 -0
- package/build/models/data/theme-json/component/index.js +1 -0
- package/build/models/data/theme-json/component/prop/index.d.ts +26 -0
- package/build/models/data/theme-json/component/prop/index.js +1 -0
- package/build/models/data/theme-json/custom-data/index.d.ts +43 -0
- package/build/models/data/theme-json/custom-data/index.js +1 -0
- package/build/models/data/theme-json/index.d.ts +16 -0
- package/build/models/data/theme-json/index.js +1 -0
- package/build/models/data/theme-json/page/component/index.d.ts +7 -0
- package/build/models/data/theme-json/page/component/index.js +1 -0
- package/build/models/data/theme-json/page/index.d.ts +21 -0
- package/build/models/data/theme-json/page/index.js +1 -0
- package/build/models/data/theme-json/settings/color/index.d.ts +15 -0
- package/build/models/data/theme-json/settings/color/index.js +1 -0
- package/build/models/data/theme-json/settings/favicon/index.d.ts +5 -0
- package/build/models/data/theme-json/settings/favicon/index.js +1 -0
- package/build/models/data/theme-json/settings/font-family/index.d.ts +6 -0
- package/build/models/data/theme-json/settings/font-family/index.js +1 -0
- package/build/models/data/theme-json/settings/index.d.ts +13 -0
- package/build/models/data/theme-json/settings/index.js +1 -0
- package/build/models/data/variant-type/index.d.ts +13 -0
- package/build/models/data/variant-type/index.js +1 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +12 -0
- package/build/models/data/variant-type/variant-value/index.js +1 -0
- package/build/models/index.d.ts +2 -0
- package/build/models/ui/blog-category-list/index.d.ts +51 -0
- package/build/models/ui/blog-category-list/index.js +1 -0
- package/build/models/ui/blog-list/index.d.ts +55 -0
- package/build/models/ui/blog-list/index.js +1 -0
- package/build/models/ui/brand-list/index.d.ts +61 -0
- package/build/models/ui/brand-list/index.js +1 -0
- package/build/models/ui/category-list/index.d.ts +61 -0
- package/build/models/ui/category-list/index.js +1 -0
- package/build/models/ui/component-renderer/index.d.ts +7 -0
- package/build/models/ui/component-renderer/index.js +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-list/index.js +1 -0
- package/build/models/ui/customer-review-summary-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-summary-list/index.js +1 -0
- package/build/models/ui/index.d.ts +25 -0
- package/build/models/ui/navigation-link/index.d.ts +8 -0
- package/build/models/ui/navigation-link/index.js +1 -0
- package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
- package/build/models/ui/product-attribute-detail/index.js +1 -0
- package/build/models/ui/product-attribute-list/index.d.ts +8 -0
- package/build/models/ui/product-attribute-list/index.js +1 -0
- package/build/models/ui/product-list/index.d.ts +137 -0
- package/build/models/ui/product-list/index.js +1 -0
- package/build/models/ui/raffle-list/index.d.ts +53 -0
- package/build/models/ui/raffle-list/index.js +1 -0
- package/build/models/ui/validator/form/account-info.d.ts +39 -0
- package/build/models/ui/validator/form/account-info.js +1 -0
- package/build/models/ui/validator/form/address.d.ts +75 -0
- package/build/models/ui/validator/form/address.js +1 -0
- package/build/models/ui/validator/form/contact-form.d.ts +42 -0
- package/build/models/ui/validator/form/contact-form.js +1 -0
- package/build/models/ui/validator/form/customer-review.d.ts +34 -0
- package/build/models/ui/validator/form/customer-review.js +1 -0
- package/build/models/ui/validator/form/forgot-password.d.ts +26 -0
- package/build/models/ui/validator/form/forgot-password.js +1 -0
- package/build/models/ui/validator/form/login.d.ts +32 -0
- package/build/models/ui/validator/form/login.js +1 -0
- package/build/models/ui/validator/form/raffle-form.d.ts +62 -0
- package/build/models/ui/validator/form/raffle-form.js +1 -0
- package/build/models/ui/validator/form/recover-password.d.ts +33 -0
- package/build/models/ui/validator/form/recover-password.js +1 -0
- package/build/models/ui/validator/form/register.d.ts +49 -0
- package/build/models/ui/validator/form/register.js +1 -0
- package/build/models/ui/validator/index.d.ts +27 -0
- package/build/models/ui/validator/index.js +1 -0
- package/build/models/ui/validator/rules/index.d.ts +101 -0
- package/build/models/ui/validator/rules/index.js +1 -0
- package/build/page-data-init/index.d.ts +39 -0
- package/build/page-data-init/index.js +1 -0
- package/build/pages/404.d.ts +4 -0
- package/build/pages/404.js +1 -0
- package/build/pages/[slug]/index.d.ts +4 -0
- package/build/pages/_slug_/index.js +1 -0
- package/build/pages/account/addresses.d.ts +4 -0
- package/build/pages/account/addresses.js +1 -0
- package/build/pages/account/favorite-products.d.ts +4 -0
- package/build/pages/account/favorite-products.js +1 -0
- package/build/pages/account/forgot-password.d.ts +4 -0
- package/build/pages/account/forgot-password.js +1 -0
- package/build/pages/account/index.d.ts +4 -0
- package/build/pages/account/index.js +1 -0
- package/build/pages/account/login.d.ts +4 -0
- package/build/pages/account/login.js +1 -0
- package/build/pages/account/orders/[id].d.ts +4 -0
- package/build/pages/account/orders/_id_.js +1 -0
- package/build/pages/account/orders/index.d.ts +4 -0
- package/build/pages/account/orders/index.js +1 -0
- package/build/pages/account/raffles.d.ts +4 -0
- package/build/pages/account/raffles.js +1 -0
- package/build/pages/account/recover-password.d.ts +4 -0
- package/build/pages/account/recover-password.js +1 -0
- package/build/pages/account/register.d.ts +4 -0
- package/build/pages/account/register.js +1 -0
- package/build/pages/blog/[slug].d.ts +4 -0
- package/build/pages/blog/_slug_.js +1 -0
- package/build/pages/blog/index.d.ts +4 -0
- package/build/pages/blog/index.js +1 -0
- package/build/pages/cart.d.ts +4 -0
- package/build/pages/cart.js +1 -0
- package/build/pages/checkout.d.ts +16 -0
- package/build/pages/checkout.js +1 -0
- package/build/pages/editor.d.ts +10 -0
- package/build/pages/editor.js +1 -0
- package/build/pages/home.d.ts +4 -0
- package/build/pages/home.js +1 -0
- package/build/pages/index.d.ts +22 -0
- package/build/pages/pages/[slug].d.ts +4 -0
- package/build/pages/pages/_slug_.js +1 -0
- package/build/pages/raffle/[slug].d.ts +4 -0
- package/build/pages/raffle/_slug_.js +1 -0
- package/build/pages/raffle/index.d.ts +4 -0
- package/build/pages/raffle/index.js +1 -0
- package/build/pages/search.d.ts +4 -0
- package/build/pages/search.js +1 -0
- package/build/store/base.d.ts +44 -0
- package/build/store/base.js +1 -0
- package/build/store/blog/index.d.ts +26 -0
- package/build/store/blog/index.js +1 -0
- package/build/store/brand/index.d.ts +12 -0
- package/build/store/brand/index.js +1 -0
- package/build/store/cart/api.d.ts +10 -0
- package/build/store/cart/api.js +1 -0
- package/build/store/cart/index.d.ts +27 -0
- package/build/store/cart/index.js +1 -0
- package/build/store/category/index.d.ts +12 -0
- package/build/store/category/index.js +1 -0
- package/build/store/checkout/index.d.ts +14 -0
- package/build/store/checkout/index.js +1 -0
- package/build/store/customer/api.d.ts +54 -0
- package/build/store/customer/api.js +1 -0
- package/build/store/customer/index.d.ts +74 -0
- package/build/store/customer/index.js +1 -0
- package/build/store/html-meta-data/index.d.ts +6 -0
- package/build/store/html-meta-data/index.js +1 -0
- package/build/store/index.d.ts +3 -0
- package/build/store/location/index.d.ts +9 -0
- package/build/store/location/index.js +1 -0
- package/build/store/merchant/index.d.ts +6 -0
- package/build/store/product/index.d.ts +36 -0
- package/build/store/product/index.js +1 -0
- package/build/store/raffle/index.d.ts +15 -0
- package/build/store/raffle/index.js +1 -0
- package/build/store/storefront/index.d.ts +5 -0
- package/build/utils/constants.d.ts +2 -0
- package/build/utils/constants.js +1 -0
- package/build/utils/currency.d.ts +7 -0
- package/build/utils/currency.js +1 -0
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/build/utils/helper.d.ts +4 -0
- package/build/utils/helper.js +1 -0
- package/build/utils/i18n.d.ts +11 -0
- package/build/utils/i18n.js +1 -0
- package/build/utils/index.d.ts +3 -0
- package/package.json +14 -14
- package/src/analytics/analytics.ts +0 -537
- package/src/analytics/events.ts +0 -116
- package/src/analytics/facebookPixel.ts +0 -226
- package/src/analytics/googleAnalytics.ts +0 -227
- package/src/analytics/googleTagManager.ts +0 -341
- package/src/analytics/googleUniversal.ts +0 -146
- package/src/analytics/head/index.tsx +0 -134
- package/src/analytics/ikas.ts +0 -568
- package/src/analytics/index.ts +0 -2
- package/src/analytics/tiktokPixel.ts +0 -223
- package/src/components/checkout/components/address-form/index.tsx +0 -406
- package/src/components/checkout/components/address-form/model.ts +0 -398
- package/src/components/checkout/components/button/index.tsx +0 -44
- package/src/components/checkout/components/button/style.module.scss +0 -103
- package/src/components/checkout/components/cart-summary/cart-item/index.tsx +0 -167
- package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +0 -144
- package/src/components/checkout/components/cart-summary/index.tsx +0 -512
- package/src/components/checkout/components/cart-summary/style.module.scss +0 -296
- package/src/components/checkout/components/checkbox/check.tsx +0 -23
- package/src/components/checkout/components/checkbox/index.tsx +0 -50
- package/src/components/checkout/components/checkbox/style.module.scss +0 -72
- package/src/components/checkout/components/credit-card-form/index.tsx +0 -122
- package/src/components/checkout/components/credit-card-form/model.ts +0 -56
- package/src/components/checkout/components/credit-card-form/style.module.scss +0 -6
- package/src/components/checkout/components/credit-card-form/svg/amex.tsx +0 -30
- package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +0 -38
- package/src/components/checkout/components/credit-card-form/svg/troy.tsx +0 -54
- package/src/components/checkout/components/credit-card-form/svg/visa.tsx +0 -46
- package/src/components/checkout/components/customer-addresses/index.tsx +0 -338
- package/src/components/checkout/components/customer-addresses/model.ts +0 -134
- package/src/components/checkout/components/customer-addresses/style.module.scss +0 -38
- package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +0 -29
- package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +0 -41
- package/src/components/checkout/components/delivery-methods/icons/box.tsx +0 -22
- package/src/components/checkout/components/delivery-methods/icons/store.tsx +0 -22
- package/src/components/checkout/components/delivery-methods/index.tsx +0 -39
- package/src/components/checkout/components/delivery-methods/style.module.scss +0 -4
- package/src/components/checkout/components/error/customer-login-required-error/index.tsx +0 -23
- package/src/components/checkout/components/error/index.tsx +0 -54
- package/src/components/checkout/components/error/no-shipping-error/index.tsx +0 -14
- package/src/components/checkout/components/error/payment-error/index.tsx +0 -21
- package/src/components/checkout/components/error/stock-error/index.tsx +0 -72
- package/src/components/checkout/components/error/stock-error/style.module.scss +0 -11
- package/src/components/checkout/components/error/unknown-error/index.tsx +0 -21
- package/src/components/checkout/components/expandable-section/index.tsx +0 -37
- package/src/components/checkout/components/expandable-section/style.module.scss +0 -29
- package/src/components/checkout/components/form-item/caret-down.tsx +0 -20
- package/src/components/checkout/components/form-item/index.tsx +0 -207
- package/src/components/checkout/components/form-item/model.ts +0 -145
- package/src/components/checkout/components/form-item/style.module.scss +0 -216
- package/src/components/checkout/components/fullscreen-loading/index.tsx +0 -10
- package/src/components/checkout/components/fullscreen-loading/style.module.scss +0 -56
- package/src/components/checkout/components/input-with-button/index.tsx +0 -53
- package/src/components/checkout/components/input-with-button/style.module.scss +0 -104
- package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +0 -162
- package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +0 -15
- package/src/components/checkout/components/master-pass/modal/index.tsx +0 -32
- package/src/components/checkout/components/master-pass/modal/style.module.scss +0 -42
- package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +0 -20
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +0 -62
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +0 -27
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +0 -19
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +0 -41
- package/src/components/checkout/components/master-pass/modal-otp/index.tsx +0 -202
- package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +0 -47
- package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +0 -28
- package/src/components/checkout/components/master-pass/modal-response/index.tsx +0 -24
- package/src/components/checkout/components/master-pass/modal-response/style.module.scss +0 -7
- package/src/components/checkout/components/master-pass/modal-success/index.tsx +0 -54
- package/src/components/checkout/components/master-pass/modal-success/style.module.scss +0 -25
- package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +0 -41
- package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +0 -21
- package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +0 -14
- package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +0 -34
- package/src/components/checkout/components/modal/index.tsx +0 -41
- package/src/components/checkout/components/modal/style.module.scss +0 -68
- package/src/components/checkout/components/modal/useEscape.tsx +0 -20
- package/src/components/checkout/components/notification-box/index.tsx +0 -70
- package/src/components/checkout/components/notification-box/style.module.scss +0 -69
- package/src/components/checkout/components/offer-product/index.tsx +0 -177
- package/src/components/checkout/components/offer-product/select/arrows.tsx +0 -22
- package/src/components/checkout/components/offer-product/select/index.tsx +0 -40
- package/src/components/checkout/components/offer-product/select/style.module.scss +0 -28
- package/src/components/checkout/components/offer-product/style.module.scss +0 -115
- package/src/components/checkout/components/phone-number-input/compare-strings.ts +0 -5
- package/src/components/checkout/components/phone-number-input/get-countries.ts +0 -52
- package/src/components/checkout/components/phone-number-input/index.tsx +0 -125
- package/src/components/checkout/components/phone-number-input/style.module.scss +0 -83
- package/src/components/checkout/components/select-box/index.tsx +0 -60
- package/src/components/checkout/components/select-box/style.module.scss +0 -55
- package/src/components/checkout/components/step-container/index.tsx +0 -107
- package/src/components/checkout/components/step-container/style.module.scss +0 -86
- package/src/components/checkout/components/stripe/checkout-form.tsx +0 -55
- package/src/components/checkout/components/stripe/index.tsx +0 -91
- package/src/components/checkout/components/stripe/style.module.scss +0 -75
- package/src/components/checkout/components/svg/arrow-down.tsx +0 -23
- package/src/components/checkout/components/svg/arrow-left.tsx +0 -23
- package/src/components/checkout/components/svg/arrow-right.tsx +0 -23
- package/src/components/checkout/components/svg/cross.tsx +0 -23
- package/src/components/checkout/components/svg/discount.tsx +0 -34
- package/src/components/checkout/components/svg/external.tsx +0 -101
- package/src/components/checkout/components/svg/gift.tsx +0 -40
- package/src/components/checkout/components/svg/ikas.tsx +0 -39
- package/src/components/checkout/components/svg/lock.tsx +0 -23
- package/src/components/checkout/components/svg/shopping-cart.tsx +0 -23
- package/src/components/checkout/components/svg/success-circle.tsx +0 -26
- package/src/components/checkout/components/svg/tag.tsx +0 -23
- package/src/components/checkout/components/svg/warning.tsx +0 -30
- package/src/components/checkout/components/toggle/index.tsx +0 -51
- package/src/components/checkout/components/toggle/style.module.scss +0 -75
- package/src/components/checkout/components/tooltip/index.tsx +0 -27
- package/src/components/checkout/components/tooltip/style.module.scss +0 -86
- package/src/components/checkout/index.tsx +0 -650
- package/src/components/checkout/model.ts +0 -1589
- package/src/components/checkout/modelMasterPass.ts +0 -1001
- package/src/components/checkout/steps/step-info/index.tsx +0 -91
- package/src/components/checkout/steps/step-payment/billing-address/index.tsx +0 -48
- package/src/components/checkout/steps/step-payment/index.tsx +0 -113
- package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +0 -227
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +0 -56
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +0 -50
- package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +0 -32
- package/src/components/checkout/steps/step-payment/style.module.scss +0 -37
- package/src/components/checkout/steps/step-shipping/index.tsx +0 -131
- package/src/components/checkout/steps/step-shipping/style.module.scss +0 -44
- package/src/components/checkout/steps/step-success/index.tsx +0 -374
- package/src/components/checkout/steps/step-success/style.module.scss +0 -161
- package/src/components/checkout/style.module.scss +0 -366
- package/src/components/checkout/styles/common.module.scss +0 -59
- package/src/components/checkout/styles/variables.scss +0 -40
- package/src/components/image/index.tsx +0 -43
- package/src/components/index.ts +0 -5
- package/src/components/link/index.tsx +0 -26
- package/src/components/page/ThemeComponent.tsx +0 -108
- package/src/components/page/head.tsx +0 -370
- package/src/components/page/index.tsx +0 -220
- package/src/components/page-editor/ThemeComponentEditor.tsx +0 -281
- package/src/components/page-editor/error/index.tsx +0 -18
- package/src/components/page-editor/index.tsx +0 -194
- package/src/components/page-editor/loader/index.tsx +0 -18
- package/src/components/page-editor/loader/style.module.scss +0 -59
- package/src/components/page-editor/model.ts +0 -784
- package/src/index.ts +0 -6
- package/src/models/data/base/index.ts +0 -15
- package/src/models/data/blog/category/index.ts +0 -36
- package/src/models/data/blog/content/index.ts +0 -16
- package/src/models/data/blog/index.ts +0 -75
- package/src/models/data/blog/meta-data/index.ts +0 -39
- package/src/models/data/blog/tag/index.ts +0 -16
- package/src/models/data/blog/writer/index.ts +0 -17
- package/src/models/data/brand/index.ts +0 -58
- package/src/models/data/brand/translation/index.ts +0 -16
- package/src/models/data/campaign-offer/index.ts +0 -79
- package/src/models/data/campaign-offer/product/index.ts +0 -69
- package/src/models/data/cart/available-shipping-method/index.ts +0 -25
- package/src/models/data/cart/campaign-offer/index.ts +0 -54
- package/src/models/data/cart/index.ts +0 -38
- package/src/models/data/category/index.ts +0 -69
- package/src/models/data/category/path-item/index.ts +0 -46
- package/src/models/data/category/translations/index.ts +0 -16
- package/src/models/data/checkout/index.ts +0 -87
- package/src/models/data/checkout-settings/index.ts +0 -63
- package/src/models/data/checkout-settings/option/index.ts +0 -14
- package/src/models/data/checkout-settings/price/index.ts +0 -16
- package/src/models/data/city/index.ts +0 -34
- package/src/models/data/contact-form/index.ts +0 -20
- package/src/models/data/country/index.ts +0 -50
- package/src/models/data/country/location-translations/index.ts +0 -15
- package/src/models/data/customer/address/city/index.ts +0 -16
- package/src/models/data/customer/address/country/index.ts +0 -20
- package/src/models/data/customer/address/district/index.ts +0 -16
- package/src/models/data/customer/address/index.tsx +0 -136
- package/src/models/data/customer/address/state/index.ts +0 -16
- package/src/models/data/customer/attribute/index.ts +0 -61
- package/src/models/data/customer/attribute/option/index.ts +0 -20
- package/src/models/data/customer/attribute/sales-channel/index.ts +0 -24
- package/src/models/data/customer/attribute/translation/index.ts +0 -23
- package/src/models/data/customer/attribute/translation/option/index.ts +0 -16
- package/src/models/data/customer/attribute/value/index.ts +0 -29
- package/src/models/data/customer/index.ts +0 -122
- package/src/models/data/customer/review/index.ts +0 -70
- package/src/models/data/customer/review/settings/index.ts +0 -14
- package/src/models/data/customer/review/summary/index.ts +0 -29
- package/src/models/data/customer/review/summary/star/index.ts +0 -16
- package/src/models/data/district/index.ts +0 -36
- package/src/models/data/favorite-product/index.ts +0 -23
- package/src/models/data/filter-category/index.ts +0 -30
- package/src/models/data/html-meta-data/index.ts +0 -69
- package/src/models/data/html-meta-data/translations/index.ts +0 -16
- package/src/models/data/image/index.ts +0 -33
- package/src/models/data/index.ts +0 -195
- package/src/models/data/last-viewed-product/index.ts +0 -14
- package/src/models/data/merchant-settings/index.ts +0 -35
- package/src/models/data/order/address/city/index.ts +0 -16
- package/src/models/data/order/address/country/index.ts +0 -20
- package/src/models/data/order/address/district/index.ts +0 -16
- package/src/models/data/order/address/index.ts +0 -96
- package/src/models/data/order/address/state/index.ts +0 -16
- package/src/models/data/order/adjustment/applied-order-line/index.ts +0 -20
- package/src/models/data/order/adjustment/index.ts +0 -39
- package/src/models/data/order/customer/index.ts +0 -24
- package/src/models/data/order/gift-line/index.ts +0 -14
- package/src/models/data/order/index.ts +0 -260
- package/src/models/data/order/invoice/index.ts +0 -29
- package/src/models/data/order/line-item/base-unit/index.ts +0 -22
- package/src/models/data/order/line-item/base-unit/unit-type/index.ts +0 -14
- package/src/models/data/order/line-item/discount/index.ts +0 -23
- package/src/models/data/order/line-item/index.ts +0 -211
- package/src/models/data/order/line-item/option/index.ts +0 -24
- package/src/models/data/order/line-item/option/value/index.ts +0 -16
- package/src/models/data/order/line-item/variant/brand/index.ts +0 -14
- package/src/models/data/order/line-item/variant/category/index.ts +0 -36
- package/src/models/data/order/line-item/variant/index.ts +0 -70
- package/src/models/data/order/line-item/variant/price/index.ts +0 -22
- package/src/models/data/order/line-item/variant/unit/index.ts +0 -17
- package/src/models/data/order/line-item/variant/value/index.ts +0 -31
- package/src/models/data/order/package/index.ts +0 -41
- package/src/models/data/order/package/tracking-info/index.ts +0 -20
- package/src/models/data/order/payment-method/index.ts +0 -23
- package/src/models/data/order/refund/index.ts +0 -17
- package/src/models/data/order/refund/line-item/index.ts +0 -16
- package/src/models/data/order/refund/settings/index.ts +0 -16
- package/src/models/data/order/shipping-line/index.ts +0 -29
- package/src/models/data/order/tax-line/index.ts +0 -14
- package/src/models/data/order/transaction/error/index.ts +0 -16
- package/src/models/data/order/transaction/index.ts +0 -55
- package/src/models/data/order/transaction/payment-method-detail/index.ts +0 -33
- package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +0 -22
- package/src/models/data/payment-gateway/additional-price/index.ts +0 -29
- package/src/models/data/payment-gateway/index.ts +0 -90
- package/src/models/data/payment-gateway/settings/index.ts +0 -21
- package/src/models/data/payment-gateway/translation/index.ts +0 -18
- package/src/models/data/product/attribute/index.ts +0 -37
- package/src/models/data/product/attribute/option/index.ts +0 -14
- package/src/models/data/product/attribute/table-cell/index.ts +0 -16
- package/src/models/data/product/attribute/table-template/index.ts +0 -19
- package/src/models/data/product/attribute/translation/index.ts +0 -39
- package/src/models/data/product/attribute-value/index.ts +0 -109
- package/src/models/data/product/back-in-stock-settings/index.ts +0 -14
- package/src/models/data/product/base-unit/index.ts +0 -32
- package/src/models/data/product/campaign/data/index.ts +0 -70
- package/src/models/data/product/campaign/filter/index.ts +0 -19
- package/src/models/data/product/campaign/index.ts +0 -15
- package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +0 -57
- package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +0 -16
- package/src/models/data/product/campaign/product-fixed-discount/index.ts +0 -40
- package/src/models/data/product/filter/index.ts +0 -276
- package/src/models/data/product/image/index.ts +0 -22
- package/src/models/data/product/index.ts +0 -336
- package/src/models/data/product/option-set/index.ts +0 -99
- package/src/models/data/product/option-set/option/index.ts +0 -268
- package/src/models/data/product/tag/index.ts +0 -14
- package/src/models/data/product/variant/index.ts +0 -129
- package/src/models/data/product/variant/price/index.ts +0 -74
- package/src/models/data/product/variant/unit/index.ts +0 -17
- package/src/models/data/product/variant-type/index.ts +0 -19
- package/src/models/data/product/variant-type/init.ts +0 -15
- package/src/models/data/raffle/index.ts +0 -157
- package/src/models/data/sales-channel/index.ts +0 -56
- package/src/models/data/state/index.ts +0 -22
- package/src/models/data/stock-location/address/city/index.ts +0 -16
- package/src/models/data/stock-location/address/country/index.ts +0 -18
- package/src/models/data/stock-location/address/district/index.ts +0 -18
- package/src/models/data/stock-location/address/index.ts +0 -34
- package/src/models/data/stock-location/address/state/index.ts +0 -18
- package/src/models/data/stock-location/available/index.ts +0 -22
- package/src/models/data/stock-location/index.ts +0 -35
- package/src/models/data/storefront/domain/index.ts +0 -20
- package/src/models/data/storefront/index.ts +0 -67
- package/src/models/data/storefront/localization/index.tsx +0 -18
- package/src/models/data/storefront/routing/dynamic-currency/index.ts +0 -16
- package/src/models/data/storefront/routing/index.tsx +0 -29
- package/src/models/data/storefront/theme/index.tsx +0 -25
- package/src/models/data/storefront/theme-localization/index.tsx +0 -31
- package/src/models/data/theme-json/component/index.ts +0 -41
- package/src/models/data/theme-json/component/prop/index.ts +0 -55
- package/src/models/data/theme-json/custom-data/index.ts +0 -132
- package/src/models/data/theme-json/index.ts +0 -210
- package/src/models/data/theme-json/page/component/index.ts +0 -22
- package/src/models/data/theme-json/page/index.ts +0 -54
- package/src/models/data/theme-json/settings/color/index.ts +0 -35
- package/src/models/data/theme-json/settings/favicon/index.ts +0 -12
- package/src/models/data/theme-json/settings/font-family/index.ts +0 -14
- package/src/models/data/theme-json/settings/index.ts +0 -30
- package/src/models/data/variant-type/index.ts +0 -44
- package/src/models/data/variant-type/variant-value/index.ts +0 -32
- package/src/models/index.ts +0 -2
- package/src/models/ui/blog-category-list/index.ts +0 -169
- package/src/models/ui/blog-list/index.ts +0 -175
- package/src/models/ui/brand-list/index.ts +0 -237
- package/src/models/ui/category-list/index.ts +0 -237
- package/src/models/ui/component-renderer/index.ts +0 -9
- package/src/models/ui/customer-review-list/index.ts +0 -173
- package/src/models/ui/customer-review-summary-list/index.ts +0 -175
- package/src/models/ui/index.ts +0 -40
- package/src/models/ui/navigation-link/index.ts +0 -23
- package/src/models/ui/product-attribute-detail/index.ts +0 -29
- package/src/models/ui/product-attribute-list/index.ts +0 -52
- package/src/models/ui/product-list/index.ts +0 -1007
- package/src/models/ui/raffle-list/index.ts +0 -178
- package/src/models/ui/validator/form/account-info.ts +0 -167
- package/src/models/ui/validator/form/address.ts +0 -490
- package/src/models/ui/validator/form/contact-form.ts +0 -177
- package/src/models/ui/validator/form/customer-review.ts +0 -132
- package/src/models/ui/validator/form/forgot-password.ts +0 -96
- package/src/models/ui/validator/form/login.ts +0 -128
- package/src/models/ui/validator/form/raffle-form.ts +0 -289
- package/src/models/ui/validator/form/recover-password.ts +0 -148
- package/src/models/ui/validator/form/register.ts +0 -206
- package/src/models/ui/validator/index.ts +0 -121
- package/src/models/ui/validator/rules/index.ts +0 -311
- package/src/page-data-init/index.ts +0 -659
- package/src/pages/404.tsx +0 -10
- package/src/pages/[slug]/index.tsx +0 -9
- package/src/pages/account/addresses.tsx +0 -10
- package/src/pages/account/favorite-products.tsx +0 -9
- package/src/pages/account/forgot-password.tsx +0 -9
- package/src/pages/account/index.tsx +0 -9
- package/src/pages/account/login.tsx +0 -9
- package/src/pages/account/orders/[id].tsx +0 -9
- package/src/pages/account/orders/index.tsx +0 -9
- package/src/pages/account/raffles.tsx +0 -9
- package/src/pages/account/recover-password.tsx +0 -9
- package/src/pages/account/register.tsx +0 -9
- package/src/pages/blog/[slug].tsx +0 -9
- package/src/pages/blog/index.tsx +0 -9
- package/src/pages/cart.tsx +0 -9
- package/src/pages/checkout.tsx +0 -164
- package/src/pages/editor.tsx +0 -33
- package/src/pages/home.tsx +0 -10
- package/src/pages/index.ts +0 -22
- package/src/pages/pages/[slug].tsx +0 -9
- package/src/pages/raffle/[slug].tsx +0 -9
- package/src/pages/raffle/index.tsx +0 -9
- package/src/pages/search.tsx +0 -9
- package/src/store/base.ts +0 -238
- package/src/store/blog/index.ts +0 -49
- package/src/store/brand/index.ts +0 -16
- package/src/store/cart/api.ts +0 -58
- package/src/store/cart/index.ts +0 -311
- package/src/store/category/index.ts +0 -16
- package/src/store/checkout/index.ts +0 -92
- package/src/store/customer/api.ts +0 -273
- package/src/store/customer/index.ts +0 -648
- package/src/store/html-meta-data/index.ts +0 -16
- package/src/store/index.ts +0 -3
- package/src/store/location/index.ts +0 -56
- package/src/store/merchant/index.ts +0 -16
- package/src/store/product/index.ts +0 -113
- package/src/store/raffle/index.ts +0 -55
- package/src/store/storefront/index.ts +0 -18
- package/src/typings/global.d.ts +0 -7
- package/src/utils/constants.ts +0 -2
- package/src/utils/currency.ts +0 -76
- package/src/utils/google-fonts.ts +0 -52
- package/src/utils/helper.ts +0 -77
- package/src/utils/i18n.ts +0 -126
- package/src/utils/index.ts +0 -3
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const SVGTroy: React.FC<Props> = ({ className }) => (
|
|
8
|
-
<svg
|
|
9
|
-
width="32"
|
|
10
|
-
height="24"
|
|
11
|
-
viewBox="0 0 32 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
className={className}
|
|
15
|
-
>
|
|
16
|
-
<path
|
|
17
|
-
d="M2 0.5H30C30.8284 0.5 31.5 1.17157 31.5 2V22C31.5 22.8284 30.8284 23.5 30 23.5H2C1.17157 23.5 0.5 22.8284 0.5 22V2C0.5 1.17157 1.17157 0.5 2 0.5Z"
|
|
18
|
-
fill="white"
|
|
19
|
-
stroke="#E5E4E9"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
fillRule="evenodd"
|
|
23
|
-
clipRule="evenodd"
|
|
24
|
-
d="M24.331 9.4811C24.0522 9.4811 23.7446 9.63656 23.6219 9.91598L22.3183 12.9041L21.8488 9.91598C21.7937 9.63656 21.6037 9.4811 21.3033 9.4811L19.652 9.4811L21.0644 14.4436C21.0904 14.5389 21.0953 14.6443 21.0764 14.7553C21.0023 15.1694 20.6068 15.5054 20.1924 15.5054L19.2677 15.5054C19.0328 15.5054 18.8782 15.6509 18.8026 15.9801L18.5972 17.21L20.2258 17.21C21.0754 17.21 22.0733 16.7831 22.7389 15.6027L26 9.4811L24.331 9.4811Z"
|
|
25
|
-
fill="#2F3842"
|
|
26
|
-
/>
|
|
27
|
-
<path
|
|
28
|
-
fillRule="evenodd"
|
|
29
|
-
clipRule="evenodd"
|
|
30
|
-
d="M8.2998 8.00041C8.78746 8.00041 9.02309 8.19493 8.93741 8.68384L8.79675 9.48037L9.91728 9.48037L9.67046 10.8795L8.54946 10.8795L8.24405 12.612C8.13851 13.2156 8.73595 13.2959 9.07869 13.2959C9.14705 13.2959 9.20376 13.2945 9.24439 13.2921L8.97033 14.8524C8.88574 14.8614 8.79848 14.873 8.61404 14.873C7.76333 14.873 6.15404 14.6453 6.47048 12.85L6.817 10.8795L6 10.8795L6.24587 9.48037L7.05484 9.48037L7.31521 8.00041L8.2998 8.00041Z"
|
|
31
|
-
fill="#2F3842"
|
|
32
|
-
/>
|
|
33
|
-
<path
|
|
34
|
-
fillRule="evenodd"
|
|
35
|
-
clipRule="evenodd"
|
|
36
|
-
d="M17.7158 9.54448L17.428 11.1758C17.7829 11.3571 18.0261 11.7254 18.0261 12.1506C18.0261 12.7114 17.6057 13.171 17.0645 13.237L16.7769 14.868C16.8276 14.8713 16.8792 14.873 16.9307 14.873C18.4351 14.873 19.6536 13.6538 19.6536 12.1506C19.6536 10.9217 18.8376 9.88187 17.7158 9.54448Z"
|
|
37
|
-
fill="#00A6B6"
|
|
38
|
-
/>
|
|
39
|
-
<path
|
|
40
|
-
fillRule="evenodd"
|
|
41
|
-
clipRule="evenodd"
|
|
42
|
-
d="M16.4343 13.1255C16.0797 12.9452 15.8359 12.5752 15.8359 12.1504C15.8359 11.5931 16.2572 11.1302 16.7983 11.0651L17.0856 9.43397C17.0346 9.43082 16.9826 9.42846 16.9314 9.42846C15.4281 9.42846 14.209 10.6485 14.209 12.1504C14.209 13.3799 15.0254 14.4204 16.1471 14.7578L16.4343 13.1255Z"
|
|
43
|
-
fill="#00A6B6"
|
|
44
|
-
/>
|
|
45
|
-
<path
|
|
46
|
-
fillRule="evenodd"
|
|
47
|
-
clipRule="evenodd"
|
|
48
|
-
d="M10.5661 9.48044L11.529 9.48044C12.0168 9.48044 12.2515 9.67543 12.1655 10.1645L12.0601 10.7561C12.4189 10.0279 13.197 9.4272 13.9951 9.4272C14.0999 9.4272 14.2007 9.44799 14.2007 9.44799L13.8894 11.2123C13.8894 11.2123 13.7497 11.1798 13.5317 11.1798C13.1064 11.1798 12.3871 11.3146 11.9867 12.1138C11.8913 12.3109 11.8179 12.5505 11.767 12.8392L11.4186 14.8213L9.625 14.8213L10.5661 9.48044Z"
|
|
49
|
-
fill="#2F3842"
|
|
50
|
-
/>
|
|
51
|
-
</svg>
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
export default SVGTroy;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const SVGVisa: React.FC<Props> = ({ className }) => (
|
|
8
|
-
<svg
|
|
9
|
-
width="32"
|
|
10
|
-
height="24"
|
|
11
|
-
viewBox="0 0 32 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
className={className}
|
|
15
|
-
>
|
|
16
|
-
<path
|
|
17
|
-
d="M2 0.5H30C30.8284 0.5 31.5 1.17157 31.5 2V22C31.5 22.8284 30.8284 23.5 30 23.5H2C1.17157 23.5 0.5 22.8284 0.5 22V2C0.5 1.17157 1.17157 0.5 2 0.5Z"
|
|
18
|
-
fill="white"
|
|
19
|
-
stroke="#E5E4E9"
|
|
20
|
-
/>
|
|
21
|
-
<path
|
|
22
|
-
fillRule="evenodd"
|
|
23
|
-
clipRule="evenodd"
|
|
24
|
-
d="M12.6875 15.1655H14.5025L15.6385 8.50391H13.8228L12.6875 15.1655Z"
|
|
25
|
-
fill="#1A1876"
|
|
26
|
-
/>
|
|
27
|
-
<path
|
|
28
|
-
fillRule="evenodd"
|
|
29
|
-
clipRule="evenodd"
|
|
30
|
-
d="M19.2995 11.1787C18.6651 10.8705 18.2762 10.6646 18.2804 10.3529C18.2804 10.076 18.6095 9.77969 19.3204 9.77969C19.902 9.77065 20.3709 9.88891 20.8425 10.1115L21.0888 8.66735C20.7291 8.53239 20.1656 8.3877 19.4616 8.3877C17.6675 8.3877 16.4035 9.29135 16.3931 10.586C16.3827 11.5432 17.2954 12.0774 17.9841 12.396C18.6909 12.7223 18.9288 12.931 18.9253 13.2225C18.9211 13.6691 18.3611 13.8729 17.8387 13.8729C17.0331 13.8729 16.6269 13.7484 15.8957 13.4173L15.6411 14.9087C16.0655 15.0945 16.8495 15.2559 17.6641 15.2642C19.5729 15.2642 20.8119 14.371 20.8258 12.988C20.8307 12.2305 20.3472 11.6538 19.2995 11.1787Z"
|
|
31
|
-
fill="#1A1876"
|
|
32
|
-
/>
|
|
33
|
-
<path
|
|
34
|
-
d="M25.7438 8.50977H24.3407C23.9059 8.50977 23.581 8.62872 23.3897 9.06211L20.6934 15.1672H22.6001C22.6001 15.1672 22.9118 14.3463 22.9827 14.1661C23.1914 14.1661 25.0433 14.1689 25.3083 14.1689C25.3626 14.4019 25.5295 15.1672 25.5295 15.1672H27.2144L25.7438 8.50977ZM23.5052 12.804C23.5803 12.612 24.3212 10.7094 24.4694 10.3059C24.7149 11.4545 24.4756 10.34 25.0127 12.804H23.5052Z"
|
|
35
|
-
fill="#1A1876"
|
|
36
|
-
/>
|
|
37
|
-
<path
|
|
38
|
-
fillRule="evenodd"
|
|
39
|
-
clipRule="evenodd"
|
|
40
|
-
d="M11.1646 8.50906L9.38648 13.0517L9.19726 12.1285L8.56074 9.06697C8.45083 8.6454 8.13222 8.51949 7.73778 8.50488H4.80909L4.78613 8.64332C5.49848 8.81584 6.135 9.06488 6.69361 9.37375L8.30822 15.1595L10.2296 15.1574L13.088 8.50836H11.1646V8.50906Z"
|
|
41
|
-
fill="#1A1876"
|
|
42
|
-
/>
|
|
43
|
-
</svg>
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
export default SVGVisa;
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { observer } from "mobx-react-lite";
|
|
3
|
-
import checkoutStyles from "../../style.module.scss";
|
|
4
|
-
import SelectBox from "../select-box";
|
|
5
|
-
|
|
6
|
-
import { AddressForm } from "../address-form";
|
|
7
|
-
import { Checkbox } from "../checkbox";
|
|
8
|
-
import { FormItem } from "../form-item";
|
|
9
|
-
import { FormItemType } from "../form-item/model";
|
|
10
|
-
|
|
11
|
-
import styles from "./style.module.scss";
|
|
12
|
-
import commonStyles from "../../styles/common.module.scss";
|
|
13
|
-
import { Button } from "../button";
|
|
14
|
-
import CustomerAddressesViewModel from "./model";
|
|
15
|
-
import { useTranslation } from "../../../../utils";
|
|
16
|
-
import DeliveryMethods from "../delivery-methods";
|
|
17
|
-
import { CheckoutStep } from "../../model";
|
|
18
|
-
import { IkasStockLocation } from "../../../../models";
|
|
19
|
-
import { IkasStorefrontConfig } from "@ikas/storefront-config";
|
|
20
|
-
|
|
21
|
-
type Props = {
|
|
22
|
-
vm: CustomerAddressesViewModel;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const CustomerAddresses: React.FC<Props> = ({ vm }) => {
|
|
26
|
-
const { t } = useTranslation();
|
|
27
|
-
const addressForm = React.useMemo(
|
|
28
|
-
() => (
|
|
29
|
-
<div>
|
|
30
|
-
<CustomerAddressForm vm={vm} />
|
|
31
|
-
<SaveAddressCheckboxAndTitle vm={vm} />
|
|
32
|
-
</div>
|
|
33
|
-
),
|
|
34
|
-
[vm]
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const recipientsForm = React.useMemo(
|
|
38
|
-
() => (
|
|
39
|
-
<div>
|
|
40
|
-
<RecipientForm vm={vm} />
|
|
41
|
-
</div>
|
|
42
|
-
),
|
|
43
|
-
[vm]
|
|
44
|
-
);
|
|
45
|
-
const [selectedLocationId, setSelectedLocationId] = React.useState("-1");
|
|
46
|
-
|
|
47
|
-
const isShowLocation = (location: IkasStockLocation) => {
|
|
48
|
-
return (
|
|
49
|
-
location.address &&
|
|
50
|
-
location.address.address &&
|
|
51
|
-
location.address.city &&
|
|
52
|
-
location.address.country &&
|
|
53
|
-
vm.vm.availableStockLocations.find(
|
|
54
|
-
(availableLocation) => availableLocation.id === location.id
|
|
55
|
-
)
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
React.useEffect(() => {
|
|
60
|
-
if (vm.vm.checkout.stockLocationId) {
|
|
61
|
-
setSelectedLocationId(vm.vm.checkout.stockLocationId);
|
|
62
|
-
}
|
|
63
|
-
}, []);
|
|
64
|
-
|
|
65
|
-
const locationFullAddress = (location: IkasStockLocation) => {
|
|
66
|
-
if (!location.address) return "";
|
|
67
|
-
const strings: string[] = [];
|
|
68
|
-
|
|
69
|
-
if (location.address.address) strings.push(location.address.address);
|
|
70
|
-
if (location.address.postalCode) strings.push(location.address.postalCode);
|
|
71
|
-
if (location.address.district && location.address.district.name)
|
|
72
|
-
strings.push(location.address.district.name);
|
|
73
|
-
if (location.address.city && location.address.city.name)
|
|
74
|
-
strings.push(location.address.city.name);
|
|
75
|
-
if (
|
|
76
|
-
location.address.state &&
|
|
77
|
-
location.address.state.name &&
|
|
78
|
-
location.address.state.name !== "Default"
|
|
79
|
-
)
|
|
80
|
-
strings.push(location.address.state.name);
|
|
81
|
-
if (location.address.country && location.address.country.name)
|
|
82
|
-
strings.push(location.address.country.name);
|
|
83
|
-
|
|
84
|
-
return strings.join(", ");
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return (
|
|
88
|
-
<React.Fragment>
|
|
89
|
-
{!!IkasStorefrontConfig.getPickupStockLocationIds() &&
|
|
90
|
-
!vm.vm.isDigitalOnly &&
|
|
91
|
-
vm.vm.availableStockLocations.length > 0 &&
|
|
92
|
-
vm.vm.step !== CheckoutStep.PAYMENT && (
|
|
93
|
-
<>
|
|
94
|
-
<div className={commonStyles.FormSectionTitle}>
|
|
95
|
-
<div className={commonStyles.Title}>
|
|
96
|
-
{t("checkout-page:deliveryMethod")}
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
<DeliveryMethods
|
|
100
|
-
deliveryMethod={vm.vm.deliveryMethod}
|
|
101
|
-
onClick={(deliveryMethod) => {
|
|
102
|
-
if (deliveryMethod === "address") {
|
|
103
|
-
setSelectedLocationId("-1");
|
|
104
|
-
}
|
|
105
|
-
vm.vm.onDeliveryMethodChange(deliveryMethod);
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
</>
|
|
109
|
-
)}
|
|
110
|
-
|
|
111
|
-
<div className={commonStyles.FormSectionTitle}>
|
|
112
|
-
{vm.vm.deliveryMethod === "address" ? (
|
|
113
|
-
<div className={commonStyles.Title}>
|
|
114
|
-
{vm.editingCustomerAddress
|
|
115
|
-
? t("checkout-page:editAddress")
|
|
116
|
-
: vm.addressType === "billing"
|
|
117
|
-
? t("checkout-page:billingAddress")
|
|
118
|
-
: t("checkout-page:shippingAddress")}
|
|
119
|
-
</div>
|
|
120
|
-
) : vm.vm.step === CheckoutStep.PAYMENT ? (
|
|
121
|
-
<div className={commonStyles.Title}>
|
|
122
|
-
{t("checkout-page:billingAddress")}
|
|
123
|
-
</div>
|
|
124
|
-
) : (
|
|
125
|
-
<div className={commonStyles.Title}>
|
|
126
|
-
{t("checkout-page:pickUpLocation")}
|
|
127
|
-
<span className={styles.ErrorMessage}>
|
|
128
|
-
{vm.vm.isErrorsVisible &&
|
|
129
|
-
!!!vm.vm.checkout.stockLocationId &&
|
|
130
|
-
t("checkout-page:errorPickupLocationRequired")}
|
|
131
|
-
</span>
|
|
132
|
-
</div>
|
|
133
|
-
)}
|
|
134
|
-
|
|
135
|
-
{!!vm.editingCustomerAddress && (
|
|
136
|
-
<div
|
|
137
|
-
className={styles.CancelEdit}
|
|
138
|
-
onClick={vm.onCancelEditAddressClick}
|
|
139
|
-
>
|
|
140
|
-
{t("checkout-page:actions.cancel")}
|
|
141
|
-
</div>
|
|
142
|
-
)}
|
|
143
|
-
</div>
|
|
144
|
-
|
|
145
|
-
{!!vm.vm.store.customerStore.customer &&
|
|
146
|
-
!vm.editingCustomerAddress &&
|
|
147
|
-
(vm.vm.deliveryMethod === "address" ||
|
|
148
|
-
(vm.vm.step === CheckoutStep.PAYMENT &&
|
|
149
|
-
vm.vm.deliveryMethod === "in-store")) && (
|
|
150
|
-
<div className={checkoutStyles.RowPB}>
|
|
151
|
-
{vm.vm.store.customerStore.customer.addresses?.map((address) => (
|
|
152
|
-
<SelectBox
|
|
153
|
-
key={address.id}
|
|
154
|
-
label={address.title || ""}
|
|
155
|
-
isSelected={address.id === vm.selectedAddressId}
|
|
156
|
-
rightContent={
|
|
157
|
-
<div onClick={() => vm.onEditAddressClick(address)}>
|
|
158
|
-
{t("checkout-page:actions.edit")}
|
|
159
|
-
</div>
|
|
160
|
-
}
|
|
161
|
-
bottomContent={
|
|
162
|
-
<div className={styles.AddressText}>
|
|
163
|
-
{address.addressText}
|
|
164
|
-
</div>
|
|
165
|
-
}
|
|
166
|
-
bottomContentVisible={true}
|
|
167
|
-
hasError={!address.isValid}
|
|
168
|
-
errorText={t("checkout-page:missingAddressFields")}
|
|
169
|
-
onClick={() =>
|
|
170
|
-
address.id !== vm.selectedAddressId &&
|
|
171
|
-
vm.onAddressSelect(address)
|
|
172
|
-
}
|
|
173
|
-
/>
|
|
174
|
-
))}
|
|
175
|
-
<SelectBox
|
|
176
|
-
label={t("checkout-page:newAddress")}
|
|
177
|
-
isSelected={"-1" === vm.selectedAddressId}
|
|
178
|
-
bottomContent={addressForm}
|
|
179
|
-
onClick={() =>
|
|
180
|
-
vm.selectedAddressId !== "-1" && vm.onAddressSelect()
|
|
181
|
-
}
|
|
182
|
-
/>
|
|
183
|
-
</div>
|
|
184
|
-
)}
|
|
185
|
-
{!vm.vm.store.customerStore.customer &&
|
|
186
|
-
vm.vm.step === CheckoutStep.INFO &&
|
|
187
|
-
vm.vm.deliveryMethod === "address"
|
|
188
|
-
? addressForm
|
|
189
|
-
: vm.vm.step === CheckoutStep.PAYMENT &&
|
|
190
|
-
!vm.vm.store.customerStore.customer &&
|
|
191
|
-
addressForm}
|
|
192
|
-
|
|
193
|
-
{vm.vm.deliveryMethod === "in-store" && (
|
|
194
|
-
<div className={checkoutStyles.RowPB}>
|
|
195
|
-
{vm.vm.stockLocations.map(
|
|
196
|
-
(location) =>
|
|
197
|
-
isShowLocation(location) && (
|
|
198
|
-
<SelectBox
|
|
199
|
-
key={location.id}
|
|
200
|
-
label={location.name || ""}
|
|
201
|
-
isSelected={selectedLocationId === location.id}
|
|
202
|
-
bottomContent={
|
|
203
|
-
<div>
|
|
204
|
-
<div className={styles.AddressText}>
|
|
205
|
-
{locationFullAddress(location)}
|
|
206
|
-
</div>
|
|
207
|
-
{location.deliveryTime && (
|
|
208
|
-
<div className={styles.DeliveryTime}>
|
|
209
|
-
{t(
|
|
210
|
-
`checkout-page:stockLocation.deliveryTime.${location.deliveryTime}`
|
|
211
|
-
)}
|
|
212
|
-
</div>
|
|
213
|
-
)}
|
|
214
|
-
</div>
|
|
215
|
-
}
|
|
216
|
-
bottomContentVisible={true}
|
|
217
|
-
onClick={() => {
|
|
218
|
-
vm.vm.onStockLocationChange(location);
|
|
219
|
-
setSelectedLocationId(location.id);
|
|
220
|
-
}}
|
|
221
|
-
/>
|
|
222
|
-
)
|
|
223
|
-
)}
|
|
224
|
-
</div>
|
|
225
|
-
)}
|
|
226
|
-
|
|
227
|
-
{vm.vm.deliveryMethod === "in-store" &&
|
|
228
|
-
vm.vm.step !== CheckoutStep.PAYMENT && (
|
|
229
|
-
<>
|
|
230
|
-
<div className={commonStyles.FormSectionTitle}>
|
|
231
|
-
<div className={commonStyles.Title}>
|
|
232
|
-
{t("checkout-page:recipientsInfo")}
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
{recipientsForm}
|
|
236
|
-
</>
|
|
237
|
-
)}
|
|
238
|
-
|
|
239
|
-
{!!vm.editingCustomerAddress && <CustomerAddressForm vm={vm} />}
|
|
240
|
-
{!!vm.editingCustomerAddress && (
|
|
241
|
-
<div className={styles.EditAddressActions}>
|
|
242
|
-
<Button
|
|
243
|
-
style={{
|
|
244
|
-
width: "100%",
|
|
245
|
-
}}
|
|
246
|
-
text={t("checkout-page:deleteAddress")}
|
|
247
|
-
isLine={true}
|
|
248
|
-
isLoading={vm.isDeleteAddressLoading}
|
|
249
|
-
isDisabled={vm.isEditAddressLoading}
|
|
250
|
-
onClick={vm.onDeleteAddressClick}
|
|
251
|
-
/>
|
|
252
|
-
<Button
|
|
253
|
-
style={{
|
|
254
|
-
width: "100%",
|
|
255
|
-
marginTop: vm.vm.store.customerStore.customer ? "0px" : "32px",
|
|
256
|
-
}}
|
|
257
|
-
text={t("checkout-page:actions.save")}
|
|
258
|
-
isLoading={vm.isEditAddressLoading}
|
|
259
|
-
isDisabled={vm.isDeleteAddressLoading}
|
|
260
|
-
onClick={vm.onSaveAddressClick}
|
|
261
|
-
/>
|
|
262
|
-
</div>
|
|
263
|
-
)}
|
|
264
|
-
</React.Fragment>
|
|
265
|
-
);
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export default observer(CustomerAddresses);
|
|
269
|
-
|
|
270
|
-
type CustomerAddressFormProps = {
|
|
271
|
-
vm: CustomerAddressesViewModel;
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
export const CustomerAddressForm: React.FC<CustomerAddressFormProps> = observer(
|
|
275
|
-
({ vm }) => {
|
|
276
|
-
return (
|
|
277
|
-
<AddressForm
|
|
278
|
-
address={vm.editingCustomerAddress || vm.address!}
|
|
279
|
-
isErrorsVisible={vm.isEditAddressErrorsVisible || vm.vm.isErrorsVisible}
|
|
280
|
-
allowedCountryIds={vm.vm.shippingCountryIds || undefined}
|
|
281
|
-
allowCorporateInfo={vm.addressType === "billing"}
|
|
282
|
-
firstNameChangeCallback={vm.firstNameChangeCallback}
|
|
283
|
-
lastNameChangeCallback={vm.lastNameChangeCallback}
|
|
284
|
-
allowTitleChange={!!vm.editingCustomerAddress}
|
|
285
|
-
deliveryMethod={"address"}
|
|
286
|
-
/>
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
type RecipientFormProps = {
|
|
292
|
-
vm: CustomerAddressesViewModel;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export const RecipientForm: React.FC<RecipientFormProps> = observer(
|
|
296
|
-
({ vm }) => {
|
|
297
|
-
return (
|
|
298
|
-
<AddressForm
|
|
299
|
-
address={vm.editingCustomerAddress || vm.address!}
|
|
300
|
-
isErrorsVisible={vm.isEditAddressErrorsVisible || vm.vm.isErrorsVisible}
|
|
301
|
-
firstNameChangeCallback={vm.firstNameChangeCallback}
|
|
302
|
-
lastNameChangeCallback={vm.lastNameChangeCallback}
|
|
303
|
-
deliveryMethod={"in-store"}
|
|
304
|
-
/>
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
);
|
|
308
|
-
|
|
309
|
-
type SaveAddressProps = {
|
|
310
|
-
vm: CustomerAddressesViewModel;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
export const SaveAddressCheckboxAndTitle: React.FC<SaveAddressProps> = observer(
|
|
314
|
-
({ vm }) => {
|
|
315
|
-
const { t } = useTranslation();
|
|
316
|
-
|
|
317
|
-
return !!vm.vm.store.customerStore.customer &&
|
|
318
|
-
vm.selectedAddressId === "-1" ? (
|
|
319
|
-
<div style={{ marginTop: "12px" }}>
|
|
320
|
-
<Checkbox
|
|
321
|
-
value={vm.vm.shouldSaveAddress}
|
|
322
|
-
label={t("checkout-page:saveAddressCta")}
|
|
323
|
-
onChange={vm.vm.setShouldSaveAddress}
|
|
324
|
-
/>
|
|
325
|
-
{vm.vm.shouldSaveAddress && (
|
|
326
|
-
<div style={{ marginTop: "8px" }}>
|
|
327
|
-
<FormItem
|
|
328
|
-
type={FormItemType.TEXT}
|
|
329
|
-
label={t("checkout-page:addressTitle")}
|
|
330
|
-
value={vm.vm.addressTitle}
|
|
331
|
-
onChange={vm.vm.setAddressTitle}
|
|
332
|
-
/>
|
|
333
|
-
</div>
|
|
334
|
-
)}
|
|
335
|
-
</div>
|
|
336
|
-
) : null;
|
|
337
|
-
}
|
|
338
|
-
);
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { IkasCustomerAddress } from "../../../../models";
|
|
2
|
-
import { makeAutoObservable } from "mobx";
|
|
3
|
-
import CheckoutViewModel from "../../model";
|
|
4
|
-
import _cloneDeep from "lodash/cloneDeep";
|
|
5
|
-
|
|
6
|
-
export type AddressType = "shipping" | "billing";
|
|
7
|
-
|
|
8
|
-
export default class CustomerAddressesViewModel {
|
|
9
|
-
vm: CheckoutViewModel;
|
|
10
|
-
addressType: AddressType;
|
|
11
|
-
|
|
12
|
-
editingCustomerAddress: IkasCustomerAddress | null = null;
|
|
13
|
-
isDeleteAddressLoading = false;
|
|
14
|
-
isEditAddressLoading = false;
|
|
15
|
-
isEditAddressErrorsVisible = false;
|
|
16
|
-
|
|
17
|
-
constructor(vm: CheckoutViewModel, addressType: AddressType) {
|
|
18
|
-
this.vm = vm;
|
|
19
|
-
this.addressType = addressType;
|
|
20
|
-
|
|
21
|
-
makeAutoObservable(this);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
get address() {
|
|
25
|
-
if (this.addressType === "shipping")
|
|
26
|
-
return this.vm.checkout.shippingAddress;
|
|
27
|
-
else return this.vm.checkout.billingAddress;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get selectedAddressId() {
|
|
31
|
-
if (this.addressType === "shipping")
|
|
32
|
-
return this.vm.selectedShippingAddressId;
|
|
33
|
-
else return this.vm.selectedBillingAddressId;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
onAddressSelect = (address?: IkasCustomerAddress) => {
|
|
37
|
-
const setAddressId =
|
|
38
|
-
this.addressType === "shipping"
|
|
39
|
-
? this.vm.onSelectedShippingAddressIdChange
|
|
40
|
-
: this.vm.onSelectedBillingAddressIdChange;
|
|
41
|
-
|
|
42
|
-
setAddressId(address?.id || "-1");
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
onEditAddressClick = (address?: IkasCustomerAddress) => {
|
|
46
|
-
const _address = new IkasCustomerAddress(_cloneDeep(address) as any);
|
|
47
|
-
_address.checkoutSettings = this.vm.checkoutSettings;
|
|
48
|
-
this.editingCustomerAddress = _address;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
onCancelEditAddressClick = () => {
|
|
52
|
-
if (this.isDeleteAddressLoading || this.isEditAddressLoading) return;
|
|
53
|
-
this.editingCustomerAddress = null;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
onDeleteAddressClick = async () => {
|
|
57
|
-
const addressIndex =
|
|
58
|
-
this.vm.store.customerStore.customer?.addresses?.findIndex(
|
|
59
|
-
(a) => a.id === this.editingCustomerAddress?.id
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
if (addressIndex !== -1 && addressIndex !== undefined) {
|
|
63
|
-
const customer = _cloneDeep(this.vm.store.customerStore.customer)!;
|
|
64
|
-
customer.addresses?.splice(addressIndex, 1);
|
|
65
|
-
|
|
66
|
-
try {
|
|
67
|
-
this.isDeleteAddressLoading = true;
|
|
68
|
-
const saveSuccess = await this.vm.store.customerStore.saveCustomer(
|
|
69
|
-
customer
|
|
70
|
-
);
|
|
71
|
-
if (saveSuccess) {
|
|
72
|
-
this.editingCustomerAddress = null;
|
|
73
|
-
}
|
|
74
|
-
} catch {
|
|
75
|
-
// TODO show error
|
|
76
|
-
} finally {
|
|
77
|
-
this.isDeleteAddressLoading = false;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
onSaveAddressClick = async () => {
|
|
83
|
-
if (this.isDeleteAddressLoading || this.isEditAddressLoading) return;
|
|
84
|
-
|
|
85
|
-
if (!this.editingCustomerAddress?.isValid) {
|
|
86
|
-
this.isEditAddressErrorsVisible = true;
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const addressIndex =
|
|
91
|
-
this.vm.store.customerStore.customer?.addresses?.findIndex(
|
|
92
|
-
(a) => a.id === this.editingCustomerAddress?.id
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
if (addressIndex !== -1 && addressIndex !== undefined) {
|
|
96
|
-
const customer = _cloneDeep(this.vm.store.customerStore.customer)!;
|
|
97
|
-
customer.addresses![addressIndex] = this.editingCustomerAddress!;
|
|
98
|
-
|
|
99
|
-
try {
|
|
100
|
-
this.isEditAddressLoading = true;
|
|
101
|
-
const saveSuccess = await this.vm.store.customerStore.saveCustomer(
|
|
102
|
-
customer
|
|
103
|
-
);
|
|
104
|
-
if (saveSuccess) {
|
|
105
|
-
this.onAddressSelect(this.editingCustomerAddress);
|
|
106
|
-
this.editingCustomerAddress = null;
|
|
107
|
-
this.isEditAddressErrorsVisible = false;
|
|
108
|
-
}
|
|
109
|
-
} catch {
|
|
110
|
-
// TODO show error
|
|
111
|
-
} finally {
|
|
112
|
-
this.isEditAddressLoading = false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
firstNameChangeCallback = (value: string) => {
|
|
118
|
-
if (
|
|
119
|
-
(!this.vm.checkout.hasCustomer && this.addressType === "shipping") ||
|
|
120
|
-
this.vm.isDigitalOnly
|
|
121
|
-
) {
|
|
122
|
-
this.vm.checkout.customer!.firstName = value;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
lastNameChangeCallback = (value: string) => {
|
|
127
|
-
if (
|
|
128
|
-
(!this.vm.checkout.hasCustomer && this.addressType === "shipping") ||
|
|
129
|
-
this.vm.isDigitalOnly
|
|
130
|
-
) {
|
|
131
|
-
this.vm.checkout.customer!.lastName = value;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@import "../../styles/variables.scss";
|
|
2
|
-
|
|
3
|
-
.AddressText {
|
|
4
|
-
padding-left: 32px;
|
|
5
|
-
color: $secondaryTextColor;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.CancelEdit {
|
|
9
|
-
font-size: 16px;
|
|
10
|
-
padding-bottom: 16px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
user-select: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.EditAddressActions {
|
|
16
|
-
display: grid;
|
|
17
|
-
grid-template-columns: 1fr 1fr;
|
|
18
|
-
grid-gap: 16px;
|
|
19
|
-
margin-top: 16px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.DeliveryTime {
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
line-height: 20px;
|
|
26
|
-
color: $primaryTextColor;
|
|
27
|
-
margin-top: 8px;
|
|
28
|
-
padding-left: 32px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ErrorMessage {
|
|
32
|
-
display: flex;
|
|
33
|
-
color: $errorColor;
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
animation-name: fadeInFromRight;
|
|
36
|
-
margin-top: -5px;
|
|
37
|
-
animation-duration: 0.3s;
|
|
38
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { observer } from "mobx-react-lite";
|
|
3
|
-
import styles from "./style.module.scss";
|
|
4
|
-
|
|
5
|
-
type Props = {
|
|
6
|
-
icon: React.ReactNode;
|
|
7
|
-
text: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
onClick: (type: "address" | "in-store") => void;
|
|
10
|
-
type: "address" | "in-store";
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const IconButton: React.FC<Props> = observer(
|
|
14
|
-
({ text, icon, isSelected, type, onClick }) => {
|
|
15
|
-
const btnStyles = [styles.Button];
|
|
16
|
-
|
|
17
|
-
isSelected && btnStyles.push(styles.Selected);
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<button
|
|
21
|
-
type="button"
|
|
22
|
-
className={btnStyles.join(" ")}
|
|
23
|
-
onClick={() => onClick(type)}
|
|
24
|
-
>
|
|
25
|
-
<span className={styles.IconMargin}>{icon}</span> <span>{text}</span>
|
|
26
|
-
</button>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@import "../../../styles/variables.scss";
|
|
2
|
-
|
|
3
|
-
.Button {
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
user-select: none;
|
|
6
|
-
border: 1px solid $borderColor;
|
|
7
|
-
border-radius: 8px;
|
|
8
|
-
font-weight: 400 !important;
|
|
9
|
-
text-align: center;
|
|
10
|
-
position: relative;
|
|
11
|
-
transition: all 0.2s;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
background-color: #fff;
|
|
16
|
-
color: $primaryTextColor;
|
|
17
|
-
height: 56px;
|
|
18
|
-
|
|
19
|
-
&:focus {
|
|
20
|
-
outline: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.Large {
|
|
24
|
-
height: 56px;
|
|
25
|
-
padding: 0 24px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.Medium {
|
|
29
|
-
height: 48px;
|
|
30
|
-
padding: 0 16px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.Selected {
|
|
34
|
-
background-color: $secondaryBgColor;
|
|
35
|
-
border: 1px solid $primaryTextColor;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.IconMargin {
|
|
40
|
-
margin-right: 8px;
|
|
41
|
-
}
|