123456789101112 |
- 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 <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e){return(W="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})(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},q.apply(this,arguments)}function G(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=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++)n(o[i],i);return o}return[]}function fe(){var e=document.scrollingElement;return e||document.documentElement}function me(e,t,n,o,i){if(e.getBoundingClientRect||e===window){var r,l,a,s,u,c,d;if(e!==window&&e.parentNode&&e!==fe()?(l=(r=e.getBoundingClientRect()).top,a=r.left,s=r.bottom,u=r.right,c=r.height,d=r.width):(l=0,a=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Q))do{if(i&&i.getBoundingClientRect&&("none"!==he(i,"transform")||n&&"static"!==he(i,"position"))){var h=i.getBoundingClientRect();l-=h.top+parseInt(he(i,"border-top-width")),a-=h.left+parseInt(he(i,"border-left-width")),s=l+r.height,u=a+r.width;break}}while(i=i.parentNode);if(o&&e!==window){var p=pe(i||e),v=p&&p.a,f=p&&p.d;p&&(s=(l/=f)+(c/=f),u=(a/=v)+(d/=v))}return{top:l,left:a,bottom:s,right:u,width:d,height:c}}}function ge(e,t,n){for(var o=_e(e,!0),i=me(e)[t];o;){var r=me(o)[n];if(!("top"===n||"left"===n?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;r<l.length;){if("none"!==l[r].style.display&&l[r]!==Et.ghost&&(o||l[r]!==Et.dragged)&&se(l[r],n.draggable,e,!1)){if(i===t)return l[r];i++}r++}return null}function ye(e,t){for(var n=e.lastElementChild;n&&(n===Et.ghost||"none"===he(n,"display")||t&&!le(n,t));)n=n.previousElementSibling;return n||null}function we(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Et.clone||t&&!le(e,t)||n++;return n}function xe(e){var t=0,n=0,o=fe();if(e)do{var i=pe(e),r=i.a,l=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*l}while(e!==o&&(e=e.parentNode));return[t,n]}function _e(e,t){if(!e||!e.getBoundingClientRect)return fe();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=he(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return fe();if(o||t)return n;o=!0}}}while(n=n.parentNode);return fe()}function Se(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Ie(e,t){return function(){if(!ue){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),ue=setTimeout((function(){ue=void 0}),t)}}}function Ee(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ae(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Ce="Sortable"+(new Date).getTime();function De(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==he(e,"display")&&e!==Et.ghost){t.push({target:e,rect:me(e)});var n=H({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=pe(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,r=0;t.forEach((function(e){var t=0,n=e.target,l=n.fromRect,a=me(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=pe(n,!0);d&&(a.top-=d.f,a.left-=d.e),n.toRect=a,n.thisAnimationDuration&&Se(s,a)&&!Se(l,a)&&(c.top-a.top)/(c.left-a.left)==(l.top-a.top)/(l.left-a.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,s,u,o.options)),Se(a,l)||(n.prevFromRect=l,n.prevToRect=a,t||(t=o.options.animation),o.animate(n,c,a,t)),t&&(i=!0,r=Math.max(r,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),r):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){he(e,"transition",""),he(e,"transform","");var i=pe(this.el),r=i&&i.a,l=i&&i.d,a=(t.left-n.left)/(r||1),s=(t.top-n.top)/(l||1);e.animatingX=!!a,e.animatingY=!!s,he(e,"transform","translate3d("+a+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),he(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),he(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){he(e,"transition",""),he(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var Te=[],ke={initializeByDefault:!0},Oe={mount:function(e){for(var t in ke)ke.hasOwnProperty(t)&&!(t in e)&&(e[t]=ke[t]);Te.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Te.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=e+"Global";Te.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](H({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](H({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var i in Te.forEach((function(o){var i=o.pluginName;if(e.options[i]||o.initializeByDefault){var r=new o(e,t,e.options);r.sortable=e,r.options=e.options,e[i]=r,q(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var r=this.modifyOption(e,i,e.options[i]);void 0!==r&&(e.options[i]=r)}},getEventProperties:function(e,t){var n={};return Te.forEach((function(o){"function"==typeof o.eventProperties&&q(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return Te.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(o=i.optionListeners[t].call(e[i.pluginName],n))})),o}};var Me=["evt"],Ne=function(e,t){var n=arguments.length>2&&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))<n)return;this._onDragStart(e,!0)}if(Fe){r?(r.e+=u-(Qe||0),r.f+=c-(Ze||0)):r={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");he(Fe,"webkitTransform",d),he(Fe,"mozTransform",d),he(Fe,"msTransform",d),he(Fe,"transform",d),Qe=u,Ze=c,Je=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Fe){var e=this.options.fallbackOnBody?document.body:Xe,t=me(je,!0,ft,!0,e),n=this.options;if(ft){for(rt=e;"static"===he(rt,"position")&&"none"===he(rt,"transform")&&rt!==document;)rt=rt.parentNode;rt!==document.body&&rt!==document.documentElement?(rt===document&&(rt=fe()),t.top+=rt.scrollTop,t.left+=rt.scrollLeft):rt=fe(),dt=xe(rt)}de(Fe=je.cloneNode(!0),n.ghostClass,!1),de(Fe,n.fallbackClass,!0),de(Fe,n.dragClass,!0),he(Fe,"transition",""),he(Fe,"transform",""),he(Fe,"box-sizing","border-box"),he(Fe,"margin",0),he(Fe,"top",t.top),he(Fe,"left",t.left),he(Fe,"width",t.width),he(Fe,"height",t.height),he(Fe,"opacity","0.8"),he(Fe,"position",ft?"absolute":"fixed"),he(Fe,"zIndex","100000"),he(Fe,"pointerEvents","none"),Et.ghost=Fe,e.appendChild(Fe),he(Fe,"transform-origin",Ke/parseInt(Fe.style.width)*100+"% "+et/parseInt(Fe.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,i=n.options;Ne("dragStart",this,{evt:e}),Et.eventCanceled?this._onDrop():(Ne("setupClone",this),Et.eventCanceled||((Le=Ae(je)).draggable=!1,Le.style["will-change"]="",this._hideClone(),de(Le,this.options.chosenClass,!1),Et.clone=Le),n.cloneId=kt((function(){Ne("clone",n),Et.eventCanceled||(n.options.removeCloneOnHide||Xe.insertBefore(Le,je),n._hideClone(),Pe({sortable:n,name:"clone"}))})),!t&&de(je,i.dragClass,!0),t?(at=!0,n._loopId=setInterval(n._emulateDragOver,50)):(re(document,"mouseup",n._onDrop),re(document,"touchend",n._onDrop),re(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,je)),ie(document,"drop",n),he(je,"transform","translateZ(0)")),lt=!0,n._dragStartId=kt(n._dragStarted.bind(n,t,e)),ie(document,"selectstart",n),tt=!0,ee&&he(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,i,r=this.el,l=e.target,a=this.options,s=a.group,u=Et.active,c=ze===s,d=a.sort,h=qe||u,p=this,v=!1;if(!ht){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=se(l,a.draggable,r,!0),T("dragOver"),Et.eventCanceled)return v;if(je.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return O(!1);if(at=!1,u&&!a.disabled&&(c?d||(o=Ve!==Xe):qe===this||(this.lastPutMode=ze.checkPull(this,u,je,e))&&s.checkPut(this,u,je,e))){if(i="vertical"===this._getDirection(e,l),t=me(je),T("dragOverValid"),Et.eventCanceled)return v;if(o)return Ve=Xe,k(),this._hideClone(),T("revert"),Et.eventCanceled||(Re?Xe.insertBefore(je,Re):Xe.appendChild(je)),O(!0);var f=ye(r,a.draggable);if(!f||function(e,t,n){var o=me(ye(n.el,n.options.draggable)),i=10;return t?e.clientX>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.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}(e,i,this)){var m=be(r,0,a,!0);if(m===je)return O(!1);if(n=me(l=m),!1!==At(Xe,r,je,t,l,n,e,!1))return k(),r.insertBefore(je,m),Ve=r,M(),O(!0)}else if(l.parentNode===r){n=me(l);var g,b,y,w=je.parentNode!==r,x=!function(e,t,n){var o=n?e.left:e.top,i=n?e.right:e.bottom,r=n?e.width:e.height,l=n?t.left:t.top,a=n?t.right:t.bottom,s=n?t.width:t.height;return o===l||i===a||o+r/2===l+s/2}(je.animated&&je.toRect||t,l.animated&&l.toRect||n,i),_=i?"top":"left",S=ge(l,"top","top")||ge(je,"top","top"),I=S?S.scrollTop:void 0;if(nt!==l&&(b=n[_],ut=!1,ct=!x&&a.invertSwap||w),g=function(e,t,n,o,i,r,l,a){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!l)if(a&&it<u*i){if(!ut&&(1===ot?s>c+u*r/2:s<d-u*r/2)&&(ut=!0),ut)h=!0;else if(1===ot?s<c+it:s>d-it)return-ot}else if(s>c+u*(1-i)/2&&s<d-u*(1-i)/2)return function(e){return we(je)<we(e)?1:-1}(t);if((h=h||l)&&(s<c+u*r/2||s>d-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;o<i;o++)se(e=n[o],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Tt(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var i=o.children[t];se(i,this.options.draggable,o,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return se(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=Oe.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&wt(n)},destroy:function(){Ne("destroy",this);var e=this.el;e[Ce]=null,re(e,"mousedown",this._onTapStart),re(e,"touchstart",this._onTapStart),re(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(re(e,"dragover",this),re(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),st.splice(st.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Be){if(Ne("hideClone",this),Et.eventCanceled)return;he(Le,"display","none"),this.options.removeCloneOnHide&&Le.parentNode&&Le.parentNode.removeChild(Le),Be=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Be){if(Ne("showClone",this),Et.eventCanceled)return;je.parentNode!=Xe||this.options.group.revertClone?Re?Xe.insertBefore(Le,Re):Xe.appendChild(Le):Xe.insertBefore(Le,je),this.options.group.revertClone&&this.animate(je,Le),he(Le,"display",""),Be=!1}}else this._hideClone()}},vt&&ie(document,"touchmove",(function(e){(Et.active||lt)&&e.cancelable&&e.preventDefault()})),Et.utils={on:ie,off:re,css:he,find:ve,is:function(e,t){return!!se(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Ie,closest:se,toggleClass:de,clone:Ae,index:we,nextTick:kt,cancelNextTick:Ot,detectDirection:yt,getChild:be},Et.get=function(e){return e[Ce]},Et.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Et.utils=H(H({},Et.utils),e.utils)),Oe.mount(e)}))},Et.create=function(e,t){return new Et(e,t)},Et.version="1.14.0";var Mt,Nt,Pt,jt,Vt,Ft,Xt=[],Rt=!1;function Yt(){Xt.forEach((function(e){clearInterval(e.pid)})),Xt=[]}function Lt(){clearInterval(Ft)}var Bt=Ie((function(e,t,n,o){if(t.scroll){var i,r=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,u=fe(),c=!1;Nt!==n&&(Nt=n,Yt(),Mt=t.scroll,i=t.scrollFn,!0===Mt&&(Mt=_e(n,!0)));var d=0,h=Mt;do{var p=h,v=me(p),f=v.top,m=v.bottom,g=v.left,b=v.right,y=v.width,w=v.height,x=void 0,_=void 0,S=p.scrollWidth,I=p.scrollHeight,E=he(p),A=p.scrollLeft,C=p.scrollTop;p===u?(x=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),_=w<I&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(x=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX),_=w<I&&("auto"===E.overflowY||"scroll"===E.overflowY));var D=x&&(Math.abs(b-r)<=a&&A+y<S)-(Math.abs(g-r)<=a&&!!A),T=_&&(Math.abs(m-l)<=a&&C+w<I)-(Math.abs(f-l)<=a&&!!C);if(!Xt[d])for(var k=0;k<=d;k++)Xt[k]||(Xt[k]={});Xt[d].vx==D&&Xt[d].vy==T&&Xt[d].el===p||(Xt[d].el=p,Xt[d].vx=D,Xt[d].vy=T,clearInterval(Xt[d].pid),0==D&&0==T||(c=!0,Xt[d].pid=setInterval(function(){o&&0===this.layer&&Et.active._onTouchMove(Vt);var t=Xt[this.layer].vy?Xt[this.layer].vy*s:0,n=Xt[this.layer].vx?Xt[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Et.dragged.parentNode[Ce],n,t,e,Vt,Xt[this.layer].el)||Ee(Xt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=_e(h,!1)));Rt=c}}),30),Ut=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,i=e.activeSortable,r=e.dispatchSortableEvent,l=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var s=n||i;l();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);a(),s&&!s.el.contains(c)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function $t(){}function Ht(){}$t.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=be(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ut},q($t,{pluginName:"revertOnSpill"}),Ht.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Ut},q(Ht,{pluginName:"removeOnSpill"}),Et.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ie(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ie(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ie(document,"touchmove",this._handleFallbackAutoScroll):ie(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?re(document,"dragover",this._handleAutoScroll):(re(document,"pointermove",this._handleFallbackAutoScroll),re(document,"touchmove",this._handleFallbackAutoScroll),re(document,"mousemove",this._handleFallbackAutoScroll)),Lt(),Yt(),clearTimeout(ue),ue=void 0},nulling:function(){Vt=Nt=Mt=Rt=Ft=Pt=jt=null,Xt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(o,i);if(Vt=e,t||this.options.forceAutoScrollFallback||Z||Q||ee){Bt(e,this.options,r,t);var l=_e(r,!0);!Rt||Ft&&o===Pt&&i===jt||(Ft&&Lt(),Ft=setInterval((function(){var r=_e(document.elementFromPoint(o,i),!0);r!==l&&(l=r,Yt()),Bt(e,n.options,r,t)}),10),Pt=o,jt=i)}else{if(!this.options.bubbleScroll||_e(r,!0)===fe())return void Yt();Bt(e,this.options,_e(r,!1),!1)}}},q(e,{pluginName:"scroll",initializeByDefault:!0})}),Et.mount(Ht,$t);const Wt="undefined"!=typeof window?window.console:global.console;const zt=/-(\w)/g,qt=function(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}((e=>e.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('<div class="device-stripe" data-v-af2b4cfe></div><div class="device-header" data-v-af2b4cfe></div><div class="device-sensors" data-v-af2b4cfe></div><div class="device-btns" data-v-af2b4cfe></div><div class="device-power" data-v-af2b4cfe></div>',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};
|