HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy547.js
!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var u=null!=arguments[n]?arguments[n]:{};n%2?e(Object(u),!0).forEach(function(e){r(t,e,u[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):e(Object(u)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(u,e))})}return t}function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,a,o,i=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,u=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw u}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy67.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./useMethod-legacy10.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./header-nav-tools.vue_vue_type_script_setup_true_lang-legacy.js?v=1777008528","./useMethod-legacy9.js?v=1777008528","./index-legacy118.js?v=1777008528","./form-item-legacy.js?v=1777008528"],function(e,a){"use strict";var o,l,s,f,v,p,g,h,y,m,b,D,w,S,O,I,T,_,C,k,E,x,P,N,U,K,j,M,A,R,L,V,H,B,F,z,q,W,$,X,G,Y,J,Q,Z,ee,te,ne,re,ue,ae,oe,ie,le,ce,se,de,fe,ve,pe,ge,he,ye,me,be,De,we,Se,Oe,Ie,Te,_e,Ce,ke,Ee,xe,Pe,Ne,Ue,Ke,je,Me,Ae,Re,Le,Ve,He,Be,Fe,ze,qe,We,$e,Xe;return{setters:[function(e){o=e.a0,l=e.aC,s=e.c,f=e.a8,v=e.Q,p=e.p,g=e.g,h=e.aN,y=e.r,m=e.H,b=e.cj,D=e.j,w=e.k,S=e.e,O=e.q,I=e.s,T=e.F,_=e.B,C=e.C,k=e.y,E=e.w,x=e.L,P=e.O,N=e.M,U=e.d,K=e.ck,j=e.n,M=e.N,A=e.Y,R=e.v,L=e.x,V=e.al,H=e.aj,B=e.X,F=e.bS,z=e.bB,q=e.ap,W=e.S,$=e.am,X=e.an,G=e.b4,Y=e.bC,J=e.i,Q=e.bA,Z=e.bz,ee=e.z,te=e.T,ne=e.ad,re=e.aH},function(e){ue=e.b,ae=e.v,oe=e.g,ie=e.d,le=e.i,ce=e.e,se=e.f,de=e.D,fe=e.h,ve=e.j,pe=e.k,ge=e.c,he=e.a,ye=e.l,me=e.m,be=e.n,De=e.o,we=e.p,Se=e.q,Oe=e.r,Ie=e.s,Te=e.t,_e=e.u,Ce=e.w,ke=e.x,Ee=e.y,xe=e.z,Pe=e.A,Ne=e.B,Ue=e.C,Ke=e.E,je=e.F,Me=e.G,Ae=e.H,Re=e.I,Le=e.J,Ve=e.K,He=e.L,Be=e.M},function(e){Fe=e.b,ze=e.cZ,qe=e.e,We=e._,$e=e.cR},function(e){Xe=e.g},null,null,null,null,null,null,null,null],execute:function(){var Ge=Symbol.for("DndContextType");function Ye(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Je="function"==typeof Symbol&&Symbol.observable||"@@observable",Qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Qe(),REPLACE:"@@redux/REPLACE"+Qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qe()}};function et(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ye(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ye(1));return n(et)(e,t)}if("function"!=typeof e)throw new Error(Ye(2));var u=e,a=t,o=[],i=o,l=!1;function c(){i===o&&(i=o.slice())}function s(){if(l)throw new Error(Ye(3));return a}function f(e){if("function"!=typeof e)throw new Error(Ye(4));if(l)throw new Error(Ye(5));var t=!0;return c(),i.push(e),function(){if(t){if(l)throw new Error(Ye(6));t=!1,c();var n=i.indexOf(e);i.splice(n,1),o=null}}}function v(e){if(!function(e){if("object"!==d(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ye(7));if(void 0===e.type)throw new Error(Ye(8));if(l)throw new Error(Ye(9));try{l=!0,a=u(a,e)}finally{l=!1}for(var t=o=i,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:Ze.INIT}),(r={dispatch:v,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ye(10));u=e,v({type:Ze.REPLACE})}})[Je]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!==d(e)||null===e)throw new Error(Ye(11));function n(){e.next&&e.next(s())}return n(),{unsubscribe:t(n)}}})[Je]=function(){return this},e},r}function tt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),u=2;u<n;u++)r[u-2]=arguments[u];if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(a=new Error(t.replace(/%s/g,function(){return r[o++]}))).name="Invariant Violation"}throw a.framesToPop=1,a}}function nt(e){return"object"===d(e)}var rt="dnd-core/INIT_COORDS",ut="dnd-core/BEGIN_DRAG",at="dnd-core/PUBLISH_DRAG_SOURCE",ot="dnd-core/HOVER",it="dnd-core/DROP",lt="dnd-core/END_DRAG";function ct(e,t){return{type:rt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var st={type:rt,payload:{clientOffset:null,sourceClientOffset:null}};function dt(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,u=void 0===r||r,a=n.clientOffset,o=n.getSourceClientOffset,i=e.getMonitor(),l=e.getRegistry();e.dispatch(ct(a)),function(e,t,n){tt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){tt(n.getSource(e),"Expected sourceIds to be registered.")})}(t,i,l);var c=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,i);if(null!=c){var s=null;if(a){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){tt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),s=o(c)}e.dispatch(ct(a,s));var d=l.getSource(c).beginDrag(i,c);if(null!=d){!function(e){tt(nt(e),"Item must be an object.")}(d),l.pinSource(c);var f=l.getSourceType(c);return{type:ut,payload:{itemType:f,item:d,sourceId:c,clientOffset:a||null,sourceClientOffset:s||null,isSourcePublic:!!u}}}}else e.dispatch(st)}}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ft(e,t,n[t])})}return e}function pt(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){tt(e.isDragging(),"Cannot call drop while not dragging."),tt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var u=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);u.forEach(function(u,a){var o=function(e,t,n,r){var u=n.getTarget(e),a=u?u.drop(r,e):void 0;(function(e){tt(void 0===e||nt(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(u,a,r,n),i={type:it,payload:{dropResult:vt({},t,o)}};e.dispatch(i)})}}function gt(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){tt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource());return{type:lt}}}function ht(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function yt(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){tt(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),u=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(var r=e.length-1;r>=0;r--){var u=e[r];ht(t.getTargetType(u),n)||e.splice(r,1)}}(r,a,u.getItemType()),function(e,t,n){tt(t.isDragging(),"Cannot call hover while not dragging."),tt(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var u=e[r];tt(e.lastIndexOf(u)===r,"Expected targetIds to be unique in the passed array."),tt(n.getTarget(u),"Expected targetIds to be registered.")}}(r,u,a),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,u,a),{type:ot,payload:{targetIds:r,clientOffset:n||null}}}}function mt(e){return function(){if(e.getMonitor().isDragging())return{type:at}}}var bt=function(){return c(function e(t,n){var r=this;i(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)},[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;var n=function(e){return{beginDrag:dt(e),publishDragSource:mt(e),hover:yt(e),drop:pt(e),endDrag:gt(e)}}(this);return Object.keys(n).reduce(function(r,u){var a,o=n[u];return r[u]=(a=o,function(){for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];var o=a.apply(e,r);void 0!==o&&t(o)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])}();function Dt(e,t){return{x:e.x-t.x,y:e.y-t.y}}var wt=[],St=[];wt.__IS_NONE__=!0,St.__IS_ALL__=!0;var Ot=function(){return c(function e(t,n){i(this,e),this.store=t,this.registry=n},[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).handlerIds;tt("function"==typeof e,"listener must be a function."),tt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var u=t.store.getState(),a=u.stateId;try{var o=a===r||a===r+1&&!function(e,t){return e!==wt&&(e===St||void 0===t||(n=e,t.filter(function(e){return n.indexOf(e)>-1})).length>0);var n}(u.dirtyHandlerIds,n);o||e()}finally{r=a}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;tt("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return tt(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return tt(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&(ht(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return tt(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!ht(n,r))return!1;var u=this.getTargetIds();if(!u.length)return!1;var a=u.indexOf(e);return t?a===u.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,u=e.initialClientOffset,a=e.initialSourceClientOffset,r&&u&&a?Dt((n=a,{x:(t=r).x+n.x,y:t.y+n.y}),u):null;var e,t,n,r,u,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?Dt(t,n):null;var e,t,n}}])}(),It="undefined"!=typeof global?global:self,Tt=It.MutationObserver||It.WebKitMutationObserver;function _t(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var Ct="function"==typeof Tt?function(e){var t=1,n=new Tt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:_t,kt=function(){return c(function e(){var t=this;i(this,e),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var e=t.queue;t.index<e.length;){var n=t.index;if(t.index++,e[n].call(),t.index>t.capacity){for(var r=0,u=e.length-t.index;r<u;r++)e[r]=e[r+t.index];e.length-=t.index,t.index=0}}e.length=0,t.index=0,t.flushing=!1},this.registerPendingError=function(e){t.pendingErrors.push(e),t.requestErrorThrow()},this.requestFlush=Ct(this.flush),this.requestErrorThrow=_t(function(){if(t.pendingErrors.length)throw t.pendingErrors.shift()})},[{key:"enqueueTask",value:function(e){var t=this.queue,n=this.requestFlush;t.length||(n(),this.flushing=!0),t[t.length]=e}}])}(),Et=function(){return c(function e(t,n){i(this,e),this.onError=t,this.release=n,this.task=null},[{key:"call",value:function(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}}])}(),xt=function(){return c(function e(t){i(this,e),this.onError=t,this.freeTasks=[]},[{key:"create",value:function(e){var t=this.freeTasks,n=t.length?t.pop():new Et(this.onError,function(e){return t[t.length]=e});return n.task=e,n}}])}(),Pt=new kt,Nt=new xt(Pt.registerPendingError);var Ut,Kt="dnd-core/ADD_SOURCE",jt="dnd-core/ADD_TARGET",Mt="dnd-core/REMOVE_SOURCE",At="dnd-core/REMOVE_TARGET";function Rt(e,t){t&&Array.isArray(e)?e.forEach(function(e){return Rt(e,!1)}):tt("string"==typeof e||"symbol"===d(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Ut||(Ut={}));var Lt=0;function Vt(e){var t=(Lt++).toString();switch(e){case Ut.SOURCE:return"S".concat(t);case Ut.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ht(e){switch(e[0]){case"S":return Ut.SOURCE;case"T":return Ut.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function Bt(e,t){var n=e.entries(),r=!1;do{var a=n.next(),o=a.done;if(u(a.value,2)[1]===t)return!0;r=!!o}while(!r);return!1}var Ft=function(){return c(function e(t){i(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t},[{key:"addSource",value:function(e,t){Rt(e),function(e){tt("function"==typeof e.canDrag,"Expected canDrag to be a function."),tt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),tt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(Ut.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Kt,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){Rt(e,!0),function(e){tt("function"==typeof e.canDrop,"Expected canDrop to be a function."),tt("function"==typeof e.hover,"Expected hover to be a function."),tt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(Ut.TARGET,e,t);return this.store.dispatch(function(e){return{type:jt,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Bt(this.dragSources,e)||Bt(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return tt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return tt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return tt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ht(e)===Ut.SOURCE}},{key:"isTargetId",value:function(e){return Ht(e)===Ut.TARGET}},{key:"removeSource",value:function(e){var t,n=this;tt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Mt,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},Pt.enqueueTask(Nt.create(t))}},{key:"removeTarget",value:function(e){tt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:At,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);tt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){tt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=Vt(e);return this.types.set(r,t),e===Ut.SOURCE?this.dragSources.set(r,n):e===Ut.TARGET&&this.dropTargets.set(r,n),r}}])}(),zt=function(e,t){return e===t};function qt(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ot:break;case Kt:case jt:case At:case Mt:return wt;default:return St}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,u=t.prevTargetIds,a=void 0===u?[]:u,o=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var u=[];return n.forEach(function(e,t){1===e&&u.push(t)}),u}(r,a),i=o.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zt;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,a);if(!i)return wt;var l=a[a.length-1],c=r[r.length-1];return l!==c&&(l&&o.push(l),c&&o.push(c)),o}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $t={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Xt(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$t,r=arguments.length>1?arguments[1]:void 0,u=r.payload;switch(r.type){case rt:case ut:return{initialSourceClientOffset:u.sourceClientOffset,initialClientOffset:u.clientOffset,clientOffset:u.clientOffset};case ot:return e=n.clientOffset,t=u.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Wt(e,t,n[t])})}return e}({},n,{clientOffset:u.clientOffset});case lt:case it:return $t;default:return n}}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Gt(e,t,n[t])})}return e}var Jt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Qt(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jt,r=arguments.length>1?arguments[1]:void 0,u=r.payload;switch(r.type){case ut:return Yt({},n,{itemType:u.itemType,item:u.item,sourceId:u.sourceId,isSourcePublic:u.isSourcePublic,dropResult:null,didDrop:!1});case at:return Yt({},n,{isSourcePublic:!0});case ot:return Yt({},n,{targetIds:u.targetIds});case At:return-1===n.targetIds.indexOf(u.targetId)?n:Yt({},n,{targetIds:(e=n.targetIds,t=u.targetId,e.filter(function(e){return e!==t}))});case it:return Yt({},n,{dropResult:u.dropResult,didDrop:!0,targetIds:[]});case lt:return Yt({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Kt:case jt:return e+1;case Mt:case At:return e-1;default:return e}}function en(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tn(e,t,n[t])})}return e}function rn(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:qt(r.dirtyHandlerIds,{type:u.type,payload:nn({},u.payload,{prevTargetIds:(e=r,t="dragOperation.targetIds",n=[],t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e))})}),dragOffset:Xt(r.dragOffset,u),refCount:Zt(r.refCount,u),dragOperation:Qt(r.dragOperation,u),stateId:en(r.stateId)}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return et(rn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),u=new Ot(r,new Ft(r)),a=new bt(r,u),o=e(a,t,n);return a.receiveBackend(o),a}function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){i=!0,u=l}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ln=0,cn=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function sn(e){if(function(e){return"manager"in e&&e.manager}(e))return[e.manager,!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dn(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,u=t;u[cn]||(u[cn]=un(e,t,n,r));return u[cn]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}function dn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var fn=s({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r=t.slots,u=on(sn(e),2),a=u[0],i=u[1];return i&&++ln,f(function(){if(i){var e=dn();0===--ln&&(e[cn]=null)}}),o(Ge,a),function(){var e;return null!==(n=null===(e=r.default)||void 0===e?void 0:e.call(r))&&void 0!==n?n:null}}});var vn=!1,pn=!1,gn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){tt(!vn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return vn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{vn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;tt(!pn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return pn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{pn=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();var hn=!1,yn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;tt(!hn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return hn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{hn=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function mn(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!==((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":d(t));var t,n}function bn(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!mn(n)){var u=n;return e(u,r),u}}}function Dn(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var u=bn(r);t[n]=function(){return u}}}),t}function wn(e,t,n,r){var u=void 0;if(void 0!==u)return!!u;if(e===t)return!0;if("object"!==d(e)||!e||"object"!==d(t)||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var c=a[l];if(!i(c))return!1;var s=e[c],f=t[c];if(!1===(u=void 0)||void 0===u&&s!==f)return!1}return!0}function Sn(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}var On=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Dn({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t=e.prototype;return t.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},t.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},t.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},t.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},t.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},t.didDragSourceOptionsChange=function(){return!wn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},t.didDragPreviewOptionsChange=function(){return!wn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},t.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},t.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},t.clearDragSource=function(){this.dragSourceNode=null},t.clearDragPreview=function(){this.dragPreviewNode=null},Sn(e,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),e}();function In(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}var Tn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Dn({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,v(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t=e.prototype;return t.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},t.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},t.didOptionsChange=function(){return!wn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},t.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},t.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},In(e,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),e}();var _n=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e=this.spec,t=this.monitor,n=null;return null!=(n="object"===d(e.item)?e.item:"function"==typeof e.item?e.item(t):{})?n:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,u=n.isDragging;return u?u(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function Cn(){var e=l(Ge);return tt(null!=e,"Expected drag drop context"),e}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){i=!0,u=l}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t,n){var r=Cn(),u=function(e,t,n){var r=g(function(){return new _n(p(e),p(t),p(n))});return h(function(){r.value.spec=p(e)}),r}(e,t,n),a=function(e){return g(function(){var t=p(e).type;return tt(null!=t,"spec.type must be defined"),t})}(e);h(function(e){if(null!=p(a)){var o=En(function(e,t,n){var r=n.getRegistry(),u=r.addSource(e,t);return[u,function(){return r.removeSource(u)}]}(p(a),p(u),p(r)),2),i=o[0],l=o[1];p(t).receiveHandlerId(i),p(n).receiveHandlerId(i),e(l)}})}function Pn(e){return g(function(){return"function"==typeof e?e():e})}var Nn=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==d(t)&&"object"==d(n)){if(t.constructor!==n.constructor)return!1;var r,u,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(u=r;0!==u--;)if(!e(t[u],n[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(u=r;0!==u--;)if(!Object.prototype.hasOwnProperty.call(n,a[u]))return!1;for(u=r;0!==u--;){var o=a[u];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n},Un=Xe(Nn);function Kn(e,t,n){var r=y(p(t)(p(e))),u=function(){var u=p(t)(p(e));Un(r.value,u)||(r.value=u,n&&n())};return h(u),[r,u]}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){i=!0,u=l}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e,t,n){return function(e,t,n){var r=Mn(Kn(e,t,n),2),u=r[0],a=r[1];return h(function(t){var n=p(e).getHandlerId();null!=n&&t(p(e).subscribeToStateChange(a,{handlerIds:[n]}))}),u}(t,e||function(){return{}},function(){return p(n).reconnect()})}function Rn(e,t){var n=m({el:null,options:p(t)});h(function(){e(n)},{flush:"post"});return function(e,r){b(n,"el",e);var u=p(t)||r;return Un(n.options,u)||b(n,"options",u),p(e)}}function Ln(e,t){return Rn(function(t){p(e).hooks.dragSource()(t.el,t.options)},g(function(){return p(t).options}))}function Vn(e,t){return Rn(function(t){p(e).hooks.dragPreview()(t.el,t.options)},g(function(){return p(t).previewOptions}))}function Hn(e){var t,n=Pn(e),r=(t=Cn(),g(function(){return new gn(p(t))})),u=function(e,t){var n=Cn(),r=g(function(){return new On(p(n).getBackend())});return h(function(t){r.value.dragSourceOptions=p(e)||null,p(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),h(function(e){r.value.dragPreviewOptions=p(t)||null,p(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}(g(function(){return p(n).options}),g(function(){return p(n).previewOptions}));return xn(n,r,u),[An(g(function(){return p(n).collect||function(){return{}}}),r,u),Ln(u,n),Vn(u,n)]}var Bn=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,a=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){i=!0,u=l}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,t,n){var r=Cn(),u=function(e,t){var n=g(function(){return new Bn(p(e),p(t))});return h(function(){n.value.spec=p(e)}),n}(e,t),a=function(e){return g(function(){var t=p(e).accept;return tt(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);h(function(e){var o=zn(function(e,t,n){var r=p(n).getRegistry(),u=r.addTarget(p(e),p(t));return[u,function(){return r.removeTarget(u)}]}(a,u,r),2),i=o[0],l=o[1];p(t).receiveHandlerId(i),p(n).receiveHandlerId(i),e(l)})}function Wn(e,t){return Rn(function(t){p(e).hooks.dropTarget()(t.el,t.options)},g(function(){return p(t).options}))}function $n(e){var t,n=Pn(e),r=(t=Cn(),g(function(){return new yn(p(t))})),u=function(e){var t=Cn(),n=g(function(){return new Tn(p(t).getBackend())});return h(function(t){n.value.dropTargetOptions=p(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}(g(function(){return p(n).options}));return qn(n,r,u),[An(g(function(){return p(n).collect||function(){return{}}}),r,u),Wn(u,n)]}function Xn(e){var t=null;return function(){return null==t&&(t=e()),t}}var Gn=function(){return c(function e(t){i(this,e),this.entered=[],this.isNodeInDocument=t},[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var u=[];return n.forEach(function(e){return u.push(e)}),u}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])}(),Yn=function(){return c(function e(t){i(this,e),this.config=t,this.item={},this.initializeExposedProperties()},[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){var u=t.config.exposeProperties[r];null!=u&&(n[r]={value:u(e,t.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])}(),Jn="__NATIVE_FILE__",Qn="__NATIVE_URL__",Zn="__NATIVE_TEXT__",er="__NATIVE_HTML__",tr=Object.freeze(Object.defineProperty({__proto__:null,FILE:Jn,HTML:er,TEXT:Zn,URL:Qn},Symbol.toStringTag,{value:"Module"}));function nr(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}var rr=r(r(r(r({},Jn,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),er,{exposeProperties:{html:function(e,t){return nr(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Qn,{exposeProperties:{urls:function(e,t){return nr(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Zn,{exposeProperties:{text:function(e,t){return nr(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]});function ur(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(rr).filter(function(e){var n=rr[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}var ar=Xn(function(){return/firefox/i.test(navigator.userAgent)}),or=Xn(function(){return Boolean(window.safari)}),ir=function(){return c(function e(t,n){i(this,e);for(var r=t.length,u=[],a=0;a<r;a++)u.push(a);u.sort(function(e,n){return t[e]<t[n]?-1:1});for(var o,l,c=[],s=[],d=0;d<r-1;d++)o=t[d+1]-t[d],l=n[d+1]-n[d],c.push(o),s.push(l/o);for(var f=[s[0]],v=0;v<c.length-1;v++){var p=s[v],g=s[v+1];if(p*g<=0)f.push(0);else{o=c[v];var h=c[v+1],y=o+h;f.push(3*y/((y+h)/p+(y+o)/g))}}f.push(s[s.length-1]);for(var m,b=[],D=[],w=0;w<f.length-1;w++){m=s[w];var S=f[w],O=1/c[w],I=S+f[w+1]-m-m;b.push((m-S-I)*O),D.push(I*O*O)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=D},[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,u=this.c2s,a=this.c3s,o=t.length-1;if(e===t[o])return n[o];for(var i,l=0,c=a.length-1;l<=c;){var s=t[i=Math.floor(.5*(l+c))];if(s<e)l=i+1;else{if(!(s>e))return n[i];c=i-1}}var d=e-t[o=Math.max(0,c)],f=d*d;return n[o]+r[o]*d+u[o]*f+a[o]*d*f}}])}();function lr(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function cr(e){return{x:e.clientX,y:e.clientY}}function sr(e,t,n,r,u){var a,o=function(e){var t;return"IMG"===e.nodeName&&(ar()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),i=lr(o?e:t),l={x:n.x-i.x,y:n.y-i.y},c=e.offsetWidth,s=e.offsetHeight,d=r.anchorX,f=r.anchorY,v=function(e,t,n,r){var u=e?t.width:n,a=e?t.height:r;return or()&&e&&(a/=window.devicePixelRatio,u/=window.devicePixelRatio),{dragPreviewWidth:u,dragPreviewHeight:a}}(o,t,c,s),p=v.dragPreviewWidth,g=v.dragPreviewHeight,h=u.offsetX,y=u.offsetY,m=0===y||y;return{x:0===h||h?h:new ir([0,.5,1],[l.x,l.x/c*p,l.x+p-c]).interpolate(d),y:m?y:(a=new ir([0,.5,1],[l.y,l.y/s*g,l.y+g-s]).interpolate(f),or()&&o&&(a+=(window.devicePixelRatio-1)*g),a)}}var dr=function(){return c(function e(t,n){i(this,e),this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n},[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])}();function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){fr(e,t,n[t])})}return e}var pr=function(){return c(function e(t,n,r){var u=this;i(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=function(e){var t=u.sourceNodes.get(e);return t&&lr(t)||null},this.endDragNativeItem=function(){u.isDraggingNativeItem()&&(u.actions.endDrag(),u.currentNativeHandle&&u.registry.removeSource(u.currentNativeHandle),u.currentNativeHandle=null,u.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&u.document&&u.document.body&&u.document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=u.currentDragSourceNode;null==e||u.isNodeInDocument(e)||(u.clearCurrentDragSourceNode()&&u.monitor.isDragging()&&u.actions.endDrag(),u.cancelHover())},this.scheduleHover=function(e){null===u.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(u.hoverRafId=requestAnimationFrame(function(){u.monitor.isDragging()&&u.actions.hover(e||[],{clientOffset:u.lastClientOffset}),u.hoverRafId=null}))},this.cancelHover=function(){null!==u.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(u.hoverRafId),u.hoverRafId=null)},this.handleTopDragStartCapture=function(){u.clearCurrentDragSourceNode(),u.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=u.dragStartSourceIds;u.dragStartSourceIds=null;var n=cr(e);u.monitor.isDragging()&&(u.actions.endDrag(),u.cancelHover()),u.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:u.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,a=ur(r);if(u.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var o=u.monitor.getSourceId(),i=u.sourceNodes.get(o),l=u.sourcePreviewNodes.get(o)||i;if(l){var c=u.getCurrentSourcePreviewNodeOptions(),s=sr(i,l,n,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});r.setDragImage(l,s.x,s.y)}}try{null==r||r.setData("application/json",{})}catch(d){}u.setCurrentDragSourceNode(e.target),u.getCurrentSourcePreviewNodeOptions().captureDraggingState?u.actions.publishDragSource():setTimeout(function(){return u.actions.publishDragSource()},0)}else if(a)u.beginDragNativeItem(a);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){u.clearCurrentDragSourceNode()&&u.monitor.isDragging()&&u.actions.endDrag(),u.cancelHover()},this.handleTopDragEnterCapture=function(e){var t;(u.dragEnterTargetIds=[],u.isDraggingNativeItem())&&(null===(t=u.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(u.enterLeaveCounter.enter(e.target)&&!u.monitor.isDragging()){var n=e.dataTransfer,r=ur(n);r&&u.beginDragNativeItem(r,n)}},this.handleTopDragEnter=function(e){var t=u.dragEnterTargetIds;(u.dragEnterTargetIds=[],u.monitor.isDragging())&&(u.altKeyPressed=e.altKey,t.length>0&&u.actions.hover(t,{clientOffset:cr(e)}),t.some(function(e){return u.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=u.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(e){var t;(u.dragOverTargetIds=[],u.isDraggingNativeItem())&&(null===(t=u.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=function(e){var t=u.dragOverTargetIds;if(u.dragOverTargetIds=[],!u.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));u.altKeyPressed=e.altKey,u.lastClientOffset=cr(e),u.scheduleHover(t),(t||[]).some(function(e){return u.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=u.getCurrentDropEffect())):u.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){u.isDraggingNativeItem()&&e.preventDefault(),u.enterLeaveCounter.leave(e.target)&&(u.isDraggingNativeItem()&&setTimeout(function(){return u.endDragNativeItem()},0),u.cancelHover())},this.handleTopDropCapture=function(e){var t;(u.dropTargetIds=[],u.isDraggingNativeItem())?(e.preventDefault(),null===(t=u.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):ur(e.dataTransfer)&&e.preventDefault();u.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=u.dropTargetIds;u.dropTargetIds=[],u.actions.hover(t,{clientOffset:cr(e)}),u.actions.drop({dropEffect:u.getCurrentDropEffect()}),u.isDraggingNativeItem()?u.endDragNativeItem():u.monitor.isDragging()&&u.actions.endDrag(),u.cancelHover()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new dr(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Gn(this.isNodeInDocument)},[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var u=function(t){return r.handleDragStart(t,e)},a=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",u),t.addEventListener("selectstart",a),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",u),t.removeEventListener("selectstart",a),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},u=function(t){return n.handleDragOver(t,e)},a=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",u),t.addEventListener("drop",a),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",u),t.removeEventListener("drop",a)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return vr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return vr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(tr).some(function(t){return tr[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=rr[e];if(!n)throw new Error("native type ".concat(e," has no configuration"));var r=new Yn(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])}(),gr=function(e,t,n){return new pr(e,t,n)},hr={class:"text"},yr=ze(s({__name:"MenuItem",props:{itemConfig:{}},setup:function(e){var t=e,n=u(Hn(function(){return{type:t.itemConfig.type,item:ue(t.itemConfig),end:function(e,t){if(ae.value&&t.getDropResult()){var n=oe();ie.value[ae.value].children=ie.value[ae.value].children.filter(function(e){return"indicator"!==e}),le(ae.value,n,e.type)}},collect:function(e){return{isDragging:e.isDragging()}}}}),2)[1];return function(t,r){var u=Fe;return D(),w("div",{ref:p(n),class:"comp-box"},[S(u,{icon:"".concat(e.itemConfig.icon),size:24},null,8,["icon"]),O("div",hr,I(e.itemConfig.name),1)],512)}}}),[["__scopeId","data-v-be036443"]]),mr={class:"pt-8px"},br={class:"comp-list"},Dr=ze(s({__name:"index",setup:function(e){return function(e,t){return D(),w("div",mr,[t[0]||(t[0]=O("div",{class:"comp-title"},"基础组件",-1)),O("div",br,[(D(!0),w(T,null,_(p(ce),function(e){return D(),C(yr,{key:e.type,"item-config":e},null,8,["item-config"])}),128))])])}}}),[["__scopeId","data-v-cac3e13c"]]),wr=["innerHTML"],Sr=s({__name:"index",setup:function(e){return function(e,t){return D(),w("div",{innerHTML:p(se)},null,8,wr)}}}),Or={class:"editor-tools"},Ir=ze(s({__name:"index",setup:function(e){var t=function(){qe({title:"预览",area:80,component:Sr})};return function(e,n){var r=Fe;return D(),w("div",Or,[O("div",null,[O("span",{class:"cursor-pointer",onClick:t},[S(r,{icon:"el-view",size:18})])]),O("div",null,[k("",!0)])])}}}),[["__scopeId","data-v-b25ac8d4"]]),Tr=["data-handler-id"],_r={class:"viewer-action"},Cr={key:0,class:"viewer-type"},kr=s({__name:"Comp",props:{compKey:{},cellKey:{}},setup:function(e,t){var n=t.expose,r=e,o=U(function(){return We(function(){return a.import("./Button-legacy.js?v=1777008528")},void 0,a.meta.url)}),i=U(function(){return We(function(){return a.import("./Divider-legacy.js?v=1777008528")},void 0,a.meta.url)}),l=U(function(){return We(function(){return a.import("./Header-legacy.js?v=1777008528")},void 0,a.meta.url)}),c=U(function(){return We(function(){return a.import("./Text-legacy.js?v=1777008528")},void 0,a.meta.url)}),s=U(function(){return We(function(){return a.import("./Image-legacy.js?v=1777008528")},void 0,a.meta.url)}),d=U(function(){return We(function(){return a.import("./Menu-legacy.js?v=1777008528")},void 0,a.meta.url)}),f=U(function(){return We(function(){return a.import("./Html-legacy.js?v=1777008528")},void 0,a.meta.url)}),v=U(function(){return We(function(){return a.import("./Other-legacy.js?v=1777008528")},void 0,a.meta.url)});var h=y(""),m=u(Hn({type:de.commonComp,item:{key:r.compKey},collect:function(e){return{isDragging:e.isDragging()}}}),3),b=m[0],_=m[1],K=m[2];E(function(){return b.value.isDragging},function(e){e&&(h.value=r.compKey)});var j=u($n({accept:fe.filter(function(e){return"columns"!==e}),hover:function(e,t){R(),"0"!=e.key?V(e.key,t):V("indicator",t)},drop:function(){L()},collect:function(e){return{handlerId:e.getHandlerId()}}}),2),M=j[0],A=j[1],R=function(){document.querySelectorAll(".comp-wrapper").forEach(function(e){var t;null===(t=e.querySelector(".viewer-selector"))||void 0===t||t.classList.add("no-hover")})},L=function(){document.querySelectorAll(".comp-wrapper").forEach(function(e){var t;null===(t=e.querySelector(".viewer-selector"))||void 0===t||t.classList.remove("no-hover")})};function V(e,t){var n;if(e!=r.compKey){var u=null===(n=H.value)||void 0===n?void 0:n.getBoundingClientRect(),a=u.top+(u.bottom-u.top)/2,o=t.getClientOffset();o.y<a&&ve(r.cellKey,r.compKey,e),o.y>a&&pe(r.cellKey,r.compKey,e)}}var H=y();function B(e){H.value=K(A(e))}n({compSort:V,key:r.compKey});var F=g(function(){return ge(he.value[r.compKey],"general")}),z=g(function(){switch(ye.value&&ye.value[r.compKey]?ye.value[r.compKey].type:""){case"button":return o;case"divider":return i;case"header":return l;case"text":return c;case"image":return s;case"menu":return d;case"html":return f;default:return v}});function q(){for(var e in De.value=!0,we.value=ye.value[r.compKey].type,be.value=r.compKey,Se.value)Se.value[e].children.includes(r.cellKey)&&(Oe.value=e)}function W(e){Ie(r.compKey,r.cellKey),e.stopPropagation()}return function(t,n){var r,u=Fe;return D(),w("div",{ref:B,class:x(["comp-wrapper",{indicator:p(b).isDragging||"indicator"==e.compKey}]),onClick:q,"data-handler-id":p(M).handlerId,style:N(p(F))},[p(b).isDragging?k("",!0):(D(),w(T,{key:0},[O("div",{class:x(["viewer-selector",{active:p(be)===e.compKey}])},[O("div",{class:"viewer-drag",ref:p(_)},[S(u,{icon:"el-fullscreen-expand",color:"var(--el-color-white)",size:20})],512),O("div",_r,[O("div",{class:"action-btn",onClick:n[0]||(n[0]=function(){return p(me)(e.compKey,e.cellKey)})},[S(u,{icon:"el-document-copy",size:16,color:"var(--el-color-white)"})]),O("div",{class:"action-btn",onClick:W},[S(u,{icon:"el-delete",size:16,color:"var(--el-color-white)"})])]),p(ye)[e.compKey]?(D(),w("div",Cr,I((r=p(ye)[e.compKey].type,r.charAt(0).toUpperCase()+r.slice(1))),1)):k("",!0)],2),(D(),C(P(p(z)),{"comp-key":e.compKey},null,8,["comp-key"]))],64))],14,Tr)}}}),Er=ze(kr,[["__scopeId","data-v-1cffbcb5"]]),xr={class:"viewer-empty"};var Pr=ze({},[["render",function(e,t){return D(),w("div",xr,n(t[0]||(t[0]=[O("div",null,"这里没有内容,请从左侧拖动内容。",-1)])))}],["__scopeId","data-v-815a5a39"]]),Nr=s({__name:"CellContainer",props:{cellKey:{},columnKey:{}},setup:function(e){var n=e,r=y(!1),a=g(function(){return!r.value&&0===ie.value[n.cellKey].children.length}),o=g(function(){return t(t({},ge(Te.value[n.cellKey])),{},{width:ie.value[n.cellKey].width})}),i=$n({accept:fe,collect:function(e){return{isShallowOver:e.isOver()}},drop:function(e){var t=ie.value[n.cellKey].children.indexOf("indicator");if(t>-1&&ie.value[n.cellKey].children.splice(t,1),"0"==e.key){r.value=!1;var u=oe();Ce(n.cellKey,u,e.type,t)}},hover:function(e){"0"==e.key&&(r.value=!0,ie.value[n.cellKey].children.includes("indicator")||ie.value[n.cellKey].children.push("indicator"))}}),l=u(i,2),c=l[0],s=l[1],d=K(c).isShallowOver;E(function(){return d.value},function(e){e||(r.value=!1,ie.value[n.cellKey].children=ie.value[n.cellKey].children.filter(function(e){return"indicator"!=e}))});var f,v,h=y(null),m=function(e){e&&(h.value=s(e))},b=g(function(){return Se.value[n.columnKey].children.findIndex(function(e){return e==n.cellKey})!==Se.value[n.columnKey].children.length-1}),S=g(function(){var e=Se.value[n.columnKey].children.findIndex(function(e){return e==n.cellKey});return-1!==e&&e<Se.value[n.columnKey].children.length-1?Se.value[n.columnKey].children[e+1]:""}),O=y(-1),I=y(0),x=0,P=0;function U(e){I.value=e.clientX,x=h.value.getBoundingClientRect().width,document.addEventListener("mousemove",M)}function M(e){f=document.querySelector("#cell_".concat(n.cellKey)),v=document.querySelector("#cell_".concat(S.value)),P=e.clientX-I.value;var t="calc(".concat(ie.value[n.cellKey].width," + ").concat(P,"px)"),r="calc(".concat(ie.value[S.value].width," - ").concat(P,"px)");f.offsetWidth<=50||v.offsetWidth<=50||(f.style.width=t,v.style.width=r,e.preventDefault())}function A(e){e&&(e.addEventListener("mousedown",U),document.addEventListener("mouseup",function(){if(0!=I.value){document.removeEventListener("mousemove",M);var e=P/x*(Number(ie.value[n.cellKey].width.split("%")[0])/100);ie.value[n.cellKey].width=Number((100*(Number(ie.value[n.cellKey].width.split("%")[0])/100+e)).toFixed(2))+"%",ie.value[S.value].width=Number((100*(Number(ie.value[S.value].width.split("%")[0])/100-e)).toFixed(2))+"%",j(function(){x=0,P=0,I.value=0,_e.$emit("makeDom")})}}))}return function(t,n){return D(),w("div",{ref:m,class:"column-item",style:N(p(o))},[p(a)?(D(),C(Pr,{key:0})):k("",!0),(D(!0),w(T,null,_(p(ie)[e.cellKey].children,function(t){return D(),C(Er,{key:t,"comp-key":t,"cell-key":e.cellKey},null,8,["comp-key","cell-key"])}),128)),p(b)?(D(),w("div",{key:1,ref:A,class:"resize-handle",style:N({right:p(O)+"px"})},null,4)):k("",!0)],4)}}}),Ur=ze(Nr,[["__scopeId","data-v-655d4008"]]),Kr=["data-handler-id","id"],jr={class:"viewer-action"},Mr={key:0,class:"viewer-type"},Ar=ze(s({__name:"Columns",props:{columnKey:{}},setup:function(e){var n=e,r=g(function(){return ge(ke.value[n.columnKey])}),a=g(function(){return Ee.value.maxWidth});var o=u(Hn({type:"Drag_Columns",item:function(){return{key:n.columnKey}},collect:function(e){return{isDragging:e.isDragging()}}}),3),i=o[0],l=o[1],c=o[2],s=K(i).isDragging,d=u($n({accept:"Drag_Columns",hover:function(e,t){if(h(),e.key!=n.columnKey){var r=E.value.getBoundingClientRect(),u=r.top+(r.bottom-r.top)/2,a=t.getClientOffset();a.y<u&&Pe(n.columnKey,e.key),a.y>u&&Ne(n.columnKey,e.key)}},drop:function(){m()},collect:function(e){return{handlerId:e.getHandlerId()}}}),2),f=d[0],v=d[1],h=function(){document.querySelectorAll(".viewer-columns").forEach(function(e){var t;null===(t=e.querySelector(".viewer-selector"))||void 0===t||t.classList.add("no-hover")})},m=function(){document.querySelectorAll(".viewer-columns").forEach(function(e){var t;null===(t=e.querySelector(".viewer-selector"))||void 0===t||t.classList.remove("no-hover")})},b=K(f).handlerId,E=y(),P=function(e){E.value=c(v(e))};function U(){var e=n.columnKey,t=Se.value[e],r=t.key,u=t.type;we.value=u,be.value=r,De.value=!0}return function(n,u){var o,i=Fe;return D(),w("div",{ref:P,class:x(["viewer-columns",{indicator:p(s)}]),"data-handler-id":p(b),onClickCapture:U,id:"column_".concat(e.columnKey)},[p(s)?k("",!0):(D(),w(T,{key:0},[O("div",{class:x(["viewer-selector",{active:p(be)===e.columnKey}])},[O("div",{ref:p(l),class:"viewer-drag"},[S(i,{icon:"el-fullscreen-expand",color:"#fff",size:20})],512),O("div",jr,[k("",!0),O("div",{class:"action-btn",onClick:u[0]||(u[0]=function(){return p(xe)(e.columnKey)})},[S(i,{icon:"el-delete",size:16,color:"#fff"})])]),p(Se)[e.columnKey]?(D(),w("div",Mr,I((o=p(Se)[e.columnKey].type,o.charAt(0).toUpperCase()+o.slice(1))),1)):k("",!0)],2),O("div",{class:"columns-container",style:N(t(t({},p(r)),{},{maxWidth:p(a),zIndex:p(Oe)==e.columnKey?2e3:100}))},[(D(!0),w(T,null,_(p(Se)[e.columnKey].children,function(t){return D(),C(Ur,{key:t,"cell-key":t,"column-key":e.columnKey,id:"cell_".concat(t)},null,8,["cell-key","column-key","id"])}),128))],4)],64))],42,Kr)}}}),[["__scopeId","data-v-3d0ba3bd"]]),Rr={class:"editor-container"},Lr={key:0,class:"drag-empty"},Vr={key:1,class:"drag-empty-box"},Hr={key:0,class:"drag-empty-box"},Br=s({__name:"index",emits:["columnDrag"],setup:function(e,t){var r=t.emit,a=y(null),o=y(!1),i=y(0),l=g(function(){return{backgroundColor:Ee.value.backgroundColor}}),c=u($n({accept:[].concat(n(fe),[de.Columns]),collect:function(e){return{isShallowOver:e.isOver({shallow:!0})}},drop:function(e){e.type==de.Columns&&(r("columnDrag",e,i.value),i.value=0,o.value=!1)},hover:function(e,t){if(e.type==de.Columns)Ue(function(){var e=t.getSourceClientOffset(),n=document.querySelectorAll(".editor-container .viewer-columns");if(e&&n.length>0){for(var r=e.y,u=!0,a=n.length-1;a>=0;a--){var l=n[a].getBoundingClientRect();if(r>l.top+l.height/2){u=!1,i.value=a+1;break}}u&&(i.value=0)}o.value=f.value},150)();else if(f.value){if(Ke.value.length&&"0"==e.key){var n=Ke.value.at(-1),r={};Se.value[n].children.forEach(function(e){return r[e]=document.querySelector("#cell_".concat(e))});var u={};for(var a in r)u[a]=r[a].getBoundingClientRect();var l=t.getClientOffset();for(var c in ae.value="",u)if(l.x>u[c].left&&l.x<u[c].right){for(var s in u)ie.value[s].children=ie.value[s].children.filter(function(e){return"indicator"!==e});ie.value[c].children.push("indicator"),ae.value=c}else ie.value[c].children=ie.value[c].children.filter(function(e){return"indicator"!==e})}}else ae.value=""}}),2),s=c[0],d=c[1],f=K(s).isShallowOver,v=function(e){e&&(a.value=d(e))},h=function(){we.value="",be.value=""};return function(e,t){return D(),w("div",{class:"flex flex-col h-full",onClickCapture:h},[S(Ir),O("div",Rr,[O("div",{ref:v,class:"editor-draggable",style:N(p(l))},[p(o)||0!==p(Ke).length?k("",!0):(D(),w("div",Lr,"这里没有内容,请从左侧拖动内容。")),p(o)&&0===p(i)?(D(),w("div",Vr)):k("",!0),(D(!0),w(T,null,_(p(Ke),function(e,t){return D(),w(T,{key:e},[S(Ar,{"column-key":e},null,8,["column-key"]),p(o)&&t+1===p(i)?(D(),w("div",Hr)):k("",!0)],64)}),128))],4)])],32)}}}),Fr=ze(Br,[["__scopeId","data-v-6d11e390"]]),zr={class:"style-container"},qr={class:"style-rows"},Wr={class:"style-label"},$r={class:"style-value"},Xr=ze(s({__name:"BaseContainer",props:{label:{type:String,default:""}},setup:function(e){return function(t,n){return D(),w("div",zr,[O("div",qr,[O("div",Wr,I(e.label),1),O("div",$r,[M(t.$slots,"value",{},void 0,!0)])]),M(t.$slots,"options",{},void 0,!0)])}}}),[["__scopeId","data-v-ab599e03"]]),Gr=s({__name:"Head",props:{value:{},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,r){var u=V,a=H;return D(),C(Xr,{label:"标题类型"},{value:R(function(){return[S(a,{size:"default",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},{default:R(function(){return[S(u,{label:"22px"},{default:R(function(){return n(r[1]||(r[1]=[L("H1",-1)]))}),_:1}),S(u,{label:"20px"},{default:R(function(){return n(r[2]||(r[2]=[L("H2",-1)]))}),_:1}),S(u,{label:"18px"},{default:R(function(){return n(r[3]||(r[3]=[L("H3",-1)]))}),_:1}),S(u,{label:"16px"},{default:R(function(){return n(r[4]||(r[4]=[L("H4",-1)]))}),_:1})]}),_:1},8,["modelValue"])]}),_:1})}}}),Yr={class:"w-32px"},Jr=s({__name:"Color",props:B({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value");return function(n,r){var u=F;return D(),C(Xr,{label:e.label},{value:R(function(){return[O("div",Yr,[S(u,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e}),"show-alpha":!1,"color-format":"hex"},null,8,["modelValue"])])]}),_:1},8,["label"])}}}),Qr={class:"w-180px"},Zr=s({__name:"Width",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value"),n=y(100);E(function(){return t.value},function(e){n.value=Number.parseFloat(e)},{immediate:!0});var r=function(e){t.value="".concat(e,"%")};return function(e,t){var u=z;return D(),C(Xr,{label:"宽度"},{value:R(function(){return[O("div",Qr,[S(u,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.value=e}),step:1,onInput:r},null,8,["modelValue"])])]}),_:1})}}}),eu={class:"flex items-center",style:{height:"32px"}},tu={key:0,class:"ml-4 whitespace-nowrap"},nu=s({__name:"WidthAuto",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value"),n=y(!0),r=y(100);E(function(){return t.value},function(e){"auto"===e?n.value=!0:(n.value=!1,r.value=Number.parseFloat(e)),n.value||(r.value=Number.parseFloat(e))},{immediate:!0});var u=function(e){r.value=100,t.value=e?"100%":"".concat(r.value,"%")},a=function(e){t.value="".concat(e,"%")};return function(e,t){var o=q,i=z;return D(),C(Xr,{label:"宽度"},{value:R(function(){return[t[2]||(t[2]=O("span",{class:"mr-3"},"自动",-1)),S(o,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.value=e}),onChange:u},null,8,["modelValue"])]}),options:R(function(){return[O("div",eu,[S(i,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.value=e}),step:1,disabled:n.value,onInput:a},null,8,["modelValue","disabled"]),n.value?k("",!0):(D(),w("span",tu,I(r.value)+"%",1))])]}),_:1})}}}),ru={class:"el-input-group"},uu={class:"el-input-group__append"},au=s({__name:"BaseNumber",props:B({unit:{type:String,default:"px"},step:{type:Number,default:1}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value"),n=y(0);E(function(){return t.value},function(e){n.value=e?Number.parseFloat(e):0},{immediate:!0});var r=function(n){t.value="".concat(n||0).concat(e.unit)};return function(t,u){var a=W;return D(),w("div",ru,[S(a,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=function(e){return n.value=e}),min:0,step:e.step,"controls-position":"right",style:{width:"92px"},onInput:r},null,8,["modelValue","step"]),O("div",uu,I(e.unit),1)])}}}),ou=s({__name:"WidthNumber",props:{value:{default:"500px"},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){return D(),C(Xr,{label:"宽度"},{value:R(function(){return[S(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e})},null,8,["value"])]}),_:1})}}}),iu={class:"w-100px"},lu=s({__name:"FontWeight",props:B({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value"),n=[{label:"正常",value:"normal"},{label:"粗体",value:"bold"}];return t.value||(t.value=n[0].value),function(e,r){var u=$,a=X;return D(),C(Xr,{label:"字体粗细"},{value:R(function(){return[O("div",iu,[S(a,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},{default:R(function(){return[(D(),w(T,null,_(n,function(e){return S(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),64))]}),_:1},8,["modelValue"])])]}),_:1})}}}),cu=s({__name:"FontSize",props:{value:{default:"14px"},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){return D(),C(Xr,{label:"字体大小"},{value:R(function(){return[S(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e})},null,8,["value"])]}),_:1})}}}),su=s({__name:"LineHeight",props:{value:{default:"120%"},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){return D(),C(Xr,{label:"行高"},{value:R(function(){return[S(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e}),unit:"%",step:10},null,8,["value"])]}),_:1})}}}),du=s({__name:"LetterSpacing",props:{value:{default:"0px"},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){return D(),C(Xr,{label:"字间距"},{value:R(function(){return[S(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e})},null,8,["value"])]}),_:1})}}}),fu=s({__name:"TextAlign",props:B({label:{default:""}},{value:{},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value");return function(r,u){var a=V,o=H;return D(),C(Xr,{label:e.label||"文本对齐"},{value:R(function(){return[S(o,{size:"default",modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=function(e){return t.value=e})},{default:R(function(){return[S(a,{label:"left"},{default:R(function(){return n(u[1]||(u[1]=[L("左对齐",-1)]))}),_:1}),S(a,{label:"center"},{default:R(function(){return n(u[2]||(u[2]=[L("居中对齐",-1)]))}),_:1}),S(a,{label:"right"},{default:R(function(){return n(u[3]||(u[3]=[L("右对齐",-1)]))}),_:1})]}),_:1},8,["modelValue"])]}),_:1},8,["label"])}}}),vu={class:"flex flex-col gap-8px"},pu={class:"w-92px"},gu={class:"w-32px"},hu=s({__name:"BaseBorder",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value"),n=[{label:"实线",value:"solid"},{label:"点线",value:"dotted"},{label:"虚线",value:"dashed"}],r=y("solid"),a=y(""),o=y(""),i=function(){t.value="".concat(a.value," ").concat(r.value," ").concat(o.value||"transparent")};return E(function(){return t.value},function(e){var t=u(e.split(" "),3),n=t[0],i=t[1],l=t[2];a.value=n||"",r.value=i||"solid",o.value=l||""},{immediate:!0}),function(e,t){var u=$,l=X,c=F;return D(),w("div",vu,[S(au,{value:a.value,"onUpdate:value":[t[0]||(t[0]=function(e){return a.value=e}),i],placeholder:""},null,8,["value"]),O("div",pu,[S(l,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.value=e}),onChange:i},{default:R(function(){return[(D(),w(T,null,_(n,function(e){return S(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),64))]}),_:1},8,["modelValue"])]),O("div",gu,[S(c,{modelValue:o.value,"onUpdate:modelValue":t[2]||(t[2]=function(e){return o.value=e}),"show-alpha":!1,"color-format":"hex",onChange:i},null,8,["modelValue"])])])}}}),yu=s({__name:"Line",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){return D(),C(Xr,{label:"线条"},{value:R(function(){return[S(hu,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e})},null,8,["value"])]}),_:1})}}}),mu={class:"flex items-center h-32px"};var bu=ze({},[["render",function(e,t){return D(),w("div",mu,[M(e.$slots,"default")])}]]),Du=s({__name:"MoreOptions",props:{show:{type:Boolean,default:!1}},setup:function(e){return function(t,r){var u=G,a=Y;return e.show?(D(),C(a,{key:1,gutter:8},{default:R(function(){return[S(u,{span:12,class:"mb-2"},{default:R(function(){return[S(bu,null,{default:R(function(){return n(r[1]||(r[1]=[L("上边框",-1)]))}),_:1}),M(t.$slots,"top")]}),_:3}),S(u,{span:12,class:"mb-2"},{default:R(function(){return[S(bu,null,{default:R(function(){return n(r[2]||(r[2]=[L("右边框",-1)]))}),_:1}),M(t.$slots,"right")]}),_:3}),S(u,{span:12,class:"mb-2"},{default:R(function(){return[S(bu,null,{default:R(function(){return n(r[3]||(r[3]=[L("左边框",-1)]))}),_:1}),M(t.$slots,"left")]}),_:3}),S(u,{span:12,class:"mb-2"},{default:R(function(){return[S(bu,null,{default:R(function(){return n(r[4]||(r[4]=[L("下边框",-1)]))}),_:1}),M(t.$slots,"bottom")]}),_:3})]}),_:3})):(D(),w(T,{key:0},[S(bu,null,{default:R(function(){return n(r[0]||(r[0]=[L("所有边框",-1)]))}),_:1}),M(t.$slots,"all")],64))}}}),wu=s({__name:"Border",props:B({label:{default:""}},{value:{default:function(){return{more:!1,all:"",top:"",left:"",right:"",bottom:""}}},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value"),n=function(e){e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return function(r,u){var a=q;return D(),C(Xr,{label:e.label||"边框"},{value:R(function(){return[u[6]||(u[6]=O("span",{class:"mr-12px"},"更多选项",-1)),S(a,{modelValue:t.value.more,"onUpdate:modelValue":u[0]||(u[0]=function(e){return t.value.more=e}),onChange:n},null,8,["modelValue"])]}),options:R(function(){return[S(Du,{show:t.value.more},{all:R(function(){return[S(hu,{value:t.value.all,"onUpdate:value":u[1]||(u[1]=function(e){return t.value.all=e})},null,8,["value"])]}),top:R(function(){return[S(hu,{value:t.value.top,"onUpdate:value":u[2]||(u[2]=function(e){return t.value.top=e})},null,8,["value"])]}),left:R(function(){return[S(hu,{value:t.value.left,"onUpdate:value":u[3]||(u[3]=function(e){return t.value.left=e})},null,8,["value"])]}),right:R(function(){return[S(hu,{value:t.value.right,"onUpdate:value":u[4]||(u[4]=function(e){return t.value.right=e})},null,8,["value"])]}),bottom:R(function(){return[S(hu,{value:t.value.bottom,"onUpdate:value":u[5]||(u[5]=function(e){return t.value.bottom=e})},null,8,["value"])]}),_:1},8,["show"])]}),_:1},8,["label"])}}}),Su=s({__name:"Padding",props:B({label:{default:""}},{value:{default:function(){return{more:!1,all:"",top:"",left:"",right:"",bottom:""}}},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value"),n=function(e){e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return function(r,u){var a=q;return D(),C(Xr,{label:e.label||"内边距"},{value:R(function(){return[u[6]||(u[6]=O("span",{class:"mr-12px"},"更多选项",-1)),S(a,{modelValue:t.value.more,"onUpdate:modelValue":u[0]||(u[0]=function(e){return t.value.more=e}),onChange:n},null,8,["modelValue"])]}),options:R(function(){return[S(Du,{show:t.value.more},{all:R(function(){return[S(au,{value:t.value.all,"onUpdate:value":u[1]||(u[1]=function(e){return t.value.all=e})},null,8,["value"])]}),top:R(function(){return[S(au,{value:t.value.top,"onUpdate:value":u[2]||(u[2]=function(e){return t.value.top=e})},null,8,["value"])]}),left:R(function(){return[S(au,{value:t.value.left,"onUpdate:value":u[3]||(u[3]=function(e){return t.value.left=e})},null,8,["value"])]}),right:R(function(){return[S(au,{value:t.value.right,"onUpdate:value":u[4]||(u[4]=function(e){return t.value.right=e})},null,8,["value"])]}),bottom:R(function(){return[S(au,{value:t.value.bottom,"onUpdate:value":u[5]||(u[5]=function(e){return t.value.bottom=e})},null,8,["value"])]}),_:1},8,["show"])]}),_:1},8,["label"])}}}),Ou=s({__name:"Rounded",props:{value:{default:function(){return{more:!1,all:"",top:"",left:"",right:"",bottom:""}}},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value"),n=function(e){e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return function(e,r){var u=q;return D(),C(Xr,{label:"圆角边框"},{value:R(function(){return[r[6]||(r[6]=O("span",{class:"mr-12px"},"更多选项",-1)),S(u,{modelValue:t.value.more,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value.more=e}),onChange:n},null,8,["modelValue"])]}),options:R(function(){return[S(Du,{show:t.value.more},{all:R(function(){return[S(au,{value:t.value.all,"onUpdate:value":r[1]||(r[1]=function(e){return t.value.all=e})},null,8,["value"])]}),top:R(function(){return[S(au,{value:t.value.top,"onUpdate:value":r[2]||(r[2]=function(e){return t.value.top=e})},null,8,["value"])]}),left:R(function(){return[S(au,{value:t.value.left,"onUpdate:value":r[3]||(r[3]=function(e){return t.value.left=e})},null,8,["value"])]}),right:R(function(){return[S(au,{value:t.value.right,"onUpdate:value":r[4]||(r[4]=function(e){return t.value.right=e})},null,8,["value"])]}),bottom:R(function(){return[S(au,{value:t.value.bottom,"onUpdate:value":r[5]||(r[5]=function(e){return t.value.bottom=e})},null,8,["value"])]}),_:1},8,["show"])]}),_:1})}}}),Iu={class:"w-140px"},Tu=s({__name:"Layout",props:B({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value"),n=[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}];return t.value||(t.value=n[0].value),function(e,r){var u=$,a=X;return D(),C(Xr,{label:"布局"},{value:R(function(){return[O("div",Iu,[S(a,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},{default:R(function(){return[(D(),w(T,null,_(n,function(e){return S(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),64))]}),_:1},8,["modelValue"])])]}),_:1})}}});function _u(e){return[s({setup:function(t,n){var r=n.slots;return function(){return S(Cu,{options:e},"function"==typeof(t=r)||"[object Object]"===Object.prototype.toString.call(t)&&!J(t)?r:{default:function(){return[r]}});var t}}})]}var Cu=s({props:{value:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}}},setup:function(e,t){var n=t.slots;return function(){return S(T,null,[e.options.map(function(t){return function(e,t,n){var r=e.key,u=e.attrKey,a=e.label,o=r||u;switch(u){case"color":case"backgroundColor":return S(Jr,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"head":return S(Gr,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"padding":return S(Su,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"border":return S(wu,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"borderTop":return S(yu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"width":return S(Zr,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"widthAuto":return S(nu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"widthNumber":return S(ou,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"fontWeight":return S(lu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"fontSize":return S(cu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"lineHeight":return S(su,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"letterSpacing":return S(du,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"textAlign":return S(fu,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"borderRadius":return S(Ou,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"layout":return S(Tu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"custom":return function(e,t){if(e.render)return S(T,null,[e.render()]);var n;if(e.key)return null===(n=t[e.key])||void 0===n?void 0:n.call(t)}(e,n)}}(t,e.value,n)})])}}});var ku=ze(s({__name:"Collapse",props:{defaultExpandedNames:{}},setup:function(e){var t=e,n=y(t.defaultExpandedNames||[]);return E(function(){return t.defaultExpandedNames},function(e){e&&(n.value=e)}),function(e,t){var r=Q;return D(),C(r,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.value=e})},{default:R(function(){return[M(e.$slots,"default",{},void 0,!0)]}),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-8b08487e"]]),Eu={class:"text"},xu=s({__name:"ColumnItem",props:{active:{type:Boolean,default:!1},options:{default:function(){return[100]}}},setup:function(e){return function(t,n){return D(),w("div",{class:x(["columns-tools",{active:e.active}])},[(D(!0),w(T,null,_(e.options,function(e,t){return D(),w("div",{key:"".concat(t+1),class:"columns-item",style:N({flex:"0 0 ".concat(e,"%")})},[O("div",Eu,I((n=e,"".concat(Math.floor(n),"%"))),1)],4);var n}),128))],2)}}}),Pu=ze(xu,[["__scopeId","data-v-d52b3300"]]),Nu={class:"mt-4"},Uu=s({__name:"ColumnsConfig",setup:function(e){var t=[[100],[50,50],[33.33,33.33,33.34],[25,25,25,25],[33,67],[67,33]],r=y(Se.value[be.value].children[0]),a=g(function(){var e=Se.value[be.value];return e?e.children:[]}),o=g(function(){return a.value.map(function(e){return Number.parseFloat(ie.value[e].width)})}),i=function(e){return JSON.stringify(e)===JSON.stringify(o.value)},l=g({get:function(){return ke.value[be.value]},set:function(e){ke.value[be.value]=e}});E(l,function(){_e.$emit("makeDom")},{deep:!0}),E(Te,function(){_e.$emit("makeDom")},{deep:!0});var c=u(_u([{attrKey:"backgroundColor",label:"背景颜色"},{attrKey:"padding",label:"内边距"},{attrKey:"border",label:"边框"}]),1)[0],s=u(_u([{attrKey:"custom",render:function(){return S(Jr,{value:ke.value[be.value].style.backgroundColor,"onUpdate:value":function(e){return ke.value[be.value].style.backgroundColor=e},label:"背景颜色"},null)}},{attrKey:"custom",render:function(){return S(Su,{value:ke.value[be.value].style.padding,"onUpdate:value":function(e){return ke.value[be.value].style.padding=e},label:"内边距"},null)}}]),1)[0];function d(){Ae(r.value,be.value),j(function(){r.value=Se.value[be.value].children[0]})}return function(e,u){var a=G,o=Y,f=Z,g=ee,h=$e;return D(),C(ku,{"default-expanded-names":["1","2","3"]},{default:R(function(){return[S(f,{title:"列项",name:"1"},{default:R(function(){return[S(o,{gutter:16},{default:R(function(){return[(D(),w(T,null,_(t,function(e,t){return S(a,{span:12,key:"".concat(t+1)},{default:R(function(){return[S(Pu,{active:i(e),options:e,onClick:function(t){return p(je)(e,p(be))}},null,8,["active","options","onClick"])]}),_:2},1024)}),64))]}),_:1})]}),_:1}),S(f,{title:"列项样式",name:"2"},{default:R(function(){return[S(g,{size:"default",onClick:u[0]||(u[0]=function(){return p(Me)(p(be))})},{default:R(function(){return n(u[4]||(u[4]=[L(" 添加 ",-1)]))}),_:1}),p(Se)[p(be)].children.length>1?(D(),C(g,{key:0,class:"ml-2",size:"default",onClick:d},{default:R(function(){return n(u[5]||(u[5]=[L(" 删除 ",-1)]))}),_:1})):k("",!0),S(h,{modelValue:p(r),"onUpdate:modelValue":u[1]||(u[1]=function(e){return v(r)?r.value=e:null}),type:"bg-card",class:"mt-4",options:p(Se)[p(be)].children.map(function(e,t){return{label:"列项 ".concat(t+1),name:e}})},null,8,["modelValue","options"]),O("div",Nu,[S(p(c),{value:p(Te)[p(r)].style,"onUpdate:value":u[2]||(u[2]=function(e){return p(Te)[p(r)].style=e})},null,8,["value"])])]}),_:1}),S(f,{title:"列项样式",name:"3"},{default:R(function(){return[S(p(s),{value:p(l).style,"onUpdate:value":u[3]||(u[3]=function(e){return p(l).style=e})},null,8,["value"])]}),_:1})]}),_:1})}}}),Ku=ze(Uu,[["__scopeId","data-v-59cf3e91"]]),ju={class:"mt-3"},Mu=s({__name:"Link",props:{value:{},valueModifiers:{},target:{},targetModifiers:{}},emits:["update:value","update:target"],setup:function(e){var t=A(e,"value"),n=A(e,"target");return function(e,r){var u=te,a=q;return D(),C(Xr,{label:"链接"},{options:R(function(){return[O("div",null,[S(u,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},null,8,["modelValue"])]),O("div",ju,[S(a,{modelValue:n.value,"onUpdate:modelValue":r[1]||(r[1]=function(e){return n.value=e}),"active-value":"_blank","inactive-value":"_self"},null,8,["modelValue"]),r[2]||(r[2]=O("span",{class:"ml-2"},"在新窗口打开",-1))])]}),_:1})}}}),Au=s({__name:"ContentText",props:{value:{},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=te;return D(),C(Xr,{label:"内容"},{options:R(function(){return[O("div",null,[S(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e})},null,8,["modelValue"])])]}),_:1})}}}),Ru={class:"p-20px"},Lu=s({__name:"ButtonConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){console.log("测试"),he.value[be.value]=e}});E(t,function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"custom",render:function(){return S(Au,{value:t.value.content,"onUpdate:value":function(e){return t.value.content=e}},null)}},{attrKey:"custom",render:function(){return S(Mu,{value:t.value.info.href,"onUpdate:value":function(e){return t.value.info.href=e},target:t.value.info.target,"onUpdate:target":function(e){return t.value.info.target=e},label:"链接"},null)}},{attrKey:"backgroundColor",label:"背景颜色"},{attrKey:"color",label:"文本颜色"},{attrKey:"widthAuto",key:"width"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"},{attrKey:"custom",render:function(){return S(fu,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"padding"},{attrKey:"border"},{attrKey:"borderRadius"},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",Ru,[S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),Vu={class:"p-20px"},Hu=s({__name:"DividerConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){he.value[be.value]=e}});E(t,function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"width"},{attrKey:"borderTop"},{attrKey:"custom",render:function(){return S(fu,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",Vu,[S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),Bu={class:"p-20px"},Fu=s({__name:"HeaderConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){he.value[be.value]=e}});E(t,function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"custom",render:function(){return S(Au,{value:t.value.content,"onUpdate:value":function(e){return t.value.content=e}},null)}},{attrKey:"head",key:"fontSize"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"颜色"},{attrKey:"custom",render:function(){return S(fu,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"lineHeight"},{attrKey:"letterSpacing"},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",Bu,[S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),zu={class:"p-16px"},qu=s({__name:"TextConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){he.value[be.value]=e}});E(t,function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"custom",render:function(){return S(Au,{value:t.value.content,"onUpdate:value":function(e){return t.value.content=e}},null)}},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"文本颜色"},{attrKey:"textAlign"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",zu,[S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),Wu=s({__name:"Image",props:{value:{},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=te;return D(),C(Xr,{label:"图片链接"},{options:R(function(){return[S(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e})},null,8,["modelValue"])]}),_:1})}}}),$u=s({__name:"Title",props:{value:{},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=te;return D(),C(Xr,{label:"备用文本"},{options:R(function(){return[S(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e})},null,8,["modelValue"])]}),_:1})}}}),Xu={class:"p-20px"},Gu=s({__name:"ImageConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){he.value[be.value]=e}});E(t,function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"custom",render:function(){return S(Wu,{value:t.value.info.src,"onUpdate:value":function(e){return t.value.info.src=e}},null)}},{attrKey:"widthAuto",key:"width"},{attrKey:"custom",render:function(){return S(fu,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return S($u,{value:t.value.info.alt,"onUpdate:value":function(e){return t.value.info.alt=e}},null)}},{attrKey:"custom",render:function(){return S(Mu,{value:t.value.info.href,"onUpdate:value":function(e){return t.value.info.href=e},target:t.value.info.target,"onUpdate:target":function(e){return t.value.info.target=e}},null)}},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",Xu,[S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),Yu={class:"w-100px"},Ju={class:"w-100px"},Qu=s({__name:"MenuLinkItem",props:B({id:{},index:{},moveLink:{type:Function},findLink:{type:Function}},{label:{},labelModifiers:{},href:{},hrefModifiers:{}}),emits:B(["del"],["update:label","update:href"]),setup:function(e,t){var n=t.emit,r=e,a=n,o=A(e,"label"),i=A(e,"href"),l=function(){a("del")},c=Hn({type:"MenuLink",item:function(){return{id:r.id,index:r.index}},collect:function(e){return{isDragging:e.isDragging()}},end:function(e,t){var n=e.id,u=e.index;t.didDrop()||r.moveLink(n,u)}}),s=u(c,3),d=s[0],f=s[1],v=s[2],h=u($n(function(){return{accept:"MenuLink",hover:function(e){var t=e.id;if(t!==r.id){var n=r.findLink(r.id).index;r.moveLink(t,n)}}}}),2)[1],y=function(e){e&&v(h(e))},m=K(d).isDragging,b=g(function(){return p(m)?0:1});return function(e,t){var n=te,r=Fe;return D(),w("li",{ref:y,class:"link-items",style:N({opacity:p(b)})},[O("div",Yu,[S(n,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.value=e})},null,8,["modelValue"])]),O("div",Ju,[S(n,{modelValue:i.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.value=e})},null,8,["modelValue"])]),O("div",{class:"w-auto cursor-pointer",onClick:l},[S(r,{icon:"el-delete",size:13})]),O("div",{ref:p(f),class:"w-auto cursor-grab"},[S(r,{icon:"el-fullscreen-expand",size:13})],512)],4)}}}),Zu=ze(Qu,[["__scopeId","data-v-07159d39"]]),ea={class:"flex-1"},ta={class:"link-group"},na=s({__name:"MenuLink",setup:function(e){var t=g({get:function(){return he.value[be.value].links},set:function(e){he.value[be.value].links=e}}),r=function(){t.value.push({id:oe(6),label:"",href:""})},u=function(e){var n=t.value.filter(function(t){return"".concat(t.id)===e})[0];return{link:n,index:t.value.indexOf(n)}},a=function(e,n){var r=u(e),a=r.link,o=r.index;t.value.splice(o,1),t.value.splice(n,0,a)};return function(e,o){var i=ee,l=ne;return D(),C(l,{label:"Links"},{default:R(function(){return[O("div",ea,[O("ul",ta,[(D(!0),w(T,null,_(p(t),function(e,n){return D(),C(Zu,{label:e.label,"onUpdate:label":function(t){return e.label=t},href:e.href,"onUpdate:href":function(t){return e.href=t},id:e.id,index:n,key:e.id,item:e,"find-link":u,"move-link":a,onDel:function(e){return function(e){t.value.splice(e,1)}(n)}},null,8,["label","onUpdate:label","href","onUpdate:href","id","index","item","onDel"])}),128))]),S(i,{class:"mt-3 w-full",onClick:r},{default:R(function(){return n(o[0]||(o[0]=[L("添加",-1)]))}),_:1})])]}),_:1})}}}),ra=ze(na,[["__scopeId","data-v-8870bd5f"]]),ua={class:"p-16px"},aa=s({__name:"MenuConfig",setup:function(e){var t=g({get:function(){return he.value[be.value]},set:function(e){he.value[be.value]=e}});E(function(){return t.value},function(){_e.$emit("makeDom")},{deep:!0});var n=u(_u([{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"letterSpacing"},{attrKey:"color",label:"文本颜色"},{attrKey:"color",key:"linkColor",label:"链接颜色"},{attrKey:"custom",render:function(){return S(fu,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return S(Tu,{value:t.value.info.layout,"onUpdate:value":function(e){return t.value.info.layout=e}},null)}},{attrKey:"padding"},{attrKey:"custom",render:function(){return S(Su,{value:t.value.general.padding,"onUpdate:value":function(e){return t.value.general.padding=e},label:"内边距"},null)}}]),1)[0];return function(e,r){return D(),w("div",ua,[S(ra),S(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),oa=s({__name:"ConfigComponent",setup:function(e){return function(e,t){return D(),w("div",null,["columns"==p(we)?(D(),C(Ku,{key:0})):"button"==p(we)?(D(),C(Lu,{key:1})):"divider"==p(we)?(D(),C(Hu,{key:2})):"header"==p(we)?(D(),C(Fu,{key:3})):"text"==p(we)?(D(),C(qu,{key:4})):"image"==p(we)?(D(),C(Gu,{key:5})):"menu"==p(we)?(D(),C(aa,{key:6})):k("",!0)])}}}),ia={class:"p-20px"},la=s({__name:"ConfigPage",setup:function(e){E(Ee,function(){_e.$emit("makeDom")},{deep:!0});var t=u(_u([{attrKey:"color",key:"backgroundColor",label:"背景颜色"},{attrKey:"widthNumber",key:"maxWidth"}]),1)[0];return function(e,n){return D(),w("div",ia,[S(p(t),{value:p(Ee),"onUpdate:value":n[0]||(n[0]=function(e){return v(Ee)?Ee.value=e:null})},null,8,["value"])])}}}),ca=ze(s({__name:"index",setup:function(e){var t=y([{label:"内容配置",name:"component",render:function(){return S(oa,null,null)}},{label:"页面配置",name:"page",render:function(){return S(la,null,null)}}]),n=y("component");return function(e,r){var u=$e;return D(),C(u,{type:"card",options:p(t),modelValue:p(n),"onUpdate:modelValue":r[0]||(r[0]=function(e){return v(n)?n.value=e:null})},null,8,["options","modelValue"])}}}),[["__scopeId","data-v-829f61b1"]]),sa={class:"editor-content"},da={class:"editor-left"},fa={class:"editor-center"},va={class:"editor-right"};e("default",ze(s({__name:"index",props:{save:{}},setup:function(e,t){var n=t.expose,r=e;return r.save&&(Re.value=r.save),re(function(){Le()}),n({setEmailData:Ve,getEmailData:function(){return He.value},getEmailHTML:function(){return se.value}}),function(e,t){return D(),C(p(fn),{backend:p(gr)},{default:R(function(){return[O("div",sa,[O("div",da,[S(Dr)]),O("div",fa,[S(Fr,{onColumnDrag:p(Be)},null,8,["onColumnDrag"])]),O("div",va,[S(ca)])])]}),_:1},8,["backend"])}}}),[["__scopeId","data-v-745fa0c6"]]))}}})}();