import{_ as e}from"./index-3b70780d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as t,P as n,r as o,_ as i,o as l,l as r,w as a,c as s,F as u,y as c,H as d,aO as h,a4 as p,m as v,p as f,x as m,e as g,a as b,f as y,b5 as x,b as w,b6 as _,G as S,t as I,ao as E,z as A,a6 as C,b7 as D,aD as T,a2 as k,a3 as O,J as M,ab as N,ac as P,b3 as j,S as V,Y as F,av as X,aw as R}from"./index-20b58eed.js";/* empty css *//* empty css */import Y from"./generateLink-9e521c18.js";/* empty css *//* empty css */import"./http-1137b5ca.js";/* empty css *//* empty css */import"./index-e4654928.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-3baec7d9.js";import"./index-850f8962.js"; /*! * vue-draggable-next v2.2.0 * (c) 2023 Anish George * @license MIT */ /**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function z(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var q=z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),G=z(/Edge/i),Q=z(/firefox/i),Z=z(/safari/i)&&!z(/chrome/i)&&!z(/android/i),J=z(/iP(ad|od|hone)/i),K=z(/chrome/i)&&z(/android/i),ee={capture:!1,passive:!1};function te(e,t,n){e.addEventListener(t,n,!q&&ee)}function ne(e,t,n){e.removeEventListener(t,n,!q&&ee)}function oe(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function ie(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function le(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&oe(e,t):oe(e,t))||o&&e===n)return e;if(e===n)break}while(e=ie(e))}return null}var re,ae=/\s+/g;function se(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(ae," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(ae," ")}}function ue(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function ce(e,t){var n="";if("string"==typeof e)n=e;else do{var o=ue(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function de(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,l=o.length;if(n)for(;i=l:i<=l))return o;if(o===he())break;o=ye(o,!1)}return!1}function fe(e,t,n,o){for(var i=0,l=0,r=e.children;l2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=W(n,Te);De.pluginEvent.bind(_t)(e,t,B({dragEl:Me,parentEl:Ne,ghostEl:Pe,rootEl:je,nextEl:Ve,lastDownEl:Fe,cloneEl:Xe,cloneHidden:Re,dragStarted:Je,putSortable:He,activeSortable:_t.active,originalEvent:o,oldIndex:Ye,oldDraggableIndex:Be,newIndex:Le,newDraggableIndex:Ue,hideGhostForTarget:bt,unhideGhostForTarget:yt,cloneNowHidden:function(){Re=!0},cloneNowShown:function(){Re=!1},dispatchSortableEvent:function(e){Oe({sortable:t,name:e,originalEvent:o})}},i))};function Oe(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,l=e.cloneEl,r=e.toEl,a=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[Ie]){var f,m=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||q||G?(f=document.createEvent("Event")).initEvent(o,!0,!0):f=new CustomEvent(o,{bubbles:!0,cancelable:!0}),f.to=r||n,f.from=a||n,f.item=i||n,f.clone=l,f.oldIndex=s,f.newIndex=u,f.oldDraggableIndex=c,f.newDraggableIndex=d,f.originalEvent=h,f.pullMode=p?p.lastPutMode:void 0;var b=B(B({},v),De.getEventProperties(o,t));for(var y in b)f[y]=b[y];n&&n.dispatchEvent(f),m[g]&&m[g].call(t,f)}}(B({putSortable:He,cloneEl:Xe,targetEl:Me,rootEl:je,oldIndex:Ye,oldDraggableIndex:Be,newIndex:Le,newDraggableIndex:Ue},e))}var Me,Ne,Pe,je,Ve,Fe,Xe,Re,Ye,Le,Be,Ue,$e,He,We,ze,qe,Ge,Qe,Ze,Je,Ke,et,tt,nt,ot=!1,it=!1,lt=[],rt=!1,at=!1,st=[],ut=!1,ct=[],dt="undefined"!=typeof document,ht=J,pt=G||q?"cssFloat":"float",vt=dt&&!K&&!J&&"draggable"in document.createElement("div"),ft=function(){if(dt){if(q)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),mt=function(e,t){var n=ue(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=fe(e,0,t),l=fe(e,1,t),r=i&&ue(i),a=l&&ue(l),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+pe(i).width,u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+pe(l).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&"none"!==r.float){var c="left"===r.float?"left":"right";return!l||"both"!==a.clear&&a.clear!==c?"horizontal":"vertical"}return i&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=o&&"none"===n[pt]||l&&"none"===n[pt]&&s+u>o)?"vertical":"horizontal"},gt=function(e){function t(e,n){return function(o,i,l,r){var a=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,i,l,r),n)(o,i,l,r);var s=(n?o:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==U(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},bt=function(){!ft&&Pe&&ue(Pe,"display","none")},yt=function(){!ft&&Pe&&ue(Pe,"display","")};dt&&document.addEventListener("click",(function(e){if(it)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),it=!1,!1}),!0);var xt=function(e){if(Me){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,l=e.clientY,lt.some((function(e){var t=e[Ie].options.emptyInsertThreshold;if(t&&!me(e)){var n=pe(e),o=i>=n.left-t&&i<=n.right+t,a=l>=n.top-t&&l<=n.bottom+t;return o&&a?r=e:void 0}})),r);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ie]._onDragOver(n)}}var i,l,r},wt=function(e){Me&&Me.parentNode[Ie]._isOutsideThisEl(e.target)};function _t(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=H({},t),e[Ie]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return mt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_t.supportPointer&&"PointerEvent"in window&&!Z,emptyInsertThreshold:5};for(var o in De.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var i in gt(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&vt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?te(e,"pointerdown",this._onTapStart):(te(e,"mousedown",this._onTapStart),te(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(te(e,"dragover",this),te(e,"dragenter",this)),lt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),H(this,Ee())}function St(e,t,n,o,i,l,r,a){var s,u,c=e[Ie],d=c.options.onMove;return!window.CustomEvent||q||G?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=i||t,s.relatedRect=l||pe(t),s.willInsertAfter=a,s.originalEvent=r,e.dispatchEvent(s),d&&(u=d.call(c,s,r)),u}function It(e){e.draggable=!1}function Et(){ut=!1}function At(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Ct(e){return setTimeout(e,0)}function Dt(e){return clearTimeout(e)}_t.prototype={constructor:_t,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ke=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,i=o.preventOnFilter,l=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,u=o.filter;if(function(e){ct.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&ct.push(o)}}(n),!Me&&!(/mousedown|pointerdown/.test(l)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Z||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=le(a,o.draggable,n,!1))&&a.animated||Fe===a)){if(Ye=ge(a),Be=ge(a,o.draggable),"function"==typeof u){if(u.call(this,e,a,this))return Oe({sortable:t,rootEl:s,name:"filter",targetEl:a,toEl:n,fromEl:n}),ke("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=le(s,o.trim(),n,!1))return Oe({sortable:t,rootEl:o,name:"filter",targetEl:a,fromEl:n,toEl:n}),ke("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());o.handle&&!le(s,o.handle,n,!1)||this._prepareDragStart(e,r,a)}}},_prepareDragStart:function(e,t,n){var o,i=this,l=i.el,r=i.options,a=l.ownerDocument;if(n&&!Me&&n.parentNode===l){var s=pe(n);if(je=l,Ne=(Me=n).parentNode,Ve=Me.nextSibling,Fe=n,$e=r.group,_t.dragged=Me,We={target:Me,clientX:(t||e).clientX,clientY:(t||e).clientY},Qe=We.clientX-s.left,Ze=We.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Me.style["will-change"]="all",o=function(){ke("delayEnded",i,{evt:e}),_t.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Q&&i.nativeDraggable&&(Me.draggable=!0),i._triggerDragStart(e,t),Oe({sortable:i,name:"choose",originalEvent:e}),se(Me,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){de(Me,e.trim(),It)})),te(a,"dragover",xt),te(a,"mousemove",xt),te(a,"touchmove",xt),te(a,"mouseup",i._onDrop),te(a,"touchend",i._onDrop),te(a,"touchcancel",i._onDrop),Q&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Me.draggable=!0),ke("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(G||q))o();else{if(_t.eventCanceled)return void this._onDrop();te(a,"mouseup",i._disableDelayedDrag),te(a,"touchend",i._disableDelayedDrag),te(a,"touchcancel",i._disableDelayedDrag),te(a,"mousemove",i._delayedDragTouchMoveHandler),te(a,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&te(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Me&&It(Me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ne(e,"mouseup",this._disableDelayedDrag),ne(e,"touchend",this._disableDelayedDrag),ne(e,"touchcancel",this._disableDelayedDrag),ne(e,"mousemove",this._delayedDragTouchMoveHandler),ne(e,"touchmove",this._delayedDragTouchMoveHandler),ne(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?te(document,"pointermove",this._onTouchMove):te(document,t?"touchmove":"mousemove",this._onTouchMove):(te(Me,"dragend",this),te(je,"dragstart",this._onDragStart));try{document.selection?Ct((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(ot=!1,je&&Me){ke("dragStarted",this,{evt:t}),this.nativeDraggable&&te(document,"dragover",wt);var n=this.options;!e&&se(Me,n.dragClass,!1),se(Me,n.ghostClass,!0),_t.active=this,e&&this._appendGhost(),Oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ze){this._lastX=ze.clientX,this._lastY=ze.clientY,bt();for(var e=document.elementFromPoint(ze.clientX,ze.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ze.clientX,ze.clientY))!==t;)t=e;if(Me.parentNode[Ie]._isOutsideThisEl(e),t)do{if(t[Ie]){if(t[Ie]._onDragOver({clientX:ze.clientX,clientY:ze.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);yt()}},_onTouchMove:function(e){if(We){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,i=e.touches?e.touches[0]:e,l=Pe&&ce(Pe,!0),r=Pe&&l&&l.a,a=Pe&&l&&l.d,s=ht&&nt&&be(nt),u=(i.clientX-We.clientX+o.x)/(r||1)+(s?s[0]-st[0]:0)/(r||1),c=(i.clientY-We.clientY+o.y)/(a||1)+(s?s[1]-st[1]:0)/(a||1);if(!_t.active&&!ot){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}(e,i,this)&&!f.animated){if(f===Me)return O(!1);if(f&&l===e.target&&(r=f),r&&(n=pe(r)),!1!==St(je,l,Me,t,r,n,e,!!r))return k(),l.appendChild(Me),Ne=l,M(),O(!0)}else if(f&&function(e,t,n){var o=pe(fe(n.el,0,n.options,!0)),i=10;return t?e.clientXc+u*l/2:sd-tt)return-et}else if(s>c+u*(1-i)/2&&sd-u*l/2))return s>c+u/2?1:-1;return 0}(e,r,n,i,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,at,Ke===r),0!==g){var E=ge(Me);do{E-=g,y=Ne.children[E]}while(y&&("none"===ue(y,"display")||y===Pe))}if(0===g||y===r)return O(!1);Ke=r,et=g;var A=r.nextElementSibling,C=!1,D=St(je,l,Me,t,r,n,e,C=1===g);if(!1!==D)return 1!==D&&-1!==D||(C=1===D),ut=!0,setTimeout(Et,30),k(),C&&!A?l.appendChild(Me):r.parentNode.insertBefore(Me,C?A:r),S&&_e(S,0,I-S.scrollTop),Ne=Me.parentNode,void 0===b||at||(tt=Math.abs(b-pe(r)[_])),M(),O(!0)}if(l.contains(Me))return O(!1)}return!1}function T(a,s){ke(a,p,B({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:r,completed:O,onMove:function(n,o){return St(je,l,Me,t,n,pe(n),e,o)},changed:M},s))}function k(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function O(t){return T("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==h&&(se(Me,He?He.options.ghostClass:u.options.ghostClass,!1),se(Me,a.ghostClass,!0)),He!==p&&p!==_t.active?He=p:p===_t.active&&He&&(He=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Me&&!Me.animated||r===l&&!r.animated)&&(Ke=null),a.dragoverBubble||e.rootEl||r===document||(Me.parentNode[Ie]._isOutsideThisEl(e.target),!t&&xt(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function M(){Le=ge(Me),Ue=ge(Me,a.draggable),Oe({sortable:p,name:"change",toEl:l,newIndex:Le,newDraggableIndex:Ue,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ne(document,"mousemove",this._onTouchMove),ne(document,"touchmove",this._onTouchMove),ne(document,"pointermove",this._onTouchMove),ne(document,"dragover",xt),ne(document,"mousemove",xt),ne(document,"touchmove",xt)},_offUpEvents:function(){var e=this.el.ownerDocument;ne(e,"mouseup",this._onDrop),ne(e,"touchend",this._onDrop),ne(e,"pointerup",this._onDrop),ne(e,"touchcancel",this._onDrop),ne(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Le=ge(Me),Ue=ge(Me,n.draggable),ke("drop",this,{evt:e}),Ne=Me&&Me.parentNode,Le=ge(Me),Ue=ge(Me,n.draggable),_t.eventCanceled||(ot=!1,at=!1,rt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Dt(this.cloneId),Dt(this._dragStartId),this.nativeDraggable&&(ne(document,"drop",this),ne(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Z&&ue(document.body,"user-select",""),ue(Me,"transform",""),e&&(Je&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Pe&&Pe.parentNode&&Pe.parentNode.removeChild(Pe),(je===Ne||He&&"clone"!==He.lastPutMode)&&Xe&&Xe.parentNode&&Xe.parentNode.removeChild(Xe),Me&&(this.nativeDraggable&&ne(Me,"dragend",this),It(Me),Me.style["will-change"]="",Je&&!ot&&se(Me,He?He.options.ghostClass:this.options.ghostClass,!1),se(Me,this.options.chosenClass,!1),Oe({sortable:this,name:"unchoose",toEl:Ne,newIndex:null,newDraggableIndex:null,originalEvent:e}),je!==Ne?(Le>=0&&(Oe({rootEl:Ne,name:"add",toEl:Ne,fromEl:je,originalEvent:e}),Oe({sortable:this,name:"remove",toEl:Ne,originalEvent:e}),Oe({rootEl:Ne,name:"sort",toEl:Ne,fromEl:je,originalEvent:e}),Oe({sortable:this,name:"sort",toEl:Ne,originalEvent:e})),He&&He.save()):Le!==Ye&&Le>=0&&(Oe({sortable:this,name:"update",toEl:Ne,originalEvent:e}),Oe({sortable:this,name:"sort",toEl:Ne,originalEvent:e})),_t.active&&(null!=Le&&-1!==Le||(Le=Ye,Ue=Be),Oe({sortable:this,name:"end",toEl:Ne,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ke("nulling",this),je=Me=Ne=Pe=Ve=Xe=Fe=Re=We=ze=Je=Le=Ue=Ye=Be=Ke=et=He=$e=_t.dragged=_t.ghost=_t.clone=_t.active=null,ct.forEach((function(e){e.checked=!0})),ct.length=qe=Ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Me&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,i=n.length,l=this.options;oe.replace($t,((e,t)=>t?t.toUpperCase():""))));function Wt(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function zt(e,t,n){const o=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,o)}function qt(e,t){this.$nextTick((()=>this.$emit(e.toLowerCase(),t)))}function Gt(e){return t=>{null!==this.realList&&this["onDrag"+e](t),qt.call(this,e,t)}}const Qt=["Start","Add","Remove","Update","End"],Zt=["Choose","Unchoose","Sort","Filter","Clone"],Jt=["Move",...Qt,...Zt].map((e=>"on"+e));let Kt=null;const en={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},tn=t({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Qt.map((e=>e.toLowerCase())),...Zt.map((e=>e.toLowerCase()))],props:en,data:()=>({transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}),render(){const e=this.$slots.default?this.$slots.default():null,t=(o=this.$attrs,(i=this.componentData)?{...i.props,...i.attrs}:o);var o,i;return e?(this.transitionMode=function(e){if(!e||1!==e.length)return!1;const[{type:t}]=e;return!!t&&(n=t.name,["transition-group","TransitionGroup"].includes(n));var n}(e),n(this.getTag(),t,e)):n(this.getTag(),t,[])},created(){null!==this.list&&null!==this.modelValue&&Ut.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};Qt.forEach((t=>{e["on"+t]=Gt.call(this,t)})),Zt.forEach((t=>{e["on"+t]=qt.bind(this,t)}));const t=Object.keys(this.$attrs).reduce(((e,t)=>(e[Ht(t)]=this.$attrs[t],e)),{}),n=Object.assign({},t,e,{onMove:(e,t)=>this.onDragMove(e,t)});!("draggable"in n)&&(n.draggable=">*");const o=1===this.$el.nodeType?this.$el:this.$el.parentElement;this._sortable=new _t(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{void 0!==this._sortable&&this._sortable.destroy()}catch(e){}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(e){this.updateOptions(e)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?o(this.component):this.tag},updateOptions(e){for(var t in e){const n=Ht(t);-1===Jt.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick((()=>{this.visibleIndexes=function(e,t,n,o){if(!e)return[];const i=Object.values(e),l=t.length-o;return[...t].map(((e,t)=>t>=l?i.length:i.indexOf(e)))}(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)}))},getUnderlyingVm(e){const t=function(e,t){return Object.values(e).indexOf(t)}(this.getChildrenNodes()||[],e);if(-1===t)return null;return{index:t,element:this.realList[t]}},emitChanges(e){this.$nextTick((()=>{this.$emit("change",e)}))},alterList(e){if(this.list)return void e(this.list);const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){this.alterList((e=>e.splice(...arguments)))},updatePosition(e,t){this.alterList((n=>n.splice(t,0,n.splice(e,1)[0])))},getVmIndex(e){const t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(e){if(!this.noTransitionOnDrag||!this.transitionMode)return;this.getChildrenNodes()[e].data=null;const t=this.getComponent();t.children=[],t.kept=void 0},onDragStart(e){this.computeIndexes(),this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),Kt=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(void 0===t)return;Wt(e.item);const n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();const o={element:t,newIndex:n};this.emitChanges({added:o})},onDragRemove(e){if(zt(this.$el,e.item,e.oldIndex),"clone"===e.pullMode)return void Wt(e.clone);if(!this.context)return;const t=this.context.index;this.spliceList(t,1);const n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})},onDragUpdate(e){Wt(e.item),zt(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);const o={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:o})},updateProperty(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},onDragMove(e,t){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(e),i=this.context,l=this.computeFutureIndex(o,e);Object.assign(i,{futureIndex:l});return n(Object.assign({},e,{relatedContext:o,draggedContext:i}),t)},onDragEnd(){this.computeIndexes(),Kt=null},getTrargetedComponent:e=>e.__draggable_component__,getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getTrargetedComponent(e);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(e!==t&&o&&n.getUnderlyingVm){const e=n.getUnderlyingVm(t);if(e)return Object.assign(e,i)}return i},computeFutureIndex(e,t){const n=[...t.to.children].filter((e=>"none"!==e.style.display));if(0===n.length)return 0;const o=n.indexOf(t.related),i=e.component.getVmIndex(o);return-1!==n.indexOf(Kt)||!t.willInsertAfter?i:i+1}}});const nn=i(t({components:{draggable:tn},props:{headerText:{type:String,default:"header"},list:{type:Array,default:()=>[]},classString:{type:String,default:"board-column-content"},disabled:{type:Boolean,default:!1},options:{type:Object,default:()=>null}},setup:(e,{emit:t})=>({onEnd:e=>{t("end",e)}})}),[["render",function(e,t,n,i,p,v){const f=o("draggable");return l(),r(f,h({list:e.list},e.$attrs,{class:e.classString,disabled:e.disabled,onEnd:e.onEnd}),{default:a((()=>[(l(!0),s(u,null,c(e.list,((t,n)=>d(e.$slots,"default",{key:t.id,item:t,index:n},void 0,!0))),128))])),_:3},16,["list","class","disabled","onEnd"])}],["__scopeId","data-v-1b54743e"]]),on=e=>(X("data-v-3b2954c9"),e=e(),R(),e),ln={class:"wrapper"},rn={class:"custom-menu"},an={class:"menu-container"},sn={class:"device-wrap"},un={class:"device device-iphone-x"},cn={class:"device-frame"},dn={class:"device-content"},hn={class:"wechat-header"},pn={class:"header-inner"},vn={class:"wechat-menu"},fn=["onClick"],mn={key:0,class:"children-menu-items"},gn=["onClick"],bn=D('
',5),yn=on((()=>g("div",{class:"mt-5"},"可直接拖动菜单排序",-1))),xn={class:"edit-wrap"},wn={key:0},_n={class:"edit-content-wrap"},Sn={class:"edit-title"},In={key:0,class:"notice-text"},En={class:"edit-form"},An={key:0},Cn={key:2},Dn={class:"withdraw-popup-warn"},Tn=on((()=>g("span",null,"需先",-1))),kn=on((()=>g("span",null,",已关联的小程序可被使用在自定义菜单、模板消息和附近的小程序等场景中",-1))),On={key:3},Mn={key:4},Nn={key:1},Pn=on((()=>g("span",{style:{color:"#fd555d","padding-left":"10px"}},"受微信限制,如您发现微信显示有问题,请减少内容",-1))),jn={key:0},Vn={key:0},Fn={class:"withdraw-popup-warn"},Xn=on((()=>g("span",null,"需先",-1))),Rn=on((()=>g("span",null,",已关联的小程序可被使用在自定义菜单、模板消息和附近的小程序等场景中",-1))),Yn={key:1},Ln={key:2},Bn={key:1},Un=[on((()=>g("p",{class:"no-init"},"点击左侧菜单进行编辑操作",-1)))],$n={class:"flex justify-start m-9"},Hn=i(t({__name:"menu",emits:["close"],setup(t,{emit:n}){const o=v(3),i=v(!1),c=v({}),d=v({curActiveIndex:null,curSubActiveIndex:null,clickSubMenu:!1,init:!1,buttons:[]}),h=e=>e.showChildMenu,D=e=>{i.value=!0},X=e=>{d.value.clickSubMenu?d.value.buttons[d.value.curActiveIndex].sub_button[d.value.curSubActiveIndex].key=e:d.value.buttons[d.value.curActiveIndex].url=e},R=e=>{d.value.clickSubMenu?d.value.buttons[d.value.curActiveIndex].sub_button[d.value.curSubActiveIndex].url="":d.value.buttons[d.value.curActiveIndex].url=""},L=e=>{i.value=!1,d.value.clickSubMenu?d.value.buttons[d.value.curActiveIndex].sub_button[d.value.curSubActiveIndex].url=e.data.url:d.value.buttons[d.value.curActiveIndex].url=e.data.url,d.value},B=()=>{n("close")},U=()=>{d.value,(e=>{try{return e.forEach((e=>{if(e.sub_button.length<=0&&!e.name)throw new Error("菜单名称不能为空");if(e.sub_button.length<=0&&!e.url)throw new Error("链接不能为空");if(e.sub_button.length<=0&&"click"==e.type&&!e.content)throw new Error("文本内容不能为空");e.sub_button&&e.sub_button.length>0&&e.sub_button.forEach((e=>{if(!e.name)throw new Error("子菜单名称不能为空");if(!e.url)throw new Error("子菜单链接不能为空");if("click"==e.type&&!e.content)throw new Error("子菜单文本内容不能为空")}))})),!0}catch(t){return p.error(t.message),console.error(t.message),!1}})(d.value.buttons)},$=f((()=>{var e,t,n,o,i,l,r,a,s,u;return(null==(i=null==(o=null==(t=d.value)?void 0:t.buttons[null==(e=d.value)?void 0:e.curActiveIndex])?void 0:o.sub_button[null==(n=d.value)?void 0:n.curSubActiveIndex])?void 0:i.name)||(null==(u=null==(s=null==(r=d.value)?void 0:r.buttons[null==(l=d.value)?void 0:l.curActiveIndex])?void 0:s.sub_button[null==(a=d.value)?void 0:a.curSubActiveIndex])?void 0:u.type)})),H=v(!0),W=e=>{d.value.init=!0,d.value.clickSubMenu=!1,d.value.curSubActiveIndex=null,d.value.curActiveIndex=e.newDraggableIndex,d.value.buttons.forEach((e=>e.showChildMenu=!1)),d.value.buttons[e.newDraggableIndex].showChildMenu=!0},z=e=>{d.value.curSubActiveIndex=e.newDraggableIndex},q=()=>{d.value.init=!0,d.value.clickSubMenu=!0;let e=d.value.curActiveIndex;d.value.buttons[e].sub_button.push({name:"子菜单名称",url:"",key:"子菜单名称",content:"",type:"miniprogram"}),d.value.curSubActiveIndex=d.value.buttons[e].sub_button.length-1,d.value.buttons[e].hasChild=!0},G=()=>{d.value.curActiveIndex=null,d.value.curSubActiveIndex=null,d.value.init=!1};return m((()=>{d.value={curActiveIndex:0,curSubActiveIndex:null,clickSubMenu:!1,init:!0,buttons:[{name:"首页",hasChild:!1,showChildMenu:!0,content:"",type:"miniprogram",url:"",key:"首页",sub_button:[]},{name:"我的",hasChild:!1,showChildMenu:!1,content:"",type:"miniprogram",url:"",key:"我的",sub_button:[]},{name:"菜单名称3",hasChild:!0,showChildMenu:!1,content:"",type:"miniprogram",url:"",key:"菜单名称3",sub_button:[{key:"子菜单名称",type:"miniprogram",name:"子菜单名称",content:"",url:""}]}]}})),(t,n)=>{var p,v,f,m,Q,Z,J,K,ee,te,ne;const oe=k,ie=O,le=M,re=nn,ae=N,se=P,ue=j,ce=V,de=F,he=e;return l(),s(u,null,[g("div",ln,[g("div",rn,[b(ie,{label:"标题",class:"m-5",style:{width:"300px"},prop:"title",rules:[{required:!1,message:"标题必须填写"}]},{default:a((()=>[b(oe,{modelValue:y(c).title,"onUpdate:modelValue":n[0]||(n[0]=e=>y(c).title=e),name:"title",clearable:""},null,8,["modelValue"])])),_:1}),g("div",an,[g("div",sn,[g("div",un,[g("div",cn,[g("div",dn,[g("div",hn,[g("div",pn,[b(le,{class:"ml-3"},{default:a((()=>[b(y(x))])),_:1}),w(" 公众号 "),b(le,{class:"mr-3"},{default:a((()=>[b(y(_))])),_:1})])]),g("div",vn,[b(re,{list:y(d).buttons,classString:"flex-warpper",onEnd:W},{default:a((({item:e,index:t})=>{var n;return[(l(),s("div",{class:"wechat-menu-item",key:t},[g("p",{class:S(["menu-name",{"cur-menu":t===y(d).curActiveIndex}]),onClick:e=>(e=>{d.value.init=!0,d.value.clickSubMenu=!1,d.value.curSubActiveIndex=null;let t=d.value.buttons;if(e===d.value.curActiveIndex)return;if(null!==d.value.curActiveIndex&&d.value.buttons[d.value.curActiveIndex]&&(d.value.buttons[d.value.curActiveIndex].showChildMenu=!1),d.value.curActiveIndex=e,t[e])return void(d.value.buttons[d.value.curActiveIndex]&&(d.value.buttons[d.value.curActiveIndex].showChildMenu=!0));if(t.length>=o.value)return;d.value.buttons.push({name:"菜单名称",hasChild:!1,showChildMenu:!0,type:"miniprogram",url:"",key:"菜单名称",content:"",sub_button:[]})})(t)},I(e.name),11,fn),h(e)?(l(),s("div",mn,[b(re,{list:e.sub_button,onEnd:z},{default:a((({item:e,index:t})=>[(l(),s("div",{class:"children-menu-item",key:t,onClick:e=>{var n;(n=t)!==d.value.curSubActiveIndex&&(d.value.init=!0,d.value.clickSubMenu=!0,d.value.curSubActiveIndex=n)}},[g("p",{class:S(["menu-name",{"cur-name":y(d).curSubActiveIndex===t}])},I(e.name),3)],8,gn))])),_:2},1032,["list"]),(null==(n=null==e?void 0:e.sub_button)?void 0:n.length)<5?(l(),s("div",{key:0,class:"children-menu-item",onClick:q},[b(le,null,{default:a((()=>[b(y(E))])),_:1})])):A("",!0)])):A("",!0)]))]})),_:1},8,["list"])])])]),bn]),yn]),g("div",xn,[y(d).init?(l(),s("div",wn,[g("div",_n,[g("p",Sn,[w(I(y(d).clickSubMenu?null==(f=null==(v=null==(p=y(d))?void 0:p.buttons[y(d).curActiveIndex])?void 0:v.sub_button[y(d).curSubActiveIndex])?void 0:f.name:null==(Q=null==(m=y(d))?void 0:m.buttons[y(d).curActiveIndex])?void 0:Q.name)+" ",1),g("span",{class:"del-menu",onClick:n[1]||(n[1]=e=>(e=>{let t=d.value.curActiveIndex,n=d.value.curSubActiveIndex;T.confirm(e?"删除后“子菜单名称”菜单下设置的内容将被删除":"删除后“菜单名称”菜单下设置的内容将被删除","温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{e?(d.value.buttons[t].sub_button.splice(n,1),d.value.buttons[t].hasChild=d.value.buttons[t].sub_button.length>0,d.value.curSubActiveIndex=null,d.value.init=!1):(d.value.buttons.splice(t,1),d.value.buttons.length||(H.value=!0),G())})).catch((()=>{}))})(y(d).clickSubMenu))}," 删除"+I(y(d).clickSubMenu?"子菜单":"菜单"),1)]),(null==(K=null==(J=y(d))?void 0:J.buttons[null==(Z=y(d))?void 0:Z.curActiveIndex])?void 0:K.hasChild)&&!y(d).clickSubMenu?(l(),s("p",In," 已添加子菜单,仅可设置菜单名称。 ")):A("",!0),g("div",En,[y(d).clickSubMenu?(l(),s("div",An,[b(de,{model:null==(ee=y(d).buttons[y(d).curActiveIndex])?void 0:ee.sub_button[y(d).curSubActiveIndex],"label-width":"100px","label-position":"left"},{default:a((()=>{var e,t,o,i,u,c,h,p,v,f,m,x,_,S,I;return[y($)?(l(),r(ie,{key:0,label:"子菜单名称",prop:"title"},{default:a((()=>[b(oe,{onChange:X,modelValue:y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].name,"onUpdate:modelValue":n[2]||(n[2]=e=>y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].name=e),style:{width:"260px"}},null,8,["modelValue"])])),_:1})):A("",!0),y($)?(l(),r(ie,{key:1,label:"子菜单内容"},{default:a((()=>[b(se,{onChange:R,modelValue:y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].type,"onUpdate:modelValue":n[3]||(n[3]=e=>y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].type=e)},{default:a((()=>[b(ae,{class:"radio",label:"miniprogram"},{default:a((()=>[w("跳转小程序链接")])),_:1}),b(ae,{class:"radio",label:"view"},{default:a((()=>[w("跳转网页")])),_:1}),b(ae,{class:"radio",label:"click"},{default:a((()=>[w("纯文本")])),_:1})])),_:1},8,["modelValue"])])),_:1})):A("",!0),"miniprogram"==(null==(u=null==(i=null==(t=y(d))?void 0:t.buttons[null==(e=y(d))?void 0:e.curActiveIndex])?void 0:i.sub_button[null==(o=y(d))?void 0:o.curSubActiveIndex])?void 0:u.type)?(l(),s("div",Cn,[g("div",Dn,[Tn,b(ue,{class:"text-lg font-bold text-blue-400 cursor-pointer",type:"primary",href:"https://docs.qq.com/doc/DUWlNb0RsTXFQelFF",target:"_blank"},{default:a((()=>[w("关联小程序")])),_:1}),kn]),b(ie,{label:"链接"},{default:a((()=>[b(oe,{style:{width:"300px"},modelValue:y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].url,"onUpdate:modelValue":n[4]||(n[4]=e=>y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].url=e),"auto-complete":"off",placeholder:"请输入链接"},null,8,["modelValue"]),b(ce,{type:"primary",link:"",icon:y(E),onClick:n[5]||(n[5]=e=>D()),class:"mr-6"},{default:a((()=>[w("插入链接")])),_:1},8,["icon"])])),_:1})])):A("",!0),"view"==(null==(f=null==(v=null==(h=y(d))?void 0:h.buttons[null==(c=y(d))?void 0:c.curActiveIndex])?void 0:v.sub_button[null==(p=y(d))?void 0:p.curSubActiveIndex])?void 0:f.type)?(l(),s("div",On,[b(ie,{label:"网页链接"},{default:a((()=>[b(oe,{style:{width:"300px"},modelValue:y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].url,"onUpdate:modelValue":n[6]||(n[6]=e=>y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].url=e),"auto-complete":"off",placeholder:"请输入公众号文章链接"},null,8,["modelValue"])])),_:1})])):A("",!0),"click"==(null==(I=null==(S=null==(x=y(d))?void 0:x.buttons[null==(m=y(d))?void 0:m.curActiveIndex])?void 0:S.sub_button[null==(_=y(d))?void 0:_.curSubActiveIndex])?void 0:I.type)?(l(),s("div",Mn,[b(ie,{label:"文本内容"},{default:a((()=>[b(oe,{style:{width:"300px"},type:"textarea",modelValue:y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].content,"onUpdate:modelValue":n[7]||(n[7]=e=>y(d).buttons[y(d).curActiveIndex].sub_button[y(d).curSubActiveIndex].content=e),"auto-complete":"off",placeholder:"请输入文本内容"},null,8,["modelValue"])])),_:1})])):A("",!0)]})),_:1},8,["model"])])):(l(),s("div",Nn,[b(de,{model:null==(ne=y(d))?void 0:ne.buttons[null==(te=y(d))?void 0:te.curActiveIndex],"label-width":"100px","label-position":"left"},{default:a((()=>{var e,t,o,i,r,u,c,h,p;return[b(ie,{label:"菜单名称",prop:"title"},{default:a((()=>[b(oe,{modelValue:y(d).buttons[y(d).curActiveIndex].name,"onUpdate:modelValue":n[8]||(n[8]=e=>y(d).buttons[y(d).curActiveIndex].name=e),onChange:X,style:{width:"260px"},maxlength:10,placeholder:"请输入菜单名称(最多10个字符)"},null,8,["modelValue"]),Pn])),_:1}),y(d).buttons[y(d).curActiveIndex].sub_button.length?A("",!0):(l(),s("div",jn,[b(ie,{label:"菜单内容"},{default:a((()=>[b(se,{onChange:R,modelValue:y(d).buttons[y(d).curActiveIndex].type,"onUpdate:modelValue":n[9]||(n[9]=e=>y(d).buttons[y(d).curActiveIndex].type=e)},{default:a((()=>[b(ae,{class:"radio",label:"miniprogram"},{default:a((()=>[w("跳转小程序链接")])),_:1}),b(ae,{class:"radio",label:"view"},{default:a((()=>[w("跳转网页")])),_:1}),b(ae,{class:"radio",label:"click"},{default:a((()=>[w("纯文本")])),_:1})])),_:1},8,["modelValue"])])),_:1}),"miniprogram"==(null==(o=null==(t=y(d))?void 0:t.buttons[null==(e=y(d))?void 0:e.curActiveIndex])?void 0:o.type)?(l(),s("div",Vn,[g("div",Fn,[Xn,b(ue,{class:"text-lg font-bold text-blue-400 cursor-pointer",type:"primary",href:"https://docs.qq.com/doc/DUWlNb0RsTXFQelFF",target:"_blank"},{default:a((()=>[w("关联小程序")])),_:1}),Rn]),b(ie,{label:"链接"},{default:a((()=>[b(oe,{style:{width:"300px"},modelValue:y(d).buttons[y(d).curActiveIndex].url,"onUpdate:modelValue":n[10]||(n[10]=e=>y(d).buttons[y(d).curActiveIndex].url=e),"auto-complete":"off",placeholder:"请输入链接"},null,8,["modelValue"]),b(ce,{type:"primary",link:"",icon:y(E),onClick:n[11]||(n[11]=e=>D()),class:"mr-6"},{default:a((()=>[w("插入链接")])),_:1},8,["icon"])])),_:1})])):A("",!0),"view"==(null==(u=null==(r=y(d))?void 0:r.buttons[null==(i=y(d))?void 0:i.curActiveIndex])?void 0:u.type)?(l(),s("div",Yn,[b(ie,{label:"网页链接"},{default:a((()=>[b(oe,{style:{width:"300px"},modelValue:y(d).buttons[y(d).curActiveIndex].url,"onUpdate:modelValue":n[12]||(n[12]=e=>y(d).buttons[y(d).curActiveIndex].url=e),"auto-complete":"off",placeholder:"请输入公众号文章链接"},null,8,["modelValue"])])),_:1})])):A("",!0),"click"==(null==(p=null==(h=y(d))?void 0:h.buttons[null==(c=y(d))?void 0:c.curActiveIndex])?void 0:p.type)?(l(),s("div",Ln,[b(ie,{label:"文本内容"},{default:a((()=>[b(oe,{style:{width:"300px"},type:"textarea",modelValue:y(d).buttons[y(d).curActiveIndex].content,"onUpdate:modelValue":n[13]||(n[13]=e=>y(d).buttons[y(d).curActiveIndex].content=e),"auto-complete":"off",placeholder:"请输入文本内容"},null,8,["modelValue"])])),_:1})])):A("",!0)]))]})),_:1},8,["model"])]))])])])):(l(),s("div",Bn,Un))])]),g("div",$n,[b(ce,{size:"default",onClick:B},{default:a((()=>[w("取消")])),_:1}),b(ce,{type:"primary",onClick:U},{default:a((()=>[w("确认")])),_:1})])])]),b(he,{modelValue:y(i),"onUpdate:modelValue":n[14]||(n[14]=e=>C(i)?i.value=e:null),title:"选择链接","destroy-on-close":""},{default:a((()=>[b(Y,{onSuccess:L})])),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-3b2954c9"]]);export{Hn as default};