@ikas/storefront 4.0.0-alpha.59 → 4.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -17
- package/src/analytics/analytics.ts +536 -0
- package/src/analytics/events.ts +116 -0
- package/src/analytics/facebookPixel.ts +226 -0
- package/src/analytics/googleAnalytics.ts +227 -0
- package/src/analytics/googleTagManager.ts +341 -0
- package/src/analytics/googleUniversal.ts +136 -0
- package/src/analytics/head/index.tsx +135 -0
- package/src/analytics/ikas.ts +550 -0
- package/src/analytics/index.ts +2 -0
- package/src/analytics/tiktokPixel.ts +223 -0
- package/src/components/checkout/components/address-form/index.tsx +406 -0
- package/src/components/checkout/components/address-form/model.ts +397 -0
- package/src/components/checkout/components/button/index.tsx +44 -0
- package/src/components/checkout/components/button/style.module.scss +103 -0
- package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
- package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
- package/src/components/checkout/components/cart-summary/index.tsx +481 -0
- package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
- package/src/components/checkout/components/checkbox/check.tsx +23 -0
- package/src/components/checkout/components/checkbox/index.tsx +50 -0
- package/src/components/checkout/components/checkbox/style.module.scss +72 -0
- package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
- package/src/components/checkout/components/credit-card-form/model.ts +56 -0
- package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
- package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
- package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
- package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
- package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
- package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
- package/src/components/checkout/components/customer-addresses/model.ts +126 -0
- package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
- package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
- package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
- package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
- package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
- package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
- package/src/components/checkout/components/error/index.tsx +54 -0
- package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
- package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
- package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
- package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
- package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
- package/src/components/checkout/components/expandable-section/index.tsx +37 -0
- package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
- package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
- package/src/components/checkout/components/form-item/index.tsx +209 -0
- package/src/components/checkout/components/form-item/model.ts +145 -0
- package/src/components/checkout/components/form-item/style.module.scss +216 -0
- package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
- package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
- package/src/components/checkout/components/input-with-button/index.tsx +53 -0
- package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
- package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
- package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
- package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
- package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
- package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
- package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
- package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
- package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
- package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
- package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
- package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
- package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
- package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
- package/src/components/checkout/components/modal/index.tsx +41 -0
- package/src/components/checkout/components/modal/style.module.scss +68 -0
- package/src/components/checkout/components/modal/useEscape.tsx +20 -0
- package/src/components/checkout/components/notification-box/index.tsx +70 -0
- package/src/components/checkout/components/notification-box/style.module.scss +69 -0
- package/src/components/checkout/components/offer-product/index.tsx +180 -0
- package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
- package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
- package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
- package/src/components/checkout/components/offer-product/style.module.scss +117 -0
- package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
- package/src/components/checkout/components/phone-number-input/get-countries.ts +20 -0
- package/src/components/checkout/components/phone-number-input/index.tsx +120 -0
- package/src/components/checkout/components/phone-number-input/locale/en.ts +257 -0
- package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
- package/src/components/checkout/components/select-box/index.tsx +60 -0
- package/src/components/checkout/components/select-box/style.module.scss +55 -0
- package/src/components/checkout/components/step-container/index.tsx +107 -0
- package/src/components/checkout/components/step-container/style.module.scss +86 -0
- package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
- package/src/components/checkout/components/stripe/index.tsx +91 -0
- package/src/components/checkout/components/stripe/style.module.scss +75 -0
- package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
- package/src/components/checkout/components/svg/cross.tsx +23 -0
- package/src/components/checkout/components/svg/discount.tsx +34 -0
- package/src/components/checkout/components/svg/external.tsx +101 -0
- package/src/components/checkout/components/svg/gift.tsx +40 -0
- package/src/components/checkout/components/svg/ikas.tsx +39 -0
- package/src/components/checkout/components/svg/lock.tsx +23 -0
- package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
- package/src/components/checkout/components/svg/success-circle.tsx +26 -0
- package/src/components/checkout/components/svg/tag.tsx +23 -0
- package/src/components/checkout/components/svg/warning.tsx +30 -0
- package/src/components/checkout/components/toggle/index.tsx +51 -0
- package/src/components/checkout/components/toggle/style.module.scss +75 -0
- package/src/components/checkout/components/tooltip/index.tsx +27 -0
- package/src/components/checkout/components/tooltip/style.module.scss +86 -0
- package/src/components/checkout/index.tsx +641 -0
- package/src/components/checkout/model.ts +1466 -0
- package/src/components/checkout/modelMasterPass.ts +1001 -0
- package/src/components/checkout/steps/step-info/index.tsx +85 -0
- package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
- package/src/components/checkout/steps/step-payment/index.tsx +104 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
- package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
- package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
- package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
- package/src/components/checkout/steps/step-success/index.tsx +366 -0
- package/src/components/checkout/steps/step-success/style.module.scss +161 -0
- package/src/components/checkout/style.module.scss +366 -0
- package/src/components/checkout/styles/common.module.scss +59 -0
- package/src/components/checkout/styles/variables.scss +40 -0
- package/src/components/image/index.tsx +43 -0
- package/src/components/index.ts +5 -0
- package/src/components/link/index.tsx +26 -0
- package/src/components/page/ThemeComponent.tsx +108 -0
- package/src/components/page/head.tsx +358 -0
- package/src/components/page/index.tsx +219 -0
- package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
- package/src/components/page-editor/error/index.tsx +18 -0
- package/src/components/page-editor/index.tsx +194 -0
- package/src/components/page-editor/loader/index.tsx +18 -0
- package/src/components/page-editor/loader/style.module.scss +59 -0
- package/src/components/page-editor/model.ts +847 -0
- package/src/index.ts +6 -0
- package/src/models/data/base/index.ts +15 -0
- package/src/models/data/blog/category/index.ts +36 -0
- package/src/models/data/blog/content/index.ts +16 -0
- package/src/models/data/blog/index.ts +75 -0
- package/src/models/data/blog/meta-data/index.ts +39 -0
- package/src/models/data/blog/tag/index.ts +16 -0
- package/src/models/data/blog/writer/index.ts +17 -0
- package/src/models/data/brand/index.ts +58 -0
- package/src/models/data/brand/translation/index.ts +16 -0
- package/src/models/data/campaign-offer/index.ts +79 -0
- package/src/models/data/campaign-offer/product/index.ts +69 -0
- package/src/models/data/cart/available-shipping-method/index.ts +25 -0
- package/src/models/data/cart/campaign-offer/index.ts +43 -0
- package/src/models/data/cart/index.ts +38 -0
- package/src/models/data/category/index.ts +69 -0
- package/src/models/data/category/init.ts +33 -0
- package/src/models/data/category/path-item/index.ts +42 -0
- package/src/models/data/category/translations/index.ts +16 -0
- package/src/models/data/checkout/index.ts +55 -0
- package/src/models/data/checkout-settings/index.ts +63 -0
- package/src/models/data/checkout-settings/option/index.ts +14 -0
- package/src/models/data/checkout-settings/price/index.ts +14 -0
- package/src/models/data/city/index.ts +34 -0
- package/src/models/data/contact-form/index.ts +20 -0
- package/src/models/data/country/index.ts +46 -0
- package/src/models/data/customer/address/city/index.ts +16 -0
- package/src/models/data/customer/address/country/index.ts +20 -0
- package/src/models/data/customer/address/district/index.ts +16 -0
- package/src/models/data/customer/address/index.tsx +136 -0
- package/src/models/data/customer/address/state/index.ts +16 -0
- package/src/models/data/customer/attribute/index.ts +61 -0
- package/src/models/data/customer/attribute/option/index.ts +20 -0
- package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
- package/src/models/data/customer/attribute/translation/index.ts +23 -0
- package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
- package/src/models/data/customer/attribute/value/index.ts +29 -0
- package/src/models/data/customer/index.ts +122 -0
- package/src/models/data/customer/review/index.ts +70 -0
- package/src/models/data/customer/review/settings/index.ts +14 -0
- package/src/models/data/customer/review/summary/index.ts +29 -0
- package/src/models/data/customer/review/summary/star/index.ts +16 -0
- package/src/models/data/district/index.ts +36 -0
- package/src/models/data/favorite-product/index.ts +23 -0
- package/src/models/data/filter-category/index.ts +30 -0
- package/src/models/data/html-meta-data/index.ts +69 -0
- package/src/models/data/html-meta-data/translations/index.ts +16 -0
- package/src/models/data/image/index.ts +33 -0
- package/src/models/data/index.ts +192 -0
- package/src/models/data/last-viewed-product/index.ts +14 -0
- package/src/models/data/merchant-settings/index.ts +26 -0
- package/src/models/data/order/address/city/index.ts +16 -0
- package/src/models/data/order/address/country/index.ts +20 -0
- package/src/models/data/order/address/district/index.ts +16 -0
- package/src/models/data/order/address/index.ts +96 -0
- package/src/models/data/order/address/state/index.ts +16 -0
- package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
- package/src/models/data/order/adjustment/index.ts +39 -0
- package/src/models/data/order/customer/index.ts +24 -0
- package/src/models/data/order/gift-line/index.ts +14 -0
- package/src/models/data/order/index.ts +241 -0
- package/src/models/data/order/invoice/index.ts +29 -0
- package/src/models/data/order/line-item/discount/index.ts +23 -0
- package/src/models/data/order/line-item/index.ts +153 -0
- package/src/models/data/order/line-item/option/index.ts +24 -0
- package/src/models/data/order/line-item/option/value/index.ts +16 -0
- package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
- package/src/models/data/order/line-item/variant/category/index.ts +36 -0
- package/src/models/data/order/line-item/variant/index.ts +62 -0
- package/src/models/data/order/line-item/variant/price/index.ts +20 -0
- package/src/models/data/order/line-item/variant/value/index.ts +31 -0
- package/src/models/data/order/package/index.ts +41 -0
- package/src/models/data/order/package/tracking-info/index.ts +20 -0
- package/src/models/data/order/payment-method/index.ts +23 -0
- package/src/models/data/order/refund/index.ts +17 -0
- package/src/models/data/order/refund/line-item/index.ts +16 -0
- package/src/models/data/order/refund/settings/index.ts +16 -0
- package/src/models/data/order/shipping-line/index.ts +29 -0
- package/src/models/data/order/tax-line/index.ts +14 -0
- package/src/models/data/order/transaction/error/index.ts +16 -0
- package/src/models/data/order/transaction/index.ts +58 -0
- package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
- package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
- package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
- package/src/models/data/payment-gateway/index.ts +90 -0
- package/src/models/data/payment-gateway/settings/index.ts +21 -0
- package/src/models/data/payment-gateway/translation/index.ts +18 -0
- package/src/models/data/product/attribute/index.ts +37 -0
- package/src/models/data/product/attribute/option/index.ts +14 -0
- package/src/models/data/product/attribute/table-cell/index.ts +16 -0
- package/src/models/data/product/attribute/table-template/index.ts +19 -0
- package/src/models/data/product/attribute/translation/index.ts +39 -0
- package/src/models/data/product/attribute-value/index.ts +69 -0
- package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
- package/src/models/data/product/campaign/data/index.ts +70 -0
- package/src/models/data/product/campaign/filter/index.ts +19 -0
- package/src/models/data/product/campaign/index.ts +15 -0
- package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
- package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
- package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
- package/src/models/data/product/filter/index.ts +285 -0
- package/src/models/data/product/image/index.ts +22 -0
- package/src/models/data/product/index.ts +298 -0
- package/src/models/data/product/option-set/index.ts +94 -0
- package/src/models/data/product/option-set/option/index.ts +245 -0
- package/src/models/data/product/tag/index.ts +14 -0
- package/src/models/data/product/variant/index.ts +104 -0
- package/src/models/data/product/variant/price/index.ts +58 -0
- package/src/models/data/product/variant-type/index.ts +17 -0
- package/src/models/data/product/variant-type/init.ts +15 -0
- package/src/models/data/raffle/index.ts +155 -0
- package/src/models/data/sales-channel/index.ts +56 -0
- package/src/models/data/state/index.ts +18 -0
- package/src/models/data/stock-location/address/city/index.ts +16 -0
- package/src/models/data/stock-location/address/country/index.ts +18 -0
- package/src/models/data/stock-location/address/district/index.ts +18 -0
- package/src/models/data/stock-location/address/index.ts +34 -0
- package/src/models/data/stock-location/address/state/index.ts +18 -0
- package/src/models/data/stock-location/available/index.ts +22 -0
- package/src/models/data/stock-location/index.ts +35 -0
- package/src/models/data/storefront/domain/index.ts +20 -0
- package/src/models/data/storefront/index.ts +65 -0
- package/src/models/data/storefront/localization/index.tsx +18 -0
- package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
- package/src/models/data/storefront/routing/index.tsx +25 -0
- package/src/models/data/storefront/theme/index.tsx +25 -0
- package/src/models/data/storefront/theme-localization/index.tsx +31 -0
- package/src/models/data/theme-json/component/index.ts +41 -0
- package/src/models/data/theme-json/component/prop/index.ts +55 -0
- package/src/models/data/theme-json/custom-data/index.ts +132 -0
- package/src/models/data/theme-json/index.ts +210 -0
- package/src/models/data/theme-json/page/component/index.ts +22 -0
- package/src/models/data/theme-json/page/index.ts +54 -0
- package/src/models/data/theme-json/settings/color/index.ts +35 -0
- package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
- package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
- package/src/models/data/theme-json/settings/index.ts +30 -0
- package/src/models/data/variant-type/index.ts +44 -0
- package/src/models/data/variant-type/variant-value/index.ts +32 -0
- package/src/models/index.ts +2 -0
- package/src/models/ui/blog-category-list/index.ts +169 -0
- package/src/models/ui/blog-list/index.ts +175 -0
- package/src/models/ui/brand-list/index.ts +237 -0
- package/src/models/ui/category-list/index.ts +237 -0
- package/src/models/ui/component-renderer/index.ts +9 -0
- package/src/models/ui/customer-review-list/index.ts +173 -0
- package/src/models/ui/customer-review-summary-list/index.ts +175 -0
- package/src/models/ui/index.ts +40 -0
- package/src/models/ui/navigation-link/index.ts +23 -0
- package/src/models/ui/product-attribute-detail/index.ts +29 -0
- package/src/models/ui/product-attribute-list/index.ts +52 -0
- package/src/models/ui/product-list/index.ts +998 -0
- package/src/models/ui/raffle-list/index.ts +178 -0
- package/src/models/ui/validator/form/account-info.ts +167 -0
- package/src/models/ui/validator/form/address.ts +490 -0
- package/src/models/ui/validator/form/contact-form.ts +177 -0
- package/src/models/ui/validator/form/customer-review.ts +132 -0
- package/src/models/ui/validator/form/forgot-password.ts +96 -0
- package/src/models/ui/validator/form/login.ts +128 -0
- package/src/models/ui/validator/form/raffle-form.ts +276 -0
- package/src/models/ui/validator/form/recover-password.ts +148 -0
- package/src/models/ui/validator/form/register.ts +206 -0
- package/src/models/ui/validator/index.ts +121 -0
- package/src/models/ui/validator/rules/index.ts +310 -0
- package/src/page-data-init/index.ts +904 -0
- package/src/pages/404.tsx +10 -0
- package/src/pages/[slug]/index.tsx +9 -0
- package/src/pages/account/addresses.tsx +10 -0
- package/src/pages/account/favorite-products.tsx +9 -0
- package/src/pages/account/forgot-password.tsx +9 -0
- package/src/pages/account/index.tsx +9 -0
- package/src/pages/account/login.tsx +9 -0
- package/src/pages/account/orders/[id].tsx +9 -0
- package/src/pages/account/orders/index.tsx +9 -0
- package/src/pages/account/raffles.tsx +9 -0
- package/src/pages/account/recover-password.tsx +9 -0
- package/src/pages/account/register.tsx +9 -0
- package/src/pages/blog/[slug].tsx +9 -0
- package/src/pages/blog/index.tsx +9 -0
- package/src/pages/cart.tsx +9 -0
- package/src/pages/checkout.tsx +163 -0
- package/src/pages/editor.tsx +30 -0
- package/src/pages/home.tsx +10 -0
- package/src/pages/index.ts +22 -0
- package/src/pages/pages/[slug].tsx +9 -0
- package/src/pages/raffle/[slug].tsx +9 -0
- package/src/pages/raffle/index.tsx +9 -0
- package/src/pages/search.tsx +9 -0
- package/src/store/base.ts +238 -0
- package/src/store/blog/index.ts +49 -0
- package/src/store/brand/index.ts +16 -0
- package/src/store/cart/api.ts +58 -0
- package/src/store/cart/index.ts +311 -0
- package/src/store/category/index.ts +16 -0
- package/src/store/checkout/index.ts +92 -0
- package/src/store/customer/api.ts +273 -0
- package/src/store/customer/index.ts +658 -0
- package/src/store/html-meta-data/index.ts +16 -0
- package/src/store/index.ts +1 -0
- package/src/store/location/index.ts +56 -0
- package/src/store/merchant/index.ts +16 -0
- package/src/store/product/index.ts +113 -0
- package/src/store/raffle/index.ts +58 -0
- package/src/store/storefront/index.ts +18 -0
- package/src/typings/global.d.ts +7 -0
- package/src/utils/constants.ts +2 -0
- package/src/utils/currency.ts +250 -0
- package/src/utils/google-fonts.ts +52 -0
- package/src/utils/helper.ts +77 -0
- package/src/utils/i18n.ts +126 -0
- package/src/utils/index.ts +3 -0
- package/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/_virtual/axios.js +0 -1
- package/build/_virtual/index.js +0 -1
- package/build/_virtual/index2.js +0 -1
- package/build/_virtual/index3.js +0 -1
- package/build/_virtual/index4.js +0 -1
- package/build/_virtual/react-is.development.js +0 -1
- package/build/_virtual/react-is.production.min.js +0 -1
- package/build/_virtual/react-stripe.umd.js +0 -1
- package/build/analytics/analytics.d.ts +0 -37
- package/build/analytics/analytics.js +0 -1
- package/build/analytics/events.d.ts +0 -37
- package/build/analytics/events.js +0 -1
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/facebookPixel.js +0 -1
- package/build/analytics/googleAnalytics.d.ts +0 -13
- package/build/analytics/googleAnalytics.js +0 -1
- package/build/analytics/googleTagManager.d.ts +0 -203
- package/build/analytics/googleTagManager.js +0 -1
- package/build/analytics/googleUniversal.d.ts +0 -9
- package/build/analytics/googleUniversal.js +0 -1
- package/build/analytics/head/index.d.ts +0 -7
- package/build/analytics/head/index.js +0 -1
- package/build/analytics/ikas.d.ts +0 -134
- package/build/analytics/ikas.js +0 -1
- package/build/analytics/index.d.ts +0 -2
- package/build/analytics/tiktokPixel.d.ts +0 -13
- package/build/analytics/tiktokPixel.js +0 -1
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/index.js +0 -1
- package/build/components/checkout/components/address-form/model.d.ts +0 -87
- package/build/components/checkout/components/address-form/model.js +0 -1
- package/build/components/checkout/components/button/index.d.ts +0 -13
- package/build/components/checkout/components/button/index.js +0 -1
- package/build/components/checkout/components/button/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
- package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
- package/build/components/checkout/components/cart-summary/index.js +0 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
- package/build/components/checkout/components/checkbox/check.d.ts +0 -6
- package/build/components/checkout/components/checkbox/check.js +0 -1
- package/build/components/checkout/components/checkbox/index.d.ts +0 -10
- package/build/components/checkout/components/checkbox/index.js +0 -1
- package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
- package/build/components/checkout/components/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
- package/build/components/checkout/components/credit-card-form/model.js +0 -1
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
- package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
- package/build/components/checkout/components/customer-addresses/index.js +0 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
- package/build/components/checkout/components/customer-addresses/model.js +0 -1
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
- package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
- package/build/components/checkout/components/delivery-methods/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
- package/build/components/checkout/components/error/index.d.ts +0 -7
- package/build/components/checkout/components/error/index.js +0 -1
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
- package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/payment-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/stock-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/unknown-error/index.js +0 -1
- package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
- package/build/components/checkout/components/expandable-section/index.js +0 -1
- package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
- package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
- package/build/components/checkout/components/form-item/caret-down.js +0 -1
- package/build/components/checkout/components/form-item/index.d.ts +0 -3
- package/build/components/checkout/components/form-item/index.js +0 -1
- package/build/components/checkout/components/form-item/model.d.ts +0 -61
- package/build/components/checkout/components/form-item/model.js +0 -1
- package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
- package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
- package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
- package/build/components/checkout/components/input-with-button/index.js +0 -1
- package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -11
- package/build/components/checkout/components/master-pass/modal/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
- package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
- package/build/components/checkout/components/modal/index.d.ts +0 -8
- package/build/components/checkout/components/modal/index.js +0 -1
- package/build/components/checkout/components/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
- package/build/components/checkout/components/modal/useEscape.js +0 -1
- package/build/components/checkout/components/notification-box/index.d.ts +0 -9
- package/build/components/checkout/components/notification-box/index.js +0 -1
- package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/index.d.ts +0 -8
- package/build/components/checkout/components/offer-product/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
- package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
- package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
- package/build/components/checkout/components/offer-product/select/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
- package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
- package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
- package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
- package/build/components/checkout/components/phone-number-input/index.js +0 -1
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
- package/build/components/checkout/components/select-box/index.d.ts +0 -13
- package/build/components/checkout/components/select-box/index.js +0 -1
- package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/step-container/index.d.ts +0 -15
- package/build/components/checkout/components/step-container/index.js +0 -1
- package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
- package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
- package/build/components/checkout/components/stripe/checkout-form.js +0 -1
- package/build/components/checkout/components/stripe/index.d.ts +0 -9
- package/build/components/checkout/components/stripe/index.js +0 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
- package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-down.js +0 -1
- package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.js +0 -1
- package/build/components/checkout/components/svg/discount.d.ts +0 -6
- package/build/components/checkout/components/svg/external.d.ts +0 -6
- package/build/components/checkout/components/svg/external.js +0 -1
- package/build/components/checkout/components/svg/gift.d.ts +0 -7
- package/build/components/checkout/components/svg/gift.js +0 -1
- package/build/components/checkout/components/svg/ikas.d.ts +0 -6
- package/build/components/checkout/components/svg/ikas.js +0 -1
- package/build/components/checkout/components/svg/lock.d.ts +0 -6
- package/build/components/checkout/components/svg/lock.js +0 -1
- package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.js +0 -1
- package/build/components/checkout/components/svg/tag.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.js +0 -1
- package/build/components/checkout/components/toggle/index.d.ts +0 -10
- package/build/components/checkout/components/toggle/index.js +0 -1
- package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
- package/build/components/checkout/components/tooltip/index.d.ts +0 -8
- package/build/components/checkout/components/tooltip/index.js +0 -1
- package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
- package/build/components/checkout/index.d.ts +0 -32
- package/build/components/checkout/index.js +0 -1
- package/build/components/checkout/model.d.ts +0 -161
- package/build/components/checkout/model.js +0 -1
- package/build/components/checkout/modelMasterPass.d.ts +0 -201
- package/build/components/checkout/modelMasterPass.js +0 -1
- package/build/components/checkout/steps/step-info/index.d.ts +0 -7
- package/build/components/checkout/steps/step-info/index.js +0 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
- package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
- package/build/components/checkout/steps/step-shipping/index.js +0 -1
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-success/index.d.ts +0 -7
- package/build/components/checkout/steps/step-success/index.js +0 -1
- package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
- package/build/components/checkout/style.module.scss.js +0 -1
- package/build/components/checkout/styles/common.module.scss.js +0 -1
- package/build/components/image/index.d.ts +0 -10
- package/build/components/image/index.js +0 -1
- package/build/components/index.d.ts +0 -5
- package/build/components/link/index.d.ts +0 -16
- package/build/components/link/index.js +0 -1
- package/build/components/page/ThemeComponent.d.ts +0 -21
- package/build/components/page/ThemeComponent.js +0 -1
- package/build/components/page/head.d.ts +0 -15
- package/build/components/page/head.js +0 -1
- package/build/components/page/index.d.ts +0 -21
- package/build/components/page/index.js +0 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
- package/build/components/page-editor/ThemeComponentEditor.js +0 -1
- package/build/components/page-editor/error/index.d.ts +0 -4
- package/build/components/page-editor/error/index.js +0 -1
- package/build/components/page-editor/index.d.ts +0 -4
- package/build/components/page-editor/index.js +0 -1
- package/build/components/page-editor/loader/index.d.ts +0 -6
- package/build/components/page-editor/loader/index.js +0 -1
- package/build/components/page-editor/loader/style.module.scss.js +0 -1
- package/build/components/page-editor/model.d.ts +0 -75
- package/build/components/page-editor/model.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
- package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +0 -1
- package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +0 -1
- package/build/ext/axios/index.js +0 -1
- package/build/ext/axios/lib/adapters/xhr.js +0 -1
- package/build/ext/axios/lib/axios.js +0 -1
- package/build/ext/axios/lib/cancel/Cancel.js +0 -1
- package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
- package/build/ext/axios/lib/cancel/isCancel.js +0 -1
- package/build/ext/axios/lib/core/Axios.js +0 -1
- package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
- package/build/ext/axios/lib/core/buildFullPath.js +0 -1
- package/build/ext/axios/lib/core/createError.js +0 -1
- package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
- package/build/ext/axios/lib/core/enhanceError.js +0 -1
- package/build/ext/axios/lib/core/mergeConfig.js +0 -1
- package/build/ext/axios/lib/core/settle.js +0 -1
- package/build/ext/axios/lib/core/transformData.js +0 -1
- package/build/ext/axios/lib/defaults/index.js +0 -1
- package/build/ext/axios/lib/defaults/transitional.js +0 -1
- package/build/ext/axios/lib/env/data.js +0 -1
- package/build/ext/axios/lib/helpers/bind.js +0 -1
- package/build/ext/axios/lib/helpers/buildURL.js +0 -1
- package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
- package/build/ext/axios/lib/helpers/cookies.js +0 -1
- package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
- package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
- package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
- package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
- package/build/ext/axios/lib/helpers/spread.js +0 -1
- package/build/ext/axios/lib/helpers/validator.js +0 -1
- package/build/ext/axios/lib/utils.js +0 -1
- package/build/ext/decode-uri-component/index.js +0 -1
- package/build/ext/filter-obj/index.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
- package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/constants.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/util.js +0 -1
- package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +0 -1
- package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/format_.js +0 -1
- package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
- package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
- package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
- package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
- package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +0 -1
- package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/Metadata.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +0 -1
- package/build/ext/object-assign/index.js +0 -6
- package/build/ext/prop-types/checkPropTypes.js +0 -1
- package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
- package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
- package/build/ext/prop-types/index.js +0 -1
- package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/build/ext/prop-types/lib/has.js +0 -1
- package/build/ext/query-string/index.js +0 -1
- package/build/ext/react-is/cjs/react-is.development.js +0 -9
- package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
- package/build/ext/react-is/index.js +0 -1
- package/build/ext/react-tooltip/dist/index.es.js +0 -1
- package/build/ext/split-on-first/index.js +0 -1
- package/build/ext/strict-uri-encode/index.js +0 -1
- package/build/ext/style-inject/dist/style-inject.es.js +0 -1
- package/build/ext/tslib/tslib.es6.js +0 -1
- package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +0 -1
- package/build/ext/uuid/dist/esm-browser/md5.js +0 -1
- package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
- package/build/ext/uuid/dist/esm-browser/sha1.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v3.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v35.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v5.js +0 -1
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -24
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -13
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/index.d.ts +0 -22
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -20
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -17
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -22
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -9
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/index.d.ts +0 -136
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -67
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -45
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -7
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -30
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -14
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -25
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -84
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -62
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -72
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/product/variant-type/init.d.ts +0 -2
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -8
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -27
- 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/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 -13
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/theme-json/component/index.d.ts +0 -20
- package/build/models/data/theme-json/component/index.js +0 -1
- package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
- package/build/models/data/theme-json/component/prop/index.js +0 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
- package/build/models/data/theme-json/custom-data/index.js +0 -1
- package/build/models/data/theme-json/index.d.ts +0 -16
- package/build/models/data/theme-json/index.js +0 -1
- package/build/models/data/theme-json/page/component/index.d.ts +0 -7
- package/build/models/data/theme-json/page/component/index.js +0 -1
- package/build/models/data/theme-json/page/index.d.ts +0 -21
- package/build/models/data/theme-json/page/index.js +0 -1
- package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
- package/build/models/data/theme-json/settings/color/index.js +0 -1
- package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
- package/build/models/data/theme-json/settings/favicon/index.js +0 -1
- package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
- package/build/models/data/theme-json/settings/font-family/index.js +0 -1
- package/build/models/data/theme-json/settings/index.d.ts +0 -13
- package/build/models/data/theme-json/settings/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/index.d.ts +0 -2
- package/build/models/ui/blog-category-list/index.d.ts +0 -51
- package/build/models/ui/blog-category-list/index.js +0 -1
- package/build/models/ui/blog-list/index.d.ts +0 -55
- package/build/models/ui/blog-list/index.js +0 -1
- package/build/models/ui/brand-list/index.d.ts +0 -61
- package/build/models/ui/brand-list/index.js +0 -1
- package/build/models/ui/category-list/index.d.ts +0 -61
- package/build/models/ui/category-list/index.js +0 -1
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/component-renderer/index.js +0 -1
- package/build/models/ui/customer-review-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/index.d.ts +0 -25
- package/build/models/ui/navigation-link/index.d.ts +0 -8
- package/build/models/ui/navigation-link/index.js +0 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
- package/build/models/ui/product-attribute-detail/index.js +0 -1
- package/build/models/ui/product-attribute-list/index.d.ts +0 -8
- package/build/models/ui/product-attribute-list/index.js +0 -1
- package/build/models/ui/product-list/index.d.ts +0 -137
- package/build/models/ui/product-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.d.ts +0 -53
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -39
- package/build/models/ui/validator/form/account-info.js +0 -1
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/address.js +0 -1
- package/build/models/ui/validator/form/contact-form.d.ts +0 -42
- package/build/models/ui/validator/form/contact-form.js +0 -1
- package/build/models/ui/validator/form/customer-review.d.ts +0 -34
- package/build/models/ui/validator/form/customer-review.js +0 -1
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
- package/build/models/ui/validator/form/forgot-password.js +0 -1
- package/build/models/ui/validator/form/login.d.ts +0 -32
- package/build/models/ui/validator/form/login.js +0 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
- package/build/models/ui/validator/form/raffle-form.js +0 -1
- package/build/models/ui/validator/form/recover-password.d.ts +0 -33
- package/build/models/ui/validator/form/recover-password.js +0 -1
- package/build/models/ui/validator/form/register.d.ts +0 -49
- package/build/models/ui/validator/form/register.js +0 -1
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/index.js +0 -1
- package/build/models/ui/validator/rules/index.d.ts +0 -101
- package/build/models/ui/validator/rules/index.js +0 -1
- package/build/page-data-init/index.d.ts +0 -39
- package/build/page-data-init/index.js +0 -1
- package/build/pages/404.d.ts +0 -4
- package/build/pages/404.js +0 -1
- package/build/pages/[slug]/index.d.ts +0 -4
- package/build/pages/_slug_/index.js +0 -1
- package/build/pages/account/addresses.d.ts +0 -4
- package/build/pages/account/addresses.js +0 -1
- package/build/pages/account/favorite-products.d.ts +0 -4
- package/build/pages/account/favorite-products.js +0 -1
- package/build/pages/account/forgot-password.d.ts +0 -4
- package/build/pages/account/forgot-password.js +0 -1
- package/build/pages/account/index.d.ts +0 -4
- package/build/pages/account/index.js +0 -1
- package/build/pages/account/login.d.ts +0 -4
- package/build/pages/account/login.js +0 -1
- package/build/pages/account/orders/[id].d.ts +0 -4
- package/build/pages/account/orders/_id_.js +0 -1
- package/build/pages/account/orders/index.d.ts +0 -4
- package/build/pages/account/orders/index.js +0 -1
- package/build/pages/account/raffles.d.ts +0 -4
- package/build/pages/account/raffles.js +0 -1
- package/build/pages/account/recover-password.d.ts +0 -4
- package/build/pages/account/recover-password.js +0 -1
- package/build/pages/account/register.d.ts +0 -4
- package/build/pages/account/register.js +0 -1
- package/build/pages/blog/[slug].d.ts +0 -4
- package/build/pages/blog/_slug_.js +0 -1
- package/build/pages/blog/index.d.ts +0 -4
- package/build/pages/blog/index.js +0 -1
- package/build/pages/cart.d.ts +0 -4
- package/build/pages/cart.js +0 -1
- package/build/pages/checkout.d.ts +0 -16
- package/build/pages/checkout.js +0 -1
- package/build/pages/editor.d.ts +0 -10
- package/build/pages/editor.js +0 -1
- package/build/pages/home.d.ts +0 -4
- package/build/pages/home.js +0 -1
- package/build/pages/index.d.ts +0 -22
- package/build/pages/pages/[slug].d.ts +0 -4
- package/build/pages/pages/_slug_.js +0 -1
- package/build/pages/raffle/[slug].d.ts +0 -4
- package/build/pages/raffle/_slug_.js +0 -1
- package/build/pages/raffle/index.d.ts +0 -4
- package/build/pages/raffle/index.js +0 -1
- package/build/pages/search.d.ts +0 -4
- package/build/pages/search.js +0 -1
- package/build/store/base.d.ts +0 -44
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/cart/index.d.ts +0 -27
- package/build/store/cart/index.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -14
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/customer/index.d.ts +0 -74
- package/build/store/customer/index.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/index.d.ts +0 -3
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -36
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/constants.d.ts +0 -2
- package/build/utils/constants.js +0 -1
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
- package/build/utils/google-fonts.d.ts +0 -2
- package/build/utils/google-fonts.js +0 -1
- package/build/utils/helper.d.ts +0 -4
- package/build/utils/helper.js +0 -1
- package/build/utils/i18n.d.ts +0 -11
- package/build/utils/i18n.js +0 -1
- package/build/utils/index.d.ts +0 -3
|
@@ -0,0 +1,904 @@
|
|
|
1
|
+
import { renderComponent } from "../components/page";
|
|
2
|
+
import { IkasCategoryListParams } from "../models/ui/category-list";
|
|
3
|
+
import { IkasAttributeList } from "../models/ui/product-attribute-list";
|
|
4
|
+
import { IkasProductListParams } from "../models/ui/product-list";
|
|
5
|
+
import { IkasRaffleListParams } from "../models/ui/raffle-list";
|
|
6
|
+
import { observable } from "mobx";
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
IkasThemeJsonSettings,
|
|
10
|
+
IkasThemeJsonPageType,
|
|
11
|
+
IkasThemeJsonComponentProp,
|
|
12
|
+
IkasThemeJsonComponentPropType,
|
|
13
|
+
IkasThemeJsonCustomData,
|
|
14
|
+
IkasBrand,
|
|
15
|
+
IkasBrandListParams,
|
|
16
|
+
IkasBrandList,
|
|
17
|
+
IkasCategory,
|
|
18
|
+
IkasCategoryList,
|
|
19
|
+
IkasProductList,
|
|
20
|
+
IkasVariantValue,
|
|
21
|
+
IkasAttributeDetail,
|
|
22
|
+
IkasNavigationLink,
|
|
23
|
+
IkasImage,
|
|
24
|
+
IkasComponentRenderer,
|
|
25
|
+
IkasBlog,
|
|
26
|
+
IkasBlogListParams,
|
|
27
|
+
IkasBlogList,
|
|
28
|
+
IkasBlogCategory,
|
|
29
|
+
IkasBlogCategoryListParams,
|
|
30
|
+
IkasBlogCategoryList,
|
|
31
|
+
IkasRaffle,
|
|
32
|
+
IkasRaffleList,
|
|
33
|
+
IkasProduct,
|
|
34
|
+
} from "../models";
|
|
35
|
+
import {
|
|
36
|
+
IkasPageComponentPropValue,
|
|
37
|
+
getPlaceholderBlog,
|
|
38
|
+
getPlaceholderBlogCategory,
|
|
39
|
+
getPlaceholderBrand,
|
|
40
|
+
getPlaceholderCategory,
|
|
41
|
+
getPlaceholderProduct,
|
|
42
|
+
getPlaceholderRaffle,
|
|
43
|
+
IkasAttributePropValueData,
|
|
44
|
+
IkasAttributeListPropValueData,
|
|
45
|
+
IkasBlogPropValueData,
|
|
46
|
+
IkasBrandPropValueData,
|
|
47
|
+
IkasCategoryPropValueData,
|
|
48
|
+
IkasBlogCategoryPropValueData,
|
|
49
|
+
IkasCustomDataPropValueData,
|
|
50
|
+
IkasRafflePropValueData,
|
|
51
|
+
IkasProductPropValueData,
|
|
52
|
+
IkasSliderPropValueData,
|
|
53
|
+
} from "@ikas/storefront-providers";
|
|
54
|
+
import _cloneDeep from "lodash/cloneDeep";
|
|
55
|
+
|
|
56
|
+
export class IkasPageDataInit {
|
|
57
|
+
static pageSpecificData: any = observable({});
|
|
58
|
+
|
|
59
|
+
static setPageSpecificData(
|
|
60
|
+
pageSpecificData: any,
|
|
61
|
+
pageType: IkasThemeJsonPageType,
|
|
62
|
+
isBrowser: boolean // Will be sent from reinit on IkasPage
|
|
63
|
+
) {
|
|
64
|
+
if (!pageSpecificData) {
|
|
65
|
+
this.pageSpecificData = undefined;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
switch (pageType) {
|
|
70
|
+
case IkasThemeJsonPageType.PRODUCT:
|
|
71
|
+
const product = pageSpecificData as IkasProduct;
|
|
72
|
+
IkasPageDataInit.pageSpecificData = new IkasProduct({
|
|
73
|
+
...product,
|
|
74
|
+
selectedVariantValues: product.selectedVariantValues,
|
|
75
|
+
});
|
|
76
|
+
if (isBrowser) {
|
|
77
|
+
this._initProductOnBrowser(IkasPageDataInit.pageSpecificData);
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
case IkasThemeJsonPageType.CATEGORY:
|
|
82
|
+
const category = pageSpecificData as IkasCategory;
|
|
83
|
+
IkasPageDataInit.pageSpecificData = new IkasCategory(category);
|
|
84
|
+
break;
|
|
85
|
+
|
|
86
|
+
case IkasThemeJsonPageType.BRAND:
|
|
87
|
+
const brand = pageSpecificData as IkasCategory;
|
|
88
|
+
IkasPageDataInit.pageSpecificData = new IkasCategory(brand);
|
|
89
|
+
break;
|
|
90
|
+
|
|
91
|
+
case IkasThemeJsonPageType.BLOG:
|
|
92
|
+
const blog = pageSpecificData as IkasBlog;
|
|
93
|
+
IkasPageDataInit.pageSpecificData = new IkasBlog(blog);
|
|
94
|
+
break;
|
|
95
|
+
|
|
96
|
+
case IkasThemeJsonPageType.BLOG_CATEGORY:
|
|
97
|
+
const blogCategory = pageSpecificData as IkasBlogCategory;
|
|
98
|
+
IkasPageDataInit.pageSpecificData = new IkasBlogCategory(blogCategory);
|
|
99
|
+
break;
|
|
100
|
+
|
|
101
|
+
case IkasThemeJsonPageType.RAFFLE_DETAIL:
|
|
102
|
+
const raffleDetail = pageSpecificData as IkasRaffle;
|
|
103
|
+
IkasPageDataInit.pageSpecificData = new IkasRaffle(raffleDetail);
|
|
104
|
+
break;
|
|
105
|
+
|
|
106
|
+
default:
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static isServer() {
|
|
112
|
+
return typeof window === "undefined";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static initPropValues(
|
|
116
|
+
_pageComponentPropValues: IkasPageComponentPropValue[],
|
|
117
|
+
settings: IkasThemeJsonSettings,
|
|
118
|
+
isBrowser?: boolean
|
|
119
|
+
) {
|
|
120
|
+
const pageComponentPropValues = _cloneDeep(_pageComponentPropValues);
|
|
121
|
+
|
|
122
|
+
pageComponentPropValues.forEach((pageComponentPropValue) => {
|
|
123
|
+
const props = pageComponentPropValue.component.props;
|
|
124
|
+
|
|
125
|
+
props.forEach((prop) => {
|
|
126
|
+
const propValue = pageComponentPropValue.propValues[prop.name];
|
|
127
|
+
if (propValue === null || propValue === undefined) return;
|
|
128
|
+
|
|
129
|
+
switch (prop.type) {
|
|
130
|
+
case IkasThemeJsonComponentPropType.IMAGE:
|
|
131
|
+
IkasPageDataInit.initImagePropValue(
|
|
132
|
+
prop,
|
|
133
|
+
propValue,
|
|
134
|
+
pageComponentPropValue
|
|
135
|
+
);
|
|
136
|
+
break;
|
|
137
|
+
|
|
138
|
+
case IkasThemeJsonComponentPropType.IMAGE_LIST:
|
|
139
|
+
IkasPageDataInit.initImageListPropValue(
|
|
140
|
+
prop,
|
|
141
|
+
propValue,
|
|
142
|
+
pageComponentPropValue
|
|
143
|
+
);
|
|
144
|
+
break;
|
|
145
|
+
|
|
146
|
+
case IkasThemeJsonComponentPropType.BRAND:
|
|
147
|
+
IkasPageDataInit.initBrandPropValue(
|
|
148
|
+
prop,
|
|
149
|
+
propValue,
|
|
150
|
+
pageComponentPropValue
|
|
151
|
+
);
|
|
152
|
+
break;
|
|
153
|
+
|
|
154
|
+
case IkasThemeJsonComponentPropType.BRAND_LIST:
|
|
155
|
+
IkasPageDataInit.initBrandListPropValue(
|
|
156
|
+
prop,
|
|
157
|
+
propValue,
|
|
158
|
+
pageComponentPropValue
|
|
159
|
+
);
|
|
160
|
+
break;
|
|
161
|
+
|
|
162
|
+
case IkasThemeJsonComponentPropType.CATEGORY:
|
|
163
|
+
IkasPageDataInit.initCategoryPropValue(
|
|
164
|
+
prop,
|
|
165
|
+
propValue,
|
|
166
|
+
pageComponentPropValue
|
|
167
|
+
);
|
|
168
|
+
break;
|
|
169
|
+
|
|
170
|
+
case IkasThemeJsonComponentPropType.CATEGORY_LIST:
|
|
171
|
+
IkasPageDataInit.initCategoryListPropValue(
|
|
172
|
+
prop,
|
|
173
|
+
propValue,
|
|
174
|
+
pageComponentPropValue
|
|
175
|
+
);
|
|
176
|
+
break;
|
|
177
|
+
|
|
178
|
+
case IkasThemeJsonComponentPropType.PRODUCT_LIST:
|
|
179
|
+
IkasPageDataInit.initProductListPropValue(
|
|
180
|
+
prop,
|
|
181
|
+
propValue,
|
|
182
|
+
pageComponentPropValue
|
|
183
|
+
);
|
|
184
|
+
break;
|
|
185
|
+
|
|
186
|
+
case IkasThemeJsonComponentPropType.PRODUCT_DETAIL:
|
|
187
|
+
IkasPageDataInit.initProductPropValue(
|
|
188
|
+
prop,
|
|
189
|
+
propValue,
|
|
190
|
+
pageComponentPropValue
|
|
191
|
+
);
|
|
192
|
+
break;
|
|
193
|
+
|
|
194
|
+
case IkasThemeJsonComponentPropType.PRODUCT_ATTRIBUTE:
|
|
195
|
+
IkasPageDataInit.initAttributePropValue(
|
|
196
|
+
prop,
|
|
197
|
+
propValue,
|
|
198
|
+
pageComponentPropValue
|
|
199
|
+
);
|
|
200
|
+
break;
|
|
201
|
+
|
|
202
|
+
case IkasThemeJsonComponentPropType.PRODUCT_ATTRIBUTE_LIST:
|
|
203
|
+
IkasPageDataInit.initAttributeListPropValue(
|
|
204
|
+
prop,
|
|
205
|
+
propValue,
|
|
206
|
+
pageComponentPropValue
|
|
207
|
+
);
|
|
208
|
+
break;
|
|
209
|
+
|
|
210
|
+
case IkasThemeJsonComponentPropType.LINK:
|
|
211
|
+
case IkasThemeJsonComponentPropType.LIST_OF_LINK:
|
|
212
|
+
IkasPageDataInit.initLinkPropValue(
|
|
213
|
+
prop,
|
|
214
|
+
propValue,
|
|
215
|
+
pageComponentPropValue
|
|
216
|
+
);
|
|
217
|
+
break;
|
|
218
|
+
|
|
219
|
+
case IkasThemeJsonComponentPropType.COMPONENT:
|
|
220
|
+
IkasPageDataInit.initComponentPropValue(
|
|
221
|
+
prop,
|
|
222
|
+
propValue,
|
|
223
|
+
pageComponentPropValue,
|
|
224
|
+
settings,
|
|
225
|
+
isBrowser
|
|
226
|
+
);
|
|
227
|
+
break;
|
|
228
|
+
|
|
229
|
+
case IkasThemeJsonComponentPropType.COMPONENT_LIST:
|
|
230
|
+
IkasPageDataInit.initComponentListPropValue(
|
|
231
|
+
prop,
|
|
232
|
+
propValue,
|
|
233
|
+
pageComponentPropValue,
|
|
234
|
+
settings,
|
|
235
|
+
isBrowser
|
|
236
|
+
);
|
|
237
|
+
break;
|
|
238
|
+
|
|
239
|
+
case IkasThemeJsonComponentPropType.CUSTOM:
|
|
240
|
+
IkasPageDataInit.initCustomDataPropValue(
|
|
241
|
+
prop,
|
|
242
|
+
propValue,
|
|
243
|
+
pageComponentPropValue,
|
|
244
|
+
settings,
|
|
245
|
+
isBrowser
|
|
246
|
+
);
|
|
247
|
+
break;
|
|
248
|
+
|
|
249
|
+
case IkasThemeJsonComponentPropType.BLOG:
|
|
250
|
+
IkasPageDataInit.initBlogPropValue(
|
|
251
|
+
prop,
|
|
252
|
+
propValue,
|
|
253
|
+
pageComponentPropValue
|
|
254
|
+
);
|
|
255
|
+
break;
|
|
256
|
+
|
|
257
|
+
case IkasThemeJsonComponentPropType.BLOG_LIST:
|
|
258
|
+
IkasPageDataInit.initBlogListPropValue(
|
|
259
|
+
prop,
|
|
260
|
+
propValue,
|
|
261
|
+
pageComponentPropValue
|
|
262
|
+
);
|
|
263
|
+
break;
|
|
264
|
+
|
|
265
|
+
case IkasThemeJsonComponentPropType.BLOG_CATEGORY:
|
|
266
|
+
IkasPageDataInit.initBlogCategoryPropValue(
|
|
267
|
+
prop,
|
|
268
|
+
propValue,
|
|
269
|
+
pageComponentPropValue
|
|
270
|
+
);
|
|
271
|
+
break;
|
|
272
|
+
|
|
273
|
+
case IkasThemeJsonComponentPropType.BLOG_LIST:
|
|
274
|
+
IkasPageDataInit.initBlogCategoryListPropValue(
|
|
275
|
+
prop,
|
|
276
|
+
propValue,
|
|
277
|
+
pageComponentPropValue
|
|
278
|
+
);
|
|
279
|
+
break;
|
|
280
|
+
|
|
281
|
+
case IkasThemeJsonComponentPropType.RAFFLE:
|
|
282
|
+
IkasPageDataInit.initRafflePropValue(
|
|
283
|
+
prop,
|
|
284
|
+
propValue,
|
|
285
|
+
pageComponentPropValue
|
|
286
|
+
);
|
|
287
|
+
break;
|
|
288
|
+
|
|
289
|
+
case IkasThemeJsonComponentPropType.RAFFLE_LIST:
|
|
290
|
+
IkasPageDataInit.initRaffleListPropValue(
|
|
291
|
+
prop,
|
|
292
|
+
propValue,
|
|
293
|
+
pageComponentPropValue
|
|
294
|
+
);
|
|
295
|
+
break;
|
|
296
|
+
|
|
297
|
+
case IkasThemeJsonComponentPropType.SLIDER:
|
|
298
|
+
IkasPageDataInit.initSliderPropValue(
|
|
299
|
+
prop,
|
|
300
|
+
propValue,
|
|
301
|
+
pageComponentPropValue
|
|
302
|
+
);
|
|
303
|
+
break;
|
|
304
|
+
|
|
305
|
+
default:
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
return pageComponentPropValues;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
static initBrandPropValue(
|
|
315
|
+
prop: IkasThemeJsonComponentProp,
|
|
316
|
+
propValue: IkasBrandPropValueData,
|
|
317
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
318
|
+
) {
|
|
319
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
320
|
+
IkasPageDataInit._initBrandPropValue(propValue);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
static _initBrandPropValue(propValue: IkasBrandPropValueData) {
|
|
324
|
+
if (propValue.brandPropValue.usePageData && this.pageSpecificData) {
|
|
325
|
+
return this.pageSpecificData;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (propValue.brand) {
|
|
329
|
+
return new IkasBrand(propValue.brand);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return getPlaceholderBrand();
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
static initBrandListPropValue(
|
|
336
|
+
prop: IkasThemeJsonComponentProp,
|
|
337
|
+
propValue: any,
|
|
338
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
339
|
+
) {
|
|
340
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
341
|
+
IkasPageDataInit._initBrandListPropValue(propValue);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
static _initBrandListPropValue(propValue: IkasBrandListParams) {
|
|
345
|
+
return new IkasBrandList(propValue);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
static initCategoryPropValue(
|
|
349
|
+
prop: IkasThemeJsonComponentProp,
|
|
350
|
+
propValue: IkasCategoryPropValueData,
|
|
351
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
352
|
+
) {
|
|
353
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
354
|
+
IkasPageDataInit._initCategoryPropValue(propValue);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
static _initCategoryPropValue(propValue: IkasCategoryPropValueData) {
|
|
358
|
+
if (propValue.categoryPropValue.usePageData && this.pageSpecificData) {
|
|
359
|
+
return this.pageSpecificData;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (propValue.category) {
|
|
363
|
+
return new IkasCategory(propValue.category);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return getPlaceholderCategory();
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
static initCategoryListPropValue(
|
|
370
|
+
prop: IkasThemeJsonComponentProp,
|
|
371
|
+
propValue: any,
|
|
372
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
373
|
+
) {
|
|
374
|
+
const categoryList = new IkasCategoryList(
|
|
375
|
+
propValue as IkasCategoryListParams
|
|
376
|
+
);
|
|
377
|
+
pageComponentPropValue.propValues[prop.name] = categoryList;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
static _initCategoryListPropValue(propValue: IkasCategoryListParams) {
|
|
381
|
+
return new IkasCategoryList(propValue);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
static initProductListPropValue(
|
|
385
|
+
prop: IkasThemeJsonComponentProp,
|
|
386
|
+
propValue: any,
|
|
387
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
388
|
+
) {
|
|
389
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
390
|
+
this._initProductListPropValue(propValue);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
static _initProductListPropValue(propValue: IkasProductListParams) {
|
|
394
|
+
return new IkasProductList(propValue);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
static initProductPropValue(
|
|
398
|
+
prop: IkasThemeJsonComponentProp,
|
|
399
|
+
propValue: IkasProductPropValueData,
|
|
400
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
401
|
+
) {
|
|
402
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
403
|
+
this._initProductPropValue(propValue);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
static _initProductPropValue(propValue: IkasProductPropValueData) {
|
|
407
|
+
let product: IkasProduct = new IkasProduct(getPlaceholderProduct() as any);
|
|
408
|
+
|
|
409
|
+
if (propValue.productDetailPropValue.usePageData && this.pageSpecificData) {
|
|
410
|
+
product = this.pageSpecificData;
|
|
411
|
+
} else if (propValue.productDetail) {
|
|
412
|
+
const productDetail = propValue.productDetail as IkasProduct;
|
|
413
|
+
|
|
414
|
+
product = new IkasProduct({
|
|
415
|
+
...productDetail,
|
|
416
|
+
selectedVariantValues: productDetail.selectedVariantValues,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
return product;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
static _initProductOnBrowser(product: IkasProduct) {
|
|
424
|
+
// Do not re-create a new IkasProduct instance in this function
|
|
425
|
+
// Only modify the provided one!
|
|
426
|
+
|
|
427
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
428
|
+
const vid = urlParams.get("vid");
|
|
429
|
+
|
|
430
|
+
if (vid) {
|
|
431
|
+
const variant = product.variants.find((v) => v.id === vid);
|
|
432
|
+
if (variant) {
|
|
433
|
+
product.selectedVariantValues = variant.variantValues;
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
const productVariantTypeSlugs = product.variantTypes.map(
|
|
437
|
+
(vt) => vt.variantType.slug
|
|
438
|
+
);
|
|
439
|
+
|
|
440
|
+
const selectedVariantValues: IkasVariantValue[] = [];
|
|
441
|
+
|
|
442
|
+
productVariantTypeSlugs.forEach((slug, vtIndex) => {
|
|
443
|
+
const productVariantType = product.variantTypes[vtIndex];
|
|
444
|
+
const variantValueSlug = urlParams.get(slug);
|
|
445
|
+
|
|
446
|
+
if (variantValueSlug) {
|
|
447
|
+
const variantValue = productVariantType.variantType.values.find(
|
|
448
|
+
(v) => v.slug === variantValueSlug
|
|
449
|
+
);
|
|
450
|
+
if (variantValue) selectedVariantValues.push(variantValue);
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
if (
|
|
455
|
+
selectedVariantValues.length === product.selectedVariantValues.length
|
|
456
|
+
) {
|
|
457
|
+
product.selectedVariantValues = selectedVariantValues;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
static initAttributePropValue(
|
|
463
|
+
prop: IkasThemeJsonComponentProp,
|
|
464
|
+
propValue: IkasAttributePropValueData,
|
|
465
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
466
|
+
) {
|
|
467
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
468
|
+
IkasPageDataInit._initAttributePropValue(propValue);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
static _initAttributePropValue(propValue: IkasAttributePropValueData) {
|
|
472
|
+
let product: IkasProduct | null = null;
|
|
473
|
+
|
|
474
|
+
if (propValue.attributePropValue.usePageData && this.pageSpecificData) {
|
|
475
|
+
product = this.pageSpecificData;
|
|
476
|
+
} else if (propValue.productDetail) {
|
|
477
|
+
const productDetail = propValue.productDetail as IkasProduct;
|
|
478
|
+
|
|
479
|
+
product = new IkasProduct({
|
|
480
|
+
...productDetail,
|
|
481
|
+
selectedVariantValues: productDetail.selectedVariantValues,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
return new IkasAttributeDetail(product, propValue.attributePropValue);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
static initAttributeListPropValue(
|
|
489
|
+
prop: IkasThemeJsonComponentProp,
|
|
490
|
+
propValue: IkasAttributeListPropValueData,
|
|
491
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
492
|
+
) {
|
|
493
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
494
|
+
IkasPageDataInit._initAttributeListPropValue(propValue);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
static _initAttributeListPropValue(
|
|
498
|
+
propValue: IkasAttributeListPropValueData
|
|
499
|
+
) {
|
|
500
|
+
let product: IkasProduct | null = null;
|
|
501
|
+
|
|
502
|
+
if (propValue.attributeListPropValue.usePageData && this.pageSpecificData) {
|
|
503
|
+
product = this.pageSpecificData;
|
|
504
|
+
} else if (propValue.productDetail) {
|
|
505
|
+
const productDetail = propValue.productDetail as IkasProduct;
|
|
506
|
+
|
|
507
|
+
product = new IkasProduct({
|
|
508
|
+
...productDetail,
|
|
509
|
+
selectedVariantValues: productDetail.selectedVariantValues,
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
return new IkasAttributeList(product, propValue.attributeListPropValue);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static initLinkPropValue(
|
|
517
|
+
prop: IkasThemeJsonComponentProp,
|
|
518
|
+
propValue: any,
|
|
519
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
520
|
+
) {
|
|
521
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
522
|
+
this._initLinkPropValue(propValue);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
static _initLinkPropValue(propValue: any) {
|
|
526
|
+
if (Array.isArray(propValue)) {
|
|
527
|
+
return (propValue as IkasNavigationLink[]).map(
|
|
528
|
+
(p) =>
|
|
529
|
+
new IkasNavigationLink(
|
|
530
|
+
p.href,
|
|
531
|
+
p.label,
|
|
532
|
+
p.subLinks,
|
|
533
|
+
p.isExternal || undefined
|
|
534
|
+
)
|
|
535
|
+
);
|
|
536
|
+
} else if (propValue) {
|
|
537
|
+
return new IkasNavigationLink(
|
|
538
|
+
propValue.href,
|
|
539
|
+
propValue.label,
|
|
540
|
+
propValue.subLinks,
|
|
541
|
+
propValue.isExternal
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
static initImagePropValue(
|
|
547
|
+
prop: IkasThemeJsonComponentProp,
|
|
548
|
+
propValue: any,
|
|
549
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
550
|
+
) {
|
|
551
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
552
|
+
this._initImagePropValue(propValue);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
static _initImagePropValue(propValue: any) {
|
|
556
|
+
return new IkasImage(propValue);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
static initImageListPropValue(
|
|
560
|
+
prop: IkasThemeJsonComponentProp,
|
|
561
|
+
propValue: any,
|
|
562
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
563
|
+
) {
|
|
564
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
565
|
+
this._initImageListPropValue(propValue);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
static _initImageListPropValue(propValue: any) {
|
|
569
|
+
return (propValue as IkasImage[]).map((i) => new IkasImage(i));
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
static initCustomDataPropValue(
|
|
573
|
+
prop: IkasThemeJsonComponentProp,
|
|
574
|
+
customDataValue: IkasCustomDataPropValueData | undefined,
|
|
575
|
+
pageComponentPropValue: IkasPageComponentPropValue,
|
|
576
|
+
settings: IkasThemeJsonSettings,
|
|
577
|
+
isBrowser?: boolean
|
|
578
|
+
) {
|
|
579
|
+
if (
|
|
580
|
+
!customDataValue ||
|
|
581
|
+
!customDataValue.value ||
|
|
582
|
+
!customDataValue.customData
|
|
583
|
+
)
|
|
584
|
+
return;
|
|
585
|
+
|
|
586
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
587
|
+
this._initCustomDataPropValue(
|
|
588
|
+
customDataValue,
|
|
589
|
+
new IkasThemeJsonCustomData(customDataValue.customData as any),
|
|
590
|
+
settings,
|
|
591
|
+
isBrowser
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
static _initCustomDataPropValue(
|
|
596
|
+
customDataValue: IkasCustomDataPropValueData | undefined,
|
|
597
|
+
customData: IkasThemeJsonCustomData,
|
|
598
|
+
settings: IkasThemeJsonSettings,
|
|
599
|
+
isBrowser?: boolean
|
|
600
|
+
) {
|
|
601
|
+
if (!customDataValue) return null;
|
|
602
|
+
|
|
603
|
+
const propValue = customDataValue.value;
|
|
604
|
+
if (propValue === null || propValue === undefined) return null;
|
|
605
|
+
|
|
606
|
+
switch (customData.type) {
|
|
607
|
+
case IkasThemeJsonComponentPropType.BRAND:
|
|
608
|
+
return this._initBrandPropValue(propValue);
|
|
609
|
+
|
|
610
|
+
case IkasThemeJsonComponentPropType.BRAND_LIST:
|
|
611
|
+
return this._initBrandListPropValue(propValue);
|
|
612
|
+
|
|
613
|
+
case IkasThemeJsonComponentPropType.CATEGORY_LIST:
|
|
614
|
+
return this._initCategoryListPropValue(propValue);
|
|
615
|
+
|
|
616
|
+
case IkasThemeJsonComponentPropType.CATEGORY:
|
|
617
|
+
return this._initCategoryPropValue(propValue);
|
|
618
|
+
|
|
619
|
+
case IkasThemeJsonComponentPropType.IMAGE_LIST:
|
|
620
|
+
return this._initImageListPropValue(propValue);
|
|
621
|
+
|
|
622
|
+
case IkasThemeJsonComponentPropType.IMAGE:
|
|
623
|
+
return this._initImagePropValue(propValue);
|
|
624
|
+
|
|
625
|
+
case IkasThemeJsonComponentPropType.LINK:
|
|
626
|
+
return this._initLinkPropValue(propValue);
|
|
627
|
+
|
|
628
|
+
case IkasThemeJsonComponentPropType.PRODUCT_DETAIL:
|
|
629
|
+
return this._initProductPropValue(propValue);
|
|
630
|
+
|
|
631
|
+
case IkasThemeJsonComponentPropType.PRODUCT_LIST:
|
|
632
|
+
return this._initProductListPropValue(propValue);
|
|
633
|
+
|
|
634
|
+
case IkasThemeJsonComponentPropType.PRODUCT_ATTRIBUTE:
|
|
635
|
+
return this._initAttributePropValue(propValue);
|
|
636
|
+
|
|
637
|
+
case IkasThemeJsonComponentPropType.PRODUCT_ATTRIBUTE_LIST:
|
|
638
|
+
return this._initAttributeListPropValue(propValue);
|
|
639
|
+
|
|
640
|
+
case IkasThemeJsonComponentPropType.BLOG:
|
|
641
|
+
return this._initBlogPropValue(propValue);
|
|
642
|
+
|
|
643
|
+
case IkasThemeJsonComponentPropType.BLOG_LIST:
|
|
644
|
+
return this._initBlogListPropValue(propValue);
|
|
645
|
+
|
|
646
|
+
case IkasThemeJsonComponentPropType.BLOG_CATEGORY:
|
|
647
|
+
return this._initBlogCategoryPropValue(propValue);
|
|
648
|
+
|
|
649
|
+
case IkasThemeJsonComponentPropType.BLOG_CATEGORY_LIST:
|
|
650
|
+
return this._initBlogCategoryListPropValue(propValue);
|
|
651
|
+
|
|
652
|
+
case IkasThemeJsonComponentPropType.RAFFLE:
|
|
653
|
+
return this._initRafflePropValue(propValue);
|
|
654
|
+
|
|
655
|
+
case IkasThemeJsonComponentPropType.RAFFLE_LIST:
|
|
656
|
+
return this._initRaffleListPropValue(propValue);
|
|
657
|
+
|
|
658
|
+
case IkasThemeJsonComponentPropType.SLIDER:
|
|
659
|
+
return this._initSliderPropValue(propValue);
|
|
660
|
+
|
|
661
|
+
case IkasThemeJsonComponentPropType.OBJECT:
|
|
662
|
+
const objectValue: Record<string, any> = {};
|
|
663
|
+
|
|
664
|
+
for (const nestedCustomData of customData.nestedData || []) {
|
|
665
|
+
const value = propValue[nestedCustomData.key!];
|
|
666
|
+
|
|
667
|
+
let selectedCustomData: IkasThemeJsonCustomData | undefined;
|
|
668
|
+
if (nestedCustomData.customDataId) {
|
|
669
|
+
selectedCustomData = value.customData;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
objectValue[nestedCustomData.key!] = this._initCustomDataPropValue(
|
|
673
|
+
value,
|
|
674
|
+
selectedCustomData || nestedCustomData,
|
|
675
|
+
settings,
|
|
676
|
+
isBrowser
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
return objectValue;
|
|
681
|
+
|
|
682
|
+
case IkasThemeJsonComponentPropType.DYNAMIC_LIST:
|
|
683
|
+
case IkasThemeJsonComponentPropType.STATIC_LIST:
|
|
684
|
+
try {
|
|
685
|
+
if (!propValue || !propValue.length) return null;
|
|
686
|
+
|
|
687
|
+
const listValue: any[] = [];
|
|
688
|
+
const nestedCustomData = customData.nestedData![0];
|
|
689
|
+
|
|
690
|
+
propValue.forEach((itemValue: any) => {
|
|
691
|
+
let selectedCustomData: IkasThemeJsonCustomData | undefined;
|
|
692
|
+
if (nestedCustomData.customDataId) {
|
|
693
|
+
selectedCustomData = itemValue.customData;
|
|
694
|
+
}
|
|
695
|
+
listValue.push(
|
|
696
|
+
this._initCustomDataPropValue(
|
|
697
|
+
itemValue,
|
|
698
|
+
selectedCustomData || nestedCustomData,
|
|
699
|
+
settings,
|
|
700
|
+
isBrowser
|
|
701
|
+
)
|
|
702
|
+
);
|
|
703
|
+
});
|
|
704
|
+
|
|
705
|
+
return listValue;
|
|
706
|
+
} catch (err) {
|
|
707
|
+
return [];
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
case IkasThemeJsonComponentPropType.COMPONENT:
|
|
711
|
+
return this._initComponentPropValue(propValue, settings, isBrowser);
|
|
712
|
+
|
|
713
|
+
case IkasThemeJsonComponentPropType.COMPONENT_LIST:
|
|
714
|
+
return this._initComponentListPropValue(propValue, settings, isBrowser);
|
|
715
|
+
|
|
716
|
+
default:
|
|
717
|
+
return propValue;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
static initComponentPropValue(
|
|
722
|
+
prop: IkasThemeJsonComponentProp,
|
|
723
|
+
propValue: IkasPageComponentPropValue[],
|
|
724
|
+
pageComponentPropValue: IkasPageComponentPropValue,
|
|
725
|
+
settings: IkasThemeJsonSettings,
|
|
726
|
+
isBrowser?: boolean
|
|
727
|
+
) {
|
|
728
|
+
pageComponentPropValue.propValues[prop.name] = this._initComponentPropValue(
|
|
729
|
+
propValue,
|
|
730
|
+
settings,
|
|
731
|
+
isBrowser
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
static _initComponentPropValue(
|
|
736
|
+
propValue: IkasPageComponentPropValue[],
|
|
737
|
+
settings: IkasThemeJsonSettings,
|
|
738
|
+
isBrowser?: boolean
|
|
739
|
+
) {
|
|
740
|
+
const pValue = propValue.length ? propValue[0] : undefined;
|
|
741
|
+
if (!pValue) return;
|
|
742
|
+
|
|
743
|
+
const pageComponentPropValue = new IkasPageComponentPropValue(pValue);
|
|
744
|
+
const initializedPageComponentPropValues = IkasPageDataInit.initPropValues(
|
|
745
|
+
[pageComponentPropValue],
|
|
746
|
+
settings,
|
|
747
|
+
isBrowser
|
|
748
|
+
);
|
|
749
|
+
|
|
750
|
+
if (!initializedPageComponentPropValues.length) return;
|
|
751
|
+
|
|
752
|
+
return new IkasComponentRenderer(() =>
|
|
753
|
+
renderComponent(initializedPageComponentPropValues[0], settings, -10)
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
static initComponentListPropValue(
|
|
758
|
+
prop: IkasThemeJsonComponentProp,
|
|
759
|
+
propValue: IkasPageComponentPropValue[],
|
|
760
|
+
pageComponentPropValue: IkasPageComponentPropValue,
|
|
761
|
+
settings: IkasThemeJsonSettings,
|
|
762
|
+
isBrowser?: boolean
|
|
763
|
+
) {
|
|
764
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
765
|
+
this._initComponentListPropValue(propValue, settings, isBrowser);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
static _initComponentListPropValue(
|
|
769
|
+
propValue: IkasPageComponentPropValue[],
|
|
770
|
+
settings: IkasThemeJsonSettings,
|
|
771
|
+
isBrowser?: boolean
|
|
772
|
+
) {
|
|
773
|
+
if (propValue && propValue.length)
|
|
774
|
+
return propValue.map((p: IkasPageComponentPropValue) => {
|
|
775
|
+
const pageComponentPropValue = new IkasPageComponentPropValue(p);
|
|
776
|
+
const initializedPageComponentPropValues =
|
|
777
|
+
IkasPageDataInit.initPropValues(
|
|
778
|
+
[pageComponentPropValue],
|
|
779
|
+
settings,
|
|
780
|
+
isBrowser
|
|
781
|
+
);
|
|
782
|
+
|
|
783
|
+
return new IkasComponentRenderer(() =>
|
|
784
|
+
renderComponent(initializedPageComponentPropValues[0], settings, -1)
|
|
785
|
+
);
|
|
786
|
+
});
|
|
787
|
+
return [];
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
static initBlogPropValue(
|
|
791
|
+
prop: IkasThemeJsonComponentProp,
|
|
792
|
+
propValue: IkasBlogPropValueData,
|
|
793
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
794
|
+
) {
|
|
795
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
796
|
+
IkasPageDataInit._initBlogPropValue(propValue);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
static _initBlogPropValue(propValue: IkasBlogPropValueData) {
|
|
800
|
+
if (propValue.blogPropValue.usePageData && this.pageSpecificData) {
|
|
801
|
+
return this.pageSpecificData;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (propValue.blog) {
|
|
805
|
+
return new IkasBlog(propValue.blog);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
return getPlaceholderBlog();
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
static initBlogListPropValue(
|
|
812
|
+
prop: IkasThemeJsonComponentProp,
|
|
813
|
+
propValue: any,
|
|
814
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
815
|
+
) {
|
|
816
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
817
|
+
this._initBlogListPropValue(propValue);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
static _initBlogListPropValue(propValue: IkasBlogListParams) {
|
|
821
|
+
return new IkasBlogList(propValue);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
static initBlogCategoryPropValue(
|
|
825
|
+
prop: IkasThemeJsonComponentProp,
|
|
826
|
+
propValue: IkasBlogCategoryPropValueData,
|
|
827
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
828
|
+
) {
|
|
829
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
830
|
+
IkasPageDataInit._initBlogCategoryPropValue(propValue);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
static _initBlogCategoryPropValue(propValue: IkasBlogCategoryPropValueData) {
|
|
834
|
+
if (propValue.blogCategoryPropValue.usePageData && this.pageSpecificData) {
|
|
835
|
+
return this.pageSpecificData;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (propValue.blogCategory) {
|
|
839
|
+
return new IkasBlogCategory(propValue.blogCategory);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
return getPlaceholderBlogCategory();
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
static initBlogCategoryListPropValue(
|
|
846
|
+
prop: IkasThemeJsonComponentProp,
|
|
847
|
+
propValue: any,
|
|
848
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
849
|
+
) {
|
|
850
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
851
|
+
this._initBlogCategoryListPropValue(propValue);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
static _initBlogCategoryListPropValue(propValue: IkasBlogCategoryListParams) {
|
|
855
|
+
return new IkasBlogCategoryList(propValue);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
static initRafflePropValue(
|
|
859
|
+
prop: IkasThemeJsonComponentProp,
|
|
860
|
+
propValue: IkasRafflePropValueData,
|
|
861
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
862
|
+
) {
|
|
863
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
864
|
+
IkasPageDataInit._initRafflePropValue(propValue);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
static _initRafflePropValue(propValue: IkasRafflePropValueData) {
|
|
868
|
+
if (propValue.rafflePropValue.usePageData && this.pageSpecificData) {
|
|
869
|
+
return this.pageSpecificData;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
if (propValue.raffle) {
|
|
873
|
+
return new IkasRaffle(propValue.raffle as any);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
return new IkasRaffle(getPlaceholderRaffle() as any);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
static initRaffleListPropValue(
|
|
880
|
+
prop: IkasThemeJsonComponentProp,
|
|
881
|
+
propValue: any,
|
|
882
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
883
|
+
) {
|
|
884
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
885
|
+
this._initRaffleListPropValue(propValue);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
static _initRaffleListPropValue(propValue: IkasRaffleListParams) {
|
|
889
|
+
return new IkasRaffleList(propValue);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
static initSliderPropValue(
|
|
893
|
+
prop: IkasThemeJsonComponentProp,
|
|
894
|
+
propValue: any,
|
|
895
|
+
pageComponentPropValue: IkasPageComponentPropValue
|
|
896
|
+
) {
|
|
897
|
+
pageComponentPropValue.propValues[prop.name] =
|
|
898
|
+
this._initSliderPropValue(propValue);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
static _initSliderPropValue(propValue: IkasSliderPropValueData) {
|
|
902
|
+
return propValue;
|
|
903
|
+
}
|
|
904
|
+
}
|