File "index.min.js"
Full Path: /home/pumpbmko/public_html/wp-content/plugins/gutenberg/build/react-i18n/index.min.js
File size: 1.13 KB
MIME-type: text/plain
Charset: utf-8
(()=>{"use strict";var n={d:(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:(n,e)=>Object.prototype.hasOwnProperty.call(n,e),r: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:()=>s,useI18n:()=>a,withI18n:()=>u});const t=window.wp.element,o=window.wp.i18n,i=window.ReactJSXRuntime;function r(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 d=(0,t.createContext)(r(o.defaultI18n));function s(n){const{children:e,i18n:s=o.defaultI18n}=n,[a,u]=(0,t.useReducer)((()=>[]),[]);(0,t.useEffect)((()=>s.subscribe(u)),[s]);const c=(0,t.useMemo)((()=>r(s)),[s,a]);return(0,i.jsx)(d.Provider,{value:c,children:e})}const a=()=>(0,t.useContext)(d);function u(n){const e=e=>{const t=a();return(0,i.jsx)(n,{...e,...t})},t=n.displayName||n.name||"Component";return e.displayName=`WithI18n(${t})`,e}(window.wp=window.wp||{}).reactI18n=e})();
//# sourceMappingURL=index.min.js.map