@solvimon/solvimon-web 0.1.0-alpha.1 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +196 -44
- 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-B42EzZ97.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +9 -6
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
- package/dist/{ContentWithAsideLayout-BC-C5Gjt.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
- package/dist/{useCustomerPaymentMethodOptions-Fe_dLxfv.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +29 -37
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +20 -9
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
- package/dist/PaymentHistoryBlock-BiiFJkpT.js +1 -0
- package/dist/PaymentHistoryBlock-D_B099M7.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +19 -12
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/PaymentIntegrationForm-DFnwutjd.mjs +4 -0
- package/dist/PaymentIntegrationForm-xkf4TUaD.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DTIY4s7C.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-uk5MO0ce.mjs +962 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs +50 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
- 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
- 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-DfB5BqiH.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +42 -36
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-Bwewy3HC.mjs +172 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/component-Djrf1L-Z.mjs +889 -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 +99 -5
- 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 +582 -5
- 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 +126 -5
- 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 +538 -5
- 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 +127 -5
- 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 +106 -5
- 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 +131 -5
- 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 +217 -5
- 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 +154 -5
- 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 +132 -5
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +3 -0
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -0
- package/dist/components/WalletBalances/WalletBalances.es.js +120 -0
- package/dist/core/configuration.d.ts +2 -1
- 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/registry.d.ts +1 -1
- package/dist/core/types.d.ts +10 -2
- package/dist/customer-B31QzznT.mjs +32 -0
- package/dist/customer-hDxW1Dbp.js +1 -0
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/en-US-N3CUCsVy.mjs +179 -0
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +43 -34
- package/dist/{invoices-C31Wz1Bu.mjs → invoices-DIYPN2j_.mjs} +2 -1
- package/dist/invoices-DzkA1jDc.js +1 -0
- package/dist/nl-NL-B8U9b85I.mjs +197 -0
- package/dist/nl-NL-qMRaTRrM.js +1 -0
- package/dist/{paymentMethods-CrU4G_2Y.mjs → paymentMethods-67b3UlTZ.mjs} +2 -1
- package/dist/paymentMethods-C_sdTkSF.js +1 -0
- package/dist/{payments-C3LPk9k9.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-NtWI8KlU.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/registry-BkViv4tv.js +1 -0
- package/dist/registry-Df_26rJy.mjs +144 -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 +4935 -5
- 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 +154 -5
- 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 +458 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +3 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +1066 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-3R7aMoky.mjs → subscriptions-ClGIr_aS.mjs} +2 -1
- package/dist/subscriptions-jelITJcX.js +1 -0
- package/dist/{useActionDispatchProvider-CBo_Hwu5.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/useActionDispatchProvider-rw9kWeE0.js +1 -0
- package/dist/useCustomer-Ba9WRtuT.mjs +25 -0
- package/dist/useCustomer-CUcaeQn_.js +1 -0
- package/dist/{useIncrementalLoading-fHCizCSo.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +11 -10
- package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
- package/dist/{useInvoiceData-dyvoDwFF.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
- package/dist/useInvoiceData-D2jkdmlA.js +1 -0
- package/dist/{useInvoicesList-rDvRzMqe.mjs → useInvoicesList-CFzAxyae.mjs} +34 -30
- 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-C2k4npCQ.mjs +26 -0
- package/dist/usePaymentMethodOptions-DYO6xr3-.js +1 -0
- package/dist/{usePaymentMethods-Bq5fWl1Q.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-Dbimodf0.js → usePaymentMethods-ryN_YohI.js} +1 -1
- package/dist/usePayments-Cw5PPEJa.mjs +36 -0
- package/dist/usePayments-DWXPGFvp.js +1 -0
- package/dist/usePortal-CxX4nrE4.js +1 -0
- package/dist/usePortal-cmE08vYs.mjs +12 -0
- package/dist/useService-Bb9r_sOQ.js +1 -0
- package/dist/useService-BsSEI8DZ.mjs +53 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWalletBalanceItems-CkDqmk36.mjs +109 -0
- package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-5pJF5KBP.js +1 -0
- package/dist/vendor-ui-C0K3osvz.mjs +27645 -0
- package/package.json +47 -20
- package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +0 -99
- package/dist/BillingInformation.entry.ce-DkrfEvK_.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +0 -1
- package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +0 -1
- package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +0 -579
- package/dist/Checkout.entry.ce-Bif6vR1K.mjs +0 -5185
- package/dist/Checkout.entry.ce-CkQnLAn4.js +0 -1
- package/dist/ContentWithAsideLayout-CIVSoqFr.js +0 -1
- package/dist/CustomerOverview.entry.ce-C__omsVl.js +0 -1
- package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +0 -231
- package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +0 -135
- package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +0 -1
- package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +0 -583
- package/dist/Invoice.entry.ce-Cgr43ome.js +0 -1
- package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +0 -130
- package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +0 -1
- package/dist/InvoicesList.entry.ce-38iOW5qh.js +0 -1
- package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +0 -105
- package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +0 -1
- package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +0 -134
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +0 -1
- package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +0 -238
- package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +0 -1
- package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +0 -1
- package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +0 -153
- package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +0 -1
- package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +0 -135
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-B_36W1Fc.js +0 -6
- package/dist/auto-BfMZdgp-.mjs +0 -14207
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-BkmcE85U.mjs +0 -58654
- package/dist/component-Df5eNqYX.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-8M_3ur_U.js +0 -1
- package/dist/paymentMethods-CzUqDlvc.js +0 -1
- package/dist/registry-By94DXE2.js +0 -1
- package/dist/registry-shRKDl3K.mjs +0 -127
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-CqK7t-fF.js +0 -1
- package/dist/useActionDispatchProvider-DsIljrhi.js +0 -1
- package/dist/useCustomer-BRY0tuBH.mjs +0 -45
- package/dist/useCustomer-Dp8sGHI0.js +0 -1
- package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +0 -1
- package/dist/useIncrementalLoading-D8oKNxX7.js +0 -1
- package/dist/useInvoiceData-DImEH1ca.js +0 -1
- package/dist/useInvoicesList-BZQ9Y0qN.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-Dz13Nxbi.mjs +0 -272
- package/dist/useService-bNNi4GB8.js +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
const _hoisted_1 = { class: "flex items-start" };
|
|
4
|
+
const _hoisted_2 = { class: "flex flex-col grow" };
|
|
5
|
+
const _hoisted_3 = { class: "flex items-center gap-1" };
|
|
6
|
+
const _hoisted_4 = { class: "flex items-center ml-4 self-center" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "PricingGroupContent",
|
|
9
|
+
props: {
|
|
10
|
+
name: { type: String },
|
|
11
|
+
description: { type: String }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
16
|
+
createElementVNode("div", _hoisted_2, [
|
|
17
|
+
createElementVNode("div", _hoisted_3, [
|
|
18
|
+
createVNode(unref(_sfc_main$1), {
|
|
19
|
+
tag: "span",
|
|
20
|
+
variant: "body-sm",
|
|
21
|
+
weight: "semibold"
|
|
22
|
+
}, {
|
|
23
|
+
default: withCtx(() => [
|
|
24
|
+
createTextVNode(toDisplayString(__props.name), 1)
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
}),
|
|
28
|
+
renderSlot(_ctx.$slots, "badge")
|
|
29
|
+
]),
|
|
30
|
+
createVNode(unref(_sfc_main$1), {
|
|
31
|
+
tag: "span",
|
|
32
|
+
variant: "body-xs",
|
|
33
|
+
shade: "lighter"
|
|
34
|
+
}, {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
createTextVNode(toDisplayString(__props.description), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
createElementVNode("div", _hoisted_4, [
|
|
42
|
+
renderSlot(_ctx.$slots, "default")
|
|
43
|
+
])
|
|
44
|
+
]);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as _
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),r={class:"flex items-start"},n={class:"flex flex-col grow"},a={class:"flex items-center gap-1"},s={class:"flex items-center ml-4 self-center"},i=e.defineComponent({__name:"PricingGroupContent",props:{name:{type:String},description:{type:String}},setup:i=>(o,l)=>(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",n,[e.createElementVNode("div",a,[e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:1}),e.renderSlot(o.$slots,"badge")]),e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.description),1)]),_:1})]),e.createElementVNode("div",s,[e.renderSlot(o.$slots,"default")])]))});exports._sfc_main=i;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, renderSlot, openBlock, createElementBlock, Fragment, mergeProps,
|
|
1
|
+
import { defineComponent, useSlots, computed, renderSlot, openBlock, createElementBlock, Fragment, mergeProps, createElementVNode, normalizeClass, isVNode, Comment, Text } from "vue";
|
|
2
|
+
const _hoisted_1 = ["data-testid"];
|
|
3
|
+
const _hoisted_2 = ["data-testid"];
|
|
4
|
+
const _hoisted_3 = ["data-testid"];
|
|
5
|
+
const _hoisted_4 = ["data-testid"];
|
|
2
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
7
|
__name: "Skeleton",
|
|
4
8
|
props: {
|
|
5
9
|
variant: { type: String },
|
|
6
|
-
class: { type: String }
|
|
10
|
+
class: { type: String },
|
|
11
|
+
dataTestid: { type: String }
|
|
7
12
|
},
|
|
8
13
|
setup(__props) {
|
|
9
14
|
const slots = useSlots();
|
|
@@ -15,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
20
|
if (Array.isArray(node)) {
|
|
16
21
|
return node.every(isVnodeEmpty);
|
|
17
22
|
}
|
|
23
|
+
if (!isVNode(node)) return false;
|
|
18
24
|
const vnode = node;
|
|
19
25
|
if (vnode.type === Comment) {
|
|
20
26
|
return true;
|
|
@@ -42,17 +48,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
48
|
});
|
|
43
49
|
return (_ctx, _cache) => {
|
|
44
50
|
return hasSlotContent.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
45
|
-
__props.variant === "title" ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
46
|
-
|
|
51
|
+
__props.variant === "title" ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
52
|
+
"data-testid": __props.dataTestid,
|
|
53
|
+
class: "sv-skeleton sv-skeleton--title h-6 w-40 rounded border border-gray-50 bg-gray-50/50"
|
|
54
|
+
}), null, 16, _hoisted_1)) : __props.variant === "divider-text" ? (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
55
|
+
"data-testid": __props.dataTestid,
|
|
56
|
+
class: "sv-skeleton sv-skeleton--divider-text mx-auto h-4 w-12 rounded border border-gray-50 bg-gray-50/50"
|
|
57
|
+
}), null, 16, _hoisted_2)) : __props.variant === "section" ? (openBlock(), createElementBlock("div", mergeProps({ key: 2 }, _ctx.$attrs, {
|
|
58
|
+
"data-testid": __props.dataTestid,
|
|
59
|
+
class: "sv-skeleton sv-skeleton--section"
|
|
60
|
+
}), [
|
|
61
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "sv-skeleton__title h-6 w-40 rounded border border-gray-50 bg-gray-50/50" }, null, -1)),
|
|
47
62
|
createElementVNode("div", {
|
|
48
63
|
class: normalizeClass([
|
|
49
|
-
"rounded border border-gray-50 bg-gray-50/50
|
|
64
|
+
"sv-skeleton__body mt-1 rounded border border-gray-50 bg-gray-50/50 md:mt-2",
|
|
50
65
|
_ctx.$props.class
|
|
51
66
|
])
|
|
52
67
|
}, null, 2)
|
|
53
|
-
], 16)) : (openBlock(), createElementBlock("div", mergeProps({ key: 3 }, _ctx.$attrs, {
|
|
54
|
-
|
|
55
|
-
|
|
68
|
+
], 16, _hoisted_3)) : (openBlock(), createElementBlock("div", mergeProps({ key: 3 }, _ctx.$attrs, {
|
|
69
|
+
"data-testid": __props.dataTestid,
|
|
70
|
+
class: ["sv-skeleton rounded border border-gray-50 bg-gray-50/50", _ctx.$props.class]
|
|
71
|
+
}), null, 16, _hoisted_4))
|
|
56
72
|
], 64));
|
|
57
73
|
};
|
|
58
74
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=["data-testid"],r=["data-testid"],s=["data-testid"],a=["data-testid"],n=e.defineComponent({__name:"Skeleton",props:{variant:{type:String},class:{type:String},dataTestid:{type:String}},setup(n){const d=e.useSlots(),o=t=>{if(null==t||!1===t)return!0;if("string"==typeof t||"number"==typeof t)return 0===String(t).trim().length;if(Array.isArray(t))return t.every(o);if(!e.isVNode(t))return!1;const r=t;return r.type===e.Comment||(r.type===e.Text?"string"!=typeof r.children||!r.children.trim():r.type===e.Fragment&&(null==r.children||!!Array.isArray(r.children)&&r.children.every(o)))},l=e.computed(()=>{if(!d.default)return!1;const e=d.default({});return!(!e||0===e.length)&&!e.every(o)});return(d,o)=>l.value?e.renderSlot(d.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["title"===n.variant?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},d.$attrs,{"data-testid":n.dataTestid,class:"sv-skeleton sv-skeleton--title h-6 w-40 rounded border border-gray-50 bg-gray-50/50"}),null,16,t)):"divider-text"===n.variant?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},d.$attrs,{"data-testid":n.dataTestid,class:"sv-skeleton sv-skeleton--divider-text mx-auto h-4 w-12 rounded border border-gray-50 bg-gray-50/50"}),null,16,r)):"section"===n.variant?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:2},d.$attrs,{"data-testid":n.dataTestid,class:"sv-skeleton sv-skeleton--section"}),[o[0]||(o[0]=e.createElementVNode("div",{class:"sv-skeleton__title h-6 w-40 rounded border border-gray-50 bg-gray-50/50"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["sv-skeleton__body mt-1 rounded border border-gray-50 bg-gray-50/50 md:mt-2",d.$props.class])},null,2)],16,s)):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},d.$attrs,{"data-testid":n.dataTestid,class:["sv-skeleton rounded border border-gray-50 bg-gray-50/50",d.$props.class]}),null,16,a))],64))}});exports._sfc_main=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./useIncrementalLoading-DoTTXM2Y.js"),t=require("./subscriptions-jelITJcX.js"),i=require("vue"),s=require("./vendor-ui-5pJF5KBP.js"),o=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("./useActionDispatchProvider-rw9kWeE0.js");const c={class:"sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row"},r={class:"sv-subscriptions-list__item-content grow"},a={class:"sv-subscriptions-list__item-meta mt-4 flex items-center gap-6"},u={key:1,class:"sv-subscriptions-list__item-next-invoice flex gap-1"},l={class:"sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row"},p=i.defineComponent({__name:"SubscriptionsListItem",props:{subscription:{type:Object},paymentMethod:{type:Object},customer:{type:Object},showViewSubscriptionDetailsButton:{type:Boolean,default:!0},showCancelSubscriptionButton:{type:Boolean,default:!0},showRenewSubscriptionButton:{type:Boolean,default:!0}},emits:["view-subscription-details","cancel-subscription","renew-subscription"],setup(e){const t=e,{$t:o}=s.useIntl(),{formatDate:n}=s.useIntl(),p=i.computed(()=>{var e;const i=t.subscription.pricing_plan_schedule_infos;if(0===i.length)return;const s=i[i.length-1];return null==(e=null==s?void 0:s.pricing_plan_version)?void 0:e.pricing_plan}),d=i.computed(()=>{var e;return t.subscription.name||(null==(e=p.value)?void 0:e.name)||o({defaultMessage:"Subscription",description:"The fallback name for when no subscription name can be determined",id:"customer_overview.subscriptions_block.fallback_subscription_name"})}),b=i.computed(()=>{var e;return null==(e=p.value)?void 0:e.description}),m=i.computed(()=>{const e=t.subscription.inactive_periods;return!e||0===e.length}),_=i.computed(()=>{const e=t.subscription.inactive_periods;return Array.isArray(e)&&e.length>0}),v=i.computed(()=>m.value&&t.showCancelSubscriptionButton),f=i.computed(()=>_.value&&t.showRenewSubscriptionButton),h=i.computed(()=>t.showViewSubscriptionDetailsButton);return(t,p)=>(i.openBlock(),i.createBlock(i.unref(s._sfc_main$1),{class:"sv-subscriptions-list__item"},{default:i.withCtx(()=>[i.createElementVNode("div",c,[i.createElementVNode("div",r,[i.createVNode(i.unref(s._sfc_main),{tag:"h3",variant:"heading-2",class:"sv-subscriptions-list__item-title"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.value),1)]),_:1}),b.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main),{key:0,variant:"body-sm",tag:"span",shade:"lighter",class:"sv-subscriptions-list__item-description"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(b.value),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",a,[e.paymentMethod?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$5),{key:0,variant:"condensed",class:"sv-payment-methods__item","payment-method":e.paymentMethod},null,8,["payment-method"])):i.createCommentVNode("",!0),e.subscription.next_invoice?(i.openBlock(),i.createElementBlock("div",u,[i.createVNode(i.unref(s._sfc_main),{tag:"span",variant:"body-xs",shade:"light",weight:"semibold"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"Next billing date",description:"The label for the next billing date",id:"customer.subscriptions_block.next_billing_date"})),1)]),_:1}),i.createVNode(i.unref(s._sfc_main),{tag:"span",variant:"body-xs",shade:"light"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)({date:e.subscription.next_invoice.invoice_date,format:"date",offsetType:"offsetted",timezone:e.customer.timezone})),1)]),_:1})])):i.createCommentVNode("",!0)])]),i.createElementVNode("div",l,[h.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$3),{key:0,color:"primary",class:"sv-action sv-action--primary sv-subscriptions-list__item-details w-full md:w-auto",type:"button",onClick:p[0]||(p[0]=i=>t.$emit("view-subscription-details",{subscriptionId:e.subscription.id}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"Subscription details",description:"The label for the subscription details button in the subscriptions block",id:"customer.subscriptions_block.show_details_button_label"})),1)]),_:1})):i.createCommentVNode("",!0),v.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$3),{key:1,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscriptions-list__item-cancel w-full md:w-auto",type:"button",onClick:p[1]||(p[1]=i=>t.$emit("cancel-subscription",{subscriptionId:e.subscription.id}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"Cancel subscription",description:"The label for the cancel subscription button in the subscriptions block",id:"customer.subscriptions_block.cancel_button_label"})),1)]),_:1})):f.value?(i.openBlock(),i.createBlock(i.unref(s._sfc_main$3),{key:2,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscriptions-list__item-renew w-full md:w-auto",type:"button",onClick:p[2]||(p[2]=i=>t.$emit("renew-subscription",{subscriptionId:e.subscription.id}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"Renew subscription",description:"The label for the renew subscription button in the subscriptions block",id:"customer.subscriptions_block.renew_button_label"})),1)]),_:1})):i.createCommentVNode("",!0)])])]),_:1}))}}),d={key:1,class:"sv-subscriptions-list__items grid grid-cols-1 gap-4"},b=i.defineComponent({__name:"SubscriptionsList",props:{customer:{type:Object},subscriptions:{type:Array},paymentMethods:{default:()=>[],type:Array},isLoading:{type:Boolean},showViewAllButton:{type:Boolean,default:!0},showViewDetailsButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showRenewButton:{type:Boolean,default:!0}},emits:["view-subscription-details","view-all-subscriptions","cancel-subscription","renew-subscription","load-more"],setup(e){const t=e,{$t:o}=s.useIntl(),n=i.computed(()=>t.subscriptions.length>0),c=e=>{if(e)return t.paymentMethods.find(({id:t})=>t===e)},r=i.computed(()=>t.showViewAllButton);return(t,a)=>(i.openBlock(),i.createBlock(i.unref(s._sfc_main$1),{class:"sv-subscriptions-list","no-spacing":"","no-border":"",title:i.unref(o)({defaultMessage:"{count, plural, one {My subscription} other {My subscriptions}}",description:"Title for the subscriptions block on the customer overview page",id:"customer_overview.subscriptions_block.title"},{count:String(e.subscriptions.length)})},i.createSlots({default:i.withCtx(()=>[n.value?(i.openBlock(),i.createElementBlock("div",d,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.subscriptions,s=>(i.openBlock(),i.createBlock(p,{key:s.id,subscription:s,"payment-method":c(s.payment_method_id),customer:e.customer,"show-view-subscription-details-button":e.showViewDetailsButton,"show-cancel-subscription-button":e.showCancelButton,"show-renew-subscription-button":e.showRenewButton,onViewSubscriptionDetails:a[1]||(a[1]=e=>t.$emit("view-subscription-details",e)),onCancelSubscription:a[2]||(a[2]=e=>t.$emit("cancel-subscription",e)),onRenewSubscription:a[3]||(a[3]=e=>t.$emit("renew-subscription",e))},null,8,["subscription","payment-method","customer","show-view-subscription-details-button","show-cancel-subscription-button","show-renew-subscription-button"]))),128))])):(i.openBlock(),i.createBlock(i.unref(s._sfc_main$1),{key:0,class:"sv-empty-state sv-subscriptions-list__empty"},{default:i.withCtx(()=>[i.createVNode(i.unref(s._sfc_main),{tag:"h3",variant:"heading-3"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"No subscriptions",description:"Title for the my subscriptions block on the customer overview page",id:"customer_overview.subscriptions_block.no_active_subscription_title"})),1)]),_:1}),i.createVNode(i.unref(s._sfc_main),{variant:"body-xs",shade:"lighter"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"There’s no active subscription to display.",description:"Text that is being displayed when there is no active subscription in the subscriptions block",id:"customer_overview.subscriptions_block.no_active_subscription_content"})),1)]),_:1})]),_:1}))]),_:2},[r.value?{name:"right",fn:i.withCtx(()=>[i.createVNode(i.unref(s._sfc_main$3),{size:"sm",variant:"ghost",color:"gray","icon-suffix":"arrow_right_alt",class:"sv-action sv-action--ghost sv-subscriptions-list__view-all",type:"button",onClick:a[0]||(a[0]=e=>t.$emit("view-all-subscriptions"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(o)({defaultMessage:"View all",description:"The text for the view all subscriptions button",id:"customer_overview.subscriptions_block.view_all_button_label"})),1)]),_:1})]),key:"0"}:void 0]),1032,["title"]))}}),m=i.defineComponent({__name:"SubscriptionsList",props:{customer:{type:null},subscriptions:{type:Array},paymentMethods:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},emits:["load-more"],setup(e){const{dispatchAction:t}=n.useActionDispatchProvider();return(s,n)=>{var c,r,a,u;return e.isLoading?(i.openBlock(),i.createBlock(o._sfc_main,{key:0,variant:"section",class:"sv-subscriptions-list sv-root sv-component sv-loading min-h-[100px]","data-testid":"subscriptions-list-skeleton"})):e.customer?(i.openBlock(),i.createBlock(b,{key:1,class:"sv-subscriptions-list sv-root sv-component",customer:e.customer,subscriptions:e.subscriptions,"payment-methods":e.paymentMethods,"is-loading":e.isLoading,"show-view-all-button":null==(c=e.configuration)?void 0:c.showViewAllButton,"show-view-details-button":null==(r=e.configuration)?void 0:r.showViewDetailsButton,"show-cancel-button":null==(a=e.configuration)?void 0:a.showCancelButton,"show-renew-button":null==(u=e.configuration)?void 0:u.showRenewButton,onViewSubscriptionDetails:n[0]||(n[0]=e=>i.unref(t)({action:"view-subscription-details",data:{subscriptionId:e.subscriptionId}})),onViewAllSubscriptions:n[1]||(n[1]=e=>i.unref(t)({action:"view-all-subscriptions"})),onCancelSubscription:n[2]||(n[2]=e=>i.unref(t)({action:"cancel-subscription",data:{subscriptionId:e.subscriptionId}})),onRenewSubscription:n[3]||(n[3]=e=>i.unref(t)({action:"renew-subscription",data:{subscriptionId:e.subscriptionId}})),onLoadMore:n[4]||(n[4]=e=>s.$emit("load-more"))},null,8,["customer","subscriptions","payment-methods","is-loading","show-view-all-button","show-view-details-button","show-cancel-button","show-renew-button"])):i.createCommentVNode("",!0)}}});exports._sfc_main=m,exports.useSubscriptionsList=function({customerId:i,batchSize:s=15}){const o=t.createSubscriptionsService();return e.useIncrementalLoading({service:async e=>o.getActiveSubscriptions({customerId:i,pagination:{page:e,pageSize:s}})})};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
2
|
-
import { c as createSubscriptionsService } from "./subscriptions-
|
|
1
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
|
|
2
|
+
import { c as createSubscriptionsService } from "./subscriptions-ClGIr_aS.mjs";
|
|
3
3
|
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, createSlots, Fragment, renderList } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as _sfc_main$
|
|
6
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-
|
|
4
|
+
import { u as useIntl, b as _sfc_main$3, _ as _sfc_main$4, j as _sfc_main$5, e as _sfc_main$6 } from "./vendor-ui-C0K3osvz.mjs";
|
|
5
|
+
import { _ as _sfc_main$7 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
6
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
|
|
7
7
|
function useSubscriptionsList({
|
|
8
8
|
customerId,
|
|
9
9
|
batchSize: pageSize = 15
|
|
@@ -15,14 +15,14 @@ function useSubscriptionsList({
|
|
|
15
15
|
});
|
|
16
16
|
return useIncrementalLoading({ service });
|
|
17
17
|
}
|
|
18
|
-
const _hoisted_1$1 = { class: "flex flex-col gap-4 md:flex-row" };
|
|
19
|
-
const _hoisted_2 = { class: "grow" };
|
|
20
|
-
const _hoisted_3 = { class: "mt-4 flex items-center gap-6" };
|
|
18
|
+
const _hoisted_1$1 = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row" };
|
|
19
|
+
const _hoisted_2 = { class: "sv-subscriptions-list__item-content grow" };
|
|
20
|
+
const _hoisted_3 = { class: "sv-subscriptions-list__item-meta mt-4 flex items-center gap-6" };
|
|
21
21
|
const _hoisted_4 = {
|
|
22
22
|
key: 1,
|
|
23
|
-
class: "flex gap-1"
|
|
23
|
+
class: "sv-subscriptions-list__item-next-invoice flex gap-1"
|
|
24
24
|
};
|
|
25
|
-
const _hoisted_5 = { class: "flex flex-col items-center gap-2 md:flex-row" };
|
|
25
|
+
const _hoisted_5 = { class: "sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row" };
|
|
26
26
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
27
27
|
__name: "SubscriptionsListItem",
|
|
28
28
|
props: {
|
|
@@ -79,24 +79,26 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
);
|
|
80
80
|
const isDetailButtonVisible = computed(() => props.showViewSubscriptionDetailsButton);
|
|
81
81
|
return (_ctx, _cache) => {
|
|
82
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
82
|
+
return openBlock(), createBlock(unref(_sfc_main$3), { class: "sv-subscriptions-list__item" }, {
|
|
83
83
|
default: withCtx(() => [
|
|
84
84
|
createElementVNode("div", _hoisted_1$1, [
|
|
85
85
|
createElementVNode("div", _hoisted_2, [
|
|
86
|
-
createVNode(unref(_sfc_main$
|
|
86
|
+
createVNode(unref(_sfc_main$4), {
|
|
87
87
|
tag: "h3",
|
|
88
|
-
variant: "heading-2"
|
|
88
|
+
variant: "heading-2",
|
|
89
|
+
class: "sv-subscriptions-list__item-title"
|
|
89
90
|
}, {
|
|
90
91
|
default: withCtx(() => [
|
|
91
92
|
createTextVNode(toDisplayString(subscriptionName.value), 1)
|
|
92
93
|
]),
|
|
93
94
|
_: 1
|
|
94
95
|
}),
|
|
95
|
-
subscriptionDescription.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
96
|
+
subscriptionDescription.value ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
96
97
|
key: 0,
|
|
97
98
|
variant: "body-sm",
|
|
98
99
|
tag: "span",
|
|
99
|
-
shade: "lighter"
|
|
100
|
+
shade: "lighter",
|
|
101
|
+
class: "sv-subscriptions-list__item-description"
|
|
100
102
|
}, {
|
|
101
103
|
default: withCtx(() => [
|
|
102
104
|
createTextVNode(toDisplayString(subscriptionDescription.value), 1)
|
|
@@ -104,13 +106,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
104
106
|
_: 1
|
|
105
107
|
})) : createCommentVNode("", true),
|
|
106
108
|
createElementVNode("div", _hoisted_3, [
|
|
107
|
-
__props.paymentMethod ? (openBlock(), createBlock(unref(_sfc_main$
|
|
109
|
+
__props.paymentMethod ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
108
110
|
key: 0,
|
|
109
111
|
variant: "condensed",
|
|
112
|
+
class: "sv-payment-methods__item",
|
|
110
113
|
"payment-method": __props.paymentMethod
|
|
111
114
|
}, null, 8, ["payment-method"])) : createCommentVNode("", true),
|
|
112
115
|
__props.subscription.next_invoice ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
113
|
-
createVNode(unref(_sfc_main$
|
|
116
|
+
createVNode(unref(_sfc_main$4), {
|
|
114
117
|
tag: "span",
|
|
115
118
|
variant: "body-xs",
|
|
116
119
|
shade: "light",
|
|
@@ -125,7 +128,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
125
128
|
]),
|
|
126
129
|
_: 1
|
|
127
130
|
}),
|
|
128
|
-
createVNode(unref(_sfc_main$
|
|
131
|
+
createVNode(unref(_sfc_main$4), {
|
|
129
132
|
tag: "span",
|
|
130
133
|
variant: "body-xs",
|
|
131
134
|
shade: "light"
|
|
@@ -144,10 +147,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
144
147
|
])
|
|
145
148
|
]),
|
|
146
149
|
createElementVNode("div", _hoisted_5, [
|
|
147
|
-
isDetailButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
150
|
+
isDetailButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
148
151
|
key: 0,
|
|
149
152
|
color: "primary",
|
|
150
|
-
class: "w-full md:w-auto",
|
|
153
|
+
class: "sv-action sv-action--primary sv-subscriptions-list__item-details w-full md:w-auto",
|
|
151
154
|
type: "button",
|
|
152
155
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view-subscription-details", { subscriptionId: __props.subscription.id }))
|
|
153
156
|
}, {
|
|
@@ -160,11 +163,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
160
163
|
]),
|
|
161
164
|
_: 1
|
|
162
165
|
})) : createCommentVNode("", true),
|
|
163
|
-
isCancelButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
166
|
+
isCancelButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
164
167
|
key: 1,
|
|
165
168
|
variant: "outline",
|
|
166
169
|
color: "gray",
|
|
167
|
-
class: "w-full md:w-auto",
|
|
170
|
+
class: "sv-action sv-action--secondary sv-subscriptions-list__item-cancel w-full md:w-auto",
|
|
168
171
|
type: "button",
|
|
169
172
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("cancel-subscription", { subscriptionId: __props.subscription.id }))
|
|
170
173
|
}, {
|
|
@@ -176,11 +179,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
176
179
|
})), 1)
|
|
177
180
|
]),
|
|
178
181
|
_: 1
|
|
179
|
-
})) : isRenewButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
182
|
+
})) : isRenewButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
180
183
|
key: 2,
|
|
181
184
|
variant: "outline",
|
|
182
185
|
color: "gray",
|
|
183
|
-
class: "w-full md:w-auto",
|
|
186
|
+
class: "sv-action sv-action--secondary sv-subscriptions-list__item-renew w-full md:w-auto",
|
|
184
187
|
type: "button",
|
|
185
188
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("renew-subscription", { subscriptionId: __props.subscription.id }))
|
|
186
189
|
}, {
|
|
@@ -203,7 +206,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
203
206
|
});
|
|
204
207
|
const _hoisted_1 = {
|
|
205
208
|
key: 1,
|
|
206
|
-
class: "grid grid-cols-1 gap-4"
|
|
209
|
+
class: "sv-subscriptions-list__items grid grid-cols-1 gap-4"
|
|
207
210
|
};
|
|
208
211
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
209
212
|
__name: "SubscriptionsList",
|
|
@@ -228,7 +231,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
228
231
|
};
|
|
229
232
|
const isViewAllButtonVisible = computed(() => props.showViewAllButton);
|
|
230
233
|
return (_ctx, _cache) => {
|
|
231
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
234
|
+
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
235
|
+
class: "sv-subscriptions-list",
|
|
232
236
|
"no-spacing": "",
|
|
233
237
|
"no-border": "",
|
|
234
238
|
title: unref($t)(
|
|
@@ -241,9 +245,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
241
245
|
)
|
|
242
246
|
}, createSlots({
|
|
243
247
|
default: withCtx(() => [
|
|
244
|
-
!hasSubscriptions.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
248
|
+
!hasSubscriptions.value ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
249
|
+
key: 0,
|
|
250
|
+
class: "sv-empty-state sv-subscriptions-list__empty"
|
|
251
|
+
}, {
|
|
245
252
|
default: withCtx(() => [
|
|
246
|
-
createVNode(unref(_sfc_main$
|
|
253
|
+
createVNode(unref(_sfc_main$4), {
|
|
247
254
|
tag: "h3",
|
|
248
255
|
variant: "heading-3"
|
|
249
256
|
}, {
|
|
@@ -256,7 +263,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
256
263
|
]),
|
|
257
264
|
_: 1
|
|
258
265
|
}),
|
|
259
|
-
createVNode(unref(_sfc_main$
|
|
266
|
+
createVNode(unref(_sfc_main$4), {
|
|
260
267
|
variant: "body-xs",
|
|
261
268
|
shade: "lighter"
|
|
262
269
|
}, {
|
|
@@ -281,13 +288,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
281
288
|
"show-view-subscription-details-button": __props.showViewDetailsButton,
|
|
282
289
|
"show-cancel-subscription-button": __props.showCancelButton,
|
|
283
290
|
"show-renew-subscription-button": __props.showRenewButton,
|
|
284
|
-
"show-view-all-button": __props.showViewAllButton,
|
|
285
|
-
"show-cancel-button": __props.showCancelButton,
|
|
286
|
-
"show-renew-button": __props.showRenewButton,
|
|
287
291
|
onViewSubscriptionDetails: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("view-subscription-details", $event)),
|
|
288
292
|
onCancelSubscription: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("cancel-subscription", $event)),
|
|
289
293
|
onRenewSubscription: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("renew-subscription", $event))
|
|
290
|
-
}, null, 8, ["subscription", "payment-method", "customer", "show-view-subscription-details-button", "show-cancel-subscription-button", "show-renew-subscription-button"
|
|
294
|
+
}, null, 8, ["subscription", "payment-method", "customer", "show-view-subscription-details-button", "show-cancel-subscription-button", "show-renew-subscription-button"]);
|
|
291
295
|
}), 128))
|
|
292
296
|
]))
|
|
293
297
|
]),
|
|
@@ -296,11 +300,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
296
300
|
isViewAllButtonVisible.value ? {
|
|
297
301
|
name: "right",
|
|
298
302
|
fn: withCtx(() => [
|
|
299
|
-
createVNode(unref(_sfc_main$
|
|
303
|
+
createVNode(unref(_sfc_main$6), {
|
|
300
304
|
size: "sm",
|
|
301
305
|
variant: "ghost",
|
|
302
306
|
color: "gray",
|
|
303
307
|
"icon-suffix": "arrow_right_alt",
|
|
308
|
+
class: "sv-action sv-action--ghost sv-subscriptions-list__view-all",
|
|
304
309
|
type: "button",
|
|
305
310
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view-all-subscriptions"))
|
|
306
311
|
}, {
|
|
@@ -334,13 +339,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
334
339
|
const { dispatchAction } = useActionDispatchProvider();
|
|
335
340
|
return (_ctx, _cache) => {
|
|
336
341
|
var _a, _b, _c, _d;
|
|
337
|
-
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$
|
|
342
|
+
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$7, {
|
|
338
343
|
key: 0,
|
|
339
344
|
variant: "section",
|
|
340
|
-
class: "min-h-[100px]",
|
|
345
|
+
class: "sv-subscriptions-list sv-root sv-component sv-loading min-h-[100px]",
|
|
341
346
|
"data-testid": "subscriptions-list-skeleton"
|
|
342
347
|
})) : __props.customer ? (openBlock(), createBlock(_sfc_main$1, {
|
|
343
348
|
key: 1,
|
|
349
|
+
class: "sv-subscriptions-list sv-root sv-component",
|
|
344
350
|
customer: __props.customer,
|
|
345
351
|
subscriptions: __props.subscriptions,
|
|
346
352
|
"payment-methods": __props.paymentMethods,
|