12 lines
16 KiB
JavaScript
12 lines
16 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["U/5H"],{"U/5H":function(t,e,n){var o,i;
|
||
|
|
/**!
|
||
|
|
* Sortable
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
/**!
|
||
|
|
* Sortable
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
!function(r){"use strict";void 0===(i="function"==typeof(o=r)?o.call(e,n,e,t):o)||(t.exports=i)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,o,i,r,a,l,s,c,d,h,u,p,f,g,v,m,_,b,D={},y=/\s+/g,w=/left|right|inline/,T="Sortable"+(new Date).getTime(),C=window,S=C.document,E=C.parseInt,x=C.setTimeout,k=C.jQuery||C.Zepto,N=C.Polymer,B=!1,P="draggable"in S.createElement("div"),Y=function(t){return!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((t=S.createElement("x")).style.cssText="pointer-events:auto","auto"===t.style.pointerEvents)}(),X=!1,O=Math.abs,I=Math.min,R=[],A=[],M=nt(function(t,e,n){if(n&&e.scroll){var o,i,r,a,d,h,u=n[T],p=e.scrollSensitivity,f=e.scrollSpeed,g=t.clientX,v=t.clientY,m=window.innerWidth,_=window.innerHeight;if(s!==n&&(l=e.scroll,s=n,c=e.scrollFn,!0===l)){l=n;do{if(l.offsetWidth<l.scrollWidth||l.offsetHeight<l.scrollHeight)break}while(l=l.parentNode)}l&&(o=l,i=l.getBoundingClientRect(),r=(O(i.right-g)<=p)-(O(i.left-g)<=p),a=(O(i.bottom-v)<=p)-(O(i.top-v)<=p)),r||a||(a=(_-v<=p)-(v<=p),((r=(m-g<=p)-(g<=p))||a)&&(o=C)),D.vx===r&&D.vy===a&&D.el===o||(D.el=o,D.vx=r,D.vy=a,clearInterval(D.pid),o&&(D.pid=setInterval(function(){if(h=a?a*f:0,d=r?r*f:0,"function"==typeof c)return c.call(u,d,h,t);o===C?C.scrollTo(C.pageXOffset+d,C.pageYOffset+h):(o.scrollTop+=h,o.scrollLeft+=d)},24)))}},30),L=function(t){function e(t,e){return void 0!==t&&!0!==t||(t=n.name),"function"==typeof t?t:function(n,o){var i=o.options.group.name;return e?t:t&&(t.join?t.indexOf(i)>-1:i==t)}}var n={},o=t.group;o&&"object"==typeof 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};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){B={capture:!1,passive:!1}}}))}catch(t){}function U(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=ot({},e),t[T]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==U.supportPointer};for(var o in n)!(o in e)&&(e[o]=n[o]);for(var i in L(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&P,W(t,"mousedown",this._onTapStart),W(t,"touchstart",this._onTapStart),e.supportPointer&&W(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(W(t,"dragover",this),W(t,"dragenter",this)),A.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function F(e,n){"clone"!==e.lastPullMode&&(n=!0),o&&o.state!==n&&(z(o,"display",n?"none":""),n||o.state&&(e.options.group.revertClone?(i.insertBefore(o,r),e._animate(t,o)):i.insertBefore(o,t)),o.state=n)}function H(t,e,n){if(t){n=n||S;do{if(">*"===e&&t.parentNode===n||et(t,e))return t}while(t=j(t))}return null}function j(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function W(t,e,n){t.addEventListener(e,n,B)}function V(t,e,n){t.removeEventListener(e,n,B)}function q(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(y," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(y," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return S.defaultView&&S.defaultView.getComputedStyle?n=S.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function G(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[
|