*/function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,i,l={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(l[n]=e[n]);return l}function d(e,t){if(null==e)return{};var n,i,l=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var u="1.14.0";function h(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var p=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),b=h(/Edge/i),f=h(/firefox/i),m=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),v=h(/iP(ad|od|hone)/i),g=h(/chrome/i)&&h(/android/i),y={capture:!1,passive:!1};function O(e,t,n){e.addEventListener(t,n,!p&&y)}function j(e,t,n){e.removeEventListener(t,n,!p&&y)}function w(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&w(e,t):w(e,t))||i&&e===n)return e;if(e===n)break}while(e=x(e))}return null}var C,S=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(S," ")}}function D(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"===typeof n?"":"px")}}function I(e,t){var n="";if("string"===typeof e)n=e;else do{var i=D(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var l=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return l&&new l(n)}function T(e,t,n){if(e){var i=e.getElementsByTagName(t),l=0,o=i.length;if(n)for(;l<o;l++)n(i[l],l);return i}return[]}function N(){var e=document.scrollingElement;return e||document.documentElement}function E(e,t,n,i,l){if(e.getBoundingClientRect||e===window){var o,a,r,c,s,d,u;if(e!==window&&e.parentNode&&e!==N()?(o=e.getBoundingClientRect(),a=o.top,r=o.left,c=o.bottom,s=o.right,d=o.height,u=o.width):(a=0,r=0,c=window.innerHeight,s=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(l=l||e.parentNode,!p))do{if(l&&l.getBoundingClientRect&&("none"!==D(l,"transform")||n&&"static"!==D(l,"position"))){var h=l.getBoundingClientRect();a-=h.top+parseInt(D(l,"border-top-width")),r-=h.left+parseInt(D(l,"border-left-width")),c=a+o.height,s=r+o.width;break}}while(l=l.parentNode);if(i&&e!==window){var b=I(l||e),f=b&&b.a,m=b&&b.d;b&&(a/=m,r/=f,u/=f,d/=m,c=a+d,s=r+u)}return{top:a,left:r,bottom:c,right:s,width:u,height:d}}}function V(e,t,n){var i=z(e,!0),l=E(e)[t];while(i){var o=E(i)[n],a=void 0;if(a="top"===n||"left"===n?l>=o:l<=o,!a)return i;if(i===N())break;i=z(i,!1)}return!1}function M(e,t,n,i){var l=0,o=0,a=e.children;while(o<a.length){if("none"!==a[o].style.display&&a[o]!==Ge.ghost&&(i||a[o]!==Ge.dragged)&&k(a[o],n.draggable,e,!1)){if(l===t)return a[o];l++}o++}return null}function U(e,t){var n=e.lastElementChild;while(n&&(n===Ge.ghost||"none"===D(n,"display")||t&&!w(n,t)))n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ge.clone||t&&!w(e,t)||n++;return n}function A(e){var t=0,n=0,i=N();if(e)do{var l=I(e),o=l.a,a=l.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function P(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}function z(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var l=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==l.overflowX||"scroll"==l.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==l.overflowY||"scroll"==l.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(i||t)return n;i=!0}}}while(n=n.parentNode);return N()}function W(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function q(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function L(e,t){return function(){if(!C){var n=arguments,i=this;1===n.length?e.call(i,n[0]):e.apply(i,n),C=setTimeout((function(){C=void 0}),t)}}}function R(){clearTimeout(C),C=void 0}function B(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var X="Sortable"+(new Date).getTime();function Y(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==D(e,"display")&&e!==Ge.ghost){t.push({target:e,rect:E(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=I(e,!0);i&&(n.top-=i.f,n.left-=i.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(P(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var l=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,r=E(n),c=n.prevFromRect,s=n.prevToRect,d=e.rect,u=I(n,!0);u&&(r.top-=u.f,r.left-=u.e),n.toRect=r,n.thisAnimationDuration&&q(c,r)&&!q(a,r)&&(d.top-r.top)/(d.left-r.left)===(a.top-r.top)/(a.left-r.left)&&(t=G(d,c,s,i.options)),q(r,a)||(n.prevFromRect=a,n.prevToRect=r,t||(t=i.options.animation),i.animate(n,d,r,t)),t&&(l=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),l?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,i){if(i){D(e,"transition",""),D(e,"transform","");var l=I(this.el),o=l&&l.a,a=l&&l.d,r=(t.left-n.left)/(o||1),c=(t.top-n.top)/(a||1);e.animatingX=!!r,e.animatingY=!!c,D(e,"transform","translate3d("+r+"px,"+c+"px,0)"),this.forRepaintDummy=H(e),D(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}function H(e){return e.offsetWidth}function G(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var J=[],Q={initializeByDefault:!0},K={mount:function(e){for(var t in Q)Q.hasOwnProperty(t)&&!(t in e)&&(e[t]=Q[t]);J.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),J.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var l=e+"Global";J.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][l]&&t[i.pluginName][l](o({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var l in J.forEach((function(i){var l=i.pluginName;if(e.options[l]||i.initializeByDefault){var o=new i(e,t,e.options);o.sortable=e,o.options=e.options,e[l]=o,c(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(l)){var o=this.modifyOption(e,l,e.options[l]);"undefined"!==typeof o&&(e.options[l]=o)}},getEventProperties:function(e,t){var n={};return J.forEach((function(i){"function"===typeof i.eventProperties&&c(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return J.forEach((function(l){e[l.pluginName]&&l.optionListeners&&"function"===typeof l.optionListeners[t]&&(i=l.optionListeners[t].call(e[l.pluginName],n))})),i}};function Z(e){var t=e.sortable,n=e.rootEl,i=e.name,l=e.targetEl,a=e.cloneEl,r=e.toEl,c=e.fromEl,s=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,m=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[X],t){var g,y=t.options,O="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||p||b?(g=document.createEvent("Event"),g.initEvent(i,!0,!0)):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=r||n,g.from=c||n,g.item=l||n,g.clone=a,g.oldIndex=s,g.newIndex=d,g.oldDraggableIndex=u,g.newDraggableIndex=h,g.originalEvent=f,g.pullMode=m?m.lastPutMode:void 0;var j=o(o({},v),K.getEventProperties(i,t));for(var w in j)g[w]=j[w];n&&n.dispatchEvent(g),y[O]&&y[O].call(t,g)}}var ee=["evt"],te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,l=d(n,ee);K.pluginEvent.bind(Ge)(e,t,o({dragEl:ie,parentEl:le,ghostEl:oe,rootEl:ae,nextEl:re,lastDownEl:ce,cloneEl:se,cloneHidden:de,dragStarted:xe,putSortable:me,activeSortable:Ge.active,originalEvent:i,oldIndex:ue,oldDraggableIndex:pe,newIndex:he,newDraggableIndex:be,hideGhostForTarget:$e,unhideGhostForTarget:Xe,cloneNowHidden:function(){de=!0},cloneNowShown:function(){de=!1},dispatchSortableEvent:function(e){ne({sortable:t,name:e,originalEvent:i})}},l))};function ne(e){Z(o({putSortable:me,cloneEl:se,targetEl:ie,rootEl:ae,oldIndex:ue,oldDraggableIndex:pe,newIndex:he,newDraggableIndex:be},e))}var ie,le,oe,ae,re,ce,se,de,ue,he,pe,be,fe,me,ve,ge,ye,Oe,je,we,xe,ke,Ce,Se,_e,De=!1,Ie=!1,Te=[],Ne=!1,Ee=!1,Ve=[],Me=!1,Ue=[],Fe="undefined"!==typeof document,Ae=v,Pe=b||p?"cssFloat":"float",ze=Fe&&!g&&!v&&"draggable"in document.createElement("div"),We=function(){if(Fe){if(p)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),qe=function(e,t){var n=D(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),l=M(e,0,t),o=M(e,1,t),a=l&&D(l),r=o&&D(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(l).width,s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+E(o).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(l&&a["float"]&&"none"!==a["float"]){var d="left"===a["float"]?"left":"right";return!o||"both"!==r.clear&&r.clear!==d?"horizontal":"vertical"}return l&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=i&&"none"===n[Pe]||o&&"none"===n[Pe]&&c+s>i)?"vertical":"horizontal"},Le=function(e,t,n){var i=n?e.left:e.top,l=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,r=n?t.right:t.bottom,c=n?t.width:t.height;return i===a||l===r||i+o/2===a+c/2},Re=function(e,t){var n;return Te.some((function(i){var l=i[X].options.emptyInsertThreshold;if(l&&!U(i)){var o=E(i),a=e>=o.left-l&&e<=o.right+l,r=t>=o.top-l&&t<=o.bottom+l;return a&&r?n=i:void 0}})),n},Be=function(e){function t(e,n){return function(i,l,o,a){var r=i.options.group.name&&l.options.group.name&&i.options.group.name===l.options.group.name;if(null==e&&(n||r))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(i,l,o,a),n)(i,l,o,a);var c=(n?i:l).options.group.name;return!0===e||"string"===typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},i=e.group;i&&"object"==a(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},$e=function(){!We&&oe&&D(oe,"display","none")},Xe=function(){!We&&oe&&D(oe,"display","")};Fe&&document.addEventListener("click",(function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1}),!0);var Ye=function(e){if(ie){e=e.touches?e.touches[0]:e;var t=Re(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}},He=function(e){ie&&ie.parentNode[X]._isOutsideThisEl(e.target)};function Ge(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=c({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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!==Ge.supportPointer&&"PointerEvent"in window&&!m,emptyInsertThreshold:5};for(var i in K.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var l in Be(t),this)"_"===l.charAt(0)&&"function"===typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&ze,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?O(e,"pointerdown",this._onTapStart):(O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Te.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),c(this,Y())}function Je(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Qe(e,t,n,i,l,o,a,r){var c,s,d=e[X],u=d.options.onMove;return!window.CustomEvent||p||b?(c=document.createEvent("Event"),c.initEvent("move",!0,!0)):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=i,c.related=l||t,c.relatedRect=o||E(t),c.willInsertAfter=r,c.originalEvent=a,e.dispatchEvent(c),u&&(s=u.call(d,c,a)),s}function Ke(e){e.draggable=!1}function Ze(){Me=!1}function et(e,t,n){var i=E(M(n.el,0,n.options,!0)),l=10;return t?e.clientX<i.left-l||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-l||e.clientY<i.bottom&&e.clientX<i.left}function tt(e,t,n){var i=E(U(n.el,n.options.draggable)),l=10;return t?e.clientX>i.right+l||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+l}function nt(e,t,n,i,l,o,a,r){var c=i?e.clientY:e.clientX,s=i?n.height:n.width,d=i?n.top:n.left,u=i?n.bottom:n.right,h=!1;if(!a)if(r&&Se<s*l){if(!Ne&&(1===Ce?c>d+s*o/2:c<u-s*o/2)&&(Ne=!0),Ne)h=!0;else if(1===Ce?c<d+Se:c>u-Se)return-Ce}else if(c>d+s*(1-l)/2&&c<u-s*(1-l)/2)return it(t);return h=h||a,h&&(c<d+s*o/2||c>u-s*o/2)?c>d+s/2?1:-1:0}function it(e){return F(ie)<F(e)?1:-1}function lt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;while(n--)i+=t.charCodeAt(n);return i.toString(36)}function ot(e){Ue.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var i=t[n];i.checked&&Ue.push(i)}}function at(e){return setTimeout(e,0)}function rt(e){return clearTimeout(e)}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ke=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ie):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,l=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,r=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||r,s=i.filter;if(ot(n),!ie&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!m||!r||"SELECT"!==r.tagName.toUpperCase())&&(r=k(r,i.draggable,n,!1),(!r||!r.animated)&&ce!==r)){if(ue=F(r),pe=F(r,i.draggable),"function"===typeof s){if(s.call(this,e,r,this))return ne({sortable:t,rootEl:c,name:"filter",targetEl:r,toEl:n,fromEl:n}),te("filter",t,{evt:e}),void(l&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(i){if(i=k(c,i.trim(),n,!1),i)return ne({sortable:t,rootEl:i,name:"filter",targetEl:r,fromEl:n,toEl:n}),te("filter",t,{evt:e}),!0})),s))return void(l&&e.cancelable&&e.preventDefault());i.handle&&!k(c,i.handle,n,!1)||this._prepareDragStart(e,a,r)}}},_prepareDragStart:function(e,t,n){var i,l=this,o=l.el,a=l.options,r=o.ownerDocument;if(n&&!ie&&n.parentNode===o){var c=E(n);if(ae=o,ie=n,le=ie.parentNode,re=ie.nextSibling,ce=n,fe=a.group,Ge.dragged=ie,ve={target:ie,clientX:(t||e).clientX,clientY:(t||e).clientY},je=ve.clientX-c.left,we=ve.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ie.style["will-change"]="all",i=function(){te("delayEnded",l,{evt:e}),Ge.eventCanceled?l._onDrop():(l._disableDelayedDragEvents(),!f&&l.nativeDraggable&&(ie.draggable=!0),l._triggerDragStart(e,t),ne({sortable:l,name:"choose",originalEvent:e}),_(ie,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){T(ie,e.trim(),Ke)})),O(r,"dragover",Ye),O(r,"mousemove",Ye),O(r,"touchmove",Ye),O(r,"mouseup",l._onDrop),O(r,"touchend",l._onDrop),O(r,"touchcancel",l._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),te("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(b||p))i();else{if(Ge.eventCanceled)return void this._onDrop();O(r,"mouseup",l._disableDelayedDrag),O(r,"touchend",l._disableDelayedDrag),O(r,"touchcancel",l._disableDelayedDrag),O(r,"mousemove",l._delayedDragTouchMoveHandler),O(r,"touchmove",l._delayedDragTouchMoveHandler),a.supportPointer&&O(r,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&Ke(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;j(e,"mouseup",this._disableDelayedDrag),j(e,"touchend",this._disableDelayedDrag),j(e,"touchcancel",this._disableDelayedDrag),j(e,"mousemove",this._delayedDragTouchMoveHandler),j(e,"touchmove",this._delayedDragTouchMoveHandler),j(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?O(document,"pointermove",this._onTouchMove):O(document,t?"touchmove":"mousemove",this._onTouchMove):(O(ie,"dragend",this),O(ae,"dragstart",this._onDragStart));try{document.selection?at((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(De=!1,ae&&ie){te("dragStarted",this,{evt:t}),this.nativeDraggable&&O(document,"dragover",He);var n=this.options;!e&&_(ie,n.dragClass,!1),_(ie,n.ghostClass,!0),Ge.active=this,e&&this._appendGhost(),ne({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ge){this._lastX=ge.clientX,this._lastY=ge.clientY,$e();var e=document.elementFromPoint(ge.clientX,ge.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(ge.clientX,ge.clientY),e===t)break;t=e}if(ie.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){var n=void 0;if(n=t[X]._onDragOver({clientX:ge.clientX,clientY:ge.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Xe()}},_onTouchMove:function(e){if(ve){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,l=e.touches?e.touches[0]:e,o=oe&&I(oe,!0),a=oe&&o&&o.a,r=oe&&o&&o.d,c=Ae&&_e&&A(_e),s=(l.clientX-ve.clientX+i.x)/(a||1)+(c?c[0]-Ve[0]:0)/(a||1),d=(l.clientY-ve.clientY+i.y)/(r||1)+(c?c[1]-Ve[1]:0)/(r||1);if(!Ge.active&&!De){if(n&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(oe){o?(o.e+=s-(ye||0),o.f+=d-(Oe||0)):o={a:1,b:0,c:0,d:1,e:s,f:d};var u="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");D(oe,"webkitTransform",u),D(oe,"mozTransform",u),D(oe,"msTransform",u),D(oe,"transform",u),ye=s,Oe=d,ge=l}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!oe){var e=this.options.fallbackOnBody?document.body:ae,t=E(ie,!0,Ae,!0,e),n=this.options;if(Ae){_e=e;while("static"===D(_e,"position")&&"none"===D(_e,"transform")&&_e!==document)_e=_e.parentNode;_e!==document.body&&_e!==document.documentElement?(_e===document&&(_e=N()),t.top+=_e.scrollTop,t.left+=_e.scrollLeft):_e=N(),Ve=A(_e)}oe=ie.cloneNode(!0),_(oe,n.ghostClass,!1),_(oe,n.fallbackClass,!0),_(oe,n.dragClass,!0),D(oe,"transition",""),D(oe,"transform",""),D(oe,"box-sizing","border-box"),D(oe,"margin",0),D(oe,"top",t.top),D(oe,"left",t.left),D(oe,"width",t.width),D(oe,"height",t.height),D(oe,"opacity","0.8"),D(oe,"position",Ae?"absolute":"fixed"),D(oe,"zIndex","100000"),D(oe,"pointerEvents","none"),Ge.ghost=oe,e.appendChild(oe),D(oe,"transform-origin",je/parseInt(oe.style.width)*100+"% "+we/parseInt(oe.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,l=n.options;te("dragStart",this,{evt:e}),Ge.eventCanceled?this._onDrop():(te("setupClone",this),Ge.eventCanceled||(se=$(ie),se.draggable=!1,se.style["will-change"]="",this._hideClone(),_(se,this.options.chosenClass,!1),Ge.clone=se),n.cloneId=at((function(){te("clone",n),Ge.eventCanceled||(n.options.removeCloneOnHide||ae.insertBefore(se,ie),n._hideClone(),ne({sortable:n,name:"clone"}))})),!t&&_(ie,l.dragClass,!0),t?(Ie=!0,n._loopId=setInterval(n._emulateDragOver,50)):(j(document,"mouseup",n._onDrop),j(document,"touchend",n._onDrop),j(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",l.setData&&l.setData.call(n,i,ie)),O(document,"drop",n),D(ie,"transform","translateZ(0)")),De=!0,n._dragStartId=at(n._dragStarted.bind(n,t,e)),O(document,"selectstart",n),xe=!0,m&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,l,a=this.el,r=e.target,c=this.options,s=c.group,d=Ge.active,u=fe===s,h=c.sort,p=me||d,b=this,f=!1;if(!Me){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),r=k(r,c.draggable,a,!0),P("dragOver"),Ge.eventCanceled)return f;if(ie.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||b._ignoreWhileAnimating===r)return W(!1);if(Ie=!1,d&&!c.disabled&&(u?h||(i=le!==ae):me===this||(this.lastPutMode=fe.checkPull(this,d,ie,e))&&s.checkPut(this,d,ie,e))){if(l="vertical"===this._getDirection(e,r),t=E(ie),P("dragOverValid"),Ge.eventCanceled)return f;if(i)return le=ae,z(),this._hideClone(),P("revert"),Ge.eventCanceled||(re?ae.insertBefore(ie,re):ae.appendChild(ie)),W(!0);var m=U(a,c.draggable);if(!m||tt(e,l,this)&&!m.animated){if(m===ie)return W(!1);if(m&&a===e.target&&(r=m),r&&(n=E(r)),!1!==Qe(ae,a,ie,t,r,n,e,!!r))return z(),a.appendChild(ie),le=a,q(),W(!0)}else if(m&&et(e,l,this)){var v=M(a,0,c,!0);if(v===ie)return W(!1);if(r=v,n=E(r),!1!==Qe(ae,a,ie,t,r,n,e,!1))return z(),a.insertBefore(ie,v),le=a,q(),W(!0)}else if(r.parentNode===a){n=E(r);var g,y,O=0,j=ie.parentNode!==a,w=!Le(ie.animated&&ie.toRect||t,r.animated&&r.toRect||n,l),x=l?"top":"left",C=V(r,"top","top")||V(ie,"top","top"),S=C?C.scrollTop:void 0;if(ke!==r&&(g=n[x],Ne=!1,Ee=!w&&c.invertSwap||j),O=nt(e,r,n,l,w?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,Ee,ke===r),0!==O){var I=F(ie);do{I-=O,y=le.children[I]}while(y&&("none"===D(y,"display")||y===oe))}if(0===O||y===r)return W(!1);ke=r,Ce=O;var T=r.nextElementSibling,N=!1;N=1===O;var A=Qe(ae,a,ie,t,r,n,e,N);if(!1!==A)return 1!==A&&-1!==A||(N=1===A),Me=!0,setTimeout(Ze,30),z(),N&&!T?a.appendChild(ie):r.parentNode.insertBefore(ie,N?T:r),C&&B(C,0,S-C.scrollTop),le=ie.parentNode,void 0===g||Ee||(Se=Math.abs(g-E(r)[x])),q(),W(!0)}if(a.contains(ie))return W(!1)}return!1}function P(c,s){te(c,b,o({evt:e,isOwner:u,axis:l?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:r,completed:W,onMove:function(n,i){return Qe(ae,a,ie,t,n,E(n),e,i)},changed:q},s))}function z(){P("dragOverAnimationCapture"),b.captureAnimationState(),b!==p&&p.captureAnimationState()}function W(t){return P("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(b),b!==p&&(_(ie,me?me.options.ghostClass:d.options.ghostClass,!1),_(ie,c.ghostClass,!0)),me!==b&&b!==Ge.active?me=b:b===Ge.active&&me&&(me=null),p===b&&(b._ignoreWhileAnimating=r),b.animateAll((function(){P("dragOverAnimationComplete"),b._ignoreWhileAnimating=null})),b!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===ie&&!ie.animated||r===a&&!r.animated)&&(ke=null),c.dragoverBubble||e.rootEl||r===document||(ie.parentNode[X]._isOutsideThisEl(e.target),!t&&Ye(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function q(){he=F(ie),be=F(ie,c.draggable),ne({sortable:b,name:"change",toEl:a,newIndex:he,newDraggableIndex:be,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){j(document,"mousemove",this._onTouchMove),j(document,"touchmove",this._onTouchMove),j(document,"pointermove",this._onTouchMove),j(document,"dragover",Ye),j(document,"mousemove",Ye),j(document,"touchmove",Ye)},_offUpEvents:function(){var e=this.el.ownerDocument;j(e,"mouseup",this._onDrop),j(e,"touchend",this._onDrop),j(e,"pointerup",this._onDrop),j(e,"touchcancel",this._onDrop),j(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;he=F(ie),be=F(ie,n.draggable),te("drop",this,{evt:e}),le=ie&&ie.parentNode,he=F(ie),be=F(ie,n.draggable),Ge.eventCanceled||(De=!1,Ee=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rt(this.cloneId),rt(this._dragStartId),this.nativeDraggable&&(j(document,"drop",this),j(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&D(document.body,"user-select",""),D(ie,"transform",""),e&&(xe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),(ae===le||me&&"clone"!==me.lastPutMode)&&se&&se.parentNode&&se.parentNode.removeChild(se),ie&&(this.nativeDraggable&&j(ie,"dragend",this),Ke(ie),ie.style["will-change"]="",xe&&!De&&_(ie,me?me.options.ghostClass:this.options.ghostClass,!1),_(ie,this.options.chosenClass,!1),ne({sortable:this,name:"unchoose",toEl:le,newIndex:null,newDraggableIndex:null,originalEvent:e}),ae!==le?(he>=0&&(ne({rootEl:le,name:"add",toEl:le,fromEl:ae,originalEvent:e}),ne({sortable:this,name:"remove",toEl:le,originalEvent:e}),ne({rootEl:le,name:"sort",toEl:le,fromEl:ae,originalEvent:e}),ne({sortable:this,name:"sort",toEl:le,originalEvent:e})),me&&me.save()):he!==ue&&he>=0&&(ne({sortable:this,name:"update",toEl:le,originalEvent:e}),ne({sortable:this,name:"sort",toEl:le,originalEvent:e})),Ge.active&&(null!=he&&-1!==he||(he=ue,be=pe),ne({sortable:this,name:"end",toEl:le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){te("nulling",this),ae=ie=le=oe=re=se=ce=de=ve=ge=xe=he=be=ue=pe=ke=Ce=me=fe=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,Ue.forEach((function(e){e.checked=!0})),Ue.length=ye=Oe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ie&&(this._onDragOver(e),Je(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,l=n.length,o=this.options;i<l;i++)e=n[i],k(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||lt(e));return t},sort:function(e,t){var n={},i=this.el;this.toArray().forEach((function(e,t){var l=i.children[t];k(l,this.options.draggable,i,!1)&&(n[e]=l)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(i.removeChild(n[e]),i.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=K.modifyOption(this,e,t);n[e]="undefined"!==typeof i?i:t,"group"===e&&Be(n)},destroy:function(){te("destroy",this);var e=this.el;e[X]=null,j(e,"mousedown",this._onTapStart),j(e,"touchstart",this._onTapStart),j(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(j(e,"dragover",this),j(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Te.splice(Te.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!de){if(te("hideClone",this),Ge.eventCanceled)return;D(se,"display","none"),this.options.removeCloneOnHide&&se.parentNode&&se.parentNode.removeChild(se),de=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(de){if(te("showClone",this),Ge.eventCanceled)return;ie.parentNode!=ae||this.options.group.revertClone?re?ae.insertBefore(se,re):ae.appendChild(se):ae.insertBefore(se,ie),this.options.group.revertClone&&this.animate(ie,se),D(se,"display",""),de=!1}}else this._hideClone()}},Fe&&O(document,"touchmove",(function(e){(Ge.active||De)&&e.cancelable&&e.preventDefault()})),Ge.utils={on:O,off:j,css:D,find:T,is:function(e,t){return!!k(e,t,e,!1)},extend:W,throttle:L,closest:k,toggleClass:_,clone:$,index:F,nextTick:at,cancelNextTick:rt,detectDirection:qe,getChild:M},Ge.get=function(e){return e[X]},Ge.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ge.utils=o(o({},Ge.utils),e.utils)),K.mount(e)}))},Ge.create=function(e,t){return new Ge(e,t)},Ge.version=u;var ct,st,dt,ut,ht,pt,bt=[],ft=!1;function mt(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):this.options.supportPointer?O(document,"pointermove",this._handleFallbackAutoScroll):t.touches?O(document,"touchmove",this._handleFallbackAutoScroll):O(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?j(document,"dragover",this._handleAutoScroll):(j(document,"pointermove",this._handleFallbackAutoScroll),j(document,"touchmove",this._handleFallbackAutoScroll),j(document,"mousemove",this._handleFallbackAutoScroll)),gt(),vt(),R()},nulling:function(){ht=st=ct=ft=pt=dt=ut=null,bt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(i,l);if(ht=e,t||this.options.forceAutoScrollFallback||b||p||m){yt(e,this.options,o,t);var a=z(o,!0);!ft||pt&&i===dt&&l===ut||(pt&>(),pt=setInterval((function(){var o=z(document.elementFromPoint(i,l),!0);o!==a&&(a=o,vt()),yt(e,n.options,o,t)}),10),dt=i,ut=l)}else{if(!this.options.bubbleScroll||z(o,!0)===N())return void vt();yt(e,this.options,z(o,!1),!1)}}},c(e,{pluginName:"scroll",initializeByDefault:!0})}function vt(){bt.forEach((function(e){clearInterval(e.pid)})),bt=[]}function gt(){clearInterval(pt)}var yt=L((function(e,t,n,i){if(t.scroll){var l,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,c=t.scrollSpeed,s=N(),d=!1;st!==n&&(st=n,vt(),ct=t.scroll,l=t.scrollFn,!0===ct&&(ct=z(n,!0)));var u=0,h=ct;do{var p=h,b=E(p),f=b.top,m=b.bottom,v=b.left,g=b.right,y=b.width,O=b.height,j=void 0,w=void 0,x=p.scrollWidth,k=p.scrollHeight,C=D(p),S=p.scrollLeft,_=p.scrollTop;p===s?(j=y<x&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w=O<k&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(j=y<x&&("auto"===C.overflowX||"scroll"===C.overflowX),w=O<k&&("auto"===C.overflowY||"scroll"===C.overflowY));var I=j&&(Math.abs(g-o)<=r&&S+y<x)-(Math.abs(v-o)<=r&&!!S),T=w&&(Math.abs(m-a)<=r&&_+O<k)-(Math.abs(f-a)<=r&&!!_);if(!bt[u])for(var V=0;V<=u;V++)bt[V]||(bt[V]={});bt[u].vx==I&&bt[u].vy==T&&bt[u].el===p||(bt[u].el=p,bt[u].vx=I,bt[u].vy=T,clearInterval(bt[u].pid),0==I&&0==T||(d=!0,bt[u].pid=setInterval(function(){i&&0===this.layer&&Ge.active._onTouchMove(ht);var t=bt[this.layer].vy?bt[this.layer].vy*c:0,n=bt[this.layer].vx?bt[this.layer].vx*c:0;"function"===typeof l&&"continue"!==l.call(Ge.dragged.parentNode[X],n,t,e,ht,bt[this.layer].el)||B(bt[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&h!==s&&(h=z(h,!1)));ft=d}}),30),Ot=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,l=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,r=e.unhideGhostForTarget;if(t){var c=n||l;a();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(s.clientX,s.clientY);r(),c&&!c.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function jt(){}function wt(){}function xt(){return"undefined"!==typeof window?window.console:e.console}jt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=M(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ot},c(jt,{pluginName:"revertOnSpill"}),wt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Ot},c(wt,{pluginName:"removeOnSpill"}),Ge.mount(new mt),Ge.mount(wt,jt);const kt=xt();function Ct(e){const t=Object.create(null);return function(n){const i=t[n];return i||(t[n]=e(n))}}const St=/-(\w)/g,_t=Ct(e=>e.replace(St,(e,t)=>t?t.toUpperCase():""));function Dt(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function It(e,t,n){const i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}function Tt(e,t){return Object.values(e).indexOf(t)}function Nt(e,t,n,i){if(!e)return[];const l=Object.values(e),o=t.length-i,a=[...t].map((e,t)=>t>=o?l.length:l.indexOf(e));return a}function Et(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function Vt(e){return t=>{null!==this.realList&&this["onDrag"+e](t),Et.call(this,e,t)}}function Mt(e){return["transition-group","TransitionGroup"].includes(e)}function Ut(e){if(!e||1!==e.length)return!1;const[{type:t}]=e;return!!t&&Mt(t.name)}function Ft(e,t){return t?{...t.props,...t.attrs}:e}const At=["Start","Add","Remove","Update","End"],Pt=["Choose","Unchoose","Sort","Filter","Clone"],zt=["Move",...At,...Pt].map(e=>"on"+e);let Wt=null;const qt={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},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}},Lt=Object(i["u"])({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...At.map(e=>e.toLowerCase()),...Pt.map(e=>e.toLowerCase())],props:qt,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=Ft(this.$attrs,this.componentData);return e?(this.transitionMode=Ut(e),Object(i["x"])(this.getTag(),t,e)):Object(i["x"])(this.getTag(),t,[])},created(){null!==this.list&&null!==this.modelValue&&kt.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};At.forEach(t=>{e["on"+t]=Vt.call(this,t)}),Pt.forEach(t=>{e["on"+t]=Et.bind(this,t)});const t=Object.keys(this.$attrs).reduce((e,t)=>(e[_t(t)]=this.$attrs[t],e),{}),n=Object.assign({},t,e,{onMove:(e,t)=>this.onDragMove(e,t)});!("draggable"in n)&&(n.draggable=">*");const i=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new Ge(i,n),i.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(e){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Object(i["W"])(this.component):this.tag},updateOptions(e){for(var t in e){const n=_t(t);-1===zt.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=Nt(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=Tt(this.getChildrenNodes()||[],e);if(-1===t)return null;const n=this.realList[t];return{index:t,element:n}},emitChanges(e){this.$nextTick(()=>{this.$emit("change",e)})},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=e=>e.splice(...arguments);this.alterList(e)},updatePosition(e,t){const n=n=>n.splice(t,0,n.splice(e,1)[0]);this.alterList(n)},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;var t=this.getChildrenNodes();t[e].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),Wt=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;Dt(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const i={element:t,newIndex:n};this.emitChanges({added:i})},onDragRemove(e){if(It(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void Dt(e.clone);if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){Dt(e.item),It(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const i=this.getRelatedContextFromMoveEvent(e),l=this.context,o=this.computeFutureIndex(i,e);Object.assign(l,{futureIndex:o});const a=Object.assign({},e,{relatedContext:i,draggedContext:l});return n(a,t)},onDragEnd(){this.computeIndexes(),Wt=null},getTrargetedComponent(e){return e.__draggable_component__},getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const i=n.realList,l={list:i,component:n};if(e!==t&&i&&n.getUnderlyingVm){const e=n.getUnderlyingVm(t);if(e)return Object.assign(e,l)}return l},computeFutureIndex(e,t){const n=[...t.to.children].filter(e=>"none"!==e.style["display"]);if(0===n.length)return 0;const i=n.indexOf(t.related),l=e.component.getVmIndex(i),o=-1!==n.indexOf(Wt);return o||!t.willInsertAfter?l:l+1}}})}).call(this,n("c8ba"))},8027:function(e,t,n){"use strict";n("46a7")},f9ee:function(e,t,n){"use strict";n.r(t);var i=n("7a23");function l(e,t,n,l,o,a){const r=Object(i["W"])("VolFormDraggable");return Object(i["N"])(),Object(i["l"])(r,{onSave:a.save,userComponents:o.userComponents},null,8,["onSave","userComponents"])}const o=e=>(Object(i["Q"])("data-v-52661a16"),e=e(),Object(i["O"])(),e),a={class:"drag-container"},r={class:"drag-left"},c=o(()=>Object(i["o"])("div",{class:"left-title"},"组件列表",-1)),s={class:"example"},d=o(()=>Object(i["o"])("i",{class:"el-icon-arrow-right"},null,-1)),u=o(()=>Object(i["o"])("i",{class:"el-icon-arrow-right"},null,-1)),h=o(()=>Object(i["o"])("i",{class:"el-icon-arrow-right"},null,-1)),p={class:"drag-center"},b={class:"center-top"},f=o(()=>Object(i["o"])("span",null,null,-1)),m=o(()=>Object(i["o"])("i",{class:"el-icon-check"},null,-1)),v=o(()=>Object(i["o"])("i",{class:"el-icon-view"},null,-1)),g=o(()=>Object(i["o"])("i",{class:"el-icon-view"},null,-1)),y=o(()=>Object(i["o"])("i",{class:"el-icon-delete"},null,-1)),O=o(()=>Object(i["o"])("a",{style:{"margin-left":"15px"},href:"http://v2.volcore.xyz/document/api",target:"_blank"},"设计器基于框架volform、voltable、volupload、volbox定制开发",-1)),j=o(()=>Object(i["o"])("div",null," 1、表单设计器基于draggable开发,为本框架自定义页面功能的补充,框架仍以可视化代码生成器为核心 ",-1)),w=o(()=>Object(i["o"])("div",null," 2、支持可视化设计1对1、1对多及表单下拉框自动绑定、table自动加载数据(分页、编辑)、自动上传文件、富文本编辑 ",-1)),x={class:"tips",key:"empty"},k=["onClick"],C=["onClick"],S=["onClick"],_={key:9,class:"col-line"},D={class:"drag-right"},I=o(()=>Object(i["o"])("div",{class:"left-title"},"组件属性",-1)),T={class:"attr"},N={class:"attr-item"},E=o(()=>Object(i["o"])("div",{class:"text"},"字段名称",-1)),V={class:"attr-item"},M=o(()=>Object(i["o"])("div",{class:"text"},"字段(唯一字段)",-1)),U={class:"attr-item"},F=o(()=>Object(i["o"])("div",{class:"text"},"后台返回数据接口地址",-1)),A={class:"attr-item"},P=o(()=>Object(i["o"])("div",{class:"text"},"上传接口地址(后台接口)",-1)),z=o(()=>Object(i["o"])("div",{class:"text",style:{"margin-top":"10px"}},"文件大小限制(M)",-1)),W=o(()=>Object(i["o"])("div",{class:"text",style:{"margin-top":"10px"}},"是否多文件上传",-1)),q=o(()=>Object(i["o"])("div",{class:"text",style:{"margin-top":"10px"}},"是否自动上传",-1)),L={class:"attr-item"},R=o(()=>Object(i["o"])("div",{class:"text"},"数据源(下拉框绑定设置中维护)",-1)),B={class:"attr-item"},$=o(()=>Object(i["o"])("div",{class:"text"},"标签宽度",-1)),X={class:"attr-item attr2"},Y=o(()=>Object(i["o"])("div",{class:"text"},"必填",-1)),H=o(()=>Object(i["o"])("div",{class:"text"},"只读",-1)),G={class:"attr-item"},J=o(()=>Object(i["o"])("div",{class:"text"},"是否使用选项卡(tabs)",-1)),Q={class:"attr-item attr2"},K=o(()=>Object(i["o"])("div",null,"弹出框内容",-1)),Z=o(()=>Object(i["o"])("i",{class:"el-icon-close"},null,-1)),ee=o(()=>Object(i["o"])("i",{class:"el-icon-close"},null,-1)),te=o(()=>Object(i["o"])("a",{href:"http://v2.volcore.xyz/document/api",style:{color:"#1e88e5","margin-left":"9px"},target:"_blank"},"voltable",-1)),ne={class:"btns"},ie={class:"btns-left"},le={class:"btns-right"},oe=o(()=>Object(i["o"])("i",{class:"el-icon-plus"},null,-1)),ae=o(()=>Object(i["o"])("i",{class:"el-icon-delete"},null,-1)),re=o(()=>Object(i["o"])("i",{class:"el-icon-sort"},null,-1)),ce={style:{"text-align":"center"}},se=o(()=>Object(i["o"])("i",{class:"el-icon-close"},null,-1)),de=o(()=>Object(i["o"])("i",{class:"el-icon-check"},null,-1));function ue(e,t,n,l,o,ue){const he=Object(i["W"])("draggable"),pe=Object(i["W"])("el-button"),be=Object(i["W"])("el-alert"),fe=Object(i["W"])("el-input"),me=Object(i["W"])("el-date-picker"),ve=Object(i["W"])("el-radio"),ge=Object(i["W"])("el-radio-group"),ye=Object(i["W"])("el-checkbox"),Oe=Object(i["W"])("el-checkbox-group"),je=Object(i["W"])("el-option"),we=Object(i["W"])("el-select"),xe=Object(i["W"])("el-cascader"),ke=Object(i["W"])("el-switch"),Ce=Object(i["W"])("vol-upload"),Se=Object(i["W"])("vol-wang-editor"),_e=Object(i["W"])("vol-table"),De=Object(i["W"])("el-col"),Ie=Object(i["W"])("el-form-item"),Te=Object(i["W"])("el-form"),Ne=Object(i["W"])("el-scrollbar"),Ee=Object(i["W"])("el-slider"),Ve=Object(i["W"])("vol-box"),Me=Object(i["W"])("preview");return Object(i["N"])(),Object(i["n"])(i["b"],null,[Object(i["o"])("div",a,[Object(i["o"])("div",r,[c,Object(i["s"])(he,{modelValue:o.components,"onUpdate:modelValue":t[0]||(t[0]=e=>o.components=e),onEnd:ue.end1,class:"left-draggable-item",group:{name:"componentsGroup",pull:"clone",put:!1},animation:"300",onStart:ue.onStart,sort:!1,move:ue.onMove1},{default:Object(i["nb"])(()=>[Object(i["s"])(i["g"],null,{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(o.components,e=>(Object(i["N"])(),Object(i["n"])("div",{class:Object(i["D"])(1==e.id?"item forbid":"item"),key:e.id},[Object(i["o"])("i",{class:Object(i["D"])(e.icon)},null,2),Object(i["r"])(" "+Object(i["bb"])(e.name),1)],2))),128))]),_:1})]),_:1},8,["modelValue","onEnd","onStart","move"]),Object(i["o"])("div",s,[Object(i["o"])("div",{onClick:t[1]||(t[1]=(...e)=>ue.example1&&ue.example1(...e))},[Object(i["r"])("示例一"),d]),Object(i["o"])("div",{onClick:t[2]||(t[2]=(...e)=>ue.example2&&ue.example2(...e))},[Object(i["r"])("示例二"),u]),Object(i["o"])("div",{onClick:t[3]||(t[3]=(...e)=>ue.example3&&ue.example3(...e))},[Object(i["r"])("示例三"),h])])]),Object(i["o"])("div",p,[Object(i["o"])("div",b,[f,Object(i["s"])(pe,{type:"primary",size:"mini",plain:"",onClick:ue.save},{default:Object(i["nb"])(()=>[m,Object(i["r"])("保存")]),_:1},8,["onClick"]),Object(i["s"])(pe,{type:"primary",size:"mini",plain:"",onClick:ue.priview},{default:Object(i["nb"])(()=>[v,Object(i["r"])("预览")]),_:1},8,["onClick"]),Object(i["s"])(pe,{type:"primary",size:"mini",plain:"",onClick:ue.download},{default:Object(i["nb"])(()=>[g,Object(i["r"])("下载")]),_:1},8,["onClick"]),Object(i["s"])(pe,{type:"primary",onClick:ue.clearItems,size:"mini",plain:""},{default:Object(i["nb"])(()=>[y,Object(i["r"])("清空")]),_:1},8,["onClick"]),O]),Object(i["o"])("div",null,[Object(i["s"])(be,{title:"关于表单设计器",type:"success","show-icon":!0,closable:!1},{default:Object(i["nb"])(()=>[j,w]),_:1})]),Object(i["s"])(Ne,{style:{flex:"1"}},{default:Object(i["nb"])(()=>[Object(i["ob"])(Object(i["o"])("div",x," 请将左边组件拖入此容器中 ",512),[[i["kb"],!o.currentComponents.length]]),Object(i["s"])(Te,{"label-position":"top"},{default:Object(i["nb"])(()=>[Object(i["s"])(he,{class:"draggable-container",modelValue:o.currentComponents,"onUpdate:modelValue":t[5]||(t[5]=e=>o.currentComponents=e),onEnd:ue.end2,animation:"300",move:ue.onMove,group:"componentsGroup"},{default:Object(i["nb"])(()=>[Object(i["s"])(i["g"],{class:"drag-center-item"},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(o.currentComponents,(e,n)=>(Object(i["N"])(),Object(i["n"])("div",{class:Object(i["D"])(["item2",{actived:n===o.currentIndex}]),onClick:t=>ue.itemClick(e,n),style:Object(i["E"])({width:e.width+"%"}),key:n},[Object(i["o"])("i",{class:"el-icon-document-copy",onClick:Object(i["qb"])(t=>ue.copyItem(e),["stop"])},null,8,C),Object(i["o"])("i",{class:"el-icon-delete",onClick:Object(i["qb"])(e=>ue.removeItem(n),["stop"])},null,8,S),Object(i["s"])(Ie,{required:e.required,"label-position":"top",style:{width:"100%"},label:"line"==e.type?"":e.name},{default:Object(i["nb"])(()=>[Object(i["s"])(De,null,{default:Object(i["nb"])(()=>["text"==e.type?(Object(i["N"])(),Object(i["l"])(fe,{key:0,placeholder:"请输入内容",modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,disabled:e.readonly,size:"medium"},null,8,["modelValue","onUpdate:modelValue","disabled"])):"textarea"==e.type?(Object(i["N"])(),Object(i["l"])(fe,{key:1,type:"textarea",modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,disabled:e.readonly,placeholder:"请输入内容"},null,8,["modelValue","onUpdate:modelValue","disabled"])):"date"==e.type?(Object(i["N"])(),Object(i["l"])(me,{key:2,align:"right",modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,type:"date",disabled:e.readonly,size:"medium",placeholder:"选择日期"},null,8,["modelValue","onUpdate:modelValue","disabled"])):"radio"==e.type?(Object(i["N"])(),Object(i["l"])(ge,{key:3,disabled:e.readonly,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.data,e=>(Object(i["N"])(),Object(i["l"])(ve,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue"])):"checkbox"==e.type?(Object(i["N"])(),Object(i["l"])(Oe,{key:4,modelValue:e.values,"onUpdate:modelValue":t=>e.values=t,disabled:e.readonly,style:{width:"100%",display:"inline-block"}},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.data,e=>(Object(i["N"])(),Object(i["l"])(ye,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):"select"==e.type?(Object(i["N"])(),Object(i["l"])(we,{key:5,style:{width:"100%"},disabled:e.readonly,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,size:"medium",placeholder:"请选择"},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.data,e=>(Object(i["N"])(),Object(i["l"])(je,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue"])):"selectList"==e.type?(Object(i["N"])(),Object(i["l"])(we,{key:6,style:{width:"100%"},disabled:e.readonly,modelValue:e.values,"onUpdate:modelValue":t=>e.values=t,size:"medium",multiple:!0,placeholder:"请选择"},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.data,e=>(Object(i["N"])(),Object(i["l"])(je,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue"])):"cascader"==e.type?(Object(i["N"])(),Object(i["l"])(xe,{key:7,disabled:e.readonly,style:{width:"100%"},modelValue:e.values,"onUpdate:modelValue":t=>e.values=t,options:e.data,onChange:()=>{}},null,8,["disabled","modelValue","onUpdate:modelValue","options"])):"switch"==e.type?(Object(i["N"])(),Object(i["l"])(ke,{key:8,disabled:e.readonly,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,style:{width:"100%"},"active-color":"#13ce66","inactive-color":"#0e7ef3","active-value":1,"inactive-value":0},null,8,["disabled","modelValue","onUpdate:modelValue"])):"line"==e.type?(Object(i["N"])(),Object(i["n"])("div",_,Object(i["bb"])(e.name),1)):"img"==e.type||"excel"==e.type||"file"==e.type?(Object(i["N"])(),Object(i["l"])(Ce,{key:10,fileInfo:e.fileInfo,url:e.url,img:"img"==e.type,excel:"excel"==e.type,multiple:e.multiple,"max-size":e.maxSize,"max-file":e.maxFile,autoUpload:e.autoUpload},null,8,["fileInfo","url","img","excel","multiple","max-size","max-file","autoUpload"])):"editor"==e.type?(Object(i["N"])(),Object(i["l"])(Se,{key:11,url:e.url,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,height:e.height},null,8,["url","modelValue","onUpdate:modelValue","height"])):"table"==e.type?(Object(i["N"])(),Object(i["l"])(_e,{key:12,url:e.url,"load-key":!0,index:e.edit,tableData:e.tableData,columns:e.columns,height:e.height,"pagination-hide":!0,"column-index":e.columnIndex,ck:e.ck},null,8,["url","index","tableData","columns","height","column-index","ck"])):"box"==e.type?(Object(i["N"])(),Object(i["l"])(pe,{key:13,onClick:t[4]||(t[4]=e=>o.model=!0),type:"primary",size:"small"},{default:Object(i["nb"])(()=>[Object(i["r"])(Object(i["bb"])(e.name),1)]),_:2},1024)):Object(i["m"])("",!0)]),_:2},1024)]),_:2},1032,["required","label"])],14,k))),128))]),_:1})]),_:1},8,["modelValue","onEnd","move"])]),_:1})]),_:1})]),Object(i["o"])("div",D,[I,Object(i["ob"])(Object(i["o"])("div",T,[Object(i["o"])("div",N,[E,Object(i["s"])(fe,{size:"medium",modelValue:o.currentItem.name,"onUpdate:modelValue":t[6]||(t[6]=e=>o.currentItem.name=e)},null,8,["modelValue"])]),Object(i["o"])("div",V,[M,Object(i["s"])(fe,{size:"medium",modelValue:o.currentItem.field,"onUpdate:modelValue":t[7]||(t[7]=e=>o.currentItem.field=e)},null,8,["modelValue"])]),Object(i["ob"])(Object(i["o"])("div",U,[F,Object(i["s"])(fe,{size:"medium",placeholder:"例:api/表名/getPageData",modelValue:o.currentItem.url,"onUpdate:modelValue":t[8]||(t[8]=e=>o.currentItem.url=e)},null,8,["modelValue"])],512),[[i["kb"],"table"==o.currentItem.type]]),Object(i["ob"])(Object(i["o"])("div",A,[P,Object(i["s"])(fe,{size:"medium",placeholder:"可用框架地址:api/表名/upload",modelValue:o.currentItem.url,"onUpdate:modelValue":t[9]||(t[9]=e=>o.currentItem.url=e)},null,8,["modelValue"]),z,Object(i["s"])(fe,{size:"medium",modelValue:o.currentItem.maxSize,"onUpdate:modelValue":t[10]||(t[10]=e=>o.currentItem.maxSize=e)},null,8,["modelValue"]),W,Object(i["s"])(ke,{modelValue:o.currentItem.multiple,"onUpdate:modelValue":t[11]||(t[11]=e=>o.currentItem.multiple=e),style:{width:"100%"},"active-color":"#13ce66","inactive-color":"rgb(165 165 165)","active-value":!0,"inactive-value":!1},null,8,["modelValue"]),q,Object(i["s"])(ke,{modelValue:o.currentItem.autoUpload,"onUpdate:modelValue":t[12]||(t[12]=e=>o.currentItem.autoUpload=e),style:{width:"100%"},"active-color":"#13ce66","inactive-color":"rgb(165 165 165)","active-value":!0,"inactive-value":!1},null,8,["modelValue"])],512),[[i["kb"],"table"!=o.currentItem.type&&o.currentItem.hasOwnProperty("url")]]),Object(i["ob"])(Object(i["o"])("div",L,[R,Object(i["s"])(we,{style:{width:"100%"},modelValue:o.currentItem.key,"onUpdate:modelValue":t[13]||(t[13]=e=>o.currentItem.key=e),size:"medium",onChange:ue.dicChange,placeholder:"请选择数据源字典"},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(o.dicList,e=>(Object(i["N"])(),Object(i["l"])(je,{key:e.key,label:e.value,value:e.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])],512),[[i["kb"],o.currentItem.data]]),Object(i["ob"])(Object(i["o"])("div",B,[$,Object(i["s"])(Ee,{style:{width:"90%"},min:20,modelValue:o.colWidth,"onUpdate:modelValue":t[14]||(t[14]=e=>o.colWidth=e),step:10,"show-stops":""},null,8,["modelValue"])],512),[[i["kb"],"table"!=o.currentItem.type]]),Object(i["ob"])(Object(i["o"])("div",X,[Object(i["o"])("div",null,[Y,Object(i["s"])(ke,{modelValue:o.currentItem.required,"onUpdate:modelValue":t[15]||(t[15]=e=>o.currentItem.required=e),style:{width:"100%"},"active-color":"#13ce66","inactive-color":"rgb(165 165 165)","active-value":!0,"inactive-value":!1},null,8,["modelValue"])]),Object(i["o"])("div",null,[H,Object(i["s"])(ke,{modelValue:o.currentItem.readonly,"onUpdate:modelValue":t[16]||(t[16]=e=>o.currentItem.readonly=e),style:{width:"100%"},"active-color":"#13ce66","inactive-color":"rgb(165 165 165)","active-value":!0,"inactive-value":!1},null,8,["modelValue"])])],512),[[i["kb"],"table"!=o.currentItem.type]]),Object(i["ob"])(Object(i["o"])("div",null,[Object(i["o"])("div",G,[J,Object(i["o"])("div",null,[Object(i["s"])(ke,{modelValue:o.currentItem.tabs,"onUpdate:modelValue":t[17]||(t[17]=e=>o.currentItem.tabs=e),style:{width:"100%"},"active-text":"是","inactive-text":"否","active-color":"#13ce66","inactive-color":"rgb(165 165 165)","active-value":!0,"inactive-value":!1},null,8,["modelValue"])])]),Object(i["o"])("div",Q,[Object(i["s"])(pe,{style:{width:"100%"},onClick:ue.openTableModel,type:"primary",size:"medium"},{default:Object(i["nb"])(()=>[Object(i["r"])("table配置")]),_:1},8,["onClick"])])],512),[[i["kb"],"table"==o.currentItem.type]])],512),[[i["kb"],-1!=o.currentIndex]])])]),Object(i["s"])(Ve,{modelValue:o.model,"onUpdate:modelValue":t[20]||(t[20]=e=>o.model=e),height:300,width:550,lazy:!0,title:"弹出框"},{content:Object(i["nb"])(()=>[K]),footer:Object(i["nb"])(()=>[Object(i["o"])("div",null,[Object(i["s"])(pe,{type:"primary",size:"mini",onClick:t[18]||(t[18]=e=>o.model=!1)},{default:Object(i["nb"])(()=>[Z,Object(i["r"])("点击关闭")]),_:1}),Object(i["s"])(pe,{size:"mini",onClick:t[19]||(t[19]=e=>o.model=!1)},{default:Object(i["nb"])(()=>[ee,Object(i["r"])("关闭")]),_:1})])]),_:1},8,["modelValue"]),Object(i["s"])(Ve,{modelValue:o.priviewModel,"onUpdate:modelValue":t[21]||(t[21]=e=>o.priviewModel=e),height:600,width:1300,lazy:!0,padding:1,close:!1,title:"预览"},{default:Object(i["nb"])(()=>[Object(i["s"])(Me,{options:o.viewFormData},null,8,["options"])]),_:1},8,["modelValue"]),Object(i["s"])(Ve,{modelValue:o.tableModel,"onUpdate:modelValue":t[23]||(t[23]=e=>o.tableModel=e),height:600,width:1300,lazy:!0,padding:0,title:o.currentItem.name},{content:Object(i["nb"])(()=>[Object(i["s"])(be,{title:"关于table配置",type:"info",closable:!1,"show-icon":""},{default:Object(i["nb"])(()=>[Object(i["r"])(" 此处table是对框架voltable基本操作的配置,如果需要事件触发、数据加载等更多功能,请在生成后的代码添加需要的功能,完整配置见文档"),te]),_:1}),Object(i["o"])("div",ne,[Object(i["o"])("div",ie,[Object(i["r"])(" 表格默认功能按钮: "),(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(o.currentItem.buttons,e=>(Object(i["N"])(),Object(i["l"])(ye,{label:e.name,key:e.name},{default:Object(i["nb"])(()=>[Object(i["r"])(Object(i["bb"])(e.name),1)]),_:2},1032,["label"]))),128))]),Object(i["o"])("div",le,[Object(i["s"])(pe,{type:"primary",size:"mini",onClick:ue.addRow},{default:Object(i["nb"])(()=>[oe,Object(i["r"])("添加字段")]),_:1},8,["onClick"]),Object(i["s"])(pe,{type:"primary",size:"mini",onClick:ue.delRow},{default:Object(i["nb"])(()=>[ae,Object(i["r"])("删除字段")]),_:1},8,["onClick"]),Object(i["s"])(pe,{type:"primary",size:"mini",onClick:ue.sortRow},{default:Object(i["nb"])(()=>[re,Object(i["r"])("重新排列")]),_:1},8,["onClick"])])]),Object(i["s"])(_e,{"load-key":!0,tableData:o.currnetTableData,columns:o.currentTableOption,height:448,ref:"table",index:!0,"pagination-hide":!0,"column-index":!0,ck:!0},null,8,["tableData","columns"])]),footer:Object(i["nb"])(()=>[Object(i["o"])("div",ce,[Object(i["s"])(pe,{size:"mini",onClick:t[22]||(t[22]=e=>o.tableModel=!1)},{default:Object(i["nb"])(()=>[se,Object(i["r"])("关闭")]),_:1}),Object(i["s"])(pe,{type:"primary",size:"mini",onClick:ue.saveConfigOptions},{default:Object(i["nb"])(()=>[de,Object(i["r"])("保存")]),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])],64)}n("14d9");var he=n("7d42"),pe=n("0af4"),be=n("14cf"),fe=n("0b13"),me=n("0d63");const ve={style:{padding:"15px 20px 15px 5px"}},ge={class:"pre-text"},ye={class:"tables"},Oe={class:"table-header"},je={class:"header-text"},we={class:"header-btns"},xe={class:"tables",style:{"padding-bottom":"10px"}},ke={class:"table-header"},Ce={class:"header-text"},Se={class:"header-btns"},_e={class:"form-btns"};function De(e,t,n,l,o,a){const r=Object(i["W"])("vol-form"),c=Object(i["W"])("el-button"),s=Object(i["W"])("vol-table"),d=Object(i["W"])("el-tab-pane"),u=Object(i["W"])("el-tabs");return Object(i["N"])(),Object(i["n"])("div",ve,[Object(i["o"])("div",ge,Object(i["bb"])(o.text),1),Object(i["s"])(r,{ref:"form",labelWidth:80,"load-key":!1,formFields:n.options.fields,formRules:n.options.formOptions},null,8,["formFields","formRules"]),Object(i["o"])("div",ye,[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(n.options.tables,(e,t)=>(Object(i["N"])(),Object(i["n"])("div",{class:"table-item",key:t},[Object(i["o"])("div",Oe,[Object(i["o"])("div",je,Object(i["bb"])(e.name),1),Object(i["o"])("div",we,[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.buttons,(n,l)=>(Object(i["N"])(),Object(i["l"])(c,{type:"primary",size:"mini",key:l,plain:"",onClick:n=>a.tableBtnClick(e,l,t),icon:n.icon},{default:Object(i["nb"])(()=>[Object(i["r"])(Object(i["bb"])(n.name),1)]),_:2},1032,["onClick","icon"]))),128))])]),Object(i["s"])(s,{url:e.url,"load-key":!1,index:!0,ref_for:!0,ref:"table"+t,tableData:e.tableData,columns:e.columns,"max-height":250,"pagination-hide":e.pagination,"column-index":!0,ck:!0},null,8,["url","tableData","columns","pagination-hide"])]))),128))]),Object(i["o"])("div",xe,[Object(i["ob"])(Object(i["s"])(u,{modelValue:o.tabsModel,"onUpdate:modelValue":t[0]||(t[0]=e=>o.tabsModel=e),onTabClick:()=>{}},{default:Object(i["nb"])(()=>[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(n.options.tabs,(e,t)=>(Object(i["N"])(),Object(i["l"])(d,{style:{padding:"0"},class:"table-item",label:e.name,name:t,key:t},{default:Object(i["nb"])(()=>[Object(i["o"])("div",ke,[Object(i["o"])("div",Ce,Object(i["bb"])(e.name),1),Object(i["o"])("div",Se,[(Object(i["N"])(!0),Object(i["n"])(i["b"],null,Object(i["U"])(e.buttons,(n,l)=>(Object(i["N"])(),Object(i["l"])(c,{type:"primary",size:"mini",key:l,icon:n.icon,plain:"",onClick:n=>a.tabsTableBtnClick(e,l,t)},{default:Object(i["nb"])(()=>[Object(i["r"])(Object(i["bb"])(n.name),1)]),_:2},1032,["icon","onClick"]))),128))])]),Object(i["s"])(s,{url:e.url,"load-key":!1,index:!0,ref_for:!0,ref:"tabsTable"+t,tableData:e.tableData,columns:e.columns,"max-height":250,"pagination-hide":e.pagination,"column-index":!0,ck:!0},null,8,["url","tableData","columns","pagination-hide"])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"]),[[i["kb"],n.options.tabs.length]])]),Object(i["o"])("div",_e,[Object(i["s"])(c,{type:"primary",onClick:a.submit,icon:"el-icon-check",size:"mini"},{default:Object(i["nb"])(()=>[Object(i["r"])("提交")]),_:1},8,["onClick"]),Object(i["s"])(c,{type:"primary",onClick:a.reset,plain:"",icon:"el-icon-refresh-right",size:"mini"},{default:Object(i["nb"])(()=>[Object(i["r"])("重置")]),_:1},8,["onClick"])])])}var Ie=n("6e5b"),Te={props:{options:{type:Object,default:()=>({fields:{},formOptions:[],tables:[],tabs:[]})}},data(){return{text:"",tabsModel:0}},created(){},methods:{tableBtnClick(e,t,n){"add"!=e.buttons[t].value?"del"!=e.buttons[t].value||this.$refs["table"+n].delRow():this.$refs["table"+n].addRow({})},tabsTableBtnClick(e,t,n){"add"!=e.buttons[t].value?"del"!=e.buttons[t].value||this.$refs["tabsTable"+n].delRow():this.$refs["tabsTable"+n].addRow({})},submit(){},reset(){this.$refs.form.reset(),this.$Message.success("表单已重置")}},components:{"vol-table":fe["a"],"vol-box":me["default"],"vol-form":Ie["a"]}};Ie["a"];n("4625");var Ne=n("6b0d"),Ee=n.n(Ne);const Ve=Ee()(Te,[["render",De],["__scopeId","data-v-6289a61a"]]);var Me=Ve;const Ue=[{id:1,name:"输入框",type:"text",value:"",icon:"el-icon-document"},{id:2,name:"textarea",type:"textarea",value:"",icon:"el-icon-document-copy"},{id:3,name:"日期",type:"date",icon:"el-icon-date",value:null},{id:4,name:"switch",type:"switch",icon:"el-icon-turn-off",value:0},{id:5,name:"单选",type:"radio",icon:"el-icon-aim",value:0,data:[{label:"0",value:"请设置数据源1"},{label:"1",value:"请设置数据源2"}],key:""},{id:6,name:"多选",values:[],type:"checkbox",key:"",data:[{label:"请设置数据源",value:"请设置数据源"}],icon:"el-icon-circle-check"},{id:7,name:"下拉框",value:null,key:"",data:[{label:"请设置数据源",value:"请设置数据源"}],type:"select",icon:"el-icon-arrow-down"},{id:8,name:"下拉框多选",type:"selectList",key:"",values:[],data:[{label:"请设置数据源",value:"请设置数据源"}],icon:"el-icon-arrow-down"},{id:81,name:"级联",type:"cascader",icon:"el-icon-share",values:[],key:"",data:[{value:"请配置数据源",label:"请配置数据源",children:[{value:"具体",label:"菜单:下拉框绑定设置"},{value:"color",label:"可参照字典编号[tree_roles]"}]}]},{id:9,name:"图片上传",type:"img",url:"",maxSize:3,fileInfo:[],multiple:!1,autoUpload:!1,maxFile:5,icon:"el-icon-picture-outline"},{id:10,name:"excel上传",url:"",maxSize:3,multiple:!1,autoUpload:!1,maxFile:5,fileInfo:[],type:"excel",icon:"el-icon-upload"},{id:11,name:"文件上传",type:"file",url:"",maxSize:3,multiple:!1,autoUpload:!1,maxFile:5,fileInfo:[],icon:"el-icon-folder-opened"},{id:12,name:"分段信息",type:"line",icon:"el-icon-guide"},{id:13,name:"编辑器",type:"editor",value:"",url:"",height:200,icon:"el-icon-notebook-2"},{id:13,name:"弹出框",type:"box",value:"",url:"",height:250,icon:"el-icon-notebook-2"},{id:13,name:"表格",type:"table",tabs:!1,columns:[{title:"字段1",field:"field1",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段2",field:"field2",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段3",field:"field3",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段4",field:"field4",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null}],tableData:[{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"}],height:150,icon:"el-icon-c-scale-to-original",url:null,index:!1,height:200,index:!1,columnIndex:!1,ck:!0,buttons:[{name:"添加行",ck:!1,icon:"el-icon-plus",value:"add"},{name:"删除行",ck:!1,icon:"el-icon-delete",value:"del"},{name:"刷新",ck:!1,icon:"el-icon-refresh-right",value:"ref"}]}],Fe=[{field:"field",title:"字段",edit:{type:"text",keep:!0},width:160},{field:"title",title:"字段中文名",edit:{type:"text",keep:!0},width:120},{field:"show",title:"是否显示",edit:{type:"switch",keep:!0},width:90},{field:"dataType",title:"显示类型",edit:{type:"select",keep:!0},width:120,bind:{key:"",data:[{key:"switch",value:"单选"},{key:"date",value:"年月日"},{key:"img",value:"图片"},{key:"excel",value:"excel"},{key:"file",value:"文件"}]}},{field:"required",title:"是否必填",edit:{type:"switch",keep:!0},width:90},{field:"edit",title:"是否可编辑",edit:{type:"switch",keep:!0},width:90},{field:"editType",title:"编辑类型",edit:{type:"select",keep:!0},width:120,bind:{key:"",data:[{key:"text",value:"输入框"},{key:"switch",value:"单选"},{key:"select",value:"下拉框"},{key:"selectList",value:"下拉框多选"},{key:"date",value:"日期"},{key:"datetime",value:"日期时分秒"},{key:"checkbox",value:"复选框多选"},{key:"mail",value:"邮箱地址"},{key:"number",value:"数字"},{key:"decimal",value:"小数"},{key:"phone",value:"手机号"}]}},{field:"dataSource",title:"数据源",edit:{type:"select",keep:!0,data:[]},bind:{key:"",data:[]},width:120},{field:"width",title:"列宽度",edit:{type:"text",keep:!0},width:80},{field:"orderNo",title:"列显示顺序",edit:{type:"text",keep:!0},width:100}];let Ae=[{id:1,name:"输入框",type:"text",value:"",icon:"el-icon-document",field:"field1630258884671",width:20,readonly:!1,required:!1},{id:3,name:"日期",type:"date",icon:"el-icon-date",value:null,field:"field1630258891760",width:20,readonly:!1,required:!1},{id:7,name:"下拉框",value:null,key:"",data:[{label:"请设置数据源",value:"请设置数据源"}],type:"select",icon:"el-icon-arrow-down",field:"field1630258904862",width:30,readonly:!1,required:!1},{id:8,name:"下拉多选",type:"selectList",key:"",values:[],data:[{label:"请设置数据源",value:"请设置数据源"}],icon:"el-icon-arrow-down",field:"field1630258924442",width:30,readonly:!1,required:!1},{id:81,name:"级联",type:"cascader",icon:"el-icon-share",values:[],key:"",data:[{value:"请配置数据源",label:"请配置数据源",children:[{value:"具体",label:"菜单:下拉框绑定设置"},{value:"color",label:"可参照字典编号[tree_roles]"}]}],field:"field1630259518082",width:20,readonly:!1,required:!1},{id:6,name:"多选",values:["发货"],type:"checkbox",key:"ordertype",data:[{key:"1",value:"发货"},{key:"2",value:"退货"},{key:"3",value:"返单"}],icon:"el-icon-circle-check",field:"field1630259033241",width:30,readonly:!1,required:!1},{id:5,name:"单选",type:"radio",icon:"el-icon-aim",value:0,data:[{key:"0",value:"否"},{key:"2",value:"xx11"},{key:"1",value:"是"}],key:"enable",field:"field1630259538490",width:30,readonly:!1,required:!1,values:["否"]},{id:4,name:"switch",type:"switch",icon:"el-icon-turn-off",value:0,field:"field1630259172794",width:20,readonly:!1,required:!1},{id:12,name:"分段信息",type:"line",icon:"el-icon-guide",field:"field1630259600186",width:100,readonly:!1,required:!1},{id:9,name:"图片",type:"img",url:"api/SellOrder/upload",maxSize:3,fileInfo:[],multiple:!1,autoUpload:!1,maxFile:5,icon:"el-icon-picture-outline",field:"field1630259295154",width:100,readonly:!1,required:!1},{id:10,name:"excel",url:"api/SellOrder/upload",maxSize:3,multiple:!1,autoUpload:!0,maxFile:5,fileInfo:[],type:"excel",icon:"el-icon-upload",field:"field1630259610476",width:100,readonly:!1,required:!1},{id:5,name:"单选",type:"radio",icon:"el-icon-aim",value:0,data:[{key:"0",value:"审核中"},{key:"1",value:"审核通过"},{key:"2",value:"审核未通过"}],key:"audit",field:"field1630258969346",width:40,readonly:!1,required:!1,values:["审核中"]}],Pe=[{id:1,name:"输入框",type:"text",value:"",icon:"el-icon-document",field:"field1630258884671",width:20,readonly:!1,required:!1},{id:3,name:"日期",type:"date",icon:"el-icon-date",value:null,field:"field1630258891760",width:20,readonly:!1,required:!1},{id:7,name:"下拉框",value:null,key:"",data:[{label:"请设置数据源",value:"请设置数据源"}],type:"select",icon:"el-icon-arrow-down",field:"field1630258904862",width:30,readonly:!1,required:!1},{id:8,name:"下拉多选",type:"selectList",key:"",values:[],data:[{label:"请设置数据源",value:"请设置数据源"}],icon:"el-icon-arrow-down",field:"field1630258924442",width:30,readonly:!1,required:!1},{id:2,name:"textarea",type:"textarea",value:"",icon:"el-icon-document-copy",field:"field1630260207393",width:100,readonly:!1,required:!1},{id:13,name:"表格",type:"table",tabs:!0,columns:[{title:"运单号",field:"TranNo",show:!0,required:!1,edit:!0,dataType:null,dataSource:null,width:"140",orderNo:null,elementIndex:0},{title:"销售订单号",field:"SellNo",show:!0,required:!1,edit:!0,dataType:null,dataSource:null,width:"140",orderNo:null,elementIndex:1},{title:"订单类型",field:"OrderType",show:!0,required:!1,edit:!0,dataType:null,dataSource:"ordertype",width:120,orderNo:null,elementIndex:2,editType:"select"},{title:"销售数量",field:"Qty",show:!0,required:!1,edit:!0,dataType:null,dataSource:null,width:"80",orderNo:null,elementIndex:3},{field:"CreateDate",elementIndex:4,show:1,required:0,edit:0,title:"订单时间",dataType:"date",width:"100"}],tableData:[{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"}],height:200,icon:"el-icon-c-scale-to-original",url:"api/SellOrder/getPageData",index:!1,columnIndex:!1,ck:!0,buttons:[{name:"添加行",ck:!1,icon:"el-icon-plus",value:"add"},{name:"删除行",ck:!1,icon:"el-icon-delete",value:"del"},{name:"刷新",ck:!1,icon:"el-icon-refresh-right",value:"ref"}],field:"field1630260242867",width:100,readonly:!1,required:!1,pagination:!1},{id:13,name:"表格",type:"table",tabs:!0,columns:[{title:"字段1",field:"field1",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段2",field:"field2",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段3",field:"field3",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null},{title:"字段4",field:"field4",show:!0,required:!1,edit:!1,dataType:null,dataSource:null,width:120,orderNo:null}],tableData:[{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"},{field1:"field1",field2:"field2",field3:"field3",field4:"field4"}],height:200,icon:"el-icon-c-scale-to-original",url:null,index:!1,columnIndex:!1,ck:!0,buttons:[{name:"添加行",ck:!1,icon:"el-icon-plus",value:"add"},{name:"删除行",ck:!1,icon:"el-icon-delete",value:"del"},{name:"刷新",ck:!1,icon:"el-icon-refresh-right",value:"ref"}],field:"field1630260481283",width:100,readonly:!1,required:!1,pagination:!0}],ze=[{id:1,name:"输入框",type:"text",value:"",icon:"el-icon-document",field:"field1630258884671",width:20,readonly:!1,required:!1},{id:3,name:"日期",type:"date",icon:"el-icon-date",value:null,field:"field1630258891760",width:20,readonly:!1,required:!1},{id:7,name:"下拉框",value:null,key:"",data:[{label:"请设置数据源",value:"请设置数据源"}],type:"select",icon:"el-icon-arrow-down",field:"field1630258904862",width:30,readonly:!1,required:!1},{id:8,name:"下拉多选",type:"selectList",key:"",values:[],data:[{label:"请设置数据源",value:"请设置数据源"}],icon:"el-icon-arrow-down",field:"field1630258924442",width:30,readonly:!1,required:!1},{id:5,name:"单选",type:"radio",icon:"el-icon-aim",value:0,data:[{key:"0",value:"否"},{key:"2",value:"xx11"},{key:"1",value:"是"}],key:"enable",field:"field1630260669595",width:50,readonly:!1,required:!1,values:["否"]},{id:6,name:"多选",values:["否"],type:"checkbox",key:"enable",data:[{key:"0",value:"否"},{key:"2",value:"xx11"},{key:"1",value:"是"}],icon:"el-icon-circle-check",field:"field1630260695322",width:50,readonly:!1,required:!1},{id:2,name:"textarea",type:"textarea",value:"",icon:"el-icon-document-copy",field:"field1630260207393",width:100,readonly:!1,required:!1},{id:13,name:"编辑器",type:"editor",value:"",url:"",height:200,icon:"el-icon-notebook-2",field:"field1630260646842",width:100,readonly:!1,required:!1}];var We={props:{userComponents:{type:Array,default:()=>[]}},components:{draggable:he["a"],"vol-upload":be["default"],"vol-wang-editor":pe["default"],"vol-table":fe["a"],"vol-box":me["default"],preview:Me},data(){return{options1:Ae,options2:Pe,options3:ze,colWidth:100,currentIndex:-1,currentItem:{},currnetTableData:[],currentTableOption:Fe,components:Ue,currentComponents:[],dicList:[],model:!1,tableModel:!1,priviewModel:!1,viewFormData:{fields:{},formOptions:[],tables:[]}}},watch:{colWidth(e){-1!=this.currentIndex&&(this.currentComponents[this.currentIndex].width=e)}},created(){this.currentComponents.push(...this.userComponents),this.http.post("api/Sys_Dictionary/GetBuilderDictionary",{},!1).then(e=>{this.dicList=e.map(e=>({key:e,value:e}))})},methods:{getFormOptions(e){let t={};if(t.field=e.field,t.title=e.name,t.type=e.type,t.required=e.required,t.readonly=e.readonly,"line"==e.type){t.title="";let n=e.name;t.render=e=>e("div",{style:{"line-height":"25px","font-weight":"bold","margin-left":"15px","border-bottom":"1px solid #dadada"}},n)}return"editor"==e.type&&(t.height=e.height),100==e.width?t.colSize=12:t.colSize=12*t.width/100,-1!=["img","excel","file"].indexOf(e.type)&&(t.maxSize=e.maxSize,t.fileInfo=e.fileInfo,t.multiple=e.multiple,t.autoUpload=e.autoUpload,t.maxFile=e.maxFile),-1!=["img","excel","file","editor","table"].indexOf(e.type)&&(t.url=e.url),e.data&&(t.data=e.data,t.dataKey=e.key),t},getLineFormOptions(e){let t=e,n=e,i=0,l=[];for(e;e<this.filterCurrentComponents().length;e++){const t=this.currentComponents[e];t.width+i<=100&&(i=t.width+i,n=e,l.push(this.getFormOptions(t)))}return{options:l,index:t,endIndex:n}},filterCurrentComponents(){return this.currentComponents.filter(e=>"table"!=e.type)},setSpan(){},priview(){let e={},t=[],n=-1;this.filterCurrentComponents().forEach((i,l)=>{if(i.hasOwnProperty("values")?e[i.field]=[]:e[i.field]=null,100==i.width)t.push([this.getFormOptions(i)]);else if(-1==n){let e=this.getLineFormOptions(l);n=e.endIndex,t.push(e.options),n--}else n--}),this.viewFormData.fields=e,this.viewFormData.formOptions=t,this.priviewModel=!0;let i=0,l=[],o=this.currentComponents.filter(e=>"table"==e.type).map(e=>(e.pagination=!e.url,"表格"==e.name&&i++,{name:e.name+("表格"==e.name?i:""),url:e.url,tabs:e.tabs,pagination:e.pagination,buttons:e.buttons,columns:e.columns.map(e=>{let t={title:e.title,field:e.field,hidden:!e.show,width:e.width,required:e.required};return e.dataSource&&(t.bind={key:e.dataSource,data:[]}),e.dataSource&&l.push(e.dataSource),e.edit&&(t.bind||(t.bind={key:"",data:[]}),t.edit={type:e.editType}),t}),tableData:[{},{},{}]}));this.viewFormData.tables=o.filter(e=>!e.tabs),this.viewFormData.tabs=o.filter(e=>e.tabs),this.getDicKeys(l),console.log(JSON.stringify(this.viewFormData))},getDicKeys(e){e.length&&this.http.post("api/Sys_Dictionary/GetVueDictionary",e,!0).then(e=>{e.forEach(e=>{this.viewFormData.tables.forEach(t=>{let n=t.columns.find(t=>t.bind&&t.bind.key==e.dicNo);n&&(n.bind.data=e.data)}),this.viewFormData.tabs.forEach(t=>{let n=t.columns.find(t=>t.bind&&t.bind.key==e.dicNo);n&&(n.bind.data=e.data)})})})},save(){this.$emit("save",this.currentComponents)},download(){this.$Message.info("开发中")},openTableModel(){let e=this.currentTableOption.find(e=>"dataSource"==e.field);e.bind.data.length||(e.bind.data=this.dicList),this.currnetTableData=JSON.parse(JSON.stringify(this.currentItem.columns)),this.tableModel=!0},addRow(){this.currnetTableData.push({field:this.getField()})},delRow(){this.$confirm("确认要删除选择的数据吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{this.$refs.table.delRow()})},sortRow(){this.currnetTableData=this.currnetTableData.sort((e,t)=>e.orderNo-t.orderNo),this.$Message.success("列显示顺序已重新排列,点击预览可查看")},saveConfigOptions(){this.currentItem.columns=JSON.parse(JSON.stringify(this.currnetTableData)),this.tableModel=!1},copyItem(e){let t=JSON.parse(JSON.stringify(e));t.field="field"+(new Date).valueOf(),this.currentComponents.push(t)},removeItem(e){this.currentComponents.splice(e,1),this.colWidth=100,this.currentIndex=-1,this.currentItem={}},clearItems(){this.currentComponents.length=0,this.colWidth=100,this.currentIndex=-1,this.currentItem={}},itemClick(e,t){this.currentIndex=t,this.colWidth=this.currentComponents[this.currentIndex].width,this.currentItem=this.currentComponents[this.currentIndex]},onStart(e,t){this.drag=!0},getField(){return"field"+(new Date).valueOf()},end1(e){if(e.from!==e.to){let t=JSON.parse(JSON.stringify(this.components[e.oldIndex]));t.field=this.getField(),t.width=100,t.readonly=!1,t.required=!1,this.currentComponents.splice(e.newIndex,1,t),this.userComponents.splice(0),this.userComponents.push(...this.currentComponents),this.colWidth=100,this.currentIndex=e.newIndex,this.currentItem=this.currentComponents[this.currentIndex]}},end2(e){},onMove1(e,t){return!0},onMove(e,t){return console.log(JSON.stringify(this.currentComponents)),!0},dicChange(e){this.http.post("api/Sys_Dictionary/GetVueDictionary",[e],!0).then(e=>{this.currentItem.data=e[0].data,e[0].data.length&&("select"==this.currentItem.type?this.currentItem.value=e[0].data[0].value:this.currentItem.values=[e[0].data[0].value])})},example1(){this.currentComponents=this.options1},example2(){this.currentComponents=this.options2},example3(){this.currentComponents=this.options3}},computed:{tabsTable(){return this.currentComponents.filter(e=>"table"==e.type&&1==e.tabs)}}};n("1ca8");const qe=Ee()(We,[["render",ue],["__scopeId","data-v-52661a16"]]);var Le=qe,Re=Le,Be={components:{VolFormDraggable:Re},methods:{save(e){this.$Message.success("可以将当前配置保存到数据库中用于二次维护"),console.log(JSON.stringify(e))}},data(){return{userComponents:[]}},created(){this.menu.hide()}};const $e=Ee()(Be,[["render",l]]);t["default"]=$e}}]);
|