b0y-101 Mini Shell


Current Path : E:/www/km/wp2/wp-content/plugins/gutenberg/build/react-i18n/
File Upload :
Current File : E:/www/km/wp2/wp-content/plugins/gutenberg/build/react-i18n/index.min.js

(()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{I18nProvider:()=>a,useI18n:()=>d,withI18n:()=>s});const t=window.wp.element,o=window.wp.i18n;function r(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)}}const i=(0,t.createContext)(r(o.defaultI18n));function a(e){const{children:n,i18n:a=o.defaultI18n}=e,[d,s]=(0,t.useReducer)((()=>[]),[]);(0,t.useEffect)((()=>a.subscribe(s)),[a]);const c=(0,t.useMemo)((()=>r(a)),[a,d]);return(0,t.createElement)(i.Provider,{value:c},n)}const d=()=>(0,t.useContext)(i);function s(e){const n=n=>{const o=d();return(0,t.createElement)(e,{...n,...o})},o=e.displayName||e.name||"Component";return n.displayName=`WithI18n(${o})`,n}(window.wp=window.wp||{}).reactI18n=n})();
//# sourceMappingURL=index.min.js.map

Copyright © 2019 by b0y-101