%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/jquery.rateit.min.js

(()=>{var e={73:()=>{
/*! RateIt | v1.1.5 / 03/10/2021
    https://github.com/gjunge/rateit.js | Twitter: @gjunge
*/
(function(e){e.rateit={aria:{resetLabel:"reset rating",ratingLabel:"rating"}};e.fn.rateit=function(a,i){var r=1;var n={};var s="init";var l=function(e){return e.charAt(0).toUpperCase()+e.substr(1)};if(this.length===0){return this}var d=typeof a;if(d=="object"||a===undefined||a===null){n=e.extend({},e.fn.rateit.defaults,a)}else if(d=="string"&&a!=="reset"&&i===undefined){return this.data("rateit"+l(a))}else if(d=="string"){s="setvalue"}return this.each((function(){var d=e(this);var o=function(e,t){if(t!=null){var a="aria-value"+(e=="value"?"now":e);var i=d.find(".rateit-range");if(i.attr(a)!=undefined){i.attr(a,t)}}arguments[0]="rateit"+l(e);return d.data.apply(d,arguments)};if(a=="reset"){var f=o("init");for(var u in f){d.data(u,f[u])}if(o("backingfld")){var v=e(o("backingfld"));if(v[0].nodeName=="SELECT"&&v[0].getAttribute("data-rateit-valuesrc")==="index"){v.prop("selectedIndex",o("value"))}else{v.val(o("value"))}v.trigger("change");if(v[0].min){v[0].min=o("min")}if(v[0].max){v[0].max=o("max")}if(v[0].step){v[0].step=o("step")}}d.trigger("reset")}if(!d.hasClass("rateit")){d.addClass("rateit")}var m=d.css("direction")!="rtl";if(s=="setvalue"){if(!o("init")){throw"Can't set value before init"}if(a=="readonly"&&i==true&&!o("readonly")){d.find(".rateit-range").off();o("wired",false)}if(a=="value"){i=i==null?o("min"):Math.max(o("min"),Math.min(o("max"),i))}if(o("backingfld")){var v=e(o("backingfld"));if(v[0].nodeName=="SELECT"&&v[0].getAttribute("data-rateit-valuesrc")==="index"){if(a=="value"){v.prop("selectedIndex",i)}}else{if(a=="value"){v.val(i)}}if(a=="min"&&v[0].min){v[0].min=i}if(a=="max"&&v[0].max){v[0].max=i}if(a=="step"&&v[0].step){v[0].step=i}}o(a,i)}if(!o("init")){o("mode",o("mode")||n.mode);o("icon",o("icon")||n.icon);o("min",isNaN(o("min"))?n.min:o("min"));o("max",isNaN(o("max"))?n.max:o("max"));o("step",o("step")||n.step);o("readonly",o("readonly")!==undefined?o("readonly"):n.readonly);o("resetable",o("resetable")!==undefined?o("resetable"):n.resetable);o("backingfld",o("backingfld")||n.backingfld);o("starwidth",o("starwidth")||n.starwidth);o("starheight",o("starheight")||n.starheight);o("value",Math.max(o("min"),Math.min(o("max"),!isNaN(o("value"))?o("value"):!isNaN(n.value)?n.value:n.min)));o("ispreset",o("ispreset")!==undefined?o("ispreset"):n.ispreset);if(o("backingfld")){var v=e(o("backingfld")).hide();if(v.attr("disabled")||v.attr("readonly")){o("readonly",true)}if(v[0].nodeName=="INPUT"){if(v[0].type=="range"||v[0].type=="text"){o("min",parseInt(v.attr("min"))||o("min"));o("max",parseInt(v.attr("max"))||o("max"));o("step",parseInt(v.attr("step"))||o("step"))}}if(v[0].nodeName=="SELECT"&&v[0].options.length>1){if(v[0].getAttribute("data-rateit-valuesrc")==="index"){o("min",!isNaN(o("min"))?o("min"):Number(v[0].options[0].index));o("max",Number(v[0].options[v[0].length-1].index));o("step",Number(v[0].options[1].index)-Number(v[0].options[0].index))}else{o("min",!isNaN(o("min"))?o("min"):Number(v[0].options[0].value));o("max",Number(v[0].options[v[0].length-1].value));o("step",Number(v[0].options[1].value)-Number(v[0].options[0].value))}var h=v.find("option[selected]");if(h.length==1){if(v[0].getAttribute("data-rateit-valuesrc")==="index"){o("value",h[0].index)}else{o("value",h.val())}}}else{o("value",v.val())}}var c=d[0].nodeName=="DIV"?"div":"span";r++;var g='<button id="rateit-reset-{{index}}" type="button" data-role="none" class="rateit-reset" aria-label="'+e.rateit.aria.resetLabel+'" aria-controls="rateit-range-{{index}}"><span></span></button><{{element}} id="rateit-range-{{index}}" class="rateit-range"'+(o("readonly")==true?"":' tabindex="0"')+' role="slider" aria-label="'+e.rateit.aria.ratingLabel+'" aria-owns="rateit-reset-{{index}}" aria-valuemin="'+o("min")+'" aria-valuemax="'+o("max")+'" aria-valuenow="'+o("value")+'"><{{element}} class="rateit-empty"></{{element}}><{{element}} class="rateit-selected"></{{element}}><{{element}} class="rateit-hover"></{{element}}></{{element}}>';d.append(g.replace(/{{index}}/gi,r).replace(/{{element}}/gi,c));if(!m){d.find(".rateit-reset").css("float","right");d.find(".rateit-selected").addClass("rateit-selected-rtl");d.find(".rateit-hover").addClass("rateit-hover-rtl")}if(o("mode")=="font"){d.addClass("rateit-font").removeClass("rateit-bg")}else{d.addClass("rateit-bg").removeClass("rateit-font")}o("init",JSON.parse(JSON.stringify(d.data())))}var p=o("mode")=="font";if(!p){d.find(".rateit-selected, .rateit-hover").height(o("starheight"))}var b=d.find(".rateit-range");if(p){var x=o("icon");var w=o("max")-o("min");var y="";for(var N=0;N<w;N++){y+=x}b.find("> *").text(y);o("starwidth",b.width()/(o("max")-o("min")))}else{b.width(o("starwidth")*(o("max")-o("min"))).height(o("starheight"))}var C="rateit-preset"+(m?"":"-rtl");if(o("ispreset")){d.find(".rateit-selected").addClass(C)}else{d.find(".rateit-selected").removeClass(C)}if(o("value")!=null){var k=(o("value")-o("min"))*o("starwidth");d.find(".rateit-selected").width(k)}var E=d.find(".rateit-reset");if(E.data("wired")!==true){E.on("click",(function(t){t.preventDefault();E.trigger("blur");var a=e.Event("beforereset");d.trigger(a);if(a.isDefaultPrevented()){return false}d.rateit("value",null);d.trigger("reset")})).data("wired",true)}var M=function(t,a){var i=a.changedTouches?a.changedTouches[0].pageX:a.pageX;var r=i-e(t).offset().left;if(!m){r=b.width()-r}if(r>b.width()){r=b.width()}if(r<0){r=0}return k=Math.ceil(r/o("starwidth")*(1/o("step")))};var S=function(e){var t=e*o("starwidth")*o("step");var a=b.find(".rateit-hover");if(a.data("width")!=t){b.find(".rateit-selected").hide();a.width(t).show().data("width",t);var i=[e*o("step")+o("min")];d.trigger("hover",i).trigger("over",i)}};var T=function(t){var a=e.Event("beforerated");d.trigger(a,[t]);if(a.isDefaultPrevented()){return false}o("value",t);if(o("backingfld")){if(v[0].nodeName=="SELECT"&&v[0].getAttribute("data-rateit-valuesrc")==="index"){e(o("backingfld")).prop("selectedIndex",t).trigger("change")}else{e(o("backingfld")).val(t).trigger("change")}}if(o("ispreset")){b.find(".rateit-selected").removeClass(C);o("ispreset",false)}b.find(".rateit-hover").hide();b.find(".rateit-selected").width(t*o("starwidth")-o("min")*o("starwidth")).show();d.trigger("hover",[null]).trigger("over",[null]).trigger("rated",[t]);return true};if(!o("readonly")){if(!o("resetable")){E.hide()}if(!o("wired")){b.on("touchmove touchend",t);b.on("mousemove",(function(e){var t=M(this,e);S(t)}));b.on("mouseleave",(function(e){b.find(".rateit-hover").hide().width(0).data("width","");d.trigger("hover",[null]).trigger("over",[null]);b.find(".rateit-selected").show()}));b.on("mouseup",(function(e){var t=M(this,e);var a=t*o("step")+o("min");T(a);b.trigger("blur")}));b.on("keyup",(function(e){if(e.which==38||e.which==(m?39:37)){T(Math.min(o("value")+o("step"),o("max")))}if(e.which==40||e.which==(m?37:39)){T(Math.max(o("value")-o("step"),o("min")))}}));o("wired",true)}if(o("resetable")){E.show()}}else{E.hide()}b.attr("aria-readonly",o("readonly"))}))};function t(e){var t=e.originalEvent.changedTouches,a=t[0],i="";switch(e.type){case"touchmove":i="mousemove";break;case"touchend":i="mouseup";break;default:return}var r=document.createEvent("MouseEvent");r.initMouseEvent(i,true,true,window,1,a.screenX,a.screenY,a.clientX,a.clientY,false,false,false,false,0,null);a.target.dispatchEvent(r);e.preventDefault()}e.fn.rateit.defaults={min:0,max:5,step:.5,mode:"bg",icon:"★",starwidth:16,starheight:16,readonly:false,resetable:true,ispreset:false};e((function(){e("div.rateit, span.rateit").rateit()}))})(jQuery)},74:(e,t,a)=>{"use strict";a.r(t)}};var t={};function a(i){var r=t[i];if(r!==undefined){return r.exports}var n=t[i]={exports:{}};e[i](n,n.exports,a);return n.exports}(()=>{a.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();var i={};
/**
 * ---------------------------------------------------------------------
 *
 * 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/>.
 *
 * ---------------------------------------------------------------------
 */a(73);a(74)})();

Zerion Mini Shell 1.0