@solvimon/solvimon-web 0.1.0-alpha.1 → 0.1.0-alpha.11

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 (196) hide show
  1. package/README.md +196 -44
  2. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  3. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-B42EzZ97.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +9 -6
  5. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
  6. package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
  7. package/dist/{ContentWithAsideLayout-BC-C5Gjt.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
  8. package/dist/{useCustomerPaymentMethodOptions-Fe_dLxfv.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +29 -37
  9. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +20 -9
  11. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
  12. package/dist/PaymentHistoryBlock-BiiFJkpT.js +1 -0
  13. package/dist/PaymentHistoryBlock-D_B099M7.mjs +4 -0
  14. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +19 -12
  15. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
  16. package/dist/PaymentIntegrationForm-DFnwutjd.mjs +4 -0
  17. package/dist/PaymentIntegrationForm-xkf4TUaD.js +1 -0
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DTIY4s7C.js +1 -0
  19. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-uk5MO0ce.mjs +962 -0
  20. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs +50 -0
  21. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
  22. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +24 -8
  23. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
  24. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
  25. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DfB5BqiH.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +42 -36
  26. package/dist/adyen-51SvcyqV.mjs +4 -0
  27. package/dist/adyen-Bwewy3HC.mjs +172 -0
  28. package/dist/adyen-DZsyEXkw.js +1 -0
  29. package/dist/adyen-R6aSZ0Yf.js +1 -0
  30. package/dist/component-BOqPDAVk.js +1 -0
  31. package/dist/component-Djrf1L-Z.mjs +889 -0
  32. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
  33. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  34. package/dist/components/BillingInformation/BillingInformation.es.js +99 -5
  35. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
  36. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  37. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +582 -5
  38. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
  39. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  40. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +126 -5
  41. package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
  42. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  43. package/dist/components/Invoice/Invoice.es.js +538 -5
  44. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
  45. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  46. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +127 -5
  47. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
  48. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  49. package/dist/components/InvoicesList/InvoicesList.es.js +106 -5
  50. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
  51. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  52. package/dist/components/PaymentHistory/PaymentHistory.es.js +131 -5
  53. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
  54. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  55. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +217 -5
  56. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
  57. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  58. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +154 -5
  59. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
  60. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  61. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +132 -5
  62. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +3 -0
  63. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -0
  64. package/dist/components/WalletBalances/WalletBalances.es.js +120 -0
  65. package/dist/core/configuration.d.ts +2 -1
  66. package/dist/core/index.cjs.js +1 -1
  67. package/dist/core/index.d.ts +1 -0
  68. package/dist/core/index.es.js +1 -1
  69. package/dist/core/registry.d.ts +1 -1
  70. package/dist/core/types.d.ts +10 -2
  71. package/dist/customer-B31QzznT.mjs +32 -0
  72. package/dist/customer-hDxW1Dbp.js +1 -0
  73. package/dist/en-US-CgPY97Vq.js +1 -0
  74. package/dist/en-US-N3CUCsVy.mjs +179 -0
  75. package/dist/index-DIFK3mcJ.js +6 -0
  76. package/dist/index-DyvRdSR7.mjs +9673 -0
  77. package/dist/index.cjs.js +1 -1
  78. package/dist/index.d.ts +3 -0
  79. package/dist/index.es.js +43 -34
  80. package/dist/{invoices-C31Wz1Bu.mjs → invoices-DIYPN2j_.mjs} +2 -1
  81. package/dist/invoices-DzkA1jDc.js +1 -0
  82. package/dist/nl-NL-B8U9b85I.mjs +197 -0
  83. package/dist/nl-NL-qMRaTRrM.js +1 -0
  84. package/dist/{paymentMethods-CrU4G_2Y.mjs → paymentMethods-67b3UlTZ.mjs} +2 -1
  85. package/dist/paymentMethods-C_sdTkSF.js +1 -0
  86. package/dist/{payments-C3LPk9k9.js → payments-DkHhTHto.js} +1 -1
  87. package/dist/{payments-NtWI8KlU.mjs → payments-Dq6R37Fz.mjs} +1 -1
  88. package/dist/registry-BkViv4tv.js +1 -0
  89. package/dist/registry-Df_26rJy.mjs +144 -0
  90. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
  91. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  92. package/dist/screens/Checkout/Checkout.es.js +4935 -5
  93. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
  94. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  95. package/dist/screens/CustomerOverview/CustomerOverview.es.js +154 -5
  96. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  97. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  98. package/dist/screens/PayInvoice/PayInvoice.es.js +458 -0
  99. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +3 -0
  100. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -0
  101. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +1066 -0
  102. package/dist/solvimon-web.css +1 -1
  103. package/dist/{subscriptions-3R7aMoky.mjs → subscriptions-ClGIr_aS.mjs} +2 -1
  104. package/dist/subscriptions-jelITJcX.js +1 -0
  105. package/dist/{useActionDispatchProvider-CBo_Hwu5.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
  106. package/dist/useActionDispatchProvider-rw9kWeE0.js +1 -0
  107. package/dist/useCustomer-Ba9WRtuT.mjs +25 -0
  108. package/dist/useCustomer-CUcaeQn_.js +1 -0
  109. package/dist/{useIncrementalLoading-fHCizCSo.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +11 -10
  110. package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
  111. package/dist/{useInvoiceData-dyvoDwFF.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
  112. package/dist/useInvoiceData-D2jkdmlA.js +1 -0
  113. package/dist/{useInvoicesList-rDvRzMqe.mjs → useInvoicesList-CFzAxyae.mjs} +34 -30
  114. package/dist/useInvoicesList-CaBCGs4h.js +1 -0
  115. package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
  116. package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
  117. package/dist/usePaymentMethodOptions-C2k4npCQ.mjs +26 -0
  118. package/dist/usePaymentMethodOptions-DYO6xr3-.js +1 -0
  119. package/dist/{usePaymentMethods-Bq5fWl1Q.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
  120. package/dist/{usePaymentMethods-Dbimodf0.js → usePaymentMethods-ryN_YohI.js} +1 -1
  121. package/dist/usePayments-Cw5PPEJa.mjs +36 -0
  122. package/dist/usePayments-DWXPGFvp.js +1 -0
  123. package/dist/usePortal-CxX4nrE4.js +1 -0
  124. package/dist/usePortal-cmE08vYs.mjs +12 -0
  125. package/dist/useService-Bb9r_sOQ.js +1 -0
  126. package/dist/useService-BsSEI8DZ.mjs +53 -0
  127. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  128. package/dist/useViewport-CKRY1CKR.js +1 -0
  129. package/dist/useWalletBalanceItems-CkDqmk36.mjs +109 -0
  130. package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
  131. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  132. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  133. package/dist/vendor-ui-5pJF5KBP.js +1 -0
  134. package/dist/vendor-ui-C0K3osvz.mjs +27645 -0
  135. package/package.json +47 -20
  136. package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +0 -99
  137. package/dist/BillingInformation.entry.ce-DkrfEvK_.js +0 -1
  138. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +0 -1
  139. package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +0 -1
  140. package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +0 -579
  141. package/dist/Checkout.entry.ce-Bif6vR1K.mjs +0 -5185
  142. package/dist/Checkout.entry.ce-CkQnLAn4.js +0 -1
  143. package/dist/ContentWithAsideLayout-CIVSoqFr.js +0 -1
  144. package/dist/CustomerOverview.entry.ce-C__omsVl.js +0 -1
  145. package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +0 -231
  146. package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +0 -135
  147. package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +0 -1
  148. package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +0 -583
  149. package/dist/Invoice.entry.ce-Cgr43ome.js +0 -1
  150. package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +0 -130
  151. package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +0 -1
  152. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +0 -1
  153. package/dist/InvoicesList.entry.ce-38iOW5qh.js +0 -1
  154. package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +0 -105
  155. package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +0 -1
  156. package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +0 -134
  157. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +0 -1
  158. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +0 -6568
  159. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +0 -1
  160. package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +0 -238
  161. package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +0 -1
  162. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +0 -1
  163. package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +0 -1
  164. package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +0 -153
  165. package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +0 -1
  166. package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +0 -135
  167. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +0 -1
  168. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  169. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  170. package/dist/auto-B_36W1Fc.js +0 -6
  171. package/dist/auto-BfMZdgp-.mjs +0 -14207
  172. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  173. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  174. package/dist/component-BkmcE85U.mjs +0 -58654
  175. package/dist/component-Df5eNqYX.js +0 -1
  176. package/dist/index-2jo9BSPM.js +0 -1
  177. package/dist/index-BFZ0dPh9.mjs +0 -179
  178. package/dist/index-CWSXne1Q.js +0 -1
  179. package/dist/index-D3v7hAtc.mjs +0 -253
  180. package/dist/invoices-8M_3ur_U.js +0 -1
  181. package/dist/paymentMethods-CzUqDlvc.js +0 -1
  182. package/dist/registry-By94DXE2.js +0 -1
  183. package/dist/registry-shRKDl3K.mjs +0 -127
  184. package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
  185. package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
  186. package/dist/subscriptions-CqK7t-fF.js +0 -1
  187. package/dist/useActionDispatchProvider-DsIljrhi.js +0 -1
  188. package/dist/useCustomer-BRY0tuBH.mjs +0 -45
  189. package/dist/useCustomer-Dp8sGHI0.js +0 -1
  190. package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +0 -1
  191. package/dist/useIncrementalLoading-D8oKNxX7.js +0 -1
  192. package/dist/useInvoiceData-DImEH1ca.js +0 -1
  193. package/dist/useInvoicesList-BZQ9Y0qN.js +0 -1
  194. package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
  195. package/dist/useService-Dz13Nxbi.mjs +0 -272
  196. package/dist/useService-bNNi4GB8.js +0 -1
@@ -1,130 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$4 } from "./InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs";
3
- import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs";
4
- import { u as useInvoiceData } from "./useInvoiceData-dyvoDwFF.mjs";
5
- import { o as _sfc_main$5, p as defineCustomElement, n as getComponentName } from "./component-BkmcE85U.mjs";
6
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
- __name: "InvoiceDetails",
8
- props: {
9
- invoice: { type: Object },
10
- isLoading: { type: Boolean },
11
- configuration: { type: Object }
12
- },
13
- setup(__props) {
14
- return (_ctx, _cache) => {
15
- return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
16
- key: 0,
17
- variant: "section",
18
- class: "min-h-[100px]",
19
- "data-testid": "invoice-details-skeleton"
20
- })) : (openBlock(), createBlock(_sfc_main$4, {
21
- key: 1,
22
- invoice: __props.invoice
23
- }, null, 8, ["invoice"]));
24
- };
25
- }
26
- });
27
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28
- __name: "InvoiceDetails.entry.view",
29
- props: {
30
- environment: { type: String },
31
- locale: { type: String },
32
- dateLocale: { type: String },
33
- messages: { type: Object },
34
- showTimezones: { type: Boolean },
35
- primaryColor: { type: String },
36
- secondaryColor: { type: String },
37
- isShadowRoot: { type: Boolean },
38
- experimentalFeatures: { type: Array },
39
- logLevel: { type: String },
40
- onLog: { type: Function },
41
- allowedPortalTypes: { type: Array },
42
- portalObject: { type: Object },
43
- customElementName: { type: String },
44
- branding: { type: Object },
45
- configuration: { type: Object }
46
- },
47
- setup(__props) {
48
- const props = __props;
49
- const invoiceData = useInvoiceData(props.configuration.invoiceId);
50
- return (_ctx, _cache) => {
51
- var _a;
52
- return renderSlot(_ctx.$slots, "default", {
53
- invoice: (_a = unref(invoiceData).data.value) == null ? void 0 : _a.invoice,
54
- isLoading: unref(invoiceData).isPending.value
55
- });
56
- };
57
- }
58
- });
59
- const _sfc_main = /* @__PURE__ */ defineComponent({
60
- __name: "InvoiceDetails.entry",
61
- props: {
62
- environment: { type: String },
63
- locale: { type: String },
64
- dateLocale: { type: String },
65
- messages: { type: Object },
66
- showTimezones: { type: Boolean },
67
- primaryColor: { type: String },
68
- secondaryColor: { type: String },
69
- isShadowRoot: { type: Boolean },
70
- experimentalFeatures: { type: Array },
71
- logLevel: { type: String },
72
- onLog: { type: Function },
73
- allowedPortalTypes: { type: Array },
74
- portalObject: { type: Object },
75
- customElementName: { type: String },
76
- branding: { type: Object },
77
- configuration: { type: Object }
78
- },
79
- setup(__props) {
80
- var _a;
81
- const props = __props;
82
- if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
83
- throw new Error("Missing invoice id");
84
- }
85
- return (_ctx, _cache) => {
86
- var _a2, _b, _c, _d;
87
- return openBlock(), createBlock(unref(_sfc_main$5), {
88
- "custom-element-name": unref(COMPONENT_NAME),
89
- environment: __props.environment,
90
- locale: __props.locale,
91
- "portal-object": __props.portalObject,
92
- "allowed-portal-types": ["CUSTOMER"],
93
- "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
94
- "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
95
- "experimental-features": __props.experimentalFeatures,
96
- "log-level": __props.logLevel,
97
- "on-log": __props.onLog,
98
- onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
99
- }, {
100
- default: withCtx(() => [
101
- createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
102
- default: withCtx(({ invoice, isLoading }) => [
103
- invoice ? (openBlock(), createBlock(_sfc_main$2, {
104
- key: 0,
105
- "is-loading": isLoading,
106
- invoice,
107
- configuration: __props.configuration
108
- }, null, 8, ["is-loading", "invoice", "configuration"])) : createCommentVNode("", true)
109
- ]),
110
- _: 1
111
- }, 16)
112
- ]),
113
- _: 1
114
- }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
115
- };
116
- }
117
- });
118
- const SolvimonInvoiceDetails = defineCustomElement(_sfc_main);
119
- const COMPONENT_NAME = getComponentName("invoice-details");
120
- const defineSolvimonInvoiceDetails = () => {
121
- if (!customElements.get(COMPONENT_NAME)) {
122
- customElements.define(COMPONENT_NAME, SolvimonInvoiceDetails);
123
- }
124
- };
125
- export {
126
- COMPONENT_NAME as C,
127
- SolvimonInvoiceDetails as S,
128
- _sfc_main as _,
129
- defineSolvimonInvoiceDetails as d
130
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),o=require("./InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js"),t=require("./Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js"),n=require("./useInvoiceData-DImEH1ca.js"),i=require("./component-Df5eNqYX.js"),r=e.defineComponent({__name:"InvoiceDetails",props:{invoice:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},setup:n=>(i,r)=>n.isLoading?(e.openBlock(),e.createBlock(t._sfc_main,{key:0,variant:"section",class:"min-h-[100px]","data-testid":"invoice-details-skeleton"})):(e.openBlock(),e.createBlock(o._sfc_main,{key:1,invoice:n.invoice},null,8,["invoice"]))}),a=e.defineComponent({__name:"InvoiceDetails.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(o){const t=o,i=n.useInvoiceData(t.configuration.invoiceId);return(o,t)=>{var n;return e.renderSlot(o.$slots,"default",{invoice:null==(n=e.unref(i).data.value)?void 0:n.invoice,isLoading:e.unref(i).isPending.value})}}}),l=e.defineComponent({__name:"InvoiceDetails.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(o){var t;if(!(null==(t=o.configuration)?void 0:t.invoiceId))throw new Error("Missing invoice id");return(t,n)=>{var l,c,p,u;return e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{"custom-element-name":e.unref(s),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=o.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(u=null==(p=o.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,onError:n[0]||(n[0]=e=>t.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(a,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(({invoice:t,isLoading:n})=>[t?(e.openBlock(),e.createBlock(r,{key:0,"is-loading":n,invoice:t,configuration:o.configuration},null,8,["is-loading","invoice","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}}),c=i.defineCustomElement(l),s=i.getComponentName("invoice-details");exports.COMPONENT_NAME=s,exports.SolvimonInvoiceDetails=c,exports._sfc_main=l,exports.defineSolvimonInvoiceDetails=()=>{customElements.get(s)||customElements.define(s,c)};
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./component-Df5eNqYX.js"),i={key:0,class:"flex flex-col gap-2"},o=e.defineComponent({__name:"InvoiceDetailsBlock",props:{invoice:{type:Object}},setup(o){const{$t:n,formatDate:a}=t.useIntl();return(c,d)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{title:e.unref(n)({defaultMessage:"Invoice details",description:"Title for the invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.title"})},{default:e.withCtx(()=>[o.invoice?(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Invoice date",description:"Title for the invoice date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.invoice_date"})),1)]),_:1}),o.invoice.invoice_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.invoice_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Due date",description:"Title for the due date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.due_date"})),1)]),_:1}),o.invoice.due_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.due_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=o;
@@ -1 +0,0 @@
1
- const e=require("vue"),o=require("./useInvoicesList-BZQ9Y0qN.js"),t=require("./component-Df5eNqYX.js"),n=e.defineComponent({__name:"InvoicesList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(t){var n,r;const i=t,a=i.portalObject.customer_id,l=o.useInvoicesList({customerId:a,batchSize:(null==(r=null==(n=i.configuration)?void 0:n.pagination)?void 0:r.batchSize)||15});return(o,t)=>e.renderSlot(o.$slots,"default",{invoices:e.unref(l)})}}),r=e.defineComponent({__name:"InvoicesList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup:r=>(i,l)=>{var s,c,p,m;return e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"custom-element-name":e.unref(a),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(s=r.branding)?void 0:s.colors)?void 0:c.primary,"secondary-color":null==(m=null==(p=r.branding)?void 0:p.colors)?void 0:m.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,onError:l[0]||(l[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:t})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,invoices:t.items.value,"is-loading":t.isPending.value,"has-more-items":t.hasNextBatch.value,onLoadMore:t.fetchMore},null,8,["configuration","invoices","is-loading","has-more-items","onLoadMore"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),i=t.defineCustomElement(r),a=t.getComponentName("customer-overview");exports.COMPONENT_NAME=a,exports.SolvimonInvoicesList=i,exports._sfc_main=r,exports.defineSolvimonInvoicesList=()=>{customElements.get(a)||customElements.define(a,i)};
@@ -1,105 +0,0 @@
1
- import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { u as useInvoicesList, _ as _sfc_main$3 } from "./useInvoicesList-rDvRzMqe.mjs";
3
- import { o as _sfc_main$2, p as defineCustomElement, n as getComponentName } from "./component-BkmcE85U.mjs";
4
- const DEFAULT_BATCH_SIZE = 15;
5
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6
- __name: "InvoicesList.entry.view",
7
- props: {
8
- environment: { type: String },
9
- locale: { type: String },
10
- dateLocale: { type: String },
11
- messages: { type: Object },
12
- showTimezones: { type: Boolean },
13
- primaryColor: { type: String },
14
- secondaryColor: { type: String },
15
- isShadowRoot: { type: Boolean },
16
- experimentalFeatures: { type: Array },
17
- logLevel: { type: String },
18
- onLog: { type: Function },
19
- allowedPortalTypes: { type: Array },
20
- portalObject: { type: Object },
21
- customElementName: { type: String },
22
- branding: { type: Object },
23
- configuration: { type: Object }
24
- },
25
- setup(__props) {
26
- var _a, _b;
27
- const props = __props;
28
- const customerId = props.portalObject.customer_id;
29
- const invoices = useInvoicesList({
30
- customerId,
31
- batchSize: ((_b = (_a = props.configuration) == null ? void 0 : _a.pagination) == null ? void 0 : _b.batchSize) || DEFAULT_BATCH_SIZE
32
- });
33
- return (_ctx, _cache) => {
34
- return renderSlot(_ctx.$slots, "default", { invoices: unref(invoices) });
35
- };
36
- }
37
- });
38
- const _sfc_main = /* @__PURE__ */ defineComponent({
39
- __name: "InvoicesList.entry",
40
- props: {
41
- environment: { type: String },
42
- locale: { type: String },
43
- dateLocale: { type: String },
44
- messages: { type: Object },
45
- showTimezones: { type: Boolean },
46
- primaryColor: { type: String },
47
- secondaryColor: { type: String },
48
- isShadowRoot: { type: Boolean },
49
- experimentalFeatures: { type: Array },
50
- logLevel: { type: String },
51
- onLog: { type: Function },
52
- allowedPortalTypes: { type: Array },
53
- portalObject: { type: Object },
54
- customElementName: { type: String },
55
- branding: { type: Object },
56
- configuration: { type: Object }
57
- },
58
- setup(__props) {
59
- return (_ctx, _cache) => {
60
- var _a, _b, _c, _d;
61
- return openBlock(), createBlock(unref(_sfc_main$2), {
62
- "custom-element-name": unref(COMPONENT_NAME),
63
- environment: __props.environment,
64
- locale: __props.locale,
65
- "portal-object": __props.portalObject,
66
- "allowed-portal-types": ["CUSTOMER"],
67
- "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
68
- "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
69
- "experimental-features": __props.experimentalFeatures,
70
- "log-level": __props.logLevel,
71
- "on-log": __props.onLog,
72
- onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
73
- }, {
74
- default: withCtx(() => [
75
- createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
76
- default: withCtx(({ invoices }) => [
77
- createVNode(_sfc_main$3, {
78
- configuration: __props.configuration,
79
- invoices: invoices.items.value,
80
- "is-loading": invoices.isPending.value,
81
- "has-more-items": invoices.hasNextBatch.value,
82
- onLoadMore: invoices.fetchMore
83
- }, null, 8, ["configuration", "invoices", "is-loading", "has-more-items", "onLoadMore"])
84
- ]),
85
- _: 1
86
- }, 16)
87
- ]),
88
- _: 1
89
- }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
90
- };
91
- }
92
- });
93
- const SolvimonInvoicesList = defineCustomElement(_sfc_main);
94
- const COMPONENT_NAME = getComponentName("customer-overview");
95
- const defineSolvimonInvoicesList = () => {
96
- if (!customElements.get(COMPONENT_NAME)) {
97
- customElements.define(COMPONENT_NAME, SolvimonInvoicesList);
98
- }
99
- };
100
- export {
101
- COMPONENT_NAME as C,
102
- SolvimonInvoicesList as S,
103
- _sfc_main as _,
104
- defineSolvimonInvoicesList as d
105
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js"),o=require("./Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js"),n=require("./useInvoiceData-DImEH1ca.js"),r=require("./component-Df5eNqYX.js"),a=e.defineComponent({__name:"PaymentHistory",props:{customer:{type:Object},paymentAttempts:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},setup:n=>(r,a)=>n.isLoading?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,variant:"section",class:"min-h-[100px]","data-testid":"payment-history-skeleton"})):n.paymentAttempts.length?(e.openBlock(),e.createBlock(t._sfc_main,{key:1,"payment-attempts":n.paymentAttempts,customer:n.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0)}),i=e.defineComponent({__name:"PaymentHistory.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(t){const o=t,r=n.useInvoiceData(o.configuration.invoiceId);return(t,o)=>{var n,a;return e.renderSlot(t.$slots,"default",{invoice:null==(n=e.unref(r).data.value)?void 0:n.invoice,paymentAttempts:null==(a=e.unref(r).data.value)?void 0:a.paymentAttempts.data,isLoading:e.unref(r).isPending.value})}}}),l=e.defineComponent({__name:"PaymentHistory.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(t){var o;if(!(null==(o=t.configuration)?void 0:o.invoiceId))throw new Error("Missing invoice id");return(o,n)=>{var l,p,m,c;return e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{"custom-element-name":e.unref(s),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(l=t.branding)?void 0:l.colors)?void 0:p.primary,"secondary-color":null==(c=null==(m=t.branding)?void 0:m.colors)?void 0:c.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,onError:n[0]||(n[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:o,paymentAttempts:n,isLoading:r})=>[o&&n?(e.openBlock(),e.createBlock(a,{key:0,"is-loading":r,customer:o.customer,"payment-attempts":n,configuration:t.configuration},null,8,["is-loading","customer","payment-attempts","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}}),p=r.defineCustomElement(l),s=r.getComponentName("payment-history");exports.COMPONENT_NAME=s,exports.SolvimonPaymentHistory=p,exports._sfc_main=l,exports.defineSolvimonPaymentHistory=()=>{customElements.get(s)||customElements.define(s,p)};
@@ -1,134 +0,0 @@
1
- import { defineComponent, openBlock, createBlock, createCommentVNode, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { _ as _sfc_main$4 } from "./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs";
3
- import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs";
4
- import { u as useInvoiceData } from "./useInvoiceData-dyvoDwFF.mjs";
5
- import { o as _sfc_main$5, p as defineCustomElement, n as getComponentName } from "./component-BkmcE85U.mjs";
6
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
- __name: "PaymentHistory",
8
- props: {
9
- customer: { type: Object },
10
- paymentAttempts: { type: Array },
11
- isLoading: { type: Boolean },
12
- configuration: { type: Object }
13
- },
14
- setup(__props) {
15
- return (_ctx, _cache) => {
16
- return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
17
- key: 0,
18
- variant: "section",
19
- class: "min-h-[100px]",
20
- "data-testid": "payment-history-skeleton"
21
- })) : __props.paymentAttempts.length ? (openBlock(), createBlock(_sfc_main$4, {
22
- key: 1,
23
- "payment-attempts": __props.paymentAttempts,
24
- customer: __props.customer
25
- }, null, 8, ["payment-attempts", "customer"])) : createCommentVNode("", true);
26
- };
27
- }
28
- });
29
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
30
- __name: "PaymentHistory.entry.view",
31
- props: {
32
- environment: { type: String },
33
- locale: { type: String },
34
- dateLocale: { type: String },
35
- messages: { type: Object },
36
- showTimezones: { type: Boolean },
37
- primaryColor: { type: String },
38
- secondaryColor: { type: String },
39
- isShadowRoot: { type: Boolean },
40
- experimentalFeatures: { type: Array },
41
- logLevel: { type: String },
42
- onLog: { type: Function },
43
- allowedPortalTypes: { type: Array },
44
- portalObject: { type: Object },
45
- customElementName: { type: String },
46
- branding: { type: Object },
47
- configuration: { type: Object }
48
- },
49
- setup(__props) {
50
- const props = __props;
51
- const invoiceData = useInvoiceData(props.configuration.invoiceId);
52
- return (_ctx, _cache) => {
53
- var _a, _b;
54
- return renderSlot(_ctx.$slots, "default", {
55
- invoice: (_a = unref(invoiceData).data.value) == null ? void 0 : _a.invoice,
56
- paymentAttempts: (_b = unref(invoiceData).data.value) == null ? void 0 : _b.paymentAttempts.data,
57
- isLoading: unref(invoiceData).isPending.value
58
- });
59
- };
60
- }
61
- });
62
- const _sfc_main = /* @__PURE__ */ defineComponent({
63
- __name: "PaymentHistory.entry",
64
- props: {
65
- environment: { type: String },
66
- locale: { type: String },
67
- dateLocale: { type: String },
68
- messages: { type: Object },
69
- showTimezones: { type: Boolean },
70
- primaryColor: { type: String },
71
- secondaryColor: { type: String },
72
- isShadowRoot: { type: Boolean },
73
- experimentalFeatures: { type: Array },
74
- logLevel: { type: String },
75
- onLog: { type: Function },
76
- allowedPortalTypes: { type: Array },
77
- portalObject: { type: Object },
78
- customElementName: { type: String },
79
- branding: { type: Object },
80
- configuration: { type: Object }
81
- },
82
- setup(__props) {
83
- var _a;
84
- const props = __props;
85
- if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
86
- throw new Error("Missing invoice id");
87
- }
88
- return (_ctx, _cache) => {
89
- var _a2, _b, _c, _d;
90
- return openBlock(), createBlock(unref(_sfc_main$5), {
91
- "custom-element-name": unref(COMPONENT_NAME),
92
- environment: __props.environment,
93
- locale: __props.locale,
94
- "portal-object": __props.portalObject,
95
- "allowed-portal-types": ["CUSTOMER"],
96
- "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
97
- "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
98
- "experimental-features": __props.experimentalFeatures,
99
- "log-level": __props.logLevel,
100
- "on-log": __props.onLog,
101
- onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
102
- }, {
103
- default: withCtx(() => [
104
- createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
105
- default: withCtx(({ invoice, paymentAttempts, isLoading }) => [
106
- invoice && paymentAttempts ? (openBlock(), createBlock(_sfc_main$2, {
107
- key: 0,
108
- "is-loading": isLoading,
109
- customer: invoice.customer,
110
- "payment-attempts": paymentAttempts,
111
- configuration: __props.configuration
112
- }, null, 8, ["is-loading", "customer", "payment-attempts", "configuration"])) : createCommentVNode("", true)
113
- ]),
114
- _: 1
115
- }, 16)
116
- ]),
117
- _: 1
118
- }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
119
- };
120
- }
121
- });
122
- const SolvimonPaymentHistory = defineCustomElement(_sfc_main);
123
- const COMPONENT_NAME = getComponentName("payment-history");
124
- const defineSolvimonPaymentHistory = () => {
125
- if (!customElements.get(COMPONENT_NAME)) {
126
- customElements.define(COMPONENT_NAME, SolvimonPaymentHistory);
127
- }
128
- };
129
- export {
130
- COMPONENT_NAME as C,
131
- SolvimonPaymentHistory as S,
132
- _sfc_main as _,
133
- defineSolvimonPaymentHistory as d
134
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./component-Df5eNqYX.js"),a={class:"flex flex-col-reverse gap-1"},n={class:"flex justify-between items-center mb-2"},o=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(o){const{$t:r,formatDate:i}=t.useIntl(),s={AUTHORIZED:"green",CANCELLED:"red",ERROR:"red",PENDING:"orange",PENDING_REFUND:"orange",REFUNDED:"orange",CHARGED_BACK:"orange",REFUSED:"red"};return(m,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(t._sfc_main$2),{tag:"h2",variant:"heading-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentAttempts,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:a.id,class:"mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{color:s[a.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatEnum)(a.result)),1)]),_:2},1032,["color"])]),a.payment_method_details?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"payment-method":a.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:a.created_at,format:"dateTime",offsetType:"offsetted",timezone:o.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=o;