Current File : /home/kjohakhy/https:/airworldmechanical.net/sms//jquery.ui.effect.min.js
/* jQuery UI Effects - http://jqueryui.com * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */
(function(d){"function"===typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],d):d(jQuery)})(function(d){d.effects={effect:{}};(function(){function u(b){return b.replace(/-([\da-z])/gi,function(c,e){return e.toUpperCase()})}function g(b){var c=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,e={};if(c&&c.length&&c[0]&&c[c[0]])for(b=c.length;b--;){var f=c[b];"string"===typeof c[f]&&(e[u(f)]=
c[f])}else for(f in c)"string"===typeof c[f]&&(e[f]=c[f]);return e}var q=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};d.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){d.fx.step[c]=function(e){if("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)jQuery.style(e.elem,c,e.end),e.setAttr=!0}});d.fn.addBack||(d.fn.addBack=function(b){return this.add(null==b?this.prevObject:
this.prevObject.filter(b))});d.effects.animateClass=function(b,c,e,f){var h=d.speed(c,e,f);return this.queue(function(){var k=d(this),n=k.attr("class")||"",r=h.children?k.find("*").addBack():k;r=r.map(function(){return{el:d(this),start:g(this)}});var v=function(){d.each(q,function(t,l){if(b[l])k[l+"Class"](b[l])})};v();r=r.map(function(){this.end=g(this.el[0]);var t=this.start,l=this.end,p={},m;for(m in l){var w=l[m];t[m]===w||a[m]||!d.fx.step[m]&&isNaN(parseFloat(w))||(p[m]=w)}this.diff=p;return this});
k.attr("class",n);r=r.map(function(){var t=this,l=d.Deferred(),p=d.extend({},h,{queue:!1,complete:function(){l.resolve(t)}});this.el.animate(this.diff,p);return l.promise()});d.when.apply(d,r.get()).done(function(){v();d.each(arguments,function(){var t=this.el;d.each(this.diff,function(l){t.css(l,"")})});h.complete.call(k[0])})})};d.fn.extend({addClass:function(b){return function(c,e,f,h){return e?d.effects.animateClass.call(this,{add:c},e,f,h):b.apply(this,arguments)}}(d.fn.addClass),removeClass:function(b){return function(c,
e,f,h){return 1<arguments.length?d.effects.animateClass.call(this,{remove:c},e,f,h):b.apply(this,arguments)}}(d.fn.removeClass),toggleClass:function(b){return function(c,e,f,h,k){return"boolean"===typeof e||void 0===e?f?d.effects.animateClass.call(this,e?{add:c}:{remove:c},f,h,k):b.apply(this,arguments):d.effects.animateClass.call(this,{toggle:c},e,f,h)}}(d.fn.toggleClass),switchClass:function(b,c,e,f,h){return d.effects.animateClass.call(this,{add:c,remove:b},e,f,h)}})})();(function(){function u(a,
b,c,e){d.isPlainObject(a)&&(b=a,a=a.effect);a={effect:a};null==b&&(b={});"function"===typeof b&&(e=b,c=null,b={});if("number"===typeof b||d.fx.speeds[b])e=c,c=b,b={};"function"===typeof c&&(e=c,c=null);b&&d.extend(a,b);c=c||b.duration;a.duration=d.fx.off?0:"number"===typeof c?c:c in d.fx.speeds?d.fx.speeds[c]:d.fx.speeds._default;a.complete=e||b.complete;return a}function g(a){return!a||"number"===typeof a||d.fx.speeds[a]||"string"===typeof a&&!d.effects.effect[a]||"function"===typeof a||"object"===
typeof a&&!a.effect?!0:!1}function q(a,b){var c=b.outerWidth(),e=b.outerHeight(),f=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(a)||["",0,c,e,0];return{top:parseFloat(f[1])||0,right:"auto"===f[2]?c:parseFloat(f[2]),bottom:"auto"===f[3]?e:parseFloat(f[3]),left:parseFloat(f[4])||0}}d.expr&&d.expr.pseudos&&d.expr.pseudos.animated&&(d.expr.pseudos.animated=function(a){return function(b){return!!d(b).data("ui-effects-animated")||
a(b)}}(d.expr.pseudos.animated));!1!==d.uiBackCompat&&d.extend(d.effects,{save:function(a,b){for(var c=0,e=b.length;c<e;c++)null!==b[c]&&a.data("ui-effects-"+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c,e=0,f=b.length;e<f;e++)null!==b[e]&&(c=a.data("ui-effects-"+b[e]),a.css(b[e],c))},setMode:function(a,b){"toggle"===b&&(b=a.is(":hidden")?"show":"hide");return b},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var b={width:a.outerWidth(!0),height:a.outerHeight(!0),
"float":a.css("float")},c=d("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:a.width(),height:a.height()},f=document.activeElement;try{f.id}catch(h){f=document.body}a.wrap(c);(a[0]===f||d.contains(a[0],f))&&d(f).trigger("focus");c=a.parent();"static"===a.css("position")?(c.css({position:"relative"}),a.css({position:"relative"})):(d.extend(b,{position:a.css("position"),zIndex:a.css("z-index")}),d.each(["top","left",
"bottom","right"],function(h,k){b[k]=a.css(k);isNaN(parseInt(b[k],10))&&(b[k]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));a.css(e);return c.css(b).show()},removeWrapper:function(a){var b=document.activeElement;a.parent().is(".ui-effects-wrapper")&&(a.parent().replaceWith(a),(a[0]===b||d.contains(a[0],b))&&d(b).trigger("focus"));return a}});d.extend(d.effects,{version:"@VERSION",define:function(a,b,c){c||(c=b,b="effect");d.effects.effect[a]=c;d.effects.effect[a].mode=
b;return c},scaledDimensions:function(a,b,c){if(0===b)return{height:0,width:0,outerHeight:0,outerWidth:0};var e="horizontal"!==c?(b||100)/100:1;b="vertical"!==c?(b||100)/100:1;return{height:a.height()*b,width:a.width()*e,outerHeight:a.outerHeight()*b,outerWidth:a.outerWidth()*e}},clipToBox:function(a){return{width:a.clip.right-a.clip.left,height:a.clip.bottom-a.clip.top,left:a.clip.left,top:a.clip.top}},unshift:function(a,b,c){var e=a.queue();1<b&&e.splice.apply(e,[1,0].concat(e.splice(b,c)));a.dequeue()},
saveStyle:function(a){a.data("ui-effects-style",a[0].style.cssText)},restoreStyle:function(a){a[0].style.cssText=a.data("ui-effects-style")||"";a.removeData("ui-effects-style")},mode:function(a,b){var c=a.is(":hidden");"toggle"===b&&(b=c?"show":"hide");if(c?"hide"===b:"show"===b)b="none";return b},getBaseline:function(a,b){switch(a[0]){case "top":var c=0;break;case "middle":c=.5;break;case "bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case "left":var e=0;break;case "center":e=.5;break;case "right":e=
1;break;default:e=a[1]/b.width}return{x:e,y:c}},createPlaceholder:function(a){var b=a.css("position"),c=a.position();a.css({marginTop:a.css("marginTop"),marginBottom:a.css("marginBottom"),marginLeft:a.css("marginLeft"),marginRight:a.css("marginRight")}).outerWidth(a.outerWidth()).outerHeight(a.outerHeight());if(/^(static|relative)/.test(b)){b="absolute";var e=d("<"+a[0].nodeName+">").insertAfter(a).css({display:/^(inline|ruby)/.test(a.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:a.css("marginTop"),
marginBottom:a.css("marginBottom"),marginLeft:a.css("marginLeft"),marginRight:a.css("marginRight"),"float":a.css("float")}).outerWidth(a.outerWidth()).outerHeight(a.outerHeight()).addClass("ui-effects-placeholder");a.data("ui-effects-placeholder",e)}a.css({position:b,left:c.left,top:c.top});return e},removePlaceholder:function(a){var b=a.data("ui-effects-placeholder");b&&(b.remove(),a.removeData("ui-effects-placeholder"))},cleanUp:function(a){d.effects.restoreStyle(a);d.effects.removePlaceholder(a)},
setTransition:function(a,b,c,e){e=e||{};d.each(b,function(f,h){var k=a.cssUnit(h);0<k[0]&&(e[h]=k[0]*c+k[1])});return e}});d.fn.extend({effect:function(){function a(t){function l(){m.removeData("ui-effects-animated");d.effects.cleanUp(m);"hide"===b.mode&&m.hide();p()}function p(){"function"===typeof k&&k.call(m[0]);"function"===typeof t&&t()}var m=d(this);b.mode=r.shift();!1===d.uiBackCompat||e?"none"===b.mode?(m[n](),p()):c.call(m[0],b,l):(m.is(":hidden")?"hide"===n:"show"===n)?(m[n](),p()):c.call(m[0],
b,p)}var b=u.apply(this,arguments),c=d.effects.effect[b.effect],e=c.mode,f=b.queue,h=f||"fx",k=b.complete,n=b.mode,r=[],v=function(t){var l=d(this),p=d.effects.mode(l,n)||e;l.data("ui-effects-animated",!0);r.push(p);e&&("show"===p||p===e&&"hide"===p)&&l.show();e&&"none"===p||d.effects.saveStyle(l);"function"===typeof t&&t()};return d.fx.off||!c?n?this[n](b.duration,k):this.each(function(){k&&k.call(this)}):!1===f?this.each(v).each(a):this.queue(h,v).queue(h,a)},show:function(a){return function(b){if(g(b))return a.apply(this,
arguments);var c=u.apply(this,arguments);c.mode="show";return this.effect.call(this,c)}}(d.fn.show),hide:function(a){return function(b){if(g(b))return a.apply(this,arguments);var c=u.apply(this,arguments);c.mode="hide";return this.effect.call(this,c)}}(d.fn.hide),toggle:function(a){return function(b){if(g(b)||"boolean"===typeof b)return a.apply(this,arguments);var c=u.apply(this,arguments);c.mode="toggle";return this.effect.call(this,c)}}(d.fn.toggle),cssUnit:function(a){var b=this.css(a),c=[];d.each(["em",
"px","%","pt"],function(e,f){0<b.indexOf(f)&&(c=[parseFloat(b),f])});return c},cssClip:function(a){return a?this.css("clip","rect("+a.top+"px "+a.right+"px "+a.bottom+"px "+a.left+"px)"):q(this.css("clip"),this)},transfer:function(a,b){var c=d(this),e=d(a.to),f="fixed"===e.css("position"),h=d("body"),k=f?h.scrollTop():0;h=f?h.scrollLeft():0;var n=e.offset();e={top:n.top-k,left:n.left-h,height:e.innerHeight(),width:e.innerWidth()};n=c.offset();var r=d("<div class='ui-effects-transfer'></div>");r.appendTo("body").addClass(a.className).css({top:n.top-
k,left:n.left-h,height:c.innerHeight(),width:c.innerWidth(),position:f?"fixed":"absolute"}).animate(e,a.duration,a.easing,function(){r.remove();"function"===typeof b&&b()})}});d.fx.step.clip=function(a){a.clipInit||(a.start=d(a.elem).cssClip(),"string"===typeof a.end&&(a.end=q(a.end,a.elem)),a.clipInit=!0);d(a.elem).cssClip({top:a.pos*(a.end.top-a.start.top)+a.start.top,right:a.pos*(a.end.right-a.start.right)+a.start.right,bottom:a.pos*(a.end.bottom-a.start.bottom)+a.start.bottom,left:a.pos*(a.end.left-
a.start.left)+a.start.left})}})();(function(){var u={};d.each(["Quad","Cubic","Quart","Quint","Expo"],function(g,q){u[q]=function(a){return Math.pow(a,g+2)}});d.extend(u,{Sine:function(g){return 1-Math.cos(g*Math.PI/2)},Circ:function(g){return 1-Math.sqrt(1-g*g)},Elastic:function(g){return 0===g||1===g?g:-Math.pow(2,8*(g-1))*Math.sin((80*(g-1)-7.5)*Math.PI/15)},Back:function(g){return g*g*(3*g-2)},Bounce:function(g){for(var q,a=4;g<((q=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((3*
q-2)/22-g,2)}});d.each(u,function(g,q){d.easing["easeIn"+g]=q;d.easing["easeOut"+g]=function(a){return 1-q(1-a)};d.easing["easeInOut"+g]=function(a){return.5>a?q(2*a)/2:1-q(-2*a+2)/2}})})();return d.effects});