@solvimon/solvimon-web 0.1.0-alpha.1
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 +80 -0
- package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +99 -0
- package/dist/BillingInformation.entry.ce-DkrfEvK_.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-B42EzZ97.mjs +56 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +1 -0
- package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +1 -0
- package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +579 -0
- package/dist/Checkout.entry.ce-Bif6vR1K.mjs +5185 -0
- package/dist/Checkout.entry.ce-CkQnLAn4.js +1 -0
- package/dist/ContentWithAsideLayout-BC-C5Gjt.mjs +42 -0
- package/dist/ContentWithAsideLayout-CIVSoqFr.js +1 -0
- package/dist/CustomerOverview.entry.ce-C__omsVl.js +1 -0
- package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +231 -0
- package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +135 -0
- package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +1 -0
- package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +583 -0
- package/dist/Invoice.entry.ce-Cgr43ome.js +1 -0
- package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +130 -0
- package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs +85 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +1 -0
- package/dist/InvoicesList.entry.ce-38iOW5qh.js +1 -0
- package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +105 -0
- package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +1 -0
- package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +134 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +1 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs +90 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +6568 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +1 -0
- package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +238 -0
- package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs +62 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +1 -0
- package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +153 -0
- package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +1 -0
- package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +135 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DfB5BqiH.mjs +373 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +1 -0
- package/dist/_Uint8Array-DHE03FZr.mjs +507 -0
- package/dist/_Uint8Array-DxISR7XF.js +1 -0
- package/dist/auto-B_36W1Fc.js +6 -0
- package/dist/auto-BfMZdgp-.mjs +14207 -0
- package/dist/cloneDeep-Hs8Pp07F.js +1 -0
- package/dist/cloneDeep-sm9cY-u2.mjs +212 -0
- package/dist/component-BkmcE85U.mjs +58654 -0
- package/dist/component-Df5eNqYX.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +3 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.es.js +7 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +3 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +7 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +3 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +7 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +3 -0
- package/dist/components/Invoice/Invoice.cjs.js +1 -0
- package/dist/components/Invoice/Invoice.es.js +7 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +3 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +7 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +3 -0
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -0
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +3 -0
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -0
- package/dist/components/PaymentHistory/PaymentHistory.es.js +7 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +3 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +3 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +3 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +7 -0
- package/dist/core/action-request.types.d.ts +58 -0
- package/dist/core/configuration.d.ts +2 -0
- package/dist/core/index.cjs.js +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.es.js +6 -0
- package/dist/core/registry.ce.d.ts +2 -0
- package/dist/core/registry.d.ts +6 -0
- package/dist/core/types.d.ts +107 -0
- package/dist/index-2jo9BSPM.js +1 -0
- package/dist/index-BFZ0dPh9.mjs +179 -0
- package/dist/index-CWSXne1Q.js +1 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-D3v7hAtc.mjs +253 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +39 -0
- package/dist/invoices-8M_3ur_U.js +1 -0
- package/dist/invoices-C31Wz1Bu.mjs +84 -0
- package/dist/paymentMethods-CrU4G_2Y.mjs +65 -0
- package/dist/paymentMethods-CzUqDlvc.js +1 -0
- package/dist/payments-C3LPk9k9.js +1 -0
- package/dist/payments-NtWI8KlU.mjs +47 -0
- package/dist/registry-By94DXE2.js +1 -0
- package/dist/registry-shRKDl3K.mjs +127 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +3 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -0
- package/dist/screens/Checkout/Checkout.es.js +7 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +3 -0
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -0
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +7 -0
- package/dist/solvimon-web.css +1 -0
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +1 -0
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +4 -0
- package/dist/subscriptions-3R7aMoky.mjs +74 -0
- package/dist/subscriptions-CqK7t-fF.js +1 -0
- package/dist/useActionDispatchProvider-CBo_Hwu5.mjs +12 -0
- package/dist/useActionDispatchProvider-DsIljrhi.js +1 -0
- package/dist/useCustomer-BRY0tuBH.mjs +45 -0
- package/dist/useCustomer-Dp8sGHI0.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +1 -0
- package/dist/useCustomerPaymentMethodOptions-Fe_dLxfv.mjs +168 -0
- package/dist/useIncrementalLoading-D8oKNxX7.js +1 -0
- package/dist/useIncrementalLoading-fHCizCSo.mjs +69 -0
- package/dist/useInvoiceData-DImEH1ca.js +1 -0
- package/dist/useInvoiceData-dyvoDwFF.mjs +51 -0
- package/dist/useInvoicesList-BZQ9Y0qN.js +1 -0
- package/dist/useInvoicesList-rDvRzMqe.mjs +294 -0
- package/dist/useLoadInitialData-BRg7IWqW.js +1 -0
- package/dist/useLoadInitialData-Dm48tlSO.mjs +13 -0
- package/dist/usePaymentMethods-Bq5fWl1Q.mjs +16 -0
- package/dist/usePaymentMethods-Dbimodf0.js +1 -0
- package/dist/useService-Dz13Nxbi.mjs +272 -0
- package/dist/useService-bNNi4GB8.js +1 -0
- package/package.json +174 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../BillingInformation.entry.ce-DkrfEvK_.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=o.COMPONENT_NAME,exports.SolvimonBillingInformation=o.SolvimonBillingInformation,exports.defineSolvimonBillingInformation=o.defineSolvimonBillingInformation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../BillingInformationForm.entry.ce-MPMirEsk.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=o.COMPONENT_NAME,exports.SolvimonBillingInformationForm=o.SolvimonBillingInformationForm,exports.defineSolvimonBillingInformationForm=o.defineSolvimonBillingInformationForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../CustomerPaymentMethods.entry.ce-DnjlRHPA.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonCustomerPaymentMethods=e.SolvimonCustomerPaymentMethods,exports.defineSolvimonCustomerPaymentMethods=e.defineSolvimonCustomerPaymentMethods;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Invoice.entry.ce-Cgr43ome.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonInvoice=e.SolvimonInvoice,exports.defineSolvimonInvoice=e.defineSolvimonInvoice;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../InvoiceDetails.entry.ce-jHDyWra2.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonInvoiceDetails=e.SolvimonInvoiceDetails,exports.defineSolvimonInvoiceDetails=e.defineSolvimonInvoiceDetails;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../InvoicesList.entry.ce-38iOW5qh.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonInvoicesList=e.SolvimonInvoicesList,exports.defineSolvimonInvoicesList=e.defineSolvimonInvoicesList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentHistory.entry.ce-DDeHMhK_.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentHistory=e.SolvimonPaymentHistory,exports.defineSolvimonPaymentHistory=e.defineSolvimonPaymentHistory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentMethodForm.entry.ce-zxeBXZW6.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentMethodForm=e.SolvimonPaymentMethodForm,exports.defineSolvimonPaymentMethodForm=e.defineSolvimonPaymentMethodForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../SubscriptionSchedules.entry.ce-B4T_yQC1.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonSubscriptionSchedules=e.SolvimonSubscriptionSchedules,exports.defineSolvimonSubscriptionSchedules=e.defineSolvimonSubscriptionSchedules;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../SubscriptionsList.entry.ce-B5SJCQW0.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=i.COMPONENT_NAME,exports.SolvimonSubscriptionsList=i.SolvimonSubscriptionsList,exports.defineSolvimonSubscriptionsList=i.defineSolvimonSubscriptionsList;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action-request event types for the 'action-request' custom event.
|
|
3
|
+
* Kept in a separate file with no internal dependencies so dist/core declarations resolve for consumers.
|
|
4
|
+
*/
|
|
5
|
+
export type ActionRequestDetailBase = {
|
|
6
|
+
action: string;
|
|
7
|
+
entity?: string;
|
|
8
|
+
data?: Record<string, unknown>;
|
|
9
|
+
href?: string;
|
|
10
|
+
meta?: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
export interface ActionRequestDetailViewInvoice extends ActionRequestDetailBase {
|
|
13
|
+
action: 'view-invoice';
|
|
14
|
+
data: {
|
|
15
|
+
invoiceId: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ActionRequestDetailPayInvoice extends ActionRequestDetailBase {
|
|
19
|
+
action: 'pay-invoice';
|
|
20
|
+
data: {
|
|
21
|
+
invoiceId: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface ActionRequestDetailViewSubscriptionDetails extends ActionRequestDetailBase {
|
|
25
|
+
action: 'view-subscription-details';
|
|
26
|
+
data: {
|
|
27
|
+
subscriptionId: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface ActionRequestDetailViewAllSubscriptions extends ActionRequestDetailBase {
|
|
31
|
+
action: 'view-all-subscriptions';
|
|
32
|
+
}
|
|
33
|
+
export interface ActionRequestDetailCancelSubscription extends ActionRequestDetailBase {
|
|
34
|
+
action: 'cancel-subscription';
|
|
35
|
+
data: {
|
|
36
|
+
subscriptionId: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface ActionRequestDetailRenewSubscription extends ActionRequestDetailBase {
|
|
40
|
+
action: 'renew-subscription';
|
|
41
|
+
data: {
|
|
42
|
+
subscriptionId: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface ActionRequestDetailEditBillingInformation extends ActionRequestDetailBase {
|
|
46
|
+
action: 'edit-billing-information';
|
|
47
|
+
}
|
|
48
|
+
export interface ActionRequestDetailViewAllPaymentMethods extends ActionRequestDetailBase {
|
|
49
|
+
action: 'view-all-payment-methods';
|
|
50
|
+
}
|
|
51
|
+
export interface ActionRequestDetailAddPaymentMethod extends ActionRequestDetailBase {
|
|
52
|
+
action: 'add-payment-method';
|
|
53
|
+
}
|
|
54
|
+
export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailCancelSubscription | ActionRequestDetailRenewSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod;
|
|
55
|
+
/**
|
|
56
|
+
* Type for the 'action-request' custom event. Use when listening for action-request on document or container.
|
|
57
|
+
*/
|
|
58
|
+
export type RequestActionEvent = CustomEvent<ActionRequestDetail>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-By94DXE2.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solvimon Core – define and mount components/screens in a container
|
|
3
|
+
*
|
|
4
|
+
* Use createSolvimonCore to configure shared settings once and mount screens or components
|
|
5
|
+
* into your own container without using web components directly.
|
|
6
|
+
*/
|
|
7
|
+
export { createSolvimonCore } from './configuration';
|
|
8
|
+
export { getRegisteredScreenIds, getRegisteredComponentIds } from './registry';
|
|
9
|
+
export type { CoreConfiguration, ComponentConfigurationById, ScreenConfigurationById, ComponentMountConfiguration, ScreenMountConfiguration, SolvimonMountConfig, SolvimonMountInstance, RegisteredScreenId, RegisteredComponentId, } from './types';
|
|
10
|
+
export type { ActionRequestDetail, RequestActionEvent } from './action-request.types';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { RegisteredScreenId, RegisteredComponentId } from './types';
|
|
3
|
+
export declare function getScreenComponent(id: string): Component | undefined;
|
|
4
|
+
export declare function getComponent(id: string): Component | undefined;
|
|
5
|
+
export declare function getRegisteredScreenIds(): RegisteredScreenId[];
|
|
6
|
+
export declare function getRegisteredComponentIds(): RegisteredComponentId[];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Environment, PlatformBranding } from '@solvimon/solvimon-types';
|
|
2
|
+
import { IntlMessages } from '@solvimon/solvimon-ui';
|
|
3
|
+
import { SolvimonBillingInformationEntryProps } from '../components/BillingInformation/BillingInformation.entry.types';
|
|
4
|
+
import { SolvimonBillingInformationFormEntryProps } from '../components/BillingInformationForm/BillingInformationForm.entry.types';
|
|
5
|
+
import { SolvimonCustomerPaymentMethodsEntryProps } from '../components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types';
|
|
6
|
+
import { SolvimonInvoiceEntryProps } from '../components/Invoice/Invoice.entry.types';
|
|
7
|
+
import { SolvimonInvoiceDetailsEntryProps } from '../components/InvoiceDetails/InvoiceDetails.entry.types';
|
|
8
|
+
import { SolvimonInvoicesListEntryProps } from '../components/InvoicesList/InvoicesList.entry.types';
|
|
9
|
+
import { SolvimonPaymentMethodFormEntryProps } from '../components/PaymentMethodForm/PaymentMethodForm.entry.types';
|
|
10
|
+
import { SolvimonPaymentHistoryEntryProps } from '../components/PaymentHistory/PaymentHistory.entry.types';
|
|
11
|
+
import { SolvimonSubscriptionSchedulesEntryProps } from '../components/SubscriptionSchedules/SubscriptionSchedules.entry.types';
|
|
12
|
+
import { SolvimonSubscriptionsListEntryProps } from '../components/SubscriptionsList/SubscriptionsList.entry.types';
|
|
13
|
+
import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.types';
|
|
14
|
+
import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
|
|
15
|
+
/**
|
|
16
|
+
* Shared configuration passed to all mounted Solvimon components and screens.
|
|
17
|
+
* Extends the base entry props (environment, locale, branding, etc.).
|
|
18
|
+
*/
|
|
19
|
+
export interface SharedSolvimonMountConfig {
|
|
20
|
+
environment?: Environment;
|
|
21
|
+
locale?: string;
|
|
22
|
+
dateLocale?: string;
|
|
23
|
+
messages?: IntlMessages;
|
|
24
|
+
experimentalFeatures?: unknown[];
|
|
25
|
+
logLevel?: 'debug' | 'info' | 'warn' | 'error';
|
|
26
|
+
onLog?: (entry: unknown) => void;
|
|
27
|
+
branding?: PlatformBranding;
|
|
28
|
+
}
|
|
29
|
+
export type SolvimonMountConfig = SharedSolvimonMountConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Return type of the Solvimon core mount methods.
|
|
32
|
+
*/
|
|
33
|
+
export interface SolvimonMountInstance {
|
|
34
|
+
/** Unmounts the Solvimon app from the container. */
|
|
35
|
+
unmount: () => void;
|
|
36
|
+
}
|
|
37
|
+
interface RegisteredComponentEntryPropsById {
|
|
38
|
+
invoice: SolvimonInvoiceEntryProps;
|
|
39
|
+
'invoice-details': SolvimonInvoiceDetailsEntryProps;
|
|
40
|
+
'invoices-list': SolvimonInvoicesListEntryProps;
|
|
41
|
+
'payment-history': SolvimonPaymentHistoryEntryProps;
|
|
42
|
+
'subscription-schedules': SolvimonSubscriptionSchedulesEntryProps;
|
|
43
|
+
'subscriptions-list': SolvimonSubscriptionsListEntryProps;
|
|
44
|
+
'customer-payment-methods': SolvimonCustomerPaymentMethodsEntryProps;
|
|
45
|
+
'billing-information': SolvimonBillingInformationEntryProps;
|
|
46
|
+
'billing-information-form': SolvimonBillingInformationFormEntryProps;
|
|
47
|
+
'payment-method-form': SolvimonPaymentMethodFormEntryProps;
|
|
48
|
+
}
|
|
49
|
+
interface RegisteredScreenEntryPropsById {
|
|
50
|
+
checkout: SolvimonCheckoutEntryProps;
|
|
51
|
+
'customer-overview': SolvimonCustomerOverviewEntryProps;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Registered screen ids that can be used with createScreen.
|
|
55
|
+
*/
|
|
56
|
+
export type RegisteredScreenId = keyof RegisteredScreenEntryPropsById;
|
|
57
|
+
/**
|
|
58
|
+
* Registered component ids that can be used with createComponent.
|
|
59
|
+
*/
|
|
60
|
+
export type RegisteredComponentId = keyof RegisteredComponentEntryPropsById;
|
|
61
|
+
type InferConfiguration<TProps> = TProps extends {
|
|
62
|
+
configuration: infer TConfiguration;
|
|
63
|
+
} ? TConfiguration : TProps extends {
|
|
64
|
+
configuration?: infer TConfiguration;
|
|
65
|
+
} ? TConfiguration | undefined : undefined;
|
|
66
|
+
type InferPortalObject<TProps> = TProps extends {
|
|
67
|
+
portalObject: infer TPortalObject;
|
|
68
|
+
} ? TPortalObject : TProps extends {
|
|
69
|
+
portalObject?: infer TPortalObject;
|
|
70
|
+
} ? TPortalObject | undefined : undefined;
|
|
71
|
+
type MountContext<TPortalObject> = [TPortalObject] extends [undefined] ? Record<never, never> : undefined extends TPortalObject ? {
|
|
72
|
+
portalObject?: Exclude<TPortalObject, undefined>;
|
|
73
|
+
} : {
|
|
74
|
+
portalObject: TPortalObject;
|
|
75
|
+
};
|
|
76
|
+
export type ComponentConfigurationById = {
|
|
77
|
+
[TId in RegisteredComponentId]: InferConfiguration<RegisteredComponentEntryPropsById[TId]>;
|
|
78
|
+
};
|
|
79
|
+
export type ScreenConfigurationById = {
|
|
80
|
+
[TId in RegisteredScreenId]: InferConfiguration<RegisteredScreenEntryPropsById[TId]>;
|
|
81
|
+
};
|
|
82
|
+
type ComponentConfigurationProp<TConfiguration> = [TConfiguration] extends [undefined] ? {
|
|
83
|
+
configuration?: undefined;
|
|
84
|
+
} : undefined extends TConfiguration ? {
|
|
85
|
+
configuration?: Exclude<TConfiguration, undefined>;
|
|
86
|
+
} : {
|
|
87
|
+
configuration: TConfiguration;
|
|
88
|
+
};
|
|
89
|
+
type ScreenConfigurationProp<TConfiguration> = [TConfiguration] extends [undefined] ? {
|
|
90
|
+
configuration?: undefined;
|
|
91
|
+
} : undefined extends TConfiguration ? {
|
|
92
|
+
configuration?: Exclude<TConfiguration, undefined>;
|
|
93
|
+
} : {
|
|
94
|
+
configuration: TConfiguration;
|
|
95
|
+
};
|
|
96
|
+
export type ComponentMountConfiguration<TId extends RegisteredComponentId> = {
|
|
97
|
+
container: Element | string;
|
|
98
|
+
} & MountContext<InferPortalObject<RegisteredComponentEntryPropsById[TId]>> & ComponentConfigurationProp<ComponentConfigurationById[TId]>;
|
|
99
|
+
export type ScreenMountConfiguration<TId extends RegisteredScreenId> = {
|
|
100
|
+
container: Element | string;
|
|
101
|
+
} & MountContext<InferPortalObject<RegisteredScreenEntryPropsById[TId]>> & ScreenConfigurationProp<ScreenConfigurationById[TId]>;
|
|
102
|
+
export interface CoreConfiguration<TConfig extends SolvimonMountConfig = SolvimonMountConfig> {
|
|
103
|
+
config: TConfig;
|
|
104
|
+
createComponent: <TId extends RegisteredComponentId>(id: TId, configuration: ComponentMountConfiguration<TId>) => SolvimonMountInstance['unmount'];
|
|
105
|
+
createScreen: <TId extends RegisteredScreenId>(id: TId, configuration: ScreenMountConfiguration<TId>) => SolvimonMountInstance['unmount'];
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue");var t;const r="undefined"!=typeof window,n=()=>{};function o(t){return"function"==typeof t?t():e.unref(t)}r&&(null==(t=null==window?void 0:window.navigator)?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const i=e=>e();function c(e,t={}){let r,i,c=n;const u=e=>{clearTimeout(e),c(),c=n};return n=>{const s=o(e),a=o(t.maxWait);return r&&u(r),s<=0||void 0!==a&&a<=0?(i&&(u(i),i=null),Promise.resolve(n())):new Promise((e,o)=>{c=t.rejectOnCancel?o:e,a&&!i&&(i=setTimeout(()=>{r&&u(r),i=null,e(n())},a)),r=setTimeout(()=>{i&&u(i),i=null,e(n())},s)})}}var u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function l(t,r,n={}){const o=n,{eventFilter:c=i}=o,l=((e,t)=>{var r={};for(var n in e)s.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))t.indexOf(n)<0&&a.call(e,n)&&(r[n]=e[n]);return r})(o,["eventFilter"]);return e.watch(t,(p=c,f=r,function(...e){return new Promise((t,r)=>{Promise.resolve(p(()=>f.apply(this,e),{fn:f,thisArg:this,args:e})).then(t).catch(r)})}),l);var p,f}var p=Object.defineProperty,f=Object.defineProperties,v=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;exports.identity=function(e){return e},exports.increaseWithUnit=function(e,t){var r;if("number"==typeof e)return e+t;const n=(null==(r=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:r[0])||"",o=e.slice(n.length),i=parseFloat(n)+t;return Number.isNaN(i)?e:i+o},exports.isClient=r,exports.isString=e=>"string"==typeof e,exports.noop=n,exports.resolveRef=function(t){return"function"==typeof t?e.computed(t):e.ref(t)},exports.resolveUnref=o,exports.tryOnMounted=function(t,r=!0){e.getCurrentInstance()?e.onMounted(t):r?t():e.nextTick(t)},exports.tryOnScopeDispose=function(t){return!!e.getCurrentScope()&&(e.onScopeDispose(t),!0)},exports.watchDebounced=function(e,t,r={}){const n=r,{debounce:o=0,maxWait:i}=n,u=((e,t)=>{var r={};for(var n in e)y.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&d)for(var n of d(e))t.indexOf(n)<0&&O.call(e,n)&&(r[n]=e[n]);return r})(n,["debounce","maxWait"]);return l(e,t,(s=((e,t)=>{for(var r in t||(t={}))y.call(t,r)&&b(e,r,t[r]);if(d)for(var r of d(t))O.call(t,r)&&b(e,r,t[r]);return e})({},u),a={eventFilter:c(o,{maxWait:i})},f(s,v(a))));var s,a},exports.watchOnce=function(t,r,n){const o=e.watch(t,(...t)=>(e.nextTick(()=>o()),r(...t)),n)};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { watch, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, computed, ref, unref } from "vue";
|
|
2
|
+
var _a;
|
|
3
|
+
const isClient = typeof window !== "undefined";
|
|
4
|
+
const isString = (val) => typeof val === "string";
|
|
5
|
+
const noop = () => {
|
|
6
|
+
};
|
|
7
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
8
|
+
function resolveUnref(r) {
|
|
9
|
+
return typeof r === "function" ? r() : unref(r);
|
|
10
|
+
}
|
|
11
|
+
function createFilterWrapper(filter, fn) {
|
|
12
|
+
function wrapper(...args) {
|
|
13
|
+
return new Promise((resolve, reject) => {
|
|
14
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return wrapper;
|
|
18
|
+
}
|
|
19
|
+
const bypassFilter = (invoke) => {
|
|
20
|
+
return invoke();
|
|
21
|
+
};
|
|
22
|
+
function debounceFilter(ms, options = {}) {
|
|
23
|
+
let timer;
|
|
24
|
+
let maxTimer;
|
|
25
|
+
let lastRejector = noop;
|
|
26
|
+
const _clearTimeout = (timer2) => {
|
|
27
|
+
clearTimeout(timer2);
|
|
28
|
+
lastRejector();
|
|
29
|
+
lastRejector = noop;
|
|
30
|
+
};
|
|
31
|
+
const filter = (invoke) => {
|
|
32
|
+
const duration = resolveUnref(ms);
|
|
33
|
+
const maxDuration = resolveUnref(options.maxWait);
|
|
34
|
+
if (timer)
|
|
35
|
+
_clearTimeout(timer);
|
|
36
|
+
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
37
|
+
if (maxTimer) {
|
|
38
|
+
_clearTimeout(maxTimer);
|
|
39
|
+
maxTimer = null;
|
|
40
|
+
}
|
|
41
|
+
return Promise.resolve(invoke());
|
|
42
|
+
}
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
45
|
+
if (maxDuration && !maxTimer) {
|
|
46
|
+
maxTimer = setTimeout(() => {
|
|
47
|
+
if (timer)
|
|
48
|
+
_clearTimeout(timer);
|
|
49
|
+
maxTimer = null;
|
|
50
|
+
resolve(invoke());
|
|
51
|
+
}, maxDuration);
|
|
52
|
+
}
|
|
53
|
+
timer = setTimeout(() => {
|
|
54
|
+
if (maxTimer)
|
|
55
|
+
_clearTimeout(maxTimer);
|
|
56
|
+
maxTimer = null;
|
|
57
|
+
resolve(invoke());
|
|
58
|
+
}, duration);
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
return filter;
|
|
62
|
+
}
|
|
63
|
+
function identity(arg) {
|
|
64
|
+
return arg;
|
|
65
|
+
}
|
|
66
|
+
function increaseWithUnit(target, delta) {
|
|
67
|
+
var _a2;
|
|
68
|
+
if (typeof target === "number")
|
|
69
|
+
return target + delta;
|
|
70
|
+
const value = ((_a2 = target.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : _a2[0]) || "";
|
|
71
|
+
const unit = target.slice(value.length);
|
|
72
|
+
const result = parseFloat(value) + delta;
|
|
73
|
+
if (Number.isNaN(result))
|
|
74
|
+
return target;
|
|
75
|
+
return result + unit;
|
|
76
|
+
}
|
|
77
|
+
function tryOnScopeDispose(fn) {
|
|
78
|
+
if (getCurrentScope()) {
|
|
79
|
+
onScopeDispose(fn);
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
function resolveRef(r) {
|
|
85
|
+
return typeof r === "function" ? computed(r) : ref(r);
|
|
86
|
+
}
|
|
87
|
+
function tryOnMounted(fn, sync = true) {
|
|
88
|
+
if (getCurrentInstance())
|
|
89
|
+
onMounted(fn);
|
|
90
|
+
else if (sync)
|
|
91
|
+
fn();
|
|
92
|
+
else
|
|
93
|
+
nextTick(fn);
|
|
94
|
+
}
|
|
95
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
96
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
97
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
98
|
+
var __objRest$5 = (source, exclude) => {
|
|
99
|
+
var target = {};
|
|
100
|
+
for (var prop in source)
|
|
101
|
+
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
102
|
+
target[prop] = source[prop];
|
|
103
|
+
if (source != null && __getOwnPropSymbols$6)
|
|
104
|
+
for (var prop of __getOwnPropSymbols$6(source)) {
|
|
105
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
|
|
106
|
+
target[prop] = source[prop];
|
|
107
|
+
}
|
|
108
|
+
return target;
|
|
109
|
+
};
|
|
110
|
+
function watchWithFilter(source, cb, options = {}) {
|
|
111
|
+
const _a2 = options, {
|
|
112
|
+
eventFilter = bypassFilter
|
|
113
|
+
} = _a2, watchOptions = __objRest$5(_a2, [
|
|
114
|
+
"eventFilter"
|
|
115
|
+
]);
|
|
116
|
+
return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
|
|
117
|
+
}
|
|
118
|
+
var __defProp$4 = Object.defineProperty;
|
|
119
|
+
var __defProps$4 = Object.defineProperties;
|
|
120
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
121
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
122
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
123
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
124
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
125
|
+
var __spreadValues$4 = (a, b) => {
|
|
126
|
+
for (var prop in b || (b = {}))
|
|
127
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
128
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
129
|
+
if (__getOwnPropSymbols$4)
|
|
130
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
131
|
+
if (__propIsEnum$4.call(b, prop))
|
|
132
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
133
|
+
}
|
|
134
|
+
return a;
|
|
135
|
+
};
|
|
136
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
137
|
+
var __objRest$3 = (source, exclude) => {
|
|
138
|
+
var target = {};
|
|
139
|
+
for (var prop in source)
|
|
140
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
141
|
+
target[prop] = source[prop];
|
|
142
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
143
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
144
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
145
|
+
target[prop] = source[prop];
|
|
146
|
+
}
|
|
147
|
+
return target;
|
|
148
|
+
};
|
|
149
|
+
function watchDebounced(source, cb, options = {}) {
|
|
150
|
+
const _a2 = options, {
|
|
151
|
+
debounce = 0,
|
|
152
|
+
maxWait = void 0
|
|
153
|
+
} = _a2, watchOptions = __objRest$3(_a2, [
|
|
154
|
+
"debounce",
|
|
155
|
+
"maxWait"
|
|
156
|
+
]);
|
|
157
|
+
return watchWithFilter(source, cb, __spreadProps$4(__spreadValues$4({}, watchOptions), {
|
|
158
|
+
eventFilter: debounceFilter(debounce, { maxWait })
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
function watchOnce(source, cb, options) {
|
|
162
|
+
const stop = watch(source, (...args) => {
|
|
163
|
+
nextTick(() => stop());
|
|
164
|
+
return cb(...args);
|
|
165
|
+
}, options);
|
|
166
|
+
}
|
|
167
|
+
export {
|
|
168
|
+
tryOnMounted as a,
|
|
169
|
+
isString as b,
|
|
170
|
+
resolveUnref as c,
|
|
171
|
+
increaseWithUnit as d,
|
|
172
|
+
identity as e,
|
|
173
|
+
watchOnce as f,
|
|
174
|
+
isClient as i,
|
|
175
|
+
noop as n,
|
|
176
|
+
resolveRef as r,
|
|
177
|
+
tryOnScopeDispose as t,
|
|
178
|
+
watchDebounced as w
|
|
179
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./index-2jo9BSPM.js"),t=require("vue");function n(t){var n;const r=e.resolveUnref(t);return null!=(n=null==r?void 0:r.$el)?n:r}const r=e.isClient?window:void 0;function i(...i){let a,o,s,u;if(e.isString(i[0])||Array.isArray(i[0])?([o,s,u]=i,a=r):[a,o,s,u]=i,!a)return e.noop;Array.isArray(o)||(o=[o]),Array.isArray(s)||(s=[s]);const l=[],c=()=>{l.forEach(e=>e()),l.length=0},d=t.watch(()=>[n(a),e.resolveUnref(u)],([e,t])=>{c(),e&&l.push(...o.flatMap(n=>s.map(r=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,n,r,t))))},{immediate:!0,flush:"post"}),f=()=>{d(),c()};return e.tryOnScopeDispose(f),f}function a(n,i={}){const{window:a=r}=i,o=function(n,r=!1){const i=t.ref(),a=()=>i.value=Boolean(n());return a(),e.tryOnMounted(a,r),i}(()=>a&&"matchMedia"in a&&"function"==typeof a.matchMedia);let s;const u=t.ref(!1),l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",c):s.removeListener(c))},c=()=>{o.value&&(l(),s=a.matchMedia(e.resolveRef(n).value),u.value=s.matches,"addEventListener"in s?s.addEventListener("change",c):s.addListener(c))};return t.watchEffect(c),e.tryOnScopeDispose(()=>l()),u}var o=Object.defineProperty,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f="__vueuse_ssr_handlers__";var m,p;d[f]=d[f]||{},(p=m||(m={})).UP="UP",p.RIGHT="RIGHT",p.DOWN="DOWN",p.LEFT="LEFT",p.NONE="NONE";var O=Object.defineProperty,h=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,b=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))v.call(t,n)&&b(e,n,t[n]);if(h)for(var n of h(t))w.call(t,n)&&b(e,n,t[n])})({linear:e.identity},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),exports.breakpointsTailwind={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},exports.useBreakpoints=function(t,n={}){function i(n,r){let i=t[n];return null!=r&&(i=e.increaseWithUnit(i,r)),"number"==typeof i&&(i=`${i}px`),i}const{window:o=r}=n;function d(e){return!!o&&o.matchMedia(e).matches}const f=e=>a(`(min-width: ${i(e)})`,n),m=Object.keys(t).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>f(t),enumerable:!0,configurable:!0}),e),{});return((e,t)=>{for(var n in t||(t={}))u.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&c(e,n,t[n]);return e})({greater:e=>a(`(min-width: ${i(e,.1)})`,n),greaterOrEqual:f,smaller:e=>a(`(max-width: ${i(e,-.1)})`,n),smallerOrEqual:e=>a(`(max-width: ${i(e)})`,n),between:(e,t)=>a(`(min-width: ${i(e)}) and (max-width: ${i(t,-.1)})`,n),isGreater:e=>d(`(min-width: ${i(e,.1)})`),isGreaterOrEqual:e=>d(`(min-width: ${i(e)})`),isSmaller:e=>d(`(max-width: ${i(e,-.1)})`),isSmallerOrEqual:e=>d(`(max-width: ${i(e)})`),isInBetween:(e,t)=>d(`(min-width: ${i(e)}) and (max-width: ${i(t,-.1)})`)},m)},exports.useWindowSize=function(n={}){const{window:a=r,initialWidth:o=1/0,initialHeight:s=1/0,listenOrientation:u=!0,includeScrollbar:l=!0}=n,c=t.ref(o),d=t.ref(s),f=()=>{a&&(l?(c.value=a.innerWidth,d.value=a.innerHeight):(c.value=a.document.documentElement.clientWidth,d.value=a.document.documentElement.clientHeight))};return f(),e.tryOnMounted(f),i("resize",f,{passive:!0}),u&&i("orientationchange",f,{passive:!0}),{width:c,height:d}};
|