WordPress/wp-includes/js/dist/edit-post.min.js

21 lines
591 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=451)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,r){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},106:function(e,t){e.exports=window.wp.warning},11:function(e,t){e.exports=window.wp.compose},118:function(e,t){e.exports=window.wp.viewport},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(38);var i=r(28),o=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,i,o=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw i}}return o}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},122:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o}));var n="core/edit-post",i="#wp-admin-bar-view a",o="#wp-admin-bar-preview a"},124:function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,s=[],l=!1,A=-1;function m(){l&&c&&(l=!1,c.length?s=c.concat(s):A=-1,s.length&&p())}function p(){if(!l){var e=u(m);l=!0;for(var t=s.length;t;){for(c=s,s=[];++A<t;)c&&c[A].run();A=-1,t=s.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new d(e,t)),1!==s.length||l||u(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},129:function(e,t,r){"use strict";t.a=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},13:function(e,t){e.exports=window.React},133:function(e,t,r){"use strict";var n=r(5),i=r(14),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,u=void 0===r?24:r,c=Object(i.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:u,height:u},c))}},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(45);function i(e,t){if(null==e)return{};var r,
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var R=function(){return(R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function H(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}Object.create;function F(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function U(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}Object.create;var X=r(13),V=r.n(X),_=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},$={measureLayout:_(["layout","layoutId","drag","_layoutResetTransform"]),animation:_(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:_(["exit"]),drag:_(["drag","dragControls"]),focus:_(["whileFocus"]),hover:_(["whileHover","onHoverStart","onHoverEnd"]),tap:_(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:_(["layout","layoutId"])};var ee=r(64),te=Object(X.createContext)({strict:!1}),re=Object.keys($),ne=re.length;var ie=Object(X.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),oe=Object(X.createContext)({});var ae=Object(X.createContext)(null);function ue(e){var t=Object(X.useRef)(null);return null===t.current&&(t.current=e()),t.current}function ce(){var e=Object(X.useContext)(ae);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=me();Object(X.useEffect)((function(){return n(i)}),[]);return!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function se(e){return null===e||e.isPresent}var le=0,Ae=function(){return le++},me=function(){return ue(Ae)},pe=Object(X.createContext)(null),de="undefined"!=typeof window,ve=de?X.useLayoutEffect:X.useEffect;function qe(e,t,r,n){var i=Object(X.useContext)(ie),o=Object(X.useContext)(te),a=Object(X.useContext)(oe).visualElement,u=Object(X.useContext)(ae),c=function(e){var t=e.layoutId,r=Object(X.useContext)(pe);return r&&void 0!==t?r+"-"+t:t}(r),s=Object(X.useRef)(void 0);n||(n=o.renderer),!s.current&&n&&(s.current=n(e,{visualState:t,parent:a,props:R(R({},r),{layoutId:c}),presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial)}));var l=s.current;return ve((function(){l&&(l.setProps(R(R(R({},i),r),{layoutId:c})),l.isPresent=se(u),l.isPresenceRoot=!a||a.presenceId!==(null==u?void 0:u.id),l.syncRender())})),Object(X.useEffect)((function(){var e;l&&(null===(e=l.animationState)||void 0===e||e.animateChanges())})),ve((function(){return function(){return null==l?void 0:l.notifyUnmount()}}),[]),l}function ge(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fe(e){return Array.isArray(e)}function be(e){return"string"==typeof e||fe(e)}function he(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t?t(null!=r?r:e.custom,n,i):t}function Oe(e,t,r){var n=e.getProps();return he(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.getVelocity()})),t}(e))}function Ie(e){var t;return"function"==typeof(null