@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
package/dist/index-2jo9BSPM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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)};
|
package/dist/index-BFZ0dPh9.mjs
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-CWSXne1Q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}};
|
package/dist/index-D3v7hAtc.mjs
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { i as isClient, t as tryOnScopeDispose, a as tryOnMounted, r as resolveRef, b as isString, n as noop, c as resolveUnref, d as increaseWithUnit, e as identity } from "./index-BFZ0dPh9.mjs";
|
|
2
|
-
import { ref, watchEffect, watch } from "vue";
|
|
3
|
-
function unrefElement(elRef) {
|
|
4
|
-
var _a;
|
|
5
|
-
const plain = resolveUnref(elRef);
|
|
6
|
-
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
7
|
-
}
|
|
8
|
-
const defaultWindow = isClient ? window : void 0;
|
|
9
|
-
function useEventListener(...args) {
|
|
10
|
-
let target;
|
|
11
|
-
let events;
|
|
12
|
-
let listeners;
|
|
13
|
-
let options;
|
|
14
|
-
if (isString(args[0]) || Array.isArray(args[0])) {
|
|
15
|
-
[events, listeners, options] = args;
|
|
16
|
-
target = defaultWindow;
|
|
17
|
-
} else {
|
|
18
|
-
[target, events, listeners, options] = args;
|
|
19
|
-
}
|
|
20
|
-
if (!target)
|
|
21
|
-
return noop;
|
|
22
|
-
if (!Array.isArray(events))
|
|
23
|
-
events = [events];
|
|
24
|
-
if (!Array.isArray(listeners))
|
|
25
|
-
listeners = [listeners];
|
|
26
|
-
const cleanups = [];
|
|
27
|
-
const cleanup = () => {
|
|
28
|
-
cleanups.forEach((fn) => fn());
|
|
29
|
-
cleanups.length = 0;
|
|
30
|
-
};
|
|
31
|
-
const register = (el, event, listener, options2) => {
|
|
32
|
-
el.addEventListener(event, listener, options2);
|
|
33
|
-
return () => el.removeEventListener(event, listener, options2);
|
|
34
|
-
};
|
|
35
|
-
const stopWatch = watch(() => [unrefElement(target), resolveUnref(options)], ([el, options2]) => {
|
|
36
|
-
cleanup();
|
|
37
|
-
if (!el)
|
|
38
|
-
return;
|
|
39
|
-
cleanups.push(...events.flatMap((event) => {
|
|
40
|
-
return listeners.map((listener) => register(el, event, listener, options2));
|
|
41
|
-
}));
|
|
42
|
-
}, { immediate: true, flush: "post" });
|
|
43
|
-
const stop = () => {
|
|
44
|
-
stopWatch();
|
|
45
|
-
cleanup();
|
|
46
|
-
};
|
|
47
|
-
tryOnScopeDispose(stop);
|
|
48
|
-
return stop;
|
|
49
|
-
}
|
|
50
|
-
function useSupported(callback, sync = false) {
|
|
51
|
-
const isSupported = ref();
|
|
52
|
-
const update = () => isSupported.value = Boolean(callback());
|
|
53
|
-
update();
|
|
54
|
-
tryOnMounted(update, sync);
|
|
55
|
-
return isSupported;
|
|
56
|
-
}
|
|
57
|
-
function useMediaQuery(query, options = {}) {
|
|
58
|
-
const { window: window2 = defaultWindow } = options;
|
|
59
|
-
const isSupported = useSupported(() => window2 && "matchMedia" in window2 && typeof window2.matchMedia === "function");
|
|
60
|
-
let mediaQuery;
|
|
61
|
-
const matches = ref(false);
|
|
62
|
-
const cleanup = () => {
|
|
63
|
-
if (!mediaQuery)
|
|
64
|
-
return;
|
|
65
|
-
if ("removeEventListener" in mediaQuery)
|
|
66
|
-
mediaQuery.removeEventListener("change", update);
|
|
67
|
-
else
|
|
68
|
-
mediaQuery.removeListener(update);
|
|
69
|
-
};
|
|
70
|
-
const update = () => {
|
|
71
|
-
if (!isSupported.value)
|
|
72
|
-
return;
|
|
73
|
-
cleanup();
|
|
74
|
-
mediaQuery = window2.matchMedia(resolveRef(query).value);
|
|
75
|
-
matches.value = mediaQuery.matches;
|
|
76
|
-
if ("addEventListener" in mediaQuery)
|
|
77
|
-
mediaQuery.addEventListener("change", update);
|
|
78
|
-
else
|
|
79
|
-
mediaQuery.addListener(update);
|
|
80
|
-
};
|
|
81
|
-
watchEffect(update);
|
|
82
|
-
tryOnScopeDispose(() => cleanup());
|
|
83
|
-
return matches;
|
|
84
|
-
}
|
|
85
|
-
const breakpointsTailwind = {
|
|
86
|
-
"sm": 640,
|
|
87
|
-
"md": 768,
|
|
88
|
-
"lg": 1024,
|
|
89
|
-
"xl": 1280,
|
|
90
|
-
"2xl": 1536
|
|
91
|
-
};
|
|
92
|
-
var __defProp$m = Object.defineProperty;
|
|
93
|
-
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
94
|
-
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
95
|
-
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
96
|
-
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
97
|
-
var __spreadValues$m = (a, b) => {
|
|
98
|
-
for (var prop in b || (b = {}))
|
|
99
|
-
if (__hasOwnProp$o.call(b, prop))
|
|
100
|
-
__defNormalProp$m(a, prop, b[prop]);
|
|
101
|
-
if (__getOwnPropSymbols$o)
|
|
102
|
-
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
103
|
-
if (__propIsEnum$o.call(b, prop))
|
|
104
|
-
__defNormalProp$m(a, prop, b[prop]);
|
|
105
|
-
}
|
|
106
|
-
return a;
|
|
107
|
-
};
|
|
108
|
-
function useBreakpoints(breakpoints, options = {}) {
|
|
109
|
-
function getValue(k, delta) {
|
|
110
|
-
let v = breakpoints[k];
|
|
111
|
-
if (delta != null)
|
|
112
|
-
v = increaseWithUnit(v, delta);
|
|
113
|
-
if (typeof v === "number")
|
|
114
|
-
v = `${v}px`;
|
|
115
|
-
return v;
|
|
116
|
-
}
|
|
117
|
-
const { window: window2 = defaultWindow } = options;
|
|
118
|
-
function match(query) {
|
|
119
|
-
if (!window2)
|
|
120
|
-
return false;
|
|
121
|
-
return window2.matchMedia(query).matches;
|
|
122
|
-
}
|
|
123
|
-
const greaterOrEqual = (k) => {
|
|
124
|
-
return useMediaQuery(`(min-width: ${getValue(k)})`, options);
|
|
125
|
-
};
|
|
126
|
-
const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
|
|
127
|
-
Object.defineProperty(shortcuts, k, {
|
|
128
|
-
get: () => greaterOrEqual(k),
|
|
129
|
-
enumerable: true,
|
|
130
|
-
configurable: true
|
|
131
|
-
});
|
|
132
|
-
return shortcuts;
|
|
133
|
-
}, {});
|
|
134
|
-
return __spreadValues$m({
|
|
135
|
-
greater(k) {
|
|
136
|
-
return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options);
|
|
137
|
-
},
|
|
138
|
-
greaterOrEqual,
|
|
139
|
-
smaller(k) {
|
|
140
|
-
return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options);
|
|
141
|
-
},
|
|
142
|
-
smallerOrEqual(k) {
|
|
143
|
-
return useMediaQuery(`(max-width: ${getValue(k)})`, options);
|
|
144
|
-
},
|
|
145
|
-
between(a, b) {
|
|
146
|
-
return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);
|
|
147
|
-
},
|
|
148
|
-
isGreater(k) {
|
|
149
|
-
return match(`(min-width: ${getValue(k, 0.1)})`);
|
|
150
|
-
},
|
|
151
|
-
isGreaterOrEqual(k) {
|
|
152
|
-
return match(`(min-width: ${getValue(k)})`);
|
|
153
|
-
},
|
|
154
|
-
isSmaller(k) {
|
|
155
|
-
return match(`(max-width: ${getValue(k, -0.1)})`);
|
|
156
|
-
},
|
|
157
|
-
isSmallerOrEqual(k) {
|
|
158
|
-
return match(`(max-width: ${getValue(k)})`);
|
|
159
|
-
},
|
|
160
|
-
isInBetween(a, b) {
|
|
161
|
-
return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`);
|
|
162
|
-
}
|
|
163
|
-
}, shortcutMethods);
|
|
164
|
-
}
|
|
165
|
-
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
166
|
-
const globalKey = "__vueuse_ssr_handlers__";
|
|
167
|
-
_global[globalKey] = _global[globalKey] || {};
|
|
168
|
-
var SwipeDirection;
|
|
169
|
-
(function(SwipeDirection2) {
|
|
170
|
-
SwipeDirection2["UP"] = "UP";
|
|
171
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
172
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
|
173
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
|
174
|
-
SwipeDirection2["NONE"] = "NONE";
|
|
175
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
176
|
-
var __defProp = Object.defineProperty;
|
|
177
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
178
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
179
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
180
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
181
|
-
var __spreadValues = (a, b) => {
|
|
182
|
-
for (var prop in b || (b = {}))
|
|
183
|
-
if (__hasOwnProp.call(b, prop))
|
|
184
|
-
__defNormalProp(a, prop, b[prop]);
|
|
185
|
-
if (__getOwnPropSymbols)
|
|
186
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
187
|
-
if (__propIsEnum.call(b, prop))
|
|
188
|
-
__defNormalProp(a, prop, b[prop]);
|
|
189
|
-
}
|
|
190
|
-
return a;
|
|
191
|
-
};
|
|
192
|
-
const _TransitionPresets = {
|
|
193
|
-
easeInSine: [0.12, 0, 0.39, 0],
|
|
194
|
-
easeOutSine: [0.61, 1, 0.88, 1],
|
|
195
|
-
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
196
|
-
easeInQuad: [0.11, 0, 0.5, 0],
|
|
197
|
-
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
198
|
-
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
199
|
-
easeInCubic: [0.32, 0, 0.67, 0],
|
|
200
|
-
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
201
|
-
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
202
|
-
easeInQuart: [0.5, 0, 0.75, 0],
|
|
203
|
-
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
204
|
-
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
205
|
-
easeInQuint: [0.64, 0, 0.78, 0],
|
|
206
|
-
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
207
|
-
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
208
|
-
easeInExpo: [0.7, 0, 0.84, 0],
|
|
209
|
-
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
210
|
-
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
211
|
-
easeInCirc: [0.55, 0, 1, 0.45],
|
|
212
|
-
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
213
|
-
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
214
|
-
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
215
|
-
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
216
|
-
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
217
|
-
};
|
|
218
|
-
__spreadValues({
|
|
219
|
-
linear: identity
|
|
220
|
-
}, _TransitionPresets);
|
|
221
|
-
function useWindowSize(options = {}) {
|
|
222
|
-
const {
|
|
223
|
-
window: window2 = defaultWindow,
|
|
224
|
-
initialWidth = Infinity,
|
|
225
|
-
initialHeight = Infinity,
|
|
226
|
-
listenOrientation = true,
|
|
227
|
-
includeScrollbar = true
|
|
228
|
-
} = options;
|
|
229
|
-
const width = ref(initialWidth);
|
|
230
|
-
const height = ref(initialHeight);
|
|
231
|
-
const update = () => {
|
|
232
|
-
if (window2) {
|
|
233
|
-
if (includeScrollbar) {
|
|
234
|
-
width.value = window2.innerWidth;
|
|
235
|
-
height.value = window2.innerHeight;
|
|
236
|
-
} else {
|
|
237
|
-
width.value = window2.document.documentElement.clientWidth;
|
|
238
|
-
height.value = window2.document.documentElement.clientHeight;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
update();
|
|
243
|
-
tryOnMounted(update);
|
|
244
|
-
useEventListener("resize", update, { passive: true });
|
|
245
|
-
if (listenOrientation)
|
|
246
|
-
useEventListener("orientationchange", update, { passive: true });
|
|
247
|
-
return { width, height };
|
|
248
|
-
}
|
|
249
|
-
export {
|
|
250
|
-
useBreakpoints as a,
|
|
251
|
-
breakpointsTailwind as b,
|
|
252
|
-
useWindowSize as u
|
|
253
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=require("./component-Df5eNqYX.js");exports.createInvoicesService=function(){const e=n.createRequestService(),i=n.useConfig();return{getInvoice:function(n){return e({url:`${i.apiUrls.transaction}/portal/invoices/${n}`})},getInvoices:function({customerId:t,pagination:r,query:o}){const a=n.withPagination({customer_id:t,...o??{}},r),c=new URL(`${i.apiUrls.transaction}/portal/invoices`);return Object.entries(a).forEach(([n,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{c.searchParams.append(`${n}[]`,`${e}`)}):c.searchParams.append(n,`${e}`))}),e({url:c.toString(),isCollection:!0})},getInvoicePdf:async function(t){return e({url:`${i.apiUrls.transaction}/portal/invoices/${t}/pdf`,options:{headers:{"Content-Type":"application/pdf"}}}).then(e=>{const i=new Blob([e],{type:"application/pdf"});n.downloadFile(i,`invoice-${t}.pdf`)})},getInvoicePreview:function({customer:n,pricingPlanSubscriptionId:t,startAt:r,customizations:o,pricing_plan_schedule_customizations:a}){return e({url:`${i.apiUrls.transaction}/portal/invoices/preview`,options:{method:"POST"},data:{template_pricing_plan_subscription_id:t,...r&&{start_at:r},...o&&{pricing_plan_schedule_customizations:o},...a&&{pricing_plan_schedule_customizations:a},customer_details:{...n,reference:"preview"}}})}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=require("./component-Df5eNqYX.js");exports.createPaymentMethodsService=function(){const e=t.createRequestService(),n=t.useConfig();return{getPaymentMethods:function({customerId:o,pagination:r,query:i}){const a=t.withPagination({customer_id:o,...i??{}},r),s=new URL(`${n.apiUrls.config}/portal/payment-methods`);return Object.entries(a).forEach(([t,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{s.searchParams.append(`${t}[]`,`${e}`)}):s.searchParams.append(t,`${e}`))}),e({url:s.toString(),isCollection:!0})},getPaymentMethodOptions:function({customerId:t,country:o,subscriptionId:r,amount:i}){return e({url:`${n.apiUrls.config}/portal/payment-method-options`,options:{method:"POST"},data:{...t&&{customer_id:t},...o&&{country:o},...r&&{pricing_plan_subscription_id:r},amount:i}})},tokenizePaymentMethod:function(t){return e({url:`${n.apiUrls.config}/portal/payment-methods/tokenize`,options:{method:"POST"},data:t})}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./PaymentMethodForm.entry.ce-zxeBXZW6.js"),n=require("./CustomerOverview.entry.ce-C__omsVl.js"),o=require("./Checkout.entry.ce-CkQnLAn4.js"),i=require("./Invoice.entry.ce-Cgr43ome.js"),t=require("./InvoiceDetails.entry.ce-jHDyWra2.js"),r=require("./InvoicesList.entry.ce-38iOW5qh.js"),s=require("./PaymentHistory.entry.ce-DDeHMhK_.js"),c=require("./SubscriptionsList.entry.ce-B5SJCQW0.js"),m=require("./SubscriptionSchedules.entry.ce-B4T_yQC1.js"),u=require("./CustomerPaymentMethods.entry.ce-DnjlRHPA.js"),f=require("./BillingInformation.entry.ce-DkrfEvK_.js"),a=require("./BillingInformationForm.entry.ce-MPMirEsk.js"),l=require("./component-Df5eNqYX.js"),d={"customer-overview":n.defineSolvimonCustomerOverview,checkout:o.defineSolvimonCheckout},v={invoice:i.defineSolvimonInvoice,"invoice-details":t.defineSolvimonInvoiceDetails,"invoices-list":r.defineSolvimonInvoicesList,"payment-history":s.defineSolvimonPaymentHistory,"subscriptions-list":c.defineSolvimonSubscriptionsList,"subscription-schedules":m.defineSolvimonSubscriptionSchedules,"customer-payment-methods":u.defineSolvimonCustomerPaymentMethods,"billing-information":f.defineSolvimonBillingInformation,"billing-information-form":a.defineSolvimonBillingInformationForm,"payment-method-form":e.defineSolvimonPaymentMethodForm};function y(e,n,o,i){const t=function(e){if("string"==typeof e){const n=document.querySelector(e);if(!n)throw new Error(`Solvimon: container not found for selector "${e}"`);return n}return e}(e);!function(e,n){const o="screen"===n?d[e]:v[e];if(!o)throw new Error(`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys("screen"===n?d:v).join(", ")}.`);o()}(n,o);const r=(s=n,l.getComponentName(s));var s;const c=document.createElement(r);return function(e,n){const o=e;for(const[i,t]of Object.entries(n))void 0!==t&&(o[i]=t)}(c,i),t.appendChild(c),{unmount(){c.remove()}}}function p(e){const{container:n,...o}=e;return{container:n,props:o}}const S={"customer-overview":n._sfc_main,checkout:o._sfc_main},_={invoice:i._sfc_main,"invoice-details":t._sfc_main,"invoices-list":r._sfc_main,"payment-history":s._sfc_main,"subscriptions-list":c._sfc_main,"subscription-schedules":m._sfc_main,"customer-payment-methods":u._sfc_main,"billing-information":f._sfc_main,"billing-information-form":a._sfc_main,"payment-method-form":e._sfc_main};exports.createSolvimonCore=function(e={}){return{config:e,createComponent(n,o){const{container:i,props:t}=p(o);return y(i,n,"component",{...e,...t}).unmount},createScreen(n,o){const{container:i,props:t}=p(o);return y(i,n,"screen",{...e,...t}).unmount}}},exports.getRegisteredComponentIds=function(){return Object.keys(_)},exports.getRegisteredScreenIds=function(){return Object.keys(S)};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { d as defineSolvimonPaymentMethodForm, _ as _sfc_main } from "./PaymentMethodForm.entry.ce-f4cFExKc.mjs";
|
|
2
|
-
import { d as defineSolvimonCustomerOverview, _ as _sfc_main$b } from "./CustomerOverview.entry.ce-Ce_Yk8-i.mjs";
|
|
3
|
-
import { d as defineSolvimonCheckout, _ as _sfc_main$a } from "./Checkout.entry.ce-Bif6vR1K.mjs";
|
|
4
|
-
import { d as defineSolvimonInvoice, _ as _sfc_main$9 } from "./Invoice.entry.ce-CdJ9TPZe.mjs";
|
|
5
|
-
import { d as defineSolvimonInvoiceDetails, _ as _sfc_main$8 } from "./InvoiceDetails.entry.ce-Cnpz8CLJ.mjs";
|
|
6
|
-
import { d as defineSolvimonInvoicesList, _ as _sfc_main$7 } from "./InvoicesList.entry.ce-BBaHEtAD.mjs";
|
|
7
|
-
import { d as defineSolvimonPaymentHistory, _ as _sfc_main$6 } from "./PaymentHistory.entry.ce-Dw2NiP4l.mjs";
|
|
8
|
-
import { d as defineSolvimonSubscriptionsList, _ as _sfc_main$5 } from "./SubscriptionsList.entry.ce-cNYuQZZj.mjs";
|
|
9
|
-
import { d as defineSolvimonSubscriptionSchedules, _ as _sfc_main$4 } from "./SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs";
|
|
10
|
-
import { d as defineSolvimonCustomerPaymentMethods, _ as _sfc_main$3 } from "./CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs";
|
|
11
|
-
import { d as defineSolvimonBillingInformation, _ as _sfc_main$2 } from "./BillingInformation.entry.ce-1xVdsWlL.mjs";
|
|
12
|
-
import { d as defineSolvimonBillingInformationForm, _ as _sfc_main$1 } from "./BillingInformationForm.entry.ce-xfT0Jqps.mjs";
|
|
13
|
-
import { n as getComponentName } from "./component-BkmcE85U.mjs";
|
|
14
|
-
const SCREEN_DEFINERS = {
|
|
15
|
-
"customer-overview": defineSolvimonCustomerOverview,
|
|
16
|
-
checkout: defineSolvimonCheckout
|
|
17
|
-
};
|
|
18
|
-
const COMPONENT_DEFINERS = {
|
|
19
|
-
invoice: defineSolvimonInvoice,
|
|
20
|
-
"invoice-details": defineSolvimonInvoiceDetails,
|
|
21
|
-
"invoices-list": defineSolvimonInvoicesList,
|
|
22
|
-
"payment-history": defineSolvimonPaymentHistory,
|
|
23
|
-
"subscriptions-list": defineSolvimonSubscriptionsList,
|
|
24
|
-
"subscription-schedules": defineSolvimonSubscriptionSchedules,
|
|
25
|
-
"customer-payment-methods": defineSolvimonCustomerPaymentMethods,
|
|
26
|
-
"billing-information": defineSolvimonBillingInformation,
|
|
27
|
-
"billing-information-form": defineSolvimonBillingInformationForm,
|
|
28
|
-
"payment-method-form": defineSolvimonPaymentMethodForm
|
|
29
|
-
};
|
|
30
|
-
function getCustomElementTagName(viewId) {
|
|
31
|
-
return getComponentName(viewId);
|
|
32
|
-
}
|
|
33
|
-
function ensureCustomElementDefined(viewId, type) {
|
|
34
|
-
const defineFn = type === "screen" ? SCREEN_DEFINERS[viewId] : COMPONENT_DEFINERS[viewId];
|
|
35
|
-
if (!defineFn) {
|
|
36
|
-
throw new Error(
|
|
37
|
-
`Solvimon: unknown ${type} id "${viewId}". Registered ${type}s: ${Object.keys(
|
|
38
|
-
type === "screen" ? SCREEN_DEFINERS : COMPONENT_DEFINERS
|
|
39
|
-
).join(", ")}.`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
defineFn();
|
|
43
|
-
}
|
|
44
|
-
function resolveContainer(container) {
|
|
45
|
-
if (typeof container === "string") {
|
|
46
|
-
const el = document.querySelector(container);
|
|
47
|
-
if (!el) {
|
|
48
|
-
throw new Error(`Solvimon: container not found for selector "${container}"`);
|
|
49
|
-
}
|
|
50
|
-
return el;
|
|
51
|
-
}
|
|
52
|
-
return container;
|
|
53
|
-
}
|
|
54
|
-
function setElementProps(element, props) {
|
|
55
|
-
const el = element;
|
|
56
|
-
for (const [key, value] of Object.entries(props)) {
|
|
57
|
-
if (value === void 0) continue;
|
|
58
|
-
el[key] = value;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function mountSolvimonElement(container, id, type, props) {
|
|
62
|
-
const parent = resolveContainer(container);
|
|
63
|
-
ensureCustomElementDefined(id, type);
|
|
64
|
-
const tagName = getCustomElementTagName(id);
|
|
65
|
-
const element = document.createElement(tagName);
|
|
66
|
-
setElementProps(element, props);
|
|
67
|
-
parent.appendChild(element);
|
|
68
|
-
return {
|
|
69
|
-
unmount() {
|
|
70
|
-
element.remove();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function splitContainer(configuration) {
|
|
75
|
-
const { container, ...props } = configuration;
|
|
76
|
-
return { container, props };
|
|
77
|
-
}
|
|
78
|
-
function createSolvimonCore(config = {}) {
|
|
79
|
-
return {
|
|
80
|
-
config,
|
|
81
|
-
createComponent(id, configuration) {
|
|
82
|
-
const { container, props } = splitContainer(configuration);
|
|
83
|
-
return mountSolvimonElement(
|
|
84
|
-
container,
|
|
85
|
-
id,
|
|
86
|
-
"component",
|
|
87
|
-
{ ...config, ...props }
|
|
88
|
-
).unmount;
|
|
89
|
-
},
|
|
90
|
-
createScreen(id, configuration) {
|
|
91
|
-
const { container, props } = splitContainer(configuration);
|
|
92
|
-
return mountSolvimonElement(
|
|
93
|
-
container,
|
|
94
|
-
id,
|
|
95
|
-
"screen",
|
|
96
|
-
{ ...config, ...props }
|
|
97
|
-
).unmount;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
const SCREENS = {
|
|
102
|
-
"customer-overview": _sfc_main$b,
|
|
103
|
-
checkout: _sfc_main$a
|
|
104
|
-
};
|
|
105
|
-
const COMPONENTS = {
|
|
106
|
-
invoice: _sfc_main$9,
|
|
107
|
-
"invoice-details": _sfc_main$8,
|
|
108
|
-
"invoices-list": _sfc_main$7,
|
|
109
|
-
"payment-history": _sfc_main$6,
|
|
110
|
-
"subscriptions-list": _sfc_main$5,
|
|
111
|
-
"subscription-schedules": _sfc_main$4,
|
|
112
|
-
"customer-payment-methods": _sfc_main$3,
|
|
113
|
-
"billing-information": _sfc_main$2,
|
|
114
|
-
"billing-information-form": _sfc_main$1,
|
|
115
|
-
"payment-method-form": _sfc_main
|
|
116
|
-
};
|
|
117
|
-
function getRegisteredScreenIds() {
|
|
118
|
-
return Object.keys(SCREENS);
|
|
119
|
-
}
|
|
120
|
-
function getRegisteredComponentIds() {
|
|
121
|
-
return Object.keys(COMPONENTS);
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
getRegisteredScreenIds as a,
|
|
125
|
-
createSolvimonCore as c,
|
|
126
|
-
getRegisteredComponentIds as g
|
|
127
|
-
};
|