@pelcro/react-pelcro-js 3.47.0 → 3.48.0

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/dist/index.cjs.js CHANGED
@@ -3823,7 +3823,8 @@ var buttons$h = {
3823
3823
  var messages$Y = {
3824
3824
  orderConfirmed: {
3825
3825
  title: "Order confirmed!",
3826
- body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
3826
+ body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order.",
3827
+ bodyDigital: "Your order has been confirmed. You'll shortly receive an email confirmation of this order."
3827
3828
  },
3828
3829
  haveQuestions: "If you have any queries please don't hesitate to contact us!",
3829
3830
  multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
@@ -4720,7 +4721,8 @@ var buttons$c = {
4720
4721
  var messages$G = {
4721
4722
  orderConfirmed: {
4722
4723
  title: "Votre commande est confirmée !",
4723
- body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
4724
+ body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu.",
4725
+ bodyDigital: "Votre commande a été confirmée et vous sera disponible pour téléchargement sous peu. Vous recevrez un courriel de confirmation sous peu."
4724
4726
  },
4725
4727
  haveQuestions: "N’hésitez pas à nous contacter pour toute question !",
4726
4728
  multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
@@ -5606,7 +5608,8 @@ var buttons$7 = {
5606
5608
  var messages$o = {
5607
5609
  orderConfirmed: {
5608
5610
  title: "주문이 확인되었습니다!",
5609
- body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
5611
+ body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다.",
5612
+ bodyDigital: "귀하의 주문이 확인되었으며 며칠 안에 다운로드 가능할 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
5610
5613
  },
5611
5614
  haveQuestions: "질문이 있으면 언제든 저희에게 연락주시기 바랍니다!",
5612
5615
  multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
@@ -6594,7 +6597,8 @@ var buttons$2 = {
6594
6597
  var messages$6 = {
6595
6598
  orderConfirmed: {
6596
6599
  title: "¡Orden confirmada!",
6597
- body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden."
6600
+ body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden.",
6601
+ bodyDigital: "Tu orden ha sido confirmada y estará disponible para descargar en breve. En breve recibirás un correo electrónico de confirmación de esta orden."
6598
6602
  },
6599
6603
  haveQuestions: "¡Si tienes alguna pregunta, no dudes en contactarnos!",
6600
6604
  multipleCurrencies: "Tu carrito actualmente contiene artículos que están disponibles en diferentes divisas. Para proceder a la compra, asegúrate de que todos los artículos tengan la misma divisa.",
@@ -27622,6 +27626,7 @@ const OrderConfirmModal = props => {
27622
27626
  props === null || props === void 0 ? void 0 : (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
27623
27627
  resetView();
27624
27628
  };
27629
+ const hasShippableItems = (latestOrder === null || latestOrder === void 0 ? void 0 : latestOrder.shipping_rate) !== null;
27625
27630
  return /*#__PURE__*/React__default['default'].createElement(Modal, {
27626
27631
  id: "pelcro-order-confirm-modal",
27627
27632
  className: "plc-border-t-8 plc-border-primary-500",
@@ -27637,7 +27642,7 @@ const OrderConfirmModal = props => {
27637
27642
  className: "plc-text-center plc-text-gray-900"
27638
27643
  }, /*#__PURE__*/React__default['default'].createElement("h4", {
27639
27644
  className: "plc-mb-4 plc-text-3xl"
27640
- }, t("messages.orderConfirmed.title")), /*#__PURE__*/React__default['default'].createElement("p", null, t("messages.orderConfirmed.body")), /*#__PURE__*/React__default['default'].createElement("p", null, t("messages.haveQuestions")))), /*#__PURE__*/React__default['default'].createElement("div", {
27645
+ }, t("messages.orderConfirmed.title")), /*#__PURE__*/React__default['default'].createElement("p", null, hasShippableItems ? t("messages.orderConfirmed.body") : t("messages.orderConfirmed.bodyDigital")), /*#__PURE__*/React__default['default'].createElement("p", null, t("messages.haveQuestions")))), /*#__PURE__*/React__default['default'].createElement("div", {
27641
27646
  className: "plc-mt-5 pelcro-order-summary-wrapper"
27642
27647
  }, /*#__PURE__*/React__default['default'].createElement("p", {
27643
27648
  className: "plc-font-bold pelcro-order-summary-title"
package/dist/index.esm.js CHANGED
@@ -3793,7 +3793,8 @@ var buttons$h = {
3793
3793
  var messages$Y = {
3794
3794
  orderConfirmed: {
3795
3795
  title: "Order confirmed!",
3796
- body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
3796
+ body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order.",
3797
+ bodyDigital: "Your order has been confirmed. You'll shortly receive an email confirmation of this order."
3797
3798
  },
3798
3799
  haveQuestions: "If you have any queries please don't hesitate to contact us!",
3799
3800
  multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
@@ -4690,7 +4691,8 @@ var buttons$c = {
4690
4691
  var messages$G = {
4691
4692
  orderConfirmed: {
4692
4693
  title: "Votre commande est confirmée !",
4693
- body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
4694
+ body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu.",
4695
+ bodyDigital: "Votre commande a été confirmée et vous sera disponible pour téléchargement sous peu. Vous recevrez un courriel de confirmation sous peu."
4694
4696
  },
4695
4697
  haveQuestions: "N’hésitez pas à nous contacter pour toute question !",
4696
4698
  multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
@@ -5576,7 +5578,8 @@ var buttons$7 = {
5576
5578
  var messages$o = {
5577
5579
  orderConfirmed: {
5578
5580
  title: "주문이 확인되었습니다!",
5579
- body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
5581
+ body: "귀하의 주문이 확인되었으며 며칠 안에 배송될 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다.",
5582
+ bodyDigital: "귀하의 주문이 확인되었으며 며칠 안에 다운로드 가능할 예정입니다. 이 주문의 확인 이메일이 귀하에게 전송됩니다."
5580
5583
  },
5581
5584
  haveQuestions: "질문이 있으면 언제든 저희에게 연락주시기 바랍니다!",
5582
5585
  multipleCurrencies: "장바구니에 다른 통화로만 결제가 가능한 아이템이 있습니다. 결제를 계속 진행하려면 모든 아이템의 결제 통화가 동일한지 확인하십시오.",
@@ -6564,7 +6567,8 @@ var buttons$2 = {
6564
6567
  var messages$6 = {
6565
6568
  orderConfirmed: {
6566
6569
  title: "¡Orden confirmada!",
6567
- body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden."
6570
+ body: "Tu orden ha sido confirmada y será enviada en los próximos días. En breve recibirás un correo electrónico de confirmación de esta orden.",
6571
+ bodyDigital: "Tu orden ha sido confirmada y estará disponible para descargar en breve. En breve recibirás un correo electrónico de confirmación de esta orden."
6568
6572
  },
6569
6573
  haveQuestions: "¡Si tienes alguna pregunta, no dudes en contactarnos!",
6570
6574
  multipleCurrencies: "Tu carrito actualmente contiene artículos que están disponibles en diferentes divisas. Para proceder a la compra, asegúrate de que todos los artículos tengan la misma divisa.",
@@ -27592,6 +27596,7 @@ const OrderConfirmModal = props => {
27592
27596
  props === null || props === void 0 ? void 0 : (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
27593
27597
  resetView();
27594
27598
  };
27599
+ const hasShippableItems = (latestOrder === null || latestOrder === void 0 ? void 0 : latestOrder.shipping_rate) !== null;
27595
27600
  return /*#__PURE__*/React__default.createElement(Modal, {
27596
27601
  id: "pelcro-order-confirm-modal",
27597
27602
  className: "plc-border-t-8 plc-border-primary-500",
@@ -27607,7 +27612,7 @@ const OrderConfirmModal = props => {
27607
27612
  className: "plc-text-center plc-text-gray-900"
27608
27613
  }, /*#__PURE__*/React__default.createElement("h4", {
27609
27614
  className: "plc-mb-4 plc-text-3xl"
27610
- }, t("messages.orderConfirmed.title")), /*#__PURE__*/React__default.createElement("p", null, t("messages.orderConfirmed.body")), /*#__PURE__*/React__default.createElement("p", null, t("messages.haveQuestions")))), /*#__PURE__*/React__default.createElement("div", {
27615
+ }, t("messages.orderConfirmed.title")), /*#__PURE__*/React__default.createElement("p", null, hasShippableItems ? t("messages.orderConfirmed.body") : t("messages.orderConfirmed.bodyDigital")), /*#__PURE__*/React__default.createElement("p", null, t("messages.haveQuestions")))), /*#__PURE__*/React__default.createElement("div", {
27611
27616
  className: "plc-mt-5 pelcro-order-summary-wrapper"
27612
27617
  }, /*#__PURE__*/React__default.createElement("p", {
27613
27618
  className: "plc-font-bold pelcro-order-summary-title"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.47.0",
4
+ "version": "3.48.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",