@ikas/storefront 6.1.0-beta.31 → 6.1.0-beta.310

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 (246) hide show
  1. package/build/analytics/analytics.d.ts +6 -3
  2. package/build/analytics/analytics.js +1 -1
  3. package/build/analytics/events.d.ts +4 -1
  4. package/build/analytics/events.js +1 -1
  5. package/build/analytics/facebookPixel.d.ts +13 -0
  6. package/build/analytics/facebookPixel.js +1 -1
  7. package/build/analytics/googleAnalytics.d.ts +3 -2
  8. package/build/analytics/googleAnalytics.js +1 -1
  9. package/build/analytics/googleTagManager.d.ts +3 -2
  10. package/build/analytics/googleTagManager.js +1 -1
  11. package/build/analytics/head/index.js +1 -1
  12. package/build/analytics/ikasV3.d.ts +1 -0
  13. package/build/analytics/ikasV3.js +1 -1
  14. package/build/components/checkout/components/address-form/index.js +1 -1
  15. package/build/components/checkout/components/address-form/model.d.ts +5 -0
  16. package/build/components/checkout/components/address-form/model.js +1 -1
  17. package/build/components/checkout/components/adyen/index.js +1 -1
  18. package/build/components/checkout/components/button/index.d.ts +1 -0
  19. package/build/components/checkout/components/button/index.js +1 -1
  20. package/build/components/checkout/components/button/style.module.scss.js +1 -1
  21. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  22. package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +1 -1
  23. package/build/components/checkout/components/cart-summary/index.d.ts +9 -1
  24. package/build/components/checkout/components/cart-summary/index.js +1 -1
  25. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  26. package/build/components/checkout/components/checkbox/index.d.ts +1 -0
  27. package/build/components/checkout/components/checkbox/index.js +1 -1
  28. package/build/components/checkout/components/credit-card-form/model.js +1 -1
  29. package/build/components/checkout/components/customer-addresses/index.d.ts +1 -0
  30. package/build/components/checkout/components/customer-addresses/index.js +1 -1
  31. package/build/components/checkout/components/error/stock-error/index.js +1 -1
  32. package/build/components/checkout/components/form-item/index.js +1 -1
  33. package/build/components/checkout/components/form-item/model.d.ts +5 -3
  34. package/build/components/checkout/components/form-item/model.js +1 -1
  35. package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
  36. package/build/components/checkout/components/hepsipay/index.d.ts +9 -0
  37. package/build/components/checkout/components/hepsipay/index.js +1 -0
  38. package/build/components/checkout/components/input-with-button/style.module.scss.js +1 -1
  39. package/build/components/checkout/components/iyzico/index.d.ts +8 -0
  40. package/build/components/checkout/components/iyzico/index.js +1 -0
  41. package/build/components/checkout/components/modal/index.d.ts +1 -0
  42. package/build/components/checkout/components/modal/index.js +1 -1
  43. package/build/components/checkout/components/modal/style.module.scss.js +1 -1
  44. package/build/components/checkout/components/offer-product/index.js +1 -1
  45. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -1
  46. package/build/components/checkout/components/phone-number-input/index.d.ts +1 -1
  47. package/build/components/checkout/components/phone-number-input/index.js +1 -1
  48. package/build/components/checkout/components/quick-registration/completed.js +1 -1
  49. package/build/components/checkout/components/quick-registration/index.js +1 -1
  50. package/build/components/checkout/components/step-container/index.d.ts +5 -0
  51. package/build/components/checkout/components/step-container/index.js +1 -1
  52. package/build/components/checkout/components/step-container/style.module.scss.js +1 -1
  53. package/build/components/checkout/components/stripe/checkout-form.js +1 -1
  54. package/build/components/checkout/components/stripe-express/index.d.ts +7 -0
  55. package/build/components/checkout/components/stripe-express/index.js +1 -0
  56. package/build/components/checkout/components/stripe-express/style.module.scss.js +1 -0
  57. package/build/components/checkout/components/svg/arrow-loyalty.d.ts +6 -0
  58. package/build/components/checkout/components/svg/arrow-loyalty.js +1 -0
  59. package/build/components/checkout/components/svg/arrow-right-loyalty.d.ts +6 -0
  60. package/build/components/checkout/components/svg/arrow-right-loyalty.js +1 -0
  61. package/build/components/checkout/components/svg/coupon-code-tag.d.ts +6 -0
  62. package/build/components/checkout/components/svg/coupon-code-tag.js +1 -0
  63. package/build/components/checkout/components/svg/credit-balance.d.ts +6 -0
  64. package/build/components/checkout/components/svg/credit-balance.js +1 -0
  65. package/build/components/checkout/components/svg/gift-cart-tag.d.ts +6 -0
  66. package/build/components/checkout/components/svg/gift-cart-tag.js +1 -0
  67. package/build/components/checkout/components/svg/gift-loyalty.d.ts +6 -0
  68. package/build/components/checkout/components/svg/gift-loyalty.js +1 -0
  69. package/build/components/checkout/components/svg/info.d.ts +6 -0
  70. package/build/components/checkout/components/svg/info.js +1 -0
  71. package/build/components/checkout/components/svg/left-arrow-loyalty.d.ts +6 -0
  72. package/build/components/checkout/components/svg/left-arrow-loyalty.js +1 -0
  73. package/build/components/checkout/components/svg/package-loyalty.d.ts +6 -0
  74. package/build/components/checkout/components/svg/package-loyalty.js +1 -0
  75. package/build/components/checkout/components/svg/percentage-loyalty.d.ts +6 -0
  76. package/build/components/checkout/components/svg/percentage-loyalty.js +1 -0
  77. package/build/components/checkout/components/svg/star-loyalty.d.ts +6 -0
  78. package/build/components/checkout/components/svg/star-loyalty.js +1 -0
  79. package/build/components/checkout/components/svg/store-credit-tag.d.ts +6 -0
  80. package/build/components/checkout/components/svg/store-credit-tag.js +1 -0
  81. package/build/components/checkout/components/svg/subscription.d.ts +6 -0
  82. package/build/components/checkout/components/svg/subscription.js +1 -0
  83. package/build/components/checkout/index.d.ts +1 -0
  84. package/build/components/checkout/index.js +1 -1
  85. package/build/components/checkout/model.d.ts +58 -7
  86. package/build/components/checkout/model.js +1 -1
  87. package/build/components/checkout/steps/step-info/index.js +1 -1
  88. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
  89. package/build/components/checkout/steps/step-payment/index.js +1 -1
  90. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  91. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.d.ts +7 -0
  92. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/index.js +1 -0
  93. package/build/components/checkout/steps/step-payment/payment-gateways/store-credit/style.module.scss.js +1 -0
  94. package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -1
  95. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  96. package/build/components/checkout/steps/step-success/index.js +1 -1
  97. package/build/components/checkout/style.module.scss.js +1 -1
  98. package/build/components/image/index.d.ts +1 -0
  99. package/build/components/image/index.js +1 -1
  100. package/build/components/index.d.ts +3 -0
  101. package/build/components/page/head.js +1 -1
  102. package/build/components/page/index.d.ts +1 -1
  103. package/build/components/page/index.js +1 -1
  104. package/build/components/page/widgets/common.d.ts +2 -0
  105. package/build/components/page/widgets/common.js +1 -0
  106. package/build/components/page/widgets/loyaltyWidget.d.ts +8 -0
  107. package/build/components/page/widgets/loyaltyWidget.js +1 -0
  108. package/build/components/page/widgets/popupWidget.d.ts +14 -0
  109. package/build/components/page/widgets/popupWidget.js +1 -0
  110. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  111. package/build/components/page-editor/model.js +1 -1
  112. package/build/components/pay-with-ikas/index.d.ts +9 -0
  113. package/build/components/pay-with-ikas/index.js +1 -0
  114. package/build/components/paypal-express-checkout/index.d.ts +9 -0
  115. package/build/components/paypal-express-checkout/index.js +1 -0
  116. package/build/components/plain-image/index.d.ts +13 -0
  117. package/build/components/plain-image/index.js +1 -0
  118. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  119. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/es6/getCountries.js +1 -0
  120. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +1 -0
  121. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountries.js +1 -0
  122. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +1 -0
  123. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/isSupportedCountry.js +1 -0
  124. package/build/ext/@ikas/popup-renderer/build/ext/libphonenumber-js/min/exports/parsePhoneNumber.js +1 -0
  125. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/ObserverComponent.js +1 -0
  126. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/index.js +1 -0
  127. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/observer.js +1 -0
  128. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/useObserver.js +1 -0
  129. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js +1 -0
  130. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/assertEnvironment.js +1 -0
  131. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerBatching.js +1 -0
  132. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/observerFinalizationRegistry.js +1 -0
  133. package/build/ext/@ikas/popup-renderer/build/ext/mobx-react-lite/es/utils/printDebugValue.js +1 -0
  134. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/button-element-renderer/index.js +1 -1
  135. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/checkbox-item-view/index.js +1 -1
  136. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/index.js +1 -1
  137. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/input-item-view/index.js +1 -1
  138. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/get-countries.js +1 -0
  139. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/form-element-renderer/phone-input-item-view/index.js +1 -0
  140. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-column-element-renderer/index.js +1 -1
  141. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/image-element-renderer/index.js +1 -1
  142. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/index.js +1 -1
  143. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/product-list-renderer/index.js +1 -1
  144. package/build/ext/@ikas/popup-renderer/build/popup-renderer/components/social-element-renderer/index.js +1 -1
  145. package/build/ext/@ikas/popup-renderer/build/popup-renderer/helpers/index.js +1 -1
  146. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/form/form-settings/index.js +1 -1
  147. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image/index.js +1 -1
  148. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/image-column/index.js +1 -1
  149. package/build/ext/@ikas/popup-renderer/build/popup-renderer/models/modal/step/elements/product/index.js +1 -1
  150. package/build/hooks/useCustomerReviews.d.ts +2 -0
  151. package/build/hooks/useCustomerReviews.js +1 -1
  152. package/build/hooks/useDimension.js +1 -1
  153. package/build/hooks/useStore.js +1 -1
  154. package/build/index.js +1 -1
  155. package/build/models/data/checkout-settings/address-field-restriction/index.d.ts +10 -0
  156. package/build/models/data/checkout-settings/address-field-restriction/index.js +1 -0
  157. package/build/models/data/checkout-settings/index.d.ts +3 -0
  158. package/build/models/data/checkout-settings/index.js +1 -1
  159. package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +1 -0
  160. package/build/models/data/customer/address/ikas-localized-customer-address.js +1 -1
  161. package/build/models/data/customer/review/index.d.ts +4 -1
  162. package/build/models/data/customer/review/index.js +1 -1
  163. package/build/models/data/index.d.ts +1 -0
  164. package/build/models/data/order/address/ikas-localized-order-address.d.ts +1 -0
  165. package/build/models/data/order/address/ikas-localized-order-address.js +1 -1
  166. package/build/models/data/order/adjustment/index.d.ts +3 -1
  167. package/build/models/data/order/adjustment/index.js +1 -1
  168. package/build/models/data/order/gift-card-line/index.d.ts +2 -1
  169. package/build/models/data/order/gift-card-line/index.js +1 -1
  170. package/build/models/data/order/index.d.ts +4 -0
  171. package/build/models/data/order/index.js +1 -1
  172. package/build/models/data/order/line-item/bundle-product-settings/index.d.ts +7 -0
  173. package/build/models/data/order/line-item/bundle-product-settings/index.js +1 -0
  174. package/build/models/data/order/line-item/index.d.ts +4 -0
  175. package/build/models/data/order/line-item/index.js +1 -1
  176. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.d.ts +8 -0
  177. package/build/models/data/order/line-item/order-line-item-subscription-plan/index.js +1 -0
  178. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +6 -0
  179. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  180. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +14 -0
  181. package/build/models/data/order/line-item/order-line-item-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  182. package/build/models/data/order/loyalty-line/index.d.ts +9 -0
  183. package/build/models/data/order/loyalty-line/index.js +1 -0
  184. package/build/models/data/order/order-transaction-with-prices/index.d.ts +1 -0
  185. package/build/models/data/order/order-transaction-with-prices/index.js +1 -1
  186. package/build/models/data/order/refund/settings/index.d.ts +1 -0
  187. package/build/models/data/order/refund/settings/index.js +1 -1
  188. package/build/models/data/product/campaign-offer/index.d.ts +2 -0
  189. package/build/models/data/product/campaign-offer/index.js +1 -1
  190. package/build/models/data/product/filter/index.d.ts +2 -0
  191. package/build/models/data/product/filter/index.js +1 -1
  192. package/build/models/data/product/index.d.ts +10 -0
  193. package/build/models/data/product/index.js +1 -1
  194. package/build/models/data/product/translations/index.d.ts +7 -0
  195. package/build/models/data/product/translations/index.js +1 -0
  196. package/build/models/data/product/variant/bundle-settings/bundle-product/index.js +1 -1
  197. package/build/models/data/product/variant/index.d.ts +3 -0
  198. package/build/models/data/product/variant/index.js +1 -1
  199. package/build/models/data/product/variant/subscription-plan/index.d.ts +12 -0
  200. package/build/models/data/product/variant/subscription-plan/index.js +1 -0
  201. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +6 -0
  202. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +23 -0
  203. package/build/models/data/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  204. package/build/models/data/store-credit-balance/index.d.ts +26 -0
  205. package/build/models/data/store-credit-balance/index.js +1 -0
  206. package/build/models/data/theme-json/component/prop/index.d.ts +1 -0
  207. package/build/models/data/theme-json/component/prop/index.js +1 -1
  208. package/build/models/data/theme-json/custom-data/index.d.ts +1 -0
  209. package/build/models/data/theme-json/custom-data/index.js +1 -1
  210. package/build/models/data/theme-json/index.js +1 -1
  211. package/build/models/ui/customer-review-list/index.d.ts +8 -0
  212. package/build/models/ui/customer-review-list/index.js +1 -1
  213. package/build/models/ui/product-list/index.d.ts +25 -2
  214. package/build/models/ui/product-list/index.js +1 -1
  215. package/build/models/ui/validator/form/login.d.ts +20 -6
  216. package/build/models/ui/validator/form/login.js +1 -1
  217. package/build/models/ui/validator/form/register.d.ts +15 -6
  218. package/build/models/ui/validator/form/register.js +1 -1
  219. package/build/page-data-init/index.d.ts +1 -0
  220. package/build/page-data-init/index.js +1 -1
  221. package/build/pages/checkout.js +1 -1
  222. package/build/store/cart/api.d.ts +3 -1
  223. package/build/store/cart/api.js +1 -1
  224. package/build/store/cart/index.d.ts +25 -1
  225. package/build/store/cart/index.js +1 -1
  226. package/build/store/checkout/index.d.ts +8 -1
  227. package/build/store/checkout/index.js +1 -1
  228. package/build/store/customer/api.d.ts +22 -3
  229. package/build/store/customer/api.js +1 -1
  230. package/build/store/customer/index.d.ts +49 -7
  231. package/build/store/customer/index.js +1 -1
  232. package/build/store/index.d.ts +1 -0
  233. package/build/store/product/index.d.ts +2 -1
  234. package/build/store/product/index.js +1 -1
  235. package/build/utils/helper.d.ts +1 -0
  236. package/build/utils/helper.js +1 -1
  237. package/package.json +18 -16
  238. package/build/components/popup/index.d.ts +0 -2
  239. package/build/components/popup/index.js +0 -1
  240. package/build/components/popup/renderer/index.d.ts +0 -8
  241. package/build/components/popup/renderer/index.js +0 -1
  242. package/build/components/popup/renderer/model.d.ts +0 -24
  243. package/build/components/popup/renderer/model.js +0 -1
  244. package/build/components/popup/utils/index.d.ts +0 -13
  245. package/build/components/popup/utils/index.js +0 -1
  246. package/build/store/storefront-popup/index.js +0 -1
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import{FormItem as r}from"../form-item/index.js";import{FormItemType as o,FormItemInputType as a}from"../form-item/model.js";import{Button as i}from"../button/index.js";import"@ikas/storefront-config";import{useTranslation as s}from"../../../../utils/i18n.js";import{QuickRegistrationCompleted as m}from"./completed.js";import{QuickRegistrationViewModel as c}from"./model.js";import n from"./style.module.scss.js";var l=t((function(t){var l=t.vm,u=s().t,p=e.useMemo((function(){return new c(l,u)}),[]);return l.checkout.customer?p.isRegisteredCustomer?e.createElement(m,{vm:l}):e.createElement("div",{className:n.Container},e.createElement("div",{className:n.Title},u("checkout-page:quickRegistration.title")),e.createElement("div",{className:n.SubTitle},u("checkout-page:quickRegistration.subtitle")),e.createElement("div",{className:n.EmailContainer},e.createElement("div",{className:n.Label},u("checkout-page:quickRegistration.accountEmail"),":"),e.createElement("div",{className:n.Email},l.checkout.customer.email)),e.createElement(r,{type:o.TEXT,inputType:a.PASSWORD,label:u("checkout-page:password"),value:p.password,onChange:p.onPasswordChange,hasError:!!p.passwordErrorMessage,errorText:p.passwordErrorMessage}),e.createElement(i,{style:{width:"100%",marginTop:16},text:u("checkout-page:actions.signup"),isLoading:p.isLoading,onClick:p.onSubmit})):null}));export{l as QuickRegistration};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import{FormItem as r}from"../form-item/index.js";import{FormItemType as o,FormItemInputType as a}from"../form-item/model.js";import{Button as i}from"../button/index.js";import"@ikas/storefront-config";import{useTranslation as s}from"../../../../utils/i18n.js";import{QuickRegistrationCompleted as m}from"./completed.js";import{QuickRegistrationViewModel as c}from"./model.js";import n from"./style.module.scss.js";var l=t((function(t){var l=t.vm,u=s().t,p=e.useMemo((function(){return new c(l,u)}),[]);return l.checkout.customer?p.isRegisteredCustomer?e.createElement(m,{vm:l}):e.createElement("div",{className:n.Container},e.createElement("div",{className:n.Title},u("checkout-page:quickRegistration.title")),e.createElement("div",{className:n.SubTitle},u("checkout-page:quickRegistration.subtitle")),e.createElement("div",{className:n.EmailContainer},e.createElement("div",{className:n.Label},u("checkout-page:quickRegistration.accountEmail"),":"),e.createElement("div",{className:n.Email},l.checkout.customer.email)),e.createElement(r,{name:"password",type:o.TEXT,inputType:a.PASSWORD,label:u("checkout-page:password"),value:p.password,onChange:p.onPasswordChange,hasError:!!p.passwordErrorMessage,errorText:p.passwordErrorMessage}),e.createElement(i,{style:{width:"100%",marginTop:16},text:u("checkout-page:actions.signup"),isLoading:p.isLoading,onClick:p.onSubmit})):null}));export{l as QuickRegistration};
@@ -1,7 +1,12 @@
1
1
  import * as React from "react";
2
+ import CheckoutViewModel, { CheckoutStep } from "../../model";
2
3
  declare type Props = {
3
4
  steps: Step[];
4
5
  stepContent: React.ReactElement;
6
+ step?: CheckoutStep;
7
+ hasTopMargin?: boolean;
8
+ vm: CheckoutViewModel;
9
+ isMobile?: boolean;
5
10
  };
6
11
  declare const StepContainer: React.FC<Props>;
7
12
  export default StepContainer;
@@ -1 +1 @@
1
- import*as t from"react";import{observer as e}from"mobx-react-lite";import{makeAutoObservable as i}from"mobx";import n from"../checkbox/check.js";import o from"./style.module.scss.js";var l=e((function(e){var i=e.steps,l=e.stepContent;return t.useEffect((function(){var t,e;if(document.body.getBoundingClientRect().width<768){var n=i.findIndex((function(t){return t.isSelected}));if(0===n)return;2===n?null===(t=document.getElementById("step-".concat(1)))||void 0===t||t.scrollIntoView():null===(e=document.getElementById("step-".concat(n)))||void 0===e||e.scrollIntoView()}}),[]),t.createElement("div",{className:o.StepContainer},i.map((function(e,i){return t.createElement("div",{className:o.Step},t.createElement("div",{id:"step-".concat(i),className:[o.StepTitleContainer,0===i?o.First:""].join(" ")},t.createElement("div",{className:[o.StepTitleTop,e.titleRightContent?o.WithRightContent:""].join(" ")},t.createElement("div",{className:[o.StepCircle,e.isSelected||e.isComplete?o.Selected:""].join(" ").trim()},e.isComplete?t.createElement(n,null):i+1),t.createElement("div",{className:[o.StepTitle,e.isSelected||e.isComplete?"":o.Light].join(" ")},e.label),!!e.titleRightContent&&t.createElement("div",{className:o.StepTitleRightContent},e.titleRightContent)),!!e.titleBottomContent&&t.createElement("div",{className:o.StepTitleBottom},e.titleBottomContent)),e.isSelected&&t.createElement("div",{className:o.StepContent},l))})))})),c=function(t,e,n,o,l){this.label=t,this.isSelected=e,this.isComplete=n,this.titleRightContent=o,this.titleBottomContent=l,i(this)};export{c as Step,l as default};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import{makeAutoObservable as i}from"mobx";import n from"../checkbox/check.js";import o from"./style.module.scss.js";import{PayWithIkas as l}from"../../../pay-with-ikas/index.js";import{CheckoutStep as s}from"../../model.js";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";import{LoyaltyPointsLine as r}from"../cart-summary/index.js";import{IkasCartCreatedBy as c}from"@ikas/storefront-models";import m from"next/dynamic";m((function(){return import("../stripe-express/index.js").then((function(e){return e.default}))}));var d=t((function(t){var i,m,d,p=t.steps,u=t.stepContent,h=t.step,y=t.hasTopMargin,v=t.vm,f=t.isMobile;e.useEffect((function(){var e,t;if(document.body.getBoundingClientRect().width<768){var i=p.findIndex((function(e){return e.isSelected}));if(0===i)return;2===i?null===(e=document.getElementById("step-".concat(1)))||void 0===e||e.scrollIntoView():null===(t=document.getElementById("step-".concat(i)))||void 0===t||t.scrollIntoView()}}),[]);var C=a.getPayWithIkasUrl(),g=a.getCurrentRouting(),E="tr"===(null==g?void 0:g.locale)&&"TRY"===(null==g?void 0:g.currencyCode)&&C&&h===s.INFO,S=!!(null===(i=v.loyaltySpendingMethods)||void 0===i?void 0:i.length)&&(null===(m=v.loyaltySpendingMethods)||void 0===m?void 0:m.length)>0&&f&&!!(null===(d=v.customizationProps)||void 0===d?void 0:d.showLoyaltyPoints)&&!v.isOpenEditOrderWithTransaction&&!(v.checkout.createdBy===c.UPSELL||v.checkout.createdBy===c.ADMIN);return e.createElement("div",{className:o.StepContainer},S&&e.createElement(r,{vm:v,isVisibleLoyaltyPoints:v.isLoyaltyPointsVisible,setIsVisibleLoyaltyPoints:v.setIsLoyaltyPointsVisible,isMobile:f}),E&&e.createElement("div",{className:[o.PayWithIkasContainer,y?o.HasTopMargin:""].join(" ")},e.createElement("div",{className:o.PayWithIkasContent},e.createElement("span",{className:o.PayWithIkasTitle},"Hızlı Öde ile Kolay Alışveriş"),e.createElement("span",{className:o.PayWithIkasDescription},"Bilgilerini bir kez kaydet, 20.000 e-ticaret sitesinde tek tıkla öde.")),e.createElement("div",{className:o.PayWithIkasButton},e.createElement(l,{useExistingCart:!0}))),p.map((function(t,i){return e.createElement("div",{className:o.Step},e.createElement("div",{id:"step-".concat(i),className:[o.StepTitleContainer,0===i?o.First:""].join(" ")},e.createElement("div",{className:[o.StepTitleTop,t.titleRightContent?o.WithRightContent:""].join(" ")},e.createElement("div",{className:[o.StepCircle,t.isSelected||t.isComplete?o.Selected:""].join(" ").trim()},t.isComplete?e.createElement(n,null):i+1),e.createElement("div",{className:[o.StepTitle,t.isSelected||t.isComplete?"":o.Light].join(" ")},t.label),!!t.titleRightContent&&e.createElement("div",{className:o.StepTitleRightContent},t.titleRightContent)),!!t.titleBottomContent&&e.createElement("div",{className:o.StepTitleBottom},t.titleBottomContent)),t.isSelected&&e.createElement("div",{className:o.StepContent},u))})))})),p=function(e,t,n,o,l){this.label=e,this.isSelected=t,this.isComplete=n,this.titleRightContent=o,this.titleBottomContent=l,i(this)};export{p as Step,d as default};
@@ -1 +1 @@
1
- import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={StepContainer:"style-module_StepContainer__2C4C1",Step:"style-module_Step__y2Vro",StepTitleContainer:"style-module_StepTitleContainer__A8Lkg",First:"style-module_First__jH8s6",StepTitleTop:"style-module_StepTitleTop__3PuCO",WithRightContent:"style-module_WithRightContent__IhjA-",StepCircle:"style-module_StepCircle__PGY--",Selected:"style-module_Selected__-Y7Yq",StepTitle:"style-module_StepTitle__hyDmR",Light:"style-module_Light__y8MER",StepTitleRightContent:"style-module_StepTitleRightContent__oFGFw",StepContent:"style-module_StepContent__9pGUV"};e(".style-module_StepContainer__2C4C1 {\n width: 100%;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro {\n width: 100%;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg {\n padding: 24px 0;\n border-top: 1px solid var(--checkout-border-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg.style-module_First__jH8s6 {\n border-top: none;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleTop__3PuCO {\n display: flex;\n align-items: center;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleTop__3PuCO.style-module_WithRightContent__IhjA- {\n align-items: flex-start;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY-- {\n width: 32px;\n height: 32px;\n border-radius: 100%;\n border: 1px solid var(--checkout-button-bg-color);\n color: var(--checkout-button-bg-color);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 16px;\n flex: 0 0 auto;\n font-size: 20px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY--.style-module_Selected__-Y7Yq {\n background-color: var(--checkout-button-bg-color);\n color: var(--checkout-button-text-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY--.style-module_Selected__-Y7Yq svg {\n transform: scale(1.5);\n position: relative;\n right: -1px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitle__hyDmR {\n font-size: 22px;\n color: var(--checkout-primary-text-color);\n flex: 0 0 auto;\n font-weight: 600;\n line-height: 32px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitle__hyDmR.style-module_Light__y8MER {\n color: var(--checkout-button-disabled-text-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleRightContent__oFGFw {\n flex: 1 1 auto;\n}\n.style-module_StepContainer__2C4C1 .style-module_StepContent__9pGUV {\n padding-bottom: 24px;\n padding-left: 48px;\n width: 100%;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_StepContainer__2C4C1 {\n padding: 0 24px;\n }\n .style-module_StepContainer__2C4C1 .style-module_StepContent__9pGUV {\n padding-left: 0px;\n }\n}");export{t as default};
1
+ import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={StepContainer:"style-module_StepContainer__2C4C1",Step:"style-module_Step__y2Vro",StepTitleContainer:"style-module_StepTitleContainer__A8Lkg",First:"style-module_First__jH8s6",StepTitleTop:"style-module_StepTitleTop__3PuCO",WithRightContent:"style-module_WithRightContent__IhjA-",StepCircle:"style-module_StepCircle__PGY--",Selected:"style-module_Selected__-Y7Yq",StepTitle:"style-module_StepTitle__hyDmR",Light:"style-module_Light__y8MER",StepTitleRightContent:"style-module_StepTitleRightContent__oFGFw",StepContent:"style-module_StepContent__9pGUV",PayWithIkasContainer:"style-module_PayWithIkasContainer__ex863",PayWithIkasContent:"style-module_PayWithIkasContent__WSxkH",PayWithIkasTitle:"style-module_PayWithIkasTitle__67vhn",PayWithIkasDescription:"style-module_PayWithIkasDescription__k6kqx",PayWithIkasButton:"style-module_PayWithIkasButton__Z1rka",HasTopMargin:"style-module_HasTopMargin__6-CHw"};e(".style-module_StepContainer__2C4C1 {\n width: 100%;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro {\n width: 100%;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg {\n padding: 24px 0;\n border-top: 1px solid var(--checkout-border-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg.style-module_First__jH8s6 {\n border-top: none;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleTop__3PuCO {\n display: flex;\n align-items: center;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleTop__3PuCO.style-module_WithRightContent__IhjA- {\n align-items: flex-start;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY-- {\n width: 32px;\n height: 32px;\n border-radius: 100%;\n border: 1px solid var(--checkout-button-bg-color);\n color: var(--checkout-button-bg-color);\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: 16px;\n flex: 0 0 auto;\n font-size: 20px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY--.style-module_Selected__-Y7Yq {\n background-color: var(--checkout-button-bg-color);\n color: var(--checkout-button-text-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepCircle__PGY--.style-module_Selected__-Y7Yq svg {\n transform: scale(1.5);\n position: relative;\n right: -1px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitle__hyDmR {\n font-size: 22px;\n color: var(--checkout-primary-text-color);\n flex: 0 0 auto;\n font-weight: 600;\n line-height: 32px;\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitle__hyDmR.style-module_Light__y8MER {\n color: var(--checkout-button-disabled-text-color);\n}\n.style-module_StepContainer__2C4C1 .style-module_Step__y2Vro .style-module_StepTitleContainer__A8Lkg .style-module_StepTitleRightContent__oFGFw {\n flex: 1 1 auto;\n}\n.style-module_StepContainer__2C4C1 .style-module_StepContent__9pGUV {\n padding-bottom: 24px;\n padding-left: 48px;\n width: 100%;\n}\n.style-module_StepContainer__2C4C1 .style-module_PayWithIkasContainer__ex863 {\n border-radius: 8px;\n border: 1px solid #f4f4f5;\n padding: 20px;\n gap: 32px;\n height: 112px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fafafa;\n margin-bottom: 20px;\n}\n.style-module_StepContainer__2C4C1 .style-module_PayWithIkasContent__WSxkH {\n display: flex;\n flex-direction: column;\n}\n.style-module_StepContainer__2C4C1 .style-module_PayWithIkasTitle__67vhn {\n font-size: 18px;\n font-weight: 500;\n color: #09090b;\n line-height: 28px;\n margin-bottom: 4px;\n}\n.style-module_StepContainer__2C4C1 .style-module_PayWithIkasDescription__k6kqx {\n font-size: 14px;\n font-weight: 400;\n color: #52525b;\n line-height: 20px;\n}\n.style-module_StepContainer__2C4C1 .style-module_PayWithIkasButton__Z1rka {\n height: 56px;\n}\n.style-module_StepContainer__2C4C1 .style-module_HasTopMargin__6-CHw {\n margin-top: 24px;\n}\n@media only screen and (max-width: 1280px) {\n .style-module_StepContainer__2C4C1 .style-module_PayWithIkasContainer__ex863 {\n border-radius: 8px;\n border: 1px solid #f4f4f5;\n padding: 20px;\n gap: 16px;\n height: auto;\n flex-direction: column;\n align-items: inherit;\n margin-bottom: 8px;\n margin-top: 24px;\n }\n}\n@media only screen and (max-width: 1000px) {\n .style-module_StepContainer__2C4C1 {\n padding: 0 24px;\n }\n .style-module_StepContainer__2C4C1 .style-module_StepContent__9pGUV {\n padding-left: 0px;\n }\n}");export{t as default};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as n}from"mobx-react-lite";import{ErrorType as m}from"../../model.js";import{useStripe as o,useElements as a,PaymentElement as s}from"@stripe/react-stripe-js";import i from"./style.module.scss.js";var l=n((function(n){var l=n.callbackUrl,c=n.vm,d=o(),u=a(),f=t.useState(!0),p=f[0],b=f[1];return t.createElement(t.Fragment,null,t.createElement("form",{className:i.Form,id:"stripe-form",onSubmit:function(t){return e(void 0,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return t.preventDefault(),d&&u&&l?(b(!0),[4,d.confirmPayment({elements:u,confirmParams:{return_url:l}})]):[2];case 1:return(e=r.sent().error)&&(c.handlePaymentError(m.PAYMENT_ERROR,e.message),c.isStepLoading=!1,b(!1)),[2]}}))}))}},t.createElement(s,{onReady:function(){return b(!1)}}),t.createElement("button",{id:"stripe-form-btn",hidden:!0,disabled:!d}),p&&t.createElement("div",{className:i.Disabled},t.createElement("div",{className:i.loader}))))}));export{l as CheckoutForm};
1
+ import{__awaiter as e,__generator as r}from'./../../../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as o}from"mobx-react-lite";import{ErrorType as n}from"../../model.js";import{useStripe as m,useElements as a,PaymentElement as s}from"@stripe/react-stripe-js";import i from"./style.module.scss.js";var l=o((function(o){var l=o.callbackUrl,c=o.vm,d=m(),u=a(),f=t.useState(!0),p=f[0],b=f[1];return t.createElement(t.Fragment,null,t.createElement("form",{className:i.Form,id:"stripe-form",onSubmit:function(t){return e(void 0,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return t.preventDefault(),d&&u&&l?(b(!0),[4,d.confirmPayment({elements:u,confirmParams:{return_url:l}})]):[2];case 1:return(e=r.sent().error)&&(console.log("stripe error",e),c.handlePaymentError(n.PAYMENT_ERROR,e.message),c.isStepLoading=!1,b(!1)),[2]}}))}))}},t.createElement(s,{onReady:function(){return b(!1)}}),t.createElement("button",{id:"stripe-form-btn",hidden:!0,disabled:!d}),p&&t.createElement("div",{className:i.Disabled},t.createElement("div",{className:i.loader}))))}));export{l as CheckoutForm};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import CheckoutViewModel from "../../model";
3
+ declare type Props = {
4
+ vm: CheckoutViewModel;
5
+ };
6
+ declare const StripeExpressForm: React.FC<Props>;
7
+ export default StripeExpressForm;
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as s from"react";import{observer as r}from"mobx-react-lite";import{ErrorType as i}from"../../model.js";import{useStripe as n,useElements as o,ExpressCheckoutElement as a,Elements as c}from"@stripe/react-stripe-js";import{loadStripe as l}from"@stripe/stripe-js";import u from"./style.module.scss.js";import{useTranslation as p}from"../../../../utils/i18n.js";var m=r((function(r){var c=r.vm,l=n(),p=o(),m=c.stripeExpressCheckoutSessionResponse;if(!m)return null;return s.createElement("div",{className:u.ExpressCheckoutWrapper,style:{visibility:c.isStripeExpressCheckoutSessionVisible?"visible":"hidden"}},s.createElement(a,{onConfirm:function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return l&&p?[4,l.confirmPayment({elements:p,confirmParams:{return_url:m.callbackUrl}})]:[2];case 1:return(e=t.sent().error)&&c.handlePaymentError(i.PAYMENT_ERROR,e.message),[2]}}))}))},onReady:function(e){e.availablePaymentMethods&&(c.isStripeExpressCheckoutSessionVisible=!0)},onShippingAddressChange:function(s){var r=s.resolve,i=s.reject,n=s.address;return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,c.updateStripeExpressCheckoutSession({address:{city:(null==n?void 0:n.city)||null,country:(null==n?void 0:n.country)||null,postalCode:(null==n?void 0:n.postal_code)||null,state:(null==n?void 0:n.state)||null}})];case 1:return e.sent()?r():i(),[2]}}))}))},onShippingRateChange:function(s){var r=s.resolve,i=s.reject,n=s.shippingRate;return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,c.updateStripeExpressCheckoutSession({shippingZoneRateId:(null==n?void 0:n.id)||null})];case 1:return e.sent()?r():i(),[2]}}))}))}}))})),d=r((function(r){var i=r.vm,n=s.useState(null),o=n[0],a=n[1],d=p().t,v=i.stripeExpressCheckoutSessionResponse;return s.useEffect((function(){!function(){e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return v?[4,l(v.apiKey,{stripeAccount:v.accountId})]:[3,2];case 1:e=t.sent(),a(e),t.label=2;case 2:return[2]}}))}))}()}),[v]),v?s.createElement("div",{style:{display:i.isStripeExpressCheckoutSessionVisible?"block":"none"},className:u.StripeExpressCheckoutContainer},s.createElement("div",{className:u.StripeExpressCheckoutTitle},d("checkout-page:stripeExpressCheckoutTitle")),s.createElement("div",{className:u.Container},s.createElement(c,{stripe:o,options:{clientSecret:v.clientSecret}},s.createElement(m,{vm:i}))),s.createElement("div",{className:u.StripeExpressCheckoutDivider},s.createElement("span",{className:u.StripeExpressCheckoutDividerLine}),s.createElement("span",{className:u.StripeExpressCheckoutDividerText},d("checkout-page:or")),s.createElement("span",{className:u.StripeExpressCheckoutDividerLine}))):null}));export{d as default};
@@ -0,0 +1 @@
1
+ import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={StripeExpressCheckoutContainer:"style-module_StripeExpressCheckoutContainer__08prd",StripeExpressCheckoutTitle:"style-module_StripeExpressCheckoutTitle__zeDIp",StripeExpressCheckoutDivider:"style-module_StripeExpressCheckoutDivider__JVT-A",StripeExpressCheckoutDividerLine:"style-module_StripeExpressCheckoutDividerLine__feAyn",StripeExpressCheckoutDividerText:"style-module_StripeExpressCheckoutDividerText__9mIdS"};e("@media only screen and (max-width: 768px) {\n .style-module_StripeExpressCheckoutContainer__08prd {\n margin-top: 16px;\n }\n}\n.style-module_StripeExpressCheckoutContainer__08prd .style-module_StripeExpressCheckoutTitle__zeDIp {\n font-size: 22px;\n font-weight: 500;\n color: var(--checkout-primary-text-color);\n line-height: 32px;\n margin-bottom: 24px;\n}\n.style-module_StripeExpressCheckoutContainer__08prd .style-module_StripeExpressCheckoutDivider__JVT-A {\n display: flex;\n align-items: center;\n gap: 14px;\n margin-top: 16px;\n}\n.style-module_StripeExpressCheckoutContainer__08prd .style-module_StripeExpressCheckoutDividerLine__feAyn {\n flex: 1;\n height: 1px;\n background-color: var(--checkout-border-color);\n}\n.style-module_StripeExpressCheckoutContainer__08prd .style-module_StripeExpressCheckoutDividerText__9mIdS {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n letter-spacing: 0.5px;\n}");export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGArrowLoyalty: React.FC<Props>;
6
+ export default SVGArrowLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M6.75 13.5L11.25 9L6.75 4.5",stroke:"#4A33DA","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGArrowRightLoyalty: React.FC<Props>;
6
+ export default SVGArrowRightLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},e.createElement("path",{d:"M0.796875 6.63411H12.4635M12.4635 6.63411L6.63021 0.800781M12.4635 6.63411L6.63021 12.4674",stroke:"#8A8B94","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGCouponCodeTag: React.FC<Props>;
6
+ export default SVGCouponCodeTag;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{d:"M13.7293 8.93967L8.94927 13.7197C8.82544 13.8436 8.67839 13.942 8.51652 14.0091C8.35466 14.0762 8.18116 14.1107 8.00594 14.1107C7.83072 14.1107 7.65721 14.0762 7.49535 14.0091C7.33349 13.942 7.18643 13.8436 7.0626 13.7197L1.33594 7.99967V1.33301H8.0026L13.7293 7.05967C13.9776 7.30949 14.117 7.64743 14.117 7.99967C14.117 8.35192 13.9776 8.68986 13.7293 8.93967Z",fill:"#CFCED3"}),e.createElement("path",{d:"M4.66406 4.66699H4.67073",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGCreditBalance: React.FC<Props>;
6
+ export default SVGCreditBalance;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("g",{filter:"url(#filter0_ii_4315_5854)"},e.createElement("rect",{width:"24",height:"24",rx:"6",fill:"#FFBC1F"}),e.createElement("rect",{x:"0.2",y:"0.2",width:"23.6",height:"23.6",rx:"5.8",stroke:"#FFBC1F","stroke-width":"0.4"}),e.createElement("g",{"clip-path":"url(#clip0_4315_5854)"},e.createElement("path",{d:"M14.6278 14.6251C16.9095 14.3196 18.6693 12.3653 18.6693 9.99992C18.6693 7.42259 16.5799 5.33325 14.0026 5.33325C11.6373 5.33325 9.68293 7.09303 9.37745 9.37476M9.0026 12.6666L10.0026 11.9999V15.6666M9.0026 15.6666H11.0026M14.6693 13.9999C14.6693 16.5772 12.5799 18.6666 10.0026 18.6666C7.42528 18.6666 5.33594 16.5772 5.33594 13.9999C5.33594 11.4226 7.42528 9.33325 10.0026 9.33325C12.5799 9.33325 14.6693 11.4226 14.6693 13.9999Z",stroke:"white","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}))),e.createElement("defs",null,e.createElement("filter",{id:"filter0_ii_4315_5854",x:"0",y:"0",width:"24",height:"24",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},e.createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"-1"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.903339 0 0 0 0 0.658627 0 0 0 0 0.085197 0 0 0 1 0"}),e.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_4315_5854"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"1"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_4315_5854",result:"effect2_innerShadow_4315_5854"})),e.createElement("clipPath",{id:"clip0_4315_5854"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(4 4)"}))))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGGiftCartTag: React.FC<Props>;
6
+ export default SVGGiftCartTag;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_4350_5612)"},e.createElement("path",{d:"M14.9565 3.11611H13.7919C13.9455 2.87299 14.0469 2.60008 14.0758 2.31145C14.1681 1.38905 13.6823 0.562174 12.8553 0.19558C12.0951 -0.141389 11.2408 -0.0036388 10.6257 0.554299L9.15506 1.88711C8.86866 1.57386 8.45694 1.37699 8 1.37699C7.54225 1.37699 7.12988 1.57449 6.84341 1.8887L5.37091 0.554142C4.75475 -0.00379503 3.90081 -0.141014 3.14097 0.195767C2.31416 0.562392 1.82828 1.38955 1.92091 2.31192C1.94987 2.60033 2.05119 2.87311 2.20478 3.11611H1.04347C0.467156 3.11611 0 3.5833 0 4.15958V5.7248C0 6.01292 0.233594 6.24655 0.52175 6.24655H15.4783C15.7664 6.24655 16 6.01295 16 5.7248V4.15958C16 3.5833 15.5328 3.11611 14.9565 3.11611ZM6.43478 2.9422V3.11611H3.98031C3.33181 3.11611 2.82144 2.51155 2.98341 1.83636C3.05475 1.53902 3.26937 1.28555 3.54697 1.15724C3.92816 0.981049 4.35041 1.03761 4.67056 1.32739L6.43522 2.92683C6.43512 2.93199 6.43478 2.93705 6.43478 2.9422ZM13.0404 2.17292C13.0016 2.7152 12.5117 3.11617 11.9681 3.11617H9.56522V2.94227C9.56522 2.93611 9.56484 2.93002 9.56478 2.92386C9.96453 2.56149 10.8317 1.77549 11.3021 1.34914C11.5694 1.10686 11.9434 0.993767 12.2892 1.09689C12.7853 1.24489 13.0767 1.66683 13.0404 2.17292Z",fill:"#CFCED3"}),e.createElement("path",{d:"M1.04688 7.29004V14.9422C1.04688 15.5185 1.51403 15.9857 2.09034 15.9857H6.95991V7.29004H1.04688Z",fill:"#CFCED3"}),e.createElement("path",{d:"M9.04688 7.29004V15.9857H13.9164C14.4928 15.9857 14.9599 15.5185 14.9599 14.9422V7.29004H9.04688Z",fill:"#CFCED3"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_4350_5612"},e.createElement("rect",{width:"16",height:"16",fill:"white"}))))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGGiftLoyalty: React.FC<Props>;
6
+ export default SVGGiftLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{d:"M2.66406 7.33398V10.0007C2.66406 12.2005 2.66406 13.3005 3.34748 13.9839C4.0309 14.6673 5.13084 14.6673 7.33073 14.6673H8.66406C10.8639 14.6673 11.9639 14.6673 12.6473 13.9839C13.3307 13.3005 13.3307 12.2005 13.3307 10.0007V7.33398",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M2 5.99935C2 5.50089 2 5.25166 2.13397 5.06602C2.22174 4.9444 2.34798 4.84341 2.5 4.7732C2.73205 4.66602 3.04359 4.66602 3.66667 4.66602H12.3333C12.9564 4.66602 13.2679 4.66602 13.5 4.7732C13.652 4.84341 13.7783 4.9444 13.866 5.06602C14 5.25166 14 5.50089 14 5.99935C14 6.49781 14 6.74702 13.866 6.93268C13.7783 7.05428 13.652 7.15528 13.5 7.22548C13.2679 7.33268 12.9564 7.33268 12.3333 7.33268H3.66667C3.04359 7.33268 2.73205 7.33268 2.5 7.22548C2.34798 7.15528 2.22174 7.05428 2.13397 6.93268C2 6.74702 2 6.49781 2 5.99935Z",stroke:"#272727","stroke-width":"1.2","stroke-linejoin":"round"}),e.createElement("path",{d:"M4 2.52446C4 1.86698 4.53299 1.33398 5.19047 1.33398H5.42857C6.84873 1.33398 8 2.48525 8 3.90541V4.66732H6.14286C4.95939 4.66732 4 3.70792 4 2.52446Z",stroke:"#272727","stroke-width":"1.2","stroke-linejoin":"round"}),e.createElement("path",{d:"M12 2.52446C12 1.86698 11.467 1.33398 10.8095 1.33398H10.5714C9.15127 1.33398 8 2.48525 8 3.90541V4.66732H9.85713C11.0406 4.66732 12 3.70792 12 2.52446Z",stroke:"#272727","stroke-width":"1.2","stroke-linejoin":"round"}),e.createElement("path",{d:"M8 7.33398V14.6673",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGInfo: React.FC<Props>;
6
+ export default SVGInfo;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none"},e.createElement("g",{filter:"url(#filter0_ii_4722_14637)"},e.createElement("rect",{width:"28",height:"28",rx:"6",fill:"#FFBC1F"}),e.createElement("rect",{x:"0.2",y:"0.2",width:"27.6",height:"27.6",rx:"5.8",stroke:"#FFBC1F","stroke-width":"0.4"}),e.createElement("g",{"clip-path":"url(#clip0_4722_14637)"},e.createElement("path",{d:"M14 11.3333V14M14 16.6666H14.0067M20.6667 14C20.6667 17.6819 17.6819 20.6666 14 20.6666C10.3181 20.6666 7.33334 17.6819 7.33334 14C7.33334 10.3181 10.3181 7.33331 14 7.33331C17.6819 7.33331 20.6667 10.3181 20.6667 14Z",stroke:"white","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}))),e.createElement("defs",null,e.createElement("filter",{id:"filter0_ii_4722_14637",x:"0",y:"0",width:"28",height:"28",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},e.createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"-1"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.903339 0 0 0 0 0.658627 0 0 0 0 0.085197 0 0 0 1 0"}),e.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_4722_14637"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"1"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_4722_14637",result:"effect2_innerShadow_4722_14637"})),e.createElement("clipPath",{id:"clip0_4722_14637"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(6 6)"}))))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGLeftArrowLoyalty: React.FC<Props>;
6
+ export default SVGLeftArrowLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none"},e.createElement("path",{d:"M16.7969 6.80078H0.796875M0.796875 6.80078L6.79688 12.8008M0.796875 6.80078L6.79688 0.800781",stroke:"#8A8B94","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGPackageLoyalty: React.FC<Props>;
6
+ export default SVGPackageLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{d:"M14 4.66602V7.99935M2 4.66602C2 6.70902 2 11.1821 2 11.4402C2 12.3619 3.29709 12.9098 5.89129 14.0057C6.93347 14.4459 7.45453 14.666 8 14.666V7.56922",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M10 12.6667C10 12.6667 10.5833 12.6667 11.1667 14C11.1667 14 13.0196 10.6667 14.6667 10",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M5.55061 6.46157L3.60315 5.51922C2.53438 5.00205 2 4.74347 2 4.33398C2 3.9245 2.53438 3.66592 3.60315 3.14875L5.55061 2.2064C6.75253 1.62479 7.35353 1.33398 8 1.33398C8.64647 1.33398 9.24747 1.62478 10.4494 2.2064L12.3969 3.14875C13.4656 3.66592 14 3.9245 14 4.33398C14 4.74347 13.4656 5.00205 12.3969 5.51922L10.4494 6.46157C9.24747 7.04318 8.64647 7.33398 8 7.33398C7.35353 7.33398 6.75253 7.04318 5.55061 6.46157Z",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M4 8L5.33333 8.66667",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M11.3307 2.66602L4.66406 5.99935",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGPercentageLoyalty: React.FC<Props>;
6
+ export default SVGPercentageLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{d:"M7.32812 6.66602H7.33812M7.33059 10.666H7.34059",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M4.66406 8.66602H9.9974",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M11.6641 3.33398C12.2163 3.33398 12.6641 3.7817 12.6641 4.33398C12.6641 4.88627 12.2163 5.33398 11.6641 5.33398C11.1118 5.33398 10.6641 4.88627 10.6641 4.33398C10.6641 3.7817 11.1118 3.33398 11.6641 3.33398Z",stroke:"#272727","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M1.85209 7.42992C1.18333 8.17685 1.16894 9.30372 1.78271 10.0965C3.00068 11.6695 4.33377 13.0026 5.90683 14.2205C6.69954 14.8343 7.82641 14.8199 8.57334 14.1512C10.6012 12.3355 12.4583 10.4379 14.2505 8.35258C14.4277 8.14645 14.5385 7.89378 14.5634 7.62305C14.6734 6.42597 14.8994 2.9771 13.9628 2.04048C13.0261 1.10386 9.57727 1.32983 8.38021 1.43982C8.10947 1.4647 7.85681 1.57554 7.65061 1.75272C5.56535 3.54496 3.66781 5.40206 1.85209 7.42992Z",stroke:"#272727","stroke-width":"1.2"}))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGStarLoyalty: React.FC<Props>;
6
+ export default SVGStarLoyalty;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e.createElement("g",{filter:"url(#filter0_dii_4527_5468)"},e.createElement("path",{d:"M7.73445 0.617758C7.90731 0.267554 7.99375 0.0924516 8.11108 0.0365064C8.21317 -0.0121688 8.33178 -0.0121688 8.43386 0.0365064C8.5512 0.0924516 8.63763 0.267554 8.8105 0.617758L10.4505 3.94023C10.5015 4.04362 10.5271 4.09532 10.5643 4.13545C10.5974 4.17099 10.637 4.19978 10.6809 4.22024C10.7306 4.24334 10.7877 4.25168 10.9018 4.26835L14.5702 4.80455C14.9565 4.86101 15.1497 4.88925 15.239 4.9836C15.3168 5.06569 15.3534 5.17849 15.3386 5.2906C15.3216 5.41946 15.1817 5.55566 14.9021 5.82806L12.2485 8.41258C12.1658 8.49315 12.1245 8.53344 12.0978 8.58137C12.0742 8.62381 12.059 8.67043 12.0531 8.71865C12.0465 8.77311 12.0563 8.83002 12.0758 8.94382L12.7019 12.5944C12.768 12.9794 12.801 13.1719 12.7389 13.2861C12.6849 13.3855 12.589 13.4553 12.4778 13.4759C12.3499 13.4996 12.1771 13.4087 11.8313 13.2268L8.55174 11.5021C8.44956 11.4484 8.39847 11.4215 8.34464 11.411C8.29698 11.4016 8.24796 11.4016 8.2003 11.411C8.14648 11.4215 8.09539 11.4484 7.9932 11.5021L4.71365 13.2268C4.3679 13.4087 4.19502 13.4996 4.06719 13.4759C3.95597 13.4553 3.86 13.3855 3.80601 13.2861C3.74396 13.1719 3.77698 12.9794 3.84302 12.5944L4.46913 8.94382C4.48864 8.83002 4.4984 8.77311 4.4918 8.71865C4.48595 8.67043 4.47079 8.62381 4.44717 8.58137C4.42048 8.53344 4.37912 8.49315 4.2964 8.41258L1.64288 5.82806C1.36321 5.55566 1.22337 5.41946 1.20636 5.2906C1.19155 5.17849 1.22813 5.06569 1.3059 4.9836C1.39529 4.88925 1.58844 4.86101 1.97474 4.80455L5.64319 4.26835C5.75728 4.25168 5.81432 4.24334 5.864 4.22024C5.90798 4.19978 5.94758 4.17099 5.9806 4.13545C6.01789 4.09532 6.04341 4.04362 6.09444 3.94023L7.73445 0.617758Z",fill:"url(#paint0_linear_4527_5468)"})),e.createElement("defs",null,e.createElement("filter",{id:"filter0_dii_4527_5468",x:"0.00312495",y:"-1.2",width:"16.5406",height:"17.0805",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},e.createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"1.2"}),e.createElement("feGaussianBlur",{stdDeviation:"0.6"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.552941 0 0 0 0 0.294118 0 0 0 0 0 0 0 0 0.24 0"}),e.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4527_5468"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4527_5468",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"-1.2"}),e.createElement("feGaussianBlur",{stdDeviation:"1.2"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.844933 0 0 0 0 0.523295 0 0 0 0 0.161948 0 0 0 1 0"}),e.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow_4527_5468"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"1.2"}),e.createElement("feGaussianBlur",{stdDeviation:"1.2"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_4527_5468",result:"effect3_innerShadow_4527_5468"})),e.createElement("linearGradient",{id:"paint0_linear_4527_5468",x1:"8.27247",y1:"0",x2:"8.27247",y2:"13.4796",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{"stop-color":"#FFE6B1"}),e.createElement("stop",{offset:"1","stop-color":"#F49D30"}))))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGStoreCreditTag: React.FC<Props>;
6
+ export default SVGStoreCreditTag;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_4350_5702)"},e.createElement("path",{d:"M13.2788 13.2818C16.131 12.8999 18.3307 10.457 18.3307 7.50033C18.3307 4.27866 15.7191 1.66699 12.4974 1.66699C9.54071 1.66699 7.0978 3.86672 6.71595 6.71888M6.2474 10.8337L7.4974 10.0003V14.5837M6.2474 14.5837H8.7474M13.3307 12.5003C13.3307 15.722 10.7191 18.3337 7.4974 18.3337C4.27573 18.3337 1.66406 15.722 1.66406 12.5003C1.66406 9.27866 4.27573 6.66699 7.4974 6.66699C10.7191 6.66699 13.3307 9.27866 13.3307 12.5003Z",stroke:"#8A8B94","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_4350_5702"},e.createElement("rect",{width:"20",height:"20",fill:"white"}))))};export{t as default};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ className?: string;
4
+ };
5
+ declare const SVGSubscription: React.FC<Props>;
6
+ export default SVGSubscription;
@@ -0,0 +1 @@
1
+ import*as e from"react";var t=function(t){return t.className,e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e.createElement("path",{d:"M1 7C1 7 1.06066 7.42462 2.81802 9.18198C4.57538 10.9393 7.42462 10.9393 9.18198 9.18198C9.80462 8.55934 10.2067 7.79964 10.3881 7M1 7V10M1 7H4M11 5C11 5 10.9393 4.57538 9.18198 2.81802C7.42462 1.06066 4.57538 1.06066 2.81802 2.81802C2.19538 3.44066 1.79335 4.20036 1.61191 5M11 5V2M11 5H8",stroke:"#5A44D5","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}))};export{t as default};
@@ -15,6 +15,7 @@ export declare type IkasCheckoutPageProps = {
15
15
  export declare type IkasCheckoutCustomizationProps = {
16
16
  logo?: IkasImage;
17
17
  showTax?: boolean;
18
+ showLoyaltyPoints?: boolean;
18
19
  showCampaignIsBiggerImage?: boolean;
19
20
  showCampaignOffersDesign?: boolean;
20
21
  campaignOfferIsSmallDesign?: boolean;
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as r}from"mobx-react-lite";import{useRouter as i}from"next/router.js";import n from"next/link.js";import a from"react-tooltip";import s,{CheckoutStep as l}from"./model.js";import{IkasStorefrontConfig as c}from"@ikas/storefront-config";import{formatCurrency as m}from"../../utils/currency.js";import{useTranslation as d}from"../../utils/i18n.js";import p from"./steps/step-info/index.js";import{CheckoutStepShipping as u}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as f}from"./steps/step-payment/index.js";import{CouponErrorCode as g,Coupon as v,CartSummary as h}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as E}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/region/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-form-data-input/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/region/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/order-transaction-with-prices/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/campaign-offer/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/shipping-zone/state/city/district/region/index.js";import"../../models/data/state/index.js";import"../../models/data/storefront-popup/storefront-popup-display-filter/index.js";import"../../models/data/storefront-popup/storefront-popup-display-settings/index.js";import"../../models/data/storefront-popup/storefront-popup-page-filter/index.js";import"../../models/data/storefront-popup/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as y}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as x}from"./steps/step-success/index.js";import{Modal as k}from"./components/modal/index.js";import j from"./components/master-pass/modal-otp/index.js";import C from"./components/master-pass/modal-response/index.js";import N from"./components/master-pass/modal-success/index.js";import{Image as P}from"../image/index.js";import O,{Step as b}from"./components/step-container/index.js";import{StockError as M}from"./components/error/stock-error/index.js";import{FullscreenLoading as S}from"./components/fullscreen-loading/index.js";import F from"./components/notification-box/index.js";import{FormItem as T}from"./components/form-item/index.js";import{FormItemType as w}from"./components/form-item/model.js";import{Button as I}from"./components/button/index.js";import{IkasPageHead as A}from"../page/head.js";import B from"./components/offer-product/index.js";import L from"./components/offer-product/placeholder-offer-product.js";import D from"./components/svg/ikas.js";import V from"./style.module.scss.js";import{Analytics as U}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import R from"./components/svg/success-circle.js";import z from"./components/offer-product/offer-dots/index.js";import _ from"./components/offer-product/offer-arrows/index.js";import H from"./components/offer-product/useCampaignOffer.js";import G from"../../hooks/useDimension.js";var Y=r((function(e){var t,r,n,m,p,u,f,g=e.checkout,v=e.checkoutSettings,y=e.customizationProps,O=e.returnPolicy,b=e.privacyPolicy,F=e.termsOfService,T=e.imprint,w=e.shippingPolicy,G=d().t,Y=i();console.log("checkout.campaignOffers 1",g.campaignOffers);var K=o.useState((function(){return new s(g,v,Y,O,b,F,T,w,G,y||{})}))[0];console.log("checkout.campaignOffers 2",g.campaignOffers),console.log("vm.campaignOffers",K.campaignOffers);var J=H(K),$=J.setShowDetailPage,ee=J.setActiveIndex,te=J.setIsActiveOverlay,oe=J.handlePrev,re=J.handleNext,ie=J.isPopupClosedIndexPage,ne=J.isPopupShowIndexPage,ae=J.isShowSuccessPageMiddlePhase,se=J.activeIndex;o.useMemo((function(){return Date.now()}),[]);return K.step,l.PAYMENT,o.useEffect((function(){K.checkoutSettings.isAccountRequired&&!K.checkout.hasCustomer&&Y.push("/account/login?redirect="+encodeURIComponent(K.checkoutUrl)),new URLSearchParams(window.location.search).get("step")!==l.SUCCESS&&U.beginCheckout(K.checkout),U.pageView(E.CHECKOUT)}),[]),o.useEffect((function(){K.customizationProps=y,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED"),document.documentElement.style.setProperty("--checkout-secondary-button-bg-color",(null==e?void 0:e.secondaryButtonBgColor)||"#ffffff0"),document.documentElement.style.setProperty("--checkout-secondary-button-text-color",(null==e?void 0:e.secondaryButtonTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-button-border-color",(null==e?void 0:e.secondaryButtonBorderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-campaign-title-color",(null==e?void 0:e.campaignOffersTitleColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-description-color",(null==e?void 0:e.campaignOffersDescriptionColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-container-bg-color",(null==e?void 0:e.campaignOffersContainerBgColor)||"#ffffff"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-color",(null==e?void 0:e.campaignOffersDiscountPercentageColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-bg-color",(null==e?void 0:e.campaignOffersDiscountPercentageBgColor)||"#FFF1BD"),document.documentElement.style.setProperty("--checkout-campaign-countdown-text-color",(null==e?void 0:e.campaignOffersCountdownTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-countdown-time-color",(null==e?void 0:e.campaignOffersCountdownTimeColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-campaign-countdown-bg-color",(null==e?void 0:e.campaignOffersCountdownBgColor)||"#FFF5F6"),document.documentElement.style.setProperty("--checkout-campaign-middle-phase-overlay-color",(null==e?void 0:e.campaignOffersMiddlePhaseOverlayColor)||"#292727ad")}(y)}),[y]),K.isCheckoutLoaded&&K.store.customerStore.initialized?K.checkout.hasCustomer&&(null===(t=K.store.customerStore.customer)||void 0===t?void 0:t.id)!==(null===(r=K.checkout.customer)||void 0===r?void 0:r.id)?(Y.push("/account/login?redirect="+encodeURIComponent(K.checkoutUrl)),null):o.createElement(o.Fragment,null,o.createElement(A,{pageType:E.CHECKOUT,pageTitle:((null===(n=K.merchantSettings)||void 0===n?void 0:n.merchantName)||"")+" - "+G("checkout-page:securePayment"),pageDescription:G("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:V.CheckoutPage},ae?o.createElement("div",{className:V.FullPageOfferMain},o.createElement("div",{className:V.FullPageOfferContainer},o.createElement("div",{className:V.LogoMain},(null===(m=K.customizationProps)||void 0===m?void 0:m.logo)?o.createElement("div",{className:V.Logo},o.createElement(P,{layout:"fill",image:K.customizationProps.logo,sizes:"360px"})):(null===(p=K.merchantSettings)||void 0===p?void 0:p.logo)?o.createElement("div",{className:V.Logo},o.createElement(P,{layout:"fill",image:K.merchantSettings.logo,sizes:"360px"})):(null===(u=K.merchantSettings)||void 0===u?void 0:u.merchantName)||""),o.createElement("div",{className:V.OfferSuccessInfo},o.createElement("div",null,o.createElement("div",{className:V.OfferSuccessHeader},o.createElement(R,{className:V.SuccessCircle}),o.createElement("span",{className:V.SuccessTitle},G("checkout-page:orderSuccessShortTitle"))),o.createElement("div",{className:V.OfferOrderInfoMain},o.createElement("div",{className:V.InfoTitle},G("checkout-page:orderNoAndDate"),":"),o.createElement("div",{className:V.InfoText},"#"+(K.checkout.orderNumber||"")," ",K.checkout.dateStr))),o.createElement("div",null,o.createElement(I,{classes:V.OfferButton,isLine:!0,text:G("checkout-page:actions.goOrderDetailPage"),onClick:function(){$(!1)}}))),o.createElement("div",null,K.campaignOffers&&!!K.campaignOffers.length&&K.isCampaignOfferLoaded&&o.createElement("div",{className:V.CampaignOfferMain},o.createElement("div",{className:V.OfferSlider},K.campaignOffers.map((function(e,t){var r;return o.createElement(B,{vm:K,campaignOffer:e,index:t,activeIndex:se,offersLength:(null===(r=K.campaignOffers)||void 0===r?void 0:r.length)||0,handlePrev:oe,handleNext:re,setActiveIndex:function(e){return ee(e)},desktopMiddlePhase:!0,step:K.step})}))),K.campaignOffers.length>1&&o.createElement(_,{handlePrev:oe,handleNext:re}),K.campaignOffers.length>1&&o.createElement(z,{vm:K,activeIndex:se}))))):null,o.createElement(a,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:V.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:[V.Left].join(" ")},o.createElement("div",{className:V.LeftContent},o.createElement("div",null,o.createElement(W,{vm:K}),K.hasStockError&&o.createElement("div",{className:V.ErrorContainer},o.createElement(M,{vm:K,error:K.error})),!K.hasStockError&&o.createElement(o.Fragment,null,K.step!==l.SUCCESS&&o.createElement(h,{vm:K,allowExpand:!0}),K.step===l.SUCCESS?o.createElement(x,{vm:K}):o.createElement(o.Fragment,null,!!(null===(f=K.customizationProps)||void 0===f?void 0:f.showCampaignOffersDesign)&&c.getIsEditor()&&o.createElement(L,{vm:K}),ne&&o.createElement("div",{className:[V.MiddlePhaseOverlay,ne?V.MiddlePhaseOverlayPopup:""].join(" ")}),K.campaignOffers&&!!K.campaignOffers.length&&K.isCampaignOfferLoaded&&o.createElement("div",{className:[V.CampaignOfferMain,ne?V.OverlayPopupMain:""].join(" ")},o.createElement("div",{className:V.OfferSlider},K.campaignOffers.map((function(e,t){var r;return o.createElement(B,{vm:K,campaignOffer:e,index:t,activeIndex:se,offersLength:(null===(r=K.campaignOffers)||void 0===r?void 0:r.length)||0,handlePrev:oe,handleNext:re,setActiveIndex:function(e){return ee(e)},step:K.step,isPopupClosed:ie,isPopupShow:ne,closePopup:function(){return te(!1)},showPopup:function(){return te(!0)}})}))),K.campaignOffers.length>1&&o.createElement(_,{handlePrev:oe,handleNext:re}),K.campaignOffers.length>1&&o.createElement(z,{isPopupShow:ne,vm:K,activeIndex:se})),K.isCouponCodeRequirementOpen&&o.createElement(q,{vm:K}),o.createElement(X,{vm:K}))),o.createElement("div",{className:V.Space})),o.createElement(Q,{vm:K}))),o.createElement("div",{className:V.Right},o.createElement("div",{className:V.RightContent},o.createElement(h,{vm:K}),!K.isPoweredByHidden&&o.createElement("div",{className:V.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===c.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(D,null))))),!!K.policyModalText&&o.createElement(k,{title:K.policyModalTitle,modalContent:K.policyModalText,onClose:function(){K.policyModalText=""}}),K.isContactModalVisible&&o.createElement(Z,{vm:K,setVisible:K.setContactModalVisible}),K.mpVM.isOtpModalVisible&&o.createElement(j,{vm:K,visible:K.mpVM.isOtpModalVisible,type:K.mpVM.otpModalType,onClose:K.mpVM.hideOtpModal}),K.mpVM.isResponseModalVisible&&o.createElement(C,{visible:K.mpVM.isResponseModalVisible,text:K.mpVM.mfsResponseModalText,onClose:K.mpVM.onResponseModalClose}),K.mpVM.isSuccessModalVisible&&o.createElement(N,{visible:K.mpVM.isSuccessModalVisible,type:K.mpVM.successModalType,onClose:K.mpVM.onSuccessModalClose}))):o.createElement(S,null)})),W=r((function(e){var t,r,i,a,s=e.vm,l=d().t;return o.createElement("div",{className:V.Header},o.createElement(n,{href:"/",passHref:!0},o.createElement("a",null,(null===(t=s.customizationProps)||void 0===t?void 0:t.logo)?o.createElement("div",{className:V.Logo},o.createElement(P,{layout:"fill",image:s.customizationProps.logo,sizes:"360px"})):(null===(r=s.merchantSettings)||void 0===r?void 0:r.logo)?o.createElement("div",{className:V.Logo},o.createElement(P,{layout:"fill",image:s.merchantSettings.logo,sizes:"360px"})):(null===(i=s.merchantSettings)||void 0===i?void 0:i.merchantName)||"")),!s.checkout.hasCustomer&&o.createElement("div",{className:V.LoginText},o.createElement("span",{className:V.LoginCta},l("checkout-page:alreadyHaveAnAccount")),o.createElement(n,{href:"/account/login?redirect="+encodeURIComponent(s.checkoutUrl),passHref:!0},o.createElement("a",{className:V.LoginBtn},l("checkout-page:actions.login")))),s.checkout.hasCustomer&&o.createElement("div",{className:V.CustomerInfo},o.createElement("div",{className:V.Name},s.checkout.customerFullName),o.createElement("div",{className:V.Email},null===(a=s.checkout.customer)||void 0===a?void 0:a.email)))})),q=r((function(e){var t=e.vm,r=d().t,i=o.useState(!1),n=i[0],a=i[1],s=o.useState(null),l=s[0],c=s[1],m=G().isMobile,p=o.useMemo((function(){switch(l){case g.COUPON_CODE_NOT_EXIST:return r("checkout-page:giftCodeErrorDescription");case g.COUPON_CODE_NOT_EXIST_FOR_GUESS:return r("checkout-page:mustBeSignInToApplyCampaign");default:return""}}),[l]);return o.createElement("div",{className:V.CouponContainer},n&&o.createElement("div",{className:V.NotificationContainer},o.createElement(F,{type:"warning",title:r("checkout-page:giftCodeErrorTitle"),content:p,onClose:function(){a(!1),c(null)},ignoreScroll:!0})),o.createElement("div",{style:{marginTop:n?12:0}},o.createElement(v,{vm:t,isOpenCouponCode:!0,isAddingCoupon:!0,setAddingCoupon:function(){},setCouponError:a,setCouponErrorCode:c,showOnlyMobile:!0,isMobile:m})))})),X=r((function(e){var t=e.vm,r=d().t,i=o.useMemo((function(){switch(t.step){case l.INFO:return o.createElement(p,{vm:t});case l.SHIPPING:return o.createElement(u,{vm:t});case l.PAYMENT:return o.createElement(f,{vm:t});case l.SUCCESS:return o.createElement(x,{vm:t})}}),[t,t.step]),n=[new b(r("checkout-page:address"),t.step===l.INFO,t.step!==l.INFO,t.step!==l.INFO?o.createElement("div",{className:V.AdressStepInfo},o.createElement(K,{vm:t}),!t.isUpsellOrder&&o.createElement("div",{className:V.EditBtn,onClick:t.onBackToInfoClick},r("checkout-page:actions.edit"))):void 0,t.step!==l.INFO?o.createElement("div",{className:V.AddressStepInfoMobile},o.createElement(K,{vm:t})):void 0),new b(r("checkout-page:payment"),t.step===l.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||n.splice(1,0,new b(r("checkout-page:shipping"),t.step===l.SHIPPING,t.step===l.PAYMENT,t.step===l.PAYMENT?o.createElement("div",{className:V.AdressStepInfo},o.createElement(J,{vm:t}),!t.isUpsellOrder&&!t.isManualOrderWithShippingLines&&(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:V.EditBtn,onClick:t.onBackToShippingClick},r("checkout-page:actions.edit"))):void 0,t.step===l.PAYMENT?o.createElement("div",{className:V.AddressStepInfoMobile},o.createElement(J,{vm:t})):void 0)),o.createElement(O,{steps:n,stepContent:i})})),K=r((function(e){var t,r,i,n,a,s,l,c,m,p=e.vm,u=d().t,f=p.isDigitalOnly?((null===(t=p.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(r=p.checkout.billingAddress)||void 0===r?void 0:r.lastName)||""):((null===(i=p.checkout.shippingAddress)||void 0===i?void 0:i.firstName)||"")+" "+((null===(n=p.checkout.shippingAddress)||void 0===n?void 0:n.lastName)||"");return o.createElement("div",{className:V.Address},o.createElement("div",{className:[V.Text,V.WithMBottom].join(" ")},(null===(a=p.checkout.customer)||void 0===a?void 0:a.email)||""),"address"===p.deliveryMethod?o.createElement("div",{className:V.Text},f):o.createElement(o.Fragment,null,o.createElement("div",{className:V.Text},u("checkout-page:receiver")),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},f)),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},p.isDigitalOnly?null===(s=p.checkout.billingAddress)||void 0===s?void 0:s.phone:null===(l=p.checkout.shippingAddress)||void 0===l?void 0:l.phone),"in-store"===p.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[V.Text,V.WithMTop].join(" ")},u("checkout-page:pickUpLocation"))),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},p.isDigitalOnly?null===(c=p.checkout.billingAddress)||void 0===c?void 0:c.addressText:null===(m=p.checkout.shippingAddress)||void 0===m?void 0:m.addressText))})),J=r((function(e){var t=e.vm,r=d().t;return o.createElement("div",{className:V.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:V.LightText}," / "+(0===t.checkout.shippingLines[0].finalPrice?r("checkout-page:free"):m(t.checkout.shippingLines[0].finalPrice,t.checkout.currencyCode,t.checkout.currencySymbol)))):r("checkout-page:standartShipping"))})),Q=r((function(e){var t=e.vm,r=d().t;return o.createElement("div",{className:V.Footer},o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=r("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},r("checkout-page:returnPolicy")),o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=r("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},r("checkout-page:privacyPolicy")),o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=r("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},r("checkout-page:termsOfService")),t.imprint&&o.createElement(o.Fragment,null,o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=r("checkout-page:imprint"),t.policyModalText=t.imprint}},r("checkout-page:imprint"))),t.shippingPolicy&&o.createElement(o.Fragment,null,o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=r("checkout-page:shippingPolicy"),t.policyModalText=t.shippingPolicy}},r("checkout-page:shippingPolicy"))))})),Z=r((function(r){var i,n,a,s=r.vm,l=r.setVisible,c=d().t,m=o.useState(!1),p=m[0],u=m[1],f=o.useState(!1),g=f[0],v=f[1],h=o.useState(new y({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];h.email=(null===(i=s.checkout.customer)||void 0===i?void 0:i.email)||"",h.firstName=(null===(n=s.checkout.customer)||void 0===n?void 0:n.firstName)||"",h.lastName=(null===(a=s.checkout.customer)||void 0===a?void 0:a.lastName)||"";var E=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return g?[2,l(!1)]:(u(!0),[4,h.saveContactForm()]);case 1:return e.sent()&&v(!0),u(!1),[2]}}))}))}),[p]);return o.createElement(k,{title:c("checkout-page:contactForm"),modalContent:o.createElement("div",null,g&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(F,{type:"success",title:c("checkout-page:contactFormSent"),content:c("checkout-page:contactFormDescription")})),o.createElement(T,{type:w.TEXT_AREA,label:"",value:h.message||"",onChange:h.onMessageChange,textAreaPlaceholder:c("checkout-page:contactFormCta")}),o.createElement(I,{style:{width:"100%",marginTop:"24px"},text:c(g?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:p,isDisabled:!h.message,onClick:E})),onClose:function(){return l(!1)}})}));export{Y as default};
1
+ import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import n from"react-tooltip";import a,{CheckoutStep as s}from"./model.js";import{IkasStorefrontConfig as c}from"@ikas/storefront-config";import{formatCurrency as l}from"../../utils/currency.js";import{useTranslation as m}from"../../utils/i18n.js";import d from"./steps/step-info/index.js";import{CheckoutStepShipping as p}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as u}from"./steps/step-payment/index.js";import{CouponErrorCode as f,Coupon as g,CartSummary as v}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as h}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/region/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-form-data-input/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/order/address/region/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/order-transaction-with-prices/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/campaign-offer/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/shipping-zone/state/city/district/region/index.js";import"../../models/data/state/index.js";import"../../models/data/storefront-popup/storefront-popup-display-filter/index.js";import"../../models/data/storefront-popup/storefront-popup-display-settings/index.js";import"../../models/data/storefront-popup/storefront-popup-page-filter/index.js";import"../../models/data/storefront-popup/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as E}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as y}from"./steps/step-success/index.js";import{Modal as x}from"./components/modal/index.js";import k from"./components/master-pass/modal-otp/index.js";import C from"./components/master-pass/modal-response/index.js";import j from"./components/master-pass/modal-success/index.js";import{Image as P}from"../image/index.js";import N,{Step as O}from"./components/step-container/index.js";import{StockError as b}from"./components/error/stock-error/index.js";import{FullscreenLoading as S}from"./components/fullscreen-loading/index.js";import M from"./components/notification-box/index.js";import{FormItem as F}from"./components/form-item/index.js";import{FormItemType as T}from"./components/form-item/model.js";import{Button as w}from"./components/button/index.js";import{IkasPageHead as I}from"../page/head.js";import A from"./components/offer-product/index.js";import L from"./components/offer-product/placeholder-offer-product.js";import B from"./components/svg/ikas.js";import D from"./style.module.scss.js";import{Analytics as V}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import R from"./components/svg/success-circle.js";import U from"./components/offer-product/offer-dots/index.js";import z from"./components/offer-product/offer-arrows/index.js";import _ from"./components/offer-product/useCampaignOffer.js";import H from"../../hooks/useDimension.js";var W=i((function(e){var t,i,l,d,p,u,f,g=e.checkout,E=e.checkoutSettings,N=e.customizationProps,O=e.returnPolicy,M=e.privacyPolicy,F=e.termsOfService,T=e.imprint,A=e.shippingPolicy,U=m().t,z=r(),H=o.useState(Date.now()),W=H[0],X=H[1],K=o.useState((function(){return new a(g,E,z,O,M,F,T,A,U,N||{})}))[0];o.useEffect((function(){X(Date.now())}),[g.campaignOffers,K.campaignOffers,K.isCampaignOfferLoaded]);var ee=_(K),te=ee.setShowDetailPage,oe=ee.isPopupShowIndexPage,ie=ee.isShowSuccessPageMiddlePhase;o.useMemo((function(){return Date.now()}),[]);return K.step,s.PAYMENT,o.useEffect((function(){var e;K.checkoutSettings.isAccountRequired&&!K.checkout.hasCustomer&&z.push("/account/login?redirect="+encodeURIComponent(K.checkoutUrl)),new URLSearchParams(window.location.search).get("step")!==s.SUCCESS&&(K.checkoutSettings.isAccountRequired&&(null===(e=K.checkout.customer)||void 0===e?void 0:e.isGuestCheckout)||V.beginCheckout(K.checkout)),V.pageView(h.CHECKOUT)}),[]),o.useEffect((function(){K.customizationProps=N,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED"),document.documentElement.style.setProperty("--checkout-secondary-button-bg-color",(null==e?void 0:e.secondaryButtonBgColor)||"#ffffff0"),document.documentElement.style.setProperty("--checkout-secondary-button-text-color",(null==e?void 0:e.secondaryButtonTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-button-border-color",(null==e?void 0:e.secondaryButtonBorderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-campaign-title-color",(null==e?void 0:e.campaignOffersTitleColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-description-color",(null==e?void 0:e.campaignOffersDescriptionColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-container-bg-color",(null==e?void 0:e.campaignOffersContainerBgColor)||"#ffffff"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-color",(null==e?void 0:e.campaignOffersDiscountPercentageColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-bg-color",(null==e?void 0:e.campaignOffersDiscountPercentageBgColor)||"#FFF1BD"),document.documentElement.style.setProperty("--checkout-campaign-countdown-text-color",(null==e?void 0:e.campaignOffersCountdownTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-countdown-time-color",(null==e?void 0:e.campaignOffersCountdownTimeColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-campaign-countdown-bg-color",(null==e?void 0:e.campaignOffersCountdownBgColor)||"#FFF5F6"),document.documentElement.style.setProperty("--checkout-campaign-middle-phase-overlay-color",(null==e?void 0:e.campaignOffersMiddlePhaseOverlayColor)||"#292727ad")}(N)}),[N]),o.useEffect((function(){var e=document.querySelector(".ikas-storefront-widget");e&&e.remove()}),[]),K.isCheckoutLoaded&&K.store.customerStore.initialized?K.checkout.hasCustomer&&(null===(t=K.store.customerStore.customer)||void 0===t?void 0:t.id)!==(null===(i=K.checkout.customer)||void 0===i?void 0:i.id)?(z.push("/account/login?redirect="+encodeURIComponent(K.checkoutUrl)),null):o.createElement(o.Fragment,null,o.createElement(I,{pageType:h.CHECKOUT,pageTitle:((null===(l=K.merchantSettings)||void 0===l?void 0:l.merchantName)||"")+" - "+U("checkout-page:securePayment"),pageDescription:U("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:D.CheckoutPage},ie?o.createElement("div",{className:D.FullPageOfferMain},o.createElement("div",{className:D.FullPageOfferContainer},o.createElement("div",{className:D.LogoMain},(null===(d=K.customizationProps)||void 0===d?void 0:d.logo)?o.createElement("div",{className:D.Logo},o.createElement(P,{layout:"fill",image:K.customizationProps.logo,sizes:"360px"})):(null===(p=K.merchantSettings)||void 0===p?void 0:p.logo)?o.createElement("div",{className:D.Logo},o.createElement(P,{layout:"fill",image:K.merchantSettings.logo,sizes:"360px"})):(null===(u=K.merchantSettings)||void 0===u?void 0:u.merchantName)||""),o.createElement("div",{className:D.OfferSuccessInfo},o.createElement("div",null,o.createElement("div",{className:D.OfferSuccessHeader},o.createElement(R,{className:D.SuccessCircle}),o.createElement("span",{className:D.SuccessTitle},U("checkout-page:orderSuccessShortTitle"))),o.createElement("div",{className:D.OfferOrderInfoMain},o.createElement("div",{className:D.InfoTitle},U("checkout-page:orderNoAndDate"),":"),o.createElement("div",{className:D.InfoText},"#"+(K.checkout.orderNumber||"")," ",K.checkout.dateStr))),o.createElement("div",null,o.createElement(w,{classes:D.OfferButton,isLine:!0,text:U("checkout-page:actions.goOrderDetailPage"),onClick:function(){te(!1)}}))),o.createElement("div",null,o.createElement(Z,{vm:K,key:W})))):null,o.createElement(n,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:D.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:[D.Left].join(" ")},o.createElement("div",{className:D.LeftContent},o.createElement("div",null,o.createElement(G,{vm:K}),K.hasStockError&&o.createElement("div",{className:D.ErrorContainer},o.createElement(b,{vm:K,error:K.error})),!K.hasStockError&&o.createElement(o.Fragment,null,K.step!==s.SUCCESS&&o.createElement(v,{vm:K,allowExpand:!0}),K.step===s.SUCCESS?o.createElement(y,{vm:K}):o.createElement(o.Fragment,null,!!(null===(f=K.customizationProps)||void 0===f?void 0:f.showCampaignOffersDesign)&&c.getIsEditor()&&o.createElement(L,{vm:K}),oe&&o.createElement("div",{className:[D.MiddlePhaseOverlay,oe?D.MiddlePhaseOverlayPopup:""].join(" ")}),K.campaignOffers&&!!K.campaignOffers.length&&K.isCampaignOfferLoaded&&o.createElement($,{key:W,vm:K}),K.isCouponCodeRequirementOpen&&o.createElement(q,{vm:K}),o.createElement(Y,{vm:K}))),o.createElement("div",{className:D.Space})),o.createElement(J,{vm:K}))),o.createElement("div",{className:D.Right},o.createElement("div",{className:D.RightContent},o.createElement(v,{vm:K}),!K.isPoweredByHidden&&o.createElement("div",{className:D.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===c.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(B,null))))),!!K.policyModalText&&o.createElement(x,{title:K.policyModalTitle,modalContent:K.policyModalText,onClose:function(){K.policyModalText=""},isPolicyModal:!0}),K.isContactModalVisible&&o.createElement(Q,{vm:K,setVisible:K.setContactModalVisible}),K.mpVM.isOtpModalVisible&&o.createElement(k,{vm:K,visible:K.mpVM.isOtpModalVisible,type:K.mpVM.otpModalType,onClose:K.mpVM.hideOtpModal}),K.mpVM.isResponseModalVisible&&o.createElement(C,{visible:K.mpVM.isResponseModalVisible,text:K.mpVM.mfsResponseModalText,onClose:K.mpVM.onResponseModalClose}),K.mpVM.isSuccessModalVisible&&o.createElement(j,{visible:K.mpVM.isSuccessModalVisible,type:K.mpVM.successModalType,onClose:K.mpVM.onSuccessModalClose}))):o.createElement(S,null)})),G=i((function(e){var t,i,r,n,a=e.vm,s=c.getCurrentRouting(),l=(null==s?void 0:s.path)?"/".concat(s.path):"/",d=m().t;return o.createElement("div",{className:D.Header},o.createElement("a",{href:l},(null===(t=a.customizationProps)||void 0===t?void 0:t.logo)?o.createElement("div",{className:D.Logo},o.createElement(P,{layout:"fill",image:a.customizationProps.logo,sizes:"360px"})):(null===(i=a.merchantSettings)||void 0===i?void 0:i.logo)?o.createElement("div",{className:D.Logo},o.createElement(P,{layout:"fill",image:a.merchantSettings.logo,sizes:"360px"})):(null===(r=a.merchantSettings)||void 0===r?void 0:r.merchantName)||""),!a.checkout.hasCustomer&&!a.isOpenEditOrderWithTransaction&&!a.checkout.edited&&o.createElement("div",{className:D.LoginText},o.createElement("span",{className:D.LoginCta},d("checkout-page:alreadyHaveAnAccount")),o.createElement("a",{href:a.getGoToLoginHref(),className:D.LoginBtn},d("checkout-page:actions.login"))),(a.checkout.hasCustomer||a.isOpenEditOrderWithTransaction||a.checkout.edited)&&o.createElement("div",{className:D.CustomerInfo},o.createElement("div",{className:D.Name},a.checkout.customerFullName),o.createElement("div",{className:D.Email},null===(n=a.checkout.customer)||void 0===n?void 0:n.email)))})),q=i((function(e){var t=e.vm,i=m().t,r=o.useState(!1),n=r[0],a=r[1],s=o.useState(null),c=s[0],l=s[1],d=H().isMobile,p=o.useMemo((function(){switch(c){case f.COUPON_CODE_NOT_EXIST:return i("checkout-page:giftCodeErrorDescription");case f.COUPON_CODE_NOT_EXIST_FOR_GUESS:return i("checkout-page:mustBeSignInToApplyCampaign");case f.COUPON_APPLIED_WITHOUT_DISCOUNT:return i("checkout-page:couponInvalidForCartItems");default:return""}}),[c]);return o.createElement("div",{className:D.CouponContainer},n&&o.createElement("div",{className:D.NotificationContainer},o.createElement(M,{type:"warning",title:i("checkout-page:giftCodeErrorTitle"),content:p,onClose:function(){a(!1),l(null)},ignoreScroll:!0})),o.createElement("div",{style:{marginTop:n?12:0}},o.createElement(g,{vm:t,isOpenCouponCode:!0,isAddingCoupon:!0,setAddingCoupon:function(){},setCouponError:a,setCouponErrorCode:l,showOnlyMobile:!0,isMobile:d})))})),Y=i((function(e){var t=e.vm,i=m().t,r=o.useMemo((function(){switch(t.step){case s.INFO:return o.createElement(d,{vm:t});case s.SHIPPING:return o.createElement(p,{vm:t});case s.PAYMENT:return o.createElement(u,{vm:t});case s.SUCCESS:return o.createElement(y,{vm:t})}}),[t,t.step]),n=H().isMobile,a=[new O(i("checkout-page:address"),t.step===s.INFO,t.step!==s.INFO,t.step!==s.INFO?o.createElement("div",{className:D.AdressStepInfo},o.createElement(X,{vm:t}),!(t.isUpsellOrder||t.isOpenEditOrderWithTransaction)&&o.createElement("div",{className:D.EditBtn,onClick:t.onBackToInfoClick},i("checkout-page:actions.edit"))):void 0,t.step!==s.INFO?o.createElement("div",{className:D.AddressStepInfoMobile},o.createElement(X,{vm:t})):void 0),new O(i("checkout-page:payment"),t.step===s.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||a.splice(1,0,new O(i("checkout-page:shipping"),t.step===s.SHIPPING,t.step===s.PAYMENT,t.step===s.PAYMENT?o.createElement("div",{className:D.AdressStepInfo},o.createElement(K,{vm:t}),!(t.isUpsellOrder||t.isOpenEditOrderWithTransaction)&&!t.isManualOrderWithShippingLines&&(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:D.EditBtn,onClick:t.onBackToShippingClick},i("checkout-page:actions.edit"))):void 0,t.step===s.PAYMENT?o.createElement("div",{className:D.AddressStepInfoMobile},o.createElement(K,{vm:t})):void 0)),o.createElement(N,{steps:a,stepContent:r,step:t.step,hasTopMargin:t.isCouponCodeRequirementOpen||t.campaignOffers&&!!t.campaignOffers.length&&t.isCampaignOfferLoaded,vm:t,isMobile:n})})),X=i((function(e){var t,i,r,n,a,s,c,l,d,p=e.vm,u=m().t,f=p.isDigitalOnly?((null===(t=p.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(i=p.checkout.billingAddress)||void 0===i?void 0:i.lastName)||""):((null===(r=p.checkout.shippingAddress)||void 0===r?void 0:r.firstName)||"")+" "+((null===(n=p.checkout.shippingAddress)||void 0===n?void 0:n.lastName)||"");return o.createElement("div",{className:D.Address},o.createElement("div",{className:[D.Text,D.WithMBottom].join(" ")},(null===(a=p.checkout.customer)||void 0===a?void 0:a.email)||""),"address"===p.deliveryMethod?o.createElement("div",{className:D.Text},f):o.createElement(o.Fragment,null,o.createElement("div",{className:D.Text},u("checkout-page:receiver")),o.createElement("div",{className:[D.Text,D.Gray].join(" ")},f)),o.createElement("div",{className:[D.Text,D.Gray].join(" ")},p.isDigitalOnly?null===(s=p.checkout.billingAddress)||void 0===s?void 0:s.phone:null===(c=p.checkout.shippingAddress)||void 0===c?void 0:c.phone),"in-store"===p.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[D.Text,D.WithMTop].join(" ")},u("checkout-page:pickUpLocation"))),o.createElement("div",{className:[D.Text,D.Gray].join(" ")},p.isDigitalOnly?null===(l=p.checkout.billingAddress)||void 0===l?void 0:l.addressText:null===(d=p.checkout.shippingAddress)||void 0===d?void 0:d.addressText))})),K=i((function(e){var t=e.vm,i=m().t;return o.createElement("div",{className:D.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:D.LightText}," / "+(0===t.checkout.shippingLines[0].finalPrice?i("checkout-page:free"):l(t.checkout.shippingLines[0].finalPrice,t.checkout.currencyCode,t.checkout.currencySymbol)))):i("checkout-page:standartShipping"))})),J=i((function(e){var t=e.vm,i=m().t;return o.createElement("div",{className:D.Footer},o.createElement("div",{className:D.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},i("checkout-page:returnPolicy")),o.createElement("div",{className:D.FooterBullet},"•"),o.createElement("div",{className:D.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},i("checkout-page:privacyPolicy")),o.createElement("div",{className:D.FooterBullet},"•"),o.createElement("div",{className:D.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},i("checkout-page:termsOfService")),t.imprint&&o.createElement(o.Fragment,null,o.createElement("div",{className:D.FooterBullet},"•"),o.createElement("div",{className:D.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:imprint"),t.policyModalText=t.imprint}},i("checkout-page:imprint"))),t.shippingPolicy&&o.createElement(o.Fragment,null,o.createElement("div",{className:D.FooterBullet},"•"),o.createElement("div",{className:D.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:shippingPolicy"),t.policyModalText=t.shippingPolicy}},i("checkout-page:shippingPolicy"))))})),Q=i((function(i){var r,n,a,s=i.vm,c=i.setVisible,l=m().t,d=o.useState(!1),p=d[0],u=d[1],f=o.useState(!1),g=f[0],v=f[1],h=o.useState(new E({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];h.email=(null===(r=s.checkout.customer)||void 0===r?void 0:r.email)||"",h.firstName=(null===(n=s.checkout.customer)||void 0===n?void 0:n.firstName)||"",h.lastName=(null===(a=s.checkout.customer)||void 0===a?void 0:a.lastName)||"";var y=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return g?[2,c(!1)]:(u(!0),[4,h.saveContactForm()]);case 1:return e.sent()&&v(!0),u(!1),[2]}}))}))}),[p]);return o.createElement(x,{title:l("checkout-page:contactForm"),modalContent:o.createElement("div",null,g&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(M,{type:"success",title:l("checkout-page:contactFormSent"),content:l("checkout-page:contactFormDescription")})),o.createElement(F,{name:"message",type:T.TEXT_AREA,label:"",value:h.message||"",onChange:h.onMessageChange,textAreaPlaceholder:l("checkout-page:contactFormCta")}),o.createElement(w,{style:{width:"100%",marginTop:"24px"},text:l(g?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:p,isDisabled:!h.message,onClick:y})),onClose:function(){return c(!1)}})})),Z=i((function(e){var t=e.vm,i=_(t),r=i.setActiveIndex,n=i.handlePrev,a=i.handleNext,s=i.activeIndex;return t.campaignOffers&&t.campaignOffers.length&&t.isCampaignOfferLoaded?o.createElement("div",{className:D.CampaignOfferMain},o.createElement("div",{className:D.OfferSlider},t.campaignOffers.map((function(e,i){var c;return o.createElement(A,{vm:t,campaignOffer:e,index:i,activeIndex:s,offersLength:(null===(c=t.campaignOffers)||void 0===c?void 0:c.length)||0,handlePrev:n,handleNext:a,setActiveIndex:function(e){return r(e)},desktopMiddlePhase:!0,step:t.step})}))),t.campaignOffers.length>1&&o.createElement(z,{handlePrev:n,handleNext:a}),t.campaignOffers.length>1&&o.createElement(U,{vm:t,activeIndex:s})):null})),$=i((function(e){var t=e.vm,i=_(t),r=i.setActiveIndex,n=i.setIsActiveOverlay,a=i.handlePrev,s=i.handleNext,c=i.isPopupClosedIndexPage,l=i.isPopupShowIndexPage,m=i.activeIndex;return t.campaignOffers&&t.campaignOffers.length&&t.isCampaignOfferLoaded?o.createElement("div",{className:[D.CampaignOfferMain,l?D.OverlayPopupMain:""].join(" ")},o.createElement("div",{className:D.OfferSlider},t.campaignOffers.map((function(e,i){var d;return o.createElement(A,{vm:t,campaignOffer:e,index:i,activeIndex:m,offersLength:(null===(d=t.campaignOffers)||void 0===d?void 0:d.length)||0,handlePrev:a,handleNext:s,setActiveIndex:function(e){return r(e)},step:t.step,isPopupClosed:c,isPopupShow:l,closePopup:function(){return n(!1)},showPopup:function(){return n(!0)}})}))),t.campaignOffers.length>1&&o.createElement(z,{handlePrev:a,handleNext:s}),t.campaignOffers.length>1&&o.createElement(U,{isPopupShow:l,vm:t,activeIndex:m})):null}));export{W as default};