@solvimon/solvimon-web 0.1.0-alpha.5 → 0.1.0-alpha.7
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/Alert.vue.es-DMPvSykx.js +1 -0
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +172 -0
- package/dist/Amount.vue.es-C6JE5rL8.mjs +23 -0
- package/dist/Amount.vue.es-h8wulbBG.js +1 -0
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +93 -0
- package/dist/Avatar.vue.es-BbyE0AjW.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CvUwy_tp.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs} +8 -5
- package/dist/Button.vue.es-6sBk5tBL.mjs +408 -0
- package/dist/Button.vue.es-BC4_TItq.js +1 -0
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +115 -0
- package/dist/CardContent.vue.es-i9ivuGKG.js +1 -0
- package/dist/Chip.vue.es-D0fkSe8a.js +1 -0
- package/dist/Chip.vue.es-DcW2CjUA.mjs +1576 -0
- package/dist/Comparators.vue.es-BdxDqU8o.js +1 -0
- package/dist/Comparators.vue.es-DdTKGB80.mjs +406 -0
- package/dist/{ContentWithAsideLayout-CKbnuXMU.mjs → ContentWithAsideLayout-Ct24RV-2.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-BjJufFeN.js → ContentWithAsideLayout-UHovpjZu.js} +1 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +175 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +1 -0
- package/dist/{useCustomerPaymentMethodOptions-BlFH4zxG.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs} +16 -33
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +72 -0
- package/dist/DividerText.vue.es-yiFdPQvo.js +1 -0
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +30 -0
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +1 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +825 -0
- package/dist/IconButton.vue.es-DiSiGPWO.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DaEPSNrY.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs} +3 -2
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CLU-8-Ao.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs} +9 -5
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs +1067 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +1 -0
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +1 -0
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +1255 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-DAwMy1l8.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs} +6 -5
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +1 -0
- package/dist/Section.vue.es-3-H1pUTB.mjs +79 -0
- package/dist/Section.vue.es-BuzTXRLP.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs} +17 -5
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Cj4cnM8z.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs} +24 -24
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +1 -0
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +1 -0
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +759 -0
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +1 -0
- package/dist/_flatRest.es-BHFPCqZh.mjs +642 -0
- package/dist/_flatRest.es-dFffnTpX.js +1 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/api.es-B4qAAJKr.js +1 -0
- package/dist/api.es-UkfpLiLL.mjs +83 -0
- package/dist/{cloneDeep-DranHQkY.js → cloneDeep-Hs8Pp07F.js} +1 -1
- package/dist/cn.es-C7xoIs3C.js +1 -0
- package/dist/cn.es-tfxVlz02.mjs +3191 -0
- package/dist/component-ZRZIt3ZW.js +1 -0
- package/dist/component-dpA83LIN.mjs +6569 -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 -10
- 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 +27 -23
- 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 +6 -12
- 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 +2612 -28
- 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 +4 -4
- 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 -2
- 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 +4 -4
- 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 +12 -9
- 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 +4821 -8
- 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 -4
- 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 +2 -2
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customer-CJrpbGX4.mjs +32 -0
- package/dist/customer-CcQR-JIm.js +1 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/customer.es-LIW2YmLL.mjs +30 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D5H_ySFv.mjs +68 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-CI71bVGE.mjs +2521 -0
- package/dist/index-WLSPwi90.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-BBJF2O2l.js +1 -0
- package/dist/index.es-LCAKs4tH.mjs +438 -0
- package/dist/index.es.js +1 -1
- package/dist/invoices-3kVHsAXr.js +1 -0
- package/dist/{invoices-CoEBP5UT.mjs → invoices-CNK1Ushv.mjs} +15 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +131 -0
- package/dist/isEmpty.es-Dycf-CD_.js +1 -0
- package/dist/{paymentMethods-C2gWIbEr.mjs → paymentMethods-C-ApE-G4.mjs} +2 -1
- package/dist/paymentMethods-DZRf0WRl.js +1 -0
- package/dist/{payments-DLjkq_hN.mjs → payments-CE9U7aKK.mjs} +1 -1
- package/dist/{payments-ClJySb0d.js → payments-CLt0SExf.js} +1 -1
- package/dist/pick.es-BgDAfhAl.js +1 -0
- package/dist/pick.es-DdVOyp0Q.mjs +45 -0
- package/dist/{registry-bo_7pcbl.mjs → registry-B99ZnfEn.mjs} +1 -2
- package/dist/registry-ClZ43bQn.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 +1873 -172
- 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 +31 -17
- 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 +46 -40
- package/dist/solvimon-web.css +1 -1
- package/dist/{sprite-i5T7eZnk-C55G-dBo.js → sprite.svg.es-CCc3Mz1x.js} +1 -1
- package/dist/{sprite-i5T7eZnk-i5T7eZnk.mjs → sprite.svg.es-DZD704h3.mjs} +1 -1
- package/dist/subscriptions-CS8HTxzC.js +1 -0
- package/dist/{subscriptions-BepBTXR5.mjs → subscriptions-CoeCrY1I.mjs} +2 -1
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/{useActionDispatchProvider-D4OtXsNA.js → useActionDispatchProvider-CWVV_xsi.js} +1 -1
- package/dist/{useActionDispatchProvider-B_SkyymZ.mjs → useActionDispatchProvider-eO2qFPGv.mjs} +1 -1
- package/dist/useCustomer--jycAz--.mjs +25 -0
- package/dist/useCustomer-PthyTFLl.js +1 -0
- package/dist/useIncrementalLoading-CAdNW-Bf.js +1 -0
- package/dist/{useIncrementalLoading-BqD4k_-r.mjs → useIncrementalLoading-CcnL3flF.mjs} +5 -1
- package/dist/{useInvoiceData-7mqBeSPa.mjs → useInvoiceData-BiMMoVoW.mjs} +2 -2
- package/dist/{useInvoiceData-DvNf2402.js → useInvoiceData-DvQO_nKz.js} +1 -1
- package/dist/useInvoicesList-CHkwSNO9.js +1 -0
- package/dist/{useInvoicesList-B5vYDRyl.mjs → useInvoicesList-DFhF_gp7.mjs} +261 -24
- package/dist/{usePaymentMethods-BdZkt6re.js → usePaymentMethods-BRQ7-dUr.js} +1 -1
- package/dist/{usePaymentMethods-4Io2ZHlo.mjs → usePaymentMethods-BX2RnHZN.mjs} +2 -2
- package/dist/{useService-D-CUtlp3.js → useService-B67YWAcN.js} +1 -1
- package/dist/{useService-B4qv5N2D.mjs → useService-DG_zedHV.mjs} +1 -0
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +308 -0
- package/dist/useWalletBalanceItems-BY3gq0fc.js +1 -0
- package/package.json +14 -8
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BouYyZhD.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-sbmK2un9.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-NRmK7iN3.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ck_1lRDB.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DFCX2tcj.mjs +0 -6568
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BOZurit_.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D49i1DHa.js +0 -1
- package/dist/component-B0RYS5uK.mjs +0 -58666
- package/dist/component-BeqkeC9h.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/invoices-CUrXmVXe.js +0 -1
- package/dist/paymentMethods-D_rYLg3F.js +0 -1
- package/dist/registry-EPF-VAYZ.js +0 -1
- package/dist/subscriptions-DERHtyHo.js +0 -1
- package/dist/useCustomer-C0RKKfGJ.mjs +0 -45
- package/dist/useCustomer-CEFUPIDZ.js +0 -1
- package/dist/useCustomerPaymentMethodOptions-BgCFkLeQ.js +0 -1
- package/dist/useIncrementalLoading-CDpeHhKs.js +0 -1
- package/dist/useInvoicesList-CBqZG_rw.js +0 -1
- package/dist/useWalletBalanceItems-B0NZuM3W.mjs +0 -105
- package/dist/useWalletBalanceItems-CzV3PcJH.js +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, createSlots, withCtx, createElementBlock, Fragment, renderList, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$3 } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$2 } from "./Section.vue.es-3-H1pUTB.mjs";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./PaymentMethod.vue.es-nXZoQjG3.mjs";
|
|
4
|
+
import { _ as _sfc_main$5 } from "./Button.vue.es-6sBk5tBL.mjs";
|
|
5
|
+
import { a as useIntl, _ as _sfc_main$4 } from "./component-dpA83LIN.mjs";
|
|
6
|
+
import { _ as _sfc_main$6 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
|
|
7
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
|
|
7
8
|
const _hoisted_1 = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "flex flex-col gap-2"
|
|
@@ -23,7 +24,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
23
24
|
const { $t } = useIntl();
|
|
24
25
|
const hasPaymentMethods = computed(() => props.paymentMethods.length > 0);
|
|
25
26
|
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
27
|
+
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
27
28
|
"no-spacing": "",
|
|
28
29
|
"no-border": "",
|
|
29
30
|
title: unref($t)(
|
|
@@ -38,18 +39,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
default: withCtx(() => [
|
|
39
40
|
hasPaymentMethods.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
40
41
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.paymentMethods, (paymentMethod) => {
|
|
41
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
42
|
+
return openBlock(), createBlock(unref(_sfc_main$2), {
|
|
42
43
|
key: paymentMethod.id
|
|
43
44
|
}, {
|
|
44
45
|
default: withCtx(() => [
|
|
45
|
-
createVNode(unref(_sfc_main$
|
|
46
|
+
createVNode(unref(_sfc_main$3), { "payment-method": paymentMethod }, null, 8, ["payment-method"])
|
|
46
47
|
]),
|
|
47
48
|
_: 2
|
|
48
49
|
}, 1024);
|
|
49
50
|
}), 128))
|
|
50
|
-
])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
51
|
+
])) : (openBlock(), createBlock(unref(_sfc_main$2), { key: 1 }, {
|
|
51
52
|
default: withCtx(() => [
|
|
52
|
-
createVNode(unref(_sfc_main$
|
|
53
|
+
createVNode(unref(_sfc_main$4), {
|
|
53
54
|
variant: "body-sm",
|
|
54
55
|
shade: "lighter",
|
|
55
56
|
"no-spacing": ""
|
|
@@ -63,7 +64,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
63
64
|
]),
|
|
64
65
|
_: 1
|
|
65
66
|
}),
|
|
66
|
-
__props.showAddButton ? (openBlock(), createBlock(unref(_sfc_main$
|
|
67
|
+
__props.showAddButton ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
67
68
|
key: 0,
|
|
68
69
|
class: "mt-4 w-full",
|
|
69
70
|
variant: "outline",
|
|
@@ -90,7 +91,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
90
91
|
__props.showViewAllButton ? {
|
|
91
92
|
name: "right",
|
|
92
93
|
fn: withCtx(() => [
|
|
93
|
-
createVNode(unref(_sfc_main$
|
|
94
|
+
createVNode(unref(_sfc_main$5), {
|
|
94
95
|
size: "sm",
|
|
95
96
|
variant: "ghost",
|
|
96
97
|
color: "gray",
|
|
@@ -119,7 +120,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
120
|
props: {
|
|
120
121
|
isLoading: { type: Boolean },
|
|
121
122
|
paymentMethods: { type: Array },
|
|
122
|
-
paymentMethodsOptions: { type: Array },
|
|
123
123
|
maxPaymentMethods: { type: Number },
|
|
124
124
|
configuration: { default: () => ({
|
|
125
125
|
showViewAllButton: true,
|
|
@@ -130,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
130
|
const { dispatchAction } = useActionDispatchProvider();
|
|
131
131
|
return (_ctx, _cache) => {
|
|
132
132
|
var _a, _b;
|
|
133
|
-
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$
|
|
133
|
+
return __props.isLoading ? (openBlock(), createBlock(_sfc_main$6, {
|
|
134
134
|
key: 0,
|
|
135
135
|
variant: "section",
|
|
136
136
|
class: "h-72",
|
|
@@ -139,31 +139,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
139
|
key: 1,
|
|
140
140
|
"is-loading": __props.isLoading,
|
|
141
141
|
"payment-methods": __props.paymentMethods,
|
|
142
|
-
"payment-methods-options": __props.paymentMethodsOptions,
|
|
143
142
|
"show-view-all-button": (_a = __props.configuration) == null ? void 0 : _a.showViewAllButton,
|
|
144
143
|
"show-add-button": (_b = __props.configuration) == null ? void 0 : _b.showAddButton,
|
|
145
144
|
onViewAllPaymentMethods: _cache[0] || (_cache[0] = ($event) => unref(dispatchAction)({ action: "view-all-payment-methods" })),
|
|
146
145
|
onAddPaymentMethod: _cache[1] || (_cache[1] = ($event) => unref(dispatchAction)({ action: "add-payment-method" }))
|
|
147
|
-
}, null, 8, ["is-loading", "payment-methods", "
|
|
146
|
+
}, null, 8, ["is-loading", "payment-methods", "show-view-all-button", "show-add-button"]));
|
|
148
147
|
};
|
|
149
148
|
}
|
|
150
149
|
});
|
|
151
|
-
function useCustomerPaymentMethodOptions({
|
|
152
|
-
customerId,
|
|
153
|
-
amount
|
|
154
|
-
}) {
|
|
155
|
-
const { getPaymentMethodOptions } = createPaymentMethodsService();
|
|
156
|
-
const initialValue = [];
|
|
157
|
-
const { data, execute, error, apiStatus, isPending } = useService({
|
|
158
|
-
initialValue,
|
|
159
|
-
service: async () => {
|
|
160
|
-
const response = await getPaymentMethodOptions({ customerId, amount });
|
|
161
|
-
return response.flatMap((entry) => entry.options ?? []);
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
return { error, apiStatus, items: data, fetch: execute, isPending };
|
|
165
|
-
}
|
|
166
150
|
export {
|
|
167
|
-
_sfc_main as _
|
|
168
|
-
useCustomerPaymentMethodOptions as u
|
|
151
|
+
_sfc_main as _
|
|
169
152
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=require("vue"),e=s.defineComponent({__name:"Divider",props:{spacing:{default:"md"}},setup:e=>(n,a)=>(s.openBlock(),s.createElementBlock("hr",{class:s.normalizeClass({"my-1":"xxs"===e.spacing,"my-2":"xs"===e.spacing,"my-4":"sm"===e.spacing,"my-6":"md"===e.spacing,"my-8":"lg"===e.spacing,"my-10":"xl"===e.spacing})},null,2))});exports._sfc_main=e;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "Divider",
|
|
4
|
+
props: {
|
|
5
|
+
spacing: { default: "md" }
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("hr", {
|
|
10
|
+
class: normalizeClass({
|
|
11
|
+
"my-1": __props.spacing === "xxs",
|
|
12
|
+
"my-2": __props.spacing === "xs",
|
|
13
|
+
"my-4": __props.spacing === "sm",
|
|
14
|
+
"my-6": __props.spacing === "md",
|
|
15
|
+
"my-8": __props.spacing === "lg",
|
|
16
|
+
"my-10": __props.spacing === "xl"
|
|
17
|
+
})
|
|
18
|
+
}, null, 2);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as _
|
|
24
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { computed, defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./component-dpA83LIN.mjs";
|
|
3
|
+
const dividerBaseClasses = "relative translate-y-1/2 top-1/2 border-t border-gray-100";
|
|
4
|
+
const useDividerTextClasses = (props) => {
|
|
5
|
+
const leftDividerClasses = computed(() => {
|
|
6
|
+
let classes = `${dividerBaseClasses}`;
|
|
7
|
+
if (props.hasOuterDivider && props.textPosition === "left") {
|
|
8
|
+
classes += " w-2";
|
|
9
|
+
} else {
|
|
10
|
+
classes += " grow";
|
|
11
|
+
}
|
|
12
|
+
return classes;
|
|
13
|
+
});
|
|
14
|
+
const rightDividerClasses = computed(() => {
|
|
15
|
+
let classes = `${dividerBaseClasses}`;
|
|
16
|
+
if (props.hasOuterDivider && props.textPosition === "right") {
|
|
17
|
+
classes += " w-2";
|
|
18
|
+
} else {
|
|
19
|
+
classes += " grow";
|
|
20
|
+
}
|
|
21
|
+
return classes;
|
|
22
|
+
});
|
|
23
|
+
return { leftDividerClasses, rightDividerClasses };
|
|
24
|
+
};
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
+
__name: "DividerText",
|
|
27
|
+
props: {
|
|
28
|
+
spacing: { default: "none" },
|
|
29
|
+
textPosition: { default: "left" },
|
|
30
|
+
hasOuterDivider: { type: Boolean, default: false },
|
|
31
|
+
text: {}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const { leftDividerClasses, rightDividerClasses } = useDividerTextClasses(props);
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", {
|
|
38
|
+
class: normalizeClass(["flex gap-2", {
|
|
39
|
+
"my-2": __props.spacing === "xs",
|
|
40
|
+
"my-4": __props.spacing === "sm",
|
|
41
|
+
"my-6": __props.spacing === "md",
|
|
42
|
+
"my-8": __props.spacing === "lg",
|
|
43
|
+
"my-10": __props.spacing === "xl"
|
|
44
|
+
}])
|
|
45
|
+
}, [
|
|
46
|
+
__props.textPosition === "left" && __props.hasOuterDivider || ["center", "right"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: normalizeClass(unref(leftDividerClasses))
|
|
49
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
50
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
51
|
+
createVNode(unref(_sfc_main$1), {
|
|
52
|
+
tag: "span",
|
|
53
|
+
"no-spacing": "",
|
|
54
|
+
variant: "caps-heading"
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
})
|
|
61
|
+
]),
|
|
62
|
+
__props.textPosition === "right" && __props.hasOuterDivider || ["center", "left"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: normalizeClass(unref(rightDividerClasses))
|
|
65
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
66
|
+
], 2);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
_sfc_main as _
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./component-ZRZIt3ZW.js"),i="relative translate-y-1/2 top-1/2 border-t border-gray-100",s=e.defineComponent({__name:"DividerText",props:{spacing:{default:"none"},textPosition:{default:"left"},hasOuterDivider:{type:Boolean,default:!1},text:{}},setup(s){const r=s,{leftDividerClasses:n,rightDividerClasses:a}=(t=>({leftDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"left"===t.textPosition?e+=" w-2":e+=" grow",e}),rightDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"right"===t.textPosition?e+=" w-2":e+=" grow",e})}))(r);return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"my-2":"xs"===s.spacing,"my-4":"sm"===s.spacing,"my-6":"md"===s.spacing,"my-8":"lg"===s.spacing,"my-10":"xl"===s.spacing}])},["left"===s.textPosition&&s.hasOuterDivider||["center","right"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n))},null,2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default",{},()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span","no-spacing":"",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.text),1)]),_:1})]),"right"===s.textPosition&&s.hasOuterDivider||["center","left"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},null,2)):e.createCommentVNode("",!0)],2))}});exports._sfc_main=s;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, mergeProps } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./Alert.vue.es-DsJ1ckRU.mjs";
|
|
3
|
+
import { a as useIntl } from "./component-dpA83LIN.mjs";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ErrorNotification",
|
|
6
|
+
props: {
|
|
7
|
+
title: {},
|
|
8
|
+
description: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const { formatMessage } = useIntl();
|
|
12
|
+
const props = __props;
|
|
13
|
+
const title = computed(
|
|
14
|
+
() => props.title ?? formatMessage({
|
|
15
|
+
defaultMessage: "Something went wrong",
|
|
16
|
+
id: "error_notification.default_error_message",
|
|
17
|
+
description: "The default message to display"
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
22
|
+
type: "danger",
|
|
23
|
+
title: title.value
|
|
24
|
+
}, _ctx.$attrs), null, 16, ["title"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as _
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./Alert.vue.es-DMPvSykx.js"),r=require("./component-ZRZIt3ZW.js"),o=e.defineComponent({__name:"ErrorNotification",props:{title:{},description:{}},setup(o){const{formatMessage:s}=r.useIntl(),i=o,n=e.computed(()=>i.title??s({defaultMessage:"Something went wrong",id:"error_notification.default_error_message",description:"The default message to display"}));return(r,o)=>(e.openBlock(),e.createBlock(t._sfc_main,e.mergeProps({type:"danger",title:n.value},r.$attrs),null,16,["title"]))}});exports._sfc_main=o;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "FormMessage",
|
|
4
|
+
props: {
|
|
5
|
+
message: {},
|
|
6
|
+
variant: { default: "error" },
|
|
7
|
+
capitalizeFirstLetter: { type: Boolean, default: true }
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const classNames = computed(() => {
|
|
12
|
+
let result = "text-xs";
|
|
13
|
+
if (props.variant === "default") {
|
|
14
|
+
result += " text-slate-400";
|
|
15
|
+
}
|
|
16
|
+
if (props.variant === "error") {
|
|
17
|
+
result += " text-red-600";
|
|
18
|
+
}
|
|
19
|
+
if (props.variant === "warning") {
|
|
20
|
+
result += " text-yellow-600";
|
|
21
|
+
}
|
|
22
|
+
if (props.capitalizeFirstLetter) {
|
|
23
|
+
result += " first-letter:capitalize";
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
});
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return typeof __props.message === "object" && !("value" in __props.message) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.message, ({ $uid, $message }) => {
|
|
29
|
+
return openBlock(), createElementBlock("p", {
|
|
30
|
+
key: $uid,
|
|
31
|
+
class: normalizeClass(classNames.value)
|
|
32
|
+
}, toDisplayString($message), 3);
|
|
33
|
+
}), 128)) : __props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("p", {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: normalizeClass(classNames.value)
|
|
36
|
+
}, [
|
|
37
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38
|
+
createTextVNode(toDisplayString(__props.message), 1)
|
|
39
|
+
])
|
|
40
|
+
], 2)) : createCommentVNode("", true);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_sfc_main as _
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=e.defineComponent({__name:"FormMessage",props:{message:{},variant:{default:"error"},capitalizeFirstLetter:{type:Boolean,default:!0}},setup(t){const a=t,s=e.computed(()=>{let e="text-xs";return"default"===a.variant&&(e+=" text-slate-400"),"error"===a.variant&&(e+=" text-red-600"),"warning"===a.variant&&(e+=" text-yellow-600"),a.capitalizeFirstLetter&&(e+=" first-letter:capitalize"),e});return(a,r)=>"object"!=typeof t.message||"value"in t.message?t.message||a.$slots.default?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(s.value)},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.message,({$uid:t,$message:a})=>(e.openBlock(),e.createElementBlock("p",{key:t,class:e.normalizeClass(s.value)},e.toDisplayString(a),3))),128))}});exports._sfc_main=t;
|