@ikas/storefront 3.0.0-alpha.41 → 3.0.0-alpha.43

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 (125) hide show
  1. package/build/__api/models/AddItemToCartInput.d.ts +0 -2
  2. package/build/__api/models/CampaignOffer.js +1 -0
  3. package/build/__api/models/CampaignOfferProduct.js +1 -0
  4. package/build/__api/models/CampaignOfferProductTranslation.js +1 -0
  5. package/build/__api/models/CampaignOfferTriggerSettings.js +1 -0
  6. package/build/__api/models/CartV2CampaignOffer.d.ts +2 -0
  7. package/build/__api/models/CartV2CampaignOffer.js +1 -1
  8. package/build/__api/models/{MasterPassTokenResponse.d.ts → MasterpassTokenResponse.d.ts} +0 -0
  9. package/build/__api/models/SaveItemToCartInput.d.ts +0 -2
  10. package/build/__api/models/Storefront.d.ts +1 -0
  11. package/build/__api/models/UpdateCartCampaignOfferInput.d.ts +14 -0
  12. package/build/__api/mutations/addCouponCodeToCheckout.d.ts +1 -1
  13. package/build/__api/mutations/addItemToCart.d.ts +29 -1
  14. package/build/__api/mutations/addItemToCart.js +1 -1
  15. package/build/__api/mutations/createCustomerEmailSubscription.d.ts +1 -1
  16. package/build/__api/mutations/createCustomerReview.d.ts +1 -1
  17. package/build/__api/mutations/createOrderRefundRequest.d.ts +1 -1
  18. package/build/__api/mutations/createSaleTransactionWithCart.d.ts +1 -1
  19. package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +1 -1
  20. package/build/__api/mutations/createStripePaymentIntent.d.ts +1 -1
  21. package/build/__api/mutations/customerLogin.d.ts +1 -1
  22. package/build/__api/mutations/customerRefreshToken.d.ts +1 -1
  23. package/build/__api/mutations/getOrderLineFile.d.ts +1 -1
  24. package/build/__api/mutations/registerCustomer.d.ts +1 -1
  25. package/build/__api/mutations/retrieveInstallmentInfo.d.ts +1 -1
  26. package/build/__api/mutations/saveCart.d.ts +29 -1
  27. package/build/__api/mutations/saveCart.js +1 -1
  28. package/build/__api/mutations/saveCartCouponCode.d.ts +29 -1
  29. package/build/__api/mutations/saveCartCouponCode.js +1 -1
  30. package/build/__api/mutations/saveCheckout.d.ts +1 -1
  31. package/build/__api/mutations/saveItemToCart.d.ts +1 -1
  32. package/build/__api/mutations/saveLastViewedProducts.d.ts +1 -1
  33. package/build/__api/mutations/saveMyCustomer.d.ts +1 -1
  34. package/build/__api/mutations/saveProductBackInStockRemind.d.ts +1 -1
  35. package/build/__api/mutations/saveRaffleParticipant.d.ts +1 -1
  36. package/build/__api/mutations/updateCartCampaignOffer.d.ts +244 -0
  37. package/build/__api/mutations/updateCartCampaignOffer.js +1 -0
  38. package/build/__api/mutations/updateRaffleParticipant.d.ts +1 -1
  39. package/build/__api/queries/checkCustomerEmail.d.ts +1 -1
  40. package/build/__api/queries/checkStocks.d.ts +1 -1
  41. package/build/__api/queries/customerSocialLogin.d.ts +1 -1
  42. package/build/__api/queries/getAvailableShippingCountries.d.ts +1 -1
  43. package/build/__api/queries/getAvailableStockLocations.d.ts +1 -1
  44. package/build/__api/queries/getCart.d.ts +1 -1
  45. package/build/__api/queries/getCartById.d.ts +29 -1
  46. package/build/__api/queries/getCartById.js +1 -1
  47. package/build/__api/queries/getCheckoutByCartId.d.ts +1 -1
  48. package/build/__api/queries/getCheckoutById.d.ts +1 -1
  49. package/build/__api/queries/getCurrencyRate.d.ts +1 -1
  50. package/build/__api/queries/getCustomerOrders.d.ts +1 -1
  51. package/build/__api/queries/getLastViewedProducts.d.ts +1 -1
  52. package/build/__api/queries/getMasterpassRequestToken.d.ts +1 -1
  53. package/build/__api/queries/getMyCountry.d.ts +1 -1
  54. package/build/__api/queries/getMyCustomer.d.ts +1 -1
  55. package/build/__api/queries/getOrder.d.ts +1 -1
  56. package/build/__api/queries/getOrderByEmail.d.ts +1 -1
  57. package/build/__api/queries/getProductCampaigns.d.ts +1 -1
  58. package/build/__api/queries/getProductFilterData.d.ts +1 -1
  59. package/build/__api/queries/getProductOptionFileUrl.d.ts +1 -1
  60. package/build/__api/queries/getRaffleParticipants.d.ts +1 -1
  61. package/build/__api/queries/getRafflesByCustomerId.d.ts +1 -1
  62. package/build/__api/queries/getStorefront.d.ts +2 -1
  63. package/build/__api/queries/getStorefront.js +1 -1
  64. package/build/__api/queries/getVariantStockLocations.d.ts +1 -1
  65. package/build/__api/queries/listBlog.d.ts +1 -1
  66. package/build/__api/queries/listBlogCategory.d.ts +1 -1
  67. package/build/__api/queries/listBlogMetadata.d.ts +1 -1
  68. package/build/__api/queries/listCampaignOffer.d.ts +1 -1
  69. package/build/__api/queries/listCategory.d.ts +1 -1
  70. package/build/__api/queries/listCheckoutSettings.d.ts +1 -1
  71. package/build/__api/queries/listCity.d.ts +1 -1
  72. package/build/__api/queries/listCountry.d.ts +1 -1
  73. package/build/__api/queries/listCustomerAttribute.d.ts +1 -1
  74. package/build/__api/queries/listCustomerReviewSummary.d.ts +1 -1
  75. package/build/__api/queries/listCustomerReviews.d.ts +1 -1
  76. package/build/__api/queries/listDistrict.d.ts +1 -1
  77. package/build/__api/queries/listFavoriteProducts.d.ts +1 -1
  78. package/build/__api/queries/listHTMLMetaData.d.ts +1 -1
  79. package/build/__api/queries/listMerchantSettings.d.ts +1 -1
  80. package/build/__api/queries/listOrderRefundSettings.d.ts +1 -1
  81. package/build/__api/queries/listOrderTransactions.d.ts +1 -1
  82. package/build/__api/queries/listPaymentGateway.d.ts +1 -1
  83. package/build/__api/queries/listProduct.d.ts +1 -1
  84. package/build/__api/queries/listProductAttribute.d.ts +1 -1
  85. package/build/__api/queries/listProductBackInStockRemind.d.ts +1 -1
  86. package/build/__api/queries/listProductBrand.d.ts +1 -1
  87. package/build/__api/queries/listProductOptionSet.d.ts +1 -1
  88. package/build/__api/queries/listProductStockLocation.d.ts +1 -1
  89. package/build/__api/queries/listRaffle.d.ts +1 -1
  90. package/build/__api/queries/listRaffleMetadata.d.ts +1 -1
  91. package/build/__api/queries/listState.d.ts +1 -1
  92. package/build/__api/queries/listStockLocation.d.ts +1 -1
  93. package/build/__api/queries/listTown.d.ts +1 -1
  94. package/build/__api/queries/listVariantType.d.ts +1 -1
  95. package/build/__api/queries/searchProducts.d.ts +1 -1
  96. package/build/__api/types/index.d.ts +10 -7
  97. package/build/assets/translations/checkout/en.js +1 -1
  98. package/build/assets/translations/checkout/tr.js +1 -1
  99. package/build/components/checkout/components/offer-product/index.d.ts +8 -0
  100. package/build/components/checkout/components/offer-product/index.js +1 -0
  101. package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
  102. package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
  103. package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
  104. package/build/components/checkout/components/offer-product/select/index.js +1 -0
  105. package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
  106. package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
  107. package/build/components/checkout/index.js +1 -1
  108. package/build/components/checkout/model.d.ts +21 -1
  109. package/build/components/checkout/model.js +1 -1
  110. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  111. package/build/components/checkout/steps/step-success/index.js +1 -1
  112. package/build/ext/axios/package.json.js +1 -1
  113. package/build/ikas.cjs +1 -1
  114. package/build/models/ui/product-list/index.d.ts +1 -1
  115. package/build/store/cart/api.d.ts +2 -0
  116. package/build/store/cart/api.js +1 -1
  117. package/build/store/checkout/index.d.ts +1 -1
  118. package/build/store/customer/api.d.ts +5 -5
  119. package/build/store/location/index.d.ts +1 -1
  120. package/build/store/product/index.d.ts +1 -1
  121. package/package.json +1 -1
  122. package/build/__api/models/CartCampaignOfferInput.d.ts +0 -11
  123. package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
  124. package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
  125. package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
@@ -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 l from"../../components/credit-card-form/svg/troy.js";import m from"../../components/credit-card-form/svg/visa.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as c}from"../../../../utils/currency.js";import{useTranslation as u}from"../../../../utils/i18n.js";import"../../../../models/data/blog/index.js";import"../../../../models/data/brand/index.js";import"../../../../models/data/cart/campaign-offer/index.js";import"../../../../models/data/cart/index.js";import"../../../../models/data/category/index.js";import"../../../../models/data/city/index.js";import"mobx";import"../../../../models/data/country/index.js";import"../../../../models/data/customer/address/index.js";import"../../../../models/data/customer/attribute-value/index.js";import"../../../../models/data/customer/index.js";import"../../../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../../models/data/customer-attribute/index.js";import"../../../../models/data/customer-review/index.js";import"../../../../models/data/customer-review-summary/index.js";import"../../../../models/data/district/index.js";import"../../../../models/data/favorite-product/index.js";import"../../../../models/data/html-meta-data/index.js";import"../../../../models/data/image/index.js";import"../../../../models/data/merchant-settings/index.js";import"../../../../models/data/order/address/index.js";import"../../../../models/data/order/adjustment/index.js";import"../../../../models/data/order/gift-line/index.js";import"../../../../models/data/order/invoice/index.js";import"../../../../models/data/order/line-item/discount/index.js";import"../../../../models/data/order/line-item/option/value/index.js";import"../../../../models/data/order/line-item/option/index.js";import"../../../../models/data/order/line-item/variant/index.js";import"../../../../models/data/order/line-item/index.js";import"../../../../models/data/order/package/tracking-info/index.js";import"../../../../models/data/order/package/index.js";import"../../../../models/data/order/payment-method/index.js";import"../../../../models/data/order/refund/line-item/index.js";import"../../../../models/data/order/shipping-line/index.js";import"../../../../models/data/order/tax-line/index.js";import"../../../../models/data/order/transaction/index.js";import"../../../../models/data/order/index.js";import"../../../../models/data/product/attribute-value/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/product-attribute/index.js";import"../../../../models/data/product-filter/index.js";import"../../../../models/data/product-campaign/campaign/index.js";import"../../../../models/data/product-campaign/filter/index.js";import"../../../../models/data/product-option-set/index.js";import"../../../../models/data/raffle/index.js";import"../../../../models/data/state/index.js";import"../../../../models/data/variant-type/variant-value/index.js";import"../../../../models/theme/theme.js";import"../../../../models/theme/page/index.js";import"../../../../models/theme/component/prop/index.js";import"../../../../models/theme/page/component/prop-value/link.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/category-list/index.js";import"../../../../models/ui/product-detail/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/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"../../../../models/theme/settings/index.js";import"../../../../models/theme/custom-data/index.js";import"../../../../models/data/payment-gateway/index.js";import{PaymentMethodEnum as p,PaymentGatewayTypeEnum as v,OrderPackageStatusEnum as E,TransactionCardAssociationEnum as x}from"../../../../__api/types/index.js";var f=t((function(t){var E,f,j,h,k,T,N=t.vm,y=u().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(a);e&&e===N.checkout.id&&localStorage.removeItem(a)}}),[]);var I=((null===(E=N.checkout.customer)||void 0===E?void 0:E.firstName)||"")+" "+((null===(f=N.checkout.customer)||void 0===f?void 0:f.lastName)||""),L=((null===(j=N.checkout.shippingAddress)||void 0===j?void 0:j.firstName)||"")+" "+((null===(h=N.checkout.shippingAddress)||void 0===h?void 0:h.lastName)||""),A=N.paymentGateways.find((function(e){var t;return e.id===(null===(t=N.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),D=null===(k=N.successTransaction)||void 0===k?void 0:k.paymentMethodDetail,S=e.useMemo((function(){var t,o,a,s;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:paymentMethod")),A&&e.createElement(e.Fragment,null,!!A.logoUrl&&e.createElement("div",{className:i.PaymentLogoContainer},e.createElement("img",{src:A.logoUrl})),!A.logoUrl&&e.createElement("div",{className:i.InfoText},A.paymentMethodType===p.CREDIT_CARD&&A.type===v.INTERNAL?y("checkout-page:creditCard"):A.name),!!A.description&&A.type!==v.EXTERNAL&&e.createElement("div",{className:i.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:A.description}}))),"CREDIT_CARD"===(null===(t=N.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=N.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===o?void 0:o.cardAssociation){case x.AMERICAN_EXPRESS:return e.createElement(d,null);case x.MASTER_CARD:return e.createElement(n,null);case x.TROY:return e.createElement(l,null);case x.VISA:return e.createElement(m,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==D?void 0:D.lastFourDigits)||""))),(null===(o=null==D?void 0:D.installment)||void 0===o?void 0:o.installmentCount)&&D.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},"".concat(D.installment.installmentCount," ").concat(y("checkout-page:installments"))),null!==D.installment.installmentPrice&&e.createElement("div",{className:i.InfoText},"".concat(D.installment.installmentCount," x ").concat(c(D.installment.installmentPrice,N.checkout.currencyCode)))))),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:billingAddress")),!!(null===(a=N.checkout.billingAddress)||void 0===a?void 0:a.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},N.checkout.billingAddress.company),e.createElement("div",{className:i.InfoText},null===(s=N.checkout.billingAddress)||void 0===s?void 0:s.addressText)))}),[]),C=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},y("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(t=N.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:i.InfoText},I),!!(null===(o=N.checkout.shippingAddress)||void 0===o?void 0:o.phone)&&e.createElement("div",{className:i.InfoText},null===(a=N.checkout.shippingAddress)||void 0===a?void 0:a.phone)),e.createElement("div",null,"in-store"===N.deliveryMethod&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:receiver")),e.createElement("div",{className:[i.InfoText,i.withMBottom].join(" ")},L)),e.createElement("div",{className:i.InfoTitle},"address"===N.deliveryMethod?y("checkout-page:shippingAddress"):y("checkout-page:pickUpLocation")),!!(null===(s=N.checkout.shippingAddress)||void 0===s?void 0:s.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},N.checkout.shippingAddress.company),e.createElement("div",{className:i.InfoText},null===(r=N.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,null),e.createElement("span",{className:i.SuccessTitle},y("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:i.SuccessSubTitle},y("address"===N.deliveryMethod?"checkout-page:orderSuccessDescription":"checkout-page:orderSuccessInStoreDeliveryDescription",{customerName:I})),e.createElement("div",{className:[i.InfoGrid,i.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:orderNoAndDate")),e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},"#"+(N.checkout.orderNumber||"")),e.createElement("div",{className:i.InfoText},N.checkout.dateStr),e.createElement(g,{vm:N})),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},y("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(T=N.checkout.customer)||void 0===T?void 0:T.email),e.createElement("div",{className:i.InfoText},I))),e.createElement(r,{title:y("checkout-page:paymentSummary")},S),e.createElement(r,{title:y("checkout-page:shippingSummary")},C),e.createElement("div",{className:i.Actions},e.createElement("div",{className:i.HelpText},e.createElement("span",null,y("checkout-page:helpCtaQuestion")),e.createElement("span",{className:i.Cta,onClick:function(){return N.setContactModalVisible(!0)}},y("checkout-page:helpCta"))),e.createElement(o,{text:y("checkout-page:actions.backToShopping"),onClick:N.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),g=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{f as StepSuccess};
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 r from"../../components/svg/success-circle.js";import s 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 m from"../../components/credit-card-form/svg/troy.js";import l from"../../components/credit-card-form/svg/visa.js";import"../../../../storefront/index.js";import'../../../../ext/lodash/isArguments.js';import'../../../../ext/lodash/isBuffer.js';import'../../../../ext/lodash/isTypedArray.js';import'../../../../ext/lodash/_baseGetTag.js';import{formatMoney as c}from"../../../../utils/currency.js";import{useTranslation as u}from"../../../../utils/i18n.js";import"../../../../models/data/blog/index.js";import"../../../../models/data/brand/index.js";import"../../../../models/data/cart/campaign-offer/index.js";import"../../../../models/data/cart/index.js";import"../../../../models/data/category/index.js";import"../../../../models/data/city/index.js";import"mobx";import"../../../../models/data/country/index.js";import"../../../../models/data/customer/address/index.js";import"../../../../models/data/customer/attribute-value/index.js";import"../../../../models/data/customer/index.js";import"../../../../models/data/customer-attribute/customer-attribute-option/index.js";import"../../../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../../../models/data/customer-attribute/index.js";import"../../../../models/data/customer-review/index.js";import"../../../../models/data/customer-review-summary/index.js";import"../../../../models/data/district/index.js";import"../../../../models/data/favorite-product/index.js";import"../../../../models/data/html-meta-data/index.js";import"../../../../models/data/image/index.js";import"../../../../models/data/merchant-settings/index.js";import"../../../../models/data/order/address/index.js";import"../../../../models/data/order/adjustment/index.js";import"../../../../models/data/order/gift-line/index.js";import"../../../../models/data/order/invoice/index.js";import"../../../../models/data/order/line-item/discount/index.js";import"../../../../models/data/order/line-item/option/value/index.js";import"../../../../models/data/order/line-item/option/index.js";import"../../../../models/data/order/line-item/variant/index.js";import"../../../../models/data/order/line-item/index.js";import"../../../../models/data/order/package/tracking-info/index.js";import"../../../../models/data/order/package/index.js";import"../../../../models/data/order/payment-method/index.js";import"../../../../models/data/order/refund/line-item/index.js";import"../../../../models/data/order/shipping-line/index.js";import"../../../../models/data/order/tax-line/index.js";import"../../../../models/data/order/transaction/index.js";import"../../../../models/data/order/index.js";import"../../../../models/data/product/attribute-value/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/product-attribute/index.js";import"../../../../models/data/product-filter/index.js";import"../../../../models/data/product-campaign/campaign/index.js";import"../../../../models/data/product-campaign/filter/index.js";import"../../../../models/data/product-option-set/index.js";import"../../../../models/data/raffle/index.js";import"../../../../models/data/state/index.js";import"../../../../models/data/variant-type/variant-value/index.js";import"../../../../models/theme/theme.js";import"../../../../models/theme/page/index.js";import"../../../../models/theme/component/prop/index.js";import"../../../../models/theme/page/component/prop-value/link.js";import"../../../../models/ui/brand-list/index.js";import"../../../../models/ui/blog-list/index.js";import"../../../../models/ui/blog-category-list/index.js";import"../../../../models/ui/category-list/index.js";import"../../../../models/ui/product-detail/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/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"../../../../models/theme/settings/index.js";import"../../../../models/theme/custom-data/index.js";import"../../../../models/data/payment-gateway/index.js";import{PaymentMethodEnum as p,PaymentGatewayTypeEnum as v,OrderPackageStatusEnum as E,TransactionCardAssociationEnum as x}from"../../../../__api/types/index.js";import f from"../../components/offer-product/index.js";var g=t((function(t){var E,g,h,k,T,N,y=t.vm,I=u().t;e.useEffect((function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem(a);e&&e===y.checkout.id&&localStorage.removeItem(a)}}),[]);var L=((null===(E=y.checkout.customer)||void 0===E?void 0:E.firstName)||"")+" "+((null===(g=y.checkout.customer)||void 0===g?void 0:g.lastName)||""),A=((null===(h=y.checkout.shippingAddress)||void 0===h?void 0:h.firstName)||"")+" "+((null===(k=y.checkout.shippingAddress)||void 0===k?void 0:k.lastName)||""),C=y.paymentGateways.find((function(e){var t;return e.id===(null===(t=y.successTransaction)||void 0===t?void 0:t.paymentGatewayId)})),D=null===(T=y.successTransaction)||void 0===T?void 0:T.paymentMethodDetail,S=e.useMemo((function(){var t,o,a,r;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:paymentMethod")),C&&e.createElement(e.Fragment,null,!!C.logoUrl&&e.createElement("div",{className:i.PaymentLogoContainer},e.createElement("img",{src:C.logoUrl})),!C.logoUrl&&e.createElement("div",{className:i.InfoText},C.paymentMethodType===p.CREDIT_CARD&&C.type===v.INTERNAL?I("checkout-page:creditCard"):C.name),!!C.description&&C.type!==v.EXTERNAL&&e.createElement("div",{className:i.InfoText},e.createElement("div",{dangerouslySetInnerHTML:{__html:C.description}}))),"CREDIT_CARD"===(null===(t=y.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=y.successTransaction)||void 0===t?void 0:t.paymentMethodDetail)||void 0===o?void 0:o.cardAssociation){case x.AMERICAN_EXPRESS:return e.createElement(d,null);case x.MASTER_CARD:return e.createElement(n,null);case x.TROY:return e.createElement(m,null);case x.VISA:return e.createElement(l,null);default:return e.createElement("div",null)}}()),e.createElement("span",null,"**** ".concat((null==D?void 0:D.lastFourDigits)||""))),(null===(o=null==D?void 0:D.installment)||void 0===o?void 0:o.installmentCount)&&D.installment.installmentCount>1&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoText},"".concat(D.installment.installmentCount," ").concat(I("checkout-page:installments"))),null!==D.installment.installmentPrice&&e.createElement("div",{className:i.InfoText},"".concat(D.installment.installmentCount," x ").concat(c(D.installment.installmentPrice,y.checkout.currencyCode)))))),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:billingAddress")),!!(null===(a=y.checkout.billingAddress)||void 0===a?void 0:a.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},y.checkout.billingAddress.company),e.createElement("div",{className:i.InfoText},null===(r=y.checkout.billingAddress)||void 0===r?void 0:r.addressText)))}),[]),R=e.useMemo((function(){var t,o,a,r,s;return e.createElement("div",{className:[i.InfoGrid].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(t=y.checkout.customer)||void 0===t?void 0:t.email),e.createElement("div",{className:i.InfoText},L),!!(null===(o=y.checkout.shippingAddress)||void 0===o?void 0:o.phone)&&e.createElement("div",{className:i.InfoText},null===(a=y.checkout.shippingAddress)||void 0===a?void 0:a.phone)),e.createElement("div",null,"in-store"===y.deliveryMethod&&e.createElement(e.Fragment,null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:receiver")),e.createElement("div",{className:[i.InfoText,i.withMBottom].join(" ")},A)),e.createElement("div",{className:i.InfoTitle},"address"===y.deliveryMethod?I("checkout-page:shippingAddress"):I("checkout-page:pickUpLocation")),!!(null===(r=y.checkout.shippingAddress)||void 0===r?void 0:r.company)&&e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},y.checkout.shippingAddress.company),e.createElement("div",{className:i.InfoText},null===(s=y.checkout.shippingAddress)||void 0===s?void 0:s.addressText)))}),[]);return e.createElement("div",{className:i.StepSuccess},e.createElement("div",{className:i.SuccessTitleContainer},e.createElement(r,null),e.createElement("span",{className:i.SuccessTitle},I("checkout-page:orderSuccessTitle"))),e.createElement("div",{className:i.SuccessSubTitle},I("address"===y.deliveryMethod?"checkout-page:orderSuccessDescription":"checkout-page:orderSuccessInStoreDeliveryDescription",{customerName:L})),e.createElement("div",{className:[i.InfoGrid,i.WithBorder].join(" ")},e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:orderNoAndDate")),e.createElement("div",{className:[i.InfoText,i.InfoTextBold].join(" ")},"#"+(y.checkout.orderNumber||"")),e.createElement("div",{className:i.InfoText},y.checkout.dateStr),e.createElement(j,{vm:y})),e.createElement("div",null,e.createElement("div",{className:i.InfoTitle},I("checkout-page:contactInfo")),e.createElement("div",{className:i.InfoText},null===(N=y.checkout.customer)||void 0===N?void 0:N.email),e.createElement("div",{className:i.InfoText},L))),y.postCheckoutCampaignOffer&&e.createElement(f,{vm:y,campaignOffer:y.postCheckoutCampaignOffer}),e.createElement(s,{title:I("checkout-page:paymentSummary")},S),e.createElement(s,{title:I("checkout-page:shippingSummary")},R),e.createElement("div",{className:i.Actions},e.createElement("div",{className:i.HelpText},e.createElement("span",null,I("checkout-page:helpCtaQuestion")),e.createElement("span",{className:i.Cta,onClick:function(){return y.setContactModalVisible(!0)}},I("checkout-page:helpCta"))),e.createElement(o,{text:I("checkout-page:actions.backToShopping"),onClick:y.onBackToShoppingClick,style:{flex:"0 0 auto"}})))})),j=t((function(t){var o,a=t.vm,r=u().t,s=i.Yellow;switch(a.checkout.orderPackageStatus){case E.FULFILLED:case E.PARTIALLY_FULFILLED:case E.DELIVERED:case E.PARTIALLY_DELIVERED:s=i.Green;break;case E.CANCELLED:case E.PARTIALLY_CANCELLED:case E.CANCEL_REJECTED:case E.CANCEL_REQUESTED:s=i.Red}return e.createElement("div",{className:[i.OrderStatus,s].join(" ")},a.checkout.orderPackageStatus?null===(o=[{types:[E.UNFULFILLED],text:r("checkout-page:orderPackageStatus.unfulfilled")},{types:[E.READY_FOR_SHIPMENT],text:r("checkout-page:orderPackageStatus.readyForShipment")},{types:[E.PARTIALLY_FULFILLED],text:r("checkout-page:orderPackageStatus.partiallyFulfilled")},{types:[E.FULFILLED],text:r("checkout-page:orderPackageStatus.fulfilled")},{types:[E.DELIVERED,E.PARTIALLY_DELIVERED],text:r("checkout-page:orderPackageStatus.delivered")},{types:[E.UNABLE_TO_DELIVER],text:r("checkout-page:orderPackageStatus.unableToDeliver")},{types:[E.CANCELLED,E.PARTIALLY_CANCELLED],text:r("checkout-page:orderPackageStatus.cancelled")},{types:[E.CANCEL_REJECTED],text:r("checkout-page:orderPackageStatus.cancelRejected")},{types:[E.REFUNDED,E.PARTIALLY_REFUNDED],text:r("checkout-page:orderPackageStatus.refunded")},{types:[E.REFUND_REQUEST_ACCEPTED],text:r("checkout-page:orderPackageStatus.refundRequestAccepted")},{types:[E.REFUND_REJECTED],text:r("checkout-page:orderPackageStatus.refundRejected")},{types:[E.REFUND_REQUESTED],text:r("checkout-page:orderPackageStatus.refundRequested")}].find((function(e){return e.types.includes(a.checkout.orderPackageStatus)})))||void 0===o?void 0:o.text:"")}));export{g as StepSuccess};
@@ -1 +1 @@
1
- var s=[["axios@0.21.4","/Users/ikas/Projects/ikas-storefront"]],e="axios@0.21.4",a="axios@0.21.4",r=!1,i="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",t="/axios",o={},n={type:"version",registry:!0,raw:"axios@0.21.4",name:"axios",escapedName:"axios",rawSpec:"0.21.4",saveSpec:null,fetchSpec:"0.21.4"},d=["/"],c="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",p="0.21.4",m="/Users/ikas/Projects/ikas-storefront",l={name:"Matt Zabriskie"},u={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},x={url:"https://github.com/axios/axios/issues"},g=[{path:"./dist/axios.min.js",threshold:"5kB"}],h={"follow-redirects":"^1.14.0"},b="Promise based HTTP client for the browser and node.js",j={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},k="https://axios-http.com",v="dist/axios.min.js",f=["xhr","http","ajax","promise","node"],w="MIT",_="index.js",y="axios",H={type:"git",url:"git+https://github.com/axios/axios.git"},N={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},V="./index.d.ts",q="dist/axios.min.js",A="0.21.4",P={_args:s,_from:"axios@0.21.4",_id:a,_inBundle:false,_integrity:i,_location:"/axios",_phantomChildren:o,_requested:n,_requiredBy:d,_resolved:c,_spec:"0.21.4",_where:m,author:l,browser:u,bugs:x,bundlesize:g,dependencies:h,description:b,devDependencies:j,homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:f,license:"MIT",main:"index.js",name:"axios",repository:H,scripts:N,typings:"./index.d.ts",unpkg:q,version:"0.21.4"};export{s as _args,e as _from,a as _id,r as _inBundle,i as _integrity,t as _location,o as _phantomChildren,n as _requested,d as _requiredBy,c as _resolved,p as _spec,m as _where,l as author,u as browser,x as bugs,g as bundlesize,P as default,h as dependencies,b as description,j as devDependencies,k as homepage,v as jsdelivr,f as keywords,w as license,_ as main,y as name,H as repository,N as scripts,V as typings,q as unpkg,A as version};
1
+ var e=[["axios@0.21.4","/Users/uoy/Development/ikas/ikas-storefront"]],s="axios@0.21.4",a="axios@0.21.4",r=!1,i="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",t="/axios",o={},n={type:"version",registry:!0,raw:"axios@0.21.4",name:"axios",escapedName:"axios",rawSpec:"0.21.4",saveSpec:null,fetchSpec:"0.21.4"},p=["/"],d="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",m="0.21.4",c="/Users/uoy/Development/ikas/ikas-storefront",l={name:"Matt Zabriskie"},u={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},x={url:"https://github.com/axios/axios/issues"},g=[{path:"./dist/axios.min.js",threshold:"5kB"}],h={"follow-redirects":"^1.14.0"},b="Promise based HTTP client for the browser and node.js",k={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},j="https://axios-http.com",v="dist/axios.min.js",f=["xhr","http","ajax","promise","node"],w="MIT",_="index.js",y="axios",H={type:"git",url:"git+https://github.com/axios/axios.git"},N={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},V="./index.d.ts",q="dist/axios.min.js",A="0.21.4",D={_args:e,_from:"axios@0.21.4",_id:a,_inBundle:false,_integrity:i,_location:"/axios",_phantomChildren:o,_requested:n,_requiredBy:p,_resolved:d,_spec:"0.21.4",_where:c,author:l,browser:u,bugs:x,bundlesize:g,dependencies:h,description:b,devDependencies:k,homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:f,license:"MIT",main:"index.js",name:"axios",repository:H,scripts:N,typings:"./index.d.ts",unpkg:q,version:"0.21.4"};export{e as _args,s as _from,a as _id,r as _inBundle,i as _integrity,t as _location,o as _phantomChildren,n as _requested,p as _requiredBy,d as _resolved,m as _spec,c as _where,l as author,u as browser,x as bugs,g as bundlesize,D as default,h as dependencies,b as description,k as devDependencies,j as homepage,v as jsdelivr,f as keywords,w as license,_ as main,y as name,H as repository,N as scripts,V as typings,q as unpkg,A as version};