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

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-D1ZaHCTm.js +1 -0
  17. package/dist/PaymentIntegrationForm-Dmmhqqn1.mjs +4 -0
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CSPZRvMV.js +1 -0
  19. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Do2KIVKH.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,219 @@
1
- import { C, S, d } from "../../PaymentMethodForm.entry.ce-f4cFExKc.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, renderSlot, unref, computed, openBlock, createBlock, withCtx, createVNode, mergeProps, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
+ import { _ as _sfc_main$6, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
3
+ import { v as getCustomerCountry, u as useIntl, b as _sfc_main$4 } from "../../vendor-ui-C0K3osvz.mjs";
4
+ import { u as useLoadInitialData } from "../../useLoadInitialData-5sgImpzc.mjs";
5
+ import { u as useCustomer } from "../../useCustomer-Ba9WRtuT.mjs";
6
+ import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-C2k4npCQ.mjs";
7
+ import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
8
+ import { _ as _sfc_main$5 } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Do2KIVKH.mjs";
9
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10
+ __name: "PaymentMethodForm.entry.view",
11
+ props: {
12
+ environment: { type: String },
13
+ locale: { type: String },
14
+ dateLocale: { type: String },
15
+ messages: { type: Object },
16
+ primaryColor: { type: String },
17
+ secondaryColor: { type: String },
18
+ isShadowRoot: { type: Boolean },
19
+ experimentalFeatures: { type: Array },
20
+ logLevel: { type: String },
21
+ onLog: { type: Function },
22
+ allowedPortalTypes: { type: Array },
23
+ portalObject: { type: Object },
24
+ cssOverrides: { type: [String, Array] },
25
+ branding: { type: Object },
26
+ configuration: { type: Object },
27
+ countryCode: { type: String }
28
+ },
29
+ setup(__props) {
30
+ const props = __props;
31
+ const customer = useCustomer({ customerId: props.portalObject.customer_id });
32
+ const paymentMethodOptions = usePaymentMethodOptions();
33
+ const initialLoad = async () => {
34
+ var _a;
35
+ const customerResponse = await customer.get.execute();
36
+ const country = getCustomerCountry(customerResponse);
37
+ await paymentMethodOptions.get({
38
+ customerId: customerResponse.id,
39
+ country,
40
+ amount: (_a = props.configuration) == null ? void 0 : _a.amount
41
+ });
42
+ };
43
+ const { isLoading } = useLoadInitialData(initialLoad());
44
+ return (_ctx, _cache) => {
45
+ return renderSlot(_ctx.$slots, "default", {
46
+ customer: unref(customer).customer.value,
47
+ paymentMethodOptions: unref(paymentMethodOptions),
48
+ isLoading: unref(isLoading)
49
+ });
50
+ };
51
+ }
52
+ });
53
+ const FALLBACK_COUNTRY_CODE = "NL";
54
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
55
+ __name: "PaymentMethodForm",
56
+ props: {
57
+ customer: { type: Object },
58
+ paymentMethodOptions: { type: Array },
59
+ configuration: { type: Object },
60
+ isLoading: { type: Boolean, default: false },
61
+ countryCode: { type: String }
62
+ },
63
+ setup(__props) {
64
+ const DEFAULT_AMOUNT = {
65
+ currency: "EUR",
66
+ quantity: "0"
67
+ };
68
+ const props = __props;
69
+ const { $t } = useIntl();
70
+ const resolveConfiguration = (configuration2) => {
71
+ if ((configuration2 == null ? void 0 : configuration2.variant) === "AUTHORIZE") {
72
+ return configuration2;
73
+ }
74
+ return {
75
+ ...configuration2,
76
+ variant: "TOKENIZE"
77
+ };
78
+ };
79
+ const configuration = computed(
80
+ () => resolveConfiguration(props.configuration)
81
+ );
82
+ const countryCode = computed(() => {
83
+ let result = FALLBACK_COUNTRY_CODE;
84
+ if (props.countryCode) {
85
+ result = props.countryCode;
86
+ return result;
87
+ }
88
+ if (props.customer) {
89
+ const country = getCustomerCountry(props.customer);
90
+ if (country) {
91
+ result = country;
92
+ return result;
93
+ }
94
+ }
95
+ return FALLBACK_COUNTRY_CODE;
96
+ });
97
+ const paymentIntegrationProps = computed(() => {
98
+ if (configuration.value.variant === "AUTHORIZE") {
99
+ return {
100
+ paymentMethodOptions: props.paymentMethodOptions,
101
+ countryCode: countryCode.value,
102
+ variant: "AUTHORIZE",
103
+ amount: configuration.value.amount,
104
+ context: configuration.value.context,
105
+ invoiceId: configuration.value.invoiceId,
106
+ successRedirectUrl: configuration.value.successRedirectUrl,
107
+ selectedOption: configuration.value.selectedOption,
108
+ validateOnSubmit: configuration.value.validateOnSubmit,
109
+ forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
110
+ };
111
+ }
112
+ return {
113
+ paymentMethodOptions: props.paymentMethodOptions,
114
+ customerId: props.customer.id,
115
+ countryCode: countryCode.value,
116
+ variant: "TOKENIZE",
117
+ amount: configuration.value.amount ?? DEFAULT_AMOUNT,
118
+ invoiceId: configuration.value.invoiceId,
119
+ successRedirectUrl: configuration.value.successRedirectUrl,
120
+ selectedOption: configuration.value.selectedOption,
121
+ validateOnSubmit: configuration.value.validateOnSubmit,
122
+ forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
123
+ };
124
+ });
125
+ return (_ctx, _cache) => {
126
+ return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
127
+ key: 0,
128
+ variant: "section",
129
+ class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]",
130
+ "data-testid": "payment-method-form-skeleton"
131
+ })) : (openBlock(), createBlock(unref(_sfc_main$4), {
132
+ key: 1,
133
+ class: "sv-payment-method-form sv-root sv-component",
134
+ "no-border": "",
135
+ "no-spacing": "",
136
+ "content-background": "none",
137
+ title: unref($t)({
138
+ defaultMessage: "Available payment methods",
139
+ description: "Title of the available payment methods form",
140
+ id: "components.payment_method_form.section_title"
141
+ })
142
+ }, {
143
+ default: withCtx(() => [
144
+ createVNode(_sfc_main$5, mergeProps({ class: "sv-payment-method-form__integration" }, paymentIntegrationProps.value), null, 16)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["title"]));
148
+ };
149
+ }
150
+ });
151
+ const _sfc_main = /* @__PURE__ */ defineComponent({
152
+ __name: "PaymentMethodForm.entry",
153
+ props: {
154
+ environment: { type: String },
155
+ locale: { type: String },
156
+ dateLocale: { type: String },
157
+ messages: { type: Object },
158
+ primaryColor: { type: String },
159
+ secondaryColor: { type: String },
160
+ isShadowRoot: { type: Boolean },
161
+ experimentalFeatures: { type: Array },
162
+ logLevel: { type: String },
163
+ onLog: { type: Function },
164
+ allowedPortalTypes: { type: Array },
165
+ portalObject: { type: Object },
166
+ cssOverrides: { type: [String, Array] },
167
+ branding: { type: Object },
168
+ configuration: { type: Object },
169
+ countryCode: { type: String }
170
+ },
171
+ setup(__props) {
172
+ const props = __props;
173
+ return (_ctx, _cache) => {
174
+ var _a, _b, _c, _d;
175
+ return openBlock(), createBlock(unref(_sfc_main$6), {
176
+ "custom-element-name": unref(COMPONENT_NAME),
177
+ environment: __props.environment,
178
+ locale: __props.locale,
179
+ "portal-object": __props.portalObject,
180
+ "allowed-portal-types": ["CUSTOMER"],
181
+ "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
182
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
183
+ "experimental-features": __props.experimentalFeatures,
184
+ "log-level": __props.logLevel,
185
+ "on-log": __props.onLog,
186
+ "css-overrides": __props.cssOverrides,
187
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
188
+ }, {
189
+ default: withCtx(() => [
190
+ createVNode(_sfc_main$2, normalizeProps(guardReactiveProps(props)), {
191
+ default: withCtx(({ customer, paymentMethodOptions, isLoading }) => [
192
+ customer ? (openBlock(), createBlock(_sfc_main$1, {
193
+ key: 0,
194
+ customer,
195
+ "payment-method-options": paymentMethodOptions.paymentMethodOptions.value,
196
+ configuration: __props.configuration,
197
+ "is-loading": isLoading
198
+ }, null, 8, ["customer", "payment-method-options", "configuration", "is-loading"])) : createCommentVNode("", true)
199
+ ]),
200
+ _: 1
201
+ }, 16)
202
+ ]),
203
+ _: 1
204
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
205
+ };
206
+ }
207
+ });
208
+ const SolvimonPaymentMethodForm = defineCustomElement(_sfc_main);
209
+ const COMPONENT_NAME = getComponentName("payment-method-form");
210
+ const defineSolvimonPaymentMethodForm = () => {
211
+ if (!customElements.get(COMPONENT_NAME)) {
212
+ customElements.define(COMPONENT_NAME, SolvimonPaymentMethodForm);
213
+ }
214
+ };
3
215
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonPaymentMethodForm,
6
- d as defineSolvimonPaymentMethodForm
216
+ COMPONENT_NAME,
217
+ SolvimonPaymentMethodForm,
218
+ defineSolvimonPaymentMethodForm
7
219
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonSubscriptionSchedules: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonSubscriptionSchedules: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonSubscriptionSchedules: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../SubscriptionSchedules.entry.ce-B4T_yQC1.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonSubscriptionSchedules=e.SolvimonSubscriptionSchedules,exports.defineSolvimonSubscriptionSchedules=e.defineSolvimonSubscriptionSchedules;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-BOqPDAVk.js"),n=require("../../vendor-ui-5pJF5KBP.js"),r=require("../../useService-Bb9r_sOQ.js"),o=require("../../subscriptions-jelITJcX.js"),i=require("../../useLoadInitialData-DjwRHcAH.js"),s=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:r}=n.useIntl();return(o,i)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{class:"sv-subscription-schedules sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(r)({defaultMessage:"Schedules",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(n.PricingPlanSchedules),{class:"sv-subscription-schedules__list",schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});const a=e.defineComponent({__name:"SubscriptionSchedules.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 n=t,{subscription:s,withPlanData:a,get:l}=function({subscriptionId:e}){const{getSubscription:t}=o.createSubscriptionsService(),{data:n,execute:i,apiStatus:s,error:a,isPending:l}=r.useService({service:()=>t({id:e,expanded:!0})});return{subscription:n,withPlanData:e=>e.pricing_plan_schedule_infos.map(e=>({schedule:e.pricing_plan_schedule,selectedPricingPlan:e.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:e.pricing_plan_version})),apiStatus:s,error:a,get:i,isPending:l}}({subscriptionId:n.configuration.subscriptionId}),{isLoading:c}=i.useLoadInitialData(l());return(t,n)=>e.renderSlot(t.$slots,"default",{schedulesData:e.unref(s)?e.unref(a)(e.unref(s)):void 0,isLoading:e.unref(c)})}}),l=e.defineComponent({__name:"SubscriptionSchedules.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(n){const r=n;return(o,i)=>{var l,c,u,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(p),environment:n.environment,locale:n.locale,"portal-object":n.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=n.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(d=null==(u=n.branding)?void 0:u.colors)?void 0:d.secondary,"experimental-features":n.experimentalFeatures,"log-level":n.logLevel,"on-log":n.onLog,"css-overrides":n.cssOverrides,onError:i[0]||(i[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(a,e.normalizeProps(e.guardReactiveProps(r)),{default:e.withCtx(({schedulesData:t,isLoading:r})=>[t?(e.openBlock(),e.createBlock(s,{key:0,"schedules-data":t,"is-loading":r,configuration:n.configuration},null,8,["schedules-data","is-loading","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"])}}}),c=t.defineCustomElement(l),p=t.getComponentName("subscription-schedules");exports.COMPONENT_NAME=p,exports.SolvimonSubscriptionSchedules=c,exports.defineSolvimonSubscriptionSchedules=()=>{customElements.get(p)||customElements.define(p,c)};
@@ -1,7 +1,156 @@
1
- import { C, S, d } from "../../SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
+ import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
3
+ import { u as useIntl, b as _sfc_main$3, P as PricingPlanSchedules } from "../../vendor-ui-C0K3osvz.mjs";
4
+ import { u as useService } from "../../useService-BsSEI8DZ.mjs";
5
+ import { c as createSubscriptionsService } from "../../subscriptions-ClGIr_aS.mjs";
6
+ import { u as useLoadInitialData } from "../../useLoadInitialData-5sgImpzc.mjs";
7
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8
+ __name: "SubscriptionSchedules",
9
+ props: {
10
+ schedulesData: { type: Array },
11
+ configuration: { type: Object },
12
+ isLoading: { type: Boolean }
13
+ },
14
+ setup(__props) {
15
+ const { $t } = useIntl();
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createBlock(unref(_sfc_main$3), {
18
+ class: "sv-subscription-schedules sv-root sv-component",
19
+ "no-border": "",
20
+ "no-spacing": "",
21
+ "content-background": "none",
22
+ title: unref($t)({
23
+ defaultMessage: "Schedules",
24
+ description: "Invoices list title",
25
+ id: "invoices_list.title"
26
+ })
27
+ }, {
28
+ default: withCtx(() => [
29
+ createVNode(unref(PricingPlanSchedules), {
30
+ class: "sv-subscription-schedules__list",
31
+ schedules: __props.schedulesData
32
+ }, null, 8, ["schedules"])
33
+ ]),
34
+ _: 1
35
+ }, 8, ["title"]);
36
+ };
37
+ }
38
+ });
39
+ function useSubscription({
40
+ subscriptionId
41
+ }) {
42
+ const { getSubscription } = createSubscriptionsService();
43
+ const { data, execute: get, apiStatus, error, isPending } = useService({
44
+ service: () => getSubscription({ id: subscriptionId, expanded: true })
45
+ });
46
+ const withPlanData = (subscription) => {
47
+ return subscription.pricing_plan_schedule_infos.map((schedule) => {
48
+ return {
49
+ schedule: schedule.pricing_plan_schedule,
50
+ selectedPricingPlan: schedule.pricing_plan_version.pricing_plan,
51
+ selectedPricingPlanVersion: schedule.pricing_plan_version
52
+ };
53
+ });
54
+ };
55
+ return { subscription: data, withPlanData, apiStatus, error, get, isPending };
56
+ }
57
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
58
+ __name: "SubscriptionSchedules.entry.view",
59
+ props: {
60
+ environment: { type: String },
61
+ locale: { type: String },
62
+ dateLocale: { type: String },
63
+ messages: { type: Object },
64
+ primaryColor: { type: String },
65
+ secondaryColor: { type: String },
66
+ isShadowRoot: { type: Boolean },
67
+ experimentalFeatures: { type: Array },
68
+ logLevel: { type: String },
69
+ onLog: { type: Function },
70
+ allowedPortalTypes: { type: Array },
71
+ portalObject: { type: Object },
72
+ cssOverrides: { type: [String, Array] },
73
+ branding: { type: Object },
74
+ configuration: { type: Object }
75
+ },
76
+ setup(__props) {
77
+ const props = __props;
78
+ const { subscription, withPlanData, get } = useSubscription({
79
+ subscriptionId: props.configuration.subscriptionId
80
+ });
81
+ const { isLoading } = useLoadInitialData(get());
82
+ return (_ctx, _cache) => {
83
+ return renderSlot(_ctx.$slots, "default", {
84
+ schedulesData: unref(subscription) ? unref(withPlanData)(unref(subscription)) : void 0,
85
+ isLoading: unref(isLoading)
86
+ });
87
+ };
88
+ }
89
+ });
90
+ const _sfc_main = /* @__PURE__ */ defineComponent({
91
+ __name: "SubscriptionSchedules.entry",
92
+ props: {
93
+ environment: { type: String },
94
+ locale: { type: String },
95
+ dateLocale: { type: String },
96
+ messages: { type: Object },
97
+ primaryColor: { type: String },
98
+ secondaryColor: { type: String },
99
+ isShadowRoot: { type: Boolean },
100
+ experimentalFeatures: { type: Array },
101
+ logLevel: { type: String },
102
+ onLog: { type: Function },
103
+ allowedPortalTypes: { type: Array },
104
+ portalObject: { type: Object },
105
+ cssOverrides: { type: [String, Array] },
106
+ branding: { type: Object },
107
+ configuration: { type: Object }
108
+ },
109
+ setup(__props) {
110
+ const props = __props;
111
+ return (_ctx, _cache) => {
112
+ var _a, _b, _c, _d;
113
+ return openBlock(), createBlock(unref(_sfc_main$4), {
114
+ "custom-element-name": unref(COMPONENT_NAME),
115
+ environment: __props.environment,
116
+ locale: __props.locale,
117
+ "portal-object": __props.portalObject,
118
+ "allowed-portal-types": ["CUSTOMER"],
119
+ "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
120
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
121
+ "experimental-features": __props.experimentalFeatures,
122
+ "log-level": __props.logLevel,
123
+ "on-log": __props.onLog,
124
+ "css-overrides": __props.cssOverrides,
125
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
126
+ }, {
127
+ default: withCtx(() => [
128
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(props)), {
129
+ default: withCtx(({ schedulesData, isLoading }) => [
130
+ schedulesData ? (openBlock(), createBlock(_sfc_main$2, {
131
+ key: 0,
132
+ "schedules-data": schedulesData,
133
+ "is-loading": isLoading,
134
+ configuration: __props.configuration
135
+ }, null, 8, ["schedules-data", "is-loading", "configuration"])) : createCommentVNode("", true)
136
+ ]),
137
+ _: 1
138
+ }, 16)
139
+ ]),
140
+ _: 1
141
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
142
+ };
143
+ }
144
+ });
145
+ const SolvimonSubscriptionSchedules = defineCustomElement(_sfc_main);
146
+ const COMPONENT_NAME = getComponentName("subscription-schedules");
147
+ const defineSolvimonSubscriptionSchedules = () => {
148
+ if (!customElements.get(COMPONENT_NAME)) {
149
+ customElements.define(COMPONENT_NAME, SolvimonSubscriptionSchedules);
150
+ }
151
+ };
3
152
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonSubscriptionSchedules,
6
- d as defineSolvimonSubscriptionSchedules
153
+ COMPONENT_NAME,
154
+ SolvimonSubscriptionSchedules,
155
+ defineSolvimonSubscriptionSchedules
7
156
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonSubscriptionsList: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonSubscriptionsList: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonSubscriptionsList: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../SubscriptionsList.entry.ce-B5SJCQW0.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=i.COMPONENT_NAME,exports.SolvimonSubscriptionsList=i.SolvimonSubscriptionsList,exports.defineSolvimonSubscriptionsList=i.defineSolvimonSubscriptionsList;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js"),t=require("../../component-BOqPDAVk.js"),r=require("../../useCustomer-CUcaeQn_.js"),n=require("../../useLoadInitialData-DjwRHcAH.js"),s=require("../../usePaymentMethods-ryN_YohI.js"),i=e.defineComponent({__name:"SubscriptionsList.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(i){const l=i.portalObject.customer_id,a=r.useCustomer({customerId:l}),p=o.useSubscriptionsList({customerId:l}),u=s.usePaymentMethods({customerId:l}),{isLoading:m}=n.useLoadInitialData(a.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,s,l,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(n=i.branding)?void 0:n.colors)?void 0:s.primary,"secondary-color":null==(d=null==(l=i.branding)?void 0:l.colors)?void 0:d.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,"css-overrides":i.cssOverrides,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(a),subscriptions:e.unref(p).items,paymentMethods:e.unref(u).items,isLoading:e.unref(m),loadMore:e.unref(p).fetchMore})]),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=e.defineComponent({__name:"SubscriptionsList.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:r=>(n,s)=>{var l,a,p,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(l=r.branding)?void 0:l.colors)?void 0:a.primary,"secondary-color":null==(u=null==(p=r.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,"css-overrides":r.cssOverrides,onError:s[0]||(s[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,subscriptions:n,paymentMethods:s,isLoading:i,loadMore:l})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":s.value,"is-loading":i,onLoadMore:l},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","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=t.defineCustomElement(l),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=a,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,a)};
@@ -1,7 +1,134 @@
1
- import { C, S, d } from "../../SubscriptionsList.entry.ce-cNYuQZZj.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
+ import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs";
3
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-Djrf1L-Z.mjs";
4
+ import { u as useCustomer } from "../../useCustomer-Ba9WRtuT.mjs";
5
+ import { u as useLoadInitialData } from "../../useLoadInitialData-5sgImpzc.mjs";
6
+ import { u as usePaymentMethods } from "../../usePaymentMethods-CRWbH48K.mjs";
7
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8
+ __name: "SubscriptionsList.entry.view",
9
+ props: {
10
+ environment: { type: String },
11
+ locale: { type: String },
12
+ dateLocale: { type: String },
13
+ messages: { type: Object },
14
+ primaryColor: { type: String },
15
+ secondaryColor: { type: String },
16
+ isShadowRoot: { type: Boolean },
17
+ experimentalFeatures: { type: Array },
18
+ logLevel: { type: String },
19
+ onLog: { type: Function },
20
+ allowedPortalTypes: { type: Array },
21
+ portalObject: { type: Object },
22
+ cssOverrides: { type: [String, Array] },
23
+ branding: { type: Object },
24
+ configuration: { type: Object }
25
+ },
26
+ setup(__props) {
27
+ const props = __props;
28
+ const customerId = props.portalObject.customer_id;
29
+ const customer = useCustomer({ customerId });
30
+ const subscriptions = useSubscriptionsList({ customerId });
31
+ const paymentMethods = usePaymentMethods({ customerId });
32
+ const { isLoading } = useLoadInitialData(
33
+ customer.get.execute(),
34
+ subscriptions.fetchInitial(),
35
+ paymentMethods.fetchAll()
36
+ );
37
+ return (_ctx, _cache) => {
38
+ var _a, _b, _c, _d;
39
+ return openBlock(), createBlock(unref(_sfc_main$2), {
40
+ "custom-element-name": unref(COMPONENT_NAME),
41
+ environment: __props.environment,
42
+ locale: __props.locale,
43
+ "portal-object": __props.portalObject,
44
+ "allowed-portal-types": ["CUSTOMER"],
45
+ "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
46
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
47
+ "experimental-features": __props.experimentalFeatures,
48
+ "log-level": __props.logLevel,
49
+ "on-log": __props.onLog,
50
+ "css-overrides": __props.cssOverrides,
51
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
52
+ }, {
53
+ default: withCtx(() => [
54
+ renderSlot(_ctx.$slots, "default", {
55
+ customer: unref(customer),
56
+ subscriptions: unref(subscriptions).items,
57
+ paymentMethods: unref(paymentMethods).items,
58
+ isLoading: unref(isLoading),
59
+ loadMore: unref(subscriptions).fetchMore
60
+ })
61
+ ]),
62
+ _: 3
63
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
64
+ };
65
+ }
66
+ });
67
+ const _sfc_main = /* @__PURE__ */ defineComponent({
68
+ __name: "SubscriptionsList.entry",
69
+ props: {
70
+ environment: { type: String },
71
+ locale: { type: String },
72
+ dateLocale: { type: String },
73
+ messages: { type: Object },
74
+ primaryColor: { type: String },
75
+ secondaryColor: { type: String },
76
+ isShadowRoot: { type: Boolean },
77
+ experimentalFeatures: { type: Array },
78
+ logLevel: { type: String },
79
+ onLog: { type: Function },
80
+ allowedPortalTypes: { type: Array },
81
+ portalObject: { type: Object },
82
+ cssOverrides: { type: [String, Array] },
83
+ branding: { type: Object },
84
+ configuration: { type: Object }
85
+ },
86
+ setup(__props) {
87
+ return (_ctx, _cache) => {
88
+ var _a, _b, _c, _d;
89
+ return openBlock(), createBlock(unref(_sfc_main$2), {
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 = (_a = __props.branding) == null ? void 0 : _a.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(({ customer, subscriptions, paymentMethods, isLoading, loadMore }) => [
106
+ createVNode(_sfc_main$3, {
107
+ configuration: __props.configuration,
108
+ customer: customer.customer.value,
109
+ subscriptions: subscriptions.value,
110
+ "payment-methods": paymentMethods.value,
111
+ "is-loading": isLoading,
112
+ onLoadMore: loadMore
113
+ }, null, 8, ["configuration", "customer", "subscriptions", "payment-methods", "is-loading", "onLoadMore"])
114
+ ]),
115
+ _: 1
116
+ }, 16)
117
+ ]),
118
+ _: 1
119
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
120
+ };
121
+ }
122
+ });
123
+ const SolvimonSubscriptionsList = defineCustomElement(_sfc_main);
124
+ const COMPONENT_NAME = getComponentName("subscriptions-list");
125
+ const defineSolvimonSubscriptionsList = () => {
126
+ if (!customElements.get(COMPONENT_NAME)) {
127
+ customElements.define(COMPONENT_NAME, SolvimonSubscriptionsList);
128
+ }
129
+ };
3
130
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonSubscriptionsList,
6
- d as defineSolvimonSubscriptionsList
131
+ COMPONENT_NAME,
132
+ SolvimonSubscriptionsList,
133
+ defineSolvimonSubscriptionsList
7
134
  };
@@ -0,0 +1,3 @@
1
+ export declare const SolvimonWalletBalances: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
+ export declare const COMPONENT_NAME: string;
3
+ export declare const defineSolvimonWalletBalances: () => void;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../useWalletBalanceItems-CpZ1NWPr.js"),l=require("../../useLoadInitialData-DjwRHcAH.js"),r=require("../../component-BOqPDAVk.js"),o=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup:t=>(l,r)=>(e.openBlock(),e.createBlock(a._sfc_main,{class:"sv-wallet-balances sv-root sv-component","has-error":t.hasError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances},null,8,["has-error","is-loading","wallet-balances"]))}),n=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{type:Object},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},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const r=t.portalObject.customer_id,o=a.useCustomerWalletBalances({customerId:r}),n=a.useWalletBalanceItems(o.walletBalances),{isLoading:s}=l.useLoadInitialData(o.fetch());return(t,a)=>e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(o),walletBalanceItems:e.unref(n),isLoading:e.unref(s)})}}),s=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{type:Object},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},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:a=>(l,s)=>{var i,p,m,u;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(c),environment:a.environment,locale:a.locale,"portal-object":a.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(i=a.branding)?void 0:i.colors)?void 0:p.primary,"secondary-color":null==(u=null==(m=a.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":a.experimentalFeatures,"log-level":a.logLevel,"on-log":a.onLog,"css-overrides":a.cssOverrides,onError:s[0]||(s[0]=e=>l.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(l.$props)),{default:e.withCtx(({customerWalletBalances:a,walletBalanceItems:l,isLoading:r})=>[e.createVNode(o,{"has-error":a.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":r,"wallet-balances":l},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),i=r.defineCustomElement(s),c=r.getComponentName("wallet-balances");exports.COMPONENT_NAME=c,exports.SolvimonWalletBalances=i,exports.defineSolvimonWalletBalances=()=>{customElements.get(c)||customElements.define(c,i)};