var
/
www
/
html
/
servotec-doerpen
/
wp-includes
/
js
/
dist
| uid:33
react-i18n.js
[X]
"use strict"; var wp; (wp ||= {}).reactI18n = (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // package-external:@wordpress/element var require_element = __commonJS({ "package-external:@wordpress/element"(exports, module) { module.exports = window.wp.element; } }); // package-external:@wordpress/i18n var require_i18n = __commonJS({ "package-external:@wordpress/i18n"(exports, module) { module.exports = window.wp.i18n; } }); // vendor-external:react/jsx-runtime var require_jsx_runtime = __commonJS({ "vendor-external:react/jsx-runtime"(exports, module) { module.exports = window.ReactJSXRuntime; } }); // packages/react-i18n/build-module/index.mjs var index_exports = {}; __export(index_exports, { I18nProvider: () => I18nProvider, useI18n: () => useI18n, withI18n: () => withI18n }); var import_element = __toESM(require_element(), 1); var import_i18n = __toESM(require_i18n(), 1); var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); function makeContextValue(i18n) { return { __: i18n.__.bind(i18n), _x: i18n._x.bind(i18n), _n: i18n._n.bind(i18n), _nx: i18n._nx.bind(i18n), isRTL: i18n.isRTL.bind(i18n), hasTranslation: i18n.hasTranslation.bind(i18n) }; } var I18nContext = (0, import_element.createContext)(makeContextValue(import_i18n.defaultI18n)); I18nContext.displayName = "I18nContext"; function I18nProvider(props) { const { children, i18n = import_i18n.defaultI18n } = props; const [update, forceUpdate] = (0, import_element.useReducer)(() => [], []); (0, import_element.useEffect)(() => i18n.subscribe(forceUpdate), [i18n]); const value = (0, import_element.useMemo)(() => makeContextValue(i18n), [i18n, update]); return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(I18nContext.Provider, { value, children }); } var useI18n = () => (0, import_element.useContext)(I18nContext); function withI18n(InnerComponent) { const EnhancedComponent = (props) => { const i18nProps = useI18n(); return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InnerComponent, { ...props, ...i18nProps }); }; const innerComponentName = InnerComponent.displayName || InnerComponent.name || "Component"; EnhancedComponent.displayName = `WithI18n(${innerComponentName})`; return EnhancedComponent; } return __toCommonJS(index_exports); })();
development/
-
O
R
D
script-modules/
-
O
R
D
vendor/
-
O
R
D
base-styles.js
48
V
E
R
D
block-serialization-default-parser.js
6.5K
V
E
R
D
block-serialization-default-parser.min.js
2.4K
V
E
R
D
block-serialization-spec-parser.js
50.5K
V
E
R
D
block-serialization-spec-parser.min.js
10.4K
V
E
R
D
blocks.js
381.1K
V
E
R
D
core-commands.js
28.7K
V
E
R
D
core-commands.min.js
11.9K
V
E
R
D
core-data.js
612K
V
E
R
D
core-data.min.js
210.5K
V
E
R
D
customize-widgets.min.js
36.6K
V
E
R
D
date.js
176.3K
V
E
R
D
deprecated.js
3K
V
E
R
D
escape-html.js
2.3K
V
E
R
D
format-library.min.js
28.9K
V
E
R
D
hooks.js
12K
V
E
R
D
i18n.min.js
5.6K
V
E
R
D
keyboard-shortcuts.min.js
3.4K
V
E
R
D
list-reusable-blocks.js
13.1K
V
E
R
D
list-reusable-blocks.min.js
5.2K
V
E
R
D
nux.min.js
4K
V
E
R
D
plugins.min.js
4.8K
V
E
R
D
primitives.js
5.1K
V
E
R
D
react-i18n.js
3.9K
V
E
R
D
redux-routine.min.js
9.6K
V
E
R
D
reusable-blocks.min.js
7.2K
V
E
R
D
style-engine.js
17.6K
V
E
R
D
theme.min.js
56.1K
V
E
R
D
token-list.js
6.1K
V
E
R
D
token-list.min.js
1.6K
V
E
R
D
undo-manager.min.js
1.7K
V
E
R
D
viewport.min.js
2.2K
V
E
R
D
warning.js
1.5K
V
E
R
D
widgets.min.js
20.8K
V
E
R
D