@ikas/storefront 4.9.0-beta.4 → 4.9.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/analytics/facebookPixel.d.ts +1 -0
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/tiktokPixel.d.ts +1 -0
- package/build/analytics/tiktokPixel.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/checkout/steps/step-success/style.module.scss.js +1 -1
- package/build/models/data/order/transaction/index.d.ts +1 -0
- package/build/models/data/order/transaction/index.js +1 -1
- package/package.json +11 -11
|
@@ -2,6 +2,7 @@ import { IkasCheckout, IkasProduct, IkasOrderLineItem } from "../models";
|
|
|
2
2
|
import { IkasCart } from "../models/data/cart";
|
|
3
3
|
export declare class FacebookPixel {
|
|
4
4
|
constructor();
|
|
5
|
+
private static get fbpId();
|
|
5
6
|
static productView(productDetail: IkasProduct): void;
|
|
6
7
|
static addToCart(item: IkasOrderLineItem, quantity: number, eventId: string): void;
|
|
7
8
|
static beginCheckout(checkout: IkasCheckout): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";var
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";var e="undefined"==typeof window,r=function(){function r(){t(this)}return Object.defineProperty(r,"fbpId",{get:function(){return n.getFbpId()},enumerable:!1,configurable:!0}),r.productView=function(t){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","ViewContent",(n=t,{content_name:n.name,content_category:n.categories.length>0?n.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[n.selectedVariant.id],content_type:"product",value:n.selectedVariant.price.finalPrice,currency:""===n.selectedVariant.price.currency?"TRY":n.selectedVariant.price.currency})))}catch(t){console.error(t)}var n},r.addToCart=function(t,n,r){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","AddToCart",function(t,n){var e,r=[];t.variant.categories&&(null===(e=t.variant.categories[0].categoryPath)||void 0===e||e.map((function(t){return r.push(t.name)}))),t.variant.categories&&t.variant.categories.length>0&&r.push(t.variant.categories[0].name);var o=r.length>0?r.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:r}))}catch(t){console.error(t)}},r.beginCheckout=function(t){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","InitiateCheckout",o(t)))}catch(t){console.error(t)}},r.purchase=function(t,n){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","Purchase",o(t),{eventID:n}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],e=[];return t.items.map((function(t){n.push(t.variant.id||""),e.push({id:t.variant.id,quantity:t.quantity})})),{contents:e,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(!e&&this.fbpId&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!e&&this.fbpId&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function o(t){var n=[],e=[];return t.items.map((function(t){n.push(t.variant.id||""),e.push({id:t.variant.id,quantity:t.quantity})})),{contents:e,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,6 +1,7 @@
|
|
|
1
1
|
import { IkasCheckout, IkasProduct, IkasOrderLineItem, IkasCategory } from "../models";
|
|
2
2
|
export declare class TiktokPixel {
|
|
3
3
|
constructor();
|
|
4
|
+
private static get tiktokPixelId();
|
|
4
5
|
static productView(productDetail: IkasProduct): void;
|
|
5
6
|
static addToCart(item: IkasOrderLineItem, quantity: number): void;
|
|
6
7
|
static beginCheckout(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasBaseStore as
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasBaseStore as e}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";var o="undefined"==typeof window,r=function(){function e(){t(this)}return Object.defineProperty(e,"tiktokPixelId",{get:function(){return n.getTiktokPixelId()},enumerable:!1,configurable:!0}),e.productView=function(t){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("ViewContent",function(t,e){void 0===e&&(e=1);return{content_type:"product",quantity:e,content_id:t.selectedVariant.id,value:t.selectedVariant.price.finalPrice,currency:""===t.selectedVariant.price.currency?"TRY":t.selectedVariant.price.currency}}(t)))}catch(t){console.error(t)}},e.addToCart=function(t,e){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("AddToCart",function(t,e){void 0===e&&(e=1);return{content_id:t.variant.id,content_type:"product",content_name:t.variant.name,quantity:e,value:t.finalPrice,currency:t.currencyCode}}(t,e)))}catch(t){console.error(t)}},e.beginCheckout=function(){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("InitiateCheckout"))}catch(t){console.error(t)}},e.purchase=function(t){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("CompletePayment",function(t){var e=[];return null==t||t.items.map((function(t){e.push({content_id:t.variant.id,content_type:"product",content_name:t.variant.name,price:t.finalPrice,quantity:t.quantity})})),{contents:e,content_type:"product_group",currency:t.items[0].currencyCode,value:t.totalPrice}}(t)))}catch(t){console.error(t)}},e.addToWishlist=function(t){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("AddToWishlist",{content_id:t}))}catch(t){console.error(t)}},e.search=function(t){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("Search",{query:t,content_id:"Search"}))}catch(t){console.error(t)}},e.completeRegistration=function(){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("CompleteRegistration"))}catch(t){console.error(t)}},e.viewCategory=function(t){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("ViewContent",{content_id:t.id,content_type:"product_group",content_category:t.name}))}catch(t){console.error(t)}},e.contactForm=function(){try{return i(),void(!o&&this.tiktokPixelId&&window.ttq&&window.ttq.track("Contact"))}catch(t){console.error(t)}},e}();function i(){try{var t=e.getInstance().customerStore.customer;if(!t)return;return void(!o&&n.getTiktokPixelId()&&window.ttq&&window.ttq.identify({external_id:t.id,email:t.email,phone_number:t.phone||""}))}catch(t){console.error(t)}}export{r as TiktokPixel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as o}from"../../components/button/index.js";import{CART_LS_KEY as a}from"../../../../store/cart/index.js";import i from"./style.module.scss.js";import s from"../../components/svg/success-circle.js";import r from"../../components/expandable-section/index.js";import d from"../../components/credit-card-form/svg/amex.js";import n from"../../components/credit-card-form/svg/master-card.js";import c from"../../components/credit-card-form/svg/troy.js";import l from"../../components/credit-card-form/svg/visa.js";import"@ikas/storefront-config";import{formatCurrency as m}from"../../../../utils/currency.js";import{useTranslation as u}from"../../../../utils/i18n.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{IkasPaymentMethodType as p,IkasPaymentGatewayType as v,IkasOrderPackageStatus as E,IkasTransactionCardAssociation as f}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"../../../../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 g from"../../components/offer-product/index.js";import{Analytics as x}from"../../../../analytics/analytics.js";import"../../../../analytics/head/index.js";import{QuickRegistration as j}from"../../components/quick-registration/index.js";var h=t((function(t){var E,h,y,T,N,I,L=t.vm,A=u().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(a);e&&e===L.checkout.id&&(L.successTransaction&&x.purchase(L.checkout,L.successTransaction),localStorage.removeItem(a)),window&&window.handleKlarna&&window.handleKlarna(void 0)}}),[]);var C=((null===(E=L.checkout.customer)||void 0===E?void 0:E.firstName)||"")+" "+((null===(h=L.checkout.customer)||void 0===h?void 0:h.lastName)||""),D=((null===(y=L.checkout.shippingAddress)||void 0===y?void 0:y.firstName)||"")+" "+((null===(T=L.checkout.shippingAddress)||void 0===T?void 0:T.lastName)||""),S=L.paymentGateways.find((function(e){var t;return e.id===(null===(t=L.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),R=null===(N=L.successTransaction)||void 0===N?void 0:N.paymentMethodDetail,b=e.useMemo((function(){var t,o,a,s;return e.createElement("div",{className:[i.InfoGrid].join(" ")},!L.isFree&&e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:paymentMethod")),S&&e.createElement(e.Fragment,null,!!S.logoUrl&&e.createElement("div",{className:i.PaymentLogoContainer},e.createElement("img",{src:S.logoUrl})),!S.logoUrl&&e.createElement("div",{className:i.InfoText},S.paymentMethodType===p.CREDIT_CARD&&S.type===v.INTERNAL?A("checkout-page:creditCard"):S.name),!!S.description&&S.type!==v.EXTERNAL&&e.createElement("div",{className:i.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:S.description}}))),"CREDIT_CARD"===(null===(t=L.successTransaction)||void 0===t?void 0:t.paymentMethod)&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},e.createElement("div",{className:i.CardLogoContainer},function(){var t,o;switch(null===(o=null===(t=L.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===o?void 0:o.cardAssociation){case f.AMERICAN_EXPRESS:return e.createElement(d,null);case f.MASTER_CARD:return e.createElement(n,null);case f.TROY:return e.createElement(c,null);case f.VISA:return e.createElement(l,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==R?void 0:R.lastFourDigits)||""))),(null===(o=null==R?void 0:R.installment)||void 0===o?void 0:o.installmentCount)&&R.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},"".concat(R.installment.installmentCount," ").concat(A("checkout-page:installments"))),null!==R.installment.installmentPrice&&e.createElement("div",{className:i.InfoText},"".concat(R.installment.installmentCount," x ").concat(m(R.installment.installmentPrice,L.checkout.currencyCode,L.checkout.currencySymbol)))))),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:billingAddress")),!!(null===(a=L.checkout.billingAddress)||void 0===a?void 0:a.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},L.checkout.billingAddress.company),e.createElement("div",{className:i.InfoText},null===(s=L.checkout.billingAddress)||void 0===s?void 0:s.addressText)))}),[]),P=e.useMemo((function(){var t,o,a,s,r;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(t=L.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:i.InfoText},C),!!(null===(o=L.checkout.shippingAddress)||void 0===o?void 0:o.phone)&&e.createElement("div",{className:i.InfoText},null===(a=L.checkout.shippingAddress)||void 0===a?void 0:a.phone)),e.createElement("div",null,"in-store"===L.deliveryMethod&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:receiver")),e.createElement("div",{className:[i.InfoText,i.withMBottom].join(" ")},D)),e.createElement("div",{className:i.InfoTitle},"address"===L.deliveryMethod?A("checkout-page:shippingAddress"):A("checkout-page:pickUpLocation")),!!(null===(s=L.checkout.shippingAddress)||void 0===s?void 0:s.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},L.checkout.shippingAddress.company),e.createElement("div",{className:i.InfoText},null===(r=L.checkout.shippingAddress)||void 0===r?void 0:r.addressText)))}),[]);return e.createElement("div",{className:i.StepSuccess},e.createElement("div",{className:i.SuccessTitleContainer},e.createElement(s,{className:i.SuccessCircle}),e.createElement("span",{className:i.SuccessTitle},A("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:i.SuccessSubTitle},A("address"===L.deliveryMethod?"checkout-page:orderSuccessDescription":"checkout-page:orderSuccessInStoreDeliveryDescription",{customerName:C})),e.createElement("div",{className:[i.InfoGrid,i.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:orderNoAndDate")),e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},"#"+(L.checkout.orderNumber||"")),e.createElement("div",{className:i.InfoText},L.checkout.dateStr),e.createElement(k,{vm:L})),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},A("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(I=L.checkout.customer)||void 0===I?void 0:I.email),e.createElement("div",{className:i.InfoText},C))),L.postCheckoutCampaignOffer&&e.createElement(g,{vm:L,campaignOffer:L.postCheckoutCampaignOffer}),L.hasQuickRegistration&&e.createElement(j,{vm:L}),e.createElement(r,{title:A("checkout-page:paymentSummary")},b),!L.isDigitalOnly&&e.createElement(r,{title:A("checkout-page:shippingSummary")},P),e.createElement("div",{className:i.Actions},e.createElement("div",{className:i.HelpText},e.createElement("span",null,A("checkout-page:helpCtaQuestion")),e.createElement("span",{className:i.Cta,onClick:function(){return L.setContactModalVisible(!0)}},A("checkout-page:helpCta"))),e.createElement(o,{text:A("checkout-page:actions.backToShopping"),onClick:L.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),k=t((function(t){var o,a=t.vm,s=u().t,r=i.Yellow;switch(a.checkout.orderPackageStatus){case E.FULFILLED:case E.PARTIALLY_FULFILLED:case E.DELIVERED:case E.PARTIALLY_DELIVERED:r=i.Green;break;case E.CANCELLED:case E.PARTIALLY_CANCELLED:case E.CANCEL_REJECTED:case E.CANCEL_REQUESTED:r=i.Red}return e.createElement("div",{className:[i.OrderStatus,r].join(" ")},a.checkout.orderPackageStatus?null===(o=[{types:[E.UNFULFILLED],text:s("checkout-page:orderPackageStatus.unfulfilled")},{types:[E.READY_FOR_SHIPMENT],text:s("checkout-page:orderPackageStatus.readyForShipment")},{types:[E.PARTIALLY_FULFILLED],text:s("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[E.FULFILLED],text:s("checkout-page:orderPackageStatus.fulfilled")},{types:[E.DELIVERED,E.PARTIALLY_DELIVERED],text:s("checkout-page:orderPackageStatus.delivered")},{types:[E.UNABLE_TO_DELIVER],text:s("checkout-page:orderPackageStatus.unableToDeliver")},{types:[E.CANCELLED,E.PARTIALLY_CANCELLED],text:s("checkout-page:orderPackageStatus.cancelled")},{types:[E.CANCEL_REJECTED],text:s("checkout-page:orderPackageStatus.cancelRejected")},{types:[E.REFUNDED,E.PARTIALLY_REFUNDED],text:s("checkout-page:orderPackageStatus.refunded")},{types:[E.REFUND_REQUEST_ACCEPTED],text:s("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[E.REFUND_REJECTED],text:s("checkout-page:orderPackageStatus.refundRejected")},{types:[E.REFUND_REQUESTED],text:s("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(a.checkout.orderPackageStatus)})))||void 0===o?void 0:o.text:"")}));export{h as StepSuccess};
|
|
1
|
+
import*as e from"react";import{observer as t}from"mobx-react-lite";import{Button as a}from"../../components/button/index.js";import{CART_LS_KEY as o}from"../../../../store/cart/index.js";import s from"./style.module.scss.js";import r from"../../components/svg/success-circle.js";import i from"../../components/expandable-section/index.js";import c from"../../components/credit-card-form/svg/amex.js";import n from"../../components/credit-card-form/svg/master-card.js";import d from"../../components/credit-card-form/svg/troy.js";import l from"../../components/credit-card-form/svg/visa.js";import"@ikas/storefront-config";import{formatCurrency as m}from"../../../../utils/currency.js";import{useTranslation as u}from"../../../../utils/i18n.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{IkasPaymentMethodType as p,IkasPaymentGatewayType as E,IkasOrderPackageStatus as v,IkasTransactionCardAssociation 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"../../../../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 f from"../../components/offer-product/index.js";import{Analytics as h}from"../../../../analytics/analytics.js";import"../../../../analytics/head/index.js";import{QuickRegistration as x}from"../../components/quick-registration/index.js";var k=t((function(t){var v,k,T,y,I,N,A,L=t.vm,C=u().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(o);e&&e===L.checkout.id&&(L.successTransaction&&h.purchase(L.checkout,L.successTransaction),localStorage.removeItem(o)),window&&window.handleKlarna&&window.handleKlarna(void 0)}}),[]);var R=((null===(v=L.checkout.customer)||void 0===v?void 0:v.firstName)||"")+" "+((null===(k=L.checkout.customer)||void 0===k?void 0:k.lastName)||""),D=((null===(T=L.checkout.shippingAddress)||void 0===T?void 0:T.firstName)||"")+" "+((null===(y=L.checkout.shippingAddress)||void 0===y?void 0:y.lastName)||""),S=L.paymentGateways.find((function(e){var t;return e.id===(null===(t=L.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),_=function(e){switch(e){case p.APP_PAYMENT:return C("checkout-page:appPayment");case p.BANK_REDIRECT:return C("checkout-page:bankRedirect");case p.BUY_ONLINE_PAY_AT_STORE:return C("checkout-page:buyOnlinePayAtStore");case p.CASH:return C("checkout-page:cash");case p.CASH_ON_DELIVERY:return C("checkout-page:cashOnDelivery");case p.CREDIT_CARD:return C("checkout-page:creditCard");case p.CREDIT_CARD_ON_DELIVERY:return C("checkout-page:creditCardOnDelivery");case p.DIRECT_DEBIT:return C("checkout-page:directDebit");case p.GIFT_CARD:return C("checkout-page:giftCard");case p.MONEY_ORDER:return C("checkout-page:moneyOrder");case p.OTHER:return C("checkout-page:other");case p.PAY_LATER:return C("checkout-page:payLater");case p.SLICE_IT:return C("checkout-page:sliceIt");case p.WALLET:return C("checkout-page:wallet");default:return""}},P=null===(I=L.successTransaction)||void 0===I?void 0:I.paymentMethodDetail,b=null===(N=L.successTransaction)||void 0===N?void 0:N.paymentGatewayCode,F=e.useMemo((function(){var t,a,o,r,i,u;return e.createElement("div",{className:[s.InfoGrid].join(" ")},!L.isFree&&e.createElement("div",null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:paymentMethod")),S&&e.createElement(e.Fragment,null,!!S.logoUrl&&e.createElement("div",{className:s.PaymentLogoContainer},e.createElement("img",{src:S.logoUrl})),!S.logoUrl&&e.createElement("div",{className:s.InfoText},S.paymentMethodType===p.CREDIT_CARD&&S.type===E.INTERNAL?C("checkout-page:creditCard"):S.name),"STRIPE"===S.code||"PAYPAL"===S.code||"KLARNA"===S.code?e.createElement("div",{className:s.InfoText},_(S.paymentMethodType)):!!S.description&&S.type!==E.EXTERNAL&&e.createElement("div",{className:s.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:S.description}}))),"E_PAY_KOLAY"===b&&e.createElement(e.Fragment,null,e.createElement("div",{className:s.EPayKolayLogoContainer},e.createElement("img",{src:"https://cdn.myikas.com/sf/assets/payment/epaykolay.png"})),!!(null===(t=L.successTransaction)||void 0===t?void 0:t.paymentMethod)&&e.createElement("div",{className:s.InfoText},_(null===(a=L.successTransaction)||void 0===a?void 0:a.paymentMethod))),"E_PAY_KOLAY"!==b&&"STRIPE"!==b&&"PAYPAL"!==b&&"KLARNA"!==b&&"CREDIT_CARD"===(null===(o=L.successTransaction)||void 0===o?void 0:o.paymentMethod)&&e.createElement(e.Fragment,null,e.createElement("div",{className:s.InfoText},e.createElement("div",{className:s.CardLogoContainer},function(){var t,a;switch(null===(a=null===(t=L.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===a?void 0:a.cardAssociation){case g.AMERICAN_EXPRESS:return e.createElement(c,null);case g.MASTER_CARD:return e.createElement(n,null);case g.TROY:return e.createElement(d,null);case g.VISA:return e.createElement(l,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==P?void 0:P.lastFourDigits)||""))),(null===(r=null==P?void 0:P.installment)||void 0===r?void 0:r.installmentCount)&&P.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:s.InfoText},"".concat(P.installment.installmentCount," ").concat(C("checkout-page:installments"))),null!==P.installment.installmentPrice&&e.createElement("div",{className:s.InfoText},"".concat(P.installment.installmentCount," x ").concat(m(P.installment.installmentPrice,L.checkout.currencyCode,L.checkout.currencySymbol)))))),e.createElement("div",null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:billingAddress")),!!(null===(i=L.checkout.billingAddress)||void 0===i?void 0:i.company)&&e.createElement("div",{className:[s.InfoText,s.InfoTextBold].join(" ")},L.checkout.billingAddress.company),e.createElement("div",{className:s.InfoText},null===(u=L.checkout.billingAddress)||void 0===u?void 0:u.addressText)))}),[]),w=e.useMemo((function(){var t,a,o,r,i;return e.createElement("div",{className:[s.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:contactInfo")),e.createElement("div",{className:s.InfoText},null===(t=L.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:s.InfoText},R),!!(null===(a=L.checkout.shippingAddress)||void 0===a?void 0:a.phone)&&e.createElement("div",{className:s.InfoText},null===(o=L.checkout.shippingAddress)||void 0===o?void 0:o.phone)),e.createElement("div",null,"in-store"===L.deliveryMethod&&e.createElement(e.Fragment,null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:receiver")),e.createElement("div",{className:[s.InfoText,s.withMBottom].join(" ")},D)),e.createElement("div",{className:s.InfoTitle},"address"===L.deliveryMethod?C("checkout-page:shippingAddress"):C("checkout-page:pickUpLocation")),!!(null===(r=L.checkout.shippingAddress)||void 0===r?void 0:r.company)&&e.createElement("div",{className:[s.InfoText,s.InfoTextBold].join(" ")},L.checkout.shippingAddress.company),e.createElement("div",{className:s.InfoText},null===(i=L.checkout.shippingAddress)||void 0===i?void 0:i.addressText)))}),[]);return e.createElement("div",{className:s.StepSuccess},e.createElement("div",{className:s.SuccessTitleContainer},e.createElement(r,{className:s.SuccessCircle}),e.createElement("span",{className:s.SuccessTitle},C("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:s.SuccessSubTitle},C("address"===L.deliveryMethod?"checkout-page:orderSuccessDescription":"checkout-page:orderSuccessInStoreDeliveryDescription",{customerName:R})),e.createElement("div",{className:[s.InfoGrid,s.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:orderNoAndDate")),e.createElement("div",{className:[s.InfoText,s.InfoTextBold].join(" ")},"#"+(L.checkout.orderNumber||"")),e.createElement("div",{className:s.InfoText},L.checkout.dateStr),e.createElement(j,{vm:L})),e.createElement("div",null,e.createElement("div",{className:s.InfoTitle},C("checkout-page:contactInfo")),e.createElement("div",{className:s.InfoText},null===(A=L.checkout.customer)||void 0===A?void 0:A.email),e.createElement("div",{className:s.InfoText},R))),L.postCheckoutCampaignOffer&&e.createElement(f,{vm:L,campaignOffer:L.postCheckoutCampaignOffer}),L.hasQuickRegistration&&e.createElement(x,{vm:L}),e.createElement(i,{title:C("checkout-page:paymentSummary")},F),!L.isDigitalOnly&&e.createElement(i,{title:C("checkout-page:shippingSummary")},w),e.createElement("div",{className:s.Actions},e.createElement("div",{className:s.HelpText},e.createElement("span",null,C("checkout-page:helpCtaQuestion")),e.createElement("span",{className:s.Cta,onClick:function(){return L.setContactModalVisible(!0)}},C("checkout-page:helpCta"))),e.createElement(a,{text:C("checkout-page:actions.backToShopping"),onClick:L.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),j=t((function(t){var a,o=t.vm,r=u().t,i=s.Yellow;switch(o.checkout.orderPackageStatus){case v.FULFILLED:case v.PARTIALLY_FULFILLED:case v.DELIVERED:case v.PARTIALLY_DELIVERED:i=s.Green;break;case v.CANCELLED:case v.PARTIALLY_CANCELLED:case v.CANCEL_REJECTED:case v.CANCEL_REQUESTED:i=s.Red}return e.createElement("div",{className:[s.OrderStatus,i].join(" ")},o.checkout.orderPackageStatus?null===(a=[{types:[v.UNFULFILLED],text:r("checkout-page:orderPackageStatus.unfulfilled")},{types:[v.READY_FOR_SHIPMENT],text:r("checkout-page:orderPackageStatus.readyForShipment")},{types:[v.PARTIALLY_FULFILLED],text:r("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[v.FULFILLED],text:r("checkout-page:orderPackageStatus.fulfilled")},{types:[v.DELIVERED,v.PARTIALLY_DELIVERED],text:r("checkout-page:orderPackageStatus.delivered")},{types:[v.UNABLE_TO_DELIVER],text:r("checkout-page:orderPackageStatus.unableToDeliver")},{types:[v.CANCELLED,v.PARTIALLY_CANCELLED],text:r("checkout-page:orderPackageStatus.cancelled")},{types:[v.CANCEL_REJECTED],text:r("checkout-page:orderPackageStatus.cancelRejected")},{types:[v.REFUNDED,v.PARTIALLY_REFUNDED],text:r("checkout-page:orderPackageStatus.refunded")},{types:[v.REFUND_REQUEST_ACCEPTED],text:r("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[v.REFUND_REJECTED],text:r("checkout-page:orderPackageStatus.refundRejected")},{types:[v.REFUND_REQUESTED],text:r("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(o.checkout.orderPackageStatus)})))||void 0===a?void 0:a.text:"")}));export{k as StepSuccess};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={StepSuccess:"style-module_StepSuccess__Z1fJf",SuccessTitleContainer:"style-module_SuccessTitleContainer__nuvae",SuccessCircle:"style-module_SuccessCircle__bU5W0",SuccessTitle:"style-module_SuccessTitle__5KjBJ",SuccessSubTitle:"style-module_SuccessSubTitle__ToDuD",InfoGrid:"style-module_InfoGrid__XrEQa",InfoTitle:"style-module_InfoTitle__AHygg",InfoText:"style-module_InfoText__4oiHL",InfoTextBold:"style-module_InfoTextBold__LVBB6",WithBorder:"style-module_WithBorder__JQ5Qf",CardLogoContainer:"style-module_CardLogoContainer__upSYf",PaymentLogoContainer:"style-module_PaymentLogoContainer__loO75",Actions:"style-module_Actions__RCwtF",HelpText:"style-module_HelpText__xrYQr",Cta:"style-module_Cta__rhsFl",OrderStatus:"style-module_OrderStatus__377-N",Yellow:"style-module_Yellow__gF1-u",Green:"style-module_Green__-80q-",Red:"style-module_Red__zXV4o",withMBottom:"style-module_withMBottom__8N71-"};e(".style-module_StepSuccess__Z1fJf {\n padding-top: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae {\n margin-bottom: 24px;\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessCircle__bU5W0 {\n color: #2DCA73;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessTitle__5KjBJ {\n font-size: 28px;\n font-weight: 600;\n margin-left: 16px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n margin: auto;\n margin-bottom: 32px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 48px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoTitle__AHygg {\n font-size: 16px;\n line-height: 24px;\n margin-bottom: 12px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoText__4oiHL {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoTextBold__LVBB6 {\n font-weight: 600;\n color: var(--checkout-primary-text-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa.style-module_WithBorder__JQ5Qf {\n border-bottom: 1px solid var(--checkout-border-color);\n padding-bottom: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_CardLogoContainer__upSYf {\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_PaymentLogoContainer__loO75 img {\n height: 20px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF {\n width: 100%;\n display: flex;\n justify-content: space-between;\n margin: auto;\n margin-top: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr {\n display: flex;\n align-items: center;\n color: var(--checkout-secondary-text-color);\n flex-wrap: wrap;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl {\n color: var(--checkout-primary-text-color);\n margin-left: 4px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl:hover {\n cursor: pointer;\n text-decoration: underline;\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF {\n flex-direction: column;\n }\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl {\n margin-left: 0;\n }\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N {\n padding: 4px 8px;\n border-radius: 6px;\n margin-top: 8px;\n font-size: 14px;\n font-weight: 500;\n display: inline-flex;\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Yellow__gF1-u {\n color: var(--checkout-warning-color);\n background-color: var(--checkout-warning-light-color);\n border: 1px solid var(--checkout-warning-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Green__-80q- {\n color: var(--checkout-success-color);\n background-color: var(--checkout-success-light-color);\n border: 1px solid var(--checkout-success-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Red__zXV4o {\n color: var(--checkout-error-color);\n background-color: var(--checkout-error-light-color);\n border: 1px solid var(--checkout-error-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_StepSuccess__Z1fJf {\n padding-left: 24px;\n padding-right: 24px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessTitle__5KjBJ {\n font-size: 20px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n max-width: 400px;\n margin-left: 56px;\n }\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa {\n grid-template-columns: 1fr;\n grid-gap: 24px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n margin-left: 0;\n }\n}\n\n.style-module_withMBottom__8N71- {\n margin-bottom: 12px;\n}");export{t as default};
|
|
1
|
+
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var t={StepSuccess:"style-module_StepSuccess__Z1fJf",SuccessTitleContainer:"style-module_SuccessTitleContainer__nuvae",SuccessCircle:"style-module_SuccessCircle__bU5W0",SuccessTitle:"style-module_SuccessTitle__5KjBJ",SuccessSubTitle:"style-module_SuccessSubTitle__ToDuD",InfoGrid:"style-module_InfoGrid__XrEQa",InfoTitle:"style-module_InfoTitle__AHygg",InfoText:"style-module_InfoText__4oiHL",InfoTextBold:"style-module_InfoTextBold__LVBB6",WithBorder:"style-module_WithBorder__JQ5Qf",CardLogoContainer:"style-module_CardLogoContainer__upSYf",PaymentLogoContainer:"style-module_PaymentLogoContainer__loO75",EPayKolayLogoContainer:"style-module_EPayKolayLogoContainer__3tYQj",Actions:"style-module_Actions__RCwtF",HelpText:"style-module_HelpText__xrYQr",Cta:"style-module_Cta__rhsFl",OrderStatus:"style-module_OrderStatus__377-N",Yellow:"style-module_Yellow__gF1-u",Green:"style-module_Green__-80q-",Red:"style-module_Red__zXV4o",withMBottom:"style-module_withMBottom__8N71-"};e(".style-module_StepSuccess__Z1fJf {\n padding-top: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae {\n margin-bottom: 24px;\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessCircle__bU5W0 {\n color: #2DCA73;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessTitle__5KjBJ {\n font-size: 28px;\n font-weight: 600;\n margin-left: 16px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n margin: auto;\n margin-bottom: 32px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 48px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoTitle__AHygg {\n font-size: 16px;\n line-height: 24px;\n margin-bottom: 12px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoText__4oiHL {\n font-size: 14px;\n color: var(--checkout-secondary-text-color);\n display: flex;\n align-items: center;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_InfoTextBold__LVBB6 {\n font-weight: 600;\n color: var(--checkout-primary-text-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa.style-module_WithBorder__JQ5Qf {\n border-bottom: 1px solid var(--checkout-border-color);\n padding-bottom: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_CardLogoContainer__upSYf {\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_PaymentLogoContainer__loO75 img {\n height: 20px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa .style-module_EPayKolayLogoContainer__3tYQj img {\n height: 36px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF {\n width: 100%;\n display: flex;\n justify-content: space-between;\n margin: auto;\n margin-top: 24px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr {\n display: flex;\n align-items: center;\n color: var(--checkout-secondary-text-color);\n flex-wrap: wrap;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl {\n color: var(--checkout-primary-text-color);\n margin-left: 4px;\n}\n.style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl:hover {\n cursor: pointer;\n text-decoration: underline;\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF {\n flex-direction: column;\n }\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_Actions__RCwtF .style-module_HelpText__xrYQr .style-module_Cta__rhsFl {\n margin-left: 0;\n }\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N {\n padding: 4px 8px;\n border-radius: 6px;\n margin-top: 8px;\n font-size: 14px;\n font-weight: 500;\n display: inline-flex;\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Yellow__gF1-u {\n color: var(--checkout-warning-color);\n background-color: var(--checkout-warning-light-color);\n border: 1px solid var(--checkout-warning-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Green__-80q- {\n color: var(--checkout-success-color);\n background-color: var(--checkout-success-light-color);\n border: 1px solid var(--checkout-success-color);\n}\n.style-module_StepSuccess__Z1fJf .style-module_OrderStatus__377-N.style-module_Red__zXV4o {\n color: var(--checkout-error-color);\n background-color: var(--checkout-error-light-color);\n border: 1px solid var(--checkout-error-color);\n}\n@media only screen and (max-width: 1000px) {\n .style-module_StepSuccess__Z1fJf {\n padding-left: 24px;\n padding-right: 24px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae {\n margin-bottom: 12px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessTitleContainer__nuvae .style-module_SuccessTitle__5KjBJ {\n font-size: 20px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n max-width: 400px;\n margin-left: 56px;\n }\n}\n@media only screen and (max-width: 400px) {\n .style-module_StepSuccess__Z1fJf .style-module_InfoGrid__XrEQa {\n grid-template-columns: 1fr;\n grid-gap: 24px;\n }\n .style-module_StepSuccess__Z1fJf .style-module_SuccessSubTitle__ToDuD {\n margin-left: 0;\n }\n}\n\n.style-module_withMBottom__8N71- {\n margin-bottom: 12px;\n}");export{t as default};
|
|
@@ -11,6 +11,7 @@ export declare class IkasOrderTransaction implements IOrderTransaction {
|
|
|
11
11
|
error: IkasTransactionError | null;
|
|
12
12
|
id: string | null;
|
|
13
13
|
orderId: string | null;
|
|
14
|
+
paymentGatewayCode: string | null;
|
|
14
15
|
paymentGatewayId: string | null;
|
|
15
16
|
paymentGatewayName: string | null;
|
|
16
17
|
paymentMethod: IkasPaymentMethodType | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{IkasTransactionStatus,IkasTransactionType}from"@ikas/storefront-models";import{makeAutoObservable as t}from"mobx";import{formatCurrency as e}from"../../../../utils/currency.js";import{IkasTransactionError as r}from"./error/index.js";var o=function(){function o(e){this.amount=e.amount||null,this.checkoutId=e.checkoutId||null,this.createdAt=e.createdAt||null,this.currencyCode=e.currencyCode||null,this.currencySymbol=e.currencySymbol||null,this.customerId=e.customerId||null,this.error=e.error?new r(e.error):null,this.id=e.id,this.orderId=e.orderId,this.paymentGatewayId=e.paymentGatewayId,this.paymentGatewayName=e.paymentGatewayName,this.paymentMethod=e.paymentMethod,this.paymentMethodDetail=e.paymentMethodDetail,this.processedAt=e.processedAt,this.refundReason=e.refundReason,this.status=e.status,this.type=e.type,this.updatedAt=e.updatedAt,t(this)}return Object.defineProperty(o.prototype,"formattedAmount",{get:function(){return e(this.amount||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),o}();export{o as IkasOrderTransaction};
|
|
1
|
+
export{IkasTransactionStatus,IkasTransactionType}from"@ikas/storefront-models";import{makeAutoObservable as t}from"mobx";import{formatCurrency as e}from"../../../../utils/currency.js";import{IkasTransactionError as r}from"./error/index.js";var o=function(){function o(e){this.amount=e.amount||null,this.checkoutId=e.checkoutId||null,this.createdAt=e.createdAt||null,this.currencyCode=e.currencyCode||null,this.currencySymbol=e.currencySymbol||null,this.customerId=e.customerId||null,this.error=e.error?new r(e.error):null,this.id=e.id,this.orderId=e.orderId,this.paymentGatewayCode=e.paymentGatewayCode,this.paymentGatewayId=e.paymentGatewayId,this.paymentGatewayName=e.paymentGatewayName,this.paymentMethod=e.paymentMethod,this.paymentMethodDetail=e.paymentMethodDetail,this.processedAt=e.processedAt,this.refundReason=e.refundReason,this.status=e.status,this.type=e.type,this.updatedAt=e.updatedAt,t(this)}return Object.defineProperty(o.prototype,"formattedAmount",{get:function(){return e(this.amount||0,this.currencyCode||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),o}();export{o as IkasOrderTransaction};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.9.0-beta.
|
|
3
|
+
"version": "4.9.0-beta.6",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "rm -rf build && rollup -c"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ikas/storefront-api": "^4.9.0-beta.
|
|
21
|
-
"@ikas/storefront-config": "^4.9.0-beta.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.9.0-beta.
|
|
23
|
-
"@ikas/storefront-models": "^4.9.0-beta.
|
|
24
|
-
"@ikas/storefront-providers": "^4.9.0-beta.
|
|
20
|
+
"@ikas/storefront-api": "^4.9.0-beta.6",
|
|
21
|
+
"@ikas/storefront-config": "^4.9.0-beta.6",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.9.0-beta.6",
|
|
23
|
+
"@ikas/storefront-models": "^4.9.0-beta.6",
|
|
24
|
+
"@ikas/storefront-providers": "^4.9.0-beta.6",
|
|
25
25
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
26
26
|
"@adyen/adyen-web": "^5.28.2",
|
|
27
27
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
58
|
-
"@ikas/storefront-api": "^4.9.0-beta.
|
|
59
|
-
"@ikas/storefront-config": "^4.9.0-beta.
|
|
60
|
-
"@ikas/storefront-model-functions": "^4.9.0-beta.
|
|
61
|
-
"@ikas/storefront-models": "^4.9.0-beta.
|
|
62
|
-
"@ikas/storefront-providers": "^4.9.0-beta.
|
|
58
|
+
"@ikas/storefront-api": "^4.9.0-beta.6",
|
|
59
|
+
"@ikas/storefront-config": "^4.9.0-beta.6",
|
|
60
|
+
"@ikas/storefront-model-functions": "^4.9.0-beta.6",
|
|
61
|
+
"@ikas/storefront-models": "^4.9.0-beta.6",
|
|
62
|
+
"@ikas/storefront-providers": "^4.9.0-beta.6",
|
|
63
63
|
"mobx": "^6.1.3",
|
|
64
64
|
"mobx-react-lite": "^3.1.5",
|
|
65
65
|
"next": "12.2.0",
|