@ikas/storefront 4.5.0-beta.2 → 4.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/build/_virtual/axios.js +0 -1
- package/build/_virtual/index.js +0 -1
- package/build/analytics/analytics.d.ts +0 -37
- package/build/analytics/analytics.js +0 -1
- package/build/analytics/events.d.ts +0 -37
- package/build/analytics/events.js +0 -1
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/facebookPixel.js +0 -1
- package/build/analytics/googleAnalytics.d.ts +0 -13
- package/build/analytics/googleAnalytics.js +0 -1
- package/build/analytics/googleTagManager.d.ts +0 -209
- package/build/analytics/googleTagManager.js +0 -1
- package/build/analytics/googleUniversal.d.ts +0 -9
- package/build/analytics/googleUniversal.js +0 -1
- package/build/analytics/head/index.d.ts +0 -3
- package/build/analytics/head/index.js +0 -1
- package/build/analytics/ikas.d.ts +0 -134
- package/build/analytics/ikas.js +0 -1
- package/build/analytics/index.d.ts +0 -2
- package/build/analytics/tiktokPixel.d.ts +0 -13
- package/build/analytics/tiktokPixel.js +0 -1
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/index.js +0 -1
- package/build/components/checkout/components/address-form/model.d.ts +0 -87
- package/build/components/checkout/components/address-form/model.js +0 -1
- package/build/components/checkout/components/adyen/adyen.module.scss.js +0 -1
- package/build/components/checkout/components/adyen/index.d.ts +0 -8
- package/build/components/checkout/components/adyen/index.js +0 -1
- package/build/components/checkout/components/button/index.d.ts +0 -13
- package/build/components/checkout/components/button/index.js +0 -1
- package/build/components/checkout/components/button/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -11
- package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.d.ts +0 -2
- package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.js +0 -1
- package/build/components/checkout/components/cart-summary/index.d.ts +0 -12
- package/build/components/checkout/components/cart-summary/index.js +0 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
- package/build/components/checkout/components/checkbox/check.d.ts +0 -6
- package/build/components/checkout/components/checkbox/check.js +0 -1
- package/build/components/checkout/components/checkbox/index.d.ts +0 -10
- package/build/components/checkout/components/checkbox/index.js +0 -1
- package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
- package/build/components/checkout/components/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
- package/build/components/checkout/components/credit-card-form/model.js +0 -1
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
- package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
- package/build/components/checkout/components/customer-addresses/index.js +0 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
- package/build/components/checkout/components/customer-addresses/model.js +0 -1
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
- package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
- package/build/components/checkout/components/delivery-methods/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
- package/build/components/checkout/components/error/index.d.ts +0 -7
- package/build/components/checkout/components/error/index.js +0 -1
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
- package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/payment-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/stock-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/unknown-error/index.js +0 -1
- package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
- package/build/components/checkout/components/expandable-section/index.js +0 -1
- package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
- package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
- package/build/components/checkout/components/form-item/caret-down.js +0 -1
- package/build/components/checkout/components/form-item/index.d.ts +0 -3
- package/build/components/checkout/components/form-item/index.js +0 -1
- package/build/components/checkout/components/form-item/model.d.ts +0 -69
- package/build/components/checkout/components/form-item/model.js +0 -1
- package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
- package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
- package/build/components/checkout/components/input-with-button/index.d.ts +0 -12
- package/build/components/checkout/components/input-with-button/index.js +0 -1
- package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/klarna/index.d.ts +0 -7
- package/build/components/checkout/components/klarna/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/index.d.ts +0 -8
- package/build/components/checkout/components/master-pass/link-card-to-client/index.js +0 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.d.ts +0 -2
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.js +0 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.d.ts +0 -2
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.js +0 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
- package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.js +0 -1
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
- package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.d.ts +0 -6
- package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.d.ts +0 -6
- package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.js +0 -1
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
- package/build/components/checkout/components/modal/index.d.ts +0 -8
- package/build/components/checkout/components/modal/index.js +0 -1
- package/build/components/checkout/components/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
- package/build/components/checkout/components/modal/useEscape.js +0 -1
- package/build/components/checkout/components/notification-box/index.d.ts +0 -9
- package/build/components/checkout/components/notification-box/index.js +0 -1
- package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/index.d.ts +0 -8
- package/build/components/checkout/components/offer-product/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
- package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
- package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
- package/build/components/checkout/components/offer-product/select/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
- package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
- package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
- package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
- package/build/components/checkout/components/phone-number-input/index.js +0 -1
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
- package/build/components/checkout/components/quick-registration/completed.d.ts +0 -7
- package/build/components/checkout/components/quick-registration/completed.js +0 -1
- package/build/components/checkout/components/quick-registration/index.d.ts +0 -7
- package/build/components/checkout/components/quick-registration/index.js +0 -1
- package/build/components/checkout/components/quick-registration/model.d.ts +0 -19
- package/build/components/checkout/components/quick-registration/model.js +0 -1
- package/build/components/checkout/components/quick-registration/style.module.scss.js +0 -1
- package/build/components/checkout/components/select-box/index.d.ts +0 -13
- package/build/components/checkout/components/select-box/index.js +0 -1
- package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/step-container/index.d.ts +0 -15
- package/build/components/checkout/components/step-container/index.js +0 -1
- package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
- package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
- package/build/components/checkout/components/stripe/checkout-form.js +0 -1
- package/build/components/checkout/components/stripe/index.d.ts +0 -9
- package/build/components/checkout/components/stripe/index.js +0 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
- package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-down.js +0 -1
- package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.js +0 -1
- package/build/components/checkout/components/svg/discount.d.ts +0 -6
- package/build/components/checkout/components/svg/external.d.ts +0 -6
- package/build/components/checkout/components/svg/external.js +0 -1
- package/build/components/checkout/components/svg/gift.d.ts +0 -7
- package/build/components/checkout/components/svg/gift.js +0 -1
- package/build/components/checkout/components/svg/ikas.d.ts +0 -6
- package/build/components/checkout/components/svg/ikas.js +0 -1
- package/build/components/checkout/components/svg/lock.d.ts +0 -6
- package/build/components/checkout/components/svg/lock.js +0 -1
- package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.js +0 -1
- package/build/components/checkout/components/svg/tag.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.js +0 -1
- package/build/components/checkout/components/toggle/index.d.ts +0 -10
- package/build/components/checkout/components/toggle/index.js +0 -1
- package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
- package/build/components/checkout/components/tooltip/index.d.ts +0 -8
- package/build/components/checkout/components/tooltip/index.js +0 -1
- package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
- package/build/components/checkout/index.d.ts +0 -34
- package/build/components/checkout/index.js +0 -1
- package/build/components/checkout/model.d.ts +0 -191
- package/build/components/checkout/model.js +0 -1
- package/build/components/checkout/modelMasterPass.d.ts +0 -204
- package/build/components/checkout/modelMasterPass.js +0 -1
- package/build/components/checkout/steps/step-info/index.d.ts +0 -7
- package/build/components/checkout/steps/step-info/index.js +0 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
- package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
- package/build/components/checkout/steps/step-shipping/index.js +0 -1
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-success/index.d.ts +0 -7
- package/build/components/checkout/steps/step-success/index.js +0 -1
- package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
- package/build/components/checkout/style.module.scss.js +0 -1
- package/build/components/checkout/styles/common.module.scss.js +0 -1
- package/build/components/google-captcha/index.d.ts +0 -9
- package/build/components/google-captcha/index.js +0 -1
- package/build/components/image/index.d.ts +0 -10
- package/build/components/image/index.js +0 -1
- package/build/components/index.d.ts +0 -6
- package/build/components/link/index.d.ts +0 -16
- package/build/components/link/index.js +0 -1
- package/build/components/page/ThemeComponent.d.ts +0 -21
- package/build/components/page/ThemeComponent.js +0 -1
- package/build/components/page/head.d.ts +0 -15
- package/build/components/page/head.js +0 -1
- package/build/components/page/index.d.ts +0 -23
- package/build/components/page/index.js +0 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
- package/build/components/page-editor/ThemeComponentEditor.js +0 -1
- package/build/components/page-editor/error/index.d.ts +0 -4
- package/build/components/page-editor/error/index.js +0 -1
- package/build/components/page-editor/index.d.ts +0 -4
- package/build/components/page-editor/index.js +0 -1
- package/build/components/page-editor/loader/index.d.ts +0 -6
- package/build/components/page-editor/loader/index.js +0 -1
- package/build/components/page-editor/loader/style.module.scss.js +0 -1
- package/build/components/page-editor/model.d.ts +0 -76
- package/build/components/page-editor/model.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
- package/build/ext/axios/index.js +0 -1
- package/build/ext/axios/lib/adapters/xhr.js +0 -1
- package/build/ext/axios/lib/axios.js +0 -1
- package/build/ext/axios/lib/cancel/Cancel.js +0 -1
- package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
- package/build/ext/axios/lib/cancel/isCancel.js +0 -1
- package/build/ext/axios/lib/core/Axios.js +0 -1
- package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
- package/build/ext/axios/lib/core/buildFullPath.js +0 -1
- package/build/ext/axios/lib/core/createError.js +0 -1
- package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
- package/build/ext/axios/lib/core/enhanceError.js +0 -1
- package/build/ext/axios/lib/core/mergeConfig.js +0 -1
- package/build/ext/axios/lib/core/settle.js +0 -1
- package/build/ext/axios/lib/core/transformData.js +0 -1
- package/build/ext/axios/lib/defaults/index.js +0 -1
- package/build/ext/axios/lib/defaults/transitional.js +0 -1
- package/build/ext/axios/lib/env/data.js +0 -1
- package/build/ext/axios/lib/helpers/bind.js +0 -1
- package/build/ext/axios/lib/helpers/buildURL.js +0 -1
- package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
- package/build/ext/axios/lib/helpers/cookies.js +0 -1
- package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
- package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
- package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
- package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
- package/build/ext/axios/lib/helpers/spread.js +0 -1
- package/build/ext/axios/lib/helpers/validator.js +0 -1
- package/build/ext/axios/lib/utils.js +0 -1
- package/build/ext/style-inject/dist/style-inject.es.js +0 -1
- package/build/ext/tslib/tslib.es6.js +0 -1
- package/build/hooks/index.d.ts +0 -2
- package/build/hooks/useCustomerReviews.d.ts +0 -6
- package/build/hooks/useCustomerReviews.js +0 -1
- package/build/hooks/useStore.d.ts +0 -2
- package/build/hooks/useStore.js +0 -1
- package/build/index.d.ts +0 -7
- package/build/index.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -25
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -14
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/country-settings-model.d.ts +0 -141
- package/build/models/data/checkout/country-settings-model.js +0 -1
- package/build/models/data/checkout/index.d.ts +0 -26
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -21
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +0 -50
- package/build/models/data/customer/address/ikas-localized-customer-address.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -18
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -24
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -10
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/index.d.ts +0 -139
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/ikas-localized-order-address.d.ts +0 -32
- package/build/models/data/order/address/ikas-localized-order-address.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -69
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -46
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -9
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -30
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -16
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -26
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -82
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -76
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -70
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/star/index.d.ts +0 -6
- package/build/models/data/product/star/index.js +0 -1
- package/build/models/data/product/stock-location/index.d.ts +0 -8
- package/build/models/data/product/stock-location/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -11
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/state/location-translations/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -30
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -8
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
- package/build/models/data/storefront/meta-templates/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -14
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -10
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/theme-json/component/index.d.ts +0 -23
- package/build/models/data/theme-json/component/index.js +0 -1
- package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
- package/build/models/data/theme-json/component/prop/index.js +0 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
- package/build/models/data/theme-json/custom-data/index.js +0 -1
- package/build/models/data/theme-json/index.d.ts +0 -16
- package/build/models/data/theme-json/index.js +0 -1
- package/build/models/data/theme-json/page/component/index.d.ts +0 -7
- package/build/models/data/theme-json/page/component/index.js +0 -1
- package/build/models/data/theme-json/page/index.d.ts +0 -21
- package/build/models/data/theme-json/page/index.js +0 -1
- package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
- package/build/models/data/theme-json/settings/color/index.js +0 -1
- package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
- package/build/models/data/theme-json/settings/favicon/index.js +0 -1
- package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
- package/build/models/data/theme-json/settings/font-family/index.js +0 -1
- package/build/models/data/theme-json/settings/index.d.ts +0 -13
- package/build/models/data/theme-json/settings/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/index.d.ts +0 -2
- package/build/models/ui/blog-category-list/index.d.ts +0 -51
- package/build/models/ui/blog-category-list/index.js +0 -1
- package/build/models/ui/blog-list/index.d.ts +0 -55
- package/build/models/ui/blog-list/index.js +0 -1
- package/build/models/ui/brand-list/index.d.ts +0 -61
- package/build/models/ui/brand-list/index.js +0 -1
- package/build/models/ui/category-list/index.d.ts +0 -61
- package/build/models/ui/category-list/index.js +0 -1
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/component-renderer/index.js +0 -1
- package/build/models/ui/customer-review-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/index.d.ts +0 -27
- package/build/models/ui/navigation-link/index.d.ts +0 -8
- package/build/models/ui/navigation-link/index.js +0 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
- package/build/models/ui/product-attribute-detail/index.js +0 -1
- package/build/models/ui/product-attribute-list/index.d.ts +0 -8
- package/build/models/ui/product-attribute-list/index.js +0 -1
- package/build/models/ui/product-list/index.d.ts +0 -143
- package/build/models/ui/product-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.d.ts +0 -53
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -39
- package/build/models/ui/validator/form/account-info.js +0 -1
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/address.js +0 -1
- package/build/models/ui/validator/form/contact-form.d.ts +0 -42
- package/build/models/ui/validator/form/contact-form.js +0 -1
- package/build/models/ui/validator/form/customer-review.d.ts +0 -34
- package/build/models/ui/validator/form/customer-review.js +0 -1
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
- package/build/models/ui/validator/form/forgot-password.js +0 -1
- package/build/models/ui/validator/form/ikas-address.d.ts +0 -145
- package/build/models/ui/validator/form/ikas-address.js +0 -1
- package/build/models/ui/validator/form/login.d.ts +0 -32
- package/build/models/ui/validator/form/login.js +0 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
- package/build/models/ui/validator/form/raffle-form.js +0 -1
- package/build/models/ui/validator/form/recover-password.d.ts +0 -33
- package/build/models/ui/validator/form/recover-password.js +0 -1
- package/build/models/ui/validator/form/register.d.ts +0 -73
- package/build/models/ui/validator/form/register.js +0 -1
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/index.js +0 -1
- package/build/models/ui/validator/rules/index.d.ts +0 -101
- package/build/models/ui/validator/rules/index.js +0 -1
- package/build/page-data-init/index.d.ts +0 -41
- package/build/page-data-init/index.js +0 -1
- package/build/pages/404.d.ts +0 -4
- package/build/pages/404.js +0 -1
- package/build/pages/[slug]/index.d.ts +0 -4
- package/build/pages/_slug_/index.js +0 -1
- package/build/pages/account/addresses.d.ts +0 -4
- package/build/pages/account/addresses.js +0 -1
- package/build/pages/account/favorite-products.d.ts +0 -4
- package/build/pages/account/favorite-products.js +0 -1
- package/build/pages/account/forgot-password.d.ts +0 -4
- package/build/pages/account/forgot-password.js +0 -1
- package/build/pages/account/index.d.ts +0 -4
- package/build/pages/account/index.js +0 -1
- package/build/pages/account/login.d.ts +0 -4
- package/build/pages/account/login.js +0 -1
- package/build/pages/account/orders/[id].d.ts +0 -4
- package/build/pages/account/orders/_id_.js +0 -1
- package/build/pages/account/orders/index.d.ts +0 -4
- package/build/pages/account/orders/index.js +0 -1
- package/build/pages/account/raffles.d.ts +0 -4
- package/build/pages/account/raffles.js +0 -1
- package/build/pages/account/recover-password.d.ts +0 -4
- package/build/pages/account/recover-password.js +0 -1
- package/build/pages/account/register.d.ts +0 -4
- package/build/pages/account/register.js +0 -1
- package/build/pages/blog/[slug].d.ts +0 -4
- package/build/pages/blog/_slug_.js +0 -1
- package/build/pages/blog/index.d.ts +0 -4
- package/build/pages/blog/index.js +0 -1
- package/build/pages/cart.d.ts +0 -4
- package/build/pages/cart.js +0 -1
- package/build/pages/checkout.d.ts +0 -18
- package/build/pages/checkout.js +0 -1
- package/build/pages/editor.d.ts +0 -10
- package/build/pages/editor.js +0 -1
- package/build/pages/home.d.ts +0 -4
- package/build/pages/home.js +0 -1
- package/build/pages/index.d.ts +0 -22
- package/build/pages/pages/[slug].d.ts +0 -4
- package/build/pages/pages/_slug_.js +0 -1
- package/build/pages/raffle/[slug].d.ts +0 -4
- package/build/pages/raffle/_slug_.js +0 -1
- package/build/pages/raffle/index.d.ts +0 -4
- package/build/pages/raffle/index.js +0 -1
- package/build/pages/search.d.ts +0 -4
- package/build/pages/search.js +0 -1
- package/build/store/base.d.ts +0 -40
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/cart/index.d.ts +0 -40
- package/build/store/cart/index.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -16
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/customer/index.d.ts +0 -84
- package/build/store/customer/index.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/index.d.ts +0 -4
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -47
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/constants.d.ts +0 -3
- package/build/utils/constants.js +0 -1
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
- package/build/utils/google-fonts.d.ts +0 -2
- package/build/utils/google-fonts.js +0 -1
- package/build/utils/helper.d.ts +0 -5
- package/build/utils/helper.js +0 -1
- package/build/utils/i18n.d.ts +0 -11
- package/build/utils/i18n.js +0 -1
- package/build/utils/index.d.ts +0 -3
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var a=t.className;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",className:a},e.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),e.createElement("path",{fill:"currentColor",d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var l=t.className;return e.createElement("svg",{width:"82",height:"52",viewBox:"0 0 82 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l},e.createElement("mask",{id:"path-1-inside-1_1206:13861",fill:"white"},e.createElement("rect",{y:"7",width:"46",height:"36.8",rx:"0.925786"})),e.createElement("rect",{y:"7",width:"46",height:"36.8",rx:"0.925786",fill:"#F7F7F9"}),e.createElement("rect",{y:"7",width:"46",height:"6.9697",fill:"#F7F7F9"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.65531 11.3106C4.01723 11.3106 4.31062 11.0172 4.31062 10.6553C4.31062 10.2934 4.01723 10 3.65531 10C3.29339 10 3 10.2934 3 10.6553C3 11.0172 3.29339 11.3106 3.65531 11.3106Z",fill:"#272727"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.27543 11.3106C6.63735 11.3106 6.93074 11.0172 6.93074 10.6553C6.93074 10.2934 6.63735 10 6.27543 10C5.91351 10 5.62012 10.2934 5.62012 10.6553C5.62012 11.0172 5.91351 11.3106 6.27543 11.3106Z",fill:"#272727"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.89554 11.3106C9.25746 11.3106 9.55085 11.0172 9.55085 10.6553C9.55085 10.2934 9.25746 10 8.89554 10C8.53363 10 8.24023 10.2934 8.24023 10.6553C8.24023 11.0172 8.53363 11.3106 8.89554 11.3106Z",fill:"#272727"}),e.createElement("rect",{x:"0.697266",y:"13.2727",width:"44.6061",height:"1",fill:"#272727"}),e.createElement("rect",{y:"7",width:"46",height:"36.8",rx:"0.925786",stroke:"#272727","stroke-width":"2",mask:"url(#path-1-inside-1_1206:13861)"}),e.createElement("rect",{x:"16.5",y:"0.5",width:"65",height:"51",rx:"0.828302",fill:"#F7F7F9"}),e.createElement("rect",{x:"16",width:"66",height:"9.84848",fill:"#F7F7F9"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.9402 5.88045C21.4595 5.88045 21.8805 5.4595 21.8805 4.94023C21.8805 4.42095 21.4595 4 20.9402 4C20.421 4 20 4.42095 20 4.94023C20 5.4595 20.421 5.88045 20.9402 5.88045Z",fill:"#272727"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24.7 5.88045C25.2193 5.88045 25.6402 5.4595 25.6402 4.94023C25.6402 4.42095 25.2193 4 24.7 4C24.1807 4 23.7598 4.42095 23.7598 4.94023C23.7598 5.4595 24.1807 5.88045 24.7 5.88045Z",fill:"#272727"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.4588 5.88045C28.9781 5.88045 29.399 5.4595 29.399 4.94023C29.399 4.42095 28.9781 4 28.4588 4C27.9395 4 27.5186 4.42095 27.5186 4.94023C27.5186 5.4595 27.9395 5.88045 28.4588 5.88045Z",fill:"#272727"}),e.createElement("rect",{x:"17",y:"9",width:"64",height:"1",fill:"#272727"}),e.createElement("rect",{x:"16.5",y:"0.5",width:"65",height:"51",rx:"0.828302",stroke:"#272727"}),e.createElement("rect",{width:"16",height:"16",transform:"translate(9 21)",fill:"#F7F7F9"}),e.createElement("path",{d:"M19.333 28L22.6663 31.3333L19.333 34.6667",stroke:"#272727","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M12 23.5V28.6667C12 29.3739 12.281 30.0522 12.781 30.5523C13.2811 31.0524 13.9594 31.3333 14.6667 31.3333H22.6667",stroke:"#272727","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var l=t.className,r=t.style;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l,style:r},e.createElement("g",{"clip-path":"url(#clip0)"},e.createElement("path",{d:"M14.9565 3.1166H13.7919C13.9455 2.87347 14.0469 2.60057 14.0758 2.31194C14.1681 1.38954 13.6823 0.562662 12.8553 0.196068C12.0951 -0.140901 11.2408 -0.00315052 10.6257 0.554787L9.15506 1.8876C8.86866 1.57435 8.45694 1.37747 8 1.37747C7.54225 1.37747 7.12988 1.57497 6.84341 1.88919L5.37091 0.554631C4.75475 -0.00330674 3.90081 -0.140526 3.14097 0.196256C2.31416 0.562881 1.82828 1.39004 1.92091 2.31241C1.94987 2.60082 2.05119 2.8736 2.20478 3.1166H1.04347C0.467156 3.1166 0 3.58379 0 4.16007V5.72529C0 6.01341 0.233594 6.24704 0.52175 6.24704H15.4783C15.7664 6.24704 16 6.01344 16 5.72529V4.16007C16 3.58379 15.5328 3.1166 14.9565 3.1166ZM6.43478 2.94269V3.1166H3.98031C3.33181 3.1166 2.82144 2.51204 2.98341 1.83685C3.05475 1.53951 3.26937 1.28604 3.54697 1.15772C3.92816 0.981537 4.35041 1.0381 4.67056 1.32788L6.43522 2.92732C6.43512 2.93247 6.43478 2.93754 6.43478 2.94269ZM13.0404 2.17341C13.0016 2.71569 12.5117 3.11666 11.9681 3.11666H9.56522V2.94276C9.56522 2.9366 9.56484 2.93051 9.56478 2.92435C9.96453 2.56197 10.8317 1.77597 11.3021 1.34963C11.5694 1.10735 11.9434 0.994256 12.2892 1.09738C12.7853 1.24538 13.0767 1.66732 13.0404 2.17341Z",fill:"currentColor"}),e.createElement("path",{d:"M1.04395 7.29053V14.9427C1.04395 15.519 1.5111 15.9862 2.08741 15.9862H6.95698V7.29053H1.04395Z",fill:"currentColor"}),e.createElement("path",{d:"M9.04395 7.29053V15.9862H13.9135C14.4898 15.9862 14.957 15.519 14.957 14.9427V7.29053H9.04395Z",fill:"currentColor"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0"},e.createElement("rect",{width:"16",height:"16",fill:"white"}))))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as C from"react";var e=function(e){var t=e.className;return C.createElement("svg",{width:"42",height:"16",viewBox:"0 0 42 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},C.createElement("path",{d:"M0.599609 14.325V6.37414C0.599609 6.02414 0.887609 5.74414 1.24761 5.74414H3.20961C3.56961 5.74414 3.85761 6.02414 3.85761 6.37414V14.325C3.85761 14.675 3.56961 14.955 3.20961 14.955H1.24761C0.887609 14.955 0.599609 14.675 0.599609 14.325Z",fill:"currentColor"}),C.createElement("path",{d:"M0.599609 3.20073V1.29323C0.599609 0.931559 0.899609 0.639893 1.27161 0.639893H3.18561C3.55761 0.639893 3.85761 0.931559 3.85761 1.29323V3.20073C3.85761 3.56239 3.55761 3.85406 3.18561 3.85406H1.27161C0.899609 3.85406 0.599609 3.55656 0.599609 3.20073Z",fill:"currentColor"}),C.createElement("path",{d:"M14.5847 14.7742L12.3287 11.0467L9.52072 14.8033C9.44872 14.8967 9.33472 14.955 9.21472 14.955H7.26472C7.05472 14.955 6.88672 14.7917 6.88672 14.5875V0.8675C6.88672 0.663333 7.05472 0.5 7.26472 0.5H9.76672C9.97672 0.5 10.1447 0.663333 10.1447 0.8675V9.81584L14.1107 3.8775C14.1827 3.7725 14.3027 3.70833 14.4287 3.70833H17.2427C17.5547 3.70833 17.7287 4.0525 17.5487 4.29167L14.4767 8.38084L17.9987 14.4067C18.1427 14.6517 17.9627 14.955 17.6687 14.955H14.9087C14.7767 14.955 14.6507 14.885 14.5847 14.7742Z",fill:"currentColor"}),C.createElement("path",{d:"M23.9277 15.1066C20.9337 15.1066 18.8457 12.7149 18.8457 9.29657C18.8457 5.87824 20.9337 3.48657 23.9277 3.48657C25.1757 3.48657 26.3217 3.99991 27.2457 4.97407L27.3657 5.10241L27.3777 4.92157C27.3777 4.68241 27.4017 4.32657 27.4197 4.05241C27.4377 3.85991 27.5997 3.70824 27.8037 3.70824H30.0297C30.2397 3.70824 30.4077 3.87157 30.4077 4.07574V14.5874C30.4077 14.7916 30.2397 14.9549 30.0297 14.9549H27.8037C27.6057 14.9549 27.4377 14.8032 27.4257 14.6107C27.4017 14.3074 27.3777 13.9166 27.3777 13.7474L27.3597 13.5374L27.2397 13.6599C26.3157 14.6049 25.1637 15.1066 23.9277 15.1066ZM24.8277 6.23991C23.2557 6.23991 22.1577 7.49407 22.1577 9.29657C22.1577 11.2391 23.1297 12.3532 24.8277 12.3532C25.8177 12.3532 26.6817 11.8049 27.1437 10.8891L27.1497 10.8716V10.8599C27.1017 9.82741 27.1017 8.78907 27.1497 7.75657L27.1437 7.73907C26.6757 6.79991 25.8117 6.23991 24.8277 6.23991Z",fill:"currentColor"}),C.createElement("path",{d:"M36.9306 15.1824C35.1486 15.1824 34.0146 14.8207 33.3786 14.5174C33.0606 14.3657 32.8326 14.2141 32.6766 14.0916C32.5386 13.9807 32.4966 13.7882 32.5866 13.6366L33.4806 11.9974C33.5886 11.7991 33.8526 11.7407 34.0386 11.8749C35.1606 12.6741 36.4086 12.7674 36.9366 12.7674C37.9866 12.7674 38.5686 12.3941 38.5686 11.7116C38.5686 10.8249 37.6926 10.6207 36.5826 10.3582C36.4746 10.3349 36.3726 10.3057 36.2586 10.2824C34.7826 9.92657 32.8266 9.20324 32.8266 7.10907C32.8266 6.04741 33.3066 5.13741 34.2246 4.47241C35.1006 3.83657 36.3126 3.48657 37.6446 3.48657C39.5706 3.48657 40.9206 4.11074 41.5146 4.45491C41.6886 4.55407 41.7486 4.76407 41.6526 4.93907L40.8246 6.50241C40.7286 6.68907 40.4886 6.75907 40.3026 6.65407C39.2106 6.04157 38.2626 5.90741 37.6386 5.90741C37.1946 5.90741 36.1626 5.90741 36.1626 6.88741C36.1626 7.62824 36.7986 7.76824 37.6026 7.94907C37.8666 8.00741 38.1666 8.07157 38.4726 8.16491C39.4986 8.47991 41.9106 9.20907 41.9106 11.4141C41.9106 12.4641 41.4306 13.4149 40.5546 14.1032C39.6246 14.8032 38.3766 15.1824 36.9306 15.1824Z",fill:"currentColor"}))};export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var C=t.className;return e.createElement("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C},e.createElement("path",{d:"M10.5 6H10V4C10 1.794 8.206 0 6 0C3.794 0 2 1.794 2 4V6H1.5C0.673333 6 0 6.67267 0 7.5V14.5C0 15.3273 0.673333 16 1.5 16H10.5C11.3267 16 12 15.3273 12 14.5V7.5C12 6.67267 11.3267 6 10.5 6ZM3.33333 4C3.33333 2.52933 4.52933 1.33333 6 1.33333C7.47067 1.33333 8.66667 2.52933 8.66667 4V6H3.33333V4ZM6.66667 11.148V12.6667C6.66667 13.0347 6.36867 13.3333 6 13.3333C5.63133 13.3333 5.33333 13.0347 5.33333 12.6667V11.148C4.93667 10.9167 4.66667 10.4913 4.66667 10C4.66667 9.26467 5.26467 8.66667 6 8.66667C6.73533 8.66667 7.33333 9.26467 7.33333 10C7.33333 10.4913 7.06333 10.9167 6.66667 11.148Z",fill:"currentColor"}))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var r=t.className;return e.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"currentColor"}),e.createElement("path",{d:"M12 20L18 26L28.0005 15.9998",stroke:"white","stroke-width":"3.2","stroke-linecap":"round"}))};export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t=function(t){var r=t.className;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},e.createElement("circle",{cx:"8",cy:"8",r:"8",transform:"rotate(180 8 8)",fill:"currentColor"}),e.createElement("path",{d:"M8.50976 4L8.50977 10.0938L7.49023 10.0938L7.49023 4L8.50976 4ZM8 11.1191C8.17187 11.1191 8.32031 11.1816 8.44531 11.3066C8.57031 11.4316 8.63281 11.5801 8.63281 11.752C8.63281 11.9277 8.57031 12.0762 8.44531 12.1973C8.32031 12.3223 8.17187 12.3848 8 12.3848C7.82422 12.3848 7.67383 12.3223 7.54883 12.1973C7.42383 12.0762 7.36133 11.9277 7.36133 11.752C7.36133 11.5801 7.42383 11.4316 7.54883 11.3066C7.67383 11.1816 7.82422 11.1191 8 11.1191Z",fill:"white"}))};export{t as default};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare type Props = {
|
|
3
|
-
value: boolean;
|
|
4
|
-
label?: string | React.ReactNode;
|
|
5
|
-
hasError?: boolean;
|
|
6
|
-
removePadding?: boolean;
|
|
7
|
-
onChange?: (value: boolean) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const Toggle: React.FC<Props>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{observer as o}from"mobx-react-lite";import r from"../checkbox/check.js";import a from"./style.module.scss.js";var c=o((function(o){var c=o.value,t=o.label,i=o.hasError,l=o.removePadding,n=o.onChange,m=[a.CheckboxBorder],s=[a.CheckboxLabel],h=[a.CheckboxTick];return c&&(m.push(a.Checked),h.push(a.Visible)),i&&s.push(a.CheckboxLabelError),e.createElement("div",{className:[a.CheckboxWrapper,l?a.WithoutPadding:"",t?"":a.WithoutLabel].join(" "),onClick:function(){n&&n(!c)}},e.createElement("div",{className:a.CheckboxContainer},e.createElement("div",{className:m.join(" ")}),e.createElement("div",{className:h.join(" ")},e.createElement(r,null))),!!t&&e.createElement("div",{className:s.join(" ")},t))}));export{c as Toggle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var o={CheckboxWrapper:"style-module_CheckboxWrapper__5RhYr",WithoutPadding:"style-module_WithoutPadding__dZ4VI",WithoutLabel:"style-module_WithoutLabel__YoWH0",CheckboxContainer:"style-module_CheckboxContainer__26lKe",CheckboxBorder:"style-module_CheckboxBorder__7A2SL",Checked:"style-module_Checked__PPUk8",CheckboxTick:"style-module_CheckboxTick__Qp5qA",Visible:"style-module_Visible__M3y9g",CheckboxLabel:"style-module_CheckboxLabel__Oj6l8",CheckboxLabelError:"style-module_CheckboxLabelError__tYedL"};e(".style-module_CheckboxWrapper__5RhYr {\n width: 100%;\n display: flex;\n padding: 0.5em 0;\n cursor: pointer;\n user-select: none;\n align-items: center;\n}\n.style-module_CheckboxWrapper__5RhYr.style-module_WithoutPadding__dZ4VI {\n padding: 0;\n}\n.style-module_CheckboxWrapper__5RhYr.style-module_WithoutLabel__YoWH0 {\n padding: 0;\n width: auto;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxContainer__26lKe {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 16px;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxBorder__7A2SL {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n border: 1px solid var(--checkout-border-color);\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width 0.2s ease-in-out;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxBorder__7A2SL.style-module_Checked__PPUk8 {\n border: 10px solid var(--checkout-button-bg-color);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxTick__Qp5qA {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: var(--checkout-button-text-color);\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: 0.1s;\n opacity: 0;\n transform: scale(0.2);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxTick__Qp5qA.style-module_Visible__M3y9g {\n opacity: 1;\n transform: scale(1.2);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxLabel__Oj6l8 {\n flex: 1 1 auto;\n font-weight: normal;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxLabelError__tYedL {\n color: var(--checkout-error-color);\n}");export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{observer as e}from"mobx-react-lite";import a from"./style.module.scss.js";var o=e((function(e){var o=e.text,s=e.className,r=e.style;return t.createElement("div",{className:s,style:r},t.createElement("div",{className:a.TooltipContainer,"data-tip":o,"data-event":"touchstart focus mouseover","data-event-off":"mouseout"},"?"))}));export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={TooltipContainer:"style-module_TooltipContainer__bB7np",Tooltip:"style-module_Tooltip__tkB6D",TooltipArrow:"style-module_TooltipArrow__t4yQ1",Top:"style-module_Top__RLzwR",Bottom:"style-module_Bottom__KojVn",Left:"style-module_Left__v-Hrj",Right:"style-module_Right__wP-vR"};o(".style-module_TooltipContainer__bB7np {\n width: 16px;\n height: 16px;\n border-radius: 100%;\n color: white;\n background-color: var(--checkout-secondary-text-color);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px !important;\n cursor: pointer;\n position: relative;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D {\n position: absolute;\n margin: auto;\n color: white;\n background-color: rgb(64, 64, 64);\n border-radius: 4px;\n padding: 12px;\n font-size: 12px;\n display: none;\n width: 280px;\n text-align: center;\n z-index: 999;\n font-size: 16px !important;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D .style-module_TooltipArrow__t4yQ1 {\n background-color: rgb(64, 64, 64);\n width: 12px;\n height: 12px;\n transform: rotate(45deg);\n position: absolute;\n margin: auto;\n border-radius: 2px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Top__RLzwR {\n bottom: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Top__RLzwR .style-module_TooltipArrow__t4yQ1 {\n bottom: -4px;\n left: 0;\n right: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Bottom__KojVn {\n top: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Bottom__KojVn .style-module_TooltipArrow__t4yQ1 {\n top: -4px;\n left: 0;\n right: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Left__v-Hrj {\n right: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Left__v-Hrj .style-module_TooltipArrow__t4yQ1 {\n right: -4px;\n top: 0;\n bottom: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Right__wP-vR {\n left: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Right__wP-vR .style-module_TooltipArrow__t4yQ1 {\n left: -4px;\n top: 0;\n bottom: 0;\n}\n.style-module_TooltipContainer__bB7np:hover .style-module_Tooltip__tkB6D {\n display: inline-flex;\n}");export{t as default};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { IkasCheckoutSettings } from "../../models/data/checkout-settings";
|
|
3
|
-
import { IkasCheckout } from "../../models/data/checkout";
|
|
4
|
-
export declare type IkasCheckoutPageProps = {
|
|
5
|
-
checkout: IkasCheckout;
|
|
6
|
-
checkoutSettings: IkasCheckoutSettings;
|
|
7
|
-
customizationProps?: IkasCheckoutCustomizationProps;
|
|
8
|
-
returnPolicy: string;
|
|
9
|
-
privacyPolicy: string;
|
|
10
|
-
termsOfService: string;
|
|
11
|
-
imprint: string;
|
|
12
|
-
shippingPolicy: string;
|
|
13
|
-
};
|
|
14
|
-
export declare type IkasCheckoutCustomizationProps = {
|
|
15
|
-
showTax?: boolean;
|
|
16
|
-
buttonBgColor?: string;
|
|
17
|
-
buttonTextColor?: string;
|
|
18
|
-
buttonDisabledBgColor?: string;
|
|
19
|
-
buttonDisabledTextColor?: string;
|
|
20
|
-
primaryTextColor?: string;
|
|
21
|
-
secondaryTextColor?: string;
|
|
22
|
-
primaryBgColor?: string;
|
|
23
|
-
secondaryBgColor?: string;
|
|
24
|
-
borderColor?: string;
|
|
25
|
-
cardBgColor?: string;
|
|
26
|
-
errorColor?: string;
|
|
27
|
-
errorLightColor?: string;
|
|
28
|
-
warningColor?: string;
|
|
29
|
-
warningLightColor?: string;
|
|
30
|
-
successColor?: string;
|
|
31
|
-
successLightColor?: string;
|
|
32
|
-
};
|
|
33
|
-
declare const _default: React.FunctionComponent<IkasCheckoutPageProps>;
|
|
34
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import s from"next/link.js";import a from"react-tooltip";import l,{CheckoutStep as n}from"./model.js";import{IkasStorefrontConfig as c}from"@ikas/storefront-config";import{formatCurrency as m}from"../../utils/currency.js";import{useTranslation as d}from"../../utils/i18n.js";import p from"./steps/step-info/index.js";import{CheckoutStepShipping as u}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as v}from"./steps/step-payment/index.js";import{CartSummary as h}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as g}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout/country-settings-model.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as E}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as f}from"./steps/step-success/index.js";import{Modal as y}from"./components/modal/index.js";import x from"./components/master-pass/modal-otp/index.js";import k from"./components/master-pass/modal-response/index.js";import j from"./components/master-pass/modal-success/index.js";import{Image as C}from"../image/index.js";import b,{Step as N}from"./components/step-container/index.js";import{StockError as F}from"./components/error/stock-error/index.js";import{FullscreenLoading as M}from"./components/fullscreen-loading/index.js";import T from"./components/notification-box/index.js";import{FormItem as P}from"./components/form-item/index.js";import{FormItemType as S}from"./components/form-item/model.js";import{Button as A}from"./components/button/index.js";import{IkasPageHead as w}from"../page/head.js";import I from"./components/offer-product/index.js";import V from"./components/svg/ikas.js";import O from"./style.module.scss.js";import{Analytics as B}from"../../analytics/analytics.js";import"../../analytics/head/index.js";var L=i((function(e){var t,i,s,m=e.checkout,p=e.checkoutSettings,u=e.customizationProps,v=e.returnPolicy,E=e.privacyPolicy,C=e.termsOfService,b=e.imprint,N=e.shippingPolicy,T=d().t,P=r(),S=o.useState((function(){return new l(m,p,P,v,E,C,b,N,T,u||{})}))[0];return S.step===n.PAYMENT&&B.disableHTML(),o.useEffect((function(){S.checkoutSettings.isAccountRequired&&!S.checkout.hasCustomer&&P.push("/account/login?redirect="+encodeURIComponent(S.checkoutUrl)),B.beginCheckout(S.checkout),B.pageView(g.CHECKOUT)}),[]),o.useEffect((function(){S.customizationProps=u,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED")}(u)}),[u]),S.isCheckoutLoaded&&S.store.customerStore.initialized?S.checkout.hasCustomer&&(null===(t=S.store.customerStore.customer)||void 0===t?void 0:t.id)!==(null===(i=S.checkout.customer)||void 0===i?void 0:i.id)?(P.push("/account/login?redirect="+encodeURIComponent(S.checkoutUrl)),null):o.createElement(o.Fragment,null,o.createElement(w,{pageType:g.CHECKOUT,pageTitle:((null===(s=S.merchantSettings)||void 0===s?void 0:s.merchantName)||"")+" - "+T("checkout-page:securePayment"),pageDescription:T("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:O.CheckoutPage},o.createElement(a,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:O.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:O.Left},o.createElement("div",{className:O.LeftContent},o.createElement("div",null,o.createElement(R,{vm:S}),S.hasStockError&&o.createElement("div",{className:O.ErrorContainer},o.createElement(F,{vm:S,error:S.error})),!S.hasStockError&&o.createElement(o.Fragment,null,o.createElement(h,{vm:S,allowExpand:!0}),S.step===n.SUCCESS?o.createElement(f,{vm:S}):o.createElement(o.Fragment,null,S.checkoutCampaignOffer&&o.createElement(I,{vm:S,campaignOffer:S.checkoutCampaignOffer}),o.createElement(D,{vm:S}))),o.createElement("div",{className:O.Space})),o.createElement(G,{vm:S}))),o.createElement("div",{className:O.Right},o.createElement("div",{className:O.RightContent},o.createElement(h,{vm:S}),o.createElement("div",{className:O.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===c.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(V,null))))),!!S.policyModalText&&o.createElement(y,{title:S.policyModalTitle,modalContent:S.policyModalText,onClose:function(){S.policyModalText=""}}),S.isContactModalVisible&&o.createElement(Y,{vm:S,setVisible:S.setContactModalVisible}),S.mpVM.isOtpModalVisible&&o.createElement(x,{vm:S,visible:S.mpVM.isOtpModalVisible,type:S.mpVM.otpModalType,onClose:S.mpVM.hideOtpModal}),S.mpVM.isResponseModalVisible&&o.createElement(k,{visible:S.mpVM.isResponseModalVisible,text:S.mpVM.mfsResponseModalText,onClose:S.mpVM.onResponseModalClose}),S.mpVM.isSuccessModalVisible&&o.createElement(j,{visible:S.mpVM.isSuccessModalVisible,type:S.mpVM.successModalType,onClose:S.mpVM.onSuccessModalClose}))):o.createElement(M,null)})),R=i((function(e){var t,i,r,a=e.vm,l=d().t;return o.createElement("div",{className:O.Header},o.createElement(s,{href:"/",passHref:!0},o.createElement("a",null,(null===(t=a.merchantSettings)||void 0===t?void 0:t.logo)?o.createElement("div",{className:O.Logo},o.createElement(C,{layout:"fill",image:a.merchantSettings.logo,sizes:"360px"})):(null===(i=a.merchantSettings)||void 0===i?void 0:i.merchantName)||"")),!a.checkout.hasCustomer&&o.createElement("div",{className:O.LoginText},o.createElement("span",{className:O.LoginCta},l("checkout-page:alreadyHaveAnAccount")),o.createElement(s,{href:"/account/login?redirect="+encodeURIComponent(a.checkoutUrl),passHref:!0},o.createElement("a",{className:O.LoginBtn},l("checkout-page:actions.login")))),a.checkout.hasCustomer&&o.createElement("div",{className:O.CustomerInfo},o.createElement("div",{className:O.Name},a.checkout.customerFullName),o.createElement("div",{className:O.Email},null===(r=a.checkout.customer)||void 0===r?void 0:r.email)))})),D=i((function(e){var t=e.vm,i=d().t,r=o.useMemo((function(){switch(t.step){case n.INFO:return o.createElement(p,{vm:t});case n.SHIPPING:return o.createElement(u,{vm:t});case n.PAYMENT:return o.createElement(v,{vm:t});case n.SUCCESS:return o.createElement(f,{vm:t})}}),[t,t.step]),s=[new N(i("checkout-page:address"),t.step===n.INFO,t.step!==n.INFO,t.step!==n.INFO?o.createElement("div",{className:O.AdressStepInfo},o.createElement(U,{vm:t}),o.createElement("div",{className:O.EditBtn,onClick:t.onBackToInfoClick},i("checkout-page:actions.edit"))):void 0,t.step!==n.INFO?o.createElement("div",{className:O.AddressStepInfoMobile},o.createElement(U,{vm:t})):void 0),new N(i("checkout-page:payment"),t.step===n.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||s.splice(1,0,new N(i("checkout-page:shipping"),t.step===n.SHIPPING,t.step===n.PAYMENT,t.step===n.PAYMENT?o.createElement("div",{className:O.AdressStepInfo},o.createElement(H,{vm:t}),(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:O.EditBtn,onClick:t.onBackToShippingClick},i("checkout-page:actions.edit"))):void 0,t.step===n.PAYMENT?o.createElement("div",{className:O.AddressStepInfoMobile},o.createElement(H,{vm:t})):void 0)),o.createElement(b,{steps:s,stepContent:r})})),U=i((function(e){var t,i,r,s,a,l,n,c,m,p=e.vm,u=d().t,v=p.isDigitalOnly?((null===(t=p.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(i=p.checkout.billingAddress)||void 0===i?void 0:i.lastName)||""):((null===(r=p.checkout.shippingAddress)||void 0===r?void 0:r.firstName)||"")+" "+((null===(s=p.checkout.shippingAddress)||void 0===s?void 0:s.lastName)||"");return o.createElement("div",{className:O.Address},o.createElement("div",{className:[O.Text,O.WithMBottom].join(" ")},(null===(a=p.checkout.customer)||void 0===a?void 0:a.email)||""),"address"===p.deliveryMethod?o.createElement("div",{className:O.Text},v):o.createElement(o.Fragment,null,o.createElement("div",{className:O.Text},u("checkout-page:receiver")),o.createElement("div",{className:[O.Text,O.Gray].join(" ")},v)),o.createElement("div",{className:[O.Text,O.Gray].join(" ")},p.isDigitalOnly?null===(l=p.checkout.billingAddress)||void 0===l?void 0:l.phone:null===(n=p.checkout.shippingAddress)||void 0===n?void 0:n.phone),"in-store"===p.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[O.Text,O.WithMTop].join(" ")},u("checkout-page:pickUpLocation"))),o.createElement("div",{className:[O.Text,O.Gray].join(" ")},p.isDigitalOnly?null===(c=p.checkout.billingAddress)||void 0===c?void 0:c.addressText:null===(m=p.checkout.shippingAddress)||void 0===m?void 0:m.addressText))})),H=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:O.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:O.LightText}," / "+(0===t.checkout.shippingLines[0].price?i("checkout-page:free"):m(t.checkout.shippingLines[0].price,t.checkout.currencyCode,t.checkout.currencySymbol)))):i("checkout-page:standartShipping"))})),G=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:O.Footer},o.createElement("div",{className:O.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},i("checkout-page:returnPolicy")),o.createElement("div",{className:O.FooterBullet},"•"),o.createElement("div",{className:O.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},i("checkout-page:privacyPolicy")),o.createElement("div",{className:O.FooterBullet},"•"),o.createElement("div",{className:O.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},i("checkout-page:termsOfService")),t.imprint&&o.createElement(o.Fragment,null,o.createElement("div",{className:O.FooterBullet},"•"),o.createElement("div",{className:O.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:imprint"),t.policyModalText=t.imprint}},i("checkout-page:imprint"))),t.shippingPolicy&&o.createElement(o.Fragment,null,o.createElement("div",{className:O.FooterBullet},"•"),o.createElement("div",{className:O.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:shippingPolicy"),t.policyModalText=t.shippingPolicy}},i("checkout-page:shippingPolicy"))))})),Y=i((function(i){var r,s,a,l=i.vm,n=i.setVisible,c=d().t,m=o.useState(!1),p=m[0],u=m[1],v=o.useState(!1),h=v[0],g=v[1],f=o.useState(new E({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];f.email=(null===(r=l.checkout.customer)||void 0===r?void 0:r.email)||"",f.firstName=(null===(s=l.checkout.customer)||void 0===s?void 0:s.firstName)||"",f.lastName=(null===(a=l.checkout.customer)||void 0===a?void 0:a.lastName)||"";var x=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return h?[2,n(!1)]:(u(!0),[4,f.saveContactForm()]);case 1:return e.sent()&&g(!0),u(!1),[2]}}))}))}),[p]);return o.createElement(y,{title:c("checkout-page:contactForm"),modalContent:o.createElement("div",null,h&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(T,{type:"success",title:c("checkout-page:contactFormSent"),content:c("checkout-page:contactFormDescription")})),o.createElement(P,{type:S.TEXT_AREA,label:"",value:f.message||"",onChange:f.onMessageChange,textAreaPlaceholder:c("checkout-page:contactFormCta")}),o.createElement(A,{style:{width:"100%",marginTop:"24px"},text:c(h?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:p,isDisabled:!f.message,onClick:x})),onClose:function(){return n(!1)}})}));export{L as default};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { NextRouter } from "next/router.js";
|
|
2
|
-
import { IkasMerchantSettings, IkasAvailableShippingMethod, IkasOrderLineItem, IkasOrderTransaction, IkasProduct, IkasProductVariant, IkasCartCampaignOffer, IkasCheckout, IkasStockLocation, IkasAvailableStockLocation, IkasCampaignOfferTargetPageType, IkasCampaignOfferProduct, IkasLocalizedCustomerAddress } from "../../models";
|
|
3
|
-
import { IkasPaymentGateway } from "../../models/data/payment-gateway";
|
|
4
|
-
import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant";
|
|
5
|
-
import { IkasStorefront } from "../../models/data/storefront";
|
|
6
|
-
import CreditCardData from "./components/credit-card-form/model";
|
|
7
|
-
import { IkasCheckoutSettings } from "../../models/data/checkout-settings";
|
|
8
|
-
import { TFunction } from "../../utils/i18n";
|
|
9
|
-
import { IkasCheckoutCustomizationProps } from ".";
|
|
10
|
-
import MasterPassModel from "./modelMasterPass";
|
|
11
|
-
import { APIResponse } from "@ikas/fe-api-client";
|
|
12
|
-
import { CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, UpdateCartCampaignOfferInput, CreateKlarnaTokenResponse, CreateAdyenSessionResponse } from "@ikas/storefront-api";
|
|
13
|
-
import { IkasBaseStore } from "../../store";
|
|
14
|
-
import { RetrieveInstallmentInfoQueryParams, SaveCartInput } from "@ikas/storefront-api";
|
|
15
|
-
import CountrySettingsModel from "../../models/data/checkout/country-settings-model";
|
|
16
|
-
export declare type IUnavailableItems = {
|
|
17
|
-
item: IkasOrderLineItem;
|
|
18
|
-
stockCount: number;
|
|
19
|
-
};
|
|
20
|
-
export default class CheckoutViewModel {
|
|
21
|
-
checkout: IkasCheckout;
|
|
22
|
-
checkoutSettings: IkasCheckoutSettings;
|
|
23
|
-
storefront?: IkasStorefront | null;
|
|
24
|
-
router: NextRouter;
|
|
25
|
-
isCheckoutLoaded: boolean;
|
|
26
|
-
isErrorsVisible: boolean;
|
|
27
|
-
isStepLoading: boolean;
|
|
28
|
-
isTermsAndConditionsChecked: boolean;
|
|
29
|
-
isChangingShippingMethod: boolean;
|
|
30
|
-
isContactModalVisible: boolean;
|
|
31
|
-
step: CheckoutStep;
|
|
32
|
-
customizationProps?: IkasCheckoutCustomizationProps | null;
|
|
33
|
-
cardData?: CreditCardData | null;
|
|
34
|
-
paymentGateways: IkasPaymentGateway[];
|
|
35
|
-
installmentInfo?: RetrieveInstallmentInfoResponse | null;
|
|
36
|
-
useDifferentAddress: boolean;
|
|
37
|
-
shouldSaveAddress: boolean;
|
|
38
|
-
addressTitle: string;
|
|
39
|
-
shippingCountryIds?: string[] | null;
|
|
40
|
-
selectedShippingAddressId?: string;
|
|
41
|
-
selectedBillingAddressId?: string;
|
|
42
|
-
stockLocations: IkasStockLocation[];
|
|
43
|
-
availableStockLocations: IkasAvailableStockLocation[];
|
|
44
|
-
deliveryMethod: "address" | "in-store";
|
|
45
|
-
stripeResponse: CreateStripePaymentIntentResponse | null;
|
|
46
|
-
klarnaResponse: CreateKlarnaTokenResponse | null;
|
|
47
|
-
isKlarnaPaymentCompleted: boolean;
|
|
48
|
-
adyenResponse: CreateAdyenSessionResponse | null;
|
|
49
|
-
adyenDropinElement: any;
|
|
50
|
-
checkoutCampaignOffer: CampaignOfferType | undefined;
|
|
51
|
-
postCheckoutCampaignOffer: CampaignOfferType | undefined;
|
|
52
|
-
countrySettings: CountrySettingsModel;
|
|
53
|
-
returnPolicy: string;
|
|
54
|
-
privacyPolicy: string;
|
|
55
|
-
termsOfService: string;
|
|
56
|
-
imprint: string;
|
|
57
|
-
shippingPolicy: string;
|
|
58
|
-
policyModalTitle: string;
|
|
59
|
-
policyModalText: string;
|
|
60
|
-
error?: CheckoutError | null;
|
|
61
|
-
couponError?: string | null;
|
|
62
|
-
successTransaction?: IkasOrderTransaction;
|
|
63
|
-
mpVM: MasterPassModel;
|
|
64
|
-
showTestModal: boolean;
|
|
65
|
-
t: TFunction;
|
|
66
|
-
constructor(checkout: IkasCheckout, checkoutSettings: IkasCheckoutSettings, router: NextRouter, returnPolicy: string, privacyPolicy: string, termsOfService: string, imprint: string, shippingPolicy: string, t: TFunction, customizationProps: IkasCheckoutCustomizationProps);
|
|
67
|
-
init: () => Promise<void>;
|
|
68
|
-
initStep: () => Promise<void>;
|
|
69
|
-
getSuccessTransaction: () => Promise<void>;
|
|
70
|
-
get merchantSettings(): IkasMerchantSettings;
|
|
71
|
-
get selectedPaymentGatewayIndex(): number;
|
|
72
|
-
get selectedInstallmentIndex(): number;
|
|
73
|
-
get checkoutUrl(): string;
|
|
74
|
-
get customerAddressOptions(): {
|
|
75
|
-
label: string;
|
|
76
|
-
value: string;
|
|
77
|
-
}[];
|
|
78
|
-
get installmentPrice(): number | null | undefined;
|
|
79
|
-
get installmentExtraPrice(): number | undefined;
|
|
80
|
-
get finalPrice(): number;
|
|
81
|
-
get hasStockError(): boolean;
|
|
82
|
-
get isPaymentGatewayHasMasterPass(): boolean;
|
|
83
|
-
get hasQuickRegistration(): boolean | null;
|
|
84
|
-
get canProceedToShipping(): boolean | undefined;
|
|
85
|
-
get canProceedToInStoreDelivery(): boolean;
|
|
86
|
-
get canProceedToPayment(): boolean | undefined;
|
|
87
|
-
get isInStoreDelivery(): boolean;
|
|
88
|
-
get klarnaPaymentGateway(): IkasPaymentGateway | undefined;
|
|
89
|
-
get klarnaPaymentGatewayIndex(): number;
|
|
90
|
-
get adyenPaymentGateway(): IkasPaymentGateway | undefined;
|
|
91
|
-
get adyenPaymentGatewayIndex(): number;
|
|
92
|
-
get isCustomFlowStripe(): false | import("../../models").IkasPaymentGatewaySettings | null | undefined;
|
|
93
|
-
get isKlarna(): boolean | null | undefined;
|
|
94
|
-
get isAdyen(): boolean | null | undefined;
|
|
95
|
-
get store(): IkasBaseStore;
|
|
96
|
-
get canPerformPayment(): boolean | undefined;
|
|
97
|
-
get isDigitalOnly(): boolean;
|
|
98
|
-
get customerAddresses(): IkasLocalizedCustomerAddress[] | undefined;
|
|
99
|
-
saveCart: () => Promise<import("../../models").IkasCart | null | undefined>;
|
|
100
|
-
inStockDeliveryInputData: (input: SaveCartInput) => Promise<SaveCartInput>;
|
|
101
|
-
checkStocks: () => Promise<void>;
|
|
102
|
-
setIsKlarnaPaymentCompleted: (status: boolean) => Promise<void>;
|
|
103
|
-
removeUnavailableItems: (items: IUnavailableItems[]) => Promise<void>;
|
|
104
|
-
getShippingCountries: () => Promise<void>;
|
|
105
|
-
getStockLocations: () => Promise<void>;
|
|
106
|
-
getAvailableStockLocations: () => Promise<void>;
|
|
107
|
-
checkShippingCountries: () => void;
|
|
108
|
-
onDeliveryMethodChange: (deliveryMethod: "address" | "in-store") => void;
|
|
109
|
-
initialStockCheck: () => Promise<void>;
|
|
110
|
-
listPaymentGateways: () => Promise<void>;
|
|
111
|
-
retrieveInstallmentInfo: (params: RetrieveInstallmentInfoQueryParams) => Promise<void>;
|
|
112
|
-
createCustomer: () => void;
|
|
113
|
-
setCheckoutShippingAddressSettings: () => void;
|
|
114
|
-
setCheckoutBillingAddressSettings: () => void;
|
|
115
|
-
createShippingAddress: () => void;
|
|
116
|
-
createBillingAddress: () => void;
|
|
117
|
-
onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
|
|
118
|
-
onStockLocationChange: (location: IkasStockLocation) => Promise<void>;
|
|
119
|
-
onCouponCodeApply: () => Promise<void>;
|
|
120
|
-
onSelectedShippingAddressIdChange: (value: string) => void;
|
|
121
|
-
onSelectedBillingAddressIdChange: (value: string) => void;
|
|
122
|
-
onTermsAndConditionsCheckedChange: (value: boolean) => void;
|
|
123
|
-
onCardNumberChange: (value: string) => void;
|
|
124
|
-
onCardHolderNameChange: (value: string) => void;
|
|
125
|
-
onExpirationDateChange: (value: string) => void;
|
|
126
|
-
onCvcChange: (value: string) => void;
|
|
127
|
-
saveAddress: (type: "billing" | "shipping") => Promise<void>;
|
|
128
|
-
onGoToCartClick: () => void;
|
|
129
|
-
onBackToShoppingClick: () => void;
|
|
130
|
-
onGoToLoginClick: () => void;
|
|
131
|
-
onProceedToShippingClick: () => Promise<void>;
|
|
132
|
-
onProceedToDigitalOnlyPaymentClick: () => Promise<void>;
|
|
133
|
-
onProceedToPaymentClick: () => Promise<void>;
|
|
134
|
-
onCompletePaymentClick: () => Promise<void>;
|
|
135
|
-
onCompleteDigitalOnlyPaymentClick: () => Promise<void>;
|
|
136
|
-
createSaleTransaction: () => Promise<void>;
|
|
137
|
-
onCheckoutTransactionSuccess: () => Promise<void>;
|
|
138
|
-
onBackToInfoClick: () => void;
|
|
139
|
-
onBackToShippingClick: () => void;
|
|
140
|
-
setCustomerConsentGranted: (value: boolean) => void;
|
|
141
|
-
setUseDifferentAddress: (value: boolean) => void;
|
|
142
|
-
setShouldSaveAddress: (value: boolean) => void;
|
|
143
|
-
setAddressTitle: (value: string) => void;
|
|
144
|
-
setPaymentGateway: (index: number) => Promise<void>;
|
|
145
|
-
setInstallmentCount: (count: number) => void;
|
|
146
|
-
changeStep: (step: CheckoutStep) => Promise<void>;
|
|
147
|
-
logout: () => Promise<void>;
|
|
148
|
-
setContactModalVisible: (value: boolean) => void;
|
|
149
|
-
getCampaignOfferProducts: (targetPage: IkasCampaignOfferTargetPageType) => Promise<{
|
|
150
|
-
product: IkasProduct;
|
|
151
|
-
variants: IkasProductVariant[];
|
|
152
|
-
campaignOffer: IkasCartCampaignOffer;
|
|
153
|
-
offer: IkasCampaignOfferProduct;
|
|
154
|
-
} | undefined>;
|
|
155
|
-
getCampaignOffer: () => Promise<void>;
|
|
156
|
-
updateCartCampaignOffer: (props: UpdateCartCampaignOfferInput) => Promise<void>;
|
|
157
|
-
registerCustomer: (password: string) => Promise<APIResponse<{
|
|
158
|
-
customer: import("../../models").IkasCustomer | null;
|
|
159
|
-
token: string;
|
|
160
|
-
tokenExpiry: number;
|
|
161
|
-
} | null> | undefined>;
|
|
162
|
-
setAdyenDropinElement(element: any): void;
|
|
163
|
-
}
|
|
164
|
-
export declare enum CheckoutStep {
|
|
165
|
-
INFO = "info",
|
|
166
|
-
SHIPPING = "shipping",
|
|
167
|
-
PAYMENT = "payment",
|
|
168
|
-
SUCCESS = "success"
|
|
169
|
-
}
|
|
170
|
-
export declare enum ErrorType {
|
|
171
|
-
UNKNOWN = 0,
|
|
172
|
-
API_ERROR = 1,
|
|
173
|
-
STOCK_ERROR = 2,
|
|
174
|
-
PAYMENT_ERROR = 3,
|
|
175
|
-
NO_SHIPPING_ERROR = 4,
|
|
176
|
-
CUSTOMER_LOGIN_REQUIRED_ERROR = 5
|
|
177
|
-
}
|
|
178
|
-
export declare type CheckoutError = {
|
|
179
|
-
type: ErrorType;
|
|
180
|
-
data?: any;
|
|
181
|
-
};
|
|
182
|
-
export declare type StockErrorData = {
|
|
183
|
-
variant: IkasOrderLineVariant;
|
|
184
|
-
availableQuantity: number;
|
|
185
|
-
};
|
|
186
|
-
export declare type CampaignOfferType = {
|
|
187
|
-
product: IkasProduct;
|
|
188
|
-
variants: IkasProductVariant[];
|
|
189
|
-
campaignOffer: IkasCartCampaignOffer;
|
|
190
|
-
offer: IkasCampaignOfferProduct;
|
|
191
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as i}from'./../../ext/tslib/tslib.es6.js';import{makeAutoObservable as s}from"mobx";import n from"lodash/cloneDeep";import r from"lodash/sortBy";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasPaymentMethodType as o,IkasPaymentGatewayType as a,IkasOrderShippingMethod as c,IkasTransactionStatus as d,IkasCartCampaignOfferStatus as u,IkasCampaignOfferTargetPageType as l}from"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import{IkasCheckout as h}from"../../models/data/checkout/index.js";import p from"../../models/data/checkout/country-settings-model.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import{IkasCustomerAddress as m}from"../../models/data/customer/address/index.js";import{IkasLocalizedCustomerAddress as f}from"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import{IkasMerchantSettings as g}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/address/index.js";import{IkasOrderCustomer as v}from"../../models/data/order/customer/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import{IkasProduct as y}from"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import S from"./components/credit-card-form/model.js";import k from"../../store/customer/api.js";import b from"../../store/checkout/index.js";import C from"../../store/cart/api.js";import I,{MFS_ELEMENT_ID as A,MFS_SCRIPT_URL as P}from"./modelMasterPass.js";import w from"../../store/product/index.js";import{IkasBaseStore as N}from"../../store/base.js";import"../../store/customer/index.js";import"../../store/cart/index.js";import{IkasStorefrontConfig as E}from"@ikas/storefront-config";import{Analytics as j}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{SaveCartInput as O,CheckStocksLineInput as R}from"@ikas/storefront-api";import x from"../../models/data/order/address/ikas-localized-order-address.js";var D,T,G=/^\d+$/,M="undefined"==typeof localStorage,L=function(){function G(c,f,g,G,L,U,K,F,B,H){var Y=this;this.storefront=null,this.isCheckoutLoaded=!1,this.isErrorsVisible=!1,this.isStepLoading=!1,this.isTermsAndConditionsChecked=!1,this.isChangingShippingMethod=!1,this.isContactModalVisible=!1,this.step=D.INFO,this.customizationProps=null,this.cardData=null,this.paymentGateways=[],this.installmentInfo=null,this.useDifferentAddress=!1,this.shouldSaveAddress=!0,this.addressTitle="",this.shippingCountryIds=null,this.selectedShippingAddressId="-1",this.selectedBillingAddressId="-1",this.stockLocations=[],this.availableStockLocations=[],this.deliveryMethod="address",this.stripeResponse=null,this.klarnaResponse=null,this.isKlarnaPaymentCompleted=!1,this.adyenResponse=null,this.policyModalTitle="",this.policyModalText="",this.error=null,this.couponError=null,this.showTestModal=!1,this.init=function(){return t(Y,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,this.countrySettings.waitUntilInitialized()];case 1:return t.sent(),[4,N.getInstance().customerStore.waitUntilInitialized()];case 2:return t.sent(),this.createCustomer(),this.createShippingAddress(),this.createBillingAddress(),[4,this.getCampaignOffer()];case 3:return t.sent(),[4,this.initStep()];case 4:return t.sent(),[2]}}))}))},this.initStep=function(){return t(Y,void 0,void 0,(function(){var t,i,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:if(E.getIsEditor())return this.step=D.INFO,this.isCheckoutLoaded=!0,[2];if(t=new URLSearchParams(window.location.search),i=t.get("step"),s=t.get("failed"),n=t.get("error"),i){if(this.step=i,this.step===D.SHIPPING&&!this.canProceedToShipping)return[2,this.changeStep(D.INFO)];if(this.step!==D.PAYMENT||this.canProceedToPayment){if(this.step===D.SUCCESS&&!this.canProceedToPayment)return[2,this.changeStep(D.INFO)];if(![D.INFO,D.SUCCESS,D.SHIPPING,D.PAYMENT].includes(this.step))return[2,this.changeStep(D.INFO)]}else{if(!this.isInStoreDelivery)return[2,this.changeStep(D.INFO)];this.deliveryMethod="in-store"}}return s&&(this.error={type:T.PAYMENT_ERROR,data:n||null}),this.step!==D.INFO?[3,4]:[4,this.getShippingCountries()];case 1:return e.sent(),this.checkShippingCountries(),[4,this.getStockLocations()];case 2:return e.sent(),[4,this.getAvailableStockLocations()];case 3:e.sent(),this.isInStoreDelivery&&(this.deliveryMethod="in-store"),e.label=4;case 4:return this.step!==D.SHIPPING||1!==(null===(o=this.checkout.availableShippingMethods)||void 0===o?void 0:o.length)||this.checkoutSettings.isGiftPackageEnabled||(this.step=D.PAYMENT,this.router.replace("/checkout?id=".concat(this.checkout.id,"&step=").concat(this.step),void 0,{shallow:!0})),this.step!==D.SHIPPING||(null===(a=this.checkout.availableShippingMethods)||void 0===a?void 0:a.length)?this.step!==D.PAYMENT&&this.step!==D.SUCCESS?[3,8]:[4,this.listPaymentGateways()]:(this.error={type:T.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2]);case 5:return e.sent(),this.isInStoreDelivery?(this.deliveryMethod="in-store",[4,this.getStockLocations()]):[3,7];case 6:e.sent(),e.label=7;case 7:if(!this.paymentGateways.length)return this.error={type:T.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2];e.label=8;case 8:return this.step===D.SUCCESS?[3,12]:this.checkout.isComplete?[2,this.changeStep(D.SUCCESS)]:[3,9];case 9:return[4,this.initialStockCheck()];case 10:e.sent(),e.label=11;case 11:return[3,14];case 12:return[4,this.getSuccessTransaction()];case 13:e.sent(),this.successTransaction&&(r=this.successTransaction.paymentGatewayId,this.checkout.selectedPaymentGateway=this.paymentGateways.find((function(t){return t.id===r}))),e.label=14;case 14:return this.isCheckoutLoaded=!0,j.checkoutStep(this.checkout,this.step),[2]}}))}))},this.getSuccessTransaction=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,k.listOrderTransactions({orderId:{eq:this.checkout.id}})];case 1:return t=e.sent(),this.successTransaction=t.isSuccess&&(null===(i=t.data)||void 0===i?void 0:i.length)?t.data[t.data.length-1]:void 0,[2]}}))}))},this.saveCart=function(){return t(Y,void 0,void 0,(function(){var t,i,s,n;return e(this,(function(e){switch(e.label){case 0:return t=new O(this.checkout),"in-store"!==this.deliveryMethod?[3,2]:[4,this.inStockDeliveryInputData(t)];case 1:t=e.sent(),e.label=2;case 2:return this.step!==D.INFO&&this.step!==D.SHIPPING||this.isDigitalOnly||(t.billingAddress=null),this.isDigitalOnly&&(t.shippingAddress=null),[4,C.saveCart({input:t})];case 3:if((null==(i=e.sent())?void 0:i.graphQLErrors)&&i.graphQLErrors.length)throw s=i.graphQLErrors[0],"CUSTOMER_LOGIN_REQUIRED"===(null===(n=s.extensions)||void 0===n?void 0:n.code)?{type:T.CUSTOMER_LOGIN_REQUIRED_ERROR}:{type:T.API_ERROR,data:i.firstErrorMessage};return[2,i.data]}}))}))},this.inStockDeliveryInputData=function(i){return t(Y,void 0,void 0,(function(){var t,s,n=this;return e(this,(function(e){return t=i,(s=this.stockLocations.find((function(t){return t.id===n.checkout.stockLocationId})))&&t.shippingAddress&&s.address&&(t.shippingAddress.country=s.address.country,t.shippingAddress.city=s.address.city,t.shippingAddress.state=s.address.state,t.shippingAddress.district=s.address.district,t.shippingAddress.postalCode=s.address.postalCode,t.shippingAddress.addressLine1=s.address.address||"",t.shippingAddress.addressLine2=null),[2,t]}))}))},this.checkStocks=function(){return t(Y,void 0,void 0,(function(){var t,i,s,n,r,o,a,c,d,u,l,h;return e(this,(function(e){switch(e.label){case 0:return t=this.checkout.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,b.checkStocks({lines:t.map((function(t){return new R(t)})),stockLocationIdList:(null===(u=E.getStockLocationIds())||void 0===u?void 0:u.length)?E.getStockLocationIds():null})];case 1:if(!(i=e.sent()).isSuccess)throw{type:T.API_ERROR,data:i.firstErrorMessage};if(null==(s=null===(h=null===(l=i.data)||void 0===l?void 0:l.lines)||void 0===h?void 0:h.filter((function(t){return!t.isAvailable})))?void 0:s.length){for(n=[],r=function(t){var e=o.checkout.items.find((function(e){return e.variant.id===t.variantId}));e&&n.push({item:e,stockCount:t.stockCount})},o=this,a=0,c=s;a<c.length;a++)d=c[a],r(d);throw{type:T.STOCK_ERROR,data:n}}return[2]}}))}))},this.setIsKlarnaPaymentCompleted=function(i){return t(Y,void 0,void 0,(function(){return e(this,(function(t){return this.isKlarnaPaymentCompleted=i,[2]}))}))},this.removeUnavailableItems=function(i){return t(Y,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:t=0,s=i,e.label=1;case 1:return t<s.length?(n=s[t],[4,N.getInstance().cartStore.changeItemQuantity(n.item,n.stockCount)]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},this.getShippingCountries=function(){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,b.getAvailableShippingCountries({salesChannelId:E.getSalesChannelId()})];case 1:return t=e.sent(),this.shippingCountryIds=t.data,[2]}}))}))},this.getStockLocations=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return E.getPickupStockLocationIds()?[4,b.listStockLocation({id:{in:E.getPickupStockLocationIds()}})]:[3,2];case 1:if(!(t=e.sent()).isSuccess||!(null===(i=t.data)||void 0===i?void 0:i.length))return this.error={type:T.API_ERROR,data:t.firstErrorMessage},[2];this.stockLocations=t.data,e.label=2;case 2:return[2]}}))}))},this.getAvailableStockLocations=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return E.getPickupStockLocationIds()?(t=this.checkout.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,b.getAvailableStockLocations({lines:t.map((function(t){return new R(t)})),stockLocationIdList:E.getPickupStockLocationIds()})]):[3,2];case 1:if(!(i=e.sent()).isSuccess)return this.error={type:T.API_ERROR},[2];this.availableStockLocations=i.data||[],e.label=2;case 2:return[2]}}))}))},this.checkShippingCountries=function(){var t;(null===(t=Y.shippingCountryIds)||void 0===t?void 0:t.length)||(Y.error={type:T.NO_SHIPPING_ERROR})},this.onDeliveryMethodChange=function(t){"address"===t&&(Y.checkout.stockLocationId=null),Y.deliveryMethod=t,Y.isErrorsVisible=!1},this.initialStockCheck=function(){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.checkStocks()];case 1:return e.sent(),[3,3];case 2:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:T.UNKNOWN}),[3,3];case 3:return[2]}}))}))},this.listPaymentGateways=function(){return t(Y,void 0,void 0,(function(){var t,i,s,n,o,a,c,d,u,l,h=this;return e(this,(function(e){switch(e.label){case 0:return t="local"===process.env.NEXT_PUBLIC_ENV,i=E.getPaymentGateways().map((function(t){return t.id})),[4,b.listPaymentGateway({id:t?void 0:{in:i},locale:E.getCurrentLocale(),transactionAmount:this.checkout.totalFinalPrice})];case 1:return(s=e.sent()).isSuccess&&(null===(u=s.data)||void 0===u?void 0:u.length)?(n=s.data,this.step===D.PAYMENT&&(n=n.filter((function(t){var e;return!(null===(e=t.supportedCurrencies)||void 0===e?void 0:e.length)||t.supportedCurrencies.includes(h.checkout.currencyCode)})),(o=null===(l=this.checkout.shippingAddress)||void 0===l?void 0:l.country)&&o.iso2&&(n=n.filter((function(t){var e;return!(null===(e=t.availableCountries)||void 0===e?void 0:e.length)||t.availableCountries.includes(o.iso2||"")})))),a=[],r(E.getPaymentGateways(),"order").forEach((function(t){var e=null==n?void 0:n.find((function(e){return e.id===t.id}));e&&a.push(e)})),this.paymentGateways=t?n:a,this.checkout.selectedPaymentGateway||this.setPaymentGateway(0),this.step===D.PAYMENT&&(c=n.find((function(t){return!!t.masterPassClientId})))&&(this.checkout.masterPassPaymentGateway=c,(d=document.createElement("script")).id=A,d.src=P,d.onload=function(){h.mpVM.checkMasterPass({checkout:h.checkout,store:N.getInstance()})},document.head.appendChild(d)),[2]):(this.error={type:T.API_ERROR,data:s.firstErrorMessage},[2])}}))}))},this.retrieveInstallmentInfo=function(i){return t(Y,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:return[4,b.retrieveInstallmentInfo(i)];case 1:return t=e.sent(),s=t.data,null===(n=null==s?void 0:s.installmentPrices)||void 0===n||n.sort((function(t,e){return(t.installmentCount||-1)>(e.installmentCount||-1)?1:-1})),this.installmentInfo=s,[2]}}))}))},this.createCustomer=function(){var t;Y.store.customerStore.customer?(null===(t=Y.customerAddresses)||void 0===t||t.forEach((function(t){return t.checkoutSettings=Y.checkoutSettings})),Y.checkout.customer=new v(Y.store.customerStore.customer)):Y.checkout.customer=new v(Y.checkout.customer||{})},this.setCheckoutShippingAddressSettings=function(){Y.checkout.shippingAddress&&(Y.checkout.shippingAddress.checkoutSettings=Y.checkoutSettings,Y.checkout.shippingAddress.countrySettings=Y.countrySettings)},this.setCheckoutBillingAddressSettings=function(){Y.checkout.billingAddress&&(Y.checkout.billingAddress.checkoutSettings=Y.checkoutSettings,Y.checkout.billingAddress.countrySettings=Y.countrySettings)},this.createShippingAddress=function(){if(!Y.isDigitalOnly)if(Y.isInStoreDelivery)Y.setCheckoutShippingAddressSettings();else if(Y.checkout.shippingAddress){if(Y.store.customerStore.customer){var t=null==(e=Y.customerAddresses)?void 0:e.find((function(t){var e;return t.id===(null===(e=Y.checkout.shippingAddress)||void 0===e?void 0:e.id)}));if(t)return Y.onSelectedShippingAddressIdChange(t.id||"-1"),void Y.setCheckoutShippingAddressSettings()}Y.checkout.shippingAddress=new x(n(Y.checkout.shippingAddress)||{}),Y.setCheckoutShippingAddressSettings()}else if(Y.store.customerStore.customer){var e=Y.customerAddresses;Y.onSelectedShippingAddressIdChange((null==e?void 0:e.length)?e[0].id:"-1")}else Y.onSelectedShippingAddressIdChange("-1")},this.createBillingAddress=function(){if("undefined"!=typeof localStorage)if(Y.useDifferentAddress=!!localStorage.getItem("sAddr"),Y.checkout.billingAddress){if(Y.store.customerStore.customer){var t=null==(e=Y.customerAddresses)?void 0:e.find((function(t){var e;return t.id===(null===(e=Y.checkout.billingAddress)||void 0===e?void 0:e.id)}));if(t)return Y.onSelectedBillingAddressIdChange(t.id||"-1"),void Y.setCheckoutBillingAddressSettings()}Y.checkout.billingAddress=new x(n(Y.checkout.billingAddress)||{}),Y.setCheckoutBillingAddressSettings()}else if(Y.store.customerStore.customer){var e=Y.customerAddresses;Y.onSelectedBillingAddressIdChange((null==e?void 0:e.length)?e[0].id:"-1"),(null==e?void 0:e.length)||Y.useDifferentAddress||!Y.checkout.shippingAddress||Y.isInStoreDelivery||(Y.checkout.billingAddress=new x(n(Y.checkout.shippingAddress)),Y.setCheckoutBillingAddressSettings())}else Y.onSelectedBillingAddressIdChange("-1"),Y.useDifferentAddress||!Y.checkout.shippingAddress||Y.isInStoreDelivery||(Y.checkout.billingAddress=new x(n(Y.checkout.shippingAddress)),Y.setCheckoutBillingAddressSettings())},this.onShippingMethodChange=function(i){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isChangingShippingMethod?[2]:(this.isChangingShippingMethod=!0,this.checkout.shippingSettingsId=i.shippingSettingsId,this.checkout.shippingZoneRateId=i.shippingZoneRateId,[4,this.saveCart()]);case 1:return(t=e.sent())&&(this.checkout=new h(t,this.countrySettings)),this.checkout.shippingAddress&&(this.checkout.shippingAddress.checkoutSettings=this.checkoutSettings),this.isChangingShippingMethod=!1,[2]}}))}))},this.onStockLocationChange=function(i){return t(Y,void 0,void 0,(function(){return e(this,(function(t){return this.checkout.stockLocationId=i.id,[2]}))}))},this.onCouponCodeApply=function(){return t(Y,void 0,void 0,(function(){var t,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,6]),[4,C.saveCartCouponCode({cartId:this.checkout.id,couponCode:this.checkout.couponCode||null})];case 1:return(t=e.sent()).isSuccess&&t.data?(s=t.data,n=null===(a=null===(o=this.cardData)||void 0===o?void 0:o.cardNumber)||void 0===a?void 0:a.split(" ").join(""),this.couponError=null,this.step===D.PAYMENT&&(null==n?void 0:n.length)&&n.length>=6&&this.retrieveInstallmentInfo({input:{binNumber:n.slice(0,6),paymentGatewayId:this.checkout.selectedPaymentGateway.id,price:s.totalFinalPrice}}),this.mpVM.selectedCard&&this.mpVM.selectedCard.Value1?[4,this.retrieveInstallmentInfo({input:{binNumber:this.mpVM.selectedCard.Value1.slice(0,6),paymentGatewayId:this.mpVM.selectedCard.paymentGatewayId,price:s.totalFinalPrice}})]:[3,3]):[3,4];case 2:e.sent(),e.label=3;case 3:s&&(r=this.checkout,this.checkout=new h(i(i({},s),{shippingAddress:r.shippingAddress,billingAddress:r.billingAddress,customer:r.customer,selectedPaymentGateway:r.selectedPaymentGateway}),this.countrySettings)),e.label=4;case 4:return t.isSuccess||(this.couponError=t.errorCodes[0]),[3,6];case 5:return e.sent(),[3,6];case 6:return[2]}}))}))},this.onSelectedShippingAddressIdChange=function(t){var e;if(Y.selectedShippingAddressId=t,"-1"===t)Y.checkout.shippingAddress=new x,Y.checkout.shippingAddress.countrySettings=Y.countrySettings;else{var i=null===(e=Y.customerAddresses)||void 0===e?void 0:e.find((function(e){return e.id===t}));i&&(Y.checkout.shippingAddress=new x(i),Y.checkout.shippingAddress.countrySettings=Y.countrySettings)}Y.checkout.shippingAddress&&(Y.checkout.shippingAddress.checkoutSettings=Y.checkoutSettings)},this.onSelectedBillingAddressIdChange=function(t){var e;if(Y.selectedBillingAddressId=t,"-1"===t)Y.checkout.billingAddress=new x,Y.checkout.billingAddress.countrySettings=Y.countrySettings;else{var i=null===(e=Y.customerAddresses)||void 0===e?void 0:e.find((function(e){return e.id===t}));i&&(Y.checkout.billingAddress=new x(i),Y.checkout.billingAddress.countrySettings=Y.countrySettings)}Y.checkout.billingAddress&&(Y.checkout.billingAddress.checkoutSettings=Y.checkoutSettings)},this.onTermsAndConditionsCheckedChange=function(t){Y.isTermsAndConditionsChecked=t},this.onCardNumberChange=function(t){if(Y.cardData&&(!(t.length>Y.cardData.cardNumber.length)||V(t))){var e=(Y.cardData.cardNumber||"").split(" ").join(""),i=t.split(" ").join("");i.length>16||(e.length<6&&i.length>=6&&!Y.installmentInfo?Y.retrieveInstallmentInfo({input:{binNumber:i.slice(0,6),paymentGatewayId:Y.checkout.selectedPaymentGateway.id,price:Y.checkout.totalFinalPrice}}):i.length<6&&e.length>i.length&&(Y.cardData.installmentCount=1,Y.installmentInfo=void 0),Y.cardData.cardNumber=_(i,4).join(" "))}},this.onCardHolderNameChange=function(t){Y.cardData&&(Y.cardData.cardHolderName=t)},this.onExpirationDateChange=function(t){var e;if(Y.cardData&&(!(t.length>Y.cardData.expirationDate.length)||V(t))){if(0===(null===(e=Y.cardData.expirationDate)||void 0===e?void 0:e.length)){var i=t.replace(".","/").split("/");if(2===i.length){var s=i[0].trim(),n=i[1].trim();if(4===s.length&&2===n.length){var r=parseInt(s.slice(2)),o=parseInt(n);if(!isNaN(r)&&!isNaN(o))return void(Y.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}if(2===s.length&&4===n.length){o=parseInt(s),r=parseInt(n.slice(2));if(!isNaN(r)&&!isNaN(o))return void(Y.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}if(2===s.length&&2===n.length){var a=parseInt(s),c=parseInt(n);o=a<=12?a:c,r=c>12?c:a;if(!isNaN(r)&&!isNaN(o))return void(Y.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}}}var d=t.split(" / ").join("");d.length>4||(Y.cardData.expirationDate=_(d,2).join(" / "))}},this.onCvcChange=function(t){Y.cardData&&(t.length>Y.cardData.cvv.length&&!V(t)||t.length>4||(Y.cardData.cvv=t))},this.saveAddress=function(s){return t(Y,void 0,void 0,(function(){var t,r,o,a,c,d,u,l,h,p,f,g,v=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.shouldSaveAddress&&this.store.customerStore.customer?(t="shipping"===s?this.checkout.shippingAddress:this.checkout.billingAddress,(null===(h=this.customerAddresses)||void 0===h?void 0:h.find((function(e){return e.id===(null==t?void 0:t.id)})))?[2]:(r=null===(p=this.customerAddresses)||void 0===p?void 0:p.map((function(t){return t.id})),o=new m(i(i({},t),{title:this.addressTitle||this.t("checkout-page:newAddress")})),(a=n(this.store.customerStore.customer)).addresses||(a.addresses=[]),a.addresses.push(o),[4,this.store.customerStore.saveCustomer(a)])):[3,2];case 1:e.sent(),null===(f=this.customerAddresses)||void 0===f||f.forEach((function(t){return t.checkoutSettings=v.checkoutSettings})),c=null===(g=this.customerAddresses)||void 0===g?void 0:g.map((function(t){return t.id})),d=null==c?void 0:c.filter((function(t){return!(null==r?void 0:r.includes(t))})),u=(null==d?void 0:d.length)?d[0]:void 0,"shipping"===s?(this.checkout.shippingAddress.id=u||"",this.selectedShippingAddressId=u||"-1"):(this.checkout.billingAddress.id=u||"",this.selectedBillingAddressId=u||"-1"),e.label=2;case 2:return[3,4];case 3:return l=e.sent(),console.error(l),[3,4];case 4:return[2]}}))}))},this.onGoToCartClick=function(){Y.router.push("/cart")},this.onBackToShoppingClick=function(){Y.router.push("/")},this.onGoToLoginClick=function(){Y.router.push("/account/login")},this.onProceedToShippingClick=function(){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if("address"===this.deliveryMethod){if(!this.canProceedToShipping)return this.isErrorsVisible=!0,[2]}else if(!this.canProceedToInStoreDelivery)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,6,,7]),this.isStepLoading=!0,"address"!==this.deliveryMethod?[3,3]:[4,this.saveAddress("shipping")];case 2:e.sent(),e.label=3;case 3:return[4,this.checkStocks()];case 4:return e.sent(),[4,this.saveCart()];case 5:return e.sent(),"address"===this.deliveryMethod?this.changeStep(D.SHIPPING):this.changeStep(D.PAYMENT),[3,7];case 6:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:T.UNKNOWN}),this.isStepLoading=!1,[3,7];case 7:return[2]}}))}))},this.onProceedToDigitalOnlyPaymentClick=function(){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.changeStep(D.PAYMENT),[3,5];case 4:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:T.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onProceedToPaymentClick=function(){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.error=void 0,this.changeStep(D.PAYMENT),[3,5];case 4:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:T.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onCompletePaymentClick=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return this.canPerformPayment?(this.useDifferentAddress||(this.checkout.billingAddress=this.checkout.shippingAddress),this.isKlarna?[4,this.saveCart()]:[3,2]):(this.isErrorsVisible=!0,[2]);case 1:return e.sent(),this.setIsKlarnaPaymentCompleted(!0),[2];case 2:return e.trys.push([2,8,,9]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 3:return e.sent(),"address"!==this.deliveryMethod?[3,5]:[4,this.saveAddress("billing")];case 4:e.sent(),e.label=5;case 5:return[4,this.saveCart()];case 6:return e.sent(),this.isCustomFlowStripe?((t=document.querySelector("#stripe-form-btn"))&&t.click(),[2]):this.isAdyen?(this.adyenDropinElement.submit(),this.adyenDropinElement.isValid||(this.isStepLoading=!1),[2]):[4,this.createSaleTransaction()];case 7:return e.sent(),[3,9];case 8:return void 0!==typeof(i=e.sent()).type?this.error=i:this.error={type:T.UNKNOWN},this.isStepLoading=!1,[3,9];case 9:return[2]}}))}))},this.onCompleteDigitalOnlyPaymentClick=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return!this.canProceedToPayment||this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked?(this.isErrorsVisible=!0,[2]):this.isKlarna?[4,this.saveCart()]:[3,2];case 1:return e.sent(),this.setIsKlarnaPaymentCompleted(!0),[2];case 2:return e.trys.push([2,6,,7]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 3:return e.sent(),[4,this.saveCart()];case 4:return e.sent(),this.isCustomFlowStripe?((t=document.querySelector("#stripe-form-btn"))&&t.click(),[2]):this.isAdyen?(this.adyenDropinElement.submit(),this.adyenDropinElement.isValid||(this.isStepLoading=!1),[2]):[4,this.createSaleTransaction()];case 5:return e.sent(),[3,7];case 6:return(i=e.sent()).type?this.error=i:this.error={type:T.UNKNOWN},this.isStepLoading=!1,[3,7];case 7:return[2]}}))}))},this.createSaleTransaction=function(){return t(Y,void 0,void 0,(function(){var t,i,s,n,r,c,u,l,h,p,m,f,g,v,y;return e(this,(function(e){switch(e.label){case 0:return(i=this.mpVM.selectedCard)&&(null===(l=this.mpVM.selectedCard)||void 0===l?void 0:l.Name)?((n=this.mpVM.phoneNumber({store:this.store,checkout:this.checkout}))&&(t=n),void 0===(null===(h=this.cardData)||void 0===h?void 0:h.installmentCount)?[2]:[4,b.createSaleTransactionWithCart({input:{cartId:this.checkout.id,masterPassDetail:{phoneNumber:t,savedCardName:null===(p=this.mpVM.selectedCard)||void 0===p?void 0:p.Name},paymentGatewayId:null===(m=this.mpVM.selectedCard)||void 0===m?void 0:m.paymentGatewayId,paymentMethodDetail:{cardNumber:this.mpVM.selectedCard.Value1,cardHolderName:this.mpVM.selectedCard.Name,cvv:this.mpVM.selectedCard.Value2,expiredMonth:11,expiredYear:11,installmentCount:this.cardData.installmentCount,threeDSecure:!!(null===(f=this.cardData)||void 0===f?void 0:f.threeDSecure)}}})]):[3,2];case 1:return s=e.sent(),[3,4];case 2:return this.checkout.selectedPaymentGateway?[4,b.createSaleTransactionWithCart({input:{cartId:this.checkout.id,masterPassDetail:i&&t?{phoneNumber:t,savedCardName:null===(g=this.mpVM.selectedCard)||void 0===g?void 0:g.Name}:void 0,paymentGatewayId:this.checkout.selectedPaymentGateway.id,paymentMethodDetail:i?void 0:this.checkout.selectedPaymentGateway.paymentMethodType===o.CREDIT_CARD&&this.checkout.selectedPaymentGateway.type===a.INTERNAL&&this.cardData?this.cardData.toInput():void 0}})]:[2];case 3:s=e.sent(),e.label=4;case 4:return r=null===(v=null==s?void 0:s.data)||void 0===v?void 0:v.transactionStatus,c=r&&[d.SUCCESS,d.AUTHORIZED].includes(r),u=r===d.PENDING,c?[4,this.getSuccessTransaction()]:[3,7];case 5:return e.sent(),[4,this.onCheckoutTransactionSuccess()];case 6:return e.sent(),[3,8];case 7:if(!u||!(null===(y=null==s?void 0:s.data)||void 0===y?void 0:y.returnSlug))throw{data:s.firstErrorMessage,type:T.UNKNOWN};window.location.href=process.env.NEXT_PUBLIC_BASE_URL+s.data.returnSlug,e.label=8;case 8:return[2]}}))}))},this.onCheckoutTransactionSuccess=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return localStorage.removeItem("sAddr"),(null===(t=this.checkout.customer)||void 0===t?void 0:t.notificationsAccepted)?[4,this.store.customerStore.createEmailSubscription((null===(i=this.checkout.customer)||void 0===i?void 0:i.email)||"")]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.changeStep(D.SUCCESS),[2]}}))}))},this.onBackToInfoClick=function(){Y.changeStep(D.INFO)},this.onBackToShippingClick=function(){Y.changeStep(D.SHIPPING)},this.setCustomerConsentGranted=function(t){Y.checkout.customer&&(Y.checkout.customer.notificationsAccepted=t)},this.setUseDifferentAddress=function(t){Y.useDifferentAddress=t,Y.useDifferentAddress?(localStorage.setItem("sAddr","1"),Y.checkout.billingAddress=Y.checkout.billingAddress||new x,Y.checkout.billingAddress.countrySettings=Y.countrySettings):(localStorage.removeItem("sAddr"),Y.checkout.billingAddress=Y.checkout.shippingAddress)},this.setShouldSaveAddress=function(t){Y.shouldSaveAddress=t},this.setAddressTitle=function(t){Y.addressTitle=t},this.setPaymentGateway=function(i){return t(Y,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:return this.paymentGateways.length?"STRIPE"!==(t=this.paymentGateways[i]).code||!(null===(n=t.settings)||void 0===n?void 0:n.find((function(t){return"allow_custom_flow"===t.label&&"1"===t.value})))||this.stripeResponse?[3,2]:[4,b.createStripePaymentIntent({input:{cartId:this.checkout.id,paymentGatewayId:t.id||""}})]:[2];case 1:(s=e.sent()).isSuccess&&s.data&&(this.stripeResponse=s.data),e.label=2;case 2:return"KLARNA"!==t.code||this.klarnaResponse?[3,4]:[4,b.createKlarnaClientToken({input:{cartId:this.checkout.id,paymentGatewayId:t.id||""}})];case 3:(s=e.sent()).isSuccess&&s.data&&(this.klarnaResponse=s.data),e.label=4;case 4:return"ADYEN"!==t.code||this.adyenResponse?[3,6]:[4,b.createAdyenClientToken({input:{cartId:this.checkout.id,paymentGatewayId:t.id||""}})];case 5:(s=e.sent()).isSuccess&&s.data&&(this.adyenResponse=s.data),e.label=6;case 6:return this.checkout.selectedPaymentGateway=t,this.step!==D.SUCCESS&&(t.paymentMethodType===o.CREDIT_CARD&&t.type===a.INTERNAL&&(this.cardData=new S,t.masterPassClientId&&(console.log("called 1511 ikas log"),this.mpVM.checkMasterPass({checkout:this.checkout,store:this.store}))),this.installmentInfo=void 0),[2]}}))}))},this.setInstallmentCount=function(t){Y.cardData&&(Y.cardData.installmentCount=t)},this.changeStep=function(i){return t(Y,void 0,void 0,(function(){return e(this,(function(t){return M||window.location.replace("".concat(window.location.pathname,"?id=").concat(this.checkout.id,"&step=").concat(i)),[2]}))}))},this.logout=function(){return t(Y,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:this.checkout.customer=null,this.store.customerStore.logout(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.saveCart()];case 2:case 3:return t.sent(),[3,4];case 4:return this.createCustomer(),[2]}}))}))},this.setContactModalVisible=function(t){Y.isContactModalVisible=t},this.getCampaignOfferProducts=function(i){return t(Y,void 0,void 0,(function(){var t,s,n,r;return e(this,(function(o){switch(o.label){case 0:if(!this.checkout.campaignOffers||!this.checkout.campaignOffers.length)return[3,4];if(t=this.checkout.campaignOffers.filter((function(t){var e;return t.status===u.WAITING_FOR_ACTION&&(null===(e=t.campaignOffer)||void 0===e?void 0:e.targetPageTypes.some((function(t){return t===i})))})),!t.length)return[3,4];s=function(i){var s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:return(s=t[i]).campaignOffer&&(n=s.campaignOffer.offers.find((function(t){return t.id===s.campaignOfferProductId})))?[4,w.searchProducts({input:{productIdList:[n.productId]}})]:[3,2];case 1:if((r=e.sent()).isSuccess&&r.data&&r.data.data&&r.data.data.length&&(o=r.data.data[0],a=[],n.excludedVariantIdList&&n.excludedVariantIdList.length?o.variants.map((function(t){var e;t.hasStock&&!(null===(e=n.excludedVariantIdList)||void 0===e?void 0:e.some((function(e){return e===t.id})))&&a.push(t)})):a.push.apply(a,o.variants.filter((function(t){return t.hasStock}))),a.length))return[2,{value:{product:new y(o),variants:a,campaignOffer:s,offer:n}}];e.label=2;case 2:return[2]}}))},n=0,o.label=1;case 1:return n<t.length?[5,s(n)]:[3,4];case 2:if("object"==typeof(r=o.sent()))return[2,r.value];o.label=3;case 3:return n++,[3,1];case 4:return[2,void 0]}}))}))},this.getCampaignOffer=function(){return t(Y,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return t=this,[4,this.getCampaignOfferProducts(l.CHECKOUT)];case 1:return t.checkoutCampaignOffer=e.sent(),i=this,[4,this.getCampaignOfferProducts(l.POST_CHECKOUT)];case 2:return i.postCheckoutCampaignOffer=e.sent(),[2]}}))}))},this.updateCartCampaignOffer=function(i){return t(Y,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isCheckoutLoaded=!1,[4,C.updateCartCampaignOffer({input:i})];case 1:return(t=e.sent())&&t.isSuccess&&t.data&&(this.checkout=new h(t.data,this.countrySettings),i.accepted&&this.step===D.SUCCESS?this.changeStep(D.INFO):this.changeStep(this.step)),[2]}}))}))},this.registerCustomer=function(i){return t(Y,void 0,void 0,(function(){var t,s,n,r;return e(this,(function(e){switch(e.label){case 0:return this.checkout.customer?(t=this.checkout.customer,s=t.firstName,n=t.lastName,r=t.email,s&&n&&r?[4,k.register({orderId:this.checkout.id,firstName:s,lastName:n,email:r,password:i})]:[3,2]):[3,2];case 1:return[2,e.sent()];case 2:return[2]}}))}))},this.checkout=c,this.checkoutSettings=f,this.router=g,this.returnPolicy=G,this.privacyPolicy=L,this.termsOfService=U,this.imprint=K,this.shippingPolicy=F,this.t=B,this.customizationProps=H,this.mpVM=new I,this.isTermsAndConditionsChecked=this.checkoutSettings.isTermsAndConditionsDefaultChecked||!1,this.countrySettings=new p({checkoutSettings:this.checkoutSettings}),this.init(),s(this)}return Object.defineProperty(G.prototype,"merchantSettings",{get:function(){return new g(E.getMerchantSettings())},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"selectedPaymentGatewayIndex",{get:function(){var t=this;return this.paymentGateways.findIndex((function(e){var i;return e.id===(null===(i=t.checkout.selectedPaymentGateway)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"selectedInstallmentIndex",{get:function(){var t,e,i=this;return(null===(e=null===(t=this.installmentInfo)||void 0===t?void 0:t.installmentPrices)||void 0===e?void 0:e.findIndex((function(t){var e;return t.installmentCount===(null===(e=i.cardData)||void 0===e?void 0:e.installmentCount)})))||0},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"checkoutUrl",{get:function(){return"/checkout?id=".concat(this.checkout.id,"&step=info")},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"customerAddressOptions",{get:function(){var t,e,i={label:this.t("checkout-page:newAddress"),value:"-1"},s=(null===(e=null===(t=N.getInstance().customerStore.customer)||void 0===t?void 0:t.addresses)||void 0===e?void 0:e.map((function(t){return{label:t.title+" - "+t.addressText,value:t.id}})))||[];return[i].concat(s)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"installmentPrice",{get:function(){var t,e,i,s=this;if(this.installmentInfo&&(null===(t=this.cardData)||void 0===t?void 0:t.installmentCount))return null===(i=null===(e=this.installmentInfo.installmentPrices)||void 0===e?void 0:e.find((function(t){var e;return t.installmentCount===(null===(e=s.cardData)||void 0===e?void 0:e.installmentCount)})))||void 0===i?void 0:i.totalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"installmentExtraPrice",{get:function(){if(this.installmentPrice&&this.checkout.totalFinalPrice)return this.installmentPrice-this.checkout.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"finalPrice",{get:function(){return this.step===D.SUCCESS?this.checkout.totalFinalPrice:this.installmentPrice||this.checkout.$totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"hasStockError",{get:function(){var t;return(null===(t=this.error)||void 0===t?void 0:t.type)===T.STOCK_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isPaymentGatewayHasMasterPass",{get:function(){return-1!==this.selectedPaymentGatewayIndex&&(!!this.paymentGateways.length&&!!this.paymentGateways[this.selectedPaymentGatewayIndex].masterPassClientId)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"hasQuickRegistration",{get:function(){return this.checkoutSettings.isQuickRegistrationEnabled&&this.checkout.customer&&this.checkout.customer.isGuestCheckout},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"canProceedToShipping",{get:function(){var t,e,i;return(this.isDigitalOnly?null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValidAddress:null===(e=this.checkout.shippingAddress)||void 0===e?void 0:e.isValidAddress)&&this.checkout.hasValidCustomerEmail&&(null===(i=this.error)||void 0===i?void 0:i.type)!==T.NO_SHIPPING_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"canProceedToInStoreDelivery",{get:function(){var t,e,i;return!!((null===(t=this.checkout.shippingAddress)||void 0===t?void 0:t.firstName)&&(null===(e=this.checkout.shippingAddress)||void 0===e?void 0:e.lastName)&&(null===(i=this.checkout.customer)||void 0===i?void 0:i.email)&&this.checkout.stockLocationId)},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"canProceedToPayment",{get:function(){return this.canProceedToShipping},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isInStoreDelivery",{get:function(){return!!this.checkout.stockLocationId},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"klarnaPaymentGateway",{get:function(){var t=this.paymentGateways.findIndex((function(t){return"KLARNA"===t.code}));if(-1!==t)return this.paymentGateways[t]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"klarnaPaymentGatewayIndex",{get:function(){return this.paymentGateways.findIndex((function(t){return"KLARNA"===t.code}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"adyenPaymentGateway",{get:function(){var t=this.paymentGateways.findIndex((function(t){return"ADYEN"===t.code}));if(-1!==t)return this.paymentGateways[t]},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"adyenPaymentGatewayIndex",{get:function(){return this.paymentGateways.findIndex((function(t){return"ADYEN"===t.code}))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isCustomFlowStripe",{get:function(){var t,e=this.checkout.selectedPaymentGateway;return e&&"STRIPE"===e.code&&(null===(t=e.settings)||void 0===t?void 0:t.find((function(t){return"allow_custom_flow"===t.label&&"1"===t.value})))},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isKlarna",{get:function(){var t=this.checkout.selectedPaymentGateway;return t&&"KLARNA"===t.code},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isAdyen",{get:function(){var t=this.checkout.selectedPaymentGateway;return t&&"ADYEN"===t.code},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"store",{get:function(){return N.getInstance()},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"canPerformPayment",{get:function(){var t,e;if(this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked)return!1;var i=this.checkout.selectedPaymentGateway,s=!!("in-store"===this.deliveryMethod)||!!this.canProceedToShipping,n=!!(null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValidAddress),r=!!this.mpVM.selectedCard||((null==i?void 0:i.paymentMethodType)===o.CREDIT_CARD&&i.type===a.INTERNAL?!!this.isCustomFlowStripe||(!!this.isKlarna||(null===(e=this.cardData)||void 0===e?void 0:e.isValid)):!!i);return s&&n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isDigitalOnly",{get:function(){return this.checkout.shippingMethod===c.DIGITAL_DELIVERY},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"customerAddresses",{get:function(){var t,e,s=this;return null===(e=null===(t=this.store.customerStore.customer)||void 0===t?void 0:t.addresses)||void 0===e?void 0:e.map((function(t){return new f(i({countrySettings:s.countrySettings},t))}))},enumerable:!1,configurable:!0}),G.prototype.setAdyenDropinElement=function(t){this.adyenDropinElement=t},G}();function _(t,e){return t.match(new RegExp(".{1,"+e+"}","g"))||[]}function V(t){return t&&G.test(t.charAt(t.length-1))}!function(t){t.INFO="info",t.SHIPPING="shipping",t.PAYMENT="payment",t.SUCCESS="success"}(D||(D={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.API_ERROR=1]="API_ERROR",t[t.STOCK_ERROR=2]="STOCK_ERROR",t[t.PAYMENT_ERROR=3]="PAYMENT_ERROR",t[t.NO_SHIPPING_ERROR=4]="NO_SHIPPING_ERROR",t[t.CUSTOMER_LOGIN_REQUIRED_ERROR=5]="CUSTOMER_LOGIN_REQUIRED_ERROR"}(T||(T={}));export{D as CheckoutStep,T as ErrorType,L as default};
|