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

7 lines
488 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=439)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},105:function(e,t,r){"use strict";e.exports=function(e){var t,r={};return function e(t,r){var n;if(Array.isArray(r))for(n=0;n<r.length;n++)e(t,r[n]);else for(n in r)t[n]=(t[n]||[]).concat(r[n])}(r,e),(t=function(e){return function(t){return function(n){var i,o,a=r[n.type],A=t(n);if(a)for(i=0;i<a.length;i++)(o=a[i](n,e))&&e.dispatch(o);return A}}}).effects=r,t}},11:function(e,t,r){var n;
/*!
Copyright (c) 2017 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)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var A in n)r.call(n,A)&&n[A]&&e.push(A)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},110:function(e,t,r){"use strict";var n=r(0),i=r(3);t.a=function(e){var t=e.label,r=e.isChecked,o=e.onChange,a=e.children;return Object(n.createElement)("div",{className:"edit-post-options-modal__option"},Object(n.createElement)(i.CheckboxControl,{label:t,checked:r,onChange:o}),a)}},12:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(38);var i=r(29),o=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,A=e[Symbol.iterator]();!(n=(a=A.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==A.return||A.return()}finally{if(i)throw o}}return r}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(41);function i(e,t){if(null==e)return{};var r,i,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},145:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},148:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=o},149:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=o},15:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},159:function(e,t,r){"use strict";(function(e){var n=r(0),i=r(3),o=r(9),a=r(63),A=r(4),c=(r(98),r(470)),u=Object(i.createSlotFill)("PluginDocumentSettingPanel"),l=u.Fill,s=u.Slot,m=Object(o.compose)(Object(a.withPluginContext)((function(t,r){return void 0===r.name&&void 0!==e&&e.env,{icon:r.icon||t.icon,panelName:"".concat(t.name,"/").concat(r.name)}})),Object(A.withSelect)((function(e,t){var r=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(r),isEnabled:e("core/edit-post").isEditorPanelEnabled(r)}})),Object(A.withDispatch)((function(e,t){var r=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(r)}}})))((function(e){var t=e.isEnabled,r=e.panelName,o=e.opened,a=e.onToggle,A=e.className,u=e.title,s=e.icon,m=e.children;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c.a,{label:u,panelName:r}),Object(n.createElement)(l,null,t&&Object(n.createElement)(i.PanelBody,{className:A,title:u,icon:s,opened:o,onToggle:a},m)))}));m.Slot=s,t.a=m}).call(this,r(93))},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(26);var i=r(35),o=r(29);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},172:function(e,t,r){"use strict";var n=r(0),i=r(6),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M13 11.9l3.3-3.4-1.1-1