@ikas/storefront 4.0.0-alpha.59 → 4.0.0-alpha.6

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 (1193) hide show
  1. package/package.json +16 -17
  2. package/src/analytics/analytics.ts +536 -0
  3. package/src/analytics/events.ts +116 -0
  4. package/src/analytics/facebookPixel.ts +226 -0
  5. package/src/analytics/googleAnalytics.ts +227 -0
  6. package/src/analytics/googleTagManager.ts +341 -0
  7. package/src/analytics/googleUniversal.ts +136 -0
  8. package/src/analytics/head/index.tsx +135 -0
  9. package/src/analytics/ikas.ts +550 -0
  10. package/src/analytics/index.ts +2 -0
  11. package/src/analytics/tiktokPixel.ts +223 -0
  12. package/src/components/checkout/components/address-form/index.tsx +406 -0
  13. package/src/components/checkout/components/address-form/model.ts +397 -0
  14. package/src/components/checkout/components/button/index.tsx +44 -0
  15. package/src/components/checkout/components/button/style.module.scss +103 -0
  16. package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
  17. package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
  18. package/src/components/checkout/components/cart-summary/index.tsx +481 -0
  19. package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
  20. package/src/components/checkout/components/checkbox/check.tsx +23 -0
  21. package/src/components/checkout/components/checkbox/index.tsx +50 -0
  22. package/src/components/checkout/components/checkbox/style.module.scss +72 -0
  23. package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
  24. package/src/components/checkout/components/credit-card-form/model.ts +56 -0
  25. package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
  26. package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
  27. package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
  28. package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
  29. package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
  30. package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
  31. package/src/components/checkout/components/customer-addresses/model.ts +126 -0
  32. package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
  33. package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
  34. package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
  35. package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
  36. package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
  37. package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
  38. package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
  39. package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
  40. package/src/components/checkout/components/error/index.tsx +54 -0
  41. package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
  42. package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
  43. package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
  44. package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
  45. package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
  46. package/src/components/checkout/components/expandable-section/index.tsx +37 -0
  47. package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
  48. package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
  49. package/src/components/checkout/components/form-item/index.tsx +209 -0
  50. package/src/components/checkout/components/form-item/model.ts +145 -0
  51. package/src/components/checkout/components/form-item/style.module.scss +216 -0
  52. package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
  53. package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
  54. package/src/components/checkout/components/input-with-button/index.tsx +53 -0
  55. package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
  56. package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
  57. package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
  58. package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
  59. package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
  60. package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
  61. package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
  62. package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
  63. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
  64. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
  65. package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
  66. package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
  67. package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
  68. package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
  69. package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
  70. package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
  71. package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
  72. package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
  73. package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
  74. package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
  75. package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
  76. package/src/components/checkout/components/modal/index.tsx +41 -0
  77. package/src/components/checkout/components/modal/style.module.scss +68 -0
  78. package/src/components/checkout/components/modal/useEscape.tsx +20 -0
  79. package/src/components/checkout/components/notification-box/index.tsx +70 -0
  80. package/src/components/checkout/components/notification-box/style.module.scss +69 -0
  81. package/src/components/checkout/components/offer-product/index.tsx +180 -0
  82. package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
  83. package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
  84. package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
  85. package/src/components/checkout/components/offer-product/style.module.scss +117 -0
  86. package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
  87. package/src/components/checkout/components/phone-number-input/get-countries.ts +20 -0
  88. package/src/components/checkout/components/phone-number-input/index.tsx +120 -0
  89. package/src/components/checkout/components/phone-number-input/locale/en.ts +257 -0
  90. package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
  91. package/src/components/checkout/components/select-box/index.tsx +60 -0
  92. package/src/components/checkout/components/select-box/style.module.scss +55 -0
  93. package/src/components/checkout/components/step-container/index.tsx +107 -0
  94. package/src/components/checkout/components/step-container/style.module.scss +86 -0
  95. package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
  96. package/src/components/checkout/components/stripe/index.tsx +91 -0
  97. package/src/components/checkout/components/stripe/style.module.scss +75 -0
  98. package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
  99. package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
  100. package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
  101. package/src/components/checkout/components/svg/cross.tsx +23 -0
  102. package/src/components/checkout/components/svg/discount.tsx +34 -0
  103. package/src/components/checkout/components/svg/external.tsx +101 -0
  104. package/src/components/checkout/components/svg/gift.tsx +40 -0
  105. package/src/components/checkout/components/svg/ikas.tsx +39 -0
  106. package/src/components/checkout/components/svg/lock.tsx +23 -0
  107. package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
  108. package/src/components/checkout/components/svg/success-circle.tsx +26 -0
  109. package/src/components/checkout/components/svg/tag.tsx +23 -0
  110. package/src/components/checkout/components/svg/warning.tsx +30 -0
  111. package/src/components/checkout/components/toggle/index.tsx +51 -0
  112. package/src/components/checkout/components/toggle/style.module.scss +75 -0
  113. package/src/components/checkout/components/tooltip/index.tsx +27 -0
  114. package/src/components/checkout/components/tooltip/style.module.scss +86 -0
  115. package/src/components/checkout/index.tsx +641 -0
  116. package/src/components/checkout/model.ts +1466 -0
  117. package/src/components/checkout/modelMasterPass.ts +1001 -0
  118. package/src/components/checkout/steps/step-info/index.tsx +85 -0
  119. package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
  120. package/src/components/checkout/steps/step-payment/index.tsx +104 -0
  121. package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
  122. package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
  123. package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
  124. package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
  125. package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
  126. package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
  127. package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
  128. package/src/components/checkout/steps/step-success/index.tsx +366 -0
  129. package/src/components/checkout/steps/step-success/style.module.scss +161 -0
  130. package/src/components/checkout/style.module.scss +366 -0
  131. package/src/components/checkout/styles/common.module.scss +59 -0
  132. package/src/components/checkout/styles/variables.scss +40 -0
  133. package/src/components/image/index.tsx +43 -0
  134. package/src/components/index.ts +5 -0
  135. package/src/components/link/index.tsx +26 -0
  136. package/src/components/page/ThemeComponent.tsx +108 -0
  137. package/src/components/page/head.tsx +358 -0
  138. package/src/components/page/index.tsx +219 -0
  139. package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
  140. package/src/components/page-editor/error/index.tsx +18 -0
  141. package/src/components/page-editor/index.tsx +194 -0
  142. package/src/components/page-editor/loader/index.tsx +18 -0
  143. package/src/components/page-editor/loader/style.module.scss +59 -0
  144. package/src/components/page-editor/model.ts +847 -0
  145. package/src/index.ts +6 -0
  146. package/src/models/data/base/index.ts +15 -0
  147. package/src/models/data/blog/category/index.ts +36 -0
  148. package/src/models/data/blog/content/index.ts +16 -0
  149. package/src/models/data/blog/index.ts +75 -0
  150. package/src/models/data/blog/meta-data/index.ts +39 -0
  151. package/src/models/data/blog/tag/index.ts +16 -0
  152. package/src/models/data/blog/writer/index.ts +17 -0
  153. package/src/models/data/brand/index.ts +58 -0
  154. package/src/models/data/brand/translation/index.ts +16 -0
  155. package/src/models/data/campaign-offer/index.ts +79 -0
  156. package/src/models/data/campaign-offer/product/index.ts +69 -0
  157. package/src/models/data/cart/available-shipping-method/index.ts +25 -0
  158. package/src/models/data/cart/campaign-offer/index.ts +43 -0
  159. package/src/models/data/cart/index.ts +38 -0
  160. package/src/models/data/category/index.ts +69 -0
  161. package/src/models/data/category/init.ts +33 -0
  162. package/src/models/data/category/path-item/index.ts +42 -0
  163. package/src/models/data/category/translations/index.ts +16 -0
  164. package/src/models/data/checkout/index.ts +55 -0
  165. package/src/models/data/checkout-settings/index.ts +63 -0
  166. package/src/models/data/checkout-settings/option/index.ts +14 -0
  167. package/src/models/data/checkout-settings/price/index.ts +14 -0
  168. package/src/models/data/city/index.ts +34 -0
  169. package/src/models/data/contact-form/index.ts +20 -0
  170. package/src/models/data/country/index.ts +46 -0
  171. package/src/models/data/customer/address/city/index.ts +16 -0
  172. package/src/models/data/customer/address/country/index.ts +20 -0
  173. package/src/models/data/customer/address/district/index.ts +16 -0
  174. package/src/models/data/customer/address/index.tsx +136 -0
  175. package/src/models/data/customer/address/state/index.ts +16 -0
  176. package/src/models/data/customer/attribute/index.ts +61 -0
  177. package/src/models/data/customer/attribute/option/index.ts +20 -0
  178. package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
  179. package/src/models/data/customer/attribute/translation/index.ts +23 -0
  180. package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
  181. package/src/models/data/customer/attribute/value/index.ts +29 -0
  182. package/src/models/data/customer/index.ts +122 -0
  183. package/src/models/data/customer/review/index.ts +70 -0
  184. package/src/models/data/customer/review/settings/index.ts +14 -0
  185. package/src/models/data/customer/review/summary/index.ts +29 -0
  186. package/src/models/data/customer/review/summary/star/index.ts +16 -0
  187. package/src/models/data/district/index.ts +36 -0
  188. package/src/models/data/favorite-product/index.ts +23 -0
  189. package/src/models/data/filter-category/index.ts +30 -0
  190. package/src/models/data/html-meta-data/index.ts +69 -0
  191. package/src/models/data/html-meta-data/translations/index.ts +16 -0
  192. package/src/models/data/image/index.ts +33 -0
  193. package/src/models/data/index.ts +192 -0
  194. package/src/models/data/last-viewed-product/index.ts +14 -0
  195. package/src/models/data/merchant-settings/index.ts +26 -0
  196. package/src/models/data/order/address/city/index.ts +16 -0
  197. package/src/models/data/order/address/country/index.ts +20 -0
  198. package/src/models/data/order/address/district/index.ts +16 -0
  199. package/src/models/data/order/address/index.ts +96 -0
  200. package/src/models/data/order/address/state/index.ts +16 -0
  201. package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
  202. package/src/models/data/order/adjustment/index.ts +39 -0
  203. package/src/models/data/order/customer/index.ts +24 -0
  204. package/src/models/data/order/gift-line/index.ts +14 -0
  205. package/src/models/data/order/index.ts +241 -0
  206. package/src/models/data/order/invoice/index.ts +29 -0
  207. package/src/models/data/order/line-item/discount/index.ts +23 -0
  208. package/src/models/data/order/line-item/index.ts +153 -0
  209. package/src/models/data/order/line-item/option/index.ts +24 -0
  210. package/src/models/data/order/line-item/option/value/index.ts +16 -0
  211. package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
  212. package/src/models/data/order/line-item/variant/category/index.ts +36 -0
  213. package/src/models/data/order/line-item/variant/index.ts +62 -0
  214. package/src/models/data/order/line-item/variant/price/index.ts +20 -0
  215. package/src/models/data/order/line-item/variant/value/index.ts +31 -0
  216. package/src/models/data/order/package/index.ts +41 -0
  217. package/src/models/data/order/package/tracking-info/index.ts +20 -0
  218. package/src/models/data/order/payment-method/index.ts +23 -0
  219. package/src/models/data/order/refund/index.ts +17 -0
  220. package/src/models/data/order/refund/line-item/index.ts +16 -0
  221. package/src/models/data/order/refund/settings/index.ts +16 -0
  222. package/src/models/data/order/shipping-line/index.ts +29 -0
  223. package/src/models/data/order/tax-line/index.ts +14 -0
  224. package/src/models/data/order/transaction/error/index.ts +16 -0
  225. package/src/models/data/order/transaction/index.ts +58 -0
  226. package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
  227. package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
  228. package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
  229. package/src/models/data/payment-gateway/index.ts +90 -0
  230. package/src/models/data/payment-gateway/settings/index.ts +21 -0
  231. package/src/models/data/payment-gateway/translation/index.ts +18 -0
  232. package/src/models/data/product/attribute/index.ts +37 -0
  233. package/src/models/data/product/attribute/option/index.ts +14 -0
  234. package/src/models/data/product/attribute/table-cell/index.ts +16 -0
  235. package/src/models/data/product/attribute/table-template/index.ts +19 -0
  236. package/src/models/data/product/attribute/translation/index.ts +39 -0
  237. package/src/models/data/product/attribute-value/index.ts +69 -0
  238. package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
  239. package/src/models/data/product/campaign/data/index.ts +70 -0
  240. package/src/models/data/product/campaign/filter/index.ts +19 -0
  241. package/src/models/data/product/campaign/index.ts +15 -0
  242. package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
  243. package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
  244. package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
  245. package/src/models/data/product/filter/index.ts +285 -0
  246. package/src/models/data/product/image/index.ts +22 -0
  247. package/src/models/data/product/index.ts +298 -0
  248. package/src/models/data/product/option-set/index.ts +94 -0
  249. package/src/models/data/product/option-set/option/index.ts +245 -0
  250. package/src/models/data/product/tag/index.ts +14 -0
  251. package/src/models/data/product/variant/index.ts +104 -0
  252. package/src/models/data/product/variant/price/index.ts +58 -0
  253. package/src/models/data/product/variant-type/index.ts +17 -0
  254. package/src/models/data/product/variant-type/init.ts +15 -0
  255. package/src/models/data/raffle/index.ts +155 -0
  256. package/src/models/data/sales-channel/index.ts +56 -0
  257. package/src/models/data/state/index.ts +18 -0
  258. package/src/models/data/stock-location/address/city/index.ts +16 -0
  259. package/src/models/data/stock-location/address/country/index.ts +18 -0
  260. package/src/models/data/stock-location/address/district/index.ts +18 -0
  261. package/src/models/data/stock-location/address/index.ts +34 -0
  262. package/src/models/data/stock-location/address/state/index.ts +18 -0
  263. package/src/models/data/stock-location/available/index.ts +22 -0
  264. package/src/models/data/stock-location/index.ts +35 -0
  265. package/src/models/data/storefront/domain/index.ts +20 -0
  266. package/src/models/data/storefront/index.ts +65 -0
  267. package/src/models/data/storefront/localization/index.tsx +18 -0
  268. package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
  269. package/src/models/data/storefront/routing/index.tsx +25 -0
  270. package/src/models/data/storefront/theme/index.tsx +25 -0
  271. package/src/models/data/storefront/theme-localization/index.tsx +31 -0
  272. package/src/models/data/theme-json/component/index.ts +41 -0
  273. package/src/models/data/theme-json/component/prop/index.ts +55 -0
  274. package/src/models/data/theme-json/custom-data/index.ts +132 -0
  275. package/src/models/data/theme-json/index.ts +210 -0
  276. package/src/models/data/theme-json/page/component/index.ts +22 -0
  277. package/src/models/data/theme-json/page/index.ts +54 -0
  278. package/src/models/data/theme-json/settings/color/index.ts +35 -0
  279. package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
  280. package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
  281. package/src/models/data/theme-json/settings/index.ts +30 -0
  282. package/src/models/data/variant-type/index.ts +44 -0
  283. package/src/models/data/variant-type/variant-value/index.ts +32 -0
  284. package/src/models/index.ts +2 -0
  285. package/src/models/ui/blog-category-list/index.ts +169 -0
  286. package/src/models/ui/blog-list/index.ts +175 -0
  287. package/src/models/ui/brand-list/index.ts +237 -0
  288. package/src/models/ui/category-list/index.ts +237 -0
  289. package/src/models/ui/component-renderer/index.ts +9 -0
  290. package/src/models/ui/customer-review-list/index.ts +173 -0
  291. package/src/models/ui/customer-review-summary-list/index.ts +175 -0
  292. package/src/models/ui/index.ts +40 -0
  293. package/src/models/ui/navigation-link/index.ts +23 -0
  294. package/src/models/ui/product-attribute-detail/index.ts +29 -0
  295. package/src/models/ui/product-attribute-list/index.ts +52 -0
  296. package/src/models/ui/product-list/index.ts +998 -0
  297. package/src/models/ui/raffle-list/index.ts +178 -0
  298. package/src/models/ui/validator/form/account-info.ts +167 -0
  299. package/src/models/ui/validator/form/address.ts +490 -0
  300. package/src/models/ui/validator/form/contact-form.ts +177 -0
  301. package/src/models/ui/validator/form/customer-review.ts +132 -0
  302. package/src/models/ui/validator/form/forgot-password.ts +96 -0
  303. package/src/models/ui/validator/form/login.ts +128 -0
  304. package/src/models/ui/validator/form/raffle-form.ts +276 -0
  305. package/src/models/ui/validator/form/recover-password.ts +148 -0
  306. package/src/models/ui/validator/form/register.ts +206 -0
  307. package/src/models/ui/validator/index.ts +121 -0
  308. package/src/models/ui/validator/rules/index.ts +310 -0
  309. package/src/page-data-init/index.ts +904 -0
  310. package/src/pages/404.tsx +10 -0
  311. package/src/pages/[slug]/index.tsx +9 -0
  312. package/src/pages/account/addresses.tsx +10 -0
  313. package/src/pages/account/favorite-products.tsx +9 -0
  314. package/src/pages/account/forgot-password.tsx +9 -0
  315. package/src/pages/account/index.tsx +9 -0
  316. package/src/pages/account/login.tsx +9 -0
  317. package/src/pages/account/orders/[id].tsx +9 -0
  318. package/src/pages/account/orders/index.tsx +9 -0
  319. package/src/pages/account/raffles.tsx +9 -0
  320. package/src/pages/account/recover-password.tsx +9 -0
  321. package/src/pages/account/register.tsx +9 -0
  322. package/src/pages/blog/[slug].tsx +9 -0
  323. package/src/pages/blog/index.tsx +9 -0
  324. package/src/pages/cart.tsx +9 -0
  325. package/src/pages/checkout.tsx +163 -0
  326. package/src/pages/editor.tsx +30 -0
  327. package/src/pages/home.tsx +10 -0
  328. package/src/pages/index.ts +22 -0
  329. package/src/pages/pages/[slug].tsx +9 -0
  330. package/src/pages/raffle/[slug].tsx +9 -0
  331. package/src/pages/raffle/index.tsx +9 -0
  332. package/src/pages/search.tsx +9 -0
  333. package/src/store/base.ts +238 -0
  334. package/src/store/blog/index.ts +49 -0
  335. package/src/store/brand/index.ts +16 -0
  336. package/src/store/cart/api.ts +58 -0
  337. package/src/store/cart/index.ts +311 -0
  338. package/src/store/category/index.ts +16 -0
  339. package/src/store/checkout/index.ts +92 -0
  340. package/src/store/customer/api.ts +273 -0
  341. package/src/store/customer/index.ts +658 -0
  342. package/src/store/html-meta-data/index.ts +16 -0
  343. package/src/store/index.ts +1 -0
  344. package/src/store/location/index.ts +56 -0
  345. package/src/store/merchant/index.ts +16 -0
  346. package/src/store/product/index.ts +113 -0
  347. package/src/store/raffle/index.ts +58 -0
  348. package/src/store/storefront/index.ts +18 -0
  349. package/src/typings/global.d.ts +7 -0
  350. package/src/utils/constants.ts +2 -0
  351. package/src/utils/currency.ts +250 -0
  352. package/src/utils/google-fonts.ts +52 -0
  353. package/src/utils/helper.ts +77 -0
  354. package/src/utils/i18n.ts +126 -0
  355. package/src/utils/index.ts +3 -0
  356. package/build/_virtual/_commonjsHelpers.js +0 -1
  357. package/build/_virtual/axios.js +0 -1
  358. package/build/_virtual/index.js +0 -1
  359. package/build/_virtual/index2.js +0 -1
  360. package/build/_virtual/index3.js +0 -1
  361. package/build/_virtual/index4.js +0 -1
  362. package/build/_virtual/react-is.development.js +0 -1
  363. package/build/_virtual/react-is.production.min.js +0 -1
  364. package/build/_virtual/react-stripe.umd.js +0 -1
  365. package/build/analytics/analytics.d.ts +0 -37
  366. package/build/analytics/analytics.js +0 -1
  367. package/build/analytics/events.d.ts +0 -37
  368. package/build/analytics/events.js +0 -1
  369. package/build/analytics/facebookPixel.d.ts +0 -15
  370. package/build/analytics/facebookPixel.js +0 -1
  371. package/build/analytics/googleAnalytics.d.ts +0 -13
  372. package/build/analytics/googleAnalytics.js +0 -1
  373. package/build/analytics/googleTagManager.d.ts +0 -203
  374. package/build/analytics/googleTagManager.js +0 -1
  375. package/build/analytics/googleUniversal.d.ts +0 -9
  376. package/build/analytics/googleUniversal.js +0 -1
  377. package/build/analytics/head/index.d.ts +0 -7
  378. package/build/analytics/head/index.js +0 -1
  379. package/build/analytics/ikas.d.ts +0 -134
  380. package/build/analytics/ikas.js +0 -1
  381. package/build/analytics/index.d.ts +0 -2
  382. package/build/analytics/tiktokPixel.d.ts +0 -13
  383. package/build/analytics/tiktokPixel.js +0 -1
  384. package/build/components/checkout/components/address-form/index.d.ts +0 -3
  385. package/build/components/checkout/components/address-form/index.js +0 -1
  386. package/build/components/checkout/components/address-form/model.d.ts +0 -87
  387. package/build/components/checkout/components/address-form/model.js +0 -1
  388. package/build/components/checkout/components/button/index.d.ts +0 -13
  389. package/build/components/checkout/components/button/index.js +0 -1
  390. package/build/components/checkout/components/button/style.module.scss.js +0 -1
  391. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
  392. package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
  393. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
  394. package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
  395. package/build/components/checkout/components/cart-summary/index.js +0 -1
  396. package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
  397. package/build/components/checkout/components/checkbox/check.d.ts +0 -6
  398. package/build/components/checkout/components/checkbox/check.js +0 -1
  399. package/build/components/checkout/components/checkbox/index.d.ts +0 -10
  400. package/build/components/checkout/components/checkbox/index.js +0 -1
  401. package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
  402. package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
  403. package/build/components/checkout/components/credit-card-form/index.js +0 -1
  404. package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
  405. package/build/components/checkout/components/credit-card-form/model.js +0 -1
  406. package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
  407. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
  408. package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
  409. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
  410. package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
  411. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
  412. package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
  413. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
  414. package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
  415. package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
  416. package/build/components/checkout/components/customer-addresses/index.js +0 -1
  417. package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
  418. package/build/components/checkout/components/customer-addresses/model.js +0 -1
  419. package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
  420. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
  421. package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
  422. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
  423. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
  424. package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
  425. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
  426. package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
  427. package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
  428. package/build/components/checkout/components/delivery-methods/index.js +0 -1
  429. package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
  430. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
  431. package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
  432. package/build/components/checkout/components/error/index.d.ts +0 -7
  433. package/build/components/checkout/components/error/index.js +0 -1
  434. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
  435. package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
  436. package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
  437. package/build/components/checkout/components/error/payment-error/index.js +0 -1
  438. package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
  439. package/build/components/checkout/components/error/stock-error/index.js +0 -1
  440. package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
  441. package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
  442. package/build/components/checkout/components/error/unknown-error/index.js +0 -1
  443. package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
  444. package/build/components/checkout/components/expandable-section/index.js +0 -1
  445. package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
  446. package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
  447. package/build/components/checkout/components/form-item/caret-down.js +0 -1
  448. package/build/components/checkout/components/form-item/index.d.ts +0 -3
  449. package/build/components/checkout/components/form-item/index.js +0 -1
  450. package/build/components/checkout/components/form-item/model.d.ts +0 -61
  451. package/build/components/checkout/components/form-item/model.js +0 -1
  452. package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
  453. package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
  454. package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
  455. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
  456. package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
  457. package/build/components/checkout/components/input-with-button/index.js +0 -1
  458. package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
  459. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
  460. package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
  461. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
  462. package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -11
  463. package/build/components/checkout/components/master-pass/modal/index.js +0 -1
  464. package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
  465. package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
  466. package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
  467. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +0 -10
  468. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +0 -1
  469. package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +0 -1
  470. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +0 -2
  471. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +0 -1
  472. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
  473. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
  474. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
  475. package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
  476. package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
  477. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
  478. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
  479. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
  480. package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
  481. package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
  482. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
  483. package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
  484. package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
  485. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +0 -2
  486. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +0 -1
  487. package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
  488. package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
  489. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
  490. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
  491. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
  492. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
  493. package/build/components/checkout/components/modal/index.d.ts +0 -8
  494. package/build/components/checkout/components/modal/index.js +0 -1
  495. package/build/components/checkout/components/modal/style.module.scss.js +0 -1
  496. package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
  497. package/build/components/checkout/components/modal/useEscape.js +0 -1
  498. package/build/components/checkout/components/notification-box/index.d.ts +0 -9
  499. package/build/components/checkout/components/notification-box/index.js +0 -1
  500. package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
  501. package/build/components/checkout/components/offer-product/index.d.ts +0 -8
  502. package/build/components/checkout/components/offer-product/index.js +0 -1
  503. package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
  504. package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
  505. package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
  506. package/build/components/checkout/components/offer-product/select/index.js +0 -1
  507. package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
  508. package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
  509. package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
  510. package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
  511. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
  512. package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
  513. package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
  514. package/build/components/checkout/components/phone-number-input/index.js +0 -1
  515. package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
  516. package/build/components/checkout/components/select-box/index.d.ts +0 -13
  517. package/build/components/checkout/components/select-box/index.js +0 -1
  518. package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
  519. package/build/components/checkout/components/step-container/index.d.ts +0 -15
  520. package/build/components/checkout/components/step-container/index.js +0 -1
  521. package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
  522. package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
  523. package/build/components/checkout/components/stripe/checkout-form.js +0 -1
  524. package/build/components/checkout/components/stripe/index.d.ts +0 -9
  525. package/build/components/checkout/components/stripe/index.js +0 -1
  526. package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
  527. package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
  528. package/build/components/checkout/components/svg/arrow-down.js +0 -1
  529. package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
  530. package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
  531. package/build/components/checkout/components/svg/cross.d.ts +0 -6
  532. package/build/components/checkout/components/svg/cross.js +0 -1
  533. package/build/components/checkout/components/svg/discount.d.ts +0 -6
  534. package/build/components/checkout/components/svg/external.d.ts +0 -6
  535. package/build/components/checkout/components/svg/external.js +0 -1
  536. package/build/components/checkout/components/svg/gift.d.ts +0 -7
  537. package/build/components/checkout/components/svg/gift.js +0 -1
  538. package/build/components/checkout/components/svg/ikas.d.ts +0 -6
  539. package/build/components/checkout/components/svg/ikas.js +0 -1
  540. package/build/components/checkout/components/svg/lock.d.ts +0 -6
  541. package/build/components/checkout/components/svg/lock.js +0 -1
  542. package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
  543. package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
  544. package/build/components/checkout/components/svg/success-circle.js +0 -1
  545. package/build/components/checkout/components/svg/tag.d.ts +0 -6
  546. package/build/components/checkout/components/svg/warning.d.ts +0 -6
  547. package/build/components/checkout/components/svg/warning.js +0 -1
  548. package/build/components/checkout/components/toggle/index.d.ts +0 -10
  549. package/build/components/checkout/components/toggle/index.js +0 -1
  550. package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
  551. package/build/components/checkout/components/tooltip/index.d.ts +0 -8
  552. package/build/components/checkout/components/tooltip/index.js +0 -1
  553. package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
  554. package/build/components/checkout/index.d.ts +0 -32
  555. package/build/components/checkout/index.js +0 -1
  556. package/build/components/checkout/model.d.ts +0 -161
  557. package/build/components/checkout/model.js +0 -1
  558. package/build/components/checkout/modelMasterPass.d.ts +0 -201
  559. package/build/components/checkout/modelMasterPass.js +0 -1
  560. package/build/components/checkout/steps/step-info/index.d.ts +0 -7
  561. package/build/components/checkout/steps/step-info/index.js +0 -1
  562. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
  563. package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
  564. package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
  565. package/build/components/checkout/steps/step-payment/index.js +0 -1
  566. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
  567. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
  568. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
  569. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
  570. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
  571. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
  572. package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
  573. package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
  574. package/build/components/checkout/steps/step-shipping/index.js +0 -1
  575. package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
  576. package/build/components/checkout/steps/step-success/index.d.ts +0 -7
  577. package/build/components/checkout/steps/step-success/index.js +0 -1
  578. package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
  579. package/build/components/checkout/style.module.scss.js +0 -1
  580. package/build/components/checkout/styles/common.module.scss.js +0 -1
  581. package/build/components/image/index.d.ts +0 -10
  582. package/build/components/image/index.js +0 -1
  583. package/build/components/index.d.ts +0 -5
  584. package/build/components/link/index.d.ts +0 -16
  585. package/build/components/link/index.js +0 -1
  586. package/build/components/page/ThemeComponent.d.ts +0 -21
  587. package/build/components/page/ThemeComponent.js +0 -1
  588. package/build/components/page/head.d.ts +0 -15
  589. package/build/components/page/head.js +0 -1
  590. package/build/components/page/index.d.ts +0 -21
  591. package/build/components/page/index.js +0 -1
  592. package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
  593. package/build/components/page-editor/ThemeComponentEditor.js +0 -1
  594. package/build/components/page-editor/error/index.d.ts +0 -4
  595. package/build/components/page-editor/error/index.js +0 -1
  596. package/build/components/page-editor/index.d.ts +0 -4
  597. package/build/components/page-editor/index.js +0 -1
  598. package/build/components/page-editor/loader/index.d.ts +0 -6
  599. package/build/components/page-editor/loader/index.js +0 -1
  600. package/build/components/page-editor/loader/style.module.scss.js +0 -1
  601. package/build/components/page-editor/model.d.ts +0 -75
  602. package/build/components/page-editor/model.js +0 -1
  603. package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
  604. package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
  605. package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
  606. package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
  607. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
  608. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
  609. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
  610. package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
  611. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
  612. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
  613. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
  614. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
  615. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
  616. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
  617. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
  618. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
  619. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
  620. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
  621. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
  622. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
  623. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
  624. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
  625. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
  626. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
  627. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
  628. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
  629. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
  630. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
  631. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
  632. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
  633. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
  634. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
  635. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
  636. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
  637. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
  638. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
  639. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
  640. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
  641. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
  642. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
  643. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
  644. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
  645. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
  646. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
  647. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
  648. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
  649. package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
  650. package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
  651. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
  652. package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
  653. package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
  654. package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
  655. package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +0 -1
  656. package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +0 -1
  657. package/build/ext/axios/index.js +0 -1
  658. package/build/ext/axios/lib/adapters/xhr.js +0 -1
  659. package/build/ext/axios/lib/axios.js +0 -1
  660. package/build/ext/axios/lib/cancel/Cancel.js +0 -1
  661. package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
  662. package/build/ext/axios/lib/cancel/isCancel.js +0 -1
  663. package/build/ext/axios/lib/core/Axios.js +0 -1
  664. package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
  665. package/build/ext/axios/lib/core/buildFullPath.js +0 -1
  666. package/build/ext/axios/lib/core/createError.js +0 -1
  667. package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
  668. package/build/ext/axios/lib/core/enhanceError.js +0 -1
  669. package/build/ext/axios/lib/core/mergeConfig.js +0 -1
  670. package/build/ext/axios/lib/core/settle.js +0 -1
  671. package/build/ext/axios/lib/core/transformData.js +0 -1
  672. package/build/ext/axios/lib/defaults/index.js +0 -1
  673. package/build/ext/axios/lib/defaults/transitional.js +0 -1
  674. package/build/ext/axios/lib/env/data.js +0 -1
  675. package/build/ext/axios/lib/helpers/bind.js +0 -1
  676. package/build/ext/axios/lib/helpers/buildURL.js +0 -1
  677. package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
  678. package/build/ext/axios/lib/helpers/cookies.js +0 -1
  679. package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
  680. package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
  681. package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
  682. package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
  683. package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
  684. package/build/ext/axios/lib/helpers/spread.js +0 -1
  685. package/build/ext/axios/lib/helpers/validator.js +0 -1
  686. package/build/ext/axios/lib/utils.js +0 -1
  687. package/build/ext/decode-uri-component/index.js +0 -1
  688. package/build/ext/filter-obj/index.js +0 -1
  689. package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
  690. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
  691. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
  692. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
  693. package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
  694. package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
  695. package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
  696. package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
  697. package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
  698. package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +0 -1
  699. package/build/ext/libphonenumber-js/es6/constants.js +0 -1
  700. package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +0 -1
  701. package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +0 -1
  702. package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +0 -1
  703. package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +0 -1
  704. package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +0 -1
  705. package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +0 -1
  706. package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +0 -1
  707. package/build/ext/libphonenumber-js/es6/findNumbers/util.js +0 -1
  708. package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +0 -1
  709. package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
  710. package/build/ext/libphonenumber-js/es6/format_.js +0 -1
  711. package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
  712. package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
  713. package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
  714. package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  715. package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
  716. package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
  717. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  718. package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  719. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  720. package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
  721. package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
  722. package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
  723. package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
  724. package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
  725. package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
  726. package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
  727. package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
  728. package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
  729. package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
  730. package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
  731. package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
  732. package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
  733. package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
  734. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
  735. package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
  736. package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
  737. package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
  738. package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
  739. package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
  740. package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +0 -1
  741. package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
  742. package/build/ext/libphonenumber-js/min/exports/AsYouType.js +0 -1
  743. package/build/ext/libphonenumber-js/min/exports/Metadata.js +0 -1
  744. package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +0 -1
  745. package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +0 -1
  746. package/build/ext/libphonenumber-js/min/exports/getCountries.js +0 -1
  747. package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -1
  748. package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +0 -1
  749. package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +0 -1
  750. package/build/ext/object-assign/index.js +0 -6
  751. package/build/ext/prop-types/checkPropTypes.js +0 -1
  752. package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
  753. package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
  754. package/build/ext/prop-types/index.js +0 -1
  755. package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
  756. package/build/ext/prop-types/lib/has.js +0 -1
  757. package/build/ext/query-string/index.js +0 -1
  758. package/build/ext/react-is/cjs/react-is.development.js +0 -9
  759. package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
  760. package/build/ext/react-is/index.js +0 -1
  761. package/build/ext/react-tooltip/dist/index.es.js +0 -1
  762. package/build/ext/split-on-first/index.js +0 -1
  763. package/build/ext/strict-uri-encode/index.js +0 -1
  764. package/build/ext/style-inject/dist/style-inject.es.js +0 -1
  765. package/build/ext/tslib/tslib.es6.js +0 -1
  766. package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +0 -1
  767. package/build/ext/uuid/dist/esm-browser/md5.js +0 -1
  768. package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
  769. package/build/ext/uuid/dist/esm-browser/sha1.js +0 -1
  770. package/build/ext/uuid/dist/esm-browser/v3.js +0 -1
  771. package/build/ext/uuid/dist/esm-browser/v35.js +0 -1
  772. package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
  773. package/build/ext/uuid/dist/esm-browser/v5.js +0 -1
  774. package/build/index.d.ts +0 -6
  775. package/build/index.js +0 -1
  776. package/build/models/data/base/index.d.ts +0 -8
  777. package/build/models/data/base/index.js +0 -1
  778. package/build/models/data/blog/category/index.d.ts +0 -12
  779. package/build/models/data/blog/category/index.js +0 -1
  780. package/build/models/data/blog/content/index.d.ts +0 -6
  781. package/build/models/data/blog/content/index.js +0 -1
  782. package/build/models/data/blog/index.d.ts +0 -27
  783. package/build/models/data/blog/index.js +0 -1
  784. package/build/models/data/blog/meta-data/index.d.ts +0 -16
  785. package/build/models/data/blog/meta-data/index.js +0 -1
  786. package/build/models/data/blog/tag/index.d.ts +0 -6
  787. package/build/models/data/blog/tag/index.js +0 -1
  788. package/build/models/data/blog/writer/index.d.ts +0 -6
  789. package/build/models/data/blog/writer/index.js +0 -1
  790. package/build/models/data/brand/index.d.ts +0 -26
  791. package/build/models/data/brand/index.js +0 -1
  792. package/build/models/data/brand/translation/index.d.ts +0 -7
  793. package/build/models/data/brand/translation/index.js +0 -1
  794. package/build/models/data/campaign-offer/index.d.ts +0 -21
  795. package/build/models/data/campaign-offer/index.js +0 -1
  796. package/build/models/data/campaign-offer/product/index.d.ts +0 -24
  797. package/build/models/data/campaign-offer/product/index.js +0 -1
  798. package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
  799. package/build/models/data/cart/available-shipping-method/index.js +0 -1
  800. package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
  801. package/build/models/data/cart/campaign-offer/index.js +0 -1
  802. package/build/models/data/cart/index.d.ts +0 -13
  803. package/build/models/data/cart/index.js +0 -1
  804. package/build/models/data/category/index.d.ts +0 -22
  805. package/build/models/data/category/index.js +0 -1
  806. package/build/models/data/category/path-item/index.d.ts +0 -14
  807. package/build/models/data/category/path-item/index.js +0 -1
  808. package/build/models/data/category/translations/index.d.ts +0 -7
  809. package/build/models/data/category/translations/index.js +0 -1
  810. package/build/models/data/checkout/index.d.ts +0 -22
  811. package/build/models/data/checkout/index.js +0 -1
  812. package/build/models/data/checkout-settings/index.d.ts +0 -20
  813. package/build/models/data/checkout-settings/index.js +0 -1
  814. package/build/models/data/checkout-settings/option/index.d.ts +0 -6
  815. package/build/models/data/checkout-settings/option/index.js +0 -1
  816. package/build/models/data/checkout-settings/price/index.d.ts +0 -7
  817. package/build/models/data/checkout-settings/price/index.js +0 -1
  818. package/build/models/data/city/index.d.ts +0 -12
  819. package/build/models/data/city/index.js +0 -1
  820. package/build/models/data/contact-form/index.d.ts +0 -9
  821. package/build/models/data/contact-form/index.js +0 -1
  822. package/build/models/data/country/index.d.ts +0 -18
  823. package/build/models/data/country/index.js +0 -1
  824. package/build/models/data/country/location-translations/index.d.ts +0 -7
  825. package/build/models/data/customer/address/city/index.d.ts +0 -7
  826. package/build/models/data/customer/address/city/index.js +0 -1
  827. package/build/models/data/customer/address/country/index.d.ts +0 -9
  828. package/build/models/data/customer/address/country/index.js +0 -1
  829. package/build/models/data/customer/address/district/index.d.ts +0 -7
  830. package/build/models/data/customer/address/district/index.js +0 -1
  831. package/build/models/data/customer/address/index.d.ts +0 -40
  832. package/build/models/data/customer/address/index.js +0 -1
  833. package/build/models/data/customer/address/state/index.d.ts +0 -7
  834. package/build/models/data/customer/address/state/index.js +0 -1
  835. package/build/models/data/customer/attribute/index.d.ts +0 -17
  836. package/build/models/data/customer/attribute/index.js +0 -1
  837. package/build/models/data/customer/attribute/option/index.d.ts +0 -9
  838. package/build/models/data/customer/attribute/option/index.js +0 -1
  839. package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
  840. package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
  841. package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
  842. package/build/models/data/customer/attribute/translation/index.js +0 -1
  843. package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
  844. package/build/models/data/customer/attribute/translation/option/index.js +0 -1
  845. package/build/models/data/customer/attribute/value/index.d.ts +0 -11
  846. package/build/models/data/customer/attribute/value/index.js +0 -1
  847. package/build/models/data/customer/index.d.ts +0 -38
  848. package/build/models/data/customer/index.js +0 -1
  849. package/build/models/data/customer/review/index.d.ts +0 -22
  850. package/build/models/data/customer/review/index.js +0 -1
  851. package/build/models/data/customer/review/settings/index.d.ts +0 -6
  852. package/build/models/data/customer/review/settings/index.js +0 -1
  853. package/build/models/data/customer/review/summary/index.d.ts +0 -10
  854. package/build/models/data/customer/review/summary/index.js +0 -1
  855. package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
  856. package/build/models/data/customer/review/summary/star/index.js +0 -1
  857. package/build/models/data/district/index.d.ts +0 -12
  858. package/build/models/data/district/index.js +0 -1
  859. package/build/models/data/favorite-product/index.d.ts +0 -7
  860. package/build/models/data/favorite-product/index.js +0 -1
  861. package/build/models/data/filter-category/index.d.ts +0 -12
  862. package/build/models/data/filter-category/index.js +0 -1
  863. package/build/models/data/html-meta-data/index.d.ts +0 -28
  864. package/build/models/data/html-meta-data/index.js +0 -1
  865. package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
  866. package/build/models/data/html-meta-data/translations/index.js +0 -1
  867. package/build/models/data/image/index.d.ts +0 -9
  868. package/build/models/data/image/index.js +0 -1
  869. package/build/models/data/index.d.ts +0 -136
  870. package/build/models/data/last-viewed-product/index.d.ts +0 -6
  871. package/build/models/data/last-viewed-product/index.js +0 -1
  872. package/build/models/data/merchant-settings/index.d.ts +0 -12
  873. package/build/models/data/merchant-settings/index.js +0 -1
  874. package/build/models/data/order/address/city/index.d.ts +0 -7
  875. package/build/models/data/order/address/city/index.js +0 -1
  876. package/build/models/data/order/address/country/index.d.ts +0 -9
  877. package/build/models/data/order/address/country/index.js +0 -1
  878. package/build/models/data/order/address/district/index.d.ts +0 -7
  879. package/build/models/data/order/address/district/index.js +0 -1
  880. package/build/models/data/order/address/index.d.ts +0 -37
  881. package/build/models/data/order/address/index.js +0 -1
  882. package/build/models/data/order/address/state/index.d.ts +0 -7
  883. package/build/models/data/order/address/state/index.js +0 -1
  884. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
  885. package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
  886. package/build/models/data/order/adjustment/index.d.ts +0 -15
  887. package/build/models/data/order/adjustment/index.js +0 -1
  888. package/build/models/data/order/customer/index.d.ts +0 -11
  889. package/build/models/data/order/customer/index.js +0 -1
  890. package/build/models/data/order/gift-line/index.d.ts +0 -6
  891. package/build/models/data/order/gift-line/index.js +0 -1
  892. package/build/models/data/order/index.d.ts +0 -67
  893. package/build/models/data/order/index.js +0 -1
  894. package/build/models/data/order/invoice/index.d.ts +0 -12
  895. package/build/models/data/order/invoice/index.js +0 -1
  896. package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
  897. package/build/models/data/order/line-item/base-unit/index.js +0 -1
  898. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
  899. package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
  900. package/build/models/data/order/line-item/discount/index.d.ts +0 -11
  901. package/build/models/data/order/line-item/discount/index.js +0 -1
  902. package/build/models/data/order/line-item/index.d.ts +0 -45
  903. package/build/models/data/order/line-item/index.js +0 -1
  904. package/build/models/data/order/line-item/option/index.d.ts +0 -10
  905. package/build/models/data/order/line-item/option/index.js +0 -1
  906. package/build/models/data/order/line-item/option/value/index.d.ts +0 -7
  907. package/build/models/data/order/line-item/option/value/index.js +0 -1
  908. package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
  909. package/build/models/data/order/line-item/variant/brand/index.js +0 -1
  910. package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
  911. package/build/models/data/order/line-item/variant/category/index.js +0 -1
  912. package/build/models/data/order/line-item/variant/index.d.ts +0 -30
  913. package/build/models/data/order/line-item/variant/index.js +0 -1
  914. package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
  915. package/build/models/data/order/line-item/variant/price/index.js +0 -1
  916. package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
  917. package/build/models/data/order/line-item/variant/unit/index.js +0 -1
  918. package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
  919. package/build/models/data/order/line-item/variant/value/index.js +0 -1
  920. package/build/models/data/order/package/index.d.ts +0 -14
  921. package/build/models/data/order/package/index.js +0 -1
  922. package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
  923. package/build/models/data/order/package/tracking-info/index.js +0 -1
  924. package/build/models/data/order/payment-method/index.d.ts +0 -9
  925. package/build/models/data/order/payment-method/index.js +0 -1
  926. package/build/models/data/order/refund/index.d.ts +0 -7
  927. package/build/models/data/order/refund/index.js +0 -1
  928. package/build/models/data/order/refund/line-item/index.d.ts +0 -6
  929. package/build/models/data/order/refund/line-item/index.js +0 -1
  930. package/build/models/data/order/refund/settings/index.d.ts +0 -7
  931. package/build/models/data/order/refund/settings/index.js +0 -1
  932. package/build/models/data/order/shipping-line/index.d.ts +0 -12
  933. package/build/models/data/order/shipping-line/index.js +0 -1
  934. package/build/models/data/order/tax-line/index.d.ts +0 -6
  935. package/build/models/data/order/tax-line/index.js +0 -1
  936. package/build/models/data/order/transaction/error/index.d.ts +0 -7
  937. package/build/models/data/order/transaction/error/index.js +0 -1
  938. package/build/models/data/order/transaction/index.d.ts +0 -25
  939. package/build/models/data/order/transaction/index.js +0 -1
  940. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
  941. package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
  942. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
  943. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
  944. package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
  945. package/build/models/data/payment-gateway/additional-price/index.js +0 -1
  946. package/build/models/data/payment-gateway/index.d.ts +0 -31
  947. package/build/models/data/payment-gateway/index.js +0 -1
  948. package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
  949. package/build/models/data/payment-gateway/settings/index.js +0 -1
  950. package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
  951. package/build/models/data/payment-gateway/translation/index.js +0 -1
  952. package/build/models/data/product/attribute/index.d.ts +0 -15
  953. package/build/models/data/product/attribute/index.js +0 -1
  954. package/build/models/data/product/attribute/option/index.d.ts +0 -6
  955. package/build/models/data/product/attribute/option/index.js +0 -1
  956. package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
  957. package/build/models/data/product/attribute/table-cell/index.js +0 -1
  958. package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
  959. package/build/models/data/product/attribute/table-template/index.js +0 -1
  960. package/build/models/data/product/attribute/translation/index.d.ts +0 -13
  961. package/build/models/data/product/attribute/translation/index.js +0 -1
  962. package/build/models/data/product/attribute-value/index.d.ts +0 -28
  963. package/build/models/data/product/attribute-value/index.js +0 -1
  964. package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
  965. package/build/models/data/product/back-in-stock-settings/index.js +0 -1
  966. package/build/models/data/product/base-unit/index.d.ts +0 -12
  967. package/build/models/data/product/base-unit/index.js +0 -1
  968. package/build/models/data/product/campaign/data/index.d.ts +0 -27
  969. package/build/models/data/product/campaign/data/index.js +0 -1
  970. package/build/models/data/product/campaign/filter/index.d.ts +0 -7
  971. package/build/models/data/product/campaign/filter/index.js +0 -1
  972. package/build/models/data/product/campaign/index.d.ts +0 -7
  973. package/build/models/data/product/campaign/index.js +0 -1
  974. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
  975. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
  976. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
  977. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
  978. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
  979. package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
  980. package/build/models/data/product/filter/index.d.ts +0 -84
  981. package/build/models/data/product/filter/index.js +0 -1
  982. package/build/models/data/product/image/index.d.ts +0 -10
  983. package/build/models/data/product/image/index.js +0 -1
  984. package/build/models/data/product/index.d.ts +0 -62
  985. package/build/models/data/product/index.js +0 -1
  986. package/build/models/data/product/option-set/index.d.ts +0 -29
  987. package/build/models/data/product/option-set/index.js +0 -1
  988. package/build/models/data/product/option-set/option/index.d.ts +0 -72
  989. package/build/models/data/product/option-set/option/index.js +0 -1
  990. package/build/models/data/product/tag/index.d.ts +0 -6
  991. package/build/models/data/product/tag/index.js +0 -1
  992. package/build/models/data/product/variant/index.d.ts +0 -31
  993. package/build/models/data/product/variant/index.js +0 -1
  994. package/build/models/data/product/variant/price/index.d.ts +0 -19
  995. package/build/models/data/product/variant/price/index.js +0 -1
  996. package/build/models/data/product/variant/unit/index.d.ts +0 -6
  997. package/build/models/data/product/variant/unit/index.js +0 -1
  998. package/build/models/data/product/variant-type/index.d.ts +0 -8
  999. package/build/models/data/product/variant-type/index.js +0 -1
  1000. package/build/models/data/product/variant-type/init.d.ts +0 -2
  1001. package/build/models/data/raffle/index.d.ts +0 -63
  1002. package/build/models/data/raffle/index.js +0 -1
  1003. package/build/models/data/sales-channel/index.d.ts +0 -19
  1004. package/build/models/data/sales-channel/index.js +0 -1
  1005. package/build/models/data/state/index.d.ts +0 -8
  1006. package/build/models/data/state/index.js +0 -1
  1007. package/build/models/data/stock-location/address/city/index.d.ts +0 -7
  1008. package/build/models/data/stock-location/address/city/index.js +0 -1
  1009. package/build/models/data/stock-location/address/country/index.d.ts +0 -7
  1010. package/build/models/data/stock-location/address/country/index.js +0 -1
  1011. package/build/models/data/stock-location/address/district/index.d.ts +0 -7
  1012. package/build/models/data/stock-location/address/district/index.js +0 -1
  1013. package/build/models/data/stock-location/address/index.d.ts +0 -15
  1014. package/build/models/data/stock-location/address/index.js +0 -1
  1015. package/build/models/data/stock-location/address/state/index.d.ts +0 -7
  1016. package/build/models/data/stock-location/address/state/index.js +0 -1
  1017. package/build/models/data/stock-location/available/index.d.ts +0 -10
  1018. package/build/models/data/stock-location/available/index.js +0 -1
  1019. package/build/models/data/stock-location/index.d.ts +0 -14
  1020. package/build/models/data/stock-location/index.js +0 -1
  1021. package/build/models/data/storefront/domain/index.d.ts +0 -9
  1022. package/build/models/data/storefront/domain/index.js +0 -1
  1023. package/build/models/data/storefront/index.d.ts +0 -27
  1024. package/build/models/data/storefront/index.js +0 -1
  1025. package/build/models/data/storefront/localization/index.d.ts +0 -8
  1026. package/build/models/data/storefront/localization/index.js +0 -1
  1027. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
  1028. package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
  1029. package/build/models/data/storefront/routing/index.d.ts +0 -14
  1030. package/build/models/data/storefront/routing/index.js +0 -1
  1031. package/build/models/data/storefront/theme/index.d.ts +0 -10
  1032. package/build/models/data/storefront/theme/index.js +0 -1
  1033. package/build/models/data/storefront/theme-localization/index.d.ts +0 -13
  1034. package/build/models/data/storefront/theme-localization/index.js +0 -1
  1035. package/build/models/data/theme-json/component/index.d.ts +0 -20
  1036. package/build/models/data/theme-json/component/index.js +0 -1
  1037. package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
  1038. package/build/models/data/theme-json/component/prop/index.js +0 -1
  1039. package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
  1040. package/build/models/data/theme-json/custom-data/index.js +0 -1
  1041. package/build/models/data/theme-json/index.d.ts +0 -16
  1042. package/build/models/data/theme-json/index.js +0 -1
  1043. package/build/models/data/theme-json/page/component/index.d.ts +0 -7
  1044. package/build/models/data/theme-json/page/component/index.js +0 -1
  1045. package/build/models/data/theme-json/page/index.d.ts +0 -21
  1046. package/build/models/data/theme-json/page/index.js +0 -1
  1047. package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
  1048. package/build/models/data/theme-json/settings/color/index.js +0 -1
  1049. package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
  1050. package/build/models/data/theme-json/settings/favicon/index.js +0 -1
  1051. package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
  1052. package/build/models/data/theme-json/settings/font-family/index.js +0 -1
  1053. package/build/models/data/theme-json/settings/index.d.ts +0 -13
  1054. package/build/models/data/theme-json/settings/index.js +0 -1
  1055. package/build/models/data/variant-type/index.d.ts +0 -13
  1056. package/build/models/data/variant-type/index.js +0 -1
  1057. package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
  1058. package/build/models/data/variant-type/variant-value/index.js +0 -1
  1059. package/build/models/index.d.ts +0 -2
  1060. package/build/models/ui/blog-category-list/index.d.ts +0 -51
  1061. package/build/models/ui/blog-category-list/index.js +0 -1
  1062. package/build/models/ui/blog-list/index.d.ts +0 -55
  1063. package/build/models/ui/blog-list/index.js +0 -1
  1064. package/build/models/ui/brand-list/index.d.ts +0 -61
  1065. package/build/models/ui/brand-list/index.js +0 -1
  1066. package/build/models/ui/category-list/index.d.ts +0 -61
  1067. package/build/models/ui/category-list/index.js +0 -1
  1068. package/build/models/ui/component-renderer/index.d.ts +0 -7
  1069. package/build/models/ui/component-renderer/index.js +0 -1
  1070. package/build/models/ui/customer-review-list/index.d.ts +0 -43
  1071. package/build/models/ui/customer-review-list/index.js +0 -1
  1072. package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
  1073. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  1074. package/build/models/ui/index.d.ts +0 -25
  1075. package/build/models/ui/navigation-link/index.d.ts +0 -8
  1076. package/build/models/ui/navigation-link/index.js +0 -1
  1077. package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
  1078. package/build/models/ui/product-attribute-detail/index.js +0 -1
  1079. package/build/models/ui/product-attribute-list/index.d.ts +0 -8
  1080. package/build/models/ui/product-attribute-list/index.js +0 -1
  1081. package/build/models/ui/product-list/index.d.ts +0 -137
  1082. package/build/models/ui/product-list/index.js +0 -1
  1083. package/build/models/ui/raffle-list/index.d.ts +0 -53
  1084. package/build/models/ui/raffle-list/index.js +0 -1
  1085. package/build/models/ui/validator/form/account-info.d.ts +0 -39
  1086. package/build/models/ui/validator/form/account-info.js +0 -1
  1087. package/build/models/ui/validator/form/address.d.ts +0 -75
  1088. package/build/models/ui/validator/form/address.js +0 -1
  1089. package/build/models/ui/validator/form/contact-form.d.ts +0 -42
  1090. package/build/models/ui/validator/form/contact-form.js +0 -1
  1091. package/build/models/ui/validator/form/customer-review.d.ts +0 -34
  1092. package/build/models/ui/validator/form/customer-review.js +0 -1
  1093. package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
  1094. package/build/models/ui/validator/form/forgot-password.js +0 -1
  1095. package/build/models/ui/validator/form/login.d.ts +0 -32
  1096. package/build/models/ui/validator/form/login.js +0 -1
  1097. package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
  1098. package/build/models/ui/validator/form/raffle-form.js +0 -1
  1099. package/build/models/ui/validator/form/recover-password.d.ts +0 -33
  1100. package/build/models/ui/validator/form/recover-password.js +0 -1
  1101. package/build/models/ui/validator/form/register.d.ts +0 -49
  1102. package/build/models/ui/validator/form/register.js +0 -1
  1103. package/build/models/ui/validator/index.d.ts +0 -27
  1104. package/build/models/ui/validator/index.js +0 -1
  1105. package/build/models/ui/validator/rules/index.d.ts +0 -101
  1106. package/build/models/ui/validator/rules/index.js +0 -1
  1107. package/build/page-data-init/index.d.ts +0 -39
  1108. package/build/page-data-init/index.js +0 -1
  1109. package/build/pages/404.d.ts +0 -4
  1110. package/build/pages/404.js +0 -1
  1111. package/build/pages/[slug]/index.d.ts +0 -4
  1112. package/build/pages/_slug_/index.js +0 -1
  1113. package/build/pages/account/addresses.d.ts +0 -4
  1114. package/build/pages/account/addresses.js +0 -1
  1115. package/build/pages/account/favorite-products.d.ts +0 -4
  1116. package/build/pages/account/favorite-products.js +0 -1
  1117. package/build/pages/account/forgot-password.d.ts +0 -4
  1118. package/build/pages/account/forgot-password.js +0 -1
  1119. package/build/pages/account/index.d.ts +0 -4
  1120. package/build/pages/account/index.js +0 -1
  1121. package/build/pages/account/login.d.ts +0 -4
  1122. package/build/pages/account/login.js +0 -1
  1123. package/build/pages/account/orders/[id].d.ts +0 -4
  1124. package/build/pages/account/orders/_id_.js +0 -1
  1125. package/build/pages/account/orders/index.d.ts +0 -4
  1126. package/build/pages/account/orders/index.js +0 -1
  1127. package/build/pages/account/raffles.d.ts +0 -4
  1128. package/build/pages/account/raffles.js +0 -1
  1129. package/build/pages/account/recover-password.d.ts +0 -4
  1130. package/build/pages/account/recover-password.js +0 -1
  1131. package/build/pages/account/register.d.ts +0 -4
  1132. package/build/pages/account/register.js +0 -1
  1133. package/build/pages/blog/[slug].d.ts +0 -4
  1134. package/build/pages/blog/_slug_.js +0 -1
  1135. package/build/pages/blog/index.d.ts +0 -4
  1136. package/build/pages/blog/index.js +0 -1
  1137. package/build/pages/cart.d.ts +0 -4
  1138. package/build/pages/cart.js +0 -1
  1139. package/build/pages/checkout.d.ts +0 -16
  1140. package/build/pages/checkout.js +0 -1
  1141. package/build/pages/editor.d.ts +0 -10
  1142. package/build/pages/editor.js +0 -1
  1143. package/build/pages/home.d.ts +0 -4
  1144. package/build/pages/home.js +0 -1
  1145. package/build/pages/index.d.ts +0 -22
  1146. package/build/pages/pages/[slug].d.ts +0 -4
  1147. package/build/pages/pages/_slug_.js +0 -1
  1148. package/build/pages/raffle/[slug].d.ts +0 -4
  1149. package/build/pages/raffle/_slug_.js +0 -1
  1150. package/build/pages/raffle/index.d.ts +0 -4
  1151. package/build/pages/raffle/index.js +0 -1
  1152. package/build/pages/search.d.ts +0 -4
  1153. package/build/pages/search.js +0 -1
  1154. package/build/store/base.d.ts +0 -44
  1155. package/build/store/base.js +0 -1
  1156. package/build/store/blog/index.d.ts +0 -26
  1157. package/build/store/blog/index.js +0 -1
  1158. package/build/store/brand/index.d.ts +0 -12
  1159. package/build/store/brand/index.js +0 -1
  1160. package/build/store/cart/api.d.ts +0 -10
  1161. package/build/store/cart/api.js +0 -1
  1162. package/build/store/cart/index.d.ts +0 -27
  1163. package/build/store/cart/index.js +0 -1
  1164. package/build/store/category/index.d.ts +0 -12
  1165. package/build/store/category/index.js +0 -1
  1166. package/build/store/checkout/index.d.ts +0 -14
  1167. package/build/store/checkout/index.js +0 -1
  1168. package/build/store/customer/api.d.ts +0 -54
  1169. package/build/store/customer/api.js +0 -1
  1170. package/build/store/customer/index.d.ts +0 -74
  1171. package/build/store/customer/index.js +0 -1
  1172. package/build/store/html-meta-data/index.d.ts +0 -6
  1173. package/build/store/html-meta-data/index.js +0 -1
  1174. package/build/store/index.d.ts +0 -3
  1175. package/build/store/location/index.d.ts +0 -9
  1176. package/build/store/location/index.js +0 -1
  1177. package/build/store/merchant/index.d.ts +0 -6
  1178. package/build/store/product/index.d.ts +0 -36
  1179. package/build/store/product/index.js +0 -1
  1180. package/build/store/raffle/index.d.ts +0 -15
  1181. package/build/store/raffle/index.js +0 -1
  1182. package/build/store/storefront/index.d.ts +0 -5
  1183. package/build/utils/constants.d.ts +0 -2
  1184. package/build/utils/constants.js +0 -1
  1185. package/build/utils/currency.d.ts +0 -7
  1186. package/build/utils/currency.js +0 -1
  1187. package/build/utils/google-fonts.d.ts +0 -2
  1188. package/build/utils/google-fonts.js +0 -1
  1189. package/build/utils/helper.d.ts +0 -4
  1190. package/build/utils/helper.js +0 -1
  1191. package/build/utils/i18n.d.ts +0 -11
  1192. package/build/utils/i18n.js +0 -1
  1193. package/build/utils/index.d.ts +0 -3
@@ -1 +0,0 @@
1
- import*as e from"react";var t=function(t){var r=t.className;return e.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2DCA73"}),e.createElement("path",{d:"M12 20L18 26L28.0005 15.9998",stroke:"white","stroke-width":"3.2","stroke-linecap":"round"}))};export{t as default};
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- className?: string;
4
- };
5
- declare const SVGTag: React.FC<Props>;
6
- export default SVGTag;
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- className?: string;
4
- };
5
- declare const SVGWarning: React.FC<Props>;
6
- export default SVGWarning;
@@ -1 +0,0 @@
1
- import*as e from"react";var t=function(t){var r=t.className;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},e.createElement("circle",{cx:"8",cy:"8",r:"8",transform:"rotate(180 8 8)",fill:"currentColor"}),e.createElement("path",{d:"M8.50976 4L8.50977 10.0938L7.49023 10.0938L7.49023 4L8.50976 4ZM8 11.1191C8.17187 11.1191 8.32031 11.1816 8.44531 11.3066C8.57031 11.4316 8.63281 11.5801 8.63281 11.752C8.63281 11.9277 8.57031 12.0762 8.44531 12.1973C8.32031 12.3223 8.17187 12.3848 8 12.3848C7.82422 12.3848 7.67383 12.3223 7.54883 12.1973C7.42383 12.0762 7.36133 11.9277 7.36133 11.752C7.36133 11.5801 7.42383 11.4316 7.54883 11.3066C7.67383 11.1816 7.82422 11.1191 8 11.1191Z",fill:"white"}))};export{t as default};
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- value: boolean;
4
- label?: string | React.ReactNode;
5
- hasError?: boolean;
6
- removePadding?: boolean;
7
- onChange?: (value: boolean) => void;
8
- };
9
- export declare const Toggle: React.FC<Props>;
10
- export {};
@@ -1 +0,0 @@
1
- import*as e from"react";import{observer as o}from"mobx-react-lite";import r from"../checkbox/check.js";import a from"./style.module.scss.js";var c=o((function(o){var c=o.value,t=o.label,i=o.hasError,l=o.removePadding,n=o.onChange,m=[a.CheckboxBorder],s=[a.CheckboxLabel],h=[a.CheckboxTick];return c&&(m.push(a.Checked),h.push(a.Visible)),i&&s.push(a.CheckboxLabelError),e.createElement("div",{className:[a.CheckboxWrapper,l?a.WithoutPadding:"",t?"":a.WithoutLabel].join(" "),onClick:function(){n&&n(!c)}},e.createElement("div",{className:a.CheckboxContainer},e.createElement("div",{className:m.join(" ")}),e.createElement("div",{className:h.join(" ")},e.createElement(r,null))),!!t&&e.createElement("div",{className:s.join(" ")},t))}));export{c as Toggle};
@@ -1 +0,0 @@
1
- import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var o={CheckboxWrapper:"style-module_CheckboxWrapper__5RhYr",WithoutPadding:"style-module_WithoutPadding__dZ4VI",WithoutLabel:"style-module_WithoutLabel__YoWH0",CheckboxContainer:"style-module_CheckboxContainer__26lKe",CheckboxBorder:"style-module_CheckboxBorder__7A2SL",Checked:"style-module_Checked__PPUk8",CheckboxTick:"style-module_CheckboxTick__Qp5qA",Visible:"style-module_Visible__M3y9g",CheckboxLabel:"style-module_CheckboxLabel__Oj6l8",CheckboxLabelError:"style-module_CheckboxLabelError__tYedL"};e(".style-module_CheckboxWrapper__5RhYr {\n width: 100%;\n display: flex;\n padding: 0.5em 0;\n cursor: pointer;\n user-select: none;\n align-items: center;\n}\n.style-module_CheckboxWrapper__5RhYr.style-module_WithoutPadding__dZ4VI {\n padding: 0;\n}\n.style-module_CheckboxWrapper__5RhYr.style-module_WithoutLabel__YoWH0 {\n padding: 0;\n width: auto;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxContainer__26lKe {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 16px;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxBorder__7A2SL {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n border: 1px solid var(--checkout-border-color);\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width 0.2s ease-in-out;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxBorder__7A2SL.style-module_Checked__PPUk8 {\n border: 10px solid var(--checkout-button-bg-color);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxTick__Qp5qA {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: var(--checkout-button-text-color);\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: 0.1s;\n opacity: 0;\n transform: scale(0.2);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxTick__Qp5qA.style-module_Visible__M3y9g {\n opacity: 1;\n transform: scale(1.2);\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxLabel__Oj6l8 {\n flex: 1 1 auto;\n font-weight: normal;\n}\n.style-module_CheckboxWrapper__5RhYr .style-module_CheckboxLabelError__tYedL {\n color: var(--checkout-error-color);\n}");export{o as default};
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- text: string;
4
- className?: string;
5
- style?: React.CSSProperties;
6
- };
7
- declare const _default: React.FunctionComponent<Props>;
8
- export default _default;
@@ -1 +0,0 @@
1
- import*as t from"react";import{observer as e}from"mobx-react-lite";import a from"./style.module.scss.js";var o=e((function(e){var o=e.text,s=e.className,r=e.style;return t.createElement("div",{className:s,style:r},t.createElement("div",{className:a.TooltipContainer,"data-tip":o,"data-event":"touchstart focus mouseover","data-event-off":"mouseout"},"?"))}));export{o as default};
@@ -1 +0,0 @@
1
- import o from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={TooltipContainer:"style-module_TooltipContainer__bB7np",Tooltip:"style-module_Tooltip__tkB6D",TooltipArrow:"style-module_TooltipArrow__t4yQ1",Top:"style-module_Top__RLzwR",Bottom:"style-module_Bottom__KojVn",Left:"style-module_Left__v-Hrj",Right:"style-module_Right__wP-vR"};o(".style-module_TooltipContainer__bB7np {\n width: 16px;\n height: 16px;\n border-radius: 100%;\n color: white;\n background-color: var(--checkout-secondary-text-color);\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 12px !important;\n cursor: pointer;\n position: relative;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D {\n position: absolute;\n margin: auto;\n color: white;\n background-color: rgb(64, 64, 64);\n border-radius: 4px;\n padding: 12px;\n font-size: 12px;\n display: none;\n width: 280px;\n text-align: center;\n z-index: 999;\n font-size: 16px !important;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D .style-module_TooltipArrow__t4yQ1 {\n background-color: rgb(64, 64, 64);\n width: 12px;\n height: 12px;\n transform: rotate(45deg);\n position: absolute;\n margin: auto;\n border-radius: 2px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Top__RLzwR {\n bottom: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Top__RLzwR .style-module_TooltipArrow__t4yQ1 {\n bottom: -4px;\n left: 0;\n right: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Bottom__KojVn {\n top: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Bottom__KojVn .style-module_TooltipArrow__t4yQ1 {\n top: -4px;\n left: 0;\n right: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Left__v-Hrj {\n right: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Left__v-Hrj .style-module_TooltipArrow__t4yQ1 {\n right: -4px;\n top: 0;\n bottom: 0;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Right__wP-vR {\n left: 26px;\n}\n.style-module_TooltipContainer__bB7np .style-module_Tooltip__tkB6D.style-module_Right__wP-vR .style-module_TooltipArrow__t4yQ1 {\n left: -4px;\n top: 0;\n bottom: 0;\n}\n.style-module_TooltipContainer__bB7np:hover .style-module_Tooltip__tkB6D {\n display: inline-flex;\n}");export{t as default};
@@ -1,32 +0,0 @@
1
- import * as React from "react";
2
- import { IkasCheckoutSettings } from "../../models/data/checkout-settings";
3
- import { IkasCheckout } from "../../models/data/checkout";
4
- export declare type IkasCheckoutPageProps = {
5
- checkout: IkasCheckout;
6
- checkoutSettings: IkasCheckoutSettings;
7
- customizationProps?: IkasCheckoutCustomizationProps;
8
- returnPolicy: string;
9
- privacyPolicy: string;
10
- termsOfService: string;
11
- };
12
- export declare type IkasCheckoutCustomizationProps = {
13
- showTax?: boolean;
14
- buttonBgColor?: string;
15
- buttonTextColor?: string;
16
- buttonDisabledBgColor?: string;
17
- buttonDisabledTextColor?: string;
18
- primaryTextColor?: string;
19
- secondaryTextColor?: string;
20
- primaryBgColor?: string;
21
- secondaryBgColor?: string;
22
- borderColor?: string;
23
- cardBgColor?: string;
24
- errorColor?: string;
25
- errorLightColor?: string;
26
- warningColor?: string;
27
- warningLightColor?: string;
28
- successColor?: string;
29
- successLightColor?: string;
30
- };
31
- declare const _default: React.FunctionComponent<IkasCheckoutPageProps>;
32
- export default _default;
@@ -1 +0,0 @@
1
- import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import s from"next/link.js";import a from'./../../ext/react-tooltip/dist/index.es.js';import l,{CheckoutStep as n}from"./model.js";import{IkasStorefrontConfig as c}from"@ikas/storefront-config";import{formatCurrency as m}from"../../utils/currency.js";import{useTranslation as d}from"../../utils/i18n.js";import p from"./steps/step-info/index.js";import{CheckoutStepShipping as u}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as v}from"./steps/step-payment/index.js";import{CartSummary as h}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"mobx";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as g}from"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as E}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as f}from"./steps/step-success/index.js";import{Modal as x}from"./components/modal/index.js";import k from"./components/master-pass/modal-otp/index.js";import y from"./components/master-pass/modal-link-card-to-client/index.js";import j from"./components/master-pass/modal-response/index.js";import C from"./components/master-pass/modal-success/index.js";import{Image as b}from"../image/index.js";import N,{Step as M}from"./components/step-container/index.js";import{StockError as F}from"./components/error/stock-error/index.js";import{FullscreenLoading as T}from"./components/fullscreen-loading/index.js";import P from"./components/notification-box/index.js";import{FormItem as S}from"./components/form-item/index.js";import{FormItemType as A}from"./components/form-item/model.js";import{Button as V}from"./components/button/index.js";import{IkasPageHead as w}from"../page/head.js";import L from"./components/offer-product/index.js";import O from"./components/svg/ikas.js";import I from"./style.module.scss.js";import{Analytics as B}from"../../analytics/analytics.js";import"../../analytics/head/index.js";var R=i((function(e){var t,i,s,m=e.checkout,p=e.checkoutSettings,u=e.customizationProps,v=e.returnPolicy,E=e.privacyPolicy,b=e.termsOfService,N=d().t,M=r(),P=o.useState((function(){return new l(m,p,M,v,E,b,N,u||{})}))[0];return P.step===n.PAYMENT&&B.disableHTML(),o.useEffect((function(){P.checkoutSettings.isAccountRequired&&!P.checkout.hasCustomer&&M.push("/account/login?redirect="+encodeURIComponent(P.checkoutUrl)),B.beginCheckout(P.checkout),B.pageView(g.CHECKOUT)}),[]),o.useEffect((function(){P.customizationProps=u,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED")}(u)}),[u]),P.isCheckoutLoaded&&P.store.customerStore.initialized?P.checkout.hasCustomer&&(null===(t=P.store.customerStore.customer)||void 0===t?void 0:t.id)!==(null===(i=P.checkout.customer)||void 0===i?void 0:i.id)?(M.push("/account/login?redirect="+encodeURIComponent(P.checkoutUrl)),null):o.createElement(o.Fragment,null,o.createElement(w,{pageType:g.CHECKOUT,pageTitle:((null===(s=P.merchantSettings)||void 0===s?void 0:s.merchantName)||"")+" - "+N("checkout-page:securePayment"),pageDescription:N("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:I.CheckoutPage},o.createElement(a,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:I.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:I.Left},o.createElement("div",{className:I.LeftContent},o.createElement("div",null,o.createElement(D,{vm:P}),P.hasStockError&&o.createElement("div",{className:I.ErrorContainer},o.createElement(F,{vm:P,error:P.error})),!P.hasStockError&&o.createElement(o.Fragment,null,o.createElement(h,{vm:P,allowExpand:!0}),P.step===n.SUCCESS?o.createElement(f,{vm:P}):o.createElement(o.Fragment,null,P.checkoutCampaignOffer&&o.createElement(L,{vm:P,campaignOffer:P.checkoutCampaignOffer}),o.createElement(U,{vm:P}))),o.createElement("div",{className:I.Space})),o.createElement(Y,{vm:P}))),o.createElement("div",{className:I.Right},o.createElement("div",{className:I.RightContent},o.createElement(h,{vm:P}),o.createElement("div",{className:I.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===c.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(O,null))))),!!P.policyModalText&&o.createElement(x,{title:P.policyModalTitle,modalContent:P.policyModalText,onClose:function(){P.policyModalText=""}}),P.isContactModalVisible&&o.createElement(z,{vm:P,setVisible:P.setContactModalVisible}),P.mpVM.isLinkCardToClientModalVisible&&o.createElement(y,{visible:P.mpVM.isLinkCardToClientModalVisible,vm:P,onClose:P.mpVM.hideLinkCardToClientModal}),P.mpVM.isOtpModalVisible&&o.createElement(k,{vm:P,visible:P.mpVM.isOtpModalVisible,type:P.mpVM.otpModalType,onClose:P.mpVM.hideOtpModal}),P.mpVM.isResponseModalVisible&&o.createElement(j,{visible:P.mpVM.isResponseModalVisible,text:P.mpVM.mfsResponseModalText,onClose:P.mpVM.onResponseModalClose}),P.mpVM.isSuccessModalVisible&&o.createElement(C,{visible:P.mpVM.isSuccessModalVisible,type:P.mpVM.successModalType,onClose:P.mpVM.onSuccessModalClose}))):o.createElement(T,null)})),D=i((function(e){var t,i,r,a=e.vm,l=d().t;return o.createElement("div",{className:I.Header},o.createElement(s,{href:"/",passHref:!0},o.createElement("a",null,(null===(t=a.merchantSettings)||void 0===t?void 0:t.logo)?o.createElement("div",{className:I.Logo},o.createElement(b,{layout:"fill",image:a.merchantSettings.logo,sizes:"360px"})):(null===(i=a.merchantSettings)||void 0===i?void 0:i.merchantName)||"")),!a.checkout.hasCustomer&&o.createElement("div",{className:I.LoginText},o.createElement("span",{className:I.LoginCta},l("checkout-page:alreadyHaveAnAccount")),o.createElement(s,{href:"/account/login?redirect="+encodeURIComponent(a.checkoutUrl),passHref:!0},o.createElement("a",{className:I.LoginBtn},l("checkout-page:actions.login")))),a.checkout.hasCustomer&&o.createElement("div",{className:I.CustomerInfo},o.createElement("div",{className:I.Name},a.checkout.customerFullName),o.createElement("div",{className:I.Email},null===(r=a.checkout.customer)||void 0===r?void 0:r.email)))})),U=i((function(e){var t=e.vm,i=d().t,r=o.useMemo((function(){switch(t.step){case n.INFO:return o.createElement(p,{vm:t});case n.SHIPPING:return o.createElement(u,{vm:t});case n.PAYMENT:return o.createElement(v,{vm:t});case n.SUCCESS:return o.createElement(f,{vm:t})}}),[t,t.step]),s=[new M(i("checkout-page:address"),t.step===n.INFO,t.step!==n.INFO,t.step!==n.INFO?o.createElement("div",{className:I.AdressStepInfo},o.createElement(H,{vm:t}),o.createElement("div",{className:I.EditBtn,onClick:t.onBackToInfoClick},i("checkout-page:actions.edit"))):void 0,t.step!==n.INFO?o.createElement("div",{className:I.AddressStepInfoMobile},o.createElement(H,{vm:t})):void 0),new M(i("checkout-page:payment"),t.step===n.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||s.splice(1,0,new M(i("checkout-page:shipping"),t.step===n.SHIPPING,t.step===n.PAYMENT,t.step===n.PAYMENT?o.createElement("div",{className:I.AdressStepInfo},o.createElement(G,{vm:t}),(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:I.EditBtn,onClick:t.onBackToShippingClick},i("checkout-page:actions.edit"))):void 0,t.step===n.PAYMENT?o.createElement("div",{className:I.AddressStepInfoMobile},o.createElement(G,{vm:t})):void 0)),o.createElement(N,{steps:s,stepContent:r})})),H=i((function(e){var t,i,r,s,a,l,n,c,m,p=e.vm,u=d().t,v=p.isDigitalOnly?((null===(t=p.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(i=p.checkout.billingAddress)||void 0===i?void 0:i.lastName)||""):((null===(r=p.checkout.shippingAddress)||void 0===r?void 0:r.firstName)||"")+" "+((null===(s=p.checkout.shippingAddress)||void 0===s?void 0:s.lastName)||"");return o.createElement("div",{className:I.Address},o.createElement("div",{className:[I.Text,I.WithMBottom].join(" ")},(null===(a=p.checkout.customer)||void 0===a?void 0:a.email)||""),"address"===p.deliveryMethod?o.createElement("div",{className:I.Text},v):o.createElement(o.Fragment,null,o.createElement("div",{className:I.Text},u("checkout-page:receiver")),o.createElement("div",{className:[I.Text,I.Gray].join(" ")},v)),o.createElement("div",{className:[I.Text,I.Gray].join(" ")},p.isDigitalOnly?null===(l=p.checkout.billingAddress)||void 0===l?void 0:l.phone:null===(n=p.checkout.shippingAddress)||void 0===n?void 0:n.phone),"in-store"===p.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[I.Text,I.WithMTop].join(" ")},u("checkout-page:pickUpLocation"))),o.createElement("div",{className:[I.Text,I.Gray].join(" ")},p.isDigitalOnly?null===(c=p.checkout.billingAddress)||void 0===c?void 0:c.addressText:null===(m=p.checkout.shippingAddress)||void 0===m?void 0:m.addressText))})),G=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:I.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:I.LightText}," / "+(0===t.checkout.shippingLines[0].price?i("checkout-page:free"):m(t.checkout.shippingLines[0].price,t.checkout.currencyCode,t.checkout.currencySymbol)))):i("checkout-page:standartShipping"))})),Y=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:I.Footer},o.createElement("div",{className:I.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},i("checkout-page:returnPolicy")),o.createElement("div",{className:I.FooterBullet},"•"),o.createElement("div",{className:I.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},i("checkout-page:privacyPolicy")),o.createElement("div",{className:I.FooterBullet},"•"),o.createElement("div",{className:I.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},i("checkout-page:termsOfService")))})),z=i((function(i){var r,s,a,l=i.vm,n=i.setVisible,c=d().t,m=o.useState(!1),p=m[0],u=m[1],v=o.useState(!1),h=v[0],g=v[1],f=o.useState(new E({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];f.email=(null===(r=l.checkout.customer)||void 0===r?void 0:r.email)||"",f.firstName=(null===(s=l.checkout.customer)||void 0===s?void 0:s.firstName)||"",f.lastName=(null===(a=l.checkout.customer)||void 0===a?void 0:a.lastName)||"";var k=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return h?[2,n(!1)]:(u(!0),[4,f.saveContactForm()]);case 1:return e.sent()&&g(!0),u(!1),[2]}}))}))}),[p]);return o.createElement(x,{title:c("checkout-page:contactForm"),modalContent:o.createElement("div",null,h&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(P,{type:"success",title:c("checkout-page:contactFormSent"),content:c("checkout-page:contactFormDescription")})),o.createElement(S,{type:A.TEXT_AREA,label:"",value:f.message||"",onChange:f.onMessageChange,textAreaPlaceholder:c("checkout-page:contactFormCta")}),o.createElement(V,{style:{width:"100%",marginTop:"24px"},text:c(h?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:p,isDisabled:!f.message,onClick:k})),onClose:function(){return n(!1)}})}));export{R as default};
@@ -1,161 +0,0 @@
1
- import { NextRouter } from "next/router.js";
2
- import { IkasMerchantSettings, IkasAvailableShippingMethod, IkasOrderLineItem, IkasOrderTransaction, IkasProduct, IkasProductVariant, IkasCartCampaignOffer, IkasCheckout, IkasStockLocation, IkasAvailableStockLocation, IkasCampaignOfferTargetPageType, IkasCampaignOfferProduct } from "../../models";
3
- import { IkasPaymentGateway } from "../../models/data/payment-gateway";
4
- import { IkasOrderLineVariant } from "../../models/data/order/line-item/variant";
5
- import { IkasStorefront } from "../../models/data/storefront";
6
- import CreditCardData from "./components/credit-card-form/model";
7
- import { IkasCheckoutSettings } from "../../models/data/checkout-settings";
8
- import { TFunction } from "../../utils/i18n";
9
- import { IkasCheckoutCustomizationProps } from ".";
10
- import MasterPassModel from "./modelMasterPass";
11
- import { CreateStripePaymentIntentResponse, RetrieveInstallmentInfoResponse, UpdateCartCampaignOfferInput } from "@ikas/storefront-api";
12
- import { IkasBaseStore } from "../../store";
13
- import { RetrieveInstallmentInfoQueryParams, SaveCartInput } from "@ikas/storefront-api";
14
- export default class CheckoutViewModel {
15
- checkout: IkasCheckout;
16
- checkoutSettings: IkasCheckoutSettings;
17
- storefront?: IkasStorefront | null;
18
- router: NextRouter;
19
- isCheckoutLoaded: boolean;
20
- isErrorsVisible: boolean;
21
- isStepLoading: boolean;
22
- isTermsAndConditionsChecked: boolean;
23
- isChangingShippingMethod: boolean;
24
- isContactModalVisible: boolean;
25
- step: CheckoutStep;
26
- customizationProps?: IkasCheckoutCustomizationProps | null;
27
- cardData?: CreditCardData | null;
28
- paymentGateways: IkasPaymentGateway[];
29
- installmentInfo?: RetrieveInstallmentInfoResponse | null;
30
- useDifferentAddress: boolean;
31
- shouldSaveAddress: boolean;
32
- addressTitle: string;
33
- shippingCountryIds?: string[] | null;
34
- selectedShippingAddressId?: string;
35
- selectedBillingAddressId?: string;
36
- stockLocations: IkasStockLocation[];
37
- availableStockLocations: IkasAvailableStockLocation[];
38
- deliveryMethod: "address" | "in-store";
39
- stripeResponse: CreateStripePaymentIntentResponse | null;
40
- checkoutCampaignOffer?: CampaignOfferType;
41
- postCheckoutCampaignOffer?: CampaignOfferType;
42
- returnPolicy: string;
43
- privacyPolicy: string;
44
- termsOfService: string;
45
- policyModalTitle: string;
46
- policyModalText: string;
47
- error?: CheckoutError | null;
48
- successTransaction?: IkasOrderTransaction;
49
- mpVM: MasterPassModel;
50
- showTestModal: boolean;
51
- t: TFunction;
52
- constructor(checkout: IkasCheckout, checkoutSettings: IkasCheckoutSettings, router: NextRouter, returnPolicy: string, privacyPolicy: string, termsOfService: string, t: TFunction, customizationProps: IkasCheckoutCustomizationProps);
53
- init: () => Promise<void>;
54
- initStep: () => Promise<void>;
55
- getSuccessTransaction: () => Promise<void>;
56
- get merchantSettings(): IkasMerchantSettings;
57
- get selectedPaymentGatewayIndex(): number;
58
- get selectedInstallmentIndex(): number;
59
- get checkoutUrl(): string;
60
- get customerAddressOptions(): {
61
- label: string;
62
- value: string;
63
- }[];
64
- get installmentPrice(): number | null | undefined;
65
- get installmentExtraPrice(): number | undefined;
66
- get finalPrice(): number;
67
- get hasStockError(): boolean;
68
- get isPaymentGatewayHasMasterPass(): boolean;
69
- get canProceedToShipping(): boolean | undefined;
70
- get canProceedToInStoreDelivery(): boolean;
71
- get canProceedToPayment(): boolean | undefined;
72
- get isInStoreDelivery(): boolean;
73
- get isCustomFlowStripe(): false | import("../../models").IkasPaymentGatewaySettings | null | undefined;
74
- get store(): IkasBaseStore;
75
- get canPerformPayment(): boolean | undefined;
76
- get isDigitalOnly(): boolean;
77
- saveCart: () => Promise<import("../../models").IkasCart | null | undefined>;
78
- inStockDeliveryInputData: (input: SaveCartInput) => Promise<SaveCartInput>;
79
- checkStocks: () => Promise<void>;
80
- removeUnavailableItems: (items: IkasOrderLineItem[]) => Promise<void>;
81
- getShippingCountries: () => Promise<void>;
82
- getStockLocations: () => Promise<void>;
83
- getAvailableStockLocations: () => Promise<void>;
84
- checkShippingCountries: () => void;
85
- onDeliveryMethodChange: (deliveryMethod: "address" | "in-store") => void;
86
- initialStockCheck: () => Promise<void>;
87
- listPaymentGateways: () => Promise<void>;
88
- retrieveInstallmentInfo: (params: RetrieveInstallmentInfoQueryParams) => Promise<void>;
89
- createCustomer: () => void;
90
- createShippingAddress: () => void;
91
- createBillingAddress: () => void;
92
- onShippingMethodChange: (shippingMethod: IkasAvailableShippingMethod) => Promise<void>;
93
- onStockLocationChange: (location: IkasStockLocation) => Promise<void>;
94
- onCouponCodeApply: () => Promise<void>;
95
- onSelectedShippingAddressIdChange: (value: string) => void;
96
- onSelectedBillingAddressIdChange: (value: string) => void;
97
- onTermsAndConditionsCheckedChange: (value: boolean) => void;
98
- onCardNumberChange: (value: string) => void;
99
- onCardHolderNameChange: (value: string) => void;
100
- onExpirationDateChange: (value: string) => void;
101
- onCvcChange: (value: string) => void;
102
- saveAddress: (type: "billing" | "shipping") => Promise<void>;
103
- onGoToCartClick: () => void;
104
- onBackToShoppingClick: () => void;
105
- onProceedToShippingClick: () => Promise<void>;
106
- onProceedToDigitalOnlyPaymentClick: () => Promise<void>;
107
- onProceedToPaymentClick: () => Promise<void>;
108
- onCompletePaymentClick: () => Promise<void>;
109
- onCompleteDigitalOnlyPaymentClick: () => Promise<void>;
110
- createSaleTransaction: () => Promise<void>;
111
- onCheckoutTransactionSuccess: () => Promise<void>;
112
- onBackToInfoClick: () => void;
113
- onBackToShippingClick: () => void;
114
- setCustomerConsentGranted: (value: boolean) => void;
115
- setUseDifferentAddress: (value: boolean) => void;
116
- setShouldSaveAddress: (value: boolean) => void;
117
- setAddressTitle: (value: string) => void;
118
- setPaymentGateway: (index: number) => Promise<void>;
119
- setInstallmentCount: (count: number) => void;
120
- changeStep: (step: CheckoutStep) => Promise<void>;
121
- logout: () => Promise<void>;
122
- setContactModalVisible: (value: boolean) => void;
123
- getWaitingForActionCampaignOffers: (targetPage: IkasCampaignOfferTargetPageType) => IkasCartCampaignOffer[] | undefined;
124
- getOffer: (waitingForActionCampaignOffer: IkasCartCampaignOffer) => IkasCampaignOfferProduct | null | undefined;
125
- getProduct: (productId: string) => Promise<IkasProduct | null>;
126
- getOfferProductVariants: ({ offer, product, }: {
127
- offer: IkasCampaignOfferProduct;
128
- product: IkasProduct;
129
- }) => IkasProductVariant[];
130
- getCampaignOfferProducts: (targetPage: IkasCampaignOfferTargetPageType) => Promise<CampaignOfferType | undefined>;
131
- getCampaignOffer: () => Promise<void>;
132
- updateCartCampaignOffer: (props: UpdateCartCampaignOfferInput) => Promise<void>;
133
- }
134
- export declare enum CheckoutStep {
135
- INFO = "info",
136
- SHIPPING = "shipping",
137
- PAYMENT = "payment",
138
- SUCCESS = "success"
139
- }
140
- export declare enum ErrorType {
141
- UNKNOWN = 0,
142
- API_ERROR = 1,
143
- STOCK_ERROR = 2,
144
- PAYMENT_ERROR = 3,
145
- NO_SHIPPING_ERROR = 4,
146
- CUSTOMER_LOGIN_REQUIRED_ERROR = 5
147
- }
148
- export declare type CheckoutError = {
149
- type: ErrorType;
150
- data?: any;
151
- };
152
- export declare type StockErrorData = {
153
- variant: IkasOrderLineVariant;
154
- availableQuantity: number;
155
- };
156
- export declare type CampaignOfferType = {
157
- product: IkasProduct;
158
- variants: IkasProductVariant[];
159
- campaignOffer: IkasCartCampaignOffer;
160
- offer: IkasCampaignOfferProduct;
161
- };
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e,__assign as i}from'./../../ext/tslib/tslib.es6.js';import{makeAutoObservable as s}from"mobx";import n from"lodash/cloneDeep";import r from"lodash/sortBy";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasTransactionStatus as o,IkasPaymentMethodType as a,IkasPaymentGatewayType as c,IkasCartCampaignOfferStatus as d,IkasCampaignOfferTargetPageType as u,IkasOrderShippingMethod as l}from"@ikas/storefront-models";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import{IkasCheckout as h}from"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import{IkasCustomerAddress as p}from"../../models/data/customer/address/index.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import{IkasMerchantSettings as m}from"../../models/data/merchant-settings/index.js";import{IkasOrderAddress as f}from"../../models/data/order/address/index.js";import{IkasOrderCustomer as v}from"../../models/data/order/customer/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import{IkasProduct as g}from"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/state/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import y from"./components/credit-card-form/model.js";import S from"../../store/customer/api.js";import k from"../../store/checkout/index.js";import b from"../../store/cart/api.js";import C from"./modelMasterPass.js";import I from"../../store/product/index.js";import{IkasBaseStore as P}from"../../store/base.js";import"../../store/customer/index.js";import"../../store/cart/index.js";import{IkasStorefrontConfig as A}from"@ikas/storefront-config";import{Analytics as w}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{SaveCartInput as N,CheckStocksLineInput as O}from"@ikas/storefront-api";var E,j,R=/^\d+$/,T="undefined"==typeof localStorage,x=function(){function R(l,m,R,x,L,G,_,V){var U=this;this.storefront=null,this.isCheckoutLoaded=!1,this.isErrorsVisible=!1,this.isStepLoading=!1,this.isTermsAndConditionsChecked=!1,this.isChangingShippingMethod=!1,this.isContactModalVisible=!1,this.step=E.INFO,this.customizationProps=null,this.cardData=null,this.paymentGateways=[],this.installmentInfo=null,this.useDifferentAddress=!1,this.shouldSaveAddress=!0,this.addressTitle="",this.shippingCountryIds=null,this.selectedShippingAddressId="-1",this.selectedBillingAddressId="-1",this.stockLocations=[],this.availableStockLocations=[],this.deliveryMethod="address",this.stripeResponse=null,this.policyModalTitle="",this.policyModalText="",this.error=null,this.showTestModal=!1,this.init=function(){return t(U,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,P.getInstance().customerStore.waitUntilInitialized()];case 1:return t.sent(),this.createCustomer(),this.createShippingAddress(),this.createBillingAddress(),[4,this.getCampaignOffer()];case 2:return t.sent(),[4,this.initStep()];case 3:return t.sent(),[2]}}))}))},this.initStep=function(){return t(U,void 0,void 0,(function(){var t,i,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:if(A.getIsEditor())return this.step=E.INFO,this.isCheckoutLoaded=!0,[2];if(t=new URLSearchParams(window.location.search),i=t.get("step"),s=t.get("failed"),n=t.get("error"),i){if(this.step=i,this.step===E.SHIPPING&&!this.canProceedToShipping)return[2,this.changeStep(E.INFO)];if(this.step!==E.PAYMENT||this.canProceedToPayment){if(this.step===E.SUCCESS&&!this.canProceedToPayment)return[2,this.changeStep(E.INFO)];if(![E.INFO,E.SUCCESS,E.SHIPPING,E.PAYMENT].includes(this.step))return[2,this.changeStep(E.INFO)]}else{if(!this.isInStoreDelivery)return[2,this.changeStep(E.INFO)];this.deliveryMethod="in-store"}}return s&&(this.error={type:j.PAYMENT_ERROR,data:n||null}),this.step!==E.INFO?[3,4]:[4,this.getShippingCountries()];case 1:return e.sent(),this.checkShippingCountries(),[4,this.getStockLocations()];case 2:return e.sent(),[4,this.getAvailableStockLocations()];case 3:e.sent(),this.isInStoreDelivery&&(this.deliveryMethod="in-store"),e.label=4;case 4:return this.step!==E.SHIPPING||1!==(null===(o=this.checkout.availableShippingMethods)||void 0===o?void 0:o.length)||this.checkoutSettings.isGiftPackageEnabled||(this.step=E.PAYMENT,this.router.replace("/checkout?id=".concat(this.checkout.id,"&step=").concat(this.step),void 0,{shallow:!0})),this.step!==E.SHIPPING||(null===(a=this.checkout.availableShippingMethods)||void 0===a?void 0:a.length)?this.step!==E.PAYMENT&&this.step!==E.SUCCESS?[3,8]:[4,this.listPaymentGateways()]:(this.error={type:j.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2]);case 5:return e.sent(),this.isInStoreDelivery?(this.deliveryMethod="in-store",[4,this.getStockLocations()]):[3,7];case 6:e.sent(),e.label=7;case 7:if(!this.paymentGateways.length)return this.error={type:j.NO_SHIPPING_ERROR},this.isCheckoutLoaded=!0,[2];e.label=8;case 8:return this.step===E.SUCCESS?[3,12]:this.checkout.isComplete?[2,this.changeStep(E.SUCCESS)]:[3,9];case 9:return[4,this.initialStockCheck()];case 10:e.sent(),e.label=11;case 11:return[3,14];case 12:return[4,this.getSuccessTransaction()];case 13:e.sent(),this.successTransaction&&(r=this.successTransaction.paymentGatewayId,this.checkout.selectedPaymentGateway=this.paymentGateways.find((function(t){return t.id===r}))),e.label=14;case 14:return this.isCheckoutLoaded=!0,w.checkoutStep(this.checkout,this.step),[2]}}))}))},this.getSuccessTransaction=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,S.listOrderTransactions({orderId:{eq:this.checkout.id}})];case 1:return t=e.sent(),this.successTransaction=t.isSuccess&&(null===(i=t.data)||void 0===i?void 0:i.length)?t.data[0]:void 0,[2]}}))}))},this.saveCart=function(){return t(U,void 0,void 0,(function(){var t,i,s,n;return e(this,(function(e){switch(e.label){case 0:return t=new N(this.checkout),"in-store"!==this.deliveryMethod?[3,2]:[4,this.inStockDeliveryInputData(t)];case 1:t=e.sent(),e.label=2;case 2:return this.step!==E.INFO&&this.step!==E.SHIPPING||this.isDigitalOnly||(t.billingAddress=null),this.isDigitalOnly&&(t.shippingAddress=null),[4,b.saveCart({input:t})];case 3:if((null==(i=e.sent())?void 0:i.graphQLErrors)&&i.graphQLErrors.length)throw s=i.graphQLErrors[0],"CUSTOMER_LOGIN_REQUIRED"===(null===(n=s.extensions)||void 0===n?void 0:n.code)?{type:j.CUSTOMER_LOGIN_REQUIRED_ERROR}:{type:j.API_ERROR,data:i.firstErrorMessage};return[2,i.data]}}))}))},this.inStockDeliveryInputData=function(i){return t(U,void 0,void 0,(function(){var t,s,n=this;return e(this,(function(e){return t=i,(s=this.stockLocations.find((function(t){return t.id===n.checkout.stockLocationId})))&&t.shippingAddress&&s.address&&(t.shippingAddress.country=s.address.country,t.shippingAddress.city=s.address.city,t.shippingAddress.state=s.address.state,t.shippingAddress.district=s.address.district,t.shippingAddress.postalCode=s.address.postalCode,t.shippingAddress.addressLine1=s.address.address||"",t.shippingAddress.addressLine2=null),[2,t]}))}))},this.checkStocks=function(){return t(U,void 0,void 0,(function(){var t,i,s,n,r,o,a,c,d,u,l,h;return e(this,(function(e){switch(e.label){case 0:return t=this.checkout.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,k.checkStocks({lines:t.map((function(t){return new O(t)})),stockLocationIdList:(null===(d=A.getStockLocationIds())||void 0===d?void 0:d.length)?A.getStockLocationIds():null})];case 1:if(!(i=e.sent()).isSuccess)throw{type:j.API_ERROR,data:i.firstErrorMessage};if(null==(s=null===(l=null===(u=i.data)||void 0===u?void 0:u.lines)||void 0===l?void 0:l.filter((function(t){return!t.isAvailable})))?void 0:s.length){for(n=[],r=function(t){var e=null===(h=P.getInstance().cartStore.cart)||void 0===h?void 0:h.items.find((function(e){return e.variant.id===t.variantId}));e&&n.push(e)},o=0,a=s;o<a.length;o++)c=a[o],r(c);throw{type:j.STOCK_ERROR,data:n}}return[2]}}))}))},this.removeUnavailableItems=function(i){return t(U,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:t=0,s=i,e.label=1;case 1:return t<s.length?(n=s[t],[4,P.getInstance().cartStore.removeItem(n)]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))},this.getShippingCountries=function(){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,k.getAvailableShippingCountries({salesChannelId:A.getSalesChannelId()})];case 1:return t=e.sent(),this.shippingCountryIds=t.data,[2]}}))}))},this.getStockLocations=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return A.getPickupStockLocationIds()?[4,k.listStockLocation({id:{in:A.getPickupStockLocationIds()}})]:[3,2];case 1:if(!(t=e.sent()).isSuccess||!(null===(i=t.data)||void 0===i?void 0:i.length))return this.error={type:j.API_ERROR,data:t.firstErrorMessage},[2];this.stockLocations=t.data,e.label=2;case 2:return[2]}}))}))},this.getAvailableStockLocations=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return A.getPickupStockLocationIds()?(t=this.checkout.items.map((function(t){return{quantity:t.quantity,variantId:t.variant.id,productId:t.variant.productId}})),[4,k.getAvailableStockLocations({lines:t.map((function(t){return new O(t)})),stockLocationIdList:A.getPickupStockLocationIds()})]):[3,2];case 1:if(!(i=e.sent()).isSuccess)return this.error={type:j.API_ERROR},[2];this.availableStockLocations=i.data||[],e.label=2;case 2:return[2]}}))}))},this.checkShippingCountries=function(){var t;(null===(t=U.shippingCountryIds)||void 0===t?void 0:t.length)||(U.error={type:j.NO_SHIPPING_ERROR})},this.onDeliveryMethodChange=function(t){"address"===t&&(U.checkout.stockLocationId=null),U.deliveryMethod=t,U.isErrorsVisible=!1},this.initialStockCheck=function(){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.checkStocks()];case 1:return e.sent(),[3,3];case 2:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:j.UNKNOWN}),[3,3];case 3:return[2]}}))}))},this.listPaymentGateways=function(){return t(U,void 0,void 0,(function(){var t,i,s,n,o,a,c,d,u,l=this;return e(this,(function(e){switch(e.label){case 0:return t="local"===process.env.NEXT_PUBLIC_ENV,i=A.getPaymentGateways().map((function(t){return t.id})),[4,k.listPaymentGateway({id:t?void 0:{in:i}})];case 1:return(s=e.sent()).isSuccess&&(null===(d=s.data)||void 0===d?void 0:d.length)?(n=s.data,this.step===E.PAYMENT&&(n=n.filter((function(t){var e;return!(null===(e=t.supportedCurrencies)||void 0===e?void 0:e.length)||t.supportedCurrencies.includes(l.checkout.currencyCode)})),(o=null===(u=this.checkout.shippingAddress)||void 0===u?void 0:u.country)&&o.iso2&&(n=n.filter((function(t){var e;return!(null===(e=t.availableCountries)||void 0===e?void 0:e.length)||t.availableCountries.includes(o.iso2||"")})))),a=[],r(A.getPaymentGateways(),"order").forEach((function(t){var e=null==n?void 0:n.find((function(e){return e.id===t.id}));e&&a.push(e)})),this.paymentGateways=t?n:a,this.checkout.selectedPaymentGateway||this.setPaymentGateway(0),this.step===E.PAYMENT&&(c=n.find((function(t){return!!t.masterPassClientId})))&&(this.checkout.masterPassPaymentGateway=c,this.mpVM.checkMasterPass({checkout:this.checkout,store:P.getInstance()})),[2]):(this.error={type:j.API_ERROR,data:s.firstErrorMessage},[2])}}))}))},this.retrieveInstallmentInfo=function(i){return t(U,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:return[4,k.retrieveInstallmentInfo(i)];case 1:return t=e.sent(),s=t.data,null===(n=null==s?void 0:s.installmentPrices)||void 0===n||n.sort((function(t,e){return(t.installmentCount||-1)>(e.installmentCount||-1)?1:-1})),this.installmentInfo=s,[2]}}))}))},this.createCustomer=function(){var t;U.store.customerStore.customer?(null===(t=U.store.customerStore.customer.addresses)||void 0===t||t.forEach((function(t){return t.checkoutSettings=U.checkoutSettings})),U.checkout.customer=new v(U.store.customerStore.customer)):U.checkout.customer=new v(U.checkout.customer||{})},this.createShippingAddress=function(){if(!U.isDigitalOnly)if(U.checkout.shippingAddress)U.checkout.shippingAddress=new f(n(U.checkout.shippingAddress)||{}),U.checkout.shippingAddress.checkoutSettings=U.checkoutSettings;else if(U.store.customerStore.customer){var t=U.store.customerStore.customer.addresses;U.onSelectedShippingAddressIdChange((null==t?void 0:t.length)?t[0].id:"-1")}else U.onSelectedShippingAddressIdChange("-1")},this.createBillingAddress=function(){if("undefined"!=typeof localStorage)if(U.useDifferentAddress=!!localStorage.getItem("sAddr"),U.checkout.billingAddress)U.checkout.billingAddress=new f(n(U.checkout.billingAddress)||{}),U.checkout.billingAddress.checkoutSettings=U.checkoutSettings;else if(U.store.customerStore.customer){var t=U.store.customerStore.customer.addresses;U.onSelectedBillingAddressIdChange((null==t?void 0:t.length)?t[0].id:"-1")}else U.onSelectedBillingAddressIdChange("-1")},this.onShippingMethodChange=function(i){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isChangingShippingMethod?[2]:(this.isChangingShippingMethod=!0,this.checkout.shippingSettingsId=i.shippingSettingsId,this.checkout.shippingZoneRateId=i.shippingZoneRateId,[4,this.saveCart()]);case 1:return(t=e.sent())&&(this.checkout=new h(t)),this.checkout.shippingAddress&&(this.checkout.shippingAddress.checkoutSettings=this.checkoutSettings),this.isChangingShippingMethod=!1,[2]}}))}))},this.onStockLocationChange=function(i){return t(U,void 0,void 0,(function(){return e(this,(function(t){return this.checkout.stockLocationId=i.id,[2]}))}))},this.onCouponCodeApply=function(){return t(U,void 0,void 0,(function(){var t,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,b.saveCartCouponCode({cartId:this.checkout.id,couponCode:this.checkout.couponCode||null})];case 1:return(t=e.sent()).isSuccess&&t.data&&(s=t.data,n=null===(a=null===(o=this.cardData)||void 0===o?void 0:o.cardNumber)||void 0===a?void 0:a.split(" ").join(""),this.step===E.PAYMENT&&(null==n?void 0:n.length)&&n.length>=6&&this.retrieveInstallmentInfo({input:{binNumber:n.slice(0,6),paymentGatewayId:this.checkout.selectedPaymentGateway.id,price:s.totalFinalPrice}}),s&&(r=this.checkout,this.checkout=new h(i(i({},s),{shippingAddress:r.shippingAddress,billingAddress:r.billingAddress,customer:r.customer,selectedPaymentGateway:r.selectedPaymentGateway})))),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}}))}))},this.onSelectedShippingAddressIdChange=function(t){var e,i;if(U.selectedShippingAddressId=t,"-1"===t)U.checkout.shippingAddress=new f;else{var s=null===(i=null===(e=U.store.customerStore.customer)||void 0===e?void 0:e.addresses)||void 0===i?void 0:i.find((function(e){return e.id===t}));s&&(U.checkout.shippingAddress=new f(s))}U.checkout.shippingAddress&&(U.checkout.shippingAddress.checkoutSettings=U.checkoutSettings)},this.onSelectedBillingAddressIdChange=function(t){var e,i;if(U.selectedBillingAddressId=t,"-1"===t)U.checkout.billingAddress=new f;else{var s=null===(i=null===(e=U.store.customerStore.customer)||void 0===e?void 0:e.addresses)||void 0===i?void 0:i.find((function(e){return e.id===t}));s&&(U.checkout.billingAddress=new f(s))}U.checkout.billingAddress&&(U.checkout.billingAddress.checkoutSettings=U.checkoutSettings)},this.onTermsAndConditionsCheckedChange=function(t){U.isTermsAndConditionsChecked=t},this.onCardNumberChange=function(t){if(U.cardData&&(!(t.length>U.cardData.cardNumber.length)||M(t))){var e=(U.cardData.cardNumber||"").split(" ").join(""),i=t.split(" ").join("");i.length>16||(e.length<6&&i.length>=6&&!U.installmentInfo?U.retrieveInstallmentInfo({input:{binNumber:i.slice(0,6),paymentGatewayId:U.checkout.selectedPaymentGateway.id,price:U.checkout.totalFinalPrice}}):i.length<6&&e.length>i.length&&(U.cardData.installmentCount=1,U.installmentInfo=void 0),U.cardData.cardNumber=D(i,4).join(" "))}},this.onCardHolderNameChange=function(t){U.cardData&&(U.cardData.cardHolderName=t)},this.onExpirationDateChange=function(t){var e;if(U.cardData&&(!(t.length>U.cardData.expirationDate.length)||M(t))){if(0===(null===(e=U.cardData.expirationDate)||void 0===e?void 0:e.length)){var i=t.split("/");if(2===i.length){var s=i[0].trim(),n=i[1].trim();if(4===s.length&&2===n.length){var r=parseInt(s.slice(2)),o=parseInt(n);if(!isNaN(r)&&!isNaN(o))return void(U.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}if(2===s.length&&4===n.length){o=parseInt(s),r=parseInt(n.slice(2));if(!isNaN(r)&&!isNaN(o))return void(U.cardData.expirationDate="".concat(o<10?"0"+o:o," / ").concat(r<10?"0"+r:r))}}}var a=t.split(" / ").join("");a.length>4||(U.cardData.expirationDate=D(a,2).join(" / "))}},this.onCvcChange=function(t){U.cardData&&(t.length>U.cardData.cvv.length&&!M(t)||t.length>4||(U.cardData.cvv=t))},this.saveAddress=function(s){return t(U,void 0,void 0,(function(){var t,r,o,a,c,d,u=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this.shouldSaveAddress&&this.store.customerStore.customer?(t="shipping"===s?this.checkout.shippingAddress:this.checkout.billingAddress,(null===(c=this.store.customerStore.customer.addresses)||void 0===c?void 0:c.find((function(e){return e.id===(null==t?void 0:t.id)})))?[2]:(r=new p(i(i({},t),{title:this.addressTitle||this.t("checkout-page:newAddress")})),(o=n(this.store.customerStore.customer)).addresses||(o.addresses=[]),o.addresses.push(r),[4,this.store.customerStore.saveCustomer(o)])):[3,2];case 1:e.sent(),null===(d=this.store.customerStore.customer.addresses)||void 0===d||d.forEach((function(t){return t.checkoutSettings=u.checkoutSettings})),"shipping"===s?(this.checkout.shippingAddress.id=r.id,this.selectedShippingAddressId=r.id||"-1"):(this.checkout.billingAddress.id=r.id,this.selectedBillingAddressId=r.id||"-1"),e.label=2;case 2:return[3,4];case 3:return a=e.sent(),console.error(a),[3,4];case 4:return[2]}}))}))},this.onGoToCartClick=function(){U.router.push("/cart")},this.onBackToShoppingClick=function(){U.router.push("/")},this.onProceedToShippingClick=function(){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if("address"===this.deliveryMethod){if(!this.canProceedToShipping)return this.isErrorsVisible=!0,[2]}else if(!this.canProceedToInStoreDelivery)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,6,,7]),this.isStepLoading=!0,"address"!==this.deliveryMethod?[3,3]:[4,this.saveAddress("shipping")];case 2:e.sent(),e.label=3;case 3:return[4,this.checkStocks()];case 4:return e.sent(),[4,this.saveCart()];case 5:return e.sent(),"address"===this.deliveryMethod?this.changeStep(E.SHIPPING):this.changeStep(E.PAYMENT),[3,7];case 6:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:j.UNKNOWN}),this.isStepLoading=!1,[3,7];case 7:return[2]}}))}))},this.onProceedToDigitalOnlyPaymentClick=function(){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.changeStep(E.PAYMENT),[3,5];case 4:return(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:j.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onProceedToPaymentClick=function(){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment)return this.isErrorsVisible=!0,[2];this.isErrorsVisible=!1,e.label=1;case 1:return e.trys.push([1,4,,5]),this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.error=void 0,this.changeStep(E.PAYMENT),[3,5];case 4:return void 0!==typeof(t=e.sent()).type?this.error=t:(console.log(t),this.error={type:j.UNKNOWN}),this.isStepLoading=!1,[3,5];case 5:return[2]}}))}))},this.onCompletePaymentClick=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:if(!this.canPerformPayment)return this.isErrorsVisible=!0,[2];this.useDifferentAddress||(this.checkout.billingAddress=this.checkout.shippingAddress),e.label=1;case 1:return e.trys.push([1,7,,8]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),"address"!==this.deliveryMethod?[3,4]:[4,this.saveAddress("billing")];case 3:e.sent(),e.label=4;case 4:return[4,this.saveCart()];case 5:return e.sent(),this.isCustomFlowStripe?((t=document.querySelector("#stripe-form-btn"))&&t.click(),[2]):[4,this.createSaleTransaction()];case 6:return e.sent(),[3,8];case 7:return void 0!==typeof(i=e.sent()).type?this.error=i:this.error={type:j.UNKNOWN},this.isStepLoading=!1,[3,8];case 8:return[2]}}))}))},this.onCompleteDigitalOnlyPaymentClick=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:if(!this.canProceedToPayment||this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked)return this.isErrorsVisible=!0,[2];e.label=1;case 1:return e.trys.push([1,5,,6]),this.isErrorsVisible=!1,this.isStepLoading=!0,[4,this.checkStocks()];case 2:return e.sent(),[4,this.saveCart()];case 3:return e.sent(),this.isCustomFlowStripe?((t=document.querySelector("#stripe-form-btn"))&&t.click(),[2]):[4,this.createSaleTransaction()];case 4:return e.sent(),[3,6];case 5:return(i=e.sent()).type?this.error=i:this.error={type:j.UNKNOWN},this.isStepLoading=!1,[3,6];case 6:return[2]}}))}))},this.createSaleTransaction=function(){return t(U,void 0,void 0,(function(){var t,i,s,n,r,d,u,l,h,p,m,f,v,g,y;return e(this,(function(e){switch(e.label){case 0:return(i=this.mpVM.selectedCard)&&(null===(l=this.mpVM.selectedCard)||void 0===l?void 0:l.Name)?((n=this.mpVM.phoneNumber({store:this.store,checkout:this.checkout}))&&(t=n),void 0===(null===(h=this.cardData)||void 0===h?void 0:h.installmentCount)?[2]:[4,k.createSaleTransactionWithCart({input:{cartId:this.checkout.id,masterPassDetail:{phoneNumber:t,savedCardName:null===(p=this.mpVM.selectedCard)||void 0===p?void 0:p.Name},paymentGatewayId:null===(m=this.mpVM.selectedCard)||void 0===m?void 0:m.paymentGatewayId,paymentMethodDetail:{cardNumber:this.mpVM.selectedCard.Value1,cardHolderName:this.mpVM.selectedCard.Name,cvv:this.mpVM.selectedCard.Value2,expiredMonth:11,expiredYear:11,installmentCount:this.cardData.installmentCount,threeDSecure:!!(null===(f=this.cardData)||void 0===f?void 0:f.threeDSecure)}}})]):[3,2];case 1:return s=e.sent(),[3,4];case 2:return this.checkout.selectedPaymentGateway?[4,k.createSaleTransactionWithCart({input:{cartId:this.checkout.id,masterPassDetail:i&&t?{phoneNumber:t,savedCardName:null===(v=this.mpVM.selectedCard)||void 0===v?void 0:v.Name}:void 0,paymentGatewayId:this.checkout.selectedPaymentGateway.id,paymentMethodDetail:i?void 0:this.checkout.selectedPaymentGateway.paymentMethodType===a.CREDIT_CARD&&this.checkout.selectedPaymentGateway.type===c.INTERNAL&&this.cardData?this.cardData.toInput():void 0}})]:[2];case 3:s=e.sent(),e.label=4;case 4:return r=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.transactionStatus,d=r&&[o.SUCCESS,o.AUTHORIZED].includes(r),u=r===o.PENDING,d?[4,this.getSuccessTransaction()]:[3,7];case 5:return e.sent(),[4,this.onCheckoutTransactionSuccess()];case 6:return e.sent(),[3,8];case 7:if(!u||!(null===(y=null==s?void 0:s.data)||void 0===y?void 0:y.returnSlug))throw{data:s.firstErrorMessage,type:j.UNKNOWN};window.location.href=process.env.NEXT_PUBLIC_BASE_URL+s.data.returnSlug,e.label=8;case 8:return[2]}}))}))},this.onCheckoutTransactionSuccess=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return localStorage.removeItem("sAddr"),(null===(t=this.checkout.customer)||void 0===t?void 0:t.notificationsAccepted)?[4,this.store.customerStore.createEmailSubscription((null===(i=this.checkout.customer)||void 0===i?void 0:i.email)||"")]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.changeStep(E.SUCCESS),[2]}}))}))},this.onBackToInfoClick=function(){U.changeStep(E.INFO)},this.onBackToShippingClick=function(){U.changeStep(E.SHIPPING)},this.setCustomerConsentGranted=function(t){U.checkout.customer&&(U.checkout.customer.notificationsAccepted=t)},this.setUseDifferentAddress=function(t){U.useDifferentAddress=t,U.useDifferentAddress?(localStorage.setItem("sAddr","1"),U.checkout.billingAddress=U.checkout.billingAddress||new f):(localStorage.removeItem("sAddr"),U.checkout.billingAddress=U.checkout.shippingAddress)},this.setShouldSaveAddress=function(t){U.shouldSaveAddress=t},this.setAddressTitle=function(t){U.addressTitle=t},this.setPaymentGateway=function(i){return t(U,void 0,void 0,(function(){var t,s,n;return e(this,(function(e){switch(e.label){case 0:return this.paymentGateways.length?"STRIPE"!==(t=this.paymentGateways[i]).code||!(null===(n=t.settings)||void 0===n?void 0:n.find((function(t){return"allow_custom_flow"===t.label&&"true"===t.value})))||this.stripeResponse?[3,2]:[4,k.createStripePaymentIntent({input:{cartId:this.checkout.id,paymentGatewayId:t.id||""}})]:[2];case 1:(s=e.sent()).isSuccess&&s.data&&(this.stripeResponse=s.data),e.label=2;case 2:return this.checkout.selectedPaymentGateway=t,this.step!==E.SUCCESS&&(t.paymentMethodType===a.CREDIT_CARD&&t.type===c.INTERNAL&&(this.cardData=new y),this.installmentInfo=void 0),[2]}}))}))},this.setInstallmentCount=function(t){U.cardData&&(U.cardData.installmentCount=t)},this.changeStep=function(i){return t(U,void 0,void 0,(function(){return e(this,(function(t){return T||window.location.replace("".concat(window.location.pathname,"?id=").concat(this.checkout.id,"&step=").concat(i)),[2]}))}))},this.logout=function(){return t(U,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:this.checkout.customer=null,this.store.customerStore.logout(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.saveCart()];case 2:case 3:return t.sent(),[3,4];case 4:return this.createCustomer(),[2]}}))}))},this.setContactModalVisible=function(t){U.isContactModalVisible=t},this.getWaitingForActionCampaignOffers=function(t){if(U.checkout.campaignOffers&&U.checkout.campaignOffers.length)return U.checkout.campaignOffers.filter((function(e){var i;return e.status===d.WAITING_FOR_ACTION&&(null===(i=e.campaignOffer)||void 0===i?void 0:i.targetPageTypes.some((function(e){return e===t})))}))},this.getOffer=function(t){return t.campaignOffer?t.campaignOffer.offers.find((function(e){return e.id===t.campaignOfferProductId})):null},this.getProduct=function(s){return t(U,void 0,void 0,(function(){var t,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:return[4,I.searchProducts({input:{productIdList:[s]}})];case 1:return(t=e.sent()).isSuccess&&(null===(a=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.data)||void 0===a?void 0:a.length)?(n=t.data.data[0],r=n.variants.find((function(t){return t.isActive})),[2,new g(i(i({},n),{selectedVariantValues:(r||n.variants[0]).variantValues}))]):[2,null]}}))}))},this.getOfferProductVariants=function(t){var e,i=t.offer,s=t.product,n=[];return(null===(e=i.excludedVariantIdList)||void 0===e?void 0:e.length)?s.variants.forEach((function(t){var e,s=null===(e=i.excludedVariantIdList)||void 0===e?void 0:e.some((function(e){return e===t.id}));t.hasStock&&!s&&n.push(t)})):n.push.apply(n,s.variants.filter((function(t){return t.hasStock}))),n},this.getCampaignOfferProducts=function(i){return t(U,void 0,void 0,(function(){var t,s,n,r,o,a;return e(this,(function(e){switch(e.label){case 0:if(!(t=this.getWaitingForActionCampaignOffers(i))||!t.length)return[2];s=0,e.label=1;case 1:return s<t.length?(n=t[s],(r=this.getOffer(n))?[4,this.getProduct(r.productId)]:[3,3]):[3,4];case 2:return(o=e.sent())&&(a=this.getOfferProductVariants({offer:r,product:o})).length?[2,{product:o,variants:a,campaignOffer:n,offer:r}]:[3,3];case 3:return s++,[3,1];case 4:return[2]}}))}))},this.getCampaignOffer=function(){return t(U,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return t=this,[4,this.getCampaignOfferProducts(u.CHECKOUT)];case 1:return t.checkoutCampaignOffer=e.sent(),i=this,[4,this.getCampaignOfferProducts(u.POST_CHECKOUT)];case 2:return i.postCheckoutCampaignOffer=e.sent(),[2]}}))}))},this.updateCartCampaignOffer=function(i){return t(U,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return this.isCheckoutLoaded=!1,[4,b.updateCartCampaignOffer({input:i})];case 1:return(t=e.sent())&&t.isSuccess&&t.data?(this.checkout=new h(t.data),[4,this.init()]):[3,3];case 2:e.sent(),e.label=3;case 3:return this.isCheckoutLoaded=!0,[2]}}))}))},this.checkout=l,this.checkoutSettings=m,this.router=R,this.returnPolicy=x,this.privacyPolicy=L,this.termsOfService=G,this.t=_,this.customizationProps=V,this.mpVM=new C,this.isTermsAndConditionsChecked=this.checkoutSettings.isTermsAndConditionsDefaultChecked||!1,this.init(),s(this)}return Object.defineProperty(R.prototype,"merchantSettings",{get:function(){return new m(A.getMerchantSettings())},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"selectedPaymentGatewayIndex",{get:function(){var t=this;return this.paymentGateways.findIndex((function(e){var i;return e.id===(null===(i=t.checkout.selectedPaymentGateway)||void 0===i?void 0:i.id)}))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"selectedInstallmentIndex",{get:function(){var t,e,i=this;return(null===(e=null===(t=this.installmentInfo)||void 0===t?void 0:t.installmentPrices)||void 0===e?void 0:e.findIndex((function(t){var e;return t.installmentCount===(null===(e=i.cardData)||void 0===e?void 0:e.installmentCount)})))||0},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"checkoutUrl",{get:function(){return"/checkout?id=".concat(this.checkout.id,"&step=info")},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"customerAddressOptions",{get:function(){var t,e,i={label:this.t("checkout-page:newAddress"),value:"-1"},s=(null===(e=null===(t=P.getInstance().customerStore.customer)||void 0===t?void 0:t.addresses)||void 0===e?void 0:e.map((function(t){return{label:t.title+" - "+t.addressText,value:t.id}})))||[];return[i].concat(s)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"installmentPrice",{get:function(){var t,e,i,s=this;if(this.installmentInfo&&(null===(t=this.cardData)||void 0===t?void 0:t.installmentCount))return null===(i=null===(e=this.installmentInfo.installmentPrices)||void 0===e?void 0:e.find((function(t){var e;return t.installmentCount===(null===(e=s.cardData)||void 0===e?void 0:e.installmentCount)})))||void 0===i?void 0:i.totalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"installmentExtraPrice",{get:function(){if(this.installmentPrice&&this.checkout.totalFinalPrice)return this.installmentPrice-this.checkout.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"finalPrice",{get:function(){return this.step===E.SUCCESS?this.checkout.totalFinalPrice:this.installmentPrice||this.checkout.$totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"hasStockError",{get:function(){var t;return(null===(t=this.error)||void 0===t?void 0:t.type)===j.STOCK_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isPaymentGatewayHasMasterPass",{get:function(){return-1!==this.selectedPaymentGatewayIndex&&(!!this.paymentGateways.length&&!!this.paymentGateways[this.selectedPaymentGatewayIndex].masterPassClientId)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"canProceedToShipping",{get:function(){var t,e,i;return(this.isDigitalOnly?null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValid:null===(e=this.checkout.shippingAddress)||void 0===e?void 0:e.isValid)&&this.checkout.hasValidCustomerEmail&&(null===(i=this.error)||void 0===i?void 0:i.type)!==j.NO_SHIPPING_ERROR},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"canProceedToInStoreDelivery",{get:function(){var t,e,i;return!!((null===(t=this.checkout.shippingAddress)||void 0===t?void 0:t.firstName)&&(null===(e=this.checkout.shippingAddress)||void 0===e?void 0:e.lastName)&&(null===(i=this.checkout.customer)||void 0===i?void 0:i.email)&&this.checkout.stockLocationId)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"canProceedToPayment",{get:function(){return this.canProceedToShipping},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isInStoreDelivery",{get:function(){return!!this.checkout.stockLocationId},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isCustomFlowStripe",{get:function(){var t,e=this.checkout.selectedPaymentGateway;return e&&"STRIPE"===e.code&&(null===(t=e.settings)||void 0===t?void 0:t.find((function(t){return"allow_custom_flow"===t.label&&"true"===t.value})))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"store",{get:function(){return P.getInstance()},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"canPerformPayment",{get:function(){var t,e;if(this.checkoutSettings.showTermsAndConditionsCheckbox&&!this.isTermsAndConditionsChecked)return!1;var i=this.checkout.selectedPaymentGateway,s=!!("in-store"===this.deliveryMethod)||!!this.canProceedToShipping,n=!!(null===(t=this.checkout.billingAddress)||void 0===t?void 0:t.isValid),r=!!this.mpVM.selectedCard||((null==i?void 0:i.paymentMethodType)===a.CREDIT_CARD&&i.type===c.INTERNAL?!!this.isCustomFlowStripe||(null===(e=this.cardData)||void 0===e?void 0:e.isValid):!!i);return s&&n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isDigitalOnly",{get:function(){return this.checkout.shippingMethod===l.DIGITAL_DELIVERY},enumerable:!1,configurable:!0}),R}();function D(t,e){return t.match(new RegExp(".{1,"+e+"}","g"))||[]}function M(t){return t&&R.test(t.charAt(t.length-1))}!function(t){t.INFO="info",t.SHIPPING="shipping",t.PAYMENT="payment",t.SUCCESS="success"}(E||(E={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.API_ERROR=1]="API_ERROR",t[t.STOCK_ERROR=2]="STOCK_ERROR",t[t.PAYMENT_ERROR=3]="PAYMENT_ERROR",t[t.NO_SHIPPING_ERROR=4]="NO_SHIPPING_ERROR",t[t.CUSTOMER_LOGIN_REQUIRED_ERROR=5]="CUSTOMER_LOGIN_REQUIRED_ERROR"}(j||(j={}));export{E as CheckoutStep,j as ErrorType,x as default};
@@ -1,201 +0,0 @@
1
- import { OtpModalType } from "./components/master-pass/modal-otp";
2
- import { SuccessModalType } from "./components/master-pass/modal-success";
3
- import { IkasBaseStore } from "../../store";
4
- import { IkasCheckout, IkasPaymentGateway } from "../../models";
5
- import { MasterPassOperationTypeEnum } from "@ikas/storefront-api";
6
- declare type MFS_CB_HOC_TYPE_SOURCE = "checkMasterPass" | "register" | "resendOtp" | "linkCardToClient" | "validateTransaction" | "listCards" | "deleteCard";
7
- declare type MFS_CB_HOC_TYPE = (params: {
8
- source: MFS_CB_HOC_TYPE_SOURCE;
9
- store: IkasBaseStore;
10
- checkout: IkasCheckout;
11
- callback?: () => void;
12
- }) => MFS_CB_TYPE;
13
- declare type MFS_CB_TYPE = (status: any, response: {
14
- responseCode: /* register success */ "0000" | /* register success */ "" | /* banka tarafindan otp dogrulamasi yapilir */ "5001" | /* masterpass tarafindan otp dogrulamasi yapilir*/ "5008" | /* Bu kredi kartı bu kullanıcıya daha önceden kaydedilmiştir. */ "5196" | /* Tek kullanımlık şifre doğrulanamadı. */ "1409" | /* External hesap bulunamadı. */ "1999" | string;
15
- responseDescription?: string;
16
- transactionId: string;
17
- accountStatus: any;
18
- url3D: string;
19
- cards: number | Array<Card>;
20
- }) => void;
21
- declare type MFS = {
22
- checkMasterPass: (formData: FormData, cb: MFS_CB_TYPE) => void;
23
- setClientId: (a: string) => void;
24
- register: (formData: FormData, cb: MFS_CB_TYPE) => void;
25
- resendOtp: (token: string, lang: string, cb: MFS_CB_TYPE) => void;
26
- validateTransaction: (formData: FormData, cb: MFS_CB_TYPE) => void;
27
- getLastToken: () => string;
28
- linkCardToClient: (formData: FormData, cb: MFS_CB_TYPE) => void;
29
- listCards: (phoneNumber: string, token: string, cb: MFS_CB_TYPE) => void;
30
- deleteCard: (formData: FormData, cb: MFS_CB_TYPE) => void;
31
- };
32
- export declare type Card = {
33
- BankIca: string;
34
- CardStatus: string;
35
- EftCode: string;
36
- IsMasterPassMember: string;
37
- LoyaltyCode: string;
38
- Name: string;
39
- ProductName: string;
40
- PromtCpin: string;
41
- UniqueId: string;
42
- Value1: string;
43
- Value2: string;
44
- paymentGatewayId: string;
45
- };
46
- export default class MasterPassModel {
47
- checkMasterPassData: {
48
- status: "" | "noMasterPassAccount" | "hasMasterPassAccountButDoesNotHaveAnyOperation" | "hasMasterPassAccountAndHasRelation";
49
- };
50
- saveCardToMasterPass: {
51
- isCheckboxChecked: boolean;
52
- isSendConfirmationButtonPending: boolean;
53
- cardName: string;
54
- phoneNumber: string;
55
- };
56
- otpResponse: {
57
- status: "error" | "";
58
- text: string;
59
- };
60
- isOtpFormSubmitAtLeastOnce: boolean;
61
- visibleModal?: "otpModalBank" | "otpModalMasterPass" | "otpModalSuccess" | "linkCardToClientModal" | "linkCardToClientModalSuccess" | "mfsResponseModal";
62
- mfsResponseModalText?: string;
63
- cards: Card[];
64
- selectedCard?: Card;
65
- constructor();
66
- get isSaveCardToMasterPassPhoneNumberInputVisible(): boolean;
67
- get isSaveCardToMasterPassPhoneNumberInputDisabled(): boolean;
68
- /**
69
- * Use when phone number input disabled
70
- */
71
- saveCardToMasterPassPhoneNumberDisabledInputValue: ({ store, checkout, withPlus, }: {
72
- withPlus: boolean;
73
- store: IkasBaseStore;
74
- checkout: IkasCheckout;
75
- }) => string;
76
- get isSendConfirmationButtonDisabled(): boolean;
77
- onSaveCardToMasterPassCheckedChange: (value: boolean) => void;
78
- onSaveCardToMasterPassCardNameChange: (value: string) => void;
79
- onSaveCardToMasterPassPhoneNumberChange: (value: string) => void;
80
- onSaveCardToMasterPassSendConfirmationButtonClick: ({ creditCard, store, checkout, paymentGateway, callback, }: RegisterParams) => void;
81
- get isLinkCardToClientModalVisible(): boolean;
82
- get isOtpModalVisible(): boolean;
83
- get isResponseModalVisible(): boolean;
84
- get isSuccessModalVisible(): boolean;
85
- get otpModalType(): OtpModalType;
86
- get successModalType(): SuccessModalType;
87
- showLinkCardToClientModal: () => void;
88
- hideLinkCardToClientModal: () => void;
89
- showOtpModal: (modalType: OtpModalType) => void;
90
- hideOtpModal: () => void;
91
- onResponseModalClose: () => void;
92
- onSuccessModalClose: () => void;
93
- onLinkCardToClientButtonClick: (params: LinkCardToClientParams) => void;
94
- onOtpFormSubmit: (params: ValidateTransactionParams) => void;
95
- MFS: () => MFS | undefined;
96
- getToken: ({ cartId, paymentGatewayId, operationType, phoneNumber, }: {
97
- cartId: string;
98
- paymentGatewayId: string;
99
- operationType: MasterPassOperationTypeEnum;
100
- phoneNumber: string;
101
- }) => Promise<import("@ikas/storefront-api/build/__api/types").MasterPassTokenResponse | undefined>;
102
- phoneNumber: ({ store, checkout, withPlus, }: {
103
- store: IkasBaseStore;
104
- checkout: IkasCheckout;
105
- withPlus?: boolean | undefined;
106
- }) => string | null | undefined;
107
- sendSmsLanguage: (store: IkasBaseStore) => string;
108
- /**
109
- * Send object return value is FormData
110
- * @returns FormData
111
- */
112
- prepareFormData<T>(data: T): FormData;
113
- clearSaveCardToMasterPassForm: () => void;
114
- /**
115
- * MFS (MasterPass js library) response handler.
116
- */
117
- mfsResponseHandler: MFS_CB_HOC_TYPE;
118
- showTokenErrorWithModal: () => void;
119
- /**
120
- * CheckMasterPass for customer. Call it on initial. For more detail keep reading. [tr]
121
-
122
- * Soldan ilk 6 hane 000000 ise
123
- * Kullanıcının masterpass hesabı yok anlamına gelmektedir. Burada isterseniz kart kaydına
124
- * yönlendirebilirsiniz. Kart kaydını sizin üzerinizden gerçekleştirdiğinde otomatik linklenecektir
125
- * ve tekrar checkmasterpass servisine istek yaptığınızda ilk 6 hanenin değiştiğini göreceksiniz.
126
-
127
- * Soldan ilk 6 hane 011000 ise
128
- * Kullanıcının daha önce başka üye işyerinde kayıtlı hesabı olduğu anlamına gelmektedir.
129
- * Bu aşamada kullanıcıyı linkleme (linkCardtoClient) akışına sokmanız gerekmektedir.
130
- * “Masterpass’e kayıtlı kartların var, kullanmak ister misin?” sorusu sorulur
131
- * ve evet cevabında linkCardtoClient servisi çağrılır. Sms doğrulaması yapıldıktan
132
- * sonra linkleme başarıyla gerçekleşeceği için ListCard servisi ile kartlar listelenir.
133
-
134
- * Soldan ilk 6 hane 011100 ise
135
- * Kullanıcı daha önce ikas üzerinde linkli ve kartları kaydedilmiş demektir.
136
- * Bu durumda kullanıcıdan herhangi bir aksiyon almasını beklemeden doğrudan
137
- * kayıtlı kartlarının listelenmesi (ListCard servisi ile) gerekiyor.
138
- */
139
- checkMasterPass: ({ checkout, store, ...rest }: CheckMasterPassParams) => Promise<void>;
140
- /**
141
- * Save card to MasterPass
142
- */
143
- register: ({ creditCard, store, checkout, paymentGateway, callback, }: RegisterParams) => Promise<void>;
144
- resendOtp: ({ store, checkout, callback, }: {
145
- store: IkasBaseStore;
146
- checkout: IkasCheckout;
147
- callback: () => void;
148
- }) => Promise<void>;
149
- /**
150
- * First checkMasterPass then check respone;
151
- * [tr] Soldan ilk 6 hane 011000 ise
152
- * Kullanıcının daha önce başka üye işyerinde kayıtlı hesabı olduğu anlamına gelmektedir.
153
- * Bu aşamada kullanıcıyı linkleme (linkCardtoClient) akışına sokmanız gerekmektedir.
154
- * “Masterpass’e kayıtlı kartların var, kullanmak ister misin?” sorusu sorulur
155
- * ve evet cevabında linkCardtoClient servisi çağrılır. Sms doğrulaması yapıldıktan
156
- * sonra linkleme başarıyla gerçekleşeceği için ListCard servisi ile kartlar listelenir.
157
- */
158
- linkCardToClient: ({ store, checkout, callback, }: LinkCardToClientParams) => Promise<void>;
159
- validateTransaction: ({ validationCode, store, checkout, callback, }: ValidateTransactionParams) => Promise<void>;
160
- listCards: ({ store, checkout }: ListCardsParams) => Promise<void>;
161
- deleteCard: ({ store, checkout, card }: DeleteCardParams) => Promise<void>;
162
- }
163
- declare type RegisterParams = {
164
- creditCard: {
165
- rtaPan: string;
166
- expiryDate: string;
167
- cvc: string;
168
- accountAliasName: string;
169
- phoneNumber: string;
170
- };
171
- paymentGateway: IkasPaymentGateway;
172
- store: IkasBaseStore;
173
- checkout: IkasCheckout;
174
- callback: () => void;
175
- };
176
- declare type CheckMasterPassParams = {
177
- checkout: IkasCheckout;
178
- store: IkasBaseStore;
179
- };
180
- declare type LinkCardToClientParams = {
181
- cartId: string;
182
- checkout: IkasCheckout;
183
- store: IkasBaseStore;
184
- callback?: () => void;
185
- };
186
- declare type ValidateTransactionParams = {
187
- validationCode: string;
188
- store: IkasBaseStore;
189
- checkout: IkasCheckout;
190
- callback: () => void;
191
- };
192
- declare type ListCardsParams = {
193
- store: IkasBaseStore;
194
- checkout: IkasCheckout;
195
- };
196
- declare type DeleteCardParams = {
197
- store: IkasBaseStore;
198
- checkout: IkasCheckout;
199
- card: Card;
200
- };
201
- export {};