New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vueuse/integrations

Package Overview
Dependencies
Maintainers
1
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/integrations - npm Package Compare versions

Comparing version

to
12.6.1

58

index.iife.js

@@ -36,7 +36,7 @@ (function (exports, shared, Schema, vue, axios, changeCase, Cookie, core, drauu, focusTrap, Fuse, idbKeyval, jwtDecode, nprogress, QRCode, Sortable) {

var _a;
return ((_a = errorInfo.value) == null ? undefined : _a.errors) || [];
return ((_a = errorInfo.value) == null ? void 0 : _a.errors) || [];
});
const errorFields = vue.computed(() => {
var _a;
return ((_a = errorInfo.value) == null ? undefined : _a.fields) || {};
return ((_a = errorInfo.value) == null ? void 0 : _a.fields) || {};
});

@@ -92,3 +92,3 @@ const validator = vue.computed(() => new AsyncValidatorSchema(vue.toValue(rules)));

function useAxios(...args) {
const url = typeof args[0] === "string" ? args[0] : undefined;
const url = typeof args[0] === "string" ? args[0] : void 0;
const argsPlaceholder = typeof url === "string" ? 1 : 0;

@@ -103,3 +103,3 @@ const defaultOptions = {

let options = defaultOptions;
const isAxiosInstance = (val) => !!(val == null ? undefined : val.request);
const isAxiosInstance = (val) => !!(val == null ? void 0 : val.request);
if (args.length > 0 + argsPlaceholder) {

@@ -159,5 +159,5 @@ if (isAxiosInstance(args[0 + argsPlaceholder]))

const execute = (executeUrl = url, config = {}) => {
error.value = undefined;
error.value = void 0;
const _url = typeof executeUrl === "string" ? executeUrl : url != null ? url : config.url;
if (_url === undefined) {
if (_url === void 0) {
error.value = new axios.AxiosError(axios.AxiosError.ERR_INVALID_URL);

@@ -186,3 +186,3 @@ isFinished.value = true;

var _a;
(_a = options.onFinish) == null ? undefined : _a.call(options);
(_a = options.onFinish) == null ? void 0 : _a.call(options);
if (currentExecuteCounter === executeCounter)

@@ -310,6 +310,6 @@ loading(false);

cornerRadius: 0,
dasharray: undefined,
dasharray: void 0,
fill: "transparent",
mode: "draw",
...options == null ? undefined : options.brush
...options == null ? void 0 : options.brush
});

@@ -325,23 +325,23 @@ vue.watch(brush, () => {

var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.undo();
return (_a = drauuInstance.value) == null ? void 0 : _a.undo();
};
const redo = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.redo();
return (_a = drauuInstance.value) == null ? void 0 : _a.redo();
};
const clear = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.clear();
return (_a = drauuInstance.value) == null ? void 0 : _a.clear();
};
const cancel = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.cancel();
return (_a = drauuInstance.value) == null ? void 0 : _a.cancel();
};
const load = (svg) => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.load(svg);
return (_a = drauuInstance.value) == null ? void 0 : _a.load(svg);
};
const dump = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.dump();
return (_a = drauuInstance.value) == null ? void 0 : _a.dump();
};

@@ -351,3 +351,3 @@ const cleanup = () => {

disposables.forEach((dispose) => dispose());
(_a = drauuInstance.value) == null ? undefined : _a.unmount();
(_a = drauuInstance.value) == null ? void 0 : _a.unmount();
};

@@ -469,3 +469,3 @@ const syncStatus = () => {

(_a = vue.toValue(data)) != null ? _a : [],
(_b = vue.toValue(options)) == null ? undefined : _b.fuseOptions
(_b = vue.toValue(options)) == null ? void 0 : _b.fuseOptions
);

@@ -477,3 +477,3 @@ };

var _a;
return (_a = vue.toValue(options)) == null ? undefined : _a.fuseOptions;
return (_a = vue.toValue(options)) == null ? void 0 : _a.fuseOptions;
},

@@ -494,6 +494,6 @@ () => {

const resolved = vue.toValue(options);
if ((resolved == null ? undefined : resolved.matchAllWhenSearchEmpty) && !vue.toValue(search))
if ((resolved == null ? void 0 : resolved.matchAllWhenSearchEmpty) && !vue.toValue(search))
return vue.toValue(data).map((item, index) => ({ item, refIndex: index }));
const limit = resolved == null ? undefined : resolved.resultLimit;
return fuse.value.search(vue.toValue(search), limit ? { limit } : undefined);
const limit = resolved == null ? void 0 : resolved.resultLimit;
return fuse.value.search(vue.toValue(search), limit ? { limit } : void 0);
});

@@ -571,3 +571,3 @@ return {

} catch (err) {
onError == null ? undefined : onError(err);
onError == null ? void 0 : onError(err);
return fallbackValue;

@@ -637,4 +637,4 @@ }

const start = () => {
const target = typeof el === "string" ? document == null ? undefined : document.querySelector(el) : core.unrefElement(el);
if (!target || sortable !== undefined)
const target = typeof el === "string" ? document == null ? void 0 : document.querySelector(el) : core.unrefElement(el);
if (!target || sortable !== void 0)
return;

@@ -644,10 +644,10 @@ sortable = new Sortable(target, { ...defaultOptions, ...resetOptions });

const stop = () => {
sortable == null ? undefined : sortable.destroy();
sortable = undefined;
sortable == null ? void 0 : sortable.destroy();
sortable = void 0;
};
const option = (name, value) => {
if (value !== undefined)
sortable == null ? undefined : sortable.option(name, value);
if (value !== void 0)
sortable == null ? void 0 : sortable.option(name, value);
else
return sortable == null ? undefined : sortable.option(name);
return sortable == null ? void 0 : sortable.option(name);
};

@@ -654,0 +654,0 @@ core.tryOnMounted(start);

@@ -1,1 +0,1 @@

(function(p,C,U,n,L,$,k,w,K,X,Y,P,Z,b,x,ee){"use strict";function te(t){var l=Object.create(null);return t&&Object.keys(t).forEach(function(e){if(e!=="default"){var a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(l,e,a.get?a:{enumerable:!0,get:function(){return t[e]}})}}),l.default=t,Object.freeze(l)}var ne=te($);const ae=U.default||U;function le(t,l,e={}){const{validateOption:a={},immediate:u=!0,manual:r=!1}=e,o=C.toRef(t),c=n.shallowRef(null),s=n.ref(!0),d=n.ref(!u||r),h=n.computed(()=>{var i;return((i=c.value)==null?void 0:i.errors)||[]}),g=n.computed(()=>{var i;return((i=c.value)==null?void 0:i.fields)||{}}),m=n.computed(()=>new ae(n.toValue(l))),y=async()=>{s.value=!1,d.value=!1;try{await m.value.validate(o.value,a),d.value=!0,c.value=null}catch(i){c.value=i}finally{s.value=!0}return{pass:d.value,errorInfo:c.value,errors:h.value,errorFields:g.value}};r||n.watch([o,m],()=>y(),{immediate:u,deep:!0});const V={isFinished:s,pass:d,errors:h,errorInfo:c,errorFields:g,execute:y};function A(){return new Promise((i,E)=>{C.until(s).toBe(!0).then(()=>i(V)).catch(D=>E(D))})}return{...V,then(i,E){return A().then(i,E)}}}function oe(...t){const l=typeof t[0]=="string"?t[0]:void 0,e=typeof l=="string"?1:0,a={immediate:!!e,shallow:!0,abortPrevious:!0};let u={},r=L,o=a;const c=v=>!!v?.request;t.length>0+e&&(c(t[0+e])?r=t[0+e]:u=t[0+e]),t.length>1+e&&c(t[1+e])&&(r=t[1+e]),(t.length===2+e&&!c(t[1+e])||t.length===3+e)&&(o=t[t.length-1]||a);const{shallow:s,onSuccess:d=C.noop,onError:h=C.noop,immediate:g,resetOnExecute:m=!1}=o,y=o.initialData,V=n.shallowRef(),A=(s?n.shallowRef:n.ref)(y),i=n.ref(!1),E=n.ref(!1),D=n.ref(!1),R=n.shallowRef();let S=new AbortController;const F=v=>{i.value||!E.value||(S.abort(v),S=new AbortController,D.value=!0,E.value=!1,i.value=!1)},f=v=>{E.value=v,i.value=!v},_=()=>{m&&(A.value=y)},Q=()=>new Promise((v,I)=>{C.until(i).toBe(!0).then(()=>R.value?I(R.value):v(q))}),H={then:(...v)=>Q().then(...v),catch:(...v)=>Q().catch(...v)};let j=0;const z=(v=l,I={})=>{R.value=void 0;const J=typeof v=="string"?v:l??I.url;if(J===void 0)return R.value=new L.AxiosError(L.AxiosError.ERR_INVALID_URL),i.value=!0,H;_(),o.abortPrevious!==!1&&F(),f(!0),j+=1;const we=j;return D.value=!1,r(J,{...u,...typeof v=="object"?v:I,signal:S.signal}).then(O=>{if(D.value)return;V.value=O;const M=O.data;A.value=M,d(M)}).catch(O=>{R.value=O,h(O)}).finally(()=>{var O;(O=o.onFinish)==null||O.call(o),we===j&&f(!1)}),H};g&&l&&z();const q={response:V,data:A,error:R,isFinished:i,isLoading:E,cancel:F,isAborted:D,isCanceled:D,abort:F,execute:z};return{...q,...H}}const N=Object.entries(ne).filter(([t,l])=>typeof l=="function"&&t.endsWith("Case")).reduce((t,[l,e])=>(t[l]=e,t),{});function ue(t,l,e){const a=n.computed(()=>{const r=n.toValue(l);if(!N[r])throw new Error(`Invalid change case type "${r}"`);return r});if(typeof t=="function")return n.computed(()=>N[a.value](n.toValue(t),n.toValue(e)));const u=n.ref(t);return n.computed({get(){return N[a.value](u.value,n.toValue(e))},set(r){u.value=r}})}function re(t){const l=new k(t?t.headers.cookie:null);return(e,{doNotParse:a=!1,autoUpdateDependencies:u=!1}={})=>T(e,{doNotParse:a,autoUpdateDependencies:u},l)}function T(t,{doNotParse:l=!1,autoUpdateDependencies:e=!1}={},a=new k){const u=e?[...t||[]]:t;let r=a.getAll({doNotParse:!0});const o=n.ref(0),c=()=>{const s=a.getAll({doNotParse:!0});se(u||null,s,r)&&o.value++,r=s};return a.addChangeListener(c),C.tryOnScopeDispose(()=>{a.removeChangeListener(c)}),{get:(...s)=>(e&&u&&!u.includes(s[0])&&u.push(s[0]),o.value,a.get(s[0],{doNotParse:l,...s[1]})),getAll:(...s)=>(o.value,a.getAll({doNotParse:l,...s[0]})),set:(...s)=>a.set(...s),remove:(...s)=>a.remove(...s),addChangeListener:(...s)=>a.addChangeListener(...s),removeChangeListener:(...s)=>a.removeChangeListener(...s)}}function se(t,l,e){if(!t)return!0;for(const a of t)if(l[a]!==e[a])return!0;return!1}function ce(t,l){const e=n.ref();let a=[];const u=w.createEventHook(),r=w.createEventHook(),o=w.createEventHook(),c=w.createEventHook(),s=w.createEventHook(),d=n.ref(!1),h=n.ref(!1),g=n.ref(!1),m=n.ref(!1),y=n.ref({color:"black",size:3,arrowEnd:!1,cornerRadius:0,dasharray:void 0,fill:"transparent",mode:"draw",...l?.brush});n.watch(y,()=>{const f=e.value;f&&(f.brush=y.value,f.mode=y.value.mode)},{deep:!0});const V=()=>{var f;return(f=e.value)==null?void 0:f.undo()},A=()=>{var f;return(f=e.value)==null?void 0:f.redo()},i=()=>{var f;return(f=e.value)==null?void 0:f.clear()},E=()=>{var f;return(f=e.value)==null?void 0:f.cancel()},D=f=>{var _;return(_=e.value)==null?void 0:_.load(f)},R=()=>{var f;return(f=e.value)==null?void 0:f.dump()},S=()=>{var f;a.forEach(_=>_()),(f=e.value)==null||f.unmount()},F=()=>{e.value&&(d.value=e.value.canUndo(),h.value=e.value.canRedo(),g.value=e.value.altPressed,m.value=e.value.shiftPressed)};return n.watch(()=>w.unrefElement(t),f=>{!f||typeof SVGSVGElement>"u"||!(f instanceof SVGSVGElement)||(e.value&&S(),e.value=K.createDrauu({el:f,...l}),F(),a=[e.value.on("canceled",()=>r.trigger()),e.value.on("committed",_=>o.trigger(_)),e.value.on("start",()=>c.trigger()),e.value.on("end",()=>s.trigger()),e.value.on("changed",()=>{F(),u.trigger()})])},{flush:"post"}),C.tryOnScopeDispose(()=>S()),{drauuInstance:e,load:D,dump:R,clear:i,cancel:E,undo:V,redo:A,canUndo:d,canRedo:h,brush:y,onChanged:u.on,onCommitted:o.on,onStart:c.on,onEnd:s.on,onCanceled:r.on}}function ie(t,l={}){let e;const{immediate:a,...u}=l,r=n.ref(!1),o=n.ref(!1),c=m=>e&&e.activate(m),s=m=>e&&e.deactivate(m),d=()=>{e&&(e.pause(),o.value=!0)},h=()=>{e&&(e.unpause(),o.value=!1)},g=n.computed(()=>{const m=n.toValue(t);return w.toArray(m).map(y=>{const V=n.toValue(y);return typeof V=="string"?V:w.unrefElement(V)}).filter(C.notNullish)});return n.watch(g,m=>{m.length&&(e=X.createFocusTrap(m,{...u,onActivate(){r.value=!0,l.onActivate&&l.onActivate()},onDeactivate(){r.value=!1,l.onDeactivate&&l.onDeactivate()}}),a&&c())},{flush:"post"}),w.tryOnScopeDispose(()=>s()),{hasFocus:r,isPaused:o,activate:c,deactivate:s,pause:d,unpause:h}}function fe(t,l,e){const a=()=>{var o,c;return new Y((o=n.toValue(l))!=null?o:[],(c=n.toValue(e))==null?void 0:c.fuseOptions)},u=n.ref(a());n.watch(()=>{var o;return(o=n.toValue(e))==null?void 0:o.fuseOptions},()=>{u.value=a()},{deep:!0}),n.watch(()=>n.toValue(l),o=>{u.value.setCollection(o)},{deep:!0});const r=n.computed(()=>{const o=n.toValue(e);if(o?.matchAllWhenSearchEmpty&&!n.toValue(t))return n.toValue(l).map((s,d)=>({item:s,refIndex:d}));const c=o?.resultLimit;return u.value.search(n.toValue(t),c?{limit:c}:void 0)});return{fuse:u,results:r}}function de(t,l,e={}){const{flush:a="pre",deep:u=!0,shallow:r=!1,onError:o=i=>{console.error(i)},writeDefaults:c=!0}=e,s=n.ref(!1),d=(r?n.shallowRef:n.ref)(l),h=n.toValue(l);async function g(){try{const i=await P.get(t);i===void 0?h!=null&&c&&await P.set(t,h):d.value=i}catch(i){o(i)}s.value=!0}g();async function m(){try{d.value==null?await P.del(t):await P.update(t,()=>n.toRaw(d.value))}catch(i){o(i)}}const{pause:y,resume:V}=w.watchPausable(d,()=>m(),{flush:a,deep:u});async function A(i){y(),d.value=i,await m(),V()}return{set:A,isFinished:s,data:d}}function he(t,l={}){const{onError:e,fallbackValue:a=null}=l,u=(c,s)=>{try{return Z.jwtDecode(c,s)}catch(d){return e?.(d),a}},r=n.computed(()=>u(n.toValue(t),{header:!0})),o=n.computed(()=>u(n.toValue(t)));return{header:r,payload:o}}function me(t=null,l){const e=C.toRef(t),a=n.computed({set:r=>r?b.start():b.done(),get:()=>typeof e.value=="number"&&e.value<1});l&&b.configure(l);const u=b.set;return b.set=r=>(e.value=r,u.call(b,r)),n.watchEffect(()=>{typeof e.value=="number"&&C.isClient&&u.call(b,e.value)}),C.tryOnScopeDispose(b.remove),{isLoading:a,progress:e,start:b.start,done:b.done,remove:()=>{e.value=null,b.remove()}}}function ve(t,l){const e=C.toRef(t),a=n.ref("");return n.watch(e,async u=>{e.value&&C.isClient&&(a.value=await x.toDataURL(u,l))},{immediate:!0}),a}function pe(t,l,e={}){let a;const{document:u=w.defaultDocument,...r}=e,o={onUpdate:h=>{G(l,h.oldIndex,h.newIndex,h)}},c=()=>{const h=typeof t=="string"?u?.querySelector(t):w.unrefElement(t);!h||a!==void 0||(a=new ee(h,{...o,...r}))},s=()=>{a?.destroy(),a=void 0},d=(h,g)=>{if(g!==void 0)a?.option(h,g);else return a?.option(h)};return w.tryOnMounted(c),w.tryOnScopeDispose(s),{stop:s,start:c,option:d}}function B(t,l,e){const a=t.children[e];t.insertBefore(l,a)}function W(t){t.parentNode&&t.parentNode.removeChild(t)}function G(t,l,e,a=null){a!=null&&(W(a.item),B(a.from,a.item,l));const u=n.isRef(t),r=u?[...n.toValue(t)]:n.toValue(t);if(e>=0&&e<r.length){const o=r.splice(l,1)[0];n.nextTick(()=>{r.splice(e,0,o),u&&(t.value=r)})}}p.createCookies=re,p.insertNodeAt=B,p.moveArrayElement=G,p.removeNode=W,p.useAsyncValidator=le,p.useAxios=oe,p.useChangeCase=ue,p.useCookies=T,p.useDrauu=ce,p.useFocusTrap=ie,p.useFuse=fe,p.useIDBKeyval=de,p.useJwt=he,p.useNProgress=me,p.useQRCode=ve,p.useSortable=pe})(this.VueUse=this.VueUse||{},VueUse,AsyncValidator,Vue,axios,changeCase,UniversalCookie,VueUse,Drauu,focusTrap,Fuse,idbKeyval,jwt_decode,nprogress,QRCode,Sortable);
(function(p,C,U,n,L,$,k,w,K,X,Y,P,Z,b,x,ee){"use strict";function te(t){var o=Object.create(null);return t&&Object.keys(t).forEach(function(e){if(e!=="default"){var a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,a.get?a:{enumerable:!0,get:function(){return t[e]}})}}),o.default=t,Object.freeze(o)}var ne=te($);const ae=U.default||U;function oe(t,o,e={}){const{validateOption:a={},immediate:r=!0,manual:u=!1}=e,l=C.toRef(t),c=n.shallowRef(null),s=n.ref(!0),d=n.ref(!r||u),v=n.computed(()=>{var i;return((i=c.value)==null?void 0:i.errors)||[]}),g=n.computed(()=>{var i;return((i=c.value)==null?void 0:i.fields)||{}}),h=n.computed(()=>new ae(n.toValue(o))),y=async()=>{s.value=!1,d.value=!1;try{await h.value.validate(l.value,a),d.value=!0,c.value=null}catch(i){c.value=i}finally{s.value=!0}return{pass:d.value,errorInfo:c.value,errors:v.value,errorFields:g.value}};u||n.watch([l,h],()=>y(),{immediate:r,deep:!0});const V={isFinished:s,pass:d,errors:v,errorInfo:c,errorFields:g,execute:y};function A(){return new Promise((i,E)=>{C.until(s).toBe(!0).then(()=>i(V)).catch(D=>E(D))})}return{...V,then(i,E){return A().then(i,E)}}}function le(...t){const o=typeof t[0]=="string"?t[0]:void 0,e=typeof o=="string"?1:0,a={immediate:!!e,shallow:!0,abortPrevious:!0};let r={},u=L,l=a;const c=m=>!!m?.request;t.length>0+e&&(c(t[0+e])?u=t[0+e]:r=t[0+e]),t.length>1+e&&c(t[1+e])&&(u=t[1+e]),(t.length===2+e&&!c(t[1+e])||t.length===3+e)&&(l=t[t.length-1]||a);const{shallow:s,onSuccess:d=C.noop,onError:v=C.noop,immediate:g,resetOnExecute:h=!1}=l,y=l.initialData,V=n.shallowRef(),A=(s?n.shallowRef:n.ref)(y),i=n.ref(!1),E=n.ref(!1),D=n.ref(!1),R=n.shallowRef();let S=new AbortController;const F=m=>{i.value||!E.value||(S.abort(m),S=new AbortController,D.value=!0,E.value=!1,i.value=!1)},f=m=>{E.value=m,i.value=!m},_=()=>{h&&(A.value=y)},Q=()=>new Promise((m,I)=>{C.until(i).toBe(!0).then(()=>R.value?I(R.value):m(q))}),H={then:(...m)=>Q().then(...m),catch:(...m)=>Q().catch(...m)};let j=0;const z=(m=o,I={})=>{R.value=void 0;const J=typeof m=="string"?m:o??I.url;if(J===void 0)return R.value=new L.AxiosError(L.AxiosError.ERR_INVALID_URL),i.value=!0,H;_(),l.abortPrevious!==!1&&F(),f(!0),j+=1;const we=j;return D.value=!1,u(J,{...r,...typeof m=="object"?m:I,signal:S.signal}).then(O=>{if(D.value)return;V.value=O;const M=O.data;A.value=M,d(M)}).catch(O=>{R.value=O,v(O)}).finally(()=>{var O;(O=l.onFinish)==null||O.call(l),we===j&&f(!1)}),H};g&&o&&z();const q={response:V,data:A,error:R,isFinished:i,isLoading:E,cancel:F,isAborted:D,isCanceled:D,abort:F,execute:z};return{...q,...H}}const N=Object.entries(ne).filter(([t,o])=>typeof o=="function"&&t.endsWith("Case")).reduce((t,[o,e])=>(t[o]=e,t),{});function re(t,o,e){const a=n.computed(()=>{const u=n.toValue(o);if(!N[u])throw new Error(`Invalid change case type "${u}"`);return u});if(typeof t=="function")return n.computed(()=>N[a.value](n.toValue(t),n.toValue(e)));const r=n.ref(t);return n.computed({get(){return N[a.value](r.value,n.toValue(e))},set(u){r.value=u}})}function ue(t){const o=new k(t?t.headers.cookie:null);return(e,{doNotParse:a=!1,autoUpdateDependencies:r=!1}={})=>T(e,{doNotParse:a,autoUpdateDependencies:r},o)}function T(t,{doNotParse:o=!1,autoUpdateDependencies:e=!1}={},a=new k){const r=e?[...t||[]]:t;let u=a.getAll({doNotParse:!0});const l=n.ref(0),c=()=>{const s=a.getAll({doNotParse:!0});se(r||null,s,u)&&l.value++,u=s};return a.addChangeListener(c),C.tryOnScopeDispose(()=>{a.removeChangeListener(c)}),{get:(...s)=>(e&&r&&!r.includes(s[0])&&r.push(s[0]),l.value,a.get(s[0],{doNotParse:o,...s[1]})),getAll:(...s)=>(l.value,a.getAll({doNotParse:o,...s[0]})),set:(...s)=>a.set(...s),remove:(...s)=>a.remove(...s),addChangeListener:(...s)=>a.addChangeListener(...s),removeChangeListener:(...s)=>a.removeChangeListener(...s)}}function se(t,o,e){if(!t)return!0;for(const a of t)if(o[a]!==e[a])return!0;return!1}function ce(t,o){const e=n.ref();let a=[];const r=w.createEventHook(),u=w.createEventHook(),l=w.createEventHook(),c=w.createEventHook(),s=w.createEventHook(),d=n.ref(!1),v=n.ref(!1),g=n.ref(!1),h=n.ref(!1),y=n.ref({color:"black",size:3,arrowEnd:!1,cornerRadius:0,dasharray:void 0,fill:"transparent",mode:"draw",...o?.brush});n.watch(y,()=>{const f=e.value;f&&(f.brush=y.value,f.mode=y.value.mode)},{deep:!0});const V=()=>{var f;return(f=e.value)==null?void 0:f.undo()},A=()=>{var f;return(f=e.value)==null?void 0:f.redo()},i=()=>{var f;return(f=e.value)==null?void 0:f.clear()},E=()=>{var f;return(f=e.value)==null?void 0:f.cancel()},D=f=>{var _;return(_=e.value)==null?void 0:_.load(f)},R=()=>{var f;return(f=e.value)==null?void 0:f.dump()},S=()=>{var f;a.forEach(_=>_()),(f=e.value)==null||f.unmount()},F=()=>{e.value&&(d.value=e.value.canUndo(),v.value=e.value.canRedo(),g.value=e.value.altPressed,h.value=e.value.shiftPressed)};return n.watch(()=>w.unrefElement(t),f=>{!f||typeof SVGSVGElement>"u"||!(f instanceof SVGSVGElement)||(e.value&&S(),e.value=K.createDrauu({el:f,...o}),F(),a=[e.value.on("canceled",()=>u.trigger()),e.value.on("committed",_=>l.trigger(_)),e.value.on("start",()=>c.trigger()),e.value.on("end",()=>s.trigger()),e.value.on("changed",()=>{F(),r.trigger()})])},{flush:"post"}),C.tryOnScopeDispose(()=>S()),{drauuInstance:e,load:D,dump:R,clear:i,cancel:E,undo:V,redo:A,canUndo:d,canRedo:v,brush:y,onChanged:r.on,onCommitted:l.on,onStart:c.on,onEnd:s.on,onCanceled:u.on}}function ie(t,o={}){let e;const{immediate:a,...r}=o,u=n.ref(!1),l=n.ref(!1),c=h=>e&&e.activate(h),s=h=>e&&e.deactivate(h),d=()=>{e&&(e.pause(),l.value=!0)},v=()=>{e&&(e.unpause(),l.value=!1)},g=n.computed(()=>{const h=n.toValue(t);return w.toArray(h).map(y=>{const V=n.toValue(y);return typeof V=="string"?V:w.unrefElement(V)}).filter(C.notNullish)});return n.watch(g,h=>{h.length&&(e=X.createFocusTrap(h,{...r,onActivate(){u.value=!0,o.onActivate&&o.onActivate()},onDeactivate(){u.value=!1,o.onDeactivate&&o.onDeactivate()}}),a&&c())},{flush:"post"}),w.tryOnScopeDispose(()=>s()),{hasFocus:u,isPaused:l,activate:c,deactivate:s,pause:d,unpause:v}}function fe(t,o,e){const a=()=>{var l,c;return new Y((l=n.toValue(o))!=null?l:[],(c=n.toValue(e))==null?void 0:c.fuseOptions)},r=n.ref(a());n.watch(()=>{var l;return(l=n.toValue(e))==null?void 0:l.fuseOptions},()=>{r.value=a()},{deep:!0}),n.watch(()=>n.toValue(o),l=>{r.value.setCollection(l)},{deep:!0});const u=n.computed(()=>{const l=n.toValue(e);if(l?.matchAllWhenSearchEmpty&&!n.toValue(t))return n.toValue(o).map((s,d)=>({item:s,refIndex:d}));const c=l?.resultLimit;return r.value.search(n.toValue(t),c?{limit:c}:void 0)});return{fuse:r,results:u}}function de(t,o,e={}){const{flush:a="pre",deep:r=!0,shallow:u=!1,onError:l=i=>{console.error(i)},writeDefaults:c=!0}=e,s=n.ref(!1),d=(u?n.shallowRef:n.ref)(o),v=n.toValue(o);async function g(){try{const i=await P.get(t);i===void 0?v!=null&&c&&await P.set(t,v):d.value=i}catch(i){l(i)}s.value=!0}g();async function h(){try{d.value==null?await P.del(t):await P.update(t,()=>n.toRaw(d.value))}catch(i){l(i)}}const{pause:y,resume:V}=w.watchPausable(d,()=>h(),{flush:a,deep:r});async function A(i){y(),d.value=i,await h(),V()}return{set:A,isFinished:s,data:d}}function ve(t,o={}){const{onError:e,fallbackValue:a=null}=o,r=(c,s)=>{try{return Z.jwtDecode(c,s)}catch(d){return e?.(d),a}},u=n.computed(()=>r(n.toValue(t),{header:!0})),l=n.computed(()=>r(n.toValue(t)));return{header:u,payload:l}}function he(t=null,o){const e=C.toRef(t),a=n.computed({set:u=>u?b.start():b.done(),get:()=>typeof e.value=="number"&&e.value<1});o&&b.configure(o);const r=b.set;return b.set=u=>(e.value=u,r.call(b,u)),n.watchEffect(()=>{typeof e.value=="number"&&C.isClient&&r.call(b,e.value)}),C.tryOnScopeDispose(b.remove),{isLoading:a,progress:e,start:b.start,done:b.done,remove:()=>{e.value=null,b.remove()}}}function me(t,o){const e=C.toRef(t),a=n.ref("");return n.watch(e,async r=>{e.value&&C.isClient&&(a.value=await x.toDataURL(r,o))},{immediate:!0}),a}function pe(t,o,e={}){let a;const{document:r=w.defaultDocument,...u}=e,l={onUpdate:v=>{G(o,v.oldIndex,v.newIndex,v)}},c=()=>{const v=typeof t=="string"?r?.querySelector(t):w.unrefElement(t);!v||a!==void 0||(a=new ee(v,{...l,...u}))},s=()=>{a?.destroy(),a=void 0},d=(v,g)=>{if(g!==void 0)a?.option(v,g);else return a?.option(v)};return w.tryOnMounted(c),w.tryOnScopeDispose(s),{stop:s,start:c,option:d}}function B(t,o,e){const a=t.children[e];t.insertBefore(o,a)}function W(t){t.parentNode&&t.parentNode.removeChild(t)}function G(t,o,e,a=null){a!=null&&(W(a.item),B(a.from,a.item,o));const r=n.isRef(t),u=r?[...n.toValue(t)]:n.toValue(t);if(e>=0&&e<u.length){const l=u.splice(o,1)[0];n.nextTick(()=>{u.splice(e,0,l),r&&(t.value=u)})}}p.createCookies=ue,p.insertNodeAt=B,p.moveArrayElement=G,p.removeNode=W,p.useAsyncValidator=oe,p.useAxios=le,p.useChangeCase=re,p.useCookies=T,p.useDrauu=ce,p.useFocusTrap=ie,p.useFuse=fe,p.useIDBKeyval=de,p.useJwt=ve,p.useNProgress=he,p.useQRCode=me,p.useSortable=pe})(this.VueUse=this.VueUse||{},VueUse,AsyncValidator,Vue,axios,changeCase,UniversalCookie,VueUse,Drauu,focusTrap,Fuse,idbKeyval,jwt_decode,nprogress,QRCode,Sortable);
{
"name": "@vueuse/integrations",
"type": "module",
"version": "12.5.0",
"version": "12.6.1",
"description": "Integration wrappers for utility libraries",

@@ -158,4 +158,4 @@ "author": "Anthony Fu <https://github.com/antfu>",

"vue": "^3.5.13",
"@vueuse/core": "12.5.0",
"@vueuse/shared": "12.5.0"
"@vueuse/core": "12.6.1",
"@vueuse/shared": "12.6.1"
},

@@ -170,4 +170,4 @@ "devDependencies": {

"drauu": "^0.4.2",
"focus-trap": "^7.6.2",
"fuse.js": "^7.0.0",
"focus-trap": "^7.6.4",
"fuse.js": "^7.1.0",
"idb-keyval": "^6.2.1",

@@ -174,0 +174,0 @@ "jwt-decode": "^4.0.0",

@@ -17,7 +17,7 @@ (function (exports, shared, Schema, vue) {

var _a;
return ((_a = errorInfo.value) == null ? undefined : _a.errors) || [];
return ((_a = errorInfo.value) == null ? void 0 : _a.errors) || [];
});
const errorFields = vue.computed(() => {
var _a;
return ((_a = errorInfo.value) == null ? undefined : _a.fields) || {};
return ((_a = errorInfo.value) == null ? void 0 : _a.fields) || {};
});

@@ -24,0 +24,0 @@ const validator = vue.computed(() => new AsyncValidatorSchema(vue.toValue(rules)));

@@ -1,1 +0,1 @@

(function(m,u,s,t){"use strict";const p=s.default||s;function y(w,A,F={}){const{validateOption:U={},immediate:o=!0,manual:i=!1}=F,c=u.toRef(w),r=t.shallowRef(null),a=t.ref(!0),n=t.ref(!o||i),d=t.computed(()=>{var e;return((e=r.value)==null?void 0:e.errors)||[]}),f=t.computed(()=>{var e;return((e=r.value)==null?void 0:e.fields)||{}}),v=t.computed(()=>new p(t.toValue(A))),h=async()=>{a.value=!1,n.value=!1;try{await v.value.validate(c.value,U),n.value=!0,r.value=null}catch(e){r.value=e}finally{a.value=!0}return{pass:n.value,errorInfo:r.value,errors:d.value,errorFields:f.value}};i||t.watch([c,v],()=>h(),{immediate:o,deep:!0});const V={isFinished:a,pass:n,errors:d,errorInfo:r,errorFields:f,execute:h};function R(){return new Promise((e,l)=>{u.until(a).toBe(!0).then(()=>e(V)).catch(I=>l(I))})}return{...V,then(e,l){return R().then(e,l)}}}m.useAsyncValidator=y})(this.VueUse=this.VueUse||{},VueUse,AsyncValidator,Vue);
(function(m,s,u,t){"use strict";const p=u.default||u;function y(w,A,F={}){const{validateOption:U={},immediate:o=!0,manual:i=!1}=F,c=s.toRef(w),r=t.shallowRef(null),a=t.ref(!0),l=t.ref(!o||i),d=t.computed(()=>{var e;return((e=r.value)==null?void 0:e.errors)||[]}),f=t.computed(()=>{var e;return((e=r.value)==null?void 0:e.fields)||{}}),v=t.computed(()=>new p(t.toValue(A))),h=async()=>{a.value=!1,l.value=!1;try{await v.value.validate(c.value,U),l.value=!0,r.value=null}catch(e){r.value=e}finally{a.value=!0}return{pass:l.value,errorInfo:r.value,errors:d.value,errorFields:f.value}};i||t.watch([c,v],()=>h(),{immediate:o,deep:!0});const V={isFinished:a,pass:l,errors:d,errorInfo:r,errorFields:f,execute:h};function R(){return new Promise((e,n)=>{s.until(a).toBe(!0).then(()=>e(V)).catch(I=>n(I))})}return{...V,then(e,n){return R().then(e,n)}}}m.useAsyncValidator=y})(this.VueUse=this.VueUse||{},VueUse,AsyncValidator,Vue);

@@ -5,3 +5,3 @@ (function (exports, shared, axios, vue) {

function useAxios(...args) {
const url = typeof args[0] === "string" ? args[0] : undefined;
const url = typeof args[0] === "string" ? args[0] : void 0;
const argsPlaceholder = typeof url === "string" ? 1 : 0;

@@ -16,3 +16,3 @@ const defaultOptions = {

let options = defaultOptions;
const isAxiosInstance = (val) => !!(val == null ? undefined : val.request);
const isAxiosInstance = (val) => !!(val == null ? void 0 : val.request);
if (args.length > 0 + argsPlaceholder) {

@@ -72,5 +72,5 @@ if (isAxiosInstance(args[0 + argsPlaceholder]))

const execute = (executeUrl = url, config = {}) => {
error.value = undefined;
error.value = void 0;
const _url = typeof executeUrl === "string" ? executeUrl : url != null ? url : config.url;
if (_url === undefined) {
if (_url === void 0) {
error.value = new axios.AxiosError(axios.AxiosError.ERR_INVALID_URL);

@@ -99,3 +99,3 @@ isFinished.value = true;

var _a;
(_a = options.onFinish) == null ? undefined : _a.call(options);
(_a = options.onFinish) == null ? void 0 : _a.call(options);
if (currentExecuteCounter === executeCounter)

@@ -102,0 +102,0 @@ loading(false);

@@ -1,1 +0,1 @@

(function(L,h,d,o){"use strict";function O(...t){const a=typeof t[0]=="string"?t[0]:void 0,n=typeof a=="string"?1:0,E={immediate:!!n,shallow:!0,abortPrevious:!0};let R={},v=d,s=E;const p=e=>!!e?.request;t.length>0+n&&(p(t[0+n])?v=t[0+n]:R=t[0+n]),t.length>1+n&&p(t[1+n])&&(v=t[1+n]),(t.length===2+n&&!p(t[1+n])||t.length===3+n)&&(s=t[t.length-1]||E);const{shallow:U,onSuccess:j=h.noop,onError:q=h.noop,immediate:B,resetOnExecute:N=!1}=s,x=s.initialData,y=o.shallowRef(),w=(U?o.shallowRef:o.ref)(x),i=o.ref(!1),c=o.ref(!1),r=o.ref(!1),u=o.shallowRef();let b=new AbortController;const A=e=>{i.value||!c.value||(b.abort(e),b=new AbortController,r.value=!0,c.value=!1,i.value=!1)},V=e=>{c.value=e,i.value=!e},S=()=>{N&&(w.value=x)},D=()=>new Promise((e,f)=>{h.until(i).toBe(!0).then(()=>u.value?f(u.value):e(_))}),C={then:(...e)=>D().then(...e),catch:(...e)=>D().catch(...e)};let m=0;const P=(e=a,f={})=>{u.value=void 0;const F=typeof e=="string"?e:a??f.url;if(F===void 0)return u.value=new d.AxiosError(d.AxiosError.ERR_INVALID_URL),i.value=!0,C;S(),s.abortPrevious!==!1&&A(),V(!0),m+=1;const k=m;return r.value=!1,v(F,{...R,...typeof e=="object"?e:f,signal:b.signal}).then(l=>{if(r.value)return;y.value=l;const I=l.data;w.value=I,j(I)}).catch(l=>{u.value=l,q(l)}).finally(()=>{var l;(l=s.onFinish)==null||l.call(s),k===m&&V(!1)}),C};B&&a&&P();const _={response:y,data:w,error:u,isFinished:i,isLoading:c,cancel:A,isAborted:r,isCanceled:r,abort:A,execute:P};return{..._,...C}}L.useAxios=O})(this.VueUse=this.VueUse||{},VueUse,axios,Vue);
(function(L,h,v,l){"use strict";function O(...t){const r=typeof t[0]=="string"?t[0]:void 0,n=typeof r=="string"?1:0,E={immediate:!!n,shallow:!0,abortPrevious:!0};let R={},d=v,s=E;const p=e=>!!e?.request;t.length>0+n&&(p(t[0+n])?d=t[0+n]:R=t[0+n]),t.length>1+n&&p(t[1+n])&&(d=t[1+n]),(t.length===2+n&&!p(t[1+n])||t.length===3+n)&&(s=t[t.length-1]||E);const{shallow:U,onSuccess:j=h.noop,onError:q=h.noop,immediate:B,resetOnExecute:N=!1}=s,x=s.initialData,y=l.shallowRef(),w=(U?l.shallowRef:l.ref)(x),i=l.ref(!1),c=l.ref(!1),u=l.ref(!1),a=l.shallowRef();let b=new AbortController;const A=e=>{i.value||!c.value||(b.abort(e),b=new AbortController,u.value=!0,c.value=!1,i.value=!1)},V=e=>{c.value=e,i.value=!e},S=()=>{N&&(w.value=x)},D=()=>new Promise((e,f)=>{h.until(i).toBe(!0).then(()=>a.value?f(a.value):e(_))}),C={then:(...e)=>D().then(...e),catch:(...e)=>D().catch(...e)};let m=0;const P=(e=r,f={})=>{a.value=void 0;const F=typeof e=="string"?e:r??f.url;if(F===void 0)return a.value=new v.AxiosError(v.AxiosError.ERR_INVALID_URL),i.value=!0,C;S(),s.abortPrevious!==!1&&A(),V(!0),m+=1;const k=m;return u.value=!1,d(F,{...R,...typeof e=="object"?e:f,signal:b.signal}).then(o=>{if(u.value)return;y.value=o;const I=o.data;w.value=I,j(I)}).catch(o=>{a.value=o,q(o)}).finally(()=>{var o;(o=s.onFinish)==null||o.call(s),k===m&&V(!1)}),C};B&&r&&P();const _={response:y,data:w,error:a,isFinished:i,isLoading:c,cancel:A,isAborted:u,isCanceled:u,abort:A,execute:P};return{..._,...C}}L.useAxios=O})(this.VueUse=this.VueUse||{},VueUse,axios,Vue);

@@ -21,6 +21,6 @@ (function (exports, core, shared, drauu, vue) {

cornerRadius: 0,
dasharray: undefined,
dasharray: void 0,
fill: "transparent",
mode: "draw",
...options == null ? undefined : options.brush
...options == null ? void 0 : options.brush
});

@@ -36,23 +36,23 @@ vue.watch(brush, () => {

var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.undo();
return (_a = drauuInstance.value) == null ? void 0 : _a.undo();
};
const redo = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.redo();
return (_a = drauuInstance.value) == null ? void 0 : _a.redo();
};
const clear = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.clear();
return (_a = drauuInstance.value) == null ? void 0 : _a.clear();
};
const cancel = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.cancel();
return (_a = drauuInstance.value) == null ? void 0 : _a.cancel();
};
const load = (svg) => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.load(svg);
return (_a = drauuInstance.value) == null ? void 0 : _a.load(svg);
};
const dump = () => {
var _a;
return (_a = drauuInstance.value) == null ? undefined : _a.dump();
return (_a = drauuInstance.value) == null ? void 0 : _a.dump();
};

@@ -62,3 +62,3 @@ const cleanup = () => {

disposables.forEach((dispose) => dispose());
(_a = drauuInstance.value) == null ? undefined : _a.unmount();
(_a = drauuInstance.value) == null ? void 0 : _a.unmount();
};

@@ -65,0 +65,0 @@ const syncStatus = () => {

@@ -1,1 +0,1 @@

(function(E,t,k,H,a){"use strict";function V(p,r){const n=a.ref();let l=[];const s=t.createEventHook(),d=t.createEventHook(),c=t.createEventHook(),f=t.createEventHook(),i=t.createEventHook(),v=a.ref(!1),h=a.ref(!1),S=a.ref(!1),_=a.ref(!1),u=a.ref({color:"black",size:3,arrowEnd:!1,cornerRadius:0,dasharray:void 0,fill:"transparent",mode:"draw",...r?.brush});a.watch(u,()=>{const e=n.value;e&&(e.brush=u.value,e.mode=u.value.mode)},{deep:!0});const C=()=>{var e;return(e=n.value)==null?void 0:e.undo()},U=()=>{var e;return(e=n.value)==null?void 0:e.redo()},b=()=>{var e;return(e=n.value)==null?void 0:e.clear()},D=()=>{var e;return(e=n.value)==null?void 0:e.cancel()},w=e=>{var o;return(o=n.value)==null?void 0:o.load(e)},y=()=>{var e;return(e=n.value)==null?void 0:e.dump()},m=()=>{var e;l.forEach(o=>o()),(e=n.value)==null||e.unmount()},g=()=>{n.value&&(v.value=n.value.canUndo(),h.value=n.value.canRedo(),S.value=n.value.altPressed,_.value=n.value.shiftPressed)};return a.watch(()=>t.unrefElement(p),e=>{!e||typeof SVGSVGElement>"u"||!(e instanceof SVGSVGElement)||(n.value&&m(),n.value=H.createDrauu({el:e,...r}),g(),l=[n.value.on("canceled",()=>d.trigger()),n.value.on("committed",o=>c.trigger(o)),n.value.on("start",()=>f.trigger()),n.value.on("end",()=>i.trigger()),n.value.on("changed",()=>{g(),s.trigger()})])},{flush:"post"}),k.tryOnScopeDispose(()=>m()),{drauuInstance:n,load:w,dump:y,clear:b,cancel:D,undo:C,redo:U,canUndo:v,canRedo:h,brush:u,onChanged:s.on,onCommitted:c.on,onStart:f.on,onEnd:i.on,onCanceled:d.on}}E.useDrauu=V})(this.VueUse=this.VueUse||{},VueUse,VueUse,Drauu,Vue);
(function(E,o,k,H,a){"use strict";function V(p,u){const n=a.ref();let l=[];const s=o.createEventHook(),c=o.createEventHook(),d=o.createEventHook(),v=o.createEventHook(),i=o.createEventHook(),f=a.ref(!1),h=a.ref(!1),S=a.ref(!1),_=a.ref(!1),r=a.ref({color:"black",size:3,arrowEnd:!1,cornerRadius:0,dasharray:void 0,fill:"transparent",mode:"draw",...u?.brush});a.watch(r,()=>{const e=n.value;e&&(e.brush=r.value,e.mode=r.value.mode)},{deep:!0});const C=()=>{var e;return(e=n.value)==null?void 0:e.undo()},U=()=>{var e;return(e=n.value)==null?void 0:e.redo()},b=()=>{var e;return(e=n.value)==null?void 0:e.clear()},D=()=>{var e;return(e=n.value)==null?void 0:e.cancel()},w=e=>{var t;return(t=n.value)==null?void 0:t.load(e)},y=()=>{var e;return(e=n.value)==null?void 0:e.dump()},m=()=>{var e;l.forEach(t=>t()),(e=n.value)==null||e.unmount()},g=()=>{n.value&&(f.value=n.value.canUndo(),h.value=n.value.canRedo(),S.value=n.value.altPressed,_.value=n.value.shiftPressed)};return a.watch(()=>o.unrefElement(p),e=>{!e||typeof SVGSVGElement>"u"||!(e instanceof SVGSVGElement)||(n.value&&m(),n.value=H.createDrauu({el:e,...u}),g(),l=[n.value.on("canceled",()=>c.trigger()),n.value.on("committed",t=>d.trigger(t)),n.value.on("start",()=>v.trigger()),n.value.on("end",()=>i.trigger()),n.value.on("changed",()=>{g(),s.trigger()})])},{flush:"post"}),k.tryOnScopeDispose(()=>m()),{drauuInstance:n,load:w,dump:y,clear:b,cancel:D,undo:C,redo:U,canUndo:f,canRedo:h,brush:r,onChanged:s.on,onCommitted:d.on,onStart:v.on,onEnd:i.on,onCanceled:c.on}}E.useDrauu=V})(this.VueUse=this.VueUse||{},VueUse,VueUse,Drauu,Vue);

@@ -9,3 +9,3 @@ (function (exports, Fuse, vue) {

(_a = vue.toValue(data)) != null ? _a : [],
(_b = vue.toValue(options)) == null ? undefined : _b.fuseOptions
(_b = vue.toValue(options)) == null ? void 0 : _b.fuseOptions
);

@@ -17,3 +17,3 @@ };

var _a;
return (_a = vue.toValue(options)) == null ? undefined : _a.fuseOptions;
return (_a = vue.toValue(options)) == null ? void 0 : _a.fuseOptions;
},

@@ -34,6 +34,6 @@ () => {

const resolved = vue.toValue(options);
if ((resolved == null ? undefined : resolved.matchAllWhenSearchEmpty) && !vue.toValue(search))
if ((resolved == null ? void 0 : resolved.matchAllWhenSearchEmpty) && !vue.toValue(search))
return vue.toValue(data).map((item, index) => ({ item, refIndex: index }));
const limit = resolved == null ? undefined : resolved.resultLimit;
return fuse.value.search(vue.toValue(search), limit ? { limit } : undefined);
const limit = resolved == null ? void 0 : resolved.resultLimit;
return fuse.value.search(vue.toValue(search), limit ? { limit } : void 0);
});

@@ -40,0 +40,0 @@ return {

@@ -1,1 +0,1 @@

(function(o,i,e){"use strict";function c(r,l,s){const a=()=>{var t,u;return new i((t=e.toValue(l))!=null?t:[],(u=e.toValue(s))==null?void 0:u.fuseOptions)},n=e.ref(a());e.watch(()=>{var t;return(t=e.toValue(s))==null?void 0:t.fuseOptions},()=>{n.value=a()},{deep:!0}),e.watch(()=>e.toValue(l),t=>{n.value.setCollection(t)},{deep:!0});const d=e.computed(()=>{const t=e.toValue(s);if(t?.matchAllWhenSearchEmpty&&!e.toValue(r))return e.toValue(l).map((f,V)=>({item:f,refIndex:V}));const u=t?.resultLimit;return n.value.search(e.toValue(r),u?{limit:u}:void 0)});return{fuse:n,results:d}}o.useFuse=c})(this.VueUse=this.VueUse||{},Fuse,Vue);
(function(a,i,e){"use strict";function c(o,s,n){const r=()=>{var t,u;return new i((t=e.toValue(s))!=null?t:[],(u=e.toValue(n))==null?void 0:u.fuseOptions)},l=e.ref(r());e.watch(()=>{var t;return(t=e.toValue(n))==null?void 0:t.fuseOptions},()=>{l.value=r()},{deep:!0}),e.watch(()=>e.toValue(s),t=>{l.value.setCollection(t)},{deep:!0});const V=e.computed(()=>{const t=e.toValue(n);if(t?.matchAllWhenSearchEmpty&&!e.toValue(o))return e.toValue(s).map((d,f)=>({item:d,refIndex:f}));const u=t?.resultLimit;return l.value.search(e.toValue(o),u?{limit:u}:void 0)});return{fuse:l,results:V}}a.useFuse=c})(this.VueUse=this.VueUse||{},Fuse,Vue);

@@ -13,3 +13,3 @@ (function (exports, jwtDecode, vue) {

} catch (err) {
onError == null ? undefined : onError(err);
onError == null ? void 0 : onError(err);
return fallbackValue;

@@ -16,0 +16,0 @@ }

@@ -1,1 +0,1 @@

(function(c,n,e){"use strict";function o(t,a={}){const{onError:u,fallbackValue:l=null}=a,r=(i,h)=>{try{return n.jwtDecode(i,h)}catch(V){return u?.(V),l}},s=e.computed(()=>r(e.toValue(t),{header:!0})),d=e.computed(()=>r(e.toValue(t)));return{header:s,payload:d}}c.useJwt=o})(this.VueUse=this.VueUse||{},jwt_decode,Vue);
(function(u,c,t){"use strict";function n(e,a={}){const{onError:o,fallbackValue:l=null}=a,r=(i,h)=>{try{return c.jwtDecode(i,h)}catch(V){return o?.(V),l}},s=t.computed(()=>r(t.toValue(e),{header:!0})),d=t.computed(()=>r(t.toValue(e)));return{header:s,payload:d}}u.useJwt=n})(this.VueUse=this.VueUse||{},jwt_decode,Vue);

@@ -13,4 +13,4 @@ (function (exports, core, Sortable, vue) {

const start = () => {
const target = typeof el === "string" ? document == null ? undefined : document.querySelector(el) : core.unrefElement(el);
if (!target || sortable !== undefined)
const target = typeof el === "string" ? document == null ? void 0 : document.querySelector(el) : core.unrefElement(el);
if (!target || sortable !== void 0)
return;

@@ -20,10 +20,10 @@ sortable = new Sortable(target, { ...defaultOptions, ...resetOptions });

const stop = () => {
sortable == null ? undefined : sortable.destroy();
sortable = undefined;
sortable == null ? void 0 : sortable.destroy();
sortable = void 0;
};
const option = (name, value) => {
if (value !== undefined)
sortable == null ? undefined : sortable.option(name, value);
if (value !== void 0)
sortable == null ? void 0 : sortable.option(name, value);
else
return sortable == null ? undefined : sortable.option(name);
return sortable == null ? void 0 : sortable.option(name);
};

@@ -30,0 +30,0 @@ core.tryOnMounted(start);

@@ -1,1 +0,1 @@

(function(s,d,V,l){"use strict";function h(n,i,o={}){let e;const{document:r=d.defaultDocument,...u}=o,f={onUpdate:t=>{m(i,t.oldIndex,t.newIndex,t)}},p=()=>{const t=typeof n=="string"?r?.querySelector(n):d.unrefElement(n);!t||e!==void 0||(e=new V(t,{...f,...u}))},y=()=>{e?.destroy(),e=void 0},S=(t,N)=>{if(N!==void 0)e?.option(t,N);else return e?.option(t)};return d.tryOnMounted(p),d.tryOnScopeDispose(y),{stop:y,start:p,option:S}}function c(n,i,o){const e=n.children[o];n.insertBefore(i,e)}function a(n){n.parentNode&&n.parentNode.removeChild(n)}function m(n,i,o,e=null){e!=null&&(a(e.item),c(e.from,e.item,i));const r=l.isRef(n),u=r?[...l.toValue(n)]:l.toValue(n);if(o>=0&&o<u.length){const f=u.splice(i,1)[0];l.nextTick(()=>{u.splice(o,0,f),r&&(n.value=u)})}}s.insertNodeAt=c,s.moveArrayElement=m,s.removeNode=a,s.useSortable=h})(this.VueUse=this.VueUse||{},VueUse,Sortable,Vue);
(function(l,u,N,d){"use strict";function V(t,i,o={}){let e;const{document:s=u.defaultDocument,...r}=o,c={onUpdate:n=>{m(i,n.oldIndex,n.newIndex,n)}},p=()=>{const n=typeof t=="string"?s?.querySelector(t):u.unrefElement(t);!n||e!==void 0||(e=new N(n,{...c,...r}))},v=()=>{e?.destroy(),e=void 0},h=(n,y)=>{if(y!==void 0)e?.option(n,y);else return e?.option(n)};return u.tryOnMounted(p),u.tryOnScopeDispose(v),{stop:v,start:p,option:h}}function f(t,i,o){const e=t.children[o];t.insertBefore(i,e)}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function m(t,i,o,e=null){e!=null&&(a(e.item),f(e.from,e.item,i));const s=d.isRef(t),r=s?[...d.toValue(t)]:d.toValue(t);if(o>=0&&o<r.length){const c=r.splice(i,1)[0];d.nextTick(()=>{r.splice(o,0,c),s&&(t.value=r)})}}l.insertNodeAt=f,l.moveArrayElement=m,l.removeNode=a,l.useSortable=V})(this.VueUse=this.VueUse||{},VueUse,Sortable,Vue);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet