@ikas/storefront 6.1.0-beta.388 → 6.1.0-beta.389

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 (28) hide show
  1. package/build/components/checkout/components/cart-summary/index.d.ts +0 -7
  2. package/build/components/checkout/components/cart-summary/index.js +1 -1
  3. package/build/components/checkout/components/cart-summary/loyalty/icons.d.ts +4 -0
  4. package/build/components/checkout/components/cart-summary/loyalty/icons.js +1 -0
  5. package/build/components/checkout/components/cart-summary/loyalty/index.d.ts +13 -0
  6. package/build/components/checkout/components/cart-summary/loyalty/index.js +1 -0
  7. package/build/components/checkout/components/cart-summary/loyalty/style.module.scss.js +1 -0
  8. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  9. package/build/components/checkout/components/step-container/index.js +1 -1
  10. package/build/components/checkout/components/svg/star-loyalty.js +1 -1
  11. package/build/components/checkout/components/tkpay/index.js +1 -1
  12. package/build/components/checkout/index.d.ts +1 -0
  13. package/build/components/checkout/index.js +1 -1
  14. package/build/components/checkout/model.d.ts +36 -3
  15. package/build/components/checkout/model.js +1 -1
  16. package/build/components/checkout/steps/step-payment/index.js +1 -1
  17. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  18. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/index.js +1 -1
  19. package/build/components/checkout/steps/step-payment/payment-gateways/miles-smiles/style.module.scss.js +1 -1
  20. package/build/models/data/theme-json/index.js +1 -1
  21. package/build/pages/checkout.js +1 -1
  22. package/package.json +11 -11
  23. package/build/components/checkout/components/svg/arrow-loyalty.d.ts +0 -6
  24. package/build/components/checkout/components/svg/arrow-loyalty.js +0 -1
  25. package/build/components/checkout/components/svg/arrow-right-loyalty.d.ts +0 -6
  26. package/build/components/checkout/components/svg/arrow-right-loyalty.js +0 -1
  27. package/build/components/checkout/components/svg/left-arrow-loyalty.d.ts +0 -6
  28. package/build/components/checkout/components/svg/left-arrow-loyalty.js +0 -1
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";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{IkasPaymentMethodType as a,IkasPaymentGatewayTransactionFeeType as n,IkasPaymentGatewayAdditionalPriceType as o,IkasPaymentGatewayType as i}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-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{CreditCardForm as r}from"../../../components/credit-card-form/index.js";import{SecureCardForm as c}from"../../../components/secure-card-form/index.js";import{Installments as l}from"./installments/index.js";import m from"../../../components/select-box/index.js";import d from"./style.module.scss.js";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";import{formatCurrency as y}from"../../../../../utils/currency.js";import{createTranslationInputData as p,useTranslation as u}from"../../../../../utils/i18n.js";import v from"../../../components/svg/external.js";import P from"next/dynamic";import E from"../../../components/credit-card-form/model.js";import f from"../../../components/master-pass/credit-card-form/index.js";import{Toggle as x}from"../../../components/toggle/index.js";import g from"../../../components/select-box/style.module.scss.js";import C from"../../../components/master-pass/payment-gateway/svg/master-card.js";import k from"../../../components/master-pass/payment-gateway/svg/troy.js";import h from"../../../components/master-pass/payment-gateway/svg/visa.js";import{Checkbox as j}from"../../../components/checkbox/index.js";import w from"../../../components/svg/info.js";var G=P((function(){return import("../../../components/stripe/index.js").then((function(e){return e.default}))})),T=P((function(){return import("../../../components/adyen/index.js").then((function(e){return e.Adyen}))})),N=P((function(){return import("../../../components/klarna/index.js").then((function(e){return e.Klarna}))})),I=P((function(){return import("../../../components/hepsipay/index.js").then((function(e){return e.HepsiPay}))})),S=P((function(){return import("../../../components/iyzico/index.js").then((function(e){return e.Iyzico}))})),b=P((function(){return import("../../../components/tkpay/index.js").then((function(e){return e.TkPay}))})),M=t((function(P){var M=P.vm,A=u().t,B=function(t){return e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap"}},t.children)},R=function(t){return e.createElement("div",{className:d.AdditionalPrice},t.children)},V=function(e){return 0===e.amount?"":"".concat(e.amountType===n.AMOUNT?y(e.amount,M.checkout.currencyCode,M.checkout.currencySymbol):" %"+e.amount).concat(e.type===o.DECREMENT?" "+A("checkout-page:paymentMethodDiscount"):" "+A("checkout-page:paymentMethodAdditionalPrice"))},z=function(e){return"STRIPE"===e.code||"STRIPE_EU"===e.code},D=function(){var t,a=M.selectedPaymentGatewayIndex===M.klarnaPaymentGatewayIndex;return M.klarnaPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(a?g.Selected:""),onClick:function(){M.setPaymentGateway(M.klarnaPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent},e.createElement(x,{value:a,label:M.klarnaPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:g.RightContent},(null===(t=M.klarnaPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(R,null,V(M.klarnaPaymentGateway.additionalPrices[0])):e.createElement(B,null,!!M.klarnaPaymentGateway.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:M.klarnaPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(a?g.BottomContent:""," ").concat(a?"":d.Hidden)},e.createElement(N,{vm:M}),M.klarnaError&&e.createElement("div",{className:d.ErrorMessage},M.klarnaError.data)))):null},L=function(){var t,a=M.selectedPaymentGatewayIndex===M.hepsiPayPaymentGatewayIndex;return M.hepsiPayPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(a?g.Selected:""),onClick:function(){M.setPaymentGateway(M.hepsiPayPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent},e.createElement(x,{value:a,label:"Kredi / Banka Kartı - Hepsipay",removePadding:!0}),e.createElement("div",{className:g.RightContent},(null===(t=M.hepsiPayPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(R,null,V(M.hepsiPayPaymentGateway.additionalPrices[0])):e.createElement(B,null,!!M.hepsiPayPaymentGateway.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:M.hepsiPayPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(a?g.BottomContent:""," ").concat(a?"":d.Hidden)},e.createElement(I,{vm:M})))):null},U=function(){var t=M.selectedPaymentGatewayIndex===M.adyenPaymentGatewayIndex;return M.adyenPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(g.AdyenSelectBox),onClick:function(){M.setPaymentGateway(M.adyenPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent}),e.createElement("div",{className:"".concat(t?g.BottomContent:""," "),style:{paddingTop:0}},e.createElement(T,{vm:M,isSelected:t})))):null},_=function(){var t,a=M.selectedPaymentGatewayIndex===M.payPalPaymentGatewayIndex;return M.payPalPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(a?g.Selected:""),onClick:function(){M.setPaymentGateway(M.payPalPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent},e.createElement(x,{value:a,label:M.payPalPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:g.RightContent},(null===(t=M.payPalPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(R,null,V(M.payPalPaymentGateway.additionalPrices[0])):e.createElement(B,null,!!M.payPalPaymentGateway.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:M.payPalPaymentGateway.logoUrl}))))))):null},O=t((function(t){var a,n=t.vm;e.useEffect((function(){n.isTermsAndConditionsChecked&&n.setShowIyzicoContainer(!0)}),[n.isTermsAndConditionsChecked]);var o=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:privacyPolicy"),n.policyModalText=n.privacyPolicy}),[n,n.privacyPolicy]),i=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:termsOfService"),n.policyModalText=n.termsOfService}),[n,n.termsOfService]),r=s.getTranslations()["checkout-page"],c=p(r.ackPoliciesSentence).map((function(t){return t.isVariable?e.createElement("span",{className:[d.TermsLabelSpan,n.isErrorsVisible&&!n.isTermsAndConditionsChecked?d.Error:""].join(" "),onClick:"{{ ackPrivacyPolicy }}"===t.value?o:i},"{{ ackPrivacyPolicy }}"===t.value?A("checkout-page:ackPrivacyPolicy"):A("checkout-page:ackTermsOfService")):t.value})),l=n.selectedPaymentGatewayIndex===n.iyzicoPaymentGatewayIndex;return n.iyzicoPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(l?g.Selected:""," ").concat(d.IyzicoBottomContent),onClick:function(){n.setPaymentGateway(n.iyzicoPaymentGatewayIndex),n.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent},e.createElement(x,{value:l,label:A("checkout-page:creditCard"),removePadding:!0}),e.createElement("div",{className:g.RightContent},(null===(a=n.iyzicoPaymentGateway.additionalPrices)||void 0===a?void 0:a.length)?e.createElement(R,null,V(n.iyzicoPaymentGateway.additionalPrices[0])):e.createElement(B,null,!!n.iyzicoPaymentGateway.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:n.iyzicoPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(l?g.BottomContent:""," ").concat(l?"":d.Hidden," ")},e.createElement("div",{className:d.IyzicoCheckboxContainer},e.createElement(j,{value:n.isTermsAndConditionsChecked,hasError:n.isErrorsVisible&&!n.isTermsAndConditionsChecked,label:e.createElement(e.Fragment,null,c),removePadding:!0,onChange:n.onTermsAndConditionsCheckedChange})),!n.isTermsAndConditionsChecked&&e.createElement("div",{className:[d.IyzicoDescription,n.iyzicoResponse?d.WithBottomMargin:""].join(" ")},e.createElement(w,null),A("checkout-page:iyzicoDescription")),n.iyzicoResponse&&e.createElement(S,{vm:n})))):null})),H=t((function(t){var a,n=t.vm;e.useEffect((function(){n.isTermsAndConditionsChecked&&n.setShowTkPayContainer(!0)}),[n.isTermsAndConditionsChecked]);var o=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:privacyPolicy"),n.policyModalText=n.privacyPolicy}),[n,n.privacyPolicy]),i=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:termsOfService"),n.policyModalText=n.termsOfService}),[n,n.termsOfService]),r=s.getTranslations()["checkout-page"],c=p(r.ackPoliciesSentence).map((function(t){return t.isVariable?e.createElement("span",{className:[d.TermsLabelSpan,n.isErrorsVisible&&!n.isTermsAndConditionsChecked?d.Error:""].join(" "),onClick:"{{ ackPrivacyPolicy }}"===t.value?o:i},"{{ ackPrivacyPolicy }}"===t.value?A("checkout-page:ackPrivacyPolicy"):A("checkout-page:ackTermsOfService")):t.value})),l=n.selectedPaymentGatewayIndex===n.tkPayPaymentGatewayIndex;return n.tkPayPaymentGateway?e.createElement("div",{className:g.SelectBoxContainer},e.createElement("div",{className:"".concat(g.SelectBox," ").concat(l?g.Selected:""," ").concat(d.TkPayBottomContent),onClick:function(){n.setPaymentGateway(n.tkPayPaymentGatewayIndex),n.mpVM.selectedCard=void 0}},e.createElement("div",{className:g.TopContent},e.createElement(x,{value:l,label:n.tkPayPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:g.RightContent},(null===(a=n.tkPayPaymentGateway.additionalPrices)||void 0===a?void 0:a.length)?e.createElement(R,null,V(n.tkPayPaymentGateway.additionalPrices[0])):e.createElement(B,null,!!n.tkPayPaymentGateway.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:n.tkPayPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(l?g.BottomContent:""," ").concat(l?"":d.Hidden," ")},e.createElement("div",{className:d.TkPayCheckboxContainer},e.createElement(j,{value:n.isTermsAndConditionsChecked,hasError:n.isErrorsVisible&&!n.isTermsAndConditionsChecked,label:e.createElement(e.Fragment,null,c),removePadding:!0,onChange:n.onTermsAndConditionsCheckedChange})),!n.isTermsAndConditionsChecked&&e.createElement("div",{className:[d.TkPayDescription,n.tkPayResponse?d.WithBottomMargin:""].join(" ")},e.createElement(w,null),A("checkout-page:tkPayDescription")),n.tkPayResponse&&e.createElement(b,{vm:n})))):null}));return e.createElement(e.Fragment,null,!!M.mpVM.cards.length&&M.mpVM.cards.map((function(t,n){var o,r=M.paymentGateways.find((function(e){return e.id===t.paymentGatewayId})),c=e.createElement("button",{className:d.MasterPassSelectBoxDeleteButton,onClick:function(e){e.stopPropagation(),M.mpVM.deleteCard({store:M.store,checkout:M.checkout,card:t})}},A("checkout-page:masterPass.paymentGatewaySelectBox.delete")),s=function(e){return t.Value1.startsWith(e)},y=s("4"),p=s("5")||s("6"),u=s("9"),v=e.createElement("div",{style:{display:"flex",alignItems:"center"}},e.createElement("span",{className:d.MasterPassSelectBoxLabelLogo},y&&e.createElement(h,null),p&&e.createElement(C,null),u&&e.createElement(k,null)),t.Name," ",t.Value1),P=(null==r?void 0:r.id)&&r.paymentMethodType===a.CREDIT_CARD&&r.type===i.INTERNAL?M.installmentInfo&&e.createElement(l,{vm:M}):void 0;return e.createElement(m,{key:n,isSelected:(null===(o=M.mpVM.selectedCard)||void 0===o?void 0:o.UniqueId)===t.UniqueId,label:v,rightContent:c,bottomContent:P,onClick:function(){var e;(null===(e=M.mpVM.selectedCard)||void 0===e?void 0:e.UniqueId)!==t.UniqueId&&(M.checkout.selectedPaymentGateway=null,M.cardData=new E,M.secureCard.reset(),M.installmentInfo=void 0,M.mpVM.selectedCard=t,t.Value1&&t.paymentGatewayId&&M.checkout.totalFinalPrice&&M.retrieveInstallmentInfo({input:{orderId:M.checkout.id,binNumber:t.Value1.slice(0,8),paymentGatewayId:t.paymentGatewayId,price:M.checkout.totalFinalPrice,currencyCode:M.checkout.currencyCode}}))}})})),M.paymentGateways.filter((function(e){return"in-store"!==M.deliveryMethod&&!M.isDigitalOnly||e.paymentMethodType!==a.CASH_ON_DELIVERY&&e.paymentMethodType!==a.CREDIT_CARD_ON_DELIVERY})).map((function(t,n){var o,s;if(M.useMilesSmiles&&t.id!==(null===(o=M.milesSmilesPaymentGateway)||void 0===o?void 0:o.id))return null;if(function(e){return"KLARNA"===e.code}(t)&&M.klarnaPaymentGateway)return D();if(function(e){return"ADYEN_PLATFORM"===e.code}(t)&&M.adyenPaymentGateway)return U();if(function(e){return"PAYPAL"===e.code}(t)&&M.payPalPaymentGateway)return _();if(function(e){return"HEPSIPAY"===e.code}(t)&&M.hepsiPayPaymentGateway)return L();if(function(e){return"IYZICO"===e.code}(t)&&M.iyzicoPaymentGateway)return e.createElement(O,{vm:M,key:t.id});if(function(e){var t,a;return"TK_PAY"===e.code&&"true"===(null===(a=null===(t=e.settings)||void 0===t?void 0:t.find((function(e){return"tkpay_use_checkout_form"===e.label})))||void 0===a?void 0:a.value)}(t)&&M.tkPayPaymentGateway)return e.createElement(H,{vm:M,key:t.id});var y=t.paymentMethodType===a.CREDIT_CARD&&t.type===i.INTERNAL?e.createElement(e.Fragment,null,z(t)?e.createElement(e.Fragment,null,e.createElement(G,{vm:M,pg:t}),M.stripeError&&e.createElement("div",{className:d.ErrorMessage},M.stripeError.data)):e.createElement("div",null,M.isSecureCardEnabled?e.createElement(c,{vm:M}):e.createElement(r,{vm:M}),M.isPaymentGatewayHasMasterPass&&e.createElement(f,{vm:M}),M.installmentInfo&&e.createElement(l,{vm:M}))):t.description?e.createElement(e.Fragment,null,t.type===i.EXTERNAL&&e.createElement("div",{style:{height:"52px",display:"flex",justifyContent:"center",margin:"24px 0"}},e.createElement(v,null)),e.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})):void 0;return e.createElement(m,{key:t.id,label:t.paymentMethodType===a.CREDIT_CARD&&t.type===i.INTERNAL?z(t)?t.name:A("checkout-page:creditCard"):t.name,isSelected:M.selectedPaymentGatewayIndex===n,rightContent:(null===(s=t.additionalPrices)||void 0===s?void 0:s.length)?e.createElement(R,null,V(t.additionalPrices[0])):e.createElement(B,null,!!t.logoUrl&&e.createElement("div",{className:d.PaymentLogoContainer},e.createElement("img",{src:t.logoUrl}))),bottomContent:y,keepBottomContentMounted:M.isSecureCardEnabled&&t.id===M.secureCardGatewayId,onClick:function(){M.selectedPaymentGatewayIndex!==n&&(M.setPaymentGateway(n),M.mpVM.selectedCard=void 0)}})})))}));export{M as PaymentGateways};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";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{IkasPaymentMethodType as a,IkasPaymentGatewayTransactionFeeType as n,IkasPaymentGatewayAdditionalPriceType as o,IkasPaymentGatewayType as i}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-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{CreditCardForm as r}from"../../../components/credit-card-form/index.js";import{SecureCardForm as c}from"../../../components/secure-card-form/index.js";import{Installments as l}from"./installments/index.js";import m from"../../../components/select-box/index.js";import s from"./style.module.scss.js";import{IkasStorefrontConfig as d}from"@ikas/storefront-config";import{formatCurrency as y}from"../../../../../utils/currency.js";import{createTranslationInputData as p,useTranslation as u}from"../../../../../utils/i18n.js";import v from"../../../components/svg/external.js";import P from"next/dynamic";import E from"../../../components/credit-card-form/model.js";import f from"../../../components/master-pass/credit-card-form/index.js";import{Toggle as g}from"../../../components/toggle/index.js";import x from"../../../components/select-box/style.module.scss.js";import C from"../../../components/master-pass/payment-gateway/svg/master-card.js";import k from"../../../components/master-pass/payment-gateway/svg/troy.js";import h from"../../../components/master-pass/payment-gateway/svg/visa.js";import{Checkbox as j}from"../../../components/checkbox/index.js";import w from"../../../components/svg/info.js";var G=P((function(){return import("../../../components/stripe/index.js").then((function(e){return e.default}))})),T=P((function(){return import("../../../components/adyen/index.js").then((function(e){return e.Adyen}))})),N=P((function(){return import("../../../components/klarna/index.js").then((function(e){return e.Klarna}))})),I=P((function(){return import("../../../components/hepsipay/index.js").then((function(e){return e.HepsiPay}))})),S=P((function(){return import("../../../components/iyzico/index.js").then((function(e){return e.Iyzico}))})),b=P((function(){return import("../../../components/tkpay/index.js").then((function(e){return e.TkPay}))})),M=t((function(P){var M=P.vm,A=u().t,R=function(t){return e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexWrap:"wrap"}},t.children)},B=function(t){return e.createElement("div",{className:s.AdditionalPrice},t.children)},V=function(e){return 0===e.amount?"":"".concat(e.amountType===n.AMOUNT?y(e.amount,M.checkout.currencyCode,M.checkout.currencySymbol):" %"+e.amount).concat(e.type===o.DECREMENT?" "+A("checkout-page:paymentMethodDiscount"):" "+A("checkout-page:paymentMethodAdditionalPrice"))},D=function(e){return"STRIPE"===e.code||"STRIPE_EU"===e.code},z=function(){var t,a=M.selectedPaymentGatewayIndex===M.klarnaPaymentGatewayIndex;return M.klarnaPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(a?x.Selected:""),onClick:function(){M.setPaymentGateway(M.klarnaPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent},e.createElement(g,{value:a,label:M.klarnaPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:x.RightContent},(null===(t=M.klarnaPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(B,null,V(M.klarnaPaymentGateway.additionalPrices[0])):e.createElement(R,null,!!M.klarnaPaymentGateway.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:M.klarnaPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(a?x.BottomContent:""," ").concat(a?"":s.Hidden)},e.createElement(N,{vm:M}),M.klarnaError&&e.createElement("div",{className:s.ErrorMessage},M.klarnaError.data)))):null},L=function(){var t,a=M.selectedPaymentGatewayIndex===M.hepsiPayPaymentGatewayIndex;return M.hepsiPayPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(a?x.Selected:""),onClick:function(){M.setPaymentGateway(M.hepsiPayPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent},e.createElement(g,{value:a,label:"Kredi / Banka Kartı - Hepsipay",removePadding:!0}),e.createElement("div",{className:x.RightContent},(null===(t=M.hepsiPayPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(B,null,V(M.hepsiPayPaymentGateway.additionalPrices[0])):e.createElement(R,null,!!M.hepsiPayPaymentGateway.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:M.hepsiPayPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(a?x.BottomContent:""," ").concat(a?"":s.Hidden)},e.createElement(I,{vm:M})))):null},U=function(){var t=M.selectedPaymentGatewayIndex===M.adyenPaymentGatewayIndex;return M.adyenPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(x.AdyenSelectBox),onClick:function(){M.setPaymentGateway(M.adyenPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent}),e.createElement("div",{className:"".concat(t?x.BottomContent:""," "),style:{paddingTop:0}},e.createElement(T,{vm:M,isSelected:t})))):null},_=function(){var t,a=M.selectedPaymentGatewayIndex===M.payPalPaymentGatewayIndex;return M.payPalPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(a?x.Selected:""),onClick:function(){M.setPaymentGateway(M.payPalPaymentGatewayIndex),M.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent},e.createElement(g,{value:a,label:M.payPalPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:x.RightContent},(null===(t=M.payPalPaymentGateway.additionalPrices)||void 0===t?void 0:t.length)?e.createElement(B,null,V(M.payPalPaymentGateway.additionalPrices[0])):e.createElement(R,null,!!M.payPalPaymentGateway.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:M.payPalPaymentGateway.logoUrl}))))))):null},O=t((function(t){var a,n=t.vm;e.useEffect((function(){n.isTermsAndConditionsChecked&&n.setShowIyzicoContainer(!0)}),[n.isTermsAndConditionsChecked]);var o=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:privacyPolicy"),n.policyModalText=n.privacyPolicy}),[n,n.privacyPolicy]),i=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:termsOfService"),n.policyModalText=n.termsOfService}),[n,n.termsOfService]),r=d.getTranslations()["checkout-page"],c=p(r.ackPoliciesSentence).map((function(t){return t.isVariable?e.createElement("span",{className:[s.TermsLabelSpan,n.isErrorsVisible&&!n.isTermsAndConditionsChecked?s.Error:""].join(" "),onClick:"{{ ackPrivacyPolicy }}"===t.value?o:i},"{{ ackPrivacyPolicy }}"===t.value?A("checkout-page:ackPrivacyPolicy"):A("checkout-page:ackTermsOfService")):t.value})),l=n.selectedPaymentGatewayIndex===n.iyzicoPaymentGatewayIndex;return n.iyzicoPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(l?x.Selected:""," ").concat(s.IyzicoBottomContent),onClick:function(){n.setPaymentGateway(n.iyzicoPaymentGatewayIndex),n.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent},e.createElement(g,{value:l,label:A("checkout-page:creditCard"),removePadding:!0}),e.createElement("div",{className:x.RightContent},(null===(a=n.iyzicoPaymentGateway.additionalPrices)||void 0===a?void 0:a.length)?e.createElement(B,null,V(n.iyzicoPaymentGateway.additionalPrices[0])):e.createElement(R,null,!!n.iyzicoPaymentGateway.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:n.iyzicoPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(l?x.BottomContent:""," ").concat(l?"":s.Hidden," ")},e.createElement("div",{className:s.IyzicoCheckboxContainer},e.createElement(j,{value:n.isTermsAndConditionsChecked,hasError:n.isErrorsVisible&&!n.isTermsAndConditionsChecked,label:e.createElement(e.Fragment,null,c),removePadding:!0,onChange:n.onTermsAndConditionsCheckedChange})),!n.isTermsAndConditionsChecked&&e.createElement("div",{className:[s.IyzicoDescription,n.iyzicoResponse?s.WithBottomMargin:""].join(" ")},e.createElement(w,null),A("checkout-page:iyzicoDescription")),n.iyzicoResponse&&e.createElement(S,{vm:n})))):null})),H=t((function(t){var a,n=t.vm;e.useEffect((function(){n.isTermsAndConditionsChecked&&n.setShowTkPayContainer(!0)}),[n.isTermsAndConditionsChecked]);var o=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:privacyPolicy"),n.policyModalText=n.privacyPolicy}),[n,n.privacyPolicy]),i=e.useCallback((function(e){e.stopPropagation(),n.policyModalTitle=A("checkout-page:termsOfService"),n.policyModalText=n.termsOfService}),[n,n.termsOfService]),r=d.getTranslations()["checkout-page"],c=p(r.ackPoliciesSentence).map((function(t){return t.isVariable?e.createElement("span",{className:[s.TermsLabelSpan,n.isErrorsVisible&&!n.isTermsAndConditionsChecked?s.Error:""].join(" "),onClick:"{{ ackPrivacyPolicy }}"===t.value?o:i},"{{ ackPrivacyPolicy }}"===t.value?A("checkout-page:ackPrivacyPolicy"):A("checkout-page:ackTermsOfService")):t.value})),l=n.selectedPaymentGatewayIndex===n.tkPayPaymentGatewayIndex;return n.tkPayPaymentGateway?e.createElement("div",{className:x.SelectBoxContainer},e.createElement("div",{className:"".concat(x.SelectBox," ").concat(l?x.Selected:""," ").concat(s.TkPayBottomContent),onClick:function(){n.setPaymentGateway(n.tkPayPaymentGatewayIndex),n.mpVM.selectedCard=void 0}},e.createElement("div",{className:x.TopContent},e.createElement(g,{value:l,label:n.tkPayPaymentGateway.name,removePadding:!0}),e.createElement("div",{className:x.RightContent},(null===(a=n.tkPayPaymentGateway.additionalPrices)||void 0===a?void 0:a.length)?e.createElement(B,null,V(n.tkPayPaymentGateway.additionalPrices[0])):e.createElement(R,null,!!n.tkPayPaymentGateway.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:n.tkPayPaymentGateway.logoUrl}))))),e.createElement("div",{className:"".concat(l?x.BottomContent:""," ").concat(l?"":s.Hidden," ")},e.createElement("div",{className:s.TkPayCheckboxContainer},e.createElement(j,{value:n.isTermsAndConditionsChecked,hasError:n.isErrorsVisible&&!n.isTermsAndConditionsChecked,label:e.createElement(e.Fragment,null,c),removePadding:!0,onChange:n.onTermsAndConditionsCheckedChange})),!n.isTermsAndConditionsChecked&&e.createElement("div",{className:[s.TkPayDescription,n.tkPayResponse?s.WithBottomMargin:""].join(" ")},e.createElement(w,null),A("checkout-page:tkPayDescription")),n.isTermsAndConditionsChecked&&n.isMilesSmilesTermsMissing&&e.createElement("div",{className:s.TkPayDescription},e.createElement(w,null),A("checkout-page:milesSmilesTermsRequiredError")),n.tkPayResponse&&!n.isMilesSmilesTermsMissing&&e.createElement(b,{vm:n})))):null}));return e.createElement(e.Fragment,null,!!M.mpVM.cards.length&&M.mpVM.cards.map((function(t,n){var o,r=M.paymentGateways.find((function(e){return e.id===t.paymentGatewayId})),c=e.createElement("button",{className:s.MasterPassSelectBoxDeleteButton,onClick:function(e){e.stopPropagation(),M.mpVM.deleteCard({store:M.store,checkout:M.checkout,card:t})}},A("checkout-page:masterPass.paymentGatewaySelectBox.delete")),d=function(e){return t.Value1.startsWith(e)},y=d("4"),p=d("5")||d("6"),u=d("9"),v=e.createElement("div",{style:{display:"flex",alignItems:"center"}},e.createElement("span",{className:s.MasterPassSelectBoxLabelLogo},y&&e.createElement(h,null),p&&e.createElement(C,null),u&&e.createElement(k,null)),t.Name," ",t.Value1),P=(null==r?void 0:r.id)&&r.paymentMethodType===a.CREDIT_CARD&&r.type===i.INTERNAL?M.installmentInfo&&e.createElement(l,{vm:M}):void 0;return e.createElement(m,{key:n,isSelected:(null===(o=M.mpVM.selectedCard)||void 0===o?void 0:o.UniqueId)===t.UniqueId,label:v,rightContent:c,bottomContent:P,onClick:function(){var e;(null===(e=M.mpVM.selectedCard)||void 0===e?void 0:e.UniqueId)!==t.UniqueId&&(M.checkout.selectedPaymentGateway=null,M.cardData=new E,M.secureCard.reset(),M.installmentInfo=void 0,M.mpVM.selectedCard=t,t.Value1&&t.paymentGatewayId&&M.checkout.totalFinalPrice&&M.retrieveInstallmentInfo({input:{orderId:M.checkout.id,binNumber:t.Value1.slice(0,8),paymentGatewayId:t.paymentGatewayId,price:M.checkout.totalFinalPrice,currencyCode:M.checkout.currencyCode}}))}})})),M.paymentGateways.filter((function(e){return"in-store"!==M.deliveryMethod&&!M.isDigitalOnly||e.paymentMethodType!==a.CASH_ON_DELIVERY&&e.paymentMethodType!==a.CREDIT_CARD_ON_DELIVERY})).map((function(t,n){var o,d;if(M.useMilesSmiles&&t.id!==(null===(o=M.milesSmilesPaymentGateway)||void 0===o?void 0:o.id))return null;if(function(e){return"KLARNA"===e.code}(t)&&M.klarnaPaymentGateway)return z();if(function(e){return"ADYEN_PLATFORM"===e.code}(t)&&M.adyenPaymentGateway)return U();if(function(e){return"PAYPAL"===e.code}(t)&&M.payPalPaymentGateway)return _();if(function(e){return"HEPSIPAY"===e.code}(t)&&M.hepsiPayPaymentGateway)return L();if(function(e){return"IYZICO"===e.code}(t)&&M.iyzicoPaymentGateway)return e.createElement(O,{vm:M,key:t.id});if(function(e){var t,a;return"TK_PAY"===e.code&&"true"===(null===(a=null===(t=e.settings)||void 0===t?void 0:t.find((function(e){return"tkpay_use_checkout_form"===e.label})))||void 0===a?void 0:a.value)}(t)&&M.tkPayPaymentGateway)return e.createElement(H,{vm:M,key:t.id});var y=t.paymentMethodType===a.CREDIT_CARD&&t.type===i.INTERNAL?e.createElement(e.Fragment,null,D(t)?e.createElement(e.Fragment,null,e.createElement(G,{vm:M,pg:t}),M.stripeError&&e.createElement("div",{className:s.ErrorMessage},M.stripeError.data)):e.createElement("div",null,M.isSecureCardEnabled?e.createElement(c,{vm:M}):e.createElement(r,{vm:M}),M.isPaymentGatewayHasMasterPass&&e.createElement(f,{vm:M}),M.installmentInfo&&e.createElement(l,{vm:M}))):t.description?e.createElement(e.Fragment,null,t.type===i.EXTERNAL&&e.createElement("div",{style:{height:"52px",display:"flex",justifyContent:"center",margin:"24px 0"}},e.createElement(v,null)),e.createElement("div",{dangerouslySetInnerHTML:{__html:t.description}})):void 0;return e.createElement(m,{key:t.id,label:t.paymentMethodType===a.CREDIT_CARD&&t.type===i.INTERNAL?D(t)?t.name:A("checkout-page:creditCard"):t.name,isSelected:M.selectedPaymentGatewayIndex===n,rightContent:(null===(d=t.additionalPrices)||void 0===d?void 0:d.length)?e.createElement(B,null,V(t.additionalPrices[0])):e.createElement(R,null,!!t.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:t.logoUrl}))),bottomContent:y,keepBottomContentMounted:M.isSecureCardEnabled&&t.id===M.secureCardGatewayId,onClick:function(){M.selectedPaymentGatewayIndex!==n&&(M.setPaymentGateway(n),M.mpVM.selectedCard=void 0)}})})))}));export{M as PaymentGateways};
@@ -1 +1 @@
1
- import*as e from"react";import{observer as l}from"mobx-react-lite";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";import{formatCurrency as i}from"../../../../../../utils/currency.js";import{createTranslationInputData as m,useTranslation as t}from"../../../../../../utils/i18n.js";import{Checkbox as a}from"../../../../components/checkbox/index.js";import r from"./style.module.scss.js";import{MilesSmilesBanner as c}from"./header.js";var n=function(e){return e?e.toLocaleString("en-US"):""},o=l((function(l){var o=l.vm,S=t().t,p=o.milesSmilesAvailableMiles,d=o.milesSmilesMaxRedeemable,M=o.milesSmilesRedeemValue,E=o.milesToRedeem>p,g=o.isMilesSmilesTermsAccepted,T=o.isErrorsVisible&&!g,v=function(e){e.stopPropagation(),o.policyModalTitle=S("checkout-page:milesSmilesTerms"),o.policyModalText=o.imprint},h=m(s.getTranslations()["checkout-page"].milesSmilesTermsSentence).map((function(l,s){return l.isVariable?o.imprint?e.createElement("span",{key:s,className:[r.MilesSmilesTermsLink,T?r.MilesSmilesTermsLinkError:""].join(" "),onClick:v},S("checkout-page:milesSmilesTerms")):e.createElement(e.Fragment,{key:s},S("checkout-page:milesSmilesTerms")):e.createElement(e.Fragment,{key:s},l.value)}));return e.createElement("div",{className:r.MilesSmiles},e.createElement(c,null),e.createElement("div",{className:r.MilesSmilesBody},e.createElement("div",{className:r.MilesSmilesHeader},e.createElement("div",{className:r.MilesSmilesTitleWrapper},e.createElement("div",{className:r.MilesSmilesTitle},e.createElement("span",{className:r.MilesSmilesTitleBold},"Miles&Smiles")," ",e.createElement("span",null,S("checkout-page:milesSmilesUseMyMiles"))),e.createElement("div",{className:r.MilesSmilesSubtitle},S("checkout-page:milesSmilesAvailableTotal",{miles:(p||0).toLocaleString("en-US")}))),e.createElement(u,{value:o.useMilesSmiles,onChange:function(e){o.setUseMilesSmiles(e)}})),o.useMilesSmiles&&e.createElement(e.Fragment,null,e.createElement("div",{className:r.MilesSmilesInputRow},e.createElement("div",{className:[r.MilesSmilesInputWrapper,E?r.MilesSmilesInputError:"",g?"":r.MilesSmilesDisabled].join(" ")},e.createElement("input",{className:r.MilesSmilesInput,type:"text",inputMode:"numeric",value:n(o.milesToRedeem),onChange:function(e){var l=e.target.value.replace(/[^\d]/g,"");o.setMilesToRedeem(l?parseInt(l,10):0)},onBlur:function(){o.clampMilesToRedeem()},max:d,disabled:!g}),e.createElement("span",{className:r.MilesSmilesInputUnit},S("checkout-page:milesSmilesUnit"))),o.milesToRedeem>0&&M>0&&e.createElement("span",{className:r.MilesSmilesRedeemText},S("checkout-page:milesSmilesRedeemText",{miles:n(o.milesToRedeem),amount:i(M,o.checkout.currencyCode,o.checkout.currencySymbol)}))),E&&e.createElement("div",{className:r.MilesSmilesErrorText},S("checkout-page:milesSmilesExceedError")),e.createElement("div",{className:[r.MilesSmilesUseAll,g?"":r.MilesSmilesDisabled].join(" ")},e.createElement(a,{value:o.isMilesSmilesAllMilesUsed,label:e.createElement("span",{className:r.MilesSmilesUseAllLabel},S("checkout-page:milesSmilesUseAllMiles")),removePadding:!0,onChange:function(e){g&&o.setUseAllMilesSmiles(e)}})),e.createElement("div",{className:r.MilesSmilesTerms},e.createElement(a,{value:g,hasError:T,label:e.createElement("span",{className:r.MilesSmilesTermsLabel},h),removePadding:!0,onChange:function(e){o.setMilesSmilesTermsAccepted(e)}})),T&&e.createElement("div",{className:r.MilesSmilesErrorText},S("checkout-page:milesSmilesTermsRequiredError"))),o.milesSmilesError&&e.createElement("div",{className:r.MilesSmilesErrorText},o.getMilesSmilesErrorMessage(o.milesSmilesError))))})),u=function(l){var s=l.value,i=l.onChange;return e.createElement("div",{role:"switch","aria-checked":s,onClick:function(){i(!s)},className:[r.ToggleSwitch,s?r.ToggleSwitchActive:""].join(" ")},e.createElement("div",{className:[r.ToggleSwitchThumb,s?r.ToggleSwitchThumbActive:""].join(" ")}))};export{o as MilesSmiles};
1
+ import*as e from"react";import{observer as l}from"mobx-react-lite";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";import{formatCurrency as i}from"../../../../../../utils/currency.js";import{createTranslationInputData as m,useTranslation as t}from"../../../../../../utils/i18n.js";import{Checkbox as a}from"../../../../components/checkbox/index.js";import r from"./style.module.scss.js";import{MilesSmilesBanner as c}from"./header.js";var n=function(e){return String(Math.floor(e||0)).replace(/\B(?=(\d{3})+(?!\d))/g,".")},o=function(e){return e?n(e):""},u=[500,1e3,5e3,1e4],S=l((function(l){var S=l.vm,d=t().t,M=S.milesSmilesAvailableMiles,E=S.milesSmilesMaxRedeemable,g=S.milesSmilesRedeemValue,T=S.milesToRedeem>M,h=S.isMilesSmilesTermsAccepted,v=S.isErrorsVisible&&S.isMilesSmilesTermsMissing,k=function(e){e.stopPropagation(),S.policyModalTitle=d("checkout-page:milesSmilesTerms"),S.policyModalText=S.imprint},f=m(s.getTranslations()["checkout-page"].milesSmilesTermsSentence).map((function(l,s){return l.isVariable?S.imprint?e.createElement("span",{key:s,className:[r.MilesSmilesTermsLink,v?r.MilesSmilesTermsLinkError:""].join(" "),onClick:k},d("checkout-page:milesSmilesTerms")):e.createElement(e.Fragment,{key:s},d("checkout-page:milesSmilesTerms")):e.createElement(e.Fragment,{key:s},l.value)}));return e.createElement("div",{className:r.MilesSmiles},e.createElement(c,null),e.createElement("div",{className:r.MilesSmilesBody},e.createElement("div",{className:r.MilesSmilesHeader},e.createElement("div",{className:r.MilesSmilesTitleWrapper},e.createElement("div",{className:r.MilesSmilesTitle},e.createElement("span",{className:r.MilesSmilesTitleBold},"Miles&Smiles")," ",e.createElement("span",null,d("checkout-page:milesSmilesUseMyMiles"))),e.createElement("div",{className:r.MilesSmilesSubtitle},d("checkout-page:milesSmilesAvailableTotal",{miles:n(M||0)}))),e.createElement(p,{value:S.useMilesSmiles,onChange:function(e){S.setUseMilesSmiles(e)}})),S.useMilesSmiles&&e.createElement(e.Fragment,null,e.createElement("div",{className:r.MilesSmilesChips},u.map((function(l){var s=S.milesToRedeem===l,i=l>E;return e.createElement("button",{key:l,type:"button",className:[r.MilesSmilesChip,s?r.MilesSmilesChipSelected:""].join(" "),disabled:i,"aria-pressed":s,onClick:function(){return S.selectMilesSmilesChip(l)}},n(l)," ",d("checkout-page:milesSmilesUnit"))}))),e.createElement("div",{className:r.MilesSmilesInputRow},e.createElement("div",{className:[r.MilesSmilesInputWrapper,T?r.MilesSmilesInputError:""].join(" ")},e.createElement("input",{className:r.MilesSmilesInput,type:"text",inputMode:"numeric",value:o(S.milesToRedeem),onChange:function(e){var l=e.target.value.replace(/[^\d]/g,"");S.setMilesToRedeem(l?parseInt(l,10):0)},onBlur:function(){S.clampMilesToRedeem()},max:E}),e.createElement("span",{className:r.MilesSmilesInputUnit},d("checkout-page:milesSmilesUnit"))),S.milesToRedeem>0&&g>0&&e.createElement("span",{className:r.MilesSmilesRedeemText},d("checkout-page:milesSmilesRedeemText",{miles:o(S.milesToRedeem),amount:i(g,S.checkout.currencyCode,S.checkout.currencySymbol)}))),T&&e.createElement("div",{className:r.MilesSmilesErrorText},d("checkout-page:milesSmilesExceedError")),e.createElement("div",{className:r.MilesSmilesUseAll},e.createElement(a,{value:S.isMilesSmilesAllMilesUsed,label:e.createElement("span",{className:r.MilesSmilesUseAllLabel},d("checkout-page:milesSmilesUseAllMiles")),removePadding:!0,onChange:function(e){S.setUseAllMilesSmiles(e)}})),e.createElement("div",{className:r.MilesSmilesTerms},e.createElement(a,{value:h,hasError:v,label:e.createElement("span",{className:r.MilesSmilesTermsLabel},f),removePadding:!0,onChange:function(e){S.setMilesSmilesTermsAccepted(e)}})),v&&e.createElement("div",{className:r.MilesSmilesErrorText},d("checkout-page:milesSmilesTermsRequiredError"))),S.milesSmilesError&&e.createElement("div",{className:r.MilesSmilesErrorText},S.getMilesSmilesErrorMessage(S.milesSmilesError))))})),p=function(l){var s=l.value,i=l.onChange;return e.createElement("div",{role:"switch","aria-checked":s,onClick:function(){i(!s)},className:[r.ToggleSwitch,s?r.ToggleSwitchActive:""].join(" ")},e.createElement("div",{className:[r.ToggleSwitchThumb,s?r.ToggleSwitchThumbActive:""].join(" ")}))};export{S as MilesSmiles};
@@ -1 +1 @@
1
- import e from'./../../../../../../ext/style-inject/dist/style-inject.es.js';var l={MilesSmiles:"style-module_MilesSmiles__-4b7k",MilesSmilesBody:"style-module_MilesSmilesBody__I03ZG",MilesSmilesLogin:"style-module_MilesSmilesLogin__sPao6",MilesSmilesBanner:"style-module_MilesSmilesBanner__RnSA0",MilesSmilesBannerLogo:"style-module_MilesSmilesBannerLogo__4ac9B",MilesSmilesHeader:"style-module_MilesSmilesHeader__2wEKO",MilesSmilesTitleWrapper:"style-module_MilesSmilesTitleWrapper__iGOg2",MilesSmilesTitle:"style-module_MilesSmilesTitle__ClDIS",MilesSmilesTitleBold:"style-module_MilesSmilesTitleBold__tSEX5",MilesSmilesSubtitle:"style-module_MilesSmilesSubtitle__4XQe2",MilesSmilesInputRow:"style-module_MilesSmilesInputRow__rgpyr",MilesSmilesInputWrapper:"style-module_MilesSmilesInputWrapper__cMQ9K",MilesSmilesInputError:"style-module_MilesSmilesInputError__tidH-",MilesSmilesInput:"style-module_MilesSmilesInput__-ADNL",MilesSmilesInputUnit:"style-module_MilesSmilesInputUnit__vza1O",MilesSmilesRedeemText:"style-module_MilesSmilesRedeemText__tpFbH",MilesSmilesErrorText:"style-module_MilesSmilesErrorText__02yD-",MilesSmilesUseAll:"style-module_MilesSmilesUseAll__cbwYe",MilesSmilesUseAllLabel:"style-module_MilesSmilesUseAllLabel__ngBlj",MilesSmilesDisabled:"style-module_MilesSmilesDisabled__VoDE-",MilesSmilesTerms:"style-module_MilesSmilesTerms__1xpun",MilesSmilesTermsLabel:"style-module_MilesSmilesTermsLabel__GsY7J",MilesSmilesTermsLink:"style-module_MilesSmilesTermsLink__BlijG",MilesSmilesTermsLinkError:"style-module_MilesSmilesTermsLinkError__ed3j5",ToggleSwitch:"style-module_ToggleSwitch__fSVrp",ToggleSwitchActive:"style-module_ToggleSwitchActive__vd83i",ToggleSwitchThumb:"style-module_ToggleSwitchThumb__PiPwV",ToggleSwitchThumbActive:"style-module_ToggleSwitchThumbActive__RjbIp",MilesSmilesLoginButton:"style-module_MilesSmilesLoginButton__w82W4",MilesSmilesLoginText:"style-module_MilesSmilesLoginText__Jlxn4",MilesSmilesLoginButtonBusy:"style-module_MilesSmilesLoginButtonBusy__m7rkq"};e(".style-module_MilesSmiles__-4b7k {\n border-radius: 8px;\n margin-bottom: 16px;\n overflow: hidden;\n background-color: var(--checkout-primary-bg-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBody__I03ZG,\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n border: 1px solid var(--checkout-border-color);\n border-top: none;\n border-radius: 0 0 8px 8px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBanner__RnSA0 {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px 16px;\n background-color: #262626;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBanner__RnSA0 .style-module_MilesSmilesBannerLogo__4ac9B {\n display: block;\n width: 121px;\n height: 27px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBody__I03ZG {\n padding: 16px 12px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitleWrapper__iGOg2 {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitle__ClDIS {\n font-size: 16px;\n line-height: 24px;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitleBold__tSEX5 {\n font-weight: 500;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesSubtitle__4XQe2 {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputRow__rgpyr {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-top: 16px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputWrapper__cMQ9K {\n display: flex;\n align-items: center;\n border: 1px solid var(--checkout-border-color);\n border-radius: 8px;\n overflow: hidden;\n background-color: var(--checkout-primary-bg-color);\n transition: border-color 0.15s ease;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputWrapper__cMQ9K.style-module_MilesSmilesInputError__tidH- {\n border-color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInput__-ADNL {\n width: 100%;\n max-width: 140px;\n padding: 6px 10px;\n border: none;\n outline: none;\n background: transparent;\n font-size: 15px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n font-family: inherit;\n text-align: center;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInput__-ADNL::placeholder {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputUnit__vza1O {\n padding: 6px 10px;\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n border-left: 1px solid var(--checkout-border-color);\n background-color: var(--checkout-primary-bg-color);\n white-space: nowrap;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesRedeemText__tpFbH {\n font-size: 15px;\n line-height: 20px;\n font-weight: 500;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesErrorText__02yD- {\n margin-top: 10px;\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAll__cbwYe {\n margin-top: 12px;\n display: flex;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAll__cbwYe > div {\n width: auto;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAllLabel__ngBlj {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesDisabled__VoDE- {\n opacity: 0.5;\n pointer-events: none;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTerms__1xpun {\n margin-top: 12px;\n display: flex;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTerms__1xpun > div {\n width: auto;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLabel__GsY7J {\n font-size: 14px;\n line-height: 20px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLink__BlijG {\n font-weight: 500;\n text-decoration: underline;\n cursor: pointer;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLinkError__ed3j5 {\n color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitch__fSVrp {\n position: relative;\n width: 40px;\n height: 22px;\n background-color: #cdd5df;\n border-radius: 12px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n display: flex;\n align-items: center;\n padding: 3px;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n flex-shrink: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitch__fSVrp.style-module_ToggleSwitchActive__vd83i {\n background-color: #1f2a37;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitchThumb__PiPwV {\n width: 16px;\n height: 16px;\n background-color: white;\n border-radius: 50%;\n transform: translateX(0px);\n transition: transform 0.2s ease;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: absolute;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitchThumb__PiPwV.style-module_ToggleSwitchThumbActive__RjbIp {\n transform: translateX(18px);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n flex-direction: column;\n align-items: stretch;\n }\n .style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4 {\n width: 100%;\n }\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginText__Jlxn4 {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n min-width: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesErrorText__02yD- {\n margin-top: 4px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButtonBusy__m7rkq {\n opacity: 0.6;\n pointer-events: none;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4 {\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 8px 16px;\n border: none;\n background-color: #c90019;\n color: #fff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n font-family: inherit;\n border-radius: 8px;\n cursor: pointer;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4:hover {\n background-color: #c90019;\n color: #fff;\n}");export{l as default};
1
+ import e from'./../../../../../../ext/style-inject/dist/style-inject.es.js';var l={MilesSmiles:"style-module_MilesSmiles__-4b7k",MilesSmilesBody:"style-module_MilesSmilesBody__I03ZG",MilesSmilesLogin:"style-module_MilesSmilesLogin__sPao6",MilesSmilesBanner:"style-module_MilesSmilesBanner__RnSA0",MilesSmilesBannerLogo:"style-module_MilesSmilesBannerLogo__4ac9B",MilesSmilesHeader:"style-module_MilesSmilesHeader__2wEKO",MilesSmilesTitleWrapper:"style-module_MilesSmilesTitleWrapper__iGOg2",MilesSmilesTitle:"style-module_MilesSmilesTitle__ClDIS",MilesSmilesTitleBold:"style-module_MilesSmilesTitleBold__tSEX5",MilesSmilesSubtitle:"style-module_MilesSmilesSubtitle__4XQe2",MilesSmilesChips:"style-module_MilesSmilesChips__JkGmK",MilesSmilesChip:"style-module_MilesSmilesChip__Qu4TF",MilesSmilesChipSelected:"style-module_MilesSmilesChipSelected__ay8cR",MilesSmilesInputRow:"style-module_MilesSmilesInputRow__rgpyr",MilesSmilesInputWrapper:"style-module_MilesSmilesInputWrapper__cMQ9K",MilesSmilesInputError:"style-module_MilesSmilesInputError__tidH-",MilesSmilesInput:"style-module_MilesSmilesInput__-ADNL",MilesSmilesInputUnit:"style-module_MilesSmilesInputUnit__vza1O",MilesSmilesRedeemText:"style-module_MilesSmilesRedeemText__tpFbH",MilesSmilesErrorText:"style-module_MilesSmilesErrorText__02yD-",MilesSmilesUseAll:"style-module_MilesSmilesUseAll__cbwYe",MilesSmilesUseAllLabel:"style-module_MilesSmilesUseAllLabel__ngBlj",MilesSmilesTerms:"style-module_MilesSmilesTerms__1xpun",MilesSmilesTermsLabel:"style-module_MilesSmilesTermsLabel__GsY7J",MilesSmilesTermsLink:"style-module_MilesSmilesTermsLink__BlijG",MilesSmilesTermsLinkError:"style-module_MilesSmilesTermsLinkError__ed3j5",ToggleSwitch:"style-module_ToggleSwitch__fSVrp",ToggleSwitchActive:"style-module_ToggleSwitchActive__vd83i",ToggleSwitchThumb:"style-module_ToggleSwitchThumb__PiPwV",ToggleSwitchThumbActive:"style-module_ToggleSwitchThumbActive__RjbIp",MilesSmilesLoginButton:"style-module_MilesSmilesLoginButton__w82W4",MilesSmilesLoginText:"style-module_MilesSmilesLoginText__Jlxn4",MilesSmilesLoginButtonBusy:"style-module_MilesSmilesLoginButtonBusy__m7rkq"};e(".style-module_MilesSmiles__-4b7k {\n border-radius: 8px;\n margin-bottom: 16px;\n overflow: hidden;\n background-color: var(--checkout-primary-bg-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBody__I03ZG,\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n border: 1px solid var(--checkout-border-color);\n border-top: none;\n border-radius: 0 0 8px 8px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBanner__RnSA0 {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px 16px;\n background-color: #262626;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBanner__RnSA0 .style-module_MilesSmilesBannerLogo__4ac9B {\n display: block;\n width: 121px;\n height: 27px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesBody__I03ZG {\n padding: 16px 12px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 10px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitleWrapper__iGOg2 {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitle__ClDIS {\n font-size: 16px;\n line-height: 24px;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesTitleBold__tSEX5 {\n font-weight: 500;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesHeader__2wEKO .style-module_MilesSmilesSubtitle__4XQe2 {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: #272727;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesChips__JkGmK {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 16px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesChip__Qu4TF {\n padding: 6px 12px;\n border: 1px solid #e5e4e9;\n border-radius: 8px;\n background-color: transparent;\n color: #272727;\n font-family: inherit;\n font-size: 14px;\n line-height: 20px;\n cursor: pointer;\n transition: background-color 0.15s ease, color 0.15s ease;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesChip__Qu4TF.style-module_MilesSmilesChipSelected__ay8cR {\n background-color: #272727;\n border-color: #272727;\n color: #fff;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesChip__Qu4TF:disabled {\n opacity: 0.5;\n cursor: default;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputRow__rgpyr {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-top: 16px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputWrapper__cMQ9K {\n display: flex;\n align-items: center;\n border: 1px solid var(--checkout-border-color);\n border-radius: 8px;\n overflow: hidden;\n background-color: var(--checkout-primary-bg-color);\n transition: border-color 0.15s ease;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputWrapper__cMQ9K.style-module_MilesSmilesInputError__tidH- {\n border-color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInput__-ADNL {\n width: 100%;\n max-width: 140px;\n padding: 6px 10px;\n border: none;\n outline: none;\n background: transparent;\n font-size: 15px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n font-family: inherit;\n text-align: center;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInput__-ADNL::placeholder {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesInputUnit__vza1O {\n padding: 6px 10px;\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n border-left: 1px solid var(--checkout-border-color);\n background-color: var(--checkout-primary-bg-color);\n white-space: nowrap;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesRedeemText__tpFbH {\n font-size: 15px;\n line-height: 20px;\n font-weight: 500;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesErrorText__02yD- {\n margin-top: 10px;\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAll__cbwYe {\n margin-top: 12px;\n display: flex;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAll__cbwYe > div {\n width: auto;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesUseAllLabel__ngBlj {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTerms__1xpun {\n margin-top: 12px;\n display: flex;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTerms__1xpun > div {\n width: auto;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLabel__GsY7J {\n font-size: 14px;\n line-height: 20px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLink__BlijG {\n font-weight: 500;\n text-decoration: underline;\n cursor: pointer;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesTermsLinkError__ed3j5 {\n color: var(--checkout-error-color);\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitch__fSVrp {\n position: relative;\n width: 40px;\n height: 22px;\n background-color: #cdd5df;\n border-radius: 12px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n display: flex;\n align-items: center;\n padding: 3px;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n flex-shrink: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitch__fSVrp.style-module_ToggleSwitchActive__vd83i {\n background-color: #1f2a37;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitchThumb__PiPwV {\n width: 16px;\n height: 16px;\n background-color: white;\n border-radius: 50%;\n transform: translateX(0px);\n transition: transform 0.2s ease;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: absolute;\n}\n.style-module_MilesSmiles__-4b7k .style-module_ToggleSwitchThumb__PiPwV.style-module_ToggleSwitchThumbActive__RjbIp {\n transform: translateX(18px);\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 {\n flex-direction: column;\n align-items: stretch;\n }\n .style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4 {\n width: 100%;\n }\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginText__Jlxn4 {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-primary-text-color);\n min-width: 0;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesErrorText__02yD- {\n margin-top: 4px;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButtonBusy__m7rkq {\n opacity: 0.6;\n pointer-events: none;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4 {\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 8px 16px;\n border: none;\n background-color: #c90019;\n color: #fff;\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n font-family: inherit;\n border-radius: 8px;\n cursor: pointer;\n}\n.style-module_MilesSmiles__-4b7k .style-module_MilesSmilesLogin__sPao6 .style-module_MilesSmilesLoginButton__w82W4:hover {\n background-color: #c90019;\n color: #fff;\n}");export{l as default};
@@ -1 +1 @@
1
- import{makeAutoObservable as e}from"mobx";import{IkasThemeJsonComponent as n}from"./component/index.js";import{IkasThemeJsonComponentProp as o}from"./component/prop/index.js";import{IkasThemeJsonCustomData as r}from"./custom-data/index.js";import{IkasThemeJsonPage as i}from"./page/index.js";import{IkasThemeJsonPageComponent as t}from"./page/component/index.js";import{IkasThemeJsonSettings as a}from"./settings/index.js";import{IkasThemeJsonComponentPropType as s,IkasThemeJsonPageType as p}from"@ikas/storefront-models";var m="checkout",u=function(){function m(o){var t;void 0===o&&(o={}),this.name=o.name||"",this.components=o.components?o.components.map((function(e){return new n(e)})):[],this.pages=o.pages?o.pages.map((function(e){return new i(e)})):[],this.settings=o.settings?new a(o.settings):new a,this.customData=o.customData?null===(t=o.customData)||void 0===t?void 0:t.map((function(e){return new r(e)})):[],this.createCheckoutData(),e(this)}return Object.defineProperty(m.prototype,"headerComponent",{get:function(){return this.components.find((function(e){return e.isHeader}))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"footerComponent",{get:function(){return this.components.find((function(e){return e.isFooter}))},enumerable:!1,configurable:!0}),m.prototype.createCheckoutData=function(){var e=this.components.find((function(e){return"checkout"===e.id})),r=this.pages.find((function(e){return"checkout"===e.id}));e||(e=new n({id:"checkout",dir:"",displayName:"",props:[new o({name:"logo",isRequired:!1,type:s.IMAGE}),new o({name:"showTax",isRequired:!1,type:s.BOOLEAN}),new o({name:"showLoyaltyPoints",isRequired:!1,type:s.BOOLEAN}),new o({name:"showCampaignOffersDesign",isRequired:!1,type:s.BOOLEAN}),new o({name:"showCampaignIsBiggerImage",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOfferIsSmallDesign",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOffersTitleColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersDescriptionColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersContainerBgColor",isRequired:!1,type:s.COLOR}),new o({name:"showCampaignShowDiscountSettings",isRequired:!1,type:s.BOOLEAN}),new o({name:"showCampaignHideDiscountBadge",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOfferCountdownStyleIsLine",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOffersDiscountPercentageColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersDiscountPercentageBgColor",isRequired:!1,type:s.COLOR}),new o({name:"showCampaignShowCountdownSettings",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOffersCountdownTextColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersCountdownTimeColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersCountdownBgColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOffersEnableMiddlePhase",isRequired:!1,type:s.BOOLEAN}),new o({name:"campaignOffersMiddlePhaseOverlayColor",isRequired:!1,type:s.COLOR}),new o({name:"campaignOfferCountdownStyleIsLineSuccessPage",isRequired:!1,type:s.BOOLEAN}),new o({name:"buttonBgColor",isRequired:!1,type:s.COLOR}),new o({name:"buttonTextColor",isRequired:!1,type:s.COLOR}),new o({name:"buttonDisabledBgColor",isRequired:!1,type:s.COLOR}),new o({name:"buttonDisabledTextColor",isRequired:!1,type:s.COLOR}),new o({name:"primaryTextColor",isRequired:!1,type:s.COLOR}),new o({name:"secondaryTextColor",isRequired:!1,type:s.COLOR}),new o({name:"primaryBgColor",isRequired:!1,type:s.COLOR}),new o({name:"secondaryBgColor",isRequired:!1,type:s.COLOR}),new o({name:"borderColor",isRequired:!1,type:s.COLOR}),new o({name:"cardBgColor",isRequired:!1,type:s.COLOR}),new o({name:"errorColor",isRequired:!1,type:s.COLOR}),new o({name:"errorLightColor",isRequired:!1,type:s.COLOR}),new o({name:"warningColor",isRequired:!1,type:s.COLOR}),new o({name:"warningLightColor",isRequired:!1,type:s.COLOR}),new o({name:"successColor",isRequired:!1,type:s.COLOR}),new o({name:"successLightColor",isRequired:!1,type:s.COLOR}),new o({name:"secondaryButtonBgColor",isRequired:!1,type:s.COLOR}),new o({name:"secondaryButtonTextColor",isRequired:!1,type:s.COLOR}),new o({name:"secondaryButtonBorderColor",isRequired:!1,type:s.COLOR})]}),this.components.push(e)),r||this.pages.push(new i({id:"checkout",type:p.CHECKOUT,components:[new t({componentId:e.id,propValues:{logo:null,showTax:!0,showLoyaltyPoints:!1,showCampaignOffersDesign:!1,showCampaignIsBiggerImage:!1,campaignOfferIsSmallDesign:!1,showCampaignShowDiscountSettings:!1,showCampaignHideDiscountBadge:!1,campaignOfferCountdownStyleIsLine:!1,campaignOfferCountdownStyleIsLineSuccessPage:!1,showCampaignShowCountdownSettings:!1,campaignOffersEnableMiddlePhase:!1,campaignOffersTitleColor:O,campaignOffersDescriptionColor:c,campaignOffersContainerBgColor:g,campaignOffersDiscountPercentageColor:l,campaignOffersDiscountPercentageBgColor:f,campaignOffersCountdownTextColor:w,campaignOffersCountdownTimeColor:y,campaignOffersCountdownBgColor:R,campaignOffersMiddlePhaseOverlayColor:h,buttonBgColor:C,buttonTextColor:d,buttonDisabledBgColor:L,buttonDisabledTextColor:B,primaryTextColor:F,secondaryTextColor:q,primaryBgColor:E,secondaryBgColor:D,borderColor:b,cardBgColor:x,errorColor:T,errorLightColor:A,warningColor:S,warningLightColor:P,successColor:I,successLightColor:N,secondaryButtonBgColor:j,secondaryButtonTextColor:k,secondaryButtonBorderColor:v}})]}))},m}(),C="#272727",d="#FFFFFF",O="#272727",c="#272727",g="#ffffff",f="#FFF1BD",l="#272727",w="#272727",y="#FB4E4E",R="#FFF5F6",h="#27272799",L="#F7F7F9",B="#8A8B94",F="#272727",q="#8A8B94",E="#FFFFFF",D="#F7F7F9",b="#E5E4E9",x="#F7F7F9",T="#FB4E4E",A="#FCF3F4",S="#FFBC1F",P="#FFFAEE",I="#2DCA73",N="#F6FFED",j="#ffffff0",k="#272727",v="#E5E4E9";export{m as CHECKOUT_ID,u as IkasThemeJson};
1
+ import{makeAutoObservable as e}from"mobx";import{IkasThemeJsonComponent as o}from"./component/index.js";import{IkasThemeJsonComponentProp as n}from"./component/prop/index.js";import{IkasThemeJsonCustomData as r}from"./custom-data/index.js";import{IkasThemeJsonPage as i}from"./page/index.js";import{IkasThemeJsonPageComponent as t}from"./page/component/index.js";import{IkasThemeJsonSettings as a}from"./settings/index.js";import{IkasThemeJsonComponentPropType as s,IkasThemeJsonPageType as p}from"@ikas/storefront-models";var m="checkout",u=function(){function m(n){var t;void 0===n&&(n={}),this.name=n.name||"",this.components=n.components?n.components.map((function(e){return new o(e)})):[],this.pages=n.pages?n.pages.map((function(e){return new i(e)})):[],this.settings=n.settings?new a(n.settings):new a,this.customData=n.customData?null===(t=n.customData)||void 0===t?void 0:t.map((function(e){return new r(e)})):[],this.createCheckoutData(),e(this)}return Object.defineProperty(m.prototype,"headerComponent",{get:function(){return this.components.find((function(e){return e.isHeader}))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"footerComponent",{get:function(){return this.components.find((function(e){return e.isFooter}))},enumerable:!1,configurable:!0}),m.prototype.createCheckoutData=function(){var e=this.components.find((function(e){return"checkout"===e.id})),r=this.pages.find((function(e){return"checkout"===e.id}));e||(e=new o({id:"checkout",dir:"",displayName:"",props:[new n({name:"logo",isRequired:!1,type:s.IMAGE}),new n({name:"showTax",isRequired:!1,type:s.BOOLEAN}),new n({name:"showLoyaltyPoints",isRequired:!1,type:s.BOOLEAN}),new n({name:"showCampaignOffersDesign",isRequired:!1,type:s.BOOLEAN}),new n({name:"showCampaignIsBiggerImage",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOfferIsSmallDesign",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOffersTitleColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersDescriptionColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersContainerBgColor",isRequired:!1,type:s.COLOR}),new n({name:"showCampaignShowDiscountSettings",isRequired:!1,type:s.BOOLEAN}),new n({name:"showCampaignHideDiscountBadge",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOfferCountdownStyleIsLine",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOffersDiscountPercentageColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersDiscountPercentageBgColor",isRequired:!1,type:s.COLOR}),new n({name:"showCampaignShowCountdownSettings",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOffersCountdownTextColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersCountdownTimeColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersCountdownBgColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOffersEnableMiddlePhase",isRequired:!1,type:s.BOOLEAN}),new n({name:"campaignOffersMiddlePhaseOverlayColor",isRequired:!1,type:s.COLOR}),new n({name:"campaignOfferCountdownStyleIsLineSuccessPage",isRequired:!1,type:s.BOOLEAN}),new n({name:"buttonBgColor",isRequired:!1,type:s.COLOR}),new n({name:"buttonTextColor",isRequired:!1,type:s.COLOR}),new n({name:"buttonDisabledBgColor",isRequired:!1,type:s.COLOR}),new n({name:"buttonDisabledTextColor",isRequired:!1,type:s.COLOR}),new n({name:"primaryTextColor",isRequired:!1,type:s.COLOR}),new n({name:"secondaryTextColor",isRequired:!1,type:s.COLOR}),new n({name:"primaryBgColor",isRequired:!1,type:s.COLOR}),new n({name:"secondaryBgColor",isRequired:!1,type:s.COLOR}),new n({name:"borderColor",isRequired:!1,type:s.COLOR}),new n({name:"cardBgColor",isRequired:!1,type:s.COLOR}),new n({name:"errorColor",isRequired:!1,type:s.COLOR}),new n({name:"errorLightColor",isRequired:!1,type:s.COLOR}),new n({name:"warningColor",isRequired:!1,type:s.COLOR}),new n({name:"warningLightColor",isRequired:!1,type:s.COLOR}),new n({name:"successColor",isRequired:!1,type:s.COLOR}),new n({name:"successLightColor",isRequired:!1,type:s.COLOR}),new n({name:"secondaryButtonBgColor",isRequired:!1,type:s.COLOR}),new n({name:"secondaryButtonTextColor",isRequired:!1,type:s.COLOR}),new n({name:"secondaryButtonBorderColor",isRequired:!1,type:s.COLOR}),new n({name:"loyaltyIconColor",isRequired:!1,type:s.COLOR})]}),this.components.push(e)),r||this.pages.push(new i({id:"checkout",type:p.CHECKOUT,components:[new t({componentId:e.id,propValues:{logo:null,showTax:!0,showLoyaltyPoints:!1,showCampaignOffersDesign:!1,showCampaignIsBiggerImage:!1,campaignOfferIsSmallDesign:!1,showCampaignShowDiscountSettings:!1,showCampaignHideDiscountBadge:!1,campaignOfferCountdownStyleIsLine:!1,campaignOfferCountdownStyleIsLineSuccessPage:!1,showCampaignShowCountdownSettings:!1,campaignOffersEnableMiddlePhase:!1,campaignOffersTitleColor:c,campaignOffersDescriptionColor:d,campaignOffersContainerBgColor:g,campaignOffersDiscountPercentageColor:f,campaignOffersDiscountPercentageBgColor:l,campaignOffersCountdownTextColor:w,campaignOffersCountdownTimeColor:y,campaignOffersCountdownBgColor:R,campaignOffersMiddlePhaseOverlayColor:L,buttonBgColor:C,buttonTextColor:O,buttonDisabledBgColor:h,buttonDisabledTextColor:B,primaryTextColor:F,secondaryTextColor:q,primaryBgColor:E,secondaryBgColor:D,borderColor:b,cardBgColor:x,errorColor:T,errorLightColor:A,warningColor:S,warningLightColor:I,successColor:P,successLightColor:N,secondaryButtonBgColor:j,secondaryButtonTextColor:k,secondaryButtonBorderColor:v,loyaltyIconColor:M}})]}))},m}(),C="#272727",O="#FFFFFF",c="#272727",d="#272727",g="#ffffff",l="#FFF1BD",f="#272727",w="#272727",y="#FB4E4E",R="#FFF5F6",L="#27272799",h="#F7F7F9",B="#8A8B94",F="#272727",q="#8A8B94",E="#FFFFFF",D="#F7F7F9",b="#E5E4E9",x="#F7F7F9",T="#FB4E4E",A="#FCF3F4",S="#FFBC1F",I="#FFFAEE",P="#2DCA73",N="#F6FFED",j="#ffffff00",k="#272727",v="#E5E4E9",M="#F5B53F";export{m as CHECKOUT_ID,u as IkasThemeJson};
@@ -1 +1 @@
1
- import{__rest as o,__awaiter as e,__generator as t,__assign as r}from'./../ext/tslib/tslib.es6.js';import*as i from"react";import{observer as s}from"mobx-react-lite";import n from"../components/checkout/index.js";import{useRouter as d}from"next/router.js";import{FullscreenLoading as a}from"../components/checkout/components/fullscreen-loading/index.js";import{CheckoutLoadFailed as m,getCheckoutHomeHref as c}from"../components/checkout/components/checkout-load-failed/index.js";import{CheckoutStep as l}from"../components/checkout/model.js";import{setAPIClientConfig as u,getCartById as p,CampaignOfferTargetPageTypeEnum as f}from"@ikas/storefront-api";import{IkasStorefrontConfig as j}from"@ikas/storefront-config";import"../analytics/analytics.js";import"../analytics/head/index.js";import"../components/page/index.js";import"../components/page/head.js";import"next/image.js";import"@ikas/storefront-model-functions";import"../components/link/index.js";import"../components/page-editor/loader/style.module.scss.js";import"../components/google-captcha/index.js";import"../components/paypal-express-checkout/index.js";import{IkasBaseStore as g}from"../store/base.js";import"mobx";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"@ikas/storefront-models";import"../models/data/campaign-offer/index.js";import"../models/data/cart/campaign-offer/index.js";import{IkasCart as x}from"../models/data/cart/index.js";import"../models/data/category/path-item/index.js";import"../models/data/category/index.js";import{IkasCheckout as y}from"../models/data/checkout/index.js";import"../models/data/checkout-settings/index.js";import"../models/data/city/index.js";import"../models/data/country/index.js";import"../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-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{LocalizedAddressConfig as v}from"@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"../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"./home.js";import"./_slug_/index.js";import"./pages/_slug_.js";import"./account/index.js";import"./account/addresses.js";import"./account/orders/index.js";import"./account/orders/_id_.js";import"./account/login.js";import"./account/register.js";import"./account/forgot-password.js";import"./account/recover-password.js";import"./cart.js";import"./editor.js";import"./account/favorite-products.js";import"./search.js";import"next/error.js";import"./blog/index.js";import"./blog/_slug_.js";import"./raffle/_slug_.js";import"./raffle/index.js";import"./account/raffles.js";import"./account/activate.js";import"../store/customer/index.js";import"../store/cart/index.js";import"lodash/get";import{initIkasEvents as h}from"../analytics/events.js";import{APIErrorCode as C}from'./../ext/@ikas/fe-api-client/build/utils/api.js';import'./../ext/axios/index.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import E from"../store/checkout/index.js";var k=s((function(s){var k=s.customizationProps,b=s.configJson,P=o(s,["customizationProps","configJson"]),F=d(),w=i.useState(),_=w[0],T=w[1],S=i.useState(P.checkoutSettings),B=S[0],I=S[1],O=i.useState(!1),D=O[0],L=O[1];j.init(b),v.setCDNUrl(process.env.NEXT_PUBLIC_SETTINGS_CDN_URL),u(),i.useEffect((function(){!function(o){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==o?void 0:o.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==o?void 0:o.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==o?void 0:o.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==o?void 0:o.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==o?void 0:o.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==o?void 0:o.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==o?void 0:o.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==o?void 0:o.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==o?void 0:o.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==o?void 0:o.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==o?void 0:o.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==o?void 0:o.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==o?void 0:o.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==o?void 0:o.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==o?void 0:o.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==o?void 0:o.successLightColor)||"#F6FFED"),document.documentElement.style.setProperty("--checkout-secondary-button-bg-color",(null==o?void 0:o.secondaryButtonBgColor)||"#ffffff0"),document.documentElement.style.setProperty("--checkout-secondary-button-text-color",(null==o?void 0:o.secondaryButtonTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-button-border-color",(null==o?void 0:o.secondaryButtonBorderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-campaign-title-color",(null==o?void 0:o.campaignOffersTitleColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-description-color",(null==o?void 0:o.campaignOffersDescriptionColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-container-bg-color",(null==o?void 0:o.campaignOffersContainerBgColor)||"#ffffff"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-color",(null==o?void 0:o.campaignOffersDiscountPercentageColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-bg-color",(null==o?void 0:o.campaignOffersDiscountPercentageBgColor)||"#FFF1BD"),document.documentElement.style.setProperty("--checkout-campaign-countdown-text-color",(null==o?void 0:o.campaignOffersCountdownTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-countdown-time-color",(null==o?void 0:o.campaignOffersCountdownTimeColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-campaign-countdown-bg-color",(null==o?void 0:o.campaignOffersCountdownBgColor)||"#FFF5F6"),document.documentElement.style.setProperty("--checkout-campaign-middle-phase-overlay-color",(null==o?void 0:o.campaignOffersMiddlePhaseOverlayColor)||"#292727ad"),document.documentElement.style.lineHeight="1.5"}(k)}),[k]),i.useEffect((function(){g.getInstance().checkLocalization(),U(),h()}),[]);var U=i.useCallback((function(){return e(void 0,void 0,void 0,(function(){var o,e,r,i,s,n,d,a,m,c,u,v,h,k,b,P,w,_,S,O,D,U;return t(this,(function(t){switch(t.label){case 0:if(o=new URLSearchParams(window.location.search),e=o.get("id"),r=o.get("step"),i=o.get("lines"),s=o.get("couponCode"),n=o.get("miniCart"),!i)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),(d=g.getInstance().cartStore).removeCart(),a=i.split(","),m=a.map((function(o){var e=o.split(":"),t=e[0],r=e[1];return{variantId:t,quantity:parseInt(r)}})),c={variantLines:m,couponCode:s||void 0},[4,d.createCart(c)];case 2:return(u=t.sent()).success&&(v=j.getCurrentRouting(),h=(null==v?void 0:v.path)?"/".concat(v.path):"",k=n?"&miniCart=".concat(encodeURIComponent(n)):"",window.location.href="".concat(h,"/checkout?id=").concat(null===(D=u.response.data)||void 0===D?void 0:D.id,"&step=info").concat(k)),[3,4];case 3:return b=t.sent(),console.error("Error creating cart:",b),[3,4];case 4:return[2];case 5:return e?(P=!1,r&&r===l.SUCCESS&&(P=!0),[4,p({id:e,getCompletedCart:P,targetPageType:f.CHECKOUT})]):[2,F.replace("/")];case 6:if(w=t.sent(),B)return[3,10];t.label=7;case 7:return t.trys.push([7,9,,10]),[4,Promise.race([E.listCheckoutSettings({}),new Promise((function(o,e){return setTimeout((function(){return e(new Error("timeout"))}),1e4)}))])];case 8:return(_=t.sent()).isSuccess&&(null===(U=_.data)||void 0===U?void 0:U.length)?(I(_.data[0]),[3,10]):(console.error("CHECKOUT SETTINGS FETCH FAILED!"),L(!0),[2]);case 9:return S=t.sent(),console.error("CHECKOUT SETTINGS FETCH FAILED!",S),L(!0),[2];case 10:return w.isSuccess&&w.data?(O=w.data,T(new y(O)),g.getInstance().cartStore.setCart(new x(O))):w.errorCodes.some((function(o){return o===C.LOGIN_REQUIRED}))?F.replace("/account/login?redirect="+encodeURIComponent(window.location.href)):F.replace("/"),[2]}}))}))}),[]);if(D){var N=j.getMerchantSettings();return i.createElement(m,{logo:(null==k?void 0:k.logo)||(null==N?void 0:N.logo),merchantName:null==N?void 0:N.merchantName,backHref:c(),returnPolicy:P.returnPolicy,privacyPolicy:P.privacyPolicy,termsOfService:P.termsOfService,imprint:P.imprint,shippingPolicy:P.shippingPolicy})}return _&&B?i.createElement(n,r({checkout:_,customizationProps:k},P,{checkoutSettings:B})):i.createElement(a,null)}));export{k as default};
1
+ import{__rest as o,__awaiter as e,__generator as t,__assign as r}from'./../ext/tslib/tslib.es6.js';import*as i from"react";import{observer as s}from"mobx-react-lite";import n from"../components/checkout/index.js";import{useRouter as d}from"next/router.js";import{FullscreenLoading as a}from"../components/checkout/components/fullscreen-loading/index.js";import{CheckoutLoadFailed as m,getCheckoutHomeHref as c}from"../components/checkout/components/checkout-load-failed/index.js";import{CheckoutStep as l}from"../components/checkout/model.js";import{setAPIClientConfig as u,getCartById as p,CampaignOfferTargetPageTypeEnum as f}from"@ikas/storefront-api";import{IkasStorefrontConfig as j}from"@ikas/storefront-config";import"../analytics/analytics.js";import"../analytics/head/index.js";import"../components/page/index.js";import"../components/page/head.js";import"next/image.js";import"@ikas/storefront-model-functions";import"../components/link/index.js";import"../components/page-editor/loader/style.module.scss.js";import"../components/google-captcha/index.js";import"../components/paypal-express-checkout/index.js";import{IkasBaseStore as g}from"../store/base.js";import"mobx";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"@ikas/storefront-models";import"../models/data/campaign-offer/index.js";import"../models/data/cart/campaign-offer/index.js";import{IkasCart as y}from"../models/data/cart/index.js";import"../models/data/category/path-item/index.js";import"../models/data/category/index.js";import{IkasCheckout as x}from"../models/data/checkout/index.js";import"../models/data/checkout-settings/index.js";import"../models/data/city/index.js";import"../models/data/country/index.js";import"../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-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{LocalizedAddressConfig as v}from"@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"../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"./home.js";import"./_slug_/index.js";import"./pages/_slug_.js";import"./account/index.js";import"./account/addresses.js";import"./account/orders/index.js";import"./account/orders/_id_.js";import"./account/login.js";import"./account/register.js";import"./account/forgot-password.js";import"./account/recover-password.js";import"./cart.js";import"./editor.js";import"./account/favorite-products.js";import"./search.js";import"next/error.js";import"./blog/index.js";import"./blog/_slug_.js";import"./raffle/_slug_.js";import"./raffle/index.js";import"./account/raffles.js";import"./account/activate.js";import"../store/customer/index.js";import"../store/cart/index.js";import"lodash/get";import{initIkasEvents as h}from"../analytics/events.js";import{APIErrorCode as C}from'./../ext/@ikas/fe-api-client/build/utils/api.js';import'./../ext/axios/index.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'./../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import E from"../store/checkout/index.js";var k=s((function(s){var k=s.customizationProps,b=s.configJson,P=o(s,["customizationProps","configJson"]),F=d(),w=i.useState(),_=w[0],T=w[1],S=i.useState(P.checkoutSettings),B=S[0],I=S[1],O=i.useState(!1),D=O[0],L=O[1];j.init(b),v.setCDNUrl(process.env.NEXT_PUBLIC_SETTINGS_CDN_URL),u(),i.useEffect((function(){!function(o){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==o?void 0:o.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==o?void 0:o.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==o?void 0:o.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==o?void 0:o.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==o?void 0:o.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==o?void 0:o.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==o?void 0:o.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==o?void 0:o.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==o?void 0:o.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==o?void 0:o.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==o?void 0:o.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==o?void 0:o.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==o?void 0:o.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==o?void 0:o.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==o?void 0:o.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==o?void 0:o.successLightColor)||"#F6FFED"),document.documentElement.style.setProperty("--checkout-secondary-button-bg-color",(null==o?void 0:o.secondaryButtonBgColor)||"#ffffff00"),document.documentElement.style.setProperty("--checkout-secondary-button-text-color",(null==o?void 0:o.secondaryButtonTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-button-border-color",(null==o?void 0:o.secondaryButtonBorderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-loyalty-icon-color",(null==o?void 0:o.loyaltyIconColor)||"#F5B53F"),document.documentElement.style.setProperty("--checkout-campaign-title-color",(null==o?void 0:o.campaignOffersTitleColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-description-color",(null==o?void 0:o.campaignOffersDescriptionColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-container-bg-color",(null==o?void 0:o.campaignOffersContainerBgColor)||"#ffffff"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-color",(null==o?void 0:o.campaignOffersDiscountPercentageColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-discount-percentage-bg-color",(null==o?void 0:o.campaignOffersDiscountPercentageBgColor)||"#FFF1BD"),document.documentElement.style.setProperty("--checkout-campaign-countdown-text-color",(null==o?void 0:o.campaignOffersCountdownTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-campaign-countdown-time-color",(null==o?void 0:o.campaignOffersCountdownTimeColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-campaign-countdown-bg-color",(null==o?void 0:o.campaignOffersCountdownBgColor)||"#FFF5F6"),document.documentElement.style.setProperty("--checkout-campaign-middle-phase-overlay-color",(null==o?void 0:o.campaignOffersMiddlePhaseOverlayColor)||"#292727ad"),document.documentElement.style.lineHeight="1.5"}(k)}),[k]),i.useEffect((function(){g.getInstance().checkLocalization(),U(),h()}),[]);var U=i.useCallback((function(){return e(void 0,void 0,void 0,(function(){var o,e,r,i,s,n,d,a,m,c,u,v,h,k,b,P,w,_,S,O,D,U;return t(this,(function(t){switch(t.label){case 0:if(o=new URLSearchParams(window.location.search),e=o.get("id"),r=o.get("step"),i=o.get("lines"),s=o.get("couponCode"),n=o.get("miniCart"),!i)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),(d=g.getInstance().cartStore).removeCart(),a=i.split(","),m=a.map((function(o){var e=o.split(":"),t=e[0],r=e[1];return{variantId:t,quantity:parseInt(r)}})),c={variantLines:m,couponCode:s||void 0},[4,d.createCart(c)];case 2:return(u=t.sent()).success&&(v=j.getCurrentRouting(),h=(null==v?void 0:v.path)?"/".concat(v.path):"",k=n?"&miniCart=".concat(encodeURIComponent(n)):"",window.location.href="".concat(h,"/checkout?id=").concat(null===(D=u.response.data)||void 0===D?void 0:D.id,"&step=info").concat(k)),[3,4];case 3:return b=t.sent(),console.error("Error creating cart:",b),[3,4];case 4:return[2];case 5:return e?(P=!1,r&&r===l.SUCCESS&&(P=!0),[4,p({id:e,getCompletedCart:P,targetPageType:f.CHECKOUT})]):[2,F.replace("/")];case 6:if(w=t.sent(),B)return[3,10];t.label=7;case 7:return t.trys.push([7,9,,10]),[4,Promise.race([E.listCheckoutSettings({}),new Promise((function(o,e){return setTimeout((function(){return e(new Error("timeout"))}),1e4)}))])];case 8:return(_=t.sent()).isSuccess&&(null===(U=_.data)||void 0===U?void 0:U.length)?(I(_.data[0]),[3,10]):(console.error("CHECKOUT SETTINGS FETCH FAILED!"),L(!0),[2]);case 9:return S=t.sent(),console.error("CHECKOUT SETTINGS FETCH FAILED!",S),L(!0),[2];case 10:return w.isSuccess&&w.data?(O=w.data,T(new x(O)),g.getInstance().cartStore.setCart(new y(O))):w.errorCodes.some((function(o){return o===C.LOGIN_REQUIRED}))?F.replace("/account/login?redirect="+encodeURIComponent(window.location.href)):F.replace("/"),[2]}}))}))}),[]);if(D){var N=j.getMerchantSettings();return i.createElement(m,{logo:(null==k?void 0:k.logo)||(null==N?void 0:N.logo),merchantName:null==N?void 0:N.merchantName,backHref:c(),returnPolicy:P.returnPolicy,privacyPolicy:P.privacyPolicy,termsOfService:P.termsOfService,imprint:P.imprint,shippingPolicy:P.shippingPolicy})}return _&&B?i.createElement(n,r({checkout:_,customizationProps:k},P,{checkoutSettings:B})):i.createElement(a,null)}));export{k as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "6.1.0-beta.388",
3
+ "version": "6.1.0-beta.389",
4
4
  "description": "Storefront functionality for ikas storefront themes.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -23,11 +23,11 @@
23
23
  "swiper": "11.0.6"
24
24
  },
25
25
  "devDependencies": {
26
- "@ikas/storefront-api": "^6.1.0-beta.388",
27
- "@ikas/storefront-config": "^6.1.0-beta.388",
28
- "@ikas/storefront-model-functions": "^6.1.0-beta.388",
29
- "@ikas/storefront-models": "^6.1.0-beta.388",
30
- "@ikas/storefront-providers": "^6.1.0-beta.388",
26
+ "@ikas/storefront-api": "^6.1.0-beta.389",
27
+ "@ikas/storefront-config": "^6.1.0-beta.389",
28
+ "@ikas/storefront-model-functions": "^6.1.0-beta.389",
29
+ "@ikas/storefront-models": "^6.1.0-beta.389",
30
+ "@ikas/storefront-providers": "^6.1.0-beta.389",
31
31
  "@ikas/localized-address": "1.0.0-beta.6",
32
32
  "@adyen/adyen-web": "^5.57.0",
33
33
  "@rollup/plugin-commonjs": "^22.0.0",
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@ikas/localized-address": "1.0.0-beta.6",
65
- "@ikas/storefront-api": "^6.1.0-beta.388",
66
- "@ikas/storefront-config": "^6.1.0-beta.388",
67
- "@ikas/storefront-model-functions": "^6.1.0-beta.388",
68
- "@ikas/storefront-models": "^6.1.0-beta.388",
69
- "@ikas/storefront-providers": "^6.1.0-beta.388",
65
+ "@ikas/storefront-api": "^6.1.0-beta.389",
66
+ "@ikas/storefront-config": "^6.1.0-beta.389",
67
+ "@ikas/storefront-model-functions": "^6.1.0-beta.389",
68
+ "@ikas/storefront-models": "^6.1.0-beta.389",
69
+ "@ikas/storefront-providers": "^6.1.0-beta.389",
70
70
  "mobx": "^6.1.3",
71
71
  "mobx-react-lite": "^3.1.5",
72
72
  "next": "12.2.0",
@@ -1,6 +0,0 @@
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;
@@ -1 +0,0 @@
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};
@@ -1,6 +0,0 @@
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;
@@ -1 +0,0 @@
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};
@@ -1,6 +0,0 @@
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;
@@ -1 +0,0 @@
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};