@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,7 +1,129 @@
1
- import { C, S, d } from "../../InvoiceDetails.entry.ce-Cnpz8CLJ.mjs";
2
- import "../../component-BkmcE85U.mjs";
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-Bc2hkpTb.mjs";
3
+ import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
4
+ import { u as useInvoiceData } from "../../useInvoiceData-BJwwDur7.mjs";
5
+ import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.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: "sv-invoice-details sv-root sv-component sv-loading min-h-[100px]",
19
+ "data-testid": "invoice-details-skeleton"
20
+ })) : (openBlock(), createBlock(_sfc_main$4, {
21
+ key: 1,
22
+ class: "sv-invoice-details sv-root sv-component",
23
+ invoice: __props.invoice
24
+ }, null, 8, ["invoice"]));
25
+ };
26
+ }
27
+ });
28
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
29
+ __name: "InvoiceDetails.entry.view",
30
+ props: {
31
+ environment: { type: String },
32
+ locale: { type: String },
33
+ dateLocale: { type: String },
34
+ messages: { type: Object },
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
+ cssOverrides: { type: [String, Array] },
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
+ primaryColor: { type: String },
67
+ secondaryColor: { type: String },
68
+ isShadowRoot: { type: Boolean },
69
+ experimentalFeatures: { type: Array },
70
+ logLevel: { type: String },
71
+ onLog: { type: Function },
72
+ allowedPortalTypes: { type: Array },
73
+ portalObject: { type: Object },
74
+ cssOverrides: { type: [String, Array] },
75
+ branding: { type: Object },
76
+ configuration: { type: Object }
77
+ },
78
+ setup(__props) {
79
+ var _a;
80
+ const props = __props;
81
+ if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
82
+ throw new Error("Missing invoice id");
83
+ }
84
+ return (_ctx, _cache) => {
85
+ var _a2, _b, _c, _d;
86
+ return openBlock(), createBlock(unref(_sfc_main$5), {
87
+ "custom-element-name": unref(COMPONENT_NAME),
88
+ environment: __props.environment,
89
+ locale: __props.locale,
90
+ "portal-object": __props.portalObject,
91
+ "allowed-portal-types": ["CUSTOMER"],
92
+ "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
93
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
94
+ "experimental-features": __props.experimentalFeatures,
95
+ "log-level": __props.logLevel,
96
+ "on-log": __props.onLog,
97
+ "css-overrides": __props.cssOverrides,
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", "css-overrides"]);
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
+ };
3
125
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonInvoiceDetails,
6
- d as defineSolvimonInvoiceDetails
126
+ COMPONENT_NAME,
127
+ SolvimonInvoiceDetails,
128
+ defineSolvimonInvoiceDetails
7
129
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonInvoicesList: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonInvoicesList: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonInvoicesList: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../InvoicesList.entry.ce-38iOW5qh.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonInvoicesList=e.SolvimonInvoicesList,exports.defineSolvimonInvoicesList=e.defineSolvimonInvoicesList;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../useInvoicesList-CaBCGs4h.js"),t=require("../../useLoadInitialData-DjwRHcAH.js"),r=require("../../component-BOqPDAVk.js"),n=e.defineComponent({__name:"InvoicesList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(r){var n,i;const a=r,s=a.portalObject.customer_id,l=o.useInvoicesList({customerId:s,batchSize:(null==(i=null==(n=a.configuration)?void 0:n.pagination)?void 0:i.batchSize)||15}),{isLoading:c}=t.useLoadInitialData(l.fetchInitial());return(o,t)=>e.renderSlot(o.$slots,"default",{isLoading:e.unref(c),invoices:e.unref(l)})}}),i=e.defineComponent({__name:"InvoicesList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:t=>(i,a)=>{var l,c,p,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(s),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=t.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(y=null==(p=t.branding)?void 0:p.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:a[0]||(a[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:r,isLoading:n})=>[e.createVNode(o._sfc_main,{configuration:t.configuration,invoices:r.items.value,"is-loading":n,"has-more-items":r.hasNextBatch.value,onLoadMore:r.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","css-overrides"])}}),a=r.defineCustomElement(i),s=r.getComponentName("invoices-list");exports.COMPONENT_NAME=s,exports.SolvimonInvoicesList=a,exports.defineSolvimonInvoicesList=()=>{customElements.get(s)||customElements.define(s,a)};
@@ -1,7 +1,108 @@
1
- import { C, S, d } from "../../InvoicesList.entry.ce-BBaHEtAD.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
+ import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-CFzAxyae.mjs";
3
+ import { u as useLoadInitialData } from "../../useLoadInitialData-5sgImpzc.mjs";
4
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
5
+ const DEFAULT_BATCH_SIZE = 15;
6
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
+ __name: "InvoicesList.entry.view",
8
+ props: {
9
+ environment: { type: String },
10
+ locale: { type: String },
11
+ dateLocale: { type: String },
12
+ messages: { type: Object },
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
+ cssOverrides: { type: [String, Array] },
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
+ const { isLoading } = useLoadInitialData(invoices.fetchInitial());
34
+ return (_ctx, _cache) => {
35
+ return renderSlot(_ctx.$slots, "default", {
36
+ isLoading: unref(isLoading),
37
+ invoices: unref(invoices)
38
+ });
39
+ };
40
+ }
41
+ });
42
+ const _sfc_main = /* @__PURE__ */ defineComponent({
43
+ __name: "InvoicesList.entry",
44
+ props: {
45
+ environment: { type: String },
46
+ locale: { type: String },
47
+ dateLocale: { type: String },
48
+ messages: { type: Object },
49
+ primaryColor: { type: String },
50
+ secondaryColor: { type: String },
51
+ isShadowRoot: { type: Boolean },
52
+ experimentalFeatures: { type: Array },
53
+ logLevel: { type: String },
54
+ onLog: { type: Function },
55
+ allowedPortalTypes: { type: Array },
56
+ portalObject: { type: Object },
57
+ cssOverrides: { type: [String, Array] },
58
+ branding: { type: Object },
59
+ configuration: { type: Object }
60
+ },
61
+ setup(__props) {
62
+ return (_ctx, _cache) => {
63
+ var _a, _b, _c, _d;
64
+ return openBlock(), createBlock(unref(_sfc_main$2), {
65
+ "custom-element-name": unref(COMPONENT_NAME),
66
+ environment: __props.environment,
67
+ locale: __props.locale,
68
+ "portal-object": __props.portalObject,
69
+ "allowed-portal-types": ["CUSTOMER"],
70
+ "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
71
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
72
+ "experimental-features": __props.experimentalFeatures,
73
+ "log-level": __props.logLevel,
74
+ "on-log": __props.onLog,
75
+ "css-overrides": __props.cssOverrides,
76
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
77
+ }, {
78
+ default: withCtx(() => [
79
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
80
+ default: withCtx(({ invoices, isLoading }) => [
81
+ createVNode(_sfc_main$3, {
82
+ configuration: __props.configuration,
83
+ invoices: invoices.items.value,
84
+ "is-loading": isLoading,
85
+ "has-more-items": invoices.hasNextBatch.value,
86
+ onLoadMore: invoices.fetchMore
87
+ }, null, 8, ["configuration", "invoices", "is-loading", "has-more-items", "onLoadMore"])
88
+ ]),
89
+ _: 1
90
+ }, 16)
91
+ ]),
92
+ _: 1
93
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
94
+ };
95
+ }
96
+ });
97
+ const SolvimonInvoicesList = defineCustomElement(_sfc_main);
98
+ const COMPONENT_NAME = getComponentName("invoices-list");
99
+ const defineSolvimonInvoicesList = () => {
100
+ if (!customElements.get(COMPONENT_NAME)) {
101
+ customElements.define(COMPONENT_NAME, SolvimonInvoicesList);
102
+ }
103
+ };
3
104
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonInvoicesList,
6
- d as defineSolvimonInvoicesList
105
+ COMPONENT_NAME,
106
+ SolvimonInvoicesList,
107
+ defineSolvimonInvoicesList
7
108
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonPaymentHistory: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonPaymentHistory: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonPaymentHistory: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentHistory.entry.ce-DDeHMhK_.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentHistory=e.SolvimonPaymentHistory,exports.defineSolvimonPaymentHistory=e.defineSolvimonPaymentHistory;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("../../useInvoiceData-D2jkdmlA.js"),r=require("../../component-BOqPDAVk.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:"sv-payment-history sv-root sv-component sv-loading min-h-[100px]","data-testid":"payment-history-skeleton"})):n.paymentAttempts.length?(e.openBlock(),e.createBlock(t._sfc_main,{key:1,class:"sv-payment-history sv-root sv-component","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},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},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})}}}),s=e.defineComponent({__name:"PaymentHistory.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},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 s,l,c,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(p),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(l=null==(s=t.branding)?void 0:s.colors)?void 0:l.primary,"secondary-color":null==(y=null==(c=t.branding)?void 0:c.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,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","css-overrides"])}}}),l=r.defineCustomElement(s),p=r.getComponentName("payment-history");exports.COMPONENT_NAME=p,exports.SolvimonPaymentHistory=l,exports.defineSolvimonPaymentHistory=()=>{customElements.get(p)||customElements.define(p,l)};
@@ -1,7 +1,133 @@
1
- import { C, S, d } from "../../PaymentHistory.entry.ce-Dw2NiP4l.mjs";
2
- import "../../component-BkmcE85U.mjs";
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-CaMDtHrL.mjs";
3
+ import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
4
+ import { u as useInvoiceData } from "../../useInvoiceData-BJwwDur7.mjs";
5
+ import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.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: "sv-payment-history sv-root sv-component sv-loading min-h-[100px]",
20
+ "data-testid": "payment-history-skeleton"
21
+ })) : __props.paymentAttempts.length ? (openBlock(), createBlock(_sfc_main$4, {
22
+ key: 1,
23
+ class: "sv-payment-history sv-root sv-component",
24
+ "payment-attempts": __props.paymentAttempts,
25
+ customer: __props.customer
26
+ }, null, 8, ["payment-attempts", "customer"])) : createCommentVNode("", true);
27
+ };
28
+ }
29
+ });
30
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
31
+ __name: "PaymentHistory.entry.view",
32
+ props: {
33
+ environment: { type: String },
34
+ locale: { type: String },
35
+ dateLocale: { type: String },
36
+ messages: { type: Object },
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
+ cssOverrides: { type: [String, Array] },
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
+ primaryColor: { type: String },
70
+ secondaryColor: { type: String },
71
+ isShadowRoot: { type: Boolean },
72
+ experimentalFeatures: { type: Array },
73
+ logLevel: { type: String },
74
+ onLog: { type: Function },
75
+ allowedPortalTypes: { type: Array },
76
+ portalObject: { type: Object },
77
+ cssOverrides: { type: [String, Array] },
78
+ branding: { type: Object },
79
+ configuration: { type: Object }
80
+ },
81
+ setup(__props) {
82
+ var _a;
83
+ const props = __props;
84
+ if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
85
+ throw new Error("Missing invoice id");
86
+ }
87
+ return (_ctx, _cache) => {
88
+ var _a2, _b, _c, _d;
89
+ return openBlock(), createBlock(unref(_sfc_main$5), {
90
+ "custom-element-name": unref(COMPONENT_NAME),
91
+ environment: __props.environment,
92
+ locale: __props.locale,
93
+ "portal-object": __props.portalObject,
94
+ "allowed-portal-types": ["CUSTOMER"],
95
+ "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
96
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
97
+ "experimental-features": __props.experimentalFeatures,
98
+ "log-level": __props.logLevel,
99
+ "on-log": __props.onLog,
100
+ "css-overrides": __props.cssOverrides,
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", "css-overrides"]);
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
+ };
3
129
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonPaymentHistory,
6
- d as defineSolvimonPaymentHistory
130
+ COMPONENT_NAME,
131
+ SolvimonPaymentHistory,
132
+ defineSolvimonPaymentHistory
7
133
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonPaymentMethodForm: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonPaymentMethodForm: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonPaymentMethodForm: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentMethodForm.entry.ce-zxeBXZW6.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentMethodForm=e.SolvimonPaymentMethodForm,exports.defineSolvimonPaymentMethodForm=e.defineSolvimonPaymentMethodForm;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-BOqPDAVk.js"),o=require("../../vendor-ui-5pJF5KBP.js"),n=require("../../useLoadInitialData-DjwRHcAH.js"),r=require("../../useCustomer-CUcaeQn_.js"),a=require("../../usePaymentMethodOptions-DYO6xr3-.js"),i=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),s=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DTIY4s7C.js"),l=e.defineComponent({__name:"PaymentMethodForm.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(t){const i=t,s=r.useCustomer({customerId:i.portalObject.customer_id}),l=a.usePaymentMethodOptions(),{isLoading:c}=n.useLoadInitialData((async()=>{var e;const t=await s.get.execute(),n=o.getCustomerCountry(t);await l.get({customerId:t.id,country:n,amount:null==(e=i.configuration)?void 0:e.amount})})());return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(s).customer.value,paymentMethodOptions:e.unref(l),isLoading:e.unref(c)})}}),c=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String}},setup(t){const n={currency:"EUR",quantity:"0"},r=t,{$t:a}=o.useIntl(),l=e.computed(()=>{return"AUTHORIZE"===(null==(e=r.configuration)?void 0:e.variant)?e:{...e,variant:"TOKENIZE"};var e}),c=e.computed(()=>{let e="NL";if(r.countryCode)return e=r.countryCode,e;if(r.customer){const t=o.getCustomerCountry(r.customer);if(t)return e=t,e}return"NL"}),u=e.computed(()=>"AUTHORIZE"===l.value.variant?{paymentMethodOptions:r.paymentMethodOptions,countryCode:c.value,variant:"AUTHORIZE",amount:l.value.amount,context:l.value.context,invoiceId:l.value.invoiceId,successRedirectUrl:l.value.successRedirectUrl,selectedOption:l.value.selectedOption,validateOnSubmit:l.value.validateOnSubmit,forceStorePaymentMethod:l.value.forceStorePaymentMethod}:{paymentMethodOptions:r.paymentMethodOptions,customerId:r.customer.id,countryCode:c.value,variant:"TOKENIZE",amount:l.value.amount??n,invoiceId:l.value.invoiceId,successRedirectUrl:l.value.successRedirectUrl,selectedOption:l.value.selectedOption,validateOnSubmit:l.value.validateOnSubmit,forceStorePaymentMethod:l.value.forceStorePaymentMethod});return(n,r)=>t.isLoading?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]","data-testid":"payment-method-form-skeleton"})):(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{key:1,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(a)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createVNode(s._sfc_main,e.mergeProps({class:"sv-payment-method-form__integration"},u.value),null,16)]),_:1},8,["title"]))}}),u=e.defineComponent({__name:"PaymentMethodForm.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(o){const n=o;return(r,a)=>{var i,s,u,m;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(p),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(i=o.branding)?void 0:i.colors)?void 0:s.primary,"secondary-color":null==(m=null==(u=o.branding)?void 0:u.colors)?void 0:m.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:a[0]||(a[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(l,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(({customer:t,paymentMethodOptions:n,isLoading:r})=>[t?(e.openBlock(),e.createBlock(c,{key:0,customer:t,"payment-method-options":n.paymentMethodOptions.value,configuration:o.configuration,"is-loading":r},null,8,["customer","payment-method-options","configuration","is-loading"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),m=t.defineCustomElement(u),p=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=p,exports.SolvimonPaymentMethodForm=m,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(p)||customElements.define(p,m)};