apps/com.actionsoft.apps.coe.pal.cooperation/web/com.actionsoft.apps.coe.pal.cooperation/main/js/chunk-8b0ba2ba.5f8ecf17.js
2023-10-26 11:18:43 +08:00

8 lines
137 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8b0ba2ba"],{2480:function(e,t,o){"use strict";
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function a(e){return a="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},a(e)}function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},i.apply(this,arguments)}function r(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},a=Object.keys(o);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),a.forEach((function(t){n(e,t,o[t])}))}return e}function s(e,t){if(null==e)return{};var o,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)o=i[a],t.indexOf(o)>=0||(n[o]=e[o]);return n}function l(e,t){if(null==e)return{};var o,a,n=s(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)o=i[a],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function c(e){return d(e)||u(e)||p()}function d(e){if(Array.isArray(e)){for(var t=0,o=new Array(e.length);t<e.length;t++)o[t]=e[t];return o}}function u(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance")}o.r(t),o.d(t,"MultiDrag",(function(){return jt})),o.d(t,"Sortable",(function(){return Ze})),o.d(t,"Swap",(function(){return Dt}));var h="1.10.2";function m(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var f=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=m(/Edge/i),v=m(/firefox/i),b=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),y=m(/iP(ad|od|hone)/i),w=m(/chrome/i)&&m(/android/i),x={capture:!1,passive:!1};function _(e,t,o){e.addEventListener(t,o,!f&&x)}function k(e,t,o){e.removeEventListener(t,o,!f&&x)}function S(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(o){return!1}return!1}}function C(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function D(e,t,o,a){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&S(e,t):S(e,t))||a&&e===o)return e;if(e===o)break}while(e=C(e))}return null}var I,T=/\s+/g;function A(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(T," ").replace(" "+t+" "," ");e.className=(a+(o?" "+t:"")).replace(T," ")}}function O(e,t,o){var a=e&&e.style;if(a){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=o+("string"===typeof o?"":"px")}}function P(e,t){var o="";if("string"===typeof e)o=e;else do{var a=O(e,"transform");a&&"none"!==a&&(o=a+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function N(e,t,o){if(e){var a=e.getElementsByTagName(t),n=0,i=a.length;if(o)for(;n<i;n++)o(a[n],n);return a}return[]}function E(){var e=document.scrollingElement;return e||document.documentElement}function M(e,t,o,a,n){if(e.getBoundingClientRect||e===window){var i,r,s,l,c,d,u;if(e!==window&&e!==E()?(i=e.getBoundingClientRect(),r=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,u=i.width):(r=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!f))do{if(n&&n.getBoundingClientRect&&("none"!==O(n,"transform")||o&&"static"!==O(n,"position"))){var p=n.getBoundingClientRect();r-=p.top+parseInt(O(n,"border-top-width")),s-=p.left+parseInt(O(n,"border-left-width")),l=r+i.height,c=s+i.width;break}}while(n=n.parentNode);if(a&&e!==window){var h=P(n||e),m=h&&h.a,g=h&&h.d;h&&(r/=g,s/=m,u/=m,d/=g,l=r+d,c=s+u)}return{top:r,left:s,bottom:l,right:c,width:u,height:d}}}function F(e,t,o){var a=H(e,!0),n=M(e)[t];while(a){var i=M(a)[o],r=void 0;if(r="top"===o||"left"===o?n>=i:n<=i,!r)return a;if(a===E())break;a=H(a,!1)}return!1}function $(e,t,o){var a=0,n=0,i=e.children;while(n<i.length){if("none"!==i[n].style.display&&i[n]!==Ze.ghost&&i[n]!==Ze.dragged&&D(i[n],o.draggable,e,!1)){if(a===t)return i[n];a++}n++}return null}function R(e,t){var o=e.lastElementChild;while(o&&(o===Ze.ghost||"none"===O(o,"display")||t&&!S(o,t)))o=o.previousElementSibling;return o||null}function j(e,t){var o=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ze.clone||t&&!S(e,t)||o++;return o}function U(e){var t=0,o=0,a=E();if(e)do{var n=P(e),i=n.a,r=n.d;t+=e.scrollLeft*i,o+=e.scrollTop*r}while(e!==a&&(e=e.parentNode));return[t,o]}function L(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[o][a])return Number(o);return-1}function H(e,t){if(!e||!e.getBoundingClientRect)return E();var o=e,a=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=O(o);if(o.clientWidth<o.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!o.getBoundingClientRect||o===document.body)return E();if(a||t)return o;a=!0}}}while(o=o.parentNode);return E()}function V(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function B(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 z(e,t){return function(){if(!I){var o=arguments,a=this;1===o.length?e.call(a,o[0]):e.apply(a,o),I=setTimeout((function(){I=void 0}),t)}}}function q(){clearTimeout(I),I=void 0}function X(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function K(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function Y(e,t){O(e,"position","absolute"),O(e,"top",t.top),O(e,"left",t.left),O(e,"width",t.width),O(e,"height",t.height)}function W(e){O(e,"position",""),O(e,"top",""),O(e,"left",""),O(e,"width",""),O(e,"height","")}var G="Sortable"+(new Date).getTime();function J(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==O(e,"display")&&e!==Ze.ghost){t.push({target:e,rect:M(e)});var o=r({},t[t.length-1].rect);if(e.thisAnimationDuration){var a=P(e,!0);a&&(o.top-=a.f,o.left-=a.e)}e.fromRect=o}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(L(t,{target:e}),1)},animateAll:function(o){var a=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof o&&o());var n=!1,i=0;t.forEach((function(e){var t=0,o=e.target,r=o.fromRect,s=M(o),l=o.prevFromRect,c=o.prevToRect,d=e.rect,u=P(o,!0);u&&(s.top-=u.f,s.left-=u.e),o.toRect=s,o.thisAnimationDuration&&B(l,s)&&!B(r,s)&&(d.top-s.top)/(d.left-s.left)===(r.top-s.top)/(r.left-s.left)&&(t=Q(d,l,c,a.options)),B(s,r)||(o.prevFromRect=r,o.prevToRect=s,t||(t=a.options.animation),a.animate(o,d,s,t)),t&&(n=!0,i=Math.max(i,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),n?e=setTimeout((function(){"function"===typeof o&&o()}),i):"function"===typeof o&&o(),t=[]},animate:function(e,t,o,a){if(a){O(e,"transition",""),O(e,"transform","");var n=P(this.el),i=n&&n.a,r=n&&n.d,s=(t.left-o.left)/(i||1),l=(t.top-o.top)/(r||1);e.animatingX=!!s,e.animatingY=!!l,O(e,"transform","translate3d("+s+"px,"+l+"px,0)"),Z(e),O(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),a)}}}}function Z(e){return e.offsetWidth}function Q(e,t,o,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*a.animation}var ee=[],te={initializeByDefault:!0},oe={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var n=e+"Global";ee.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][n]&&t[a.pluginName][n](r({sortable:t},o)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](r({sortable:t},o)))}))},initializePlugins:function(e,t,o,a){for(var n in ee.forEach((function(a){var n=a.pluginName;if(e.options[n]||a.initializeByDefault){var r=new a(e,t,e.options);r.sortable=e,r.options=e.options,e[n]=r,i(o,r.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var r=this.modifyOption(e,n,e.options[n]);"undefined"!==typeof r&&(e.options[n]=r)}},getEventProperties:function(e,t){var o={};return ee.forEach((function(a){"function"===typeof a.eventProperties&&i(o,a.eventProperties.call(t[a.pluginName],e))})),o},modifyOption:function(e,t,o){var a;return ee.forEach((function(n){e[n.pluginName]&&n.optionListeners&&"function"===typeof n.optionListeners[t]&&(a=n.optionListeners[t].call(e[n.pluginName],o))})),a}};function ae(e){var t=e.sortable,o=e.rootEl,a=e.name,n=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,p=e.newDraggableIndex,h=e.originalEvent,m=e.putSortable,v=e.extraEventProperties;if(t=t||o&&o[G],t){var b,y=t.options,w="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||f||g?(b=document.createEvent("Event"),b.initEvent(a,!0,!0)):b=new CustomEvent(a,{bubbles:!0,cancelable:!0}),b.to=s||o,b.from=l||o,b.item=n||o,b.clone=i,b.oldIndex=c,b.newIndex=d,b.oldDraggableIndex=u,b.newDraggableIndex=p,b.originalEvent=h,b.pullMode=m?m.lastPutMode:void 0;var x=r({},v,oe.getEventProperties(a,t));for(var _ in x)b[_]=x[_];o&&o.dispatchEvent(b),y[w]&&y[w].call(t,b)}}var ne=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.evt,n=l(o,["evt"]);oe.pluginEvent.bind(Ze)(e,t,r({dragEl:re,parentEl:se,ghostEl:le,rootEl:ce,nextEl:de,lastDownEl:ue,cloneEl:pe,cloneHidden:he,dragStarted:De,putSortable:ye,activeSortable:Ze.active,originalEvent:a,oldIndex:me,oldDraggableIndex:ge,newIndex:fe,newDraggableIndex:ve,hideGhostForTarget:Ye,unhideGhostForTarget:We,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){ie({sortable:t,name:e,originalEvent:a})}},n))};function ie(e){ae(r({putSortable:ye,cloneEl:pe,targetEl:re,rootEl:ce,oldIndex:me,oldDraggableIndex:ge,newIndex:fe,newDraggableIndex:ve},e))}var re,se,le,ce,de,ue,pe,he,me,fe,ge,ve,be,ye,we,xe,_e,ke,Se,Ce,De,Ie,Te,Ae,Oe,Pe=!1,Ne=!1,Ee=[],Me=!1,Fe=!1,$e=[],Re=!1,je=[],Ue="undefined"!==typeof document,Le=y,He=g||f?"cssFloat":"float",Ve=Ue&&!w&&!y&&"draggable"in document.createElement("div"),Be=function(){if(Ue){if(f)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var o=O(e),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=$(e,0,t),i=$(e,1,t),r=n&&O(n),s=i&&O(i),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+M(n).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(i).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&r["float"]&&"none"!==r["float"]){var d="left"===r["float"]?"left":"right";return!i||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return n&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||l>=a&&"none"===o[He]||i&&"none"===o[He]&&l+c>a)?"vertical":"horizontal"},qe=function(e,t,o){var a=o?e.left:e.top,n=o?e.right:e.bottom,i=o?e.width:e.height,r=o?t.left:t.top,s=o?t.right:t.bottom,l=o?t.width:t.height;return a===r||n===s||a+i/2===r+l/2},Xe=function(e,t){var o;return Ee.some((function(a){if(!R(a)){var n=M(a),i=a[G].options.emptyInsertThreshold,r=e>=n.left-i&&e<=n.right+i,s=t>=n.top-i&&t<=n.bottom+i;return i&&r&&s?o=a:void 0}})),o},Ke=function(e){function t(e,o){return function(a,n,i,r){var s=a.options.group.name&&n.options.group.name&&a.options.group.name===n.options.group.name;if(null==e&&(o||s))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"===typeof e)return t(e(a,n,i,r),o)(a,n,i,r);var l=(o?a:n).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},n=e.group;n&&"object"==a(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Ye=function(){!Be&&le&&O(le,"display","none")},We=function(){!Be&&le&&O(le,"display","")};Ue&&document.addEventListener("click",(function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1}),!0);var Ge=function(e){if(re){e=e.touches?e.touches[0]:e;var t=Xe(e.clientX,e.clientY);if(t){var o={};for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[G]._onDragOver(o)}}},Je=function(e){re&&re.parentNode[G]._isOutsideThisEl(e.target)};function Ze(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=i({},t),e[G]=this;var o={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 ze(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!==Ze.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in oe.initializePlugins(this,e,o),o)!(a in t)&&(t[a]=o[a]);for(var n in Ke(t),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&Ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),i(this,J())}function Qe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,o,a,n,i,r,s){var l,c,d=e[G],u=d.options.onMove;return!window.CustomEvent||f||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=o,l.draggedRect=a,l.related=n||t,l.relatedRect=i||M(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),u&&(c=u.call(d,l,r)),c}function tt(e){e.draggable=!1}function ot(){Re=!1}function at(e,t,o){var a=M(R(o.el,o.options.draggable)),n=10;return t?e.clientX>a.right+n||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+n}function nt(e,t,o,a,n,i,r,s){var l=a?e.clientY:e.clientX,c=a?o.height:o.width,d=a?o.top:o.left,u=a?o.bottom:o.right,p=!1;if(!r)if(s&&Ae<c*n){if(!Me&&(1===Te?l>d+c*i/2:l<u-c*i/2)&&(Me=!0),Me)p=!0;else if(1===Te?l<d+Ae:l>u-Ae)return-Te}else if(l>d+c*(1-n)/2&&l<u-c*(1-n)/2)return it(t);return p=p||r,p&&(l<d+c*i/2||l>u-c*i/2)?l>d+c/2?1:-1:0}function it(e){return j(re)<j(e)?1:-1}function rt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,a=0;while(o--)a+=t.charCodeAt(o);return a.toString(36)}function st(e){je.length=0;var t=e.getElementsByTagName("input"),o=t.length;while(o--){var a=t[o];a.checked&&je.push(a)}}function lt(e){return setTimeout(e,0)}function ct(e){return clearTimeout(e)}Ze.prototype={constructor:Ze,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ie=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,re):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,a=this.options,n=a.preventOnFilter,i=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(r||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=a.filter;if(st(o),!re&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||a.disabled)&&!l.isContentEditable&&(s=D(s,a.draggable,o,!1),(!s||!s.animated)&&ue!==s)){if(me=j(s),ge=j(s,a.draggable),"function"===typeof c){if(c.call(this,e,s,this))return ie({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:o,fromEl:o}),ne("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=D(l,a.trim(),o,!1),a)return ie({sortable:t,rootEl:a,name:"filter",targetEl:s,fromEl:o,toEl:o}),ne("filter",t,{evt:e}),!0})),c))return void(n&&e.cancelable&&e.preventDefault());a.handle&&!D(l,a.handle,o,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,o){var a,n=this,i=n.el,r=n.options,s=i.ownerDocument;if(o&&!re&&o.parentNode===i){var l=M(o);if(ce=i,re=o,se=re.parentNode,de=re.nextSibling,ue=o,be=r.group,Ze.dragged=re,we={target:re,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=we.clientX-l.left,Ce=we.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,re.style["will-change"]="all",a=function(){ne("delayEnded",n,{evt:e}),Ze.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!v&&n.nativeDraggable&&(re.draggable=!0),n._triggerDragStart(e,t),ie({sortable:n,name:"choose",originalEvent:e}),A(re,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){N(re,e.trim(),tt)})),_(s,"dragover",Ge),_(s,"mousemove",Ge),_(s,"touchmove",Ge),_(s,"mouseup",n._onDrop),_(s,"touchend",n._onDrop),_(s,"touchcancel",n._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,re.draggable=!0),ne("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(g||f))a();else{if(Ze.eventCanceled)return void this._onDrop();_(s,"mouseup",n._disableDelayedDrag),_(s,"touchend",n._disableDelayedDrag),_(s,"touchcancel",n._disableDelayedDrag),_(s,"mousemove",n._delayedDragTouchMoveHandler),_(s,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&_(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(a,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){re&&tt(re),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._disableDelayedDrag),k(e,"touchend",this._disableDelayedDrag),k(e,"touchcancel",this._disableDelayedDrag),k(e,"mousemove",this._delayedDragTouchMoveHandler),k(e,"touchmove",this._delayedDragTouchMoveHandler),k(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,t?"touchmove":"mousemove",this._onTouchMove):(_(re,"dragend",this),_(ce,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(Pe=!1,ce&&re){ne("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",Je);var o=this.options;!e&&A(re,o.dragClass,!1),A(re,o.ghostClass,!0),Ze.active=this,e&&this._appendGhost(),ie({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(xe){this._lastX=xe.clientX,this._lastY=xe.clientY,Ye();var e=document.elementFromPoint(xe.clientX,xe.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(xe.clientX,xe.clientY),e===t)break;t=e}if(re.parentNode[G]._isOutsideThisEl(e),t)do{if(t[G]){var o=void 0;if(o=t[G]._onDragOver({clientX:xe.clientX,clientY:xe.clientY,target:e,rootEl:t}),o&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);We()}},_onTouchMove:function(e){if(we){var t=this.options,o=t.fallbackTolerance,a=t.fallbackOffset,n=e.touches?e.touches[0]:e,i=le&&P(le,!0),r=le&&i&&i.a,s=le&&i&&i.d,l=Le&&Oe&&U(Oe),c=(n.clientX-we.clientX+a.x)/(r||1)+(l?l[0]-$e[0]:0)/(r||1),d=(n.clientY-we.clientY+a.y)/(s||1)+(l?l[1]-$e[1]:0)/(s||1);if(!Ze.active&&!Pe){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(le){i?(i.e+=c-(_e||0),i.f+=d-(ke||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");O(le,"webkitTransform",u),O(le,"mozTransform",u),O(le,"msTransform",u),O(le,"transform",u),_e=c,ke=d,xe=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ce,t=M(re,!0,Le,!0,e),o=this.options;if(Le){Oe=e;while("static"===O(Oe,"position")&&"none"===O(Oe,"transform")&&Oe!==document)Oe=Oe.parentNode;Oe!==document.body&&Oe!==document.documentElement?(Oe===document&&(Oe=E()),t.top+=Oe.scrollTop,t.left+=Oe.scrollLeft):Oe=E(),$e=U(Oe)}le=re.cloneNode(!0),A(le,o.ghostClass,!1),A(le,o.fallbackClass,!0),A(le,o.dragClass,!0),O(le,"transition",""),O(le,"transform",""),O(le,"box-sizing","border-box"),O(le,"margin",0),O(le,"top",t.top),O(le,"left",t.left),O(le,"width",t.width),O(le,"height",t.height),O(le,"opacity","0.8"),O(le,"position",Le?"absolute":"fixed"),O(le,"zIndex","100000"),O(le,"pointerEvents","none"),Ze.ghost=le,e.appendChild(le),O(le,"transform-origin",Se/parseInt(le.style.width)*100+"% "+Ce/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,a=e.dataTransfer,n=o.options;ne("dragStart",this,{evt:e}),Ze.eventCanceled?this._onDrop():(ne("setupClone",this),Ze.eventCanceled||(pe=K(re),pe.draggable=!1,pe.style["will-change"]="",this._hideClone(),A(pe,this.options.chosenClass,!1),Ze.clone=pe),o.cloneId=lt((function(){ne("clone",o),Ze.eventCanceled||(o.options.removeCloneOnHide||ce.insertBefore(pe,re),o._hideClone(),ie({sortable:o,name:"clone"}))})),!t&&A(re,n.dragClass,!0),t?(Ne=!0,o._loopId=setInterval(o._emulateDragOver,50)):(k(document,"mouseup",o._onDrop),k(document,"touchend",o._onDrop),k(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",n.setData&&n.setData.call(o,a,re)),_(document,"drop",o),O(re,"transform","translateZ(0)")),Pe=!0,o._dragStartId=lt(o._dragStarted.bind(o,t,e)),_(document,"selectstart",o),De=!0,b&&O(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,a,n,i=this.el,s=e.target,l=this.options,c=l.group,d=Ze.active,u=be===c,p=l.sort,h=ye||d,m=this,f=!1;if(!Re){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=D(s,l.draggable,i,!0),N("dragOver"),Ze.eventCanceled)return f;if(re.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return $(!1);if(Ne=!1,d&&!l.disabled&&(u?p||(a=!ce.contains(re)):ye===this||(this.lastPutMode=be.checkPull(this,d,re,e))&&c.checkPut(this,d,re,e))){if(n="vertical"===this._getDirection(e,s),t=M(re),N("dragOverValid"),Ze.eventCanceled)return f;if(a)return se=ce,E(),this._hideClone(),N("revert"),Ze.eventCanceled||(de?ce.insertBefore(re,de):ce.appendChild(re)),$(!0);var g=R(i,l.draggable);if(!g||at(e,n,this)&&!g.animated){if(g===re)return $(!1);if(g&&i===e.target&&(s=g),s&&(o=M(s)),!1!==et(ce,i,re,t,s,o,e,!!s))return E(),i.appendChild(re),se=i,U(),$(!0)}else if(s.parentNode===i){o=M(s);var v,b,y=0,w=re.parentNode!==i,x=!qe(re.animated&&re.toRect||t,s.animated&&s.toRect||o,n),_=n?"top":"left",k=F(s,"top","top")||F(re,"top","top"),S=k?k.scrollTop:void 0;if(Ie!==s&&(v=o[_],Me=!1,Fe=!x&&l.invertSwap||w),y=nt(e,s,o,n,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Fe,Ie===s),0!==y){var C=j(re);do{C-=y,b=se.children[C]}while(b&&("none"===O(b,"display")||b===le))}if(0===y||b===s)return $(!1);Ie=s,Te=y;var I=s.nextElementSibling,T=!1;T=1===y;var P=et(ce,i,re,t,s,o,e,T);if(!1!==P)return 1!==P&&-1!==P||(T=1===P),Re=!0,setTimeout(ot,30),E(),T&&!I?i.appendChild(re):s.parentNode.insertBefore(re,T?I:s),k&&X(k,0,S-k.scrollTop),se=re.parentNode,void 0===v||Fe||(Ae=Math.abs(v-M(s)[_])),U(),$(!0)}if(i.contains(re))return $(!1)}return!1}function N(l,c){ne(l,m,r({evt:e,isOwner:u,axis:n?"vertical":"horizontal",revert:a,dragRect:t,targetRect:o,canSort:p,fromSortable:h,target:s,completed:$,onMove:function(o,a){return et(ce,i,re,t,o,M(o),e,a)},changed:U},c))}function E(){N("dragOverAnimationCapture"),m.captureAnimationState(),m!==h&&h.captureAnimationState()}function $(t){return N("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(m),m!==h&&(A(re,ye?ye.options.ghostClass:d.options.ghostClass,!1),A(re,l.ghostClass,!0)),ye!==m&&m!==Ze.active?ye=m:m===Ze.active&&ye&&(ye=null),h===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){N("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===re&&!re.animated||s===i&&!s.animated)&&(Ie=null),l.dragoverBubble||e.rootEl||s===document||(re.parentNode[G]._isOutsideThisEl(e.target),!t&&Ge(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function U(){fe=j(re),ve=j(re,l.draggable),ie({sortable:m,name:"change",toEl:i,newIndex:fe,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",Ge),k(document,"mousemove",Ge),k(document,"touchmove",Ge)},_offUpEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._onDrop),k(e,"touchend",this._onDrop),k(e,"pointerup",this._onDrop),k(e,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;fe=j(re),ve=j(re,o.draggable),ne("drop",this,{evt:e}),se=re&&re.parentNode,fe=j(re),ve=j(re,o.draggable),Ze.eventCanceled||(Pe=!1,Fe=!1,Me=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ct(this.cloneId),ct(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&O(document.body,"user-select",""),O(re,"transform",""),e&&(De&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ce===se||ye&&"clone"!==ye.lastPutMode)&&pe&&pe.parentNode&&pe.parentNode.removeChild(pe),re&&(this.nativeDraggable&&k(re,"dragend",this),tt(re),re.style["will-change"]="",De&&!Pe&&A(re,ye?ye.options.ghostClass:this.options.ghostClass,!1),A(re,this.options.chosenClass,!1),ie({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ce!==se?(fe>=0&&(ie({rootEl:se,name:"add",toEl:se,fromEl:ce,originalEvent:e}),ie({sortable:this,name:"remove",toEl:se,originalEvent:e}),ie({rootEl:se,name:"sort",toEl:se,fromEl:ce,originalEvent:e}),ie({sortable:this,name:"sort",toEl:se,originalEvent:e})),ye&&ye.save()):fe!==me&&fe>=0&&(ie({sortable:this,name:"update",toEl:se,originalEvent:e}),ie({sortable:this,name:"sort",toEl:se,originalEvent:e})),Ze.active&&(null!=fe&&-1!==fe||(fe=me,ve=ge),ie({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ne("nulling",this),ce=re=se=le=de=pe=ue=he=we=xe=De=fe=ve=me=ge=Ie=Te=ye=be=Ze.dragged=Ze.ghost=Ze.clone=Ze.active=null,je.forEach((function(e){e.checked=!0})),je.length=_e=ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":re&&(this._onDragOver(e),Qe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],o=this.el.children,a=0,n=o.length,i=this.options;a<n;a++)e=o[a],D(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||rt(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,a){var n=o.children[a];D(n,this.options.draggable,o,!1)&&(t[e]=n)}),this),e.forEach((function(e){t[e]&&(o.removeChild(t[e]),o.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return D(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var a=oe.modifyOption(this,e,t);o[e]="undefined"!==typeof a?a:t,"group"===e&&Ke(o)},destroy:function(){ne("destroy",this);var e=this.el;e[G]=null,k(e,"mousedown",this._onTapStart),k(e,"touchstart",this._onTapStart),k(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(e,"dragover",this),k(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ne("hideClone",this),Ze.eventCanceled)return;O(pe,"display","none"),this.options.removeCloneOnHide&&pe.parentNode&&pe.parentNode.removeChild(pe),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ne("showClone",this),Ze.eventCanceled)return;ce.contains(re)&&!this.options.group.revertClone?ce.insertBefore(pe,re):de?ce.insertBefore(pe,de):ce.appendChild(pe),this.options.group.revertClone&&this.animate(re,pe),O(pe,"display",""),he=!1}}else this._hideClone()}},Ue&&_(document,"touchmove",(function(e){(Ze.active||Pe)&&e.cancelable&&e.preventDefault()})),Ze.utils={on:_,off:k,css:O,find:N,is:function(e,t){return!!D(e,t,e,!1)},extend:V,throttle:z,closest:D,toggleClass:A,clone:K,index:j,nextTick:lt,cancelNextTick:ct,detectDirection:ze,getChild:$},Ze.get=function(e){return e[G]},Ze.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];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&&(Ze.utils=r({},Ze.utils,e.utils)),oe.mount(e)}))},Ze.create=function(e,t){return new Ze(e,t)},Ze.version=h;var dt,ut,pt,ht,mt,ft,gt=[],vt=!1;function bt(){function e(){for(var e in this.defaults={scroll:!0,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?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),wt(),yt(),q()},nulling:function(){mt=ut=dt=vt=ft=pt=ht=null,gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,a=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(a,n);if(mt=e,t||g||f||b){_t(e,this.options,i,t);var r=H(i,!0);!vt||ft&&a===pt&&n===ht||(ft&&wt(),ft=setInterval((function(){var i=H(document.elementFromPoint(a,n),!0);i!==r&&(r=i,yt()),_t(e,o.options,i,t)}),10),pt=a,ht=n)}else{if(!this.options.bubbleScroll||H(i,!0)===E())return void yt();_t(e,this.options,H(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}function yt(){gt.forEach((function(e){clearInterval(e.pid)})),gt=[]}function wt(){clearInterval(ft)}var xt,_t=z((function(e,t,o,a){if(t.scroll){var n,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=E(),d=!1;ut!==o&&(ut=o,yt(),dt=t.scroll,n=t.scrollFn,!0===dt&&(dt=H(o,!0)));var u=0,p=dt;do{var h=p,m=M(h),f=m.top,g=m.bottom,v=m.left,b=m.right,y=m.width,w=m.height,x=void 0,_=void 0,k=h.scrollWidth,S=h.scrollHeight,C=O(h),D=h.scrollLeft,I=h.scrollTop;h===c?(x=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),_=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(x=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX),_=w<S&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=x&&(Math.abs(b-i)<=s&&D+y<k)-(Math.abs(v-i)<=s&&!!D),A=_&&(Math.abs(g-r)<=s&&I+w<S)-(Math.abs(f-r)<=s&&!!I);if(!gt[u])for(var P=0;P<=u;P++)gt[P]||(gt[P]={});gt[u].vx==T&&gt[u].vy==A&&gt[u].el===h||(gt[u].el=h,gt[u].vx=T,gt[u].vy=A,clearInterval(gt[u].pid),0==T&&0==A||(d=!0,gt[u].pid=setInterval(function(){a&&0===this.layer&&Ze.active._onTouchMove(mt);var t=gt[this.layer].vy?gt[this.layer].vy*l:0,o=gt[this.layer].vx?gt[this.layer].vx*l:0;"function"===typeof n&&"continue"!==n.call(Ze.dragged.parentNode[G],o,t,e,mt,gt[this.layer].el)||X(gt[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=H(p,!1)));vt=d}}),30),kt=function(e){var t=e.originalEvent,o=e.putSortable,a=e.dragEl,n=e.activeSortable,i=e.dispatchSortableEvent,r=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=o||n;r();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function St(){}function Ct(){}function Dt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;xt=t},dragOverValid:function(e){var t=e.completed,o=e.target,a=e.onMove,n=e.activeSortable,i=e.changed,r=e.cancel;if(n.options.swap){var s=this.sortable.el,l=this.options;if(o&&o!==s){var c=xt;!1!==a(o)?(A(o,l.swapClass,!0),xt=o):xt=null,c&&c!==xt&&A(c,l.swapClass,!1)}i(),t(!0),r()}},drop:function(e){var t=e.activeSortable,o=e.putSortable,a=e.dragEl,n=o||this.sortable,i=this.options;xt&&A(xt,i.swapClass,!1),xt&&(i.swap||o&&o.options.swap)&&a!==xt&&(n.captureAnimationState(),n!==t&&t.captureAnimationState(),It(a,xt),n.animateAll(),n!==t&&t.animateAll())},nulling:function(){xt=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:xt}}})}function It(e,t){var o,a,n=e.parentNode,i=t.parentNode;n&&i&&!n.isEqualNode(t)&&!i.isEqualNode(e)&&(o=j(e),a=j(t),n.isEqualNode(i)&&o<a&&a++,n.insertBefore(t,n.children[o]),i.insertBefore(e,i.children[a]))}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=$(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:kt},i(St,{pluginName:"revertOnSpill"}),Ct.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable,a=o||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:kt},i(Ct,{pluginName:"removeOnSpill"});var Tt,At,Ot,Pt,Nt,Et=[],Mt=[],Ft=!1,$t=!1,Rt=!1;function jt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,o){var a="";Et.length&&At===e?Et.forEach((function(e,t){a+=(t?", ":"")+e.textContent})):a=o.textContent,t.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Ot=t},delayEnded:function(){this.isMultiDrag=~Et.indexOf(Ot)},setupClone:function(e){var t=e.sortable,o=e.cancel;if(this.isMultiDrag){for(var a=0;a<Et.length;a++)Mt.push(K(Et[a])),Mt[a].sortableIndex=Et[a].sortableIndex,Mt[a].draggable=!1,Mt[a].style["will-change"]="",A(Mt[a],this.options.selectedClass,!1),Et[a]===Ot&&A(Mt[a],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(e){var t=e.sortable,o=e.rootEl,a=e.dispatchSortableEvent,n=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Et.length&&At===t&&(Lt(!0,o),a("clone"),n()))},showClone:function(e){var t=e.cloneNowShown,o=e.rootEl,a=e.cancel;this.isMultiDrag&&(Lt(!1,o),Mt.forEach((function(e){O(e,"display","")})),t(),Nt=!1,a())},hideClone:function(e){var t=this,o=(e.sortable,e.cloneNowHidden),a=e.cancel;this.isMultiDrag&&(Mt.forEach((function(e){O(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),o(),Nt=!0,a())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&At&&At.multiDrag._deselectMultiDrag(),Et.forEach((function(e){e.sortableIndex=j(e)})),Et=Et.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Rt=!0},dragStarted:function(e){var t=this,o=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){Et.forEach((function(e){e!==Ot&&O(e,"position","absolute")}));var a=M(Ot,!1,!0,!0);Et.forEach((function(e){e!==Ot&&Y(e,a)})),$t=!0,Ft=!0}o.animateAll((function(){$t=!1,Ft=!1,t.options.animation&&Et.forEach((function(e){W(e)})),t.options.sort&&Ht()}))}},dragOver:function(e){var t=e.target,o=e.completed,a=e.cancel;$t&&~Et.indexOf(t)&&(o(!1),a())},revert:function(e){var t=e.fromSortable,o=e.rootEl,a=e.sortable,n=e.dragRect;Et.length>1&&(Et.forEach((function(e){a.addAnimationState({target:e,rect:$t?M(e):n}),W(e),e.fromRect=n,t.removeAnimationState(e)})),$t=!1,Ut(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(e){var t=e.sortable,o=e.isOwner,a=e.insertion,n=e.activeSortable,i=e.parentEl,r=e.putSortable,s=this.options;if(a){if(o&&n._hideClone(),Ft=!1,s.animation&&Et.length>1&&($t||!o&&!n.options.sort&&!r)){var l=M(Ot,!1,!0,!0);Et.forEach((function(e){e!==Ot&&(Y(e,l),i.appendChild(e))})),$t=!0}if(!o)if($t||Ht(),Et.length>1){var c=Nt;n._showClone(t),n.options.animation&&!Nt&&c&&Mt.forEach((function(e){n.addAnimationState({target:e,rect:Pt}),e.fromRect=Pt,e.thisAnimationDuration=null}))}else n._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,o=e.isOwner,a=e.activeSortable;if(Et.forEach((function(e){e.thisAnimationDuration=null})),a.options.animation&&!o&&a.multiDrag.isMultiDrag){Pt=i({},t);var n=P(Ot,!0);Pt.top-=n.f,Pt.left-=n.e}},dragOverAnimationComplete:function(){$t&&($t=!1,Ht())},drop:function(e){var t=e.originalEvent,o=e.rootEl,a=e.parentEl,n=e.sortable,i=e.dispatchSortableEvent,r=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,d=a.children;if(!Rt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),A(Ot,c.selectedClass,!~Et.indexOf(Ot)),~Et.indexOf(Ot))Et.splice(Et.indexOf(Ot),1),Tt=null,ae({sortable:n,rootEl:o,name:"deselect",targetEl:Ot,originalEvt:t});else{if(Et.push(Ot),ae({sortable:n,rootEl:o,name:"select",targetEl:Ot,originalEvt:t}),t.shiftKey&&Tt&&n.el.contains(Tt)){var u,p,h=j(Tt),m=j(Ot);if(~h&&~m&&h!==m)for(m>h?(p=h,u=m):(p=m,u=h+1);p<u;p++)~Et.indexOf(d[p])||(A(d[p],c.selectedClass,!0),Et.push(d[p]),ae({sortable:n,rootEl:o,name:"select",targetEl:d[p],originalEvt:t}))}else Tt=Ot;At=l}if(Rt&&this.isMultiDrag){if((a[G].options.sort||a!==o)&&Et.length>1){var f=M(Ot),g=j(Ot,":not(."+this.options.selectedClass+")");if(!Ft&&c.animation&&(Ot.thisAnimationDuration=null),l.captureAnimationState(),!Ft&&(c.animation&&(Ot.fromRect=f,Et.forEach((function(e){if(e.thisAnimationDuration=null,e!==Ot){var t=$t?M(e):f;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Ht(),Et.forEach((function(e){d[g]?a.insertBefore(e,d[g]):a.appendChild(e),g++})),r===j(Ot))){var v=!1;Et.forEach((function(e){e.sortableIndex===j(e)||(v=!0)})),v&&i("update")}Et.forEach((function(e){W(e)})),l.animateAll()}At=l}(o===a||s&&"clone"!==s.lastPutMode)&&Mt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Rt=!1,Mt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),k(document,"pointerup",this._deselectMultiDrag),k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Rt||!Rt)&&At===this.sortable&&(!e||!D(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Et.length){var t=Et[0];A(t,this.options.selectedClass,!1),Et.shift(),ae({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[G];t&&t.options.multiDrag&&!~Et.indexOf(e)&&(At&&At!==t&&(At.multiDrag._deselectMultiDrag(),At=t),A(e,t.options.selectedClass,!0),Et.push(e))},deselect:function(e){var t=e.parentNode[G],o=Et.indexOf(e);t&&t.options.multiDrag&&~o&&(A(e,t.options.selectedClass,!1),Et.splice(o,1))}},eventProperties:function(){var e=this,t=[],o=[];return Et.forEach((function(a){var n;t.push({multiDragElement:a,index:a.sortableIndex}),n=$t&&a!==Ot?-1:$t?j(a,":not(."+e.options.selectedClass+")"):j(a),o.push({multiDragElement:a,index:n})})),{items:c(Et),clones:[].concat(Mt),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Ut(e,t){Et.forEach((function(o,a){var n=t.children[o.sortableIndex+(e?Number(a):0)];n?t.insertBefore(o,n):t.appendChild(o)}))}function Lt(e,t){Mt.forEach((function(o,a){var n=t.children[o.sortableIndex+(e?Number(a):0)];n?t.insertBefore(o,n):t.appendChild(o)}))}function Ht(){Et.forEach((function(e){e!==Ot&&e.parentNode&&e.parentNode.removeChild(e)}))}Ze.mount(new bt),Ze.mount(Ct,St),t["default"]=Ze},3074:function(e,t,o){},3335:function(e,t,o){(function(t,a){e.exports=a(o("2480"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"01f9":function(e,t,o){"use strict";var a=o("2d00"),n=o("5ca1"),i=o("2aba"),r=o("32e9"),s=o("84f2"),l=o("41a0"),c=o("7f20"),d=o("38fd"),u=o("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",f="values",g=function(){return this};e.exports=function(e,t,o,v,b,y,w){l(o,t,v);var x,_,k,S=function(e){if(!p&&e in T)return T[e];switch(e){case m:return function(){return new o(this,e)};case f:return function(){return new o(this,e)}}return function(){return new o(this,e)}},C=t+" Iterator",D=b==f,I=!1,T=e.prototype,A=T[u]||T[h]||b&&T[b],O=A||S(b),P=b?D?S("entries"):O:void 0,N="Array"==t&&T.entries||A;if(N&&(k=d(N.call(new e)),k!==Object.prototype&&k.next&&(c(k,C,!0),a||"function"==typeof k[u]||r(k,u,g))),D&&A&&A.name!==f&&(I=!0,O=function(){return A.call(this)}),a&&!w||!p&&!I&&T[u]||r(T,u,O),s[t]=O,s[C]=g,b)if(x={values:D?O:S(f),keys:y?O:S(m),entries:P},w)for(_ in x)_ in T||i(T,_,x[_]);else n(n.P+n.F*(p||I),t,x);return x}},"02f4":function(e,t,o){var a=o("4588"),n=o("be13");e.exports=function(e){return function(t,o){var i,r,s=String(n(t)),l=a(o),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(r=s.charCodeAt(l+1))<56320||r>57343?e?s.charAt(l):i:e?s.slice(l,l+2):r-56320+(i-55296<<10)+65536)}}},"0390":function(e,t,o){"use strict";var a=o("02f4")(!0);e.exports=function(e,t,o){return t+(o?a(e,t).length:1)}},"0bfb":function(e,t,o){"use strict";var a=o("cb7c");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,o){var a=o("ce10"),n=o("e11e");e.exports=Object.keys||function(e){return a(e,n)}},1495:function(e,t,o){var a=o("86cc"),n=o("cb7c"),i=o("0d58");e.exports=o("9e1e")?Object.defineProperties:function(e,t){n(e);var o,r=i(t),s=r.length,l=0;while(s>l)a.f(e,o=r[l++],t[o]);return e}},"214f":function(e,t,o){"use strict";o("b0c5");var a=o("2aba"),n=o("32e9"),i=o("79e5"),r=o("be13"),s=o("2b4c"),l=o("520a"),c=s("species"),d=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var o="ab".split(e);return 2===o.length&&"a"===o[0]&&"b"===o[1]}();e.exports=function(e,t,o){var p=s(e),h=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=h?!i((function(){var t=!1,o=/a/;return o.exec=function(){return t=!0,null},"split"===e&&(o.constructor={},o.constructor[c]=function(){return o}),o[p](""),!t})):void 0;if(!h||!m||"replace"===e&&!d||"split"===e&&!u){var f=/./[p],g=o(r,p,""[e],(function(e,t,o,a,n){return t.exec===l?h&&!n?{done:!0,value:f.call(t,o,a)}:{done:!0,value:e.call(o,t,a)}:{done:!1}})),v=g[0],b=g[1];a(String.prototype,e,v),n(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,o){var a=o("d3f4"),n=o("7726").document,i=a(n)&&a(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}},"23c6":function(e,t,o){var a=o("2d95"),n=o("2b4c")("toStringTag"),i="Arguments"==a(function(){return arguments}()),r=function(e,t){try{return e[t]}catch(o){}};e.exports=function(e){var t,o,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=r(t=Object(e),n))?o:i?a(t):"Object"==(s=a(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,o){var a=o("7726"),n=o("32e9"),i=o("69a8"),r=o("ca5a")("src"),s=o("fa5b"),l="toString",c=(""+s).split(l);o("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,o,s){var l="function"==typeof o;l&&(i(o,"name")||n(o,"name",t)),e[t]!==o&&(l&&(i(o,r)||n(o,r,e[t]?""+e[t]:c.join(String(t)))),e===a?e[t]=o:s?e[t]?e[t]=o:n(e,t,o):(delete e[t],n(e,t,o)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[r]||s.call(this)}))},"2aeb":function(e,t,o){var a=o("cb7c"),n=o("1495"),i=o("e11e"),r=o("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=o("230e")("iframe"),a=i.length,n="<",r=">";t.style.display="none",o("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(n+"script"+r+"document.F=Object"+n+"/script"+r),e.close(),c=e.F;while(a--)delete c[l][i[a]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(s[l]=a(e),o=new s,s[l]=null,o[r]=e):o=c(),void 0===t?o:n(o,t)}},"2b4c":function(e,t,o){var a=o("5537")("wks"),n=o("ca5a"),i=o("7726").Symbol,r="function"==typeof i,s=e.exports=function(e){return a[e]||(a[e]=r&&i[e]||(r?i:n)("Symbol."+e))};s.store=a},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"2fdb":function(e,t,o){"use strict";var a=o("5ca1"),n=o("d2c8"),i="includes";a(a.P+a.F*o("5147")(i),"String",{includes:function(e){return!!~n(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,o){var a=o("86cc"),n=o("4630");e.exports=o("9e1e")?function(e,t,o){return a.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},"38fd":function(e,t,o){var a=o("69a8"),n=o("4bf8"),i=o("613b")("IE_PROTO"),r=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=n(e),a(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?r:null}},"41a0":function(e,t,o){"use strict";var a=o("2aeb"),n=o("4630"),i=o("7f20"),r={};o("32e9")(r,o("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,o){e.prototype=a(r,{next:n(1,o)}),i(e,t+" Iterator")}},"456d":function(e,t,o){var a=o("4bf8"),n=o("0d58");o("5eda")("keys",(function(){return function(e){return n(a(e))}}))},4588:function(e,t){var o=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:o)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,o){var a=o("be13");e.exports=function(e){return Object(a(e))}},5147:function(e,t,o){var a=o("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[a]=!1,!"/./"[e](t)}catch(n){}}return!0}},"520a":function(e,t,o){"use strict";var a=o("0bfb"),n=RegExp.prototype.exec,i=String.prototype.replace,r=n,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],d=l||c;d&&(r=function(e){var t,o,r,d,u=this;return c&&(o=new RegExp("^"+u.source+"$(?!\\s)",a.call(u))),l&&(t=u[s]),r=n.call(u,e),l&&r&&(u[s]=u.global?r.index+r[0].length:t),c&&r&&r.length>1&&i.call(r[0],o,(function(){for(d=1;d<arguments.length-2;d++)void 0===arguments[d]&&(r[d]=void 0)})),r}),e.exports=r},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,o){var a=o("8378"),n=o("7726"),i="__core-js_shared__",r=n[i]||(n[i]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:o("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,o){var a=o("7726"),n=o("8378"),i=o("32e9"),r=o("2aba"),s=o("9b43"),l="prototype",c=function(e,t,o){var d,u,p,h,m=e&c.F,f=e&c.G,g=e&c.S,v=e&c.P,b=e&c.B,y=f?a:g?a[t]||(a[t]={}):(a[t]||{})[l],w=f?n:n[t]||(n[t]={}),x=w[l]||(w[l]={});for(d in f&&(o=t),o)u=!m&&y&&void 0!==y[d],p=(u?y:o)[d],h=b&&u?s(p,a):v&&"function"==typeof p?s(Function.call,p):p,y&&r(y,d,p,e&c.U),w[d]!=p&&i(w,d,h),v&&x[d]!=p&&(x[d]=p)};a.core=n,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,o){var a=o("5ca1"),n=o("8378"),i=o("79e5");e.exports=function(e,t){var o=(n.Object||{})[e]||Object[e],r={};r[e]=t(o),a(a.S+a.F*i((function(){o(1)})),"Object",r)}},"5f1b":function(e,t,o){"use strict";var a=o("23c6"),n=RegExp.prototype.exec;e.exports=function(e,t){var o=e.exec;if("function"===typeof o){var i=o.call(e,t);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},"613b":function(e,t,o){var a=o("5537")("keys"),n=o("ca5a");e.exports=function(e){return a[e]||(a[e]=n(e))}},"626a":function(e,t,o){var a=o("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},6762:function(e,t,o){"use strict";var a=o("5ca1"),n=o("c366")(!0);a(a.P,"Array",{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),o("9c6c")("includes")},6821:function(e,t,o){var a=o("626a"),n=o("be13");e.exports=function(e){return a(n(e))}},"69a8":function(e,t){var o={}.hasOwnProperty;e.exports=function(e,t){return o.call(e,t)}},"6a99":function(e,t,o){var a=o("d3f4");e.exports=function(e,t){if(!a(e))return e;var o,n;if(t&&"function"==typeof(o=e.toString)&&!a(n=o.call(e)))return n;if("function"==typeof(o=e.valueOf)&&!a(n=o.call(e)))return n;if(!t&&"function"==typeof(o=e.toString)&&!a(n=o.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,o){"use strict";var a=o("0d58"),n=o("2621"),i=o("52a7"),r=o("4bf8"),s=o("626a"),l=Object.assign;e.exports=!l||o("79e5")((function(){var e={},t={},o=Symbol(),a="abcdefghijklmnopqrst";return e[o]=7,a.split("").forEach((function(e){t[e]=e})),7!=l({},e)[o]||Object.keys(l({},t)).join("")!=a}))?function(e,t){var o=r(e),l=arguments.length,c=1,d=n.f,u=i.f;while(l>c){var p,h=s(arguments[c++]),m=d?a(h).concat(d(h)):a(h),f=m.length,g=0;while(f>g)u.call(h,p=m[g++])&&(o[p]=h[p])}return o}:l},7726:function(e,t){var o=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=o)},"77f1":function(e,t,o){var a=o("4588"),n=Math.max,i=Math.min;e.exports=function(e,t){return e=a(e),e<0?n(e+t,0):i(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,o){var a=o("86cc").f,n=o("69a8"),i=o("2b4c")("toStringTag");e.exports=function(e,t,o){e&&!n(e=o?e:e.prototype,i)&&a(e,i,{configurable:!0,value:t})}},8378:function(e,t){var o=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=o)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,o){var a=o("cb7c"),n=o("c69a"),i=o("6a99"),r=Object.defineProperty;t.f=o("9e1e")?Object.defineProperty:function(e,t,o){if(a(e),t=i(t,!0),a(o),n)try{return r(e,t,o)}catch(s){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},"9b43":function(e,t,o){var a=o("d8e8");e.exports=function(e,t,o){if(a(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,a){return e.call(t,o,a)};case 3:return function(o,a,n){return e.call(t,o,a,n)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,o){var a=o("2b4c")("unscopables"),n=Array.prototype;void 0==n[a]&&o("32e9")(n,a,{}),e.exports=function(e){n[a][e]=!0}},"9def":function(e,t,o){var a=o("4588"),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},"9e1e":function(e,t,o){e.exports=!o("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,o){t.exports=e},a481:function(e,t,o){"use strict";var a=o("cb7c"),n=o("4bf8"),i=o("9def"),r=o("4588"),s=o("0390"),l=o("5f1b"),c=Math.max,d=Math.min,u=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};o("214f")("replace",2,(function(e,t,o,f){return[function(a,n){var i=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,i,n):o.call(String(i),a,n)},function(e,t){var n=f(o,e,this,t);if(n.done)return n.value;var u=a(e),p=String(this),h="function"===typeof t;h||(t=String(t));var v=u.global;if(v){var b=u.unicode;u.lastIndex=0}var y=[];while(1){var w=l(u,p);if(null===w)break;if(y.push(w),!v)break;var x=String(w[0]);""===x&&(u.lastIndex=s(p,i(u.lastIndex),b))}for(var _="",k=0,S=0;S<y.length;S++){w=y[S];for(var C=String(w[0]),D=c(d(r(w.index),p.length),0),I=[],T=1;T<w.length;T++)I.push(m(w[T]));var A=w.groups;if(h){var O=[C].concat(I,D,p);void 0!==A&&O.push(A);var P=String(t.apply(void 0,O))}else P=g(C,p,D,I,A,t);D>=k&&(_+=p.slice(k,D)+P,k=D+C.length)}return _+p.slice(k)}];function g(e,t,a,i,r,s){var l=a+e.length,c=i.length,d=h;return void 0!==r&&(r=n(r),d=p),o.call(s,d,(function(o,n){var s;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,a);case"'":return t.slice(l);case"<":s=r[n.slice(1,-1)];break;default:var d=+n;if(0===d)return o;if(d>c){var p=u(d/10);return 0===p?o:p<=c?void 0===i[p-1]?n.charAt(1):i[p-1]+n.charAt(1):o}s=i[d-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,o){var a=o("d3f4"),n=o("2d95"),i=o("2b4c")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==n(e))}},ac6a:function(e,t,o){for(var a=o("cadf"),n=o("0d58"),i=o("2aba"),r=o("7726"),s=o("32e9"),l=o("84f2"),c=o("2b4c"),d=c("iterator"),u=c("toStringTag"),p=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=n(h),f=0;f<m.length;f++){var g,v=m[f],b=h[v],y=r[v],w=y&&y.prototype;if(w&&(w[d]||s(w,d,p),w[u]||s(w,u,v),l[v]=p,b))for(g in a)w[g]||i(w,g,a[g],!0)}},b0c5:function(e,t,o){"use strict";var a=o("520a");o("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,o){var a=o("6821"),n=o("9def"),i=o("77f1");e.exports=function(e){return function(t,o,r){var s,l=a(t),c=n(l.length),d=i(r,c);if(e&&o!=o){while(c>d)if(s=l[d++],s!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===o)return e||d||0;return!e&&-1}}},c649:function(e,t,o){"use strict";(function(e){o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return s})),o.d(t,"b",(function(){return n})),o.d(t,"d",(function(){return l}));o("a481");function a(){return"undefined"!==typeof window?window.console:e.console}var n=a();function i(e){var t=Object.create(null);return function(o){var a=t[o];return a||(t[o]=e(o))}}var r=/-(\w)/g,s=i((function(e){return e.replace(r,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,o){var a=0===o?e.children[0]:e.children[o-1].nextSibling;e.insertBefore(t,a)}}).call(this,o("c8ba"))},c69a:function(e,t,o){e.exports=!o("9e1e")&&!o("79e5")((function(){return 7!=Object.defineProperty(o("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(a){"object"===typeof window&&(o=window)}e.exports=o},ca5a:function(e,t){var o=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+a).toString(36))}},cadf:function(e,t,o){"use strict";var a=o("9c6c"),n=o("d53b"),i=o("84f2"),r=o("6821");e.exports=o("01f9")(Array,"Array",(function(e,t){this._t=r(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,n(1)):n(0,"keys"==t?o:"values"==t?e[o]:[o,e[o]])}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},cb7c:function(e,t,o){var a=o("d3f4");e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,o){var a=o("69a8"),n=o("6821"),i=o("c366")(!1),r=o("613b")("IE_PROTO");e.exports=function(e,t){var o,s=n(e),l=0,c=[];for(o in s)o!=r&&a(s,o)&&c.push(o);while(t.length>l)a(s,o=t[l++])&&(~i(c,o)||c.push(o));return c}},d2c8:function(e,t,o){var a=o("aae3"),n=o("be13");e.exports=function(e,t,o){if(a(t))throw TypeError("String#"+o+" doesn't accept regex!");return String(n(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,o){"use strict";var a=o("5ca1"),n=o("9def"),i=o("d2c8"),r="startsWith",s=""[r];a(a.P+a.F*o("5147")(r),"String",{startsWith:function(e){var t=i(this,e,r),o=n(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return s?s.call(t,a,o):t.slice(o,o+a.length)===a}})},f6fd:function(e,t){(function(e){var t="currentScript",o=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(a){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(a.stack)||[!1])[1];for(e in o)if(o[e].src==t||"interactive"==o[e].readyState)return o[e];return null}}})})(document)},f751:function(e,t,o){var a=o("5ca1");a(a.S+a.F,"Object",{assign:o("7333")})},fa5b:function(e,t,o){e.exports=o("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,o){var a=o("7726").document;e.exports=a&&a.documentElement},fb15:function(e,t,o){"use strict";var a;(o.r(t),"undefined"!==typeof window)&&(o("f6fd"),(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(o.p=a[1]));o("f751"),o("f559"),o("ac6a"),o("cadf"),o("456d");function n(e){if(Array.isArray(e))return e}function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var o=[],a=!0,n=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(a=(r=s.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(l){n=!0,i=l}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw i}}return o}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,a=new Array(t);o<t;o++)a[o]=e[o];return a}function s(e,t){if(e){if("string"===typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return n(e)||i(e,t)||s(e,t)||l()}o("6762"),o("2fdb");function d(e){if(Array.isArray(e))return r(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return d(e)||u(e)||s(e)||p()}var m=o("a352"),f=o.n(m),g=o("c649");function v(e,t,o){return void 0===o||(e=e||{},e[t]=o),e}function b(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,o,a){if(!e)return[];var n=e.map((function(e){return e.elm})),i=t.length-a,r=h(t).map((function(e,t){return t>=i?n.length:n.indexOf(e)}));return o?r.filter((function(e){return-1!==e})):r}function w(e,t){var o=this;this.$nextTick((function(){return o.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(o){null!==t.realList&&t["onDrag"+e](o),w.call(t,e,o)}}function _(e){return["transition-group","TransitionGroup"].includes(e)}function k(e){if(!e||1!==e.length)return!1;var t=c(e,1),o=t[0].componentOptions;return!!o&&_(o.tag)}function S(e,t,o){return e[o]||(t[o]?t[o]():void 0)}function C(e,t,o){var a=0,n=0,i=S(t,o,"header");i&&(a=i.length,e=e?[].concat(h(i),h(e)):h(i));var r=S(t,o,"footer");return r&&(n=r.length,e=e?[].concat(h(e),h(r)):h(r)),{children:e,headerOffset:a,footerOffset:n}}function D(e,t){var o=null,a=function(e,t){o=v(o,e,t)},n=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,o){return t[o]=e[o],t}),{});if(a("attrs",n),!t)return o;var i=t.on,r=t.props,s=t.attrs;return a("on",i),a("props",r),Object.assign(o.attrs,s),o}var I=["Start","Add","Remove","Update","End"],T=["Choose","Unchoose","Sort","Filter","Clone"],A=["Move"].concat(I,T).map((function(e){return"on"+e})),O=null,P={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},N={name:"draggable",inheritAttrs:!1,props:P,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=k(t);var o=C(t,this.$slots,this.$scopedSlots),a=o.children,n=o.headerOffset,i=o.footerOffset;this.headerOffset=n,this.footerOffset=i;var r=D(this.$attrs,this.componentData);return e(this.getTag(),r,a)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};I.forEach((function(o){t["on"+o]=x.call(e,o)})),T.forEach((function(o){t["on"+o]=w.bind(e,o)}));var o=Object.keys(this.$attrs).reduce((function(t,o){return t[Object(g["a"])(o)]=e.$attrs[o],t}),{}),a=Object.assign({},this.options,o,t,{onMove:function(t,o){return e.onDragMove(t,o)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new f.a(this.rootContainer,a),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var o=Object(g["a"])(t);-1===A.indexOf(o)&&this._sortable.option(o,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=b(this.getChildrenNodes()||[],e);if(-1===t)return null;var o=this.realList[t];return{index:t,element:o}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&_(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(e))};this.alterList(t)},updatePosition:function(e,t){var o=function(o){return o.splice(t,0,o.splice(e,1)[0])};this.alterList(o)},getRelatedContextFromMoveEvent:function(e){var t=e.to,o=e.related,a=this.getUnderlyingPotencialDraggableComponent(t);if(!a)return{component:a};var n=a.realList,i={list:n,component:a};if(t!==o&&n&&a.getUnderlyingVm){var r=a.getUnderlyingVm(o);if(r)return Object.assign(r,i)}return i},getVmIndex:function(e){var t=this.visibleIndexes,o=t.length;return e>o-1?o:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var o=this.getComponent();o.children=[],o.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),O=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(g["d"])(e.item);var o=this.getVmIndex(e.newIndex);this.spliceList(o,0,t),this.computeIndexes();var a={element:t,newIndex:o};this.emitChanges({added:a})}},onDragRemove:function(e){if(Object(g["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var o={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:o})}else Object(g["d"])(e.clone)},onDragUpdate:function(e){Object(g["d"])(e.item),Object(g["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,o=this.getVmIndex(e.newIndex);this.updatePosition(t,o);var a={element:this.context.element,oldIndex:t,newIndex:o};this.emitChanges({moved:a})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var o=h(t.to.children).filter((function(e){return"none"!==e.style["display"]})),a=o.indexOf(t.related),n=e.component.getVmIndex(a),i=-1!==o.indexOf(O);return i||!t.willInsertAfter?n:n+1},onDragMove:function(e,t){var o=this.move;if(!o||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(e),n=this.context,i=this.computeFutureIndex(a,e);Object.assign(n,{futureIndex:i});var r=Object.assign({},e,{relatedContext:a,draggedContext:n});return o(r,t)},onDragEnd:function(){this.computeIndexes(),O=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",N);var E=N;t["default"]=E}})["default"]}))},"588d":function(e,t,o){"use strict";o("9a76")},"6bc4":function(e,t,o){"use strict";o("ca95")},"7c12":function(e,t,o){},"7e21":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e._self._c;return t("awsui-layout",{style:{width:"100%",height:e.mainHeight},attrs:{id:"manage"}},[t("awsui-aside",{staticStyle:{overflow:"hidden","border-right":"1px solid #F2F2F2"},attrs:{width:"280px"}},[t("manage-main",{key:"manageMain",ref:"manageMain"})],1),t("awsui-main",[e.visibleList?t("manage-list",{key:Math.random(),ref:"manageList",attrs:{teamId:e.teamId}}):e._e()],1)],1)},n=[],i=function(){var e=this,t=e._self._c;return t("validation-observer",{ref:"updateTeamForm"},[t("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"manageMain"}},[t("ul",{staticStyle:{height:"100%","overflow-y":"auto"}},[t("draggable",{staticClass:"list-group",attrs:{list:e.teamData,handle:".handle"},on:{drop:e.draggableDrop,update:e.onDragTeamSort}},e._l(e.teamData,(function(o){return t("li",{staticClass:"list-group-item inline-block",staticStyle:{width:"100%"}},[t("div",{staticClass:"team-item-div general-bgcolor-hover",style:{"background-color":e.clickId==o.teamId?"#F5F7FA":""}},[t("div",{staticClass:"inline-block team-item-icon-div text-second-color"},[t("i",{staticClass:"iconfont icon-yidongshu icon-drag handle",staticStyle:{cursor:"move","font-size":"18px","margin-left":"15px"}})]),t("div",{staticClass:"inline-block team-item-icon-div cursor-pointer",style:{background:o.teamLogo.color},on:{click:function(t){return e.clickTeam(o.teamId)}}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"18px",color:"#fff"},domProps:{innerHTML:e._s(o.teamLogo.code)}})]),t("div",{staticClass:"inline-block team-item-text-div cursor-pointer",on:{click:function(t){return e.clickTeam(o.teamId)}}},[t("div",[t("p",{class:{"text-general-color":e.clickId!=o.teamId,"team-item-div-checked":e.clickId==o.teamId}},[e._v(e._s(o.teamName))])])]),t("div",{staticClass:"inline-block team-item-icon-div",staticStyle:{width:"16px"}},[t("div",{attrs:{id:"drawDown"}},[t("el-dropdown",{attrs:{"hide-on-click":!0,trigger:"click","visible-arrow":!1,placement:"bottom-start"}},[t("span",[t("div",{staticClass:"inline-block",staticStyle:{width:"16px",height:"100%"}},[t("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer"}},[e._v("")])])]),t("el-dropdown-menu",{staticStyle:{"min-width":"200px"}},[o.teamManage?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.updateTeamInfo(o.teamId)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("信息修改")])])]):e._e(),o.teamManage&&o.run?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.updateTeamStatus(o.teamId,1)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("暂停小组")])])]):e._e(),o.teamManage&&!o.run?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.updateTeamStatus(o.teamId,0)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("启用小组")])])]):e._e(),o.teamManage?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.removeTeam(o.teamId)}}},[t("div",{staticClass:"text-important-color",staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("解散小组")])])]):e._e(),o.teamManage?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.exitTeam(o.teamId)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("退出小组")])])])],1)],1)],1)])])])})),0)],1),t("awsui-dialog",{attrs:{title:"修改小组信息",visible:e.updateTeam.visible,border:!1,width:"600px",height:"250px"},on:{"update:visible":function(t){return e.$set(e.updateTeam,"visible",t)}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.updateTeam.loading,expression:"updateTeam.loading"}],staticStyle:{position:"relative","border-top":"1px solid #F2F2F2","padding-top":"15px"},attrs:{"element-loading-text":e.updateTeam.loadingText}},[t("awsui-form",{ref:"infoForm",staticClass:"required-logo",attrs:{model:e.updateTeam.baseInfo.form,rules:e.updateTeam.baseInfo.rules,"label-width":"100px","label-position":"top"}},[e.isLoaded?t("div",[t("awsui-icon-picker",{staticClass:"icon-team-div",attrs:{defaultOptions:e.iconPickerOptions,value:{icon:e.updateTeam.baseInfo.form.teamLogo.code,color:e.updateTeam.baseInfo.form.teamLogo.color}},on:{change:e.changeIcon}})],1):e._e(),t("awsui-row",[t("awsui-col",{attrs:{span:18}},[t("awsui-form-item",{attrs:{label:"名称",required:""}},[t("validation-provider",{attrs:{rules:"required|teamName_formatCheck|maxLength:36"},scopedSlots:e._u([{key:"default",fn:function({classes:o,errors:a}){return[t("awsui-input",{attrs:{placeholder:"请输入名称"},model:{value:e.updateTeam.baseInfo.form.teamName,callback:function(t){e.$set(e.updateTeam.baseInfo.form,"teamName",t)},expression:"updateTeam.baseInfo.form.teamName"}}),t("div",{class:o},[e._v(e._s(a[0]))])]}}])})],1)],1)],1),t("awsui-row",[t("awsui-col",{attrs:{span:18}},[t("awsui-form-item",{attrs:{label:"工作网络",required:""}},[t("validation-provider",{attrs:{rules:"required|teamName_formatCheck|maxLength:36"},scopedSlots:e._u([{key:"default",fn:function({classes:o,errors:a}){return[t("awsui-select",{attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请选择/输入工作网络",options:e.updateTeam.baseInfo.form.categoryOpts},on:{change:e.changeCategory},model:{value:e.updateTeam.baseInfo.form.category,callback:function(t){e.$set(e.updateTeam.baseInfo.form,"category",t)},expression:"updateTeam.baseInfo.form.category"}}),t("div",{class:o},[e._v(e._s(a[0]))])]}}])})],1)],1)],1),t("awsui-row",[t("awsui-col",{attrs:{span:24}},[t("awsui-form-item",{attrs:{label:"简介"}},[t("validation-provider",{attrs:{rules:"maxLength:255"},scopedSlots:e._u([{key:"default",fn:function({classes:o,errors:a}){return[t("awsui-input",{attrs:{type:"textarea",placeholder:"请输入简介"},model:{value:e.updateTeam.baseInfo.form.teamDesc,callback:function(t){e.$set(e.updateTeam.baseInfo.form,"teamDesc",t)},expression:"updateTeam.baseInfo.form.teamDesc"}}),t("div",{class:o},[e._v(e._s(a[0]))])]}}])})],1)],1)],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.validateUpdateTeam}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){e.updateTeam.visible=!1}}},[e._v("取消")])],1)])],1)])},r=[],s=o("3335"),l=o.n(s),c=o("0f08"),d=[["公司","&#xe68c;"],["公司","&#xe604;"],["主页","&#xe601;"],["主页","&#xe703;"],["地球","&#xe6f8;"]],u={name:"ManageMain",components:{draggable:l.a},data(){return{teamData:[],clickId:"",updateTeam:{loading:!1,loadingText:"加载中",visible:!1,teamId:"",baseInfo:{form:{teamName:"",category:"",categoryOpts:[],teamDesc:"",teamLogo:{color:"",code:""}},rules:{category:[{required:!0,message:"[工作网络]不允许为空",trigger:"blur"}],teamName:[{required:!0,message:"[名称]不允许为空",trigger:"blur"}]}}},isLoaded:!1,iconPickerOptions:{type:"background",fatherWidth:70,iconFontSize:52,colorList:["#dc4f39","#ff9421","#009b52","#3383da","#009688","#6600d5","#0b0e7b","#666666","#e6e8ea"],iconfontArray:production?window.iconfontArray:d}}},inject:["openTeam"],mounted(){this.initData()},methods:{draggableDrop(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer=e.originalEvent.dataTransfer},onDragTeamSort(){const e=this,t=[];for(let a=0;a<e.teamData.length;a++)t.push(e.teamData[a].teamId);const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_user_team_sort",teamIds:JSON.stringify(t)}};c["a"].post(o).then((function(t){"ok"==t.result||e.$message.error(t.msg)})).catch(e=>{console.log(e)}),console.log(this.teamData)},initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_joined_team_list_query"}};c["a"].post(t).then((function(t){if("ok"==t.result){if(e.teamData=t.data,0==e.teamData.length)return void parent.location.reload();e.clickTeam(e.teamData[0].teamId)}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},clickTeam(e){this.openTeam(e),this.clickId=e},clearUpdateTeamContent(){const e=this;e.updateTeam.baseInfo.form.teamName="",e.updateTeam.baseInfo.form.category="",e.updateTeam.baseInfo.form.teamDesc="",e.updateTeam.baseInfo.form.teamLogo={},e.updateTeam.loadingText="加载中",e.updateTeam.teamId="",e.isLoaded=!1},changeCategory(e){this.updateTeam.baseInfo.form.category=e},updateTeamInfo(e){const t=this;t.clearUpdateTeamContent(),t.updateTeam.teamId=e,t.updateTeam.visible=!0,t.updateTeam.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_team_create_or_update_data_query",teamId:e}};c["a"].post(o).then((function(e){if("ok"==e.result){const o=e.data;t.updateTeam.baseInfo.form.teamName=o.teamName,t.updateTeam.baseInfo.form.category=o.category,t.updateTeam.baseInfo.form.categoryOpts=o.categoryArr,t.updateTeam.baseInfo.form.teamDesc=o.teamDesc,t.updateTeam.baseInfo.form.teamLogo=o.teamLogo,t.isLoaded=!0}else t.$message.error(e.msg);t.updateTeam.loading=!1})).catch(e=>{console.log(e),t.updateTeam.loading=!1})},validateUpdateTeam(){this.$refs.updateTeamForm.validate().then(e=>{e&&this.updateTeamSave()})},updateTeamSave(){const e=this,t=e.updateTeam.baseInfo.form.teamName,o=e.updateTeam.baseInfo.form.category,a=e.updateTeam.baseInfo.form.teamDesc,n=e.updateTeam.baseInfo.form.teamLogo,i={teamId:e.updateTeam.teamId,teamName:t,category:o,teamDesc:a,teamLogo:n};e.updateTeam.loadingText="请稍等";const r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_baseinfo_update_save",data:JSON.stringify(i)}};c["a"].post(r).then((function(t){if("ok"==t.result){const o=t.data.teamId;for(let a=0;a<e.teamData.length;a++)o==e.teamData[a].teamId&&(e.teamData[a].teamName=t.data.teamName,e.teamData[a].teamLogo=t.data.teamLogo);o==e.clickId&&e.clickTeam(o),e.updateTeam.visible=!1}else e.$message.error(t.msg);e.updateTeam.loading=!1})).catch(t=>{console.log(t),e.updateTeam.loading=!1})},updateTeamStatus(e,t){const o=this;o.updateTeam.loadingText="请稍等";const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_update_status",status:t,teamId:e}};c["a"].post(a).then((function(a){if("ok"==a.result){let a="停用";0==t&&(a="启用"),o.$message({message:a+"成功",type:"success"});for(let n=0;n<o.teamData.length;n++)e==o.teamData[n].teamId&&(o.teamData[n].run=0==t);e==o.clickId&&o.clickTeam(e)}else o.$message.error(a.msg)})).catch(e=>{console.log(e)})},removeTeam(e){this.$confirm("解散小组不可恢复,确定要解散小组吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_remove",teamId:e}};c["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"解散成功",type:"success"}),t.initData()):t.$message({message:e.msg,type:"warning"})})).catch(e=>{console.log(e)})}).catch(()=>{})},exitTeam(e){this.$confirm("确定要退出小组吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_exit",teamId:e}};c["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"退出成功",type:"success"}),t.initData()):t.$message({message:e.msg,type:"warning"})})).catch(e=>{console.log(e)})}).catch(()=>{})},changeIcon(e){this.updateTeam.baseInfo.form.teamLogo.code=e.icon,this.updateTeam.baseInfo.form.teamLogo.color=e.color}}},p=u,h=(o("6bc4"),o("e607")),m=Object(h["a"])(p,i,r,!1,null,"ac2e0a1e",null),f=m.exports,g=function(){var e=this,t=e._self._c;return t("awsui-layout",{staticClass:"text-general-color",attrs:{id:"manageList"}},[t("awsui-header",{attrs:{height:parseInt(e.header1Height)+parseInt(e.header2Height)+"px"}},[t("div",{staticStyle:{width:"100%",height:"100%"}},[t("awsui-row",{style:{height:e.header1Height}},[t("awsui-col",{staticStyle:{padding:"10px 0 10px 10px"},style:{height:e.header1Height},attrs:{id:"header",span:24}},[t("div",{staticClass:"inline-block",attrs:{id:"teamLogo"}},[t("div",{staticClass:"team-icon-div inline-block",style:{height:e.iconHeight,width:e.iconHeight,"line-height":e.iconHeight,"background-color":e.currTeam.teamLogo.color},attrs:{id:"headerLogo"}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"32px",color:"#fff"},domProps:{innerHTML:e._s(e.currTeam.teamLogo.code)}})])]),t("div",{staticClass:"inline-block",attrs:{id:"teamDetail"}},[t("div",{staticClass:"inline-block",style:{"padding-left":e.headerTitlePaddingLeft}},[t("div",{staticClass:"text-overflow-hidden",staticStyle:{height:"25px",position:"relative",top:"11px"},attrs:{id:"headerTitle"}},[t("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.currTeam.teamName))]),e.currTeam.isRun?e._e():t("span",[t("span",{staticStyle:{"font-size":"12px"}},[e._v("(")]),t("span",{staticClass:"text-important-color",staticStyle:{"font-size":"12px"}},[e._v("已停用")]),t("span",{staticStyle:{"font-size":"12px"}},[e._v(")")])]),t("span",{staticClass:"text-second-color",staticStyle:{"font-size":"12px"}},[e._v('(关联"'+e._s(e.currTeam.wsName)+'"')])]),t("div",{staticClass:"text-overflow-hidden",staticStyle:{height:"19px",position:"relative",top:"14px"},attrs:{id:"headerDesc"}},[t("span",{staticStyle:{"font-size":"12px"}},[e._v(e._s(e.currTeam.teamDesc))])])])]),e.currTeam.teamManager?t("div",{staticClass:"inline-block",style:{width:e.manageButtonWidth,height:"20px"},attrs:{id:"manageButton"}},[t("div",{staticStyle:{position:"absolute",right:"-15px"}},[t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.manageRole}},[e._v("管理角色")]),t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px","margin-left":"15px"},attrs:{type:"primary"},on:{click:e.addMember}},[e._v("添加成员")])],1)]):e._e()])],1),t("awsui-row",{style:{height:e.header2Height}},[t("awsui-col",{staticStyle:{height:"100%"},attrs:{span:17}},[t("div",{staticStyle:{height:"100%","padding-left":"10px"}},[t("span",[e._v("小组共"),t("span",{staticStyle:{color:"#D9001B"}},[e._v(e._s(e.tempTableData.length)+"名")]),e._v("成员,其中"),t("span",{staticStyle:{color:"#D9001B"},domProps:{innerHTML:e._s(e.getManageUserCount()+"名")}}),e._v("管理员")])])]),t("awsui-col",{staticStyle:{height:"100%","margin-left":"0"},attrs:{span:7}},[t("div",{staticStyle:{height:"100%",width:"260px",position:"absolute",right:"0px"}},[t("awsui-input",{attrs:{placeholder:"搜索"},on:{input:e.search},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1)])],1)],1)]),t("awsui-main",[t("div",{ref:"tableMain",attrs:{id:"tableMain"}},[e.currTeam.teamManager?e._e():t("div",{key:"table1"},[t("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{height:e.mainHeight,"row-style":{height:"50px"},"cell-style":{padding:"0px"},data:e.tableData,"highlight-current-row":""}},[t("el-table-column",{attrs:{prop:"userName",label:"姓名","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("span",{domProps:{innerHTML:e._s(o.row.userName)}}),o.row.close?t("span",{staticClass:"text-important-color"},[e._v("[已注销]")]):e._e()]}}],null,!1,1326306943)}),t("el-table-column",{attrs:{prop:"roleName",label:"小组角色","min-width":"150px"}}),t("el-table-column",{attrs:{prop:"deptName",label:"部门","min-width":"150px"}}),t("el-table-column",{attrs:{prop:"email",label:"电子邮件","min-width":"150px"}})],1)],1),e.currTeam.teamManager?t("div",{key:"table2"},[t("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{height:e.mainHeight,"row-style":{height:"50px"},"cell-style":{padding:"0px"},data:e.tableData,"highlight-current-row":"","cell-class-name":e.hideCheckBoxCell},on:{"cell-mouse-enter":e.showCheckbox,"cell-mouse-leave":e.hideCheckbox,"row-click":e.clickTableRow,"selection-change":e.handlecheckedUsersChange}},[t("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),t("el-table-column",{attrs:{prop:"userName",label:"姓名","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("span",{domProps:{innerHTML:e._s(o.row.userName)}}),o.row.close?t("span",{staticClass:"text-important-color"},[e._v("[已注销]")]):e._e()]}}],null,!1,1326306943)}),t("el-table-column",{attrs:{prop:"roleName",label:"小组角色","min-width":"150px"}}),t("el-table-column",{attrs:{prop:"deptName",label:"部门","min-width":"150px"}}),t("el-table-column",{attrs:{prop:"email",label:"电子邮件","min-width":"150px"}}),t("el-table-column",{attrs:{prop:"operate",label:"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("div",{staticStyle:{"/*width":"30px",display:"inline-block"}},[t("div",{staticClass:"operate-icon-display"},[!o.row.isOlderVersion&&o.row.hasUserPerm?t("el-tooltip",{attrs:{content:"权限复制",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer","padding-right":"10px"},on:{click:function(t){return e.copyUser(o.row.userId)}}},[e._v("")])]):e._e(),!o.row.isOlderVersion&&o.row.hasUserPerm?t("el-tooltip",{attrs:{content:"用户权限",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer","padding-right":"10px"},on:{click:function(t){return e.updateUser(o.row.userId)}}},[e._v("")])]):e._e(),t("el-tooltip",{attrs:{content:"修改角色",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-jiaoseguanli",staticStyle:{cursor:"pointer","padding-right":"10px"},on:{click:function(t){return e.updateRole(o.row.userId)}}})]),o.row.userId!=e.currTeam.userId?t("el-tooltip",{attrs:{content:"删除成员",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-lajitong1",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.removeUser(o.row.userId)}}})]):e._e()],1)])]}}],null,!1,1507603797)})],1)],1):e._e()])]),t("awsui-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}],key:"operateFooter",attrs:{height:e.footerHeight}},[t("div",{staticStyle:{height:"100%"}},[t("div",{staticStyle:{padding:"8px 8px 8px 14px"}},[t("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}}),t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px","margin-left":"15px"},attrs:{type:"primary"},on:{click:e.updateRoles}},[e._v("修改角色")]),t("awsui-button",{staticClass:"button-general-color-reverse2",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.removeUsers}},[e._v("删除成员")]),t("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""}},[e._v("取消")])],1)])]),t("role-manage",{ref:"roleManage",attrs:{visible:e.roleManage.visible,teamId:e.teamId,userIds:e.roleManage.userIds,type:e.roleManage.type,title:e.roleManage.title},on:{"update:visible":function(t){return e.$set(e.roleManage,"visible",t)},cancel:function(t){e.roleManage.visible=!1},getResult:e.roleManageDone}}),t("member-add",{ref:"memberAdd",attrs:{visible:e.memberAdd.visible,teamId:e.teamId,title:e.memberAdd.title},on:{"update:visible":function(t){return e.$set(e.memberAdd,"visible",t)},cancel:function(t){e.memberAdd.visible=!1},getResult:e.memberAddDone}}),t("role-update",{ref:"roleUpdate",attrs:{visible:e.roleUpdate.visible,teamId:e.teamId,isUser:!0,roleId:e.roleUpdate.roleId,userid:e.roleUpdate.userid},on:{"update:visible":function(t){return e.$set(e.roleUpdate,"visible",t)},cancel:function(t){e.roleUpdate.visible=!1},setUserRole:e.setUserRole,getResult:e.updateUserDone}}),t("perm-copy",{attrs:{visible:e.memberCopy.visible,teamId:e.teamId,userid:e.memberCopy.userid,teamMembers:e.memberCopy.teamMembers,title:e.memberCopy.title},on:{"update:visible":function(t){return e.$set(e.memberCopy,"visible",t)},cancel:function(t){e.memberCopy.visible=!1},getResult:e.memberCopyDone}})],1)},v=[],b=function(){var e=this,t=e._self._c;return t("awsui-layout",{attrs:{id:"roleManage"}},[t("awsui-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"加载中",border:!1,title:e.title,visible:e.dialogVisible,width:"500px",height:"300px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"text-general-color"},[t("div",{staticStyle:{"border-top":"1px solid #F2F2F2"}}),t("div",{staticStyle:{width:"100%",height:"258px","overflow-y":"auto"}},[t("ul",e._l(e.roleData,(function(o){return t("li",{staticClass:"general-bgcolor-hover",style:{"background-color":o.roleId==e.checkdRole||o.checked?"#F5F7FA":""}},[t("div",{staticStyle:{width:"100%",height:"50px","line-height":"50px","vertical-align":"middle"}},[t("div",{staticStyle:{width:"15%",display:"inline-block","text-align":"center"}},[t("i",{staticClass:"iconfont",domProps:{innerHTML:e._s(o.icon)}})]),t("div",{staticStyle:{width:"70%",display:"inline-block","line-height":"25px","vertical-align":"middle"}},[t("p",{staticClass:"text-overflow-hidden",staticStyle:{position:"relative",top:"2px","font-size":"14px"}},[e._v(e._s(o.roleName))]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:o.roleDesc,placement:"bottom-start"}},[t("p",{staticClass:"text-overflow-hidden text-second-color",staticStyle:{position:"relative",top:"-2px","font-size":"12px"}},[e._v(e._s(o.roleDesc))])])],1),t("div",{staticStyle:{width:"15%",display:"inline-block","text-align":"center"}},["roleManage"==e.type&&0!=o.roleType?t("i",{staticClass:"awsui-iconfont general-bgcolor-text-hover operate-icon-display",staticStyle:{cursor:"pointer","font-size":"14px"},on:{click:function(t){return e.updateRole(o.roleId)}}},[e._v("")]):e._e(),"roleManage"==e.type&&0!=o.roleType&&1!=o.roleType&&2!=o.roleType?t("i",{staticClass:"awsui-iconfont general-bgcolor-text-hover operate-icon-display",staticStyle:{"padding-left":"10px",cursor:"pointer","font-size":"14px"},on:{click:function(t){return e.removeRole(o.roleId)}}},[e._v("")]):e._e(),"roleConfig"==e.type&&e.isOlderVersion?t("awsui-radio",{directives:[{name:"else",rawName:"v-else"}],attrs:{size:"small",label:o.roleId,showText:!1},model:{value:e.checkdRole,callback:function(t){e.checkdRole=t},expression:"checkdRole"}}):e._e(),"roleConfig"!=e.type||e.isOlderVersion?e._e():t("el-checkbox",{attrs:{checked:o.checked},on:{change:function(t){return e.$forceUpdate()}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"item.checked"}})],1)])])})),0)]),t("div",{staticStyle:{"border-top":"1px solid #F2F2F2"}},[t("div",{staticClass:"text-linker-color",staticStyle:{cursor:"pointer",width:"100%",height:"30px","line-height":"30px","vertical-align":"middle","padding-top":"8px"},on:{click:function(t){return e.updateRole("")}}},[t("div",{staticStyle:{width:"15%",display:"inline-block","text-align":"center"}},[t("i",{staticClass:"awsui-iconfont"},[e._v("")])]),t("div",{staticStyle:{width:"85%",display:"inline-block"}},["roleConfig"==e.type?t("span",[e._v("无满足角色,去添加")]):t("span",[e._v("添加角色")])])])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),t("role-update",{ref:"roleUpdate",attrs:{visible:e.roleUpdate.visible,teamId:e.teamId,roleId:e.roleUpdate.roleId},on:{"update:visible":function(t){return e.$set(e.roleUpdate,"visible",t)},cancel:function(t){e.roleUpdate.visible=!1},getResult:e.updateRoleDone}})],1)},y=[],w=function(){var e=this,t=e._self._c;return t("div",[t("awsui-sidebar",{attrs:{size:e.size,title:e.title,"before-close":e.handleClose,"wrapper-closable":!1,"destroy-on-close":!0,visible:e.sidebarVisible},on:{"update:visible":function(t){e.sidebarVisible=t}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{padding:"0px"},attrs:{id:"updateRole"}},[t("div",{staticStyle:{"border-top":"1px solid #F2F2F2"}}),t("div",{staticStyle:{padding:"16px","overflow-y":"auto"},style:{height:e.drawerBodyHeight},attrs:{id:"drawerBody"}},[t("awsui-form",{ref:"roleForm",attrs:{rules:e.rules,model:e.roleForm,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[t("awsui-input",{attrs:{placeholder:"请输入内容",disabled:e.isUser},model:{value:e.roleForm.roleName,callback:function(t){e.$set(e.roleForm,"roleName",t)},expression:"roleForm.roleName"}})],1),t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("角色描述")]),t("div",{staticClass:"awsui-form-item__content"},[t("awsui-input",{attrs:{type:"textarea"},model:{value:e.roleForm.roleDesc,callback:function(t){e.$set(e.roleForm,"roleDesc",t)},expression:"roleForm.roleDesc"}})],1)]),t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("数据权限")]),t("el-tooltip",{key:Math.random(),staticClass:"item",attrs:{effect:"dark",placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v("选择右侧全选则该角色数据权限始终与小组一致"),t("br"),e._v("当小组数据权限调整时,该角色数据权限自动调整")]),t("label",{staticClass:"awsui-form-item__label"},[t("span",[t("i",{staticClass:"awsui-iconfont"},[e._v("")])])])]),t("awsui-checkbox",{attrs:{size:"small"},model:{value:e.roleForm.isAllDataPerm,callback:function(t){e.$set(e.roleForm,"isAllDataPerm",t)},expression:"roleForm.isAllDataPerm"}},[e._v("全部")]),t("div",{staticClass:"awsui-form-item__content"},[e.isOlderVersion?t("awsui-input",{staticClass:"role_data_perm_textarea",attrs:{type:"textarea",readonly:"",placeholder:"请选择"},nativeOn:{click:function(t){return e.openDataPermTreeDlg.apply(null,arguments)}},model:{value:e.roleForm.isAllDataPerm?"全部":e.roleForm.dataPermText,callback:function(t){e.$set(e.roleForm.isAllDataPerm?"全部":e.roleForm,"dataPermText",t)},expression:"roleForm.isAllDataPerm ? '全部' : roleForm.dataPermText"}}):t("div",{staticStyle:{height:"300px",border:"1px solid #f2f2f2"}},[e.roleForm.isAllDataPerm?t("div",[e._v(" 全部")]):t("div",{staticClass:"tree"},[t("div",{staticClass:"allGroup"},[t("div",{staticClass:"processAll"},[t("el-checkbox",{on:{change:e.checkAllProcessChange},model:{value:e.checkAllProcess,callback:function(t){e.checkAllProcess=t},expression:"checkAllProcess"}},[e._v("全选")])],1),t("div",{staticClass:"actionGroup"},[t("el-checkbox",{on:{change:e.checkAllUpdateChange},model:{value:e.checkAllUpdate,callback:function(t){e.checkAllUpdate=t},expression:"checkAllUpdate"}},[e._v("编辑")]),t("el-checkbox",{on:{change:e.checkAllDeleteChange},model:{value:e.checkAllDelete,callback:function(t){e.checkAllDelete=t},expression:"checkAllDelete"}},[e._v("删除")]),t("el-checkbox",{on:{change:e.checkAllVersionChange},model:{value:e.checkAllVersion,callback:function(t){e.checkAllVersion=t},expression:"checkAllVersion"}},[e._v("版本管理")])],1)]),e.refreshTree?t("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tree",staticStyle:{height:"270px",overflow:"auto"},attrs:{props:e.treeProps,"default-checked-keys":e.roleForm.dataPerm,"expand-on-click-node":!1,"highlight-current":!0,"empty-text":"","check-strictly":"","show-checkbox":e.multiple,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode,"check-change":e.checkedNode},scopedSlots:e._u([{key:"default",fn:function({node:o,data:a}){return t("span",{staticStyle:{display:"flex",width:"100%"}},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),t("span",{staticStyle:{"max-width":"250px",overflow:"hidden","white-space":"nowrap"},attrs:{title:o.label}},[e._v(e._s(o.label))]),o.level>1?t("span",{staticClass:"action-checkBox",staticStyle:{flex:"1","text-align":"right"},on:{click:function(t){return e.handleCheckedActionChange(o)}}},[t("el-checkbox-group",{model:{value:o.data.dataActionPerm,callback:function(t){e.$set(o.data,"dataActionPerm",t)},expression:"node.data.dataActionPerm"}},e._l(o.data.dataActionPermOpts,(function(a){return t("el-checkbox",{key:a.label,attrs:{label:a.label,disabled:!o.checked},on:{change:function(t){return e.checkBoxChangeHandle(o.data,a)}}},[e._v(e._s(a.value))])})),1)],1):e._e()])}}],null,!1,333691992)}):e._e()],1)])],1)],1),t("awsui-form-item",{attrs:{label:"操作权限"}},[t("el-checkbox-group",{model:{value:e.roleForm.actionPerm,callback:function(t){e.$set(e.roleForm,"actionPerm",t)},expression:"roleForm.actionPerm"}},[e._l(e.roleForm.actionPermOpts,(function(o){return[t("el-checkbox",{attrs:{label:o.label}},[e._v(e._s(o.value))])]}))],2)],1),t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("应用权限")]),t("el-tooltip",{key:Math.random(),staticClass:"item",attrs:{effect:"dark",placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v("选择右侧全选则该角色默认拥有所有相关应用权限"),t("br"),e._v("当PAL小组有新的扩展应用时该角色应用权限自动增加")]),t("label",{staticClass:"awsui-form-item__label"},[t("span",[t("i",{staticClass:"awsui-iconfont"},[e._v("")])])])]),t("awsui-checkbox",{attrs:{size:"small"},model:{value:e.roleForm.isAllAppPerm,callback:function(t){e.$set(e.roleForm,"isAllAppPerm",t)},expression:"roleForm.isAllAppPerm"}}),t("div",{staticClass:"awsui-form-item__content"},[t("el-checkbox-group",{model:{value:e.roleForm.appPerm,callback:function(t){e.$set(e.roleForm,"appPerm",t)},expression:"roleForm.appPerm"}},[e._l(e.roleForm.appPermOpts,(function(o){return[t("el-checkbox",{attrs:{disabled:e.roleForm.isAllAppPerm,label:o.label}},[e._v(e._s(o.value))])]}))],2)],1)],1)],1)],1),t("div",{staticClass:"drawer-footer",style:{"background-color":"#F2F2F2",height:e.footerHeight}},[t("div",{staticStyle:{float:"right",position:"relative",top:"9px"},attrs:{id:"drawerFooter"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"80px"},attrs:{disabled:e.buttonDisabled,size:"large",type:"primary"},on:{click:e.submit}},[e._v("保存")]),t("awsui-button",{staticStyle:{width:"80px"},attrs:{size:"large"},on:{click:e.cancel}},[e._v("取消")])],1)])])]),t("cooperation-repository-tree",{ref:"cooperationRepositoryTree",attrs:{visible:e.cooperationRepositoryTree.visible,wsId:e.wsId,teamId:e.teamId,multiple:!0,title:e.cooperationRepositoryTree.title,selected:JSON.parse(JSON.stringify(e.roleForm.dataPerm))},on:{"update:visible":function(t){return e.$set(e.cooperationRepositoryTree,"visible",t)},cancel:function(t){e.cooperationRepositoryTree.visible=!1},getResult:e.saveCooperationRepositoryResult}})],1)},x=[],_=function(){var e=this,t=e._self._c;return t("el-container",[t("awsui-dialog",{attrs:{id:"cooperationRepositoryTree",title:e.title,visible:e.dialogVisible,"destroy-on-close":!0,width:e.width,border:!1,"modal-append-to-body":!1,"append-to-body":!0,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.refresh?[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[t("el-autocomplete",{staticStyle:{width:"100%"},attrs:{size:"small","fetch-suggestions":e.treeSearch,"suffix-icon":"el-icon-search",placeholder:"快速查询","trigger-on-focus":!1},on:{select:e.treeSearchSelect},scopedSlots:e._u([{key:"default",fn:function({item:o}){return[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(o.pathName))]),t("span",[e._v(e._s(o.name))])])]}}],null,!1,3987291353),model:{value:e.treeSearchKey,callback:function(t){e.treeSearchKey=t},expression:"treeSearchKey"}}),t("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[t("div",{staticClass:"tree"},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"default-checked-keys":e.treeChecked,"expand-on-click-node":!1,"highlight-current":!0,"empty-text":"","check-strictly":"","show-checkbox":e.multiple,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode,"check-change":e.checkedNode},scopedSlots:e._u([{key:"default",fn:function({node:o,data:a}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),t("span",[e._v(e._s(o.label))])])}}],null,!1,52448956)})],1)])],1)]:e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},k=[],S={name:"CooperationRepositoryTree",props:{visible:{type:Boolean,default:!1},wsId:{type:String,default:"",required:!0},teamId:{type:String,default:""},categorys:{type:String,default:""},rootId:{type:String,default:""},multiple:{type:Boolean,default:!1},title:{type:String,default:"请选择"},selected:{type:Array,default:function(){return[]}}},data(){return{refresh:!1,dialogVisible:!1,loading:!1,searchKey:"",treeSearchKey:"",treeChecked:[],timeout:null,pid:"",width:"500px",treeProps:{label:"name",isLeaf:"leaf"}}},methods:{handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel"),this.dialogVisible=!1},submit(){this.closeDlalog("save"),this.dialogVisible=!1},closeDlalog(e){if("save"==e){let e=[];if(this.multiple)e=this.treeChecked;else{const t=this.$refs.tree.getCurrentNode();null!=t&&e.push(t)}this.$emit("getResult",e)}else this.$emit("cancel");this.clearData()},clearData(){this.searchKey="",this.treeSearchKey="",this.treeChecked=[]},handleNodeClick(e){console.log(e)},openNode(e,t,o){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.versionId,e.path)},treeSearch(e,t){const o=this;if(void 0!=e&&""!=e.trim()){const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_tree_component_search",wsId:o.wsId,teamId:o.teamId,categorys:o.categorys,rootId:o.rootId,name:e}};c["a"].post(a).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(o.timeout),o.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(o.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(o.timeout)},queryTreeByIdAndPath(e,t,o){const a=this,n=a.$refs.tree,i=o.split(",");let r=1;for(let s=0;s<i.length;s++)s>0&&null!=n.getNode(i[s-1])&&(setTimeout(a._expandNode(n,i[s-1]),300*r),r++);setTimeout((function(){null!=n.getNode(t)&&n.setCurrentKey(t)}),300*r)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const o=this;o.loading=!0;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_tree_component_subjson",wsId:o.wsId,teamId:o.teamId,categorys:o.categorys,pid:""}};0===e.level?a.data.pid=o.pid:a.data.pid=e.data.id,c["a"].post(a).then((function(a){if(t(a.data),o.loading=!1,0==e.level&&a.data.length>0){const e=o.$refs.tree;e.getNode(a.data[0].id).expand(),setTimeout((function(){const t=e.getNode(a.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,o){},closeNode(e,t,o){t.childNodes=[],t.loaded=!1},checkedNode(e,t,o){const a=this,n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_all_childern_data_query",wsId:a.wsId,teamId:a.teamId,pid:e.id}};c["a"].post(n).then((function(o){const n=o.data,i=e.versionId;if(t){const e=a.treeChecked;-1==e.indexOf(i)&&e.push(i);for(let t=0;t<n.length;t++)-1==e.indexOf(n[t])&&e.push(n[t]);a.$refs.tree.setCheckedKeys(e)}else{const e=a.treeChecked,t=[];for(let o=0;o<e.length;o++)e[o]!=i&&-1==n.indexOf(e[o])&&t.push(e[o]);a.treeChecked=t,a.$refs.tree.setCheckedKeys([])}})).catch(e=>{console.log(e)})}},watch:{visible(e){this.dialogVisible=e,e?(this.pid=this.rootId,this.treeChecked=this.selected,this.refresh=!0):this.refresh=!1}}},C=S,D=(o("af15"),Object(h["a"])(C,_,k,!1,null,"dbb2ca8e",null)),I=D.exports,T={name:"RoleUpdate",components:{cooperationRepositoryTree:I},props:{visible:{type:Boolean,default:!1},teamId:{type:String,default:""},roleId:{type:String,default:""},isUser:{type:Boolean,default:!1},userid:{type:String,default:""}},data(){return{loading:!1,sidebarVisible:!1,buttonDisabled:!1,title:"新增角色",size:"80%",drawerBodyHeight:"0px",footerHeight:"50px",wsId:"",roleForm:{roleName:"",roleDesc:"",roleType:"",appPermOpts:[],actionPermOpts:[],isAllDataPerm:!1,isAllAppPerm:!1,dataPerm:[],dataPermText:"",appPerm:[],actionPerm:[]},cooperationRepositoryTree:{visible:!1,title:"设置数据权限"},rules:{roleName:[{required:!0,message:"必填",trigger:"blur"}]},isOlderVersion:!0,treeProps:{label:"name",isLeaf:"leaf"},treeChecked:[],multiple:!0,categorys:"",pid:"",dataActionPerm:{},dataActionPermOpts:[],teamPermFileSize:0,checkAllProcess:!1,checkAllUpdate:!1,checkAllDelete:!1,checkAllVersion:!1,refreshTree:!1}},mounted(){},methods:{initParams(){this.isUser?this.title="用户权限":""==this.roleId?this.title="新增角色":this.title="修改角色",this.initRoleSidebar()},initData(){const e=this;e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_role_create_or_update_data_query",teamId:e.teamId,roleId:e.roleId}};e.isUser&&(t.data.cmd="com.actionsoft.apps.coe.pal.cooperation_hide_role_update_data_query",t.data.userid=e.userid),c["a"].post(t).then((function(t){if("ok"==t.result){const o=t.data;e.wsId=o.wsId,e.isOlderVersion=o.isOlderVersion,e.roleForm.roleName=o.roleName,e.roleForm.roleDesc=o.roleDesc,e.roleForm.roleType=o.roleType,e.roleForm.appPermOpts=o.appPermOpts,e.roleForm.actionPermOpts=o.actionPermOpts,e.roleForm.isAllDataPerm=o.isAllDataPerm,e.roleForm.isAllAppPerm=o.isAllAppPerm,e.roleForm.dataPerm=o.dataPerm,e.dataActionPermOpts=o.dataActionPermOpts,e.dataActionPerm=o.dataActionPerm,e.roleForm.appPerm=o.appPerm,e.roleForm.actionPerm=o.actionPerm,e.roleForm.dataPermText=o.dataPermText,e.refreshTree=!0,e.teamPermFileSize=o.teamPermFileSize,e.checkAllProcess=o.teamPermFileSize==o.dataPerm.length;let a=e.getActionPermNum("w");e.checkAllUpdate=a==o.teamPermFileSize;let n=e.getActionPermNum("d");e.checkAllDelete=n==o.teamPermFileSize;let i=e.getActionPermNum("v");e.checkAllVersion=i==o.teamPermFileSize,e.$emit("setUserRole",o.roleId)}else e.$message.error(t.msg);e.loading=!1})).catch(t=>{console.log(t),e.loading=!1})},openDataPermTreeDlg(){this.cooperationRepositoryTree.visible=!0},saveCooperationRepositoryResult(e){const t=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_names_query",versionIds:JSON.stringify(e)}};c["a"].post(o).then((function(e){if("ok"==e.result){const o=e.data;t.roleForm.dataPerm=o.versionIdArr,t.roleForm.dataPermText=o.names}else t.$message.error(e.msg)})).catch(e=>{console.log(e)}),this.cooperationRepositoryTree.visible=!1},clearAllData(){const e=this;e.buttonDisabled=!1,e.wsId="",e.roleForm={roleName:"",roleDesc:"",roleType:"",appPermOpts:[],actionPermOpts:[],isAllDataPerm:!1,isAllAppPerm:!1,dataPerm:[],dataPermText:"",appPerm:[],actionPerm:[]},e.isOlderVersion||(e.$refs.tree.setCheckedNodes([]),e.$refs.tree.$children=[],e.treeChecked=[],e.dataActionPerm={},e.dataActionPermOpts=[]),e.refreshTree=!1},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel")},submit(){this.$refs["roleForm"].validate(e=>{e&&this.closeDlalog("save")})},closeDlalog(e){const t=this;if("save"==e){if(t.roleForm.roleName.trim().length>30)return void t.$message.error("[角色名称]不允许超过30个字符");if(""!=t.roleForm.roleDesc&&t.roleForm.roleDesc.trim().length>255)return void t.$message.error("[角色名称]不允许超过255个字符");const e={teamId:t.teamId,roleId:t.roleId,roleName:t.roleForm.roleName,roleDesc:t.roleForm.roleDesc,roleType:t.roleForm.roleType,isAllDataPerm:t.roleForm.isAllDataPerm,isAllAppPerm:t.roleForm.isAllAppPerm,dataPerm:t.roleForm.dataPerm,appPerm:t.roleForm.appPerm,actionPerm:t.roleForm.actionPerm};if(t.isUser&&(e.roleName=t.userid),!t.isOlderVersion){let o=[];Object.keys(t.dataActionPerm).forEach(e=>{if(36==e.length){let a={id:e,actionPerm:t.dataActionPerm[e].join(",")};o.push(a)}}),e.dataPerm=o}t.loading=!0,t.buttonDisabled=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_role_create_or_update_data_save",data:JSON.stringify(e)}};c["a"].post(o).then((function(e){t.loading=!1,"ok"==e.result?(t.$message({message:"保存成功",type:"success"}),t.$emit("getResult","ok"),t.clearAllData()):t.$message({message:e.msg,type:"warning"})})).catch(e=>{console.log(e),t.loading=!1,t.buttonDisabled=!1})}else t.$emit("cancel"),t.clearAllData()},initRoleSidebar(){this.drawerBodyHeight=document.documentElement.clientHeight-53-1-32-parseInt(this.footerHeight)+"px"},openNode(e,t,o){},expandNode(e,t,o){},closeNode(e,t,o){t.childNodes=[],t.loaded=!1},checkedNode(e,t,o){const a=this;a.loading=!0;const n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_all_childern_data_query",wsId:a.wsId,teamId:a.teamId,pid:e.id}};c["a"].post(n).then((function(o){const n=o.data,i=e.versionId;if(t){const e=a.roleForm.dataPerm;-1==e.indexOf(i)&&(e.push(i),Object.assign(a.dataActionPerm,{[i]:[]}));for(let t=0;t<n.length;t++)-1==e.indexOf(n[t])&&(e.push(n[t]),Object.assign(a.dataActionPerm,{[n[t]]:[]}));a.$refs.tree.setCheckedKeys(e),e.forEach(e=>{let t=a.$refs.tree.getCheckedNodes();a.checkAllUpdate&&setTimeout(()=>{a.pushArr(a.dataActionPerm[e],"w"),t.forEach(e=>{a.pushArr(e.dataActionPerm,"w")})},100),a.checkAllDelete&&setTimeout(()=>{a.pushArr(a.dataActionPerm[e],"d"),t.forEach(e=>{a.pushArr(e.dataActionPerm,"d")})},100),a.checkAllVersion&&setTimeout(()=>{a.pushArr(a.dataActionPerm[e],"v"),t.forEach(e=>{a.pushArr(e.dataActionPerm,"v")})},100)})}else{const e=a.roleForm.dataPerm,t=a.dataActionPerm,o=[],r={};for(let a=0;a<e.length;a++)e[a]!=i&&-1==n.indexOf(e[a])&&o.push(e[a]);Object.keys(t).forEach(e=>{e!=i&&-1==n.indexOf(e)&&Object.assign(r,{[e]:t[e]})}),a.roleForm.dataPerm=o,a.dataActionPerm=r,a.$refs.tree.setCheckedKeys([])}let r=0;a.roleForm.dataPerm.forEach(e=>{36==e.length&&r++}),a.checkAllProcess=r==a.teamPermFileSize,a.loading=!1,console.log("计算全选按钮",a.teamPermFileSize,"实际勾选",r)})).catch(e=>{console.log(e)})},loadNode(e,t){const o=this;o.loading=!0;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_tree_component_subjson",wsId:o.wsId,teamId:o.teamId,categorys:o.categorys,pid:""}};0===e.level?a.data.pid=o.pid:a.data.pid=e.data.id,c["a"].post(a).then((function(a){let n=a.data;for(let e=0;e<n.length;e++){let t=n[e];Object.assign(t,{dataActionPermOpts:o.dataActionPermOpts}),void 0!=o.dataActionPerm[t.versionId]?Object.assign(t,{dataActionPerm:o.dataActionPerm[t.versionId]}):Object.assign(t,{dataActionPerm:[]})}if(t(n),console.log(n),o.loading=!1,0==e.level&&a.data.length>0){const e=o.$refs.tree;e.getNode(a.data[0].id).expand(),setTimeout((function(){const t=e.getNode(a.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},handleCheckedActionChange(e){const t=this;setTimeout(()=>{void 0!=t.dataActionPerm[e.data.versionId]&&(t.dataActionPerm[e.data.versionId]=e.data.dataActionPerm);let o=t.getActionPermNum("w");t.checkAllUpdate=o==t.teamPermFileSize;let a=t.getActionPermNum("d");t.checkAllDelete=a==t.teamPermFileSize;let n=t.getActionPermNum("v");t.checkAllVersion=n==t.teamPermFileSize},100)},checkBoxChangeHandle(e,t){let o=e.dataActionPerm,a=o.includes("d")||o.includes("v");"d"!=t.label&&"v"!=t.label||!a||o.includes("w")||o.push("w"),"w"==t.label&&(o.includes("d")&&this.removeArr(o,"d"),o.includes("v")&&this.removeArr(o,"v"))},checkAllProcessChange(e){const t=this;if(t.loading=!0,e){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_repository_all_childern_data_query",wsId:t.wsId,teamId:t.teamId,pid:""}};c["a"].post(e).then(e=>{const o=e.data,a=t.roleForm.dataPerm;for(let n=0;n<o.length;n++)-1==a.indexOf(o[n])&&(a.push(o[n]),Object.assign(t.dataActionPerm,{[o[n]]:[]}));t.$refs.tree.setCheckedKeys(a),t.loading=!1}).catch(e=>{console.log(e)})}else t.roleForm.dataPerm=[],t.dataActionPerm={},t.$refs.tree.setCheckedKeys([])},checkAllUpdateChange(e){this.checkAllActionChange(e,"w")},checkAllDeleteChange(e){this.checkAllActionChange(e,"d")},checkAllVersionChange(e){this.checkAllActionChange(e,"v")},checkAllActionChange(e,t){let o=this.dataActionPerm,a=this.$refs.tree.getCheckedNodes();e?(Object.keys(o).forEach(e=>{this.pushArr(o[e],t),"d"!=t&&"v"!=t||this.pushArr(o[e],"w")}),a.forEach(e=>{this.pushArr(e.dataActionPerm,t),"d"!=t&&"v"!=t||this.checkBoxChangeHandle(e,{label:t})})):(Object.keys(o).forEach(e=>{this.removeArr(o[e],t),"w"==t&&(this.removeArr(o[e],"d"),this.removeArr(o[e],"v"))}),a.forEach(e=>{this.checkBoxChangeHandle(e,{label:t}),this.removeArr(e.dataActionPerm,t)}));let n=this.getActionPermNum("w");this.checkAllUpdate=n==this.teamPermFileSize;let i=this.getActionPermNum("d");this.checkAllDelete=i==this.teamPermFileSize;let r=this.getActionPermNum("v");this.checkAllVersion=r==this.teamPermFileSize},pushArr(e,t){e.includes(t)||e.push(t)},removeArr(e,t){e.includes(t)&&e.splice(e.indexOf(t),1)},getActionPermNum(e){let t=0,o=this.dataActionPerm;return Object.keys(o).forEach(a=>{o[a].includes(e)&&t++}),t}},watch:{visible(e){this.sidebarVisible=e,e&&(this.initParams(),this.initData())}}},A=T,O=(o("588d"),Object(h["a"])(A,w,x,!1,null,"5e2fabd3",null)),P=O.exports,N={name:"RoleManage",components:{RoleUpdate:P},props:{visible:{type:Boolean,default:!1},teamId:{type:String,default:""},title:{type:String,default:""},userIds:{type:Array,default:function(){return[]}},type:{type:String,default:"roleManage"}},data(){return{dialogVisible:!1,loading:!1,roleData:[],checkdRole:"",roleUpdate:{visible:!1,roleId:""},isOlderVersion:!0}},created(){},mounted(){},methods:{initData(){const e=this;e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_role_data_query",teamId:e.teamId,userIds:JSON.stringify(e.userIds)}};c["a"].post(t).then((function(t){if("ok"==t.result){const o=t.data;e.roleData=o.roleData,e.isOlderVersion=o.isOlderVersion,e.isOlderVersion?o.roleIds&&o.roleIds.length>0&&(e.checkdRole=o.roleIds[0]):o.roleData.forEach(e=>{o.roleIds.includes(e.roleId)&&(e.checked=!0)})}else e.$message.error(t.msg);e.loading=!1})).catch(t=>{console.log(t),e.loading=!1})},clearAllData(){const e=this;e.roleData=[],e.checkdRole="",e.roleUpdate.visible=!1,e.roleUpdate.roleId=""},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel")},submit(){this.closeDlalog("save")},closeDlalog(e){const t=this;if("save"==e)if("roleManage"==this.type)t.$emit("getResult","ok");else{const e={teamId:t.teamId,userIds:t.userIds,roleId:t.checkdRole};let o=[];t.roleData.forEach(e=>{e.checked&&o.push(e.roleId)}),e.roleId=o,console.log("data:",e),t.loading=!0;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_role_user_update_save",data:JSON.stringify(e)}};c["a"].post(a).then((function(e){t.loading=!1,"ok"==e.result?(t.$message({message:"保存成功",type:"success"}),t.$emit("getResult","ok"),t.dialogVisible=!1,t.clearAllData()):t.$message({message:e.msg,type:"warning"})})).catch(e=>{console.log(e),t.loading=!1})}else t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData()},updateRole(e){this.roleUpdate.roleId=e,this.roleUpdate.visible=!0},updateRoleDone(e){this.roleUpdate.visible=!1,"ok"==e&&this.initData()},removeRole(e){const t=this;t.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_role_remove",teamId:t.teamId,roleId:e}};c["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"删除成功",type:"success"}),t.initData()):t.$message.error(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})}},watch:{visible(e){this.dialogVisible=e,e&&this.initData()}}},E=N,M=(o("a9eb"),Object(h["a"])(E,b,y,!1,null,"5b5b40a9",null)),F=M.exports,$=function(){var e=this,t=e._self._c;return t("awsui-layout",[t("awsui-main",[t("awsui-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"加载中",border:!1,title:e.title,visible:e.dialogVisible,width:"800px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"text-general-color"},[t("awsui-form",{ref:"form",staticStyle:{padding:"0 5px"},attrs:{model:e.form,"label-position":"top"}},[t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("成员")]),t("el-input",{staticClass:"input-with-select",attrs:{size:"mini",placeholder:"请输入成员"},model:{value:e.searchUserName,callback:function(t){e.searchUserName=t},expression:"searchUserName"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchUserNameFun},slot:"append"})],1),e.isOlderVersion?t("div",{staticClass:"awsui-form-item__content"},[t("awsui-select",{key:"user",attrs:{filterable:"",options:e.form.userOpts,multiple:"",size:"large"},model:{value:e.form.userArr,callback:function(t){e.$set(e.form,"userArr",t)},expression:"form.userArr"}})],1):t("div",[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.userLoading,expression:"userLoading"}],attrs:{"element-loading-text":"拼命加载中"}},[t("div",{staticStyle:{height:"200px",overflow:"auto",border:"1px solid #f2f2f2"}},[t("div",{staticClass:"tree"},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"show-checkbox":e.multiple,"expand-on-click-node":!1,"check-strictly":!1,"highlight-current":!0,"filter-node-method":e.filterNode,"default-expanded-keys":e.expandKeys,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode,check:e.checkBox},scopedSlots:e._u([{key:"default",fn:function({node:o,data:a}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),t("span",[e._v(e._s(o.label))])])}}])})],1)])])])],1),t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("角色")]),t("label",{staticClass:"awsui-form-item__label text-linker-color",staticStyle:{cursor:"pointer"},on:{click:e.createRole}},[e._v("无满足角色,去添加")]),t("div",{staticClass:"awsui-form-item__content"},[t("awsui-select",{key:"role",attrs:{filterable:"",options:e.form.roleOpts,size:"large"},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}})],1)])])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),t("role-update",{ref:"roleUpdate",attrs:{visible:e.roleUpdate.visible,teamId:e.teamId,roleId:e.roleUpdate.roleId},on:{"update:visible":function(t){return e.$set(e.roleUpdate,"visible",t)},cancel:function(t){e.roleUpdate.visible=!1},getResult:e.updateRoleDone}})],1)],1)},R=[],j={name:"MemberAdd",components:{RoleUpdate:P},props:{visible:{type:Boolean,default:!1},teamId:{type:String,default:""},title:{type:String,default:""}},data(){return{dialogVisible:!1,loading:!1,buttonDisabled:!1,form:{userArr:[],userOpts:[],roleId:"",roleOpts:[]},roleUpdate:{visible:!1,roleId:""},isOlderVersion:!0,userLoading:!1,treeProps:{label:"name",isLeaf:"leaf"},multiple:!0,addressType:"user",highSecurityFilter:"sysAdmin,auditor",pid:"",searchUserName:"",tempNodeArr:[],expandKeys:[],treeNode:null,treeResolve:null}},methods:{initData(){const e=this;e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_member_add_data_query",teamId:e.teamId}};c["a"].post(t).then((function(t){if("ok"==t.result){const o=t.data;e.form.roleOpts=o.roleOpts,e.form.userOpts=o.userOpts,e.isOlderVersion=o.isOlderVersion}else e.$message.error(t.msg);e.loading=!1})).catch(t=>{console.log(t),e.loading=!1})},clearAllData(){const e=this;e.form.userArr=[],e.form.userOpts=[],e.form.roleId="",e.form.roleOpts=[],e.buttonDisabled=!1,e.isOlderVersion||this.$refs.tree.setCheckedNodes([])},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel")},submit(){this.closeDlalog("save")},closeDlalog(e){const t=this;if("save"==e){if(!t.isOlderVersion){let e=this.$refs.tree.getCheckedNodes();e.forEach(e=>{"user"!=e.type||t.form.userArr.includes(e.id)||t.form.userArr.push(e.id)})}if(0==t.form.userArr.length)return void t.$message.error("请选择[成员]");if(""==t.form.roleId)return void t.$message.error("请选择[角色]");const e={teamId:t.teamId,userArr:t.form.userArr,roleId:t.form.roleId};t.loading=!0,t.buttonDisabled=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_member_add_data_save",data:JSON.stringify(e)}};c["a"].post(o).then((function(e){t.loading=!1,"ok"==e.result?(t.$message({message:"添加成功",type:"success"}),t.$emit("getResult","ok"),t.dialogVisible=!1,t.clearAllData()):(t.$message({message:e.msg,type:"warning"}),t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData())})).catch(e=>{console.log(e),t.loading=!1,t.buttonDisabled=!1})}else t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData()},createRole(){this.roleUpdate.roleId="",this.roleUpdate.visible=!0},updateRoleDone(e){this.roleUpdate.visible=!1,"ok"==e&&this.initData()},openNode(e,t,o){},checkBox(e,t){if("department"==e.type){const t=this.$refs.tree;t.getNode(e.id).expand()}},expandNode(e,t,o){},closeNode(e,t,o){t.childNodes=[],t.loaded=!1},loadNode(e,t){const o=this;o.userLoading=!0;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:o.addressType,pid:"",highSecurityFilter:o.highSecurityFilter}};0===e.level?(a.data.pid=o.pid,a.data.parentType="",o.treeNode=e,o.treeResolve=t):(a.data.pid=e.data.id,a.data.parentType=e.data.type),c["a"].post(a).then((function(a){if(o.multiple){const e=o.addressType.indexOf("department")>-1,t=o.addressType.indexOf("user")>-1,n=o.addressType.indexOf("role")>-1,i=o.addressType.indexOf("position")>-1;for(let o=0;o<a.data.length;o++){const r=a.data[o];"company"==r.type||"roleRoot"==r.type||"roleGroup"==r.type||"positionRoot"==r.type||"positionGroup"==r.type?r.disabled=!0:(e&&"department"==r.type&&(r.disabled=!1),e||"department"!=r.type||(r.disabled=!1),t&&"user"==r.type&&(r.disabled=!1),t||"user"!=r.type||(r.disabled=!0),n&&"role"==r.type&&(r.disabled=!1),n||"role"!=r.type||(r.disabled=!0),i&&"position"==r.type&&(r.disabled=!1),i||"position"!=r.type||(r.disabled=!0))}}if(t(a.data),o.userLoading=!1,0==e.level&&a.data.length>0){const e=o.$refs.tree;e.getNode(a.data[0].id).expand(),setTimeout((function(){const t=e.getNode(a.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},filterNode(e,t){if(!e)return!0;let o=[];return e.forEach(e=>{if(-1!==e.data.pathIdList.indexOf(t.id)){let e=this.$refs.tree.getNode(t.id);e&&this.tempNodeArr.push(e)}e.data.pathIdList.forEach(e=>{-1===o.indexOf(e)&&o.push(e)})}),-1!==o.indexOf(t.id)},searchUserNameFun(){let e=this;if(e.searchUserName){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_search_user_tree_node",userName:e.searchUserName}};c["a"].post(t).then(t=>{let o=[...t.data];o.length?e.searchParentUserIdFun(o,e.searchUserName):e.$message({type:"warning",message:"查询的部门不存在,请检查输入的部门名称"})}).catch(e=>{console.log(e)})}else{var t;e.treeNode.childNodes=[],e.loadNode(e.treeNode,e.treeResolve),e.expandKeys=[],null!==(t=e.tempNodeArr)&&void 0!==t&&t.length&&(e.tempNodeArr.forEach(t=>{e.$refs.tree.remove(t)}),e.tempNodeArr.length=0)}},searchParentUserIdFun(e,t){let o=this;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_search_user_tree_parent_node",userid:e}};c["a"].post(a).then(t=>{o.expandKeys=[...t.data],setTimeout(()=>{let t=[];e.forEach(e=>{let a=o.$refs.tree.getNode(e);t.push(a),o.tempNodeArr.push(a)}),o.$refs.tree.filter(t)},600)}).catch(e=>{console.log(e)})}},watch:{visible(e){this.dialogVisible=e,e&&this.initData()},searchUserName(e,t){var o;e||(this.treeNode.childNodes=[],this.loadNode(this.treeNode,this.treeResolve),this.expandKeys=[],null!==(o=this.tempNodeArr)&&void 0!==o&&o.length&&(this.tempNodeArr.forEach(e=>{this.$refs.tree.remove(e)}),this.tempNodeArr.length=0))}}},U=j,L=Object(h["a"])(U,$,R,!1,null,"40c4c535",null),H=L.exports,V=function(){var e=this,t=e._self._c;return t("awsui-layout",[t("awsui-main",[t("awsui-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"加载中",border:!1,title:e.title,visible:e.dialogVisible,width:"400px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"text-general-color"},[t("awsui-form",{ref:"form",staticStyle:{padding:"0 5px"},attrs:{model:e.form,"label-position":"top"}},[t("div",{staticClass:"awsui-form-item"},[t("label",{staticClass:"awsui-form-item__label"},[e._v("成员")]),t("div",{staticClass:"awsui-form-item__content"},[t("awsui-select",{key:"user",attrs:{filterable:"",options:e.form.userOpts,size:"large"},model:{value:e.form.targetUserid,callback:function(t){e.$set(e.form,"targetUserid",t)},expression:"form.targetUserid"}})],1)])])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)])],1)],1)},B=[],z={name:"MemberAdd",components:{},props:{visible:{type:Boolean,default:!1},teamId:{type:String,default:""},title:{type:String,default:""},userid:{type:String,default:""},teamMembers:{type:Array,default:[]}},data(){return{dialogVisible:!1,loading:!1,buttonDisabled:!1,form:{userOpts:[],targetUserid:""}}},methods:{initData(){const e=this;e.loading=!0,e.teamMembers.forEach(t=>{let o={value:t.userId,label:t.userName};t.userId!=e.userid&&e.form.userOpts.push(o)}),e.loading=!1},clearAllData(){const e=this;e.form.userOpts=[],e.form.targetUserid="",e.buttonDisabled=!1},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel")},submit(){this.closeDlalog("save")},closeDlalog(e){const t=this;if("save"==e){if(""==t.form.targetUserid)return void t.$message.error("请选择[成员]");t.loading=!0,t.buttonDisabled=!0;const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_member_perm_copy",teamId:t.teamId,userid:t.userid,targetUserid:t.form.targetUserid}};c["a"].post(e).then((function(e){t.loading=!1,"ok"==e.result?(t.$message({message:"权限复制成功",type:"success"}),t.$emit("getResult","ok"),t.dialogVisible=!1,t.clearAllData()):(t.$message({message:e.msg,type:"warning"}),t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData())})).catch(e=>{console.log(e),t.loading=!1,t.buttonDisabled=!1})}else t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData()}},watch:{visible(e){this.dialogVisible=e,e&&this.initData()}}},q=z,X=Object(h["a"])(q,V,B,!1,null,"2f1f4adc",null),K=X.exports;const Y="80px",W="30px",G="45px";var J={name:"ManageList",components:{MemberAdd:H,RoleManage:F,RoleUpdate:P,PermCopy:K},props:{teamId:{type:String,default:""}},data(){return{header1Height:Y,header2Height:W,iconHeight:"56px",headerTitlePaddingLeft:"10px",manageButtonWidth:"250px",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-(this.showFooter?G:0)-parseInt(Y)-parseInt(W)+"px",footerHeight:G,searchInput:"",tableData:[],tempTableData:[],showFooter:!1,checkAll:!1,checkedUsers:[],singleSelectedRepository:{},isIndeterminate:!1,currTeam:{userId:"",teamId:"",teamName:"",teamLogo:{color:"",code:""},teamDesc:"",wsId:"",wsName:"",teamManager:!1,isRun:!1},roleManage:{visible:!1,title:"设置角色",userIds:[],type:""},memberAdd:{visible:!1,title:"添加小组成员"},memberCopy:{visible:!1,title:"权限复制",userid:"",teamMembers:[]},roleUpdate:{visible:!1,userid:"",roleId:""}}},mounted(){this.initData()},methods:{initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_detail_query",teamId:e.teamId}};c["a"].post(t).then((function(t){if("ok"==t.result){const o=t.data;e.currTeam.userId=o.userId,e.currTeam.teamId=o.teamId,e.currTeam.teamName=o.teamName,e.currTeam.teamDesc=o.teamDesc,e.currTeam.teamLogo=o.teamLogo,e.currTeam.wsId=o.wsId,e.currTeam.isRun=o.run,e.currTeam.wsName=o.wsName,e.currTeam.teamManager=o.teamManager,e.tempTableData=JSON.parse(JSON.stringify(o.members)),e.initCurrTeamHeaderWidth(),e.search()}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},search(){if(this.closeFooter(),this.searchInput&&""!=this.searchInput.trim()){const e=[];for(let t=0;t<this.tempTableData.length;t++)if(this.tempTableData[t].userName.indexOf(this.searchInput)>-1){const o=JSON.parse(JSON.stringify(this.tempTableData[t]));o.userName=o.userName.replace(new RegExp(this.searchInput,"g"),'<span style="color: #4E7FF9">'+this.searchInput+"</span>"),e.push(o)}this.tableData=e}else this.tableData=this.tempTableData},initCurrTeamHeaderWidth(){const e=document.getElementById("header").offsetWidth-10;parseInt(this.iconHeight),this.currTeam.teamManager&&parseInt(this.manageButtonWidth)},closeFooter(){this.handleCheckAllChange(!1),this.showFooter=!1,this.refreshMainHeight()},refreshMainHeight(){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-(this.showFooter?parseInt(G):0)-parseInt(Y)-parseInt(W)+"px"},hideCheckBoxCell(e){return"hideCheckBoxCell"},showCheckbox(e,t,o,a){o.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input").style.visibility="visible"},hideCheckbox(e,t,o,a){let n=o.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input");null!=n&&this.checkedUsers.indexOf(e)<0&&(n.style.visibility="hidden")},clickTableRow(e,t,o){this.$refs.table.setCurrentRow(e)},handleCheckAllChange(e){e?(this.$refs.table.clearSelection(),this.tableData.forEach(e=>{this.$refs.table.toggleRowSelection(e)})):this.$refs.table.clearSelection(),this.isIndeterminate=!1},handlecheckedUsersChange(e){const t=this;t.checkedUsers=e;let o=e.length;if(o>0){t.showFooter=!0;for(let a=0;a<o;a++){let o=t.tableData.indexOf(e[a]);const n=t.tbody[0].childNodes;if(void 0!=n){const e=n[o],t=e.childNodes[0];t&&t.querySelector(".el-checkbox__input")&&(t.querySelector(".el-checkbox__input").style.visibility="visible")}}}else{t.showFooter=!1;for(let e=0;e<t.tableData.length;e++){const o=t.tbody[0].childNodes;if(void 0!=o){const t=o[e],a=t.childNodes[0];a&&a.querySelector(".el-checkbox__input")&&(a.querySelector(".el-checkbox__input").style.visibility="hidden")}}}t.refreshMainHeight(),t.checkAll=o===t.tableData.length,t.isIndeterminate=o>0&&o<t.tableData.length},getManageUserCount(){let e=0;for(let t=0;t<this.tempTableData.length;t++)0==this.tempTableData[t].roleType&&e++;return e},updateRole(e){this.roleManage.title="角色设置",this.roleManage.userIds=[e],this.roleManage.type="roleConfig",this.roleManage.visible=!0},updateUser(e){this.roleUpdate.userid=e,this.roleUpdate.visible=!0},copyUser(e){this.memberCopy.userid=e,this.memberCopy.teamMembers=this.tableData,this.memberCopy.visible=!0},updateUserDone(e){this.roleUpdate.visible=!1,"ok"==e&&this.initData()},setUserRole(e){this.roleUpdate.roleId=e},updateRoles(){if(0==this.checkedUsers.length)return void this.$message({message:"请选择需要修改角色的用户",type:"warning"});const e=[];for(let t=0;t<this.checkedUsers.length;t++)e.push(this.checkedUsers[t].userId);this.roleManage.title="角色设置",this.roleManage.userIds=e,this.roleManage.type="roleConfig",this.roleManage.visible=!0},manageRole(){this.roleManage.title="角色管理",this.roleManage.userIds=[],this.roleManage.type="roleManage",this.roleManage.visible=!0},roleManageDone(e){this.roleManage.visible=!1,"ok"==e&&this.initData()},addMember(){this.memberAdd.visible=!0},memberAddDone(e){this.memberAdd.visible=!1,"ok"==e&&this.initData()},memberCopyDone(e){this.memberCopy.visible=!1,"ok"==e&&this.initData()},removeUser(e){this.removeUserRequest([e])},removeUsers(){if(0==this.checkedUsers.length)return void this.$message({message:"请选择需要删除的成员",type:"warning"});const e=[];for(let t=0;t<this.checkedUsers.length;t++)e.push(this.checkedUsers[t].userId);e.indexOf(this.currTeam.userId)>-1?this.$message({message:"删除成员中不能包含自己,请重新选择",type:"warning"}):this.removeUserRequest(e)},removeUserRequest(e){const t=this;t.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_manage_team_member_remove",teamId:t.teamId,userIds:JSON.stringify(e)}};c["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"删除成功",type:"success"}),t.initData()):t.$message({message:e.msg,type:"warning"})})).catch(e=>{console.log(e)})}).catch(()=>{})}},computed:{tbody(){return this.$refs.tableMain.querySelector(".el-table__body-wrapper").querySelector(".el-table__body").getElementsByTagName("tbody")},listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.refreshMainHeight(),this.initCurrTeamHeaderWidth()}}},Z=J,Q=(o("f4f5"),Object(h["a"])(Z,g,v,!1,null,"1de625d3",null)),ee=Q.exports,te={name:"Manage",components:{ManageList:ee,ManageMain:f},data(){return{mainHeight:document.documentElement.clientHeight+"px",teamId:"",visibleList:!1}},provide:function(){return{openTeam:this.openTeam}},mounted(){const e=this;e.$store.commit("setTopMainHeightFn",this.mainHeight),e.resize()},methods:{openTeam(e){this.visibleList=!1,this.teamId=e,this.visibleList=!0},resize(){const e=this;let t=null;window.onresize=()=>(()=>{t&&clearTimeout(t),t=setTimeout((function(){e.mainHeight=document.documentElement.clientHeight+"px",e.$store.commit("setTopMainHeightFn",e.mainHeight)}),400)})()}}},oe=te,ae=(o("8d4c"),Object(h["a"])(oe,a,n,!1,null,"eb099fd6",null));t["default"]=ae.exports},"8d4c":function(e,t,o){"use strict";o("7c12")},"9a76":function(e,t,o){},a9eb:function(e,t,o){"use strict";o("c123")},af15:function(e,t,o){"use strict";o("3074")},c123:function(e,t,o){},ca95:function(e,t,o){},f4f5:function(e,t,o){"use strict";o("f720")},f720:function(e,t,o){}}]);