@ikas/storefront 4.0.0-alpha.7 → 4.0.0-alpha.70

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 (1190) hide show
  1. package/build/_virtual/_commonjsHelpers.js +1 -0
  2. package/build/_virtual/axios.js +1 -0
  3. package/build/_virtual/index.js +1 -0
  4. package/build/_virtual/index2.js +1 -0
  5. package/build/_virtual/index3.js +1 -0
  6. package/build/_virtual/react-is.development.js +1 -0
  7. package/build/_virtual/react-is.production.min.js +1 -0
  8. package/build/_virtual/react-stripe.umd.js +1 -0
  9. package/build/analytics/analytics.d.ts +37 -0
  10. package/build/analytics/analytics.js +1 -0
  11. package/build/analytics/events.d.ts +37 -0
  12. package/build/analytics/events.js +1 -0
  13. package/build/analytics/facebookPixel.d.ts +15 -0
  14. package/build/analytics/facebookPixel.js +1 -0
  15. package/build/analytics/googleAnalytics.d.ts +13 -0
  16. package/build/analytics/googleAnalytics.js +1 -0
  17. package/build/analytics/googleTagManager.d.ts +203 -0
  18. package/build/analytics/googleTagManager.js +1 -0
  19. package/build/analytics/googleUniversal.d.ts +9 -0
  20. package/build/analytics/googleUniversal.js +1 -0
  21. package/build/analytics/head/index.d.ts +7 -0
  22. package/build/analytics/head/index.js +1 -0
  23. package/build/analytics/ikas.d.ts +134 -0
  24. package/build/analytics/ikas.js +1 -0
  25. package/build/analytics/index.d.ts +2 -0
  26. package/build/analytics/tiktokPixel.d.ts +13 -0
  27. package/build/analytics/tiktokPixel.js +1 -0
  28. package/build/components/checkout/components/address-form/index.d.ts +3 -0
  29. package/build/components/checkout/components/address-form/index.js +1 -0
  30. package/build/components/checkout/components/address-form/model.d.ts +87 -0
  31. package/build/components/checkout/components/address-form/model.js +1 -0
  32. package/build/components/checkout/components/button/index.d.ts +13 -0
  33. package/build/components/checkout/components/button/index.js +1 -0
  34. package/build/components/checkout/components/button/style.module.scss.js +1 -0
  35. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
  36. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
  37. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
  38. package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
  39. package/build/components/checkout/components/cart-summary/index.js +1 -0
  40. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
  41. package/build/components/checkout/components/checkbox/check.d.ts +6 -0
  42. package/build/components/checkout/components/checkbox/check.js +1 -0
  43. package/build/components/checkout/components/checkbox/index.d.ts +10 -0
  44. package/build/components/checkout/components/checkbox/index.js +1 -0
  45. package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
  46. package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
  47. package/build/components/checkout/components/credit-card-form/index.js +1 -0
  48. package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
  49. package/build/components/checkout/components/credit-card-form/model.js +1 -0
  50. package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
  51. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
  52. package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
  53. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
  54. package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
  55. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
  56. package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
  57. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
  58. package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
  59. package/build/components/checkout/components/customer-addresses/index.d.ts +19 -0
  60. package/build/components/checkout/components/customer-addresses/index.js +1 -0
  61. package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
  62. package/build/components/checkout/components/customer-addresses/model.js +1 -0
  63. package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
  64. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
  65. package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
  66. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
  67. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
  68. package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
  69. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
  70. package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
  71. package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
  72. package/build/components/checkout/components/delivery-methods/index.js +1 -0
  73. package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
  74. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
  75. package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
  76. package/build/components/checkout/components/error/index.d.ts +7 -0
  77. package/build/components/checkout/components/error/index.js +1 -0
  78. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +3 -0
  79. package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
  80. package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
  81. package/build/components/checkout/components/error/payment-error/index.js +1 -0
  82. package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
  83. package/build/components/checkout/components/error/stock-error/index.js +1 -0
  84. package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
  85. package/build/components/checkout/components/error/unknown-error/index.d.ts +8 -0
  86. package/build/components/checkout/components/error/unknown-error/index.js +1 -0
  87. package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
  88. package/build/components/checkout/components/expandable-section/index.js +1 -0
  89. package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
  90. package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
  91. package/build/components/checkout/components/form-item/caret-down.js +1 -0
  92. package/build/components/checkout/components/form-item/index.d.ts +3 -0
  93. package/build/components/checkout/components/form-item/index.js +1 -0
  94. package/build/components/checkout/components/form-item/model.d.ts +61 -0
  95. package/build/components/checkout/components/form-item/model.js +1 -0
  96. package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
  97. package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
  98. package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
  99. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
  100. package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
  101. package/build/components/checkout/components/input-with-button/index.js +1 -0
  102. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
  103. package/build/components/checkout/components/klarna/index.d.ts +9 -0
  104. package/build/components/checkout/components/klarna/index.js +1 -0
  105. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +8 -0
  106. package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -0
  107. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +1 -0
  108. package/build/components/checkout/components/master-pass/modal/index.d.ts +11 -0
  109. package/build/components/checkout/components/master-pass/modal/index.js +1 -0
  110. package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
  111. package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +2 -0
  112. package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
  113. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +10 -0
  114. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +1 -0
  115. package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +1 -0
  116. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +2 -0
  117. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +1 -0
  118. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +2 -0
  119. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
  120. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +10 -0
  121. package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
  122. package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
  123. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +2 -0
  124. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
  125. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +9 -0
  126. package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
  127. package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
  128. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +10 -0
  129. package/build/components/checkout/components/master-pass/modal-success/index.js +1 -0
  130. package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +1 -0
  131. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +2 -0
  132. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +1 -0
  133. package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +2 -0
  134. package/build/components/checkout/components/master-pass/modal-success/svg/success.js +1 -0
  135. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +2 -0
  136. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
  137. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
  138. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
  139. package/build/components/checkout/components/modal/index.d.ts +8 -0
  140. package/build/components/checkout/components/modal/index.js +1 -0
  141. package/build/components/checkout/components/modal/style.module.scss.js +1 -0
  142. package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
  143. package/build/components/checkout/components/modal/useEscape.js +1 -0
  144. package/build/components/checkout/components/notification-box/index.d.ts +9 -0
  145. package/build/components/checkout/components/notification-box/index.js +1 -0
  146. package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
  147. package/build/components/checkout/components/offer-product/index.d.ts +8 -0
  148. package/build/components/checkout/components/offer-product/index.js +1 -0
  149. package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
  150. package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
  151. package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
  152. package/build/components/checkout/components/offer-product/select/index.js +1 -0
  153. package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
  154. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
  155. package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +2 -0
  156. package/build/components/checkout/components/phone-number-input/compare-strings.js +1 -0
  157. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +7 -0
  158. package/build/components/checkout/components/phone-number-input/get-countries.js +1 -0
  159. package/build/components/checkout/components/phone-number-input/index.d.ts +10 -0
  160. package/build/components/checkout/components/phone-number-input/index.js +1 -0
  161. package/build/components/checkout/components/phone-number-input/style.module.scss.js +1 -0
  162. package/build/components/checkout/components/select-box/index.d.ts +13 -0
  163. package/build/components/checkout/components/select-box/index.js +1 -0
  164. package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
  165. package/build/components/checkout/components/step-container/index.d.ts +15 -0
  166. package/build/components/checkout/components/step-container/index.js +1 -0
  167. package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
  168. package/build/components/checkout/components/stripe/checkout-form.d.ts +8 -0
  169. package/build/components/checkout/components/stripe/checkout-form.js +1 -0
  170. package/build/components/checkout/components/stripe/index.d.ts +9 -0
  171. package/build/components/checkout/components/stripe/index.js +1 -0
  172. package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
  173. package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
  174. package/build/components/checkout/components/svg/arrow-down.js +1 -0
  175. package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
  176. package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
  177. package/build/components/checkout/components/svg/cross.d.ts +6 -0
  178. package/build/components/checkout/components/svg/cross.js +1 -0
  179. package/build/components/checkout/components/svg/discount.d.ts +6 -0
  180. package/build/components/checkout/components/svg/external.d.ts +6 -0
  181. package/build/components/checkout/components/svg/external.js +1 -0
  182. package/build/components/checkout/components/svg/gift.d.ts +7 -0
  183. package/build/components/checkout/components/svg/gift.js +1 -0
  184. package/build/components/checkout/components/svg/ikas.d.ts +6 -0
  185. package/build/components/checkout/components/svg/ikas.js +1 -0
  186. package/build/components/checkout/components/svg/lock.d.ts +6 -0
  187. package/build/components/checkout/components/svg/lock.js +1 -0
  188. package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
  189. package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
  190. package/build/components/checkout/components/svg/success-circle.js +1 -0
  191. package/build/components/checkout/components/svg/tag.d.ts +6 -0
  192. package/build/components/checkout/components/svg/warning.d.ts +6 -0
  193. package/build/components/checkout/components/svg/warning.js +1 -0
  194. package/build/components/checkout/components/toggle/index.d.ts +10 -0
  195. package/build/components/checkout/components/toggle/index.js +1 -0
  196. package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
  197. package/build/components/checkout/components/tooltip/index.d.ts +8 -0
  198. package/build/components/checkout/components/tooltip/index.js +1 -0
  199. package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
  200. package/build/components/checkout/index.d.ts +34 -0
  201. package/build/components/checkout/index.js +1 -0
  202. package/build/components/checkout/model.d.ts +167 -0
  203. package/build/components/checkout/model.js +1 -0
  204. package/build/components/checkout/modelMasterPass.d.ts +201 -0
  205. package/build/components/checkout/modelMasterPass.js +1 -0
  206. package/build/components/checkout/steps/step-info/index.d.ts +7 -0
  207. package/build/components/checkout/steps/step-info/index.js +1 -0
  208. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
  209. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
  210. package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
  211. package/build/components/checkout/steps/step-payment/index.js +1 -0
  212. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
  213. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
  214. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
  215. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
  216. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
  217. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
  218. package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
  219. package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
  220. package/build/components/checkout/steps/step-shipping/index.js +1 -0
  221. package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
  222. package/build/components/checkout/steps/step-success/index.d.ts +7 -0
  223. package/build/components/checkout/steps/step-success/index.js +1 -0
  224. package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
  225. package/build/components/checkout/style.module.scss.js +1 -0
  226. package/build/components/checkout/styles/common.module.scss.js +1 -0
  227. package/build/components/google-captcha/index.d.ts +9 -0
  228. package/build/components/google-captcha/index.js +1 -0
  229. package/build/components/image/index.d.ts +10 -0
  230. package/build/components/image/index.js +1 -0
  231. package/build/components/index.d.ts +6 -0
  232. package/build/components/link/index.d.ts +16 -0
  233. package/build/components/link/index.js +1 -0
  234. package/build/components/page/ThemeComponent.d.ts +21 -0
  235. package/build/components/page/ThemeComponent.js +1 -0
  236. package/build/components/page/head.d.ts +15 -0
  237. package/build/components/page/head.js +1 -0
  238. package/build/components/page/index.d.ts +23 -0
  239. package/build/components/page/index.js +1 -0
  240. package/build/components/page-editor/ThemeComponentEditor.d.ts +32 -0
  241. package/build/components/page-editor/ThemeComponentEditor.js +1 -0
  242. package/build/components/page-editor/error/index.d.ts +4 -0
  243. package/build/components/page-editor/error/index.js +1 -0
  244. package/build/components/page-editor/index.d.ts +4 -0
  245. package/build/components/page-editor/index.js +1 -0
  246. package/build/components/page-editor/loader/index.d.ts +6 -0
  247. package/build/components/page-editor/loader/index.js +1 -0
  248. package/build/components/page-editor/loader/style.module.scss.js +1 -0
  249. package/build/components/page-editor/model.d.ts +75 -0
  250. package/build/components/page-editor/model.js +1 -0
  251. package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +1 -0
  252. package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +1 -0
  253. package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +1 -0
  254. package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +1 -0
  255. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +1 -0
  256. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +1 -0
  257. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +1 -0
  258. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +1 -0
  259. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +1 -0
  260. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +1 -0
  261. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +1 -0
  262. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +1 -0
  263. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +1 -0
  264. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +1 -0
  265. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +1 -0
  266. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +1 -0
  267. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +1 -0
  268. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +1 -0
  269. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +1 -0
  270. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +1 -0
  271. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +1 -0
  272. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +1 -0
  273. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +1 -0
  274. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +1 -0
  275. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +1 -0
  276. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +1 -0
  277. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +1 -0
  278. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +1 -0
  279. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +1 -0
  280. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +1 -0
  281. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +1 -0
  282. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +1 -0
  283. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +1 -0
  284. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +1 -0
  285. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +1 -0
  286. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +1 -0
  287. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +1 -0
  288. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +1 -0
  289. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +1 -0
  290. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +1 -0
  291. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +1 -0
  292. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +1 -0
  293. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +1 -0
  294. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +1 -0
  295. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +1 -0
  296. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +1 -0
  297. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +1 -0
  298. package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +1 -0
  299. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +1 -0
  300. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +1 -0
  301. package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +1 -0
  302. package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -0
  303. package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +1 -0
  304. package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +1 -0
  305. package/build/ext/axios/index.js +1 -0
  306. package/build/ext/axios/lib/adapters/xhr.js +1 -0
  307. package/build/ext/axios/lib/axios.js +1 -0
  308. package/build/ext/axios/lib/cancel/Cancel.js +1 -0
  309. package/build/ext/axios/lib/cancel/CancelToken.js +1 -0
  310. package/build/ext/axios/lib/cancel/isCancel.js +1 -0
  311. package/build/ext/axios/lib/core/Axios.js +1 -0
  312. package/build/ext/axios/lib/core/InterceptorManager.js +1 -0
  313. package/build/ext/axios/lib/core/buildFullPath.js +1 -0
  314. package/build/ext/axios/lib/core/createError.js +1 -0
  315. package/build/ext/axios/lib/core/dispatchRequest.js +1 -0
  316. package/build/ext/axios/lib/core/enhanceError.js +1 -0
  317. package/build/ext/axios/lib/core/mergeConfig.js +1 -0
  318. package/build/ext/axios/lib/core/settle.js +1 -0
  319. package/build/ext/axios/lib/core/transformData.js +1 -0
  320. package/build/ext/axios/lib/defaults/index.js +1 -0
  321. package/build/ext/axios/lib/defaults/transitional.js +1 -0
  322. package/build/ext/axios/lib/env/data.js +1 -0
  323. package/build/ext/axios/lib/helpers/bind.js +1 -0
  324. package/build/ext/axios/lib/helpers/buildURL.js +1 -0
  325. package/build/ext/axios/lib/helpers/combineURLs.js +1 -0
  326. package/build/ext/axios/lib/helpers/cookies.js +1 -0
  327. package/build/ext/axios/lib/helpers/isAbsoluteURL.js +1 -0
  328. package/build/ext/axios/lib/helpers/isAxiosError.js +1 -0
  329. package/build/ext/axios/lib/helpers/isURLSameOrigin.js +1 -0
  330. package/build/ext/axios/lib/helpers/normalizeHeaderName.js +1 -0
  331. package/build/ext/axios/lib/helpers/parseHeaders.js +1 -0
  332. package/build/ext/axios/lib/helpers/spread.js +1 -0
  333. package/build/ext/axios/lib/helpers/validator.js +1 -0
  334. package/build/ext/axios/lib/utils.js +1 -0
  335. package/build/ext/libphonenumber-js/es6/AsYouType.js +1 -0
  336. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +1 -0
  337. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +1 -0
  338. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +1 -0
  339. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +1 -0
  340. package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +1 -0
  341. package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +1 -0
  342. package/build/ext/libphonenumber-js/es6/ParseError.js +1 -0
  343. package/build/ext/libphonenumber-js/es6/PhoneNumber.js +1 -0
  344. package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +1 -0
  345. package/build/ext/libphonenumber-js/es6/constants.js +1 -0
  346. package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +1 -0
  347. package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +1 -0
  348. package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +1 -0
  349. package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +1 -0
  350. package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +1 -0
  351. package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +1 -0
  352. package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +1 -0
  353. package/build/ext/libphonenumber-js/es6/findNumbers/util.js +1 -0
  354. package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +1 -0
  355. package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  356. package/build/ext/libphonenumber-js/es6/format_.js +1 -0
  357. package/build/ext/libphonenumber-js/es6/getCountries.js +1 -0
  358. package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
  359. package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -0
  360. package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  361. package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +1 -0
  362. package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +1 -0
  363. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  364. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  365. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  366. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +1 -0
  367. package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -0
  368. package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +1 -0
  369. package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +1 -0
  370. package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +1 -0
  371. package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +1 -0
  372. package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +1 -0
  373. package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +1 -0
  374. package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +1 -0
  375. package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +1 -0
  376. package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +1 -0
  377. package/build/ext/libphonenumber-js/es6/metadata.js +1 -0
  378. package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +1 -0
  379. package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +1 -0
  380. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +1 -0
  381. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +1 -0
  382. package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +1 -0
  383. package/build/ext/libphonenumber-js/es6/parse_.js +1 -0
  384. package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +1 -0
  385. package/build/ext/libphonenumber-js/es6/validate_.js +1 -0
  386. package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +1 -0
  387. package/build/ext/libphonenumber-js/metadata.min.json.js +1 -0
  388. package/build/ext/libphonenumber-js/min/exports/AsYouType.js +1 -0
  389. package/build/ext/libphonenumber-js/min/exports/Metadata.js +1 -0
  390. package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +1 -0
  391. package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +1 -0
  392. package/build/ext/libphonenumber-js/min/exports/getCountries.js +1 -0
  393. package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +1 -0
  394. package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +1 -0
  395. package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +1 -0
  396. package/build/ext/object-assign/index.js +6 -0
  397. package/build/ext/prop-types/checkPropTypes.js +1 -0
  398. package/build/ext/prop-types/factoryWithThrowingShims.js +1 -0
  399. package/build/ext/prop-types/factoryWithTypeCheckers.js +1 -0
  400. package/build/ext/prop-types/index.js +1 -0
  401. package/build/ext/prop-types/lib/ReactPropTypesSecret.js +1 -0
  402. package/build/ext/prop-types/lib/has.js +1 -0
  403. package/build/ext/react-is/cjs/react-is.development.js +9 -0
  404. package/build/ext/react-is/cjs/react-is.production.min.js +9 -0
  405. package/build/ext/react-is/index.js +1 -0
  406. package/build/ext/react-tooltip/dist/index.es.js +1 -0
  407. package/build/ext/style-inject/dist/style-inject.es.js +1 -0
  408. package/build/ext/tslib/tslib.es6.js +1 -0
  409. package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +1 -0
  410. package/build/ext/uuid/dist/esm-browser/md5.js +1 -0
  411. package/build/ext/uuid/dist/esm-browser/rng.js +1 -0
  412. package/build/ext/uuid/dist/esm-browser/sha1.js +1 -0
  413. package/build/ext/uuid/dist/esm-browser/v3.js +1 -0
  414. package/build/ext/uuid/dist/esm-browser/v35.js +1 -0
  415. package/build/ext/uuid/dist/esm-browser/v4.js +1 -0
  416. package/build/ext/uuid/dist/esm-browser/v5.js +1 -0
  417. package/build/index.d.ts +6 -0
  418. package/build/index.js +1 -0
  419. package/build/models/data/base/index.d.ts +8 -0
  420. package/build/models/data/base/index.js +1 -0
  421. package/build/models/data/blog/category/index.d.ts +12 -0
  422. package/build/models/data/blog/category/index.js +1 -0
  423. package/build/models/data/blog/content/index.d.ts +6 -0
  424. package/build/models/data/blog/content/index.js +1 -0
  425. package/build/models/data/blog/index.d.ts +27 -0
  426. package/build/models/data/blog/index.js +1 -0
  427. package/build/models/data/blog/meta-data/index.d.ts +16 -0
  428. package/build/models/data/blog/meta-data/index.js +1 -0
  429. package/build/models/data/blog/tag/index.d.ts +6 -0
  430. package/build/models/data/blog/tag/index.js +1 -0
  431. package/build/models/data/blog/writer/index.d.ts +6 -0
  432. package/build/models/data/blog/writer/index.js +1 -0
  433. package/build/models/data/brand/index.d.ts +26 -0
  434. package/build/models/data/brand/index.js +1 -0
  435. package/build/models/data/brand/translation/index.d.ts +7 -0
  436. package/build/models/data/brand/translation/index.js +1 -0
  437. package/build/models/data/campaign-offer/index.d.ts +21 -0
  438. package/build/models/data/campaign-offer/index.js +1 -0
  439. package/build/models/data/campaign-offer/product/index.d.ts +24 -0
  440. package/build/models/data/campaign-offer/product/index.js +1 -0
  441. package/build/models/data/cart/available-shipping-method/index.d.ts +10 -0
  442. package/build/models/data/cart/available-shipping-method/index.js +1 -0
  443. package/build/models/data/cart/campaign-offer/index.d.ts +16 -0
  444. package/build/models/data/cart/campaign-offer/index.js +1 -0
  445. package/build/models/data/cart/index.d.ts +13 -0
  446. package/build/models/data/cart/index.js +1 -0
  447. package/build/models/data/category/index.d.ts +22 -0
  448. package/build/models/data/category/index.js +1 -0
  449. package/build/models/data/category/path-item/index.d.ts +14 -0
  450. package/build/models/data/category/path-item/index.js +1 -0
  451. package/build/models/data/category/translations/index.d.ts +7 -0
  452. package/build/models/data/category/translations/index.js +1 -0
  453. package/build/models/data/checkout/index.d.ts +22 -0
  454. package/build/models/data/checkout/index.js +1 -0
  455. package/build/models/data/checkout-settings/index.d.ts +20 -0
  456. package/build/models/data/checkout-settings/index.js +1 -0
  457. package/build/models/data/checkout-settings/option/index.d.ts +6 -0
  458. package/build/models/data/checkout-settings/option/index.js +1 -0
  459. package/build/models/data/checkout-settings/price/index.d.ts +7 -0
  460. package/build/models/data/checkout-settings/price/index.js +1 -0
  461. package/build/models/data/city/index.d.ts +12 -0
  462. package/build/models/data/city/index.js +1 -0
  463. package/build/models/data/contact-form/index.d.ts +9 -0
  464. package/build/models/data/contact-form/index.js +1 -0
  465. package/build/models/data/country/index.d.ts +18 -0
  466. package/build/models/data/country/index.js +1 -0
  467. package/build/models/data/country/location-translations/index.d.ts +7 -0
  468. package/build/models/data/customer/address/city/index.d.ts +7 -0
  469. package/build/models/data/customer/address/city/index.js +1 -0
  470. package/build/models/data/customer/address/country/index.d.ts +9 -0
  471. package/build/models/data/customer/address/country/index.js +1 -0
  472. package/build/models/data/customer/address/district/index.d.ts +7 -0
  473. package/build/models/data/customer/address/district/index.js +1 -0
  474. package/build/models/data/customer/address/index.d.ts +40 -0
  475. package/build/models/data/customer/address/index.js +1 -0
  476. package/build/models/data/customer/address/state/index.d.ts +7 -0
  477. package/build/models/data/customer/address/state/index.js +1 -0
  478. package/build/models/data/customer/attribute/index.d.ts +17 -0
  479. package/build/models/data/customer/attribute/index.js +1 -0
  480. package/build/models/data/customer/attribute/option/index.d.ts +9 -0
  481. package/build/models/data/customer/attribute/option/index.js +1 -0
  482. package/build/models/data/customer/attribute/sales-channel/index.d.ts +8 -0
  483. package/build/models/data/customer/attribute/sales-channel/index.js +1 -0
  484. package/build/models/data/customer/attribute/translation/index.d.ts +9 -0
  485. package/build/models/data/customer/attribute/translation/index.js +1 -0
  486. package/build/models/data/customer/attribute/translation/option/index.d.ts +6 -0
  487. package/build/models/data/customer/attribute/translation/option/index.js +1 -0
  488. package/build/models/data/customer/attribute/value/index.d.ts +11 -0
  489. package/build/models/data/customer/attribute/value/index.js +1 -0
  490. package/build/models/data/customer/index.d.ts +38 -0
  491. package/build/models/data/customer/index.js +1 -0
  492. package/build/models/data/customer/review/index.d.ts +22 -0
  493. package/build/models/data/customer/review/index.js +1 -0
  494. package/build/models/data/customer/review/settings/index.d.ts +6 -0
  495. package/build/models/data/customer/review/settings/index.js +1 -0
  496. package/build/models/data/customer/review/summary/index.d.ts +10 -0
  497. package/build/models/data/customer/review/summary/index.js +1 -0
  498. package/build/models/data/customer/review/summary/star/index.d.ts +6 -0
  499. package/build/models/data/customer/review/summary/star/index.js +1 -0
  500. package/build/models/data/district/index.d.ts +12 -0
  501. package/build/models/data/district/index.js +1 -0
  502. package/build/models/data/favorite-product/index.d.ts +7 -0
  503. package/build/models/data/favorite-product/index.js +1 -0
  504. package/build/models/data/filter-category/index.d.ts +12 -0
  505. package/build/models/data/filter-category/index.js +1 -0
  506. package/build/models/data/html-meta-data/index.d.ts +28 -0
  507. package/build/models/data/html-meta-data/index.js +1 -0
  508. package/build/models/data/html-meta-data/translations/index.d.ts +7 -0
  509. package/build/models/data/html-meta-data/translations/index.js +1 -0
  510. package/build/models/data/image/index.d.ts +9 -0
  511. package/build/models/data/image/index.js +1 -0
  512. package/build/models/data/index.d.ts +136 -0
  513. package/build/models/data/last-viewed-product/index.d.ts +6 -0
  514. package/build/models/data/last-viewed-product/index.js +1 -0
  515. package/build/models/data/merchant-settings/index.d.ts +12 -0
  516. package/build/models/data/merchant-settings/index.js +1 -0
  517. package/build/models/data/order/address/city/index.d.ts +7 -0
  518. package/build/models/data/order/address/city/index.js +1 -0
  519. package/build/models/data/order/address/country/index.d.ts +9 -0
  520. package/build/models/data/order/address/country/index.js +1 -0
  521. package/build/models/data/order/address/district/index.d.ts +7 -0
  522. package/build/models/data/order/address/district/index.js +1 -0
  523. package/build/models/data/order/address/index.d.ts +37 -0
  524. package/build/models/data/order/address/index.js +1 -0
  525. package/build/models/data/order/address/state/index.d.ts +7 -0
  526. package/build/models/data/order/address/state/index.js +1 -0
  527. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +8 -0
  528. package/build/models/data/order/adjustment/applied-order-line/index.js +1 -0
  529. package/build/models/data/order/adjustment/index.d.ts +15 -0
  530. package/build/models/data/order/adjustment/index.js +1 -0
  531. package/build/models/data/order/customer/index.d.ts +11 -0
  532. package/build/models/data/order/customer/index.js +1 -0
  533. package/build/models/data/order/gift-line/index.d.ts +6 -0
  534. package/build/models/data/order/gift-line/index.js +1 -0
  535. package/build/models/data/order/index.d.ts +67 -0
  536. package/build/models/data/order/index.js +1 -0
  537. package/build/models/data/order/invoice/index.d.ts +12 -0
  538. package/build/models/data/order/invoice/index.js +1 -0
  539. package/build/models/data/order/line-item/base-unit/index.d.ts +9 -0
  540. package/build/models/data/order/line-item/base-unit/index.js +1 -0
  541. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +6 -0
  542. package/build/models/data/order/line-item/base-unit/unit-type/index.js +1 -0
  543. package/build/models/data/order/line-item/discount/index.d.ts +11 -0
  544. package/build/models/data/order/line-item/discount/index.js +1 -0
  545. package/build/models/data/order/line-item/index.d.ts +45 -0
  546. package/build/models/data/order/line-item/index.js +1 -0
  547. package/build/models/data/order/line-item/option/index.d.ts +10 -0
  548. package/build/models/data/order/line-item/option/index.js +1 -0
  549. package/build/models/data/order/line-item/option/value/index.d.ts +7 -0
  550. package/build/models/data/order/line-item/option/value/index.js +1 -0
  551. package/build/models/data/order/line-item/variant/brand/index.d.ts +6 -0
  552. package/build/models/data/order/line-item/variant/brand/index.js +1 -0
  553. package/build/models/data/order/line-item/variant/category/index.d.ts +12 -0
  554. package/build/models/data/order/line-item/variant/category/index.js +1 -0
  555. package/build/models/data/order/line-item/variant/index.d.ts +30 -0
  556. package/build/models/data/order/line-item/variant/index.js +1 -0
  557. package/build/models/data/order/line-item/variant/price/index.d.ts +10 -0
  558. package/build/models/data/order/line-item/variant/price/index.js +1 -0
  559. package/build/models/data/order/line-item/variant/unit/index.d.ts +6 -0
  560. package/build/models/data/order/line-item/variant/unit/index.js +1 -0
  561. package/build/models/data/order/line-item/variant/value/index.d.ts +11 -0
  562. package/build/models/data/order/line-item/variant/value/index.js +1 -0
  563. package/build/models/data/order/package/index.d.ts +14 -0
  564. package/build/models/data/order/package/index.js +1 -0
  565. package/build/models/data/order/package/tracking-info/index.d.ts +9 -0
  566. package/build/models/data/order/package/tracking-info/index.js +1 -0
  567. package/build/models/data/order/payment-method/index.d.ts +9 -0
  568. package/build/models/data/order/payment-method/index.js +1 -0
  569. package/build/models/data/order/refund/index.d.ts +7 -0
  570. package/build/models/data/order/refund/index.js +1 -0
  571. package/build/models/data/order/refund/line-item/index.d.ts +6 -0
  572. package/build/models/data/order/refund/line-item/index.js +1 -0
  573. package/build/models/data/order/refund/settings/index.d.ts +7 -0
  574. package/build/models/data/order/refund/settings/index.js +1 -0
  575. package/build/models/data/order/shipping-line/index.d.ts +12 -0
  576. package/build/models/data/order/shipping-line/index.js +1 -0
  577. package/build/models/data/order/tax-line/index.d.ts +6 -0
  578. package/build/models/data/order/tax-line/index.js +1 -0
  579. package/build/models/data/order/transaction/error/index.d.ts +7 -0
  580. package/build/models/data/order/transaction/error/index.js +1 -0
  581. package/build/models/data/order/transaction/index.d.ts +25 -0
  582. package/build/models/data/order/transaction/index.js +1 -0
  583. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +13 -0
  584. package/build/models/data/order/transaction/payment-method-detail/index.js +1 -0
  585. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +9 -0
  586. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +1 -0
  587. package/build/models/data/payment-gateway/additional-price/index.d.ts +9 -0
  588. package/build/models/data/payment-gateway/additional-price/index.js +1 -0
  589. package/build/models/data/payment-gateway/index.d.ts +31 -0
  590. package/build/models/data/payment-gateway/index.js +1 -0
  591. package/build/models/data/payment-gateway/settings/index.d.ts +10 -0
  592. package/build/models/data/payment-gateway/settings/index.js +1 -0
  593. package/build/models/data/payment-gateway/translation/index.d.ts +7 -0
  594. package/build/models/data/payment-gateway/translation/index.js +1 -0
  595. package/build/models/data/product/attribute/index.d.ts +15 -0
  596. package/build/models/data/product/attribute/index.js +1 -0
  597. package/build/models/data/product/attribute/option/index.d.ts +6 -0
  598. package/build/models/data/product/attribute/option/index.js +1 -0
  599. package/build/models/data/product/attribute/table-cell/index.d.ts +6 -0
  600. package/build/models/data/product/attribute/table-cell/index.js +1 -0
  601. package/build/models/data/product/attribute/table-template/index.d.ts +7 -0
  602. package/build/models/data/product/attribute/table-template/index.js +1 -0
  603. package/build/models/data/product/attribute/translation/index.d.ts +13 -0
  604. package/build/models/data/product/attribute/translation/index.js +1 -0
  605. package/build/models/data/product/attribute-value/index.d.ts +28 -0
  606. package/build/models/data/product/attribute-value/index.js +1 -0
  607. package/build/models/data/product/back-in-stock-settings/index.d.ts +5 -0
  608. package/build/models/data/product/back-in-stock-settings/index.js +1 -0
  609. package/build/models/data/product/base-unit/index.d.ts +12 -0
  610. package/build/models/data/product/base-unit/index.js +1 -0
  611. package/build/models/data/product/campaign/data/index.d.ts +27 -0
  612. package/build/models/data/product/campaign/data/index.js +1 -0
  613. package/build/models/data/product/campaign/filter/index.d.ts +7 -0
  614. package/build/models/data/product/campaign/filter/index.js +1 -0
  615. package/build/models/data/product/campaign/index.d.ts +7 -0
  616. package/build/models/data/product/campaign/index.js +1 -0
  617. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +20 -0
  618. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +1 -0
  619. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +6 -0
  620. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +1 -0
  621. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +14 -0
  622. package/build/models/data/product/campaign/product-fixed-discount/index.js +1 -0
  623. package/build/models/data/product/filter/index.d.ts +84 -0
  624. package/build/models/data/product/filter/index.js +1 -0
  625. package/build/models/data/product/image/index.d.ts +10 -0
  626. package/build/models/data/product/image/index.js +1 -0
  627. package/build/models/data/product/index.d.ts +62 -0
  628. package/build/models/data/product/index.js +1 -0
  629. package/build/models/data/product/option-set/index.d.ts +29 -0
  630. package/build/models/data/product/option-set/index.js +1 -0
  631. package/build/models/data/product/option-set/option/index.d.ts +72 -0
  632. package/build/models/data/product/option-set/option/index.js +1 -0
  633. package/build/models/data/product/tag/index.d.ts +6 -0
  634. package/build/models/data/product/tag/index.js +1 -0
  635. package/build/models/data/product/variant/index.d.ts +31 -0
  636. package/build/models/data/product/variant/index.js +1 -0
  637. package/build/models/data/product/variant/price/index.d.ts +19 -0
  638. package/build/models/data/product/variant/price/index.js +1 -0
  639. package/build/models/data/product/variant/unit/index.d.ts +6 -0
  640. package/build/models/data/product/variant/unit/index.js +1 -0
  641. package/build/models/data/product/variant-type/index.d.ts +8 -0
  642. package/build/models/data/product/variant-type/index.js +1 -0
  643. package/build/models/data/product/variant-type/init.d.ts +2 -0
  644. package/build/models/data/raffle/index.d.ts +63 -0
  645. package/build/models/data/raffle/index.js +1 -0
  646. package/build/models/data/sales-channel/index.d.ts +19 -0
  647. package/build/models/data/sales-channel/index.js +1 -0
  648. package/build/models/data/state/index.d.ts +8 -0
  649. package/build/models/data/state/index.js +1 -0
  650. package/build/models/data/stock-location/address/city/index.d.ts +7 -0
  651. package/build/models/data/stock-location/address/city/index.js +1 -0
  652. package/build/models/data/stock-location/address/country/index.d.ts +7 -0
  653. package/build/models/data/stock-location/address/country/index.js +1 -0
  654. package/build/models/data/stock-location/address/district/index.d.ts +7 -0
  655. package/build/models/data/stock-location/address/district/index.js +1 -0
  656. package/build/models/data/stock-location/address/index.d.ts +15 -0
  657. package/build/models/data/stock-location/address/index.js +1 -0
  658. package/build/models/data/stock-location/address/state/index.d.ts +7 -0
  659. package/build/models/data/stock-location/address/state/index.js +1 -0
  660. package/build/models/data/stock-location/available/index.d.ts +10 -0
  661. package/build/models/data/stock-location/available/index.js +1 -0
  662. package/build/models/data/stock-location/index.d.ts +14 -0
  663. package/build/models/data/stock-location/index.js +1 -0
  664. package/build/models/data/storefront/domain/index.d.ts +9 -0
  665. package/build/models/data/storefront/domain/index.js +1 -0
  666. package/build/models/data/storefront/index.d.ts +27 -0
  667. package/build/models/data/storefront/index.js +1 -0
  668. package/build/models/data/storefront/localization/index.d.ts +8 -0
  669. package/build/models/data/storefront/localization/index.js +1 -0
  670. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +6 -0
  671. package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
  672. package/build/models/data/storefront/routing/index.d.ts +14 -0
  673. package/build/models/data/storefront/routing/index.js +1 -0
  674. package/build/models/data/storefront/theme/index.d.ts +10 -0
  675. package/build/models/data/storefront/theme/index.js +1 -0
  676. package/build/models/data/storefront/theme-localization/index.d.ts +15 -0
  677. package/build/models/data/storefront/theme-localization/index.js +1 -0
  678. package/build/models/data/theme-json/component/index.d.ts +20 -0
  679. package/build/models/data/theme-json/component/index.js +1 -0
  680. package/build/models/data/theme-json/component/prop/index.d.ts +26 -0
  681. package/build/models/data/theme-json/component/prop/index.js +1 -0
  682. package/build/models/data/theme-json/custom-data/index.d.ts +43 -0
  683. package/build/models/data/theme-json/custom-data/index.js +1 -0
  684. package/build/models/data/theme-json/index.d.ts +16 -0
  685. package/build/models/data/theme-json/index.js +1 -0
  686. package/build/models/data/theme-json/page/component/index.d.ts +7 -0
  687. package/build/models/data/theme-json/page/component/index.js +1 -0
  688. package/build/models/data/theme-json/page/index.d.ts +21 -0
  689. package/build/models/data/theme-json/page/index.js +1 -0
  690. package/build/models/data/theme-json/settings/color/index.d.ts +15 -0
  691. package/build/models/data/theme-json/settings/color/index.js +1 -0
  692. package/build/models/data/theme-json/settings/favicon/index.d.ts +5 -0
  693. package/build/models/data/theme-json/settings/favicon/index.js +1 -0
  694. package/build/models/data/theme-json/settings/font-family/index.d.ts +6 -0
  695. package/build/models/data/theme-json/settings/font-family/index.js +1 -0
  696. package/build/models/data/theme-json/settings/index.d.ts +13 -0
  697. package/build/models/data/theme-json/settings/index.js +1 -0
  698. package/build/models/data/variant-type/index.d.ts +13 -0
  699. package/build/models/data/variant-type/index.js +1 -0
  700. package/build/models/data/variant-type/variant-value/index.d.ts +12 -0
  701. package/build/models/data/variant-type/variant-value/index.js +1 -0
  702. package/build/models/index.d.ts +2 -0
  703. package/build/models/ui/blog-category-list/index.d.ts +51 -0
  704. package/build/models/ui/blog-category-list/index.js +1 -0
  705. package/build/models/ui/blog-list/index.d.ts +55 -0
  706. package/build/models/ui/blog-list/index.js +1 -0
  707. package/build/models/ui/brand-list/index.d.ts +61 -0
  708. package/build/models/ui/brand-list/index.js +1 -0
  709. package/build/models/ui/category-list/index.d.ts +61 -0
  710. package/build/models/ui/category-list/index.js +1 -0
  711. package/build/models/ui/component-renderer/index.d.ts +7 -0
  712. package/build/models/ui/component-renderer/index.js +1 -0
  713. package/build/models/ui/customer-review-list/index.d.ts +43 -0
  714. package/build/models/ui/customer-review-list/index.js +1 -0
  715. package/build/models/ui/customer-review-summary-list/index.d.ts +43 -0
  716. package/build/models/ui/customer-review-summary-list/index.js +1 -0
  717. package/build/models/ui/index.d.ts +25 -0
  718. package/build/models/ui/navigation-link/index.d.ts +8 -0
  719. package/build/models/ui/navigation-link/index.js +1 -0
  720. package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
  721. package/build/models/ui/product-attribute-detail/index.js +1 -0
  722. package/build/models/ui/product-attribute-list/index.d.ts +8 -0
  723. package/build/models/ui/product-attribute-list/index.js +1 -0
  724. package/build/models/ui/product-list/index.d.ts +138 -0
  725. package/build/models/ui/product-list/index.js +1 -0
  726. package/build/models/ui/raffle-list/index.d.ts +53 -0
  727. package/build/models/ui/raffle-list/index.js +1 -0
  728. package/build/models/ui/validator/form/account-info.d.ts +39 -0
  729. package/build/models/ui/validator/form/account-info.js +1 -0
  730. package/build/models/ui/validator/form/address.d.ts +75 -0
  731. package/build/models/ui/validator/form/address.js +1 -0
  732. package/build/models/ui/validator/form/contact-form.d.ts +42 -0
  733. package/build/models/ui/validator/form/contact-form.js +1 -0
  734. package/build/models/ui/validator/form/customer-review.d.ts +34 -0
  735. package/build/models/ui/validator/form/customer-review.js +1 -0
  736. package/build/models/ui/validator/form/forgot-password.d.ts +26 -0
  737. package/build/models/ui/validator/form/forgot-password.js +1 -0
  738. package/build/models/ui/validator/form/login.d.ts +32 -0
  739. package/build/models/ui/validator/form/login.js +1 -0
  740. package/build/models/ui/validator/form/raffle-form.d.ts +62 -0
  741. package/build/models/ui/validator/form/raffle-form.js +1 -0
  742. package/build/models/ui/validator/form/recover-password.d.ts +33 -0
  743. package/build/models/ui/validator/form/recover-password.js +1 -0
  744. package/build/models/ui/validator/form/register.d.ts +49 -0
  745. package/build/models/ui/validator/form/register.js +1 -0
  746. package/build/models/ui/validator/index.d.ts +27 -0
  747. package/build/models/ui/validator/index.js +1 -0
  748. package/build/models/ui/validator/rules/index.d.ts +101 -0
  749. package/build/models/ui/validator/rules/index.js +1 -0
  750. package/build/page-data-init/index.d.ts +40 -0
  751. package/build/page-data-init/index.js +1 -0
  752. package/build/pages/404.d.ts +4 -0
  753. package/build/pages/404.js +1 -0
  754. package/build/pages/[slug]/index.d.ts +4 -0
  755. package/build/pages/_slug_/index.js +1 -0
  756. package/build/pages/account/addresses.d.ts +4 -0
  757. package/build/pages/account/addresses.js +1 -0
  758. package/build/pages/account/favorite-products.d.ts +4 -0
  759. package/build/pages/account/favorite-products.js +1 -0
  760. package/build/pages/account/forgot-password.d.ts +4 -0
  761. package/build/pages/account/forgot-password.js +1 -0
  762. package/build/pages/account/index.d.ts +4 -0
  763. package/build/pages/account/index.js +1 -0
  764. package/build/pages/account/login.d.ts +4 -0
  765. package/build/pages/account/login.js +1 -0
  766. package/build/pages/account/orders/[id].d.ts +4 -0
  767. package/build/pages/account/orders/_id_.js +1 -0
  768. package/build/pages/account/orders/index.d.ts +4 -0
  769. package/build/pages/account/orders/index.js +1 -0
  770. package/build/pages/account/raffles.d.ts +4 -0
  771. package/build/pages/account/raffles.js +1 -0
  772. package/build/pages/account/recover-password.d.ts +4 -0
  773. package/build/pages/account/recover-password.js +1 -0
  774. package/build/pages/account/register.d.ts +4 -0
  775. package/build/pages/account/register.js +1 -0
  776. package/build/pages/blog/[slug].d.ts +4 -0
  777. package/build/pages/blog/_slug_.js +1 -0
  778. package/build/pages/blog/index.d.ts +4 -0
  779. package/build/pages/blog/index.js +1 -0
  780. package/build/pages/cart.d.ts +4 -0
  781. package/build/pages/cart.js +1 -0
  782. package/build/pages/checkout.d.ts +18 -0
  783. package/build/pages/checkout.js +1 -0
  784. package/build/pages/editor.d.ts +10 -0
  785. package/build/pages/editor.js +1 -0
  786. package/build/pages/home.d.ts +4 -0
  787. package/build/pages/home.js +1 -0
  788. package/build/pages/index.d.ts +22 -0
  789. package/build/pages/pages/[slug].d.ts +4 -0
  790. package/build/pages/pages/_slug_.js +1 -0
  791. package/build/pages/raffle/[slug].d.ts +4 -0
  792. package/build/pages/raffle/_slug_.js +1 -0
  793. package/build/pages/raffle/index.d.ts +4 -0
  794. package/build/pages/raffle/index.js +1 -0
  795. package/build/pages/search.d.ts +4 -0
  796. package/build/pages/search.js +1 -0
  797. package/build/store/base.d.ts +44 -0
  798. package/build/store/base.js +1 -0
  799. package/build/store/blog/index.d.ts +26 -0
  800. package/build/store/blog/index.js +1 -0
  801. package/build/store/brand/index.d.ts +12 -0
  802. package/build/store/brand/index.js +1 -0
  803. package/build/store/cart/api.d.ts +10 -0
  804. package/build/store/cart/api.js +1 -0
  805. package/build/store/cart/index.d.ts +27 -0
  806. package/build/store/cart/index.js +1 -0
  807. package/build/store/category/index.d.ts +12 -0
  808. package/build/store/category/index.js +1 -0
  809. package/build/store/checkout/index.d.ts +15 -0
  810. package/build/store/checkout/index.js +1 -0
  811. package/build/store/customer/api.d.ts +54 -0
  812. package/build/store/customer/api.js +1 -0
  813. package/build/store/customer/index.d.ts +80 -0
  814. package/build/store/customer/index.js +1 -0
  815. package/build/store/html-meta-data/index.d.ts +6 -0
  816. package/build/store/html-meta-data/index.js +1 -0
  817. package/build/store/index.d.ts +3 -0
  818. package/build/store/location/index.d.ts +9 -0
  819. package/build/store/location/index.js +1 -0
  820. package/build/store/merchant/index.d.ts +6 -0
  821. package/build/store/product/index.d.ts +37 -0
  822. package/build/store/product/index.js +1 -0
  823. package/build/store/raffle/index.d.ts +15 -0
  824. package/build/store/raffle/index.js +1 -0
  825. package/build/store/storefront/index.d.ts +5 -0
  826. package/build/utils/constants.d.ts +2 -0
  827. package/build/utils/constants.js +1 -0
  828. package/build/utils/currency.d.ts +7 -0
  829. package/build/utils/currency.js +1 -0
  830. package/build/utils/google-fonts.d.ts +2 -0
  831. package/build/utils/google-fonts.js +1 -0
  832. package/build/utils/helper.d.ts +4 -0
  833. package/build/utils/helper.js +1 -0
  834. package/build/utils/i18n.d.ts +11 -0
  835. package/build/utils/i18n.js +1 -0
  836. package/build/utils/index.d.ts +3 -0
  837. package/package.json +21 -19
  838. package/src/analytics/analytics.ts +0 -536
  839. package/src/analytics/events.ts +0 -116
  840. package/src/analytics/facebookPixel.ts +0 -226
  841. package/src/analytics/googleAnalytics.ts +0 -227
  842. package/src/analytics/googleTagManager.ts +0 -341
  843. package/src/analytics/googleUniversal.ts +0 -136
  844. package/src/analytics/head/index.tsx +0 -135
  845. package/src/analytics/ikas.ts +0 -558
  846. package/src/analytics/index.ts +0 -2
  847. package/src/analytics/tiktokPixel.ts +0 -223
  848. package/src/components/checkout/components/address-form/index.tsx +0 -406
  849. package/src/components/checkout/components/address-form/model.ts +0 -397
  850. package/src/components/checkout/components/button/index.tsx +0 -44
  851. package/src/components/checkout/components/button/style.module.scss +0 -103
  852. package/src/components/checkout/components/cart-summary/cart-item/index.tsx +0 -180
  853. package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +0 -107
  854. package/src/components/checkout/components/cart-summary/index.tsx +0 -481
  855. package/src/components/checkout/components/cart-summary/style.module.scss +0 -251
  856. package/src/components/checkout/components/checkbox/check.tsx +0 -23
  857. package/src/components/checkout/components/checkbox/index.tsx +0 -50
  858. package/src/components/checkout/components/checkbox/style.module.scss +0 -72
  859. package/src/components/checkout/components/credit-card-form/index.tsx +0 -122
  860. package/src/components/checkout/components/credit-card-form/model.ts +0 -56
  861. package/src/components/checkout/components/credit-card-form/style.module.scss +0 -6
  862. package/src/components/checkout/components/credit-card-form/svg/amex.tsx +0 -30
  863. package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +0 -38
  864. package/src/components/checkout/components/credit-card-form/svg/troy.tsx +0 -54
  865. package/src/components/checkout/components/credit-card-form/svg/visa.tsx +0 -46
  866. package/src/components/checkout/components/customer-addresses/index.tsx +0 -333
  867. package/src/components/checkout/components/customer-addresses/model.ts +0 -126
  868. package/src/components/checkout/components/customer-addresses/style.module.scss +0 -38
  869. package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +0 -29
  870. package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +0 -41
  871. package/src/components/checkout/components/delivery-methods/icons/box.tsx +0 -22
  872. package/src/components/checkout/components/delivery-methods/icons/store.tsx +0 -22
  873. package/src/components/checkout/components/delivery-methods/index.tsx +0 -39
  874. package/src/components/checkout/components/delivery-methods/style.module.scss +0 -4
  875. package/src/components/checkout/components/error/customer-login-required-error/index.tsx +0 -23
  876. package/src/components/checkout/components/error/index.tsx +0 -54
  877. package/src/components/checkout/components/error/no-shipping-error/index.tsx +0 -14
  878. package/src/components/checkout/components/error/payment-error/index.tsx +0 -21
  879. package/src/components/checkout/components/error/stock-error/index.tsx +0 -72
  880. package/src/components/checkout/components/error/stock-error/style.module.scss +0 -11
  881. package/src/components/checkout/components/error/unknown-error/index.tsx +0 -19
  882. package/src/components/checkout/components/expandable-section/index.tsx +0 -37
  883. package/src/components/checkout/components/expandable-section/style.module.scss +0 -29
  884. package/src/components/checkout/components/form-item/caret-down.tsx +0 -20
  885. package/src/components/checkout/components/form-item/index.tsx +0 -207
  886. package/src/components/checkout/components/form-item/model.ts +0 -145
  887. package/src/components/checkout/components/form-item/style.module.scss +0 -216
  888. package/src/components/checkout/components/fullscreen-loading/index.tsx +0 -10
  889. package/src/components/checkout/components/fullscreen-loading/style.module.scss +0 -56
  890. package/src/components/checkout/components/input-with-button/index.tsx +0 -53
  891. package/src/components/checkout/components/input-with-button/style.module.scss +0 -104
  892. package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +0 -160
  893. package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +0 -15
  894. package/src/components/checkout/components/master-pass/modal/index.tsx +0 -32
  895. package/src/components/checkout/components/master-pass/modal/style.module.scss +0 -42
  896. package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +0 -20
  897. package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +0 -62
  898. package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +0 -27
  899. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +0 -19
  900. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +0 -41
  901. package/src/components/checkout/components/master-pass/modal-otp/index.tsx +0 -202
  902. package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +0 -47
  903. package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +0 -28
  904. package/src/components/checkout/components/master-pass/modal-response/index.tsx +0 -24
  905. package/src/components/checkout/components/master-pass/modal-response/style.module.scss +0 -7
  906. package/src/components/checkout/components/master-pass/modal-success/index.tsx +0 -54
  907. package/src/components/checkout/components/master-pass/modal-success/style.module.scss +0 -25
  908. package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +0 -41
  909. package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +0 -21
  910. package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +0 -14
  911. package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +0 -34
  912. package/src/components/checkout/components/modal/index.tsx +0 -41
  913. package/src/components/checkout/components/modal/style.module.scss +0 -68
  914. package/src/components/checkout/components/modal/useEscape.tsx +0 -20
  915. package/src/components/checkout/components/notification-box/index.tsx +0 -70
  916. package/src/components/checkout/components/notification-box/style.module.scss +0 -69
  917. package/src/components/checkout/components/offer-product/index.tsx +0 -180
  918. package/src/components/checkout/components/offer-product/select/arrows.tsx +0 -22
  919. package/src/components/checkout/components/offer-product/select/index.tsx +0 -40
  920. package/src/components/checkout/components/offer-product/select/style.module.scss +0 -28
  921. package/src/components/checkout/components/offer-product/style.module.scss +0 -117
  922. package/src/components/checkout/components/phone-number-input/compare-strings.ts +0 -5
  923. package/src/components/checkout/components/phone-number-input/get-countries.ts +0 -52
  924. package/src/components/checkout/components/phone-number-input/index.tsx +0 -125
  925. package/src/components/checkout/components/phone-number-input/style.module.scss +0 -83
  926. package/src/components/checkout/components/select-box/index.tsx +0 -60
  927. package/src/components/checkout/components/select-box/style.module.scss +0 -55
  928. package/src/components/checkout/components/step-container/index.tsx +0 -107
  929. package/src/components/checkout/components/step-container/style.module.scss +0 -86
  930. package/src/components/checkout/components/stripe/checkout-form.tsx +0 -55
  931. package/src/components/checkout/components/stripe/index.tsx +0 -91
  932. package/src/components/checkout/components/stripe/style.module.scss +0 -75
  933. package/src/components/checkout/components/svg/arrow-down.tsx +0 -23
  934. package/src/components/checkout/components/svg/arrow-left.tsx +0 -23
  935. package/src/components/checkout/components/svg/arrow-right.tsx +0 -23
  936. package/src/components/checkout/components/svg/cross.tsx +0 -23
  937. package/src/components/checkout/components/svg/discount.tsx +0 -34
  938. package/src/components/checkout/components/svg/external.tsx +0 -101
  939. package/src/components/checkout/components/svg/gift.tsx +0 -40
  940. package/src/components/checkout/components/svg/ikas.tsx +0 -39
  941. package/src/components/checkout/components/svg/lock.tsx +0 -23
  942. package/src/components/checkout/components/svg/shopping-cart.tsx +0 -23
  943. package/src/components/checkout/components/svg/success-circle.tsx +0 -26
  944. package/src/components/checkout/components/svg/tag.tsx +0 -23
  945. package/src/components/checkout/components/svg/warning.tsx +0 -30
  946. package/src/components/checkout/components/toggle/index.tsx +0 -51
  947. package/src/components/checkout/components/toggle/style.module.scss +0 -75
  948. package/src/components/checkout/components/tooltip/index.tsx +0 -27
  949. package/src/components/checkout/components/tooltip/style.module.scss +0 -86
  950. package/src/components/checkout/index.tsx +0 -641
  951. package/src/components/checkout/model.ts +0 -1466
  952. package/src/components/checkout/modelMasterPass.ts +0 -1001
  953. package/src/components/checkout/steps/step-info/index.tsx +0 -85
  954. package/src/components/checkout/steps/step-payment/billing-address/index.tsx +0 -48
  955. package/src/components/checkout/steps/step-payment/index.tsx +0 -104
  956. package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +0 -218
  957. package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +0 -54
  958. package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +0 -50
  959. package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +0 -32
  960. package/src/components/checkout/steps/step-payment/style.module.scss +0 -32
  961. package/src/components/checkout/steps/step-shipping/index.tsx +0 -126
  962. package/src/components/checkout/steps/step-shipping/style.module.scss +0 -44
  963. package/src/components/checkout/steps/step-success/index.tsx +0 -366
  964. package/src/components/checkout/steps/step-success/style.module.scss +0 -161
  965. package/src/components/checkout/style.module.scss +0 -366
  966. package/src/components/checkout/styles/common.module.scss +0 -59
  967. package/src/components/checkout/styles/variables.scss +0 -40
  968. package/src/components/image/index.tsx +0 -43
  969. package/src/components/index.ts +0 -5
  970. package/src/components/link/index.tsx +0 -26
  971. package/src/components/page/ThemeComponent.tsx +0 -108
  972. package/src/components/page/head.tsx +0 -358
  973. package/src/components/page/index.tsx +0 -219
  974. package/src/components/page-editor/ThemeComponentEditor.tsx +0 -270
  975. package/src/components/page-editor/error/index.tsx +0 -18
  976. package/src/components/page-editor/index.tsx +0 -194
  977. package/src/components/page-editor/loader/index.tsx +0 -18
  978. package/src/components/page-editor/loader/style.module.scss +0 -59
  979. package/src/components/page-editor/model.ts +0 -847
  980. package/src/index.ts +0 -6
  981. package/src/models/data/base/index.ts +0 -15
  982. package/src/models/data/blog/category/index.ts +0 -36
  983. package/src/models/data/blog/content/index.ts +0 -16
  984. package/src/models/data/blog/index.ts +0 -75
  985. package/src/models/data/blog/meta-data/index.ts +0 -39
  986. package/src/models/data/blog/tag/index.ts +0 -16
  987. package/src/models/data/blog/writer/index.ts +0 -17
  988. package/src/models/data/brand/index.ts +0 -58
  989. package/src/models/data/brand/translation/index.ts +0 -16
  990. package/src/models/data/campaign-offer/index.ts +0 -79
  991. package/src/models/data/campaign-offer/product/index.ts +0 -69
  992. package/src/models/data/cart/available-shipping-method/index.ts +0 -25
  993. package/src/models/data/cart/campaign-offer/index.ts +0 -43
  994. package/src/models/data/cart/index.ts +0 -38
  995. package/src/models/data/category/index.ts +0 -69
  996. package/src/models/data/category/init.ts +0 -33
  997. package/src/models/data/category/path-item/index.ts +0 -42
  998. package/src/models/data/category/translations/index.ts +0 -16
  999. package/src/models/data/checkout/index.ts +0 -55
  1000. package/src/models/data/checkout-settings/index.ts +0 -63
  1001. package/src/models/data/checkout-settings/option/index.ts +0 -14
  1002. package/src/models/data/checkout-settings/price/index.ts +0 -14
  1003. package/src/models/data/city/index.ts +0 -34
  1004. package/src/models/data/contact-form/index.ts +0 -20
  1005. package/src/models/data/country/index.ts +0 -46
  1006. package/src/models/data/customer/address/city/index.ts +0 -16
  1007. package/src/models/data/customer/address/country/index.ts +0 -20
  1008. package/src/models/data/customer/address/district/index.ts +0 -16
  1009. package/src/models/data/customer/address/index.tsx +0 -136
  1010. package/src/models/data/customer/address/state/index.ts +0 -16
  1011. package/src/models/data/customer/attribute/index.ts +0 -61
  1012. package/src/models/data/customer/attribute/option/index.ts +0 -20
  1013. package/src/models/data/customer/attribute/sales-channel/index.ts +0 -24
  1014. package/src/models/data/customer/attribute/translation/index.ts +0 -23
  1015. package/src/models/data/customer/attribute/translation/option/index.ts +0 -16
  1016. package/src/models/data/customer/attribute/value/index.ts +0 -29
  1017. package/src/models/data/customer/index.ts +0 -122
  1018. package/src/models/data/customer/review/index.ts +0 -70
  1019. package/src/models/data/customer/review/settings/index.ts +0 -14
  1020. package/src/models/data/customer/review/summary/index.ts +0 -29
  1021. package/src/models/data/customer/review/summary/star/index.ts +0 -16
  1022. package/src/models/data/district/index.ts +0 -36
  1023. package/src/models/data/favorite-product/index.ts +0 -23
  1024. package/src/models/data/filter-category/index.ts +0 -30
  1025. package/src/models/data/html-meta-data/index.ts +0 -69
  1026. package/src/models/data/html-meta-data/translations/index.ts +0 -16
  1027. package/src/models/data/image/index.ts +0 -33
  1028. package/src/models/data/index.ts +0 -192
  1029. package/src/models/data/last-viewed-product/index.ts +0 -14
  1030. package/src/models/data/merchant-settings/index.ts +0 -26
  1031. package/src/models/data/order/address/city/index.ts +0 -16
  1032. package/src/models/data/order/address/country/index.ts +0 -20
  1033. package/src/models/data/order/address/district/index.ts +0 -16
  1034. package/src/models/data/order/address/index.ts +0 -96
  1035. package/src/models/data/order/address/state/index.ts +0 -16
  1036. package/src/models/data/order/adjustment/applied-order-line/index.ts +0 -20
  1037. package/src/models/data/order/adjustment/index.ts +0 -39
  1038. package/src/models/data/order/customer/index.ts +0 -24
  1039. package/src/models/data/order/gift-line/index.ts +0 -14
  1040. package/src/models/data/order/index.ts +0 -241
  1041. package/src/models/data/order/invoice/index.ts +0 -29
  1042. package/src/models/data/order/line-item/discount/index.ts +0 -23
  1043. package/src/models/data/order/line-item/index.ts +0 -153
  1044. package/src/models/data/order/line-item/option/index.ts +0 -24
  1045. package/src/models/data/order/line-item/option/value/index.ts +0 -16
  1046. package/src/models/data/order/line-item/variant/brand/index.ts +0 -14
  1047. package/src/models/data/order/line-item/variant/category/index.ts +0 -36
  1048. package/src/models/data/order/line-item/variant/index.ts +0 -62
  1049. package/src/models/data/order/line-item/variant/price/index.ts +0 -20
  1050. package/src/models/data/order/line-item/variant/value/index.ts +0 -31
  1051. package/src/models/data/order/package/index.ts +0 -41
  1052. package/src/models/data/order/package/tracking-info/index.ts +0 -20
  1053. package/src/models/data/order/payment-method/index.ts +0 -23
  1054. package/src/models/data/order/refund/index.ts +0 -17
  1055. package/src/models/data/order/refund/line-item/index.ts +0 -16
  1056. package/src/models/data/order/refund/settings/index.ts +0 -16
  1057. package/src/models/data/order/shipping-line/index.ts +0 -29
  1058. package/src/models/data/order/tax-line/index.ts +0 -14
  1059. package/src/models/data/order/transaction/error/index.ts +0 -16
  1060. package/src/models/data/order/transaction/index.ts +0 -58
  1061. package/src/models/data/order/transaction/payment-method-detail/index.ts +0 -33
  1062. package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +0 -22
  1063. package/src/models/data/payment-gateway/additional-price/index.ts +0 -29
  1064. package/src/models/data/payment-gateway/index.ts +0 -90
  1065. package/src/models/data/payment-gateway/settings/index.ts +0 -21
  1066. package/src/models/data/payment-gateway/translation/index.ts +0 -18
  1067. package/src/models/data/product/attribute/index.ts +0 -37
  1068. package/src/models/data/product/attribute/option/index.ts +0 -14
  1069. package/src/models/data/product/attribute/table-cell/index.ts +0 -16
  1070. package/src/models/data/product/attribute/table-template/index.ts +0 -19
  1071. package/src/models/data/product/attribute/translation/index.ts +0 -39
  1072. package/src/models/data/product/attribute-value/index.ts +0 -69
  1073. package/src/models/data/product/back-in-stock-settings/index.ts +0 -14
  1074. package/src/models/data/product/campaign/data/index.ts +0 -70
  1075. package/src/models/data/product/campaign/filter/index.ts +0 -19
  1076. package/src/models/data/product/campaign/index.ts +0 -15
  1077. package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +0 -57
  1078. package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +0 -16
  1079. package/src/models/data/product/campaign/product-fixed-discount/index.ts +0 -40
  1080. package/src/models/data/product/filter/index.ts +0 -285
  1081. package/src/models/data/product/image/index.ts +0 -22
  1082. package/src/models/data/product/index.ts +0 -298
  1083. package/src/models/data/product/option-set/index.ts +0 -94
  1084. package/src/models/data/product/option-set/option/index.ts +0 -245
  1085. package/src/models/data/product/tag/index.ts +0 -14
  1086. package/src/models/data/product/variant/index.ts +0 -104
  1087. package/src/models/data/product/variant/price/index.ts +0 -58
  1088. package/src/models/data/product/variant-type/index.ts +0 -17
  1089. package/src/models/data/product/variant-type/init.ts +0 -15
  1090. package/src/models/data/raffle/index.ts +0 -155
  1091. package/src/models/data/sales-channel/index.ts +0 -56
  1092. package/src/models/data/state/index.ts +0 -18
  1093. package/src/models/data/stock-location/address/city/index.ts +0 -16
  1094. package/src/models/data/stock-location/address/country/index.ts +0 -18
  1095. package/src/models/data/stock-location/address/district/index.ts +0 -18
  1096. package/src/models/data/stock-location/address/index.ts +0 -34
  1097. package/src/models/data/stock-location/address/state/index.ts +0 -18
  1098. package/src/models/data/stock-location/available/index.ts +0 -22
  1099. package/src/models/data/stock-location/index.ts +0 -35
  1100. package/src/models/data/storefront/domain/index.ts +0 -20
  1101. package/src/models/data/storefront/index.ts +0 -65
  1102. package/src/models/data/storefront/localization/index.tsx +0 -18
  1103. package/src/models/data/storefront/routing/dynamic-currency/index.ts +0 -16
  1104. package/src/models/data/storefront/routing/index.tsx +0 -25
  1105. package/src/models/data/storefront/theme/index.tsx +0 -25
  1106. package/src/models/data/storefront/theme-localization/index.tsx +0 -31
  1107. package/src/models/data/theme-json/component/index.ts +0 -41
  1108. package/src/models/data/theme-json/component/prop/index.ts +0 -55
  1109. package/src/models/data/theme-json/custom-data/index.ts +0 -132
  1110. package/src/models/data/theme-json/index.ts +0 -210
  1111. package/src/models/data/theme-json/page/component/index.ts +0 -22
  1112. package/src/models/data/theme-json/page/index.ts +0 -54
  1113. package/src/models/data/theme-json/settings/color/index.ts +0 -35
  1114. package/src/models/data/theme-json/settings/favicon/index.ts +0 -12
  1115. package/src/models/data/theme-json/settings/font-family/index.ts +0 -14
  1116. package/src/models/data/theme-json/settings/index.ts +0 -30
  1117. package/src/models/data/variant-type/index.ts +0 -44
  1118. package/src/models/data/variant-type/variant-value/index.ts +0 -32
  1119. package/src/models/index.ts +0 -2
  1120. package/src/models/ui/blog-category-list/index.ts +0 -169
  1121. package/src/models/ui/blog-list/index.ts +0 -175
  1122. package/src/models/ui/brand-list/index.ts +0 -237
  1123. package/src/models/ui/category-list/index.ts +0 -237
  1124. package/src/models/ui/component-renderer/index.ts +0 -9
  1125. package/src/models/ui/customer-review-list/index.ts +0 -173
  1126. package/src/models/ui/customer-review-summary-list/index.ts +0 -175
  1127. package/src/models/ui/index.ts +0 -40
  1128. package/src/models/ui/navigation-link/index.ts +0 -23
  1129. package/src/models/ui/product-attribute-detail/index.ts +0 -29
  1130. package/src/models/ui/product-attribute-list/index.ts +0 -52
  1131. package/src/models/ui/product-list/index.ts +0 -998
  1132. package/src/models/ui/raffle-list/index.ts +0 -178
  1133. package/src/models/ui/validator/form/account-info.ts +0 -167
  1134. package/src/models/ui/validator/form/address.ts +0 -490
  1135. package/src/models/ui/validator/form/contact-form.ts +0 -177
  1136. package/src/models/ui/validator/form/customer-review.ts +0 -132
  1137. package/src/models/ui/validator/form/forgot-password.ts +0 -96
  1138. package/src/models/ui/validator/form/login.ts +0 -128
  1139. package/src/models/ui/validator/form/raffle-form.ts +0 -276
  1140. package/src/models/ui/validator/form/recover-password.ts +0 -148
  1141. package/src/models/ui/validator/form/register.ts +0 -206
  1142. package/src/models/ui/validator/index.ts +0 -121
  1143. package/src/models/ui/validator/rules/index.ts +0 -310
  1144. package/src/page-data-init/index.ts +0 -904
  1145. package/src/pages/404.tsx +0 -10
  1146. package/src/pages/[slug]/index.tsx +0 -9
  1147. package/src/pages/account/addresses.tsx +0 -10
  1148. package/src/pages/account/favorite-products.tsx +0 -9
  1149. package/src/pages/account/forgot-password.tsx +0 -9
  1150. package/src/pages/account/index.tsx +0 -9
  1151. package/src/pages/account/login.tsx +0 -9
  1152. package/src/pages/account/orders/[id].tsx +0 -9
  1153. package/src/pages/account/orders/index.tsx +0 -9
  1154. package/src/pages/account/raffles.tsx +0 -9
  1155. package/src/pages/account/recover-password.tsx +0 -9
  1156. package/src/pages/account/register.tsx +0 -9
  1157. package/src/pages/blog/[slug].tsx +0 -9
  1158. package/src/pages/blog/index.tsx +0 -9
  1159. package/src/pages/cart.tsx +0 -9
  1160. package/src/pages/checkout.tsx +0 -163
  1161. package/src/pages/editor.tsx +0 -30
  1162. package/src/pages/home.tsx +0 -10
  1163. package/src/pages/index.ts +0 -22
  1164. package/src/pages/pages/[slug].tsx +0 -9
  1165. package/src/pages/raffle/[slug].tsx +0 -9
  1166. package/src/pages/raffle/index.tsx +0 -9
  1167. package/src/pages/search.tsx +0 -9
  1168. package/src/store/base.ts +0 -238
  1169. package/src/store/blog/index.ts +0 -49
  1170. package/src/store/brand/index.ts +0 -16
  1171. package/src/store/cart/api.ts +0 -58
  1172. package/src/store/cart/index.ts +0 -311
  1173. package/src/store/category/index.ts +0 -16
  1174. package/src/store/checkout/index.ts +0 -92
  1175. package/src/store/customer/api.ts +0 -273
  1176. package/src/store/customer/index.ts +0 -658
  1177. package/src/store/html-meta-data/index.ts +0 -16
  1178. package/src/store/index.ts +0 -1
  1179. package/src/store/location/index.ts +0 -56
  1180. package/src/store/merchant/index.ts +0 -16
  1181. package/src/store/product/index.ts +0 -113
  1182. package/src/store/raffle/index.ts +0 -58
  1183. package/src/store/storefront/index.ts +0 -18
  1184. package/src/typings/global.d.ts +0 -7
  1185. package/src/utils/constants.ts +0 -2
  1186. package/src/utils/currency.ts +0 -250
  1187. package/src/utils/google-fonts.ts +0 -52
  1188. package/src/utils/helper.ts +0 -77
  1189. package/src/utils/i18n.ts +0 -126
  1190. package/src/utils/index.ts +0 -3
@@ -0,0 +1,61 @@
1
+ import { IkasBrand } from "../../../models/data";
2
+ import { IkasBrandListPropValue } from "@ikas/storefront-providers";
3
+ export declare class IkasBrandList {
4
+ data: IkasBrand[];
5
+ private _type;
6
+ private _sort;
7
+ private _limit;
8
+ private _page;
9
+ private _count;
10
+ private _initialized;
11
+ private _minPage?;
12
+ private _brandListPropValue;
13
+ private _isLoading;
14
+ constructor(data: IkasBrandListParams);
15
+ get sort(): IkasBrandListSortType;
16
+ get limit(): number;
17
+ get page(): number;
18
+ get count(): number;
19
+ get pageCount(): number;
20
+ get isInitialized(): boolean;
21
+ get isStatic(): boolean;
22
+ get hasPrev(): boolean;
23
+ get hasNext(): boolean;
24
+ get isLoading(): boolean;
25
+ private getSortParams;
26
+ getInitial: () => Promise<void>;
27
+ getPrev: () => Promise<void>;
28
+ getNext: () => Promise<void>;
29
+ getPage: (page: number) => Promise<void>;
30
+ setSortType(sortType: IkasBrandListSortType): Promise<void>;
31
+ toJSON(): {
32
+ data: IkasBrand[];
33
+ type: IkasBrandListType;
34
+ sort: IkasBrandListSortType;
35
+ limit: number;
36
+ page: number;
37
+ count: number;
38
+ initialized: boolean;
39
+ minPage: number | null | undefined;
40
+ brandListPropValue: IkasBrandListPropValue;
41
+ };
42
+ }
43
+ export declare type IkasBrandListParams = {
44
+ data?: IkasBrand[];
45
+ type?: IkasBrandListType;
46
+ sort?: IkasBrandListSortType;
47
+ limit?: number;
48
+ page?: number;
49
+ count?: number;
50
+ initialized?: boolean;
51
+ minPage?: number;
52
+ brandListPropValue: IkasBrandListPropValue;
53
+ };
54
+ export declare enum IkasBrandListType {
55
+ ALL = "ALL",
56
+ STATIC = "STATIC"
57
+ }
58
+ export declare enum IkasBrandListSortType {
59
+ A_Z = "A_Z",
60
+ Z_A = "Z_A"
61
+ }
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import{makeAutoObservable as e}from"mobx";import"../../data/blog/index.js";import{IkasBrand as a}from"../../data/brand/index.js";import"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/attribute/index.js";import"../../data/customer/review/summary/index.js";import"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";import r from"../../../store/brand/index.js";var n,o,s=function(){function s(s){var d=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getInitial=function(){return t(d,void 0,void 0,(function(){var t,e,a,n,o;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listProductBrand({id:this.isStatic&&this._brandListPropValue.brandIds?{in:this._brandListPropValue.brandIds}:void 0,pagination:{page:this.isStatic?void 0:this.page,limit:this.isStatic?void 0:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.isStatic?this.data=(null===(a=this._brandListPropValue.brandIds)||void 0===a?void 0:a.map((function(i){var e,a;return null===(a=null===(e=t.data)||void 0===e?void 0:e.data)||void 0===a?void 0:a.find((function(t){return t.id===i}))})).filter((function(t){return!!t})))||[]:this.data=(null===(n=t.data)||void 0===n?void 0:n.data)||[],this._count=(null===(o=t.data)||void 0===o?void 0:o.count)||0,this._initialized=!0,this._minPage=this.page,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPrev=function(){return t(d,void 0,void 0,(function(){var t,e,a,n,o,s;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,r.listProductBrand({pagination:{page:t,limit:this.limit},sort:this.getSortParams()})];case 2:return e=i.sent(),this.data=(null===(o=null===(n=e.data)||void 0===n?void 0:n.data)||void 0===o?void 0:o.concat(this.data))||this.data,this._count=(null===(s=e.data)||void 0===s?void 0:s.count)||0,this._minPage=t,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(d,void 0,void 0,(function(){var t,e,a,n;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listProductBrand({pagination:{page:this.page+1,limit:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.data=this.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||this.count,this._page=this.page+1,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(d,void 0,void 0,(function(){var t,a,n,o;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||this.isStatic)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listProductBrand({pagination:{page:e,limit:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.data=(null===(n=t.data)||void 0===n?void 0:n.data)||[],this._count=(null===(o=t.data)||void 0===o?void 0:o.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=s.data?s.data.map((function(t){return new a(t)})):[],this._type=s.type||s.brandListPropValue.brandListType||n.ALL,this._sort=s.sort||s.brandListPropValue.initialSort||o.A_Z,this._limit=s.limit||s.brandListPropValue.initialLimit||20,this._page=s.page||1,this._count=s.count||0,this._initialized=s.initialized||!1,this._minPage=s.minPage,this._brandListPropValue=s.brandListPropValue,e(this)}return Object.defineProperty(s.prototype,"sort",{get:function(){return this._sort},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isStatic",{get:function(){return this._type===n.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasPrev",{get:function(){return!(this.isStatic||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasNext",{get:function(){return!this.isStatic&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),s.prototype.getSortParams=function(){return this._sort===o.A_Z?"name":"-name"},s.prototype.setSortType=function(e){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return this._sort=e,[4,this.getInitial()];case 1:return t.sent(),[2]}}))}))},s.prototype.toJSON=function(){return{data:this.data,type:this._type,sort:this._sort,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,brandListPropValue:this._brandListPropValue}},s}();!function(t){t.ALL="ALL",t.STATIC="STATIC"}(n||(n={})),function(t){t.A_Z="A_Z",t.Z_A="Z_A"}(o||(o={}));export{s as IkasBrandList,o as IkasBrandListSortType,n as IkasBrandListType};
@@ -0,0 +1,61 @@
1
+ import { IkasCategory } from "../../../models/data";
2
+ import { IkasCategoryListPropValue } from "@ikas/storefront-providers";
3
+ export declare class IkasCategoryList {
4
+ data: IkasCategory[];
5
+ private _type;
6
+ private _sort;
7
+ private _limit;
8
+ private _page;
9
+ private _count;
10
+ private _initialized;
11
+ private _minPage?;
12
+ private _categoryListPropValue;
13
+ private _isLoading;
14
+ constructor(data: IkasCategoryListParams);
15
+ get sort(): IkasCategoryListSortType;
16
+ get limit(): number;
17
+ get page(): number;
18
+ get count(): number;
19
+ get pageCount(): number;
20
+ get isInitialized(): boolean;
21
+ get isStatic(): boolean;
22
+ get hasPrev(): boolean;
23
+ get hasNext(): boolean;
24
+ get isLoading(): boolean;
25
+ private getSortParams;
26
+ getInitial: () => Promise<void>;
27
+ getPrev: () => Promise<void>;
28
+ getNext: () => Promise<void>;
29
+ getPage: (page: number) => Promise<void>;
30
+ setSortType(sortType: IkasCategoryListSortType): Promise<void>;
31
+ toJSON(): {
32
+ data: IkasCategory[];
33
+ type: IkasCategoryListType;
34
+ sort: IkasCategoryListSortType;
35
+ limit: number;
36
+ page: number;
37
+ count: number;
38
+ initialized: boolean;
39
+ minPage: number | null | undefined;
40
+ categoryListPropValue: IkasCategoryListPropValue;
41
+ };
42
+ }
43
+ export declare type IkasCategoryListParams = {
44
+ data?: IkasCategory[];
45
+ type?: IkasCategoryListType;
46
+ sort?: IkasCategoryListSortType;
47
+ limit?: number;
48
+ page?: number;
49
+ count?: number;
50
+ initialized?: boolean;
51
+ minPage?: number;
52
+ categoryListPropValue: IkasCategoryListPropValue;
53
+ };
54
+ export declare enum IkasCategoryListType {
55
+ ALL = "ALL",
56
+ STATIC = "STATIC"
57
+ }
58
+ export declare enum IkasCategoryListSortType {
59
+ A_Z = "A_Z",
60
+ Z_A = "Z_A"
61
+ }
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import{makeAutoObservable as e}from"mobx";import"../../data/blog/index.js";import"../../data/brand/index.js";import"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import{IkasCategory as a}from"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/attribute/index.js";import"../../data/customer/review/summary/index.js";import"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";import r from"../../../store/category/index.js";var o,n,s=function(){function s(s){var d=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getInitial=function(){return t(d,void 0,void 0,(function(){var t,e,a,o,n;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listCategory({id:this.isStatic&&this._categoryListPropValue.categoryIds?{in:this._categoryListPropValue.categoryIds}:void 0,pagination:{page:this.isStatic?void 0:this.page,limit:this.isStatic?void 0:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.isStatic?this.data=(null===(a=this._categoryListPropValue.categoryIds)||void 0===a?void 0:a.map((function(i){var e,a;return null===(a=null===(e=t.data)||void 0===e?void 0:e.data)||void 0===a?void 0:a.find((function(t){return t.id===i}))})).filter((function(t){return!!t})))||[]:this.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||0,this._initialized=!0,this._minPage=this.page,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPrev=function(){return t(d,void 0,void 0,(function(){var t,e,a,o,n,s;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,r.listCategory({pagination:{page:t,limit:this.limit},sort:this.getSortParams()})];case 2:return e=i.sent(),this.data=(null===(n=null===(o=e.data)||void 0===o?void 0:o.data)||void 0===n?void 0:n.concat(this.data))||this.data,this._count=(null===(s=e.data)||void 0===s?void 0:s.count)||this._count,this._minPage=t,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(d,void 0,void 0,(function(){var t,e,a,o;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listCategory({pagination:{page:this.page+1,limit:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.data=this.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),this._count=(null===(o=t.data)||void 0===o?void 0:o.count)||this._count,this._page=this.page+1,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(d,void 0,void 0,(function(){var t,a,o,n;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||this.isStatic)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,r.listCategory({pagination:{page:e,limit:this.limit},sort:this.getSortParams()})];case 2:return t=i.sent(),this.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=s.data?s.data.map((function(t){return new a(t)})):[],this._type=s.type||s.categoryListPropValue.categoryListType||o.ALL,this._sort=s.sort||s.categoryListPropValue.initialSort||n.A_Z,this._limit=s.limit||s.categoryListPropValue.initialLimit||20,this._page=s.page||1,this._count=s.count||0,this._initialized=s.initialized||!1,this._minPage=s.minPage,this._categoryListPropValue=s.categoryListPropValue,e(this)}return Object.defineProperty(s.prototype,"sort",{get:function(){return this._sort},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isStatic",{get:function(){return this._type===o.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasPrev",{get:function(){return!(this.isStatic||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasNext",{get:function(){return!this.isStatic&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),s.prototype.getSortParams=function(){return this._sort===n.A_Z?"name":"-name"},s.prototype.setSortType=function(e){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return this._sort=e,[4,this.getInitial()];case 1:return t.sent(),[2]}}))}))},s.prototype.toJSON=function(){return{data:this.data,type:this._type,sort:this._sort,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,categoryListPropValue:this._categoryListPropValue}},s}();!function(t){t.ALL="ALL",t.STATIC="STATIC"}(o||(o={})),function(t){t.A_Z="A_Z",t.Z_A="Z_A"}(n||(n={}));export{s as IkasCategoryList,n as IkasCategoryListSortType,o as IkasCategoryListType};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type RenderFunction = () => React.ReactNode;
3
+ export declare class IkasComponentRenderer {
4
+ render: RenderFunction;
5
+ constructor(render: RenderFunction);
6
+ }
7
+ export {};
@@ -0,0 +1 @@
1
+ var r=function(r){this.render=r};export{r as IkasComponentRenderer};
@@ -0,0 +1,43 @@
1
+ import { IkasCustomerReview } from "../../data";
2
+ export declare class IkasCustomerReviewList {
3
+ data: IkasCustomerReview[];
4
+ private _limit;
5
+ private _page;
6
+ private _count;
7
+ private _initialized;
8
+ private _minPage?;
9
+ private _productId;
10
+ private _isLoading;
11
+ constructor(data: IkasCustomerReviewListParams);
12
+ get limit(): number;
13
+ get page(): number;
14
+ get count(): number;
15
+ get pageCount(): number;
16
+ get isInitialized(): boolean;
17
+ get hasPrev(): boolean;
18
+ get hasNext(): boolean;
19
+ get isLoading(): boolean;
20
+ private listCustomerReviews;
21
+ getInitial: () => Promise<void>;
22
+ getPrev: () => Promise<void>;
23
+ getNext: () => Promise<void>;
24
+ getPage: (page: number) => Promise<void>;
25
+ toJSON(): {
26
+ data: IkasCustomerReview[];
27
+ limit: number;
28
+ page: number;
29
+ count: number;
30
+ initialized: boolean;
31
+ minPage: number | null | undefined;
32
+ productId: string;
33
+ };
34
+ }
35
+ export declare type IkasCustomerReviewListParams = {
36
+ data?: IkasCustomerReview[];
37
+ limit?: number;
38
+ page?: number;
39
+ count?: number;
40
+ initialized?: boolean;
41
+ minPage?: number;
42
+ productId: string;
43
+ };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{IkasStorefrontConfig as e}from"@ikas/storefront-config";import{makeAutoObservable as a}from"mobx";import n from"../../../store/customer/api.js";import"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/attribute/index.js";import"../../data/customer/review/summary/index.js";import{IkasCustomerReview as r}from"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";var o=function(){function o(e){var n=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getInitial=function(){return t(n,void 0,void 0,(function(){var t,e,a,n;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviews(this.page,this.limit)];case 2:return t=i.sent(),this.data=(null===(a=t.data)||void 0===a?void 0:a.data)||[],this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||0,this._initialized=!0,this._minPage=this.page,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPrev=function(){return t(n,void 0,void 0,(function(){var t,e,a,n,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.listCustomerReviews(t,this.limit)];case 2:return e=i.sent(),this.data=(null===(n=e.data)||void 0===n?void 0:n.data.concat(this.data))||this.data,this._count=(null===(r=e.data)||void 0===r?void 0:r.count)||this._count,this._minPage=t,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(n,void 0,void 0,(function(){var t,e,a,n;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviews(this.page+1,this.limit)];case 2:return t=i.sent(),this.data=this.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||this._count,this._page=this.page+1,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(n,void 0,void 0,(function(){var t,a,n,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviews(e,this.limit)];case 2:return t=i.sent(),this.data=(null===(n=t.data)||void 0===n?void 0:n.data)||[],this._count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=e.data?e.data.map((function(t){return new r(t)})):[],this._limit=e.limit||5,this._page=e.page||1,this._count=e.count||0,this._initialized=e.initialized||!1,this._minPage=e.minPage,this._productId=e.productId,a(this)}return Object.defineProperty(o.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"hasPrev",{get:function(){return!!this._minPage&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"hasNext",{get:function(){return this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),o.prototype.listCustomerReviews=function(a,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,n.listCustomerReviews({productId:this._productId,input:{salesChannelId:e.getSalesChannelId()||""},pagination:{page:a,limit:r}})];case 1:return[2,t.sent()]}}))}))},o.prototype.toJSON=function(){return{data:this.data,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,productId:this._productId}},o}();export{o as IkasCustomerReviewList};
@@ -0,0 +1,43 @@
1
+ import { IkasCustomerReviewSummary } from "../../data";
2
+ export declare class IkasCustomerReviewSummaryList {
3
+ data: IkasCustomerReviewSummary[];
4
+ private _limit;
5
+ private _page;
6
+ private _count;
7
+ private _initialized;
8
+ private _minPage?;
9
+ private _productId;
10
+ private _isLoading;
11
+ constructor(data: IkasCustomerReviewSummaryParams);
12
+ get limit(): number;
13
+ get page(): number;
14
+ get count(): number;
15
+ get pageCount(): number;
16
+ get isInitialized(): boolean;
17
+ get hasPrev(): boolean;
18
+ get hasNext(): boolean;
19
+ get isLoading(): boolean;
20
+ private listCustomerReviewSummary;
21
+ getInitial: () => Promise<void>;
22
+ getPrev: () => Promise<void>;
23
+ getNext: () => Promise<void>;
24
+ getPage: (page: number) => Promise<void>;
25
+ toJSON(): {
26
+ data: IkasCustomerReviewSummary[];
27
+ limit: number;
28
+ page: number;
29
+ count: number;
30
+ initialized: boolean;
31
+ minPage: number | null | undefined;
32
+ productId: string;
33
+ };
34
+ }
35
+ export declare type IkasCustomerReviewSummaryParams = {
36
+ data?: IkasCustomerReviewSummary[];
37
+ limit?: number;
38
+ page?: number;
39
+ count?: number;
40
+ initialized?: boolean;
41
+ minPage?: number;
42
+ productId: string;
43
+ };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import a from"../../../store/customer/api.js";import"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/attribute/index.js";import{IkasCustomerReviewSummary as r}from"../../data/customer/review/summary/index.js";import"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";var n=function(){function n(a){var n=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getInitial=function(){return t(n,void 0,void 0,(function(){var t,e,a,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviewSummary(this.page,this.limit)];case 2:return t=i.sent(),this.data=(null===(a=t.data)||void 0===a?void 0:a.data)||[],this._count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,this._initialized=!0,this._minPage=this.page,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPrev=function(){return t(n,void 0,void 0,(function(){var t,e,a,r,n,o;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.listCustomerReviewSummary(t,this.limit)];case 2:return e=i.sent(),this.data=(null===(n=null===(r=e.data)||void 0===r?void 0:r.data)||void 0===n?void 0:n.concat(this.data))||this.data,this._count=(null===(o=e.data)||void 0===o?void 0:o.count)||this._count,this._minPage=t,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(n,void 0,void 0,(function(){var t,e,a,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviewSummary(this.page+1,this.limit)];case 2:return t=i.sent(),this.data=this.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),this._count=(null===(r=t.data)||void 0===r?void 0:r.count)||this._count,this._page=this.page+1,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(n,void 0,void 0,(function(){var t,a,r,n;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listCustomerReviewSummary(e,this.limit)];case 2:return t=i.sent(),this.data=(null===(r=t.data)||void 0===r?void 0:r.data)||[],this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=a.data?a.data.map((function(t){return new r(t)})):[],this._limit=a.limit||5,this._page=a.page||1,this._count=a.count||0,this._initialized=a.initialized||!1,this._minPage=a.minPage,this._productId=a.productId,e(this)}return Object.defineProperty(n.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasPrev",{get:function(){return!!this._minPage&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNext",{get:function(){return this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),n.prototype.listCustomerReviewSummary=function(e,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,a.listCustomerReviewSummary({productId:{eq:this._productId},pagination:{page:e,limit:r}})];case 1:return[2,t.sent()]}}))}))},n.prototype.toJSON=function(){return{data:this.data,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,productId:this._productId}},n}();export{n as IkasCustomerReviewSummaryList};
@@ -0,0 +1,25 @@
1
+ export * from "./blog-list";
2
+ export * from "./blog-category-list";
3
+ export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list";
4
+ export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list";
5
+ export type { IkasBrandListParams } from "./brand-list";
6
+ export { IkasNavigationLink } from "./navigation-link";
7
+ export { IkasProductList, IkasProductListType, IkasProductListSortType, IkasRelatedProductsType, } from "./product-list";
8
+ export * from "./product-attribute-detail";
9
+ export * from "./product-attribute-list";
10
+ export * from "./customer-review-list";
11
+ export * from "./customer-review-summary-list";
12
+ export { Validator } from "./validator";
13
+ export type { ValidationStatus } from "./validator";
14
+ export * from "./validator/rules";
15
+ export { LoginForm } from "./validator/form/login";
16
+ export { AddressForm } from "./validator/form/address";
17
+ export { RegisterForm } from "./validator/form/register";
18
+ export { ContactForm } from "./validator/form/contact-form";
19
+ export { ForgotPasswordForm } from "./validator/form/forgot-password";
20
+ export { RecoverPasswordForm } from "./validator/form/recover-password";
21
+ export { AccountInfoForm } from "./validator/form/account-info";
22
+ export { RaffleForm } from "./validator/form/raffle-form";
23
+ export { CustomerReviewForm } from "./validator/form/customer-review";
24
+ export * from "./component-renderer";
25
+ export { IkasRaffleList } from "./raffle-list";
@@ -0,0 +1,8 @@
1
+ export declare class IkasNavigationLink {
2
+ href: string;
3
+ label: string;
4
+ subLinks: IkasNavigationLink[];
5
+ isExternal?: boolean | null;
6
+ itemId?: string;
7
+ constructor(href: string, label: string, subLinks: IkasNavigationLink[], isExternal?: boolean);
8
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as i}from"mobx";var t=function(t,s,h,r){this.isExternal=null,this.href=t,this.label=s,this.subLinks=h,this.isExternal=r||!1,i(this)};export{t as IkasNavigationLink};
@@ -0,0 +1,8 @@
1
+ import { IkasAttributePropValue } from "@ikas/storefront-providers";
2
+ import { IkasProduct } from "../../data";
3
+ export declare class IkasAttributeDetail {
4
+ productDetail: IkasProduct | null;
5
+ attributePropValue: IkasAttributePropValue;
6
+ constructor(productDetail: IkasProduct | null, attributePropValue: IkasAttributePropValue);
7
+ get values(): import("../../data").IkasProductAttributeValue[];
8
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as t}from"mobx";var r=function(){function r(r,e){this.productDetail=null,this.productDetail=r,this.attributePropValue=e,t(this)}return Object.defineProperty(r.prototype,"values",{get:function(){var t=this;return this.productDetail?this.productDetail.hasVariant?this.productDetail.selectedVariant.attributes.filter((function(r){return r.productAttributeId===t.attributePropValue.attributeId})):this.productDetail.attributes.filter((function(r){return r.productAttributeId===t.attributePropValue.attributeId})):[]},enumerable:!1,configurable:!0}),r}();export{r as IkasAttributeDetail};
@@ -0,0 +1,8 @@
1
+ import { IkasProduct, IkasProductAttributeMap } from "../../../models/data";
2
+ import { IkasAttributeListPropValue } from "@ikas/storefront-providers";
3
+ export declare class IkasAttributeList {
4
+ product: IkasProduct | null;
5
+ attributeListPropValue: IkasAttributeListPropValue;
6
+ constructor(productDetail: IkasProduct | null, attributeListPropValue: IkasAttributeListPropValue);
7
+ get values(): IkasProductAttributeMap[];
8
+ }
@@ -0,0 +1 @@
1
+ import{makeAutoObservable as t}from"mobx";import r from"lodash/groupBy";var u=function(){function u(r,u){this.product=null,this.product=r,this.attributeListPropValue=u,t(this)}return Object.defineProperty(u.prototype,"values",{get:function(){var t,u=this;if(!this.product)return[];var i=this.product.hasVariant?r(this.product.selectedVariant.attributes.filter((function(t){var r;return null===(r=u.attributeListPropValue.attributeIds)||void 0===r?void 0:r.includes(t.productAttributeId||"")})),"productAttributeId"):r(this.product.attributes.filter((function(t){var r;return null===(r=u.attributeListPropValue.attributeIds)||void 0===r?void 0:r.includes(t.productAttributeId||"")})),"productAttributeId");return(null===(t=this.attributeListPropValue.attributeIds)||void 0===t?void 0:t.map((function(t){var r=i[t];if((null==r?void 0:r.length)&&r[0].productAttribute)return{attribute:r[0].productAttribute,values:r}})).filter((function(t){return!!t})))||[]},enumerable:!1,configurable:!0}),u}();export{u as IkasAttributeList};
@@ -0,0 +1,138 @@
1
+ import { NextRouter } from "next/router.js";
2
+ import { IkasBrand, IkasProduct, IkasProductFilter, IkasFilterCategory, IkasThemeJsonPageType, IkasCategory } from "../../../models/data";
3
+ import { IkasProductListPropValue, IkasRelatedProductProps } from "@ikas/storefront-providers";
4
+ export declare class IkasProductList {
5
+ data: IkasProduct[];
6
+ filters?: IkasProductFilter[] | null;
7
+ private _filterCategories?;
8
+ private _type;
9
+ private _pageType;
10
+ private _sort;
11
+ private _limit;
12
+ private _page;
13
+ private _infiniteScrollPage;
14
+ private _count;
15
+ private _searchKeyword;
16
+ private _initialized;
17
+ private _minPage?;
18
+ private _productListPropValue;
19
+ private _filterBrandId?;
20
+ private _filterCategoryId?;
21
+ private _relatedProductData?;
22
+ private pageSpecificData?;
23
+ private _recommendFor?;
24
+ private _isLoading;
25
+ private _fetchRequestTime;
26
+ private router?;
27
+ constructor(data: IkasProductListParams | IkasProductList, router?: NextRouter);
28
+ get sort(): IkasProductListSortType;
29
+ get limit(): number;
30
+ get pageType(): IkasThemeJsonPageType;
31
+ get page(): number;
32
+ get minPage(): number;
33
+ get count(): number;
34
+ get pageCount(): number;
35
+ get searchKeyword(): string;
36
+ set searchKeyword(value: string);
37
+ get isInitialized(): boolean;
38
+ get isFilterable(): boolean;
39
+ get isFiltered(): boolean | undefined;
40
+ get isStatic(): boolean;
41
+ get isDiscounted(): boolean;
42
+ get isRecommended(): boolean;
43
+ get isLastViewed(): boolean;
44
+ get isRelatedProducts(): boolean;
45
+ get isSearch(): boolean;
46
+ get hasPrev(): boolean;
47
+ get hasNext(): boolean;
48
+ get isLoading(): boolean;
49
+ get filterQueryParams(): string;
50
+ get filterCategories(): IkasFilterCategory[] | undefined;
51
+ get hasAppliedfilter(): boolean | undefined;
52
+ get isFeaturedSortEnabled(): boolean;
53
+ private setPageSpecificSort;
54
+ private getSortParams;
55
+ private searchProducts;
56
+ private getFilters;
57
+ private applyQueryParamFilters;
58
+ private applyFacets;
59
+ private applyFilters;
60
+ clearFilters(): void;
61
+ private getInitial;
62
+ getPrev: () => Promise<void>;
63
+ getNext: () => Promise<void>;
64
+ getPage: (page: number) => Promise<void>;
65
+ setSortType(sortType: IkasProductListSortType): Promise<void>;
66
+ onFilterCategoryClick(filterCategory: IkasFilterCategory, disableRoute?: boolean): Promise<void>;
67
+ toJSON(): {
68
+ data: IkasProduct[];
69
+ type: IkasProductListType;
70
+ pageType: IkasThemeJsonPageType;
71
+ sort: IkasProductListSortType;
72
+ limit: number;
73
+ page: number;
74
+ count: number;
75
+ searchKeyword: string;
76
+ initialized: boolean;
77
+ minPage: number | null | undefined;
78
+ filterBrandId: string | null | undefined;
79
+ filterCategoryId: string | null | undefined;
80
+ filterCategories: IkasFilterCategory[] | null | undefined;
81
+ filters: IkasProductFilter[] | null | undefined;
82
+ recommendFor: string | null | undefined;
83
+ productListPropValue: IkasProductListPropValue;
84
+ pageSpecificData: IkasCategory | IkasBrand | null | undefined;
85
+ };
86
+ setVisibleInfiniteScrollPage: (page: number) => void;
87
+ private restoreInfiniteScrollPage;
88
+ private getQueryParams;
89
+ private isBrowser;
90
+ private waitForCustomerStoreInit;
91
+ private handleListingEvent;
92
+ private searchDebouncer;
93
+ private searchAnalyticsDebouncer;
94
+ }
95
+ export declare type IkasProductListParams = {
96
+ data?: IkasProduct[];
97
+ type?: IkasProductListType;
98
+ pageType: IkasThemeJsonPageType;
99
+ sort?: IkasProductListSortType;
100
+ limit?: number;
101
+ page?: number;
102
+ count?: number;
103
+ searchKeyword?: string;
104
+ initialized?: boolean;
105
+ minPage?: number;
106
+ filterBrandId?: string;
107
+ filterCategoryId?: string;
108
+ filters?: IkasProductFilter[];
109
+ filterCategories?: IkasFilterCategory[];
110
+ recommendFor?: string;
111
+ productListPropValue: IkasProductListPropValue;
112
+ pageSpecificData?: IkasCategory | IkasBrand | null;
113
+ relatedProductData?: IkasRelatedProductProps | null;
114
+ };
115
+ export declare enum IkasProductListType {
116
+ ALL = "ALL",
117
+ STATIC = "STATIC",
118
+ DISCOUNTED = "DISCOUNTED",
119
+ RECOMMENDED = "RECOMMENDED",
120
+ CATEGORY = "CATEGORY",
121
+ SEARCH = "SEARCH",
122
+ LAST_VIEWED = "LAST_VIEWED",
123
+ RELATED_PRODUCTS = "RELATED_PRODUCTS"
124
+ }
125
+ export declare enum IkasProductListSortType {
126
+ INCREASING_PRICE = "INCREASING_PRICE",
127
+ DECREASING_PRICE = "DECREASING_PRICE",
128
+ LAST_ADDED = "LAST_ADDED",
129
+ FIRST_ADDED = "FIRST_ADDED",
130
+ INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
131
+ DECRASING_DISCOUNT = "DECRASING_DISCOUNT",
132
+ FEATURED = "FEATURED",
133
+ DEFAULT = "DEFAULT"
134
+ }
135
+ export declare enum IkasRelatedProductsType {
136
+ CATEGORY = "CATEGORY",
137
+ BRAND = "BRAND"
138
+ }
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e,__assign as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as r}from"mobx";import s from"lodash/debounce";import"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import{IkasCategoryProductsOrderType as a,IkasThemeJsonPageType as o,IkasThemeJsonStockPreference as n}from"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/attribute/index.js";import"../../data/customer/review/summary/index.js";import"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import{IkasFilterCategory as d}from"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import{IkasProductFilter as u,IkasProductFilterValue as c}from"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import{IkasProduct as l}from"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";import p from"../../../store/product/index.js";import h from"query-string";import{SortByDirectionEnum as f,SortByTypeEnum as m}from"@ikas/storefront-api";import{IkasStorefrontConfig as g}from"@ikas/storefront-config";import{Analytics as v}from"../../../analytics/analytics.js";import"../../../analytics/head/index.js";import"../../../components/page/index.js";import"../../../components/page/head.js";import"react";import"next/image.js";import"@ikas/storefront-model-functions";import"../../../components/link/index.js";import"../../../components/page-editor/loader/style.module.scss.js";import"../../../components/google-captcha/index.js";import"../blog-list/index.js";import"../blog-category-list/index.js";import"../brand-list/index.js";import"../category-list/index.js";import"../product-attribute-detail/index.js";import"../product-attribute-list/index.js";import"../customer-review-list/index.js";import"../customer-review-summary-list/index.js";import"../validator/index.js";import"../validator/rules/index.js";import"../validator/form/login.js";import"../validator/form/address.js";import"../validator/form/register.js";import"../validator/form/contact-form.js";import"../validator/form/forgot-password.js";import"../validator/form/recover-password.js";import"../validator/form/account-info.js";import"../validator/form/raffle-form.js";import"../validator/form/customer-review.js";import"../raffle-list/index.js";import"../../../pages/home.js";import"../../../pages/_slug_/index.js";import"../../../pages/pages/_slug_.js";import"../../../pages/checkout.js";import"../../../pages/account/index.js";import"../../../pages/account/addresses.js";import"../../../pages/account/orders/index.js";import"../../../pages/account/orders/_id_.js";import"../../../pages/account/login.js";import"../../../pages/account/register.js";import"../../../pages/account/forgot-password.js";import"../../../pages/account/recover-password.js";import"../../../pages/cart.js";import"../../../pages/editor.js";import"../../../pages/account/favorite-products.js";import"../../../pages/search.js";import"next/error.js";import"../../../pages/blog/index.js";import"../../../pages/blog/_slug_.js";import"../../../pages/raffle/_slug_.js";import"../../../pages/raffle/index.js";import"../../../pages/account/raffles.js";import{IkasBaseStore as _}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import"lodash/get";var y,I,S,b=function(){function S(a,n){var c=this;this.filters=null,this._filterCategories=null,this._infiniteScrollPage=null,this._initialized=!1,this._minPage=null,this._filterBrandId=null,this._filterCategoryId=null,this._relatedProductData=null,this.pageSpecificData=null,this._recommendFor=null,this._isLoading=!1,this._fetchRequestTime=0,this.router=null,this.applyFilters=function(){return t(c,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,this.getInitial()];case 1:return t=e.sent(),[o.CATEGORY,o.BRAND,o.SEARCH].includes(this._pageType)?(t&&this.isBrowser()&&!this.isSearch&&!g.getIsEditor()&&(null===(i=this.router)||void 0===i||i.replace("".concat(location.pathname).concat(this.filterQueryParams?"?"+this.filterQueryParams:""),void 0,{shallow:!0})),[2]):[2]}}))}))},this.getInitial=function(r,s){return t(c,void 0,void 0,(function(){var t,a,o,n,d,u,c,p,h,f,m,g,v;return e(this,(function(e){switch(e.label){case 0:this._isLoading=!0,t=Date.now(),this._fetchRequestTime=t,e.label=1;case 1:return e.trys.push([1,12,13,14]),a=s?this._page:1,o=this._limit,!this.isFilterable||this.filters?[3,3]:[4,this.getFilters()];case 2:e.sent(),e.label=3;case 3:return this.applyQueryParamFilters(r),this.isSearch&&!this.hasAppliedfilter?(this.data=[],this._page=1,this._minPage=1,this._count=0,this._initialized=!0,[2,!0]):(n=void 0,this.isStatic?(a=void 0,o=200,[3,10]):[3,4]);case 4:return this.isDiscounted?(a=1,o=10,[3,10]):[3,5];case 5:return this.isRecommended?(a=1,o=10,[3,10]):[3,6];case 6:return this.isLastViewed?this.isBrowser()?[4,this.waitForCustomerStoreInit()]:[3,9]:[3,10];case 7:return e.sent(),[4,_.getInstance().customerStore.getLastViewedProducts()];case 8:return(d=e.sent())&&d.length&&(n=d.map((function(t){return t.productId}))),[3,10];case 9:return[2];case 10:return[4,this.searchProducts(a||1,o||10,n)];case 11:return(u=e.sent())&&this._fetchRequestTime===t?(c=[],this.isStatic||this.isLastViewed?(p=this.isStatic?this._productListPropValue.productIds:_.getInstance().customerStore._lastViewedProducts,c=(null==p?void 0:p.map((function(t){var e,r,s=null===(r=null===(e=u.data)||void 0===e?void 0:e.data)||void 0===r?void 0:r.find((function(e){return e.id===t.productId})),a=null==s?void 0:s.variants.find((function(e){return e.id===t.variantId}));if((null==a?void 0:a.isActive)||(a=null==s?void 0:s.variants.find((function(t){return t.isActive}))),s&&a)return new l(i(i({},s),{selectedVariantValues:a.variantValues}))})).filter((function(t){return!!t})))||[]):c=(null===(m=null===(f=u.data)||void 0===f?void 0:f.data)||void 0===m?void 0:m.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new l(i(i({},t),{selectedVariantValues:(e||t.variants[0]).variantValues}))})))||[],this.applyFacets(null===(g=u.data)||void 0===g?void 0:g.facets),this.data=c,this._count=(null===(v=u.data)||void 0===v?void 0:v.count)||0,this._initialized=!0,this._page=a||1,this._minPage=this.page,s||(this._infiniteScrollPage=null),this.handleListingEvent(),[2,!0]):[2];case 12:return h=e.sent(),console.log(h),[3,14];case 13:return t===this._fetchRequestTime&&(this._isLoading=!1),[7];case 14:return[2]}}))}))},this.getPrev=function(){return t(c,void 0,void 0,(function(){var t,r,s,a,o,n,d;return e(this,(function(e){switch(e.label){case 0:if(this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.searchProducts(t,this.limit)];case 2:return(r=e.sent())?(s=null===(n=null===(o=r.data)||void 0===o?void 0:o.data)||void 0===n?void 0:n.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new l(i(i({},t),{selectedVariantValues:(e||t.variants[0]).variantValues}))})),this.data=(null==s?void 0:s.concat(this.data))||this.data,this._count=(null===(d=r.data)||void 0===d?void 0:d.count)||this._count,this._minPage=t,[3,5]):[2];case 3:return a=e.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(c,void 0,void 0,(function(){var t,r,s,a,o,n;return e(this,(function(e){switch(e.label){case 0:if(this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.searchProducts(this.page+1,this.limit)];case 2:return(t=e.sent())?(r=null===(o=null===(a=t.data)||void 0===a?void 0:a.data)||void 0===o?void 0:o.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new l(i(i({},t),{selectedVariantValues:(e||t.variants[0]).variantValues}))})),this.data=this.data.concat(r||[]),this._count=(null===(n=t.data)||void 0===n?void 0:n.count)||this._count,this._page=this.page+1,[3,5]):[2];case 3:return s=e.sent(),console.log(s),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(r){return t(c,void 0,void 0,(function(){var t,s,a,o,n,d;return e(this,(function(e){switch(e.label){case 0:if(this._isLoading||this.isStatic||this.isDiscounted||this.isRecommended||this.isLastViewed)return[2];this._isLoading=!0,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,this.searchProducts(r,this.limit)];case 2:return(t=e.sent())?(s=null===(n=null===(o=t.data)||void 0===o?void 0:o.data)||void 0===n?void 0:n.map((function(t){var e=t.variants.find((function(t){return t.isActive}));return new l(i(i({},t),{selectedVariantValues:(e||t.variants[0]).variantValues}))})),this.data=s||[],this._count=(null===(d=t.data)||void 0===d?void 0:d.count)||0,this._page=r,this._minPage=r,[3,5]):[2];case 3:return a=e.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.setVisibleInfiniteScrollPage=function(t){var e;c._infiniteScrollPage!==t&&(c._infiniteScrollPage=t,g.getIsEditor()||null===(e=c.router)||void 0===e||e.replace("".concat(location.pathname).concat(c.filterQueryParams?"?"+c.filterQueryParams:""),void 0,{shallow:!0}))},this.searchDebouncer=s((function(){c.applyFilters()}),500),this.searchAnalyticsDebouncer=s((function(){v.search(c._searchKeyword)}),1e3);var p=a,h=a;if(this.data=a.data?a.data.map((function(t){return new l(t)})):[],this._type=p.type||h._type||p.productListPropValue.productListType||h._productListPropValue.productListType||y.ALL,this._pageType=a.pageType,this._sort=a.sort||a.productListPropValue.initialSort||I.LAST_ADDED,this._limit=a.limit||p.productListPropValue.initialLimit||h._productListPropValue.initialLimit||20,this._page=a.page||1,this._minPage=a.minPage||null,this._count=a.count||0,this._searchKeyword=a.searchKeyword||"",this._productListPropValue=p.productListPropValue||h._productListPropValue,this._filterBrandId=p.filterBrandId||h._filterBrandId||null,this._filterCategoryId=p.filterCategoryId||h._filterCategoryId||null,this._relatedProductData=p.relatedProductData||h._relatedProductData||null,this._recommendFor=p.recommendFor||h._recommendFor,this.filters=a.filters?a.filters.map((function(t){return new u(t,c)})):null,this._filterCategories=a.filterCategories?a.filterCategories.map((function(t){return new d(t)})):null,this.pageSpecificData=p.pageSpecificData||h.pageSpecificData||null,this.router=n,r(this),this.setPageSpecificSort(),this.isBrowser())if(this.restoreInfiniteScrollPage(),location.search&&(this.isFilterable||this._type===y.SEARCH)){var f=this.getQueryParams();this.getInitial(f,this._page>1)}else this._page>1?this.getInitial(void 0,!0):this.isLastViewed?this.getInitial():this.handleListingEvent()}return Object.defineProperty(S.prototype,"sort",{get:function(){return this._sort},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pageType",{get:function(){return this._pageType},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"minPage",{get:function(){return this._minPage||1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"searchKeyword",{get:function(){return this._searchKeyword},set:function(t){t!==this._searchKeyword&&(this._searchKeyword=t,this.searchDebouncer(),this.searchAnalyticsDebouncer())},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isFilterable",{get:function(){return this._type===y.ALL||this._type===y.CATEGORY},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isFiltered",{get:function(){var t,e;return(null===(t=this.filters)||void 0===t?void 0:t.some((function(t){return!!t.valueList.length})))||!!this._searchKeyword||this._pageType!==o.CATEGORY&&(!!this._filterCategoryId||(null===(e=this._filterCategories)||void 0===e?void 0:e.some((function(t){return t.isSelected}))))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isStatic",{get:function(){return this._type===y.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isDiscounted",{get:function(){return this._type===y.DISCOUNTED},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isRecommended",{get:function(){return this._type===y.RECOMMENDED},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isLastViewed",{get:function(){return this._type===y.LAST_VIEWED},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isRelatedProducts",{get:function(){return this._type===y.RELATED_PRODUCTS},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isSearch",{get:function(){return this._type===y.SEARCH},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasPrev",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasNext",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended)&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"filterQueryParams",{get:function(){var t,e,i,r,s=this,a={};if(null===(t=this.filters)||void 0===t||t.forEach((function(t){t.keyList.length&&(a[t.key]=t.keyList)})),this._searchKeyword&&(a.s=this._searchKeyword),this._infiniteScrollPage&&(a.page=this._infiniteScrollPage),this._pageType!==o.CATEGORY){var n=null===(e=this.filterCategories)||void 0===e?void 0:e.filter((function(t){return t.isSelected}));if(!!(null==n?void 0:n.length))a.c=null==n?void 0:n.map((function(t){return t.slug}));else if(this._filterCategoryId){var d=null===(r=null===(i=this.filterCategories)||void 0===i?void 0:i.find((function(t){return t.id===s._filterCategoryId})))||void 0===r?void 0:r.slug;d&&(a.c=d)}}return h.stringify(a,{arrayFormat:"comma"})},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"filterCategories",{get:function(){var t;return null===(t=this._filterCategories)||void 0===t?void 0:t.filter((function(t){return 0!==t.resultCount}))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasAppliedfilter",{get:function(){var t;return!!this._searchKeyword||(null===(t=this.filters)||void 0===t?void 0:t.some((function(t){return!!t.valueList.length})))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isFeaturedSortEnabled",{get:function(){var t;return(null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)===a.MANUALLY&&[y.ALL,y.CATEGORY].includes(this._type)},enumerable:!1,configurable:!0}),S.prototype.setPageSpecificSort=function(){var t;if((null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)&&[y.ALL].includes(this._type))switch(this.pageSpecificData.orderType){case a.HIGHEST_DISCOUNT_RATIO:this._sort=I.DECRASING_DISCOUNT;break;case a.LOWEST_DISCOUNT_RATIO:this._sort=I.INCREASING_DISCOUNT;break;case a.HIGHEST_PRICE:this._sort=I.DECREASING_PRICE;break;case a.LOWEST_PRICE:this._sort=I.INCREASING_PRICE;break;case a.NEWEST:this._sort=I.LAST_ADDED;break;case a.OLDEST:this._sort=I.FIRST_ADDED;break;case a.MANUALLY:this._sort=I.FEATURED}},S.prototype.getSortParams=function(){var t,e;switch(this._sort){case I.INCREASING_PRICE:t=f.ASC,e=m.PRICE;break;case I.DECREASING_PRICE:t=f.DESC,e=m.PRICE;break;case I.FIRST_ADDED:t=f.ASC,e=m.CREATED_AT;break;case I.LAST_ADDED:t=f.DESC,e=m.CREATED_AT;break;case I.INCREASING_DISCOUNT:t=f.ASC,e=m.DISCOUNT_RATIO;break;case I.DECRASING_DISCOUNT:t=f.DESC,e=m.DISCOUNT_RATIO;break;case I.FEATURED:if(this.isSearch)return;t=f.ASC,e=m.MANUAL_SORT;break;case I.DEFAULT:t=void 0,e=void 0}if(t&&e)return{direction:t,type:e}},S.prototype.searchProducts=function(i,r,s){var a,d,u;return t(this,void 0,void 0,(function(){var t,l,h,f;return e(this,(function(e){switch(e.label){case 0:return t=[],l=[],null===(a=this.filters)||void 0===a||a.forEach((function(e){e.valueList.length&&t.push(new c({id:e.id,type:e.type,displayType:e.displayType,valueList:e.valueList})),e.isFacetFilter&&l.push({id:e.id,type:e.type,displayType:e.displayType})})),h=null===(d=this._filterCategories)||void 0===d?void 0:d.filter((function(t){return t.isSelected})).map((function(t){return t.id})),f=this.getSortParams(),this.isRelatedProducts&&this._relatedProductData?[4,p.getRelatedProducts({priceListId:g.getPriceListId(),salesChannelId:g.getSalesChannelId(),productId:this._relatedProductData.productId,brandIds:this._relatedProductData.brandIds,categoryIds:this._relatedProductData.categoryIds})]:[3,2];case 1:case 3:return[2,e.sent()];case 2:return[4,p.searchProducts({input:{page:i,perPage:r,productIdList:this.isStatic?null===(u=this._productListPropValue.productIds)||void 0===u?void 0:u.map((function(t){return t.productId})):s,filterList:t,facetList:l,brandId:this._pageType===o.BRAND&&this._type!==y.SEARCH?this._filterBrandId:void 0,categoryIdList:h&&h.length?h:this._filterCategoryId?[this._filterCategoryId]:void 0,priceListId:g.getPriceListId(),salesChannelId:g.getSalesChannelId(),query:this._searchKeyword,order:this._type===y.SEARCH?[]:f?[f]:[],showStockOption:g.getStockPreference()||n.SHOW_ALL}})]}}))}))},S.prototype.getFilters=function(){var i,r,s;return t(this,void 0,void 0,(function(){var t,a,n=this;return e(this,(function(e){switch(e.label){case 0:return[4,p.getProductFilterData({categoryId:this._filterCategoryId?this._filterCategoryId:void 0})];case 1:return t=e.sent(),this.filters=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.filters.map((function(t){return new u(t,n)})),this._filterCategories=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.categories,this.pageType!==o.CATEGORY&&this._filterCategoryId&&(a=null===(s=this._filterCategories)||void 0===s?void 0:s.find((function(t){return t.id===n._filterCategoryId})))&&(a.isSelected=!0),this.filters&&this.filters.sort((function(t,e){return t.order>e.order?1:-1})),[2]}}))}))},S.prototype.applyQueryParamFilters=function(t){var e,i=this;try{null==t||t.forEach((function(t,e){var r,s=null===(r=i.filters)||void 0===r?void 0:r.find((function(t){return t.key===e}));s&&s.applyQueryParam(t)}));var r=null==t?void 0:t.get("s");if(r&&(this._searchKeyword=r),this._pageType!==o.CATEGORY){var s=null==t?void 0:t.get("c"),a=null==s?void 0:s.split(",");a&&a.length&&(null===(e=this.filterCategories)||void 0===e||e.forEach((function(t){t.isSelected=a.some((function(e){return e===t.slug}))})))}}catch(t){console.log(t)}},S.prototype.applyFacets=function(t){var e,i;null===(e=this.filters)||void 0===e||e.forEach((function(e){var i,r,s,a=null==t?void 0:t.find((function(t){return t.id===e.id}));a?null===(i=e.values)||void 0===i||i.forEach((function(t){var i=a.values.find((function(e){return e.id===t.id}));i?t.resultCount=i.count:e.isCustomValueFilter?t.resultCount=null:t.resultCount=0})):e.isCustomValueFilter?null===(r=e.values)||void 0===r||r.forEach((function(t){return t.resultCount=null})):null===(s=e.values)||void 0===s||s.forEach((function(t){return t.resultCount=0}))}));var r=null==t?void 0:t.find((function(t){return"category"===t.id}));r&&(null===(i=this._filterCategories)||void 0===i||i.forEach((function(t){var e=r.values.find((function(e){return e.id===t.id}));t.resultCount=e?e.count:0})))},S.prototype.clearFilters=function(){var t,e;null===(t=this.filters)||void 0===t||t.forEach((function(t){return t.clear()})),this._searchKeyword="",this._pageType!==o.CATEGORY&&(this._filterCategoryId=void 0),null===(e=this._filterCategories)||void 0===e||e.forEach((function(t){return t.isSelected=!1})),this.applyFilters()},S.prototype.setSortType=function(i){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return this._sort=i,[4,this.getInitial()];case 1:return t.sent(),[2]}}))}))},S.prototype.onFilterCategoryClick=function(i,r){var s,a;return void 0===r&&(r=!1),t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return r?(null===(s=this._filterCategories)||void 0===s||s.forEach((function(t){t.id===i.id&&(t.isSelected=!t.isSelected)})),[4,this.applyFilters()]):[3,2];case 1:return t.sent(),[3,3];case 2:g.getIsEditor()||null===(a=_.getInstance().router)||void 0===a||a.push(i.href+(this.filterQueryParams?"?"+this.filterQueryParams:"")),t.label=3;case 3:return[2]}}))}))},S.prototype.toJSON=function(){return{data:this.data,type:this._type,pageType:this._pageType,sort:this._sort,limit:this._limit,page:this._page,count:this._count,searchKeyword:this._searchKeyword,initialized:this._initialized,minPage:this._minPage,filterBrandId:this._filterBrandId,filterCategoryId:this._filterCategoryId,filterCategories:this._filterCategories,filters:this.filters,recommendFor:this._recommendFor,productListPropValue:this._productListPropValue,pageSpecificData:this.pageSpecificData}},S.prototype.restoreInfiniteScrollPage=function(){var t=this.getQueryParams(),e=null==t?void 0:t.get("page");if(e){var i=parseInt(e);isNaN(i)||(this._page=i,this._infiniteScrollPage=i)}},S.prototype.getQueryParams=function(){if(this.isBrowser())return new URLSearchParams(location.search)},S.prototype.isBrowser=function(){return"undefined"!=typeof window},S.prototype.waitForCustomerStoreInit=function(){return new Promise((function(t){var e=setInterval((function(){_.getInstance().customerStore.initialized&&(clearInterval(e),t(null))}),1e3)}))},S.prototype.handleListingEvent=function(){this.searchKeyword&&this.data.length?v.viewSearchResults(this._searchKeyword,this.data):this.data.length&&this._type===y.ALL&&v.viewListing(this.data)},S}();!function(t){t.ALL="ALL",t.STATIC="STATIC",t.DISCOUNTED="DISCOUNTED",t.RECOMMENDED="RECOMMENDED",t.CATEGORY="CATEGORY",t.SEARCH="SEARCH",t.LAST_VIEWED="LAST_VIEWED",t.RELATED_PRODUCTS="RELATED_PRODUCTS"}(y||(y={})),function(t){t.INCREASING_PRICE="INCREASING_PRICE",t.DECREASING_PRICE="DECREASING_PRICE",t.LAST_ADDED="LAST_ADDED",t.FIRST_ADDED="FIRST_ADDED",t.INCREASING_DISCOUNT="INCREASING_DISCOUNT",t.DECRASING_DISCOUNT="DECRASING_DISCOUNT",t.FEATURED="FEATURED",t.DEFAULT="DEFAULT"}(I||(I={})),function(t){t.CATEGORY="CATEGORY",t.BRAND="BRAND"}(S||(S={}));export{b as IkasProductList,I as IkasProductListSortType,y as IkasProductListType,S as IkasRelatedProductsType};
@@ -0,0 +1,53 @@
1
+ import { IkasRaffle } from "../../data";
2
+ export declare class IkasRaffleList {
3
+ data: IkasRaffle[];
4
+ private _limit;
5
+ private _page;
6
+ private _count;
7
+ private _initialized;
8
+ private _minPage?;
9
+ private _start;
10
+ private _end;
11
+ private _includeDeleted;
12
+ private _name;
13
+ private _search;
14
+ private _id;
15
+ private _isLoading;
16
+ constructor(data?: IkasRaffleListParams);
17
+ get limit(): number;
18
+ get page(): number;
19
+ get count(): number;
20
+ get pageCount(): number;
21
+ get isInitialized(): boolean;
22
+ get hasPrev(): boolean;
23
+ get hasNext(): boolean;
24
+ get isLoading(): boolean;
25
+ get minPage(): number;
26
+ private getRaffleList;
27
+ getPrev: () => Promise<void>;
28
+ getNext: () => Promise<void>;
29
+ getPage: (page: number) => Promise<void>;
30
+ toJSON(): {
31
+ data: IkasRaffle[];
32
+ limit: number;
33
+ page: number;
34
+ count: number;
35
+ initialized: boolean;
36
+ minPage: number | null | undefined;
37
+ };
38
+ }
39
+ export declare type IkasRaffleListParams = {
40
+ data?: IkasRaffle[];
41
+ limit?: number;
42
+ page?: number;
43
+ count?: number;
44
+ initialized?: boolean;
45
+ minPage?: number;
46
+ start?: number;
47
+ end?: number;
48
+ includeDeleted?: boolean;
49
+ name?: string;
50
+ search?: string;
51
+ id?: string;
52
+ customerId?: string;
53
+ };