@ikas/storefront 2.0.0-alpha.24 → 2.0.0-alpha.3

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 (521) hide show
  1. package/build/__generated__/global-types.d.ts +2 -10
  2. package/build/__generated__/global-types.js +1 -1
  3. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  4. package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
  5. package/build/analytics/facebookPixel.js +1 -1
  6. package/build/analytics/googleTagManager.js +1 -1
  7. package/build/analytics/head/index.js +1 -1
  8. package/build/analytics/ikas.js +1 -1
  9. package/build/api/apollo.js +1 -1
  10. package/build/api/blog/__generated__/getBlog.d.ts +16 -14
  11. package/build/api/blog/__generated__/listBlog.d.ts +16 -14
  12. package/build/api/blog/__generated__/listBlogCategory.d.ts +16 -14
  13. package/build/api/blog/__generated__/listBlogMetaData.d.ts +16 -14
  14. package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
  15. package/build/api/cart/__generated__/getCart.d.ts +4 -2
  16. package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -2
  17. package/build/api/category/__generated__/listCategory.d.ts +3 -3
  18. package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -2
  19. package/build/api/checkout/__generated__/getOrder.d.ts +11 -5
  20. package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
  21. package/build/api/checkout/index.js +1 -1
  22. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +11 -5
  23. package/build/api/customer/__generated__/customerLogin.d.ts +5 -12
  24. package/build/api/customer/__generated__/getCustomerOrders.d.ts +11 -5
  25. package/build/api/customer/__generated__/getMyCustomer.d.ts +5 -4
  26. package/build/api/customer/__generated__/registerCustomer.d.ts +5 -12
  27. package/build/api/customer/__generated__/saveMyCustomer.d.ts +5 -12
  28. package/build/api/customer/index.d.ts +0 -5
  29. package/build/api/customer/index.js +1 -1
  30. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +16 -14
  31. package/build/api/product-option-set/index.js +1 -1
  32. package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +0 -3
  33. package/build/api/raffle/__generated__/listRaffle.d.ts +16 -14
  34. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +2 -2
  35. package/build/api/raffle/index.d.ts +1 -1
  36. package/build/api/raffle/index.js +1 -1
  37. package/build/api/variant-type/__generated__/listVariantType.d.ts +7 -3
  38. package/build/components/checkout/components/address-form/index.js +1 -1
  39. package/build/components/checkout/components/address-form/model.d.ts +0 -8
  40. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  41. package/build/components/checkout/components/cart-summary/index.js +1 -1
  42. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  43. package/build/components/checkout/components/step-container/index.js +1 -1
  44. package/build/components/checkout/index.js +1 -1
  45. package/build/components/checkout/model.d.ts +0 -2
  46. package/build/components/checkout/model.js +1 -1
  47. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  48. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
  49. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  50. package/build/components/checkout/steps/step-success/index.js +1 -1
  51. package/build/components/index.d.ts +1 -1
  52. package/build/components/page/ThemeComponent.js +1 -1
  53. package/build/components/page/head.js +1 -1
  54. package/build/components/page/index.js +1 -1
  55. package/build/components/page-editor/ThemeComponentEditor.d.ts +3 -0
  56. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  57. package/build/components/page-editor/index.d.ts +1 -3
  58. package/build/components/page-editor/index.js +1 -1
  59. package/build/components/page-editor/loader/index.d.ts +1 -5
  60. package/build/components/page-editor/loader/index.js +1 -1
  61. package/build/components/page-editor/loader/style.module.scss.js +1 -1
  62. package/build/components/page-editor/model.d.ts +4 -8
  63. package/build/components/page-editor/model.js +1 -1
  64. package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -1
  65. package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -1
  66. package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -1
  67. package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -1
  68. package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -1
  69. package/build/ext/@apollo/client/core/ApolloClient.js +1 -1
  70. package/build/ext/@apollo/client/core/LocalState.js +1 -1
  71. package/build/ext/@apollo/client/core/ObservableQuery.js +1 -1
  72. package/build/ext/@apollo/client/core/QueryManager.js +1 -1
  73. package/build/ext/@apollo/client/errors/index.js +1 -1
  74. package/build/ext/@apollo/client/link/context/index.js +1 -1
  75. package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -1
  76. package/build/ext/@apollo/client/link/error/index.js +1 -1
  77. package/build/ext/@apollo/client/link/http/HttpLink.js +1 -1
  78. package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -1
  79. package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -1
  80. package/build/ext/@apollo/client/link/utils/createOperation.js +1 -1
  81. package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -1
  82. package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -1
  83. package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -1
  84. package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -1
  85. package/build/ext/ts-invariant/lib/invariant.esm.js +1 -1
  86. package/build/ext/tslib/tslib.es6.js +1 -1
  87. package/build/ikas.js +2 -67
  88. package/build/index.d.ts +0 -1
  89. package/build/index.js +1 -1
  90. package/build/models/data/blog/index.js +1 -1
  91. package/build/models/data/brand/index.js +1 -1
  92. package/build/models/data/category/index.js +1 -1
  93. package/build/models/data/checkout/index.js +1 -1
  94. package/build/models/data/checkout-settings/index.d.ts +1 -1
  95. package/build/models/data/checkout-settings/index.js +1 -1
  96. package/build/models/data/customer/address/index.d.ts +1 -4
  97. package/build/models/data/customer/address/index.js +1 -1
  98. package/build/models/data/image/index.js +1 -1
  99. package/build/models/data/index.d.ts +0 -1
  100. package/build/models/data/order/address/index.d.ts +1 -2
  101. package/build/models/data/order/address/index.js +1 -1
  102. package/build/models/data/order/index.js +1 -1
  103. package/build/models/data/order/line-item/variant/index.js +1 -1
  104. package/build/models/data/product/index.js +1 -1
  105. package/build/models/data/product-filter/index.js +1 -1
  106. package/build/models/data/product-option-set/index.d.ts +0 -4
  107. package/build/models/data/product-option-set/index.js +1 -1
  108. package/build/models/data/raffle/index.d.ts +1 -2
  109. package/build/models/data/raffle/index.js +1 -1
  110. package/build/models/theme/component/index.d.ts +0 -9
  111. package/build/models/theme/component/index.js +1 -1
  112. package/build/models/theme/component/prop/index.d.ts +0 -21
  113. package/build/models/theme/component/prop/index.js +1 -1
  114. package/build/models/theme/custom-data/index.d.ts +1 -20
  115. package/build/models/theme/custom-data/index.js +1 -1
  116. package/build/models/theme/settings/index.d.ts +2 -4
  117. package/build/models/theme/settings/index.js +1 -1
  118. package/build/models/theme/settings/prop/color/index.d.ts +7 -0
  119. package/build/models/theme/settings/prop/color/index.js +1 -0
  120. package/build/models/theme/settings/{favicon → prop/favicon}/index.d.ts +0 -0
  121. package/build/models/theme/settings/{favicon → prop/favicon}/index.js +0 -0
  122. package/build/models/ui/product-detail/index.js +1 -1
  123. package/build/models/ui/product-list/index.d.ts +1 -1
  124. package/build/models/ui/product-list/index.js +1 -1
  125. package/build/models/ui/validator/form/account-info.js +1 -1
  126. package/build/models/ui/validator/form/address.js +1 -1
  127. package/build/models/ui/validator/form/register.js +1 -1
  128. package/build/pages/checkout.js +1 -1
  129. package/build/pages/editor.d.ts +3 -4
  130. package/build/pages/editor.js +1 -1
  131. package/build/providers/page-data-get.d.ts +1 -1
  132. package/build/providers/page-data-get.js +1 -1
  133. package/build/providers/page-data-init.d.ts +1 -3
  134. package/build/providers/page-data-init.js +1 -1
  135. package/build/providers/page-data-next.d.ts +1 -2
  136. package/build/providers/page-data-next.js +1 -1
  137. package/build/providers/prop-value/custom.d.ts +0 -1
  138. package/build/providers/prop-value/custom.js +1 -1
  139. package/build/scripts/generators/__generated__/global-types.d.ts +661 -0
  140. package/build/scripts/generators/analytics/analytics.d.ts +37 -0
  141. package/build/scripts/generators/analytics/events.d.ts +36 -0
  142. package/build/scripts/generators/analytics/facebookPixel.d.ts +15 -0
  143. package/build/scripts/generators/analytics/googleTagManager.d.ts +201 -0
  144. package/build/scripts/generators/analytics/head/index.d.ts +7 -0
  145. package/build/scripts/generators/analytics/ikas.d.ts +133 -0
  146. package/build/scripts/generators/analytics/index.d.ts +2 -0
  147. package/build/scripts/generators/api/apollo.d.ts +10 -0
  148. package/build/scripts/generators/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +24 -0
  149. package/build/scripts/generators/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +19 -0
  150. package/build/scripts/generators/api/back-in-stock-reminder/index.d.ts +23 -0
  151. package/build/scripts/generators/api/blog/__generated__/getBlog.d.ts +108 -0
  152. package/build/scripts/generators/api/blog/__generated__/listBlog.d.ts +111 -0
  153. package/build/scripts/generators/api/blog/__generated__/listBlogCategory.d.ts +63 -0
  154. package/build/scripts/generators/api/blog/__generated__/listBlogMetaData.d.ts +55 -0
  155. package/build/scripts/generators/api/blog/index.d.ts +32 -0
  156. package/build/scripts/generators/api/brand/__generated__/listProductBrand.d.ts +88 -0
  157. package/build/scripts/generators/api/brand/index.d.ts +16 -0
  158. package/build/scripts/generators/api/cart/__generated__/getCart.d.ts +178 -0
  159. package/build/scripts/generators/api/cart/__generated__/saveItemToCart.d.ts +187 -0
  160. package/build/scripts/generators/api/cart/index.d.ts +5 -0
  161. package/build/scripts/generators/api/category/__generated__/listCategory.d.ts +99 -0
  162. package/build/scripts/generators/api/category/__generated__/listCategoryPaths.d.ts +32 -0
  163. package/build/scripts/generators/api/category/index.d.ts +18 -0
  164. package/build/scripts/generators/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +11 -0
  165. package/build/scripts/generators/api/checkout/__generated__/checkStocks.d.ts +18 -0
  166. package/build/scripts/generators/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +22 -0
  167. package/build/scripts/generators/api/checkout/__generated__/getCheckoutByCartId.d.ts +10 -0
  168. package/build/scripts/generators/api/checkout/__generated__/getCheckoutById.d.ts +574 -0
  169. package/build/scripts/generators/api/checkout/__generated__/getOrder.d.ts +620 -0
  170. package/build/scripts/generators/api/checkout/__generated__/listCheckoutSettings.d.ts +34 -0
  171. package/build/scripts/generators/api/checkout/__generated__/listPaymentGateway.d.ts +42 -0
  172. package/build/scripts/generators/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +23 -0
  173. package/build/scripts/generators/api/checkout/__generated__/saveCheckout.d.ts +11 -0
  174. package/build/scripts/generators/api/checkout/index.d.ts +29 -0
  175. package/build/scripts/generators/api/city/__generated__/listCity.d.ts +20 -0
  176. package/build/scripts/generators/api/city/index.d.ts +4 -0
  177. package/build/scripts/generators/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
  178. package/build/scripts/generators/api/contact-form/index.d.ts +10 -0
  179. package/build/scripts/generators/api/country/__generated__/getAvailableShippingCountries.d.ts +6 -0
  180. package/build/scripts/generators/api/country/__generated__/getMyCountry.d.ts +3 -0
  181. package/build/scripts/generators/api/country/__generated__/listCountry.d.ts +41 -0
  182. package/build/scripts/generators/api/country/index.d.ts +6 -0
  183. package/build/scripts/generators/api/customer/__generated__/checkCustomerEmail.d.ts +10 -0
  184. package/build/scripts/generators/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
  185. package/build/scripts/generators/api/customer/__generated__/createOrderRefundRequest.d.ts +590 -0
  186. package/build/scripts/generators/api/customer/__generated__/customerForgotPassword.d.ts +7 -0
  187. package/build/{api/customer/__generated__/customerSocialLogin.d.ts → scripts/generators/api/customer/__generated__/customerLogin.d.ts} +23 -29
  188. package/build/scripts/generators/api/customer/__generated__/customerRecoverPassword.d.ts +8 -0
  189. package/build/scripts/generators/api/customer/__generated__/customerRefreshToken.d.ts +11 -0
  190. package/build/scripts/generators/api/customer/__generated__/getCustomerOrders.d.ts +620 -0
  191. package/build/scripts/generators/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
  192. package/build/scripts/generators/api/customer/__generated__/getMyCustomer.d.ts +141 -0
  193. package/build/scripts/generators/api/customer/__generated__/listOrderRefundSettings.d.ts +13 -0
  194. package/build/scripts/generators/api/customer/__generated__/listOrderTransactions.d.ts +53 -0
  195. package/build/scripts/generators/api/customer/__generated__/registerCustomer.d.ts +151 -0
  196. package/build/scripts/generators/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
  197. package/build/scripts/generators/api/customer/__generated__/saveMyCustomer.d.ts +148 -0
  198. package/build/scripts/generators/api/customer/index.d.ts +44 -0
  199. package/build/scripts/generators/api/customer-review/__generated__/createCustomerReview.d.ts +11 -0
  200. package/build/scripts/generators/api/customer-review/__generated__/listCustomerReviews.d.ts +50 -0
  201. package/build/scripts/generators/api/customer-review/index.d.ts +24 -0
  202. package/build/scripts/generators/api/district/__generated__/listDistrict.d.ts +16 -0
  203. package/build/scripts/generators/api/district/index.d.ts +4 -0
  204. package/build/scripts/generators/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
  205. package/build/scripts/generators/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
  206. package/build/scripts/generators/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
  207. package/build/scripts/generators/api/favorite-product/index.d.ts +6 -0
  208. package/build/scripts/generators/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +28 -0
  209. package/build/scripts/generators/api/html-meta-data/index.d.ts +4 -0
  210. package/build/scripts/generators/api/index.d.ts +23 -5
  211. package/build/scripts/generators/api/info.d.ts +4 -4
  212. package/build/scripts/generators/api/merchant/__generated__/listMerchantSettings.d.ts +9 -0
  213. package/build/scripts/generators/api/merchant/index.d.ts +4 -0
  214. package/build/scripts/generators/api/product-attribute/__generated__/listProductAttribute.d.ts +72 -0
  215. package/build/scripts/generators/api/product-attribute/index.d.ts +4 -0
  216. package/build/scripts/generators/api/product-option-set/__generated__/ListProductOptionSet.d.ts +90 -0
  217. package/build/scripts/generators/api/product-option-set/index.d.ts +4 -0
  218. package/build/scripts/generators/api/product-search/__generated__/getProductFilterData.d.ts +61 -0
  219. package/build/scripts/generators/api/product-search/__generated__/searchProducts.d.ts +26 -0
  220. package/build/scripts/generators/api/product-search/index.d.ts +20 -0
  221. package/build/scripts/generators/api/raffle/__generated__/getRafflesByCustomerId.d.ts +41 -0
  222. package/build/scripts/generators/api/raffle/__generated__/listRaffle.d.ts +83 -0
  223. package/build/scripts/generators/api/raffle/__generated__/listRaffleMetaData.d.ts +22 -0
  224. package/build/scripts/generators/api/raffle/__generated__/saveRaffleParticipant.d.ts +30 -0
  225. package/build/scripts/generators/api/raffle/index.d.ts +24 -0
  226. package/build/scripts/generators/api/state/__generated__/listState.d.ts +19 -0
  227. package/build/scripts/generators/api/state/index.d.ts +4 -0
  228. package/build/scripts/generators/api/stock-location/__generated__/listStockLocation.d.ts +7 -0
  229. package/build/scripts/generators/api/stock-location/index.d.ts +4 -0
  230. package/build/scripts/generators/api/storefront/__generated__/getStorefront.d.ts +52 -0
  231. package/build/scripts/generators/api/storefront/index.d.ts +4 -0
  232. package/build/scripts/generators/api/variant-type/__generated__/listVariantType.d.ts +76 -0
  233. package/build/scripts/generators/api/variant-type/index.d.ts +4 -0
  234. package/build/scripts/generators/components/checkout/components/address-form/index.d.ts +3 -0
  235. package/build/scripts/generators/components/checkout/components/address-form/model.d.ts +123 -0
  236. package/build/scripts/generators/components/checkout/components/button/index.d.ts +12 -0
  237. package/build/scripts/generators/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
  238. package/build/scripts/generators/components/checkout/components/cart-summary/index.d.ts +8 -0
  239. package/build/scripts/generators/components/checkout/components/checkbox/check.d.ts +6 -0
  240. package/build/scripts/generators/components/checkout/components/checkbox/index.d.ts +10 -0
  241. package/build/scripts/generators/components/checkout/components/credit-card-form/index.d.ts +7 -0
  242. package/build/scripts/generators/components/checkout/components/credit-card-form/model.d.ts +26 -0
  243. package/build/scripts/generators/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
  244. package/build/scripts/generators/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
  245. package/build/scripts/generators/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
  246. package/build/scripts/generators/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
  247. package/build/scripts/generators/components/checkout/components/customer-addresses/index.d.ts +15 -0
  248. package/build/scripts/generators/components/checkout/components/customer-addresses/model.d.ts +21 -0
  249. package/build/scripts/generators/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
  250. package/build/scripts/generators/components/checkout/components/error/index.d.ts +7 -0
  251. package/build/scripts/generators/components/checkout/components/error/no-shipping-error/index.d.ts +6 -0
  252. package/build/scripts/generators/components/checkout/components/error/payment-error/index.d.ts +8 -0
  253. package/build/scripts/generators/components/checkout/components/error/stock-error/index.d.ts +8 -0
  254. package/build/scripts/generators/components/checkout/components/error/unknown-error/index.d.ts +6 -0
  255. package/build/scripts/generators/components/checkout/components/expandable-section/index.d.ts +6 -0
  256. package/build/scripts/generators/components/checkout/components/form-item/caret-down.d.ts +6 -0
  257. package/build/scripts/generators/components/checkout/components/form-item/index.d.ts +3 -0
  258. package/build/scripts/generators/components/checkout/components/form-item/model.d.ts +59 -0
  259. package/build/scripts/generators/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
  260. package/build/scripts/generators/components/checkout/components/input-with-button/index.d.ts +11 -0
  261. package/build/scripts/generators/components/checkout/components/modal/index.d.ts +8 -0
  262. package/build/scripts/generators/components/checkout/components/notification-box/index.d.ts +9 -0
  263. package/build/scripts/generators/components/checkout/components/select-box/index.d.ts +13 -0
  264. package/build/scripts/generators/components/checkout/components/step-container/index.d.ts +15 -0
  265. package/build/scripts/generators/components/checkout/components/svg/arrow-down.d.ts +6 -0
  266. package/build/scripts/generators/components/checkout/components/svg/arrow-left.d.ts +6 -0
  267. package/build/scripts/generators/components/checkout/components/svg/arrow-right.d.ts +6 -0
  268. package/build/scripts/generators/components/checkout/components/svg/cross.d.ts +6 -0
  269. package/build/scripts/generators/components/checkout/components/svg/discount.d.ts +6 -0
  270. package/build/scripts/generators/components/checkout/components/svg/external.d.ts +6 -0
  271. package/build/scripts/generators/components/checkout/components/svg/gift.d.ts +7 -0
  272. package/build/scripts/generators/components/checkout/components/svg/ikas.d.ts +6 -0
  273. package/build/scripts/generators/components/checkout/components/svg/lock.d.ts +6 -0
  274. package/build/scripts/generators/components/checkout/components/svg/shopping-cart.d.ts +6 -0
  275. package/build/scripts/generators/components/checkout/components/svg/success-circle.d.ts +6 -0
  276. package/build/scripts/generators/components/checkout/components/svg/tag.d.ts +6 -0
  277. package/build/scripts/generators/components/checkout/components/svg/warning.d.ts +6 -0
  278. package/build/scripts/generators/components/checkout/components/toggle/index.d.ts +10 -0
  279. package/build/scripts/generators/components/checkout/components/tooltip/index.d.ts +8 -0
  280. package/build/scripts/generators/components/checkout/index.d.ts +32 -0
  281. package/build/scripts/generators/components/checkout/model.d.ts +120 -0
  282. package/build/scripts/generators/components/checkout/steps/step-info/index.d.ts +7 -0
  283. package/build/scripts/generators/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
  284. package/build/scripts/generators/components/checkout/steps/step-payment/index.d.ts +7 -0
  285. package/build/scripts/generators/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
  286. package/build/scripts/generators/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
  287. package/build/scripts/generators/components/checkout/steps/step-shipping/index.d.ts +7 -0
  288. package/build/scripts/generators/components/checkout/steps/step-success/index.d.ts +7 -0
  289. package/build/scripts/generators/components/image/index.d.ts +36 -0
  290. package/build/scripts/generators/components/index.d.ts +4 -6
  291. package/build/scripts/generators/components/page/ThemeComponent.d.ts +21 -0
  292. package/build/scripts/generators/components/page/head.d.ts +12 -0
  293. package/build/scripts/generators/components/page/index.d.ts +18 -0
  294. package/build/scripts/generators/components/page-editor/ThemeComponentEditor.d.ts +33 -0
  295. package/build/scripts/generators/components/page-editor/error/index.d.ts +5 -0
  296. package/build/scripts/generators/components/page-editor/index.d.ts +2 -0
  297. package/build/scripts/generators/components/page-editor/loader/index.d.ts +2 -0
  298. package/build/scripts/generators/components/page-editor/model.d.ts +65 -0
  299. package/build/scripts/generators/config/content.d.ts +3 -4
  300. package/build/scripts/generators/config/index.d.ts +6 -6
  301. package/build/scripts/generators/index.d.ts +6 -5
  302. package/build/scripts/generators/index.js +15 -0
  303. package/build/scripts/generators/models/data/blog/index.d.ts +67 -0
  304. package/build/scripts/generators/models/data/brand/index.d.ts +21 -0
  305. package/build/scripts/generators/models/data/cart/index.d.ts +47 -0
  306. package/build/scripts/generators/models/data/category/index.d.ts +52 -0
  307. package/build/scripts/generators/models/data/checkout/index.d.ts +103 -0
  308. package/build/scripts/generators/models/data/checkout-settings/index.d.ts +25 -0
  309. package/build/scripts/generators/models/data/city/index.d.ts +4 -0
  310. package/build/scripts/generators/models/data/contact-form/index.d.ts +7 -0
  311. package/build/scripts/generators/models/data/country/index.d.ts +8 -0
  312. package/build/scripts/generators/models/data/customer/address/index.d.ts +49 -0
  313. package/build/scripts/generators/models/data/customer/index.d.ts +33 -0
  314. package/build/scripts/generators/models/data/customer-review/index.d.ts +23 -0
  315. package/build/scripts/generators/models/data/customer-review-settings/index.d.ts +4 -0
  316. package/build/scripts/generators/models/data/district/index.d.ts +4 -0
  317. package/build/scripts/generators/models/data/favorite-product/index.d.ts +6 -0
  318. package/build/scripts/generators/models/data/html-meta-data/index.d.ts +23 -0
  319. package/build/scripts/generators/models/data/image/index.d.ts +8 -0
  320. package/build/scripts/generators/models/data/index.d.ts +37 -0
  321. package/build/scripts/generators/models/data/installment-info/index.d.ts +30 -0
  322. package/build/scripts/generators/models/data/merchant-settings/index.d.ts +8 -0
  323. package/build/scripts/generators/models/data/order/address/index.d.ts +50 -0
  324. package/build/scripts/generators/models/data/order/adjustment/index.d.ts +16 -0
  325. package/build/scripts/generators/models/data/order/gift-line/index.d.ts +4 -0
  326. package/build/scripts/generators/models/data/order/index.d.ts +147 -0
  327. package/build/scripts/generators/models/data/order/line-item/discount/index.d.ts +11 -0
  328. package/build/scripts/generators/models/data/order/line-item/index.d.ts +42 -0
  329. package/build/scripts/generators/models/data/order/line-item/options/index.d.ts +10 -0
  330. package/build/scripts/generators/models/data/order/line-item/options/options-value/index.d.ts +6 -0
  331. package/build/scripts/generators/models/data/order/line-item/variant/index.d.ts +25 -0
  332. package/build/scripts/generators/models/data/order/refund/index.d.ts +6 -0
  333. package/build/scripts/generators/models/data/order/refund/refund-line-item/index.d.ts +5 -0
  334. package/build/scripts/generators/models/data/order/refund/settings.d.ts +6 -0
  335. package/build/scripts/generators/models/data/order/shipping-line/index.d.ts +7 -0
  336. package/build/scripts/generators/models/data/order-transaction/index.d.ts +74 -0
  337. package/build/scripts/generators/models/data/payment-gateway/index.d.ts +61 -0
  338. package/build/scripts/generators/models/data/product/attribute-value/index.d.ts +20 -0
  339. package/build/scripts/generators/models/data/product/index.d.ts +35 -0
  340. package/build/scripts/generators/models/data/product/variant/index.d.ts +24 -0
  341. package/build/scripts/generators/models/data/product/variant/price/index.d.ts +11 -0
  342. package/build/scripts/generators/models/data/product/variant-type/index.d.ts +6 -0
  343. package/build/scripts/generators/models/data/product-attribute/index.d.ts +34 -0
  344. package/build/scripts/generators/models/data/product-attribute/product-attribute-option/index.d.ts +5 -0
  345. package/build/scripts/generators/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
  346. package/build/scripts/generators/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
  347. package/build/scripts/generators/models/data/product-back-in-stock-settings/index.d.ts +3 -0
  348. package/build/scripts/generators/models/data/product-cart-item-options/index.d.ts +6 -0
  349. package/build/scripts/generators/models/data/product-filter/index.d.ts +109 -0
  350. package/build/scripts/generators/models/data/product-option-set/index.d.ts +100 -0
  351. package/build/scripts/generators/models/data/product-tag/index.d.ts +5 -0
  352. package/build/scripts/generators/models/data/raffle/index.d.ts +65 -0
  353. package/build/scripts/generators/models/data/sales-channel/index.d.ts +18 -0
  354. package/build/scripts/generators/models/data/simple-product/index.d.ts +136 -0
  355. package/build/scripts/generators/models/data/state/index.d.ts +5 -0
  356. package/build/scripts/generators/models/data/storefront/domain/index.d.ts +8 -0
  357. package/build/scripts/generators/models/data/storefront/index.d.ts +23 -0
  358. package/build/scripts/generators/models/data/storefront/localization/index.d.ts +7 -0
  359. package/build/scripts/generators/models/data/storefront/routing/index.d.ts +9 -0
  360. package/build/scripts/generators/models/data/storefront/theme/index.d.ts +13 -0
  361. package/build/scripts/generators/models/data/storefront/theme-localization/index.d.ts +12 -0
  362. package/build/scripts/generators/models/data/variant-type/index.d.ts +26 -0
  363. package/build/scripts/generators/models/data/variant-type/variant-value/index.d.ts +11 -0
  364. package/build/scripts/generators/models/index.d.ts +3 -0
  365. package/build/scripts/generators/models/theme/component/index.d.ts +10 -0
  366. package/build/scripts/generators/models/theme/component/prop/index.d.ts +42 -0
  367. package/build/scripts/generators/models/theme/custom-data/index.d.ts +24 -0
  368. package/build/scripts/generators/models/theme/index.d.ts +20 -0
  369. package/build/scripts/generators/models/theme/page/component/index.d.ts +6 -0
  370. package/build/scripts/generators/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
  371. package/build/scripts/generators/models/theme/page/component/prop-value/attribute.d.ts +7 -0
  372. package/build/scripts/generators/models/theme/page/component/prop-value/blog-category-list.d.ts +7 -0
  373. package/build/scripts/generators/models/theme/page/component/prop-value/blog-category.d.ts +5 -0
  374. package/build/scripts/generators/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
  375. package/build/scripts/generators/models/theme/page/component/prop-value/blog.d.ts +5 -0
  376. package/build/scripts/generators/models/theme/page/component/prop-value/brand-list.d.ts +9 -0
  377. package/build/scripts/generators/models/theme/page/component/prop-value/brand.d.ts +5 -0
  378. package/build/scripts/generators/models/theme/page/component/prop-value/category-list.d.ts +9 -0
  379. package/build/scripts/generators/models/theme/page/component/prop-value/category.d.ts +5 -0
  380. package/build/scripts/generators/models/theme/page/component/prop-value/link.d.ts +19 -0
  381. package/build/scripts/generators/models/theme/page/component/prop-value/product-detail.d.ts +6 -0
  382. package/build/scripts/generators/models/theme/page/component/prop-value/product-list.d.ts +17 -0
  383. package/build/scripts/generators/models/theme/page/component/prop-value/raffle-list.d.ts +5 -0
  384. package/build/scripts/generators/models/theme/page/component/prop-value/raffle.d.ts +5 -0
  385. package/build/scripts/generators/models/theme/page/index.d.ts +43 -0
  386. package/build/scripts/generators/models/theme/settings/index.d.ts +13 -0
  387. package/build/scripts/generators/models/theme/settings/prop/color/index.d.ts +7 -0
  388. package/build/scripts/generators/models/theme/settings/prop/favicon/index.d.ts +4 -0
  389. package/build/scripts/generators/models/theme/theme.d.ts +16 -0
  390. package/build/scripts/generators/models/ui/blog-category-list/index.d.ts +52 -0
  391. package/build/scripts/generators/models/ui/blog-list/index.d.ts +56 -0
  392. package/build/scripts/generators/models/ui/brand-list/index.d.ts +61 -0
  393. package/build/scripts/generators/models/ui/category-list/index.d.ts +61 -0
  394. package/build/scripts/generators/models/ui/component-renderer/index.d.ts +7 -0
  395. package/build/scripts/generators/models/ui/customer-review-list/index.d.ts +43 -0
  396. package/build/scripts/generators/models/ui/index.d.ts +26 -0
  397. package/build/scripts/generators/models/ui/navigation-link/index.d.ts +8 -0
  398. package/build/scripts/generators/models/ui/product-attribute-detail/index.d.ts +8 -0
  399. package/build/scripts/generators/models/ui/product-attribute-list/index.d.ts +9 -0
  400. package/build/scripts/generators/models/ui/product-detail/index.d.ts +28 -0
  401. package/build/scripts/generators/models/ui/product-list/index.d.ts +132 -0
  402. package/build/scripts/generators/models/ui/raffle-list/index.d.ts +54 -0
  403. package/build/scripts/generators/models/ui/validator/form/account-info.d.ts +40 -0
  404. package/build/scripts/generators/models/ui/validator/form/address.d.ts +75 -0
  405. package/build/scripts/generators/models/ui/validator/form/contact-form.d.ts +45 -0
  406. package/build/scripts/generators/models/ui/validator/form/customer-review.d.ts +37 -0
  407. package/build/scripts/generators/models/ui/validator/form/forgot-password.d.ts +29 -0
  408. package/build/scripts/generators/models/ui/validator/form/login.d.ts +35 -0
  409. package/build/scripts/generators/models/ui/validator/form/raffle-form.d.ts +60 -0
  410. package/build/scripts/generators/models/ui/validator/form/recover-password.d.ts +36 -0
  411. package/build/scripts/generators/models/ui/validator/form/register.d.ts +48 -0
  412. package/build/scripts/generators/models/ui/validator/index.d.ts +27 -0
  413. package/build/scripts/generators/models/ui/validator/rules/index.d.ts +91 -0
  414. package/build/scripts/generators/pages/404.d.ts +6 -0
  415. package/build/scripts/generators/pages/[slug]/index.d.ts +7 -0
  416. package/build/scripts/generators/pages/account/addresses.d.ts +6 -0
  417. package/build/scripts/generators/pages/account/favorite-products.d.ts +6 -0
  418. package/build/scripts/generators/pages/account/forgot-password.d.ts +6 -0
  419. package/build/scripts/generators/pages/account/index.d.ts +6 -0
  420. package/build/scripts/generators/pages/account/login.d.ts +6 -0
  421. package/build/scripts/generators/pages/account/orders/[id].d.ts +6 -0
  422. package/build/scripts/generators/pages/account/orders/index.d.ts +6 -0
  423. package/build/scripts/generators/pages/account/raffles.d.ts +6 -0
  424. package/build/scripts/generators/pages/account/recover-password.d.ts +6 -0
  425. package/build/scripts/generators/pages/account/register.d.ts +6 -0
  426. package/build/scripts/generators/pages/blog/[slug].d.ts +7 -0
  427. package/build/scripts/generators/pages/blog/index.d.ts +6 -0
  428. package/build/scripts/generators/pages/cart.d.ts +6 -0
  429. package/build/scripts/generators/pages/checkout.d.ts +18 -0
  430. package/build/scripts/generators/pages/editor.d.ts +9 -0
  431. package/build/scripts/generators/pages/home.d.ts +6 -0
  432. package/build/scripts/generators/pages/index.d.ts +22 -7
  433. package/build/scripts/generators/pages/pages/[slug].d.ts +7 -0
  434. package/build/scripts/generators/pages/raffle/[slug].d.ts +7 -0
  435. package/build/scripts/generators/pages/raffle/index.d.ts +6 -0
  436. package/build/scripts/generators/pages/search.d.ts +6 -0
  437. package/build/scripts/generators/providers/helpers/raffles.d.ts +2 -0
  438. package/build/scripts/generators/providers/page-data-get.d.ts +61 -0
  439. package/build/scripts/generators/providers/page-data-init.d.ts +64 -0
  440. package/build/scripts/generators/providers/page-data-next.d.ts +243 -0
  441. package/build/scripts/generators/providers/placeholders.d.ts +7 -0
  442. package/build/scripts/generators/providers/prop-value/attribute-list.d.ts +12 -0
  443. package/build/scripts/generators/providers/prop-value/attribute.d.ts +12 -0
  444. package/build/scripts/generators/providers/prop-value/blog-category-list.d.ts +7 -0
  445. package/build/scripts/generators/providers/prop-value/blog-category.d.ts +11 -0
  446. package/build/scripts/generators/providers/prop-value/blog-list.d.ts +9 -0
  447. package/build/scripts/generators/providers/prop-value/blog.d.ts +11 -0
  448. package/build/scripts/generators/providers/prop-value/boolean.d.ts +6 -0
  449. package/build/scripts/generators/providers/prop-value/brand-list.d.ts +7 -0
  450. package/build/scripts/generators/providers/prop-value/brand.d.ts +11 -0
  451. package/build/scripts/generators/providers/prop-value/category-list.d.ts +7 -0
  452. package/build/scripts/generators/providers/prop-value/category.d.ts +11 -0
  453. package/build/scripts/generators/providers/prop-value/color.d.ts +6 -0
  454. package/build/scripts/generators/providers/prop-value/custom.d.ts +44 -0
  455. package/build/scripts/generators/providers/prop-value/image-list.d.ts +7 -0
  456. package/build/scripts/generators/providers/prop-value/image.d.ts +7 -0
  457. package/build/scripts/generators/providers/prop-value/index.d.ts +3 -0
  458. package/build/scripts/generators/providers/prop-value/link.d.ts +16 -0
  459. package/build/scripts/generators/providers/prop-value/product-detail.d.ts +11 -0
  460. package/build/scripts/generators/providers/prop-value/product-list.d.ts +9 -0
  461. package/build/scripts/generators/providers/prop-value/raffle-list.d.ts +5 -0
  462. package/build/scripts/generators/providers/prop-value/raffle.d.ts +11 -0
  463. package/build/scripts/generators/providers/prop-value/rich-text.d.ts +6 -0
  464. package/build/scripts/generators/providers/prop-value/text.d.ts +6 -0
  465. package/build/scripts/generators/scripts/generators/api/index.d.ts +5 -0
  466. package/build/scripts/generators/scripts/generators/api/info.d.ts +12 -0
  467. package/build/scripts/generators/scripts/generators/components/index.d.ts +6 -0
  468. package/build/scripts/generators/scripts/generators/config/content.d.ts +36 -0
  469. package/build/scripts/generators/scripts/generators/config/index.d.ts +8 -0
  470. package/build/scripts/generators/scripts/generators/index.d.ts +6 -0
  471. package/build/scripts/generators/scripts/generators/pages/index.d.ts +7 -0
  472. package/build/scripts/generators/scripts/generators/pages/info.d.ts +14 -0
  473. package/build/scripts/generators/scripts/generators/store/content.d.ts +1 -0
  474. package/build/scripts/generators/scripts/generators/store/index.d.ts +3 -0
  475. package/build/scripts/generators/scripts/generators/theme/index.d.ts +6 -0
  476. package/build/scripts/generators/scripts/ikas.d.ts +2 -0
  477. package/build/scripts/generators/store/base.d.ts +25 -0
  478. package/build/scripts/generators/store/cart.d.ts +30 -0
  479. package/build/scripts/generators/store/customer.d.ts +73 -0
  480. package/build/scripts/generators/store/index.d.ts +1 -3
  481. package/build/scripts/generators/storefront/index.d.ts +53 -0
  482. package/build/scripts/generators/theme/index.d.ts +4 -4
  483. package/build/scripts/generators/utils/currency.d.ts +7 -0
  484. package/build/scripts/generators/utils/fs.d.ts +28 -0
  485. package/build/scripts/generators/utils/helper.d.ts +10 -0
  486. package/build/scripts/generators/utils/i18n.d.ts +20 -0
  487. package/build/scripts/generators/utils/index.d.ts +3 -0
  488. package/build/store/cart.d.ts +7 -6
  489. package/build/store/cart.js +1 -1
  490. package/build/store/customer.d.ts +0 -19
  491. package/build/store/customer.js +1 -1
  492. package/build/storefront/index.d.ts +3 -5
  493. package/build/storefront/index.js +1 -1
  494. package/build/utils/fs.d.ts +2 -2
  495. package/package.json +7 -8
  496. package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +0 -15
  497. package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +0 -15
  498. package/build/models/data/language/index.d.ts +0 -6
  499. package/build/models/data/slider/index.d.ts +0 -5
  500. package/build/models/data/slider/index.js +0 -1
  501. package/build/models/theme/settings/color/index.d.ts +0 -14
  502. package/build/models/theme/settings/color/index.js +0 -1
  503. package/build/models/theme/settings/font-family/index.d.ts +0 -5
  504. package/build/models/theme/settings/font-family/index.js +0 -1
  505. package/build/providers/prop-value/slider.d.ts +0 -11
  506. package/build/providers/prop-value/slider.js +0 -1
  507. package/build/scripts/generators/api/index.js +0 -1
  508. package/build/scripts/generators/api/info.js +0 -1
  509. package/build/scripts/generators/components/index.js +0 -1
  510. package/build/scripts/generators/config/content.js +0 -1
  511. package/build/scripts/generators/config/index.js +0 -1
  512. package/build/scripts/generators/pages/index.js +0 -1
  513. package/build/scripts/generators/pages/info.js +0 -1
  514. package/build/scripts/generators/store/content.js +0 -1
  515. package/build/scripts/generators/store/index.js +0 -1
  516. package/build/scripts/generators/theme/index.js +0 -1
  517. package/build/scripts/generators/types/index.d.ts +0 -15
  518. package/build/scripts/generators/types/index.js +0 -1
  519. package/build/utils/fs.js +0 -1
  520. package/build/utils/google-fonts.d.ts +0 -2
  521. package/build/utils/google-fonts.js +0 -1
@@ -33,7 +33,6 @@ export declare enum CancelledReasonEnum {
33
33
  */
34
34
  export declare enum CartStatusEnum {
35
35
  ACTIVE = "ACTIVE",
36
- FREEZE = "FREEZE",
37
36
  PASSIVE = "PASSIVE"
38
37
  }
39
38
  /**
@@ -130,7 +129,6 @@ export declare enum OrderPackageFulfillStatusEnum {
130
129
  DELIVERED = "DELIVERED",
131
130
  ERROR = "ERROR",
132
131
  FULFILLED = "FULFILLED",
133
- READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
134
132
  READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
135
133
  REFUNDED = "REFUNDED",
136
134
  REFUND_REJECTED = "REFUND_REJECTED",
@@ -150,7 +148,6 @@ export declare enum OrderPackageStatusEnum {
150
148
  PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
151
149
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
152
150
  PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
153
- READY_FOR_PICK_UP = "READY_FOR_PICK_UP",
154
151
  READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
155
152
  REFUNDED = "REFUNDED",
156
153
  REFUND_REJECTED = "REFUND_REJECTED",
@@ -202,8 +199,7 @@ export declare enum PaymentMethodEnum {
202
199
  CREDIT_CARD_ON_DELIVERY = "CREDIT_CARD_ON_DELIVERY",
203
200
  GIFT_CARD = "GIFT_CARD",
204
201
  MONEY_ORDER = "MONEY_ORDER",
205
- OTHER = "OTHER",
206
- WALLET = "WALLET"
202
+ OTHER = "OTHER"
207
203
  }
208
204
  /**
209
205
  * ProductAttribute Types
@@ -245,7 +241,6 @@ export declare enum ProductFilterSortTypeEnum {
245
241
  */
246
242
  export declare enum ProductFilterTypeEnum {
247
243
  ATTRIBUTE = "ATTRIBUTE",
248
- AVAILABLE_VARIANT_VALUE = "AVAILABLE_VARIANT_VALUE",
249
244
  BRAND = "BRAND",
250
245
  DISCOUNT_RATIO = "DISCOUNT_RATIO",
251
246
  PRICE = "PRICE",
@@ -426,8 +421,6 @@ export interface CustomerAddressCityInput {
426
421
  export interface CustomerAddressCountryInput {
427
422
  code?: string | null;
428
423
  id?: string | null;
429
- iso2?: string | null;
430
- iso3?: string | null;
431
424
  name: string;
432
425
  }
433
426
  export interface CustomerAddressDistrictInput {
@@ -552,7 +545,7 @@ export interface RaffleMetadataTargetTypeEnumFilter {
552
545
  in?: RaffleMetadataTargetTypeEnum[] | null;
553
546
  }
554
547
  export interface RaffleParticipantsInput {
555
- appliedProduct: AppliedProductInput;
548
+ appliedProducts: AppliedProductInput[];
556
549
  createdAt?: any | null;
557
550
  deleted?: boolean | null;
558
551
  email: string;
@@ -585,7 +578,6 @@ export interface SaveCheckoutInput {
585
578
  shippingMethod: ShippingMethodEnum;
586
579
  shippingSettingsId?: string | null;
587
580
  shippingZoneRateId?: string | null;
588
- stockLocationId?: string | null;
589
581
  updatedAt?: any | null;
590
582
  }
591
583
  export interface SaveItemToCartInput {
@@ -1 +1 @@
1
- var E,T,R,A,D,C,I,L,_,N,O,U,S,P,F,n,M,Y,H,B,V,o,t,c,f,i,u,G,W,K,Q,X,J,Z,r,a,e,p,v,x,b;!function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(E||(E={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(T||(T={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(A||(A={})),function(E){E.ACTIVE="ACTIVE",E.FREEZE="FREEZE",E.PASSIVE="PASSIVE"}(D||(D={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(C||(C={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(I||(I={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(L||(L={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(_||(_={})),function(E){E.COMPLETED="COMPLETED",E.KILLED="KILLED",E.OPEN="OPEN"}(N||(N={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(O||(O={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(U||(U={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(S||(S={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(P||(P={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED"}(F||(F={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(n||(n={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(M||(M={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(Y||(Y={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(H||(H={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(B||(B={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(V||(V={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER",E.WALLET="WALLET"}(o||(o={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(t||(t={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(c||(c={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(f||(f={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.AVAILABLE_VARIANT_VALUE="AVAILABLE_VARIANT_VALUE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(i||(i={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(u||(u={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(G||(G={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(W||(W={})),function(E){E.RAFFLE="RAFFLE"}(K||(K={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(Q||(Q={})),function(E){E.ASC="ASC",E.DESC="DESC"}(X||(X={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(J||(J={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(Z||(Z={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(r||(r={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(a||(a={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(e||(e={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(p||(p={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(v||(v={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(x||(x={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(b||(b={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,A as CancelledReasonEnum,D as CartStatusEnum,C as CategoryProductsOrderTypeEnum,I as CheckoutRecoveryEmailStatusEnum,L as CheckoutRecoveryStatusEnum,_ as CheckoutRequirementEnum,N as CheckoutStatusEnum,O as CustomerAccountStatusEnum,U as CustomerEmailSubscriptionStatusesEnum,S as HTMLMetaDataTargetTypeEnum,P as OrderLineItemStatusEnum,F as OrderPackageFulfillStatusEnum,n as OrderPackageStatusEnum,M as OrderPaymentStatusEnum,Y as OrderStatusEnum,H as PaymentGatewayAdditionalPriceTypeEnum,B as PaymentGatewayTransactionFeeTypeEnum,V as PaymentGatewayTypeEnum,o as PaymentMethodEnum,t as ProductAttributeTypeEnum,c as ProductFilterDisplayTypeEnum,f as ProductFilterSortTypeEnum,i as ProductFilterTypeEnum,u as ProductOptionSelectTypeEnum,G as ProductOptionTypeEnum,W as ProductSearchShowStockOptionEnum,K as RaffleMetadataTargetTypeEnum,Q as ShippingMethodEnum,X as SortByDirectionEnum,J as SortByTypeEnum,Z as StorefrontStatusTypes,r as StorefrontThemeStatus,a as TransactionCardAssociationEnum,e as TransactionCardTypeEnum,p as TransactionStatusEnum,v as TransactionTypeEnum,x as VariantSelectionTypeEnum,b as VerificationTypeEnum};
1
+ var E,T,R,D,A,C,I,N,L,_,O,S,U,P,F,n,M,H,Y,B,o,t,c,f,i,u,V,G,Q,W,K,X,J,r,Z,a,e,p,v,x,b;!function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(E||(E={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(T||(T={})),function(E){E.BLOG="BLOG",E.BLOG_CATEGORY="BLOG_CATEGORY"}(R||(R={})),function(E){E.CUSTOMER="CUSTOMER",E.DECLINED="DECLINED",E.INVENTORY="INVENTORY",E.OTHER="OTHER"}(D||(D={})),function(E){E.ACTIVE="ACTIVE",E.PASSIVE="PASSIVE"}(A||(A={})),function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(C||(C={})),function(E){E.NOT_SENT="NOT_SENT",E.SENT="SENT"}(I||(I={})),function(E){E.NOT_RECOVERED="NOT_RECOVERED",E.RECOVERED="RECOVERED"}(N||(N={})),function(E){E.INVISIBLE="INVISIBLE",E.MANDATORY="MANDATORY",E.OPTIONAL="OPTIONAL"}(L||(L={})),function(E){E.COMPLETED="COMPLETED",E.KILLED="KILLED",E.OPEN="OPEN"}(_||(_={})),function(E){E.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",E.DECLINED_ACCOUNT_INVITATION="DECLINED_ACCOUNT_INVITATION",E.DISABLED_ACCOUNT="DISABLED_ACCOUNT",E.INVITED_TO_CREATE_ACCOUNT="INVITED_TO_CREATE_ACCOUNT"}(O||(O={})),function(E){E.NOT_SUBSCRIBED="NOT_SUBSCRIBED",E.PENDING_CONFIRMATION="PENDING_CONFIRMATION",E.SUBSCRIBED="SUBSCRIBED"}(S||(S={})),function(E){E.BRAND="BRAND",E.CATEGORY="CATEGORY",E.PAGE="PAGE",E.PRODUCT="PRODUCT"}(U||(U={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNFULFILLED="UNFULFILLED"}(P||(P={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED"}(F||(F={})),function(E){E.CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.FULFILLED="FULFILLED",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_DELIVERED="PARTIALLY_DELIVERED",E.PARTIALLY_FULFILLED="PARTIALLY_FULFILLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER",E.UNFULFILLED="UNFULFILLED"}(n||(n={})),function(E){E.PAID="PAID",E.PARTIALLY_PAID="PARTIALLY_PAID",E.WAITING="WAITING"}(M||(M={})),function(E){E.CANCELLED="CANCELLED",E.CREATED="CREATED",E.DRAFT="DRAFT",E.PARTIALLY_CANCELLED="PARTIALLY_CANCELLED",E.PARTIALLY_REFUNDED="PARTIALLY_REFUNDED",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED"}(H||(H={})),function(E){E.DECREMENT="DECREMENT",E.INCREMENT="INCREMENT"}(Y||(Y={})),function(E){E.AMOUNT="AMOUNT",E.RATIO="RATIO"}(B||(B={})),function(E){E.EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY"}(o||(o={})),function(E){E.APP_PAYMENT="APP_PAYMENT",E.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",E.CASH="CASH",E.CASH_ON_DELIVERY="CASH_ON_DELIVERY",E.CREDIT_CARD="CREDIT_CARD",E.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",E.GIFT_CARD="GIFT_CARD",E.MONEY_ORDER="MONEY_ORDER",E.OTHER="OTHER"}(t||(t={})),function(E){E.BOOLEAN="BOOLEAN",E.CHOICE="CHOICE",E.DATETIME="DATETIME",E.HTML="HTML",E.MULTIPLE_CHOICE="MULTIPLE_CHOICE",E.NUMERIC="NUMERIC",E.PRODUCT="PRODUCT",E.TABLE="TABLE",E.TEXT="TEXT"}(c||(c={})),function(E){E.BOX="BOX",E.DATE_RANGE="DATE_RANGE",E.LIST="LIST",E.NUMBER_RANGE="NUMBER_RANGE",E.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",E.SWATCH="SWATCH"}(f||(f={})),function(E){E.ALPHABETICAL_ASC="ALPHABETICAL_ASC",E.ALPHABETICAL_DESC="ALPHABETICAL_DESC",E.CUSTOM_SORT="CUSTOM_SORT",E.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",E.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(i||(i={})),function(E){E.ATTRIBUTE="ATTRIBUTE",E.BRAND="BRAND",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.PRICE="PRICE",E.STOCK_STATUS="STOCK_STATUS",E.TAG="TAG",E.VARIANT_TYPE="VARIANT_TYPE"}(u||(u={})),function(E){E.BOX="BOX",E.SELECT="SELECT",E.SWATCH="SWATCH"}(V||(V={})),function(E){E.CHECKBOX="CHECKBOX",E.CHOICE="CHOICE",E.COLOR_PICKER="COLOR_PICKER",E.DATE_PICKER="DATE_PICKER",E.FILE="FILE",E.IMAGE="IMAGE",E.TEXT="TEXT",E.TEXT_AREA="TEXT_AREA"}(G||(G={})),function(E){E.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",E.SHOW_ALL="SHOW_ALL",E.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(Q||(Q={})),function(E){E.RAFFLE="RAFFLE"}(W||(W={})),function(E){E.CLICK_AND_COLLECT="CLICK_AND_COLLECT",E.NO_SHIPMENT="NO_SHIPMENT",E.SHIPMENT="SHIPMENT"}(K||(K={})),function(E){E.ASC="ASC",E.DESC="DESC"}(X||(X={})),function(E){E.CREATED_AT="CREATED_AT",E.DISCOUNT_RATIO="DISCOUNT_RATIO",E.MANUAL_SORT="MANUAL_SORT",E.NAME="NAME",E.PRICE="PRICE"}(J||(J={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(r||(r={})),function(E){E.FAILED="FAILED",E.NOT_DEPLOYED="NOT_DEPLOYED",E.READY="READY",E.WAITING="WAITING"}(Z||(Z={})),function(E){E.AMERICAN_EXPRESS="AMERICAN_EXPRESS",E.MASTER_CARD="MASTER_CARD",E.TROY="TROY",E.VISA="VISA"}(a||(a={})),function(E){E.CREDIT="CREDIT",E.DEBIT="DEBIT",E.PREPAID="PREPAID"}(e||(e={})),function(E){E.AUTHORIZED="AUTHORIZED",E.FAILED="FAILED",E.PENDING="PENDING",E.SUCCESS="SUCCESS"}(p||(p={})),function(E){E.REFUND="REFUND",E.SALE="SALE",E.VOID="VOID"}(v||(v={})),function(E){E.CHOICE="CHOICE",E.COLOR="COLOR"}(x||(x={})),function(E){E.EMAIL="EMAIL",E.MERSIS="MERSIS"}(b||(b={}));export{E as AdjustmentEnum,T as AmountTypeEnum,R as BlogMetadataTargetTypeEnum,D as CancelledReasonEnum,A as CartStatusEnum,C as CategoryProductsOrderTypeEnum,I as CheckoutRecoveryEmailStatusEnum,N as CheckoutRecoveryStatusEnum,L as CheckoutRequirementEnum,_ as CheckoutStatusEnum,O as CustomerAccountStatusEnum,S as CustomerEmailSubscriptionStatusesEnum,U as HTMLMetaDataTargetTypeEnum,P as OrderLineItemStatusEnum,F as OrderPackageFulfillStatusEnum,n as OrderPackageStatusEnum,M as OrderPaymentStatusEnum,H as OrderStatusEnum,Y as PaymentGatewayAdditionalPriceTypeEnum,B as PaymentGatewayTransactionFeeTypeEnum,o as PaymentGatewayTypeEnum,t as PaymentMethodEnum,c as ProductAttributeTypeEnum,f as ProductFilterDisplayTypeEnum,i as ProductFilterSortTypeEnum,u as ProductFilterTypeEnum,V as ProductOptionSelectTypeEnum,G as ProductOptionTypeEnum,Q as ProductSearchShowStockOptionEnum,W as RaffleMetadataTargetTypeEnum,K as ShippingMethodEnum,X as SortByDirectionEnum,J as SortByTypeEnum,r as StorefrontStatusTypes,Z as StorefrontThemeStatus,a as TransactionCardAssociationEnum,e as TransactionCardTypeEnum,p as TransactionStatusEnum,v as TransactionTypeEnum,x as VariantSelectionTypeEnum,b as VerificationTypeEnum};
@@ -1 +1 @@
1
- import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
1
+ import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
@@ -1 +1 @@
1
- import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
1
+ import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
@@ -1 +1 @@
1
- import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",function(t,n){return{content_name:t.product.name,content_category:t.product.categories.length>0?t.product.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[t.selectedVariant.id],content_type:"product",value:t.selectedVariant.price.finalPrice,currency:""===t.selectedVariant.price.currency?"TRY":t.selectedVariant.price.currency}}(t)))}catch(t){console.error(t)}},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n,r,e,o,c=[],i=[];return null===(n=t.cart)||void 0===n||n.items.map((function(t){c.push(t.variant.id),i.push({id:t.variant.id,quantity:t.quantity})})),{contents:i,content_category:"",content_type:"product_group",content_ids:c,currency:null===(r=t.cart)||void 0===r?void 0:r.items[0].currencyCode,value:null===(e=t.cart)||void 0===e?void 0:e.totalPrice,num_items:null===(o=t.cart)||void 0===o?void 0:o.items.length}}export{r as FacebookPixel};
1
+ import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",function(t,n){return{content_name:t.product.name,content_category:t.product.categories.length>0?t.product.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[t.selectedVariant.id],content_type:"product",value:t.selectedVariant.price.finalPrice,currency:""===t.selectedVariant.price.currency?"TRY":t.selectedVariant.price.currency}}(t)))}catch(t){console.error(t)}},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.id),r.push({id:t.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n,r,e,o,c=[],i=[];return null===(n=t.cart)||void 0===n||n.items.map((function(t){c.push(t.id),i.push({id:t.id,quantity:t.quantity})})),{contents:i,content_category:"",content_type:"product_group",content_ids:c,currency:null===(r=t.cart)||void 0===r?void 0:r.items[0].currencyCode,value:null===(e=t.cart)||void 0===e?void 0:e.totalPrice,num_items:null===(o=t.cart)||void 0===o?void 0:o.items.length}}export{r as FacebookPixel};
@@ -1 +1 @@
1
- import{makeAutoObservable as e}from"mobx";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"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/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/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{IkasProductDetail as t}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/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{CheckoutStep as r}from"../components/checkout/model.js";var o="undefined"==typeof window,a=function(){function a(){e(this)}return a.pageView=function(e){try{var t={event:"page-view",page:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.productView=function(e){var t;try{var r={event:"view_item",ecommerce:{items:[i(e)],extraParams:{parent_id:e.product.id,currency:e.selectedVariant.price.currency,url:"https://".concat(window.location.hostname).concat(e.href),item_image:(null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.src)||""}}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.addToCart=function(e,r){try{var a={event:"add_to_cart",ecommerce:{items:[e instanceof t?i(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(a),a}catch(e){console.error(e)}},a.removeFromCart=function(e,r){try{var a={event:"remove_from_cart",ecommerce:{items:[e instanceof t?i(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(a),a}catch(e){console.error(e)}},a.beginCheckout=function(e){var t;try{var r={event:"begin_checkout",ecommerce:{items:null===(t=e.cart)||void 0===t?void 0:t.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.purchase=function(e,t){var r,a,i;try{var d={event:"purchase",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+(null===(r=e.cart)||void 0===r?void 0:r.totalTax),shipping:""+e.shippingTotal,currency:null===(a=e.cart)||void 0===a?void 0:a.currencyCode,coupon:e.couponCode,items:null===(i=e.cart)||void 0===i?void 0:i.items.map((function(e){return n(e,e.quantity)}))}}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},a.checkoutStep=function(e,t){var a,i="";t===r.INFO?i="checkout_info":t===r.SHIPPING?i="checkout_shipping":t===r.PAYMENT?i="checkout_payment":t===r.SUCCESS&&(i="checkout_success");try{var d={event:i,ecommerce:{items:null===(a=e.cart)||void 0===a?void 0:a.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},a.disableHTML=function(){try{!o&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},a.completeRegistration=function(){try{var e={event:"customer_register"};return!o&&window.dataLayer&&window.dataLayer.push(e),e}catch(e){console.error(e)}},a.search=function(e){try{var t={event:"search",search_string:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.viewCategory=function(e,t){try{var r={event:"view_category",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},a.customerLogin=function(e){try{var t={event:"customer_login",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a.customerVisit=function(e){try{var t={event:"customer_visit",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},a}();function i(e,t){var r;return void 0===t&&(t=1),{item_name:e.product.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(r=e.product.brand)||void 0===r?void 0:r.name)||"",item_category:e.product.categories.length?e.product.categories[0].name:"",item_category_2:e.product.categories.length>1?e.product.categories[1].name:"",item_category_3:e.product.categories.length>2?e.product.categories[2].name:"",item_category_4:e.product.categories.length>3?e.product.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function n(e,t){return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:e.variant.variantValues.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{a as GoogleTagManager};
1
+ import{makeAutoObservable as e}from"mobx";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"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/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/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{IkasProductDetail as t}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/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{CheckoutStep as r}from"../components/checkout/model.js";var o="undefined"==typeof window,i=function(){function i(){e(this)}return i.pageView=function(e){try{var t={event:"page-view",page:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.productView=function(e){var t;try{var r={event:"view_item",ecommerce:{items:[a(e)],extraParams:{parent_id:e.product.id,currency:e.selectedVariant.price.currency,url:"https://"+window.location.hostname+e.href,item_image:(null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.src)||""}}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},i.addToCart=function(e,r){try{var i={event:"add_to_cart",ecommerce:{items:[e instanceof t?a(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(i),i}catch(e){console.error(e)}},i.removeFromCart=function(e,r){try{var i={event:"remove_from_cart",ecommerce:{items:[e instanceof t?a(e,r):n(e,r)]}};return!o&&window.dataLayer&&window.dataLayer.push(i),i}catch(e){console.error(e)}},i.beginCheckout=function(e){var t;try{var r={event:"begin_checkout",ecommerce:{items:null===(t=e.cart)||void 0===t?void 0:t.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},i.purchase=function(e,t){var r,i,a;try{var d={event:"purchase",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+(null===(r=e.cart)||void 0===r?void 0:r.totalTax),shipping:""+e.shippingTotal,currency:null===(i=e.cart)||void 0===i?void 0:i.currencyCode,coupon:e.couponCode,items:null===(a=e.cart)||void 0===a?void 0:a.items.map((function(e){return n(e,e.quantity)}))}}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},i.checkoutStep=function(e,t){var i,a="";t===r.INFO?a="checkout_info":t===r.SHIPPING?a="checkout_shipping":t===r.PAYMENT?a="checkout_payment":t===r.SUCCESS&&(a="checkout_success");try{var d={event:a,ecommerce:{items:null===(i=e.cart)||void 0===i?void 0:i.items.map((function(e){return n(e,e.quantity)}))}};return!o&&window.dataLayer&&window.dataLayer.push(d),d}catch(e){console.error(e)}},i.disableHTML=function(){try{!o&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},i.completeRegistration=function(){try{var e={event:"customer_register"};return!o&&window.dataLayer&&window.dataLayer.push(e),e}catch(e){console.error(e)}},i.search=function(e){try{var t={event:"search",search_string:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCategory=function(e,t){try{var r={event:"view_category",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!o&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},i.customerLogin=function(e){try{var t={event:"customer_login",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.customerVisit=function(e){try{var t={event:"customer_visit",email:e};return!o&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i}();function a(e,t){var r;return void 0===t&&(t=1),{item_name:e.product.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(r=e.product.brand)||void 0===r?void 0:r.name)||"",item_category:e.product.categories.length?e.product.categories[0].name:"",item_category_2:e.product.categories.length>1?e.product.categories[1].name:"",item_category_3:e.product.categories.length>2?e.product.categories[2].name:"",item_category_4:e.product.categories.length>3?e.product.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function n(e,t){return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:e.variant.variantValues.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{i as GoogleTagManager};
@@ -1 +1 @@
1
- import*as e from"react";import{IkasStorefrontConfig as t}from"../../storefront/index.js";import n from'../../ext/html-react-parser/index.js';import{getIkasEventsScript as r}from"../events.js";import{observer as a}from"mobx-react-lite";var o=a((function(a){var o=a.blockHTML,s=t.gtmId,i=t.fbpId,c=t.storefrontJSScripts;return e.createElement(e.Fragment,null,o&&!t.isEditor&&e.createElement("script",{dangerouslySetInnerHTML:{__html:"dataLayer = [{'gtm.blocklist': ['html']}];"}}),s&&!t.isEditor&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(s,"');")}}),i&&!t.isEditor&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(i,"');\n fbq('track', 'PageView');")}}),n(r()),c.map((function(e){return n(e)})))})),s=function(){var n=t.gtmId,r=t.fbpId;return e.createElement(e.Fragment,null,n&&!t.isEditor&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id='.concat(n,'" height="0" width="0" style="display:none;visibility:hidden"></iframe>')}}),r&&!t.isEditor&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" \n src="https://www.facebook.com/tr?id='.concat(r,'&ev=PageView&noscript=1"/>')}}))};export{s as AnalyticsBody,o as AnalyticsHead};
1
+ import*as e from"react";import{IkasStorefrontConfig as t}from"../../storefront/index.js";import n from'../../ext/html-react-parser/index.js';import{getIkasEventsScript as r}from"../events.js";var a=function(a){var s=a.blockHTML,o=t.gtmId,l=t.fbpId,i=t.storefrontJSScripts;return e.createElement(e.Fragment,null,s&&e.createElement("script",{dangerouslySetInnerHTML:{__html:"dataLayer = [{'gtm.blocklist': ['html']}];"}}),o&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','"+o+"');"}}),l&&e.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '"+l+"');\n fbq('track', 'PageView');"}}),n(r()),i.map((function(e){return n(e)})))},s=function(){var n=t.gtmId,r=t.fbpId;return e.createElement(e.Fragment,null,n&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id='+n+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>'}}),r&&e.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" \n src="https://www.facebook.com/tr?id='+r+'&ev=PageView&noscript=1"/>'}}))};export{s as AnalyticsBody,a as AnalyticsHead};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as s}from'../ext/tslib/tslib.es6.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"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"mobx";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/theme/theme.js";import{IkasThemePageType as i}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"../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/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 r}from"../storefront/index.js";import o from'../ext/uuid/dist/esm-browser/v4.js';var n,a;!function(t){t[t.SESSION_START=1]="SESSION_START",t[t.PAGE_VIEW=2]="PAGE_VIEW",t[t.PRODUCT_VIEW=3]="PRODUCT_VIEW",t[t.ADD_TO_CART=4]="ADD_TO_CART",t[t.VIEW_CART=5]="VIEW_CART",t[t.ORDER_SUCCESS=6]="ORDER_SUCCESS",t[t.BEGIN_CHECKOUT=7]="BEGIN_CHECKOUT",t[t.CHECKOUT_STEP=8]="CHECKOUT_STEP",t[t.CUSTOMER_REGISTER=9]="CUSTOMER_REGISTER",t[t.CUSTOMER_VISIT=10]="CUSTOMER_VISIT",t[t.CUSTOMER_LOGIN=11]="CUSTOMER_LOGIN",t[t.BRAND_VIEW=12]="BRAND_VIEW",t[t.CATEGORY_VIEW=13]="CATEGORY_VIEW"}(n||(n={})),function(t){t[t.INDEX=1]="INDEX",t[t.CATEGORY=2]="CATEGORY",t[t.BRAND=3]="BRAND",t[t.PRODUCT=4]="PRODUCT",t[t.CUSTOM=5]="CUSTOM",t[t.ACCOUNT=6]="ACCOUNT",t[t.ADDRESSES=7]="ADDRESSES",t[t.ORDERS=8]="ORDERS",t[t.ORDER_DETAIL=9]="ORDER_DETAIL",t[t.LOGIN=10]="LOGIN",t[t.REGISTER=11]="REGISTER",t[t.FORGOT_PASSWORD=12]="FORGOT_PASSWORD",t[t.RECOVER_PASSWORD=13]="RECOVER_PASSWORD",t[t.CART=14]="CART",t[t.FAVORITE_PRODUCTS=15]="FAVORITE_PRODUCTS",t[t.SEARCH=16]="SEARCH",t[t.NOT_FOUND=17]="NOT_FOUND",t[t.BLOG=18]="BLOG",t[t.BLOG_INDEX=19]="BLOG_INDEX",t[t.BLOG_CATEGORY=20]="BLOG_CATEGORY",t[t.CHECKOUT=21]="CHECKOUT"}(a||(a={}));var d=process.env.NEXT_PUBLIC_ANALYTICS_URL?"".concat(process.env.NEXT_PUBLIC_ANALYTICS_URL,"/sendEvent"):"https://0.myikas.com/sendEvent",c=function(){function c(){}return c.createSessionId=function(){try{var t={id:o(),expiry:Date.now()+this.EXPIRY_LENGTH};localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,this.sessionStart()}catch(t){console.error(t)}},c.checkSessionId=function(){try{var t=localStorage.getItem(this.SESSION_ID_KEY);if(t){var e=JSON.parse(t);e.expiry<Date.now()?this.createSessionId():(e.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(e)),this.sessionId=e.id)}else this.createSessionId()}catch(t){console.error(t)}},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=o(),localStorage.setItem(this.VISITOR_ID_KEY,this.visitorId))}catch(t){console.error(t)}},c.getPageType=function(t){switch(t){case i.INDEX:return a.INDEX;case i.CATEGORY:return a.CATEGORY;case i.BRAND:return a.BRAND;case i.PRODUCT:return a.PRODUCT;case i.CUSTOM:return a.CUSTOM;case i.ACCOUNT:return a.ACCOUNT;case i.ADDRESSES:return a.ADDRESSES;case i.ORDERS:return a.ORDERS;case i.ORDER_DETAIL:return a.ORDER_DETAIL;case i.LOGIN:return a.LOGIN;case i.REGISTER:return a.REGISTER;case i.FORGOT_PASSWORD:return a.FORGOT_PASSWORD;case i.RECOVER_PASSWORD:return a.RECOVER_PASSWORD;case i.CART:return a.CART;case i.FAVORITE_PRODUCTS:return a.FAVORITE_PRODUCTS;case i.SEARCH:return a.SEARCH;case i.NOT_FOUND:return a.NOT_FOUND;case i.BLOG:return a.BLOG;case i.BLOG_INDEX:return a.BLOG_INDEX;case i.BLOG_CATEGORY:return a.BLOG_CATEGORY;case i.CHECKOUT:return a.CHECKOUT}},c.getCustomerData=function(){var t=r.store.customerStore.customer;return{id:null==t?void 0:t.id,e:null==t?void 0:t.email,c:r.store.customerStore.customerConsentGranted}},c.getCommonEventData=function(){return{u:window.location.href,r:document.referrer,pt:r.store.currentPageType?this.getPageType(r.store.currentPageType):void 0}},c.sendEvents=function(s){var i;return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.checkSessionId(),this.checkVisitorId(),t={e:s,scid:r.salesChannelId,sfid:r.storefrontId,sid:this.sessionId,vid:this.visitorId,cid:null===(i=r.store.customerStore.customer)||void 0===i?void 0:i.id},[4,fetch(d,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-api-key":r.config.apiKey}})];case 1:return e.sent(),[3,3];case 2:return o=e.sent(),console.error(o),[3,3];case 3:return[2]}}))}))},c.sessionStart=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.SESSION_START,ts:Date.now(),d:s({},this.getCommonEventData())},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.pageView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PAGE_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{pt:this.getPageType(i)})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.productView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PRODUCT_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{pr:{id:i.product.id,vid:i.selectedVariant.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.addToCart=function(i,r,o){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:o.id,c:o.itemCount},crtItm:{id:i.id,c:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCart=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.VIEW_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:i.id,c:i.itemCount}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.orderSuccess=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ORDER_SUCCESS,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:"success"}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.beginCheckout=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BEGIN_CHECKOUT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.checkoutStep=function(i,r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CHECKOUT_STEP,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerRegister=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_REGISTER,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerLogin=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_LOGIN,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerVisit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_VISIT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewBrand=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BRAND_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),br:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCategory=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CATEGORY_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),ctg:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.SESSION_ID_KEY="ikas_session_id",c.VISITOR_ID_KEY="ikas_visitor_id",c.EXPIRY_LENGTH=18e5,c}();export{c as default};
1
+ import{__awaiter as t,__generator as e,__assign as s}from'../ext/tslib/tslib.es6.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"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/installment-info/index.js";import"../models/data/order/index.js";import"../models/data/order/line-item/index.js";import"mobx";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/theme/theme.js";import{IkasThemePageType as i}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"../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/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 r}from"../storefront/index.js";import o from'../ext/uuid/dist/esm-browser/v4.js';var n,a;!function(t){t[t.SESSION_START=1]="SESSION_START",t[t.PAGE_VIEW=2]="PAGE_VIEW",t[t.PRODUCT_VIEW=3]="PRODUCT_VIEW",t[t.ADD_TO_CART=4]="ADD_TO_CART",t[t.VIEW_CART=5]="VIEW_CART",t[t.ORDER_SUCCESS=6]="ORDER_SUCCESS",t[t.BEGIN_CHECKOUT=7]="BEGIN_CHECKOUT",t[t.CHECKOUT_STEP=8]="CHECKOUT_STEP",t[t.CUSTOMER_REGISTER=9]="CUSTOMER_REGISTER",t[t.CUSTOMER_VISIT=10]="CUSTOMER_VISIT",t[t.CUSTOMER_LOGIN=11]="CUSTOMER_LOGIN",t[t.BRAND_VIEW=12]="BRAND_VIEW",t[t.CATEGORY_VIEW=13]="CATEGORY_VIEW"}(n||(n={})),function(t){t[t.INDEX=1]="INDEX",t[t.CATEGORY=2]="CATEGORY",t[t.BRAND=3]="BRAND",t[t.PRODUCT=4]="PRODUCT",t[t.CUSTOM=5]="CUSTOM",t[t.ACCOUNT=6]="ACCOUNT",t[t.ADDRESSES=7]="ADDRESSES",t[t.ORDERS=8]="ORDERS",t[t.ORDER_DETAIL=9]="ORDER_DETAIL",t[t.LOGIN=10]="LOGIN",t[t.REGISTER=11]="REGISTER",t[t.FORGOT_PASSWORD=12]="FORGOT_PASSWORD",t[t.RECOVER_PASSWORD=13]="RECOVER_PASSWORD",t[t.CART=14]="CART",t[t.FAVORITE_PRODUCTS=15]="FAVORITE_PRODUCTS",t[t.SEARCH=16]="SEARCH",t[t.NOT_FOUND=17]="NOT_FOUND",t[t.BLOG=18]="BLOG",t[t.BLOG_INDEX=19]="BLOG_INDEX",t[t.BLOG_CATEGORY=20]="BLOG_CATEGORY",t[t.CHECKOUT=21]="CHECKOUT"}(a||(a={}));var d=process.env.NEXT_PUBLIC_ANALYTICS_URL?process.env.NEXT_PUBLIC_ANALYTICS_URL+"/sendEvent":"https://0.myikas.com/sendEvent",c=function(){function c(){}return c.createSessionId=function(){try{var t={id:o(),expiry:Date.now()+this.EXPIRY_LENGTH};localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(t)),this.sessionId=t.id,this.sessionStart()}catch(t){console.error(t)}},c.checkSessionId=function(){try{var t=localStorage.getItem(this.SESSION_ID_KEY);if(t){var e=JSON.parse(t);e.expiry<Date.now()?this.createSessionId():(e.expiry=Date.now()+this.EXPIRY_LENGTH,localStorage.setItem(this.SESSION_ID_KEY,JSON.stringify(e)),this.sessionId=e.id)}else this.createSessionId()}catch(t){console.error(t)}},c.checkVisitorId=function(){try{var t=localStorage.getItem(this.VISITOR_ID_KEY);t?this.visitorId=t:(this.visitorId=o(),localStorage.setItem(this.VISITOR_ID_KEY,this.visitorId))}catch(t){console.error(t)}},c.getPageType=function(t){switch(t){case i.INDEX:return a.INDEX;case i.CATEGORY:return a.CATEGORY;case i.BRAND:return a.BRAND;case i.PRODUCT:return a.PRODUCT;case i.CUSTOM:return a.CUSTOM;case i.ACCOUNT:return a.ACCOUNT;case i.ADDRESSES:return a.ADDRESSES;case i.ORDERS:return a.ORDERS;case i.ORDER_DETAIL:return a.ORDER_DETAIL;case i.LOGIN:return a.LOGIN;case i.REGISTER:return a.REGISTER;case i.FORGOT_PASSWORD:return a.FORGOT_PASSWORD;case i.RECOVER_PASSWORD:return a.RECOVER_PASSWORD;case i.CART:return a.CART;case i.FAVORITE_PRODUCTS:return a.FAVORITE_PRODUCTS;case i.SEARCH:return a.SEARCH;case i.NOT_FOUND:return a.NOT_FOUND;case i.BLOG:return a.BLOG;case i.BLOG_INDEX:return a.BLOG_INDEX;case i.BLOG_CATEGORY:return a.BLOG_CATEGORY;case i.CHECKOUT:return a.CHECKOUT}},c.getCustomerData=function(){var t=r.store.customerStore.customer;return{id:null==t?void 0:t.id,e:null==t?void 0:t.email,c:r.store.customerStore.customerConsentGranted}},c.getCommonEventData=function(){return{u:window.location.href,r:document.referrer,pt:r.store.currentPageType?this.getPageType(r.store.currentPageType):void 0}},c.sendEvents=function(s){var i;return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.checkSessionId(),this.checkVisitorId(),t={e:s,scid:r.salesChannelId,sfid:r.storefrontId,sid:this.sessionId,vid:this.visitorId,cid:null===(i=r.store.customerStore.customer)||void 0===i?void 0:i.id},[4,fetch(d,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-api-key":r.config.apiKey}})];case 1:return e.sent(),[3,3];case 2:return o=e.sent(),console.error(o),[3,3];case 3:return[2]}}))}))},c.sessionStart=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.SESSION_START,ts:Date.now(),d:s({},this.getCommonEventData())},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.pageView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PAGE_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{pt:this.getPageType(i)})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.productView=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.PRODUCT_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{pr:{id:i.product.id,vid:i.selectedVariant.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.addToCart=function(i,r,o){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ADD_TO_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:o.id,c:o.itemCount},crtItm:{id:i.id,c:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCart=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.VIEW_CART,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{crt:{id:i.id,c:i.itemCount}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.orderSuccess=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.ORDER_SUCCESS,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:"success"}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.beginCheckout=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BEGIN_CHECKOUT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.checkoutStep=function(i,r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CHECKOUT_STEP,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{chk:{id:i.id,s:r}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerRegister=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_REGISTER,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerLogin=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_LOGIN,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.customerVisit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CUSTOMER_VISIT,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData()}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewBrand=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.BRAND_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),br:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.viewCategory=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={t:n.CATEGORY_VIEW,ts:Date.now(),d:s(s({},this.getCommonEventData()),{d:{cst:this.getCustomerData(),ctg:{id:i.id}}})},[4,this.sendEvents([t])];case 1:return e.sent(),[2]}}))}))},c.SESSION_ID_KEY="ikas_session_id",c.VISITOR_ID_KEY="ikas_visitor_id",c.EXPIRY_LENGTH=18e5,c}();export{c as default};
@@ -1 +1 @@
1
- import{__assign as o}from'../ext/tslib/tslib.es6.js';import{onError as e}from'../ext/@apollo/client/link/error/index.js';import{setContext as n}from'../ext/@apollo/client/link/context/index.js';import{IkasStorefrontConfig as t}from"../storefront/index.js";import{createHttpLink as r}from'../ext/@apollo/client/link/http/createHttpLink.js';import{ApolloClient as i}from'../ext/@apollo/client/core/ApolloClient.js';import{InMemoryCache as c}from'../ext/@apollo/client/cache/inmemory/inMemoryCache.js';var l=new function l(){var a=this;this.createApolloClient=function(d){var s=e((function(o){var e=o.graphQLErrors,n=(o.networkError,o.operation);e&&console.log(e);var t=null==e?void 0:e.some((function(o){var e;return"UNAUTHORIZED"===(null===(e=o.extensions)||void 0===e?void 0:e.code)}));t&&"undefined"!=typeof window&&"refreshToken"!==n.operationName&&(window.location.href="/account/login?redirect="+encodeURIComponent(window.location.pathname))})),p=n((function(e,n){var r=n.headers,i=o(o({},r),{"x-api-key":d||t.config.apiKey,"x-sfid":t.storefrontId,"x-sfrid":t.storefrontRoutingId});return l.customerToken&&(i.Authorization="Bearer "+l.customerToken),{headers:i}})),f=r({uri:t.apiUrlOverride||process.env.NEXT_PUBLIC_GQL_URL,fetch:function(o,e){var n=JSON.parse(e.body).operationName;return fetch("".concat(o,"?op=").concat(n),e)}});a._client=new i({link:p.concat(s).concat(f),cache:new c({addTypename:!1}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})},this.setCustomerToken=function(o){l.customerToken=o,a._client&&a.createApolloClient("undefined"!=typeof window?window.editorApiKey:void 0)},this.getClient=function(){return a._client||a.createApolloClient("undefined"!=typeof window?window.editorApiKey:void 0),a._client}};export{l as apollo};
1
+ import{__assign as o}from'../ext/tslib/tslib.es6.js';import{onError as e}from'../ext/@apollo/client/link/error/index.js';import{setContext as n}from'../ext/@apollo/client/link/context/index.js';import{IkasStorefrontConfig as r}from"../storefront/index.js";import{createHttpLink as t}from'../ext/@apollo/client/link/http/createHttpLink.js';import{ApolloClient as i}from'../ext/@apollo/client/core/ApolloClient.js';import{InMemoryCache as l}from'../ext/@apollo/client/cache/inmemory/inMemoryCache.js';var c=new function c(){var a=this;this.createApolloClient=function(s){var d=e((function(o){var e=o.graphQLErrors,n=(o.networkError,o.operation);e&&console.log(e);var r=null==e?void 0:e.some((function(o){var e;return"UNAUTHORIZED"===(null===(e=o.extensions)||void 0===e?void 0:e.code)}));r&&"undefined"!=typeof window&&"refreshToken"!==n.operationName&&(window.location.href="/account/login?redirect="+encodeURIComponent(window.location.pathname))})),p=n((function(e,n){var t=n.headers,i=o(o({},t),{"x-api-key":s||r.config.apiKey,"x-sfid":r.storefrontId,"x-sfrid":r.storefrontRoutingId});return c.customerToken&&(i.Authorization="Bearer "+c.customerToken),{headers:i}})),m=t({uri:r.apiUrlOverride||process.env.NEXT_PUBLIC_GQL_URL,fetch:function(o,e){var n=JSON.parse(e.body).operationName;return fetch(o+"?op="+n,e)}});a._client=new i({link:p.concat(d).concat(m),cache:new l({addTypename:!1}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})},this.setCustomerToken=function(o){c.customerToken=o,a._client&&a.createApolloClient()},this.getClient=function(){return a._client||a.createApolloClient(),a._client}};export{c as apollo};
@@ -68,31 +68,33 @@ export interface getBlog_listBlog_data {
68
68
  export interface getBlog_listBlog {
69
69
  __typename: "BlogPaginationResponse";
70
70
  /**
71
- * Returns the first three records of each page in the records returned as a response.
72
- * For example, **let's say page = 3, limit = 30, count = 3.**
73
- * The records that will return as a response are the records **between 60-62.**
71
+ * Returns the first three records of each page in the records returned as a
72
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
73
+ * records that will return as a response are the records ***between 60-62.***
74
74
  */
75
75
  count: number;
76
76
  data: getBlog_listBlog_data[];
77
77
  /**
78
- * In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
78
+ * In the records returned as Response, it shows whether there are any more
79
+ * records or not. For example, let's say our page field is three and our limit
80
+ * field is thirty. Records between 60 and 90 will be returned. If hasNext is
81
+ * ```true``` despite these records, ***it means there are more records.*** If
82
+ * hasNext is ```false```, it means there are a total of ***90 records.***
79
83
  */
80
84
  hasNext: boolean;
81
85
  /**
82
- * The maximum number of data you want to see on a page in the records returned as a response.
83
- * For example, if the limit is **20**, the data will be displayed ** as 20 each. **
84
- * :::note
85
- * min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
86
- * :::
86
+ * The maximum number of data you want to see on a page in the records returned
87
+ * as a response. For example, if the limit is ***20***, the data will be
88
+ * displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
89
+ * given. If no value is entered, default 50 is accepted.<br />:::
87
90
  */
88
91
  limit: number;
89
92
  /**
90
93
  * The number of the page you want to see in the records that return as response.
91
- * For example: We entered the page field as **3**.And let our limit field be **30**.
92
- * The records that will return as a response are the records **between 60-90.**
93
- * :::note
94
- * If no value is entered, default 1 is accepted.
95
- * :::
94
+ * For example: We entered the page field as ***3***.And let our limit field be
95
+ * ***30***. The records that will return as a response are the records
96
+ * ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
97
+ * accepted.<br /> :::
96
98
  */
97
99
  page: number;
98
100
  }
@@ -68,31 +68,33 @@ export interface listBlog_listBlog_data {
68
68
  export interface listBlog_listBlog {
69
69
  __typename: "BlogPaginationResponse";
70
70
  /**
71
- * Returns the first three records of each page in the records returned as a response.
72
- * For example, **let's say page = 3, limit = 30, count = 3.**
73
- * The records that will return as a response are the records **between 60-62.**
71
+ * Returns the first three records of each page in the records returned as a
72
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
73
+ * records that will return as a response are the records ***between 60-62.***
74
74
  */
75
75
  count: number;
76
76
  data: listBlog_listBlog_data[];
77
77
  /**
78
- * In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
78
+ * In the records returned as Response, it shows whether there are any more
79
+ * records or not. For example, let's say our page field is three and our limit
80
+ * field is thirty. Records between 60 and 90 will be returned. If hasNext is
81
+ * ```true``` despite these records, ***it means there are more records.*** If
82
+ * hasNext is ```false```, it means there are a total of ***90 records.***
79
83
  */
80
84
  hasNext: boolean;
81
85
  /**
82
- * The maximum number of data you want to see on a page in the records returned as a response.
83
- * For example, if the limit is **20**, the data will be displayed ** as 20 each. **
84
- * :::note
85
- * min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
86
- * :::
86
+ * The maximum number of data you want to see on a page in the records returned
87
+ * as a response. For example, if the limit is ***20***, the data will be
88
+ * displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
89
+ * given. If no value is entered, default 50 is accepted.<br />:::
87
90
  */
88
91
  limit: number;
89
92
  /**
90
93
  * The number of the page you want to see in the records that return as response.
91
- * For example: We entered the page field as **3**.And let our limit field be **30**.
92
- * The records that will return as a response are the records **between 60-90.**
93
- * :::note
94
- * If no value is entered, default 1 is accepted.
95
- * :::
94
+ * For example: We entered the page field as ***3***.And let our limit field be
95
+ * ***30***. The records that will return as a response are the records
96
+ * ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
97
+ * accepted.<br /> :::
96
98
  */
97
99
  page: number;
98
100
  }
@@ -24,31 +24,33 @@ export interface listBlogCategory_listBlogCategory_data {
24
24
  export interface listBlogCategory_listBlogCategory {
25
25
  __typename: "BlogCategoryPaginationResponse";
26
26
  /**
27
- * Returns the first three records of each page in the records returned as a response.
28
- * For example, **let's say page = 3, limit = 30, count = 3.**
29
- * The records that will return as a response are the records **between 60-62.**
27
+ * Returns the first three records of each page in the records returned as a
28
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
29
+ * records that will return as a response are the records ***between 60-62.***
30
30
  */
31
31
  count: number;
32
32
  data: listBlogCategory_listBlogCategory_data[];
33
33
  /**
34
- * In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
34
+ * In the records returned as Response, it shows whether there are any more
35
+ * records or not. For example, let's say our page field is three and our limit
36
+ * field is thirty. Records between 60 and 90 will be returned. If hasNext is
37
+ * ```true``` despite these records, ***it means there are more records.*** If
38
+ * hasNext is ```false```, it means there are a total of ***90 records.***
35
39
  */
36
40
  hasNext: boolean;
37
41
  /**
38
- * The maximum number of data you want to see on a page in the records returned as a response.
39
- * For example, if the limit is **20**, the data will be displayed ** as 20 each. **
40
- * :::note
41
- * min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
42
- * :::
42
+ * The maximum number of data you want to see on a page in the records returned
43
+ * as a response. For example, if the limit is ***20***, the data will be
44
+ * displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
45
+ * given. If no value is entered, default 50 is accepted.<br />:::
43
46
  */
44
47
  limit: number;
45
48
  /**
46
49
  * The number of the page you want to see in the records that return as response.
47
- * For example: We entered the page field as **3**.And let our limit field be **30**.
48
- * The records that will return as a response are the records **between 60-90.**
49
- * :::note
50
- * If no value is entered, default 1 is accepted.
51
- * :::
50
+ * For example: We entered the page field as ***3***.And let our limit field be
51
+ * ***30***. The records that will return as a response are the records
52
+ * ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
53
+ * accepted.<br /> :::
52
54
  */
53
55
  page: number;
54
56
  }
@@ -14,31 +14,33 @@ export interface listBlogMetaData_listBlogMetadata_data {
14
14
  export interface listBlogMetaData_listBlogMetadata {
15
15
  __typename: "BlogMetadataPaginationResponse";
16
16
  /**
17
- * Returns the first three records of each page in the records returned as a response.
18
- * For example, **let's say page = 3, limit = 30, count = 3.**
19
- * The records that will return as a response are the records **between 60-62.**
17
+ * Returns the first three records of each page in the records returned as a
18
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
19
+ * records that will return as a response are the records ***between 60-62.***
20
20
  */
21
21
  count: number;
22
22
  data: listBlogMetaData_listBlogMetadata_data[];
23
23
  /**
24
- * In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
24
+ * In the records returned as Response, it shows whether there are any more
25
+ * records or not. For example, let's say our page field is three and our limit
26
+ * field is thirty. Records between 60 and 90 will be returned. If hasNext is
27
+ * ```true``` despite these records, ***it means there are more records.*** If
28
+ * hasNext is ```false```, it means there are a total of ***90 records.***
25
29
  */
26
30
  hasNext: boolean;
27
31
  /**
28
- * The maximum number of data you want to see on a page in the records returned as a response.
29
- * For example, if the limit is **20**, the data will be displayed ** as 20 each. **
30
- * :::note
31
- * min 1, max 200 values can be given. If no value is entered, default 50 is accepted.
32
- * :::
32
+ * The maximum number of data you want to see on a page in the records returned
33
+ * as a response. For example, if the limit is ***20***, the data will be
34
+ * displayed ***as 20 each.***<br />:::note<br />min 1, max 200 values can be
35
+ * given. If no value is entered, default 50 is accepted.<br />:::
33
36
  */
34
37
  limit: number;
35
38
  /**
36
39
  * The number of the page you want to see in the records that return as response.
37
- * For example: We entered the page field as **3**.And let our limit field be **30**.
38
- * The records that will return as a response are the records **between 60-90.**
39
- * :::note
40
- * If no value is entered, default 1 is accepted.
41
- * :::
40
+ * For example: We entered the page field as ***3***.And let our limit field be
41
+ * ***30***. The records that will return as a response are the records
42
+ * ***between 60-90.***<br />:::note<br />If no value is entered, default 1 is
43
+ * accepted.<br /> :::
42
44
  */
43
45
  page: number;
44
46
  }
@@ -71,9 +71,9 @@ export interface listProductBrand_listProductBrand {
71
71
  __typename: "ProductBrandPaginationResponse";
72
72
  data: listProductBrand_listProductBrand_data[];
73
73
  /**
74
- * Returns the first three records of each page in the records returned as a response.
75
- * For example, **let's say page = 3, limit = 30, count = 3.**
76
- * The records that will return as a response are the records **between 60-62.**
74
+ * Returns the first three records of each page in the records returned as a
75
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
76
+ * records that will return as a response are the records ***between 60-62.***
77
77
  */
78
78
  count: number;
79
79
  }
@@ -105,7 +105,8 @@ export interface getCart_getCart_items {
105
105
  */
106
106
  discountPrice: number | null;
107
107
  /**
108
- * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
108
+ * It is the final price of the order line item. If the discount price is less
109
+ * than the sell price, the final price is equal to the discount price.
109
110
  */
110
111
  finalPrice: number | null;
111
112
  id: string;
@@ -114,7 +115,8 @@ export interface getCart_getCart_items {
114
115
  */
115
116
  options: getCart_getCart_items_options[] | null;
116
117
  /**
117
- * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
118
+ * It is the original order line item id of the line item. If the line item is
119
+ * derived from another line item, this field is filled.
118
120
  */
119
121
  originalOrderLineItemId: string | null;
120
122
  /**
@@ -117,7 +117,8 @@ export interface saveItemToCart_saveItemToCart_items {
117
117
  */
118
118
  discountPrice: number | null;
119
119
  /**
120
- * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
120
+ * It is the final price of the order line item. If the discount price is less
121
+ * than the sell price, the final price is equal to the discount price.
121
122
  */
122
123
  finalPrice: number | null;
123
124
  id: string;
@@ -126,7 +127,8 @@ export interface saveItemToCart_saveItemToCart_items {
126
127
  */
127
128
  options: saveItemToCart_saveItemToCart_items_options[] | null;
128
129
  /**
129
- * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
130
+ * It is the original order line item id of the line item. If the line item is
131
+ * derived from another line item, this field is filled.
130
132
  */
131
133
  originalOrderLineItemId: string | null;
132
134
  /**
@@ -82,9 +82,9 @@ export interface listCategory_listCategory {
82
82
  __typename: "CategoryPaginationResponse";
83
83
  data: listCategory_listCategory_data[];
84
84
  /**
85
- * Returns the first three records of each page in the records returned as a response.
86
- * For example, **let's say page = 3, limit = 30, count = 3.**
87
- * The records that will return as a response are the records **between 60-62.**
85
+ * Returns the first three records of each page in the records returned as a
86
+ * response. For example, ***let's say page = 3, limit = 30, count = 3.*** The
87
+ * records that will return as a response are the records ***between 60-62.***
88
88
  */
89
89
  count: number;
90
90
  }
@@ -425,12 +425,14 @@ export interface getCheckoutById_getCheckoutById_cart_items {
425
425
  */
426
426
  discountPrice: number | null;
427
427
  /**
428
- * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
428
+ * It is the final price of the order line item. If the discount price is less
429
+ * than the sell price, the final price is equal to the discount price.
429
430
  */
430
431
  finalPrice: number | null;
431
432
  id: string;
432
433
  /**
433
- * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
434
+ * It is the original order line item id of the line item. If the line item is
435
+ * derived from another line item, this field is filled.
434
436
  */
435
437
  originalOrderLineItemId: string | null;
436
438
  /**
@@ -276,12 +276,14 @@ export interface getOrder_getOrder_orderLineItems {
276
276
  */
277
277
  discountPrice: number | null;
278
278
  /**
279
- * It is the final price of the order line item. If the discount price is less than the sell price, the final price is equal to the discount price.
279
+ * It is the final price of the order line item. If the discount price is less
280
+ * than the sell price, the final price is equal to the discount price.
280
281
  */
281
282
  finalPrice: number | null;
282
283
  id: string;
283
284
  /**
284
- * It is the original order line item id of the line item. If the line item is derived from another line item, this field is filled.
285
+ * It is the original order line item id of the line item. If the line item is
286
+ * derived from another line item, this field is filled.
285
287
  */
286
288
  originalOrderLineItemId: string | null;
287
289
  /**
@@ -329,7 +331,8 @@ export interface getOrder_getOrder_orderPackages_trackingInfo {
329
331
  */
330
332
  trackingLink: string | null;
331
333
  /**
332
- * Indicates whether the notification is sent to the customer after the cargo is delivered. **isSendNotification** returns true if the notification is sent.
334
+ * Indicates whether the notification is sent to the customer after the cargo is
335
+ * delivered. ***isSendNotification*** returns true if the notification is sent.
333
336
  */
334
337
  isSendNotification: boolean | null;
335
338
  /**
@@ -534,7 +537,8 @@ export interface getOrder_getOrder {
534
537
  */
535
538
  currencyRates: getOrder_getOrder_currencyRates[];
536
539
  /**
537
- * Information about the customer. The order does not have to be a customer information. If the order was created by ikasPOS, the customer information may be null.
540
+ * Information about the customer. The order does not have to be a customer
541
+ * information. If the order was created by ikasPOS, the customer information may be null.
538
542
  */
539
543
  customer: getOrder_getOrder_customer | null;
540
544
  deleted: boolean | null;
@@ -597,7 +601,9 @@ export interface getOrder_getOrder {
597
601
  */
598
602
  taxLines: getOrder_getOrder_taxLines[] | null;
599
603
  /**
600
- * The total final price of the order resulting from the apply of `orderAdjustments` , `shippingLines`, and `giftPackageLines` pricing to the order total price.
604
+ * The total final price of the order resulting from the apply of
605
+ * ``orderAdjustments`` , ```shippingLines```, and ```giftPackageLines```
606
+ * pricing to the order total price.
601
607
  */
602
608
  totalFinalPrice: number;
603
609
  /**