sun-form-v3 1.0.115 → 1.0.116
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-BfSee74H.js → index-BTszxQ3a.js} +1 -1
- package/dist/{index-C7TTmABY.js → index-BdDDN6yM.js} +1 -1
- package/dist/{index-BQJezSdT.js → index-D6pT7AhH.js} +1 -1
- package/dist/{index-7YA3IXcu.js → index-DS5b87Ls.js} +1 -1
- package/dist/{index-uGqw0pIv.js → index-DbFyMaOY.js} +7 -4
- package/dist/{index-LjnMduKq.js → index-DfS6NHRx.js} +1 -1
- package/dist/{index-DfwOX5IG.js → index-yhhEGeSj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +2 -2
- package/package.json +1 -1
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
5
5
|
* @license MIT
|
6
|
-
*/function dH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dH(Object(n),!0).forEach(function(r){Ove(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HE(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HE=function(e){return typeof e}:HE=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HE(t)}function Ove(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ud(){return Ud=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ud.apply(this,arguments)}function Dve(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ave(t,e){if(t==null)return{};var n=Dve(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var Nve="1.14.0";function Gd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Yd=Gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Px=Gd(/Edge/i),pH=Gd(/firefox/i),Ix=Gd(/safari/i)&&!Gd(/chrome/i)&&!Gd(/android/i),hH=Gd(/iP(ad|od|hone)/i),Mve=Gd(/chrome/i)&&Gd(/android/i),gH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Yd&&gH)}function Mo(t,e,n){t.removeEventListener(e,n,!Yd&&gH)}function WE(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{return!1}return!1}}function Pve(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Nf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&WE(t,e):WE(t,e))||r&&t===n)return t;if(t===n)break}while(t=Pve(t))}return null}var vH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(vH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(vH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Xy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function mH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Mf(){var t=document.scrollingElement;return t||document.documentElement}function ka(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,l,u,c,f,d;if(t!==window&&t.parentNode&&t!==Mf()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,l=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Yd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),l-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=l+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Xy(o||t),g=h&&h.a,b=h&&h.d;h&&(a/=b,l/=g,d/=g,f/=b,u=a+f,c=l+d)}return{top:a,left:l,bottom:u,right:c,width:d,height:f}}}function yH(t,e,n){for(var r=sh(t,!0),o=ka(t)[e];r;){var i=ka(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===Mf())break;r=sh(r,!1)}return!1}function Ky(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Nf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function GP(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!WE(n,e));)n=n.previousElementSibling;return n||null}function Bu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||WE(t,e))&&n++;return n}function bH(t){var e=0,n=0,r=Mf();if(t)do{var o=Xy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Ive(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function sh(t,e){if(!t||!t.getBoundingClientRect)return Mf();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Mf();if(r||e)return n;r=!0}}while(n=n.parentNode);return Mf()}function kve(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function YP(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var kx;function _H(t,e){return function(){if(!kx){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),kx=setTimeout(function(){kx=void 0},e)}}}function Vve(){clearTimeout(kx),kx=void 0}function xH(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function wH(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Rve(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:ka(o)});var i=Af({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Xy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Ive(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(l){var u=0,c=l.target,f=c.fromRect,d=ka(c),p=c.prevFromRect,h=c.prevToRect,g=l.rect,b=Xy(c,!0);b&&(d.top-=b.f,d.left-=b.e),c.toRect=d,c.thisAnimationDuration&&YP(p,d)&&!YP(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=Bve(g,p,h,o.options)),YP(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var l=Xy(this.el),u=l&&l.a,c=l&&l.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Lve(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function Lve(t){return t.offsetWidth}function Bve(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Zy=[],qP={initializeByDefault:!0},Vx={mount:function(e){for(var n in qP)qP.hasOwnProperty(n)&&!(n in e)&&(e[n]=qP[n]);Zy.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Zy.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";Zy.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Af({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Af({sortable:n},r)))})},initializePlugins:function(e,n,r,o){Zy.forEach(function(l){var u=l.pluginName;if(!(!e.options[u]&&!l.initializeByDefault)){var c=new l(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Ud(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return Zy.forEach(function(o){typeof o.eventProperties=="function"&&Ud(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return Zy.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function Fve(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var b,x=e.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Yd&&!Px?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||n,b.from=l||n,b.item=o||n,b.clone=i,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=f,b.newDraggableIndex=d,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var C=Af(Af({},g),Vx.getEventProperties(r,e));for(var T in C)b[T]=C[T];n&&n.dispatchEvent(b),x[w]&&x[w].call(e,b)}}var jve=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ave(r,jve);Vx.pluginEvent.bind(Er)(e,n,Af({dragEl:xn,parentEl:Yi,ghostEl:Gr,rootEl:Ni,nextEl:lv,lastDownEl:UE,cloneEl:qi,cloneHidden:uh,dragStarted:Lx,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:Jy,oldDraggableIndex:Rx,newIndex:nu,newDraggableIndex:ch,hideGhostForTarget:AH,unhideGhostForTarget:NH,cloneNowHidden:function(){uh=!0},cloneNowShown:function(){uh=!1},dispatchSortableEvent:function(l){Jl({sortable:n,name:l,originalEvent:o})}},i))};function Jl(t){Fve(Af({putSortable:fl,cloneEl:qi,targetEl:xn,rootEl:Ni,oldIndex:Jy,oldDraggableIndex:Rx,newIndex:nu,newDraggableIndex:ch},t))}var xn,Yi,Gr,Ni,lv,UE,qi,uh,Jy,nu,Rx,ch,GE,fl,Qy=!1,YE=!1,qE=[],sv,Pc,XP,KP,SH,CH,Lx,eb,Bx,Fx=!1,XE=!1,KE,Ml,ZP=[],JP=!1,ZE=[],JE=typeof document<"u",QE=hH,EH=Px||Yd?"cssFloat":"float",$ve=JE&&!Mve&&!hH&&"draggable"in document.createElement("div"),TH=function(){if(JE){if(Yd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),OH=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Ky(e,0,n),a=Ky(e,1,n),l=i&&Cr(i),u=a&&Cr(a),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ka(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ka(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=o&&r[EH]==="none"||a&&r[EH]==="none"&&c+f>o)?"vertical":"horizontal"},zve=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===l||i===u||o+a/2===l+c/2},Hve=function(e,n){var r;return qE.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||GP(o))){var a=ka(o),l=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(l&&u)return r=o}}),r},DH=function(e){function n(i,a){return function(l,u,c,f){var d=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,u,c,f),a)(l,u,c,f);var p=(a?l:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||HE(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},AH=function(){!TH&&Gr&&Cr(Gr,"display","none")},NH=function(){!TH&&Gr&&Cr(Gr,"display","")};JE&&document.addEventListener("click",function(t){if(YE)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),YE=!1,!1},!0);var uv=function(e){if(xn){e=e.touches?e.touches[0]:e;var n=Hve(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Wve=function(e){xn&&xn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ud({},e),t[tu]=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 OH(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(a,l){a.setData("Text",l.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:Er.supportPointer!==!1&&"PointerEvent"in window&&!Ix,emptyInsertThreshold:5};Vx.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);DH(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:$ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),qE.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ud(this,Rve())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(eb=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,xn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(Jve(r),!xn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Ix&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Nf(u,o.draggable,r,!1),!(u&&u.animated)&&UE!==u)){if(Jy=Bu(u),Rx=Bu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Nf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Nf(c,o.handle,r,!1)||this._prepareDragStart(e,l,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,l=i.ownerDocument,u;if(r&&!xn&&r.parentNode===i){var c=ka(r);if(Ni=i,xn=r,Yi=xn.parentNode,lv=xn.nextSibling,UE=r,GE=a.group,Er.dragged=xn,sv={target:xn,clientX:(n||e).clientX,clientY:(n||e).clientY},SH=sv.clientX-c.left,CH=sv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,xn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!pH&&o.nativeDraggable&&(xn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(xn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){mH(xn,f.trim(),QP)}),Ho(l,"dragover",uv),Ho(l,"mousemove",uv),Ho(l,"touchmove",uv),Ho(l,"mouseup",o._onDrop),Ho(l,"touchend",o._onDrop),Ho(l,"touchcancel",o._onDrop),pH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,xn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Px||Yd))){if(Er.eventCanceled){this._onDrop();return}Ho(l,"mouseup",o._disableDelayedDrag),Ho(l,"touchend",o._disableDelayedDrag),Ho(l,"touchcancel",o._disableDelayedDrag),Ho(l,"mousemove",o._delayedDragTouchMoveHandler),Ho(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){xn&&QP(xn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(xn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?tT(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Qy=!1,Ni&&xn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Wve);var r=this.options;!e&&eu(xn,r.dragClass,!1),eu(xn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Pc){this._lastX=Pc.clientX,this._lastY=Pc.clientY,AH();for(var e=document.elementFromPoint(Pc.clientX,Pc.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Pc.clientX,Pc.clientY),e!==n);)n=e;if(xn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:Pc.clientX,clientY:Pc.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);NH()}},_onTouchMove:function(e){if(sv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Xy(Gr,!0),l=Gr&&a&&a.a,u=Gr&&a&&a.d,c=QE&&Ml&&bH(Ml),f=(i.clientX-sv.clientX+o.x)/(l||1)+(c?c[0]-ZP[0]:0)/(l||1),d=(i.clientY-sv.clientY+o.y)/(u||1)+(c?c[1]-ZP[1]:0)/(u||1);if(!Er.active&&!Qy){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(XP||0),a.f+=d-(KP||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),XP=f,KP=d,Pc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=ka(xn,!0,QE,!0,e),r=this.options;if(QE){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=Mf()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=Mf(),ZP=bH(Ml)}Gr=xn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",QE?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",SH/parseInt(Gr.style.width)*100+"% "+CH/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(qi=wH(xn),qi.draggable=!1,qi.style["will-change"]="",this._hideClone(),eu(qi,this.options.chosenClass,!1),Er.clone=qi),r.cloneId=tT(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(qi,xn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(xn,i.dragClass,!0),n?(YE=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,xn)),Ho(document,"drop",r),Cr(xn,"transform","translateZ(0)")),Qy=!0,r._dragStartId=tT(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Lx=!0,Ix&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,l=this.options,u=l.group,c=Er.active,f=GE===u,d=l.sort,p=fl||c,h,g=this,b=!1;if(JP)return;function x(Z,ee){Ds(Z,g,Af({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:C,onMove:function(ce,Ae){return eT(Ni,n,xn,o,ce,ka(ce),e,Ae)},changed:T},ee))}function w(){x("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function C(Z){return x("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(xn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(xn,l.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){x("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===xn&&!xn.animated||r===n&&!r.animated)&&(eb=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(xn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&uv(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),b=!0}function T(){nu=Bu(xn),ch=Bu(xn,l.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ch,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Nf(r,l.draggable,n,!0),x("dragOver"),Er.eventCanceled)return b;if(xn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return C(!1);if(YE=!1,c&&!l.disabled&&(f?d||(a=Yi!==Ni):fl===this||(this.lastPutMode=GE.checkPull(this,c,xn,e))&&u.checkPut(this,c,xn,e))){if(h=this._getDirection(e,r)==="vertical",o=ka(xn),x("dragOverValid"),Er.eventCanceled)return b;if(a)return Yi=Ni,w(),this._hideClone(),x("revert"),Er.eventCanceled||(lv?Ni.insertBefore(xn,lv):Ni.appendChild(xn)),C(!0);var A=GP(n,l.draggable);if(!A||qve(e,h,this)&&!A.animated){if(A===xn)return C(!1);if(A&&n===e.target&&(r=A),r&&(i=ka(r)),eT(Ni,n,xn,o,r,i,e,!!r)!==!1)return w(),n.appendChild(xn),Yi=n,T(),C(!0)}else if(A&&Yve(e,h,this)){var N=Ky(n,0,l,!0);if(N===xn)return C(!1);if(r=N,i=ka(r),eT(Ni,n,xn,o,r,i,e,!1)!==!1)return w(),n.insertBefore(xn,N),Yi=n,T(),C(!0)}else if(r.parentNode===n){i=ka(r);var P=0,I,V=xn.parentNode!==n,k=!zve(xn.animated&&xn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",j=yH(r,"top","top")||yH(xn,"top","top"),L=j?j.scrollTop:void 0;eb!==r&&(I=i[F],Fx=!1,XE=!k&&l.invertSwap||V),P=Xve(e,r,i,h,k?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,XE,eb===r);var B;if(P!==0){var H=Bu(xn);do H-=P,B=Yi.children[H];while(B&&(Cr(B,"display")==="none"||B===Gr))}if(P===0||B===r)return C(!1);eb=r,Bx=P;var W=r.nextElementSibling,J=!1;J=P===1;var ie=eT(Ni,n,xn,o,r,i,e,J);if(ie!==!1)return(ie===1||ie===-1)&&(J=ie===1),JP=!0,setTimeout(Gve,30),w(),J&&!W?n.appendChild(xn):r.parentNode.insertBefore(xn,J?W:r),j&&xH(j,0,L-j.scrollTop),Yi=xn.parentNode,I!==void 0&&!XE&&(KE=Math.abs(I-ka(r)[F])),T(),C(!0)}if(n.contains(xn))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",uv),Mo(document,"mousemove",uv),Mo(document,"touchmove",uv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Bu(xn),ch=Bu(xn,r.draggable),Ds("drop",this,{evt:e}),Yi=xn&&xn.parentNode,nu=Bu(xn),ch=Bu(xn,r.draggable),Er.eventCanceled){this._nulling();return}Qy=!1,XE=!1,Fx=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eI(this.cloneId),eI(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ix&&Cr(document.body,"user-select",""),Cr(xn,"transform",""),e&&(Lx&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===Yi||fl&&fl.lastPutMode!=="clone")&&qi&&qi.parentNode&&qi.parentNode.removeChild(qi),xn&&(this.nativeDraggable&&Mo(xn,"dragend",this),QP(xn),xn.style["will-change"]="",Lx&&!Qy&&eu(xn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(xn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:Yi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==Yi?(nu>=0&&(Jl({rootEl:Yi,name:"add",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:Yi,originalEvent:e}),Jl({rootEl:Yi,name:"sort",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),fl&&fl.save()):nu!==Jy&&nu>=0&&(Jl({sortable:this,name:"update",toEl:Yi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=Jy,ch=Rx),Jl({sortable:this,name:"end",toEl:Yi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=xn=Yi=Gr=lv=qi=UE=uh=sv=Pc=Lx=nu=ch=Jy=Rx=eb=Bx=fl=GE=Er.dragged=Er.ghost=Er.clone=Er.active=null,ZE.forEach(function(e){e.checked=!0}),ZE.length=XP=KP=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":xn&&(this._onDragOver(e),Uve(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Nf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||Zve(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];Nf(l,this.options.draggable,o,!1)&&(r[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Nf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=Vx.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&DH(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qE.splice(qE.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!uh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(qi,"display","none"),this.options.removeCloneOnHide&&qi.parentNode&&qi.parentNode.removeChild(qi),uh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(uh){if(Ds("showClone",this),Er.eventCanceled)return;xn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(qi,xn):lv?Ni.insertBefore(qi,lv):Ni.appendChild(qi),this.options.group.revertClone&&this.animate(xn,qi),Cr(qi,"display",""),uh=!1}}};function Uve(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function eT(t,e,n,r,o,i,a,l){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Yd&&!Px?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||ka(e),u.willInsertAfter=l,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function QP(t){t.draggable=!1}function Gve(){JP=!1}function Yve(t,e,n){var r=ka(Ky(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function qve(t,e,n){var r=ka(GP(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Xve(t,e,n,r,o,i,a,l){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(l&&KE<c*o){if(!Fx&&(Bx===1?u>f+c*i/2:u<d-c*i/2)&&(Fx=!0),Fx)p=!0;else if(Bx===1?u<f+KE:u>d-KE)return-Bx}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Kve(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Kve(t){return Bu(xn)<Bu(t)?1:-1}function Zve(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Jve(t){ZE.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&ZE.push(r)}}function tT(t){return setTimeout(t,0)}function eI(t){return clearTimeout(t)}JE&&Ho(document,"touchmove",function(t){(Er.active||Qy)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:mH,is:function(e,n){return!!Nf(e,n,e,!1)},extend:kve,throttle:_H,closest:Nf,toggleClass:eu,clone:wH,index:Bu,nextTick:tT,cancelNextTick:eI,detectDirection:OH,getChild:Ky},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Af(Af({},Er.utils),r.utils)),Vx.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=Nve;var _a=[],jx,tI,nI=!1,rI,oI,nT,$x;function Qve(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),MH(),rT(),Vve()},nulling:function(){nT=tI=jx=nI=$x=rI=oI=null,_a.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,a);if(nT=n,r||this.options.forceAutoScrollFallback||Px||Yd||Ix){iI(n,this.options,l,r);var u=sh(l,!0);nI&&(!$x||i!==rI||a!==oI)&&($x&&MH(),$x=setInterval(function(){var c=sh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,rT()),iI(n,o.options,c,r)},10),rI=i,oI=a)}else{if(!this.options.bubbleScroll||sh(l,!0)===Mf()){rT();return}iI(n,this.options,sh(l,!1),!1)}}},Ud(t,{pluginName:"scroll",initializeByDefault:!0})}function rT(){_a.forEach(function(t){clearInterval(t.pid)}),_a=[]}function MH(){clearInterval($x)}var iI=_H(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,u=Mf(),c=!1,f;tI!==n&&(tI=n,rT(),jx=e.scroll,f=e.scrollFn,jx===!0&&(jx=sh(n,!0)));var d=0,p=jx;do{var h=p,g=ka(h),b=g.top,x=g.bottom,w=g.left,C=g.right,T=g.width,A=g.height,N=void 0,P=void 0,I=h.scrollWidth,V=h.scrollHeight,k=Cr(h),F=h.scrollLeft,j=h.scrollTop;h===u?(N=T<I&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),P=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(N=T<I&&(k.overflowX==="auto"||k.overflowX==="scroll"),P=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"));var L=N&&(Math.abs(C-o)<=a&&F+T<I)-(Math.abs(w-o)<=a&&!!F),B=P&&(Math.abs(x-i)<=a&&j+A<V)-(Math.abs(b-i)<=a&&!!j);if(!_a[d])for(var H=0;H<=d;H++)_a[H]||(_a[H]={});(_a[d].vx!=L||_a[d].vy!=B||_a[d].el!==h)&&(_a[d].el=h,_a[d].vx=L,_a[d].vy=B,clearInterval(_a[d].pid),(L!=0||B!=0)&&(c=!0,_a[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(nT);var W=_a[this.layer].vy?_a[this.layer].vy*l:0,J=_a[this.layer].vx?_a[this.layer].vx*l:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,W,t,nT,_a[this.layer].el)!=="continue"||xH(_a[this.layer].el,J,W)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=sh(p,!1)));nI=c}},30),PH=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function aI(){}aI.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ky(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:PH},Ud(aI,{pluginName:"revertOnSpill"});function lI(){}lI.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:PH},Ud(lI,{pluginName:"removeOnSpill"}),Er.mount(new Qve),Er.mount(lI,aI);function sI(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function IH(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function eme(){return typeof window<"u"?window.console:global.console}const tme=eme();function nme(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const rme=/-(\w)/g,ome=nme(t=>t.replace(rme,(e,n)=>n.toUpperCase())),kH=["Start","Add","Remove","Update","End"],VH=["Choose","Unchoose","Sort","Filter","Clone"],RH=["Move"],ime=[RH,kH,VH].flatMap(t=>t).map(t=>`on${t}`),uI={manage:RH,manageAndEmit:kH,emit:VH};function ame(t){return ime.indexOf(t)!==-1}const lme=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function sme(t){return lme.includes(t)}function ume(t){return["transition-group","TransitionGroup"].includes(t)}function LH(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function BH(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function cme({$attrs:t,componentData:e={}}){return{...BH(Object.entries(t).filter(([r,o])=>LH(r))),...e}}function fme({$attrs:t,callBackBuilder:e}){const n=BH(FH(t));Object.entries(e).forEach(([o,i])=>{uI[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function FH(t){return Object.entries(t).filter(([e,n])=>!LH(e)).map(([e,n])=>[ome(e),n]).filter(([e,n])=>!ame(e))}const jH=({el:t})=>t,dme=(t,e)=>t.__draggable_context=e,$H=t=>t.__draggable_context;class pme{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{dme(jH(r),{element:n[o],index:o})})}getUnderlyingVm(e){return $H(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const l=$H(a);if(l)return l.index;if(o===0)return 0;const u=jH(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function hme(t,e){const n=t[e];return n?n():[]}function gme({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>hme(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(l.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:l}}function vme(t){const e=ume(t),n=!sme(t)&&!e;return{transition:e,externalComponent:n,tag:n?s.resolveComponent(t):e?s.TransitionGroup:t}}function mme({$slots:t,tag:e,realList:n,getKey:r}){const o=gme({$slots:t,realList:n,getKey:r}),i=vme(e);return new pme({nodes:o,root:i,realList:n})}function zH(t,e){s.nextTick(()=>this.$emit(t.toLowerCase(),e))}function HH(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function yme(t){const e=HH.call(this,t);return(n,r)=>{e.call(this,n,r),zH.call(this,t,n)}}let cI=null;const bme={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_me=["update:modelValue","change",...[...uI.manageAndEmit,...uI.emit].map(t=>t.toLowerCase())],fh=s.defineComponent({name:"draggable",inheritAttrs:!1,props:bme,emits:_me,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=mme({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const l=cme({$attrs:e,componentData:r});return a.render(s.h,l)}catch(t){return this.error=!0,s.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&tme.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=fme({$attrs:t,callBackBuilder:{manageAndEmit:i=>yme.call(this,i),emit:i=>zH.bind(this,i),manage:i=>HH.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&FH(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){s.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),cI=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;sI(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(IH(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){sI(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){sI(t.item),IH(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(cI)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},l={...t,relatedContext:o,draggedContext:a};return n(l,e)},onDragEnd(){cI=null}}}),xa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xme={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},wme={class:"flex items-center justify-between"},Sme={class:"font-bold text-lg"},Cme={class:"flex"},Eme={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Tme=Object.freeze(Object.defineProperty({__proto__:null,default:xa(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,s.getCurrentInstance());let n=s.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return s.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=s.resolveComponent("el-button"),l=s.resolveComponent("commonContainer");return s.openBlock(),s.createElementBlock("div",xme,[s.createElementVNode("div",wme,[s.createElementVNode("div",Sme,s.toDisplayString(s.unref(n).title),1),s.createElementVNode("div",Cme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(n).list,(u,c)=>(s.openBlock(),s.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),s.unref(n).hasSplitLine?(s.openBlock(),s.createElementBlock("div",Eme)):s.createCommentVNode("",!0),s.createVNode(s.unref(fh),{ghostClass:"ghost",handle:".handle",list:s.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:s.normalizeStyle({flexWrap:s.unref(n).flexWrap?"wrap":"nowrap",display:s.unref(n).flex?"flex":"block",flexDirection:s.unref(n).flexDirection,alignItems:s.unref(n).alignItems,justifyContent:s.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:s.withCtx(({element:u})=>[s.createVNode(l,{designer:s.unref(e).designer,widget:u,parentWidget:s.unref(e).widget,style:s.normalizeStyle({...s.unref(e).designer.formatStyle(u)})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:s.unref(e).designer},null,8,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:1},8,["list","style"])])}}}),[["__scopeId","data-v-627e235b"]])},Symbol.toStringTag,{value:"Module"})),Ome=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:f=>{let d=null;f&&f.length>0&&(i.value.postLastLevel?d=f[f.length-1]:d=f.join(",")),i.value.isTableItem?o("update:modelValue",d):i.value.value=d},get:()=>{let f;if(i.value.isTableItem?f=r.modelValue||i.value.value:f=i.value.value,f&&typeof f=="string")if(i.value.postLastLevel){if(i.value.options)return u(i.value.options,f)}else return f.split(",");return null}}),l=f=>{r.designer.eventHandle({eventType:"onChange",value:f,tableItemData:r.tableItemData,widget:r.widget})},u=(f,d)=>{for(let p of f)if(p[i.value.propsChildren]&&p[i.value.propsChildren].length){const h=u(p[i.value.propsChildren],d);if(h)return[p[i.value.propsKey],...h]}else if(p[i.value.propsKey]===d)return[p[i.value.propsKey]];return null},c=f=>{i.value.options=f};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:f,httpRes:d})=>{f&&(i.value.options=f)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l,setOption:c}),(f,d)=>{const p=s.resolveComponent("el-cascader"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),options:s.unref(i).options,size:s.unref(i).size,disabled:s.unref(i).isDetail||s.unref(i).disabled,clearable:s.unref(i).clearable,filterable:"","show-all-levels":s.unref(i).showAllLevels,props:{label:s.unref(i).propsLabel,value:s.unref(i).propsKey,children:s.unref(i).propsChildren},onChange:l},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Dme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.ref(!1),l=s.ref(i.value.timeSec),u=s.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:b})=>{if(g===!0){a.value=!0;let x=setInterval(()=>{l.value--,l.value<=0&&(clearInterval(x),l.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,b)=>{const x=s.resolveComponent("el-button"),w=s.resolveComponent("el-input"),C=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(C,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(w,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=T=>u.value=T),type:s.unref(i).type,size:s.unref(i).size,onBlur:h,placeholder:s.unref(i).placeholder,disabled:s.unref(i).disabled,readonly:s.unref(i).readonly,rows:s.unref(i).rows,maxlength:s.unref(i).maxlength,"show-word-limit":s.unref(i).showLimit},{append:s.withCtx(()=>[s.createVNode(x,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value?`重新发送(${l.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Ame=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n;let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("el-checkbox"),d=s.resolveComponent("el-checkbox-button"),p=s.resolveComponent("el-checkbox-group"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{disabled:s.unref(i).isDetail||s.unref(i).disabled,size:s.unref(i).size,onChange:l,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:s.withCtx(()=>[s.unref(i).isButton?s.createCommentVNode("",!0):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(f,{class:"w-full",key:g.value,style:s.normalizeStyle({width:s.unref(i).isBlock?"":"auto"}),value:g.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),s.unref(i).isButton?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):s.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Nme={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Mme={key:0,class:"tree_wrap flex-none w-[320px] border"},Pme={class:"h-full w-full flex flex-col flex-1"},Ime={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},kme={key:0,class:"text-[#d25462] italic"},Vme={class:"text-[#d4d4d4]"},Rme={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},fI={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=s.ref(null),a=s.ref(!0);let l=null;s.onMounted(()=>{require.config({paths:{vs:"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs","vs/language/zh-hans":"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/json/jsonWorker.min.js":g==="css"||g==="scss"||g==="less"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/css/cssWorker.min.js":g==="html"||g==="handlebars"||g==="razor"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/html/htmlWorker.min.js":g==="typescript"||g==="javascript"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/typescript/tsWorker.min.js":"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/base/worker/workerMain.min.js"}},i.value?(l=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize}),l.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),b=h.getSelection(),x=g.getWordAtPosition(b.getStartPosition());x&&x.word.startsWith("datatable_")&&(console.log("组件名称:",x.word),showComponentInfo(x.word))}}),l.onDidChangeModelContent(h=>{o("update:modelValue",l.getValue())}),setTimeout(()=>{f(),a.value=!1},20),s.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
6
|
+
*/function dH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dH(Object(n),!0).forEach(function(r){Ove(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HE(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HE=function(e){return typeof e}:HE=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HE(t)}function Ove(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ud(){return Ud=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ud.apply(this,arguments)}function Dve(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ave(t,e){if(t==null)return{};var n=Dve(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var Nve="1.14.0";function Gd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Yd=Gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Px=Gd(/Edge/i),pH=Gd(/firefox/i),Ix=Gd(/safari/i)&&!Gd(/chrome/i)&&!Gd(/android/i),hH=Gd(/iP(ad|od|hone)/i),Mve=Gd(/chrome/i)&&Gd(/android/i),gH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Yd&&gH)}function Mo(t,e,n){t.removeEventListener(e,n,!Yd&&gH)}function WE(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{return!1}return!1}}function Pve(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Nf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&WE(t,e):WE(t,e))||r&&t===n)return t;if(t===n)break}while(t=Pve(t))}return null}var vH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(vH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(vH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Xy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function mH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Mf(){var t=document.scrollingElement;return t||document.documentElement}function ka(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,l,u,c,f,d;if(t!==window&&t.parentNode&&t!==Mf()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,l=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Yd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),l-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=l+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Xy(o||t),g=h&&h.a,b=h&&h.d;h&&(a/=b,l/=g,d/=g,f/=b,u=a+f,c=l+d)}return{top:a,left:l,bottom:u,right:c,width:d,height:f}}}function yH(t,e,n){for(var r=sh(t,!0),o=ka(t)[e];r;){var i=ka(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===Mf())break;r=sh(r,!1)}return!1}function Ky(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Nf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function GP(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!WE(n,e));)n=n.previousElementSibling;return n||null}function Bu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||WE(t,e))&&n++;return n}function bH(t){var e=0,n=0,r=Mf();if(t)do{var o=Xy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Ive(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function sh(t,e){if(!t||!t.getBoundingClientRect)return Mf();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Mf();if(r||e)return n;r=!0}}while(n=n.parentNode);return Mf()}function kve(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function YP(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var kx;function _H(t,e){return function(){if(!kx){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),kx=setTimeout(function(){kx=void 0},e)}}}function Vve(){clearTimeout(kx),kx=void 0}function xH(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function wH(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Rve(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:ka(o)});var i=Af({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Xy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Ive(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(l){var u=0,c=l.target,f=c.fromRect,d=ka(c),p=c.prevFromRect,h=c.prevToRect,g=l.rect,b=Xy(c,!0);b&&(d.top-=b.f,d.left-=b.e),c.toRect=d,c.thisAnimationDuration&&YP(p,d)&&!YP(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=Bve(g,p,h,o.options)),YP(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var l=Xy(this.el),u=l&&l.a,c=l&&l.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Lve(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function Lve(t){return t.offsetWidth}function Bve(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Zy=[],qP={initializeByDefault:!0},Vx={mount:function(e){for(var n in qP)qP.hasOwnProperty(n)&&!(n in e)&&(e[n]=qP[n]);Zy.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Zy.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";Zy.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Af({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Af({sortable:n},r)))})},initializePlugins:function(e,n,r,o){Zy.forEach(function(l){var u=l.pluginName;if(!(!e.options[u]&&!l.initializeByDefault)){var c=new l(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Ud(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return Zy.forEach(function(o){typeof o.eventProperties=="function"&&Ud(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return Zy.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function Fve(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var b,x=e.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Yd&&!Px?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||n,b.from=l||n,b.item=o||n,b.clone=i,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=f,b.newDraggableIndex=d,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var C=Af(Af({},g),Vx.getEventProperties(r,e));for(var T in C)b[T]=C[T];n&&n.dispatchEvent(b),x[w]&&x[w].call(e,b)}}var jve=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ave(r,jve);Vx.pluginEvent.bind(Er)(e,n,Af({dragEl:xn,parentEl:Yi,ghostEl:Gr,rootEl:Ni,nextEl:lv,lastDownEl:UE,cloneEl:qi,cloneHidden:uh,dragStarted:Lx,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:Jy,oldDraggableIndex:Rx,newIndex:nu,newDraggableIndex:ch,hideGhostForTarget:AH,unhideGhostForTarget:NH,cloneNowHidden:function(){uh=!0},cloneNowShown:function(){uh=!1},dispatchSortableEvent:function(l){Jl({sortable:n,name:l,originalEvent:o})}},i))};function Jl(t){Fve(Af({putSortable:fl,cloneEl:qi,targetEl:xn,rootEl:Ni,oldIndex:Jy,oldDraggableIndex:Rx,newIndex:nu,newDraggableIndex:ch},t))}var xn,Yi,Gr,Ni,lv,UE,qi,uh,Jy,nu,Rx,ch,GE,fl,Qy=!1,YE=!1,qE=[],sv,Pc,XP,KP,SH,CH,Lx,eb,Bx,Fx=!1,XE=!1,KE,Ml,ZP=[],JP=!1,ZE=[],JE=typeof document<"u",QE=hH,EH=Px||Yd?"cssFloat":"float",$ve=JE&&!Mve&&!hH&&"draggable"in document.createElement("div"),TH=function(){if(JE){if(Yd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),OH=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Ky(e,0,n),a=Ky(e,1,n),l=i&&Cr(i),u=a&&Cr(a),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ka(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ka(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=o&&r[EH]==="none"||a&&r[EH]==="none"&&c+f>o)?"vertical":"horizontal"},zve=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===l||i===u||o+a/2===l+c/2},Hve=function(e,n){var r;return qE.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||GP(o))){var a=ka(o),l=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(l&&u)return r=o}}),r},DH=function(e){function n(i,a){return function(l,u,c,f){var d=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,u,c,f),a)(l,u,c,f);var p=(a?l:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||HE(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},AH=function(){!TH&&Gr&&Cr(Gr,"display","none")},NH=function(){!TH&&Gr&&Cr(Gr,"display","")};JE&&document.addEventListener("click",function(t){if(YE)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),YE=!1,!1},!0);var uv=function(e){if(xn){e=e.touches?e.touches[0]:e;var n=Hve(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Wve=function(e){xn&&xn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ud({},e),t[tu]=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 OH(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(a,l){a.setData("Text",l.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:Er.supportPointer!==!1&&"PointerEvent"in window&&!Ix,emptyInsertThreshold:5};Vx.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);DH(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:$ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),qE.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ud(this,Rve())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(eb=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,xn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(Jve(r),!xn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Ix&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Nf(u,o.draggable,r,!1),!(u&&u.animated)&&UE!==u)){if(Jy=Bu(u),Rx=Bu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Nf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Nf(c,o.handle,r,!1)||this._prepareDragStart(e,l,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,l=i.ownerDocument,u;if(r&&!xn&&r.parentNode===i){var c=ka(r);if(Ni=i,xn=r,Yi=xn.parentNode,lv=xn.nextSibling,UE=r,GE=a.group,Er.dragged=xn,sv={target:xn,clientX:(n||e).clientX,clientY:(n||e).clientY},SH=sv.clientX-c.left,CH=sv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,xn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!pH&&o.nativeDraggable&&(xn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(xn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){mH(xn,f.trim(),QP)}),Ho(l,"dragover",uv),Ho(l,"mousemove",uv),Ho(l,"touchmove",uv),Ho(l,"mouseup",o._onDrop),Ho(l,"touchend",o._onDrop),Ho(l,"touchcancel",o._onDrop),pH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,xn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Px||Yd))){if(Er.eventCanceled){this._onDrop();return}Ho(l,"mouseup",o._disableDelayedDrag),Ho(l,"touchend",o._disableDelayedDrag),Ho(l,"touchcancel",o._disableDelayedDrag),Ho(l,"mousemove",o._delayedDragTouchMoveHandler),Ho(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){xn&&QP(xn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(xn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?tT(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Qy=!1,Ni&&xn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Wve);var r=this.options;!e&&eu(xn,r.dragClass,!1),eu(xn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Pc){this._lastX=Pc.clientX,this._lastY=Pc.clientY,AH();for(var e=document.elementFromPoint(Pc.clientX,Pc.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Pc.clientX,Pc.clientY),e!==n);)n=e;if(xn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:Pc.clientX,clientY:Pc.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);NH()}},_onTouchMove:function(e){if(sv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Xy(Gr,!0),l=Gr&&a&&a.a,u=Gr&&a&&a.d,c=QE&&Ml&&bH(Ml),f=(i.clientX-sv.clientX+o.x)/(l||1)+(c?c[0]-ZP[0]:0)/(l||1),d=(i.clientY-sv.clientY+o.y)/(u||1)+(c?c[1]-ZP[1]:0)/(u||1);if(!Er.active&&!Qy){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(XP||0),a.f+=d-(KP||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),XP=f,KP=d,Pc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=ka(xn,!0,QE,!0,e),r=this.options;if(QE){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=Mf()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=Mf(),ZP=bH(Ml)}Gr=xn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",QE?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",SH/parseInt(Gr.style.width)*100+"% "+CH/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(qi=wH(xn),qi.draggable=!1,qi.style["will-change"]="",this._hideClone(),eu(qi,this.options.chosenClass,!1),Er.clone=qi),r.cloneId=tT(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(qi,xn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(xn,i.dragClass,!0),n?(YE=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,xn)),Ho(document,"drop",r),Cr(xn,"transform","translateZ(0)")),Qy=!0,r._dragStartId=tT(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Lx=!0,Ix&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,l=this.options,u=l.group,c=Er.active,f=GE===u,d=l.sort,p=fl||c,h,g=this,b=!1;if(JP)return;function x(Z,ee){Ds(Z,g,Af({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:C,onMove:function(ce,Ae){return eT(Ni,n,xn,o,ce,ka(ce),e,Ae)},changed:T},ee))}function w(){x("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function C(Z){return x("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(xn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(xn,l.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){x("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===xn&&!xn.animated||r===n&&!r.animated)&&(eb=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(xn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&uv(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),b=!0}function T(){nu=Bu(xn),ch=Bu(xn,l.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ch,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Nf(r,l.draggable,n,!0),x("dragOver"),Er.eventCanceled)return b;if(xn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return C(!1);if(YE=!1,c&&!l.disabled&&(f?d||(a=Yi!==Ni):fl===this||(this.lastPutMode=GE.checkPull(this,c,xn,e))&&u.checkPut(this,c,xn,e))){if(h=this._getDirection(e,r)==="vertical",o=ka(xn),x("dragOverValid"),Er.eventCanceled)return b;if(a)return Yi=Ni,w(),this._hideClone(),x("revert"),Er.eventCanceled||(lv?Ni.insertBefore(xn,lv):Ni.appendChild(xn)),C(!0);var A=GP(n,l.draggable);if(!A||qve(e,h,this)&&!A.animated){if(A===xn)return C(!1);if(A&&n===e.target&&(r=A),r&&(i=ka(r)),eT(Ni,n,xn,o,r,i,e,!!r)!==!1)return w(),n.appendChild(xn),Yi=n,T(),C(!0)}else if(A&&Yve(e,h,this)){var N=Ky(n,0,l,!0);if(N===xn)return C(!1);if(r=N,i=ka(r),eT(Ni,n,xn,o,r,i,e,!1)!==!1)return w(),n.insertBefore(xn,N),Yi=n,T(),C(!0)}else if(r.parentNode===n){i=ka(r);var P=0,I,V=xn.parentNode!==n,k=!zve(xn.animated&&xn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",j=yH(r,"top","top")||yH(xn,"top","top"),L=j?j.scrollTop:void 0;eb!==r&&(I=i[F],Fx=!1,XE=!k&&l.invertSwap||V),P=Xve(e,r,i,h,k?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,XE,eb===r);var B;if(P!==0){var H=Bu(xn);do H-=P,B=Yi.children[H];while(B&&(Cr(B,"display")==="none"||B===Gr))}if(P===0||B===r)return C(!1);eb=r,Bx=P;var W=r.nextElementSibling,J=!1;J=P===1;var ie=eT(Ni,n,xn,o,r,i,e,J);if(ie!==!1)return(ie===1||ie===-1)&&(J=ie===1),JP=!0,setTimeout(Gve,30),w(),J&&!W?n.appendChild(xn):r.parentNode.insertBefore(xn,J?W:r),j&&xH(j,0,L-j.scrollTop),Yi=xn.parentNode,I!==void 0&&!XE&&(KE=Math.abs(I-ka(r)[F])),T(),C(!0)}if(n.contains(xn))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",uv),Mo(document,"mousemove",uv),Mo(document,"touchmove",uv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Bu(xn),ch=Bu(xn,r.draggable),Ds("drop",this,{evt:e}),Yi=xn&&xn.parentNode,nu=Bu(xn),ch=Bu(xn,r.draggable),Er.eventCanceled){this._nulling();return}Qy=!1,XE=!1,Fx=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eI(this.cloneId),eI(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ix&&Cr(document.body,"user-select",""),Cr(xn,"transform",""),e&&(Lx&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===Yi||fl&&fl.lastPutMode!=="clone")&&qi&&qi.parentNode&&qi.parentNode.removeChild(qi),xn&&(this.nativeDraggable&&Mo(xn,"dragend",this),QP(xn),xn.style["will-change"]="",Lx&&!Qy&&eu(xn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(xn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:Yi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==Yi?(nu>=0&&(Jl({rootEl:Yi,name:"add",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:Yi,originalEvent:e}),Jl({rootEl:Yi,name:"sort",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),fl&&fl.save()):nu!==Jy&&nu>=0&&(Jl({sortable:this,name:"update",toEl:Yi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=Jy,ch=Rx),Jl({sortable:this,name:"end",toEl:Yi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=xn=Yi=Gr=lv=qi=UE=uh=sv=Pc=Lx=nu=ch=Jy=Rx=eb=Bx=fl=GE=Er.dragged=Er.ghost=Er.clone=Er.active=null,ZE.forEach(function(e){e.checked=!0}),ZE.length=XP=KP=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":xn&&(this._onDragOver(e),Uve(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Nf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||Zve(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];Nf(l,this.options.draggable,o,!1)&&(r[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Nf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=Vx.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&DH(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qE.splice(qE.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!uh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(qi,"display","none"),this.options.removeCloneOnHide&&qi.parentNode&&qi.parentNode.removeChild(qi),uh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(uh){if(Ds("showClone",this),Er.eventCanceled)return;xn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(qi,xn):lv?Ni.insertBefore(qi,lv):Ni.appendChild(qi),this.options.group.revertClone&&this.animate(xn,qi),Cr(qi,"display",""),uh=!1}}};function Uve(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function eT(t,e,n,r,o,i,a,l){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Yd&&!Px?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||ka(e),u.willInsertAfter=l,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function QP(t){t.draggable=!1}function Gve(){JP=!1}function Yve(t,e,n){var r=ka(Ky(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function qve(t,e,n){var r=ka(GP(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Xve(t,e,n,r,o,i,a,l){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(l&&KE<c*o){if(!Fx&&(Bx===1?u>f+c*i/2:u<d-c*i/2)&&(Fx=!0),Fx)p=!0;else if(Bx===1?u<f+KE:u>d-KE)return-Bx}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Kve(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Kve(t){return Bu(xn)<Bu(t)?1:-1}function Zve(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Jve(t){ZE.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&ZE.push(r)}}function tT(t){return setTimeout(t,0)}function eI(t){return clearTimeout(t)}JE&&Ho(document,"touchmove",function(t){(Er.active||Qy)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:mH,is:function(e,n){return!!Nf(e,n,e,!1)},extend:kve,throttle:_H,closest:Nf,toggleClass:eu,clone:wH,index:Bu,nextTick:tT,cancelNextTick:eI,detectDirection:OH,getChild:Ky},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Af(Af({},Er.utils),r.utils)),Vx.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=Nve;var _a=[],jx,tI,nI=!1,rI,oI,nT,$x;function Qve(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),MH(),rT(),Vve()},nulling:function(){nT=tI=jx=nI=$x=rI=oI=null,_a.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,a);if(nT=n,r||this.options.forceAutoScrollFallback||Px||Yd||Ix){iI(n,this.options,l,r);var u=sh(l,!0);nI&&(!$x||i!==rI||a!==oI)&&($x&&MH(),$x=setInterval(function(){var c=sh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,rT()),iI(n,o.options,c,r)},10),rI=i,oI=a)}else{if(!this.options.bubbleScroll||sh(l,!0)===Mf()){rT();return}iI(n,this.options,sh(l,!1),!1)}}},Ud(t,{pluginName:"scroll",initializeByDefault:!0})}function rT(){_a.forEach(function(t){clearInterval(t.pid)}),_a=[]}function MH(){clearInterval($x)}var iI=_H(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,u=Mf(),c=!1,f;tI!==n&&(tI=n,rT(),jx=e.scroll,f=e.scrollFn,jx===!0&&(jx=sh(n,!0)));var d=0,p=jx;do{var h=p,g=ka(h),b=g.top,x=g.bottom,w=g.left,C=g.right,T=g.width,A=g.height,N=void 0,P=void 0,I=h.scrollWidth,V=h.scrollHeight,k=Cr(h),F=h.scrollLeft,j=h.scrollTop;h===u?(N=T<I&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),P=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(N=T<I&&(k.overflowX==="auto"||k.overflowX==="scroll"),P=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"));var L=N&&(Math.abs(C-o)<=a&&F+T<I)-(Math.abs(w-o)<=a&&!!F),B=P&&(Math.abs(x-i)<=a&&j+A<V)-(Math.abs(b-i)<=a&&!!j);if(!_a[d])for(var H=0;H<=d;H++)_a[H]||(_a[H]={});(_a[d].vx!=L||_a[d].vy!=B||_a[d].el!==h)&&(_a[d].el=h,_a[d].vx=L,_a[d].vy=B,clearInterval(_a[d].pid),(L!=0||B!=0)&&(c=!0,_a[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(nT);var W=_a[this.layer].vy?_a[this.layer].vy*l:0,J=_a[this.layer].vx?_a[this.layer].vx*l:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,W,t,nT,_a[this.layer].el)!=="continue"||xH(_a[this.layer].el,J,W)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=sh(p,!1)));nI=c}},30),PH=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function aI(){}aI.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ky(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:PH},Ud(aI,{pluginName:"revertOnSpill"});function lI(){}lI.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:PH},Ud(lI,{pluginName:"removeOnSpill"}),Er.mount(new Qve),Er.mount(lI,aI);function sI(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function IH(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function eme(){return typeof window<"u"?window.console:global.console}const tme=eme();function nme(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const rme=/-(\w)/g,ome=nme(t=>t.replace(rme,(e,n)=>n.toUpperCase())),kH=["Start","Add","Remove","Update","End"],VH=["Choose","Unchoose","Sort","Filter","Clone"],RH=["Move"],ime=[RH,kH,VH].flatMap(t=>t).map(t=>`on${t}`),uI={manage:RH,manageAndEmit:kH,emit:VH};function ame(t){return ime.indexOf(t)!==-1}const lme=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function sme(t){return lme.includes(t)}function ume(t){return["transition-group","TransitionGroup"].includes(t)}function LH(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function BH(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function cme({$attrs:t,componentData:e={}}){return{...BH(Object.entries(t).filter(([r,o])=>LH(r))),...e}}function fme({$attrs:t,callBackBuilder:e}){const n=BH(FH(t));Object.entries(e).forEach(([o,i])=>{uI[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function FH(t){return Object.entries(t).filter(([e,n])=>!LH(e)).map(([e,n])=>[ome(e),n]).filter(([e,n])=>!ame(e))}const jH=({el:t})=>t,dme=(t,e)=>t.__draggable_context=e,$H=t=>t.__draggable_context;class pme{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{dme(jH(r),{element:n[o],index:o})})}getUnderlyingVm(e){return $H(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const l=$H(a);if(l)return l.index;if(o===0)return 0;const u=jH(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function hme(t,e){const n=t[e];return n?n():[]}function gme({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>hme(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(l.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:l}}function vme(t){const e=ume(t),n=!sme(t)&&!e;return{transition:e,externalComponent:n,tag:n?s.resolveComponent(t):e?s.TransitionGroup:t}}function mme({$slots:t,tag:e,realList:n,getKey:r}){const o=gme({$slots:t,realList:n,getKey:r}),i=vme(e);return new pme({nodes:o,root:i,realList:n})}function zH(t,e){s.nextTick(()=>this.$emit(t.toLowerCase(),e))}function HH(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function yme(t){const e=HH.call(this,t);return(n,r)=>{e.call(this,n,r),zH.call(this,t,n)}}let cI=null;const bme={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_me=["update:modelValue","change",...[...uI.manageAndEmit,...uI.emit].map(t=>t.toLowerCase())],fh=s.defineComponent({name:"draggable",inheritAttrs:!1,props:bme,emits:_me,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=mme({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const l=cme({$attrs:e,componentData:r});return a.render(s.h,l)}catch(t){return this.error=!0,s.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&tme.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=fme({$attrs:t,callBackBuilder:{manageAndEmit:i=>yme.call(this,i),emit:i=>zH.bind(this,i),manage:i=>HH.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&FH(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){s.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),cI=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;sI(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(IH(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){sI(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){sI(t.item),IH(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(cI)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},l={...t,relatedContext:o,draggedContext:a};return n(l,e)},onDragEnd(){cI=null}}}),xa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xme={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},wme={class:"flex items-center justify-between"},Sme={class:"font-bold text-lg"},Cme={class:"flex"},Eme={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Tme=Object.freeze(Object.defineProperty({__proto__:null,default:xa(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,s.getCurrentInstance());let n=s.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return s.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=s.resolveComponent("el-button"),l=s.resolveComponent("commonContainer");return s.openBlock(),s.createElementBlock("div",xme,[s.createElementVNode("div",wme,[s.createElementVNode("div",Sme,s.toDisplayString(s.unref(n).title),1),s.createElementVNode("div",Cme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(n).list,(u,c)=>(s.openBlock(),s.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),s.unref(n).hasSplitLine?(s.openBlock(),s.createElementBlock("div",Eme)):s.createCommentVNode("",!0),s.createVNode(s.unref(fh),{ghostClass:"ghost",handle:".handle",list:s.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:s.normalizeStyle({flexWrap:s.unref(n).flexWrap?"wrap":"nowrap",display:s.unref(n).flex?"flex":"block",flexDirection:s.unref(n).flexDirection,alignItems:s.unref(n).alignItems,justifyContent:s.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:s.withCtx(({element:u})=>[s.createVNode(l,{designer:s.unref(e).designer,widget:u,parentWidget:s.unref(e).widget,style:s.normalizeStyle({...s.unref(e).designer.formatStyle(u)})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:s.unref(e).designer},null,8,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:1},8,["list","style"])])}}}),[["__scopeId","data-v-627e235b"]])},Symbol.toStringTag,{value:"Module"})),Ome=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:f=>{let d=null;f&&f.length>0&&(i.value.postLastLevel?d=f[f.length-1]:d=f.join(",")),i.value.isTableItem?o("update:modelValue",d):i.value.value=d},get:()=>{let f;if(i.value.isTableItem?f=r.modelValue||i.value.value:f=i.value.value,f&&typeof f=="string")if(i.value.postLastLevel){if(i.value.options)return u(i.value.options,f)}else return f.split(",");return null}}),l=f=>{r.designer.eventHandle({eventType:"onChange",value:f,tableItemData:r.tableItemData,widget:r.widget})},u=(f,d)=>{for(let p of f)if(p[i.value.propsChildren]&&p[i.value.propsChildren].length){const h=u(p[i.value.propsChildren],d);if(h)return[p[i.value.propsKey],...h]}else if(p[i.value.propsKey]===d)return[p[i.value.propsKey]];return null},c=f=>{i.value.options=f};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:f,httpRes:d})=>{f&&(i.value.options=f)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l,setOption:c}),(f,d)=>{const p=s.resolveComponent("el-cascader"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),options:s.unref(i).options,size:s.unref(i).size,disabled:s.unref(i).isDetail||s.unref(i).disabled,clearable:s.unref(i).clearable,filterable:"","show-all-levels":s.unref(i).showAllLevels,props:{label:s.unref(i).propsLabel,value:s.unref(i).propsKey,children:s.unref(i).propsChildren},onChange:l},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Dme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.ref(!1),l=s.ref(i.value.timeSec),u=s.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:b})=>{if(g===!0){a.value=!0;let x=setInterval(()=>{l.value--,l.value<=0&&(clearInterval(x),l.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,b)=>{const x=s.resolveComponent("el-button"),w=s.resolveComponent("el-input"),C=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(C,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(w,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=T=>u.value=T),type:s.unref(i).type,size:s.unref(i).size,onBlur:h,placeholder:s.unref(i).placeholder,disabled:s.unref(i).disabled,readonly:s.unref(i).readonly,rows:s.unref(i).rows,maxlength:s.unref(i).maxlength,"show-word-limit":s.unref(i).showLimit},{append:s.withCtx(()=>[s.createVNode(x,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value?`重新发送(${l.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Ame=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n;let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("el-checkbox"),d=s.resolveComponent("el-checkbox-button"),p=s.resolveComponent("el-checkbox-group"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{disabled:s.unref(i).isDetail||s.unref(i).disabled,size:s.unref(i).size,onChange:l,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:s.withCtx(()=>[s.unref(i).isButton?s.createCommentVNode("",!0):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(f,{class:"w-full",key:g.value,style:s.normalizeStyle({width:s.unref(i).isBlock?"":"auto"}),value:g.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),s.unref(i).isButton?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):s.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Nme={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Mme={key:0,class:"tree_wrap flex-none w-[320px] border"},Pme={class:"h-full w-full flex flex-col flex-1"},Ime={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},kme={key:0,class:"text-[#d25462] italic"},Vme={class:"text-[#d4d4d4]"},Rme={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},fI={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=s.ref(null),a=s.ref(!0);let l=null;s.onMounted(()=>{require.config({paths:{vs:"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs","vs/language/zh-hans":"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/json/jsonWorker.min.js":g==="css"||g==="scss"||g==="less"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/css/cssWorker.min.js":g==="html"||g==="handlebars"||g==="razor"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/html/htmlWorker.min.js":g==="typescript"||g==="javascript"?"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/language/typescript/tsWorker.min.js":"https://cdn.bootcdn.net/ajax/libs/monaco-editor/0.49.0/min/vs/base/worker/workerMain.min.js"}},i.value?(l=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize,suggest:{preview:!0}}),l.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),b=h.getSelection(),x=g.getWordAtPosition(b.getStartPosition());x&&x.word.startsWith("datatable_")&&(console.log("组件名称:",x.word),showComponentInfo(x.word))}}),l.onDidChangeModelContent(h=>{o("update:modelValue",l.getValue())}),setTimeout(()=>{f(),a.value=!1},20),s.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
7
7
|
$2
|
8
8
|
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"遍历"},{label:"map",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.map((e,i)=>{
|
9
9
|
$2
|
@@ -11,7 +11,7 @@
|
|
11
11
|
$2
|
12
12
|
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"过滤"},{label:"find",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.find((e,i)=>{
|
13
13
|
$2
|
14
|
-
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"查找"},{label:"suc",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.success( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息成功"},{label:"war",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.warning( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息警告"},{label:"err",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.error( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息报错"}]}}}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyD,function(){l.trigger("keyboard","editor.action.deleteLines",null)}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyMod.Shift|monaco.KeyCode.KeyF,function(){l.getAction("editor.action.formatDocument").run()})):console.error("编辑器容器元素不存在")})}),s.onUnmounted(()=>{l.dispose()});const u=()=>{console.log(l.getValue())},c=h=>{l.setValue(h)},f=()=>{l.trigger("keyboard","editor.action.formatDocument",null)},d=h=>{const g=l.getSelection(),b=l.getPosition();let x;g.isEmpty()?x=new monaco.Range(b.lineNumber,b.column,b.lineNumber,b.column):x=g,l.executeEdits("",[{range:x,text:h,forceMoveMarkers:!0}])},p=h=>{h&&h.type&&(h.type=="api"&&d(h.row.example),h.type=="id"&&d(h.row.id))};return e({getValue:u,setValue:c,setPositionValue:d,formatCode:f}),(h,g)=>{const b=s.resolveComponent("common-sidetree"),x=s.resolveDirective("loading");return s.withDirectives((s.openBlock(),s.createElementBlock("div",Nme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Mme,[s.createVNode(b,{designer:t.designer,canAddApi:!0,onAddApi:p},null,8,["designer"])])),s.createElementVNode("div",Pme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ime,[t.isAsync?(s.openBlock(),s.createElementBlock("span",kme,"async ")):s.createCommentVNode("",!0),g[0]||(g[0]=s.createElementVNode("span",{class:"text-[#569cd6]"},"function",-1)),g[1]||(g[1]=s.createElementVNode("span",{class:"text-[#ffd700]"},"( ",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.params,(w,C)=>(s.openBlock(),s.createElementBlock("span",Vme,s.toDisplayString(w)+" "+s.toDisplayString(C==r.params.length-1?"":" , "),1))),256)),g[2]||(g[2]=s.createElementVNode("span",{class:"text-[#ffd700]"}," ) {",-1))])),s.createElementVNode("div",{class:"flex-1 h-full",ref_key:"container",ref:i,style:s.normalizeStyle({width:r.width,height:r.height})},null,4),r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Rme," } "))])])),[[x,a.value]])}}},Lme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-codeEditor"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(u)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(f,{props:s.unref(i),class:"min-h-80"},{default:s.withCtx(()=>[s.createVNode(fI,{designer:t.designer,pure:!0,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),language:s.unref(i).language},null,8,["designer","modelValue","language"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Pl={homepage:{isContainer:!0,displayName:"页面",widgetList:[],type:"homepage",id:"homepage",chosenId:"homepage",props:{label:"",width:24,remark:"",hide:!1,onCreated:null,onMounted:null,height:null,style:{}}},form:{isContainer:!0,displayName:"表单",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,widgetList:[],props:{hasLabel:!1,label:"",width:24,remark:"",hasFooter:!0,hasSubmitButton:!0,hasResetButton:!0,buttonAlign:"right",submitButtonText:"提交",hasFooterBg:!0,hasBorder:!0,list:[],hide:!1,style:{},formType:"Create",apiSetCreate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetUpdate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetDetail:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onButtonClick:null}},div:{isContainer:!0,displayName:"工作区容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",width:24,flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,onCreated:null,onMounted:null}},card:{isContainer:!0,displayName:"卡片容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",value:"",width:24,title:"卡片标题",list:[],flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,hasSplitLine:!0,onCreated:null,onMounted:null,onButtonClick:null}},modal:{isContainer:!0,displayName:"弹窗",isForm:!1,widgetList:[],canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!1,props:{hasLabel:!1,title:"弹窗",show:!1,width:24,modalWidth:"80%",modalHeight:"80%",hideConfirm:!1,hasFooter:!0,list:[],height:null,onCreated:null,onMounted:null,onConfirm:null,onButtonClick:null}},tabs:{isContainer:!0,displayName:"标签页",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{hasLabel:!1,label:"标签页",width:24,type:"border-card",remark:"",activeName:null,loadType:"loadOnce",tabs:[{label:"标签页1",value:"tab1",widgetList:[]},{label:"标签页2",value:"tab2",widgetList:[]},{label:"标签页3",value:"tab3",widgetList:[]}],onCreated:null,onMounted:null,onChange:null}},input:{isContainer:!1,displayName:"输入框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,placeholder:"请输入",prependText:"",appendText:"",labelPosition:"left",value:null,zdname:null,label:"输入框",labelAlign:"right",labelWidth:"120px",width:24,type:"text",rows:3,isTrim:!1,maxlength:null,showLimit:!1,onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},select:{isContainer:!1,displayName:"下拉框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",label:"下拉框",required:!1,disabled:!1,hide:!1,labelPosition:"left",placeholder:"请选择",remark:"",value:null,zdname:null,isDetail:!1,labelAlign:"right",labelWidth:"120px",clearable:!0,width:24,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},selects:{isContainer:!1,displayName:"下拉多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",value:[],isDetail:!1,multipleLimit:null,maxCollapseTags:null,collapseTags:!1,zdname:null,label:"下拉多选框",labelAlign:"right",clearable:!1,labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},radio:{isContainer:!1,displayName:"单选框",isForm:!0,complete:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,props:{hasLabel:!0,required:!1,disabled:!1,size:"default",hide:!1,remark:"",labelPosition:"left",isButton:!1,isDetail:!1,isBlock:!1,value:null,zdname:null,label:"单选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},checkbox:{isContainer:!1,displayName:"多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{hasLabel:!0,size:"default",required:!1,disabled:!1,hide:!1,remark:"",isDetail:!1,labelPosition:"left",isButton:!1,isBlock:!1,value:[],zdname:null,label:"多选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},date:{isContainer:!1,displayName:"日期",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",isDetail:!1,value:null,type:"date",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",defaultNow:!1,zdname:null,label:"日期",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},progress:{isContainer:!1,displayName:"进度条",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",color:"#67C23A",strokeWidth:6,textInside:!1,hasStriped:!0,hasStripedFlow:!0,hide:!1,circleWidth:126,labelPosition:"left",value:null,zdname:null,label:"进度条",labelAlign:"right",labelWidth:"120px",width:24,type:"line",onCreated:null,onMounted:null,format:null}},switch:{isContainer:!1,displayName:"开关",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,isDetail:!1,hasLabel:!0,width:24,disabled:!1,hide:!1,labelPosition:"left",remark:"",value:!1,zdname:null,label:"开关",labelAlign:"right",labelWidth:"120px",activeText:"开",inactiveText:"关",onCreated:null,onMounted:null,onChange:null}},time:{isContainer:!1,displayName:"时间",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,hide:!1,remark:"",labelPosition:"left",isDetail:!1,placeholder:"请选择",value:null,format:"HH:mm:ss",valueFormat:"HH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",zdname:null,label:"时间",type:"time",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},rate:{isContainer:!1,displayName:"评分",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:5,zdname:null,remark:"",label:"评分",labelAlign:"right",labelWidth:"120px",width:24,max:5,allowHalf:!1,showScore:!1,onCreated:null,onMounted:null,onChange:null}},file:{isContainer:!1,displayName:"文件上传",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,isDetail:!1,hideFileName:!1,hidePreview:!1,hide:!1,placeholder:"请上传文件",labelPosition:"left",remark:"",value:null,zdname:null,label:"文件上传",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileIdField:"id",fileNameField:"name",fileUrlField:"url",fileSaveType:"name,id",fileDownType:"blob",fileGetUrl:"",fileDownUrl:"",accept:"",limit:100,fileSize:10,readonly:!1,multiple:!0,hideTable:!1,apiSet:{method:"post",apiurl:"",params:[],contentType:"file",dataFormat:"",labelField:"",valueField:"",beforeSend:""},onCreated:null,onMounted:null,onNameFormat:null}},location:{isContainer:!1,displayName:"位置选择器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{size:"medium",required:!1,remark:"",hasLabel:!0,readonly:!1,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:null,zdname:null,label:"",labelAlign:"right",labelWidth:"120px",width:24,city:"北京市",onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},service:{isContainer:!1,displayName:"服务",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{label:"",remark:"",hasLabel:!1,width:24,serviceJson:"",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null}},iframe:{isContainer:!1,displayName:"iframe",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{label:"iframe",hasLabel:!1,width:24,remark:"",height:"50vh",src:"",onCreated:null,onMounted:null}},editor:{isContainer:!1,displayName:"富文本编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,required:!1,readonly:!1,isDetail:!1,remark:"",hide:!1,labelPosition:"left",value:null,zdname:null,label:"富文本编辑器",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileUrlField:"",apiSet:{method:"post",apiurl:"",params:[],contentType:"FormData",dataFormat:"",beforeSend:""},onCreated:null,onMounted:null,onChange:null}},codeEditor:{isContainer:!1,displayName:"代码编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{height:"200px",value:null,hasLabel:!0,language:"javascript",remark:"",isDetail:!1,required:!1,readonly:!1,hide:!1,labelPosition:"left",zdname:null,label:"代码编辑器",labelAlign:"right",labelWidth:"120px",width:24,style:{height:"400px"},onCreated:null,onMounted:null}},button:{isContainer:!1,displayName:"按钮",isForm:!0,canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!0,props:{size:"default",type:"primary",isPlain:!1,isText:!1,isTextBgColor:!1,isLink:!1,isRound:!1,isCircle:!1,isLoading:!1,disabled:!1,hide:!1,hasLabel:!1,remark:"",label:"按钮",icon:"",align:"left",onCreated:null,onMounted:null,onFormat:null,onClick:null}},divider:{isContainer:!1,displayName:"分割线",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,width:24,onCreated:null,onMounted:null}},title:{isContainer:!1,displayName:"标题",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,value:"标题",remark:"",width:24,onCreated:null,onMounted:null}},html:{isContainer:!1,displayName:"html",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{hasLabel:!1,value:null,remark:"",width:24,onCreated:null,onMounted:null}},alert:{isContainer:!1,displayName:"警告",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{title:"提示",hasLabel:!1,type:"info",description:"",closable:!1,center:!1,closeText:"",showIcon:!0,width:24,hide:!1,effect:"light",onCreated:null,onMounted:null}},image:{isContainer:!1,displayName:"图片",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!1,value:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",hide:!1,fit:null,alt:"",canPreview:!1,imgWidth:"100px",imgHeight:"100px",onCreated:null,onMounted:null,onFormat:null}},edittable:{isContainer:!1,displayName:"可编辑表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,props:{zdname:null,hasLabel:!1,label:"",labelAlign:"right",labelWidth:"120px",isDetail:!1,width:24,remark:"",height:"80vh",required:!1,hide:!1,value:[],apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",beforeSend:""},tableConfig:{baseInfo:{rows:"datas",count:"totalCount",page:"pageindex",limit:"pagesize",count:"totalCount",pageDefault:20,pageDefaultIndex:1,oprateWidth:null,singleselect:!1,align:"center",hasPage:!0,showOverFlow:!0,initLoadData:!0,hideHandleBtn:!1,isStripe:!0,normalTable:!1,hideEditButton:!1,formTableMode:"table",treeMode:!1,treeTransform:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",treeLazySign:"hasChild",treeExpandAll:!1,treeAccordion:!1,isLazy:!1,isLine:!1,isHideChoose:!1},buttonList:[],queryList:[],tableList:[]},onCreated:null,onMounted:null,onDataLoad:null,onRowsChange:null,onChildLoad:null}},datatable:{isContainer:!1,displayName:"数据表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,label:"数据表格",isDetail:!1,width:24,hide:!1,zdname:null,value:null,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},emptyText:"没有更多数据了!",size:"small",height:"80vh",oprateWidth:null,rows:"ListOrders",count:"OrderCount",page:"pageIndex",limit:"pageSize",pageDefault:20,align:"left",singleselect:!1,border:"default",hasPage:!0,initLoadData:!0,showOverFlow:!0,required:!0,isStripe:!0,isHideChoose:!1,isHideQuery:!1,isHideButton:!1,isHideIndex:!1,isHideHeader:!1,isHideQueryBtn:!1,isHideResetBtn:!1,isCurrendClick:!0,isNotAuto:!1,treeMode:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",mergeRowKey:null,treeTransform:!1,treeExpandAll:!1,treeAccordion:!1,isLine:!1,cellStyle:null,rowStyle:null,cellClassName:null,rowClassName:null,onCreated:null,onMounted:null,onDataLoad:null,headerTree:[]}},transfer:{isContainer:!1,displayName:"穿梭框",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,size:"medium",required:!1,readonly:!1,remark:"",disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:[],zdname:null,label:"穿梭框",labelAlign:"right",labelWidth:"120px",width:24,propsKey:"value",propsLabel:"label",leftTitle:"备选项",rightTitle:"已选项",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null}},checkCode:{isContainer:!1,displayName:"手机验证码",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{size:"default",remark:"",hasLabel:!0,required:!1,isDetail:!1,hide:!1,placeholder:"请输入手机验证码",labelPosition:"left",value:null,zdname:null,label:"手机验证码",labelAlign:"right",labelWidth:"120px",width:24,type:"text",timeSec:60,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null}},datatableitem:{isContainer:!1,displayName:"数据表格表头",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!1,complete:!0,props:{hasLabel:!1,zdname:null,label:"",onFormat:null,hide:!1}},echarts:{isContainer:!1,displayName:"图表",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{hasLabel:!0,remark:"",isDetail:!1,hide:!1,labelPosition:"left",label:"",labelAlign:"right",labelWidth:"0px",width:12,type:"普通柱状图",onCreated:null,onMounted:null,initOption:null,style:{height:"400px"}}},statistic:{isContainer:!1,displayName:"统计",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:8,title:"统计标题",value:100,unit:"%",color:"rgba(123, 104, 238, 1)",fontColor:"#ffffff",split:3,data:[{title:"同比",value:100,key:"a",unit:"%"},{title:"环比",value:100,key:"b",unit:"元"},{title:"周同比",value:100,key:"c",unit:"美元"}],onCreated:null,onMounted:null}},text:{isContainer:!1,displayName:"文字",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"文字内容",size:"default",type:"primary",truncated:!1,lineClamp:null,onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},tag:{isContainer:!1,displayName:"标签",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"标签",size:"default",type:"primary",closable:!1,hit:!1,round:!1,color:null,effect:"light",onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},steps:{isContainer:!1,displayName:"步骤条",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,value:1,space:null,direction:"horizontal",alignCenter:!0,simple:!1,space:null,data:[{title:"数据填写",description:"步骤条描述"},{title:"初审",description:"步骤条描述"},{title:"复审",description:"步骤条描述"},{title:"终审",description:"步骤条描述"},{title:"完成",description:"步骤条描述"}],onCreated:null,onMounted:null,onStepClick:null}},timeline:{isContainer:!1,displayName:"时间线",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,hideTimestamp:!1,center:!1,hollow:!1,placement:"top",size:"normal",data:[{time:"2024-04-05",title:"数据填写",description:"时间线详细内容描述"},{time:"2024-04-06",title:"初审",description:"时间线详细内容描述"},{time:"2024-04-07",title:"复审",description:"时间线详细内容描述"},{time:"2024-04-08",title:"终审",description:"时间线详细内容描述"},{time:"2024-04-09",title:"完成",description:"时间线详细内容描述"}],onCreated:null,onMounted:null}},flow:{isContainer:!1,displayName:"流程设计器",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,onCreated:null,onMounted:null,onFlowClick:null,style:{height:"800px"}}},cascader:{isContainer:!1,displayName:"级联选择器",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,clearable:!0,placeholder:"请输入",labelPosition:"left",value:null,zdname:null,propsKey:"value",propsLabel:"label",propsChildren:"children",label:"级联选择器",labelAlign:"right",labelWidth:"120px",showAllLevels:!0,postLastLevel:!1,width:24,options:[],apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onChange:null}}},Bme=Object.assign({name:"headerItem"},{__name:"headerItem",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},headerTree:{type:Array,default:[]}},setup(t){let e=t;return(n,r)=>{const o=s.resolveComponent("headerItem",!0),i=s.resolveComponent("vxe-colgroup"),a=s.resolveComponent("vxe-column");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e).headerTree,(l,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:u},[l.children&&l.children.length?(s.openBlock(),s.createBlock(i,{key:0,title:l.label},{default:s.withCtx(()=>[s.createVNode(o,{headerTree:l.children,designer:s.unref(e).designer},null,8,["headerTree","designer"])]),_:2},1032,["title"])):(s.openBlock(),s.createBlock(a,{key:1,field:s.unref(e).designer.getWidgetById(l.id).props.zdname,title:s.unref(e).designer.getWidgetById(l.id).props.label},{default:s.withCtx(({row:c})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+s.unref(e).designer.getWidgetById(l.id).type),{ref_for:!0,ref:l.id,widget:s.unref(e).designer.getWidgetById(l.id),designer:s.unref(e).designer,tableItemData:c,modelValue:c[s.unref(e).designer.getWidgetById(l.id).props.zdname],"onUpdate:modelValue":f=>c[s.unref(e).designer.getWidgetById(l.id).props.zdname]=f},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","title"]))],64))),128)}}}),Fme={key:0,class:"flex flex-col bg-white border overflow-hidden mb-1 dark:border-slate-800 dark:bg-black"},jme={key:0,class:"w-full flex flex-wrap py-1 px-2"},$me={key:1,class:"flex bg-gray-50 justify-between px-2 py-1 border-t dark:bg-slate-800 dark:border-gray-800"},zme={class:"flex"},Hme={class:"flex"},Wme={class:"flex-1 bg-white border border-t-0 overflow-hidden flex flex-col dark:bg-slate-800 dark:border-gray-800"},Ume={class:"flex-1 overflow-hidden"},Gme={key:0,class:"bg-gray-100 py-1 px-2 dark:bg-slate-800 dark:border-gray-800"},Yme=xa(Object.assign({name:"show"},{__name:"show",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},emits:["rowsChange"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n,i=s.computed(()=>r.widget.props),a=s.ref([]),l=s.ref([]),u=s.ref({}),c=s.ref([]),f=s.ref([]),d=s.ref([]),p=s.ref(!1),h=s.ref(0),g=s.ref(),b=s.ref(!1),x=s.ref(0),w=s.ref({transform:i.value.treeTransform,rowField:i.value.treeRowField,parentField:i.value.treeParentField,childrenField:i.value.treeChildrenField,expandAll:i.value.treeExpandAll,accordion:i.value.accordion,showLine:i.value.isLine,iconOpen:"vxe-icon-square-minus",iconClose:"vxe-icon-square-plus",checkboxConfig:{checkField:"checked",halfField:"halfChecked",disabledField:"_checkbox_disabled"}}),C=s.ref({trigger:i.value.isHideChoose?void 0:"row"}),T=s.ref({trigger:i.value.isHideChoose?void 0:"row",highlight:!0,range:i.value.treeMode?void 0:!0}),A=s.reactive({pageSize:20,pageIndex:1}),N=ve=>{let Ce=[];return a.value.forEach(He=>{He.props.isSide===ve&&!He.props.hide&&Ce.push(He)}),Ce},P=s.computed(()=>{function ve(Ke){return/[\u4e00-\u9fff]/.test(Ke)}let Ce=0;return N(!0).forEach(Ke=>{let Ue=Ke.props.label;for(let Ie of Ue)ve(Ie)?Ce+=14:Ce+=8;Ce+=24,Ke.props.icon&&(Ce+=6)}),Ce<80&&(Ce=80),Ce}),I=ve=>{let Ce=0;return c.value.forEach((He,Ke)=>{!He.props.hide&&Ke<=ve&&(Ce+=He.props.width)}),!(Ce>48)},V=({row:ve,_rowIndex:Ce,column:He,visibleData:Ke})=>{const Ue=["ProtocolName","ProtocolFormula","ProtocolStandard","outNum","result","remark"],Ie=ve[He.field];if(Ie&&Ue.includes(He.field)){const lt=Ke[Ce-1];let Re=Ke[Ce+1];if(lt&<[He.field]===Ie)return{rowspan:0,colspan:0};{let mt=1;for(;Re&&Re[He.field]===Ie;)Re=Ke[++mt+Ce];if(mt>1)return{rowspan:mt,colspan:1}}}},k=()=>{let ve=0;return c.value.forEach(Ce=>{Ce.props.hide||(ve+=Ce.props.width)}),ve},F=(ve,Ce)=>{let He=ve.props.onBtnFormat;if(He){let Ue=new Function("widget","tableItemData","app",He)(ve,Ce,r.designer);return Ue&&r.designer.$utils.isPlainObject(Ue)?Ue:{disabled:ve.props.disabled,type:ve.props.type,hide:ve.props.hide}}else return{disabled:ve.props.disabled,type:ve.props.type,hide:ve.props.hide}},j=({row:ve,column:Ce})=>{let He=i.value.cellStyle;if(He)return new Function("widget","row","column","app",He)(r.widget,ve,Ce,r.designer)},L=({row:ve,column:Ce})=>{let He=i.value.cellClassName;if(He)return new Function("widget","row","column","app",He)(r.widget,ve,Ce,r.designer)},B=({row:ve})=>{let Ce=i.value.rowStyle;if(Ce)return new Function("widget","row","app",Ce)(r.widget,ve,r.designer)},H=({row:ve})=>{let Ce=i.value.rowClassName;if(Ce)return new Function("widget","row","app",Ce)(r.widget,ve,r.designer)},W=()=>i.value.singleselect?g.value.getRadioRecord():g.value.getCheckboxRecords(!0),J=()=>g.value.getCheckboxIndeterminateRecords(!0),ie=()=>W().concat(J()),Z=()=>g.value.getTableData().fullData,ee=ve=>{g.value.insertAt(ve,-1),x.value++},de=()=>{g.value.insertAt(u.value,-1),x.value++},ce=ve=>{console.log(ve),g.value.loadData(ve),x.value++},Ae=ve=>{g.value.remove(ve),x.value++},Le=ve=>{h.value=ve},Ze=(ve,Ce)=>{r.designer.eventHandle({eventType:"onItemClick",widget:ve,value:Ce||W()})},nt=ve=>{},rt=()=>{let ve=r.designer.$utils.clone(l.value,!0);c.value.forEach(Ce=>{ve.forEach(He=>{He.props.zdname==Ce.props.zdname&&(Ce.props.value=He.props.value)})}),Se()},ze=()=>{A.pageIndex=1,Se()},ne=()=>{let ve={};return c.value.forEach(Ce=>{ve[Ce.props.zdname]=Ce.props.value}),ve[i.value.page]=A.pageIndex,ve[i.value.limit]=A.pageSize,ve},se=ve=>{g.value.setAllTreeExpand(ve)},he=(ve=[])=>{var Ce=He=>{var Ke=[];return He.forEach(Ue=>{g.value.setCheckboxRow(Ue,!1),ve.includes(Ue[w.value.rowField])&&(g.value.setCheckboxRow(Ue,!0),Ue[w.value.childrenField]&&Ue[w.value.childrenField].length>0&&g.value.setCheckboxRow(Ue[w.value.childrenField],!1)),Ue[w.value.childrenField]&&Ue[w.value.childrenField].length>0&&Ce(Ue[w.value.childrenField])}),Ke};g.value.setCheckboxRow(Ce(d.value),!0)},Se=async()=>{try{if(!r.widget.props.apiSet.apiurl)return;p.value=!0,await r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:ve,httpRes:Ce})=>{p.value=!1,h.value=ve[i.value.count],d.value=ve[i.value.rows],s.nextTick(()=>{r.designer.eventHandle({eventType:"onDataLoad",widget:r.widget})})},paramCb:ve=>(ve[i.value.page]=A.pageIndex,ve[i.value.limit]=A.pageSize,c.value.forEach(Ce=>{ve[Ce.props.zdname]=Ce.props.value}),ve)})}catch{p.value=!1}},We=()=>{r.widget.widgetList.forEach(ve=>{switch(ve.compType){case 0:a.value.push(ve);break;case 1:c.value.push(ve);break;case 2:f.value.push(ve);break}}),A.pageSize=i.value.pageDefault,l.value=r.designer.$utils.clone(c.value,!0),f.value.forEach(ve=>{ve.props.zdname&&(u.value[ve.props.zdname]=ve.props.value)}),i.value.initLoadData&&Se()};return s.watch(()=>x.value,ve=>{d.value=Z(),o("rowsChange",d.value)},{deep:!0}),s.watch(()=>r.widget.props.value,ve=>{d.value=ve},{deep:!0}),We(),e({chosen:W,getRows:Z,setRows:ce,setTotal:Le,refresh:ze,getSearchParams:ne,allTreeChosen:ie,setRowsCheckedByIds:he,addRow:ee,addRowByDefault:de,removeRow:Ae,setAllTreeExpand:se}),(ve,Ce)=>{const He=s.resolveComponent("common-label-container"),Ke=s.resolveComponent("ArrowDownBold"),Ue=s.resolveComponent("el-icon"),Ie=s.resolveComponent("ArrowUpBold"),lt=s.resolveComponent("el-button"),Re=s.resolveComponent("el-button-group"),mt=s.resolveComponent("vxe-table-column"),Ft=s.resolveComponent("vxe-column"),Vt=s.resolveComponent("vxe-table"),kt=s.resolveComponent("el-pagination");return s.openBlock(),s.createElementBlock("div",{class:"flex flex-col",style:s.normalizeStyle({width:`${i.value.width/24*100}%`,height:"100%"})},[c.value.length&&!i.value.isHideQuery||!i.value.isHideButton?(s.openBlock(),s.createElementBlock("div",Fme,[c.value.length&&!i.value.isHideQuery?(s.openBlock(),s.createElementBlock("div",jme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(_e,qe)=>s.withDirectives((s.openBlock(),s.createBlock(He,{key:_e.id,style:s.normalizeStyle({width:`${_e.props.width/24*100}%`}),class:"!my-1",label:_e.props.label,align:"right"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer},null,8,["widget","designer"]))]),_:2},1032,["style","label"])),[[s.vShow,!_e.props.hide&&(b.value||I(qe))]])),128))])):s.createCommentVNode("",!0),i.value.isHideButton?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$me,[s.createElementVNode("div",zme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N(!1),(_e,qe)=>(s.openBlock(),s.createElementBlock("div",{key:qe,class:"flex-1 flex justify-center items-center mx-1"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer,onClick:vt=>Ze(_e)},null,8,["widget","designer","onClick"]))]))),128))]),s.createElementVNode("div",Hme,[k()>48?(s.openBlock(),s.createBlock(lt,{key:0,link:"",size:"small",type:"primary",class:"mr-2",onClick:Ce[0]||(Ce[0]=_e=>b.value=!b.value)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(b.value?"收起":"展开")+" ",1),b.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ue,{key:0},{default:s.withCtx(()=>[s.createVNode(Ke)]),_:1})),b.value?(s.openBlock(),s.createBlock(Ue,{key:1},{default:s.withCtx(()=>[s.createVNode(Ie)]),_:1})):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0),s.createVNode(Re,null,{default:s.withCtx(()=>[i.value.isHideQueryBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(lt,{key:0,icon:"Search",onClick:Se},{default:s.withCtx(()=>Ce[3]||(Ce[3]=[s.createTextVNode("查询")])),_:1})),i.value.isHideResetBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(lt,{key:1,icon:"Refresh",onClick:rt},{default:s.withCtx(()=>Ce[4]||(Ce[4]=[s.createTextVNode("重置")])),_:1}))]),_:1})])]))])):s.createCommentVNode("",!0),s.createElementVNode("div",Wme,[s.createElementVNode("div",Ume,[s.createVNode(Vt,{ref_key:"mainTable",ref:g,data:d.value,height:i.value.isNotAuto?null:"auto",border:i.value.border,"span-method":i.value.mergeRowKey?V:null,"row-config":{isCurrent:!i.value.isHideChoose,isHover:!0,useKey:i.value.treeMode},"empty-text":i.value.emptyText,stripe:!i.value.treeMode&&i.value.isStripe,"scroll-y":{enabled:!0},"column-config":{resizable:!0},"show-overflow":i.value.treeMode?!0:i.value.showOverFlow,loading:p.value,"radio-config":i.value.singleselect?C.value:{},"checkbox-config":i.value.singleselect?{}:T.value,align:i.value.align,"tree-config":i.value.treeMode?w.value:null,class:"w-full",size:i.value.size,"cell-style":j,"row-style":B,"show-header":!i.value.isHideHeader,"header-row-class-name":nt,"cell-class-name":L,"row-class-name":H},{default:s.withCtx(()=>[i.value.singleselect&&!i.value.isHideChoose?(s.openBlock(),s.createBlock(mt,{key:0,width:"50",type:"radio",align:"center"})):s.createCommentVNode("",!0),!i.value.singleselect&&!i.value.isHideChoose?(s.openBlock(),s.createBlock(mt,{key:1,width:"50",type:"checkbox",align:"center"})):s.createCommentVNode("",!0),i.value.isHideIndex?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ft,{key:2,type:"seq",width:"50",title:"序号"},{default:s.withCtx(({row:_e,$rowIndex:qe})=>[s.createElementVNode("span",null,s.toDisplayString(qe+1+(A.pageIndex-1)*A.pageSize),1)]),_:1})),i.value.headerTree&&i.value.headerTree.length?(s.openBlock(),s.createBlock(Bme,{key:3,headerTree:i.value.headerTree,designer:s.unref(r).designer},null,8,["headerTree","designer"])):s.createCommentVNode("",!0),!i.value.headerTree||!i.value.headerTree.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:4},s.renderList(f.value,(_e,qe)=>(s.openBlock(),s.createBlock(Ft,{key:qe,field:_e.props.zdname,"tree-node":qe===0,title:_e.props.label,width:_e.props.tableItemWidth},{header:s.withCtx(({column:vt})=>[s.createElementVNode("span",{class:s.normalizeClass({required:_e.props.required})},s.toDisplayString(vt.title),3)]),default:s.withCtx(({row:vt})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer,tableItemData:vt,modelValue:vt[_e.props.zdname],"onUpdate:modelValue":ft=>vt[_e.props.zdname]=ft},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","tree-node","title","width"]))),128)):s.createCommentVNode("",!0),N(!0).length&&!i.value.hideHandleBtn?(s.openBlock(),s.createBlock(Ft,{key:5,fixed:"right",title:"操作栏",align:"center",width:i.value.oprateWidth||P.value},{default:s.withCtx(({row:_e})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N(!0),(qe,vt)=>s.withDirectives((s.openBlock(),s.createBlock(lt,{link:"",type:F(qe,_e).type,class:"!mx-0",size:"small",disabled:F(qe,_e).disabled,key:vt,icon:qe.props.icon,onClick:s.withModifiers(ft=>Ze(qe,_e),["stop"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(qe.props.label),1)]),_:2},1032,["type","disabled","icon","onClick"])),[[s.vShow,!F(qe,_e).hide]])),128))]),_:1},8,["width"])):s.createCommentVNode("",!0)]),_:1},8,["data","height","border","span-method","row-config","empty-text","stripe","show-overflow","loading","radio-config","checkbox-config","align","tree-config","size","show-header"])]),i.value.hasPage?(s.openBlock(),s.createElementBlock("div",Gme,[s.createVNode(kt,{"current-page":A.pageIndex,"onUpdate:currentPage":Ce[1]||(Ce[1]=_e=>A.pageIndex=_e),"page-size":A.pageSize,"onUpdate:pageSize":Ce[2]||(Ce[2]=_e=>A.pageSize=_e),"page-sizes":[20,50,100,200,300,400],layout:"total, sizes, prev, pager, next, jumper",total:h.value,onSizeChange:Se,onCurrentChange:Se},null,8,["current-page","page-size","total"])])):s.createCommentVNode("",!0)])],4)}}}),[["__scopeId","data-v-50b1bc9c"]]);/**!
|
14
|
+
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"查找"},{label:"suc",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.success( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息成功"},{label:"war",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.warning( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息警告"},{label:"err",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"app.\\$message.error( $1 )",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"消息报错"}]}}}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyD,function(){l.trigger("keyboard","editor.action.deleteLines",null)}),l.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyMod.Shift|monaco.KeyCode.KeyF,function(){l.getAction("editor.action.formatDocument").run()})):console.error("编辑器容器元素不存在")})}),s.onUnmounted(()=>{l.dispose()});const u=()=>{console.log(l.getValue())},c=h=>{l.setValue(h)},f=()=>{l.trigger("keyboard","editor.action.formatDocument",null)},d=h=>{const g=l.getSelection(),b=l.getPosition();let x;g.isEmpty()?x=new monaco.Range(b.lineNumber,b.column,b.lineNumber,b.column):x=g,l.executeEdits("",[{range:x,text:h,forceMoveMarkers:!0}])},p=h=>{h&&h.type&&(h.type=="api"&&d(h.row.example),h.type=="id"&&d(h.row.id))};return e({getValue:u,setValue:c,setPositionValue:d,formatCode:f}),(h,g)=>{const b=s.resolveComponent("common-sidetree"),x=s.resolveDirective("loading");return s.withDirectives((s.openBlock(),s.createElementBlock("div",Nme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Mme,[s.createVNode(b,{designer:t.designer,canAddApi:!0,onAddApi:p},null,8,["designer"])])),s.createElementVNode("div",Pme,[r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Ime,[t.isAsync?(s.openBlock(),s.createElementBlock("span",kme,"async ")):s.createCommentVNode("",!0),g[0]||(g[0]=s.createElementVNode("span",{class:"text-[#569cd6]"},"function",-1)),g[1]||(g[1]=s.createElementVNode("span",{class:"text-[#ffd700]"},"( ",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.params,(w,C)=>(s.openBlock(),s.createElementBlock("span",Vme,s.toDisplayString(w)+" "+s.toDisplayString(C==r.params.length-1?"":" , "),1))),256)),g[2]||(g[2]=s.createElementVNode("span",{class:"text-[#ffd700]"}," ) {",-1))])),s.createElementVNode("div",{class:"flex-1 h-full",ref_key:"container",ref:i,style:s.normalizeStyle({width:r.width,height:r.height})},null,4),r.pure?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Rme," } "))])])),[[x,a.value]])}}},Lme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-codeEditor"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(u)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(f,{props:s.unref(i),class:"min-h-80"},{default:s.withCtx(()=>[s.createVNode(fI,{designer:t.designer,pure:!0,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),language:s.unref(i).language},null,8,["designer","modelValue","language"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Pl={homepage:{isContainer:!0,displayName:"页面",widgetList:[],type:"homepage",id:"homepage",chosenId:"homepage",props:{label:"",width:24,remark:"",hide:!1,onCreated:null,onMounted:null,height:null,style:{}}},form:{isContainer:!0,displayName:"表单",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,widgetList:[],props:{hasLabel:!1,label:"",width:24,remark:"",hasFooter:!0,hasSubmitButton:!0,hasResetButton:!0,buttonAlign:"right",submitButtonText:"提交",hasFooterBg:!0,hasBorder:!0,list:[],hide:!1,style:{},formType:"Create",apiSetCreate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetUpdate:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},apiSetDetail:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onButtonClick:null}},div:{isContainer:!0,displayName:"工作区容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",width:24,flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,onCreated:null,onMounted:null}},card:{isContainer:!0,displayName:"卡片容器",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{hasLabel:!1,remark:"",value:"",width:24,title:"卡片标题",list:[],flex:!0,flexWrap:!0,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",hide:!1,hasSplitLine:!0,onCreated:null,onMounted:null,onButtonClick:null}},modal:{isContainer:!0,displayName:"弹窗",isForm:!1,widgetList:[],canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!1,props:{hasLabel:!1,title:"弹窗",show:!1,width:24,modalWidth:"80%",modalHeight:"80%",hideConfirm:!1,hasFooter:!0,list:[],height:null,onCreated:null,onMounted:null,onConfirm:null,onButtonClick:null}},tabs:{isContainer:!0,displayName:"标签页",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{hasLabel:!1,label:"标签页",width:24,type:"border-card",remark:"",activeName:null,loadType:"loadOnce",tabs:[{label:"标签页1",value:"tab1",widgetList:[]},{label:"标签页2",value:"tab2",widgetList:[]},{label:"标签页3",value:"tab3",widgetList:[]}],onCreated:null,onMounted:null,onChange:null}},input:{isContainer:!1,displayName:"输入框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,placeholder:"请输入",prependText:"",appendText:"",labelPosition:"left",value:null,zdname:null,label:"输入框",labelAlign:"right",labelWidth:"120px",width:24,type:"text",rows:3,isTrim:!1,maxlength:null,showLimit:!1,onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},select:{isContainer:!1,displayName:"下拉框",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",label:"下拉框",required:!1,disabled:!1,hide:!1,labelPosition:"left",placeholder:"请选择",remark:"",value:null,zdname:null,isDetail:!1,labelAlign:"right",labelWidth:"120px",clearable:!0,width:24,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},selects:{isContainer:!1,displayName:"下拉多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",value:[],isDetail:!1,multipleLimit:null,maxCollapseTags:null,collapseTags:!1,zdname:null,label:"下拉多选框",labelAlign:"right",clearable:!1,labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},radio:{isContainer:!1,displayName:"单选框",isForm:!0,complete:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,props:{hasLabel:!0,required:!1,disabled:!1,size:"default",hide:!1,remark:"",labelPosition:"left",isButton:!1,isDetail:!1,isBlock:!1,value:null,zdname:null,label:"单选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},checkbox:{isContainer:!1,displayName:"多选框",isForm:!0,canAddDataTableQuery:!0,complete:!0,canAddDataTableList:!0,props:{hasLabel:!0,size:"default",required:!1,disabled:!1,hide:!1,remark:"",isDetail:!1,labelPosition:"left",isButton:!1,isBlock:!1,value:[],zdname:null,label:"多选框",labelAlign:"right",labelWidth:"120px",width:24,apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",labelField:"",valueField:"",beforeSend:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null,onChange:null}},date:{isContainer:!1,displayName:"日期",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,remark:"",hide:!1,labelPosition:"left",placeholder:"请选择",isDetail:!1,value:null,type:"date",format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",defaultNow:!1,zdname:null,label:"日期",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},progress:{isContainer:!1,displayName:"进度条",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",color:"#67C23A",strokeWidth:6,textInside:!1,hasStriped:!0,hasStripedFlow:!0,hide:!1,circleWidth:126,labelPosition:"left",value:null,zdname:null,label:"进度条",labelAlign:"right",labelWidth:"120px",width:24,type:"line",onCreated:null,onMounted:null,format:null}},switch:{isContainer:!1,displayName:"开关",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,isDetail:!1,hasLabel:!0,width:24,disabled:!1,hide:!1,labelPosition:"left",remark:"",value:!1,zdname:null,label:"开关",labelAlign:"right",labelWidth:"120px",activeText:"开",inactiveText:"关",onCreated:null,onMounted:null,onChange:null}},time:{isContainer:!1,displayName:"时间",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,hide:!1,remark:"",labelPosition:"left",isDetail:!1,placeholder:"请选择",value:null,format:"HH:mm:ss",valueFormat:"HH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",zdname:null,label:"时间",type:"time",labelAlign:"right",labelWidth:"120px",width:24,onCreated:null,onMounted:null,onChange:null,onFocus:null,onBlur:null}},rate:{isContainer:!1,displayName:"评分",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{size:"default",required:!1,hasLabel:!0,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:5,zdname:null,remark:"",label:"评分",labelAlign:"right",labelWidth:"120px",width:24,max:5,allowHalf:!1,showScore:!1,onCreated:null,onMounted:null,onChange:null}},file:{isContainer:!1,displayName:"文件上传",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{size:"default",hasLabel:!0,required:!1,disabled:!1,isDetail:!1,hideFileName:!1,hidePreview:!1,hide:!1,placeholder:"请上传文件",labelPosition:"left",remark:"",value:null,zdname:null,label:"文件上传",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileIdField:"id",fileNameField:"name",fileUrlField:"url",fileSaveType:"name,id",fileDownType:"blob",fileGetUrl:"",fileDownUrl:"",accept:"",limit:100,fileSize:10,readonly:!1,multiple:!0,hideTable:!1,apiSet:{method:"post",apiurl:"",params:[],contentType:"file",dataFormat:"",labelField:"",valueField:"",beforeSend:""},onCreated:null,onMounted:null,onNameFormat:null}},location:{isContainer:!1,displayName:"位置选择器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{size:"medium",required:!1,remark:"",hasLabel:!0,readonly:!1,disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:null,zdname:null,label:"",labelAlign:"right",labelWidth:"120px",width:24,city:"北京市",onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null,onHandle:null}},service:{isContainer:!1,displayName:"服务",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],complete:!0,props:{label:"",remark:"",hasLabel:!1,width:24,serviceJson:"",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null}},iframe:{isContainer:!1,displayName:"iframe",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,widgetList:[],props:{label:"iframe",hasLabel:!1,width:24,remark:"",height:"50vh",src:"",onCreated:null,onMounted:null}},editor:{isContainer:!1,displayName:"富文本编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,required:!1,readonly:!1,isDetail:!1,remark:"",hide:!1,labelPosition:"left",value:null,zdname:null,label:"富文本编辑器",labelAlign:"right",labelWidth:"120px",width:24,fileField:"file",fileUrlField:"",apiSet:{method:"post",apiurl:"",params:[],contentType:"FormData",dataFormat:"",beforeSend:""},onCreated:null,onMounted:null,onChange:null}},codeEditor:{isContainer:!1,displayName:"代码编辑器",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{height:"200px",value:null,hasLabel:!0,language:"javascript",remark:"",isDetail:!1,required:!1,readonly:!1,hide:!1,labelPosition:"left",zdname:null,label:"代码编辑器",labelAlign:"right",labelWidth:"120px",width:24,style:{height:"400px"},onCreated:null,onMounted:null}},button:{isContainer:!1,displayName:"按钮",isForm:!0,canAddDataTableQuery:!1,complete:!0,canAddDataTableList:!0,props:{size:"default",type:"primary",isPlain:!1,isText:!1,isTextBgColor:!1,isLink:!1,isRound:!1,isCircle:!1,isLoading:!1,disabled:!1,hide:!1,hasLabel:!1,remark:"",label:"按钮",icon:"",align:"left",onCreated:null,onMounted:null,onFormat:null,onClick:null}},divider:{isContainer:!1,displayName:"分割线",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,width:24,onCreated:null,onMounted:null}},title:{isContainer:!1,displayName:"标题",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!1,value:"标题",remark:"",width:24,onCreated:null,onMounted:null}},html:{isContainer:!1,displayName:"html",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,props:{hasLabel:!1,value:null,remark:"",width:24,onCreated:null,onMounted:null}},alert:{isContainer:!1,displayName:"警告",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{title:"提示",hasLabel:!1,type:"info",description:"",closable:!1,center:!1,closeText:"",showIcon:!0,width:24,hide:!1,effect:"light",onCreated:null,onMounted:null}},image:{isContainer:!1,displayName:"图片",isForm:!1,canAddDataTableQuery:!1,canAddDataTableList:!0,complete:!0,props:{hasLabel:!1,value:"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",hide:!1,fit:null,alt:"",canPreview:!1,imgWidth:"100px",imgHeight:"100px",onCreated:null,onMounted:null,onFormat:null}},edittable:{isContainer:!1,displayName:"可编辑表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,props:{zdname:null,hasLabel:!1,label:"",labelAlign:"right",labelWidth:"120px",isDetail:!1,width:24,remark:"",height:"80vh",required:!1,hide:!1,value:[],apiSet:{method:"get",apiurl:"",params:[],contentType:"JSON",dataFormat:"",beforeSend:""},tableConfig:{baseInfo:{rows:"datas",count:"totalCount",page:"pageindex",limit:"pagesize",count:"totalCount",pageDefault:20,pageDefaultIndex:1,oprateWidth:null,singleselect:!1,align:"center",hasPage:!0,showOverFlow:!0,initLoadData:!0,hideHandleBtn:!1,isStripe:!0,normalTable:!1,hideEditButton:!1,formTableMode:"table",treeMode:!1,treeTransform:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",treeLazySign:"hasChild",treeExpandAll:!1,treeAccordion:!1,isLazy:!1,isLine:!1,isHideChoose:!1},buttonList:[],queryList:[],tableList:[]},onCreated:null,onMounted:null,onDataLoad:null,onRowsChange:null,onChildLoad:null}},datatable:{isContainer:!1,displayName:"数据表格",isForm:!0,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,label:"数据表格",isDetail:!1,width:24,hide:!1,zdname:null,value:null,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},emptyText:"没有更多数据了!",size:"small",height:"80vh",oprateWidth:null,rows:"ListOrders",count:"OrderCount",page:"pageIndex",limit:"pageSize",pageDefault:20,align:"left",singleselect:!1,border:"default",hasPage:!0,initLoadData:!0,showOverFlow:!0,required:!0,isStripe:!0,isHideChoose:!1,isHideQuery:!1,isHideButton:!1,isHideIndex:!1,isHideHeader:!1,isHideQueryBtn:!1,isHideResetBtn:!1,isCurrendClick:!0,isNotAuto:!1,treeMode:!1,treeRowField:"id",treeParentField:"pid",treeChildrenField:"children",mergeRowKey:null,treeTransform:!1,treeExpandAll:!1,treeAccordion:!1,isLine:!1,cellStyle:null,rowStyle:null,cellClassName:null,rowClassName:null,onCreated:null,onMounted:null,onDataLoad:null,headerTree:[]}},transfer:{isContainer:!1,displayName:"穿梭框",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{hasLabel:!0,size:"medium",required:!1,readonly:!1,remark:"",disabled:!1,isDetail:!1,hide:!1,labelPosition:"left",value:[],zdname:null,label:"穿梭框",labelAlign:"right",labelWidth:"120px",width:24,propsKey:"value",propsLabel:"label",leftTitle:"备选项",rightTitle:"已选项",apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},list:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}],onCreated:null,onMounted:null}},checkCode:{isContainer:!1,displayName:"手机验证码",isForm:!0,canAddDataTableQuery:!1,canAddDataTableList:!1,complete:!0,props:{size:"default",remark:"",hasLabel:!0,required:!1,isDetail:!1,hide:!1,placeholder:"请输入手机验证码",labelPosition:"left",value:null,zdname:null,label:"手机验证码",labelAlign:"right",labelWidth:"120px",width:24,type:"text",timeSec:60,apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onInput:null,onChange:null,onFocus:null,onBlur:null}},datatableitem:{isContainer:!1,displayName:"数据表格表头",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!1,complete:!0,props:{hasLabel:!1,zdname:null,label:"",onFormat:null,hide:!1}},echarts:{isContainer:!1,displayName:"图表",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{hasLabel:!0,remark:"",isDetail:!1,hide:!1,labelPosition:"left",label:"",labelAlign:"right",labelWidth:"0px",width:12,type:"普通柱状图",onCreated:null,onMounted:null,initOption:null,style:{height:"400px"}}},statistic:{isContainer:!1,displayName:"统计",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:8,title:"统计标题",value:100,unit:"%",color:"rgba(123, 104, 238, 1)",fontColor:"#ffffff",split:3,data:[{title:"同比",value:100,key:"a",unit:"%"},{title:"环比",value:100,key:"b",unit:"元"},{title:"周同比",value:100,key:"c",unit:"美元"}],onCreated:null,onMounted:null}},text:{isContainer:!1,displayName:"文字",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"文字内容",size:"default",type:"primary",truncated:!1,lineClamp:null,onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},tag:{isContainer:!1,displayName:"标签",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!0,addToPanel:!0,complete:!0,props:{isDetail:!1,hide:!1,value:"标签",size:"default",type:"primary",closable:!1,hit:!1,round:!1,color:null,effect:"light",onCreated:null,onMounted:null,onFormat:null,onTypeFormat:null}},steps:{isContainer:!1,displayName:"步骤条",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,value:1,space:null,direction:"horizontal",alignCenter:!0,simple:!1,space:null,data:[{title:"数据填写",description:"步骤条描述"},{title:"初审",description:"步骤条描述"},{title:"复审",description:"步骤条描述"},{title:"终审",description:"步骤条描述"},{title:"完成",description:"步骤条描述"}],onCreated:null,onMounted:null,onStepClick:null}},timeline:{isContainer:!1,displayName:"时间线",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,hideTimestamp:!1,center:!1,hollow:!1,placement:"top",size:"normal",data:[{time:"2024-04-05",title:"数据填写",description:"时间线详细内容描述"},{time:"2024-04-06",title:"初审",description:"时间线详细内容描述"},{time:"2024-04-07",title:"复审",description:"时间线详细内容描述"},{time:"2024-04-08",title:"终审",description:"时间线详细内容描述"},{time:"2024-04-09",title:"完成",description:"时间线详细内容描述"}],onCreated:null,onMounted:null}},flow:{isContainer:!1,displayName:"流程设计器",isForm:!1,widgetList:[],canAddDataTableQuery:!1,canAddDataTableList:!1,addToPanel:!0,complete:!0,props:{remark:"",isDetail:!1,hide:!1,width:24,onCreated:null,onMounted:null,onFlowClick:null,style:{height:"800px"}}},cascader:{isContainer:!1,displayName:"级联选择器",isForm:!0,canAddDataTableQuery:!0,canAddDataTableList:!0,complete:!0,props:{hasLabel:!0,size:"default",remark:"",required:!1,readonly:!1,disabled:!1,isDetail:!1,hide:!1,clearable:!0,placeholder:"请输入",labelPosition:"left",value:null,zdname:null,propsKey:"value",propsLabel:"label",propsChildren:"children",label:"级联选择器",labelAlign:"right",labelWidth:"120px",showAllLevels:!0,postLastLevel:!1,width:24,options:[],apiSet:{method:"post",apiurl:"",params:[],headers:[],contentType:"JSON",paramsFormat:"",headersFormat:"",successFormat:"",errorFormat:""},onCreated:null,onMounted:null,onChange:null}}},Bme=Object.assign({name:"headerItem"},{__name:"headerItem",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},headerTree:{type:Array,default:[]}},setup(t){let e=t;return(n,r)=>{const o=s.resolveComponent("headerItem",!0),i=s.resolveComponent("vxe-colgroup"),a=s.resolveComponent("vxe-column");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(e).headerTree,(l,u)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:u},[l.children&&l.children.length?(s.openBlock(),s.createBlock(i,{key:0,title:l.label},{default:s.withCtx(()=>[s.createVNode(o,{headerTree:l.children,designer:s.unref(e).designer},null,8,["headerTree","designer"])]),_:2},1032,["title"])):(s.openBlock(),s.createBlock(a,{key:1,field:s.unref(e).designer.getWidgetById(l.id).props.zdname,title:s.unref(e).designer.getWidgetById(l.id).props.label},{default:s.withCtx(({row:c})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+s.unref(e).designer.getWidgetById(l.id).type),{ref_for:!0,ref:l.id,widget:s.unref(e).designer.getWidgetById(l.id),designer:s.unref(e).designer,tableItemData:c,modelValue:c[s.unref(e).designer.getWidgetById(l.id).props.zdname],"onUpdate:modelValue":f=>c[s.unref(e).designer.getWidgetById(l.id).props.zdname]=f},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","title"]))],64))),128)}}}),Fme={key:0,class:"flex flex-col bg-white border overflow-hidden mb-1 dark:border-slate-800 dark:bg-black"},jme={key:0,class:"w-full flex flex-wrap py-1 px-2"},$me={key:1,class:"flex bg-gray-50 justify-between px-2 py-1 border-t dark:bg-slate-800 dark:border-gray-800"},zme={class:"flex"},Hme={class:"flex"},Wme={class:"flex-1 bg-white border border-t-0 overflow-hidden flex flex-col dark:bg-slate-800 dark:border-gray-800"},Ume={class:"flex-1 overflow-hidden"},Gme={key:0,class:"bg-gray-100 py-1 px-2 dark:bg-slate-800 dark:border-gray-800"},Yme=xa(Object.assign({name:"show"},{__name:"show",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},emits:["rowsChange"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n,i=s.computed(()=>r.widget.props),a=s.ref([]),l=s.ref([]),u=s.ref({}),c=s.ref([]),f=s.ref([]),d=s.ref([]),p=s.ref(!1),h=s.ref(0),g=s.ref(),b=s.ref(!1),x=s.ref(0),w=s.ref({transform:i.value.treeTransform,rowField:i.value.treeRowField,parentField:i.value.treeParentField,childrenField:i.value.treeChildrenField,expandAll:i.value.treeExpandAll,accordion:i.value.accordion,showLine:i.value.isLine,iconOpen:"vxe-icon-square-minus",iconClose:"vxe-icon-square-plus",checkboxConfig:{checkField:"checked",halfField:"halfChecked",disabledField:"_checkbox_disabled"}}),C=s.ref({trigger:i.value.isHideChoose?void 0:"row"}),T=s.ref({trigger:i.value.isHideChoose?void 0:"row",highlight:!0,range:i.value.treeMode?void 0:!0}),A=s.reactive({pageSize:20,pageIndex:1}),N=ve=>{let Ce=[];return a.value.forEach(He=>{He.props.isSide===ve&&!He.props.hide&&Ce.push(He)}),Ce},P=s.computed(()=>{function ve(Ke){return/[\u4e00-\u9fff]/.test(Ke)}let Ce=0;return N(!0).forEach(Ke=>{let Ue=Ke.props.label;for(let Ie of Ue)ve(Ie)?Ce+=14:Ce+=8;Ce+=24,Ke.props.icon&&(Ce+=6)}),Ce<80&&(Ce=80),Ce}),I=ve=>{let Ce=0;return c.value.forEach((He,Ke)=>{!He.props.hide&&Ke<=ve&&(Ce+=He.props.width)}),!(Ce>48)},V=({row:ve,_rowIndex:Ce,column:He,visibleData:Ke})=>{const Ue=["ProtocolName","ProtocolFormula","ProtocolStandard","outNum","result","remark"],Ie=ve[He.field];if(Ie&&Ue.includes(He.field)){const lt=Ke[Ce-1];let Re=Ke[Ce+1];if(lt&<[He.field]===Ie)return{rowspan:0,colspan:0};{let mt=1;for(;Re&&Re[He.field]===Ie;)Re=Ke[++mt+Ce];if(mt>1)return{rowspan:mt,colspan:1}}}},k=()=>{let ve=0;return c.value.forEach(Ce=>{Ce.props.hide||(ve+=Ce.props.width)}),ve},F=(ve,Ce)=>{let He=ve.props.onBtnFormat;if(He){let Ue=new Function("widget","tableItemData","app",He)(ve,Ce,r.designer);return Ue&&r.designer.$utils.isPlainObject(Ue)?Ue:{disabled:ve.props.disabled,type:ve.props.type,hide:ve.props.hide}}else return{disabled:ve.props.disabled,type:ve.props.type,hide:ve.props.hide}},j=({row:ve,column:Ce})=>{let He=i.value.cellStyle;if(He)return new Function("widget","row","column","app",He)(r.widget,ve,Ce,r.designer)},L=({row:ve,column:Ce})=>{let He=i.value.cellClassName;if(He)return new Function("widget","row","column","app",He)(r.widget,ve,Ce,r.designer)},B=({row:ve})=>{let Ce=i.value.rowStyle;if(Ce)return new Function("widget","row","app",Ce)(r.widget,ve,r.designer)},H=({row:ve})=>{let Ce=i.value.rowClassName;if(Ce)return new Function("widget","row","app",Ce)(r.widget,ve,r.designer)},W=()=>i.value.singleselect?g.value.getRadioRecord():g.value.getCheckboxRecords(!0),J=()=>g.value.getCheckboxIndeterminateRecords(!0),ie=()=>W().concat(J()),Z=()=>g.value.getTableData().fullData,ee=ve=>{g.value.insertAt(ve,-1),x.value++},de=()=>{g.value.insertAt(u.value,-1),x.value++},ce=ve=>{console.log(ve),g.value.loadData(ve),x.value++},Ae=ve=>{g.value.remove(ve),x.value++},Le=ve=>{h.value=ve},Ze=(ve,Ce)=>{r.designer.eventHandle({eventType:"onItemClick",widget:ve,value:Ce||W()})},nt=ve=>{},rt=()=>{let ve=r.designer.$utils.clone(l.value,!0);c.value.forEach(Ce=>{ve.forEach(He=>{He.props.zdname==Ce.props.zdname&&(Ce.props.value=He.props.value)})}),Se()},ze=()=>{A.pageIndex=1,Se()},ne=()=>{let ve={};return c.value.forEach(Ce=>{ve[Ce.props.zdname]=Ce.props.value}),ve[i.value.page]=A.pageIndex,ve[i.value.limit]=A.pageSize,ve},se=ve=>{g.value.setAllTreeExpand(ve)},he=(ve=[])=>{var Ce=He=>{var Ke=[];return He.forEach(Ue=>{g.value.setCheckboxRow(Ue,!1),ve.includes(Ue[w.value.rowField])&&(g.value.setCheckboxRow(Ue,!0),Ue[w.value.childrenField]&&Ue[w.value.childrenField].length>0&&g.value.setCheckboxRow(Ue[w.value.childrenField],!1)),Ue[w.value.childrenField]&&Ue[w.value.childrenField].length>0&&Ce(Ue[w.value.childrenField])}),Ke};g.value.setCheckboxRow(Ce(d.value),!0)},Se=async()=>{try{if(!r.widget.props.apiSet.apiurl)return;p.value=!0,await r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:ve,httpRes:Ce})=>{p.value=!1,h.value=ve[i.value.count],d.value=ve[i.value.rows],s.nextTick(()=>{r.designer.eventHandle({eventType:"onDataLoad",widget:r.widget})})},paramCb:ve=>(ve[i.value.page]=A.pageIndex,ve[i.value.limit]=A.pageSize,c.value.forEach(Ce=>{ve[Ce.props.zdname]=Ce.props.value}),ve)})}catch{p.value=!1}},We=()=>{r.widget.widgetList.forEach(ve=>{switch(ve.compType){case 0:a.value.push(ve);break;case 1:c.value.push(ve);break;case 2:f.value.push(ve);break}}),A.pageSize=i.value.pageDefault,l.value=r.designer.$utils.clone(c.value,!0),f.value.forEach(ve=>{ve.props.zdname&&(u.value[ve.props.zdname]=ve.props.value)}),i.value.initLoadData&&Se()};return s.watch(()=>x.value,ve=>{d.value=Z(),o("rowsChange",d.value)},{deep:!0}),s.watch(()=>r.widget.props.value,ve=>{d.value=ve},{deep:!0}),We(),e({chosen:W,getRows:Z,setRows:ce,setTotal:Le,refresh:ze,getSearchParams:ne,allTreeChosen:ie,setRowsCheckedByIds:he,addRow:ee,addRowByDefault:de,removeRow:Ae,setAllTreeExpand:se}),(ve,Ce)=>{const He=s.resolveComponent("common-label-container"),Ke=s.resolveComponent("ArrowDownBold"),Ue=s.resolveComponent("el-icon"),Ie=s.resolveComponent("ArrowUpBold"),lt=s.resolveComponent("el-button"),Re=s.resolveComponent("el-button-group"),mt=s.resolveComponent("vxe-table-column"),Ft=s.resolveComponent("vxe-column"),Vt=s.resolveComponent("vxe-table"),kt=s.resolveComponent("el-pagination");return s.openBlock(),s.createElementBlock("div",{class:"flex flex-col",style:s.normalizeStyle({width:`${i.value.width/24*100}%`,height:"100%"})},[c.value.length&&!i.value.isHideQuery||!i.value.isHideButton?(s.openBlock(),s.createElementBlock("div",Fme,[c.value.length&&!i.value.isHideQuery?(s.openBlock(),s.createElementBlock("div",jme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.value,(_e,qe)=>s.withDirectives((s.openBlock(),s.createBlock(He,{key:_e.id,style:s.normalizeStyle({width:`${_e.props.width/24*100}%`}),class:"!my-1",label:_e.props.label,align:"right"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer},null,8,["widget","designer"]))]),_:2},1032,["style","label"])),[[s.vShow,!_e.props.hide&&(b.value||I(qe))]])),128))])):s.createCommentVNode("",!0),i.value.isHideButton?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",$me,[s.createElementVNode("div",zme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N(!1),(_e,qe)=>(s.openBlock(),s.createElementBlock("div",{key:qe,class:"flex-1 flex justify-center items-center mx-1"},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer,onClick:vt=>Ze(_e)},null,8,["widget","designer","onClick"]))]))),128))]),s.createElementVNode("div",Hme,[k()>48?(s.openBlock(),s.createBlock(lt,{key:0,link:"",size:"small",type:"primary",class:"mr-2",onClick:Ce[0]||(Ce[0]=_e=>b.value=!b.value)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(b.value?"收起":"展开")+" ",1),b.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ue,{key:0},{default:s.withCtx(()=>[s.createVNode(Ke)]),_:1})),b.value?(s.openBlock(),s.createBlock(Ue,{key:1},{default:s.withCtx(()=>[s.createVNode(Ie)]),_:1})):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0),s.createVNode(Re,null,{default:s.withCtx(()=>[i.value.isHideQueryBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(lt,{key:0,icon:"Search",onClick:Se},{default:s.withCtx(()=>Ce[3]||(Ce[3]=[s.createTextVNode("查询")])),_:1})),i.value.isHideResetBtn?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(lt,{key:1,icon:"Refresh",onClick:rt},{default:s.withCtx(()=>Ce[4]||(Ce[4]=[s.createTextVNode("重置")])),_:1}))]),_:1})])]))])):s.createCommentVNode("",!0),s.createElementVNode("div",Wme,[s.createElementVNode("div",Ume,[s.createVNode(Vt,{ref_key:"mainTable",ref:g,data:d.value,height:i.value.isNotAuto?null:"auto",border:i.value.border,"span-method":i.value.mergeRowKey?V:null,"row-config":{isCurrent:!i.value.isHideChoose,isHover:!0,useKey:i.value.treeMode},"empty-text":i.value.emptyText,stripe:!i.value.treeMode&&i.value.isStripe,"scroll-y":{enabled:!0},"column-config":{resizable:!0},"show-overflow":i.value.treeMode?!0:i.value.showOverFlow,loading:p.value,"radio-config":i.value.singleselect?C.value:{},"checkbox-config":i.value.singleselect?{}:T.value,align:i.value.align,"tree-config":i.value.treeMode?w.value:null,class:"w-full",size:i.value.size,"cell-style":j,"row-style":B,"show-header":!i.value.isHideHeader,"header-row-class-name":nt,"cell-class-name":L,"row-class-name":H},{default:s.withCtx(()=>[i.value.singleselect&&!i.value.isHideChoose?(s.openBlock(),s.createBlock(mt,{key:0,width:"50",type:"radio",align:"center"})):s.createCommentVNode("",!0),!i.value.singleselect&&!i.value.isHideChoose?(s.openBlock(),s.createBlock(mt,{key:1,width:"50",type:"checkbox",align:"center"})):s.createCommentVNode("",!0),i.value.isHideIndex?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ft,{key:2,type:"seq",width:"50",title:"序号"},{default:s.withCtx(({row:_e,$rowIndex:qe})=>[s.createElementVNode("span",null,s.toDisplayString(qe+1+(A.pageIndex-1)*A.pageSize),1)]),_:1})),i.value.headerTree&&i.value.headerTree.length?(s.openBlock(),s.createBlock(Bme,{key:3,headerTree:i.value.headerTree,designer:s.unref(r).designer},null,8,["headerTree","designer"])):s.createCommentVNode("",!0),!i.value.headerTree||!i.value.headerTree.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:4},s.renderList(f.value,(_e,qe)=>(s.openBlock(),s.createBlock(Ft,{key:qe,field:_e.props.zdname,"tree-node":i.value.treeMode?qe===0:!1,title:_e.props.label,width:_e.props.tableItemWidth},{header:s.withCtx(({column:vt})=>[s.createElementVNode("span",{class:s.normalizeClass({required:_e.props.required})},s.toDisplayString(vt.title),3)]),default:s.withCtx(({row:vt})=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+_e.type),{ref_for:!0,ref:_e.id,widget:_e,designer:s.unref(r).designer,tableItemData:vt,modelValue:vt[_e.props.zdname],"onUpdate:modelValue":ft=>vt[_e.props.zdname]=ft},null,8,["widget","designer","tableItemData","modelValue","onUpdate:modelValue"]))]),_:2},1032,["field","tree-node","title","width"]))),128)):s.createCommentVNode("",!0),N(!0).length&&!i.value.hideHandleBtn?(s.openBlock(),s.createBlock(Ft,{key:5,fixed:"right",title:"操作栏",align:"center",width:i.value.oprateWidth||P.value},{default:s.withCtx(({row:_e})=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N(!0),(qe,vt)=>s.withDirectives((s.openBlock(),s.createBlock(lt,{link:"",type:F(qe,_e).type,class:"!mx-0",size:"small",disabled:F(qe,_e).disabled,key:vt,icon:qe.props.icon,onClick:s.withModifiers(ft=>Ze(qe,_e),["stop"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(qe.props.label),1)]),_:2},1032,["type","disabled","icon","onClick"])),[[s.vShow,!F(qe,_e).hide]])),128))]),_:1},8,["width"])):s.createCommentVNode("",!0)]),_:1},8,["data","height","border","span-method","row-config","empty-text","stripe","show-overflow","loading","radio-config","checkbox-config","align","tree-config","size","show-header"])]),i.value.hasPage?(s.openBlock(),s.createElementBlock("div",Gme,[s.createVNode(kt,{"current-page":A.pageIndex,"onUpdate:currentPage":Ce[1]||(Ce[1]=_e=>A.pageIndex=_e),"page-size":A.pageSize,"onUpdate:pageSize":Ce[2]||(Ce[2]=_e=>A.pageSize=_e),"page-sizes":[20,50,100,200,300,400],layout:"total, sizes, prev, pager, next, jumper",total:h.value,onSizeChange:Se,onCurrentChange:Se},null,8,["current-page","page-size","total"])])):s.createCommentVNode("",!0)])],4)}}}),[["__scopeId","data-v-c16f03cb"]]);/**!
|
15
15
|
* Sortable 1.15.3
|
16
16
|
* @author RubaXa <trash@rubaxa.org>
|
17
17
|
* @author owenm <owen23355@gmail.com>
|