@ikas/storefront 2.0.74-alpha.1 → 3.0.0-alpha.12

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 (1227) hide show
  1. package/build/__api/models/AbandonedCartFlow.d.ts +19 -0
  2. package/build/__api/models/AbandonedCartFlowCustomerFilter.d.ts +10 -0
  3. package/build/__api/models/AddItemToCartInput.d.ts +18 -0
  4. package/build/__api/models/AdditionalPrice.d.ts +13 -0
  5. package/build/__api/models/AdditionalPrice.js +1 -0
  6. package/build/__api/models/ApplicableProductFilterValue.d.ts +13 -0
  7. package/build/__api/models/AppliedProduct.d.ts +10 -0
  8. package/build/__api/models/AppliedProductInput.d.ts +10 -0
  9. package/build/__api/models/AvailableShippingMethod.d.ts +14 -0
  10. package/build/__api/models/AvailableShippingMethod.js +1 -0
  11. package/build/__api/models/Blog.d.ts +28 -0
  12. package/build/__api/models/Blog.js +1 -0
  13. package/build/__api/models/BlogCategory.d.ts +13 -0
  14. package/build/__api/models/BlogCategory.js +1 -0
  15. package/build/__api/models/BlogCategoryPaginationResponse.d.ts +14 -0
  16. package/build/__api/models/BlogContent.d.ts +10 -0
  17. package/build/__api/models/BlogContent.js +1 -0
  18. package/build/__api/models/BlogMetadata.d.ts +15 -0
  19. package/build/__api/models/BlogMetadata.js +1 -0
  20. package/build/__api/models/BlogMetadataPaginationResponse.d.ts +14 -0
  21. package/build/__api/models/BlogMetadataTargetTypeEnumFilter.d.ts +13 -0
  22. package/build/__api/models/BlogPaginationResponse.d.ts +14 -0
  23. package/build/__api/models/BlogTag.d.ts +10 -0
  24. package/build/__api/models/BlogTag.js +1 -0
  25. package/build/__api/models/BlogWriter.d.ts +10 -0
  26. package/build/__api/models/BlogWriter.js +1 -0
  27. package/build/__api/models/BooleanFilterInput.d.ts +9 -0
  28. package/build/__api/models/BuyX.d.ts +12 -0
  29. package/build/__api/models/BuyXThenGetY.d.ts +13 -0
  30. package/build/__api/models/Campaign.d.ts +30 -0
  31. package/build/__api/models/CampaignDateRangeField.d.ts +10 -0
  32. package/build/__api/models/CampaignFilter.d.ts +11 -0
  33. package/build/__api/models/CampaignMinMaxRangeField.d.ts +10 -0
  34. package/build/__api/models/Cart.d.ts +31 -0
  35. package/build/__api/models/CartCampaignOffer.d.ts +17 -0
  36. package/build/__api/models/CartCampaignOfferInput.d.ts +11 -0
  37. package/build/__api/models/CartLineItemInput.d.ts +12 -0
  38. package/build/__api/models/CartLineOptionInput.d.ts +11 -0
  39. package/build/__api/models/CartLineVariantInput.d.ts +10 -0
  40. package/build/__api/models/CartStorefrontRouting.d.ts +15 -0
  41. package/build/__api/models/CartStorefrontRoutingDynamicCurrencySettings.d.ts +10 -0
  42. package/build/__api/models/CartV2.d.ts +68 -0
  43. package/build/__api/models/CartV2CampaignOffer.d.ts +17 -0
  44. package/build/__api/models/CartV2CampaignOffer.js +1 -0
  45. package/build/__api/models/Category.d.ts +27 -0
  46. package/build/__api/models/Category.js +1 -0
  47. package/build/__api/models/CategoryCondition.d.ts +11 -0
  48. package/build/__api/models/CategoryCondition.js +1 -0
  49. package/build/__api/models/CategoryFilterInput.d.ts +10 -0
  50. package/build/__api/models/CategoryPaginationResponse.d.ts +14 -0
  51. package/build/__api/models/CategoryPathFilterInput.d.ts +9 -0
  52. package/build/__api/models/CategoryPathItem.d.ts +17 -0
  53. package/build/__api/models/CategoryPathItem.js +1 -0
  54. package/build/__api/models/CategoryTranslation.d.ts +11 -0
  55. package/build/__api/models/CategoryTranslation.js +1 -0
  56. package/build/__api/models/CheckStocksLineInput.d.ts +11 -0
  57. package/build/__api/models/CheckStocksLineInput.js +1 -0
  58. package/build/__api/models/CheckStocksLineResponse.d.ts +11 -0
  59. package/build/__api/models/CheckStocksResponse.d.ts +10 -0
  60. package/build/__api/models/Checkout.d.ts +44 -0
  61. package/build/__api/models/CheckoutCustomer.d.ts +19 -0
  62. package/build/__api/models/CheckoutCustomerInput.d.ts +13 -0
  63. package/build/__api/models/CheckoutCustomerInput.js +1 -0
  64. package/build/__api/models/CheckoutOption.d.ts +10 -0
  65. package/build/__api/models/CheckoutOption.js +1 -0
  66. package/build/__api/models/CheckoutSettings.d.ts +24 -0
  67. package/build/__api/models/CheckoutSettings.js +1 -0
  68. package/build/__api/models/CheckoutSettingsPrice.d.ts +10 -0
  69. package/build/__api/models/CheckoutSettingsPrice.js +1 -0
  70. package/build/__api/models/City.d.ts +16 -0
  71. package/build/__api/models/City.js +1 -0
  72. package/build/__api/models/Country.d.ts +22 -0
  73. package/build/__api/models/Country.js +1 -0
  74. package/build/__api/models/CreateCustomerEmailSubscriptionInput.d.ts +12 -0
  75. package/build/__api/models/CreateCustomerReviewInput.d.ts +17 -0
  76. package/build/__api/models/CreateSaleTransactionWithCartInput.d.ts +12 -0
  77. package/build/__api/models/CreateSaleTransactionWithCheckoutInput.d.ts +12 -0
  78. package/build/__api/models/CurrencyRate.d.ts +13 -0
  79. package/build/__api/models/CurrencyRateData.d.ts +10 -0
  80. package/build/__api/models/Customer.d.ts +34 -0
  81. package/build/__api/models/CustomerAddress.d.ts +31 -0
  82. package/build/__api/models/CustomerAddressCity.d.ts +11 -0
  83. package/build/__api/models/CustomerAddressCity.js +1 -0
  84. package/build/__api/models/CustomerAddressCityInput.d.ts +11 -0
  85. package/build/__api/models/CustomerAddressCityInput.js +1 -0
  86. package/build/__api/models/CustomerAddressCountry.d.ts +13 -0
  87. package/build/__api/models/CustomerAddressCountry.js +1 -0
  88. package/build/__api/models/CustomerAddressCountryInput.d.ts +13 -0
  89. package/build/__api/models/CustomerAddressCountryInput.js +1 -0
  90. package/build/__api/models/CustomerAddressDistrict.d.ts +11 -0
  91. package/build/__api/models/CustomerAddressDistrict.js +1 -0
  92. package/build/__api/models/CustomerAddressDistrictInput.d.ts +11 -0
  93. package/build/__api/models/CustomerAddressDistrictInput.js +1 -0
  94. package/build/__api/models/CustomerAddressState.d.ts +11 -0
  95. package/build/__api/models/CustomerAddressState.js +1 -0
  96. package/build/__api/models/CustomerAddressStateInput.d.ts +11 -0
  97. package/build/__api/models/CustomerAddressStateInput.js +1 -0
  98. package/build/__api/models/CustomerAttribute.d.ts +19 -0
  99. package/build/__api/models/CustomerAttribute.js +1 -0
  100. package/build/__api/models/CustomerAttributeOption.d.ts +10 -0
  101. package/build/__api/models/CustomerAttributeOption.js +1 -0
  102. package/build/__api/models/CustomerAttributeOptionTranslation.d.ts +10 -0
  103. package/build/__api/models/CustomerAttributeOptionTranslation.js +1 -0
  104. package/build/__api/models/CustomerAttributeSalesChannel.d.ts +13 -0
  105. package/build/__api/models/CustomerAttributeSalesChannel.js +1 -0
  106. package/build/__api/models/CustomerAttributeTranslation.d.ts +13 -0
  107. package/build/__api/models/CustomerAttributeTranslation.js +1 -0
  108. package/build/__api/models/CustomerAttributeValue.d.ts +11 -0
  109. package/build/__api/models/CustomerAttributeValue.js +1 -0
  110. package/build/__api/models/CustomerAttributeValueInput.d.ts +11 -0
  111. package/build/__api/models/CustomerAttributeValueInput.js +1 -0
  112. package/build/__api/models/CustomerCheckResponse.d.ts +9 -0
  113. package/build/__api/models/CustomerFavoriteProduct.d.ts +11 -0
  114. package/build/__api/models/CustomerFavoriteProduct.js +1 -0
  115. package/build/__api/models/CustomerLoginResponse.d.ts +12 -0
  116. package/build/__api/models/CustomerRefreshTokenResponse.d.ts +10 -0
  117. package/build/__api/models/CustomerReview.d.ts +21 -0
  118. package/build/__api/models/CustomerReview.js +1 -0
  119. package/build/__api/models/CustomerReviewSFPaginationResponse.d.ts +14 -0
  120. package/build/__api/models/CustomerReviewSummary.d.ts +14 -0
  121. package/build/__api/models/CustomerReviewSummary.js +1 -0
  122. package/build/__api/models/CustomerReviewSummaryPaginationResponse.d.ts +14 -0
  123. package/build/__api/models/CustomerReviewSummaryStar.d.ts +10 -0
  124. package/build/__api/models/CustomerReviewSummaryStar.js +1 -0
  125. package/build/__api/models/DateFilterInput.d.ts +16 -0
  126. package/build/__api/models/District.d.ts +16 -0
  127. package/build/__api/models/District.js +1 -0
  128. package/build/__api/models/FixedDiscount.d.ts +14 -0
  129. package/build/__api/models/GetAvailableStockLocation.d.ts +14 -0
  130. package/build/__api/models/GetAvailableStockLocationAddress.d.ts +16 -0
  131. package/build/__api/models/GetAvailableStockLocationAddressCity.d.ts +11 -0
  132. package/build/__api/models/GetAvailableStockLocationsResponse.d.ts +10 -0
  133. package/build/__api/models/GetOrderLineFile.d.ts +9 -0
  134. package/build/__api/models/GetProductCampaignsInput.d.ts +11 -0
  135. package/build/__api/models/GetProductCampaignsResponse.d.ts +11 -0
  136. package/build/__api/models/GetVariantStockLocation.d.ts +12 -0
  137. package/build/__api/models/GetVariantStockLocationListResponse.d.ts +10 -0
  138. package/build/__api/models/GetY.d.ts +13 -0
  139. package/build/__api/models/HTMLMetaData.d.ts +20 -0
  140. package/build/__api/models/HTMLMetaData.js +1 -0
  141. package/build/__api/models/HTMLMetaDataOverride.d.ts +13 -0
  142. package/build/__api/models/HTMLMetaDataOverride.js +1 -0
  143. package/build/__api/models/HTMLMetaDataTargetTypeEnumFilter.d.ts +13 -0
  144. package/build/__api/models/HTMLMetaDataTranslation.d.ts +11 -0
  145. package/build/__api/models/HTMLMetaDataTranslation.js +1 -0
  146. package/build/__api/models/Invoice.d.ts +16 -0
  147. package/build/__api/models/Invoice.js +1 -0
  148. package/build/__api/models/ListCustomerReviewInput.d.ts +9 -0
  149. package/build/__api/models/LocationTranslations.d.ts +10 -0
  150. package/build/__api/models/LocationTranslations.js +1 -0
  151. package/build/__api/models/MerchantSettings.d.ts +11 -0
  152. package/build/__api/models/MerchantSettings.js +1 -0
  153. package/build/__api/models/OrderAddress.d.ts +28 -0
  154. package/build/__api/models/OrderAddressCity.d.ts +11 -0
  155. package/build/__api/models/OrderAddressCity.js +1 -0
  156. package/build/__api/models/OrderAddressCityInput.d.ts +11 -0
  157. package/build/__api/models/OrderAddressCityInput.js +1 -0
  158. package/build/__api/models/OrderAddressCountry.d.ts +13 -0
  159. package/build/__api/models/OrderAddressCountry.js +1 -0
  160. package/build/__api/models/OrderAddressCountryInput.d.ts +13 -0
  161. package/build/__api/models/OrderAddressCountryInput.js +1 -0
  162. package/build/__api/models/OrderAddressDistrict.d.ts +11 -0
  163. package/build/__api/models/OrderAddressDistrict.js +1 -0
  164. package/build/__api/models/OrderAddressDistrictInput.d.ts +11 -0
  165. package/build/__api/models/OrderAddressDistrictInput.js +1 -0
  166. package/build/__api/models/OrderAddressInput.d.ts +28 -0
  167. package/build/__api/models/OrderAddressInput.js +1 -0
  168. package/build/__api/models/OrderAddressState.d.ts +11 -0
  169. package/build/__api/models/OrderAddressState.js +1 -0
  170. package/build/__api/models/OrderAddressStateInput.d.ts +11 -0
  171. package/build/__api/models/OrderAddressStateInput.js +1 -0
  172. package/build/__api/models/OrderAdjustment.d.ts +19 -0
  173. package/build/__api/models/OrderAdjustment.js +1 -0
  174. package/build/__api/models/OrderAdjustmentAppliedOrderLine.d.ts +12 -0
  175. package/build/__api/models/OrderAdjustmentAppliedOrderLine.js +1 -0
  176. package/build/__api/models/OrderAdjustmentInput.d.ts +16 -0
  177. package/build/__api/models/OrderAdjustmentInput.js +1 -0
  178. package/build/__api/models/OrderCurrencyRate.d.ts +11 -0
  179. package/build/__api/models/OrderCustomer.d.ts +15 -0
  180. package/build/__api/models/OrderGiftPackageLine.d.ts +10 -0
  181. package/build/__api/models/OrderGiftPackageLine.js +1 -0
  182. package/build/__api/models/OrderLineDiscount.d.ts +15 -0
  183. package/build/__api/models/OrderLineDiscount.js +1 -0
  184. package/build/__api/models/OrderLineItem.d.ts +26 -0
  185. package/build/__api/models/OrderLineItem.js +1 -0
  186. package/build/__api/models/OrderLineOption.d.ts +15 -0
  187. package/build/__api/models/OrderLineOption.js +1 -0
  188. package/build/__api/models/OrderLineOptionValue.d.ts +11 -0
  189. package/build/__api/models/OrderLineOptionValue.js +1 -0
  190. package/build/__api/models/OrderLineVariant.d.ts +27 -0
  191. package/build/__api/models/OrderLineVariant.js +1 -0
  192. package/build/__api/models/OrderLineVariantBrand.d.ts +10 -0
  193. package/build/__api/models/OrderLineVariantBrand.js +1 -0
  194. package/build/__api/models/OrderLineVariantCategory.d.ts +12 -0
  195. package/build/__api/models/OrderLineVariantCategory.js +1 -0
  196. package/build/__api/models/OrderLineVariantCategoryPath.d.ts +10 -0
  197. package/build/__api/models/OrderLineVariantCategoryPath.js +1 -0
  198. package/build/__api/models/OrderLineVariantPrice.d.ts +13 -0
  199. package/build/__api/models/OrderLineVariantPrice.js +1 -0
  200. package/build/__api/models/OrderLineVariantVariantValues.d.ts +13 -0
  201. package/build/__api/models/OrderLineVariantVariantValues.js +1 -0
  202. package/build/__api/models/OrderPackage.d.ts +18 -0
  203. package/build/__api/models/OrderPackage.js +1 -0
  204. package/build/__api/models/OrderPaymentMethod.d.ts +13 -0
  205. package/build/__api/models/OrderPaymentMethod.js +1 -0
  206. package/build/__api/models/OrderRefundOrderLineInput.d.ts +10 -0
  207. package/build/__api/models/OrderRefundOrderLineInput.js +1 -0
  208. package/build/__api/models/OrderRefundRequestInput.d.ts +12 -0
  209. package/build/__api/models/OrderRefundSettings.d.ts +14 -0
  210. package/build/__api/models/OrderShippingLine.d.ts +16 -0
  211. package/build/__api/models/OrderShippingLine.js +1 -0
  212. package/build/__api/models/OrderStorefrontRouting.d.ts +15 -0
  213. package/build/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.d.ts +10 -0
  214. package/build/__api/models/OrderTaxLine.d.ts +10 -0
  215. package/build/__api/models/OrderTaxLine.js +1 -0
  216. package/build/__api/models/PaginationInput.d.ts +10 -0
  217. package/build/__api/models/PaymentGateway.d.ts +26 -0
  218. package/build/__api/models/PaymentGateway.js +1 -0
  219. package/build/__api/models/PaymentGatewayPaymentMethod.d.ts +10 -0
  220. package/build/__api/models/PaymentGatewayPaymentMethod.js +1 -0
  221. package/build/__api/models/PaymentGatewayTranslation.d.ts +11 -0
  222. package/build/__api/models/PaymentGatewayTranslation.js +1 -0
  223. package/build/__api/models/PaymentMethodDetailInput.d.ts +15 -0
  224. package/build/__api/models/Product.d.ts +33 -0
  225. package/build/__api/models/ProductAttribute.d.ts +19 -0
  226. package/build/__api/models/ProductAttributeOption.d.ts +10 -0
  227. package/build/__api/models/ProductAttributeOptionTranslation.d.ts +10 -0
  228. package/build/__api/models/ProductAttributeTableCellData.d.ts +10 -0
  229. package/build/__api/models/ProductAttributeTableTemplate.d.ts +11 -0
  230. package/build/__api/models/ProductAttributeTranslation.d.ts +13 -0
  231. package/build/__api/models/ProductAttributeValue.d.ts +12 -0
  232. package/build/__api/models/ProductAttributeValue.js +1 -0
  233. package/build/__api/models/ProductBackInStockRemind.d.ts +14 -0
  234. package/build/__api/models/ProductBackInStockRemindInput.d.ts +11 -0
  235. package/build/__api/models/ProductBrand.d.ts +19 -0
  236. package/build/__api/models/ProductBrand.js +1 -0
  237. package/build/__api/models/ProductBrandPaginationResponse.d.ts +14 -0
  238. package/build/__api/models/ProductBrandTranslation.d.ts +11 -0
  239. package/build/__api/models/ProductBrandTranslation.js +1 -0
  240. package/build/__api/models/ProductFacetCount.d.ts +11 -0
  241. package/build/__api/models/ProductFacetCountValue.d.ts +10 -0
  242. package/build/__api/models/ProductFilterData.d.ts +12 -0
  243. package/build/__api/models/ProductFilterDataFilter.d.ts +24 -0
  244. package/build/__api/models/ProductFilterSettings.d.ts +14 -0
  245. package/build/__api/models/ProductImage.d.ts +12 -0
  246. package/build/__api/models/ProductItem.d.ts +11 -0
  247. package/build/__api/models/ProductItemInput.d.ts +11 -0
  248. package/build/__api/models/ProductLastViewed.d.ts +12 -0
  249. package/build/__api/models/ProductLastViewedInput.d.ts +12 -0
  250. package/build/__api/models/ProductOption.d.ts +28 -0
  251. package/build/__api/models/ProductOptionDateSettings.d.ts +12 -0
  252. package/build/__api/models/ProductOptionFileSettings.d.ts +11 -0
  253. package/build/__api/models/ProductOptionSelectSettings.d.ts +14 -0
  254. package/build/__api/models/ProductOptionSelectValue.d.ts +16 -0
  255. package/build/__api/models/ProductOptionSelectValueOtherPrice.d.ts +10 -0
  256. package/build/__api/models/ProductOptionSelectValueTranslations.d.ts +10 -0
  257. package/build/__api/models/ProductOptionSet.d.ts +14 -0
  258. package/build/__api/models/ProductOptionSetTranslations.d.ts +11 -0
  259. package/build/__api/models/ProductOptionTextSettings.d.ts +10 -0
  260. package/build/__api/models/ProductOptionTranslations.d.ts +13 -0
  261. package/build/__api/models/ProductPaginationResponse.d.ts +14 -0
  262. package/build/__api/models/ProductPrice.d.ts +13 -0
  263. package/build/__api/models/ProductPrice.js +1 -0
  264. package/build/__api/models/ProductSearchResponse.d.ts +17 -0
  265. package/build/__api/models/ProductStockLocation.d.ts +13 -0
  266. package/build/__api/models/ProductTagTranslation.d.ts +11 -0
  267. package/build/__api/models/ProductTranslation.d.ts +11 -0
  268. package/build/__api/models/ProductVariantType.d.ts +11 -0
  269. package/build/__api/models/Raffle.d.ts +23 -0
  270. package/build/__api/models/RaffleDateRangeField.d.ts +10 -0
  271. package/build/__api/models/RaffleMetadata.d.ts +15 -0
  272. package/build/__api/models/RaffleMetadataTargetTypeEnumFilter.d.ts +13 -0
  273. package/build/__api/models/RafflePaginationResponse.d.ts +14 -0
  274. package/build/__api/models/RaffleParticipants.d.ts +23 -0
  275. package/build/__api/models/RaffleParticipantsInput.d.ts +17 -0
  276. package/build/__api/models/RaffleParticipantsUpdateInput.d.ts +13 -0
  277. package/build/__api/models/RaffleVariantInformation.d.ts +10 -0
  278. package/build/__api/models/RetrieveInstallmentInfoInput.d.ts +11 -0
  279. package/build/__api/models/RetrieveInstallmentInfoResponse.d.ts +17 -0
  280. package/build/__api/models/SaveCartInput.d.ts +26 -0
  281. package/build/__api/models/SaveCartInput.js +1 -0
  282. package/build/__api/models/SaveCheckoutInput.d.ts +26 -0
  283. package/build/__api/models/SaveItemToCartInput.d.ts +21 -0
  284. package/build/__api/models/SaveMyCustomerAddressInput.d.ts +29 -0
  285. package/build/__api/models/SaveMyCustomerAddressInput.js +1 -0
  286. package/build/__api/models/SaveMyCustomerInput.d.ts +17 -0
  287. package/build/__api/models/SaveMyCustomerInput.js +1 -0
  288. package/build/__api/models/SearchCategory.d.ts +15 -0
  289. package/build/__api/models/SearchCategoryPath.d.ts +13 -0
  290. package/build/__api/models/SearchDynamicCurrencySettings.d.ts +10 -0
  291. package/build/__api/models/SearchHTMLMetaData.d.ts +16 -0
  292. package/build/__api/models/SearchHTMLMetaDataOverride.d.ts +13 -0
  293. package/build/__api/models/SearchInput.d.ts +32 -0
  294. package/build/__api/models/SearchInputFacetListInput.d.ts +12 -0
  295. package/build/__api/models/SearchInputFilterListInput.d.ts +14 -0
  296. package/build/__api/models/SearchInputFilterListInput.js +1 -0
  297. package/build/__api/models/SearchInputOrderByInput.d.ts +11 -0
  298. package/build/__api/models/SearchProduct.d.ts +34 -0
  299. package/build/__api/models/SearchProductAttribute.d.ts +15 -0
  300. package/build/__api/models/SearchProductAttributeOption.d.ts +10 -0
  301. package/build/__api/models/SearchProductAttributeTableCellData.d.ts +10 -0
  302. package/build/__api/models/SearchProductAttributeTableTemplate.d.ts +11 -0
  303. package/build/__api/models/SearchProductAttributeValue.d.ts +14 -0
  304. package/build/__api/models/SearchProductBrand.d.ts +13 -0
  305. package/build/__api/models/SearchProductImage.d.ts +12 -0
  306. package/build/__api/models/SearchProductPrice.d.ts +13 -0
  307. package/build/__api/models/SearchProductStockLocation.d.ts +10 -0
  308. package/build/__api/models/SearchProductTag.d.ts +12 -0
  309. package/build/__api/models/SearchProductVariantType.d.ts +12 -0
  310. package/build/__api/models/SearchVariant.d.ts +25 -0
  311. package/build/__api/models/SearchVariantType.d.ts +15 -0
  312. package/build/__api/models/SearchVariantValue.d.ts +12 -0
  313. package/build/__api/models/SearchVariationValueRelation.d.ts +10 -0
  314. package/build/__api/models/SocialLoginSettings.d.ts +12 -0
  315. package/build/__api/models/State.d.ts +12 -0
  316. package/build/__api/models/State.js +1 -0
  317. package/build/__api/models/StockLocation.d.ts +18 -0
  318. package/build/__api/models/StockLocation.js +1 -0
  319. package/build/__api/models/StockLocationAddress.d.ts +19 -0
  320. package/build/__api/models/StockLocationAddress.js +1 -0
  321. package/build/__api/models/StockLocationAddressCity.d.ts +11 -0
  322. package/build/__api/models/StockLocationAddressCity.js +1 -0
  323. package/build/__api/models/StockLocationAddressCountry.d.ts +11 -0
  324. package/build/__api/models/StockLocationAddressCountry.js +1 -0
  325. package/build/__api/models/StockLocationAddressDistrict.d.ts +11 -0
  326. package/build/__api/models/StockLocationAddressDistrict.js +1 -0
  327. package/build/__api/models/StockLocationAddressState.d.ts +11 -0
  328. package/build/__api/models/StockLocationAddressState.js +1 -0
  329. package/build/__api/models/Storefront.d.ts +30 -0
  330. package/build/__api/models/StorefrontDomain.d.ts +13 -0
  331. package/build/__api/models/StorefrontDynamicCurrencySettings.d.ts +10 -0
  332. package/build/__api/models/StorefrontLocalization.d.ts +12 -0
  333. package/build/__api/models/StorefrontOrder.d.ts +50 -0
  334. package/build/__api/models/StorefrontRouting.d.ts +16 -0
  335. package/build/__api/models/StorefrontTheme.d.ts +15 -0
  336. package/build/__api/models/StorefrontTransaction.d.ts +27 -0
  337. package/build/__api/models/StringFilterInput.d.ts +13 -0
  338. package/build/__api/models/Town.d.ts +12 -0
  339. package/build/__api/models/TrackingInfo.d.ts +13 -0
  340. package/build/__api/models/TrackingInfo.js +1 -0
  341. package/build/__api/models/TransactionError.d.ts +11 -0
  342. package/build/__api/models/TransactionError.js +1 -0
  343. package/build/__api/models/TransactionInstallmentPrice.d.ts +13 -0
  344. package/build/__api/models/TransactionInstallmentPrice.js +1 -0
  345. package/build/__api/models/TransactionPaymentMethodDetail.d.ts +18 -0
  346. package/build/__api/models/TransactionPaymentMethodDetail.js +1 -0
  347. package/build/__api/models/TransactionResponse.d.ts +16 -0
  348. package/build/__api/models/Variant.d.ts +25 -0
  349. package/build/__api/models/VariantStock.d.ts +10 -0
  350. package/build/__api/models/VariantType.d.ts +16 -0
  351. package/build/__api/models/VariantTypeTranslation.d.ts +12 -0
  352. package/build/__api/models/VariantValue.d.ts +12 -0
  353. package/build/__api/models/VariantValueRelation.d.ts +10 -0
  354. package/build/__api/models/VariantValueTranslation.d.ts +10 -0
  355. package/build/__api/models/_base.d.ts +18 -0
  356. package/build/__api/models/_base.js +1 -0
  357. package/build/__api/mutations/activateCustomer.d.ts +6 -0
  358. package/build/__api/mutations/addCouponCodeToCheckout.d.ts +217 -0
  359. package/build/__api/mutations/addItemToCart.d.ts +215 -0
  360. package/build/__api/mutations/addItemToCart.js +1 -0
  361. package/build/__api/mutations/createCustomerEmailSubscription.d.ts +69 -0
  362. package/build/__api/mutations/createCustomerEmailSubscription.js +1 -0
  363. package/build/__api/mutations/createCustomerReview.d.ts +24 -0
  364. package/build/__api/mutations/createCustomerReview.js +1 -0
  365. package/build/__api/mutations/createOrderRefundRequest.d.ts +195 -0
  366. package/build/__api/mutations/createOrderRefundRequest.js +1 -0
  367. package/build/__api/mutations/createSaleTransactionWithCart.d.ts +17 -0
  368. package/build/__api/mutations/createSaleTransactionWithCart.js +1 -0
  369. package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +17 -0
  370. package/build/__api/mutations/customerForgotPassword.d.ts +7 -0
  371. package/build/__api/mutations/customerForgotPassword.js +1 -0
  372. package/build/__api/mutations/customerLogin.d.ts +72 -0
  373. package/build/__api/mutations/customerLogin.js +1 -0
  374. package/build/__api/mutations/customerRecoverPassword.d.ts +8 -0
  375. package/build/__api/mutations/customerRecoverPassword.js +1 -0
  376. package/build/__api/mutations/customerRefreshToken.d.ts +11 -0
  377. package/build/__api/mutations/customerRefreshToken.js +1 -0
  378. package/build/__api/mutations/deleteRaffleParticipantsList.d.ts +6 -0
  379. package/build/__api/mutations/getOrderLineFile.d.ts +7 -0
  380. package/build/__api/mutations/getOrderLineFile.js +1 -0
  381. package/build/__api/mutations/registerCustomer.d.ts +77 -0
  382. package/build/__api/mutations/registerCustomer.js +1 -0
  383. package/build/__api/mutations/retrieveInstallmentInfo.d.ts +20 -0
  384. package/build/__api/mutations/retrieveInstallmentInfo.js +1 -0
  385. package/build/__api/mutations/saveCart.d.ts +215 -0
  386. package/build/__api/mutations/saveCart.js +1 -0
  387. package/build/__api/mutations/saveCartCouponCode.d.ts +216 -0
  388. package/build/__api/mutations/saveCartCouponCode.js +1 -0
  389. package/build/__api/mutations/saveCheckout.d.ts +216 -0
  390. package/build/__api/mutations/saveFavoriteProduct.d.ts +7 -0
  391. package/build/__api/mutations/saveFavoriteProduct.js +1 -0
  392. package/build/__api/mutations/saveItemToCart.d.ts +97 -0
  393. package/build/__api/mutations/saveLastViewedProducts.d.ts +20 -0
  394. package/build/__api/mutations/saveLastViewedProducts.js +1 -0
  395. package/build/__api/mutations/saveMyCustomer.d.ts +69 -0
  396. package/build/__api/mutations/saveMyCustomer.js +1 -0
  397. package/build/__api/mutations/saveProductBackInStockRemind.d.ts +18 -0
  398. package/build/__api/mutations/saveProductBackInStockRemind.js +1 -0
  399. package/build/__api/mutations/saveRaffleParticipant.d.ts +27 -0
  400. package/build/__api/mutations/saveRaffleParticipant.js +1 -0
  401. package/build/__api/mutations/sendContactFormToMerchant.d.ts +11 -0
  402. package/build/__api/mutations/sendContactFormToMerchant.js +1 -0
  403. package/build/__api/mutations/updateRaffleParticipant.d.ts +28 -0
  404. package/build/__api/queries/checkCustomerEmail.d.ts +11 -0
  405. package/build/__api/queries/checkCustomerEmail.js +1 -0
  406. package/build/__api/queries/checkStocks.d.ts +13 -0
  407. package/build/__api/queries/checkStocks.js +1 -0
  408. package/build/__api/queries/customerSocialLogin.d.ts +71 -0
  409. package/build/__api/queries/customerSocialLogin.js +1 -0
  410. package/build/__api/queries/getAvailableShippingCountries.d.ts +6 -0
  411. package/build/__api/queries/getAvailableShippingCountries.js +1 -0
  412. package/build/__api/queries/getAvailableStockLocations.d.ts +28 -0
  413. package/build/__api/queries/getCart.d.ts +99 -0
  414. package/build/__api/queries/getCartById.d.ts +216 -0
  415. package/build/__api/queries/getCartById.js +1 -0
  416. package/build/__api/queries/getCheckoutByCartId.d.ts +216 -0
  417. package/build/__api/queries/getCheckoutById.d.ts +216 -0
  418. package/build/__api/queries/getCurrencyRate.d.ts +17 -0
  419. package/build/__api/queries/getCustomerOrders.d.ts +195 -0
  420. package/build/__api/queries/getCustomerOrders.js +1 -0
  421. package/build/__api/queries/getLastViewedProducts.d.ts +20 -0
  422. package/build/__api/queries/getLastViewedProducts.js +1 -0
  423. package/build/__api/queries/getMyCountry.d.ts +3 -0
  424. package/build/__api/queries/getMyCountry.js +1 -0
  425. package/build/__api/queries/getMyCustomer.d.ts +66 -0
  426. package/build/__api/queries/getMyCustomer.js +1 -0
  427. package/build/__api/queries/getOrder.d.ts +195 -0
  428. package/build/__api/queries/getOrderByEmail.d.ts +196 -0
  429. package/build/__api/queries/getOrderByEmail.js +1 -0
  430. package/build/__api/queries/getProductCampaigns.d.ts +47 -0
  431. package/build/__api/queries/getProductCampaigns.js +1 -0
  432. package/build/__api/queries/getProductFilterData.d.ts +159 -0
  433. package/build/__api/queries/getProductFilterData.js +1 -0
  434. package/build/__api/queries/getRaffleParticipants.d.ts +24 -0
  435. package/build/__api/queries/getRafflesByCustomerId.d.ts +33 -0
  436. package/build/__api/queries/getRafflesByCustomerId.js +1 -0
  437. package/build/__api/queries/getRelatedProducts.d.ts +14 -0
  438. package/build/__api/queries/getRelatedProducts.js +1 -0
  439. package/build/__api/queries/getStorefront.d.ts +61 -0
  440. package/build/__api/queries/getStorefront.js +1 -0
  441. package/build/__api/queries/getVariantStockLocations.d.ts +30 -0
  442. package/build/__api/queries/isFavoriteProduct.d.ts +6 -0
  443. package/build/__api/queries/isFavoriteProduct.js +1 -0
  444. package/build/__api/queries/listBlog.d.ts +70 -0
  445. package/build/__api/queries/listBlog.js +1 -0
  446. package/build/__api/queries/listBlogCategory.d.ts +33 -0
  447. package/build/__api/queries/listBlogCategory.js +1 -0
  448. package/build/__api/queries/listBlogMetadata.d.ts +28 -0
  449. package/build/__api/queries/listBlogMetadata.js +1 -0
  450. package/build/__api/queries/listCategory.d.ts +85 -0
  451. package/build/__api/queries/listCategory.js +1 -0
  452. package/build/__api/queries/listCheckoutSettings.d.ts +29 -0
  453. package/build/__api/queries/listCheckoutSettings.js +1 -0
  454. package/build/__api/queries/listCity.d.ts +25 -0
  455. package/build/__api/queries/listCity.js +1 -0
  456. package/build/__api/queries/listCountry.d.ts +31 -0
  457. package/build/__api/queries/listCountry.js +1 -0
  458. package/build/__api/queries/listCustomerAttribute.d.ts +27 -0
  459. package/build/__api/queries/listCustomerAttribute.js +1 -0
  460. package/build/__api/queries/listCustomerReviewSummary.d.ts +23 -0
  461. package/build/__api/queries/listCustomerReviewSummary.js +1 -0
  462. package/build/__api/queries/listCustomerReviews.d.ts +32 -0
  463. package/build/__api/queries/listCustomerReviews.js +1 -0
  464. package/build/__api/queries/listDistrict.d.ts +26 -0
  465. package/build/__api/queries/listDistrict.js +1 -0
  466. package/build/__api/queries/listFavoriteProducts.d.ts +12 -0
  467. package/build/__api/queries/listFavoriteProducts.js +1 -0
  468. package/build/__api/queries/listHTMLMetaData.d.ts +32 -0
  469. package/build/__api/queries/listHTMLMetaData.js +1 -0
  470. package/build/__api/queries/listMerchantSettings.d.ts +16 -0
  471. package/build/__api/queries/listMerchantSettings.js +1 -0
  472. package/build/__api/queries/listOrderRefundSettings.d.ts +21 -0
  473. package/build/__api/queries/listOrderRefundSettings.js +1 -0
  474. package/build/__api/queries/listOrderTransactions.d.ts +43 -0
  475. package/build/__api/queries/listOrderTransactions.js +1 -0
  476. package/build/__api/queries/listPaymentGateway.d.ts +35 -0
  477. package/build/__api/queries/listPaymentGateway.js +1 -0
  478. package/build/__api/queries/listProduct.d.ts +92 -0
  479. package/build/__api/queries/listProductAttribute.d.ts +33 -0
  480. package/build/__api/queries/listProductAttribute.js +1 -0
  481. package/build/__api/queries/listProductBackInStockRemind.d.ts +23 -0
  482. package/build/__api/queries/listProductBackInStockRemind.js +1 -0
  483. package/build/__api/queries/listProductBrand.d.ts +49 -0
  484. package/build/__api/queries/listProductBrand.js +1 -0
  485. package/build/__api/queries/listProductOptionSet.d.ts +59 -0
  486. package/build/__api/queries/listProductOptionSet.js +1 -0
  487. package/build/__api/queries/listProductStockLocation.d.ts +18 -0
  488. package/build/__api/queries/listRaffle.d.ts +45 -0
  489. package/build/__api/queries/listRaffle.js +1 -0
  490. package/build/__api/queries/listRaffleMetadata.d.ts +24 -0
  491. package/build/__api/queries/listRaffleMetadata.js +1 -0
  492. package/build/__api/queries/listState.d.ts +20 -0
  493. package/build/__api/queries/listState.js +1 -0
  494. package/build/__api/queries/listStockLocation.d.ts +35 -0
  495. package/build/__api/queries/listStockLocation.js +1 -0
  496. package/build/__api/queries/listTown.d.ts +20 -0
  497. package/build/__api/queries/listVariantType.d.ts +29 -0
  498. package/build/__api/queries/searchProducts.d.ts +130 -0
  499. package/build/__api/queries/searchProducts.js +1 -0
  500. package/build/__api/types/index.d.ts +2524 -0
  501. package/build/__api/types/index.js +1 -0
  502. package/build/_virtual/Axios.js_commonjs-proxy2.js +1 -0
  503. package/build/_virtual/Cancel.js_commonjs-proxy.js +1 -0
  504. package/build/_virtual/CancelToken.js_commonjs-proxy.js +1 -0
  505. package/build/_virtual/InterceptorManager.js_commonjs-proxy.js +1 -0
  506. package/build/_virtual/_commonjsHelpers.js +1 -1
  507. package/build/_virtual/axios.js_commonjs-proxy.js +1 -0
  508. package/build/_virtual/bind.js_commonjs-proxy.js +1 -0
  509. package/build/_virtual/browser.js_commonjs-proxy.js +1 -0
  510. package/build/_virtual/buildFullPath.js_commonjs-proxy.js +1 -0
  511. package/build/_virtual/buildURL.js_commonjs-proxy.js +1 -0
  512. package/build/_virtual/combineURLs.js_commonjs-proxy.js +1 -0
  513. package/build/_virtual/common.js_commonjs-proxy.js +1 -0
  514. package/build/_virtual/cookies.js_commonjs-proxy.js +1 -0
  515. package/build/_virtual/createError.js_commonjs-proxy.js +1 -0
  516. package/build/_virtual/debug.js_commonjs-proxy.js +1 -0
  517. package/build/_virtual/defaults.js_commonjs-proxy.js +1 -0
  518. package/build/_virtual/dispatchRequest.js_commonjs-proxy.js +1 -0
  519. package/build/_virtual/enhanceError.js_commonjs-proxy.js +1 -0
  520. package/build/_virtual/http.js_commonjs-proxy.js +1 -0
  521. package/build/_virtual/index.js_commonjs-proxy12.js +1 -1
  522. package/build/_virtual/index.js_commonjs-proxy13.js +1 -1
  523. package/build/_virtual/index.js_commonjs-proxy14.js +1 -0
  524. package/build/_virtual/index.js_commonjs-proxy15.js +1 -0
  525. package/build/_virtual/index.js_commonjs-proxy16.js +1 -0
  526. package/build/_virtual/index.js_commonjs-proxy17.js +1 -0
  527. package/build/_virtual/index.js_commonjs-proxy18.js +1 -0
  528. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  529. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  530. package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
  531. package/build/_virtual/isAbsoluteURL.js_commonjs-proxy.js +1 -0
  532. package/build/_virtual/isAxiosError.js_commonjs-proxy.js +1 -0
  533. package/build/_virtual/isCancel.js_commonjs-proxy.js +1 -0
  534. package/build/_virtual/isURLSameOrigin.js_commonjs-proxy.js +1 -0
  535. package/build/_virtual/mergeConfig.js_commonjs-proxy.js +1 -0
  536. package/build/_virtual/node.js_commonjs-proxy3.js +1 -0
  537. package/build/_virtual/normalizeHeaderName.js_commonjs-proxy.js +1 -0
  538. package/build/_virtual/parseHeaders.js_commonjs-proxy.js +1 -0
  539. package/build/_virtual/settle.js_commonjs-proxy.js +1 -0
  540. package/build/_virtual/spread.js_commonjs-proxy.js +1 -0
  541. package/build/_virtual/transformData.js_commonjs-proxy.js +1 -0
  542. package/build/_virtual/utils.js_commonjs-proxy.js +1 -0
  543. package/build/_virtual/validator.js_commonjs-proxy.js +1 -0
  544. package/build/_virtual/xhr.js_commonjs-proxy.js +1 -0
  545. package/build/analytics/analytics.d.ts +6 -6
  546. package/build/analytics/analytics.js +1 -1
  547. package/build/analytics/events.d.ts +1 -2
  548. package/build/analytics/events.js +1 -1
  549. package/build/analytics/facebookPixel.d.ts +2 -1
  550. package/build/analytics/facebookPixel.js +1 -1
  551. package/build/analytics/googleAnalytics.d.ts +2 -1
  552. package/build/analytics/googleAnalytics.js +1 -1
  553. package/build/analytics/googleTagManager.d.ts +16 -15
  554. package/build/analytics/googleTagManager.js +1 -1
  555. package/build/analytics/googleUniversal.d.ts +2 -2
  556. package/build/analytics/googleUniversal.js +1 -1
  557. package/build/analytics/head/index.js +1 -1
  558. package/build/analytics/ikas.d.ts +2 -1
  559. package/build/analytics/ikas.js +1 -1
  560. package/build/assets/translations/checkout/en.js +1 -1
  561. package/build/assets/translations/checkout/tr.js +1 -1
  562. package/build/components/checkout/components/address-form/index.js +1 -1
  563. package/build/components/checkout/components/address-form/model.d.ts +10 -58
  564. package/build/components/checkout/components/address-form/model.js +1 -1
  565. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  566. package/build/components/checkout/components/cart-summary/index.js +1 -1
  567. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  568. package/build/components/checkout/components/credit-card-form/index.js +1 -1
  569. package/build/components/checkout/components/customer-addresses/index.d.ts +4 -0
  570. package/build/components/checkout/components/customer-addresses/index.js +1 -1
  571. package/build/components/checkout/components/customer-addresses/model.d.ts +1 -1
  572. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  573. package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -1
  574. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
  575. package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
  576. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
  577. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
  578. package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
  579. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
  580. package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
  581. package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
  582. package/build/components/checkout/components/delivery-methods/index.js +1 -0
  583. package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
  584. package/build/components/checkout/components/error/stock-error/index.js +1 -1
  585. package/build/components/checkout/components/form-item/model.js +1 -1
  586. package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
  587. package/build/components/checkout/index.d.ts +2 -2
  588. package/build/components/checkout/index.js +1 -1
  589. package/build/components/checkout/model.d.ts +20 -11
  590. package/build/components/checkout/model.js +1 -1
  591. package/build/components/checkout/steps/step-info/index.js +1 -1
  592. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
  593. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  594. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
  595. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  596. package/build/components/checkout/steps/step-success/index.js +1 -1
  597. package/build/components/checkout/style.module.scss.js +1 -1
  598. package/build/components/image/index.d.ts +3 -29
  599. package/build/components/page/head.d.ts +0 -2
  600. package/build/components/page/head.js +1 -1
  601. package/build/components/page/index.d.ts +0 -2
  602. package/build/components/page/index.js +1 -1
  603. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  604. package/build/components/page-editor/model.js +1 -1
  605. package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +1 -0
  606. package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js_commonjs-exports.js +1 -0
  607. package/build/ext/@ikas/fe-api-client/build/_virtual/core.js_commonjs-exports.js +1 -0
  608. package/build/ext/@ikas/fe-api-client/build/_virtual/index.js_commonjs-exports.js +1 -0
  609. package/build/ext/@ikas/fe-api-client/build/config/index.js +1 -0
  610. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +1 -0
  611. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +1 -0
  612. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +1 -0
  613. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +1 -0
  614. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +1 -0
  615. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +1 -0
  616. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +1 -0
  617. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +1 -0
  618. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +1 -0
  619. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_arrayMap.js +1 -0
  620. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assignValue.js +1 -0
  621. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +1 -0
  622. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseAssignValue.js +1 -0
  623. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +1 -0
  624. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +1 -0
  625. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseSet.js +1 -0
  626. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +1 -0
  627. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_castPath.js +1 -0
  628. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +1 -0
  629. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +1 -0
  630. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +1 -0
  631. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +1 -0
  632. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +1 -0
  633. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +1 -0
  634. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +1 -0
  635. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +1 -0
  636. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +1 -0
  637. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +1 -0
  638. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +1 -0
  639. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +1 -0
  640. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isIndex.js +1 -0
  641. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKey.js +1 -0
  642. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +1 -0
  643. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +1 -0
  644. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +1 -0
  645. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +1 -0
  646. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +1 -0
  647. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +1 -0
  648. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +1 -0
  649. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +1 -0
  650. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +1 -0
  651. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +1 -0
  652. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +1 -0
  653. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +1 -0
  654. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +1 -0
  655. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +1 -0
  656. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +1 -0
  657. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +1 -0
  658. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +1 -0
  659. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toKey.js +1 -0
  660. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +1 -0
  661. package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +1 -0
  662. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isArray.js +1 -0
  663. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +1 -0
  664. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +1 -0
  665. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObjectLike.js +1 -0
  666. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isSymbol.js +1 -0
  667. package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +1 -0
  668. package/build/ext/@ikas/fe-api-client/build/ext/lodash/set.js +1 -0
  669. package/build/ext/@ikas/fe-api-client/build/ext/lodash/toString.js +1 -0
  670. package/build/ext/@ikas/fe-api-client/build/ext/tslib/tslib.es6.js +15 -0
  671. package/build/ext/@ikas/fe-api-client/build/helpers/generate-return-fields.js +1 -0
  672. package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -0
  673. package/build/ext/@ikas/fe-api-client/build/utils/fetch-query.js +1 -0
  674. package/build/ext/axios/index.js +1 -0
  675. package/build/ext/axios/lib/adapters/http.js +1 -0
  676. package/build/ext/axios/lib/adapters/xhr.js +1 -0
  677. package/build/ext/axios/lib/axios.js +1 -0
  678. package/build/ext/axios/lib/cancel/Cancel.js +1 -0
  679. package/build/ext/axios/lib/cancel/CancelToken.js +1 -0
  680. package/build/ext/axios/lib/cancel/isCancel.js +1 -0
  681. package/build/ext/axios/lib/core/Axios.js +1 -0
  682. package/build/ext/axios/lib/core/InterceptorManager.js +1 -0
  683. package/build/ext/axios/lib/core/buildFullPath.js +1 -0
  684. package/build/ext/axios/lib/core/createError.js +1 -0
  685. package/build/ext/axios/lib/core/dispatchRequest.js +1 -0
  686. package/build/ext/axios/lib/core/enhanceError.js +1 -0
  687. package/build/ext/axios/lib/core/mergeConfig.js +1 -0
  688. package/build/ext/axios/lib/core/settle.js +1 -0
  689. package/build/ext/axios/lib/core/transformData.js +1 -0
  690. package/build/ext/axios/lib/defaults.js +1 -0
  691. package/build/ext/axios/lib/helpers/bind.js +1 -0
  692. package/build/ext/axios/lib/helpers/buildURL.js +1 -0
  693. package/build/ext/axios/lib/helpers/combineURLs.js +1 -0
  694. package/build/ext/axios/lib/helpers/cookies.js +1 -0
  695. package/build/ext/axios/lib/helpers/isAbsoluteURL.js +1 -0
  696. package/build/ext/axios/lib/helpers/isAxiosError.js +1 -0
  697. package/build/ext/axios/lib/helpers/isURLSameOrigin.js +1 -0
  698. package/build/ext/axios/lib/helpers/normalizeHeaderName.js +1 -0
  699. package/build/ext/axios/lib/helpers/parseHeaders.js +1 -0
  700. package/build/ext/axios/lib/helpers/spread.js +1 -0
  701. package/build/ext/axios/lib/helpers/validator.js +1 -0
  702. package/build/ext/axios/lib/utils.js +1 -0
  703. package/build/ext/axios/package.json.js +1 -0
  704. package/build/ext/debug/src/browser.js +1 -0
  705. package/build/ext/debug/src/common.js +1 -0
  706. package/build/ext/debug/src/index.js +1 -0
  707. package/build/ext/debug/src/node.js +1 -0
  708. package/build/ext/follow-redirects/debug.js +1 -0
  709. package/build/ext/follow-redirects/index.js +1 -0
  710. package/build/ext/has-flag/index.js +1 -0
  711. package/build/ext/ms/index.js +1 -0
  712. package/build/ext/supports-color/index.js +1 -0
  713. package/build/ext/tslib/tslib.es6.js +1 -1
  714. package/build/ext/uuid/dist/{esm-browser → esm-node}/regex.js +0 -0
  715. package/build/ext/uuid/dist/esm-node/rng.js +1 -0
  716. package/build/ext/uuid/dist/esm-node/stringify.js +1 -0
  717. package/build/ext/uuid/dist/esm-node/v4.js +1 -0
  718. package/build/ext/uuid/dist/{esm-browser → esm-node}/validate.js +0 -0
  719. package/build/ikas.js +8 -42
  720. package/build/index.js +1 -1
  721. package/build/models/data/blog/enums.d.ts +2 -0
  722. package/build/models/data/blog/index.d.ts +19 -55
  723. package/build/models/data/blog/index.js +1 -1
  724. package/build/models/data/brand/enums.d.ts +2 -0
  725. package/build/models/data/brand/index.d.ts +10 -14
  726. package/build/models/data/brand/index.js +1 -1
  727. package/build/models/data/cart/campaign-offer/enums.d.ts +3 -0
  728. package/build/models/data/cart/campaign-offer/index.d.ts +8 -0
  729. package/build/models/data/cart/campaign-offer/index.js +1 -0
  730. package/build/models/data/cart/enums.d.ts +2 -0
  731. package/build/models/data/cart/index.d.ts +18 -45
  732. package/build/models/data/cart/index.js +1 -1
  733. package/build/models/data/category/enums.d.ts +2 -0
  734. package/build/models/data/category/index.d.ts +18 -33
  735. package/build/models/data/category/index.js +1 -1
  736. package/build/models/data/checkout/index.d.ts +4 -90
  737. package/build/models/data/checkout/index.js +1 -1
  738. package/build/models/data/checkout-settings/enums.d.ts +2 -0
  739. package/build/models/data/checkout-settings/index.d.ts +8 -20
  740. package/build/models/data/checkout-settings/index.js +1 -1
  741. package/build/models/data/city/index.d.ts +3 -4
  742. package/build/models/data/city/index.js +1 -0
  743. package/build/models/data/country/index.d.ts +3 -8
  744. package/build/models/data/country/index.js +1 -0
  745. package/build/models/data/customer/address/index.d.ts +36 -33
  746. package/build/models/data/customer/address/index.js +1 -1
  747. package/build/models/data/customer/attribute-value/index.d.ts +4 -6
  748. package/build/models/data/customer/attribute-value/index.js +1 -1
  749. package/build/models/data/customer/enums.d.ts +4 -0
  750. package/build/models/data/customer/index.d.ts +29 -26
  751. package/build/models/data/customer/index.js +1 -1
  752. package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +2 -4
  753. package/build/models/data/customer-attribute/customer-attribute-option/index.js +1 -1
  754. package/build/models/data/customer-attribute/customer-attribute-sales-channel/enums.d.ts +3 -0
  755. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +6 -15
  756. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +1 -1
  757. package/build/models/data/customer-attribute/enums.d.ts +2 -0
  758. package/build/models/data/customer-attribute/index.d.ts +14 -27
  759. package/build/models/data/customer-attribute/index.js +1 -1
  760. package/build/models/data/customer-review/enums.d.ts +2 -0
  761. package/build/models/data/customer-review/index.d.ts +7 -22
  762. package/build/models/data/customer-review/index.js +1 -1
  763. package/build/models/data/customer-review-summary/index.d.ts +6 -14
  764. package/build/models/data/customer-review-summary/index.js +1 -1
  765. package/build/models/data/district/index.d.ts +3 -4
  766. package/build/models/data/district/index.js +1 -0
  767. package/build/models/data/favorite-product/index.d.ts +2 -5
  768. package/build/models/data/favorite-product/index.js +1 -1
  769. package/build/models/data/html-meta-data/enums.d.ts +2 -0
  770. package/build/models/data/html-meta-data/index.d.ts +7 -20
  771. package/build/models/data/html-meta-data/index.js +1 -1
  772. package/build/models/data/image/index.d.ts +11 -1
  773. package/build/models/data/image/index.js +1 -1
  774. package/build/models/data/index.d.ts +59 -38
  775. package/build/models/data/merchant-settings/index.d.ts +3 -19
  776. package/build/models/data/merchant-settings/index.js +1 -1
  777. package/build/models/data/order/address/index.d.ts +32 -32
  778. package/build/models/data/order/address/index.js +1 -1
  779. package/build/models/data/order/adjustment/enums.d.ts +4 -0
  780. package/build/models/data/order/adjustment/index.d.ts +8 -15
  781. package/build/models/data/order/adjustment/index.js +1 -0
  782. package/build/models/data/order/customer/index.d.ts +10 -0
  783. package/build/models/data/order/customer/index.js +1 -0
  784. package/build/models/data/order/enums.d.ts +6 -0
  785. package/build/models/data/order/gift-line/index.d.ts +3 -4
  786. package/build/models/data/order/gift-line/index.js +1 -0
  787. package/build/models/data/order/index.d.ts +39 -132
  788. package/build/models/data/order/index.js +1 -1
  789. package/build/models/data/order/invoice/enums.d.ts +2 -0
  790. package/build/models/data/order/invoice/index.d.ts +7 -0
  791. package/build/models/data/order/invoice/index.js +1 -0
  792. package/build/models/data/order/line-item/discount/index.d.ts +5 -10
  793. package/build/models/data/order/line-item/discount/index.js +1 -1
  794. package/build/models/data/order/line-item/enums.d.ts +2 -0
  795. package/build/models/data/order/line-item/index.d.ts +10 -31
  796. package/build/models/data/order/line-item/index.js +1 -1
  797. package/build/models/data/order/line-item/option/index.d.ts +9 -0
  798. package/build/models/data/order/line-item/option/index.js +1 -0
  799. package/build/models/data/order/line-item/option/value/index.d.ts +3 -0
  800. package/build/models/data/order/line-item/option/value/index.js +1 -0
  801. package/build/models/data/order/line-item/variant/index.d.ts +6 -24
  802. package/build/models/data/order/line-item/variant/index.js +1 -1
  803. package/build/models/data/order/package/enums.d.ts +2 -0
  804. package/build/models/data/order/package/index.d.ts +9 -0
  805. package/build/models/data/order/package/index.js +1 -0
  806. package/build/models/data/order/package/tracking-info/index.d.ts +3 -0
  807. package/build/models/data/order/package/tracking-info/index.js +1 -0
  808. package/build/models/data/order/payment-method/enums.d.ts +2 -0
  809. package/build/models/data/order/payment-method/index.d.ts +7 -0
  810. package/build/models/data/order/payment-method/index.js +1 -0
  811. package/build/models/data/order/refund/index.d.ts +1 -1
  812. package/build/models/data/order/refund/index.js +1 -0
  813. package/build/models/data/order/refund/line-item/index.d.ts +3 -0
  814. package/build/models/data/order/refund/line-item/index.js +1 -0
  815. package/build/models/data/order/refund/{settings.d.ts → settings/index.d.ts} +0 -0
  816. package/build/models/data/order/refund/{settings.js → settings/index.js} +0 -0
  817. package/build/models/data/order/shipping-line/index.d.ts +3 -7
  818. package/build/models/data/order/shipping-line/index.js +1 -0
  819. package/build/models/data/order/tax-line/index.d.ts +3 -0
  820. package/build/models/data/order/tax-line/index.js +1 -0
  821. package/build/models/data/order/transaction/enums.d.ts +5 -0
  822. package/build/models/data/order/transaction/index.d.ts +37 -0
  823. package/build/models/data/order/transaction/index.js +1 -0
  824. package/build/models/data/payment-gateway/additional-price/index.d.ts +7 -0
  825. package/build/models/data/payment-gateway/additional-price/index.js +1 -0
  826. package/build/models/data/payment-gateway/enums.d.ts +5 -0
  827. package/build/models/data/payment-gateway/index.d.ts +9 -34
  828. package/build/models/data/payment-gateway/index.js +1 -1
  829. package/build/models/data/product/attribute-value/index.d.ts +5 -5
  830. package/build/models/data/product/attribute-value/index.js +1 -1
  831. package/build/models/data/product/index.js +1 -1
  832. package/build/models/data/product/variant/index.d.ts +1 -1
  833. package/build/models/data/product/variant/index.js +1 -1
  834. package/build/models/data/product/variant/price/index.d.ts +2 -4
  835. package/build/models/data/product/variant/price/index.js +1 -1
  836. package/build/models/data/product/variant-type/index.d.ts +0 -1
  837. package/build/models/data/product/variant-type/index.js +1 -1
  838. package/build/models/data/product-attribute/index.d.ts +2 -2
  839. package/build/models/data/product-attribute/{product-attribute-option → option}/index.d.ts +0 -0
  840. package/build/models/data/product-attribute/{product-attribute-option → option}/index.js +0 -0
  841. package/build/models/data/product-attribute/{product-attribute-table-cell → table-cell}/index.d.ts +0 -0
  842. package/build/models/data/product-attribute/{product-attribute-table-cell → table-cell}/index.js +0 -0
  843. package/build/models/data/product-attribute/table-template/index.d.ts +6 -0
  844. package/build/models/data/product-attribute/table-template/index.js +1 -0
  845. package/build/models/data/product-campaign/campaign/index.d.ts +41 -0
  846. package/build/models/data/{product-campaing → product-campaign}/campaign/index.js +0 -0
  847. package/build/models/data/{product-campaing → product-campaign}/filter/index.d.ts +0 -0
  848. package/build/models/data/{product-campaing → product-campaign}/filter/index.js +0 -0
  849. package/build/models/data/{product-campaing → product-campaign}/index.d.ts +0 -0
  850. package/build/models/data/{product-campaing → product-campaign}/index.js +0 -0
  851. package/build/models/data/{product-campaing → product-campaign}/product-buyx-then-gety/index.d.ts +0 -0
  852. package/build/models/data/{product-campaing → product-campaign}/product-buyx-then-gety/index.js +0 -0
  853. package/build/models/data/{product-campaing → product-campaign}/product-campaign-date-range-field/index.d.ts +0 -0
  854. package/build/models/data/{product-campaing → product-campaign}/product-campaign-date-range-field/index.js +0 -0
  855. package/build/models/data/{product-campaing → product-campaign}/product-fixed-discount/index.d.ts +0 -0
  856. package/build/models/data/{product-campaing → product-campaign}/product-fixed-discount/index.js +0 -0
  857. package/build/models/data/product-filter/index.d.ts +7 -10
  858. package/build/models/data/product-filter/index.js +1 -1
  859. package/build/models/data/product-option-set/enums.d.ts +3 -0
  860. package/build/models/data/product-option-set/index.d.ts +2 -14
  861. package/build/models/data/product-option-set/index.js +1 -1
  862. package/build/models/data/raffle/index.d.ts +4 -12
  863. package/build/models/data/raffle/index.js +1 -1
  864. package/build/models/data/state/index.d.ts +3 -5
  865. package/build/models/data/state/index.js +1 -0
  866. package/build/models/data/storefront/index.d.ts +1 -1
  867. package/build/models/data/storefront/index.js +1 -1
  868. package/build/models/theme/custom-data/index.js +1 -1
  869. package/build/models/theme/page/index.d.ts +0 -2
  870. package/build/models/theme/page/index.js +1 -1
  871. package/build/models/theme/settings/color/index.js +1 -1
  872. package/build/models/theme/theme.js +1 -1
  873. package/build/models/ui/blog-category-list/index.js +1 -1
  874. package/build/models/ui/blog-list/index.js +1 -1
  875. package/build/models/ui/brand-list/index.js +1 -1
  876. package/build/models/ui/category-list/index.js +1 -1
  877. package/build/models/ui/customer-review-list/index.js +1 -1
  878. package/build/models/ui/customer-review-summary-list/index.d.ts +1 -1
  879. package/build/models/ui/customer-review-summary-list/index.js +1 -1
  880. package/build/models/ui/product-detail/index.d.ts +0 -1
  881. package/build/models/ui/product-detail/index.js +1 -1
  882. package/build/models/ui/product-list/index.d.ts +1 -38
  883. package/build/models/ui/product-list/index.js +1 -1
  884. package/build/models/ui/raffle-list/index.js +1 -1
  885. package/build/models/ui/validator/form/account-info.d.ts +1 -3
  886. package/build/models/ui/validator/form/account-info.js +1 -1
  887. package/build/models/ui/validator/form/address.js +1 -1
  888. package/build/models/ui/validator/form/raffle-form.d.ts +0 -2
  889. package/build/models/ui/validator/form/raffle-form.js +1 -1
  890. package/build/models/ui/validator/form/register.d.ts +1 -1
  891. package/build/models/ui/validator/form/register.js +1 -1
  892. package/build/models/ui/validator/rules/index.d.ts +0 -5
  893. package/build/models/ui/validator/rules/index.js +1 -1
  894. package/build/pages/404.js +1 -1
  895. package/build/pages/_slug_/index.js +1 -1
  896. package/build/pages/account/addresses.js +1 -1
  897. package/build/pages/account/favorite-products.js +1 -1
  898. package/build/pages/account/forgot-password.js +1 -1
  899. package/build/pages/account/index.js +1 -1
  900. package/build/pages/account/login.js +1 -1
  901. package/build/pages/account/orders/_id_.js +1 -1
  902. package/build/pages/account/orders/index.js +1 -1
  903. package/build/pages/account/raffles.js +1 -1
  904. package/build/pages/account/recover-password.js +1 -1
  905. package/build/pages/account/register.js +1 -1
  906. package/build/pages/blog/_slug_.js +1 -1
  907. package/build/pages/blog/index.js +1 -1
  908. package/build/pages/cart.js +1 -1
  909. package/build/pages/checkout.js +1 -1
  910. package/build/pages/editor.js +1 -1
  911. package/build/pages/home.js +1 -1
  912. package/build/pages/pages/_slug_.js +1 -1
  913. package/build/pages/raffle/_slug_.js +1 -1
  914. package/build/pages/raffle/index.js +1 -1
  915. package/build/pages/search.js +1 -1
  916. package/build/providers/helpers/raffles.d.ts +1 -2
  917. package/build/providers/helpers/raffles.js +1 -1
  918. package/build/providers/page-data-get.d.ts +1 -3
  919. package/build/providers/page-data-get.js +1 -1
  920. package/build/providers/page-data-init.js +1 -1
  921. package/build/providers/page-data-next.d.ts +8 -18
  922. package/build/providers/page-data-next.js +1 -1
  923. package/build/providers/placeholders.js +1 -1
  924. package/build/providers/prop-value/attribute-list.js +1 -1
  925. package/build/providers/prop-value/attribute.js +1 -1
  926. package/build/providers/prop-value/blog-category-list.js +1 -1
  927. package/build/providers/prop-value/blog-category.js +1 -1
  928. package/build/providers/prop-value/blog-list.js +1 -1
  929. package/build/providers/prop-value/blog.js +1 -1
  930. package/build/providers/prop-value/brand-list.js +1 -1
  931. package/build/providers/prop-value/brand.js +1 -1
  932. package/build/providers/prop-value/category-list.js +1 -1
  933. package/build/providers/prop-value/category.js +1 -1
  934. package/build/providers/prop-value/custom.js +1 -1
  935. package/build/providers/prop-value/image-list.js +1 -1
  936. package/build/providers/prop-value/image.js +1 -1
  937. package/build/providers/prop-value/link.js +1 -1
  938. package/build/providers/prop-value/product-detail.js +1 -1
  939. package/build/providers/prop-value/product-list.js +1 -1
  940. package/build/providers/prop-value/raffle-list.js +1 -1
  941. package/build/providers/prop-value/raffle.js +1 -1
  942. package/build/providers/prop-value/slider.d.ts +1 -1
  943. package/build/scripts/generators/types/index.js +1 -1
  944. package/build/store/base.d.ts +1 -0
  945. package/build/store/base.js +1 -1
  946. package/build/store/blog/index.d.ts +28 -0
  947. package/build/store/blog/index.js +1 -0
  948. package/build/store/brand/index.d.ts +12 -0
  949. package/build/store/brand/index.js +1 -0
  950. package/build/store/cart/api.d.ts +12 -0
  951. package/build/store/cart/api.js +1 -0
  952. package/build/store/cart/index.d.ts +28 -0
  953. package/build/store/cart/index.js +1 -0
  954. package/build/store/category/index.d.ts +12 -0
  955. package/build/store/category/index.js +1 -0
  956. package/build/store/checkout/index.d.ts +20 -0
  957. package/build/store/checkout/index.js +1 -0
  958. package/build/store/customer/api.d.ts +75 -0
  959. package/build/store/customer/api.js +1 -0
  960. package/build/store/customer/index.d.ts +79 -0
  961. package/build/store/customer/index.js +1 -0
  962. package/build/store/html-meta-data/index.d.ts +6 -0
  963. package/build/store/html-meta-data/index.js +1 -0
  964. package/build/store/location/index.d.ts +13 -0
  965. package/build/store/location/index.js +1 -0
  966. package/build/store/merchant/index.d.ts +6 -0
  967. package/build/store/merchant/index.js +1 -0
  968. package/build/store/product/index.d.ts +40 -0
  969. package/build/store/product/index.js +1 -0
  970. package/build/store/raffle/index.d.ts +18 -0
  971. package/build/store/raffle/index.js +1 -0
  972. package/build/store/storefront/index.d.ts +6 -0
  973. package/build/store/storefront/index.js +1 -0
  974. package/build/storefront/index.d.ts +5 -5
  975. package/build/storefront/index.js +1 -1
  976. package/build/utils/constants.d.ts +0 -1
  977. package/build/utils/constants.js +1 -1
  978. package/build/utils/currency.d.ts +2 -2
  979. package/build/utils/currency.js +1 -1
  980. package/build/utils/helper.js +1 -1
  981. package/build/utils/i18n.js +1 -1
  982. package/package.json +4 -6
  983. package/build/__generated__/global-types.d.ts +0 -781
  984. package/build/__generated__/global-types.js +0 -1
  985. package/build/_virtual/Observable.js_commonjs-proxy.js +0 -1
  986. package/build/_virtual/parser.mjs_commonjs-proxy.js +0 -1
  987. package/build/analytics/tiktokPixel.d.ts +0 -13
  988. package/build/analytics/tiktokPixel.js +0 -1
  989. package/build/api/apollo.d.ts +0 -10
  990. package/build/api/apollo.js +0 -1
  991. package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +0 -24
  992. package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +0 -19
  993. package/build/api/back-in-stock-reminder/index.d.ts +0 -23
  994. package/build/api/back-in-stock-reminder/index.js +0 -1
  995. package/build/api/blog/__generated__/getBlog.d.ts +0 -106
  996. package/build/api/blog/__generated__/listBlog.d.ts +0 -109
  997. package/build/api/blog/__generated__/listBlogCategory.d.ts +0 -61
  998. package/build/api/blog/__generated__/listBlogMetaData.d.ts +0 -55
  999. package/build/api/blog/index.d.ts +0 -32
  1000. package/build/api/blog/index.js +0 -1
  1001. package/build/api/brand/__generated__/listProductBrand.d.ts +0 -88
  1002. package/build/api/brand/index.d.ts +0 -16
  1003. package/build/api/brand/index.js +0 -1
  1004. package/build/api/cart/__generated__/getCart.d.ts +0 -176
  1005. package/build/api/cart/__generated__/saveItemToCart.d.ts +0 -208
  1006. package/build/api/cart/index.d.ts +0 -7
  1007. package/build/api/cart/index.js +0 -1
  1008. package/build/api/category/__generated__/listCategory.d.ts +0 -99
  1009. package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -51
  1010. package/build/api/category/index.d.ts +0 -18
  1011. package/build/api/category/index.js +0 -1
  1012. package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +0 -11
  1013. package/build/api/checkout/__generated__/checkStocks.d.ts +0 -18
  1014. package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +0 -22
  1015. package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +0 -10
  1016. package/build/api/checkout/__generated__/getCheckoutById.d.ts +0 -572
  1017. package/build/api/checkout/__generated__/getOrder.d.ts +0 -614
  1018. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +0 -34
  1019. package/build/api/checkout/__generated__/listPaymentGateway.d.ts +0 -42
  1020. package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +0 -23
  1021. package/build/api/checkout/__generated__/saveCheckout.d.ts +0 -11
  1022. package/build/api/checkout/index.d.ts +0 -35
  1023. package/build/api/checkout/index.js +0 -1
  1024. package/build/api/city/__generated__/listCity.d.ts +0 -20
  1025. package/build/api/city/index.d.ts +0 -4
  1026. package/build/api/city/index.js +0 -1
  1027. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -10
  1028. package/build/api/contact-form/index.d.ts +0 -11
  1029. package/build/api/contact-form/index.js +0 -1
  1030. package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +0 -6
  1031. package/build/api/country/__generated__/getMyCountry.d.ts +0 -3
  1032. package/build/api/country/__generated__/listCountry.d.ts +0 -41
  1033. package/build/api/country/index.d.ts +0 -6
  1034. package/build/api/country/index.js +0 -1
  1035. package/build/api/customer/__generated__/checkCustomerEmail.d.ts +0 -10
  1036. package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +0 -11
  1037. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +0 -584
  1038. package/build/api/customer/__generated__/customerForgotPassword.d.ts +0 -7
  1039. package/build/api/customer/__generated__/customerLogin.d.ts +0 -173
  1040. package/build/api/customer/__generated__/customerRecoverPassword.d.ts +0 -8
  1041. package/build/api/customer/__generated__/customerRefreshToken.d.ts +0 -11
  1042. package/build/api/customer/__generated__/customerSocialLogin.d.ts +0 -172
  1043. package/build/api/customer/__generated__/getCustomerOrders.d.ts +0 -614
  1044. package/build/api/customer/__generated__/getLastViewedProducts.d.ts +0 -15
  1045. package/build/api/customer/__generated__/getMyCustomer.d.ts +0 -155
  1046. package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -615
  1047. package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +0 -13
  1048. package/build/api/customer/__generated__/listOrderTransactions.d.ts +0 -53
  1049. package/build/api/customer/__generated__/registerCustomer.d.ts +0 -174
  1050. package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +0 -11
  1051. package/build/api/customer/__generated__/saveMyCustomer.d.ts +0 -170
  1052. package/build/api/customer/index.d.ts +0 -51
  1053. package/build/api/customer/index.js +0 -1
  1054. package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
  1055. package/build/api/customer-attribute/index.d.ts +0 -4
  1056. package/build/api/customer-attribute/index.js +0 -1
  1057. package/build/api/customer-review/__generated__/createCustomerReview.d.ts +0 -11
  1058. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +0 -49
  1059. package/build/api/customer-review/index.d.ts +0 -24
  1060. package/build/api/customer-review/index.js +0 -1
  1061. package/build/api/customer-review-summary/__generated__/listCustomerReviewSummary.d.ts +0 -55
  1062. package/build/api/customer-review-summary/index.d.ts +0 -21
  1063. package/build/api/customer-review-summary/index.js +0 -1
  1064. package/build/api/district/__generated__/listDistrict.d.ts +0 -16
  1065. package/build/api/district/index.d.ts +0 -4
  1066. package/build/api/district/index.js +0 -1
  1067. package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +0 -6
  1068. package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +0 -12
  1069. package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +0 -7
  1070. package/build/api/favorite-product/index.d.ts +0 -6
  1071. package/build/api/favorite-product/index.js +0 -1
  1072. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +0 -46
  1073. package/build/api/html-meta-data/index.d.ts +0 -4
  1074. package/build/api/html-meta-data/index.js +0 -1
  1075. package/build/api/index.d.ts +0 -25
  1076. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -20
  1077. package/build/api/merchant/index.d.ts +0 -4
  1078. package/build/api/merchant/index.js +0 -1
  1079. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +0 -72
  1080. package/build/api/product-attribute/index.d.ts +0 -4
  1081. package/build/api/product-campaign/__generated__/getProductCampaigns.d.ts +0 -91
  1082. package/build/api/product-campaign/index.d.ts +0 -10
  1083. package/build/api/product-campaign/index.js +0 -1
  1084. package/build/api/product-option-file/__generated__/getOrderLineFile.d.ts +0 -7
  1085. package/build/api/product-option-file/index.d.ts +0 -7
  1086. package/build/api/product-option-file/index.js +0 -1
  1087. package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +0 -104
  1088. package/build/api/product-option-set/index.d.ts +0 -4
  1089. package/build/api/product-option-set/index.js +0 -1
  1090. package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -62
  1091. package/build/api/product-search/__generated__/getRelatedProducts.d.ts +0 -14
  1092. package/build/api/product-search/__generated__/searchProducts.d.ts +0 -26
  1093. package/build/api/product-search/index.d.ts +0 -38
  1094. package/build/api/product-search/index.js +0 -1
  1095. package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +0 -44
  1096. package/build/api/raffle/__generated__/listRaffle.d.ts +0 -81
  1097. package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -24
  1098. package/build/api/raffle/__generated__/listRaffleParticipants.d.ts +0 -67
  1099. package/build/api/raffle/__generated__/listStorefrontRaffle.d.ts +0 -82
  1100. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +0 -70
  1101. package/build/api/raffle/index.d.ts +0 -28
  1102. package/build/api/raffle/index.js +0 -1
  1103. package/build/api/state/__generated__/listState.d.ts +0 -19
  1104. package/build/api/state/index.d.ts +0 -4
  1105. package/build/api/state/index.js +0 -1
  1106. package/build/api/stock-location/__generated__/listStockLocation.d.ts +0 -7
  1107. package/build/api/stock-location/index.d.ts +0 -4
  1108. package/build/api/storefront/__generated__/getStorefront.d.ts +0 -64
  1109. package/build/api/storefront/index.d.ts +0 -4
  1110. package/build/api/storefront/index.js +0 -1
  1111. package/build/api/variant-type/__generated__/listVariantType.d.ts +0 -72
  1112. package/build/api/variant-type/index.d.ts +0 -4
  1113. package/build/assets/translations/checkout/de.js +0 -1
  1114. package/build/ext/@apollo/client/cache/core/cache.js +0 -1
  1115. package/build/ext/@apollo/client/cache/core/types/common.js +0 -1
  1116. package/build/ext/@apollo/client/cache/inmemory/entityStore.js +0 -1
  1117. package/build/ext/@apollo/client/cache/inmemory/helpers.js +0 -1
  1118. package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +0 -1
  1119. package/build/ext/@apollo/client/cache/inmemory/policies.js +0 -1
  1120. package/build/ext/@apollo/client/cache/inmemory/reactiveVars.js +0 -1
  1121. package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +0 -1
  1122. package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +0 -1
  1123. package/build/ext/@apollo/client/core/ApolloClient.js +0 -1
  1124. package/build/ext/@apollo/client/core/LocalState.js +0 -1
  1125. package/build/ext/@apollo/client/core/ObservableQuery.js +0 -1
  1126. package/build/ext/@apollo/client/core/QueryInfo.js +0 -1
  1127. package/build/ext/@apollo/client/core/QueryManager.js +0 -1
  1128. package/build/ext/@apollo/client/core/Reobserver.js +0 -1
  1129. package/build/ext/@apollo/client/core/networkStatus.js +0 -1
  1130. package/build/ext/@apollo/client/errors/index.js +0 -1
  1131. package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +0 -15
  1132. package/build/ext/@apollo/client/link/context/index.js +0 -1
  1133. package/build/ext/@apollo/client/link/core/ApolloLink.js +0 -1
  1134. package/build/ext/@apollo/client/link/core/execute.js +0 -1
  1135. package/build/ext/@apollo/client/link/error/index.js +0 -1
  1136. package/build/ext/@apollo/client/link/http/HttpLink.js +0 -1
  1137. package/build/ext/@apollo/client/link/http/checkFetcher.js +0 -1
  1138. package/build/ext/@apollo/client/link/http/createHttpLink.js +0 -1
  1139. package/build/ext/@apollo/client/link/http/createSignalIfSupported.js +0 -1
  1140. package/build/ext/@apollo/client/link/http/parseAndCheckHttpResponse.js +0 -1
  1141. package/build/ext/@apollo/client/link/http/rewriteURIForGET.js +0 -1
  1142. package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +0 -1
  1143. package/build/ext/@apollo/client/link/http/selectURI.js +0 -1
  1144. package/build/ext/@apollo/client/link/http/serializeFetchParameter.js +0 -1
  1145. package/build/ext/@apollo/client/link/utils/createOperation.js +0 -1
  1146. package/build/ext/@apollo/client/link/utils/fromError.js +0 -1
  1147. package/build/ext/@apollo/client/link/utils/throwServerError.js +0 -1
  1148. package/build/ext/@apollo/client/link/utils/transformOperation.js +0 -1
  1149. package/build/ext/@apollo/client/link/utils/validateOperation.js +0 -1
  1150. package/build/ext/@apollo/client/utilities/common/arrays.js +0 -1
  1151. package/build/ext/@apollo/client/utilities/common/canUse.js +0 -1
  1152. package/build/ext/@apollo/client/utilities/common/cloneDeep.js +0 -1
  1153. package/build/ext/@apollo/client/utilities/common/compact.js +0 -1
  1154. package/build/ext/@apollo/client/utilities/common/environment.js +0 -1
  1155. package/build/ext/@apollo/client/utilities/common/errorHandling.js +0 -1
  1156. package/build/ext/@apollo/client/utilities/common/filterInPlace.js +0 -1
  1157. package/build/ext/@apollo/client/utilities/common/maybeDeepFreeze.js +0 -1
  1158. package/build/ext/@apollo/client/utilities/common/mergeDeep.js +0 -1
  1159. package/build/ext/@apollo/client/utilities/graphql/directives.js +0 -1
  1160. package/build/ext/@apollo/client/utilities/graphql/fragments.js +0 -1
  1161. package/build/ext/@apollo/client/utilities/graphql/getFromAST.js +0 -1
  1162. package/build/ext/@apollo/client/utilities/graphql/storeUtils.js +0 -1
  1163. package/build/ext/@apollo/client/utilities/graphql/transform.js +0 -1
  1164. package/build/ext/@apollo/client/utilities/observables/Concast.js +0 -1
  1165. package/build/ext/@apollo/client/utilities/observables/Observable.js +0 -1
  1166. package/build/ext/@apollo/client/utilities/observables/asyncMap.js +0 -1
  1167. package/build/ext/@apollo/client/utilities/observables/iteration.js +0 -1
  1168. package/build/ext/@apollo/client/version.js +0 -1
  1169. package/build/ext/@ungap/global-this/esm/index.js +0 -1
  1170. package/build/ext/@wry/context/lib/context.esm.js +0 -1
  1171. package/build/ext/@wry/equality/lib/equality.esm.js +0 -1
  1172. package/build/ext/@wry/trie/lib/trie.esm.js +0 -1
  1173. package/build/ext/fast-json-stable-stringify/index.js +0 -1
  1174. package/build/ext/graphql/error/GraphQLError.mjs.js +0 -1
  1175. package/build/ext/graphql/error/syntaxError.mjs.js +0 -1
  1176. package/build/ext/graphql/jsutils/defineInspect.mjs.js +0 -1
  1177. package/build/ext/graphql/jsutils/devAssert.mjs.js +0 -1
  1178. package/build/ext/graphql/jsutils/inspect.mjs.js +0 -1
  1179. package/build/ext/graphql/jsutils/instanceOf.mjs.js +0 -1
  1180. package/build/ext/graphql/jsutils/invariant.mjs.js +0 -1
  1181. package/build/ext/graphql/jsutils/isObjectLike.mjs.js +0 -1
  1182. package/build/ext/graphql/jsutils/nodejsCustomInspectSymbol.mjs.js +0 -1
  1183. package/build/ext/graphql/language/ast.mjs.js +0 -1
  1184. package/build/ext/graphql/language/blockString.mjs.js +0 -1
  1185. package/build/ext/graphql/language/directiveLocation.mjs.js +0 -1
  1186. package/build/ext/graphql/language/kinds.mjs.js +0 -1
  1187. package/build/ext/graphql/language/lexer.mjs.js +0 -1
  1188. package/build/ext/graphql/language/location.mjs.js +0 -1
  1189. package/build/ext/graphql/language/parser.mjs.js +0 -1
  1190. package/build/ext/graphql/language/printLocation.mjs.js +0 -1
  1191. package/build/ext/graphql/language/printer.mjs.js +0 -1
  1192. package/build/ext/graphql/language/source.mjs.js +0 -1
  1193. package/build/ext/graphql/language/tokenKind.mjs.js +0 -1
  1194. package/build/ext/graphql/language/visitor.mjs.js +0 -1
  1195. package/build/ext/graphql/polyfills/symbols.mjs.js +0 -1
  1196. package/build/ext/graphql-tag/src/index.js +0 -1
  1197. package/build/ext/optimism/lib/bundle.esm.js +0 -1
  1198. package/build/ext/symbol-observable/es/index.js +0 -1
  1199. package/build/ext/symbol-observable/es/ponyfill.js +0 -1
  1200. package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +0 -15
  1201. package/build/ext/ts-invariant/lib/invariant.esm.js +0 -1
  1202. package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
  1203. package/build/ext/uuid/dist/esm-browser/stringify.js +0 -1
  1204. package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
  1205. package/build/ext/zen-observable/index.js +0 -1
  1206. package/build/ext/zen-observable/lib/Observable.js +0 -1
  1207. package/build/models/data/customer-review-settings/index.d.ts +0 -4
  1208. package/build/models/data/installment-info/index.d.ts +0 -30
  1209. package/build/models/data/installment-info/index.js +0 -1
  1210. package/build/models/data/language/index.d.ts +0 -6
  1211. package/build/models/data/order/line-item/options/index.d.ts +0 -11
  1212. package/build/models/data/order/line-item/options/index.js +0 -1
  1213. package/build/models/data/order/line-item/options/options-value/index.d.ts +0 -6
  1214. package/build/models/data/order/line-item/options/options-value/index.js +0 -1
  1215. package/build/models/data/order/refund/refund-line-item/index.d.ts +0 -5
  1216. package/build/models/data/order-transaction/index.d.ts +0 -74
  1217. package/build/models/data/order-transaction/index.js +0 -1
  1218. package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +0 -6
  1219. package/build/models/data/product-attribute/product-attribute-table-template/index.js +0 -1
  1220. package/build/models/data/product-campaing/campaign/index.d.ts +0 -41
  1221. package/build/models/data/product-cart-item-options/index.d.ts +0 -6
  1222. package/build/models/data/product-cart-item-options/index.js +0 -1
  1223. package/build/models/data/simple-product/index.d.ts +0 -137
  1224. package/build/store/cart.d.ts +0 -51
  1225. package/build/store/cart.js +0 -1
  1226. package/build/store/customer.d.ts +0 -96
  1227. package/build/store/customer.js +0 -1
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as i}from'../../ext/tslib/tslib.es6.js';import{makeAutoObservable as s}from"mobx";import n from'../../ext/lodash/cloneDeep.js';import r from'../../ext/lodash/sortBy.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import{IkasCheckout as o,IkasCheckoutCustomer as a}from"../../models/data/checkout/index.js";import{IkasCustomerAddress as c}from"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import{IkasTransactionStatusEnum as d}from"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasOrderAddress as u}from"../../models/data/order/address/index.js";import{IkasPaymentMethodType as l,IkasPaymentGatewayType as h}from"../../models/data/payment-gateway/index.js";import"../../api/blog/index.js";import"../../api/brand/index.js";import"../../api/cart/index.js";import"../../api/category/index.js";import{IkasCheckoutAPI as p}from"../../api/checkout/index.js";import"../../api/city/index.js";import{IkasCountryAPI as m}from"../../api/country/index.js";import{IkasCustomerAPI as f}from"../../api/customer/index.js";import"../../api/customer-review/index.js";import"../../api/customer-review-summary/index.js";import"../../api/district/index.js";import"../../api/html-meta-data/index.js";import{IkasMerchantAPI as g}from"../../api/merchant/index.js";import"../../api/product-search/index.js";import"../../api/apollo.js";import"../../api/favorite-product/index.js";import"../../api/contact-form/index.js";import"../../api/state/index.js";import"../../api/product-option-set/index.js";import"../../api/raffle/index.js";import"../../api/back-in-stock-reminder/index.js";import"../../api/product-campaign/index.js";import v from"./components/credit-card-form/model.js";import{IkasStorefrontConfig as S}from"../../storefront/index.js";import{IkasCheckoutSettings as k}from"../../models/data/checkout-settings/index.js";import{Analytics as y}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import b from'../../ext/uuid/dist/esm-browser/v4.js';var C,I,P=/^\d+$/,A="undefined"==typeof localStorage,j=function(){function P(P,j,R,x,E,O,T,D,G){var _=this;this.checkout=new o,this.checkoutSettings=new k,this.storefront=null,this.store=S.store,this.isCheckoutLoaded=!1,this.isErrorsVisible=!1,this.isStepLoading=!1,this.isTermsAndConditionsChecked=!1,this.isChangingShippingMethod=!1,this.isContactModalVisible=!1,this.step=C.INFO,this.customizationProps=null,this.cardData=null,this.paymentGateways=[],this.installmentInfo=null,this.useDifferentAddress=!1,this.shouldSaveAddress=!0,this.addressTitle="",this.shippingCountryIds=null,this.selectedShippingAddressId="-1",this.selectedBillingAddressId="-1",this.policyModalTitle="",this.policyModalText="",this.error=null,this.init=function(){return t(_,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,this.store.customerStore.waitUntilInitialized()];case 1:return t.sent(),this.createCustomer(),this.createShippingAddress(),this.createBillingAddress(),[4,this.getMerchantSettings()];case 2:return t.sent(),[4,this.initStep()];case 3:return t.sent(),[2]}}))}))},this.initStep=function(){return t(_,void 0,void 0,(function(){var t,i,s,n,r,o;return e(this,(function(e){switch(e.label){case 0:if(S.isEditor)return this.step=C.INFO,this.isCheckoutLoaded=!0,[2];if(t=new URLSearchParams(window.location.search),i=t.get("step"),s=t.get("failed"),n=t.get("error"),i){if(this.step=i,this.step===C.SHIPPING&&!this.canProceedToShipping)return[2,this.changeStep(C.INFO)];if(this.step===C.PAYMENT&&!this.canProceedToPayment)return[2,this.changeStep(C.INFO)];if(![C.INFO,C.SUCCESS,C.SHIPPING,C.PAYMENT].includes(this.step))return[2,this.changeStep(C.INFO)]}return s&&(this.error={type:I.PAYMENT_ERROR,data:n||null}),this.step!==C.INFO?[3,2]:[4,this.getShippingCountries()];case 1:e.sent(),this.checkShippingCountries(),e.label=2;case 2:return this.step!==C.SHIPPING||1!==this.checkout.availableShippingMethods.length||this.checkoutSettings.isGiftPackageEnabled||(this.step=C.PAYMENT,this.router.replace("/checkout?id=".concat(this.checkout.id,"&step=").concat(this.step),void 0,{shallow:!0})),this.step!==C.SHIPPING||this.checkout.availableShippingMethods.length?this.step!==C.PAYMENT&&this.step!==C.SUCCESS?[3,4]:[4,this.listPaymentGateways()]:(this.error={type:I.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2]);case 3:if(e.sent(),!this.paymentGateways.length)return this.error={type:I.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2];e.label=4;case 4:return this.step===C.SUCCESS?[3,8]:this.checkout.isComplete?[2,this.changeStep(C.SUCCESS)]:[3,5];case 5:return[4,this.initialStockCheck()];case 6:e.sent(),e.label=7;case 7:return[3,11];case 8:return r=this,[4,p.getOrder(this.checkout.orderId)];case 9:return r.order=e.sent(),[4,this.getSuccessTransaction()];case 10:e.sent(),this.successTransaction&&(o=this.successTransaction.paymentGatewayId,this.checkout.selectedPaymentGateway=this.paymentGateways.find((function(t){return t.id===o}))),e.label=11;case 11:return this.isCheckoutLoaded=!0,y.checkoutStep(this.checkout,this.step),[2]}}))}))},this.getMerchantSettings=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.merchantSettings?[3,2]:(t=this,[4,g.listMerchantSettings()]);case 1:t.merchantSettings=e.sent(),e.label=2;case 2:return[2]}}))}))},this.getSuccessTransaction=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,f.getOrderTransactions({orderId:this.checkout.orderId})];case 1:return t=e.sent(),this.successTransaction=t.length?t[0]:void 0,[2]}}))}))},this.saveCheckout=function(){return t(_,void 0,void 0,(function(){var t,i,s;return e(this,(function(e){switch(e.label){case 0:return[4,p.saveCheckout(this.checkout)];case 1:if((null==(t=e.sent())?void 0:t.errors)&&t.errors.length)throw i=t.errors[0],"CUSTOMER_LOGIN_REQUIRED"===(null===(s=i.extensions)||void 0===s?void 0:s.code)?{type:I.CUSTOMER_LOGIN_REQUIRED_ERROR}:{type:I.API_ERROR};return[2]}}))}))},this.checkStocks=function(){return t(_,void 0,void 0,(function(){var t,i,s,n,r,o,a,c,d,u,l;return e(this,(function(e){switch(e.label){case 0:return t=this.cart.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,p.checkStocks(t,S.stockLocationIds||[])];case 1:if(!(i=e.sent()))throw{type:I.API_ERROR};if(null==(s=null===(u=i.lines)||void 0===u?void 0:u.filter((function(t){return!t.isAvailable})))?void 0:s.length){for(n=[],r=function(t){var e=null===(l=o.store.cartStore.cart)||void 0===l?void 0:l.items.find((function(e){return e.variant.id===t.variantId}));e&&n.push(e)},o=this,a=0,c=s;a<c.length;a++)d=c[a],r(d);throw{type:I.STOCK_ERROR,data:n}}return[2]}}))}))},this.removeUnavailableItems=function(i){return t(_,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:t=0,s=i,e.label=1;case 1:return t<s.length?(n=s[t],[4,this.store.cartStore.removeItem(n)]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},this.getShippingCountries=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t=this,[4,m.listShippingCountries(S.salesChannelId)];case 1:return t.shippingCountryIds=e.sent(),[2]}}))}))},this.checkShippingCountries=function(){var t;(null===(t=_.shippingCountryIds)||void 0===t?void 0:t.length)||(_.error={type:I.NO_SHIPPING_ERROR})},this.initialStockCheck=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.checkStocks()];case 1:return e.sent(),[3,3];case 2:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:I.UNKNOWN}),[3,3];case 3:return[2]}}))}))},this.listPaymentGateways=function(){return t(_,void 0,void 0,(function(){var t,i,s,n,o,a,c=this;return e(this,(function(e){switch(e.label){case 0:return t="local"===process.env.NEXT_PUBLIC_ENV,i=S.paymentGateways.map((function(t){return t.id})),[4,p.listPaymentGateway(t?void 0:i)];case 1:return(s=e.sent())&&s.length?(this.step===C.PAYMENT&&(s=s.filter((function(t){return!t.supportedCurrencies.length||t.supportedCurrencies.includes(c.checkout.cart.currencyCode)})),(n=null===(a=this.checkout.shippingAddress)||void 0===a?void 0:a.country)&&n.iso2&&(s=s.filter((function(t){return!t.availableCountries.length||t.availableCountries.includes(n.iso2||"")})))),o=[],r(S.paymentGateways,"order").forEach((function(t){var e=null==s?void 0:s.find((function(e){return e.id===t.id}));e&&o.push(e)})),this.paymentGateways=t?s:o,this.checkout.selectedPaymentGateway||this.setPaymentGateway(0),[2]):(this.error={type:I.API_ERROR},[2])}}))}))},this.retrieveInstallmentInfo=function(i){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,p.retrieveInstallmentInfo(i)];case 1:return null==(t=e.sent())||t.installmentPrices.sort((function(t,e){return(t.installmentCount||-1)>(e.installmentCount||-1)?1:-1})),this.installmentInfo=t,[2]}}))}))},this.createCustomer=function(){_.store.customerStore.customer?(_.store.customerStore.customer.addresses.forEach((function(t){return t.checkoutSettings=_.checkoutSettings})),_.checkout.customer=new a(_.store.customerStore.customer)):_.checkout.customer||(_.checkout.customer=new a({}))},this.createShippingAddress=function(){var t;if(_.checkout.shippingAddress)_.selectedShippingAddressId=_.checkout.shippingAddress.id||"-1",_.checkout.shippingAddress.checkoutSettings=_.checkoutSettings;else{var e=null===(t=_.store.customerStore.customer)||void 0===t?void 0:t.addresses;_.onSelectedShippingAddressIdChange((null==e?void 0:e.length)?e[0].id:"-1")}},this.createBillingAddress=function(){"undefined"!=typeof localStorage&&(_.useDifferentAddress=!!localStorage.getItem("sAddr"),_.useDifferentAddress?(_.checkout.billingAddress&&(_.selectedBillingAddressId=_.checkout.billingAddress.id||"-1"),_.checkout.billingAddress=_.checkout.billingAddress||new u):_.checkout.billingAddress=new u(n(_.checkout.shippingAddress)||{}),_.checkout.billingAddress.checkoutSettings=_.checkoutSettings)},this.onShippingMethodChange=function(i){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isChangingShippingMethod?[2]:(this.isChangingShippingMethod=!0,this.checkout.shippingSettingsId=i.shippingSettingsId,this.checkout.shippingZoneRateId=i.shippingZoneRateId,[4,this.saveCheckout()]);case 1:return e.sent(),[4,p.getCheckoutById(this.checkout.id)];case 2:return(t=e.sent())&&(this.checkout=t),this.isChangingShippingMethod=!1,[2]}}))}))},this.onCouponCodeApply=function(){return t(_,void 0,void 0,(function(){var t,s,n,r,a,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,6,,7]),[4,p.addCouponCodeToCheckout(this.checkout.id,this.checkout.couponCode||null)];case 1:return(null==(t=e.sent())?void 0:t.data)?[4,p.getCheckoutById(this.checkout.id)]:[3,5];case 2:return(s=e.sent())?(n=null===(c=null===(a=this.cardData)||void 0===a?void 0:a.cardNumber)||void 0===c?void 0:c.split(" ").join(""),this.step===C.PAYMENT&&(null==n?void 0:n.length)&&n.length>=6?[4,this.retrieveInstallmentInfo({binNumber:n.slice(0,6),paymentGatewayId:this.checkout.selectedPaymentGateway.id,price:s.totalFinalPrice})]:[3,4]):[3,5];case 3:e.sent(),e.label=4;case 4:r=this.checkout,this.checkout=new o(i(i({},s),{shippingAddress:r.shippingAddress,billingAddress:r.billingAddress,customer:r.customer,selectedPaymentGateway:r.selectedPaymentGateway})),e.label=5;case 5:return[3,7];case 6:return e.sent(),[3,7];case 7:return[2]}}))}))},this.onSelectedShippingAddressIdChange=function(t){var e;if(_.selectedShippingAddressId=t,"-1"===t)_.checkout.shippingAddress=new u;else{var i=null===(e=_.store.customerStore.customer)||void 0===e?void 0:e.addresses.find((function(e){return e.id===t}));i&&(_.checkout.shippingAddress=new u(i))}_.checkout.shippingAddress&&(_.checkout.shippingAddress.checkoutSettings=_.checkoutSettings)},this.onSelectedBillingAddressIdChange=function(t){var e;if(_.selectedBillingAddressId=t,"-1"===t)_.checkout.billingAddress=new u;else{var i=null===(e=_.store.customerStore.customer)||void 0===e?void 0:e.addresses.find((function(e){return e.id===t}));i&&(_.checkout.billingAddress=new u(i))}_.checkout.billingAddress&&(_.checkout.billingAddress.checkoutSettings=_.checkoutSettings)},this.onTermsAndConditionsCheckedChange=function(t){_.isTermsAndConditionsChecked=t},this.onCardNumberChange=function(t){if(_.cardData&&(!(t.length>_.cardData.cardNumber.length)||N(t))){var e=(_.cardData.cardNumber||"").split(" ").join(""),i=t.split(" ").join("");i.length>16||(e.length<6&&i.length>=6&&!_.installmentInfo?_.retrieveInstallmentInfo({binNumber:i.slice(0,6),paymentGatewayId:_.checkout.selectedPaymentGateway.id,price:_.checkout.totalFinalPrice}):i.length<6&&e.length>i.length&&(_.cardData.installmentCount=1,_.installmentInfo=void 0),_.cardData.cardNumber=w(i,4).join(" "))}},this.onCardHolderNameChange=function(t){_.cardData&&(_.cardData.cardHolderName=t)},this.onExpirationDateChange=function(t){var e;if(_.cardData&&(!(t.length>_.cardData.expirationDate.length)||N(t))){if(0===(null===(e=_.cardData.expirationDate)||void 0===e?void 0:e.length)){var i=t.split("/");if(2===i.length){var s=i[0].trim(),n=i[1].trim();if(4===s.length&&2===n.length){var r=parseInt(s.slice(2)),o=parseInt(n);if(!isNaN(r)&&!isNaN(o))return void(_.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}if(2===s.length&&4===n.length){o=parseInt(s),r=parseInt(n.slice(2));if(!isNaN(r)&&!isNaN(o))return void(_.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}}}var a=t.split(" / ").join("");a.length>4||(_.cardData.expirationDate=w(a,2).join(" / "))}},this.onCvcChange=function(t){_.cardData&&(t.length>_.cardData.cvv.length&&!N(t)||t.length>4||(_.cardData.cvv=t))},this.saveAddress=function(s){return t(_,void 0,void 0,(function(){var t,r,o,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.shouldSaveAddress&&this.store.customerStore.customer?(t="shipping"===s?this.checkout.shippingAddress:this.checkout.billingAddress,this.store.customerStore.customer.addresses.find((function(e){return e.id===(null==t?void 0:t.id)}))?[2]:(r=new c(i(i({},t),{title:this.addressTitle||(null==t?void 0:t.title)||this.t("checkout-page:newAddress"),id:b()})),(o=n(this.store.customerStore.customer)).addresses.push(r),[4,this.store.customerStore.saveCustomer(o)])):[3,2];case 1:e.sent(),"shipping"===s?(this.checkout.shippingAddress.id=r.id,this.selectedShippingAddressId=r.id||"-1"):(this.checkout.billingAddress.id=r.id,this.selectedBillingAddressId=r.id||"-1"),e.label=2;case 2:return[3,4];case 3:return a=e.sent(),console.error(a),[3,4];case 4:return[2]}}))}))},this.onGoToCartClick=function(){_.router.push("/cart")},this.onBackToShoppingClick=function(){_.router.push("/")},this.onProceedToShippingClick=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToShipping)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,5,,6]),this.isStepLoading=!0,[4,this.saveAddress("shipping")];case 2:return e.sent(),[4,this.checkStocks()];case 3:return e.sent(),[4,this.saveCheckout()];case 4:return e.sent(),this.changeStep(C.SHIPPING),[3,6];case 5:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:I.UNKNOWN}),this.isStepLoading=!1,[3,6];case 6:return[2]}}))}))},this.onProceedToPaymentClick=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCheckout()];case 3:return e.sent(),this.error=void 0,this.changeStep(C.PAYMENT),[3,5];case 4:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:I.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onCompletePaymentClick=function(){return t(_,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canPerformPayment)return this.isErrorsVisible=!0,[2];this.useDifferentAddress||(this.checkout.billingAddress=this.checkout.shippingAddress),e.label=1;case 1:return e.trys.push([1,6,,7]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveAddress("billing")];case 3:return e.sent(),[4,this.saveCheckout()];case 4:return e.sent(),[4,this.createSaleTransaction()];case 5:return e.sent(),[3,7];case 6:return(t=e.sent()).type?this.error=t:this.error={type:I.UNKNOWN},this.isStepLoading=!1,[3,7];case 7:return[2]}}))}))},this.createSaleTransaction=function(){return t(_,void 0,void 0,(function(){var t,i,s,n;return e(this,(function(e){switch(e.label){case 0:return this.checkout.selectedPaymentGateway?[4,p.createSaleTransactionWithCheckout(this.checkout.id,this.checkout.selectedPaymentGateway.id,this.checkout.selectedPaymentGateway.paymentMethodType===l.CREDIT_CARD&&this.checkout.selectedPaymentGateway.type===h.INTERNAL&&this.cardData?this.cardData.toInput():void 0)]:[2];case 1:return t=e.sent(),i=null==t?void 0:t.transactionStatus,s=i&&[d.SUCCESS,d.AUTHORIZED].includes(i),n=i===d.PENDING,s?[4,this.getSuccessTransaction()]:[3,4];case 2:return e.sent(),[4,this.onCheckoutTransactionSuccess()];case 3:return e.sent(),[3,5];case 4:if(!n||!(null==t?void 0:t.returnSlug))throw{type:I.UNKNOWN};window.location.href=process.env.NEXT_PUBLIC_BASE_URL+t.returnSlug,e.label=5;case 5:return[2]}}))}))},this.onCheckoutTransactionSuccess=function(){return t(_,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return localStorage.removeItem("sAddr"),(null===(t=this.checkout.customer)||void 0===t?void 0:t.notificationsAccepted)?[4,this.store.customerStore.createEmailSubscription((null===(i=this.checkout.customer)||void 0===i?void 0:i.email)||"")]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.changeStep(C.SUCCESS),[2]}}))}))},this.onBackToInfoClick=function(){_.changeStep(C.INFO)},this.onBackToShippingClick=function(){_.changeStep(C.SHIPPING)},this.setCustomerConsentGranted=function(t){_.checkout.customer&&(_.checkout.customer.notificationsAccepted=t)},this.setUseDifferentAddress=function(t){_.useDifferentAddress=t,_.useDifferentAddress?(localStorage.setItem("sAddr","1"),_.checkout.billingAddress=_.checkout.billingAddress||new u):(localStorage.removeItem("sAddr"),_.checkout.billingAddress=_.checkout.shippingAddress)},this.setShouldSaveAddress=function(t){_.shouldSaveAddress=t},this.setAddressTitle=function(t){_.addressTitle=t},this.setPaymentGateway=function(t){if(_.paymentGateways.length){var e=_.paymentGateways[t];_.checkout.selectedPaymentGateway=e,_.step!==C.SUCCESS&&(e.paymentMethodType===l.CREDIT_CARD&&e.type===h.INTERNAL&&(_.cardData=new v),_.installmentInfo=void 0)}},this.setInstallmentCount=function(t){_.cardData&&(_.cardData.installmentCount=t)},this.changeStep=function(i){return t(_,void 0,void 0,(function(){return e(this,(function(t){return A||window.location.replace("".concat(window.location.pathname,"?id=").concat(this.checkout.id,"&step=").concat(i)),[2]}))}))},this.logout=function(){return t(_,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:this.checkout.customer=void 0,this.store.customerStore.logout(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.saveCheckout()];case 2:case 3:return t.sent(),[3,4];case 4:return this.createCustomer(),[2]}}))}))},this.setContactModalVisible=function(t){_.isContactModalVisible=t},this.checkout=P,this.checkoutSettings=j,this.router=x,this.returnPolicy=E,this.privacyPolicy=O,this.termsOfService=T,this.t=D,this.customizationProps=G,R&&(this.merchantSettings=R),this.isTermsAndConditionsChecked=this.checkoutSettings.isTermsAndConditionsDefaultChecked,this.store.cartStore.cart=this.checkout.cart,this.init(),s(this)}return Object.defineProperty(P.prototype,"cart",{get:function(){return this.checkout.cart},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"selectedPaymentGatewayIndex",{get:function(){var t=this;return this.paymentGateways.findIndex((function(e){var i;return e.id===(null===(i=t.checkout.selectedPaymentGateway)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"selectedInstallmentIndex",{get:function(){var t,e=this;return(null===(t=this.installmentInfo)||void 0===t?void 0:t.installmentPrices.findIndex((function(t){var i;return t.installmentCount===(null===(i=e.cardData)||void 0===i?void 0:i.installmentCount)})))||0},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"checkoutUrl",{get:function(){return"/checkout?id=".concat(this.checkout.id,"&step=info")},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"customerAddressOptions",{get:function(){var t,e={label:this.t("checkout-page:newAddress"),value:"-1"},i=(null===(t=this.store.customerStore.customer)||void 0===t?void 0:t.addresses.map((function(t){return{label:t.title+" - "+t.addressText,value:t.id}})))||[];return[e].concat(i)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"installmentPrice",{get:function(){var t,e,i=this;if(this.installmentInfo&&(null===(t=this.cardData)||void 0===t?void 0:t.installmentCount))return null===(e=this.installmentInfo.installmentPrices.find((function(t){var e;return t.installmentCount===(null===(e=i.cardData)||void 0===e?void 0:e.installmentCount)})))||void 0===e?void 0:e.totalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"installmentExtraPrice",{get:function(){if(this.installmentPrice&&this.checkout.totalFinalPrice)return this.installmentPrice-this.checkout.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"finalPrice",{get:function(){return this.step===C.SUCCESS?this.order?this.order.totalFinalPrice:this.checkout.totalFinalPrice:this.installmentPrice||this.checkout.$totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasStockError",{get:function(){var t;return(null===(t=this.error)||void 0===t?void 0:t.type)===I.STOCK_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"canProceedToShipping",{get:function(){var t,e;return(null===(t=this.checkout.shippingAddress)||void 0===t?void 0:t.isValid)&&this.checkout.hasValidCustomerEmail&&(null===(e=this.error)||void 0===e?void 0:e.type)!==I.NO_SHIPPING_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"canProceedToPayment",{get:function(){return this.canProceedToShipping},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"canPerformPayment",{get:function(){var t,e;if(this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked)return!1;var i=this.checkout.selectedPaymentGateway;return this.canProceedToShipping&&!!(null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValid)&&((null==i?void 0:i.paymentMethodType)===l.CREDIT_CARD&&i.type===h.INTERNAL?null===(e=this.cardData)||void 0===e?void 0:e.isValid:!!i)},enumerable:!1,configurable:!0}),P}();function w(t,e){return t.match(new RegExp(".{1,"+e+"}","g"))||[]}function N(t){return t&&P.test(t.charAt(t.length-1))}!function(t){t.INFO="info",t.SHIPPING="shipping",t.PAYMENT="payment",t.SUCCESS="success"}(C||(C={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.API_ERROR=1]="API_ERROR",t[t.STOCK_ERROR=2]="STOCK_ERROR",t[t.PAYMENT_ERROR=3]="PAYMENT_ERROR",t[t.NO_SHIPPING_ERROR=4]="NO_SHIPPING_ERROR",t[t.CUSTOMER_LOGIN_REQUIRED_ERROR=5]="CUSTOMER_LOGIN_REQUIRED_ERROR"}(I||(I={}));export{C as CheckoutStep,I as ErrorType,j as default};
1
+ import{__awaiter as t,__generator as e,__assign as i}from'../../ext/tslib/tslib.es6.js';import{makeAutoObservable as s}from"mobx";import n from'../../ext/lodash/cloneDeep.js';import r from'../../ext/lodash/sortBy.js';import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import{IkasCustomerAddress as o}from"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute-value/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/customer-review-summary/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/merchant-settings/index.js";import{IkasOrderAddress as a}from"../../models/data/order/address/index.js";import"../../models/data/order/adjustment/index.js";import{IkasOrderCustomer as d}from"../../models/data/order/customer/index.js";import"../../models/data/order/gift-line/index.js";import"../../models/data/order/invoice/index.js";import"../../models/data/order/line-item/discount/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/option/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/tracking-info/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/payment-method/index.js";import"../../models/data/order/refund/line-item/index.js";import"../../models/data/order/shipping-line/index.js";import"../../models/data/order/tax-line/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/product-campaign/campaign/index.js";import"../../models/data/product-campaign/filter/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import"../../models/data/payment-gateway/index.js";import c from"./components/credit-card-form/model.js";import{IkasStorefrontConfig as l}from"../../storefront/index.js";import{IkasCheckoutSettings as u}from"../../models/data/checkout-settings/index.js";import{Analytics as h}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import p from"../../models/data/checkout/index.js";import m from"../../store/customer/api.js";import f from"../../store/merchant/index.js";import v from"../../store/checkout/index.js";import{CheckStocksLineInput as g}from"../../__api/models/CheckStocksLineInput.js";import y from"../../store/cart/api.js";import{SaveCartInput as S}from"../../__api/models/SaveCartInput.js";import{PaymentMethodEnum as k,PaymentGatewayTypeEnum as b,TransactionStatusEnum as I}from"../../__api/types/index.js";import C from'../../ext/uuid/dist/esm-node/v4.js';var A,P,j=/^\d+$/,w="undefined"==typeof localStorage,x=function(){function j(j,x,E,O,T,D,G,_){var M=this;this.checkout=new p,this.checkoutSettings=new u,this.storefront=null,this.store=l.store,this.isCheckoutLoaded=!1,this.isErrorsVisible=!1,this.isStepLoading=!1,this.isTermsAndConditionsChecked=!1,this.isChangingShippingMethod=!1,this.isContactModalVisible=!1,this.step=A.INFO,this.cardData=null,this.paymentGateways=[],this.installmentInfo=null,this.useDifferentAddress=!1,this.shouldSaveAddress=!1,this.addressTitle="",this.shippingCountryIds=null,this.selectedShippingAddressId="-1",this.selectedBillingAddressId="-1",this.stockLocations=[],this.deliveryMethod="address",this.policyModalTitle="",this.policyModalText="",this.error=null,this.init=function(){return t(M,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,this.store.customerStore.waitUntilInitialized()];case 1:return t.sent(),this.createCustomer(),this.createShippingAddress(),this.createBillingAddress(),[4,this.getMerchantSettings()];case 2:return t.sent(),[4,this.initStep()];case 3:return t.sent(),[2]}}))}))},this.initStep=function(){return t(M,void 0,void 0,(function(){var t,i,s,n,r,o,a,d,c;return e(this,(function(e){switch(e.label){case 0:if(l.isEditor)return this.step=A.INFO,this.isCheckoutLoaded=!0,[2];if(t=new URLSearchParams(window.location.search),i=t.get("step"),s=t.get("failed"),n=t.get("error"),i){if(this.step=i,this.step===A.SHIPPING&&!this.canProceedToShipping)return[2,this.changeStep(A.INFO)];if(this.step!==A.PAYMENT||this.canProceedToPayment){if(![A.INFO,A.SUCCESS,A.SHIPPING,A.PAYMENT].includes(this.step))return[2,this.changeStep(A.INFO)]}else{if(!this.isInStoreDelivery)return[2,this.changeStep(A.INFO)];this.deliveryMethod="in-store"}}return s&&(this.error={type:P.PAYMENT_ERROR,data:n||null}),this.step!==A.INFO?[3,3]:[4,this.getShippingCountries()];case 1:return e.sent(),this.checkShippingCountries(),[4,this.getStockLocations()];case 2:e.sent(),this.isInStoreDelivery&&(this.deliveryMethod="in-store"),e.label=3;case 3:return this.step!==A.SHIPPING||1!==(null===(a=this.checkout.availableShippingMethods)||void 0===a?void 0:a.length)||this.checkoutSettings.isGiftPackageEnabled||(this.step=A.PAYMENT,this.router.replace("/checkout?id=".concat(this.checkout.id,"&step=").concat(this.step),void 0,{shallow:!0})),this.step!==A.SHIPPING||(null===(d=this.checkout.availableShippingMethods)||void 0===d?void 0:d.length)?this.step!==A.PAYMENT&&this.step!==A.SUCCESS?[3,7]:[4,this.listPaymentGateways()]:(this.error={type:P.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2]);case 4:return e.sent(),this.isInStoreDelivery?(this.deliveryMethod="in-store",[4,this.getStockLocations()]):[3,6];case 5:e.sent(),e.label=6;case 6:if(!this.paymentGateways.length)return this.error={type:P.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2];e.label=7;case 7:return this.step===A.SUCCESS?[3,11]:this.checkout.isComplete?[2,this.changeStep(A.SUCCESS)]:[3,8];case 8:return[4,this.initialStockCheck()];case 9:e.sent(),e.label=10;case 10:return[3,13];case 11:return[4,m.listOrderTransactions({orderId:{eq:this.checkout.id}})];case 12:r=e.sent(),this.successTransaction=r.isSuccess&&(null===(c=r.data)||void 0===c?void 0:c.length)?r.data[0]:void 0,this.successTransaction&&(o=this.successTransaction.paymentGatewayId,this.checkout.selectedPaymentGateway=this.paymentGateways.find((function(t){return t.id===o}))),e.label=13;case 13:return this.isCheckoutLoaded=!0,h.checkoutStep(this.checkout,this.step),[2]}}))}))},this.getMerchantSettings=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.merchantSettings?[3,2]:[4,f.listMerchantSettings({})];case 1:t=e.sent(),this.merchantSettings=t.data||void 0,e.label=2;case 2:return[2]}}))}))},this.saveCart=function(){return t(M,void 0,void 0,(function(){var t,i,s,n;return e(this,(function(e){switch(e.label){case 0:return(t=new S(this.checkout)).cartId=this.checkout.id,"in-store"!==this.deliveryMethod?[3,2]:[4,this.inStockDeliveryInputData(t)];case 1:t=e.sent(),e.label=2;case 2:return[4,y.saveCart({input:t})];case 3:if((null==(i=e.sent())?void 0:i.graphQLErrors)&&i.graphQLErrors.length)throw s=i.graphQLErrors[0],"CUSTOMER_LOGIN_REQUIRED"===(null===(n=s.extensions)||void 0===n?void 0:n.code)?{type:P.CUSTOMER_LOGIN_REQUIRED_ERROR}:{type:P.API_ERROR};return[2,i.data]}}))}))},this.inStockDeliveryInputData=function(i){return t(M,void 0,void 0,(function(){var t,s,n=this;return e(this,(function(e){return t=i,(s=this.stockLocations.find((function(t){return t.id===n.checkout.stockLocationId})))&&t.shippingAddress&&s.address&&(t.shippingAddress.country=s.address.country,t.shippingAddress.city=s.address.city,t.shippingAddress.state=s.address.state,t.shippingAddress.district=s.address.district,t.shippingAddress.postalCode=s.address.postalCode,t.shippingAddress.addressLine1=s.address.address||""),t.billingAddress=null,[2,t]}))}))},this.checkStocks=function(){return t(M,void 0,void 0,(function(){var t,i,s,n,r,o,a,d,c,u,h,p;return e(this,(function(e){switch(e.label){case 0:return t=this.checkout.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,v.checkStocks({lines:t.map((function(t){return new g(t)})),stockLocationIdList:l.stockLocationIds||[]})];case 1:if(!(i=e.sent()).isSuccess)throw{type:P.API_ERROR};if(null==(s=null===(h=null===(u=i.data)||void 0===u?void 0:u.lines)||void 0===h?void 0:h.filter((function(t){return!t.isAvailable})))?void 0:s.length){for(n=[],r=function(t){var e=null===(p=o.store.cartStore.cart)||void 0===p?void 0:p.items.find((function(e){return e.variant.id===t.variantId}));e&&n.push(e)},o=this,a=0,d=s;a<d.length;a++)c=d[a],r(c);throw{type:P.STOCK_ERROR,data:n}}return[2]}}))}))},this.removeUnavailableItems=function(i){return t(M,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:t=0,s=i,e.label=1;case 1:return t<s.length?(n=s[t],[4,this.store.cartStore.removeItem(n)]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},this.getShippingCountries=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,v.getAvailableShippingCountries({salesChannelId:l.salesChannelId})];case 1:return t=e.sent(),this.shippingCountryIds=t.data,[2]}}))}))},this.getStockLocations=function(){return t(M,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return l.pickUpStockLocationIds?[4,v.listStockLocation({id:{in:l.pickUpStockLocationIds}})]:[3,2];case 1:if(!(t=e.sent()).isSuccess||!(null===(i=t.data)||void 0===i?void 0:i.length))return this.error={type:P.API_ERROR},[2];this.stockLocations=t.data,e.label=2;case 2:return[2]}}))}))},this.checkShippingCountries=function(){var t;(null===(t=M.shippingCountryIds)||void 0===t?void 0:t.length)||(M.error={type:P.NO_SHIPPING_ERROR})},this.onDeliveryMethodChange=function(t){"address"===t&&(M.checkout.stockLocationId=null),M.deliveryMethod=t,M.isErrorsVisible=!1},this.initialStockCheck=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.checkStocks()];case 1:return e.sent(),[3,3];case 2:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:P.UNKNOWN}),[3,3];case 3:return[2]}}))}))},this.listPaymentGateways=function(){return t(M,void 0,void 0,(function(){var t,i,s,n,o,a,d,c,u=this;return e(this,(function(e){switch(e.label){case 0:return t="local"===process.env.NEXT_PUBLIC_ENV,i=l.paymentGateways.map((function(t){return t.id})),[4,v.listPaymentGateway({id:t?void 0:{in:i}})];case 1:return(s=e.sent()).isSuccess&&(null===(d=s.data)||void 0===d?void 0:d.length)?(n=s.data,this.step===A.PAYMENT&&(n=n.filter((function(t){return!t.supportedCurrencies.length||t.supportedCurrencies.includes(u.checkout.currencyCode)})),(o=null===(c=this.checkout.shippingAddress)||void 0===c?void 0:c.country)&&o.iso2&&(n=n.filter((function(t){return!t.availableCountries.length||t.availableCountries.includes(o.iso2||"")})))),a=[],r(l.paymentGateways,"order").forEach((function(t){var e=null==n?void 0:n.find((function(e){return e.id===t.id}));e&&a.push(e)})),this.paymentGateways=t?n:a,this.checkout.selectedPaymentGateway||this.setPaymentGateway(0),[2]):(this.error={type:P.API_ERROR},[2])}}))}))},this.retrieveInstallmentInfo=function(i){return t(M,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:return[4,v.retrieveInstallmentInfo(i)];case 1:return t=e.sent(),s=t.data,null===(n=null==s?void 0:s.installmentPrices)||void 0===n||n.sort((function(t,e){return(t.installmentCount||-1)>(e.installmentCount||-1)?1:-1})),this.installmentInfo=s,[2]}}))}))},this.createCustomer=function(){var t;M.store.customerStore.customer?(null===(t=M.store.customerStore.customer.addresses)||void 0===t||t.forEach((function(t){return t.checkoutSettings=M.checkoutSettings})),M.checkout.customer=new d(M.store.customerStore.customer)):M.checkout.customer||(M.checkout.customer=new d({}))},this.createShippingAddress=function(){var t;if(M.checkout.shippingAddress)M.selectedShippingAddressId=M.checkout.shippingAddress.id||"-1",M.checkout.shippingAddress.checkoutSettings=M.checkoutSettings;else{var e=null===(t=M.store.customerStore.customer)||void 0===t?void 0:t.addresses;M.onSelectedShippingAddressIdChange((null==e?void 0:e.length)?e[0].id:"-1")}},this.createBillingAddress=function(){"undefined"!=typeof localStorage&&(M.useDifferentAddress=!!localStorage.getItem("sAddr"),M.useDifferentAddress?(M.checkout.billingAddress&&(M.selectedBillingAddressId=M.checkout.billingAddress.id||"-1"),M.checkout.billingAddress=M.checkout.billingAddress||new a):M.checkout.billingAddress=new a(n(M.checkout.shippingAddress)||{}),M.checkout.billingAddress.checkoutSettings=M.checkoutSettings)},this.onShippingMethodChange=function(i){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isChangingShippingMethod?[2]:(this.isChangingShippingMethod=!0,this.checkout.shippingSettingsId=i.shippingSettingsId,this.checkout.shippingZoneRateId=i.shippingZoneRateId,[4,this.saveCart()]);case 1:return(t=e.sent())&&(this.checkout=new p(t)),this.isChangingShippingMethod=!1,[2]}}))}))},this.onStockLocationChange=function(i){return t(M,void 0,void 0,(function(){return e(this,(function(t){return this.checkout.stockLocationId=i.id,[2]}))}))},this.onCouponCodeApply=function(){return t(M,void 0,void 0,(function(){var t,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:if(!this.checkout.couponCode)return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,y.saveCartCouponCode({cartId:this.checkout.id,couponCode:this.checkout.couponCode})];case 2:return(t=e.sent()).isSuccess&&t.data&&(s=t.data,n=null===(a=null===(o=this.cardData)||void 0===o?void 0:o.cardNumber)||void 0===a?void 0:a.split(" ").join(""),this.step===A.PAYMENT&&(null==n?void 0:n.length)&&n.length>=6&&this.retrieveInstallmentInfo({input:{binNumber:n.slice(0,6),paymentGatewayId:this.checkout.selectedPaymentGateway.id,price:s.totalFinalPrice}}),s&&(r=this.checkout,this.checkout=new p(i(i({},s),{shippingAddress:r.shippingAddress,billingAddress:r.billingAddress,customer:r.customer,selectedPaymentGateway:r.selectedPaymentGateway})))),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},this.onCouponCodeDelete=function(){return t(M,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.saveCart()];case 1:return(t=e.sent())&&(s=this.checkout,this.checkout=new p(i(i({},t),{shippingAddress:s.shippingAddress,billingAddress:s.billingAddress,customer:s.customer,selectedPaymentGateway:s.selectedPaymentGateway}))),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}}))}))},this.onSelectedShippingAddressIdChange=function(t){var e,i;if(M.selectedShippingAddressId=t,"-1"===t)M.checkout.shippingAddress=new a;else{var s=null===(i=null===(e=M.store.customerStore.customer)||void 0===e?void 0:e.addresses)||void 0===i?void 0:i.find((function(e){return e.id===t}));s&&(M.checkout.shippingAddress=new a(s))}M.checkout.shippingAddress&&(M.checkout.shippingAddress.checkoutSettings=M.checkoutSettings)},this.onSelectedBillingAddressIdChange=function(t){var e,i;if(M.selectedBillingAddressId=t,"-1"===t)M.checkout.billingAddress=new a;else{var s=null===(i=null===(e=M.store.customerStore.customer)||void 0===e?void 0:e.addresses)||void 0===i?void 0:i.find((function(e){return e.id===t}));s&&(M.checkout.billingAddress=new a(s))}M.checkout.billingAddress&&(M.checkout.billingAddress.checkoutSettings=M.checkoutSettings)},this.onTermsAndConditionsCheckedChange=function(t){M.isTermsAndConditionsChecked=t},this.onCardNumberChange=function(t){if(M.cardData&&(!(t.length>M.cardData.cardNumber.length)||R(t))){var e=(M.cardData.cardNumber||"").split(" ").join(""),i=t.split(" ").join("");i.length>16||(e.length<6&&i.length>=6&&!M.installmentInfo?M.retrieveInstallmentInfo({input:{binNumber:i.slice(0,6),paymentGatewayId:M.checkout.selectedPaymentGateway.id,price:M.checkout.totalFinalPrice}}):i.length<6&&e.length>i.length&&(M.cardData.installmentCount=1,M.installmentInfo=void 0),M.cardData.cardNumber=N(i,4).join(" "))}},this.onCardHolderNameChange=function(t){M.cardData&&(M.cardData.cardHolderName=t)},this.onExpirationDateChange=function(t){var e;if(M.cardData&&(!(t.length>M.cardData.expirationDate.length)||R(t))){if(0===(null===(e=M.cardData.expirationDate)||void 0===e?void 0:e.length)){var i=t.split("/");if(2===i.length){var s=i[0].trim(),n=i[1].trim();if(4===s.length&&2===n.length){var r=parseInt(s.slice(2)),o=parseInt(n);if(!isNaN(r)&&!isNaN(o))return void(M.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}if(2===s.length&&4===n.length){o=parseInt(s),r=parseInt(n.slice(2));if(!isNaN(r)&&!isNaN(o))return void(M.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}}}var a=t.split(" / ").join("");a.length>4||(M.cardData.expirationDate=N(a,2).join(" / "))}},this.onCvcChange=function(t){M.cardData&&(t.length>M.cardData.cvv.length&&!R(t)||t.length>4||(M.cardData.cvv=t))},this.saveAddress=function(s){return t(M,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return this.shouldSaveAddress?(t=new o(i(i({},"shipping"===s?this.checkout.shippingAddress:this.checkout.billingAddress),{title:this.addressTitle||this.t("checkout-page:newAddress"),id:C()})),(r=n(this.store.customerStore.customer)).addresses||(r.addresses=[]),r.addresses.push(t),[4,this.store.customerStore.saveCustomer(r)]):[3,2];case 1:e.sent(),"shipping"===s?(this.checkout.shippingAddress.id=t.id,this.selectedShippingAddressId=t.id||"-1"):(this.checkout.billingAddress.id=t.id,this.selectedBillingAddressId=t.id||"-1"),e.label=2;case 2:return[2]}}))}))},this.onGoToCartClick=function(){M.router.push("/cart")},this.onBackToShoppingClick=function(){M.router.push("/")},this.onProceedToShippingClick=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if("address"===this.deliveryMethod){if(!this.canProceedToShipping)return this.isErrorsVisible=!0,[2]}else if(!this.canProceedToInStoreDelivery)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,6,,7]),this.isStepLoading=!0,"address"!==this.deliveryMethod?[3,3]:[4,this.saveAddress("shipping")];case 2:e.sent(),e.label=3;case 3:return[4,this.checkStocks()];case 4:return e.sent(),[4,this.saveCart()];case 5:return e.sent(),"address"===this.deliveryMethod?this.changeStep(A.SHIPPING):this.changeStep(A.PAYMENT),[3,7];case 6:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:P.UNKNOWN}),this.isStepLoading=!1,[3,7];case 7:return[2]}}))}))},this.onProceedToPaymentClick=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.error=void 0,this.changeStep(A.PAYMENT),[3,5];case 4:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:P.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onCompletePaymentClick=function(){return t(M,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canPerformPayment)return this.isErrorsVisible=!0,[2];this.useDifferentAddress||(this.checkout.billingAddress=this.checkout.shippingAddress),e.label=1;case 1:return e.trys.push([1,7,,8]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),"address"!==this.deliveryMethod?[3,4]:[4,this.saveAddress("billing")];case 3:e.sent(),e.label=4;case 4:return[4,this.saveCart()];case 5:return e.sent(),[4,this.createSaleTransaction()];case 6:return e.sent(),[3,8];case 7:return(t=e.sent()).type?this.error=t:this.error={type:P.UNKNOWN},this.isStepLoading=!1,[3,8];case 8:return[2]}}))}))},this.createSaleTransaction=function(){return t(M,void 0,void 0,(function(){var t,i,s,n,r,o;return e(this,(function(e){switch(e.label){case 0:return this.checkout.selectedPaymentGateway?[4,v.createSaleTransactionWithCart({input:{cartId:this.checkout.id,paymentGatewayId:this.checkout.selectedPaymentGateway.id,paymentMethodDetail:this.checkout.selectedPaymentGateway.paymentMethodType===k.CREDIT_CARD&&this.checkout.selectedPaymentGateway.type===b.INTERNAL&&this.cardData?this.cardData.toInput():void 0}})]:[2];case 1:return t=e.sent(),i=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.transactionStatus,s=i&&[I.SUCCESS,I.AUTHORIZED].includes(i),n=i===I.PENDING,s?[4,this.onCheckoutTransactionSuccess()]:[3,3];case 2:return e.sent(),[3,4];case 3:if(!n||!(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.returnSlug))throw{type:P.UNKNOWN};window.location.href=process.env.NEXT_PUBLIC_BASE_URL+t.data.returnSlug,e.label=4;case 4:return[2]}}))}))},this.onCheckoutTransactionSuccess=function(){return t(M,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return localStorage.removeItem("sAddr"),(null===(t=this.checkout.customer)||void 0===t?void 0:t.notificationsAccepted)?[4,this.store.customerStore.createEmailSubscription((null===(i=this.checkout.customer)||void 0===i?void 0:i.email)||"")]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.changeStep(A.SUCCESS),[2]}}))}))},this.onBackToInfoClick=function(){M.changeStep(A.INFO)},this.onBackToShippingClick=function(){M.changeStep(A.SHIPPING)},this.setCustomerConsentGranted=function(t){M.checkout.customer&&(M.checkout.customer.notificationsAccepted=t)},this.setUseDifferentAddress=function(t){M.useDifferentAddress=t,M.useDifferentAddress?(localStorage.setItem("sAddr","1"),M.checkout.billingAddress=M.checkout.billingAddress||new a):(localStorage.removeItem("sAddr"),M.checkout.billingAddress=M.checkout.shippingAddress)},this.setShouldSaveAddress=function(t){M.shouldSaveAddress=t},this.setAddressTitle=function(t){M.addressTitle=t},this.setPaymentGateway=function(t){if(M.paymentGateways.length){var e=M.paymentGateways[t];M.checkout.selectedPaymentGateway=e,M.step!==A.SUCCESS&&(e.paymentMethodType===k.CREDIT_CARD&&e.type===b.INTERNAL&&(M.cardData=new c),M.installmentInfo=void 0)}},this.setInstallmentCount=function(t){M.cardData&&(M.cardData.installmentCount=t)},this.changeStep=function(i){return t(M,void 0,void 0,(function(){return e(this,(function(t){return w||window.location.replace("".concat(window.location.pathname,"?id=").concat(this.checkout.id,"&step=").concat(i)),[2]}))}))},this.logout=function(){return t(M,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:this.checkout.customer=null,this.store.customerStore.logout(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.saveCart()];case 2:case 3:return t.sent(),[3,4];case 4:return this.createCustomer(),[2]}}))}))},this.setContactModalVisible=function(t){M.isContactModalVisible=t},this.checkout=j,this.checkoutSettings=x,this.router=O,this.returnPolicy=T,this.privacyPolicy=D,this.termsOfService=G,this.t=_,E&&(this.merchantSettings=E),this.isTermsAndConditionsChecked=this.checkoutSettings.isTermsAndConditionsDefaultChecked||!1,this.init(),s(this)}return Object.defineProperty(j.prototype,"selectedPaymentGatewayIndex",{get:function(){var t=this;return this.paymentGateways.findIndex((function(e){var i;return e.id===(null===(i=t.checkout.selectedPaymentGateway)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"selectedInstallmentIndex",{get:function(){var t,e,i=this;return(null===(e=null===(t=this.installmentInfo)||void 0===t?void 0:t.installmentPrices)||void 0===e?void 0:e.findIndex((function(t){var e;return t.installmentCount===(null===(e=i.cardData)||void 0===e?void 0:e.installmentCount)})))||0},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"checkoutUrl",{get:function(){return"/checkout?id=".concat(this.checkout.id,"&step=info")},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"customerAddressOptions",{get:function(){var t,e,i={label:this.t("checkout-page:newAddress"),value:"-1"},s=(null===(e=null===(t=this.store.customerStore.customer)||void 0===t?void 0:t.addresses)||void 0===e?void 0:e.map((function(t){return{label:t.title+" - "+t.addressText,value:t.id}})))||[];return[i].concat(s)},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"installmentPrice",{get:function(){var t,e,i,s=this;if(this.installmentInfo&&(null===(t=this.cardData)||void 0===t?void 0:t.installmentCount))return null===(i=null===(e=this.installmentInfo.installmentPrices)||void 0===e?void 0:e.find((function(t){var e;return t.installmentCount===(null===(e=s.cardData)||void 0===e?void 0:e.installmentCount)})))||void 0===i?void 0:i.totalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"installmentExtraPrice",{get:function(){if(this.installmentPrice&&this.checkout.totalFinalPrice)return this.installmentPrice-this.checkout.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"finalPrice",{get:function(){return this.step===A.SUCCESS?this.checkout.totalFinalPrice:this.installmentPrice||this.checkout.$totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"hasStockError",{get:function(){var t;return(null===(t=this.error)||void 0===t?void 0:t.type)===P.STOCK_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"canProceedToShipping",{get:function(){var t,e;return(null===(t=this.checkout.shippingAddress)||void 0===t?void 0:t.isValid)&&this.checkout.hasValidCustomerEmail&&(null===(e=this.error)||void 0===e?void 0:e.type)!==P.NO_SHIPPING_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"canProceedToInStoreDelivery",{get:function(){var t,e,i;return!!((null===(t=this.checkout.customer)||void 0===t?void 0:t.firstName)&&(null===(e=this.checkout.customer)||void 0===e?void 0:e.lastName)&&(null===(i=this.checkout.customer)||void 0===i?void 0:i.email)&&this.checkout.stockLocationId)},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"canProceedToPayment",{get:function(){return this.canProceedToShipping},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"isInStoreDelivery",{get:function(){return!!this.checkout.stockLocationId},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"canPerformPayment",{get:function(){var t,e;if(this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked)return!1;var i=this.checkout.selectedPaymentGateway;return("in-store"===this.deliveryMethod||this.canProceedToShipping)&&("in-store"===this.deliveryMethod||!!(null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValid))&&((null==i?void 0:i.paymentMethodType)===k.CREDIT_CARD&&i.type===b.INTERNAL?null===(e=this.cardData)||void 0===e?void 0:e.isValid:!!i)},enumerable:!1,configurable:!0}),j}();function N(t,e){return t.match(new RegExp(".{1,"+e+"}","g"))||[]}function R(t){return t&&j.test(t.charAt(t.length-1))}!function(t){t.INFO="info",t.SHIPPING="shipping",t.PAYMENT="payment",t.SUCCESS="success"}(A||(A={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.API_ERROR=1]="API_ERROR",t[t.STOCK_ERROR=2]="STOCK_ERROR",t[t.PAYMENT_ERROR=3]="PAYMENT_ERROR",t[t.NO_SHIPPING_ERROR=4]="NO_SHIPPING_ERROR",t[t.CUSTOMER_LOGIN_REQUIRED_ERROR=5]="CUSTOMER_LOGIN_REQUIRED_ERROR"}(P||(P={}));export{A as CheckoutStep,P as ErrorType,x as default};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as o}from"mobx-react-lite";import{FormItem as t}from"../../components/form-item/index.js";import{FormItemType as r,FormItemInputType as m}from"../../components/form-item/model.js";import{Button as s}from"../../components/button/index.js";import{Checkbox as i}from"../../components/checkbox/index.js";import n from"../../components/error/index.js";import c from"../../styles/common.module.scss.js";import a from"../../components/customer-addresses/index.js";import l from"../../components/customer-addresses/model.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{useTranslation as u}from"../../../../utils/i18n.js";var p=o((function(o){var p,d,h=o.vm,f=u().t,g=e.useCallback((function(e){h.checkout.customer&&(h.checkout.customer.email=e?e.trim():e)}),[h,h.checkout,h.checkout.customer]),k=e.useMemo((function(){return new l(h,"shipping")}),[h]);return e.createElement("div",null,e.createElement(n,{vm:h}),!h.checkout.hasCustomer&&e.createElement("div",{style:{marginTop:"8px",marginBottom:"40px"}},e.createElement("div",{className:c.FormSectionTitle},e.createElement("div",{className:c.Title},f("checkout-page:contactInfo"))),e.createElement(t,{type:r.TEXT,inputType:m.EMAIL,label:f("checkout-page:email"),autocomplete:"email",value:(null===(p=h.checkout.customer)||void 0===p?void 0:p.email)||"",onChange:g,hasError:h.isErrorsVisible&&!h.checkout.hasValidCustomerEmail,errorText:f("checkout-page:emailError"),tooltipText:f("checkout-page:guestEmailTooltip")}),e.createElement(i,{value:(null===(d=h.checkout.customer)||void 0===d?void 0:d.notificationsAccepted)||!1,label:f("checkout-page:customerConsentCta"),onChange:h.setCustomerConsentGranted})),e.createElement(a,{vm:k}),!k.editingCustomerAddress&&e.createElement(s,{style:{width:"100%",marginTop:h.store.customerStore.customer?"0px":"32px"},text:f("checkout-page:actions.continueWithShipping"),isLoading:h.isStepLoading,onClick:h.onProceedToShippingClick}))}));export{p as default};
1
+ import*as e from"react";import{observer as o}from"mobx-react-lite";import{FormItem as t}from"../../components/form-item/index.js";import{FormItemType as r,FormItemInputType as m}from"../../components/form-item/model.js";import{Button as s}from"../../components/button/index.js";import{Checkbox as i}from"../../components/checkbox/index.js";import n from"../../components/error/index.js";import c from"../../styles/common.module.scss.js";import a from"../../components/customer-addresses/index.js";import l from"../../components/customer-addresses/model.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{useTranslation as u}from"../../../../utils/i18n.js";var p=o((function(o){var p,d,h=o.vm,f=u().t,g=e.useCallback((function(e){h.checkout.customer&&(h.checkout.customer.email=e?e.trim():e)}),[h,h.checkout,h.checkout.customer]),k=e.useMemo((function(){return new l(h,"shipping")}),[h]);return e.createElement("div",null,e.createElement(n,{vm:h}),!h.checkout.hasCustomer&&e.createElement("div",{style:{marginTop:"8px",marginBottom:"40px"}},e.createElement("div",{className:c.FormSectionTitle},e.createElement("div",{className:c.Title},f("checkout-page:contactInfo"))),e.createElement(t,{type:r.TEXT,inputType:m.EMAIL,label:f("checkout-page:email"),autocomplete:"email",value:(null===(p=h.checkout.customer)||void 0===p?void 0:p.email)||"",onChange:g,hasError:h.isErrorsVisible&&!h.checkout.hasValidCustomerEmail,errorText:f("checkout-page:emailError"),tooltipText:f("checkout-page:guestEmailTooltip")}),e.createElement(i,{value:(null===(d=h.checkout.customer)||void 0===d?void 0:d.notificationsAccepted)||!1,label:f("checkout-page:customerConsentCta"),onChange:h.setCustomerConsentGranted})),e.createElement(a,{vm:k}),!k.editingCustomerAddress&&e.createElement(s,{style:{width:"100%",marginTop:h.store.customerStore.customer?"0px":"32px"},text:"address"===h.deliveryMethod?f("checkout-page:actions.continueWithShipping"):f("checkout-page:actions.continueWithPayment"),isLoading:h.isStepLoading,onClick:h.onProceedToShippingClick}))}));export{p as default};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as r}from"mobx-react-lite";import{Checkbox as s}from"../../../components/checkbox/index.js";import o from"../../../components/customer-addresses/model.js";import t from"../../../components/customer-addresses/index.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{useTranslation as n}from"../../../../../utils/i18n.js";var i=r((function(r){var i=r.vm,m=n().t,d=e.useMemo((function(){return new o(i,"billing")}),[i]);return e.createElement(e.Fragment,null,e.createElement("div",{style:{marginTop:"32px",marginBottom:i.useDifferentAddress?"24px":"0px"}},e.createElement(s,{value:!i.useDifferentAddress,hasError:i.isErrorsVisible&&!i.isTermsAndConditionsChecked,label:m("checkout-page:useShippingForBilling"),onChange:function(e){return i.setUseDifferentAddress(!e)}})),i.useDifferentAddress&&e.createElement(t,{vm:d}))}));export{i as BillingAddress};
1
+ import*as e from"react";import{observer as r}from"mobx-react-lite";import{Checkbox as s}from"../../../components/checkbox/index.js";import o from"../../../components/customer-addresses/model.js";import t from"../../../components/customer-addresses/index.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{useTranslation as n}from"../../../../../utils/i18n.js";var i=r((function(r){var i=r.vm,m=n().t,d=e.useMemo((function(){return new o(i,"billing")}),[i]);return e.createElement(e.Fragment,null,e.createElement("div",{style:{marginTop:"32px",marginBottom:i.useDifferentAddress?"24px":"0px"}},"address"===i.deliveryMethod&&e.createElement(s,{value:!i.useDifferentAddress,hasError:i.isErrorsVisible&&!i.isTermsAndConditionsChecked,label:m("checkout-page:useShippingForBilling"),onChange:function(e){return i.setUseDifferentAddress(!e)}})),i.useDifferentAddress&&e.createElement(t,{vm:d}))}));export{i as BillingAddress};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import{IkasPaymentMethodType as n,IkasPaymentGatewayType as o,IkasPaymentGatewayAdditionalPriceAmountType as r,IkasPaymentMethodAdditionalPriceType as a}from"../../../../../models/data/payment-gateway/index.js";import{CreditCardForm as m}from"../../../components/credit-card-form/index.js";import{Installments as l}from"./installments/index.js";import i from"../../../components/select-box/index.js";import s from"./style.module.scss.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as c}from"../../../../../utils/currency.js";import{useTranslation as d}from"../../../../../utils/i18n.js";import p from"../../../components/svg/external.js";var u=t((function(t){var u=t.vm,y=d().t,f=function(t){return e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap"}},t.children)},E=function(t){return e.createElement("div",{className:s.AdditionalPrice},t.children)};return e.createElement(e.Fragment,null,u.paymentGateways.map((function(t,d){var g,h;return e.createElement(i,{key:t.id,label:t.paymentMethodType===n.CREDIT_CARD&&t.type===o.INTERNAL?y("checkout-page:creditCard"):t.name,isSelected:u.selectedPaymentGatewayIndex===d,rightContent:(null===(g=t.additionalPrices)||void 0===g?void 0:g.length)?e.createElement(E,null,(h=t.additionalPrices[0],0===h.amount?"":"".concat(h.amountType===r.AMOUNT?c(h.amount,u.cart.currencyCode):" %"+h.amount).concat(h.type===a.DECREMENT?" "+y("checkout-page:paymentMethodDiscount"):" "+y("checkout-page:paymentMethodAdditionalPrice")))):e.createElement(f,null,!!t.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:t.logoUrl}))),bottomContent:t.paymentMethodType===n.CREDIT_CARD&&t.type===o.INTERNAL?e.createElement("div",null,e.createElement(m,{vm:u}),u.installmentInfo&&e.createElement(l,{vm:u})):t.description?e.createElement(e.Fragment,null,t.type===o.EXTERNAL&&e.createElement("div",{style:{height:"52px",display:"flex",justifyContent:"center",margin:"24px 0"}},e.createElement(p,null)),e.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})):void 0,onClick:function(){return u.selectedPaymentGatewayIndex!==d&&u.setPaymentGateway(d)}})})))}));export{u as PaymentGateways};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../../models/data/payment-gateway/index.js";import{CreditCardForm as n}from"../../../components/credit-card-form/index.js";import{Installments as o}from"./installments/index.js";import r from"../../../components/select-box/index.js";import a from"./style.module.scss.js";import"../../../../../storefront/index.js";import'../../../../../ext/lodash/isArguments.js';import'../../../../../ext/lodash/isBuffer.js';import'../../../../../ext/lodash/isTypedArray.js';import'../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as m}from"../../../../../utils/currency.js";import{useTranslation as i}from"../../../../../utils/i18n.js";import l from"../../../components/svg/external.js";import{PaymentMethodEnum as s,PaymentGatewayTypeEnum as c,PaymentGatewayTransactionFeeTypeEnum as d,PaymentGatewayAdditionalPriceTypeEnum as p}from"../../../../../__api/types/index.js";var u=t((function(t){var u=t.vm,y=i().t,f=function(t){return e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap"}},t.children)},E=function(t){return e.createElement("div",{className:a.AdditionalPrice},t.children)};return e.createElement(e.Fragment,null,u.paymentGateways.map((function(t,i){var g,h;return e.createElement(r,{key:t.id,label:t.paymentMethodType===s.CREDIT_CARD&&t.type===c.INTERNAL?y("checkout-page:creditCard"):t.name,isSelected:u.selectedPaymentGatewayIndex===i,rightContent:(null===(g=t.additionalPrices)||void 0===g?void 0:g.length)?e.createElement(E,null,(h=t.additionalPrices[0],0===h.amount?"":"".concat(h.amountType===d.AMOUNT?m(h.amount,u.checkout.currencyCode):" %"+h.amount).concat(h.type===p.DECREMENT?" "+y("checkout-page:paymentMethodDiscount"):" "+y("checkout-page:paymentMethodAdditionalPrice")))):e.createElement(f,null,!!t.logoUrl&&e.createElement("div",{className:a.PaymentLogoContainer},e.createElement("img",{src:t.logoUrl}))),bottomContent:t.paymentMethodType===s.CREDIT_CARD&&t.type===c.INTERNAL?e.createElement("div",null,e.createElement(n,{vm:u}),u.installmentInfo&&e.createElement(o,{vm:u})):t.description?e.createElement(e.Fragment,null,t.type===c.EXTERNAL&&e.createElement("div",{style:{height:"52px",display:"flex",justifyContent:"center",margin:"24px 0"}},e.createElement(l,null)),e.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})):void 0,onClick:function(){return u.selectedPaymentGatewayIndex!==i&&u.setPaymentGateway(i)}})})))}));export{u as PaymentGateways};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../../../storefront/index.js";import'../../../../../../ext/lodash/isArguments.js';import'../../../../../../ext/lodash/isBuffer.js';import'../../../../../../ext/lodash/isTypedArray.js';import'../../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as n}from"../../../../../../utils/currency.js";import{useTranslation as l}from"../../../../../../utils/i18n.js";import s from"./style.module.scss.js";import{Toggle as a}from"../../../../components/toggle/index.js";var o=t((function(t){var o,m=t.vm,r=l().t;return e.createElement("div",{className:s.Installments},e.createElement("div",{className:s.Title},r("checkout-page:installmentOptions")),e.createElement("div",{className:s.Container},null===(o=m.installmentInfo)||void 0===o?void 0:o.installmentPrices.map((function(t,l){return e.createElement("div",{className:s.Row,onClick:function(){return m.setInstallmentCount(t.installmentCount||1)}},e.createElement(a,{value:m.selectedInstallmentIndex===l}),e.createElement("div",{className:s.InstallmentInfo},e.createElement("div",{className:s.InstallmentCount},1===t.installmentCount?r("checkout-page:singleInstallment"):"".concat(t.installmentCount," ").concat(r("checkout-page:installments"))),1!==t.installmentCount&&e.createElement("div",{className:s.InstallmentPrice},n(t.installmentPrice,m.checkout.cart.currencyCode))),e.createElement("div",{className:s.Price},n(t.totalPrice,m.checkout.cart.currencyCode)))}))))}));export{o as Installments};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../../../storefront/index.js";import'../../../../../../ext/lodash/isArguments.js';import'../../../../../../ext/lodash/isBuffer.js';import'../../../../../../ext/lodash/isTypedArray.js';import'../../../../../../ext/lodash/_baseGetTag.js';import{formatMoney as n}from"../../../../../../utils/currency.js";import{useTranslation as l}from"../../../../../../utils/i18n.js";import s from"./style.module.scss.js";import{Toggle as o}from"../../../../components/toggle/index.js";var a=t((function(t){var a,m,r=t.vm,i=l().t;return e.createElement("div",{className:s.Installments},e.createElement("div",{className:s.Title},i("checkout-page:installmentOptions")),e.createElement("div",{className:s.Container},null===(m=null===(a=r.installmentInfo)||void 0===a?void 0:a.installmentPrices)||void 0===m?void 0:m.map((function(t,l){return e.createElement("div",{className:s.Row,onClick:function(){return r.setInstallmentCount(t.installmentCount||1)}},e.createElement(o,{value:r.selectedInstallmentIndex===l}),e.createElement("div",{className:s.InstallmentInfo},e.createElement("div",{className:s.InstallmentCount},1===t.installmentCount?i("checkout-page:singleInstallment"):"".concat(t.installmentCount," ").concat(i("checkout-page:installments"))),1!==t.installmentCount&&e.createElement("div",{className:s.InstallmentPrice},n(t.installmentPrice,r.checkout.currencyCode))),e.createElement("div",{className:s.Price},n(t.totalPrice,r.checkout.currencyCode)))}))))}));export{a as Installments};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as o}from"../../../../utils/currency.js";import{useTranslation as i}from"../../../../utils/i18n.js";import n from"./style.module.scss.js";import{Button as c}from"../../components/button/index.js";import{Checkbox as r}from"../../components/checkbox/index.js";import{FormItemType as a}from"../../components/form-item/model.js";import{FormItem as s}from"../../components/form-item/index.js";import m from"../../components/error/index.js";import p from"../../components/select-box/index.js";var l=t((function(t){var o=t.vm,r=i().t;return e.createElement("div",{className:[n.StepShipping].join(" ")},e.createElement(u,{vm:o}),e.createElement(d,{vm:o}),e.createElement(c,{style:{width:"100%",marginTop:"32px"},text:r("checkout-page:actions.continueWithPayment"),isLoading:o.isStepLoading,onClick:o.onProceedToPaymentClick}))})),u=t((function(t){var c=t.vm,r=i().t;return e.createElement("div",{className:[n.InfoBox,c.isChangingShippingMethod?n.Dimmed:""].join(" ")},e.createElement(m,{vm:c}),c.checkout.availableShippingMethods.map((function(t,i){return e.createElement(p,{key:t.shippingSettingsId+t.shippingZoneRateId,label:t.rateName,isSelected:c.checkout.shippingSettingsId===t.shippingSettingsId&&c.checkout.shippingZoneRateId===t.shippingZoneRateId,rightContent:e.createElement("div",{className:n.ShippingPrice},0===t.price?r("checkout-page:free"):o(t.price,c.checkout.cart.currencyCode)),onClick:function(){return c.onShippingMethodChange(t)}})})))})),d=t((function(t){var c=t.vm,m=i().t,p=e.useCallback((function(e){c.checkout.isGiftPackage=e}),[c]),l=e.useCallback((function(e){c.checkout.giftPackageNote=e}),[c,c.checkout]),u=e.useMemo((function(){var e;return null===(e=c.checkoutSettings.giftPackagePriceList)||void 0===e?void 0:e.find((function(e){var t;return e.currencyCode===(null===(t=c.cart)||void 0===t?void 0:t.currencyCode)}))}),[c,c.checkoutSettings,c.cart]),d=m("checkout-page:giftPackageCta")+(u&&u.price?" (+ ".concat(o(u.price,u.currencyCode),")"):"");return c.checkoutSettings.isGiftPackageEnabled?e.createElement("div",{className:n.GiftSection},e.createElement(r,{value:c.checkout.isGiftPackage,label:d,onChange:p,removePadding:!0}),c.checkout.isGiftPackage&&e.createElement(s,{type:a.TEXT_AREA,label:"",value:c.checkout.giftPackageNote||"",onChange:l,style:{marginTop:"16px"},textAreaPlaceholder:m("checkout-page:giftPackageCtaPlaceholder")})):null}));export{l as CheckoutStepShipping};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as o}from"../../../../utils/currency.js";import{useTranslation as i}from"../../../../utils/i18n.js";import n from"./style.module.scss.js";import{Button as c}from"../../components/button/index.js";import{Checkbox as r}from"../../components/checkbox/index.js";import{FormItemType as a}from"../../components/form-item/model.js";import{FormItem as s}from"../../components/form-item/index.js";import m from"../../components/error/index.js";import p from"../../components/select-box/index.js";var l=t((function(t){var o=t.vm,r=i().t;return e.createElement("div",{className:[n.StepShipping].join(" ")},e.createElement(u,{vm:o}),e.createElement(d,{vm:o}),e.createElement(c,{style:{width:"100%",marginTop:"32px"},text:r("checkout-page:actions.continueWithPayment"),isLoading:o.isStepLoading,onClick:o.onProceedToPaymentClick}))})),u=t((function(t){var c,r=t.vm,a=i().t;return e.createElement("div",{className:[n.InfoBox,r.isChangingShippingMethod?n.Dimmed:""].join(" ")},e.createElement(m,{vm:r}),null===(c=r.checkout.availableShippingMethods)||void 0===c?void 0:c.map((function(t,i){return e.createElement(p,{key:t.shippingSettingsId+t.shippingZoneRateId,label:t.rateName,isSelected:r.checkout.shippingSettingsId===t.shippingSettingsId&&r.checkout.shippingZoneRateId===t.shippingZoneRateId,rightContent:e.createElement("div",{className:n.ShippingPrice},0===t.price?a("checkout-page:free"):o(t.price,r.checkout.currencyCode)),onClick:function(){return r.onShippingMethodChange(t)}})})))})),d=t((function(t){var c=t.vm,m=i().t,p=e.useCallback((function(e){c.checkout.isGiftPackage=e}),[c]),l=e.useCallback((function(e){c.checkout.giftPackageNote=e}),[c,c.checkout]),u=e.useMemo((function(){var e;return null===(e=c.checkoutSettings.giftPackagePriceList)||void 0===e?void 0:e.find((function(e){return e.currencyCode===c.checkout.currencyCode}))}),[c,c.checkoutSettings,c.checkout]),d=m("checkout-page:giftPackageCta")+(u&&u.price?" (+ ".concat(o(u.price,u.currencyCode),")"):"");return c.checkoutSettings.isGiftPackageEnabled?e.createElement("div",{className:n.GiftSection},e.createElement(r,{value:c.checkout.isGiftPackage||!1,label:d,onChange:p,removePadding:!0}),c.checkout.isGiftPackage&&e.createElement(s,{type:a.TEXT_AREA,label:"",value:c.checkout.giftPackageNote||"",onChange:l,style:{marginTop:"16px"},textAreaPlaceholder:m("checkout-page:giftPackageCtaPlaceholder")})):null}));export{l as CheckoutStepShipping};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as o}from"../../components/button/index.js";import{CART_LS_KEY as a,CHECKOUT_LS_KEY as s}from"../../../../store/cart.js";import r from"./style.module.scss.js";import i from"../../components/svg/success-circle.js";import n from"../../components/expandable-section/index.js";import{IkasTransactionCardAssociationEnum as l}from"../../../../models/data/order-transaction/index.js";import c from"../../components/credit-card-form/svg/amex.js";import d from"../../components/credit-card-form/svg/master-card.js";import m from"../../components/credit-card-form/svg/troy.js";import u from"../../components/credit-card-form/svg/visa.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as p}from"../../../../utils/currency.js";import{useTranslation as v}from"../../../../utils/i18n.js";import"../../../../models/data/blog/index.js";import"../../../../models/data/brand/index.js";import"../../../../models/data/category/index.js";import"../../../../models/data/checkout/index.js";import"../../../../models/data/customer/address/index.js";import"../../../../models/data/customer/index.js";import"../../../../models/data/customer-review/index.js";import"mobx";import"../../../../models/data/html-meta-data/index.js";import"../../../../models/data/image/index.js";import"../../../../models/data/installment-info/index.js";import"../../../../models/data/merchant-settings/index.js";import{IkasOrderPackageStatus as E}from"../../../../models/data/order/index.js";import"../../../../models/data/order/line-item/index.js";import"../../../../api/product-option-file/index.js";import"../../../../models/data/product/index.js";import"../../../../models/data/variant-type/index.js";import"../../../../models/data/product/variant/index.js";import"../../../../models/data/product/variant/price/index.js";import"../../../../models/data/product-attribute/index.js";import"../../../../models/data/product/attribute-value/index.js";import"../../../../models/data/product-filter/index.js";import"../../../../models/data/variant-type/variant-value/index.js";import"../../../../models/data/product-option-set/index.js";import"../../../../models/data/raffle/index.js";import"../../../../models/data/product-campaing/campaign/index.js";import"../../../../models/data/customer-attribute/index.js";import"../../../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../../models/theme/theme.js";import"../../../../models/theme/page/index.js";import"../../../../models/theme/component/prop/index.js";import"../../../../models/theme/page/component/prop-value/link.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/category-list/index.js";import"../../../../models/ui/product-detail/index.js";import"../../../../models/ui/product-list/index.js";import"../../../../models/ui/product-attribute-detail/index.js";import"../../../../models/ui/product-attribute-list/index.js";import"../../../../models/ui/customer-review-list/index.js";import"../../../../models/ui/customer-review-summary-list/index.js";import"../../../../models/ui/validator/index.js";import"../../../../models/ui/validator/rules/index.js";import"../../../../models/ui/validator/form/login.js";import"../../../../models/ui/validator/form/address.js";import"../../../../models/ui/validator/form/register.js";import"../../../../models/ui/validator/form/contact-form.js";import"../../../../models/ui/validator/form/forgot-password.js";import"../../../../models/ui/validator/form/recover-password.js";import"../../../../models/ui/validator/form/account-info.js";import"../../../../models/ui/validator/form/raffle-form.js";import"../../../../models/ui/validator/form/customer-review.js";import"../../../../models/ui/raffle-list/index.js";import"../../../../models/theme/settings/index.js";import"../../../../models/theme/custom-data/index.js";import{IkasPaymentMethodType as f,IkasPaymentGatewayType as g}from"../../../../models/data/payment-gateway/index.js";import{Analytics as x}from"../../../../analytics/analytics.js";import"../../../../analytics/head/index.js";var h=t((function(t){var E,h,k,T,I=t.vm,N=v().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(a),t=localStorage.getItem(s);e&&e===I.checkout.cartId&&(I.successTransaction&&x.purchase(I.checkout,I.successTransaction),localStorage.removeItem(a)),t&&t===I.checkout.id&&localStorage.removeItem(s)}}),[]);var y=((null===(E=I.checkout.customer)||void 0===E?void 0:E.firstName)||"")+" "+((null===(h=I.checkout.customer)||void 0===h?void 0:h.lastName)||""),L=I.paymentGateways.find((function(e){var t;return e.id===(null===(t=I.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),A=null===(k=I.successTransaction)||void 0===k?void 0:k.paymentMethodDetail,S=e.useMemo((function(){var t,o,a,s;return e.createElement("div",{className:[r.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:paymentMethod")),L&&e.createElement(e.Fragment,null,!!L.logoUrl&&e.createElement("div",{className:r.PaymentLogoContainer},e.createElement("img",{src:L.logoUrl})),!L.logoUrl&&e.createElement("div",{className:r.InfoText},L.paymentMethodType===f.CREDIT_CARD&&L.type===g.INTERNAL?N("checkout-page:creditCard"):L.name),!!L.description&&L.type!==g.EXTERNAL&&e.createElement("div",{className:r.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:L.description}}))),"CREDIT_CARD"===(null===(t=I.successTransaction)||void 0===t?void 0:t.paymentMethod)&&e.createElement(e.Fragment,null,e.createElement("div",{className:r.InfoText},e.createElement("div",{className:r.CardLogoContainer},function(){var t,o;switch(null===(o=null===(t=I.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===o?void 0:o.cardAssociation){case l.AMERICAN_EXPRESS:return e.createElement(c,null);case l.MASTER_CARD:return e.createElement(d,null);case l.TROY:return e.createElement(m,null);case l.VISA:return e.createElement(u,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==A?void 0:A.lastFourDigits)||""))),(null===(o=null==A?void 0:A.installment)||void 0===o?void 0:o.installmentCount)&&A.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:r.InfoText},"".concat(A.installment.installmentCount," ").concat(N("checkout-page:installments"))),null!==A.installment.installmentPrice&&e.createElement("div",{className:r.InfoText},"".concat(A.installment.installmentCount," x ").concat(p(A.installment.installmentPrice,I.checkout.cart.currencyCode)))))),e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:billingAddress")),!!(null===(a=I.checkout.billingAddress)||void 0===a?void 0:a.company)&&e.createElement("div",{className:[r.InfoText,r.InfoTextBold].join(" ")},I.checkout.billingAddress.company),e.createElement("div",{className:r.InfoText},null===(s=I.checkout.billingAddress)||void 0===s?void 0:s.addressText)))}),[]),D=e.useMemo((function(){var t,o,a,s,i;return e.createElement("div",{className:[r.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:contactInfo")),e.createElement("div",{className:r.InfoText},null===(t=I.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:r.InfoText},y),!!(null===(o=I.checkout.shippingAddress)||void 0===o?void 0:o.phone)&&e.createElement("div",{className:r.InfoText},null===(a=I.checkout.shippingAddress)||void 0===a?void 0:a.phone)),e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:shippingAddress")),!!(null===(s=I.checkout.shippingAddress)||void 0===s?void 0:s.company)&&e.createElement("div",{className:[r.InfoText,r.InfoTextBold].join(" ")},I.checkout.shippingAddress.company),e.createElement("div",{className:r.InfoText},null===(i=I.checkout.shippingAddress)||void 0===i?void 0:i.addressText)))}),[]);return e.createElement("div",{className:r.StepSuccess},e.createElement("div",{className:r.SuccessTitleContainer},e.createElement(i,null),e.createElement("span",{className:r.SuccessTitle},N("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:r.SuccessSubTitle},N("checkout-page:orderSuccessDescription",{customerName:y})),e.createElement("div",{className:[r.InfoGrid,r.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:orderNoAndDate")),e.createElement("div",{className:[r.InfoText,r.InfoTextBold].join(" ")},"#"+(I.checkout.orderNumber||"")),e.createElement("div",{className:r.InfoText},I.checkout.dateStr),e.createElement(j,{vm:I})),e.createElement("div",null,e.createElement("div",{className:r.InfoTitle},N("checkout-page:contactInfo")),e.createElement("div",{className:r.InfoText},null===(T=I.checkout.customer)||void 0===T?void 0:T.email),e.createElement("div",{className:r.InfoText},y))),e.createElement(n,{title:N("checkout-page:paymentSummary")},S),e.createElement(n,{title:N("checkout-page:shippingSummary")},D),e.createElement("div",{className:r.Actions},e.createElement("div",{className:r.HelpText},e.createElement("span",null,N("checkout-page:helpCtaQuestion")),e.createElement("span",{className:r.Cta,onClick:function(){return I.setContactModalVisible(!0)}},N("checkout-page:helpCta"))),e.createElement(o,{text:N("checkout-page:actions.backToShopping"),onClick:I.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),j=t((function(t){var o,a,s,i=t.vm,n=v().t,l=r.Yellow;switch(null===(o=i.order)||void 0===o?void 0:o.orderPackageStatus){case E.FULFILLED:case E.PARTIALLY_FULFILLED:case E.DELIVERED:case E.PARTIALLY_DELIVERED:l=r.Green;break;case E.CANCELLED:case E.PARTIALLY_CANCELLED:case E.CANCEL_REJECTED:case E.CANCEL_REQUESTED:l=r.Red}return e.createElement("div",{className:[r.OrderStatus,l].join(" ")},(null===(a=i.order)||void 0===a?void 0:a.orderPackageStatus)?null===(s=[{types:[E.UNFULFILLED],text:n("checkout-page:orderPackageStatus.unfulfilled")},{types:[E.READY_FOR_SHIPMENT],text:n("checkout-page:orderPackageStatus.readyForShipment")},{types:[E.PARTIALLY_FULFILLED],text:n("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[E.FULFILLED],text:n("checkout-page:orderPackageStatus.fulfilled")},{types:[E.DELIVERED,E.PARTIALLY_DELIVERED],text:n("checkout-page:orderPackageStatus.delivered")},{types:[E.UNABLE_TO_DELIVER],text:n("checkout-page:orderPackageStatus.unableToDeliver")},{types:[E.CANCELLED,E.PARTIALLY_CANCELLED],text:n("checkout-page:orderPackageStatus.cancelled")},{types:[E.CANCEL_REJECTED],text:n("checkout-page:orderPackageStatus.cancelRejected")},{types:[E.REFUNDED,E.PARTIALLY_REFUNDED],text:n("checkout-page:orderPackageStatus.refunded")},{types:[E.REFUND_REQUEST_ACCEPTED],text:n("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[E.REFUND_REJECTED],text:n("checkout-page:orderPackageStatus.refundRejected")},{types:[E.REFUND_REQUESTED],text:n("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(i.order.orderPackageStatus)})))||void 0===s?void 0:s.text:"")}));export{h as StepSuccess};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as o}from"../../components/button/index.js";import{CART_LS_KEY as a}from"../../../../store/cart/index.js";import i from"./style.module.scss.js";import{Analytics as s}from"../../../../analytics/analytics.js";import"../../../../analytics/head/index.js";import r from"../../components/svg/success-circle.js";import d from"../../components/expandable-section/index.js";import n from"../../components/credit-card-form/svg/amex.js";import m from"../../components/credit-card-form/svg/master-card.js";import l from"../../components/credit-card-form/svg/troy.js";import c from"../../components/credit-card-form/svg/visa.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as u}from"../../../../utils/currency.js";import{useTranslation as p}from"../../../../utils/i18n.js";import"../../../../models/data/blog/index.js";import"../../../../models/data/brand/index.js";import"../../../../models/data/cart/campaign-offer/index.js";import"../../../../models/data/cart/index.js";import"../../../../models/data/category/index.js";import"../../../../models/data/city/index.js";import"mobx";import"../../../../models/data/country/index.js";import"../../../../models/data/customer/address/index.js";import"../../../../models/data/customer/attribute-value/index.js";import"../../../../models/data/customer/index.js";import"../../../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../../models/data/customer-attribute/index.js";import"../../../../models/data/customer-review/index.js";import"../../../../models/data/customer-review-summary/index.js";import"../../../../models/data/district/index.js";import"../../../../models/data/favorite-product/index.js";import"../../../../models/data/html-meta-data/index.js";import"../../../../models/data/image/index.js";import"../../../../models/data/merchant-settings/index.js";import"../../../../models/data/order/address/index.js";import"../../../../models/data/order/adjustment/index.js";import"../../../../models/data/order/gift-line/index.js";import"../../../../models/data/order/invoice/index.js";import"../../../../models/data/order/line-item/discount/index.js";import"../../../../models/data/order/line-item/option/value/index.js";import"../../../../models/data/order/line-item/option/index.js";import"../../../../models/data/order/line-item/variant/index.js";import"../../../../models/data/order/line-item/index.js";import"../../../../models/data/order/package/tracking-info/index.js";import"../../../../models/data/order/package/index.js";import"../../../../models/data/order/payment-method/index.js";import"../../../../models/data/order/refund/line-item/index.js";import"../../../../models/data/order/shipping-line/index.js";import"../../../../models/data/order/tax-line/index.js";import"../../../../models/data/order/transaction/index.js";import"../../../../models/data/order/index.js";import"../../../../models/data/product/attribute-value/index.js";import"../../../../models/data/product/variant/price/index.js";import"../../../../models/data/product/variant/index.js";import"../../../../models/data/variant-type/index.js";import"../../../../models/data/product/index.js";import"../../../../models/data/product-attribute/index.js";import"../../../../models/data/product-filter/index.js";import"../../../../models/data/product-campaign/campaign/index.js";import"../../../../models/data/product-campaign/filter/index.js";import"../../../../models/data/product-option-set/index.js";import"../../../../models/data/raffle/index.js";import"../../../../models/data/state/index.js";import"../../../../models/data/variant-type/variant-value/index.js";import"../../../../models/theme/theme.js";import"../../../../models/theme/page/index.js";import"../../../../models/theme/component/prop/index.js";import"../../../../models/theme/page/component/prop-value/link.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/category-list/index.js";import"../../../../models/ui/product-detail/index.js";import"../../../../models/ui/product-list/index.js";import"../../../../models/ui/product-attribute-detail/index.js";import"../../../../models/ui/product-attribute-list/index.js";import"../../../../models/ui/customer-review-list/index.js";import"../../../../models/ui/customer-review-summary-list/index.js";import"../../../../models/ui/validator/index.js";import"../../../../models/ui/validator/rules/index.js";import"../../../../models/ui/validator/form/login.js";import"../../../../models/ui/validator/form/address.js";import"../../../../models/ui/validator/form/register.js";import"../../../../models/ui/validator/form/contact-form.js";import"../../../../models/ui/validator/form/forgot-password.js";import"../../../../models/ui/validator/form/recover-password.js";import"../../../../models/ui/validator/form/account-info.js";import"../../../../models/ui/validator/form/raffle-form.js";import"../../../../models/ui/validator/form/customer-review.js";import"../../../../models/ui/raffle-list/index.js";import"../../../../models/theme/settings/index.js";import"../../../../models/theme/custom-data/index.js";import"../../../../models/data/payment-gateway/index.js";import{PaymentMethodEnum as v,PaymentGatewayTypeEnum as E,OrderPackageStatusEnum as x,TransactionCardAssociationEnum as j}from"../../../../__api/types/index.js";var f=t((function(t){var x,f,h,k,T=t.vm,y=p().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(a);e&&e===T.checkout.id&&localStorage.removeItem(a)}T.successTransaction&&s.purchase(T.checkout,T.successTransaction)}),[]);var N=((null===(x=T.checkout.customer)||void 0===x?void 0:x.firstName)||"")+" "+((null===(f=T.checkout.customer)||void 0===f?void 0:f.lastName)||""),I=T.paymentGateways.find((function(e){var t;return e.id===(null===(t=T.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),L=null===(h=T.successTransaction)||void 0===h?void 0:h.paymentMethodDetail,A=e.useMemo((function(){var t,o,a,s;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:paymentMethod")),I&&e.createElement(e.Fragment,null,!!I.logoUrl&&e.createElement("div",{className:i.PaymentLogoContainer},e.createElement("img",{src:I.logoUrl})),!I.logoUrl&&e.createElement("div",{className:i.InfoText},I.paymentMethodType===v.CREDIT_CARD&&I.type===E.INTERNAL?y("checkout-page:creditCard"):I.name),!!I.description&&I.type!==E.EXTERNAL&&e.createElement("div",{className:i.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:I.description}}))),"CREDIT_CARD"===(null===(t=T.successTransaction)||void 0===t?void 0:t.paymentMethod)&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},e.createElement("div",{className:i.CardLogoContainer},function(){var t,o;switch(null===(o=null===(t=T.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===o?void 0:o.cardAssociation){case j.AMERICAN_EXPRESS:return e.createElement(n,null);case j.MASTER_CARD:return e.createElement(m,null);case j.TROY:return e.createElement(l,null);case j.VISA:return e.createElement(c,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==L?void 0:L.lastFourDigits)||""))),(null===(o=null==L?void 0:L.installment)||void 0===o?void 0:o.installmentCount)&&L.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},"".concat(L.installment.installmentCount," ").concat(y("checkout-page:installments"))),null!==L.installment.installmentPrice&&e.createElement("div",{className:i.InfoText},"".concat(L.installment.installmentCount," x ").concat(u(L.installment.installmentPrice,T.checkout.currencyCode)))))),"address"===T.deliveryMethod&&e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:billingAddress")),!!(null===(a=T.checkout.billingAddress)||void 0===a?void 0:a.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},T.checkout.billingAddress.company),e.createElement("div",{className:i.InfoText},null===(s=T.checkout.billingAddress)||void 0===s?void 0:s.addressText)))}),[]),D=e.useMemo((function(){var t,o,a,s,r;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(t=T.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:i.InfoText},N),!!(null===(o=T.checkout.shippingAddress)||void 0===o?void 0:o.phone)&&e.createElement("div",{className:i.InfoText},null===(a=T.checkout.shippingAddress)||void 0===a?void 0:a.phone)),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},"address"===T.deliveryMethod?y("checkout-page:shippingAddress"):y("checkout-page:pickUpLocation")),!!(null===(s=T.checkout.shippingAddress)||void 0===s?void 0:s.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},T.checkout.shippingAddress.company),e.createElement("div",{className:i.InfoText},null===(r=T.checkout.shippingAddress)||void 0===r?void 0:r.addressText)))}),[]);return e.createElement("div",{className:i.StepSuccess},e.createElement("div",{className:i.SuccessTitleContainer},e.createElement(r,null),e.createElement("span",{className:i.SuccessTitle},y("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:i.SuccessSubTitle},y("address"===T.deliveryMethod?"checkout-page:orderSuccessDescription":"checkout-page:orderSuccessInStoreDeliveryDescription",{customerName:N})),e.createElement("div",{className:[i.InfoGrid,i.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:orderNoAndDate")),e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},"#"+(T.checkout.orderNumber||"")),e.createElement("div",{className:i.InfoText},T.checkout.dateStr),e.createElement(g,{vm:T})),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(k=T.checkout.customer)||void 0===k?void 0:k.email),e.createElement("div",{className:i.InfoText},N))),e.createElement(d,{title:y("checkout-page:paymentSummary")},A),e.createElement(d,{title:y("checkout-page:shippingSummary")},D),e.createElement("div",{className:i.Actions},e.createElement("div",{className:i.HelpText},e.createElement("span",null,y("checkout-page:helpCtaQuestion")),e.createElement("span",{className:i.Cta,onClick:function(){return T.setContactModalVisible(!0)}},y("checkout-page:helpCta"))),e.createElement(o,{text:y("checkout-page:actions.backToShopping"),onClick:T.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),g=t((function(t){var o,a=t.vm,s=p().t,r=i.Yellow;switch(a.checkout.orderPackageStatus){case x.FULFILLED:case x.PARTIALLY_FULFILLED:case x.DELIVERED:case x.PARTIALLY_DELIVERED:r=i.Green;break;case x.CANCELLED:case x.PARTIALLY_CANCELLED:case x.CANCEL_REJECTED:case x.CANCEL_REQUESTED:r=i.Red}return e.createElement("div",{className:[i.OrderStatus,r].join(" ")},a.checkout.orderPackageStatus?null===(o=[{types:[x.UNFULFILLED],text:s("checkout-page:orderPackageStatus.unfulfilled")},{types:[x.READY_FOR_SHIPMENT],text:s("checkout-page:orderPackageStatus.readyForShipment")},{types:[x.PARTIALLY_FULFILLED],text:s("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[x.FULFILLED],text:s("checkout-page:orderPackageStatus.fulfilled")},{types:[x.DELIVERED,x.PARTIALLY_DELIVERED],text:s("checkout-page:orderPackageStatus.delivered")},{types:[x.UNABLE_TO_DELIVER],text:s("checkout-page:orderPackageStatus.unableToDeliver")},{types:[x.CANCELLED,x.PARTIALLY_CANCELLED],text:s("checkout-page:orderPackageStatus.cancelled")},{types:[x.CANCEL_REJECTED],text:s("checkout-page:orderPackageStatus.cancelRejected")},{types:[x.REFUNDED,x.PARTIALLY_REFUNDED],text:s("checkout-page:orderPackageStatus.refunded")},{types:[x.REFUND_REQUEST_ACCEPTED],text:s("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[x.REFUND_REJECTED],text:s("checkout-page:orderPackageStatus.refundRejected")},{types:[x.REFUND_REQUESTED],text:s("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(a.checkout.orderPackageStatus)})))||void 0===o?void 0:o.text:"")}));export{f as StepSuccess};
@@ -1 +1 @@
1
- import e from'../../ext/style-inject/dist/style-inject.es.js';var t={CheckoutPage:"style-module_CheckoutPage__A_f2V",Left:"style-module_Left__2dWz6",LeftContent:"style-module_LeftContent__1Tyb7",Space:"style-module_Space__1e2de",Footer:"style-module_Footer__ebdyg",FooterItem:"style-module_FooterItem__1ofBc",FooterBullet:"style-module_FooterBullet__1dD9S",AdressStepInfo:"style-module_AdressStepInfo__27aR0",Address:"style-module_Address__2tYiR",Text:"style-module_Text__FkGkR",WithMBottom:"style-module_WithMBottom__TQbZL",Gray:"style-module_Gray__3vyMM",EditBtn:"style-module_EditBtn__3aAlL",AddressStepInfoMobile:"style-module_AddressStepInfoMobile__uwl92",ErrorContainer:"style-module_ErrorContainer__3B5Gx",Header:"style-module_Header__1vfF1",Logo:"style-module_Logo__2E8Do",LoginText:"style-module_LoginText__3FSC9",LoginBtn:"style-module_LoginBtn__XVF05",CustomerInfo:"style-module_CustomerInfo__3aAq9",Name:"style-module_Name__11iSh",Email:"style-module_Email__1AITY",LoginCta:"style-module_LoginCta__2sZZF",MobileCartSummary:"style-module_MobileCartSummary__3NrcP",RowPB:"style-module_RowPB__3M7Tz",Right:"style-module_Right__3AN4f",RightContent:"style-module_RightContent__1TcO5",PoweredBy:"style-module_PoweredBy__2kV_J",LightText:"style-module_LightText__3dSVB",ReactTooltipWrap:"style-module_ReactTooltipWrap__2hp2P"};e('.style-module_CheckoutPage__A_f2V {\n all: unset;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex;\n color: var(--checkout-primary-text-color);\n background-color: var(--checkout-primary-bg-color);\n}\n.style-module_CheckoutPage__A_f2V input::placeholder, .style-module_CheckoutPage__A_f2V textarea::placeholder {\n all: unset;\n}\n.style-module_CheckoutPage__A_f2V a, .style-module_CheckoutPage__A_f2V a:hover, .style-module_CheckoutPage__A_f2V a:focus, .style-module_CheckoutPage__A_f2V a:active {\n color: inherit;\n}\n.style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal;\n line-height: unset;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 64px;\n background-color: var(--checkout-primary-bg-color);\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n height: 48px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: transparent;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n cursor: pointer;\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: var(--checkout-primary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterBullet__1dD9S {\n margin: 0 12px;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n text-align: center;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n display: flex;\n justify-content: space-between;\n padding-left: 78px;\n padding-top: 5px;\n width: 100%;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL {\n cursor: pointer;\n user-select: none;\n align-self: flex-start;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL:hover {\n text-decoration: underline;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n padding-top: 0;\n justify-content: flex-end;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: none;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: block;\n padding-top: 16px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 24px;\n }\n}\n@media only screen and (max-width: 480px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 10px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-weight: 500;\n font-size: 20px;\n margin-bottom: 44px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n flex: 1 1 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: calc(100% - 24px);\n max-width: 200px;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none;\n}\n@media only screen and (max-width: 1280px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n max-width: 150px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n font-size: 14px;\n text-align: right;\n flex: 0 0 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 span {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginBtn__XVF05 {\n margin-left: 4px;\n font-weight: bold;\n user-select: none;\n cursor: pointer;\n font-weight: 500;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-weight: 500;\n font-size: 14px;\n user-select: none;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n height: 72px;\n margin-bottom: 0;\n padding: 0 24px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 15px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-size: 13px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n display: flex;\n flex-direction: column;\n padding-bottom: 0;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n position: sticky;\n top: 0;\n z-index: 10;\n}\n@media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 16px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: var(--checkout-secondary-bg-color);\n display: flex;\n padding-left: 64px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto;\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 168px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J {\n width: 100%;\n padding: 16px 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--checkout-primary-text-color);\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J span {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n margin-right: 8px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J a {\n display: flex;\n align-items: center;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none;\n }\n}\n\n.style-module_LightText__3dSVB {\n color: var(--checkout-secondary-text-color);\n}\n\n.style-module_ReactTooltipWrap__2hp2P {\n max-width: 300px;\n}');export{t as default};
1
+ import e from'../../ext/style-inject/dist/style-inject.es.js';var _={CheckoutPage:"style-module_CheckoutPage__A_f2V",Left:"style-module_Left__2dWz6",LeftContent:"style-module_LeftContent__1Tyb7",Space:"style-module_Space__1e2de",Footer:"style-module_Footer__ebdyg",FooterItem:"style-module_FooterItem__1ofBc",FooterBullet:"style-module_FooterBullet__1dD9S",AdressStepInfo:"style-module_AdressStepInfo__27aR0",Address:"style-module_Address__2tYiR",Text:"style-module_Text__FkGkR",WithMBottom:"style-module_WithMBottom__TQbZL",WithMTop:"style-module_WithMTop__3k7WH",Gray:"style-module_Gray__3vyMM",EditBtn:"style-module_EditBtn__3aAlL",AddressStepInfoMobile:"style-module_AddressStepInfoMobile__uwl92",ErrorContainer:"style-module_ErrorContainer__3B5Gx",Header:"style-module_Header__1vfF1",Logo:"style-module_Logo__2E8Do",LoginText:"style-module_LoginText__3FSC9",LoginBtn:"style-module_LoginBtn__XVF05",CustomerInfo:"style-module_CustomerInfo__3aAq9",Name:"style-module_Name__11iSh",Email:"style-module_Email__1AITY",LoginCta:"style-module_LoginCta__2sZZF",MobileCartSummary:"style-module_MobileCartSummary__3NrcP",RowPB:"style-module_RowPB__3M7Tz",Right:"style-module_Right__3AN4f",RightContent:"style-module_RightContent__1TcO5",PoweredBy:"style-module_PoweredBy__2kV_J",LightText:"style-module_LightText__3dSVB",ReactTooltipWrap:"style-module_ReactTooltipWrap__2hp2P"};e('.style-module_CheckoutPage__A_f2V {\n all: unset;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px !important;\n width: 100%;\n height: 100vh;\n overflow: auto;\n overflow-x: hidden;\n display: flex;\n color: var(--checkout-primary-text-color);\n background-color: var(--checkout-primary-bg-color);\n}\n.style-module_CheckoutPage__A_f2V input::placeholder,\n.style-module_CheckoutPage__A_f2V textarea::placeholder {\n all: unset;\n}\n.style-module_CheckoutPage__A_f2V a,\n.style-module_CheckoutPage__A_f2V a:hover,\n.style-module_CheckoutPage__A_f2V a:focus,\n.style-module_CheckoutPage__A_f2V a:active {\n color: inherit;\n}\n.style-module_CheckoutPage__A_f2V * {\n box-sizing: border-box !important;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n font-size: 16px;\n letter-spacing: normal;\n font-weight: normal;\n line-height: unset;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 50%;\n flex: 0 0 auto;\n display: flex;\n justify-content: flex-end;\n padding-left: 20px;\n padding-right: 64px;\n background-color: var(--checkout-primary-bg-color);\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: 400px;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-height: 100vh;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n width: 100%;\n height: 100px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Space__1e2de {\n height: 48px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n flex: 0 0 auto;\n height: 50px;\n background-color: transparent;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n cursor: pointer;\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc:hover {\n color: var(--checkout-primary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterBullet__1dD9S {\n margin: 0 12px;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg {\n width: 100%;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_Footer__ebdyg .style-module_FooterItem__1ofBc {\n text-align: center;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n display: flex;\n justify-content: space-between;\n padding-left: 78px;\n padding-top: 5px;\n width: 100%;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMTop__3k7WH {\n margin-top: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL {\n cursor: pointer;\n user-select: none;\n align-self: flex-start;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_EditBtn__3aAlL:hover {\n text-decoration: underline;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 {\n padding-top: 0;\n justify-content: flex-end;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AdressStepInfo__27aR0 .style-module_Address__2tYiR {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: none;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 {\n display: block;\n padding-top: 16px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR {\n font-size: 16px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR {\n font-size: 14px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_WithMBottom__TQbZL {\n margin-bottom: 12px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_AddressStepInfoMobile__uwl92 .style-module_Address__2tYiR .style-module_Text__FkGkR.style-module_Gray__3vyMM {\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 24px;\n }\n}\n@media only screen and (max-width: 480px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 .style-module_ErrorContainer__3B5Gx {\n padding: 0 10px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n width: 100%;\n height: 96px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-weight: 500;\n font-size: 20px;\n margin-bottom: 44px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 a {\n flex: 1 1 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n width: calc(100% - 24px);\n max-width: 200px;\n height: 64px;\n position: relative;\n user-select: none;\n cursor: pointer;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do img {\n object-fit: contain;\n object-position: left;\n pointer-events: none;\n}\n@media only screen and (max-width: 1280px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_Logo__2E8Do {\n max-width: 150px;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n font-size: 14px;\n text-align: right;\n flex: 0 0 auto;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 span {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginBtn__XVF05 {\n margin-left: 4px;\n font-weight: bold;\n user-select: none;\n cursor: pointer;\n font-weight: 500;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-weight: 500;\n font-size: 14px;\n user-select: none;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 {\n height: 72px;\n margin-bottom: 0;\n padding: 0 24px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Name__11iSh {\n font-size: 15px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_CustomerInfo__3aAq9 .style-module_Email__1AITY {\n font-size: 13px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 {\n display: flex;\n flex-direction: column;\n padding-bottom: 0;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_Header__1vfF1 .style-module_LoginText__3FSC9 .style-module_LoginCta__2sZZF {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n position: sticky;\n top: 0;\n z-index: 10;\n}\n@media only screen and (min-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_MobileCartSummary__3NrcP {\n display: none;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_RowPB__3M7Tz {\n padding-bottom: 16px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 {\n width: 100%;\n justify-content: center;\n padding-right: 0px;\n padding-left: 0px;\n }\n .style-module_CheckoutPage__A_f2V .style-module_Left__2dWz6 .style-module_LeftContent__1Tyb7 {\n width: 100%;\n min-width: auto;\n max-width: 100%;\n }\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n width: 50%;\n min-height: 100%;\n flex: 0 0 auto;\n background-color: var(--checkout-secondary-bg-color);\n display: flex;\n padding-left: 64px;\n padding-right: 20px;\n position: sticky;\n top: 0;\n overflow-y: auto;\n z-index: 1;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 {\n width: 100%;\n max-width: 600px;\n padding-top: 168px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J {\n width: 100%;\n padding: 16px 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--checkout-primary-text-color);\n user-select: none;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J span {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n margin-right: 8px;\n}\n.style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f .style-module_RightContent__1TcO5 .style-module_PoweredBy__2kV_J a {\n display: flex;\n align-items: center;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CheckoutPage__A_f2V .style-module_Right__3AN4f {\n display: none;\n }\n}\n\n.style-module_LightText__3dSVB {\n color: var(--checkout-secondary-text-color);\n}\n\n.style-module_ReactTooltipWrap__2hp2P {\n max-width: 300px;\n}');export{_ as default};
@@ -1,36 +1,10 @@
1
1
  import * as React from "react";
2
- import { ImageLoader } from "next/image.js";
2
+ import { ImageProps as NextImageProps } from "next/image.js";
3
3
  import { IkasImage } from "../../models";
4
4
  export declare const Image: React.FC<ImageProps>;
5
- declare const VALID_LAYOUT_VALUES: readonly [
6
- "fill",
7
- "fixed",
8
- "intrinsic",
9
- "responsive",
10
- undefined
11
- ];
12
- declare type LayoutValue = typeof VALID_LAYOUT_VALUES[number];
13
- declare type ImgElementStyle = NonNullable<JSX.IntrinsicElements["img"]["style"]>;
14
- declare type ImageProps = Omit<JSX.IntrinsicElements["img"], "src" | "srcSet" | "ref" | "width" | "height" | "loading" | "style"> & {
15
- loader?: ImageLoader;
5
+ declare type ImageProps = Omit<NextImageProps, "src" | "srcSet" | "blurDataURL" | "placeholder" | "loader" | "quality"> & {
16
6
  priority?: boolean;
17
- loading?: "lazy" | "eager" | undefined;
18
- objectFit?: ImgElementStyle["objectFit"];
19
- objectPosition?: ImgElementStyle["objectPosition"];
20
7
  image: IkasImage;
21
- sizes: string;
22
8
  useBlur?: boolean;
23
- } & ({
24
- width?: never;
25
- height?: never;
26
- unsized: true;
27
- } | {
28
- width?: never;
29
- height?: never;
30
- layout: "fill";
31
- } | {
32
- width: number | string;
33
- height: number | string;
34
- layout?: Exclude<LayoutValue, "fill">;
35
- });
9
+ };
36
10
  export {};
@@ -4,8 +4,6 @@ declare type Props = {
4
4
  pageType: IkasThemePageType;
5
5
  pageTitle?: string | null;
6
6
  pageDescription?: string | null;
7
- canonicals?: string[] | null;
8
- disableIndex?: boolean | null;
9
7
  pageSpecificDataStr?: string;
10
8
  merchantSettingsStr?: string;
11
9
  addOgpMetas?: boolean;
@@ -1 +1 @@
1
- import{__assign as t,__spreadArray as e}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as r}from"mobx-react-lite";import i from"next/head.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as n}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasMerchantSettings as s}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as m}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as d}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as c}from"../../storefront/index.js";import{IkasPageDataInit as l}from"../../providers/page-data-init.js";import{useRouter as p}from"next/router";var u=r((function(e){var r=e.pageType,u=e.pageTitle,h=e.pageDescription,g=e.canonicals,v=e.disableIndex,j=e.pageSpecificDataStr,x=e.merchantSettingsStr,y=e.addOgpMetas,b=e.productReviewSummary,w=p(),E="undefined"!=typeof window,k="local"===process.env.NEXT_PUBLIC_ENV,V=w.asPath.split("?")[0].replace("/",""),O=c.routings.filter((function(t){return t.id!==c.storefrontRoutingId})),S=c.getCurrentRouting(),C=(null==S?void 0:S.path)?"/"+S.path:"",R=k?"http://localhost:3333":"https://"+c.domain;o.useEffect((function(){document.documentElement.lang=c.getCurrentLocale()}),[r,j]);var L=o.useMemo((function(){if(x)return new s(JSON.parse(x))}),[x]),I=o.useMemo((function(){if(!j)return j;var t=JSON.parse(j);switch(r){case m.PRODUCT:return new d(t.product,t.selectedVariantValues);case m.CATEGORY:return new n(t);case m.BRAND:return new a(t);default:return j}}),[j]),T=o.useMemo((function(){if(I&&I.href)return"".concat(R).concat(I.href)}),[I]),D=o.useMemo((function(){var t,e=[];if(y)if(e.push({property:"og:type",content:"website"}),e.push({property:"og:site_name",content:"https://"+c.domain}),u&&e.push({property:"og:title",content:u}),h&&e.push({property:"og:description",content:h}),e.push({property:"og:url",content:T||(E?window.location.href:"")||"https://".concat(c.domain)}),I&&r===m.PRODUCT){var o=I;o.selectedVariant.mainImage&&e.push({property:"og:image",content:null===(t=o.selectedVariant.mainImage)||void 0===t?void 0:t.src})}else L&&e.push({property:"og:image",content:L.logo.src});return e}),[u,I,T,h,L,y,L]),N=o.useMemo((function(){var e=[];if(L){var o={"@context":"https://schema.org","@type":"Website",url:"https://"+c.domain},i=function(t){var e,o;return{"@context":"https://schema.org","@type":"Store",name:null==t?void 0:t.merchantName,logo:null===(e=null==t?void 0:t.logo)||void 0===e?void 0:e.src,image:null===(o=null==t?void 0:t.logo)||void 0===o?void 0:o.src,url:"https://"+c.domain}}(L);e.push(o),e.push(i)}if(I&&r===m.PRODUCT){var a=I,n=function(e,o){var r,i;try{"undefined"!=typeof window&&l._initProductDetailOnBrowser(e);var a="https://".concat(c.domain).concat(e.href);return t(t({"@context":"https://schema.org/","@type":"Product",name:e.product.name,description:null===(r=e.product.metaData)||void 0===r?void 0:r.description,image:e.selectedVariant.images.map((function(t){return t.src})),productId:e.selectedVariant.id,sku:e.selectedVariant.sku,mpn:e.selectedVariant.barcodeList.length?e.selectedVariant.barcodeList[0]:"",brand:{"@type":"Brand",name:null===(i=e.product.brand)||void 0===i?void 0:i.name}},o&&{aggregateRating:{"@type":"AggregateRating",ratingValue:o.averageStar,reviewCount:o.totalReview}}),{offers:{"@type":"Offer",url:a,priceCurrency:e.selectedVariant.price.currency||"TRY",price:e.selectedVariant.price.finalPrice,priceValidUntil:"",itemCondition:"https://schema.org/NewCondition",availability:e.selectedVariant.stock>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}})}catch(t){}}(a,b?JSON.parse(b):null);if(n&&e.push(n),a.product.categories.length)(d=f(a.product.categories[0]))&&e.push(d)}if(I&&r===m.CATEGORY){var s=function(t){var e,o,r;try{return{"@context":"http://schema.org","@type":"CollectionPage",url:"https://".concat(c.domain).concat(t.href),name:null===(e=t.metaData)||void 0===e?void 0:e.pageTitle,description:null===(o=t.metaData)||void 0===o?void 0:o.description,image:null===(r=t.image)||void 0===r?void 0:r.src}}catch(t){}}(I),d=f(I);s&&e.push(s),d&&e.push(d)}return e}),[I,L]);return o.createElement(i,null,o.createElement("title",null,u||""),o.createElement("meta",{name:"description",content:h||""}),O.map((function(t){return o.createElement("link",{key:t.id,rel:"alternate",hrefLang:t.locale,href:"".concat(R+(t.path?"/"+t.path:""),"/").concat(V)})})),!!S&&!!O.length&&o.createElement("link",{key:"current-routing-hreflang",rel:"alternate",hrefLang:S.locale,href:"".concat(R).concat(C,"/").concat(V)}),!!v&&o.createElement("meta",{name:"robots",content:"noindex"}),!!y&&D.map((function(t,e){return o.createElement("meta",{key:"".concat(t.content,"-").concat(e),property:t.property,content:t.content})})),!!g&&g.map((function(t,e){return o.createElement("link",{key:e+"url",rel:"canonical",href:"".concat(R).concat(C).concat(t)})})),o.createElement("link",{rel:"canonical",href:"".concat(R).concat(C,"/").concat(V)}),!!N.length&&N.map((function(t,e){return o.createElement("script",{key:e,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})))}));function f(t){try{return{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:t.path.length?e(e([],t.path.map((function(t,e){return{"@type":"ListItem",position:e+1,name:t.name,item:"https://"+c.domain+t.href}})),!0),[{"@type":"ListItem",position:t.path.length+1,name:t.name,item:"https://"+c.domain+t.href}],!1):[{"@type":"ListItem",position:1,name:t.name,item:"https://"+c.domain+t.href}]}}catch(t){}}export{u as IkasPageHead};
1
+ import{__assign as t,__spreadArray as e}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import r from"next/head.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import{IkasCategory as d}from"../../models/data/category/index.js";import"../../models/data/city/index.js";import"mobx";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute-value/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/customer-review-summary/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import{IkasMerchantSettings as n}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/adjustment/index.js";import"../../models/data/order/gift-line/index.js";import"../../models/data/order/invoice/index.js";import"../../models/data/order/line-item/discount/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/option/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/tracking-info/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/payment-method/index.js";import"../../models/data/order/refund/line-item/index.js";import"../../models/data/order/shipping-line/index.js";import"../../models/data/order/tax-line/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/product-campaign/campaign/index.js";import"../../models/data/product-campaign/filter/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as s}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as m}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasStorefrontConfig as p}from"../../storefront/index.js";import{IkasPageDataInit as l}from"../../providers/page-data-init.js";var c=i((function(i){var c=i.pageType,u=i.pageTitle,f=i.pageDescription,j=i.pageSpecificDataStr,g=i.merchantSettingsStr,x=i.addOgpMetas,h=i.productReviewSummary,v="undefined"!=typeof window;o.useEffect((function(){var t;document.documentElement.lang=(null===(t=p.routings.find((function(t){return t.id===p.storefrontRoutingId})))||void 0===t?void 0:t.locale)||"tr"}),[c]);var y=o.useMemo((function(){if(g)return new n(JSON.parse(g))}),[g]),b=o.useMemo((function(){if(!j)return j;var t=JSON.parse(j);switch(c){case s.PRODUCT:return new m(t.product,t.selectedVariantValues);case s.CATEGORY:return new d(t);case s.BRAND:return new a(t);default:return j}}),[j]),w=o.useMemo((function(){if(b&&b.href)return"https://".concat(p.domain).concat(b.href)}),[b]),O=o.useMemo((function(){var t,e=[];if(x)if(e.push({property:"og:type",content:"website"}),e.push({property:"og:site_name",content:"https://"+p.domain}),u&&e.push({property:"og:title",content:u}),f&&e.push({property:"og:description",content:f}),e.push({property:"og:url",content:w||(v?window.location.href:"")||"https://".concat(p.domain)}),b&&c===s.PRODUCT){var o=b;o.selectedVariant.mainImage&&e.push({property:"og:image",content:null===(t=o.selectedVariant.mainImage)||void 0===t?void 0:t.src})}else(null==y?void 0:y.logo)&&e.push({property:"og:image",content:y.logo.src});return e}),[u,b,w,f,y,x,y]),S=o.useMemo((function(){var o=[];if(y){var i={"@context":"https://schema.org","@type":"Website",url:"https://"+p.domain},r=function(t){var e,o;return{"@context":"https://schema.org","@type":"Store",name:null==t?void 0:t.merchantName,logo:null===(e=null==t?void 0:t.logo)||void 0===e?void 0:e.src,image:null===(o=null==t?void 0:t.logo)||void 0===o?void 0:o.src,url:"https://"+p.domain}}(y);o.push(i),o.push(r)}if(b&&c===s.PRODUCT){var a=function(e,o){var i,r;try{"undefined"!=typeof window&&l._initProductDetailOnBrowser(e);var a="https://".concat(p.domain).concat(e.href);return t(t({"@context":"https://schema.org/","@type":"Product",name:e.product.name,description:null===(i=e.product.metaData)||void 0===i?void 0:i.description,image:e.selectedVariant.images.map((function(t){return t.src})),productId:e.selectedVariant.id,sku:e.selectedVariant.sku,mpn:e.selectedVariant.barcodeList.length?e.selectedVariant.barcodeList[0]:"",brand:{"@type":"Brand",name:null===(r=e.product.brand)||void 0===r?void 0:r.name}},o&&{aggregateRating:{"@type":"AggregateRating",ratingValue:o.averageStar,reviewCount:o.totalReview}}),{offers:{"@type":"Offer",url:a,priceCurrency:e.selectedVariant.price.currency||"TRY",price:e.selectedVariant.price.finalPrice,priceValidUntil:"",itemCondition:"https://schema.org/NewCondition",availability:e.selectedVariant.stock>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}})}catch(t){}}(b,h?JSON.parse(h):null);a&&o.push(a)}if(b&&c===s.CATEGORY){var d=function(t){var e,o,i;try{return{"@context":"http://schema.org","@type":"CollectionPage",url:"https://".concat(p.domain).concat(t.href),name:null===(e=t.metaData)||void 0===e?void 0:e.pageTitle,description:null===(o=t.metaData)||void 0===o?void 0:o.description,image:null===(i=t.image)||void 0===i?void 0:i.src}}catch(t){}}(b),n=function(t){try{return{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:t.path.length?e(e([],t.path.map((function(t,e){return{"@type":"ListItem",position:e+1,name:t.name,item:"https://"+p.domain+t.href}})),!0),[{"@type":"ListItem",position:t.path.length+1,name:t.name,item:"https://"+p.domain+t.href}],!1):[{"@type":"ListItem",position:1,name:t.name,item:"https://"+p.domain+t.href}]}}catch(t){}}(b);d&&o.push(d),n&&o.push(n)}return o}),[b,y]);return o.createElement(r,null,o.createElement("title",null,u||""),o.createElement("meta",{name:"description",content:f||""}),!!x&&O.map((function(t,e){return o.createElement("meta",{key:"".concat(t.content,"-").concat(e),property:t.property,content:t.content})})),!!S.length&&S.map((function(t,e){return o.createElement("script",{key:e,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})))}));export{c as IkasPageHead};
@@ -7,8 +7,6 @@ export declare type IkasPageProps = {
7
7
  pageType: IkasThemePageType;
8
8
  pageTitle: string | null;
9
9
  pageDescription?: string;
10
- canonicals?: string[] | null;
11
- disableIndex?: boolean | null;
12
10
  settingsStr: string;
13
11
  merchantSettingsStr: string;
14
12
  configJson: Record<string, any>;
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../../api/product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as a}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as s}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeSettings as n}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{Analytics as m}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasPageDataInit as d}from"../../providers/page-data-init.js";import{ThemeComponent as p}from"./ThemeComponent.js";import{IkasPageHead as l}from"./head.js";import{IkasStorefrontConfig as u}from"../../storefront/index.js";import{initIkasEvents as c}from"../../analytics/events.js";var f=i((function(i){var p=i.propValuesStr,f=i.pageType,x=i.pageTitle,g=i.pageDescription,v=i.pageSpecificDataStr,h=i.canonicals,S=i.disableIndex,w=i.settingsStr,y=i.merchantSettingsStr,b=i.configJson,C=i.reInitOnBrowser,E=i.addOgpMetas,O=i.components,T=i.productReviewSummary,V=r();u.initWithJson(b,V,y),u.currentPageComponents=O;var D=u.store;D.currentPageType=f;var P=o.useState(!1),I=P[0],J=P[1],R=o.useState(new n(JSON.parse(w)))[0],k=o.useMemo((function(){return d.setPageSpecificData(v,f,I),d.initPropValues(p,V,w,!0,I)}),[I,p,f,w,v]);o.useEffect((function(){C&&J("undefined"!=typeof window),D.cartStore.getCart(),D.checkLocalization(),c()}),[]),o.useEffect((function(){var e=function(){u.store.customerStore.routeChangeInit()};return V.events.on("routeChangeStart",e),function(){V.events.off("routeChangeStart",e)}}),[]),o.useEffect((function(){!function(o,i,r){e(this,void 0,void 0,(function(){var e,n,p,l,c;return t(this,(function(t){switch(t.label){case 0:m.pageView(o),t.label=1;case 1:return t.trys.push([1,4,,5]),o===a.PRODUCT&&(e=JSON.parse(i),n=new s(e.product,e.selectedVariantValues),"undefined"!=typeof window&&d._initProductDetailOnBrowser(n),m.productView(n),u.store.customerStore.onProductView(n.product.id,n.selectedVariant.id)),o===a.CATEGORY&&(p=JSON.parse(i),l=p.path.map((function(e){return e.name})).join(" > "),l=p.path.length>0?l+" > "+p.name:p.name,m.viewCategory(l,p)),o!==a.CART?[3,3]:[4,r.cartStore.waitUntilInitialized()];case 2:t.sent(),m.viewCart(r.cartStore.cart),t.label=3;case 3:return[3,5];case 4:return c=t.sent(),console.error(c),[3,5];case 5:return[2]}}))}))}(f,v,D)}),[f,v]);var M=o.useMemo((function(){var e=k.find((function(e){return e.component.isHeader})),t=k.find((function(e){return e.component.isFooter})),i=k.filter((function(e){return!e.component.isHeader&&!e.component.isFooter}))||[];return o.createElement("div",{style:{position:"relative",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"space-between"}},o.createElement("div",null,e&&j(e,R,-1),i.map((function(e,t){return j(e,R,t)}))),t&&j(t,R,-1))}),[k,R]);return o.createElement(o.Fragment,null,o.createElement(l,{pageType:f,pageTitle:x,pageDescription:g,pageSpecificDataStr:v,canonicals:h,disableIndex:S,merchantSettingsStr:y,addOgpMetas:E,productReviewSummary:T}),M)})),j=function(e,t,i){return o.createElement(p,{key:e.pageComponent.id,index:i,pageComponentPropValue:e,settings:t})};export{f as IkasPage,j as renderComponent};
1
+ import{__awaiter as e,__generator as t}from'../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/index.js";import"../../models/data/city/index.js";import"mobx";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute-value/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/customer-review-summary/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/adjustment/index.js";import"../../models/data/order/gift-line/index.js";import"../../models/data/order/invoice/index.js";import"../../models/data/order/line-item/discount/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/option/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/tracking-info/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/payment-method/index.js";import"../../models/data/order/refund/line-item/index.js";import"../../models/data/order/shipping-line/index.js";import"../../models/data/order/tax-line/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/product-campaign/campaign/index.js";import"../../models/data/product-campaign/filter/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/theme/theme.js";import{IkasThemePageType as a}from"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import{IkasProductDetail as d}from"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeSettings as s}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{Analytics as m}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasPageDataInit as n}from"../../providers/page-data-init.js";import{ThemeComponent as p}from"./ThemeComponent.js";import{IkasPageHead as l}from"./head.js";import{IkasStorefrontConfig as u}from"../../storefront/index.js";import{initIkasEvents as c}from"../../analytics/events.js";var j=i((function(i){var p=i.propValuesStr,j=i.pageType,x=i.pageTitle,g=i.pageDescription,v=i.pageSpecificDataStr,h=i.settingsStr,y=i.merchantSettingsStr,w=i.configJson,S=i.reInitOnBrowser,b=i.addOgpMetas,C=i.components,E=i.productReviewSummary,O=r();u.initWithJson(w,O),u.currentPageComponents=C;var T=u.store;T.currentPageType=j;var V=o.useState(!1),D=V[0],P=V[1],k=o.useState(new s(JSON.parse(h)))[0],J=o.useMemo((function(){return n.setPageSpecificData(v,j,D),n.initPropValues(p,O,h,!0,D)}),[D,p,j,h,v]);o.useEffect((function(){S&&P("undefined"!=typeof window),T.cartStore.getCart(),T.checkLocalization(),c()}),[]),o.useEffect((function(){var e=function(){u.store.customerStore.routeChangeInit()};return O.events.on("routeChangeStart",e),function(){O.events.off("routeChangeStart",e)}}),[]),o.useEffect((function(){!function(o,i,r){e(this,void 0,void 0,(function(){var e,s,p,l,c;return t(this,(function(t){switch(t.label){case 0:m.pageView(o),t.label=1;case 1:return t.trys.push([1,4,,5]),o===a.PRODUCT&&(e=JSON.parse(i),s=new d(e.product,e.selectedVariantValues),"undefined"!=typeof window&&n._initProductDetailOnBrowser(s),m.productView(s),u.store.customerStore.onProductView(s.product.id,s.selectedVariant.id)),o===a.CATEGORY&&(p=JSON.parse(i),l=p.path.map((function(e){return e.name})).join(" > "),l=p.path.length>0?l+" > "+p.name:p.name,m.viewCategory(l,p)),o!==a.CART?[3,3]:[4,r.cartStore.waitUntilInitialized()];case 2:t.sent(),m.viewCart(r.cartStore.cart),t.label=3;case 3:return[3,5];case 4:return c=t.sent(),console.error(c),[3,5];case 5:return[2]}}))}))}(j,v,T)}),[j,v]);var R=o.useMemo((function(){var e=J.find((function(e){return e.component.isHeader})),t=J.find((function(e){return e.component.isFooter})),i=J.filter((function(e){return!e.component.isHeader&&!e.component.isFooter}))||[];return o.createElement("div",{style:{position:"relative",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"space-between"}},o.createElement("div",null,e&&f(e,k,-1),i.map((function(e,t){return f(e,k,t)}))),t&&f(t,k,-1))}),[J,k]);return o.createElement(o.Fragment,null,o.createElement(l,{pageType:j,pageTitle:x,pageDescription:g,pageSpecificDataStr:v,merchantSettingsStr:y,addOgpMetas:b,productReviewSummary:E}),R)})),f=function(e,t,i){return o.createElement(p,{key:e.pageComponent.id,index:i,pageComponentPropValue:e,settings:t})};export{j as IkasPage,f as renderComponent};