-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3798.bd9808e8.iframe.bundle.js
1 lines (1 loc) · 21 KB
/
3798.bd9808e8.iframe.bundle.js
1
"use strict";(globalThis.webpackChunk_yoast_ui_library=globalThis.webpackChunk_yoast_ui_library||[]).push([[3798],{"../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.O=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if(r(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function D(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return en.get(r,n)},set:function(r){var t=this[Q];en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.D,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}__webpack_require__.d(__webpack_exports__,{Ak:()=>nanoid});var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(r,t){var i=(r&&r[Q]).A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un;an.produce,an.produceWithPatches.bind(an),an.setAutoFreeze.bind(an),an.setUseProxies.bind(an),an.applyPatches.bind(an),an.createDraft.bind(an),an.finishDraft.bind(an);"function"==typeof Symbol&&Symbol.observable;var randomString=function randomString(){return Math.random().toString(36).substring(7).split("").join(".")};randomString(),randomString();function compose(){for(var _len=arguments.length,funcs=new Array(_len),_key=0;_key<_len;_key++)funcs[_key]=arguments[_key];return 0===funcs.length?function(arg){return arg}:1===funcs.length?funcs[0]:funcs.reduce((function(a,b){return function(){return a(b.apply(void 0,arguments))}}))}__webpack_require__("../../node_modules/process/browser.js");var extendStatics,__extends=(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}),__spreadArray=function(to,from){for(var i=0,il=from.length,j=to.length;i<il;i++,j++)to[j]=from[i];return to},__defProp=Object.defineProperty,__getOwnPropSymbols=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value},__spreadValues=function(a,b){for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var _i=0,_c=__getOwnPropSymbols(b);_i<_c.length;_i++){prop=_c[_i];__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop])}return a};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;!function(_super){function MiddlewareArray(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var _this=_super.apply(this,args)||this;return Object.setPrototypeOf(_this,MiddlewareArray.prototype),_this}__extends(MiddlewareArray,_super),Object.defineProperty(MiddlewareArray,Symbol.species,{get:function(){return MiddlewareArray},enumerable:!1,configurable:!0}),MiddlewareArray.prototype.concat=function(){for(var arr=[],_i=0;_i<arguments.length;_i++)arr[_i]=arguments[_i];return _super.prototype.concat.apply(this,arr)},MiddlewareArray.prototype.prepend=function(){for(var arr=[],_i=0;_i<arguments.length;_i++)arr[_i]=arguments[_i];return 1===arr.length&&Array.isArray(arr[0])?new(MiddlewareArray.bind.apply(MiddlewareArray,__spreadArray([void 0],arr[0].concat(this)))):new(MiddlewareArray.bind.apply(MiddlewareArray,__spreadArray([void 0],arr.concat(this))))}}(Array);function createAction(type,prepareAction){function actionCreator(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];if(prepareAction){var prepared=prepareAction.apply(void 0,args);if(!prepared)throw new Error("prepareAction did not return an object");return __spreadValues(__spreadValues({type,payload:prepared.payload},"meta"in prepared&&{meta:prepared.meta}),"error"in prepared&&{error:prepared.error})}return{type,payload:args[0]}}return actionCreator.toString=function(){return""+type},actionCreator.type=type,actionCreator.match=function(action){return action.type===type},actionCreator}var nanoid=function(size){void 0===size&&(size=21);for(var id="",i=size;i--;)id+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return id};Object.assign;var alm="listenerMiddleware";createAction(alm+"/add"),createAction(alm+"/removeAll"),createAction(alm+"/remove");N()},"./node_modules/react-animate-height/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),__rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t};function isPercentage(height){return"string"==typeof height&&"%"===height[height.length-1]&&function isNumber(n){const number=parseFloat(n);return!isNaN(number)&&isFinite(number)}(height.substring(0,height.length-1))}function hideContent(element,height){0===height&&(null==element?void 0:element.style)&&(element.style.display="none")}const ANIMATION_STATE_CLASSES={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function getStaticStateClasses(animationStateClasses,height){return[animationStateClasses.static,0===height&&animationStateClasses.staticHeightZero,height>0&&animationStateClasses.staticHeightSpecific,"auto"===height&&animationStateClasses.staticHeightAuto].filter((v=>v)).join(" ")}const __WEBPACK_DEFAULT_EXPORT__=_a=>{var{animateOpacity=!1,animationStateClasses={},applyInlineTransitions=!0,children,className="",contentClassName,delay:userDelay=0,duration:userDuration=500,easing="ease",height,onHeightAnimationEnd,onHeightAnimationStart,style}=_a,props=__rest(_a,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const prevHeight=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(height),contentElement=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),animationClassesTimeoutID=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),timeoutID=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),stateClasses=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(Object.assign(Object.assign({},ANIMATION_STATE_CLASSES),animationStateClasses)),isBrowser="undefined"!=typeof window,prefersReducedMotion=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!(!isBrowser||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),delay=prefersReducedMotion.current?0:userDelay,duration=prefersReducedMotion.current?0:userDuration;let initHeight=height,initOverflow="visible";"number"==typeof initHeight?(initHeight=height<0?0:height,initOverflow="hidden"):isPercentage(initHeight)&&(initHeight="0%"===height?0:height,initOverflow="hidden");const[currentHeight,setCurrentHeight]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initHeight),[overflow,setOverflow]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initOverflow),[useTransitions,setUseTransitions]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[animationStateClassNames,setAnimationStateClassNames]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(getStaticStateClasses(stateClasses.current,height));(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{hideContent(contentElement.current,currentHeight)}),[]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(height!==prevHeight.current&&contentElement.current){!function showContent(element,height){0===height&&(null==element?void 0:element.style)&&(element.style.display="")}(contentElement.current,prevHeight.current),contentElement.current.style.overflow="hidden";const contentHeight=contentElement.current.offsetHeight;contentElement.current.style.overflow="";const totalDuration=duration+delay;let newHeight,timeoutHeight,timeoutUseTransitions,timeoutOverflow="hidden";const isCurrentHeightAuto="auto"===prevHeight.current;"number"==typeof height?(newHeight=height<0?0:height,timeoutHeight=newHeight):isPercentage(height)?(newHeight="0%"===height?0:height,timeoutHeight=newHeight):(newHeight=contentHeight,timeoutHeight="auto",timeoutOverflow=void 0),isCurrentHeightAuto&&(timeoutHeight=newHeight,newHeight=contentHeight);const newAnimationStateClassNames=[stateClasses.current.animating,("auto"===prevHeight.current||height<prevHeight.current)&&stateClasses.current.animatingUp,("auto"===height||height>prevHeight.current)&&stateClasses.current.animatingDown,0===timeoutHeight&&stateClasses.current.animatingToHeightZero,"auto"===timeoutHeight&&stateClasses.current.animatingToHeightAuto,timeoutHeight>0&&stateClasses.current.animatingToHeightSpecific].filter((v=>v)).join(" "),timeoutAnimationStateClasses=getStaticStateClasses(stateClasses.current,timeoutHeight);setCurrentHeight(newHeight),setOverflow("hidden"),setUseTransitions(!isCurrentHeightAuto),setAnimationStateClassNames(newAnimationStateClassNames),clearTimeout(timeoutID.current),clearTimeout(animationClassesTimeoutID.current),isCurrentHeightAuto?(timeoutUseTransitions=!0,timeoutID.current=setTimeout((()=>{setCurrentHeight(timeoutHeight),setOverflow(timeoutOverflow),setUseTransitions(timeoutUseTransitions),null==onHeightAnimationStart||onHeightAnimationStart(timeoutHeight)}),50),animationClassesTimeoutID.current=setTimeout((()=>{setUseTransitions(!1),setAnimationStateClassNames(timeoutAnimationStateClasses),hideContent(contentElement.current,timeoutHeight),null==onHeightAnimationEnd||onHeightAnimationEnd(timeoutHeight)}),totalDuration)):(null==onHeightAnimationStart||onHeightAnimationStart(newHeight),timeoutID.current=setTimeout((()=>{setCurrentHeight(timeoutHeight),setOverflow(timeoutOverflow),setUseTransitions(!1),setAnimationStateClassNames(timeoutAnimationStateClasses),"auto"!==height&&hideContent(contentElement.current,newHeight),null==onHeightAnimationEnd||onHeightAnimationEnd(newHeight)}),totalDuration))}return prevHeight.current=height,()=>{clearTimeout(timeoutID.current),clearTimeout(animationClassesTimeoutID.current)}}),[height]);const componentStyle=Object.assign(Object.assign({},style),{height:currentHeight,overflow:overflow||(null==style?void 0:style.overflow)});useTransitions&&applyInlineTransitions&&(componentStyle.transition=`height ${duration}ms ${easing} ${delay}ms`,(null==style?void 0:style.transition)&&(componentStyle.transition=`${style.transition}, ${componentStyle.transition}`),componentStyle.WebkitTransition=componentStyle.transition);const contentStyle={};animateOpacity&&(contentStyle.transition=`opacity ${duration}ms ${easing} ${delay}ms`,contentStyle.WebkitTransition=contentStyle.transition,0===currentHeight&&(contentStyle.opacity=0));const ariaHidden=void 0!==props["aria-hidden"]?props["aria-hidden"]:0===height;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",Object.assign({},props,{"aria-hidden":ariaHidden,className:`${animationStateClassNames} ${className}`,style:componentStyle}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:contentClassName,style:contentStyle,ref:contentElement},children))}}}]);