@solvimon/solvimon-web 0.1.0-alpha.8 → 0.1.0-alpha.9
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/README.md +124 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +6 -4
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
- package/dist/{ContentWithAsideLayout-BTdixy3L.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +8 -5
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +21 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +19 -8
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
- package/dist/{PaymentHistoryBlock-DHM-3fh-.js → PaymentHistoryBlock-BiiFJkpT.js} +1 -1
- package/dist/{PaymentHistoryBlock-YzJ6bxKr.mjs → PaymentHistoryBlock-D_B099M7.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +16 -9
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/{PaymentIntegrationForm-Cl5ua8v8.js → PaymentIntegrationForm-D1oJA9mC.js} +1 -1
- package/dist/{PaymentIntegrationForm-ID4QnvA3.mjs → PaymentIntegrationForm-DNkjhqMF.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D37gDtY7.mjs} +70 -17
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs} +1 -1
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js → PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js} +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +9 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +28 -19
- package/dist/adyen-B_QrYdaC.mjs +4 -0
- package/dist/{adyenLoader-gsbzSjYV.mjs → adyen-Bwewy3HC.mjs} +8 -13
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/adyen-mQEEOjgl.js +1 -0
- package/dist/adyen.css +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/{component-CM9g6tbD.mjs → component-Djrf1L-Z.mjs} +294 -209
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +8 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +8 -4
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +10 -6
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +36 -22
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +10 -6
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +10 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +15 -11
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +15 -8
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +11 -7
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +8 -4
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-TIi7iZFw.mjs → customer-B31QzznT.mjs} +1 -1
- package/dist/{customer-C_Hz_npf.js → customer-hDxW1Dbp.js} +1 -1
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/{en-US-CBoPxQwX.mjs → en-US-N3CUCsVy.mjs} +5 -25
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{invoices-BuVOuTOm.mjs → invoices-DIYPN2j_.mjs} +2 -2
- package/dist/{invoices-DbvwXAsm.js → invoices-DzkA1jDc.js} +1 -1
- package/dist/{nl-NL-BB7KbK-h.mjs → nl-NL-B8U9b85I.mjs} +18 -2
- package/dist/nl-NL-qMRaTRrM.js +1 -0
- package/dist/{paymentMethods-Di32oJ39.mjs → paymentMethods-67b3UlTZ.mjs} +2 -2
- package/dist/{paymentMethods-B4AYGf0K.js → paymentMethods-C_sdTkSF.js} +1 -1
- package/dist/{payments-DeutKq9x.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-C5fD1PXB.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/{registry-CMSmkLcy.js → registry-BkViv4tv.js} +1 -1
- package/dist/{registry-BLwMl1bK.mjs → registry-Df_26rJy.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +276 -214
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +22 -15
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +12 -10
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +83 -53
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-mOgjjzUi.mjs → subscriptions-ClGIr_aS.mjs} +2 -2
- package/dist/{subscriptions-wdMADcQZ.js → subscriptions-jelITJcX.js} +1 -1
- package/dist/{useActionDispatchProvider-B4gszz0Q.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DfS2P0bd.js → useActionDispatchProvider-rw9kWeE0.js} +1 -1
- package/dist/{useCustomer-cbhDyWJL.mjs → useCustomer-Ba9WRtuT.mjs} +2 -2
- package/dist/{useCustomer-DanZzn-l.js → useCustomer-CUcaeQn_.js} +1 -1
- package/dist/{useIncrementalLoading-RRicokf1.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +1 -1
- package/dist/{useIncrementalLoading-DFe5Yh8M.js → useIncrementalLoading-DoTTXM2Y.js} +1 -1
- package/dist/{useInvoiceData-fS6G_244.mjs → useInvoiceData-BJwwDur7.mjs} +2 -2
- package/dist/{useInvoiceData-CxxHa5R2.js → useInvoiceData-D2jkdmlA.js} +1 -1
- package/dist/{useInvoicesList-BQQxcPdz.mjs → useInvoicesList-CFzAxyae.mjs} +22 -18
- package/dist/useInvoicesList-CaBCGs4h.js +1 -0
- package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
- package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
- package/dist/{usePaymentMethodOptions-2MloZ9bY.mjs → usePaymentMethodOptions-C2k4npCQ.mjs} +2 -2
- package/dist/{usePaymentMethodOptions-D01YWW3G.js → usePaymentMethodOptions-DYO6xr3-.js} +1 -1
- package/dist/{usePaymentMethods-DZvfWSlx.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-Cm9WdSW0.js → usePaymentMethods-ryN_YohI.js} +1 -1
- package/dist/{usePayments-D4uGKBsV.mjs → usePayments-Cw5PPEJa.mjs} +3 -3
- package/dist/{usePayments-B13S_yai.js → usePayments-DWXPGFvp.js} +1 -1
- package/dist/{usePortal-DWJEVkTj.js → usePortal-CxX4nrE4.js} +1 -1
- package/dist/{usePortal-DJDJNLbo.mjs → usePortal-cmE08vYs.mjs} +1 -1
- package/dist/useService-Bb9r_sOQ.js +1 -0
- package/dist/{useService-BuWWE5ND.mjs → useService-BsSEI8DZ.mjs} +1 -16
- package/dist/{useWalletBalanceItems-B53Gkjro.mjs → useWalletBalanceItems-CkDqmk36.mjs} +8 -5
- package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
- package/dist/vendor-ui-5pJF5KBP.js +1 -0
- package/dist/{vendor-ui-BwxuPDg8.mjs → vendor-ui-C0K3osvz.mjs} +13272 -14225
- package/package.json +4 -3
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +0 -1
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +0 -1
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/adyenLoader-CEH4A2b2.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/component-C2Gc-wsE.js +0 -1
- package/dist/en-US-DJq-9dD8.js +0 -1
- package/dist/nl-NL-CtU1Lg2F.js +0 -1
- package/dist/source-DKDKBlUm.mjs +0 -179
- package/dist/source-dkMNFWDc.js +0 -1
- package/dist/useInvoicesList-CtJqmblZ.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-9fCKPTmu.js +0 -1
- package/dist/useWalletBalanceItems-BMaVT4TW.js +0 -1
- package/dist/vendor-ui-Ce_Yp7xA.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createSlots, createElementVNode, withModifiers, createCommentVNode } from "vue";
|
|
2
|
-
import { u as useIntl,
|
|
3
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-
|
|
4
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
5
|
-
import { c as createInvoicesService } from "./invoices-
|
|
6
|
-
const _hoisted_1 = { class: "grid-cols-1 gap-4" };
|
|
2
|
+
import { u as useIntl, m as _sfc_main$2, T as TableHead, n as TableHeadRow, o as _sfc_main$3, p as TableBody, q as _sfc_main$4, r as _sfc_main$5, _ as _sfc_main$6, t as _sfc_main$7, f as _sfc_main$8, e as _sfc_main$9, b as _sfc_main$a } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
|
|
4
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
|
|
5
|
+
import { c as createInvoicesService } from "./invoices-DIYPN2j_.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "sv-table sv-invoices-list__table grid-cols-1 gap-4" };
|
|
7
7
|
const _hoisted_2 = ["onClick"];
|
|
8
8
|
const _hoisted_3 = { class: "flex flex-col" };
|
|
9
|
-
const _hoisted_4 = { class: "mt-2 flex items-center justify-center" };
|
|
9
|
+
const _hoisted_4 = { class: "sv-invoices-list__load-more mt-2 flex items-center justify-center" };
|
|
10
10
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "InvoiceTable",
|
|
12
12
|
props: {
|
|
@@ -34,9 +34,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
default: withCtx(() => [
|
|
35
35
|
createVNode(unref(TableHead), null, {
|
|
36
36
|
default: withCtx(() => [
|
|
37
|
-
createVNode(unref(TableHeadRow),
|
|
37
|
+
createVNode(unref(TableHeadRow), { class: "sv-table__head" }, {
|
|
38
38
|
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(_sfc_main$3),
|
|
39
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--invoice" }, {
|
|
40
40
|
default: withCtx(() => [
|
|
41
41
|
createTextVNode(toDisplayString(unref($t)({
|
|
42
42
|
defaultMessage: "Invoice",
|
|
@@ -46,7 +46,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
}),
|
|
49
|
-
createVNode(unref(_sfc_main$3), { class: "hidden md:table-cell" }, {
|
|
49
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--date hidden md:table-cell" }, {
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
createTextVNode(toDisplayString(unref($t)({
|
|
52
52
|
defaultMessage: "Date",
|
|
@@ -56,7 +56,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
}),
|
|
59
|
-
createVNode(unref(_sfc_main$3),
|
|
59
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--amount" }, {
|
|
60
60
|
default: withCtx(() => [
|
|
61
61
|
createTextVNode(toDisplayString(unref($t)({
|
|
62
62
|
defaultMessage: "Amount",
|
|
@@ -66,7 +66,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
}),
|
|
69
|
-
createVNode(unref(_sfc_main$3), { class: "text-right" }, {
|
|
69
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--status text-right" }, {
|
|
70
70
|
default: withCtx(() => [
|
|
71
71
|
createTextVNode(toDisplayString(unref($t)({
|
|
72
72
|
defaultMessage: "Status",
|
|
@@ -86,12 +86,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
default: withCtx(() => [
|
|
87
87
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.invoices, (invoice) => {
|
|
88
88
|
return openBlock(), createBlock(unref(_sfc_main$4), {
|
|
89
|
-
key: invoice.id
|
|
89
|
+
key: invoice.id,
|
|
90
|
+
class: "sv-table__row sv-invoices-list__row"
|
|
90
91
|
}, createSlots({
|
|
91
92
|
default: withCtx(() => [
|
|
92
93
|
createVNode(unref(_sfc_main$5), {
|
|
93
94
|
"has-padding": "",
|
|
94
|
-
class: "h-14"
|
|
95
|
+
class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"
|
|
95
96
|
}, {
|
|
96
97
|
default: withCtx(() => [
|
|
97
98
|
createElementVNode("div", _hoisted_3, [
|
|
@@ -124,7 +125,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
124
125
|
]),
|
|
125
126
|
_: 2
|
|
126
127
|
}, 1024),
|
|
127
|
-
createVNode(unref(_sfc_main$5), { class: "hidden h-14 md:table-cell" }, {
|
|
128
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell" }, {
|
|
128
129
|
default: withCtx(() => [
|
|
129
130
|
createTextVNode(toDisplayString(unref(formatDate)({
|
|
130
131
|
date: invoice.invoice_date,
|
|
@@ -135,7 +136,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
135
136
|
]),
|
|
136
137
|
_: 2
|
|
137
138
|
}, 1024),
|
|
138
|
-
createVNode(unref(_sfc_main$5), { class: "h-14" }, {
|
|
139
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14" }, {
|
|
139
140
|
default: withCtx(() => [
|
|
140
141
|
createVNode(unref(_sfc_main$6), {
|
|
141
142
|
tag: "span",
|
|
@@ -151,7 +152,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
151
152
|
]),
|
|
152
153
|
_: 2
|
|
153
154
|
}, 1024),
|
|
154
|
-
createVNode(unref(_sfc_main$5), { class: "h-14 text-right" }, {
|
|
155
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right" }, {
|
|
155
156
|
default: withCtx(() => [
|
|
156
157
|
invoice.paid ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
157
158
|
key: 0,
|
|
@@ -170,6 +171,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
170
171
|
variant: "outline",
|
|
171
172
|
color: "gray",
|
|
172
173
|
size: "sm",
|
|
174
|
+
class: "sv-action sv-action--secondary sv-invoices-list__pay",
|
|
173
175
|
type: "button",
|
|
174
176
|
onClick: withModifiers(($event) => _ctx.$emit("pay-invoice", { invoiceId: invoice.id }), ["stop"])
|
|
175
177
|
}, {
|
|
@@ -193,7 +195,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
193
195
|
fn: withCtx(() => [
|
|
194
196
|
createElementVNode("button", {
|
|
195
197
|
type: "button",
|
|
196
|
-
class: "absolute inset-0 h-full w-full",
|
|
198
|
+
class: "sv-invoices-list__row-action absolute inset-0 h-full w-full",
|
|
197
199
|
onClick: ($event) => _ctx.$emit("view-invoice", { invoiceId: invoice.id })
|
|
198
200
|
}, null, 8, _hoisted_2)
|
|
199
201
|
]),
|
|
@@ -213,7 +215,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
213
215
|
variant: "outline",
|
|
214
216
|
color: "gray",
|
|
215
217
|
size: "sm",
|
|
216
|
-
class: "w-full",
|
|
218
|
+
class: "sv-action sv-action--secondary sv-action--full-width w-full",
|
|
217
219
|
loading: __props.isLoading,
|
|
218
220
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("load-more"))
|
|
219
221
|
}, {
|
|
@@ -252,6 +254,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
252
254
|
const { dispatchAction } = useActionDispatchProvider();
|
|
253
255
|
return (_ctx, _cache) => {
|
|
254
256
|
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
257
|
+
class: "sv-invoices-list sv-root sv-component",
|
|
255
258
|
"no-border": "",
|
|
256
259
|
"no-spacing": "",
|
|
257
260
|
"content-background": "none",
|
|
@@ -263,6 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
263
266
|
}, {
|
|
264
267
|
default: withCtx(() => [
|
|
265
268
|
createVNode(_sfc_main$1, {
|
|
269
|
+
class: "sv-invoices-list__table",
|
|
266
270
|
configuration: __props.configuration,
|
|
267
271
|
"has-more-items": __props.hasMoreItems,
|
|
268
272
|
invoices: __props.invoices,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),i=require("./useActionDispatchProvider-rw9kWeE0.js"),o=require("./useIncrementalLoading-DoTTXM2Y.js"),a=require("./invoices-DzkA1jDc.js"),n={class:"sv-table sv-invoices-list__table grid-cols-1 gap-4"},s=["onClick"],c={class:"flex flex-col"},l={class:"sv-invoices-list__load-more mt-2 flex items-center justify-center"},r=e.defineComponent({__name:"InvoiceTable",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{type:Object}},emits:["view-invoice","pay-invoice","load-more"],setup(i){const o=i,{formatDate:a,$t:r}=t.useIntl(),d=e.computed(()=>o.configuration.showPayButton),u=e.computed(()=>o.configuration.showViewButton),_=e.computed(()=>o.hasMoreItems);return(o,v)=>(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(e.unref(t._sfc_main$7),{striped:"","no-border":"",rounded:"",hoverable:"","stripe-class":"group-odd:bg-gray-50/50"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.TableHead),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.TableHeadRow),{class:"sv-table__head"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--invoice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Invoice",description:"The title of the invoice number header column of the invoice table",id:"invoice_table.header.invoice_number"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--date hidden md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Date",description:"The title of the invoice date header column of the invoice table",id:"invoice_table.header.date"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--amount"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Amount",description:"The title of the invoice amount header column of the invoice table",id:"invoice_table.header.amount"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--status text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Status",description:"The title of the invoice status header column of the invoice table",id:"invoice_table.header.status"})),1)]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(t.TableBody),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.invoices,i=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$9),{key:i.id,class:"sv-table__row sv-invoices-list__row"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$10),{"has-padding":"",class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"},{default:e.withCtx(()=>[e.createElementVNode("div",c,[e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-sm",class:"md:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:i.invoice_date,format:"date",offsetType:"offsetted",timezone:i.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.invoice_number),1)]),_:2},1024)])]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:i.invoice_date,format:"date",offsetType:"offsetted",timezone:i.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$11),{value:i.invoice_amount_including_tax},null,8,["value"])]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right"},{default:e.withCtx(()=>[i.paid?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$4),{key:0,color:"green"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Paid",description:"The label of the chip for paid invoices",id:"invoice_table.chip.paid"})),1)]),_:1})):d.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,variant:"outline",color:"gray",size:"sm",class:"sv-action sv-action--secondary sv-invoices-list__pay",type:"button",onClick:e.withModifiers(e=>o.$emit("pay-invoice",{invoiceId:i.id}),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Pay",description:"The label for the pay invoice button",id:"customer.invoice_table.pay_invoice_button.label"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:2},1024)]),_:2},[u.value?{name:"link",fn:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"sv-invoices-list__row-action absolute inset-0 h-full w-full",onClick:e=>o.$emit("view-invoice",{invoiceId:i.id})},null,8,s)]),key:"0"}:void 0]),1024))),128))]),_:1})]),_:1}),e.createElementVNode("div",l,[_.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,variant:"outline",color:"gray",size:"sm",class:"sv-action sv-action--secondary sv-action--full-width w-full",loading:i.isLoading,onClick:v[0]||(v[0]=e=>o.$emit("load-more"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Load more",description:"The label for the load more button",id:"invoice_table.button.load_more"})),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)])]))}}),d=e.defineComponent({__name:"InvoicesList",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{default:()=>({showPayButton:!0,showViewButton:!0,pagination:{batchSize:15,enabled:!0}}),type:Object}},emits:["load-more"],setup(o){const{$t:a}=t.useIntl(),{dispatchAction:n}=i.useActionDispatchProvider();return(i,s)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{class:"sv-invoices-list sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(a)({defaultMessage:"Invoices",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(r,{class:"sv-invoices-list__table",configuration:o.configuration,"has-more-items":o.hasMoreItems,invoices:o.invoices,"is-loading":o.isLoading,onLoadMore:s[0]||(s[0]=e=>i.$emit("load-more")),onViewInvoice:s[1]||(s[1]=t=>e.unref(n)({action:"view-invoice",data:{invoiceId:t.invoiceId}})),onPayInvoice:s[2]||(s[2]=t=>e.unref(n)({action:"pay-invoice",data:{invoiceId:t.invoiceId}}))},null,8,["configuration","has-more-items","invoices","is-loading"])]),_:1},8,["title"]))}});exports._sfc_main=d,exports.useInvoicesList=function({customerId:e,batchSize:t=15}){const i=a.createInvoicesService();return o.useIncrementalLoading({service:async o=>i.getInvoices({customerId:e,pagination:{page:o,pageSize:t}})})};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ref, onMounted } from "vue";
|
|
2
|
+
import { a as useLogger } from "./component-Djrf1L-Z.mjs";
|
|
2
3
|
function useLoadInitialData(...services) {
|
|
3
4
|
const isLoading = ref(true);
|
|
5
|
+
const logger = useLogger();
|
|
4
6
|
onMounted(async () => {
|
|
5
7
|
await Promise.all(services).then(() => {
|
|
6
8
|
isLoading.value = false;
|
|
9
|
+
}).catch((error) => {
|
|
10
|
+
isLoading.value = false;
|
|
11
|
+
logger.error("INITIAL_DATA_LOAD_FAILED", "Failed to load initial data", {}, error);
|
|
7
12
|
});
|
|
8
13
|
});
|
|
9
14
|
return { isLoading };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),a=require("./component-BOqPDAVk.js");exports.useLoadInitialData=function(...o){const t=e.ref(!0),n=a.useLogger();return e.onMounted(async()=>{await Promise.all(o).then(()=>{t.value=!1}).catch(e=>{t.value=!1,n.error("INITIAL_DATA_LOAD_FAILED","Failed to load initial data",{},e)})}),{isLoading:t}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useService } from "./useService-
|
|
2
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
1
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-67b3UlTZ.mjs";
|
|
3
3
|
function hasCustomerId(payload) {
|
|
4
4
|
return payload.customerId !== void 0;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useService-
|
|
1
|
+
const e=require("./useService-Bb9r_sOQ.js"),t=require("./paymentMethods-C_sdTkSF.js");exports.usePaymentMethodOptions=function(){const{getPaymentMethodOptions:n}=t.createPaymentMethodsService(),{data:o,execute:r,apiStatus:u,error:i,isPending:s}=e.useService({initialValue:[],service:e=>function(e){return void 0!==e.customerId}(e)?n({customerId:e.customerId,amount:e.amount,country:e.country}):n({subscriptionId:e.subscriptionId,amount:e.amount,country:e.country})});return{paymentMethodOptions:o,get:r,apiStatus:u,error:i,isPending:s}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
2
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
1
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-67b3UlTZ.mjs";
|
|
3
3
|
function usePaymentMethods({
|
|
4
4
|
customerId,
|
|
5
5
|
pageSize = 15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useIncrementalLoading-
|
|
1
|
+
const e=require("./useIncrementalLoading-DoTTXM2Y.js"),t=require("./paymentMethods-C_sdTkSF.js");exports.usePaymentMethods=function({customerId:n,pageSize:s=15}){const{getPaymentMethods:a}=t.createPaymentMethodsService();return e.useIncrementalLoading({service:async e=>a({customerId:n,pagination:{page:e,pageSize:s}})})};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createInvoicesService } from "./invoices-
|
|
2
|
-
import { u as useService } from "./useService-
|
|
3
|
-
import { c as createPaymentsService } from "./payments-
|
|
1
|
+
import { c as createInvoicesService } from "./invoices-DIYPN2j_.mjs";
|
|
2
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
3
|
+
import { c as createPaymentsService } from "./payments-Dq6R37Fz.mjs";
|
|
4
4
|
function useInvoice({ invoiceId }) {
|
|
5
5
|
const { getInvoice, getInvoicePdf: downloadInvoicePdf } = createInvoicesService();
|
|
6
6
|
const service = () => getInvoice(invoiceId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./invoices-
|
|
1
|
+
const e=require("./invoices-DzkA1jDc.js"),i=require("./useService-Bb9r_sOQ.js"),t=require("./payments-DkHhTHto.js");exports.useInvoice=function({invoiceId:t}){const{getInvoice:r,getInvoicePdf:n}=e.createInvoicesService(),{data:s,execute:c,apiStatus:o,error:a,isPending:u}=i.useService({service:()=>r(t)});return{invoice:s,downloadInvoicePdf:n,apiStatus:o,error:a,get:c,isPending:u}},exports.usePayments=function(){const{getPayments:e}=t.createPaymentsService(),{data:r,execute:n,error:s,apiStatus:c,isPending:o}=i.useService({service:e,isCollection:!0});return{payments:r,get:n,error:s,apiStatus:c,isPending:o}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=require("vue"),e=require("./component-
|
|
1
|
+
const r=require("vue"),e=require("./component-BOqPDAVk.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-5pJF5KBP.js");function n(e,t){return t?function(e){if(!function(e){return"object"==typeof e&&null!==e&&"data"in e}(e))throw new Error("Expected collection response.");return e.data}(e):e}exports.useService=function({initialValue:i,service:u,isCollection:a=!1}){const o=t.shallowRef(i),l=t.ref(e.ApiStatus.Initial),s=t.ref(null),c=t.computed(()=>l.value===e.ApiStatus.Loading);return{data:o,execute:async(...t)=>{try{l.value=e.ApiStatus.Loading,s.value=null;const v=n(await u(...t),a);return i=o,c=v,r.isEqual(i.value,c)||(i.value=c),l.value=e.ApiStatus.Done,v}catch(v){return s.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(v),l.value=e.ApiStatus.Failed,Promise.reject()}var i,c},apiStatus:l,isPending:c,error:s}};
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
2
|
import { shallowRef, ref, computed } from "vue";
|
|
3
|
-
|
|
4
|
-
function replacer(_key, value) {
|
|
5
|
-
return value === void 0 ? UNDEFINED_SENTINEL : value;
|
|
6
|
-
}
|
|
7
|
-
function isEqual(a, b) {
|
|
8
|
-
return JSON.stringify(a, replacer) === JSON.stringify(b, replacer);
|
|
9
|
-
}
|
|
10
|
-
function isEmpty(value) {
|
|
11
|
-
if (value == null) return true;
|
|
12
|
-
if (typeof value === "string" || Array.isArray(value)) return value.length === 0;
|
|
13
|
-
if (value instanceof Map || value instanceof Set) return value.size === 0;
|
|
14
|
-
if (typeof value === "object") return Object.keys(value).length === 0;
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
3
|
+
import { k as isEqual } from "./vendor-ui-C0K3osvz.mjs";
|
|
17
4
|
function updateRefIfChanged(ref2, value) {
|
|
18
5
|
if (isEqual(ref2.value, value)) {
|
|
19
6
|
return;
|
|
@@ -62,7 +49,5 @@ function useService({
|
|
|
62
49
|
return { data, execute, apiStatus, isPending, error };
|
|
63
50
|
}
|
|
64
51
|
export {
|
|
65
|
-
isEmpty as a,
|
|
66
|
-
isEqual as i,
|
|
67
52
|
useService as u
|
|
68
53
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, defineComponent, openBlock, createBlock, unref, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createRequestService, u as useConfig } from "./component-
|
|
3
|
-
import { u as useService } from "./useService-
|
|
4
|
-
import { u as useIntl,
|
|
5
|
-
import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { c as createRequestService, u as useConfig } from "./component-Djrf1L-Z.mjs";
|
|
3
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
4
|
+
import { u as useIntl, A as _sfc_main$2, B as _sfc_main$4 } from "./vendor-ui-C0K3osvz.mjs";
|
|
5
|
+
import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
6
6
|
function createWalletsService() {
|
|
7
7
|
const request = createRequestService();
|
|
8
8
|
const config = useConfig();
|
|
@@ -36,6 +36,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const { $t } = useIntl();
|
|
37
37
|
return (_ctx, _cache) => {
|
|
38
38
|
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
39
|
+
class: "sv-wallet-balances",
|
|
39
40
|
items: __props.walletBalances,
|
|
40
41
|
title: unref($t)(
|
|
41
42
|
{
|
|
@@ -62,10 +63,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
63
|
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
|
|
63
64
|
key: 0,
|
|
64
65
|
variant: "section",
|
|
65
|
-
class: "min-h-48",
|
|
66
|
+
class: "sv-wallet-balances sv-root sv-component sv-loading min-h-48",
|
|
66
67
|
"data-testid": "customer-wallet-balances-skeleton"
|
|
67
68
|
})) : __props.hasError ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
68
69
|
key: 1,
|
|
70
|
+
class: "sv-wallet-balances sv-root sv-component sv-error",
|
|
69
71
|
title: unref($t)({
|
|
70
72
|
defaultMessage: "Could not load wallet balances",
|
|
71
73
|
description: "Error shown when wallet balances fail to load",
|
|
@@ -73,6 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
75
|
})
|
|
74
76
|
}, null, 8, ["title"])) : __props.walletBalances.length > 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
75
77
|
key: 2,
|
|
78
|
+
class: "sv-wallet-balances sv-root sv-component",
|
|
76
79
|
"wallet-balances": __props.walletBalances
|
|
77
80
|
}, null, 8, ["wallet-balances"])) : createCommentVNode("", true);
|
|
78
81
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),l=require("./component-BOqPDAVk.js"),a=require("./useService-Bb9r_sOQ.js"),t=require("./vendor-ui-5pJF5KBP.js"),n=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js");const s=e.defineComponent({__name:"CustomerWalletBalancesBlock",props:{walletBalances:{type:Array}},setup(l){const{$t:a}=t.useIntl();return(n,s)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$14),{class:"sv-wallet-balances",items:l.walletBalances,title:e.unref(a)({defaultMessage:"{count, plural, one {Wallet} other {Wallets}}",description:"Title for the wallets block on the customer overview page",id:"customer_overview.wallet_balances_block.title"},{count:String(l.walletBalances.length)})},null,8,["items","title"]))}}),o=e.defineComponent({__name:"CustomerWalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup(l){const{$t:a}=t.useIntl();return(o,c)=>l.isLoading?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,variant:"section",class:"sv-wallet-balances sv-root sv-component sv-loading min-h-48","data-testid":"customer-wallet-balances-skeleton"})):l.hasError?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$15),{key:1,class:"sv-wallet-balances sv-root sv-component sv-error",title:e.unref(a)({defaultMessage:"Could not load wallet balances",description:"Error shown when wallet balances fail to load",id:"wallet_balance.load_failed"})},null,8,["title"])):l.walletBalances.length>0?(e.openBlock(),e.createBlock(s,{key:2,class:"sv-wallet-balances sv-root sv-component","wallet-balances":l.walletBalances},null,8,["wallet-balances"])):e.createCommentVNode("",!0)}});exports._sfc_main=o,exports.useCustomerWalletBalances=function({customerId:t}){const{getCustomerWalletBalances:n}=function(){const e=l.createRequestService(),a=l.useConfig();return{getCustomerWalletBalances:function(l){return e({url:`${a.apiUrls.config}/portal/customers/${l}/wallets/balance`,options:{method:"POST"},data:{}})}}}(),{data:s,execute:o,apiStatus:c,error:r,isPending:u}=a.useService({service:()=>n(t)});return{walletBalances:e.computed(()=>s.value??null),apiStatus:c,error:r,fetch:o,isPending:u}},exports.useWalletBalanceItems=function(l){const{$t:a}=t.useIntl();return e.computed(()=>{var e;return((null==(e=l.value)?void 0:e.wallet_balances)??[]).map(e=>{var t;return{walletId:e.wallet_id,title:a({defaultMessage:"Balance",description:"Fallback wallet title in wallet balance components",id:"wallet_balance.wallet_ballance_title"}),balance:e.wallet_balance.open_balance,balanceAt:e.wallet_balance.balance_at??(null==(t=l.value)?void 0:t.balance_at)??null}})})};
|