80 /******/ // __webpack_public_path__ |
80 /******/ // __webpack_public_path__ |
81 /******/ __webpack_require__.p = ""; |
81 /******/ __webpack_require__.p = ""; |
82 /******/ |
82 /******/ |
83 /******/ |
83 /******/ |
84 /******/ // Load entry module and return exports |
84 /******/ // Load entry module and return exports |
85 /******/ return __webpack_require__(__webpack_require__.s = 446); |
85 /******/ return __webpack_require__(__webpack_require__.s = "t1DA"); |
86 /******/ }) |
86 /******/ }) |
87 /************************************************************************/ |
87 /************************************************************************/ |
88 /******/ ({ |
88 /******/ ({ |
89 |
89 |
90 /***/ 0: |
90 /***/ "1Yn1": |
|
91 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
92 |
|
93 "use strict"; |
|
94 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
|
95 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
96 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
|
97 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
98 |
|
99 |
|
100 /** |
|
101 * WordPress dependencies |
|
102 */ |
|
103 |
|
104 const code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
105 viewBox: "0 0 24 24", |
|
106 xmlns: "http://www.w3.org/2000/svg" |
|
107 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
108 d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z" |
|
109 })); |
|
110 /* harmony default export */ __webpack_exports__["a"] = (code); |
|
111 |
|
112 |
|
113 /***/ }), |
|
114 |
|
115 /***/ "1ZqX": |
91 /***/ (function(module, exports) { |
116 /***/ (function(module, exports) { |
92 |
117 |
93 (function() { module.exports = this["wp"]["element"]; }()); |
118 (function() { module.exports = window["wp"]["data"]; }()); |
94 |
119 |
95 /***/ }), |
120 /***/ }), |
96 |
121 |
97 /***/ 1: |
122 /***/ "Bpkj": |
|
123 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
124 |
|
125 "use strict"; |
|
126 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
|
127 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
128 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
|
129 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
130 |
|
131 |
|
132 /** |
|
133 * WordPress dependencies |
|
134 */ |
|
135 |
|
136 const link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
137 xmlns: "http://www.w3.org/2000/svg", |
|
138 viewBox: "0 0 24 24" |
|
139 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
140 d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z" |
|
141 })); |
|
142 /* harmony default export */ __webpack_exports__["a"] = (link); |
|
143 |
|
144 |
|
145 /***/ }), |
|
146 |
|
147 /***/ "Crq9": |
|
148 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
149 |
|
150 "use strict"; |
|
151 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
|
152 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
153 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
|
154 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
155 |
|
156 |
|
157 /** |
|
158 * WordPress dependencies |
|
159 */ |
|
160 |
|
161 const formatStrikethrough = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
162 xmlns: "http://www.w3.org/2000/svg", |
|
163 viewBox: "0 0 24 24" |
|
164 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
165 d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z" |
|
166 })); |
|
167 /* harmony default export */ __webpack_exports__["a"] = (formatStrikethrough); |
|
168 |
|
169 |
|
170 /***/ }), |
|
171 |
|
172 /***/ "GRId": |
98 /***/ (function(module, exports) { |
173 /***/ (function(module, exports) { |
99 |
174 |
100 (function() { module.exports = this["wp"]["i18n"]; }()); |
175 (function() { module.exports = window["wp"]["element"]; }()); |
101 |
176 |
102 /***/ }), |
177 /***/ }), |
103 |
178 |
104 /***/ 12: |
179 /***/ "Mmq9": |
|
180 /***/ (function(module, exports) { |
|
181 |
|
182 (function() { module.exports = window["wp"]["url"]; }()); |
|
183 |
|
184 /***/ }), |
|
185 |
|
186 /***/ "Mp0b": |
105 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
187 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
106 |
188 |
107 "use strict"; |
189 "use strict"; |
108 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; }); |
190 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
109 function _assertThisInitialized(self) { |
191 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
110 if (self === void 0) { |
192 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
111 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); |
193 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
112 } |
194 |
113 |
195 |
114 return self; |
196 /** |
115 } |
197 * WordPress dependencies |
116 |
198 */ |
117 /***/ }), |
199 |
118 |
200 const linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
119 /***/ 137: |
201 xmlns: "http://www.w3.org/2000/svg", |
|
202 viewBox: "0 0 24 24" |
|
203 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
204 d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z" |
|
205 })); |
|
206 /* harmony default export */ __webpack_exports__["a"] = (linkOff); |
|
207 |
|
208 |
|
209 /***/ }), |
|
210 |
|
211 /***/ "Tqx9": |
|
212 /***/ (function(module, exports) { |
|
213 |
|
214 (function() { module.exports = window["wp"]["primitives"]; }()); |
|
215 |
|
216 /***/ }), |
|
217 |
|
218 /***/ "YLtl": |
|
219 /***/ (function(module, exports) { |
|
220 |
|
221 (function() { module.exports = window["lodash"]; }()); |
|
222 |
|
223 /***/ }), |
|
224 |
|
225 /***/ "axFQ": |
|
226 /***/ (function(module, exports) { |
|
227 |
|
228 (function() { module.exports = window["wp"]["blockEditor"]; }()); |
|
229 |
|
230 /***/ }), |
|
231 |
|
232 /***/ "btIw": |
120 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
233 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
121 |
234 |
122 "use strict"; |
235 "use strict"; |
123 /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5); |
236 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
124 /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); |
237 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
125 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); |
238 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
126 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); |
239 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
127 |
240 |
128 |
241 |
129 |
242 /** |
130 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } |
243 * WordPress dependencies |
131 |
244 */ |
132 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } |
245 |
133 |
246 const keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
134 /** |
247 xmlns: "http://www.w3.org/2000/svg", |
135 * WordPress dependencies |
248 viewBox: "-2 -2 24 24" |
136 */ |
249 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
137 // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly. |
250 d: "M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z" |
138 |
251 })); |
139 /* eslint-disable jsdoc/valid-types */ |
252 /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); |
140 |
253 |
141 /** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */ |
254 |
142 |
255 /***/ }), |
143 /* eslint-enable jsdoc/valid-types */ |
256 |
|
257 /***/ "gdqT": |
|
258 /***/ (function(module, exports) { |
|
259 |
|
260 (function() { module.exports = window["wp"]["a11y"]; }()); |
|
261 |
|
262 /***/ }), |
|
263 |
|
264 /***/ "iClF": |
|
265 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
266 |
|
267 "use strict"; |
|
268 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
|
269 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
270 /** |
|
271 * WordPress dependencies |
|
272 */ |
|
273 |
|
274 /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */ |
144 |
275 |
145 /** |
276 /** |
146 * Return an SVG icon. |
277 * Return an SVG icon. |
147 * |
278 * |
148 * @param {IconProps} props icon is the SVG component to render |
279 * @param {IconProps} props icon is the SVG component to render |
150 * Other props will be passed to wrapped SVG component |
281 * Other props will be passed to wrapped SVG component |
151 * |
282 * |
152 * @return {JSX.Element} Icon component |
283 * @return {JSX.Element} Icon component |
153 */ |
284 */ |
154 |
285 |
155 function Icon(_ref) { |
286 function Icon({ |
156 var icon = _ref.icon, |
287 icon, |
157 _ref$size = _ref.size, |
288 size = 24, |
158 size = _ref$size === void 0 ? 24 : _ref$size, |
289 ...props |
159 props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]); |
290 }) { |
160 |
291 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cloneElement"])(icon, { |
161 return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({ |
|
162 width: size, |
292 width: size, |
163 height: size |
293 height: size, |
164 }, props)); |
294 ...props |
|
295 }); |
165 } |
296 } |
166 |
297 |
167 /* harmony default export */ __webpack_exports__["a"] = (Icon); |
298 /* harmony default export */ __webpack_exports__["a"] = (Icon); |
168 |
299 |
169 |
300 |
170 /***/ }), |
301 /***/ }), |
171 |
302 |
172 /***/ 14: |
303 /***/ "l3Sj": |
|
304 /***/ (function(module, exports) { |
|
305 |
|
306 (function() { module.exports = window["wp"]["i18n"]; }()); |
|
307 |
|
308 /***/ }), |
|
309 |
|
310 /***/ "oMoS": |
173 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
311 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
174 |
312 |
175 "use strict"; |
313 "use strict"; |
176 |
314 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId"); |
177 // EXPORTS |
|
178 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; }); |
|
179 |
|
180 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js |
|
181 var arrayWithHoles = __webpack_require__(38); |
|
182 |
|
183 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js |
|
184 function _iterableToArrayLimit(arr, i) { |
|
185 if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; |
|
186 var _arr = []; |
|
187 var _n = true; |
|
188 var _d = false; |
|
189 var _e = undefined; |
|
190 |
|
191 try { |
|
192 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { |
|
193 _arr.push(_s.value); |
|
194 |
|
195 if (i && _arr.length === i) break; |
|
196 } |
|
197 } catch (err) { |
|
198 _d = true; |
|
199 _e = err; |
|
200 } finally { |
|
201 try { |
|
202 if (!_n && _i["return"] != null) _i["return"](); |
|
203 } finally { |
|
204 if (_d) throw _e; |
|
205 } |
|
206 } |
|
207 |
|
208 return _arr; |
|
209 } |
|
210 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js |
|
211 var unsupportedIterableToArray = __webpack_require__(29); |
|
212 |
|
213 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js |
|
214 var nonIterableRest = __webpack_require__(39); |
|
215 |
|
216 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 function _slicedToArray(arr, i) { |
|
222 return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])(); |
|
223 } |
|
224 |
|
225 /***/ }), |
|
226 |
|
227 /***/ 15: |
|
228 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
229 |
|
230 "use strict"; |
|
231 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); |
|
232 /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41); |
|
233 |
|
234 function _objectWithoutProperties(source, excluded) { |
|
235 if (source == null) return {}; |
|
236 var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); |
|
237 var key, i; |
|
238 |
|
239 if (Object.getOwnPropertySymbols) { |
|
240 var sourceSymbolKeys = Object.getOwnPropertySymbols(source); |
|
241 |
|
242 for (i = 0; i < sourceSymbolKeys.length; i++) { |
|
243 key = sourceSymbolKeys[i]; |
|
244 if (excluded.indexOf(key) >= 0) continue; |
|
245 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; |
|
246 target[key] = source[key]; |
|
247 } |
|
248 } |
|
249 |
|
250 return target; |
|
251 } |
|
252 |
|
253 /***/ }), |
|
254 |
|
255 /***/ 16: |
|
256 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
257 |
|
258 "use strict"; |
|
259 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; }); |
|
260 function _getPrototypeOf(o) { |
|
261 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { |
|
262 return o.__proto__ || Object.getPrototypeOf(o); |
|
263 }; |
|
264 return _getPrototypeOf(o); |
|
265 } |
|
266 |
|
267 /***/ }), |
|
268 |
|
269 /***/ 180: |
|
270 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
271 |
|
272 "use strict"; |
|
273 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
274 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
315 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
275 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
316 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9"); |
276 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
317 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
277 |
318 |
278 |
319 |
279 /** |
320 /** |
280 * WordPress dependencies |
321 * WordPress dependencies |
281 */ |
322 */ |
282 |
323 |
283 var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
324 const button = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
284 xmlns: "http://www.w3.org/2000/svg", |
|
285 viewBox: "0 0 24 24" |
|
286 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
287 d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z" |
|
288 })); |
|
289 /* harmony default export */ __webpack_exports__["a"] = (link); |
|
290 |
|
291 |
|
292 /***/ }), |
|
293 |
|
294 /***/ 19: |
|
295 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
296 |
|
297 "use strict"; |
|
298 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; }); |
|
299 function _defineProperties(target, props) { |
|
300 for (var i = 0; i < props.length; i++) { |
|
301 var descriptor = props[i]; |
|
302 descriptor.enumerable = descriptor.enumerable || false; |
|
303 descriptor.configurable = true; |
|
304 if ("value" in descriptor) descriptor.writable = true; |
|
305 Object.defineProperty(target, descriptor.key, descriptor); |
|
306 } |
|
307 } |
|
308 |
|
309 function _createClass(Constructor, protoProps, staticProps) { |
|
310 if (protoProps) _defineProperties(Constructor.prototype, protoProps); |
|
311 if (staticProps) _defineProperties(Constructor, staticProps); |
|
312 return Constructor; |
|
313 } |
|
314 |
|
315 /***/ }), |
|
316 |
|
317 /***/ 2: |
|
318 /***/ (function(module, exports) { |
|
319 |
|
320 (function() { module.exports = this["lodash"]; }()); |
|
321 |
|
322 /***/ }), |
|
323 |
|
324 /***/ 20: |
|
325 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
326 |
|
327 "use strict"; |
|
328 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; }); |
|
329 function _classCallCheck(instance, Constructor) { |
|
330 if (!(instance instanceof Constructor)) { |
|
331 throw new TypeError("Cannot call a class as a function"); |
|
332 } |
|
333 } |
|
334 |
|
335 /***/ }), |
|
336 |
|
337 /***/ 203: |
|
338 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
339 |
|
340 "use strict"; |
|
341 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
342 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
343 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
|
344 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
345 |
|
346 |
|
347 /** |
|
348 * WordPress dependencies |
|
349 */ |
|
350 |
|
351 var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
352 xmlns: "http://www.w3.org/2000/svg", |
|
353 viewBox: "-2 -2 24 24" |
|
354 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
355 d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z" |
|
356 })); |
|
357 /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn); |
|
358 |
|
359 |
|
360 /***/ }), |
|
361 |
|
362 /***/ 205: |
|
363 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
364 |
|
365 "use strict"; |
|
366 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
367 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
368 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
|
369 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
370 |
|
371 |
|
372 /** |
|
373 * WordPress dependencies |
|
374 */ |
|
375 |
|
376 var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
377 xmlns: "http://www.w3.org/2000/svg", |
|
378 viewBox: "0 0 24 24" |
|
379 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
380 d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z" |
|
381 })); |
|
382 /* harmony default export */ __webpack_exports__["a"] = (linkOff); |
|
383 |
|
384 |
|
385 /***/ }), |
|
386 |
|
387 /***/ 21: |
|
388 /***/ (function(module, exports) { |
|
389 |
|
390 (function() { module.exports = this["wp"]["keycodes"]; }()); |
|
391 |
|
392 /***/ }), |
|
393 |
|
394 /***/ 22: |
|
395 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
396 |
|
397 "use strict"; |
|
398 |
|
399 // EXPORTS |
|
400 __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inherits; }); |
|
401 |
|
402 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js |
|
403 function _setPrototypeOf(o, p) { |
|
404 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { |
|
405 o.__proto__ = p; |
|
406 return o; |
|
407 }; |
|
408 |
|
409 return _setPrototypeOf(o, p); |
|
410 } |
|
411 // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js |
|
412 |
|
413 function _inherits(subClass, superClass) { |
|
414 if (typeof superClass !== "function" && superClass !== null) { |
|
415 throw new TypeError("Super expression must either be null or a function"); |
|
416 } |
|
417 |
|
418 subClass.prototype = Object.create(superClass && superClass.prototype, { |
|
419 constructor: { |
|
420 value: subClass, |
|
421 writable: true, |
|
422 configurable: true |
|
423 } |
|
424 }); |
|
425 if (superClass) _setPrototypeOf(subClass, superClass); |
|
426 } |
|
427 |
|
428 /***/ }), |
|
429 |
|
430 /***/ 23: |
|
431 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
432 |
|
433 "use strict"; |
|
434 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; }); |
|
435 /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40); |
|
436 /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12); |
|
437 |
|
438 |
|
439 function _possibleConstructorReturn(self, call) { |
|
440 if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) { |
|
441 return call; |
|
442 } |
|
443 |
|
444 return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self); |
|
445 } |
|
446 |
|
447 /***/ }), |
|
448 |
|
449 /***/ 25: |
|
450 /***/ (function(module, exports) { |
|
451 |
|
452 (function() { module.exports = this["wp"]["richText"]; }()); |
|
453 |
|
454 /***/ }), |
|
455 |
|
456 /***/ 26: |
|
457 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
458 |
|
459 "use strict"; |
|
460 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; }); |
|
461 function _arrayLikeToArray(arr, len) { |
|
462 if (len == null || len > arr.length) len = arr.length; |
|
463 |
|
464 for (var i = 0, arr2 = new Array(len); i < len; i++) { |
|
465 arr2[i] = arr[i]; |
|
466 } |
|
467 |
|
468 return arr2; |
|
469 } |
|
470 |
|
471 /***/ }), |
|
472 |
|
473 /***/ 29: |
|
474 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
475 |
|
476 "use strict"; |
|
477 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); |
|
478 /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26); |
|
479 |
|
480 function _unsupportedIterableToArray(o, minLen) { |
|
481 if (!o) return; |
|
482 if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); |
|
483 var n = Object.prototype.toString.call(o).slice(8, -1); |
|
484 if (n === "Object" && o.constructor) n = o.constructor.name; |
|
485 if (n === "Map" || n === "Set") return Array.from(o); |
|
486 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); |
|
487 } |
|
488 |
|
489 /***/ }), |
|
490 |
|
491 /***/ 3: |
|
492 /***/ (function(module, exports) { |
|
493 |
|
494 (function() { module.exports = this["wp"]["components"]; }()); |
|
495 |
|
496 /***/ }), |
|
497 |
|
498 /***/ 30: |
|
499 /***/ (function(module, exports) { |
|
500 |
|
501 (function() { module.exports = this["wp"]["dom"]; }()); |
|
502 |
|
503 /***/ }), |
|
504 |
|
505 /***/ 301: |
|
506 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
507 |
|
508 "use strict"; |
|
509 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
510 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
511 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
|
512 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
513 |
|
514 |
|
515 /** |
|
516 * WordPress dependencies |
|
517 */ |
|
518 |
|
519 var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
520 viewBox: "0 0 24 24", |
325 viewBox: "0 0 24 24", |
521 xmlns: "http://www.w3.org/2000/svg" |
326 xmlns: "http://www.w3.org/2000/svg" |
522 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
327 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
523 d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z" |
328 d: "M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z" |
524 })); |
329 })); |
525 /* harmony default export */ __webpack_exports__["a"] = (code); |
330 /* harmony default export */ __webpack_exports__["a"] = (button); |
526 |
331 |
527 |
332 |
528 /***/ }), |
333 /***/ }), |
529 |
334 |
530 /***/ 31: |
335 /***/ "qRz9": |
531 /***/ (function(module, exports) { |
336 /***/ (function(module, exports) { |
532 |
337 |
533 (function() { module.exports = this["wp"]["url"]; }()); |
338 (function() { module.exports = window["wp"]["richText"]; }()); |
534 |
339 |
535 /***/ }), |
340 /***/ }), |
536 |
341 |
537 /***/ 38: |
342 /***/ "rmEH": |
538 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
539 |
|
540 "use strict"; |
|
541 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; }); |
|
542 function _arrayWithHoles(arr) { |
|
543 if (Array.isArray(arr)) return arr; |
|
544 } |
|
545 |
|
546 /***/ }), |
|
547 |
|
548 /***/ 39: |
|
549 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
550 |
|
551 "use strict"; |
|
552 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; }); |
|
553 function _nonIterableRest() { |
|
554 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
|
555 } |
|
556 |
|
557 /***/ }), |
|
558 |
|
559 /***/ 4: |
|
560 /***/ (function(module, exports) { |
343 /***/ (function(module, exports) { |
561 |
344 |
562 (function() { module.exports = this["wp"]["data"]; }()); |
345 (function() { module.exports = window["wp"]["htmlEntities"]; }()); |
563 |
346 |
564 /***/ }), |
347 /***/ }), |
565 |
348 |
566 /***/ 40: |
349 /***/ "t1DA": |
567 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
568 |
|
569 "use strict"; |
|
570 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); |
|
571 function _typeof(obj) { |
|
572 "@babel/helpers - typeof"; |
|
573 |
|
574 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { |
|
575 _typeof = function _typeof(obj) { |
|
576 return typeof obj; |
|
577 }; |
|
578 } else { |
|
579 _typeof = function _typeof(obj) { |
|
580 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; |
|
581 }; |
|
582 } |
|
583 |
|
584 return _typeof(obj); |
|
585 } |
|
586 |
|
587 /***/ }), |
|
588 |
|
589 /***/ 41: |
|
590 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
591 |
|
592 "use strict"; |
|
593 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); |
|
594 function _objectWithoutPropertiesLoose(source, excluded) { |
|
595 if (source == null) return {}; |
|
596 var target = {}; |
|
597 var sourceKeys = Object.keys(source); |
|
598 var key, i; |
|
599 |
|
600 for (i = 0; i < sourceKeys.length; i++) { |
|
601 key = sourceKeys[i]; |
|
602 if (excluded.indexOf(key) >= 0) continue; |
|
603 target[key] = source[key]; |
|
604 } |
|
605 |
|
606 return target; |
|
607 } |
|
608 |
|
609 /***/ }), |
|
610 |
|
611 /***/ 410: |
|
612 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
613 |
|
614 "use strict"; |
|
615 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); |
|
616 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); |
|
617 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6); |
|
618 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); |
|
619 |
|
620 |
|
621 /** |
|
622 * WordPress dependencies |
|
623 */ |
|
624 |
|
625 var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], { |
|
626 xmlns: "http://www.w3.org/2000/svg", |
|
627 viewBox: "-2 -2 24 24" |
|
628 }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], { |
|
629 d: "M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z" |
|
630 })); |
|
631 /* harmony default export */ __webpack_exports__["a"] = (textColor); |
|
632 |
|
633 |
|
634 /***/ }), |
|
635 |
|
636 /***/ 446: |
|
637 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
350 /***/ (function(module, __webpack_exports__, __webpack_require__) { |
638 |
351 |
639 "use strict"; |
352 "use strict"; |
640 // ESM COMPAT FLAG |
353 // ESM COMPAT FLAG |
641 __webpack_require__.r(__webpack_exports__); |
354 __webpack_require__.r(__webpack_exports__); |
642 |
355 |
643 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js |
356 // EXTERNAL MODULE: external ["wp","richText"] |
644 var objectWithoutProperties = __webpack_require__(15); |
357 var external_wp_richText_ = __webpack_require__("qRz9"); |
645 |
358 |
646 // EXTERNAL MODULE: external {"this":["wp","richText"]} |
359 // EXTERNAL MODULE: external ["wp","element"] |
647 var external_this_wp_richText_ = __webpack_require__(25); |
360 var external_wp_element_ = __webpack_require__("GRId"); |
648 |
361 |
649 // EXTERNAL MODULE: external {"this":["wp","element"]} |
362 // EXTERNAL MODULE: external ["wp","i18n"] |
650 var external_this_wp_element_ = __webpack_require__(0); |
363 var external_wp_i18n_ = __webpack_require__("l3Sj"); |
651 |
364 |
652 // EXTERNAL MODULE: external {"this":["wp","i18n"]} |
365 // EXTERNAL MODULE: external ["wp","blockEditor"] |
653 var external_this_wp_i18n_ = __webpack_require__(1); |
366 var external_wp_blockEditor_ = __webpack_require__("axFQ"); |
654 |
367 |
655 // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} |
368 // EXTERNAL MODULE: external ["wp","primitives"] |
656 var external_this_wp_blockEditor_ = __webpack_require__(7); |
369 var external_wp_primitives_ = __webpack_require__("Tqx9"); |
657 |
|
658 // EXTERNAL MODULE: external {"this":["wp","primitives"]} |
|
659 var external_this_wp_primitives_ = __webpack_require__(6); |
|
660 |
370 |
661 // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-bold.js |
371 // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-bold.js |
662 |
372 |
663 |
373 |
664 /** |
374 /** |
665 * WordPress dependencies |
375 * WordPress dependencies |
666 */ |
376 */ |
667 |
377 |
668 var formatBold = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { |
378 const formatBold = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], { |
669 xmlns: "http://www.w3.org/2000/svg", |
379 xmlns: "http://www.w3.org/2000/svg", |
670 viewBox: "0 0 24 24" |
380 viewBox: "0 0 24 24" |
671 }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { |
381 }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], { |
672 d: "M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z" |
382 d: "M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z" |
673 })); |
383 })); |
674 /* harmony default export */ var format_bold = (formatBold); |
384 /* harmony default export */ var format_bold = (formatBold); |
675 |
385 |
676 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js |
386 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/bold/index.js |
739 */ |
451 */ |
740 |
452 |
741 |
453 |
742 |
454 |
743 |
455 |
744 var code_name = 'core/code'; |
456 const code_name = 'core/code'; |
745 |
457 |
746 var code_title = Object(external_this_wp_i18n_["__"])('Inline Code'); |
458 const code_title = Object(external_wp_i18n_["__"])('Inline code'); |
747 |
459 |
748 var code_code = { |
460 const code_code = { |
749 name: code_name, |
461 name: code_name, |
750 title: code_title, |
462 title: code_title, |
751 tagName: 'code', |
463 tagName: 'code', |
752 className: null, |
464 className: null, |
753 __unstableInputRule: function __unstableInputRule(value) { |
465 |
754 var BACKTICK = '`'; |
466 __unstableInputRule(value) { |
755 var _value = value, |
467 const BACKTICK = '`'; |
756 start = _value.start, |
468 const { |
757 text = _value.text; |
469 start, |
758 var characterBefore = text.slice(start - 1, start); // Quick check the text for the necessary character. |
470 text |
|
471 } = value; |
|
472 const characterBefore = text.slice(start - 1, start); // Quick check the text for the necessary character. |
759 |
473 |
760 if (characterBefore !== BACKTICK) { |
474 if (characterBefore !== BACKTICK) { |
761 return value; |
475 return value; |
762 } |
476 } |
763 |
477 |
764 var textBefore = text.slice(0, start - 1); |
478 const textBefore = text.slice(0, start - 1); |
765 var indexBefore = textBefore.lastIndexOf(BACKTICK); |
479 const indexBefore = textBefore.lastIndexOf(BACKTICK); |
766 |
480 |
767 if (indexBefore === -1) { |
481 if (indexBefore === -1) { |
768 return value; |
482 return value; |
769 } |
483 } |
770 |
484 |
771 var startIndex = indexBefore; |
485 const startIndex = indexBefore; |
772 var endIndex = start - 2; |
486 const endIndex = start - 2; |
773 |
487 |
774 if (startIndex === endIndex) { |
488 if (startIndex === endIndex) { |
775 return value; |
489 return value; |
776 } |
490 } |
777 |
491 |
778 value = Object(external_this_wp_richText_["remove"])(value, startIndex, startIndex + 1); |
492 value = Object(external_wp_richText_["remove"])(value, startIndex, startIndex + 1); |
779 value = Object(external_this_wp_richText_["remove"])(value, endIndex, endIndex + 1); |
493 value = Object(external_wp_richText_["remove"])(value, endIndex, endIndex + 1); |
780 value = Object(external_this_wp_richText_["applyFormat"])(value, { |
494 value = Object(external_wp_richText_["applyFormat"])(value, { |
781 type: code_name |
495 type: code_name |
782 }, startIndex, endIndex); |
496 }, startIndex, endIndex); |
783 return value; |
497 return value; |
784 }, |
498 }, |
785 edit: function edit(_ref) { |
499 |
786 var value = _ref.value, |
500 edit({ |
787 onChange = _ref.onChange, |
501 value, |
788 onFocus = _ref.onFocus, |
502 onChange, |
789 isActive = _ref.isActive; |
503 onFocus, |
790 |
504 isActive |
|
505 }) { |
791 function onClick() { |
506 function onClick() { |
792 onChange(Object(external_this_wp_richText_["toggleFormat"])(value, { |
507 onChange(Object(external_wp_richText_["toggleFormat"])(value, { |
793 type: code_name |
508 type: code_name |
794 })); |
509 })); |
795 onFocus(); |
510 onFocus(); |
796 } |
511 } |
797 |
512 |
798 return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { |
513 return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], { |
799 icon: code["a" /* default */], |
514 icon: code["a" /* default */], |
800 title: code_title, |
515 title: code_title, |
801 onClick: onClick, |
516 onClick: onClick, |
802 isActive: isActive |
517 isActive: isActive |
803 }); |
518 }); |
804 } |
519 } |
|
520 |
805 }; |
521 }; |
806 |
522 |
807 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js |
523 // EXTERNAL MODULE: external ["wp","components"] |
808 var defineProperty = __webpack_require__(5); |
524 var external_wp_components_ = __webpack_require__("tI+e"); |
809 |
|
810 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js |
|
811 var classCallCheck = __webpack_require__(20); |
|
812 |
|
813 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js |
|
814 var createClass = __webpack_require__(19); |
|
815 |
|
816 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js |
|
817 var assertThisInitialized = __webpack_require__(12); |
|
818 |
|
819 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js |
|
820 var possibleConstructorReturn = __webpack_require__(23); |
|
821 |
|
822 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js |
|
823 var getPrototypeOf = __webpack_require__(16); |
|
824 |
|
825 // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules |
|
826 var inherits = __webpack_require__(22); |
|
827 |
|
828 // EXTERNAL MODULE: external {"this":["wp","components"]} |
|
829 var external_this_wp_components_ = __webpack_require__(3); |
|
830 |
|
831 // EXTERNAL MODULE: external {"this":["wp","keycodes"]} |
|
832 var external_this_wp_keycodes_ = __webpack_require__(21); |
|
833 |
525 |
834 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js |
526 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js |
835 var keyboard_return = __webpack_require__(203); |
527 var keyboard_return = __webpack_require__("btIw"); |
836 |
528 |
837 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js |
529 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js |
838 |
530 |
839 |
531 |
840 |
532 /** |
841 |
533 * WordPress dependencies |
842 |
534 */ |
843 |
535 |
844 |
536 |
845 |
537 |
846 |
538 |
847 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } |
539 |
848 |
540 |
849 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } |
541 const ALLOWED_MEDIA_TYPES = ['image']; |
850 |
542 const image_name = 'core/image'; |
851 function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } |
543 |
852 |
544 const image_title = Object(external_wp_i18n_["__"])('Inline image'); |
853 function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } |
545 |
854 |
546 const image_image = { |
855 /** |
|
856 * WordPress dependencies |
|
857 */ |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 var ALLOWED_MEDIA_TYPES = ['image']; |
|
866 var image_name = 'core/image'; |
|
867 |
|
868 var image_title = Object(external_this_wp_i18n_["__"])('Inline image'); |
|
869 |
|
870 var stopKeyPropagation = function stopKeyPropagation(event) { |
|
871 return event.stopPropagation(); |
|
872 }; |
|
873 |
|
874 function getRange() { |
|
875 var selection = window.getSelection(); |
|
876 return selection.rangeCount ? selection.getRangeAt(0) : null; |
|
877 } |
|
878 |
|
879 var image_image = { |
|
880 name: image_name, |
547 name: image_name, |
881 title: image_title, |
548 title: image_title, |
882 keywords: [Object(external_this_wp_i18n_["__"])('photo'), Object(external_this_wp_i18n_["__"])('media')], |
549 keywords: [Object(external_wp_i18n_["__"])('photo'), Object(external_wp_i18n_["__"])('media')], |
883 object: true, |
550 object: true, |
884 tagName: 'img', |
551 tagName: 'img', |
885 className: null, |
552 className: null, |
886 attributes: { |
553 attributes: { |
887 className: 'class', |
554 className: 'class', |
888 style: 'style', |
555 style: 'style', |
889 url: 'src', |
556 url: 'src', |
890 alt: 'alt' |
557 alt: 'alt' |
891 }, |
558 }, |
892 edit: /*#__PURE__*/function (_Component) { |
559 edit: Edit |
893 Object(inherits["a" /* default */])(ImageEdit, _Component); |
560 }; |
894 |
561 |
895 var _super = _createSuper(ImageEdit); |
562 function InlineUI({ |
896 |
563 value, |
897 function ImageEdit() { |
564 onChange, |
898 var _this; |
565 activeObjectAttributes, |
899 |
566 contentRef |
900 Object(classCallCheck["a" /* default */])(this, ImageEdit); |
567 }) { |
901 |
568 const { |
902 _this = _super.apply(this, arguments); |
569 style |
903 _this.onChange = _this.onChange.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
570 } = activeObjectAttributes; |
904 _this.onKeyDown = _this.onKeyDown.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
571 const [width, setWidth] = Object(external_wp_element_["useState"])(style === null || style === void 0 ? void 0 : style.replace(/\D/g, '')); |
905 _this.openModal = _this.openModal.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
572 const anchorRef = Object(external_wp_richText_["useAnchorRef"])({ |
906 _this.closeModal = _this.closeModal.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
573 ref: contentRef, |
907 _this.anchorRef = null; |
574 value, |
908 _this.state = { |
575 settings: image_image |
909 modal: false |
576 }); |
|
577 return Object(external_wp_element_["createElement"])(external_wp_components_["Popover"], { |
|
578 position: "bottom center", |
|
579 focusOnMount: false, |
|
580 anchorRef: anchorRef, |
|
581 className: "block-editor-format-toolbar__image-popover" |
|
582 }, Object(external_wp_element_["createElement"])("form", { |
|
583 className: "block-editor-format-toolbar__image-container-content", |
|
584 onSubmit: event => { |
|
585 const newReplacements = value.replacements.slice(); |
|
586 newReplacements[value.start] = { |
|
587 type: image_name, |
|
588 attributes: { ...activeObjectAttributes, |
|
589 style: `width: ${width}px;` |
|
590 } |
910 }; |
591 }; |
911 return _this; |
592 onChange({ ...value, |
912 } |
593 replacements: newReplacements |
913 |
594 }); |
914 Object(createClass["a" /* default */])(ImageEdit, [{ |
595 event.preventDefault(); |
915 key: "onChange", |
596 } |
916 value: function onChange(width) { |
597 }, Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], { |
917 this.setState({ |
598 className: "block-editor-format-toolbar__image-container-value", |
918 width: width |
599 type: "number", |
919 }); |
600 label: Object(external_wp_i18n_["__"])('Width'), |
920 } |
601 value: width, |
921 }, { |
602 min: 1, |
922 key: "onKeyDown", |
603 onChange: newWidth => setWidth(newWidth) |
923 value: function onKeyDown(event) { |
604 }), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], { |
924 if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) { |
605 icon: keyboard_return["a" /* default */], |
925 // Stop the key event from propagating up to ObserveTyping.startTypingInTextField. |
606 label: Object(external_wp_i18n_["__"])('Apply'), |
926 event.stopPropagation(); |
607 type: "submit" |
|
608 }))); |
|
609 } |
|
610 |
|
611 function Edit({ |
|
612 value, |
|
613 onChange, |
|
614 onFocus, |
|
615 isObjectActive, |
|
616 activeObjectAttributes, |
|
617 contentRef |
|
618 }) { |
|
619 const [isModalOpen, setIsModalOpen] = Object(external_wp_element_["useState"])(false); |
|
620 |
|
621 function openModal() { |
|
622 setIsModalOpen(true); |
|
623 } |
|
624 |
|
625 function closeModal() { |
|
626 setIsModalOpen(false); |
|
627 } |
|
628 |
|
629 return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaUploadCheck"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], { |
|
630 icon: Object(external_wp_element_["createElement"])(external_wp_components_["SVG"], { |
|
631 xmlns: "http://www.w3.org/2000/svg", |
|
632 viewBox: "0 0 24 24" |
|
633 }, Object(external_wp_element_["createElement"])(external_wp_components_["Path"], { |
|
634 d: "M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z" |
|
635 })), |
|
636 title: image_title, |
|
637 onClick: openModal, |
|
638 isActive: isObjectActive |
|
639 }), isModalOpen && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["MediaUpload"], { |
|
640 allowedTypes: ALLOWED_MEDIA_TYPES, |
|
641 onSelect: ({ |
|
642 id, |
|
643 url, |
|
644 alt, |
|
645 width: imgWidth |
|
646 }) => { |
|
647 closeModal(); |
|
648 onChange(Object(external_wp_richText_["insertObject"])(value, { |
|
649 type: image_name, |
|
650 attributes: { |
|
651 className: `wp-image-${id}`, |
|
652 style: `width: ${Math.min(imgWidth, 150)}px;`, |
|
653 url, |
|
654 alt |
927 } |
655 } |
928 } |
656 })); |
929 }, { |
657 onFocus(); |
930 key: "openModal", |
658 }, |
931 value: function openModal() { |
659 onClose: closeModal, |
932 this.setState({ |
660 render: ({ |
933 modal: true |
661 open |
934 }); |
662 }) => { |
935 } |
663 open(); |
936 }, { |
664 return null; |
937 key: "closeModal", |
665 } |
938 value: function closeModal() { |
666 }), isObjectActive && Object(external_wp_element_["createElement"])(InlineUI, { |
939 this.setState({ |
667 value: value, |
940 modal: false |
668 onChange: onChange, |
941 }); |
669 activeObjectAttributes: activeObjectAttributes, |
942 } |
670 contentRef: contentRef |
943 }, { |
671 })); |
944 key: "componentDidMount", |
672 } |
945 value: function componentDidMount() { |
|
946 this.anchorRef = getRange(); |
|
947 } |
|
948 }, { |
|
949 key: "componentDidUpdate", |
|
950 value: function componentDidUpdate(prevProps) { |
|
951 // When the popover is open or when the selected image changes, |
|
952 // update the anchorRef. |
|
953 if (!prevProps.isObjectActive && this.props.isObjectActive || prevProps.activeObjectAttributes.url !== this.props.activeObjectAttributes.url) { |
|
954 this.anchorRef = getRange(); |
|
955 } |
|
956 } |
|
957 }, { |
|
958 key: "render", |
|
959 value: function render() { |
|
960 var _this2 = this; |
|
961 |
|
962 var _this$props = this.props, |
|
963 value = _this$props.value, |
|
964 onChange = _this$props.onChange, |
|
965 onFocus = _this$props.onFocus, |
|
966 isObjectActive = _this$props.isObjectActive, |
|
967 activeObjectAttributes = _this$props.activeObjectAttributes; |
|
968 return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUploadCheck"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { |
|
969 icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], { |
|
970 xmlns: "http://www.w3.org/2000/svg", |
|
971 viewBox: "0 0 24 24" |
|
972 }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], { |
|
973 d: "M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z" |
|
974 })), |
|
975 title: image_title, |
|
976 onClick: this.openModal, |
|
977 isActive: isObjectActive |
|
978 }), this.state.modal && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaUpload"], { |
|
979 allowedTypes: ALLOWED_MEDIA_TYPES, |
|
980 onSelect: function onSelect(_ref) { |
|
981 var id = _ref.id, |
|
982 url = _ref.url, |
|
983 alt = _ref.alt, |
|
984 width = _ref.width; |
|
985 |
|
986 _this2.closeModal(); |
|
987 |
|
988 onChange(Object(external_this_wp_richText_["insertObject"])(value, { |
|
989 type: image_name, |
|
990 attributes: { |
|
991 className: "wp-image-".concat(id), |
|
992 style: "width: ".concat(Math.min(width, 150), "px;"), |
|
993 url: url, |
|
994 alt: alt |
|
995 } |
|
996 })); |
|
997 onFocus(); |
|
998 }, |
|
999 onClose: this.closeModal, |
|
1000 render: function render(_ref2) { |
|
1001 var open = _ref2.open; |
|
1002 open(); |
|
1003 return null; |
|
1004 } |
|
1005 }), isObjectActive && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], { |
|
1006 position: "bottom center", |
|
1007 focusOnMount: false, |
|
1008 anchorRef: this.anchorRef |
|
1009 }, Object(external_this_wp_element_["createElement"])("form", { |
|
1010 className: "block-editor-format-toolbar__image-container-content", |
|
1011 onKeyPress: stopKeyPropagation, |
|
1012 onKeyDown: this.onKeyDown, |
|
1013 onSubmit: function onSubmit(event) { |
|
1014 var newReplacements = value.replacements.slice(); |
|
1015 newReplacements[value.start] = { |
|
1016 type: image_name, |
|
1017 attributes: _objectSpread({}, activeObjectAttributes, { |
|
1018 style: "width: ".concat(_this2.state.width, "px;") |
|
1019 }) |
|
1020 }; |
|
1021 onChange(_objectSpread({}, value, { |
|
1022 replacements: newReplacements |
|
1023 })); |
|
1024 event.preventDefault(); |
|
1025 } |
|
1026 }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], { |
|
1027 className: "block-editor-format-toolbar__image-container-value", |
|
1028 type: "number", |
|
1029 label: Object(external_this_wp_i18n_["__"])('Width'), |
|
1030 value: this.state.width, |
|
1031 min: 1, |
|
1032 onChange: this.onChange |
|
1033 }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], { |
|
1034 icon: keyboard_return["a" /* default */], |
|
1035 label: Object(external_this_wp_i18n_["__"])('Apply'), |
|
1036 type: "submit" |
|
1037 })))); |
|
1038 } |
|
1039 }], [{ |
|
1040 key: "getDerivedStateFromProps", |
|
1041 value: function getDerivedStateFromProps(props, state) { |
|
1042 var style = props.activeObjectAttributes.style; |
|
1043 |
|
1044 if (style === state.previousStyle) { |
|
1045 return null; |
|
1046 } |
|
1047 |
|
1048 if (!style) { |
|
1049 return { |
|
1050 width: undefined, |
|
1051 previousStyle: style |
|
1052 }; |
|
1053 } |
|
1054 |
|
1055 return { |
|
1056 width: style.replace(/\D/g, ''), |
|
1057 previousStyle: style |
|
1058 }; |
|
1059 } |
|
1060 }]); |
|
1061 |
|
1062 return ImageEdit; |
|
1063 }(external_this_wp_element_["Component"]) |
|
1064 }; |
|
1065 |
673 |
1066 // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-italic.js |
674 // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-italic.js |
1067 |
675 |
1068 |
676 |
1069 /** |
677 /** |
1070 * WordPress dependencies |
678 * WordPress dependencies |
1071 */ |
679 */ |
1072 |
680 |
1073 var formatItalic = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { |
681 const formatItalic = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], { |
1074 xmlns: "http://www.w3.org/2000/svg", |
682 xmlns: "http://www.w3.org/2000/svg", |
1075 viewBox: "0 0 24 24" |
683 viewBox: "0 0 24 24" |
1076 }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { |
684 }, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], { |
1077 d: "M12.5 5L10 19h1.9l2.5-14z" |
685 d: "M12.5 5L10 19h1.9l2.5-14z" |
1078 })); |
686 })); |
1079 /* harmony default export */ var format_italic = (formatItalic); |
687 /* harmony default export */ var format_italic = (formatItalic); |
1080 |
688 |
1081 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js |
689 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/italic/index.js |
1287 * Internal dependencies |
887 * Internal dependencies |
1288 */ |
888 */ |
1289 |
889 |
1290 |
890 |
1291 |
891 |
1292 function InlineLinkUI(_ref) { |
892 |
1293 var isActive = _ref.isActive, |
893 function InlineLinkUI({ |
1294 activeAttributes = _ref.activeAttributes, |
894 isActive, |
1295 addingLink = _ref.addingLink, |
895 activeAttributes, |
1296 value = _ref.value, |
896 addingLink, |
1297 onChange = _ref.onChange, |
897 value, |
1298 speak = _ref.speak, |
898 onChange, |
1299 stopAddingLink = _ref.stopAddingLink; |
899 speak, |
1300 |
900 stopAddingLink, |
1301 /** |
901 contentRef |
1302 * A unique key is generated when switching between editing and not editing |
902 }) { |
1303 * a link, based on: |
|
1304 * |
|
1305 * - This component may be rendered _either_ when a link is active _or_ |
|
1306 * when adding or editing a link. |
|
1307 * - It's only desirable to shift focus into the Popover when explicitly |
|
1308 * adding or editing a link, not when in the inline boundary of a link. |
|
1309 * - Focus behavior can only be controlled on a Popover at the time it |
|
1310 * mounts, so a new instance of the component must be mounted to |
|
1311 * programmatically enact the focusOnMount behavior. |
|
1312 * |
|
1313 * @type {string} |
|
1314 */ |
|
1315 var mountingKey = Object(external_this_wp_element_["useMemo"])(external_this_lodash_["uniqueId"], [addingLink]); |
|
1316 /** |
903 /** |
1317 * Pending settings to be applied to the next link. When inserting a new |
904 * Pending settings to be applied to the next link. When inserting a new |
1318 * link, toggle values cannot be applied immediately, because there is not |
905 * link, toggle values cannot be applied immediately, because there is not |
1319 * yet a link for them to apply to. Thus, they are maintained in a state |
906 * yet a link for them to apply to. Thus, they are maintained in a state |
1320 * value until the time that the link can be inserted or edited. |
907 * value until the time that the link can be inserted or edited. |
1321 * |
908 * |
1322 * @type {[Object|undefined,Function]} |
909 * @type {[Object|undefined,Function]} |
1323 */ |
910 */ |
1324 |
911 const [nextLinkValue, setNextLinkValue] = Object(external_wp_element_["useState"])(); |
1325 var _useState = Object(external_this_wp_element_["useState"])(), |
912 const linkValue = { |
1326 _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), |
|
1327 nextLinkValue = _useState2[0], |
|
1328 setNextLinkValue = _useState2[1]; |
|
1329 |
|
1330 var anchorRef = Object(external_this_wp_element_["useMemo"])(function () { |
|
1331 var selection = window.getSelection(); |
|
1332 |
|
1333 if (!selection.rangeCount) { |
|
1334 return; |
|
1335 } |
|
1336 |
|
1337 var range = selection.getRangeAt(0); |
|
1338 |
|
1339 if (addingLink && !isActive) { |
|
1340 return range; |
|
1341 } |
|
1342 |
|
1343 var element = range.startContainer; // If the caret is right before the element, select the next element. |
|
1344 |
|
1345 element = element.nextElementSibling || element; |
|
1346 |
|
1347 while (element.nodeType !== window.Node.ELEMENT_NODE) { |
|
1348 element = element.parentNode; |
|
1349 } |
|
1350 |
|
1351 return element.closest('a'); |
|
1352 }, [addingLink, value.start, value.end]); |
|
1353 |
|
1354 var linkValue = inline_objectSpread({ |
|
1355 url: activeAttributes.url, |
913 url: activeAttributes.url, |
1356 type: activeAttributes.type, |
914 type: activeAttributes.type, |
1357 id: activeAttributes.id, |
915 id: activeAttributes.id, |
1358 opensInNewTab: activeAttributes.target === '_blank' |
916 opensInNewTab: activeAttributes.target === '_blank', |
1359 }, nextLinkValue); |
917 ...nextLinkValue |
|
918 }; |
1360 |
919 |
1361 function onChangeLink(nextValue) { |
920 function onChangeLink(nextValue) { |
1362 // Merge with values from state, both for the purpose of assigning the |
921 // Merge with values from state, both for the purpose of assigning the |
1363 // next state value, and for use in constructing the new link format if |
922 // next state value, and for use in constructing the new link format if |
1364 // the link is ready to be applied. |
923 // the link is ready to be applied. |
1365 nextValue = inline_objectSpread({}, nextLinkValue, {}, nextValue); // LinkControl calls `onChange` immediately upon the toggling a setting. |
924 nextValue = { ...nextLinkValue, |
1366 |
925 ...nextValue |
1367 var didToggleSetting = linkValue.opensInNewTab !== nextValue.opensInNewTab && linkValue.url === nextValue.url; // If change handler was called as a result of a settings change during |
926 }; // LinkControl calls `onChange` immediately upon the toggling a setting. |
|
927 |
|
928 const didToggleSetting = linkValue.opensInNewTab !== nextValue.opensInNewTab && linkValue.url === nextValue.url; // If change handler was called as a result of a settings change during |
1368 // link insertion, it must be held in state until the link is ready to |
929 // link insertion, it must be held in state until the link is ready to |
1369 // be applied. |
930 // be applied. |
1370 |
931 |
1371 var didToggleSettingForNewLink = didToggleSetting && nextValue.url === undefined; // If link will be assigned, the state value can be considered flushed. |
932 const didToggleSettingForNewLink = didToggleSetting && nextValue.url === undefined; // If link will be assigned, the state value can be considered flushed. |
1372 // Otherwise, persist the pending changes. |
933 // Otherwise, persist the pending changes. |
1373 |
934 |
1374 setNextLinkValue(didToggleSettingForNewLink ? nextValue : undefined); |
935 setNextLinkValue(didToggleSettingForNewLink ? nextValue : undefined); |
1375 |
936 |
1376 if (didToggleSettingForNewLink) { |
937 if (didToggleSettingForNewLink) { |
1377 return; |
938 return; |
1378 } |
939 } |
1379 |
940 |
1380 var newUrl = Object(external_this_wp_url_["prependHTTP"])(nextValue.url); |
941 const newUrl = Object(external_wp_url_["prependHTTP"])(nextValue.url); |
1381 var format = createLinkFormat({ |
942 const format = createLinkFormat({ |
1382 url: newUrl, |
943 url: newUrl, |
1383 type: nextValue.type, |
944 type: nextValue.type, |
1384 id: nextValue.id !== undefined && nextValue.id !== null ? String(nextValue.id) : undefined, |
945 id: nextValue.id !== undefined && nextValue.id !== null ? String(nextValue.id) : undefined, |
1385 opensInNewWindow: nextValue.opensInNewTab |
946 opensInNewWindow: nextValue.opensInNewTab |
1386 }); |
947 }); |
1387 |
948 |
1388 if (Object(external_this_wp_richText_["isCollapsed"])(value) && !isActive) { |
949 if (Object(external_wp_richText_["isCollapsed"])(value) && !isActive) { |
1389 var newText = nextValue.title || newUrl; |
950 const newText = nextValue.title || newUrl; |
1390 var toInsert = Object(external_this_wp_richText_["applyFormat"])(Object(external_this_wp_richText_["create"])({ |
951 const toInsert = Object(external_wp_richText_["applyFormat"])(Object(external_wp_richText_["create"])({ |
1391 text: newText |
952 text: newText |
1392 }), format, 0, newText.length); |
953 }), format, 0, newText.length); |
1393 onChange(Object(external_this_wp_richText_["insert"])(value, toInsert)); |
954 onChange(Object(external_wp_richText_["insert"])(value, toInsert)); |
1394 } else { |
955 } else { |
1395 var newValue = Object(external_this_wp_richText_["applyFormat"])(value, format); |
956 const newValue = Object(external_wp_richText_["applyFormat"])(value, format); |
1396 newValue.start = newValue.end; |
957 newValue.start = newValue.end; |
1397 newValue.activeFormats = []; |
958 newValue.activeFormats = []; |
1398 onChange(newValue); |
959 onChange(newValue); |
1399 } // Focus should only be shifted back to the formatted segment when the |
960 } // Focus should only be shifted back to the formatted segment when the |
1400 // URL is submitted. |
961 // URL is submitted. |
1455 /** |
1013 /** |
1456 * Internal dependencies |
1014 * Internal dependencies |
1457 */ |
1015 */ |
1458 |
1016 |
1459 |
1017 |
1460 var link_name = 'core/link'; |
1018 const link_name = 'core/link'; |
1461 |
1019 |
1462 var link_title = Object(external_this_wp_i18n_["__"])('Link'); |
1020 const link_title = Object(external_wp_i18n_["__"])('Link'); |
1463 |
1021 |
1464 var link_link = { |
1022 function link_Edit({ |
|
1023 isActive, |
|
1024 activeAttributes, |
|
1025 value, |
|
1026 onChange, |
|
1027 onFocus, |
|
1028 contentRef |
|
1029 }) { |
|
1030 const [addingLink, setAddingLink] = Object(external_wp_element_["useState"])(false); |
|
1031 |
|
1032 function addLink() { |
|
1033 const text = Object(external_wp_richText_["getTextContent"])(Object(external_wp_richText_["slice"])(value)); |
|
1034 |
|
1035 if (text && Object(external_wp_url_["isURL"])(text)) { |
|
1036 onChange(Object(external_wp_richText_["applyFormat"])(value, { |
|
1037 type: link_name, |
|
1038 attributes: { |
|
1039 url: text |
|
1040 } |
|
1041 })); |
|
1042 } else if (text && Object(external_wp_url_["isEmail"])(text)) { |
|
1043 onChange(Object(external_wp_richText_["applyFormat"])(value, { |
|
1044 type: link_name, |
|
1045 attributes: { |
|
1046 url: `mailto:${text}` |
|
1047 } |
|
1048 })); |
|
1049 } else { |
|
1050 setAddingLink(true); |
|
1051 } |
|
1052 } |
|
1053 |
|
1054 function stopAddingLink() { |
|
1055 setAddingLink(false); |
|
1056 onFocus(); |
|
1057 } |
|
1058 |
|
1059 function onRemoveFormat() { |
|
1060 onChange(Object(external_wp_richText_["removeFormat"])(value, link_name)); |
|
1061 Object(external_wp_a11y_["speak"])(Object(external_wp_i18n_["__"])('Link removed.'), 'assertive'); |
|
1062 } |
|
1063 |
|
1064 return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextShortcut"], { |
|
1065 type: "primary", |
|
1066 character: "k", |
|
1067 onUse: addLink |
|
1068 }), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextShortcut"], { |
|
1069 type: "primaryShift", |
|
1070 character: "k", |
|
1071 onUse: onRemoveFormat |
|
1072 }), isActive && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], { |
|
1073 name: "link", |
|
1074 icon: link_off["a" /* default */], |
|
1075 title: Object(external_wp_i18n_["__"])('Unlink'), |
|
1076 onClick: onRemoveFormat, |
|
1077 isActive: isActive, |
|
1078 shortcutType: "primaryShift", |
|
1079 shortcutCharacter: "k" |
|
1080 }), !isActive && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], { |
|
1081 name: "link", |
|
1082 icon: library_link["a" /* default */], |
|
1083 title: link_title, |
|
1084 onClick: addLink, |
|
1085 isActive: isActive, |
|
1086 shortcutType: "primary", |
|
1087 shortcutCharacter: "k" |
|
1088 }), (addingLink || isActive) && Object(external_wp_element_["createElement"])(inline, { |
|
1089 addingLink: addingLink, |
|
1090 stopAddingLink: stopAddingLink, |
|
1091 isActive: isActive, |
|
1092 activeAttributes: activeAttributes, |
|
1093 value: value, |
|
1094 onChange: onChange, |
|
1095 contentRef: contentRef |
|
1096 })); |
|
1097 } |
|
1098 |
|
1099 const link_link = { |
1465 name: link_name, |
1100 name: link_name, |
1466 title: link_title, |
1101 title: link_title, |
1467 tagName: 'a', |
1102 tagName: 'a', |
1468 className: null, |
1103 className: null, |
1469 attributes: { |
1104 attributes: { |
1470 url: 'href', |
1105 url: 'href', |
1471 type: 'data-type', |
1106 type: 'data-type', |
1472 id: 'data-id', |
1107 id: 'data-id', |
1473 target: 'target' |
1108 target: 'target' |
1474 }, |
1109 }, |
1475 __unstablePasteRule: function __unstablePasteRule(value, _ref) { |
1110 |
1476 var html = _ref.html, |
1111 __unstablePasteRule(value, { |
1477 plainText = _ref.plainText; |
1112 html, |
1478 |
1113 plainText |
1479 if (Object(external_this_wp_richText_["isCollapsed"])(value)) { |
1114 }) { |
|
1115 if (Object(external_wp_richText_["isCollapsed"])(value)) { |
1480 return value; |
1116 return value; |
1481 } |
1117 } |
1482 |
1118 |
1483 var pastedText = (html || plainText).replace(/<[^>]+>/g, '').trim(); // A URL was pasted, turn the selection into a link |
1119 const pastedText = (html || plainText).replace(/<[^>]+>/g, '').trim(); // A URL was pasted, turn the selection into a link |
1484 |
1120 |
1485 if (!Object(external_this_wp_url_["isURL"])(pastedText)) { |
1121 if (!Object(external_wp_url_["isURL"])(pastedText)) { |
1486 return value; |
1122 return value; |
1487 } // Allows us to ask for this information when we get a report. |
1123 } // Allows us to ask for this information when we get a report. |
1488 |
1124 |
1489 |
1125 |
1490 window.console.log('Created link:\n\n', pastedText); |
1126 window.console.log('Created link:\n\n', pastedText); |
1491 return Object(external_this_wp_richText_["applyFormat"])(value, { |
1127 return Object(external_wp_richText_["applyFormat"])(value, { |
1492 type: link_name, |
1128 type: link_name, |
1493 attributes: { |
1129 attributes: { |
1494 url: Object(external_this_wp_htmlEntities_["decodeEntities"])(pastedText) |
1130 url: Object(external_wp_htmlEntities_["decodeEntities"])(pastedText) |
1495 } |
1131 } |
1496 }); |
1132 }); |
1497 }, |
1133 }, |
1498 edit: Object(external_this_wp_components_["withSpokenMessages"])( /*#__PURE__*/function (_Component) { |
1134 |
1499 Object(inherits["a" /* default */])(LinkEdit, _Component); |
1135 edit: link_Edit |
1500 |
|
1501 var _super = link_createSuper(LinkEdit); |
|
1502 |
|
1503 function LinkEdit() { |
|
1504 var _this; |
|
1505 |
|
1506 Object(classCallCheck["a" /* default */])(this, LinkEdit); |
|
1507 |
|
1508 _this = _super.apply(this, arguments); |
|
1509 _this.addLink = _this.addLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
|
1510 _this.stopAddingLink = _this.stopAddingLink.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
|
1511 _this.onRemoveFormat = _this.onRemoveFormat.bind(Object(assertThisInitialized["a" /* default */])(_this)); |
|
1512 _this.state = { |
|
1513 addingLink: false |
|
1514 }; |
|
1515 return _this; |
|
1516 } |
|
1517 |
|
1518 Object(createClass["a" /* default */])(LinkEdit, [{ |
|
1519 key: "addLink", |
|
1520 value: function addLink() { |
|
1521 var _this$props = this.props, |
|
1522 value = _this$props.value, |
|
1523 onChange = _this$props.onChange; |
|
1524 var text = Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["slice"])(value)); |
|
1525 |
|
1526 if (text && Object(external_this_wp_url_["isURL"])(text)) { |
|
1527 onChange(Object(external_this_wp_richText_["applyFormat"])(value, { |
|
1528 type: link_name, |
|
1529 attributes: { |
|
1530 url: text |
|
1531 } |
|
1532 })); |
|
1533 } else if (text && Object(external_this_wp_url_["isEmail"])(text)) { |
|
1534 onChange(Object(external_this_wp_richText_["applyFormat"])(value, { |
|
1535 type: link_name, |
|
1536 attributes: { |
|
1537 url: "mailto:".concat(text) |
|
1538 } |
|
1539 })); |
|
1540 } else { |
|
1541 this.setState({ |
|
1542 addingLink: true |
|
1543 }); |
|
1544 } |
|
1545 } |
|
1546 }, { |
|
1547 key: "stopAddingLink", |
|
1548 value: function stopAddingLink() { |
|
1549 this.setState({ |
|
1550 addingLink: false |
|
1551 }); |
|
1552 this.props.onFocus(); |
|
1553 } |
|
1554 }, { |
|
1555 key: "onRemoveFormat", |
|
1556 value: function onRemoveFormat() { |
|
1557 var _this$props2 = this.props, |
|
1558 value = _this$props2.value, |
|
1559 onChange = _this$props2.onChange, |
|
1560 speak = _this$props2.speak; |
|
1561 onChange(Object(external_this_wp_richText_["removeFormat"])(value, link_name)); |
|
1562 speak(Object(external_this_wp_i18n_["__"])('Link removed.'), 'assertive'); |
|
1563 } |
|
1564 }, { |
|
1565 key: "render", |
|
1566 value: function render() { |
|
1567 var _this$props3 = this.props, |
|
1568 isActive = _this$props3.isActive, |
|
1569 activeAttributes = _this$props3.activeAttributes, |
|
1570 value = _this$props3.value, |
|
1571 onChange = _this$props3.onChange; |
|
1572 return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { |
|
1573 type: "primary", |
|
1574 character: "k", |
|
1575 onUse: this.addLink |
|
1576 }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextShortcut"], { |
|
1577 type: "primaryShift", |
|
1578 character: "k", |
|
1579 onUse: this.onRemoveFormat |
|
1580 }), isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { |
|
1581 name: "link", |
|
1582 icon: link_off["a" /* default */], |
|
1583 title: Object(external_this_wp_i18n_["__"])('Unlink'), |
|
1584 onClick: this.onRemoveFormat, |
|
1585 isActive: isActive, |
|
1586 shortcutType: "primaryShift", |
|
1587 shortcutCharacter: "k" |
|
1588 }), !isActive && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { |
|
1589 name: "link", |
|
1590 icon: library_link["a" /* default */], |
|
1591 title: link_title, |
|
1592 onClick: this.addLink, |
|
1593 isActive: isActive, |
|
1594 shortcutType: "primary", |
|
1595 shortcutCharacter: "k" |
|
1596 }), (this.state.addingLink || isActive) && Object(external_this_wp_element_["createElement"])(inline, { |
|
1597 addingLink: this.state.addingLink, |
|
1598 stopAddingLink: this.stopAddingLink, |
|
1599 isActive: isActive, |
|
1600 activeAttributes: activeAttributes, |
|
1601 value: value, |
|
1602 onChange: onChange |
|
1603 })); |
|
1604 } |
|
1605 }]); |
|
1606 |
|
1607 return LinkEdit; |
|
1608 }(external_this_wp_element_["Component"])) |
|
1609 }; |
1136 }; |
1610 |
1137 |
1611 // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js |
1138 // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/format-strikethrough.js |
1612 |
1139 var format_strikethrough = __webpack_require__("Crq9"); |
1613 |
|
1614 /** |
|
1615 * WordPress dependencies |
|
1616 */ |
|
1617 |
|
1618 var formatStrikethrough = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], { |
|
1619 xmlns: "http://www.w3.org/2000/svg", |
|
1620 viewBox: "0 0 24 24" |
|
1621 }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], { |
|
1622 d: "M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z" |
|
1623 })); |
|
1624 /* harmony default export */ var format_strikethrough = (formatStrikethrough); |
|
1625 |
1140 |
1626 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js |
1141 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/strikethrough/index.js |
1627 |
1142 |
1628 |
1143 |
1629 /** |
1144 /** |
1736 |
1247 |
1737 |
1248 |
1738 |
1249 |
1739 |
1250 |
1740 |
1251 |
|
1252 /** |
|
1253 * Internal dependencies |
|
1254 */ |
1741 |
1255 |
1742 |
1256 |
1743 function getActiveColor(formatName, formatValue, colors) { |
1257 function getActiveColor(formatName, formatValue, colors) { |
1744 var activeColorFormat = Object(external_this_wp_richText_["getActiveFormat"])(formatValue, formatName); |
1258 const activeColorFormat = Object(external_wp_richText_["getActiveFormat"])(formatValue, formatName); |
1745 |
1259 |
1746 if (!activeColorFormat) { |
1260 if (!activeColorFormat) { |
1747 return; |
1261 return; |
1748 } |
1262 } |
1749 |
1263 |
1750 var styleColor = activeColorFormat.attributes.style; |
1264 const styleColor = activeColorFormat.attributes.style; |
1751 |
1265 |
1752 if (styleColor) { |
1266 if (styleColor) { |
1753 return styleColor.replace(new RegExp("^color:\\s*"), ''); |
1267 return styleColor.replace(new RegExp(`^color:\\s*`), ''); |
1754 } |
1268 } |
1755 |
1269 |
1756 var currentClass = activeColorFormat.attributes.class; |
1270 const currentClass = activeColorFormat.attributes.class; |
1757 |
1271 |
1758 if (currentClass) { |
1272 if (currentClass) { |
1759 var colorSlug = currentClass.replace(/.*has-(.*?)-color.*/, '$1'); |
1273 const colorSlug = currentClass.replace(/.*has-([^\s]*)-color.*/, '$1'); |
1760 return Object(external_this_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, colorSlug).color; |
1274 return Object(external_wp_blockEditor_["getColorObjectByAttributeValues"])(colors, colorSlug).color; |
1761 } |
1275 } |
1762 } |
1276 } |
1763 |
1277 |
1764 var inline_ColorPopoverAtLink = function ColorPopoverAtLink(_ref) { |
1278 const ColorPicker = ({ |
1765 var addingColor = _ref.addingColor, |
1279 name, |
1766 props = Object(objectWithoutProperties["a" /* default */])(_ref, ["addingColor"]); |
1280 value, |
1767 |
1281 onChange |
1768 // There is no way to open a text formatter popover when another one is mounted. |
1282 }) => { |
1769 // The first popover will always be dismounted when a click outside happens, so we can store the |
1283 const colors = Object(external_wp_data_["useSelect"])(select => { |
1770 // anchor Rect during the lifetime of the component. |
1284 const { |
1771 var anchorRect = Object(external_this_wp_element_["useMemo"])(function () { |
1285 getSettings |
1772 var selection = window.getSelection(); |
1286 } = select(external_wp_blockEditor_["store"]); |
1773 var range = selection.rangeCount > 0 ? selection.getRangeAt(0) : null; |
1287 return Object(external_lodash_["get"])(getSettings(), ['colors'], []); |
1774 |
|
1775 if (!range) { |
|
1776 return; |
|
1777 } |
|
1778 |
|
1779 if (addingColor) { |
|
1780 return Object(external_this_wp_dom_["getRectangleFromRange"])(range); |
|
1781 } |
|
1782 |
|
1783 var element = range.startContainer; // If the caret is right before the element, select the next element. |
|
1784 |
|
1785 element = element.nextElementSibling || element; |
|
1786 |
|
1787 while (element.nodeType !== window.Node.ELEMENT_NODE) { |
|
1788 element = element.parentNode; |
|
1789 } |
|
1790 |
|
1791 var closest = element.closest('span'); |
|
1792 |
|
1793 if (closest) { |
|
1794 return closest.getBoundingClientRect(); |
|
1795 } |
|
1796 }, []); |
|
1797 |
|
1798 if (!anchorRect) { |
|
1799 return null; |
|
1800 } |
|
1801 |
|
1802 return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], Object(esm_extends["a" /* default */])({ |
|
1803 anchorRect: anchorRect |
|
1804 }, props)); |
|
1805 }; |
|
1806 |
|
1807 var inline_ColorPicker = function ColorPicker(_ref2) { |
|
1808 var name = _ref2.name, |
|
1809 value = _ref2.value, |
|
1810 onChange = _ref2.onChange; |
|
1811 var colors = Object(external_this_wp_data_["useSelect"])(function (select) { |
|
1812 var _select = select('core/block-editor'), |
|
1813 getSettings = _select.getSettings; |
|
1814 |
|
1815 return Object(external_this_lodash_["get"])(getSettings(), ['colors'], []); |
|
1816 }); |
1288 }); |
1817 var onColorChange = Object(external_this_wp_element_["useCallback"])(function (color) { |
1289 const onColorChange = Object(external_wp_element_["useCallback"])(color => { |
1818 if (color) { |
1290 if (color) { |
1819 var colorObject = Object(external_this_wp_blockEditor_["getColorObjectByColorValue"])(colors, color); |
1291 const colorObject = Object(external_wp_blockEditor_["getColorObjectByColorValue"])(colors, color); |
1820 onChange(Object(external_this_wp_richText_["applyFormat"])(value, { |
1292 onChange(Object(external_wp_richText_["applyFormat"])(value, { |
1821 type: name, |
1293 type: name, |
1822 attributes: colorObject ? { |
1294 attributes: colorObject ? { |
1823 class: Object(external_this_wp_blockEditor_["getColorClassName"])('color', colorObject.slug) |
1295 class: Object(external_wp_blockEditor_["getColorClassName"])('color', colorObject.slug) |
1824 } : { |
1296 } : { |
1825 style: "color:".concat(color) |
1297 style: `color:${color}` |
1826 } |
1298 } |
1827 })); |
1299 })); |
1828 } else { |
1300 } else { |
1829 onChange(Object(external_this_wp_richText_["removeFormat"])(value, name)); |
1301 onChange(Object(external_wp_richText_["removeFormat"])(value, name)); |
1830 } |
1302 } |
1831 }, [colors, onChange]); |
1303 }, [colors, onChange]); |
1832 var activeColor = Object(external_this_wp_element_["useMemo"])(function () { |
1304 const activeColor = Object(external_wp_element_["useMemo"])(() => getActiveColor(name, value, colors), [name, value, colors]); |
1833 return getActiveColor(name, value, colors); |
1305 return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ColorPalette"], { |
1834 }, [name, value, colors]); |
|
1835 return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ColorPalette"], { |
|
1836 value: activeColor, |
1306 value: activeColor, |
1837 onChange: onColorChange |
1307 onChange: onColorChange |
1838 }); |
1308 }); |
1839 }; |
1309 }; |
1840 |
1310 |
1841 var inline_InlineColorUI = function InlineColorUI(_ref3) { |
1311 function InlineColorUI({ |
1842 var name = _ref3.name, |
1312 name, |
1843 value = _ref3.value, |
1313 value, |
1844 onChange = _ref3.onChange, |
1314 onChange, |
1845 onClose = _ref3.onClose, |
1315 onClose, |
1846 isActive = _ref3.isActive, |
1316 contentRef |
1847 addingColor = _ref3.addingColor; |
1317 }) { |
1848 return Object(external_this_wp_element_["createElement"])(inline_ColorPopoverAtLink, { |
1318 const anchorRef = Object(external_wp_richText_["useAnchorRef"])({ |
|
1319 ref: contentRef, |
|
1320 value, |
|
1321 settings: textColor |
|
1322 }); |
|
1323 return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["URLPopover"], { |
1849 value: value, |
1324 value: value, |
1850 isActive: isActive, |
|
1851 addingColor: addingColor, |
|
1852 onClose: onClose, |
1325 onClose: onClose, |
1853 className: "components-inline-color-popover" |
1326 className: "components-inline-color-popover", |
1854 }, Object(external_this_wp_element_["createElement"])(inline_ColorPicker, { |
1327 anchorRef: anchorRef |
|
1328 }, Object(external_wp_element_["createElement"])(ColorPicker, { |
1855 name: name, |
1329 name: name, |
1856 value: value, |
1330 value: value, |
1857 onChange: onChange |
1331 onChange: onChange |
1858 })); |
1332 })); |
1859 }; |
1333 } |
1860 |
|
1861 /* harmony default export */ var text_color_inline = (Object(external_this_wp_components_["withSpokenMessages"])(inline_InlineColorUI)); |
|
1862 |
1334 |
1863 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js |
1335 // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/text-color/index.js |
1864 |
1336 |
1865 |
1337 |
1866 |
|
1867 /** |
1338 /** |
1868 * External dependencies |
1339 * External dependencies |
1869 */ |
1340 */ |
1870 |
1341 |
1871 /** |
1342 /** |
1875 |
1346 |
1876 |
1347 |
1877 |
1348 |
1878 |
1349 |
1879 |
1350 |
1880 |
|
1881 /** |
1351 /** |
1882 * Internal dependencies |
1352 * Internal dependencies |
1883 */ |
1353 */ |
1884 |
1354 |
1885 |
1355 |
1886 var text_color_name = 'core/text-color'; |
1356 const text_color_name = 'core/text-color'; |
1887 |
1357 |
1888 var text_color_title = Object(external_this_wp_i18n_["__"])('Text Color'); |
1358 const text_color_title = Object(external_wp_i18n_["__"])('Text color'); |
1889 |
1359 |
1890 var EMPTY_ARRAY = []; |
1360 const EMPTY_ARRAY = []; |
1891 |
1361 |
1892 function TextColorEdit(_ref) { |
1362 function TextColorEdit({ |
1893 var value = _ref.value, |
1363 value, |
1894 onChange = _ref.onChange, |
1364 onChange, |
1895 isActive = _ref.isActive, |
1365 isActive, |
1896 activeAttributes = _ref.activeAttributes; |
1366 activeAttributes, |
1897 |
1367 contentRef |
1898 var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { |
1368 }) { |
1899 var blockEditorSelect = select('core/block-editor'); |
1369 const allowCustomControl = Object(external_wp_blockEditor_["useSetting"])('color.custom'); |
1900 var settings; |
1370 const colors = Object(external_wp_blockEditor_["useSetting"])('color.palette') || EMPTY_ARRAY; |
1901 |
1371 const [isAddingColor, setIsAddingColor] = Object(external_wp_element_["useState"])(false); |
1902 if (blockEditorSelect && blockEditorSelect.getSettings) { |
1372 const enableIsAddingColor = Object(external_wp_element_["useCallback"])(() => setIsAddingColor(true), [setIsAddingColor]); |
1903 settings = blockEditorSelect.getSettings(); |
1373 const disableIsAddingColor = Object(external_wp_element_["useCallback"])(() => setIsAddingColor(false), [setIsAddingColor]); |
1904 } else { |
1374 const colorIndicatorStyle = Object(external_wp_element_["useMemo"])(() => { |
1905 settings = {}; |
1375 const activeColor = getActiveColor(text_color_name, value, colors); |
1906 } |
|
1907 |
|
1908 return { |
|
1909 colors: Object(external_this_lodash_["get"])(settings, ['colors'], EMPTY_ARRAY), |
|
1910 disableCustomColors: settings.disableCustomColors |
|
1911 }; |
|
1912 }), |
|
1913 colors = _useSelect.colors, |
|
1914 disableCustomColors = _useSelect.disableCustomColors; |
|
1915 |
|
1916 var _useState = Object(external_this_wp_element_["useState"])(false), |
|
1917 _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), |
|
1918 isAddingColor = _useState2[0], |
|
1919 setIsAddingColor = _useState2[1]; |
|
1920 |
|
1921 var enableIsAddingColor = Object(external_this_wp_element_["useCallback"])(function () { |
|
1922 return setIsAddingColor(true); |
|
1923 }, [setIsAddingColor]); |
|
1924 var disableIsAddingColor = Object(external_this_wp_element_["useCallback"])(function () { |
|
1925 return setIsAddingColor(false); |
|
1926 }, [setIsAddingColor]); |
|
1927 var colorIndicatorStyle = Object(external_this_wp_element_["useMemo"])(function () { |
|
1928 var activeColor = getActiveColor(text_color_name, value, colors); |
|
1929 |
1376 |
1930 if (!activeColor) { |
1377 if (!activeColor) { |
1931 return undefined; |
1378 return undefined; |
1932 } |
1379 } |
1933 |
1380 |
1934 return { |
1381 return { |
1935 backgroundColor: activeColor |
1382 backgroundColor: activeColor |
1936 }; |
1383 }; |
1937 }, [value, colors]); |
1384 }, [value, colors]); |
1938 var hasColorsToChoose = !Object(external_this_lodash_["isEmpty"])(colors) || disableCustomColors !== true; |
1385 const hasColorsToChoose = !Object(external_lodash_["isEmpty"])(colors) || !allowCustomControl; |
1939 |
1386 |
1940 if (!hasColorsToChoose && !isActive) { |
1387 if (!hasColorsToChoose && !isActive) { |
1941 return null; |
1388 return null; |
1942 } |
1389 } |
1943 |
1390 |
1944 return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichTextToolbarButton"], { |
1391 return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichTextToolbarButton"], { |
1945 key: isActive ? 'text-color' : 'text-color-not-active', |
1392 key: isActive ? 'text-color' : 'text-color-not-active', |
1946 className: "format-library-text-color-button", |
1393 className: "format-library-text-color-button", |
1947 name: isActive ? 'text-color' : undefined, |
1394 name: isActive ? 'text-color' : undefined, |
1948 icon: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(icon["a" /* default */], { |
1395 icon: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(icon["a" /* default */], { |
1949 icon: text_color["a" /* default */] |
1396 icon: text_color["a" /* default */] |
1950 }), isActive && Object(external_this_wp_element_["createElement"])("span", { |
1397 }), isActive && Object(external_wp_element_["createElement"])("span", { |
1951 className: "format-library-text-color-button__indicator", |
1398 className: "format-library-text-color-button__indicator", |
1952 style: colorIndicatorStyle |
1399 style: colorIndicatorStyle |
1953 })), |
1400 })), |
1954 title: text_color_title // If has no colors to choose but a color is active remove the color onClick |
1401 title: text_color_title // If has no colors to choose but a color is active remove the color onClick |
1955 , |
1402 , |
1956 onClick: hasColorsToChoose ? enableIsAddingColor : function () { |
1403 onClick: hasColorsToChoose ? enableIsAddingColor : () => onChange(Object(external_wp_richText_["removeFormat"])(value, text_color_name)) |
1957 return onChange(Object(external_this_wp_richText_["removeFormat"])(value, text_color_name)); |
1404 }), isAddingColor && Object(external_wp_element_["createElement"])(InlineColorUI, { |
1958 } |
|
1959 }), isAddingColor && Object(external_this_wp_element_["createElement"])(text_color_inline, { |
|
1960 name: text_color_name, |
1405 name: text_color_name, |
1961 addingColor: isAddingColor, |
|
1962 onClose: disableIsAddingColor, |
1406 onClose: disableIsAddingColor, |
1963 isActive: isActive, |
|
1964 activeAttributes: activeAttributes, |
1407 activeAttributes: activeAttributes, |
1965 value: value, |
1408 value: value, |
1966 onChange: onChange |
1409 onChange: onChange, |
|
1410 contentRef: contentRef |
1967 })); |
1411 })); |
1968 } |
1412 } |
1969 |
1413 |
1970 var textColor = { |
1414 const textColor = { |
1971 name: text_color_name, |
1415 name: text_color_name, |
1972 title: text_color_title, |
1416 title: text_color_title, |
1973 tagName: 'span', |
1417 tagName: 'span', |
1974 className: 'has-inline-color', |
1418 className: 'has-inline-color', |
1975 attributes: { |
1419 attributes: { |