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