diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/js/jquery/ui/effect-size.min.js --- a/wp/wp-includes/js/jquery/ui/effect-size.min.js Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/js/jquery/ui/effect-size.min.js Wed Sep 21 18:19:35 2022 +0200 @@ -1,11 +1,9 @@ /*! - * jQuery UI Effects Size 1.11.4 + * jQuery UI Effects Size 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license - * - * http://api.jqueryui.com/size-effect/ */ -!function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(x){return x.effects.effect.size=function(r,t){var o,e,h,n=x(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],s=["width","height","overflow"],f=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=x.effects.setMode(n,r.mode||"effect"),m=r.restore||"effect"!==d,g=r.scale||"both",u=r.origin||["middle","center"],p=n.css("position"),y=m?i:["position","top","bottom","left","right","overflow","opacity"],w={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&&n.show(),o={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},"toggle"===r.mode&&"show"===d?(n.from=r.to||w,n.to=r.from||o):(n.from=r.from||("show"===d?w:o),n.to=r.to||("hide"===d?w:o)),h={from:{y:n.from.height/o.height,x:n.from.width/o.width},to:{y:n.to.height/o.height,x:n.to.width/o.width}},"box"!==g&&"both"!==g||(h.from.y!==h.to.y&&(y=y.concat(c),n.from=x.effects.setTransition(n,c,h.from.y,n.from),n.to=x.effects.setTransition(n,c,h.to.y,n.to)),h.from.x!==h.to.x&&(y=y.concat(a),n.from=x.effects.setTransition(n,a,h.from.x,n.from),n.to=x.effects.setTransition(n,a,h.to.x,n.to))),"content"!==g&&"both"!==g||h.from.y!==h.to.y&&(y=y.concat(f).concat(s),n.from=x.effects.setTransition(n,f,h.from.y,n.from),n.to=x.effects.setTransition(n,f,h.to.y,n.to)),x.effects.save(n,y),n.show(),x.effects.createWrapper(n),n.css("overflow","hidden").css(n.from),u&&(e=x.effects.getBaseline(u,o),n.from.top=(o.outerHeight-n.outerHeight())*e.y,n.from.left=(o.outerWidth-n.outerWidth())*e.x,n.to.top=(o.outerHeight-n.to.outerHeight)*e.y,n.to.left=(o.outerWidth-n.to.outerWidth)*e.x),n.css(n.from),"content"!==g&&"both"!==g||(c=c.concat(["marginTop","marginBottom"]).concat(f),a=a.concat(["marginLeft","marginRight"]),s=i.concat(c).concat(a),n.find("*[width]").each(function(){var t=x(this),o=t.height(),e=t.width(),i=t.outerHeight(),f=t.outerWidth();m&&x.effects.save(t,s),t.from={height:o*h.from.y,width:e*h.from.x,outerHeight:i*h.from.y,outerWidth:f*h.from.x},t.to={height:o*h.to.y,width:e*h.to.x,outerHeight:o*h.to.y,outerWidth:e*h.to.x},h.from.y!==h.to.y&&(t.from=x.effects.setTransition(t,c,h.from.y,t.from),t.to=x.effects.setTransition(t,c,h.to.y,t.to)),h.from.x!==h.to.x&&(t.from=x.effects.setTransition(t,a,h.from.x,t.from),t.to=x.effects.setTransition(t,a,h.to.x,t.to)),t.css(t.from),t.animate(t.to,r.duration,r.easing,function(){m&&x.effects.restore(t,s)})})),n.animate(n.to,{queue:!1,duration:r.duration,easing:r.easing,complete:function(){0===n.to.opacity&&n.css("opacity",n.from.opacity),"hide"===d&&n.hide(),x.effects.restore(n,y),m||("static"===p?n.css({position:"relative",top:n.to.top,left:n.to.left}):x.each(["top","left"],function(f,t){n.css(t,function(t,o){var e=parseInt(o,10),i=f?n.to.left:n.to.top;return"auto"===o?i+"px":e+i+"px"})})),x.effects.removeWrapper(n),t()}})}}); \ No newline at end of file +!function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)}(function(p){return p.effects.define("size",function(i,e){var f,o=p(this),t=["fontSize"],n=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=i.mode,h="effect"!==r,c=i.scale||"both",a=i.origin||["middle","center"],d=o.css("position"),g=o.position(),m=p.effects.scaledDimensions(o),u=i.from||m,y=i.to||p.effects.scaledDimensions(o,0);p.effects.createPlaceholder(o),"show"===r&&(r=u,u=y,y=r),f={from:{y:u.height/m.height,x:u.width/m.width},to:{y:y.height/m.height,x:y.width/m.width}},"box"!==c&&"both"!==c||(f.from.y!==f.to.y&&(u=p.effects.setTransition(o,n,f.from.y,u),y=p.effects.setTransition(o,n,f.to.y,y)),f.from.x!==f.to.x&&(u=p.effects.setTransition(o,s,f.from.x,u),y=p.effects.setTransition(o,s,f.to.x,y))),"content"!==c&&"both"!==c||f.from.y!==f.to.y&&(u=p.effects.setTransition(o,t,f.from.y,u),y=p.effects.setTransition(o,t,f.to.y,y)),a&&(a=p.effects.getBaseline(a,m),u.top=(m.outerHeight-u.outerHeight)*a.y+g.top,u.left=(m.outerWidth-u.outerWidth)*a.x+g.left,y.top=(m.outerHeight-y.outerHeight)*a.y+g.top,y.left=(m.outerWidth-y.outerWidth)*a.x+g.left),o.css(u),"content"!==c&&"both"!==c||(n=n.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var t=p(this),e=p.effects.scaledDimensions(t),o={height:e.height*f.from.y,width:e.width*f.from.x,outerHeight:e.outerHeight*f.from.y,outerWidth:e.outerWidth*f.from.x},e={height:e.height*f.to.y,width:e.width*f.to.x,outerHeight:e.height*f.to.y,outerWidth:e.width*f.to.x};f.from.y!==f.to.y&&(o=p.effects.setTransition(t,n,f.from.y,o),e=p.effects.setTransition(t,n,f.to.y,e)),f.from.x!==f.to.x&&(o=p.effects.setTransition(t,s,f.from.x,o),e=p.effects.setTransition(t,s,f.to.x,e)),h&&p.effects.saveStyle(t),t.css(o),t.animate(e,i.duration,i.easing,function(){h&&p.effects.restoreStyle(t)})})),o.animate(y,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=o.offset();0===y.opacity&&o.css("opacity",u.opacity),h||(o.css("position","static"===d?"relative":d).offset(t),p.effects.saveStyle(o)),e()}})})}); \ No newline at end of file