PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / build / js / commands / scf-admin.js
secure-custom-fields / assets / build / js / commands Last commit date
scf-admin.asset.php 2 months ago scf-admin.js 2 months ago scf-admin.js.map 2 months ago scf-admin.min.asset.php 2 months ago scf-admin.min.js 2 months ago scf-custom-post-types.asset.php 1 week ago scf-custom-post-types.js 1 week ago scf-custom-post-types.js.map 1 week ago scf-custom-post-types.min.asset.php 1 week ago scf-custom-post-types.min.js 1 week ago
scf-admin.js
573 lines
1 /******/ (() => { // webpackBootstrap
2 /******/ "use strict";
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "./node_modules/@wordpress/icons/build-module/library/category.js":
6 /*!************************************************************************!*\
7 !*** ./node_modules/@wordpress/icons/build-module/library/category.js ***!
8 \************************************************************************/
9 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
11 __webpack_require__.r(__webpack_exports__);
12 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
14 /* harmony export */ });
15 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
16 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
17 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
18 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
19 /**
20 * WordPress dependencies
21 */
22
23
24 const category = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
25 viewBox: "0 0 24 24",
26 xmlns: "http://www.w3.org/2000/svg",
27 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
28 d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",
29 fillRule: "evenodd",
30 clipRule: "evenodd"
31 })
32 });
33 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (category);
34 //# sourceMappingURL=category.js.map
35
36 /***/ }),
37
38 /***/ "./node_modules/@wordpress/icons/build-module/library/download.js":
39 /*!************************************************************************!*\
40 !*** ./node_modules/@wordpress/icons/build-module/library/download.js ***!
41 \************************************************************************/
42 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
43
44 __webpack_require__.r(__webpack_exports__);
45 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
47 /* harmony export */ });
48 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
49 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
50 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
51 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
52 /**
53 * WordPress dependencies
54 */
55
56
57 const download = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
58 xmlns: "http://www.w3.org/2000/svg",
59 viewBox: "0 0 24 24",
60 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
61 d: "M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"
62 })
63 });
64 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (download);
65 //# sourceMappingURL=download.js.map
66
67 /***/ }),
68
69 /***/ "./node_modules/@wordpress/icons/build-module/library/layout.js":
70 /*!**********************************************************************!*\
71 !*** ./node_modules/@wordpress/icons/build-module/library/layout.js ***!
72 \**********************************************************************/
73 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
74
75 __webpack_require__.r(__webpack_exports__);
76 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
77 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
78 /* harmony export */ });
79 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
80 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
81 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
82 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
83 /**
84 * WordPress dependencies
85 */
86
87
88 const layout = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
89 xmlns: "http://www.w3.org/2000/svg",
90 viewBox: "0 0 24 24",
91 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
92 d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
93 })
94 });
95 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (layout);
96 //# sourceMappingURL=layout.js.map
97
98 /***/ }),
99
100 /***/ "./node_modules/@wordpress/icons/build-module/library/plus.js":
101 /*!********************************************************************!*\
102 !*** ./node_modules/@wordpress/icons/build-module/library/plus.js ***!
103 \********************************************************************/
104 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
105
106 __webpack_require__.r(__webpack_exports__);
107 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
108 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
109 /* harmony export */ });
110 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
111 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
112 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
113 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
114 /**
115 * WordPress dependencies
116 */
117
118
119 const plus = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
120 xmlns: "http://www.w3.org/2000/svg",
121 viewBox: "0 0 24 24",
122 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
123 d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
124 })
125 });
126 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plus);
127 //# sourceMappingURL=plus.js.map
128
129 /***/ }),
130
131 /***/ "./node_modules/@wordpress/icons/build-module/library/post-list.js":
132 /*!*************************************************************************!*\
133 !*** ./node_modules/@wordpress/icons/build-module/library/post-list.js ***!
134 \*************************************************************************/
135 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
136
137 __webpack_require__.r(__webpack_exports__);
138 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
139 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
140 /* harmony export */ });
141 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
142 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
143 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
144 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
145 /**
146 * WordPress dependencies
147 */
148
149
150 const postList = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
151 viewBox: "0 0 24 24",
152 xmlns: "http://www.w3.org/2000/svg",
153 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
154 d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"
155 })
156 });
157 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (postList);
158 //# sourceMappingURL=post-list.js.map
159
160 /***/ }),
161
162 /***/ "./node_modules/@wordpress/icons/build-module/library/settings.js":
163 /*!************************************************************************!*\
164 !*** ./node_modules/@wordpress/icons/build-module/library/settings.js ***!
165 \************************************************************************/
166 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
167
168 __webpack_require__.r(__webpack_exports__);
169 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
170 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
171 /* harmony export */ });
172 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
173 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
174 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
175 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
176 /**
177 * WordPress dependencies
178 */
179
180
181 const settings = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
182 xmlns: "http://www.w3.org/2000/svg",
183 viewBox: "0 0 24 24",
184 children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
185 d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
186 }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
187 d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
188 })]
189 });
190 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (settings);
191 //# sourceMappingURL=settings.js.map
192
193 /***/ }),
194
195 /***/ "./node_modules/@wordpress/icons/build-module/library/tool.js":
196 /*!********************************************************************!*\
197 !*** ./node_modules/@wordpress/icons/build-module/library/tool.js ***!
198 \********************************************************************/
199 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
200
201 __webpack_require__.r(__webpack_exports__);
202 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
203 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
204 /* harmony export */ });
205 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
206 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
207 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
208 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
209 /**
210 * WordPress dependencies
211 */
212
213
214 const tool = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
215 xmlns: "http://www.w3.org/2000/svg",
216 viewBox: "0 0 24 24",
217 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
218 d: "M14.103 7.128l2.26-2.26a4 4 0 00-5.207 4.804L5.828 15a2 2 0 102.828 2.828l5.329-5.328a4 4 0 004.804-5.208l-2.261 2.26-1.912-.512-.513-1.912zm-7.214 9.64a.5.5 0 11.707-.707.5.5 0 01-.707.707z"
219 })
220 });
221 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tool);
222 //# sourceMappingURL=tool.js.map
223
224 /***/ }),
225
226 /***/ "./node_modules/@wordpress/icons/build-module/library/upload.js":
227 /*!**********************************************************************!*\
228 !*** ./node_modules/@wordpress/icons/build-module/library/upload.js ***!
229 \**********************************************************************/
230 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
231
232 __webpack_require__.r(__webpack_exports__);
233 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
234 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
235 /* harmony export */ });
236 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
237 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
238 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
239 /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
240 /**
241 * WordPress dependencies
242 */
243
244
245 const upload = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
246 xmlns: "http://www.w3.org/2000/svg",
247 viewBox: "0 0 24 24",
248 children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
249 d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
250 })
251 });
252 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (upload);
253 //# sourceMappingURL=upload.js.map
254
255 /***/ }),
256
257 /***/ "@wordpress/data":
258 /*!******************************!*\
259 !*** external ["wp","data"] ***!
260 \******************************/
261 /***/ ((module) => {
262
263 module.exports = window["wp"]["data"];
264
265 /***/ }),
266
267 /***/ "@wordpress/i18n":
268 /*!******************************!*\
269 !*** external ["wp","i18n"] ***!
270 \******************************/
271 /***/ ((module) => {
272
273 module.exports = window["wp"]["i18n"];
274
275 /***/ }),
276
277 /***/ "@wordpress/primitives":
278 /*!************************************!*\
279 !*** external ["wp","primitives"] ***!
280 \************************************/
281 /***/ ((module) => {
282
283 module.exports = window["wp"]["primitives"];
284
285 /***/ }),
286
287 /***/ "@wordpress/url":
288 /*!*****************************!*\
289 !*** external ["wp","url"] ***!
290 \*****************************/
291 /***/ ((module) => {
292
293 module.exports = window["wp"]["url"];
294
295 /***/ }),
296
297 /***/ "react/jsx-runtime":
298 /*!**********************************!*\
299 !*** external "ReactJSXRuntime" ***!
300 \**********************************/
301 /***/ ((module) => {
302
303 module.exports = window["ReactJSXRuntime"];
304
305 /***/ })
306
307 /******/ });
308 /************************************************************************/
309 /******/ // The module cache
310 /******/ var __webpack_module_cache__ = {};
311 /******/
312 /******/ // The require function
313 /******/ function __webpack_require__(moduleId) {
314 /******/ // Check if module is in cache
315 /******/ var cachedModule = __webpack_module_cache__[moduleId];
316 /******/ if (cachedModule !== undefined) {
317 /******/ return cachedModule.exports;
318 /******/ }
319 /******/ // Create a new module (and put it into the cache)
320 /******/ var module = __webpack_module_cache__[moduleId] = {
321 /******/ // no module.id needed
322 /******/ // no module.loaded needed
323 /******/ exports: {}
324 /******/ };
325 /******/
326 /******/ // Execute the module function
327 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
328 /******/
329 /******/ // Return the exports of the module
330 /******/ return module.exports;
331 /******/ }
332 /******/
333 /************************************************************************/
334 /******/ /* webpack/runtime/compat get default export */
335 /******/ (() => {
336 /******/ // getDefaultExport function for compatibility with non-harmony modules
337 /******/ __webpack_require__.n = (module) => {
338 /******/ var getter = module && module.__esModule ?
339 /******/ () => (module['default']) :
340 /******/ () => (module);
341 /******/ __webpack_require__.d(getter, { a: getter });
342 /******/ return getter;
343 /******/ };
344 /******/ })();
345 /******/
346 /******/ /* webpack/runtime/define property getters */
347 /******/ (() => {
348 /******/ // define getter functions for harmony exports
349 /******/ __webpack_require__.d = (exports, definition) => {
350 /******/ for(var key in definition) {
351 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
352 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
353 /******/ }
354 /******/ }
355 /******/ };
356 /******/ })();
357 /******/
358 /******/ /* webpack/runtime/hasOwnProperty shorthand */
359 /******/ (() => {
360 /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
361 /******/ })();
362 /******/
363 /******/ /* webpack/runtime/make namespace object */
364 /******/ (() => {
365 /******/ // define __esModule on exports
366 /******/ __webpack_require__.r = (exports) => {
367 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
368 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
369 /******/ }
370 /******/ Object.defineProperty(exports, '__esModule', { value: true });
371 /******/ };
372 /******/ })();
373 /******/
374 /************************************************************************/
375 var __webpack_exports__ = {};
376 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
377 (() => {
378 /*!**************************************************!*\
379 !*** ./assets/src/js/commands/admin-commands.js ***!
380 \**************************************************/
381 __webpack_require__.r(__webpack_exports__);
382 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
383 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
384 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
385 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
386 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url");
387 /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__);
388 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/category.js");
389 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/download.js");
390 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/layout.js");
391 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/plus.js");
392 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/post-list.js");
393 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/settings.js");
394 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/tool.js");
395 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/upload.js");
396 /**
397 * Admin Commands
398 *
399 * Core WordPress commands for Secure Custom Fields administration.
400 * This file registers navigation commands for all primary SCF admin screens,
401 * enabling quick access through the WordPress commands interface (Cmd+K / Ctrl+K).
402 *
403 * @since SCF 6.5.0
404 */
405
406 /**
407 * WordPress dependencies
408 */
409
410
411
412
413
414 /**
415 * Register admin commands for SCF
416 */
417 const registerAdminCommands = () => {
418 if (!(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('core/commands') || !(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.dispatch)('core/commands')) {
419 return;
420 }
421 const registeredCommands = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.select)('core/commands').getCommands();
422 const commandStore = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.dispatch)('core/commands');
423 const viewCommands = [{
424 name: 'field-groups',
425 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Field Groups', 'secure-custom-fields'),
426 url: 'edit.php',
427 urlArgs: {
428 post_type: 'acf-field-group'
429 },
430 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"],
431 keywords: ['acf', 'custom fields', 'field editor', 'manage fields']
432 }, {
433 name: 'post-types',
434 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Post Types', 'secure-custom-fields'),
435 url: 'edit.php',
436 urlArgs: {
437 post_type: 'acf-post-type'
438 },
439 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__["default"],
440 keywords: ['cpt', 'content types', 'manage post types']
441 }, {
442 name: 'taxonomies',
443 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Taxonomies', 'secure-custom-fields'),
444 url: 'edit.php',
445 urlArgs: {
446 post_type: 'acf-taxonomy'
447 },
448 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__["default"],
449 keywords: ['categories', 'tags', 'terms', 'custom taxonomies']
450 }, {
451 name: 'options-pages',
452 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Options Pages', 'secure-custom-fields'),
453 url: 'edit.php',
454 urlArgs: {
455 post_type: 'acf-ui-options-page'
456 },
457 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__["default"],
458 keywords: ['settings', 'global options', 'site options']
459 }, {
460 name: 'tools',
461 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('SCF Tools', 'secure-custom-fields'),
462 url: 'admin.php',
463 urlArgs: {
464 page: 'acf-tools'
465 },
466 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"],
467 keywords: ['utilities', 'import export', 'json']
468 }, {
469 name: 'import',
470 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Import SCF Data', 'secure-custom-fields'),
471 url: 'admin.php',
472 urlArgs: {
473 page: 'acf-tools',
474 tool: 'import'
475 },
476 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"],
477 keywords: ['upload', 'json', 'migration', 'transfer']
478 }, {
479 name: 'export',
480 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Export SCF Data', 'secure-custom-fields'),
481 url: 'admin.php',
482 urlArgs: {
483 page: 'acf-tools',
484 tool: 'export'
485 },
486 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"],
487 keywords: ['download', 'json', 'backup', 'migration']
488 }];
489
490 // Create commands - not in SCF's admin menu, so not duplicated.
491 const createCommands = [{
492 name: 'new-field-group',
493 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Create New Field Group', 'secure-custom-fields'),
494 url: 'post-new.php',
495 urlArgs: {
496 post_type: 'acf-field-group'
497 },
498 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__["default"],
499 keywords: ['add', 'new', 'create', 'field group', 'custom fields']
500 }, {
501 name: 'new-post-type',
502 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Create New Post Type', 'secure-custom-fields'),
503 url: 'post-new.php',
504 urlArgs: {
505 post_type: 'acf-post-type'
506 },
507 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__["default"],
508 keywords: ['add', 'new', 'create', 'cpt', 'content type']
509 }, {
510 name: 'new-taxonomy',
511 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Create New Taxonomy', 'secure-custom-fields'),
512 url: 'post-new.php',
513 urlArgs: {
514 post_type: 'acf-taxonomy'
515 },
516 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__["default"],
517 keywords: ['add', 'new', 'create', 'taxonomy', 'categories', 'tags']
518 }, {
519 name: 'new-options-page',
520 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Create New Options Page', 'secure-custom-fields'),
521 url: 'post-new.php',
522 urlArgs: {
523 post_type: 'acf-ui-options-page'
524 },
525 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__["default"],
526 keywords: ['add', 'new', 'create', 'options', 'settings page']
527 }];
528 const registerCommand = command => {
529 commandStore.registerCommand({
530 name: 'scf/' + command.name,
531 label: command.label,
532 icon: command.icon,
533 keywords: command.keywords,
534 callback: ({
535 close
536 }) => {
537 document.location = (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_2__.addQueryArgs)(command.url, command.urlArgs);
538 close();
539 }
540 });
541 };
542
543 // WordPress 6.9+ adds Command Palette commands for all admin menu items.
544 // For older versions, we need to register them manually. The most reliable way to
545 // detect this is to check if the commands are already registered.
546 viewCommands.forEach(command => {
547 const commandUrl = (0,_wordpress_url__WEBPACK_IMPORTED_MODULE_2__.addQueryArgs)(command.url, command.urlArgs);
548 // WordPress stores destination URLs in the command *name*, appended to
549 // the menu slug (which is also a relative URL), resulting in somewhat
550 // peculiar naming, e.g.
551 // edit.php?post_type=acf-field-group-edit.php?post_type=acf-ui-options-page
552 if (registeredCommands.some(cmd => cmd.name.endsWith(commandUrl))) {
553 return;
554 }
555 registerCommand(command);
556 });
557
558 // "Create New" commands are not automatically registered by WordPress,
559 // so we always register them.
560 createCommands.forEach(registerCommand);
561 };
562 if ('requestIdleCallback' in window) {
563 window.requestIdleCallback(registerAdminCommands, {
564 timeout: 500
565 });
566 } else {
567 setTimeout(registerAdminCommands, 500);
568 }
569 })();
570
571 /******/ })()
572 ;
573 //# sourceMappingURL=scf-admin.js.map