← Back
Editing: index-legacy327.js
!function(){function e(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 t(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 n(e){for(var n=1;n<arguments.length;n++){var u=null!=arguments[n]?arguments[n]:{};n%2?t(Object(u),!0).forEach((function(t){r(e,t,u[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(u)):t(Object(u)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(u,t))}))}return e}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"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}function f(e){return f="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},f(e)}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy55.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./useMethod-legacy7.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./header-nav-tools.vue_vue_type_script_setup_true_lang-legacy.js?v=VERSION_NUMBER","./useMethod-legacy8.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./form-item-legacy.js?v=VERSION_NUMBER"],(function(t,a){"use strict";var o,l,s,d,v,p,g,h,y,m,b,D,S,w,O,I,T,_,C,k,E,x,P,N,U,K,j,M,A,R,L,V,H,F,B,z,q,W,$,X,G,Y,J,Z,Q,ee,te,ne,re,ue,ae,oe,ie,le,ce,se,fe,de,ve,pe,ge,he,ye,me,be,De,Se,we,Oe,Ie,Te,_e,Ce,ke,Ee,xe,Pe,Ne,Ue,Ke,je,Me,Ae,Re,Le,Ve,He,Fe,Be,ze,qe,We,$e,Xe;return{setters:[function(e){o=e.Z,l=e.ay,s=e.c,d=e.a4,v=e.P,p=e.x,g=e.g,h=e.aG,y=e.r,m=e.k,b=e.ca,D=e.q,S=e.v,w=e.e,O=e.y,I=e.z,T=e.F,_=e.a_,C=e.M,k=e.C,E=e.w,x=e.J,P=e.N,N=e.K,U=e.d,K=e.cb,j=e.n,M=e.L,A=e.X,R=e.A,L=e.B,V=e.ah,H=e.af,F=e.W,B=e.b1,z=e.b2,q=e.al,W=e.R,$=e.ai,X=e.aj,G=e.b8,Y=e.b9,J=e.i,Z=e.bw,Q=e.bv,ee=e.D,te=e.S,ne=e.a9,re=e.aD},function(e){ue=e.c,ae=e.v,oe=e.g,ie=e.a,le=e.i,ce=e.b,se=e.e,fe=e.D,de=e.d,ve=e.f,pe=e.h,ge=e.j,he=e.k,ye=e.l,me=e.m,be=e.n,De=e.o,Se=e.p,we=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,Fe=e.M},function(e){Be=e._,ze=e.e,qe=e.n,We=e.L,$e=e.al},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",Ze=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+Ze(),REPLACE:"@@redux/REPLACE"+Ze(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ze()}};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 d(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"!==f(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:Qe.INIT}),(r={dispatch:v,subscribe:d,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ye(10));u=e,v({type:Qe.REPLACE})}})[Je]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==f(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"===f(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 ft(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 f=l.getSource(c).beginDrag(i,c);if(null!=f){!function(e){tt(nt(e),"Item must be an object.")}(f),l.pinSource(c);var d=l.getSourceType(c);return{type:ut,payload:{itemType:d,item:f,sourceId:c,clientOffset:a||null,sourceClientOffset:s||null,isSourcePublic:!!u}}}}else e.dispatch(st)}}function dt(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){dt(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:ft(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 St=[],wt=[];St.__IS_NONE__=!0,wt.__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!==St&&(e===wt||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"===f(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 Ft(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 Bt=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 Ft(this.dragSources,e)||Ft(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 St;default:return wt}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 St;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 Zt(){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 Qt(){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:Qt(r.refCount,u),dragOperation:Zt(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 Bt(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]:fn(),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 fn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var dn=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,d((function(){if(i){var e=fn();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":f(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 Sn(e,t,n,r){var u=void 0;if(void 0!==u)return!!u;if(e===t)return!0;if("object"!==f(e)||!e||"object"!==f(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],d=t[c];if(!1===(u=void 0)||void 0===u&&s!==d)return!1}return!0}function wn(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!Sn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},t.didDragPreviewOptionsChange=function(){return!Sn(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},wn(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!Sn(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"===f(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"==f(t)&&"object"==f(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 Fn=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 Bn(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 Bn(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 Bn(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 Fn(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 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__",Zn="__NATIVE_URL__",Qn="__NATIVE_TEXT__",er="__NATIVE_HTML__",tr=Object.freeze(Object.defineProperty({__proto__:null,FILE:Jn,HTML:er,TEXT:Qn,URL:Zn},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"]}),Zn,{exposeProperties:{urls:function(e,t){return nr(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Qn,{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=[],f=0;f<r-1;f++)o=t[f+1]-t[f],l=n[f+1]-n[f],c.push(o),s.push(l/o);for(var d=[s[0]],v=0;v<c.length-1;v++){var p=s[v],g=s[v+1];if(p*g<=0)d.push(0);else{o=c[v];var h=c[v+1],y=o+h;d.push(3*y/((y+h)/p+(y+o)/g))}}d.push(s[s.length-1]);for(var m,b=[],D=[],S=0;S<d.length-1;S++){m=s[S];var w=d[S],O=1/c[S],I=w+d[S+1]-m-m;b.push((m-w-I)*O),D.push(I*O*O)}this.xs=t,this.ys=n,this.c1s=d,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 f=e-t[o=Math.max(0,c)],d=f*f;return n[o]+r[o]*f+u[o]*d+a[o]*f*d}}])}();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,f=r.anchorX,d=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(f),y:m?y:(a=new ir([0,.5,1],[l.y,l.y/s*g,l.y+g-s]).interpolate(d),or()&&o&&(a+=(window.devicePixelRatio-1)*g),a)}}var fr=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 dr(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){dr(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(f){}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 fr(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(e,t){var r=Be;return D(),S("div",{ref:p(n),class:"comp-box"},[w(r,{icon:"".concat(e.itemConfig.icon),size:24},null,8,["icon"]),O("div",hr,I(e.itemConfig.name),1)],512)}}}),[["__scopeId","data-v-93d061c6"]]),mr={class:"pt-8px"},br={class:"comp-list"},Dr=ze(s({__name:"index",setup:function(e){return function(e,t){return D(),S("div",mr,[t[0]||(t[0]=O("div",{class:"comp-title"},"基础组件",-1)),O("div",br,[(D(!0),S(T,null,_(p(ce),(function(e){return D(),C(yr,{key:e.type,"item-config":e},null,8,["item-config"])})),128))])])}}}),[["__scopeId","data-v-c60896d4"]]),Sr=["innerHTML"],wr=s({__name:"index",setup:function(e){return function(e,t){return D(),S("div",{innerHTML:p(se)},null,8,Sr)}}}),Or={class:"editor-tools"},Ir=ze(s({__name:"index",setup:function(e){var t=function(){qe({title:"预览",area:80,component:wr})};return function(e,n){var r=Be;return D(),S("div",Or,[O("div",null,[O("span",{class:"cursor-pointer",onClick:t},[w(r,{icon:"el-view",size:18})])]),O("div",null,[k("",!0)])])}}}),[["__scopeId","data-v-e19a90a0"]]),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=VERSION_NUMBER")}),void 0,a.meta.url)})),i=U((function(){return We((function(){return a.import("./Divider-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),l=U((function(){return We((function(){return a.import("./Header-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),c=U((function(){return We((function(){return a.import("./Text-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),s=U((function(){return We((function(){return a.import("./Image-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),f=U((function(){return We((function(){return a.import("./Menu-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),d=U((function(){return We((function(){return a.import("./Html-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)})),v=U((function(){return We((function(){return a.import("./Other-legacy.js?v=VERSION_NUMBER")}),void 0,a.meta.url)}));var h=y(""),m=u(Hn({type:fe.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:de.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 F(e){H.value=K(A(e))}n({compSort:V,key:r.compKey});var B=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 f;case"html":return d;default:return v}}));function q(){for(var e in De.value=!0,Se.value=ye.value[r.compKey].type,be.value=r.compKey,we.value)we.value[e].children.includes(r.cellKey)&&(Oe.value=e)}function W(e){Ie(r.compKey,r.cellKey),e.stopPropagation()}return function(e,t){var n,r=Be;return D(),S("div",{ref:F,class:x(["comp-wrapper",{indicator:p(b).isDragging||"indicator"==e.compKey}]),onClick:q,"data-handler-id":p(M).handlerId,style:N(p(B))},[p(b).isDragging?k("",!0):(D(),S(T,{key:0},[O("div",{class:x(["viewer-selector",{active:p(be)===e.compKey}])},[O("div",{class:"viewer-drag",ref:p(_)},[w(r,{icon:"el-fullscreen-expand",color:"#fff",size:20})],512),O("div",_r,[O("div",{class:"action-btn",onClick:t[0]||(t[0]=function(){return p(me)(e.compKey,e.cellKey)})},[w(r,{icon:"el-document-copy",size:16,color:"#fff"})]),O("div",{class:"action-btn",onClick:W},[w(r,{icon:"el-delete",size:16,color:"#fff"})])]),p(ye)[e.compKey]?(D(),S("div",Cr,I((n=p(ye)[e.compKey].type,n.charAt(0).toUpperCase()+n.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-bfb37480"]]),xr={class:"viewer-empty"};var Pr=ze({},[["render",function(e,t){return D(),S("div",xr,t[0]||(t[0]=[O("div",null,"这里没有内容,请从左侧拖动内容。",-1)]))}],["__scopeId","data-v-08b083e1"]]),Nr=s({__name:"CellContainer",props:{cellKey:{},columnKey:{}},setup:function(e){var t=e,r=y(!1),a=g((function(){return!r.value&&0===ie.value[t.cellKey].children.length})),o=g((function(){return n(n({},ge(Te.value[t.cellKey])),{},{width:ie.value[t.cellKey].width})})),i=$n({accept:de,collect:function(e){return{isShallowOver:e.isOver()}},drop:function(e){var n=ie.value[t.cellKey].children.indexOf("indicator");if(n>-1&&ie.value[t.cellKey].children.splice(n,1),"0"==e.key){r.value=!1;var u=oe();Ce(t.cellKey,u,e.type,n)}},hover:function(e){"0"==e.key&&(r.value=!0,ie.value[t.cellKey].children.includes("indicator")||ie.value[t.cellKey].children.push("indicator"))}}),l=u(i,2),c=l[0],s=l[1],f=K(c).isShallowOver;E((function(){return f.value}),(function(e){e||(r.value=!1,ie.value[t.cellKey].children=ie.value[t.cellKey].children.filter((function(e){return"indicator"!=e})))}));var d,v,h=y(null),m=function(e){e&&(h.value=s(e))},b=g((function(){return we.value[t.columnKey].children.findIndex((function(e){return e==t.cellKey}))!==we.value[t.columnKey].children.length-1})),w=g((function(){var e=we.value[t.columnKey].children.findIndex((function(e){return e==t.cellKey}));return-1!==e&&e<we.value[t.columnKey].children.length-1?we.value[t.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){d=document.querySelector("#cell_".concat(t.cellKey)),v=document.querySelector("#cell_".concat(w.value)),P=e.clientX-I.value;var n="calc(".concat(ie.value[t.cellKey].width," + ").concat(P,"px)"),r="calc(".concat(ie.value[w.value].width," - ").concat(P,"px)");d.offsetWidth<=50||v.offsetWidth<=50||(d.style.width=n,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[t.cellKey].width.split("%")[0])/100);ie.value[t.cellKey].width=Number((100*(Number(ie.value[t.cellKey].width.split("%")[0])/100+e)).toFixed(2))+"%",ie.value[w.value].width=Number((100*(Number(ie.value[w.value].width.split("%")[0])/100-e)).toFixed(2))+"%",j((function(){x=0,P=0,I.value=0,_e.$emit("makeDom")}))}})))}return function(e,t){return D(),S("div",{ref:m,class:"column-item",style:N(p(o))},[p(a)?(D(),C(Pr,{key:0})):k("",!0),(D(!0),S(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(),S("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-5f65df3e"]]),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 t=e,r=g((function(){return ge(ke.value[t.columnKey])})),a=g((function(){return Ee.value.maxWidth}));var o=u(Hn({type:"Drag_Columns",item:function(){return{key:t.columnKey}},collect:function(e){return{isDragging:e.isDragging()}}}),3),i=o[0],l=o[1],c=o[2],s=K(i).isDragging,f=u($n({accept:"Drag_Columns",hover:function(e,n){if(h(),e.key!=t.columnKey){var r=E.value.getBoundingClientRect(),u=r.top+(r.bottom-r.top)/2,a=n.getClientOffset();a.y<u&&Pe(t.columnKey,e.key),a.y>u&&Ne(t.columnKey,e.key)}},drop:function(){m()},collect:function(e){return{handlerId:e.getHandlerId()}}}),2),d=f[0],v=f[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(d).handlerId,E=y(),P=function(e){E.value=c(v(e))};function U(){var e=t.columnKey,n=we.value[e],r=n.key,u=n.type;Se.value=u,be.value=r,De.value=!0}return function(e,t){var u,o=Be;return D(),S("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(),S(T,{key:0},[O("div",{class:x(["viewer-selector",{active:p(be)===e.columnKey}])},[O("div",{ref:p(l),class:"viewer-drag"},[w(o,{icon:"el-fullscreen-expand",color:"#fff",size:20})],512),O("div",jr,[k("",!0),O("div",{class:"action-btn",onClick:t[0]||(t[0]=function(){return p(xe)(e.columnKey)})},[w(o,{icon:"el-delete",size:16,color:"#fff"})])]),p(we)[e.columnKey]?(D(),S("div",Mr,I((u=p(we)[e.columnKey].type,u.charAt(0).toUpperCase()+u.slice(1))),1)):k("",!0)],2),O("div",{class:"columns-container",style:N(n(n({},p(r)),{},{maxWidth:p(a),zIndex:p(Oe)==e.columnKey?2e3:100}))},[(D(!0),S(T,null,_(p(we)[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-762eefb3"]]),Rr={class:"editor-container"},Lr={key:0,class:"drag-empty"},Vr={key:1,class:"drag-empty-box"},Hr={key:0,class:"drag-empty-box"},Fr=s({__name:"index",emits:["columnDrag"],setup:function(t,n){var r=n.emit,a=y(null),o=y(!1),i=y(0),l=g((function(){return{backgroundColor:Ee.value.backgroundColor}})),c=u($n({accept:[].concat(e(de),[fe.Columns]),collect:function(e){return{isShallowOver:e.isOver({shallow:!0})}},drop:function(e){e.type==fe.Columns&&(r("columnDrag",e,i.value),i.value=0,o.value=!1)},hover:function(e,t){if(e.type==fe.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=d.value}),150)();else if(d.value){if(Ke.value.length&&"0"==e.key){var n=Ke.value.at(-1),r={};we.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],f=c[1],d=K(s).isShallowOver,v=function(e){e&&(a.value=f(e))},h=function(){Se.value="",be.value=""};return function(e,t){return D(),S("div",{class:"flex flex-col h-full",onClickCapture:h},[w(Ir),O("div",Rr,[O("div",{ref:v,class:"editor-draggable",style:N(p(l))},[p(o)||0!==p(Ke).length?k("",!0):(D(),S("div",Lr," 这里没有内容,请从左侧拖动内容。 ")),p(o)&&0===p(i)?(D(),S("div",Vr)):k("",!0),(D(!0),S(T,null,_(p(Ke),(function(e,t){return D(),S(T,{key:e},[w(Ar,{"column-key":e},null,8,["column-key"]),p(o)&&t+1===p(i)?(D(),S("div",Hr)):k("",!0)],64)})),128))],4)])],32)}}}),Br=ze(Fr,[["__scopeId","data-v-7c1c71f3"]]),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(),S("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-561c82e6"]]),Gr=s({__name:"Head",props:{value:{},valueModifiers:{}},emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=V,u=H;return D(),C(Xr,{label:"标题类型"},{value:R((function(){return[w(u,{size:"default",modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e})},{default:R((function(){return[w(r,{label:"22px"},{default:R((function(){return n[1]||(n[1]=[L("H1")])})),_:1}),w(r,{label:"20px"},{default:R((function(){return n[2]||(n[2]=[L("H2")])})),_:1}),w(r,{label:"18px"},{default:R((function(){return n[3]||(n[3]=[L("H3")])})),_:1}),w(r,{label:"16px"},{default:R((function(){return n[4]||(n[4]=[L("H4")])})),_:1})]})),_:1},8,["modelValue"])]})),_:1})}}}),Yr={class:"w-32px"},Jr=s({__name:"Color",props:F({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=B;return D(),C(Xr,{label:e.label},{value:R((function(){return[O("div",Yr,[w(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e}),"show-alpha":!1,"color-format":"hex"},null,8,["modelValue"])])]})),_:1},8,["label"])}}}),Zr={class:"w-180px"},Qr=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",Zr,[w(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)),w(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,[w(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(),S("span",tu,I(r.value)+"%",1))])]})),_:1})}}}),ru={class:"el-input-group"},uu={class:"el-input-group__append"},au=s({__name:"BaseNumber",props:F({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(),S("div",ru,[w(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[w(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:F({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,[w(a,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},{default:R((function(){return[(D(),S(T,null,_(n,(function(e){return w(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[w(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[w(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e}),unit:"%",step:10},null,8,["value"])]})),_:1})}}}),fu=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[w(au,{value:t.value,"onUpdate:value":n[0]||(n[0]=function(e){return t.value=e})},null,8,["value"])]})),_:1})}}}),du=s({__name:"TextAlign",props:F({label:{default:""}},{value:{},valueModifiers:{}}),emits:["update:value"],setup:function(e){var t=A(e,"value");return function(e,n){var r=V,u=H;return D(),C(Xr,{label:e.label||"文本对齐"},{value:R((function(){return[w(u,{size:"default",modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return t.value=e})},{default:R((function(){return[w(r,{label:"left"},{default:R((function(){return n[1]||(n[1]=[L("左对齐")])})),_:1}),w(r,{label:"center"},{default:R((function(){return n[2]||(n[2]=[L("居中对齐")])})),_:1}),w(r,{label:"right"},{default:R((function(){return n[3]||(n[3]=[L("右对齐")])})),_: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=B;return D(),S("div",vu,[w(au,{value:a.value,"onUpdate:value":[t[0]||(t[0]=function(e){return a.value=e}),i],placeholder:""},null,8,["value"]),O("div",pu,[w(l,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.value=e}),onChange:i},{default:R((function(){return[(D(),S(T,null,_(n,(function(e){return w(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])})),64))]})),_:1},8,["modelValue"])]),O("div",gu,[w(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[w(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(),S("div",mu,[M(e.$slots,"default")])}]]),Du=s({__name:"MoreOptions",props:{show:{type:Boolean,default:!1}},setup:function(e){return function(e,t){var n=G,r=Y;return e.show?(D(),C(r,{key:1,gutter:8},{default:R((function(){return[w(n,{span:12,class:"mb-2"},{default:R((function(){return[w(bu,null,{default:R((function(){return t[1]||(t[1]=[L("上边框")])})),_:1}),M(e.$slots,"top")]})),_:3}),w(n,{span:12,class:"mb-2"},{default:R((function(){return[w(bu,null,{default:R((function(){return t[2]||(t[2]=[L("右边框")])})),_:1}),M(e.$slots,"right")]})),_:3}),w(n,{span:12,class:"mb-2"},{default:R((function(){return[w(bu,null,{default:R((function(){return t[3]||(t[3]=[L("左边框")])})),_:1}),M(e.$slots,"left")]})),_:3}),w(n,{span:12,class:"mb-2"},{default:R((function(){return[w(bu,null,{default:R((function(){return t[4]||(t[4]=[L("下边框")])})),_:1}),M(e.$slots,"bottom")]})),_:3})]})),_:3})):(D(),S(T,{key:0},[w(bu,null,{default:R((function(){return t[0]||(t[0]=[L("所有边框")])})),_:1}),M(e.$slots,"all")],64))}}}),Su=s({__name:"Border",props:F({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(e,r){var u=q;return D(),C(Xr,{label:e.label||"边框"},{value:R((function(){return[r[6]||(r[6]=O("span",{class:"mr-12px"},"更多选项",-1)),w(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[w(Du,{show:t.value.more},{all:R((function(){return[w(hu,{value:t.value.all,"onUpdate:value":r[1]||(r[1]=function(e){return t.value.all=e})},null,8,["value"])]})),top:R((function(){return[w(hu,{value:t.value.top,"onUpdate:value":r[2]||(r[2]=function(e){return t.value.top=e})},null,8,["value"])]})),left:R((function(){return[w(hu,{value:t.value.left,"onUpdate:value":r[3]||(r[3]=function(e){return t.value.left=e})},null,8,["value"])]})),right:R((function(){return[w(hu,{value:t.value.right,"onUpdate:value":r[4]||(r[4]=function(e){return t.value.right=e})},null,8,["value"])]})),bottom:R((function(){return[w(hu,{value:t.value.bottom,"onUpdate:value":r[5]||(r[5]=function(e){return t.value.bottom=e})},null,8,["value"])]})),_:1},8,["show"])]})),_:1},8,["label"])}}}),wu=s({__name:"Padding",props:F({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(e,r){var u=q;return D(),C(Xr,{label:e.label||"内边距"},{value:R((function(){return[r[6]||(r[6]=O("span",{class:"mr-12px"},"更多选项",-1)),w(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[w(Du,{show:t.value.more},{all:R((function(){return[w(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[w(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[w(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[w(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[w(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},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)),w(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[w(Du,{show:t.value.more},{all:R((function(){return[w(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[w(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[w(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[w(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[w(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:F({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,[w(a,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},{default:R((function(){return[(D(),S(T,null,_(n,(function(e){return w(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 w(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 w(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 w(Jr,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"head":return w(Gr,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"padding":return w(wu,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"border":return w(Su,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"borderTop":return w(yu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"width":return w(Qr,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"widthAuto":return w(nu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"widthNumber":return w(ou,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"fontWeight":return w(lu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"fontSize":return w(cu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"lineHeight":return w(su,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"letterSpacing":return w(fu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"textAlign":return w(du,{value:t[o],"onUpdate:value":function(e){return t[o]=e},label:a},null);case"borderRadius":return w(Ou,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"layout":return w(Tu,{value:t[o],"onUpdate:value":function(e){return t[o]=e}},null);case"custom":return function(e,t){if(e.render)return w(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=Z;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-e9555d11"]]),Eu={class:"text"},xu=s({__name:"ColumnItem",props:{active:{type:Boolean,default:!1},options:{default:function(){return[100]}}},setup:function(e){return function(e,t){return D(),S("div",{class:x(["columns-tools",{active:e.active}])},[(D(!0),S(T,null,_(e.options,(function(e,t){return D(),S("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-5204d82f"]]),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]],n=y(we.value[be.value].children[0]),r=g((function(){var e=we.value[be.value];return e?e.children:[]})),a=g((function(){return r.value.map((function(e){return Number.parseFloat(ie.value[e].width)}))})),o=function(e){return JSON.stringify(e)===JSON.stringify(a.value)},i=g({get:function(){return ke.value[be.value]},set:function(e){ke.value[be.value]=e}});E(i,(function(){_e.$emit("makeDom")}),{deep:!0}),E(Te,(function(){_e.$emit("makeDom")}),{deep:!0});var l=u(_u([{attrKey:"backgroundColor",label:"背景颜色"},{attrKey:"padding",label:"内边距"},{attrKey:"border",label:"边框"}]),1)[0],c=u(_u([{attrKey:"custom",render:function(){return w(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 w(wu,{value:ke.value[be.value].style.padding,"onUpdate:value":function(e){return ke.value[be.value].style.padding=e},label:"内边距"},null)}}]),1)[0];function s(){Ae(n.value,be.value),j((function(){n.value=we.value[be.value].children[0]}))}return function(e,r){var u=G,a=Y,f=Q,d=ee,g=$e;return D(),C(ku,{"default-expanded-names":["1","2","3"]},{default:R((function(){return[w(f,{title:"列项",name:"1"},{default:R((function(){return[w(a,{gutter:16},{default:R((function(){return[(D(),S(T,null,_(t,(function(e,t){return w(u,{span:12,key:"".concat(t+1)},{default:R((function(){return[w(Pu,{active:o(e),options:e,onClick:function(t){return p(je)(e,p(be))}},null,8,["active","options","onClick"])]})),_:2},1024)})),64))]})),_:1})]})),_:1}),w(f,{title:"列项样式",name:"2"},{default:R((function(){return[w(d,{size:"default",onClick:r[0]||(r[0]=function(){return p(Me)(p(be))})},{default:R((function(){return r[4]||(r[4]=[L(" 添加 ")])})),_:1}),p(we)[p(be)].children.length>1?(D(),C(d,{key:0,class:"ml-2",size:"default",onClick:s},{default:R((function(){return r[5]||(r[5]=[L(" 删除 ")])})),_:1})):k("",!0),w(g,{modelValue:p(n),"onUpdate:modelValue":r[1]||(r[1]=function(e){return v(n)?n.value=e:null}),type:"bg-card",class:"mt-4",options:p(we)[p(be)].children.map((function(e,t){return{label:"列项 ".concat(t+1),name:e}}))},null,8,["modelValue","options"]),O("div",Nu,[w(p(l),{value:p(Te)[p(n)].style,"onUpdate:value":r[2]||(r[2]=function(e){return p(Te)[p(n)].style=e})},null,8,["value"])])]})),_:1}),w(f,{title:"列项样式",name:"3"},{default:R((function(){return[w(p(c),{value:p(i).style,"onUpdate:value":r[3]||(r[3]=function(e){return p(i).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,[w(u,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return t.value=e})},null,8,["modelValue"])]),O("div",ju,[w(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,[w(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){he.value[be.value]=e}});E(t,(function(){_e.$emit("makeDom")}),{deep:!0});var n=u(_u([{attrKey:"custom",render:function(){return w(Au,{value:t.value.content,"onUpdate:value":function(e){return t.value.content=e}},null)}},{attrKey:"custom",render:function(){return w(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 w(du,{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 w(wu,{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(),S("div",Ru,[w(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 w(du,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return w(wu,{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(),S("div",Vu,[w(p(n),{value:p(t).style,"onUpdate:value":r[0]||(r[0]=function(e){return p(t).style=e})},null,8,["value"])])}}}),Fu={class:"p-20px"},Bu=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 w(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 w(du,{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 w(wu,{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(),S("div",Fu,[w(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 w(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 w(wu,{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(),S("div",zu,[w(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[w(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[w(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 w(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 w(du,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return w($u,{value:t.value.info.alt,"onUpdate:value":function(e){return t.value.info.alt=e}},null)}},{attrKey:"custom",render:function(){return w(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 w(wu,{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(),S("div",Xu,[w(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"},Zu=s({__name:"MenuLinkItem",props:F({id:{},index:{},moveLink:{type:Function},findLink:{type:Function}},{label:{},labelModifiers:{},href:{},hrefModifiers:{}}),emits:F(["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),f=s[0],d=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(f).isDragging,b=g((function(){return p(m)?0:1}));return function(e,t){var n=te,r=Be;return D(),S("li",{ref:y,class:"link-items",style:N({opacity:p(b)})},[O("div",Yu,[w(n,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.value=e})},null,8,["modelValue"])]),O("div",Ju,[w(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},[w(r,{icon:"el-delete",size:13})]),O("div",{ref:p(d),class:"w-auto cursor-grab"},[w(r,{icon:"el-fullscreen-expand",size:13})],512)],4)}}}),Qu=ze(Zu,[["__scopeId","data-v-3ecdb7d7"]]),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}}),n=function(){t.value.push({id:oe(6),label:"",href:""})},r=function(e){var n=t.value.filter((function(t){return"".concat(t.id)===e}))[0];return{link:n,index:t.value.indexOf(n)}},u=function(e,n){var u=r(e),a=u.link,o=u.index;t.value.splice(o,1),t.value.splice(n,0,a)};return function(e,a){var o=ee,i=ne;return D(),C(i,{label:"Links"},{default:R((function(){return[O("div",ea,[O("ul",ta,[(D(!0),S(T,null,_(p(t),(function(e,n){return D(),C(Qu,{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":r,"move-link":u,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))]),w(o,{class:"mt-3 w-full",onClick:n},{default:R((function(){return a[0]||(a[0]=[L("添加")])})),_: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 w(du,{value:t.value.general.textAlign,"onUpdate:value":function(e){return t.value.general.textAlign=e},label:"对齐方式"},null)}},{attrKey:"custom",render:function(){return w(Tu,{value:t.value.info.layout,"onUpdate:value":function(e){return t.value.info.layout=e}},null)}},{attrKey:"padding"},{attrKey:"custom",render:function(){return w(wu,{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(),S("div",ua,[w(ra),w(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(),S("div",null,["columns"==p(Se)?(D(),C(Ku,{key:0})):"button"==p(Se)?(D(),C(Lu,{key:1})):"divider"==p(Se)?(D(),C(Hu,{key:2})):"header"==p(Se)?(D(),C(Bu,{key:3})):"text"==p(Se)?(D(),C(qu,{key:4})):"image"==p(Se)?(D(),C(Gu,{key:5})):"menu"==p(Se)?(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(),S("div",ia,[w(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 w(oa,null,null)}},{label:"页面配置",name:"page",render:function(){return w(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"},fa={class:"editor-left"},da={class:"editor-center"},va={class:"editor-right"};t("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(dn),{backend:p(gr)},{default:R((function(){return[O("div",sa,[O("div",fa,[w(Dr)]),O("div",da,[w(Br,{onColumnDrag:p(Fe)},null,8,["onColumnDrag"])]),O("div",va,[w(ca)])])]})),_:1},8,["backend"])}}}),[["__scopeId","data-v-57f6b4d2"]]))}}}))}();
Save File
Cancel