@ikas/storefront 4.5.0-beta.1 → 4.5.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (784) hide show
  1. package/package.json +11 -11
  2. package/build/_virtual/axios.js +0 -1
  3. package/build/_virtual/index.js +0 -1
  4. package/build/analytics/analytics.d.ts +0 -37
  5. package/build/analytics/analytics.js +0 -1
  6. package/build/analytics/events.d.ts +0 -37
  7. package/build/analytics/events.js +0 -1
  8. package/build/analytics/facebookPixel.d.ts +0 -15
  9. package/build/analytics/facebookPixel.js +0 -1
  10. package/build/analytics/googleAnalytics.d.ts +0 -13
  11. package/build/analytics/googleAnalytics.js +0 -1
  12. package/build/analytics/googleTagManager.d.ts +0 -209
  13. package/build/analytics/googleTagManager.js +0 -1
  14. package/build/analytics/googleUniversal.d.ts +0 -9
  15. package/build/analytics/googleUniversal.js +0 -1
  16. package/build/analytics/head/index.d.ts +0 -3
  17. package/build/analytics/head/index.js +0 -1
  18. package/build/analytics/ikas.d.ts +0 -134
  19. package/build/analytics/ikas.js +0 -1
  20. package/build/analytics/index.d.ts +0 -2
  21. package/build/analytics/tiktokPixel.d.ts +0 -13
  22. package/build/analytics/tiktokPixel.js +0 -1
  23. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  24. package/build/components/checkout/components/address-form/index.js +0 -1
  25. package/build/components/checkout/components/address-form/model.d.ts +0 -87
  26. package/build/components/checkout/components/address-form/model.js +0 -1
  27. package/build/components/checkout/components/adyen/adyen.module.scss.js +0 -1
  28. package/build/components/checkout/components/adyen/index.d.ts +0 -8
  29. package/build/components/checkout/components/adyen/index.js +0 -1
  30. package/build/components/checkout/components/button/index.d.ts +0 -13
  31. package/build/components/checkout/components/button/index.js +0 -1
  32. package/build/components/checkout/components/button/style.module.scss.js +0 -1
  33. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -11
  34. package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
  35. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
  36. package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.d.ts +0 -2
  37. package/build/components/checkout/components/cart-summary/cart-item/svg/arrow-right.js +0 -1
  38. package/build/components/checkout/components/cart-summary/index.d.ts +0 -12
  39. package/build/components/checkout/components/cart-summary/index.js +0 -1
  40. package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
  41. package/build/components/checkout/components/checkbox/check.d.ts +0 -6
  42. package/build/components/checkout/components/checkbox/check.js +0 -1
  43. package/build/components/checkout/components/checkbox/index.d.ts +0 -10
  44. package/build/components/checkout/components/checkbox/index.js +0 -1
  45. package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
  46. package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
  47. package/build/components/checkout/components/credit-card-form/index.js +0 -1
  48. package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
  49. package/build/components/checkout/components/credit-card-form/model.js +0 -1
  50. package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
  51. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
  52. package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
  53. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
  54. package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
  55. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
  56. package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
  57. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
  58. package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
  59. package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
  60. package/build/components/checkout/components/customer-addresses/index.js +0 -1
  61. package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
  62. package/build/components/checkout/components/customer-addresses/model.js +0 -1
  63. package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
  64. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
  65. package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
  66. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
  67. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
  68. package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
  69. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
  70. package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
  71. package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
  72. package/build/components/checkout/components/delivery-methods/index.js +0 -1
  73. package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
  74. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
  75. package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
  76. package/build/components/checkout/components/error/index.d.ts +0 -7
  77. package/build/components/checkout/components/error/index.js +0 -1
  78. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
  79. package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
  80. package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
  81. package/build/components/checkout/components/error/payment-error/index.js +0 -1
  82. package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
  83. package/build/components/checkout/components/error/stock-error/index.js +0 -1
  84. package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
  85. package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
  86. package/build/components/checkout/components/error/unknown-error/index.js +0 -1
  87. package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
  88. package/build/components/checkout/components/expandable-section/index.js +0 -1
  89. package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
  90. package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
  91. package/build/components/checkout/components/form-item/caret-down.js +0 -1
  92. package/build/components/checkout/components/form-item/index.d.ts +0 -3
  93. package/build/components/checkout/components/form-item/index.js +0 -1
  94. package/build/components/checkout/components/form-item/model.d.ts +0 -69
  95. package/build/components/checkout/components/form-item/model.js +0 -1
  96. package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
  97. package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
  98. package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
  99. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
  100. package/build/components/checkout/components/input-with-button/index.d.ts +0 -12
  101. package/build/components/checkout/components/input-with-button/index.js +0 -1
  102. package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
  103. package/build/components/checkout/components/klarna/index.d.ts +0 -7
  104. package/build/components/checkout/components/klarna/index.js +0 -1
  105. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
  106. package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
  107. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
  108. package/build/components/checkout/components/master-pass/link-card-to-client/index.d.ts +0 -8
  109. package/build/components/checkout/components/master-pass/link-card-to-client/index.js +0 -1
  110. package/build/components/checkout/components/master-pass/link-card-to-client/style.module.scss.js +0 -1
  111. package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.d.ts +0 -2
  112. package/build/components/checkout/components/master-pass/link-card-to-client/svg/close.js +0 -1
  113. package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.d.ts +0 -2
  114. package/build/components/checkout/components/master-pass/link-card-to-client/svg/info-mark.js +0 -1
  115. package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
  116. package/build/components/checkout/components/master-pass/link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
  117. package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -10
  118. package/build/components/checkout/components/master-pass/modal/index.js +0 -1
  119. package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
  120. package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.d.ts +0 -2
  121. package/build/components/checkout/components/master-pass/modal/svg/master-pass-by-master-card-small.js +0 -1
  122. package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
  123. package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
  124. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
  125. package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
  126. package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
  127. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
  128. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
  129. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
  130. package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
  131. package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
  132. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
  133. package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
  134. package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
  135. package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
  136. package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
  137. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
  138. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
  139. package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.d.ts +0 -6
  140. package/build/components/checkout/components/master-pass/payment-gateway/svg/troy.js +0 -1
  141. package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.d.ts +0 -6
  142. package/build/components/checkout/components/master-pass/payment-gateway/svg/visa.js +0 -1
  143. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
  144. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
  145. package/build/components/checkout/components/modal/index.d.ts +0 -8
  146. package/build/components/checkout/components/modal/index.js +0 -1
  147. package/build/components/checkout/components/modal/style.module.scss.js +0 -1
  148. package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
  149. package/build/components/checkout/components/modal/useEscape.js +0 -1
  150. package/build/components/checkout/components/notification-box/index.d.ts +0 -9
  151. package/build/components/checkout/components/notification-box/index.js +0 -1
  152. package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
  153. package/build/components/checkout/components/offer-product/index.d.ts +0 -8
  154. package/build/components/checkout/components/offer-product/index.js +0 -1
  155. package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
  156. package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
  157. package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
  158. package/build/components/checkout/components/offer-product/select/index.js +0 -1
  159. package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
  160. package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
  161. package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
  162. package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
  163. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
  164. package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
  165. package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
  166. package/build/components/checkout/components/phone-number-input/index.js +0 -1
  167. package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
  168. package/build/components/checkout/components/quick-registration/completed.d.ts +0 -7
  169. package/build/components/checkout/components/quick-registration/completed.js +0 -1
  170. package/build/components/checkout/components/quick-registration/index.d.ts +0 -7
  171. package/build/components/checkout/components/quick-registration/index.js +0 -1
  172. package/build/components/checkout/components/quick-registration/model.d.ts +0 -19
  173. package/build/components/checkout/components/quick-registration/model.js +0 -1
  174. package/build/components/checkout/components/quick-registration/style.module.scss.js +0 -1
  175. package/build/components/checkout/components/select-box/index.d.ts +0 -13
  176. package/build/components/checkout/components/select-box/index.js +0 -1
  177. package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
  178. package/build/components/checkout/components/step-container/index.d.ts +0 -15
  179. package/build/components/checkout/components/step-container/index.js +0 -1
  180. package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
  181. package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
  182. package/build/components/checkout/components/stripe/checkout-form.js +0 -1
  183. package/build/components/checkout/components/stripe/index.d.ts +0 -9
  184. package/build/components/checkout/components/stripe/index.js +0 -1
  185. package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
  186. package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
  187. package/build/components/checkout/components/svg/arrow-down.js +0 -1
  188. package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
  189. package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
  190. package/build/components/checkout/components/svg/cross.d.ts +0 -6
  191. package/build/components/checkout/components/svg/cross.js +0 -1
  192. package/build/components/checkout/components/svg/discount.d.ts +0 -6
  193. package/build/components/checkout/components/svg/external.d.ts +0 -6
  194. package/build/components/checkout/components/svg/external.js +0 -1
  195. package/build/components/checkout/components/svg/gift.d.ts +0 -7
  196. package/build/components/checkout/components/svg/gift.js +0 -1
  197. package/build/components/checkout/components/svg/ikas.d.ts +0 -6
  198. package/build/components/checkout/components/svg/ikas.js +0 -1
  199. package/build/components/checkout/components/svg/lock.d.ts +0 -6
  200. package/build/components/checkout/components/svg/lock.js +0 -1
  201. package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
  202. package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
  203. package/build/components/checkout/components/svg/success-circle.js +0 -1
  204. package/build/components/checkout/components/svg/tag.d.ts +0 -6
  205. package/build/components/checkout/components/svg/warning.d.ts +0 -6
  206. package/build/components/checkout/components/svg/warning.js +0 -1
  207. package/build/components/checkout/components/toggle/index.d.ts +0 -10
  208. package/build/components/checkout/components/toggle/index.js +0 -1
  209. package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
  210. package/build/components/checkout/components/tooltip/index.d.ts +0 -8
  211. package/build/components/checkout/components/tooltip/index.js +0 -1
  212. package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
  213. package/build/components/checkout/index.d.ts +0 -34
  214. package/build/components/checkout/index.js +0 -1
  215. package/build/components/checkout/model.d.ts +0 -191
  216. package/build/components/checkout/model.js +0 -1
  217. package/build/components/checkout/modelMasterPass.d.ts +0 -204
  218. package/build/components/checkout/modelMasterPass.js +0 -1
  219. package/build/components/checkout/steps/step-info/index.d.ts +0 -7
  220. package/build/components/checkout/steps/step-info/index.js +0 -1
  221. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
  222. package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
  223. package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
  224. package/build/components/checkout/steps/step-payment/index.js +0 -1
  225. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
  226. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
  227. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
  228. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
  229. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
  230. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
  231. package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
  232. package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
  233. package/build/components/checkout/steps/step-shipping/index.js +0 -1
  234. package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
  235. package/build/components/checkout/steps/step-success/index.d.ts +0 -7
  236. package/build/components/checkout/steps/step-success/index.js +0 -1
  237. package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
  238. package/build/components/checkout/style.module.scss.js +0 -1
  239. package/build/components/checkout/styles/common.module.scss.js +0 -1
  240. package/build/components/google-captcha/index.d.ts +0 -9
  241. package/build/components/google-captcha/index.js +0 -1
  242. package/build/components/image/index.d.ts +0 -10
  243. package/build/components/image/index.js +0 -1
  244. package/build/components/index.d.ts +0 -6
  245. package/build/components/link/index.d.ts +0 -16
  246. package/build/components/link/index.js +0 -1
  247. package/build/components/page/ThemeComponent.d.ts +0 -21
  248. package/build/components/page/ThemeComponent.js +0 -1
  249. package/build/components/page/head.d.ts +0 -15
  250. package/build/components/page/head.js +0 -1
  251. package/build/components/page/index.d.ts +0 -24
  252. package/build/components/page/index.js +0 -1
  253. package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
  254. package/build/components/page-editor/ThemeComponentEditor.js +0 -1
  255. package/build/components/page-editor/error/index.d.ts +0 -4
  256. package/build/components/page-editor/error/index.js +0 -1
  257. package/build/components/page-editor/index.d.ts +0 -4
  258. package/build/components/page-editor/index.js +0 -1
  259. package/build/components/page-editor/loader/index.d.ts +0 -6
  260. package/build/components/page-editor/loader/index.js +0 -1
  261. package/build/components/page-editor/loader/style.module.scss.js +0 -1
  262. package/build/components/page-editor/model.d.ts +0 -76
  263. package/build/components/page-editor/model.js +0 -1
  264. package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
  265. package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
  266. package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
  267. package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
  268. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
  269. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
  270. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
  271. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
  272. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
  273. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
  274. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
  275. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
  276. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
  277. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
  278. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
  279. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
  280. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
  281. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
  282. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
  283. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
  284. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
  285. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
  286. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
  287. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
  288. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
  289. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
  290. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
  291. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
  292. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
  293. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
  294. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
  295. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
  296. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
  297. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
  298. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
  299. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
  300. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
  301. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
  302. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
  303. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
  304. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
  305. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
  306. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
  307. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
  308. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
  309. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
  310. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
  311. package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
  312. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
  313. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
  314. package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
  315. package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
  316. package/build/ext/axios/index.js +0 -1
  317. package/build/ext/axios/lib/adapters/xhr.js +0 -1
  318. package/build/ext/axios/lib/axios.js +0 -1
  319. package/build/ext/axios/lib/cancel/Cancel.js +0 -1
  320. package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
  321. package/build/ext/axios/lib/cancel/isCancel.js +0 -1
  322. package/build/ext/axios/lib/core/Axios.js +0 -1
  323. package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
  324. package/build/ext/axios/lib/core/buildFullPath.js +0 -1
  325. package/build/ext/axios/lib/core/createError.js +0 -1
  326. package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
  327. package/build/ext/axios/lib/core/enhanceError.js +0 -1
  328. package/build/ext/axios/lib/core/mergeConfig.js +0 -1
  329. package/build/ext/axios/lib/core/settle.js +0 -1
  330. package/build/ext/axios/lib/core/transformData.js +0 -1
  331. package/build/ext/axios/lib/defaults/index.js +0 -1
  332. package/build/ext/axios/lib/defaults/transitional.js +0 -1
  333. package/build/ext/axios/lib/env/data.js +0 -1
  334. package/build/ext/axios/lib/helpers/bind.js +0 -1
  335. package/build/ext/axios/lib/helpers/buildURL.js +0 -1
  336. package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
  337. package/build/ext/axios/lib/helpers/cookies.js +0 -1
  338. package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
  339. package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
  340. package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
  341. package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
  342. package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
  343. package/build/ext/axios/lib/helpers/spread.js +0 -1
  344. package/build/ext/axios/lib/helpers/validator.js +0 -1
  345. package/build/ext/axios/lib/utils.js +0 -1
  346. package/build/ext/style-inject/dist/style-inject.es.js +0 -1
  347. package/build/ext/tslib/tslib.es6.js +0 -1
  348. package/build/hooks/index.d.ts +0 -1
  349. package/build/hooks/useStore.d.ts +0 -2
  350. package/build/hooks/useStore.js +0 -1
  351. package/build/index.d.ts +0 -7
  352. package/build/index.js +0 -1
  353. package/build/models/data/base/index.d.ts +0 -8
  354. package/build/models/data/base/index.js +0 -1
  355. package/build/models/data/blog/category/index.d.ts +0 -12
  356. package/build/models/data/blog/category/index.js +0 -1
  357. package/build/models/data/blog/content/index.d.ts +0 -6
  358. package/build/models/data/blog/content/index.js +0 -1
  359. package/build/models/data/blog/index.d.ts +0 -27
  360. package/build/models/data/blog/index.js +0 -1
  361. package/build/models/data/blog/meta-data/index.d.ts +0 -16
  362. package/build/models/data/blog/meta-data/index.js +0 -1
  363. package/build/models/data/blog/tag/index.d.ts +0 -6
  364. package/build/models/data/blog/tag/index.js +0 -1
  365. package/build/models/data/blog/writer/index.d.ts +0 -6
  366. package/build/models/data/blog/writer/index.js +0 -1
  367. package/build/models/data/brand/index.d.ts +0 -26
  368. package/build/models/data/brand/index.js +0 -1
  369. package/build/models/data/brand/translation/index.d.ts +0 -7
  370. package/build/models/data/brand/translation/index.js +0 -1
  371. package/build/models/data/campaign-offer/index.d.ts +0 -21
  372. package/build/models/data/campaign-offer/index.js +0 -1
  373. package/build/models/data/campaign-offer/product/index.d.ts +0 -25
  374. package/build/models/data/campaign-offer/product/index.js +0 -1
  375. package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
  376. package/build/models/data/cart/available-shipping-method/index.js +0 -1
  377. package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
  378. package/build/models/data/cart/campaign-offer/index.js +0 -1
  379. package/build/models/data/cart/index.d.ts +0 -14
  380. package/build/models/data/cart/index.js +0 -1
  381. package/build/models/data/category/index.d.ts +0 -22
  382. package/build/models/data/category/index.js +0 -1
  383. package/build/models/data/category/path-item/index.d.ts +0 -14
  384. package/build/models/data/category/path-item/index.js +0 -1
  385. package/build/models/data/category/translations/index.d.ts +0 -7
  386. package/build/models/data/category/translations/index.js +0 -1
  387. package/build/models/data/checkout/country-settings-model.d.ts +0 -141
  388. package/build/models/data/checkout/country-settings-model.js +0 -1
  389. package/build/models/data/checkout/index.d.ts +0 -26
  390. package/build/models/data/checkout/index.js +0 -1
  391. package/build/models/data/checkout-settings/index.d.ts +0 -21
  392. package/build/models/data/checkout-settings/index.js +0 -1
  393. package/build/models/data/checkout-settings/option/index.d.ts +0 -6
  394. package/build/models/data/checkout-settings/option/index.js +0 -1
  395. package/build/models/data/checkout-settings/price/index.d.ts +0 -7
  396. package/build/models/data/checkout-settings/price/index.js +0 -1
  397. package/build/models/data/city/index.d.ts +0 -12
  398. package/build/models/data/city/index.js +0 -1
  399. package/build/models/data/contact-form/index.d.ts +0 -9
  400. package/build/models/data/contact-form/index.js +0 -1
  401. package/build/models/data/country/index.d.ts +0 -18
  402. package/build/models/data/country/index.js +0 -1
  403. package/build/models/data/country/location-translations/index.d.ts +0 -7
  404. package/build/models/data/customer/address/city/index.d.ts +0 -7
  405. package/build/models/data/customer/address/city/index.js +0 -1
  406. package/build/models/data/customer/address/country/index.d.ts +0 -9
  407. package/build/models/data/customer/address/country/index.js +0 -1
  408. package/build/models/data/customer/address/district/index.d.ts +0 -7
  409. package/build/models/data/customer/address/district/index.js +0 -1
  410. package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +0 -50
  411. package/build/models/data/customer/address/ikas-localized-customer-address.js +0 -1
  412. package/build/models/data/customer/address/index.d.ts +0 -40
  413. package/build/models/data/customer/address/index.js +0 -1
  414. package/build/models/data/customer/address/state/index.d.ts +0 -7
  415. package/build/models/data/customer/address/state/index.js +0 -1
  416. package/build/models/data/customer/attribute/index.d.ts +0 -18
  417. package/build/models/data/customer/attribute/index.js +0 -1
  418. package/build/models/data/customer/attribute/option/index.d.ts +0 -9
  419. package/build/models/data/customer/attribute/option/index.js +0 -1
  420. package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
  421. package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
  422. package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
  423. package/build/models/data/customer/attribute/translation/index.js +0 -1
  424. package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
  425. package/build/models/data/customer/attribute/translation/option/index.js +0 -1
  426. package/build/models/data/customer/attribute/value/index.d.ts +0 -11
  427. package/build/models/data/customer/attribute/value/index.js +0 -1
  428. package/build/models/data/customer/index.d.ts +0 -38
  429. package/build/models/data/customer/index.js +0 -1
  430. package/build/models/data/customer/review/index.d.ts +0 -22
  431. package/build/models/data/customer/review/index.js +0 -1
  432. package/build/models/data/customer/review/settings/index.d.ts +0 -6
  433. package/build/models/data/customer/review/settings/index.js +0 -1
  434. package/build/models/data/customer/review/summary/index.d.ts +0 -10
  435. package/build/models/data/customer/review/summary/index.js +0 -1
  436. package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
  437. package/build/models/data/customer/review/summary/star/index.js +0 -1
  438. package/build/models/data/district/index.d.ts +0 -12
  439. package/build/models/data/district/index.js +0 -1
  440. package/build/models/data/favorite-product/index.d.ts +0 -7
  441. package/build/models/data/favorite-product/index.js +0 -1
  442. package/build/models/data/filter-category/index.d.ts +0 -12
  443. package/build/models/data/filter-category/index.js +0 -1
  444. package/build/models/data/html-meta-data/index.d.ts +0 -28
  445. package/build/models/data/html-meta-data/index.js +0 -1
  446. package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
  447. package/build/models/data/html-meta-data/translations/index.js +0 -1
  448. package/build/models/data/image/index.d.ts +0 -10
  449. package/build/models/data/image/index.js +0 -1
  450. package/build/models/data/index.d.ts +0 -139
  451. package/build/models/data/last-viewed-product/index.d.ts +0 -6
  452. package/build/models/data/last-viewed-product/index.js +0 -1
  453. package/build/models/data/merchant-settings/index.d.ts +0 -12
  454. package/build/models/data/merchant-settings/index.js +0 -1
  455. package/build/models/data/order/address/city/index.d.ts +0 -7
  456. package/build/models/data/order/address/city/index.js +0 -1
  457. package/build/models/data/order/address/country/index.d.ts +0 -9
  458. package/build/models/data/order/address/country/index.js +0 -1
  459. package/build/models/data/order/address/district/index.d.ts +0 -7
  460. package/build/models/data/order/address/district/index.js +0 -1
  461. package/build/models/data/order/address/ikas-localized-order-address.d.ts +0 -32
  462. package/build/models/data/order/address/ikas-localized-order-address.js +0 -1
  463. package/build/models/data/order/address/index.d.ts +0 -37
  464. package/build/models/data/order/address/index.js +0 -1
  465. package/build/models/data/order/address/state/index.d.ts +0 -7
  466. package/build/models/data/order/address/state/index.js +0 -1
  467. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
  468. package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
  469. package/build/models/data/order/adjustment/index.d.ts +0 -15
  470. package/build/models/data/order/adjustment/index.js +0 -1
  471. package/build/models/data/order/customer/index.d.ts +0 -11
  472. package/build/models/data/order/customer/index.js +0 -1
  473. package/build/models/data/order/gift-line/index.d.ts +0 -6
  474. package/build/models/data/order/gift-line/index.js +0 -1
  475. package/build/models/data/order/index.d.ts +0 -69
  476. package/build/models/data/order/index.js +0 -1
  477. package/build/models/data/order/invoice/index.d.ts +0 -12
  478. package/build/models/data/order/invoice/index.js +0 -1
  479. package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
  480. package/build/models/data/order/line-item/base-unit/index.js +0 -1
  481. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
  482. package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
  483. package/build/models/data/order/line-item/discount/index.d.ts +0 -11
  484. package/build/models/data/order/line-item/discount/index.js +0 -1
  485. package/build/models/data/order/line-item/index.d.ts +0 -46
  486. package/build/models/data/order/line-item/index.js +0 -1
  487. package/build/models/data/order/line-item/option/index.d.ts +0 -10
  488. package/build/models/data/order/line-item/option/index.js +0 -1
  489. package/build/models/data/order/line-item/option/value/index.d.ts +0 -9
  490. package/build/models/data/order/line-item/option/value/index.js +0 -1
  491. package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
  492. package/build/models/data/order/line-item/variant/brand/index.js +0 -1
  493. package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
  494. package/build/models/data/order/line-item/variant/category/index.js +0 -1
  495. package/build/models/data/order/line-item/variant/index.d.ts +0 -30
  496. package/build/models/data/order/line-item/variant/index.js +0 -1
  497. package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
  498. package/build/models/data/order/line-item/variant/price/index.js +0 -1
  499. package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
  500. package/build/models/data/order/line-item/variant/unit/index.js +0 -1
  501. package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
  502. package/build/models/data/order/line-item/variant/value/index.js +0 -1
  503. package/build/models/data/order/package/index.d.ts +0 -16
  504. package/build/models/data/order/package/index.js +0 -1
  505. package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
  506. package/build/models/data/order/package/tracking-info/index.js +0 -1
  507. package/build/models/data/order/payment-method/index.d.ts +0 -9
  508. package/build/models/data/order/payment-method/index.js +0 -1
  509. package/build/models/data/order/refund/index.d.ts +0 -7
  510. package/build/models/data/order/refund/index.js +0 -1
  511. package/build/models/data/order/refund/line-item/index.d.ts +0 -6
  512. package/build/models/data/order/refund/line-item/index.js +0 -1
  513. package/build/models/data/order/refund/settings/index.d.ts +0 -7
  514. package/build/models/data/order/refund/settings/index.js +0 -1
  515. package/build/models/data/order/shipping-line/index.d.ts +0 -12
  516. package/build/models/data/order/shipping-line/index.js +0 -1
  517. package/build/models/data/order/tax-line/index.d.ts +0 -6
  518. package/build/models/data/order/tax-line/index.js +0 -1
  519. package/build/models/data/order/transaction/error/index.d.ts +0 -7
  520. package/build/models/data/order/transaction/error/index.js +0 -1
  521. package/build/models/data/order/transaction/index.d.ts +0 -26
  522. package/build/models/data/order/transaction/index.js +0 -1
  523. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
  524. package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
  525. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
  526. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
  527. package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
  528. package/build/models/data/payment-gateway/additional-price/index.js +0 -1
  529. package/build/models/data/payment-gateway/index.d.ts +0 -31
  530. package/build/models/data/payment-gateway/index.js +0 -1
  531. package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
  532. package/build/models/data/payment-gateway/settings/index.js +0 -1
  533. package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
  534. package/build/models/data/payment-gateway/translation/index.js +0 -1
  535. package/build/models/data/product/attribute/index.d.ts +0 -15
  536. package/build/models/data/product/attribute/index.js +0 -1
  537. package/build/models/data/product/attribute/option/index.d.ts +0 -6
  538. package/build/models/data/product/attribute/option/index.js +0 -1
  539. package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
  540. package/build/models/data/product/attribute/table-cell/index.js +0 -1
  541. package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
  542. package/build/models/data/product/attribute/table-template/index.js +0 -1
  543. package/build/models/data/product/attribute/translation/index.d.ts +0 -13
  544. package/build/models/data/product/attribute/translation/index.js +0 -1
  545. package/build/models/data/product/attribute-value/index.d.ts +0 -28
  546. package/build/models/data/product/attribute-value/index.js +0 -1
  547. package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
  548. package/build/models/data/product/back-in-stock-settings/index.js +0 -1
  549. package/build/models/data/product/base-unit/index.d.ts +0 -12
  550. package/build/models/data/product/base-unit/index.js +0 -1
  551. package/build/models/data/product/campaign/data/index.d.ts +0 -27
  552. package/build/models/data/product/campaign/data/index.js +0 -1
  553. package/build/models/data/product/campaign/filter/index.d.ts +0 -7
  554. package/build/models/data/product/campaign/filter/index.js +0 -1
  555. package/build/models/data/product/campaign/index.d.ts +0 -7
  556. package/build/models/data/product/campaign/index.js +0 -1
  557. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
  558. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
  559. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
  560. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
  561. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
  562. package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
  563. package/build/models/data/product/filter/index.d.ts +0 -82
  564. package/build/models/data/product/filter/index.js +0 -1
  565. package/build/models/data/product/image/index.d.ts +0 -10
  566. package/build/models/data/product/image/index.js +0 -1
  567. package/build/models/data/product/index.d.ts +0 -76
  568. package/build/models/data/product/index.js +0 -1
  569. package/build/models/data/product/option-set/index.d.ts +0 -29
  570. package/build/models/data/product/option-set/index.js +0 -1
  571. package/build/models/data/product/option-set/option/index.d.ts +0 -70
  572. package/build/models/data/product/option-set/option/index.js +0 -1
  573. package/build/models/data/product/star/index.d.ts +0 -6
  574. package/build/models/data/product/star/index.js +0 -1
  575. package/build/models/data/product/stock-location/index.d.ts +0 -8
  576. package/build/models/data/product/stock-location/index.js +0 -1
  577. package/build/models/data/product/tag/index.d.ts +0 -6
  578. package/build/models/data/product/tag/index.js +0 -1
  579. package/build/models/data/product/variant/index.d.ts +0 -31
  580. package/build/models/data/product/variant/index.js +0 -1
  581. package/build/models/data/product/variant/price/index.d.ts +0 -19
  582. package/build/models/data/product/variant/price/index.js +0 -1
  583. package/build/models/data/product/variant/unit/index.d.ts +0 -6
  584. package/build/models/data/product/variant/unit/index.js +0 -1
  585. package/build/models/data/product/variant-type/index.d.ts +0 -8
  586. package/build/models/data/product/variant-type/index.js +0 -1
  587. package/build/models/data/raffle/index.d.ts +0 -63
  588. package/build/models/data/raffle/index.js +0 -1
  589. package/build/models/data/sales-channel/index.d.ts +0 -19
  590. package/build/models/data/sales-channel/index.js +0 -1
  591. package/build/models/data/state/index.d.ts +0 -11
  592. package/build/models/data/state/index.js +0 -1
  593. package/build/models/data/state/location-translations/index.d.ts +0 -7
  594. package/build/models/data/stock-location/address/city/index.d.ts +0 -7
  595. package/build/models/data/stock-location/address/city/index.js +0 -1
  596. package/build/models/data/stock-location/address/country/index.d.ts +0 -7
  597. package/build/models/data/stock-location/address/country/index.js +0 -1
  598. package/build/models/data/stock-location/address/district/index.d.ts +0 -7
  599. package/build/models/data/stock-location/address/district/index.js +0 -1
  600. package/build/models/data/stock-location/address/index.d.ts +0 -15
  601. package/build/models/data/stock-location/address/index.js +0 -1
  602. package/build/models/data/stock-location/address/state/index.d.ts +0 -7
  603. package/build/models/data/stock-location/address/state/index.js +0 -1
  604. package/build/models/data/stock-location/available/index.d.ts +0 -10
  605. package/build/models/data/stock-location/available/index.js +0 -1
  606. package/build/models/data/stock-location/index.d.ts +0 -14
  607. package/build/models/data/stock-location/index.js +0 -1
  608. package/build/models/data/storefront/domain/index.d.ts +0 -9
  609. package/build/models/data/storefront/domain/index.js +0 -1
  610. package/build/models/data/storefront/index.d.ts +0 -30
  611. package/build/models/data/storefront/index.js +0 -1
  612. package/build/models/data/storefront/localization/index.d.ts +0 -8
  613. package/build/models/data/storefront/localization/index.js +0 -1
  614. package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
  615. package/build/models/data/storefront/meta-templates/index.js +0 -1
  616. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
  617. package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
  618. package/build/models/data/storefront/routing/index.d.ts +0 -14
  619. package/build/models/data/storefront/routing/index.js +0 -1
  620. package/build/models/data/storefront/theme/index.d.ts +0 -10
  621. package/build/models/data/storefront/theme/index.js +0 -1
  622. package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
  623. package/build/models/data/storefront/theme-localization/index.js +0 -1
  624. package/build/models/data/theme-json/component/index.d.ts +0 -23
  625. package/build/models/data/theme-json/component/index.js +0 -1
  626. package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
  627. package/build/models/data/theme-json/component/prop/index.js +0 -1
  628. package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
  629. package/build/models/data/theme-json/custom-data/index.js +0 -1
  630. package/build/models/data/theme-json/index.d.ts +0 -16
  631. package/build/models/data/theme-json/index.js +0 -1
  632. package/build/models/data/theme-json/page/component/index.d.ts +0 -7
  633. package/build/models/data/theme-json/page/component/index.js +0 -1
  634. package/build/models/data/theme-json/page/index.d.ts +0 -21
  635. package/build/models/data/theme-json/page/index.js +0 -1
  636. package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
  637. package/build/models/data/theme-json/settings/color/index.js +0 -1
  638. package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
  639. package/build/models/data/theme-json/settings/favicon/index.js +0 -1
  640. package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
  641. package/build/models/data/theme-json/settings/font-family/index.js +0 -1
  642. package/build/models/data/theme-json/settings/index.d.ts +0 -13
  643. package/build/models/data/theme-json/settings/index.js +0 -1
  644. package/build/models/data/variant-type/index.d.ts +0 -13
  645. package/build/models/data/variant-type/index.js +0 -1
  646. package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
  647. package/build/models/data/variant-type/variant-value/index.js +0 -1
  648. package/build/models/index.d.ts +0 -2
  649. package/build/models/ui/blog-category-list/index.d.ts +0 -51
  650. package/build/models/ui/blog-category-list/index.js +0 -1
  651. package/build/models/ui/blog-list/index.d.ts +0 -55
  652. package/build/models/ui/blog-list/index.js +0 -1
  653. package/build/models/ui/brand-list/index.d.ts +0 -61
  654. package/build/models/ui/brand-list/index.js +0 -1
  655. package/build/models/ui/category-list/index.d.ts +0 -61
  656. package/build/models/ui/category-list/index.js +0 -1
  657. package/build/models/ui/component-renderer/index.d.ts +0 -7
  658. package/build/models/ui/component-renderer/index.js +0 -1
  659. package/build/models/ui/customer-review-list/index.d.ts +0 -43
  660. package/build/models/ui/customer-review-list/index.js +0 -1
  661. package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
  662. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  663. package/build/models/ui/index.d.ts +0 -27
  664. package/build/models/ui/navigation-link/index.d.ts +0 -8
  665. package/build/models/ui/navigation-link/index.js +0 -1
  666. package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
  667. package/build/models/ui/product-attribute-detail/index.js +0 -1
  668. package/build/models/ui/product-attribute-list/index.d.ts +0 -8
  669. package/build/models/ui/product-attribute-list/index.js +0 -1
  670. package/build/models/ui/product-list/index.d.ts +0 -143
  671. package/build/models/ui/product-list/index.js +0 -1
  672. package/build/models/ui/raffle-list/index.d.ts +0 -53
  673. package/build/models/ui/raffle-list/index.js +0 -1
  674. package/build/models/ui/validator/form/account-info.d.ts +0 -39
  675. package/build/models/ui/validator/form/account-info.js +0 -1
  676. package/build/models/ui/validator/form/address.d.ts +0 -75
  677. package/build/models/ui/validator/form/address.js +0 -1
  678. package/build/models/ui/validator/form/contact-form.d.ts +0 -42
  679. package/build/models/ui/validator/form/contact-form.js +0 -1
  680. package/build/models/ui/validator/form/customer-review.d.ts +0 -34
  681. package/build/models/ui/validator/form/customer-review.js +0 -1
  682. package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
  683. package/build/models/ui/validator/form/forgot-password.js +0 -1
  684. package/build/models/ui/validator/form/ikas-address.d.ts +0 -145
  685. package/build/models/ui/validator/form/ikas-address.js +0 -1
  686. package/build/models/ui/validator/form/login.d.ts +0 -32
  687. package/build/models/ui/validator/form/login.js +0 -1
  688. package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
  689. package/build/models/ui/validator/form/raffle-form.js +0 -1
  690. package/build/models/ui/validator/form/recover-password.d.ts +0 -33
  691. package/build/models/ui/validator/form/recover-password.js +0 -1
  692. package/build/models/ui/validator/form/register.d.ts +0 -73
  693. package/build/models/ui/validator/form/register.js +0 -1
  694. package/build/models/ui/validator/index.d.ts +0 -27
  695. package/build/models/ui/validator/index.js +0 -1
  696. package/build/models/ui/validator/rules/index.d.ts +0 -101
  697. package/build/models/ui/validator/rules/index.js +0 -1
  698. package/build/page-data-init/index.d.ts +0 -41
  699. package/build/page-data-init/index.js +0 -1
  700. package/build/pages/404.d.ts +0 -4
  701. package/build/pages/404.js +0 -1
  702. package/build/pages/[slug]/index.d.ts +0 -4
  703. package/build/pages/_slug_/index.js +0 -1
  704. package/build/pages/account/addresses.d.ts +0 -4
  705. package/build/pages/account/addresses.js +0 -1
  706. package/build/pages/account/favorite-products.d.ts +0 -4
  707. package/build/pages/account/favorite-products.js +0 -1
  708. package/build/pages/account/forgot-password.d.ts +0 -4
  709. package/build/pages/account/forgot-password.js +0 -1
  710. package/build/pages/account/index.d.ts +0 -4
  711. package/build/pages/account/index.js +0 -1
  712. package/build/pages/account/login.d.ts +0 -4
  713. package/build/pages/account/login.js +0 -1
  714. package/build/pages/account/orders/[id].d.ts +0 -4
  715. package/build/pages/account/orders/_id_.js +0 -1
  716. package/build/pages/account/orders/index.d.ts +0 -4
  717. package/build/pages/account/orders/index.js +0 -1
  718. package/build/pages/account/raffles.d.ts +0 -4
  719. package/build/pages/account/raffles.js +0 -1
  720. package/build/pages/account/recover-password.d.ts +0 -4
  721. package/build/pages/account/recover-password.js +0 -1
  722. package/build/pages/account/register.d.ts +0 -4
  723. package/build/pages/account/register.js +0 -1
  724. package/build/pages/blog/[slug].d.ts +0 -4
  725. package/build/pages/blog/_slug_.js +0 -1
  726. package/build/pages/blog/index.d.ts +0 -4
  727. package/build/pages/blog/index.js +0 -1
  728. package/build/pages/cart.d.ts +0 -4
  729. package/build/pages/cart.js +0 -1
  730. package/build/pages/checkout.d.ts +0 -18
  731. package/build/pages/checkout.js +0 -1
  732. package/build/pages/editor.d.ts +0 -10
  733. package/build/pages/editor.js +0 -1
  734. package/build/pages/home.d.ts +0 -4
  735. package/build/pages/home.js +0 -1
  736. package/build/pages/index.d.ts +0 -22
  737. package/build/pages/pages/[slug].d.ts +0 -4
  738. package/build/pages/pages/_slug_.js +0 -1
  739. package/build/pages/raffle/[slug].d.ts +0 -4
  740. package/build/pages/raffle/_slug_.js +0 -1
  741. package/build/pages/raffle/index.d.ts +0 -4
  742. package/build/pages/raffle/index.js +0 -1
  743. package/build/pages/search.d.ts +0 -4
  744. package/build/pages/search.js +0 -1
  745. package/build/store/base.d.ts +0 -40
  746. package/build/store/base.js +0 -1
  747. package/build/store/blog/index.d.ts +0 -26
  748. package/build/store/blog/index.js +0 -1
  749. package/build/store/brand/index.d.ts +0 -12
  750. package/build/store/brand/index.js +0 -1
  751. package/build/store/cart/api.d.ts +0 -10
  752. package/build/store/cart/api.js +0 -1
  753. package/build/store/cart/index.d.ts +0 -40
  754. package/build/store/cart/index.js +0 -1
  755. package/build/store/category/index.d.ts +0 -12
  756. package/build/store/category/index.js +0 -1
  757. package/build/store/checkout/index.d.ts +0 -16
  758. package/build/store/checkout/index.js +0 -1
  759. package/build/store/customer/api.d.ts +0 -54
  760. package/build/store/customer/api.js +0 -1
  761. package/build/store/customer/index.d.ts +0 -84
  762. package/build/store/customer/index.js +0 -1
  763. package/build/store/html-meta-data/index.d.ts +0 -6
  764. package/build/store/html-meta-data/index.js +0 -1
  765. package/build/store/index.d.ts +0 -4
  766. package/build/store/location/index.d.ts +0 -9
  767. package/build/store/location/index.js +0 -1
  768. package/build/store/merchant/index.d.ts +0 -6
  769. package/build/store/product/index.d.ts +0 -47
  770. package/build/store/product/index.js +0 -1
  771. package/build/store/raffle/index.d.ts +0 -15
  772. package/build/store/raffle/index.js +0 -1
  773. package/build/store/storefront/index.d.ts +0 -5
  774. package/build/utils/constants.d.ts +0 -3
  775. package/build/utils/constants.js +0 -1
  776. package/build/utils/currency.d.ts +0 -7
  777. package/build/utils/currency.js +0 -1
  778. package/build/utils/google-fonts.d.ts +0 -2
  779. package/build/utils/google-fonts.js +0 -1
  780. package/build/utils/helper.d.ts +0 -5
  781. package/build/utils/helper.js +0 -1
  782. package/build/utils/i18n.d.ts +0 -11
  783. package/build/utils/i18n.js +0 -1
  784. package/build/utils/index.d.ts +0 -3
@@ -1,143 +0,0 @@
1
- import { NextRouter } from "next/router.js";
2
- import { IkasBrand, IkasProduct, IkasProductFilter, IkasFilterCategory, IkasThemeJsonPageType, IkasCategory } from "../../../models/data";
3
- import { IkasProductListPropValue, IkasRelatedProductProps, IkasViewedTogetherProductProps } 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 _viewedTogetherProductData?;
23
- private pageSpecificData?;
24
- private _recommendFor?;
25
- private _isLoading;
26
- private _fetchRequestTime;
27
- private router?;
28
- constructor(data: IkasProductListParams | IkasProductList, router?: NextRouter);
29
- get sort(): IkasProductListSortType;
30
- get limit(): number;
31
- get pageType(): IkasThemeJsonPageType;
32
- get page(): number;
33
- get minPage(): number;
34
- get count(): number;
35
- get pageCount(): number;
36
- get searchKeyword(): string;
37
- set searchKeyword(value: string);
38
- get isInitialized(): boolean;
39
- get isFilterable(): boolean;
40
- get isFiltered(): boolean | undefined;
41
- get isStatic(): boolean;
42
- get isDiscounted(): boolean;
43
- get isRecommended(): boolean;
44
- get isLastViewed(): boolean;
45
- get isRelatedProducts(): boolean;
46
- get isViewedTogetherProducts(): boolean;
47
- get isSearch(): boolean;
48
- get hasPrev(): boolean;
49
- get hasNext(): boolean;
50
- get isLoading(): boolean;
51
- get filterQueryParams(): string;
52
- get filterCategories(): IkasFilterCategory[] | undefined;
53
- get hasAppliedfilter(): boolean | undefined;
54
- get isFeaturedSortEnabled(): boolean;
55
- private setIsFilteredForProducts;
56
- private setPageSpecificSort;
57
- private getSortParams;
58
- private searchProducts;
59
- private getFilters;
60
- private applyQueryParamFilters;
61
- private applyFacets;
62
- private applyFilters;
63
- clearFilters(): void;
64
- private getInitial;
65
- getPrev: () => Promise<void>;
66
- getNext: () => Promise<void>;
67
- getPage: (page: number) => Promise<void>;
68
- setSortType(sortType: IkasProductListSortType): Promise<void>;
69
- onFilterCategoryClick(filterCategory: IkasFilterCategory, disableRoute?: boolean): Promise<void>;
70
- toJSON(): {
71
- data: IkasProduct[];
72
- type: IkasProductListType;
73
- pageType: IkasThemeJsonPageType;
74
- sort: IkasProductListSortType;
75
- limit: number;
76
- page: number;
77
- count: number;
78
- searchKeyword: string;
79
- initialized: boolean;
80
- minPage: number | null | undefined;
81
- filterBrandId: string | null | undefined;
82
- filterCategoryId: string | null | undefined;
83
- filterCategories: IkasFilterCategory[] | null | undefined;
84
- filters: IkasProductFilter[] | null | undefined;
85
- recommendFor: string | null | undefined;
86
- productListPropValue: IkasProductListPropValue;
87
- pageSpecificData: IkasCategory | IkasBrand | null | undefined;
88
- };
89
- setVisibleInfiniteScrollPage: (page: number) => void;
90
- private restoreInfiniteScrollPage;
91
- private getQueryParams;
92
- private isBrowser;
93
- private waitForCustomerStoreInit;
94
- private handleListingEvent;
95
- private searchDebouncer;
96
- private searchAnalyticsDebouncer;
97
- }
98
- export declare type IkasProductListParams = {
99
- data?: IkasProduct[];
100
- type?: IkasProductListType;
101
- pageType: IkasThemeJsonPageType;
102
- sort?: IkasProductListSortType;
103
- limit?: number;
104
- page?: number;
105
- count?: number;
106
- searchKeyword?: string;
107
- initialized?: boolean;
108
- minPage?: number;
109
- filterBrandId?: string;
110
- filterCategoryId?: string;
111
- filters?: IkasProductFilter[];
112
- filterCategories?: IkasFilterCategory[];
113
- recommendFor?: string;
114
- productListPropValue: IkasProductListPropValue;
115
- pageSpecificData?: IkasCategory | IkasBrand | null;
116
- relatedProductData?: IkasRelatedProductProps | null;
117
- viewedTogetherProductData?: IkasViewedTogetherProductProps | null;
118
- };
119
- export declare enum IkasProductListType {
120
- ALL = "ALL",
121
- STATIC = "STATIC",
122
- DISCOUNTED = "DISCOUNTED",
123
- RECOMMENDED = "RECOMMENDED",
124
- CATEGORY = "CATEGORY",
125
- SEARCH = "SEARCH",
126
- LAST_VIEWED = "LAST_VIEWED",
127
- RELATED_PRODUCTS = "RELATED_PRODUCTS",
128
- VIEWED_TOGETHER = "VIEWED_TOGETHER"
129
- }
130
- export declare enum IkasProductListSortType {
131
- INCREASING_PRICE = "INCREASING_PRICE",
132
- DECREASING_PRICE = "DECREASING_PRICE",
133
- LAST_ADDED = "LAST_ADDED",
134
- FIRST_ADDED = "FIRST_ADDED",
135
- INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
136
- DECRASING_DISCOUNT = "DECRASING_DISCOUNT",
137
- FEATURED = "FEATURED",
138
- DEFAULT = "DEFAULT"
139
- }
140
- export declare enum IkasRelatedProductsType {
141
- CATEGORY = "CATEGORY",
142
- BRAND = "BRAND"
143
- }
@@ -1 +0,0 @@
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 o,IkasThemeJsonPageType as a,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/country-settings-model.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/address/ikas-localized-customer-address.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/option/value/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/transaction/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/stock-location/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 g,GetSuggestedProductsMethodEnum as m}from"@ikas/storefront-api";import{IkasStorefrontConfig as v}from"@ikas/storefront-config";import{Analytics as _}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/ikas-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 y}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import"lodash/get";var I,E,P,S=function(){function P(o,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._viewedTogetherProductData=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(),[a.CATEGORY,a.BRAND,a.SEARCH].includes(this._pageType)?(t&&this.isBrowser()&&!this.isSearch&&!v.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,o,a,n,d,u,c,p,h,f,g,m,v,_,I;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,14,15,16]),o=s?this._page:1,a=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,d=!1,this.isStatic?(o=void 0,a=200,[3,10]):[3,4]);case 4:return this.isDiscounted?(o=1,a=10,[3,10]):[3,5];case 5:return this.isRecommended?(o=1,a=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,y.getInstance().customerStore.getLastViewedProducts()];case 8:return(u=e.sent())&&u.length?(n=u.map((function(t){return t.productId})),d=y.getInstance().customerStore.useLastViewedProductResponse,[3,10]):[2];case 9:return[2];case 10:return d?(p=y.getInstance().customerStore._savedLastViewedProductsResponse,[3,13]):[3,11];case 11:return[4,this.searchProducts(o||1,a||10,n)];case 12:p=e.sent(),e.label=13;case 13:return(c=p)&&this._fetchRequestTime===t?(h=[],!d&&this.isLastViewed&&y.getInstance().customerStore.setSavedLastViewedProductsResponse(c),this.isStatic||this.isLastViewed?(f=this.isStatic?this._productListPropValue.productIds:y.getInstance().customerStore._lastViewedProducts,h=(null==f?void 0:f.map((function(t){var e,r,s=null===(r=null===(e=c.data)||void 0===e?void 0:e.data)||void 0===r?void 0:r.find((function(e){return e.id===t.productId})),o=null==s?void 0:s.variants.find((function(e){return e.id===t.variantId}));if((null==o?void 0:o.isActive)||(o=null==s?void 0:s.variants.find((function(t){return t.isActive}))),s&&o)return new l(i(i({},s),{selectedVariantValues:o.variantValues}))})).filter((function(t){return!!t})))||[]):h=(null===(v=null===(m=c.data)||void 0===m?void 0:m.data)||void 0===v?void 0:v.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===(_=c.data)||void 0===_?void 0:_.facets),this.data=h,this._count=(null===(I=c.data)||void 0===I?void 0:I.count)||0,this._initialized=!0,this._page=o||1,this._minPage=this.page,this.setIsFilteredForProducts(),s||(this._infiniteScrollPage=null),this.handleListingEvent(),[2,!0]):[2];case 14:return g=e.sent(),console.log(g),[3,16];case 15:return t===this._fetchRequestTime&&(this._isLoading=!1),[7];case 16:return[2]}}))}))},this.getPrev=function(){return t(c,void 0,void 0,(function(){var t,r,s,o,a,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===(a=r.data)||void 0===a?void 0:a.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,this.setIsFilteredForProducts(),[3,5]):[2];case 3:return o=e.sent(),console.log(o),[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,o,a,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===(a=null===(o=t.data)||void 0===o?void 0:o.data)||void 0===a?void 0:a.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,this.setIsFilteredForProducts(),[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,o,a,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===(a=t.data)||void 0===a?void 0:a.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,this.setIsFilteredForProducts(),[3,5]):[2];case 3:return o=e.sent(),console.log(o),[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,v.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(){_.search(c._searchKeyword)}),1e3);var p=o,h=o;if(this.data=o.data?o.data.map((function(t){return new l(t)})):[],this._type=p.type||h._type||p.productListPropValue.productListType||h._productListPropValue.productListType||I.ALL,this._pageType=o.pageType,this._sort=o.sort||o.productListPropValue.initialSort||E.LAST_ADDED,this._limit=o.limit||p.productListPropValue.initialLimit||h._productListPropValue.initialLimit||20,this._page=o.page||1,this._minPage=o.minPage||null,this._count=o.count||0,this._searchKeyword=o.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._viewedTogetherProductData=p.viewedTogetherProductData||h._viewedTogetherProductData||null,this._recommendFor=p.recommendFor||h._recommendFor,this.filters=o.filters?o.filters.map((function(t){return new u(t,c)})):null,this._filterCategories=o.filterCategories?o.filterCategories.map((function(t){return new d(t)})):null,this.pageSpecificData=p.pageSpecificData||h.pageSpecificData||null,this.router=n,r(this,{router:!1}),this.setPageSpecificSort(),this.setIsFilteredForProducts(),this.isBrowser())if(this.restoreInfiniteScrollPage(),location.search&&(this.isFilterable||this._type===I.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(P.prototype,"sort",{get:function(){return this._sort},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageType",{get:function(){return this._pageType},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"minPage",{get:function(){return this._minPage||1},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(P.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(P.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isFilterable",{get:function(){return this._type===I.ALL||this._type===I.CATEGORY},enumerable:!1,configurable:!0}),Object.defineProperty(P.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!==a.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(P.prototype,"isStatic",{get:function(){return this._type===I.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isDiscounted",{get:function(){return this._type===I.DISCOUNTED},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isRecommended",{get:function(){return this._type===I.RECOMMENDED},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isLastViewed",{get:function(){return this._type===I.LAST_VIEWED},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isRelatedProducts",{get:function(){return this._type===I.RELATED_PRODUCTS},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isViewedTogetherProducts",{get:function(){return this._type===I.VIEWED_TOGETHER},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isSearch",{get:function(){return this._type===I.SEARCH},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasPrev",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasNext",{get:function(){return!(this.isStatic||this.isDiscounted||this.isRecommended)&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"filterQueryParams",{get:function(){var t,e,i,r,s=this,o={};if(null===(t=this.filters)||void 0===t||t.forEach((function(t){t.keyList.length&&(o[t.key]=t.keyList)})),this._searchKeyword&&(o.s=this._searchKeyword),this._infiniteScrollPage&&(o.page=this._infiniteScrollPage),this._pageType!==a.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))o.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&&(o.c=d)}}return h.stringify(o,{arrayFormat:"comma"})},enumerable:!1,configurable:!0}),Object.defineProperty(P.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(P.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(P.prototype,"isFeaturedSortEnabled",{get:function(){var t;return(null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)===o.MANUALLY&&[I.ALL,I.CATEGORY].includes(this._type)},enumerable:!1,configurable:!0}),P.prototype.setIsFilteredForProducts=function(){var t=this;this.data.forEach((function(e){return e.isFiltered=t.isFiltered||!1}))},P.prototype.setPageSpecificSort=function(){var t;if((null===(t=this.pageSpecificData)||void 0===t?void 0:t.orderType)&&[I.ALL].includes(this._type))switch(this.pageSpecificData.orderType){case o.HIGHEST_DISCOUNT_RATIO:this._sort=E.DECRASING_DISCOUNT;break;case o.LOWEST_DISCOUNT_RATIO:this._sort=E.INCREASING_DISCOUNT;break;case o.HIGHEST_PRICE:this._sort=E.DECREASING_PRICE;break;case o.LOWEST_PRICE:this._sort=E.INCREASING_PRICE;break;case o.NEWEST:this._sort=E.LAST_ADDED;break;case o.OLDEST:this._sort=E.FIRST_ADDED;break;case o.MANUALLY:this._sort=E.FEATURED}},P.prototype.getSortParams=function(){var t,e;switch(this._sort){case E.INCREASING_PRICE:t=f.ASC,e=g.PRICE;break;case E.DECREASING_PRICE:t=f.DESC,e=g.PRICE;break;case E.FIRST_ADDED:t=f.ASC,e=g.CREATED_AT;break;case E.LAST_ADDED:t=f.DESC,e=g.CREATED_AT;break;case E.INCREASING_DISCOUNT:t=f.ASC,e=g.DISCOUNT_RATIO;break;case E.DECRASING_DISCOUNT:t=f.DESC,e=g.DISCOUNT_RATIO;break;case E.FEATURED:if(this.isSearch)return;t=f.ASC,e=g.MANUAL_SORT;break;case E.DEFAULT:t=void 0,e=void 0}if(t&&e)return{direction:t,type:e}},P.prototype.searchProducts=function(i,r,s){var o,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===(o=this.filters)||void 0===o||o.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.getSuggestedProducts({priceListId:v.getPriceListId(),salesChannelId:v.getSalesChannelId(),productId:this._relatedProductData.productId,brandIds:this._relatedProductData.brandIds,categoryIds:this._relatedProductData.categoryIds,locale:v.getCurrentLocale()})]:[3,2];case 1:case 3:case 5:return[2,e.sent()];case 2:return this.isViewedTogetherProducts&&this._viewedTogetherProductData?[4,p.getSuggestedProducts({priceListId:v.getPriceListId(),salesChannelId:v.getSalesChannelId(),method:m.VIEWED_TOGETHER,productIds:this._viewedTogetherProductData.productIds,locale:v.getCurrentLocale()})]:[3,4];case 4: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===a.BRAND&&this._type!==I.SEARCH?this._filterBrandId:void 0,categoryIdList:h&&h.length?h:this._filterCategoryId?[this._filterCategoryId]:void 0,priceListId:v.getPriceListId(),salesChannelId:v.getSalesChannelId(),query:this._searchKeyword,order:this._type===I.SEARCH?[]:f?[f]:[],showStockOption:v.getStockPreference()||n.SHOW_ALL}})]}}))}))},P.prototype.getFilters=function(){var i,r,s;return t(this,void 0,void 0,(function(){var t,o,n=this;return e(this,(function(e){switch(e.label){case 0:return[4,p.getProductFilterData({categoryId:this._filterCategoryId?this._filterCategoryId:void 0,locale:v.getCurrentLocale()})];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!==a.CATEGORY&&this._filterCategoryId&&(o=null===(s=this._filterCategories)||void 0===s?void 0:s.find((function(t){return t.id===n._filterCategoryId})))&&(o.isSelected=!0),this.filters&&this.filters.sort((function(t,e){return t.order>e.order?1:-1})),[2]}}))}))},P.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!==a.CATEGORY){var s=null==t?void 0:t.get("c"),o=null==s?void 0:s.split(",");o&&o.length&&(null===(e=this.filterCategories)||void 0===e||e.forEach((function(t){t.isSelected=o.some((function(e){return e===t.slug}))})))}}catch(t){console.log(t)}},P.prototype.applyFacets=function(t){var e,i;null===(e=this.filters)||void 0===e||e.forEach((function(e){var i,r,s,o=null==t?void 0:t.find((function(t){return t.id===e.id}));o?null===(i=e.values)||void 0===i||i.forEach((function(t){var i=o.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})))},P.prototype.clearFilters=function(){var t,e;null===(t=this.filters)||void 0===t||t.forEach((function(t){return t.clear()})),this._searchKeyword="",this._pageType!==a.CATEGORY&&(this._filterCategoryId=void 0),null===(e=this._filterCategories)||void 0===e||e.forEach((function(t){return t.isSelected=!1})),this.applyFilters()},P.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]}}))}))},P.prototype.onFilterCategoryClick=function(i,r){var s,o;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:v.getIsEditor()||null===(o=y.getInstance().router)||void 0===o||o.push(i.href+(this.filterQueryParams?"?"+this.filterQueryParams:"")),t.label=3;case 3:return[2]}}))}))},P.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}},P.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)}},P.prototype.getQueryParams=function(){if(this.isBrowser())return new URLSearchParams(location.search)},P.prototype.isBrowser=function(){return"undefined"!=typeof window},P.prototype.waitForCustomerStoreInit=function(){return new Promise((function(t){var e=setInterval((function(){y.getInstance().customerStore.initialized&&(clearInterval(e),t(null))}),1e3)}))},P.prototype.handleListingEvent=function(){this.searchKeyword&&this.data.length?_.viewSearchResults(this._searchKeyword,this.data):this.data.length&&this._type===I.ALL&&_.viewListing(this.data)},P}();!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",t.VIEWED_TOGETHER="VIEWED_TOGETHER"}(I||(I={})),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"}(E||(E={})),function(t){t.CATEGORY="CATEGORY",t.BRAND="BRAND"}(P||(P={}));export{S as IkasProductList,E as IkasProductListSortType,I as IkasProductListType,P as IkasRelatedProductsType};
@@ -1,53 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{populateRaffleProducts as e}from"@ikas/storefront-providers";import{makeAutoObservable as a,runInAction as n}from"mobx";import r from"../../../store/raffle/index.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/country-settings-model.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/address/ikas-localized-customer-address.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/option/value/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/transaction/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/stock-location/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{IkasRaffle as o}from"../../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 s=function(){function s(e){void 0===e&&(e={});var r=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getPrev=function(){return t(r,void 0,void 0,(function(){var t,e,a,n,r,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.getRaffleList(t,this.limit)];case 2:return e=i.sent(),this.data=(null===(r=null===(n=e.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.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(r,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.getRaffleList(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(r,void 0,void 0,(function(){var t,a,r=this;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.getRaffleList(e,this.limit)];case 2:return t=i.sent(),n((function(){var i,a;r.data=(null===(i=t.data)||void 0===i?void 0:i.data)||[],r._count=(null===(a=t.data)||void 0===a?void 0:a.count)||0,r._page=e,r._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 o(t)})):[],this._limit=e.limit||20,this._page=e.page||1,this._count=e.count||0,this._initialized=e.initialized||!1,this._minPage=e.minPage||null,this._start=e.start||null,this._end=e.end||null,this._includeDeleted=e.includeDeleted||null,this._name=e.name||null,this._search=e.search||null,this._id=e.id||null,a(this)}return 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,"hasPrev",{get:function(){return!!this._minPage&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasNext",{get:function(){return 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,"minPage",{get:function(){return this._minPage||1},enumerable:!1,configurable:!0}),s.prototype.getRaffleList=function(a,n){var o;return t(this,void 0,void 0,(function(){var t;return i(this,(function(i){switch(i.label){case 0:return[4,r.listStorefrontRaffle({start:this._start?{eq:this._start}:void 0,end:this._end?{eq:this._end}:void 0,includeDeleted:this._includeDeleted||!1,name:this._name?{eq:this._name}:void 0,id:this._id?{eq:this._id}:void 0,search:this._search||void 0,pagination:{limit:n,page:a}})];case 1:return t=i.sent(),[4,e((null===(o=t.data)||void 0===o?void 0:o.data)||[])];case 2:return i.sent(),[2,t]}}))}))},s.prototype.toJSON=function(){return{data:this.data,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage}},s}();export{s as IkasRaffleList};
@@ -1,39 +0,0 @@
1
- import { PhoneRule, RequiredRule } from "../rules";
2
- import { IkasCustomer } from "../../../data";
3
- declare type AccountInfoFormPropsValidatorMessage<T> = {
4
- requiredRule: ((model: T) => string) | string;
5
- phoneRule?: ((model: T) => string) | string;
6
- };
7
- declare type AccountInfoFormProps<T> = {
8
- message: AccountInfoFormPropsValidatorMessage<T>;
9
- customer: IkasCustomer;
10
- };
11
- export declare class AccountInfoForm {
12
- private customer;
13
- private validator;
14
- private message;
15
- constructor(props: AccountInfoFormProps<IkasCustomer>);
16
- validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomer> | PhoneRule<IkasCustomer>)[];
17
- get hasError(): boolean;
18
- get email(): string | null;
19
- get firstName(): string;
20
- set firstName(value: string);
21
- get lastName(): string;
22
- set lastName(value: string);
23
- get phone(): string;
24
- set phone(value: string);
25
- get isMarketingAccepted(): boolean;
26
- set isMarketingAccepted(value: boolean);
27
- get firstNameErrorMessage(): string | undefined;
28
- get lastNameErrorMessage(): string | undefined;
29
- get phoneErrorMessage(): string | undefined;
30
- onFirstNameChange: (value: string) => void;
31
- onLastNameChange: (value: string) => void;
32
- onPhoneChange: (value: string) => void;
33
- validateAll(): Promise<boolean>;
34
- submit(): Promise<{
35
- isFormError: boolean;
36
- isSuccess: boolean;
37
- }>;
38
- }
39
- export {};
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e,__spreadArray as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as a,computed as i,action as o}from"mobx";import{Validator as s}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{PhoneRule as d,RequiredRule as m}from"../rules/index.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{IkasCustomerEmailSubscriptionStatus as u}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/country-settings-model.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/address/ikas-localized-customer-address.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/option/value/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/transaction/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/stock-location/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 p=function(){function p(t){var e=this;this.validatorRules=function(t){return void 0===t&&(t=!1),r([new m({model:e.customer,fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new m({model:e.customer,fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule})],t?[new d({model:e.customer,fieldKey:"phone",valuePath:"phone",message:e.message.phoneRule})]:[],!0)},this.onFirstNameChange=function(t){e.customer.firstName=t},this.onLastNameChange=function(t){e.customer.lastName=t},this.onPhoneChange=function(t){e.customer.phone=t||null,t||e.validator.setRules(e.validatorRules())},a(this,{firstNameErrorMessage:i,lastNameErrorMessage:i,phoneErrorMessage:i,isMarketingAccepted:i,hasError:i,firstName:i,lastName:i,phone:i,validateAll:o,submit:o}),this.customer=t.customer,this.message=t.message,this.validator=new s(this.customer,this.validatorRules())}return Object.defineProperty(p.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"email",{get:function(){return this.customer.email},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"firstName",{get:function(){return this.customer.firstName},set:function(t){this.customer.firstName=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"lastName",{get:function(){return this.customer.lastName||""},set:function(t){this.customer.lastName=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"phone",{get:function(){return this.customer.phone||""},set:function(t){this.customer.phone=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isMarketingAccepted",{get:function(){return this.customer.isSubscribed},set:function(t){this.customer.subscriptionStatus=t?u.SUBSCRIBED:u.NOT_SUBSCRIBED},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"firstNameErrorMessage",{get:function(){var t,e;return null===(e=null===(t=this.validator.results)||void 0===t?void 0:t.firstName)||void 0===e?void 0:e.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"lastNameErrorMessage",{get:function(){var t,e;return null===(e=null===(t=this.validator.results)||void 0===t?void 0:t.lastName)||void 0===e?void 0:e.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"phoneErrorMessage",{get:function(){var t,e;return null===(e=null===(t=this.validator.results)||void 0===t?void 0:t.phone)||void 0===e?void 0:e.errorMessage},enumerable:!1,configurable:!0}),p.prototype.validateAll=function(){return this.validator.validateAll()},p.prototype.submit=function(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return t={isFormError:!1,isSuccess:!1},this.phone&&this.validator.setRules(this.validatorRules(!0)),[4,this.validateAll()];case 1:if(e.sent())return t.isFormError=!0,[2,t];e.label=2;case 2:return e.trys.push([2,4,,5]),[4,n.getInstance().customerStore.saveCustomer(this.customer)];case 3:return e.sent()&&(t.isSuccess=!0),[2,t];case 4:return e.sent(),[2,t];case 5:return[2]}}))}))},p}();export{p as AccountInfoForm};
@@ -1,75 +0,0 @@
1
- import { PhoneRule, RequiredRule } from "../rules";
2
- import { IkasCity, IkasCountry, IkasCustomerAddress, IkasDistrict, IkasState } from "../../../data";
3
- declare type AddressFormPropsValidatorMessage<T> = {
4
- requiredRule: ((model: T) => string) | string;
5
- phoneRule?: ((model: T) => string) | string;
6
- };
7
- declare type AddressFormProps<T> = {
8
- message: AddressFormPropsValidatorMessage<T>;
9
- address?: IkasCustomerAddress;
10
- };
11
- export declare class AddressForm {
12
- address: IkasCustomerAddress;
13
- countries: IkasCountry[];
14
- states: IkasState[];
15
- cities: IkasCity[];
16
- districts: IkasDistrict[];
17
- private _isCountriesPending;
18
- private _isStatesPending;
19
- private _isCitiesPending;
20
- private _isDistrictsPending;
21
- private validator;
22
- private message;
23
- constructor(props: AddressFormProps<IkasCustomerAddress>);
24
- validatorRules: (includePhoneRule?: boolean) => (RequiredRule<IkasCustomerAddress> | PhoneRule<IkasCustomerAddress>)[];
25
- onTitleChange: (value: string) => void;
26
- onFirstNameChange: (value: string) => void;
27
- onLastNameChange: (value: string) => void;
28
- onPhoneChange: (value: string) => void;
29
- onAddressLine1Change: (value: string) => void;
30
- onAddressLine2Change: (value: string) => void;
31
- onAddressPostalCodeChange: (value: string) => void;
32
- onCountryChange: (countryId: string) => void;
33
- onStateChange: (stateId: string) => void;
34
- onCityChange: (cityId: string) => void;
35
- onCityInputChange: (value: string) => void;
36
- onDistrictChange: (districtId: string) => void;
37
- onDistrictInputChange: (value: string) => void;
38
- listCountries: () => Promise<void>;
39
- listStates: () => Promise<void>;
40
- listCities: () => Promise<void>;
41
- listDistricts: () => Promise<void>;
42
- get isFreeTextCity(): boolean;
43
- get isFreeTextDistrict(): boolean;
44
- get isEdit(): boolean;
45
- private get editingAddressIndex();
46
- get countryOptions(): {
47
- label: string;
48
- value: string;
49
- }[];
50
- get stateOptions(): {
51
- label: string;
52
- value: string;
53
- }[];
54
- get cityOptions(): {
55
- label: string;
56
- value: string;
57
- }[];
58
- get districtOptions(): {
59
- label: string;
60
- value: string;
61
- }[];
62
- get hasState(): boolean;
63
- get isCountriesPending(): boolean;
64
- get isStatesPending(): boolean;
65
- get isCitiesPending(): boolean;
66
- get isDistrictsPending(): boolean;
67
- get hasValidatorError(): boolean;
68
- get results(): import("..").ValidationResults;
69
- validateAll: () => Promise<boolean>;
70
- submit: () => Promise<{
71
- isFormError: boolean;
72
- isSuccess: boolean;
73
- }>;
74
- }
75
- export {};
@@ -1 +0,0 @@
1
- import{__spreadArray as t,__awaiter as e,__generator as i}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as s,computed as r,observable as n,action as d}from"mobx";import a from"lodash/cloneDeep";import{Validator as o}from"../index.js";import{PhoneRule as u,RequiredRule as l}from"../rules/index.js";import{listCountry as c,listState as m,listCity as h,listDistrict as p}from"@ikas/storefront-api";import{IkasStorefrontConfig as f}from"@ikas/storefront-config";import{FREE_TEXT_CITY_COUNTRY_LIST as g}from"../../../../utils/constants.js";import{IkasBaseStore as v}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.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/country-settings-model.js";import"../../../data/checkout-settings/index.js";import"../../../data/city/index.js";import"../../../data/country/index.js";import{IkasCustomerAddress as y}from"../../../data/customer/address/index.js";import"../../../data/customer/address/ikas-localized-customer-address.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/option/value/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/transaction/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/stock-location/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 b=function(t){return t.sort((function(t,e){return t.label.localeCompare(e.label)}))},j=function(t){return{label:t.name,value:t.id+""}},x=function(){function x(g){var b=this;this.countries=[],this.states=[],this.cities=[],this.districts=[],this._isCountriesPending=!0,this._isStatesPending=!1,this._isCitiesPending=!1,this._isDistrictsPending=!1,this.validatorRules=function(e){return void 0===e&&(e=!1),t([new l({model:b.address,fieldKey:"firstName",valuePath:"firstName",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"lastName",valuePath:"lastName",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"addressLine1",valuePath:"addressLine1",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"country",valuePath:"country",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"state",valuePath:"state",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"city",valuePath:"city",message:b.message.requiredRule}),new l({model:b.address,fieldKey:"title",valuePath:"title",message:b.message.requiredRule})],e?[new u({model:b.address,fieldKey:"phone",valuePath:"phone",message:b.message.phoneRule})]:[],!0)},this.onTitleChange=function(t){b.address.title=t},this.onFirstNameChange=function(t){b.address.firstName=t},this.onLastNameChange=function(t){b.address.lastName=t},this.onPhoneChange=function(t){b.address.phone=t,t||b.validator.setRules(b.validatorRules())},this.onAddressLine1Change=function(t){b.address.addressLine1=t},this.onAddressLine2Change=function(t){b.address.addressLine2=t},this.onAddressPostalCodeChange=function(t){b.address.postalCode=t},this.onCountryChange=function(t){var e;if((null===(e=b.address.country)||void 0===e?void 0:e.id)!==t){var i=b.countries.find((function(e){return e.id===t}));b.address.country={id:(null==i?void 0:i.id)||null,name:(null==i?void 0:i.name)||"",code:(null==i?void 0:i.iso3)||null,iso2:(null==i?void 0:i.iso2)||null,iso3:(null==i?void 0:i.iso3)||null},b.address.state=null,b.address.city=null,b.address.district=null,b.states=[],b.cities=[],b.districts=[],b.listStates()}},this.onStateChange=function(t){var e;if((null===(e=b.address.state)||void 0===e?void 0:e.id)!==t){var i=b.states.find((function(e){return e.id===t}));b.address.state={id:i.id,name:null==i?void 0:i.name,code:null==i?void 0:i.stateCode},b.address.city=null,b.address.district=null,b.cities=[],b.districts=[],b.listCities()}},this.onCityChange=function(t){var e;if((null===(e=b.address.city)||void 0===e?void 0:e.id)!==t){var i=b.cities.find((function(e){return e.id===t}));b.address.city={id:i.id,name:i.name,code:null},b.address.district=null,b.districts=[],b.listDistricts()}},this.onCityInputChange=function(t){b.districts=[],b.address.city={id:null,name:t,code:null}},this.onDistrictChange=function(t){var e;if((null===(e=b.address.district)||void 0===e?void 0:e.id)!==t){var i=b.districts.find((function(e){return e.id===t}));b.address.district={id:i.id,name:i.name,code:null}}},this.onDistrictInputChange=function(t){b.address.district={id:null,name:t,code:null}},this.listCountries=function(){return e(b,void 0,void 0,(function(){var t,e,s,r;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),this._isCountriesPending=!0,[4,c({})];case 1:return t=i.sent(),e=f.getCurrentRouting(),s=t.data||[],(null===(r=null==e?void 0:e.countryCodes)||void 0===r?void 0:r.length)&&(s=s.filter((function(t){var i;return t.iso2&&(null===(i=e.countryCodes)||void 0===i?void 0:i.includes(t.iso2))}))),this.countries=s,1!==this.countries.length||this.address.country||this.onCountryChange(this.countries[0].id),this.countries=s,[3,4];case 2:return i.sent(),[3,4];case 3:return this._isCountriesPending=!1,[7];case 4:return[2]}}))}))},this.listStates=function(){return e(b,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.country)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isStatesPending=!0,[4,m({countryId:{eq:this.address.country.id}})];case 2:return t=i.sent(),this.states=t.data||[],this.hasState||this.onStateChange(this.states[0].id),[3,5];case 3:return i.sent(),[3,5];case 4:return this._isStatesPending=!1,[7];case 5:return[2]}}))}))},this.listCities=function(){return e(b,void 0,void 0,(function(){var t,e,s,r;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.state)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isCitiesPending=!0,[4,h({stateId:{eq:this.address.state.id},countryId:(null===(s=this.address.country)||void 0===s?void 0:s.id)?{eq:null===(r=this.address.country)||void 0===r?void 0:r.id}:void 0})];case 2:return t=i.sent(),this.cities=t.data||[],[3,5];case 3:return i.sent(),[3,5];case 4:return this._isCitiesPending=!1,[7];case 5:return[2]}}))}))},this.listDistricts=function(){return e(b,void 0,void 0,(function(){var t,e,s,r;return i(this,(function(i){switch(i.label){case 0:if(!(null===(e=this.address.city)||void 0===e?void 0:e.id))return[2];i.label=1;case 1:return i.trys.push([1,3,4,5]),this._isDistrictsPending=!0,[4,p({cityId:{eq:this.address.city.id},stateId:(null===(s=this.address.state)||void 0===s?void 0:s.id)?{eq:null===(r=this.address.state)||void 0===r?void 0:r.id}:void 0})];case 2:return t=i.sent(),this.districts=t.data||[],[3,5];case 3:return i.sent(),[3,5];case 4:return this._isDistrictsPending=!1,[7];case 5:return[2]}}))}))},this.validateAll=function(){return b.validator.validateAll()},this.submit=function(){return e(b,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:return t={isFormError:!1,isSuccess:!1},this.address.phone&&this.validator.setRules(this.validatorRules(!0)),[4,this.validateAll()];case 1:if(i.sent())return t.isFormError=!0,[2,t];if(!(e=a(v.getInstance().customerStore.customer))||!this.address)return[2,t];(null==e?void 0:e.addresses)||(e.addresses=[]),this.isEdit?e.addresses[this.editingAddressIndex]=this.address:e.addresses.push(this.address),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,v.getInstance().customerStore.saveCustomer(e)];case 3:return i.sent()&&(t.isSuccess=!0),[2,t];case 4:return i.sent(),[2,t];case 5:return[2]}}))}))},s(this,{hasValidatorError:r,isEdit:r,results:r,editingAddressIndex:r,isFreeTextCity:r,isFreeTextDistrict:r,countries:n,states:n,cities:n,districts:n,_isCountriesPending:n,_isStatesPending:n,_isCitiesPending:n,_isDistrictsPending:n,isCountriesPending:r,isStatesPending:r,isCitiesPending:r,isDistrictsPending:r,onCountryChange:d,validateAll:d,submit:d}),this.address=g.address||new y({addressLine1:"",addressLine2:null,attributes:null,company:null,firstName:"",identityNumber:null,isDefault:null,lastName:"",phone:null,postalCode:null,taxNumber:null,taxOffice:null,title:"",country:null,state:null,city:null,district:null,id:"",createdAt:0,updatedAt:0}),this.message=g.message,this.validator=new o(this.address,this.validatorRules()),this.listCountries(),this.address.state&&this.listStates(),this.address.country&&this.listCities(),this.address.city&&this.listDistricts()}return Object.defineProperty(x.prototype,"isFreeTextCity",{get:function(){var t=this;return g.some((function(e){var i,s;return(null===(s=null===(i=t.address.country)||void 0===i?void 0:i.iso2)||void 0===s?void 0:s.toLowerCase())===e.toLowerCase()}))},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isFreeTextDistrict",{get:function(){return!this.districtOptions.length},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isEdit",{get:function(){return-1!==this.editingAddressIndex},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"editingAddressIndex",{get:function(){var t,e,i,s=this;return null!==(i=null===(e=null===(t=v.getInstance().customerStore.customer)||void 0===t?void 0:t.addresses)||void 0===e?void 0:e.findIndex((function(t){return t.id===s.address.id})))&&void 0!==i?i:-1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"countryOptions",{get:function(){var t=this.countries.map(j);return b(t)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"stateOptions",{get:function(){var t=this.states.map(j);return b(t)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cityOptions",{get:function(){var t=this.cities.map(j);return b(t)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"districtOptions",{get:function(){var t=this.districts.map(j);return b(t)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasState",{get:function(){return this.states.length>1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isCountriesPending",{get:function(){return this._isCountriesPending},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isStatesPending",{get:function(){return this.isCountriesPending||this._isStatesPending},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isCitiesPending",{get:function(){return this.isStatesPending||this._isCitiesPending},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isDistrictsPending",{get:function(){return this.isCitiesPending||this._isDistrictsPending},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasValidatorError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"results",{get:function(){return this.validator.results},enumerable:!1,configurable:!0}),x}();export{x as AddressForm};
@@ -1,42 +0,0 @@
1
- declare type ContactFormProps<T> = {
2
- message: {
3
- requiredRule: ((model: T) => string) | string;
4
- emailRule: ((model: T) => string) | string;
5
- minRule: ((model: T) => string) | string;
6
- };
7
- };
8
- declare type ContactFormModel = {
9
- firstName: string;
10
- lastName: string;
11
- email: string;
12
- message: string;
13
- };
14
- export declare class ContactForm {
15
- private model;
16
- private validator;
17
- constructor(props: ContactFormProps<ContactFormModel>);
18
- get firstName(): string;
19
- set firstName(value: string);
20
- get lastName(): string;
21
- set lastName(value: string);
22
- get email(): string;
23
- set email(value: string);
24
- get message(): string;
25
- set message(value: string);
26
- get hasError(): boolean;
27
- get firstNameErrorMessage(): string | undefined;
28
- get lastNameErrorMessage(): string | undefined;
29
- get emailErrorMessage(): string | undefined;
30
- get messageErrorMessage(): string | undefined;
31
- get redirect(): string | null | undefined;
32
- onFirstNameChange: (value: string) => void;
33
- onLastNameChange: (value: string) => void;
34
- onEmailChange: (value: string) => void;
35
- onMessageChange: (value: string) => void;
36
- validateAll(): Promise<boolean>;
37
- saveContactForm(): Promise<{
38
- isFormError: boolean;
39
- isSuccess: boolean;
40
- }>;
41
- }
42
- export {};
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as s,observable as a,action as i}from"mobx";import{Validator as o}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as m}from"../rules/index.js";var u=function(){function u(e){var r=this;this.model={firstName:"",lastName:"",email:"",message:""},this.onFirstNameChange=function(e){r.firstName=e},this.onLastNameChange=function(e){r.lastName=e},this.onEmailChange=function(e){r.email=e},this.onMessageChange=function(e){r.message=e},t(this,{emailErrorMessage:s,messageErrorMessage:s,firstNameErrorMessage:s,lastNameErrorMessage:s,hasError:s,redirect:s,model:a,validateAll:i,saveContactForm:i}),this.validator=new o(this.model,[new l({fieldKey:"firstName",valuePath:"firstName",message:e.message.requiredRule}),new l({fieldKey:"lastName",valuePath:"lastName",message:e.message.requiredRule}),new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new l({fieldKey:"message",valuePath:"message",message:e.message.requiredRule}),new m({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(u.prototype,"firstName",{get:function(){return this.model.firstName},set:function(e){this.model.firstName=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lastName",{get:function(){return this.model.lastName},set:function(e){this.model.lastName=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"message",{get:function(){return this.model.message},set:function(e){this.model.message=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"firstNameErrorMessage",{get:function(){return this.validator.results.firstName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lastNameErrorMessage",{get:function(){return this.validator.results.lastName.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"messageErrorMessage",{get:function(){return this.validator.results.message.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),u.prototype.validateAll=function(){return this.validator.validateAll()},u.prototype.saveContactForm=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.saveContactForm({firstName:this.model.firstName,lastName:this.model.lastName,email:this.model.email,message:this.model.message,referer:window.location.href})];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},u}();export{u as ContactForm};
@@ -1,34 +0,0 @@
1
- declare type CustomerReviewFormProps<T> = {
2
- productId: string;
3
- message: {
4
- starRule: ((model: T) => string) | string;
5
- };
6
- };
7
- declare type CustomerReviewFormModel = {
8
- title: string;
9
- comment: string;
10
- star: number;
11
- };
12
- export declare class CustomerReviewForm {
13
- private productId;
14
- private model;
15
- private validator;
16
- constructor(props: CustomerReviewFormProps<CustomerReviewFormModel>);
17
- get title(): string;
18
- set title(value: string);
19
- get comment(): string;
20
- set comment(value: string);
21
- get star(): number;
22
- set star(value: number);
23
- get hasError(): boolean;
24
- get starErrorMessage(): string | undefined;
25
- onTitleChange: (value: string) => void;
26
- onCommentChange: (value: string) => void;
27
- onStarChange: (value: number) => void;
28
- validateAll(): Promise<boolean>;
29
- submit(): Promise<{
30
- isFormError: boolean;
31
- isSuccess: boolean;
32
- }>;
33
- }
34
- export {};
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as r,computed as s,observable as o,action as i}from"mobx";import{Validator as n}from"../index.js";import{IkasBaseStore as a}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,MinRule as u,MaxRule as m}from"../rules/index.js";var c=function(){function c(e){var t=this;this.model={title:"",comment:"",star:0},this.onTitleChange=function(e){t.title=e},this.onCommentChange=function(e){t.comment=e},this.onStarChange=function(e){t.star=e},r(this,{starErrorMessage:s,hasError:s,model:o,validateAll:i,submit:i}),this.productId=e.productId,this.validator=new n(this.model,[new l({fieldKey:"star",valuePath:"star",message:e.message.starRule}),new u({fieldKey:"star",valuePath:"star",minValue:1,message:e.message.starRule}),new m({fieldKey:"star",valuePath:"star",maxValue:5,message:e.message.starRule})])}return Object.defineProperty(c.prototype,"title",{get:function(){return this.model.title},set:function(e){this.model.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"comment",{get:function(){return this.model.comment},set:function(e){this.model.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"star",{get:function(){return this.model.star},set:function(e){this.model.star=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"starErrorMessage",{get:function(){return this.validator.results.star.errorMessage},enumerable:!1,configurable:!0}),c.prototype.validateAll=function(){return this.validator.validateAll()},c.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(t.sent())return e.isFormError=!0,[2,e];t.label=2;case 2:return t.trys.push([2,4,,5]),[4,a.getInstance().customerStore.sendReview({title:this.model.title,comment:this.model.comment,star:this.model.star,productId:this.productId})];case 3:return t.sent()&&(e.isSuccess=!0),[2,e];case 4:return t.sent(),[2,e];case 5:return[2]}}))}))},c}();export{c as CustomerReviewForm};
@@ -1,26 +0,0 @@
1
- declare type ForgotPasswordProps<T> = {
2
- message: {
3
- requiredRule: ((model: T) => string) | string;
4
- emailRule: ((model: T) => string) | string;
5
- };
6
- };
7
- declare type ForgotPasswordFormModel = {
8
- email: string;
9
- };
10
- export declare class ForgotPasswordForm {
11
- private model;
12
- private validator;
13
- constructor(props: ForgotPasswordProps<ForgotPasswordFormModel>);
14
- get email(): string;
15
- set email(value: string);
16
- onEmailChange: (value: string) => void;
17
- get hasValidatorError(): boolean;
18
- get emailErrorMessage(): string | undefined;
19
- get redirect(): string | null | undefined;
20
- validateAll(): Promise<boolean>;
21
- submit(): Promise<{
22
- isFormError: boolean;
23
- isSuccess: boolean;
24
- }>;
25
- }
26
- export {};
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import{makeObservable as t,computed as i,observable as o,action as a}from"mobx";import{Validator as s}from"../index.js";import{IkasBaseStore as n}from"../../../../store/base.js";import"../../../../store/customer/index.js";import"../../../../store/cart/index.js";import{RequiredRule as l,EmailRule as m}from"../rules/index.js";var u=function(){function u(e){var r=this;this.model={email:""},this.onEmailChange=function(e){r.email=e},t(this,{emailErrorMessage:i,hasValidatorError:i,redirect:i,email:i,model:o,validateAll:a,submit:a}),this.validator=new s(this.model,[new l({fieldKey:"email",valuePath:"email",message:e.message.requiredRule}),new m({fieldKey:"email",valuePath:"email",message:e.message.emailRule})])}return Object.defineProperty(u.prototype,"email",{get:function(){return this.model.email},set:function(e){this.model.email=e},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasValidatorError",{get:function(){return this.validator.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"emailErrorMessage",{get:function(){return this.validator.results.email.errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"redirect",{get:function(){if("undefined"!=typeof window)return new URLSearchParams(window.location.search).get("redirect")},enumerable:!1,configurable:!0}),u.prototype.validateAll=function(){return this.validator.validateAll()},u.prototype.submit=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e={isFormError:!1,isSuccess:!1},[4,this.validateAll()];case 1:if(r.sent())return e.isFormError=!0,[2,e];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.getInstance().customerStore.forgotPassword(this.model.email)];case 3:return r.sent()&&(e.isSuccess=!0),[2,e];case 4:return r.sent(),[2,e];case 5:return[2]}}))}))},u}();export{u as ForgotPasswordForm};