31 lines
157 KiB
JavaScript
31 lines
157 KiB
JavaScript
|
|
/*! This file is auto-generated */
|
||
|
|
(function() {
|
||
|
|
var wp;(wp||={}).editPost=(()=>{var Zp=Object.create;var Gr=Object.defineProperty;var em=Object.getOwnPropertyDescriptor;var tm=Object.getOwnPropertyNames;var om=Object.getPrototypeOf,rm=Object.prototype.hasOwnProperty;var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dt=(e,t)=>{for(var o in t)Gr(e,o,{get:t[o],enumerable:!0})},Ca=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tm(t))!rm.call(e,n)&&n!==o&&Gr(e,n,{get:()=>t[n],enumerable:!(r=em(t,n))||r.enumerable});return e};var c=(e,t,o)=>(o=e!=null?Zp(om(e)):{},Ca(t||!e||!e.__esModule?Gr(o,"default",{value:e,enumerable:!0}):o,e)),nm=e=>Ca(Gr({},"__esModule",{value:!0}),e);var hs=ee((Cx,Oa)=>{Oa.exports=window.wp.blocks});var ys=ee((Ox,_a)=>{_a.exports=window.wp.blockLibrary});var ar=ee((_x,Ia)=>{Ia.exports=window.wp.deprecated});var ve=ee((Ix,Aa)=>{Aa.exports=window.wp.element});var ae=ee((Ax,Ma)=>{Ma.exports=window.wp.data});var et=ee((Mx,ka)=>{ka.exports=window.wp.preferences});var Na=ee((kx,La)=>{La.exports=window.wp.widgets});var be=ee((Lx,Da)=>{Da.exports=window.wp.editor});var pt=ee((Nx,Fa)=>{Fa.exports=window.wp.coreData});var vs=ee((Dx,Ba)=>{Ba.exports=window.wp.apiFetch});var je=ee((Bx,ja)=>{ja.exports=window.wp.i18n});var H=ee((Vx,Ha)=>{Ha.exports=window.React});var K=ee((Gx,za)=>{za.exports=window.ReactJSXRuntime});var Qt=ee((HS,gl)=>{gl.exports=window.ReactDOM});var Rc=ee(Ec=>{"use strict";var $o=H();function sh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ih=typeof Object.is=="function"?Object.is:sh,ah=$o.useState,lh=$o.useEffect,ch=$o.useLayoutEffect,uh=$o.useDebugValue;function fh(e,t){var o=t(),r=ah({inst:{value:o,getSnapshot:t}}),n=r[0].inst,s=r[1];return ch(function(){n.value=o,n.getSnapshot=t,ti(n)&&s({inst:n})},[e,o,t]),lh(function(){return ti(n)&&s({inst:n}),e(function(){ti(n)&&s({inst:n})})},[e]),uh(o),o}function ti(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!ih(e,o)}catch{return!0}}function dh(e,t){return t()}var ph=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dh:fh;Ec.useSyncExternalStore=$o.useSyncExternalStore!==void 0?$o.useSyncExternalStore:ph});var oi=ee((_w,Pc)=>{"use strict";Pc.exports=Rc()});var Cc=ee(Tc=>{"use strict";var gn=H(),mh=oi();function gh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hh=typeof Object.is=="function"?Object.is:gh,yh=mh.useSyncExternalStore,vh=gn.useRef,xh=gn.useEffect,Sh=gn.useMemo,bh=gn.useDebugValue;Tc.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var s=vh(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=Sh(function(){function u(m){if(!f){if(f=!0,l=m,m=r(m),n!==void 0&&i.hasValue){var p=i.value;if(n(p,m))return d=p}return d=m}if(p=d,hh(l,m))return p;var h=r(m);return n!==void 0&&n(p,h)?(l=m,p):(l=m,d=h)}var f=!1,l,d,g=o===void 0?null:o;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,o,r,n]);var a=yh(e,s[0],s[1]);return xh(function(){i.hasValue=!0,i.value=a},[a]),bh(a),a}});var _c=ee((Aw,Oc)=>{"use strict";Oc.exports=Cc()});var Jo=ee((VC,Uu)=>{Uu.exports=window.wp.primitives});var Di=ee((QC,Wu)=>{Wu.exports=window.wp.compose});var Bi=ee((ZC,Gu)=>{Gu.exports=window.wp.theme});var Vi=ee((eO,Yu)=>{Yu.exports=window.wp.privateApis});var Mt=ee((ZO,Pf)=>{Pf.exports=window.wp.components});var ea=ee((n_,Cf)=>{Cf.exports=window.wp.blockEditor});var ta=ee((s_,Of)=>{Of.exports=window.wp.styleEngine});var Lf=ee((C_,kf)=>{kf.exports=window.wp.plugins});var Un=ee((O_,Nf)=>{Nf.exports=window.wp.notices});var na=ee((__,Df)=>{Df.exports=window.wp.commands});var no=ee((I_,Ff)=>{Ff.exports=window.wp.url});var Vf=ee((A_,Bf)=>{Bf.exports=window.wp.htmlEntities});var ad=ee((W_,id)=>{id.exports=window.wp.keyboardShortcuts});var ud=ee((G_,cd)=>{cd.exports=window.wp.hooks});var Vd=ee((v0,Bd)=>{Bd.exports=window.wp.keycodes});var Px={};dt(Px,{PluginBlockSettingsMenuItem:()=>cx,PluginDocumentSettingPanel:()=>ux,PluginMoreMenuItem:()=>fx,PluginPostPublishPanel:()=>px,PluginPostStatusInfo:()=>mx,PluginPrePublishPanel:()=>dx,PluginSidebar:()=>gx,PluginSi
|
||
|
|
This can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.`),window.addEventListener("dragover",l=>l.preventDefault(),!1),window.addEventListener("drop",l=>l.preventDefault(),!1),Sx(),Ex(t,o).finally(()=>{if(bx(),t&&o){let l=(0,Je.select)(cs.store).getEntityRecord("postType",t,o);l&&(0,Je.dispatch)(Fr.store).setupEditor(l,n,r.template)}a.render((0,Pa.jsx)(us.StrictMode,{children:(0,Pa.jsx)(Hp,{settings:r,postId:o,postType:t,initialEdits:n})}))}),a}async function Ex(e,t){let o=(0,Je.resolveSelect)(cs.store),r=(0,Je.select)(cs.store);try{await Promise.all([o.getCurrentUser(),o.getEntitiesConfig("postType"),o.getEntitiesConfig("taxonomy"),o.getEntitiesConfig("root"),o.getEntityRecords("root","taxonomy"),o.getCurrentTheme(),o.getThemeSupports(),o.getBlockPatternCategories(),o.__experimentalGetCurrentGlobalStylesId(),o.__experimentalGetCurrentThemeBaseGlobalStyles(),o.__experimentalGetCurrentThemeGlobalStylesVariations(),o.getEntityRecord("root","__unstableBase"),o.canUser("read",{kind:"root",name:"site"}),o.canUser("create",{kind:"postType",name:"attachment"}),o.canUser("create",{kind:"postType",name:"page"}),o.canUser("create",{kind:"postType",name:"wp_block"}),o.canUser("create",{kind:"postType",name:"wp_template"}),...e&&window?.__experimentalDataFormInspector?[W(o).getViewConfig("postType",e,{fields:"form"})]:[],...e&&t?[o.getPostType(e),o.getEntityRecord("postType",e,t),o.getEditedEntityRecord("postType",e,t),o.getAutosaves(e,t),o.getDefaultTemplateId({slug:"front-page"}),o.canUser("create",{kind:"postType",name:e})]:[]]);let n=[];r.canUser("read",{kind:"root",name:"site"})&&n.push(o.getEntityRecord("root","site"));let s=r.__experimentalGetCurrentGlobalStylesId();if(s&&n.push(o.canUser("update",{kind:"root",name:"globalStyles",id:s})),e&&t){let i=r.getEntityRecord("postType",e,t);if(i){let a=e==="page"?"page":"single-"+e;i.slug&&(a+="-"+i.slug),n.push(o.getDefaultTemplateId({slug:a})),i.author&&n.push(o.getUser(i.author,{context:"view",_fields:"id,name"}))}}n.length&&await Promise.all(n),s&&(r.canUser("update",{kind:"root",name:"globalStyles",id:s})?await o.getEntityRecord("root","globalStyles",s):await o.getEntityRecord("root","globalStyles",s,{context:"view"}))}catch{}}function Rx(){(0,zp.default)("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}return nm(Px);})();
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim/with-selector.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
*/
|
||
|
|
(window.wp ||= {}).editPost = wp.editPost;
|
||
|
|
})();
|