scrumboard.ec45b4c8.js 56 KB

12345678910
  1. import{d as De,h as Oe,r as Ge,o as U,c as q,a as c,_ as un,u as cn,b as fn,e as pt,f as E,g as Ae,F as ee,i as ne,w as F,j as P,I as Pe,t as it,k as hn,l as pn,m as Ne,n as Me,p as jt,v as Xt}from"./index.c685e846.js";import{_ as mn}from"./carousel1.01799c1e.js";import{S as gn}from"./sweetalert2.all.79a6bcd7.js";import{I as vn}from"./icon-calendar.287aa693.js";import{I as Le}from"./icon-trash-lines.e25f038f.js";import{f as oe,N as ie,o as bt,V as re,_ as ae,I as se}from"./icon-x.6c3c1ce6.js";import"./micro-task.27a59902.js";/*!
  2. * vue-draggable-next v2.1.0
  3. * (c) 2021 Anish George
  4. * @license MIT
  5. *//**!
  6. * Sortable 1.14.0
  7. * @author RubaXa <trash@rubaxa.org>
  8. * @author owenm <owen23355@gmail.com>
  9. * @license MIT
  10. */function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fe(Object(n),!0).forEach(function(o){bn(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Ht(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ht=function(t){return typeof t}:Ht=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(e)}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(){return at=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},at.apply(this,arguments)}function _n(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,r;for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yn(e,t){if(e==null)return{};var n=_n(e,t),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(n[o]=e[o]))}return n}var wn="1.14.0";function rt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var st=rt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Lt=rt(/Edge/i),$e=rt(/firefox/i),Ot=rt(/safari/i)&&!rt(/chrome/i)&&!rt(/android/i),Ue=rt(/iP(ad|od|hone)/i),xn=rt(/chrome/i)&&rt(/android/i),qe={capture:!1,passive:!1};function T(e,t,n){e.addEventListener(t,n,!st&&qe)}function C(e,t,n){e.removeEventListener(t,n,!st&&qe)}function qt(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{return!1}return!1}}function En(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function et(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&qt(e,t):qt(e,t))||o&&e===n)return e;if(e===n)break}while(e=En(e))}return null}var je=/\s+/g;function H(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(je," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(je," ")}}function m(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function Et(e,t){var n="";if(typeof e=="string")n=e;else do{var o=m(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Je(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 nt(){var e=document.scrollingElement;return e||document.documentElement}function L(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var r,a,s,l,d,p,f;if(e!==window&&e.parentNode&&e!==nt()?(r=e.getBoundingClientRect(),a=r.top,s=r.left,l=r.bottom,d=r.right,p=r.height,f=r.width):(a=0,s=0,l=window.innerHeight,d=window.innerWidth,p=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!st))do if(i&&i.getBoundingClientRect&&(m(i,"transform")!=="none"||n&&m(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(m(i,"border-top-width")),s-=y.left+parseInt(m(i,"border-left-width")),l=a+r.height,d=s+r.width;break}while(i=i.parentNode);if(o&&e!==window){var D=Et(i||e),w=D&&D.a,S=D&&D.d;D&&(a/=S,s/=w,f/=w,p/=S,l=a+p,d=s+f)}return{top:a,left:s,bottom:l,right:d,width:f,height:p}}}function Xe(e,t,n){for(var o=ct(e,!0),i=L(e)[t];o;){var r=L(o)[n],a=void 0;if(n==="top"||n==="left"?a=i>=r:a=i<=r,!a)return o;if(o===nt())break;o=ct(o,!1)}return!1}function Ct(e,t,n,o){for(var i=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==g.ghost&&(o||a[r]!==g.dragged)&&et(a[r],n.draggable,e,!1)){if(i===t)return a[r];i++}r++}return null}function Se(e,t){for(var n=e.lastElementChild;n&&(n===g.ghost||m(n,"display")==="none"||t&&!qt(n,t));)n=n.previousElementSibling;return n||null}function J(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==g.clone&&(!t||qt(e,t))&&n++;return n}function Be(e){var t=0,n=0,o=nt();if(e)do{var i=Et(e),r=i.a,a=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function Cn(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}function ct(e,t){if(!e||!e.getBoundingClientRect)return nt();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=m(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return nt();if(o||t)return n;o=!0}}while(n=n.parentNode);return nt()}function Dn(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function le(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)}var At;function Ze(e,t){return function(){if(!At){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),At=setTimeout(function(){At=void 0},t)}}}function Sn(){clearTimeout(At),At=void 0}function Ke(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Qe(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 z="Sortable"+new Date().getTime();function Tn(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(m(i,"display")==="none"||i===g.ghost)){e.push({target:i,rect:L(i)});var r=ot({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=Et(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(Cn(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,a=0;e.forEach(function(s){var l=0,d=s.target,p=d.fromRect,f=L(d),y=d.prevFromRect,D=d.prevToRect,w=s.rect,S=Et(d,!0);S&&(f.top-=S.f,f.left-=S.e),d.toRect=f,d.thisAnimationDuration&&le(y,f)&&!le(p,f)&&(w.top-f.top)/(w.left-f.left)===(p.top-f.top)/(p.left-f.left)&&(l=kn(w,y,D,i.options)),le(f,p)||(d.prevFromRect=p,d.prevToRect=f,l||(l=i.options.animation),i.animate(d,w,f,l)),l&&(r=!0,a=Math.max(a,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},a):typeof o=="function"&&o(),e=[]},animate:function(o,i,r,a){if(a){m(o,"transition",""),m(o,"transform","");var s=Et(this.el),l=s&&s.a,d=s&&s.d,p=(i.left-r.left)/(l||1),f=(i.top-r.top)/(d||1);o.animatingX=!!p,o.animatingY=!!f,m(o,"transform","translate3d("+p+"px,"+f+"px,0)"),this.forRepaintDummy=In(o),m(o,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),m(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){m(o,"transition",""),m(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},a)}}}}function In(e){return e.offsetWidth}function kn(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}var _t=[],de={initializeByDefault:!0},Ft={mount:function(t){for(var n in de)de.hasOwnProperty(n)&&!(n in t)&&(t[n]=de[n]);_t.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),_t.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=t+"Global";_t.forEach(function(a){!n[a.pluginName]||(n[a.pluginName][r]&&n[a.pluginName][r](ot({sortable:n},o)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](ot({sortable:n},o)))})},initializePlugins:function(t,n,o,i){_t.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var d=new s(t,n,t.options);d.sortable=t,d.options=t.options,t[l]=d,at(o,d.defaults)}});for(var r in t.options)if(!!t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);typeof a<"u"&&(t.options[r]=a)}},getEventProperties:function(t,n){var o={};return _t.forEach(function(i){typeof i.eventProperties=="function"&&at(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return _t.forEach(function(r){!t[r.pluginName]||r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(t[r.pluginName],o))}),i}};function On(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,d=e.newIndex,p=e.oldDraggableIndex,f=e.newDraggableIndex,y=e.originalEvent,D=e.putSortable,w=e.extraEventProperties;if(t=t||n&&n[z],!!t){var S,V=t.options,X="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!st&&!Lt?S=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(o,!0,!0)),S.to=a||n,S.from=s||n,S.item=i||n,S.clone=r,S.oldIndex=l,S.newIndex=d,S.oldDraggableIndex=p,S.newDraggableIndex=f,S.originalEvent=y,S.pullMode=D?D.lastPutMode:void 0;var _=ot(ot({},w),Ft.getEventProperties(o,t));for(var h in _)S[h]=_[h];n&&n.dispatchEvent(S),V[X]&&V[X].call(t,S)}}var An=["evt"],R=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=yn(o,An);Ft.pluginEvent.bind(g)(t,n,ot({dragEl:u,parentEl:k,ghostEl:b,rootEl:I,nextEl:vt,lastDownEl:Wt,cloneEl:O,cloneHidden:ut,dragStarted:Tt,putSortable:j,activeSortable:g.active,originalEvent:i,oldIndex:xt,oldDraggableIndex:Pt,newIndex:W,newDraggableIndex:dt,hideGhostForTarget:on,unhideGhostForTarget:rn,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(s){Y({sortable:n,name:s,originalEvent:i})}},r))};function Y(e){On(ot({putSortable:j,cloneEl:O,targetEl:u,rootEl:I,oldIndex:xt,oldDraggableIndex:Pt,newIndex:W,newDraggableIndex:dt},e))}var u,k,b,I,vt,Wt,O,ut,xt,W,Pt,dt,Bt,j,wt=!1,Jt=!1,Zt=[],mt,K,ue,ce,Ye,Re,Tt,yt,Nt,Mt=!1,Yt=!1,zt,B,fe=[],_e=!1,Kt=[],te=typeof document<"u",Rt=Ue,Ve=Lt||st?"cssFloat":"float",Pn=te&&!xn&&!Ue&&"draggable"in document.createElement("div"),tn=function(){if(!!te){if(st)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),en=function(t,n){var o=m(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ct(t,0,n),a=Ct(t,1,n),s=r&&m(r),l=a&&m(a),d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(r).width,p=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+L(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||d>=i&&o[Ve]==="none"||a&&o[Ve]==="none"&&d+p>i)?"vertical":"horizontal"},Nn=function(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,a=o?t.width:t.height,s=o?n.left:n.top,l=o?n.right:n.bottom,d=o?n.width:n.height;return i===s||r===l||i+a/2===s+d/2},Mn=function(t,n){var o;return Zt.some(function(i){var r=i[z].options.emptyInsertThreshold;if(!(!r||Se(i))){var a=L(i),s=t>=a.left-r&&t<=a.right+r,l=n>=a.top-r&&n<=a.bottom+r;if(s&&l)return o=i}}),o},nn=function(t){function n(r,a){return function(s,l,d,p){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(s,l,d,p),a)(s,l,d,p);var y=(a?s:l).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var o={},i=t.group;(!i||Ht(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},on=function(){!tn&&b&&m(b,"display","none")},rn=function(){!tn&&b&&m(b,"display","")};te&&document.addEventListener("click",function(e){if(Jt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Jt=!1,!1},!0);var gt=function(t){if(u){t=t.touches?t.touches[0]:t;var n=Mn(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[z]._onDragOver(o)}}},Ln=function(t){u&&u.parentNode[z]._isOutsideThisEl(t.target)};function g(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=at({},t),e[z]=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 en(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(a,s){a.setData("Text",s.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Ot,emptyInsertThreshold:5};Ft.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);nn(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Pn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?T(e,"pointerdown",this._onTapStart):(T(e,"mousedown",this._onTapStart),T(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(e,"dragover",this),T(e,"dragenter",this)),Zt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),at(this,Tn())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(yt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,u):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,p=i.filter;if(Vn(o),!u&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ot&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=et(l,i.draggable,o,!1),!(l&&l.animated)&&Wt!==l)){if(xt=J(l),Pt=J(l,i.draggable),typeof p=="function"){if(p.call(this,t,l,this)){Y({sortable:n,rootEl:d,name:"filter",targetEl:l,toEl:o,fromEl:o}),R("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(f){if(f=et(d,f.trim(),o,!1),f)return Y({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:o,toEl:o}),R("filter",n,{evt:t}),!0}),p)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!et(d,i.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,o){var i=this,r=i.el,a=i.options,s=r.ownerDocument,l;if(o&&!u&&o.parentNode===r){var d=L(o);if(I=r,u=o,k=u.parentNode,vt=u.nextSibling,Wt=o,Bt=a.group,g.dragged=u,mt={target:u,clientX:(n||t).clientX,clientY:(n||t).clientY},Ye=mt.clientX-d.left,Re=mt.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,u.style["will-change"]="all",l=function(){if(R("delayEnded",i,{evt:t}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!$e&&i.nativeDraggable&&(u.draggable=!0),i._triggerDragStart(t,n),Y({sortable:i,name:"choose",originalEvent:t}),H(u,a.chosenClass,!0)},a.ignore.split(",").forEach(function(p){Je(u,p.trim(),he)}),T(s,"dragover",gt),T(s,"mousemove",gt),T(s,"touchmove",gt),T(s,"mouseup",i._onDrop),T(s,"touchend",i._onDrop),T(s,"touchcancel",i._onDrop),$e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),R("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Lt||st))){if(g.eventCanceled){this._onDrop();return}T(s,"mouseup",i._disableDelayedDrag),T(s,"touchend",i._disableDelayedDrag),T(s,"touchcancel",i._disableDelayedDrag),T(s,"mousemove",i._delayedDragTouchMoveHandler),T(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&T(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&he(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;C(t,"mouseup",this._disableDelayedDrag),C(t,"touchend",this._disableDelayedDrag),C(t,"touchcancel",this._disableDelayedDrag),C(t,"mousemove",this._delayedDragTouchMoveHandler),C(t,"touchmove",this._delayedDragTouchMoveHandler),C(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?T(document,"pointermove",this._onTouchMove):n?T(document,"touchmove",this._onTouchMove):T(document,"mousemove",this._onTouchMove):(T(u,"dragend",this),T(I,"dragstart",this._onDragStart));try{document.selection?Gt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(wt=!1,I&&u){R("dragStarted",this,{evt:n}),this.nativeDraggable&&T(document,"dragover",Ln);var o=this.options;!t&&H(u,o.dragClass,!1),H(u,o.ghostClass,!0),g.active=this,t&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(K){this._lastX=K.clientX,this._lastY=K.clientY,on();for(var t=document.elementFromPoint(K.clientX,K.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(K.clientX,K.clientY),t!==n);)n=t;if(u.parentNode[z]._isOutsideThisEl(t),n)do{if(n[z]){var o=void 0;if(o=n[z]._onDragOver({clientX:K.clientX,clientY:K.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);rn()}},_onTouchMove:function(t){if(mt){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,a=b&&Et(b,!0),s=b&&a&&a.a,l=b&&a&&a.d,d=Rt&&B&&Be(B),p=(r.clientX-mt.clientX+i.x)/(s||1)+(d?d[0]-fe[0]:0)/(s||1),f=(r.clientY-mt.clientY+i.y)/(l||1)+(d?d[1]-fe[1]:0)/(l||1);if(!g.active&&!wt){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(b){a?(a.e+=p-(ue||0),a.f+=f-(ce||0)):a={a:1,b:0,c:0,d:1,e:p,f};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");m(b,"webkitTransform",y),m(b,"mozTransform",y),m(b,"msTransform",y),m(b,"transform",y),ue=p,ce=f,K=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:I,n=L(u,!0,Rt,!0,t),o=this.options;if(Rt){for(B=t;m(B,"position")==="static"&&m(B,"transform")==="none"&&B!==document;)B=B.parentNode;B!==document.body&&B!==document.documentElement?(B===document&&(B=nt()),n.top+=B.scrollTop,n.left+=B.scrollLeft):B=nt(),fe=Be(B)}b=u.cloneNode(!0),H(b,o.ghostClass,!1),H(b,o.fallbackClass,!0),H(b,o.dragClass,!0),m(b,"transition",""),m(b,"transform",""),m(b,"box-sizing","border-box"),m(b,"margin",0),m(b,"top",n.top),m(b,"left",n.left),m(b,"width",n.width),m(b,"height",n.height),m(b,"opacity","0.8"),m(b,"position",Rt?"absolute":"fixed"),m(b,"zIndex","100000"),m(b,"pointerEvents","none"),g.ghost=b,t.appendChild(b),m(b,"transform-origin",Ye/parseInt(b.style.width)*100+"% "+Re/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,r=o.options;if(R("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}R("setupClone",this),g.eventCanceled||(O=Qe(u),O.draggable=!1,O.style["will-change"]="",this._hideClone(),H(O,this.options.chosenClass,!1),g.clone=O),o.cloneId=Gt(function(){R("clone",o),!g.eventCanceled&&(o.options.removeCloneOnHide||I.insertBefore(O,u),o._hideClone(),Y({sortable:o,name:"clone"}))}),!n&&H(u,r.dragClass,!0),n?(Jt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(C(document,"mouseup",o._onDrop),C(document,"touchend",o._onDrop),C(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,u)),T(document,"drop",o),m(u,"transform","translateZ(0)")),wt=!0,o._dragStartId=Gt(o._dragStarted.bind(o,n,t)),T(document,"selectstart",o),Tt=!0,Ot&&m(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,r,a,s=this.options,l=s.group,d=g.active,p=Bt===l,f=s.sort,y=j||d,D,w=this,S=!1;if(_e)return;function V(St,ln){R(St,w,ot({evt:t,isOwner:p,axis:D?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:f,fromSortable:y,target:o,completed:_,onMove:function(ke,dn){return Vt(I,n,u,i,ke,L(ke),t,dn)},changed:h},ln))}function X(){V("dragOverAnimationCapture"),w.captureAnimationState(),w!==y&&y.captureAnimationState()}function _(St){return V("dragOverCompleted",{insertion:St}),St&&(p?d._hideClone():d._showClone(w),w!==y&&(H(u,j?j.options.ghostClass:d.options.ghostClass,!1),H(u,s.ghostClass,!0)),j!==w&&w!==g.active?j=w:w===g.active&&j&&(j=null),y===w&&(w._ignoreWhileAnimating=o),w.animateAll(function(){V("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(o===u&&!u.animated||o===n&&!o.animated)&&(yt=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(u.parentNode[z]._isOutsideThisEl(t.target),!St&&gt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),S=!0}function h(){W=J(u),dt=J(u,s.draggable),Y({sortable:w,name:"change",toEl:n,newIndex:W,newDraggableIndex:dt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=et(o,s.draggable,n,!0),V("dragOver"),g.eventCanceled)return S;if(u.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||w._ignoreWhileAnimating===o)return _(!1);if(Jt=!1,d&&!s.disabled&&(p?f||(a=k!==I):j===this||(this.lastPutMode=Bt.checkPull(this,d,u,t))&&l.checkPut(this,d,u,t))){if(D=this._getDirection(t,o)==="vertical",i=L(u),V("dragOverValid"),g.eventCanceled)return S;if(a)return k=I,X(),this._hideClone(),V("revert"),g.eventCanceled||(vt?I.insertBefore(u,vt):I.appendChild(u)),_(!0);var M=Se(n,s.draggable);if(!M||Xn(t,D,this)&&!M.animated){if(M===u)return _(!1);if(M&&n===t.target&&(o=M),o&&(r=L(o)),Vt(I,n,u,i,o,r,t,!!o)!==!1)return X(),n.appendChild(u),k=n,h(),_(!0)}else if(M&&jn(t,D,this)){var v=Ct(n,0,s,!0);if(v===u)return _(!1);if(o=v,r=L(o),Vt(I,n,u,i,o,r,t,!1)!==!1)return X(),n.insertBefore(u,v),k=n,h(),_(!0)}else if(o.parentNode===n){r=L(o);var x=0,A,Z=u.parentNode!==n,$=!Nn(u.animated&&u.toRect||i,o.animated&&o.toRect||r,D),ft=D?"top":"left",Q=Xe(o,"top","top")||Xe(u,"top","top"),ht=Q?Q.scrollTop:void 0;yt!==o&&(A=r[ft],Mt=!1,Yt=!$&&s.invertSwap||Z),x=Bn(t,o,r,D,$?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Yt,yt===o);var G;if(x!==0){var tt=J(u);do tt-=x,G=k.children[tt];while(G&&(m(G,"display")==="none"||G===b))}if(x===0||G===o)return _(!1);yt=o,Nt=x;var Dt=o.nextElementSibling,lt=!1;lt=x===1;var $t=Vt(I,n,u,i,o,r,t,lt);if($t!==!1)return($t===1||$t===-1)&&(lt=$t===1),_e=!0,setTimeout($n,30),X(),lt&&!Dt?n.appendChild(u):o.parentNode.insertBefore(u,lt?Dt:o),Q&&Ke(Q,0,ht-Q.scrollTop),k=u.parentNode,A!==void 0&&!Yt&&(zt=Math.abs(A-L(o)[ft])),h(),_(!0)}if(n.contains(u))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",gt),C(document,"mousemove",gt),C(document,"touchmove",gt)},_offUpEvents:function(){var t=this.el.ownerDocument;C(t,"mouseup",this._onDrop),C(t,"touchend",this._onDrop),C(t,"pointerup",this._onDrop),C(t,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(W=J(u),dt=J(u,o.draggable),R("drop",this,{evt:t}),k=u&&u.parentNode,W=J(u),dt=J(u,o.draggable),g.eventCanceled){this._nulling();return}wt=!1,Yt=!1,Mt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ye(this.cloneId),ye(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ot&&m(document.body,"user-select",""),m(u,"transform",""),t&&(Tt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(I===k||j&&j.lastPutMode!=="clone")&&O&&O.parentNode&&O.parentNode.removeChild(O),u&&(this.nativeDraggable&&C(u,"dragend",this),he(u),u.style["will-change"]="",Tt&&!wt&&H(u,j?j.options.ghostClass:this.options.ghostClass,!1),H(u,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:k,newIndex:null,newDraggableIndex:null,originalEvent:t}),I!==k?(W>=0&&(Y({rootEl:k,name:"add",toEl:k,fromEl:I,originalEvent:t}),Y({sortable:this,name:"remove",toEl:k,originalEvent:t}),Y({rootEl:k,name:"sort",toEl:k,fromEl:I,originalEvent:t}),Y({sortable:this,name:"sort",toEl:k,originalEvent:t})),j&&j.save()):W!==xt&&W>=0&&(Y({sortable:this,name:"update",toEl:k,originalEvent:t}),Y({sortable:this,name:"sort",toEl:k,originalEvent:t})),g.active&&((W==null||W===-1)&&(W=xt,dt=Pt),Y({sortable:this,name:"end",toEl:k,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),I=u=k=b=vt=O=Wt=ut=mt=K=Tt=W=dt=xt=Pt=yt=Nt=j=Bt=g.dragged=g.ghost=g.clone=g.active=null,Kt.forEach(function(t){t.checked=!0}),Kt.length=ue=ce=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),Fn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,r=o.length,a=this.options;i<r;i++)n=o[i],et(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||Rn(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(r,a){var s=i.children[a];et(s,this.options.draggable,i,!1)&&(o[r]=s)},this),n&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return et(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=Ft.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&nn(o)},destroy:function(){R("destroy",this);var t=this.el;t[z]=null,C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart),C(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Zt.splice(Zt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(R("hideClone",this),g.eventCanceled)return;m(O,"display","none"),this.options.removeCloneOnHide&&O.parentNode&&O.parentNode.removeChild(O),ut=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ut){if(R("showClone",this),g.eventCanceled)return;u.parentNode==I&&!this.options.group.revertClone?I.insertBefore(O,u):vt?I.insertBefore(O,vt):I.appendChild(O),this.options.group.revertClone&&this.animate(u,O),m(O,"display",""),ut=!1}}};function Fn(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Vt(e,t,n,o,i,r,a,s){var l,d=e[z],p=d.options.onMove,f;return window.CustomEvent&&!st&&!Lt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=i||t,l.relatedRect=r||L(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(f=p.call(d,l,a)),f}function he(e){e.draggable=!1}function $n(){_e=!1}function jn(e,t,n){var o=L(Ct(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}function Xn(e,t,n){var o=L(Se(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}function Bn(e,t,n,o,i,r,a,s){var l=o?e.clientY:e.clientX,d=o?n.height:n.width,p=o?n.top:n.left,f=o?n.bottom:n.right,y=!1;if(!a){if(s&&zt<d*i){if(!Mt&&(Nt===1?l>p+d*r/2:l<f-d*r/2)&&(Mt=!0),Mt)y=!0;else if(Nt===1?l<p+zt:l>f-zt)return-Nt}else if(l>p+d*(1-i)/2&&l<f-d*(1-i)/2)return Yn(t)}return y=y||a,y&&(l<p+d*r/2||l>f-d*r/2)?l>p+d/2?1:-1:0}function Yn(e){return J(u)<J(e)?1:-1}function Rn(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 Vn(e){Kt.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Kt.push(o)}}function Gt(e){return setTimeout(e,0)}function ye(e){return clearTimeout(e)}te&&T(document,"touchmove",function(e){(g.active||wt)&&e.cancelable&&e.preventDefault()});g.utils={on:T,off:C,css:m,find:Je,is:function(t,n){return!!et(t,n,t,!1)},extend:Dn,throttle:Ze,closest:et,toggleClass:H,clone:Qe,index:J,nextTick:Gt,cancelNextTick:ye,detectDirection:en,getChild:Ct};g.get=function(e){return e[z]};g.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(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(g.utils=ot(ot({},g.utils),o.utils)),Ft.mount(o)})};g.create=function(e,t){return new g(e,t)};g.version=wn;var N=[],It,we,xe=!1,pe,me,Qt,kt;function Hn(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):this.options.supportPointer?T(document,"pointermove",this._handleFallbackAutoScroll):o.touches?T(document,"touchmove",this._handleFallbackAutoScroll):T(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),He(),Ut(),Sn()},nulling:function(){Qt=we=It=xe=kt=pe=me=null,N.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(r,a);if(Qt=n,o||this.options.forceAutoScrollFallback||Lt||st||Ot){ge(n,this.options,s,o);var l=ct(s,!0);xe&&(!kt||r!==pe||a!==me)&&(kt&&He(),kt=setInterval(function(){var d=ct(document.elementFromPoint(r,a),!0);d!==l&&(l=d,Ut()),ge(n,i.options,d,o)},10),pe=r,me=a)}else{if(!this.options.bubbleScroll||ct(s,!0)===nt()){Ut();return}ge(n,this.options,ct(s,!1),!1)}}},at(e,{pluginName:"scroll",initializeByDefault:!0})}function Ut(){N.forEach(function(e){clearInterval(e.pid)}),N=[]}function He(){clearInterval(kt)}var ge=Ze(function(e,t,n,o){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=nt(),d=!1,p;we!==n&&(we=n,Ut(),It=t.scroll,p=t.scrollFn,It===!0&&(It=ct(n,!0)));var f=0,y=It;do{var D=y,w=L(D),S=w.top,V=w.bottom,X=w.left,_=w.right,h=w.width,M=w.height,v=void 0,x=void 0,A=D.scrollWidth,Z=D.scrollHeight,$=m(D),ft=D.scrollLeft,Q=D.scrollTop;D===l?(v=h<A&&($.overflowX==="auto"||$.overflowX==="scroll"||$.overflowX==="visible"),x=M<Z&&($.overflowY==="auto"||$.overflowY==="scroll"||$.overflowY==="visible")):(v=h<A&&($.overflowX==="auto"||$.overflowX==="scroll"),x=M<Z&&($.overflowY==="auto"||$.overflowY==="scroll"));var ht=v&&(Math.abs(_-i)<=a&&ft+h<A)-(Math.abs(X-i)<=a&&!!ft),G=x&&(Math.abs(V-r)<=a&&Q+M<Z)-(Math.abs(S-r)<=a&&!!Q);if(!N[f])for(var tt=0;tt<=f;tt++)N[tt]||(N[tt]={});(N[f].vx!=ht||N[f].vy!=G||N[f].el!==D)&&(N[f].el=D,N[f].vx=ht,N[f].vy=G,clearInterval(N[f].pid),(ht!=0||G!=0)&&(d=!0,N[f].pid=setInterval(function(){o&&this.layer===0&&g.active._onTouchMove(Qt);var Dt=N[this.layer].vy?N[this.layer].vy*s:0,lt=N[this.layer].vx?N[this.layer].vx*s:0;typeof p=="function"&&p.call(g.dragged.parentNode[z],lt,Dt,e,Qt,N[this.layer].el)!=="continue"||Ke(N[this.layer].el,lt,Dt)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&y!==l&&(y=ct(y,!1)));xe=d}},30),an=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!n){var d=o||r;s();var p=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(p.clientX,p.clientY);l(),d&&!d.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function Te(){}Te.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=Ct(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:an};at(Te,{pluginName:"revertOnSpill"});function Ie(){}Ie.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:an};at(Ie,{pluginName:"removeOnSpill"});g.mount(new Hn);g.mount(Ie,Te);function Wn(){return typeof window<"u"?window.console:global.console}const zn=Wn();function Gn(e){const t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}}const Un=/-(\w)/g,We=Gn(e=>e.replace(Un,(t,n)=>n?n.toUpperCase():""));function ve(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function ze(e,t,n){const o=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,o)}function qn(e,t){return Object.values(e).indexOf(t)}function Jn(e,t,n,o){if(!e)return[];const i=Object.values(e),r=t.length-o;return[...t].map((s,l)=>l>=r?i.length:i.indexOf(s))}function sn(e,t){this.$nextTick(()=>this.$emit(e.toLowerCase(),t))}function Zn(e){return t=>{this.realList!==null&&this["onDrag"+e](t),sn.call(this,e,t)}}function Kn(e){return["transition-group","TransitionGroup"].includes(e)}function Qn(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?Kn(t.name):!1}function to(e,t){return t?{...t.props,...t.attrs}:e}const Ee=["Start","Add","Remove","Update","End"],Ce=["Choose","Unchoose","Sort","Filter","Clone"],eo=["Move",...Ee,...Ce].map(e=>"on"+e);let be=null;const no={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}},oo=De({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...Ee.map(e=>e.toLowerCase()),...Ce.map(e=>e.toLowerCase())],props:no,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const e=this.$slots.default?this.$slots.default():null,t=to(this.$attrs,this.componentData);return e?(this.transitionMode=Qn(e),Oe(this.getTag(),t,e)):Oe(this.getTag(),t,[])},created(){this.list!==null&&this.modelValue!==null&&zn.error("list props are mutually exclusive! Please set one.")},mounted(){const e={};Ee.forEach(i=>{e["on"+i]=Zn.call(this,i)}),Ce.forEach(i=>{e["on"+i]=sn.bind(this,i)});const t=Object.keys(this.$attrs).reduce((i,r)=>(i[We(r)]=this.$attrs[r],i),{}),n=Object.assign({},t,e,{onMove:(i,r)=>this.onDragMove(i,r)});!("draggable"in n)&&(n.draggable=">*");const o=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new g(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},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?Ge(this.component):this.tag},updateOptions(e){for(var t in e){const n=We(t);eo.indexOf(n)===-1&&this._sortable.option(n,e[t])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=Jn(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(e){const t=qn(this.getChildrenNodes()||[],e);if(t===-1)return null;const n=this.realList[t];return{index:t,element:n}},emitChanges(e){this.$nextTick(()=>{this.$emit("change",e)})},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const n=o=>o.splice(t,0,o.splice(e,1)[0]);this.alterList(n)},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;var t=this.getChildrenNodes();t[e].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(e){this.context=this.getUnderlyingVm(e.item),this.context&&(e.item._underlying_vm_=this.clone(this.context.element),be=e.item)},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;ve(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(ze(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){ve(e.clone);return}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){ve(e.item),ze(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});const a=Object.assign({},e,{relatedContext:o,draggedContext:i});return n(a,t)},onDragEnd(){this.computeIndexes(),be=null},getTrargetedComponent(e){return 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 r=n.getUnderlyingVm(t);if(r)return Object.assign(r,i)}return i},computeFutureIndex(e,t){const n=[...t.to.children].filter(a=>a.style.display!=="none");if(n.length===0)return 0;const o=n.indexOf(t.related),i=e.component.getVmIndex(o);return n.indexOf(be)!==-1||!t.willInsertAfter?i:i+1}}}),io={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ro=c("path",{d:"M12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9L11.25 11.25H9C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H11.25V15C11.25 15.4142 11.5858 15.75 12 15.75C12.4142 15.75 12.75 15.4142 12.75 15L12.75 12.75H15C15.4142 12.75 15.75 12.4142 15.75 12C15.75 11.5858 15.4142 11.25 15 11.25H12.75V9Z",fill:"currentColor"},null,-1),ao=c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C17.9371 22.75 22.75 17.9371 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25ZM2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12Z",fill:"currentColor"},null,-1),so=[ro,ao],lo={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uo=c("circle",{opacity:"0.5",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"1.5"},null,-1),co=c("path",{d:"M15 12L12 12M12 12L9 12M12 12L12 9M12 12L12 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),fo=[uo,co],ho=De({__name:"icon-plus-circle",props:{duotone:{type:Boolean,default:!0}},setup(e){return(t,n)=>e.duotone?(U(),q("svg",lo,fo)):(U(),q("svg",io,so))}}),po={},mo={width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},go=c("path",{opacity:"0.5",d:"M22 10.5V12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2H13.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1),vo=c("path",{d:"M17.3009 2.80624L16.652 3.45506L10.6872 9.41993C10.2832 9.82394 10.0812 10.0259 9.90743 10.2487C9.70249 10.5114 9.52679 10.7957 9.38344 11.0965C9.26191 11.3515 9.17157 11.6225 8.99089 12.1646L8.41242 13.9L8.03811 15.0229C7.9492 15.2897 8.01862 15.5837 8.21744 15.7826C8.41626 15.9814 8.71035 16.0508 8.97709 15.9619L10.1 15.5876L11.8354 15.0091C12.3775 14.8284 12.6485 14.7381 12.9035 14.6166C13.2043 14.4732 13.4886 14.2975 13.7513 14.0926C13.9741 13.9188 14.1761 13.7168 14.5801 13.3128L20.5449 7.34795L21.1938 6.69914C22.2687 5.62415 22.2687 3.88124 21.1938 2.80624C20.1188 1.73125 18.3759 1.73125 17.3009 2.80624Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),bo=c("path",{opacity:"0.5",d:"M16.6522 3.45508C16.6522 3.45508 16.7333 4.83381 17.9499 6.05034C19.1664 7.26687 20.5451 7.34797 20.5451 7.34797M10.1002 15.5876L8.4126 13.9",stroke:"currentColor","stroke-width":"1.5"},null,-1),_o=[go,vo,bo];function yo(e,t){return U(),q("svg",mo,_o)}const wo=un(po,[["render",yo]]),xo={class:"relative pt-5"},Eo={class:"h-full -mx-2"},Co={class:"overflow-x-auto flex items-start flex-nowrap gap-5 px-2 pb-2"},Do={class:"flex justify-between mb-5"},So={class:"text-base font-semibold"},To={class:"flex items-center"},Io=["onClick"],ko={class:"dropdown"},Oo={type:"button",class:"hover:text-primary"},Ao=["onClick"],Po=["onClick"],No=["onClick"],Mo=["onClick"],Lo={class:"shadow bg-[#f4f4f4] dark:bg-white-dark/20 p-3 pb-5 rounded-md mb-5 space-y-3 cursor-move"},Fo={key:0,src:mn,alt:"images",class:"h-32 w-full object-cover rounded-md"},$o={class:"text-base font-medium"},jo={class:"break-all"},Xo={class:"flex gap-2 items-center flex-wrap"},Bo={class:"ltr:ml-2 rtl:mr-2"},Yo={key:1,class:"btn px-2 py-1 flex text-white-dark dark:border-white-dark/50 shadow-none"},Ro=c("span",{class:"ltr:ml-2 rtl:mr-2"},"No Tags",-1),Vo={class:"flex items-center justify-between"},Ho={class:"font-medium flex items-center hover:text-primary"},Wo={class:"flex items-center"},zo=["onClick"],Go=["onClick"],Uo={class:"pt-3"},qo=["onClick"],Jo={class:"fixed inset-0 overflow-y-auto"},Zo={class:"flex min-h-full items-center justify-center px-4 py-8"},Ko={class:"text-lg font-medium bg-[#fbfbfb] dark:bg-[#121c2c] ltr:pl-5 rtl:pr-5 py-3 ltr:pr-[50px] rtl:pl-[50px]"},Qo={class:"p-5"},ti=["onSubmit"],ei={class:"grid gap-5"},ni=c("label",{for:"title"},"Name",-1),oi={class:"flex justify-end items-center mt-8"},ii={type:"submit",class:"btn btn-primary ltr:ml-4 rtl:mr-4"},ri={class:"fixed inset-0 overflow-y-auto"},ai={class:"flex min-h-full items-center justify-center px-4 py-8"},si={class:"text-lg font-medium bg-[#fbfbfb] dark:bg-[#121c2c] ltr:pl-5 rtl:pr-5 py-3 ltr:pr-[50px] rtl:pl-[50px]"},li={class:"p-5"},di=["onSubmit"],ui={class:"grid gap-5"},ci=c("label",{for:"taskTitle"},"Name",-1),fi=c("label",{for:"taskTag"},"Tag",-1),hi=c("label",{for:"taskdesc"},"Description",-1),pi={class:"flex justify-end items-center mt-8"},mi={type:"submit",class:"btn btn-primary ltr:ml-4 rtl:mr-4"},gi={class:"fixed inset-0 overflow-y-auto"},vi={class:"flex min-h-full items-center justify-center px-4 py-8"},bi=c("div",{class:"text-lg font-medium bg-[#fbfbfb] dark:bg-[#121c2c] ltr:pl-5 rtl:pr-5 py-3 ltr:pr-[50px] rtl:pl-[50px]"}," Delete Task ",-1),_i={class:"p-5 text-center"},yi={class:"text-white bg-danger ring-4 ring-danger/30 p-4 rounded-full w-fit mx-auto"},wi=c("div",{class:"text-base sm:w-3/4 mx-auto mt-5"},"Are you sure you want to delete Task?",-1),xi={class:"flex justify-center items-center mt-8"},Ai=De({__name:"scrumboard",setup(e){cn({title:"Scrumboard"});const t=fn(),n=pt({id:null,title:""}),o=pt({projectId:null,id:null,title:"",description:"",tags:""}),i=pt(null),r=pt(!1),a=pt(!1),s=pt(!1),l=pt([{id:1,title:"In Progress",tasks:[{projectId:1,id:1,title:"Creating a new Portfolio on Dribble",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",image:!0,date:" 08 Aug, 2020",tags:["designing"]},{projectId:1,id:2,title:"Singapore Team Meet",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",date:" 09 Aug, 2020",tags:["meeting"]}]},{id:2,title:"Pending",tasks:[{projectId:2,id:1,title:"Plan a trip to another country",description:"",date:" 10 Sep, 2020"}]},{id:3,title:"Complete",tasks:[{projectId:3,id:1,title:"Dinner with Kelly Young",description:"",date:" 08 Aug, 2020"},{projectId:3,id:2,title:"Launch New SEO Wordpress Theme ",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",date:" 09 Aug, 2020"}]},{id:4,title:"Working",tasks:[]}]),d=(_=null)=>{setTimeout(()=>{n.value={id:null,title:""},_&&(n.value=JSON.parse(JSON.stringify(_))),r.value=!0})},p=()=>{if(!n.value.title)return X("Title is required.","error"),!1;if(n.value.id){const _=l.value.find(h=>h.id===n.value.id);_.title=n.value.title}else{const h={id:(l.value.length?l.value.reduce((M,v)=>v.id>M?v.id:M,l.value[0].id):0)+1,title:n.value.title,tasks:[]};l.value.push(h)}X("Project has been saved successfully."),r.value=!1},f=_=>{l.value=l.value.filter(h=>h.id!=_.id),X("Project has been deleted successfully.")},y=_=>{_.tasks=[]},D=(_,h=null)=>{o.value={projectId:null,id:null,title:"",description:"",tags:""},h&&(o.value=JSON.parse(JSON.stringify(h)),o.value.tags=o.value.tags?o.value.tags.toString():""),o.value.projectId=_,a.value=!0},w=()=>{var h,M,v;if(!o.value.title)return X("Title is required.","error"),!1;const _=l.value.find(x=>x.id===o.value.projectId);if(o.value.id){const x=_.tasks.find(A=>A.id===o.value.id);x.title=o.value.title,x.description=o.value.description,x.tags=((h=o.value.tags)==null?void 0:h.length)>0?o.value.tags.split(","):[]}else{let x=0;(M=_.tasks)!=null&&M.length&&(x=_.tasks.reduce((G,tt)=>tt.id>G?tt.id:G,_.tasks[0].id));const A=new Date,Z=String(A.getDate()).padStart(2,"0"),$=String(A.getMonth()),ft=A.getFullYear(),Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ht={projectId:o.value.projectId,id:x+1,title:o.value.title,description:o.value.description,date:Z+" "+Q[$]+", "+ft,tags:((v=o.value.tags)==null?void 0:v.length)>0?o.value.tags.split(","):[]};_.tasks.push(ht)}X("Task has been saved successfully."),a.value=!1},S=(_,h=null)=>{i.value=h,setTimeout(()=>{s.value=!0},10)},V=()=>{let _=l.value.find(h=>h.id===i.value.projectId);_.tasks=_.tasks.filter(h=>h.id!=i.value.id),X("Task has been deleted successfully."),s.value=!1},X=(_="",h="success")=>{gn.mixin({toast:!0,position:"top",showConfirmButton:!1,timer:3e3,customClass:{container:"toast"}}).fire({icon:h,title:_,padding:"10px 20px"})};return(_,h)=>{const M=Ge("Popper");return U(),q("div",null,[c("div",null,[c("button",{type:"button",class:"btn btn-primary flex",onClick:h[0]||(h[0]=v=>d())},[E(Pe,{class:"w-5 h-5 ltr:mr-3 rtl:ml-3"}),Ae(" Add Project ")])]),c("div",xo,[c("div",Eo,[c("div",Co,[(U(!0),q(ee,null,ne(l.value,v=>(U(),q("div",{key:v.id,class:"panel w-80 flex-none"},[c("div",Do,[c("h4",So,it(v.title),1),c("div",To,[c("button",{type:"button",class:"hover:text-primary ltr:mr-2 rtl:ml-2",onClick:x=>D(v.id)},[E(ho)],8,Io),c("div",ko,[E(M,{placement:P(t).rtlClass==="rtl"?"bottom-start":"bottom-end",offsetDistance:"0"},{content:F(({close:x})=>[c("ul",{onClick:A=>x(),class:"text-black dark:text-white-dark whitespace-nowrap"},[c("li",null,[c("a",{href:"javascript:;",onClick:A=>d(v)},"Edit ",8,Po)]),c("li",null,[c("a",{href:"javascript:;",onClick:A=>f(v)},"Delete ",8,No)]),c("li",null,[c("a",{href:"javascript:;",onClick:A=>y(v)},"Clear All ",8,Mo)])],8,Ao)]),default:F(()=>[c("button",Oo,[E(hn,{class:"opacity-70 hover:opacity-100"})])]),_:2},1032,["placement"])])])]),E(P(oo),{class:"connect-sorting-content min-h-[150px]",group:"default","ghost-class":"sortable-ghost","drag-class":"sortable-drag",animation:200},{default:F(()=>[(U(!0),q(ee,null,ne(v.tasks,x=>{var A;return U(),q("div",{class:"sortable-list",key:v.id+""+x.id},[c("div",Lo,[x.image?(U(),q("img",Fo)):pn("",!0),c("div",$o,it(x.title),1),c("p",jo,it(x.description),1),c("div",Xo,[(A=x.tags)!=null&&A.length?(U(!0),q(ee,{key:0},ne(x.tags,(Z,$)=>(U(),q("div",{key:$,class:"btn px-2 py-1 flex btn-outline-primary"},[E(Ne,{class:"shrink-0"}),c("span",Bo,it(Z),1)]))),128)):(U(),q("div",Yo,[E(Ne,{class:"shrink-0"}),Ro]))]),c("div",Vo,[c("div",Ho,[E(vn,{class:"ltr:mr-3 rtl:ml-3 shrink-0"}),c("span",null,it(x.date),1)]),c("div",Wo,[c("button",{type:"button",class:"hover:text-info",onClick:Z=>D(v.id,x)},[E(wo,{class:"ltr:mr-3 rtl:ml-3"})],8,zo),c("button",{type:"button",class:"hover:text-danger",onClick:Z=>S(v.id,x)},[E(Le)],8,Go)])])])])}),128))]),_:2},1024),c("div",Uo,[c("button",{type:"button",class:"btn btn-primary mx-auto",onClick:x=>D(v.id)},[E(Pe),Ae(" Add Task ")],8,qo)])]))),128))])])]),E(P(oe),{appear:"",show:r.value,as:"template"},{default:F(()=>[E(P(ie),{as:"div",onClose:h[4]||(h[4]=v=>r.value=!1),class:"relative z-[51]"},{default:F(()=>[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:F(()=>[E(P(re),{class:"fixed inset-0 bg-[black]/60"})]),_:1}),c("div",Jo,[c("div",Zo,[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:F(()=>[E(P(ae),{class:"panel border-0 p-0 rounded-lg overflow-hidden w-full max-w-lg text-black dark:text-white-dark"},{default:F(()=>[c("button",{type:"button",class:"absolute top-4 ltr:right-4 rtl:left-4 text-gray-400 hover:text-gray-800 dark:hover:text-gray-600 outline-none",onClick:h[1]||(h[1]=v=>r.value=!1)},[E(se)]),c("div",Ko,it(n.value.id?"Edit Project":"Add Project"),1),c("div",Qo,[c("form",{onSubmit:Me(p,["prevent"])},[c("div",ei,[c("div",null,[ni,jt(c("input",{id:"title","onUpdate:modelValue":h[2]||(h[2]=v=>n.value.title=v),type:"text",class:"form-input mt-1",placeholder:"Enter Name"},null,512),[[Xt,n.value.title]])])]),c("div",oi,[c("button",{type:"button",class:"btn btn-outline-danger",onClick:h[3]||(h[3]=v=>r.value=!1)},"Cancel"),c("button",ii,it(n.value.id?"Update":"Add"),1)])],40,ti)])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]),E(P(oe),{appear:"",show:a.value,as:"template"},{default:F(()=>[E(P(ie),{as:"div",onClose:h[10]||(h[10]=v=>a.value=!1),class:"relative z-[51]"},{default:F(()=>[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:F(()=>[E(P(re),{class:"fixed inset-0 bg-[black]/60"})]),_:1}),c("div",ri,[c("div",ai,[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:F(()=>[E(P(ae),{class:"panel border-0 p-0 rounded-lg overflow-hidden w-full max-w-lg text-black dark:text-white-dark"},{default:F(()=>[c("button",{type:"button",class:"absolute top-4 ltr:right-4 rtl:left-4 text-gray-400 hover:text-gray-800 dark:hover:text-gray-600 outline-none",onClick:h[5]||(h[5]=v=>a.value=!1)},[E(se)]),c("div",si,it(o.value.id?"Edit Task":"Add Task"),1),c("div",li,[c("form",{onSubmit:Me(w,["prevent"])},[c("div",ui,[c("div",null,[ci,jt(c("input",{id:"taskTitle","onUpdate:modelValue":h[6]||(h[6]=v=>o.value.title=v),type:"text",class:"form-input",placeholder:"Enter Name"},null,512),[[Xt,o.value.title]])]),c("div",null,[fi,jt(c("input",{id:"taskTag","onUpdate:modelValue":h[7]||(h[7]=v=>o.value.tags=v),type:"text",class:"form-input",placeholder:"Enter Tag"},null,512),[[Xt,o.value.tags]])]),c("div",null,[hi,jt(c("textarea",{id:"taskdesc","onUpdate:modelValue":h[8]||(h[8]=v=>o.value.description=v),class:"form-textarea min-h-[130px]",placeholder:"Enter Description"},null,512),[[Xt,o.value.description]])])]),c("div",pi,[c("button",{type:"button",class:"btn btn-outline-danger",onClick:h[9]||(h[9]=v=>a.value=!1)},"Cancel"),c("button",mi,it(o.value.id?"Update":"Add"),1)])],40,di)])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]),E(P(oe),{appear:"",show:s.value,as:"template"},{default:F(()=>[E(P(ie),{as:"div",onClose:h[14]||(h[14]=v=>s.value=!1),class:"relative z-[51]"},{default:F(()=>[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:F(()=>[E(P(re),{class:"fixed inset-0 bg-[black]/60"})]),_:1}),c("div",gi,[c("div",vi,[E(P(bt),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:F(()=>[E(P(ae),{class:"panel border-0 p-0 rounded-lg overflow-hidden w-full max-w-lg text-black dark:text-white-dark"},{default:F(()=>[c("button",{type:"button",class:"absolute top-4 ltr:right-4 rtl:left-4 text-gray-400 hover:text-gray-800 dark:hover:text-gray-600 outline-none",onClick:h[11]||(h[11]=v=>s.value=!1)},[E(se)]),bi,c("div",_i,[c("div",yi,[E(Le)]),wi,c("div",xi,[c("button",{type:"button",class:"btn btn-outline-danger",onClick:h[12]||(h[12]=v=>s.value=!1)},"Cancel"),c("button",{type:"button",class:"btn btn-primary ltr:ml-4 rtl:mr-4",onClick:h[13]||(h[13]=v=>V())},"Delete")])])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"])])}}});export{Ai as default};