@solvimon/solvimon-web 0.1.0-alpha.6 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiStatus-CyNDp_op.mjs +9 -0
- package/dist/ApiStatus-oqvUEWJx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +4 -4
- package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +11 -11
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +2 -2
- package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
- package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +5 -5
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
- package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
- package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs +910 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -30
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +20 -20
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/adyenLoader-CEH4A2b2.js +1 -0
- package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
- package/dist/component-C2Gc-wsE.js +1 -0
- package/dist/component-CM9g6tbD.mjs +804 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +14 -14
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +28 -32
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +42 -75
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -34
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -10
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/customer-C_Hz_npf.js +1 -0
- package/dist/customer-TIi7iZFw.mjs +32 -0
- package/dist/en-US-CBoPxQwX.mjs +199 -0
- package/dist/en-US-DJq-9dD8.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -1
- package/dist/{invoices-C7BHqB0g.mjs → invoices-BuVOuTOm.mjs} +2 -1
- package/dist/invoices-DbvwXAsm.js +1 -0
- package/dist/nl-NL-BB7KbK-h.mjs +181 -0
- package/dist/nl-NL-CtU1Lg2F.js +1 -0
- package/dist/paymentMethods-B4AYGf0K.js +1 -0
- package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-Di32oJ39.mjs} +2 -1
- package/dist/{payments-NTHUh5je.mjs → payments-C5fD1PXB.mjs} +1 -1
- package/dist/{payments-B8W0W6wZ.js → payments-DeutKq9x.js} +1 -1
- package/dist/{registry-DgRnFEVF.mjs → registry-BLwMl1bK.mjs} +6 -5
- package/dist/registry-CMSmkLcy.js +1 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +589 -857
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
- package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +81 -57
- package/dist/solvimon-web.css +1 -1
- package/dist/source-DKDKBlUm.mjs +179 -0
- package/dist/source-dkMNFWDc.js +1 -0
- package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-mOgjjzUi.mjs} +2 -1
- package/dist/subscriptions-wdMADcQZ.js +1 -0
- package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
- package/dist/useCustomer-DanZzn-l.js +1 -0
- package/dist/useCustomer-cbhDyWJL.mjs +25 -0
- package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
- package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -4
- package/dist/useInvoiceData-CxxHa5R2.js +1 -0
- package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
- package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-BQQxcPdz.mjs} +22 -22
- package/dist/useInvoicesList-CtJqmblZ.js +1 -0
- package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
- package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
- package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
- package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
- package/dist/usePayments-B13S_yai.js +1 -0
- package/dist/usePayments-D4uGKBsV.mjs +36 -0
- package/dist/usePortal-DJDJNLbo.mjs +12 -0
- package/dist/usePortal-DWJEVkTj.js +1 -0
- package/dist/useService-9fCKPTmu.js +1 -0
- package/dist/useService-BuWWE5ND.mjs +68 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/{useWalletBalanceItems-DreHuOra.mjs → useWalletBalanceItems-B53Gkjro.mjs} +8 -7
- package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
- package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
- package/package.json +30 -17
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
- package/dist/ContentWithAsideLayout-BZJPhvLh.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DI3AxwdD.mjs +0 -58733
- package/dist/component-yWF07boR.js +0 -1
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/invoices-CjBHfDXp.js +0 -1
- package/dist/paymentMethods-A-5SBmy1.js +0 -1
- package/dist/registry-SwmYGFn7.js +0 -1
- package/dist/sprite-DZD704h3-CCc3Mz1x.js +0 -1
- package/dist/sprite-DZD704h3-DZD704h3.mjs +0 -4
- package/dist/subscriptions-DSi93KpN.js +0 -1
- package/dist/useCustomer-DkrBNt5f.mjs +0 -45
- package/dist/useCustomer-fK-w7ifj.js +0 -1
- package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
- package/dist/useInvoiceData-CS7hLTea.js +0 -1
- package/dist/useInvoicesList-CIFGVsDj.js +0 -1
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
import { defineComponent, renderSlot, unref, computed, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createVNode, withCtx, createTextVNode, toDisplayString, withKeys, normalizeClass, createCommentVNode, createBlock, normalizeProps, guardReactiveProps } from "vue";
|
|
1
|
+
import { defineComponent, renderSlot, unref, computed, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createVNode, withCtx, createTextVNode, toDisplayString, withKeys, normalizeClass, createCommentVNode, createBlock, defineAsyncComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { _ as _sfc_main$5 } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs";
|
|
9
|
-
import { _ as _sfc_main$6 } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs";
|
|
10
|
-
function useInvoice({ invoiceId }) {
|
|
11
|
-
const { getInvoice, getInvoicePdf: downloadInvoicePdf } = createInvoicesService();
|
|
12
|
-
const service = () => getInvoice(invoiceId);
|
|
13
|
-
const {
|
|
14
|
-
data,
|
|
15
|
-
execute: get,
|
|
16
|
-
apiStatus,
|
|
17
|
-
error,
|
|
18
|
-
isPending
|
|
19
|
-
} = useService({
|
|
20
|
-
service
|
|
21
|
-
});
|
|
22
|
-
return {
|
|
23
|
-
invoice: data,
|
|
24
|
-
downloadInvoicePdf,
|
|
25
|
-
apiStatus,
|
|
26
|
-
error,
|
|
27
|
-
get,
|
|
28
|
-
isPending
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function usePayments() {
|
|
32
|
-
const { getPayments } = createPaymentsService();
|
|
33
|
-
const { data, execute: get, error, apiStatus, isPending } = useService({
|
|
34
|
-
service: getPayments,
|
|
35
|
-
isCollection: true
|
|
36
|
-
});
|
|
37
|
-
return { payments: data, get, error, apiStatus, isPending };
|
|
38
|
-
}
|
|
3
|
+
import { u as useInvoice, a as usePayments } from "../../usePayments-D4uGKBsV.mjs";
|
|
4
|
+
import { _ as _sfc_main$g, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
5
|
+
import { u as useIntl, C as useToggleList, D as _sfc_main$5, _ as _sfc_main$6, I as InvoiceTable, E as _sfc_main$7, F as _sfc_main$8, t as _sfc_main$9, b as _sfc_main$a, G as _sfc_main$b, x as _sfc_main$c, y as _sfc_main$d, c as _sfc_main$f } from "../../vendor-ui-BwxuPDg8.mjs";
|
|
6
|
+
import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
|
|
7
|
+
import { _ as _sfc_main$e } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs";
|
|
39
8
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
40
9
|
__name: "Invoice.entry.view",
|
|
41
10
|
props: {
|
|
@@ -43,7 +12,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
43
12
|
locale: { type: String },
|
|
44
13
|
dateLocale: { type: String },
|
|
45
14
|
messages: { type: Object },
|
|
46
|
-
showTimezones: { type: Boolean },
|
|
47
15
|
primaryColor: { type: String },
|
|
48
16
|
secondaryColor: { type: String },
|
|
49
17
|
isShadowRoot: { type: Boolean },
|
|
@@ -52,7 +20,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
52
20
|
onLog: { type: Function },
|
|
53
21
|
allowedPortalTypes: { type: Array },
|
|
54
22
|
portalObject: { type: Object },
|
|
55
|
-
customElementName: { type: String },
|
|
56
23
|
branding: { type: Object },
|
|
57
24
|
configuration: { type: Object }
|
|
58
25
|
},
|
|
@@ -156,7 +123,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
156
123
|
const getPeriodTitle = (period) => formatMessage(
|
|
157
124
|
{
|
|
158
125
|
defaultMessage: "Service period - {startAt} - {endAt}",
|
|
159
|
-
id: "
|
|
126
|
+
id: "wallet_balance.service_period_heading",
|
|
160
127
|
description: "Heading shown above wallet balance details for an invoice period"
|
|
161
128
|
},
|
|
162
129
|
{
|
|
@@ -179,7 +146,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
179
146
|
if (!(credits == null ? void 0 : credits.credit_type_id)) {
|
|
180
147
|
return formatMessage({
|
|
181
148
|
defaultMessage: "Credits",
|
|
182
|
-
id: "
|
|
149
|
+
id: "wallet_balance.credit_type_fallback_label",
|
|
183
150
|
description: "Fallback label for wallet balance credit types when no name is available"
|
|
184
151
|
});
|
|
185
152
|
}
|
|
@@ -187,7 +154,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
187
154
|
};
|
|
188
155
|
const formatQuantity = (quantity) => quantity ? formatNumber(Number(quantity)) : formatMessage({
|
|
189
156
|
defaultMessage: "-",
|
|
190
|
-
id: "
|
|
157
|
+
id: "empty_value_placeholder",
|
|
191
158
|
description: "Placeholder shown when a wallet balance quantity is missing"
|
|
192
159
|
});
|
|
193
160
|
const periodsWithCredits = computed(
|
|
@@ -205,9 +172,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
205
172
|
return openBlock(), createElementBlock("section", {
|
|
206
173
|
key: period.id
|
|
207
174
|
}, [
|
|
208
|
-
createVNode(unref(_sfc_main$
|
|
175
|
+
createVNode(unref(_sfc_main$5), { class: "mt-4" }, {
|
|
209
176
|
default: withCtx(() => [
|
|
210
|
-
createVNode(unref(_sfc_main$
|
|
177
|
+
createVNode(unref(_sfc_main$6), {
|
|
211
178
|
tag: "h3",
|
|
212
179
|
variant: "caps-heading"
|
|
213
180
|
}, {
|
|
@@ -222,14 +189,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
222
189
|
createVNode(unref(InvoiceTable), { class: "mt-3" }, {
|
|
223
190
|
default: withCtx(() => [
|
|
224
191
|
createElementVNode("tr", null, [
|
|
225
|
-
createVNode(unref(_sfc_main$
|
|
192
|
+
createVNode(unref(_sfc_main$7), {
|
|
226
193
|
left: "",
|
|
227
194
|
class: "text-gray-600"
|
|
228
195
|
}, {
|
|
229
196
|
default: withCtx(() => [
|
|
230
197
|
createTextVNode(toDisplayString(unref($t)({
|
|
231
198
|
defaultMessage: "Wallet balance",
|
|
232
|
-
id: "
|
|
199
|
+
id: "wallet_balance.details.header",
|
|
233
200
|
description: "Section header for invoice wallet balance details"
|
|
234
201
|
})), 1)
|
|
235
202
|
]),
|
|
@@ -249,9 +216,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
249
216
|
withKeys(($event) => unref(toggle)(row.id), ["space"])
|
|
250
217
|
]
|
|
251
218
|
}, [
|
|
252
|
-
createVNode(unref(_sfc_main$
|
|
219
|
+
createVNode(unref(_sfc_main$8), { class: "p-0" }, {
|
|
253
220
|
default: withCtx(() => [
|
|
254
|
-
createVNode(unref(_sfc_main$
|
|
221
|
+
createVNode(unref(_sfc_main$9), {
|
|
255
222
|
icon: "keyboard_arrow_down",
|
|
256
223
|
size: "md",
|
|
257
224
|
class: normalizeClass(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !unref(getIsOpen)(row.id) }])
|
|
@@ -268,53 +235,53 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
268
235
|
createVNode(unref(InvoiceTable), null, {
|
|
269
236
|
default: withCtx(() => [
|
|
270
237
|
createElementVNode("tr", null, [
|
|
271
|
-
createVNode(unref(_sfc_main$
|
|
238
|
+
createVNode(unref(_sfc_main$7), {
|
|
272
239
|
left: "",
|
|
273
240
|
class: "w-2/5"
|
|
274
241
|
}, {
|
|
275
242
|
default: withCtx(() => [
|
|
276
243
|
createTextVNode(toDisplayString(unref($t)({
|
|
277
244
|
defaultMessage: "Credit breakdown",
|
|
278
|
-
id: "
|
|
245
|
+
id: "invoice_credits.credit_breakdown.table_header",
|
|
279
246
|
description: "Column header for wallet balance credit type details"
|
|
280
247
|
})), 1)
|
|
281
248
|
]),
|
|
282
249
|
_: 1
|
|
283
250
|
}),
|
|
284
|
-
createVNode(unref(_sfc_main$
|
|
251
|
+
createVNode(unref(_sfc_main$7), {
|
|
285
252
|
right: "",
|
|
286
253
|
class: "w-1/5"
|
|
287
254
|
}, {
|
|
288
255
|
default: withCtx(() => [
|
|
289
256
|
createTextVNode(toDisplayString(unref($t)({
|
|
290
257
|
defaultMessage: "Balance",
|
|
291
|
-
id: "
|
|
258
|
+
id: "invoice_credits.balance.table_header",
|
|
292
259
|
description: "Column header for the available wallet balance amount"
|
|
293
260
|
})), 1)
|
|
294
261
|
]),
|
|
295
262
|
_: 1
|
|
296
263
|
}),
|
|
297
|
-
createVNode(unref(_sfc_main$
|
|
264
|
+
createVNode(unref(_sfc_main$7), {
|
|
298
265
|
right: "",
|
|
299
266
|
class: "w-1/5"
|
|
300
267
|
}, {
|
|
301
268
|
default: withCtx(() => [
|
|
302
269
|
createTextVNode(toDisplayString(unref($t)({
|
|
303
270
|
defaultMessage: "Used",
|
|
304
|
-
id: "
|
|
271
|
+
id: "invoice_credits.used.table_header",
|
|
305
272
|
description: "Column header for the used wallet credit amount"
|
|
306
273
|
})), 1)
|
|
307
274
|
]),
|
|
308
275
|
_: 1
|
|
309
276
|
}),
|
|
310
|
-
createVNode(unref(_sfc_main$
|
|
277
|
+
createVNode(unref(_sfc_main$7), {
|
|
311
278
|
right: "",
|
|
312
279
|
class: "w-1/5"
|
|
313
280
|
}, {
|
|
314
281
|
default: withCtx(() => [
|
|
315
282
|
createTextVNode(toDisplayString(unref($t)({
|
|
316
283
|
defaultMessage: "Remaining",
|
|
317
|
-
id: "
|
|
284
|
+
id: "invoice_credits.remaining.table_header",
|
|
318
285
|
description: "Column header for the remaining wallet credit amount"
|
|
319
286
|
})), 1)
|
|
320
287
|
]),
|
|
@@ -326,25 +293,25 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
326
293
|
key: breakdownRow.id,
|
|
327
294
|
class: "border-t"
|
|
328
295
|
}, [
|
|
329
|
-
createVNode(unref(_sfc_main$
|
|
296
|
+
createVNode(unref(_sfc_main$8), null, {
|
|
330
297
|
default: withCtx(() => [
|
|
331
298
|
createTextVNode(toDisplayString(breakdownRow.label), 1)
|
|
332
299
|
]),
|
|
333
300
|
_: 2
|
|
334
301
|
}, 1024),
|
|
335
|
-
createVNode(unref(_sfc_main$
|
|
302
|
+
createVNode(unref(_sfc_main$8), { number: "" }, {
|
|
336
303
|
default: withCtx(() => [
|
|
337
304
|
createTextVNode(toDisplayString(breakdownRow.available), 1)
|
|
338
305
|
]),
|
|
339
306
|
_: 2
|
|
340
307
|
}, 1024),
|
|
341
|
-
createVNode(unref(_sfc_main$
|
|
308
|
+
createVNode(unref(_sfc_main$8), { number: "" }, {
|
|
342
309
|
default: withCtx(() => [
|
|
343
310
|
createTextVNode(toDisplayString(breakdownRow.used), 1)
|
|
344
311
|
]),
|
|
345
312
|
_: 2
|
|
346
313
|
}, 1024),
|
|
347
|
-
createVNode(unref(_sfc_main$
|
|
314
|
+
createVNode(unref(_sfc_main$8), { number: "" }, {
|
|
348
315
|
default: withCtx(() => [
|
|
349
316
|
createTextVNode(toDisplayString(breakdownRow.left), 1)
|
|
350
317
|
]),
|
|
@@ -377,10 +344,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
377
344
|
},
|
|
378
345
|
setup(__props) {
|
|
379
346
|
const { $t } = useIntl();
|
|
380
|
-
const {
|
|
381
|
-
const isSmallScreen = computed(() => width.value <= 768);
|
|
347
|
+
const { isMobileViewport: isSmallScreen } = useViewport();
|
|
382
348
|
return (_ctx, _cache) => {
|
|
383
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
349
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
384
350
|
title: unref($t)({
|
|
385
351
|
defaultMessage: "Invoice",
|
|
386
352
|
description: "Title for the invoice block on the invoice details page",
|
|
@@ -390,13 +356,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
390
356
|
}, {
|
|
391
357
|
default: withCtx(() => [
|
|
392
358
|
createElementVNode("div", {
|
|
393
|
-
class: normalizeClass({ "p-6 pt-2": !isSmallScreen
|
|
359
|
+
class: normalizeClass({ "p-6 pt-2": !unref(isSmallScreen) })
|
|
394
360
|
}, [
|
|
395
|
-
isSmallScreen
|
|
361
|
+
unref(isSmallScreen) ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
396
362
|
key: 0,
|
|
397
363
|
variant: "default",
|
|
398
364
|
"has-icon": "",
|
|
399
|
-
class: "justify-center
|
|
365
|
+
class: "justify-center border-gray-100 bg-gray-50 font-semibold text-gray-800"
|
|
400
366
|
}, {
|
|
401
367
|
default: withCtx(() => [
|
|
402
368
|
createTextVNode(toDisplayString(unref($t)({
|
|
@@ -407,9 +373,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
407
373
|
]),
|
|
408
374
|
_: 1
|
|
409
375
|
})) : createCommentVNode("", true),
|
|
410
|
-
createVNode(unref(_sfc_main$
|
|
376
|
+
createVNode(unref(_sfc_main$c), {
|
|
411
377
|
invoice: __props.invoice,
|
|
412
|
-
"is-expandable": !isSmallScreen
|
|
378
|
+
"is-expandable": !unref(isSmallScreen)
|
|
413
379
|
}, {
|
|
414
380
|
logo: withCtx(() => [
|
|
415
381
|
renderSlot(_ctx.$slots, "logo")
|
|
@@ -436,11 +402,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
436
402
|
configuration: { type: Object }
|
|
437
403
|
},
|
|
438
404
|
setup(__props) {
|
|
405
|
+
const PaymentHistoryBlock = defineAsyncComponent(
|
|
406
|
+
() => import("../../PaymentHistoryBlock-YzJ6bxKr.mjs")
|
|
407
|
+
);
|
|
439
408
|
const { $t } = useIntl();
|
|
440
409
|
return (_ctx, _cache) => {
|
|
441
410
|
var _a, _b;
|
|
442
411
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
443
|
-
createVNode(unref(_sfc_main$
|
|
412
|
+
createVNode(unref(_sfc_main$d), {
|
|
444
413
|
class: "mb-6",
|
|
445
414
|
"payment-attempts": __props.payments ?? [],
|
|
446
415
|
invoice: __props.invoice,
|
|
@@ -454,13 +423,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
454
423
|
invoice: __props.invoice
|
|
455
424
|
}, null, 8, ["invoice"])) : createCommentVNode("", true),
|
|
456
425
|
createElementVNode("div", _hoisted_2, [
|
|
457
|
-
createVNode(_sfc_main$
|
|
458
|
-
((_a = __props.configuration) == null ? void 0 : _a.enablePaymentAttempts) && ((_b = __props.payments) == null ? void 0 : _b.length) ? (openBlock(), createBlock(
|
|
426
|
+
createVNode(_sfc_main$e, { invoice: __props.invoice }, null, 8, ["invoice"]),
|
|
427
|
+
((_a = __props.configuration) == null ? void 0 : _a.enablePaymentAttempts) && ((_b = __props.payments) == null ? void 0 : _b.length) ? (openBlock(), createBlock(unref(PaymentHistoryBlock), {
|
|
459
428
|
key: 0,
|
|
460
429
|
"payment-attempts": __props.payments,
|
|
461
430
|
customer: __props.invoice.customer
|
|
462
431
|
}, null, 8, ["payment-attempts", "customer"])) : createCommentVNode("", true),
|
|
463
|
-
__props.configuration.enableCustomerBillingInformation ? (openBlock(), createBlock(unref(_sfc_main$
|
|
432
|
+
__props.configuration.enableCustomerBillingInformation ? (openBlock(), createBlock(unref(_sfc_main$f), {
|
|
464
433
|
key: 1,
|
|
465
434
|
customer: __props.invoice.customer,
|
|
466
435
|
title: unref($t)({
|
|
@@ -482,7 +451,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
482
451
|
locale: { type: String },
|
|
483
452
|
dateLocale: { type: String },
|
|
484
453
|
messages: { type: Object },
|
|
485
|
-
showTimezones: { type: Boolean },
|
|
486
454
|
primaryColor: { type: String },
|
|
487
455
|
secondaryColor: { type: String },
|
|
488
456
|
isShadowRoot: { type: Boolean },
|
|
@@ -491,7 +459,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
491
459
|
onLog: { type: Function },
|
|
492
460
|
allowedPortalTypes: { type: Array },
|
|
493
461
|
portalObject: { type: Object },
|
|
494
|
-
customElementName: { type: String },
|
|
495
462
|
branding: { type: Object },
|
|
496
463
|
configuration: { type: Object }
|
|
497
464
|
},
|
|
@@ -512,7 +479,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
512
479
|
}));
|
|
513
480
|
return (_ctx, _cache) => {
|
|
514
481
|
var _a2, _b, _c, _d;
|
|
515
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
482
|
+
return openBlock(), createBlock(unref(_sfc_main$g), {
|
|
516
483
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
517
484
|
environment: __props.environment,
|
|
518
485
|
locale: __props.locale,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonInvoiceDetails: import('
|
|
1
|
+
export declare const SolvimonInvoiceDetails: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonInvoiceDetails: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js"),t=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),n=require("../../useInvoiceData-CxxHa5R2.js"),i=require("../../component-C2Gc-wsE.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},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},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},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},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,s,u;return e.openBlock(),e.createBlock(e.unref(i._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==(c=null==(l=o.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(u=null==(s=o.branding)?void 0:s.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),p=i.getComponentName("invoice-details");exports.COMPONENT_NAME=p,exports.SolvimonInvoiceDetails=c,exports.defineSolvimonInvoiceDetails=()=>{customElements.get(p)||customElements.define(p,c)};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as _sfc_main$4 } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs";
|
|
3
3
|
import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
4
|
-
import { u as useInvoiceData } from "../../useInvoiceData-
|
|
5
|
-
import {
|
|
4
|
+
import { u as useInvoiceData } from "../../useInvoiceData-fS6G_244.mjs";
|
|
5
|
+
import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "InvoiceDetails",
|
|
8
8
|
props: {
|
|
@@ -31,7 +31,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
locale: { type: String },
|
|
32
32
|
dateLocale: { type: String },
|
|
33
33
|
messages: { type: Object },
|
|
34
|
-
showTimezones: { type: Boolean },
|
|
35
34
|
primaryColor: { type: String },
|
|
36
35
|
secondaryColor: { type: String },
|
|
37
36
|
isShadowRoot: { type: Boolean },
|
|
@@ -40,7 +39,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
40
39
|
onLog: { type: Function },
|
|
41
40
|
allowedPortalTypes: { type: Array },
|
|
42
41
|
portalObject: { type: Object },
|
|
43
|
-
customElementName: { type: String },
|
|
44
42
|
branding: { type: Object },
|
|
45
43
|
configuration: { type: Object }
|
|
46
44
|
},
|
|
@@ -63,7 +61,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
61
|
locale: { type: String },
|
|
64
62
|
dateLocale: { type: String },
|
|
65
63
|
messages: { type: Object },
|
|
66
|
-
showTimezones: { type: Boolean },
|
|
67
64
|
primaryColor: { type: String },
|
|
68
65
|
secondaryColor: { type: String },
|
|
69
66
|
isShadowRoot: { type: Boolean },
|
|
@@ -72,7 +69,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
69
|
onLog: { type: Function },
|
|
73
70
|
allowedPortalTypes: { type: Array },
|
|
74
71
|
portalObject: { type: Object },
|
|
75
|
-
customElementName: { type: String },
|
|
76
72
|
branding: { type: Object },
|
|
77
73
|
configuration: { type: Object }
|
|
78
74
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonInvoicesList: import('
|
|
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("vue"),o=require("../../useInvoicesList-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../useInvoicesList-CtJqmblZ.js"),t=require("../../useLoadInitialData-BRg7IWqW.js"),n=require("../../component-C2Gc-wsE.js"),r=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},branding:{type:Object},configuration:{type:Object}},setup(n){var r,i;const a=n,l=a.portalObject.customer_id,s=o.useInvoicesList({customerId:l,batchSize:(null==(i=null==(r=a.configuration)?void 0:r.pagination)?void 0:i.batchSize)||15}),{isLoading:c}=t.useLoadInitialData(s.fetchInitial());return(o,t)=>e.renderSlot(o.$slots,"default",{isLoading:e.unref(c),invoices:e.unref(s)})}}),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},branding:{type:Object},configuration:{type:Object}},setup:t=>(i,a)=>{var s,c,p,u;return e.openBlock(),e.createBlock(e.unref(n._sfc_main),{"custom-element-name":e.unref(l),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(s=t.branding)?void 0:s.colors)?void 0:c.primary,"secondary-color":null==(u=null==(p=t.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,onError:a[0]||(a[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(r,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:n,isLoading:r})=>[e.createVNode(o._sfc_main,{configuration:t.configuration,invoices:n.items.value,"is-loading":r,"has-more-items":n.hasNextBatch.value,onLoadMore:n.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"])}}),a=n.defineCustomElement(i),l=n.getComponentName("invoices-list");exports.COMPONENT_NAME=l,exports.SolvimonInvoicesList=a,exports.defineSolvimonInvoicesList=()=>{customElements.get(l)||customElements.define(l,a)};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-
|
|
2
|
+
import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-BQQxcPdz.mjs";
|
|
3
3
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
5
5
|
const DEFAULT_BATCH_SIZE = 15;
|
|
6
6
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "InvoicesList.entry.view",
|
|
@@ -10,7 +10,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
locale: { type: String },
|
|
11
11
|
dateLocale: { type: String },
|
|
12
12
|
messages: { type: Object },
|
|
13
|
-
showTimezones: { type: Boolean },
|
|
14
13
|
primaryColor: { type: String },
|
|
15
14
|
secondaryColor: { type: String },
|
|
16
15
|
isShadowRoot: { type: Boolean },
|
|
@@ -19,7 +18,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
19
18
|
onLog: { type: Function },
|
|
20
19
|
allowedPortalTypes: { type: Array },
|
|
21
20
|
portalObject: { type: Object },
|
|
22
|
-
customElementName: { type: String },
|
|
23
21
|
branding: { type: Object },
|
|
24
22
|
configuration: { type: Object }
|
|
25
23
|
},
|
|
@@ -47,7 +45,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
45
|
locale: { type: String },
|
|
48
46
|
dateLocale: { type: String },
|
|
49
47
|
messages: { type: Object },
|
|
50
|
-
showTimezones: { type: Boolean },
|
|
51
48
|
primaryColor: { type: String },
|
|
52
49
|
secondaryColor: { type: String },
|
|
53
50
|
isShadowRoot: { type: Boolean },
|
|
@@ -56,7 +53,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
53
|
onLog: { type: Function },
|
|
57
54
|
allowedPortalTypes: { type: Array },
|
|
58
55
|
portalObject: { type: Object },
|
|
59
|
-
customElementName: { type: String },
|
|
60
56
|
branding: { type: Object },
|
|
61
57
|
configuration: { type: Object }
|
|
62
58
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonPaymentHistory: import('
|
|
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("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),n=require("../../useInvoiceData-CxxHa5R2.js"),r=require("../../component-C2Gc-wsE.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},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},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},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},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,c,m;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==(p=null==(l=t.branding)?void 0:l.colors)?void 0:p.primary,"secondary-color":null==(m=null==(c=t.branding)?void 0:c.colors)?void 0:m.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.defineSolvimonPaymentHistory=()=>{customElements.get(s)||customElements.define(s,p)};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as _sfc_main$4 } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs";
|
|
3
3
|
import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
4
|
-
import { u as useInvoiceData } from "../../useInvoiceData-
|
|
5
|
-
import {
|
|
4
|
+
import { u as useInvoiceData } from "../../useInvoiceData-fS6G_244.mjs";
|
|
5
|
+
import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "PaymentHistory",
|
|
8
8
|
props: {
|
|
@@ -33,7 +33,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
locale: { type: String },
|
|
34
34
|
dateLocale: { type: String },
|
|
35
35
|
messages: { type: Object },
|
|
36
|
-
showTimezones: { type: Boolean },
|
|
37
36
|
primaryColor: { type: String },
|
|
38
37
|
secondaryColor: { type: String },
|
|
39
38
|
isShadowRoot: { type: Boolean },
|
|
@@ -42,7 +41,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
42
41
|
onLog: { type: Function },
|
|
43
42
|
allowedPortalTypes: { type: Array },
|
|
44
43
|
portalObject: { type: Object },
|
|
45
|
-
customElementName: { type: String },
|
|
46
44
|
branding: { type: Object },
|
|
47
45
|
configuration: { type: Object }
|
|
48
46
|
},
|
|
@@ -66,7 +64,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
64
|
locale: { type: String },
|
|
67
65
|
dateLocale: { type: String },
|
|
68
66
|
messages: { type: Object },
|
|
69
|
-
showTimezones: { type: Boolean },
|
|
70
67
|
primaryColor: { type: String },
|
|
71
68
|
secondaryColor: { type: String },
|
|
72
69
|
isShadowRoot: { type: Boolean },
|
|
@@ -75,7 +72,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
72
|
onLog: { type: Function },
|
|
76
73
|
allowedPortalTypes: { type: Array },
|
|
77
74
|
portalObject: { type: Object },
|
|
78
|
-
customElementName: { type: String },
|
|
79
75
|
branding: { type: Object },
|
|
80
76
|
configuration: { type: Object }
|
|
81
77
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonPaymentMethodForm: import('
|
|
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("vue"),t=require("../../component-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-C2Gc-wsE.js"),o=require("../../vendor-ui-Ce_Yp7xA.js"),n=require("../../useLoadInitialData-BRg7IWqW.js"),r=require("../../useCustomer-DanZzn-l.js"),a=require("../../usePaymentMethodOptions-D01YWW3G.js"),i=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),l=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js"),u=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},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(t){const i=t,l=r.useCustomer({customerId:i.portalObject.customer_id}),u=a.usePaymentMethodOptions(),{isLoading:c}=n.useLoadInitialData((async()=>{var e;const t=await l.get.execute(),n=o.getCustomerCountry(t);await u.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(l).customer.value,paymentMethodOptions:e.unref(u),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(),u=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"}),s=e.computed(()=>"AUTHORIZE"===u.value.variant?{paymentMethodOptions:r.paymentMethodOptions,countryCode:c.value,variant:"AUTHORIZE",amount:u.value.amount,context:u.value.context,invoiceId:u.value.invoiceId,successRedirectUrl:u.value.successRedirectUrl,selectedOption:u.value.selectedOption,validateOnSubmit:u.value.validateOnSubmit,forceStorePaymentMethod:u.value.forceStorePaymentMethod}:{paymentMethodOptions:r.paymentMethodOptions,customerId:r.customer.id,countryCode:c.value,variant:"TOKENIZE",amount:u.value.amount??n,invoiceId:u.value.invoiceId,successRedirectUrl:u.value.successRedirectUrl,selectedOption:u.value.selectedOption,validateOnSubmit:u.value.validateOnSubmit,forceStorePaymentMethod:u.value.forceStorePaymentMethod});return(n,r)=>t.isLoading?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,variant:"section",class:"min-h-[180px]","data-testid":"payment-method-form-skeleton"})):(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{key:1,"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(l._sfc_main,e.normalizeProps(e.guardReactiveProps(s.value)),null,16)]),_:1},8,["title"]))}}),s=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},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(o){const n=o;return(r,a)=>{var i,l,s,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==(l=null==(i=o.branding)?void 0:i.colors)?void 0:l.primary,"secondary-color":null==(m=null==(s=o.branding)?void 0:s.colors)?void 0:m.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,onError:a[0]||(a[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(u,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"])}}}),m=t.defineCustomElement(s),p=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=p,exports.SolvimonPaymentMethodForm=m,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(p)||customElements.define(p,m)};
|