(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57d95c0c"],{"18ac":function(t,e,n){"use strict";n.r(e);var o=n("c1b7");const i={class:"view-column-index"},r={class:"view-column-left"},a={class:"view-column-right"};function l(t,e,n,l,s,c){const u=Object(o["resolveComponent"])("el-alert"),d=Object(o["resolveComponent"])("el-checkbox"),h=Object(o["resolveComponent"])("draggable");return Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,[Object(o["createVNode"])(u,{title:"拖动列名可调整表格列显示顺序",type:"success","show-icon":!1}),e[1]||(e[1]=Object(o["createElementVNode"])("div",{class:"view-column view-column-title"},[Object(o["createElementVNode"])("div",{class:"view-column-index"},"#"),Object(o["createElementVNode"])("div",{class:"view-column-left"},"列名"),Object(o["createElementVNode"])("div",{class:"view-column-right"},"是否显示")],-1)),Object(o["createVNode"])(h,Object(o["mergeProps"])({class:"list-group",tag:"transition-group","component-data":t.componentData,list:t.viewColumns},t.dragOptions,{"item-key":"order"}),{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(o["TransitionGroup"],{class:"drag-center-item"},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(t.viewColumns,(t,n)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"view-column",key:n},[Object(o["createElementVNode"])("div",i,Object(o["toDisplayString"])(n+1),1),Object(o["createElementVNode"])("div",r,Object(o["toDisplayString"])(t.title),1),Object(o["createElementVNode"])("div",a,[Object(o["createVNode"])(d,{modelValue:t.show,"onUpdate:modelValue":e=>t.show=e},{default:Object(o["withCtx"])(()=>e[0]||(e[0]=[Object(o["createElementVNode"])("div",{style:{height:"100%",width:"250px"}},null,-1)])),_:2},1032,["modelValue","onUpdate:modelValue"])])]))),128))]),_:1})]),_:1},16,["component-data","list"])],64)}var s=n("eb8e"),c=Object(o["defineComponent"])({props:{viewColumns:{type:Array,default:()=>[]}},components:{draggable:s["a"]},data(){return{}},setup(t,e){const n=Object(o["reactive"])({animation:200,group:"description",disabled:!1,ghostClass:"ghost"}),i=Object(o["reactive"])({tag:"ul",type:"transition-group"});return{dragOptions:n,componentData:i}}}),u=(n("8d28"),n("9c21")),d=n.n(u);const h=d()(c,[["render",l],["__scopeId","data-v-70fc2f38"]]);e["default"]=h},"8d28":function(t,e,n){"use strict";n("c0b2")},c0b2:function(t,e,n){},eb8e:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Ve}));var o=n("c1b7"); /*! * vue-draggable-next v2.2.0 * (c) 2023 Anish George * @license MIT */ /**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function r(t){for(var e=1;e=0||(i[n]=t[n]);return i}function u(t,e){if(null==t)return{};var n,o,i=c(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var d="1.14.0";function h(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var p=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=h(/Edge/i),g=h(/firefox/i),m=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),v=h(/iP(ad|od|hone)/i),b=h(/chrome/i)&&h(/android/i),w={capture:!1,passive:!1};function y(t,e,n){t.addEventListener(e,n,!p&&w)}function E(t,e,n){t.removeEventListener(e,n,!p&&w)}function _(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function D(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function O(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&_(t,e):_(t,e))||o&&t===n)return t;if(t===n)break}while(t=D(t))}return null}var S,x=/\s+/g;function C(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(x," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(x," ")}}function T(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"===typeof n?"":"px")}}function I(t,e){var n="";if("string"===typeof t)n=t;else do{var o=T(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function N(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i=r:i<=r,!a)return o;if(o===M())break;o=F(o,!1)}return!1}function j(t,e,n,o){var i=0,r=0,a=t.children;while(r2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=u(n,tt);K.pluginEvent.bind(qt)(t,e,r({dragEl:ot,parentEl:it,ghostEl:rt,rootEl:at,nextEl:lt,lastDownEl:st,cloneEl:ct,cloneHidden:ut,dragStarted:Dt,putSortable:mt,activeSortable:qt.active,originalEvent:o,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft,hideGhostForTarget:Wt,unhideGhostForTarget:Ut,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){nt({sortable:e,name:t,originalEvent:o})}},i))};function nt(t){Q(r({putSortable:mt,cloneEl:ct,targetEl:ot,rootEl:at,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft},t))}var ot,it,rt,at,lt,st,ct,ut,dt,ht,pt,ft,gt,mt,vt,bt,wt,yt,Et,_t,Dt,Ot,St,xt,Ct,Tt=!1,It=!1,Nt=[],Mt=!1,At=!1,Pt=[],jt=!1,kt=[],Xt="undefined"!==typeof document,Rt=v,Yt=f||p?"cssFloat":"float",Ft=Xt&&!b&&!v&&"draggable"in document.createElement("div"),Bt=function(){if(Xt){if(p)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Lt=function(t,e){var n=T(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=j(t,0,e),r=j(t,1,e),a=i&&T(i),l=r&&T(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+A(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||r&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},Vt=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},$t=function(t,e){var n;return Nt.some((function(o){var i=o[U].options.emptyInsertThreshold;if(i&&!k(o)){var r=A(o),a=t>=r.left-i&&t<=r.right+i,l=e>=r.top-i&&e<=r.bottom+i;return a&&l?n=o:void 0}})),n},Ht=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(o,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==a(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Wt=function(){!Bt&&rt&&T(rt,"display","none")},Ut=function(){!Bt&&rt&&T(rt,"display","")};Xt&&document.addEventListener("click",(function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1}),!0);var zt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=$t(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}},Gt=function(t){ot&&ot.parentNode[U]._isOutsideThisEl(t.target)};function qt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=s({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==qt.supportPointer&&"PointerEvent"in window&&!m,emptyInsertThreshold:5};for(var o in K.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Ht(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?y(t,"pointerdown",this._onTapStart):(y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),Nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,z())}function Jt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Zt(t,e,n,o,i,r,a,l){var s,c,u=t[U],d=u.options.onMove;return!window.CustomEvent||p||f?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||A(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Kt(t){t.draggable=!1}function Qt(){jt=!1}function te(t,e,n){var o=A(j(n.el,0,n.options,!0)),i=10;return e?t.clientXo.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function ne(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&xtu+c*r/2:sd-xt)return-St}else if(s>u+c*(1-i)/2&&sd-c*r/2)?s>u+c/2?1:-1:0}function oe(t){return X(ot)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Kt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,e?"touchmove":"mousemove",this._onTouchMove):(y(ot,"dragend",this),y(at,"dragstart",this._onDragStart));try{document.selection?ae((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Tt=!1,at&&ot){et("dragStarted",this,{evt:e}),this.nativeDraggable&&y(document,"dragover",Gt);var n=this.options;!t&&C(ot,n.dragClass,!1),C(ot,n.ghostClass,!0),qt.active=this,t&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Wt();var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY),t===e)break;e=t}if(ot.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){var n=void 0;if(n=e[U]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ut()}},_onTouchMove:function(t){if(vt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=rt&&I(rt,!0),a=rt&&r&&r.a,l=rt&&r&&r.d,s=Rt&&Ct&&R(Ct),c=(i.clientX-vt.clientX+o.x)/(a||1)+(s?s[0]-Pt[0]:0)/(a||1),u=(i.clientY-vt.clientY+o.y)/(l||1)+(s?s[1]-Pt[1]:0)/(l||1);if(!qt.active&&!Tt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(nt({rootEl:it,name:"add",toEl:it,fromEl:at,originalEvent:t}),nt({sortable:this,name:"remove",toEl:it,originalEvent:t}),nt({rootEl:it,name:"sort",toEl:it,fromEl:at,originalEvent:t}),nt({sortable:this,name:"sort",toEl:it,originalEvent:t})),mt&&mt.save()):ht!==dt&&ht>=0&&(nt({sortable:this,name:"update",toEl:it,originalEvent:t}),nt({sortable:this,name:"sort",toEl:it,originalEvent:t})),qt.active&&(null!=ht&&-1!==ht||(ht=dt,ft=pt),nt({sortable:this,name:"end",toEl:it,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){et("nulling",this),at=ot=it=rt=lt=ct=st=ut=vt=bt=Dt=ht=ft=dt=pt=Ot=St=mt=gt=qt.dragged=qt.ghost=qt.clone=qt.active=null,kt.forEach((function(t){t.checked=!0})),kt.length=wt=yt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),Jt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;ot.replace(xe,(t,e)=>e?e.toUpperCase():""));function Te(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function Ie(t,e,n){const o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}function Ne(t,e){return Object.values(t).indexOf(e)}function Me(t,e,n,o){if(!t)return[];const i=Object.values(t),r=e.length-o,a=[...e].map((t,e)=>e>=r?i.length:i.indexOf(t));return a}function Ae(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function Pe(t){return e=>{null!==this.realList&&this["onDrag"+t](e),Ae.call(this,t,e)}}function je(t){return["transition-group","TransitionGroup"].includes(t)}function ke(t){if(!t||1!==t.length)return!1;const[{type:e}]=t;return!!e&&je(e.name)}function Xe(t,e){return e?{...e.props,...e.attrs}:t}const Re=["Start","Add","Remove","Update","End"],Ye=["Choose","Unchoose","Sort","Filter","Clone"],Fe=["Move",...Re,...Ye].map(t=>"on"+t);let Be=null;const Le={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Ve=Object(o["defineComponent"])({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Re.map(t=>t.toLowerCase()),...Ye.map(t=>t.toLowerCase())],props:Le,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const t=this.$slots.default?this.$slots.default():null,e=Xe(this.$attrs,this.componentData);return t?(this.transitionMode=ke(t),Object(o["h"])(this.getTag(),e,t)):Object(o["h"])(this.getTag(),e,[])},created(){null!==this.list&&null!==this.modelValue&&Oe.error("list props are mutually exclusive! Please set one.")},mounted(){const t={};Re.forEach(e=>{t["on"+e]=Pe.call(this,e)}),Ye.forEach(e=>{t["on"+e]=Ae.bind(this,e)});const e=Object.keys(this.$attrs).reduce((t,e)=>(t[Ce(e)]=this.$attrs[e],t),{}),n=Object.assign({},e,t,{onMove:(t,e)=>this.onDragMove(t,e)});!("draggable"in n)&&(n.draggable=">*");const o=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new qt(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(t){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Object(o["resolveComponent"])(this.component):this.tag},updateOptions(t){for(var e in t){const n=Ce(e);-1===Fe.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=Me(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=Ne(this.getChildrenNodes()||[],t);if(-1===e)return null;const n=this.realList[e];return{index:e,element:n}},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list)return void t(this.list);const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=t=>t.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=n=>n.splice(e,0,n.splice(t,1)[0]);this.alterList(n)},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.computeIndexes(),this.context=this.getUnderlyingVm(t.item),this.context&&(t.item._underlying_vm_=this.clone(this.context.element),Be=t.item)},onDragAdd(t){const e=t.item._underlying_vm_;if(void 0===e)return;Te(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Ie(this.$el,t.item,t.oldIndex),"clone"===t.pullMode)return void Te(t.clone);if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){Te(t.item),Ie(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),Be=null},getTrargetedComponent(t){return t.__draggable_component__},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getTrargetedComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const t=n.getUnderlyingVm(e);if(t)return Object.assign(t,i)}return i},computeFutureIndex(t,e){const n=[...e.to.children].filter(t=>"none"!==t.style["display"]);if(0===n.length)return 0;const o=n.indexOf(e.related),i=t.component.getVmIndex(o),r=-1!==n.indexOf(Be);return r||!e.willInsertAfter?i:i+1}}})}).call(this,n("a282"))}}]);