@ikas/storefront 4.8.0-beta.2 → 4.8.0-beta.20

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 (30) hide show
  1. package/build/analytics/facebookPixel.js +1 -1
  2. package/build/analytics/googleTagManager.js +1 -1
  3. package/build/components/checkout/components/cart-summary/index.d.ts +11 -0
  4. package/build/components/checkout/components/cart-summary/index.js +1 -1
  5. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  6. package/build/components/checkout/components/epaykolay-button/index.js +1 -1
  7. package/build/components/checkout/components/epaykolay-button/style.module.scss.js +1 -1
  8. package/build/components/checkout/components/notification-box/index.d.ts +1 -0
  9. package/build/components/checkout/components/notification-box/index.js +1 -1
  10. package/build/components/checkout/components/svg/epaykolay.js +1 -1
  11. package/build/components/checkout/index.js +1 -1
  12. package/build/components/checkout/model.d.ts +5 -0
  13. package/build/components/checkout/model.js +1 -1
  14. package/build/components/checkout/style.module.scss.js +1 -1
  15. package/build/components/google-captcha/index.js +1 -1
  16. package/build/components/link/index.js +1 -1
  17. package/build/components/page/head.js +1 -1
  18. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  19. package/build/components/page-editor/model.js +1 -1
  20. package/build/index.js +1 -1
  21. package/build/models/data/checkout-settings/index.d.ts +2 -1
  22. package/build/models/data/checkout-settings/index.js +1 -1
  23. package/build/models/data/filter-category/index.d.ts +1 -0
  24. package/build/models/data/filter-category/index.js +1 -1
  25. package/build/models/data/index.d.ts +1 -0
  26. package/build/models/data/video/index.d.ts +11 -0
  27. package/build/models/data/video/index.js +1 -0
  28. package/build/page-data-init/index.d.ts +9 -1
  29. package/build/page-data-init/index.js +1 -1
  30. package/package.json +11 -11
@@ -1 +1 @@
1
- import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",(r=t,{content_name:r.name,content_category:r.categories.length>0?r.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[r.selectedVariant.id],content_type:"product",value:r.selectedVariant.price.finalPrice,currency:""===r.selectedVariant.price.currency?"TRY":r.selectedVariant.price.currency})))}catch(t){console.error(t)}var r},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",function(t,n){var r,e=[];t.variant.categories&&(null===(r=t.variant.categories[0].categoryPath)||void 0===r||r.map((function(t){return e.push(t.name)}))),t.variant.categories&&t.variant.categories.length>0&&e.push(t.variant.categories[0].name);var o=e.length>0?e.join(" > "):"";return{content_name:t.variant.name,content_category:o,content_ids:[t.variant.id],content_type:"product",value:t.finalPrice,currency:t.currencyCode}}(t),{eventID:e}))}catch(t){console.error(t)}},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalFinalPrice,num_items:t.items.length}}export{r as FacebookPixel};
1
+ import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",(r=t,{content_name:r.name,content_category:r.categories.length>0?r.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[r.selectedVariant.id],content_type:"product",value:r.selectedVariant.price.finalPrice,currency:""===r.selectedVariant.price.currency?"TRY":r.selectedVariant.price.currency})))}catch(t){console.error(t)}var r},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",function(t,n){var r,e=[];t.variant.categories&&(null===(r=t.variant.categories[0].categoryPath)||void 0===r||r.map((function(t){return e.push(t.name)}))),t.variant.categories&&t.variant.categories.length>0&&e.push(t.variant.categories[0].name);var o=e.length>0?e.join(" > "):"";return{content_name:t.variant.name,content_category:o,content_ids:[t.variant.id],content_type:"product",value:t.finalPrice,currency:t.currencyCode}}(t),{eventID:e}))}catch(t){console.error(t)}},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"product",content_ids:n,currency:t.items[0].currencyCode,value:t.totalFinalPrice,num_items:t.items.length}}export{r as FacebookPixel};
@@ -1 +1 @@
1
- import{makeAutoObservable as e}from"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"../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/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/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/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{IkasProduct as t}from"../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/theme-json/index.js";import"../models/data/theme-json/component/index.js";import"../models/data/theme-json/custom-data/index.js";import"../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/brand-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/ikas-address.js";import"../models/ui/validator/form/register.js";import"../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{CheckoutStep as o}from"../components/checkout/model.js";import"./analytics.js";import"./head/index.js";import"../components/page/index.js";import"../components/page/head.js";import"react";import"next/image.js";import"@ikas/storefront-model-functions";import"../components/link/index.js";import"../components/page-editor/loader/style.module.scss.js";import"../components/google-captcha/index.js";import"../pages/home.js";import"../pages/_slug_/index.js";import"../pages/pages/_slug_.js";import"../pages/checkout.js";import"../pages/account/index.js";import"../pages/account/addresses.js";import"../pages/account/orders/index.js";import"../pages/account/orders/_id_.js";import"../pages/account/login.js";import"../pages/account/register.js";import"../pages/account/forgot-password.js";import"../pages/account/recover-password.js";import"../pages/cart.js";import"../pages/editor.js";import"../pages/account/favorite-products.js";import"../pages/search.js";import"next/error.js";import"../pages/blog/index.js";import"../pages/blog/_slug_.js";import"../pages/raffle/_slug_.js";import"../pages/raffle/index.js";import"../pages/account/raffles.js";import"../pages/account/activate.js";import{IkasBaseStore as r}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";import"@ikas/storefront-config";import"lodash/get";var a="undefined"==typeof window,i=function(){function i(){e(this)}return i.pageView=function(e){try{var t={event:"page-view-GTM",page:e};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.productView=function(e){var t,o;try{var r={event:"view_item-GTM",ecommerce:{items:[s(e)],extraParams:{parent_id:e.id,currency:e.selectedVariant.price.currency,url:"https://".concat(window.location.hostname).concat(e.href),item_image:(null===(o=null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.image)||void 0===o?void 0:o.src)||""}}};return!a&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},i.addToCart=function(e,o){var i=r.getInstance().cartStore.cart;try{var n={event:"add_to_cart-GTM",ecommerce:{items:[e instanceof t?s(e,o):d(e,o)],cart:i}};return!a&&window.dataLayer&&window.dataLayer.push(n),n}catch(e){console.error(e)}},i.removeFromCart=function(e,o){var i=r.getInstance().cartStore.cart;try{var n={event:"remove_from_cart-GTM",ecommerce:{items:[e instanceof t?s(e,o):d(e,o)],cart:0===(null==i?void 0:i.itemCount)?null:i}};return!a&&window.dataLayer&&window.dataLayer.push(n),n}catch(e){console.error(e)}},i.beginCheckout=function(e){try{var t={event:"begin_checkout-GTM",ecommerce:{items:e.items.map((function(e){return d(e,e.quantity)}))}};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.purchase=function(e,t){try{var o={event:"purchase-GTM",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+e.totalTax,shipping:""+e.shippingTotal,currency:e.currencyCode,coupon:e.couponCode,items:e.items.map((function(e){return d(e,e.quantity)}))}}};return!a&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.checkoutStep=function(e,t){var r,i,s=e;null===(r=s.shippingAddress)||void 0===r||delete r.checkoutSettings,null===(i=s.billingAddress)||void 0===i||delete i.checkoutSettings;var d="";t===o.INFO?d="checkout_info-GTM":t===o.SHIPPING?d="checkout_shipping-GTM":t===o.PAYMENT?d="checkout_payment-GTM":t===o.SUCCESS&&(d="checkout_success-GTM");try{var n={event:d,ecommerce:{cart:s}};return!a&&window.dataLayer&&window.dataLayer.push(n),n}catch(e){console.error(e)}},i.disableHTML=function(){try{!a&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},i.completeRegistration=function(e){try{var t={event:"customer_register-GTM",customer:e};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.search=function(e){try{var t={event:"search-GTM",search_string:e};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCategory=function(e,t){try{var o={event:"view_category-GTM",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!a&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},i.customerLogin=function(e){try{var t={event:"customer_login-GTM",customer:e};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.customerVisit=function(e){try{var t={event:"customer_visit-GTM",customer:e};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i.viewCart=function(e){try{var t={event:"view_cart-GTM",ecommerce:{cart:e}};return!a&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},i}();function s(e,t){var o;return void 0===t&&(t=1),{item_name:e.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(o=e.brand)||void 0===o?void 0:o.name)||"",item_category:e.categories.length?e.categories[0].name:"",item_category_2:e.categories.length>1?e.categories[1].name:"",item_category_3:e.categories.length>2?e.categories[2].name:"",item_category_4:e.categories.length>3?e.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function d(e,t){var o;return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:null===(o=e.variant.variantValues)||void 0===o?void 0:o.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{i as GoogleTagManager};
1
+ import{makeAutoObservable as e}from"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"../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/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/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/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{IkasProduct as t}from"../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/theme-json/index.js";import"../models/data/theme-json/component/index.js";import"../models/data/theme-json/custom-data/index.js";import"../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/brand-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/ikas-address.js";import"../models/ui/validator/form/register.js";import"../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{CheckoutStep as o}from"../components/checkout/model.js";import"./analytics.js";import"./head/index.js";import"../components/page/index.js";import"../components/page/head.js";import"react";import"next/image.js";import"@ikas/storefront-model-functions";import"../components/link/index.js";import"../components/page-editor/loader/style.module.scss.js";import"../components/google-captcha/index.js";import"../pages/home.js";import"../pages/_slug_/index.js";import"../pages/pages/_slug_.js";import"../pages/checkout.js";import"../pages/account/index.js";import"../pages/account/addresses.js";import"../pages/account/orders/index.js";import"../pages/account/orders/_id_.js";import"../pages/account/login.js";import"../pages/account/register.js";import"../pages/account/forgot-password.js";import"../pages/account/recover-password.js";import"../pages/cart.js";import"../pages/editor.js";import"../pages/account/favorite-products.js";import"../pages/search.js";import"next/error.js";import"../pages/blog/index.js";import"../pages/blog/_slug_.js";import"../pages/raffle/_slug_.js";import"../pages/raffle/index.js";import"../pages/account/raffles.js";import"../pages/account/activate.js";import{IkasBaseStore as r}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";import"@ikas/storefront-config";import"lodash/get";import a from"lodash/cloneDeep";var i="undefined"==typeof window,s=function(){function s(){e(this)}return s.pageView=function(e){try{var t={event:"page-view-GTM",page:e};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.productView=function(e){var t,o;try{var r={event:"view_item-GTM",ecommerce:{items:[d(e)],extraParams:{parent_id:e.id,currency:e.selectedVariant.price.currency,url:"https://".concat(window.location.hostname).concat(e.href),item_image:(null===(o=null===(t=e.selectedVariant.mainImage)||void 0===t?void 0:t.image)||void 0===o?void 0:o.src)||""}}};return!i&&window.dataLayer&&window.dataLayer.push(r),r}catch(e){console.error(e)}},s.addToCart=function(e,o){var a=r.getInstance().cartStore.cart;try{var s={event:"add_to_cart-GTM",ecommerce:{items:[e instanceof t?d(e,o):n(e,o)],cart:a}};return!i&&window.dataLayer&&window.dataLayer.push(s),s}catch(e){console.error(e)}},s.removeFromCart=function(e,o){var a=r.getInstance().cartStore.cart;try{var s={event:"remove_from_cart-GTM",ecommerce:{items:[e instanceof t?d(e,o):n(e,o)],cart:0===(null==a?void 0:a.itemCount)?null:a}};return!i&&window.dataLayer&&window.dataLayer.push(s),s}catch(e){console.error(e)}},s.beginCheckout=function(e){try{var t={event:"begin_checkout-GTM",ecommerce:{items:e.items.map((function(e){return n(e,e.quantity)}))}};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.purchase=function(e,t){try{var o={event:"purchase-GTM",ecommerce:{purchase:{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+e.totalTax,shipping:""+e.shippingTotal,currency:e.currencyCode,coupon:e.couponCode,items:e.items.map((function(e){return n(e,e.quantity)}))}}};return!i&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},s.checkoutStep=function(e,t){var r,s,d=a(e);null===(r=d.shippingAddress)||void 0===r||delete r.checkoutSettings,null===(s=d.billingAddress)||void 0===s||delete s.checkoutSettings;var n="";t===o.INFO?n="checkout_info-GTM":t===o.SHIPPING?n="checkout_shipping-GTM":t===o.PAYMENT?n="checkout_payment-GTM":t===o.SUCCESS&&(n="checkout_success-GTM");try{var m={event:n,ecommerce:{cart:d}};return!i&&window.dataLayer&&window.dataLayer.push(m),m}catch(e){console.error(e)}},s.disableHTML=function(){try{!i&&window.dataLayer&&window.dataLayer.push({"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts"]})}catch(e){console.error(e)}},s.completeRegistration=function(e){try{var t={event:"customer_register-GTM",customer:e};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.search=function(e){try{var t={event:"search-GTM",search_string:e};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.viewCategory=function(e,t){try{var o={event:"view_category-GTM",ecommerce:{category:[{id:e.id,name:e.name,metaData:e.metaData,href:e.href,image:e.image,path:t}]}};return!i&&window.dataLayer&&window.dataLayer.push(o),o}catch(e){console.error(e)}},s.customerLogin=function(e){try{var t={event:"customer_login-GTM",customer:e};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.customerVisit=function(e){try{var t={event:"customer_visit-GTM",customer:e};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s.viewCart=function(e){try{var t={event:"view_cart-GTM",ecommerce:{cart:e}};return!i&&window.dataLayer&&window.dataLayer.push(t),t}catch(e){console.error(e)}},s}();function d(e,t){var o;return void 0===t&&(t=1),{item_name:e.name,item_id:e.selectedVariant.id,price:e.selectedVariant.price.finalPrice,item_brand:(null===(o=e.brand)||void 0===o?void 0:o.name)||"",item_category:e.categories.length?e.categories[0].name:"",item_category_2:e.categories.length>1?e.categories[1].name:"",item_category_3:e.categories.length>2?e.categories[2].name:"",item_category_4:e.categories.length>3?e.categories[3].name:"",item_variant:e.selectedVariant.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}function n(e,t){var o;return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:null===(o=e.variant.variantValues)||void 0===o?void 0:o.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{s as GoogleTagManager};
@@ -9,4 +9,15 @@ export declare enum CouponErrorCode {
9
9
  COUPON_CODE_NOT_EXIST_FOR_GUESS = "COUPON_CODE_NOT_EXIST_FOR_GUESS"
10
10
  }
11
11
  export declare const CartSummary: React.FC<Props>;
12
+ declare type CommonProps = {
13
+ vm: CheckoutViewModel;
14
+ };
15
+ declare type CouponProps = {
16
+ isAddingCoupon: boolean;
17
+ setAddingCoupon: (value: boolean) => void;
18
+ setCouponError: (value: boolean) => void;
19
+ setCouponErrorCode: (value: CouponErrorCode | null) => void;
20
+ isOpenCouponCode?: boolean;
21
+ } & CommonProps;
22
+ export declare const Coupon: React.FC<CouponProps>;
12
23
  export {};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as n from"react";import{observer as o}from"mobx-react-lite";import a from"lodash/sortBy";import c from"../input-with-button/index.js";import r from"../notification-box/index.js";import{CheckoutStep as l}from"../../model.js";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{formatCurrency as u}from"../../../../utils/currency.js";import{useTranslation as s}from"../../../../utils/i18n.js";import{CartItem as m}from"./cart-item/index.js";import{FormItem as d}from"../form-item/index.js";import{FormItemType as p}from"../form-item/model.js";import E from"../tooltip/index.js";import C from"../svg/arrow-down.js";import v from"../svg/cross.js";import h from"../svg/gift.js";import f from"./style.module.scss.js";import k from"../svg/ikas.js";var N;!function(e){e.COUPON_CODE_NOT_EXIST="COUPON_CODE_NOT_EXIST",e.COUPON_CODE_NOT_EXIST_FOR_GUESS="COUPON_CODE_NOT_EXIST_FOR_GUESS"}(N||(N={}));var g=o((function(e){var t,o,a=e.vm,c=e.allowExpand,d=a.checkout,p=s().t,E=n.useState(!c),v=E[0],h=E[1],g=n.useState(!1),x=g[0],_=g[1],P=n.useState(null),I=P[0],j=P[1],w=n.useState(0),A=w[0],R=w[1],D=n.useState(null),U=D[0],L=D[1],B=n.useState(!1),F=B[0],X=B[1],M=n.useState(!1),G=M[0],V=M[1];n.useEffect((function(){c&&(v?U&&R(U.getBoundingClientRect().height):R(0))}),[v,U,c,F,G,x]);var z=n.useMemo((function(){switch(I){case N.COUPON_CODE_NOT_EXIST:return p("checkout-page:giftCodeErrorDescription");case N.COUPON_CODE_NOT_EXIST_FOR_GUESS:return p("checkout-page:mustBeSignInToApplyCampaign");default:return""}}),[I]),H=[f.CartSummary,c?f.HideOnDesktop:""].join(" "),$=c?{height:A+"px"}:void 0,Q=[f.ArrowDown,v?f.Rotated:""].join(" ");return d?n.createElement(n.Fragment,null,!!c&&n.createElement(n.Fragment,null,n.createElement("div",{id:"checkout-mobile-summary-header"}),n.createElement("div",{className:f.ExpandHeader,onClick:function(){if(!v){var e=document.getElementById("Checkout"),t=document.getElementById("checkout-mobile-summary-header");e&&t&&e.scrollTo({top:t.offsetTop,behavior:"smooth"})}h(!v)}},n.createElement("div",{className:f.Left},p("checkout-page:summary")),n.createElement("div",{className:f.Price},n.createElement("span",{className:f.PriceText},"".concat(u(a.finalPrice||0,d.currencyCode,d.currencySymbol)," (").concat(d.itemQuantity," ").concat(p("checkout-page:cartItemProduct"),")")),n.createElement("span",{className:Q},n.createElement(C,null))))),n.createElement("div",{className:H},n.createElement("div",{className:f.DetailsContainer,style:$},n.createElement("div",{className:f.Details,ref:L},n.createElement("div",{className:f.ItemsContainer},d.items.map((function(e,t){return n.createElement(m,{key:t,vm:a,cartItem:e,currencyCode:d.currencyCode})}))),n.createElement("div",{className:f.Divider}),n.createElement("div",{className:f.SubTotalInfo},x&&n.createElement("div",{className:f.NotificationContainer},n.createElement(r,{type:"warning",title:p("checkout-page:giftCodeErrorTitle"),content:z,onClose:function(){_(!1),j(null)}})),n.createElement(y,{label:p("checkout-page:subtotal"),value:d.formattedTotalPrice,tooltipText:p("checkout-page:subtotalTooltip")}),!!(null===(t=d.shippingLines)||void 0===t?void 0:t.length)&&n.createElement(y,{label:p("checkout-page:cartShippingTitle"),value:d.shippingTotal?d.formattedShippingTotal:p("checkout-page:free")}),!!a.installmentExtraPrice&&n.createElement(y,{label:p("checkout-page:cartInterest"),value:u(a.installmentExtraPrice,d.currencyCode,d.currencySymbol)}),n.createElement(S,{vm:a}),n.createElement(T,{vm:a}),(a.step===l.SUCCESS&&(!!a.checkout.note||!!a.checkout.appliedCouponCode)||a.step!==l.SUCCESS)&&n.createElement("div",{className:f.Divider,style:{marginTop:"24px",marginBottom:"24px"}}),n.createElement(b,{vm:a,isAddingCoupon:G,setAddingCoupon:V,setCouponError:_,setCouponErrorCode:j}),n.createElement(O,{vm:a,isAddingNote:F,setAddingNote:X})),n.createElement("div",{className:f.TotalContainer},n.createElement("div",{className:f.TitleContainer},n.createElement("div",{className:f.Title},p("checkout-page:total"))),n.createElement("div",null,n.createElement("div",{className:f.TotalPricesContainer},n.createElement("div",{className:f.TotalPrice},u(a.finalPrice||0,d.currencyCode,d.currencySymbol)),!!d.$totalTax&&!!(null===(o=a.customizationProps)||void 0===o?void 0:o.showTax)&&n.createElement("div",{className:[f.TotalTax].join(" ")},p("checkout-page:cartTaxTitle")+" "+d.$formattedTotalTax)))),n.createElement("div",{className:f.PoweredBy},n.createElement("span",null,"powered by"),n.createElement("a",{href:"https://ikas.com"+("tr"===i.getCurrentLocale()?"/tr":""),target:"_blank"},n.createElement(k,null))))))):null})),y=o((function(e){var t=e.label,o=e.value,a=e.tooltipText;return n.createElement("div",{className:f.InfoRow},n.createElement("div",{className:f.Label},n.createElement("span",null,t),!!a&&n.createElement(E,{text:a,style:{marginLeft:"8px"}})),n.createElement("div",{className:f.Value},o))})),S=o((function(e){var t=e.vm,o=s().t;return t.checkout?n.createElement(n.Fragment,null,a(t.checkout.nonCouponAdjustments||[],"order").map((function(e,a){return n.createElement("div",{className:f.InfoRow,key:a},n.createElement("div",{className:f.Label},"INTEREST"===e.name?o("checkout-page:cartInterest"):e.name),n.createElement("div",{className:f.Value},n.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",n.createElement("span",null,u(e.amount,t.checkout.currencyCode,t.checkout.currencySymbol))))}))):null})),T=o((function(e){var t,o,a=e.vm,c=s().t;return a.checkout?n.createElement(n.Fragment,null,a.step!==l.SUCCESS&&((null===(t=a.checkout.selectedPaymentGateway)||void 0===t?void 0:t.getCalculatedAdditionalPrices(a.checkout.totalFinalPrice||0,a.checkout.shippingLines||null))||[]).filter((function(e){return 0!==e.amount})).map((function(e,t){return n.createElement("div",{className:f.InfoRow,key:t},n.createElement("div",{className:f.Label},e.name),n.createElement("div",{className:f.Value},n.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",n.createElement("span",null,u(e.amount,a.checkout.currencyCode,a.checkout.currencySymbol))))})),null===(o=a.checkout.giftPackageLines)||void 0===o?void 0:o.map((function(e,t){return n.createElement("div",{className:f.InfoRow,key:t},n.createElement("div",{className:f.Label},n.createElement("div",{className:f.GiftLabel},n.createElement(h,{style:{position:"relative",top:"-1px"}}),n.createElement("span",null,c("checkout-page:giftPackage")))),n.createElement("div",{className:f.Value},n.createElement("span",null,u(e.price,a.checkout.currencyCode,a.checkout.currencySymbol))))}))):null})),b=o((function(o){var a=o.vm,r=o.isAddingCoupon,i=o.setAddingCoupon,m=o.setCouponError,d=o.setCouponErrorCode,p=s().t,E=n.useState(""),C=E[0],h=E[1],k=n.useState(!1),N=k[0],g=k[1],y=n.useRef(null);n.useEffect((function(){r&&y.current&&y.current.focus()}),[r]);if(a.step===l.SUCCESS&&!a.checkout.appliedCouponCode)return null;var S=a.checkout.couponAdjustment;return n.createElement("div",{className:f.InfoRow},!a.checkout.appliedCouponCode&&!r&&n.createElement("div",{className:f.ActionTextBtn,onClick:function(){return i(!0)}},p("checkout-page:addCouponCode")),r&&n.createElement(c,{value:C,placeholder:p("checkout-page:couponCode"),buttonLabel:p("checkout-page:actions.apply"),inputRef:y,onClick:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=C,g(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),g(!1),h(""),!a.checkout.appliedCouponCode||a.couponError?[3,3]:(i(!1),m(!1),d(null),[4,a.reInitPaymentMethod()]);case 2:return e.sent(),[3,4];case 3:a.checkout.couponCode=null,m(!0),d(a.couponError),e.label=4;case 4:return[2]}}))}))},isLoading:N,onChange:h}),!!a.checkout.appliedCouponCode&&!r&&n.createElement("div",{className:[f.ActionTextBtn,f.NoUnderline,f.Light].join(" ")},p("checkout-page:couponCode"),n.createElement("span",{className:f.AppliedCoupon},n.createElement("span",{className:f.CouponCode},a.checkout.appliedCouponCode),a.step!==l.SUCCESS&&n.createElement("span",{className:f.ClearCoupon,onClick:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=null,g(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),[4,a.reInitPaymentMethod()];case 2:return e.sent(),g(!1),[2]}}))}))}},n.createElement(v,null)))),!!a.checkout.appliedCouponCode&&!r&&n.createElement("div",{className:f.Value},n.createElement("span",null,"DECREMENT"===(null==S?void 0:S.type)?"- ":"")," ",n.createElement("span",null,u((null==S?void 0:S.amount)||0,a.checkout.currencyCode,a.checkout.currencySymbol))))})),O=o((function(e){var t=e.vm,o=e.isAddingNote,a=e.setAddingNote,c=s().t,r=n.useState(t.checkout.note?c("checkout-page:editOrderNote"):c("checkout-page:addOrderNote"))[0],i=n.useCallback((function(){a(!0)}),[]),u=n.useCallback((function(e){t.checkout.note=e}),[t,t.checkout]);if(!t.checkoutSettings.showCheckoutNote)return null;var m=t.step===l.SUCCESS;return m&&!t.checkout.note?null:n.createElement("div",{className:f.InfoRow},!o&&!m&&n.createElement("div",{className:f.ActionTextBtn,onClick:i},r),(o||m)&&n.createElement("div",{className:[f.CheckoutNoteContainer,m?f.Success:""].join(" ")},n.createElement("div",{className:f.Title},c("checkout-page:orderNote")),m?n.createElement("div",{className:f.CheckoutNoteDisplay},t.checkout.note):n.createElement(d,{style:{width:"100%"},type:p.TEXT_AREA,disableResize:!0,label:"",value:t.checkout.note||"",onChange:u})))}));export{g as CartSummary,N as CouponErrorCode};
1
+ import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as n}from"mobx-react-lite";import a from"lodash/sortBy";import c from"../input-with-button/index.js";import l from"../notification-box/index.js";import{CheckoutStep as r}from"../../model.js";import{IkasStorefrontConfig as i}from"@ikas/storefront-config";import{formatCurrency as u}from"../../../../utils/currency.js";import{useTranslation as s}from"../../../../utils/i18n.js";import{CartItem as m}from"./cart-item/index.js";import{FormItem as p}from"../form-item/index.js";import{FormItemType as d}from"../form-item/model.js";import E from"../tooltip/index.js";import C from"../svg/arrow-down.js";import h from"../svg/cross.js";import v from"../svg/gift.js";import f from"../../styles/common.module.scss.js";import k from"./style.module.scss.js";import g from"../svg/ikas.js";import{Button as N}from"../button/index.js";var y;!function(e){e.COUPON_CODE_NOT_EXIST="COUPON_CODE_NOT_EXIST",e.COUPON_CODE_NOT_EXIST_FOR_GUESS="COUPON_CODE_NOT_EXIST_FOR_GUESS"}(y||(y={}));var S=n((function(e){var t,n,a=e.vm,c=e.allowExpand,p=a.checkout,d=s().t,E=o.useState(!c),h=E[0],v=E[1],f=o.useState(!1),N=f[0],S=f[1],P=o.useState(null),_=P[0],I=P[1],A=o.useState(0),w=A[0],R=A[1],D=o.useState(null),U=D[0],B=D[1],L=o.useState(!1),F=L[0],M=L[1],V=o.useState(!1),X=V[0],G=V[1];o.useEffect((function(){c&&(h?U&&R(U.getBoundingClientRect().height):R(0))}),[h,U,c,F,X,N]);var q=o.useMemo((function(){switch(_){case y.COUPON_CODE_NOT_EXIST:return d("checkout-page:giftCodeErrorDescription");case y.COUPON_CODE_NOT_EXIST_FOR_GUESS:return d("checkout-page:mustBeSignInToApplyCampaign");default:return""}}),[_]),H=[k.CartSummary,c?k.HideOnDesktop:""].join(" "),z=c?{height:w+"px"}:void 0,$=[k.ArrowDown,h?k.Rotated:""].join(" ");return p?o.createElement(o.Fragment,null,!!c&&o.createElement(o.Fragment,null,o.createElement("div",{id:"checkout-mobile-summary-header"}),o.createElement("div",{className:k.ExpandHeader,onClick:function(){if(!h){var e=document.getElementById("Checkout"),t=document.getElementById("checkout-mobile-summary-header");e&&t&&e.scrollTo({top:t.offsetTop,behavior:"smooth"})}v(!h)}},o.createElement("div",{className:k.Left},d("checkout-page:summary")),o.createElement("div",{className:k.Price},o.createElement("span",{className:k.PriceText},"".concat(u(a.finalPrice||0,p.currencyCode,p.currencySymbol)," (").concat(p.itemQuantity," ").concat(d("checkout-page:cartItemProduct"),")")),o.createElement("span",{className:$},o.createElement(C,null))))),o.createElement("div",{className:H},o.createElement("div",{className:k.DetailsContainer,style:z},o.createElement("div",{className:k.Details,ref:B},o.createElement("div",{className:k.ItemsContainer},p.items.map((function(e,t){return o.createElement(m,{key:t,vm:a,cartItem:e,currencyCode:p.currencyCode})}))),o.createElement("div",{className:k.Divider}),o.createElement("div",{className:k.SubTotalInfo},N&&o.createElement("div",{className:k.NotificationContainer},o.createElement(l,{type:"warning",title:d("checkout-page:giftCodeErrorTitle"),content:q,onClose:function(){S(!1),I(null)}})),o.createElement(T,{label:d("checkout-page:subtotal"),value:p.formattedTotalPrice,tooltipText:d("checkout-page:subtotalTooltip"),hideMarginBottom:!a.isCouponCodeVisible}),!!(null===(t=p.shippingLines)||void 0===t?void 0:t.length)&&o.createElement(T,{label:d("checkout-page:cartShippingTitle"),value:p.shippingTotal?p.formattedShippingTotal:d("checkout-page:free")}),!!a.installmentExtraPrice&&o.createElement(T,{label:d("checkout-page:cartInterest"),value:u(a.installmentExtraPrice,p.currencyCode,p.currencySymbol)}),o.createElement(b,{vm:a}),o.createElement(x,{vm:a}),(a.step===r.SUCCESS&&(!!a.checkout.note||!!a.checkout.appliedCouponCode)||a.step!==r.SUCCESS)&&a.isCouponCodeVisible&&o.createElement("div",{className:k.Divider,style:{marginTop:"24px",marginBottom:"24px"}}),o.createElement(O,{vm:a,isAddingCoupon:X,setAddingCoupon:G,setCouponError:S,setCouponErrorCode:I}),o.createElement(j,{vm:a,isAddingNote:F,setAddingNote:M})),o.createElement("div",{className:k.TotalContainer},o.createElement("div",{className:k.TitleContainer},o.createElement("div",{className:k.Title},d("checkout-page:total"))),o.createElement("div",null,o.createElement("div",{className:k.TotalPricesContainer},o.createElement("div",{className:k.TotalPrice},u(a.finalPrice||0,p.currencyCode,p.currencySymbol)),!!p.$totalTax&&!!(null===(n=a.customizationProps)||void 0===n?void 0:n.showTax)&&o.createElement("div",{className:[k.TotalTax].join(" ")},d("checkout-page:cartTaxTitle")+" "+p.$formattedTotalTax)))),o.createElement("div",{className:k.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===i.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(g,null))))))):null})),T=n((function(e){var t=e.label,n=e.value,a=e.tooltipText,c=e.hideMarginBottom;return o.createElement("div",{className:[k.InfoRow,c?k.hideMb:""].join(" ")},o.createElement("div",{className:k.Label},o.createElement("span",null,t),!!a&&o.createElement(E,{text:a,style:{marginLeft:"8px"}})),o.createElement("div",{className:k.Value},n))})),b=n((function(e){var t=e.vm,n=s().t;return t.checkout?o.createElement(o.Fragment,null,a(t.checkout.nonCouponAdjustments||[],"order").map((function(e,a){return o.createElement("div",{className:k.InfoRow,key:a},o.createElement("div",{className:k.Label},"INTEREST"===e.name?n("checkout-page:cartInterest"):e.name),o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",o.createElement("span",null,u(e.amount,t.checkout.currencyCode,t.checkout.currencySymbol))))}))):null})),x=n((function(e){var t,n,a=e.vm,c=s().t;return a.checkout?o.createElement(o.Fragment,null,a.step!==r.SUCCESS&&((null===(t=a.checkout.selectedPaymentGateway)||void 0===t?void 0:t.getCalculatedAdditionalPrices(a.checkout.totalFinalPrice||0,a.checkout.shippingLines||null))||[]).filter((function(e){return 0!==e.amount})).map((function(e,t){return o.createElement("div",{className:k.InfoRow,key:t},o.createElement("div",{className:k.Label},e.name),o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===e.type?"- ":"")," ",o.createElement("span",null,u(e.amount,a.checkout.currencyCode,a.checkout.currencySymbol))))})),null===(n=a.checkout.giftPackageLines)||void 0===n?void 0:n.map((function(e,t){return o.createElement("div",{className:k.InfoRow,key:t},o.createElement("div",{className:k.Label},o.createElement("div",{className:k.GiftLabel},o.createElement(v,{style:{position:"relative",top:"-1px"}}),o.createElement("span",null,c("checkout-page:giftPackage")))),o.createElement("div",{className:k.Value},o.createElement("span",null,u(e.price,a.checkout.currencyCode,a.checkout.currencySymbol))))}))):null})),O=n((function(n){var a=n.vm,l=n.isAddingCoupon,i=n.setAddingCoupon,m=n.setCouponError,E=n.setCouponErrorCode,C=n.isOpenCouponCode,v=s().t,g=o.useState(""),y=g[0],S=g[1],T=o.useState(!1),b=T[0],x=T[1],O=o.useRef(null);o.useEffect((function(){l&&O.current&&O.current.focus()}),[l]);var j=function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=y,x(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),x(!1),S(""),!a.checkout.appliedCouponCode||a.couponError?[3,3]:(i(!1),m(!1),E(null),[4,a.reInitPaymentMethod()]);case 2:return e.sent(),[3,4];case 3:a.checkout.couponCode=null,m(!0),E(a.couponError),e.label=4;case 4:return[2]}}))}))},P=function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return a.checkout.couponCode=null,x(!0),[4,a.onCouponCodeApply()];case 1:return e.sent(),[4,a.reInitPaymentMethod()];case 2:return e.sent(),x(!1),[2]}}))}))},_=a.step===r.SUCCESS,I=a.step===r.SHIPPING;if(_&&!a.checkout.appliedCouponCode)return null;var A=a.checkout.couponAdjustment,w=!(!a.checkout.appliedCouponCode||l),R=!!a.checkout.appliedCouponCode&&C;return o.createElement(o.Fragment,null,!!C&&o.createElement(o.Fragment,null,o.createElement("div",{className:[k.CartSummary,k.OpenCouponCodeSummary].join(" ")},o.createElement("div",{className:f.FormSectionTitle},o.createElement("div",{style:{paddingBottom:R?0:6},className:f.Title},v("checkout-page:couponCode")),R&&o.createElement("div",{className:[k.ActionTextBtn,k.NoUnderline,k.Light].join(" ")},o.createElement("span",{className:[k.AppliedCoupon,k.AppliedCouponBgGray].join(" ")},o.createElement("span",{className:k.CouponCode},a.checkout.appliedCouponCode),!_&&o.createElement("span",{className:k.ClearCoupon,onClick:P},o.createElement(h,null))))))),w&&!I&&!a.isCouponCodeRequirementDefult&&o.createElement("div",{className:k.Divider,style:{marginTop:"24px",marginBottom:"24px"}}),o.createElement("div",{className:k.InfoRow},!a.checkout.appliedCouponCode&&!l&&a.isCouponCodeVisible&&o.createElement("div",{className:k.ActionTextBtn,onClick:function(){return i(!0)}},v("checkout-page:addCouponCode")),l&&!C&&o.createElement(c,{value:y,placeholder:v("checkout-page:couponCode"),buttonLabel:v("checkout-page:actions.apply"),inputRef:O,onClick:j,isLoading:b,onChange:S}),C&&!R&&o.createElement("div",{className:k.OpenCouponCodeMain},o.createElement(p,{label:v("checkout-page:couponCode"),type:d.TEXT,value:y,onChange:S}),o.createElement(N,{style:{width:"33%"},text:v("checkout-page:actions.apply"),isLoading:b,onClick:j})),w&&o.createElement("div",{className:[k.ActionTextBtn,k.NoUnderline,k.Light].join(" ")},v("checkout-page:couponCode"),o.createElement("span",{className:[k.AppliedCoupon,a.isCouponCodeRequirementDefult?"":k.NotClosed].join(" ")},o.createElement("span",{className:k.CouponCode},a.checkout.appliedCouponCode),a.step!==r.SUCCESS&&a.isCouponCodeRequirementDefult&&o.createElement("span",{className:k.ClearCoupon,onClick:P},o.createElement(h,null)))),w&&o.createElement("div",{className:k.Value},o.createElement("span",null,"DECREMENT"===(null==A?void 0:A.type)?"- ":"")," ",o.createElement("span",null,u((null==A?void 0:A.amount)||0,a.checkout.currencyCode,a.checkout.currencySymbol)))))})),j=n((function(e){var t=e.vm,n=e.isAddingNote,a=e.setAddingNote,c=s().t,l=o.useState(t.checkout.note?c("checkout-page:editOrderNote"):c("checkout-page:addOrderNote"))[0],i=o.useCallback((function(){a(!0)}),[]),u=o.useCallback((function(e){t.checkout.note=e}),[t,t.checkout]);if(!t.checkoutSettings.showCheckoutNote)return null;var m=t.step===r.SUCCESS;return m&&!t.checkout.note?null:o.createElement("div",{className:k.InfoRow},!n&&!m&&o.createElement("div",{className:k.ActionTextBtn,onClick:i},l),(n||m)&&o.createElement("div",{className:[k.CheckoutNoteContainer,m?k.Success:""].join(" ")},o.createElement("div",{className:k.Title},c("checkout-page:orderNote")),m?o.createElement("div",{className:k.CheckoutNoteDisplay},t.checkout.note):o.createElement(p,{style:{width:"100%"},type:d.TEXT_AREA,disableResize:!0,label:"",value:t.checkout.note||"",onChange:u})))}));export{S as CartSummary,O as Coupon,y as CouponErrorCode};
@@ -1 +1 @@
1
- import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={ExpandHeader:"style-module_ExpandHeader__LQwWm",Left:"style-module_Left__-N12h",Price:"style-module_Price__OT1Wh",PriceText:"style-module_PriceText__bq1pk",ArrowDown:"style-module_ArrowDown__YhRny",Rotated:"style-module_Rotated__ZPfId",CartSummary:"style-module_CartSummary__m77tn",HideOnDesktop:"style-module_HideOnDesktop__Vs5AV",ItemsContainer:"style-module_ItemsContainer__QFKQV",DetailsContainer:"style-module_DetailsContainer__PK33m",Details:"style-module_Details__hWJ9o",Divider:"style-module_Divider__MNDti",ActionTextBtn:"style-module_ActionTextBtn__7yua4",NoUnderline:"style-module_NoUnderline__FphKn",Light:"style-module_Light__dIcW-",SubTotalInfo:"style-module_SubTotalInfo__JMqK9",InfoRow:"style-module_InfoRow__oAvZS",Label:"style-module_Label__28Bij",Value:"style-module_Value__7rELF",TotalContainer:"style-module_TotalContainer__sGR7d",TitleContainer:"style-module_TitleContainer__LgmJI",Title:"style-module_Title__oMVSD",TotalPricesContainer:"style-module_TotalPricesContainer__-PsOD",TotalPrice:"style-module_TotalPrice__QBdM1",TotalTax:"style-module_TotalTax__9pA4Y",AppliedCoupon:"style-module_AppliedCoupon__UNo1h",CouponCode:"style-module_CouponCode__UKPmf",ClearCoupon:"style-module_ClearCoupon__CBAzl",NotificationContainer:"style-module_NotificationContainer__AXfJT",CheckoutNoteContainer:"style-module_CheckoutNoteContainer__d-z4m",CheckoutNoteDisplay:"style-module_CheckoutNoteDisplay__DtnXo",Success:"style-module_Success__VI2Bw",GiftLabel:"style-module_GiftLabel__cazrS",PoweredBy:"style-module_PoweredBy__DKBJF"};e(".style-module_ExpandHeader__LQwWm {\n position: sticky;\n top: 0;\n z-index: 10;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 48px;\n padding: 0 24px;\n width: 100%;\n border-top: 1px solid var(--checkout-border-color);\n border-bottom: 1px solid var(--checkout-border-color);\n transition: border-bottom 0.3s;\n user-select: none;\n background-color: var(--checkout-primary-bg-color);\n}\n@media only screen and (min-width: 1000px) {\n .style-module_ExpandHeader__LQwWm {\n display: none;\n }\n}\n.style-module_ExpandHeader__LQwWm .style-module_Left__-N12h {\n display: flex;\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh {\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_PriceText__bq1pk {\n font-weight: 600;\n margin-right: 8px;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_ArrowDown__YhRny {\n transition: all 0.3s;\n display: flex;\n align-items: center;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_ArrowDown__YhRny.style-module_Rotated__ZPfId {\n transform: rotate(-180deg);\n}\n\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn {\n width: 100%;\n background-color: var(--checkout-card-bg-color);\n }\n}\n@media only screen and (min-width: 1000px) {\n .style-module_CartSummary__m77tn.style-module_HideOnDesktop__Vs5AV {\n display: none;\n }\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV {\n max-height: 320px;\n overflow-y: auto;\n padding-top: 10px;\n margin-bottom: 24px;\n /* Track */\n /* Handle */\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV {\n max-height: unset;\n }\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar {\n width: 10px;\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #E3E7EF;\n border: solid 3px transparent;\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px #000000;\n border: solid 3px transparent;\n}\n.style-module_CartSummary__m77tn .style-module_DetailsContainer__PK33m {\n overflow: hidden;\n width: 100%;\n transition: height 0.3s ease-in-out;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_DetailsContainer__PK33m {\n padding: 0 24px;\n box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2);\n }\n}\n.style-module_CartSummary__m77tn .style-module_Details__hWJ9o {\n overflow: hidden;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_Details__hWJ9o {\n padding-top: 24px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_Divider__MNDti {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: var(--checkout-border-color);\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4 {\n color: var(--checkout-primary-text-color);\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4:hover {\n text-decoration: underline;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4.style-module_NoUnderline__FphKn:hover {\n text-decoration: none;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4.style-module_Light__dIcW- {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 {\n padding: 24px 0;\n border-bottom: 1px solid var(--checkout-border-color);\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS .style-module_Label__28Bij {\n color: var(--checkout-secondary-text-color);\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS .style-module_Value__7rELF {\n flex: 0 0 auto;\n padding-left: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS:last-of-type {\n margin-bottom: 0;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d {\n display: flex;\n justify-content: space-between;\n margin-top: 12px;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TitleContainer__LgmJI .style-module_Title__oMVSD {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalPricesContainer__-PsOD {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalPrice__QBdM1 {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalTax__9pA4Y {\n font-size: 14px;\n line-height: 24px;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d {\n height: 64px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h {\n display: flex;\n align-items: center;\n padding: 4px 4px 4px 8px;\n background-color: white;\n border-radius: 6px;\n margin-left: 12px;\n font-size: 14px;\n line-height: 20px;\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_CouponCode__UKPmf {\n font-size: 14px;\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_ClearCoupon__CBAzl {\n cursor: pointer;\n display: flex;\n align-items: center;\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_ClearCoupon__CBAzl svg {\n transform: scale(0.8);\n}\n.style-module_CartSummary__m77tn .style-module_NotificationContainer__AXfJT {\n margin-bottom: 14px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m {\n margin-top: 24px;\n width: calc(100% - 2px);\n margin-left: 1px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m .style-module_Title__oMVSD {\n font-size: 16px;\n color: var(--checkout-primary-text-color);\n margin-bottom: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m .style-module_CheckoutNoteDisplay__DtnXo {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m.style-module_Success__VI2Bw {\n margin-top: 0;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m {\n margin-top: 0px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_GiftLabel__cazrS {\n display: flex;\n align-items: center;\n}\n.style-module_CartSummary__m77tn .style-module_GiftLabel__cazrS span {\n margin-left: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF {\n width: 100%;\n height: 50px;\n justify-content: center;\n align-items: center;\n color: var(--checkout-primary-text-color);\n display: none;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF {\n display: flex;\n }\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF span {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n margin-right: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF a {\n display: flex;\n align-items: center;\n}");export{t as default};
1
+ import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var n={ExpandHeader:"style-module_ExpandHeader__LQwWm",Left:"style-module_Left__-N12h",Price:"style-module_Price__OT1Wh",PriceText:"style-module_PriceText__bq1pk",ArrowDown:"style-module_ArrowDown__YhRny",Rotated:"style-module_Rotated__ZPfId",CartSummary:"style-module_CartSummary__m77tn",OpenCouponCodeSummary:"style-module_OpenCouponCodeSummary__ua9wx",HideOnDesktop:"style-module_HideOnDesktop__Vs5AV",ItemsContainer:"style-module_ItemsContainer__QFKQV",DetailsContainer:"style-module_DetailsContainer__PK33m",Details:"style-module_Details__hWJ9o",Divider:"style-module_Divider__MNDti",ActionTextBtn:"style-module_ActionTextBtn__7yua4",NoUnderline:"style-module_NoUnderline__FphKn",Light:"style-module_Light__dIcW-",SubTotalInfo:"style-module_SubTotalInfo__JMqK9",InfoRow:"style-module_InfoRow__oAvZS",hideMb:"style-module_hideMb__j7VBr",Label:"style-module_Label__28Bij",Value:"style-module_Value__7rELF",TotalContainer:"style-module_TotalContainer__sGR7d",TitleContainer:"style-module_TitleContainer__LgmJI",Title:"style-module_Title__oMVSD",TotalPricesContainer:"style-module_TotalPricesContainer__-PsOD",TotalPrice:"style-module_TotalPrice__QBdM1",TotalTax:"style-module_TotalTax__9pA4Y",AppliedCoupon:"style-module_AppliedCoupon__UNo1h",AppliedCouponBgGray:"style-module_AppliedCouponBgGray__MYoYu",NotClosed:"style-module_NotClosed__E-N9z",CouponCode:"style-module_CouponCode__UKPmf",ClearCoupon:"style-module_ClearCoupon__CBAzl",NotificationContainer:"style-module_NotificationContainer__AXfJT",CheckoutNoteContainer:"style-module_CheckoutNoteContainer__d-z4m",CheckoutNoteDisplay:"style-module_CheckoutNoteDisplay__DtnXo",Success:"style-module_Success__VI2Bw",GiftLabel:"style-module_GiftLabel__cazrS",PoweredBy:"style-module_PoweredBy__DKBJF",OpenCouponCodeMain:"style-module_OpenCouponCodeMain__lZtb3"};e(".style-module_ExpandHeader__LQwWm {\n position: sticky;\n top: 0;\n z-index: 10;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 48px;\n padding: 0 24px;\n width: 100%;\n border-top: 1px solid var(--checkout-border-color);\n border-bottom: 1px solid var(--checkout-border-color);\n transition: border-bottom 0.3s;\n user-select: none;\n background-color: var(--checkout-primary-bg-color);\n}\n@media only screen and (min-width: 1000px) {\n .style-module_ExpandHeader__LQwWm {\n display: none;\n }\n}\n.style-module_ExpandHeader__LQwWm .style-module_Left__-N12h {\n display: flex;\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh {\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_PriceText__bq1pk {\n font-weight: 600;\n margin-right: 8px;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_ArrowDown__YhRny {\n transition: all 0.3s;\n display: flex;\n align-items: center;\n}\n.style-module_ExpandHeader__LQwWm .style-module_Price__OT1Wh .style-module_ArrowDown__YhRny.style-module_Rotated__ZPfId {\n transform: rotate(-180deg);\n}\n\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn {\n width: 100%;\n background-color: var(--checkout-card-bg-color);\n }\n .style-module_CartSummary__m77tn.style-module_OpenCouponCodeSummary__ua9wx {\n background-color: #fff;\n }\n}\n@media only screen and (min-width: 1000px) {\n .style-module_CartSummary__m77tn.style-module_HideOnDesktop__Vs5AV {\n display: none;\n }\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV {\n max-height: 320px;\n overflow-y: auto;\n padding-top: 10px;\n margin-bottom: 24px;\n /* Track */\n /* Handle */\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV {\n max-height: unset;\n }\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar {\n width: 10px;\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar-track {\n box-shadow: inset 0 0 10px 10px #E3E7EF;\n border: solid 3px transparent;\n}\n.style-module_CartSummary__m77tn .style-module_ItemsContainer__QFKQV::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px #000000;\n border: solid 3px transparent;\n}\n.style-module_CartSummary__m77tn .style-module_DetailsContainer__PK33m {\n overflow: hidden;\n width: 100%;\n transition: height 0.3s ease-in-out;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_DetailsContainer__PK33m {\n padding: 0 24px;\n box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.2);\n }\n}\n.style-module_CartSummary__m77tn .style-module_Details__hWJ9o {\n overflow: hidden;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_Details__hWJ9o {\n padding-top: 24px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_Divider__MNDti {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: var(--checkout-border-color);\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4 {\n color: var(--checkout-primary-text-color);\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4:hover {\n text-decoration: underline;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4.style-module_NoUnderline__FphKn:hover {\n text-decoration: none;\n}\n.style-module_CartSummary__m77tn .style-module_ActionTextBtn__7yua4.style-module_Light__dIcW- {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 {\n padding: 24px 0;\n border-bottom: 1px solid var(--checkout-border-color);\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS.style-module_hideMb__j7VBr {\n margin-bottom: 0;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS .style-module_Label__28Bij {\n color: var(--checkout-secondary-text-color);\n display: flex;\n align-items: center;\n flex: 1 1 auto;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS .style-module_Value__7rELF {\n flex: 0 0 auto;\n padding-left: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_SubTotalInfo__JMqK9 .style-module_InfoRow__oAvZS:last-of-type {\n margin-bottom: 0;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d {\n display: flex;\n justify-content: space-between;\n margin-top: 12px;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TitleContainer__LgmJI .style-module_Title__oMVSD {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalPricesContainer__-PsOD {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalPrice__QBdM1 {\n font-size: 20px;\n font-weight: 600;\n}\n.style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d .style-module_TotalTax__9pA4Y {\n font-size: 14px;\n line-height: 24px;\n color: var(--checkout-secondary-text-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_TotalContainer__sGR7d {\n height: 64px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h {\n display: flex;\n align-items: center;\n padding: 4px 4px 4px 8px;\n background-color: white;\n border-radius: 6px;\n margin-left: 12px;\n font-size: 14px;\n line-height: 20px;\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h.style-module_AppliedCouponBgGray__MYoYu {\n background-color: var(--checkout-secondary-bg-color);\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h.style-module_NotClosed__E-N9z {\n padding: 4px 4px 4px 4px;\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_CouponCode__UKPmf {\n font-size: 14px;\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_ClearCoupon__CBAzl {\n cursor: pointer;\n display: flex;\n align-items: center;\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_AppliedCoupon__UNo1h .style-module_ClearCoupon__CBAzl svg {\n transform: scale(0.8);\n}\n.style-module_CartSummary__m77tn .style-module_NotificationContainer__AXfJT {\n margin-bottom: 14px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m {\n margin-top: 24px;\n width: calc(100% - 2px);\n margin-left: 1px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m .style-module_Title__oMVSD {\n font-size: 16px;\n color: var(--checkout-primary-text-color);\n margin-bottom: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m .style-module_CheckoutNoteDisplay__DtnXo {\n color: var(--checkout-secondary-text-color);\n}\n.style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m.style-module_Success__VI2Bw {\n margin-top: 0;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_CheckoutNoteContainer__d-z4m {\n margin-top: 0px;\n }\n}\n.style-module_CartSummary__m77tn .style-module_GiftLabel__cazrS {\n display: flex;\n align-items: center;\n}\n.style-module_CartSummary__m77tn .style-module_GiftLabel__cazrS span {\n margin-left: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF {\n width: 100%;\n height: 50px;\n justify-content: center;\n align-items: center;\n color: var(--checkout-primary-text-color);\n display: none;\n}\n@media only screen and (max-width: 1000px) {\n .style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF {\n display: flex;\n }\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF span {\n font-size: 14px;\n line-height: 20px;\n color: var(--checkout-secondary-text-color);\n margin-right: 8px;\n}\n.style-module_CartSummary__m77tn .style-module_PoweredBy__DKBJF a {\n display: flex;\n align-items: center;\n}\n\n.style-module_OpenCouponCodeMain__lZtb3 {\n display: flex;\n}\n.style-module_OpenCouponCodeMain__lZtb3 input {\n width: calc(100% - 12px);\n}");export{n as default};
@@ -1 +1 @@
1
- import*as e from"react";import a from"./style.module.scss.js";import l from"../svg/epaykolay.js";var t=function(t){return e.createElement("div",{className:a.Container},e.createElement("div",{className:a.Text},e.createElement("strong",null,"e-Pay Kolay")," ile ödeyerek adres ve kart bilgilerinizi girmeden alışverişlerinizi hızlı bir şekilde tamamlayın."),e.createElement("div",{className:a.EPayKolayButton,onClick:t.onClick},e.createElement("div",{className:a.Icon},e.createElement(l,null)),e.createElement("div",{className:a.ButtonText}," ile Öde")))};export{t as default};
1
+ import*as e from"react";import a from"./style.module.scss.js";import t from"../svg/epaykolay.js";var l=function(l){return e.createElement("div",{className:a.Container},e.createElement("div",{className:a.LeftContent},e.createElement("strong",null,"Bi' tıkla gerisi e-Pay Kolay!"),e.createElement("div",{className:a.Description},"Kart ve adres bilgilerini her defasında girmeden, birden fazla ödeme seçeneğiyle alışveriş kolaylığını e-Pay Kolay ile yaşayın.")),e.createElement("div",{className:a.RightContent},e.createElement("div",{className:a.EPayKolayButton,onClick:l.onClick},e.createElement("div",{className:a.Icon},e.createElement(t,null)),e.createElement("div",{className:a.ButtonText}," ile Al")),e.createElement("div",{className:a.EPayKolayDescription},"e-Pay Kolay bir Türkiye İş Bankası markasıdır.")))};export{l as default};
@@ -1 +1 @@
1
- import n from'./../../../../ext/style-inject/dist/style-inject.es.js';var e={Container:"style-module_Container__oDKWq",Text:"style-module_Text__Ps262",EPayKolayButton:"style-module_EPayKolayButton__c8OjL",ButtonText:"style-module_ButtonText__G12-2"};n(".style-module_Container__oDKWq {\n width: 100%;\n padding: 16px 24px;\n background-color: rgb(237, 238, 240);\n border-radius: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_Container__oDKWq .style-module_Text__Ps262 {\n flex: 1 1 auto;\n}\n.style-module_Container__oDKWq .style-module_Text__Ps262 strong {\n font-weight: 500;\n}\n.style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n flex: 0 0 auto;\n width: 230px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgb(35, 154, 255);\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.3s;\n margin-left: 24px;\n padding-top: 4px;\n}\n.style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL .style-module_ButtonText__G12-2 {\n color: white;\n margin-bottom: 2px;\n margin-left: 2px;\n font-weight: 500;\n}\n@media only screen and (max-width: 1440px) {\n .style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n margin-left: 16px;\n }\n}\n@media only screen and (max-width: 1280px) {\n .style-module_Container__oDKWq {\n flex-direction: column;\n }\n .style-module_Container__oDKWq .style-module_EPayKolayButton__c8OjL {\n margin-left: 0;\n margin-top: 12px;\n }\n}\n@media only screen and (max-width: 1024px) {\n .style-module_Container__oDKWq {\n margin: 0 12px;\n width: calc(100% - 24px);\n margin-bottom: 24px;\n }\n}");export{e as default};
1
+ import n from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={Container:"style-module_Container__oDKWq",LeftContent:"style-module_LeftContent__97sbP",Description:"style-module_Description__XDDJ8",RightContent:"style-module_RightContent__-jdoh",EPayKolayButton:"style-module_EPayKolayButton__c8OjL",Icon:"style-module_Icon__0t3CD",ButtonText:"style-module_ButtonText__G12-2",EPayKolayDescription:"style-module_EPayKolayDescription__xxQ58"};n(".style-module_Container__oDKWq {\n width: calc(100% - 50px);\n margin-left: 50px;\n padding: 20px 24px;\n background-color: rgb(237, 238, 240);\n border-radius: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.style-module_Container__oDKWq .style-module_LeftContent__97sbP {\n flex: 1 1 auto;\n}\n.style-module_Container__oDKWq .style-module_LeftContent__97sbP strong {\n font-size: 14px;\n color: #4c556c;\n font-weight: 700;\n margin-bottom: 2px;\n line-height: 20px;\n}\n.style-module_Container__oDKWq .style-module_LeftContent__97sbP .style-module_Description__XDDJ8 {\n font-size: 14px;\n color: #4c556c;\n line-height: 20px;\n}\n.style-module_Container__oDKWq .style-module_RightContent__-jdoh {\n width: 192px;\n flex: 0 0 auto;\n margin-left: 31px;\n position: relative;\n}\n.style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayButton__c8OjL {\n height: 50px;\n width: 190px;\n display: flex;\n background-color: #013682;\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.3s;\n padding: 13px 22px 13px 22px;\n}\n.style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayButton__c8OjL .style-module_Icon__0t3CD {\n margin-top: 2px;\n}\n.style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayButton__c8OjL .style-module_ButtonText__G12-2 {\n color: white;\n margin-left: 4.36px;\n font-weight: 600;\n font-size: 16px;\n line-height: 22.79px;\n}\n.style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayDescription__xxQ58 {\n color: #013682;\n font-size: 9.1px;\n margin-top: 4px;\n font-style: italic;\n letter-spacing: -0.02em;\n position: absolute;\n bottom: -19px;\n}\n@media only screen and (max-width: 1440px) {\n .style-module_Container__oDKWq .style-module_RightContent__-jdoh {\n margin-left: 16px;\n }\n .style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayButton__c8OjL .style-module_ButtonText__G12-2 {\n margin-top: 0px;\n }\n}\n@media only screen and (max-width: 1280px) {\n .style-module_Container__oDKWq {\n flex-direction: column;\n }\n .style-module_Container__oDKWq .style-module_RightContent__-jdoh {\n margin-left: 0;\n margin-top: 12px;\n }\n .style-module_Container__oDKWq .style-module_RightContent__-jdoh .style-module_EPayKolayDescription__xxQ58 {\n position: static;\n }\n}\n@media only screen and (max-width: 1024px) {\n .style-module_Container__oDKWq {\n margin: 0 12px;\n margin-top: 20px;\n width: calc(100% - 24px);\n margin-bottom: 24px;\n }\n}");export{t as default};
@@ -4,6 +4,7 @@ declare type Props = {
4
4
  title?: string;
5
5
  content: string | React.ReactElement;
6
6
  onClose?: () => void;
7
+ ignoreScroll?: boolean;
7
8
  };
8
9
  declare const _default: React.FunctionComponent<Props>;
9
10
  export default _default;
@@ -1 +1 @@
1
- import*as e from"react";import{observer as t}from"mobx-react-lite";import r from"./style.module.scss.js";import s from"../svg/warning.js";import a from"../svg/cross.js";var n=t((function(t){var n=t.type,c=t.title,o=t.content,l=t.onClose,i=e.useRef(null),m=e.useMemo((function(){var e=[r.NotificationBox];switch(n){case"error":e.push(r.Error);break;case"warning":e.push(r.Warning);break;case"success":e.push(r.Success)}return e.join(" ")}),[n]);return e.useEffect((function(){i&&i.current&&i.current.scrollIntoView()}),[i]),e.createElement("div",{className:m,ref:i},e.createElement("div",{className:r.Left},e.createElement(s,null)),e.createElement("div",{className:r.Center},!!c&&e.createElement("div",{className:r.Title},c),e.createElement("div",{className:r.Content},o)),l&&e.createElement("div",{className:r.Right,onClick:l},e.createElement(a,null)))}));export{n as default};
1
+ import*as e from"react";import{observer as t}from"mobx-react-lite";import r from"./style.module.scss.js";import s from"../svg/warning.js";import n from"../svg/cross.js";var a=t((function(t){var a=t.type,c=t.title,o=t.content,l=t.onClose,i=t.ignoreScroll,m=e.useRef(null),u=e.useMemo((function(){var e=[r.NotificationBox];switch(a){case"error":e.push(r.Error);break;case"warning":e.push(r.Warning);break;case"success":e.push(r.Success)}return e.join(" ")}),[a]);return e.useEffect((function(){m&&m.current&&!i&&m.current.scrollIntoView()}),[m]),e.createElement("div",{className:u,ref:m},e.createElement("div",{className:r.Left},e.createElement(s,null)),e.createElement("div",{className:r.Center},!!c&&e.createElement("div",{className:r.Title},c),e.createElement("div",{className:r.Content},o)),l&&e.createElement("div",{className:r.Right,onClick:l},e.createElement(n,null)))}));export{a as default};
@@ -1 +1 @@
1
- import*as C from"react";var e=function(e){return e.className,C.createElement("svg",{width:"101",height:"22",viewBox:"0 0 101 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("g",{"clip-path":"url(#clip0_6858_149691)"},C.createElement("path",{d:"M69.4952 15.4336C69.1677 15.4343 68.8462 15.3456 68.5654 15.1771C68.2846 15.0086 68.0553 14.7666 67.9022 14.4773L66.4754 11.7834H66.4305L65.9991 14.2371C65.9405 14.5697 65.7665 14.871 65.5076 15.0882C65.2488 15.3053 64.9216 15.4245 64.5836 15.4246H63.3613L65.179 5.0981C65.2377 4.76332 65.4128 4.45999 65.6734 4.24153C65.934 4.02306 66.2634 3.90346 66.6035 3.90381H67.8438L66.5923 10.9101H66.6395L68.9627 8.42728C69.1395 8.2449 69.3516 8.10031 69.586 8.00229C69.8205 7.90428 70.0724 7.85487 70.3265 7.85708H72.5913L68.929 11.3973L71.3219 15.4381L69.4952 15.4336Z",fill:"white"}),C.createElement("path",{d:"M75.2392 15.6469C74.7198 15.6528 74.2027 15.577 73.7069 15.4224C73.2597 15.2807 72.845 15.0518 72.4869 14.749C72.1326 14.4489 71.8496 14.0739 71.6584 13.6511C71.4672 13.2282 71.3726 12.7682 71.3814 12.3043C71.379 11.6911 71.4878 11.0827 71.7027 10.5083C71.907 9.95429 72.2202 9.44671 72.6239 9.01548C73.0363 8.58147 73.5313 8.23419 74.0799 7.99406C74.6913 7.73182 75.3513 7.60177 76.0166 7.61242C76.5434 7.60625 77.068 7.68198 77.5715 7.83691C78.0221 7.97474 78.4412 8.19976 78.805 8.49916C79.1499 8.787 79.4282 9.14623 79.6206 9.55201C79.8254 9.98702 79.9277 10.4632 79.9194 10.9439C79.9227 11.5629 79.8138 12.1774 79.5981 12.7577C79.3926 13.3126 79.0761 13.8198 78.6679 14.2483C78.2517 14.6828 77.7519 15.0287 77.1985 15.2653C76.5783 15.5248 75.9116 15.6547 75.2392 15.6469ZM77.5153 11.2245C77.5296 10.8034 77.3789 10.3934 77.0951 10.0818C76.9419 9.92667 76.757 9.80629 76.5531 9.72882C76.3492 9.65135 76.131 9.61861 75.9133 9.63283C75.6076 9.62927 75.3053 9.69691 75.0303 9.83038C74.7698 9.9581 74.54 10.1403 74.3562 10.3647C74.1696 10.5967 74.0251 10.8596 73.9293 11.1414C73.8278 11.4407 73.7769 11.7548 73.7788 12.0708C73.7641 12.4876 73.9115 12.8938 74.19 13.2045C74.3416 13.3593 74.5249 13.4795 74.7273 13.557C74.9297 13.6345 75.1465 13.6674 75.3628 13.6534C75.662 13.6599 75.9588 13.5988 76.2311 13.4748C76.5034 13.3508 76.7442 13.1671 76.9356 12.9373C77.1267 12.7081 77.2738 12.4455 77.3693 12.1628C77.4699 11.8604 77.5193 11.5432 77.5153 11.2245Z",fill:"white"}),C.createElement("path",{d:"M80.2129 15.4335L82.0104 5.23495C82.075 4.86552 82.2684 4.53085 82.5562 4.29011C82.844 4.04937 83.2078 3.91807 83.5832 3.91944H84.7313L82.6844 15.4335H80.2129Z",fill:"white"}),C.createElement("path",{d:"M91.6556 10.0727C91.6556 10.2142 91.6556 10.3668 91.6331 10.5217C91.6106 10.6766 91.5949 10.8427 91.5657 10.9954L91.0467 13.9497C90.9945 14.2162 90.9563 14.4852 90.9321 14.7556C90.919 14.9381 90.8375 15.1088 90.7037 15.2337C90.57 15.3586 90.3939 15.4284 90.2108 15.4291H88.7302C88.7302 15.3168 88.7302 15.1866 88.7459 15.0407C88.7616 14.8948 88.7706 14.7534 88.7908 14.6209H88.7504C88.1932 15.2809 87.421 15.6109 86.4339 15.6109C86.1591 15.6102 85.8853 15.5771 85.6183 15.5121C85.3457 15.4493 85.0873 15.3358 84.8566 15.1776C84.6247 15.0166 84.4345 14.8026 84.3017 14.5536C84.1468 14.2606 84.0695 13.9329 84.077 13.6017C84.051 13.0673 84.2096 12.5403 84.5263 12.1089C84.8436 11.7137 85.2555 11.4049 85.7239 11.2109C86.2588 10.9835 86.823 10.8324 87.4 10.7619C88.0244 10.6811 88.6533 10.6406 89.2829 10.6407C89.3006 10.5671 89.3104 10.4919 89.3121 10.4162V10.2793C89.3208 10.1594 89.2992 10.0392 89.2494 9.92975C89.1995 9.82032 89.123 9.72515 89.0268 9.65295C88.7604 9.50201 88.4562 9.43108 88.1505 9.44866C87.7931 9.45039 87.439 9.51734 87.1057 9.64621C86.9956 9.68662 86.881 9.73152 86.7867 9.78091C86.6007 9.87334 86.3879 9.89677 86.1863 9.84702C85.9846 9.79727 85.8072 9.67757 85.6857 9.50927C85.6119 9.40852 85.5607 9.29305 85.5356 9.17074C85.5105 9.04843 85.5121 8.92214 85.5402 8.80049C85.5683 8.67884 85.6224 8.56468 85.6987 8.46579C85.775 8.3669 85.8717 8.2856 85.9823 8.22744C86.2228 8.10568 86.4722 8.00213 86.7282 7.91764C87.2947 7.72384 87.8888 7.62301 88.4875 7.61907C88.9136 7.6156 89.3384 7.66461 89.7525 7.76499C90.1114 7.84958 90.4508 8.00198 90.7523 8.21397C91.0317 8.41353 91.2621 8.67371 91.4264 8.97499C91.5916 9.31663 91.6703 9.69359 91.6556 10.0727ZM88.9594 12.1134C88.6538 12.1134 88.3437 12.1268 88.0292 12.1515C87.7415 12.1714 87.4572 12.2249 87.1821 12.3109C86.9563 12.3794 86.7468 12.4932 86.5665 12.6454C86.4861 12.7151 86.4224 12.8019 86.38 12.8994C86.3377 12.9969 86.3177 13.1026 86.3216 13.2089C86.3069 13.3311 86.3287 13.4549 86.3843 13.5647C86.4399 13.6746 86.5267 13.7655 86.6339 13.8262C86.849 13.9347 87.0872 13.9894 87.3282 13.9856C87.7606 13.9989 88.1813 13.8435 88.501 13.5523C88.8116 13.2694 89.0208 12.8924 89.0964 12.4793L89.1728 12.1134H88.9594Z",fill:"white"}),C.createElement("path",{d:"M96.0294 16.5764C95.8048 16.9715 95.5801 17.3262 95.3666 17.6404C95.1664 17.9371 94.9251 18.2039 94.6499 18.4329C94.3838 18.6506 94.0789 18.8159 93.7511 18.92C93.371 19.0387 92.9742 19.0956 92.576 19.0884C92.457 19.0884 92.3514 19.0884 92.2323 19.0884C92.1156 19.0803 92.002 19.0476 91.8989 18.9925C91.7958 18.9373 91.7056 18.8611 91.634 18.7686C91.5625 18.6762 91.5114 18.5697 91.484 18.4561C91.4566 18.3425 91.4536 18.2245 91.4751 18.1096L91.5425 17.7415C91.5832 17.5461 91.6916 17.3714 91.8486 17.2482C92.0057 17.125 92.2012 17.0612 92.4008 17.068C92.7016 17.0864 92.9984 16.9911 93.2321 16.8008C93.4622 16.5816 93.6556 16.3269 93.8051 16.0466L94.1691 15.4225L92.4322 7.85718H93.6658C94.0653 7.85746 94.4515 8.00071 94.7545 8.26097C95.0574 8.52124 95.257 8.88131 95.3172 9.27595L95.8632 12.8229H95.8924L97.9438 8.78208C98.0823 8.505 98.2952 8.27181 98.5586 8.10851C98.822 7.9452 99.1256 7.85819 99.4356 7.85718H101.008L96.0294 16.5764Z",fill:"white"}),C.createElement("path",{d:"M26.2181 12.2953C26.2079 12.3402 26.2026 12.3861 26.2024 12.4322C26.199 12.6326 26.2494 12.8303 26.3484 13.0047C26.4444 13.1713 26.5737 13.3165 26.7281 13.4312C26.8903 13.5482 27.0711 13.637 27.2629 13.6939C27.4631 13.7552 27.6713 13.7862 27.8807 13.7859C28.2335 13.7902 28.5825 13.7134 28.9008 13.5614C28.9958 13.5158 29.088 13.4648 29.1772 13.4088C29.3452 13.2972 29.5441 13.2413 29.7458 13.249C29.9474 13.2566 30.1415 13.3274 30.3006 13.4514C30.425 13.5445 30.5246 13.6667 30.5907 13.8072C30.6568 13.9477 30.6875 14.1023 30.6799 14.2574C30.6724 14.4125 30.6269 14.5634 30.5475 14.6968C30.468 14.8303 30.357 14.9422 30.2242 15.0228C30.0279 15.137 29.8228 15.2354 29.6108 15.3169C28.9926 15.5492 28.3368 15.6656 27.6763 15.6604C27.1769 15.6643 26.6801 15.5886 26.2046 15.4359C25.7709 15.2992 25.3691 15.0771 25.0228 14.7826C24.6829 14.4869 24.4129 14.1197 24.2319 13.7073C24.0317 13.2465 23.9328 12.7482 23.942 12.2459C23.9321 11.6254 24.0419 11.0087 24.2656 10.4298C24.4835 9.88353 24.8047 9.38431 25.2115 8.95937C25.62 8.53809 26.11 8.20431 26.6517 7.97835C27.2358 7.73463 27.8635 7.61241 28.4964 7.61916C28.9604 7.61661 29.4215 7.69251 29.8602 7.84365C30.2518 7.97464 30.6127 8.18392 30.9207 8.45875C31.2205 8.73678 31.4546 9.07803 31.606 9.45773C31.7754 9.89404 31.8578 10.3592 31.8487 10.8271C31.8448 11.0591 31.8275 11.2908 31.797 11.5208C31.7673 11.7343 31.6618 11.93 31.4997 12.0722C31.3376 12.2144 31.1297 12.2936 30.914 12.2953H26.2181ZM29.6782 10.8024C29.689 10.753 29.6943 10.7026 29.6939 10.652V10.4994C29.699 10.3409 29.6696 10.1832 29.608 10.0372C29.5463 9.89109 29.4538 9.76005 29.3367 9.65304C29.0501 9.41216 28.6813 9.29148 28.3076 9.3163C28.0537 9.31222 27.8017 9.36195 27.5684 9.46222C27.3603 9.55122 27.1671 9.6716 26.9955 9.81916C26.8394 9.95515 26.7059 10.115 26.6 10.2928C26.5016 10.4481 26.426 10.6167 26.3754 10.7934L29.6782 10.8024Z",fill:"white"}),C.createElement("path",{d:"M32.2402 12.4321L32.5907 10.4993H36.4328L36.0958 12.4321H32.2402Z",fill:"white"}),C.createElement("path",{d:"M37.3267 19.0815C37.1517 19.0815 36.9787 19.0432 36.8201 18.9694C36.6614 18.8955 36.5208 18.7878 36.4082 18.6539C36.2956 18.52 36.2136 18.3631 36.1682 18.1942C36.1227 18.0253 36.1147 17.8485 36.1449 17.6762L37.6345 9.22643C37.7064 8.84142 37.9109 8.49369 38.2126 8.24356C38.5142 7.99344 38.894 7.85669 39.286 7.85704H40.1959L40.014 8.90765H40.0589C40.3414 8.52827 40.7093 8.22065 41.1329 8.00969C41.5707 7.79049 42.0542 7.67817 42.5439 7.68194C43.0048 7.67385 43.4628 7.75623 43.892 7.92439C44.2715 8.07517 44.6145 8.30472 44.8986 8.59786C45.1771 8.89616 45.3898 9.24947 45.5232 9.635C45.6682 10.0537 45.7404 10.494 45.7367 10.937C45.7402 11.5619 45.6345 12.1826 45.4243 12.7711C45.2292 13.3216 44.9319 13.8303 44.5481 14.2707C44.1712 14.6876 43.7153 15.0257 43.2067 15.2652C42.6815 15.5159 42.1059 15.6434 41.5238 15.6379C41.0228 15.65 40.5261 15.543 40.0746 15.3258C39.6923 15.1409 39.3739 14.8462 39.1602 14.4795H39.1287L38.5086 18.0938C38.4594 18.371 38.3139 18.6221 38.0978 18.8028C37.8816 18.9834 37.6086 19.0822 37.3267 19.0815ZM43.2898 11.2379C43.3004 10.8238 43.1598 10.4201 42.8944 10.1019C42.7486 9.94235 42.5686 9.81769 42.3679 9.73724C42.1671 9.65678 41.9508 9.6226 41.735 9.63724C41.4389 9.63516 41.1463 9.70284 40.8812 9.8348C40.6236 9.96687 40.3945 10.1484 40.2072 10.3691C40.0122 10.5991 39.86 10.8622 39.7578 11.1458C39.645 11.4426 39.5878 11.7577 39.5893 12.0752C39.5814 12.2854 39.615 12.4951 39.6882 12.6924C39.7615 12.8896 39.8729 13.0704 40.0162 13.2246C40.1694 13.3773 40.3529 13.4961 40.5549 13.5735C40.757 13.6508 40.973 13.6849 41.1891 13.6736C41.492 13.679 41.7921 13.6137 42.0653 13.4828C42.325 13.3608 42.555 13.1839 42.7394 12.9642C42.918 12.732 43.0534 12.4697 43.1393 12.1897C43.2416 11.8852 43.2925 11.5658 43.2898 11.2446V11.2379Z",fill:"white"}),C.createElement("path",{d:"M53.5333 10.0727C53.5333 10.2142 53.5333 10.3668 53.5108 10.5217C53.4884 10.6766 53.4726 10.8427 53.4434 10.9954L52.9244 13.9497C52.8722 14.2161 52.834 14.4851 52.8098 14.7556V14.7691C52.793 14.9487 52.7099 15.1156 52.5765 15.2373C52.4431 15.3589 52.2692 15.4265 52.0886 15.4268H50.6079C50.6079 15.3146 50.6079 15.1844 50.6236 15.0384C50.6394 14.8925 50.6484 14.7511 50.6686 14.6186H50.6371C50.0799 15.2786 49.3077 15.6086 48.3206 15.6086C48.0458 15.6082 47.772 15.5751 47.505 15.5099C47.2297 15.4502 46.9683 15.339 46.7344 15.1821C46.5021 15.0208 46.3111 14.807 46.1771 14.558C46.0272 14.2637 45.9538 13.9363 45.9637 13.6062C45.9377 13.0718 46.0963 12.5447 46.4131 12.1133C46.738 11.7187 47.1577 11.4128 47.6331 11.2244C48.1689 10.9973 48.7338 10.8461 49.3115 10.7754C49.9358 10.6946 50.5648 10.6541 51.1943 10.6542C51.2121 10.5806 51.2218 10.5053 51.2235 10.4297V10.2927C51.2309 10.1675 51.2053 10.0426 51.1493 9.93037C51.0933 9.81812 51.0089 9.72247 50.9045 9.65293C50.6382 9.502 50.3339 9.43107 50.0282 9.44865C49.6697 9.45225 49.3148 9.52149 48.9812 9.65293C48.8711 9.69334 48.7565 9.73824 48.6621 9.78763C48.4758 9.87976 48.2628 9.90302 48.0609 9.85331C47.8589 9.8036 47.6811 9.68411 47.5589 9.51599C47.4844 9.4148 47.4326 9.29868 47.4072 9.17562C47.3818 9.05255 47.3834 8.92545 47.4118 8.80304C47.4401 8.68063 47.4947 8.5658 47.5717 8.46645C47.6487 8.36709 47.7463 8.28555 47.8578 8.22742C48.6361 7.83814 49.4927 7.63014 50.363 7.61906C50.7891 7.61573 51.2139 7.66473 51.628 7.76497C51.9869 7.84957 52.3262 8.00197 52.6278 8.21395C52.9071 8.41352 53.1376 8.6737 53.3019 8.97497C53.4679 9.31642 53.5473 9.69339 53.5333 10.0727ZM50.8371 12.1133C50.5315 12.1133 50.2215 12.1268 49.9069 12.1515C49.6193 12.1712 49.3349 12.2247 49.0598 12.3109C48.8335 12.3798 48.6234 12.4936 48.442 12.6454C48.3623 12.7155 48.2992 12.8024 48.2572 12.8998C48.2152 12.9973 48.1955 13.1028 48.1993 13.2089C48.1846 13.3311 48.2064 13.4549 48.262 13.5647C48.3176 13.6746 48.4044 13.7655 48.5116 13.8262C48.7266 13.9349 48.9649 13.9896 49.2059 13.9856C49.6383 13.9989 50.059 13.8435 50.3787 13.5523C50.6894 13.2694 50.8985 12.8924 50.9741 12.4793L51.0483 12.1223L50.8371 12.1133Z",fill:"white"}),C.createElement("path",{d:"M57.9079 16.5764C57.6832 16.9715 57.4585 17.3262 57.2338 17.6405C57.0336 17.9371 56.7923 18.2039 56.5171 18.4329C56.251 18.6506 55.946 18.8159 55.6183 18.9201C55.2382 19.0388 54.8414 19.0956 54.4432 19.0884C54.3241 19.0884 54.2185 19.0884 54.0995 19.0884C53.9828 19.0803 53.8692 19.0476 53.7661 18.9925C53.663 18.9374 53.5727 18.8611 53.5012 18.7687C53.4297 18.6762 53.3786 18.5697 53.3512 18.4561C53.3238 18.3426 53.3208 18.2245 53.3423 18.1096L53.4029 17.7796C53.4398 17.5773 53.5466 17.3943 53.7047 17.2626C53.8628 17.1309 54.0621 17.0589 54.268 17.059C54.5688 17.0775 54.8656 16.9821 55.0993 16.7919C55.3293 16.5726 55.5228 16.318 55.6723 16.0376L56.0362 15.4135L54.3107 7.85719H55.2094C55.7047 7.85782 56.1834 8.03533 56.5591 8.35766C56.9349 8.67999 57.183 9.12592 57.2585 9.61495L57.7438 12.8139H57.7731L59.7121 8.97964C59.8872 8.64028 60.1528 8.35586 60.4795 8.15779C60.8062 7.95972 61.1813 7.85569 61.5635 7.85719H62.8801L57.9079 16.5764Z",fill:"white"}),C.createElement("path",{d:"M20.8507 3.52221L12.0206 0.235682H11.9959C11.0979 -0.0665352 10.126 -0.0704726 9.22556 0.224458H9.19635L0.4494 3.52221C0.33726 3.56559 0.238219 3.63714 0.161859 3.72995C0.0854988 3.82276 0.0344024 3.93369 0.0135124 4.05201C0.00446901 4.09558 -4.86163e-05 4.13996 3.13281e-05 4.18446V14.8275C-0.00332389 15.7178 0.2629 16.5883 0.76374 17.3247C1.26458 18.0611 1.97662 18.629 2.80634 18.9536L10.3827 21.9461C10.5479 22.0117 10.732 22.0117 10.8972 21.9461L14.3079 20.5789C14.4371 20.5277 14.5479 20.4389 14.626 20.3241C14.7042 20.2092 14.746 20.0735 14.746 19.9347V15.7457L18.496 14.2573C19.3257 13.9326 20.0378 13.3648 20.5386 12.6284C21.0395 11.892 21.3057 11.0215 21.3023 10.1312V4.22038C21.3034 4.20243 21.3034 4.18444 21.3023 4.1665C21.3003 4.02628 21.2561 3.8899 21.1756 3.77503C21.0951 3.66016 20.9819 3.57209 20.8507 3.52221Z",fill:"white"}),C.createElement("path",{d:"M20.6088 4.17323L10.662 8.11751L0.697266 4.17323L9.43748 0.879962C10.1964 0.630833 11.0152 0.630833 11.7742 0.879962L20.6088 4.17323Z",fill:"#51C5DA"}),C.createElement("path",{d:"M10.6523 8.11758V21.3064H10.6816L14.0518 19.9594V10.6139L18.1096 8.88309V10.7172L14.8292 12.1494V14.9713L18.2399 13.6108C18.9385 13.3352 19.5379 12.8559 19.9602 12.2354C20.3826 11.6148 20.6083 10.8817 20.6081 10.1313V4.18677L10.6523 8.11758Z",fill:"#EC008C"}),C.createElement("path",{d:"M3.92373 14.0487L10.653 16.8772V8.12212H10.6261L0.697269 4.18457V14.8276C0.69626 15.5779 0.921418 16.3112 1.34342 16.9318C1.76541 17.5524 2.36469 18.0317 3.06319 18.3072L10.6261 21.2929L10.653 21.3042V17.8089L3.9125 14.8905L3.92373 14.0487ZM3.92373 9.21988L7.92311 10.8811V12.8095L3.92149 11.0764L3.92373 9.21988Z",fill:"#004385"})),C.createElement("defs",null,C.createElement("clipPath",{id:"clip0_6858_149691"},C.createElement("rect",{width:"101",height:"22",fill:"white"}))))};export{e as default};
1
+ import*as C from"react";var e=function(e){return e.className,C.createElement("svg",{width:"104",height:"22",viewBox:"0 0 104 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{d:"M34.1927 10.98L34.5334 9.08674H38.2822L37.9414 10.98H34.1927Z",fill:"white"}),C.createElement("path",{d:"M27.8314 11.0179C27.8314 11.0558 27.8314 11.0937 27.8314 11.1694C27.8314 11.3587 27.8693 11.5481 27.9828 11.7374C28.0586 11.8889 28.21 12.0403 28.3615 12.1539C28.513 12.2675 28.7023 12.3432 28.8916 12.419C29.081 12.4947 29.2703 12.4947 29.4975 12.4947C29.8761 12.4947 30.2169 12.419 30.482 12.3054C30.5577 12.2675 30.6713 12.2297 30.747 12.1539C31.0878 11.9267 31.5044 11.9646 31.8452 12.1918C32.3374 12.5704 32.3374 13.4035 31.7694 13.7064C31.5801 13.82 31.3908 13.9336 31.1636 14.0093C30.5956 14.2365 29.9519 14.3501 29.2703 14.3501C28.7402 14.3501 28.2858 14.2744 27.8314 14.1229C27.377 13.9715 26.9983 13.7821 26.6954 13.4792C26.3546 13.2142 26.1274 12.8355 25.9381 12.419C25.7488 12.0025 25.673 11.5102 25.673 10.9801C25.673 10.3364 25.7866 9.76838 26.0138 9.20039C26.241 8.6324 26.5439 8.17801 26.9226 7.76149C27.3013 7.34497 27.7935 7.04204 28.3236 6.81485C28.8538 6.58765 29.4596 6.47406 30.1033 6.47406C30.5956 6.47406 31.05 6.54979 31.4286 6.66339C31.8452 6.81485 32.1859 7.00418 32.451 7.26924C32.7539 7.5343 32.9433 7.83722 33.1326 8.25375C33.284 8.6324 33.3598 9.08679 33.3598 9.57905C33.3598 9.76838 33.3598 9.99557 33.3219 10.2606C33.284 10.715 32.8675 11.0179 32.451 11.0179H27.8314ZM31.2014 9.54118C31.2014 9.50331 31.2014 9.42759 31.2014 9.38972C31.2014 9.35185 31.2014 9.27612 31.2014 9.23826C31.2014 8.89747 31.0878 8.6324 30.8606 8.40521C30.6334 8.17801 30.2927 8.06442 29.8761 8.06442C29.6111 8.06442 29.3839 8.10228 29.1567 8.21588C28.9295 8.29161 28.7402 8.44308 28.5887 8.55667C28.4372 8.70814 28.2858 8.8596 28.21 9.01106C28.0964 9.16253 28.0586 9.35186 28.0207 9.50332H31.2014V9.54118Z",fill:"white"}),C.createElement("path",{d:"M44.0378 3.82358C45.2874 3.82358 46.234 4.08864 46.8778 4.58089C47.5215 5.11101 47.8623 5.83046 47.8623 6.73924C47.8623 7.34509 47.7487 7.91308 47.5215 8.36747C47.2943 8.82186 46.9914 9.20051 46.5748 9.50344C46.1583 9.80637 45.6661 9.99569 45.0981 10.1472C44.5301 10.2986 43.8864 10.3365 43.2048 10.3365H41.8416L41.3115 13.3279C41.1979 13.8959 40.7056 14.3124 40.1377 14.3124H38.8124C38.7366 14.3124 38.6988 14.2745 38.7366 14.1988L40.4406 4.54302C40.5163 4.08863 40.895 3.78571 41.3494 3.78571H44.0378V3.82358ZM43.2805 8.40533C43.9242 8.40533 44.4544 8.29174 44.833 8.10241C45.2117 7.91308 45.401 7.53442 45.401 7.0043C45.401 6.7771 45.3631 6.58777 45.2874 6.43631C45.2117 6.28485 45.0981 6.17125 44.9466 6.05765C44.7951 5.98192 44.6058 5.90619 44.4165 5.86832C44.2272 5.83046 43.9621 5.83046 43.7349 5.83046H42.7125L42.2581 8.40533H43.2805Z",fill:"white"}),C.createElement("path",{d:"M54.7539 8.8218C54.7539 8.97326 54.7539 9.12473 54.716 9.27619C54.716 9.42765 54.6782 9.57911 54.6403 9.73058L54.148 12.6084C54.1102 12.8734 54.0723 13.1385 54.0345 13.4036C53.9966 13.7822 53.6937 14.0473 53.315 14.0473H51.8761C51.8761 13.9337 51.8761 13.8201 51.8761 13.6686C51.8761 13.5172 51.914 13.4036 51.914 13.2521H51.8761C51.346 13.8958 50.5887 14.1987 49.6042 14.1987C49.3391 14.1987 49.074 14.1609 48.809 14.0851C48.5439 14.0094 48.2789 13.8958 48.0517 13.7443C47.8245 13.5929 47.6351 13.4036 47.5215 13.1385C47.3701 12.8734 47.3322 12.5705 47.3322 12.1919C47.3322 11.586 47.4837 11.1316 47.7866 10.753C48.0895 10.3743 48.4682 10.0714 48.9604 9.88204C49.4527 9.69271 49.9828 9.54125 50.5887 9.46552C51.1945 9.38979 51.8004 9.35192 52.4062 9.35192C52.4441 9.27619 52.4441 9.20046 52.4441 9.16259C52.4441 9.12472 52.4441 9.08686 52.4441 9.01113C52.4441 8.7082 52.3305 8.51888 52.1412 8.36741C51.9518 8.21595 51.6489 8.17808 51.2703 8.17808C50.9295 8.17808 50.5887 8.25382 50.2479 8.36741C50.1343 8.40528 50.0207 8.44314 49.9071 8.51887C49.5284 8.7082 49.1119 8.59461 48.8847 8.29168L48.809 8.21595C48.5439 7.83729 48.6575 7.26931 49.074 7.04211C49.3012 6.92851 49.5663 6.81491 49.8692 6.70132C50.4372 6.51199 51.0052 6.3984 51.5732 6.3984C52.0276 6.3984 52.4441 6.43626 52.8227 6.54986C53.2014 6.62559 53.5043 6.77705 53.8073 7.00424C54.0723 7.19357 54.2995 7.45863 54.451 7.76156C54.6782 8.06449 54.7539 8.40528 54.7539 8.8218ZM52.1033 10.8287C51.8004 10.8287 51.4974 10.8287 51.1945 10.8665C50.8916 10.9044 50.6265 10.9423 50.3615 11.018C50.1343 11.0937 49.9071 11.2073 49.7556 11.3588C49.6042 11.5103 49.5284 11.6617 49.5284 11.9268C49.5284 12.2297 49.642 12.419 49.8314 12.5326C50.0207 12.6462 50.2479 12.6841 50.5129 12.6841C50.9673 12.6841 51.346 12.5326 51.6489 12.2676C51.9518 12.0025 52.1412 11.6239 52.2169 11.2073L52.2926 10.8665H52.1033V10.8287Z",fill:"white"}),C.createElement("path",{d:"M59.1463 15.183C58.9191 15.5616 58.7298 15.9024 58.5026 16.2054C58.2754 16.5083 58.0482 16.7733 57.821 16.9627C57.5559 17.152 57.2909 17.3413 56.9501 17.4549C56.6093 17.5685 56.2306 17.6064 55.8141 17.6064C55.7005 17.6064 55.5491 17.6064 55.4355 17.6064C54.9811 17.5685 54.6403 17.1141 54.716 16.6597L54.7917 16.2811C54.8675 15.9024 55.2083 15.6374 55.6248 15.6374C55.9656 15.6374 56.2306 15.5616 56.42 15.3723C56.6093 15.183 56.7986 14.9558 56.988 14.6529L57.3288 14.047L55.6248 6.70105H56.8744C57.6695 6.70105 58.3133 7.26903 58.4269 8.06421L58.957 11.5479H58.9948L61.0017 7.57196C61.2668 7.04184 61.8348 6.70105 62.4028 6.70105H63.9553L59.1463 15.183Z",fill:"white"}),C.createElement("path",{d:"M78.1931 14.2756C77.6629 14.2756 77.1707 14.1999 76.7163 14.0484C76.2619 13.8969 75.8454 13.6697 75.5425 13.4047C75.2017 13.1396 74.9366 12.7988 74.7473 12.3823C74.5579 11.9658 74.4443 11.5114 74.4443 11.0191C74.4443 10.4133 74.5579 9.80743 74.7473 9.27731C74.9366 8.70932 75.2395 8.25493 75.656 7.83841C76.0347 7.42189 76.527 7.0811 77.0571 6.8539C77.6251 6.58884 78.2309 6.47525 78.9504 6.47525C79.4805 6.47525 80.0106 6.55097 80.465 6.70244C80.9194 6.8539 81.3359 7.0811 81.6767 7.34616C82.0175 7.61122 82.2826 7.95201 82.4719 8.36853C82.6612 8.78506 82.7748 9.23944 82.7748 9.7317C82.7748 10.3375 82.6612 10.9434 82.4719 11.5114C82.2826 12.0794 81.9796 12.5338 81.5631 12.9503C81.1844 13.3668 80.6922 13.7076 80.1242 13.9348C79.5562 14.162 78.9125 14.2756 78.1931 14.2756ZM80.4271 9.95889C80.4271 9.50451 80.2757 9.12585 80.0106 8.86079C79.7455 8.55786 79.3669 8.4064 78.8746 8.4064C78.5717 8.4064 78.2688 8.48213 78.0037 8.59572C77.7387 8.70932 77.5115 8.89865 77.36 9.12585C77.1707 9.35304 77.0571 9.58024 76.9435 9.88316C76.8299 10.1861 76.792 10.489 76.792 10.7919C76.792 11.2463 76.9435 11.625 77.2085 11.89C77.4736 12.193 77.8523 12.3444 78.3445 12.3444C78.6474 12.3444 78.9504 12.2687 79.2154 12.1551C79.4805 12.0415 79.7077 11.8522 79.8591 11.625C80.0485 11.3978 80.1999 11.1706 80.2757 10.8677C80.3893 10.5647 80.4271 10.2618 80.4271 9.95889Z",fill:"white"}),C.createElement("path",{d:"M83.2291 14.047L84.8573 4.7699C84.933 4.27765 85.3874 3.89899 85.8797 3.89899H87.4322L85.6525 14.047H83.2291Z",fill:"white"}),C.createElement("path",{d:"M94.3996 8.82299C94.3996 8.97445 94.3996 9.12591 94.3617 9.27738C94.3617 9.42884 94.3239 9.5803 94.286 9.73177L93.7937 12.6096C93.7559 12.8746 93.718 13.1397 93.6801 13.4047C93.6423 13.7834 93.3394 14.0485 92.9607 14.0485H91.5218C91.5218 13.9349 91.5218 13.8213 91.5218 13.6698C91.5218 13.5183 91.5597 13.4047 91.5597 13.2533H91.5218C90.9917 13.897 90.2344 14.1999 89.2499 14.1999C88.9848 14.1999 88.7197 14.1621 88.4547 14.0863C88.1896 14.0106 87.9245 13.897 87.6974 13.7455C87.4702 13.5941 87.2808 13.4047 87.1672 13.1397C87.0158 12.8746 86.9779 12.5717 86.9779 12.193C86.9779 11.5872 87.1294 11.1328 87.4323 10.7541C87.7352 10.3755 88.1139 10.0726 88.6061 9.88323C89.0984 9.6939 89.6285 9.54244 90.2344 9.46671C90.8402 9.39097 91.4461 9.35311 92.0519 9.35311C92.0898 9.27738 92.0898 9.20164 92.0898 9.16378C92.0898 9.12591 92.0898 9.08805 92.0898 9.01232C92.0898 8.70939 91.9762 8.52006 91.7869 8.3686C91.5975 8.21714 91.2946 8.17927 90.9159 8.17927C90.5751 8.17927 90.2344 8.255 89.8936 8.3686C89.78 8.40647 89.6664 8.44433 89.5528 8.52006C89.1741 8.70939 88.7576 8.5958 88.5304 8.29287L88.4547 8.21714C88.1896 7.83848 88.3032 7.27049 88.7197 7.0433C88.9469 6.9297 89.212 6.8161 89.5149 6.70251C90.0829 6.51318 90.6509 6.39958 91.2189 6.39958C91.6733 6.39958 92.0898 6.43745 92.4684 6.55104C92.8471 6.62678 93.15 6.77824 93.453 7.00543C93.718 7.19476 93.9452 7.45982 94.0967 7.76275C94.3239 8.06567 94.3996 8.40647 94.3996 8.82299ZM91.7869 10.8299C91.4839 10.8299 91.181 10.8299 90.8781 10.8677C90.5752 10.9056 90.3101 10.9435 90.045 11.0192C89.8178 11.0949 89.5906 11.2085 89.4392 11.36C89.2877 11.5115 89.212 11.6629 89.212 11.928C89.212 12.2309 89.3256 12.4202 89.5149 12.5338C89.7042 12.6474 89.9314 12.6853 90.1965 12.6853C90.6509 12.6853 91.0295 12.5338 91.3325 12.2688C91.6354 12.0037 91.8247 11.6251 91.9005 11.2085L91.9762 10.8677H91.7869V10.8299Z",fill:"white"}),C.createElement("path",{d:"M98.7919 15.2215C98.5647 15.6002 98.3753 15.941 98.1482 16.2439C97.921 16.5468 97.6938 16.8119 97.4666 17.0012C97.2015 17.1905 96.9364 17.3799 96.5957 17.4935C96.2549 17.6071 95.8762 17.6449 95.4597 17.6449C95.3461 17.6449 95.1946 17.6449 95.081 17.6449C94.6266 17.6071 94.2858 17.1527 94.3616 16.6983L94.4373 16.3196C94.513 15.941 94.8538 15.6759 95.2704 15.6759C95.6111 15.6759 95.8762 15.6002 96.0655 15.4109C96.2549 15.2215 96.4442 14.9943 96.6335 14.6914L96.9743 14.0856L95.2704 6.7396H96.8229C97.4287 6.7396 97.9588 7.19399 98.0346 7.79984L98.6025 11.5864H98.6404L100.761 7.42118C100.988 7.00466 101.405 6.7396 101.859 6.7396H103.639L98.7919 15.2215Z",fill:"white"}),C.createElement("path",{d:"M72.8159 14.1232C72.3616 14.1232 71.945 13.896 71.7178 13.5174L69.143 9.3143H69.1051L68.4614 13.063C68.3478 13.6689 67.8177 14.1232 67.2118 14.1232H65.9244L67.5526 4.95974C67.6662 4.35388 68.1963 3.89949 68.8022 3.89949H70.0896L69.3323 8.17832H69.3702L73.0431 4.27815C73.2703 4.01309 73.6111 3.86163 73.9898 3.86163H76.4889L71.4906 8.74631L75.1258 14.0854H72.8159V14.1232Z",fill:"white"}),C.createElement("path",{d:"M20.8262 3.52151L12.0034 0.227195C12.0034 0.227195 12.0034 0.227195 11.9656 0.227195C11.0568 -0.0757315 10.1102 -0.0757315 9.20138 0.227195H9.16351L0.454391 3.52151C0.227196 3.59725 0.0757315 3.82444 0 4.05163C0 4.0895 0 4.12737 0 4.2031V14.8434C0 16.6609 1.09811 18.2892 2.80207 18.9707L10.3752 21.9621C10.4509 22 10.5645 22 10.6403 22C10.716 22 10.7917 22 10.8675 21.9621L14.2754 20.599C14.5405 20.4854 14.6919 20.2203 14.6919 19.9552V15.7522L18.4406 14.2754C20.1446 13.5938 21.2427 12.0034 21.2427 10.148V4.24096V4.2031C21.2806 3.90017 21.0912 3.63511 20.8262 3.52151Z",fill:"white"}),C.createElement("path",{d:"M20.5611 4.16482L10.6403 8.10286L0.719482 4.16482L9.42861 0.8705C10.1859 0.605439 11.019 0.643305 11.7763 0.8705L20.5611 4.16482Z",fill:"#44C0E8"}),C.createElement("path",{d:"M10.6404 8.10277V21.28H10.6782L14.0483 19.9169V10.6019L18.0999 8.86009V10.6776L14.8056 12.1165V14.9186L18.2135 13.5554C19.6524 12.9875 20.5612 11.6243 20.5612 10.0718V4.12687L10.6404 8.10277Z",fill:"#E0006D"}),C.createElement("path",{d:"M3.938 14.049C3.938 14.049 10.0344 16.6239 10.6402 16.8889V8.14194H10.6024L0.681549 4.24176V14.882C0.681549 16.4345 1.62819 17.7977 3.02922 18.3657L10.5645 21.3571H10.6024V17.8734L3.90014 14.9578L3.938 14.049ZM3.938 9.20218L7.91391 10.8683V12.7994L3.938 11.0576V9.20218Z",fill:"#004385"}))};export{e as default};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import a from"next/link.js";import s from"react-tooltip";import n,{CheckoutStep as c}from"./model.js";import{IkasStorefrontConfig as l}from"@ikas/storefront-config";import{formatCurrency as m}from"../../utils/currency.js";import{useTranslation as d}from"../../utils/i18n.js";import p from"./steps/step-info/index.js";import{CheckoutStepShipping as u}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as v}from"./steps/step-payment/index.js";import{CartSummary as h}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as g}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/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/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/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/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as y}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as f}from"./steps/step-success/index.js";import{Modal as E}from"./components/modal/index.js";import k from"./components/master-pass/modal-otp/index.js";import x from"./components/master-pass/modal-response/index.js";import j from"./components/master-pass/modal-success/index.js";import{Image as C}from"../image/index.js";import b,{Step as N}from"./components/step-container/index.js";import{StockError as F}from"./components/error/stock-error/index.js";import{FullscreenLoading as M}from"./components/fullscreen-loading/index.js";import P from"./components/notification-box/index.js";import{FormItem as T}from"./components/form-item/index.js";import{FormItemType as S}from"./components/form-item/model.js";import{Button as w}from"./components/button/index.js";import{IkasPageHead as A}from"../page/head.js";import I from"./components/offer-product/index.js";import O from"./components/svg/ikas.js";import B from"./style.module.scss.js";import{Analytics as L}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import V from"./components/epaykolay-button/index.js";var R=i((function(i){var a,m,p,u=i.checkout,v=i.checkoutSettings,y=i.customizationProps,C=i.returnPolicy,b=i.privacyPolicy,N=i.termsOfService,P=i.imprint,T=i.shippingPolicy,S=d().t,w=r(),R=o.useState((function(){return new n(u,v,w,C,b,N,P,T,S,y||{})}))[0];R.step===c.PAYMENT&&L.disableHTML();var _=function(o){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e="".concat(process.env.NEXT_PUBLIC_BASE_URL,"/os/e-pay-kolay/get-basket"),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":l.getApiKey()},body:JSON.stringify({cartId:R.checkout.id,customerNumber:o,sessionsState:Date.now()})})];case 1:return[2,t.sent().json()]}}))}))};o.useEffect((function(){R.checkoutSettings.isAccountRequired&&!R.checkout.hasCustomer&&w.push("/account/login?redirect="+encodeURIComponent(R.checkoutUrl)),L.beginCheckout(R.checkout),L.pageView(g.CHECKOUT)}),[]),o.useEffect((function(){R.customizationProps=y,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED")}(y)}),[y]),o.useEffect((function(){if(R.isEPayKolayEnabled)var o=setInterval((function(){var i;window.setContainerService&&R.isCheckoutLoaded&&(window.setContainerService(null===(i=l.getMerchantSettings())||void 0===i?void 0:i.merchantId,_,(function(o){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,K(o)];case 1:return[2,e.sent()]}}))}))}),(function(){console.log("Switching to epaykolay"),R.isEPayKolayPayment=!0}),"https://cdn-epeykolay.mncdn.com/epay/"),clearInterval(o))}),100)}),[]);var K=o.useCallback((function(o){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return[4,fetch("".concat(process.env.NEXT_PUBLIC_BASE_URL,"/os/e-pay-kolay/complete-payment"),{method:"POST",body:JSON.stringify({data:o,cartId:R.checkout.id}),headers:{"Content-Type":"application/json","x-api-key":l.getApiKey()}})];case 1:return[4,t.sent().json()];case 2:return e=t.sent(),[2,"".concat(window.location.pathname,"?id=").concat(R.checkout.id,"&step=").concat(e.success?"success":"info")]}}))}))}),[]);if(!R.isCheckoutLoaded||!R.store.customerStore.initialized)return o.createElement(M,null);if(R.checkout.hasCustomer&&(null===(a=R.store.customerStore.customer)||void 0===a?void 0:a.id)!==(null===(m=R.checkout.customer)||void 0===m?void 0:m.id))return w.push("/account/login?redirect="+encodeURIComponent(R.checkoutUrl)),null;return o.createElement(o.Fragment,null,o.createElement(A,{pageType:g.CHECKOUT,pageTitle:((null===(p=R.merchantSettings)||void 0===p?void 0:p.merchantName)||"")+" - "+S("checkout-page:securePayment"),pageDescription:S("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:B.CheckoutPage},o.createElement(s,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:B.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:[B.Left,R.isEPayKolayPayment?B.epaykolay:""].join(" ")},R.isEPayKolayEnabled&&o.createElement("div",{id:"plateau_ui_placeholder",style:{width:"100%"}}),!R.isEPayKolayPayment&&o.createElement("div",{className:B.LeftContent},o.createElement("div",null,o.createElement(U,{vm:R}),o.createElement("div",null,R.step!==c.SUCCESS&&R.isEPayKolayEnabled&&o.createElement(V,{onClick:function(){window.frictionless()}})),R.hasStockError&&o.createElement("div",{className:B.ErrorContainer},o.createElement(F,{vm:R,error:R.error})),!R.hasStockError&&o.createElement(o.Fragment,null,o.createElement(h,{vm:R,allowExpand:!0}),R.step===c.SUCCESS?o.createElement(f,{vm:R}):o.createElement(o.Fragment,null,R.checkoutCampaignOffer&&o.createElement(I,{vm:R,campaignOffer:R.checkoutCampaignOffer}),o.createElement(D,{vm:R}))),o.createElement("div",{className:B.Space})),o.createElement(H,{vm:R}))),o.createElement("div",{className:B.Right},o.createElement("div",{className:B.RightContent},o.createElement(h,{vm:R}),o.createElement("div",{className:B.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===l.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(O,null))))),!!R.policyModalText&&o.createElement(E,{title:R.policyModalTitle,modalContent:R.policyModalText,onClose:function(){R.policyModalText=""}}),R.isContactModalVisible&&o.createElement(z,{vm:R,setVisible:R.setContactModalVisible}),R.mpVM.isOtpModalVisible&&o.createElement(k,{vm:R,visible:R.mpVM.isOtpModalVisible,type:R.mpVM.otpModalType,onClose:R.mpVM.hideOtpModal}),R.mpVM.isResponseModalVisible&&o.createElement(x,{visible:R.mpVM.isResponseModalVisible,text:R.mpVM.mfsResponseModalText,onClose:R.mpVM.onResponseModalClose}),R.mpVM.isSuccessModalVisible&&o.createElement(j,{visible:R.mpVM.isSuccessModalVisible,type:R.mpVM.successModalType,onClose:R.mpVM.onSuccessModalClose})))})),U=i((function(e){var t,i,r,s=e.vm,n=d().t;return o.createElement("div",{className:B.Header},o.createElement(a,{href:"/",passHref:!0},o.createElement("a",null,(null===(t=s.merchantSettings)||void 0===t?void 0:t.logo)?o.createElement("div",{className:B.Logo},o.createElement(C,{layout:"fill",image:s.merchantSettings.logo,sizes:"360px"})):(null===(i=s.merchantSettings)||void 0===i?void 0:i.merchantName)||"")),!s.checkout.hasCustomer&&o.createElement("div",{className:B.LoginText},o.createElement("span",{className:B.LoginCta},n("checkout-page:alreadyHaveAnAccount")),o.createElement(a,{href:"/account/login?redirect="+encodeURIComponent(s.checkoutUrl),passHref:!0},o.createElement("a",{className:B.LoginBtn},n("checkout-page:actions.login")))),s.checkout.hasCustomer&&o.createElement("div",{className:B.CustomerInfo},o.createElement("div",{className:B.Name},s.checkout.customerFullName),o.createElement("div",{className:B.Email},null===(r=s.checkout.customer)||void 0===r?void 0:r.email)))})),D=i((function(e){var t=e.vm,i=d().t,r=o.useMemo((function(){switch(t.step){case c.INFO:return o.createElement(p,{vm:t});case c.SHIPPING:return o.createElement(u,{vm:t});case c.PAYMENT:return o.createElement(v,{vm:t});case c.SUCCESS:return o.createElement(f,{vm:t})}}),[t,t.step]),a=[new N(i("checkout-page:address"),t.step===c.INFO,t.step!==c.INFO,t.step!==c.INFO?o.createElement("div",{className:B.AdressStepInfo},o.createElement(_,{vm:t}),o.createElement("div",{className:B.EditBtn,onClick:t.onBackToInfoClick},i("checkout-page:actions.edit"))):void 0,t.step!==c.INFO?o.createElement("div",{className:B.AddressStepInfoMobile},o.createElement(_,{vm:t})):void 0),new N(i("checkout-page:payment"),t.step===c.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||a.splice(1,0,new N(i("checkout-page:shipping"),t.step===c.SHIPPING,t.step===c.PAYMENT,t.step===c.PAYMENT?o.createElement("div",{className:B.AdressStepInfo},o.createElement(K,{vm:t}),(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:B.EditBtn,onClick:t.onBackToShippingClick},i("checkout-page:actions.edit"))):void 0,t.step===c.PAYMENT?o.createElement("div",{className:B.AddressStepInfoMobile},o.createElement(K,{vm:t})):void 0)),o.createElement(b,{steps:a,stepContent:r})})),_=i((function(e){var t,i,r,a,s,n,c,l,m,p=e.vm,u=d().t,v=p.isDigitalOnly?((null===(t=p.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(i=p.checkout.billingAddress)||void 0===i?void 0:i.lastName)||""):((null===(r=p.checkout.shippingAddress)||void 0===r?void 0:r.firstName)||"")+" "+((null===(a=p.checkout.shippingAddress)||void 0===a?void 0:a.lastName)||"");return o.createElement("div",{className:B.Address},o.createElement("div",{className:[B.Text,B.WithMBottom].join(" ")},(null===(s=p.checkout.customer)||void 0===s?void 0:s.email)||""),"address"===p.deliveryMethod?o.createElement("div",{className:B.Text},v):o.createElement(o.Fragment,null,o.createElement("div",{className:B.Text},u("checkout-page:receiver")),o.createElement("div",{className:[B.Text,B.Gray].join(" ")},v)),o.createElement("div",{className:[B.Text,B.Gray].join(" ")},p.isDigitalOnly?null===(n=p.checkout.billingAddress)||void 0===n?void 0:n.phone:null===(c=p.checkout.shippingAddress)||void 0===c?void 0:c.phone),"in-store"===p.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[B.Text,B.WithMTop].join(" ")},u("checkout-page:pickUpLocation"))),o.createElement("div",{className:[B.Text,B.Gray].join(" ")},p.isDigitalOnly?null===(l=p.checkout.billingAddress)||void 0===l?void 0:l.addressText:null===(m=p.checkout.shippingAddress)||void 0===m?void 0:m.addressText))})),K=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:B.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:B.LightText}," / "+(0===t.checkout.shippingLines[0].price?i("checkout-page:free"):m(t.checkout.shippingLines[0].price,t.checkout.currencyCode,t.checkout.currencySymbol)))):i("checkout-page:standartShipping"))})),H=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:B.Footer},o.createElement("div",{className:B.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},i("checkout-page:returnPolicy")),o.createElement("div",{className:B.FooterBullet},"•"),o.createElement("div",{className:B.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},i("checkout-page:privacyPolicy")),o.createElement("div",{className:B.FooterBullet},"•"),o.createElement("div",{className:B.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},i("checkout-page:termsOfService")),t.imprint&&o.createElement(o.Fragment,null,o.createElement("div",{className:B.FooterBullet},"•"),o.createElement("div",{className:B.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:imprint"),t.policyModalText=t.imprint}},i("checkout-page:imprint"))),t.shippingPolicy&&o.createElement(o.Fragment,null,o.createElement("div",{className:B.FooterBullet},"•"),o.createElement("div",{className:B.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:shippingPolicy"),t.policyModalText=t.shippingPolicy}},i("checkout-page:shippingPolicy"))))})),z=i((function(i){var r,a,s,n=i.vm,c=i.setVisible,l=d().t,m=o.useState(!1),p=m[0],u=m[1],v=o.useState(!1),h=v[0],g=v[1],f=o.useState(new y({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];f.email=(null===(r=n.checkout.customer)||void 0===r?void 0:r.email)||"",f.firstName=(null===(a=n.checkout.customer)||void 0===a?void 0:a.firstName)||"",f.lastName=(null===(s=n.checkout.customer)||void 0===s?void 0:s.lastName)||"";var k=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return h?[2,c(!1)]:(u(!0),[4,f.saveContactForm()]);case 1:return e.sent()&&g(!0),u(!1),[2]}}))}))}),[p]);return o.createElement(E,{title:l("checkout-page:contactForm"),modalContent:o.createElement("div",null,h&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(P,{type:"success",title:l("checkout-page:contactFormSent"),content:l("checkout-page:contactFormDescription")})),o.createElement(T,{type:S.TEXT_AREA,label:"",value:f.message||"",onChange:f.onMessageChange,textAreaPlaceholder:l("checkout-page:contactFormCta")}),o.createElement(w,{style:{width:"100%",marginTop:"24px"},text:l(h?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:p,isDisabled:!f.message,onClick:k})),onClose:function(){return c(!1)}})}));export{R as default};
1
+ import{__awaiter as e,__generator as t}from'./../../ext/tslib/tslib.es6.js';import*as o from"react";import{observer as i}from"mobx-react-lite";import{useRouter as r}from"next/router.js";import n from"next/link.js";import a from"react-tooltip";import s,{CheckoutStep as c}from"./model.js";import{IkasStorefrontConfig as l}from"@ikas/storefront-config";import{formatCurrency as m}from"../../utils/currency.js";import{useTranslation as d}from"../../utils/i18n.js";import u from"./steps/step-info/index.js";import{CheckoutStepShipping as p}from"./steps/step-shipping/index.js";import{CheckoutStepPayment as v}from"./steps/step-payment/index.js";import{CouponErrorCode as h,Coupon as g,CartSummary as y}from"./components/cart-summary/index.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as E}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/region/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/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/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/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/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import{ContactForm as f}from"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{StepSuccess as k}from"./steps/step-success/index.js";import{Modal as x}from"./components/modal/index.js";import j from"./components/master-pass/modal-otp/index.js";import C from"./components/master-pass/modal-response/index.js";import b from"./components/master-pass/modal-success/index.js";import{Image as N}from"../image/index.js";import F,{Step as T}from"./components/step-container/index.js";import{StockError as P}from"./components/error/stock-error/index.js";import{FullscreenLoading as S}from"./components/fullscreen-loading/index.js";import M from"./components/notification-box/index.js";import{FormItem as w}from"./components/form-item/index.js";import{FormItemType as A}from"./components/form-item/model.js";import{Button as O}from"./components/button/index.js";import{IkasPageHead as I}from"../page/head.js";import B from"./components/offer-product/index.js";import L from"./components/svg/ikas.js";import V from"./style.module.scss.js";import{Analytics as U}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import R from"./components/epaykolay-button/index.js";var _=i((function(i){var n,m,u,p=i.checkout,v=i.checkoutSettings,h=i.customizationProps,g=i.returnPolicy,f=i.privacyPolicy,N=i.termsOfService,F=i.imprint,T=i.shippingPolicy,M=d().t,w=r(),A=o.useState((function(){return new s(p,v,w,g,f,N,F,T,M,h||{})}))[0],O=o.useMemo((function(){return Date.now()}),[]);A.step===c.PAYMENT&&U.disableHTML();var _=function(o,i,r,n){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return e="".concat(process.env.NEXT_PUBLIC_BASE_URL,"/os/e-pay-kolay/get-basket"),[4,fetch(e,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":l.getApiKey()},body:JSON.stringify({cartId:A.checkout.id,customerNumber:o,sessionsState:O,addressDto:r,paymentType:n})})];case 1:return[2,t.sent().json()]}}))}))};o.useEffect((function(){A.checkoutSettings.isAccountRequired&&!A.checkout.hasCustomer&&w.push("/account/login?redirect="+encodeURIComponent(A.checkoutUrl)),U.beginCheckout(A.checkout),U.pageView(E.CHECKOUT)}),[]),o.useEffect((function(){A.customizationProps=h,function(e){document.documentElement.style.setProperty("--checkout-button-bg-color",(null==e?void 0:e.buttonBgColor)||"#272727"),document.documentElement.style.setProperty("--checkout-button-text-color",(null==e?void 0:e.buttonTextColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-button-disabled-bg-color",(null==e?void 0:e.buttonDisabledBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-button-disabled-text-color",(null==e?void 0:e.buttonDisabledTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-text-color",(null==e?void 0:e.primaryTextColor)||"#272727"),document.documentElement.style.setProperty("--checkout-secondary-text-color",(null==e?void 0:e.secondaryTextColor)||"#8A8B94"),document.documentElement.style.setProperty("--checkout-primary-bg-color",(null==e?void 0:e.primaryBgColor)||"#FFFFFF"),document.documentElement.style.setProperty("--checkout-secondary-bg-color",(null==e?void 0:e.secondaryBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-border-color",(null==e?void 0:e.borderColor)||"#E5E4E9"),document.documentElement.style.setProperty("--checkout-card-bg-color",(null==e?void 0:e.cardBgColor)||"#F7F7F9"),document.documentElement.style.setProperty("--checkout-error-color",(null==e?void 0:e.errorColor)||"#FB4E4E"),document.documentElement.style.setProperty("--checkout-error-light-color",(null==e?void 0:e.errorLightColor)||"#FCF3F4"),document.documentElement.style.setProperty("--checkout-warning-color",(null==e?void 0:e.warningColor)||"#FFBC1F"),document.documentElement.style.setProperty("--checkout-warning-light-color",(null==e?void 0:e.warningLightColor)||"#FFFAEE"),document.documentElement.style.setProperty("--checkout-success-color",(null==e?void 0:e.successColor)||"#2DCA73"),document.documentElement.style.setProperty("--checkout-success-light-color",(null==e?void 0:e.successLightColor)||"#F6FFED")}(h)}),[h]),o.useEffect((function(){if(A.isEPayKolayEnabled)var o=setInterval((function(){var i,r;window.setContainerService&&A.isCheckoutLoaded&&(window.setContainerService(null===(i=l.getMerchantSettings())||void 0===i?void 0:i.merchantId,_,(function(o){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,z(o)];case 1:return[2,e.sent()]}}))}))}),(function(){console.log("Switching to epaykolay"),A.isEPayKolayPayment=!0}),"https://cdn-epeykolay.mncdn.com/".concat((null===(r=l.getApiUrl())||void 0===r?void 0:r.includes("myikas.com"))?"epay":"epay-uat","/")),clearInterval(o))}),100)}),[]);var z=o.useCallback((function(o){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return[4,fetch("".concat(process.env.NEXT_PUBLIC_BASE_URL,"/os/e-pay-kolay/complete-payment"),{method:"POST",body:JSON.stringify({data:o,cartId:A.checkout.id}),headers:{"Content-Type":"application/json","x-api-key":l.getApiKey()}})];case 1:return[4,t.sent().json()];case 2:return e=t.sent(),[2,{redirectUrl:"".concat(window.location.pathname,"?id=").concat(A.checkout.id,"&step=").concat(e.success?"success":"info"),orderId:e.orderNumber||null}]}}))}))}),[]);if(!A.isCheckoutLoaded||!A.store.customerStore.initialized)return o.createElement(S,null);if(A.checkout.hasCustomer&&(null===(n=A.store.customerStore.customer)||void 0===n?void 0:n.id)!==(null===(m=A.checkout.customer)||void 0===m?void 0:m.id))return w.push("/account/login?redirect="+encodeURIComponent(A.checkoutUrl)),null;return o.createElement(o.Fragment,null,o.createElement(I,{pageType:E.CHECKOUT,pageTitle:((null===(u=A.merchantSettings)||void 0===u?void 0:u.merchantName)||"")+" - "+M("checkout-page:securePayment"),pageDescription:M("checkout-page:securePayment")}),o.createElement("div",{id:"Checkout",className:V.CheckoutPage},o.createElement(a,{place:"top",type:"dark",effect:"solid",arrowColor:"transparent",multiline:!0,className:V.ReactTooltipWrap,globalEventOff:"touchstart"}),o.createElement("div",{className:[V.Left,A.isEPayKolayPayment?V.epaykolay:""].join(" ")},A.isEPayKolayEnabled&&o.createElement("div",{id:"plateau_ui_placeholder",style:{width:"100%"}}),!A.isEPayKolayPayment&&o.createElement("div",{className:V.LeftContent},o.createElement("div",null,o.createElement(D,{vm:A}),A.hasStockError&&o.createElement("div",{className:V.ErrorContainer},o.createElement(P,{vm:A,error:A.error})),!A.hasStockError&&o.createElement(o.Fragment,null,o.createElement(y,{vm:A,allowExpand:!0}),o.createElement("div",null,A.step!==c.SUCCESS&&A.isEPayKolayEnabled&&o.createElement(R,{onClick:function(){window.frictionless()}})),A.step===c.SUCCESS?o.createElement(k,{vm:A}):o.createElement(o.Fragment,null,A.checkoutCampaignOffer&&o.createElement(B,{vm:A,campaignOffer:A.checkoutCampaignOffer}),A.isCouponCodeRequirementOpen&&o.createElement(H,{vm:A}),o.createElement(K,{vm:A}))),o.createElement("div",{className:V.Space})),o.createElement(Y,{vm:A}))),o.createElement("div",{className:V.Right},o.createElement("div",{className:V.RightContent},o.createElement(y,{vm:A}),!A.isPoweredByHidden&&o.createElement("div",{className:V.PoweredBy},o.createElement("span",null,"powered by"),o.createElement("a",{href:"https://ikas.com"+("tr"===l.getCurrentLocale()?"/tr":""),target:"_blank"},o.createElement(L,null))))),!!A.policyModalText&&o.createElement(x,{title:A.policyModalTitle,modalContent:A.policyModalText,onClose:function(){A.policyModalText=""}}),A.isContactModalVisible&&o.createElement(X,{vm:A,setVisible:A.setContactModalVisible}),A.mpVM.isOtpModalVisible&&o.createElement(j,{vm:A,visible:A.mpVM.isOtpModalVisible,type:A.mpVM.otpModalType,onClose:A.mpVM.hideOtpModal}),A.mpVM.isResponseModalVisible&&o.createElement(C,{visible:A.mpVM.isResponseModalVisible,text:A.mpVM.mfsResponseModalText,onClose:A.mpVM.onResponseModalClose}),A.mpVM.isSuccessModalVisible&&o.createElement(b,{visible:A.mpVM.isSuccessModalVisible,type:A.mpVM.successModalType,onClose:A.mpVM.onSuccessModalClose})))})),D=i((function(e){var t,i,r,a=e.vm,s=d().t;return o.createElement("div",{className:V.Header},o.createElement(n,{href:"/",passHref:!0},o.createElement("a",null,(null===(t=a.merchantSettings)||void 0===t?void 0:t.logo)?o.createElement("div",{className:V.Logo},o.createElement(N,{layout:"fill",image:a.merchantSettings.logo,sizes:"360px"})):(null===(i=a.merchantSettings)||void 0===i?void 0:i.merchantName)||"")),!a.checkout.hasCustomer&&o.createElement("div",{className:V.LoginText},o.createElement("span",{className:V.LoginCta},s("checkout-page:alreadyHaveAnAccount")),o.createElement(n,{href:"/account/login?redirect="+encodeURIComponent(a.checkoutUrl),passHref:!0},o.createElement("a",{className:V.LoginBtn},s("checkout-page:actions.login")))),a.checkout.hasCustomer&&o.createElement("div",{className:V.CustomerInfo},o.createElement("div",{className:V.Name},a.checkout.customerFullName),o.createElement("div",{className:V.Email},null===(r=a.checkout.customer)||void 0===r?void 0:r.email)))})),H=i((function(e){var t=e.vm,i=d().t,r=o.useState(!1),n=r[0],a=r[1],s=o.useState(null),c=s[0],l=s[1],m=o.useMemo((function(){switch(c){case h.COUPON_CODE_NOT_EXIST:return i("checkout-page:giftCodeErrorDescription");case h.COUPON_CODE_NOT_EXIST_FOR_GUESS:return i("checkout-page:mustBeSignInToApplyCampaign");default:return""}}),[c]);return o.createElement("div",{className:V.CouponContainer},n&&o.createElement("div",{className:V.NotificationContainer},o.createElement(M,{type:"warning",title:i("checkout-page:giftCodeErrorTitle"),content:m,onClose:function(){a(!1),l(null)},ignoreScroll:!0})),o.createElement("div",{style:{marginTop:n?12:0}},o.createElement(g,{vm:t,isOpenCouponCode:!0,isAddingCoupon:!0,setAddingCoupon:function(){},setCouponError:a,setCouponErrorCode:l})))})),K=i((function(e){var t=e.vm,i=d().t,r=o.useMemo((function(){switch(t.step){case c.INFO:return o.createElement(u,{vm:t});case c.SHIPPING:return o.createElement(p,{vm:t});case c.PAYMENT:return o.createElement(v,{vm:t});case c.SUCCESS:return o.createElement(k,{vm:t})}}),[t,t.step]),n=[new T(i("checkout-page:address"),t.step===c.INFO,t.step!==c.INFO,t.step!==c.INFO?o.createElement("div",{className:V.AdressStepInfo},o.createElement(z,{vm:t}),o.createElement("div",{className:V.EditBtn,onClick:t.onBackToInfoClick},i("checkout-page:actions.edit"))):void 0,t.step!==c.INFO?o.createElement("div",{className:V.AddressStepInfoMobile},o.createElement(z,{vm:t})):void 0),new T(i("checkout-page:payment"),t.step===c.PAYMENT,!1)];return"address"!==t.deliveryMethod||t.isDigitalOnly||n.splice(1,0,new T(i("checkout-page:shipping"),t.step===c.SHIPPING,t.step===c.PAYMENT,t.step===c.PAYMENT?o.createElement("div",{className:V.AdressStepInfo},o.createElement(G,{vm:t}),(t.checkout.availableShippingMethods&&t.checkout.availableShippingMethods.length>1||t.checkoutSettings.isGiftPackageEnabled)&&o.createElement("div",{className:V.EditBtn,onClick:t.onBackToShippingClick},i("checkout-page:actions.edit"))):void 0,t.step===c.PAYMENT?o.createElement("div",{className:V.AddressStepInfoMobile},o.createElement(G,{vm:t})):void 0)),o.createElement(F,{steps:n,stepContent:r})})),z=i((function(e){var t,i,r,n,a,s,c,l,m,u=e.vm,p=d().t,v=u.isDigitalOnly?((null===(t=u.checkout.billingAddress)||void 0===t?void 0:t.firstName)||"")+" "+((null===(i=u.checkout.billingAddress)||void 0===i?void 0:i.lastName)||""):((null===(r=u.checkout.shippingAddress)||void 0===r?void 0:r.firstName)||"")+" "+((null===(n=u.checkout.shippingAddress)||void 0===n?void 0:n.lastName)||"");return o.createElement("div",{className:V.Address},o.createElement("div",{className:[V.Text,V.WithMBottom].join(" ")},(null===(a=u.checkout.customer)||void 0===a?void 0:a.email)||""),"address"===u.deliveryMethod?o.createElement("div",{className:V.Text},v):o.createElement(o.Fragment,null,o.createElement("div",{className:V.Text},p("checkout-page:receiver")),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},v)),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},u.isDigitalOnly?null===(s=u.checkout.billingAddress)||void 0===s?void 0:s.phone:null===(c=u.checkout.shippingAddress)||void 0===c?void 0:c.phone),"in-store"===u.deliveryMethod&&o.createElement(o.Fragment,null,o.createElement("div",{className:[V.Text,V.WithMTop].join(" ")},p("checkout-page:pickUpLocation"))),o.createElement("div",{className:[V.Text,V.Gray].join(" ")},u.isDigitalOnly?null===(l=u.checkout.billingAddress)||void 0===l?void 0:l.addressText:null===(m=u.checkout.shippingAddress)||void 0===m?void 0:m.addressText))})),G=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:V.Address},t.checkout.shippingLines&&t.checkout.shippingLines.length?o.createElement(o.Fragment,null,o.createElement("span",null,t.checkout.shippingLines[0].title),o.createElement("span",{className:V.LightText}," / "+(0===t.checkout.shippingLines[0].price?i("checkout-page:free"):m(t.checkout.shippingLines[0].price,t.checkout.currencyCode,t.checkout.currencySymbol)))):i("checkout-page:standartShipping"))})),Y=i((function(e){var t=e.vm,i=d().t;return o.createElement("div",{className:V.Footer},o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:returnPolicy"),t.policyModalText=t.returnPolicy}},i("checkout-page:returnPolicy")),o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:privacyPolicy"),t.policyModalText=t.privacyPolicy}},i("checkout-page:privacyPolicy")),o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:termsOfService"),t.policyModalText=t.termsOfService}},i("checkout-page:termsOfService")),t.imprint&&o.createElement(o.Fragment,null,o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:imprint"),t.policyModalText=t.imprint}},i("checkout-page:imprint"))),t.shippingPolicy&&o.createElement(o.Fragment,null,o.createElement("div",{className:V.FooterBullet},"•"),o.createElement("div",{className:V.FooterItem,onClick:function(){t.policyModalTitle=i("checkout-page:shippingPolicy"),t.policyModalText=t.shippingPolicy}},i("checkout-page:shippingPolicy"))))})),X=i((function(i){var r,n,a,s=i.vm,c=i.setVisible,l=d().t,m=o.useState(!1),u=m[0],p=m[1],v=o.useState(!1),h=v[0],g=v[1],y=o.useState(new f({message:{requiredRule:"",emailRule:"",minRule:""}}))[0];y.email=(null===(r=s.checkout.customer)||void 0===r?void 0:r.email)||"",y.firstName=(null===(n=s.checkout.customer)||void 0===n?void 0:n.firstName)||"",y.lastName=(null===(a=s.checkout.customer)||void 0===a?void 0:a.lastName)||"";var E=o.useCallback((function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return h?[2,c(!1)]:(p(!0),[4,y.saveContactForm()]);case 1:return e.sent()&&g(!0),p(!1),[2]}}))}))}),[u]);return o.createElement(x,{title:l("checkout-page:contactForm"),modalContent:o.createElement("div",null,h&&o.createElement("div",{style:{marginBottom:"12px",maxWidth:"352px"}},o.createElement(M,{type:"success",title:l("checkout-page:contactFormSent"),content:l("checkout-page:contactFormDescription")})),o.createElement(w,{type:A.TEXT_AREA,label:"",value:y.message||"",onChange:y.onMessageChange,textAreaPlaceholder:l("checkout-page:contactFormCta")}),o.createElement(O,{style:{width:"100%",marginTop:"24px"},text:l(h?"checkout-page:actions.close":"checkout-page:actions.sendMessage"),isLoading:u,isDisabled:!y.message,onClick:E})),onClose:function(){return c(!1)}})}));export{_ as default};
@@ -102,11 +102,16 @@ export default class CheckoutViewModel {
102
102
  get isPayPal(): boolean | null | undefined;
103
103
  get isFree(): boolean;
104
104
  get store(): IkasBaseStore;
105
+ get isCouponCodeRequirementDefult(): boolean;
106
+ get isCouponCodeRequirementOpen(): boolean;
107
+ get isCouponCodeRequirementInvisible(): boolean;
108
+ get isCouponCodeVisible(): boolean;
105
109
  get canPerformPayment(): boolean | undefined;
106
110
  get isDigitalOnly(): boolean;
107
111
  get customerAddresses(): IkasLocalizedCustomerAddress[] | undefined;
108
112
  get isManualOrder(): boolean;
109
113
  get isEPayKolayEnabled(): boolean;
114
+ get isPoweredByHidden(): boolean;
110
115
  saveCart: () => Promise<import("../../models").IkasCart | null | undefined>;
111
116
  inStockDeliveryInputData: (input: SaveCartInput) => Promise<SaveCartInput>;
112
117
  checkStocks: () => Promise<void>;