@solvimon/solvimon-web 0.1.0-alpha.17 → 0.1.0-alpha.18

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 (168) hide show
  1. package/README.md +28 -26
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs +238 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs} +2 -2
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js → BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js} +1 -1
  6. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs} +3 -3
  7. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +1 -0
  8. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs +2654 -0
  9. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +1 -0
  10. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +53 -0
  11. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +1 -0
  12. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +1 -0
  13. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs} +1 -1
  14. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js} +1 -1
  15. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs} +1 -1
  16. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +1 -0
  17. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs +153 -0
  18. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs +52 -0
  19. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +1 -0
  20. package/dist/{PaymentHistoryBlock-BitwS9Re.mjs → PaymentHistoryBlock-Bxr8lUGs.mjs} +1 -1
  21. package/dist/{PaymentHistoryBlock-ZtmPXXwI.js → PaymentHistoryBlock-COjIVYX4.js} +1 -1
  22. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +1 -0
  23. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs} +1 -1
  24. package/dist/{PaymentIntegrationForm-BZTzCUiu.js → PaymentIntegrationForm-BSauhuKv.js} +1 -1
  25. package/dist/{PaymentIntegrationForm-BK2aLPCo.mjs → PaymentIntegrationForm-PIT8gHYN.mjs} +1 -1
  26. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +1 -0
  27. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs +148 -0
  28. package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +1 -0
  29. package/dist/PaymentIntegrationFormAdyen-Cjj9aK0E.mjs +729 -0
  30. package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +1 -0
  31. package/dist/PaymentIntegrationFormStripe-arpua_ZT.mjs +545 -0
  32. package/dist/PaymentMethodForm-B7T5rrNz.mjs +4 -0
  33. package/dist/PaymentMethodForm-CLz3ZS-b.js +1 -0
  34. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs} +2 -2
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js} +1 -1
  36. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs} +76 -30
  37. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +1 -0
  38. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs} +2 -2
  39. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +1 -0
  40. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs} +1 -1
  41. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +1 -0
  42. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +1 -0
  43. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs} +16 -63
  44. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +1 -0
  45. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs} +5 -5
  46. package/dist/adyen-BMDZQBUG.js +1 -0
  47. package/dist/{url-BjZ1Pg0l.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
  48. package/dist/component--Y7Igv5i.mjs +1022 -0
  49. package/dist/component-DIy1hvJM.js +1 -0
  50. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  51. package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
  52. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  53. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +4 -4
  54. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  55. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
  56. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  57. package/dist/components/Invoice/Invoice.es.js +7 -7
  58. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  59. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  60. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
  61. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
  62. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  63. package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
  64. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  65. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  66. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  67. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
  68. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  69. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +4 -4
  70. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  71. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
  72. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  73. package/dist/components/WalletBalances/WalletBalances.es.js +21 -7
  74. package/dist/core/action-request.types.d.ts +1 -13
  75. package/dist/core/index.cjs.js +1 -1
  76. package/dist/core/index.es.js +1 -1
  77. package/dist/{customer-DAgdegIW.mjs → customer-DovIxTG1.mjs} +1 -1
  78. package/dist/{customer-AfRcAZ5P.js → customer-brfznoHY.js} +1 -1
  79. package/dist/en-US-BvOHPudj.js +1 -0
  80. package/dist/{en-US-DSzSbgL5.mjs → en-US-CXDO3qhq.mjs} +53 -0
  81. package/dist/index-BMWWP8xj.js +1 -0
  82. package/dist/index-Do7kzLpg.mjs +265 -0
  83. package/dist/index.cjs.js +1 -1
  84. package/dist/index.es.js +1 -1
  85. package/dist/{invoices-BHgajZHq.js → invoices-Cf3dSYSj.js} +1 -1
  86. package/dist/{invoices-BXDgW8ch.mjs → invoices-Dk-z04lg.mjs} +2 -2
  87. package/dist/{nl-NL-Li7RW89R.mjs → nl-NL-BgL_PuBn.mjs} +55 -1
  88. package/dist/nl-NL-COGUFg60.js +1 -0
  89. package/dist/{paymentMethods-xzFD2L30.mjs → paymentMethods-BnF1XYS1.mjs} +21 -5
  90. package/dist/paymentMethods-DVDC_WfL.js +1 -0
  91. package/dist/{payments-DMvmB5vg.js → payments-DVZFO5yb.js} +1 -1
  92. package/dist/{payments-DV6csRej.mjs → payments-TnRjtlOw.mjs} +1 -1
  93. package/dist/{pricing-BEjY_5wb.js → pricing-CuYndX6t.js} +1 -1
  94. package/dist/{pricing-B1uImUm4.mjs → pricing-GwLCiSzs.mjs} +1 -1
  95. package/dist/{pricingPlanSchedule-C_cqUyTk.mjs → pricingPlanSchedule-CXG3CQ61.mjs} +3 -1
  96. package/dist/{registry-CyENvS6l.mjs → registry-Ck0Gb6rj.mjs} +1 -1
  97. package/dist/{registry-CeMxLjwU.js → registry-Cra6yoB4.js} +1 -1
  98. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  99. package/dist/screens/Checkout/Checkout.es.js +37 -36
  100. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  101. package/dist/screens/CustomerOverview/CustomerOverview.es.js +32 -56
  102. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
  103. package/dist/screens/PayInvoice/PayInvoice.es.js +28 -12
  104. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +28 -18
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -1
  107. package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +436 -89
  108. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -1
  109. package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +28 -37
  110. package/dist/solvimon-web.css +1 -1
  111. package/dist/{subscription-B4dBAY9C.mjs → subscription-C41lG-rH.mjs} +1 -1
  112. package/dist/subscriptions-BFCKVHnP.js +1 -0
  113. package/dist/subscriptions-vEE4Y7qm.mjs +58 -0
  114. package/dist/{useActionDispatchProvider-zB_GKeUR.mjs → useActionDispatchProvider-BlEf-RZ5.mjs} +1 -1
  115. package/dist/{useActionDispatchProvider-bqR_FeM4.js → useActionDispatchProvider-aJOy3kr1.js} +1 -1
  116. package/dist/{useCustomer-bO4D6e4Z.js → useCustomer-C1XTqmrQ.js} +1 -1
  117. package/dist/{useCustomer-VfeQ6rG2.mjs → useCustomer-Cw8LXT6S.mjs} +2 -2
  118. package/dist/{useIncrementalLoading-C59FXHzp.mjs → useIncrementalLoading-8WtKZ-mP.mjs} +2 -2
  119. package/dist/useIncrementalLoading-CkY2klIW.js +1 -0
  120. package/dist/{useInvoiceData-CxxkBTGY.js → useInvoiceData-BrxMo4Zt.js} +1 -1
  121. package/dist/{useInvoiceData-Dhg-hx8C.mjs → useInvoiceData-Cy_ysMsq.mjs} +2 -2
  122. package/dist/{useInvoicesList-DBz7T7sM.mjs → useInvoicesList-DMsZn1tE.mjs} +4 -4
  123. package/dist/{useInvoicesList-BXZ9uV9i.js → useInvoicesList-DmisMQzy.js} +1 -1
  124. package/dist/{useLoadInitialData-BhpIg7OF.mjs → useLoadInitialData-BP1v7qhd.mjs} +1 -1
  125. package/dist/{useLoadInitialData-BqiAFNFi.js → useLoadInitialData-_BjCD0Jc.js} +1 -1
  126. package/dist/{usePaymentMethodOptions-PcMjtMSF.mjs → usePaymentMethodOptions-CWfGvW0U.mjs} +9 -3
  127. package/dist/{usePaymentMethodOptions-DszFvgKX.js → usePaymentMethodOptions-xeSTmaVo.js} +1 -1
  128. package/dist/{usePaymentMethods-Bb1Xbads.js → usePaymentMethods-CAFMvSOr.js} +1 -1
  129. package/dist/{usePaymentMethods-B5AbGWsn.mjs → usePaymentMethods-Cyk4cjoE.mjs} +2 -2
  130. package/dist/{usePayments-is5c66Z6.js → usePayments-BieVBaz-.js} +1 -1
  131. package/dist/{usePayments-DgoZoBZh.mjs → usePayments-D88XSZfS.mjs} +10 -4
  132. package/dist/{usePortal-DWLtNqBB.mjs → usePortal-0NDlbFr9.mjs} +1 -1
  133. package/dist/{usePortal-C4qWsJeq.js → usePortal-B954nyEB.js} +1 -1
  134. package/dist/{useService-DKm3QtT4.js → useService-BiljI7XA.js} +1 -1
  135. package/dist/{useService-BZqFkz7p.mjs → useService-CqfJi5ST.mjs} +1 -1
  136. package/dist/{useSubscription-CEZJw6wZ.mjs → useSubscription-9rJpFNUF.mjs} +9 -3
  137. package/dist/{useSubscription-DuUNc1_l.js → useSubscription-k3limdu_.js} +1 -1
  138. package/dist/vendor-ui-Dfh3_g4q.js +1 -0
  139. package/dist/{vendor-ui-BoGKOJ36.mjs → vendor-ui-ItGf7wJV.mjs} +1912 -1800
  140. package/package.json +12 -5
  141. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js +0 -1
  142. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +0 -1
  143. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs +0 -77
  144. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +0 -1
  145. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js +0 -1
  146. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js +0 -1
  147. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs +0 -1537
  148. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +0 -1
  149. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +0 -156
  150. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +0 -1
  151. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js +0 -1
  152. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +0 -1
  153. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +0 -1
  154. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +0 -1
  155. package/dist/component-CUJ_G2Nw.mjs +0 -962
  156. package/dist/component-CiKxWtdx.js +0 -1
  157. package/dist/en-US-QzQnGXP1.js +0 -1
  158. package/dist/index-CzL1ZcGi.mjs +0 -85
  159. package/dist/index-DRdBmZ2-.js +0 -1
  160. package/dist/nl-NL-C4rr-1tr.js +0 -1
  161. package/dist/paymentMethods-BMcc-eTl.js +0 -1
  162. package/dist/subscriptions-CrNDM9qa.mjs +0 -79
  163. package/dist/subscriptions-DC-mxa17.js +0 -1
  164. package/dist/url-D8GJi5rF.js +0 -1
  165. package/dist/useIncrementalLoading-BgWuwoMo.js +0 -1
  166. package/dist/useTopUpModal-DNyWrHDv.mjs +0 -1012
  167. package/dist/useTopUpModal-DeF-cfCK.js +0 -1
  168. package/dist/vendor-ui-BuRqLx74.js +0 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, openBlock, createElementBlock, Fragment, renderList, createBlock, unref, withCtx, createVNode, createCommentVNode, createSlots, createTextVNode, toDisplayString } from "vue";
2
- import { u as useIntl, _ as _sfc_main$1, n as _sfc_main$2, M as Modal, e as _sfc_main$3 } from "./vendor-ui-BoGKOJ36.mjs";
3
- import { u as useService } from "./useService-BZqFkz7p.mjs";
4
- import { c as createPaymentMethodsService } from "./paymentMethods-xzFD2L30.mjs";
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, renderList, createBlock, unref, withCtx, createVNode, createCommentVNode, createSlots, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { u as useIntl, b as _sfc_main$1, n as _sfc_main$2, M as Modal, a as _sfc_main$3, D as _sfc_main$4 } from "./vendor-ui-ItGf7wJV.mjs";
3
+ import { u as useService } from "./useService-CqfJi5ST.mjs";
4
+ import { c as createPaymentMethodsService } from "./paymentMethods-BnF1XYS1.mjs";
5
5
  function usePaymentMethodContextMenuOptions({
6
6
  onSetDefault,
7
7
  onDeleteRequest
@@ -31,17 +31,29 @@ function usePaymentMethodContextMenuOptions({
31
31
  };
32
32
  return { getContextMenuItems };
33
33
  }
34
- function useSetDefaultPaymentMethod() {
35
- const { setDefaultPaymentMethod } = createPaymentMethodsService();
36
- const { data, execute, error, isPending } = useService({
34
+ function usePaymentMethodActions() {
35
+ const { archivePaymentMethod, setDefaultPaymentMethod } = createPaymentMethodsService();
36
+ const archiveRequest = useService({
37
+ service: (paymentMethodId) => archivePaymentMethod({ paymentMethodId })
38
+ });
39
+ const setDefaultRequest = useService({
37
40
  service: (paymentMethodId) => setDefaultPaymentMethod({ paymentMethodId })
38
41
  });
39
- return { data, execute, error, isPending };
42
+ return {
43
+ archive: archiveRequest.execute,
44
+ archiveError: archiveRequest.error,
45
+ isArchiving: archiveRequest.isPending,
46
+ setDefault: setDefaultRequest.execute,
47
+ setDefaultError: setDefaultRequest.error,
48
+ isSettingDefault: setDefaultRequest.isPending
49
+ };
40
50
  }
41
51
  const _hoisted_1 = {
42
52
  key: 0,
43
53
  class: "sv-payment-methods__list grid grid-cols-1 gap-4"
44
54
  };
55
+ const _hoisted_2 = { class: "sv-payment-methods__delete-modal-body flex flex-col gap-3" };
56
+ const _hoisted_3 = { class: "px-3 py-2" };
45
57
  const _sfc_main = /* @__PURE__ */ defineComponent({
46
58
  __name: "PaymentMethodsList",
47
59
  props: {
@@ -52,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
64
  const emit = __emit;
53
65
  const { $t } = useIntl();
54
66
  const pendingDeletePaymentMethod = ref(null);
55
- const { execute: setDefault } = useSetDefaultPaymentMethod();
67
+ const { archive, archiveError, isArchiving, setDefault } = usePaymentMethodActions();
56
68
  const { getContextMenuItems } = usePaymentMethodContextMenuOptions({
57
69
  onDeleteRequest: (paymentMethod) => {
58
70
  pendingDeletePaymentMethod.value = paymentMethod;
@@ -62,10 +74,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
74
  emit("set-default", paymentMethod);
63
75
  }
64
76
  });
65
- function handleConfirmDelete() {
66
- if (pendingDeletePaymentMethod.value) {
67
- emit("delete", pendingDeletePaymentMethod.value);
77
+ function handleCloseModal() {
78
+ pendingDeletePaymentMethod.value = null;
79
+ archiveError.value = null;
80
+ }
81
+ async function handleConfirmDelete() {
82
+ const paymentMethod = pendingDeletePaymentMethod.value;
83
+ if (!paymentMethod || isArchiving.value) return;
84
+ try {
85
+ await archive(paymentMethod.id);
86
+ } catch {
87
+ return;
68
88
  }
89
+ emit("delete", paymentMethod);
69
90
  pendingDeletePaymentMethod.value = null;
70
91
  }
71
92
  return (_ctx, _cache) => {
@@ -88,7 +109,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
109
  }), 128))
89
110
  ])) : createCommentVNode("", true),
90
111
  createVNode(unref(Modal), {
112
+ size: "md",
91
113
  "show-modal": !!pendingDeletePaymentMethod.value,
114
+ "is-loading": unref(isArchiving),
115
+ "no-click-away": unref(isArchiving),
116
+ "no-backdrop-close": unref(isArchiving),
92
117
  title: unref($t)({
93
118
  id: "payment_methods_list.delete_modal.title",
94
119
  defaultMessage: "Delete payment method",
@@ -105,31 +130,52 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
130
  description: "Cancel button in the delete payment method modal"
106
131
  }),
107
132
  onConfirm: handleConfirmDelete,
108
- onClose: _cache[0] || (_cache[0] = ($event) => pendingDeletePaymentMethod.value = null)
133
+ onClose: handleCloseModal
109
134
  }, createSlots({ _: 2 }, [
110
135
  pendingDeletePaymentMethod.value ? {
111
136
  name: "body",
112
137
  fn: withCtx(() => [
113
- createVNode(unref(_sfc_main$3), null, {
114
- default: withCtx(() => [
115
- createTextVNode(toDisplayString(unref($t)({
116
- id: "payment_methods_list.delete_modal.body",
117
- defaultMessage: "Are you sure you want to delete this payment method?",
118
- description: "Confirmation message in the delete payment method modal"
119
- })), 1)
120
- ]),
121
- _: 1
122
- }),
123
- createVNode(unref(_sfc_main$1), null, {
124
- default: withCtx(() => [
125
- createVNode(unref(_sfc_main$2), { "payment-method": pendingDeletePaymentMethod.value }, null, 8, ["payment-method"])
126
- ]),
127
- _: 1
128
- })
138
+ createElementVNode("div", _hoisted_2, [
139
+ createVNode(unref(_sfc_main$3), {
140
+ variant: "body-sm",
141
+ shade: "lighter",
142
+ tag: "p",
143
+ class: "sv-payment-methods__delete-modal-explanation"
144
+ }, {
145
+ default: withCtx(() => [
146
+ createTextVNode(toDisplayString(unref($t)({
147
+ id: "payment_methods_list.delete_modal.body",
148
+ defaultMessage: "Are you sure you want to delete this payment method?",
149
+ description: "Confirmation message in the delete payment method modal"
150
+ })), 1)
151
+ ]),
152
+ _: 1
153
+ }),
154
+ createVNode(unref(_sfc_main$1), {
155
+ "no-spacing": "",
156
+ class: "sv-payment-methods__delete-modal-payment-method"
157
+ }, {
158
+ default: withCtx(() => [
159
+ createElementVNode("div", _hoisted_3, [
160
+ createVNode(unref(_sfc_main$2), { "payment-method": pendingDeletePaymentMethod.value }, null, 8, ["payment-method"])
161
+ ])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ unref(archiveError) ? (openBlock(), createBlock(unref(_sfc_main$4), {
166
+ key: 0,
167
+ class: "sv-payment-methods__delete-modal-error sv-error",
168
+ title: unref($t)({
169
+ id: "payment_methods_list.delete_modal.error",
170
+ defaultMessage: "We could not delete this payment method. Please try again.",
171
+ description: "Error shown when deleting a payment method fails"
172
+ })
173
+ }, null, 8, ["title"])) : createCommentVNode("", true)
174
+ ])
129
175
  ]),
130
176
  key: "0"
131
177
  } : void 0
132
- ]), 1032, ["show-modal", "title", "confirm-button-text", "cancel-button-text"])
178
+ ]), 1032, ["show-modal", "is-loading", "no-click-away", "no-backdrop-close", "title", "confirm-button-text", "cancel-button-text"])
133
179
  ], 64);
134
180
  };
135
181
  }
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./vendor-ui-Dfh3_g4q.js"),n=require("./useService-BiljI7XA.js"),o=require("./paymentMethods-DVDC_WfL.js");const a={key:0,class:"sv-payment-methods__list grid grid-cols-1 gap-4"},l={class:"sv-payment-methods__delete-modal-body flex flex-col gap-3"},s={class:"px-3 py-2"},d=e.defineComponent({__name:"PaymentMethodsList",props:{paymentMethods:{type:Array}},emits:["delete","set-default"],setup(d,{emit:i}){const r=i,{$t:m}=t.useIntl(),c=e.ref(null),{archive:u,archiveError:f,isArchiving:p,setDefault:h}=function(){const{archivePaymentMethod:e,setDefaultPaymentMethod:t}=o.createPaymentMethodsService(),a=n.useService({service:t=>e({paymentMethodId:t})}),l=n.useService({service:e=>t({paymentMethodId:e})});return{archive:a.execute,archiveError:a.error,isArchiving:a.isPending,setDefault:l.execute,setDefaultError:l.error,isSettingDefault:l.isPending}}(),{getContextMenuItems:y}=function({onSetDefault:e,onDeleteRequest:n}){const{$t:o}=t.useIntl();return{getContextMenuItems:t=>{const a=[];return t.is_default||a.push({label:o({defaultMessage:"Set as default",id:"payment_method.context_menu.set_as_default.label",description:"Context menu option for setting the default payment method"}),onClick:()=>e(t)}),a.push({label:o({defaultMessage:"Delete",id:"payment_method.context_menu.delete.label",description:"Context menu option for deleting the payment method"}),onClick:()=>n(t)}),a}}}({onDeleteRequest:e=>{c.value=e},onSetDefault:async e=>{await h(e.id),r("set-default",e)}});function _(){c.value=null,f.value=null}async function v(){const e=c.value;if(e&&!p.value){try{await u(e.id)}catch{return}r("delete",e),c.value=null}}return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.paymentMethods.length>0?(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.paymentMethods,n=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:n.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$8),{class:"sv-payment-methods__item-content","payment-method":n,options:e.unref(y)(n)},null,8,["payment-method","options"])]),_:2},1024))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(t.Modal),{size:"md","show-modal":!!c.value,"is-loading":e.unref(p),"no-click-away":e.unref(p),"no-backdrop-close":e.unref(p),title:e.unref(m)({id:"payment_methods_list.delete_modal.title",defaultMessage:"Delete payment method",description:"Title of the delete payment method confirmation modal"}),"confirm-button-text":e.unref(m)({id:"payment_methods_list.delete_modal.confirm",defaultMessage:"Delete",description:"Confirm button in the delete payment method modal"}),"cancel-button-text":e.unref(m)({id:"payment_methods_list.delete_modal.cancel",defaultMessage:"Cancel",description:"Cancel button in the delete payment method modal"}),onConfirm:v,onClose:_},e.createSlots({_:2},[c.value?{name:"body",fn:e.withCtx(()=>[e.createElementVNode("div",l,[e.createVNode(e.unref(t._sfc_main$1),{variant:"body-sm",shade:"lighter",tag:"p",class:"sv-payment-methods__delete-modal-explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)({id:"payment_methods_list.delete_modal.body",defaultMessage:"Are you sure you want to delete this payment method?",description:"Confirmation message in the delete payment method modal"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$2),{"no-spacing":"",class:"sv-payment-methods__delete-modal-payment-method"},{default:e.withCtx(()=>[e.createElementVNode("div",s,[e.createVNode(e.unref(t._sfc_main$8),{"payment-method":c.value},null,8,["payment-method"])])]),_:1}),e.unref(f)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$16),{key:0,class:"sv-payment-methods__delete-modal-error sv-error",title:e.unref(m)({id:"payment_methods_list.delete_modal.error",defaultMessage:"We could not delete this payment method. Please try again.",description:"Error shown when deleting a payment method fails"})},null,8,["title"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"])],64))}});exports._sfc_main=d;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, renderSlot, useModel, toRef, computed, createBlock, createTextVNode, toDisplayString, mergeModels, createCommentVNode } from "vue";
2
- import { e as _sfc_main$3, u as useIntl, G as usePricingItem, _ as _sfc_main$4, o as _sfc_main$5, H as _sfc_main$6, I as _sfc_main$7, q as _sfc_main$8 } from "./vendor-ui-BoGKOJ36.mjs";
3
- import { g as getNameFromPricing } from "./pricing-B1uImUm4.mjs";
2
+ import { a as _sfc_main$3, u as useIntl, G as usePricingItem, b as _sfc_main$4, t as _sfc_main$5, H as _sfc_main$6, I as _sfc_main$7, c as _sfc_main$8 } from "./vendor-ui-ItGf7wJV.mjs";
3
+ import { g as getNameFromPricing } from "./pricing-GwLCiSzs.mjs";
4
4
  import { u as useViewport } from "./useViewport-Bu0cyeSi.mjs";
5
5
  const _hoisted_1$2 = { class: "flex gap-4 border-l-2 border-primary-600 px-2" };
6
6
  const _hoisted_2$2 = { class: "grow" };
@@ -0,0 +1 @@
1
+ const e=require("vue"),n=require("./vendor-ui-Dfh3_g4q.js"),t=require("./pricing-CuYndX6t.js"),l=require("./useViewport-CKRY1CKR.js"),i={class:"flex gap-4 border-l-2 border-primary-600 px-2"},r={class:"grow"},a=e.defineComponent({__name:"PricingGroupTitle",setup:t=>(t,l)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",r,[e.createVNode(e.unref(n._sfc_main$1),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),_:3})]),e.createElementVNode("div",null,[e.createVNode(e.unref(n._sfc_main$1),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"description")]),_:3})])]))}),o={class:"p-1"},c={class:"pt-1"},s=e.defineComponent({__name:"PricingGroupSingleEditor",props:e.mergeModels({modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const r=i,s=e.useModel(i,"modelValue"),{$t:u}=n.useIntl(),{renderPricingForPricingItem:p}=n.usePricingItem({currency:e.toRef(r,"currency"),billingPeriod:e.toRef(r,"billingPeriod")}),{isMobileViewport:d}=l.useViewport(),m=e.computed(()=>r.pricings.map(e=>e.id)),v=e.computed({get:()=>s.value.find(e=>m.value.includes(e))??void 0,set:e=>{const n=s.value.filter(e=>!m.value.includes(e));s.value=e?[...n,e]:n}}),g=e.computed(()=>r.pricings.map(e=>{var n;const l=null==(n=e.items)?void 0:n[0];return{label:t.getNameFromPricing(e)??"",value:e.id,description:l?p({pricingItem:l}):u({defaultMessage:"Unsupported pricing",id:"pricing_item_pricing.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"})}}));return(t,l)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$2),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(a,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.groupName),1)]),_:1}),e.createElementVNode("div",c,[g.value.length<=3?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$10),{key:0,modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value=e),options:g.value.slice(0,3),direction:e.unref(d)?"column":"row","show-radio":!1},null,8,["modelValue","options","direction"])):g.value.length<=6?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$18),{key:1,"single-model-value":v.value,"onUpdate:singleModelValue":l[1]||(l[1]=e=>v.value=e),options:g.value.map(({value:e,label:n,description:t})=>({label:n,subLabel:t,value:e})),size:"xl","show-sub-label-in-input":""},null,8,["single-model-value","options"])):(e.openBlock(),e.createBlock(e.unref(n._sfc_main$19),{key:2,modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value=e),options:g.value,name:`pricing-group-range-input-${i.groupName}`},null,8,["modelValue","options","name"]))])])]),_:1}))}}),u={class:"flex justify-around"},p={class:"flex items-center gap-0.5"},d=["aria-label","innerHTML"],m=e.defineComponent({__name:"SecurePaymentsKPI",props:{paymentMethodOptions:{type:Array}},setup(t){const l=t,{$t:i}=n.useIntl(),r={ADYEN:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="40" height="15" fill="none" viewBox="0 0 40 15"><path fill="currentColor" d="M.049 2.917h5.845c.646 0 1.17.522 1.17 1.166v5.834H1.217c-.646 0-1.17-.522-1.17-1.167V5.833h2.924v2.334H4.14v-3.5H.049zm32.735 0v7h2.922v-5.25h1.17v5.25h2.922V4.083c0-.644-.523-1.166-1.169-1.166zm-16.367 9.916h5.845c.646 0 1.17-.522 1.17-1.166v-8.75h-2.924v5.25H19.34v-5.25h-2.922V8.75c0 .645.523 1.167 1.169 1.167h2.922v1.166h-4.091zm15.197-2.916H25.77c-.646 0-1.17-.522-1.17-1.167V2.917h5.846c.646 0 1.17.522 1.17 1.166V7h-2.923V4.667h-1.17v3.5h4.092zM15.248 0v9.917H9.402c-.646 0-1.17-.522-1.17-1.167V4.083c0-.644.524-1.166 1.17-1.166h1.754v5.25h1.169V0z"/></svg>',label:"Adyen"},STRIPE:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="15" viewBox="0 0 36 15"><path d="M35.996 7.746c0-2.559-1.238-4.578-3.61-4.578-2.378 0-3.816 2.02-3.816 4.559 0 3.011 1.7 4.53 4.137 4.53 1.191 0 2.09-.269 2.77-.648v-2c-.68.34-1.457.547-2.45.547-.968 0-1.828-.34-1.937-1.52h4.887c0-.128.02-.648.02-.89m-4.937-.95c0-1.128.691-1.597 1.32-1.597.61 0 1.258.469 1.258 1.598ZM24.707 3.168c-.977 0-1.61.46-1.957.781l-.133-.62h-2.199v11.66l2.5-.532.012-2.828c.36.258.89.629 1.77.629 1.788 0 3.417-1.442 3.417-4.61-.008-2.898-1.66-4.48-3.41-4.48m-.598 6.89c-.59 0-.941-.21-1.18-.472l-.011-3.707c.262-.29.621-.492 1.191-.492.91 0 1.54 1.02 1.54 2.332 0 1.34-.622 2.34-1.54 2.34M16.98 2.578l2.508-.539V.008L16.98.539ZM16.98 3.34h2.508v8.746H16.98ZM14.29 4.078l-.161-.738h-2.16v8.746h2.5v-5.93c.59-.77 1.59-.629 1.898-.52V3.34c-.316-.121-1.488-.34-2.078.738M9.29 1.168l-2.438.52-.012 8.011c0 1.48 1.11 2.57 2.59 2.57.82 0 1.418-.152 1.75-.332v-2.03c-.32.132-1.899.59-1.899-.887V5.469h1.899v-2.13H9.28ZM2.531 5.879c0-.39.32-.54.848-.54a5.56 5.56 0 0 1 2.48.638V3.629a6.55 6.55 0 0 0-2.48-.461C1.352 3.168 0 4.227 0 6c0 2.758 3.8 2.316 3.8 3.508 0 .46-.402.61-.96.61-.828 0-1.89-.34-2.73-.802V11.7c.93.399 1.87.57 2.73.57 2.078 0 3.512-1.03 3.512-2.82-.012-2.98-3.82-2.453-3.82-3.57m0 0" style="stroke:none;fill-rule:evenodd;fill:currentColor;fill-opacity:1"/></svg>',label:"Stripe"}},a=e.computed(()=>{const e=l.paymentMethodOptions.find(({integration:e})=>{var n;return null!=(null==(n=e.payment_gateway)?void 0:n.variant)&&e.payment_gateway.variant in r});return e?r[e.integration.payment_gateway.variant]:null}),o=e.computed(()=>a.value?i({defaultMessage:"Secure and encrypted payments by",description:"Secure encrypted payments KPI for a specific vendor, followed by a vendor logo",id:"secure_payments_kpi.specific_vendor"}):i({defaultMessage:"Secure and encrypted payments",description:"Secure encrypted payments KPI",id:"secure_payments_kpi.generic"}));return(t,l)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",p,[e.createVNode(e.unref(n._sfc_main$3),{icon:"lock",size:"xs"}),e.createVNode(e.unref(n._sfc_main$1),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(o.value),1),l[0]||(l[0]=e.createTextVNode(e.toDisplayString(" ")+" ",-1)),a.value?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-label":a.value.label,role:"img",class:"inline-block h-[15px] align-middle",innerHTML:a.value.svg},null,8,d)):e.createCommentVNode("",!0)]),_:1})])]))}});exports._sfc_main=s,exports._sfc_main$1=m,exports._sfc_main$2=a;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode } from "vue";
2
- import { u as useIntl, _ as _sfc_main$1, P as PricingPlanSchedules } from "./vendor-ui-BoGKOJ36.mjs";
2
+ import { u as useIntl, b as _sfc_main$1, P as PricingPlanSchedules } from "./vendor-ui-ItGf7wJV.mjs";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "SubscriptionSchedules",
5
5
  props: {
@@ -0,0 +1 @@
1
+ const e=require("vue"),s=require("./vendor-ui-Dfh3_g4q.js"),t=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:n}=s.useIntl();return(i,c)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main$2),{class:"sv-subscription-schedules sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(n)({defaultMessage:"Schedules",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(s.PricingPlanSchedules),{class:"sv-subscription-schedules__list",schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});exports._sfc_main=t;
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./vendor-ui-Dfh3_g4q.js"),n=require("./subscription-b0OPx8Du.js"),i={class:"grow"},a=e.defineComponent({__name:"SubscriptionSummary",props:{subscription:{type:Object},invoice:{type:Object},loading:{type:Boolean},enabledPricingIds:{type:Array},avatar:{type:String},noSpacing:{type:Boolean},trialPeriod:{type:Object}},setup(a){const o=a,{$t:r}=t.useIntl(),c=e.computed(()=>n.getMostRecentPricingPlan(o.subscription)),s=e.computed(()=>n.getSubscriptionName({subscription:o.subscription,fallback:r({defaultMessage:"Subscription",description:"The fallback name for when no subscription name can be determined",id:"customer_overview.subscriptions_block.fallback_subscription_name"})})),l=e.computed(()=>{var e;return o.subscription.description||(null==(e=c.value)?void 0:e.description)}),u=e.computed(()=>{if(!o.subscription||!o.enabledPricingIds)return;const e=n.findPricingsByIds(o.subscription,o.enabledPricingIds);return null==e?void 0:e.map(e=>{var t,n;return e.name??(null==(n=null==(t=e.products)?void 0:t[0])?void 0:n.name)}).join(" - ")});return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-row gap-3",a.noSpacing?void 0:"px-3 py-2"])},[a.avatar?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"image-src":a.avatar,size:"lg",class:"my-1"},null,8,["image-src"])):e.createCommentVNode("",!0),e.createElementVNode("div",i,[e.createVNode(e.unref(t._sfc_main$1),{variant:"body",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1}),u.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,variant:"body-xs",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1})):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,variant:"body-xs",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" • ")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.value),1)]),_:1})):e.createCommentVNode("",!0)])],2))}});exports._sfc_main=a;
@@ -1,9 +1,8 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createBlock, unref, createCommentVNode, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, Fragment, renderSlot } from "vue";
2
- import { u as useIntl, p as _sfc_main$2, e as _sfc_main$3, _ as _sfc_main$4, q as _sfc_main$5 } from "./vendor-ui-BoGKOJ36.mjs";
3
- import { g as getMostRecentPricingPlan, a as getSubscriptionName, f as findPricingsByIds } from "./subscription-B4dBAY9C.mjs";
4
- const _hoisted_1$1 = { class: "flex flex-row gap-3 px-3 py-2" };
5
- const _hoisted_2 = { class: "grow" };
6
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createBlock, unref, createCommentVNode, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, Fragment } from "vue";
2
+ import { u as useIntl, _ as _sfc_main$1, a as _sfc_main$2 } from "./vendor-ui-ItGf7wJV.mjs";
3
+ import { g as getMostRecentPricingPlan, a as getSubscriptionName, f as findPricingsByIds } from "./subscription-C41lG-rH.mjs";
4
+ const _hoisted_1 = { class: "grow" };
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
6
  __name: "SubscriptionSummary",
8
7
  props: {
9
8
  subscription: { type: Object },
@@ -11,6 +10,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
11
10
  loading: { type: Boolean },
12
11
  enabledPricingIds: { type: Array },
13
12
  avatar: { type: String },
13
+ noSpacing: { type: Boolean },
14
14
  trialPeriod: { type: Object }
15
15
  },
16
16
  setup(__props) {
@@ -45,15 +45,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
45
45
  return names;
46
46
  });
47
47
  return (_ctx, _cache) => {
48
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
49
- __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$2), {
48
+ return openBlock(), createElementBlock("div", {
49
+ class: normalizeClass(["flex flex-row gap-3", __props.noSpacing ? void 0 : "px-3 py-2"])
50
+ }, [
51
+ __props.avatar ? (openBlock(), createBlock(unref(_sfc_main$1), {
50
52
  key: 0,
51
53
  "image-src": __props.avatar,
52
54
  size: "lg",
53
55
  class: "my-1"
54
56
  }, null, 8, ["image-src"])) : createCommentVNode("", true),
55
- createElementVNode("div", _hoisted_2, [
56
- createVNode(unref(_sfc_main$3), {
57
+ createElementVNode("div", _hoisted_1, [
58
+ createVNode(unref(_sfc_main$2), {
57
59
  variant: "body",
58
60
  weight: "semibold",
59
61
  "no-spacing": ""
@@ -63,7 +65,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
63
65
  ]),
64
66
  _: 1
65
67
  }),
66
- selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$3), {
68
+ selectedPricings.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
67
69
  key: 0,
68
70
  variant: "body-xs",
69
71
  shade: "lighter",
@@ -74,7 +76,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74
76
  ]),
75
77
  _: 1
76
78
  })) : createCommentVNode("", true),
77
- description.value ? (openBlock(), createBlock(unref(_sfc_main$3), {
79
+ description.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
78
80
  key: 1,
79
81
  variant: "body-xs",
80
82
  shade: "lighter",
@@ -89,59 +91,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
89
91
  _: 1
90
92
  })) : createCommentVNode("", true)
91
93
  ])
92
- ]);
93
- };
94
- }
95
- });
96
- const _hoisted_1 = { class: "sv-empty-state__body flex flex-col items-center justify-center py-4" };
97
- const _sfc_main = /* @__PURE__ */ defineComponent({
98
- __name: "EmptyStatePlaceholder",
99
- props: {
100
- icon: { type: null }
101
- },
102
- setup(__props) {
103
- return (_ctx, _cache) => {
104
- return openBlock(), createBlock(unref(_sfc_main$4), { class: "sv-empty-state" }, {
105
- default: withCtx(() => [
106
- createElementVNode("div", _hoisted_1, [
107
- createVNode(unref(_sfc_main$5), {
108
- icon: __props.icon,
109
- size: "lg",
110
- class: "sv-empty-state__icon text-gray-500"
111
- }, null, 8, ["icon"]),
112
- createVNode(unref(_sfc_main$3), {
113
- center: "",
114
- tag: "span",
115
- variant: "body-sm",
116
- weight: "semibold",
117
- shade: "lighter",
118
- class: "sv-empty-state__title mt-2"
119
- }, {
120
- default: withCtx(() => [
121
- renderSlot(_ctx.$slots, "title")
122
- ]),
123
- _: 3
124
- }),
125
- createVNode(unref(_sfc_main$3), {
126
- center: "",
127
- tag: "span",
128
- variant: "body-xs",
129
- shade: "lightest",
130
- class: "sv-empty-state__message mt-1"
131
- }, {
132
- default: withCtx(() => [
133
- renderSlot(_ctx.$slots, "message")
134
- ]),
135
- _: 3
136
- })
137
- ])
138
- ]),
139
- _: 3
140
- });
94
+ ], 2);
141
95
  };
142
96
  }
143
97
  });
144
98
  export {
145
- _sfc_main$1 as _,
146
- _sfc_main as a
99
+ _sfc_main as _
147
100
  };
@@ -0,0 +1 @@
1
+ const e=require("./useIncrementalLoading-CkY2klIW.js"),t=require("./subscriptions-BFCKVHnP.js"),i=require("vue"),s=require("./vendor-ui-Dfh3_g4q.js"),o=require("./subscription-b0OPx8Du.js"),n=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),r=require("./useActionDispatchProvider-aJOy3kr1.js");const c={class:"sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row"},a={class:"sv-subscriptions-list__item-content grow"},l={class:"sv-subscriptions-list__item-meta mt-4 flex items-center gap-6"},u={key:1,class:"sv-subscriptions-list__item-next-invoice flex gap-1"},p={class:"sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row"},d=i.defineComponent({__name:"SubscriptionsListItem",props:{subscription:{type:Object},paymentMethod:{type:Object},customer:{type:Object},showViewSubscriptionDetailsButton:{type:Boolean,default:!0}},emits:["view-subscription-details"],setup(e){const t=e,{$t:n}=s.useIntl(),{formatDate:r}=s.useIntl(),d=i.computed(()=>o.getMostRecentPricingPlan(t.subscription)),m=i.computed(()=>o.getSubscriptionName({subscription:t.subscription,fallback:n({defaultMessage:"Subscription",description:"The fallback name for when no subscription name can be determined",id:"customer_overview.subscriptions_block.fallback_subscription_name"})})),b=i.computed(()=>{var e;return null==(e=d.value)?void 0:e.description}),_=i.computed(()=>t.showViewSubscriptionDetailsButton);return(t,o)=>(i.openBlock(),i.createBlock(i.unref(s._sfc_main$2),{class:"sv-subscriptions-list__item"},{default:i.withCtx(()=>[i.createElementVNode("div",c,[i.createElementVNode("div",a,[i.createVNode(i.unref(s._sfc_main$1),{tag:"h3",variant:"heading-2",class:"sv-subscriptions-list__item-title"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(m.value),1)]),_:1}),b.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$1),{key:0,variant:"body-sm",tag:"span",shade:"lighter",class:"sv-subscriptions-list__item-description"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(b.value),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",l,[e.paymentMethod?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$8),{key:0,variant:"condensed",class:"sv-payment-methods__item","payment-method":e.paymentMethod},null,8,["payment-method"])):i.createCommentVNode("",!0),e.subscription.next_invoice?(i.openBlock(),i.createElementBlock("div",u,[i.createVNode(i.unref(s._sfc_main$1),{tag:"span",variant:"body-xs",shade:"light",weight:"semibold"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)({defaultMessage:"Next billing date",description:"The label for the next billing date",id:"customer.subscriptions_block.next_billing_date"})),1)]),_:1}),i.createVNode(i.unref(s._sfc_main$1),{tag:"span",variant:"body-xs",shade:"light"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(r)({date:e.subscription.next_invoice.invoice_date,format:"date",offsetType:"offsetted",timezone:e.customer.timezone})),1)]),_:1})])):i.createCommentVNode("",!0)])]),i.createElementVNode("div",p,[_.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$6),{key:0,color:"primary",class:"sv-action sv-action--primary sv-subscriptions-list__item-details w-full md:w-auto",type:"button",onClick:o[0]||(o[0]=i=>t.$emit("view-subscription-details",{subscriptionId:e.subscription.id}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)({defaultMessage:"Subscription details",description:"The label for the subscription details button in the subscriptions block",id:"customer.subscriptions_block.show_details_button_label"})),1)]),_:1})):i.createCommentVNode("",!0)])])]),_:1}))}}),m={key:1,class:"sv-subscriptions-list__items grid grid-cols-1 gap-4"},b=i.defineComponent({__name:"SubscriptionsList",props:{customer:{type:Object},subscriptions:{type:Array},paymentMethods:{default:()=>[],type:Array},isLoading:{type:Boolean},showViewAllButton:{type:Boolean,default:!0},showViewDetailsButton:{type:Boolean,default:!0}},emits:["view-subscription-details","view-all-subscriptions","load-more"],setup(e){const t=e,{$t:o}=s.useIntl(),n=i.computed(()=>t.subscriptions.length>0),r=e=>{if(e)return t.paymentMethods.find(({id:t})=>t===e)},c=i.computed(()=>t.showViewAllButton);return(t,a)=>(i.openBlock(),i.createBlock(i.unref(s._sfc_main$2),{class:"sv-subscriptions-list","no-spacing":"","no-border":"",title:i.unref(o)({defaultMessage:"{count, plural, one {My subscription} other {My subscriptions}}",description:"Title for the subscriptions block on the customer overview page",id:"customer_overview.subscriptions_block.title"},{count:String(e.subscriptions.length)})},i.createSlots({default:i.withCtx(()=>[n.value?(i.openBlock(),i.createElementBlock("div",m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.subscriptions,s=>(i.openBlock(),i.createBlock(d,{key:s.id,subscription:s,"payment-method":r(s.payment_method_id),customer:e.customer,"show-view-subscription-details-button":e.showViewDetailsButton,onViewSubscriptionDetails:a[1]||(a[1]=e=>t.$emit("view-subscription-details",e))},null,8,["subscription","payment-method","customer","show-view-subscription-details-button"]))),128))])):(i.openBlock(),i.createBlock(i.unref(s._sfc_main$2),{key:0,class:"sv-empty-state sv-subscriptions-list__empty"},{default:i.withCtx(()=>[i.createVNode(i.unref(s._sfc_main$1),{tag:"h3",variant:"heading-3"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"No subscriptions",description:"Title for the my subscriptions block on the customer overview page",id:"customer_overview.subscriptions_block.no_active_subscription_title"})),1)]),_:1}),i.createVNode(i.unref(s._sfc_main$1),{variant:"body-xs",shade:"lighter"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"There’s no active subscription to display.",description:"Text that is being displayed when there is no active subscription in the subscriptions block",id:"customer_overview.subscriptions_block.no_active_subscription_content"})),1)]),_:1})]),_:1}))]),_:2},[c.value?{name:"right",fn:i.withCtx(()=>[i.createVNode(i.unref(s._sfc_main$6),{size:"sm",variant:"ghost",color:"gray","icon-suffix":"arrow_right_alt",class:"sv-action sv-action--ghost sv-subscriptions-list__view-all",type:"button",onClick:a[0]||(a[0]=e=>t.$emit("view-all-subscriptions"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"View all",description:"The text for the view all subscriptions button",id:"customer_overview.subscriptions_block.view_all_button_label"})),1)]),_:1})]),key:"0"}:void 0]),1032,["title"]))}}),_=i.defineComponent({__name:"SubscriptionsList",props:{customer:{type:null},subscriptions:{type:Array},paymentMethods:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},emits:["load-more"],setup(e){const{dispatchAction:t}=r.useActionDispatchProvider();return(s,o)=>{var r,c;return e.isLoading?(i.openBlock(),i.createBlock(n._sfc_main,{key:0,variant:"section",class:"sv-subscriptions-list sv-root sv-component sv-loading min-h-[100px]","data-testid":"subscriptions-list-skeleton"})):e.customer?(i.openBlock(),i.createBlock(b,{key:1,class:"sv-subscriptions-list sv-root sv-component",customer:e.customer,subscriptions:e.subscriptions,"payment-methods":e.paymentMethods,"is-loading":e.isLoading,"show-view-all-button":null==(r=e.configuration)?void 0:r.showViewAllButton,"show-view-details-button":null==(c=e.configuration)?void 0:c.showViewDetailsButton,onViewSubscriptionDetails:o[0]||(o[0]=e=>i.unref(t)({action:"view-subscription-details",data:{subscriptionId:e.subscriptionId}})),onViewAllSubscriptions:o[1]||(o[1]=e=>i.unref(t)({action:"view-all-subscriptions"})),onLoadMore:o[2]||(o[2]=e=>s.$emit("load-more"))},null,8,["customer","subscriptions","payment-methods","is-loading","show-view-all-button","show-view-details-button"])):i.createCommentVNode("",!0)}}});exports._sfc_main=_,exports.useSubscriptionsList=function({customerId:i,batchSize:s=15}){const o=t.createSubscriptionsService();return e.useIncrementalLoading({service:async e=>o.getActiveSubscriptions({customerId:i,pagination:{page:e,pageSize:s}})})};
@@ -1,10 +1,10 @@
1
- import { u as useIncrementalLoading } from "./useIncrementalLoading-C59FXHzp.mjs";
2
- import { c as createSubscriptionsService } from "./subscriptions-CrNDM9qa.mjs";
1
+ import { u as useIncrementalLoading } from "./useIncrementalLoading-8WtKZ-mP.mjs";
2
+ import { c as createSubscriptionsService } from "./subscriptions-vEE4Y7qm.mjs";
3
3
  import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, createSlots, Fragment, renderList } from "vue";
4
- import { u as useIntl, _ as _sfc_main$3, e as _sfc_main$4, n as _sfc_main$5, c as _sfc_main$6 } from "./vendor-ui-BoGKOJ36.mjs";
5
- import { g as getMostRecentPricingPlan, a as getSubscriptionName } from "./subscription-B4dBAY9C.mjs";
4
+ import { u as useIntl, b as _sfc_main$3, a as _sfc_main$4, n as _sfc_main$5, k as _sfc_main$6 } from "./vendor-ui-ItGf7wJV.mjs";
5
+ import { g as getMostRecentPricingPlan, a as getSubscriptionName } from "./subscription-C41lG-rH.mjs";
6
6
  import { _ as _sfc_main$7 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
7
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zB_GKeUR.mjs";
7
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BlEf-RZ5.mjs";
8
8
  function useSubscriptionsList({
9
9
  customerId,
10
10
  batchSize: pageSize = 15
@@ -0,0 +1 @@
1
+ const e=new Set(["https:","http:"]);function n(e){const n=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currency}),{maximumFractionDigits:t=10}=n.resolvedOptions();return{value:Math.round(+e.quantity*Math.pow(10,t)),currency:e.currency}}const t="payment_acceptor_id";function r(e){var n,t;return null==(t=null==(n=e.integration.payment_gateway)?void 0:n.adyen)?void 0:t.public_key}function o(e){var n;return(null==(n=e.options)?void 0:n.filter(e=>"ADYEN"===e.payment_gateway_variant).flatMap(e=>{return{type:(n=e.adyen).type,name:n.name,...n.issuers?{issuers:n.issuers}:{},...n.brands?{brands:n.brands}:{},...n.funding_source?{fundingSource:n.funding_source}:{},...n.configuration?{configuration:n.configuration}:{}};var n}))??[]}function a(e,n){var t,r;const o=null==(r=null==(t=null==e?void 0:e.integration.payment_gateway)?void 0:t.adyen)?void 0:r.environment;if(!o)return n.warn("ADYEN_INVALID_CONFIGURATION","No environment set for adyen advanced flow, defaulted to live"),"live";switch(o){case"TEST":return"test";case"LIVE_IN":return"live-in";case"LIVE_AU":return"live-au";case"LIVE_US":return"live-us";case"LIVE_APSE":return"live-apse";case"LIVE":return"live";default:return n.warn("ADYEN_INVALID_CONFIGURATION",`Unsupported environment "${o}" for adyen advanced flow, defaulted to "live"`),"live"}}exports.PAYMENT_ACCEPTOR_ID_QUERY_STRING=t,exports.REDIRECT_RESULT_QUERY_STRING="redirectResult",exports.createReturnUrl=function({paymentAcceptorId:e,redirectUrl:n=window.location.href}){const r=new URL(n);return r.searchParams.set(t,e),r.toString()},exports.getAdyenClientKeyFromPaymentMethodOptionsResponse=r,exports.getAdyenEnvironmentFromPaymentMethodOptionsResponse=a,exports.getAdyenExpressCheckoutConfiguration=function({amount:e,countryCode:t,locale:i,paymentMethodOptionResponse:s,logger:c}){return{...e?{amount:n(e)}:{},analytics:{enabled:!1},clientKey:r(s),countryCode:t,environment:a(s,c),locale:i,paymentMethodsResponse:{paymentMethods:o(s)}}},exports.getQueryParam=function(e,n=window.location.search){return new URLSearchParams(n).get(e)},exports.mapAdyenPaymentMethods=o,exports.safeUrlRedirect=function(n){const t=function(n){try{const t=new URL(n);return e.has(t.protocol)?n:""}catch{return""}}(n);t&&window.location.replace(t)},exports.toMinorUnitAmount=n,exports.transformObjectToAdyenObject=function(e){return e?Object.fromEntries(Object.entries(e).map(([e,n])=>[e,String(n)])):void 0};
@@ -1,5 +1,21 @@
1
- import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, renderSlot, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$1, q as _sfc_main$2, e as _sfc_main$3 } from "./vendor-ui-BoGKOJ36.mjs";
1
+ const SAFE_PROTOCOLS = /* @__PURE__ */ new Set(["https:", "http:"]);
2
+ function getQueryParam(name, locationSearch = window.location.search) {
3
+ const currentUrl = new URLSearchParams(locationSearch);
4
+ return currentUrl.get(name);
5
+ }
6
+ function sanitizeUrl(url) {
7
+ try {
8
+ const parsed = new URL(url);
9
+ if (!SAFE_PROTOCOLS.has(parsed.protocol)) return "";
10
+ return url;
11
+ } catch {
12
+ return "";
13
+ }
14
+ }
15
+ function safeUrlRedirect(url) {
16
+ const safe = sanitizeUrl(url);
17
+ if (safe) window.location.replace(safe);
18
+ }
3
19
  function toMinorUnitAmount(amount) {
4
20
  const formatter = new Intl.NumberFormat(void 0, {
5
21
  style: "currency",
@@ -11,53 +27,6 @@ function toMinorUnitAmount(amount) {
11
27
  currency: amount.currency
12
28
  };
13
29
  }
14
- const _hoisted_1 = { class: "flex flex-col items-center py-10" };
15
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
- __name: "PaymentFeedbackCard",
17
- props: {
18
- status: { default: "success", type: String },
19
- title: { type: String }
20
- },
21
- setup(__props) {
22
- return (_ctx, _cache) => {
23
- return openBlock(), createBlock(unref(_sfc_main$1), null, {
24
- default: withCtx(() => [
25
- createElementVNode("div", _hoisted_1, [
26
- createVNode(unref(_sfc_main$2), {
27
- icon: __props.status === "success" ? "check_circle" : "error",
28
- class: normalizeClass({
29
- "text-green-400": __props.status === "success",
30
- "text-red-600": __props.status === "error"
31
- }),
32
- size: "lg"
33
- }, null, 8, ["icon", "class"]),
34
- createVNode(unref(_sfc_main$3), {
35
- variant: "heading-3",
36
- tag: "span",
37
- class: "mt-2"
38
- }, {
39
- default: withCtx(() => [
40
- createTextVNode(toDisplayString(__props.title), 1)
41
- ]),
42
- _: 1
43
- }),
44
- _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$3), {
45
- key: 0,
46
- tag: "div",
47
- variant: "body-sm"
48
- }, {
49
- default: withCtx(() => [
50
- renderSlot(_ctx.$slots, "default")
51
- ]),
52
- _: 3
53
- })) : createCommentVNode("", true)
54
- ])
55
- ]),
56
- _: 3
57
- });
58
- };
59
- }
60
- });
61
30
  const PAYMENT_ACCEPTOR_ID_QUERY_STRING = "payment_acceptor_id";
62
31
  const REDIRECT_RESULT_QUERY_STRING = "redirectResult";
63
32
  function getAdyenClientKeyFromPaymentMethodOptionsResponse(paymentMethodOptionResponse) {
@@ -66,7 +35,9 @@ function getAdyenClientKeyFromPaymentMethodOptionsResponse(paymentMethodOptionRe
66
35
  }
67
36
  function mapAdyenPaymentMethods(paymentMethodOptionResponse) {
68
37
  var _a;
69
- return ((_a = paymentMethodOptionResponse.options) == null ? void 0 : _a.filter((option) => option.payment_gateway_variant === "ADYEN").flatMap(
38
+ return ((_a = paymentMethodOptionResponse.options) == null ? void 0 : _a.filter(
39
+ (option) => option.payment_gateway_variant === "ADYEN"
40
+ ).flatMap(
70
41
  (adyenPaymentMethodOption) => mapAdyenPaymentMethod(adyenPaymentMethodOption.adyen)
71
42
  )) ?? [];
72
43
  }
@@ -92,7 +63,10 @@ function getAdyenEnvironmentFromPaymentMethodOptionsResponse(paymentMethodsOptio
92
63
  var _a, _b;
93
64
  const environment = (_b = (_a = paymentMethodsOptionsResponse == null ? void 0 : paymentMethodsOptionsResponse.integration.payment_gateway) == null ? void 0 : _a.adyen) == null ? void 0 : _b.environment;
94
65
  if (!environment) {
95
- logger.warn("ADYEN_INVALID_CONFIGURATION", "No environment set for adyen advanced flow, defaulted to live");
66
+ logger.warn(
67
+ "ADYEN_INVALID_CONFIGURATION",
68
+ "No environment set for adyen advanced flow, defaulted to live"
69
+ );
96
70
  return "live";
97
71
  }
98
72
  switch (environment) {
@@ -109,7 +83,10 @@ function getAdyenEnvironmentFromPaymentMethodOptionsResponse(paymentMethodsOptio
109
83
  case "LIVE":
110
84
  return "live";
111
85
  default:
112
- logger.warn("ADYEN_INVALID_CONFIGURATION", `Unsupported environment "${environment}" for adyen advanced flow, defaulted to "live"`);
86
+ logger.warn(
87
+ "ADYEN_INVALID_CONFIGURATION",
88
+ `Unsupported environment "${environment}" for adyen advanced flow, defaulted to "live"`
89
+ );
113
90
  return "live";
114
91
  }
115
92
  }
@@ -138,32 +115,13 @@ function getAdyenExpressCheckoutConfiguration({
138
115
  function transformObjectToAdyenObject(obj) {
139
116
  return obj ? Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, String(value)])) : void 0;
140
117
  }
141
- const SAFE_PROTOCOLS = /* @__PURE__ */ new Set(["https:", "http:"]);
142
- function getQueryParam(name, locationSearch = window.location.search) {
143
- const currentUrl = new URLSearchParams(locationSearch);
144
- return currentUrl.get(name);
145
- }
146
- function sanitizeUrl(url) {
147
- try {
148
- const parsed = new URL(url);
149
- if (!SAFE_PROTOCOLS.has(parsed.protocol)) return "";
150
- return url;
151
- } catch {
152
- return "";
153
- }
154
- }
155
- function safeUrlRedirect(url) {
156
- const safe = sanitizeUrl(url);
157
- if (safe) window.location.replace(safe);
158
- }
159
118
  export {
160
119
  PAYMENT_ACCEPTOR_ID_QUERY_STRING as P,
161
120
  REDIRECT_RESULT_QUERY_STRING as R,
162
- _sfc_main as _,
163
121
  getAdyenEnvironmentFromPaymentMethodOptionsResponse as a,
164
122
  getAdyenClientKeyFromPaymentMethodOptionsResponse as b,
165
- createReturnUrl as c,
166
- transformObjectToAdyenObject as d,
123
+ transformObjectToAdyenObject as c,
124
+ createReturnUrl as d,
167
125
  getAdyenExpressCheckoutConfiguration as e,
168
126
  getQueryParam as g,
169
127
  mapAdyenPaymentMethods as m,