@ikas/storefront 4.5.0-beta.5 → 4.5.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_virtual/axios.js +1 -0
- package/build/_virtual/index.js +1 -0
- package/build/analytics/analytics.d.ts +37 -0
- package/build/analytics/analytics.js +1 -0
- package/build/analytics/events.d.ts +37 -0
- package/build/analytics/events.js +1 -0
- package/build/analytics/facebookPixel.d.ts +15 -0
- package/build/analytics/facebookPixel.js +1 -0
- package/build/analytics/googleAnalytics.d.ts +13 -0
- package/build/analytics/googleAnalytics.js +1 -0
- package/build/analytics/googleTagManager.d.ts +209 -0
- package/build/analytics/googleTagManager.js +1 -0
- package/build/analytics/googleUniversal.d.ts +9 -0
- package/build/analytics/googleUniversal.js +1 -0
- package/build/analytics/head/index.d.ts +3 -0
- package/build/analytics/head/index.js +1 -0
- package/build/analytics/ikas.d.ts +134 -0
- package/build/analytics/ikas.js +1 -0
- package/build/analytics/index.d.ts +2 -0
- package/build/analytics/tiktokPixel.d.ts +13 -0
- package/build/analytics/tiktokPixel.js +1 -0
- package/build/components/checkout/components/address-form/index.d.ts +3 -0
- package/build/components/checkout/components/address-form/index.js +1 -0
- package/build/components/checkout/components/address-form/model.d.ts +87 -0
- package/build/components/checkout/components/address-form/model.js +1 -0
- package/build/components/checkout/components/adyen/adyen.module.scss.js +1 -0
- package/build/components/checkout/components/adyen/index.d.ts +8 -0
- package/build/components/checkout/components/adyen/index.js +1 -0
- package/build/components/checkout/components/button/index.d.ts +13 -0
- package/build/components/checkout/components/button/index.js +1 -0
- package/build/components/checkout/components/button/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +11 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.d.ts +2 -0
- package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.js +1 -0
- package/build/components/checkout/components/cart-summary/index.d.ts +12 -0
- package/build/components/checkout/components/cart-summary/index.js +1 -0
- package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
- package/build/components/checkout/components/checkbox/check.d.ts +6 -0
- package/build/components/checkout/components/checkbox/check.js +1 -0
- package/build/components/checkout/components/checkbox/index.d.ts +10 -0
- package/build/components/checkout/components/checkbox/index.js +1 -0
- package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
- package/build/components/checkout/components/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
- package/build/components/checkout/components/credit-card-form/model.js +1 -0
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
- package/build/components/checkout/components/customer-addresses/index.d.ts +19 -0
- package/build/components/checkout/components/customer-addresses/index.js +1 -0
- package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
- package/build/components/checkout/components/customer-addresses/model.js +1 -0
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
- package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
- package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
- package/build/components/checkout/components/delivery-methods/index.js +1 -0
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
- package/build/components/checkout/components/error/index.d.ts +7 -0
- package/build/components/checkout/components/error/index.js +1 -0
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +3 -0
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
- package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/payment-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/stock-error/index.js +1 -0
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/unknown-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/unknown-error/index.js +1 -0
- package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
- package/build/components/checkout/components/expandable-section/index.js +1 -0
- package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
- package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
- package/build/components/checkout/components/form-item/caret-down.js +1 -0
- package/build/components/checkout/components/form-item/index.d.ts +3 -0
- package/build/components/checkout/components/form-item/index.js +1 -0
- package/build/components/checkout/components/form-item/model.d.ts +69 -0
- package/build/components/checkout/components/form-item/model.js +1 -0
- package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
- package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
- package/build/components/checkout/components/input-with-button/index.d.ts +12 -0
- package/build/components/checkout/components/input-with-button/index.js +1 -0
- package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/klarna/index.d.ts +7 -0
- package/build/components/checkout/components/klarna/index.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +8 -0
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -0
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/index.d.ts +8 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/index.js +1 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.d.ts +2 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.js +1 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.d.ts +2 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.js +1 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.d.ts +2 -0
- package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
- package/build/components/checkout/components/master-pass/modal/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.js +1 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +9 -0
- package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-success/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +2 -0
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +2 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.js +1 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.js +1 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
- package/build/components/checkout/components/modal/index.d.ts +8 -0
- package/build/components/checkout/components/modal/index.js +1 -0
- package/build/components/checkout/components/modal/style.module.scss.js +1 -0
- package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
- package/build/components/checkout/components/modal/useEscape.js +1 -0
- package/build/components/checkout/components/notification-box/index.d.ts +9 -0
- package/build/components/checkout/components/notification-box/index.js +1 -0
- package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/index.d.ts +8 -0
- package/build/components/checkout/components/offer-product/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
- package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
- package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
- package/build/components/checkout/components/offer-product/select/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +2 -0
- package/build/components/checkout/components/phone-number-input/compare-strings.js +1 -0
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +7 -0
- package/build/components/checkout/components/phone-number-input/get-countries.js +1 -0
- package/build/components/checkout/components/phone-number-input/index.d.ts +10 -0
- package/build/components/checkout/components/phone-number-input/index.js +1 -0
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +1 -0
- package/build/components/checkout/components/quick-registration/completed.d.ts +7 -0
- package/build/components/checkout/components/quick-registration/completed.js +1 -0
- package/build/components/checkout/components/quick-registration/index.d.ts +7 -0
- package/build/components/checkout/components/quick-registration/index.js +1 -0
- package/build/components/checkout/components/quick-registration/model.d.ts +19 -0
- package/build/components/checkout/components/quick-registration/model.js +1 -0
- package/build/components/checkout/components/quick-registration/style.module.scss.js +1 -0
- package/build/components/checkout/components/select-box/index.d.ts +13 -0
- package/build/components/checkout/components/select-box/index.js +1 -0
- package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
- package/build/components/checkout/components/step-container/index.d.ts +15 -0
- package/build/components/checkout/components/step-container/index.js +1 -0
- package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
- package/build/components/checkout/components/stripe/checkout-form.d.ts +8 -0
- package/build/components/checkout/components/stripe/checkout-form.js +1 -0
- package/build/components/checkout/components/stripe/index.d.ts +9 -0
- package/build/components/checkout/components/stripe/index.js +1 -0
- package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
- package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-down.js +1 -0
- package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.js +1 -0
- package/build/components/checkout/components/svg/discount.d.ts +6 -0
- package/build/components/checkout/components/svg/external.d.ts +6 -0
- package/build/components/checkout/components/svg/external.js +1 -0
- package/build/components/checkout/components/svg/gift.d.ts +7 -0
- package/build/components/checkout/components/svg/gift.js +1 -0
- package/build/components/checkout/components/svg/ikas.d.ts +6 -0
- package/build/components/checkout/components/svg/ikas.js +1 -0
- package/build/components/checkout/components/svg/lock.d.ts +6 -0
- package/build/components/checkout/components/svg/lock.js +1 -0
- package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.js +1 -0
- package/build/components/checkout/components/svg/tag.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.js +1 -0
- package/build/components/checkout/components/toggle/index.d.ts +10 -0
- package/build/components/checkout/components/toggle/index.js +1 -0
- package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
- package/build/components/checkout/components/tooltip/index.d.ts +8 -0
- package/build/components/checkout/components/tooltip/index.js +1 -0
- package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
- package/build/components/checkout/index.d.ts +34 -0
- package/build/components/checkout/index.js +1 -0
- package/build/components/checkout/model.d.ts +191 -0
- package/build/components/checkout/model.js +1 -0
- package/build/components/checkout/modelMasterPass.d.ts +204 -0
- package/build/components/checkout/modelMasterPass.js +1 -0
- package/build/components/checkout/steps/step-info/index.d.ts +7 -0
- package/build/components/checkout/steps/step-info/index.js +1 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
- package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
- package/build/components/checkout/steps/step-shipping/index.js +1 -0
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
- package/build/components/checkout/steps/step-success/index.d.ts +7 -0
- package/build/components/checkout/steps/step-success/index.js +1 -0
- package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
- package/build/components/checkout/style.module.scss.js +1 -0
- package/build/components/checkout/styles/common.module.scss.js +1 -0
- package/build/components/google-captcha/index.d.ts +9 -0
- package/build/components/google-captcha/index.js +1 -0
- package/build/components/image/index.d.ts +10 -0
- package/build/components/image/index.js +1 -0
- package/build/components/index.d.ts +6 -0
- package/build/components/link/index.d.ts +16 -0
- package/build/components/link/index.js +1 -0
- package/build/components/page/ThemeComponent.d.ts +21 -0
- package/build/components/page/ThemeComponent.js +1 -0
- package/build/components/page/head.d.ts +15 -0
- package/build/components/page/head.js +1 -0
- package/build/components/page/index.d.ts +23 -0
- package/build/components/page/index.js +1 -0
- package/build/components/page-editor/ThemeComponentEditor.d.ts +32 -0
- package/build/components/page-editor/ThemeComponentEditor.js +1 -0
- package/build/components/page-editor/error/index.d.ts +4 -0
- package/build/components/page-editor/error/index.js +1 -0
- package/build/components/page-editor/index.d.ts +4 -0
- package/build/components/page-editor/index.js +1 -0
- package/build/components/page-editor/loader/index.d.ts +6 -0
- package/build/components/page-editor/loader/index.js +1 -0
- package/build/components/page-editor/loader/style.module.scss.js +1 -0
- package/build/components/page-editor/model.d.ts +76 -0
- package/build/components/page-editor/model.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +1 -0
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -0
- package/build/ext/axios/index.js +1 -0
- package/build/ext/axios/lib/adapters/xhr.js +1 -0
- package/build/ext/axios/lib/axios.js +1 -0
- package/build/ext/axios/lib/cancel/Cancel.js +1 -0
- package/build/ext/axios/lib/cancel/CancelToken.js +1 -0
- package/build/ext/axios/lib/cancel/isCancel.js +1 -0
- package/build/ext/axios/lib/core/Axios.js +1 -0
- package/build/ext/axios/lib/core/InterceptorManager.js +1 -0
- package/build/ext/axios/lib/core/buildFullPath.js +1 -0
- package/build/ext/axios/lib/core/createError.js +1 -0
- package/build/ext/axios/lib/core/dispatchRequest.js +1 -0
- package/build/ext/axios/lib/core/enhanceError.js +1 -0
- package/build/ext/axios/lib/core/mergeConfig.js +1 -0
- package/build/ext/axios/lib/core/settle.js +1 -0
- package/build/ext/axios/lib/core/transformData.js +1 -0
- package/build/ext/axios/lib/defaults/index.js +1 -0
- package/build/ext/axios/lib/defaults/transitional.js +1 -0
- package/build/ext/axios/lib/env/data.js +1 -0
- package/build/ext/axios/lib/helpers/bind.js +1 -0
- package/build/ext/axios/lib/helpers/buildURL.js +1 -0
- package/build/ext/axios/lib/helpers/combineURLs.js +1 -0
- package/build/ext/axios/lib/helpers/cookies.js +1 -0
- package/build/ext/axios/lib/helpers/isAbsoluteURL.js +1 -0
- package/build/ext/axios/lib/helpers/isAxiosError.js +1 -0
- package/build/ext/axios/lib/helpers/isURLSameOrigin.js +1 -0
- package/build/ext/axios/lib/helpers/normalizeHeaderName.js +1 -0
- package/build/ext/axios/lib/helpers/parseHeaders.js +1 -0
- package/build/ext/axios/lib/helpers/spread.js +1 -0
- package/build/ext/axios/lib/helpers/validator.js +1 -0
- package/build/ext/axios/lib/utils.js +1 -0
- package/build/ext/style-inject/dist/style-inject.es.js +1 -0
- package/build/ext/tslib/tslib.es6.js +1 -0
- package/build/hooks/index.d.ts +2 -0
- package/build/hooks/useCustomerReviews.d.ts +6 -0
- package/build/hooks/useCustomerReviews.js +1 -0
- package/build/hooks/useStore.d.ts +2 -0
- package/build/hooks/useStore.js +1 -0
- package/build/index.d.ts +7 -0
- package/build/index.js +1 -0
- package/build/models/data/base/index.d.ts +8 -0
- package/build/models/data/base/index.js +1 -0
- package/build/models/data/blog/category/index.d.ts +12 -0
- package/build/models/data/blog/category/index.js +1 -0
- package/build/models/data/blog/content/index.d.ts +6 -0
- package/build/models/data/blog/content/index.js +1 -0
- package/build/models/data/blog/index.d.ts +27 -0
- package/build/models/data/blog/index.js +1 -0
- package/build/models/data/blog/meta-data/index.d.ts +16 -0
- package/build/models/data/blog/meta-data/index.js +1 -0
- package/build/models/data/blog/tag/index.d.ts +6 -0
- package/build/models/data/blog/tag/index.js +1 -0
- package/build/models/data/blog/writer/index.d.ts +6 -0
- package/build/models/data/blog/writer/index.js +1 -0
- package/build/models/data/brand/index.d.ts +26 -0
- package/build/models/data/brand/index.js +1 -0
- package/build/models/data/brand/translation/index.d.ts +7 -0
- package/build/models/data/brand/translation/index.js +1 -0
- package/build/models/data/campaign-offer/index.d.ts +21 -0
- package/build/models/data/campaign-offer/index.js +1 -0
- package/build/models/data/campaign-offer/product/index.d.ts +25 -0
- package/build/models/data/campaign-offer/product/index.js +1 -0
- package/build/models/data/cart/available-shipping-method/index.d.ts +10 -0
- package/build/models/data/cart/available-shipping-method/index.js +1 -0
- package/build/models/data/cart/campaign-offer/index.d.ts +16 -0
- package/build/models/data/cart/campaign-offer/index.js +1 -0
- package/build/models/data/cart/index.d.ts +14 -0
- package/build/models/data/cart/index.js +1 -0
- package/build/models/data/category/index.d.ts +22 -0
- package/build/models/data/category/index.js +1 -0
- package/build/models/data/category/path-item/index.d.ts +14 -0
- package/build/models/data/category/path-item/index.js +1 -0
- package/build/models/data/category/translations/index.d.ts +7 -0
- package/build/models/data/category/translations/index.js +1 -0
- package/build/models/data/checkout/country-settings-model.d.ts +141 -0
- package/build/models/data/checkout/country-settings-model.js +1 -0
- package/build/models/data/checkout/index.d.ts +26 -0
- package/build/models/data/checkout/index.js +1 -0
- package/build/models/data/checkout-settings/index.d.ts +21 -0
- package/build/models/data/checkout-settings/index.js +1 -0
- package/build/models/data/checkout-settings/option/index.d.ts +6 -0
- package/build/models/data/checkout-settings/option/index.js +1 -0
- package/build/models/data/checkout-settings/price/index.d.ts +7 -0
- package/build/models/data/checkout-settings/price/index.js +1 -0
- package/build/models/data/city/index.d.ts +12 -0
- package/build/models/data/city/index.js +1 -0
- package/build/models/data/contact-form/index.d.ts +9 -0
- package/build/models/data/contact-form/index.js +1 -0
- package/build/models/data/country/index.d.ts +18 -0
- package/build/models/data/country/index.js +1 -0
- package/build/models/data/country/location-translations/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.d.ts +7 -0
- package/build/models/data/customer/address/city/index.js +1 -0
- package/build/models/data/customer/address/country/index.d.ts +9 -0
- package/build/models/data/customer/address/country/index.js +1 -0
- package/build/models/data/customer/address/district/index.d.ts +7 -0
- package/build/models/data/customer/address/district/index.js +1 -0
- package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +50 -0
- package/build/models/data/customer/address/ikas-localized-customer-address.js +1 -0
- package/build/models/data/customer/address/index.d.ts +40 -0
- package/build/models/data/customer/address/index.js +1 -0
- package/build/models/data/customer/address/state/index.d.ts +7 -0
- package/build/models/data/customer/address/state/index.js +1 -0
- package/build/models/data/customer/attribute/index.d.ts +18 -0
- package/build/models/data/customer/attribute/index.js +1 -0
- package/build/models/data/customer/attribute/option/index.d.ts +9 -0
- package/build/models/data/customer/attribute/option/index.js +1 -0
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +8 -0
- package/build/models/data/customer/attribute/sales-channel/index.js +1 -0
- package/build/models/data/customer/attribute/translation/index.d.ts +9 -0
- package/build/models/data/customer/attribute/translation/index.js +1 -0
- package/build/models/data/customer/attribute/translation/option/index.d.ts +6 -0
- package/build/models/data/customer/attribute/translation/option/index.js +1 -0
- package/build/models/data/customer/attribute/value/index.d.ts +11 -0
- package/build/models/data/customer/attribute/value/index.js +1 -0
- package/build/models/data/customer/index.d.ts +38 -0
- package/build/models/data/customer/index.js +1 -0
- package/build/models/data/customer/review/index.d.ts +24 -0
- package/build/models/data/customer/review/index.js +1 -0
- package/build/models/data/customer/review/settings/index.d.ts +6 -0
- package/build/models/data/customer/review/settings/index.js +1 -0
- package/build/models/data/customer/review/summary/index.d.ts +10 -0
- package/build/models/data/customer/review/summary/index.js +1 -0
- package/build/models/data/customer/review/summary/star/index.d.ts +6 -0
- package/build/models/data/customer/review/summary/star/index.js +1 -0
- package/build/models/data/district/index.d.ts +12 -0
- package/build/models/data/district/index.js +1 -0
- package/build/models/data/favorite-product/index.d.ts +7 -0
- package/build/models/data/favorite-product/index.js +1 -0
- package/build/models/data/filter-category/index.d.ts +12 -0
- package/build/models/data/filter-category/index.js +1 -0
- package/build/models/data/html-meta-data/index.d.ts +28 -0
- package/build/models/data/html-meta-data/index.js +1 -0
- package/build/models/data/html-meta-data/translations/index.d.ts +7 -0
- package/build/models/data/html-meta-data/translations/index.js +1 -0
- package/build/models/data/image/index.d.ts +10 -0
- package/build/models/data/image/index.js +1 -0
- package/build/models/data/index.d.ts +139 -0
- package/build/models/data/last-viewed-product/index.d.ts +6 -0
- package/build/models/data/last-viewed-product/index.js +1 -0
- package/build/models/data/merchant-settings/index.d.ts +12 -0
- package/build/models/data/merchant-settings/index.js +1 -0
- package/build/models/data/order/address/city/index.d.ts +7 -0
- package/build/models/data/order/address/city/index.js +1 -0
- package/build/models/data/order/address/country/index.d.ts +9 -0
- package/build/models/data/order/address/country/index.js +1 -0
- package/build/models/data/order/address/district/index.d.ts +7 -0
- package/build/models/data/order/address/district/index.js +1 -0
- package/build/models/data/order/address/ikas-localized-order-address.d.ts +32 -0
- package/build/models/data/order/address/ikas-localized-order-address.js +1 -0
- package/build/models/data/order/address/index.d.ts +37 -0
- package/build/models/data/order/address/index.js +1 -0
- package/build/models/data/order/address/state/index.d.ts +7 -0
- package/build/models/data/order/address/state/index.js +1 -0
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +8 -0
- package/build/models/data/order/adjustment/applied-order-line/index.js +1 -0
- package/build/models/data/order/adjustment/index.d.ts +15 -0
- package/build/models/data/order/adjustment/index.js +1 -0
- package/build/models/data/order/customer/index.d.ts +11 -0
- package/build/models/data/order/customer/index.js +1 -0
- package/build/models/data/order/gift-line/index.d.ts +6 -0
- package/build/models/data/order/gift-line/index.js +1 -0
- package/build/models/data/order/index.d.ts +69 -0
- package/build/models/data/order/index.js +1 -0
- package/build/models/data/order/invoice/index.d.ts +12 -0
- package/build/models/data/order/invoice/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/index.d.ts +9 -0
- package/build/models/data/order/line-item/base-unit/index.js +1 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +6 -0
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +1 -0
- package/build/models/data/order/line-item/discount/index.d.ts +11 -0
- package/build/models/data/order/line-item/discount/index.js +1 -0
- package/build/models/data/order/line-item/index.d.ts +46 -0
- package/build/models/data/order/line-item/index.js +1 -0
- package/build/models/data/order/line-item/option/index.d.ts +10 -0
- package/build/models/data/order/line-item/option/index.js +1 -0
- package/build/models/data/order/line-item/option/value/index.d.ts +9 -0
- package/build/models/data/order/line-item/option/value/index.js +1 -0
- package/build/models/data/order/line-item/variant/brand/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/brand/index.js +1 -0
- package/build/models/data/order/line-item/variant/category/index.d.ts +12 -0
- package/build/models/data/order/line-item/variant/category/index.js +1 -0
- package/build/models/data/order/line-item/variant/index.d.ts +30 -0
- package/build/models/data/order/line-item/variant/index.js +1 -0
- package/build/models/data/order/line-item/variant/price/index.d.ts +10 -0
- package/build/models/data/order/line-item/variant/price/index.js +1 -0
- package/build/models/data/order/line-item/variant/unit/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/unit/index.js +1 -0
- package/build/models/data/order/line-item/variant/value/index.d.ts +11 -0
- package/build/models/data/order/line-item/variant/value/index.js +1 -0
- package/build/models/data/order/package/index.d.ts +16 -0
- package/build/models/data/order/package/index.js +1 -0
- package/build/models/data/order/package/tracking-info/index.d.ts +9 -0
- package/build/models/data/order/package/tracking-info/index.js +1 -0
- package/build/models/data/order/payment-method/index.d.ts +9 -0
- package/build/models/data/order/payment-method/index.js +1 -0
- package/build/models/data/order/refund/index.d.ts +7 -0
- package/build/models/data/order/refund/index.js +1 -0
- package/build/models/data/order/refund/line-item/index.d.ts +6 -0
- package/build/models/data/order/refund/line-item/index.js +1 -0
- package/build/models/data/order/refund/settings/index.d.ts +7 -0
- package/build/models/data/order/refund/settings/index.js +1 -0
- package/build/models/data/order/shipping-line/index.d.ts +12 -0
- package/build/models/data/order/shipping-line/index.js +1 -0
- package/build/models/data/order/tax-line/index.d.ts +6 -0
- package/build/models/data/order/tax-line/index.js +1 -0
- package/build/models/data/order/transaction/error/index.d.ts +7 -0
- package/build/models/data/order/transaction/error/index.js +1 -0
- package/build/models/data/order/transaction/index.d.ts +26 -0
- package/build/models/data/order/transaction/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +13 -0
- package/build/models/data/order/transaction/payment-method-detail/index.js +1 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +9 -0
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +1 -0
- package/build/models/data/payment-gateway/additional-price/index.d.ts +9 -0
- package/build/models/data/payment-gateway/additional-price/index.js +1 -0
- package/build/models/data/payment-gateway/index.d.ts +31 -0
- package/build/models/data/payment-gateway/index.js +1 -0
- package/build/models/data/payment-gateway/settings/index.d.ts +10 -0
- package/build/models/data/payment-gateway/settings/index.js +1 -0
- package/build/models/data/payment-gateway/translation/index.d.ts +7 -0
- package/build/models/data/payment-gateway/translation/index.js +1 -0
- package/build/models/data/product/attribute/index.d.ts +15 -0
- package/build/models/data/product/attribute/index.js +1 -0
- package/build/models/data/product/attribute/option/index.d.ts +6 -0
- package/build/models/data/product/attribute/option/index.js +1 -0
- package/build/models/data/product/attribute/table-cell/index.d.ts +6 -0
- package/build/models/data/product/attribute/table-cell/index.js +1 -0
- package/build/models/data/product/attribute/table-template/index.d.ts +7 -0
- package/build/models/data/product/attribute/table-template/index.js +1 -0
- package/build/models/data/product/attribute/translation/index.d.ts +13 -0
- package/build/models/data/product/attribute/translation/index.js +1 -0
- package/build/models/data/product/attribute-value/index.d.ts +28 -0
- package/build/models/data/product/attribute-value/index.js +1 -0
- package/build/models/data/product/back-in-stock-settings/index.d.ts +5 -0
- package/build/models/data/product/back-in-stock-settings/index.js +1 -0
- package/build/models/data/product/base-unit/index.d.ts +12 -0
- package/build/models/data/product/base-unit/index.js +1 -0
- package/build/models/data/product/campaign/data/index.d.ts +27 -0
- package/build/models/data/product/campaign/data/index.js +1 -0
- package/build/models/data/product/campaign/filter/index.d.ts +7 -0
- package/build/models/data/product/campaign/filter/index.js +1 -0
- package/build/models/data/product/campaign/index.d.ts +7 -0
- package/build/models/data/product/campaign/index.js +1 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +20 -0
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +1 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +6 -0
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +1 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +14 -0
- package/build/models/data/product/campaign/product-fixed-discount/index.js +1 -0
- package/build/models/data/product/filter/index.d.ts +82 -0
- package/build/models/data/product/filter/index.js +1 -0
- package/build/models/data/product/image/index.d.ts +10 -0
- package/build/models/data/product/image/index.js +1 -0
- package/build/models/data/product/index.d.ts +77 -0
- package/build/models/data/product/index.js +1 -0
- package/build/models/data/product/option-set/index.d.ts +29 -0
- package/build/models/data/product/option-set/index.js +1 -0
- package/build/models/data/product/option-set/option/index.d.ts +70 -0
- package/build/models/data/product/option-set/option/index.js +1 -0
- package/build/models/data/product/star/index.d.ts +6 -0
- package/build/models/data/product/star/index.js +1 -0
- package/build/models/data/product/stock-location/index.d.ts +8 -0
- package/build/models/data/product/stock-location/index.js +1 -0
- package/build/models/data/product/tag/index.d.ts +6 -0
- package/build/models/data/product/tag/index.js +1 -0
- package/build/models/data/product/variant/index.d.ts +31 -0
- package/build/models/data/product/variant/index.js +1 -0
- package/build/models/data/product/variant/price/index.d.ts +19 -0
- package/build/models/data/product/variant/price/index.js +1 -0
- package/build/models/data/product/variant/unit/index.d.ts +6 -0
- package/build/models/data/product/variant/unit/index.js +1 -0
- package/build/models/data/product/variant-type/index.d.ts +8 -0
- package/build/models/data/product/variant-type/index.js +1 -0
- package/build/models/data/raffle/index.d.ts +63 -0
- package/build/models/data/raffle/index.js +1 -0
- package/build/models/data/sales-channel/index.d.ts +19 -0
- package/build/models/data/sales-channel/index.js +1 -0
- package/build/models/data/state/index.d.ts +11 -0
- package/build/models/data/state/index.js +1 -0
- package/build/models/data/state/location-translations/index.d.ts +7 -0
- package/build/models/data/stock-location/address/city/index.d.ts +7 -0
- package/build/models/data/stock-location/address/city/index.js +1 -0
- package/build/models/data/stock-location/address/country/index.d.ts +7 -0
- package/build/models/data/stock-location/address/country/index.js +1 -0
- package/build/models/data/stock-location/address/district/index.d.ts +7 -0
- package/build/models/data/stock-location/address/district/index.js +1 -0
- package/build/models/data/stock-location/address/index.d.ts +15 -0
- package/build/models/data/stock-location/address/index.js +1 -0
- package/build/models/data/stock-location/address/state/index.d.ts +7 -0
- package/build/models/data/stock-location/address/state/index.js +1 -0
- package/build/models/data/stock-location/available/index.d.ts +10 -0
- package/build/models/data/stock-location/available/index.js +1 -0
- package/build/models/data/stock-location/index.d.ts +14 -0
- package/build/models/data/stock-location/index.js +1 -0
- package/build/models/data/storefront/domain/index.d.ts +9 -0
- package/build/models/data/storefront/domain/index.js +1 -0
- package/build/models/data/storefront/index.d.ts +30 -0
- package/build/models/data/storefront/index.js +1 -0
- package/build/models/data/storefront/localization/index.d.ts +8 -0
- package/build/models/data/storefront/localization/index.js +1 -0
- package/build/models/data/storefront/meta-templates/index.d.ts +8 -0
- package/build/models/data/storefront/meta-templates/index.js +1 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +6 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
- package/build/models/data/storefront/routing/index.d.ts +14 -0
- package/build/models/data/storefront/routing/index.js +1 -0
- package/build/models/data/storefront/theme/index.d.ts +10 -0
- package/build/models/data/storefront/theme/index.js +1 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +15 -0
- package/build/models/data/storefront/theme-localization/index.js +1 -0
- package/build/models/data/theme-json/component/index.d.ts +23 -0
- package/build/models/data/theme-json/component/index.js +1 -0
- package/build/models/data/theme-json/component/prop/index.d.ts +26 -0
- package/build/models/data/theme-json/component/prop/index.js +1 -0
- package/build/models/data/theme-json/custom-data/index.d.ts +43 -0
- package/build/models/data/theme-json/custom-data/index.js +1 -0
- package/build/models/data/theme-json/index.d.ts +16 -0
- package/build/models/data/theme-json/index.js +1 -0
- package/build/models/data/theme-json/page/component/index.d.ts +7 -0
- package/build/models/data/theme-json/page/component/index.js +1 -0
- package/build/models/data/theme-json/page/index.d.ts +21 -0
- package/build/models/data/theme-json/page/index.js +1 -0
- package/build/models/data/theme-json/settings/color/index.d.ts +15 -0
- package/build/models/data/theme-json/settings/color/index.js +1 -0
- package/build/models/data/theme-json/settings/favicon/index.d.ts +5 -0
- package/build/models/data/theme-json/settings/favicon/index.js +1 -0
- package/build/models/data/theme-json/settings/font-family/index.d.ts +6 -0
- package/build/models/data/theme-json/settings/font-family/index.js +1 -0
- package/build/models/data/theme-json/settings/index.d.ts +13 -0
- package/build/models/data/theme-json/settings/index.js +1 -0
- package/build/models/data/variant-type/index.d.ts +13 -0
- package/build/models/data/variant-type/index.js +1 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +12 -0
- package/build/models/data/variant-type/variant-value/index.js +1 -0
- package/build/models/index.d.ts +2 -0
- package/build/models/ui/blog-category-list/index.d.ts +51 -0
- package/build/models/ui/blog-category-list/index.js +1 -0
- package/build/models/ui/blog-list/index.d.ts +55 -0
- package/build/models/ui/blog-list/index.js +1 -0
- package/build/models/ui/brand-list/index.d.ts +61 -0
- package/build/models/ui/brand-list/index.js +1 -0
- package/build/models/ui/category-list/index.d.ts +61 -0
- package/build/models/ui/category-list/index.js +1 -0
- package/build/models/ui/component-renderer/index.d.ts +7 -0
- package/build/models/ui/component-renderer/index.js +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-list/index.js +1 -0
- package/build/models/ui/customer-review-summary-list/index.d.ts +43 -0
- package/build/models/ui/customer-review-summary-list/index.js +1 -0
- package/build/models/ui/index.d.ts +27 -0
- package/build/models/ui/navigation-link/index.d.ts +8 -0
- package/build/models/ui/navigation-link/index.js +1 -0
- package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
- package/build/models/ui/product-attribute-detail/index.js +1 -0
- package/build/models/ui/product-attribute-list/index.d.ts +8 -0
- package/build/models/ui/product-attribute-list/index.js +1 -0
- package/build/models/ui/product-list/index.d.ts +143 -0
- package/build/models/ui/product-list/index.js +1 -0
- package/build/models/ui/raffle-list/index.d.ts +53 -0
- package/build/models/ui/raffle-list/index.js +1 -0
- package/build/models/ui/validator/form/account-info.d.ts +39 -0
- package/build/models/ui/validator/form/account-info.js +1 -0
- package/build/models/ui/validator/form/address.d.ts +75 -0
- package/build/models/ui/validator/form/address.js +1 -0
- package/build/models/ui/validator/form/contact-form.d.ts +42 -0
- package/build/models/ui/validator/form/contact-form.js +1 -0
- package/build/models/ui/validator/form/customer-review.d.ts +34 -0
- package/build/models/ui/validator/form/customer-review.js +1 -0
- package/build/models/ui/validator/form/forgot-password.d.ts +26 -0
- package/build/models/ui/validator/form/forgot-password.js +1 -0
- package/build/models/ui/validator/form/ikas-address.d.ts +145 -0
- package/build/models/ui/validator/form/ikas-address.js +1 -0
- package/build/models/ui/validator/form/login.d.ts +32 -0
- package/build/models/ui/validator/form/login.js +1 -0
- package/build/models/ui/validator/form/raffle-form.d.ts +62 -0
- package/build/models/ui/validator/form/raffle-form.js +1 -0
- package/build/models/ui/validator/form/recover-password.d.ts +33 -0
- package/build/models/ui/validator/form/recover-password.js +1 -0
- package/build/models/ui/validator/form/register.d.ts +73 -0
- package/build/models/ui/validator/form/register.js +1 -0
- package/build/models/ui/validator/index.d.ts +27 -0
- package/build/models/ui/validator/index.js +1 -0
- package/build/models/ui/validator/rules/index.d.ts +101 -0
- package/build/models/ui/validator/rules/index.js +1 -0
- package/build/page-data-init/index.d.ts +42 -0
- package/build/page-data-init/index.js +1 -0
- package/build/pages/404.d.ts +4 -0
- package/build/pages/404.js +1 -0
- package/build/pages/[slug]/index.d.ts +4 -0
- package/build/pages/_slug_/index.js +1 -0
- package/build/pages/account/addresses.d.ts +4 -0
- package/build/pages/account/addresses.js +1 -0
- package/build/pages/account/favorite-products.d.ts +4 -0
- package/build/pages/account/favorite-products.js +1 -0
- package/build/pages/account/forgot-password.d.ts +4 -0
- package/build/pages/account/forgot-password.js +1 -0
- package/build/pages/account/index.d.ts +4 -0
- package/build/pages/account/index.js +1 -0
- package/build/pages/account/login.d.ts +4 -0
- package/build/pages/account/login.js +1 -0
- package/build/pages/account/orders/[id].d.ts +4 -0
- package/build/pages/account/orders/_id_.js +1 -0
- package/build/pages/account/orders/index.d.ts +4 -0
- package/build/pages/account/orders/index.js +1 -0
- package/build/pages/account/raffles.d.ts +4 -0
- package/build/pages/account/raffles.js +1 -0
- package/build/pages/account/recover-password.d.ts +4 -0
- package/build/pages/account/recover-password.js +1 -0
- package/build/pages/account/register.d.ts +4 -0
- package/build/pages/account/register.js +1 -0
- package/build/pages/blog/[slug].d.ts +4 -0
- package/build/pages/blog/_slug_.js +1 -0
- package/build/pages/blog/index.d.ts +4 -0
- package/build/pages/blog/index.js +1 -0
- package/build/pages/cart.d.ts +4 -0
- package/build/pages/cart.js +1 -0
- package/build/pages/checkout.d.ts +18 -0
- package/build/pages/checkout.js +1 -0
- package/build/pages/editor.d.ts +10 -0
- package/build/pages/editor.js +1 -0
- package/build/pages/home.d.ts +4 -0
- package/build/pages/home.js +1 -0
- package/build/pages/index.d.ts +22 -0
- package/build/pages/pages/[slug].d.ts +4 -0
- package/build/pages/pages/_slug_.js +1 -0
- package/build/pages/raffle/[slug].d.ts +4 -0
- package/build/pages/raffle/_slug_.js +1 -0
- package/build/pages/raffle/index.d.ts +4 -0
- package/build/pages/raffle/index.js +1 -0
- package/build/pages/search.d.ts +4 -0
- package/build/pages/search.js +1 -0
- package/build/store/base.d.ts +40 -0
- package/build/store/base.js +1 -0
- package/build/store/blog/index.d.ts +26 -0
- package/build/store/blog/index.js +1 -0
- package/build/store/brand/index.d.ts +12 -0
- package/build/store/brand/index.js +1 -0
- package/build/store/cart/api.d.ts +10 -0
- package/build/store/cart/api.js +1 -0
- package/build/store/cart/index.d.ts +40 -0
- package/build/store/cart/index.js +1 -0
- package/build/store/category/index.d.ts +12 -0
- package/build/store/category/index.js +1 -0
- package/build/store/checkout/index.d.ts +16 -0
- package/build/store/checkout/index.js +1 -0
- package/build/store/customer/api.d.ts +54 -0
- package/build/store/customer/api.js +1 -0
- package/build/store/customer/index.d.ts +84 -0
- package/build/store/customer/index.js +1 -0
- package/build/store/html-meta-data/index.d.ts +6 -0
- package/build/store/html-meta-data/index.js +1 -0
- package/build/store/index.d.ts +4 -0
- package/build/store/location/index.d.ts +9 -0
- package/build/store/location/index.js +1 -0
- package/build/store/merchant/index.d.ts +6 -0
- package/build/store/product/index.d.ts +47 -0
- package/build/store/product/index.js +1 -0
- package/build/store/raffle/index.d.ts +15 -0
- package/build/store/raffle/index.js +1 -0
- package/build/store/storefront/index.d.ts +5 -0
- package/build/utils/constants.d.ts +3 -0
- package/build/utils/constants.js +1 -0
- package/build/utils/currency.d.ts +7 -0
- package/build/utils/currency.js +1 -0
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/build/utils/helper.d.ts +5 -0
- package/build/utils/helper.js +1 -0
- package/build/utils/i18n.d.ts +11 -0
- package/build/utils/i18n.js +1 -0
- package/build/utils/index.d.ts +3 -0
- package/package.json +14 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a={exports:{}};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a={exports:{}};export{a};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IkasProduct, IkasOrderLineItem, IkasCategory, IkasThemeJsonPageType, IkasOrderTransaction, IkasBrand, IkasCustomer, IkasCheckout, IkasContactForm } from "../models";
|
|
2
|
+
import { CheckoutStep } from "../components/checkout/model";
|
|
3
|
+
import { IkasCart } from "../models/data/cart";
|
|
4
|
+
import { IkasEventSubscriber } from "./events";
|
|
5
|
+
export declare class Analytics {
|
|
6
|
+
static subscribers: IkasEventSubscriber[];
|
|
7
|
+
constructor();
|
|
8
|
+
static getCustomerInfo(): Promise<{
|
|
9
|
+
consentGranted: boolean;
|
|
10
|
+
id: string;
|
|
11
|
+
firstName: string;
|
|
12
|
+
lastName: string | null;
|
|
13
|
+
email: string | null;
|
|
14
|
+
phone: string | null;
|
|
15
|
+
} | null>;
|
|
16
|
+
static pageView(pageType: IkasThemeJsonPageType): Promise<void>;
|
|
17
|
+
static productView(productDetail: IkasProduct): void;
|
|
18
|
+
static addToCart(item: IkasOrderLineItem, quantity: number, eventId: string, cart: IkasCart): void;
|
|
19
|
+
static removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number, cart: IkasCart): void;
|
|
20
|
+
static beginCheckout(checkout: IkasCheckout): void;
|
|
21
|
+
static purchase(checkout: IkasCheckout, transaction: IkasOrderTransaction): void;
|
|
22
|
+
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
23
|
+
static disableHTML(): void;
|
|
24
|
+
static addToWishlist(productId: string): void;
|
|
25
|
+
static search(searchKeyword: string): void;
|
|
26
|
+
static completeRegistration(customer: IkasCustomer): void;
|
|
27
|
+
static createEmailSubscripition(email: string): void;
|
|
28
|
+
static customerLogin(): Promise<void>;
|
|
29
|
+
static customerLogout(): Promise<void>;
|
|
30
|
+
static customerVisit(): Promise<void>;
|
|
31
|
+
static viewCart(cart: IkasCart | null | undefined): void;
|
|
32
|
+
static viewCategory(categoryPath: string, category: IkasCategory): void;
|
|
33
|
+
static viewBrand(brand: IkasBrand): void;
|
|
34
|
+
static viewSearchResults(searchKeyword: string, productDetails: IkasProduct[]): void;
|
|
35
|
+
static viewListing(productDetails: IkasProduct[]): void;
|
|
36
|
+
static contactForm(form: IkasContactForm): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as r}from'./../ext/tslib/tslib.es6.js';import{makeAutoObservable as o}from"mobx";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{IkasBrand as i}from"../models/data/brand/index.js";import"@ikas/storefront-models";import"../models/data/campaign-offer/index.js";import"../models/data/cart/campaign-offer/index.js";import{IkasCart as s}from"../models/data/cart/index.js";import"../models/data/category/path-item/index.js";import{IkasCategory as a}from"../models/data/category/index.js";import{IkasCheckout as c}from"../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{IkasProduct as n}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{FacebookPixel as d}from"./facebookPixel.js";import{GoogleTagManager as m}from"./googleTagManager.js";import{IkasEventType as l}from"./events.js";import u from"lodash/cloneDeep";import{tryForEach as p}from"../utils/helper.js";import b from"./ikas.js";import{GoogleAnalytics as f}from"./googleAnalytics.js";import{GoogleUniversal as h}from"./googleUniversal.js";import{TiktokPixel as g}from"./tiktokPixel.js";import{IkasBaseStore as j}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";var v=function(){function v(){o(this)}return v.getCustomerInfo=function(){return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return[4,(t=j.getInstance()).customerStore.waitUntilInitialized()];case 1:return e.sent(),(o=t.customerStore.customer)?[2,r(r({},o.basicInfo),{consentGranted:t.customerStore.customerConsentGranted})]:[2,null]}}))}))},v.pageView=function(r){return t(this,void 0,void 0,(function(){var t,o,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=window.location.href,[4,v.getCustomerInfo()];case 1:return o=e.sent(),m.pageView(t),h.pageView(window.location.pathname),b.pageView(r),p(v.subscribers,(function(e){e.callback({type:l.PAGE_VIEW,data:{url:t,pageType:r,customer:o}})})),[3,3];case 2:return i=e.sent(),console.error(i),[3,3];case 3:return[2]}}))}))},v.productView=function(t){try{if(d.productView(t),m.productView(t),b.productView(t),f.productView(t),h.productView(t),g.productView(t),v.subscribers.length){var e=new n(u(t));p(v.subscribers,(function(t){t.callback({type:l.PRODUCT_VIEW,data:{productDetail:e}})}))}}catch(t){console.error(t)}},v.addToCart=function(t,e,r,o){try{if(d.addToCart(t,e,r),m.addToCart(t,e),b.addToCart(t,e,o),f.addToCart(t,e),h.addToCart(t,e),g.addToCart(t,e),v.subscribers.length){var i=u(t),a=new s(u(o));p(v.subscribers,(function(t){t.callback({type:l.ADD_TO_CART,data:{item:i,quantity:e,cart:a}})}))}}catch(t){console.error(t)}},v.removeFromCart=function(t,e,r){try{if(m.removeFromCart(t,e),f.removeFromCart(t,e),h.removeFromCart(t,e),v.subscribers.length){var o=u(t),i=new s(u(r));p(v.subscribers,(function(t){t.callback({type:l.REMOVE_FROM_CART,data:{item:o,quantity:e,cart:i}})}))}}catch(t){console.error(t)}},v.beginCheckout=function(t){try{var e=localStorage.getItem("gtmBeginCheckout");if(e&&t.id===e)return;if(localStorage.setItem("gtmBeginCheckout",t.id),d.beginCheckout(t),m.beginCheckout(t),b.beginCheckout(t),f.beginCheckout(t),g.beginCheckout(),v.subscribers.length){var r=new c(u(t));p(v.subscribers,(function(t){t.callback({type:l.BEGIN_CHECKOUT,data:{checkout:r}})}))}}catch(t){console.error(t)}},v.purchase=function(t,e){try{if(localStorage.removeItem("gtmBeginCheckout"),d.purchase(t,e.id||""),m.purchase(t,t.orderNumber||""),b.orderSuccess(t),f.purchase(t,t.orderNumber||""),h.purchase(t,t.orderNumber||""),g.purchase(t),v.subscribers.length){var r=new c(u(t)),o=u(e);p(v.subscribers,(function(t){t.callback({type:l.COMPLETE_CHECKOUT,data:{checkout:r,transaction:o}})}))}}catch(t){console.error(t)}},v.checkoutStep=function(t,e){try{if(m.checkoutStep(t,e),b.checkoutStep(t,e),f.checkoutStep(t,e),v.subscribers.length){var r=new c(u(t));p(v.subscribers,(function(t){t.callback({type:l.CHECKOUT_STEP,data:{checkout:r,step:e}})}))}}catch(t){console.error(t)}},v.disableHTML=function(){try{m.disableHTML()}catch(t){console.error(t)}},v.addToWishlist=function(t){try{d.addToWishlist(t),g.addToWishlist(t),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.ADD_TO_WISHLIST,data:{productId:t}})}))}catch(t){console.error(t)}},v.search=function(t){try{d.search(t),m.search(t),g.search(t),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.SEARCH,data:{searchKeyword:t}})}))}catch(t){console.error(t)}},v.completeRegistration=function(t){try{d.completeRegistration(),m.completeRegistration(),g.completeRegistration(),b.customerRegister(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_REGISTER,data:{email:t.email,firstName:t.firstName,lastName:t.lastName}})}))}catch(t){console.error(t)}},v.createEmailSubscripition=function(t){try{v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.EMAIL_SUBSCRIPTION,data:{email:t}})}))}catch(t){console.error(t)}},v.customerLogin=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,v.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(m.customerLogin(t.email),b.customerLogin(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_LOGIN,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},v.customerLogout=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){try{v.subscribers.length&&p(v.subscribers,(function(t){t.callback({type:l.CUSTOMER_LOGOUT,data:{}})}))}catch(t){console.error(t)}return[2]}))}))},v.customerVisit=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,v.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(m.customerVisit(t.email),b.customerVisit(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_VISIT,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},v.viewCart=function(t){try{if(t&&(d.viewCart(t),b.viewCart(t),f.viewCart(t),m.viewCart(t),v.subscribers.length)){var e=new s(u(t));p(v.subscribers,(function(t){t.callback({type:l.VIEW_CART,data:{cart:e}})}))}}catch(t){console.error(t)}},v.viewCategory=function(t,e){try{if(d.viewCategory(t),m.viewCategory(e,t),b.viewCategory(e),g.viewCategory(e),v.subscribers.length){var r=new a(u(e));p(v.subscribers,(function(e){e.callback({type:l.VIEW_CATEGORY,data:{categoryPath:t,category:r}})}))}}catch(t){console.error(t)}},v.viewBrand=function(t){try{if(b.viewBrand(t),v.subscribers.length){var e=new i(u(t));p(v.subscribers,(function(t){t.callback({type:l.VIEW_BRAND,data:{brand:e}})}))}}catch(t){console.error(t)}},v.viewSearchResults=function(t,e){try{if(v.subscribers.length){var r=u(e).map((function(t){return new n(t)}));p(v.subscribers,(function(e){e.callback({type:l.VIEW_SEARCH_RESULTS,data:{searchKeyword:t,productDetails:r}})}))}}catch(t){console.error(t)}},v.viewListing=function(t){try{if(v.subscribers.length){var e=u(t).map((function(t){return new n(t)}));p(v.subscribers,(function(t){t.callback({type:l.VIEW_LISTING,data:{productDetails:e}})}))}}catch(t){console.error(t)}},v.contactForm=function(t){try{if(d.contactForm(),g.contactForm(),v.subscribers.length){var e=u(t);p(v.subscribers,(function(t){t.callback({type:l.CONTACT_FORM,data:{form:e}})}))}}catch(t){console.error(t)}},v.subscribers=[],v}();export{v as Analytics};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare function IkasEvents(initialSubscribers: IkasEventSubscriber[]): {
|
|
2
|
+
subscribe: (subscriber: any) => void;
|
|
3
|
+
unsubscribe: (id: string) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function initIkasEvents(): void;
|
|
6
|
+
export declare function getIkasEventsScript(): string;
|
|
7
|
+
export declare function isValidIkasEventSubscriber(data: any): boolean;
|
|
8
|
+
export declare enum IkasEventType {
|
|
9
|
+
PAGE_VIEW = "PAGE_VIEW",
|
|
10
|
+
PRODUCT_VIEW = "PRODUCT_VIEW",
|
|
11
|
+
ADD_TO_CART = "ADD_TO_CART",
|
|
12
|
+
REMOVE_FROM_CART = "REMOVE_FROM_CART",
|
|
13
|
+
BEGIN_CHECKOUT = "BEGIN_CHECKOUT",
|
|
14
|
+
CHECKOUT_STEP = "CHECKOUT_STEP",
|
|
15
|
+
COMPLETE_CHECKOUT = "COMPLETE_CHECKOUT",
|
|
16
|
+
ADD_TO_WISHLIST = "ADD_TO_WISHLIST",
|
|
17
|
+
SEARCH = "SEARCH",
|
|
18
|
+
CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
|
|
19
|
+
CUSTOMER_LOGIN = "CUSTOMER_LOGIN",
|
|
20
|
+
CUSTOMER_LOGOUT = "CUSTOMER_LOGOUT",
|
|
21
|
+
CUSTOMER_VISIT = "CUSTOMER_VISIT",
|
|
22
|
+
VIEW_CART = "VIEW_CART",
|
|
23
|
+
VIEW_CATEGORY = "VIEW_CATEGORY",
|
|
24
|
+
VIEW_BRAND = "VIEW_BRAND",
|
|
25
|
+
VIEW_SEARCH_RESULTS = "VIEW_SEARCH_RESULTS",
|
|
26
|
+
VIEW_LISTING = "VIEW_LISTING",
|
|
27
|
+
CONTACT_FORM = "CONTACT_FORM",
|
|
28
|
+
EMAIL_SUBSCRIPTION = "EMAIL_SUBSCRIPTION"
|
|
29
|
+
}
|
|
30
|
+
export declare type IkasEventSubscriber = {
|
|
31
|
+
id: string;
|
|
32
|
+
callback: (event: IkasEvent) => void;
|
|
33
|
+
};
|
|
34
|
+
export declare type IkasEvent = {
|
|
35
|
+
type: IkasEventType;
|
|
36
|
+
data: any;
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Analytics as s}from"./analytics.js";function E(E){var r=function(E){if(T(E)){var r=s.subscribers.findIndex((function(s){return s.id===E.id}));-1!==r?s.subscribers[r]=E:s.subscribers.push(E)}};return E.forEach(r),{subscribe:r,unsubscribe:function(E){var r=s.subscribers.findIndex((function(s){return s.id===E}));-1!==r&&s.subscribers.splice(r,1)}}}function r(){if("undefined"!=typeof window){var s=[];try{var r=window.IkasEvents;r&&r.subscribers&&r.subscribers.length&&(s=r.subscribers)}catch(s){}window.IkasEvents=E(s)}}function n(){return"<script>\n var subscribers = [];\n var subscribe = (subscriber) => { subscribers.push(subscriber); }; \n var unsubscribe = () => {};\n \n window.IkasEvents = {\n subscribers,\n subscribe,\n unsubscribe\n };\n <\/script>"}function T(s){return!!(s&&s.id&&"string"==typeof s.id&&s.callback&&"function"==typeof s.callback)}var i;!function(s){s.PAGE_VIEW="PAGE_VIEW",s.PRODUCT_VIEW="PRODUCT_VIEW",s.ADD_TO_CART="ADD_TO_CART",s.REMOVE_FROM_CART="REMOVE_FROM_CART",s.BEGIN_CHECKOUT="BEGIN_CHECKOUT",s.CHECKOUT_STEP="CHECKOUT_STEP",s.COMPLETE_CHECKOUT="COMPLETE_CHECKOUT",s.ADD_TO_WISHLIST="ADD_TO_WISHLIST",s.SEARCH="SEARCH",s.CUSTOMER_REGISTER="CUSTOMER_REGISTER",s.CUSTOMER_LOGIN="CUSTOMER_LOGIN",s.CUSTOMER_LOGOUT="CUSTOMER_LOGOUT",s.CUSTOMER_VISIT="CUSTOMER_VISIT",s.VIEW_CART="VIEW_CART",s.VIEW_CATEGORY="VIEW_CATEGORY",s.VIEW_BRAND="VIEW_BRAND",s.VIEW_SEARCH_RESULTS="VIEW_SEARCH_RESULTS",s.VIEW_LISTING="VIEW_LISTING",s.CONTACT_FORM="CONTACT_FORM",s.EMAIL_SUBSCRIPTION="EMAIL_SUBSCRIPTION"}(i||(i={}));export{i as IkasEventType,E as IkasEvents,n as getIkasEventsScript,r as initIkasEvents,T as isValidIkasEventSubscriber};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasCheckout, IkasProduct, IkasOrderLineItem } from "../models";
|
|
2
|
+
import { IkasCart } from "../models/data/cart";
|
|
3
|
+
export declare class FacebookPixel {
|
|
4
|
+
constructor();
|
|
5
|
+
static productView(productDetail: IkasProduct): void;
|
|
6
|
+
static addToCart(item: IkasOrderLineItem, quantity: number, eventId: string): void;
|
|
7
|
+
static beginCheckout(checkout: IkasCheckout): void;
|
|
8
|
+
static purchase(checkout: IkasCheckout, eventId: string): void;
|
|
9
|
+
static addToWishlist(id: string): void;
|
|
10
|
+
static search(searchKeyword: string): void;
|
|
11
|
+
static completeRegistration(): void;
|
|
12
|
+
static viewCart(cart: IkasCart): void;
|
|
13
|
+
static viewCategory(categoryPath: string): void;
|
|
14
|
+
static contactForm(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",(r=t,{content_name:r.name,content_category:r.categories.length>0?r.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[r.selectedVariant.id],content_type:"product",value:r.selectedVariant.price.finalPrice,currency:""===r.selectedVariant.price.currency?"TRY":r.selectedVariant.price.currency})))}catch(t){console.error(t)}var r},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}export{r as FacebookPixel};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasCheckout, IkasProduct, IkasOrderLineItem } from "../models";
|
|
2
|
+
import { IkasCart } from "../models/data/cart";
|
|
3
|
+
import { CheckoutStep } from "../components/checkout/model";
|
|
4
|
+
export declare class GoogleAnalytics {
|
|
5
|
+
constructor();
|
|
6
|
+
static productView(productDetail: IkasProduct): void;
|
|
7
|
+
static addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
8
|
+
static removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
9
|
+
static viewCart(cart: IkasCart): void;
|
|
10
|
+
static beginCheckout(checkout: IkasCheckout): void;
|
|
11
|
+
static purchase(checkout: IkasCheckout, orderId: string): void;
|
|
12
|
+
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as e}from"mobx";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"@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"../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{IkasProduct as t}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{CheckoutStep as i}from"../components/checkout/model.js";var o="undefined"==typeof window,r=function(){function r(){e(this)}return r.productView=function(e){try{return void(!o&&window.gtag&&window.gtag("event","view_item",{currency:""===e.selectedVariant.price.currency?"TRY":e.selectedVariant.price.currency,value:e.selectedVariant.price.finalPrice,items:[a(e)]}))}catch(e){console.error(e)}},r.addToCart=function(e,i){try{return void(!o&&window.gtag&&window.gtag("event","add_to_cart",{currency:e instanceof t?""===e.selectedVariant.price.currency?"TRY":e.selectedVariant.price.currency:e.currencyCode,value:e instanceof t?e.selectedVariant.price.finalPrice:e.finalPrice,items:[e instanceof t?a(e,i):d(e,i)]}))}catch(e){console.error(e)}},r.removeFromCart=function(e,i){try{return void(!o&&window.gtag&&window.gtag("event","remove_from_cart",{currency:e instanceof t?""===e.selectedVariant.price.currency?"TRY":e.selectedVariant.price.currency:e.currencyCode,value:e instanceof t?e.selectedVariant.price.finalPrice:e.finalPrice,items:[e instanceof t?a(e,i):d(e,i)]}))}catch(e){console.error(e)}},r.viewCart=function(e){try{return void(!o&&window.gtag&&window.gtag("event","view_cart",{currency:e.currencyCode,value:e.totalPrice,items:e.items.map((function(e){return d(e,e.quantity)}))}))}catch(e){console.error(e)}},r.beginCheckout=function(e){try{return void(!o&&window.gtag&&window.gtag("event","begin_checkout",{currency:e.currencyCode,value:e.totalFinalPrice,items:e.items.map((function(e){return d(e,e.quantity)}))}))}catch(e){console.error(e)}},r.purchase=function(e,t){try{return void(!o&&window.gtag&&window.gtag("event","purchase",{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+e.totalTax,shipping:""+e.shippingTotal,currency:e.currencyCode,coupon:e.couponCode,items:e.items.map((function(e){return d(e,e.quantity)}))}))}catch(e){console.error(e)}},r.checkoutStep=function(e,t){var r;if(t===i.SHIPPING)try{return void(!o&&window.gtag&&window.gtag("event","add_shipping_info",{currency:e.currencyCode,value:e.totalFinalPrice,shipping_tier:"Ground",coupon:e.couponCode,items:e.items.map((function(e){return d(e,e.quantity)}))}))}catch(e){console.error(e)}if(t===i.PAYMENT)try{return void(!o&&window.gtag&&window.gtag("event","add_payment_info",{currency:e.currencyCode,value:e.totalFinalPrice,coupon:e.couponCode,payment_type:null===(r=e.selectedPaymentGateway)||void 0===r?void 0:r.paymentMethodType,items:e.items.map((function(e){return d(e,e.quantity)}))}))}catch(e){console.error(e)}},r}();function a(e,t){var i;return void 0===t&&(t=1),{item_name:e.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(i=e.brand)||void 0===i?void 0:i.name)||"",item_category:e.categories.length?e.categories[0].name:"",item_category_2:e.categories.length>1?e.categories[1].name:"",item_category_3:e.categories.length>2?e.categories[2].name:"",item_category_4:e.categories.length>3?e.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function d(e,t){var i;return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:null===(i=e.variant.variantValues)||void 0===i?void 0:i.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{r as GoogleAnalytics};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { IkasCheckout, IkasProduct, IkasOrderLineItem, IkasCategory, IkasCart } from "../models";
|
|
2
|
+
import { CheckoutStep } from "../components/checkout/model";
|
|
3
|
+
export declare class GoogleTagManager {
|
|
4
|
+
constructor();
|
|
5
|
+
static pageView(url: string): {
|
|
6
|
+
event: string;
|
|
7
|
+
page: string;
|
|
8
|
+
} | undefined;
|
|
9
|
+
static productView(productDetail: IkasProduct): {
|
|
10
|
+
event: string;
|
|
11
|
+
ecommerce: {
|
|
12
|
+
items: {
|
|
13
|
+
item_name: string;
|
|
14
|
+
item_id: string;
|
|
15
|
+
price: number;
|
|
16
|
+
item_brand: string;
|
|
17
|
+
item_category: string;
|
|
18
|
+
item_category_2: string;
|
|
19
|
+
item_category_3: string;
|
|
20
|
+
item_category_4: string;
|
|
21
|
+
item_variant: string;
|
|
22
|
+
item_list_name: string;
|
|
23
|
+
item_list_id: string;
|
|
24
|
+
index: number;
|
|
25
|
+
quantity: number;
|
|
26
|
+
}[];
|
|
27
|
+
extraParams: {
|
|
28
|
+
parent_id: string;
|
|
29
|
+
currency: string | null;
|
|
30
|
+
url: string;
|
|
31
|
+
item_image: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | undefined;
|
|
35
|
+
static addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
36
|
+
event: string;
|
|
37
|
+
ecommerce: {
|
|
38
|
+
items: ({
|
|
39
|
+
item_name: string;
|
|
40
|
+
item_id: string;
|
|
41
|
+
price: number;
|
|
42
|
+
item_brand: string;
|
|
43
|
+
item_category: string;
|
|
44
|
+
item_category_2: string;
|
|
45
|
+
item_category_3: string;
|
|
46
|
+
item_category_4: string;
|
|
47
|
+
item_variant: string;
|
|
48
|
+
item_list_name: string;
|
|
49
|
+
item_list_id: string;
|
|
50
|
+
index: number;
|
|
51
|
+
quantity: number;
|
|
52
|
+
} | {
|
|
53
|
+
item_name: string;
|
|
54
|
+
item_id: string | null;
|
|
55
|
+
price: string;
|
|
56
|
+
item_brand: string;
|
|
57
|
+
item_category: string;
|
|
58
|
+
item_category_2: string;
|
|
59
|
+
item_category_3: string;
|
|
60
|
+
item_category_4: string;
|
|
61
|
+
item_variant: string | undefined;
|
|
62
|
+
item_list_name: string;
|
|
63
|
+
item_list_id: string;
|
|
64
|
+
index: number;
|
|
65
|
+
quantity: number;
|
|
66
|
+
})[];
|
|
67
|
+
cart: IkasCart | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
} | undefined;
|
|
70
|
+
static removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
71
|
+
event: string;
|
|
72
|
+
ecommerce: {
|
|
73
|
+
items: ({
|
|
74
|
+
item_name: string;
|
|
75
|
+
item_id: string;
|
|
76
|
+
price: number;
|
|
77
|
+
item_brand: string;
|
|
78
|
+
item_category: string;
|
|
79
|
+
item_category_2: string;
|
|
80
|
+
item_category_3: string;
|
|
81
|
+
item_category_4: string;
|
|
82
|
+
item_variant: string;
|
|
83
|
+
item_list_name: string;
|
|
84
|
+
item_list_id: string;
|
|
85
|
+
index: number;
|
|
86
|
+
quantity: number;
|
|
87
|
+
} | {
|
|
88
|
+
item_name: string;
|
|
89
|
+
item_id: string | null;
|
|
90
|
+
price: string;
|
|
91
|
+
item_brand: string;
|
|
92
|
+
item_category: string;
|
|
93
|
+
item_category_2: string;
|
|
94
|
+
item_category_3: string;
|
|
95
|
+
item_category_4: string;
|
|
96
|
+
item_variant: string | undefined;
|
|
97
|
+
item_list_name: string;
|
|
98
|
+
item_list_id: string;
|
|
99
|
+
index: number;
|
|
100
|
+
quantity: number;
|
|
101
|
+
})[];
|
|
102
|
+
cart: IkasCart | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
} | undefined;
|
|
105
|
+
static beginCheckout(checkout: IkasCheckout): {
|
|
106
|
+
event: string;
|
|
107
|
+
ecommerce: {
|
|
108
|
+
items: {
|
|
109
|
+
item_name: string;
|
|
110
|
+
item_id: string | null;
|
|
111
|
+
price: string;
|
|
112
|
+
item_brand: string;
|
|
113
|
+
item_category: string;
|
|
114
|
+
item_category_2: string;
|
|
115
|
+
item_category_3: string;
|
|
116
|
+
item_category_4: string;
|
|
117
|
+
item_variant: string | undefined;
|
|
118
|
+
item_list_name: string;
|
|
119
|
+
item_list_id: string;
|
|
120
|
+
index: number;
|
|
121
|
+
quantity: number;
|
|
122
|
+
}[];
|
|
123
|
+
};
|
|
124
|
+
} | undefined;
|
|
125
|
+
static purchase(checkout: IkasCheckout, orderId: string): {
|
|
126
|
+
event: string;
|
|
127
|
+
ecommerce: {
|
|
128
|
+
purchase: {
|
|
129
|
+
transaction_id: string;
|
|
130
|
+
affiliation: string;
|
|
131
|
+
value: string;
|
|
132
|
+
tax: string;
|
|
133
|
+
shipping: string;
|
|
134
|
+
currency: string;
|
|
135
|
+
coupon: string | null;
|
|
136
|
+
items: {
|
|
137
|
+
item_name: string;
|
|
138
|
+
item_id: string | null;
|
|
139
|
+
price: string;
|
|
140
|
+
item_brand: string;
|
|
141
|
+
item_category: string;
|
|
142
|
+
item_category_2: string;
|
|
143
|
+
item_category_3: string;
|
|
144
|
+
item_category_4: string;
|
|
145
|
+
item_variant: string | undefined;
|
|
146
|
+
item_list_name: string;
|
|
147
|
+
item_list_id: string;
|
|
148
|
+
index: number;
|
|
149
|
+
quantity: number;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
} | undefined;
|
|
154
|
+
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): {
|
|
155
|
+
event: string;
|
|
156
|
+
ecommerce: {
|
|
157
|
+
items: {
|
|
158
|
+
item_name: string;
|
|
159
|
+
item_id: string | null;
|
|
160
|
+
price: string;
|
|
161
|
+
item_brand: string;
|
|
162
|
+
item_category: string;
|
|
163
|
+
item_category_2: string;
|
|
164
|
+
item_category_3: string;
|
|
165
|
+
item_category_4: string;
|
|
166
|
+
item_variant: string | undefined;
|
|
167
|
+
item_list_name: string;
|
|
168
|
+
item_list_id: string;
|
|
169
|
+
index: number;
|
|
170
|
+
quantity: number;
|
|
171
|
+
}[];
|
|
172
|
+
};
|
|
173
|
+
} | undefined;
|
|
174
|
+
static disableHTML(): void;
|
|
175
|
+
static completeRegistration(): {
|
|
176
|
+
event: string;
|
|
177
|
+
} | undefined;
|
|
178
|
+
static search(searchKeyword: string): {
|
|
179
|
+
event: string;
|
|
180
|
+
search_string: string;
|
|
181
|
+
} | undefined;
|
|
182
|
+
static viewCategory(category: IkasCategory, categoryPath: string): {
|
|
183
|
+
event: string;
|
|
184
|
+
ecommerce: {
|
|
185
|
+
category: {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
metaData: import("..").IkasHTMLMetaData | null;
|
|
189
|
+
href: string;
|
|
190
|
+
image: import("..").IkasImage | null | undefined;
|
|
191
|
+
path: string;
|
|
192
|
+
}[];
|
|
193
|
+
};
|
|
194
|
+
} | undefined;
|
|
195
|
+
static customerLogin(email: string): {
|
|
196
|
+
event: string;
|
|
197
|
+
email: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
static customerVisit(email: string): {
|
|
200
|
+
event: string;
|
|
201
|
+
email: string;
|
|
202
|
+
} | undefined;
|
|
203
|
+
static viewCart(cart: IkasCart): {
|
|
204
|
+
event: string;
|
|
205
|
+
ecommerce: {
|
|
206
|
+
cart: IkasCart;
|
|
207
|
+
};
|
|
208
|
+
} | undefined;
|
|
209
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as e}from"mobx";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"@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"../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{IkasProduct as t}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{CheckoutStep as o}from"../components/checkout/model.js";import"./analytics.js";import"./head/index.js";import"../components/page/index.js";import"../components/page/head.js";import"react";import"next/image.js";import"@ikas/storefront-model-functions";import"../components/link/index.js";import"../components/page-editor/loader/style.module.scss.js";import"../components/google-captcha/index.js";import"../pages/home.js";import"../pages/_slug_/index.js";import"../pages/pages/_slug_.js";import"../pages/checkout.js";import"../pages/account/index.js";import"../pages/account/addresses.js";import"../pages/account/orders/index.js";import"../pages/account/orders/_id_.js";import"../pages/account/login.js";import"../pages/account/register.js";import"../pages/account/forgot-password.js";import"../pages/account/recover-password.js";import"../pages/cart.js";import"../pages/editor.js";import"../pages/account/favorite-products.js";import"../pages/search.js";import"next/error.js";import"../pages/blog/index.js";import"../pages/blog/_slug_.js";import"../pages/raffle/_slug_.js";import"../pages/raffle/index.js";import"../pages/account/raffles.js";import{IkasBaseStore as a}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";import"@ikas/storefront-config";import"lodash/get";var r="undefined"==typeof window,i=function(){function i(){e(this)}return i.pageView=function(e){try{var t={event:"page-view-GTM",page:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.productView=function(e){var t,o;try{var a={event:"view_item-GTM",ecommerce:{items:[s(e)],extraParams:{parent_id:e.id,currency:e.selectedVariant.price.currency,url:"https://".concat(window.location.hostname).concat(e.href),item_image:(null===(o=null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.image)||void 0===o?void 0:o.src)||""}}};return!r&&window.dataLayer&&window.dataLayer.push(a),a}catch(e){console.error(e)}},i.addToCart=function(e,o){var i=a.getInstance().cartStore.cart;try{var n={event:"add_to_cart-GTM",ecommerce:{items:[e instanceof t?s(e,o):d(e,o)],cart:i}};return!r&&window.dataLayer&&window.dataLayer.push(n),n}catch(e){console.error(e)}},i.removeFromCart=function(e,o){var i=a.getInstance().cartStore.cart;try{var n={event:"remove_from_cart-GTM",ecommerce:{items:[e instanceof t?s(e,o):d(e,o)],cart:0===(null==i?void 0:i.itemCount)?null:i}};return!r&&window.dataLayer&&window.dataLayer.push(n),n}catch(e){console.error(e)}},i.beginCheckout=function(e){try{var t={event:"begin_checkout-GTM",ecommerce:{items:e.items.map((function(e){return d(e,e.quantity)}))}};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.purchase=function(e,t){try{var o={event:"purchase-GTM",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+e.totalTax,shipping:""+e.shippingTotal,currency:e.currencyCode,coupon:e.couponCode,items:e.items.map((function(e){return d(e,e.quantity)}))}}};return!r&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.checkoutStep=function(e,t){var a="";t===o.INFO?a="checkout_info-GTM":t===o.SHIPPING?a="checkout_shipping-GTM":t===o.PAYMENT?a="checkout_payment-GTM":t===o.SUCCESS&&(a="checkout_success-GTM");try{var i={event:a,ecommerce:{items:e.items.map((function(e){return d(e,e.quantity)}))}};return!r&&window.dataLayer&&window.dataLayer.push(i),i}catch(e){console.error(e)}},i.disableHTML=function(){try{!r&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},i.completeRegistration=function(){try{var e={event:"customer_register-GTM"};return!r&&window.dataLayer&&window.dataLayer.push(e),e}catch(e){console.error(e)}},i.search=function(e){try{var t={event:"search-GTM",search_string:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCategory=function(e,t){try{var o={event:"view_category-GTM",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!r&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.customerLogin=function(e){try{var t={event:"customer_login-GTM",email:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.customerVisit=function(e){try{var t={event:"customer_visit-GTM",email:e};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCart=function(e){try{var t={event:"view_cart-GTM",ecommerce:{cart:e}};return!r&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i}();function s(e,t){var o;return void 0===t&&(t=1),{item_name:e.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(o=e.brand)||void 0===o?void 0:o.name)||"",item_category:e.categories.length?e.categories[0].name:"",item_category_2:e.categories.length>1?e.categories[1].name:"",item_category_3:e.categories.length>2?e.categories[2].name:"",item_category_4:e.categories.length>3?e.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function d(e,t){var o;return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:null===(o=e.variant.variantValues)||void 0===o?void 0:o.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{i as GoogleTagManager};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasCheckout, IkasProduct, IkasOrderLineItem } from "../models";
|
|
2
|
+
export declare class GoogleUniversal {
|
|
3
|
+
constructor();
|
|
4
|
+
static pageView(url: string): void;
|
|
5
|
+
static productView(productDetail: IkasProduct): void;
|
|
6
|
+
static addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
7
|
+
static removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
8
|
+
static purchase(checkout: IkasCheckout, orderId: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";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"@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"../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{IkasProduct as o}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";var e="undefined"==typeof window,i=function(){function i(){t(this)}return i.pageView=function(t){try{return void(!e&&window.ga&&(window.ga("set","page",t),window.ga("send","pageview")))}catch(t){console.error(t)}},i.productView=function(t){try{return void(!e&&window.ga&&(window.ga("ec:addProduct",function(t,o){var e;return{id:t.selectedVariant.id,name:t.name,brand:(null===(e=t.brand)||void 0===e?void 0:e.name)||"",category:t.categories.map((function(t){return t.name})).join(" / "),variant:t.selectedVariant.variantValues.map((function(t){return t.name})).join(" / ")}}(t)),window.ga("ec:setAction","detail")))}catch(t){console.error(t)}},i.addToCart=function(t,i){try{return void(!e&&window.ga&&(window.ga("ec:addProduct",t instanceof o?a(t,i):d(t,i)),window.ga("ec:setAction","add"),window.ga("send","event","UX","click","add to cart")))}catch(t){console.error(t)}},i.removeFromCart=function(t,i){try{return void(!e&&window.ga&&(window.ga("ec:addProduct",t instanceof o?a(t,i):d(t,i)),window.ga("ec:setAction","remove"),window.ga("send","event","UX","click","add to cart")))}catch(t){console.error(t)}},i.purchase=function(t,o){try{return void(!e&&window.ga&&(window.ga("set","currencyCode",t.currencyCode),t.items.map((function(t){return window.ga("ec:addProduct",d(t,t.quantity))})),window.ga("ec:setAction","purchase",{id:o,affiliation:window.location.hostname,revenue:""+t.totalFinalPrice,tax:""+t.totalTax,shipping:""+t.shippingTotal,coupon:t.couponCode})))}catch(t){console.error(t)}},i}();function a(t,o){var e;return void 0===o&&(o=1),{id:t.selectedVariant.id,name:t.name,brand:(null===(e=t.brand)||void 0===e?void 0:e.name)||"",category:t.categories.map((function(t){return t.name})).join(" / "),variant:t.selectedVariant.variantValues.map((function(t){return t.name})).join(" / "),price:t.selectedVariant.price.finalPrice,quantity:o}}function d(t,o){var e;return void 0===o&&(o=1),{name:t.variant.name,id:t.variant.id,price:""+t.finalPrice,brand:"",category:"",variant:null===(e=t.variant.variantValues)||void 0===e?void 0:e.map((function(t){return t.variantValueName})).join(" / "),quantity:o}}export{i as GoogleUniversal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";import e from"html-react-parser";import{getIkasEventsScript as n}from"../events.js";import{observer as a}from"mobx-react-lite";import{IkasStorefrontConfig as r}from"@ikas/storefront-config";var o=a((function(){var a=r.getGtmId(),o=r.getFbpId(),i=r.getAnalytics4Id(),c=r.getUniversalAnalyticsId(),s=r.getTiktokPixelId(),l=r.getIsEditor(),m=r.getStorefrontJSScripts();return t.createElement(t.Fragment,null,a&&!l&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(a,"');")}}),o&&!l&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(o,"');\n fbq('track', 'PageView');")}}),i&&!l&&t.createElement(t.Fragment,null,t.createElement("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(i)}),t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(i,"');")}})),c&&!l&&t.createElement(t.Fragment,null,t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;\n ga('create', '".concat(c,"', 'auto');\n ga('require', 'ec');")}}),t.createElement("script",{async:!0,src:"https://www.google-analytics.com/analytics.js"})),s&&!l&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:'!function (w, d, t) {\n w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n ttq.load(\''.concat(s,"');\n ttq.page();\n }(window, document, 'ttq');")}}),e(n()),m.map((function(t){return e(t)})))})),i=function(){var e=r.getGtmId(),n=r.getFbpId(),a=r.getIsEditor();return t.createElement(t.Fragment,null,e&&!a&&t.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id='.concat(e,'" height="0" width="0" style="display:none;visibility:hidden"></iframe>')}}),n&&!a&&t.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" \n src="https://www.facebook.com/tr?id='.concat(n,'&ev=PageView&noscript=1"/>')}}))};export{i as AnalyticsBody,o as AnalyticsHead};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { CheckoutStep } from "../components/checkout/model";
|
|
2
|
+
import { IkasCheckout, IkasBrand, IkasCategory, IkasOrderLineItem, IkasProduct, IkasThemeJsonPageType } from "../models";
|
|
3
|
+
import { IkasCart } from "../models/data/cart";
|
|
4
|
+
declare enum StorefrontEventType {
|
|
5
|
+
SESSION_START = 1,
|
|
6
|
+
PAGE_VIEW = 2,
|
|
7
|
+
PRODUCT_VIEW = 3,
|
|
8
|
+
ADD_TO_CART = 4,
|
|
9
|
+
VIEW_CART = 5,
|
|
10
|
+
ORDER_SUCCESS = 6,
|
|
11
|
+
BEGIN_CHECKOUT = 7,
|
|
12
|
+
CHECKOUT_STEP = 8,
|
|
13
|
+
CUSTOMER_REGISTER = 9,
|
|
14
|
+
CUSTOMER_VISIT = 10,
|
|
15
|
+
CUSTOMER_LOGIN = 11,
|
|
16
|
+
BRAND_VIEW = 12,
|
|
17
|
+
CATEGORY_VIEW = 13
|
|
18
|
+
}
|
|
19
|
+
declare enum StorefrontEventPageType {
|
|
20
|
+
INDEX = 1,
|
|
21
|
+
CATEGORY = 2,
|
|
22
|
+
BRAND = 3,
|
|
23
|
+
PRODUCT = 4,
|
|
24
|
+
CUSTOM = 5,
|
|
25
|
+
ACCOUNT = 6,
|
|
26
|
+
ADDRESSES = 7,
|
|
27
|
+
ORDERS = 8,
|
|
28
|
+
ORDER_DETAIL = 9,
|
|
29
|
+
LOGIN = 10,
|
|
30
|
+
REGISTER = 11,
|
|
31
|
+
FORGOT_PASSWORD = 12,
|
|
32
|
+
RECOVER_PASSWORD = 13,
|
|
33
|
+
CART = 14,
|
|
34
|
+
FAVORITE_PRODUCTS = 15,
|
|
35
|
+
SEARCH = 16,
|
|
36
|
+
NOT_FOUND = 17,
|
|
37
|
+
BLOG = 18,
|
|
38
|
+
BLOG_INDEX = 19,
|
|
39
|
+
BLOG_CATEGORY = 20,
|
|
40
|
+
CHECKOUT = 21
|
|
41
|
+
}
|
|
42
|
+
interface Event {
|
|
43
|
+
t: StorefrontEventType;
|
|
44
|
+
d: EventPayload;
|
|
45
|
+
ts: number;
|
|
46
|
+
}
|
|
47
|
+
interface EventPayload {
|
|
48
|
+
u: string;
|
|
49
|
+
r?: string;
|
|
50
|
+
utm?: UTMData;
|
|
51
|
+
pt?: StorefrontEventPageType;
|
|
52
|
+
d?: EventPayloadDetail;
|
|
53
|
+
m?: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
interface UTMData {
|
|
56
|
+
ca?: string;
|
|
57
|
+
c?: string;
|
|
58
|
+
m?: string;
|
|
59
|
+
s?: string;
|
|
60
|
+
t?: string;
|
|
61
|
+
}
|
|
62
|
+
interface EventPayloadDetail {
|
|
63
|
+
br?: BrandDetail;
|
|
64
|
+
ctg?: CategoryDetail;
|
|
65
|
+
pr?: ProductDetail;
|
|
66
|
+
crt?: CartDetail;
|
|
67
|
+
crtItm?: CartItemDetail;
|
|
68
|
+
chk?: CheckoutDetail;
|
|
69
|
+
cst?: CustomerDetail;
|
|
70
|
+
}
|
|
71
|
+
interface BrandDetail {
|
|
72
|
+
id: string;
|
|
73
|
+
}
|
|
74
|
+
interface CategoryDetail {
|
|
75
|
+
id: string;
|
|
76
|
+
}
|
|
77
|
+
interface ProductDetail {
|
|
78
|
+
id: string;
|
|
79
|
+
vid: string;
|
|
80
|
+
}
|
|
81
|
+
interface CartDetail {
|
|
82
|
+
id: string;
|
|
83
|
+
c: number;
|
|
84
|
+
}
|
|
85
|
+
interface CartItemDetail {
|
|
86
|
+
id: string;
|
|
87
|
+
c: number;
|
|
88
|
+
}
|
|
89
|
+
interface CheckoutDetail {
|
|
90
|
+
id: string;
|
|
91
|
+
s?: string;
|
|
92
|
+
}
|
|
93
|
+
interface CustomerDetail {
|
|
94
|
+
id?: string;
|
|
95
|
+
e?: string;
|
|
96
|
+
c?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export default class IkasAnalytics {
|
|
99
|
+
static SESSION_ID_KEY: string;
|
|
100
|
+
static VISITOR_ID_KEY: string;
|
|
101
|
+
static EXPIRY_LENGTH: number;
|
|
102
|
+
static sessionId?: string | null;
|
|
103
|
+
static visitorId?: string | null;
|
|
104
|
+
static createUUID(): Promise<string>;
|
|
105
|
+
static createSessionId(): Promise<void>;
|
|
106
|
+
static checkSessionId(): Promise<void>;
|
|
107
|
+
static checkVisitorId(): Promise<void>;
|
|
108
|
+
static getPageType(pageType: IkasThemeJsonPageType): StorefrontEventPageType | undefined;
|
|
109
|
+
static getCustomerData(): {
|
|
110
|
+
id: string | undefined;
|
|
111
|
+
e: string | undefined;
|
|
112
|
+
c: boolean;
|
|
113
|
+
};
|
|
114
|
+
static getCommonEventData(): {
|
|
115
|
+
u: string;
|
|
116
|
+
r: string;
|
|
117
|
+
pt: StorefrontEventPageType | undefined;
|
|
118
|
+
};
|
|
119
|
+
static sendEvents(events: Event[]): Promise<void>;
|
|
120
|
+
static sessionStart(): Promise<void>;
|
|
121
|
+
static pageView(pageType: IkasThemeJsonPageType): Promise<void>;
|
|
122
|
+
static productView(productDetail: IkasProduct): Promise<void>;
|
|
123
|
+
static addToCart(item: IkasOrderLineItem, quantity: number, cart: IkasCart): Promise<void>;
|
|
124
|
+
static viewCart(cart: IkasCart): Promise<void>;
|
|
125
|
+
static orderSuccess(checkout: IkasCheckout): Promise<void>;
|
|
126
|
+
static beginCheckout(checkout: IkasCheckout): Promise<void>;
|
|
127
|
+
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): Promise<void>;
|
|
128
|
+
static customerRegister(): Promise<void>;
|
|
129
|
+
static customerLogin(): Promise<void>;
|
|
130
|
+
static customerVisit(): Promise<void>;
|
|
131
|
+
static viewBrand(brand: IkasBrand): Promise<void>;
|
|
132
|
+
static viewCategory(category: IkasCategory): Promise<void>;
|
|
133
|
+
}
|
|
134
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as s}from'./../ext/tslib/tslib.es6.js';import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{IkasBaseStore as r}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/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 o}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"../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";var n,a;!function(t){t[t.SESSION_START=1]="SESSION_START",t[t.PAGE_VIEW=2]="PAGE_VIEW",t[t.PRODUCT_VIEW=3]="PRODUCT_VIEW",t[t.ADD_TO_CART=4]="ADD_TO_CART",t[t.VIEW_CART=5]="VIEW_CART",t[t.ORDER_SUCCESS=6]="ORDER_SUCCESS",t[t.BEGIN_CHECKOUT=7]="BEGIN_CHECKOUT",t[t.CHECKOUT_STEP=8]="CHECKOUT_STEP",t[t.CUSTOMER_REGISTER=9]="CUSTOMER_REGISTER",t[t.CUSTOMER_VISIT=10]="CUSTOMER_VISIT",t[t.CUSTOMER_LOGIN=11]="CUSTOMER_LOGIN",t[t.BRAND_VIEW=12]="BRAND_VIEW",t[t.CATEGORY_VIEW=13]="CATEGORY_VIEW"}(n||(n={})),function(t){t[t.INDEX=1]="INDEX",t[t.CATEGORY=2]="CATEGORY",t[t.BRAND=3]="BRAND",t[t.PRODUCT=4]="PRODUCT",t[t.CUSTOM=5]="CUSTOM",t[t.ACCOUNT=6]="ACCOUNT",t[t.ADDRESSES=7]="ADDRESSES",t[t.ORDERS=8]="ORDERS",t[t.ORDER_DETAIL=9]="ORDER_DETAIL",t[t.LOGIN=10]="LOGIN",t[t.REGISTER=11]="REGISTER",t[t.FORGOT_PASSWORD=12]="FORGOT_PASSWORD",t[t.RECOVER_PASSWORD=13]="RECOVER_PASSWORD",t[t.CART=14]="CART",t[t.FAVORITE_PRODUCTS=15]="FAVORITE_PRODUCTS",t[t.SEARCH=16]="SEARCH",t[t.NOT_FOUND=17]="NOT_FOUND",t[t.BLOG=18]="BLOG",t[t.BLOG_INDEX=19]="BLOG_INDEX",t[t.BLOG_CATEGORY=20]="BLOG_CATEGORY",t[t.CHECKOUT=21]="CHECKOUT"}(a||(a={}));var d=process.env.NEXT_PUBLIC_ANALYTICS_URL?"".concat(process.env.NEXT_PUBLIC_ANALYTICS_URL,"/sendEventV2"):"https://0.myikas.com/sendEventV2",c=function(){function c(){}return c.createUUID=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,fetch("".concat(process.env.NEXT_PUBLIC_BASE_URL,"/generate-id/1"))];case 1:return[4,t.sent().json()];case 2:return[2,t.sent().data[0]]}}))}))},c.createSessionId=function(){return t(this,void 0,void 0,(function(){var t,s,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),i={},[4,this.createUUID()];case 1:return i.id=e.sent(),i.expiry=Date.now()+this.EXPIRY_LENGTH,t=i,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,[4,this.sessionStart()];case 2:return e.sent(),[3,4];case 3:return s=e.sent(),console.error(s),[3,4];case 4:return[2]}}))}))},c.checkSessionId=function(){return t(this,void 0,void 0,(function(){var t,s,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,7,,8]),(t=localStorage.getItem(this.SESSION_ID_KEY))?(s=JSON.parse(t)).expiry<Date.now()||s.id.length<=13?[4,this.createSessionId()]:[3,2]:[3,4];case 1:return e.sent(),[3,3];case 2:this.sessionId=s.id,e.label=3;case 3:return[3,6];case 4:return[4,this.createSessionId()];case 5:e.sent(),e.label=6;case 6:return i.init({sessionId:this.sessionId||""}),[3,8];case 7:return r=e.sent(),console.error(r),[3,8];case 8:return[2]}}))}))},c.checkVisitorId=function(){return t(this,void 0,void 0,(function(){var t,s,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),(t=localStorage.getItem(this.VISITOR_ID_KEY))&&t.length>13?(this.visitorId=t,[3,3]):[3,1];case 1:return s=this,[4,this.createUUID()];case 2:s.visitorId=e.sent(),localStorage.setItem(this.VISITOR_ID_KEY,this.visitorId),e.label=3;case 3:return i.init({visitorId:this.visitorId}),[3,5];case 4:return r=e.sent(),console.error(r),[3,5];case 5:return[2]}}))}))},c.getPageType=function(t){switch(t){case o.INDEX:return a.INDEX;case o.CATEGORY:return a.CATEGORY;case o.BRAND:return a.BRAND;case o.PRODUCT:return a.PRODUCT;case o.CUSTOM:return a.CUSTOM;case o.ACCOUNT:return a.ACCOUNT;case o.ADDRESSES:return a.ADDRESSES;case o.ORDERS:return a.ORDERS;case o.ORDER_DETAIL:return a.ORDER_DETAIL;case o.LOGIN:return a.LOGIN;case o.REGISTER:return a.REGISTER;case o.FORGOT_PASSWORD:return a.FORGOT_PASSWORD;case o.RECOVER_PASSWORD:return a.RECOVER_PASSWORD;case o.CART:return a.CART;case o.FAVORITE_PRODUCTS:return a.FAVORITE_PRODUCTS;case o.SEARCH:return a.SEARCH;case o.NOT_FOUND:return a.NOT_FOUND;case o.BLOG:return a.BLOG;case o.BLOG_INDEX:return a.BLOG_INDEX;case o.BLOG_CATEGORY:return a.BLOG_CATEGORY;case o.CHECKOUT:return a.CHECKOUT}},c.getCustomerData=function(){var t=r.getInstance(),e=t.customerStore.customer;return{id:(null==e?void 0:e.id)||void 0,e:(null==e?void 0:e.email)||void 0,c:t.customerStore.customerConsentGranted}},c.getCommonEventData=function(){var t=r.getInstance();return{u:window.location.href,r:document.referrer,pt:t.currentPageType?this.getPageType(t.currentPageType):void 0}},c.sendEvents=function(s){var o;return t(this,void 0,void 0,(function(){var t,n,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),[4,this.checkSessionId()];case 1:return e.sent(),[4,this.checkVisitorId()];case 2:return e.sent(),t=r.getInstance(),n={e:s,scid:i.getSalesChannelId(),sfid:i.getStorefrontId(),sid:this.sessionId,vid:this.visitorId,cid:null===(o=t.customerStore.customer)||void 0===o?void 0:o.id},[4,fetch(d,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json","x-api-key":i.getApiKey()}})];case 3:return e.sent(),[3,5];case 4:return a=e.sent(),console.error(a),[3,5];case 5:return[2]}}))}))},c.sessionStart=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.SESSION_START,ts:Date.now(),d:s({},this.getCommonEventData())},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.pageView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PAGE_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{pt:this.getPageType(i)})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.productView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PRODUCT_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{pr:{id:i.id,vid:i.selectedVariant.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.addToCart=function(i,r,o){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:o.id,c:o.itemCount},crtItm:{id:i.id,c:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCart=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.VIEW_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:i.id,c:i.itemCount}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.orderSuccess=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ORDER_SUCCESS,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:"success"}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[4,this.createSessionId()];case 2:return e.sent(),[2]}}))}))},c.beginCheckout=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BEGIN_CHECKOUT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.checkoutStep=function(i,r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CHECKOUT_STEP,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerRegister=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_REGISTER,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerLogin=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_LOGIN,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerVisit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_VISIT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewBrand=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BRAND_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),br:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCategory=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CATEGORY_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),ctg:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.SESSION_ID_KEY="ikas_session_id",c.VISITOR_ID_KEY="ikas_visitor_id",c.EXPIRY_LENGTH=18e5,c}();export{c as default};
|