@ikas/storefront 4.0.0-alpha.50 → 4.0.0-alpha.52

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 (1026) hide show
  1. package/build/_virtual/_commonjsHelpers.js +1 -0
  2. package/build/_virtual/axios.js +1 -0
  3. package/build/_virtual/index.js +1 -0
  4. package/build/_virtual/index2.js +1 -0
  5. package/build/_virtual/index3.js +1 -0
  6. package/build/_virtual/index4.js +1 -0
  7. package/build/_virtual/react-is.development.js +1 -0
  8. package/build/_virtual/react-is.production.min.js +1 -0
  9. package/build/_virtual/react-stripe.umd.js +1 -0
  10. package/build/analytics/analytics.d.ts +37 -0
  11. package/build/analytics/analytics.js +1 -0
  12. package/build/analytics/events.d.ts +37 -0
  13. package/build/analytics/events.js +1 -0
  14. package/build/analytics/facebookPixel.d.ts +15 -0
  15. package/build/analytics/facebookPixel.js +1 -0
  16. package/build/analytics/googleAnalytics.d.ts +13 -0
  17. package/build/analytics/googleAnalytics.js +1 -0
  18. package/build/analytics/googleTagManager.d.ts +203 -0
  19. package/build/analytics/googleTagManager.js +1 -0
  20. package/build/analytics/googleUniversal.d.ts +9 -0
  21. package/build/analytics/googleUniversal.js +1 -0
  22. package/build/analytics/head/index.d.ts +7 -0
  23. package/build/analytics/head/index.js +1 -0
  24. package/build/analytics/ikas.d.ts +134 -0
  25. package/build/analytics/ikas.js +1 -0
  26. package/build/analytics/index.d.ts +2 -0
  27. package/build/analytics/tiktokPixel.d.ts +13 -0
  28. package/build/analytics/tiktokPixel.js +1 -0
  29. package/build/components/checkout/components/address-form/index.d.ts +3 -0
  30. package/build/components/checkout/components/address-form/index.js +1 -0
  31. package/build/components/checkout/components/address-form/model.d.ts +87 -0
  32. package/build/components/checkout/components/address-form/model.js +1 -0
  33. package/build/components/checkout/components/button/index.d.ts +13 -0
  34. package/build/components/checkout/components/button/index.js +1 -0
  35. package/build/components/checkout/components/button/style.module.scss.js +1 -0
  36. package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
  37. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -0
  38. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -0
  39. package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
  40. package/build/components/checkout/components/cart-summary/index.js +1 -0
  41. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -0
  42. package/build/components/checkout/components/checkbox/check.d.ts +6 -0
  43. package/build/components/checkout/components/checkbox/check.js +1 -0
  44. package/build/components/checkout/components/checkbox/index.d.ts +10 -0
  45. package/build/components/checkout/components/checkbox/index.js +1 -0
  46. package/build/components/checkout/components/checkbox/style.module.scss.js +1 -0
  47. package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
  48. package/build/components/checkout/components/credit-card-form/index.js +1 -0
  49. package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
  50. package/build/components/checkout/components/credit-card-form/model.js +1 -0
  51. package/build/components/checkout/components/credit-card-form/style.module.scss.js +1 -0
  52. package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
  53. package/build/components/checkout/components/credit-card-form/svg/amex.js +1 -0
  54. package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
  55. package/build/components/checkout/components/credit-card-form/svg/master-card.js +1 -0
  56. package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
  57. package/build/components/checkout/components/credit-card-form/svg/troy.js +1 -0
  58. package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
  59. package/build/components/checkout/components/credit-card-form/svg/visa.js +1 -0
  60. package/build/components/checkout/components/customer-addresses/index.d.ts +19 -0
  61. package/build/components/checkout/components/customer-addresses/index.js +1 -0
  62. package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
  63. package/build/components/checkout/components/customer-addresses/model.js +1 -0
  64. package/build/components/checkout/components/customer-addresses/style.module.scss.js +1 -0
  65. package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +10 -0
  66. package/build/components/checkout/components/delivery-methods/icon-button/index.js +1 -0
  67. package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +1 -0
  68. package/build/components/checkout/components/delivery-methods/icons/box.d.ts +6 -0
  69. package/build/components/checkout/components/delivery-methods/icons/box.js +1 -0
  70. package/build/components/checkout/components/delivery-methods/icons/store.d.ts +6 -0
  71. package/build/components/checkout/components/delivery-methods/icons/store.js +1 -0
  72. package/build/components/checkout/components/delivery-methods/index.d.ts +7 -0
  73. package/build/components/checkout/components/delivery-methods/index.js +1 -0
  74. package/build/components/checkout/components/delivery-methods/style.module.scss.js +1 -0
  75. package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
  76. package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -0
  77. package/build/components/checkout/components/error/index.d.ts +7 -0
  78. package/build/components/checkout/components/error/index.js +1 -0
  79. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +3 -0
  80. package/build/components/checkout/components/error/no-shipping-error/index.js +1 -0
  81. package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
  82. package/build/components/checkout/components/error/payment-error/index.js +1 -0
  83. package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
  84. package/build/components/checkout/components/error/stock-error/index.js +1 -0
  85. package/build/components/checkout/components/error/stock-error/style.module.scss.js +1 -0
  86. package/build/components/checkout/components/error/unknown-error/index.d.ts +8 -0
  87. package/build/components/checkout/components/error/unknown-error/index.js +1 -0
  88. package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
  89. package/build/components/checkout/components/expandable-section/index.js +1 -0
  90. package/build/components/checkout/components/expandable-section/style.module.scss.js +1 -0
  91. package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
  92. package/build/components/checkout/components/form-item/caret-down.js +1 -0
  93. package/build/components/checkout/components/form-item/index.d.ts +3 -0
  94. package/build/components/checkout/components/form-item/index.js +1 -0
  95. package/build/components/checkout/components/form-item/model.d.ts +61 -0
  96. package/build/components/checkout/components/form-item/model.js +1 -0
  97. package/build/components/checkout/components/form-item/style.module.scss.js +1 -0
  98. package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
  99. package/build/components/checkout/components/fullscreen-loading/index.js +1 -0
  100. package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +1 -0
  101. package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
  102. package/build/components/checkout/components/input-with-button/index.js +1 -0
  103. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -0
  104. package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +8 -0
  105. package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -0
  106. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +1 -0
  107. package/build/components/checkout/components/master-pass/modal/index.d.ts +11 -0
  108. package/build/components/checkout/components/master-pass/modal/index.js +1 -0
  109. package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -0
  110. package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +2 -0
  111. package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +1 -0
  112. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +10 -0
  113. package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +1 -0
  114. package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +1 -0
  115. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +2 -0
  116. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +1 -0
  117. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +2 -0
  118. package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +1 -0
  119. package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +10 -0
  120. package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -0
  121. package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -0
  122. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +2 -0
  123. package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +1 -0
  124. package/build/components/checkout/components/master-pass/modal-response/index.d.ts +9 -0
  125. package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
  126. package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
  127. package/build/components/checkout/components/master-pass/modal-success/index.d.ts +10 -0
  128. package/build/components/checkout/components/master-pass/modal-success/index.js +1 -0
  129. package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +1 -0
  130. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +2 -0
  131. package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +1 -0
  132. package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +2 -0
  133. package/build/components/checkout/components/master-pass/modal-success/svg/success.js +1 -0
  134. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +2 -0
  135. package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +1 -0
  136. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +3 -0
  137. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +1 -0
  138. package/build/components/checkout/components/modal/index.d.ts +8 -0
  139. package/build/components/checkout/components/modal/index.js +1 -0
  140. package/build/components/checkout/components/modal/style.module.scss.js +1 -0
  141. package/build/components/checkout/components/modal/useEscape.d.ts +5 -0
  142. package/build/components/checkout/components/modal/useEscape.js +1 -0
  143. package/build/components/checkout/components/notification-box/index.d.ts +9 -0
  144. package/build/components/checkout/components/notification-box/index.js +1 -0
  145. package/build/components/checkout/components/notification-box/style.module.scss.js +1 -0
  146. package/build/components/checkout/components/offer-product/index.d.ts +8 -0
  147. package/build/components/checkout/components/offer-product/index.js +1 -0
  148. package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
  149. package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
  150. package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
  151. package/build/components/checkout/components/offer-product/select/index.js +1 -0
  152. package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
  153. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
  154. package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +2 -0
  155. package/build/components/checkout/components/phone-number-input/compare-strings.js +1 -0
  156. package/build/components/checkout/components/phone-number-input/get-countries.d.ts +7 -0
  157. package/build/components/checkout/components/phone-number-input/get-countries.js +1 -0
  158. package/build/components/checkout/components/phone-number-input/index.d.ts +10 -0
  159. package/build/components/checkout/components/phone-number-input/index.js +1 -0
  160. package/build/components/checkout/components/phone-number-input/style.module.scss.js +1 -0
  161. package/build/components/checkout/components/select-box/index.d.ts +13 -0
  162. package/build/components/checkout/components/select-box/index.js +1 -0
  163. package/build/components/checkout/components/select-box/style.module.scss.js +1 -0
  164. package/build/components/checkout/components/step-container/index.d.ts +15 -0
  165. package/build/components/checkout/components/step-container/index.js +1 -0
  166. package/build/components/checkout/components/step-container/style.module.scss.js +1 -0
  167. package/build/components/checkout/components/stripe/checkout-form.d.ts +8 -0
  168. package/build/components/checkout/components/stripe/checkout-form.js +1 -0
  169. package/build/components/checkout/components/stripe/index.d.ts +9 -0
  170. package/build/components/checkout/components/stripe/index.js +1 -0
  171. package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
  172. package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
  173. package/build/components/checkout/components/svg/arrow-down.js +1 -0
  174. package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
  175. package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
  176. package/build/components/checkout/components/svg/cross.d.ts +6 -0
  177. package/build/components/checkout/components/svg/cross.js +1 -0
  178. package/build/components/checkout/components/svg/discount.d.ts +6 -0
  179. package/build/components/checkout/components/svg/external.d.ts +6 -0
  180. package/build/components/checkout/components/svg/external.js +1 -0
  181. package/build/components/checkout/components/svg/gift.d.ts +7 -0
  182. package/build/components/checkout/components/svg/gift.js +1 -0
  183. package/build/components/checkout/components/svg/ikas.d.ts +6 -0
  184. package/build/components/checkout/components/svg/ikas.js +1 -0
  185. package/build/components/checkout/components/svg/lock.d.ts +6 -0
  186. package/build/components/checkout/components/svg/lock.js +1 -0
  187. package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
  188. package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
  189. package/build/components/checkout/components/svg/success-circle.js +1 -0
  190. package/build/components/checkout/components/svg/tag.d.ts +6 -0
  191. package/build/components/checkout/components/svg/warning.d.ts +6 -0
  192. package/build/components/checkout/components/svg/warning.js +1 -0
  193. package/build/components/checkout/components/toggle/index.d.ts +10 -0
  194. package/build/components/checkout/components/toggle/index.js +1 -0
  195. package/build/components/checkout/components/toggle/style.module.scss.js +1 -0
  196. package/build/components/checkout/components/tooltip/index.d.ts +8 -0
  197. package/build/components/checkout/components/tooltip/index.js +1 -0
  198. package/build/components/checkout/components/tooltip/style.module.scss.js +1 -0
  199. package/build/components/checkout/index.d.ts +32 -0
  200. package/build/components/checkout/index.js +1 -0
  201. package/build/components/checkout/model.d.ts +161 -0
  202. package/build/components/checkout/model.js +1 -0
  203. package/build/components/checkout/modelMasterPass.d.ts +201 -0
  204. package/build/components/checkout/modelMasterPass.js +1 -0
  205. package/build/components/checkout/steps/step-info/index.d.ts +7 -0
  206. package/build/components/checkout/steps/step-info/index.js +1 -0
  207. package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
  208. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -0
  209. package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
  210. package/build/components/checkout/steps/step-payment/index.js +1 -0
  211. package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
  212. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -0
  213. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
  214. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -0
  215. package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +1 -0
  216. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -0
  217. package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -0
  218. package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
  219. package/build/components/checkout/steps/step-shipping/index.js +1 -0
  220. package/build/components/checkout/steps/step-shipping/style.module.scss.js +1 -0
  221. package/build/components/checkout/steps/step-success/index.d.ts +7 -0
  222. package/build/components/checkout/steps/step-success/index.js +1 -0
  223. package/build/components/checkout/steps/step-success/style.module.scss.js +1 -0
  224. package/build/components/checkout/style.module.scss.js +1 -0
  225. package/build/components/checkout/styles/common.module.scss.js +1 -0
  226. package/build/components/image/index.d.ts +10 -0
  227. package/build/components/image/index.js +1 -0
  228. package/build/components/index.d.ts +5 -0
  229. package/build/components/link/index.d.ts +16 -0
  230. package/build/components/link/index.js +1 -0
  231. package/build/components/page/ThemeComponent.d.ts +21 -0
  232. package/build/components/page/ThemeComponent.js +1 -0
  233. package/build/components/page/head.d.ts +15 -0
  234. package/build/components/page/head.js +1 -0
  235. package/build/components/page/index.d.ts +21 -0
  236. package/build/components/page/index.js +1 -0
  237. package/build/components/page-editor/ThemeComponentEditor.d.ts +32 -0
  238. package/build/components/page-editor/ThemeComponentEditor.js +1 -0
  239. package/build/components/page-editor/error/index.d.ts +4 -0
  240. package/build/components/page-editor/error/index.js +1 -0
  241. package/build/components/page-editor/index.d.ts +4 -0
  242. package/build/components/page-editor/index.js +1 -0
  243. package/build/components/page-editor/loader/index.d.ts +6 -0
  244. package/build/components/page-editor/loader/index.js +1 -0
  245. package/build/components/page-editor/loader/style.module.scss.js +1 -0
  246. package/build/components/page-editor/model.d.ts +75 -0
  247. package/build/components/page-editor/model.js +1 -0
  248. package/build/index.d.ts +6 -0
  249. package/build/index.js +1 -0
  250. package/build/models/data/base/index.d.ts +8 -0
  251. package/build/models/data/base/index.js +1 -0
  252. package/build/models/data/blog/category/index.d.ts +12 -0
  253. package/build/models/data/blog/category/index.js +1 -0
  254. package/build/models/data/blog/content/index.d.ts +6 -0
  255. package/build/models/data/blog/content/index.js +1 -0
  256. package/build/models/data/blog/index.d.ts +27 -0
  257. package/build/models/data/blog/index.js +1 -0
  258. package/build/models/data/blog/meta-data/index.d.ts +16 -0
  259. package/build/models/data/blog/meta-data/index.js +1 -0
  260. package/build/models/data/blog/tag/index.d.ts +6 -0
  261. package/build/models/data/blog/tag/index.js +1 -0
  262. package/build/models/data/blog/writer/index.d.ts +6 -0
  263. package/build/models/data/blog/writer/index.js +1 -0
  264. package/build/models/data/brand/index.d.ts +26 -0
  265. package/build/models/data/brand/index.js +1 -0
  266. package/build/models/data/brand/translation/index.d.ts +7 -0
  267. package/build/models/data/brand/translation/index.js +1 -0
  268. package/build/models/data/campaign-offer/index.d.ts +21 -0
  269. package/build/models/data/campaign-offer/index.js +1 -0
  270. package/build/models/data/campaign-offer/product/index.d.ts +24 -0
  271. package/build/models/data/campaign-offer/product/index.js +1 -0
  272. package/build/models/data/cart/available-shipping-method/index.d.ts +10 -0
  273. package/build/models/data/cart/available-shipping-method/index.js +1 -0
  274. package/build/models/data/cart/campaign-offer/index.d.ts +16 -0
  275. package/build/models/data/cart/campaign-offer/index.js +1 -0
  276. package/build/models/data/cart/index.d.ts +13 -0
  277. package/build/models/data/cart/index.js +1 -0
  278. package/build/models/data/category/index.d.ts +22 -0
  279. package/build/models/data/category/index.js +1 -0
  280. package/build/models/data/category/path-item/index.d.ts +14 -0
  281. package/build/models/data/category/path-item/index.js +1 -0
  282. package/build/models/data/category/translations/index.d.ts +7 -0
  283. package/build/models/data/category/translations/index.js +1 -0
  284. package/build/models/data/checkout/index.d.ts +22 -0
  285. package/build/models/data/checkout/index.js +1 -0
  286. package/build/models/data/checkout-settings/index.d.ts +20 -0
  287. package/build/models/data/checkout-settings/index.js +1 -0
  288. package/build/models/data/checkout-settings/option/index.d.ts +6 -0
  289. package/build/models/data/checkout-settings/option/index.js +1 -0
  290. package/build/models/data/checkout-settings/price/index.d.ts +7 -0
  291. package/build/models/data/checkout-settings/price/index.js +1 -0
  292. package/build/models/data/city/index.d.ts +12 -0
  293. package/build/models/data/city/index.js +1 -0
  294. package/build/models/data/contact-form/index.d.ts +9 -0
  295. package/build/models/data/contact-form/index.js +1 -0
  296. package/build/models/data/country/index.d.ts +18 -0
  297. package/build/models/data/country/index.js +1 -0
  298. package/build/models/data/country/location-translations/index.d.ts +7 -0
  299. package/build/models/data/customer/address/city/index.d.ts +7 -0
  300. package/build/models/data/customer/address/city/index.js +1 -0
  301. package/build/models/data/customer/address/country/index.d.ts +9 -0
  302. package/build/models/data/customer/address/country/index.js +1 -0
  303. package/build/models/data/customer/address/district/index.d.ts +7 -0
  304. package/build/models/data/customer/address/district/index.js +1 -0
  305. package/build/models/data/customer/address/index.d.ts +40 -0
  306. package/build/models/data/customer/address/index.js +1 -0
  307. package/build/models/data/customer/address/state/index.d.ts +7 -0
  308. package/build/models/data/customer/address/state/index.js +1 -0
  309. package/build/models/data/customer/attribute/index.d.ts +17 -0
  310. package/build/models/data/customer/attribute/index.js +1 -0
  311. package/build/models/data/customer/attribute/option/index.d.ts +9 -0
  312. package/build/models/data/customer/attribute/option/index.js +1 -0
  313. package/build/models/data/customer/attribute/sales-channel/index.d.ts +8 -0
  314. package/build/models/data/customer/attribute/sales-channel/index.js +1 -0
  315. package/build/models/data/customer/attribute/translation/index.d.ts +9 -0
  316. package/build/models/data/customer/attribute/translation/index.js +1 -0
  317. package/build/models/data/customer/attribute/translation/option/index.d.ts +6 -0
  318. package/build/models/data/customer/attribute/translation/option/index.js +1 -0
  319. package/build/models/data/customer/attribute/value/index.d.ts +11 -0
  320. package/build/models/data/customer/attribute/value/index.js +1 -0
  321. package/build/models/data/customer/index.d.ts +38 -0
  322. package/build/models/data/customer/index.js +1 -0
  323. package/build/models/data/customer/review/index.d.ts +22 -0
  324. package/build/models/data/customer/review/index.js +1 -0
  325. package/build/models/data/customer/review/settings/index.d.ts +6 -0
  326. package/build/models/data/customer/review/settings/index.js +1 -0
  327. package/build/models/data/customer/review/summary/index.d.ts +10 -0
  328. package/build/models/data/customer/review/summary/index.js +1 -0
  329. package/build/models/data/customer/review/summary/star/index.d.ts +6 -0
  330. package/build/models/data/customer/review/summary/star/index.js +1 -0
  331. package/build/models/data/district/index.d.ts +12 -0
  332. package/build/models/data/district/index.js +1 -0
  333. package/build/models/data/favorite-product/index.d.ts +7 -0
  334. package/build/models/data/favorite-product/index.js +1 -0
  335. package/build/models/data/filter-category/index.d.ts +12 -0
  336. package/build/models/data/filter-category/index.js +1 -0
  337. package/build/models/data/html-meta-data/index.d.ts +28 -0
  338. package/build/models/data/html-meta-data/index.js +1 -0
  339. package/build/models/data/html-meta-data/translations/index.d.ts +7 -0
  340. package/build/models/data/html-meta-data/translations/index.js +1 -0
  341. package/build/models/data/image/index.d.ts +9 -0
  342. package/build/models/data/image/index.js +1 -0
  343. package/build/models/data/index.d.ts +136 -0
  344. package/build/models/data/last-viewed-product/index.d.ts +6 -0
  345. package/build/models/data/last-viewed-product/index.js +1 -0
  346. package/build/models/data/merchant-settings/index.d.ts +12 -0
  347. package/build/models/data/merchant-settings/index.js +1 -0
  348. package/build/models/data/order/address/city/index.d.ts +7 -0
  349. package/build/models/data/order/address/city/index.js +1 -0
  350. package/build/models/data/order/address/country/index.d.ts +9 -0
  351. package/build/models/data/order/address/country/index.js +1 -0
  352. package/build/models/data/order/address/district/index.d.ts +7 -0
  353. package/build/models/data/order/address/district/index.js +1 -0
  354. package/build/models/data/order/address/index.d.ts +37 -0
  355. package/build/models/data/order/address/index.js +1 -0
  356. package/build/models/data/order/address/state/index.d.ts +7 -0
  357. package/build/models/data/order/address/state/index.js +1 -0
  358. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +8 -0
  359. package/build/models/data/order/adjustment/applied-order-line/index.js +1 -0
  360. package/build/models/data/order/adjustment/index.d.ts +15 -0
  361. package/build/models/data/order/adjustment/index.js +1 -0
  362. package/build/models/data/order/customer/index.d.ts +11 -0
  363. package/build/models/data/order/customer/index.js +1 -0
  364. package/build/models/data/order/gift-line/index.d.ts +6 -0
  365. package/build/models/data/order/gift-line/index.js +1 -0
  366. package/build/models/data/order/index.d.ts +67 -0
  367. package/build/models/data/order/index.js +1 -0
  368. package/build/models/data/order/invoice/index.d.ts +12 -0
  369. package/build/models/data/order/invoice/index.js +1 -0
  370. package/build/models/data/order/line-item/base-unit/index.d.ts +9 -0
  371. package/build/models/data/order/line-item/base-unit/index.js +1 -0
  372. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +6 -0
  373. package/build/models/data/order/line-item/base-unit/unit-type/index.js +1 -0
  374. package/build/models/data/order/line-item/discount/index.d.ts +11 -0
  375. package/build/models/data/order/line-item/discount/index.js +1 -0
  376. package/build/models/data/order/line-item/index.d.ts +45 -0
  377. package/build/models/data/order/line-item/index.js +1 -0
  378. package/build/models/data/order/line-item/option/index.d.ts +10 -0
  379. package/build/models/data/order/line-item/option/index.js +1 -0
  380. package/build/models/data/order/line-item/option/value/index.d.ts +7 -0
  381. package/build/models/data/order/line-item/option/value/index.js +1 -0
  382. package/build/models/data/order/line-item/variant/brand/index.d.ts +6 -0
  383. package/build/models/data/order/line-item/variant/brand/index.js +1 -0
  384. package/build/models/data/order/line-item/variant/category/index.d.ts +12 -0
  385. package/build/models/data/order/line-item/variant/category/index.js +1 -0
  386. package/build/models/data/order/line-item/variant/index.d.ts +30 -0
  387. package/build/models/data/order/line-item/variant/index.js +1 -0
  388. package/build/models/data/order/line-item/variant/price/index.d.ts +10 -0
  389. package/build/models/data/order/line-item/variant/price/index.js +1 -0
  390. package/build/models/data/order/line-item/variant/unit/index.d.ts +6 -0
  391. package/build/models/data/order/line-item/variant/unit/index.js +1 -0
  392. package/build/models/data/order/line-item/variant/value/index.d.ts +11 -0
  393. package/build/models/data/order/line-item/variant/value/index.js +1 -0
  394. package/build/models/data/order/package/index.d.ts +14 -0
  395. package/build/models/data/order/package/index.js +1 -0
  396. package/build/models/data/order/package/tracking-info/index.d.ts +9 -0
  397. package/build/models/data/order/package/tracking-info/index.js +1 -0
  398. package/build/models/data/order/payment-method/index.d.ts +9 -0
  399. package/build/models/data/order/payment-method/index.js +1 -0
  400. package/build/models/data/order/refund/index.d.ts +7 -0
  401. package/build/models/data/order/refund/index.js +1 -0
  402. package/build/models/data/order/refund/line-item/index.d.ts +6 -0
  403. package/build/models/data/order/refund/line-item/index.js +1 -0
  404. package/build/models/data/order/refund/settings/index.d.ts +7 -0
  405. package/build/models/data/order/refund/settings/index.js +1 -0
  406. package/build/models/data/order/shipping-line/index.d.ts +12 -0
  407. package/build/models/data/order/shipping-line/index.js +1 -0
  408. package/build/models/data/order/tax-line/index.d.ts +6 -0
  409. package/build/models/data/order/tax-line/index.js +1 -0
  410. package/build/models/data/order/transaction/error/index.d.ts +7 -0
  411. package/build/models/data/order/transaction/error/index.js +1 -0
  412. package/build/models/data/order/transaction/index.d.ts +25 -0
  413. package/build/models/data/order/transaction/index.js +1 -0
  414. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +13 -0
  415. package/build/models/data/order/transaction/payment-method-detail/index.js +1 -0
  416. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +9 -0
  417. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +1 -0
  418. package/build/models/data/payment-gateway/additional-price/index.d.ts +9 -0
  419. package/build/models/data/payment-gateway/additional-price/index.js +1 -0
  420. package/build/models/data/payment-gateway/index.d.ts +31 -0
  421. package/build/models/data/payment-gateway/index.js +1 -0
  422. package/build/models/data/payment-gateway/settings/index.d.ts +10 -0
  423. package/build/models/data/payment-gateway/settings/index.js +1 -0
  424. package/build/models/data/payment-gateway/translation/index.d.ts +7 -0
  425. package/build/models/data/payment-gateway/translation/index.js +1 -0
  426. package/build/models/data/product/attribute/index.d.ts +15 -0
  427. package/build/models/data/product/attribute/index.js +1 -0
  428. package/build/models/data/product/attribute/option/index.d.ts +6 -0
  429. package/build/models/data/product/attribute/option/index.js +1 -0
  430. package/build/models/data/product/attribute/table-cell/index.d.ts +6 -0
  431. package/build/models/data/product/attribute/table-cell/index.js +1 -0
  432. package/build/models/data/product/attribute/table-template/index.d.ts +7 -0
  433. package/build/models/data/product/attribute/table-template/index.js +1 -0
  434. package/build/models/data/product/attribute/translation/index.d.ts +13 -0
  435. package/build/models/data/product/attribute/translation/index.js +1 -0
  436. package/build/models/data/product/attribute-value/index.d.ts +28 -0
  437. package/build/models/data/product/attribute-value/index.js +1 -0
  438. package/build/models/data/product/back-in-stock-settings/index.d.ts +5 -0
  439. package/build/models/data/product/back-in-stock-settings/index.js +1 -0
  440. package/build/models/data/product/base-unit/index.d.ts +12 -0
  441. package/build/models/data/product/base-unit/index.js +1 -0
  442. package/build/models/data/product/campaign/data/index.d.ts +27 -0
  443. package/build/models/data/product/campaign/data/index.js +1 -0
  444. package/build/models/data/product/campaign/filter/index.d.ts +7 -0
  445. package/build/models/data/product/campaign/filter/index.js +1 -0
  446. package/build/models/data/product/campaign/index.d.ts +7 -0
  447. package/build/models/data/product/campaign/index.js +1 -0
  448. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +20 -0
  449. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +1 -0
  450. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +6 -0
  451. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +1 -0
  452. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +14 -0
  453. package/build/models/data/product/campaign/product-fixed-discount/index.js +1 -0
  454. package/build/models/data/product/filter/index.d.ts +84 -0
  455. package/build/models/data/product/filter/index.js +1 -0
  456. package/build/models/data/product/image/index.d.ts +10 -0
  457. package/build/models/data/product/image/index.js +1 -0
  458. package/build/models/data/product/index.d.ts +62 -0
  459. package/build/models/data/product/index.js +1 -0
  460. package/build/models/data/product/option-set/index.d.ts +29 -0
  461. package/build/models/data/product/option-set/index.js +1 -0
  462. package/build/models/data/product/option-set/option/index.d.ts +72 -0
  463. package/build/models/data/product/option-set/option/index.js +1 -0
  464. package/build/models/data/product/tag/index.d.ts +6 -0
  465. package/build/models/data/product/tag/index.js +1 -0
  466. package/build/models/data/product/variant/index.d.ts +31 -0
  467. package/build/models/data/product/variant/index.js +1 -0
  468. package/build/models/data/product/variant/price/index.d.ts +19 -0
  469. package/build/models/data/product/variant/price/index.js +1 -0
  470. package/build/models/data/product/variant/unit/index.d.ts +6 -0
  471. package/build/models/data/product/variant/unit/index.js +1 -0
  472. package/build/models/data/product/variant-type/index.d.ts +8 -0
  473. package/build/models/data/product/variant-type/index.js +1 -0
  474. package/build/models/data/product/variant-type/init.d.ts +2 -0
  475. package/build/models/data/raffle/index.d.ts +63 -0
  476. package/build/models/data/raffle/index.js +1 -0
  477. package/build/models/data/sales-channel/index.d.ts +19 -0
  478. package/build/models/data/sales-channel/index.js +1 -0
  479. package/build/models/data/state/index.d.ts +8 -0
  480. package/build/models/data/state/index.js +1 -0
  481. package/build/models/data/stock-location/address/city/index.d.ts +7 -0
  482. package/build/models/data/stock-location/address/city/index.js +1 -0
  483. package/build/models/data/stock-location/address/country/index.d.ts +7 -0
  484. package/build/models/data/stock-location/address/country/index.js +1 -0
  485. package/build/models/data/stock-location/address/district/index.d.ts +7 -0
  486. package/build/models/data/stock-location/address/district/index.js +1 -0
  487. package/build/models/data/stock-location/address/index.d.ts +15 -0
  488. package/build/models/data/stock-location/address/index.js +1 -0
  489. package/build/models/data/stock-location/address/state/index.d.ts +7 -0
  490. package/build/models/data/stock-location/address/state/index.js +1 -0
  491. package/build/models/data/stock-location/available/index.d.ts +10 -0
  492. package/build/models/data/stock-location/available/index.js +1 -0
  493. package/build/models/data/stock-location/index.d.ts +14 -0
  494. package/build/models/data/stock-location/index.js +1 -0
  495. package/build/models/data/storefront/domain/index.d.ts +9 -0
  496. package/build/models/data/storefront/domain/index.js +1 -0
  497. package/build/models/data/storefront/index.d.ts +27 -0
  498. package/build/models/data/storefront/index.js +1 -0
  499. package/build/models/data/storefront/localization/index.d.ts +8 -0
  500. package/build/models/data/storefront/localization/index.js +1 -0
  501. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +6 -0
  502. package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
  503. package/build/models/data/storefront/routing/index.d.ts +14 -0
  504. package/build/models/data/storefront/routing/index.js +1 -0
  505. package/build/models/data/storefront/theme/index.d.ts +10 -0
  506. package/build/models/data/storefront/theme/index.js +1 -0
  507. package/build/models/data/storefront/theme-localization/index.d.ts +13 -0
  508. package/build/models/data/storefront/theme-localization/index.js +1 -0
  509. package/build/models/data/theme-json/component/index.d.ts +20 -0
  510. package/build/models/data/theme-json/component/index.js +1 -0
  511. package/build/models/data/theme-json/component/prop/index.d.ts +26 -0
  512. package/build/models/data/theme-json/component/prop/index.js +1 -0
  513. package/build/models/data/theme-json/custom-data/index.d.ts +43 -0
  514. package/build/models/data/theme-json/custom-data/index.js +1 -0
  515. package/build/models/data/theme-json/index.d.ts +16 -0
  516. package/build/models/data/theme-json/index.js +1 -0
  517. package/build/models/data/theme-json/page/component/index.d.ts +7 -0
  518. package/build/models/data/theme-json/page/component/index.js +1 -0
  519. package/build/models/data/theme-json/page/index.d.ts +21 -0
  520. package/build/models/data/theme-json/page/index.js +1 -0
  521. package/build/models/data/theme-json/settings/color/index.d.ts +15 -0
  522. package/build/models/data/theme-json/settings/color/index.js +1 -0
  523. package/build/models/data/theme-json/settings/favicon/index.d.ts +5 -0
  524. package/build/models/data/theme-json/settings/favicon/index.js +1 -0
  525. package/build/models/data/theme-json/settings/font-family/index.d.ts +6 -0
  526. package/build/models/data/theme-json/settings/font-family/index.js +1 -0
  527. package/build/models/data/theme-json/settings/index.d.ts +13 -0
  528. package/build/models/data/theme-json/settings/index.js +1 -0
  529. package/build/models/data/variant-type/index.d.ts +13 -0
  530. package/build/models/data/variant-type/index.js +1 -0
  531. package/build/models/data/variant-type/variant-value/index.d.ts +12 -0
  532. package/build/models/data/variant-type/variant-value/index.js +1 -0
  533. package/build/models/index.d.ts +2 -0
  534. package/build/models/ui/blog-category-list/index.d.ts +51 -0
  535. package/build/models/ui/blog-category-list/index.js +1 -0
  536. package/build/models/ui/blog-list/index.d.ts +55 -0
  537. package/build/models/ui/blog-list/index.js +1 -0
  538. package/build/models/ui/brand-list/index.d.ts +61 -0
  539. package/build/models/ui/brand-list/index.js +1 -0
  540. package/build/models/ui/category-list/index.d.ts +61 -0
  541. package/build/models/ui/category-list/index.js +1 -0
  542. package/build/models/ui/component-renderer/index.d.ts +7 -0
  543. package/build/models/ui/component-renderer/index.js +1 -0
  544. package/build/models/ui/customer-review-list/index.d.ts +43 -0
  545. package/build/models/ui/customer-review-list/index.js +1 -0
  546. package/build/models/ui/customer-review-summary-list/index.d.ts +43 -0
  547. package/build/models/ui/customer-review-summary-list/index.js +1 -0
  548. package/build/models/ui/index.d.ts +25 -0
  549. package/build/models/ui/navigation-link/index.d.ts +8 -0
  550. package/build/models/ui/navigation-link/index.js +1 -0
  551. package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
  552. package/build/models/ui/product-attribute-detail/index.js +1 -0
  553. package/build/models/ui/product-attribute-list/index.d.ts +8 -0
  554. package/build/models/ui/product-attribute-list/index.js +1 -0
  555. package/build/models/ui/product-list/index.d.ts +137 -0
  556. package/build/models/ui/product-list/index.js +1 -0
  557. package/build/models/ui/raffle-list/index.d.ts +53 -0
  558. package/build/models/ui/raffle-list/index.js +1 -0
  559. package/build/models/ui/validator/form/account-info.d.ts +39 -0
  560. package/build/models/ui/validator/form/account-info.js +1 -0
  561. package/build/models/ui/validator/form/address.d.ts +75 -0
  562. package/build/models/ui/validator/form/address.js +1 -0
  563. package/build/models/ui/validator/form/contact-form.d.ts +42 -0
  564. package/build/models/ui/validator/form/contact-form.js +1 -0
  565. package/build/models/ui/validator/form/customer-review.d.ts +34 -0
  566. package/build/models/ui/validator/form/customer-review.js +1 -0
  567. package/build/models/ui/validator/form/forgot-password.d.ts +26 -0
  568. package/build/models/ui/validator/form/forgot-password.js +1 -0
  569. package/build/models/ui/validator/form/login.d.ts +32 -0
  570. package/build/models/ui/validator/form/login.js +1 -0
  571. package/build/models/ui/validator/form/raffle-form.d.ts +62 -0
  572. package/build/models/ui/validator/form/raffle-form.js +1 -0
  573. package/build/models/ui/validator/form/recover-password.d.ts +33 -0
  574. package/build/models/ui/validator/form/recover-password.js +1 -0
  575. package/build/models/ui/validator/form/register.d.ts +49 -0
  576. package/build/models/ui/validator/form/register.js +1 -0
  577. package/build/models/ui/validator/index.d.ts +27 -0
  578. package/build/models/ui/validator/index.js +1 -0
  579. package/build/models/ui/validator/rules/index.d.ts +101 -0
  580. package/build/models/ui/validator/rules/index.js +1 -0
  581. package/build/page-data-init/index.d.ts +39 -0
  582. package/build/page-data-init/index.js +1 -0
  583. package/build/pages/404.d.ts +4 -0
  584. package/build/pages/404.js +1 -0
  585. package/build/pages/[slug]/index.d.ts +4 -0
  586. package/build/pages/_slug_/index.js +1 -0
  587. package/build/pages/account/addresses.d.ts +4 -0
  588. package/build/pages/account/addresses.js +1 -0
  589. package/build/pages/account/favorite-products.d.ts +4 -0
  590. package/build/pages/account/favorite-products.js +1 -0
  591. package/build/pages/account/forgot-password.d.ts +4 -0
  592. package/build/pages/account/forgot-password.js +1 -0
  593. package/build/pages/account/index.d.ts +4 -0
  594. package/build/pages/account/index.js +1 -0
  595. package/build/pages/account/login.d.ts +4 -0
  596. package/build/pages/account/login.js +1 -0
  597. package/build/pages/account/orders/[id].d.ts +4 -0
  598. package/build/pages/account/orders/_id_.js +1 -0
  599. package/build/pages/account/orders/index.d.ts +4 -0
  600. package/build/pages/account/orders/index.js +1 -0
  601. package/build/pages/account/raffles.d.ts +4 -0
  602. package/build/pages/account/raffles.js +1 -0
  603. package/build/pages/account/recover-password.d.ts +4 -0
  604. package/build/pages/account/recover-password.js +1 -0
  605. package/build/pages/account/register.d.ts +4 -0
  606. package/build/pages/account/register.js +1 -0
  607. package/build/pages/blog/[slug].d.ts +4 -0
  608. package/build/pages/blog/_slug_.js +1 -0
  609. package/build/pages/blog/index.d.ts +4 -0
  610. package/build/pages/blog/index.js +1 -0
  611. package/build/pages/cart.d.ts +4 -0
  612. package/build/pages/cart.js +1 -0
  613. package/build/pages/checkout.d.ts +16 -0
  614. package/build/pages/checkout.js +1 -0
  615. package/build/pages/editor.d.ts +10 -0
  616. package/build/pages/editor.js +1 -0
  617. package/build/pages/home.d.ts +4 -0
  618. package/build/pages/home.js +1 -0
  619. package/build/pages/index.d.ts +22 -0
  620. package/build/pages/pages/[slug].d.ts +4 -0
  621. package/build/pages/pages/_slug_.js +1 -0
  622. package/build/pages/raffle/[slug].d.ts +4 -0
  623. package/build/pages/raffle/_slug_.js +1 -0
  624. package/build/pages/raffle/index.d.ts +4 -0
  625. package/build/pages/raffle/index.js +1 -0
  626. package/build/pages/search.d.ts +4 -0
  627. package/build/pages/search.js +1 -0
  628. package/build/store/base.d.ts +44 -0
  629. package/build/store/base.js +1 -0
  630. package/build/store/blog/index.d.ts +26 -0
  631. package/build/store/blog/index.js +1 -0
  632. package/build/store/brand/index.d.ts +12 -0
  633. package/build/store/brand/index.js +1 -0
  634. package/build/store/cart/api.d.ts +10 -0
  635. package/build/store/cart/api.js +1 -0
  636. package/build/store/cart/index.d.ts +27 -0
  637. package/build/store/cart/index.js +1 -0
  638. package/build/store/category/index.d.ts +12 -0
  639. package/build/store/category/index.js +1 -0
  640. package/build/store/checkout/index.d.ts +14 -0
  641. package/build/store/checkout/index.js +1 -0
  642. package/build/store/customer/api.d.ts +54 -0
  643. package/build/store/customer/api.js +1 -0
  644. package/build/store/customer/index.d.ts +74 -0
  645. package/build/store/customer/index.js +1 -0
  646. package/build/store/html-meta-data/index.d.ts +6 -0
  647. package/build/store/html-meta-data/index.js +1 -0
  648. package/build/store/index.d.ts +3 -0
  649. package/build/store/location/index.d.ts +9 -0
  650. package/build/store/location/index.js +1 -0
  651. package/build/store/merchant/index.d.ts +6 -0
  652. package/build/store/product/index.d.ts +36 -0
  653. package/build/store/product/index.js +1 -0
  654. package/build/store/raffle/index.d.ts +15 -0
  655. package/build/store/raffle/index.js +1 -0
  656. package/build/store/storefront/index.d.ts +5 -0
  657. package/build/utils/constants.d.ts +2 -0
  658. package/build/utils/constants.js +1 -0
  659. package/build/utils/currency.d.ts +7 -0
  660. package/build/utils/currency.js +1 -0
  661. package/build/utils/google-fonts.d.ts +2 -0
  662. package/build/utils/google-fonts.js +1 -0
  663. package/build/utils/helper.d.ts +4 -0
  664. package/build/utils/helper.js +1 -0
  665. package/build/utils/i18n.d.ts +11 -0
  666. package/build/utils/i18n.js +1 -0
  667. package/build/utils/index.d.ts +3 -0
  668. package/package.json +14 -14
  669. package/src/analytics/analytics.ts +0 -537
  670. package/src/analytics/events.ts +0 -116
  671. package/src/analytics/facebookPixel.ts +0 -226
  672. package/src/analytics/googleAnalytics.ts +0 -227
  673. package/src/analytics/googleTagManager.ts +0 -341
  674. package/src/analytics/googleUniversal.ts +0 -146
  675. package/src/analytics/head/index.tsx +0 -134
  676. package/src/analytics/ikas.ts +0 -568
  677. package/src/analytics/index.ts +0 -2
  678. package/src/analytics/tiktokPixel.ts +0 -223
  679. package/src/components/checkout/components/address-form/index.tsx +0 -406
  680. package/src/components/checkout/components/address-form/model.ts +0 -398
  681. package/src/components/checkout/components/button/index.tsx +0 -44
  682. package/src/components/checkout/components/button/style.module.scss +0 -103
  683. package/src/components/checkout/components/cart-summary/cart-item/index.tsx +0 -167
  684. package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +0 -144
  685. package/src/components/checkout/components/cart-summary/index.tsx +0 -512
  686. package/src/components/checkout/components/cart-summary/style.module.scss +0 -296
  687. package/src/components/checkout/components/checkbox/check.tsx +0 -23
  688. package/src/components/checkout/components/checkbox/index.tsx +0 -50
  689. package/src/components/checkout/components/checkbox/style.module.scss +0 -72
  690. package/src/components/checkout/components/credit-card-form/index.tsx +0 -122
  691. package/src/components/checkout/components/credit-card-form/model.ts +0 -56
  692. package/src/components/checkout/components/credit-card-form/style.module.scss +0 -6
  693. package/src/components/checkout/components/credit-card-form/svg/amex.tsx +0 -30
  694. package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +0 -38
  695. package/src/components/checkout/components/credit-card-form/svg/troy.tsx +0 -54
  696. package/src/components/checkout/components/credit-card-form/svg/visa.tsx +0 -46
  697. package/src/components/checkout/components/customer-addresses/index.tsx +0 -338
  698. package/src/components/checkout/components/customer-addresses/model.ts +0 -134
  699. package/src/components/checkout/components/customer-addresses/style.module.scss +0 -38
  700. package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +0 -29
  701. package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +0 -41
  702. package/src/components/checkout/components/delivery-methods/icons/box.tsx +0 -22
  703. package/src/components/checkout/components/delivery-methods/icons/store.tsx +0 -22
  704. package/src/components/checkout/components/delivery-methods/index.tsx +0 -39
  705. package/src/components/checkout/components/delivery-methods/style.module.scss +0 -4
  706. package/src/components/checkout/components/error/customer-login-required-error/index.tsx +0 -23
  707. package/src/components/checkout/components/error/index.tsx +0 -54
  708. package/src/components/checkout/components/error/no-shipping-error/index.tsx +0 -14
  709. package/src/components/checkout/components/error/payment-error/index.tsx +0 -21
  710. package/src/components/checkout/components/error/stock-error/index.tsx +0 -72
  711. package/src/components/checkout/components/error/stock-error/style.module.scss +0 -11
  712. package/src/components/checkout/components/error/unknown-error/index.tsx +0 -21
  713. package/src/components/checkout/components/expandable-section/index.tsx +0 -37
  714. package/src/components/checkout/components/expandable-section/style.module.scss +0 -29
  715. package/src/components/checkout/components/form-item/caret-down.tsx +0 -20
  716. package/src/components/checkout/components/form-item/index.tsx +0 -207
  717. package/src/components/checkout/components/form-item/model.ts +0 -145
  718. package/src/components/checkout/components/form-item/style.module.scss +0 -216
  719. package/src/components/checkout/components/fullscreen-loading/index.tsx +0 -10
  720. package/src/components/checkout/components/fullscreen-loading/style.module.scss +0 -56
  721. package/src/components/checkout/components/input-with-button/index.tsx +0 -53
  722. package/src/components/checkout/components/input-with-button/style.module.scss +0 -104
  723. package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +0 -162
  724. package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +0 -15
  725. package/src/components/checkout/components/master-pass/modal/index.tsx +0 -32
  726. package/src/components/checkout/components/master-pass/modal/style.module.scss +0 -42
  727. package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +0 -20
  728. package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +0 -62
  729. package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +0 -27
  730. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +0 -19
  731. package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +0 -41
  732. package/src/components/checkout/components/master-pass/modal-otp/index.tsx +0 -202
  733. package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +0 -47
  734. package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +0 -28
  735. package/src/components/checkout/components/master-pass/modal-response/index.tsx +0 -24
  736. package/src/components/checkout/components/master-pass/modal-response/style.module.scss +0 -7
  737. package/src/components/checkout/components/master-pass/modal-success/index.tsx +0 -54
  738. package/src/components/checkout/components/master-pass/modal-success/style.module.scss +0 -25
  739. package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +0 -41
  740. package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +0 -21
  741. package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +0 -14
  742. package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +0 -34
  743. package/src/components/checkout/components/modal/index.tsx +0 -41
  744. package/src/components/checkout/components/modal/style.module.scss +0 -68
  745. package/src/components/checkout/components/modal/useEscape.tsx +0 -20
  746. package/src/components/checkout/components/notification-box/index.tsx +0 -70
  747. package/src/components/checkout/components/notification-box/style.module.scss +0 -69
  748. package/src/components/checkout/components/offer-product/index.tsx +0 -177
  749. package/src/components/checkout/components/offer-product/select/arrows.tsx +0 -22
  750. package/src/components/checkout/components/offer-product/select/index.tsx +0 -40
  751. package/src/components/checkout/components/offer-product/select/style.module.scss +0 -28
  752. package/src/components/checkout/components/offer-product/style.module.scss +0 -115
  753. package/src/components/checkout/components/phone-number-input/compare-strings.ts +0 -5
  754. package/src/components/checkout/components/phone-number-input/get-countries.ts +0 -52
  755. package/src/components/checkout/components/phone-number-input/index.tsx +0 -125
  756. package/src/components/checkout/components/phone-number-input/style.module.scss +0 -83
  757. package/src/components/checkout/components/select-box/index.tsx +0 -60
  758. package/src/components/checkout/components/select-box/style.module.scss +0 -55
  759. package/src/components/checkout/components/step-container/index.tsx +0 -107
  760. package/src/components/checkout/components/step-container/style.module.scss +0 -86
  761. package/src/components/checkout/components/stripe/checkout-form.tsx +0 -55
  762. package/src/components/checkout/components/stripe/index.tsx +0 -91
  763. package/src/components/checkout/components/stripe/style.module.scss +0 -75
  764. package/src/components/checkout/components/svg/arrow-down.tsx +0 -23
  765. package/src/components/checkout/components/svg/arrow-left.tsx +0 -23
  766. package/src/components/checkout/components/svg/arrow-right.tsx +0 -23
  767. package/src/components/checkout/components/svg/cross.tsx +0 -23
  768. package/src/components/checkout/components/svg/discount.tsx +0 -34
  769. package/src/components/checkout/components/svg/external.tsx +0 -101
  770. package/src/components/checkout/components/svg/gift.tsx +0 -40
  771. package/src/components/checkout/components/svg/ikas.tsx +0 -39
  772. package/src/components/checkout/components/svg/lock.tsx +0 -23
  773. package/src/components/checkout/components/svg/shopping-cart.tsx +0 -23
  774. package/src/components/checkout/components/svg/success-circle.tsx +0 -26
  775. package/src/components/checkout/components/svg/tag.tsx +0 -23
  776. package/src/components/checkout/components/svg/warning.tsx +0 -30
  777. package/src/components/checkout/components/toggle/index.tsx +0 -51
  778. package/src/components/checkout/components/toggle/style.module.scss +0 -75
  779. package/src/components/checkout/components/tooltip/index.tsx +0 -27
  780. package/src/components/checkout/components/tooltip/style.module.scss +0 -86
  781. package/src/components/checkout/index.tsx +0 -650
  782. package/src/components/checkout/model.ts +0 -1589
  783. package/src/components/checkout/modelMasterPass.ts +0 -1001
  784. package/src/components/checkout/steps/step-info/index.tsx +0 -91
  785. package/src/components/checkout/steps/step-payment/billing-address/index.tsx +0 -48
  786. package/src/components/checkout/steps/step-payment/index.tsx +0 -113
  787. package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +0 -227
  788. package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +0 -56
  789. package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +0 -50
  790. package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +0 -32
  791. package/src/components/checkout/steps/step-payment/style.module.scss +0 -37
  792. package/src/components/checkout/steps/step-shipping/index.tsx +0 -131
  793. package/src/components/checkout/steps/step-shipping/style.module.scss +0 -44
  794. package/src/components/checkout/steps/step-success/index.tsx +0 -374
  795. package/src/components/checkout/steps/step-success/style.module.scss +0 -161
  796. package/src/components/checkout/style.module.scss +0 -366
  797. package/src/components/checkout/styles/common.module.scss +0 -59
  798. package/src/components/checkout/styles/variables.scss +0 -40
  799. package/src/components/image/index.tsx +0 -43
  800. package/src/components/index.ts +0 -5
  801. package/src/components/link/index.tsx +0 -26
  802. package/src/components/page/ThemeComponent.tsx +0 -108
  803. package/src/components/page/head.tsx +0 -370
  804. package/src/components/page/index.tsx +0 -220
  805. package/src/components/page-editor/ThemeComponentEditor.tsx +0 -281
  806. package/src/components/page-editor/error/index.tsx +0 -18
  807. package/src/components/page-editor/index.tsx +0 -194
  808. package/src/components/page-editor/loader/index.tsx +0 -18
  809. package/src/components/page-editor/loader/style.module.scss +0 -59
  810. package/src/components/page-editor/model.ts +0 -784
  811. package/src/index.ts +0 -6
  812. package/src/models/data/base/index.ts +0 -15
  813. package/src/models/data/blog/category/index.ts +0 -36
  814. package/src/models/data/blog/content/index.ts +0 -16
  815. package/src/models/data/blog/index.ts +0 -75
  816. package/src/models/data/blog/meta-data/index.ts +0 -39
  817. package/src/models/data/blog/tag/index.ts +0 -16
  818. package/src/models/data/blog/writer/index.ts +0 -17
  819. package/src/models/data/brand/index.ts +0 -58
  820. package/src/models/data/brand/translation/index.ts +0 -16
  821. package/src/models/data/campaign-offer/index.ts +0 -79
  822. package/src/models/data/campaign-offer/product/index.ts +0 -69
  823. package/src/models/data/cart/available-shipping-method/index.ts +0 -25
  824. package/src/models/data/cart/campaign-offer/index.ts +0 -54
  825. package/src/models/data/cart/index.ts +0 -38
  826. package/src/models/data/category/index.ts +0 -69
  827. package/src/models/data/category/path-item/index.ts +0 -46
  828. package/src/models/data/category/translations/index.ts +0 -16
  829. package/src/models/data/checkout/index.ts +0 -87
  830. package/src/models/data/checkout-settings/index.ts +0 -63
  831. package/src/models/data/checkout-settings/option/index.ts +0 -14
  832. package/src/models/data/checkout-settings/price/index.ts +0 -16
  833. package/src/models/data/city/index.ts +0 -34
  834. package/src/models/data/contact-form/index.ts +0 -20
  835. package/src/models/data/country/index.ts +0 -50
  836. package/src/models/data/country/location-translations/index.ts +0 -15
  837. package/src/models/data/customer/address/city/index.ts +0 -16
  838. package/src/models/data/customer/address/country/index.ts +0 -20
  839. package/src/models/data/customer/address/district/index.ts +0 -16
  840. package/src/models/data/customer/address/index.tsx +0 -136
  841. package/src/models/data/customer/address/state/index.ts +0 -16
  842. package/src/models/data/customer/attribute/index.ts +0 -61
  843. package/src/models/data/customer/attribute/option/index.ts +0 -20
  844. package/src/models/data/customer/attribute/sales-channel/index.ts +0 -24
  845. package/src/models/data/customer/attribute/translation/index.ts +0 -23
  846. package/src/models/data/customer/attribute/translation/option/index.ts +0 -16
  847. package/src/models/data/customer/attribute/value/index.ts +0 -29
  848. package/src/models/data/customer/index.ts +0 -122
  849. package/src/models/data/customer/review/index.ts +0 -70
  850. package/src/models/data/customer/review/settings/index.ts +0 -14
  851. package/src/models/data/customer/review/summary/index.ts +0 -29
  852. package/src/models/data/customer/review/summary/star/index.ts +0 -16
  853. package/src/models/data/district/index.ts +0 -36
  854. package/src/models/data/favorite-product/index.ts +0 -23
  855. package/src/models/data/filter-category/index.ts +0 -30
  856. package/src/models/data/html-meta-data/index.ts +0 -69
  857. package/src/models/data/html-meta-data/translations/index.ts +0 -16
  858. package/src/models/data/image/index.ts +0 -33
  859. package/src/models/data/index.ts +0 -195
  860. package/src/models/data/last-viewed-product/index.ts +0 -14
  861. package/src/models/data/merchant-settings/index.ts +0 -35
  862. package/src/models/data/order/address/city/index.ts +0 -16
  863. package/src/models/data/order/address/country/index.ts +0 -20
  864. package/src/models/data/order/address/district/index.ts +0 -16
  865. package/src/models/data/order/address/index.ts +0 -96
  866. package/src/models/data/order/address/state/index.ts +0 -16
  867. package/src/models/data/order/adjustment/applied-order-line/index.ts +0 -20
  868. package/src/models/data/order/adjustment/index.ts +0 -39
  869. package/src/models/data/order/customer/index.ts +0 -24
  870. package/src/models/data/order/gift-line/index.ts +0 -14
  871. package/src/models/data/order/index.ts +0 -260
  872. package/src/models/data/order/invoice/index.ts +0 -29
  873. package/src/models/data/order/line-item/base-unit/index.ts +0 -22
  874. package/src/models/data/order/line-item/base-unit/unit-type/index.ts +0 -14
  875. package/src/models/data/order/line-item/discount/index.ts +0 -23
  876. package/src/models/data/order/line-item/index.ts +0 -211
  877. package/src/models/data/order/line-item/option/index.ts +0 -24
  878. package/src/models/data/order/line-item/option/value/index.ts +0 -16
  879. package/src/models/data/order/line-item/variant/brand/index.ts +0 -14
  880. package/src/models/data/order/line-item/variant/category/index.ts +0 -36
  881. package/src/models/data/order/line-item/variant/index.ts +0 -70
  882. package/src/models/data/order/line-item/variant/price/index.ts +0 -22
  883. package/src/models/data/order/line-item/variant/unit/index.ts +0 -17
  884. package/src/models/data/order/line-item/variant/value/index.ts +0 -31
  885. package/src/models/data/order/package/index.ts +0 -41
  886. package/src/models/data/order/package/tracking-info/index.ts +0 -20
  887. package/src/models/data/order/payment-method/index.ts +0 -23
  888. package/src/models/data/order/refund/index.ts +0 -17
  889. package/src/models/data/order/refund/line-item/index.ts +0 -16
  890. package/src/models/data/order/refund/settings/index.ts +0 -16
  891. package/src/models/data/order/shipping-line/index.ts +0 -29
  892. package/src/models/data/order/tax-line/index.ts +0 -14
  893. package/src/models/data/order/transaction/error/index.ts +0 -16
  894. package/src/models/data/order/transaction/index.ts +0 -55
  895. package/src/models/data/order/transaction/payment-method-detail/index.ts +0 -33
  896. package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +0 -22
  897. package/src/models/data/payment-gateway/additional-price/index.ts +0 -29
  898. package/src/models/data/payment-gateway/index.ts +0 -90
  899. package/src/models/data/payment-gateway/settings/index.ts +0 -21
  900. package/src/models/data/payment-gateway/translation/index.ts +0 -18
  901. package/src/models/data/product/attribute/index.ts +0 -37
  902. package/src/models/data/product/attribute/option/index.ts +0 -14
  903. package/src/models/data/product/attribute/table-cell/index.ts +0 -16
  904. package/src/models/data/product/attribute/table-template/index.ts +0 -19
  905. package/src/models/data/product/attribute/translation/index.ts +0 -39
  906. package/src/models/data/product/attribute-value/index.ts +0 -109
  907. package/src/models/data/product/back-in-stock-settings/index.ts +0 -14
  908. package/src/models/data/product/base-unit/index.ts +0 -32
  909. package/src/models/data/product/campaign/data/index.ts +0 -70
  910. package/src/models/data/product/campaign/filter/index.ts +0 -19
  911. package/src/models/data/product/campaign/index.ts +0 -15
  912. package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +0 -57
  913. package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +0 -16
  914. package/src/models/data/product/campaign/product-fixed-discount/index.ts +0 -40
  915. package/src/models/data/product/filter/index.ts +0 -276
  916. package/src/models/data/product/image/index.ts +0 -22
  917. package/src/models/data/product/index.ts +0 -336
  918. package/src/models/data/product/option-set/index.ts +0 -99
  919. package/src/models/data/product/option-set/option/index.ts +0 -268
  920. package/src/models/data/product/tag/index.ts +0 -14
  921. package/src/models/data/product/variant/index.ts +0 -129
  922. package/src/models/data/product/variant/price/index.ts +0 -74
  923. package/src/models/data/product/variant/unit/index.ts +0 -17
  924. package/src/models/data/product/variant-type/index.ts +0 -19
  925. package/src/models/data/product/variant-type/init.ts +0 -15
  926. package/src/models/data/raffle/index.ts +0 -157
  927. package/src/models/data/sales-channel/index.ts +0 -56
  928. package/src/models/data/state/index.ts +0 -22
  929. package/src/models/data/stock-location/address/city/index.ts +0 -16
  930. package/src/models/data/stock-location/address/country/index.ts +0 -18
  931. package/src/models/data/stock-location/address/district/index.ts +0 -18
  932. package/src/models/data/stock-location/address/index.ts +0 -34
  933. package/src/models/data/stock-location/address/state/index.ts +0 -18
  934. package/src/models/data/stock-location/available/index.ts +0 -22
  935. package/src/models/data/stock-location/index.ts +0 -35
  936. package/src/models/data/storefront/domain/index.ts +0 -20
  937. package/src/models/data/storefront/index.ts +0 -67
  938. package/src/models/data/storefront/localization/index.tsx +0 -18
  939. package/src/models/data/storefront/routing/dynamic-currency/index.ts +0 -16
  940. package/src/models/data/storefront/routing/index.tsx +0 -29
  941. package/src/models/data/storefront/theme/index.tsx +0 -25
  942. package/src/models/data/storefront/theme-localization/index.tsx +0 -31
  943. package/src/models/data/theme-json/component/index.ts +0 -41
  944. package/src/models/data/theme-json/component/prop/index.ts +0 -55
  945. package/src/models/data/theme-json/custom-data/index.ts +0 -132
  946. package/src/models/data/theme-json/index.ts +0 -210
  947. package/src/models/data/theme-json/page/component/index.ts +0 -22
  948. package/src/models/data/theme-json/page/index.ts +0 -54
  949. package/src/models/data/theme-json/settings/color/index.ts +0 -35
  950. package/src/models/data/theme-json/settings/favicon/index.ts +0 -12
  951. package/src/models/data/theme-json/settings/font-family/index.ts +0 -14
  952. package/src/models/data/theme-json/settings/index.ts +0 -30
  953. package/src/models/data/variant-type/index.ts +0 -44
  954. package/src/models/data/variant-type/variant-value/index.ts +0 -32
  955. package/src/models/index.ts +0 -2
  956. package/src/models/ui/blog-category-list/index.ts +0 -169
  957. package/src/models/ui/blog-list/index.ts +0 -175
  958. package/src/models/ui/brand-list/index.ts +0 -237
  959. package/src/models/ui/category-list/index.ts +0 -237
  960. package/src/models/ui/component-renderer/index.ts +0 -9
  961. package/src/models/ui/customer-review-list/index.ts +0 -173
  962. package/src/models/ui/customer-review-summary-list/index.ts +0 -175
  963. package/src/models/ui/index.ts +0 -40
  964. package/src/models/ui/navigation-link/index.ts +0 -23
  965. package/src/models/ui/product-attribute-detail/index.ts +0 -29
  966. package/src/models/ui/product-attribute-list/index.ts +0 -52
  967. package/src/models/ui/product-list/index.ts +0 -1007
  968. package/src/models/ui/raffle-list/index.ts +0 -178
  969. package/src/models/ui/validator/form/account-info.ts +0 -167
  970. package/src/models/ui/validator/form/address.ts +0 -490
  971. package/src/models/ui/validator/form/contact-form.ts +0 -177
  972. package/src/models/ui/validator/form/customer-review.ts +0 -132
  973. package/src/models/ui/validator/form/forgot-password.ts +0 -96
  974. package/src/models/ui/validator/form/login.ts +0 -128
  975. package/src/models/ui/validator/form/raffle-form.ts +0 -289
  976. package/src/models/ui/validator/form/recover-password.ts +0 -148
  977. package/src/models/ui/validator/form/register.ts +0 -206
  978. package/src/models/ui/validator/index.ts +0 -121
  979. package/src/models/ui/validator/rules/index.ts +0 -311
  980. package/src/page-data-init/index.ts +0 -659
  981. package/src/pages/404.tsx +0 -10
  982. package/src/pages/[slug]/index.tsx +0 -9
  983. package/src/pages/account/addresses.tsx +0 -10
  984. package/src/pages/account/favorite-products.tsx +0 -9
  985. package/src/pages/account/forgot-password.tsx +0 -9
  986. package/src/pages/account/index.tsx +0 -9
  987. package/src/pages/account/login.tsx +0 -9
  988. package/src/pages/account/orders/[id].tsx +0 -9
  989. package/src/pages/account/orders/index.tsx +0 -9
  990. package/src/pages/account/raffles.tsx +0 -9
  991. package/src/pages/account/recover-password.tsx +0 -9
  992. package/src/pages/account/register.tsx +0 -9
  993. package/src/pages/blog/[slug].tsx +0 -9
  994. package/src/pages/blog/index.tsx +0 -9
  995. package/src/pages/cart.tsx +0 -9
  996. package/src/pages/checkout.tsx +0 -164
  997. package/src/pages/editor.tsx +0 -33
  998. package/src/pages/home.tsx +0 -10
  999. package/src/pages/index.ts +0 -22
  1000. package/src/pages/pages/[slug].tsx +0 -9
  1001. package/src/pages/raffle/[slug].tsx +0 -9
  1002. package/src/pages/raffle/index.tsx +0 -9
  1003. package/src/pages/search.tsx +0 -9
  1004. package/src/store/base.ts +0 -238
  1005. package/src/store/blog/index.ts +0 -49
  1006. package/src/store/brand/index.ts +0 -16
  1007. package/src/store/cart/api.ts +0 -58
  1008. package/src/store/cart/index.ts +0 -311
  1009. package/src/store/category/index.ts +0 -16
  1010. package/src/store/checkout/index.ts +0 -92
  1011. package/src/store/customer/api.ts +0 -273
  1012. package/src/store/customer/index.ts +0 -648
  1013. package/src/store/html-meta-data/index.ts +0 -16
  1014. package/src/store/index.ts +0 -3
  1015. package/src/store/location/index.ts +0 -56
  1016. package/src/store/merchant/index.ts +0 -16
  1017. package/src/store/product/index.ts +0 -113
  1018. package/src/store/raffle/index.ts +0 -55
  1019. package/src/store/storefront/index.ts +0 -18
  1020. package/src/typings/global.d.ts +0 -7
  1021. package/src/utils/constants.ts +0 -2
  1022. package/src/utils/currency.ts +0 -76
  1023. package/src/utils/google-fonts.ts +0 -52
  1024. package/src/utils/helper.ts +0 -77
  1025. package/src/utils/i18n.ts +0 -126
  1026. package/src/utils/index.ts +0 -3
@@ -1,162 +0,0 @@
1
- import React from "react";
2
- import { observer } from "mobx-react-lite";
3
-
4
- import SVGMasterPassByMasterCard from "../svg/master-pass-by-master-card";
5
-
6
- import checkoutStyles from "../../../style.module.scss";
7
- import styles from "./style.module.scss";
8
- import CheckoutViewModel from "../../../model";
9
- import {
10
- createTranslationInputData,
11
- useTranslation,
12
- } from "../../../../../utils/i18n";
13
- import { IkasStorefrontConfig } from "@ikas/storefront-config";
14
- import { Button } from "../../button";
15
- import { Checkbox } from "../../checkbox";
16
- import { FormItem } from "../../form-item";
17
- import { FormItemType } from "../../form-item/model";
18
-
19
- type Props = {
20
- vm: CheckoutViewModel;
21
- };
22
-
23
- const CreditCardFormMasterPass = observer(({ vm }: Props) => {
24
- const { t } = useTranslation();
25
-
26
- const checkoutTranslations =
27
- IkasStorefrontConfig.getTranslations()["checkout-page"];
28
- const saveCardMasterPassCheckboxLabelData = React.useMemo(
29
- () =>
30
- createTranslationInputData(
31
- checkoutTranslations?.masterPass?.creditCardForm?.checkboxLabel
32
- ),
33
- [checkoutTranslations]
34
- );
35
- const saveCardMasterPassCheckboxLabel = React.useMemo(
36
- () => (
37
- <div className={styles.CheckboxLabel}>
38
- {saveCardMasterPassCheckboxLabelData.map((p, index) =>
39
- p.isVariable ? (
40
- <span key={index} className={styles.Logo}>
41
- <SVGMasterPassByMasterCard />
42
- </span>
43
- ) : (
44
- <React.Fragment key={index}>{p.value}</React.Fragment>
45
- )
46
- )}
47
- </div>
48
- ),
49
- [saveCardMasterPassCheckboxLabelData]
50
- );
51
-
52
- const onSendConfirmationButtonClick = () => {
53
- if (vm.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending) return;
54
- console.log("onSendConfirmationButtonClick 1");
55
- if (!vm.checkout.selectedPaymentGateway) return;
56
- console.log("onSendConfirmationButtonClick 2");
57
- if (
58
- !vm.cardData ||
59
- !vm.cardData.cardNumber ||
60
- !vm.cardData.expirationDate ||
61
- !vm.cardData.cvv
62
- )
63
- return;
64
- console.log("onSendConfirmationButtonClick 3");
65
- if (!vm.mpVM.saveCardToMasterPass.cardName) return;
66
- console.log("onSendConfirmationButtonClick 4");
67
- const phoneNumber = vm.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled
68
- ? vm.mpVM.saveCardToMasterPassPhoneNumberDisabledInputValue({
69
- withPlus: false,
70
- store: vm.store,
71
- checkout: vm.checkout,
72
- })
73
- : vm.mpVM.saveCardToMasterPass.phoneNumber.replace("+", "");
74
- if (!phoneNumber) return;
75
-
76
- const callback = () => {
77
- vm.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending = false;
78
- };
79
-
80
- const formatExpiryDate = (expiryDate: string /** MM / YY */) => {
81
- const formatedExpiryDate = expiryDate.replace(" / ", ""); // MM / YY
82
- const month = formatedExpiryDate.substring(0, 2);
83
- const year = formatedExpiryDate.substring(2, 4);
84
- return `${year}${month}`; // YYMM
85
- };
86
-
87
- const params = {
88
- creditCard: {
89
- rtaPan: vm.cardData.cardNumber.replace(/ /g, ""),
90
- expiryDate: formatExpiryDate(vm.cardData.expirationDate),
91
- cvc: vm.cardData.cvv,
92
- accountAliasName: vm.mpVM.saveCardToMasterPass.cardName,
93
- phoneNumber,
94
- },
95
- store: vm.store,
96
- checkout: vm.checkout,
97
- paymentGateway: vm.checkout.selectedPaymentGateway,
98
- callback,
99
- };
100
- console.log("onSendConfirmationButtonClick 5", params);
101
-
102
- vm.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending = true;
103
- vm.mpVM.onSaveCardToMasterPassSendConfirmationButtonClick(params);
104
- };
105
-
106
- const value = vm.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled
107
- ? vm.mpVM.saveCardToMasterPassPhoneNumberDisabledInputValue({
108
- withPlus: true,
109
- store: vm.store,
110
- checkout: vm.checkout,
111
- })
112
- : vm.mpVM.saveCardToMasterPass.phoneNumber;
113
- return (
114
- <div>
115
- <Checkbox
116
- label={saveCardMasterPassCheckboxLabel}
117
- value={vm.mpVM.saveCardToMasterPass.isCheckboxChecked}
118
- onChange={vm.mpVM.onSaveCardToMasterPassCheckedChange}
119
- />
120
- {vm.mpVM.saveCardToMasterPass.isCheckboxChecked && (
121
- <div className={styles.FormWrapper}>
122
- <div className={checkoutStyles.RowPB}>
123
- <FormItem
124
- name="masterPassCardName"
125
- type={FormItemType.TEXT}
126
- label={t("checkout-page:masterPass.creditCardForm.cardName")}
127
- value={vm.mpVM.saveCardToMasterPass.cardName}
128
- onChange={vm.mpVM.onSaveCardToMasterPassCardNameChange}
129
- />
130
- </div>
131
- {vm.mpVM.isSaveCardToMasterPassPhoneNumberInputVisible && (
132
- <div className={checkoutStyles.RowPB}>
133
- <FormItem
134
- name="masterPassPhoneNumber"
135
- autocomplete="tel"
136
- type={FormItemType.TEL}
137
- currentCountryCode={vm.store.currentCountryCode}
138
- disabled={
139
- vm.mpVM.isSaveCardToMasterPassPhoneNumberInputDisabled
140
- }
141
- label={t("checkout-page:masterPass.creditCardForm.phoneNumber")}
142
- value={value}
143
- onChange={vm.mpVM.onSaveCardToMasterPassPhoneNumberChange}
144
- />
145
- </div>
146
- )}
147
- <Button
148
- style={{ width: "100%" }}
149
- text={t("checkout-page:masterPass.creditCardForm.button")}
150
- isDisabled={vm.mpVM.isSendConfirmationButtonDisabled}
151
- isLoading={
152
- vm.mpVM.saveCardToMasterPass.isSendConfirmationButtonPending
153
- }
154
- onClick={onSendConfirmationButtonClick}
155
- />
156
- </div>
157
- )}
158
- </div>
159
- );
160
- });
161
-
162
- export default CreditCardFormMasterPass;
@@ -1,15 +0,0 @@
1
- @import "../../../styles/variables.scss";
2
-
3
- .FormWrapper {
4
- margin-top: 16px;
5
- }
6
-
7
- .CheckboxLabel {
8
- color: $primaryTextColor;
9
-
10
- .Logo {
11
- display: inline-block;
12
- vertical-align: middle;
13
- margin: 0 8px;
14
- }
15
- }
@@ -1,32 +0,0 @@
1
- import React from "react";
2
- import { observer } from "mobx-react-lite";
3
-
4
- import SVGModalClose from "./svg/modal-close";
5
-
6
- import styles from "./style.module.scss";
7
- import useEscape from "../../modal/useEscape";
8
-
9
- type Props = {
10
- visible: boolean;
11
- children?: React.ReactNode;
12
- footer?: React.ReactNode;
13
- onClose: () => void;
14
- };
15
-
16
- const Modal = observer(({ visible, footer, children, onClose }: Props) => {
17
- useEscape({ callback: () => onClose() });
18
- if (!visible) return null;
19
- return (
20
- <div className={styles.ModalContainer}>
21
- <div role="dialog" aria-modal="true" className={styles.Modal}>
22
- <button className={styles.CloseButton} onClick={onClose}>
23
- <SVGModalClose />
24
- </button>
25
- <div className={styles.ModalContent}>{children}</div>
26
- {footer}
27
- </div>
28
- </div>
29
- );
30
- });
31
-
32
- export default Modal;
@@ -1,42 +0,0 @@
1
- @import "../../../styles/variables.scss";
2
-
3
- .ModalContainer {
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- right: 0;
8
- bottom: 0;
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- background-color: rgba(39, 39, 39, 0.7);
13
- z-index: 99999999;
14
- }
15
-
16
- .Modal {
17
- position: relative;
18
- border-radius: 8px;
19
- background-color: #fff;
20
- width: 100%;
21
- max-width: 440px;
22
-
23
- @media only screen and (max-width: $breakpoint) {
24
- width: calc(100% - 32px);
25
- margin: 0 16px;
26
- }
27
- }
28
-
29
- .CloseButton {
30
- position: absolute;
31
- top: 16px;
32
- right: 16px;
33
- cursor: pointer;
34
- display: flex;
35
- align-items: center;
36
- width: 24px;
37
- height: 24px;
38
- }
39
-
40
- .ModalContent {
41
- padding: 24px;
42
- }
@@ -1,20 +0,0 @@
1
- import React from "react";
2
-
3
- const SVGModalClose = () => (
4
- <svg
5
- width="24"
6
- height="24"
7
- viewBox="0 0 24 24"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <path
12
- fill-rule="evenodd"
13
- clip-rule="evenodd"
14
- d="M12.1053 11.4001L7.15629 6.45114L6.44918 7.15824L11.3982 12.1073L6.44901 17.0564L7.15612 17.7635L12.1053 12.8144L17.0558 17.7648L17.7629 17.0577L12.8124 12.1073L17.7627 7.15694L17.0556 6.44983L12.1053 11.4001Z"
15
- fill="#8A8B94"
16
- />
17
- </svg>
18
- );
19
-
20
- export default SVGModalClose;
@@ -1,62 +0,0 @@
1
- import React, { useState } from "react";
2
- import { observer } from "mobx-react-lite";
3
-
4
- import Modal from "../modal";
5
-
6
- import SVGMasterPassByMasterCardBig from "./svg/master-pass-by-master-card-big";
7
- import SVGInfoMark from "./svg/info-mark";
8
-
9
- import styles from "./style.module.scss";
10
- import { Button } from "../../button";
11
- import CheckoutViewModel from "../../../model";
12
- import { useTranslation } from "../../../../../utils/i18n";
13
-
14
- type Props = {
15
- visible: boolean;
16
- vm: CheckoutViewModel;
17
- onClose: () => void;
18
- };
19
-
20
- const ModalLinkCardToClient = observer(({ visible, onClose, vm }: Props) => {
21
- const { t } = useTranslation();
22
- const [isLoading, setLoading] = useState(false);
23
- const tKey = "checkout-page:masterPass.linkCardToClientModal";
24
-
25
- const onButtonClick = () => {
26
- setLoading(true);
27
- vm.mpVM.onLinkCardToClientButtonClick({
28
- cartId: vm.checkout.id,
29
- checkout: vm.checkout,
30
- store: vm.store,
31
- callback: () => {
32
- setLoading(false);
33
- },
34
- });
35
- };
36
-
37
- return (
38
- <Modal visible={visible} onClose={onClose}>
39
- <div>
40
- <div className={styles.Logo} data-mb>
41
- <SVGMasterPassByMasterCardBig />
42
- </div>
43
- <p className={styles.Text}>{t(`${tKey}.text`)}</p>
44
- <Button
45
- style={{ width: "100%" }}
46
- text={t(`${tKey}.buttonText`)}
47
- isLoading={isLoading}
48
- isDisabled={isLoading}
49
- onClick={onButtonClick}
50
- />
51
- <p className={styles.SubInfoText}>
52
- <span>
53
- <SVGInfoMark />
54
- </span>
55
- {t(`${tKey}.subInfoText`)}
56
- </p>
57
- </div>
58
- </Modal>
59
- );
60
- });
61
-
62
- export default ModalLinkCardToClient;
@@ -1,27 +0,0 @@
1
- @import "../../../styles/variables.scss";
2
-
3
- .Logo[data-mb] {
4
- margin-bottom: 16px;
5
- }
6
-
7
- .Text {
8
- font-size: 16px;
9
- line-height: 24px;
10
- color: $secondaryTextColor;
11
- margin-bottom: 32px;
12
- }
13
-
14
- .SubInfoText {
15
- margin-top: 12px;
16
- font-size: 14px;
17
- line-height: 20px;
18
- text-align: center;
19
- color: $secondaryTextColor;
20
-
21
- span {
22
- display: inline-block;
23
- margin-right: 8px;
24
- width: 16px;
25
- height: 16px;
26
- }
27
- }
@@ -1,19 +0,0 @@
1
- import React from "react";
2
-
3
- const SVGInfoMark = () => (
4
- <svg
5
- width="16"
6
- height="16"
7
- viewBox="0 0 16 16"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <circle cx="8" cy="8" r="8" fill="#CFCED3" />
12
- <path
13
- d="M7.49023 12V5.90625H8.50977V12H7.49023ZM8 4.88086C7.82812 4.88086 7.67969 4.81836 7.55469 4.69336C7.42969 4.56836 7.36719 4.41992 7.36719 4.24805C7.36719 4.07227 7.42969 3.92383 7.55469 3.80273C7.67969 3.67773 7.82812 3.61523 8 3.61523C8.17578 3.61523 8.32617 3.67773 8.45117 3.80273C8.57617 3.92383 8.63867 4.07227 8.63867 4.24805C8.63867 4.41992 8.57617 4.56836 8.45117 4.69336C8.32617 4.81836 8.17578 4.88086 8 4.88086Z"
14
- fill="white"
15
- />
16
- </svg>
17
- );
18
-
19
- export default SVGInfoMark;
@@ -1,41 +0,0 @@
1
- import React from "react";
2
-
3
- const SVGMasterPassByMasterCardBig = () => (
4
- <svg
5
- width="276"
6
- height="48"
7
- viewBox="0 0 276 48"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <g clip-path="url(#clip0_632_16632)">
12
- <path
13
- d="M23.8964 48.012C37.094 48.012 47.7928 37.2641 47.7928 24.006C47.7928 10.7478 37.094 0 23.8964 0C10.6988 0 0 10.7478 0 24.006C0 37.2641 10.6988 48.012 23.8964 48.012Z"
14
- fill="#EB001B"
15
- />
16
- <path
17
- d="M52.7607 48.012C65.9583 48.012 76.6571 37.2641 76.6571 24.006C76.6571 10.7478 65.9583 0 52.7607 0C39.563 0 28.8643 10.7478 28.8643 24.006C28.8643 37.2641 39.563 48.012 52.7607 48.012Z"
18
- fill="#F79E1B"
19
- />
20
- <path
21
- d="M38.3228 4.83453C44.0765 9.21449 47.7813 16.1554 47.7813 23.9579C47.7813 31.7605 44.0765 38.7134 38.3228 43.0933C32.569 38.7134 28.8643 31.7725 28.8643 23.9579C28.8643 16.1434 32.5809 9.21449 38.3228 4.83453Z"
22
- fill="#FF5F00"
23
- />
24
- <path
25
- d="M75.1682 39.9463V40.1497H74.7275V41.2986H74.513V40.1497H74.0723V39.9463H75.1682ZM76.8479 39.9463V41.2986H76.6335V40.1856L76.2403 41.1669H76.0021L75.609 40.1976V41.2986H75.3946V39.9463H75.7281L76.1212 40.9156L76.5143 39.9463H76.8479V39.9463Z"
26
- fill="#F79E1B"
27
- />
28
- <path
29
- d="M274.333 24.8076V25.0111H273.892V26.1599H273.678V25.0111H273.237V24.8076H274.333ZM276 24.8076V26.1599H275.786V25.047L275.393 26.0283H275.167L274.774 25.0589V26.1599H274.559V24.8076H274.893L275.286 25.7769L275.679 24.8076H276V24.8076ZM111.072 9.62137C114.729 9.62137 117.314 12.1464 117.314 15.7605V25.4538H113.943V16.8734C113.943 14.2766 112.609 12.8286 110.369 12.8286C108.201 12.8286 106.391 14.2646 106.391 16.9093V25.4658H103.019V16.8854C103.019 14.2885 101.685 12.8405 99.4457 12.8405C97.2776 12.8405 95.4669 14.2766 95.4669 16.9213V25.4778H92.0957V10.0402H95.4312V11.9191C96.6701 10.1001 98.5761 9.63334 100.149 9.63334C102.495 9.63334 104.401 10.6745 105.462 12.3858C106.796 10.1599 109.166 9.62137 111.072 9.62137ZM136.875 10.0163V25.4538H133.527V23.5989C132.467 24.9632 130.883 25.8488 128.703 25.8488C124.402 25.8488 121.019 22.4501 121.019 17.7351C121.019 13.02 124.402 9.62137 128.703 9.62137C130.883 9.62137 132.467 10.5189 133.527 11.8951V10.0163H136.875ZM129.096 12.7927C126.213 12.7927 124.462 15.0305 124.462 17.7351C124.462 20.4396 126.213 22.6775 129.096 22.6775C131.871 22.6775 133.73 20.5473 133.73 17.7351C133.73 14.9228 131.871 12.7927 129.096 12.7927ZM153.743 11.2609L152.301 13.8817C151.372 13.3072 149.466 12.5653 147.56 12.5653C145.738 12.5653 144.654 13.3072 144.654 14.3962C144.654 15.4733 145.773 15.7844 147.191 15.9879L148.775 16.2272C152.123 16.7059 154.112 18.1419 154.112 20.7867C154.112 23.7545 151.551 25.8248 147.119 25.8248C145.535 25.8248 142.771 25.5137 140.532 23.8383L142.092 21.3132C143.2 22.1629 144.654 22.8929 147.155 22.8929C149.442 22.8929 150.646 22.1629 150.646 21.014C150.646 20.1404 149.812 19.566 147.989 19.3028L146.381 19.0993C142.986 18.6326 141.175 17.0529 141.175 14.5757C141.175 11.5122 143.617 9.63334 147.524 9.63334C149.931 9.63334 152.158 10.2317 153.743 11.2609ZM168.24 10.0163V13.0799H162.355V19.7934C162.355 21.8757 163.451 22.6775 164.798 22.6775C165.834 22.6775 166.978 22.2108 167.895 21.6363L169.229 24.3289C167.99 25.1666 166.441 25.8607 164.512 25.8607C161.033 25.8607 158.996 23.9819 158.996 19.8652V13.0799H155.935V10.0163H158.996V5.34912H162.367V10.0163H168.24ZM178.58 9.62137C182.881 9.62137 185.823 12.9123 185.847 17.7231C185.847 18.1539 185.811 18.5967 185.787 18.9796H174.435C174.887 21.756 176.829 22.9048 179.009 22.9048C180.546 22.9048 182.19 22.2945 183.452 21.2773L185.12 23.6827C183.25 25.2983 181.13 25.8607 178.807 25.8607C174.208 25.8607 170.944 22.6416 170.944 17.747C170.932 12.9004 174.065 9.62137 178.58 9.62137ZM178.521 12.6131C176.126 12.6131 174.804 14.1569 174.447 16.4187H182.416C182.047 14.0133 180.653 12.6131 178.521 12.6131ZM197.485 9.62137C198.51 9.62137 199.296 9.75301 200.07 10.0522L199.272 13.391C198.569 13.02 197.545 12.8286 196.723 12.8286C194.591 12.8286 193.066 14.3484 193.066 16.9692V25.4538H189.718V10.0163H193.042V11.7515C194.043 10.2915 195.615 9.62137 197.485 9.62137ZM211.363 9.62137C215.664 9.62137 219.047 13.02 219.047 17.7351C219.047 22.4501 215.664 25.8488 211.363 25.8488C209.183 25.8488 207.611 24.9632 206.551 23.6109V31.8921H203.203V10.0163H206.551V11.8473C207.611 10.5069 209.183 9.62137 211.363 9.62137ZM210.958 12.7927C208.183 12.7927 206.324 14.9228 206.324 17.7351C206.324 20.5473 208.183 22.6775 210.958 22.6775C213.841 22.6775 215.592 20.4396 215.592 17.7351C215.592 15.0305 213.841 12.7927 210.958 12.7927ZM237.654 10.0163V25.4538H234.307V23.5989C233.247 24.9632 231.662 25.8488 229.482 25.8488C225.182 25.8488 221.799 22.4501 221.799 17.7351C221.799 13.02 225.182 9.62137 229.482 9.62137C231.662 9.62137 233.247 10.5189 234.307 11.8951V10.0163H237.654ZM229.875 12.7927C226.993 12.7927 225.241 15.0305 225.241 17.7351C225.241 20.4396 226.993 22.6775 229.875 22.6775C232.651 22.6775 234.509 20.5473 234.509 17.7351C234.509 14.9228 232.651 12.7927 229.875 12.7927ZM254.522 11.2609L253.081 13.8817C252.152 13.3072 250.246 12.5653 248.34 12.5653C246.517 12.5653 245.433 13.3072 245.433 14.3962C245.433 15.4733 246.553 15.7844 247.97 15.9879L249.555 16.2272C252.902 16.7059 254.892 18.1419 254.892 20.7867C254.892 23.7545 252.33 25.8248 247.899 25.8248C246.315 25.8248 243.551 25.5137 241.311 23.8383L242.872 21.3132C243.98 22.1629 245.433 22.8929 247.935 22.8929C250.222 22.8929 251.425 22.1629 251.425 21.014C251.425 20.1404 250.591 19.566 248.769 19.3028L247.16 19.0993C243.765 18.6326 241.955 17.0529 241.955 14.5757C241.955 11.5122 244.397 9.63334 248.304 9.63334C250.71 9.63334 252.938 10.2317 254.522 11.2609ZM270.449 11.2609L269.008 13.8817C268.079 13.3072 266.173 12.5653 264.267 12.5653C262.444 12.5653 261.36 13.3072 261.36 14.3962C261.36 15.4733 262.48 15.7844 263.897 15.9879L265.482 16.2272C268.829 16.7059 270.819 18.1419 270.819 20.7867C270.819 23.7545 268.257 25.8248 263.826 25.8248C262.242 25.8248 259.478 25.5137 257.238 23.8383L258.799 21.3132C259.907 22.1629 261.36 22.8929 263.862 22.8929C266.149 22.8929 267.352 22.1629 267.352 21.014C267.352 20.1404 266.518 19.566 264.696 19.3028L263.087 19.0993C259.692 18.6326 257.882 17.0529 257.882 14.5757C257.882 11.5122 260.324 9.63334 264.231 9.63334C266.637 9.63334 268.865 10.2317 270.449 11.2609ZM96.1579 33.7949C98.183 33.7949 99.7673 35.3865 99.7673 37.6124C99.7673 39.8383 98.183 41.4299 96.1579 41.4299C95.1334 41.4299 94.3948 41.0111 93.8945 40.3768V41.2384H92.322V30.3364H93.8945V34.848C94.3829 34.2137 95.1334 33.7949 96.1579 33.7949ZM95.9673 35.2908C94.6688 35.2908 93.7873 36.296 93.7873 37.6124C93.7873 38.9288 94.6569 39.934 95.9673 39.934C97.3253 39.934 98.1472 38.8809 98.1472 37.6124C98.1472 36.3439 97.3253 35.2908 95.9673 35.2908ZM108.154 33.9864L102.448 44.314H100.697L103.282 39.7545L100.089 33.9864H101.852L104.175 38.1509L106.415 33.9864H108.154ZM121.579 33.7949C123.294 33.7949 124.51 34.9796 124.51 36.679V41.2384H122.925V37.2055C122.925 35.9849 122.294 35.3028 121.246 35.3028C120.233 35.3028 119.375 35.9729 119.375 37.2175V41.2384H117.791V37.2055C117.791 35.9849 117.171 35.3028 116.111 35.3028C115.099 35.3028 114.241 35.9729 114.241 37.2175V41.2384H112.657V33.9864H114.229V34.8719C114.813 34.0103 115.706 33.7949 116.445 33.7949C117.541 33.7949 118.446 34.2856 118.935 35.0873C119.566 34.0582 120.686 33.7949 121.579 33.7949ZM133.551 33.9864V41.2384H131.979V40.3648C131.478 41.0111 130.74 41.4299 129.715 41.4299C127.69 41.4299 126.106 39.8383 126.106 37.6124C126.106 35.3865 127.702 33.7949 129.715 33.7949C130.74 33.7949 131.49 34.2137 131.979 34.86V33.9864H133.551ZM129.894 35.2908C128.536 35.2908 127.714 36.3439 127.714 37.6124C127.714 38.8809 128.536 39.934 129.894 39.934C131.192 39.934 132.074 38.9288 132.074 37.6124C132.074 36.2841 131.204 35.2908 129.894 35.2908ZM141.33 34.5728L140.651 35.8054C140.21 35.5301 139.317 35.1831 138.423 35.1831C137.566 35.1831 137.053 35.5301 137.053 36.0447C137.053 36.5473 137.578 36.6909 138.245 36.7986L138.995 36.9183C140.568 37.1457 141.509 37.8158 141.509 39.0604C141.509 40.4486 140.306 41.4299 138.221 41.4299C137.47 41.4299 136.184 41.2863 135.124 40.4965L135.85 39.3117C136.374 39.7186 137.053 40.0537 138.233 40.0537C139.305 40.0537 139.877 39.7186 139.877 39.1681C139.877 38.7612 139.484 38.486 138.626 38.3663L137.875 38.2706C136.279 38.0552 135.421 37.3132 135.421 36.1404C135.421 34.7044 136.565 33.8188 138.411 33.8188C139.531 33.8069 140.579 34.0821 141.33 34.5728ZM147.989 33.9864V35.4224H145.225V38.5817C145.225 39.563 145.738 39.934 146.369 39.934C146.857 39.934 147.393 39.7186 147.822 39.4434L148.442 40.7119C147.858 41.1068 147.131 41.4299 146.226 41.4299C144.594 41.4299 143.629 40.5443 143.629 38.6176V35.4224H142.188V33.9864H143.629V31.7964H145.213V33.9864H147.989ZM152.694 33.7949C154.72 33.7949 156.101 35.3387 156.113 37.6004C156.113 37.8039 156.101 38.0073 156.078 38.1868H150.741C150.955 39.4912 151.861 40.0298 152.885 40.0298C153.612 40.0298 154.374 39.7425 154.97 39.2639L155.756 40.3888C154.874 41.1427 153.874 41.406 152.79 41.406C150.622 41.406 149.097 39.8861 149.097 37.5885C149.109 35.3387 150.574 33.7949 152.694 33.7949ZM152.671 35.207C151.551 35.207 150.92 35.937 150.753 36.9901H154.493C154.326 35.8652 153.671 35.207 152.671 35.207ZM161.426 33.7949C161.903 33.7949 162.272 33.8547 162.641 33.9983L162.26 35.566C161.927 35.3865 161.45 35.3028 161.057 35.3028C160.056 35.3028 159.342 36.0088 159.342 37.2534V41.2384H157.769V33.9864H159.33V34.8001C159.806 34.118 160.545 33.7949 161.426 33.7949ZM166.942 33.7949C168.014 33.7949 169.003 34.1898 169.634 34.9557L168.621 36.0327C168.121 35.5541 167.585 35.2788 166.882 35.2788C165.667 35.2788 164.75 36.2362 164.75 37.6004C164.75 38.9647 165.667 39.922 166.882 39.922C167.573 39.922 168.193 39.5989 168.657 39.1681L169.634 40.2571C168.979 41.023 168.014 41.4179 166.942 41.4179C164.643 41.4179 163.142 39.7784 163.142 37.6004C163.142 35.4344 164.643 33.7949 166.942 33.7949ZM177.889 33.9864V41.2384H176.317V40.3648C175.817 41.0111 175.078 41.4299 174.054 41.4299C172.028 41.4299 170.444 39.8383 170.444 37.6124C170.444 35.3865 172.028 33.7949 174.054 33.7949C175.078 33.7949 175.828 34.2137 176.317 34.86V33.9864H177.889ZM174.244 35.2908C172.886 35.2908 172.064 36.3439 172.064 37.6124C172.064 38.8809 172.886 39.934 174.244 39.934C175.543 39.934 176.424 38.9288 176.424 37.6124C176.412 36.2841 175.543 35.2908 174.244 35.2908ZM183.738 33.7949C184.215 33.7949 184.584 33.8547 184.953 33.9983L184.572 35.566C184.239 35.3865 183.762 35.3028 183.369 35.3028C182.368 35.3028 181.654 36.0088 181.654 37.2534V41.2384H180.081V33.9864H181.642V34.8001C182.106 34.118 182.845 33.7949 183.738 33.7949ZM189.349 33.7949C190.374 33.7949 191.124 34.2137 191.613 34.86V30.3364H193.185V41.2384H191.613V40.3648C191.112 41.0111 190.374 41.4299 189.349 41.4299C187.324 41.4299 185.74 39.8383 185.74 37.6124C185.74 35.3865 187.336 33.7949 189.349 33.7949ZM189.54 35.2908C188.182 35.2908 187.36 36.3439 187.36 37.6124C187.36 38.8809 188.182 39.934 189.54 39.934C190.838 39.934 191.72 38.9288 191.72 37.6124C191.72 36.2841 190.85 35.2908 189.54 35.2908Z"
30
- fill="#272727"
31
- />
32
- </g>
33
- <defs>
34
- <clipPath id="clip0_632_16632">
35
- <rect width="276" height="48" fill="white" />
36
- </clipPath>
37
- </defs>
38
- </svg>
39
- );
40
-
41
- export default SVGMasterPassByMasterCardBig;
@@ -1,202 +0,0 @@
1
- import React, { useEffect, useRef, useState } from "react";
2
- import { observer } from "mobx-react-lite";
3
-
4
- import Modal from "../modal";
5
-
6
- import SVGMasterPass from "./svg/master-pass";
7
-
8
- import styles from "./style.module.scss";
9
- import { useTranslation } from "../../../../../utils/i18n";
10
- import CheckoutViewModel from "../../../model";
11
- import { Button } from "../../button";
12
- import { FormItem } from "../../form-item";
13
- import { FormItemType } from "../../form-item/model";
14
-
15
- export type OtpModalType = "bankOtp" | "masterPassOtp";
16
-
17
- const COUNTDOWN_TIME = 180; // second
18
-
19
- const MasterPassOtpModal: React.FC<{
20
- visible: boolean;
21
- type: OtpModalType;
22
- vm: CheckoutViewModel;
23
- onClose: () => void;
24
- }> = observer(({ visible, type, vm, onClose }) => {
25
- const { t } = useTranslation();
26
- const intervalId = useRef<NodeJS.Timeout | undefined>();
27
- const [remainingTime, setRemainingTime] = useState<number>(180);
28
- const [validationCode, setValidationCode] = useState("");
29
- const [isResendOtpButtonPending, setResendOtpButtonPending] = useState(false);
30
- const [isFormButtonLoading, setFormButtonLoading] = useState(false);
31
-
32
- const onValidationCodeInputChange = (value: string) => {
33
- setValidationCode(value);
34
- };
35
-
36
- const validationCodeInputRightContent = () => (
37
- <button
38
- type="button"
39
- className={styles.ResendButton}
40
- disabled={isResendOtpButtonPending}
41
- onClick={(event) => {
42
- event.stopPropagation();
43
- if (isResendOtpButtonPending) return;
44
- const callback = () => {
45
- setResendOtpButtonPending(false);
46
- resetCountdown();
47
- setValidationCode("");
48
- };
49
- setResendOtpButtonPending(true);
50
- vm.mpVM.resendOtp({
51
- store: vm.store,
52
- checkout: vm.checkout,
53
- callback,
54
- });
55
- }}
56
- >
57
- {t("checkout-page:masterPass.otpModal.resendText")}
58
- </button>
59
- );
60
-
61
- const onModalContentFormSubmit = () => {
62
- if (isFormButtonLoading) return;
63
- if (!validationCode) return;
64
- if (!vm.checkout.masterPassPaymentGateway) return;
65
- const callback = () => {
66
- setFormButtonLoading(false);
67
- setValidationCode("");
68
- stopCountdown();
69
- };
70
-
71
- setFormButtonLoading(true);
72
- vm.mpVM.onOtpFormSubmit({
73
- validationCode,
74
- store: vm.store,
75
- checkout: vm.checkout,
76
- callback,
77
- });
78
- };
79
-
80
- const stopCountdown = () => {
81
- setRemainingTime(0);
82
- };
83
-
84
- const startCountdown = () => {
85
- setRemainingTime(COUNTDOWN_TIME);
86
- };
87
-
88
- const resetCountdown = () => {
89
- setRemainingTime(COUNTDOWN_TIME);
90
- };
91
-
92
- const countdownText = () => {
93
- // let hours = Math.floor(timeLeft / (60 * 60));
94
- let divisor_for_minutes = remainingTime % (60 * 60);
95
- let minutes = Math.floor(divisor_for_minutes / 60);
96
- let divisor_for_seconds = divisor_for_minutes % 60;
97
- let seconds = Math.ceil(divisor_for_seconds);
98
- // if (hours < 10) hours = `0${hours}`;
99
- const minutesStr = minutes < 10 ? `0${minutes}` : minutes;
100
- const secondsStr = seconds < 10 ? `0${seconds}` : seconds;
101
- return `${minutesStr}:${secondsStr}`;
102
- };
103
-
104
- useEffect(() => {
105
- if (remainingTime < 1 && intervalId.current) {
106
- clearInterval(intervalId.current);
107
- return;
108
- }
109
- if (intervalId.current) {
110
- clearInterval(intervalId.current);
111
- }
112
- intervalId.current = setInterval(() => {
113
- setRemainingTime(remainingTime - 1);
114
- }, 1000);
115
-
116
- return () => {
117
- intervalId.current && clearInterval(intervalId.current);
118
- };
119
- }, [remainingTime]);
120
-
121
- const isRemainingTimeLessThanTwoMinute = remainingTime <= 120;
122
-
123
- const modalContent = (
124
- <div>
125
- <div className={styles.Wrapper}>
126
- {type === "masterPassOtp" && (
127
- <span data-mr className={styles.Logo}>
128
- <SVGMasterPass />
129
- </span>
130
- )}
131
- <p className={styles.Text}>
132
- {type === "masterPassOtp"
133
- ? t("checkout-page:masterPass.otpModal.otpTextMasterPass")
134
- : t("checkout-page:masterPass.otpModal.otpTextBank")}
135
- </p>
136
- </div>
137
- <div className={styles.Countdown}>
138
- {t("checkout-page:masterPass.otpModal.countdownText")}
139
- <strong>{countdownText()}</strong>
140
- </div>
141
- {vm.mpVM.otpResponse.text && (
142
- <div
143
- role={vm.mpVM.otpResponse.status === "error" ? "alert" : ""}
144
- className={styles.OtpResponseText}
145
- >
146
- {vm.mpVM.otpResponse.text}
147
- </div>
148
- )}
149
- <form
150
- onSubmit={(event) => {
151
- event.preventDefault();
152
- onModalContentFormSubmit();
153
- }}
154
- >
155
- <FormItem
156
- type={FormItemType.TEXT}
157
- label={t("checkout-page:masterPass.otpModal.inputLabel")}
158
- name="one-time-code"
159
- autocomplete="off"
160
- rightContent={
161
- vm.mpVM.isOtpFormSubmitAtLeastOnce &&
162
- isRemainingTimeLessThanTwoMinute
163
- ? validationCodeInputRightContent()
164
- : undefined
165
- }
166
- value={validationCode}
167
- onChange={onValidationCodeInputChange}
168
- />
169
- <Button
170
- type="submit"
171
- style={{ width: "100%", marginTop: "16px" }}
172
- text={t("checkout-page:masterPass.otpModal.buttonText")}
173
- isLoading={isFormButtonLoading}
174
- isDisabled={!validationCode}
175
- onClick={onModalContentFormSubmit}
176
- />
177
- </form>
178
- </div>
179
- );
180
-
181
- useEffect(() => {
182
- if (visible) {
183
- startCountdown();
184
- } else {
185
- stopCountdown();
186
- }
187
- }, [visible]);
188
-
189
- useEffect(() => {
190
- startCountdown();
191
- }, [type]);
192
-
193
- console.log("calisti modal", visible);
194
-
195
- return (
196
- <Modal visible={visible} onClose={onClose}>
197
- {modalContent}
198
- </Modal>
199
- );
200
- });
201
-
202
- export default MasterPassOtpModal;