%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/suporte.iigd.com.br/public/lib/
Upload File :
Create Path :
Current File : /var/www/projetos/suporte.iigd.com.br/public/lib/sortable.min.js

(()=>{var e={30:(e,t,r)=>{var n;!(n=function(){"use strict";function e(e,t,r){if(r===undefined){return e&&e.h5s&&e.h5s.data&&e.h5s.data[t]}else{e.h5s=e.h5s||{};e.h5s.data=e.h5s.data||{};e.h5s.data[t]=r}}function t(e){if(e.h5s){delete e.h5s.data}}var r=function(e,t){if(!(e instanceof NodeList||e instanceof HTMLCollection||e instanceof Array)){throw new Error("You must provide a nodeList/HTMLCollection/Array of elements to be filtered.")}if(typeof t!=="string"){return Array.from(e)}return Array.from(e).filter((function(e){return e.nodeType===1&&e.matches(t)}))};var n=new Map;var a=function(){function e(){this._config=new Map;this._placeholder=undefined;this._data=new Map}Object.defineProperty(e.prototype,"config",{get:function(){var e={};this._config.forEach((function(t,r){e[r]=t}));return e},set:function(e){if(typeof e!=="object"){throw new Error("You must provide a valid configuration object to the config setter.")}var t=Object.assign({},e);this._config=new Map(Object.entries(t))},enumerable:false,configurable:true});e.prototype.setConfig=function(e,t){if(!this._config.has(e)){throw new Error("Trying to set invalid configuration item: "+e)}this._config.set(e,t)};e.prototype.getConfig=function(e){if(!this._config.has(e)){throw new Error("Invalid configuration item requested: "+e)}return this._config.get(e)};Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(!(e instanceof HTMLElement)&&e!==null){throw new Error("A placeholder must be an html element or null.")}this._placeholder=e},enumerable:false,configurable:true});e.prototype.setData=function(e,t){if(typeof e!=="string"){throw new Error("The key must be a string.")}this._data.set(e,t)};e.prototype.getData=function(e){if(typeof e!=="string"){throw new Error("The key must be a string.")}return this._data.get(e)};e.prototype.deleteData=function(e){if(typeof e!=="string"){throw new Error("The key must be a string.")}return this._data.delete(e)};return e}();var o=function(e){if(!(e instanceof HTMLElement)){throw new Error("Please provide a sortable to the store function.")}if(!n.has(e)){n.set(e,new a)}return n.get(e)};function i(e,t,r){if(e instanceof Array){for(var n=0;n<e.length;++n){i(e[n],t,r)}return}e.addEventListener(t,r);o(e).setData("event"+t,r)}function l(e,t){if(e instanceof Array){for(var r=0;r<e.length;++r){l(e[r],t)}return}e.removeEventListener(t,o(e).getData("event"+t));o(e).deleteData("event"+t)}function s(e,t,r){if(e instanceof Array){for(var n=0;n<e.length;++n){s(e[n],t,r)}return}e.setAttribute(t,r)}function f(e,t){if(e instanceof Array){for(var r=0;r<e.length;++r){f(e[r],t)}return}e.removeAttribute(t)}var d=function(e){if(!e.parentElement||e.getClientRects().length===0){throw new Error("target element must be part of the dom")}var t=e.getClientRects()[0];return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}};var u=function(e,t){if(t===void 0){t=0}var r;return function(){var n=[];for(var a=0;a<arguments.length;a++){n[a]=arguments[a]}clearTimeout(r);r=setTimeout((function(){e.apply(void 0,n)}),t)}};var c=function(e,t){if(!(e instanceof HTMLElement)||!(t instanceof NodeList||t instanceof HTMLCollection||t instanceof Array)){throw new Error("You must provide an element and a list of elements.")}return Array.from(t).indexOf(e)};var p=function(e){if(!(e instanceof HTMLElement)){throw new Error("Element is not a node element.")}return e.parentNode!==null};var m=function(e,t,r){if(!(e instanceof HTMLElement)||!(e.parentElement instanceof HTMLElement)){throw new Error("target and element must be a node")}e.parentElement.insertBefore(t,r==="before"?e:e.nextElementSibling)};var v=function(e,t){return m(e,t,"before")};var g=function(e,t){return m(e,t,"after")};var h=function(t,n,a){if(n===void 0){n=function(e,t){return e}}if(a===void 0){a=function(e){return e}}if(!(t instanceof HTMLElement)||!t.isSortable===true){throw new Error("You need to provide a sortableContainer to be serialized.")}if(typeof n!=="function"||typeof a!=="function"){throw new Error("You need to provide a valid serializer for items and the container.")}var o=e(t,"opts");var i=o.items;var l=r(t.children,i);var s=l.map((function(e){return{parent:t,node:e,html:e.outerHTML,index:c(e,l)}}));var f={node:t,itemCount:s.length};return{container:a(f),items:s.map((function(e){return n(e,t)}))}};var y=function(e,t,r){var n;if(r===void 0){r="sortable-placeholder"}if(!(e instanceof HTMLElement)){throw new Error("You must provide a valid element as a sortable.")}if(!(t instanceof HTMLElement)&&t!==undefined){throw new Error("You must provide a valid element as a placeholder or set ot to undefined.")}if(t===undefined){if(["UL","OL"].includes(e.tagName)){t=document.createElement("li")}else if(["TABLE","TBODY"].includes(e.tagName)){t=document.createElement("tr");t.innerHTML='<td colspan="100"></td>'}else{t=document.createElement("div")}}if(typeof r==="string"){(n=t.classList).add.apply(n,r.split(" "))}return t};var w=function(e){if(!(e instanceof HTMLElement)){throw new Error("You must provide a valid dom element")}var t=window.getComputedStyle(e);if(t.getPropertyValue("box-sizing")==="border-box"){return parseInt(t.getPropertyValue("height"),10)}return["height","padding-top","padding-bottom"].map((function(e){var r=parseInt(t.getPropertyValue(e),10);return isNaN(r)?0:r})).reduce((function(e,t){return e+t}))};var E=function(e){if(!(e instanceof HTMLElement)){throw new Error("You must provide a valid dom element")}var t=window.getComputedStyle(e);return["width","padding-left","padding-right"].map((function(e){var r=parseInt(t.getPropertyValue(e),10);return isNaN(r)?0:r})).reduce((function(e,t){return e+t}))};var b=function(e,t){if(!(e instanceof Array)){throw new Error("You must provide a Array of HTMLElements to be filtered.")}if(typeof t!=="string"){return e}return e.filter((function(e){return e.querySelector(t)instanceof HTMLElement||e.shadowRoot&&e.shadowRoot.querySelector(t)instanceof HTMLElement})).map((function(e){return e.querySelector(t)||e.shadowRoot&&e.shadowRoot.querySelector(t)}))};var T=function(e){return e.composedPath&&e.composedPath()[0]||e.target};var C=function(e,t,r){return{element:e,posX:r.pageX-t.left,posY:r.pageY-t.top}};var L=function(e,t,r){if(!(e instanceof Event)){throw new Error("setDragImage requires a DragEvent as the first argument.")}if(!(t instanceof HTMLElement)){throw new Error("setDragImage requires the dragged element as the second argument.")}if(!r){r=C}if(e.dataTransfer&&e.dataTransfer.setDragImage){var n=d(t);var a=r(t,n,e);if(!(a.element instanceof HTMLElement)||typeof a.posX!=="number"||typeof a.posY!=="number"){throw new Error("The customDragImage function you provided must return and object with the properties element[string], posX[integer], posY[integer].")}e.dataTransfer.effectAllowed="copyMove";e.dataTransfer.setData("text/plain",T(e).id);e.dataTransfer.setDragImage(a.element,a.posX,a.posY)}};var x=function(e,t){if(e.isSortable===true){var r=o(e).getConfig("acceptFrom");if(r!==null&&r!==false&&typeof r!=="string"){throw new Error('HTML5Sortable: Wrong argument, "acceptFrom" must be "null", "false", or a valid selector string.')}if(r!==null){return r!==false&&r.split(",").filter((function(e){return e.length>0&&t.matches(e)})).length>0}if(e===t){return true}if(o(e).getConfig("connectWith")!==undefined&&o(e).getConfig("connectWith")!==null){return o(e).getConfig("connectWith")===o(t).getConfig("connectWith")}}return false};var D={items:null,connectWith:null,disableIEFix:null,acceptFrom:null,copy:false,placeholder:null,placeholderClass:"sortable-placeholder",draggingClass:"sortable-dragging",hoverClass:false,dropTargetContainerClass:false,debounce:0,throttleTime:100,maxItems:0,itemSerializer:undefined,containerSerializer:undefined,customDragImage:null,orientation:"vertical"};function M(e,t){var r=this;if(t===void 0){t=250}if(typeof e!=="function"){throw new Error("You must provide a function as the first argument for throttle.")}if(typeof t!=="number"){throw new Error("You must provide a number as the second argument for throttle.")}var n=null;return function(){var a=[];for(var o=0;o<arguments.length;o++){a[o]=arguments[o]}var i=Date.now();if(n===null||i-n>=t){n=i;e.apply(r,a)}}}var H=function(e,t){if(typeof o(e).getConfig("hoverClass")==="string"){var n=o(e).getConfig("hoverClass").split(" ");if(t===true){i(e,"mousemove",M((function(t){if(t.buttons===0){r(e.children,o(e).getConfig("items")).forEach((function(e){var r,a;if(e===t.target||e.contains(t.target)){(r=e.classList).add.apply(r,n)}else{(a=e.classList).remove.apply(a,n)}}))}}),o(e).getConfig("throttleTime")));i(e,"mouseleave",(function(){r(e.children,o(e).getConfig("items")).forEach((function(e){var t;(t=e.classList).remove.apply(t,n)}))}))}else{l(e,"mousemove");l(e,"mouseleave")}}};var I;var A;var S;var Y;var _;var O;var P;var z;var W;var N=function(e){l(e,"dragstart");l(e,"dragend");l(e,"dragover");l(e,"dragenter");l(e,"drop");l(e,"mouseenter");l(e,"mouseleave")};var j=function(e,t){if(e){l(e,"dragleave")}if(t&&t!==e){l(t,"dragleave")}};var F=function(e,t){var r=e;if(o(t).getConfig("copy")===true){r=e.cloneNode(true);s(r,"aria-copied","true");e.parentElement.appendChild(r);r.style.display="none";r.oldDisplay=e.style.display}return r};var q=function(e){t(e);f(e,"aria-dropeffect")};var R=function(e){f(e,"aria-grabbed");f(e,"aria-copied");f(e,"draggable");f(e,"role")};function X(e,t){if(t.composedPath){return t.composedPath().find((function(e){return e.isSortable}))}while(e.isSortable!==true){e=e.parentElement}return e}function B(t,n){var a=e(t,"opts");var o=r(t.children,a.items);var i=o.filter((function(e){return e.contains(n)||e.shadowRoot&&e.shadowRoot.contains(n)}));return i.length>0?i[0]:n}var k=function(t){var n=e(t,"opts")||{};var a=r(t.children,n.items);var o=b(a,n.handle);H(t,false);l(t,"dragover");l(t,"dragenter");l(t,"dragstart");l(t,"dragend");l(t,"drop");q(t);l(o,"mousedown");N(a);R(a);j(Y,z);t.isSortable=false};var U=function(t){var n=e(t,"opts");var a=r(t.children,n.items);var o=b(a,n.handle);s(t,"aria-dropeffect","move");e(t,"_disabled","false");s(o,"draggable","true");H(t,true);if(n.disableIEFix===false){var l=(document||window.document).createElement("span");if(typeof l.dragDrop==="function"){i(o,"mousedown",(function(){if(a.indexOf(this)!==-1){this.dragDrop()}else{var e=this.parentElement;while(a.indexOf(e)===-1){e=e.parentElement}e.dragDrop()}}))}}};var V=function(t){var n=e(t,"opts");var a=r(t.children,n.items);var o=b(a,n.handle);s(t,"aria-dropeffect","none");e(t,"_disabled","true");s(o,"draggable","false");l(o,"mousedown");H(t,false)};var G=function(t){var n=e(t,"opts");var a=r(t.children,n.items);var o=b(a,n.handle);e(t,"_disabled","false");N(a);j(Y,z);l(o,"mousedown");l(t,"dragover");l(t,"dragenter");l(t,"drop")};function J(t,a){var l=String(a);a=a||{};if(typeof t==="string"){t=document.querySelectorAll(t)}if(t instanceof HTMLElement){t=[t]}t=Array.prototype.slice.call(t);if(/serialize/.test(l)){return t.map((function(t){var r=e(t,"opts");return h(t,r.itemSerializer,r.containerSerializer)}))}t.forEach((function(t){if(/enable|disable|destroy/.test(l)){return J[l](t)}["connectWith","disableIEFix"].forEach((function(e){if(Object.prototype.hasOwnProperty.call(a,e)&&a[e]!==null){console.warn('HTML5Sortable: You are using the deprecated configuration "'+e+'". This will be removed in an upcoming version, make sure to migrate to the new options when updating.')}}));a=Object.assign({},D,o(t).config,a);o(t).config=a;e(t,"opts",a);t.isSortable=true;G(t);var f=r(t.children,a.items);var m;if(a.placeholder!==null&&a.placeholder!==undefined){var h=document.createElement(t.tagName);if(a.placeholder instanceof HTMLElement){h.appendChild(a.placeholder)}else{h.innerHTML=a.placeholder}m=h.children[0]}o(t).placeholder=y(t,m,a.placeholderClass);e(t,"items",a.items);if(a.acceptFrom){e(t,"acceptFrom",a.acceptFrom)}else if(a.connectWith){e(t,"connectWith",a.connectWith)}U(t);s(f,"role","option");s(f,"aria-grabbed","false");i(t,"dragstart",(function(e){var t=T(e);if(t.isSortable===true){return}e.stopImmediatePropagation();if(a.handle&&!t.matches(a.handle)||t.getAttribute("draggable")==="false"){return}var n=X(t,e);var o=B(n,t);P=r(n.children,a.items);_=P.indexOf(o);O=c(o,n.children);Y=n;L(e,o,a.customDragImage);A=w(o);S=E(o);o.classList.add(a.draggingClass);I=F(o,n);s(I,"aria-grabbed","true");n.dispatchEvent(new CustomEvent("sortstart",{detail:{origin:{elementIndex:O,index:_,container:Y},item:I,originalTarget:t}}))}));i(t,"dragenter",(function(n){var l=T(n);var s=X(l,n);if(s&&s!==z){W=r(s.children,e(s,"items")).filter((function(e){return e!==o(t).placeholder}));if(a.dropTargetContainerClass){s.classList.add(a.dropTargetContainerClass)}s.dispatchEvent(new CustomEvent("sortenter",{detail:{origin:{elementIndex:O,index:_,container:Y},destination:{container:s,itemsBeforeUpdate:W},item:I,originalTarget:l}}));i(s,"dragleave",(function(e){var t=e.relatedTarget||e.fromElement;if(!e.currentTarget.contains(t)){if(a.dropTargetContainerClass){s.classList.remove(a.dropTargetContainerClass)}s.dispatchEvent(new CustomEvent("sortleave",{detail:{origin:{elementIndex:O,index:_,container:s},item:I,originalTarget:l}}))}}))}z=s}));i(t,"dragend",(function(r){if(!I){return}I.classList.remove(a.draggingClass);s(I,"aria-grabbed","false");if(I.getAttribute("aria-copied")==="true"&&e(I,"dropped")!=="true"){I.remove()}if(I.oldDisplay!==undefined){I.style.display=I.oldDisplay;delete I.oldDisplay}var o=Array.from(n.values()).map((function(e){return e.placeholder})).filter((function(e){return e instanceof HTMLElement})).filter(p)[0];if(o){o.remove()}t.dispatchEvent(new CustomEvent("sortstop",{detail:{origin:{elementIndex:O,index:_,container:Y},item:I}}));z=null;I=null;A=null;S=null}));i(t,"drop",(function(i){if(!x(t,I.parentElement)){return}i.preventDefault();i.stopPropagation();e(I,"dropped","true");var l=Array.from(n.values()).map((function(e){return e.placeholder})).filter((function(e){return e instanceof HTMLElement})).filter(p)[0];if(l){l.replaceWith(I);if(I.oldDisplay!==undefined){I.style.display=I.oldDisplay;delete I.oldDisplay}}else{e(I,"dropped","false");return}t.dispatchEvent(new CustomEvent("sortstop",{detail:{origin:{elementIndex:O,index:_,container:Y},item:I}}));var s=o(t).placeholder;var f=r(Y.children,a.items).filter((function(e){return e!==s}));var d=this.isSortable===true?this:this.parentElement;var u=r(d.children,e(d,"items")).filter((function(e){return e!==s}));var m=c(I,Array.from(I.parentElement.children).filter((function(e){return e!==s})));var v=c(I,u);if(a.dropTargetContainerClass){d.classList.remove(a.dropTargetContainerClass)}if(O!==m||Y!==d){t.dispatchEvent(new CustomEvent("sortupdate",{detail:{origin:{elementIndex:O,index:_,container:Y,itemsBeforeUpdate:P,items:f},destination:{index:v,elementIndex:m,container:d,itemsBeforeUpdate:W,items:u},item:I}}))}}));var b=u((function(e,t,i,l){if(!I){return}if(a.forcePlaceholderSize){o(e).placeholder.style.height=A+"px";o(e).placeholder.style.width=S+"px"}if(Array.from(e.children).indexOf(t)>-1){var s=w(t);var f=E(t);var u=c(o(e).placeholder,t.parentElement.children);var p=c(t,t.parentElement.children);if(s>A||f>S){var m=s-A;var h=f-S;var y=d(t).top;var b=d(t).left;if(u<p&&(a.orientation==="vertical"&&l<y||a.orientation==="horizontal"&&i<b)){return}if(u>p&&(a.orientation==="vertical"&&l>y+s-m||a.orientation==="horizontal"&&i>b+f-h)){return}}if(I.oldDisplay===undefined){I.oldDisplay=I.style.display}if(I.style.display!=="none"){I.style.display="none"}var T=false;try{var C=d(t).top+t.offsetHeight/2;var L=d(t).left+t.offsetWidth/2;T=a.orientation==="vertical"&&l>=C||a.orientation==="horizontal"&&i>=L}catch(e){T=u<p}if(T){g(t,o(e).placeholder)}else{v(t,o(e).placeholder)}Array.from(n.values()).filter((function(e){return e.placeholder!==undefined})).forEach((function(t){if(t.placeholder!==o(e).placeholder){t.placeholder.remove()}}))}else{var x=Array.from(n.values()).filter((function(e){return e.placeholder!==undefined})).map((function(e){return e.placeholder}));if(x.indexOf(t)===-1&&e===t&&!r(t.children,a.items).length){x.forEach((function(e){return e.remove()}));t.appendChild(o(e).placeholder)}}}),a.debounce);var C=function(t){var n=t.target;var a=n.isSortable===true?n:X(n,t);n=B(a,n);if(!I||!x(a,I.parentElement)||e(a,"_disabled")==="true"){return}var i=e(a,"opts");if(parseInt(i.maxItems)&&r(a.children,e(a,"items")).length>parseInt(i.maxItems)&&I.parentElement!==a){return}t.preventDefault();t.stopPropagation();t.dataTransfer.dropEffect=o(a).getConfig("copy")===true?"copy":"move";b(a,n,t.pageX,t.pageY)};i(f.concat(t),"dragover",C);i(f.concat(t),"dragenter",C)}));return t}J.destroy=function(e){k(e)};J.enable=function(e){U(e)};J.disable=function(e){V(e)};J.__testing={data:e,removeItemEvents:N,removeItemData:R,removeSortableData:q,removeContainerEvents:j};return J}.call(t,r,t,e),n!==undefined&&(e.exports=n))}};var t={};function r(n){var a=t[n];if(a!==undefined){return a.exports}var o=t[n]={exports:{}};e[n](o,o.exports,r);return o.exports}var n={};
/**
 * ---------------------------------------------------------------------
 *
 * GLPI - Gestionnaire Libre de Parc Informatique
 *
 * http://glpi-project.org
 *
 * @copyright 2015-2024 Teclib' and contributors.
 * @copyright 2003-2014 by the INDEPNET Development Team.
 * @licence   https://www.gnu.org/licenses/gpl-3.0.html
 *
 * ---------------------------------------------------------------------
 *
 * LICENSE
 *
 * This file is part of GLPI.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * ---------------------------------------------------------------------
 */window.sortable=r(30)})();

Zerion Mini Shell 1.0