1 this["wp"] = this["wp"] || {}; this["wp"]["dataControls"] = |
1 /******/ (function() { // webpackBootstrap |
2 /******/ (function(modules) { // webpackBootstrap |
2 /******/ "use strict"; |
3 /******/ // The module cache |
3 /******/ // The require scope |
4 /******/ var installedModules = {}; |
4 /******/ var __webpack_require__ = {}; |
5 /******/ |
5 /******/ |
6 /******/ // The require function |
6 /************************************************************************/ |
7 /******/ function __webpack_require__(moduleId) { |
7 /******/ /* webpack/runtime/compat get default export */ |
8 /******/ |
8 /******/ !function() { |
9 /******/ // Check if module is in cache |
9 /******/ // getDefaultExport function for compatibility with non-harmony modules |
10 /******/ if(installedModules[moduleId]) { |
10 /******/ __webpack_require__.n = function(module) { |
11 /******/ return installedModules[moduleId].exports; |
11 /******/ var getter = module && module.__esModule ? |
12 /******/ } |
12 /******/ function() { return module['default']; } : |
13 /******/ // Create a new module (and put it into the cache) |
13 /******/ function() { return module; }; |
14 /******/ var module = installedModules[moduleId] = { |
14 /******/ __webpack_require__.d(getter, { a: getter }); |
15 /******/ i: moduleId, |
15 /******/ return getter; |
16 /******/ l: false, |
|
17 /******/ exports: {} |
|
18 /******/ }; |
16 /******/ }; |
19 /******/ |
17 /******/ }(); |
20 /******/ // Execute the module function |
18 /******/ |
21 /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
19 /******/ /* webpack/runtime/define property getters */ |
22 /******/ |
20 /******/ !function() { |
23 /******/ // Flag the module as loaded |
21 /******/ // define getter functions for harmony exports |
24 /******/ module.l = true; |
22 /******/ __webpack_require__.d = function(exports, definition) { |
25 /******/ |
23 /******/ for(var key in definition) { |
26 /******/ // Return the exports of the module |
24 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { |
27 /******/ return module.exports; |
25 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); |
28 /******/ } |
26 /******/ } |
29 /******/ |
27 /******/ } |
30 /******/ |
28 /******/ }; |
31 /******/ // expose the modules object (__webpack_modules__) |
29 /******/ }(); |
32 /******/ __webpack_require__.m = modules; |
30 /******/ |
33 /******/ |
31 /******/ /* webpack/runtime/hasOwnProperty shorthand */ |
34 /******/ // expose the module cache |
32 /******/ !function() { |
35 /******/ __webpack_require__.c = installedModules; |
33 /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } |
36 /******/ |
34 /******/ }(); |
37 /******/ // define getter function for harmony exports |
35 /******/ |
38 /******/ __webpack_require__.d = function(exports, name, getter) { |
36 /******/ /* webpack/runtime/make namespace object */ |
39 /******/ if(!__webpack_require__.o(exports, name)) { |
37 /******/ !function() { |
40 /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
38 /******/ // define __esModule on exports |
41 /******/ } |
39 /******/ __webpack_require__.r = function(exports) { |
42 /******/ }; |
40 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
43 /******/ |
41 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
44 /******/ // define __esModule on exports |
42 /******/ } |
45 /******/ __webpack_require__.r = function(exports) { |
43 /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
46 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
44 /******/ }; |
47 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
45 /******/ }(); |
48 /******/ } |
46 /******/ |
49 /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
|
50 /******/ }; |
|
51 /******/ |
|
52 /******/ // create a fake namespace object |
|
53 /******/ // mode & 1: value is a module id, require it |
|
54 /******/ // mode & 2: merge all properties of value into the ns |
|
55 /******/ // mode & 4: return value when already ns object |
|
56 /******/ // mode & 8|1: behave like require |
|
57 /******/ __webpack_require__.t = function(value, mode) { |
|
58 /******/ if(mode & 1) value = __webpack_require__(value); |
|
59 /******/ if(mode & 8) return value; |
|
60 /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
|
61 /******/ var ns = Object.create(null); |
|
62 /******/ __webpack_require__.r(ns); |
|
63 /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
|
64 /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
|
65 /******/ return ns; |
|
66 /******/ }; |
|
67 /******/ |
|
68 /******/ // getDefaultExport function for compatibility with non-harmony modules |
|
69 /******/ __webpack_require__.n = function(module) { |
|
70 /******/ var getter = module && module.__esModule ? |
|
71 /******/ function getDefault() { return module['default']; } : |
|
72 /******/ function getModuleExports() { return module; }; |
|
73 /******/ __webpack_require__.d(getter, 'a', getter); |
|
74 /******/ return getter; |
|
75 /******/ }; |
|
76 /******/ |
|
77 /******/ // Object.prototype.hasOwnProperty.call |
|
78 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
|
79 /******/ |
|
80 /******/ // __webpack_public_path__ |
|
81 /******/ __webpack_require__.p = ""; |
|
82 /******/ |
|
83 /******/ |
|
84 /******/ // Load entry module and return exports |
|
85 /******/ return __webpack_require__(__webpack_require__.s = "71Oy"); |
|
86 /******/ }) |
|
87 /************************************************************************/ |
47 /************************************************************************/ |
88 /******/ ({ |
48 var __webpack_exports__ = {}; |
89 |
49 // ESM COMPAT FLAG |
90 /***/ "1ZqX": |
|
91 /***/ (function(module, exports) { |
|
92 |
|
93 (function() { module.exports = window["wp"]["data"]; }()); |
|
94 |
|
95 /***/ }), |
|
96 |
|
97 /***/ "71Oy": |
|
98 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
99 |
|
100 "use strict"; |
|
101 __webpack_require__.r(__webpack_exports__); |
50 __webpack_require__.r(__webpack_exports__); |
102 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiFetch", function() { return apiFetch; }); |
51 |
103 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "select", function() { return select; }); |
52 // EXPORTS |
104 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syncSelect", function() { return syncSelect; }); |
53 __webpack_require__.d(__webpack_exports__, { |
105 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; }); |
54 "__unstableAwaitPromise": function() { return /* binding */ __unstableAwaitPromise; }, |
106 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__unstableAwaitPromise", function() { return __unstableAwaitPromise; }); |
55 "apiFetch": function() { return /* binding */ apiFetch; }, |
107 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "controls", function() { return controls; }); |
56 "controls": function() { return /* binding */ controls; }, |
108 /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ywyh"); |
57 "dispatch": function() { return /* binding */ dispatch; }, |
109 /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_0__); |
58 "select": function() { return /* binding */ build_module_select; }, |
110 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1ZqX"); |
59 "syncSelect": function() { return /* binding */ syncSelect; } |
111 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); |
60 }); |
112 /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("NMb1"); |
61 |
113 /* harmony import */ var _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2__); |
62 ;// CONCATENATED MODULE: external ["wp","apiFetch"] |
|
63 var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; |
|
64 var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); |
|
65 ;// CONCATENATED MODULE: external ["wp","data"] |
|
66 var external_wp_data_namespaceObject = window["wp"]["data"]; |
|
67 ;// CONCATENATED MODULE: external ["wp","deprecated"] |
|
68 var external_wp_deprecated_namespaceObject = window["wp"]["deprecated"]; |
|
69 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject); |
|
70 ;// CONCATENATED MODULE: ./node_modules/@wordpress/data-controls/build-module/index.js |
114 /** |
71 /** |
115 * WordPress dependencies |
72 * WordPress dependencies |
116 */ |
73 */ |
117 |
74 |
118 |
75 |
148 * Alias for the `resolveSelect` built-in control in the `@wordpress/data` package. |
105 * Alias for the `resolveSelect` built-in control in the `@wordpress/data` package. |
149 * |
106 * |
150 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
107 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
151 */ |
108 */ |
152 |
109 |
153 function select(...args) { |
110 function build_module_select() { |
154 _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2___default()('`select` control in `@wordpress/data-controls`', { |
111 external_wp_deprecated_default()('`select` control in `@wordpress/data-controls`', { |
155 since: '5.7', |
112 since: '5.7', |
156 alternative: 'built-in `resolveSelect` control in `@wordpress/data`' |
113 alternative: 'built-in `resolveSelect` control in `@wordpress/data`' |
157 }); |
114 }); |
158 return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].resolveSelect(...args); |
115 return external_wp_data_namespaceObject.controls.resolveSelect(...arguments); |
159 } |
116 } |
160 /** |
117 /** |
161 * Control for calling a selector in a registered data store. |
118 * Control for calling a selector in a registered data store. |
162 * Alias for the `select` built-in control in the `@wordpress/data` package. |
119 * Alias for the `select` built-in control in the `@wordpress/data` package. |
163 * |
120 * |
164 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
121 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
165 */ |
122 */ |
166 |
123 |
167 function syncSelect(...args) { |
124 function syncSelect() { |
168 _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2___default()('`syncSelect` control in `@wordpress/data-controls`', { |
125 external_wp_deprecated_default()('`syncSelect` control in `@wordpress/data-controls`', { |
169 since: '5.7', |
126 since: '5.7', |
170 alternative: 'built-in `select` control in `@wordpress/data`' |
127 alternative: 'built-in `select` control in `@wordpress/data`' |
171 }); |
128 }); |
172 return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].select(...args); |
129 return external_wp_data_namespaceObject.controls.select(...arguments); |
173 } |
130 } |
174 /** |
131 /** |
175 * Control for dispatching an action in a registered data store. |
132 * Control for dispatching an action in a registered data store. |
176 * Alias for the `dispatch` control in the `@wordpress/data` package. |
133 * Alias for the `dispatch` control in the `@wordpress/data` package. |
177 * |
134 * |
178 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
135 * @param {Array} args Arguments passed without change to the `@wordpress/data` control. |
179 */ |
136 */ |
180 |
137 |
181 function dispatch(...args) { |
138 function dispatch() { |
182 _wordpress_deprecated__WEBPACK_IMPORTED_MODULE_2___default()('`dispatch` control in `@wordpress/data-controls`', { |
139 external_wp_deprecated_default()('`dispatch` control in `@wordpress/data-controls`', { |
183 since: '5.7', |
140 since: '5.7', |
184 alternative: 'built-in `dispatch` control in `@wordpress/data`' |
141 alternative: 'built-in `dispatch` control in `@wordpress/data`' |
185 }); |
142 }); |
186 return _wordpress_data__WEBPACK_IMPORTED_MODULE_1__["controls"].dispatch(...args); |
143 return external_wp_data_namespaceObject.controls.dispatch(...arguments); |
187 } |
144 } |
188 /** |
145 /** |
189 * Dispatches a control action for awaiting on a promise to be resolved. |
146 * Dispatches a control action for awaiting on a promise to be resolved. |
190 * |
147 * |
191 * @param {Object} promise Promise to wait for. |
148 * @param {Object} promise Promise to wait for. |