PluginProbe
Gutenberg / 22.9.0
Gutenberg v22.9.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / react-i18n / index.min.js

index.min.js in Gutenberg 22.9.0, at build/scripts/react-i18n/index.min.js

3 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";var wp;(wp||={}).reactI18n=(()=>{var I=Object.create;var a=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var i=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),P=(e,n)=>{for(var t in n)a(e,t,{get:n[t],enumerable:!0})},p=(e,n,t,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of N(n))!y.call(e,r)&&r!==t&&a(e,r,{get:()=>n[r],enumerable:!(s=R(n,r))||s.enumerable});return e};var d=(e,n,t)=>(t=e!=null?I(T(e)):{},p(n||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),E=e=>p(a({},"__esModule",{value:!0}),e);var f=i((M,x)=>{x.exports=window.wp.element});var _=i((S,l)=>{l.exports=window.wp.i18n});var b=i((U,w)=>{w.exports=window.ReactJSXRuntime});var k={};P(k,{I18nProvider:()=>L,useI18n:()=>C,withI18n:()=>j});var o=d(f(),1),u=d(_(),1),c=d(b(),1);function h(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}var m=(0,o.createContext)(h(u.defaultI18n));m.displayName="I18nContext";function L(e){let{children:n,i18n:t=u.defaultI18n}=e,[s,r]=(0,o.useReducer)(()=>[],[]);(0,o.useEffect)(()=>t.subscribe(r),[t]);let v=(0,o.useMemo)(()=>h(t),[t,s]);return(0,c.jsx)(m.Provider,{value:v,children:n})}var C=()=>(0,o.useContext)(m);function j(e){let n=s=>{let r=C();return(0,c.jsx)(e,{...s,...r})},t=e.displayName||e.name||"Component";return n.displayName=`WithI18n(${t})`,n}return E(k);})();
2 //# sourceMappingURL=index.min.js.map
3