WordPress/wp-includes/js/jquery/ui/effect-fold.min.js
desrosj 26335af1ac Build/Test Tools: Update devDependencies.
This updates the following `devDependencies`:

- `dotenv` from `16.4.5` to `16.4.7`
- `dotenv-expand` from `11.0.6` to `12.0.1`
- `postcss` from `8.4.47` to `8.4.49`
- `qunit` from `2.22.0` to `2.23.1`
- `sass` from `1.79.4` to `1.79.6`
- `terser-webpack-plugin` from `5.3.10` to `5.3.11`
- `uglify-js` from `3.17.4` to `3.19.3`
- `uuid` from `9.0.1` to `11.0.3`
- `webpack` from `5.90.2` to `5.97.1`

Additionally, `npm audit fix` has been run.

Follow up to [58585].

See #62220.
Built from https://develop.svn.wordpress.org/trunk@59509


git-svn-id: http://core.svn.wordpress.org/trunk@58895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-13 19:06:24 +00:00

9 lines
987 B
JavaScript

/*!
* jQuery UI Effects Fold 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
(e=>{"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)})(function(m){return m.effects.define("fold","hide",function(i,e){var t=m(this),n=i.mode,c="show"===n,n="hide"===n,f=i.size||15,s=/([0-9]+)%/.exec(f),o=!!i.horizFirst?["right","bottom"]:["bottom","right"],a=i.duration/2,l=m.effects.createPlaceholder(t),u=t.cssClip(),p={clip:m.extend({},u)},r={clip:m.extend({},u)},d=[u[o[0]],u[o[1]]],h=t.queue().length;s&&(f=parseInt(s[1],10)/100*d[n?0:1]),p.clip[o[0]]=f,r.clip[o[0]]=f,r.clip[o[1]]=0,c&&(t.cssClip(r.clip),l&&l.css(m.effects.clipToBox(r)),r.clip=u),t.queue(function(e){l&&l.animate(m.effects.clipToBox(p),a,i.easing).animate(m.effects.clipToBox(r),a,i.easing),e()}).animate(p,a,i.easing).animate(r,a,i.easing).queue(e),m.effects.unshift(t,h,4)})});