@ikas/bp-storefront 1.4.0-beta.21 → 1.4.0-beta.211

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.
Files changed (123) hide show
  1. package/dist/analytics/analytics-functions/addToCart.js +1 -1
  2. package/dist/analytics/analytics-functions/addToWishlist.js +1 -1
  3. package/dist/analytics/analytics-functions/completeRegistration.js +1 -1
  4. package/dist/analytics/analytics-functions/contactForm.js +1 -1
  5. package/dist/analytics/analytics-functions/createEmailSubscription.js +1 -1
  6. package/dist/analytics/analytics-functions/customerLogin.js +1 -1
  7. package/dist/analytics/analytics-functions/customerLogout.js +1 -1
  8. package/dist/analytics/analytics-functions/customerVisit.js +1 -1
  9. package/dist/analytics/analytics-functions/pageView.js +1 -1
  10. package/dist/analytics/analytics-functions/productView.js +1 -1
  11. package/dist/analytics/analytics-functions/removeFromCart.js +1 -1
  12. package/dist/analytics/analytics-functions/search.js +1 -1
  13. package/dist/analytics/analytics-functions/viewBrand.js +1 -1
  14. package/dist/analytics/analytics-functions/viewCart.js +1 -1
  15. package/dist/analytics/analytics-functions/viewCategory.js +1 -1
  16. package/dist/analytics/analytics-functions/viewListing.js +1 -1
  17. package/dist/analytics/analytics-functions/viewSearchResults.js +1 -1
  18. package/dist/analytics/analytics-functions/viewStorefrontPopup.js +1 -1
  19. package/dist/analytics/events.d.ts +8 -0
  20. package/dist/analytics/events.js +1 -1
  21. package/dist/analytics/ikas/analytics.js +1 -1
  22. package/dist/analytics/openai/addToCart.d.ts +2 -0
  23. package/dist/analytics/openai/addToCart.js +1 -0
  24. package/dist/analytics/openai/completeRegistration.d.ts +1 -0
  25. package/dist/analytics/openai/completeRegistration.js +1 -0
  26. package/dist/analytics/openai/contactForm.d.ts +1 -0
  27. package/dist/analytics/openai/contactForm.js +1 -0
  28. package/dist/analytics/openai/initAdvancedMatching.d.ts +12 -0
  29. package/dist/analytics/openai/initAdvancedMatching.js +1 -0
  30. package/dist/analytics/openai/pageView.d.ts +1 -0
  31. package/dist/analytics/openai/pageView.js +1 -0
  32. package/dist/analytics/openai/productView.d.ts +2 -0
  33. package/dist/analytics/openai/productView.js +1 -0
  34. package/dist/analytics/openai/utils.d.ts +26 -0
  35. package/dist/analytics/openai/utils.js +1 -0
  36. package/dist/analytics/utils.d.ts +1 -0
  37. package/dist/analytics/utils.js +1 -1
  38. package/dist/functions/api/cart/index.d.ts +2 -0
  39. package/dist/functions/api/cart/index.js +1 -1
  40. package/dist/functions/api/customer/index.d.ts +5 -0
  41. package/dist/functions/api/customer/index.js +1 -1
  42. package/dist/functions/api/loyalty/index.d.ts +2 -1
  43. package/dist/functions/api/loyalty/index.js +1 -1
  44. package/dist/functions/api/product/index.js +1 -1
  45. package/dist/functions/models/attribute-detail/index.d.ts +3 -0
  46. package/dist/functions/models/attribute-list/index.d.ts +3 -0
  47. package/dist/functions/models/image/index.d.ts +71 -21
  48. package/dist/functions/models/image/index.js +1 -1
  49. package/dist/functions/models/index.d.ts +1 -0
  50. package/dist/functions/models/order/index.d.ts +21 -0
  51. package/dist/functions/models/order/index.js +1 -1
  52. package/dist/functions/models/product/attribute-value/index.d.ts +5 -0
  53. package/dist/functions/models/product/variant/index.d.ts +96 -6
  54. package/dist/functions/models/product/variant/index.js +1 -1
  55. package/dist/functions/models/product-list/index.js +1 -1
  56. package/dist/functions/models/validator/address/index.d.ts +70 -2
  57. package/dist/functions/models/validator/deactivate-customer/index.d.ts +54 -0
  58. package/dist/functions/models/validator/deactivate-customer/index.js +1 -0
  59. package/dist/functions/stores/base/index.d.ts +67 -0
  60. package/dist/functions/stores/base/index.js +1 -1
  61. package/dist/functions/stores/cart/index.d.ts +46 -2
  62. package/dist/functions/stores/cart/index.js +1 -1
  63. package/dist/functions/stores/customer/index.d.ts +278 -27
  64. package/dist/functions/stores/customer/index.js +1 -1
  65. package/dist/index.d.ts +5 -1
  66. package/dist/index.js +1 -1
  67. package/dist/packages/storefront-api/src/__api/mutations/removeGiftCardFromCart.js +1 -0
  68. package/dist/packages/storefront-api/src/__api/mutations/unlinkExternalAccount.js +1 -0
  69. package/dist/packages/storefront-api/src/__api/queries/getExternalAccountLink.js +1 -0
  70. package/dist/packages/storefront-api/src/__api/queries/getLoyaltyProgram.js +1 -0
  71. package/dist/packages/storefront-api/src/__api/queries/getMilesSmilesDetails.js +1 -0
  72. package/dist/packages/storefront-api-client/src/utils/api.js +1 -1
  73. package/dist/packages/storefront-config/src/index.js +1 -1
  74. package/dist/packages/storefront-config/src/theme-globals.js +1 -0
  75. package/dist/router/index.d.ts +28 -0
  76. package/dist/router/index.js +1 -1
  77. package/dist/storefront-api/src/__api/mutations/removeGiftCardFromCart.d.ts +7 -0
  78. package/dist/storefront-api/src/__api/mutations/unlinkExternalAccount.d.ts +6 -0
  79. package/dist/storefront-api/src/__api/queries/getExternalAccountLink.d.ts +6 -0
  80. package/dist/storefront-api/src/__api/queries/getLoyaltyProgram.d.ts +3 -0
  81. package/dist/storefront-api/src/__api/queries/getMilesSmilesDetails.d.ts +3 -0
  82. package/dist/storefront-api/src/__api/types/index.d.ts +68 -6
  83. package/dist/storefront-api-client/src/utils/api.d.ts +7 -0
  84. package/dist/storefront-config/src/index.d.ts +6 -0
  85. package/dist/storefront-config/src/theme-globals.d.ts +349 -0
  86. package/dist/storefront-models/src/index.d.ts +3 -0
  87. package/dist/storefront-models/src/models/blueprint/prop-value/attribute-list.d.ts +2 -0
  88. package/dist/storefront-models/src/models/blueprint/prop-value/attribute.d.ts +2 -0
  89. package/dist/storefront-models/src/models/blueprint/prop-value/color.d.ts +2 -0
  90. package/dist/storefront-models/src/models/blueprint/prop-value/index.d.ts +1 -0
  91. package/dist/storefront-models/src/models/blueprint/prop-value/variable-binding.d.ts +16 -0
  92. package/dist/storefront-models/src/models/image/index.d.ts +7 -0
  93. package/dist/storefront-models/src/models/loyalty-program/customer-info/index.d.ts +2 -0
  94. package/dist/storefront-models/src/models/loyalty-program/earning-method/index.d.ts +1 -0
  95. package/dist/storefront-models/src/models/loyalty-program/index.d.ts +1 -0
  96. package/dist/storefront-models/src/models/loyalty-program/point-history/index.d.ts +1 -0
  97. package/dist/storefront-models/src/models/order/gift-card-line/index.d.ts +15 -0
  98. package/dist/storefront-models/src/models/order/index.d.ts +2 -0
  99. package/dist/storefront-models/src/models/order/line-item/index.d.ts +1 -1
  100. package/dist/storefront-models/src/models/order/package/index.d.ts +1 -1
  101. package/dist/storefront-models/src/models/payment-gateway/index.d.ts +3 -1
  102. package/dist/storefront-models/src/models/product/attribute/index.d.ts +6 -1
  103. package/dist/storefront-models/src/models/product/campaign/data/index.d.ts +2 -0
  104. package/dist/storefront-models/src/models/product/campaign/filter/index.d.ts +1 -1
  105. package/dist/storefront-models/src/models/product/campaign/product-tiered-discount/index.d.ts +13 -0
  106. package/dist/storefront-models/src/models/product/image/index.d.ts +5 -0
  107. package/dist/storefront-models/src/models/product/variant/index.d.ts +17 -0
  108. package/dist/storefront-models/src/models/storefront/index.d.ts +1 -0
  109. package/dist/storefront-models/src/models/validator/deactivate-customer/index.d.ts +4 -0
  110. package/dist/stores/customer/index.d.ts +2 -1
  111. package/dist/stores/customer/index.js +1 -1
  112. package/dist/theme/settings/index.d.ts +51 -0
  113. package/dist/theme/settings/index.js +1 -0
  114. package/dist/utils/component-renderer.d.ts +1 -0
  115. package/dist/utils/component-renderer.js +1 -1
  116. package/dist/utils/currency.d.ts +36 -3
  117. package/dist/utils/helper.d.ts +1 -0
  118. package/dist/utils/helper.js +1 -1
  119. package/dist/utils/pay-with-ikas.d.ts +553 -0
  120. package/dist/utils/pay-with-ikas.js +1 -0
  121. package/dist/utils/svg.d.ts +15 -0
  122. package/dist/utils/svg.js +1 -0
  123. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{Analytics}from"./analytics/analytics.js";export{initIkasEvents}from"./analytics/events.js";export{EMPTY_STRING,NULL,UNDEFINED}from"./externals/index.js";export{apiListProductBrand}from"./functions/api/brand/index.js";export{apiListCategory}from"./functions/api/category/index.js";export{apiGetLoyaltyCustomerInfo,apiGetStorefrontWidgetSettings,apiListEarningMethods,apiListLoyaltyProgramPointHistory,apiListLoyaltyProgramTiers,apiListSpendingMethodsByCartId,apiRemoveLoyaltyPointsFromCart,apiUseLoyaltyPoints}from"./functions/api/loyalty/index.js";export{apiListStorefrontPopup}from"./functions/api/popup/index.js";export{apiSearchProducts}from"./functions/api/product/index.js";export{getAttributeDetailValues}from"./functions/models/attribute-detail/index.js";export{getAttributeListValues}from"./functions/models/attribute-list/index.js";export{createIkasBaseModel}from"./functions/models/base/index.js";export{getIkasBlogFormattedDate,getIkasBlogHref}from"./functions/models/blog/index.js";export{createIkasBlogCategory,getIkasBlogCategoryHref}from"./functions/models/blog/category/index.js";export{initIkasBlogCategory}from"./functions/models/blog/category/init.js";export{initIkasBlog}from"./functions/models/blog/init.js";export{getBlogCategoryListInitialData,getBlogCategoryListNextPage,getBlogCategoryListPage,getBlogCategoryListPageCount,getBlogCategoryListPrevPage,hasBlogCategoryListNextPage,hasBlogCategoryListPrevPage,isBlogCategoryListStatic}from"./functions/models/blog-category-list/index.js";export{initBlogCategoryList}from"./functions/models/blog-category-list/init.js";export{getBlogListInitialData,getBlogListNextPage,getBlogListPage,getBlogListPageCount,getBlogListPrevPage,hasBlogListNextPage,hasBlogListPrevPage,isBlogListStatic}from"./functions/models/blog-list/index.js";export{initBlogList}from"./functions/models/blog-list/init.js";export{getIkasBrandHref}from"./functions/models/brand/index.js";export{initIkasBrand}from"./functions/models/brand/init.js";export{getBrandListInitialData,getBrandListNextPage,getBrandListPage,getBrandListPageCount,getBrandListPrevPage,hasBrandListNextPage,hasBrandListPrevPage,isBrandListStatic}from"./functions/models/brand-list/index.js";export{initBrandList}from"./functions/models/brand-list/init.js";export{acceptProductOffer,isAcceptedProductOffer,rejectProductOffer}from"./functions/models/campaign-offer/index.js";export{getCategoryPath,getIkasCategoryHref}from"./functions/models/category/index.js";export{initIkasCategory}from"./functions/models/category/init.js";export{getCategoryListInitialData,getCategoryListNextPage,getCategoryListPage,getCategoryListPageCount,getCategoryListPrevPage,hasCategoryListNextPage,hasCategoryListPrevPage,isCategoryListStatic}from"./functions/models/category-list/index.js";export{initCategoryList}from"./functions/models/category-list/init.js";export{getIkasCategoryPathItemHref,getIkasCategoryPathItemSlug}from"./functions/models/category/path-item/index.js";export{initIkasCategoryPathItem}from"./functions/models/category/path-item/init.js";export{getCheckoutTotalFinalPrice,isCheckoutComplete}from"./functions/models/checkout/index.js";export{initIkasCountry}from"./functions/models/country/init.js";export{getCustomerBasicInfo,isCustomerSubscribed}from"./functions/models/customer/index.js";export{clearIkasCustomerAddressForm,getCustomerAddressText,getCustomerAddressValidationResult,getIkasCustomerAddressForm,isValidCustomerAddress}from"./functions/models/customer/address/index.js";export{getCustomerAttributeAccountPagePermission,getCustomerAttributeRegisterPageRequirement}from"./functions/models/customer/attribute/index.js";export{initIkasCustomerAttribute}from"./functions/models/customer/attribute/init.js";export{getIkasCustomerReviewFormattedDate}from"./functions/models/customer/review/index.js";export{initIkasCustomerReview}from"./functions/models/customer/review/init.js";export{getCustomerReviewListInitialData,getCustomerReviewListNextPage,getCustomerReviewListPage,getCustomerReviewListPageCount,getCustomerReviewListPrev,getProductCustomerReviews,hasCustomerReviewListNextPage,hasCustomerReviewListPrevPage}from"./functions/models/customer-review-list/index.js";export{initCustomerReviewList}from"./functions/models/customer-review-list/init.js";export{getCustomerReviewSummaryListInitialData,getCustomerReviewSummaryListNextPage,getCustomerReviewSummaryListPage,getCustomerReviewSummaryListPrev,hasCustomerReviewSummaryListNextPage,hasCustomerReviewSummaryListPrevPage}from"./functions/models/customer-review-summary-list/index.js";export{initCustomerReviewSummaryList}from"./functions/models/customer-review-summary-list/init.js";export{getIkasFilterCategoryHref,getIkasFilterCategorySlug}from"./functions/models/filter-category/index.js";export{initIkasHTMLMetaData,setHTMLMetaDataTranslations}from"./functions/models/html-meta-data/init.js";export{initThemeDatePicker,themeDatePickerGetDate,themeDatePickerGetDaysOfMonth,themeDatePickerGetDaysOfWeekShort,themeDatePickerGetFullYear,themeDatePickerGetHours,themeDatePickerGetMinutes,themeDatePickerGetMonth,themeDatePickerGetMonthList,themeDatePickerGetMonthName,themeDatePickerGetViewFullYear,themeDatePickerGetViewMonth,themeDatePickerGetWeekFirstDay,themeDatePickerOnChange,themeDatePickerOnDayChange,themeDatePickerOnHoursChange,themeDatePickerOnMinutesChange,themeDatePickerOnViewFullYearChange,themeDatePickerOnViewMonthChange,themeDatePickerSetViewNextMonth,themeDatePickerSetViewPrevMonth}from"./functions/models/ikas-theme/date-picker.js";export{createMediaSrcset,getDefaultSrc,getSrc,getThumbnailSrc}from"./functions/models/image/index.js";export{initIkasMerchantSettings}from"./functions/models/merchant-settings/init.js";export{getIkasOrderCouponAdjustment,getIkasOrderCustomerFullName,getIkasOrderDisplayedAdjustments,getIkasOrderDisplayedPackages,getIkasOrderDistinctItemCount,getIkasOrderFormattedDate,getIkasOrderFormattedOrderedAt,getIkasOrderFormattedShippingTotal,getIkasOrderFormattedTotalFinalPrice,getIkasOrderFormattedTotalPrice,getIkasOrderFormattedTotalTax,getIkasOrderHref,getIkasOrderNonCouponAdjustments,getIkasOrderPackageStatusTranslation,getIkasOrderProductFiles,getIkasOrderRefundableItems,getIkasOrderRefundedItems,getIkasOrderShippingTotal,getIkasOrderTotalItemCount,getIkasOrderTotalTax,getIkasOrderUnfullfilledItems,getIkasOrderVariantNames,hasIkasOrderCustomer,hasValidIkasOrderCustomerEmail,initIkasOrder,isIkasOrderRefundable}from"./functions/models/order/index.js";export{createOrderAddress,getOrderAddressText,getOrderAddressValidationResult,isValidOrderAddress}from"./functions/models/order/address/index.js";export{getOrderAdjustmentDisplayName,getOrderAdjustmentFormattedAmount,getOrderAdjustmentIsDecrement}from"./functions/models/order/adjustment/index.js";export{getOrderGiftPackageLineFormattedPrice}from"./functions/models/order/gift-package/index.js";export{editOrderLineItem,getOrderLineItemFinalPriceWithQuantity,getOrderLineItemFormattedDiscountPrice,getOrderLineItemFormattedFinalPrice,getOrderLineItemFormattedFinalPriceWithQuantity,getOrderLineItemFormattedFinalUnitPrice,getOrderLineItemFormattedOverridenPriceWithQuantity,getOrderLineItemFormattedPrice,getOrderLineItemFormattedPriceWithQuantity,getOrderLineItemFormattedTax,getOrderLineItemFormattedUnitPrice,getOrderLineItemOverridenPriceWithQuantity,getOrderLineItemPriceWithQuantity,getOrderLineItemRefundQuantity,getOrderLineItemTax,getOrderLineItemUnitPriceText,hasOrderLineItemDiscount,setOrderLineItemRefundQuantity}from"./functions/models/order/line-item/index.js";export{downloadFile,getOrderLineItemOptionValueFormattedPrice,getOrderLineOptionFileName}from"./functions/models/order/line-item/option/value/index.js";export{getIkasOrderLineVariantHref,getIkasOrderLineVariantMainImage}from"./functions/models/order/line-item/variant/index.js";export{getIkasOrderLineBundleVariantMainImage}from"./functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js";export{getIkasOrderLineVariantNameSlug,getIkasOrderLineVariantTypeSlug}from"./functions/models/order/line-item/variant/value/index.js";export{getOrderTransactionFormattedAmount,getOrderTransactionPaymentMethodTranslation}from"./functions/models/order/transaction/index.js";export{getPaymentGatewayCalculatedAdditionalPrices}from"./functions/models/payment-gateway/index.js";export{initIkasPaymentGateway}from"./functions/models/payment-gateway/init.js";export{addIkasProductToFavorites,clearIkasProductCustomerReviewForm,getBundleProductFinalPrice,getBundleProductFinalPriceWithQuantity,getBundleProductFormattedFinalPrice,getBundleProductFormattedFinalPriceWithQuantity,getBundleProductFormattedSellPrice,getBundleProductFormattedSellPriceWithQuantity,getBundleProductSellPrice,getBundleProductSellPriceWithQuantity,getBundleProductsOfVariant,getDisplayedProductGroups,getDisplayedProductVariantTypes,getGroupedAttributeValues,getIkasProductCustomerReviewForm,getMainProductVariantType,getMainProductVariantValue,getProductAvailableStockLocations,getProductCampaigns,getProductCategoryPath,getProductFirstCategory,getProductHref,getProductOptionSet,getSelectedProductVariant,getSelectedProductVariantHref,hasProductStock,hasProductValidOptionValues,hasProductVariant,initBundleProducts,initProductOnBrowser,initProductOptionSet,isAddToCartEnabled,isBundleProductQuantityEditable,isCustomerReviewEnabled,isCustomerReviewLoginRequired,isFavoriteIkasProduct,removeIkasProductFromFavorites,selectVariantValue,setBundleProductQuantity,setOptionRealPrices,setProductOfBundleProduct,shouldDisplayBundleProductPrice}from"./functions/models/product/index.js";export{getProductFromStore,initIkasProduct,initIkasProductExtraFields,productVariantStore}from"./functions/models/product/init.js";export{clearProductListFilter,clearProductListFilters,enableProductListSuggestions,getProductListCurrencyCode,getProductListCurrencySymbol,getProductListFilterCategories,getProductListInitialData,getProductListNextPage,getProductListPage,getProductListPrevPage,getProductListSortOptions,getProductListSortTypeTranslation,getProductListSuggestionHref,getSelectedFilterValues,handleFilterValueClick,handleNumberRangeOptionClick,hasProductListAppliedFilters,hasProductListFeaturedSortEnabled,hasProductListNextPage,hasProductListPrevPage,initProductList,initProductListFilterCategories,initProductListOnBrowser,isProductListDiscounted,isProductListFilterable,isProductListFiltered,isProductListLastViewed,isProductListPurchasedTogether,isProductListRecommended,isProductListRelatedProducts,isProductListSearch,isProductListStatic,isProductListViewedTogether,onFilterCategoryClick,productListToggleFilterCollapsed,searchProductList,setProductListIsFilteredForProducts,setProductListIsStaticForProducts,setProductListVisiblePage,setSortType,translateProductListSortType}from"./functions/models/product-list/index.js";export{getIkasProductAttributeProducts,getIkasProductAttributeTableValue,getIkasProductAttrributeProductIds}from"./functions/models/product/attribute-value/index.js";export{initIkasProductAttributeValue}from"./functions/models/product/attribute-value/init.js";export{applyQueryParamForFilter,clearFilter,filterParseRangeStr,filterRangeToId,filterToInput,getFilterDisplayedValues,getFilterKeyList,getFilterValueList,getIkasFilterHref,getIkasFilterThumbnailImage,initIkasProductFilter,isBoxFilter,isCustomValueFilter,isListFilter,isStockFilter,isSwatchFilter,onNumberRangeFilterChange,onNumberRangeFilterOptionClick,selectFilterValue}from"./functions/models/product/filter/index.js";export{getDisplayedOptions,hasDisplayedOptions,hasValidProductOptionSetValues,initOptionValues,initProductOptionSetValues,setChildOptions}from"./functions/models/product/option-set/index.js";export{initIkasProductOptionSet}from"./functions/models/product/option-set/init.js";export{clearValues,getDisplayedChildOptions,getProductOptionFormattedLabel,getProductOptionFormattedPrice,getTextValue,hasError,hasValidProductOptionValues,initIkasProductOptionValues,isCheckboxOption,isChecked,isChoiceOption,isChoiceOptionBoxType,isChoiceOptionSelectType,isChoiceOptionSwatchType,isColorPickerOption,isDatePickerOption,isFileOption,isImageOption,isProductOptionSelectValueSelected,isTextAreaOption,isTextOption,productOptionFileUpload,selectValue,setCheckboxValue,setTextValue,setValues}from"./functions/models/product/option-set/option/index.js";export{initIkasProductOption}from"./functions/models/product/option-set/option/init.js";export{clearProductVariantBackInStockForm,getGroupedAttributeValuesForVariant,getProductVariantAppliedCampaignAmount,getProductVariantB2bPriceRule,getProductVariantBackInStockForm,getProductVariantBundlePrice,getProductVariantCampaignOffersDiscountPercentage,getProductVariantCampaignPrice,getProductVariantDiscountAmount,getProductVariantDiscountPercentage,getProductVariantDiscountPrice,getProductVariantFinalPrice,getProductVariantFinalPriceWithCampaignOffers,getProductVariantFormattedBuyPrice,getProductVariantFormattedCampaignPrice,getProductVariantFormattedDiscountAmount,getProductVariantFormattedDiscountPrice,getProductVariantFormattedFinalPrice,getProductVariantFormattedFinalPriceWithCampaignOffers,getProductVariantFormattedSellPrice,getProductVariantFormattedSellPriceWithCampaignOffers,getProductVariantIsBackInStockCustomerLoginRequired,getProductVariantIsBackInStockEnabled,getProductVariantMainImage,getProductVariantPrice,getProductVariantSellPrice,getProductVariantSellPriceWithCampaignOffers,getProductVariantUnitPriceText,hasBundleSettings,hasProductVariantDiscount,hasProductVariantStock,saveProductVariantBackInStockReminder}from"./functions/models/product/variant/index.js";export{initIkasProductVariant}from"./functions/models/product/variant/init.js";export{getIkasProductDiscountPercentage,getIkasProductPriceDiscountAmount,getIkasProductPriceFinalPrice,hasIkasProductPriceDiscount}from"./functions/models/product/variant/price/index.js";export{isRaffleAvailable}from"./functions/models/raffle/index.js";export{initIkasRaffle}from"./functions/models/raffle/init.js";export{initIkasState}from"./functions/models/state/init.js";export{getIkasVariantTypeSlug,isIkasVariantTypeColorSelection}from"./functions/models/variant-type/index.js";export{initIkasVariantType}from"./functions/models/variant-type/init.js";export{getIkasVariantValueSlug,getIkasVariantValueThumbnailImage,isColorVariantValue,isImageVariantValue,isTextVariantValue}from"./functions/models/variant-type/variant-value/index.js";export{FORM_ITEM_DEFAULT_VALUE,validateValue}from"./functions/models/validator/index.js";export{initAccountInfoForm,setAccountInfoFormFirstName,setAccountInfoFormIsMarketingAccepted,setAccountInfoFormLastName,setAccountInfoFormPhone,submitAccountInfoForm}from"./functions/models/validator/account-info/index.js";export{initAddressForm,setAddressFormAddressLine1,setAddressFormAddressLine2,setAddressFormCity,setAddressFormCompany,setAddressFormCountry,setAddressFormDistrict,setAddressFormFirstName,setAddressFormIdentityNumber,setAddressFormLastName,setAddressFormPhone,setAddressFormPostalCode,setAddressFormRegion,setAddressFormState,setAddressFormTaxNumber,setAddressFormTaxOffice,setAddressFormTitle,submitAddressForm}from"./functions/models/validator/address/index.js";export{initBackInStockNotificationForm,setBackInStockNotificationFormEmail,submitBackInStockNotificationForm}from"./functions/models/validator/back-in-stock-notification/index.js";export{initContactForm,setContactFormEmail,setContactFormFirstName,setContactFormLastName,setContactFormMessage,setContactFormPhone,submitContactForm}from"./functions/models/validator/contact-form/index.js";export{initCouponCodeForm,removeCouponCodeForm,setCouponCodeFormCouponCode,submitCouponCodeForm}from"./functions/models/validator/coupon-code-form/index.js";export{initCustomerReviewForm,setCustomerReviewFormComment,setCustomerReviewFormStar,setCustomerReviewFormTitle,submitCustomerReviewForm}from"./functions/models/validator/customer-review/index.js";export{initForgotPasswordForm,setForgotPasswordFormEmail,submitForgotPasswordForm}from"./functions/models/validator/forgot-password/index.js";export{initLoginForm,setLoginFormEmail,setLoginFormPassword,submitLoginForm}from"./functions/models/validator/login/index.js";export{initNewsletterSubscriptionForm,setNewsletterSubscriptionFormEmail,setNewsletterSubscriptionFormIsMarketingAccepted,submitNewsletterSubscriptionForm}from"./functions/models/validator/newsletter-subscription/index.js";export{initOrderTrackingForm,setOrderTrackingFormEmail,setOrderTrackingFormOrderNumber,submitOrderTrackingForm}from"./functions/models/validator/order-tracking/index.js";export{initRecoverPasswordForm,setRecoverPasswordFormPassword,setRecoverPasswordFormPasswordAgain,submitRecoverPasswordForm}from"./functions/models/validator/recover-password/index.js";export{initRegisterForm,setRegisterFormBooleanAttribute,setRegisterFormChoiceAttribute,setRegisterFormDateAttribute,setRegisterFormDateTimeAttribute,setRegisterFormEmail,setRegisterFormFirstName,setRegisterFormIsMarketingAccepted,setRegisterFormIsMembershipAgreementAccepted,setRegisterFormLastName,setRegisterFormMultipleChoiceAttribute,setRegisterFormNumericAttribute,setRegisterFormPassword,setRegisterFormPhone,setRegisterFormTextAttribute,submitRegisterForm}from"./functions/models/validator/register/index.js";export{initSmsLoginForm,resendSmsLoginFormCode,setSmsLoginFormCode,setSmsLoginFormEmail,setSmsLoginFormFirstName,setSmsLoginFormIsMarketingAccepted,setSmsLoginFormIsMembershipAgreementAccepted,setSmsLoginFormLastName,setSmsLoginFormPhone,submitSmsLoginForm}from"./functions/models/validator/sms-login/index.js";export{initVerifyPhoneNumberForm,resendVerifyPhoneNumberFormCode,setVerifyPhoneNumberFormCode,submitVerifyPhoneNumberForm}from"./functions/models/validator/verify-phone-number/index.js";export{collectionToArray}from"./functions/others/index.js";export{bs_searchProductById,bs_searchProductsById,initBaseStore,setLanguage,setLocalization}from"./functions/stores/base/index.js";export{addItemToCart,addSelectedtedVariantToCart,changeCartItemQuantity,changeItemQuantity,createPayWithIkasSession,findExistingCartItem,findExistingCartItemWithProduct,getAcceptedOffers,getCart,getCheckoutUrlFromCartStore,hasCart,isOrderLineItemAutoCreated,removeCart,removeCouponCode,removeItem,saveCouponCode,setCart,waitForCartStoreInit,windowAddToCart}from"./functions/stores/cart/index.js";export{activateCustomer,addProductToFavorites,canCustomerCreateEmailSubscription,checkEmail,clearAccountInfoForm,clearContactForm,clearCouponCodeForm,clearForgotPasswordForm,clearLoginForm,clearNewsletterSubscriptionForm,clearOrderTrackingForm,clearRecoverPasswordForm,clearRegisterForm,closeIkasStorefrontWidget,createEmailSubscription,cs_getLoyaltyCustomerInfo,cs_listEarningMethods,cs_listLoyaltyProgramPointHistory,cs_listLoyaltyProgramTiers,cs_listSpendingMethodsByCartId,cs_removeLoyaltyPointsFromCart,cs_useLoyaltyPoints,customerLogin,customerStore_onProductView,customerToAnalyticsCustomer,deactivateCustomer,deleteCustomerAddress,exportCustomerPersonalData,forgotPassword,getAccountInfoForm,getContactForm,getCouponCodeForm,getCustomerAttributes,getCustomerConsentGranted,getDigitalProductFileDownloadUrl,getEmptyAddressForm,getFavoriteProducts,getFavoriteProductsIds,getForgotPasswordForm,getLastViewedProducts,getLoginForm,getNewsletterSubscriptionForm,getOrder,getOrderByEmail,getOrderDetailsOfPage,getOrderProductFiles,getOrderRefundSettings,getOrderTrackingForm,getOrderTransactions,getOrders,getRecoverPasswordForm,getRegisterForm,getSmsLoginForm,getVerifyPhoneNumberForm,handleCustomerConsentGrant,handleSocialLogin,hasCustomer,initCustomerStore,isFavoriteProduct,logout,openIkasStorefrontWidget,recoverPassword,refundOrder,register,removeCustomerConsent,removeProductFromFavorites,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveContactForm,saveCustomer,saveCustomerFormData,sendReview,setCaptchaToken,setSavedLastViewedProductsResponse,socialLogin,socialLoginToken,validateCustomerPhoneVerificationCode,validateOTPCode,waitForCaptchaTokenInit,waitForCustomerStoreInit}from"./functions/stores/customer/index.js";export{I18n,i18n}from"./i18n/index.js";export{Router,router,withRoutePrefix}from"./router/index.js";export{baseStore}from"./stores/base/index.js";export{CART_LS_KEY,cartStore}from"./stores/cart/index.js";export{customerStore}from"./stores/customer/index.js";export{DYNAMIC_STYLE_PROPERTIES,SIZE_PROPERTIES,getFormattedBorder,getFormattedBorderRadiusBottomLeftSize,getFormattedBorderRadiusBottomRightSize,getFormattedBorderRadiusSize,getFormattedBorderRadiusTopLeftSize,getFormattedBorderRadiusTopRightSize,getFormattedBorderWidthSizeSize,getFormattedBottomSize,getFormattedFontSize,getFormattedGapSize,getFormattedGridTemplateColumns,getFormattedHeightSize,getFormattedLeftSize,getFormattedLetterSpacingSize,getFormattedLineHeightSize,getFormattedMarginBottomSize,getFormattedMarginLeftSize,getFormattedMarginRightSize,getFormattedMarginTopSize,getFormattedMaxHeightSize,getFormattedMaxWidthSize,getFormattedMinHeightSize,getFormattedMinWidthSize,getFormattedPaddingBottomSize,getFormattedPaddingLeftSize,getFormattedPaddingMarginSize,getFormattedPaddingRightSize,getFormattedPaddingSize,getFormattedPaddingTopSize,getFormattedRightSize,getFormattedShadow,getFormattedSize,getFormattedStyleVariable,getFormattedTopSize,getFormattedWidthSize}from"./theme/styles/index.js";export{isBrowser,isDefined,isEmpty,isNotEmpty}from"./utils/blueprint.js";export{IkasComponentRenderer}from"./utils/component-renderer.js";export{HttpMethod,get,httpRequest,post}from"./utils/fetch.js";export{JsObject}from"./utils/object-wrapper.js";export{setAPIClientConfig}from"./packages/storefront-api/src/index.js";export{IkasStorefrontConfig,escapeForJSON,unescapeFromJSON}from"./packages/storefront-config/src/index.js";import"./packages/storefront-models/src/models/merchant-settings/index.js";export{default as IkasAPIClientConfig}from"./packages/storefront-api-client/src/config/index.js";export{anl_addToCart}from"./analytics/analytics-functions/addToCart.js";export{anl_addToWishlist}from"./analytics/analytics-functions/addToWishlist.js";export{anl_completeRegistration}from"./analytics/analytics-functions/completeRegistration.js";export{anl_contactForm}from"./analytics/analytics-functions/contactForm.js";export{anl_createEmailSubscription}from"./analytics/analytics-functions/createEmailSubscription.js";export{anl_customerLogin}from"./analytics/analytics-functions/customerLogin.js";export{anl_customerLogout}from"./analytics/analytics-functions/customerLogout.js";export{anl_customerVisit}from"./analytics/analytics-functions/customerVisit.js";export{anl_pageView}from"./analytics/analytics-functions/pageView.js";export{anl_productView}from"./analytics/analytics-functions/productView.js";export{anl_removeFromCart}from"./analytics/analytics-functions/removeFromCart.js";export{anl_search}from"./analytics/analytics-functions/search.js";export{anl_viewBrand}from"./analytics/analytics-functions/viewBrand.js";export{anl_viewCart}from"./analytics/analytics-functions/viewCart.js";export{anl_viewCategory}from"./analytics/analytics-functions/viewCategory.js";export{anl_viewListing}from"./analytics/analytics-functions/viewListing.js";export{anl_viewSearchResults}from"./analytics/analytics-functions/viewSearchResults.js";export{anl_viewStorefrontPopup}from"./analytics/analytics-functions/viewStorefrontPopup.js";import*as t from'./ext/animejs/lib/anime.esm.js';export{t as AnimeJS};export{cloneDeep,reaction}from"./utils/helper.js";export{APIErrorCode,APIResponse}from"./packages/storefront-api-client/src/utils/api.js";
1
+ export{Analytics}from"./analytics/analytics.js";export{initIkasEvents}from"./analytics/events.js";export{EMPTY_STRING,NULL,UNDEFINED}from"./externals/index.js";export{apiListProductBrand}from"./functions/api/brand/index.js";export{apiListCategory}from"./functions/api/category/index.js";export{apiGetLoyaltyCustomerInfo,apiGetLoyaltyProgram,apiGetStorefrontWidgetSettings,apiListEarningMethods,apiListLoyaltyProgramPointHistory,apiListLoyaltyProgramTiers,apiListSpendingMethodsByCartId,apiRemoveLoyaltyPointsFromCart,apiUseLoyaltyPoints}from"./functions/api/loyalty/index.js";export{apiListStorefrontPopup}from"./functions/api/popup/index.js";export{apiSearchProducts}from"./functions/api/product/index.js";export{getAttributeDetailValues}from"./functions/models/attribute-detail/index.js";export{getAttributeListValues}from"./functions/models/attribute-list/index.js";export{createIkasBaseModel}from"./functions/models/base/index.js";export{getIkasBlogFormattedDate,getIkasBlogHref}from"./functions/models/blog/index.js";export{createIkasBlogCategory,getIkasBlogCategoryHref}from"./functions/models/blog/category/index.js";export{initIkasBlogCategory}from"./functions/models/blog/category/init.js";export{initIkasBlog}from"./functions/models/blog/init.js";export{getBlogCategoryListInitialData,getBlogCategoryListNextPage,getBlogCategoryListPage,getBlogCategoryListPageCount,getBlogCategoryListPrevPage,hasBlogCategoryListNextPage,hasBlogCategoryListPrevPage,isBlogCategoryListStatic}from"./functions/models/blog-category-list/index.js";export{initBlogCategoryList}from"./functions/models/blog-category-list/init.js";export{getBlogListInitialData,getBlogListNextPage,getBlogListPage,getBlogListPageCount,getBlogListPrevPage,hasBlogListNextPage,hasBlogListPrevPage,isBlogListStatic}from"./functions/models/blog-list/index.js";export{initBlogList}from"./functions/models/blog-list/init.js";export{getIkasBrandHref}from"./functions/models/brand/index.js";export{initIkasBrand}from"./functions/models/brand/init.js";export{getBrandListInitialData,getBrandListNextPage,getBrandListPage,getBrandListPageCount,getBrandListPrevPage,hasBrandListNextPage,hasBrandListPrevPage,isBrandListStatic}from"./functions/models/brand-list/index.js";export{initBrandList}from"./functions/models/brand-list/init.js";export{acceptProductOffer,isAcceptedProductOffer,rejectProductOffer}from"./functions/models/campaign-offer/index.js";export{getCategoryPath,getIkasCategoryHref}from"./functions/models/category/index.js";export{initIkasCategory}from"./functions/models/category/init.js";export{getCategoryListInitialData,getCategoryListNextPage,getCategoryListPage,getCategoryListPageCount,getCategoryListPrevPage,hasCategoryListNextPage,hasCategoryListPrevPage,isCategoryListStatic}from"./functions/models/category-list/index.js";export{initCategoryList}from"./functions/models/category-list/init.js";export{getIkasCategoryPathItemHref,getIkasCategoryPathItemSlug}from"./functions/models/category/path-item/index.js";export{initIkasCategoryPathItem}from"./functions/models/category/path-item/init.js";export{getCheckoutTotalFinalPrice,isCheckoutComplete}from"./functions/models/checkout/index.js";export{initIkasCountry}from"./functions/models/country/init.js";export{getCustomerBasicInfo,isCustomerSubscribed}from"./functions/models/customer/index.js";export{clearIkasCustomerAddressForm,getCustomerAddressText,getCustomerAddressValidationResult,getIkasCustomerAddressForm,isValidCustomerAddress}from"./functions/models/customer/address/index.js";export{getCustomerAttributeAccountPagePermission,getCustomerAttributeRegisterPageRequirement}from"./functions/models/customer/attribute/index.js";export{initIkasCustomerAttribute}from"./functions/models/customer/attribute/init.js";export{getIkasCustomerReviewFormattedDate}from"./functions/models/customer/review/index.js";export{initIkasCustomerReview}from"./functions/models/customer/review/init.js";export{getCustomerReviewListInitialData,getCustomerReviewListNextPage,getCustomerReviewListPage,getCustomerReviewListPageCount,getCustomerReviewListPrev,getProductCustomerReviews,hasCustomerReviewListNextPage,hasCustomerReviewListPrevPage}from"./functions/models/customer-review-list/index.js";export{initCustomerReviewList}from"./functions/models/customer-review-list/init.js";export{getCustomerReviewSummaryListInitialData,getCustomerReviewSummaryListNextPage,getCustomerReviewSummaryListPage,getCustomerReviewSummaryListPrev,hasCustomerReviewSummaryListNextPage,hasCustomerReviewSummaryListPrevPage}from"./functions/models/customer-review-summary-list/index.js";export{initCustomerReviewSummaryList}from"./functions/models/customer-review-summary-list/init.js";export{getIkasFilterCategoryHref,getIkasFilterCategorySlug}from"./functions/models/filter-category/index.js";export{initIkasHTMLMetaData,setHTMLMetaDataTranslations}from"./functions/models/html-meta-data/init.js";export{initThemeDatePicker,themeDatePickerGetDate,themeDatePickerGetDaysOfMonth,themeDatePickerGetDaysOfWeekShort,themeDatePickerGetFullYear,themeDatePickerGetHours,themeDatePickerGetMinutes,themeDatePickerGetMonth,themeDatePickerGetMonthList,themeDatePickerGetMonthName,themeDatePickerGetViewFullYear,themeDatePickerGetViewMonth,themeDatePickerGetWeekFirstDay,themeDatePickerOnChange,themeDatePickerOnDayChange,themeDatePickerOnHoursChange,themeDatePickerOnMinutesChange,themeDatePickerOnViewFullYearChange,themeDatePickerOnViewMonthChange,themeDatePickerSetViewNextMonth,themeDatePickerSetViewPrevMonth}from"./functions/models/ikas-theme/date-picker.js";export{createMediaSrcset,getDefaultSrc,getSrc,getThumbnailSrc}from"./functions/models/image/index.js";export{initIkasMerchantSettings}from"./functions/models/merchant-settings/init.js";export{getIkasOrderCouponAdjustment,getIkasOrderCustomerFullName,getIkasOrderDisplayedAdjustments,getIkasOrderDisplayedPackages,getIkasOrderDistinctItemCount,getIkasOrderFormattedDate,getIkasOrderFormattedOrderedAt,getIkasOrderFormattedShippingTotal,getIkasOrderFormattedTotalFinalPrice,getIkasOrderFormattedTotalPrice,getIkasOrderFormattedTotalTax,getIkasOrderGiftCardTotalPrice,getIkasOrderHref,getIkasOrderNonCouponAdjustments,getIkasOrderPackageStatusTranslation,getIkasOrderProductFiles,getIkasOrderRefundableItems,getIkasOrderRefundedItems,getIkasOrderShippingTotal,getIkasOrderTotalItemCount,getIkasOrderTotalTax,getIkasOrderUnfullfilledItems,getIkasOrderVariantNames,hasIkasOrderCustomer,hasValidIkasOrderCustomerEmail,initIkasOrder,isIkasOrderRefundable}from"./functions/models/order/index.js";export{createOrderAddress,getOrderAddressText,getOrderAddressValidationResult,isValidOrderAddress}from"./functions/models/order/address/index.js";export{getOrderAdjustmentDisplayName,getOrderAdjustmentFormattedAmount,getOrderAdjustmentIsDecrement}from"./functions/models/order/adjustment/index.js";export{getOrderGiftPackageLineFormattedPrice}from"./functions/models/order/gift-package/index.js";export{editOrderLineItem,getOrderLineItemFinalPriceWithQuantity,getOrderLineItemFormattedDiscountPrice,getOrderLineItemFormattedFinalPrice,getOrderLineItemFormattedFinalPriceWithQuantity,getOrderLineItemFormattedFinalUnitPrice,getOrderLineItemFormattedOverridenPriceWithQuantity,getOrderLineItemFormattedPrice,getOrderLineItemFormattedPriceWithQuantity,getOrderLineItemFormattedTax,getOrderLineItemFormattedUnitPrice,getOrderLineItemOverridenPriceWithQuantity,getOrderLineItemPriceWithQuantity,getOrderLineItemRefundQuantity,getOrderLineItemTax,getOrderLineItemUnitPriceText,hasOrderLineItemDiscount,setOrderLineItemRefundQuantity}from"./functions/models/order/line-item/index.js";export{downloadFile,getOrderLineItemOptionValueFormattedPrice,getOrderLineOptionFileName}from"./functions/models/order/line-item/option/value/index.js";export{getIkasOrderLineVariantHref,getIkasOrderLineVariantMainImage}from"./functions/models/order/line-item/variant/index.js";export{getIkasOrderLineBundleVariantMainImage}from"./functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js";export{getIkasOrderLineVariantNameSlug,getIkasOrderLineVariantTypeSlug}from"./functions/models/order/line-item/variant/value/index.js";export{getOrderTransactionFormattedAmount,getOrderTransactionPaymentMethodTranslation}from"./functions/models/order/transaction/index.js";export{getPaymentGatewayCalculatedAdditionalPrices}from"./functions/models/payment-gateway/index.js";export{initIkasPaymentGateway}from"./functions/models/payment-gateway/init.js";export{addIkasProductToFavorites,clearIkasProductCustomerReviewForm,getBundleProductFinalPrice,getBundleProductFinalPriceWithQuantity,getBundleProductFormattedFinalPrice,getBundleProductFormattedFinalPriceWithQuantity,getBundleProductFormattedSellPrice,getBundleProductFormattedSellPriceWithQuantity,getBundleProductSellPrice,getBundleProductSellPriceWithQuantity,getBundleProductsOfVariant,getDisplayedProductGroups,getDisplayedProductVariantTypes,getGroupedAttributeValues,getIkasProductCustomerReviewForm,getMainProductVariantType,getMainProductVariantValue,getProductAvailableStockLocations,getProductCampaigns,getProductCategoryPath,getProductFirstCategory,getProductHref,getProductOptionSet,getSelectedProductVariant,getSelectedProductVariantHref,hasProductStock,hasProductValidOptionValues,hasProductVariant,initBundleProducts,initProductOnBrowser,initProductOptionSet,isAddToCartEnabled,isBundleProductQuantityEditable,isCustomerReviewEnabled,isCustomerReviewLoginRequired,isFavoriteIkasProduct,removeIkasProductFromFavorites,selectVariantValue,setBundleProductQuantity,setOptionRealPrices,setProductOfBundleProduct,shouldDisplayBundleProductPrice}from"./functions/models/product/index.js";export{getProductFromStore,initIkasProduct,initIkasProductExtraFields,productVariantStore}from"./functions/models/product/init.js";export{clearProductListFilter,clearProductListFilters,enableProductListSuggestions,getProductListCurrencyCode,getProductListCurrencySymbol,getProductListFilterCategories,getProductListInitialData,getProductListNextPage,getProductListPage,getProductListPrevPage,getProductListSortOptions,getProductListSortTypeTranslation,getProductListSuggestionHref,getSelectedFilterValues,handleFilterValueClick,handleNumberRangeOptionClick,hasProductListAppliedFilters,hasProductListFeaturedSortEnabled,hasProductListNextPage,hasProductListPrevPage,initProductList,initProductListFilterCategories,initProductListOnBrowser,isProductListDiscounted,isProductListFilterable,isProductListFiltered,isProductListLastViewed,isProductListPurchasedTogether,isProductListRecommended,isProductListRelatedProducts,isProductListSearch,isProductListStatic,isProductListViewedTogether,onFilterCategoryClick,productListToggleFilterCollapsed,searchProductList,setProductListIsFilteredForProducts,setProductListIsStaticForProducts,setProductListVisiblePage,setSortType,translateProductListSortType}from"./functions/models/product-list/index.js";export{getIkasProductAttributeProducts,getIkasProductAttributeTableValue,getIkasProductAttrributeProductIds}from"./functions/models/product/attribute-value/index.js";export{initIkasProductAttributeValue}from"./functions/models/product/attribute-value/init.js";export{applyQueryParamForFilter,clearFilter,filterParseRangeStr,filterRangeToId,filterToInput,getFilterDisplayedValues,getFilterKeyList,getFilterValueList,getIkasFilterHref,getIkasFilterThumbnailImage,initIkasProductFilter,isBoxFilter,isCustomValueFilter,isListFilter,isStockFilter,isSwatchFilter,onNumberRangeFilterChange,onNumberRangeFilterOptionClick,selectFilterValue}from"./functions/models/product/filter/index.js";export{getDisplayedOptions,hasDisplayedOptions,hasValidProductOptionSetValues,initOptionValues,initProductOptionSetValues,setChildOptions}from"./functions/models/product/option-set/index.js";export{initIkasProductOptionSet}from"./functions/models/product/option-set/init.js";export{clearValues,getDisplayedChildOptions,getProductOptionFormattedLabel,getProductOptionFormattedPrice,getTextValue,hasError,hasValidProductOptionValues,initIkasProductOptionValues,isCheckboxOption,isChecked,isChoiceOption,isChoiceOptionBoxType,isChoiceOptionSelectType,isChoiceOptionSwatchType,isColorPickerOption,isDatePickerOption,isFileOption,isImageOption,isProductOptionSelectValueSelected,isTextAreaOption,isTextOption,productOptionFileUpload,selectValue,setCheckboxValue,setTextValue,setValues}from"./functions/models/product/option-set/option/index.js";export{initIkasProductOption}from"./functions/models/product/option-set/option/init.js";export{clearProductVariantBackInStockForm,getGroupedAttributeValuesForVariant,getProductVariantAppliedCampaignAmount,getProductVariantB2bPriceRule,getProductVariantBackInStockForm,getProductVariantBundlePrice,getProductVariantCampaignOffersDiscountPercentage,getProductVariantCampaignPrice,getProductVariantDiscountAmount,getProductVariantDiscountPercentage,getProductVariantDiscountPrice,getProductVariantFinalPrice,getProductVariantFinalPriceWithCampaignOffers,getProductVariantFormattedBuyPrice,getProductVariantFormattedCampaignPrice,getProductVariantFormattedDiscountAmount,getProductVariantFormattedDiscountPrice,getProductVariantFormattedFinalPrice,getProductVariantFormattedFinalPriceWithCampaignOffers,getProductVariantFormattedSellPrice,getProductVariantFormattedSellPriceWithCampaignOffers,getProductVariantIsBackInStockCustomerLoginRequired,getProductVariantIsBackInStockEnabled,getProductVariantMainImage,getProductVariantPrice,getProductVariantSellPrice,getProductVariantSellPriceWithCampaignOffers,getProductVariantTieredDiscountProducts,getProductVariantUnitPriceText,hasBundleSettings,hasProductVariantDiscount,hasProductVariantStock,saveProductVariantBackInStockReminder}from"./functions/models/product/variant/index.js";export{initIkasProductVariant}from"./functions/models/product/variant/init.js";export{getIkasProductDiscountPercentage,getIkasProductPriceDiscountAmount,getIkasProductPriceFinalPrice,hasIkasProductPriceDiscount}from"./functions/models/product/variant/price/index.js";export{isRaffleAvailable}from"./functions/models/raffle/index.js";export{initIkasRaffle}from"./functions/models/raffle/init.js";export{initIkasState}from"./functions/models/state/init.js";export{getIkasVariantTypeSlug,isIkasVariantTypeColorSelection}from"./functions/models/variant-type/index.js";export{initIkasVariantType}from"./functions/models/variant-type/init.js";export{getIkasVariantValueSlug,getIkasVariantValueThumbnailImage,isColorVariantValue,isImageVariantValue,isTextVariantValue}from"./functions/models/variant-type/variant-value/index.js";export{FORM_ITEM_DEFAULT_VALUE,validateValue}from"./functions/models/validator/index.js";export{initAccountInfoForm,setAccountInfoFormFirstName,setAccountInfoFormIsMarketingAccepted,setAccountInfoFormLastName,setAccountInfoFormPhone,submitAccountInfoForm}from"./functions/models/validator/account-info/index.js";export{initAddressForm,setAddressFormAddressLine1,setAddressFormAddressLine2,setAddressFormCity,setAddressFormCompany,setAddressFormCountry,setAddressFormDistrict,setAddressFormFirstName,setAddressFormIdentityNumber,setAddressFormLastName,setAddressFormPhone,setAddressFormPostalCode,setAddressFormRegion,setAddressFormState,setAddressFormTaxNumber,setAddressFormTaxOffice,setAddressFormTitle,submitAddressForm}from"./functions/models/validator/address/index.js";export{initBackInStockNotificationForm,setBackInStockNotificationFormEmail,submitBackInStockNotificationForm}from"./functions/models/validator/back-in-stock-notification/index.js";export{initContactForm,setContactFormEmail,setContactFormFirstName,setContactFormLastName,setContactFormMessage,setContactFormPhone,submitContactForm}from"./functions/models/validator/contact-form/index.js";export{initCouponCodeForm,removeCouponCodeForm,setCouponCodeFormCouponCode,submitCouponCodeForm}from"./functions/models/validator/coupon-code-form/index.js";export{initCustomerReviewForm,setCustomerReviewFormComment,setCustomerReviewFormStar,setCustomerReviewFormTitle,submitCustomerReviewForm}from"./functions/models/validator/customer-review/index.js";export{initDeactivateCustomerForm,setDeactivateCustomerFormPassword,submitDeactivateCustomerForm}from"./functions/models/validator/deactivate-customer/index.js";export{initForgotPasswordForm,setForgotPasswordFormEmail,submitForgotPasswordForm}from"./functions/models/validator/forgot-password/index.js";export{initLoginForm,setLoginFormEmail,setLoginFormPassword,submitLoginForm}from"./functions/models/validator/login/index.js";export{initNewsletterSubscriptionForm,setNewsletterSubscriptionFormEmail,setNewsletterSubscriptionFormIsMarketingAccepted,submitNewsletterSubscriptionForm}from"./functions/models/validator/newsletter-subscription/index.js";export{initOrderTrackingForm,setOrderTrackingFormEmail,setOrderTrackingFormOrderNumber,submitOrderTrackingForm}from"./functions/models/validator/order-tracking/index.js";export{initRecoverPasswordForm,setRecoverPasswordFormPassword,setRecoverPasswordFormPasswordAgain,submitRecoverPasswordForm}from"./functions/models/validator/recover-password/index.js";export{initRegisterForm,setRegisterFormBooleanAttribute,setRegisterFormChoiceAttribute,setRegisterFormDateAttribute,setRegisterFormDateTimeAttribute,setRegisterFormEmail,setRegisterFormFirstName,setRegisterFormIsMarketingAccepted,setRegisterFormIsMembershipAgreementAccepted,setRegisterFormLastName,setRegisterFormMultipleChoiceAttribute,setRegisterFormNumericAttribute,setRegisterFormPassword,setRegisterFormPhone,setRegisterFormTextAttribute,submitRegisterForm}from"./functions/models/validator/register/index.js";export{initSmsLoginForm,resendSmsLoginFormCode,setSmsLoginFormCode,setSmsLoginFormEmail,setSmsLoginFormFirstName,setSmsLoginFormIsMarketingAccepted,setSmsLoginFormIsMembershipAgreementAccepted,setSmsLoginFormLastName,setSmsLoginFormPhone,submitSmsLoginForm}from"./functions/models/validator/sms-login/index.js";export{initVerifyPhoneNumberForm,resendVerifyPhoneNumberFormCode,setVerifyPhoneNumberFormCode,submitVerifyPhoneNumberForm}from"./functions/models/validator/verify-phone-number/index.js";export{collectionToArray}from"./functions/others/index.js";export{bs_searchProductById,bs_searchProductsById,initBaseStore,setLanguage,setLocalization}from"./functions/stores/base/index.js";export{addItemToCart,addSelectedtedVariantToCart,changeCartItemQuantity,changeItemQuantity,createPayWithIkasSession,findExistingCartItem,findExistingCartItemWithProduct,getAcceptedOffers,getCart,getCheckoutUrlFromCartStore,hasCart,isOrderLineItemAutoCreated,removeCart,removeCouponCode,removeGiftCardLine,removeItem,saveCouponCode,setCart,waitForCartStoreInit,windowAddToCart}from"./functions/stores/cart/index.js";export{MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,activateCustomer,addProductToFavorites,canCustomerCreateEmailSubscription,checkEmail,clearAccountInfoForm,clearContactForm,clearCouponCodeForm,clearCustomerSession,clearDeactivateCustomerForm,clearForgotPasswordForm,clearLoginForm,clearNewsletterSubscriptionForm,clearOrderTrackingForm,clearRecoverPasswordForm,clearRegisterForm,closeIkasStorefrontWidget,createEmailSubscription,cs_getLoyaltyCustomerInfo,cs_listEarningMethods,cs_listLoyaltyProgramPointHistory,cs_listLoyaltyProgramTiers,cs_listSpendingMethodsByCartId,cs_removeLoyaltyPointsFromCart,cs_useLoyaltyPoints,customerLogin,customerStore_onProductView,customerToAnalyticsCustomer,deactivateCustomer,deleteCustomerAddress,exportCustomerPersonalData,forgotPassword,getAccountInfoForm,getContactForm,getCouponCodeForm,getCustomerAttributes,getCustomerConsentGranted,getDeactivateCustomerForm,getDigitalProductFileDownloadUrl,getEmptyAddressForm,getFavoriteProducts,getFavoriteProductsIds,getForgotPasswordForm,getLastViewedProducts,getLoginForm,getMilesSmilesDetails,getMilesSmilesLink,getNewsletterSubscriptionForm,getOrder,getOrderByEmail,getOrderDetailsOfPage,getOrderProductFiles,getOrderRefundSettings,getOrderTrackingForm,getOrderTransactions,getOrders,getRecoverPasswordForm,getRegisterForm,getSmsLoginForm,getVerifyPhoneNumberForm,handleCustomerConsentGrant,handleMilesSmilesBind,handleSocialLogin,hasCustomer,initCustomerStore,isFavoriteProduct,isMilesSmilesTransaction,logout,milesSmilesBind,openIkasStorefrontWidget,recoverPassword,refundOrder,register,removeCustomerConsent,removeProductFromFavorites,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveContactForm,saveCustomer,saveCustomerFormData,seedCustomerSession,sendReview,setCaptchaToken,setSavedLastViewedProductsResponse,socialLogin,socialLoginToken,unlinkMilesSmiles,validateCustomerPhoneVerificationCode,validateOTPCode,waitForCaptchaTokenInit,waitForCustomerStoreInit}from"./functions/stores/customer/index.js";export{I18n,i18n}from"./i18n/index.js";export{Router,router,withRoutePrefix}from"./router/index.js";export{baseStore}from"./stores/base/index.js";export{CART_LS_KEY,cartStore}from"./stores/cart/index.js";export{customerStore}from"./stores/customer/index.js";export{getThemeBreakpoints,getThemeColorSchemes,getThemeColors,getThemeKeyframes,getThemeSetting,getThemeSettingValue,getThemeSettings,getThemeTypography,registerThemeSettingValues}from"./theme/settings/index.js";export{DYNAMIC_STYLE_PROPERTIES,SIZE_PROPERTIES,getFormattedBorder,getFormattedBorderRadiusBottomLeftSize,getFormattedBorderRadiusBottomRightSize,getFormattedBorderRadiusSize,getFormattedBorderRadiusTopLeftSize,getFormattedBorderRadiusTopRightSize,getFormattedBorderWidthSizeSize,getFormattedBottomSize,getFormattedFontSize,getFormattedGapSize,getFormattedGridTemplateColumns,getFormattedHeightSize,getFormattedLeftSize,getFormattedLetterSpacingSize,getFormattedLineHeightSize,getFormattedMarginBottomSize,getFormattedMarginLeftSize,getFormattedMarginRightSize,getFormattedMarginTopSize,getFormattedMaxHeightSize,getFormattedMaxWidthSize,getFormattedMinHeightSize,getFormattedMinWidthSize,getFormattedPaddingBottomSize,getFormattedPaddingLeftSize,getFormattedPaddingMarginSize,getFormattedPaddingRightSize,getFormattedPaddingSize,getFormattedPaddingTopSize,getFormattedRightSize,getFormattedShadow,getFormattedSize,getFormattedStyleVariable,getFormattedTopSize,getFormattedWidthSize}from"./theme/styles/index.js";export{isBrowser,isDefined,isEmpty,isNotEmpty}from"./utils/blueprint.js";export{IkasComponentRenderer}from"./utils/component-renderer.js";export{formatCurrency}from"./utils/currency.js";export{HttpMethod,get,httpRequest,post}from"./utils/fetch.js";export{JsObject}from"./utils/object-wrapper.js";export{PayWithIkas}from"./utils/pay-with-ikas.js";export{normalizeSvg}from"./utils/svg.js";export{setAPIClientConfig}from"./packages/storefront-api/src/index.js";export{IkasStorefrontConfig,escapeForJSON,unescapeFromJSON}from"./packages/storefront-config/src/index.js";import"./packages/storefront-models/src/models/merchant-settings/index.js";export{default as IkasAPIClientConfig}from"./packages/storefront-api-client/src/config/index.js";export{anl_addToCart}from"./analytics/analytics-functions/addToCart.js";export{anl_addToWishlist}from"./analytics/analytics-functions/addToWishlist.js";export{anl_completeRegistration}from"./analytics/analytics-functions/completeRegistration.js";export{anl_contactForm}from"./analytics/analytics-functions/contactForm.js";export{anl_createEmailSubscription}from"./analytics/analytics-functions/createEmailSubscription.js";export{anl_customerLogin}from"./analytics/analytics-functions/customerLogin.js";export{anl_customerLogout}from"./analytics/analytics-functions/customerLogout.js";export{anl_customerVisit}from"./analytics/analytics-functions/customerVisit.js";export{anl_pageView}from"./analytics/analytics-functions/pageView.js";export{anl_productView}from"./analytics/analytics-functions/productView.js";export{anl_removeFromCart}from"./analytics/analytics-functions/removeFromCart.js";export{anl_search}from"./analytics/analytics-functions/search.js";export{anl_viewBrand}from"./analytics/analytics-functions/viewBrand.js";export{anl_viewCart}from"./analytics/analytics-functions/viewCart.js";export{anl_viewCategory}from"./analytics/analytics-functions/viewCategory.js";export{anl_viewListing}from"./analytics/analytics-functions/viewListing.js";export{anl_viewSearchResults}from"./analytics/analytics-functions/viewSearchResults.js";export{anl_viewStorefrontPopup}from"./analytics/analytics-functions/viewStorefrontPopup.js";import*as e from'./ext/animejs/lib/anime.esm.js';export{e as AnimeJS};export{cloneDeep,reaction}from"./utils/helper.js";export{APIErrorCode,APIResponse}from"./packages/storefront-api-client/src/utils/api.js";export{EMPTY_THEME_GLOBALS,breakpointCssToken,cssVarCamelCase,cssVarRef,isReservedVariableId,rawClassRef,resolveBreakpointMediaTokens,serializeThemeGlobals,toResolverBreakpoints}from"./packages/storefront-config/src/theme-globals.js";
@@ -0,0 +1 @@
1
+ import{__awaiter as r,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as o}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var s=function(s,n,a){return r(void 0,void 0,void 0,function(){var r,u,c,l;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,i({operationName:"removeGiftCardFromCart",config:a,excludeFields:n,input:s})];case 1:return r=t.sent(),u=r.data,c=r.errors,[2,new o(null==u?void 0:u.removeGiftCardFromCart,c)];case 2:return l=t.sent(),[2,e(l)];case 3:return[2]}})})};export{s as removeGiftCardFromCart};
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as r}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as n}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,s,u){return t(void 0,void 0,void 0,function(){var t,c,l,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"unlinkExternalAccount",config:u,excludeFields:s,input:o})];case 1:return t=r.sent(),c=t.data,l=t.errors,[2,new n(null==c?void 0:c.unlinkExternalAccount,l)];case 2:return a=r.sent(),[2,e(a)];case 3:return[2]}})})};export{o as unlinkExternalAccount};
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as r}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as n}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,s,c){return t(void 0,void 0,void 0,function(){var t,u,a,l;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"getExternalAccountLink",config:c,excludeFields:s,input:o})];case 1:return t=r.sent(),u=t.data,a=t.errors,[2,new n(null==u?void 0:u.getExternalAccountLink,a)];case 2:return l=r.sent(),[2,e(l)];case 3:return[2]}})})};export{o as getExternalAccountLink};
@@ -0,0 +1 @@
1
+ import{__awaiter as r,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as o}from"../../../../storefront-api-client/src/utils/api.js";import s from"../../../../storefront-api-client/src/utils/fetch-query.js";var i=function(i,n){return r(void 0,void 0,void 0,function(){var r,a,u,c;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,s({operationName:"getLoyaltyProgram",config:n,excludeFields:i})];case 1:return r=t.sent(),a=r.data,u=r.errors,[2,new o(null==a?void 0:a.getLoyaltyProgram,u)];case 2:return c=t.sent(),[2,e(c)];case 3:return[2]}})})};export{i as getLoyaltyProgram};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as r,APIResponse as s}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,n){return e(void 0,void 0,void 0,function(){var e,l,a,u;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,i({operationName:"getMilesSmilesDetails",config:n,excludeFields:o})];case 1:return e=t.sent(),l=e.data,a=e.errors,[2,new s(null==l?void 0:l.getMilesSmilesDetails,a)];case 2:return u=t.sent(),[2,r(u)];case 3:return[2]}})})};export{o as getMilesSmilesDetails};
@@ -1 +1 @@
1
- var r;!function(r){r.ARGUMENT_VALIDATION_ERROR="ARGUMENT_VALIDATION_ERROR",r.UNAUTHENTICATED="UNAUTHENTICATED",r.UNAUTHORIZED="UNAUTHORIZED",r.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",r.LOGIN_REQUIRED="LOGIN_REQUIRED",r.NETWORK_ERROR="NETWORK_ERROR",r.REQUEST_CANCELLED="REQUEST_CANCELLED",r.DUPLICATE_KEY_ERROR="DUPLICATE_KEY_ERROR",r.CUSTOMER_ALREADY_SUBSCRIBED="CUSTOMER_ALREADY_SUBSCRIBED",r.UNKNOWN="UNKNOWN"}(r||(r={}));var e=function(){function e(e,o,n){this.errors=[],this.errorCodes=[];var t=[],E=[];null==o||o.forEach(function(e){var o;(null===(o=e.extensions)||void 0===o?void 0:o.code)?(t.push(e.message),E.push(e.extensions.code)):(t.push("Unknown error"),E.push(r.UNKNOWN))}),null==n||n.forEach(function(r){E.push(r)}),this.graphQLErrors=o,this.errors=t,this.errorCodes=E,this.data=e}return Object.defineProperty(e.prototype,"firstErrorMessage",{get:function(){return this.errors.length?this.errors[0]:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnAuthenticated",{get:function(){return this.errorCodes.some(function(e){return e===r.UNAUTHENTICATED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNetworkError",{get:function(){return this.errorCodes.some(function(e){return e===r.NETWORK_ERROR})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return 0===this.errorCodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelled",{get:function(){return this.errorCodes.some(function(e){return e===r.REQUEST_CANCELLED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecoverableError",{get:function(){var e=[r.UNAUTHENTICATED,r.INTERNAL_SERVER_ERROR,r.NETWORK_ERROR];return this.errorCodes.every(function(r){return e.includes(r)})},enumerable:!1,configurable:!0}),e.networkError=function(){var o=new e;return o.errors.push("Network error!"),o.errorCodes.push(r.NETWORK_ERROR),o},e.requestCancelled=function(){var o=new e;return o.errors.push("Request was cancelled"),o.errorCodes.push(r.REQUEST_CANCELLED),o},e.unknownError=function(){var o=new e;return o.errors.push("Unknown error!"),o.errorCodes.push(r.UNKNOWN),o},e.authError=function(){var o=new e;return o.errors.push("Authentication error!"),o.errorCodes.push(r.UNAUTHENTICATED),o},e.success=function(){return new e},e}();function o(r){var o,n;return console.error(r.toJSON?r.toJSON():r),"AbortError"===r.name||20===r.code||(null===(o=r.message)||void 0===o?void 0:o.includes("aborted"))?e.requestCancelled():r.networkError?e.networkError():r.graphQLErrors?new e(void 0,r.graphQLErrors):r instanceof TypeError&&(null===(n=r.message)||void 0===n?void 0:n.includes("fetch"))?e.networkError():e.unknownError()}export{r as APIErrorCode,e as APIResponse,o as handleAPIError};
1
+ var r;!function(r){r.ARGUMENT_VALIDATION_ERROR="ARGUMENT_VALIDATION_ERROR",r.UNAUTHENTICATED="UNAUTHENTICATED",r.UNAUTHORIZED="UNAUTHORIZED",r.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",r.LOGIN_REQUIRED="LOGIN_REQUIRED",r.NETWORK_ERROR="NETWORK_ERROR",r.REQUEST_CANCELLED="REQUEST_CANCELLED",r.DUPLICATE_KEY_ERROR="DUPLICATE_KEY_ERROR",r.CUSTOMER_ALREADY_SUBSCRIBED="CUSTOMER_ALREADY_SUBSCRIBED",r.MAX_QUANTITY_PER_CART_LIMIT_REACHED="MAX_QUANTITY_PER_CART_LIMIT_REACHED",r.UNKNOWN="UNKNOWN"}(r||(r={}));var e=function(){function e(e,o,n){this.errors=[],this.errorCodes=[];var t=[],E=[];null==o||o.forEach(function(e){var o;(null===(o=e.extensions)||void 0===o?void 0:o.code)?(t.push(e.message),E.push(e.extensions.code)):(t.push("Unknown error"),E.push(r.UNKNOWN))}),null==n||n.forEach(function(r){E.push(r)}),this.graphQLErrors=o,this.errors=t,this.errorCodes=E,this.data=e}return Object.defineProperty(e.prototype,"firstErrorMessage",{get:function(){return this.errors.length?this.errors[0]:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnAuthenticated",{get:function(){return this.errorCodes.some(function(e){return e===r.UNAUTHENTICATED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNetworkError",{get:function(){return this.errorCodes.some(function(e){return e===r.NETWORK_ERROR})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return 0===this.errorCodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelled",{get:function(){return this.errorCodes.some(function(e){return e===r.REQUEST_CANCELLED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecoverableError",{get:function(){var e=[r.UNAUTHENTICATED,r.INTERNAL_SERVER_ERROR,r.NETWORK_ERROR];return this.errorCodes.every(function(r){return e.includes(r)})},enumerable:!1,configurable:!0}),e.networkError=function(){var o=new e;return o.errors.push("Network error!"),o.errorCodes.push(r.NETWORK_ERROR),o},e.requestCancelled=function(){var o=new e;return o.errors.push("Request was cancelled"),o.errorCodes.push(r.REQUEST_CANCELLED),o},e.unknownError=function(){var o=new e;return o.errors.push("Unknown error!"),o.errorCodes.push(r.UNKNOWN),o},e.authError=function(){var o=new e;return o.errors.push("Authentication error!"),o.errorCodes.push(r.UNAUTHENTICATED),o},e.success=function(){return new e},e}();function o(r){var o,n;return console.error(r.toJSON?r.toJSON():r),"AbortError"===r.name||20===r.code||(null===(o=r.message)||void 0===o?void 0:o.includes("aborted"))?e.requestCancelled():r.networkError?e.networkError():r.graphQLErrors?new e(void 0,r.graphQLErrors):r instanceof TypeError&&(null===(n=r.message)||void 0===n?void 0:n.includes("fetch"))?e.networkError():e.unknownError()}export{r as APIErrorCode,e as APIResponse,o as handleAPIError};
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../ext/tslib/tslib.es6.mjs.js';var r=function(){function r(){}return r.addObserver=function(t){var n=r.observers.find(function(r){return r.id===t.id});n?n.callback=t.callback:r.observers.push(t),t.callback(r)},r.init=function(t){try{var n=["themeSecret"];Object.entries(t).forEach(function(t){var i=t[0],o=t[1];n.includes(i)||(r[i]="storefrontJSScripts"===i||"highPriorityStoreFrontJSScripts"===i?null==o?void 0:o.map(function(t){return e(t)}):o)}),t.token&&(r.apiKey=t.token),this.notify()}catch(t){console.error(t)}},r.getCurrentRouting=function(){return r.routings.find(function(t){return t.id===r.storefrontRoutingId})},r.getCurrentPath=function(){var t;return(null===(t=r.getCurrentRouting())||void 0===t?void 0:t.path)||""},r.getSupportedPaths=function(){return r.routings.map(function(t){var r;return(null===(r=t.path)||void 0===r?void 0:r.split("/")[0])||""})},r.getCurrentLocale=function(){var t=r.getCurrentRouting();return(null==t?void 0:t.locale)||"en"},r.getDefaultLocale=function(){var t=r.routings.find(function(t){return"/"===t.path||!t.path});return(null==t?void 0:t.locale)||"en"},r.getIsPreview=function(){return r.isPreview},r.notify=function(){var t=this;this.observers.forEach(function(r){return r.callback(t)})},r.isCustomerReviewEnabled=function(){var t=r.customerReviewSettings;return!!t&&!t.customerPurchaseRequired},r.isCustomerReviewLoginRequired=function(){var t=r.customerReviewSettings;return!t||t.customerLoginRequired},r.isBackInStockEnabled=function(){return!!r.productBackInStockSettings},r.isCustomerLoginRequiredForBackInStock=function(){var t=r.productBackInStockSettings;return t&&t.customerLoginRequired},r.toJSON=function(){var r=t({},this);return delete r.observers,r.storefrontJSScripts=this.storefrontJSScripts.map(function(t){return n(t)}),r.highPriorityStoreFrontJSScripts=this.highPriorityStoreFrontJSScripts.map(function(t){return n(t)}),r},r.isB2BStorefront=function(){return"B2B_STOREFRONT"===r.storefrontType},r.getDefaultCurrencyCode=function(){var t;return null===(t=r.getCurrentRouting())||void 0===t?void 0:t.currencyCode},r.getDefaultCurrencySymbol=function(){var t;return null===(t=r.getCurrentRouting())||void 0===t?void 0:t.currencySymbol},r.isCaptchaRequired=function(){var t;return(null===(t=r.customerSettings)||void 0===t?void 0:t.requireCaptchaValidation)||!1},r.getPayWithIkasUrl=function(){return r.payWithIkasUrl},r.routings=[],r.paymentGateways=[],r.translations={},r.storefrontJSScripts=[],r.highPriorityStoreFrontJSScripts=[],r.isEditor=!1,r.observers=[],r.isPreview=!1,r}();function n(t){return"string"!=typeof t?(console.error("escapeForJSON: Input is not a string",t),""):t.replace(/<\/script\b/gi,"<\\/script")}function e(t){return"string"!=typeof t?(console.error("unescapeFromJSON: Input is not a string",t),""):t.replace(/<\\\/script\b/gi,"</script")}export{r as IkasStorefrontConfig,n as escapeForJSON,e as unescapeFromJSON};
1
+ import{__assign as r}from'./../../../ext/tslib/tslib.es6.mjs.js';import{EMPTY_THEME_GLOBALS as t}from"./theme-globals.js";export{EMPTY_THEME_GLOBALS,breakpointCssToken,cssVarCamelCase,cssVarRef,isReservedVariableId,rawClassRef,resolveBreakpointMediaTokens,serializeThemeGlobals,toResolverBreakpoints}from"./theme-globals.js";var e=function(){function e(){}return e.addObserver=function(r){var t=e.observers.find(function(t){return t.id===r.id});t?t.callback=r.callback:e.observers.push(r),r.callback(e)},e.init=function(r){try{var t=["themeSecret"];Object.entries(r).forEach(function(r){var n=r[0],i=r[1];t.includes(n)||(e[n]="storefrontJSScripts"===n||"highPriorityStoreFrontJSScripts"===n?null==i?void 0:i.map(function(r){return o(r)}):i)}),r.token&&(e.apiKey=r.token),this.notify()}catch(r){console.error(r)}},e.getCurrentRouting=function(){return e.routings.find(function(r){return r.id===e.storefrontRoutingId})},e.getCurrentPath=function(){var r;return(null===(r=e.getCurrentRouting())||void 0===r?void 0:r.path)||""},e.getSupportedPaths=function(){return e.routings.map(function(r){var t;return(null===(t=r.path)||void 0===t?void 0:t.split("/")[0])||""})},e.getCurrentLocale=function(){var r=e.getCurrentRouting();return(null==r?void 0:r.locale)||"en"},e.getDefaultLocale=function(){var r=e.routings.find(function(r){return"/"===r.path||!r.path});return(null==r?void 0:r.locale)||"en"},e.getIsPreview=function(){return e.isPreview},e.notify=function(){var r=this;this.observers.forEach(function(t){return t.callback(r)})},e.isCustomerReviewEnabled=function(){var r=e.customerReviewSettings;return!!r&&!r.customerPurchaseRequired},e.isCustomerReviewLoginRequired=function(){var r=e.customerReviewSettings;return!r||r.customerLoginRequired},e.isBackInStockEnabled=function(){return!!e.productBackInStockSettings},e.isCustomerLoginRequiredForBackInStock=function(){var r=e.productBackInStockSettings;return r&&r.customerLoginRequired},e.toJSON=function(){var t=r({},this);return delete t.observers,t.storefrontJSScripts=this.storefrontJSScripts.map(function(r){return n(r)}),t.highPriorityStoreFrontJSScripts=this.highPriorityStoreFrontJSScripts.map(function(r){return n(r)}),t},e.isB2BStorefront=function(){return"B2B_STOREFRONT"===e.storefrontType},e.getDefaultCurrencyCode=function(){var r;return null===(r=e.getCurrentRouting())||void 0===r?void 0:r.currencyCode},e.getDefaultCurrencySymbol=function(){var r;return null===(r=e.getCurrentRouting())||void 0===r?void 0:r.currencySymbol},e.isCaptchaRequired=function(){var r;return(null===(r=e.customerSettings)||void 0===r?void 0:r.requireCaptchaValidation)||!1},e.getPayWithIkasUrl=function(){return e.payWithIkasUrl},e.routings=[],e.paymentGateways=[],e.translations={},e.themeGlobals=t,e.storefrontJSScripts=[],e.highPriorityStoreFrontJSScripts=[],e.isEditor=!1,e.observers=[],e.isPreview=!1,e}();function n(r){return"string"!=typeof r?(console.error("escapeForJSON: Input is not a string",r),""):r.replace(/<\/script\b/gi,"<\\/script")}function o(r){return"string"!=typeof r?(console.error("unescapeFromJSON: Input is not a string",r),""):r.replace(/<\\\/script\b/gi,"</script")}export{e as IkasStorefrontConfig,n as escapeForJSON,o as unescapeFromJSON};
@@ -0,0 +1 @@
1
+ import{__assign as n,__spreadArray as e}from'./../../../ext/tslib/tslib.es6.mjs.js';var r=new RegExp(["[A-Z]?[a-z]+","[0-9]*(?:1ST|2ND|3RD|(?![123])[0-9]TH)(?=\\b|[a-z_])","[0-9]*(?:1st|2nd|3rd|(?![123])[0-9]th)(?=\\b|[A-Z_])","[A-Z]+(?![a-z])","[0-9]+","[A-Z]"].join("|"),"g");function i(n){return(String(n).match(r)||[]).map(function(n,e){var r=n.toLowerCase();return 0===e?r:r.charAt(0).toUpperCase()+r.slice(1)}).join("")}var t={settings:{},colors:[],typography:[],breakpoints:[],keyframes:[],colorSchemes:{schemes:[],values:[]}},l=function(n,e){return e?"var(--".concat(i(n),", ").concat(e,")"):"var(--".concat(i(n),")")},u=function(n){return"_".concat(n)},o=function(n){return"bp(".concat(n,")")},a=function(n){return n.map(function(n){return{id:n.id,width:Number(n.width)||0}})},d=/\d*\.?\d+(?:e[+-]?\d+)?px|\d*\.?\d+(?:e[+-]?\d+)?|[()+\-*/]|\S/gi,s=function(n,e){var r=c(n,e);return r&&v(n,e,r)},v=function(n,e,r){var i=n[e.i];if("+"!==i&&"-"!==i)return r;e.i+=1;var t=c(n,e);return t&&t.isPx===r.isPx?v(n,e,{n:"+"===i?r.n+t.n:r.n-t.n,isPx:r.isPx}):null},c=function(n,e){var r=p(n,e);return r&&f(n,e,r)},f=function(n,e,r){var i=n[e.i];if("*"!==i&&"/"!==i)return r;e.i+=1;var t=p(n,e);return t?"*"===i?r.isPx&&t.isPx?null:f(n,e,{n:r.n*t.n,isPx:r.isPx||t.isPx}):t.isPx||0===t.n?null:f(n,e,{n:r.n/t.n,isPx:r.isPx}):null},p=function(n,e){var r,i=n[e.i];return"-"===i?(e.i+=1,(r=p(n,e))&&{n:-r.n,isPx:r.isPx}):"+"===i?(e.i+=1,p(n,e)):"("===i?(e.i+=1,(r=s(n,e))&&")"===n[e.i]?(e.i+=1,r):null):"object"==typeof i&&null!==i?(e.i+=1,i):null},m=function(n){var e=function(n){var e=(n.match(d)||[]).map(function(n){return/^\d*\.?\d+(?:e[+-]?\d+)?px$/i.test(n)?{n:parseFloat(n),isPx:!0}:/^\d*\.?\d+(?:e[+-]?\d+)?$/i.test(n)?{n:parseFloat(n),isPx:!1}:"()+-*/".includes(n)?n:null});return e.every(function(n){return null!==n})?e:null}(n.replace(/calc\(/gi,"("));if(!e)return null;var r={i:0},i=s(e,r);return i&&i.isPx&&r.i===e.length&&Number.isFinite(i.n)&&Math.abs(i.n)<1e8?i.n:null},y=function(n,e,r,i){if(e>=n.length||e>i)return-1;var t=n[e],l="("===t?r+1:")"===t?r-1:r;return 0===l?e:y(n,e+1,l,i)},h=function(n,e){return e.reduce(function(n,e){return n.split(o(e.id)).join("".concat(e.width,"px"))},n)},b=/^-(?:webkit|moz|ms|o)-$/i,g=/[-A-Za-z0-9_]+$/,x=function(n,e,r){var i=n.indexOf("bp(",r);if(-1===i)return n;var t=Math.max(r,i-512-5),l=n.slice(t,i+5).indexOf("calc("),u=-1===l?-1:t+l;if(-1===u||u>i)return x(n,e,i+3);var o=g.exec(n.slice(Math.max(0,u-12),u)),a=o?o[0]:"",d=b.test(a)&&!g.test(n.slice(u-a.length-1,u-a.length));if(a&&!d)return x(n,e,u+5);var s=d?u-a.length:u,v=u+4,c=y(n,v,0,v+512);if(-1===c)return x(n,e,u+5);if(c<i)return x(n,e,c+1);var f=h(n.slice(v+1,c),e),p=m(f);if(null===p)return x(n,e,u+5);var N="".concat(parseFloat(p.toFixed(4)),"px");return x(n.slice(0,s)+N+n.slice(c+1),e,s+N.length)};function N(n,e){if(!n||!n.includes("bp("))return n;var r=x(n,e,0);return r.includes("bp(")?h(r,e):r}var S=function(n){var e;if(n)return Array.isArray(n)?null===(e=n[0])||void 0===e?void 0:e.value:n},P=function(n){var e,r=n;if(!r)return null;if(r.patternValueId)return l(r.patternValueId);if(r.colorSchemeId)return l(r.colorSchemeId);if(r.keyframeValueId)return u(r.keyframeValueId);var i=r.value;return null==i?null:"object"==typeof i?"string"==typeof i.css?i.css:null!=i.value?"".concat(i.value).concat(null!==(e=i.unit)&&void 0!==e?e:""):null:String(i)},k=["font-size","line-height","letter-spacing","font-weight"],I=/^__.+__$/,j=function(n){return I.test(null!=n?n:"")},w=function(n){return n.replace("_optional","").replace("_array","")},A=function(n,e){if(!n||!e)return null;var r=w(e),i=n.find(function(n){return(null==n?void 0:n.id)===r});if(!i||"enum"!==i.type||!i.enumOptions||"object"!=typeof i.enumOptions)return null;for(var t={},l=0,u=Object.entries(i.enumOptions);l<u.length;l++){var o=u[l],a=o[0],d=o[1];null!=d&&(t[a]=String(d))}return Object.keys(t).length?t:null},O=function(n,e,r){if("BOOLEAN"===n)return!!e;if("NUMBER"===n){if("number"!=typeof e&&"string"!=typeof e)return null;var i="string"==typeof e&&""===e.trim()?NaN:Number(e);return Number.isFinite(i)?i:null}if("ENUM"===n){if(!r)return null;if("string"!=typeof e&&"number"!=typeof e)return null;var t=String(e);return Object.values(r).includes(t)?t:null}return null!=e?e:null};function _(r){var o,a,d,s,v,c,f,p,m,y,h,b,g,x,N;if(!r)return t;for(var I=null===(o=r.theme)||void 0===o?void 0:o.pattern,_={},V=0,D=null!==(s=null===(d=null===(a=r.globalsBlueprint)||void 0===a?void 0:a.module)||void 0===d?void 0:d.variables)&&void 0!==s?s:[];V<D.length;V++){var E=D[V];if(!1!==E.isGlobal&&E.variableName&&(!j(E.id)&&!j(E.variableName))){var M=null!==(v=E.variableType)&&void 0!==v?v:"TEXT",z="ENUM"===M?A(r.types,E.typeId):null;_[E.variableName]=n({name:E.variableName,displayName:null!==(c=E.displayName)&&void 0!==c?c:E.variableName,type:M,value:O(M,E.defaultValue,z)},"ENUM"===M?n(n({},E.typeId?{enumTypeId:w(E.typeId)}:{}),{options:null!=z?z:{}}):{})}}var F=(null!==(f=null==I?void 0:I.values)&&void 0!==f?f:[]).map(function(n){var e,r;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,resolved:P(S(null===(r=n.style)||void 0===r?void 0:r.value)),cssVar:l(n.id)}}),T=function(n){return(null!=n?n:[]).map(function(n){return{property:n.property,value:P(S(n.value))}}).filter(function(n){return null!=n.value})},U=e([],null!==(m=null===(p=r.theme)||void 0===p?void 0:p.breakpoints)&&void 0!==m?m:[],!0).sort(function(n,e){return(Number(e.width)||0)-(Number(n.width)||0)}),Z=(null!==(y=null==I?void 0:I.elements)&&void 0!==y?y:[]).map(function(r){for(var t,l={},o=0,a=T(r.styles);o<a.length;o++){var d=a[o],s=d.property,v=d.value;l[i(s)]=v}var c=function(r,t,l){var u;if(!(null===(u=r.breakpointStyles)||void 0===u?void 0:u.length))return[];var o=n({},t);return l.reduce(function(l,u){for(var a,d,s=null===(a=r.breakpointStyles)||void 0===a?void 0:a.find(function(n){return n.breakpointId===u.id}),v={},c=0,f=null!==(d=null==s?void 0:s.styles)&&void 0!==d?d:[];c<f.length;c++){var p=f[c];if(k.includes(p.property)){var m=i(p.property),y=P(S(p.value));null==y||""===y||null==t[m]||m in v||(v[m]=y)}}return Object.keys(v).length?(Object.assign(o,v),e(e([],l,!0),[{id:u.id,width:Number(u.width)||0,overrides:v,resolved:n({},o)}],!1)):l},[])}(r,l,U);return n({id:r.id,name:null!==(t=r.name)&&void 0!==t?t:r.id,resolved:l,className:u(r.id),isDefault:!!r.isDefault},c.length?{breakpoints:c}:{})}),$=U.map(function(n){var e,r;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,width:null!==(r=n.width)&&void 0!==r?r:0}}),B=(null!==(b=null===(h=r.theme)||void 0===h?void 0:h.keyframes)&&void 0!==b?b:[]).map(function(n){var e,r,i;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,type:null!==(r=n.type)&&void 0!==r?r:"keyframe",ref:u(n.id),settings:T(n.styles),points:(null!==(i=n.points)&&void 0!==i?i:[]).map(function(n){return{point:n.point,styles:T(n.styles)}})}}),R=(null!==(g=null==I?void 0:I.colorSchemes)&&void 0!==g?g:[]).map(function(n){var e;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id}}),C=null!==(x=null==I?void 0:I.colorSchemes)&&void 0!==x?x:[],L=null!==(N=null==I?void 0:I.colorSchemeValues)&&void 0!==N?N:[],G=L.map(function(n){for(var e,r,i,t,o=function(n){var e,r;return null!==(r=null===(e=L.find(function(e){return e.isDefault&&(n?e.designAssetId===n:!e.designAssetId)}))||void 0===e?void 0:e.colors)&&void 0!==r?r:[]}(n.designAssetId),a={},d=function(t){var u=null===(e=n.colors)||void 0===e?void 0:e.find(function(n){return n.colorSchemeId===t.id}),d=u?void 0:o.find(function(n){return n.colorSchemeId===t.id});a[t.id]={resolved:null!==(i=P(null!==(r=null==u?void 0:u.style)&&void 0!==r?r:null==d?void 0:d.style))&&void 0!==i?i:"#ffffff",cssVar:l(t.id)}},s=0,v=C;s<v.length;s++){d(v[s])}return{id:n.id,name:null!==(t=n.name)&&void 0!==t?t:n.id,isDefault:!!n.isDefault,className:u(n.id),colorsByScheme:a}});return{settings:_,colors:F,typography:Z,breakpoints:$,keyframes:B,colorSchemes:{schemes:R,values:G}}}export{t as EMPTY_THEME_GLOBALS,o as breakpointCssToken,i as cssVarCamelCase,l as cssVarRef,j as isReservedVariableId,u as rawClassRef,N as resolveBreakpointMediaTokens,_ as serializeThemeGlobals,a as toResolverBreakpoints};
@@ -181,4 +181,32 @@ export declare class Router {
181
181
  private static ensurePathPrefix;
182
182
  }
183
183
  export declare const router: Router;
184
+ /**
185
+ * Put the visitor's storefront routing in front of a path you wrote yourself.
186
+ *
187
+ * Entity links (`getProductHref`, `getIkasOrderHref`, …) and LINK props already carry the prefix.
188
+ * A literal path in your own markup does not: `href="/cart"` sends a visitor browsing `/en` to the
189
+ * default language. Wrap it, and a store with no extra routings gets the path back unchanged.
190
+ *
191
+ * Idempotent — a path that already starts with a supported routing segment is returned as-is.
192
+ * Anything that is not a path on this storefront — an absolute URL, `mailto:`, `tel:` — is returned
193
+ * untouched, so a merchant-authored prop can be wrapped without checking it first.
194
+ *
195
+ * @ai-category Navigation
196
+ * @ai-related navigate, navigateToPage
197
+ *
198
+ * @param path - A path on this storefront, starting with `/`
199
+ * @returns The path under the current routing (e.g. `/cart` → `/en/cart`)
200
+ *
201
+ * @example
202
+ * ```tsx
203
+ * import { Router, withRoutePrefix } from "@ikas/bp-storefront";
204
+ *
205
+ * // Correct href for crawlers, middle-click and open-in-new-tab...
206
+ * <a href={withRoutePrefix("/cart")} onClick={e => {
207
+ * e.preventDefault();
208
+ * Router.navigateToPage("CART"); // ...and this prefixes on its own.
209
+ * }}>Cart</a>
210
+ * ```
211
+ */
184
212
  export declare function withRoutePrefix(path: string): string;
@@ -1 +1 @@
1
- import{IkasStorefrontConfig as e}from"../packages/storefront-config/src/index.js";import{getCheckoutUrlFromCartStore as t}from"../functions/stores/cart/index.js";import{cartStore as a}from"../stores/cart/index.js";var r=function(){function r(){}return r.initialize=function(e,t){var a=this;this.window=t||window,this.currentPath=void 0!==this.window?this.window.location.pathname:"/",void 0!==this.window&&(r.pageParams=e,this.window.addEventListener("popstate",r.handlePopState),r.interceptAnchorClicks(),this.window.addEventListener("pageshow",function(e){return a.isFromBFCache=e.persisted}))},r.navigate=function(t,a,n){if(void 0===a&&(a=!1),void 0===n&&(n=!1),void 0!==this.window){var o=r.ensurePathPrefix(t);e.getIsPreview()||(a?this.window.history.replaceState({},"",o):n?this.window.open(o,"_blank"):this.window.location.href=o),r.handleRouteChange(o)}},r.navigateToPage=function(e,n,i,c,s){void 0===c&&(c=!1),void 0===s&&(s=!1);var u=Object.entries(i||{}).map(function(e){var t=e[0],a=e[1];return"".concat(t,"=").concat(encodeURIComponent(a))}).join("&"),h="";switch(e){case"INDEX":h="/";break;case"ACCOUNT":h="/account";break;case"ACTIVATE_CUSTOMER":h="/account/activate";break;case"ADDRESSES":h="/account/addresses";break;case"FAVORITE_PRODUCTS":h="/account/favorite-products";break;case"FORGOT_PASSWORD":h="/account/forgot-password";break;case"LOGIN":h="/account/login";break;case"RAFFLE_ACCOUNT":h="/account/raffles";break;case"RECOVER_PASSWORD":h="/account/recover-password";break;case"REGISTER":h="/account/register";break;case"ORDERS":h="/account/orders";break;case"ORDER_DETAIL":h="/account/orders/".concat(n);break;case"BLOG_INDEX":h="/blog";break;case"BLOG":case"BLOG_CATEGORY":h="/blog/".concat(n);break;case"CART":h="/cart";break;case"CHECKOUT":h=t(a);break;case"CUSTOM":h="/pages/".concat(n);break;case"RAFFLE":h="/raffle";break;case"RAFFLE_DETAIL":h="/raffle/".concat(n);break;case"SEARCH":h="/search";break;case"NOT_FOUND":h="/404"}u&&(h+="?".concat(u)),r.navigate(o(h),c,s)},r.addObserver=function(e){r.observers.push(e)},r.removeObserver=function(e){r.observers=r.observers.filter(function(t){return t!==e})},r.goBack=function(){this.window.history.back()},r.getCurrentPath=function(){return r.currentPath},r.getPageParams=function(){return r.pageParams},r.router_getQueryParams=function(){if(void 0===this.window)return{};var e={};return new URLSearchParams(this.window.location.search).forEach(function(t,a){e[a]=t}),e},r.handleRouteChange=function(e){r.currentPath=e,r.notifyObservers()},r.handlePopState=function(){void 0!==this.window&&r.handleRouteChange(this.window.location.pathname)},r.interceptAnchorClicks=function(){void 0!==this.window&&this.window.addEventListener("click",function(e){var t=e.target.closest("a");if(t&&"A"===t.tagName&&t.getAttribute("href")){var a=t.getAttribute("href");if(e.metaKey||e.ctrlKey)return;if(/^(mailto|tel|sms|javascript):/i.test(a))return;e.preventDefault();var n="_blank"===t.getAttribute("target");r.navigate(a,!1,n)}})},r.notifyObservers=function(){r.observers.forEach(function(e){return e(r.currentPath)})},r.ensurePathPrefix=function(e){return e.startsWith("http")||e.startsWith("/")?e:"/".concat(e)},r.currentPath="undefined"!=typeof window?window.location.pathname:"/",r.observers=[],r.pageParams={},r.isFromBFCache=!1,r}(),n=r;function o(t){var a=e.getCurrentPath(),r=t.split("/").filter(function(e){return""!==e})[0];return r&&e.getSupportedPaths().includes(r)?t:"".concat(a?"/".concat(a):"").concat(t).replace("//","/")}export{r as Router,n as router,o as withRoutePrefix};
1
+ import{IkasStorefrontConfig as e}from"../packages/storefront-config/src/index.js";import{getCheckoutUrlFromCartStore as t}from"../functions/stores/cart/index.js";import{cartStore as a}from"../stores/cart/index.js";var r=function(){function r(){}return r.initialize=function(e,t){var a=this;this.window=t||window,this.currentPath=void 0!==this.window?this.window.location.pathname:"/",void 0!==this.window&&(r.pageParams=e,this.window.addEventListener("popstate",r.handlePopState),r.interceptAnchorClicks(),this.window.addEventListener("pageshow",function(e){return a.isFromBFCache=e.persisted}))},r.navigate=function(t,a,n){if(void 0===a&&(a=!1),void 0===n&&(n=!1),void 0!==this.window){var o=r.ensurePathPrefix(t);e.getIsPreview()||(a?this.window.history.replaceState({},"",o):n?this.window.open(o,"_blank"):this.window.location.href=o),r.handleRouteChange(o)}},r.navigateToPage=function(e,n,i,c,s){void 0===c&&(c=!1),void 0===s&&(s=!1);var u=Object.entries(i||{}).map(function(e){var t=e[0],a=e[1];return"".concat(t,"=").concat(encodeURIComponent(a))}).join("&"),h="";switch(e){case"INDEX":h="/";break;case"ACCOUNT":h="/account";break;case"ACTIVATE_CUSTOMER":h="/account/activate";break;case"ADDRESSES":h="/account/addresses";break;case"FAVORITE_PRODUCTS":h="/account/favorite-products";break;case"FORGOT_PASSWORD":h="/account/forgot-password";break;case"LOGIN":h="/account/login";break;case"RAFFLE_ACCOUNT":h="/account/raffles";break;case"RECOVER_PASSWORD":h="/account/recover-password";break;case"REGISTER":h="/account/register";break;case"ORDERS":h="/account/orders";break;case"ORDER_DETAIL":h="/account/orders/".concat(n);break;case"BLOG_INDEX":h="/blog";break;case"BLOG":case"BLOG_CATEGORY":h="/blog/".concat(n);break;case"CART":h="/cart";break;case"CHECKOUT":h=t(a);break;case"CUSTOM":h="/pages/".concat(n);break;case"RAFFLE":h="/raffle";break;case"RAFFLE_DETAIL":h="/raffle/".concat(n);break;case"SEARCH":h="/search";break;case"NOT_FOUND":h="/404"}u&&(h+="?".concat(u)),r.navigate(o(h),c,s)},r.addObserver=function(e){r.observers.push(e)},r.removeObserver=function(e){r.observers=r.observers.filter(function(t){return t!==e})},r.goBack=function(){this.window.history.back()},r.getCurrentPath=function(){return r.currentPath},r.getPageParams=function(){return r.pageParams},r.router_getQueryParams=function(){if(void 0===this.window)return{};var e={};return new URLSearchParams(this.window.location.search).forEach(function(t,a){e[a]=t}),e},r.handleRouteChange=function(e){r.currentPath=e,r.notifyObservers()},r.handlePopState=function(){void 0!==this.window&&r.handleRouteChange(this.window.location.pathname)},r.interceptAnchorClicks=function(){void 0!==this.window&&this.window.addEventListener("click",function(e){var t=e.target.closest("a");if(t&&"A"===t.tagName&&t.getAttribute("href")){var a=t.getAttribute("href");if(e.metaKey||e.ctrlKey)return;if(/^(mailto|tel|sms|javascript):/i.test(a))return;e.preventDefault();var n="_blank"===t.getAttribute("target");r.navigate(a,!1,n)}})},r.notifyObservers=function(){r.observers.forEach(function(e){return e(r.currentPath)})},r.ensurePathPrefix=function(e){return e.startsWith("http")||e.startsWith("/")?e:"/".concat(e)},r.currentPath="undefined"!=typeof window?window.location.pathname:"/",r.observers=[],r.pageParams={},r.isFromBFCache=!1,r}(),n=r;function o(t){if(/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return t;var a=e.getCurrentPath(),r=t.split("/").filter(function(e){return""!==e})[0];return r&&e.getSupportedPaths().includes(r)?t:"".concat(a?"/".concat(a):"").concat(t).replace("//","/")}export{r as Router,n as router,o as withRoutePrefix};
@@ -0,0 +1,7 @@
1
+ import { APIResponse, ConfigType } from "../../../../storefront-api-client/src";
2
+ import { CartV2 } from "../types";
3
+ export declare const removeGiftCardFromCart: (input: RemoveGiftCardFromCartQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<CartV2> | APIResponse<undefined>>;
4
+ export type RemoveGiftCardFromCartQueryParams = {
5
+ cartId: string;
6
+ giftCardId?: string | null;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
2
+ import { CustomerExternalAccountLinkProviderEnum } from "../types";
3
+ export declare const unlinkExternalAccount: (input: UnlinkExternalAccountQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
4
+ export type UnlinkExternalAccountQueryParams = {
5
+ provider: CustomerExternalAccountLinkProviderEnum;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
2
+ import { CustomerExternalAccountLinkProviderEnum, ExternalAccountLink } from "../types";
3
+ export declare const getExternalAccountLink: (input: GetExternalAccountLinkQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<ExternalAccountLink> | APIResponse<undefined>>;
4
+ export type GetExternalAccountLinkQueryParams = {
5
+ provider: CustomerExternalAccountLinkProviderEnum;
6
+ };
@@ -0,0 +1,3 @@
1
+ import { APIResponse, ConfigType } from "../../../../storefront-api-client/src";
2
+ import { LoyaltyProgram } from "../types";
3
+ export declare const getLoyaltyProgram: (excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgram> | APIResponse<undefined>>;
@@ -0,0 +1,3 @@
1
+ import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
2
+ import { MilesSmilesDetailsResponse } from "../types";
3
+ export declare const getMilesSmilesDetails: (excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<MilesSmilesDetailsResponse> | APIResponse<undefined>>;
@@ -30,6 +30,7 @@ export type CustomerAttributePermissionEnum = "CustomerAttributePermissionEnum"
30
30
  export type CustomerAttributeRegisterPageRequirementEnum = "CustomerAttributeRegisterPageRequirementEnum" | "INVISIBLE" | "MANDATORY" | "OPTIONAL";
31
31
  export type CustomerAttributeTypeEnum = "CustomerAttributeTypeEnum" | "BOOLEAN" | "CHOICE" | "DATE" | "DATETIME" | "MULTIPLE_CHOICE" | "NUMERIC" | "TEXT";
32
32
  export type CustomerEmailSubscriptionStatusesEnum = "CustomerEmailSubscriptionStatusesEnum" | "NOT_SUBSCRIBED" | "PENDING_CONFIRMATION" | "SUBSCRIBED";
33
+ export type CustomerExternalAccountLinkProviderEnum = "CustomerExternalAccountLinkProviderEnum" | "miles_smiles";
33
34
  export type CustomerGenderTypeEnum = "CustomerGenderTypeEnum" | "FEMALE" | "MALE" | "OTHER";
34
35
  export type CustomerPriceListRuleFilterTypeEnum = "CustomerPriceListRuleFilterTypeEnum" | "CATEGORY" | "PRODUCT" | "PRODUCT_BRAND" | "PRODUCT_TAG";
35
36
  export type CustomerPriceListRuleValueTypeEnum = "CustomerPriceListRuleValueTypeEnum" | "DISCOUNT_AMOUNT" | "DISCOUNT_RATE" | "FIXED_PRICE";
@@ -49,15 +50,15 @@ export type LoyaltyProgramFilterTypeEnum = "LoyaltyProgramFilterTypeEnum" | "CAT
49
50
  export type LoyaltyProgramMethodSpendingTypeEnum = "LoyaltyProgramMethodSpendingTypeEnum" | "FIXED_AMOUNT" | "FREE_PRODUCT" | "FREE_SHIPPING" | "RATIO";
50
51
  export type LoyaltyProgramOrderStatusToWinPointsEnum = "LoyaltyProgramOrderStatusToWinPointsEnum" | "ORDER_CREATED" | "ORDER_DELIVERED" | "PAYMENT_COMPLETED";
51
52
  export type LoyaltyProgramPointEarningTypeEnum = "LoyaltyProgramPointEarningTypeEnum" | "DYNAMIC_ORDER_AMOUNT" | "DYNAMIC_ORDER_QUANTITY" | "STATIC";
52
- export type LoyaltyProgramPointHistoryTypeEnum = "LoyaltyProgramPointHistoryTypeEnum" | "EARN" | "SPEND" | "REFUND" | "REFILL";
53
+ export type LoyaltyProgramPointHistoryTypeEnum = "LoyaltyProgramPointHistoryTypeEnum" | "EARN" | "MANUAL_DEDUCT" | "MANUAL_EARN" | "REFILL" | "REFUND" | "SPEND";
53
54
  export type MasterPassOperationTypeEnum = "MasterPassOperationTypeEnum" | "CHECK_MASTER_PASS_USER" | "DELETE_CARD" | "DIRECT_PURCHASE" | "FORGOT_PASSWORD" | "LIST_CARDS" | "PURCHASE" | "REGISTER_CARD";
54
55
  export type MerchantSettingsAddressTypeEnum = "MerchantSettingsAddressTypeEnum" | "CORPORATE" | "INDIVIDUAL";
55
56
  export type OrderAdjustmentEnum = "OrderAdjustmentEnum" | "DECREMENT" | "INCREMENT";
56
57
  export type OrderAmountTypeEnum = "OrderAmountTypeEnum" | "AMOUNT" | "RATIO";
57
58
  export type OrderCancelledReasonEnum = "OrderCancelledReasonEnum" | "CUSTOMER" | "DECLINED" | "INVENTORY" | "OTHER";
58
- export type OrderLineItemStatusEnum = "OrderLineItemStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PLANNED" | "REFUNDED" | "REFUND_DELIVERED" | "REFUND_IN_TRANSIT" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "UNFULFILLED";
59
- export type OrderPackageFulfillStatusEnum = "OrderPackageFulfillStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "ERROR" | "FULFILLED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_DELIVERED" | "REFUND_IN_TRANSIT" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "UNABLE_TO_DELIVER";
60
- export type OrderPackageStatusEnum = "OrderPackageStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PARTIALLY_CANCELLED" | "PARTIALLY_DELIVERED" | "PARTIALLY_FULFILLED" | "PARTIALLY_READY_FOR_SHIPMENT" | "PARTIALLY_REFUNDED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_DELIVERED" | "REFUND_IN_TRANSIT" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "UNABLE_TO_DELIVER" | "UNFULFILLED";
59
+ export type OrderLineItemStatusEnum = "OrderLineItemStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PLANNED" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNFULFILLED" | "WAITING_FOR_PACKAGING";
60
+ export type OrderPackageFulfillStatusEnum = "OrderPackageFulfillStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "ERROR" | "FULFILLED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNABLE_TO_DELIVER" | "WAITING_FOR_PACKAGING";
61
+ export type OrderPackageStatusEnum = "OrderPackageStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PARTIALLY_CANCELLED" | "PARTIALLY_DELIVERED" | "PARTIALLY_FULFILLED" | "PARTIALLY_READY_FOR_SHIPMENT" | "PARTIALLY_REFUNDED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNABLE_TO_DELIVER" | "UNFULFILLED" | "WAITING_FOR_PACKAGING";
61
62
  export type OrderPaymentStatusEnum = "OrderPaymentStatusEnum" | "FAILED" | "OVER_PAID" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | "WAITING";
62
63
  export type OrderShippingMethodEnum = "OrderShippingMethodEnum" | "CLICK_AND_COLLECT" | "DIGITAL_DELIVERY" | "NO_SHIPMENT" | "SHIPMENT";
63
64
  export type OrderStatusEnum = "OrderStatusEnum" | "CANCELLED" | "CREATED" | "DRAFT" | "PARTIALLY_CANCELLED" | "PARTIALLY_REFUNDED" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "WAITING_UPSELL_ACTION";
@@ -982,6 +983,7 @@ export interface CustomerReviewSummaryStar {
982
983
  star: number;
983
984
  }
984
985
  export interface CustomerSettings {
986
+ allowStoreCredit: boolean | null;
985
987
  birthDateRequirement: CustomerSettingsRequirementEnum | null;
986
988
  createdAt: any | null;
987
989
  deleted: boolean;
@@ -1051,6 +1053,17 @@ export interface GetAvailableStockLocationAddressCountry {
1051
1053
  export interface GetAvailableStockLocationsResponse {
1052
1054
  stockLocations: GetAvailableStockLocation[];
1053
1055
  }
1056
+ export interface ExternalAccountLink {
1057
+ externalId: string;
1058
+ linkedAt: any;
1059
+ provider: CustomerExternalAccountLinkProviderEnum;
1060
+ }
1061
+ export interface MilesSmilesDetailsResponse {
1062
+ availableMiles: number;
1063
+ firstName: string | null;
1064
+ lastName: string | null;
1065
+ memberId: string;
1066
+ }
1054
1067
  export interface GetCustomerCouponResponse {
1055
1068
  campaign: Campaign;
1056
1069
  code: string;
@@ -1089,6 +1102,28 @@ export interface GetY {
1089
1102
  discountType: CampaignGetYDiscountTypeEnum | null;
1090
1103
  filter: CampaignFilter;
1091
1104
  }
1105
+ export interface GiftCard {
1106
+ active: boolean;
1107
+ amount: number;
1108
+ code: string;
1109
+ createdAt: any | null;
1110
+ customerId: string | null;
1111
+ deleted: boolean;
1112
+ endDate: any | null;
1113
+ id: string;
1114
+ minimumRequiredCartAmount: number | null;
1115
+ salesChannels: GiftCardSalesChannel[] | null;
1116
+ startDate: any | null;
1117
+ type: GiftCardTypeEnum;
1118
+ updatedAt: any | null;
1119
+ usedAllAmount: boolean | null;
1120
+ usedAmount: number;
1121
+ }
1122
+ export interface GiftCardSalesChannel {
1123
+ salesChannelId: string;
1124
+ storefrontId: string | null;
1125
+ storefrontRoutingId: string | null;
1126
+ }
1092
1127
  export interface HepsipayFrameInitResponse {
1093
1128
  frameToken: string | null;
1094
1129
  frameUrl: string | null;
@@ -1170,10 +1205,13 @@ export interface LocationTranslations {
1170
1205
  tr: string;
1171
1206
  }
1172
1207
  export interface LoyaltyCustomerInfo {
1208
+ availablePoint: number;
1173
1209
  cartLoyaltyLines: CartLoyaltyLine[] | null;
1210
+ cumulativeEarnedPoints: number;
1174
1211
  customerTier: LoyaltyProgramTier | null;
1175
1212
  loyaltyProgramCustomerId: string;
1176
1213
  loyaltyProgramId: string;
1214
+ nextAvailableDate: any | null;
1177
1215
  nextTierRequiredPoint: number | null;
1178
1216
  totalPoint: number;
1179
1217
  }
@@ -1186,13 +1224,14 @@ export interface LoyaltyProgram {
1186
1224
  name: string;
1187
1225
  orderStatusToWinPoints: LoyaltyProgramOrderStatusToWinPointsEnum;
1188
1226
  previousOrderStartDate: any | null;
1189
- refillPointsOnRefund: boolean;
1227
+ refillPointsOnRefund: boolean | null;
1190
1228
  salesChannels: LoyaltyProgramSaleChannel[] | null;
1191
1229
  spendingMethods: LoyaltyProgramSpendingMethod[] | null;
1192
1230
  tiers: LoyaltyProgramTier[] | null;
1193
1231
  tokenName: string | null;
1194
1232
  updatedAt: any | null;
1195
1233
  validityPeriod: LoyaltyProgramPeriod | null;
1234
+ waitingPeriodDays: number | null;
1196
1235
  }
1197
1236
  export interface LoyaltyProgramDiscountSettings {
1198
1237
  discountAmount: number | null;
@@ -1214,6 +1253,9 @@ export interface LoyaltyProgramPeriod {
1214
1253
  }
1215
1254
  export interface LoyaltyProgramPointHistory {
1216
1255
  amount: number;
1256
+ availableDate: any | null;
1257
+ baseAmount: number | null;
1258
+ baseQuantity: number | null;
1217
1259
  createdAt: any | null;
1218
1260
  customerId: string;
1219
1261
  customerReviewId: string | null;
@@ -1226,6 +1268,8 @@ export interface LoyaltyProgramPointHistory {
1226
1268
  loyaltyProgramSpendingMethodId: string | null;
1227
1269
  orderId: string | null;
1228
1270
  productVariantId: string | null;
1271
+ refundTransactionId: string | null;
1272
+ retroactiveCalculationId: string | null;
1229
1273
  type: LoyaltyProgramPointHistoryTypeEnum;
1230
1274
  updatedAt: any | null;
1231
1275
  }
@@ -1234,6 +1278,7 @@ export interface LoyaltyProgramPointLimit {
1234
1278
  minPointLimit: number | null;
1235
1279
  }
1236
1280
  export interface LoyaltyProgramSaleChannel {
1281
+ pageFilters: StorefrontPopupPageFilter[] | null;
1237
1282
  routingIds: string[] | null;
1238
1283
  salesChannelId: string;
1239
1284
  storefrontId: string | null;
@@ -1261,6 +1306,8 @@ export interface LoyaltyProgramTier {
1261
1306
  id: string;
1262
1307
  isActive: boolean;
1263
1308
  loyaltyProgramId: string;
1309
+ maintenanceType: LoyaltyTierMaintenanceTypeEnum | null;
1310
+ maintenanceTypeEffectiveAt: any | null;
1264
1311
  name: string;
1265
1312
  period: LoyaltyProgramPeriod | null;
1266
1313
  pointsRequired: number | null;
@@ -1446,6 +1493,7 @@ export interface OrderGiftCardLine {
1446
1493
  code: string;
1447
1494
  giftCardId: string;
1448
1495
  id: string;
1496
+ type: GiftCardTypeEnum | null;
1449
1497
  }
1450
1498
  export interface OrderGiftCardLineAppliedTransaction {
1451
1499
  amount: number;
@@ -1760,6 +1808,7 @@ export interface PaymentGateway {
1760
1808
  isPassive: boolean | null;
1761
1809
  logoUrl: string | null;
1762
1810
  masterPassClientId: string | null;
1811
+ milesSmilesEnabled: boolean | null;
1763
1812
  name: string;
1764
1813
  paymentGatewayProviderId: string | null;
1765
1814
  paymentMethodType: PaymentMethodTypeEnum;
@@ -2494,6 +2543,10 @@ export interface StockLocationTranslation {
2494
2543
  description: string | null;
2495
2544
  locale: string;
2496
2545
  }
2546
+ export interface StoreCreditBalanceResponse {
2547
+ amount: number;
2548
+ storeCredits: GiftCard[];
2549
+ }
2497
2550
  export interface Storefront {
2498
2551
  analytics4Id: string | null;
2499
2552
  b2bSettings: StorefrontB2BSettings | null;
@@ -3106,6 +3159,7 @@ export interface CreateSaleTransactionWithCartInput {
3106
3159
  cartId: string;
3107
3160
  masterPassDetail?: CreateSaleTransactionMasterPassPaymentMethodDetail | null;
3108
3161
  metadata?: any | null;
3162
+ milesSmiles?: MilesSmilesPaymentInput | null;
3109
3163
  paymentGatewayId: string;
3110
3164
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3111
3165
  }
@@ -3113,6 +3167,7 @@ export interface CreateSaleTransactionWithCheckoutInput {
3113
3167
  checkoutId: string;
3114
3168
  masterPassDetail?: CreateSaleTransactionMasterPassPaymentMethodDetail | null;
3115
3169
  metadata?: any | null;
3170
+ milesSmiles?: MilesSmilesPaymentInput | null;
3116
3171
  paymentGatewayId: string;
3117
3172
  paymentMethodDetail?: PaymentMethodDetailInput | null;
3118
3173
  }
@@ -3162,6 +3217,9 @@ export interface DateFilterInput {
3162
3217
  ne?: any | null;
3163
3218
  nin?: any[] | null;
3164
3219
  }
3220
+ export interface MilesSmilesPaymentInput {
3221
+ miles: number;
3222
+ }
3165
3223
  export interface GetCustomerCouponsInput {
3166
3224
  customerId: string;
3167
3225
  }
@@ -3506,6 +3564,7 @@ export interface UpdatePaypalOrderInput {
3506
3564
  transactionId: string;
3507
3565
  }
3508
3566
  export interface LoyaltyProgramEarningMethod {
3567
+ activatedAt: any | null;
3509
3568
  amountPerPointsEarned: number | null;
3510
3569
  createdAt: any | null;
3511
3570
  deleted: boolean;
@@ -3521,15 +3580,17 @@ export interface LoyaltyProgramEarningMethod {
3521
3580
  pointsEarned: number;
3522
3581
  productSettings: LoyaltyProgramEarningMethodProductSettings | null;
3523
3582
  quantityPerPointsEarned: number | null;
3583
+ requireImageForCustomerReview: boolean | null;
3524
3584
  segmentId: string | null;
3525
3585
  tierIds: string[] | null;
3526
3586
  translations: LoyaltyProgramMethodTranslation[] | null;
3527
3587
  updatedAt: any | null;
3528
3588
  validityPeriod: LoyaltyProgramPeriod | null;
3589
+ waitingPeriodDays: number | null;
3529
3590
  }
3530
3591
  export interface LoyaltyProgramEarningMethodOrderSettings {
3531
3592
  maxOrderAmount: number | null;
3532
- minOrderAmount: number;
3593
+ minOrderAmount: number | null;
3533
3594
  productFilters: LoyaltyProgramFilter[] | null;
3534
3595
  }
3535
3596
  export interface LoyaltyProgramEarningMethodProductSettings {
@@ -3537,3 +3598,4 @@ export interface LoyaltyProgramEarningMethodProductSettings {
3537
3598
  minProductQuantity: number | null;
3538
3599
  productFilters: LoyaltyProgramFilter[] | null;
3539
3600
  }
3601
+ export type LoyaltyTierMaintenanceTypeEnum = "LoyaltyTierMaintenanceTypeEnum" | "AUTO_MAINTENANCE" | "NO_MAINTENANCE";
@@ -5,6 +5,12 @@ export default interface API<T> {
5
5
  saveBulk?: (models: T[]) => Promise<APIResponse<any>>;
6
6
  delete?: (idList: string[]) => Promise<APIResponse<any>>;
7
7
  }
8
+ /**
9
+ * Error codes the SDK itself distinguishes. NOT exhaustive: the APIResponse
10
+ * constructor copies `extensions.code` from GraphQL errors verbatim, so
11
+ * `errorCodes` can carry backend codes that are not listed here (e.g.
12
+ * VARIANT_NOT_FOUND). Never build an exhaustive switch over this enum.
13
+ */
8
14
  export declare enum APIErrorCode {
9
15
  ARGUMENT_VALIDATION_ERROR = "ARGUMENT_VALIDATION_ERROR",
10
16
  UNAUTHENTICATED = "UNAUTHENTICATED",
@@ -15,6 +21,7 @@ export declare enum APIErrorCode {
15
21
  REQUEST_CANCELLED = "REQUEST_CANCELLED",
16
22
  DUPLICATE_KEY_ERROR = "DUPLICATE_KEY_ERROR",
17
23
  CUSTOMER_ALREADY_SUBSCRIBED = "CUSTOMER_ALREADY_SUBSCRIBED",
24
+ MAX_QUANTITY_PER_CART_LIMIT_REACHED = "MAX_QUANTITY_PER_CART_LIMIT_REACHED",
18
25
  UNKNOWN = "UNKNOWN"
19
26
  }
20
27
  export declare class APIResponse<T> {
@@ -1,4 +1,6 @@
1
1
  import { IkasCustomerReviewSettings, IkasCustomerSettings, IkasIndexPageSeoSetting, IkasLoyaltyProgram, IkasMerchantSettings, IkasProductBackInStockSettings, IkasSalesChannelPaymentGateway, IkasStorefontMetaTemplates, IkasStorefrontB2BSettings, IkasStorefrontPopup, IkasStorefrontRouting, IkasStorefrontType, IkasThemeStockPreference } from "../../storefront-models/src";
2
+ import { ThemeGlobals } from "./theme-globals";
3
+ export * from "./theme-globals";
2
4
  export declare class IkasStorefrontConfig {
3
5
  static themeId?: string;
4
6
  static apiUrl?: string;
@@ -25,8 +27,10 @@ export declare class IkasStorefrontConfig {
25
27
  static universalAnalyticsId?: string;
26
28
  static pickUpStockLocationIds?: string[] | null;
27
29
  static tiktokPixelId?: string;
30
+ static openAiPixelId?: string;
28
31
  static stockPreference?: IkasThemeStockPreference;
29
32
  static translations: Record<string, any>;
33
+ static themeGlobals: ThemeGlobals;
30
34
  static storefrontJSScripts: string[];
31
35
  static highPriorityStoreFrontJSScripts: string[];
32
36
  static customerReviewSettings?: IkasCustomerReviewSettings | null;
@@ -98,8 +102,10 @@ export type IkasStorefrontConfigParams = {
98
102
  universalAnalyticsId?: string;
99
103
  pickUpStockLocationIds?: string[] | null;
100
104
  tiktokPixelId?: string;
105
+ openAiPixelId?: string;
101
106
  stockPreference?: IkasThemeStockPreference;
102
107
  translations: Record<string, any>;
108
+ themeGlobals: ThemeGlobals;
103
109
  storefrontJSScripts: string[];
104
110
  highPriorityStoreFrontJSScripts: string[];
105
111
  customerReviewSettings?: IkasCustomerReviewSettings | null;