Files
Basalt2/node_modules/@vueuse/integrations/useSortable.iife.min.js
Robert Jelic 5c15cf28fa Test
2025-02-10 07:12:35 +01:00

2 lines
2.4 KiB
JavaScript

var VueDemi=function(n,t,a){if(n.install)return n;if(!t)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),n;if(t.version.slice(0,4)==="2.7."){let e=function(o,f){var r,i={},l={config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),provide:function(c,d){return i[c]=d,this},directive:function(c,d){return d?(t.directive(c,d),l):t.directive(c)},mount:function(c,d){return r||(r=new t(Object.assign({propsData:f},o,{provide:Object.assign(i,o.provide)})),r.$mount(c,d),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}};return l};var p=e;for(var s in t)n[s]=t[s];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=t,n.Vue2=t,n.version=t.version,n.warn=t.util.warn,n.hasInjectionContext=()=>!!n.getCurrentInstance(),n.createApp=e}else if(t.version.slice(0,2)==="2.")if(a){for(var s in a)n[s]=a[s];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=t,n.Vue2=t,n.version=t.version,n.hasInjectionContext=()=>!!n.getCurrentInstance()}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(t.version.slice(0,2)==="3."){for(var s in t)n[s]=t[s];n.isVue2=!1,n.isVue3=!0,n.install=function(){},n.Vue=t,n.Vue2=void 0,n.version=t.version,n.set=function(e,o,f){return Array.isArray(e)?(e.length=Math.max(e.length,o),e.splice(o,1,f),f):(e[o]=f,f)},n.del=function(e,o){if(Array.isArray(e)){e.splice(o,1);return}delete e[o]}}else console.error("[vue-demi] Vue version "+t.version+" is unsupported.");return n}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(n,t,a,s){"use strict";function p(o,f,r={}){let i;const{document:l=t.defaultDocument,...c}=r,d={onUpdate:u=>{e(f,u.oldIndex,u.newIndex)}},v=()=>{const u=typeof o=="string"?l?.querySelector(o):t.unrefElement(o);u&&(i=new a(u,{...d,...c}))},y=()=>i?.destroy(),h=(u,b)=>{if(b!==void 0)i?.option(u,b);else return i?.option(u)};return t.tryOnMounted(v),t.tryOnScopeDispose(y),{stop:y,start:v,option:h}}function e(o,f,r){const i=s.isRef(o),l=i?[...t.toValue(o)]:t.toValue(o);if(r>=0&&r<l.length){const c=l.splice(f,1)[0];s.nextTick(()=>{l.splice(r,0,c),i&&(o.value=l)})}}n.moveArrayElement=e,n.useSortable=p})(this.VueUse=this.VueUse||{},VueUse,Sortable,VueDemi);