- md5
- 9b8c42825c55da541dced754578a5c6c
- sha1
- 533e05ebb6ec2aa93b5f377e9a8f89d2300cbafb
- sha256
- d38d232305b3c797fa04f77d56bf9a90b07870e4d4412f381e1a3107d3275c88
/*! This file is auto-generated */
(function() {
"use strict";var wp;(wp||={}).plugins=(()=>{var ga=Object.create;var y=Object.defineProperty;var ha=Object.getOwnPropertyDescriptor;var ya=Object.getOwnPropertyNames;var wa=Object.getPrototypeOf,va=Object.prototype.hasOwnProperty;var i=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),Ca=(a,t)=>{for(var f in t)y(a,f,{get:t[f],enumerable:!0})},$=(a,t,f,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ya(t))!va.call(a,l)&&l!==f&&y(a,l,{get:()=>t[l],enumerable:!(o=ha(t,l))||o.enumerable});return a};var s=(a,t,f)=>(f=a!=null?ga(wa(a)):{},$(t||!a||!a.__esModule?y(f,"default",{value:a,enumerable:!0}):f,a)),Ea=a=>$(y({},"__esModule",{value:!0}),a);var w=i((ka,q)=>{q.exports=window.wp.element});var B=i((Da,H)=>{H.exports=window.wp.hooks});var W=i((Fa,j)=>{j.exports=window.wp.isShallowEqual});var J=i((Na,G)=>{G.exports=window.wp.compose});var Z=i((Ba,X)=>{X.exports=window.wp.deprecated});var v=i((Ua,K)=>{K.exports=window.ReactJSXRuntime});var sa=i(r=>{"use strict";var V=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),la=Symbol.for("react.view_transition"),xa=Symbol.for("react.client.reference");function m(a){if(typeof a=="object"&&a!==null){var t=a.$$typeof;switch(t){case V:switch(a=a.type,a){case x:case P:case b:case S:case _:case la:return a;default:switch(a=a&&a.$$typeof,a){case T:case L:case k:case A:return a;case R:return a;default:return t}}case z:return t}}}r.ContextConsumer=R;r.ContextProvider=T;r.Element=V;r.ForwardRef=L;r.Fragment=x;r.Lazy=k;r.Memo=A;r.Portal=z;r.Profiler=P;r.StrictMode=b;r.Suspense=S;r.SuspenseList=_;r.isContextConsumer=function(a){return m(a)===R};r.isContextProvider=function(a){return m(a)===T};r.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===V};r.isForwardRef=function(a){return m(a)===L};r.isFragment=function(a){return m(a)===x};r.isLazy=function(a){return m(a)===k};r.isMemo=function(a){return m(a)===A};r.isPortal=function(a){return m(a)===z};r.isProfiler=function(a){return m(a)===P};r.isStrictMode=function(a){return m(a)===b};r.isSuspense=function(a){return m(a)===S};r.isSuspenseList=function(a){return m(a)===_};r.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===x||a===P||a===b||a===S||a===_||a===la||typeof a=="object"&&a!==null&&(a.$$typeof===k||a.$$typeof===A||a.$$typeof===T||a.$$typeof===R||a.$$typeof===L||a.$$typeof===xa||a.getModuleId!==void 0)};r.typeOf=m});var ma=i((Ma,ua)=>{"use strict";ua.exports=sa()});var ia=i(($a,da)=>{da.exports=window.wp.primitives});var Sa={};Ca(Sa,{PluginArea:()=>ca,getPlugin:()=>Ra,getPlugins:()=>M,registerPlugin:()=>ba,unregisterPlugin:()=>Pa,usePluginContext:()=>ea,withPluginContext:()=>ra});function Y(a,t){var f=0,o,l;t=t||{};function u(){var e=o,N=arguments.length,h,d;a:for(;e;){if(e.args.length!==arguments.length){e=e.next;continue}for(d=0;d<N;d++)if(e.args[d]!==arguments[d]){e=e.next;continue a}return e!==o&&(e===l&&(l=e.prev),e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.next=o,e.prev=null,o.prev=e,o=e),e.val}for(h=new Array(N),d=0;d<N;d++)h[d]=arguments[d];return e={args:h,val:a.apply(null,h)},o?(o.prev=e,e.next=o):l=e,f===t.maxSize?(l=l.prev,l.next=null):f++,o=e,e.val}return u.clear=function(){o=null,l=null,f=0},u}var F=s(w(),1),n=s(B(),1),na=s(W(),1);var C=s(w(),1),Q=s(J(),1),aa=s(Z(),1),U=s(v(),1),E=(0,C.createContext)({name:null,icon:null});E.displayName="PluginContext";var ta=E.Provider;function ea(){return(0,C.useContext)(E)}var ra=a=>(0,Q.createHigherOrderComponent)(t=>((0,aa.default)("wp.plugins.withPluginContext",{since:"6.8.0",alternative:"wp.plugins.usePluginContext"}),f=>(0,U.jsx)(E.Consumer,{children:o=>(0,U.jsx)(t,{...f,...a(o,f)})})),"withPluginContext");var fa=s(w(),1),oa=class extends fa.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a){let{name:t,onError:f}=this.props;f&&f(t,a)}render(){return this.state.hasError?null:this.props.children}};var pa=s(ma(),1),c=s(B(),1);var D=s(ia(),1),O=s(v(),1),I=(0,O.jsx)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,O.jsx)(D.Path,{d:"M15.3995 11.5711L12.2175 8.38909L10.273 6.44454L7.67678 9.04074C7.3017 9.41581 7.09099 9.92452 7.09099 10.455L7.09099 13.455C7.09099 13.7202 6.98563 13.9745 6.7981 14.1621L5.14645 15.8137C4.95118 16.009 4.95118 16.3256 5.14645 16.5208L7.26777 18.6421C7.46303 18.8374 7.77961 18.8374 7.97487 18.6421L9.62652 16.9905C9.81406 16.8029 10.0684 16.6976 10.3336 16.6976H13.3336C13.8641 16.6976 14.3728 16.4869 14.7478 16.1118L17.344 13.5156L15.3995 11.5711ZM12.2175 8.38909L16.1066 4.5M15.3995 11.5711L19.2886 7.68198"})});var p={};function ba(a,t){if(typeof t!="object")return console.error("No settings object provided!"),null;if(typeof a!="string")return console.error("Plugin name must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(a))return console.error('Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'),null;p[a]&&console.error(`Plugin "${a}" is already registered.`),t=(0,c.applyFilters)("plugins.registerPlugin",t,a);let{render:f,scope:o}=t;if(!(0,pa.isValidElementType)(f))return console.error('The "render" property must be specified and must be a valid component.'),null;if(o){if(typeof o!="string")return console.error("Plugin scope must be string."),null;if(!/^[a-z][a-z0-9-]*$/.test(o))return console.error('Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'),null}return p[a]={name:a,icon:I,...t},(0,c.doAction)("plugins.pluginRegistered",t,a),t}function Pa(a){if(!p[a]){console.error('Plugin "'+a+'" is not registered.');return}let t=p[a];return delete p[a],(0,c.doAction)("plugins.pluginUnregistered",t,a),t}function Ra(a){return p[a]}function M(a){return Object.values(p).filter(t=>t.scope===a)}var g=s(v(),1),Ta=Y((a,t)=>({icon:a,name:t}));function La({scope:a,onError:t}){let f=(0,F.useMemo)(()=>{let l=[];return{subscribe(u){return(0,n.addAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered",u),(0,n.addAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered",u),()=>{(0,n.removeAction)("plugins.pluginRegistered","core/plugins/plugin-area/plugins-registered"),(0,n.removeAction)("plugins.pluginUnregistered","core/plugins/plugin-area/plugins-unregistered")}},getValue(){let u=M(a);return(0,na.isShallowEqual)(l,u)||(l=u),l}}},[a]),o=(0,F.useSyncExternalStore)(f.subscribe,f.getValue,f.getValue);return(0,g.jsx)("div",{style:{display:"none"},children:o.map(({icon:l,name:u,render:e})=>(0,g.jsx)(ta,{value:Ta(l,u),children:(0,g.jsx)(oa,{name:u,onError:t,children:(0,g.jsx)(e,{})})},u))})}var ca=La;return Ea(Sa);})();
/*! Bundled license information:
react-is/cjs/react-is.production.js:
(**
* @license React
* react-is.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 ||= {}).plugins = wp.plugins;
})();
The same content is in 2 releases, WordPress 7.2-RC1 to 7.2-RC2. See them all, or every version of this file.