Current File : /home/resuelf/www/wp-content/plugins/gutenberg/build/react-i18n/index.min.js
!function(){"use strict";var n={d:function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r:function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},e={};n.r(e),n.d(e,{I18nProvider:function(){return c},useI18n:function(){return a},withI18n:function(){return d}});var t=window.React,o=window.wp.element,r=window.wp.i18n;function i(n){return{__:n.__.bind(n),_x:n._x.bind(n),_n:n._n.bind(n),_nx:n._nx.bind(n),isRTL:n.isRTL.bind(n),hasTranslation:n.hasTranslation.bind(n)}}const u=(0,o.createContext)(i(r.defaultI18n));function c(n){const{children:e,i18n:c=r.defaultI18n}=n,[a,d]=(0,o.useReducer)((()=>[]),[]);(0,o.useEffect)((()=>c.subscribe(d)),[c]);const s=(0,o.useMemo)((()=>i(c)),[c,a]);return(0,t.createElement)(u.Provider,{value:s},e)}const a=()=>(0,o.useContext)(u);function d(n){const e=e=>{const o=a();return(0,t.createElement)(n,{...e,...o})},o=n.displayName||n.name||"Component";return e.displayName=`WithI18n(${o})`,e}(window.wp=window.wp||{}).reactI18n=e}();
//# sourceMappingURL=index.min.js.map