@para-ui/core 4.0.57 → 4.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoButton/index.js +5 -2
- package/Breadcrumbs/index.js +18 -16
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/Message/index.js +1 -1
- package/README.md +15 -0
- package/Selector/index.js +2 -0
- package/SelectorPicker/index.js +1 -0
- package/Switch/index.js +2 -2
- package/Tabs/index.js +2 -2
- package/Transfer/index.js +14 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/umd/Argv.js +1 -1
- package/umd/AutoButton.js +2 -2
- package/umd/Breadcrumbs.js +3 -3
- package/umd/Message.js +1 -1
- package/umd/Selector.js +7 -7
- package/umd/SelectorPicker.js +4 -4
- package/umd/Transfer.js +1 -1
- /package/_verture/{index-3b048316.js → index-605a20c6.js} +0 -0
package/umd/Transfer.js
CHANGED
|
@@ -47,4 +47,4 @@ r=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,a=Object
|
|
|
47
47
|
* @author owenm <owen23355@gmail.com>
|
|
48
48
|
* @license MIT
|
|
49
49
|
*/
|
|
50
|
-
function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(){return A=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},A.apply(this,arguments)}function E(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function S(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var C=S(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),k=S(/Edge/i),j=S(/firefox/i),T=S(/safari/i)&&!S(/chrome/i)&&!S(/android/i),P=S(/iP(ad|od|hone)/i),M=S(/chrome/i)&&S(/android/i),N={capture:!1,passive:!1};function D(t,e,n){t.addEventListener(e,n,!C&&N)}function _(t,e,n){t.removeEventListener(e,n,!C&&N)}function L(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function I(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function R(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&L(t,e):L(t,e))||o&&t===n)return t;if(t===n)break}while(t=I(t))}return null}var F,B=/\s+/g;function H(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(B," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(B," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function V(t,e){var n="";if("string"==typeof t)n=t;else do{var o=z(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function U(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function W(){var t=document.scrollingElement;return t||document.documentElement}function Y(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,c,s,u,f;if(t!==window&&t.parentNode&&t!==W()?(a=(i=t.getBoundingClientRect()).top,l=i.left,c=i.bottom,s=i.right,u=i.height,f=i.width):(a=0,l=0,c=window.innerHeight,s=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!C))do{if(r&&r.getBoundingClientRect&&("none"!==z(r,"transform")||n&&"static"!==z(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(z(r,"border-top-width")),l-=d.left+parseInt(z(r,"border-left-width")),c=a+i.height,s=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=V(r||t),h=p&&p.a,v=p&&p.d;p&&(c=(a/=v)+(u/=v),s=(l/=h)+(f/=h))}return{top:a,left:l,bottom:c,right:s,width:f,height:u}}}function $(t,e,n){for(var o=G(t,!0),r=Y(t)[e];o;){var i=Y(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===W())break;o=G(o,!1)}return!1}function X(t,e,n,o){for(var r=0,i=0,a=t.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==ne.ghost&&(o||a[i]!==ne.dragged)&&R(a[i],n.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function K(t,e){for(var n=t.lastElementChild;n&&(n===ne.ghost||"none"===z(n,"display")||e&&!L(n,e));)n=n.previousElementSibling;return n||null}function q(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===ne.clone||e&&!L(t,e)||n++;return n}function Z(t){var e=0,n=0,o=W();if(t)do{var r=V(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function G(t,e){if(!t||!t.getBoundingClientRect)return W();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=z(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return W();if(o||e)return n;o=!0}}}while(n=n.parentNode);return W()}function Q(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function J(t,e){return function(){if(!F){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),F=setTimeout((function(){F=void 0}),e)}}}function tt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function et(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function nt(t,e,n){var o={};return Array.from(t.children).forEach((function(r){var i,a,l,c;if(R(r,e.draggable,t,!1)&&!r.animated&&r!==n){var s=Y(r);o.left=Math.min(null!==(i=o.left)&&void 0!==i?i:1/0,s.left),o.top=Math.min(null!==(a=o.top)&&void 0!==a?a:1/0,s.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,s.right),o.bottom=Math.max(null!==(c=o.bottom)&&void 0!==c?c:-1/0,s.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var ot="Sortable"+(new Date).getTime();function rt(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==z(t,"display")&&t!==ne.ghost){e.push({target:t,rect:Y(t)});var n=w({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=V(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=Y(n),c=n.prevFromRect,s=n.prevToRect,u=t.rect,f=V(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&Q(c,l)&&!Q(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,c,s,o.options)),Q(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){z(t,"transition",""),z(t,"transform","");var r=V(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),c=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!c,z(t,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),z(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),z(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){z(t,"transition",""),z(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var it=[],at={initializeByDefault:!0},lt={mount:function(t){for(var e in at)at.hasOwnProperty(e)&&!(e in t)&&(t[e]=at[e]);it.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),it.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";it.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](w({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](w({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in it.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,A(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return it.forEach((function(o){"function"==typeof o.eventProperties&&A(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return it.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};function ct(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,s=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[ot]){var v,m=e.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||C||k?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=c,v.newIndex=s,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=p?p.lastPutMode:void 0;var b=w(w({},h),lt.getEventProperties(o,e));for(var y in b)v[y]=b[y];n&&n.dispatchEvent(v),m[g]&&m[g].call(e,v)}}var st=["evt"],ut=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=E(n,st);lt.pluginEvent.bind(ne)(t,e,w({dragEl:dt,parentEl:pt,ghostEl:ht,rootEl:vt,nextEl:mt,lastDownEl:gt,cloneEl:bt,cloneHidden:yt,dragStarted:Nt,putSortable:St,activeSortable:ne.active,originalEvent:o,oldIndex:wt,oldDraggableIndex:Ot,newIndex:xt,newDraggableIndex:At,hideGhostForTarget:Qt,unhideGhostForTarget:Jt,cloneNowHidden:function(){yt=!0},cloneNowShown:function(){yt=!1},dispatchSortableEvent:function(t){ft({sortable:e,name:t,originalEvent:o})}},r))};function ft(t){ct(w({putSortable:St,cloneEl:bt,targetEl:dt,rootEl:vt,oldIndex:wt,oldDraggableIndex:Ot,newIndex:xt,newDraggableIndex:At},t))}var dt,pt,ht,vt,mt,gt,bt,yt,wt,xt,Ot,At,Et,St,Ct,kt,jt,Tt,Pt,Mt,Nt,Dt,_t,Lt,It,Rt=!1,Ft=!1,Bt=[],Ht=!1,zt=!1,Vt=[],Ut=!1,Wt=[],Yt="undefined"!=typeof document,$t=P,Xt=k||C?"cssFloat":"float",Kt=Yt&&!M&&!P&&"draggable"in document.createElement("div"),qt=function(){if(Yt){if(C)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Zt=function(t,e){var n=z(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=X(t,0,e),i=X(t,1,e),a=r&&z(r),l=i&&z(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Y(r).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Y(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=o&&"none"===n[Xt]||i&&"none"===n[Xt]&&c+s>o)?"vertical":"horizontal"},Gt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var c=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===c||t.join&&t.indexOf(c)>-1}}var n={},o=t.group;o&&"object"==x(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Qt=function(){!qt&&ht&&z(ht,"display","none")},Jt=function(){!qt&&ht&&z(ht,"display","")};Yt&&!M&&document.addEventListener("click",(function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1}),!0);var te=function(t){if(dt){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Bt.some((function(t){var e=t[ot].options.emptyInsertThreshold;if(e&&!K(t)){var n=Y(t),o=r>=n.left-e&&r<=n.right+e,l=i>=n.top-e&&i<=n.bottom+e;return o&&l?a=t:void 0}})),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[ot]._onDragOver(n)}}var r,i,a},ee=function(t){dt&&dt.parentNode[ot]._isOutsideThisEl(t.target)};function ne(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=A({},e),t[ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Zt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.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!==ne.supportPointer&&"PointerEvent"in window&&!T,emptyInsertThreshold:5};for(var o in lt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Gt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Kt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?D(t,"pointerdown",this._onTapStart):(D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),Bt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),A(this,rt())}function oe(t,e,n,o,r,i,a,l){var c,s,u=t[ot],f=u.options.onMove;return!window.CustomEvent||C||k?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=e,c.from=t,c.dragged=n,c.draggedRect=o,c.related=r||e,c.relatedRect=i||Y(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),f&&(s=f.call(u,c,a)),s}function re(t){t.draggable=!1}function ie(){Ut=!1}function ae(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function le(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}ne.prototype={constructor:ne,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Dt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,dt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,s=o.filter;if(function(t){Wt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Wt.push(o)}}(n),!dt&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!T||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=R(l,o.draggable,n,!1))&&l.animated||gt===l)){if(wt=q(l),Ot=q(l,o.draggable),"function"==typeof s){if(s.call(this,t,l,this))return ft({sortable:e,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),ut("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(s&&(s=s.split(",").some((function(o){if(o=R(c,o.trim(),n,!1))return ft({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),ut("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!R(c,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!dt&&n.parentNode===i){var c=Y(n);if(vt=i,pt=(dt=n).parentNode,mt=dt.nextSibling,gt=n,Et=a.group,ne.dragged=dt,Ct={target:dt,clientX:(e||t).clientX,clientY:(e||t).clientY},Pt=Ct.clientX-c.left,Mt=Ct.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,dt.style["will-change"]="all",o=function(){ut("delayEnded",r,{evt:t}),ne.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!j&&r.nativeDraggable&&(dt.draggable=!0),r._triggerDragStart(t,e),ft({sortable:r,name:"choose",originalEvent:t}),H(dt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){U(dt,t.trim(),re)})),D(l,"dragover",te),D(l,"mousemove",te),D(l,"touchmove",te),D(l,"mouseup",r._onDrop),D(l,"touchend",r._onDrop),D(l,"touchcancel",r._onDrop),j&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dt.draggable=!0),ut("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(k||C))o();else{if(ne.eventCanceled)return void this._onDrop();D(l,"mouseup",r._disableDelayedDrag),D(l,"touchend",r._disableDelayedDrag),D(l,"touchcancel",r._disableDelayedDrag),D(l,"mousemove",r._delayedDragTouchMoveHandler),D(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&D(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dt&&re(dt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?D(document,"pointermove",this._onTouchMove):D(document,e?"touchmove":"mousemove",this._onTouchMove):(D(dt,"dragend",this),D(vt,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Rt=!1,vt&&dt){ut("dragStarted",this,{evt:e}),this.nativeDraggable&&D(document,"dragover",ee);var n=this.options;!t&&H(dt,n.dragClass,!1),H(dt,n.ghostClass,!0),ne.active=this,t&&this._appendGhost(),ft({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(kt){this._lastX=kt.clientX,this._lastY=kt.clientY,Qt();for(var t=document.elementFromPoint(kt.clientX,kt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(kt.clientX,kt.clientY))!==e;)e=t;if(dt.parentNode[ot]._isOutsideThisEl(t),e)do{if(e[ot]){if(e[ot]._onDragOver({clientX:kt.clientX,clientY:kt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Jt()}},_onTouchMove:function(t){if(Ct){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=ht&&V(ht,!0),a=ht&&i&&i.a,l=ht&&i&&i.d,c=$t&&It&&Z(It),s=(r.clientX-Ct.clientX+o.x)/(a||1)+(c?c[0]-Vt[0]:0)/(a||1),u=(r.clientY-Ct.clientY+o.y)/(l||1)+(c?c[1]-Vt[1]:0)/(l||1);if(!ne.active&&!Rt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ht){i?(i.e+=s-(jt||0),i.f+=u-(Tt||0)):i={a:1,b:0,c:0,d:1,e:s,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");z(ht,"webkitTransform",f),z(ht,"mozTransform",f),z(ht,"msTransform",f),z(ht,"transform",f),jt=s,Tt=u,kt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ht){var t=this.options.fallbackOnBody?document.body:vt,e=Y(dt,!0,$t,!0,t),n=this.options;if($t){for(It=t;"static"===z(It,"position")&&"none"===z(It,"transform")&&It!==document;)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=W()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=W(),Vt=Z(It)}H(ht=dt.cloneNode(!0),n.ghostClass,!1),H(ht,n.fallbackClass,!0),H(ht,n.dragClass,!0),z(ht,"transition",""),z(ht,"transform",""),z(ht,"box-sizing","border-box"),z(ht,"margin",0),z(ht,"top",e.top),z(ht,"left",e.left),z(ht,"width",e.width),z(ht,"height",e.height),z(ht,"opacity","0.8"),z(ht,"position",$t?"absolute":"fixed"),z(ht,"zIndex","100000"),z(ht,"pointerEvents","none"),ne.ghost=ht,t.appendChild(ht),z(ht,"transform-origin",Pt/parseInt(ht.style.width)*100+"% "+Mt/parseInt(ht.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;ut("dragStart",this,{evt:t}),ne.eventCanceled?this._onDrop():(ut("setupClone",this),ne.eventCanceled||((bt=et(dt)).removeAttribute("id"),bt.draggable=!1,bt.style["will-change"]="",this._hideClone(),H(bt,this.options.chosenClass,!1),ne.clone=bt),n.cloneId=le((function(){ut("clone",n),ne.eventCanceled||(n.options.removeCloneOnHide||vt.insertBefore(bt,dt),n._hideClone(),ft({sortable:n,name:"clone"}))})),!e&&H(dt,r.dragClass,!0),e?(Ft=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,dt)),D(document,"drop",n),z(dt,"transform","translateZ(0)")),Rt=!0,n._dragStartId=le(n._dragStarted.bind(n,e,t)),D(document,"selectstart",n),Nt=!0,T&&z(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,c=l.group,s=ne.active,u=Et===c,f=l.sort,d=St||s,p=this,h=!1;if(!Ut){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=R(a,l.draggable,i,!0),P("dragOver"),ne.eventCanceled)return h;if(dt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return N(!1);if(Ft=!1,s&&!l.disabled&&(u?f||(o=pt!==vt):St===this||(this.lastPutMode=Et.checkPull(this,s,dt,t))&&c.checkPut(this,s,dt,t))){if(r="vertical"===this._getDirection(t,a),e=Y(dt),P("dragOverValid"),ne.eventCanceled)return h;if(o)return pt=vt,M(),this._hideClone(),P("revert"),ne.eventCanceled||(mt?vt.insertBefore(dt,mt):vt.appendChild(dt)),N(!0);var v=K(i,l.draggable);if(!v||function(t,e,n){var o=Y(K(n.el,n.options.draggable)),r=nt(n.el,n.options,ht),i=10;return e?t.clientX>r.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}(t,r,this)&&!v.animated){if(v===dt)return N(!1);if(v&&i===t.target&&(a=v),a&&(n=Y(a)),!1!==oe(vt,i,dt,e,a,n,t,!!a))return M(),v&&v.nextSibling?i.insertBefore(dt,v.nextSibling):i.appendChild(dt),pt=i,D(),N(!0)}else if(v&&function(t,e,n){var o=Y(X(n.el,0,n.options,!0)),r=nt(n.el,n.options,ht),i=10;return e?t.clientX<r.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<r.top-i||t.clientY<o.bottom&&t.clientX<o.left}(t,r,this)){var m=X(i,0,l,!0);if(m===dt)return N(!1);if(n=Y(a=m),!1!==oe(vt,i,dt,e,a,n,t,!1))return M(),i.insertBefore(dt,m),pt=i,D(),N(!0)}else if(a.parentNode===i){n=Y(a);var g,b,y,x=dt.parentNode!==i,O=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,c=n?e.width:e.height;return o===a||r===l||o+i/2===a+c/2}(dt.animated&&dt.toRect||e,a.animated&&a.toRect||n,r),A=r?"top":"left",E=$(a,"top","top")||$(dt,"top","top"),S=E?E.scrollTop:void 0;if(Dt!==a&&(b=n[A],Ht=!1,zt=!O&&l.invertSwap||x),g=function(t,e,n,o,r,i,a,l){var c=o?t.clientY:t.clientX,s=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,d=!1;if(!a)if(l&&Lt<s*r){if(!Ht&&(1===_t?c>u+s*i/2:c<f-s*i/2)&&(Ht=!0),Ht)d=!0;else if(1===_t?c<u+Lt:c>f-Lt)return-_t}else if(c>u+s*(1-r)/2&&c<f-s*(1-r)/2)return function(t){return q(dt)<q(t)?1:-1}(e);if((d=d||a)&&(c<u+s*i/2||c>f-s*i/2))return c>u+s/2?1:-1;return 0}(t,a,n,r,O?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,zt,Dt===a),0!==g){var C=q(dt);do{C-=g,y=pt.children[C]}while(y&&("none"===z(y,"display")||y===ht))}if(0===g||y===a)return N(!1);Dt=a,_t=g;var k=a.nextElementSibling,j=!1,T=oe(vt,i,dt,e,a,n,t,j=1===g);if(!1!==T)return 1!==T&&-1!==T||(j=1===T),Ut=!0,setTimeout(ie,30),M(),j&&!k?i.appendChild(dt):a.parentNode.insertBefore(dt,j?k:a),E&&tt(E,0,S-E.scrollTop),pt=dt.parentNode,void 0===b||zt||(Lt=Math.abs(b-Y(a)[A])),D(),N(!0)}if(i.contains(dt))return N(!1)}return!1}function P(l,c){ut(l,p,w({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:N,onMove:function(n,o){return oe(vt,i,dt,e,n,Y(n),t,o)},changed:D},c))}function M(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function N(e){return P("dragOverCompleted",{insertion:e}),e&&(u?s._hideClone():s._showClone(p),p!==d&&(H(dt,St?St.options.ghostClass:s.options.ghostClass,!1),H(dt,l.ghostClass,!0)),St!==p&&p!==ne.active?St=p:p===ne.active&&St&&(St=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===dt&&!dt.animated||a===i&&!a.animated)&&(Dt=null),l.dragoverBubble||t.rootEl||a===document||(dt.parentNode[ot]._isOutsideThisEl(t.target),!e&&te(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function D(){xt=q(dt),At=q(dt,l.draggable),ft({sortable:p,name:"change",toEl:i,newIndex:xt,newDraggableIndex:At,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",te),_(document,"mousemove",te),_(document,"touchmove",te)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;xt=q(dt),At=q(dt,n.draggable),ut("drop",this,{evt:t}),pt=dt&&dt.parentNode,xt=q(dt),At=q(dt,n.draggable),ne.eventCanceled||(Rt=!1,zt=!1,Ht=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),T&&z(document.body,"user-select",""),z(dt,"transform",""),t&&(Nt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ht&&ht.parentNode&&ht.parentNode.removeChild(ht),(vt===pt||St&&"clone"!==St.lastPutMode)&&bt&&bt.parentNode&&bt.parentNode.removeChild(bt),dt&&(this.nativeDraggable&&_(dt,"dragend",this),re(dt),dt.style["will-change"]="",Nt&&!Rt&&H(dt,St?St.options.ghostClass:this.options.ghostClass,!1),H(dt,this.options.chosenClass,!1),ft({sortable:this,name:"unchoose",toEl:pt,newIndex:null,newDraggableIndex:null,originalEvent:t}),vt!==pt?(xt>=0&&(ft({rootEl:pt,name:"add",toEl:pt,fromEl:vt,originalEvent:t}),ft({sortable:this,name:"remove",toEl:pt,originalEvent:t}),ft({rootEl:pt,name:"sort",toEl:pt,fromEl:vt,originalEvent:t}),ft({sortable:this,name:"sort",toEl:pt,originalEvent:t})),St&&St.save()):xt!==wt&&xt>=0&&(ft({sortable:this,name:"update",toEl:pt,originalEvent:t}),ft({sortable:this,name:"sort",toEl:pt,originalEvent:t})),ne.active&&(null!=xt&&-1!==xt||(xt=wt,At=Ot),ft({sortable:this,name:"end",toEl:pt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){ut("nulling",this),vt=dt=pt=ht=mt=bt=gt=yt=Ct=kt=Nt=xt=At=wt=Ot=Dt=_t=St=Et=ne.dragged=ne.ghost=ne.clone=ne.active=null,Wt.forEach((function(t){t.checked=!0})),Wt.length=jt=Tt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dt&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)R(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||ae(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach((function(t,e){var r=o.children[e];R(r,this.options.draggable,o,!1)&&(n[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return R(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=lt.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Gt(n)},destroy:function(){ut("destroy",this);var t=this.el;t[ot]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Bt.splice(Bt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!yt){if(ut("hideClone",this),ne.eventCanceled)return;z(bt,"display","none"),this.options.removeCloneOnHide&&bt.parentNode&&bt.parentNode.removeChild(bt),yt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(yt){if(ut("showClone",this),ne.eventCanceled)return;dt.parentNode!=vt||this.options.group.revertClone?mt?vt.insertBefore(bt,mt):vt.appendChild(bt):vt.insertBefore(bt,dt),this.options.group.revertClone&&this.animate(dt,bt),z(bt,"display",""),yt=!1}}else this._hideClone()}},Yt&&D(document,"touchmove",(function(t){(ne.active||Rt)&&t.cancelable&&t.preventDefault()})),ne.utils={on:D,off:_,css:z,find:U,is:function(t,e){return!!R(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:J,closest:R,toggleClass:H,clone:et,index:q,nextTick:le,cancelNextTick:ce,detectDirection:Zt,getChild:X},ne.get=function(t){return t[ot]},ne.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(ne.utils=w(w({},ne.utils),t.utils)),lt.mount(t)}))},ne.create=function(t,e){return new ne(t,e)},ne.version="1.15.2";var se,ue,fe,de,pe,he,ve=[],me=!1;function ge(){ve.forEach((function(t){clearInterval(t.pid)})),ve=[]}function be(){clearInterval(he)}var ye=J((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,c=e.scrollSpeed,s=W(),u=!1;ue!==n&&(ue=n,ge(),se=e.scroll,r=e.scrollFn,!0===se&&(se=G(n,!0)));var f=0,d=se;do{var p=d,h=Y(p),v=h.top,m=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,x=void 0,O=void 0,A=p.scrollWidth,E=p.scrollHeight,S=z(p),C=p.scrollLeft,k=p.scrollTop;p===s?(x=y<A&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),O=w<E&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=y<A&&("auto"===S.overflowX||"scroll"===S.overflowX),O=w<E&&("auto"===S.overflowY||"scroll"===S.overflowY));var j=x&&(Math.abs(b-i)<=l&&C+y<A)-(Math.abs(g-i)<=l&&!!C),T=O&&(Math.abs(m-a)<=l&&k+w<E)-(Math.abs(v-a)<=l&&!!k);if(!ve[f])for(var P=0;P<=f;P++)ve[P]||(ve[P]={});ve[f].vx==j&&ve[f].vy==T&&ve[f].el===p||(ve[f].el=p,ve[f].vx=j,ve[f].vy=T,clearInterval(ve[f].pid),0==j&&0==T||(u=!0,ve[f].pid=setInterval(function(){o&&0===this.layer&&ne.active._onTouchMove(pe);var e=ve[this.layer].vy?ve[this.layer].vy*c:0,n=ve[this.layer].vx?ve[this.layer].vx*c:0;"function"==typeof r&&"continue"!==r.call(ne.dragged.parentNode[ot],n,e,t,pe,ve[this.layer].el)||tt(ve[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==s&&(d=G(d,!1)));me=u}}),30),we=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var c=n||r;a();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(s.clientX,s.clientY);l(),c&&!c.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function xe(){}function Oe(){}xe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=X(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:we},A(xe,{pluginName:"revertOnSpill"}),Oe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:we},A(Oe,{pluginName:"removeOnSpill"});ne.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):this.options.supportPointer?D(document,"pointermove",this._handleFallbackAutoScroll):e.touches?D(document,"touchmove",this._handleFallbackAutoScroll):D(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),be(),ge(),clearTimeout(F),F=void 0},nulling:function(){pe=ue=se=me=he=fe=de=null,ve.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(pe=t,e||this.options.forceAutoScrollFallback||k||C||T){ye(t,this.options,i,e);var a=G(i,!0);!me||he&&o===fe&&r===de||(he&&be(),he=setInterval((function(){var i=G(document.elementFromPoint(o,r),!0);i!==a&&(a=i,ge()),ye(t,n.options,i,e)}),10),fe=o,de=r)}else{if(!this.options.bubbleScroll||G(i,!0)===W())return void ge();ye(t,this.options,G(i,!1),!1)}}},A(t,{pluginName:"scroll",initializeByDefault:!0})}),ne.mount(Oe,xe);const Ae=ne;function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ee(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ce=function(r){var i=r.title,a=r.data,l=r.onSearch,c=r.onchange,s=r.onMove,u=r.queryAll,f=r.inverse,h=r.direction,y=r.fluctuationPosition,w=r.fluctuationOrther,x=r.onEndSort,O=r.multiple,A=r.rightIcon,E=r.style,S=r.customKey,C=(0,d.A)("Transfer",p),k=Se((0,t.useState)([]),2),j=k[0],T=k[1],P=Se((0,t.useState)(0),2),M=P[0],N=P[1],D=(0,t.useRef)();(0,t.useEffect)((function(){var t=[],e=0;a.forEach((function(n,o){n.checked&&!n.hide&&t.push(o),(n.disabled||n.hide)&&e++})),N(e),T(t)}),[a]),(0,t.useEffect)((function(){"right"==h&&new Ae(D.current,{animation:180,ghostClass:"blue-background-class",dragClass:"drag-item",easing:"step-start",onEnd:function(t){null==x||x(t.oldIndex,t.newIndex)}})}),[]);var _,L,I,R=(_=function(t,e,n){n.disabled||c(t,!n.checked,e,h,O)},L=function(t,e,n){(null==n?void 0:n.disabled)||(c(t,!0,e,h,!1),s("right"===h?"left":"right"))},I=(0,t.useRef)({clickCount:0,time:0,timer:null}),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];I.current.clickCount+=1,I.current.time=Date.now(),I.current.timer=setTimeout((function(){Date.now()-I.current.time<=200&&2===I.current.clickCount&&L&&L.apply(null,e),1===I.current.clickCount&&_&&_.apply(null,e),clearTimeout(I.current.timer),I.current.clickCount=0}),200)}),F=function(t){var e={};return(null==t?void 0:t.tagColor)&&(e.borderLeft="4px solid ".concat(t.tagColor)),(null==t?void 0:t.hide)&&(e.display="none"),e};return e().createElement("div",{className:"box",style:E},e().createElement("div",{className:"box-header"},i),e().createElement(v.Search,{btnType:"inside",placeholder:C({id:"searchPlaceholder"}),showBtn:!1,rightIcon:e().createElement(m.A,null),rightIconExist:!0,onChange:function(t){l(t,h)},onClickRightIcon:function(t){l(t,h)},onEnter:function(t){var e,n=(null===(e=t.target)||void 0===e?void 0:e.value)||"";l(n,h)},allowClear:!1}),e().createElement("div",{className:"context",ref:D},a.map((function(t,o){return e().createElement("div",{className:(0,n.A)("item",(null==t?void 0:t.tagColor)&&"item-border",(null==t?void 0:t.disabled)&&"item-disabled",(null==t?void 0:t.checked)&&"item-checked",y===o&&"item-fluctuation",w===o&&"item-fluctuationOrther"),style:F(t),key:t[t[S]]||t.name,onClick:function(e){R(e,o,t)}},e().createElement("div",{className:"item-label"},e().createElement(g.default,null,(null==t?void 0:t.name)||t[t[S]])),A?e().createElement("div",{className:"right-icon"},A(t)):null,"right"===h?e().createElement("div",{className:"handle"},A?e().createElement("span",{className:"handle-line"}):null,e().createElement(b,{size:"medium"})):null)}))),O&&e().createElement("div",{className:"footer"},e().createElement("div",null,e().createElement(o.default,{variant:"text",className:"".concat(j.length===a.length-M&&a.length>0?"btn-on":""),onClick:function(){u(j.length!==a.length-M,h)}},C({id:"allCheck"})),e().createElement(o.default,{variant:"text",className:"".concat(0===j.length||j.length===a.length-M?"btn-off":""),disabled:0===j.length||j.length===a.length-M,onClick:function(){f(h)}},C({id:"inVertCheck"}))),e().createElement("div",{className:"count"},j.length,"/",a.length)))};var ke=Ae;i(75681);function je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,e)||Ne(t,e)||function(){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 Me(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ne(t)||function(){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 Ne(t,e){if(t){if("string"==typeof t)return je(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(t,e):void 0}}var De=function(r){var i,a,l,v,m,g,b,y=(0,d.A)("Transfer",p),w=r.data,x=void 0===w?[]:w,O=r.value,A=r.customKey,E=void 0===A?"key":A,S=r.onChange,C=r.titles,k=void 0===C?[y({id:"left"}),y({id:"right"})]:C,j=r.className,T=r.style,P=void 0===T?{width:"298px"}:T,M=r.onSort,N=r.trim,D=void 0!==N&&N,_=r.multiple,L=void 0===_||_,I=r.rightIcon,R=r.render,F=void 0===R?function(t){}:R,B=r.disabled,H=Pe((0,t.useState)([]),2),z=H[0],V=H[1],U=Pe((0,t.useState)([]),2),W=U[0],Y=U[1],$=Pe((0,t.useState)([]),2),X=$[0],K=$[1],q=Pe((0,t.useState)([]),2),Z=q[0],G=q[1],Q=Pe((0,t.useState)(),2),J=Q[0],tt=(Q[1],Pe((0,t.useState)(),2)),et=tt[0],nt=(tt[1],Pe((0,t.useState)(!1),2)),ot=nt[0],rt=nt[1],it=(0,t.useCallback)((function(t,e,n,o,r){"left"===o?(!r&&z.forEach((function(t){return t.checked=!1})),z[n].checked=e,V(Me(z))):(!r&&W.forEach((function(t){return t.checked=!1})),W[n].checked=e,Y(Me(W)))}),[z,W]),at=(0,t.useCallback)((function(t,e){"left"===e?(z.forEach((function(e){e.disabled||e.hide||B||(e.checked=t)})),V(Me(z))):(W.forEach((function(e){e.disabled||e.hide||B||(e.checked=t)})),Y(Me(W)))}),[z,W]),lt=(0,t.useCallback)((function(t){"left"===t?(z.forEach((function(t){t.disabled||t.hide||B||(t.checked=!t.checked)})),V(Me(z))):(W.forEach((function(t){t.disabled||t.hide||B||(t.checked=!t.checked)})),Y(Me(W)))}),[z,W]),ct=function(t){"left"===t?Me(W).forEach((function(t){(null==t?void 0:t.checked)&&!(null==t?void 0:t.hide)&&(t.checked=!1,z.push(t),W.splice(W.indexOf(t),1))})):Me(z).forEach((function(t){(null==t?void 0:t.checked)&&!(null==t?void 0:t.hide)&&(t.checked=!1,W.push(t),z.splice(z.indexOf(t),1))})),V(Me(z)),Y(Me(W));var e=[];W.forEach((function(t){e.push(t[E])})),null==S||S(e)},st=function(t){rt(!0),Y("up"==t?function(t){Z.forEach((function(e){var n;(n=t).splice.apply(n,[e-1,0].concat(Me(t.splice(e,1))))})),rt(!1);var e=[];return t.forEach((function(t){e.push(t[E])})),null==M||M(Me(e)),null==S||S(Me(e)),Me(t)}:function(t){Z.reverse().forEach((function(e){var n;(n=t).splice.apply(n,[e+1,0].concat(Me(t.splice(e,1))))})),rt(!1);var e=[];return t.forEach((function(t){e.push(t[E])})),null==M||M(Me(e)),null==S||S(Me(e)),Me(t)})},ut=(m=function(t,e){var n=D?t.toUpperCase().trim():t.toUpperCase();"left"===e?(z.forEach((function(t){t.hide=!1;var e=(t.name||"").toUpperCase(),o=(t.description||"").toUpperCase();-1===e.indexOf(n)&&-1===o.indexOf(n)&&(t.hide=!0)})),V(Me(z))):(W.filter((function(t){t.hide=!1;var e=(t.name||"").toUpperCase(),o=(t.description||"").toUpperCase();-1===e.indexOf(n)&&-1===o.indexOf(n)&&(t.hide=!0)})),Y(Me(W)))},g=500,function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];b&&clearTimeout(b),b=setTimeout((function(){m.apply(t,n)}),g)}),ft=(0,t.useCallback)((function(t,e){Y((function(n){var o;(o=n).splice.apply(o,[e,0].concat(Me(n.splice(t,1))));var r=[];return n.forEach((function(t){r.push(t[E])})),null==M||M(Me(r)),null==S||S(Me(r)),Me(n)}))}),[]);return(0,t.useEffect)((function(){var t=[],e=[],n={};for(var o in x.forEach((function(t){var e=t[E];F(t),n[e]=t})),null==O||O.forEach((function(e){n[e]&&(t.push(n[e]),delete n[e])})),n)e.push(n[o]);Y(Me(t)),V(Me(e))}),[O,x]),(0,t.useEffect)((function(){var t=[];z.forEach((function(e,n){e.checked&&!e.hide&&t.push(n)})),K(t);var e=[];W.forEach((function(t,n){t.checked&&!t.hide&&e.push(n)})),G(e)}),[z,W]),e().createElement("div",{className:(0,n.A)("".concat(h.n,"-transfer"),j,Te({},"".concat(h.n,"-transfer-disabled"),B))},e().createElement("div",{className:"".concat(h.n,"-transfer-container")},e().createElement(Ce,{title:k[0],queryAll:at,data:z,style:P,direction:"left",customKey:E,rightIcon:I,onchange:it,multiple:L,onMove:ct,inverse:lt,onSearch:ut}),e().createElement("div",{className:"moveBtn"},e().createElement(o.default.IconButton,{className:"btn btn-right",disabled:X.length<=0||B,toolTipTitle:X.length<=0?y({id:"rightBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){ct("right")}},e().createElement(s,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||(null===(i=W[0])||void 0===i?void 0:i.checked)||ot||B,toolTipTitle:Z.length<=0||(null===(a=W[0])||void 0===a?void 0:a.checked)?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){st("up")}},e().createElement(u,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||(null===(l=W[W.length-1])||void 0===l?void 0:l.checked)||ot||B,toolTipTitle:Z.length<=0||(null===(v=W[W.length-1])||void 0===v?void 0:v.checked)?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){st("down")}},e().createElement(f.A,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||B,toolTipTitle:Z.length<=0?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){ct("left")}},e().createElement(c,null))),e().createElement(Ce,{title:k[1],queryAll:at,data:W,style:P,direction:"right",customKey:E,rightIcon:I,onchange:it,multiple:L,onMove:ct,inverse:lt,fluctuationPosition:J,fluctuationOrther:et,onEndSort:ft,onSearch:ut})))};const _e=De;var Le=ke})(),a})()));
|
|
50
|
+
function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(){return A=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},A.apply(this,arguments)}function E(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function S(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var C=S(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),k=S(/Edge/i),j=S(/firefox/i),T=S(/safari/i)&&!S(/chrome/i)&&!S(/android/i),P=S(/iP(ad|od|hone)/i),M=S(/chrome/i)&&S(/android/i),N={capture:!1,passive:!1};function D(t,e,n){t.addEventListener(e,n,!C&&N)}function _(t,e,n){t.removeEventListener(e,n,!C&&N)}function L(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function I(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function R(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&L(t,e):L(t,e))||o&&t===n)return t;if(t===n)break}while(t=I(t))}return null}var F,B=/\s+/g;function H(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(B," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(B," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function V(t,e){var n="";if("string"==typeof t)n=t;else do{var o=z(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function U(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function W(){var t=document.scrollingElement;return t||document.documentElement}function Y(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,c,s,u,f;if(t!==window&&t.parentNode&&t!==W()?(a=(i=t.getBoundingClientRect()).top,l=i.left,c=i.bottom,s=i.right,u=i.height,f=i.width):(a=0,l=0,c=window.innerHeight,s=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!C))do{if(r&&r.getBoundingClientRect&&("none"!==z(r,"transform")||n&&"static"!==z(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(z(r,"border-top-width")),l-=d.left+parseInt(z(r,"border-left-width")),c=a+i.height,s=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=V(r||t),h=p&&p.a,v=p&&p.d;p&&(c=(a/=v)+(u/=v),s=(l/=h)+(f/=h))}return{top:a,left:l,bottom:c,right:s,width:f,height:u}}}function $(t,e,n){for(var o=G(t,!0),r=Y(t)[e];o;){var i=Y(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===W())break;o=G(o,!1)}return!1}function X(t,e,n,o){for(var r=0,i=0,a=t.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==ne.ghost&&(o||a[i]!==ne.dragged)&&R(a[i],n.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function K(t,e){for(var n=t.lastElementChild;n&&(n===ne.ghost||"none"===z(n,"display")||e&&!L(n,e));)n=n.previousElementSibling;return n||null}function q(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===ne.clone||e&&!L(t,e)||n++;return n}function Z(t){var e=0,n=0,o=W();if(t)do{var r=V(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function G(t,e){if(!t||!t.getBoundingClientRect)return W();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=z(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return W();if(o||e)return n;o=!0}}}while(n=n.parentNode);return W()}function Q(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function J(t,e){return function(){if(!F){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),F=setTimeout((function(){F=void 0}),e)}}}function tt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function et(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function nt(t,e,n){var o={};return Array.from(t.children).forEach((function(r){var i,a,l,c;if(R(r,e.draggable,t,!1)&&!r.animated&&r!==n){var s=Y(r);o.left=Math.min(null!==(i=o.left)&&void 0!==i?i:1/0,s.left),o.top=Math.min(null!==(a=o.top)&&void 0!==a?a:1/0,s.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,s.right),o.bottom=Math.max(null!==(c=o.bottom)&&void 0!==c?c:-1/0,s.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var ot="Sortable"+(new Date).getTime();function rt(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==z(t,"display")&&t!==ne.ghost){e.push({target:t,rect:Y(t)});var n=w({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=V(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=Y(n),c=n.prevFromRect,s=n.prevToRect,u=t.rect,f=V(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&Q(c,l)&&!Q(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,c,s,o.options)),Q(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){z(t,"transition",""),z(t,"transform","");var r=V(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),c=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!c,z(t,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),z(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),z(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){z(t,"transition",""),z(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var it=[],at={initializeByDefault:!0},lt={mount:function(t){for(var e in at)at.hasOwnProperty(e)&&!(e in t)&&(t[e]=at[e]);it.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),it.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";it.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](w({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](w({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in it.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,A(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return it.forEach((function(o){"function"==typeof o.eventProperties&&A(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return it.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};function ct(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,s=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[ot]){var v,m=e.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||C||k?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=c,v.newIndex=s,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=p?p.lastPutMode:void 0;var b=w(w({},h),lt.getEventProperties(o,e));for(var y in b)v[y]=b[y];n&&n.dispatchEvent(v),m[g]&&m[g].call(e,v)}}var st=["evt"],ut=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=E(n,st);lt.pluginEvent.bind(ne)(t,e,w({dragEl:dt,parentEl:pt,ghostEl:ht,rootEl:vt,nextEl:mt,lastDownEl:gt,cloneEl:bt,cloneHidden:yt,dragStarted:Nt,putSortable:St,activeSortable:ne.active,originalEvent:o,oldIndex:wt,oldDraggableIndex:Ot,newIndex:xt,newDraggableIndex:At,hideGhostForTarget:Qt,unhideGhostForTarget:Jt,cloneNowHidden:function(){yt=!0},cloneNowShown:function(){yt=!1},dispatchSortableEvent:function(t){ft({sortable:e,name:t,originalEvent:o})}},r))};function ft(t){ct(w({putSortable:St,cloneEl:bt,targetEl:dt,rootEl:vt,oldIndex:wt,oldDraggableIndex:Ot,newIndex:xt,newDraggableIndex:At},t))}var dt,pt,ht,vt,mt,gt,bt,yt,wt,xt,Ot,At,Et,St,Ct,kt,jt,Tt,Pt,Mt,Nt,Dt,_t,Lt,It,Rt=!1,Ft=!1,Bt=[],Ht=!1,zt=!1,Vt=[],Ut=!1,Wt=[],Yt="undefined"!=typeof document,$t=P,Xt=k||C?"cssFloat":"float",Kt=Yt&&!M&&!P&&"draggable"in document.createElement("div"),qt=function(){if(Yt){if(C)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Zt=function(t,e){var n=z(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=X(t,0,e),i=X(t,1,e),a=r&&z(r),l=i&&z(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Y(r).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Y(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=o&&"none"===n[Xt]||i&&"none"===n[Xt]&&c+s>o)?"vertical":"horizontal"},Gt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var c=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===c||t.join&&t.indexOf(c)>-1}}var n={},o=t.group;o&&"object"==x(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Qt=function(){!qt&&ht&&z(ht,"display","none")},Jt=function(){!qt&&ht&&z(ht,"display","")};Yt&&!M&&document.addEventListener("click",(function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1}),!0);var te=function(t){if(dt){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Bt.some((function(t){var e=t[ot].options.emptyInsertThreshold;if(e&&!K(t)){var n=Y(t),o=r>=n.left-e&&r<=n.right+e,l=i>=n.top-e&&i<=n.bottom+e;return o&&l?a=t:void 0}})),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[ot]._onDragOver(n)}}var r,i,a},ee=function(t){dt&&dt.parentNode[ot]._isOutsideThisEl(t.target)};function ne(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=A({},e),t[ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Zt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.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!==ne.supportPointer&&"PointerEvent"in window&&!T,emptyInsertThreshold:5};for(var o in lt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Gt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Kt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?D(t,"pointerdown",this._onTapStart):(D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),Bt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),A(this,rt())}function oe(t,e,n,o,r,i,a,l){var c,s,u=t[ot],f=u.options.onMove;return!window.CustomEvent||C||k?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=e,c.from=t,c.dragged=n,c.draggedRect=o,c.related=r||e,c.relatedRect=i||Y(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),f&&(s=f.call(u,c,a)),s}function re(t){t.draggable=!1}function ie(){Ut=!1}function ae(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function le(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}ne.prototype={constructor:ne,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Dt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,dt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,s=o.filter;if(function(t){Wt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Wt.push(o)}}(n),!dt&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!T||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=R(l,o.draggable,n,!1))&&l.animated||gt===l)){if(wt=q(l),Ot=q(l,o.draggable),"function"==typeof s){if(s.call(this,t,l,this))return ft({sortable:e,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),ut("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(s&&(s=s.split(",").some((function(o){if(o=R(c,o.trim(),n,!1))return ft({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),ut("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!R(c,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!dt&&n.parentNode===i){var c=Y(n);if(vt=i,pt=(dt=n).parentNode,mt=dt.nextSibling,gt=n,Et=a.group,ne.dragged=dt,Ct={target:dt,clientX:(e||t).clientX,clientY:(e||t).clientY},Pt=Ct.clientX-c.left,Mt=Ct.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,dt.style["will-change"]="all",o=function(){ut("delayEnded",r,{evt:t}),ne.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!j&&r.nativeDraggable&&(dt.draggable=!0),r._triggerDragStart(t,e),ft({sortable:r,name:"choose",originalEvent:t}),H(dt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){U(dt,t.trim(),re)})),D(l,"dragover",te),D(l,"mousemove",te),D(l,"touchmove",te),D(l,"mouseup",r._onDrop),D(l,"touchend",r._onDrop),D(l,"touchcancel",r._onDrop),j&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dt.draggable=!0),ut("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(k||C))o();else{if(ne.eventCanceled)return void this._onDrop();D(l,"mouseup",r._disableDelayedDrag),D(l,"touchend",r._disableDelayedDrag),D(l,"touchcancel",r._disableDelayedDrag),D(l,"mousemove",r._delayedDragTouchMoveHandler),D(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&D(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dt&&re(dt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?D(document,"pointermove",this._onTouchMove):D(document,e?"touchmove":"mousemove",this._onTouchMove):(D(dt,"dragend",this),D(vt,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Rt=!1,vt&&dt){ut("dragStarted",this,{evt:e}),this.nativeDraggable&&D(document,"dragover",ee);var n=this.options;!t&&H(dt,n.dragClass,!1),H(dt,n.ghostClass,!0),ne.active=this,t&&this._appendGhost(),ft({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(kt){this._lastX=kt.clientX,this._lastY=kt.clientY,Qt();for(var t=document.elementFromPoint(kt.clientX,kt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(kt.clientX,kt.clientY))!==e;)e=t;if(dt.parentNode[ot]._isOutsideThisEl(t),e)do{if(e[ot]){if(e[ot]._onDragOver({clientX:kt.clientX,clientY:kt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Jt()}},_onTouchMove:function(t){if(Ct){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=ht&&V(ht,!0),a=ht&&i&&i.a,l=ht&&i&&i.d,c=$t&&It&&Z(It),s=(r.clientX-Ct.clientX+o.x)/(a||1)+(c?c[0]-Vt[0]:0)/(a||1),u=(r.clientY-Ct.clientY+o.y)/(l||1)+(c?c[1]-Vt[1]:0)/(l||1);if(!ne.active&&!Rt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ht){i?(i.e+=s-(jt||0),i.f+=u-(Tt||0)):i={a:1,b:0,c:0,d:1,e:s,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");z(ht,"webkitTransform",f),z(ht,"mozTransform",f),z(ht,"msTransform",f),z(ht,"transform",f),jt=s,Tt=u,kt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ht){var t=this.options.fallbackOnBody?document.body:vt,e=Y(dt,!0,$t,!0,t),n=this.options;if($t){for(It=t;"static"===z(It,"position")&&"none"===z(It,"transform")&&It!==document;)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=W()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=W(),Vt=Z(It)}H(ht=dt.cloneNode(!0),n.ghostClass,!1),H(ht,n.fallbackClass,!0),H(ht,n.dragClass,!0),z(ht,"transition",""),z(ht,"transform",""),z(ht,"box-sizing","border-box"),z(ht,"margin",0),z(ht,"top",e.top),z(ht,"left",e.left),z(ht,"width",e.width),z(ht,"height",e.height),z(ht,"opacity","0.8"),z(ht,"position",$t?"absolute":"fixed"),z(ht,"zIndex","100000"),z(ht,"pointerEvents","none"),ne.ghost=ht,t.appendChild(ht),z(ht,"transform-origin",Pt/parseInt(ht.style.width)*100+"% "+Mt/parseInt(ht.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;ut("dragStart",this,{evt:t}),ne.eventCanceled?this._onDrop():(ut("setupClone",this),ne.eventCanceled||((bt=et(dt)).removeAttribute("id"),bt.draggable=!1,bt.style["will-change"]="",this._hideClone(),H(bt,this.options.chosenClass,!1),ne.clone=bt),n.cloneId=le((function(){ut("clone",n),ne.eventCanceled||(n.options.removeCloneOnHide||vt.insertBefore(bt,dt),n._hideClone(),ft({sortable:n,name:"clone"}))})),!e&&H(dt,r.dragClass,!0),e?(Ft=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,dt)),D(document,"drop",n),z(dt,"transform","translateZ(0)")),Rt=!0,n._dragStartId=le(n._dragStarted.bind(n,e,t)),D(document,"selectstart",n),Nt=!0,T&&z(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,c=l.group,s=ne.active,u=Et===c,f=l.sort,d=St||s,p=this,h=!1;if(!Ut){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=R(a,l.draggable,i,!0),P("dragOver"),ne.eventCanceled)return h;if(dt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return N(!1);if(Ft=!1,s&&!l.disabled&&(u?f||(o=pt!==vt):St===this||(this.lastPutMode=Et.checkPull(this,s,dt,t))&&c.checkPut(this,s,dt,t))){if(r="vertical"===this._getDirection(t,a),e=Y(dt),P("dragOverValid"),ne.eventCanceled)return h;if(o)return pt=vt,M(),this._hideClone(),P("revert"),ne.eventCanceled||(mt?vt.insertBefore(dt,mt):vt.appendChild(dt)),N(!0);var v=K(i,l.draggable);if(!v||function(t,e,n){var o=Y(K(n.el,n.options.draggable)),r=nt(n.el,n.options,ht),i=10;return e?t.clientX>r.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}(t,r,this)&&!v.animated){if(v===dt)return N(!1);if(v&&i===t.target&&(a=v),a&&(n=Y(a)),!1!==oe(vt,i,dt,e,a,n,t,!!a))return M(),v&&v.nextSibling?i.insertBefore(dt,v.nextSibling):i.appendChild(dt),pt=i,D(),N(!0)}else if(v&&function(t,e,n){var o=Y(X(n.el,0,n.options,!0)),r=nt(n.el,n.options,ht),i=10;return e?t.clientX<r.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<r.top-i||t.clientY<o.bottom&&t.clientX<o.left}(t,r,this)){var m=X(i,0,l,!0);if(m===dt)return N(!1);if(n=Y(a=m),!1!==oe(vt,i,dt,e,a,n,t,!1))return M(),i.insertBefore(dt,m),pt=i,D(),N(!0)}else if(a.parentNode===i){n=Y(a);var g,b,y,x=dt.parentNode!==i,O=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,c=n?e.width:e.height;return o===a||r===l||o+i/2===a+c/2}(dt.animated&&dt.toRect||e,a.animated&&a.toRect||n,r),A=r?"top":"left",E=$(a,"top","top")||$(dt,"top","top"),S=E?E.scrollTop:void 0;if(Dt!==a&&(b=n[A],Ht=!1,zt=!O&&l.invertSwap||x),g=function(t,e,n,o,r,i,a,l){var c=o?t.clientY:t.clientX,s=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,d=!1;if(!a)if(l&&Lt<s*r){if(!Ht&&(1===_t?c>u+s*i/2:c<f-s*i/2)&&(Ht=!0),Ht)d=!0;else if(1===_t?c<u+Lt:c>f-Lt)return-_t}else if(c>u+s*(1-r)/2&&c<f-s*(1-r)/2)return function(t){return q(dt)<q(t)?1:-1}(e);if((d=d||a)&&(c<u+s*i/2||c>f-s*i/2))return c>u+s/2?1:-1;return 0}(t,a,n,r,O?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,zt,Dt===a),0!==g){var C=q(dt);do{C-=g,y=pt.children[C]}while(y&&("none"===z(y,"display")||y===ht))}if(0===g||y===a)return N(!1);Dt=a,_t=g;var k=a.nextElementSibling,j=!1,T=oe(vt,i,dt,e,a,n,t,j=1===g);if(!1!==T)return 1!==T&&-1!==T||(j=1===T),Ut=!0,setTimeout(ie,30),M(),j&&!k?i.appendChild(dt):a.parentNode.insertBefore(dt,j?k:a),E&&tt(E,0,S-E.scrollTop),pt=dt.parentNode,void 0===b||zt||(Lt=Math.abs(b-Y(a)[A])),D(),N(!0)}if(i.contains(dt))return N(!1)}return!1}function P(l,c){ut(l,p,w({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:N,onMove:function(n,o){return oe(vt,i,dt,e,n,Y(n),t,o)},changed:D},c))}function M(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function N(e){return P("dragOverCompleted",{insertion:e}),e&&(u?s._hideClone():s._showClone(p),p!==d&&(H(dt,St?St.options.ghostClass:s.options.ghostClass,!1),H(dt,l.ghostClass,!0)),St!==p&&p!==ne.active?St=p:p===ne.active&&St&&(St=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===dt&&!dt.animated||a===i&&!a.animated)&&(Dt=null),l.dragoverBubble||t.rootEl||a===document||(dt.parentNode[ot]._isOutsideThisEl(t.target),!e&&te(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function D(){xt=q(dt),At=q(dt,l.draggable),ft({sortable:p,name:"change",toEl:i,newIndex:xt,newDraggableIndex:At,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",te),_(document,"mousemove",te),_(document,"touchmove",te)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;xt=q(dt),At=q(dt,n.draggable),ut("drop",this,{evt:t}),pt=dt&&dt.parentNode,xt=q(dt),At=q(dt,n.draggable),ne.eventCanceled||(Rt=!1,zt=!1,Ht=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),T&&z(document.body,"user-select",""),z(dt,"transform",""),t&&(Nt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ht&&ht.parentNode&&ht.parentNode.removeChild(ht),(vt===pt||St&&"clone"!==St.lastPutMode)&&bt&&bt.parentNode&&bt.parentNode.removeChild(bt),dt&&(this.nativeDraggable&&_(dt,"dragend",this),re(dt),dt.style["will-change"]="",Nt&&!Rt&&H(dt,St?St.options.ghostClass:this.options.ghostClass,!1),H(dt,this.options.chosenClass,!1),ft({sortable:this,name:"unchoose",toEl:pt,newIndex:null,newDraggableIndex:null,originalEvent:t}),vt!==pt?(xt>=0&&(ft({rootEl:pt,name:"add",toEl:pt,fromEl:vt,originalEvent:t}),ft({sortable:this,name:"remove",toEl:pt,originalEvent:t}),ft({rootEl:pt,name:"sort",toEl:pt,fromEl:vt,originalEvent:t}),ft({sortable:this,name:"sort",toEl:pt,originalEvent:t})),St&&St.save()):xt!==wt&&xt>=0&&(ft({sortable:this,name:"update",toEl:pt,originalEvent:t}),ft({sortable:this,name:"sort",toEl:pt,originalEvent:t})),ne.active&&(null!=xt&&-1!==xt||(xt=wt,At=Ot),ft({sortable:this,name:"end",toEl:pt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){ut("nulling",this),vt=dt=pt=ht=mt=bt=gt=yt=Ct=kt=Nt=xt=At=wt=Ot=Dt=_t=St=Et=ne.dragged=ne.ghost=ne.clone=ne.active=null,Wt.forEach((function(t){t.checked=!0})),Wt.length=jt=Tt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dt&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)R(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||ae(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach((function(t,e){var r=o.children[e];R(r,this.options.draggable,o,!1)&&(n[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return R(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=lt.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Gt(n)},destroy:function(){ut("destroy",this);var t=this.el;t[ot]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Bt.splice(Bt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!yt){if(ut("hideClone",this),ne.eventCanceled)return;z(bt,"display","none"),this.options.removeCloneOnHide&&bt.parentNode&&bt.parentNode.removeChild(bt),yt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(yt){if(ut("showClone",this),ne.eventCanceled)return;dt.parentNode!=vt||this.options.group.revertClone?mt?vt.insertBefore(bt,mt):vt.appendChild(bt):vt.insertBefore(bt,dt),this.options.group.revertClone&&this.animate(dt,bt),z(bt,"display",""),yt=!1}}else this._hideClone()}},Yt&&D(document,"touchmove",(function(t){(ne.active||Rt)&&t.cancelable&&t.preventDefault()})),ne.utils={on:D,off:_,css:z,find:U,is:function(t,e){return!!R(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:J,closest:R,toggleClass:H,clone:et,index:q,nextTick:le,cancelNextTick:ce,detectDirection:Zt,getChild:X},ne.get=function(t){return t[ot]},ne.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(ne.utils=w(w({},ne.utils),t.utils)),lt.mount(t)}))},ne.create=function(t,e){return new ne(t,e)},ne.version="1.15.2";var se,ue,fe,de,pe,he,ve=[],me=!1;function ge(){ve.forEach((function(t){clearInterval(t.pid)})),ve=[]}function be(){clearInterval(he)}var ye=J((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,c=e.scrollSpeed,s=W(),u=!1;ue!==n&&(ue=n,ge(),se=e.scroll,r=e.scrollFn,!0===se&&(se=G(n,!0)));var f=0,d=se;do{var p=d,h=Y(p),v=h.top,m=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,x=void 0,O=void 0,A=p.scrollWidth,E=p.scrollHeight,S=z(p),C=p.scrollLeft,k=p.scrollTop;p===s?(x=y<A&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),O=w<E&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=y<A&&("auto"===S.overflowX||"scroll"===S.overflowX),O=w<E&&("auto"===S.overflowY||"scroll"===S.overflowY));var j=x&&(Math.abs(b-i)<=l&&C+y<A)-(Math.abs(g-i)<=l&&!!C),T=O&&(Math.abs(m-a)<=l&&k+w<E)-(Math.abs(v-a)<=l&&!!k);if(!ve[f])for(var P=0;P<=f;P++)ve[P]||(ve[P]={});ve[f].vx==j&&ve[f].vy==T&&ve[f].el===p||(ve[f].el=p,ve[f].vx=j,ve[f].vy=T,clearInterval(ve[f].pid),0==j&&0==T||(u=!0,ve[f].pid=setInterval(function(){o&&0===this.layer&&ne.active._onTouchMove(pe);var e=ve[this.layer].vy?ve[this.layer].vy*c:0,n=ve[this.layer].vx?ve[this.layer].vx*c:0;"function"==typeof r&&"continue"!==r.call(ne.dragged.parentNode[ot],n,e,t,pe,ve[this.layer].el)||tt(ve[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==s&&(d=G(d,!1)));me=u}}),30),we=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var c=n||r;a();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(s.clientX,s.clientY);l(),c&&!c.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function xe(){}function Oe(){}xe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=X(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:we},A(xe,{pluginName:"revertOnSpill"}),Oe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:we},A(Oe,{pluginName:"removeOnSpill"});ne.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):this.options.supportPointer?D(document,"pointermove",this._handleFallbackAutoScroll):e.touches?D(document,"touchmove",this._handleFallbackAutoScroll):D(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),be(),ge(),clearTimeout(F),F=void 0},nulling:function(){pe=ue=se=me=he=fe=de=null,ve.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(pe=t,e||this.options.forceAutoScrollFallback||k||C||T){ye(t,this.options,i,e);var a=G(i,!0);!me||he&&o===fe&&r===de||(he&&be(),he=setInterval((function(){var i=G(document.elementFromPoint(o,r),!0);i!==a&&(a=i,ge()),ye(t,n.options,i,e)}),10),fe=o,de=r)}else{if(!this.options.bubbleScroll||G(i,!0)===W())return void ge();ye(t,this.options,G(i,!1),!1)}}},A(t,{pluginName:"scroll",initializeByDefault:!0})}),ne.mount(Oe,xe);const Ae=ne;function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ee(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ce=function(r){var i=r.title,a=r.data,l=r.onSearch,c=r.onchange,s=r.onMove,u=r.queryAll,f=r.inverse,h=r.direction,y=r.fluctuationPosition,w=r.fluctuationOrther,x=r.onEndSort,O=r.multiple,A=r.rightIcon,E=r.style,S=r.customKey,C=(0,d.A)("Transfer",p),k=Se((0,t.useState)([]),2),j=k[0],T=k[1],P=Se((0,t.useState)(0),2),M=P[0],N=P[1],D=Se((0,t.useState)(0),2),_=D[0],L=D[1],I=(0,t.useRef)();(0,t.useEffect)((function(){var t=[],e=0,n=0;a.forEach((function(o,r){o.checked&&!o.hide&&t.push(r),(o.disabled||o.hide)&&e++,o.hide&&n++})),N(e),L(n),T(t)}),[a]),(0,t.useEffect)((function(){"right"==h&&new Ae(I.current,{animation:180,ghostClass:"blue-background-class",dragClass:"drag-item",easing:"step-start",onEnd:function(t){null==x||x(t.oldIndex,t.newIndex)}})}),[]);var R,F,B,H=(R=function(t,e,n){n.disabled||c(t,!n.checked,e,h,O)},F=function(t,e,n){(null==n?void 0:n.disabled)||(c(t,!0,e,h,!1),s("right"===h?"left":"right"))},B=(0,t.useRef)({clickCount:0,time:0,timer:null}),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];B.current.clickCount+=1,B.current.time=Date.now(),B.current.timer=setTimeout((function(){Date.now()-B.current.time<=200&&2===B.current.clickCount&&F&&F.apply(null,e),1===B.current.clickCount&&R&&R.apply(null,e),clearTimeout(B.current.timer),B.current.clickCount=0}),200)}),z=function(t){var e={};return(null==t?void 0:t.tagColor)&&(e.borderLeft="4px solid ".concat(t.tagColor)),(null==t?void 0:t.hide)&&(e.display="none"),e};return e().createElement("div",{className:"box",style:E},e().createElement("div",{className:"box-header"},i),e().createElement(v.Search,{btnType:"inside",placeholder:C({id:"searchPlaceholder"}),showBtn:!1,rightIcon:e().createElement(m.A,null),rightIconExist:!0,onChange:function(t){l(t,h)},onClickRightIcon:function(t){l(t,h)},onEnter:function(t){var e,n=(null===(e=t.target)||void 0===e?void 0:e.value)||"";l(n,h)},allowClear:!0}),e().createElement("div",{className:"context",ref:I},a.map((function(t,o){return e().createElement("div",{className:(0,n.A)("item",(null==t?void 0:t.tagColor)&&"item-border",(null==t?void 0:t.disabled)&&"item-disabled",(null==t?void 0:t.checked)&&"item-checked",y===o&&"item-fluctuation",w===o&&"item-fluctuationOrther"),style:z(t),key:t[t[S]]||t.name,onClick:function(e){H(e,o,t)}},e().createElement("div",{className:"item-label"},e().createElement(g.default,null,(null==t?void 0:t.name)||t[t[S]])),A?e().createElement("div",{className:"right-icon"},A(t)):null,"right"===h?e().createElement("div",{className:"handle"},A?e().createElement("span",{className:"handle-line"}):null,e().createElement(b,{size:"medium"})):null)}))),O&&e().createElement("div",{className:"footer"},e().createElement("div",null,e().createElement(o.default,{variant:"text",className:"".concat(a.length-M==0?"btn-off":""),disabled:a.length-M==0,onClick:function(){u(j.length!==a.length-M,h)}},C({id:"allCheck"})),e().createElement(o.default,{variant:"text",className:"".concat(0===j.length||j.length===a.length-M?"btn-off":""),disabled:0===j.length||j.length===a.length-M,onClick:function(){f(h)}},C({id:"inVertCheck"}))),e().createElement("div",{className:"count"},j.length,"/",a.length-_)))};var ke=Ae;i(75681);function je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,e)||Ne(t,e)||function(){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 Me(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ne(t)||function(){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 Ne(t,e){if(t){if("string"==typeof t)return je(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(t,e):void 0}}var De=function(r){var i,a,l,v,m,g,b,y=(0,d.A)("Transfer",p),w=r.data,x=void 0===w?[]:w,O=r.value,A=r.customKey,E=void 0===A?"key":A,S=r.onChange,C=r.titles,k=void 0===C?[y({id:"left"}),y({id:"right"})]:C,j=r.className,T=r.style,P=void 0===T?{width:"298px"}:T,M=r.onSort,N=r.trim,D=void 0!==N&&N,_=r.multiple,L=void 0===_||_,I=r.rightIcon,R=r.render,F=void 0===R?function(t){}:R,B=r.disabled,H=Pe((0,t.useState)([]),2),z=H[0],V=H[1],U=Pe((0,t.useState)([]),2),W=U[0],Y=U[1],$=Pe((0,t.useState)([]),2),X=$[0],K=$[1],q=Pe((0,t.useState)([]),2),Z=q[0],G=q[1],Q=Pe((0,t.useState)(),2),J=Q[0],tt=(Q[1],Pe((0,t.useState)(),2)),et=tt[0],nt=(tt[1],Pe((0,t.useState)(!1),2)),ot=nt[0],rt=nt[1],it=(0,t.useCallback)((function(t,e,n,o,r){"left"===o?(!r&&z.forEach((function(t){return t.checked=!1})),z[n].checked=e,V(Me(z))):(!r&&W.forEach((function(t){return t.checked=!1})),W[n].checked=e,Y(Me(W)))}),[z,W]),at=(0,t.useCallback)((function(t,e){"left"===e?(z.forEach((function(e){e.disabled||e.hide||B||(e.checked=t)})),V(Me(z))):(W.forEach((function(e){e.disabled||e.hide||B||(e.checked=t)})),Y(Me(W)))}),[z,W]),lt=(0,t.useCallback)((function(t){"left"===t?(z.forEach((function(t){t.disabled||t.hide||B||(t.checked=!t.checked)})),V(Me(z))):(W.forEach((function(t){t.disabled||t.hide||B||(t.checked=!t.checked)})),Y(Me(W)))}),[z,W]),ct=function(t){"left"===t?Me(W).forEach((function(t){(null==t?void 0:t.checked)&&!(null==t?void 0:t.hide)&&(t.checked=!1,z.push(t),W.splice(W.indexOf(t),1))})):Me(z).forEach((function(t){(null==t?void 0:t.checked)&&!(null==t?void 0:t.hide)&&(t.checked=!1,W.push(t),z.splice(z.indexOf(t),1))})),V(Me(z)),Y(Me(W));var e=[];W.forEach((function(t){e.push(t[E])})),null==S||S(e)},st=function(t){rt(!0),Y("up"==t?function(t){Z.forEach((function(e){var n;(n=t).splice.apply(n,[e-1,0].concat(Me(t.splice(e,1))))})),rt(!1);var e=[];return t.forEach((function(t){e.push(t[E])})),null==M||M(Me(e)),null==S||S(Me(e)),Me(t)}:function(t){Z.reverse().forEach((function(e){var n;(n=t).splice.apply(n,[e+1,0].concat(Me(t.splice(e,1))))})),rt(!1);var e=[];return t.forEach((function(t){e.push(t[E])})),null==M||M(Me(e)),null==S||S(Me(e)),Me(t)})},ut=(m=function(t,e){var n=D?t.toUpperCase().trim():t.toUpperCase();"left"===e?(z.forEach((function(t){t.hide=!1;var e=(t.name||"").toUpperCase(),o=(t.description||"").toUpperCase();-1===e.indexOf(n)&&-1===o.indexOf(n)&&(t.hide=!0)})),V(Me(z))):(W.filter((function(t){t.hide=!1;var e=(t.name||"").toUpperCase(),o=(t.description||"").toUpperCase();-1===e.indexOf(n)&&-1===o.indexOf(n)&&(t.hide=!0)})),Y(Me(W)))},g=500,function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];b&&clearTimeout(b),b=setTimeout((function(){m.apply(t,n)}),g)}),ft=(0,t.useCallback)((function(t,e){Y((function(n){var o;(o=n).splice.apply(o,[e,0].concat(Me(n.splice(t,1))));var r=[];return n.forEach((function(t){r.push(t[E])})),null==M||M(Me(r)),null==S||S(Me(r)),Me(n)}))}),[]);return(0,t.useEffect)((function(){var t=[],e=[],n={};for(var o in x.forEach((function(t){var e=t[E];F(t),n[e]=t})),null==O||O.forEach((function(e){n[e]&&(t.push(n[e]),delete n[e])})),n)e.push(n[o]);Y(Me(t)),V(Me(e))}),[O,x]),(0,t.useEffect)((function(){var t=[];z.forEach((function(e,n){e.checked&&!e.hide&&t.push(n)})),K(t);var e=[];W.forEach((function(t,n){t.checked&&!t.hide&&e.push(n)})),G(e)}),[z,W]),e().createElement("div",{className:(0,n.A)("".concat(h.n,"-transfer"),j,Te({},"".concat(h.n,"-transfer-disabled"),B))},e().createElement("div",{className:"".concat(h.n,"-transfer-container")},e().createElement(Ce,{title:k[0],queryAll:at,data:z,style:P,direction:"left",customKey:E,rightIcon:I,onchange:it,multiple:L,onMove:ct,inverse:lt,onSearch:ut}),e().createElement("div",{className:"moveBtn"},e().createElement(o.default.IconButton,{className:"btn btn-right",disabled:X.length<=0||B,toolTipTitle:X.length<=0?y({id:"rightBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){ct("right")}},e().createElement(s,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||(null===(i=W[0])||void 0===i?void 0:i.checked)||ot||B,toolTipTitle:Z.length<=0||(null===(a=W[0])||void 0===a?void 0:a.checked)?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){st("up")}},e().createElement(u,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||(null===(l=W[W.length-1])||void 0===l?void 0:l.checked)||ot||B,toolTipTitle:Z.length<=0||(null===(v=W[W.length-1])||void 0===v?void 0:v.checked)?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){st("down")}},e().createElement(f.A,null)),e().createElement(o.default.IconButton,{className:"btn btn-left",disabled:Z.length<=0||B,toolTipTitle:Z.length<=0?y({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottomLeft"},onClick:function(){ct("left")}},e().createElement(c,null))),e().createElement(Ce,{title:k[1],queryAll:at,data:W,style:P,direction:"right",customKey:E,rightIcon:I,onchange:it,multiple:L,onMove:ct,inverse:lt,fluctuationPosition:J,fluctuationOrther:et,onEndSort:ft,onSearch:ut})))};const _e=De;var Le=ke})(),a})()));
|
|
File without changes
|