@ikas/storefront 4.0.0-alpha.78 → 4.0.0-alpha.8

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 (1192) hide show
  1. package/package.json +19 -21
  2. package/src/analytics/analytics.ts +536 -0
  3. package/src/analytics/events.ts +116 -0
  4. package/src/analytics/facebookPixel.ts +226 -0
  5. package/src/analytics/googleAnalytics.ts +227 -0
  6. package/src/analytics/googleTagManager.ts +341 -0
  7. package/src/analytics/googleUniversal.ts +136 -0
  8. package/src/analytics/head/index.tsx +135 -0
  9. package/src/analytics/ikas.ts +558 -0
  10. package/src/analytics/index.ts +2 -0
  11. package/src/analytics/tiktokPixel.ts +223 -0
  12. package/src/components/checkout/components/address-form/index.tsx +406 -0
  13. package/src/components/checkout/components/address-form/model.ts +397 -0
  14. package/src/components/checkout/components/button/index.tsx +44 -0
  15. package/src/components/checkout/components/button/style.module.scss +103 -0
  16. package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
  17. package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
  18. package/src/components/checkout/components/cart-summary/index.tsx +481 -0
  19. package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
  20. package/src/components/checkout/components/checkbox/check.tsx +23 -0
  21. package/src/components/checkout/components/checkbox/index.tsx +50 -0
  22. package/src/components/checkout/components/checkbox/style.module.scss +72 -0
  23. package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
  24. package/src/components/checkout/components/credit-card-form/model.ts +56 -0
  25. package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
  26. package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
  27. package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
  28. package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
  29. package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
  30. package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
  31. package/src/components/checkout/components/customer-addresses/model.ts +126 -0
  32. package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
  33. package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
  34. package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
  35. package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
  36. package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
  37. package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
  38. package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
  39. package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
  40. package/src/components/checkout/components/error/index.tsx +54 -0
  41. package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
  42. package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
  43. package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
  44. package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
  45. package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
  46. package/src/components/checkout/components/expandable-section/index.tsx +37 -0
  47. package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
  48. package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
  49. package/src/components/checkout/components/form-item/index.tsx +207 -0
  50. package/src/components/checkout/components/form-item/model.ts +145 -0
  51. package/src/components/checkout/components/form-item/style.module.scss +216 -0
  52. package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
  53. package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
  54. package/src/components/checkout/components/input-with-button/index.tsx +53 -0
  55. package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
  56. package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
  57. package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
  58. package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
  59. package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
  60. package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
  61. package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
  62. package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
  63. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
  64. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
  65. package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
  66. package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
  67. package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
  68. package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
  69. package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
  70. package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
  71. package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
  72. package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
  73. package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
  74. package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
  75. package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
  76. package/src/components/checkout/components/modal/index.tsx +41 -0
  77. package/src/components/checkout/components/modal/style.module.scss +68 -0
  78. package/src/components/checkout/components/modal/useEscape.tsx +20 -0
  79. package/src/components/checkout/components/notification-box/index.tsx +70 -0
  80. package/src/components/checkout/components/notification-box/style.module.scss +69 -0
  81. package/src/components/checkout/components/offer-product/index.tsx +180 -0
  82. package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
  83. package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
  84. package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
  85. package/src/components/checkout/components/offer-product/style.module.scss +117 -0
  86. package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
  87. package/src/components/checkout/components/phone-number-input/get-countries.ts +52 -0
  88. package/src/components/checkout/components/phone-number-input/index.tsx +125 -0
  89. package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
  90. package/src/components/checkout/components/select-box/index.tsx +60 -0
  91. package/src/components/checkout/components/select-box/style.module.scss +55 -0
  92. package/src/components/checkout/components/step-container/index.tsx +107 -0
  93. package/src/components/checkout/components/step-container/style.module.scss +86 -0
  94. package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
  95. package/src/components/checkout/components/stripe/index.tsx +91 -0
  96. package/src/components/checkout/components/stripe/style.module.scss +75 -0
  97. package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
  98. package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
  99. package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
  100. package/src/components/checkout/components/svg/cross.tsx +23 -0
  101. package/src/components/checkout/components/svg/discount.tsx +34 -0
  102. package/src/components/checkout/components/svg/external.tsx +101 -0
  103. package/src/components/checkout/components/svg/gift.tsx +40 -0
  104. package/src/components/checkout/components/svg/ikas.tsx +39 -0
  105. package/src/components/checkout/components/svg/lock.tsx +23 -0
  106. package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
  107. package/src/components/checkout/components/svg/success-circle.tsx +26 -0
  108. package/src/components/checkout/components/svg/tag.tsx +23 -0
  109. package/src/components/checkout/components/svg/warning.tsx +30 -0
  110. package/src/components/checkout/components/toggle/index.tsx +51 -0
  111. package/src/components/checkout/components/toggle/style.module.scss +75 -0
  112. package/src/components/checkout/components/tooltip/index.tsx +27 -0
  113. package/src/components/checkout/components/tooltip/style.module.scss +86 -0
  114. package/src/components/checkout/index.tsx +641 -0
  115. package/src/components/checkout/model.ts +1466 -0
  116. package/src/components/checkout/modelMasterPass.ts +1001 -0
  117. package/src/components/checkout/steps/step-info/index.tsx +85 -0
  118. package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
  119. package/src/components/checkout/steps/step-payment/index.tsx +104 -0
  120. package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
  121. package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
  122. package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
  123. package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
  124. package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
  125. package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
  126. package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
  127. package/src/components/checkout/steps/step-success/index.tsx +366 -0
  128. package/src/components/checkout/steps/step-success/style.module.scss +161 -0
  129. package/src/components/checkout/style.module.scss +366 -0
  130. package/src/components/checkout/styles/common.module.scss +59 -0
  131. package/src/components/checkout/styles/variables.scss +40 -0
  132. package/src/components/image/index.tsx +43 -0
  133. package/src/components/index.ts +5 -0
  134. package/src/components/link/index.tsx +26 -0
  135. package/src/components/page/ThemeComponent.tsx +108 -0
  136. package/src/components/page/head.tsx +358 -0
  137. package/src/components/page/index.tsx +219 -0
  138. package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
  139. package/src/components/page-editor/error/index.tsx +18 -0
  140. package/src/components/page-editor/index.tsx +194 -0
  141. package/src/components/page-editor/loader/index.tsx +18 -0
  142. package/src/components/page-editor/loader/style.module.scss +59 -0
  143. package/src/components/page-editor/model.ts +847 -0
  144. package/src/index.ts +6 -0
  145. package/src/models/data/base/index.ts +15 -0
  146. package/src/models/data/blog/category/index.ts +36 -0
  147. package/src/models/data/blog/content/index.ts +16 -0
  148. package/src/models/data/blog/index.ts +75 -0
  149. package/src/models/data/blog/meta-data/index.ts +39 -0
  150. package/src/models/data/blog/tag/index.ts +16 -0
  151. package/src/models/data/blog/writer/index.ts +17 -0
  152. package/src/models/data/brand/index.ts +58 -0
  153. package/src/models/data/brand/translation/index.ts +16 -0
  154. package/src/models/data/campaign-offer/index.ts +79 -0
  155. package/src/models/data/campaign-offer/product/index.ts +69 -0
  156. package/src/models/data/cart/available-shipping-method/index.ts +25 -0
  157. package/src/models/data/cart/campaign-offer/index.ts +43 -0
  158. package/src/models/data/cart/index.ts +38 -0
  159. package/src/models/data/category/index.ts +69 -0
  160. package/src/models/data/category/init.ts +33 -0
  161. package/src/models/data/category/path-item/index.ts +42 -0
  162. package/src/models/data/category/translations/index.ts +16 -0
  163. package/src/models/data/checkout/index.ts +55 -0
  164. package/src/models/data/checkout-settings/index.ts +63 -0
  165. package/src/models/data/checkout-settings/option/index.ts +14 -0
  166. package/src/models/data/checkout-settings/price/index.ts +14 -0
  167. package/src/models/data/city/index.ts +34 -0
  168. package/src/models/data/contact-form/index.ts +20 -0
  169. package/src/models/data/country/index.ts +46 -0
  170. package/src/models/data/customer/address/city/index.ts +16 -0
  171. package/src/models/data/customer/address/country/index.ts +20 -0
  172. package/src/models/data/customer/address/district/index.ts +16 -0
  173. package/src/models/data/customer/address/index.tsx +136 -0
  174. package/src/models/data/customer/address/state/index.ts +16 -0
  175. package/src/models/data/customer/attribute/index.ts +61 -0
  176. package/src/models/data/customer/attribute/option/index.ts +20 -0
  177. package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
  178. package/src/models/data/customer/attribute/translation/index.ts +23 -0
  179. package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
  180. package/src/models/data/customer/attribute/value/index.ts +29 -0
  181. package/src/models/data/customer/index.ts +122 -0
  182. package/src/models/data/customer/review/index.ts +70 -0
  183. package/src/models/data/customer/review/settings/index.ts +14 -0
  184. package/src/models/data/customer/review/summary/index.ts +29 -0
  185. package/src/models/data/customer/review/summary/star/index.ts +16 -0
  186. package/src/models/data/district/index.ts +36 -0
  187. package/src/models/data/favorite-product/index.ts +23 -0
  188. package/src/models/data/filter-category/index.ts +30 -0
  189. package/src/models/data/html-meta-data/index.ts +69 -0
  190. package/src/models/data/html-meta-data/translations/index.ts +16 -0
  191. package/src/models/data/image/index.ts +33 -0
  192. package/src/models/data/index.ts +192 -0
  193. package/src/models/data/last-viewed-product/index.ts +14 -0
  194. package/src/models/data/merchant-settings/index.ts +26 -0
  195. package/src/models/data/order/address/city/index.ts +16 -0
  196. package/src/models/data/order/address/country/index.ts +20 -0
  197. package/src/models/data/order/address/district/index.ts +16 -0
  198. package/src/models/data/order/address/index.ts +96 -0
  199. package/src/models/data/order/address/state/index.ts +16 -0
  200. package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
  201. package/src/models/data/order/adjustment/index.ts +39 -0
  202. package/src/models/data/order/customer/index.ts +24 -0
  203. package/src/models/data/order/gift-line/index.ts +14 -0
  204. package/src/models/data/order/index.ts +241 -0
  205. package/src/models/data/order/invoice/index.ts +29 -0
  206. package/src/models/data/order/line-item/discount/index.ts +23 -0
  207. package/src/models/data/order/line-item/index.ts +153 -0
  208. package/src/models/data/order/line-item/option/index.ts +24 -0
  209. package/src/models/data/order/line-item/option/value/index.ts +16 -0
  210. package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
  211. package/src/models/data/order/line-item/variant/category/index.ts +36 -0
  212. package/src/models/data/order/line-item/variant/index.ts +62 -0
  213. package/src/models/data/order/line-item/variant/price/index.ts +20 -0
  214. package/src/models/data/order/line-item/variant/value/index.ts +31 -0
  215. package/src/models/data/order/package/index.ts +41 -0
  216. package/src/models/data/order/package/tracking-info/index.ts +20 -0
  217. package/src/models/data/order/payment-method/index.ts +23 -0
  218. package/src/models/data/order/refund/index.ts +17 -0
  219. package/src/models/data/order/refund/line-item/index.ts +16 -0
  220. package/src/models/data/order/refund/settings/index.ts +16 -0
  221. package/src/models/data/order/shipping-line/index.ts +29 -0
  222. package/src/models/data/order/tax-line/index.ts +14 -0
  223. package/src/models/data/order/transaction/error/index.ts +16 -0
  224. package/src/models/data/order/transaction/index.ts +58 -0
  225. package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
  226. package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
  227. package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
  228. package/src/models/data/payment-gateway/index.ts +90 -0
  229. package/src/models/data/payment-gateway/settings/index.ts +21 -0
  230. package/src/models/data/payment-gateway/translation/index.ts +18 -0
  231. package/src/models/data/product/attribute/index.ts +37 -0
  232. package/src/models/data/product/attribute/option/index.ts +14 -0
  233. package/src/models/data/product/attribute/table-cell/index.ts +16 -0
  234. package/src/models/data/product/attribute/table-template/index.ts +19 -0
  235. package/src/models/data/product/attribute/translation/index.ts +39 -0
  236. package/src/models/data/product/attribute-value/index.ts +69 -0
  237. package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
  238. package/src/models/data/product/campaign/data/index.ts +70 -0
  239. package/src/models/data/product/campaign/filter/index.ts +19 -0
  240. package/src/models/data/product/campaign/index.ts +15 -0
  241. package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
  242. package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
  243. package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
  244. package/src/models/data/product/filter/index.ts +285 -0
  245. package/src/models/data/product/image/index.ts +22 -0
  246. package/src/models/data/product/index.ts +298 -0
  247. package/src/models/data/product/option-set/index.ts +94 -0
  248. package/src/models/data/product/option-set/option/index.ts +245 -0
  249. package/src/models/data/product/tag/index.ts +14 -0
  250. package/src/models/data/product/variant/index.ts +104 -0
  251. package/src/models/data/product/variant/price/index.ts +58 -0
  252. package/src/models/data/product/variant-type/index.ts +17 -0
  253. package/src/models/data/product/variant-type/init.ts +15 -0
  254. package/src/models/data/raffle/index.ts +155 -0
  255. package/src/models/data/sales-channel/index.ts +56 -0
  256. package/src/models/data/state/index.ts +18 -0
  257. package/src/models/data/stock-location/address/city/index.ts +16 -0
  258. package/src/models/data/stock-location/address/country/index.ts +18 -0
  259. package/src/models/data/stock-location/address/district/index.ts +18 -0
  260. package/src/models/data/stock-location/address/index.ts +34 -0
  261. package/src/models/data/stock-location/address/state/index.ts +18 -0
  262. package/src/models/data/stock-location/available/index.ts +22 -0
  263. package/src/models/data/stock-location/index.ts +35 -0
  264. package/src/models/data/storefront/domain/index.ts +20 -0
  265. package/src/models/data/storefront/index.ts +65 -0
  266. package/src/models/data/storefront/localization/index.tsx +18 -0
  267. package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
  268. package/src/models/data/storefront/routing/index.tsx +25 -0
  269. package/src/models/data/storefront/theme/index.tsx +25 -0
  270. package/src/models/data/storefront/theme-localization/index.tsx +31 -0
  271. package/src/models/data/theme-json/component/index.ts +41 -0
  272. package/src/models/data/theme-json/component/prop/index.ts +55 -0
  273. package/src/models/data/theme-json/custom-data/index.ts +132 -0
  274. package/src/models/data/theme-json/index.ts +210 -0
  275. package/src/models/data/theme-json/page/component/index.ts +22 -0
  276. package/src/models/data/theme-json/page/index.ts +54 -0
  277. package/src/models/data/theme-json/settings/color/index.ts +35 -0
  278. package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
  279. package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
  280. package/src/models/data/theme-json/settings/index.ts +30 -0
  281. package/src/models/data/variant-type/index.ts +44 -0
  282. package/src/models/data/variant-type/variant-value/index.ts +32 -0
  283. package/src/models/index.ts +2 -0
  284. package/src/models/ui/blog-category-list/index.ts +169 -0
  285. package/src/models/ui/blog-list/index.ts +175 -0
  286. package/src/models/ui/brand-list/index.ts +237 -0
  287. package/src/models/ui/category-list/index.ts +237 -0
  288. package/src/models/ui/component-renderer/index.ts +9 -0
  289. package/src/models/ui/customer-review-list/index.ts +173 -0
  290. package/src/models/ui/customer-review-summary-list/index.ts +175 -0
  291. package/src/models/ui/index.ts +40 -0
  292. package/src/models/ui/navigation-link/index.ts +23 -0
  293. package/src/models/ui/product-attribute-detail/index.ts +29 -0
  294. package/src/models/ui/product-attribute-list/index.ts +52 -0
  295. package/src/models/ui/product-list/index.ts +998 -0
  296. package/src/models/ui/raffle-list/index.ts +178 -0
  297. package/src/models/ui/validator/form/account-info.ts +167 -0
  298. package/src/models/ui/validator/form/address.ts +490 -0
  299. package/src/models/ui/validator/form/contact-form.ts +177 -0
  300. package/src/models/ui/validator/form/customer-review.ts +132 -0
  301. package/src/models/ui/validator/form/forgot-password.ts +96 -0
  302. package/src/models/ui/validator/form/login.ts +128 -0
  303. package/src/models/ui/validator/form/raffle-form.ts +276 -0
  304. package/src/models/ui/validator/form/recover-password.ts +148 -0
  305. package/src/models/ui/validator/form/register.ts +206 -0
  306. package/src/models/ui/validator/index.ts +121 -0
  307. package/src/models/ui/validator/rules/index.ts +310 -0
  308. package/src/page-data-init/index.ts +904 -0
  309. package/src/pages/404.tsx +10 -0
  310. package/src/pages/[slug]/index.tsx +9 -0
  311. package/src/pages/account/addresses.tsx +10 -0
  312. package/src/pages/account/favorite-products.tsx +9 -0
  313. package/src/pages/account/forgot-password.tsx +9 -0
  314. package/src/pages/account/index.tsx +9 -0
  315. package/src/pages/account/login.tsx +9 -0
  316. package/src/pages/account/orders/[id].tsx +9 -0
  317. package/src/pages/account/orders/index.tsx +9 -0
  318. package/src/pages/account/raffles.tsx +9 -0
  319. package/src/pages/account/recover-password.tsx +9 -0
  320. package/src/pages/account/register.tsx +9 -0
  321. package/src/pages/blog/[slug].tsx +9 -0
  322. package/src/pages/blog/index.tsx +9 -0
  323. package/src/pages/cart.tsx +9 -0
  324. package/src/pages/checkout.tsx +163 -0
  325. package/src/pages/editor.tsx +30 -0
  326. package/src/pages/home.tsx +10 -0
  327. package/src/pages/index.ts +22 -0
  328. package/src/pages/pages/[slug].tsx +9 -0
  329. package/src/pages/raffle/[slug].tsx +9 -0
  330. package/src/pages/raffle/index.tsx +9 -0
  331. package/src/pages/search.tsx +9 -0
  332. package/src/store/base.ts +238 -0
  333. package/src/store/blog/index.ts +49 -0
  334. package/src/store/brand/index.ts +16 -0
  335. package/src/store/cart/api.ts +58 -0
  336. package/src/store/cart/index.ts +311 -0
  337. package/src/store/category/index.ts +16 -0
  338. package/src/store/checkout/index.ts +92 -0
  339. package/src/store/customer/api.ts +273 -0
  340. package/src/store/customer/index.ts +658 -0
  341. package/src/store/html-meta-data/index.ts +16 -0
  342. package/src/store/index.ts +1 -0
  343. package/src/store/location/index.ts +56 -0
  344. package/src/store/merchant/index.ts +16 -0
  345. package/src/store/product/index.ts +113 -0
  346. package/src/store/raffle/index.ts +58 -0
  347. package/src/store/storefront/index.ts +18 -0
  348. package/src/typings/global.d.ts +7 -0
  349. package/src/utils/constants.ts +2 -0
  350. package/src/utils/currency.ts +250 -0
  351. package/src/utils/google-fonts.ts +52 -0
  352. package/src/utils/helper.ts +77 -0
  353. package/src/utils/i18n.ts +126 -0
  354. package/src/utils/index.ts +3 -0
  355. package/build/_virtual/_commonjsHelpers.js +0 -1
  356. package/build/_virtual/axios.js +0 -1
  357. package/build/_virtual/index.js +0 -1
  358. package/build/_virtual/index2.js +0 -1
  359. package/build/_virtual/index3.js +0 -1
  360. package/build/_virtual/react-is.development.js +0 -1
  361. package/build/_virtual/react-is.production.min.js +0 -1
  362. package/build/_virtual/react-stripe.umd.js +0 -1
  363. package/build/analytics/analytics.d.ts +0 -37
  364. package/build/analytics/analytics.js +0 -1
  365. package/build/analytics/events.d.ts +0 -37
  366. package/build/analytics/events.js +0 -1
  367. package/build/analytics/facebookPixel.d.ts +0 -15
  368. package/build/analytics/facebookPixel.js +0 -1
  369. package/build/analytics/googleAnalytics.d.ts +0 -13
  370. package/build/analytics/googleAnalytics.js +0 -1
  371. package/build/analytics/googleTagManager.d.ts +0 -203
  372. package/build/analytics/googleTagManager.js +0 -1
  373. package/build/analytics/googleUniversal.d.ts +0 -9
  374. package/build/analytics/googleUniversal.js +0 -1
  375. package/build/analytics/head/index.d.ts +0 -7
  376. package/build/analytics/head/index.js +0 -1
  377. package/build/analytics/ikas.d.ts +0 -134
  378. package/build/analytics/ikas.js +0 -1
  379. package/build/analytics/index.d.ts +0 -2
  380. package/build/analytics/tiktokPixel.d.ts +0 -13
  381. package/build/analytics/tiktokPixel.js +0 -1
  382. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  383. package/build/components/checkout/components/address-form/index.js +0 -1
  384. package/build/components/checkout/components/address-form/model.d.ts +0 -87
  385. package/build/components/checkout/components/address-form/model.js +0 -1
  386. package/build/components/checkout/components/button/index.d.ts +0 -13
  387. package/build/components/checkout/components/button/index.js +0 -1
  388. package/build/components/checkout/components/button/style.module.scss.js +0 -1
  389. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
  390. package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
  391. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
  392. package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
  393. package/build/components/checkout/components/cart-summary/index.js +0 -1
  394. package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
  395. package/build/components/checkout/components/checkbox/check.d.ts +0 -6
  396. package/build/components/checkout/components/checkbox/check.js +0 -1
  397. package/build/components/checkout/components/checkbox/index.d.ts +0 -10
  398. package/build/components/checkout/components/checkbox/index.js +0 -1
  399. package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
  400. package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
  401. package/build/components/checkout/components/credit-card-form/index.js +0 -1
  402. package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
  403. package/build/components/checkout/components/credit-card-form/model.js +0 -1
  404. package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
  405. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
  406. package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
  407. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
  408. package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
  409. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
  410. package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
  411. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
  412. package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
  413. package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
  414. package/build/components/checkout/components/customer-addresses/index.js +0 -1
  415. package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
  416. package/build/components/checkout/components/customer-addresses/model.js +0 -1
  417. package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
  418. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
  419. package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
  420. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
  421. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
  422. package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
  423. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
  424. package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
  425. package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
  426. package/build/components/checkout/components/delivery-methods/index.js +0 -1
  427. package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
  428. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
  429. package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
  430. package/build/components/checkout/components/error/index.d.ts +0 -7
  431. package/build/components/checkout/components/error/index.js +0 -1
  432. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
  433. package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
  434. package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
  435. package/build/components/checkout/components/error/payment-error/index.js +0 -1
  436. package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
  437. package/build/components/checkout/components/error/stock-error/index.js +0 -1
  438. package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
  439. package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
  440. package/build/components/checkout/components/error/unknown-error/index.js +0 -1
  441. package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
  442. package/build/components/checkout/components/expandable-section/index.js +0 -1
  443. package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
  444. package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
  445. package/build/components/checkout/components/form-item/caret-down.js +0 -1
  446. package/build/components/checkout/components/form-item/index.d.ts +0 -3
  447. package/build/components/checkout/components/form-item/index.js +0 -1
  448. package/build/components/checkout/components/form-item/model.d.ts +0 -61
  449. package/build/components/checkout/components/form-item/model.js +0 -1
  450. package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
  451. package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
  452. package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
  453. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
  454. package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
  455. package/build/components/checkout/components/input-with-button/index.js +0 -1
  456. package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
  457. package/build/components/checkout/components/klarna/index.d.ts +0 -7
  458. package/build/components/checkout/components/klarna/index.js +0 -1
  459. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
  460. package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
  461. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
  462. package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -11
  463. package/build/components/checkout/components/master-pass/modal/index.js +0 -1
  464. package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
  465. package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
  466. package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
  467. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +0 -10
  468. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +0 -1
  469. package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +0 -1
  470. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +0 -2
  471. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +0 -1
  472. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
  473. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
  474. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
  475. package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
  476. package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
  477. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
  478. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
  479. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
  480. package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
  481. package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
  482. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
  483. package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
  484. package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
  485. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +0 -2
  486. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +0 -1
  487. package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
  488. package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
  489. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
  490. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
  491. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
  492. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
  493. package/build/components/checkout/components/modal/index.d.ts +0 -8
  494. package/build/components/checkout/components/modal/index.js +0 -1
  495. package/build/components/checkout/components/modal/style.module.scss.js +0 -1
  496. package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
  497. package/build/components/checkout/components/modal/useEscape.js +0 -1
  498. package/build/components/checkout/components/notification-box/index.d.ts +0 -9
  499. package/build/components/checkout/components/notification-box/index.js +0 -1
  500. package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
  501. package/build/components/checkout/components/offer-product/index.d.ts +0 -8
  502. package/build/components/checkout/components/offer-product/index.js +0 -1
  503. package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
  504. package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
  505. package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
  506. package/build/components/checkout/components/offer-product/select/index.js +0 -1
  507. package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
  508. package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
  509. package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
  510. package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
  511. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
  512. package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
  513. package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
  514. package/build/components/checkout/components/phone-number-input/index.js +0 -1
  515. package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
  516. package/build/components/checkout/components/select-box/index.d.ts +0 -13
  517. package/build/components/checkout/components/select-box/index.js +0 -1
  518. package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
  519. package/build/components/checkout/components/step-container/index.d.ts +0 -15
  520. package/build/components/checkout/components/step-container/index.js +0 -1
  521. package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
  522. package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
  523. package/build/components/checkout/components/stripe/checkout-form.js +0 -1
  524. package/build/components/checkout/components/stripe/index.d.ts +0 -9
  525. package/build/components/checkout/components/stripe/index.js +0 -1
  526. package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
  527. package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
  528. package/build/components/checkout/components/svg/arrow-down.js +0 -1
  529. package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
  530. package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
  531. package/build/components/checkout/components/svg/cross.d.ts +0 -6
  532. package/build/components/checkout/components/svg/cross.js +0 -1
  533. package/build/components/checkout/components/svg/discount.d.ts +0 -6
  534. package/build/components/checkout/components/svg/external.d.ts +0 -6
  535. package/build/components/checkout/components/svg/external.js +0 -1
  536. package/build/components/checkout/components/svg/gift.d.ts +0 -7
  537. package/build/components/checkout/components/svg/gift.js +0 -1
  538. package/build/components/checkout/components/svg/ikas.d.ts +0 -6
  539. package/build/components/checkout/components/svg/ikas.js +0 -1
  540. package/build/components/checkout/components/svg/lock.d.ts +0 -6
  541. package/build/components/checkout/components/svg/lock.js +0 -1
  542. package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
  543. package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
  544. package/build/components/checkout/components/svg/success-circle.js +0 -1
  545. package/build/components/checkout/components/svg/tag.d.ts +0 -6
  546. package/build/components/checkout/components/svg/warning.d.ts +0 -6
  547. package/build/components/checkout/components/svg/warning.js +0 -1
  548. package/build/components/checkout/components/toggle/index.d.ts +0 -10
  549. package/build/components/checkout/components/toggle/index.js +0 -1
  550. package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
  551. package/build/components/checkout/components/tooltip/index.d.ts +0 -8
  552. package/build/components/checkout/components/tooltip/index.js +0 -1
  553. package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
  554. package/build/components/checkout/index.d.ts +0 -34
  555. package/build/components/checkout/index.js +0 -1
  556. package/build/components/checkout/model.d.ts +0 -173
  557. package/build/components/checkout/model.js +0 -1
  558. package/build/components/checkout/modelMasterPass.d.ts +0 -201
  559. package/build/components/checkout/modelMasterPass.js +0 -1
  560. package/build/components/checkout/steps/step-info/index.d.ts +0 -7
  561. package/build/components/checkout/steps/step-info/index.js +0 -1
  562. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
  563. package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
  564. package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
  565. package/build/components/checkout/steps/step-payment/index.js +0 -1
  566. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
  567. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
  568. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
  569. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
  570. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
  571. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
  572. package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
  573. package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
  574. package/build/components/checkout/steps/step-shipping/index.js +0 -1
  575. package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
  576. package/build/components/checkout/steps/step-success/index.d.ts +0 -7
  577. package/build/components/checkout/steps/step-success/index.js +0 -1
  578. package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
  579. package/build/components/checkout/style.module.scss.js +0 -1
  580. package/build/components/checkout/styles/common.module.scss.js +0 -1
  581. package/build/components/google-captcha/index.d.ts +0 -9
  582. package/build/components/google-captcha/index.js +0 -1
  583. package/build/components/image/index.d.ts +0 -10
  584. package/build/components/image/index.js +0 -1
  585. package/build/components/index.d.ts +0 -6
  586. package/build/components/link/index.d.ts +0 -16
  587. package/build/components/link/index.js +0 -1
  588. package/build/components/page/ThemeComponent.d.ts +0 -21
  589. package/build/components/page/ThemeComponent.js +0 -1
  590. package/build/components/page/head.d.ts +0 -15
  591. package/build/components/page/head.js +0 -1
  592. package/build/components/page/index.d.ts +0 -23
  593. package/build/components/page/index.js +0 -1
  594. package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
  595. package/build/components/page-editor/ThemeComponentEditor.js +0 -1
  596. package/build/components/page-editor/error/index.d.ts +0 -4
  597. package/build/components/page-editor/error/index.js +0 -1
  598. package/build/components/page-editor/index.d.ts +0 -4
  599. package/build/components/page-editor/index.js +0 -1
  600. package/build/components/page-editor/loader/index.d.ts +0 -6
  601. package/build/components/page-editor/loader/index.js +0 -1
  602. package/build/components/page-editor/loader/style.module.scss.js +0 -1
  603. package/build/components/page-editor/model.d.ts +0 -75
  604. package/build/components/page-editor/model.js +0 -1
  605. package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
  606. package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
  607. package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
  608. package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
  609. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
  610. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
  611. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
  612. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
  613. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
  614. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
  615. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
  616. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
  617. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
  618. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
  619. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
  620. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
  621. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
  622. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
  623. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
  624. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
  625. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
  626. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
  627. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
  628. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
  629. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
  630. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
  631. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
  632. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
  633. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
  634. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
  635. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
  636. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
  637. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
  638. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
  639. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
  640. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
  641. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
  642. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
  643. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
  644. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
  645. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
  646. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
  647. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
  648. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
  649. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
  650. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
  651. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
  652. package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
  653. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
  654. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
  655. package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
  656. package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
  657. package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +0 -1
  658. package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +0 -1
  659. package/build/ext/axios/index.js +0 -1
  660. package/build/ext/axios/lib/adapters/xhr.js +0 -1
  661. package/build/ext/axios/lib/axios.js +0 -1
  662. package/build/ext/axios/lib/cancel/Cancel.js +0 -1
  663. package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
  664. package/build/ext/axios/lib/cancel/isCancel.js +0 -1
  665. package/build/ext/axios/lib/core/Axios.js +0 -1
  666. package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
  667. package/build/ext/axios/lib/core/buildFullPath.js +0 -1
  668. package/build/ext/axios/lib/core/createError.js +0 -1
  669. package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
  670. package/build/ext/axios/lib/core/enhanceError.js +0 -1
  671. package/build/ext/axios/lib/core/mergeConfig.js +0 -1
  672. package/build/ext/axios/lib/core/settle.js +0 -1
  673. package/build/ext/axios/lib/core/transformData.js +0 -1
  674. package/build/ext/axios/lib/defaults/index.js +0 -1
  675. package/build/ext/axios/lib/defaults/transitional.js +0 -1
  676. package/build/ext/axios/lib/env/data.js +0 -1
  677. package/build/ext/axios/lib/helpers/bind.js +0 -1
  678. package/build/ext/axios/lib/helpers/buildURL.js +0 -1
  679. package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
  680. package/build/ext/axios/lib/helpers/cookies.js +0 -1
  681. package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
  682. package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
  683. package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
  684. package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
  685. package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
  686. package/build/ext/axios/lib/helpers/spread.js +0 -1
  687. package/build/ext/axios/lib/helpers/validator.js +0 -1
  688. package/build/ext/axios/lib/utils.js +0 -1
  689. package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
  690. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
  691. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
  692. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
  693. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
  694. package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
  695. package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
  696. package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
  697. package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
  698. package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +0 -1
  699. package/build/ext/libphonenumber-js/es6/constants.js +0 -1
  700. package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +0 -1
  701. package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +0 -1
  702. package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +0 -1
  703. package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +0 -1
  704. package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +0 -1
  705. package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +0 -1
  706. package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +0 -1
  707. package/build/ext/libphonenumber-js/es6/findNumbers/util.js +0 -1
  708. package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +0 -1
  709. package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
  710. package/build/ext/libphonenumber-js/es6/format_.js +0 -1
  711. package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
  712. package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
  713. package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
  714. package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  715. package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
  716. package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
  717. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  718. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  719. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  720. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
  721. package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
  722. package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
  723. package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
  724. package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
  725. package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
  726. package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
  727. package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
  728. package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
  729. package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
  730. package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
  731. package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
  732. package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
  733. package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
  734. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
  735. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
  736. package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
  737. package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
  738. package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
  739. package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
  740. package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +0 -1
  741. package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
  742. package/build/ext/libphonenumber-js/min/exports/AsYouType.js +0 -1
  743. package/build/ext/libphonenumber-js/min/exports/Metadata.js +0 -1
  744. package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +0 -1
  745. package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +0 -1
  746. package/build/ext/libphonenumber-js/min/exports/getCountries.js +0 -1
  747. package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -1
  748. package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +0 -1
  749. package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +0 -1
  750. package/build/ext/object-assign/index.js +0 -6
  751. package/build/ext/prop-types/checkPropTypes.js +0 -1
  752. package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
  753. package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
  754. package/build/ext/prop-types/index.js +0 -1
  755. package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
  756. package/build/ext/prop-types/lib/has.js +0 -1
  757. package/build/ext/react-is/cjs/react-is.development.js +0 -9
  758. package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
  759. package/build/ext/react-is/index.js +0 -1
  760. package/build/ext/react-tooltip/dist/index.es.js +0 -1
  761. package/build/ext/style-inject/dist/style-inject.es.js +0 -1
  762. package/build/ext/tslib/tslib.es6.js +0 -1
  763. package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +0 -1
  764. package/build/ext/uuid/dist/esm-browser/md5.js +0 -1
  765. package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
  766. package/build/ext/uuid/dist/esm-browser/sha1.js +0 -1
  767. package/build/ext/uuid/dist/esm-browser/v3.js +0 -1
  768. package/build/ext/uuid/dist/esm-browser/v35.js +0 -1
  769. package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
  770. package/build/ext/uuid/dist/esm-browser/v5.js +0 -1
  771. package/build/index.d.ts +0 -6
  772. package/build/index.js +0 -1
  773. package/build/models/data/base/index.d.ts +0 -8
  774. package/build/models/data/base/index.js +0 -1
  775. package/build/models/data/blog/category/index.d.ts +0 -12
  776. package/build/models/data/blog/category/index.js +0 -1
  777. package/build/models/data/blog/content/index.d.ts +0 -6
  778. package/build/models/data/blog/content/index.js +0 -1
  779. package/build/models/data/blog/index.d.ts +0 -27
  780. package/build/models/data/blog/index.js +0 -1
  781. package/build/models/data/blog/meta-data/index.d.ts +0 -16
  782. package/build/models/data/blog/meta-data/index.js +0 -1
  783. package/build/models/data/blog/tag/index.d.ts +0 -6
  784. package/build/models/data/blog/tag/index.js +0 -1
  785. package/build/models/data/blog/writer/index.d.ts +0 -6
  786. package/build/models/data/blog/writer/index.js +0 -1
  787. package/build/models/data/brand/index.d.ts +0 -26
  788. package/build/models/data/brand/index.js +0 -1
  789. package/build/models/data/brand/translation/index.d.ts +0 -7
  790. package/build/models/data/brand/translation/index.js +0 -1
  791. package/build/models/data/campaign-offer/index.d.ts +0 -21
  792. package/build/models/data/campaign-offer/index.js +0 -1
  793. package/build/models/data/campaign-offer/product/index.d.ts +0 -24
  794. package/build/models/data/campaign-offer/product/index.js +0 -1
  795. package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
  796. package/build/models/data/cart/available-shipping-method/index.js +0 -1
  797. package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
  798. package/build/models/data/cart/campaign-offer/index.js +0 -1
  799. package/build/models/data/cart/index.d.ts +0 -13
  800. package/build/models/data/cart/index.js +0 -1
  801. package/build/models/data/category/index.d.ts +0 -22
  802. package/build/models/data/category/index.js +0 -1
  803. package/build/models/data/category/path-item/index.d.ts +0 -14
  804. package/build/models/data/category/path-item/index.js +0 -1
  805. package/build/models/data/category/translations/index.d.ts +0 -7
  806. package/build/models/data/category/translations/index.js +0 -1
  807. package/build/models/data/checkout/index.d.ts +0 -22
  808. package/build/models/data/checkout/index.js +0 -1
  809. package/build/models/data/checkout-settings/index.d.ts +0 -20
  810. package/build/models/data/checkout-settings/index.js +0 -1
  811. package/build/models/data/checkout-settings/option/index.d.ts +0 -6
  812. package/build/models/data/checkout-settings/option/index.js +0 -1
  813. package/build/models/data/checkout-settings/price/index.d.ts +0 -7
  814. package/build/models/data/checkout-settings/price/index.js +0 -1
  815. package/build/models/data/city/index.d.ts +0 -12
  816. package/build/models/data/city/index.js +0 -1
  817. package/build/models/data/contact-form/index.d.ts +0 -9
  818. package/build/models/data/contact-form/index.js +0 -1
  819. package/build/models/data/country/index.d.ts +0 -18
  820. package/build/models/data/country/index.js +0 -1
  821. package/build/models/data/country/location-translations/index.d.ts +0 -7
  822. package/build/models/data/customer/address/city/index.d.ts +0 -7
  823. package/build/models/data/customer/address/city/index.js +0 -1
  824. package/build/models/data/customer/address/country/index.d.ts +0 -9
  825. package/build/models/data/customer/address/country/index.js +0 -1
  826. package/build/models/data/customer/address/district/index.d.ts +0 -7
  827. package/build/models/data/customer/address/district/index.js +0 -1
  828. package/build/models/data/customer/address/index.d.ts +0 -40
  829. package/build/models/data/customer/address/index.js +0 -1
  830. package/build/models/data/customer/address/state/index.d.ts +0 -7
  831. package/build/models/data/customer/address/state/index.js +0 -1
  832. package/build/models/data/customer/attribute/index.d.ts +0 -17
  833. package/build/models/data/customer/attribute/index.js +0 -1
  834. package/build/models/data/customer/attribute/option/index.d.ts +0 -9
  835. package/build/models/data/customer/attribute/option/index.js +0 -1
  836. package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
  837. package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
  838. package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
  839. package/build/models/data/customer/attribute/translation/index.js +0 -1
  840. package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
  841. package/build/models/data/customer/attribute/translation/option/index.js +0 -1
  842. package/build/models/data/customer/attribute/value/index.d.ts +0 -11
  843. package/build/models/data/customer/attribute/value/index.js +0 -1
  844. package/build/models/data/customer/index.d.ts +0 -38
  845. package/build/models/data/customer/index.js +0 -1
  846. package/build/models/data/customer/review/index.d.ts +0 -22
  847. package/build/models/data/customer/review/index.js +0 -1
  848. package/build/models/data/customer/review/settings/index.d.ts +0 -6
  849. package/build/models/data/customer/review/settings/index.js +0 -1
  850. package/build/models/data/customer/review/summary/index.d.ts +0 -10
  851. package/build/models/data/customer/review/summary/index.js +0 -1
  852. package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
  853. package/build/models/data/customer/review/summary/star/index.js +0 -1
  854. package/build/models/data/district/index.d.ts +0 -12
  855. package/build/models/data/district/index.js +0 -1
  856. package/build/models/data/favorite-product/index.d.ts +0 -7
  857. package/build/models/data/favorite-product/index.js +0 -1
  858. package/build/models/data/filter-category/index.d.ts +0 -12
  859. package/build/models/data/filter-category/index.js +0 -1
  860. package/build/models/data/html-meta-data/index.d.ts +0 -28
  861. package/build/models/data/html-meta-data/index.js +0 -1
  862. package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
  863. package/build/models/data/html-meta-data/translations/index.js +0 -1
  864. package/build/models/data/image/index.d.ts +0 -9
  865. package/build/models/data/image/index.js +0 -1
  866. package/build/models/data/index.d.ts +0 -136
  867. package/build/models/data/last-viewed-product/index.d.ts +0 -6
  868. package/build/models/data/last-viewed-product/index.js +0 -1
  869. package/build/models/data/merchant-settings/index.d.ts +0 -12
  870. package/build/models/data/merchant-settings/index.js +0 -1
  871. package/build/models/data/order/address/city/index.d.ts +0 -7
  872. package/build/models/data/order/address/city/index.js +0 -1
  873. package/build/models/data/order/address/country/index.d.ts +0 -9
  874. package/build/models/data/order/address/country/index.js +0 -1
  875. package/build/models/data/order/address/district/index.d.ts +0 -7
  876. package/build/models/data/order/address/district/index.js +0 -1
  877. package/build/models/data/order/address/index.d.ts +0 -37
  878. package/build/models/data/order/address/index.js +0 -1
  879. package/build/models/data/order/address/state/index.d.ts +0 -7
  880. package/build/models/data/order/address/state/index.js +0 -1
  881. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
  882. package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
  883. package/build/models/data/order/adjustment/index.d.ts +0 -15
  884. package/build/models/data/order/adjustment/index.js +0 -1
  885. package/build/models/data/order/customer/index.d.ts +0 -11
  886. package/build/models/data/order/customer/index.js +0 -1
  887. package/build/models/data/order/gift-line/index.d.ts +0 -6
  888. package/build/models/data/order/gift-line/index.js +0 -1
  889. package/build/models/data/order/index.d.ts +0 -68
  890. package/build/models/data/order/index.js +0 -1
  891. package/build/models/data/order/invoice/index.d.ts +0 -12
  892. package/build/models/data/order/invoice/index.js +0 -1
  893. package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
  894. package/build/models/data/order/line-item/base-unit/index.js +0 -1
  895. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
  896. package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
  897. package/build/models/data/order/line-item/discount/index.d.ts +0 -11
  898. package/build/models/data/order/line-item/discount/index.js +0 -1
  899. package/build/models/data/order/line-item/index.d.ts +0 -45
  900. package/build/models/data/order/line-item/index.js +0 -1
  901. package/build/models/data/order/line-item/option/index.d.ts +0 -10
  902. package/build/models/data/order/line-item/option/index.js +0 -1
  903. package/build/models/data/order/line-item/option/value/index.d.ts +0 -7
  904. package/build/models/data/order/line-item/option/value/index.js +0 -1
  905. package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
  906. package/build/models/data/order/line-item/variant/brand/index.js +0 -1
  907. package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
  908. package/build/models/data/order/line-item/variant/category/index.js +0 -1
  909. package/build/models/data/order/line-item/variant/index.d.ts +0 -30
  910. package/build/models/data/order/line-item/variant/index.js +0 -1
  911. package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
  912. package/build/models/data/order/line-item/variant/price/index.js +0 -1
  913. package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
  914. package/build/models/data/order/line-item/variant/unit/index.js +0 -1
  915. package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
  916. package/build/models/data/order/line-item/variant/value/index.js +0 -1
  917. package/build/models/data/order/package/index.d.ts +0 -14
  918. package/build/models/data/order/package/index.js +0 -1
  919. package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
  920. package/build/models/data/order/package/tracking-info/index.js +0 -1
  921. package/build/models/data/order/payment-method/index.d.ts +0 -9
  922. package/build/models/data/order/payment-method/index.js +0 -1
  923. package/build/models/data/order/refund/index.d.ts +0 -7
  924. package/build/models/data/order/refund/index.js +0 -1
  925. package/build/models/data/order/refund/line-item/index.d.ts +0 -6
  926. package/build/models/data/order/refund/line-item/index.js +0 -1
  927. package/build/models/data/order/refund/settings/index.d.ts +0 -7
  928. package/build/models/data/order/refund/settings/index.js +0 -1
  929. package/build/models/data/order/shipping-line/index.d.ts +0 -12
  930. package/build/models/data/order/shipping-line/index.js +0 -1
  931. package/build/models/data/order/tax-line/index.d.ts +0 -6
  932. package/build/models/data/order/tax-line/index.js +0 -1
  933. package/build/models/data/order/transaction/error/index.d.ts +0 -7
  934. package/build/models/data/order/transaction/error/index.js +0 -1
  935. package/build/models/data/order/transaction/index.d.ts +0 -25
  936. package/build/models/data/order/transaction/index.js +0 -1
  937. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
  938. package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
  939. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
  940. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
  941. package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
  942. package/build/models/data/payment-gateway/additional-price/index.js +0 -1
  943. package/build/models/data/payment-gateway/index.d.ts +0 -31
  944. package/build/models/data/payment-gateway/index.js +0 -1
  945. package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
  946. package/build/models/data/payment-gateway/settings/index.js +0 -1
  947. package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
  948. package/build/models/data/payment-gateway/translation/index.js +0 -1
  949. package/build/models/data/product/attribute/index.d.ts +0 -15
  950. package/build/models/data/product/attribute/index.js +0 -1
  951. package/build/models/data/product/attribute/option/index.d.ts +0 -6
  952. package/build/models/data/product/attribute/option/index.js +0 -1
  953. package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
  954. package/build/models/data/product/attribute/table-cell/index.js +0 -1
  955. package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
  956. package/build/models/data/product/attribute/table-template/index.js +0 -1
  957. package/build/models/data/product/attribute/translation/index.d.ts +0 -13
  958. package/build/models/data/product/attribute/translation/index.js +0 -1
  959. package/build/models/data/product/attribute-value/index.d.ts +0 -28
  960. package/build/models/data/product/attribute-value/index.js +0 -1
  961. package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
  962. package/build/models/data/product/back-in-stock-settings/index.js +0 -1
  963. package/build/models/data/product/base-unit/index.d.ts +0 -12
  964. package/build/models/data/product/base-unit/index.js +0 -1
  965. package/build/models/data/product/campaign/data/index.d.ts +0 -27
  966. package/build/models/data/product/campaign/data/index.js +0 -1
  967. package/build/models/data/product/campaign/filter/index.d.ts +0 -7
  968. package/build/models/data/product/campaign/filter/index.js +0 -1
  969. package/build/models/data/product/campaign/index.d.ts +0 -7
  970. package/build/models/data/product/campaign/index.js +0 -1
  971. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
  972. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
  973. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
  974. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
  975. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
  976. package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
  977. package/build/models/data/product/filter/index.d.ts +0 -84
  978. package/build/models/data/product/filter/index.js +0 -1
  979. package/build/models/data/product/image/index.d.ts +0 -10
  980. package/build/models/data/product/image/index.js +0 -1
  981. package/build/models/data/product/index.d.ts +0 -62
  982. package/build/models/data/product/index.js +0 -1
  983. package/build/models/data/product/option-set/index.d.ts +0 -29
  984. package/build/models/data/product/option-set/index.js +0 -1
  985. package/build/models/data/product/option-set/option/index.d.ts +0 -72
  986. package/build/models/data/product/option-set/option/index.js +0 -1
  987. package/build/models/data/product/tag/index.d.ts +0 -6
  988. package/build/models/data/product/tag/index.js +0 -1
  989. package/build/models/data/product/variant/index.d.ts +0 -31
  990. package/build/models/data/product/variant/index.js +0 -1
  991. package/build/models/data/product/variant/price/index.d.ts +0 -19
  992. package/build/models/data/product/variant/price/index.js +0 -1
  993. package/build/models/data/product/variant/unit/index.d.ts +0 -6
  994. package/build/models/data/product/variant/unit/index.js +0 -1
  995. package/build/models/data/product/variant-type/index.d.ts +0 -8
  996. package/build/models/data/product/variant-type/index.js +0 -1
  997. package/build/models/data/product/variant-type/init.d.ts +0 -2
  998. package/build/models/data/raffle/index.d.ts +0 -63
  999. package/build/models/data/raffle/index.js +0 -1
  1000. package/build/models/data/sales-channel/index.d.ts +0 -19
  1001. package/build/models/data/sales-channel/index.js +0 -1
  1002. package/build/models/data/state/index.d.ts +0 -8
  1003. package/build/models/data/state/index.js +0 -1
  1004. package/build/models/data/stock-location/address/city/index.d.ts +0 -7
  1005. package/build/models/data/stock-location/address/city/index.js +0 -1
  1006. package/build/models/data/stock-location/address/country/index.d.ts +0 -7
  1007. package/build/models/data/stock-location/address/country/index.js +0 -1
  1008. package/build/models/data/stock-location/address/district/index.d.ts +0 -7
  1009. package/build/models/data/stock-location/address/district/index.js +0 -1
  1010. package/build/models/data/stock-location/address/index.d.ts +0 -15
  1011. package/build/models/data/stock-location/address/index.js +0 -1
  1012. package/build/models/data/stock-location/address/state/index.d.ts +0 -7
  1013. package/build/models/data/stock-location/address/state/index.js +0 -1
  1014. package/build/models/data/stock-location/available/index.d.ts +0 -10
  1015. package/build/models/data/stock-location/available/index.js +0 -1
  1016. package/build/models/data/stock-location/index.d.ts +0 -14
  1017. package/build/models/data/stock-location/index.js +0 -1
  1018. package/build/models/data/storefront/domain/index.d.ts +0 -9
  1019. package/build/models/data/storefront/domain/index.js +0 -1
  1020. package/build/models/data/storefront/index.d.ts +0 -30
  1021. package/build/models/data/storefront/index.js +0 -1
  1022. package/build/models/data/storefront/localization/index.d.ts +0 -8
  1023. package/build/models/data/storefront/localization/index.js +0 -1
  1024. package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
  1025. package/build/models/data/storefront/meta-templates/index.js +0 -1
  1026. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
  1027. package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
  1028. package/build/models/data/storefront/routing/index.d.ts +0 -14
  1029. package/build/models/data/storefront/routing/index.js +0 -1
  1030. package/build/models/data/storefront/theme/index.d.ts +0 -10
  1031. package/build/models/data/storefront/theme/index.js +0 -1
  1032. package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
  1033. package/build/models/data/storefront/theme-localization/index.js +0 -1
  1034. package/build/models/data/theme-json/component/index.d.ts +0 -20
  1035. package/build/models/data/theme-json/component/index.js +0 -1
  1036. package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
  1037. package/build/models/data/theme-json/component/prop/index.js +0 -1
  1038. package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
  1039. package/build/models/data/theme-json/custom-data/index.js +0 -1
  1040. package/build/models/data/theme-json/index.d.ts +0 -16
  1041. package/build/models/data/theme-json/index.js +0 -1
  1042. package/build/models/data/theme-json/page/component/index.d.ts +0 -7
  1043. package/build/models/data/theme-json/page/component/index.js +0 -1
  1044. package/build/models/data/theme-json/page/index.d.ts +0 -21
  1045. package/build/models/data/theme-json/page/index.js +0 -1
  1046. package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
  1047. package/build/models/data/theme-json/settings/color/index.js +0 -1
  1048. package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
  1049. package/build/models/data/theme-json/settings/favicon/index.js +0 -1
  1050. package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
  1051. package/build/models/data/theme-json/settings/font-family/index.js +0 -1
  1052. package/build/models/data/theme-json/settings/index.d.ts +0 -13
  1053. package/build/models/data/theme-json/settings/index.js +0 -1
  1054. package/build/models/data/variant-type/index.d.ts +0 -13
  1055. package/build/models/data/variant-type/index.js +0 -1
  1056. package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
  1057. package/build/models/data/variant-type/variant-value/index.js +0 -1
  1058. package/build/models/index.d.ts +0 -2
  1059. package/build/models/ui/blog-category-list/index.d.ts +0 -51
  1060. package/build/models/ui/blog-category-list/index.js +0 -1
  1061. package/build/models/ui/blog-list/index.d.ts +0 -55
  1062. package/build/models/ui/blog-list/index.js +0 -1
  1063. package/build/models/ui/brand-list/index.d.ts +0 -61
  1064. package/build/models/ui/brand-list/index.js +0 -1
  1065. package/build/models/ui/category-list/index.d.ts +0 -61
  1066. package/build/models/ui/category-list/index.js +0 -1
  1067. package/build/models/ui/component-renderer/index.d.ts +0 -7
  1068. package/build/models/ui/component-renderer/index.js +0 -1
  1069. package/build/models/ui/customer-review-list/index.d.ts +0 -43
  1070. package/build/models/ui/customer-review-list/index.js +0 -1
  1071. package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
  1072. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  1073. package/build/models/ui/index.d.ts +0 -25
  1074. package/build/models/ui/navigation-link/index.d.ts +0 -8
  1075. package/build/models/ui/navigation-link/index.js +0 -1
  1076. package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
  1077. package/build/models/ui/product-attribute-detail/index.js +0 -1
  1078. package/build/models/ui/product-attribute-list/index.d.ts +0 -8
  1079. package/build/models/ui/product-attribute-list/index.js +0 -1
  1080. package/build/models/ui/product-list/index.d.ts +0 -138
  1081. package/build/models/ui/product-list/index.js +0 -1
  1082. package/build/models/ui/raffle-list/index.d.ts +0 -53
  1083. package/build/models/ui/raffle-list/index.js +0 -1
  1084. package/build/models/ui/validator/form/account-info.d.ts +0 -39
  1085. package/build/models/ui/validator/form/account-info.js +0 -1
  1086. package/build/models/ui/validator/form/address.d.ts +0 -75
  1087. package/build/models/ui/validator/form/address.js +0 -1
  1088. package/build/models/ui/validator/form/contact-form.d.ts +0 -42
  1089. package/build/models/ui/validator/form/contact-form.js +0 -1
  1090. package/build/models/ui/validator/form/customer-review.d.ts +0 -34
  1091. package/build/models/ui/validator/form/customer-review.js +0 -1
  1092. package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
  1093. package/build/models/ui/validator/form/forgot-password.js +0 -1
  1094. package/build/models/ui/validator/form/login.d.ts +0 -32
  1095. package/build/models/ui/validator/form/login.js +0 -1
  1096. package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
  1097. package/build/models/ui/validator/form/raffle-form.js +0 -1
  1098. package/build/models/ui/validator/form/recover-password.d.ts +0 -33
  1099. package/build/models/ui/validator/form/recover-password.js +0 -1
  1100. package/build/models/ui/validator/form/register.d.ts +0 -49
  1101. package/build/models/ui/validator/form/register.js +0 -1
  1102. package/build/models/ui/validator/index.d.ts +0 -27
  1103. package/build/models/ui/validator/index.js +0 -1
  1104. package/build/models/ui/validator/rules/index.d.ts +0 -101
  1105. package/build/models/ui/validator/rules/index.js +0 -1
  1106. package/build/page-data-init/index.d.ts +0 -40
  1107. package/build/page-data-init/index.js +0 -1
  1108. package/build/pages/404.d.ts +0 -4
  1109. package/build/pages/404.js +0 -1
  1110. package/build/pages/[slug]/index.d.ts +0 -4
  1111. package/build/pages/_slug_/index.js +0 -1
  1112. package/build/pages/account/addresses.d.ts +0 -4
  1113. package/build/pages/account/addresses.js +0 -1
  1114. package/build/pages/account/favorite-products.d.ts +0 -4
  1115. package/build/pages/account/favorite-products.js +0 -1
  1116. package/build/pages/account/forgot-password.d.ts +0 -4
  1117. package/build/pages/account/forgot-password.js +0 -1
  1118. package/build/pages/account/index.d.ts +0 -4
  1119. package/build/pages/account/index.js +0 -1
  1120. package/build/pages/account/login.d.ts +0 -4
  1121. package/build/pages/account/login.js +0 -1
  1122. package/build/pages/account/orders/[id].d.ts +0 -4
  1123. package/build/pages/account/orders/_id_.js +0 -1
  1124. package/build/pages/account/orders/index.d.ts +0 -4
  1125. package/build/pages/account/orders/index.js +0 -1
  1126. package/build/pages/account/raffles.d.ts +0 -4
  1127. package/build/pages/account/raffles.js +0 -1
  1128. package/build/pages/account/recover-password.d.ts +0 -4
  1129. package/build/pages/account/recover-password.js +0 -1
  1130. package/build/pages/account/register.d.ts +0 -4
  1131. package/build/pages/account/register.js +0 -1
  1132. package/build/pages/blog/[slug].d.ts +0 -4
  1133. package/build/pages/blog/_slug_.js +0 -1
  1134. package/build/pages/blog/index.d.ts +0 -4
  1135. package/build/pages/blog/index.js +0 -1
  1136. package/build/pages/cart.d.ts +0 -4
  1137. package/build/pages/cart.js +0 -1
  1138. package/build/pages/checkout.d.ts +0 -18
  1139. package/build/pages/checkout.js +0 -1
  1140. package/build/pages/editor.d.ts +0 -10
  1141. package/build/pages/editor.js +0 -1
  1142. package/build/pages/home.d.ts +0 -4
  1143. package/build/pages/home.js +0 -1
  1144. package/build/pages/index.d.ts +0 -22
  1145. package/build/pages/pages/[slug].d.ts +0 -4
  1146. package/build/pages/pages/_slug_.js +0 -1
  1147. package/build/pages/raffle/[slug].d.ts +0 -4
  1148. package/build/pages/raffle/_slug_.js +0 -1
  1149. package/build/pages/raffle/index.d.ts +0 -4
  1150. package/build/pages/raffle/index.js +0 -1
  1151. package/build/pages/search.d.ts +0 -4
  1152. package/build/pages/search.js +0 -1
  1153. package/build/store/base.d.ts +0 -44
  1154. package/build/store/base.js +0 -1
  1155. package/build/store/blog/index.d.ts +0 -26
  1156. package/build/store/blog/index.js +0 -1
  1157. package/build/store/brand/index.d.ts +0 -12
  1158. package/build/store/brand/index.js +0 -1
  1159. package/build/store/cart/api.d.ts +0 -10
  1160. package/build/store/cart/api.js +0 -1
  1161. package/build/store/cart/index.d.ts +0 -27
  1162. package/build/store/cart/index.js +0 -1
  1163. package/build/store/category/index.d.ts +0 -12
  1164. package/build/store/category/index.js +0 -1
  1165. package/build/store/checkout/index.d.ts +0 -15
  1166. package/build/store/checkout/index.js +0 -1
  1167. package/build/store/customer/api.d.ts +0 -54
  1168. package/build/store/customer/api.js +0 -1
  1169. package/build/store/customer/index.d.ts +0 -79
  1170. package/build/store/customer/index.js +0 -1
  1171. package/build/store/html-meta-data/index.d.ts +0 -6
  1172. package/build/store/html-meta-data/index.js +0 -1
  1173. package/build/store/index.d.ts +0 -3
  1174. package/build/store/location/index.d.ts +0 -9
  1175. package/build/store/location/index.js +0 -1
  1176. package/build/store/merchant/index.d.ts +0 -6
  1177. package/build/store/product/index.d.ts +0 -37
  1178. package/build/store/product/index.js +0 -1
  1179. package/build/store/raffle/index.d.ts +0 -15
  1180. package/build/store/raffle/index.js +0 -1
  1181. package/build/store/storefront/index.d.ts +0 -5
  1182. package/build/utils/constants.d.ts +0 -2
  1183. package/build/utils/constants.js +0 -1
  1184. package/build/utils/currency.d.ts +0 -7
  1185. package/build/utils/currency.js +0 -1
  1186. package/build/utils/google-fonts.d.ts +0 -2
  1187. package/build/utils/google-fonts.js +0 -1
  1188. package/build/utils/helper.d.ts +0 -4
  1189. package/build/utils/helper.js +0 -1
  1190. package/build/utils/i18n.d.ts +0 -11
  1191. package/build/utils/i18n.js +0 -1
  1192. package/build/utils/index.d.ts +0 -3
@@ -1,79 +0,0 @@
1
- import { IkasContactForm, IkasCustomer, IkasCustomerAttributeValue, IkasFavoriteProduct, IkasOrderTransaction, IkasProduct, IkasOrder } from "../../models/data";
2
- import { IkasBaseStore } from "../base";
3
- export declare class IkasCustomerStore {
4
- customer?: IkasCustomer | null;
5
- token?: string | null;
6
- tokenExpiry?: number | null;
7
- private baseStore?;
8
- private _initialized;
9
- private _visitorSubscribedEmail;
10
- private _lastViewedProducts;
11
- private _customerConsentGranted;
12
- private _refundSettings?;
13
- private _captchaToken;
14
- constructor(baseStore?: IkasBaseStore);
15
- get initialized(): boolean;
16
- get canCreateEmailSubscription(): boolean;
17
- get customerConsentGranted(): boolean;
18
- get isCaptchaRequired(): boolean | null | undefined;
19
- private toAnalyticsCustomer;
20
- socialLogin(provider: "facebook" | "google"): Promise<void>;
21
- socialLoginToken(token: string): Promise<boolean>;
22
- refundOrder(order: IkasOrder): Promise<boolean>;
23
- login: (email: string, password: string) => Promise<boolean>;
24
- logout: () => void;
25
- register: (firstName: string, lastName: string, email: string, password: string, isMarketingAccepted?: boolean, attributes?: IkasCustomerAttributeValue[]) => Promise<boolean>;
26
- saveContactForm: (input: IkasContactForm) => Promise<boolean>;
27
- checkEmail: (email: string) => Promise<boolean>;
28
- forgotPassword: (email: string) => Promise<boolean>;
29
- recoverPassword: (password: string, passwordAgain: string, token: string) => Promise<boolean>;
30
- saveCustomer: (customer: IkasCustomer) => Promise<boolean>;
31
- getOrders: () => Promise<IkasOrder[]>;
32
- getOrder: (id: string) => Promise<IkasOrder | null>;
33
- getOrderTransactions: (params?: {
34
- checkoutId?: string;
35
- id?: string;
36
- orderId?: string;
37
- }) => Promise<IkasOrderTransaction[]>;
38
- getFavoriteProductsIds: () => Promise<IkasFavoriteProduct[]>;
39
- getFavoriteProducts: () => Promise<IkasProduct[]>;
40
- addProductToFavorites: (productId: string) => Promise<boolean>;
41
- removeProductFromFavorites: (productId: string) => Promise<boolean>;
42
- isProductFavorite: (productId: string) => Promise<boolean>;
43
- createEmailSubscription: (email: string) => Promise<boolean>;
44
- sendReview: (input: IkasCustomerReviewForm) => Promise<import("../../models/data").IkasCustomerReview | null | undefined>;
45
- onCustomerConsentGrant: () => void;
46
- waitUntilInitialized: () => Promise<unknown>;
47
- waitUntilCaptchaTokenInitialized: () => Promise<unknown>;
48
- setCaptchaToken: (token: string) => void;
49
- getCaptcha(): Promise<void>;
50
- getRaffles: () => Promise<import("@ikas/fe-api-client").APIResponse<import("../../models/data").IkasRaffleParticipant[]>>;
51
- getCustomerAttributes: () => Promise<import("../../models/data").IkasCustomerAttribute[]>;
52
- getOrderByEmail: (email: string, orderNumber: string) => Promise<IkasOrder | null>;
53
- private init;
54
- private getOrderRefundSettings;
55
- private routeChangeInit;
56
- private getCustomer;
57
- private refreshToken;
58
- private setCustomer;
59
- private getLastViewedProducts;
60
- private saveLastViewedProducts;
61
- private loadLastViewedProducts;
62
- private removeLastViewedProducts;
63
- private onProductView;
64
- private saveLocalLastViewedProducts;
65
- private saveCustomerConsent;
66
- private loadCustomerConsent;
67
- private removeCustomerConsent;
68
- private setToken;
69
- private loadToken;
70
- private clearLocalTokenData;
71
- private clearLocalData;
72
- private clearCaptchaToken;
73
- }
74
- export declare type IkasCustomerReviewForm = {
75
- comment?: string;
76
- productId: string;
77
- star: number;
78
- title?: string;
79
- };
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e,__assign as r}from'./../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import o from"lodash/uniqBy";import s from"./api.js";import{IkasCustomer as n}from"../../models/data/customer/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasCustomerEmailSubscriptionStatus as a}from"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import c from"../raffle/index.js";import'./../../ext/@ikas/fe-api-client/build/utils/api.js';import'./../../ext/axios/index.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import u from"../product/index.js";import{Analytics as d}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasStorefrontConfig as l}from"@ikas/storefront-config";import{SaveMyCustomerInput as h}from"@ikas/storefront-api";import{populateRaffleProducts as m}from"@ikas/storefront-providers";var p="undefined"==typeof localStorage,f=function(){function f(o){var n=this;this.customer=null,this.token=null,this.tokenExpiry=null,this.baseStore=null,this._initialized=!1,this._visitorSubscribedEmail=!1,this._lastViewedProducts=[],this._customerConsentGranted=!1,this._refundSettings=null,this._captchaToken=null,this.toAnalyticsCustomer=function(t){return r(r({},t),{consentGranted:n._customerConsentGranted})},this.login=function(r,i){return t(n,void 0,void 0,(function(){var t,o,n,a;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.login({email:r,password:i,captchaToken:this._captchaToken})];case 2:return t=e.sent(),this.clearCaptchaToken(),t&&t.isSuccess&&t.data?(o=t.data,this.setToken(o.token,o.tokenExpiry),o.customer&&this.setCustomer(o.customer),this.customer&&d.customerLogin(),(n=null===(a=this.baseStore)||void 0===a?void 0:a.cartStore.cart)?[4,this.baseStore.cartStore.changeItemQuantity(n.orderLineItems[0],n.orderLineItems[0].quantity)]:[3,4]):[3,5];case 3:e.sent(),e.label=4;case 4:return this.saveLocalLastViewedProducts(),[2,!0];case 5:return[2,!1]}}))}))},this.logout=function(){var t;n.clearLocalData(),null===(t=n.baseStore)||void 0===t||t.cartStore.removeCart(),d.customerLogout()},this.register=function(r,i,o,a,c,u){return t(n,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.register({email:o,password:a,firstName:r,lastName:i,isAcceptMarketing:c,attributes:u,captchaToken:this._captchaToken})];case 2:return t=e.sent(),this.clearCaptchaToken(),t&&t.isSuccess&&(null===(n=t.data)||void 0===n?void 0:n.customer)?(this.setToken(t.data.token,t.data.tokenExpiry),this.setCustomer(t.data.customer),this.saveLocalLastViewedProducts(),d.completeRegistration(this.toAnalyticsCustomer(this.customer)),[2,!0]):[2,!1]}}))}))},this.saveContactForm=function(i){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return d.contactForm(i),[4,this.getCaptcha()];case 1:return e.sent(),[4,s.sendContactFormToMerchant(r(r({},i),{captchaToken:this._captchaToken}))];case 2:return t=e.sent(),this.clearCaptchaToken(),[2,t.isSuccess]}}))}))},this.checkEmail=function(r){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.checkEmail({email:r,captchaToken:this._captchaToken})];case 2:return t=e.sent(),this.clearCaptchaToken(),[2,t.isSuccess]}}))}))},this.forgotPassword=function(r){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.forgotPassword({email:r,captchaToken:this._captchaToken})];case 2:return t=e.sent(),this.clearCaptchaToken(),[2,t.isSuccess]}}))}))},this.recoverPassword=function(r,i,o){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.recoverPassword({password:r,passwordAgain:i,token:o,captchaToken:this._captchaToken})];case 2:return t=e.sent(),this.clearCaptchaToken(),[2,t.isSuccess]}}))}))},this.saveCustomer=function(r){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,s.saveCustomer({input:new h(r)})];case 1:return(t=e.sent()).isSuccess&&t.data?(this.setCustomer(t.data),[2,!0]):[2,!1]}}))}))},this.getOrders=function(){return t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,s.getOrders({})];case 1:return[2,t.sent().data||[]]}}))}))},this.getOrder=function(r){return t(n,void 0,void 0,(function(){var t,i,o;return e(this,(function(e){switch(e.label){case 0:return[4,s.getOrders({orderId:r})];case 1:return(t=e.sent()).isSuccess&&(null===(o=t.data)||void 0===o?void 0:o.length)?(i=t.data[0],[4,this.getOrderRefundSettings()]):[2,null];case 2:return e.sent(),i.refundSettings=this._refundSettings,[2,i]}}))}))},this.getOrderTransactions=function(r){return void 0===r&&(r={}),t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,s.listOrderTransactions({checkoutId:{eq:r.checkoutId},id:{eq:r.checkoutId},orderId:{eq:r.orderId}})];case 1:return[2,t.sent().data||[]]}}))}))},this.getFavoriteProductsIds=function(){return t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,s.listFavoriteProducts()];case 1:return[2,t.sent().data||[]]}}))}))},this.getFavoriteProducts=function(){return t(n,void 0,void 0,(function(){var t,r,i,o;return e(this,(function(e){switch(e.label){case 0:return[4,s.listFavoriteProducts()];case 1:return(t=e.sent()).isSuccess&&(null===(i=t.data)||void 0===i?void 0:i.length)?[4,u.searchProducts({input:{productIdList:t.data.map((function(t){return t.productId})),priceListId:l.getPriceListId(),salesChannelId:l.getSalesChannelId()}})]:[2,[]];case 2:return r=e.sent(),[2,(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.data)||[]]}}))}))},this.addProductToFavorites=function(r){return t(n,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:if(!(null===(i=this.customer)||void 0===i?void 0:i.id))throw Error("Unauthorized");return[4,s.saveFavoriteProduct({isFavorite:!0,productId:r})];case 1:return t=e.sent(),d.addToWishlist(r),[2,t.data||!1]}}))}))},this.removeProductFromFavorites=function(r){return t(n,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:if(!(null===(i=this.customer)||void 0===i?void 0:i.id))throw Error("Unauthorized");return[4,s.saveFavoriteProduct({isFavorite:!1,productId:r})];case 1:return t=e.sent(),d.addToWishlist(r),[2,t.data||!1]}}))}))},this.isProductFavorite=function(r){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!(null===(t=this.customer)||void 0===t?void 0:t.id))throw Error("Unauthorized");return[4,s.isFavoriteProduct({productId:r})];case 1:return[2,e.sent().data||!1]}}))}))},this.createEmailSubscription=function(r){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,this.getCaptcha()];case 1:return e.sent(),[4,s.subscribeToMarketingNotifications({input:{email:r,captchaToken:this._captchaToken}})];case 2:return(t=e.sent()).isSuccess&&(window.localStorage.setItem("customerEmailSubscription","true"),this.customer?(this.customer.subscriptionStatus,a.SUBSCRIBED):this._visitorSubscribedEmail=!0,d.createEmailSubscripition(r)),[2,t.isSuccess]}}))}))},this.sendReview=function(i){return t(n,void 0,void 0,(function(){var t,o,n,a;return e(this,(function(e){switch(e.label){case 0:if(t=l.getCustomerReviewSettings(),o=l.getSalesChannelId(),!t)return[2];if(!(n=null===(a=this.customer)||void 0===a?void 0:a.id)&&t.customerLoginRequired)throw Error("Unauthorized");return[4,s.createCustomerReview({input:r(r({},i),{customerId:t.customerLoginRequired?n:void 0,salesChannelId:o||""})})];case 1:return[2,e.sent().data]}}))}))},this.onCustomerConsentGrant=function(){n.saveCustomerConsent()},this.waitUntilInitialized=function(){return new Promise((function(t){var e=setInterval((function(){n.initialized&&(clearInterval(e),t(null))}),100)}))},this.waitUntilCaptchaTokenInitialized=function(){return new Promise((function(t){var e=setInterval((function(){n._captchaToken&&(clearInterval(e),t(null))}),100)}))},this.setCaptchaToken=function(t){n._captchaToken=t},this.getRaffles=function(){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,c.listRaffleParticipants()];case 1:return(t=e.sent())&&t.data?[4,m(t.data.filter((function(t){return!!t.raffle})).map((function(t){return t.raffle})))]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2,t]}}))}))},this.getCustomerAttributes=function(){return t(n,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,s.listCustomerAttribute()];case 1:return t=e.sent(),this.customer&&(null===(r=this.customer.attributes)||void 0===r||r.forEach((function(e){var r,i,o;e.customerAttribute=(null===(r=t.data)||void 0===r?void 0:r.find((function(t){return t.id===e.customerAttributeId})))||null,e.customerAttributeOptionId&&(e.customerAttributeOption=(null===(o=null===(i=e.customerAttribute)||void 0===i?void 0:i.options)||void 0===o?void 0:o.find((function(t){return t.id===e.customerAttributeOptionId})))||null)}))),[2,t.data||[]]}}))}))},this.getOrderByEmail=function(r,i){return t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,s.getOrderByEmail({email:r,orderNumber:i})];case 1:return[2,t.sent().data||null]}}))}))},this.getOrderRefundSettings=function(){return t(n,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return this._refundSettings?[3,2]:[4,s.listOrderRefundSettings({})];case 1:(t=e.sent()).isSuccess&&(null===(r=t.data)||void 0===r?void 0:r.length)&&(this._refundSettings=t.data[0]),e.label=2;case 2:return[2]}}))}))},this.baseStore=o,i(this)}return Object.defineProperty(f.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"canCreateEmailSubscription",{get:function(){var t;return!((null===(t=this.customer)||void 0===t?void 0:t.isSubscribed)||p||this._visitorSubscribedEmail)&&!window.localStorage.getItem("customerEmailSubscription")},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"customerConsentGranted",{get:function(){return this._customerConsentGranted},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isCaptchaRequired",{get:function(){var t;return null===(t=l.getCustomerSettings())||void 0===t?void 0:t.requireCaptchaValidation},enumerable:!1,configurable:!0}),f.prototype.socialLogin=function(r){return t(this,void 0,void 0,(function(){var t,i,o;return e(this,(function(e){switch(e.label){case 0:return"undefined"==typeof window?[2]:(t=new URLSearchParams(window.location.search).get("redirect")||"",i="".concat(process.env.NEXT_PUBLIC_BASE_URL,"/ms/").concat(r,"/login/authenticate?redirect=").concat(t),[4,fetch(i,{headers:{"x-api-key":l.getApiKey()||"","x-sfid":l.getStorefrontId()||"","x-sfrid":l.getStorefrontRoutingId()||""}})]);case 1:return[4,e.sent().json()];case 2:return o=e.sent(),window.location.href=o.redirectUrl,[2]}}))}))},f.prototype.socialLoginToken=function(r){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,s.socialLogin({code:r})];case 1:return(null==(t=e.sent())?void 0:t.isSuccess)&&(null===(i=t.data)||void 0===i?void 0:i.customer)?(this.setToken(t.data.token,t.data.tokenExpiry),this.setCustomer(t.data.customer),this.customer&&d.customerLogin(),[2,!0]):[2,!1]}}))}))},f.prototype.refundOrder=function(r){return t(this,void 0,void 0,(function(){var t,i,o=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=[],r.orderLineItems.map((function(e){null!==e.refundQuantity&&(null==t||t.push({orderLineItemId:e.id,quantity:e.refundQuantity?e.refundQuantity:0}))})),[4,s.createOrderRefundRequest({input:{orderId:r.id,orderLineItems:t}})];case 1:return(i=e.sent()).isSuccess&&i.data?(Object.entries(i.data).forEach((function(t){var e=t[0],r=t[1];o[e]=r})),[2,!0]):[3,3];case 2:return e.sent(),[3,3];case 3:return[2,!1]}}))}))},f.prototype.getCaptcha=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.isCaptchaRequired?(window.grecaptcha.execute(),[4,this.waitUntilCaptchaTokenInitialized()]):[3,2];case 1:e.sent(),window.grecaptcha.reset(),e.label=2;case 2:return[3,4];case 3:return t=e.sent(),console.log("Get captcha error",t),[3,4];case 4:return[2]}}))}))},f.prototype.init=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return this.loadToken(),this.loadLastViewedProducts(),this.loadCustomerConsent(),[4,this.refreshToken()];case 1:return t.sent(),[4,this.getCustomer()];case 2:return t.sent(),this._initialized=!0,this.customer&&d.customerVisit(),[2]}}))}))},f.prototype.routeChangeInit=function(){this.customer||(this.loadToken(),this.getCustomer())},f.prototype.getCustomer=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return p||!this.token?[2]:[4,s.getCustomer()];case 1:return(t=e.sent()).data&&this.setCustomer(t.data),[2]}}))}))},f.prototype.refreshToken=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.token?[4,s.refreshToken({token:this.token})]:[2];case 1:return(t=e.sent()).isSuccess&&t.data?this.setToken(t.data.token,t.data.tokenExpiry):(this.token=null,this.tokenExpiry=null,this.clearLocalData()),[2]}}))}))},f.prototype.setCustomer=function(t){this.customer=new n(t)},f.prototype.getLastViewedProducts=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.customer?[4,s.getLastViewedProducts({customerId:this.customer.id})]:[3,2];case 1:return t=e.sent(),this._lastViewedProducts=t.data||[],[3,3];case 2:this.loadLastViewedProducts(),e.label=3;case 3:return[2,this._lastViewedProducts]}}))}))},f.prototype.saveLastViewedProducts=function(){p||window.localStorage.setItem("lastViewedProducts",JSON.stringify(this._lastViewedProducts))},f.prototype.loadLastViewedProducts=function(){if(!p)try{var t=window.localStorage.getItem("lastViewedProducts");t&&(this._lastViewedProducts=JSON.parse(t),this._lastViewedProducts=this._lastViewedProducts.reverse(),this._lastViewedProducts=o(this._lastViewedProducts,"variantId"))}catch(t){}},f.prototype.removeLastViewedProducts=function(){p||window.localStorage.removeItem("lastViewedProducts")},f.prototype.onProductView=function(r,i){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return this.customer?this._lastViewedProducts.find((function(t){return t.productId===r}))?[2]:[4,s.saveLastViewedProducts({input:{customerId:this.customer.id,products:[{productId:r,variantId:i}]}})]:[3,2];case 1:return t.sent()&&this._lastViewedProducts.push({productId:r,variantId:i}),[3,3];case 2:this._lastViewedProducts.push({productId:r,variantId:i}),this._lastViewedProducts=this._lastViewedProducts.slice(0,20),this._lastViewedProducts=o(this._lastViewedProducts,"variantId"),this.saveLastViewedProducts(),t.label=3;case 3:return[2]}}))}))},f.prototype.saveLocalLastViewedProducts=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:if(p)return[2];t.label=1;case 1:return t.trys.push([1,4,,5]),this.loadLastViewedProducts(),this._lastViewedProducts.length?[4,s.saveLastViewedProducts({input:{customerId:this.customer.id,products:this._lastViewedProducts}})]:[3,3];case 2:t.sent()&&this.removeLastViewedProducts(),t.label=3;case 3:return[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},f.prototype.saveCustomerConsent=function(){p||(this._customerConsentGranted=!0,window.localStorage.setItem("customerConsent","true"))},f.prototype.loadCustomerConsent=function(){p||(this._customerConsentGranted=!!window.localStorage.getItem("customerConsent"))},f.prototype.removeCustomerConsent=function(){p||window.localStorage.removeItem("customerConsent")},f.prototype.setToken=function(t,e){p||(this.token=t,this.tokenExpiry=e,localStorage.setItem("customerToken",t),localStorage.setItem("customerTokenExpiry",e+""),l.init({customerToken:t}))},f.prototype.loadToken=function(){if(!p){var t=localStorage.getItem("customerToken"),e=localStorage.getItem("customerTokenExpiry");t&&e&&this.setToken(t,parseInt(e))}},f.prototype.clearLocalTokenData=function(){localStorage.removeItem("customerToken"),localStorage.removeItem("customerTokenExpiry"),this.token=void 0,this.tokenExpiry=void 0},f.prototype.clearLocalData=function(){this.clearLocalTokenData(),this.customer=void 0,l.init({customerToken:""}),this.clearCaptchaToken()},f.prototype.clearCaptchaToken=function(){this._captchaToken=null},f}();export{f as IkasCustomerStore};
@@ -1,6 +0,0 @@
1
- import { APIResponse } from "@ikas/fe-api-client";
2
- import { ListHTMLMetaDataQueryParams } from "@ikas/storefront-api";
3
- import { IkasHTMLMetaData } from "../../models/data";
4
- export default class HtmlMetaDataStore {
5
- static listHTMLMetaData(params: ListHTMLMetaDataQueryParams): Promise<APIResponse<IkasHTMLMetaData[]>>;
6
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as d}from'./../../ext/@ikas/fe-api-client/build/utils/api.js';import'./../../ext/axios/index.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import{listHTMLMetaData as o}from"@ikas/storefront-api";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"mobx";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import{IkasHTMLMetaData as a}from"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";var i=function(){function i(){}return i.listHTMLMetaData=function(i){var s;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,o(i)];case 1:return t=e.sent(),[2,new d(null===(s=t.data)||void 0===s?void 0:s.map((function(t){return new a(t)})),t.graphQLErrors)]}}))}))},i}();export{i as default};
@@ -1,3 +0,0 @@
1
- export { IkasBaseStore } from "./base";
2
- export { IkasCustomerStore } from "./customer";
3
- export { IkasCartStore } from "./cart";
@@ -1,9 +0,0 @@
1
- import { ListCountryQueryParams, APIResponse, ListCityQueryParams, ListDistrictQueryParams, ListStateQueryParams } from "@ikas/storefront-api";
2
- import { IkasCity, IkasCountry, IkasDistrict, IkasState } from "../../models/data";
3
- export default class LocationStore {
4
- static getMyCountry(): Promise<APIResponse<string> | APIResponse<undefined>>;
5
- static listCountry(params: ListCountryQueryParams): Promise<APIResponse<IkasCountry[]>>;
6
- static listCity(params: ListCityQueryParams): Promise<APIResponse<IkasCity[]>>;
7
- static listDistrict(params: ListDistrictQueryParams): Promise<APIResponse<IkasDistrict[]>>;
8
- static listState(params: ListStateQueryParams): Promise<APIResponse<IkasState[]>>;
9
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{getMyCountry as o,APIResponse as r,listCountry as i,listCity as a,listDistrict as d,listState as s}from"@ikas/storefront-api";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"mobx";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import{IkasCity as n}from"../../models/data/city/index.js";import{IkasCountry as m}from"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import{IkasDistrict as l}from"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import{IkasState as p}from"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";var u=function(){function u(){}return u.getMyCountry=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,o()];case 1:return[2,t.sent()]}}))}))},u.listCountry=function(o){var a;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,i(o)];case 1:return t=e.sent(),[2,new r(null===(a=t.data)||void 0===a?void 0:a.map((function(t){return new m(t)})),t.graphQLErrors)]}}))}))},u.listCity=function(o){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,a(o)];case 1:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.map((function(t){return new n(t)})),t.graphQLErrors)]}}))}))},u.listDistrict=function(o){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,d(o)];case 1:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.map((function(t){return new l(t)})),t.graphQLErrors)]}}))}))},u.listState=function(o){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,s(o)];case 1:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.map((function(t){return new p(t)})),t.graphQLErrors)]}}))}))},u}();export{u as default};
@@ -1,6 +0,0 @@
1
- import { APIResponse } from "@ikas/fe-api-client";
2
- import { ListMerchantSettingsQueryParams } from "@ikas/storefront-api";
3
- import { IkasMerchantSettings } from "../../models/data";
4
- export default class MerchantStore {
5
- static listMerchantSettings(params: ListMerchantSettingsQueryParams): Promise<APIResponse<IkasMerchantSettings | null>>;
6
- }
@@ -1,37 +0,0 @@
1
- import { APIResponse, GetOrderLineFileQueryParams, GetProductCampaignsQueryParams, GetProductFilterDataQueryParams, GetRelatedProductsQueryParams, ListProductAttributeQueryParams, ListProductBackInStockRemindQueryParams, ListProductOptionSetQueryParams, SaveProductBackInStockRemindQueryParams, SearchProductsQueryParams } from "@ikas/storefront-api";
2
- import { IkasProduct } from "../../models/data/product";
3
- import { IkasProductAttribute } from "../../models/data/product/attribute";
4
- import { IkasProductCampaign } from "../../models/data/product/campaign";
5
- import { IkasProductFilter } from "../../models/data/product/filter";
6
- import { IkasProductOptionSet } from "../../models/data/product/option-set";
7
- import { IkasFilterCategory } from "../../models/data/filter-category";
8
- export default class ProductStore {
9
- static listProductBackInStockRemind(params: ListProductBackInStockRemindQueryParams): Promise<APIResponse<import("@ikas/storefront-api/build/__api/types").ProductBackInStockRemind[]> | APIResponse<undefined>>;
10
- static saveProductBackInStockRemind(params: SaveProductBackInStockRemindQueryParams): Promise<APIResponse<undefined> | APIResponse<import("@ikas/storefront-api/build/__api/types").ProductBackInStockRemind>>;
11
- static searchProducts(params: SearchProductsQueryParams): Promise<APIResponse<{
12
- data: IkasProduct[] | undefined;
13
- count?: number | undefined;
14
- facets?: import("@ikas/storefront-api/build/__api/types").ProductFacetCount[] | null | undefined;
15
- limit?: number | undefined;
16
- page?: number | undefined;
17
- results?: import("@ikas/storefront-api/build/__api/types").SearchProduct[] | undefined;
18
- totalCount?: number | undefined;
19
- locale: string;
20
- }>>;
21
- static getProductFilterData(params: GetProductFilterDataQueryParams): Promise<APIResponse<{
22
- filters: IkasProductFilter[];
23
- categories: IkasFilterCategory[] | undefined;
24
- } | null>>;
25
- static getRelatedProducts(params: GetRelatedProductsQueryParams): Promise<APIResponse<{
26
- data: IkasProduct[] | undefined;
27
- count?: any;
28
- facets?: null | undefined;
29
- limit?: number | undefined;
30
- page?: number | undefined;
31
- totalCount?: any;
32
- }>>;
33
- static listProductAttribute(params: ListProductAttributeQueryParams): Promise<APIResponse<IkasProductAttribute[]>>;
34
- static getProductCampaigns(params: GetProductCampaignsQueryParams): Promise<APIResponse<IkasProductCampaign[]>>;
35
- static getOrderLineFile(params: GetOrderLineFileQueryParams): Promise<APIResponse<undefined> | APIResponse<string>>;
36
- static listProductOptionSet(params: ListProductOptionSetQueryParams): Promise<APIResponse<IkasProductOptionSet[]>>;
37
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as r,__assign as n}from'./../../ext/tslib/tslib.es6.js';import{listProductBackInStockRemind as e,saveProductBackInStockRemind as i,APIResponse as o,searchProducts as a,getProductFilterData as u,getRelatedProducts as s,listProductAttribute as c,getProductCampaigns as d,getOrderLineFile as l,listProductOptionSet as f}from"@ikas/storefront-api";import{IkasProduct as v}from"../../models/data/product/index.js";import{IkasProductAttribute as m}from"../../models/data/product/attribute/index.js";import{IkasProductCampaign as h}from"../../models/data/product/campaign/index.js";import{IkasProductFilter as p}from"../../models/data/product/filter/index.js";import{IkasProductOptionSet as w}from"../../models/data/product/option-set/index.js";import{IkasFilterCategory as g}from"../../models/data/filter-category/index.js";import{IkasStorefrontConfig as b}from"@ikas/storefront-config";var P=function(){function P(){}return P.listProductBackInStockRemind=function(n){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,e(n)];case 1:return[2,t.sent()]}}))}))},P.saveProductBackInStockRemind=function(n){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,i(n)];case 1:return[2,t.sent()]}}))}))},P.searchProducts=function(e){var i,u;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,a(e)];case 1:return t=r.sent(),[2,new o(n(n({locale:b.getCurrentLocale()},t.data),{data:null===(u=null===(i=t.data)||void 0===i?void 0:i.data)||void 0===u?void 0:u.map((function(t){return new v(t)}))}))]}}))}))},P.getProductFilterData=function(n){var e;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,u(n)];case 1:return t=r.sent(),[2,new o(t.data?{filters:t.data.filters.map((function(t){return new p(t)})),categories:null===(e=t.data.categories)||void 0===e?void 0:e.map((function(t){return new g(t)}))}:null,t.graphQLErrors)]}}))}))},P.getRelatedProducts=function(e){var i,a;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,s(e)];case 1:return t=r.sent(),[2,new o(n(n({},t.data),{data:null===(a=null===(i=t.data)||void 0===i?void 0:i.data)||void 0===a?void 0:a.map((function(t){return new v(t)}))}),t.graphQLErrors)]}}))}))},P.listProductAttribute=function(n){var e;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,c(n)];case 1:return t=r.sent(),[2,new o(null===(e=t.data)||void 0===e?void 0:e.map((function(t){return new m(t)})),t.graphQLErrors)]}}))}))},P.getProductCampaigns=function(n){var e;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,d(n)];case 1:return t=r.sent(),[2,new o(null===(e=t.data)||void 0===e?void 0:e.map((function(t){return new h(t)})),t.graphQLErrors)]}}))}))},P.getOrderLineFile=function(n){return t(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,l(n)];case 1:return[2,t.sent()]}}))}))},P.listProductOptionSet=function(n){var e;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return[4,f(n)];case 1:return t=r.sent(),[2,new o(null===(e=t.data)||void 0===e?void 0:e.map((function(t){return new w(t)})),t.graphQLErrors)]}}))}))},P}();export{P as default};
@@ -1,15 +0,0 @@
1
- import { APIResponse } from "@ikas/fe-api-client";
2
- import { ListRaffleMetadataQueryParams, ListStorefrontRaffleParams, SaveRaffleParticipantQueryParams } from "@ikas/storefront-api";
3
- import { IkasRaffle, IkasRaffleParticipant, IkasRaffleMetaData } from "../../models/data/raffle";
4
- export default class RaffleStore {
5
- static listStorefrontRaffle(params: ListStorefrontRaffleParams): Promise<APIResponse<{
6
- data: IkasRaffle[] | undefined;
7
- count?: number | undefined;
8
- hasNext?: boolean | undefined;
9
- limit?: number | undefined;
10
- page?: number | undefined;
11
- }>>;
12
- static saveRaffleParticipant(params: SaveRaffleParticipantQueryParams): Promise<APIResponse<IkasRaffleParticipant | null>>;
13
- static listRaffleMetaData(params: ListRaffleMetadataQueryParams): Promise<APIResponse<IkasRaffleMetaData[]>>;
14
- static listRaffleParticipants(): Promise<APIResponse<IkasRaffleParticipant[]>>;
15
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e,__assign as i}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from'./../../ext/@ikas/fe-api-client/build/utils/api.js';import'./../../ext/axios/index.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import{listStorefrontRaffle as r,saveRaffleParticipant as a,listRaffleMetaData as o,listRaffleParticipants as s}from"@ikas/storefront-api";import{IkasRaffle as u,IkasRaffleParticipant as d,IkasRaffleMetaData as l}from"../../models/data/raffle/index.js";var f=function(){function f(){}return f.listStorefrontRaffle=function(a){var o,s;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,r(a)];case 1:return t=e.sent(),[2,new n(i(i({},t.data),{data:null===(s=null===(o=t.data)||void 0===o?void 0:o.data)||void 0===s?void 0:s.map((function(t){return new u(t)}))}))]}}))}))},f.saveRaffleParticipant=function(i){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,a(i)];case 1:return t=e.sent(),[2,new n(t.data?new d(t.data):null,t.graphQLErrors)]}}))}))},f.listRaffleMetaData=function(i){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,o(i)];case 1:return t=e.sent(),[2,new n(null===(r=t.data)||void 0===r?void 0:r.map((function(t){return new l(t)})),t.graphQLErrors)]}}))}))},f.listRaffleParticipants=function(){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,s()];case 1:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.map((function(t){return new d(t)})),t.graphQLErrors)]}}))}))},f}();export{f as default};
@@ -1,5 +0,0 @@
1
- import { APIResponse, GetStorefrontQueryParams } from "@ikas/storefront-api";
2
- import { IkasStorefront } from "../../models/data";
3
- export default class StorefrontStore {
4
- static getStorefront(params: GetStorefrontQueryParams): Promise<APIResponse<IkasStorefront | null>>;
5
- }
@@ -1,2 +0,0 @@
1
- export declare const FREE_TEXT_CITY_COUNTRY_LIST: string[];
2
- export declare const DISTRICT_HIDDEN_COUNTRY_LIST: string[];
@@ -1 +0,0 @@
1
- var r=["DE","US","AT"],S=["US"];export{S as DISTRICT_HIDDEN_COUNTRY_LIST,r as FREE_TEXT_CITY_COUNTRY_LIST};
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param price Price to format
4
- * @param currencyCode Currency code
5
- * @param currencySymbol Symbol for the currency
6
- */
7
- export declare const formatCurrency: (price: number, currencyCode: string, currencySymbol: string | null) => string;
@@ -1 +0,0 @@
1
- import{IkasStorefrontConfig as r}from"@ikas/storefront-config";var n=function(n,o,t){var e,c,a,l,i,u,d,v=null===(c=null===(e=r.getMerchantSettings())||void 0===e?void 0:e.currencyFormats)||void 0===c?void 0:c.find((function(r){return r.currencyCode===o})),m=(null==v?void 0:v.symbol)||t||"",s=(null==v?void 0:v.decimalSeparator)||".",f=(null==v?void 0:v.thousandSeparator)||",",p=(null==v?void 0:v.symbolPosition)||"LEFT";try{var y=(l=f,i=s,u="\\d(?=(\\d{"+(3||3)+"})+"+((a=2)>0?"\\D":"$")+")",d=n.toFixed(Math.max(0,~~a)),(i?d.replace(".",i):d).replace(new RegExp(u,"g"),"$&"+(l||",")));return(null==v?void 0:v.omitZeroDecimal)&&(y=function(r){var n=r.split(s);return"00"===n[n.length-1]?n[0]:r}(y)),function(r){return"LEFT"===p?"".concat(m," ").concat(r):"".concat(r," ").concat(m)}(y)}catch(o){return console.error(o),new Intl.NumberFormat(r.getCurrentLocale(),{style:"currency",currency:t||"TRY"}).format(n)}};export{n as formatCurrency};
@@ -1,2 +0,0 @@
1
- import { IkasThemeJsonFontFamily } from "@ikas/storefront-models";
2
- export declare const getGoogleFontHref: (fontFamily: IkasThemeJsonFontFamily) => string | undefined;
@@ -1 +0,0 @@
1
- var a=function(a){if(a.name){var t=a.name.replace(/ /g,"+"),e="";if(a.variants){e+=":";var r=a.variants.some((function(a){return"italic"===a}));if(r&&(e+="ital,"),e+="wght@",r){var n=new RegExp("italic","i");e+=a.variants.reduce((function(a,t){return n.test(t)?a:a+"0,".concat(t.replace("regular","400"),";")}),""),e+=a.variants.reduce((function(a,t){return n.test(t)?a+"1,".concat("italic"===t?"400":t.replace("italic",""),";"):a}),"")}else e+=a.variants.reduce((function(a,t){return a+"".concat(t.replace("regular","400"),";")}),"");e=e.substring(0,e.length-1),e+="&display=swap"}return"https://fonts.googleapis.com/css2?family=".concat(t).concat(e)}};export{a as getGoogleFontHref};
@@ -1,4 +0,0 @@
1
- export declare function findAllIndexes(str: string, pattern: string): number[];
2
- export declare function stringSorter(atitle: string, btitle: string): number;
3
- export declare function tryForEach(items: Array<any>, callback: (item: any, index: number) => void, printErrors?: boolean): void;
4
- export declare function formatDate(date: Date): string;
@@ -1 +0,0 @@
1
- import{IkasStorefrontConfig as r}from"@ikas/storefront-config";function n(r,n){var e=[];if(!r||!n)return[];for(var t=0;t<r.length;){var o=r.indexOf(n,t);if(-1===o)break;t=o+1,e.push(o)}return e}function e(r,n){var e="0123456789AaBbCcÇçDdEeFfGgĞğHhIıİiJjKkLlMmNnOoÖöPpQqRrSsŞşTtUuÜüVvWwXxYyZz",t=r||"",o=n||"";if(0===t.length||0===o.length)return t.length-o.length;for(var a=0;a<t.length&&a<o.length;a++){var i=e.indexOf(t[a].toUpperCase()),u=e.indexOf(o[a].toUpperCase());if(i!==u)return i-u}return 0}function t(r){return!!new Intl.DateTimeFormat(r,{hour:"numeric"}).format(0).match(/\s/)}function o(r,n,e){void 0===e&&(e=!1),r.forEach((function(r,t){try{n(r,t)}catch(r){e&&console.error(r)}}))}function a(n){var e={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1},o=r.getCurrentLocale();return"undefined"!=typeof navigator?e.hour12=t(navigator.language):e.hour12=t(o),new Intl.DateTimeFormat(o,e).format(n)}export{n as findAllIndexes,a as formatDate,e as stringSorter,o as tryForEach};
@@ -1,11 +0,0 @@
1
- declare function t(pathString: string, params?: Record<string, any>): string;
2
- export declare function useTranslation(): {
3
- t: typeof t;
4
- };
5
- export declare function createTranslationInputData(value: string): InputData[];
6
- declare type InputData = {
7
- value: string;
8
- isVariable: boolean;
9
- };
10
- export declare type TFunction = (pathString: string, params?: Record<string, any>) => string;
11
- export {};
@@ -1 +0,0 @@
1
- import{IkasStorefrontConfig as r}from"@ikas/storefront-config";import e from"lodash/get";import{findAllIndexes as t}from"./helper.js";function n(t,n){var a="common",u="",o=t.split(":");if(o.length>2)return t;2===o.length?(a=o[0],u=o[1]):u=o[0];var l=r.getTranslations()[a];if(!l)return t;var f=e(l,u);if(f){if(n){for(var s="",v=0,p=i(f);v<p.length;v++){var c=p[v];if(c.isVariable){var h=c.value.replace("{{","").replace("}}","").trim();n[h]?s+=n[h]:s+=c.value}else s+=c.value}return s}return f}return t}function a(){return{t:n}}function i(r){var e=[];if(!r)return e;for(var n=t(r,"{{"),a=t(r,"}}"),i=n.map((function(r,e){return{start:r,end:a[e]+1}})),u=function(r){return i.some((function(e){return e.start<=r&&e.end>=r}))},o="",l=!1,f=0;f<r.length;f++){var s=r.charAt(f);l?u(f)?o+=s:(e.push({isVariable:!0,value:o}),o=s,l=!1):u(f)?(e.push({isVariable:!1,value:o}),o=s,l=!0):o+=s,f===r.length-1&&e.push({isVariable:l,value:o})}return e}export{i as createTranslationInputData,a as useTranslation};
@@ -1,3 +0,0 @@
1
- export { formatDate } from "./helper";
2
- export * from "./currency";
3
- export { useTranslation, createTranslationInputData } from "./i18n";