@ikas/storefront 3.0.0-beta.1 → 4.0.0-alpha.10
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 +40 -98
- 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 +558 -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 +207 -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 +52 -0
- package/src/components/checkout/components/phone-number-input/index.tsx +125 -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/__generated__/global-types.d.ts +0 -772
- package/build/__generated__/global-types.js +0 -1
- package/build/_virtual/Observable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/Parser.js_commonjs-proxy.js +0 -1
- package/build/_virtual/ReactPropTypesSecret.js_commonjs-proxy.js +0 -1
- package/build/_virtual/Tokenizer.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_DataView.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Hash.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_ListCache.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Map.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_MapCache.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Promise.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Set.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_SetCache.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Stack.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Symbol.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_Uint8Array.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_WeakMap.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_apply.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayAggregator.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayEach.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayFilter.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayIncludes.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayIncludesWith.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayLikeKeys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayMap.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arrayPush.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_arraySome.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_assignValue.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_assocIndexOf.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseAggregator.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseAssign.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseAssignIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseAssignValue.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseClone.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseCreate.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseEach.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseFindIndex.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseFlatten.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseFor.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseForOwn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseGet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseGetAllKeys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseGetTag.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseHasIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIndexOf.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsArguments.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsEqual.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsEqualDeep.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsMap.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsMatch.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsNaN.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsNative.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIsTypedArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseIteratee.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseKeys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseKeysIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseMap.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseMatches.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseMatchesProperty.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseOrderBy.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseProperty.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_basePropertyDeep.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseRest.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseSetToString.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseSortBy.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseTimes.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseToString.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseUnary.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_baseUniq.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cacheHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_castFunction.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_castPath.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneArrayBuffer.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneBuffer.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneDataView.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneRegExp.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneSymbol.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_cloneTypedArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/_virtual/_compareAscending.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_compareMultiple.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_copyArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_copyObject.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_copySymbols.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_copySymbolsIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_coreJsData.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_createAggregator.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_createBaseEach.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_createBaseFor.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_createSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_defineProperty.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_equalArrays.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_equalByTag.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_equalObjects.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_freeGlobal.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getAllKeys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getAllKeysIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getMapData.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getMatchData.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getNative.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getPrototype.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getRawTag.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getSymbols.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getSymbolsIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getTag.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_getValue.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hasPath.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hashClear.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hashDelete.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hashGet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hashHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_hashSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_initCloneArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_initCloneByTag.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_initCloneObject.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isFlattenable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isIndex.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isIterateeCall.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isKey.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isKeyable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isMasked.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isPrototype.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_isStrictComparable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_listCacheClear.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_listCacheDelete.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_listCacheGet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_listCacheHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_listCacheSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapCacheClear.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapCacheDelete.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapCacheGet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapCacheHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapCacheSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_mapToArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_matchesStrictComparable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_memoizeCapped.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_nativeCreate.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_nativeKeys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_nativeKeysIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_nodeUtil.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_objectToString.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_overArg.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_overRest.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_registry.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_root.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_setCacheAdd.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_setCacheHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_setToArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_setToString.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_shortOut.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stackClear.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stackDelete.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stackGet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stackHas.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stackSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stream_duplex.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stream_passthrough.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stream_readable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stream_transform.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stream_writable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_strictIndexOf.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_stringToPath.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_toKey.js_commonjs-proxy.js +0 -1
- package/build/_virtual/_toSource.js_commonjs-proxy.js +0 -1
- package/build/_virtual/async_iterator.js_commonjs-proxy.js +0 -1
- package/build/_virtual/attributes-to-props.js_commonjs-proxy.js +0 -1
- package/build/_virtual/buffer_list.js_commonjs-proxy.js +0 -1
- package/build/_virtual/checkPropTypes.js_commonjs-proxy.js +0 -1
- package/build/_virtual/constant.js_commonjs-proxy.js +0 -1
- package/build/_virtual/decode_codepoint.js_commonjs-proxy.js +0 -1
- package/build/_virtual/destroy.js_commonjs-proxy.js +0 -1
- package/build/_virtual/dom-to-react.js_commonjs-proxy.js +0 -1
- package/build/_virtual/end-of-stream.js_commonjs-proxy.js +0 -1
- package/build/_virtual/eq.js_commonjs-proxy.js +0 -1
- package/build/_virtual/errors.js_commonjs-proxy.js +0 -1
- package/build/_virtual/factoryWithThrowingShims.js_commonjs-proxy.js +0 -1
- package/build/_virtual/factoryWithTypeCheckers.js_commonjs-proxy.js +0 -1
- package/build/_virtual/from.js_commonjs-proxy.js +0 -1
- package/build/_virtual/get.js_commonjs-proxy.js +0 -1
- package/build/_virtual/hasIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/html-to-dom.js_commonjs-proxy.js +0 -1
- package/build/_virtual/identity.js_commonjs-proxy.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy10.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy11.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy12.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy13.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy4.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy5.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy6.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy7.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy8.js +0 -1
- package/build/_virtual/index.js_commonjs-proxy9.js +0 -1
- package/build/_virtual/inherits.js_commonjs-proxy.js +0 -1
- package/build/_virtual/inherits_browser.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isArguments.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isArrayLike.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isBuffer.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isFunction.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isLength.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isMap.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isObject.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isObjectLike.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isSet.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isSymbol.js_commonjs-proxy.js +0 -1
- package/build/_virtual/isTypedArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/keys.js_commonjs-proxy.js +0 -1
- package/build/_virtual/keysIn.js_commonjs-proxy.js +0 -1
- package/build/_virtual/memoize.js_commonjs-proxy.js +0 -1
- package/build/_virtual/node.js_commonjs-proxy.js +0 -1
- package/build/_virtual/node.js_commonjs-proxy2.js +0 -1
- package/build/_virtual/noop.js_commonjs-proxy.js +0 -1
- package/build/_virtual/now.js_commonjs-proxy.js +0 -1
- package/build/_virtual/parser.mjs_commonjs-proxy.js +0 -1
- package/build/_virtual/pipeline.js_commonjs-proxy.js +0 -1
- package/build/_virtual/possibleStandardNamesOptimized.js_commonjs-proxy.js +0 -1
- package/build/_virtual/property.js_commonjs-proxy.js +0 -1
- package/build/_virtual/react-is.development.js_commonjs-proxy.js +0 -1
- package/build/_virtual/react-is.production.min.js_commonjs-proxy.js +0 -1
- package/build/_virtual/readable.js_commonjs-proxy.js +0 -1
- package/build/_virtual/state.js_commonjs-proxy.js +0 -1
- package/build/_virtual/stream.js_commonjs-proxy.js +0 -1
- package/build/_virtual/string_decoder.js_commonjs-proxy.js +0 -1
- package/build/_virtual/stubArray.js_commonjs-proxy.js +0 -1
- package/build/_virtual/stubFalse.js_commonjs-proxy.js +0 -1
- package/build/_virtual/toNumber.js_commonjs-proxy.js +0 -1
- package/build/_virtual/toString.js_commonjs-proxy.js +0 -1
- package/build/_virtual/utilities.js_commonjs-proxy.js +0 -1
- package/build/_virtual/utilities.js_commonjs-proxy2.js +0 -1
- package/build/_virtual/utilities.js_commonjs-proxy3.js +0 -1
- package/build/analytics/analytics.d.ts +0 -38
- 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 -8
- 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 -133
- package/build/analytics/ikas.js +0 -1
- package/build/analytics/index.d.ts +0 -2
- package/build/api/apollo.d.ts +0 -10
- package/build/api/apollo.js +0 -1
- package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +0 -24
- package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +0 -19
- package/build/api/back-in-stock-reminder/index.d.ts +0 -23
- package/build/api/back-in-stock-reminder/index.js +0 -1
- package/build/api/blog/__generated__/getBlog.d.ts +0 -110
- package/build/api/blog/__generated__/listBlog.d.ts +0 -113
- package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -65
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -57
- package/build/api/blog/index.d.ts +0 -32
- package/build/api/blog/index.js +0 -1
- package/build/api/brand/__generated__/listProductBrand.d.ts +0 -88
- package/build/api/brand/index.d.ts +0 -16
- package/build/api/brand/index.js +0 -1
- package/build/api/cart/__generated__/getCart.d.ts +0 -178
- package/build/api/cart/__generated__/saveItemToCart.d.ts +0 -210
- package/build/api/cart/index.d.ts +0 -5
- package/build/api/cart/index.js +0 -1
- package/build/api/category/__generated__/listCategory.d.ts +0 -99
- package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -32
- package/build/api/category/index.d.ts +0 -18
- package/build/api/category/index.js +0 -1
- package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +0 -11
- package/build/api/checkout/__generated__/checkStocks.d.ts +0 -18
- package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +0 -22
- package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +0 -10
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -574
- package/build/api/checkout/__generated__/getOrder.d.ts +0 -620
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -34
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +0 -42
- package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +0 -23
- package/build/api/checkout/__generated__/saveCheckout.d.ts +0 -11
- package/build/api/checkout/index.d.ts +0 -35
- package/build/api/checkout/index.js +0 -1
- package/build/api/city/__generated__/listCity.d.ts +0 -20
- package/build/api/city/index.d.ts +0 -4
- package/build/api/city/index.js +0 -1
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -10
- package/build/api/contact-form/index.d.ts +0 -11
- package/build/api/contact-form/index.js +0 -1
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -6
- package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
- package/build/api/country/__generated__/listCountry.d.ts +0 -41
- package/build/api/country/index.d.ts +0 -6
- package/build/api/country/index.js +0 -1
- package/build/api/customer/__generated__/checkCustomerEmail.d.ts +0 -10
- package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -590
- package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -7
- package/build/api/customer/__generated__/customerLogin.d.ts +0 -174
- package/build/api/customer/__generated__/customerRecoverPassword.d.ts +0 -8
- package/build/api/customer/__generated__/customerRefreshToken.d.ts +0 -11
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -173
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +0 -620
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
- package/build/api/customer/__generated__/getMyCustomer.d.ts +0 -156
- package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -621
- package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +0 -13
- package/build/api/customer/__generated__/listOrderTransactions.d.ts +0 -53
- package/build/api/customer/__generated__/registerCustomer.d.ts +0 -175
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +0 -171
- package/build/api/customer/index.d.ts +0 -51
- package/build/api/customer/index.js +0 -1
- package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
- package/build/api/customer-attribute/index.d.ts +0 -4
- package/build/api/customer-attribute/index.js +0 -1
- package/build/api/customer-review/__generated__/createCustomerReview.d.ts +0 -11
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +0 -53
- package/build/api/customer-review/index.d.ts +0 -24
- package/build/api/customer-review/index.js +0 -1
- package/build/api/customer-review-summary/__generated__/listCustomerReviewSummary.d.ts +0 -59
- package/build/api/customer-review-summary/index.d.ts +0 -21
- package/build/api/customer-review-summary/index.js +0 -1
- package/build/api/district/__generated__/listDistrict.d.ts +0 -16
- package/build/api/district/index.d.ts +0 -4
- package/build/api/district/index.js +0 -1
- package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
- package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
- package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
- package/build/api/favorite-product/index.d.ts +0 -6
- package/build/api/favorite-product/index.js +0 -1
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +0 -38
- package/build/api/html-meta-data/index.d.ts +0 -4
- package/build/api/html-meta-data/index.js +0 -1
- package/build/api/index.d.ts +0 -25
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -9
- package/build/api/merchant/index.d.ts +0 -4
- package/build/api/merchant/index.js +0 -1
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +0 -72
- package/build/api/product-attribute/index.d.ts +0 -4
- package/build/api/product-campaign/__generated__/getProductCampaigns.d.ts +0 -91
- package/build/api/product-campaign/index.d.ts +0 -10
- package/build/api/product-campaign/index.js +0 -1
- package/build/api/product-option-file/__generated__/getOrderLineFile.d.ts +0 -7
- package/build/api/product-option-file/index.d.ts +0 -7
- package/build/api/product-option-file/index.js +0 -1
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +0 -104
- package/build/api/product-option-set/index.d.ts +0 -4
- package/build/api/product-option-set/index.js +0 -1
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -61
- package/build/api/product-search/__generated__/getRelatedProducts.d.ts +0 -14
- package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
- package/build/api/product-search/index.d.ts +0 -38
- package/build/api/product-search/index.js +0 -1
- package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +0 -44
- package/build/api/raffle/__generated__/listRaffle.d.ts +0 -85
- package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -22
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +0 -30
- package/build/api/raffle/index.d.ts +0 -24
- package/build/api/raffle/index.js +0 -1
- package/build/api/state/__generated__/listState.d.ts +0 -19
- package/build/api/state/index.d.ts +0 -4
- package/build/api/state/index.js +0 -1
- package/build/api/stock-location/__generated__/listStockLocation.d.ts +0 -7
- package/build/api/stock-location/index.d.ts +0 -4
- package/build/api/storefront/__generated__/getStorefront.d.ts +0 -63
- package/build/api/storefront/index.d.ts +0 -4
- package/build/api/storefront/index.js +0 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +0 -76
- package/build/api/variant-type/index.d.ts +0 -4
- package/build/assets/translations/checkout/en.js +0 -1
- package/build/assets/translations/checkout/tr.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 -133
- package/build/components/checkout/components/address-form/model.js +0 -1
- package/build/components/checkout/components/button/index.d.ts +0 -12
- 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 -15
- 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/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 -4
- 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 -6
- 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 -59
- 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/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/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/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/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 -33
- package/build/components/checkout/index.js +0 -1
- package/build/components/checkout/model.d.ts +0 -124
- package/build/components/checkout/model.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 -4
- 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 -14
- package/build/components/page/head.js +0 -1
- package/build/components/page/index.d.ts +0 -20
- 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 -5
- 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/@apollo/client/cache/core/cache.js +0 -1
- package/build/ext/@apollo/client/cache/core/types/common.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/entityStore.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/helpers.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/policies.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/reactiveVars.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +0 -1
- package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +0 -1
- package/build/ext/@apollo/client/core/ApolloClient.js +0 -1
- package/build/ext/@apollo/client/core/LocalState.js +0 -1
- package/build/ext/@apollo/client/core/ObservableQuery.js +0 -1
- package/build/ext/@apollo/client/core/QueryInfo.js +0 -1
- package/build/ext/@apollo/client/core/QueryManager.js +0 -1
- package/build/ext/@apollo/client/core/Reobserver.js +0 -1
- package/build/ext/@apollo/client/core/networkStatus.js +0 -1
- package/build/ext/@apollo/client/errors/index.js +0 -1
- package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +0 -15
- package/build/ext/@apollo/client/link/context/index.js +0 -1
- package/build/ext/@apollo/client/link/core/ApolloLink.js +0 -1
- package/build/ext/@apollo/client/link/core/execute.js +0 -1
- package/build/ext/@apollo/client/link/error/index.js +0 -1
- package/build/ext/@apollo/client/link/http/HttpLink.js +0 -1
- package/build/ext/@apollo/client/link/http/checkFetcher.js +0 -1
- package/build/ext/@apollo/client/link/http/createHttpLink.js +0 -1
- package/build/ext/@apollo/client/link/http/createSignalIfSupported.js +0 -1
- package/build/ext/@apollo/client/link/http/parseAndCheckHttpResponse.js +0 -1
- package/build/ext/@apollo/client/link/http/rewriteURIForGET.js +0 -1
- package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +0 -1
- package/build/ext/@apollo/client/link/http/selectURI.js +0 -1
- package/build/ext/@apollo/client/link/http/serializeFetchParameter.js +0 -1
- package/build/ext/@apollo/client/link/utils/createOperation.js +0 -1
- package/build/ext/@apollo/client/link/utils/fromError.js +0 -1
- package/build/ext/@apollo/client/link/utils/throwServerError.js +0 -1
- package/build/ext/@apollo/client/link/utils/transformOperation.js +0 -1
- package/build/ext/@apollo/client/link/utils/validateOperation.js +0 -1
- package/build/ext/@apollo/client/utilities/common/arrays.js +0 -1
- package/build/ext/@apollo/client/utilities/common/canUse.js +0 -1
- package/build/ext/@apollo/client/utilities/common/cloneDeep.js +0 -1
- package/build/ext/@apollo/client/utilities/common/compact.js +0 -1
- package/build/ext/@apollo/client/utilities/common/environment.js +0 -1
- package/build/ext/@apollo/client/utilities/common/errorHandling.js +0 -1
- package/build/ext/@apollo/client/utilities/common/filterInPlace.js +0 -1
- package/build/ext/@apollo/client/utilities/common/maybeDeepFreeze.js +0 -1
- package/build/ext/@apollo/client/utilities/common/mergeDeep.js +0 -1
- package/build/ext/@apollo/client/utilities/graphql/directives.js +0 -1
- package/build/ext/@apollo/client/utilities/graphql/fragments.js +0 -1
- package/build/ext/@apollo/client/utilities/graphql/getFromAST.js +0 -1
- package/build/ext/@apollo/client/utilities/graphql/storeUtils.js +0 -1
- package/build/ext/@apollo/client/utilities/graphql/transform.js +0 -1
- package/build/ext/@apollo/client/utilities/observables/Concast.js +0 -1
- package/build/ext/@apollo/client/utilities/observables/Observable.js +0 -1
- package/build/ext/@apollo/client/utilities/observables/asyncMap.js +0 -1
- package/build/ext/@apollo/client/utilities/observables/iteration.js +0 -1
- package/build/ext/@apollo/client/version.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/locale/en.json.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/min/index.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/CountryIcon.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/CountrySelect.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/Flag.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/InputBasic.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/InputSmart.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/InternationalIcon.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountry.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/PhoneInputWithCountryDefault.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/PropTypes.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/helpers/countries.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/helpers/inputValuePrefix.js +0 -1
- package/build/ext/@ikas/react-phone-number-input/modules/helpers/phoneInputHelpers.js +0 -1
- package/build/ext/@ungap/global-this/esm/index.js +0 -1
- package/build/ext/@wry/context/lib/context.esm.js +0 -1
- package/build/ext/@wry/equality/lib/equality.esm.js +0 -1
- package/build/ext/@wry/trie/lib/trie.esm.js +0 -1
- package/build/ext/classnames/index.js +0 -6
- package/build/ext/country-flag-icons/modules/unicode.js +0 -1
- package/build/ext/decode-uri-component/index.js +0 -1
- package/build/ext/domhandler/ext/domelementtype/lib/index.js +0 -1
- package/build/ext/domhandler/lib/index.js +0 -1
- package/build/ext/domhandler/lib/node.js +0 -1
- package/build/ext/entities/lib/decode_codepoint.js +0 -1
- package/build/ext/entities/lib/maps/decode.json.js +0 -1
- package/build/ext/entities/lib/maps/entities.json.js +0 -1
- package/build/ext/entities/lib/maps/legacy.json.js +0 -1
- package/build/ext/entities/lib/maps/xml.json.js +0 -1
- package/build/ext/fast-json-stable-stringify/index.js +0 -1
- package/build/ext/graphql/error/GraphQLError.mjs.js +0 -1
- package/build/ext/graphql/error/syntaxError.mjs.js +0 -1
- package/build/ext/graphql/jsutils/defineInspect.mjs.js +0 -1
- package/build/ext/graphql/jsutils/devAssert.mjs.js +0 -1
- package/build/ext/graphql/jsutils/inspect.mjs.js +0 -1
- package/build/ext/graphql/jsutils/instanceOf.mjs.js +0 -1
- package/build/ext/graphql/jsutils/invariant.mjs.js +0 -1
- package/build/ext/graphql/jsutils/isObjectLike.mjs.js +0 -1
- package/build/ext/graphql/jsutils/nodejsCustomInspectSymbol.mjs.js +0 -1
- package/build/ext/graphql/language/ast.mjs.js +0 -1
- package/build/ext/graphql/language/blockString.mjs.js +0 -1
- package/build/ext/graphql/language/directiveLocation.mjs.js +0 -1
- package/build/ext/graphql/language/kinds.mjs.js +0 -1
- package/build/ext/graphql/language/lexer.mjs.js +0 -1
- package/build/ext/graphql/language/location.mjs.js +0 -1
- package/build/ext/graphql/language/parser.mjs.js +0 -1
- package/build/ext/graphql/language/printLocation.mjs.js +0 -1
- package/build/ext/graphql/language/printer.mjs.js +0 -1
- package/build/ext/graphql/language/source.mjs.js +0 -1
- package/build/ext/graphql/language/tokenKind.mjs.js +0 -1
- package/build/ext/graphql/language/visitor.mjs.js +0 -1
- package/build/ext/graphql/polyfills/symbols.mjs.js +0 -1
- package/build/ext/graphql-tag/src/index.js +0 -1
- package/build/ext/html-dom-parser/index.js +0 -1
- package/build/ext/html-dom-parser/lib/server/html-to-dom.js +0 -1
- package/build/ext/html-dom-parser/lib/server/utilities.js +0 -1
- package/build/ext/html-react-parser/index.js +0 -1
- package/build/ext/html-react-parser/index.mjs.js +0 -1
- package/build/ext/html-react-parser/lib/attributes-to-props.js +0 -1
- package/build/ext/html-react-parser/lib/dom-to-react.js +0 -1
- package/build/ext/html-react-parser/lib/utilities.js +0 -1
- package/build/ext/htmlparser2/lib/Parser.js +0 -1
- package/build/ext/htmlparser2/lib/Tokenizer.js +0 -1
- package/build/ext/inherits/inherits.js +0 -1
- package/build/ext/inherits/inherits_browser.js +0 -1
- package/build/ext/inline-style-parser/index.js +0 -1
- package/build/ext/input-format/modules/closeBraces.js +0 -1
- package/build/ext/input-format/modules/dom.js +0 -1
- package/build/ext/input-format/modules/edit.js +0 -1
- package/build/ext/input-format/modules/format.js +0 -1
- package/build/ext/input-format/modules/helpers.js +0 -1
- package/build/ext/input-format/modules/inputControl.js +0 -1
- package/build/ext/input-format/modules/parse.js +0 -1
- package/build/ext/input-format/modules/react/Input.js +0 -1
- package/build/ext/input-format/modules/templateFormatter.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/constants.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/metadata.min.json.js +0 -1
- package/build/ext/lodash/_DataView.js +0 -1
- package/build/ext/lodash/_Hash.js +0 -1
- package/build/ext/lodash/_ListCache.js +0 -1
- package/build/ext/lodash/_Map.js +0 -1
- package/build/ext/lodash/_MapCache.js +0 -1
- package/build/ext/lodash/_Promise.js +0 -1
- package/build/ext/lodash/_Set.js +0 -1
- package/build/ext/lodash/_SetCache.js +0 -1
- package/build/ext/lodash/_Stack.js +0 -1
- package/build/ext/lodash/_Symbol.js +0 -1
- package/build/ext/lodash/_Uint8Array.js +0 -1
- package/build/ext/lodash/_WeakMap.js +0 -1
- package/build/ext/lodash/_apply.js +0 -1
- package/build/ext/lodash/_arrayAggregator.js +0 -1
- package/build/ext/lodash/_arrayEach.js +0 -1
- package/build/ext/lodash/_arrayFilter.js +0 -1
- package/build/ext/lodash/_arrayIncludes.js +0 -1
- package/build/ext/lodash/_arrayIncludesWith.js +0 -1
- package/build/ext/lodash/_arrayLikeKeys.js +0 -1
- package/build/ext/lodash/_arrayMap.js +0 -1
- package/build/ext/lodash/_arrayPush.js +0 -1
- package/build/ext/lodash/_arraySome.js +0 -1
- package/build/ext/lodash/_assignValue.js +0 -1
- package/build/ext/lodash/_assocIndexOf.js +0 -1
- package/build/ext/lodash/_baseAggregator.js +0 -1
- package/build/ext/lodash/_baseAssign.js +0 -1
- package/build/ext/lodash/_baseAssignIn.js +0 -1
- package/build/ext/lodash/_baseAssignValue.js +0 -1
- package/build/ext/lodash/_baseClone.js +0 -1
- package/build/ext/lodash/_baseCreate.js +0 -1
- package/build/ext/lodash/_baseEach.js +0 -1
- package/build/ext/lodash/_baseFindIndex.js +0 -1
- package/build/ext/lodash/_baseFlatten.js +0 -1
- package/build/ext/lodash/_baseFor.js +0 -1
- package/build/ext/lodash/_baseForOwn.js +0 -1
- package/build/ext/lodash/_baseGet.js +0 -1
- package/build/ext/lodash/_baseGetAllKeys.js +0 -1
- package/build/ext/lodash/_baseGetTag.js +0 -1
- package/build/ext/lodash/_baseHasIn.js +0 -1
- package/build/ext/lodash/_baseIndexOf.js +0 -1
- package/build/ext/lodash/_baseIsArguments.js +0 -1
- package/build/ext/lodash/_baseIsEqual.js +0 -1
- package/build/ext/lodash/_baseIsEqualDeep.js +0 -1
- package/build/ext/lodash/_baseIsMap.js +0 -1
- package/build/ext/lodash/_baseIsMatch.js +0 -1
- package/build/ext/lodash/_baseIsNaN.js +0 -1
- package/build/ext/lodash/_baseIsNative.js +0 -1
- package/build/ext/lodash/_baseIsSet.js +0 -1
- package/build/ext/lodash/_baseIsTypedArray.js +0 -1
- package/build/ext/lodash/_baseIteratee.js +0 -1
- package/build/ext/lodash/_baseKeys.js +0 -1
- package/build/ext/lodash/_baseKeysIn.js +0 -1
- package/build/ext/lodash/_baseMap.js +0 -1
- package/build/ext/lodash/_baseMatches.js +0 -1
- package/build/ext/lodash/_baseMatchesProperty.js +0 -1
- package/build/ext/lodash/_baseOrderBy.js +0 -1
- package/build/ext/lodash/_baseProperty.js +0 -1
- package/build/ext/lodash/_basePropertyDeep.js +0 -1
- package/build/ext/lodash/_baseRest.js +0 -1
- package/build/ext/lodash/_baseSetToString.js +0 -1
- package/build/ext/lodash/_baseSortBy.js +0 -1
- package/build/ext/lodash/_baseTimes.js +0 -1
- package/build/ext/lodash/_baseToString.js +0 -1
- package/build/ext/lodash/_baseUnary.js +0 -1
- package/build/ext/lodash/_baseUniq.js +0 -1
- package/build/ext/lodash/_cacheHas.js +0 -1
- package/build/ext/lodash/_castFunction.js +0 -1
- package/build/ext/lodash/_castPath.js +0 -1
- package/build/ext/lodash/_cloneArrayBuffer.js +0 -1
- package/build/ext/lodash/_cloneBuffer.js +0 -1
- package/build/ext/lodash/_cloneDataView.js +0 -1
- package/build/ext/lodash/_cloneRegExp.js +0 -1
- package/build/ext/lodash/_cloneSymbol.js +0 -1
- package/build/ext/lodash/_cloneTypedArray.js +0 -1
- package/build/ext/lodash/_compareAscending.js +0 -1
- package/build/ext/lodash/_compareMultiple.js +0 -1
- package/build/ext/lodash/_copyArray.js +0 -1
- package/build/ext/lodash/_copyObject.js +0 -1
- package/build/ext/lodash/_copySymbols.js +0 -1
- package/build/ext/lodash/_copySymbolsIn.js +0 -1
- package/build/ext/lodash/_coreJsData.js +0 -1
- package/build/ext/lodash/_createAggregator.js +0 -1
- package/build/ext/lodash/_createBaseEach.js +0 -1
- package/build/ext/lodash/_createBaseFor.js +0 -1
- package/build/ext/lodash/_createSet.js +0 -1
- package/build/ext/lodash/_defineProperty.js +0 -1
- package/build/ext/lodash/_equalArrays.js +0 -1
- package/build/ext/lodash/_equalByTag.js +0 -1
- package/build/ext/lodash/_equalObjects.js +0 -1
- package/build/ext/lodash/_freeGlobal.js +0 -1
- package/build/ext/lodash/_getAllKeys.js +0 -1
- package/build/ext/lodash/_getAllKeysIn.js +0 -1
- package/build/ext/lodash/_getMapData.js +0 -1
- package/build/ext/lodash/_getMatchData.js +0 -1
- package/build/ext/lodash/_getNative.js +0 -1
- package/build/ext/lodash/_getPrototype.js +0 -1
- package/build/ext/lodash/_getRawTag.js +0 -1
- package/build/ext/lodash/_getSymbols.js +0 -1
- package/build/ext/lodash/_getSymbolsIn.js +0 -1
- package/build/ext/lodash/_getTag.js +0 -1
- package/build/ext/lodash/_getValue.js +0 -1
- package/build/ext/lodash/_hasPath.js +0 -1
- package/build/ext/lodash/_hashClear.js +0 -1
- package/build/ext/lodash/_hashDelete.js +0 -1
- package/build/ext/lodash/_hashGet.js +0 -1
- package/build/ext/lodash/_hashHas.js +0 -1
- package/build/ext/lodash/_hashSet.js +0 -1
- package/build/ext/lodash/_initCloneArray.js +0 -1
- package/build/ext/lodash/_initCloneByTag.js +0 -1
- package/build/ext/lodash/_initCloneObject.js +0 -1
- package/build/ext/lodash/_isFlattenable.js +0 -1
- package/build/ext/lodash/_isIndex.js +0 -1
- package/build/ext/lodash/_isIterateeCall.js +0 -1
- package/build/ext/lodash/_isKey.js +0 -1
- package/build/ext/lodash/_isKeyable.js +0 -1
- package/build/ext/lodash/_isMasked.js +0 -1
- package/build/ext/lodash/_isPrototype.js +0 -1
- package/build/ext/lodash/_isStrictComparable.js +0 -1
- package/build/ext/lodash/_listCacheClear.js +0 -1
- package/build/ext/lodash/_listCacheDelete.js +0 -1
- package/build/ext/lodash/_listCacheGet.js +0 -1
- package/build/ext/lodash/_listCacheHas.js +0 -1
- package/build/ext/lodash/_listCacheSet.js +0 -1
- package/build/ext/lodash/_mapCacheClear.js +0 -1
- package/build/ext/lodash/_mapCacheDelete.js +0 -1
- package/build/ext/lodash/_mapCacheGet.js +0 -1
- package/build/ext/lodash/_mapCacheHas.js +0 -1
- package/build/ext/lodash/_mapCacheSet.js +0 -1
- package/build/ext/lodash/_mapToArray.js +0 -1
- package/build/ext/lodash/_matchesStrictComparable.js +0 -1
- package/build/ext/lodash/_memoizeCapped.js +0 -1
- package/build/ext/lodash/_nativeCreate.js +0 -1
- package/build/ext/lodash/_nativeKeys.js +0 -1
- package/build/ext/lodash/_nativeKeysIn.js +0 -1
- package/build/ext/lodash/_nodeUtil.js +0 -1
- package/build/ext/lodash/_objectToString.js +0 -1
- package/build/ext/lodash/_overArg.js +0 -1
- package/build/ext/lodash/_overRest.js +0 -1
- package/build/ext/lodash/_root.js +0 -1
- package/build/ext/lodash/_setCacheAdd.js +0 -1
- package/build/ext/lodash/_setCacheHas.js +0 -1
- package/build/ext/lodash/_setToArray.js +0 -1
- package/build/ext/lodash/_setToString.js +0 -1
- package/build/ext/lodash/_shortOut.js +0 -1
- package/build/ext/lodash/_stackClear.js +0 -1
- package/build/ext/lodash/_stackDelete.js +0 -1
- package/build/ext/lodash/_stackGet.js +0 -1
- package/build/ext/lodash/_stackHas.js +0 -1
- package/build/ext/lodash/_stackSet.js +0 -1
- package/build/ext/lodash/_strictIndexOf.js +0 -1
- package/build/ext/lodash/_stringToPath.js +0 -1
- package/build/ext/lodash/_toKey.js +0 -1
- package/build/ext/lodash/_toSource.js +0 -1
- package/build/ext/lodash/cloneDeep.js +0 -1
- package/build/ext/lodash/constant.js +0 -1
- package/build/ext/lodash/debounce.js +0 -1
- package/build/ext/lodash/eq.js +0 -1
- package/build/ext/lodash/flatten.js +0 -1
- package/build/ext/lodash/forEach.js +0 -1
- package/build/ext/lodash/get.js +0 -1
- package/build/ext/lodash/groupBy.js +0 -1
- package/build/ext/lodash/hasIn.js +0 -1
- package/build/ext/lodash/identity.js +0 -1
- package/build/ext/lodash/isArguments.js +0 -1
- package/build/ext/lodash/isArray.js +0 -1
- package/build/ext/lodash/isArrayLike.js +0 -1
- package/build/ext/lodash/isBuffer.js +0 -1
- package/build/ext/lodash/isFunction.js +0 -1
- package/build/ext/lodash/isLength.js +0 -1
- package/build/ext/lodash/isMap.js +0 -1
- package/build/ext/lodash/isObject.js +0 -1
- package/build/ext/lodash/isObjectLike.js +0 -1
- package/build/ext/lodash/isSet.js +0 -1
- package/build/ext/lodash/isSymbol.js +0 -1
- package/build/ext/lodash/isTypedArray.js +0 -1
- package/build/ext/lodash/keys.js +0 -1
- package/build/ext/lodash/keysIn.js +0 -1
- package/build/ext/lodash/memoize.js +0 -1
- package/build/ext/lodash/noop.js +0 -1
- package/build/ext/lodash/now.js +0 -1
- package/build/ext/lodash/property.js +0 -1
- package/build/ext/lodash/sortBy.js +0 -1
- package/build/ext/lodash/stubArray.js +0 -1
- package/build/ext/lodash/stubFalse.js +0 -1
- package/build/ext/lodash/toNumber.js +0 -1
- package/build/ext/lodash/toString.js +0 -1
- package/build/ext/lodash/uniq.js +0 -1
- package/build/ext/lodash/uniqBy.js +0 -1
- package/build/ext/lzutf8/build/production/lzutf8.js +0 -11
- package/build/ext/object-assign/index.js +0 -6
- package/build/ext/optimism/lib/bundle.esm.js +0 -1
- 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/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-property/lib/index.js +0 -1
- package/build/ext/react-property/lib/possibleStandardNamesOptimized.js +0 -1
- package/build/ext/react-tooltip/dist/index.es.js +0 -1
- package/build/ext/react-tooltip/ext/uuid/dist/esm-node/bytesToUuid.js +0 -1
- package/build/ext/react-tooltip/ext/uuid/dist/esm-node/rng.js +0 -1
- package/build/ext/react-tooltip/ext/uuid/dist/esm-node/v4.js +0 -1
- package/build/ext/readable-stream/errors.js +0 -1
- package/build/ext/readable-stream/lib/_registry.js +0 -1
- package/build/ext/readable-stream/lib/_stream_duplex.js +0 -1
- package/build/ext/readable-stream/lib/_stream_passthrough.js +0 -1
- package/build/ext/readable-stream/lib/_stream_readable.js +0 -1
- package/build/ext/readable-stream/lib/_stream_transform.js +0 -1
- package/build/ext/readable-stream/lib/_stream_writable.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/async_iterator.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/buffer_list.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/destroy.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/end-of-stream.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/from.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/pipeline.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/state.js +0 -1
- package/build/ext/readable-stream/lib/internal/streams/stream.js +0 -1
- package/build/ext/readable-stream/readable.js +0 -1
- package/build/ext/safe-buffer/index.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/string_decoder/lib/string_decoder.js +0 -1
- package/build/ext/style-inject/dist/style-inject.es.js +0 -1
- package/build/ext/style-to-js/cjs/index.js +0 -1
- package/build/ext/style-to-js/cjs/utilities.js +0 -1
- package/build/ext/style-to-object/index.js +0 -1
- package/build/ext/symbol-observable/es/index.js +0 -1
- package/build/ext/symbol-observable/es/ponyfill.js +0 -1
- package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +0 -15
- package/build/ext/ts-invariant/lib/invariant.esm.js +0 -1
- package/build/ext/tslib/tslib.es6.js +0 -15
- package/build/ext/util-deprecate/node.js +0 -1
- package/build/ext/uuid/dist/esm-browser/regex.js +0 -1
- package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
- package/build/ext/uuid/dist/esm-browser/stringify.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
- package/build/ext/uuid/dist/esm-browser/validate.js +0 -1
- package/build/ext/zen-observable/index.js +0 -1
- package/build/ext/zen-observable/lib/Observable.js +0 -1
- package/build/ikas.js +0 -30
- package/build/index.d.ts +0 -9
- package/build/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -67
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -21
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -47
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -52
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/checkout/index.d.ts +0 -103
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -25
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -4
- package/build/models/data/contact-form/index.d.ts +0 -7
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -8
- package/build/models/data/customer/address/index.d.ts +0 -52
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/attribute-value/index.d.ts +0 -9
- package/build/models/data/customer/attribute-value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -36
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +0 -5
- package/build/models/data/customer-attribute/customer-attribute-option/index.js +0 -1
- package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +0 -17
- package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +0 -1
- package/build/models/data/customer-attribute/index.d.ts +0 -35
- package/build/models/data/customer-attribute/index.js +0 -1
- package/build/models/data/customer-review/index.d.ts +0 -26
- package/build/models/data/customer-review/index.js +0 -1
- package/build/models/data/customer-review-settings/index.d.ts +0 -4
- package/build/models/data/customer-review-summary/index.d.ts +0 -16
- package/build/models/data/customer-review-summary/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -4
- package/build/models/data/favorite-product/index.d.ts +0 -6
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -23
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -19
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/index.d.ts +0 -44
- package/build/models/data/installment-info/index.d.ts +0 -30
- package/build/models/data/installment-info/index.js +0 -1
- package/build/models/data/language/index.d.ts +0 -6
- package/build/models/data/merchant-settings/index.d.ts +0 -8
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -51
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -16
- package/build/models/data/order/gift-line/index.d.ts +0 -4
- package/build/models/data/order/index.d.ts +0 -147
- package/build/models/data/order/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 -42
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/options/index.d.ts +0 -11
- package/build/models/data/order/line-item/options/index.js +0 -1
- package/build/models/data/order/line-item/options/options-value/index.d.ts +0 -6
- package/build/models/data/order/line-item/options/options-value/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -32
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -6
- package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
- package/build/models/data/order/refund/settings.d.ts +0 -6
- package/build/models/data/order/refund/settings.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -7
- package/build/models/data/order-transaction/index.d.ts +0 -74
- package/build/models/data/order-transaction/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -61
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -20
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -36
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -27
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -11
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -6
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/product-attribute/index.d.ts +0 -34
- package/build/models/data/product-attribute/index.js +0 -1
- package/build/models/data/product-attribute/product-attribute-option/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-option/index.js +0 -1
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +0 -5
- package/build/models/data/product-attribute/product-attribute-table-cell/index.js +0 -1
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
- package/build/models/data/product-attribute/product-attribute-table-template/index.js +0 -1
- package/build/models/data/product-back-in-stock-settings/index.d.ts +0 -3
- package/build/models/data/product-campaing/campaign/index.d.ts +0 -41
- package/build/models/data/product-campaing/campaign/index.js +0 -1
- package/build/models/data/product-campaing/filter/index.d.ts +0 -13
- package/build/models/data/product-campaing/filter/index.js +0 -1
- package/build/models/data/product-campaing/index.d.ts +0 -6
- package/build/models/data/product-campaing/index.js +0 -1
- package/build/models/data/product-campaing/product-buyx-then-gety/index.d.ts +0 -19
- package/build/models/data/product-campaing/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product-campaing/product-campaign-date-range-field/index.d.ts +0 -5
- package/build/models/data/product-campaing/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product-campaing/product-fixed-discount/index.d.ts +0 -13
- package/build/models/data/product-campaing/product-fixed-discount/index.js +0 -1
- package/build/models/data/product-cart-item-options/index.d.ts +0 -6
- package/build/models/data/product-cart-item-options/index.js +0 -1
- package/build/models/data/product-filter/index.d.ts +0 -114
- package/build/models/data/product-filter/index.js +0 -1
- package/build/models/data/product-option-set/index.d.ts +0 -114
- package/build/models/data/product-option-set/index.js +0 -1
- package/build/models/data/product-tag/index.d.ts +0 -5
- package/build/models/data/product-tag/index.js +0 -1
- package/build/models/data/raffle/index.d.ts +0 -66
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -18
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/simple-product/index.d.ts +0 -138
- package/build/models/data/slider/index.d.ts +0 -5
- package/build/models/data/slider/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -5
- package/build/models/data/storefront/domain/index.d.ts +0 -8
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -25
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -7
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -5
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -11
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -13
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -12
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -26
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -11
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/index.d.ts +0 -3
- package/build/models/theme/component/index.d.ts +0 -19
- package/build/models/theme/component/index.js +0 -1
- package/build/models/theme/component/prop/index.d.ts +0 -63
- package/build/models/theme/component/prop/index.js +0 -1
- package/build/models/theme/custom-data/index.d.ts +0 -43
- package/build/models/theme/custom-data/index.js +0 -1
- package/build/models/theme/index.d.ts +0 -20
- package/build/models/theme/page/component/index.d.ts +0 -6
- package/build/models/theme/page/component/index.js +0 -1
- package/build/models/theme/page/component/prop-value/attribute-list.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/attribute.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/blog-category-list.d.ts +0 -7
- package/build/models/theme/page/component/prop-value/blog-category-list.js +0 -1
- package/build/models/theme/page/component/prop-value/blog-category.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/blog-category.js +0 -1
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +0 -9
- package/build/models/theme/page/component/prop-value/blog-list.js +0 -1
- package/build/models/theme/page/component/prop-value/blog.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/blog.js +0 -1
- package/build/models/theme/page/component/prop-value/brand-list.d.ts +0 -9
- package/build/models/theme/page/component/prop-value/brand-list.js +0 -1
- package/build/models/theme/page/component/prop-value/brand.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/brand.js +0 -1
- package/build/models/theme/page/component/prop-value/category-list.d.ts +0 -9
- package/build/models/theme/page/component/prop-value/category-list.js +0 -1
- package/build/models/theme/page/component/prop-value/category.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/category.js +0 -1
- package/build/models/theme/page/component/prop-value/link.d.ts +0 -19
- package/build/models/theme/page/component/prop-value/link.js +0 -1
- package/build/models/theme/page/component/prop-value/product-detail.d.ts +0 -6
- package/build/models/theme/page/component/prop-value/product-detail.js +0 -1
- package/build/models/theme/page/component/prop-value/product-list.d.ts +0 -18
- package/build/models/theme/page/component/prop-value/product-list.js +0 -1
- package/build/models/theme/page/component/prop-value/raffle-list.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/raffle-list.js +0 -1
- package/build/models/theme/page/component/prop-value/raffle.d.ts +0 -5
- package/build/models/theme/page/component/prop-value/raffle.js +0 -1
- package/build/models/theme/page/index.d.ts +0 -44
- package/build/models/theme/page/index.js +0 -1
- package/build/models/theme/settings/color/index.d.ts +0 -14
- package/build/models/theme/settings/color/index.js +0 -1
- package/build/models/theme/settings/favicon/index.d.ts +0 -4
- package/build/models/theme/settings/favicon/index.js +0 -1
- package/build/models/theme/settings/font-family/index.d.ts +0 -5
- package/build/models/theme/settings/font-family/index.js +0 -1
- package/build/models/theme/settings/index.d.ts +0 -15
- package/build/models/theme/settings/index.js +0 -1
- package/build/models/theme/theme.d.ts +0 -16
- package/build/models/theme/theme.js +0 -1
- package/build/models/ui/blog-category-list/index.d.ts +0 -52
- package/build/models/ui/blog-category-list/index.js +0 -1
- package/build/models/ui/blog-list/index.d.ts +0 -56
- package/build/models/ui/blog-list/index.js +0 -1
- package/build/models/ui/brand-list/index.d.ts +0 -61
- package/build/models/ui/brand-list/index.js +0 -1
- package/build/models/ui/category-list/index.d.ts +0 -61
- package/build/models/ui/category-list/index.js +0 -1
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/component-renderer/index.js +0 -1
- package/build/models/ui/customer-review-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/index.d.ts +0 -27
- package/build/models/ui/navigation-link/index.d.ts +0 -8
- package/build/models/ui/navigation-link/index.js +0 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
- package/build/models/ui/product-attribute-detail/index.js +0 -1
- package/build/models/ui/product-attribute-list/index.d.ts +0 -9
- package/build/models/ui/product-attribute-list/index.js +0 -1
- package/build/models/ui/product-detail/index.d.ts +0 -39
- package/build/models/ui/product-detail/index.js +0 -1
- package/build/models/ui/product-list/index.d.ts +0 -141
- package/build/models/ui/product-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.d.ts +0 -54
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -42
- package/build/models/ui/validator/form/account-info.js +0 -1
- package/build/models/ui/validator/form/address.d.ts +0 -78
- package/build/models/ui/validator/form/address.js +0 -1
- package/build/models/ui/validator/form/contact-form.d.ts +0 -45
- package/build/models/ui/validator/form/contact-form.js +0 -1
- package/build/models/ui/validator/form/customer-review.d.ts +0 -37
- package/build/models/ui/validator/form/customer-review.js +0 -1
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -29
- package/build/models/ui/validator/form/forgot-password.js +0 -1
- package/build/models/ui/validator/form/login.d.ts +0 -35
- package/build/models/ui/validator/form/login.js +0 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -60
- package/build/models/ui/validator/form/raffle-form.js +0 -1
- package/build/models/ui/validator/form/recover-password.d.ts +0 -36
- package/build/models/ui/validator/form/recover-password.js +0 -1
- package/build/models/ui/validator/form/register.d.ts +0 -52
- 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 -91
- package/build/models/ui/validator/rules/index.js +0 -1
- package/build/pages/404.d.ts +0 -6
- package/build/pages/404.js +0 -1
- package/build/pages/[slug]/index.d.ts +0 -7
- package/build/pages/_slug_/index.js +0 -1
- package/build/pages/account/addresses.d.ts +0 -6
- package/build/pages/account/addresses.js +0 -1
- package/build/pages/account/favorite-products.d.ts +0 -6
- package/build/pages/account/favorite-products.js +0 -1
- package/build/pages/account/forgot-password.d.ts +0 -6
- package/build/pages/account/forgot-password.js +0 -1
- package/build/pages/account/index.d.ts +0 -6
- package/build/pages/account/index.js +0 -1
- package/build/pages/account/login.d.ts +0 -6
- package/build/pages/account/login.js +0 -1
- package/build/pages/account/orders/[id].d.ts +0 -6
- package/build/pages/account/orders/_id_.js +0 -1
- package/build/pages/account/orders/index.d.ts +0 -6
- package/build/pages/account/orders/index.js +0 -1
- package/build/pages/account/raffles.d.ts +0 -6
- package/build/pages/account/raffles.js +0 -1
- package/build/pages/account/recover-password.d.ts +0 -6
- package/build/pages/account/recover-password.js +0 -1
- package/build/pages/account/register.d.ts +0 -6
- package/build/pages/account/register.js +0 -1
- package/build/pages/blog/[slug].d.ts +0 -7
- package/build/pages/blog/_slug_.js +0 -1
- package/build/pages/blog/index.d.ts +0 -6
- package/build/pages/blog/index.js +0 -1
- package/build/pages/cart.d.ts +0 -6
- package/build/pages/cart.js +0 -1
- package/build/pages/checkout.d.ts +0 -18
- package/build/pages/checkout.js +0 -1
- package/build/pages/editor.d.ts +0 -10
- package/build/pages/editor.js +0 -1
- package/build/pages/home.d.ts +0 -6
- package/build/pages/home.js +0 -1
- package/build/pages/index.d.ts +0 -22
- package/build/pages/pages/[slug].d.ts +0 -7
- package/build/pages/pages/_slug_.js +0 -1
- package/build/pages/raffle/[slug].d.ts +0 -7
- package/build/pages/raffle/_slug_.js +0 -1
- package/build/pages/raffle/index.d.ts +0 -6
- package/build/pages/raffle/index.js +0 -1
- package/build/pages/search.d.ts +0 -6
- package/build/pages/search.js +0 -1
- package/build/providers/helpers/raffles.d.ts +0 -2
- package/build/providers/helpers/raffles.js +0 -1
- package/build/providers/page-data-get.d.ts +0 -67
- package/build/providers/page-data-get.js +0 -1
- package/build/providers/page-data-init.d.ts +0 -66
- package/build/providers/page-data-init.js +0 -1
- package/build/providers/page-data-next.d.ts +0 -268
- package/build/providers/page-data-next.js +0 -1
- package/build/providers/placeholders.d.ts +0 -7
- package/build/providers/placeholders.js +0 -1
- package/build/providers/prop-value/attribute-list.d.ts +0 -12
- package/build/providers/prop-value/attribute-list.js +0 -1
- package/build/providers/prop-value/attribute.d.ts +0 -12
- package/build/providers/prop-value/attribute.js +0 -1
- package/build/providers/prop-value/blog-category-list.d.ts +0 -7
- package/build/providers/prop-value/blog-category-list.js +0 -1
- package/build/providers/prop-value/blog-category.d.ts +0 -11
- package/build/providers/prop-value/blog-category.js +0 -1
- package/build/providers/prop-value/blog-list.d.ts +0 -9
- package/build/providers/prop-value/blog-list.js +0 -1
- package/build/providers/prop-value/blog.d.ts +0 -11
- package/build/providers/prop-value/blog.js +0 -1
- package/build/providers/prop-value/boolean.d.ts +0 -6
- package/build/providers/prop-value/boolean.js +0 -1
- package/build/providers/prop-value/brand-list.d.ts +0 -7
- package/build/providers/prop-value/brand-list.js +0 -1
- package/build/providers/prop-value/brand.d.ts +0 -11
- package/build/providers/prop-value/brand.js +0 -1
- package/build/providers/prop-value/category-list.d.ts +0 -7
- package/build/providers/prop-value/category-list.js +0 -1
- package/build/providers/prop-value/category.d.ts +0 -11
- package/build/providers/prop-value/category.js +0 -1
- package/build/providers/prop-value/color.d.ts +0 -6
- package/build/providers/prop-value/color.js +0 -1
- package/build/providers/prop-value/custom.d.ts +0 -45
- package/build/providers/prop-value/custom.js +0 -1
- package/build/providers/prop-value/image-list.d.ts +0 -7
- package/build/providers/prop-value/image-list.js +0 -1
- package/build/providers/prop-value/image.d.ts +0 -7
- package/build/providers/prop-value/image.js +0 -1
- package/build/providers/prop-value/index.d.ts +0 -3
- package/build/providers/prop-value/link.d.ts +0 -16
- package/build/providers/prop-value/link.js +0 -1
- package/build/providers/prop-value/product-detail.d.ts +0 -11
- package/build/providers/prop-value/product-detail.js +0 -1
- package/build/providers/prop-value/product-list.d.ts +0 -15
- package/build/providers/prop-value/product-list.js +0 -1
- package/build/providers/prop-value/raffle-list.d.ts +0 -5
- package/build/providers/prop-value/raffle-list.js +0 -1
- package/build/providers/prop-value/raffle.d.ts +0 -11
- package/build/providers/prop-value/raffle.js +0 -1
- package/build/providers/prop-value/rich-text.d.ts +0 -6
- package/build/providers/prop-value/rich-text.js +0 -1
- package/build/providers/prop-value/slider.d.ts +0 -11
- package/build/providers/prop-value/slider.js +0 -1
- package/build/providers/prop-value/text.d.ts +0 -6
- package/build/providers/prop-value/text.js +0 -1
- package/build/scripts/generators/api/index.d.ts +0 -5
- package/build/scripts/generators/api/index.js +0 -1
- package/build/scripts/generators/api/info.d.ts +0 -12
- package/build/scripts/generators/api/info.js +0 -1
- package/build/scripts/generators/components/index.d.ts +0 -6
- package/build/scripts/generators/components/index.js +0 -1
- package/build/scripts/generators/config/content.d.ts +0 -37
- package/build/scripts/generators/config/content.js +0 -1
- package/build/scripts/generators/config/index.d.ts +0 -8
- package/build/scripts/generators/config/index.js +0 -1
- package/build/scripts/generators/index.d.ts +0 -7
- package/build/scripts/generators/pages/index.d.ts +0 -7
- package/build/scripts/generators/pages/index.js +0 -1
- package/build/scripts/generators/pages/info.d.ts +0 -14
- package/build/scripts/generators/pages/info.js +0 -1
- package/build/scripts/generators/store/content.d.ts +0 -1
- package/build/scripts/generators/store/content.js +0 -1
- package/build/scripts/generators/store/index.d.ts +0 -3
- package/build/scripts/generators/store/index.js +0 -1
- package/build/scripts/generators/theme/index.d.ts +0 -6
- package/build/scripts/generators/theme/index.js +0 -1
- package/build/scripts/generators/types/index.d.ts +0 -21
- package/build/scripts/generators/types/index.js +0 -1
- package/build/scripts/ikas.d.ts +0 -2
- package/build/store/base.d.ts +0 -27
- package/build/store/base.js +0 -1
- package/build/store/cart.d.ts +0 -29
- package/build/store/cart.js +0 -1
- package/build/store/customer.d.ts +0 -96
- package/build/store/customer.js +0 -1
- package/build/store/index.d.ts +0 -1
- package/build/storefront/index.d.ts +0 -60
- package/build/storefront/index.js +0 -1
- package/build/utils/constants.d.ts +0 -1
- 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/fs.d.ts +0 -28
- package/build/utils/fs.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 -11
- package/build/utils/helper.js +0 -1
- package/build/utils/i18n.d.ts +0 -20
- package/build/utils/i18n.js +0 -1
- package/build/utils/index.d.ts +0 -3
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { IkasProductListPropValue, IkasThemePageType } from "../../../models/theme";
|
|
2
|
-
import { IkasProductDetail } from "../product-detail";
|
|
3
|
-
import { IkasProductFilter } from "../../../models/data/product-filter";
|
|
4
|
-
import { NextRouter } from "next/router.js";
|
|
5
|
-
import { IkasCategory, IkasFilterCategory } from "../../../models/data/category";
|
|
6
|
-
import { IkasBrand } from "../../../models/data";
|
|
7
|
-
import { IkasRelatedProductProps } from "src/providers/prop-value/product-list";
|
|
8
|
-
export declare class IkasProductList {
|
|
9
|
-
data: IkasProductDetail[];
|
|
10
|
-
filters?: IkasProductFilter[] | null;
|
|
11
|
-
private _filterCategories?;
|
|
12
|
-
private _type;
|
|
13
|
-
private _pageType;
|
|
14
|
-
private _sort;
|
|
15
|
-
private _limit;
|
|
16
|
-
private _page;
|
|
17
|
-
private _infiniteScrollPage;
|
|
18
|
-
private _count;
|
|
19
|
-
private _searchKeyword;
|
|
20
|
-
private _initialized;
|
|
21
|
-
private _minPage?;
|
|
22
|
-
private _productListPropValue;
|
|
23
|
-
private _filterBrandId?;
|
|
24
|
-
private _filterCategoryId?;
|
|
25
|
-
private _relatedProductData?;
|
|
26
|
-
private pageSpecificData?;
|
|
27
|
-
private _recommendFor?;
|
|
28
|
-
private _isLoading;
|
|
29
|
-
private _fetchRequestTime;
|
|
30
|
-
private router?;
|
|
31
|
-
constructor(data: IkasProductListParams, router?: NextRouter);
|
|
32
|
-
get sort(): IkasProductListSortType;
|
|
33
|
-
get limit(): number;
|
|
34
|
-
get pageType(): IkasThemePageType;
|
|
35
|
-
get page(): number;
|
|
36
|
-
get minPage(): number;
|
|
37
|
-
get count(): number;
|
|
38
|
-
get pageCount(): number;
|
|
39
|
-
get searchKeyword(): string;
|
|
40
|
-
set searchKeyword(value: string);
|
|
41
|
-
get isInitialized(): boolean;
|
|
42
|
-
get isFilterable(): boolean;
|
|
43
|
-
get isFiltered(): boolean | undefined;
|
|
44
|
-
get isStatic(): boolean;
|
|
45
|
-
get isDiscounted(): boolean;
|
|
46
|
-
get isRecommended(): boolean;
|
|
47
|
-
get isLastViewed(): boolean;
|
|
48
|
-
get isRelatedProducts(): boolean;
|
|
49
|
-
get isSearch(): boolean;
|
|
50
|
-
get hasPrev(): boolean;
|
|
51
|
-
get hasNext(): boolean;
|
|
52
|
-
get isLoading(): boolean;
|
|
53
|
-
get filterQueryParams(): string;
|
|
54
|
-
get filterCategories(): IkasFilterCategory[] | undefined;
|
|
55
|
-
get hasAppliedfilter(): boolean | undefined;
|
|
56
|
-
get isFeaturedSortEnabled(): boolean;
|
|
57
|
-
private setPageSpecificSort;
|
|
58
|
-
private getSortParams;
|
|
59
|
-
private searchProducts;
|
|
60
|
-
private getFilters;
|
|
61
|
-
private applyQueryParamFilters;
|
|
62
|
-
private applyFacets;
|
|
63
|
-
private applyFilters;
|
|
64
|
-
clearFilters(): void;
|
|
65
|
-
private getInitial;
|
|
66
|
-
getPrev: () => Promise<void>;
|
|
67
|
-
getNext: () => Promise<void>;
|
|
68
|
-
getPage: (page: number) => Promise<void>;
|
|
69
|
-
setSortType(sortType: IkasProductListSortType): Promise<void>;
|
|
70
|
-
onFilterCategoryClick(filterCategory: IkasFilterCategory, disableRoute?: boolean): Promise<void>;
|
|
71
|
-
toJSON(): {
|
|
72
|
-
data: IkasProductDetail[];
|
|
73
|
-
type: IkasProductListType;
|
|
74
|
-
pageType: IkasThemePageType;
|
|
75
|
-
sort: IkasProductListSortType;
|
|
76
|
-
limit: number;
|
|
77
|
-
page: number;
|
|
78
|
-
count: number;
|
|
79
|
-
searchKeyword: string;
|
|
80
|
-
initialized: boolean;
|
|
81
|
-
minPage: number | null | undefined;
|
|
82
|
-
filterBrandId: string | null | undefined;
|
|
83
|
-
filterCategoryId: string | null | undefined;
|
|
84
|
-
filterCategories: IkasFilterCategory[] | null | undefined;
|
|
85
|
-
filters: IkasProductFilter[] | null | undefined;
|
|
86
|
-
recommendFor: string | null | undefined;
|
|
87
|
-
productListPropValue: IkasProductListPropValue;
|
|
88
|
-
pageSpecificData: IkasCategory | IkasBrand | null | undefined;
|
|
89
|
-
};
|
|
90
|
-
setVisibleInfiniteScrollPage: (page: number) => void;
|
|
91
|
-
private restoreInfiniteScrollPage;
|
|
92
|
-
private getQueryParams;
|
|
93
|
-
private isBrowser;
|
|
94
|
-
private waitForCustomerStoreInit;
|
|
95
|
-
private handleListingEvent;
|
|
96
|
-
private searchDebouncer;
|
|
97
|
-
private searchAnalyticsDebouncer;
|
|
98
|
-
}
|
|
99
|
-
export declare type IkasProductListParams = {
|
|
100
|
-
data?: IkasProductDetail[];
|
|
101
|
-
type?: IkasProductListType;
|
|
102
|
-
pageType: IkasThemePageType;
|
|
103
|
-
sort?: IkasProductListSortType;
|
|
104
|
-
limit?: number;
|
|
105
|
-
page?: number;
|
|
106
|
-
count?: number;
|
|
107
|
-
searchKeyword?: string;
|
|
108
|
-
initialized?: boolean;
|
|
109
|
-
minPage?: number;
|
|
110
|
-
filterBrandId?: string;
|
|
111
|
-
filterCategoryId?: string;
|
|
112
|
-
filters?: IkasProductFilter[];
|
|
113
|
-
filterCategories?: IkasFilterCategory[];
|
|
114
|
-
recommendFor?: string;
|
|
115
|
-
productListPropValue: IkasProductListPropValue;
|
|
116
|
-
pageSpecificData?: IkasCategory | IkasBrand | null;
|
|
117
|
-
relatedProductData?: IkasRelatedProductProps | null;
|
|
118
|
-
};
|
|
119
|
-
export declare enum IkasProductListType {
|
|
120
|
-
ALL = "ALL",
|
|
121
|
-
STATIC = "STATIC",
|
|
122
|
-
DISCOUNTED = "DISCOUNTED",
|
|
123
|
-
RECOMMENDED = "RECOMMENDED",
|
|
124
|
-
CATEGORY = "CATEGORY",
|
|
125
|
-
SEARCH = "SEARCH",
|
|
126
|
-
LAST_VIEWED = "LAST_VIEWED",
|
|
127
|
-
RELATED_PRODUCTS = "RELATED_PRODUCTS"
|
|
128
|
-
}
|
|
129
|
-
export declare enum IkasProductListSortType {
|
|
130
|
-
INCREASING_PRICE = "INCREASING_PRICE",
|
|
131
|
-
DECREASING_PRICE = "DECREASING_PRICE",
|
|
132
|
-
LAST_ADDED = "LAST_ADDED",
|
|
133
|
-
FIRST_ADDED = "FIRST_ADDED",
|
|
134
|
-
INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
|
|
135
|
-
DECRASING_DISCOUNT = "DECRASING_DISCOUNT",
|
|
136
|
-
FEATURED = "FEATURED"
|
|
137
|
-
}
|
|
138
|
-
export declare enum IkasRelatedProductsType {
|
|
139
|
-
CATEGORY = "CATEGORY",
|
|
140
|
-
BRAND = "BRAND"
|
|
141
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import"../../theme/theme.js";import{IkasThemePageType as r}from"../../theme/page/index.js";import"../../theme/component/prop/index.js";import"../../theme/page/component/prop-value/link.js";import"../brand-list/index.js";import"../blog-list/index.js";import"../blog-category-list/index.js";import"../category-list/index.js";import{IkasProductDetail as s}from"../product-detail/index.js";import"../product-attribute-detail/index.js";import"../product-attribute-list/index.js";import"../customer-review-list/index.js";import"../customer-review-summary-list/index.js";import"../validator/index.js";import"../validator/rules/index.js";import"../validator/form/login.js";import"../validator/form/address.js";import"../validator/form/register.js";import"../validator/form/contact-form.js";import"../validator/form/forgot-password.js";import"../validator/form/recover-password.js";import"../validator/form/account-info.js";import"../validator/form/raffle-form.js";import"../validator/form/customer-review.js";import"../raffle-list/index.js";import"../../theme/settings/index.js";import"../../theme/custom-data/index.js";import"../../../api/blog/index.js";import"../../../api/brand/index.js";import"../../../api/cart/index.js";import"../../../api/category/index.js";import"../../../api/checkout/index.js";import"../../../api/city/index.js";import"../../../api/country/index.js";import"../../../api/customer/index.js";import"../../../api/customer-review/index.js";import"../../../api/customer-review-summary/index.js";import"../../../api/district/index.js";import"../../../api/html-meta-data/index.js";import"../../../api/merchant/index.js";import{IkasProductSearchAPI as n}from"../../../api/product-search/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import{ModelOrder as a,IkasFilterCategory as o}from"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/customer/address/index.js";import"../../data/customer/index.js";import"../../data/customer-review/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/installment-info/index.js";import"../../data/order/index.js";import"../../data/order/line-item/index.js";import"../../../api/product-option-file/index.js";import"../../data/product/index.js";import"../../data/variant-type/index.js";import"../../data/product/variant/index.js";import"../../data/product/variant/price/index.js";import"../../data/product-attribute/index.js";import"../../data/product/attribute-value/index.js";import{IkasProductFilter as u,IkasProductFilterValue as c}from"../../data/product-filter/index.js";import"../../data/variant-type/variant-value/index.js";import"../../data/order-transaction/index.js";import"../../data/product-option-set/index.js";import"../../data/raffle/index.js";import"../../data/product-campaing/campaign/index.js";import"../../data/customer-attribute/index.js";import"../../data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../api/apollo.js";import"../../../api/favorite-product/index.js";import"../../../api/contact-form/index.js";import"../../../api/state/index.js";import"../../../api/product-option-set/index.js";import"../../../api/raffle/index.js";import"../../../api/back-in-stock-reminder/index.js";import"../../../api/product-campaign/index.js";import l from'../../../ext/query-string/index.js';import d from'../../../ext/lodash/debounce.js';import{Analytics as p}from"../../../analytics/analytics.js";import"../../../analytics/head/index.js";import{IkasStorefrontConfig as h}from"../../../storefront/index.js";import{SortByDirectionEnum as f,SortByTypeEnum as m}from"../../../__generated__/global-types.js";var g,_,y,v=function(){function y(n,a){var c=this;if(this.filters=null,this._filterCategories=null,this._infiniteScrollPage=null,this._initialized=!1,this._minPage=null,this._filterBrandId=null,this._filterCategoryId=null,this._relatedProductData=null,this.pageSpecificData=null,this._recommendFor=null,this._isLoading=!1,this._fetchRequestTime=0,this.router=null,this.applyFilters=function(){return t(c,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,this.getInitial()];case 1:return t=e.sent(),[r.CATEGORY,r.BRAND,r.SEARCH].includes(this._pageType)?(t&&this.isBrowser()&&!this.isSearch&&!h.isEditor&&(null===(i=this.router)||void 0===i||i.replace("".concat(location.pathname).concat(this.filterQueryParams?"?"+this.filterQueryParams:""),void 0,{shallow:!0})),[2]):[2]}}))}))},this.getInitial=function(i,r){return t(c,void 0,void 0,(function(){var t,n,a,o,u,c,l,d,p;return e(this,(function(e){switch(e.label){case 0:this._isLoading=!0,t=Date.now(),this._fetchRequestTime=t,e.label=1;case 1:return e.trys.push([1,12,13,14]),n=r?this._page:1,a=this._limit,!this.isFilterable||this.filters?[3,3]:[4,this.getFilters()];case 2:e.sent(),e.label=3;case 3:return this.applyQueryParamFilters(i),this.isSearch&&!this.hasAppliedfilter?(this.data=[],this._page=1,this._minPage=1,this._count=0,this._initialized=!0,[2,!0]):(o=void 0,this.isStatic?(n=void 0,a=200,[3,10]):[3,4]);case 4:return this.isDiscounted?(n=1,a=10,[3,10]):[3,5];case 5:return this.isRecommended?(n=1,a=10,[3,10]):[3,6];case 6:return this.isLastViewed?this.isBrowser()?[4,this.waitForCustomerStoreInit()]:[3,9]:[3,10];case 7:return e.sent(),[4,h.store.customerStore.getLastViewedProducts()];case 8:return(u=e.sent())&&u.length&&(o=u.map((function(t){return t.productId}))),[3,10];case 9:return[2];case 10:return[4,this.searchProducts(n||1,a||10,o)];case 11:return(c=e.sent())&&this._fetchRequestTime===t?(l=[],this.isStatic||this.isLastViewed?(d=this.isStatic?this._productListPropValue.productIds:h.store.customerStore._lastViewedProducts,l=(null==d?void 0:d.map((function(t){var e=c.data.find((function(e){return e.id===t.productId})),i=null==e?void 0:e.variants.find((function(e){return e.id===t.variantId}));if((null==i?void 0:i.isActive)||(i=null==e?void 0:e.variants.find((function(t){return t.isActive}))),e&&i)return new s(e,i.variantValues)})).filter((function(t){return!!t})))||[]):l=c.data.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new s(t,(e||t.variants[0]).variantValues)})),this.applyFacets(c.facets),this.data=l,this._count=c.count,this._initialized=!0,this._page=n||1,this._minPage=this.page,r||(this._infiniteScrollPage=null),this.handleListingEvent(),[2,!0]):[2];case 12:return p=e.sent(),console.log(p),[3,14];case 13:return t===this._fetchRequestTime&&(this._isLoading=!1),[7];case 14:return[2]}}))}))},this.getPrev=function(){return t(c,void 0,void 0,(function(){var t,i,r,n;return e(this,(function(e){switch(e.label){case 0:if(this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.searchProducts(t,this.limit)];case 2:return(i=e.sent())?(r=i.data.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new s(t,(e||t.variants[0]).variantValues)})),this.data=r.concat(this.data),this._count=i.count,this._minPage=t,[3,5]):[2];case 3:return n=e.sent(),console.log(n),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(c,void 0,void 0,(function(){var t,i,r;return e(this,(function(e){switch(e.label){case 0:if(this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.searchProducts(this.page+1,this.limit)];case 2:return(t=e.sent())?(i=t.data.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new s(t,(e||t.variants[0]).variantValues)})),this.data=this.data.concat(i),this._count=t.count,this._page=this.page+1,[3,5]):[2];case 3:return r=e.sent(),console.log(r),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(i){return t(c,void 0,void 0,(function(){var t,r,n;return e(this,(function(e){switch(e.label){case 0:if(this._isLoading||this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.searchProducts(i,this.limit)];case 2:return(t=e.sent())?(r=t.data.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new s(t,(e||t.variants[0]).variantValues)})),this.data=r,this._count=t.count,this._page=i,this._minPage=i,[3,5]):[2];case 3:return n=e.sent(),console.log(n),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.setVisibleInfiniteScrollPage=function(t){var e;c._infiniteScrollPage!==t&&(c._infiniteScrollPage=t,h.isEditor||null===(e=c.router)||void 0===e||e.replace("".concat(location.pathname).concat(c.filterQueryParams?"?"+c.filterQueryParams:""),void 0,{shallow:!0}))},this.searchDebouncer=d((function(){c.applyFilters()}),100),this.searchAnalyticsDebouncer=d((function(){p.search(c._searchKeyword)}),1e3),this.data=n.data?n.data.map((function(t){return new s(t.product,t.selectedVariantValues)})):[],this._type=n.type||n.productListPropValue.productListType||g.ALL,this._pageType=n.pageType,this._sort=n.sort||n.productListPropValue.initialSort||_.LAST_ADDED,"A_Z"!==this.initialSort&&"Z_A"!==this.initialSort||(this._sort=_.LAST_ADDED),this._limit=n.limit||n.productListPropValue.initialLimit||20,this._page=n.page||1,this._minPage=n.minPage||null,this._count=n.count||0,this._searchKeyword=n.searchKeyword||"",this._productListPropValue=n.productListPropValue,this._filterBrandId=n.filterBrandId||null,this._filterCategoryId=n.filterCategoryId||null,this._relatedProductData=n.relatedProductData||null,this._recommendFor=n.recommendFor,this.filters=n.filters?n.filters.map((function(t){return new u(t,c)})):null,this._filterCategories=n.filterCategories?n.filterCategories.map((function(t){return new o(t)})):null,this.pageSpecificData=n.pageSpecificData||null,this.router=a,i(this),this.setPageSpecificSort(),this.isBrowser())if(this.restoreInfiniteScrollPage(),location.search&&(this.isFilterable||this._type===g.SEARCH)){var l=this.getQueryParams();this.getInitial(l,this._page>1)}else this._page>1?this.getInitial(void 0,!0):this.isLastViewed?this.getInitial():this.handleListingEvent()}return Object.defineProperty(y.prototype,"sort",{get:function(){return this._sort},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"pageType",{get:function(){return this._pageType},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"minPage",{get:function(){return this._minPage||1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"searchKeyword",{get:function(){return this._searchKeyword},set:function(t){t!==this._searchKeyword&&(this._searchKeyword=t,this.searchDebouncer(),this.searchAnalyticsDebouncer())},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isFilterable",{get:function(){return this._type===g.ALL||this._type===g.CATEGORY},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isFiltered",{get:function(){var t,e;return(null===(t=this.filters)||void 0===t?void 0:t.some((function(t){return!!t.valueList.length})))||!!this._searchKeyword||this._pageType!==r.CATEGORY&&(!!this._filterCategoryId||(null===(e=this._filterCategories)||void 0===e?void 0:e.some((function(t){return t.isSelected}))))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isStatic",{get:function(){return this._type===g.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isDiscounted",{get:function(){return this._type===g.DISCOUNTED},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isRecommended",{get:function(){return this._type===g.RECOMMENDED},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isLastViewed",{get:function(){return this._type===g.LAST_VIEWED},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isRelatedProducts",{get:function(){return this._type===g.RELATED_PRODUCTS},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isSearch",{get:function(){return this._type===g.SEARCH},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasPrev",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasNext",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended)&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"filterQueryParams",{get:function(){var t,e,i,s,n=this,a={},o=this.getQueryParams();if(o&&o.forEach((function(t,e){a[e]=t})),null===(t=this.filters)||void 0===t||t.forEach((function(t){t.keyList.length&&(a[t.key]=t.keyList)})),this._searchKeyword&&(a.s=this._searchKeyword),this._infiniteScrollPage&&(a.page=this._infiniteScrollPage),this._pageType!==r.CATEGORY){var u=null===(e=this.filterCategories)||void 0===e?void 0:e.filter((function(t){return t.isSelected}));if(!!(null==u?void 0:u.length))a.c=null==u?void 0:u.map((function(t){return t.slug}));else if(this._filterCategoryId){var c=null===(s=null===(i=this.filterCategories)||void 0===i?void 0:i.find((function(t){return t.id===n._filterCategoryId})))||void 0===s?void 0:s.slug;c&&(a.c=c)}}return l.stringify(a,{arrayFormat:"comma"})},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"filterCategories",{get:function(){var t;return null===(t=this._filterCategories)||void 0===t?void 0:t.filter((function(t){return 0!==t.resultCount}))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasAppliedfilter",{get:function(){var t;return!!this._searchKeyword||(null===(t=this.filters)||void 0===t?void 0:t.some((function(t){return!!t.valueList.length})))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isFeaturedSortEnabled",{get:function(){var t;return(null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)===a.MANUALLY&&[g.ALL,g.CATEGORY].includes(this._type)},enumerable:!1,configurable:!0}),y.prototype.setPageSpecificSort=function(){var t;if((null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)&&[g.ALL,g.CATEGORY].includes(this._type))switch(this.pageSpecificData.orderType){case a.HIGHEST_DISCOUNT_RATIO:this._sort=_.DECRASING_DISCOUNT;break;case a.LOWEST_DISCOUNT_RATIO:this._sort=_.INCREASING_DISCOUNT;break;case a.HIGHEST_PRICE:this._sort=_.DECREASING_PRICE;break;case a.LOWEST_PRICE:this._sort=_.INCREASING_PRICE;break;case a.NEWEST:this._sort=_.LAST_ADDED;break;case a.OLDEST:this._sort=_.FIRST_ADDED;break;case a.MANUALLY:this._sort=_.FEATURED}},y.prototype.getSortParams=function(){var t=f.DESC,e=m.CREATED_AT;switch(this._sort){case _.INCREASING_PRICE:t=f.ASC,e=m.PRICE;break;case _.DECREASING_PRICE:t=f.DESC,e=m.PRICE;break;case _.FIRST_ADDED:t=f.ASC,e=m.CREATED_AT;break;case _.LAST_ADDED:t=f.DESC,e=m.CREATED_AT;break;case _.INCREASING_DISCOUNT:t=f.ASC,e=m.DISCOUNT_RATIO;break;case _.DECRASING_DISCOUNT:t=f.DESC,e=m.DISCOUNT_RATIO;break;case _.FEATURED:if(this.isSearch)return;t=f.ASC,e=m.MANUAL_SORT}return{direction:t,type:e}},y.prototype.searchProducts=function(i,s,a){var o,u,l;return t(this,void 0,void 0,(function(){var t,d,p,f;return e(this,(function(e){switch(e.label){case 0:return t=[],d=[],null===(o=this.filters)||void 0===o||o.forEach((function(e){e.valueList.length&&t.push(new c({id:e.id,type:e.type,displayType:e.displayType,valueList:e.valueList})),e.isFacetFilter&&d.push({id:e.id,type:e.type,displayType:e.displayType})})),p=null===(u=this._filterCategories)||void 0===u?void 0:u.filter((function(t){return t.isSelected})).map((function(t){return t.id})),f=this.getSortParams(),this.isRelatedProducts&&this._relatedProductData?[4,n.getRelatedProducts({priceListId:h.priceListId,salesChannelId:h.salesChannelId,productId:this._relatedProductData.productId,brandIds:this._relatedProductData.brandIds,categoryIds:this._relatedProductData.categoryIds})]:[3,2];case 1:case 3:return[2,e.sent()];case 2:return[4,n.searchProducts({page:i,perPage:s,productIdList:this.isStatic?null===(l=this._productListPropValue.productIds)||void 0===l?void 0:l.map((function(t){return t.productId})):a,filterList:t,facetList:d,brandId:this._pageType===r.BRAND&&this._type!==g.SEARCH?this._filterBrandId:void 0,categoryIdList:p&&p.length?p:this._filterCategoryId?[this._filterCategoryId]:void 0,priceListId:h.priceListId,salesChannelId:h.salesChannelId,query:this._searchKeyword,order:this._type===g.SEARCH?null:f?[f]:null},!0)]}}))}))},y.prototype.getFilters=function(){var i;return t(this,void 0,void 0,(function(){var t,s,a=this;return e(this,(function(e){switch(e.label){case 0:return[4,n.getProductFilterData(this._filterCategoryId?this._filterCategoryId:void 0)];case 1:return t=e.sent(),this.filters=null==t?void 0:t.filters.map((function(t){return new u(t,a)})),this._filterCategories=null==t?void 0:t.categories,this.pageType!==r.CATEGORY&&this._filterCategoryId&&(s=null===(i=this._filterCategories)||void 0===i?void 0:i.find((function(t){return t.id===a._filterCategoryId})))&&(s._isSelected=!0),this.filters&&this.filters.sort((function(t,e){return t.order>e.order?1:-1})),[2]}}))}))},y.prototype.applyQueryParamFilters=function(t){var e,i=this;try{null==t||t.forEach((function(t,e){var r,s=null===(r=i.filters)||void 0===r?void 0:r.find((function(t){return t.key===e}));s&&s.applyQueryParam(t)}));var s=null==t?void 0:t.get("s");if(s&&(this._searchKeyword=s),this._pageType!==r.CATEGORY){var n=null==t?void 0:t.get("c"),a=null==n?void 0:n.split(",");a&&a.length&&(null===(e=this.filterCategories)||void 0===e||e.forEach((function(t){t._isSelected=a.some((function(e){return e===t.slug}))})))}}catch(t){console.log(t)}},y.prototype.applyFacets=function(t){var e,i;null===(e=this.filters)||void 0===e||e.forEach((function(e){var i,r,s,n=null==t?void 0:t.find((function(t){return t.id===e.id}));n?null===(i=e.values)||void 0===i||i.forEach((function(t){var i=n.values.find((function(e){return e.id===t.id}));i?t.resultCount=i.count:e.isCustomValueFilter?t.resultCount=null:t.resultCount=0})):e.isCustomValueFilter?null===(r=e.values)||void 0===r||r.forEach((function(t){return t.resultCount=null})):null===(s=e.values)||void 0===s||s.forEach((function(t){return t.resultCount=0}))}));var r=null==t?void 0:t.find((function(t){return"category"===t.id}));r&&(null===(i=this._filterCategories)||void 0===i||i.forEach((function(t){var e=r.values.find((function(e){return e.id===t.id}));t.resultCount=e?e.count:0})))},y.prototype.clearFilters=function(){var t,e;null===(t=this.filters)||void 0===t||t.forEach((function(t){return t.clear()})),this._searchKeyword="",this._pageType!==r.CATEGORY&&(this._filterCategoryId=void 0),null===(e=this._filterCategories)||void 0===e||e.forEach((function(t){return t._isSelected=!1})),this.applyFilters()},y.prototype.setSortType=function(i){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return this._sort=i,[4,this.getInitial()];case 1:return t.sent(),[2]}}))}))},y.prototype.onFilterCategoryClick=function(i,r){var s,n;return void 0===r&&(r=!1),t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return r?(null===(s=this._filterCategories)||void 0===s||s.forEach((function(t){t.id===i.id&&(t._isSelected=!t.isSelected)})),[4,this.applyFilters()]):[3,2];case 1:return t.sent(),[3,3];case 2:h.isEditor||null===(n=this.router)||void 0===n||n.push(i.href+(this.filterQueryParams?"?"+this.filterQueryParams:"")),t.label=3;case 3:return[2]}}))}))},y.prototype.toJSON=function(){return{data:this.data,type:this._type,pageType:this._pageType,sort:this._sort,limit:this._limit,page:this._page,count:this._count,searchKeyword:this._searchKeyword,initialized:this._initialized,minPage:this._minPage,filterBrandId:this._filterBrandId,filterCategoryId:this._filterCategoryId,filterCategories:this._filterCategories,filters:this.filters,recommendFor:this._recommendFor,productListPropValue:this._productListPropValue,pageSpecificData:this.pageSpecificData}},y.prototype.restoreInfiniteScrollPage=function(){var t=this.getQueryParams(),e=null==t?void 0:t.get("page");if(e){var i=parseInt(e);isNaN(i)||(this._page=i,this._infiniteScrollPage=i)}},y.prototype.getQueryParams=function(){if(this.isBrowser())return new URLSearchParams(location.search)},y.prototype.isBrowser=function(){return"undefined"!=typeof window},y.prototype.waitForCustomerStoreInit=function(){return new Promise((function(t){var e=setInterval((function(){h.store.customerStore.initialized&&(clearInterval(e),t(null))}),1e3)}))},y.prototype.handleListingEvent=function(){this.searchKeyword&&this.data.length?p.viewSearchResults(this._searchKeyword,this.data):this.data.length&&this._type===g.ALL&&p.viewListing(this.data)},y}();!function(t){t.ALL="ALL",t.STATIC="STATIC",t.DISCOUNTED="DISCOUNTED",t.RECOMMENDED="RECOMMENDED",t.CATEGORY="CATEGORY",t.SEARCH="SEARCH",t.LAST_VIEWED="LAST_VIEWED",t.RELATED_PRODUCTS="RELATED_PRODUCTS"}(g||(g={})),function(t){t.INCREASING_PRICE="INCREASING_PRICE",t.DECREASING_PRICE="DECREASING_PRICE",t.LAST_ADDED="LAST_ADDED",t.FIRST_ADDED="FIRST_ADDED",t.INCREASING_DISCOUNT="INCREASING_DISCOUNT",t.DECRASING_DISCOUNT="DECRASING_DISCOUNT",t.FEATURED="FEATURED"}(_||(_={})),function(t){t.CATEGORY="CATEGORY",t.BRAND="BRAND"}(y||(y={}));export{v as IkasProductList,_ as IkasProductListSortType,g as IkasProductListType,y as IkasRelatedProductsType};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IkasRaffle } from "../../../models";
|
|
2
|
-
export declare class IkasRaffleList {
|
|
3
|
-
data: IkasRaffle[];
|
|
4
|
-
private _limit;
|
|
5
|
-
private _page;
|
|
6
|
-
private _count;
|
|
7
|
-
private _initialized;
|
|
8
|
-
private _minPage?;
|
|
9
|
-
private _start;
|
|
10
|
-
private _end;
|
|
11
|
-
private _includeDeleted;
|
|
12
|
-
private _name;
|
|
13
|
-
private _search;
|
|
14
|
-
private _id;
|
|
15
|
-
private _isLoading;
|
|
16
|
-
constructor(data?: IkasRaffleListParams);
|
|
17
|
-
get limit(): number;
|
|
18
|
-
get page(): number;
|
|
19
|
-
get count(): number;
|
|
20
|
-
get pageCount(): number;
|
|
21
|
-
get isInitialized(): boolean;
|
|
22
|
-
get hasPrev(): boolean;
|
|
23
|
-
get hasNext(): boolean;
|
|
24
|
-
get isLoading(): boolean;
|
|
25
|
-
get minPage(): number;
|
|
26
|
-
private getRaffleList;
|
|
27
|
-
private getInitial;
|
|
28
|
-
getPrev: () => Promise<void>;
|
|
29
|
-
getNext: () => Promise<void>;
|
|
30
|
-
getPage: (page: number) => Promise<void>;
|
|
31
|
-
toJSON(): {
|
|
32
|
-
data: IkasRaffle[];
|
|
33
|
-
limit: number;
|
|
34
|
-
page: number;
|
|
35
|
-
count: number;
|
|
36
|
-
initialized: boolean;
|
|
37
|
-
minPage: number | null | undefined;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare type IkasRaffleListParams = {
|
|
41
|
-
data?: IkasRaffle[];
|
|
42
|
-
limit?: number;
|
|
43
|
-
page?: number;
|
|
44
|
-
count?: number;
|
|
45
|
-
initialized?: boolean;
|
|
46
|
-
minPage?: number;
|
|
47
|
-
start?: number;
|
|
48
|
-
end?: number;
|
|
49
|
-
includeDeleted?: boolean;
|
|
50
|
-
name?: string;
|
|
51
|
-
search?: string;
|
|
52
|
-
id?: string;
|
|
53
|
-
customerId?: string;
|
|
54
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as i}from'../../../ext/tslib/tslib.es6.js';import"../../../api/blog/index.js";import"../../../api/brand/index.js";import"../../../api/cart/index.js";import"../../../api/category/index.js";import"../../../api/checkout/index.js";import"../../../api/city/index.js";import"../../../api/country/index.js";import"../../../api/customer/index.js";import"../../../api/customer-review/index.js";import"../../../api/customer-review-summary/index.js";import"../../../api/district/index.js";import"../../../api/html-meta-data/index.js";import"../../../api/merchant/index.js";import"../../../api/product-search/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/customer/address/index.js";import"../../data/customer/index.js";import"../../data/customer-review/index.js";import{makeAutoObservable as e,runInAction as r}from"mobx";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/installment-info/index.js";import"../../data/order/index.js";import"../../data/order/line-item/index.js";import"../../../api/product-option-file/index.js";import"../../data/product/index.js";import"../../data/variant-type/index.js";import"../../data/product/variant/index.js";import"../../data/product/variant/price/index.js";import"../../data/product-attribute/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product-filter/index.js";import"../../data/variant-type/variant-value/index.js";import"../../data/order-transaction/index.js";import"../../data/product-option-set/index.js";import{IkasRaffle as n}from"../../data/raffle/index.js";import"../../data/product-campaing/campaign/index.js";import"../../data/customer-attribute/index.js";import"../../data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../theme/theme.js";import"../../theme/page/index.js";import"../../theme/component/prop/index.js";import"../../theme/page/component/prop-value/link.js";import"../brand-list/index.js";import"../blog-list/index.js";import"../blog-category-list/index.js";import"../category-list/index.js";import"../product-detail/index.js";import"../product-list/index.js";import"../product-attribute-detail/index.js";import"../product-attribute-list/index.js";import"../customer-review-list/index.js";import"../customer-review-summary-list/index.js";import"../validator/index.js";import"../validator/rules/index.js";import"../validator/form/login.js";import"../validator/form/address.js";import"../validator/form/register.js";import"../validator/form/contact-form.js";import"../validator/form/forgot-password.js";import"../validator/form/recover-password.js";import"../validator/form/account-info.js";import"../validator/form/raffle-form.js";import"../validator/form/customer-review.js";import"../../theme/settings/index.js";import"../../theme/custom-data/index.js";import"../../../api/apollo.js";import"../../../api/favorite-product/index.js";import"../../../api/contact-form/index.js";import"../../../api/state/index.js";import"../../../api/product-option-set/index.js";import{IkasRaffleAPI as a}from"../../../api/raffle/index.js";import"../../../api/back-in-stock-reminder/index.js";import"../../../api/product-campaign/index.js";import{populateRaffleProducts as o}from"../../../providers/helpers/raffles.js";var s=function(){function s(a){var o=this;void 0===a&&(a={}),this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getInitial=function(){return t(o,void 0,void 0,(function(){var t,e,n=this;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.getRaffleList(this.page,this.limit)];case 2:return t=i.sent(),this.data=t.raffles,this._count=t.count,this._initialized=!0,this._minPage=this.page,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return r((function(){n._isLoading=!1})),[7];case 5:return[2]}}))}))},this.getPrev=function(){return t(o,void 0,void 0,(function(){var t,e,n,a=this;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.getRaffleList(t,this.limit)];case 2:return e=i.sent(),r((function(){a.data=e.raffles.concat(a.data),a._count=e.count,a._minPage=t})),[3,5];case 3:return n=i.sent(),console.log(n),[3,5];case 4:return r((function(){a._isLoading=!1})),[7];case 5:return[2]}}))}))},this.getNext=function(){return t(o,void 0,void 0,(function(){var t,e,n=this;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.getRaffleList(this.page+1,this.limit)];case 2:return t=i.sent(),r((function(){n.data=n.data.concat(t.raffles),n._count=t.count,n._page=n.page+1})),[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return r((function(){n._isLoading=!1})),[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(o,void 0,void 0,(function(){var t,n,a=this;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.getRaffleList(e,this.limit)];case 2:return t=i.sent(),r((function(){a.data=t.raffles,a._count=t.count,a._page=e,a._minPage=e})),[3,5];case 3:return n=i.sent(),console.log(n),[3,5];case 4:return r((function(){a._isLoading=!1})),[7];case 5:return[2]}}))}))},this.data=a.data?a.data.map((function(t){return new n(t)})):[],this._limit=a.limit||20,this._page=a.page||1,this._count=a.count||0,this._initialized=a.initialized||!1,this._minPage=a.minPage||null,this._start=a.start||null,this._end=a.end||null,this._includeDeleted=a.includeDeleted||null,this._name=a.name||null,this._search=a.search||null,this._id=a.id||null,e(this)}return Object.defineProperty(s.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasPrev",{get:function(){return!!this._minPage&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasNext",{get:function(){return this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"minPage",{get:function(){return this._minPage||1},enumerable:!1,configurable:!0}),s.prototype.getRaffleList=function(e,r){return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,a.listRaffles({start:this._start,end:this._end,includeDeleted:this._includeDeleted||!1,name:this._name,id:this._id,search:this._search||void 0,pagination:{limit:r,page:e}})];case 1:return t=i.sent(),[4,o(t.raffles)];case 2:return i.sent(),[2,t]}}))}))},s.prototype.toJSON=function(){return{data:this.data,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage}},s}();export{s as IkasRaffleList};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { PhoneRule, RequiredRule } from "../rules";
|
|
2
|
-
import { IkasBaseStore } from "../../../../store";
|
|
3
|
-
import { IkasCustomer } from "../../../../models";
|
|
4
|
-
declare type AccountInfoFormPropsValidatorMessage<T> = {
|
|
5
|
-
requiredRule: ((model: T) => string) | string;
|
|
6
|
-
phoneRule?: ((model: T) => string) | string;
|
|
7
|
-
};
|
|
8
|
-
declare type AccountInfoFormProps<T> = {
|
|
9
|
-
message: AccountInfoFormPropsValidatorMessage<T>;
|
|
10
|
-
customer: IkasCustomer;
|
|
11
|
-
store: IkasBaseStore;
|
|
12
|
-
};
|
|
13
|
-
export declare class AccountInfoForm {
|
|
14
|
-
private customer;
|
|
15
|
-
private validator;
|
|
16
|
-
private store;
|
|
17
|
-
private message;
|
|
18
|
-
constructor(props: AccountInfoFormProps<IkasCustomer>);
|
|
19
|
-
validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomer> | PhoneRule<IkasCustomer>)[];
|
|
20
|
-
get hasError(): boolean;
|
|
21
|
-
get email(): string;
|
|
22
|
-
get firstName(): string;
|
|
23
|
-
set firstName(value: string);
|
|
24
|
-
get lastName(): string;
|
|
25
|
-
set lastName(value: string);
|
|
26
|
-
get phone(): string;
|
|
27
|
-
set phone(value: string);
|
|
28
|
-
get isMarketingAccepted(): boolean;
|
|
29
|
-
set isMarketingAccepted(value: boolean);
|
|
30
|
-
get firstNameErrorMessage(): string | undefined;
|
|
31
|
-
get lastNameErrorMessage(): string | undefined;
|
|
32
|
-
get phoneErrorMessage(): string | undefined;
|
|
33
|
-
onFirstNameChange: (value: string) => void;
|
|
34
|
-
onLastNameChange: (value: string) => void;
|
|
35
|
-
onPhoneChange: (value: string) => void;
|
|
36
|
-
validateAll(): Promise<boolean>;
|
|
37
|
-
submit(): Promise<{
|
|
38
|
-
isFormError: boolean;
|
|
39
|
-
isSuccess: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t,__spreadArray as r}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as s,computed as o,action as i}from"mobx";import{Validator as a}from"../index.js";import{PhoneRule as n,RequiredRule as u}from"../rules/index.js";import{IkasCustomerEmailSubscriptionStatus as l}from"../../../data/customer/index.js";var m=function(){function m(e){var t=this;this.validatorRules=function(e){return void 0===e&&(e=!1),r([new u({model:t.customer,fieldKey:"firstName",valuePath:"firstName",message:t.message.requiredRule}),new u({model:t.customer,fieldKey:"lastName",valuePath:"lastName",message:t.message.requiredRule})],e?[new n({model:t.customer,fieldKey:"phone",valuePath:"phone",message:t.message.phoneRule})]:[],!0)},this.onFirstNameChange=function(e){t.customer.firstName=e},this.onLastNameChange=function(e){t.customer.lastName=e},this.onPhoneChange=function(e){t.customer.phone=e||null,e||t.validator.setRules(t.validatorRules())},s(this,{firstNameErrorMessage:o,lastNameErrorMessage:o,phoneErrorMessage:o,isMarketingAccepted:o,hasError:o,firstName:o,lastName:o,phone:o,validateAll:i,submit:i}),this.customer=e.customer,this.store=e.store,this.message=e.message,this.validator=new a(this.customer,this.validatorRules())}return Object.defineProperty(m.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"email",{get:function(){return this.customer.email},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"firstName",{get:function(){return this.customer.firstName},set:function(e){this.customer.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"lastName",{get:function(){return this.customer.lastName},set:function(e){this.customer.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"phone",{get:function(){return this.customer.phone||""},set:function(e){this.customer.phone=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isMarketingAccepted",{get:function(){return this.customer.isSubscribed},set:function(e){this.customer.subscriptionStatus=e?l.SUBSCRIBED:l.NOT_SUBSCRIBED},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"firstNameErrorMessage",{get:function(){var e,t;return null===(t=null===(e=this.validator.results)||void 0===e?void 0:e.firstName)||void 0===t?void 0:t.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"lastNameErrorMessage",{get:function(){var e,t;return null===(t=null===(e=this.validator.results)||void 0===e?void 0:e.lastName)||void 0===t?void 0:t.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"phoneErrorMessage",{get:function(){var e,t;return null===(t=null===(e=this.validator.results)||void 0===e?void 0:e.phone)||void 0===t?void 0:t.errorMessage},enumerable:!1,configurable:!0}),m.prototype.validateAll=function(){return this.validator.validateAll()},m.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},this.phone&&this.validator.setRules(this.validatorRules(!0)),[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,this.store.customerStore.saveCustomer(this.customer)];case 3:return t.sent()&&(e.isSuccess=!0),[2,e];case 4:return t.sent(),[2,e];case 5:return[2]}}))}))},m}();export{m as AccountInfoForm};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { IkasCity, IkasCountry, IkasCustomerAddress, IkasDistrict, IkasState } from "../../../../models/data";
|
|
2
|
-
import { IkasBaseStore } from "../../../../store";
|
|
3
|
-
import { PhoneRule, RequiredRule } from "../rules";
|
|
4
|
-
declare type AddressFormPropsValidatorMessage<T> = {
|
|
5
|
-
requiredRule: ((model: T) => string) | string;
|
|
6
|
-
phoneRule?: ((model: T) => string) | string;
|
|
7
|
-
};
|
|
8
|
-
declare type AddressFormProps<T> = {
|
|
9
|
-
message: AddressFormPropsValidatorMessage<T>;
|
|
10
|
-
address: IkasCustomerAddress;
|
|
11
|
-
store: IkasBaseStore;
|
|
12
|
-
};
|
|
13
|
-
export declare class AddressForm {
|
|
14
|
-
address: IkasCustomerAddress;
|
|
15
|
-
countries: IkasCountry[];
|
|
16
|
-
states: IkasState[];
|
|
17
|
-
cities: IkasCity[];
|
|
18
|
-
districts: IkasDistrict[];
|
|
19
|
-
private _isCountriesPending;
|
|
20
|
-
private _isStatesPending;
|
|
21
|
-
private _isCitiesPending;
|
|
22
|
-
private _isDistrictsPending;
|
|
23
|
-
private store;
|
|
24
|
-
private validator;
|
|
25
|
-
private message;
|
|
26
|
-
constructor(props: AddressFormProps<IkasCustomerAddress>);
|
|
27
|
-
validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomerAddress> | PhoneRule<IkasCustomerAddress>)[];
|
|
28
|
-
onTitleChange: (value: string) => void;
|
|
29
|
-
onFirstNameChange: (value: string) => void;
|
|
30
|
-
onLastNameChange: (value: string) => void;
|
|
31
|
-
onPhoneChange: (value: string) => void;
|
|
32
|
-
onAddressLine1Change: (value: string) => void;
|
|
33
|
-
onAddressLine2Change: (value: string) => void;
|
|
34
|
-
onAddressPostalCodeChange: (value: string) => void;
|
|
35
|
-
onCountryChange: (countryId: string) => void;
|
|
36
|
-
onStateChange: (stateId: string) => void;
|
|
37
|
-
onCityChange: (cityId: string) => void;
|
|
38
|
-
onCityInputChange: (value: string) => void;
|
|
39
|
-
onDistrictChange: (districtId: string) => void;
|
|
40
|
-
onDistrictInputChange: (value: string) => void;
|
|
41
|
-
listCountries: () => Promise<void>;
|
|
42
|
-
listStates: () => Promise<void>;
|
|
43
|
-
listCities: () => Promise<void>;
|
|
44
|
-
listDistricts: () => Promise<void>;
|
|
45
|
-
get isFreeTextCity(): boolean;
|
|
46
|
-
get isFreeTextDistrict(): boolean;
|
|
47
|
-
get isEdit(): boolean;
|
|
48
|
-
private get editingAddressIndex();
|
|
49
|
-
get countryOptions(): {
|
|
50
|
-
label: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}[];
|
|
53
|
-
get stateOptions(): {
|
|
54
|
-
label: string;
|
|
55
|
-
value: string;
|
|
56
|
-
}[];
|
|
57
|
-
get cityOptions(): {
|
|
58
|
-
label: string;
|
|
59
|
-
value: string;
|
|
60
|
-
}[];
|
|
61
|
-
get districtOptions(): {
|
|
62
|
-
label: string;
|
|
63
|
-
value: string;
|
|
64
|
-
}[];
|
|
65
|
-
get hasState(): boolean;
|
|
66
|
-
get isCountriesPending(): boolean;
|
|
67
|
-
get isStatesPending(): boolean;
|
|
68
|
-
get isCitiesPending(): boolean;
|
|
69
|
-
get isDistrictsPending(): boolean;
|
|
70
|
-
get hasValidatorError(): boolean;
|
|
71
|
-
get results(): import("..").ValidationResults;
|
|
72
|
-
validateAll: () => Promise<boolean>;
|
|
73
|
-
submit: () => Promise<{
|
|
74
|
-
isFormError: boolean;
|
|
75
|
-
isSuccess: boolean;
|
|
76
|
-
}>;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as t,__awaiter as e,__generator as i}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as s,computed as r,observable as n,action as o}from"mobx";import d from'../../../../ext/lodash/cloneDeep.js';import"../../../../api/blog/index.js";import"../../../../api/brand/index.js";import"../../../../api/cart/index.js";import"../../../../api/category/index.js";import"../../../../api/checkout/index.js";import{IkasCityAPI as a}from"../../../../api/city/index.js";import{IkasCountryAPI as u}from"../../../../api/country/index.js";import"../../../../api/customer/index.js";import"../../../../api/customer-review/index.js";import"../../../../api/customer-review-summary/index.js";import{IkasDistrictAPI as c}from"../../../../api/district/index.js";import"../../../../api/html-meta-data/index.js";import"../../../../api/merchant/index.js";import"../../../../api/product-search/index.js";import"../../../data/blog/index.js";import"../../../data/brand/index.js";import"../../../data/category/index.js";import"../../../data/checkout/index.js";import"../../../data/customer/address/index.js";import"../../../data/customer/index.js";import"../../../data/customer-review/index.js";import"../../../data/html-meta-data/index.js";import"../../../data/image/index.js";import"../../../data/installment-info/index.js";import"../../../data/order/index.js";import"../../../data/order/line-item/index.js";import"../../../../api/product-option-file/index.js";import"../../../data/product/index.js";import"../../../data/variant-type/index.js";import"../../../data/product/variant/index.js";import"../../../data/product/variant/price/index.js";import"../../../data/product-attribute/index.js";import"../../../data/product/attribute-value/index.js";import"../../../data/product-filter/index.js";import"../../../data/variant-type/variant-value/index.js";import"../../../data/order-transaction/index.js";import"../../../data/product-option-set/index.js";import"../../../data/raffle/index.js";import"../../../data/product-campaing/campaign/index.js";import"../../../data/customer-attribute/index.js";import"../../../data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../theme/theme.js";import"../../../theme/page/index.js";import"../../../theme/component/prop/index.js";import"../../../theme/page/component/prop-value/link.js";import"../../brand-list/index.js";import"../../blog-list/index.js";import"../../blog-category-list/index.js";import"../../category-list/index.js";import"../../product-detail/index.js";import"../../product-list/index.js";import"../../product-attribute-detail/index.js";import"../../product-attribute-list/index.js";import"../../customer-review-list/index.js";import"../../customer-review-summary-list/index.js";import{Validator as l}from"../index.js";import{PhoneRule as m,RequiredRule as p}from"../rules/index.js";import"./login.js";import"./register.js";import"./contact-form.js";import"./forgot-password.js";import"./recover-password.js";import"./account-info.js";import"./raffle-form.js";import"./customer-review.js";import"../../raffle-list/index.js";import"../../../theme/settings/index.js";import"../../../theme/custom-data/index.js";import"../../../../api/apollo.js";import"../../../../api/favorite-product/index.js";import"../../../../api/contact-form/index.js";import{IkasStateAPI as h}from"../../../../api/state/index.js";import"../../../../api/product-option-set/index.js";import"../../../../api/raffle/index.js";import"../../../../api/back-in-stock-reminder/index.js";import"../../../../api/product-campaign/index.js";import{IkasStorefrontConfig as f}from"../../../../storefront/index.js";import{FREE_TEXT_CITY_COUNTRY_LIST as g}from"../../../../utils/constants.js";var v=function(t){return t.sort((function(t,e){return t.label.localeCompare(e.label)}))},j=function(t){return{label:t.name,value:t.id+""}},y=function(){function y(g){var v=this;this.countries=[],this.states=[],this.cities=[],this.districts=[],this._isCountriesPending=!0,this._isStatesPending=!1,this._isCitiesPending=!1,this._isDistrictsPending=!1,this.validatorRules=function(e){return void 0===e&&(e=!1),t([new p({model:v.address,fieldKey:"firstName",valuePath:"firstName",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"lastName",valuePath:"lastName",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"addressLine1",valuePath:"addressLine1",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"country",valuePath:"country",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"state",valuePath:"state",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"city",valuePath:"city",message:v.message.requiredRule}),new p({model:v.address,fieldKey:"title",valuePath:"title",message:v.message.requiredRule})],e?[new m({model:v.address,fieldKey:"phone",valuePath:"phone",message:v.message.phoneRule})]:[],!0)},this.onTitleChange=function(t){v.address.title=t},this.onFirstNameChange=function(t){v.address.firstName=t},this.onLastNameChange=function(t){v.address.lastName=t},this.onPhoneChange=function(t){v.address.phone=t,t||v.validator.setRules(v.validatorRules())},this.onAddressLine1Change=function(t){v.address.addressLine1=t},this.onAddressLine2Change=function(t){v.address.addressLine2=t},this.onAddressPostalCodeChange=function(t){v.address.postalCode=t},this.onCountryChange=function(t){var e;if((null===(e=v.address.country)||void 0===e?void 0:e.id)!==t){var i=v.countries.find((function(e){return e.id===t}));v.address.country={id:null==i?void 0:i.id,name:null==i?void 0:i.name,code:null==i?void 0:i.iso3},v.address.state=void 0,v.address.city=void 0,v.address.district=void 0,v.states=[],v.cities=[],v.districts=[],v.listStates()}},this.onStateChange=function(t){var e;if((null===(e=v.address.state)||void 0===e?void 0:e.id)!==t){var i=v.states.find((function(e){return e.id===t}));v.address.state={id:i.id,name:null==i?void 0:i.name,code:null==i?void 0:i.stateCode},v.address.city=void 0,v.address.district=void 0,v.cities=[],v.districts=[],v.listCities()}},this.onCityChange=function(t){var e;if((null===(e=v.address.city)||void 0===e?void 0:e.id)!==t){var i=v.cities.find((function(e){return e.id===t}));v.address.city={id:i.id,name:i.name},v.address.district=void 0,v.districts=[],v.listDistricts()}},this.onCityInputChange=function(t){v.districts=[],v.address.city={id:void 0,name:t}},this.onDistrictChange=function(t){var e;if((null===(e=v.address.district)||void 0===e?void 0:e.id)!==t){var i=v.districts.find((function(e){return e.id===t}));v.address.district={id:i.id,name:i.name}}},this.onDistrictInputChange=function(t){v.address.district={id:void 0,name:t}},this.listCountries=function(){return e(v,void 0,void 0,(function(){var t,e,s;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),this._isCountriesPending=!0,[4,u.listCountries()];case 1:return t=i.sent(),e=f.routings.find((function(t){return t.id===f.storefrontRoutingId})),(null===(s=null==e?void 0:e.countryCodes)||void 0===s?void 0:s.length)&&(t=t.filter((function(t){var i;return t.iso2&&(null===(i=e.countryCodes)||void 0===i?void 0:i.includes(t.iso2))}))),this.countries=t,1!==this.countries.length||this.address.country||this.onCountryChange(this.countries[0].id),this.countries=t,[3,4];case 2:return i.sent(),[3,4];case 3:return this._isCountriesPending=!1,[7];case 4:return[2]}}))}))},this.listStates=function(){return e(v,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.country)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isStatesPending=!0,[4,h.listStates(this.address.country.id)];case 2:return t=i.sent(),this.states=t,this.hasState||this.onStateChange(this.states[0].id),[3,5];case 3:return i.sent(),[3,5];case 4:return this._isStatesPending=!1,[7];case 5:return[2]}}))}))},this.listCities=function(){return e(v,void 0,void 0,(function(){var t,e,s;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.state)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isCitiesPending=!0,[4,a.listCities(this.address.state.id,null===(s=this.address.country)||void 0===s?void 0:s.id)];case 2:return t=i.sent(),this.cities=t,[3,5];case 3:return i.sent(),[3,5];case 4:return this._isCitiesPending=!1,[7];case 5:return[2]}}))}))},this.listDistricts=function(){return e(v,void 0,void 0,(function(){var t,e,s;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.city)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isDistrictsPending=!0,[4,c.listDistricts(this.address.city.id,null===(s=this.address.state)||void 0===s?void 0:s.id)];case 2:return t=i.sent(),this.districts=t,[3,5];case 3:return i.sent(),[3,5];case 4:return this._isDistrictsPending=!1,[7];case 5:return[2]}}))}))},this.validateAll=function(){return v.validator.validateAll()},this.submit=function(){return e(v,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:return t={isFormError:!1,isSuccess:!1},this.address.phone&&this.validator.setRules(this.validatorRules(!0)),[4,this.validateAll()];case 1:if(i.sent())return t.isFormError=!0,[2,t];if(!this.store.customerStore.customer||!this.address)return[2,t];e=d(this.store.customerStore.customer),this.isEdit?e.addresses[this.editingAddressIndex]=this.address:e.addresses.push(this.address),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.store.customerStore.saveCustomer(e)];case 3:return i.sent()&&(t.isSuccess=!0),[2,t];case 4:return i.sent(),[2,t];case 5:return[2]}}))}))},s(this,{hasValidatorError:r,isEdit:r,results:r,editingAddressIndex:r,isFreeTextCity:r,isFreeTextDistrict:r,countries:n,states:n,cities:n,districts:n,_isCountriesPending:n,_isStatesPending:n,_isCitiesPending:n,_isDistrictsPending:n,isCountriesPending:r,isStatesPending:r,isCitiesPending:r,isDistrictsPending:r,onCountryChange:o,validateAll:o,submit:o}),this.address=g.address,this.message=g.message,this.store=g.store,this.validator=new l(this.address,this.validatorRules()),this.listCountries(),this.address.state&&this.listStates(),this.address.country&&this.listCities(),this.address.city&&this.listDistricts()}return Object.defineProperty(y.prototype,"isFreeTextCity",{get:function(){var t=this;return g.some((function(e){var i,s;return(null===(s=null===(i=t.address.country)||void 0===i?void 0:i.iso2)||void 0===s?void 0:s.toLowerCase())===e.toLowerCase()}))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isFreeTextDistrict",{get:function(){return!this.districtOptions.length},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isEdit",{get:function(){return-1!==this.editingAddressIndex},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"editingAddressIndex",{get:function(){var t,e,i=this;return null!==(e=null===(t=this.store.customerStore.customer)||void 0===t?void 0:t.addresses.findIndex((function(t){return t.id===i.address.id})))&&void 0!==e?e:-1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"countryOptions",{get:function(){var t=this.countries.map(j);return v(t)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"stateOptions",{get:function(){var t=this.states.map(j);return v(t)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cityOptions",{get:function(){var t=this.cities.map(j);return v(t)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"districtOptions",{get:function(){var t=this.districts.map(j);return v(t)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasState",{get:function(){return this.states.length>1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isCountriesPending",{get:function(){return this._isCountriesPending},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isStatesPending",{get:function(){return this.isCountriesPending||this._isStatesPending},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isCitiesPending",{get:function(){return this.isStatesPending||this._isCitiesPending},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isDistrictsPending",{get:function(){return this.isCitiesPending||this._isDistrictsPending},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasValidatorError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"results",{get:function(){return this.validator.results},enumerable:!1,configurable:!0}),y}();export{y as AddressForm};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IkasBaseStore } from "../../../../store";
|
|
2
|
-
declare type ContactFormProps<T> = {
|
|
3
|
-
message: {
|
|
4
|
-
requiredRule: ((model: T) => string) | string;
|
|
5
|
-
emailRule: ((model: T) => string) | string;
|
|
6
|
-
minRule: ((model: T) => string) | string;
|
|
7
|
-
};
|
|
8
|
-
store: IkasBaseStore;
|
|
9
|
-
};
|
|
10
|
-
declare type ContactFormModel = {
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
email: string;
|
|
14
|
-
message: string;
|
|
15
|
-
};
|
|
16
|
-
export declare class ContactForm {
|
|
17
|
-
private model;
|
|
18
|
-
private validator;
|
|
19
|
-
private store;
|
|
20
|
-
constructor(props: ContactFormProps<ContactFormModel>);
|
|
21
|
-
get firstName(): string;
|
|
22
|
-
set firstName(value: string);
|
|
23
|
-
get lastName(): string;
|
|
24
|
-
set lastName(value: string);
|
|
25
|
-
get email(): string;
|
|
26
|
-
set email(value: string);
|
|
27
|
-
get message(): string;
|
|
28
|
-
set message(value: string);
|
|
29
|
-
get hasError(): boolean;
|
|
30
|
-
get firstNameErrorMessage(): string | undefined;
|
|
31
|
-
get lastNameErrorMessage(): string | undefined;
|
|
32
|
-
get emailErrorMessage(): string | undefined;
|
|
33
|
-
get messageErrorMessage(): string | undefined;
|
|
34
|
-
get redirect(): string | null | undefined;
|
|
35
|
-
onFirstNameChange: (value: string) => void;
|
|
36
|
-
onLastNameChange: (value: string) => void;
|
|
37
|
-
onEmailChange: (value: string) => void;
|
|
38
|
-
onMessageChange: (value: string) => void;
|
|
39
|
-
validateAll(): Promise<boolean>;
|
|
40
|
-
saveContactForm(): Promise<{
|
|
41
|
-
isFormError: boolean;
|
|
42
|
-
isSuccess: boolean;
|
|
43
|
-
}>;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as s,observable as a,action as i}from"mobx";import{Validator as o}from"../index.js";import{RequiredRule as n,EmailRule as l}from"../rules/index.js";var m=function(){function m(e){var r=this;this.model={firstName:"",lastName:"",email:"",message:""},this.onFirstNameChange=function(e){r.firstName=e},this.onLastNameChange=function(e){r.lastName=e},this.onEmailChange=function(e){r.email=e},this.onMessageChange=function(e){r.message=e},t(this,{emailErrorMessage:s,messageErrorMessage:s,firstNameErrorMessage:s,lastNameErrorMessage:s,hasError:s,redirect:s,model:a,validateAll:i,saveContactForm:i}),this.store=e.store,this.validator=new o(this.model,[new n({fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new n({fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule}),new n({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new n({fieldKey:"message",valuePath:"message",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(m.prototype,"firstName",{get:function(){return this.model.firstName},set:function(e){this.model.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"lastName",{get:function(){return this.model.lastName},set:function(e){this.model.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"message",{get:function(){return this.model.message},set:function(e){this.model.message=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"firstNameErrorMessage",{get:function(){return this.validator.results.firstName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"lastNameErrorMessage",{get:function(){return this.validator.results.lastName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"messageErrorMessage",{get:function(){return this.validator.results.message.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),m.prototype.validateAll=function(){return this.validator.validateAll()},m.prototype.saveContactForm=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.store.customerStore.saveContactForm({firstName:this.model.firstName,lastName:this.model.lastName,email:this.model.email,message:this.model.message,referer:window.location.href})];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},m}();export{m as ContactForm};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IkasBaseStore } from "../../../../store";
|
|
2
|
-
declare type CustomerReviewFormProps<T> = {
|
|
3
|
-
productId: string;
|
|
4
|
-
message: {
|
|
5
|
-
starRule: ((model: T) => string) | string;
|
|
6
|
-
};
|
|
7
|
-
store: IkasBaseStore;
|
|
8
|
-
};
|
|
9
|
-
declare type CustomerReviewFormModel = {
|
|
10
|
-
title: string;
|
|
11
|
-
comment: string;
|
|
12
|
-
star: number;
|
|
13
|
-
};
|
|
14
|
-
export declare class CustomerReviewForm {
|
|
15
|
-
private productId;
|
|
16
|
-
private model;
|
|
17
|
-
private validator;
|
|
18
|
-
private store;
|
|
19
|
-
constructor(props: CustomerReviewFormProps<CustomerReviewFormModel>);
|
|
20
|
-
get title(): string;
|
|
21
|
-
set title(value: string);
|
|
22
|
-
get comment(): string;
|
|
23
|
-
set comment(value: string);
|
|
24
|
-
get star(): number;
|
|
25
|
-
set star(value: number);
|
|
26
|
-
get hasError(): boolean;
|
|
27
|
-
get starErrorMessage(): string | undefined;
|
|
28
|
-
onTitleChange: (value: string) => void;
|
|
29
|
-
onCommentChange: (value: string) => void;
|
|
30
|
-
onStarChange: (value: number) => void;
|
|
31
|
-
validateAll(): Promise<boolean>;
|
|
32
|
-
submit(): Promise<{
|
|
33
|
-
isFormError: boolean;
|
|
34
|
-
isSuccess: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as r,computed as s,observable as o,action as i}from"mobx";import{Validator as n}from"../index.js";import{RequiredRule as a,MinRule as l,MaxRule as u}from"../rules/index.js";var m=function(){function m(e){var t=this;this.model={title:"",comment:"",star:0},this.onTitleChange=function(e){t.title=e},this.onCommentChange=function(e){t.comment=e},this.onStarChange=function(e){t.star=e},r(this,{starErrorMessage:s,hasError:s,model:o,validateAll:i,submit:i}),this.productId=e.productId,this.store=e.store,this.validator=new n(this.model,[new a({fieldKey:"star",valuePath:"star",message:e.message.starRule}),new l({fieldKey:"star",valuePath:"star",minValue:1,message:e.message.starRule}),new u({fieldKey:"star",valuePath:"star",maxValue:5,message:e.message.starRule})])}return Object.defineProperty(m.prototype,"title",{get:function(){return this.model.title},set:function(e){this.model.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"comment",{get:function(){return this.model.comment},set:function(e){this.model.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"star",{get:function(){return this.model.star},set:function(e){this.model.star=e},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"starErrorMessage",{get:function(){return this.validator.results.star.errorMessage},enumerable:!1,configurable:!0}),m.prototype.validateAll=function(){return this.validator.validateAll()},m.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,this.store.customerStore.sendReview({title:this.model.title,comment:this.model.comment,star:this.model.star,productId:this.productId})];case 3:return t.sent()&&(e.isSuccess=!0),[2,e];case 4:return t.sent(),[2,e];case 5:return[2]}}))}))},m}();export{m as CustomerReviewForm};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IkasBaseStore } from "../../../../store";
|
|
2
|
-
declare type ForgotPasswordProps<T> = {
|
|
3
|
-
message: {
|
|
4
|
-
requiredRule: ((model: T) => string) | string;
|
|
5
|
-
emailRule: ((model: T) => string) | string;
|
|
6
|
-
};
|
|
7
|
-
store: IkasBaseStore;
|
|
8
|
-
};
|
|
9
|
-
declare type ForgotPasswordFormModel = {
|
|
10
|
-
email: string;
|
|
11
|
-
};
|
|
12
|
-
export declare class ForgotPasswordForm {
|
|
13
|
-
private model;
|
|
14
|
-
private validator;
|
|
15
|
-
private store;
|
|
16
|
-
constructor(props: ForgotPasswordProps<ForgotPasswordFormModel>);
|
|
17
|
-
get email(): string;
|
|
18
|
-
set email(value: string);
|
|
19
|
-
onEmailChange: (value: string) => void;
|
|
20
|
-
get hasValidatorError(): boolean;
|
|
21
|
-
get emailErrorMessage(): string | undefined;
|
|
22
|
-
get redirect(): string | null | undefined;
|
|
23
|
-
validateAll(): Promise<boolean>;
|
|
24
|
-
submit(): Promise<{
|
|
25
|
-
isFormError: boolean;
|
|
26
|
-
isSuccess: boolean;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as i,observable as o,action as a}from"mobx";import{Validator as s}from"../index.js";import{RequiredRule as n,EmailRule as l}from"../rules/index.js";var u=function(){function u(e){var r=this;this.model={email:""},this.onEmailChange=function(e){r.email=e},t(this,{emailErrorMessage:i,hasValidatorError:i,redirect:i,email:i,model:o,validateAll:a,submit:a}),this.store=e.store,this.validator=new s(this.model,[new n({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(u.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasValidatorError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),u.prototype.validateAll=function(){return this.validator.validateAll()},u.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.store.customerStore.forgotPassword(this.model.email)];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},u}();export{u as ForgotPasswordForm};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IkasBaseStore } from "../../../../store";
|
|
2
|
-
declare type LoginFormProps<T> = {
|
|
3
|
-
message: {
|
|
4
|
-
requiredRule: ((model: T) => string) | string;
|
|
5
|
-
emailRule: ((model: T) => string) | string;
|
|
6
|
-
minRule: ((model: T) => string) | string;
|
|
7
|
-
};
|
|
8
|
-
store: IkasBaseStore;
|
|
9
|
-
};
|
|
10
|
-
declare type LoginFormModel = {
|
|
11
|
-
email: string;
|
|
12
|
-
password: string;
|
|
13
|
-
};
|
|
14
|
-
export declare class LoginForm {
|
|
15
|
-
private model;
|
|
16
|
-
private validator;
|
|
17
|
-
private store;
|
|
18
|
-
constructor(props: LoginFormProps<LoginFormModel>);
|
|
19
|
-
get hasError(): boolean;
|
|
20
|
-
get email(): string;
|
|
21
|
-
set email(value: string);
|
|
22
|
-
get password(): string;
|
|
23
|
-
set password(value: string);
|
|
24
|
-
get emailErrorMessage(): string | undefined;
|
|
25
|
-
get passwordErrorMessage(): string | undefined;
|
|
26
|
-
get redirect(): string | null | undefined;
|
|
27
|
-
onEmailChange: (value: string) => void;
|
|
28
|
-
onPasswordChange: (value: string) => void;
|
|
29
|
-
validateAll(): Promise<boolean>;
|
|
30
|
-
logIn(): Promise<{
|
|
31
|
-
isFormError: boolean;
|
|
32
|
-
isSuccess: boolean;
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as r}from'../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as s,observable as o,action as i}from"mobx";import{Validator as a}from"../index.js";import{RequiredRule as n,EmailRule as l,MinRule as u}from"../rules/index.js";var d=function(){function d(e){var r=this;this.model={email:"",password:""},this.onEmailChange=function(e){r.email=e},this.onPasswordChange=function(e){r.password=e},t(this,{emailErrorMessage:s,passwordErrorMessage:s,hasError:s,redirect:s,email:s,password:s,model:o,validateAll:i,logIn:i}),this.store=e.store,this.validator=new a(this.model,[new n({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new n({fieldKey:"password",valuePath:"password",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.emailRule}),new u({fieldKey:"password",valuePath:"password",minValue:6,message:e.message.minRule})])}return Object.defineProperty(d.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"password",{get:function(){return this.model.password},set:function(e){this.model.password=e},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"passwordErrorMessage",{get:function(){return this.validator.results.password.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),d.prototype.validateAll=function(){return this.validator.validateAll()},d.prototype.logIn=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.store.customerStore.login(this.model.email,this.model.password)];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},d}();export{d as LoginForm};
|