@ikas/storefront 5.0.0-beta.2 → 5.0.0-beta.21
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/analytics/analytics.d.ts +32 -37
- package/build/analytics/analytics.js +1 -1
- package/build/analytics/events.js +1 -1
- package/build/analytics/facebookPixel.d.ts +11 -15
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/googleAnalytics.d.ts +10 -13
- package/build/analytics/googleAnalytics.js +1 -1
- package/build/analytics/googleTagManager.d.ts +188 -191
- package/build/analytics/googleTagManager.js +1 -1
- package/build/analytics/googleUniversal.d.ts +5 -8
- package/build/analytics/googleUniversal.js +1 -1
- package/build/analytics/head/index.js +1 -1
- package/build/analytics/ikas.d.ts +33 -40
- package/build/analytics/ikas.js +1 -1
- package/build/analytics/index.d.ts +1 -1
- package/build/analytics/tiktokPixel.d.ts +9 -12
- package/build/analytics/tiktokPixel.js +1 -1
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +6 -6
- package/build/components/checkout/components/address-form/model.js +1 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
- package/build/components/checkout/components/cart-summary/index.js +1 -1
- package/build/components/checkout/components/customer-addresses/index.js +1 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +4 -1
- package/build/components/checkout/components/customer-addresses/model.js +1 -1
- package/build/components/checkout/components/delivery-methods/index.js +1 -1
- package/build/components/checkout/components/epaykolay-button/index.d.ts +5 -0
- package/build/components/checkout/components/epaykolay-button/index.js +1 -0
- package/build/components/checkout/components/epaykolay-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -1
- package/build/components/checkout/components/error/index.js +1 -1
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +1 -1
- package/build/components/checkout/components/error/payment-error/index.js +1 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +2 -1
- package/build/components/checkout/components/error/stock-error/index.js +1 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +1 -1
- package/build/components/checkout/components/error/unknown-error/index.js +1 -1
- package/build/components/checkout/components/expandable-section/index.js +1 -1
- package/build/components/checkout/components/form-item/index.js +1 -1
- package/build/components/checkout/components/klarna/index.js +1 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/index.js +1 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -1
- package/build/components/checkout/components/offer-product/index.d.ts +2 -1
- package/build/components/checkout/components/offer-product/index.js +1 -1
- package/build/components/checkout/components/paypal/index.d.ts +7 -0
- package/build/components/checkout/components/paypal/index.js +1 -0
- package/build/components/checkout/components/paypal/style.module.scss.js +1 -0
- package/build/components/checkout/components/quick-registration/completed.js +1 -1
- package/build/components/checkout/components/quick-registration/index.js +1 -1
- package/build/components/checkout/components/quick-registration/model.js +1 -1
- package/build/components/checkout/components/svg/epaykolay.d.ts +6 -0
- package/build/components/checkout/components/svg/epaykolay.js +1 -0
- package/build/components/checkout/index.d.ts +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +22 -44
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/modelMasterPass.d.ts +13 -23
- package/build/components/checkout/modelMasterPass.js +1 -1
- package/build/components/checkout/steps/step-info/index.js +1 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
- package/build/components/checkout/steps/step-payment/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -1
- package/build/components/checkout/steps/step-shipping/index.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/checkout/style.module.scss.js +1 -1
- package/build/components/checkout/types.d.ts +29 -0
- package/build/components/checkout/types.js +1 -0
- package/build/components/google-captcha/index.js +1 -1
- package/build/components/image/index.d.ts +1 -1
- package/build/components/image/index.js +1 -1
- package/build/components/link/index.js +1 -1
- package/build/components/page/ThemeComponent.js +1 -1
- package/build/components/page/functions.d.ts +3 -0
- package/build/components/page/functions.js +1 -0
- package/build/components/page/head.d.ts +1 -1
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.d.ts +4 -3
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/index.js +1 -1
- package/build/components/page-editor/model.d.ts +5 -1
- package/build/components/page-editor/model.js +1 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -1
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/useCustomerReviews.d.ts +2 -3
- package/build/hooks/useCustomerReviews.js +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.js +1 -1
- package/build/model-helpers/index.d.ts +5 -0
- package/build/model-helpers/order/line-item/option/value/functions.d.ts +3 -0
- package/build/model-helpers/order/line-item/option/value/functions.js +1 -0
- package/build/model-helpers/product/attribute-value/functions.d.ts +2 -0
- package/build/model-helpers/product/attribute-value/functions.js +1 -0
- package/build/model-helpers/product/functions.d.ts +10 -0
- package/build/model-helpers/product/functions.js +1 -0
- package/build/model-helpers/product/option-set/option/functions.d.ts +2 -0
- package/build/model-helpers/product/option-set/option/functions.js +1 -0
- package/build/model-helpers/product/variant/functions.d.ts +2 -0
- package/build/model-helpers/product/variant/functions.js +1 -0
- package/build/models/data/checkout/index.d.ts +4 -21
- package/build/models/data/index.d.ts +7 -138
- package/build/models/data/localized-customer-address/functions.d.ts +65 -0
- package/build/models/data/localized-customer-address/functions.js +1 -0
- package/build/models/data/localized-customer-address/index.d.ts +6 -0
- package/build/models/data/localized-order-address/functions.d.ts +63 -0
- package/build/models/data/localized-order-address/functions.js +1 -0
- package/build/models/data/localized-order-address/index.d.ts +6 -0
- package/build/models/data/review-form/index.d.ts +6 -0
- package/build/models/data/theme-json/component/index.d.ts +1 -0
- package/build/models/data/theme-json/component/index.js +1 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +1 -2
- package/build/models/data/theme-json/custom-data/index.js +1 -1
- package/build/models/data/theme-json/settings/color/index.js +1 -1
- package/build/models/index.d.ts +1 -0
- package/build/models/ui/blog-category-list/functions.d.ts +6 -0
- package/build/models/ui/blog-category-list/functions.js +1 -0
- package/build/models/ui/blog-category-list/index.d.ts +8 -42
- package/build/models/ui/blog-category-list/index.js +1 -1
- package/build/models/ui/blog-list/functions.d.ts +6 -0
- package/build/models/ui/blog-list/functions.js +1 -0
- package/build/models/ui/blog-list/index.d.ts +9 -45
- package/build/models/ui/blog-list/index.js +1 -1
- package/build/models/ui/brand-list/functions.d.ts +8 -0
- package/build/models/ui/brand-list/functions.js +1 -0
- package/build/models/ui/brand-list/index.d.ts +9 -48
- package/build/models/ui/brand-list/index.js +1 -1
- package/build/models/ui/category-list/functions.d.ts +8 -0
- package/build/models/ui/category-list/functions.js +1 -0
- package/build/models/ui/category-list/index.d.ts +9 -48
- package/build/models/ui/category-list/index.js +1 -1
- package/build/models/ui/customer-review-list/functions.d.ts +7 -0
- package/build/models/ui/customer-review-list/functions.js +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +8 -40
- package/build/models/ui/customer-review-summary-list/functions.d.ts +7 -0
- package/build/models/ui/customer-review-summary-list/functions.js +1 -0
- package/build/models/ui/customer-review-summary-list/index.d.ts +7 -39
- package/build/models/ui/index.d.ts +17 -10
- package/build/models/ui/list-commons/index.d.ts +13 -0
- package/build/models/ui/list-commons/index.js +1 -0
- package/build/models/ui/navigation-link/index.d.ts +3 -3
- package/build/models/ui/navigation-link/index.js +1 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +1 -1
- package/build/models/ui/product-attribute-detail/index.js +1 -1
- package/build/models/ui/product-attribute-list/index.js +1 -1
- package/build/models/ui/product-list/functions.d.ts +32 -0
- package/build/models/ui/product-list/functions.js +1 -0
- package/build/models/ui/product-list/index.d.ts +18 -110
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/raffle-list/functions.d.ts +6 -0
- package/build/models/ui/raffle-list/functions.js +1 -0
- package/build/models/ui/raffle-list/index.d.ts +14 -50
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/contact-form.js +1 -1
- package/build/models/ui/validator/form/customer-review.js +1 -1
- package/build/models/ui/validator/form/forgot-password.js +1 -1
- package/build/models/ui/validator/form/ikas-address.d.ts +32 -20
- package/build/models/ui/validator/form/ikas-address.js +1 -1
- package/build/models/ui/validator/form/login.js +1 -1
- package/build/models/ui/validator/form/raffle-form.js +1 -1
- package/build/models/ui/validator/form/recover-password.js +1 -1
- package/build/models/ui/validator/form/register.d.ts +10 -1
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/page-data-init/index.d.ts +7 -18
- package/build/page-data-init/index.js +1 -1
- package/build/pages/account/activate.d.ts +4 -0
- package/build/pages/account/activate.js +1 -0
- package/build/pages/checkout.js +1 -1
- package/build/pages/index.d.ts +1 -0
- package/build/store/analytics/index.d.ts +9 -0
- package/build/store/analytics/index.js +1 -0
- package/build/store/base/functions.d.ts +7 -0
- package/build/store/base/functions.js +1 -0
- package/build/store/{base.d.ts → base/index.d.ts} +7 -17
- package/build/store/base/index.js +1 -0
- package/build/store/base/public.d.ts +1 -0
- package/build/store/base/public.js +1 -0
- package/build/store/cart/functions.d.ts +24 -0
- package/build/store/cart/functions.js +1 -0
- package/build/store/cart/index.d.ts +7 -28
- package/build/store/cart/index.js +1 -1
- package/build/store/cart/public.d.ts +1 -0
- package/build/store/cart/public.js +1 -0
- package/build/store/customer/account-auth/data.d.ts +4 -0
- package/build/store/customer/account-auth/data.js +1 -0
- package/build/store/customer/account-auth/functions.d.ts +24 -0
- package/build/store/customer/account-auth/functions.js +1 -0
- package/build/store/customer/account-auth/public.d.ts +1 -0
- package/build/store/customer/captcha/data.d.ts +3 -0
- package/build/store/customer/captcha/data.js +1 -0
- package/build/store/customer/captcha/functions.d.ts +5 -0
- package/build/store/customer/captcha/functions.js +1 -0
- package/build/store/customer/captcha/public.d.ts +1 -0
- package/build/store/customer/consent/data.d.ts +3 -0
- package/build/store/customer/consent/data.js +1 -0
- package/build/store/customer/consent/functions.d.ts +6 -0
- package/build/store/customer/consent/functions.js +1 -0
- package/build/store/customer/consent/public.d.ts +1 -0
- package/build/store/customer/functions.d.ts +4 -0
- package/build/store/customer/functions.js +1 -0
- package/build/store/customer/index.d.ts +8 -82
- package/build/store/customer/index.js +1 -1
- package/build/store/customer/marketing/data.d.ts +3 -0
- package/build/store/customer/marketing/data.js +1 -0
- package/build/store/customer/marketing/functions.d.ts +5 -0
- package/build/store/customer/marketing/functions.js +1 -0
- package/build/store/customer/marketing/public.d.ts +1 -0
- package/build/store/customer/order/data.d.ts +4 -0
- package/build/store/customer/order/data.js +1 -0
- package/build/store/customer/order/functions.d.ts +11 -0
- package/build/store/customer/order/functions.js +1 -0
- package/build/store/customer/order/public.d.ts +1 -0
- package/build/store/customer/product/data.d.ts +17 -0
- package/build/store/customer/product/data.js +1 -0
- package/build/store/customer/product/functions.d.ts +20 -0
- package/build/store/customer/product/functions.js +1 -0
- package/build/store/customer/product/public.d.ts +1 -0
- package/build/store/customer/public.d.ts +8 -0
- package/build/store/customer/public.js +1 -0
- package/build/store/customer/raffle/functions.d.ts +1 -0
- package/build/store/customer/raffle/functions.js +1 -0
- package/build/store/customer/raffle/public.d.ts +1 -0
- package/build/store/index.d.ts +9 -4
- package/build/utils/constants.js +1 -1
- package/build/utils/helper.d.ts +1 -1
- package/build/utils/helper.js +1 -1
- package/build/utils/index.d.ts +1 -2
- package/package.json +17 -13
- package/build/ext/@builder.io/partytown/integration/index.mjs.js +0 -1
- package/build/ext/@builder.io/partytown/react/index.mjs.js +0 -1
- package/build/hooks/useStore.d.ts +0 -2
- package/build/hooks/useStore.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -25
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -14
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/country-settings-model.d.ts +0 -141
- package/build/models/data/checkout/country-settings-model.js +0 -1
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -21
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +0 -50
- package/build/models/data/customer/address/ikas-localized-customer-address.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -18
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -24
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -10
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/ikas-localized-order-address.d.ts +0 -32
- package/build/models/data/order/address/ikas-localized-order-address.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -69
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -46
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -9
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -32
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/tag/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/tag/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -16
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -26
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -82
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -77
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -70
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/star/index.d.ts +0 -6
- package/build/models/data/product/star/index.js +0 -1
- package/build/models/data/product/stock-location/index.d.ts +0 -8
- package/build/models/data/product/stock-location/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -11
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/state/location-translations/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -30
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -8
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
- package/build/models/data/storefront/meta-templates/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -14
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -10
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -16
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -47
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as n}from"mobx-react-lite";import a from"lodash/sortBy";import c from"../input-with-button/index.js";import
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as n}from"mobx-react-lite";import a from"lodash/sortBy";import c from"../input-with-button/index.js";import r from"../notification-box/index.js";import{IkasOrderFunctions as l,IkasCheckoutFunctions as i,formatCurrency as u,IkasPaymentGatewayFunctions as s}from"@ikas/storefront-model-functions";import{useTranslation as m}from"../../../../utils/i18n.js";import{CartItem as d}from"./cart-item/index.js";import{FormItem as p}from"../form-item/index.js";import{FormItemType as E}from"../form-item/model.js";import C from"../tooltip/index.js";import h from"../svg/arrow-down.js";import v from"../svg/cross.js";import f from"../svg/gift.js";import k from"./style.module.scss.js";import g from"../svg/ikas.js";import{IkasStorefrontConfig as N}from"@ikas/storefront-config";import{CheckoutStep as y}from"../../types.js";var S;!function(e){e.COUPON_CODE_NOT_EXIST="COUPON_CODE_NOT_EXIST",e.COUPON_CODE_NOT_EXIST_FOR_GUESS="COUPON_CODE_NOT_EXIST_FOR_GUESS"}(S||(S={}));var T=n((function(e){var t,n,a=e.vm,c=e.allowExpand,s=a.checkout,p=m().t,E=o.useState(!c),C=E[0],v=E[1],f=o.useState(!1),T=f[0],P=f[1],w=o.useState(null),j=w[0],A=w[1],R=o.useState(0),D=R[0],U=R[1],L=o.useState(null),F=L[0],B=L[1],X=o.useState(!1),G=X[0],V=X[1],M=o.useState(!1),z=M[0],H=M[1];o.useEffect((function(){c&&(C?F&&U(F.getBoundingClientRect().height):U(0))}),[C,F,c,G,z,T]);var Q=o.useMemo((function(){switch(j){case S.COUPON_CODE_NOT_EXIST:return p("checkout-page:giftCodeErrorDescription");case S.COUPON_CODE_NOT_EXIST_FOR_GUESS:return p("checkout-page:mustBeSignInToApplyCampaign");default:return""}}),[j]),q=[k.CartSummary,c?k.HideOnDesktop:""].join(" "),J=c?{height:D+"px"}:void 0,K=[k.ArrowDown,C?k.Rotated:""].join(" ");if(!s)return null;var W=l.getItemQuantity,Y=l.getShippingTotal,Z=l.getFormattedShippingTotal,$=i.getCheckoutFormattedTotalFinalPrice,ee=i.getCheckoutTotalTax,te=i.getCheckoutFormattedTotalTax;return o.createElement(o.Fragment,null,!!c&&o.createElement(o.Fragment,null,o.createElement("div",{id:"checkout-mobile-summary-header"}),o.createElement("div",{className:k.ExpandHeader,onClick:function(){if(!C){var e=document.getElementById("Checkout"),t=document.getElementById("checkout-mobile-summary-header");e&&t&&e.scrollTo({top:t.offsetTop,behavior:"smooth"})}v(!C)}},o.createElement("div",{className:k.Left},p("checkout-page:summary")),o.createElement("div",{className:k.Price},o.createElement("span",{className:k.PriceText},"".concat(u(a.finalPrice||0,s.currencyCode,s.currencySymbol)," (").concat(W(s)," ").concat(p("checkout-page:cartItemProduct"),")")),o.createElement("span",{className:K},o.createElement(h,null))))),o.createElement("div",{className:q},o.createElement("div",{className:k.DetailsContainer,style:J},o.createElement("div",{className:k.Details,ref:B},o.createElement("div",{className:k.ItemsContainer},s.orderLineItems.map((function(e,t){return o.createElement(d,{key:t,vm:a,cartItem:e,currencyCode:s.currencyCode})}))),o.createElement("div",{className:k.Divider}),o.createElement("div",{className:k.SubTotalInfo},T&&o.createElement("div",{className:k.NotificationContainer},o.createElement(r,{type:"warning",title:p("checkout-page:giftCodeErrorTitle"),content:Q,onClose:function(){P(!1),A(null)}})),o.createElement(b,{label:p("checkout-page:subtotal"),value:$(s),tooltipText:p("checkout-page:subtotalTooltip")}),!!(null===(t=s.shippingLines)||void 0===t?void 0:t.length)&&o.createElement(b,{label:p("checkout-page:cartShippingTitle"),value:Y(s)?Z(s):p("checkout-page:free")}),!!a.installmentExtraPrice&&o.createElement(b,{label:p("checkout-page:cartInterest"),value:u(a.installmentExtraPrice,s.currencyCode,s.currencySymbol)}),o.createElement(O,{vm:a}),o.createElement(x,{vm:a}),(a.step===y.SUCCESS&&(!!a.checkout.note||!!a.checkout.appliedCouponCode)||a.step!==y.SUCCESS)&&o.createElement("div",{className:k.Divider,style:{marginTop:"24px",marginBottom:"24px"}}),o.createElement(_,{vm:a,isAddingCoupon:z,setAddingCoupon:H,setCouponError:P,setCouponErrorCode:A}),o.createElement(I,{vm:a,isAddingNote:G,setAddingNote:V})),o.createElement("div",{className:k.TotalContainer},o.createElement("div",{className:k.TitleContainer},o.createElement("div",{className:k.Title},p("checkout-page:total"))),o.createElement("div",null,o.createElement("div",{className:k.TotalPricesContainer},o.createElement("div",{className:k.TotalPrice},u(a.finalPrice||0,s.currencyCode,s.currencySymbol)),!!ee(s)&&!!(null===(n=a.customizationProps)||void 0===n?void 0:n.showTax)&&o.createElement("div",{className:[k.TotalTax].join(" ")},p("checkout-page:cartTaxTitle")+" "+te(s))))),o.createElement("div",{className:k.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===N.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(g,null)))))))})),b=n((function(e){var t=e.label,n=e.value,a=e.tooltipText;return o.createElement("div",{className:k.InfoRow},o.createElement("div",{className:k.Label},o.createElement("span",null,t),!!a&&o.createElement(C,{text:a,style:{marginLeft:"8px"}})),o.createElement("div",{className:k.Value},n))})),O=n((function(e){var t=e.vm,n=m().t;if(!t.checkout)return null;var c=l.getNonCouponAdjustments;return o.createElement(o.Fragment,null,a(c(t.checkout)||[],"order").map((function(e,a){return o.createElement("div",{className:k.InfoRow,key:a},o.createElement("div",{className:k.Label},"INTEREST"===e.name?n("checkout-page:cartInterest"):e.name),o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",o.createElement("span",null,u(e.amount,t.checkout.currencyCode,t.checkout.currencySymbol))))})))})),x=n((function(e){var t,n=e.vm,a=m().t;if(!n.checkout)return null;var c=s.getCalculatedAdditionalPrices;return o.createElement(o.Fragment,null,n.step!==y.SUCCESS&&(n.checkout.selectedPaymentGateway&&c(n.checkout.selectedPaymentGateway,n.checkout.totalFinalPrice||0,n.checkout.shippingLines||null)||[]).filter((function(e){return 0!==e.amount})).map((function(e,t){return o.createElement("div",{className:k.InfoRow,key:t},o.createElement("div",{className:k.Label},e.name),o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",o.createElement("span",null,u(e.amount,n.checkout.currencyCode,n.checkout.currencySymbol))))})),null===(t=n.checkout.giftPackageLines)||void 0===t?void 0:t.map((function(e,t){return o.createElement("div",{className:k.InfoRow,key:t},o.createElement("div",{className:k.Label},o.createElement("div",{className:k.GiftLabel},o.createElement(f,{style:{position:"relative",top:"-1px"}}),o.createElement("span",null,a("checkout-page:giftPackage")))),o.createElement("div",{className:k.Value},o.createElement("span",null,u(e.price,n.checkout.currencyCode,n.checkout.currencySymbol))))})))})),_=n((function(n){var a=n.vm,r=n.isAddingCoupon,i=n.setAddingCoupon,s=n.setCouponError,d=n.setCouponErrorCode,p=m().t,E=o.useState(""),C=E[0],h=E[1],f=o.useState(!1),g=f[0],N=f[1],S=o.useRef(null),T=l.getCouponAdjustment;o.useEffect((function(){r&&S.current&&S.current.focus()}),[r]);if(a.step===y.SUCCESS&&!a.checkout.appliedCouponCode)return null;var b=T(a.checkout);return o.createElement("div",{className:k.InfoRow},!a.checkout.appliedCouponCode&&!r&&o.createElement("div",{className:k.ActionTextBtn,onClick:function(){return i(!0)}},p("checkout-page:addCouponCode")),r&&o.createElement(c,{value:C,placeholder:p("checkout-page:couponCode"),buttonLabel:p("checkout-page:actions.apply"),inputRef:S,onClick:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=C,N(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),N(!1),h(""),a.checkout.appliedCouponCode&&!a.couponError?(i(!1),s(!1),d(null)):(a.checkout.couponCode=null,s(!0),d(a.couponError)),[2]}}))}))},isLoading:g,onChange:h}),!!a.checkout.appliedCouponCode&&!r&&o.createElement("div",{className:[k.ActionTextBtn,k.NoUnderline,k.Light].join(" ")},p("checkout-page:couponCode"),o.createElement("span",{className:k.AppliedCoupon},o.createElement("span",{className:k.CouponCode},a.checkout.appliedCouponCode),a.step!==y.SUCCESS&&o.createElement("span",{className:k.ClearCoupon,onClick:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=null,N(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),N(!1),[2]}}))}))}},o.createElement(v,null)))),!!a.checkout.appliedCouponCode&&!r&&o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===(null==b?void 0:b.type)?"- ":"")," ",o.createElement("span",null,u((null==b?void 0:b.amount)||0,a.checkout.currencyCode,a.checkout.currencySymbol))))})),I=n((function(e){var t=e.vm,n=e.isAddingNote,a=e.setAddingNote,c=m().t,r=o.useState(t.checkout.note?c("checkout-page:editOrderNote"):c("checkout-page:addOrderNote"))[0],l=o.useCallback((function(){a(!0)}),[]),i=o.useCallback((function(e){t.checkout.note=e}),[t,t.checkout]);if(!t.checkoutSettings.showCheckoutNote)return null;var u=t.step===y.SUCCESS;return u&&!t.checkout.note?null:o.createElement("div",{className:k.InfoRow},!n&&!u&&o.createElement("div",{className:k.ActionTextBtn,onClick:l},r),(n||u)&&o.createElement("div",{className:[k.CheckoutNoteContainer,u?k.Success:""].join(" ")},o.createElement("div",{className:k.Title},c("checkout-page:orderNote")),u?o.createElement("div",{className:k.CheckoutNoteDisplay},t.checkout.note):o.createElement(p,{style:{width:"100%"},type:E.TEXT_AREA,disableResize:!0,label:"",value:t.checkout.note||"",onChange:i})))}));export{T as CartSummary,S as CouponErrorCode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import s from"../../style.module.scss.js";import r from"../select-box/index.js";import{AddressForm as
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import s from"../../style.module.scss.js";import r from"../select-box/index.js";import{AddressForm as i}from"../address-form/index.js";import{Checkbox as o}from"../checkbox/index.js";import{FormItem as d}from"../form-item/index.js";import{FormItemType as a}from"../form-item/model.js";import l from"./style.module.scss.js";import m from"../../styles/common.module.scss.js";import{Button as n}from"../button/index.js";import{IkasCustomerAddressFunctions as c}from"@ikas/storefront-model-functions";import{useTranslation as u}from"../../../../utils/i18n.js";import p from"../delivery-methods/index.js";import"@ikas/storefront-models";import{isValidLocalizedCustomerAddress as v}from"../../../../models/data/localized-customer-address/functions.js";import"@ikas/localized-address";import"mobx";import"@ikas/storefront-api";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/category-list/index.js";import{IkasStorefrontConfig as f}from"@ikas/storefront-config";import"../../../../models/ui/product-attribute-detail/index.js";import"../../../../models/ui/product-attribute-list/index.js";import"../../../../models/ui/product-list/functions.js";import"../../../../models/ui/product-list/index.js";import"@ikas/storefront-providers";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"../../../../store/base/index.js";import"lodash/flatten";import"lodash/sortBy";import"../../../../store/cart/index.js";import{CheckoutStep as g}from"../../types.js";import{IkasCustomerStore as h}from"../../../../store/customer/index.js";import"../../../../analytics/events.js";import"lodash/cloneDeep";import"../../../../store/analytics/index.js";import"../../../../analytics/ikas.js";import"../../../../store/customer/consent/data.js";import"../../../../analytics/head/index.js";import"../../../../store/customer/account-auth/data.js";import"../../../../store/customer/captcha/data.js";import"../../../../store/customer/product/data.js";import"lodash/xorBy";import'./../../../../ext/@ikas/fe-api-client/build/utils/api.js';import'./../../../../ext/axios/index.js';import'./../../../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../../../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../../../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../../../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import"../../../../store/customer/marketing/data.js";import"../../../../store/customer/order/data.js";var k=t((function(t){var i,o=t.vm,d=u().t,a=e.useMemo((function(){return e.createElement("div",null,e.createElement(E,{vm:o}),e.createElement(b,{vm:o}))}),[o]),k=e.useMemo((function(){return e.createElement("div",null,e.createElement(C,{vm:o}))}),[o]),j=e.useState("-1"),y=j[0],A=j[1];e.useEffect((function(){o.vm.checkout.stockLocationId&&A(o.vm.checkout.stockLocationId)}),[]);var x=function(e){if(!e.address)return"";var t=[];return e.address.address&&t.push(e.address.address),e.address.postalCode&&t.push(e.address.postalCode),e.address.district&&e.address.district.name&&t.push(e.address.district.name),e.address.city&&e.address.city.name&&t.push(e.address.city.name),e.address.state&&e.address.state.name&&"Default"!==e.address.state.name&&t.push(e.address.state.name),e.address.country&&e.address.country.name&&t.push(e.address.country.name),t.join(", ")},T=c.getCustomerAddressText,N=v;return e.createElement(e.Fragment,null,!!f.getPickupStockLocationIds()&&!o.vm.isDigitalOnly&&o.vm.availableStockLocations.length>0&&o.vm.step!==g.PAYMENT&&e.createElement(e.Fragment,null,e.createElement("div",{className:m.FormSectionTitle},e.createElement("div",{className:m.Title},d("checkout-page:deliveryMethod"))),e.createElement(p,{deliveryMethod:o.vm.deliveryMethod,onClick:function(e){"address"===e&&A("-1"),o.vm.onDeliveryMethodChange(e)}})),e.createElement("div",{className:m.FormSectionTitle},"address"===o.vm.deliveryMethod?e.createElement("div",{className:m.Title},o.editingCustomerAddress?d("checkout-page:editAddress"):"billing"===o.addressType?d("checkout-page:billingAddress"):d("checkout-page:shippingAddress")):o.vm.step===g.PAYMENT?e.createElement("div",{className:m.Title},d("checkout-page:billingAddress")):e.createElement("div",{className:m.Title},d("checkout-page:pickUpLocation"),e.createElement("span",{className:l.ErrorMessage},o.vm.isErrorsVisible&&!o.vm.checkout.stockLocationId&&d("checkout-page:errorPickupLocationRequired"))),!!o.editingCustomerAddress&&e.createElement("div",{className:l.CancelEdit,onClick:o.onCancelEditAddressClick},d("checkout-page:actions.cancel"))),!!h.customer&&!o.editingCustomerAddress&&("address"===o.vm.deliveryMethod||o.vm.step===g.PAYMENT&&"in-store"===o.vm.deliveryMethod)&&e.createElement("div",{className:s.RowPB},null===(i=o.vm.customerAddresses)||void 0===i?void 0:i.map((function(t){return e.createElement(r,{key:t.id,label:t.title||"",isSelected:t.id===o.selectedAddressId,rightContent:e.createElement("div",{onClick:function(){return o.onEditAddressClick(t)}},d("checkout-page:actions.edit")),bottomContent:e.createElement("div",{className:l.AddressText},T(t)),bottomContentVisible:!0,hasError:!N(t),errorText:d("checkout-page:missingAddressFields"),onClick:function(){return t.id!==o.selectedAddressId&&o.onAddressSelect(t)}})})),e.createElement(r,{label:d("checkout-page:newAddress"),isSelected:"-1"===o.selectedAddressId,bottomContent:a,onClick:function(){return"-1"!==o.selectedAddressId&&o.onAddressSelect()}})),h.customer||o.vm.step!==g.INFO||"address"!==o.vm.deliveryMethod?o.vm.step===g.PAYMENT&&!h.customer&&a:a,"in-store"===o.vm.deliveryMethod&&e.createElement("div",{className:s.RowPB},o.vm.stockLocations.map((function(t){return function(e){return e.address&&e.address.address&&e.address.city&&e.address.country&&o.vm.availableStockLocations.find((function(t){return t.id===e.id}))}(t)&&e.createElement(r,{key:t.id,label:t.name||"",isSelected:y===t.id,bottomContent:e.createElement("div",null,e.createElement("div",{className:l.AddressText},x(t)),t.deliveryTime&&e.createElement("div",{className:l.DeliveryTime},d("checkout-page:stockLocation.deliveryTime.".concat(t.deliveryTime)))),bottomContentVisible:!0,onClick:function(){o.vm.onStockLocationChange(t),A(t.id)}})}))),"in-store"===o.vm.deliveryMethod&&o.vm.step!==g.PAYMENT&&e.createElement(e.Fragment,null,e.createElement("div",{className:m.FormSectionTitle},e.createElement("div",{className:m.Title},d("checkout-page:recipientsInfo"))),k),!!o.editingCustomerAddress&&e.createElement(E,{vm:o}),!!o.editingCustomerAddress&&e.createElement("div",{className:l.EditAddressActions},e.createElement(n,{style:{width:"100%"},text:d("checkout-page:deleteAddress"),isLine:!0,isLoading:o.isDeleteAddressLoading,isDisabled:o.isEditAddressLoading,onClick:o.onDeleteAddressClick}),e.createElement(n,{style:{width:"100%",marginTop:h.customer?"0px":"32px"},text:d("checkout-page:actions.save"),isLoading:o.isEditAddressLoading,isDisabled:o.isDeleteAddressLoading,onClick:o.onSaveAddressClick})))})),E=t((function(t){var s=t.vm;return e.createElement(i,{address:s.editingCustomerAddress||s.address,isErrorsVisible:s.isEditAddressErrorsVisible||s.vm.isErrorsVisible,allowedCountryIds:s.vm.shippingCountryIds||void 0,allowCorporateInfo:"billing"===s.addressType,firstNameChangeCallback:s.firstNameChangeCallback,lastNameChangeCallback:s.lastNameChangeCallback,allowTitleChange:!!s.editingCustomerAddress,deliveryMethod:"address"})})),C=t((function(t){var s=t.vm;return e.createElement(i,{address:s.editingCustomerAddress||s.address,isErrorsVisible:s.isEditAddressErrorsVisible||s.vm.isErrorsVisible,firstNameChangeCallback:s.firstNameChangeCallback,lastNameChangeCallback:s.lastNameChangeCallback,deliveryMethod:"in-store"})})),b=t((function(t){var s=t.vm,r=u().t;return h.customer&&"-1"===s.selectedAddressId?e.createElement("div",{style:{marginTop:"12px"}},e.createElement(o,{value:s.vm.shouldSaveAddress,label:r("checkout-page:saveAddressCta"),onChange:s.vm.setShouldSaveAddress}),s.vm.shouldSaveAddress&&e.createElement("div",{style:{marginTop:"8px"}},e.createElement(d,{type:a.TEXT,label:r("checkout-page:addressTitle"),value:s.vm.addressTitle,onChange:s.vm.setAddressTitle}))):null}));export{E as CustomerAddressForm,C as RecipientForm,b as SaveAddressCheckboxAndTitle,k as default};
|
|
@@ -9,7 +9,10 @@ export default class CustomerAddressesViewModel {
|
|
|
9
9
|
isEditAddressLoading: boolean;
|
|
10
10
|
isEditAddressErrorsVisible: boolean;
|
|
11
11
|
constructor(vm: CheckoutViewModel, addressType: AddressType);
|
|
12
|
-
get address():
|
|
12
|
+
get address(): ({
|
|
13
|
+
countrySettings: import("@ikas/localized-address").LocalizedAddressModel | null;
|
|
14
|
+
checkoutSettings: import("@ikas/storefront-models/build-cjs/models/checkout-settings").IkasCheckoutSettings | null;
|
|
15
|
+
} & import("@ikas/storefront-models/build-cjs/models/order/address").IkasOrderAddress) | null;
|
|
13
16
|
get selectedAddressId(): string | undefined;
|
|
14
17
|
onAddressSelect: (address?: IkasLocalizedCustomerAddress) => void;
|
|
15
18
|
onEditAddressClick: (address?: IkasLocalizedCustomerAddress) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as s,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import e from"lodash/cloneDeep";import"@ikas/storefront-models";import{createIkasLocalizedCustomerAddress as r,isValidLocalizedCustomerAddress as o}from"../../../../models/data/localized-customer-address/functions.js";import"@ikas/localized-address";import"@ikas/storefront-api";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/category-list/index.js";import"@ikas/storefront-config";import"../../../../models/ui/product-attribute-detail/index.js";import"../../../../models/ui/product-attribute-list/index.js";import"../../../../models/ui/product-list/functions.js";import"../../../../models/ui/product-list/index.js";import"@ikas/storefront-providers";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{saveCustomer as d}from"../../../../store/customer/account-auth/functions.js";import"../../../../store/base/index.js";import"lodash/flatten";import"lodash/sortBy";import{IkasOrderFunctions as n}from"@ikas/storefront-model-functions";import"../../../../store/cart/index.js";import"../../types.js";import{IkasCustomerStore as a}from"../../../../store/customer/index.js";import"../../../../analytics/events.js";import"../../../../store/analytics/index.js";import"../../../../analytics/ikas.js";import"../../../../store/customer/consent/data.js";import"../../../../analytics/head/index.js";import"../../../../store/customer/account-auth/data.js";import"../../../../store/customer/product/data.js";import"lodash/xorBy";import"../../../../store/customer/captcha/data.js";import"../../../../store/customer/marketing/data.js";import"../../../../store/customer/order/data.js";var m=function(){function m(m,l){var u=this;this.editingCustomerAddress=null,this.isDeleteAddressLoading=!1,this.isEditAddressLoading=!1,this.isEditAddressErrorsVisible=!1,this.onAddressSelect=function(s){("shipping"===u.addressType?u.vm.onSelectedShippingAddressIdChange:u.vm.onSelectedBillingAddressIdChange)((null==s?void 0:s.id)||"-1")},this.onEditAddressClick=function(s){var t=e(s)||r({},u.vm.checkoutSettings,u.vm.countrySettings);t.countrySettings=u.vm.countrySettings,t.checkoutSettings=u.vm.checkoutSettings,u.editingCustomerAddress=t},this.onCancelEditAddressClick=function(){u.isDeleteAddressLoading||u.isEditAddressLoading||(u.editingCustomerAddress=null)},this.onDeleteAddressClick=function(){return s(u,void 0,void 0,(function(){var s,i,r,o,n,m=this;return t(this,(function(t){switch(t.label){case 0:if(-1===(s=null===(o=null===(r=a.customer)||void 0===r?void 0:r.addresses)||void 0===o?void 0:o.findIndex((function(s){var t;return s.id===(null===(t=m.editingCustomerAddress)||void 0===t?void 0:t.id)})))||void 0===s)return[3,5];i=e(a.customer),null===(n=i.addresses)||void 0===n||n.splice(s,1),t.label=1;case 1:return t.trys.push([1,3,4,5]),this.isDeleteAddressLoading=!0,[4,d(i)];case 2:return t.sent()&&(this.editingCustomerAddress=null),[3,5];case 3:return t.sent(),[3,5];case 4:return this.isDeleteAddressLoading=!1,[7];case 5:return[2]}}))}))},this.onSaveAddressClick=function(){return s(u,void 0,void 0,(function(){var s,i,r,n,m,l=this;return t(this,(function(t){switch(t.label){case 0:if(this.isDeleteAddressLoading||this.isEditAddressLoading)return[2];if(s=o,!this.editingCustomerAddress||!s(this.editingCustomerAddress))return this.isEditAddressErrorsVisible=!0,[2];if(-1===(i=null===(m=null===(n=a.customer)||void 0===n?void 0:n.addresses)||void 0===m?void 0:m.findIndex((function(s){var t;return s.id===(null===(t=l.editingCustomerAddress)||void 0===t?void 0:t.id)})))||void 0===i)return[3,5];(r=e(a.customer)).addresses[i]=e(this.editingCustomerAddress),t.label=1;case 1:return t.trys.push([1,3,4,5]),this.isEditAddressLoading=!0,[4,d(r)];case 2:return t.sent()&&(this.onAddressSelect(this.editingCustomerAddress),this.editingCustomerAddress=null,this.isEditAddressErrorsVisible=!1),[3,5];case 3:return t.sent(),[3,5];case 4:return this.isEditAddressLoading=!1,[7];case 5:return[2]}}))}))},this.firstNameChangeCallback=function(s){(!(0,n.hasCustomer)(u.vm.checkout)&&"shipping"===u.addressType||u.vm.isDigitalOnly)&&(u.vm.checkout.customer.firstName=s)},this.lastNameChangeCallback=function(s){(!(0,n.hasCustomer)(u.vm.checkout)&&"shipping"===u.addressType||u.vm.isDigitalOnly)&&(u.vm.checkout.customer.lastName=s)},this.vm=m,this.addressType=l,i(this)}return Object.defineProperty(m.prototype,"address",{get:function(){return"shipping"===this.addressType?this.vm.checkout.shippingAddress:this.vm.checkout.billingAddress},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectedAddressId",{get:function(){return"shipping"===this.addressType?this.vm.selectedShippingAddressId:this.vm.selectedBillingAddressId},enumerable:!1,configurable:!0}),m}();export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import o from"./style.module.scss.js";import r from"../../styles/common.module.scss.js";import{IconButton as i}from"./icon-button/index.js";import s from"./icons/box.js";import n from"./icons/store.js";import"@ikas/storefront-
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import o from"./style.module.scss.js";import r from"../../styles/common.module.scss.js";import{IconButton as i}from"./icon-button/index.js";import s from"./icons/box.js";import n from"./icons/store.js";import"@ikas/storefront-model-functions";import{useTranslation as m}from"../../../../utils/i18n.js";var c=t((function(t){var c=t.deliveryMethod,l=t.onClick,a=m().t;return e.createElement("div",{className:o.main},e.createElement("div",{className:[r.Grid,r.Grid2].join(" ")},e.createElement(i,{icon:e.createElement(s,null),type:"address",text:a("checkout-page:deliveryToAddress"),isSelected:"address"===c,onClick:function(e){return l(e)}}),e.createElement(i,{icon:e.createElement(n,null),type:"in-store",text:a("checkout-page:inStoreDelivery"),isSelected:"in-store"===c,onClick:function(e){return l(e)}})))}));export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import a from"./style.module.scss.js";import l from"../svg/epaykolay.js";var t=function(t){return e.createElement("div",{className:a.Container},e.createElement("div",{className:a.Text},e.createElement("strong",null,"e-Pay Kolay")," ile ödeyerek adres ve kart bilgilerinizi girmeden alışverişlerinizi hızlı bir şekilde tamamlayın."),e.createElement("div",{className:a.EPayKolayButton,onClick:t.onClick},e.createElement("div",{className:a.Icon},e.createElement(l,null)),e.createElement("div",{className:a.ButtonText}," ile Öde")))};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from'./../../../../ext/style-inject/dist/style-inject.es.js';var e={Container:"style-module_Container__oDKWq",Text:"style-module_Text__Ps262",EPayKolayButton:"style-module_EPayKolayButton__c8OjL",ButtonText:"style-module_ButtonText__G12-2"};n(".style-module_Container__oDKWq {\n width: 100%;\n padding: 16px 24px;\n background-color: rgb(237, 238, 240);\n border-radius: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_Container__oDKWq .style-module_Text__Ps262 {\n flex: 1 1 auto;\n}\n.style-module_Container__oDKWq .style-module_Text__Ps262 strong {\n font-weight: 500;\n}\n.style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n flex: 0 0 auto;\n width: 230px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgb(35, 154, 255);\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.3s;\n margin-left: 24px;\n padding-top: 4px;\n}\n.style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL .style-module_ButtonText__G12-2 {\n color: white;\n margin-bottom: 2px;\n margin-left: 2px;\n font-weight: 500;\n}\n@media only screen and (max-width: 1440px) {\n .style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n margin-left: 16px;\n }\n}\n@media only screen and (max-width: 1280px) {\n .style-module_Container__oDKWq {\n flex-direction: column;\n }\n .style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n margin-left: 0;\n margin-top: 12px;\n }\n}\n@media only screen and (max-width: 1024px) {\n .style-module_Container__oDKWq {\n margin: 0 12px;\n width: calc(100% - 24px);\n margin-bottom: 24px;\n }\n}");export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{observer as
|
|
1
|
+
import*as o from"react";import{observer as t}from"mobx-react-lite";import e from"../../notification-box/index.js";import"@ikas/storefront-model-functions";import{useTranslation as r}from"../../../../../utils/i18n.js";var n=t((function(t){t.vm;var n=t.onClose,i=r().t;return o.createElement(e,{type:"warning",content:o.createElement("div",null,i("checkout-page:errorCustomerRequired")),onClose:n})}));export{n as CustomerLoginRequiredError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"react";import{observer as e}from"mobx-react-lite";import{
|
|
1
|
+
import*as r from"react";import{observer as e}from"mobx-react-lite";import{UnknownError as o}from"./unknown-error/index.js";import{PaymentError as t}from"./payment-error/index.js";import{NoShippingError as n}from"./no-shipping-error/index.js";import{CustomerLoginRequiredError as l}from"./customer-login-required-error/index.js";import{ErrorType as a}from"../../types.js";var m=e((function(e){var m,i=e.vm,s=r.useRef(null),c=r.useCallback((function(){i.error=void 0}),[i]),u=null;switch(null===(m=i.error)||void 0===m?void 0:m.type){case a.PAYMENT_ERROR:u=r.createElement(t,{error:i.error,onClose:c});break;case a.NO_SHIPPING_ERROR:u=r.createElement(n,null);break;case a.CUSTOMER_LOGIN_REQUIRED_ERROR:u=r.createElement(l,{vm:i,onClose:c});break;case a.API_ERROR:case a.UNKNOWN:u=r.createElement(o,{error:i.error,onClose:c});break;default:u=null}return u?(s.current&&s.current.scrollIntoView(),r.createElement("div",{ref:s,style:{marginBottom:"24px"}},u)):null}));export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as t from"react";import{observer as o}from"mobx-react-lite";import r from"../../notification-box/index.js";import"@ikas/storefront-model-functions";import{useTranslation as i}from"../../../../../utils/i18n.js";var e=o((function(){var o=i().t;return t.createElement(r,{type:"warning",content:o("checkout-page:errorNoShipping")})}));export{e as NoShippingError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{observer as r}from"mobx-react-lite";import t from"../../notification-box/index.js";import"@ikas/storefront-
|
|
1
|
+
import*as o from"react";import{observer as r}from"mobx-react-lite";import t from"../../notification-box/index.js";import"@ikas/storefront-model-functions";import{useTranslation as e}from"../../../../../utils/i18n.js";var n=r((function(r){var n=r.error,i=r.onClose,m=e().t;return o.createElement(t,{type:"error",content:(null==n?void 0:n.data)||m("checkout-page:errorPayment"),onClose:i})}));export{n as PaymentError};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import CheckoutViewModel
|
|
2
|
+
import CheckoutViewModel from "../../../../../components/checkout/model";
|
|
3
|
+
import { CheckoutError } from "../../../types";
|
|
3
4
|
declare type Props = {
|
|
4
5
|
vm: CheckoutViewModel;
|
|
5
6
|
error: CheckoutError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'./../../../../../ext/tslib/tslib.es6.js';import*as r from"react";import{observer as o}from"mobx-react-lite";import i from"../../notification-box/index.js";import{CartItem as n}from"../../cart-summary/cart-item/index.js";import c from"./style.module.scss.js";import{Button as a}from"../../button/index.js";import"@ikas/storefront-
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../../ext/tslib/tslib.es6.js';import*as r from"react";import{observer as o}from"mobx-react-lite";import i from"../../notification-box/index.js";import{CartItem as n}from"../../cart-summary/cart-item/index.js";import c from"./style.module.scss.js";import{Button as a}from"../../button/index.js";import"@ikas/storefront-model-functions";import{useTranslation as s}from"../../../../../utils/i18n.js";var m=o((function(o){var m=o.vm,l=o.error,u=s().t,d=r.useState(!1),p=d[0],f=d[1],v=l.data,k=r.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return f(!0),[4,m.removeUnavailableItems(v)];case 1:return e.sent(),window.location.reload(),[2]}}))}))}),[m]);return r.createElement(i,{type:"warning",title:u("checkout-page:errorStockTitle"),content:r.createElement("div",null,r.createElement("div",{className:c.Description},u("checkout-page:errorStockDescription")),v.map((function(e,t){var o;return r.createElement("div",{key:t},r.createElement(n,{vm:m,cartItem:e.item,currencyCode:(null===(o=m.checkout)||void 0===o?void 0:o.currencyCode)||"",stockErrorItem:e}))})),r.createElement("div",{className:c.Actions},r.createElement(a,{style:{width:"100%"},text:u("checkout-page:actions.backToCart"),isLine:!0,isDisabled:p,onClick:m.onGoToCartClick}),r.createElement(a,{style:{width:"100%"},text:u("checkout-page:actions.updateCart"),isLoading:p,onClick:k})))})}));export{m as StockError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{observer as r}from"mobx-react-lite";import t from"../../notification-box/index.js";import"@ikas/storefront-
|
|
1
|
+
import*as o from"react";import{observer as r}from"mobx-react-lite";import t from"../../notification-box/index.js";import"@ikas/storefront-model-functions";import{useTranslation as e}from"../../../../../utils/i18n.js";var n=r((function(r){var n=r.error,i=r.onClose,m=e().t;return o.createElement(t,{type:"error",content:o.createElement("div",null,(null==n?void 0:n.data)||m("checkout-page:errorUnknown")),onClose:i})}));export{n as UnknownError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import a from"./style.module.scss.js";import"@ikas/storefront-
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import a from"./style.module.scss.js";import"@ikas/storefront-model-functions";import{useTranslation as o}from"../../../../utils/i18n.js";var i=t((function(t){var i=t.title,r=t.children,s=o().t,c=e.useState(!1),n=c[0],m=c[1];return e.createElement("div",{className:a.ExpandableSection},e.createElement("div",{className:a.Top,onClick:function(){return m(!n)}},e.createElement("div",{className:a.Title},i),e.createElement("div",{className:a.HideBtn},s(n?"checkout-page:actions.hide":"checkout-page:actions.show"))),n&&!!r&&e.createElement("div",{className:a.Content},r))}));export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{runInAction as t}from"mobx";import{observer as n}from"mobx-react-lite";import o,{FormItemType as r}from"./model.js";import a from"./caret-down.js";import l from"./style.module.scss.js";import"@ikas/storefront-
|
|
1
|
+
import*as e from"react";import{runInAction as t}from"mobx";import{observer as n}from"mobx-react-lite";import o,{FormItemType as r}from"./model.js";import a from"./caret-down.js";import l from"./style.module.scss.js";import"@ikas/storefront-model-functions";import{useTranslation as u}from"../../../../utils/i18n.js";import i from"react-tooltip";import{PhoneNumberInput as c}from"../phone-number-input/index.js";var s=n((function(n){var a=u().t,s=e.useState((function(){return new o(n)})),d=s[0],E=s[1];return e.useEffect((function(){i.rebuild()}),[]),e.useEffect((function(){t((function(){d.type=n.type}))}),[n.type]),e.useEffect((function(){t((function(){d.inputType=n.inputType}))}),[n.inputType]),e.useEffect((function(){t((function(){d.value=n.value}))}),[n.value]),e.useEffect((function(){t((function(){d.options=n.options}))}),[n.options]),e.useEffect((function(){t((function(){d.label=n.label}))}),[n.label]),e.useEffect((function(){t((function(){d.hasError=n.hasError}))}),[n.hasError]),e.useEffect((function(){t((function(){d.errorText=n.errorText}))}),[n.errorText]),e.useEffect((function(){t((function(){d.errorText=n.errorText}))}),[n.errorText]),e.useEffect((function(){t((function(){d.textAreaPlaceholder=n.textAreaPlaceholder}))}),[n.textAreaPlaceholder]),e.useEffect((function(){t((function(){d.rightContent=n.rightContent}))}),[n.rightContent]),e.useEffect((function(){t((function(){d.disableResize=n.disableResize}))}),[n.disableResize]),e.useEffect((function(){t((function(){E(new o(n))}))}),[n.onChange]),e.useEffect((function(){!d.country&&n.currentCountryCode&&d.onCountryChange(n.currentCountryCode)}),[n.currentCountryCode]),e.createElement("div",{className:d.formItemStyle,style:n.style},e.createElement("div",{className:l.FormItemWrapper},e.createElement("div",{className:l.FormItemInputWrapper},e.createElement("label",{className:d.labelStyle},d.label),d.type===r.TEXT&&e.createElement(m,{vm:d,type:d.inputType,disabled:d.disabled,required:n.required,pattern:n.pattern,autocomplete:n.autocomplete,name:n.name}),d.type===r.TEL&&e.createElement(c,{key:n.currentCountryCode||"1",disabled:d.disabled,defaultCountry:n.currentCountryCode,placeholder:a("checkout-page:enterPhoneNumber"),value:d.value?d.value:"",onChange:d.onPhoneChange}),d.type===r.TEXT_AREA&&e.createElement(f,{vm:d}),d.type===r.SELECT&&e.createElement(p,{vm:d,autocomplete:n.autocomplete})),!!d.hasError&&e.createElement("div",{className:l.ErrorMsg},d.errorText||""),!!n.tooltipText&&e.createElement("div",{className:l.FormItemTooltipContainer,"data-tip":n.tooltipText,"data-event":"touchstart focus mouseover","data-event-off":"mouseout"},"?"),!!d.rightContent&&e.createElement("div",{className:l.RightContent},d.rightContent)))})),m=n((function(t){var n=t.vm,o=t.name,r=t.autocomplete,a=t.type,l=t.pattern,u=t.required,i=t.disabled;return e.createElement("input",{required:u,type:a||"text",name:o,pattern:l,disabled:i,autoComplete:r,inputMode:n.inputMode||"text",className:n.inputStyle,value:n.value,onChange:n.onValueChange})})),f=n((function(t){var n=t.vm;return e.createElement("textarea",{style:{resize:n.disableResize?"none":"initial"},value:n.value,disabled:n.disabled,onChange:n.onTextAreaValueChange,placeholder:n.textAreaPlaceholder||""})})),p=n((function(t){var n,o=t.vm,r=t.autocomplete;return e.createElement(e.Fragment,null,e.createElement("select",{className:o.inputStyle,disabled:o.disabled,autoComplete:r,onChange:o.onSelectChange},!o.value&&e.createElement("option",{selected:!0,disabled:!0,key:-1}),null===(n=o.options)||void 0===n?void 0:n.map((function(t,n){return e.createElement("option",{key:n+t.value,value:t.label,selected:o.value===t.value},t.label)}))),e.createElement("div",{className:l.ArrowContainer},e.createElement(a,null)))}));export{s as FormItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"react";import{observer as e}from"mobx-react-lite";import t from"next/script";import"@ikas/storefront-
|
|
1
|
+
import*as n from"react";import{observer as e}from"mobx-react-lite";import t from"next/script";import"@ikas/storefront-model-functions";import{useTranslation as a}from"../../../../utils/i18n.js";var r=e((function(e){var r=e.vm;return a().t,n.useEffect((function(){window.handleKlarna=function(n){var e;n&&(r.isStepLoading=!0,fetch((null===(e=r.klarnaResponse)||void 0===e?void 0:e.authorizeUrl)+"&data="+n).then((function(n){return n.json()})).then((function(n){window.location.href=n.redirectUrl})).catch((function(n){r.isStepLoading=!1})))}}),[]),r.klarnaResponse?n.createElement(n.Fragment,null,n.createElement("div",{id:"klarna-payments-container"}),n.createElement(t,{dangerouslySetInnerHTML:{__html:'window.klarnaAsyncCallback = function () {\n try {\n Klarna.Payments.init({\n client_token: "'.concat(r.klarnaResponse.clientToken,'",\n });\n Klarna.Payments.load({\n container: "#klarna-payments-container",\n },\n function (res) {\n }\n );\n } catch (e) {\n console.log("error", e);\n }\n };')}}),n.createElement(t,{dangerouslySetInnerHTML:{__html:"".concat(r.isKlarnaPaymentCompleted&&"Klarna.Payments.authorize({ auto_finalize: true }, function (res) {\n if (res.approved && !!res.authorization_token) {\n window.handleKlarna(JSON.stringify(res))\n } else{\n ".concat(setTimeout((function(){r.setIsKlarnaPaymentCompleted(!1)}),2e3),"\n }\n });"))}}),n.createElement(t,{src:"https://x.klarnacdn.net/kp/lib/v1/api.js"})):null}));export{r as Klarna};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{observer as a}from"mobx-react-lite";import t from"../svg/master-pass-by-master-card.js";import o from"../../../style.module.scss.js";import
|
|
1
|
+
import e from"react";import{observer as a}from"mobx-react-lite";import t from"../svg/master-pass-by-master-card.js";import o from"../../../style.module.scss.js";import s from"./style.module.scss.js";import{createTranslationInputData as r,useTranslation as i}from"../../../../../utils/i18n.js";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";import{Button as m}from"../../button/index.js";import{Checkbox as d}from"../../checkbox/index.js";import{FormItem as c}from"../../form-item/index.js";import{FormItemType as l}from"../../form-item/model.js";import{IkasBaseStore as u}from"../../../../../store/base/index.js";import"@ikas/storefront-api";import"lodash/flatten";import"lodash/sortBy";import"@ikas/storefront-model-functions";import"../../../../../store/cart/index.js";import"../../../types.js";import"../../../../../store/customer/index.js";import"../../../../../analytics/events.js";import"lodash/cloneDeep";import"../../../../../store/analytics/index.js";import"../../../../../analytics/ikas.js";import"../../../../../store/customer/consent/data.js";import"../../../../../analytics/head/index.js";import"../../../../../store/customer/account-auth/data.js";import"../../../../../store/customer/captcha/data.js";import"../../../../../store/customer/product/data.js";import"lodash/xorBy";import'./../../../../../ext/@ikas/fe-api-client/build/utils/api.js';import'./../../../../../ext/axios/index.js';import'./../../../../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../../../../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../../../../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../../../../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import"@ikas/storefront-models";import"@ikas/localized-address";import"../../../../../store/customer/marketing/data.js";import"../../../../../store/customer/order/data.js";import"@ikas/storefront-providers";var p=a((function(a){var p=a.vm,C=i().t,v=n.getTranslations()["checkout-page"],h=e.useMemo((function(){var e,a;return r(null===(a=null===(e=null==v?void 0:v.masterPass)||void 0===e?void 0:e.creditCardForm)||void 0===a?void 0:a.checkboxLabel)}),[v]),b=e.useMemo((function(){return e.createElement("div",{className:s.CheckboxLabel},h.map((function(a,o){var r,i,n,m;return a.isVariable?"{{ link }}"===a.value?e.createElement("a",{key:o,className:s.MasterPassInfoLink,title:null===(i=null===(r=null==v?void 0:v.masterPass)||void 0===r?void 0:r.creditCardForm)||void 0===i?void 0:i.moreInformation,target:"_blank",href:"https://www.masterpassturkiye.com/TermsAndConditions.aspx"},null===(m=null===(n=null==v?void 0:v.masterPass)||void 0===n?void 0:n.creditCardForm)||void 0===m?void 0:m.checkboxLabelLink):e.createElement("span",{key:o,className:s.Logo},e.createElement(t,null)):e.createElement(e.Fragment,{key:o},a.value)})))}),[h]),f=p.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled?p.mpVM.saveCardToMasterPassPhoneNumberDisabledInputValue({withPlus:!0,checkout:p.checkout}):p.mpVM.saveCardToMasterPass.phoneNumber;return e.createElement("div",null,e.createElement(d,{label:b,value:p.mpVM.saveCardToMasterPass.isCheckboxChecked,onChange:p.mpVM.onSaveCardToMasterPassCheckedChange}),p.mpVM.saveCardToMasterPass.isCheckboxChecked&&e.createElement("div",{className:s.FormWrapper},e.createElement("div",{className:o.RowPB},e.createElement(c,{name:"masterPassCardName",type:l.TEXT,label:C("checkout-page:masterPass.creditCardForm.cardName"),value:p.mpVM.saveCardToMasterPass.cardName,onChange:p.mpVM.onSaveCardToMasterPassCardNameChange})),p.mpVM.isSaveCardToMasterPassPhoneNumberInputVisible&&e.createElement("div",{className:o.RowPB},e.createElement(c,{name:"masterPassPhoneNumber",autocomplete:"tel",type:l.TEL,currentCountryCode:u.currentCountryCode,disabled:p.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled,label:C("checkout-page:masterPass.creditCardForm.phoneNumber"),value:f,onChange:p.mpVM.onSaveCardToMasterPassPhoneNumberChange})),e.createElement(m,{style:{width:"100%"},text:C("checkout-page:masterPass.creditCardForm.button"),isDisabled:p.mpVM.isSendConfirmationButtonDisabled,isLoading:p.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending,onClick:function(){if(!p.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending&&(console.log("onSendConfirmationButtonClick 1"),p.checkout.selectedPaymentGateway&&(console.log("onSendConfirmationButtonClick 2"),p.cardData&&p.cardData.cardNumber&&p.cardData.expirationDate&&p.cardData.cvv&&(console.log("onSendConfirmationButtonClick 3"),p.mpVM.saveCardToMasterPass.cardName)))){console.log("onSendConfirmationButtonClick 4");var e=p.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled?p.mpVM.saveCardToMasterPassPhoneNumberDisabledInputValue({withPlus:!1,checkout:p.checkout}):p.mpVM.saveCardToMasterPass.phoneNumber.replace("+","");if(e){var a,t,o,s,r={creditCard:{rtaPan:p.cardData.cardNumber.replace(/ /g,""),expiryDate:(a=p.cardData.expirationDate,t=a.replace(" / ",""),o=t.substring(0,2),s=t.substring(2,4),"".concat(s).concat(o)),cvc:p.cardData.cvv,accountAliasName:p.mpVM.saveCardToMasterPass.cardName,phoneNumber:e},checkout:p.checkout,paymentGateway:p.checkout.selectedPaymentGateway,callback:function(){p.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending=!1}};console.log("onSendConfirmationButtonClick 5",r),p.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending=!0,p.mpVM.onSaveCardToMasterPassSendConfirmationButtonClick(r)}}}})))}));export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useState as
|
|
1
|
+
import e,{useRef as t,useState as a}from"react";import{observer as o}from"mobx-react-lite";import{useTranslation as n}from"../../../../../utils/i18n.js";import{Button as r}from"../../button/index.js";import c from"./svg/close.js";import l from"./svg/info-mark.js";import m from"./svg/master-pass-by-master-card-big.js";import s from"./style.module.scss.js";var i=o((function(o){var i=o.vm,u=t(null),p=n().t,d=a(!1),f=d[0],k=d[1],b="checkout-page:masterPass.linkCardToClient";return e.createElement("div",{ref:u,className:s.Wrapper},e.createElement("div",{className:s.Logo,"data-mb":!0},e.createElement(m,null),e.createElement("button",{className:s.CloseButton,onClick:i.mpVM.hideLinkCardToClient},e.createElement(c,null))),e.createElement("p",{className:s.Text},p("".concat(b,".text"))),e.createElement(r,{style:{width:"100%"},text:p("".concat(b,".buttonText")),isLoading:f,isDisabled:f,onClick:function(){k(!0),i.mpVM.onLinkCardToClientButtonClick({cartId:i.checkout.id,checkout:i.checkout,callback:function(){k(!1)}})}}),e.createElement("p",{className:s.SubInfoText},e.createElement("span",null,e.createElement(l,null)),p("".concat(b,".subInfoText"))))}));export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useState as o,useEffect as a}from"react";import{observer as n}from"mobx-react-lite";import r from"../modal/index.js";import
|
|
1
|
+
import e,{useRef as t,useState as o,useEffect as a}from"react";import{observer as n}from"mobx-react-lite";import r from"../modal/index.js";import c from"./svg/master-pass.js";import s from"./style.module.scss.js";import{useTranslation as m}from"../../../../../utils/i18n.js";import{Button as l}from"../../button/index.js";import{FormItem as i}from"../../form-item/index.js";import{FormItemType as p}from"../../form-item/model.js";var u=n((function(n){var u=n.visible,d=n.type,f=n.vm,v=n.onClose,b=m().t,h=t(),k=o(180),x=k[0],g=k[1],M=o(""),E=M[0],P=M[1],T=o(!1),y=T[0],C=T[1],j=o(!1),O=j[0],N=j[1],V=function(){if(!O&&E&&f.checkout.masterPassPaymentGateway){N(!0),f.mpVM.onOtpFormSubmit({validationCode:E,checkout:f.checkout,callback:function(){N(!1),P(""),R()}})}},R=function(){g(0)},w=function(){g(180)},I=function(){g(180)};a((function(){if(!(x<1&&h.current))return h.current&&clearInterval(h.current),h.current=setInterval((function(){g(x-1)}),1e3),function(){h.current&&clearInterval(h.current)};clearInterval(h.current)}),[x]);var L,S,B,D,F,q,A=x<=120,G=e.createElement("div",null,e.createElement("div",{className:s.Wrapper},"masterPassOtp"===d&&e.createElement("span",{"data-mr":!0,className:s.Logo},e.createElement(c,null)),e.createElement("p",{className:s.Text},b("masterPassOtp"===d?"checkout-page:masterPass.otpModal.otpTextMasterPass":"checkout-page:masterPass.otpModal.otpTextBank"))),e.createElement("div",{className:s.Countdown},b("checkout-page:masterPass.otpModal.countdownText"),e.createElement("strong",null,(L=x%3600,S=Math.floor(L/60),B=L%60,D=Math.ceil(B),F=S<10?"0".concat(S):S,q=D<10?"0".concat(D):D,"".concat(F,":").concat(q)))),f.mpVM.otpResponse.text&&e.createElement("div",{role:"error"===f.mpVM.otpResponse.status?"alert":"",className:s.OtpResponseText},f.mpVM.otpResponse.text),e.createElement("form",{onSubmit:function(e){e.preventDefault(),V()}},e.createElement(i,{required:!0,type:p.TEXT,label:b("checkout-page:masterPass.otpModal.inputLabel"),name:"one-time-code",autocomplete:"one-time-code",rightContent:f.mpVM.isOtpFormSubmitAtLeastOnce&&A?e.createElement("button",{type:"button",className:s.ResendButton,disabled:y,onClick:function(e){e.stopPropagation(),y||(C(!0),f.mpVM.resendOtp({checkout:f.checkout,callback:function(){C(!1),I(),P("")}}))}},b("checkout-page:masterPass.otpModal.resendText")):void 0,value:E,onChange:function(e){P(e)}}),e.createElement(l,{type:"submit",style:{width:"100%",marginTop:"16px"},text:b("checkout-page:masterPass.otpModal.buttonText"),isLoading:O,isDisabled:!E,onClick:V})));return a((function(){u?w():R()}),[u]),a((function(){w()}),[d]),console.log("calisti modal",u),e.createElement(r,{visible:u,onClose:v},G)}));export{u as default};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import CheckoutViewModel
|
|
2
|
+
import CheckoutViewModel from "../../model";
|
|
3
|
+
import { CampaignOfferType } from "../../types";
|
|
3
4
|
declare type Props = {
|
|
4
5
|
vm: CheckoutViewModel;
|
|
5
6
|
campaignOffer: CampaignOfferType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as a}from"../button/index.js";import r from"./select/index.js";import n from"../svg/cross.js";import{useTranslation as c}from"../../../../utils/i18n.js";import{
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as a}from"../button/index.js";import r from"./select/index.js";import n from"../svg/cross.js";import{useTranslation as c}from"../../../../utils/i18n.js";import{IkasCampaignOfferProductApplicablePriceEnum as i}from"@ikas/storefront-models";import o from"./style.module.scss.js";import{IkasProductVariantFunctions as m,IkasImageFunctions as d,IkasProductFunctions as f,IkasProductPriceFunctions as s,formatCurrency as l}from"@ikas/storefront-model-functions";var u=function(t){var a=t.seconds,r=t.rejectOffer,n=c().t,i=e.useState(a),m=i[0],d=i[1];e.useEffect((function(){var e=m>0&&setInterval((function(){return d(m-1)}),1e3);return 0===m&&r(),function(){return clearInterval(e)}}),[m]);return e.createElement("div",{className:o.CountdownContainer},e.createElement("div",{className:o.CountdownText},n("checkout-page:timeRemaining",{value:function(e){var t=Math.floor(e/60/60),a=Math.floor(e/60)-60*t,r=e%60;return 0!==t?t.toString().padStart(2,"0")+":":a.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")}(m)})))},p=t((function(t){var p,v=t.vm,g=t.campaignOffer,E=c().t,I=e.useState(g.variants[0]),C=I[0],N=I[1],h=function(){v.updateCartCampaignOffer({accepted:!1,cartId:v.checkout.id,campaignOfferId:g.campaignOffer.campaignOfferId,campaignOfferProductId:g.offer.id,productId:g.offer.productId,variantId:C.id})},P=Math.round(((new Date).getTime()-new Date(g.campaignOffer.offerStartDate).getTime())/1e3),S=m.getMainImage,O=d.getImageThumbnailSrc,j=f.hasVariant,k=s.getFormattedSellPrice,b=s.getFormattedFinalPrice,w=s.getFinalPrice,M=null===(p=S(C))||void 0===p?void 0:p.image;return e.createElement("div",{className:o.Container},g.offer.countdownMinutes&&e.createElement(u,{seconds:P>60*g.offer.countdownMinutes?0:60*g.offer.countdownMinutes-P,rejectOffer:h}),e.createElement("div",{className:o.ContentContainer},e.createElement("div",{className:o.Header},e.createElement("div",{className:o.Title},g.offer.title),e.createElement("div",{className:o.RejectButton,onClick:h},e.createElement(n,null))),e.createElement("div",{className:o.ProductContainer},e.createElement("div",{className:o.ImageContainer},e.createElement("img",{className:o.Image,src:M?O(M):void 0})),e.createElement("div",{className:o.ProductDetails},e.createElement("div",{className:o.ProductName},g.product.name),j(g.product)&&1===g.variants.length&&e.createElement("div",{className:o.VariantName},C.variantValues.map((function(e){return e.name})).join(", ")),g.product.brand&&e.createElement("div",{className:o.Brand},g.product.brand.name),e.createElement("div",{className:o.ProductPrice},0!==g.offer.discountAmount&&e.createElement("span",{className:o.Discount},g.offer.applicablePrice===i.SELL_PRICE?k(C.price):b(C.price)," "),l(g.offer.applicablePrice===i.SELL_PRICE?C.price.sellPrice-C.price.sellPrice*(g.offer.discountAmount||0)/100:w(C.price)-w(C.price)*(g.offer.discountAmount||0)/100,v.checkout.currencyCode,v.checkout.currencySymbol)),e.createElement("div",{className:o.Actions},g.variants.length>1&&e.createElement(r,{value:C.id,onSelectChange:function(e){var t=g.variants.find((function(t){return t.id===e}));t&&N(t)},options:g.variants.map((function(e){return{label:e.variantValues.map((function(e){return e.name})).join(", "),value:e.id}}))}),e.createElement(a,{style:{width:"100%",height:44,fontSize:14},text:E("checkout-page:actions.addToCart"),onClick:function(){v.updateCartCampaignOffer({accepted:!0,cartId:v.checkout.id,campaignOfferId:g.campaignOffer.campaignOfferId,campaignOfferProductId:g.offer.id,productId:g.offer.productId,variantId:C.id})}}))))))}));export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as n from"react";import{observer as r}from"mobx-react-lite";import{PayPalScriptProvider as a,usePayPalScriptReducer as o,PayPalButtons as i}from"@paypal/react-paypal-js";import l from"./style.module.scss.js";import{createPayPalOrder as c}from"@ikas/storefront-api";var s=r((function(r){var s=r.vm;if(!s.payPalClientIdResponse)return null;var d={"client-id":s.payPalClientIdResponse.clientId,currency:s.checkout.currencyCode,"merchant-id":s.payPalClientIdResponse.merchantId};return n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement(a,{options:d},n.createElement((function(){return o()[0].isPending?n.createElement("div",{className:l.Main},n.createElement("div",{className:l.loader})):n.createElement(i,{style:{layout:"horizontal"},onClick:function(e,t){return s.checkPaypalButtonAvailable()?t.resolve():t.reject()},onCancel:function(e,t){s.isStepLoading=!1},createOrder:function(n,r){return e(void 0,void 0,void 0,(function(){var e,n,r;return t(this,(function(t){switch(t.label){case 0:return[4,s.onCompletePaymentClick()];case 1:return t.sent(),[4,c({input:{cartId:s.checkout.id,paymentGatewayId:(null===(n=s.checkout.selectedPaymentGateway)||void 0===n?void 0:n.id)||""}})];case 2:return(e=t.sent()).data&&(s.paypalOrderResponse=e.data),[2,e&&(null===(r=e.data)||void 0===r?void 0:r.sessionToken)||""]}}))}))},onApprove:function(n,r){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return s.paypalOrderResponse&&(window.location.href="".concat(s.paypalOrderResponse.returnUrl)),[2]}))}))}})}),null))))}));export{s as PayPal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var n={Main:"style-module_Main__JYDR4",loader:"style-module_loader__3htHh",load8:"style-module_load8__IQ0Uf",Form:"style-module_Form__YOZep",Disabled:"style-module_Disabled__V35UW",PaypalButton:"style-module_PaypalButton__Tmyof"};e(".style-module_Main__JYDR4 {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.style-module_loader__3htHh,\n.style-module_loader__3htHh:after {\n border-radius: 50%;\n width: 5em;\n height: 5em;\n}\n\n.style-module_loader__3htHh {\n font-size: 6px;\n position: relative;\n text-indent: -9999em;\n border-top: 0.5em solid rgba(163, 163, 163, 0.4);\n border-right: 0.5em solid rgba(163, 163, 163, 0.4);\n border-bottom: 0.5em solid rgba(163, 163, 163, 0.4);\n border-left: 0.5em solid rgba(51, 51, 51, 0.8392156863);\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n}\n\n@-webkit-keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.style-module_Form__YOZep {\n position: relative;\n min-height: 200px;\n}\n\n.style-module_Disabled__V35UW {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9;\n cursor: not-allowed;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n}\n\n.style-module_PaypalButton__Tmyof {\n background-color: #ffc439;\n color: #2C2E2F;\n border-radius: 4px;\n height: 55px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: not-allowed;\n}");export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as o}from"../button/index.js";import"@ikas/storefront-
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as o}from"../button/index.js";import"@ikas/storefront-model-functions";import{useTranslation as i}from"../../../../utils/i18n.js";import c from"../svg/success-circle.js";import r from"./style.module.scss.js";var m=t((function(t){var m=t.vm,a=i().t;return e.createElement("div",{className:r.Container},e.createElement("div",{className:r.TitleContainer},e.createElement(c,{className:r.Icon}),e.createElement("div",{className:r.CompletedTitle},a("checkout-page:quickRegistration.completedTitle"))),e.createElement("div",{className:r.SubTitle},a("checkout-page:quickRegistration.completedSubtitle")),e.createElement(o,{text:a("checkout-page:actions.login"),onClick:m.onGoToLoginClick,style:{width:"100%",marginTop:32}}))}));export{m as QuickRegistrationCompleted};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import{FormItem as
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import{FormItem as o}from"../form-item/index.js";import{FormItemType as r,FormItemInputType as a}from"../form-item/model.js";import{Button as i}from"../button/index.js";import"@ikas/storefront-model-functions";import{useTranslation as s}from"../../../../utils/i18n.js";import{QuickRegistrationCompleted as m}from"./completed.js";import{QuickRegistrationViewModel as c}from"./model.js";import n from"./style.module.scss.js";var l=t((function(t){var l=t.vm,u=s().t,p=e.useMemo((function(){return new c(l,u)}),[]);return l.checkout.customer?p.isRegisteredCustomer?e.createElement(m,{vm:l}):e.createElement("div",{className:n.Container},e.createElement("div",{className:n.Title},u("checkout-page:quickRegistration.title")),e.createElement("div",{className:n.SubTitle},u("checkout-page:quickRegistration.subtitle")),e.createElement("div",{className:n.EmailContainer},e.createElement("div",{className:n.Label},u("checkout-page:quickRegistration.accountEmail"),":"),e.createElement("div",{className:n.Email},l.checkout.customer.email)),e.createElement(o,{type:r.TEXT,inputType:a.PASSWORD,label:u("checkout-page:password"),value:p.password,onChange:p.onPasswordChange,hasError:!!p.passwordErrorMessage,errorText:p.passwordErrorMessage}),e.createElement(i,{style:{width:"100%",marginTop:16},text:u("checkout-page:actions.signup"),isLoading:p.isLoading,onClick:p.onSubmit})):null}));export{l as QuickRegistration};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as r,__generator as o}from'./../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e,observable as i}from"mobx";import"@ikas/storefront-models";import"@ikas/localized-address";import"@ikas/storefront-api";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/category-list/index.js";import"@ikas/storefront-config";import"../../../../models/ui/product-attribute-detail/index.js";import"../../../../models/ui/product-attribute-list/index.js";import"../../../../models/ui/product-list/functions.js";import"../../../../models/ui/product-list/index.js";import"@ikas/storefront-providers";import{Validator as t}from"../../../../models/ui/validator/index.js";import{RequiredRule as s,MinRule as a}from"../../../../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";var d=function(){function d(d,l){var n=this;this.model={password:""},this._isLoading=!1,this._isRegisteredCustomer=!1,this.onPasswordChange=function(r){n.model.password=r},this.validateAll=function(){return n.validator.validateAll()},this.onSubmit=function(){return r(n,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,this.validateAll()];case 1:return o.sent()?[3,3]:(this._isLoading=!0,[4,this.vm.registerCustomer(this.password)]);case 2:(null==(r=o.sent())?void 0:r.isSuccess)&&(this._isRegisteredCustomer=!0),this._isLoading=!1,o.label=3;case 3:return[2]}}))}))},e(this,{model:i}),this.vm=d,this.t=l,this.validator=new t(this.model,[new s({fieldKey:"password",valuePath:"password",message:l("checkout-page:passwordRequiredError")}),new a({fieldKey:"password",valuePath:"password",minValue:6,message:l("checkout-page:passwordMinError",{value:6})})])}return Object.defineProperty(d.prototype,"password",{get:function(){return this.model.password},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isRegisteredCustomer",{get:function(){return this._isRegisteredCustomer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"passwordErrorMessage",{get:function(){return this.validator.results.password.errorMessage},enumerable:!1,configurable:!0}),d}();export{d as QuickRegistrationViewModel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as C from"react";var e=function(e){return e.className,C.createElement("svg",{width:"101",height:"22",viewBox:"0 0 101 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{"clip-path":"url(#clip0_6858_149691)"},C.createElement("path",{d:"M69.4952 15.4336C69.1677 15.4343 68.8462 15.3456 68.5654 15.1771C68.2846 15.0086 68.0553 14.7666 67.9022 14.4773L66.4754 11.7834H66.4305L65.9991 14.2371C65.9405 14.5697 65.7665 14.871 65.5076 15.0882C65.2488 15.3053 64.9216 15.4245 64.5836 15.4246H63.3613L65.179 5.0981C65.2377 4.76332 65.4128 4.45999 65.6734 4.24153C65.934 4.02306 66.2634 3.90346 66.6035 3.90381H67.8438L66.5923 10.9101H66.6395L68.9627 8.42728C69.1395 8.2449 69.3516 8.10031 69.586 8.00229C69.8205 7.90428 70.0724 7.85487 70.3265 7.85708H72.5913L68.929 11.3973L71.3219 15.4381L69.4952 15.4336Z",fill:"white"}),C.createElement("path",{d:"M75.2392 15.6469C74.7198 15.6528 74.2027 15.577 73.7069 15.4224C73.2597 15.2807 72.845 15.0518 72.4869 14.749C72.1326 14.4489 71.8496 14.0739 71.6584 13.6511C71.4672 13.2282 71.3726 12.7682 71.3814 12.3043C71.379 11.6911 71.4878 11.0827 71.7027 10.5083C71.907 9.95429 72.2202 9.44671 72.6239 9.01548C73.0363 8.58147 73.5313 8.23419 74.0799 7.99406C74.6913 7.73182 75.3513 7.60177 76.0166 7.61242C76.5434 7.60625 77.068 7.68198 77.5715 7.83691C78.0221 7.97474 78.4412 8.19976 78.805 8.49916C79.1499 8.787 79.4282 9.14623 79.6206 9.55201C79.8254 9.98702 79.9277 10.4632 79.9194 10.9439C79.9227 11.5629 79.8138 12.1774 79.5981 12.7577C79.3926 13.3126 79.0761 13.8198 78.6679 14.2483C78.2517 14.6828 77.7519 15.0287 77.1985 15.2653C76.5783 15.5248 75.9116 15.6547 75.2392 15.6469ZM77.5153 11.2245C77.5296 10.8034 77.3789 10.3934 77.0951 10.0818C76.9419 9.92667 76.757 9.80629 76.5531 9.72882C76.3492 9.65135 76.131 9.61861 75.9133 9.63283C75.6076 9.62927 75.3053 9.69691 75.0303 9.83038C74.7698 9.9581 74.54 10.1403 74.3562 10.3647C74.1696 10.5967 74.0251 10.8596 73.9293 11.1414C73.8278 11.4407 73.7769 11.7548 73.7788 12.0708C73.7641 12.4876 73.9115 12.8938 74.19 13.2045C74.3416 13.3593 74.5249 13.4795 74.7273 13.557C74.9297 13.6345 75.1465 13.6674 75.3628 13.6534C75.662 13.6599 75.9588 13.5988 76.2311 13.4748C76.5034 13.3508 76.7442 13.1671 76.9356 12.9373C77.1267 12.7081 77.2738 12.4455 77.3693 12.1628C77.4699 11.8604 77.5193 11.5432 77.5153 11.2245Z",fill:"white"}),C.createElement("path",{d:"M80.2129 15.4335L82.0104 5.23495C82.075 4.86552 82.2684 4.53085 82.5562 4.29011C82.844 4.04937 83.2078 3.91807 83.5832 3.91944H84.7313L82.6844 15.4335H80.2129Z",fill:"white"}),C.createElement("path",{d:"M91.6556 10.0727C91.6556 10.2142 91.6556 10.3668 91.6331 10.5217C91.6106 10.6766 91.5949 10.8427 91.5657 10.9954L91.0467 13.9497C90.9945 14.2162 90.9563 14.4852 90.9321 14.7556C90.919 14.9381 90.8375 15.1088 90.7037 15.2337C90.57 15.3586 90.3939 15.4284 90.2108 15.4291H88.7302C88.7302 15.3168 88.7302 15.1866 88.7459 15.0407C88.7616 14.8948 88.7706 14.7534 88.7908 14.6209H88.7504C88.1932 15.2809 87.421 15.6109 86.4339 15.6109C86.1591 15.6102 85.8853 15.5771 85.6183 15.5121C85.3457 15.4493 85.0873 15.3358 84.8566 15.1776C84.6247 15.0166 84.4345 14.8026 84.3017 14.5536C84.1468 14.2606 84.0695 13.9329 84.077 13.6017C84.051 13.0673 84.2096 12.5403 84.5263 12.1089C84.8436 11.7137 85.2555 11.4049 85.7239 11.2109C86.2588 10.9835 86.823 10.8324 87.4 10.7619C88.0244 10.6811 88.6533 10.6406 89.2829 10.6407C89.3006 10.5671 89.3104 10.4919 89.3121 10.4162V10.2793C89.3208 10.1594 89.2992 10.0392 89.2494 9.92975C89.1995 9.82032 89.123 9.72515 89.0268 9.65295C88.7604 9.50201 88.4562 9.43108 88.1505 9.44866C87.7931 9.45039 87.439 9.51734 87.1057 9.64621C86.9956 9.68662 86.881 9.73152 86.7867 9.78091C86.6007 9.87334 86.3879 9.89677 86.1863 9.84702C85.9846 9.79727 85.8072 9.67757 85.6857 9.50927C85.6119 9.40852 85.5607 9.29305 85.5356 9.17074C85.5105 9.04843 85.5121 8.92214 85.5402 8.80049C85.5683 8.67884 85.6224 8.56468 85.6987 8.46579C85.775 8.3669 85.8717 8.2856 85.9823 8.22744C86.2228 8.10568 86.4722 8.00213 86.7282 7.91764C87.2947 7.72384 87.8888 7.62301 88.4875 7.61907C88.9136 7.6156 89.3384 7.66461 89.7525 7.76499C90.1114 7.84958 90.4508 8.00198 90.7523 8.21397C91.0317 8.41353 91.2621 8.67371 91.4264 8.97499C91.5916 9.31663 91.6703 9.69359 91.6556 10.0727ZM88.9594 12.1134C88.6538 12.1134 88.3437 12.1268 88.0292 12.1515C87.7415 12.1714 87.4572 12.2249 87.1821 12.3109C86.9563 12.3794 86.7468 12.4932 86.5665 12.6454C86.4861 12.7151 86.4224 12.8019 86.38 12.8994C86.3377 12.9969 86.3177 13.1026 86.3216 13.2089C86.3069 13.3311 86.3287 13.4549 86.3843 13.5647C86.4399 13.6746 86.5267 13.7655 86.6339 13.8262C86.849 13.9347 87.0872 13.9894 87.3282 13.9856C87.7606 13.9989 88.1813 13.8435 88.501 13.5523C88.8116 13.2694 89.0208 12.8924 89.0964 12.4793L89.1728 12.1134H88.9594Z",fill:"white"}),C.createElement("path",{d:"M96.0294 16.5764C95.8048 16.9715 95.5801 17.3262 95.3666 17.6404C95.1664 17.9371 94.9251 18.2039 94.6499 18.4329C94.3838 18.6506 94.0789 18.8159 93.7511 18.92C93.371 19.0387 92.9742 19.0956 92.576 19.0884C92.457 19.0884 92.3514 19.0884 92.2323 19.0884C92.1156 19.0803 92.002 19.0476 91.8989 18.9925C91.7958 18.9373 91.7056 18.8611 91.634 18.7686C91.5625 18.6762 91.5114 18.5697 91.484 18.4561C91.4566 18.3425 91.4536 18.2245 91.4751 18.1096L91.5425 17.7415C91.5832 17.5461 91.6916 17.3714 91.8486 17.2482C92.0057 17.125 92.2012 17.0612 92.4008 17.068C92.7016 17.0864 92.9984 16.9911 93.2321 16.8008C93.4622 16.5816 93.6556 16.3269 93.8051 16.0466L94.1691 15.4225L92.4322 7.85718H93.6658C94.0653 7.85746 94.4515 8.00071 94.7545 8.26097C95.0574 8.52124 95.257 8.88131 95.3172 9.27595L95.8632 12.8229H95.8924L97.9438 8.78208C98.0823 8.505 98.2952 8.27181 98.5586 8.10851C98.822 7.9452 99.1256 7.85819 99.4356 7.85718H101.008L96.0294 16.5764Z",fill:"white"}),C.createElement("path",{d:"M26.2181 12.2953C26.2079 12.3402 26.2026 12.3861 26.2024 12.4322C26.199 12.6326 26.2494 12.8303 26.3484 13.0047C26.4444 13.1713 26.5737 13.3165 26.7281 13.4312C26.8903 13.5482 27.0711 13.637 27.2629 13.6939C27.4631 13.7552 27.6713 13.7862 27.8807 13.7859C28.2335 13.7902 28.5825 13.7134 28.9008 13.5614C28.9958 13.5158 29.088 13.4648 29.1772 13.4088C29.3452 13.2972 29.5441 13.2413 29.7458 13.249C29.9474 13.2566 30.1415 13.3274 30.3006 13.4514C30.425 13.5445 30.5246 13.6667 30.5907 13.8072C30.6568 13.9477 30.6875 14.1023 30.6799 14.2574C30.6724 14.4125 30.6269 14.5634 30.5475 14.6968C30.468 14.8303 30.357 14.9422 30.2242 15.0228C30.0279 15.137 29.8228 15.2354 29.6108 15.3169C28.9926 15.5492 28.3368 15.6656 27.6763 15.6604C27.1769 15.6643 26.6801 15.5886 26.2046 15.4359C25.7709 15.2992 25.3691 15.0771 25.0228 14.7826C24.6829 14.4869 24.4129 14.1197 24.2319 13.7073C24.0317 13.2465 23.9328 12.7482 23.942 12.2459C23.9321 11.6254 24.0419 11.0087 24.2656 10.4298C24.4835 9.88353 24.8047 9.38431 25.2115 8.95937C25.62 8.53809 26.11 8.20431 26.6517 7.97835C27.2358 7.73463 27.8635 7.61241 28.4964 7.61916C28.9604 7.61661 29.4215 7.69251 29.8602 7.84365C30.2518 7.97464 30.6127 8.18392 30.9207 8.45875C31.2205 8.73678 31.4546 9.07803 31.606 9.45773C31.7754 9.89404 31.8578 10.3592 31.8487 10.8271C31.8448 11.0591 31.8275 11.2908 31.797 11.5208C31.7673 11.7343 31.6618 11.93 31.4997 12.0722C31.3376 12.2144 31.1297 12.2936 30.914 12.2953H26.2181ZM29.6782 10.8024C29.689 10.753 29.6943 10.7026 29.6939 10.652V10.4994C29.699 10.3409 29.6696 10.1832 29.608 10.0372C29.5463 9.89109 29.4538 9.76005 29.3367 9.65304C29.0501 9.41216 28.6813 9.29148 28.3076 9.3163C28.0537 9.31222 27.8017 9.36195 27.5684 9.46222C27.3603 9.55122 27.1671 9.6716 26.9955 9.81916C26.8394 9.95515 26.7059 10.115 26.6 10.2928C26.5016 10.4481 26.426 10.6167 26.3754 10.7934L29.6782 10.8024Z",fill:"white"}),C.createElement("path",{d:"M32.2402 12.4321L32.5907 10.4993H36.4328L36.0958 12.4321H32.2402Z",fill:"white"}),C.createElement("path",{d:"M37.3267 19.0815C37.1517 19.0815 36.9787 19.0432 36.8201 18.9694C36.6614 18.8955 36.5208 18.7878 36.4082 18.6539C36.2956 18.52 36.2136 18.3631 36.1682 18.1942C36.1227 18.0253 36.1147 17.8485 36.1449 17.6762L37.6345 9.22643C37.7064 8.84142 37.9109 8.49369 38.2126 8.24356C38.5142 7.99344 38.894 7.85669 39.286 7.85704H40.1959L40.014 8.90765H40.0589C40.3414 8.52827 40.7093 8.22065 41.1329 8.00969C41.5707 7.79049 42.0542 7.67817 42.5439 7.68194C43.0048 7.67385 43.4628 7.75623 43.892 7.92439C44.2715 8.07517 44.6145 8.30472 44.8986 8.59786C45.1771 8.89616 45.3898 9.24947 45.5232 9.635C45.6682 10.0537 45.7404 10.494 45.7367 10.937C45.7402 11.5619 45.6345 12.1826 45.4243 12.7711C45.2292 13.3216 44.9319 13.8303 44.5481 14.2707C44.1712 14.6876 43.7153 15.0257 43.2067 15.2652C42.6815 15.5159 42.1059 15.6434 41.5238 15.6379C41.0228 15.65 40.5261 15.543 40.0746 15.3258C39.6923 15.1409 39.3739 14.8462 39.1602 14.4795H39.1287L38.5086 18.0938C38.4594 18.371 38.3139 18.6221 38.0978 18.8028C37.8816 18.9834 37.6086 19.0822 37.3267 19.0815ZM43.2898 11.2379C43.3004 10.8238 43.1598 10.4201 42.8944 10.1019C42.7486 9.94235 42.5686 9.81769 42.3679 9.73724C42.1671 9.65678 41.9508 9.6226 41.735 9.63724C41.4389 9.63516 41.1463 9.70284 40.8812 9.8348C40.6236 9.96687 40.3945 10.1484 40.2072 10.3691C40.0122 10.5991 39.86 10.8622 39.7578 11.1458C39.645 11.4426 39.5878 11.7577 39.5893 12.0752C39.5814 12.2854 39.615 12.4951 39.6882 12.6924C39.7615 12.8896 39.8729 13.0704 40.0162 13.2246C40.1694 13.3773 40.3529 13.4961 40.5549 13.5735C40.757 13.6508 40.973 13.6849 41.1891 13.6736C41.492 13.679 41.7921 13.6137 42.0653 13.4828C42.325 13.3608 42.555 13.1839 42.7394 12.9642C42.918 12.732 43.0534 12.4697 43.1393 12.1897C43.2416 11.8852 43.2925 11.5658 43.2898 11.2446V11.2379Z",fill:"white"}),C.createElement("path",{d:"M53.5333 10.0727C53.5333 10.2142 53.5333 10.3668 53.5108 10.5217C53.4884 10.6766 53.4726 10.8427 53.4434 10.9954L52.9244 13.9497C52.8722 14.2161 52.834 14.4851 52.8098 14.7556V14.7691C52.793 14.9487 52.7099 15.1156 52.5765 15.2373C52.4431 15.3589 52.2692 15.4265 52.0886 15.4268H50.6079C50.6079 15.3146 50.6079 15.1844 50.6236 15.0384C50.6394 14.8925 50.6484 14.7511 50.6686 14.6186H50.6371C50.0799 15.2786 49.3077 15.6086 48.3206 15.6086C48.0458 15.6082 47.772 15.5751 47.505 15.5099C47.2297 15.4502 46.9683 15.339 46.7344 15.1821C46.5021 15.0208 46.3111 14.807 46.1771 14.558C46.0272 14.2637 45.9538 13.9363 45.9637 13.6062C45.9377 13.0718 46.0963 12.5447 46.4131 12.1133C46.738 11.7187 47.1577 11.4128 47.6331 11.2244C48.1689 10.9973 48.7338 10.8461 49.3115 10.7754C49.9358 10.6946 50.5648 10.6541 51.1943 10.6542C51.2121 10.5806 51.2218 10.5053 51.2235 10.4297V10.2927C51.2309 10.1675 51.2053 10.0426 51.1493 9.93037C51.0933 9.81812 51.0089 9.72247 50.9045 9.65293C50.6382 9.502 50.3339 9.43107 50.0282 9.44865C49.6697 9.45225 49.3148 9.52149 48.9812 9.65293C48.8711 9.69334 48.7565 9.73824 48.6621 9.78763C48.4758 9.87976 48.2628 9.90302 48.0609 9.85331C47.8589 9.8036 47.6811 9.68411 47.5589 9.51599C47.4844 9.4148 47.4326 9.29868 47.4072 9.17562C47.3818 9.05255 47.3834 8.92545 47.4118 8.80304C47.4401 8.68063 47.4947 8.5658 47.5717 8.46645C47.6487 8.36709 47.7463 8.28555 47.8578 8.22742C48.6361 7.83814 49.4927 7.63014 50.363 7.61906C50.7891 7.61573 51.2139 7.66473 51.628 7.76497C51.9869 7.84957 52.3262 8.00197 52.6278 8.21395C52.9071 8.41352 53.1376 8.6737 53.3019 8.97497C53.4679 9.31642 53.5473 9.69339 53.5333 10.0727ZM50.8371 12.1133C50.5315 12.1133 50.2215 12.1268 49.9069 12.1515C49.6193 12.1712 49.3349 12.2247 49.0598 12.3109C48.8335 12.3798 48.6234 12.4936 48.442 12.6454C48.3623 12.7155 48.2992 12.8024 48.2572 12.8998C48.2152 12.9973 48.1955 13.1028 48.1993 13.2089C48.1846 13.3311 48.2064 13.4549 48.262 13.5647C48.3176 13.6746 48.4044 13.7655 48.5116 13.8262C48.7266 13.9349 48.9649 13.9896 49.2059 13.9856C49.6383 13.9989 50.059 13.8435 50.3787 13.5523C50.6894 13.2694 50.8985 12.8924 50.9741 12.4793L51.0483 12.1223L50.8371 12.1133Z",fill:"white"}),C.createElement("path",{d:"M57.9079 16.5764C57.6832 16.9715 57.4585 17.3262 57.2338 17.6405C57.0336 17.9371 56.7923 18.2039 56.5171 18.4329C56.251 18.6506 55.946 18.8159 55.6183 18.9201C55.2382 19.0388 54.8414 19.0956 54.4432 19.0884C54.3241 19.0884 54.2185 19.0884 54.0995 19.0884C53.9828 19.0803 53.8692 19.0476 53.7661 18.9925C53.663 18.9374 53.5727 18.8611 53.5012 18.7687C53.4297 18.6762 53.3786 18.5697 53.3512 18.4561C53.3238 18.3426 53.3208 18.2245 53.3423 18.1096L53.4029 17.7796C53.4398 17.5773 53.5466 17.3943 53.7047 17.2626C53.8628 17.1309 54.0621 17.0589 54.268 17.059C54.5688 17.0775 54.8656 16.9821 55.0993 16.7919C55.3293 16.5726 55.5228 16.318 55.6723 16.0376L56.0362 15.4135L54.3107 7.85719H55.2094C55.7047 7.85782 56.1834 8.03533 56.5591 8.35766C56.9349 8.67999 57.183 9.12592 57.2585 9.61495L57.7438 12.8139H57.7731L59.7121 8.97964C59.8872 8.64028 60.1528 8.35586 60.4795 8.15779C60.8062 7.95972 61.1813 7.85569 61.5635 7.85719H62.8801L57.9079 16.5764Z",fill:"white"}),C.createElement("path",{d:"M20.8507 3.52221L12.0206 0.235682H11.9959C11.0979 -0.0665352 10.126 -0.0704726 9.22556 0.224458H9.19635L0.4494 3.52221C0.33726 3.56559 0.238219 3.63714 0.161859 3.72995C0.0854988 3.82276 0.0344024 3.93369 0.0135124 4.05201C0.00446901 4.09558 -4.86163e-05 4.13996 3.13281e-05 4.18446V14.8275C-0.00332389 15.7178 0.2629 16.5883 0.76374 17.3247C1.26458 18.0611 1.97662 18.629 2.80634 18.9536L10.3827 21.9461C10.5479 22.0117 10.732 22.0117 10.8972 21.9461L14.3079 20.5789C14.4371 20.5277 14.5479 20.4389 14.626 20.3241C14.7042 20.2092 14.746 20.0735 14.746 19.9347V15.7457L18.496 14.2573C19.3257 13.9326 20.0378 13.3648 20.5386 12.6284C21.0395 11.892 21.3057 11.0215 21.3023 10.1312V4.22038C21.3034 4.20243 21.3034 4.18444 21.3023 4.1665C21.3003 4.02628 21.2561 3.8899 21.1756 3.77503C21.0951 3.66016 20.9819 3.57209 20.8507 3.52221Z",fill:"white"}),C.createElement("path",{d:"M20.6088 4.17323L10.662 8.11751L0.697266 4.17323L9.43748 0.879962C10.1964 0.630833 11.0152 0.630833 11.7742 0.879962L20.6088 4.17323Z",fill:"#51C5DA"}),C.createElement("path",{d:"M10.6523 8.11758V21.3064H10.6816L14.0518 19.9594V10.6139L18.1096 8.88309V10.7172L14.8292 12.1494V14.9713L18.2399 13.6108C18.9385 13.3352 19.5379 12.8559 19.9602 12.2354C20.3826 11.6148 20.6083 10.8817 20.6081 10.1313V4.18677L10.6523 8.11758Z",fill:"#EC008C"}),C.createElement("path",{d:"M3.92373 14.0487L10.653 16.8772V8.12212H10.6261L0.697269 4.18457V14.8276C0.69626 15.5779 0.921418 16.3112 1.34342 16.9318C1.76541 17.5524 2.36469 18.0317 3.06319 18.3072L10.6261 21.2929L10.653 21.3042V17.8089L3.9125 14.8905L3.92373 14.0487ZM3.92373 9.21988L7.92311 10.8811V12.8095L3.92149 11.0764L3.92373 9.21988Z",fill:"#004385"})),C.createElement("defs",null,C.createElement("clipPath",{id:"clip0_6858_149691"},C.createElement("rect",{width:"101",height:"22",fill:"white"}))))};export{e as default};
|