HEX
Server: Apache
System: Linux uws7-179.cafe24.com 3.10.0-1160.119.1p.el7.x86_64 #1 SMP Thu Sep 11 14:15:01 KST 2025 x86_64
User: medikors (1589)
PHP: 7.3.1p1
Disabled: mysql_pconnect
Upload Files
File: /medikors/www/wp-content/plugins/jet-engine/assets/lib/vue-slicksort/vue-slicksort.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.VueSlicksort={})}(this,function(t){"use strict";var e={inject:["manager"],props:{index:{type:Number,required:!0},collection:{type:[String,Number],default:"default"},disabled:{type:Boolean,default:!1}},mounted:function(){var t=this.$props,e=t.collection,i=t.disabled,n=t.index;i||this.setDraggable(e,n)},watch:{index:function(t){this.$el&&this.$el.sortableInfo&&(this.$el.sortableInfo.index=t)},disabled:function(t){t?this.removeDraggable(this.collection):this.setDraggable(this.collection,this.index)},collection:function(t,e){this.removeDraggable(e),this.setDraggable(t,this.index)}},beforeDestroy:function(){var t=this.collection;this.disabled||this.removeDraggable(t)},methods:{setDraggable:function(t,e){var i=this.$el;i.sortableInfo={index:e,collection:t,manager:this.manager},this.ref={node:i},this.manager.add(t,this.ref)},removeDraggable:function(t){this.manager.remove(t,this.ref)}}},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){s=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},o=function(){function t(){i(this,t),this.refs={}}return n(t,[{key:"add",value:function(t,e){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(e)}},{key:"remove",value:function(t,e){var i=this.getIndex(t,e);-1!==i&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(e){return e.node.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,e){return this.refs[t].indexOf(e)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[t].sort(function(t,e){return t.node.sortableInfo.index-e.node.sortableInfo.index})}}]),t}();function a(t,e,i){var n=t.slice(0);if(i>=n.length)for(var s=i-n.length;1+s--;)n.push(void 0);return n.splice(i,0,n.splice(e,1)[0]),n}var l={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},h=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var t=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function f(t,e){for(;t;){if(e(t))return t;t=t.parentNode}}function d(t,e,i){return i<t?t:i>e?e:i}function u(t){return"px"===t.substr(-2)?parseFloat(t):0}var c={data:function(){return{sorting:!1,sortingIndex:null,manager:new o,events:{start:this.handleStart,move:this.handleMove,end:this.handleEnd}}},props:{value:{type:Array,required:!0},axis:{type:String,default:"y"},distance:{type:Number,default:0},pressDelay:{type:Number,default:0},pressThreshold:{type:Number,default:5},useDragHandle:{type:Boolean,default:!1},useWindowAsScrollContainer:{type:Boolean,default:!1},hideSortableGhost:{type:Boolean,default:!0},lockToContainerEdges:{type:Boolean,default:!1},lockOffset:{type:[String,Number,Array],default:"50%"},transitionDuration:{type:Number,default:300},appendTo:{type:String,default:"body"},draggedSettlingDuration:{type:Number,default:null},lockAxis:String,helperClass:String,contentWindow:Object,shouldCancelStart:{type:Function,default:function(t){return-1!==["input","textarea","select","option","button"].indexOf(t.target.tagName.toLowerCase())}},getHelperDimensions:{type:Function,default:function(t){var e=t.node;return{width:e.offsetWidth,height:e.offsetHeight}}}},provide:function(){return{manager:this.manager}},mounted:function(){var t=this;this.container=this.$el,this.document=this.container.ownerDocument||document,this._window=this.contentWindow||window,this.scrollContainer=this.useWindowAsScrollContainer?this.document.body:this.container;var e=function(e){t.events.hasOwnProperty(e)&&l[e].forEach(function(i){return t.container.addEventListener(i,t.events[e],!1)})};for(var i in this.events)e(i)},beforeDestroy:function(){var t=this,e=function(e){t.events.hasOwnProperty(e)&&l[e].forEach(function(i){return t.container.removeEventListener(i,t.events[e])})};for(var i in this.events)e(i)},methods:{handleStart:function(t){var e=this,i=this.$props,n=i.distance,s=i.shouldCancelStart;if(2===t.button||s(t))return!1;this._touched=!0,this._pos={x:t.pageX,y:t.pageY};var r=f(t.target,function(t){return null!=t.sortableInfo});if(r&&r.sortableInfo&&this.nodeIsChild(r)&&!this.sorting){var o=this.$props.useDragHandle,a=r.sortableInfo,l=a.index,h=a.collection;if(o&&!f(t.target,function(t){return null!=t.sortableHandle}))return;this.manager.active={index:l,collection:h},"a"===t.target.tagName.toLowerCase()&&t.preventDefault(),n||(0===this.$props.pressDelay?this.handlePress(t):this.pressTimer=setTimeout(function(){return e.handlePress(t)},this.$props.pressDelay))}},nodeIsChild:function(t){return t.sortableInfo.manager===this.manager},handleMove:function(t){var e=this.$props,i=e.distance,n=e.pressThreshold;if(!this.sorting&&this._touched){this._delta={x:this._pos.x-t.pageX,y:this._pos.y-t.pageY};var s=Math.abs(this._delta.x)+Math.abs(this._delta.y);i||n&&!(n&&s>=n)?i&&s>=i&&this.manager.isActive()&&this.handlePress(t):(clearTimeout(this.cancelTimer),this.cancelTimer=setTimeout(this.cancel,0))}},handleEnd:function(){var t=this.$props.distance;this._touched=!1,t||this.cancel()},cancel:function(){this.sorting||(clearTimeout(this.pressTimer),this.manager.active=null)},handlePress:function(t){var e,i,n=this,s=this.manager.getActive();if(s){var o=this.$props,a=o.axis,h=o.getHelperDimensions,f=o.helperClass,d=o.hideSortableGhost,c=o.useWindowAsScrollContainer,p=o.appendTo,g=s.node,x=s.collection,y=g.sortableInfo.index,m=(e=g,{top:u((i=window.getComputedStyle(e)).marginTop),right:u(i.marginRight),bottom:u(i.marginBottom),left:u(i.marginLeft)}),v=this.container.getBoundingClientRect(),w=h({index:y,node:g,collection:x});this.node=g,this.margin=m,this.width=w.width,this.height=w.height,this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this.boundingClientRect=g.getBoundingClientRect(),this.containerBoundingRect=v,this.index=y,this.newIndex=y,this._axis={x:a.indexOf("x")>=0,y:a.indexOf("y")>=0},this.offsetEdge=this.getEdgeOffset(g),this.initialOffset=this.getOffset(t),this.initialScroll={top:this.scrollContainer.scrollTop,left:this.scrollContainer.scrollLeft},this.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var b,O=g.querySelectorAll("input, textarea, select"),T=g.cloneNode(!0);if([].concat(r(T.querySelectorAll("input, textarea, select"))).forEach(function(t,e){"file"!==t.type&&O[e]&&(t.value=O[e].value)}),this.helper=this.document.querySelector(p).appendChild(T),this.helper.style.position="fixed",this.helper.style.top=this.boundingClientRect.top-m.top+"px",this.helper.style.left=this.boundingClientRect.left-m.left+"px",this.helper.style.width=this.width+"px",this.helper.style.height=this.height+"px",this.helper.style.boxSizing="border-box",this.helper.style.pointerEvents="none",d&&(this.sortableGhost=g,g.style.visibility="hidden",g.style.opacity=0),this.translate={},this.minTranslate={},this.maxTranslate={},this._axis.x&&(this.minTranslate.x=(c?0:v.left)-this.boundingClientRect.left-this.width/2,this.maxTranslate.x=(c?this._window.innerWidth:v.left+v.width)-this.boundingClientRect.left-this.width/2),this._axis.y&&(this.minTranslate.y=(c?0:v.top)-this.boundingClientRect.top-this.height/2,this.maxTranslate.y=(c?this._window.innerHeight:v.top+v.height)-this.boundingClientRect.top-this.height/2),f)(b=this.helper.classList).add.apply(b,r(f.split(" ")));this.listenerNode=t.touches?g:this._window,l.move.forEach(function(t){return n.listenerNode.addEventListener(t,n.handleSortMove,!1)}),l.end.forEach(function(t){return n.listenerNode.addEventListener(t,n.handleSortEnd,!1)}),this.sorting=!0,this.sortingIndex=y,this.$emit("sort-start",{event:t,node:g,index:y,collection:x})}},handleSortMove:function(t){t.preventDefault(),this.updatePosition(t),this.animateNodes(),this.autoscroll(),this.$emit("sort-move",{event:t})},handleSortEnd:function(t){var e=this,i=this.manager.active.collection;this.listenerNode&&(l.move.forEach(function(t){return e.listenerNode.removeEventListener(t,e.handleSortMove)}),l.end.forEach(function(t){return e.listenerNode.removeEventListener(t,e.handleSortEnd)}));var n=this.manager.refs[i],s=function(){e.helper.parentNode.removeChild(e.helper),e.hideSortableGhost&&e.sortableGhost&&(e.sortableGhost.style.visibility="",e.sortableGhost.style.opacity="");for(var s=0,r=n.length;s<r;s++){var o=n[s],l=o.node;o.edgeOffset=null,l.style[h+"Transform"]="",l.style[h+"TransitionDuration"]=""}clearInterval(e.autoscrollInterval),e.autoscrollInterval=null,e.manager.active=null,e.sorting=!1,e.sortingIndex=null,e.$emit("sort-end",{event:t,oldIndex:e.index,newIndex:e.newIndex,collection:i}),e.$emit("input",a(e.value,e.index,e.newIndex)),e._touched=!1};this.$props.transitionDuration||this.$props.draggedSettlingDuration?this.transitionHelperIntoPlace(n).then(function(){return s()}):s()},transitionHelperIntoPlace:function(t){var e=this;if(0===this.$props.draggedSettlingDuration)return Promise.resolve();var i=this.scrollContainer.scrollLeft-this.initialScroll.left,n=this.scrollContainer.scrollTop-this.initialScroll.top,s=t[this.index].node,r=t[this.newIndex].node,o=-i;this.translate&&this.translate.x>0?o+=r.offsetLeft+r.offsetWidth-(s.offsetLeft+s.offsetWidth):o+=r.offsetLeft-s.offsetLeft;var a=-n;this.translate&&this.translate.y>0?a+=r.offsetTop+r.offsetHeight-(s.offsetTop+s.offsetHeight):a+=r.offsetTop-s.offsetTop;var l=null!==this.$props.draggedSettlingDuration?this.$props.draggedSettlingDuration:this.$props.transitionDuration;return this.helper.style[h+"Transform"]="translate3d("+o+"px,"+a+"px, 0)",this.helper.style[h+"TransitionDuration"]=l+"ms",new Promise(function(t){var i=function(i){i&&"transform"!==i.propertyName||(clearTimeout(n),e.helper.style[h+"Transform"]="",e.helper.style[h+"TransitionDuration"]="",t())},n=setTimeout(i,l+10);e.helper.addEventListener("transitionend",i,!1)})},getEdgeOffset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(t){var i={top:e.top+t.offsetTop,left:e.left+t.offsetLeft};return t.parentNode!==this.container?this.getEdgeOffset(t.parentNode,i):i}},getOffset:function(t){return{x:t.touches?t.touches[0].pageX:t.pageX,y:t.touches?t.touches[0].pageY:t.pageY}},getLockPixelOffsets:function(){var t=this.$props.lockOffset;if(Array.isArray(this.lockOffset)||(t=[t,t]),2!==t.length)throw new Error("lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given "+t);var e=s(t,2),i=e[0],n=e[1];return[this.getLockPixelOffset(i),this.getLockPixelOffset(n)]},getLockPixelOffset:function(t){var e=t,i=t,n="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);if(null===s)throw new Error('lockOffset value should be a number or a string of a number followed by "px" or "%". Given '+t);e=i=parseFloat(t),n=s[1]}if(!isFinite(e)||!isFinite(i))throw new Error("lockOffset value should be a finite. Given "+t);return"%"===n&&(e=e*this.width/100,i=i*this.height/100),{x:e,y:i}},updatePosition:function(t){var e=this.$props,i=e.lockAxis,n=e.lockToContainerEdges,r=this.getOffset(t),o={x:r.x-this.initialOffset.x,y:r.y-this.initialOffset.y};if(o.y-=window.pageYOffset-this.initialWindowScroll.top,o.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=o,n){var a=this.getLockPixelOffsets(),l=s(a,2),f=l[0],u=l[1],c=this.width/2-f.x,p=this.height/2-f.y,g=this.width/2-u.x,x=this.height/2-u.y;o.x=d(this.minTranslate.x+c,this.maxTranslate.x-g,o.x),o.y=d(this.minTranslate.y+p,this.maxTranslate.y-x,o.y)}"x"===i?o.y=0:"y"===i&&(o.x=0),this.helper.style[h+"Transform"]="translate3d("+o.x+"px,"+o.y+"px, 0)"},animateNodes:function(){var t=this.$props,e=t.transitionDuration,i=t.hideSortableGhost,n=this.manager.getOrderedRefs(),s=this.scrollContainer.scrollLeft-this.initialScroll.left,r=this.scrollContainer.scrollTop-this.initialScroll.top,o=this.offsetEdge.left+this.translate.x+s,a=this.offsetEdge.top+this.translate.y+r,l=window.pageYOffset-this.initialWindowScroll.top,f=window.pageXOffset-this.initialWindowScroll.left;this.newIndex=null;for(var d=0,u=n.length;d<u;d++){var c=n[d].node,p=c.sortableInfo.index,g=c.offsetWidth,x=c.offsetHeight,y=this.width>g?g/2:this.width/2,m=this.height>x?x/2:this.height/2,v={x:0,y:0},w=n[d].edgeOffset;w||(n[d].edgeOffset=w=this.getEdgeOffset(c));var b=d<n.length-1&&n[d+1],O=d>0&&n[d-1];b&&!b.edgeOffset&&(b.edgeOffset=this.getEdgeOffset(b.node)),p!==this.index?(e&&(c.style[h+"TransitionDuration"]=e+"ms"),this._axis.x?this._axis.y?p<this.index&&(o+f-y<=w.left&&a+l<=w.top+m||a+l+m<=w.top)?(v.x=this.width+this.marginOffset.x,w.left+v.x>this.containerBoundingRect.width-y&&(v.x=b.edgeOffset.left-w.left,v.y=b.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=p)):p>this.index&&(o+f+y>=w.left&&a+l+m>=w.top||a+l+m>=w.top+x)&&(v.x=-(this.width+this.marginOffset.x),w.left+v.x<this.containerBoundingRect.left+y&&(v.x=O.edgeOffset.left-w.left,v.y=O.edgeOffset.top-w.top),this.newIndex=p):p>this.index&&o+f+y>=w.left?(v.x=-(this.width+this.marginOffset.x),this.newIndex=p):p<this.index&&o+f<=w.left+y&&(v.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=p)):this._axis.y&&(p>this.index&&a+l+m>=w.top?(v.y=-(this.height+this.marginOffset.y),this.newIndex=p):p<this.index&&a+l<=w.top+m&&(v.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=p))),c.style[h+"Transform"]="translate3d("+v.x+"px,"+v.y+"px,0)"):i&&(this.sortableGhost=c,c.style.visibility="hidden",c.style.opacity=0)}null==this.newIndex&&(this.newIndex=this.index)},autoscroll:function(){var t=this,e=this.translate,i={x:0,y:0},n={x:1,y:1},s=10,r=10;e.y>=this.maxTranslate.y-this.height/2?(i.y=1,n.y=r*Math.abs((this.maxTranslate.y-this.height/2-e.y)/this.height)):e.x>=this.maxTranslate.x-this.width/2?(i.x=1,n.x=s*Math.abs((this.maxTranslate.x-this.width/2-e.x)/this.width)):e.y<=this.minTranslate.y+this.height/2?(i.y=-1,n.y=r*Math.abs((e.y-this.height/2-this.minTranslate.y)/this.height)):e.x<=this.minTranslate.x+this.width/2&&(i.x=-1,n.x=s*Math.abs((e.x-this.width/2-this.minTranslate.x)/this.width)),this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null,this.isAutoScrolling=!1),0===i.x&&0===i.y||(this.autoscrollInterval=setInterval(function(){t.isAutoScrolling=!0;var e=1*n.x*i.x,s=1*n.y*i.y;t.scrollContainer.scrollTop+=s,t.scrollContainer.scrollLeft+=e,t.translate.x+=e,t.translate.y+=s,t.animateNodes()},5))}}},p={name:"slick-list",mixins:[c],render:function(t){return t("div",this.$slots.default)}},g={name:"slick-item",mixins:[e],render:function(t){return t("div",this.$slots.default)}};t.ElementMixin=e,t.ContainerMixin=c,t.HandleDirective={bind:function(t){t.sortableHandle=!0}},t.SlickList=p,t.SlickItem=g,t.arrayMove=a,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vue-slicksort.min.js.map