at path:ROOT / wp-includes / js / dist / views.js
run:R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
5.58 KB
2026-03-11 16:18:51
R W Run
2.16 KB
2026-03-11 16:18:51
R W Run
5.58 KB
2026-03-11 16:18:51
R W Run
2.11 KB
2026-03-11 16:18:51
R W Run
15.83 KB
2026-03-11 16:18:51
R W Run
5.19 KB
2026-03-11 16:18:51
R W Run
15.94 KB
2026-03-11 16:18:51
R W Run
5.66 KB
2026-03-11 16:18:51
R W Run
9.95 KB
2026-03-11 16:18:51
R W Run
5.48 KB
2026-03-11 16:18:51
R W Run
266 By
2026-03-11 16:18:51
R W Run
75 By
2026-03-11 16:18:51
R W Run
3.09 KB
2026-03-11 16:18:51
R W Run
1.08 KB
2026-03-11 16:18:51
R W Run
70.22 KB
2026-03-11 16:18:51
R W Run
20.18 KB
2026-03-11 16:18:51
R W Run
2.23 MB
2026-03-11 16:18:51
R W Run
871.33 KB
2026-03-11 16:18:51
R W Run
2.19 MB
2026-03-11 16:18:51
R W Run
960 KB
2026-03-11 16:18:51
R W Run
6.81 KB
2026-03-11 16:18:51
R W Run
2.34 KB
2026-03-11 16:18:51
R W Run
427.52 KB
2026-03-11 16:18:51
R W Run
172.73 KB
2026-03-11 16:18:51
R W Run
171.71 KB
2026-03-11 16:18:51
R W Run
48.76 KB
2026-03-11 16:18:51
R W Run
2.39 MB
2026-03-11 16:18:51
R W Run
786.6 KB
2026-03-11 16:18:51
R W Run
142.91 KB
2026-03-11 16:18:51
R W Run
35.78 KB
2026-03-11 16:18:51
R W Run
25.66 KB
2026-03-11 16:18:51
R W Run
10.39 KB
2026-03-11 16:18:51
R W Run
216.7 KB
2026-03-11 16:18:51
R W Run
68.73 KB
2026-03-11 16:18:51
R W Run
86.45 KB
2026-03-11 16:18:51
R W Run
34.22 KB
2026-03-11 16:18:51
R W Run
4.39 KB
2026-03-11 16:18:51
R W Run
1.44 KB
2026-03-11 16:18:51
R W Run
88.15 KB
2026-03-11 16:18:51
R W Run
24.85 KB
2026-03-11 16:18:51
R W Run
790.86 KB
2026-03-11 16:18:51
R W Run
765.33 KB
2026-03-11 16:18:51
R W Run
2.25 KB
2026-03-11 16:18:51
R W Run
684 By
2026-03-11 16:18:51
R W Run
1.57 KB
2026-03-11 16:18:51
R W Run
457 By
2026-03-11 16:18:51
R W Run
34.18 KB
2026-03-11 16:18:51
R W Run
12.3 KB
2026-03-11 16:18:51
R W Run
104.66 KB
2026-03-11 16:18:51
R W Run
42.69 KB
2026-03-11 16:18:51
R W Run
1.76 MB
2026-03-11 16:18:51
R W Run
700.25 KB
2026-03-11 16:18:51
R W Run
152.38 KB
2026-03-11 16:18:51
R W Run
57.61 KB
2026-03-11 16:18:51
R W Run
1.09 MB
2026-03-11 16:18:51
R W Run
409.79 KB
2026-03-11 16:18:51
R W Run
46.17 KB
2026-03-11 16:18:51
R W Run
11.83 KB
2026-03-11 16:18:51
R W Run
2.99 KB
2026-03-11 16:18:51
R W Run
1000 By
2026-03-11 16:18:51
R W Run
71.43 KB
2026-03-11 16:18:51
R W Run
26.76 KB
2026-03-11 16:18:51
R W Run
15.64 KB
2026-03-11 16:18:51
R W Run
5.53 KB
2026-03-11 16:18:51
R W Run
2.29 KB
2026-03-11 16:18:51
R W Run
792 By
2026-03-11 16:18:51
R W Run
24.35 KB
2026-03-11 16:18:51
R W Run
5.19 KB
2026-03-11 16:18:51
R W Run
3.28 KB
2026-03-11 16:18:51
R W Run
1018 By
2026-03-11 16:18:51
R W Run
9.23 KB
2026-03-11 16:18:51
R W Run
2.98 KB
2026-03-11 16:18:51
R W Run
7.89 KB
2026-03-11 16:18:51
R W Run
2.51 KB
2026-03-11 16:18:51
R W Run
444.74 KB
2026-03-11 16:18:51
R W Run
192.02 KB
2026-03-11 16:18:51
R W Run
29.95 KB
2026-03-11 16:18:51
R W Run
4.62 KB
2026-03-11 16:18:51
R W Run
23.35 KB
2026-03-11 16:18:51
R W Run
9.72 KB
2026-03-11 16:18:51
R W Run
5.84 KB
2026-03-11 16:18:51
R W Run
2.03 KB
2026-03-11 16:18:51
R W Run
9.89 KB
2026-03-11 16:18:51
R W Run
3.43 KB
2026-03-11 16:18:51
R W Run
60.31 KB
2026-03-11 16:18:51
R W Run
21.47 KB
2026-03-11 16:18:51
R W Run
13.65 KB
2026-03-11 16:18:51
R W Run
4.23 KB
2026-03-11 16:18:51
R W Run
16.82 KB
2026-03-11 16:18:51
R W Run
5.33 KB
2026-03-11 16:18:51
R W Run
20.27 KB
2026-03-11 16:18:51
R W Run
6.85 KB
2026-03-11 16:18:51
R W Run
5.1 KB
2026-03-11 16:18:51
R W Run
1.62 KB
2026-03-11 16:18:51
R W Run
9.89 KB
2026-03-11 16:18:51
R W Run
3.3 KB
2026-03-11 16:18:51
R W Run
5.35 KB
2026-03-11 16:18:51
R W Run
2.77 KB
2026-03-11 16:18:51
R W Run
21.23 KB
2026-03-11 16:18:51
R W Run
8.68 KB
2026-03-11 16:18:51
R W Run
18.45 KB
2026-03-11 16:18:51
R W Run
5.91 KB
2026-03-11 16:18:51
R W Run
83.52 KB
2026-03-11 16:18:51
R W Run
36.42 KB
2026-03-11 16:18:51
R W Run
52.27 KB
2026-03-11 16:18:51
R W Run
13.44 KB
2026-03-11 16:18:51
R W Run
9.68 KB
2026-03-11 16:18:51
R W Run
3.08 KB
2026-03-11 16:18:51
R W Run
9.83 KB
2026-03-11 16:18:51
R W Run
2.83 KB
2026-03-11 16:18:51
R W Run
35.12 KB
2026-03-11 16:18:51
R W Run
5.92 KB
2026-03-11 16:18:51
R W Run
5.86 KB
2026-03-11 16:18:51
R W Run
1.27 KB
2026-03-11 16:18:51
R W Run
20.26 KB
2026-03-11 16:18:51
R W Run
8.33 KB
2026-03-11 16:18:51
R W Run
6.29 KB
2026-03-11 16:18:51
R W Run
1.83 KB
2026-03-11 16:18:51
R W Run
7.8 KB
2026-03-11 16:18:51
R W Run
2.68 KB
2026-03-11 16:18:51
R W Run
1.6 KB
2026-03-11 16:18:51
R W Run
303 By
2026-03-11 16:18:51
R W Run
47.61 KB
2026-03-11 16:18:51
R W Run
19.5 KB
2026-03-11 16:18:51
R W Run
13.25 KB
2026-03-11 16:18:51
R W Run
3.24 KB
2026-03-11 16:18:51
R W Run
error_log
📄views.js
1/******/ (() => { // webpackBootstrap
2/******/ "use strict";
3/******/ var __webpack_modules__ = ({
4
5/***/ 1233:
6/***/ ((module) => {
7
8module.exports = window["wp"]["preferences"];
9
10/***/ }),
11
12/***/ 6087:
13/***/ ((module) => {
14
15module.exports = window["wp"]["element"];
16
17/***/ }),
18
19/***/ 7143:
20/***/ ((module) => {
21
22module.exports = window["wp"]["data"];
23
24/***/ })
25
26/******/ });
27/************************************************************************/
28/******/ // The module cache
29/******/ var __webpack_module_cache__ = {};
30/******/
31/******/ // The require function
32/******/ function __webpack_require__(moduleId) {
33/******/ // Check if module is in cache
34/******/ var cachedModule = __webpack_module_cache__[moduleId];
35/******/ if (cachedModule !== undefined) {
36/******/ return cachedModule.exports;
37/******/ }
38/******/ // Create a new module (and put it into the cache)
39/******/ var module = __webpack_module_cache__[moduleId] = {
40/******/ // no module.id needed
41/******/ // no module.loaded needed
42/******/ exports: {}
43/******/ };
44/******/
45/******/ // Execute the module function
46/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
47/******/
48/******/ // Return the exports of the module
49/******/ return module.exports;
50/******/ }
51/******/
52/************************************************************************/
53/******/ /* webpack/runtime/define property getters */
54/******/ (() => {
55/******/ // define getter functions for harmony exports
56/******/ __webpack_require__.d = (exports, definition) => {
57/******/ for(var key in definition) {
58/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
59/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
60/******/ }
61/******/ }
62/******/ };
63/******/ })();
64/******/
65/******/ /* webpack/runtime/hasOwnProperty shorthand */
66/******/ (() => {
67/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
68/******/ })();
69/******/
70/******/ /* webpack/runtime/make namespace object */
71/******/ (() => {
72/******/ // define __esModule on exports
73/******/ __webpack_require__.r = (exports) => {
74/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
75/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
76/******/ }
77/******/ Object.defineProperty(exports, '__esModule', { value: true });
78/******/ };
79/******/ })();
80/******/
81/************************************************************************/
82var __webpack_exports__ = {};
83// ESM COMPAT FLAG
84__webpack_require__.r(__webpack_exports__);
85
86// EXPORTS
87__webpack_require__.d(__webpack_exports__, {
88 loadView: () => (/* reexport */ loadView),
89 useView: () => (/* reexport */ useView)
90});
91
92;// ./node_modules/dequal/dist/index.mjs
93var has = Object.prototype.hasOwnProperty;
94
95function find(iter, tar, key) {
96 for (key of iter.keys()) {
97 if (dequal(key, tar)) return key;
98 }
99}
100
101function dequal(foo, bar) {
102 var ctor, len, tmp;
103 if (foo === bar) return true;
104
105 if (foo && bar && (ctor=foo.constructor) === bar.constructor) {
106 if (ctor === Date) return foo.getTime() === bar.getTime();
107 if (ctor === RegExp) return foo.toString() === bar.toString();
108
109 if (ctor === Array) {
110 if ((len=foo.length) === bar.length) {
111 while (len-- && dequal(foo[len], bar[len]));
112 }
113 return len === -1;
114 }
115
116 if (ctor === Set) {
117 if (foo.size !== bar.size) {
118 return false;
119 }
120 for (len of foo) {
121 tmp = len;
122 if (tmp && typeof tmp === 'object') {
123 tmp = find(bar, tmp);
124 if (!tmp) return false;
125 }
126 if (!bar.has(tmp)) return false;
127 }
128 return true;
129 }
130
131 if (ctor === Map) {
132 if (foo.size !== bar.size) {
133 return false;
134 }
135 for (len of foo) {
136 tmp = len[0];
137 if (tmp && typeof tmp === 'object') {
138 tmp = find(bar, tmp);
139 if (!tmp) return false;
140 }
141 if (!dequal(len[1], bar.get(tmp))) {
142 return false;
143 }
144 }
145 return true;
146 }
147
148 if (ctor === ArrayBuffer) {
149 foo = new Uint8Array(foo);
150 bar = new Uint8Array(bar);
151 } else if (ctor === DataView) {
152 if ((len=foo.byteLength) === bar.byteLength) {
153 while (len-- && foo.getInt8(len) === bar.getInt8(len));
154 }
155 return len === -1;
156 }
157
158 if (ArrayBuffer.isView(foo)) {
159 if ((len=foo.byteLength) === bar.byteLength) {
160 while (len-- && foo[len] === bar[len]);
161 }
162 return len === -1;
163 }
164
165 if (!ctor || typeof foo === 'object') {
166 len = 0;
167 for (ctor in foo) {
168 if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
169 if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
170 }
171 return Object.keys(bar).length === len;
172 }
173 }
174
175 return foo !== foo && bar !== bar;
176}
177
178;// ./node_modules/@wordpress/views/build-module/preference-keys.js
179function generatePreferenceKey(kind, name, slug) {
180 return `dataviews-${kind}-${name}-${slug}`;
181}
182
183
184// EXTERNAL MODULE: external ["wp","element"]
185var external_wp_element_ = __webpack_require__(6087);
186// EXTERNAL MODULE: external ["wp","data"]
187var external_wp_data_ = __webpack_require__(7143);
188// EXTERNAL MODULE: external ["wp","preferences"]
189var external_wp_preferences_ = __webpack_require__(1233);
190;// ./node_modules/@wordpress/views/build-module/use-view.js
191
192
193
194
195
196function omit(obj, keys) {
197 const result = { ...obj };
198 for (const key of keys) {
199 delete result[key];
200 }
201 return result;
202}
203function useView(config) {
204 const { kind, name, slug, defaultView, queryParams, onChangeQueryParams } = config;
205 const preferenceKey = generatePreferenceKey(kind, name, slug);
206 const persistedView = (0,external_wp_data_.useSelect)(
207 (select) => {
208 return select(external_wp_preferences_.store).get(
209 "core/views",
210 preferenceKey
211 );
212 },
213 [preferenceKey]
214 );
215 const { set } = (0,external_wp_data_.useDispatch)(external_wp_preferences_.store);
216 const baseView = persistedView ?? defaultView;
217 const page = Number(queryParams?.page ?? baseView.page ?? 1);
218 const search = queryParams?.search ?? baseView.search ?? "";
219 const view = (0,external_wp_element_.useMemo)(() => {
220 return {
221 ...baseView,
222 page,
223 search
224 };
225 }, [baseView, page, search]);
226 const isModified = !!persistedView;
227 const updateView = (0,external_wp_element_.useCallback)(
228 (newView) => {
229 const urlParams = {
230 page: newView?.page,
231 search: newView?.search
232 };
233 const preferenceView = omit(newView, ["page", "search"]);
234 if (onChangeQueryParams && !dequal(urlParams, { page, search })) {
235 onChangeQueryParams(urlParams);
236 }
237 if (!dequal(baseView, preferenceView)) {
238 if (dequal(preferenceView, defaultView)) {
239 set("core/views", preferenceKey, void 0);
240 } else {
241 set("core/views", preferenceKey, preferenceView);
242 }
243 }
244 },
245 [
246 onChangeQueryParams,
247 page,
248 search,
249 baseView,
250 defaultView,
251 set,
252 preferenceKey
253 ]
254 );
255 const resetToDefault = (0,external_wp_element_.useCallback)(() => {
256 set("core/views", preferenceKey, void 0);
257 }, [preferenceKey, set]);
258 return {
259 view,
260 isModified,
261 updateView,
262 resetToDefault
263 };
264}
265
266
267;// ./node_modules/@wordpress/views/build-module/load-view.js
268
269
270
271async function loadView(config) {
272 const { kind, name, slug, defaultView, queryParams } = config;
273 const preferenceKey = generatePreferenceKey(kind, name, slug);
274 const persistedView = (0,external_wp_data_.select)(external_wp_preferences_.store).get(
275 "core/views",
276 preferenceKey
277 );
278 const baseView = persistedView ?? defaultView;
279 const page = queryParams?.page ?? 1;
280 const search = queryParams?.search ?? "";
281 return {
282 ...baseView,
283 page,
284 search
285 };
286}
287
288
289;// ./node_modules/@wordpress/views/build-module/index.js
290
291
292
293
294(window.wp = window.wp || {}).views = __webpack_exports__;
295/******/ })()
296;