1 line
136 KiB
JavaScript
1 line
136 KiB
JavaScript
|
window.yoast=window.yoast||{},window.yoast.uiLibrary=function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=397)}({0:function(e,t){e.exports=window.yoast.propTypes},1:function(e,t){e.exports=window.wp.element},188:function(e,t,a){!function(e,t){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var n=a(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s={error:null},o=function(e){var t,a;function o(){for(var t,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}a=e,(t=o).prototype=Object.create(a.prototype),t.prototype.constructor=t,r(t,a),o.getDerivedStateFromError=function(e){return{error:e}};var l=o.prototype;return l.reset=function(){this.setState(s)},l.componentDidCatch=function(e,t){var a,n;null==(a=(n=this.props).onError)||a.call(n,e,t)},l.componentDidUpdate=function(e,t){var a,n,r,s,o=this.state.error,l=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(s=l)&&(s=[]),r.length!==s.length||r.some((function(e,t){return!Object.is(e,s[t])})))&&(null==(a=(n=this.props).onResetKeysChange)||a.call(n,e.resetKeys,l),this.reset())},l.render=function(){var e=this.state.error,t=this.props,a=t.fallbackRender,r=t.FallbackComponent,s=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(s))return s;if("function"==typeof a)return a(o);if(r)return n.createElement(r,o);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(n.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var t=n.useState(null),a=t[0],r=t[1];if(null!=e)throw e;if(null!=a)throw a;return r},e.withErrorBoundary=function(e,t){var a=function(a){return n.createElement(o,t,n.createElement(e,a))},r=e.displayName||e.name||"Unknown";return a.displayName="withErrorBoundary("+r+")",a},Object.defineProperty(e,"__esModule",{value:!0})}(t,a(3))},189:function(e,t){e.exports=window.yoast.reduxJsToolkit},2:function(e,t){e.exports=window.lodash},3:function(e,t){e.exports=window.React},34:function(e,t){e.exports=window.ReactDOM},397:function(e,t,a){"use strict";a.r(t),a.d(t,"Alert",(function(){return S})),a.d(t,"Autocomplete",(function(){return Dt})),a.d(t,"Badge",(function(){return zt})),a.d(t,"Button",(function(){return Xt})),a.d(t,"Checkbox",(function(){return la})),a.d(t,"Code",(function(){return pa})),a.d(t,"ErrorBoundary",(function(){return ba})),a.d(t,"Label",(function(){return na})),a.d(t,"Link",(function(){return ga})),a.d(t,"Paper",(function(){return wa})),a.d(t,"ProgressBar",(function(){return Sa})),a.d(t,"Radio",(function(){return Fa})),a.d(t,"Select",(function(){return sn})),a.d(t,"SkeletonLoader",(function(){return ln
|