PageSourceSearch

https://www.itlent.eus/static/js/react-sortable-hoc.a6cc2035.chunk.js

js itlent.eus collected 2026-10-07 23:04:33 UTC 27,983 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5248],{7784:e=>{e.exports=function(e,t,n,o,r,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,l],d=0;(s=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},13844:(e,t,n)=>{n.r(t),n.d(t,{SortableContainer:()=>Z,SortableElement:()=>ne,SortableHandle:()=>Y,arrayMove:()=>S,sortableContainer:()=>Z,sortableElement:()=>ne,sortableHandle:()=>Y});var o=n(49084),r=n(88004),i=n(90920);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),o.forEach(function(t){(0,i.c)(e,t,n[t])})}return e}var l=n(44008),s=n(55568),c=n(32096),d=n(11524),u=n(79476),h=n(16296),f=n(83740),p=n(7012),g=n(7784),y=n.n(g),v=n(96300),m=n(41688),x=n.n(m),w=function(){function e(){(0,l.c)(this,e),(0,i.c)(this,"refs",{})}return(0,s.c)(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(b)}}]),e}();function b(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function S(e,t,n){return(e=e.slice()).splice(n<0?e.length+n:n,0,e.splice(t,1)[0]),e}function O(e,t){return Object.keys(e).reduce(function(n,o){return-1===t.indexOf(o)&&(n[o]=e[o]),n},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if("undefined"===typeof window||"undefined"===typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function I(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function E(e,t){e.style["".concat(T,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function k(e,t){e.style["".concat(T,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function D(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function R(e,t,n){return Math.max(e,Math.min(n,t))}function A(e){return"px"===e.substr(-2)?parseFloat(e):0}function N(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function M(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function L(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var o={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?o:W(e.parentNode,t,o)}}function j(e){var t=e.lockOffset,n=e.width,o=e.height,r=t,i=t,a="px";if("string"===typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);y()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),i=parseFloat(t),a=l[1]}return y()(isFinite(r)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(r=r*n/100,i=i*o/100),{x:r,y:i}}function H(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:H(e.parentNode):null}var P=27,K=32,_=37,B=38,G=39,U=40,X={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Y(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,l.c)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=(0,c.c)(this,(e=(0,d.c)(n)).call.apply(e,[this].concat(r))),(0,i.c)((0,h.c)((0,h.c)(t)),"wrappedInstance",(0,f.createRef)()),t}
1return(0,u.c)(n,t),(0,s.c)(n,[{key:"componentDidMount",value:function(){(0,p.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,f.createElement)(e,(0,o.c)({ref:t},this.props))}}]),n}(f.Component),(0,i.c)(t,"displayName",N("sortableHandle",e)),n}function F(e){return null!=e.sortableHandle}var V=function(){function e(t,n){(0,l.c)(this,e),this.container=t,this.onScrollCallback=n}return(0,s.c)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,o=e.minTranslate,r=e.maxTranslate,i=e.width,a=e.height,l={x:0,y:0},s={x:1,y:1},c=10,d=10,u=this.container,h=u.scrollTop,f=u.scrollLeft,p=u.scrollHeight,g=u.scrollWidth,y=0===h,v=p-h-u.clientHeight===0,m=0===f,x=g-f-u.clientWidth===0;n.y>=r.y-a/2&&!v?(l.y=1,s.y=d*Math.abs((r.y-a/2-n.y)/a)):n.x>=r.x-i/2&&!x?(l.x=1,s.x=c*Math.abs((r.x-i/2-n.x)/i)):n.y<=o.y+a/2&&!y?(l.y=-1,s.y=d*Math.abs((n.y-a/2-o.y)/a)):n.x<=o.x+i/2&&!m&&(l.x=-1,s.x=c*Math.abs((n.x-i/2-o.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*l.x,top:s.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}();var q={axis:x().oneOf(["x","y","xy"]),contentWindow:x().any,disableAutoscroll:x().bool,distance:x().number,getContainer:x().func,getHelperDimensions:x().func,helperClass:x().string,helperContainer:x().oneOfType([x().func,"undefined"===typeof HTMLElement?x().any:x().instanceOf(HTMLElement)]),hideSortableGhost:x().bool,keyboardSortingTransitionDuration:x().number,lockAxis:x().string,lockOffset:x().oneOfType([x().number,x().string,x().arrayOf(x().oneOfType([x().number,x().string]))]),lockToContainerEdges:x().bool,onSortEnd:x().func,onSortMove:x().func,onSortOver:x().func,onSortStart:x().func,pressDelay:x().number,pressThreshold:x().number,keyCodes:x().shape({lift:x().arrayOf(x().number),drop:x().arrayOf(x().number),cancel:x().arrayOf(x().number),up:x().arrayOf(x().number),down:x().arrayOf(x().number)}),shouldCancelStart:x().func,transitionDuration:x().number,updateBeforeSortStart:x().func,useDragHandle:x().bool,useWindowAsScrollContainer:x().bool},z={lift:[K],drop:[K],cancel:[P],up:[B,_],down:[U,G]},$={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:z,shouldCancelStart:function(e){return-1!==[X.Input,X.Textarea,X.Select,X.Option,X.Button].indexOf(e.target.tagName)||!!D(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},J=Object.keys(q);var Q=(0,f.createContext)({manager:{}});function Z(e){var t,n,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;(0,l.c)(this,n),t=(0,c.c)(this,(0,d.c)(n).call(this,e)),(0,i.c)((0,h.c)((0,h.c)(t)),"state",{}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleStart",function(e){var n=t.props,o=n.distance,r=n.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=L(e);var i=D(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,l=i.sortableInfo,s=l.index,c=l.collection;if(l.disabled)return;if(a&&!D(e.target,F))return;t.manager.active={collection:c,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==X.Anchor||e.preventDefault(),o||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}
1),(0,i.c)((0,h.c)((0,h.c)(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleMove",function(e){var n=t.props,o=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=L(e),a={x:t.position.x-i.x,y:t.position.y-i.y},l=Math.abs(a.x)+Math.abs(a.y);t.delta=a,o||r&&!(l>=r)?o&&l>=o&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),(0,i.c)((0,h.c)((0,h.c)(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),(0,i.c)((0,h.c)((0,h.c)(t)),"handlePress",function(e){try{var n=t.manager.getActive(),o=function(){if(n){var o=function(){var n=f.sortableInfo.index,o=function(e){var t=window.getComputedStyle(e);return{bottom:A(t.marginBottom),left:A(t.marginLeft),right:A(t.marginRight),top:A(t.marginTop)}}(f),r=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:A(t.gridColumnGap),y:A(t.gridRowGap)}:{x:0,y:0}}(t.container),d=t.scrollContainer.getBoundingClientRect(),y=l({index:n,node:f,collection:p});if(t.node=f,t.margin=o,t.gridGap=r,t.width=y.width,t.height=y.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=d,t.index=n,t.newIndex=n,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=W(f,t.container),t.initialOffset=L(g?a({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),o=e.cloneNode(!0);return(0,v.c)(o.querySelectorAll(t)).forEach(function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===X.Canvas&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)}),o}(f)),I(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boun
1dingClientRect.left-o.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-o.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),c&&(t.sortableGhost=f,I(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var m=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,x=m.top,w=m.left,b=m.width,S=x+m.height,O=w+b;t.axis.x&&(t.minTranslate.x=w-t.boundingClientRect.left,t.maxTranslate.x=O-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=x-t.boundingClientRect.top,t.maxTranslate.y=S-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:d.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:d.left+d.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:d.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:d.top+d.height)-t.boundingClientRect.top-t.height/2);s&&s.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(C.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),C.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:n}),u&&u({node:f,index:n,collection:p,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},r=t.props,i=r.axis,l=r.getHelperDimensions,s=r.helperClass,c=r.hideSortableGhost,d=r.updateBeforeSortStart,u=r.onSortStart,h=r.useWindowAsScrollContainer,f=n.node,p=n.collection,g=t.manager.isKeySorting,y=function(){if("function"===typeof d){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(o){return t(!0,o)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=f.sortableInfo.index;return Promise.resolve(d({collection:p,index:t,node:f,isKeySorting:g},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return y&&y.then?y.then(o):o()}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(r){return Promise.reject(r)}}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"===typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleSortEnd",function(e){var n=t.props,o=n.hideSortableGhost,r=n.onSortEnd,i=t.manager,a=i.active.collection,l=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(l?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(C.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),C.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),o&&t.sortableGhost&&I(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,d=s.length;c<d;c++){var u=s[c],h=u.node;u.edgeOffset=null,u.boundingClientRect=null,E(h,null),k(h,null),u.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"===typeof r&&r({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:l,nodes:s},e),t.touched=!1}),(0,i.c)((0,h.c)((0,h.c)(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var o=a({},t.translate),r=0,i=0;return t.axis.x&&(o.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-o.x),t.axis.y&&(o.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-o.y),t.translate=o,E(t.helper,t.translate),t.scrollC
1ontainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),(0,i.c)((0,h.c)((0,h.c)(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleKeyDown",function(e){var n=e.keyCode,o=t.props,r=o.shouldCancelStart,i=o.keyCodes,l=a({},z,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),(0,i.c)((0,h.c)((0,h.c)(t)),"keyLift",function(e){var n=e.target,o=D(n,function(e){return null!=e.sortableInfo}).sortableInfo,r=o.index,i=o.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:i},t.handlePress(e)}),(0,i.c)((0,h.c)((0,h.c)(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),o=n[n.length-1].node.sortableInfo.index,r=t.newIndex+e,i=t.newIndex;if(!(r<0||r>o)){t.prevIndex=i,t.newIndex=r;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),l=n.find(function(e){return e.node.sortableInfo.index===a}),s=l.node,c=t.containerScrollDelta,d=l.boundingClientRect||M(s,c),u=l.translate||{x:0,y:0},h=d.top+u.y-c.top,f=d.left+u.x-c.left,p=i<r,g=p&&t.axis.x?s.offsetWidth-t.width:0,y=p&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:f+g,pageY:h+y,ignoreTransition:0===e})}}),(0,i.c)((0,h.c)((0,h.c)(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),(0,i.c)((0,h.c)((0,h.c)(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),(0,i.c)((0,h.c)((0,h.c)(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,o=e.target,r=D(o,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?F(o):o.sortableInfo)});var o=new w;return function(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=o,t.wrappedInstance=(0,f.createRef)(),t.sortableContextValue={manager:o},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return(0,u.c)(n,t),(0,s.c)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var o=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"===typeof o?o():o,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:H(e.container)||e.container,e.autoScroller=new V(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return C[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return C[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,o=t.lockOffset,i=t.lockToContainerEdges,a=t.transitionDuration,l=t.keyboardSortingTransitionDuration,s=void 0===l?a:l,c=this.manager.isKeySorting,d=e.ignoreTransition,u=L(e),h={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(h.y-=window.pageYOffset-this.initialWindowScroll.top,h.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=h,i){var f=function(e){var t=e.height,n=e.width,o=e.lockOffset,i=Array.isArray(o)?o:[o,o];y()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var a=(0,r.c)(i,2),l=a[0],s=a[1];return[j({height:t,lockOffset:l,width:n}),j({height:t,lockOffset:s,width:n})]}({height:this.height,lockOffset:o,width:this.width}),p=(0,r.c)(f,2),g=p[0],v=p[1],m={x:this.width/2-g.x,y:this.height/2-g.y},x={x:this.width/2-v.x,y:this.height/2-v.y};h.x=R(this.minTranslate.x+m.x,this.maxTranslate.x-x.x,h.x),h.y=R(this.minTranslate.y+m.y,this.maxTranslate.y-x.y,h.y)}"x"===n?h.y=0:"y"===n&&(h.x=0),c&&s&&!d&&k(this.helper,s),E(this.helper,h)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,o=e.onSortOver,r=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),l=this.offsetE
1dge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,c=this.manager.isKeySorting,d=this.newIndex;this.newIndex=null;for(var u=0,h=a.length;u<h;u++){var f=a[u].node,p=f.sortableInfo.index,g=f.offsetWidth,y=f.offsetHeight,v={height:this.height>y?y/2:this.height/2,width:this.width>g?g/2:this.width/2},m=c&&p>this.index&&p<=d,x=c&&p<this.index&&p>=d,w={x:0,y:0},b=a[u].edgeOffset;b||(b=W(f,this.container),a[u].edgeOffset=b,c&&(a[u].boundingClientRect=M(f,r)));var S=u<a.length-1&&a[u+1],O=u>0&&a[u-1];S&&!S.edgeOffset&&(S.edgeOffset=W(S.node,this.container),c&&(S.boundingClientRect=M(S.node,r))),p!==this.index?(t&&k(f,t),this.axis.x?this.axis.y?x||p<this.index&&(l+i.left-v.width<=b.left&&s+i.top<=b.top+v.height||s+i.top+v.height<=b.top)?(w.x=this.width+this.marginOffset.x,b.left+w.x>this.containerBoundingRect.width-v.width&&S&&(w.x=S.edgeOffset.left-b.left,w.y=S.edgeOffset.top-b.top),null===this.newIndex&&(this.newIndex=p)):(m||p>this.index&&(l+i.left+v.width>=b.left&&s+i.top+v.height>=b.top||s+i.top+v.height>=b.top+y))&&(w.x=-(this.width+this.marginOffset.x),b.left+w.x<this.containerBoundingRect.left+v.width&&O&&(w.x=O.edgeOffset.left-b.left,w.y=O.edgeOffset.top-b.top),this.newIndex=p):m||p>this.index&&l+i.left+v.width>=b.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=p):(x||p<this.index&&l+i.left<=b.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=p)):this.axis.y&&(m||p>this.index&&s+i.top+v.height>=b.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=p):(x||p<this.index&&s+i.top<=b.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=p))),E(f,w),a[u].translate=w):n&&(this.sortableGhost=f,I(f,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=d);var C=c?this.prevIndex:d;o&&this.newIndex!==C&&o({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:C,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return y()(g.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!==typeof e?(0,p.findDOMNode)(this):e(g.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=g.withRef?this.wrappedInstance:null;return(0,f.createElement)(Q.Provider,{value:this.sortableContextValue},(0,f.createElement)(e,(0,o.c)({ref:t},O(this.props,J))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"===typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(f.Component),(0,i.c)(t,"displayName",N("sortableList",e)),(0,i.c)(t,"defaultProps",$),(0,i.c)(t,"propTypes",q),n}var ee={index:x().number.isRequired,collection:x().oneOfType([x().number,x().string]),disabled:x().bool},te=Object.keys(ee);function ne(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,l.c)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return t=(0,c.c)(this,(e=(0,d.c)(n)).call.apply(e,[this].concat(r))),(0,i.c)((0,h.c)((0,h.c)(t)),"wrappedInstance",(0,f.createRef)()),t}return(0,u.c)(n,t),(0,s.c)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,o=e.index,r=(0,p.findDOMNode)(this);r.sortableInfo={collection:t,disabled:n,index:o,manager:this.context.manager},this.node=r,this.ref={node:r},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,f.createElement)(e,(0,o.c)({ref:t},O(this.props,te)))}}]),n}(f.Component),(0,i.c)(t,"displayName",N("sortableElement",e)),(0,i.c)(t,"contextType",Q),(0,i.c)(t,"propTypes",ee),(0,i.c)(t,"defaultProps",{collection:0}),n}}
1,47528:(e,t,n)=>{function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{c:()=>o})},44008:(e,t,n)=>{function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{c:()=>o})},11524:(e,t,n)=>{function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{c:()=>o})},79476:(e,t,n)=>{n.d(t,{c:()=>r});var o=n(75900);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.c)(e,t)}},32096:(e,t,n)=>{n.d(t,{c:()=>i});var o=n(21900),r=n(16296);function i(e,t){if(t&&("object"===(0,o.c)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.c)(e)}},88004:(e,t,n)=>{n.d(t,{c:()=>r});var o=n(47296);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(d){c=!0,r=d}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||(0,o.c)(e,t)||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.")}()}},96300:(e,t,n)=>{n.d(t,{c:()=>i});var o=n(47528);var r=n(47296);function i(e){return function(e){if(Array.isArray(e))return(0,o.c)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.c)(e)||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.")}()}},47296:(e,t,n)=>{n.d(t,{c:()=>r});var o=n(47528);function r(e,t){if(e){if("string"===typeof e)return(0,o.c)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.c)(e,t):void 0}}}}]);
2//# sourceMappingURL=react-sortable-hoc.a6cc2035.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.